PageSourceSearch

https://www.shipbob.com/wp-content/themes/shipbob-2022/dist/chunk/…maps-4c35612f.567690686e21cdfe487c.chunk.js

js shipbob.com collected 2026-09-24 07:13:13 UTC 131,382 bytes, 2 lines download raw bytes

vendor: 35,015 bytes, line 1
1"use strict";(self.webpackChunkshipbob_2022=self.webpackChunkshipbob_2022||[]).push([[9064],{67373:function(e,t,r){r.d(t,{BH:function(){return yr},GO:function(){return Er},Q1:function(){return ce},S6:function(){return Wt},Tn:function(){return cr},Vy:function(){return d},fC:function(){return Sr},iB:function(){return Kt},v8:function(){return bn},wq:function(){return vr}});var n=Object.create,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),p=(e,t,r)=>(r=null!=e?n(s(e)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var s,u=i(t),p=0,c=u.length;p<c;p++)s=u[p],l.call(e,s)||void 0===s||a(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(n=o(t,s))||n.enumerable});return e})(!t&&e&&e.__esModule?r:a(r,"default",{value:e,enumerable:!0}),e)),c={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number",length:2},centerAltitude:{type:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},roll:{type:"number",default:0,units:"degrees"},state:{type:"state",default:{}},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},"font-faces":{type:"fontFaces"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},encoding:{type:"enum",values:{mvt:{},mlt:{}},default:"mvt"},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"filter"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_color-relief","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_color-relief":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},filter:{type:"boolean",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"expression_name",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"projectionDefinition",default:"mercator","property-type":"data-constant",transition:!1,expression:{interpolated:!0,parameters:["zoom"]}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_color-relief","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"colorArray",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-method":{type:"enum",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:"standard",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",transition:!1,expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}},interpolation:{type:"array",value:"interpolation_name",minimum:1},interpolation_name:{type:"enum",values:{linear:{syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal"}]}},"cubic-bezier":{syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal"},{name:"y1",type:"number literal"},{name:"x2",type:"number literal"},{name:"y2",type:"number literal"}]}}}}};const f=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function y(e,t){const r={};for(const t in e)"ref"!==t&&(r[t]=e[t]);
1return f.forEach(e=>{e in t&&(r[e]=t[e])}),r}function d(e){e=e.slice();const t=Object.create(null);for(let r=0;r<e.length;r++)t[e[r].id]=e[r];for(let r=0;r<e.length;r++)"ref"in e[r]&&(e[r]=y(e[r],t[e[r].ref]));return e}var m=class{constructor(e,t,r,n){this.message=(e?`${e}: `:"")+r,n&&(this.identifier=n),null!=t&&t.__line__&&(this.line=t.__line__)}};function h(e,...t){for(const r of t)for(const t in r)e[t]=r[t];return e}var v=class extends Error{constructor(e,t){super(t),this.message=t,this.key=e}},g=class e{constructor(e,t=[]){this.parent=e,this.bindings={};for(const[e,r]of t)this.bindings[e]=r}concat(t){return new e(this,t)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}};const b={kind:"null"},x={kind:"number"},w={kind:"string"},k={kind:"boolean"},S={kind:"color"},$={kind:"projectionDefinition"},z={kind:"object"},_={kind:"value"},A={kind:"collator"},j={kind:"formatted"},q={kind:"padding"},M={kind:"colorArray"},C={kind:"numberArray"},E={kind:"resolvedImage"},N={kind:"variableAnchorOffsetCollection"};function I(e,t){return{kind:"array",itemType:e,N:t}}function O(e){if("array"===e.kind){const t=O(e.itemType);return"number"==typeof e.N?`array<${t}, ${e.N}>`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}const D=[b,x,w,k,S,$,j,z,I(_),q,C,M,E,N];function P(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!P(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(const e of D)if(!P(e,t))return null}return`Expected ${O(e)} but found ${O(t)} instead.`}function T(e,t){return t.some(t=>t.kind===e.kind)}function F(e,t){return t.some(t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e)}function J(e,t){return"array"===e.kind&&"array"===t.kind?e.itemType.kind===t.itemType.kind&&"number"==typeof e.N:e.kind===t.kind}const L=.96422,V=.82521,U=4/29,G=6/29,B=3*G*G,R=G*G*G,H=Math.PI/180,X=180/Math.PI;function W(e){return(e%=360)<0&&(e+=360),e}function K([e,t,r,n]){let a,o;const i=Z((.2225045*(e=Y(e))+.7168786*(t=Y(t))+.0606169*(r=Y(r)))/1);e===t&&t===r?a=o=i:(a=Z((.4360747*e+.3850649*t+.1430804*r)/L),o=Z((.0139322*e+.0971045*t+.7141733*r)/V));const s=116*i-16;return[s<0?0:s,500*(a-i),200*(i-o),n]}function Y(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Z(e){return e>R?Math.pow(e,1/3):e/B+U}function Q([e,t,r,n]){let a=(e+16)/116,o=isNaN(t)?a:a+t/500,i=isNaN(r)?a:a-r/200;return a=1*te(a),o=L*te(o),i=V*te(i),[ee(3.1338561*o-1.6168667*a-.4906146*i),ee(-.9787684*o+1.9161415*a+.033454*i),ee(.0719453*o-.2289914*a+1.4052427*i),n]}function ee(e){return(e=e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055)<0?0:e>1?1:e}function te(e){return e>G?e*e*e:B*(e-U)}const re=Object.hasOwn||function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};function ne(e,t){return re(e,t)?e[t]:void 0}function ae(e){return parseInt(e.padEnd(2,e),16)/255}function oe(e,t){return ie(t?e/100:e,0,1)}function ie(e,t,r){return Math.min(Math.max(t,e),r)}function se(e){return!e.some(Number.isNaN)}const le={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
1ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};function ue(e,t,r){return e+r*(t-e)}function pe(e,t,r){return e.map((e,n)=>ue(e,t[n],r))}var ce=class e{constructor(e,t,r,n=1,a=!0){this.r=e,this.g=t,this.b=r,this.a=n,a||(this.r*=n,this.g*=n,this.b*=n,n||this.overwriteGetter("rgb",[e,t,r,n]))}static{this.black=new e(0,0,0,1)}static{this.white=new e(1,1,1,1)}static{this.transparent=new e(0,0,0,0)}static{this.red=new e(1,0,0,1)}static parse(t){if(t instanceof e)return t;if("string"!=typeof t)return;const r=function(e){if("transparent"===(e=e.toLowerCase().trim()))return[0,0,0,0];const t=ne(le,e);if(t){const[e,r,n]=t;return[e/255,r/255,n/255,1]}if(e.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(e)){const t=e.length<6?1:2;let r=1;return[ae(e.slice(r,r+=t)),ae(e.slice(r,r+=t)),ae(e.slice(r,r+=t)),ae(e.slice(r,r+t)||"ff")]}if(e.startsWith("rgb")){const t=e.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(t){const[e,r,n,a,o,i,s,l,u,p,c,f]=t,y=[a||" ",s||" ",p].join("");if("  "===y||"  /"===y||",,"===y||",,,"===y){const e=[n,i,u].join(""),t="%%%"===e?100:""===e?255:0;if(t){const e=[ie(+r/t,0,1),ie(+o/t,0,1),ie(+l/t,0,1),c?oe(+c,f):1];if(se(e))return e}}return}}const r=e.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(r){const[e,t,n,a,o,i,s,l,u]=r,p=[n||" ",o||" ",s].join("");if("  "===p||"  /"===p||",,"===p||",,,"===p){const e=[+t,ie(+a,0,100),ie(+i,0,100),l?oe(+l,u):1];if(se(e))return function([e,t,r,n]){function a(n){const a=(n+e/30)%12,o=t*Math.min(r,1-r);return r-o*Math.max(-1,Math.min(a-3,9-a,1))}return e=W(e),t/=100,r/=100,[a(0),a(8),a(4),n]}(e)}}}(t);return r?new e(...r,!1):void 0}get rgb(){const{r:e,g:t,b:r,a:n}=this,a=n||1/0;return this.overwriteGetter("rgb",[e/a,t/a,r/a,n])}get hcl(){return this.overwriteGetter("hcl",function(e){const[t,r,n,a]=K(e),o=Math.sqrt(r*r+n*n);return[Math.round(1e4*o)?W(Math.atan2(n,r)*X):NaN,o,t,a]}(this.rgb))}get lab(){return this.overwriteGetter("lab",K(this.rgb))}overwriteGetter(e,t){return Object.defineProperty(this,e,{value:t}),t}toString(){const[e,t,r,n]=this.rgb;return`rgba(${[e,t,r].map(e=>Math.round(255*e)).join(",")},${n})`}static interpolate(t,r,n,a="rgb"){switch(a){case"rgb":{const[a,o,i,s]=pe(t.rgb,r.rgb,n);return new e(a,o,i,s,!1)}case"hcl":{const[a,o,i,s]=t.hcl,[l,u,p,c]=r.hcl;let f,y;if(isNaN(a)||isNaN(l))isNaN(a)?isNaN(l)?f=NaN:(f=l,1!==i&&0!==i||(y=u)):(f=a,1!==p&&0!==p||(y=o));else{let e=l-a;l>a&&e>180?e-=360:l<a&&a-l>180&&(e+=360),f=a+n*e}const[d,m,h,v]=function([e,t,r,n]){return e=isNaN(e)?0:e*H,Q([r,Math.cos(e)*t,Math.sin(e)*t,n])}([f,y??ue(o,u,n),ue(i,p,n),ue(s,c,n)]);return new e(d,m,h,v,!1)}case"lab":{const[a,o,i,s]=Q(pe(t.lab,r.lab,n));return new e(a,o,i,s,!1)}}}},fe=class{constructor(e,t,r){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}};const ye=["bottom","center","top"];var de=class{constructor(e,t,r,n,a,o){this.text=e,this.image=t,this.scale=r,this.fontStack=n,this.textColor=a,this.verticalAlign=o}},me=class e{constructor(e){this.sections=e}static fromString(t){return new e([new de(t,null,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(e=>0!==e.text.length||e.image&&0!==e.image.name.length)}static factory(t){return t instanceof e?t:e.fromString(t)}toString(){return 0===this.sections.length?"":this.sections.map(e=>e.text).join("")}},he=class e{constructor(e){this.values=e.slice()}static parse(t){if(t instanceof e)return t;if("number"==typeof t)return new e([t,t,t,t]);if(Array.isArray(t)&&!(t.length<1||t.length>4)){for(const e of t)if("number"!=typeof e)return;switch(t.length){case 1:t=[t[0],t[0],t[0],t[0]];break;case 2:t=[t[0],t[1],t[0],t[1]];break;case 3:t=[t[0],t[1],t[2],t[1]]}return new e(t)}}toString(){return JSON.stringify(this.values)}
1static interpolate(t,r,n){return new e(pe(t.values,r.values,n))}},ve=class e{constructor(e){this.values=e.slice()}static parse(t){if(t instanceof e)return t;if("number"==typeof t)return new e([t]);if(Array.isArray(t)){for(const e of t)if("number"!=typeof e)return;return new e(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,r,n){return new e(pe(t.values,r.values,n))}},ge=class e{constructor(e){this.values=e.slice()}static parse(t){if(t instanceof e)return t;if("string"==typeof t){const r=ce.parse(t);if(!r)return;return new e([r])}if(!Array.isArray(t))return;const r=[];for(const e of t){if("string"!=typeof e)return;const t=ce.parse(e);if(!t)return;r.push(t)}return new e(r)}toString(){return JSON.stringify(this.values)}static interpolate(t,r,n,a="rgb"){const o=[];if(t.values.length!=r.values.length)throw new Error(`colorArray: Arrays have mismatched length (${t.values.length} vs. ${r.values.length}), cannot interpolate.`);for(let e=0;e<t.values.length;e++)o.push(ce.interpolate(t.values[e],r.values[e],n,a));return new e(o)}},be=class extends Error{constructor(e){super(e),this.name="RuntimeError"}toJSON(){return this.message}};const xe=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);var we=class e{constructor(e){this.values=e.slice()}static parse(t){if(t instanceof e)return t;if(Array.isArray(t)&&!(t.length<1)&&t.length%2==0){for(let e=0;e<t.length;e+=2){const r=t[e],n=t[e+1];if("string"!=typeof r||!xe.has(r))return;if(!Array.isArray(n)||2!==n.length||"number"!=typeof n[0]||"number"!=typeof n[1])return}return new e(t)}}toString(){return JSON.stringify(this.values)}static interpolate(t,r,n){const a=t.values,o=r.values;if(a.length!==o.length)throw new be(`Cannot interpolate values of different length. from: ${t.toString()}, to: ${r.toString()}`);const i=[];for(let e=0;e<a.length;e+=2){if(a[e]!==o[e])throw new be(`Cannot interpolate values containing mismatched anchors. from[${e}]: ${a[e]}, to[${e}]: ${o[e]}`);i.push(a[e]);const[t,r]=a[e+1],[s,l]=o[e+1];i.push([ue(t,s,n),ue(r,l,n)])}return new e(i)}},ke=class e{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(t){return t?new e({name:t,available:!1}):null}},Se=class e{constructor(e,t,r){this.from=e,this.to=t,this.transition=r}static interpolate(t,r,n){return new e(t,r,n)}static parse(t){return t instanceof e?t:Array.isArray(t)&&3===t.length&&"string"==typeof t[0]&&"string"==typeof t[1]&&"number"==typeof t[2]?new e(t[0],t[1],t[2]):"object"==typeof t&&"string"==typeof t.from&&"string"==typeof t.to&&"number"==typeof t.transition?new e(t.from,t.to,t.transition):"string"==typeof t?new e(t,t,1):void 0}};function $e(e,t,r,n){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof r&&r>=0&&r<=255?void 0===n||"number"==typeof n&&n>=0&&n<=1?null:`Invalid rgba value [${[e,t,r,n].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof n?[e,t,r,n]:[e,t,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function ze(e){if(null===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||e instanceof Se||e instanceof ce||e instanceof fe||e instanceof me||e instanceof he||e instanceof ve||e instanceof ge||e instanceof we||e instanceof ke)return!0;if(Array.isArray(e)){for(const t of e)if(!ze(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!ze(e[t]))return!1;return!0}return!1}function _e(e){if(null===e)return b;if("string"==typeof e)return w;if("boolean"==typeof e)return k;if("number"==typeof e)return x;if(e instanceof ce)return S;if(e instanceof Se)return $;if(e instanceof fe)return A;if(e instanceof me)return j;if(e instanceof he)return q;if(e instanceof ve)return C;if(e instanceof ge)return M;if(e instanceof we)return N;if(e instanceof ke)return E;if(Array.isArray(e)){const t=e.length;let r;for(const t of e){const e=_e(t);if(r){if(r===e)continue;r=_;break}r=e}return I(r||_,t)}return z}function Ae(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof ce||e instanceof Se||e instanceof me||e instanceof he||e instanceof ve||e instanceof ge||e instanceof we||e instanceof ke?e.toString():JSON.stringify(e)}var je=class e{constructor(e,t){this.type=e,this.value=t}static parse(t,r){if(2!==t.length)return r.error(`'literal' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!ze(t[1]))return r.error("invalid value");const n=t[1];let a=_e(n);const o=r.expectedType;return"array"!==a.kind||0!==a.N||!o||"array"!==o.kind||"number"==typeof o.N&&0!==o.N||(a=o),new e(a,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}};const qe={string:w,number:x,boolean:k,object:z};var Me=class e{constructor(e,t){this.type=e,this.args=t}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let n,a=1;const o=t[0];if("array"===o){let e,o;if(t.length>2){const n=t[1];if("string"!=typeof n||!(n in qe)||"object"===n)return r.error('The item type argument of "array" must be one of string, number, boolean',1);e=qe[n],a++}else e=_;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return r.error('The length argument to "array" must be a positive integer literal',2);o=t[2],a++}n=I(e,o)}else{if(!qe[o])throw new Error(`Types doesn't contain name = ${o}`);n=qe[o]}const i=[];for(;a<t.length;a++){const e=r.parse(t[a],a,_);if(!e)return null;i.push(e)}return new e(n,i)}evaluate(e){for(let t=0;t<this.args.length;t++){const r=this.args[t].evaluate(e);
1if(!P(this.type,_e(r)))return r;if(t===this.args.length-1)throw new be(`Expected value to be of type ${O(this.type)}, but found ${O(_e(r))} instead.`)}throw new Error}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}};const Ce={"to-boolean":k,"to-color":S,"to-number":x,"to-string":w};var Ee=class e{constructor(e,t){this.type=e,this.args=t}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");const n=t[0];if(!Ce[n])throw new Error(`Can't parse ${n} as it is not part of the known types`);if(("to-boolean"===n||"to-string"===n)&&2!==t.length)return r.error("Expected one argument.");const a=Ce[n],o=[];for(let e=1;e<t.length;e++){const n=r.parse(t[e],e,_);if(!n)return null;o.push(n)}return new e(a,o)}evaluate(e){switch(this.type.kind){case"boolean":return Boolean(this.args[0].evaluate(e));case"color":{let t,r;for(const n of this.args){if(t=n.evaluate(e),r=null,t instanceof ce)return t;if("string"==typeof t){const r=e.parseColor(t);if(r)return r}else if(Array.isArray(t)&&(r=t.length<3||t.length>4?`Invalid rgba value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:$e(t[0],t[1],t[2],t[3]),!r))return new ce(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new be(r||`Could not parse color from value '${"string"==typeof t?t:JSON.stringify(t)}'`)}case"padding":{let t;for(const r of this.args){t=r.evaluate(e);const n=he.parse(t);if(n)return n}throw new be(`Could not parse padding from value '${"string"==typeof t?t:JSON.stringify(t)}'`)}case"numberArray":{let t;for(const r of this.args){t=r.evaluate(e);const n=ve.parse(t);if(n)return n}throw new be(`Could not parse numberArray from value '${"string"==typeof t?t:JSON.stringify(t)}'`)}case"colorArray":{let t;for(const r of this.args){t=r.evaluate(e);const n=ge.parse(t);if(n)return n}throw new be(`Could not parse colorArray from value '${"string"==typeof t?t:JSON.stringify(t)}'`)}case"variableAnchorOffsetCollection":{let t;for(const r of this.args){t=r.evaluate(e);const n=we.parse(t);if(n)return n}throw new be(`Could not parse variableAnchorOffsetCollection from value '${"string"==typeof t?t:JSON.stringify(t)}'`)}case"number":{let t=null;for(const r of this.args){if(t=r.evaluate(e),null===t)return 0;const n=Number(t);if(!isNaN(n))return n}throw new be(`Could not convert ${JSON.stringify(t)} to number.`)}case"formatted":return me.fromString(Ae(this.args[0].evaluate(e)));case"resolvedImage":return ke.fromString(Ae(this.args[0].evaluate(e)));case"projectionDefinition":return this.args[0].evaluate(e);default:return Ae(this.args[0].evaluate(e))}}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}};const Ne=["Unknown","Point","LineString","Polygon"];var Ie=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache=new Map,this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?Ne[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(e){let t=this._parseColorCache.get(e);return t||(t=ce.parse(e),this._parseColorCache.set(e,t)),t}},Oe=class e{constructor(e,t,r=[],n,a=new g,o=[]){this.registry=e,this.path=r,this.key=r.map(e=>`[${e}]`).join(""),this.scope=a,this.errors=o,this.expectedType=n,this._isConstant=t}parse(e,t,r,n,a={}){return t?this.concat(t,r,n)._parse(e,a):this._parse(e,a)}_parse(e,t){function r(e,t,r){return"assert"===r?new Me(t,[e]):"coerce"===r?new Ee(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const n=e[0];if("string"!=typeof n)return this.error(`Expression name must be a string, but found ${typeof n} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const a=this.registry[n];if(a){let n=a.parse(e,this);if(!n)return null;if(this.expectedType){const e=this.expectedType,a=n.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==a.kind){if("projectionDefinition"===e.kind&&["string","array"].includes(a.kind)||["color","formatted","resolvedImage"].includes(e.kind)&&["value","string"].includes(a.kind)||["padding","numberArray"].includes(e.kind)&&["value","number","array"].includes(a.kind)||"colorArray"===e.kind&&["value","string","array"].includes(a.kind)||"variableAnchorOffsetCollection"===e.kind&&["value","array"].includes(a.kind))n=r(n,e,t.typeAnnotation||"coerce");else if(this.checkSubtype(e,a))return null}else n=r(n,e,t.typeAnnotation||"assert")}if(!(n instanceof je)&&"resolvedImage"!==n.type.kind&&this._isConstant(n)){const e=new Ie;try{n=new je(n.type,n.evaluate(e))}catch(e){return this.error(e.message),null}}return n}return this.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0)}return void 0===e?this.error("'undefined' value invalid. Use null instead."):"object"==typeof e?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof e} instead.`)}concat(t,r,n){const a="number"==typeof t?this.path.concat(t):this.path,o=n?this.scope.concat(n):this.scope;return new e(this.registry,this._isConstant,a,r||null,o,this.errors)}error(e,...t){const r=`${this.key}${t.map(e=>`[${e}]`).join("")}`;this.errors.push(new v(r,e))}checkSubtype(e,t){const r=P(e,t);return r&&this.error(r),r}},De=class e{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);const n=[];for(let e=1;e<t.length-1;e+=2){const a=t[e];if("string"!=typeof a)return r.error(`Expected string, but found ${typeof a} instead.`,e);if(/[^a-zA-Z0-9_]/.test(a))return r.error("Variable names must contain only alphanumeric characters or '_'.",e);const o=r.parse(t[e+1],e+1);if(!o)return null;n.push([a,o])}const a=r.parse(t[t.length-1],t.length-1,r.expectedType,n);return a?new e(n,a):null}outputDefined(){return this.result.outputDefined()}},Pe=class e{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(t,r){if(2!==t.length||"string"!=typeof t[1])return r.error("'var' expression requires exactly one string literal argument.");const n=t[1];return r.scope.has(n)?new e(n,r.scope.get(n)):r.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}};function Te(e,t){const r=e.length-1;let n,a,o=0,i=r,s=0;for(;o<=i;)if(s=Math.floor((o+i)/2),n=e[s],a=e[s+1],n<=t){if(s===r||t<a)return s;o=s+1}else{if(!(n>t))throw new be("Input is not a number.");i=s-1}return 0}var Fe=class e{constructor(e,t,r){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[e,t]of r)this.labels.push(e),this.outputs.push(t)}static parse(t,r){if(t.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return r.error("Expected an even number of arguments.");const n=r.parse(t[1],1,x);if(!n)return null;const a=[];let o=null;r.expectedType&&"value"!==r.expectedType.kind&&(o=r.expectedType);for(let e=1;e<t.length;e+=2){const n=1===e?-1/0:t[e],i=t[e+1],s=e,l=e+1;if("number"!=typeof n)return r.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not c
1omputed expressions) for the input values.',s);if(a.length&&a[a.length-1][0]>=n)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',s);const u=r.parse(i,l,o);if(!u)return null;o=o||u.type,a.push([n,u])}return new e(o,n,a)}evaluate(e){const t=this.labels,r=this.outputs;if(1===t.length)return r[0].evaluate(e);const n=this.input.evaluate(e);if(n<=t[0])return r[0].evaluate(e);const a=t.length;return n>=t[a-1]?r[a-1].evaluate(e):r[Te(t,n)].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}},Je=p(u((e,t)=>{function r(e,t,r,n){this.cx=3*e,this.bx=3*(r-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(n-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=t,this.p2x=r,this.p2y=n}t.exports=r,r.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,t){if(void 0===t&&(t=1e-6),e<0)return 0;if(e>1)return 1;for(var r=e,n=0;n<8;n++){var a=this.sampleCurveX(r)-e;if(Math.abs(a)<t)return r;var o=this.sampleCurveDerivativeX(r);if(Math.abs(o)<1e-6)break;r-=a/o}var i=0,s=1;for(r=e,n=0;n<20&&(a=this.sampleCurveX(r),!(Math.abs(a-e)<t));n++)e>a?i=r:s=r,r=.5*(s-i)+i;return r},solve:function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))}}})(),1),Le=class e{constructor(e,t,r,n,a){this.type=e,this.operator=t,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(const[e,t]of a)this.labels.push(e),this.outputs.push(t)}static interpolationFactor(e,t,r,n){let a=0;if("exponential"===e.name)a=Ve(t,e.base,r,n);else if("linear"===e.name)a=Ve(t,1,r,n);else if("cubic-bezier"===e.name){const o=e.controlPoints;a=new Je.default(o[0],o[1],o[2],o[3]).solve(Ve(t,1,r,n))}return a}static parse(t,r){let[n,a,o,...i]=t;if(!Array.isArray(a)||0===a.length)return r.error("Expected an interpolation type expression.",1);if("linear"===a[0])a={name:"linear"};else if("exponential"===a[0]){const e=a[1];if("number"!=typeof e)return r.error("Exponential interpolation requires a numeric base.",1,1);a={name:"exponential",base:e}}else{if("cubic-bezier"!==a[0])return r.error(`Unknown interpolation type ${String(a[0])}`,1,0);{const e=a.slice(1);if(4!==e.length||e.some(e=>"number"!=typeof e||e<0||e>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);a={name:"cubic-bezier",controlPoints:e}}}if(t.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(o=r.parse(o,2,x),!o)return null;const s=[];let l=null;"interpolate-hcl"!==n&&"interpolate-lab"!==n||r.expectedType==M?r.expectedType&&"value"!==r.expectedType.kind&&(l=r.expectedType):l=S;for(let e=0;e<i.length;e+=2){const t=i[e],n=i[e+1],a=e+3,o=e+4;if("number"!=typeof t)return r.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',a);if(s.length&&s[s.length-1][0]>=t)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',a);const u=r.parse(n,o,l);if(!u)return null;l=l||u.type,s.push([t,u])}return J(l,x)||J(l,$)||J(l,S)||J(l,q)||J(l,C)||J(l,M)||J(l,N)||J(l,I(x))?new e(l,n,a,o,s):r.error(`Type ${O(l)} is not interpolatable.`)}evaluate(t){const r=this.labels,n=this.outputs;if(1===r.length)return n[0].evaluate(t);const a=this.input.evaluate(t);if(a<=r[0])return n[0].evaluate(t);const o=r.length;if(a>=r[o-1])return n[o-1].evaluate(t);const i=Te(r,a),s=r[i],l=r[i+1],u=e.interpolationFactor(this.interpolation,a,s,l),p=n[i].evaluate(t),c=n[i+1].evaluate(t);switch(this.operator){case"interpolate":switch(this.type.kind){case"number":return ue(p,c,u);case"color":return ce.interpolate(p,c,u);case"padding":return he.interpolate(p,c,u);case"colorArray":return ge.interpolate(p,c,u);case"numberArray":return ve.interpolate(p,c,u);case"variableAnchorOffsetCollection":return we.interpolate(p,c,u);case"array":return pe(p,c,u);case"projectionDefinition":return Se.interpolate(p,c,u)}case"interpolate-hcl":switch(this.type.kind){case"color":return ce.interpolate(p,c,u,"hcl");case"colorArray":return ge.interpolate(p,c,u,"hcl")}case"interpolate-lab":switch(this.type.kind){case"color":return ce.interpolate(p,c,u,"lab");case"colorArray":return ge.interpolate(p,c,u,"lab")}}}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}};function Ve(e,t,r,n){const a=n-r,o=e-r;return 0===a?0:1===t?o/a:(Math.pow(t,o)-1)/(Math.pow(t,a)-1)}ce.interpolate,he.interpolate,ve.interpolate,ge.interpolate,we.interpolate;var Ue=class e{constructor(e,t){this.type=e,this.args=t}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");let n=null;const a=r.expectedType;a&&"value"!==a.kind&&(n=a);const o=[];for(const e of t.slice(1)){const t=r.parse(e,1+o.length,n,void 0,{typeAnnotation:"omit"});if(!t)return null;n=n||t.type,o.push(t)}if(!n)throw new Error("No output type");return a&&o.some(e=>P(a,e.type))?new e(_,o):new e(n,o)}evaluate(e){let t,r=null,n=0;for(const a of this.args)if(n++,r=a.evaluate(e),r&&r instanceof ke&&!r.available&&(t||(t=r.name),r=null,n===this.args.length&&(r=t)),null!==r)break;return r}
vendor: 4,167 bytes, line 1
1eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}};function Ge(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function Be(e,t,r,n){return 0===n.compare(t,r)}function Re(e,t,r){const n="=="!==e&&"!="!==e;return class a{constructor(e,t,r){this.type=k,this.lhs=e,this.rhs=t,this.collator=r,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");const r=e[0];let o=t.parse(e[1],1,_);if(!o)return null;if(!Ge(r,o.type))return t.concat(1).error(`"${r}" comparisons are not supported for type '${O(o.type)}'.`);let i=t.parse(e[2],2,_);if(!i)return null;if(!Ge(r,i.type))return t.concat(2).error(`"${r}" comparisons are not supported for type '${O(i.type)}'.`);if(o.type.kind!==i.type.kind&&"value"!==o.type.kind&&"value"!==i.type.kind)return t.error(`Cannot compare types '${O(o.type)}' and '${O(i.type)}'.`);n&&("value"===o.type.kind&&"value"!==i.type.kind?o=new Me(i.type,[o]):"value"!==o.type.kind&&"value"===i.type.kind&&(i=new Me(o.type,[i])));let s=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==i.type.kind&&"value"!==o.type.kind&&"value"!==i.type.kind)return t.error("Cannot use collator to compare non-string types.");if(s=t.parse(e[3],3,A),!s)return null}return new a(o,i,s)}evaluate(a){const o=this.lhs.evaluate(a),i=this.rhs.evaluate(a);if(n&&this.hasUntypedArgument){const t=_e(o),r=_e(i);if(t.kind!==r.kind||"string"!==t.kind&&"number"!==t.kind)throw new be(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${r.kind}) instead.`)}if(this.collator&&!n&&this.hasUntypedArgument){const e=_e(o),r=_e(i);if("string"!==e.kind||"string"!==r.kind)return t(a,o,i)}return this.collator?r(a,o,i,this.collator.evaluate(a)):t(a,o,i)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}}}const He=Re("==",function(e,t,r){return t===r},Be),Xe=Re("!=",function(e,t,r){return t!==r},function(e,t,r,n){return!Be(0,t,r,n)}),We=Re("<",function(e,t,r){return t<r},function(e,t,r,n){return n.compare(t,r)<0}),Ke=Re(">",function(e,t,r){return t>r},function(e,t,r,n){return n.compare(t,r)>0}),Ye=Re("<=",function(e,t,r){return t<=r},function(e,t,r,n){return n.compare(t,r)<=0}),Ze=Re(">=",function(e,t,r){return t>=r},function(e,t,r,n){return n.compare(t,r)>=0});var Qe=class e{constructor(e,t,r){this.type=A,this.locale=r,this.caseSensitive=e,this.diacriticSensitive=t}static parse(t,r){if(2!==t.length)return r.error("Expected one argument.");const n=t[1];if("object"!=typeof n||Array.isArray(n))return r.error("Collator options argument must be an object.");const a=r.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,k);if(!a)return null;const o=r.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,k);if(!o)return null;let i=null;return n.locale&&(i=r.parse(n.locale,1,w),!i)?null:new e(a,o,i)}evaluate(e){return new fe(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}};const et=8192;function tt(e,t){const r=(180+e[0])/360,n=(a=e[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+a*Math.PI/360)))/360);var a;const o=Math.pow(2,t.z);return[Math.round(r*o*et),Math.round(n*o*et)]}function rt(e,t){const r=Math.pow(2,t.z);return[(a=(e[0]/et+t.x)/r,360*a-180),(n=(e[1]/et+t.y)/r,360/Math.PI*Math.atan(Math.exp((180-360*n)*Math.PI/180))-90)];var n,a}function nt(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function at(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function ot(e,t,r){return t[1]>e[1]!=r[1]>e[1]&&e[0]<(r[0]-t[0])*(e[1]-t[1])/(r[1]-t[1])+t[0]}function it(e,t,r){const n=e[0]-t[0],a=e[1]-t[1],o=e[0]-r[0],i=e[1]-r[1];return n*i-o*a===0&&n*o<=0&&a*i<=0}function st(e,t,r,n){const a=[t[0]-e[0],t[1]-e[1]];
1return 0!==(o=[n[0]-r[0],n[1]-r[1]])[0]*(i=a)[1]-o[1]*i[0]&&!(!yt(e,t,r,n)||!yt(r,n,e,t));var o,i}function lt(e,t,r){for(const n of r)for(let r=0;r<n.length-1;++r)if(st(e,t,n[r],n[r+1]))return!0;return!1}function ut(e,t,r=!1){let n=!1;for(const a of t)for(let t=0;t<a.length-1;t++){if(it(e,a[t],a[t+1]))return r;ot(e,a[t],a[t+1])&&(n=!n)}return n}function pt(e,t){for(const r of t)if(ut(e,r))return!0;return!1}function ct(e,t){for(const r of e)if(!ut(r,t))return!1;for(let r=0;r<e.length-1;++r)if(lt(e[r],e[r+1],t))return!1;return!0}function ft(e,t){for(const r of t)if(ct(e,r))return!0;return!1}function yt(e,t,r,n){const a=e[0]-r[0],o=e[1]-r[1],i=t[0]-r[0],s=t[1]-r[1],l=n[0]-r[0],u=n[1]-r[1],p=a*u-l*o,c=i*u-l*s;return p>0&&c<0||p<0&&c>0}function dt(e,t,r){const n=[];for(let a=0;a<e.length;a++){const o=[];for(let n=0;n<e[a].length;n++){const i=tt(e[a][n],r);nt(t,i),o.push(i)}n.push(o)}return n}function mt(e,t,r){const n=[];for(let a=0;a<e.length;a++){const o=dt(e[a],t,r);n.push(o)}return n}function ht(e,t,r,n){if(e[0]<r[0]||e[0]>r[2]){const t=.5*n;let a=e[0]-r[0]>t?-n:r[0]-e[0]>t?n:0;0===a&&(a=e[0]-r[2]>t?-n:r[2]-e[0]>t?n:0),e[0]+=a}nt(t,e)}function vt(e,t,r,n){const a=Math.pow(2,n.z)*et,o=[n.x*et,n.y*et],i=[];for(const n of e)for(const e of n){const n=[e.x+o[0],e.y+o[1]];ht(n,t,r,a),i.push(n)}return i}function gt(e,t,r,n){const a=Math.pow(2,n.z)*et,o=[n.x*et,n.y*et],i=[];for(const r of e){const e=[];for(const n of r){const r=[n.x+o[0],n.y+o[1]];nt(t,r),e.push(r)}i.push(e)}if(t[2]-t[0]<=a/2){(s=t)[0]=s[1]=1/0,s[2]=s[3]=-1/0;for(const e of i)for(const n of e)ht(n,t,r,a)}var s;return i}var bt=class e{constructor(e,t){this.type=k,this.geojson=e,this.geometries=t}static parse(t,r){if(2!==t.length)return r.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(ze(t[1])){const r=t[1];if("FeatureCollection"===r.type){const t=[];for(const e of r.features){const{type:r,coordinates:n}=e.geometry;"Polygon"===r&&t.push(n),"MultiPolygon"===r&&t.push(...n)}if(t.length)return new e(r,{type:"MultiPolygon",coordinates:t})}else if("Feature"===r.type){const t=r.geometry.type;if("Polygon"===t||"MultiPolygon"===t)return new e(r,r.geometry)}else if("Polygon"===r.type||"MultiPolygon"===r.type)return new e(r,r)}return r.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){const r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],a=e.canonicalID();if("Polygon"===t.type){const o=dt(t.coordinates,n,a),i=vt(e.geometry(),r,n,a);if(!at(r,n))return!1;for(const e of i)if(!ut(e,o))return!1}if("MultiPolygon"===t.type){const o=mt(t.coordinates,n,a),i=vt(e.geometry(),r,n,a);if(!at(r,n))return!1;for(const e of i)if(!pt(e,o))return!1}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){const r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],a=e.canonicalID();if("Polygon"===t.type){const o=dt(t.coordinates,n,a),i=gt(e.geometry(),r,n,a);if(!at(r,n))return!1;for(const e of i)if(!ct(e,o))return!1}if("MultiPolygon"===t.type){const o=mt(t.coordinates,n,a),i=gt(e.geometry(),r,n,a);if(!at(r,n))return!1;for(const e of i)if(!ft(e,o))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},xt=class{constructor(e=[],t=(e,t)=>e<t?-1:e>t?1:0){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let e=(this.length>>1)-1;e>=0;e--)this._down(e)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:r}=this,n=t[e];for(;e>0;){const a=e-1>>1,o=t[a];if(r(n,o)>=0)break;t[e]=o,e=a}t[e]=n}_down(e){const{data:t,compare:r}=this,n=this.length>>1,a=t[e];for(;e<n;){let n=1+(e<<1);const o=n+1;if(o<this.length&&r(t[o],t[n])<0&&(n=o),r(t[n],a)>=0)break;t[e]=t[n],e=n}t[e]=a}};function wt(e){let t=0;for(let r,n,a=0,o=e.length,i=o-1;a<o;i=a++)r=e[a],n=e[i],t+=(n.x-r.x)*(r.y+n.y);return t}const kt=1/298.257223563,St=kt*(2-kt),$t=Math.PI/180;var zt=class{constructor(e){const t=6378.137*$t*1e3,r=Math.cos(e*$t),n=1/(1-St*(1-r*r)),a=Math.sqrt(n);this.kx=t*a*r,this.ky=t*a*n*(1-St)}distance(e,t){const r=this.wrap(e[0]-t[0])*this.kx,n=(e[1]-t[1])*this.ky;return Math.sqrt(r*r+n*n)}pointOnLine(e,t){let r,n,a,o,i=1/0;for(let s=0;s<e.length-1;s++){let l=e[s][0],u=e[s][1],p=this.wrap(e[s+1][0]-l)*this.kx,c=(e[s+1][1]-u)*this.ky,f=0;0===p&&0===c||(f=(this.wrap(t[0]-l)*this.kx*p+(t[1]-u)*this.ky*c)/(p*p+c*c),f>1?(l=e[s+1][0],u=e[s+1][1]):f>0&&(l+=p/this.kx*f,u+=c/this.ky*f)),p=this.wrap(t[0]-l)*this.kx,c=(t[1]-u)*this.ky;const y=p*p+c*c;y<i&&(i=y,r=l,n=u,a=s,o=f)}return{point:[r,n],index:a,t:Math.max(0,Math.min(1,o))}}wrap(e){for(;e<-180;)e+=360;for(;e>180;)e-=360;return e}};function _t(e,t){return t[0]-e[0]}function At(e){return e[1]-e[0]+1}function jt(e,t){return e[1]>=e[0]&&e[1]<t}function qt(e,t){if(e[0]>
1e[1])return[null,null];const r=At(e);if(t){if(2===r)return[e,null];const t=Math.floor(r/2);return[[e[0],e[0]+t],[e[0]+t,e[1]]]}if(1===r)return[e,null];const n=Math.floor(r/2)-1;return[[e[0],e[0]+n],[e[0]+n+1,e[1]]]}function Mt(e,t){if(!jt(t,e.length))return[1/0,1/0,-1/0,-1/0];const r=[1/0,1/0,-1/0,-1/0];for(let n=t[0];n<=t[1];++n)nt(r,e[n]);return r}function Ct(e){const t=[1/0,1/0,-1/0,-1/0];for(const r of e)for(const e of r)nt(t,e);return t}function Et(e){return e[0]!==-1/0&&e[1]!==-1/0&&e[2]!==1/0&&e[3]!==1/0}function Nt(e,t,r){if(!Et(e)||!Et(t))return NaN;let n=0,a=0;return e[2]<t[0]&&(n=t[0]-e[2]),e[0]>t[2]&&(n=e[0]-t[2]),e[1]>t[3]&&(a=e[1]-t[3]),e[3]<t[1]&&(a=t[1]-e[3]),r.distance([0,0],[n,a])}function It(e,t,r){const n=r.pointOnLine(t,e);return r.distance(e,n.point)}function Ot(e,t,r,n,a){const o=Math.min(It(e,[r,n],a),It(t,[r,n],a)),i=Math.min(It(r,[e,t],a),It(n,[e,t],a));return Math.min(o,i)}function Dt(e,t,r,n,a){if(!jt(t,e.length)||!jt(n,r.length))return 1/0;let o=1/0;for(let i=t[0];i<t[1];++i){const t=e[i],s=e[i+1];for(let e=n[0];e<n[1];++e){const n=r[e],i=r[e+1];if(st(t,s,n,i))return 0;o=Math.min(o,Ot(t,s,n,i,a))}}return o}function Pt(e,t,r,n,a){if(!jt(t,e.length)||!jt(n,r.length))return NaN;let o=1/0;for(let i=t[0];i<=t[1];++i)for(let t=n[0];t<=n[1];++t)if(o=Math.min(o,a.distance(e[i],r[t])),0===o)return o;return o}function Tt(e,t,r){if(ut(e,t,!0))return 0;let n=1/0;for(const a of t){const t=a[0],o=a[a.length-1];if(t!==o&&(n=Math.min(n,It(e,[o,t],r)),0===n))return n;const i=r.pointOnLine(a,e);if(n=Math.min(n,r.distance(e,i.point)),0===n)return n}return n}function Ft(e,t,r,n){if(!jt(t,e.length))return NaN;for(let n=t[0];n<=t[1];++n)if(ut(e[n],r,!0))return 0;let a=1/0;for(let o=t[0];o<t[1];++o){const t=e[o],i=e[o+1];for(const e of r)for(let r=0,o=e.length,s=o-1;r<o;s=r++){const o=e[s],l=e[r];if(st(t,i,o,l))return 0;a=Math.min(a,Ot(t,i,o,l,n))}}return a}function Jt(e,t){for(const r of e)for(const e of r)if(ut(e,t,!0))return!0;return!1}function Lt(e,t,r,n=1/0){const a=Ct(e),o=Ct(t);if(n!==1/0&&Nt(a,o,r)>=n)return n;if(at(a,o)){if(Jt(e,t))return 0}else if(Jt(t,e))return 0;let i=1/0;for(const n of e)for(let e=0,a=n.length,o=a-1;e<a;o=e++){const a=n[o],s=n[e];for(const e of t)for(let t=0,n=e.length,o=n-1;t<n;o=t++){const n=e[o],l=e[t];if(st(a,s,n,l))return 0;i=Math.min(i,Ot(a,s,n,l,r))}}return i}function Vt(e,t,r,n,a,o){if(!o)return;const i=Nt(Mt(n,o),a,r);i<t&&e.push([i,o,[0,0]])}function Ut(e,t,r,n,a,o,i){if(!o||!i)return;const s=Nt(Mt(n,o),Mt(a,i),r);s<t&&e.push([s,o,i])}function Gt(e,t,r,n,a=1/0){let o=Math.min(n.distance(e[0],r[0][0]),a);if(0===o)return o;const i=new xt([[0,[0,e.length-1],[0,0]]],_t),s=Ct(r);for(;i.length>0;){const a=i.pop();if(a[0]>=o)continue;const l=a[1],u=t?50:100;if(At(l)<=u){if(!jt(l,e.length))return NaN;if(t){const t=Ft(e,l,r,n);if(isNaN(t)||0===t)return t;o=Math.min(o,t)}else for(let t=l[0];t<=l[1];++t){const a=Tt(e[t],r,n);if(o=Math.min(o,a),0===o)return 0}}else{const r=qt(l,t);Vt(i,o,n,e,s,r[0]),Vt(i,o,n,e,s,r[1])}}return o}function Bt(e,t,r,n,a,o=1/0){let i=Math.min(o,a.distance(e[0],r[0]));if(0===i)return i;const s=new xt([[0,[0,e.length-1],[0,r.length-1]]],_t);for(;s.length>0;){const o=s.pop();if(o[0]>=i)continue;const l=o[1],u=o[2],p=t?50:100,c=n?50:100;if(At(l)<=p&&At(u)<=c){if(!jt(l,e.length)&&jt(u,r.length))return NaN;let o;if(t&&n)o=Dt(e,l,r,u,a),i=Math.min(i,o);else if(t&&!n){const t=e.slice(l[0],l[1]+1);for(let e=u[0];e<=u[1];++e)if(o=It(r[e],t,a),i=Math.min(i,o),0===i)return i}else if(!t&&n){const t=r.slice(u[0],u[1]+1);for(let r=l[0];r<=l[1];++r)if(o=It(e[r],t,a),i=Math.min(i,o),0===i)return i}else o=Pt(e,l,r,u,a),i=Math.min(i,o)}else{const o=qt(l,t),p=qt(u,n);Ut(s,i,a,e,r,o[0],p[0]),Ut(s,i,a,e,r,o[0],p[1]),Ut(s,i,a,e,r,o[1],p[0]),Ut(s,i,a,e,r,o[1],p[1])}}return i}function Rt(e){return"MultiPolygon"===e.type?e.coordinates.map(e=>({type:"Polygon",coordinates:e})):"MultiLineString"===e.type?e.coordinates.map(e=>({type:"LineString",coordinates:e})):"MultiPoint"===e.type?e.coordinates.map(e=>({type:"Point",coordinates:e})):[e]}var Ht=class e{constructor(e,t){this.type=x,this.geojson=e,this.geometries=t}static parse(t,r){if(2!==t.length)return r.error(`'distance' expression requires exactly one argument, but found ${t.length-1} instead.`);if(ze(t[1])){const r=t[1];if("FeatureCollection"===r.type)return new e(r,r.features.map(e=>Rt(e.geometry)).flat());if("Feature"===r.type)return new e(r,Rt(r.geometry));if("type"in r&&"coordinates"in r)return new e(r,Rt(r))}return r.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){const r=e.geometry(),n=r.flat().map(t=>rt([t.x,t.y],e.canonical));if(0===r.length)return NaN;const a=new zt(n[0][1]);let o=1/0;for(const e of t){switch(e.type){case"Point":o=Math.min(o,Bt(n,!1,[e.coordinates],!1,a,o));break;case"LineString":o=Math.min(o,Bt(n,!1,e.coordinates,!0,a,o));break;case"Polygon":o=Math.min(o,Gt(n,!1,e.coordinates,a,o))}if(0===o)return o}return o}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){const r=e.geometry(),n=r.flat().map(t=>rt([t.x,t.y],e.canonical));if(0===r.length)return NaN;const a=new zt(n[0][1]);let o=1/0;for(const e of t){switch(e.type){case"Point":o=Math.min(o,Bt(n,!0,[e.coordinates],!1,a,o));break;case"LineString":o=Math.min(o,Bt(n,!0,e.coordinates,!0,a,o));break;case"Polygon":o=Math.min(o,Gt(n,!0,e.coordinates,a,o))}if(0===o)return o}return o}(e,this.geometries);if("Polygon"===e.geometryType())return function(e,t){const r=e.geometry();if(0===r.length||0===r[0].length)return NaN;const n=function(e){if(e.length<=1)return[e];const t=[];let r,n;for(const a of e){const e=wt(a);0!==e&&(a.area=Math.abs(e),void 0===n&&(n=e<0),n===e<0?(r&&t.push(r),r=[a]):r.push(a))}return r&&t.push(r),t}(r).map(t=>t.map(t=>t.map(t=>rt([t.x,t.y],e.canonical)))),a=new zt(n[0][0][0][1]);let o=1/0;for(const e of t)for(const t of n){switch(e.type){case"Point":o=Math.min(o,Gt([e.coordinates],!1,t,a,o));break;
1case"LineString":o=Math.min(o,Gt(e.coordinates,!0,t,a,o));break;case"Polygon":o=Math.min(o,Lt(t,e.coordinates,a,o))}if(0===o)return o}return o}(e,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}},Xt=class e{constructor(e){this.type=_,this.key=e}static parse(t,r){if(2!==t.length)return r.error(`Expected 1 argument, but found ${t.length-1} instead.`);const n=t[1];return null==n?r.error("Global state property must be defined."):"string"!=typeof n?r.error(`Global state property must be string, but found ${typeof t[1]} instead.`):new e(n)}evaluate(e){const t=e.globals?.globalState;return t&&0!==Object.keys(t).length?ne(t,this.key):null}eachChild(){}outputDefined(){return!1}};const Wt={"==":He,"!=":Xe,">":Ke,"<":We,">=":Ze,"<=":Ye,array:Me,at:class e{constructor(e,t,r){this.type=e,this.index=t,this.input=r}static parse(t,r){if(3!==t.length)return r.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const n=r.parse(t[1],1,x),a=r.parse(t[2],2,I(r.expectedType||_));if(!n||!a)return null;const o=a.type;return new e(o.itemType,n,a)}evaluate(e){const t=this.index.evaluate(e),r=this.input.evaluate(e);if(t<0)throw new be(`Array index out of bounds: ${t} < 0.`);if(t>=r.length)throw new be(`Array index out of bounds: ${t} > ${r.length-1}.`);if(t!==Math.floor(t))throw new be(`Array index must be an integer, but found ${t} instead.`);return r[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}},boolean:Me,case:class e{constructor(e,t,r){this.type=e,this.branches=t,this.otherwise=r}static parse(t,r){if(t.length<4)return r.error(`Expected at least 3 arguments, but found only ${t.length-1}.`);if(t.length%2!=0)return r.error("Expected an odd number of arguments.");let n;r.expectedType&&"value"!==r.expectedType.kind&&(n=r.expectedType);const a=[];for(let e=1;e<t.length-1;e+=2){const o=r.parse(t[e],e,k);if(!o)return null;const i=r.parse(t[e+1],e+1,n);if(!i)return null;a.push([o,i]),n=n||i.type}const o=r.parse(t[t.length-1],t.length-1,n);if(!o)return null;if(!n)throw new Error("Can't infer output type");return new e(n,a,o)}evaluate(e){for(const[t,r]of this.branches)if(t.evaluate(e))return r.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[t,r]of this.branches)e(t),e(r);e(this.otherwise)}outputDefined(){return this.branches.every(([e,t])=>t.outputDefined())&&this.otherwise.outputDefined()}},coalesce:Ue,collator:Qe,format:class e{constructor(e){this.type=j,this.sections=e}static parse(t,r){if(t.length<2)return r.error("Expected at least one argument.");const n=t[1];if(!Array.isArray(n)&&"object"==typeof n)return r.error("First argument must be an image or text section.");const a=[];let o=!1;for(let e=1;e<=t.length-1;++e){const n=t[e];if(o&&"object"==typeof n&&!Array.isArray(n)){o=!1;let e=null;if(n["font-scale"]&&(e=r.parse(n["font-scale"],1,x),!e))return null;let t=null;if(n["text-font"]&&(t=r.parse(n["text-font"],1,I(w)),!t))return null;let i=null;if(n["text-color"]&&(i=r.parse(n["text-color"],1,S),!i))return null;let s=null;if(n["vertical-align"]){if("string"==typeof n["vertical-align"]&&!ye.includes(n["vertical-align"]))return r.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${n["vertical-align"]}' instead.`);if(s=r.parse(n["vertical-align"],1,w),!s)return null}const l=a[a.length-1];l.scale=e,l.font=t,l.textColor=i,l.verticalAlign=s}else{const n=r.parse(t[e],1,_);if(!n)return null;const i=n.type.kind;if("string"!==i&&"value"!==i&&"null"!==i&&"resolvedImage"!==i)return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");o=!0,a.push({content:n,scale:null,font:null,textColor:null,verticalAlign:null})}}return new e(a)}evaluate(e){return new me(this.sections.map(t=>{const r=t.content.evaluate(e);return _e(r)===E?new de("",r,null,null,null,t.verticalAlign?t.verticalAlign.evaluate(e):null):new de(Ae(r),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null,t.verticalAlign?t.verticalAlign.evaluate(e):null)}))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor),t.verticalAlign&&e(t.verticalAlign)}outputDefined(){return!1}},image:class e{constructor(e){this.type=E,this.input=e}static parse(t,r){if(2!==t.length)return r.error("Expected two arguments.");const n=r.parse(t[1],1,w);return n?new e(n):r.error("No image name provided.")}evaluate(e){const t=this.input.evaluate(e),r=ke.fromString(t);return r&&e.availableImages&&(r.available=e.availableImages.indexOf(t)>-1),r}eachChild(e){e(this.input)}outputDefined(){return!1}},in:class e{constructor(e,t){this.type=k,this.needle=e,this.haystack=t}static parse(t,r){if(3!==t.length)return r.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const n=r.parse(t[1],1,_),a=r.parse(t[2],2,_);return n&&a?T(n.type,[k,w,x,b,_])?new e(n,a):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${O(n.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(!r)return!1;if(!F(t,["boolean","string","number","null"]))throw new be(`Expected first argument to be of type boolean, string, number or null, but found ${O(_e(t))} instead.`);if(!F(r,["string","array"]))throw new be(`Expected second argument to be of type array or string, but found ${O(_e(r))} instead.`);return r.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}},"index-of":class e{constructor(e,t,r){this.type=x,this.needle=e,this.haystack=t,this.fromIndex=r}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);const n=r.parse(t[1],1,_),a=r.parse(t[2],2,_);if(!n||!a)return null;if(!T(n.type,[k,w,x,b,_]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${O(n.type)} instead`);if(4===t.length){const o=r.parse(t[3],3,x);return o?new e(n,a,o):null}return new e(n,a)}evaluate(e){const t=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(!F(t,["boolean","string","number","null"]))throw new be(`Expected first argument to be of type boolean, string, number or null, but found ${O(_e(t))} instead.`);let n;if(this.fromIndex&&(n=this.fromIndex.evaluate(e)),F(r,["string"])){const e=r.indexOf(t,n);return-1===e?-1:[...r.slice(0,e)].length}if(F(r,["array"]))return r.indexOf(t,n);throw new be(`Expected second argument to be of type array or string, but found ${O(_e(r))} instead.`)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}},interpolate:Le,"interpolate-hcl":Le,"interpolate-lab":Le,length:class e{constructor(e){this.type=x,this.input=e}static parse(t,r){if(2!==t.length)return r.error(`Expected 1 argument, but found ${t.length-1} instead.`);const n=r.parse(t[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?r.error(`Expected argument of type string or array, but found ${O(n.type)} instead.`):new e(n):null}evaluate(e){const t=this.input.evaluate(e);if("string"==typeof t)return[...t].length;if(Array.isArray(t))return t.length;throw new be(`Expected value to be of type string or array, but found ${O(_e(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}},let:De,literal:je,match:class e{constructor(e,t,r,n,a,o){this.inputType=e,this.type=t,this.input=r,this.cases=n,this.outputs=a,this.otherwise=o}static parse(t,r){if(t.length<5)return r.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return r.error("Expected an even number of arguments.");let n,a;r.expectedType&&"value"!==r.expectedType.kind&&(a=r.expectedType);const o={},i=[];for(let e=2;e<t.length-1;e+=2){let s=t[e];const l=t[e+1];Array.isArray(s)||(s=[s]);const u=r.concat(e);
vendor: 7,271 bytes, line 1
1if(0===s.length)return u.error("Expected at least one branch label.");for(const e of s){if("number"!=typeof e&&"string"!=typeof e)return u.error("Branch labels must be numbers or strings.");if("number"==typeof e&&Math.abs(e)>Number.MAX_SAFE_INTEGER)return u.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return u.error("Numeric branch labels must be integer values.");if(n){if(u.checkSubtype(n,_e(e)))return null}else n=_e(e);if(void 0!==o[String(e)])return u.error("Branch labels must be unique.");o[String(e)]=i.length}const p=r.parse(l,e,a);if(!p)return null;a=a||p.type,i.push(p)}const s=r.parse(t[1],1,_);if(!s)return null;const l=r.parse(t[t.length-1],t.length-1,a);return l?"value"!==s.type.kind&&r.concat(1).checkSubtype(n,s.type)?null:new e(n,a,s,o,i,l):null}evaluate(e){const t=this.input.evaluate(e);return(_e(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}},number:Me,"number-format":class e{constructor(e,t,r,n,a,o){this.type=w,this.number=e,this.locale=t,this.currency=r,this.unit=n,this.minFractionDigits=a,this.maxFractionDigits=o}static parse(t,r){if(3!==t.length)return r.error("Expected two arguments.");const n=r.parse(t[1],1,x);if(!n)return null;const a=t[2];if("object"!=typeof a||Array.isArray(a))return r.error("NumberFormat options argument must be an object.");let o=null;if(a.locale&&(o=r.parse(a.locale,1,w),!o))return null;let i=null;if(a.currency&&(i=r.parse(a.currency,1,w),!i))return null;let s=null;if(a.unit&&(s=r.parse(a.unit,1,w),!s))return null;if(i&&s)return r.error("NumberFormat options `currency` and `unit` are mutually exclusive");let l=null;if(a["min-fraction-digits"]&&(l=r.parse(a["min-fraction-digits"],1,x),!l))return null;let u=null;return a["max-fraction-digits"]&&(u=r.parse(a["max-fraction-digits"],1,x),!u)?null:new e(n,o,i,s,l,u)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":this.unit?"unit":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}},object:Me,slice:class e{constructor(e,t,r,n){this.type=e,this.input=t,this.beginIndex=r,this.endIndex=n}static parse(t,r){if(t.length<=2||t.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${t.length-1} instead.`);const n=r.parse(t[1],1,_),a=r.parse(t[2],2,x);if(!n||!a)return null;if(!T(n.type,[I(_),w,_]))return r.error(`Expected first argument to be of type array or string, but found ${O(n.type)} instead`);if(4===t.length){const o=r.parse(t[3],3,x);return o?new e(n.type,n,a,o):null}return new e(n.type,n,a)}evaluate(e){const t=this.input.evaluate(e),r=this.beginIndex.evaluate(e);let n;if(this.endIndex&&(n=this.endIndex.evaluate(e)),F(t,["string"]))return[...t].slice(r,n).join("");if(F(t,["array"]))return t.slice(r,n);throw new be(`Expected first argument to be of type array or string, but found ${O(_e(t))} instead.`)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}},step:Fe,string:Me,"to-boolean":Ee,"to-color":Ee,"to-number":Ee,"to-string":Ee,var:Pe,within:bt,distance:Ht,"global-state":Xt};var Kt=class e{constructor(e,t,r,n){this.name=e,this.type=t,this._evaluate=r,this.args=n}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}static parse(t,r){const n=t[0],a=e.definitions[n];if(!a)return r.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const o=Array.isArray(a)?a[0]:a.type,i=Array.isArray(a)?[[a[1],a[2]]]:a.overloads,s=i.filter(([e])=>!Array.isArray(e)||e.length===t.length-1);let l=null;for(const[a,i]of s){l=new Oe(r.registry,tr,r.path,null,r.scope);const s=[];let u=!1;for(let e=1;e<t.length;e++){const r=t[e],n=Array.isArray(a)?a[e-1]:a.type,o=l.parse(r,1+s.length,n);if(!o){u=!0;break}s.push(o)}if(!u)if(Array.isArray(a)&&a.length!==s.length)l.error(`Expected ${a.length} arguments, but found ${s.length} instead.`);else{for(let e=0;e<s.length;e++){const t=Array.isArray(a)?a[e]:a.type,r=s[e];l.concat(e+1).checkSubtype(t,r.type)}if(0===l.errors.length)return new e(n,o,i,s)}}if(1===s.length)r.errors.push(...l.errors);else{const e=(s.length?s:i).map(([e])=>{return t=e,Array.isArray(t)?`(${t.map(O).join(", ")})`:`(${O(t.type)}...)`;var t}).join(" | "),n=[];for(let e=1;e<t.length;e++){const a=r.parse(t[e],1+n.length);if(!a)return null;n.push(O(a.type))}r.error(`Expected arguments of type ${e}, but found (${n.join(", ")}) instead.`)}return null}static register(t,r){e.definitions=r;for(const n in r)t[n]=e}};function Yt(e,[t,r,n,a]){t=t.evaluate(e),r=r.evaluate(e),n=n.evaluate(e);const o=a?a.evaluate(e):1,i=$e(t,r,n,o);if(i)throw new be(i);return new ce(t/255,r/255,n/255,o,!1)}function Zt(e,t){return e in t}function Qt(e,t){const r=t[e];return void 0===r?null:r}function er(e){return{type:e}}function tr(e){if(e instanceof Pe)return tr(e.boundExpression);if(e instanceof Kt&&"error"===e.name)return!1;if(e instanceof Qe)return!1;if(e instanceof bt)return!1;if(e instanceof Ht)return!1;if(e instanceof Xt)return!1;const t=e instanceof Ee||e instanceof Me;let r=!0;return e.eachChild(e=>{r=t?r&&tr(e):r&&e instanceof je}),!!r&&rr(e)&&ar(e,["zoom","heatmap-density","elevation","line-progress","accumulated","is-supported-script"])}function rr(e){if(e instanceof Kt){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}if(e instanceof bt)return!1;if(e instanceof Ht)return!1;let t=!0;return e.eachChild(e=>{t&&!rr(e)&&(t=!1)}),t}function nr(e){if(e instanceof Kt&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild(e=>{t&&!nr(e)&&(t=!1)}),t}function ar(e,t){if(e instanceof Kt&&t.indexOf(e.name)>=0)return!1;let r=!0;return e.eachChild(e=>{r&&!ar(e,t)&&(r=!1)}),r}function or(e){return{result:"success",value:e}}function ir(e){return{result:"error",value:e}}function sr(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function lr(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function ur(e){return!!e.expression&&e.expression.interpolated}function pr(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function cr(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&_e(e)===z}Kt.register(Wt,{error:[{kind:"error"},[w],(e,[t])=>{throw new be(t.evaluate(e))}
vendor: 9,399 bytes, line 1
1],typeof:[w,[_],(e,[t])=>O(_e(t.evaluate(e)))],"to-rgba":[I(x,4),[S],(e,[t])=>{const[r,n,a,o]=t.evaluate(e).rgb;return[255*r,255*n,255*a,o]}],rgb:[S,[x,x,x],Yt],rgba:[S,[x,x,x,x],Yt],has:{type:k,overloads:[[[w],(e,[t])=>Zt(t.evaluate(e),e.properties())],[[w,z],(e,[t,r])=>Zt(t.evaluate(e),r.evaluate(e))]]},get:{type:_,overloads:[[[w],(e,[t])=>Qt(t.evaluate(e),e.properties())],[[w,z],(e,[t,r])=>Qt(t.evaluate(e),r.evaluate(e))]]},"feature-state":[_,[w],(e,[t])=>Qt(t.evaluate(e),e.featureState||{})],properties:[z,[],e=>e.properties()],"geometry-type":[w,[],e=>e.geometryType()],id:[_,[],e=>e.id()],zoom:[x,[],e=>e.globals.zoom],"heatmap-density":[x,[],e=>e.globals.heatmapDensity||0],elevation:[x,[],e=>e.globals.elevation||0],"line-progress":[x,[],e=>e.globals.lineProgress||0],accumulated:[_,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[x,er(x),(e,t)=>{let r=0;for(const n of t)r+=n.evaluate(e);return r}],"*":[x,er(x),(e,t)=>{let r=1;for(const n of t)r*=n.evaluate(e);return r}],"-":{type:x,overloads:[[[x,x],(e,[t,r])=>t.evaluate(e)-r.evaluate(e)],[[x],(e,[t])=>-t.evaluate(e)]]},"/":[x,[x,x],(e,[t,r])=>t.evaluate(e)/r.evaluate(e)],"%":[x,[x,x],(e,[t,r])=>t.evaluate(e)%r.evaluate(e)],ln2:[x,[],()=>Math.LN2],pi:[x,[],()=>Math.PI],e:[x,[],()=>Math.E],"^":[x,[x,x],(e,[t,r])=>Math.pow(t.evaluate(e),r.evaluate(e))],sqrt:[x,[x],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[x,[x],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[x,[x],(e,[t])=>Math.log(t.evaluate(e))],log2:[x,[x],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[x,[x],(e,[t])=>Math.sin(t.evaluate(e))],cos:[x,[x],(e,[t])=>Math.cos(t.evaluate(e))],tan:[x,[x],(e,[t])=>Math.tan(t.evaluate(e))],asin:[x,[x],(e,[t])=>Math.asin(t.evaluate(e))],acos:[x,[x],(e,[t])=>Math.acos(t.evaluate(e))],atan:[x,[x],(e,[t])=>Math.atan(t.evaluate(e))],min:[x,er(x),(e,t)=>Math.min(...t.map(t=>t.evaluate(e)))],max:[x,er(x),(e,t)=>Math.max(...t.map(t=>t.evaluate(e)))],abs:[x,[x],(e,[t])=>Math.abs(t.evaluate(e))],round:[x,[x],(e,[t])=>{const r=t.evaluate(e);return r<0?-Math.round(-r):Math.round(r)}],floor:[x,[x],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[x,[x],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[k,[w,_],(e,[t,r])=>e.properties()[t.value]===r.value],"filter-id-==":[k,[_],(e,[t])=>e.id()===t.value],"filter-type-==":[k,[w],(e,[t])=>e.geometryType()===t.value],"filter-<":[k,[w,_],(e,[t,r])=>{const n=e.properties()[t.value],a=r.value;return typeof n==typeof a&&n<a}],"filter-id-<":[k,[_],(e,[t])=>{const r=e.id(),n=t.value;return typeof r==typeof n&&r<n}],"filter->":[k,[w,_],(e,[t,r])=>{const n=e.properties()[t.value],a=r.value;return typeof n==typeof a&&n>a}],"filter-id->":[k,[_],(e,[t])=>{const r=e.id(),n=t.value;return typeof r==typeof n&&r>n}],"filter-<=":[k,[w,_],(e,[t,r])=>{const n=e.properties()[t.value],a=r.value;return typeof n==typeof a&&n<=a}],"filter-id-<=":[k,[_],(e,[t])=>{const r=e.id(),n=t.value;return typeof r==typeof n&&r<=n}],"filter->=":[k,[w,_],(e,[t,r])=>{const n=e.properties()[t.value],a=r.value;return typeof n==typeof a&&n>=a}],"filter-id->=":[k,[_],(e,[t])=>{const r=e.id(),n=t.value;return typeof r==typeof n&&r>=n}],"filter-has":[k,[_],(e,[t])=>t.value in e.properties()],"filter-has-id":[k,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[k,[I(w)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[k,[I(_)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[k,[w,I(_)],(e,[t,r])=>r.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[k,[w,I(_)],(e,[t,r])=>function(e,t,r,n){for(;r<=n;){const a=r+n>>1;if(t[a]===e)return!0;t[a]>e?n=a-1:r=a+1}return!1}(e.properties()[t.value],r.value,0,r.value.length-1)],all:{type:k,overloads:[[[k,k],(e,[t,r])=>t.evaluate(e)&&r.evaluate(e)],[er(k),(e,t)=>{for(const r of t)if(!r.evaluate(e))return!1;return!0}]]},any:{type:k,overloads:[[[k,k],(e,[t,r])=>t.evaluate(e)||r.evaluate(e)],[er(k),(e,t)=>{for(const r of t)if(r.evaluate(e))return!0;return!1}]]},"!":[k,[k],(e,[t])=>!t.evaluate(e)],"is-supported-script":[k,[w],(e,[t])=>{const r=e.globals&&e.globals.isSupportedScript;return!r||r(t.evaluate(e))}],upcase:[w,[w],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[w,[w],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[w,er(_),(e,t)=>t.map(t=>Ae(t.evaluate(e))).join("")],split:[I(w),[w,w],(e,[t,r])=>t.evaluate(e).split(r.evaluate(e))],join:[w,[I(w),w],(e,[t,r])=>t.evaluate(e).join(r.evaluate(e))],"resolved-locale":[w,[A],(e,[t])=>t.evaluate(e).resolvedLocale()]});var fr=class{constructor(e,t,r){this.expression=e,this._warningHistory={},this._evaluator=new Ie,this._defaultValue=t?function(e){if("color"===e.type&&cr(e.default))return new ce(0,0,0,0);switch(e.type){case"color":return ce.parse(e.default)||null;case"padding":return he.parse(e.default)||null;case"numberArray":return ve.parse(e.default)||null;case"colorArray":return ge.parse(e.default)||null;case"variableAnchorOffsetCollection":return we.parse(e.default)||null;case"projectionDefinition":return Se.parse(e.default)||null;default:return void 0===e.default?null:e.default}}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null,this._globalState=r}evaluateWithoutErrorHandling(e,t,r,n,a,o){return this._globalState&&(e=xr(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=o,this.expression.evaluate(this._evaluator)}evaluate(e,t,r,n,a,o){this._globalState&&(e=xr(e,this._globalState)),this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=o||null;try{const e=this.expression.evaluate(this._evaluator);if(null==e||"number"==typeof e&&e!=e)return this._defaultValue;if(this._enumValues&&!(e in this._enumValues))throw new be(`Expected value to be one of ${Object.keys(this._enumValues).map(e=>JSON.stringify(e)).join(", ")}, but found ${JSON.stringify(e)} instead.`);return e}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}}};function yr(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in Wt}function dr(e,t,r){const n=new Oe(Wt,tr,[],t?function(e){const t={color:S,string:w,number:x,enum:w,boolean:k,formatted:j,padding:q,numberArray:C,colorArray:M,projectionDefinition:$,resolvedImage:E,variableAnchorOffsetCollection:N};return"array"===e.type?I(t[e.value]||_,e.length):t[e.type]}(t):void 0),a=n.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return a?or(new fr(a,t,r)):ir(n.errors)}var mr=class{constructor(e,t,r){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!nr(t.expression),this.globalStateRefs=br(t.expression),this._globalState=r}evaluateWithoutErrorHandling(e,t,r,n,a,o){return this._globalState&&(e=xr(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,t,r,n,a,o)}evaluate(e,t,r,n,a,o){return this._globalState&&(e=xr(e,this._globalState)),this._styleExpression.evaluate(e,t,r,n,a,o)}},hr=class{constructor(e,t,r,n,a){this.kind=e,this.zoomStops=r,this._styleExpression=t,this.isStateDependent="camera"!==e&&!nr(t.expression),this.globalStateRefs=br(t.expression),this.interpolationType=n,this._globalState=a}evaluateWithoutErrorHandling(e,t,r,n,a,o){return this._globalState&&(e=xr(e,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(e,t,r,n,a,o)}evaluate(e,t,r,n,a,o){return this._globalState&&(e=xr(e,this._globalState)),this._styleExpression.evaluate(e,t,r,n,a,o)}interpolationFactor(e,t,r){return this.interpolationType?Le.interpolationFactor(this.interpolationType,e,t,r):0}};function vr(e,t,r){const n=dr(e,t,r);if("error"===n.result)return n;const a=n.value.expression,o=rr(a);if(!o&&!sr(t))return ir([new v("","data expressions not supported")]);const i=ar(a,["zoom"]);if(!i&&!lr(t))return ir([new v("","zoom expressions not supported")]);const s=gr(a);if(!s&&!i)return ir([new v("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(s instanceof v)return ir([s]);if(s instanceof Le&&!ur(t))return ir([new v("",'"interpolate" expressions cannot be used with this property')]);if(!s)return or(new mr(o?"constant":"source",n.value,r));const l=s instanceof Le?s.interpolation:void 0;return or(new hr(o?"camera":"composite",n.value,s.labels,l,r))}function gr(e){let t=null;if(e instanceof De)t=gr(e.result);else if(e instanceof Ue){for(const r of e.args)if(t=gr(r),t)break}else(e instanceof Fe||e instanceof Le)&&e.input instanceof Kt&&"zoom"===e.input.name&&(t=e);return t instanceof v||e.eachChild(e=>{const r=gr(e);r instanceof v?t=r:!t&&r?t=new v("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):t&&r&&t!==r&&(t=new v("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),t}function br(e,t=new Set){return e instanceof Xt&&t.add(e.key),e.eachChild(e=>{br(e,t)}),t}function xr(e,t){const{zoom:r,heatmapDensity:n,elevation:a,lineProgress:o,isSupportedScript:i,accumulated:s}=e??{};return{zoom:r,heatmapDensity:n,elevation:a,lineProgress:o,isSupportedScript:i,accumulated:s,globalState:t}}function wr(e){if(!0===e||!1===e)return!0;
1if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const t of e.slice(1))if(!wr(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}const kr={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Sr(e,t){if(null==e)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};wr(e)||(e=_r(e));const r=dr(e,kr,t);if("error"===r.result)throw new Error(r.value.map(e=>`${e.key}: ${e.message}`).join(", "));return{filter:(e,t,n)=>r.value.evaluate(e,t,{},n),needGeometry:zr(e),getGlobalStateRefs:()=>br(r.value.expression)}}function $r(e,t){return e<t?-1:e>t?1:0}function zr(e){if(!Array.isArray(e))return!1;if("within"===e[0]||"distance"===e[0])return!0;for(let t=1;t<e.length;t++)if(zr(e[t]))return!0;return!1}function _r(e){if(!e)return!0;const t=e[0];return e.length<=1?"any"!==t:"=="===t?Ar(e[1],e[2],"=="):"!="===t?Mr(Ar(e[1],e[2],"==")):"<"===t||">"===t||"<="===t||">="===t?Ar(e[1],e[2],t):"any"===t?(r=e.slice(1),["any"].concat(r.map(_r))):"all"===t?["all"].concat(e.slice(1).map(_r)):"none"===t?["all"].concat(e.slice(1).map(_r).map(Mr)):"in"===t?jr(e[1],e.slice(2)):"!in"===t?Mr(jr(e[1],e.slice(2))):"has"===t?qr(e[1]):"!has"!==t||Mr(qr(e[1]));var r}function Ar(e,t,r){switch(e){case"$type":return[`filter-type-${r}`,t];case"$id":return[`filter-id-${r}`,t];default:return[`filter-${r}`,e,t]}}function jr(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(e=>typeof e!=typeof t[0])?["filter-in-large",e,["literal",t.sort($r)]]:["filter-in-small",e,["literal",t]]}}function qr(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Mr(e){return["!",e]}function Cr(e){return"object"==typeof e?["literal",e]:e}function Er(e,t){let r=e.stops;if(!r)return function(e,t){const r=["get",e.property];if(void 0===e.default)return"string"===t.type?["string",r]:r;if("enum"===t.type)return["match",r,Object.keys(t.values),r,e.default];{const n=["color"===t.type?"to-color":t.type,r,Cr(e.default)];return"array"===t.type&&n.splice(1,0,t.value,t.length||null),n}}(e,t);const n=r&&"object"==typeof r[0][0],a=n||void 0!==e.property,o=n||!a;return r=r.map(e=>!a&&t.tokens&&"string"==typeof e[1]?[e[0],Fr(e[1])]:[e[0],Cr(e[1])]),n?function(e,t,r){const n={},a={},o=[];for(let t=0;t<r.length;t++){const i=r[t],s=i[0].zoom;void 0===n[s]&&(n[s]={zoom:s,type:e.type,property:e.property,default:e.default},a[s]=[],o.push(s)),a[s].push([i[0].value,i[1]])}if("exponential"===Tr({},t)){const r=[Nr(e),["linear"],["zoom"]];for(const e of o)Pr(r,e,Or(n[e],t,a[e]),!1);return r}{const e=["step",["zoom"]];for(const r of o)Pr(e,r,Or(n[r],t,a[r]),!0);return Dr(e),e}}(e,t,r):o?function(e,t,r,n=["zoom"]){const a=Tr(e,t);let o,i=!1;if("interval"===a)o=["step",n],i=!0;else{if("exponential"!==a)throw new Error(`Unknown zoom function type "${a}"`);{const t=void 0!==e.base?e.base:1;o=[Nr(e),1===t?["linear"]:["exponential",t],n]}}for(const e of r)Pr(o,e[0],e[1],i);return Dr(o),o}(e,t,r):Or(e,t,r)}function Nr(e){switch(e.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function Ir(e,t){const r=Cr((n=e.default,a=t.default,void 0!==n?n:void 0!==a?a:void 0));var n,a;return void 0===r&&"resolvedImage"===t.type?"":r}function Or(e,t,r){const n=Tr(e,t),a=["get",e.property];if("categorical"===n&&"boolean"==typeof r[0][0]){const n=["case"];for(const e of r)n.push(["==",a,e[0]],e[1]);return n.push(Ir(e,t)),n}if("categorical"===n){const n=["match",a];for(const e of r)Pr(n,e[0],e[1],!1);return n.push(Ir(e,t)),n}if("interval"===n){const t=["step",["number",a]];for(const e of r)Pr(t,e[0],e[1],!0);return Dr(t),void 0===e.default?t:["case",["==",["typeof",a],"number"],t,Cr(e.default)]}
1if("exponential"===n){const t=void 0!==e.base?e.base:1,n=[Nr(e),1===t?["linear"]:["exponential",t],["number",a]];for(const e of r)Pr(n,e[0],e[1],!1);return void 0===e.default?n:["case",["==",["typeof",a],"number"],n,Cr(e.default)]}throw new Error(`Unknown property function type ${n}`)}function Dr(e){"step"===e[0]&&3===e.length&&(e.push(0),e.push(e[3]))}function Pr(e,t,r,n){e.length>3&&t===e[e.length-2]||(n&&2===e.length||e.push(t),e.push(r))}function Tr(e,t){return e.type?e.type:t.expression.interpolated?"exponential":"interval"}function Fr(e){const t=["concat"],r=/{([^{}]+)}/g;let n=0;for(let a=r.exec(e);null!==a;a=r.exec(e)){const o=e.slice(n,r.lastIndex-a[0].length);n=r.lastIndex,o.length>0&&t.push(o),t.push(["get",a[1]])}if(1===t.length)return e;if(n<e.length)t.push(e.slice(n));else if(2===t.length)return["to-string",t[1]];return t}function Jr(e){const t=e.key,r=e.value;return r?[new m(t,r,"constants have been deprecated as of v8")]:[]}function Lr(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function Vr(e){if(Array.isArray(e))return e.map(Vr);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const r in e)t[r]=Vr(e[r]);return t}return Lr(e)}function Ur(e){const t=e.key,r=e.value,n=e.valueSpec||{},a=e.objectElementValidators||{},o=e.style,i=e.styleSpec,s=e.validateSpec;let l=[];const u=pr(r);if("object"!==u)return[new m(t,r,`object expected, ${u} found`)];for(const e in r){const u=e.split(".")[0],p=ne(n,u)||n["*"];let c;if(ne(a,u))c=a[u];else if(ne(n,u)){if(void 0===r[e])continue;c=s}else if(a["*"])c=a["*"];else{if(!n["*"]){l.push(new m(t,r[e],`unknown property "${e}"`));continue}c=s}l=l.concat(c({key:(t?`${t}.`:t)+e,value:r[e],valueSpec:p,style:o,styleSpec:i,object:r,objectKey:e,validateSpec:s},r))}for(const e in n)a[e]||n[e].required&&void 0===n[e].default&&void 0===r[e]&&l.push(new m(t,r,`missing required property "${e}"`));return l}function Gr(e){const t=e.value,r=e.valueSpec,n=e.validateSpec,a=e.style,o=e.styleSpec,i=e.key,s=e.arrayElementValidator||n;if("array"!==pr(t))return[new m(i,t,`array expected, ${pr(t)} found`)];if(r.length&&t.length!==r.length)return[new m(i,t,`array length ${r.length} expected, length ${t.length} found`)];let l={type:r.value,values:r.values};o.$version<7&&(l.function=r.function),"object"===pr(r.value)&&(l=r.value);let u=[];for(let r=0;r<t.length;r++)u=u.concat(s({array:t,arrayIndex:r,value:t[r],valueSpec:l,validateSpec:e.validateSpec,style:a,styleSpec:o,key:`${i}[${r}]`}));return u}function Br(e){const t=e.key,r=e.value,n=e.valueSpec;let a=pr(r);return"number"===a&&r!=r&&(a="NaN"),"number"!==a?[new m(t,r,`number expected, ${a} found`)]:"minimum"in n&&r<n.minimum?[new m(t,r,`${r} is less than the minimum value ${n.minimum}`)]:"maximum"in n&&r>n.maximum?[new m(t,r,`${r} is greater than the maximum value ${n.maximum}`)]:[]}function Rr(e){const t=e.valueSpec,r=Lr(e.value.type);let n,a,o,i={};const s="categorical"!==r&&void 0===e.value.property,l=!s,u="array"===pr(e.value.stops)&&"array"===pr(e.value.stops[0])&&"object"===pr(e.value.stops[0][0]),p=Ur({key:e.key,value:e.value,valueSpec:e.styleSpec.function,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===r)return[new m(e.key,e.value,'identity function may not have a "stops" property')];let t=[];const n=e.value;return t=t.concat(Gr({key:e.key,value:n,valueSpec:e.valueSpec,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:c})),"array"===pr(n)&&0===n.length&&t.push(new m(e.key,n,"array must have at least one stop")),t},default:function(e){return e.validateSpec({key:e.key,value:e.value,valueSpec:t,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===r&&s&&p.push(new m(e.key,e.value,'missing required property "property"')),"identity"===r||e.value.stops||p.push(new m(e.key,e.value,'missing required property "stops"')),"exponential"===r&&e.valueSpec.expression&&!ur(e.valueSpec)&&p.push(new m(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(l&&!sr(e.valueSpec)?p.push(new m(e.key,e.value,"property functions not supported")):s&&!lr(e.valueSpec)&&p.push(new m(e.key,e.value,"zoom functions not supported"))),"categorical"!==r&&!u||void 0!==e.value.property||p.push(new m(e.key,e.value,'"property" property is required')),p;function c(e){let r=[];const n=e.value,s=e.key;if("array"!==pr(n))return[new m(s,n,`array expected, ${pr(n)} found`)];if(2!==n.length)return[new m(s,n,`array length 2 expected, length ${n.length} found`)];if(u){if("object"!==pr(n[0]))return[new m(s,n,`object expected, ${pr(n[0])} found`)];if(void 0===n[0].zoom)return[new m(s,n,"object stop key must have zoom")];if(void 0===n[0].value)return[new m(s,n,"object stop key must have value")];if(o&&o>Lr(n[0].zoom))return[new m(s,n[0].zoom,"stop zoom values must appear in ascending order")];
vendor: 6,055 bytes, line 1
1Lr(n[0].zoom)!==o&&(o=Lr(n[0].zoom),a=void 0,i={}),r=r.concat(Ur({key:`${s}[0]`,value:n[0],valueSpec:{zoom:{}},validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:Br,value:f}}))}else r=r.concat(f({key:`${s}[0]`,value:n[0],valueSpec:{},validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec},n));return yr(Vr(n[1]))?r.concat([new m(`${s}[1]`,n[1],"expressions are not allowed in function stops.")]):r.concat(e.validateSpec({key:`${s}[1]`,value:n[1],valueSpec:t,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec}))}function f(e,o){const s=pr(e.value),l=Lr(e.value),u=null!==e.value?e.value:o;if(n){if(s!==n)return[new m(e.key,u,`${s} stop domain type must match previous stop domain type ${n}`)]}else n=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new m(e.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==r){let n=`number expected, ${s} found`;return sr(t)&&void 0===r&&(n+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new m(e.key,u,n)]}return"categorical"!==r||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==r&&"number"===s&&void 0!==a&&l<a?[new m(e.key,u,"stop domain values must appear in ascending order")]:(a=l,"categorical"===r&&l in i?[new m(e.key,u,"stop domain values must be unique")]:(i[l]=!0,[])):[new m(e.key,u,`integer expected, found ${l}`)]}}function Hr(e){const t=("property"===e.expressionContext?vr:dr)(Vr(e.value),e.valueSpec);if("error"===t.result)return t.value.map(t=>new m(`${e.key}${t.key}`,e.value,t.message));const r=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&!r.outputDefined())return[new m(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===e.expressionContext&&"layout"===e.propertyType&&!nr(r))return[new m(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext&&!nr(r))return[new m(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!ar(r,["zoom","feature-state"]))return[new m(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!rr(r))return[new m(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Xr(e){const t=e.key,r=e.value,n=pr(r);return"string"!==n?[new m(t,r,`color expected, ${n} found`)]:ce.parse(String(r))?[]:[new m(t,r,`color expected, "${r}" found`)]}function Wr(e){const t=e.key,r=e.value,n=e.valueSpec,a=[];return Array.isArray(n.values)?-1===n.values.indexOf(Lr(r))&&a.push(new m(t,r,`expected one of [${n.values.join(", ")}], ${JSON.stringify(r)} found`)):-1===Object.keys(n.values).indexOf(Lr(r))&&a.push(new m(t,r,`expected one of [${Object.keys(n.values).join(", ")}], ${JSON.stringify(r)} found`)),a}function Kr(e){return wr(Vr(e.value))?Hr(h({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Yr(e)}function Yr(e){const t=e.value,r=e.key;if("array"!==pr(t))return[new m(r,t,`array expected, ${pr(t)} found`)];const n=e.styleSpec;let a,o=[];if(t.length<1)return[new m(r,t,"filter array must have at least 1 element")];switch(o=o.concat(Wr({key:`${r}[0]`,value:t[0],valueSpec:n.filter_operator,style:e.style,styleSpec:e.styleSpec})),Lr(t[0])){case"<":case"<=":case">":case">=":t.length>=2&&"$type"===Lr(t[1])&&o.push(new m(r,t,`"$type" cannot be use with operator "${t[0]}"`));case"==":case"!=":3!==t.length&&o.push(new m(r,t,`filter array for operator "${t[0]}" must have 3 elements`));case"in":case"!in":t.length>=2&&(a=pr(t[1]),"string"!==a&&o.push(new m(`${r}[1]`,t[1],`string expected, ${a} found`)));for(let i=2;i<t.length;i++)a=pr(t[i]),"$type"===Lr(t[1])?o=o.concat(Wr({key:`${r}[${i}]`,value:t[i],valueSpec:n.geometry_type,style:e.style,styleSpec:e.styleSpec})):"string"!==a&&"number"!==a&&"boolean"!==a&&o.push(new m(`${r}[${i}]`,t[i],`string, number, or boolean expected, ${a} found`));break;case"any":case"all":case"none":for(let n=1;n<t.length;n++)o=o.concat(Yr({key:`${r}[${n}]`,value:t[n],style:e.style,styleSpec:e.styleSpec}));break;case"has":case"!has":a=pr(t[1]),2!==t.length?o.push(new m(r,t,`filter array for "${t[0]}" operator must have 2 elements`)):"string"!==a&&o.push(new m(`${r}[1]`,t[1],`string expected, ${a} found`))}return o}function Zr(e,t){const r=e.key,n=e.validateSpec,a=e.style,o=e.styleSpec,i=e.value,s=e.objectKey,l=o[`${t}_${e.layerType}`];if(!l)return[];const u=s.match(/^(.*)-transition$/);if("paint"===t&&u&&l[u[1]]&&l[u[1]].transition)return n({key:r,value:i,valueSpec:o.transition,style:a,styleSpec:o});const p=e.valueSpec||l[s];if(!p)return[new m(r,i,`unknown property "${s}"`)];let c;if("string"===pr(i)&&sr(p)&&!p.tokens&&(c=/^{([^}]+)}$/.exec(i)))return[new m(r,i,`"${s}" does not support interpolation syntax\nUse an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(c[1])} }\`.`)];const f=[];return"symbol"===e.layerType&&"text-font"===s&&cr(Vr(i))&&"identity"===Lr(i.type)&&f.push(new m(r,i,'"text-font" does not support identity functions')),f.concat(n({key:e.key,value:i,valueSpec:p,style:a,styleSpec:o,expressionContext:"property",propertyType:t,propertyKey:s}))}function Qr(e){return Zr(e,"paint")}function en(e){return Zr(e,"layout")}function tn(e){let t=[];const r=e.value,n=e.key,a=e.style,o=e.styleSpec;if("object"!==pr(r))return[new m(n,r,`object expected, ${pr(r)} found`)];r.type||r.ref||t.push(new m(n,r,'either "type" or "ref" is required'));let i=Lr(r.type);const s=Lr(r.ref);if(r.id){const o=Lr(r.id);for(let i=0;i<e.arrayIndex;i++){const e=a.layers[i];Lr(e.id)===o&&t.push(new m(n,r.id,`duplicate layer id "${r.id}", previously used at line ${e.id.__line__}`))}}if("ref"in r){let e;
1["type","source","source-layer","filter","layout"].forEach(e=>{e in r&&t.push(new m(n,r[e],`"${e}" is prohibited for ref layers`))}),a.layers.forEach(t=>{Lr(t.id)===s&&(e=t)}),e?e.ref?t.push(new m(n,r.ref,"ref cannot reference another ref layer")):i=Lr(e.type):t.push(new m(n,r.ref,`ref layer "${s}" not found`))}else if("background"!==i)if(r.source){const e=a.sources&&a.sources[r.source],o=e&&Lr(e.type);e?"vector"===o&&"raster"===i?t.push(new m(n,r.source,`layer "${r.id}" requires a raster source`)):"raster-dem"!==o&&"hillshade"===i||"raster-dem"!==o&&"color-relief"===i?t.push(new m(n,r.source,`layer "${r.id}" requires a raster-dem source`)):"raster"===o&&"raster"!==i?t.push(new m(n,r.source,`layer "${r.id}" requires a vector source`)):"vector"!==o||r["source-layer"]?"raster-dem"===o&&"hillshade"!==i&&"color-relief"!==i?t.push(new m(n,r.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):"line"!==i||!r.paint||!r.paint["line-gradient"]||"geojson"===o&&e.lineMetrics||t.push(new m(n,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new m(n,r,`layer "${r.id}" must specify a "source-layer"`)):t.push(new m(n,r.source,`source "${r.source}" not found`))}else t.push(new m(n,r,'missing required property "source"'));return"raster"===i&&r.paint?.resampling&&r.paint?.["raster-resampling"]&&t.push(new m(n,r.paint,`layer "${r.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),t=t.concat(Ur({key:n,value:r,valueSpec:o.layer,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*"(){return[]},type(){return e.validateSpec({key:`${n}.type`,value:r.type,valueSpec:o.layer.type,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,object:r,objectKey:"type"})},filter:Kr,layout(e){return Ur({layer:r,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*"(e){return en(h({layerType:i},e))}}})},paint(e){return Ur({layer:r,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*"(e){return Qr(h({layerType:i},e))}}})}}})),t}function rn(e){const t=e.value,r=e.key,n=pr(t);return"string"!==n?[new m(r,t,`string expected, ${n} found`)]:[]}const nn={promoteId:function({key:e,value:t}){if("string"===pr(t))return rn({key:e,value:t});{const r=[];for(const n in t)r.push(...rn({key:`${e}.${n}`,value:t[n]}));return r}}};function an(e){const t=e.value,r=e.key,n=e.styleSpec,a=e.style,o=e.validateSpec;if(!t.type)return[new m(r,t,'"type" is required')];const i=Lr(t.type);let s;switch(i){case"vector":case"raster":return s=Ur({key:r,value:t,valueSpec:n[`source_${i.replace("-","_")}`],style:e.style,styleSpec:n,objectElementValidators:nn,validateSpec:o}),s;case"raster-dem":return s=function(e){const t=e.sourceName??"",r=e.value,n=e.styleSpec,a=n.source_raster_dem,o=e.style;let i=[];const s=pr(r);if(void 0===r)return i;if("object"!==s)return i.push(new m("source_raster_dem",r,`object expected, ${s} found`)),i;const l="custom"===Lr(r.encoding),u=["redFactor","greenFactor","blueFactor","baseShift"],p=e.value.encoding?`"${e.value.encoding}"`:"Default";for(const s in r)!l&&u.includes(s)?i.push(new m(s,r[s],`In "${t}": "${s}" is only valid when "encoding" is set to "custom". ${p} encoding found`)):a[s]?i=i.concat(e.validateSpec({key:s,value:r[s],valueSpec:a[s],validateSpec:e.validateSpec,style:o,styleSpec:n})):i.push(new m(s,r[s],`unknown property "${s}"`));return i}({sourceName:r,value:t,style:e.style,styleSpec:n,validateSpec:o}),s;case"geojson":if(s=Ur({key:r,value:t,valueSpec:n.source_geojson,style:a,styleSpec:n,validateSpec:o,objectElementValidators:nn}),t.cluster)for(const e in t.clusterProperties){const[n,a]=t.clusterProperties[e],i="string"==typeof n?[n,["accumulated"],["get",e]]:n;s.push(...Hr({key:`${r}.${e}.map`,value:a,validateSpec:o,expressionContext:"cluster-map"})),s.push(...Hr({key:`${r}.${e}.reduce`,value:i,validateSpec:o,expressionContext:"cluster-reduce"}))}return s;case"video":return Ur({key:r,value:t,valueSpec:n.source_video,style:a,validateSpec:o,styleSpec:n});case"image":return Ur({key:r,value:t,valueSpec:n.source_image,style:a,validateSpec:o,styleSpec:n});
1case"canvas":return[new m(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Wr({key:`${r}.type`,value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:a,validateSpec:o,styleSpec:n})}}function on(e){const t=e.value,r=e.styleSpec,n=r.light,a=e.style;let o=[];const i=pr(t);if(void 0===t)return o;if("object"!==i)return o=o.concat([new m("light",t,`object expected, ${i} found`)]),o;for(const i in t){const s=i.match(/^(.*)-transition$/);o=s&&n[s[1]]&&n[s[1]].transition?o.concat(e.validateSpec({key:i,value:t[i],valueSpec:r.transition,validateSpec:e.validateSpec,style:a,styleSpec:r})):n[i]?o.concat(e.validateSpec({key:i,value:t[i],valueSpec:n[i],validateSpec:e.validateSpec,style:a,styleSpec:r})):o.concat([new m(i,t[i],`unknown property "${i}"`)])}return o}function sn(e){const t=e.value,r=e.styleSpec,n=r.sky,a=e.style,o=pr(t);if(void 0===t)return[];if("object"!==o)return[new m("sky",t,`object expected, ${o} found`)];let i=[];for(const o in t)i=n[o]?i.concat(e.validateSpec({key:o,value:t[o],valueSpec:n[o],style:a,styleSpec:r})):i.concat([new m(o,t[o],`unknown property "${o}"`)]);return i}function ln(e){const t=e.value,r=e.styleSpec,n=r.terrain,a=e.style;let o=[];const i=pr(t);if(void 0===t)return o;if("object"!==i)return o=o.concat([new m("terrain",t,`object expected, ${i} found`)]),o;for(const i in t)o=n[i]?o.concat(e.validateSpec({key:i,value:t[i],valueSpec:n[i],validateSpec:e.validateSpec,style:a,styleSpec:r})):o.concat([new m(i,t[i],`unknown property "${i}"`)]);return o}function un(e){let t=[];const r=e.value,n=e.key;if(Array.isArray(r)){const a=[],o=[];for(const i in r)r[i].id&&a.includes(r[i].id)&&t.push(new m(n,r,`all the sprites' ids must be unique, but ${r[i].id} is duplicated`)),a.push(r[i].id),r[i].url&&o.includes(r[i].url)&&t.push(new m(n,r,`all the sprites' URLs must be unique, but ${r[i].url} is duplicated`)),o.push(r[i].url),t=t.concat(Ur({key:`${n}[${i}]`,value:r[i],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:e.validateSpec}));return t}return rn({key:n,value:r})}function pn(e){return Boolean(e)&&e.constructor===Object}function cn(e){return pn(e.value)?[]:[new m(e.key,e.value,`object expected, ${pr(e.value)} found`)]}const fn={"*"(){return[]},array:Gr,boolean:function(e){const t=e.value,r=e.key,n=pr(t);return"boolean"!==n?[new m(r,t,`boolean expected, ${n} found`)]:[]},number:Br,color:Xr,constants:Jr,enum:Wr,filter:Kr,function:Rr,layer:tn,object:Ur,source:an,light:on,sky:sn,terrain:ln,projection:function(e){const t=e.value,r=e.styleSpec,n=r.projection,a=e.style,o=pr(t);if(void 0===t)return[];if("object"!==o)return[new m("projection",t,`object expected, ${o} found`)];let i=[];for(const o in t)i=n[o]?i.concat(e.validateSpec({key:o,value:t[o],valueSpec:n[o],style:a,styleSpec:r})):i.concat([new m(o,t[o],`unknown property "${o}"`)]);return i},projectionDefinition:function(e){const t=e.key;let r=e.value;r=r instanceof String?r.valueOf():r;const n=pr(r);return"array"!==n||function(e){return Array.isArray(e)&&3===e.length&&"string"==typeof e[0]&&"string"==typeof e[1]&&"number"==typeof e[2]}(r)||function(e){return!!["interpolate","step","literal"].includes(e[0])}(r)?["array","string"].includes(n)?[]:[new m(t,r,`projection expected, invalid type "${n}" found`)]:[new m(t,r,`projection expected, invalid array ${JSON.stringify(r)} found`)]},string:rn,formatted:function(e){return 0===rn(e).length?[]:Hr(e)},resolvedImage:function(e){return 0===rn(e).length?[]:Hr(e)},padding:function(e){const t=e.key,r=e.value;if("array"===pr(r)){if(r.length<1||r.length>4)return[new m(t,r,`padding requires 1 to 4 values; ${r.length} values found`)];const n={type:"number"};let a=[];for(let o=0;o<r.length;o++)a=a.concat(e.validateSpec({key:`${t}[${o}]`,value:r[o],validateSpec:e.validateSpec,valueSpec:n}));return a}return Br({key:t,value:r,valueSpec:{}})},numberArray:function(e){const t=e.key,r=e.value;if("array"===pr(r)){const n={type:"number"};if(r.length<1)return[new m(t,r,"array length at least 1 expected, length 0 found")];let a=[];for(let o=0;o<r.length;o++)a=a.concat(e.validateSpec({key:`${t}[${o}
1]`,value:r[o],validateSpec:e.validateSpec,valueSpec:n}));return a}return Br({key:t,value:r,valueSpec:{}})},colorArray:function(e){const t=e.key,r=e.value;if("array"===pr(r)){if(r.length<1)return[new m(t,r,"array length at least 1 expected, length 0 found")];let e=[];for(let n=0;n<r.length;n++)e=e.concat(Xr({key:`${t}[${n}]`,value:r[n],valueSpec:{}}));return e}return Xr({key:t,value:r,valueSpec:{}})},variableAnchorOffsetCollection:function(e){const t=e.key,r=e.value,n=pr(r),a=e.styleSpec;if("array"!==n||r.length<1||r.length%2!=0)return[new m(t,r,"variableAnchorOffsetCollection requires a non-empty array of even length")];let o=[];for(let n=0;n<r.length;n+=2)o=o.concat(Wr({key:`${t}[${n}]`,value:r[n],valueSpec:a.layout_symbol["text-anchor"]})),o=o.concat(Gr({key:`${t}[${n+1}]`,value:r[n+1],valueSpec:{length:2,value:"number"},validateSpec:e.validateSpec,style:e.style,styleSpec:a}));return o},sprite:un,state:cn,fontFaces:function(e){const t=e.key,r=e.value,n=e.validateSpec,a=e.styleSpec,o=e.style;if(!pn(r))return[new m(t,r,`object expected, ${pr(r)} found`)];const i=[];for(const e in r){const s=r[e],l=pr(s);if("string"===l)i.push(...rn({key:`${t}.${e}`,value:s}));else if("array"===l){const r={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(const[l,u]of s.entries())i.push(...Ur({key:`${t}.${e}[${l}]`,value:u,valueSpec:r,styleSpec:a,style:o,validateSpec:n}))}else i.push(new m(`${t}.${e}`,s,`string or array expected, ${l} found`))}return i}};function yn(e){const t=e.value,r=e.valueSpec,n=e.styleSpec;return e.validateSpec=yn,r.expression&&cr(Lr(t))?Rr(e):r.expression&&yr(Vr(t))?Hr(e):r.type&&fn[r.type]?fn[r.type](e):Ur(h({},e,{valueSpec:r.type?n[r.type]:r}))}function dn(e){const t=e.value,r=e.key,n=rn(e);return n.length||(-1===t.indexOf("{fontstack}")&&n.push(new m(r,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&n.push(new m(r,t,'"glyphs" url must include a "{range}" token'))),n}function mn(e,t=c){let r=[];return r=r.concat(yn({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,validateSpec:yn,objectElementValidators:{glyphs:dn,"*"(){return[]}}})),e.constants&&(r=r.concat(Jr({key:"constants",value:e.constants,style:e,styleSpec:t,validateSpec:yn}))),vn(r)}function hn(e){return function(t){return e(Object.assign({},t,{validateSpec:yn}))}}function vn(e){return[].concat(e).sort((e,t)=>e.line-t.line)}function gn(e){return function(...t){return vn(e.apply(this,t))}}mn.source=gn(hn(an)),mn.sprite=gn(hn(un)),mn.glyphs=gn(hn(dn)),mn.light=gn(hn(on)),mn.sky=gn(hn(sn)),mn.terrain=gn(hn(ln)),mn.state=gn(hn(cn)),mn.layer=gn(hn(tn)),mn.filter=gn(hn(Kr)),mn.paintProperty=gn(hn(Qr)),mn.layoutProperty=gn(hn(en));const bn=c}}]);
2//# sourceMappingURL=vendor-maps-4c35612f.567690686e21cdfe487c.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.