{
  "version": 3,
  "sources": ["route_legs_core.js"],
  "sourcesContent": ["/*\n * static/js/route_legs_core.js \u2014 drawing a saved route as its legs and the\n * transitions between them (SNOW-1017).\n *\n * SNOW-910 painted each owned route in 25 m slope-class segments. On a real\n * track that is a textured line, and the reader had to zoom in to learn\n * anything from it. This module is what replaced it: one LineString per\n * leg, a climb or a descent, and one numbered point at each transition.\n * The reasoning is docs/decisions/legs-not-slope-classes-on-the-map.md.\n *\n * THE GEOMETRY IS THE ROUTE'S OWN. Each wire leg (apps/routes/services/\n * leg_wire.py) carries two index pairs: `from`/`to` into the slope\n * record's segments, which the cursor and the rails are keyed on, and\n * `point_from`/`point_to` into the feature's own coordinates \u2014 the stored\n * vertices, merged with the slope record's boundaries when the server has\n * terrain heights for them (SNOW-1043) \u2014 which is what a leg is sliced out\n * of here. The feature's coordinates rather than the\n * slope record's 25 m points, because an unsampled route has no slope\n * record and still has legs \u2014 a leg is a fact about the geometry. Adjacent\n * legs SHARE their seam point, so the lines meet with no gap.\n *\n * A PENDING ROUTE IS CUT LIKE ANY OTHER (SNOW-1218). A followed share\n * was drawn as one teal dash saying \"this one is not yours yet\" until\n * 2026-10-24; now a shared route reads exactly as the sharer's does, and\n * the panel's Save is what says it is not yours yet. A pending route has\n * no `uuid` \u2014 a non-owner is never handed one \u2014 so its features carry\n * the share's `token` instead, and a tap resolves back to it by that.\n *\n * A ROUTE WHOSE LEGS CANNOT ALL BE SLICED DRAWS FLAT. An overlay payload\n * cached before SNOW-1017 carries `legs` without point indices. map.js's\n * flat-line filter tests the presence of `legs`, so such a route would\n * leave the flat line and draw no legs \u2014 invisible. `withDrawableLegs`\n * is the answer: the copy of the payload handed to the `routes` source\n * has `legs` removed from any route `hasDrawableLegs` rejects, so the\n * flat line keeps it. `legCollection` and `transitionCollection` apply\n * the same test, so a route is drawn one way or the other, never both\n * and never neither.\n *\n * Hex literals rather than CSS variables: MapLibre paint properties take\n * literal colours and cannot reference a custom property. Each names the\n * token it mirrors, the convention `route_slope_core.js` follows.\n *\n * Every function here is pure.\n *\n * Exports (frozen `self.pwaRouteLegsCore`):\n *\n *   LEG_CLIMB_COLOUR          \u2014 a climbing leg's line\n *   LEG_DESCENT_COLOUR        \u2014 a descending leg's line\n *   SAC_CLIMB_COLOUR          \u2014 an SAC tour's way up, and its climbing legs\n *   SAC_DESCENT_COLOUR        \u2014 an SAC tour's way down, and its descending legs\n *   legCollection(fc)         \u2014 one LineString per leg,\n *                               `{uuid | token, i, climbing}`\n *   transitionCollection(fc)  \u2014 one Point per transition,\n *                               `{uuid | token, n, climbing}`\n *   slopeSegmentCollection(fc) \u2014 every slope-class segment, tagged with\n *                               its leg's `i` and `climbing`\n *   hasDrawableLegs(f)        \u2014 whether every leg of a route can be sliced\n *   withDrawableLegs(fc)      \u2014 the payload with undrawable `legs` removed,\n *                               for the flat line's source\n */\n\n// @ts-check\n\n(function () {\n  'use strict';\n\n  /**\n   * A climbing leg's colour. Mirrors `--color-route-rail-climb` in\n   * `src/css/main.css`, so a leg on the map is the colour of the same leg\n   * on the rail below it. Slate since SNOW-1019, which swapped the two to\n   * match the rail mockup; the climb stays DASHED, which is the cue for a\n   * reader who cannot tell the colours apart.\n   */\n  const LEG_CLIMB_COLOUR = '#64748b';\n\n  /**\n   * A descending leg's colour. Mirrors `--color-route-rail-descent` in\n   * `src/css/main.css`.\n   */\n  const LEG_DESCENT_COLOUR = '#c026d3';\n\n  /**\n   * An SAC tour's climbing colour, before it is saved (SNOW-1307). Mirrors\n   * `--color-sac-climb`. SAC's own blue, so a reader's routes stand out\n   * from the tours layer under them rather than drowning in it.\n   */\n  const SAC_CLIMB_COLOUR = '#1d4ed8';\n\n  /**\n   * An SAC tour's descending colour, before it is saved (SNOW-1307).\n   * Mirrors `--color-sac-descent`.\n   */\n  const SAC_DESCENT_COLOUR = '#38bdf8';\n\n  /**\n   * One leg as it arrives on the wire. Every field is optional because it\n   * arrives from a feature property and is checked rather than trusted.\n   *\n   * @typedef {object} WireLeg\n   * @property {number} [i] The leg's 1-based number.\n   * @property {number} [from] Its first slope segment, inclusive.\n   * @property {number} [to] Its last slope segment, inclusive.\n   * @property {boolean} [climbing] Whether it gains height.\n   * @property {number} [point_from] Its first coordinate index.\n   * @property {number} [point_to] Its last coordinate index, inclusive.\n   */\n\n  /**\n   * @typedef {{type: string, features: Array<object>}} FeatureCollection\n   */\n\n  /**\n   * An empty FeatureCollection, which is what every fallback has to be:\n   * `setData` throws on a null.\n   *\n   * @returns {FeatureCollection}\n   */\n  function empty() {\n    return { type: 'FeatureCollection', features: [] };\n  }\n\n  /**\n   * Whether a value is a usable, non-negative integer index.\n   *\n   * @param {*} value The value to test.\n   * @returns {boolean}\n   */\n  function isIndex(value) {\n    return Number.isInteger(value) && value >= 0;\n  }\n\n  /**\n   * Whether every leg of one route feature can be sliced from its\n   * coordinates.\n   *\n   * All or nothing: a route drawn with one leg missing would show a gap\n   * that reads as a break in the track. `false` for a route with no legs\n   * at all, and for any leg whose `point_from`/`point_to` are missing,\n   * not integers, out of order or past the end of the geometry.\n   *\n   * @param {?{geometry?: any, properties?: any}} feature One route feature.\n   * @returns {boolean}\n   */\n  function hasDrawableLegs(feature) {\n    const properties = (feature && feature.properties) || {};\n    const legs = properties.legs;\n    const coordinates = feature && feature.geometry && feature.geometry.coordinates;\n    if (!Array.isArray(legs) || !legs.length || !Array.isArray(coordinates)) return false;\n    return legs.every((leg) => Boolean(leg) && slices(leg, coordinates));\n  }\n\n  /**\n   * The routes payload with `legs` removed from every route whose legs\n   * cannot be drawn.\n   *\n   * For the `routes` source only, whose flat-line filter tests the\n   * presence of `legs`: a route that keeps the key there must be one the\n   * leg layers draw. A shallow copy \u2014 the features that change are new\n   * objects with new `properties`, the rest are the originals \u2014 so the\n   * caller's payload, which the rail reads its legs from, is untouched.\n   *\n   * @param {?{features?: Array<any>}} geojson The routes FeatureCollection.\n   * @returns {?{features?: Array<any>}} The copy, or `geojson` itself when\n   *   it holds no features.\n   */\n  function withDrawableLegs(geojson) {\n    if (!geojson || !Array.isArray(geojson.features)) return geojson;\n    return Object.assign({}, geojson, {\n      features: geojson.features.map((feature) => {\n        const properties = feature && feature.properties;\n        if (!properties || !('legs' in properties) || hasDrawableLegs(feature)) {\n          return feature;\n        }\n        const stripped = Object.assign({}, properties);\n        delete stripped.legs;\n        return Object.assign({}, feature, { properties: stripped });\n      }),\n    });\n  }\n\n  /**\n   * What a route's drawn features carry to name it: its `uuid`, or a\n   * pending share's `token` \u2014 which has no uuid, because a non-owner is\n   * never handed one. Never both.\n   *\n   * @param {any} properties A route feature's properties.\n   * @returns {{uuid?: string, token?: string}}\n   */\n  function routeIdentity(properties) {\n    if (properties.uuid) return { uuid: String(properties.uuid) };\n    if (properties.token) return { token: String(properties.token) };\n    return {};\n  }\n\n  /**\n   * The routes that carry legs, with the pieces each reader needs.\n   *\n   * @param {?{features?: Array<any>}} geojson The routes FeatureCollection.\n   * @returns {Array<{identity: {uuid?: string, token?: string},\n   *   coordinates: Array<Array<number>>, legs: Array<WireLeg>,\n   *   sampled: boolean}>} `identity` is the route's `uuid`, or a pending\n   *   share's `token`; `sampled` is whether the route has slope segments\n   *   to draw.\n   */\n  function leggedRoutes(geojson) {\n    const features = (geojson && geojson.features) || [];\n    const routes = [];\n    for (let i = 0; i < features.length; i += 1) {\n      const feature = features[i] || {};\n      const properties = feature.properties || {};\n      if (!hasDrawableLegs(feature)) continue;\n      const coordinates = feature.geometry.coordinates;\n      const slopeCore = self.pwaRouteSlopeCore;\n      routes.push({\n        identity: routeIdentity(properties),\n        coordinates: coordinates,\n        legs: properties.legs,\n        sampled: !!(slopeCore && slopeCore.segmentFeatures\n          && slopeCore.segmentFeatures(feature).length),\n      });\n    }\n    return routes;\n  }\n\n  /**\n   * Whether a wire leg's point indices slice a line out of `coordinates`.\n   *\n   * @param {WireLeg} leg The leg.\n   * @param {Array<*>} coordinates The route's coordinates.\n   * @returns {boolean}\n   */\n  function slices(leg, coordinates) {\n    return isIndex(leg.point_from)\n      && isIndex(leg.point_to)\n      && /** @type {number} */ (leg.point_from) < /** @type {number} */ (leg.point_to)\n      && /** @type {number} */ (leg.point_to) < coordinates.length;\n  }\n\n  /**\n   * One LineString per leg of every route.\n   *\n   * Sliced `coordinates[point_from..point_to]`, both ends inclusive, so a\n   * leg's last coordinate is the next leg's first. Properties are the\n   * owning route's `uuid`, or a pending share's `token` \u2014 a tap on a leg\n   * resolves back to its route \u2014\n   * the leg's number `i`, and `climbing`, which picks the layer. `sampled: true`\n   * marks a leg whose route has slope segments to draw: from z14 the map\n   * paints those instead of the leg's core, and a leg without the flag\n   * keeps its core at every zoom, so a route the sampler has not reached\n   * does not lose its line.\n   *\n   * @param {?{features?: Array<any>}} geojson The routes FeatureCollection.\n   * @returns {FeatureCollection} The legs, possibly none.\n   */\n  function legCollection(geojson) {\n    const out = empty();\n    const routes = leggedRoutes(geojson);\n    for (let r = 0; r < routes.length; r += 1) {\n      const route = routes[r];\n      for (let j = 0; j < route.legs.length; j += 1) {\n        const leg = route.legs[j] || {};\n        if (!slices(leg, route.coordinates)) continue;\n        out.features.push({\n          type: 'Feature',\n          geometry: {\n            type: 'LineString',\n            coordinates: route.coordinates.slice(\n              /** @type {number} */ (leg.point_from),\n              /** @type {number} */ (leg.point_to) + 1,\n            ),\n          },\n          properties: Object.assign(\n            { i: leg.i, climbing: leg.climbing === true },\n            route.identity,\n            route.sampled ? { sampled: true } : {},\n          ),\n        });\n      }\n    }\n    return out;\n  }\n\n  /**\n   * One numbered Point at each transition of every route.\n   *\n   * A transition is where leg 2 onwards starts, so a route with n legs has\n   * n \u2212 1 markers numbered 1 to n \u2212 1 in track order, and a single-leg\n   * route has none. Each carries the owning route's `uuid` (or a pending\n   * share's `token`) and the\n   * `climbing` flag of the leg it opens, which colours the marker.\n   *\n   * @param {?{features?: Array<any>}} geojson The routes FeatureCollection.\n   * @returns {FeatureCollection} The markers, possibly none.\n   */\n  function transitionCollection(geojson) {\n    const out = empty();\n    const routes = leggedRoutes(geojson);\n    for (let r = 0; r < routes.length; r += 1) {\n      const route = routes[r];\n      let n = 0;\n      for (let j = 1; j < route.legs.length; j += 1) {\n        const leg = route.legs[j] || {};\n        n += 1;\n        if (!isIndex(leg.point_from)) continue;\n        const point = route.coordinates[/** @type {number} */ (leg.point_from)];\n        if (!Array.isArray(point) || point.length < 2) continue;\n        out.features.push({\n          type: 'Feature',\n          geometry: { type: 'Point', coordinates: [point[0], point[1]] },\n          properties: Object.assign(\n            { n: n, climbing: leg.climbing === true },\n            route.identity,\n          ),\n        });\n      }\n    }\n    return out;\n  }\n\n  /**\n   * The slope-class segments of every route, each tagged with the\n   * number (`i`) and `climbing` flag of the leg it lies in.\n   *\n   * What the map paints a route's core with from ROUTE_SLOPE_MINZOOM\n   * (docs/decisions/legs-not-slope-classes-on-the-map.md, 2026-09-30).\n   *\n   * A route drawn FLAT \u2014 no legs, or legs `hasDrawableLegs` rejects \u2014\n   * gets neither `climbing` nor `i` on its segments: it has no leg to tag\n   * them with.\n   *\n   * The segments are `route_slope_core.js`'s: `segmentFeatures` emits one\n   * feature per entry of `slope.angles`, in order, so a segment's position\n   * in its output IS its sample index \u2014 the index space the legs' `from`\n   * and `to` are in.\n   *\n   * Empty when `route_slope_core.js` is not loaded: the classes are an\n   * addition to the leg lines, and a missing core should cost them only.\n   *\n   * @param {?{features?: Array<any>}} geojson The routes FeatureCollection.\n   * @returns {FeatureCollection} The segments, possibly none.\n   */\n  function slopeSegmentCollection(geojson) {\n    const out = empty();\n    const slopeCore = self.pwaRouteSlopeCore;\n    if (!slopeCore || !slopeCore.segmentFeatures) return out;\n    const features = (geojson && geojson.features) || [];\n    for (let r = 0; r < features.length; r += 1) {\n      const properties = (features[r] && features[r].properties) || {};\n      /** @type {Array<WireLeg>} */\n      const legs = Array.isArray(properties.legs) && hasDrawableLegs(features[r])\n        ? properties.legs\n        : [];\n      const segments = slopeCore.segmentFeatures(features[r]);\n      for (let index = 0; index < segments.length; index += 1) {\n        const segment = segments[index];\n        const leg = legs.find(\n          (candidate) => candidate\n            && typeof candidate.from === 'number'\n            && typeof candidate.to === 'number'\n            && candidate.from <= index\n            && index <= candidate.to,\n        );\n        out.features.push({\n          type: 'Feature',\n          geometry: segment.geometry,\n          properties: Object.assign(\n            {},\n            segment.properties,\n            leg ? { i: leg.i, climbing: leg.climbing === true } : {},\n          ),\n        });\n      }\n    }\n    return out;\n  }\n\n  self.pwaRouteLegsCore = Object.freeze({\n    LEG_CLIMB_COLOUR: LEG_CLIMB_COLOUR,\n    LEG_DESCENT_COLOUR: LEG_DESCENT_COLOUR,\n    SAC_CLIMB_COLOUR: SAC_CLIMB_COLOUR,\n    SAC_DESCENT_COLOUR: SAC_DESCENT_COLOUR,\n    legCollection: legCollection,\n    transitionCollection: transitionCollection,\n    slopeSegmentCollection: slopeSegmentCollection,\n    hasDrawableLegs: hasDrawableLegs,\n    withDrawableLegs: withDrawableLegs,\n  });\n})();\n"],
  "mappings": "CA+DC,UAAY,CACX,aASA,MAAMA,EAAmB,UAMnBC,EAAqB,UAOrBC,EAAmB,UAMnBC,EAAqB,UAyB3B,SAASC,GAAQ,CACf,MAAO,CAAE,KAAM,oBAAqB,SAAU,CAAC,CAAE,CACnD,CAQA,SAASC,EAAQC,EAAO,CACtB,OAAO,OAAO,UAAUA,CAAK,GAAKA,GAAS,CAC7C,CAcA,SAASC,EAAgBC,EAAS,CAEhC,MAAMC,GADcD,GAAWA,EAAQ,YAAe,CAAC,GAC/B,KAClBE,EAAcF,GAAWA,EAAQ,UAAYA,EAAQ,SAAS,YACpE,MAAI,CAAC,MAAM,QAAQC,CAAI,GAAK,CAACA,EAAK,QAAU,CAAC,MAAM,QAAQC,CAAW,EAAU,GACzED,EAAK,MAAOE,GAAQ,EAAQA,GAAQC,EAAOD,EAAKD,CAAW,CAAC,CACrE,CAgBA,SAASG,EAAiBC,EAAS,CACjC,MAAI,CAACA,GAAW,CAAC,MAAM,QAAQA,EAAQ,QAAQ,EAAUA,EAClD,OAAO,OAAO,CAAC,EAAGA,EAAS,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", "legs", "coordinates", "leg", "slices", "withDrawableLegs", "geojson", "properties", "stripped", "routeIdentity", "leggedRoutes", "features", "routes", "i", "slopeCore", "legCollection", "out", "route", "j", "transitionCollection", "n", "point", "slopeSegmentCollection", "r", "segments", "index", "segment", "candidate"]
}
