wafields 0.22.2 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-UY5Gdzqr.js → index-CMKoSVik.js} +2 -2
- package/dist/{index-BqAldPuA.mjs → index-aatMMOOd.mjs} +4 -4
- package/dist/main/index.d.ts +3 -1
- package/dist/main/{components/post → post}/privacy/PostPrivacyDisplay.d.ts +1 -1
- package/dist/main/{components/profile → profile}/privacy/ProfilePrivacyDisplay.d.ts +1 -1
- package/dist/main/{components/profile → profile}/user/pronoun/UserPronounDisplay.d.ts +1 -1
- package/dist/{mapbox-gl-Ca3xHA73-8rz4cUDW.js → mapbox-gl-Ca3xHA73-BdKXTmnz.js} +1 -1
- package/dist/{mapbox-gl-Ca3xHA73-BO6syahW.mjs → mapbox-gl-Ca3xHA73-DNZS-4X2.mjs} +1 -1
- package/dist/{maplibre-gl-CaKSugoo-DC1pZumz.js → maplibre-gl-CaKSugoo-Dy6D5p1A.js} +1 -1
- package/dist/{maplibre-gl-CaKSugoo-VzevvMvg.mjs → maplibre-gl-CaKSugoo-ITzU8qkm.mjs} +1 -1
- package/dist/wafields.cjs.js +1 -1
- package/dist/wafields.es.js +1 -1
- package/package.json +1 -1
- package/dist/main/components/index.d.ts +0 -3
- /package/dist/main/{components/PagePID.d.ts → PagePID.d.ts} +0 -0
- /package/dist/main/{components/PagePID.stories.d.ts → PagePID.stories.d.ts} +0 -0
- /package/dist/main/{components/post → post}/index.d.ts +0 -0
- /package/dist/main/{components/post → post}/privacy/PostPrivacyPicker.d.ts +0 -0
- /package/dist/main/{components/post → post}/privacy/index.d.ts +0 -0
- /package/dist/main/{components/post → post}/privacy/util.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/GameCreationFields.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/collection/CollectionTypePicker.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/collection/index.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/game/GameTypePicker.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/game/index.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/index.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/leaderboard/LeaderboardOrder.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/leaderboard/LeaderboardTypePicker.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/leaderboard/index.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/player/PlayerTypePicker.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/player/index.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/privacy/ProfilePrivacyPicker.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/privacy/index.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/privacy/util.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/user/index.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/user/pronoun/UserPronounPicker.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/user/pronoun/index.d.ts +0 -0
- /package/dist/main/{components/profile → profile}/user/pronoun/util.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ap=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ap=require("./index-CMKoSVik.js");function Dp(wn,Ll){for(var Lr=0;Lr<Ll.length;Lr++){const Ci=Ll[Lr];if(typeof Ci!="string"&&!Array.isArray(Ci)){for(const Or in Ci)if(Or!=="default"&&!(Or in wn)){const Tn=Object.getOwnPropertyDescriptor(Ci,Or);Tn&&Object.defineProperty(wn,Or,Tn.get?Tn:{enumerable:!0,get:()=>Ci[Or]})}}}return Object.freeze(Object.defineProperty(wn,Symbol.toStringTag,{value:"Module"}))}var Fl={exports:{}};/**
|
|
2
2
|
* MapLibre GL JS
|
|
3
3
|
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.7.1/LICENSE.txt
|
|
4
4
|
*/var Rp=Fl.exports,Fh;function Bp(){return Fh||(Fh=1,(function(wn,Ll){(function(Lr,Ci){wn.exports=Ci()})(Rp,(function(){"use strict";var Lr={},Ci={};function Or(R,p,Pi){if(Ci[R]=Pi,R==="index"){var Hi="var sharedModule = {}; ("+Ci.shared+")(sharedModule); ("+Ci.worker+")(sharedModule);",Ge={};return Ci.shared(Ge),Ci.index(Lr,Ge),typeof window<"u"&&Lr.setWorkerUrl(window.URL.createObjectURL(new Blob([Hi],{type:"text/javascript"}))),Lr}}Or("shared",["exports"],(function(R){"use strict";function p(i,e,r,a){return new(r||(r=Promise))((function(l,h){function d(x){try{_(a.next(x))}catch(v){h(v)}}function f(x){try{_(a.throw(x))}catch(v){h(v)}}function _(x){var v;x.done?l(x.value):(v=x.value,v instanceof r?v:new r((function(w){w(v)}))).then(d,f)}_((a=a.apply(i,e||[])).next())}))}function Pi(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}typeof SuppressedError=="function"&&SuppressedError;var Hi=Ge;function Ge(i,e){this.x=i,this.y=e}Ge.prototype={clone:function(){return new Ge(this.x,this.y)},add:function(i){return this.clone()._add(i)},sub:function(i){return this.clone()._sub(i)},multByPoint:function(i){return this.clone()._multByPoint(i)},divByPoint:function(i){return this.clone()._divByPoint(i)},mult:function(i){return this.clone()._mult(i)},div:function(i){return this.clone()._div(i)},rotate:function(i){return this.clone()._rotate(i)},rotateAround:function(i,e){return this.clone()._rotateAround(i,e)},matMult:function(i){return this.clone()._matMult(i)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(i){return this.x===i.x&&this.y===i.y},dist:function(i){return Math.sqrt(this.distSqr(i))},distSqr:function(i){var e=i.x-this.x,r=i.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(i){return Math.atan2(this.y-i.y,this.x-i.x)},angleWith:function(i){return this.angleWithSep(i.x,i.y)},angleWithSep:function(i,e){return Math.atan2(this.x*e-this.y*i,this.x*i+this.y*e)},_matMult:function(i){var e=i[2]*this.x+i[3]*this.y;return this.x=i[0]*this.x+i[1]*this.y,this.y=e,this},_add:function(i){return this.x+=i.x,this.y+=i.y,this},_sub:function(i){return this.x-=i.x,this.y-=i.y,this},_mult:function(i){return this.x*=i,this.y*=i,this},_div:function(i){return this.x/=i,this.y/=i,this},_multByPoint:function(i){return this.x*=i.x,this.y*=i.y,this},_divByPoint:function(i){return this.x/=i.x,this.y/=i.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var i=this.y;return this.y=this.x,this.x=-i,this},_rotate:function(i){var e=Math.cos(i),r=Math.sin(i),a=r*this.x+e*this.y;return this.x=e*this.x-r*this.y,this.y=a,this},_rotateAround:function(i,e){var r=Math.cos(i),a=Math.sin(i),l=e.y+a*(this.x-e.x)+r*(this.y-e.y);return this.x=e.x+r*(this.x-e.x)-a*(this.y-e.y),this.y=l,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Ge.convert=function(i){return i instanceof Ge?i:Array.isArray(i)?new Ge(i[0],i[1]):i};var mt=Pi(Hi),at=Vr;function Vr(i,e,r,a){this.cx=3*i,this.bx=3*(r-i)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(a-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=i,this.p1y=e,this.p2x=r,this.p2y=a}Vr.prototype={sampleCurveX:function(i){return((this.ax*i+this.bx)*i+this.cx)*i},sampleCurveY:function(i){return((this.ay*i+this.by)*i+this.cy)*i},sampleCurveDerivativeX:function(i){return(3*this.ax*i+2*this.bx)*i+this.cx},solveCurveX:function(i,e){if(e===void 0&&(e=1e-6),i<0)return 0;if(i>1)return 1;for(var r=i,a=0;a<8;a++){var l=this.sampleCurveX(r)-i;if(Math.abs(l)<e)return r;var h=this.sampleCurveDerivativeX(r);if(Math.abs(h)<1e-6)break;r-=l/h}var d=0,f=1;for(r=i,a=0;a<20&&(l=this.sampleCurveX(r),!(Math.abs(l-i)<e));a++)i>l?d=r:f=r,r=.5*(f-d)+d;return r},solve:function(i,e){return this.sampleCurveY(this.solveCurveX(i,e))}};var br=Pi(at);let Wi,wr;function ur(){return Wi==null&&(Wi=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),Wi}function Gs(){if(wr==null&&(wr=!1,ur())){const i=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(i){for(let r=0;r<25;r++){const a=4*r;i.fillStyle=`rgb(${a},${a+1},${a+2})`,i.fillRect(r%5,Math.floor(r/5),1,1)}const e=i.getImageData(0,0,5,5).data;for(let r=0;r<100;r++)if(r%4!=3&&e[r]!==r){wr=!0;break}}}return wr||!1}function ui(i,e,r,a){const l=new br(i,e,r,a);return h=>l.solve(h)}const Sn=ui(.25,.1,.25,1);function Ai(i,e,r){return Math.min(r,Math.max(e,i))}function Ki(i,e,r){const a=r-e,l=((i-e)%a+a)%a+e;return l===e?r:l}function vi(i,...e){for(const r of e)for(const a in r)i[a]=r[a];return i}let Ia=1;function Ji(i,e,r){const a={};for(const l in i)a[l]=e.call(this,i[l],l,i);return a}function Xs(i,e,r){const a={};for(const l in i)e.call(this,i[l],l,i)&&(a[l]=i[l]);return a}function ae(i){return Array.isArray(i)?i.map(ae):typeof i=="object"&&i?Ji(i,ae):i}const ka={};function Le(i){ka[i]||(typeof console<"u"&&console.warn(i),ka[i]=!0)}function Xe(i,e,r){return(r.y-i.y)*(e.x-i.x)>(e.y-i.y)*(r.x-i.x)}function hr(i){return typeof WorkerGlobalScope<"u"&&i!==void 0&&i instanceof WorkerGlobalScope}let os=null;function Yi(i){return typeof ImageBitmap<"u"&&i instanceof ImageBitmap}const Ma="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function jr(i,e,r,a,l){return p(this,void 0,void 0,(function*(){if(typeof VideoFrame>"u")throw new Error("VideoFrame not supported");const h=new VideoFrame(i,{timestamp:0});try{const d=h==null?void 0:h.format;if(!d||!d.startsWith("BGR")&&!d.startsWith("RGB"))throw new Error(`Unrecognized format ${d}`);const f=d.startsWith("BGR"),_=new Uint8ClampedArray(a*l*4);if(yield h.copyTo(_,(function(x,v,w,I,E){const C=4*Math.max(-v,0),P=(Math.max(0,w)-w)*I*4+C,L=4*I,U=Math.max(0,v),Q=Math.max(0,w);return{rect:{x:U,y:Q,width:Math.min(x.width,v+I)-U,height:Math.min(x.height,w+E)-Q},layout:[{offset:P,stride:L}]}})(i,e,r,a,l)),f)for(let x=0;x<_.length;x+=4){const v=_[x];_[x]=_[x+2],_[x+2]=v}return _}finally{h.close()}}))}let dr,ti;const Di="AbortError";function ls(){return new Error(Di)}const Tr={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};function Qi(i){return Tr.REGISTERED_PROTOCOLS[i.substring(0,i.indexOf("://"))]}const cs="global-dispatcher";class hi extends Error{constructor(e,r,a,l){super(`AJAXError: ${r} (${e}): ${a}`),this.status=e,this.statusText=r,this.url=a,this.body=l}}const Ri=()=>hr(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,Ur=function(i,e){if(/:\/\//.test(i.url)&&!/^https?:|^file:/.test(i.url)){const a=Qi(i.url);if(a)return a(i,e);if(hr(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:i,targetMapId:cs},e)}if(!(/^file:/.test(r=i.url)||/^file:/.test(Ri())&&!/^\w+:/.test(r))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return(function(a,l){return p(this,void 0,void 0,(function*(){const h=new Request(a.url,{method:a.method||"GET",body:a.body,credentials:a.credentials,headers:a.headers,cache:a.cache,referrer:Ri(),signal:l.signal});a.type!=="json"||h.headers.has("Accept")||h.headers.set("Accept","application/json");const d=yield fetch(h);if(!d.ok){const x=yield d.blob();throw new hi(d.status,d.statusText,a.url,x)}let f;f=a.type==="arrayBuffer"||a.type==="image"?d.arrayBuffer():a.type==="json"?d.json():d.text();const _=yield f;if(l.signal.aborted)throw ls();return{data:_,cacheControl:d.headers.get("Cache-Control"),expires:d.headers.get("Expires")}}))})(i,e);if(hr(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"GR",data:i,mustQueue:!0,targetMapId:cs},e)}var r;return(function(a,l){return new Promise(((h,d)=>{var f;const _=new XMLHttpRequest;_.open(a.method||"GET",a.url,!0),a.type!=="arrayBuffer"&&a.type!=="image"||(_.responseType="arraybuffer");for(const x in a.headers)_.setRequestHeader(x,a.headers[x]);a.type==="json"&&(_.responseType="text",!((f=a.headers)===null||f===void 0)&&f.Accept||_.setRequestHeader("Accept","application/json")),_.withCredentials=a.credentials==="include",_.onerror=()=>{d(new Error(_.statusText))},_.onload=()=>{if(!l.signal.aborted)if((_.status>=200&&_.status<300||_.status===0)&&_.response!==null){let x=_.response;if(a.type==="json")try{x=JSON.parse(_.response)}catch(v){return void d(v)}h({data:x,cacheControl:_.getResponseHeader("Cache-Control"),expires:_.getResponseHeader("Expires")})}else{const x=new Blob([_.response],{type:_.getResponseHeader("Content-Type")});d(new hi(_.status,_.statusText,a.url,x))}},l.signal.addEventListener("abort",(()=>{_.abort(),d(ls())})),_.send(a.body)}))})(i,e)};function $r(i){if(!i||i.indexOf("://")<=0||i.indexOf("data:image/")===0||i.indexOf("blob:")===0)return!0;const e=new URL(i),r=window.location;return e.protocol===r.protocol&&e.host===r.host}function Hs(i,e,r){r[i]&&r[i].indexOf(e)!==-1||(r[i]=r[i]||[],r[i].push(e))}function pr(i,e,r){if(r&&r[i]){const a=r[i].indexOf(e);a!==-1&&r[i].splice(a,1)}}class Sr{constructor(e,r={}){vi(this,r),this.type=e}}class Ir extends Sr{constructor(e,r={}){super("error",vi({error:e},r))}}class us{on(e,r){return this._listeners=this._listeners||{},Hs(e,r,this._listeners),this}off(e,r){return pr(e,r,this._listeners),pr(e,r,this._oneTimeListeners),this}once(e,r){return r?(this._oneTimeListeners=this._oneTimeListeners||{},Hs(e,r,this._oneTimeListeners),this):new Promise((a=>this.once(e,a)))}fire(e,r){typeof e=="string"&&(e=new Sr(e,r||{}));const a=e.type;if(this.listens(a)){e.target=this;const l=this._listeners&&this._listeners[a]?this._listeners[a].slice():[];for(const f of l)f.call(this,e);const h=this._oneTimeListeners&&this._oneTimeListeners[a]?this._oneTimeListeners[a].slice():[];for(const f of h)pr(a,f,this._oneTimeListeners),f.call(this,e);const d=this._eventedParent;d&&(vi(e,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),d.fire(e))}else e instanceof Ir&&console.error(e.error);return this}listens(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)}setEventedParent(e,r){return this._eventedParent=e,this._eventedParentData=r,this}}var it={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},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},"*":{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:"*"},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:{},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_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"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","property-type":"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","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"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"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"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","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},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:"*",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:"enum",default:"mercator",values:{mercator:{},globe:{}}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","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"]},"property-type":"cross-faded"},"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"},"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:"number",default:335,minimum:0,maximum:359,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:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",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"}},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"}}};const Nr=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Ws(i,e){const r={};for(const a in i)a!=="ref"&&(r[a]=i[a]);return Nr.forEach((a=>{a in e&&(r[a]=e[a])})),r}function te(i,e){if(Array.isArray(i)){if(!Array.isArray(e)||i.length!==e.length)return!1;for(let r=0;r<i.length;r++)if(!te(i[r],e[r]))return!1;return!0}if(typeof i=="object"&&i!==null&&e!==null){if(typeof e!="object"||Object.keys(i).length!==Object.keys(e).length)return!1;for(const r in i)if(!te(i[r],e[r]))return!1;return!0}return i===e}function ye(i,e){i.push(e)}function Ks(i,e,r){ye(r,{command:"addSource",args:[i,e[i]]})}function kr(i,e,r){ye(e,{command:"removeSource",args:[i]}),r[i]=!0}function fr(i,e,r,a){kr(i,r,a),Ks(i,e,r)}function hs(i,e,r){let a;for(a in i[r])if(Object.prototype.hasOwnProperty.call(i[r],a)&&a!=="data"&&!te(i[r][a],e[r][a]))return!1;for(a in e[r])if(Object.prototype.hasOwnProperty.call(e[r],a)&&a!=="data"&&!te(i[r][a],e[r][a]))return!1;return!0}function bi(i,e,r,a,l,h){i=i||{},e=e||{};for(const d in i)Object.prototype.hasOwnProperty.call(i,d)&&(te(i[d],e[d])||r.push({command:h,args:[a,d,e[d],l]}));for(const d in e)Object.prototype.hasOwnProperty.call(e,d)&&!Object.prototype.hasOwnProperty.call(i,d)&&(te(i[d],e[d])||r.push({command:h,args:[a,d,e[d],l]}))}function Js(i){return i.id}function Ys(i,e){return i[e.id]=e,i}class ht{constructor(e,r,a,l){this.message=(e?`${e}: `:"")+a,l&&(this.identifier=l),r!=null&&r.__line__&&(this.line=r.__line__)}}function tr(i,...e){for(const r of e)for(const a in r)i[a]=r[a];return i}class He extends Error{constructor(e,r){super(r),this.message=r,this.key=e}}class er{constructor(e,r=[]){this.parent=e,this.bindings={};for(const[a,l]of r)this.bindings[a]=l}concat(e){return new er(this,e)}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 Mr={kind:"null"},_t={kind:"number"},Nt={kind:"string"},Ft={kind:"boolean"},ei={kind:"color"},Bi={kind:"object"},jt={kind:"value"},ir={kind:"collator"},mr={kind:"formatted"},Er={kind:"padding"},rr={kind:"resolvedImage"},j={kind:"variableAnchorOffsetCollection"};function M(i,e){return{kind:"array",itemType:i,N:e}}function k(i){if(i.kind==="array"){const e=k(i.itemType);return typeof i.N=="number"?`array<${e}, ${i.N}>`:i.itemType.kind==="value"?"array":`array<${e}>`}return i.kind}const D=[Mr,_t,Nt,Ft,ei,mr,Bi,M(jt),Er,rr,j];function O(i,e){if(e.kind==="error")return null;if(i.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!O(i.itemType,e.itemType))&&(typeof i.N!="number"||i.N===e.N))return null}else{if(i.kind===e.kind)return null;if(i.kind==="value"){for(const r of D)if(!O(r,e))return null}}return`Expected ${k(i)} but found ${k(e)} instead.`}function G(i,e){return e.some((r=>r.kind===i.kind))}function W(i,e){return e.some((r=>r==="null"?i===null:r==="array"?Array.isArray(i):r==="object"?i&&!Array.isArray(i)&&typeof i=="object":r===typeof i))}function Y(i,e){return i.kind==="array"&&e.kind==="array"?i.itemType.kind===e.itemType.kind&&typeof i.N=="number":i.kind===e.kind}const Z=.96422,st=.82521,lt=4/29,et=6/29,dt=3*et*et,At=et*et*et,Dt=Math.PI/180,Kt=180/Math.PI;function Ut(i){return(i%=360)<0&&(i+=360),i}function Jt([i,e,r,a]){let l,h;const d=ke((.2225045*(i=Gt(i))+.7168786*(e=Gt(e))+.0606169*(r=Gt(r)))/1);i===e&&e===r?l=h=d:(l=ke((.4360747*i+.3850649*e+.1430804*r)/Z),h=ke((.0139322*i+.0971045*e+.7141733*r)/st));const f=116*d-16;return[f<0?0:f,500*(l-d),200*(d-h),a]}function Gt(i){return i<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function ke(i){return i>At?Math.pow(i,1/3):i/dt+lt}function xe([i,e,r,a]){let l=(i+16)/116,h=isNaN(e)?l:l+e/500,d=isNaN(r)?l:l-r/200;return l=1*re(l),h=Z*re(h),d=st*re(d),[Zt(3.1338561*h-1.6168667*l-.4906146*d),Zt(-.9787684*h+1.9161415*l+.033454*d),Zt(.0719453*h-.2289914*l+1.4052427*d),a]}function Zt(i){return(i=i<=.00304?12.92*i:1.055*Math.pow(i,1/2.4)-.055)<0?0:i>1?1:i}function re(i){return i>et?i*i*i:dt*(i-lt)}function ge(i){return parseInt(i.padEnd(2,i),16)/255}function Ce(i,e){return Re(e?i/100:i,0,1)}function Re(i,e,r){return Math.min(Math.max(e,i),r)}function We(i){return!i.some(Number.isNaN)}const ds={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],olive:[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]};class se{constructor(e,r,a,l=1,h=!0){this.r=e,this.g=r,this.b=a,this.a=l,h||(this.r*=l,this.g*=l,this.b*=l,l||this.overwriteGetter("rgb",[e,r,a,l]))}static parse(e){if(e instanceof se)return e;if(typeof e!="string")return;const r=(function(a){if((a=a.toLowerCase().trim())==="transparent")return[0,0,0,0];const l=ds[a];if(l){const[d,f,_]=l;return[d/255,f/255,_/255,1]}if(a.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(a)){const d=a.length<6?1:2;let f=1;return[ge(a.slice(f,f+=d)),ge(a.slice(f,f+=d)),ge(a.slice(f,f+=d)),ge(a.slice(f,f+d)||"ff")]}if(a.startsWith("rgb")){const d=a.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(d){const[f,_,x,v,w,I,E,C,P,L,U,Q]=d,X=[v||" ",E||" ",L].join("");if(X===" "||X===" /"||X===",,"||X===",,,"){const J=[x,I,P].join(""),rt=J==="%%%"?100:J===""?255:0;if(rt){const ct=[Re(+_/rt,0,1),Re(+w/rt,0,1),Re(+C/rt,0,1),U?Ce(+U,Q):1];if(We(ct))return ct}}return}}const h=a.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(h){const[d,f,_,x,v,w,I,E,C]=h,P=[_||" ",v||" ",I].join("");if(P===" "||P===" /"||P===",,"||P===",,,"){const L=[+f,Re(+x,0,100),Re(+w,0,100),E?Ce(+E,C):1];if(We(L))return(function([U,Q,X,J]){function rt(ct){const wt=(ct+U/30)%12,Rt=Q*Math.min(X,1-X);return X-Rt*Math.max(-1,Math.min(wt-3,9-wt,1))}return U=Ut(U),Q/=100,X/=100,[rt(0),rt(8),rt(4),J]})(L)}}})(e);return r?new se(...r,!1):void 0}get rgb(){const{r:e,g:r,b:a,a:l}=this,h=l||1/0;return this.overwriteGetter("rgb",[e/h,r/h,a/h,l])}get hcl(){return this.overwriteGetter("hcl",(function(e){const[r,a,l,h]=Jt(e),d=Math.sqrt(a*a+l*l);return[Math.round(1e4*d)?Ut(Math.atan2(l,a)*Kt):NaN,d,r,h]})(this.rgb))}get lab(){return this.overwriteGetter("lab",Jt(this.rgb))}overwriteGetter(e,r){return Object.defineProperty(this,e,{value:r}),r}toString(){const[e,r,a,l]=this.rgb;return`rgba(${[e,r,a].map((h=>Math.round(255*h))).join(",")},${l})`}}se.black=new se(0,0,0,1),se.white=new se(1,1,1,1),se.transparent=new se(0,0,0,0),se.red=new se(1,0,0,1);class In{constructor(e,r,a){this.sensitivity=e?r?"variant":"case":r?"accent":"base",this.locale=a,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,r){return this.collator.compare(e,r)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class kn{constructor(e,r,a,l,h){this.text=e,this.image=r,this.scale=a,this.fontStack=l,this.textColor=h}}class di{constructor(e){this.sections=e}static fromString(e){return new di([new kn(e,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some((e=>e.text.length!==0||e.image&&e.image.name.length!==0))}static factory(e){return e instanceof di?e:di.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map((e=>e.text)).join("")}}class pi{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof pi)return e;if(typeof e=="number")return new pi([e,e,e,e]);if(Array.isArray(e)&&!(e.length<1||e.length>4)){for(const r of e)if(typeof r!="number")return;switch(e.length){case 1:e=[e[0],e[0],e[0],e[0]];break;case 2:e=[e[0],e[1],e[0],e[1]];break;case 3:e=[e[0],e[1],e[2],e[1]]}return new pi(e)}}toString(){return JSON.stringify(this.values)}}const Ol=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class wi{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof wi)return e;if(Array.isArray(e)&&!(e.length<1)&&e.length%2==0){for(let r=0;r<e.length;r+=2){const a=e[r],l=e[r+1];if(typeof a!="string"||!Ol.has(a)||!Array.isArray(l)||l.length!==2||typeof l[0]!="number"||typeof l[1]!="number")return}return new wi(e)}}toString(){return JSON.stringify(this.values)}}class fi{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new fi({name:e,available:!1}):null}}function ps(i,e,r,a){return typeof i=="number"&&i>=0&&i<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof r=="number"&&r>=0&&r<=255?a===void 0||typeof a=="number"&&a>=0&&a<=1?null:`Invalid rgba value [${[i,e,r,a].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof a=="number"?[i,e,r,a]:[i,e,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Zr(i){if(i===null||typeof i=="string"||typeof i=="boolean"||typeof i=="number"||i instanceof se||i instanceof In||i instanceof di||i instanceof pi||i instanceof wi||i instanceof fi)return!0;if(Array.isArray(i)){for(const e of i)if(!Zr(e))return!1;return!0}if(typeof i=="object"){for(const e in i)if(!Zr(i[e]))return!1;return!0}return!1}function Me(i){if(i===null)return Mr;if(typeof i=="string")return Nt;if(typeof i=="boolean")return Ft;if(typeof i=="number")return _t;if(i instanceof se)return ei;if(i instanceof In)return ir;if(i instanceof di)return mr;if(i instanceof pi)return Er;if(i instanceof wi)return j;if(i instanceof fi)return rr;if(Array.isArray(i)){const e=i.length;let r;for(const a of i){const l=Me(a);if(r){if(r===l)continue;r=jt;break}r=l}return M(r||jt,e)}return Bi}function Qs(i){const e=typeof i;return i===null?"":e==="string"||e==="number"||e==="boolean"?String(i):i instanceof se||i instanceof di||i instanceof pi||i instanceof wi||i instanceof fi?i.toString():JSON.stringify(i)}class Fi{constructor(e,r){this.type=e,this.value=r}static parse(e,r){if(e.length!==2)return r.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!Zr(e[1]))return r.error("invalid value");const a=e[1];let l=Me(a);const h=r.expectedType;return l.kind!=="array"||l.N!==0||!h||h.kind!=="array"||typeof h.N=="number"&&h.N!==0||(l=h),new Fi(l,a)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class Se{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const Ea={string:Nt,number:_t,boolean:Ft,object:Bi};class Li{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");let a,l=1;const h=e[0];if(h==="array"){let f,_;if(e.length>2){const x=e[1];if(typeof x!="string"||!(x in Ea)||x==="object")return r.error('The item type argument of "array" must be one of string, number, boolean',1);f=Ea[x],l++}else f=jt;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return r.error('The length argument to "array" must be a positive integer literal',2);_=e[2],l++}a=M(f,_)}else{if(!Ea[h])throw new Error(`Types doesn't contain name = ${h}`);a=Ea[h]}const d=[];for(;l<e.length;l++){const f=r.parse(e[l],l,jt);if(!f)return null;d.push(f)}return new Li(a,d)}evaluate(e){for(let r=0;r<this.args.length;r++){const a=this.args[r].evaluate(e);if(!O(this.type,Me(a)))return a;if(r===this.args.length-1)throw new Se(`Expected value to be of type ${k(this.type)}, but found ${k(Me(a))} instead.`)}throw new Error}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}}const Mn={"to-boolean":Ft,"to-color":ei,"to-number":_t,"to-string":Nt};class Oi{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");const a=e[0];if(!Mn[a])throw new Error(`Can't parse ${a} as it is not part of the known types`);if((a==="to-boolean"||a==="to-string")&&e.length!==2)return r.error("Expected one argument.");const l=Mn[a],h=[];for(let d=1;d<e.length;d++){const f=r.parse(e[d],d,jt);if(!f)return null;h.push(f)}return new Oi(l,h)}evaluate(e){switch(this.type.kind){case"boolean":return!!this.args[0].evaluate(e);case"color":{let r,a;for(const l of this.args){if(r=l.evaluate(e),a=null,r instanceof se)return r;if(typeof r=="string"){const h=e.parseColor(r);if(h)return h}else if(Array.isArray(r)&&(a=r.length<3||r.length>4?`Invalid rbga value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:ps(r[0],r[1],r[2],r[3]),!a))return new se(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new Se(a||`Could not parse color from value '${typeof r=="string"?r:JSON.stringify(r)}'`)}case"padding":{let r;for(const a of this.args){r=a.evaluate(e);const l=pi.parse(r);if(l)return l}throw new Se(`Could not parse padding from value '${typeof r=="string"?r:JSON.stringify(r)}'`)}case"variableAnchorOffsetCollection":{let r;for(const a of this.args){r=a.evaluate(e);const l=wi.parse(r);if(l)return l}throw new Se(`Could not parse variableAnchorOffsetCollection from value '${typeof r=="string"?r:JSON.stringify(r)}'`)}case"number":{let r=null;for(const a of this.args){if(r=a.evaluate(e),r===null)return 0;const l=Number(r);if(!isNaN(l))return l}throw new Se(`Could not convert ${JSON.stringify(r)} to number.`)}case"formatted":return di.fromString(Qs(this.args[0].evaluate(e)));case"resolvedImage":return fi.fromString(Qs(this.args[0].evaluate(e)));default:return Qs(this.args[0].evaluate(e))}}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}}const Vl=["Unknown","Point","LineString","Polygon"];class za{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Vl[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 r=this._parseColorCache[e];return r||(r=this._parseColorCache[e]=se.parse(e)),r}}class qr{constructor(e,r,a=[],l,h=new er,d=[]){this.registry=e,this.path=a,this.key=a.map((f=>`[${f}]`)).join(""),this.scope=h,this.errors=d,this.expectedType=l,this._isConstant=r}parse(e,r,a,l,h={}){return r?this.concat(r,a,l)._parse(e,h):this._parse(e,h)}_parse(e,r){function a(l,h,d){return d==="assert"?new Li(h,[l]):d==="coerce"?new Oi(h,[l]):l}if(e!==null&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"||(e=["literal",e]),Array.isArray(e)){if(e.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const l=e[0];if(typeof l!="string")return this.error(`Expression name must be a string, but found ${typeof l} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const h=this.registry[l];if(h){let d=h.parse(e,this);if(!d)return null;if(this.expectedType){const f=this.expectedType,_=d.type;if(f.kind!=="string"&&f.kind!=="number"&&f.kind!=="boolean"&&f.kind!=="object"&&f.kind!=="array"||_.kind!=="value")if(f.kind!=="color"&&f.kind!=="formatted"&&f.kind!=="resolvedImage"||_.kind!=="value"&&_.kind!=="string")if(f.kind!=="padding"||_.kind!=="value"&&_.kind!=="number"&&_.kind!=="array")if(f.kind!=="variableAnchorOffsetCollection"||_.kind!=="value"&&_.kind!=="array"){if(this.checkSubtype(f,_))return null}else d=a(d,f,r.typeAnnotation||"coerce");else d=a(d,f,r.typeAnnotation||"coerce");else d=a(d,f,r.typeAnnotation||"coerce");else d=a(d,f,r.typeAnnotation||"assert")}if(!(d instanceof Fi)&&d.type.kind!=="resolvedImage"&&this._isConstant(d)){const f=new za;try{d=new Fi(d.type,d.evaluate(f))}catch(_){return this.error(_.message),null}}return d}return this.error(`Unknown expression "${l}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(e===void 0?"'undefined' value invalid. Use null instead.":typeof e=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,r,a){const l=typeof e=="number"?this.path.concat(e):this.path,h=a?this.scope.concat(a):this.scope;return new qr(this.registry,this._isConstant,l,r||null,h,this.errors)}error(e,...r){const a=`${this.key}${r.map((l=>`[${l}]`)).join("")}`;this.errors.push(new He(a,e))}checkSubtype(e,r){const a=O(e,r);return a&&this.error(a),a}}class zr{constructor(e,r){this.type=r.type,this.bindings=[].concat(e),this.result=r}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const r of this.bindings)e(r[1]);e(this.result)}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const a=[];for(let h=1;h<e.length-1;h+=2){const d=e[h];if(typeof d!="string")return r.error(`Expected string, but found ${typeof d} instead.`,h);if(/[^a-zA-Z0-9_]/.test(d))return r.error("Variable names must contain only alphanumeric characters or '_'.",h);const f=r.parse(e[h+1],h+1);if(!f)return null;a.push([d,f])}const l=r.parse(e[e.length-1],e.length-1,r.expectedType,a);return l?new zr(a,l):null}outputDefined(){return this.result.outputDefined()}}class ee{constructor(e,r){this.type=r.type,this.name=e,this.boundExpression=r}static parse(e,r){if(e.length!==2||typeof e[1]!="string")return r.error("'var' expression requires exactly one string literal argument.");const a=e[1];return r.scope.has(a)?new ee(a,r.scope.get(a)):r.error(`Unknown variable "${a}". Make sure "${a}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}}class En{constructor(e,r,a){this.type=e,this.index=r,this.input=a}static parse(e,r){if(e.length!==3)return r.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const a=r.parse(e[1],1,_t),l=r.parse(e[2],2,M(r.expectedType||jt));return a&&l?new En(l.type.itemType,a,l):null}evaluate(e){const r=this.index.evaluate(e),a=this.input.evaluate(e);if(r<0)throw new Se(`Array index out of bounds: ${r} < 0.`);if(r>=a.length)throw new Se(`Array index out of bounds: ${r} > ${a.length-1}.`);if(r!==Math.floor(r))throw new Se(`Array index must be an integer, but found ${r} instead.`);return a[r]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}}class zn{constructor(e,r){this.type=Ft,this.needle=e,this.haystack=r}static parse(e,r){if(e.length!==3)return r.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const a=r.parse(e[1],1,jt),l=r.parse(e[2],2,jt);return a&&l?G(a.type,[Ft,Nt,_t,Mr,jt])?new zn(a,l):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${k(a.type)} instead`):null}evaluate(e){const r=this.needle.evaluate(e),a=this.haystack.evaluate(e);if(!a)return!1;if(!W(r,["boolean","string","number","null"]))throw new Se(`Expected first argument to be of type boolean, string, number or null, but found ${k(Me(r))} instead.`);if(!W(a,["string","array"]))throw new Se(`Expected second argument to be of type array or string, but found ${k(Me(a))} instead.`);return a.indexOf(r)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}}class fs{constructor(e,r,a){this.type=_t,this.needle=e,this.haystack=r,this.fromIndex=a}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const a=r.parse(e[1],1,jt),l=r.parse(e[2],2,jt);if(!a||!l)return null;if(!G(a.type,[Ft,Nt,_t,Mr,jt]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${k(a.type)} instead`);if(e.length===4){const h=r.parse(e[3],3,_t);return h?new fs(a,l,h):null}return new fs(a,l)}evaluate(e){const r=this.needle.evaluate(e),a=this.haystack.evaluate(e);if(!W(r,["boolean","string","number","null"]))throw new Se(`Expected first argument to be of type boolean, string, number or null, but found ${k(Me(r))} instead.`);let l;if(this.fromIndex&&(l=this.fromIndex.evaluate(e)),W(a,["string"])){const h=a.indexOf(r,l);return h===-1?-1:[...a.slice(0,h)].length}if(W(a,["array"]))return a.indexOf(r,l);throw new Se(`Expected second argument to be of type array or string, but found ${k(Me(a))} instead.`)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}}class Cn{constructor(e,r,a,l,h,d){this.inputType=e,this.type=r,this.input=a,this.cases=l,this.outputs=h,this.otherwise=d}static parse(e,r){if(e.length<5)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return r.error("Expected an even number of arguments.");let a,l;r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);const h={},d=[];for(let x=2;x<e.length-1;x+=2){let v=e[x];const w=e[x+1];Array.isArray(v)||(v=[v]);const I=r.concat(x);if(v.length===0)return I.error("Expected at least one branch label.");for(const C of v){if(typeof C!="number"&&typeof C!="string")return I.error("Branch labels must be numbers or strings.");if(typeof C=="number"&&Math.abs(C)>Number.MAX_SAFE_INTEGER)return I.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof C=="number"&&Math.floor(C)!==C)return I.error("Numeric branch labels must be integer values.");if(a){if(I.checkSubtype(a,Me(C)))return null}else a=Me(C);if(h[String(C)]!==void 0)return I.error("Branch labels must be unique.");h[String(C)]=d.length}const E=r.parse(w,x,l);if(!E)return null;l=l||E.type,d.push(E)}const f=r.parse(e[1],1,jt);if(!f)return null;const _=r.parse(e[e.length-1],e.length-1,l);return _?f.type.kind!=="value"&&r.concat(1).checkSubtype(a,f.type)?null:new Cn(a,l,f,h,d,_):null}evaluate(e){const r=this.input.evaluate(e);return(Me(r)===this.inputType&&this.outputs[this.cases[r]]||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()}}class Ca{constructor(e,r,a){this.type=e,this.branches=r,this.otherwise=a}static parse(e,r){if(e.length<4)return r.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return r.error("Expected an odd number of arguments.");let a;r.expectedType&&r.expectedType.kind!=="value"&&(a=r.expectedType);const l=[];for(let d=1;d<e.length-1;d+=2){const f=r.parse(e[d],d,Ft);if(!f)return null;const _=r.parse(e[d+1],d+1,a);if(!_)return null;l.push([f,_]),a=a||_.type}const h=r.parse(e[e.length-1],e.length-1,a);if(!h)return null;if(!a)throw new Error("Can't infer output type");return new Ca(a,l,h)}evaluate(e){for(const[r,a]of this.branches)if(r.evaluate(e))return a.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[r,a]of this.branches)e(r),e(a);e(this.otherwise)}outputDefined(){return this.branches.every((([e,r])=>r.outputDefined()))&&this.otherwise.outputDefined()}}class ta{constructor(e,r,a,l){this.type=e,this.input=r,this.beginIndex=a,this.endIndex=l}static parse(e,r){if(e.length<=2||e.length>=5)return r.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const a=r.parse(e[1],1,jt),l=r.parse(e[2],2,_t);if(!a||!l)return null;if(!G(a.type,[M(jt),Nt,jt]))return r.error(`Expected first argument to be of type array or string, but found ${k(a.type)} instead`);if(e.length===4){const h=r.parse(e[3],3,_t);return h?new ta(a.type,a,l,h):null}return new ta(a.type,a,l)}evaluate(e){const r=this.input.evaluate(e),a=this.beginIndex.evaluate(e);let l;if(this.endIndex&&(l=this.endIndex.evaluate(e)),W(r,["string"]))return[...r].slice(a,l).join("");if(W(r,["array"]))return r.slice(a,l);throw new Se(`Expected first argument to be of type array or string, but found ${k(Me(r))} instead.`)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}}function Pa(i,e){const r=i.length-1;let a,l,h=0,d=r,f=0;for(;h<=d;)if(f=Math.floor((h+d)/2),a=i[f],l=i[f+1],a<=e){if(f===r||e<l)return f;h=f+1}else{if(!(a>e))throw new Se("Input is not a number.");d=f-1}return 0}class ms{constructor(e,r,a){this.type=e,this.input=r,this.labels=[],this.outputs=[];for(const[l,h]of a)this.labels.push(l),this.outputs.push(h)}static parse(e,r){if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");const a=r.parse(e[1],1,_t);if(!a)return null;const l=[];let h=null;r.expectedType&&r.expectedType.kind!=="value"&&(h=r.expectedType);for(let d=1;d<e.length;d+=2){const f=d===1?-1/0:e[d],_=e[d+1],x=d,v=d+1;if(typeof f!="number")return r.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',x);if(l.length&&l[l.length-1][0]>=f)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',x);const w=r.parse(_,v,h);if(!w)return null;h=h||w.type,l.push([f,w])}return new ms(h,a,l)}evaluate(e){const r=this.labels,a=this.outputs;if(r.length===1)return a[0].evaluate(e);const l=this.input.evaluate(e);if(l<=r[0])return a[0].evaluate(e);const h=r.length;return l>=r[h-1]?a[h-1].evaluate(e):a[Pa(r,l)].evaluate(e)}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}}function Ro(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var jl=Bo;function Bo(i,e,r,a){this.cx=3*i,this.bx=3*(r-i)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(a-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=i,this.p1y=e,this.p2x=r,this.p2y=a}Bo.prototype={sampleCurveX:function(i){return((this.ax*i+this.bx)*i+this.cx)*i},sampleCurveY:function(i){return((this.ay*i+this.by)*i+this.cy)*i},sampleCurveDerivativeX:function(i){return(3*this.ax*i+2*this.bx)*i+this.cx},solveCurveX:function(i,e){if(e===void 0&&(e=1e-6),i<0)return 0;if(i>1)return 1;for(var r=i,a=0;a<8;a++){var l=this.sampleCurveX(r)-i;if(Math.abs(l)<e)return r;var h=this.sampleCurveDerivativeX(r);if(Math.abs(h)<1e-6)break;r-=l/h}var d=0,f=1;for(r=i,a=0;a<20&&(l=this.sampleCurveX(r),!(Math.abs(l-i)<e));a++)i>l?d=r:f=r,r=.5*(f-d)+d;return r},solve:function(i,e){return this.sampleCurveY(this.solveCurveX(i,e))}};var Ul=Ro(jl);function Gr(i,e,r){return i+r*(e-i)}function ea(i,e,r){return i.map(((a,l)=>Gr(a,e[l],r)))}const ii={number:Gr,color:function(i,e,r,a="rgb"){switch(a){case"rgb":{const[l,h,d,f]=ea(i.rgb,e.rgb,r);return new se(l,h,d,f,!1)}case"hcl":{const[l,h,d,f]=i.hcl,[_,x,v,w]=e.hcl;let I,E;if(isNaN(l)||isNaN(_))isNaN(l)?isNaN(_)?I=NaN:(I=_,d!==1&&d!==0||(E=x)):(I=l,v!==1&&v!==0||(E=h));else{let Q=_-l;_>l&&Q>180?Q-=360:_<l&&l-_>180&&(Q+=360),I=l+r*Q}const[C,P,L,U]=(function([Q,X,J,rt]){return Q=isNaN(Q)?0:Q*Dt,xe([J,Math.cos(Q)*X,Math.sin(Q)*X,rt])})([I,E??Gr(h,x,r),Gr(d,v,r),Gr(f,w,r)]);return new se(C,P,L,U,!1)}case"lab":{const[l,h,d,f]=xe(ea(i.lab,e.lab,r));return new se(l,h,d,f,!1)}}},array:ea,padding:function(i,e,r){return new pi(ea(i.values,e.values,r))},variableAnchorOffsetCollection:function(i,e,r){const a=i.values,l=e.values;if(a.length!==l.length)throw new Se(`Cannot interpolate values of different length. from: ${i.toString()}, to: ${e.toString()}`);const h=[];for(let d=0;d<a.length;d+=2){if(a[d]!==l[d])throw new Se(`Cannot interpolate values containing mismatched anchors. from[${d}]: ${a[d]}, to[${d}]: ${l[d]}`);h.push(a[d]);const[f,_]=a[d+1],[x,v]=l[d+1];h.push([Gr(f,x,r),Gr(_,v,r)])}return new wi(h)}};class ri{constructor(e,r,a,l,h){this.type=e,this.operator=r,this.interpolation=a,this.input=l,this.labels=[],this.outputs=[];for(const[d,f]of h)this.labels.push(d),this.outputs.push(f)}static interpolationFactor(e,r,a,l){let h=0;if(e.name==="exponential")h=Aa(r,e.base,a,l);else if(e.name==="linear")h=Aa(r,1,a,l);else if(e.name==="cubic-bezier"){const d=e.controlPoints;h=new Ul(d[0],d[1],d[2],d[3]).solve(Aa(r,1,a,l))}return h}static parse(e,r){let[a,l,h,...d]=e;if(!Array.isArray(l)||l.length===0)return r.error("Expected an interpolation type expression.",1);if(l[0]==="linear")l={name:"linear"};else if(l[0]==="exponential"){const x=l[1];if(typeof x!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);l={name:"exponential",base:x}}else{if(l[0]!=="cubic-bezier")return r.error(`Unknown interpolation type ${String(l[0])}`,1,0);{const x=l.slice(1);if(x.length!==4||x.some((v=>typeof v!="number"||v<0||v>1)))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);l={name:"cubic-bezier",controlPoints:x}}}if(e.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(h=r.parse(h,2,_t),!h)return null;const f=[];let _=null;a==="interpolate-hcl"||a==="interpolate-lab"?_=ei:r.expectedType&&r.expectedType.kind!=="value"&&(_=r.expectedType);for(let x=0;x<d.length;x+=2){const v=d[x],w=d[x+1],I=x+3,E=x+4;if(typeof v!="number")return r.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',I);if(f.length&&f[f.length-1][0]>=v)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',I);const C=r.parse(w,E,_);if(!C)return null;_=_||C.type,f.push([v,C])}return Y(_,_t)||Y(_,ei)||Y(_,Er)||Y(_,j)||Y(_,M(_t))?new ri(_,a,l,h,f):r.error(`Type ${k(_)} is not interpolatable.`)}evaluate(e){const r=this.labels,a=this.outputs;if(r.length===1)return a[0].evaluate(e);const l=this.input.evaluate(e);if(l<=r[0])return a[0].evaluate(e);const h=r.length;if(l>=r[h-1])return a[h-1].evaluate(e);const d=Pa(r,l),f=ri.interpolationFactor(this.interpolation,l,r[d],r[d+1]),_=a[d].evaluate(e),x=a[d+1].evaluate(e);switch(this.operator){case"interpolate":return ii[this.type.kind](_,x,f);case"interpolate-hcl":return ii.color(_,x,f,"hcl");case"interpolate-lab":return ii.color(_,x,f,"lab")}}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every((e=>e.outputDefined()))}}function Aa(i,e,r,a){const l=a-r,h=i-r;return l===0?0:e===1?h/l:(Math.pow(e,h)-1)/(Math.pow(e,l)-1)}class Da{constructor(e,r){this.type=e,this.args=r}static parse(e,r){if(e.length<2)return r.error("Expectected at least one argument.");let a=null;const l=r.expectedType;l&&l.kind!=="value"&&(a=l);const h=[];for(const f of e.slice(1)){const _=r.parse(f,1+h.length,a,void 0,{typeAnnotation:"omit"});if(!_)return null;a=a||_.type,h.push(_)}if(!a)throw new Error("No output type");const d=l&&h.some((f=>O(l,f.type)));return new Da(d?jt:a,h)}evaluate(e){let r,a=null,l=0;for(const h of this.args)if(l++,a=h.evaluate(e),a&&a instanceof fi&&!a.available&&(r||(r=a.name),a=null,l===this.args.length&&(a=r)),a!==null)break;return a}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every((e=>e.outputDefined()))}}function Ra(i,e){return i==="=="||i==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function Fo(i,e,r,a){return a.compare(e,r)===0}function _s(i,e,r){const a=i!=="=="&&i!=="!=";return class Lh{constructor(h,d,f){this.type=Ft,this.lhs=h,this.rhs=d,this.collator=f,this.hasUntypedArgument=h.type.kind==="value"||d.type.kind==="value"}static parse(h,d){if(h.length!==3&&h.length!==4)return d.error("Expected two or three arguments.");const f=h[0];let _=d.parse(h[1],1,jt);if(!_)return null;if(!Ra(f,_.type))return d.concat(1).error(`"${f}" comparisons are not supported for type '${k(_.type)}'.`);let x=d.parse(h[2],2,jt);if(!x)return null;if(!Ra(f,x.type))return d.concat(2).error(`"${f}" comparisons are not supported for type '${k(x.type)}'.`);if(_.type.kind!==x.type.kind&&_.type.kind!=="value"&&x.type.kind!=="value")return d.error(`Cannot compare types '${k(_.type)}' and '${k(x.type)}'.`);a&&(_.type.kind==="value"&&x.type.kind!=="value"?_=new Li(x.type,[_]):_.type.kind!=="value"&&x.type.kind==="value"&&(x=new Li(_.type,[x])));let v=null;if(h.length===4){if(_.type.kind!=="string"&&x.type.kind!=="string"&&_.type.kind!=="value"&&x.type.kind!=="value")return d.error("Cannot use collator to compare non-string types.");if(v=d.parse(h[3],3,ir),!v)return null}return new Lh(_,x,v)}evaluate(h){const d=this.lhs.evaluate(h),f=this.rhs.evaluate(h);if(a&&this.hasUntypedArgument){const _=Me(d),x=Me(f);if(_.kind!==x.kind||_.kind!=="string"&&_.kind!=="number")throw new Se(`Expected arguments for "${i}" to be (string, string) or (number, number), but found (${_.kind}, ${x.kind}) instead.`)}if(this.collator&&!a&&this.hasUntypedArgument){const _=Me(d),x=Me(f);if(_.kind!=="string"||x.kind!=="string")return e(h,d,f)}return this.collator?r(h,d,f,this.collator.evaluate(h)):e(h,d,f)}eachChild(h){h(this.lhs),h(this.rhs),this.collator&&h(this.collator)}outputDefined(){return!0}}}const $l=_s("==",(function(i,e,r){return e===r}),Fo),Lo=_s("!=",(function(i,e,r){return e!==r}),(function(i,e,r,a){return!Fo(0,e,r,a)})),Oo=_s("<",(function(i,e,r){return e<r}),(function(i,e,r,a){return a.compare(e,r)<0})),Nl=_s(">",(function(i,e,r){return e>r}),(function(i,e,r,a){return a.compare(e,r)>0})),Zl=_s("<=",(function(i,e,r){return e<=r}),(function(i,e,r,a){return a.compare(e,r)<=0})),Vo=_s(">=",(function(i,e,r){return e>=r}),(function(i,e,r,a){return a.compare(e,r)>=0}));class ia{constructor(e,r,a){this.type=ir,this.locale=a,this.caseSensitive=e,this.diacriticSensitive=r}static parse(e,r){if(e.length!==2)return r.error("Expected one argument.");const a=e[1];if(typeof a!="object"||Array.isArray(a))return r.error("Collator options argument must be an object.");const l=r.parse(a["case-sensitive"]!==void 0&&a["case-sensitive"],1,Ft);if(!l)return null;const h=r.parse(a["diacritic-sensitive"]!==void 0&&a["diacritic-sensitive"],1,Ft);if(!h)return null;let d=null;return a.locale&&(d=r.parse(a.locale,1,Nt),!d)?null:new ia(l,h,d)}evaluate(e){return new In(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}}class Pn{constructor(e,r,a,l,h){this.type=Nt,this.number=e,this.locale=r,this.currency=a,this.minFractionDigits=l,this.maxFractionDigits=h}static parse(e,r){if(e.length!==3)return r.error("Expected two arguments.");const a=r.parse(e[1],1,_t);if(!a)return null;const l=e[2];if(typeof l!="object"||Array.isArray(l))return r.error("NumberFormat options argument must be an object.");let h=null;if(l.locale&&(h=r.parse(l.locale,1,Nt),!h))return null;let d=null;if(l.currency&&(d=r.parse(l.currency,1,Nt),!d))return null;let f=null;if(l["min-fraction-digits"]&&(f=r.parse(l["min-fraction-digits"],1,_t),!f))return null;let _=null;return l["max-fraction-digits"]&&(_=r.parse(l["max-fraction-digits"],1,_t),!_)?null:new Pn(a,h,d,f,_)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.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.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}}class Ba{constructor(e){this.type=mr,this.sections=e}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");const a=e[1];if(!Array.isArray(a)&&typeof a=="object")return r.error("First argument must be an image or text section.");const l=[];let h=!1;for(let d=1;d<=e.length-1;++d){const f=e[d];if(h&&typeof f=="object"&&!Array.isArray(f)){h=!1;let _=null;if(f["font-scale"]&&(_=r.parse(f["font-scale"],1,_t),!_))return null;let x=null;if(f["text-font"]&&(x=r.parse(f["text-font"],1,M(Nt)),!x))return null;let v=null;if(f["text-color"]&&(v=r.parse(f["text-color"],1,ei),!v))return null;const w=l[l.length-1];w.scale=_,w.font=x,w.textColor=v}else{const _=r.parse(e[d],1,jt);if(!_)return null;const x=_.type.kind;if(x!=="string"&&x!=="value"&&x!=="null"&&x!=="resolvedImage")return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");h=!0,l.push({content:_,scale:null,font:null,textColor:null})}}return new Ba(l)}evaluate(e){return new di(this.sections.map((r=>{const a=r.content.evaluate(e);return Me(a)===rr?new kn("",a,null,null,null):new kn(Qs(a),null,r.scale?r.scale.evaluate(e):null,r.font?r.font.evaluate(e).join(","):null,r.textColor?r.textColor.evaluate(e):null)})))}eachChild(e){for(const r of this.sections)e(r.content),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor)}outputDefined(){return!1}}class An{constructor(e){this.type=rr,this.input=e}static parse(e,r){if(e.length!==2)return r.error("Expected two arguments.");const a=r.parse(e[1],1,Nt);return a?new An(a):r.error("No image name provided.")}evaluate(e){const r=this.input.evaluate(e),a=fi.fromString(r);return a&&e.availableImages&&(a.available=e.availableImages.indexOf(r)>-1),a}eachChild(e){e(this.input)}outputDefined(){return!1}}class Dn{constructor(e){this.type=_t,this.input=e}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);const a=r.parse(e[1],1);return a?a.type.kind!=="array"&&a.type.kind!=="string"&&a.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${k(a.type)} instead.`):new Dn(a):null}evaluate(e){const r=this.input.evaluate(e);if(typeof r=="string")return[...r].length;if(Array.isArray(r))return r.length;throw new Se(`Expected value to be of type string or array, but found ${k(Me(r))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}}const sr=8192;function ql(i,e){const r=(180+i[0])/360,a=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i[1]*Math.PI/360)))/360,l=Math.pow(2,e.z);return[Math.round(r*l*sr),Math.round(a*l*sr)]}function Rn(i,e){const r=Math.pow(2,e.z);return[(l=(i[0]/sr+e.x)/r,360*l-180),(a=(i[1]/sr+e.y)/r,360/Math.PI*Math.atan(Math.exp((180-360*a)*Math.PI/180))-90)];var a,l}function Xr(i,e){i[0]=Math.min(i[0],e[0]),i[1]=Math.min(i[1],e[1]),i[2]=Math.max(i[2],e[0]),i[3]=Math.max(i[3],e[1])}function Cr(i,e){return!(i[0]<=e[0]||i[2]>=e[2]||i[1]<=e[1]||i[3]>=e[3])}function ie(i,e,r){const a=i[0]-e[0],l=i[1]-e[1],h=i[0]-r[0],d=i[1]-r[1];return a*d-h*l==0&&a*h<=0&&l*d<=0}function Fa(i,e,r,a){return(l=[a[0]-r[0],a[1]-r[1]])[0]*(h=[e[0]-i[0],e[1]-i[1]])[1]-l[1]*h[0]!=0&&!(!Uo(i,e,r,a)||!Uo(r,a,i,e));var l,h}function Gl(i,e,r){for(const a of r)for(let l=0;l<a.length-1;++l)if(Fa(i,e,a[l],a[l+1]))return!0;return!1}function gs(i,e,r=!1){let a=!1;for(const f of e)for(let _=0;_<f.length-1;_++){if(ie(i,f[_],f[_+1]))return r;(h=f[_])[1]>(l=i)[1]!=(d=f[_+1])[1]>l[1]&&l[0]<(d[0]-h[0])*(l[1]-h[1])/(d[1]-h[1])+h[0]&&(a=!a)}var l,h,d;return a}function Xl(i,e){for(const r of e)if(gs(i,r))return!0;return!1}function jo(i,e){for(const r of i)if(!gs(r,e))return!1;for(let r=0;r<i.length-1;++r)if(Gl(i[r],i[r+1],e))return!1;return!0}function Hl(i,e){for(const r of e)if(jo(i,r))return!0;return!1}function Uo(i,e,r,a){const l=a[0]-r[0],h=a[1]-r[1],d=(i[0]-r[0])*h-l*(i[1]-r[1]),f=(e[0]-r[0])*h-l*(e[1]-r[1]);return d>0&&f<0||d<0&&f>0}function Bn(i,e,r){const a=[];for(let l=0;l<i.length;l++){const h=[];for(let d=0;d<i[l].length;d++){const f=ql(i[l][d],r);Xr(e,f),h.push(f)}a.push(h)}return a}function $o(i,e,r){const a=[];for(let l=0;l<i.length;l++){const h=Bn(i[l],e,r);a.push(h)}return a}function No(i,e,r,a){if(i[0]<r[0]||i[0]>r[2]){const l=.5*a;let h=i[0]-r[0]>l?-a:r[0]-i[0]>l?a:0;h===0&&(h=i[0]-r[2]>l?-a:r[2]-i[0]>l?a:0),i[0]+=h}Xr(e,i)}function Zo(i,e,r,a){const l=Math.pow(2,a.z)*sr,h=[a.x*sr,a.y*sr],d=[];for(const f of i)for(const _ of f){const x=[_.x+h[0],_.y+h[1]];No(x,e,r,l),d.push(x)}return d}function qo(i,e,r,a){const l=Math.pow(2,a.z)*sr,h=[a.x*sr,a.y*sr],d=[];for(const _ of i){const x=[];for(const v of _){const w=[v.x+h[0],v.y+h[1]];Xr(e,w),x.push(w)}d.push(x)}if(e[2]-e[0]<=l/2){(f=e)[0]=f[1]=1/0,f[2]=f[3]=-1/0;for(const _ of d)for(const x of _)No(x,e,r,l)}var f;return d}class Hr{constructor(e,r){this.type=Ft,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Zr(e[1])){const a=e[1];if(a.type==="FeatureCollection"){const l=[];for(const h of a.features){const{type:d,coordinates:f}=h.geometry;d==="Polygon"&&l.push(f),d==="MultiPolygon"&&l.push(...f)}if(l.length)return new Hr(a,{type:"MultiPolygon",coordinates:l})}else if(a.type==="Feature"){const l=a.geometry.type;if(l==="Polygon"||l==="MultiPolygon")return new Hr(a,a.geometry)}else if(a.type==="Polygon"||a.type==="MultiPolygon")return new Hr(a,a)}return r.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return(function(r,a){const l=[1/0,1/0,-1/0,-1/0],h=[1/0,1/0,-1/0,-1/0],d=r.canonicalID();if(a.type==="Polygon"){const f=Bn(a.coordinates,h,d),_=Zo(r.geometry(),l,h,d);if(!Cr(l,h))return!1;for(const x of _)if(!gs(x,f))return!1}if(a.type==="MultiPolygon"){const f=$o(a.coordinates,h,d),_=Zo(r.geometry(),l,h,d);if(!Cr(l,h))return!1;for(const x of _)if(!Xl(x,f))return!1}return!0})(e,this.geometries);if(e.geometryType()==="LineString")return(function(r,a){const l=[1/0,1/0,-1/0,-1/0],h=[1/0,1/0,-1/0,-1/0],d=r.canonicalID();if(a.type==="Polygon"){const f=Bn(a.coordinates,h,d),_=qo(r.geometry(),l,h,d);if(!Cr(l,h))return!1;for(const x of _)if(!jo(x,f))return!1}if(a.type==="MultiPolygon"){const f=$o(a.coordinates,h,d),_=qo(r.geometry(),l,h,d);if(!Cr(l,h))return!1;for(const x of _)if(!Hl(x,f))return!1}return!0})(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}let Go=class{constructor(i=[],e=((r,a)=>r<a?-1:r>a?1:0)){if(this.data=i,this.length=this.data.length,this.compare=e,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(i){this.data.push(i),this._up(this.length++)}pop(){if(this.length===0)return;const i=this.data[0],e=this.data.pop();return--this.length>0&&(this.data[0]=e,this._down(0)),i}peek(){return this.data[0]}_up(i){const{data:e,compare:r}=this,a=e[i];for(;i>0;){const l=i-1>>1,h=e[l];if(r(a,h)>=0)break;e[i]=h,i=l}e[i]=a}_down(i){const{data:e,compare:r}=this,a=this.length>>1,l=e[i];for(;i<a;){let h=1+(i<<1);const d=h+1;if(d<this.length&&r(e[d],e[h])<0&&(h=d),r(e[h],l)>=0)break;e[i]=e[h],i=h}e[i]=l}};function Wl(i,e,r,a,l){Xo(i,e,r,a||i.length-1,l||Kl)}function Xo(i,e,r,a,l){for(;a>r;){if(a-r>600){var h=a-r+1,d=e-r+1,f=Math.log(h),_=.5*Math.exp(2*f/3),x=.5*Math.sqrt(f*_*(h-_)/h)*(d-h/2<0?-1:1);Xo(i,e,Math.max(r,Math.floor(e-d*_/h+x)),Math.min(a,Math.floor(e+(h-d)*_/h+x)),l)}var v=i[e],w=r,I=a;for(ra(i,r,e),l(i[a],v)>0&&ra(i,r,a);w<I;){for(ra(i,w,I),w++,I--;l(i[w],v)<0;)w++;for(;l(i[I],v)>0;)I--}l(i[r],v)===0?ra(i,r,I):ra(i,++I,a),I<=e&&(r=I+1),e<=I&&(a=I-1)}}function ra(i,e,r){var a=i[e];i[e]=i[r],i[r]=a}function Kl(i,e){return i<e?-1:i>e?1:0}function La(i,e){if(i.length<=1)return[i];const r=[];let a,l;for(const h of i){const d=Yl(h);d!==0&&(h.area=Math.abs(d),l===void 0&&(l=d<0),l===d<0?(a&&r.push(a),a=[h]):a.push(h))}if(a&&r.push(a),e>1)for(let h=0;h<r.length;h++)r[h].length<=e||(Wl(r[h],e,1,r[h].length-1,Jl),r[h]=r[h].slice(0,e));return r}function Jl(i,e){return e.area-i.area}function Yl(i){let e=0;for(let r,a,l=0,h=i.length,d=h-1;l<h;d=l++)r=i[l],a=i[d],e+=(a.x-r.x)*(r.y+a.y);return e}const Ho=1/298.257223563,Wo=Ho*(2-Ho),Ko=Math.PI/180;class Fn{constructor(e){const r=6378.137*Ko*1e3,a=Math.cos(e*Ko),l=1/(1-Wo*(1-a*a)),h=Math.sqrt(l);this.kx=r*h*a,this.ky=r*h*l*(1-Wo)}distance(e,r){const a=this.wrap(e[0]-r[0])*this.kx,l=(e[1]-r[1])*this.ky;return Math.sqrt(a*a+l*l)}pointOnLine(e,r){let a,l,h,d,f=1/0;for(let _=0;_<e.length-1;_++){let x=e[_][0],v=e[_][1],w=this.wrap(e[_+1][0]-x)*this.kx,I=(e[_+1][1]-v)*this.ky,E=0;w===0&&I===0||(E=(this.wrap(r[0]-x)*this.kx*w+(r[1]-v)*this.ky*I)/(w*w+I*I),E>1?(x=e[_+1][0],v=e[_+1][1]):E>0&&(x+=w/this.kx*E,v+=I/this.ky*E)),w=this.wrap(r[0]-x)*this.kx,I=(r[1]-v)*this.ky;const C=w*w+I*I;C<f&&(f=C,a=x,l=v,h=_,d=E)}return{point:[a,l],index:h,t:Math.max(0,Math.min(1,d))}}wrap(e){for(;e<-180;)e+=360;for(;e>180;)e-=360;return e}}function Jo(i,e){return e[0]-i[0]}function Oa(i){return i[1]-i[0]+1}function _r(i,e){return i[1]>=i[0]&&i[1]<e}function Ln(i,e){if(i[0]>i[1])return[null,null];const r=Oa(i);if(e){if(r===2)return[i,null];const l=Math.floor(r/2);return[[i[0],i[0]+l],[i[0]+l,i[1]]]}if(r===1)return[i,null];const a=Math.floor(r/2)-1;return[[i[0],i[0]+a],[i[0]+a+1,i[1]]]}function On(i,e){if(!_r(e,i.length))return[1/0,1/0,-1/0,-1/0];const r=[1/0,1/0,-1/0,-1/0];for(let a=e[0];a<=e[1];++a)Xr(r,i[a]);return r}function Vn(i){const e=[1/0,1/0,-1/0,-1/0];for(const r of i)for(const a of r)Xr(e,a);return e}function Va(i){return i[0]!==-1/0&&i[1]!==-1/0&&i[2]!==1/0&&i[3]!==1/0}function jn(i,e,r){if(!Va(i)||!Va(e))return NaN;let a=0,l=0;return i[2]<e[0]&&(a=e[0]-i[2]),i[0]>e[2]&&(a=i[0]-e[2]),i[1]>e[3]&&(l=i[1]-e[3]),i[3]<e[1]&&(l=e[1]-i[3]),r.distance([0,0],[a,l])}function Wr(i,e,r){const a=r.pointOnLine(e,i);return r.distance(i,a.point)}function Un(i,e,r,a,l){const h=Math.min(Wr(i,[r,a],l),Wr(e,[r,a],l)),d=Math.min(Wr(r,[i,e],l),Wr(a,[i,e],l));return Math.min(h,d)}function Ql(i,e,r,a,l){if(!_r(e,i.length)||!_r(a,r.length))return 1/0;let h=1/0;for(let d=e[0];d<e[1];++d){const f=i[d],_=i[d+1];for(let x=a[0];x<a[1];++x){const v=r[x],w=r[x+1];if(Fa(f,_,v,w))return 0;h=Math.min(h,Un(f,_,v,w,l))}}return h}function be(i,e,r,a,l){if(!_r(e,i.length)||!_r(a,r.length))return NaN;let h=1/0;for(let d=e[0];d<=e[1];++d)for(let f=a[0];f<=a[1];++f)if(h=Math.min(h,l.distance(i[d],r[f])),h===0)return h;return h}function tc(i,e,r){if(gs(i,e,!0))return 0;let a=1/0;for(const l of e){const h=l[0],d=l[l.length-1];if(h!==d&&(a=Math.min(a,Wr(i,[d,h],r)),a===0))return a;const f=r.pointOnLine(l,i);if(a=Math.min(a,r.distance(i,f.point)),a===0)return a}return a}function qt(i,e,r,a){if(!_r(e,i.length))return NaN;for(let h=e[0];h<=e[1];++h)if(gs(i[h],r,!0))return 0;let l=1/0;for(let h=e[0];h<e[1];++h){const d=i[h],f=i[h+1];for(const _ of r)for(let x=0,v=_.length,w=v-1;x<v;w=x++){const I=_[w],E=_[x];if(Fa(d,f,I,E))return 0;l=Math.min(l,Un(d,f,I,E,a))}}return l}function ja(i,e){for(const r of i)for(const a of r)if(gs(a,e,!0))return!0;return!1}function ue(i,e,r,a=1/0){const l=Vn(i),h=Vn(e);if(a!==1/0&&jn(l,h,r)>=a)return a;if(Cr(l,h)){if(ja(i,e))return 0}else if(ja(e,i))return 0;let d=1/0;for(const f of i)for(let _=0,x=f.length,v=x-1;_<x;v=_++){const w=f[v],I=f[_];for(const E of e)for(let C=0,P=E.length,L=P-1;C<P;L=C++){const U=E[L],Q=E[C];if(Fa(w,I,U,Q))return 0;d=Math.min(d,Un(w,I,U,Q,r))}}return d}function ne(i,e,r,a,l,h){if(!h)return;const d=jn(On(a,h),l,r);d<e&&i.push([d,h,[0,0]])}function Kr(i,e,r,a,l,h,d){if(!h||!d)return;const f=jn(On(a,h),On(l,d),r);f<e&&i.push([f,h,d])}function sa(i,e,r,a,l=1/0){let h=Math.min(a.distance(i[0],r[0][0]),l);if(h===0)return h;const d=new Go([[0,[0,i.length-1],[0,0]]],Jo),f=Vn(r);for(;d.length>0;){const _=d.pop();if(_[0]>=h)continue;const x=_[1],v=e?50:100;if(Oa(x)<=v){if(!_r(x,i.length))return NaN;if(e){const w=qt(i,x,r,a);if(isNaN(w)||w===0)return w;h=Math.min(h,w)}else for(let w=x[0];w<=x[1];++w){const I=tc(i[w],r,a);if(h=Math.min(h,I),h===0)return 0}}else{const w=Ln(x,e);ne(d,h,a,i,f,w[0]),ne(d,h,a,i,f,w[1])}}return h}function aa(i,e,r,a,l,h=1/0){let d=Math.min(h,l.distance(i[0],r[0]));if(d===0)return d;const f=new Go([[0,[0,i.length-1],[0,r.length-1]]],Jo);for(;f.length>0;){const _=f.pop();if(_[0]>=d)continue;const x=_[1],v=_[2],w=e?50:100,I=a?50:100;if(Oa(x)<=w&&Oa(v)<=I){if(!_r(x,i.length)&&_r(v,r.length))return NaN;let E;if(e&&a)E=Ql(i,x,r,v,l),d=Math.min(d,E);else if(e&&!a){const C=i.slice(x[0],x[1]+1);for(let P=v[0];P<=v[1];++P)if(E=Wr(r[P],C,l),d=Math.min(d,E),d===0)return d}else if(!e&&a){const C=r.slice(v[0],v[1]+1);for(let P=x[0];P<=x[1];++P)if(E=Wr(i[P],C,l),d=Math.min(d,E),d===0)return d}else E=be(i,x,r,v,l),d=Math.min(d,E)}else{const E=Ln(x,e),C=Ln(v,a);Kr(f,d,l,i,r,E[0],C[0]),Kr(f,d,l,i,r,E[0],C[1]),Kr(f,d,l,i,r,E[1],C[0]),Kr(f,d,l,i,r,E[1],C[1])}}return d}function $n(i){return i.type==="MultiPolygon"?i.coordinates.map((e=>({type:"Polygon",coordinates:e}))):i.type==="MultiLineString"?i.coordinates.map((e=>({type:"LineString",coordinates:e}))):i.type==="MultiPoint"?i.coordinates.map((e=>({type:"Point",coordinates:e}))):[i]}class Jr{constructor(e,r){this.type=_t,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`'distance' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Zr(e[1])){const a=e[1];if(a.type==="FeatureCollection")return new Jr(a,a.features.map((l=>$n(l.geometry))).flat());if(a.type==="Feature")return new Jr(a,$n(a.geometry));if("type"in a&&"coordinates"in a)return new Jr(a,$n(a))}return r.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return(function(r,a){const l=r.geometry(),h=l.flat().map((_=>Rn([_.x,_.y],r.canonical)));if(l.length===0)return NaN;const d=new Fn(h[0][1]);let f=1/0;for(const _ of a){switch(_.type){case"Point":f=Math.min(f,aa(h,!1,[_.coordinates],!1,d,f));break;case"LineString":f=Math.min(f,aa(h,!1,_.coordinates,!0,d,f));break;case"Polygon":f=Math.min(f,sa(h,!1,_.coordinates,d,f))}if(f===0)return f}return f})(e,this.geometries);if(e.geometryType()==="LineString")return(function(r,a){const l=r.geometry(),h=l.flat().map((_=>Rn([_.x,_.y],r.canonical)));if(l.length===0)return NaN;const d=new Fn(h[0][1]);let f=1/0;for(const _ of a){switch(_.type){case"Point":f=Math.min(f,aa(h,!0,[_.coordinates],!1,d,f));break;case"LineString":f=Math.min(f,aa(h,!0,_.coordinates,!0,d,f));break;case"Polygon":f=Math.min(f,sa(h,!0,_.coordinates,d,f))}if(f===0)return f}return f})(e,this.geometries);if(e.geometryType()==="Polygon")return(function(r,a){const l=r.geometry();if(l.length===0||l[0].length===0)return NaN;const h=La(l,0).map((_=>_.map((x=>x.map((v=>Rn([v.x,v.y],r.canonical))))))),d=new Fn(h[0][0][0][1]);let f=1/0;for(const _ of a)for(const x of h){switch(_.type){case"Point":f=Math.min(f,sa([_.coordinates],!1,x,d,f));break;case"LineString":f=Math.min(f,sa(_.coordinates,!0,x,d,f));break;case"Polygon":f=Math.min(f,ue(x,_.coordinates,d,f))}if(f===0)return f}return f})(e,this.geometries)}return NaN}eachChild(){}outputDefined(){return!0}}const ys={"==":$l,"!=":Lo,">":Nl,"<":Oo,">=":Vo,"<=":Zl,array:Li,at:En,boolean:Li,case:Ca,coalesce:Da,collator:ia,format:Ba,image:An,in:zn,"index-of":fs,interpolate:ri,"interpolate-hcl":ri,"interpolate-lab":ri,length:Dn,let:zr,literal:Fi,match:Cn,number:Li,"number-format":Pn,object:Li,slice:ta,step:ms,string:Li,"to-boolean":Oi,"to-color":Oi,"to-number":Oi,"to-string":Oi,var:ee,within:Hr,distance:Jr};class Ti{constructor(e,r,a,l){this.name=e,this.type=r,this._evaluate=a,this.args=l}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}static parse(e,r){const a=e[0],l=Ti.definitions[a];if(!l)return r.error(`Unknown expression "${a}". If you wanted a literal array, use ["literal", [...]].`,0);const h=Array.isArray(l)?l[0]:l.type,d=Array.isArray(l)?[[l[1],l[2]]]:l.overloads,f=d.filter((([x])=>!Array.isArray(x)||x.length===e.length-1));let _=null;for(const[x,v]of f){_=new qr(r.registry,na,r.path,null,r.scope);const w=[];let I=!1;for(let E=1;E<e.length;E++){const C=e[E],P=Array.isArray(x)?x[E-1]:x.type,L=_.parse(C,1+w.length,P);if(!L){I=!0;break}w.push(L)}if(!I)if(Array.isArray(x)&&x.length!==w.length)_.error(`Expected ${x.length} arguments, but found ${w.length} instead.`);else{for(let E=0;E<w.length;E++){const C=Array.isArray(x)?x[E]:x.type,P=w[E];_.concat(E+1).checkSubtype(C,P.type)}if(_.errors.length===0)return new Ti(a,h,v,w)}}if(f.length===1)r.errors.push(..._.errors);else{const x=(f.length?f:d).map((([w])=>{return I=w,Array.isArray(I)?`(${I.map(k).join(", ")})`:`(${k(I.type)}...)`;var I})).join(" | "),v=[];for(let w=1;w<e.length;w++){const I=r.parse(e[w],1+v.length);if(!I)return null;v.push(k(I.type))}r.error(`Expected arguments of type ${x}, but found (${v.join(", ")}) instead.`)}return null}static register(e,r){Ti.definitions=r;for(const a in r)e[a]=Ti}}function Nn(i,[e,r,a,l]){e=e.evaluate(i),r=r.evaluate(i),a=a.evaluate(i);const h=l?l.evaluate(i):1,d=ps(e,r,a,h);if(d)throw new Se(d);return new se(e/255,r/255,a/255,h,!1)}function Zn(i,e){return i in e}function qn(i,e){const r=e[i];return r===void 0?null:r}function Yr(i){return{type:i}}function na(i){if(i instanceof ee)return na(i.boundExpression);if(i instanceof Ti&&i.name==="error"||i instanceof ia||i instanceof Hr||i instanceof Jr)return!1;const e=i instanceof Oi||i instanceof Li;let r=!0;return i.eachChild((a=>{r=e?r&&na(a):r&&a instanceof Fi})),!!r&&oa(i)&&la(i,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function oa(i){if(i instanceof Ti&&(i.name==="get"&&i.args.length===1||i.name==="feature-state"||i.name==="has"&&i.args.length===1||i.name==="properties"||i.name==="geometry-type"||i.name==="id"||/^filter-/.test(i.name))||i instanceof Hr||i instanceof Jr)return!1;let e=!0;return i.eachChild((r=>{e&&!oa(r)&&(e=!1)})),e}function xs(i){if(i instanceof Ti&&i.name==="feature-state")return!1;let e=!0;return i.eachChild((r=>{e&&!xs(r)&&(e=!1)})),e}function la(i,e){if(i instanceof Ti&&e.indexOf(i.name)>=0)return!1;let r=!0;return i.eachChild((a=>{r&&!la(a,e)&&(r=!1)})),r}function Ua(i){return{result:"success",value:i}}function vs(i){return{result:"error",value:i}}function bs(i){return i["property-type"]==="data-driven"||i["property-type"]==="cross-faded-data-driven"}function Yo(i){return!!i.expression&&i.expression.parameters.indexOf("zoom")>-1}function Gn(i){return!!i.expression&&i.expression.interpolated}function Yt(i){return i instanceof Number?"number":i instanceof String?"string":i instanceof Boolean?"boolean":Array.isArray(i)?"array":i===null?"null":typeof i}function $a(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function ec(i){return i}function Qo(i,e){const r=e.type==="color",a=i.stops&&typeof i.stops[0][0]=="object",l=a||!(a||i.property!==void 0),h=i.type||(Gn(e)?"exponential":"interval");if(r||e.type==="padding"){const v=r?se.parse:pi.parse;(i=tr({},i)).stops&&(i.stops=i.stops.map((w=>[w[0],v(w[1])]))),i.default=v(i.default?i.default:e.default)}if(i.colorSpace&&(d=i.colorSpace)!=="rgb"&&d!=="hcl"&&d!=="lab")throw new Error(`Unknown color space: "${i.colorSpace}"`);var d;let f,_,x;if(h==="exponential")f=el;else if(h==="interval")f=Na;else if(h==="categorical"){f=tl,_=Object.create(null);for(const v of i.stops)_[v[0]]=v[1];x=typeof i.stops[0][0]}else{if(h!=="identity")throw new Error(`Unknown function type "${h}"`);f=il}if(a){const v={},w=[];for(let C=0;C<i.stops.length;C++){const P=i.stops[C],L=P[0].zoom;v[L]===void 0&&(v[L]={zoom:L,type:i.type,property:i.property,default:i.default,stops:[]},w.push(L)),v[L].stops.push([P[0].value,P[1]])}const I=[];for(const C of w)I.push([v[C].zoom,Qo(v[C],e)]);const E={name:"linear"};return{kind:"composite",interpolationType:E,interpolationFactor:ri.interpolationFactor.bind(void 0,E),zoomStops:I.map((C=>C[0])),evaluate:({zoom:C},P)=>el({stops:I,base:i.base},e,C).evaluate(C,P)}}if(l){const v=h==="exponential"?{name:"exponential",base:i.base!==void 0?i.base:1}:null;return{kind:"camera",interpolationType:v,interpolationFactor:ri.interpolationFactor.bind(void 0,v),zoomStops:i.stops.map((w=>w[0])),evaluate:({zoom:w})=>f(i,e,w,_,x)}}return{kind:"source",evaluate(v,w){const I=w&&w.properties?w.properties[i.property]:void 0;return I===void 0?ws(i.default,e.default):f(i,e,I,_,x)}}}function ws(i,e,r){return i!==void 0?i:e!==void 0?e:r!==void 0?r:void 0}function tl(i,e,r,a,l){return ws(typeof r===l?a[r]:void 0,i.default,e.default)}function Na(i,e,r){if(Yt(r)!=="number")return ws(i.default,e.default);const a=i.stops.length;if(a===1||r<=i.stops[0][0])return i.stops[0][1];if(r>=i.stops[a-1][0])return i.stops[a-1][1];const l=Pa(i.stops.map((h=>h[0])),r);return i.stops[l][1]}function el(i,e,r){const a=i.base!==void 0?i.base:1;if(Yt(r)!=="number")return ws(i.default,e.default);const l=i.stops.length;if(l===1||r<=i.stops[0][0])return i.stops[0][1];if(r>=i.stops[l-1][0])return i.stops[l-1][1];const h=Pa(i.stops.map((v=>v[0])),r),d=(function(v,w,I,E){const C=E-I,P=v-I;return C===0?0:w===1?P/C:(Math.pow(w,P)-1)/(Math.pow(w,C)-1)})(r,a,i.stops[h][0],i.stops[h+1][0]),f=i.stops[h][1],_=i.stops[h+1][1],x=ii[e.type]||ec;return typeof f.evaluate=="function"?{evaluate(...v){const w=f.evaluate.apply(void 0,v),I=_.evaluate.apply(void 0,v);if(w!==void 0&&I!==void 0)return x(w,I,d,i.colorSpace)}}:x(f,_,d,i.colorSpace)}function il(i,e,r){switch(e.type){case"color":r=se.parse(r);break;case"formatted":r=di.fromString(r.toString());break;case"resolvedImage":r=fi.fromString(r.toString());break;case"padding":r=pi.parse(r);break;default:Yt(r)===e.type||e.type==="enum"&&e.values[r]||(r=void 0)}return ws(r,i.default,e.default)}Ti.register(ys,{error:[{kind:"error"},[Nt],(i,[e])=>{throw new Se(e.evaluate(i))}],typeof:[Nt,[jt],(i,[e])=>k(Me(e.evaluate(i)))],"to-rgba":[M(_t,4),[ei],(i,[e])=>{const[r,a,l,h]=e.evaluate(i).rgb;return[255*r,255*a,255*l,h]}],rgb:[ei,[_t,_t,_t],Nn],rgba:[ei,[_t,_t,_t,_t],Nn],has:{type:Ft,overloads:[[[Nt],(i,[e])=>Zn(e.evaluate(i),i.properties())],[[Nt,Bi],(i,[e,r])=>Zn(e.evaluate(i),r.evaluate(i))]]},get:{type:jt,overloads:[[[Nt],(i,[e])=>qn(e.evaluate(i),i.properties())],[[Nt,Bi],(i,[e,r])=>qn(e.evaluate(i),r.evaluate(i))]]},"feature-state":[jt,[Nt],(i,[e])=>qn(e.evaluate(i),i.featureState||{})],properties:[Bi,[],i=>i.properties()],"geometry-type":[Nt,[],i=>i.geometryType()],id:[jt,[],i=>i.id()],zoom:[_t,[],i=>i.globals.zoom],"heatmap-density":[_t,[],i=>i.globals.heatmapDensity||0],"line-progress":[_t,[],i=>i.globals.lineProgress||0],accumulated:[jt,[],i=>i.globals.accumulated===void 0?null:i.globals.accumulated],"+":[_t,Yr(_t),(i,e)=>{let r=0;for(const a of e)r+=a.evaluate(i);return r}],"*":[_t,Yr(_t),(i,e)=>{let r=1;for(const a of e)r*=a.evaluate(i);return r}],"-":{type:_t,overloads:[[[_t,_t],(i,[e,r])=>e.evaluate(i)-r.evaluate(i)],[[_t],(i,[e])=>-e.evaluate(i)]]},"/":[_t,[_t,_t],(i,[e,r])=>e.evaluate(i)/r.evaluate(i)],"%":[_t,[_t,_t],(i,[e,r])=>e.evaluate(i)%r.evaluate(i)],ln2:[_t,[],()=>Math.LN2],pi:[_t,[],()=>Math.PI],e:[_t,[],()=>Math.E],"^":[_t,[_t,_t],(i,[e,r])=>Math.pow(e.evaluate(i),r.evaluate(i))],sqrt:[_t,[_t],(i,[e])=>Math.sqrt(e.evaluate(i))],log10:[_t,[_t],(i,[e])=>Math.log(e.evaluate(i))/Math.LN10],ln:[_t,[_t],(i,[e])=>Math.log(e.evaluate(i))],log2:[_t,[_t],(i,[e])=>Math.log(e.evaluate(i))/Math.LN2],sin:[_t,[_t],(i,[e])=>Math.sin(e.evaluate(i))],cos:[_t,[_t],(i,[e])=>Math.cos(e.evaluate(i))],tan:[_t,[_t],(i,[e])=>Math.tan(e.evaluate(i))],asin:[_t,[_t],(i,[e])=>Math.asin(e.evaluate(i))],acos:[_t,[_t],(i,[e])=>Math.acos(e.evaluate(i))],atan:[_t,[_t],(i,[e])=>Math.atan(e.evaluate(i))],min:[_t,Yr(_t),(i,e)=>Math.min(...e.map((r=>r.evaluate(i))))],max:[_t,Yr(_t),(i,e)=>Math.max(...e.map((r=>r.evaluate(i))))],abs:[_t,[_t],(i,[e])=>Math.abs(e.evaluate(i))],round:[_t,[_t],(i,[e])=>{const r=e.evaluate(i);return r<0?-Math.round(-r):Math.round(r)}],floor:[_t,[_t],(i,[e])=>Math.floor(e.evaluate(i))],ceil:[_t,[_t],(i,[e])=>Math.ceil(e.evaluate(i))],"filter-==":[Ft,[Nt,jt],(i,[e,r])=>i.properties()[e.value]===r.value],"filter-id-==":[Ft,[jt],(i,[e])=>i.id()===e.value],"filter-type-==":[Ft,[Nt],(i,[e])=>i.geometryType()===e.value],"filter-<":[Ft,[Nt,jt],(i,[e,r])=>{const a=i.properties()[e.value],l=r.value;return typeof a==typeof l&&a<l}],"filter-id-<":[Ft,[jt],(i,[e])=>{const r=i.id(),a=e.value;return typeof r==typeof a&&r<a}],"filter->":[Ft,[Nt,jt],(i,[e,r])=>{const a=i.properties()[e.value],l=r.value;return typeof a==typeof l&&a>l}],"filter-id->":[Ft,[jt],(i,[e])=>{const r=i.id(),a=e.value;return typeof r==typeof a&&r>a}],"filter-<=":[Ft,[Nt,jt],(i,[e,r])=>{const a=i.properties()[e.value],l=r.value;return typeof a==typeof l&&a<=l}],"filter-id-<=":[Ft,[jt],(i,[e])=>{const r=i.id(),a=e.value;return typeof r==typeof a&&r<=a}],"filter->=":[Ft,[Nt,jt],(i,[e,r])=>{const a=i.properties()[e.value],l=r.value;return typeof a==typeof l&&a>=l}],"filter-id->=":[Ft,[jt],(i,[e])=>{const r=i.id(),a=e.value;return typeof r==typeof a&&r>=a}],"filter-has":[Ft,[jt],(i,[e])=>e.value in i.properties()],"filter-has-id":[Ft,[],i=>i.id()!==null&&i.id()!==void 0],"filter-type-in":[Ft,[M(Nt)],(i,[e])=>e.value.indexOf(i.geometryType())>=0],"filter-id-in":[Ft,[M(jt)],(i,[e])=>e.value.indexOf(i.id())>=0],"filter-in-small":[Ft,[Nt,M(jt)],(i,[e,r])=>r.value.indexOf(i.properties()[e.value])>=0],"filter-in-large":[Ft,[Nt,M(jt)],(i,[e,r])=>(function(a,l,h,d){for(;h<=d;){const f=h+d>>1;if(l[f]===a)return!0;l[f]>a?d=f-1:h=f+1}return!1})(i.properties()[e.value],r.value,0,r.value.length-1)],all:{type:Ft,overloads:[[[Ft,Ft],(i,[e,r])=>e.evaluate(i)&&r.evaluate(i)],[Yr(Ft),(i,e)=>{for(const r of e)if(!r.evaluate(i))return!1;return!0}]]},any:{type:Ft,overloads:[[[Ft,Ft],(i,[e,r])=>e.evaluate(i)||r.evaluate(i)],[Yr(Ft),(i,e)=>{for(const r of e)if(r.evaluate(i))return!0;return!1}]]},"!":[Ft,[Ft],(i,[e])=>!e.evaluate(i)],"is-supported-script":[Ft,[Nt],(i,[e])=>{const r=i.globals&&i.globals.isSupportedScript;return!r||r(e.evaluate(i))}],upcase:[Nt,[Nt],(i,[e])=>e.evaluate(i).toUpperCase()],downcase:[Nt,[Nt],(i,[e])=>e.evaluate(i).toLowerCase()],concat:[Nt,Yr(jt),(i,e)=>e.map((r=>Qs(r.evaluate(i)))).join("")],"resolved-locale":[Nt,[ir],(i,[e])=>e.evaluate(i).resolvedLocale()]});class Za{constructor(e,r){var a;this.expression=e,this._warningHistory={},this._evaluator=new za,this._defaultValue=r?(a=r).type==="color"&&$a(a.default)?new se(0,0,0,0):a.type==="color"?se.parse(a.default)||null:a.type==="padding"?pi.parse(a.default)||null:a.type==="variableAnchorOffsetCollection"?wi.parse(a.default)||null:a.default===void 0?null:a.default:null,this._enumValues=r&&r.type==="enum"?r.values:null}evaluateWithoutErrorHandling(e,r,a,l,h,d){return this._evaluator.globals=e,this._evaluator.feature=r,this._evaluator.featureState=a,this._evaluator.canonical=l,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=d,this.expression.evaluate(this._evaluator)}evaluate(e,r,a,l,h,d){this._evaluator.globals=e,this._evaluator.feature=r||null,this._evaluator.featureState=a||null,this._evaluator.canonical=l,this._evaluator.availableImages=h||null,this._evaluator.formattedSection=d||null;try{const f=this.expression.evaluate(this._evaluator);if(f==null||typeof f=="number"&&f!=f)return this._defaultValue;if(this._enumValues&&!(f in this._enumValues))throw new Se(`Expected value to be one of ${Object.keys(this._enumValues).map((_=>JSON.stringify(_))).join(", ")}, but found ${JSON.stringify(f)} instead.`);return f}catch(f){return this._warningHistory[f.message]||(this._warningHistory[f.message]=!0,typeof console<"u"&&console.warn(f.message)),this._defaultValue}}}function qa(i){return Array.isArray(i)&&i.length>0&&typeof i[0]=="string"&&i[0]in ys}function Ts(i,e){const r=new qr(ys,na,[],e?(function(l){const h={color:ei,string:Nt,number:_t,enum:Nt,boolean:Ft,formatted:mr,padding:Er,resolvedImage:rr,variableAnchorOffsetCollection:j};return l.type==="array"?M(h[l.value]||jt,l.length):h[l.type]})(e):void 0),a=r.parse(i,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return a?Ua(new Za(a,e)):vs(r.errors)}class Ss{constructor(e,r){this.kind=e,this._styleExpression=r,this.isStateDependent=e!=="constant"&&!xs(r.expression)}evaluateWithoutErrorHandling(e,r,a,l,h,d){return this._styleExpression.evaluateWithoutErrorHandling(e,r,a,l,h,d)}evaluate(e,r,a,l,h,d){return this._styleExpression.evaluate(e,r,a,l,h,d)}}class Is{constructor(e,r,a,l){this.kind=e,this.zoomStops=a,this._styleExpression=r,this.isStateDependent=e!=="camera"&&!xs(r.expression),this.interpolationType=l}evaluateWithoutErrorHandling(e,r,a,l,h,d){return this._styleExpression.evaluateWithoutErrorHandling(e,r,a,l,h,d)}evaluate(e,r,a,l,h,d){return this._styleExpression.evaluate(e,r,a,l,h,d)}interpolationFactor(e,r,a){return this.interpolationType?ri.interpolationFactor(this.interpolationType,e,r,a):0}}function Xn(i,e){const r=Ts(i,e);if(r.result==="error")return r;const a=r.value.expression,l=oa(a);if(!l&&!bs(e))return vs([new He("","data expressions not supported")]);const h=la(a,["zoom"]);if(!h&&!Yo(e))return vs([new He("","zoom expressions not supported")]);const d=ca(a);return d||h?d instanceof He?vs([d]):d instanceof ri&&!Gn(e)?vs([new He("",'"interpolate" expressions cannot be used with this property')]):Ua(d?new Is(l?"camera":"composite",r.value,d.labels,d instanceof ri?d.interpolation:void 0):new Ss(l?"constant":"source",r.value)):vs([new He("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class ks{constructor(e,r){this._parameters=e,this._specification=r,tr(this,Qo(this._parameters,this._specification))}static deserialize(e){return new ks(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function ca(i){let e=null;if(i instanceof zr)e=ca(i.result);else if(i instanceof Da){for(const r of i.args)if(e=ca(r),e)break}else(i instanceof ms||i instanceof ri)&&i.input instanceof Ti&&i.input.name==="zoom"&&(e=i);return e instanceof He||i.eachChild((r=>{const a=ca(r);a instanceof He?e=a:!e&&a?e=new He("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&a&&e!==a&&(e=new He("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),e}function Ga(i){if(i===!0||i===!1)return!0;if(!Array.isArray(i)||i.length===0)return!1;switch(i[0]){case"has":return i.length>=2&&i[1]!=="$id"&&i[1]!=="$type";case"in":return i.length>=3&&(typeof i[1]!="string"||Array.isArray(i[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return i.length!==3||Array.isArray(i[1])||Array.isArray(i[2]);case"any":case"all":for(const e of i.slice(1))if(!Ga(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}const Xa={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function Hn(i){if(i==null)return{filter:()=>!0,needGeometry:!1};Ga(i)||(i=Ha(i));const e=Ts(i,Xa);if(e.result==="error")throw new Error(e.value.map((r=>`${r.key}: ${r.message}`)).join(", "));return{filter:(r,a,l)=>e.value.evaluate(r,a,{},l),needGeometry:rl(i)}}function ic(i,e){return i<e?-1:i>e?1:0}function rl(i){if(!Array.isArray(i))return!1;if(i[0]==="within"||i[0]==="distance")return!0;for(let e=1;e<i.length;e++)if(rl(i[e]))return!0;return!1}function Ha(i){if(!i)return!0;const e=i[0];return i.length<=1?e!=="any":e==="=="?Wn(i[1],i[2],"=="):e==="!="?Oe(Wn(i[1],i[2],"==")):e==="<"||e===">"||e==="<="||e===">="?Wn(i[1],i[2],e):e==="any"?(r=i.slice(1),["any"].concat(r.map(Ha))):e==="all"?["all"].concat(i.slice(1).map(Ha)):e==="none"?["all"].concat(i.slice(1).map(Ha).map(Oe)):e==="in"?ua(i[1],i.slice(2)):e==="!in"?Oe(ua(i[1],i.slice(2))):e==="has"?ha(i[1]):e!=="!has"||Oe(ha(i[1]));var r}function Wn(i,e,r){switch(i){case"$type":return[`filter-type-${r}`,e];case"$id":return[`filter-id-${r}`,e];default:return[`filter-${r}`,i,e]}}function ua(i,e){if(e.length===0)return!1;switch(i){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((r=>typeof r!=typeof e[0]))?["filter-in-large",i,["literal",e.sort(ic)]]:["filter-in-small",i,["literal",e]]}}function ha(i){switch(i){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",i]}}function Oe(i){return["!",i]}function Qr(i){const e=typeof i;if(e==="number"||e==="boolean"||e==="string"||i==null)return JSON.stringify(i);if(Array.isArray(i)){let l="[";for(const h of i)l+=`${Qr(h)},`;return`${l}]`}const r=Object.keys(i).sort();let a="{";for(let l=0;l<r.length;l++)a+=`${JSON.stringify(r[l])}:${Qr(i[r[l]])},`;return`${a}}`}function sl(i){let e="";for(const r of Nr)e+=`/${Qr(i[r])}`;return e}function al(i){const e=i.value;return e?[new ht(i.key,e,"constants have been deprecated as of v8")]:[]}function we(i){return i instanceof Number||i instanceof String||i instanceof Boolean?i.valueOf():i}function Vi(i){if(Array.isArray(i))return i.map(Vi);if(i instanceof Object&&!(i instanceof Number||i instanceof String||i instanceof Boolean)){const e={};for(const r in i)e[r]=Vi(i[r]);return e}return we(i)}function mi(i){const e=i.key,r=i.value,a=i.valueSpec||{},l=i.objectElementValidators||{},h=i.style,d=i.styleSpec,f=i.validateSpec;let _=[];const x=Yt(r);if(x!=="object")return[new ht(e,r,`object expected, ${x} found`)];for(const v in r){const w=v.split(".")[0],I=a[w]||a["*"];let E;if(l[w])E=l[w];else if(a[w])E=f;else if(l["*"])E=l["*"];else{if(!a["*"]){_.push(new ht(e,r[v],`unknown property "${v}"`));continue}E=f}_=_.concat(E({key:(e&&`${e}.`)+v,value:r[v],valueSpec:I,style:h,styleSpec:d,object:r,objectKey:v,validateSpec:f},r))}for(const v in a)l[v]||a[v].required&&a[v].default===void 0&&r[v]===void 0&&_.push(new ht(e,r,`missing required property "${v}"`));return _}function da(i){const e=i.value,r=i.valueSpec,a=i.style,l=i.styleSpec,h=i.key,d=i.arrayElementValidator||i.validateSpec;if(Yt(e)!=="array")return[new ht(h,e,`array expected, ${Yt(e)} found`)];if(r.length&&e.length!==r.length)return[new ht(h,e,`array length ${r.length} expected, length ${e.length} found`)];if(r["min-length"]&&e.length<r["min-length"])return[new ht(h,e,`array length at least ${r["min-length"]} expected, length ${e.length} found`)];let f={type:r.value,values:r.values};l.$version<7&&(f.function=r.function),Yt(r.value)==="object"&&(f=r.value);let _=[];for(let x=0;x<e.length;x++)_=_.concat(d({array:e,arrayIndex:x,value:e[x],valueSpec:f,validateSpec:i.validateSpec,style:a,styleSpec:l,key:`${h}[${x}]`}));return _}function Kn(i){const e=i.key,r=i.value,a=i.valueSpec;let l=Yt(r);return l==="number"&&r!=r&&(l="NaN"),l!=="number"?[new ht(e,r,`number expected, ${l} found`)]:"minimum"in a&&r<a.minimum?[new ht(e,r,`${r} is less than the minimum value ${a.minimum}`)]:"maximum"in a&&r>a.maximum?[new ht(e,r,`${r} is greater than the maximum value ${a.maximum}`)]:[]}function Wa(i){const e=i.valueSpec,r=we(i.value.type);let a,l,h,d={};const f=r!=="categorical"&&i.value.property===void 0,_=!f,x=Yt(i.value.stops)==="array"&&Yt(i.value.stops[0])==="array"&&Yt(i.value.stops[0][0])==="object",v=mi({key:i.key,value:i.value,valueSpec:i.styleSpec.function,validateSpec:i.validateSpec,style:i.style,styleSpec:i.styleSpec,objectElementValidators:{stops:function(E){if(r==="identity")return[new ht(E.key,E.value,'identity function may not have a "stops" property')];let C=[];const P=E.value;return C=C.concat(da({key:E.key,value:P,valueSpec:E.valueSpec,validateSpec:E.validateSpec,style:E.style,styleSpec:E.styleSpec,arrayElementValidator:w})),Yt(P)==="array"&&P.length===0&&C.push(new ht(E.key,P,"array must have at least one stop")),C},default:function(E){return E.validateSpec({key:E.key,value:E.value,valueSpec:e,validateSpec:E.validateSpec,style:E.style,styleSpec:E.styleSpec})}}});return r==="identity"&&f&&v.push(new ht(i.key,i.value,'missing required property "property"')),r==="identity"||i.value.stops||v.push(new ht(i.key,i.value,'missing required property "stops"')),r==="exponential"&&i.valueSpec.expression&&!Gn(i.valueSpec)&&v.push(new ht(i.key,i.value,"exponential functions not supported")),i.styleSpec.$version>=8&&(_&&!bs(i.valueSpec)?v.push(new ht(i.key,i.value,"property functions not supported")):f&&!Yo(i.valueSpec)&&v.push(new ht(i.key,i.value,"zoom functions not supported"))),r!=="categorical"&&!x||i.value.property!==void 0||v.push(new ht(i.key,i.value,'"property" property is required')),v;function w(E){let C=[];const P=E.value,L=E.key;if(Yt(P)!=="array")return[new ht(L,P,`array expected, ${Yt(P)} found`)];if(P.length!==2)return[new ht(L,P,`array length 2 expected, length ${P.length} found`)];if(x){if(Yt(P[0])!=="object")return[new ht(L,P,`object expected, ${Yt(P[0])} found`)];if(P[0].zoom===void 0)return[new ht(L,P,"object stop key must have zoom")];if(P[0].value===void 0)return[new ht(L,P,"object stop key must have value")];if(h&&h>we(P[0].zoom))return[new ht(L,P[0].zoom,"stop zoom values must appear in ascending order")];we(P[0].zoom)!==h&&(h=we(P[0].zoom),l=void 0,d={}),C=C.concat(mi({key:`${L}[0]`,value:P[0],valueSpec:{zoom:{}},validateSpec:E.validateSpec,style:E.style,styleSpec:E.styleSpec,objectElementValidators:{zoom:Kn,value:I}}))}else C=C.concat(I({key:`${L}[0]`,value:P[0],valueSpec:{},validateSpec:E.validateSpec,style:E.style,styleSpec:E.styleSpec},P));return qa(Vi(P[1]))?C.concat([new ht(`${L}[1]`,P[1],"expressions are not allowed in function stops.")]):C.concat(E.validateSpec({key:`${L}[1]`,value:P[1],valueSpec:e,validateSpec:E.validateSpec,style:E.style,styleSpec:E.styleSpec}))}function I(E,C){const P=Yt(E.value),L=we(E.value),U=E.value!==null?E.value:C;if(a){if(P!==a)return[new ht(E.key,U,`${P} stop domain type must match previous stop domain type ${a}`)]}else a=P;if(P!=="number"&&P!=="string"&&P!=="boolean")return[new ht(E.key,U,"stop domain value must be a number, string, or boolean")];if(P!=="number"&&r!=="categorical"){let Q=`number expected, ${P} found`;return bs(e)&&r===void 0&&(Q+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ht(E.key,U,Q)]}return r!=="categorical"||P!=="number"||isFinite(L)&&Math.floor(L)===L?r!=="categorical"&&P==="number"&&l!==void 0&&L<l?[new ht(E.key,U,"stop domain values must appear in ascending order")]:(l=L,r==="categorical"&&L in d?[new ht(E.key,U,"stop domain values must be unique")]:(d[L]=!0,[])):[new ht(E.key,U,`integer expected, found ${L}`)]}}function Ms(i){const e=(i.expressionContext==="property"?Xn:Ts)(Vi(i.value),i.valueSpec);if(e.result==="error")return e.value.map((a=>new ht(`${i.key}${a.key}`,i.value,a.message)));const r=e.value.expression||e.value._styleExpression.expression;if(i.expressionContext==="property"&&i.propertyKey==="text-font"&&!r.outputDefined())return[new ht(i.key,i.value,`Invalid data expression for "${i.propertyKey}". Output values must be contained as literals within the expression.`)];if(i.expressionContext==="property"&&i.propertyType==="layout"&&!xs(r))return[new ht(i.key,i.value,'"feature-state" data expressions are not supported with layout properties.')];if(i.expressionContext==="filter"&&!xs(r))return[new ht(i.key,i.value,'"feature-state" data expressions are not supported with filters.')];if(i.expressionContext&&i.expressionContext.indexOf("cluster")===0){if(!la(r,["zoom","feature-state"]))return[new ht(i.key,i.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(i.expressionContext==="cluster-initial"&&!oa(r))return[new ht(i.key,i.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function gr(i){const e=i.key,r=i.value,a=i.valueSpec,l=[];return Array.isArray(a.values)?a.values.indexOf(we(r))===-1&&l.push(new ht(e,r,`expected one of [${a.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(a.values).indexOf(we(r))===-1&&l.push(new ht(e,r,`expected one of [${Object.keys(a.values).join(", ")}], ${JSON.stringify(r)} found`)),l}function Jn(i){return Ga(Vi(i.value))?Ms(tr({},i,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Ka(i)}function Ka(i){const e=i.value,r=i.key;if(Yt(e)!=="array")return[new ht(r,e,`array expected, ${Yt(e)} found`)];const a=i.styleSpec;let l,h=[];if(e.length<1)return[new ht(r,e,"filter array must have at least 1 element")];switch(h=h.concat(gr({key:`${r}[0]`,value:e[0],valueSpec:a.filter_operator,style:i.style,styleSpec:i.styleSpec})),we(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&we(e[1])==="$type"&&h.push(new ht(r,e,`"$type" cannot be use with operator "${e[0]}"`));case"==":case"!=":e.length!==3&&h.push(new ht(r,e,`filter array for operator "${e[0]}" must have 3 elements`));case"in":case"!in":e.length>=2&&(l=Yt(e[1]),l!=="string"&&h.push(new ht(`${r}[1]`,e[1],`string expected, ${l} found`)));for(let d=2;d<e.length;d++)l=Yt(e[d]),we(e[1])==="$type"?h=h.concat(gr({key:`${r}[${d}]`,value:e[d],valueSpec:a.geometry_type,style:i.style,styleSpec:i.styleSpec})):l!=="string"&&l!=="number"&&l!=="boolean"&&h.push(new ht(`${r}[${d}]`,e[d],`string, number, or boolean expected, ${l} found`));break;case"any":case"all":case"none":for(let d=1;d<e.length;d++)h=h.concat(Ka({key:`${r}[${d}]`,value:e[d],style:i.style,styleSpec:i.styleSpec}));break;case"has":case"!has":l=Yt(e[1]),e.length!==2?h.push(new ht(r,e,`filter array for "${e[0]}" operator must have 2 elements`)):l!=="string"&&h.push(new ht(`${r}[1]`,e[1],`string expected, ${l} found`))}return h}function Yn(i,e){const r=i.key,a=i.validateSpec,l=i.style,h=i.styleSpec,d=i.value,f=i.objectKey,_=h[`${e}_${i.layerType}`];if(!_)return[];const x=f.match(/^(.*)-transition$/);if(e==="paint"&&x&&_[x[1]]&&_[x[1]].transition)return a({key:r,value:d,valueSpec:h.transition,style:l,styleSpec:h});const v=i.valueSpec||_[f];if(!v)return[new ht(r,d,`unknown property "${f}"`)];let w;if(Yt(d)==="string"&&bs(v)&&!v.tokens&&(w=/^{([^}]+)}$/.exec(d)))return[new ht(r,d,`"${f}" does not support interpolation syntax
|
package/dist/wafields.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-CMKoSVik.js");exports.AttributeCollectionPetBreedDisplay=t.AttributeCollectionPetBreedDisplay;exports.AttributeCollectionPetBreedEditing=t.AttributeCollectionPetBreedEditing;exports.AttributeCollectionPetBreedNonEdit=t.AttributeCollectionPetBreedNonEdit;exports.AttributeCollectionPetHeightDisplay=t.AttributeCollectionPetHeightDisplay;exports.AttributeCollectionPetHeightNonEdit=t.AttributeCollectionPetHeightNonEdit;exports.AttributeCollectionPetWeightDisplay=t.AttributeCollectionPetWeightDisplay;exports.AttributeCollectionPetWeightNonEdit=t.AttributeCollectionPetWeightNonEdit;exports.AttributeCommonDobDisplay=t.AttributeCommonDobDisplay;exports.AttributeCommonDobEditing=t.AttributeCommonDobEditing;exports.AttributeCommonDobNonEdit=t.AttributeCommonDobNonEdit;exports.AttributeCommonGenderDisplay=t.AttributeCommonGenderDisplay;exports.AttributeCommonGenderEditing=t.AttributeCommonGenderEditing;exports.AttributeCommonGenderNonEdit=t.AttributeCommonGenderNonEdit;exports.AttributeCommonHandednessDisplay=t.AttributeCommonHandednessDisplay;exports.AttributeCommonHandednessEditing=t.AttributeCommonHandednessEditing;exports.AttributeCommonHandednessNonEdit=t.AttributeCommonHandednessNonEdit;exports.AttributeDisplay=t.AttributeDisplay;exports.AttributeUnspecified=t.AttributeUnspecified;exports.AttributeUoiSportsBasketballPositionsDisplay=t.AttributeUoiSportsBasketballPositionsDisplay;exports.AttributeUoiSportsBasketballPositionsEditing=t.AttributeUoiSportsBasketballPositionsEditing;exports.AttributeUoiSportsBasketballPositionsNonEdit=t.AttributeUoiSportsBasketballPositionsNonEdit;exports.AttributeUoiSportsTennisBackhandDisplay=t.AttributeUoiSportsTennisBackhandDisplay;exports.AttributeUoiSportsTennisBackhandEditing=t.AttributeUoiSportsTennisBackhandEditing;exports.AttributeUoiSportsTennisBackhandNonEdit=t.AttributeUoiSportsTennisBackhandNonEdit;exports.AttributeUoiSportsTennisLevelDisplay=t.AttributeUoiSportsTennisLevelDisplay;exports.AttributeUoiSportsTennisLevelEditing=t.AttributeUoiSportsTennisLevelEditing;exports.AttributeUoiSportsTennisLevelNonEdit=t.AttributeUoiSportsTennisLevelNonEdit;exports.AttributeUpdater=t.AttributeUpdater;exports.BuddiesNearbyLogo=t.BuddiesNearbyLogo;exports.CollectionTypePicker=t.CollectionTypePicker;exports.GameCreationFields=t.GameCreationFields;exports.GameTypePicker=t.GameTypePicker;exports.LeaderboardOrder=t.LeaderboardOrder;exports.LeaderboardTypePicker=t.LeaderboardTypePicker;exports.PagePID=t.PagePID;exports.PlayerTag=t.PlayerTag;exports.PlayerTypePicker=t.PlayerTypePicker;exports.PostPrivacyDisplay=t.PostPrivacyDisplay;exports.PostPrivacyPicker=t.PostPrivacyPicker;exports.ProfilePrivacyDisplay=t.ProfilePrivacyDisplay;exports.ProfilePrivacyPicker=t.ProfilePrivacyPicker;exports.UserPronounDisplay=t.UserPronounDisplay;exports.UserPronounPicker=t.UserPronounPicker;
|
package/dist/wafields.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z as e, B as s, C as a, v as o, w as r, x as n, y as l, i as d, k as b, j as u, e as P, c as p, d as A, h as y, f as c, g as m, a as C, b as D, u as E, t as g, s as k, n as U, l as B, m as N, q as T, o as S, r as h, A as v, O as L, K as G, G as H, I as f, H as x, L as F, P as I, Q as O, J as W, N as j, M as q, E as w, D as z, F as J, U as K } from "./index-
|
|
1
|
+
import { z as e, B as s, C as a, v as o, w as r, x as n, y as l, i as d, k as b, j as u, e as P, c as p, d as A, h as y, f as c, g as m, a as C, b as D, u as E, t as g, s as k, n as U, l as B, m as N, q as T, o as S, r as h, A as v, O as L, K as G, G as H, I as f, H as x, L as F, P as I, Q as O, J as W, N as j, M as q, E as w, D as z, F as J, U as K } from "./index-aatMMOOd.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as AttributeCollectionPetBreedDisplay,
|
|
4
4
|
s as AttributeCollectionPetBreedEditing,
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|