@kvass/widgets 1.9.0 → 1.9.2
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/chart-builder.js +2 -2
- package/dist/directories.js +1 -1
- package/dist/finn.js +11 -11
- package/dist/flatfinder.js +1 -1
- package/dist/font-selector.js +1 -1
- package/dist/google-search-console.js +2 -2
- package/dist/gsc-verification-key-form.js +1 -1
- package/dist/icon-selector.js +1 -1
- package/dist/index.es2.js +22 -22
- package/dist/knips.js +2 -2
- package/dist/kvass-form.js +3 -3
- package/dist/loan-calculator.js +1 -1
- package/dist/map.js +1 -1
- package/dist/nabolagsprofil.js +1 -1
- package/dist/residential-expenses.js +2 -2
- package/dist/style.js +1 -1
- package/dist/table-builder.js +1 -1
- package/dist/visualization-order-form.js +6 -6
- package/package.json +2 -2
package/dist/map.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as DE,r as Zs,b as Ba,i as PE,D as RE,c as $s,o as ko,a as fu,d as nf,t as uv,y as LE,_ as BE,E as OE,h as sv,e as hu,w as du,j as af,v as La,C as FE,F as NE,l as VE,p as UE}from"./_plugin-vue_export-helper.js";import{j as jE}from"./index.es.js";import{Z as GE,p as qE,C as ZE,b as $E}from"./index.es2.js";var lv={},HE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},hv={exports:{}};(function(Ar,zt){(function(qr,Cr){Ar.exports=Cr()})(HE,function(){var qr,Cr,To;function Bi(Ee,$){if(!qr)qr=$;else if(!Cr)Cr=$;else{var Or="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+qr+")(sharedChunk); ("+Cr+")(sharedChunk); self.onerror = null;",Zr={};qr(Zr),To=$(Zr),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(To.workerUrl=window.URL.createObjectURL(new Blob([Or],{type:"text/javascript"})))}}Bi(["exports"],function(Ee){var $=typeof self<"u"?self:{},Or="3.1.2";let Zr;const Ge={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(Zr==null){const t=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{Zr=lv.API_URL_REGEX!=null?new RegExp(lv.API_URL_REGEX):t}catch{Zr=t}}return Zr},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!Ge.API_URL)return null;try{const t=new URL(Ge.API_URL);return t.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":t.hostname==="api.mapbox.com"?"https://events.mapbox.com/events/v2":null}catch{return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},Ut={supported:!1,testSupport:function(t){!Ti&&cr&&(Lr?Oi(t):Ir=t)}};let Ir,cr,Ti=!1,Lr=!1;function Oi(t){const e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,cr),t.isContextLost())return;Ut.supported=!0}catch{}t.deleteTexture(e),Ti=!0}$.document&&(cr=$.document.createElement("img"),cr.onload=function(){Ir&&Oi(Ir),Ir=null,Lr=!0},cr.onerror=function(){Ti=!0,Ir=null},cr.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const Eo="01";function hi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Hs=ra;function ra(t,e,r,i){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(i-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=e,this.p2x=r,this.p2y=i}ra.prototype={sampleCurveX:function(t){return((this.ax*t+this.bx)*t+this.cx)*t},sampleCurveY:function(t){return((this.ay*t+this.by)*t+this.cy)*t},sampleCurveDerivativeX:function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},solveCurveX:function(t,e){if(e===void 0&&(e=1e-6),t<0)return 0;if(t>1)return 1;for(var r=t,i=0;i<8;i++){var o=this.sampleCurveX(r)-t;if(Math.abs(o)<e)return r;var a=this.sampleCurveDerivativeX(r);if(Math.abs(a)<1e-6)break;r-=o/a}var n=0,s=1;for(r=t,i=0;i<20&&(o=this.sampleCurveX(r),!(Math.abs(o-t)<e));i++)t>o?n=r:s=r,r=.5*(s-n)+n;return r},solve:function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}};var Ws=hi(Hs),Fa=Fi;function Fi(t,e){this.x=t,this.y=e}Fi.prototype={clone:function(){return new Fi(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},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(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),i=r*this.x+e*this.y;return this.x=e*this.x-r*this.y,this.y=i,this},_rotateAround:function(t,e){var r=Math.cos(t),i=Math.sin(t),o=e.y+i*(this.x-e.x)+r*(this.y-e.y);return this.x=e.x+r*(this.x-e.x)-i*(this.y-e.y),this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Fi.convert=function(t){return t instanceof Fi?t:Array.isArray(t)?new Fi(t[0],t[1]):t};var N=hi(Fa);function dt(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!dt(t[r],e[r]))return!1;return!0}if(typeof t=="object"&&t!==null&&e!==null){if(typeof e!="object"||Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!dt(t[r],e[r]))return!1;return!0}return t===e}const mu=Math.PI/180,ia=180/Math.PI;function He(t){return t*mu}function wr(t){return t*ia}const gu=[[0,0],[1,0],[1,1],[0,1]];function Na(t){if(t<=0)return 0;if(t>=1)return 1;const e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function _u(t){let e=1/0,r=1/0,i=-1/0,o=-1/0;for(const a of t)e=Math.min(e,a.x),r=Math.min(r,a.y),i=Math.max(i,a.x),o=Math.max(o,a.y);return{min:new N(e,r),max:new N(i,o)}}function oa(t,e,r=0,i=!0){const o=new N(r,r),a=t.sub(o),n=e.add(o),s=[a,new N(n.x,a.y),n,new N(a.x,n.y)];return i&&s.push(a.clone()),s}function aa(t,e,r,i){const o=new Ws(t,e,r,i);return function(a){return o.solve(a)}}const di=aa(.25,.1,.25,1);function Me(t,e,r){return Math.min(r,Math.max(e,t))}function Ni(t,e,r){return(r=Me((r-t)/(e-t),0,1))*r*(3-2*r)}function Vi(t,e,r){const i=r-e,o=((t-e)%i+i)%i+e;return o===e?r:o}function na(t,e,r){if(!t.length)return r(null,[]);let i=t.length;const o=new Array(t.length);let a=null;t.forEach((n,s)=>{e(n,(l,c)=>{l&&(a=l),o[s]=c,--i==0&&r(a,o)})})}function sa(t){const e=[];for(const r in t)e.push(t[r]);return e}function we(t,...e){for(const r of e)for(const i in r)t[i]=r[i];return t}function $r(t,e){const r={};for(let i=0;i<e.length;i++){const o=e[i];o in t&&(r[o]=t[o])}return r}let yu=1;function Va(){return yu++}function Xs(){return function t(e){return e?(e^Math.random()*(16>>e/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function Ys(t){return t<=1?1:Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function Js(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function mr(t,e){t.forEach(r=>{e[r]&&(e[r]=e[r].bind(e))})}function Ua(t,e){return t.indexOf(e,t.length-e.length)!==-1}function ja(t,e,r){const i={};for(const o in t)i[o]=e.call(this,t[o],o,t);return i}function le(t,e,r){const i={};for(const o in t)e.call(this,t[o],o,t)&&(i[o]=t[o]);return i}function I(t){return Array.isArray(t)?t.map(I):typeof t=="object"&&t?ja(t,I):t}const P={};function F(t){P[t]||(typeof console<"u"&&console.warn(t),P[t]=!0)}function te(t,e,r){return(r.y-t.y)*(e.x-t.x)>(e.y-t.y)*(r.x-t.x)}function ie(t){let e=0;for(let r,i,o=0,a=t.length,n=a-1;o<a;n=o++)r=t[o],i=t[n],e+=(i.x-r.x)*(r.y+i.y);return e}function ve([t,e,r]){const i=He(e+90),o=He(r);return{x:t*Math.cos(i)*Math.sin(o),y:t*Math.sin(i)*Math.sin(o),z:t*Math.cos(o),azimuthal:e,polar:r}}function Ce(t,e,r){const i=Math.sqrt(t*t+e*e+r*r),o=i>0?Math.acos(r/i)*ia:0;let a=t!==0||e!==0?Math.atan2(-e,-t)*ia+90:0;return a<0&&(a+=360),[i,a,o]}function oe(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}function Ie(t){const e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(r,i,o,a)=>{const n=o||a;return e[i]=!n||n.toLowerCase(),""}),e["max-age"]){const r=parseInt(e["max-age"],10);isNaN(r)?delete e["max-age"]:e["max-age"]=r}return e}let qe=null;function Ue(){return!!$.document.fullscreenElement||!!$.document.webkitFullscreenElement}function Pt(t){try{const e=$[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch{return!1}}function Ht(t,e){return[t[4*e],t[4*e+1],t[4*e+2],t[4*e+3]]}function kr(t,e,r){t[4*e+0]=r[0],t[4*e+1]=r[1],t[4*e+2]=r[2],t[4*e+3]=r[3]}function Wt(t,e){return[Math.pow(t[0],2.2)*e,Math.pow(t[1],2.2)*e,Math.pow(t[2],2.2)*e]}function tr(t){return[Math.pow(t[0],1/2.2),Math.pow(t[1],1/2.2),Math.pow(t[2],1/2.2)]}const Bt="mapbox-tiles";let zr=500,Fr=50,Nr,Ei;function Ga(){try{return $.caches}catch{}}function Hr(){Ga()&&!Nr&&(Nr=$.caches.open(Bt))}function ro(t){const e=t.indexOf("?");if(e<0)return t;const r=function(o){const a=o.indexOf("?");return a>0?o.slice(a+1).split("&"):[]}(t),i=r.filter(o=>{const a=o.split("=");return a[0]==="language"||a[0]==="worldview"});return i.length?`${t.slice(0,e)}?${i.join("&")}`:t.slice(0,e)}let Mo=1/0;function qa(t){Mo++,Mo>Fr&&(t.getActor().send("enforceCacheSizeLimit",zr),Mo=0)}const J={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image",Model:"Model"};typeof Object.freeze=="function"&&Object.freeze(J);class Q extends Error{constructor(e,r,i){r===401&&Xt(i)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=r,this.url=i}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const ne=oe()?()=>self.worker&&self.worker.referrer:()=>($.location.protocol==="blob:"?$.parent:$).location.href,ce=function(t,e){if(!(/^file:/.test(r=t.url)||/^file:/.test(ne())&&!/^\w+:/.test(r))){if($.fetch&&$.Request&&$.AbortController&&$.Request.prototype.hasOwnProperty("signal"))return function(i,o){const a=new $.AbortController,n=new $.Request(i.url,{method:i.method||"GET",body:i.body,credentials:i.credentials,headers:i.headers,referrer:ne(),referrerPolicy:i.referrerPolicy,signal:a.signal});let s=!1,l=!1;const c=(u=n.url).indexOf("sku=")>0&&Xt(u);var u;i.type==="json"&&n.headers.set("Accept","application/json");const h=(p,f,m)=>{if(l)return;if(p&&p.message!=="SecurityError"&&F(p.toString()),f&&m)return d(f);const g=Date.now();$.fetch(n).then(_=>{if(_.ok){const y=c?_.clone():null;return d(_,y,g)}return o(new Q(_.statusText,_.status,i.url))}).catch(_=>{_.name!=="AbortError"&&o(new Error(`${_.message} ${i.url}`))})},d=(p,f,m)=>{(i.type==="arrayBuffer"?p.arrayBuffer():i.type==="json"?p.json():p.text()).then(g=>{l||(f&&m&&function(_,y,v){if(Hr(),!Nr)return;const b={status:y.status,statusText:y.statusText,headers:new $.Headers};y.headers.forEach((k,T)=>b.headers.set(T,k));const x=Ie(y.headers.get("Cache-Control")||"");if(x["no-store"])return;x["max-age"]&&b.headers.set("Expires",new Date(v+1e3*x["max-age"]).toUTCString());const w=b.headers.get("Expires");w&&(new Date(w).getTime()-v<42e4||function(k,T){if(Ei===void 0)try{new Response(new ReadableStream),Ei=!0}catch{Ei=!1}Ei?T(k.body):k.blob().then(T)}(y,k=>{const T=new $.Response(k,b);Hr(),Nr&&Nr.then(E=>E.put(ro(_.url),T)).catch(E=>F(E.message))}))}(n,f,m),s=!0,o(null,g,p.headers.get("Cache-Control"),p.headers.get("Expires")))}).catch(g=>{l||o(new Error(g.message))})};return c?function(p,f){if(Hr(),!Nr)return f(null);const m=ro(p.url);Nr.then(g=>{g.match(m).then(_=>{const y=function(v){if(!v)return!1;const b=new Date(v.headers.get("Expires")||0),x=Ie(v.headers.get("Cache-Control")||"");return b>Date.now()&&!x["no-cache"]}(_);g.delete(m),y&&g.put(m,_.clone()),f(null,_,y)}).catch(f)}).catch(f)}(n,h):h(null,null),{cancel:()=>{l=!0,s||a.abort()}}}(t,e);if(oe()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e,void 0,!0)}var r;return function(i,o){const a=new $.XMLHttpRequest;a.open(i.method||"GET",i.url,!0),i.type==="arrayBuffer"&&(a.responseType="arraybuffer");for(const n in i.headers)a.setRequestHeader(n,i.headers[n]);return i.type==="json"&&(a.responseType="text",a.setRequestHeader("Accept","application/json")),a.withCredentials=i.credentials==="include",a.onerror=()=>{o(new Error(a.statusText))},a.onload=()=>{if((a.status>=200&&a.status<300||a.status===0)&&a.response!==null){let n=a.response;if(i.type==="json")try{n=JSON.parse(a.response)}catch(s){return o(s)}o(null,n,a.getResponseHeader("Cache-Control"),a.getResponseHeader("Expires"))}else o(new Q(a.statusText,a.status,i.url))},a.send(i.body),{cancel:()=>a.abort()}}(t,e)},ue=function(t,e){return ce(we(t,{type:"json"}),e)},fe=function(t,e){return ce(we(t,{type:"arrayBuffer"}),e)};function ge(t){const e=$.document.createElement("a");return e.href=t,e.protocol===$.document.location.protocol&&e.host===$.document.location.host}const he="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Te,me;Te=[],me=0;const Je=function(t,e){if(Ut.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),me>=Ge.MAX_PARALLEL_IMAGE_REQUESTS){const a={requestParameters:t,callback:e,cancelled:!1,cancel(){this.cancelled=!0}};return Te.push(a),a}me++;let r=!1;const i=()=>{if(!r)for(r=!0,me--;Te.length&&me<Ge.MAX_PARALLEL_IMAGE_REQUESTS;){const a=Te.shift(),{requestParameters:n,callback:s,cancelled:l}=a;l||(a.cancel=Je(n,s).cancel)}},o=fe(t,(a,n,s,l)=>{i(),a?e(a):n&&($.createImageBitmap?function(c,u){const h=new $.Blob([new Uint8Array(c)],{type:"image/png"});$.createImageBitmap(h).then(d=>{u(null,d)}).catch(d=>{u(new Error(`Could not load image because of ${d.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(n,(c,u)=>e(c,u,s,l)):function(c,u){const h=new $.Image,d=$.URL;h.onload=()=>{u(null,h),d.revokeObjectURL(h.src),h.onload=null,$.requestAnimationFrame(()=>{h.src=he})},h.onerror=()=>u(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const p=new $.Blob([new Uint8Array(c)],{type:"image/png"});h.src=c.byteLength?d.createObjectURL(p):he}(n,(c,u)=>e(c,u,s,l)))});return{cancel:()=>{o.cancel(),i()}}},St="NO_ACCESS_TOKEN";class Pe{constructor(e,r,i){this._transformRequestFn=e,this._customAccessToken=r,this._silenceAuthErrors=!!i,this._createSkuToken()}_createSkuToken(){const e=function(){let r="";for(let i=0;i<10;i++)r+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",Eo,r].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(e,r){return this._transformRequestFn&&this._transformRequestFn(e,r)||{url:e}}normalizeStyleURL(e,r){if(!wt(e))return e;const i=gr(e);return i.params.push(`sdk=js-${Or}`),i.path=`/styles/v1${i.path}`,this._makeAPIURL(i,this._customAccessToken||r)}normalizeGlyphsURL(e,r){if(!wt(e))return e;const i=gr(e);return i.path=`/fonts/v1${i.path}`,this._makeAPIURL(i,this._customAccessToken||r)}normalizeModelURL(e,r){if(!wt(e))return e;const i=gr(e);return i.path=`/models/v1${i.path}`,this._makeAPIURL(i,this._customAccessToken||r)}normalizeSourceURL(e,r,i,o){if(!wt(e))return e;const a=gr(e);return a.path=`/v4/${a.authority}.json`,a.params.push("secure"),i&&a.params.push(`language=${i}`),o&&a.params.push(`worldview=${o}`),this._makeAPIURL(a,this._customAccessToken||r)}normalizeSpriteURL(e,r,i,o){const a=gr(e);return wt(e)?(a.path=`/styles/v1${a.path}/sprite${r}${i}`,this._makeAPIURL(a,this._customAccessToken||o)):(a.path+=`${r}${i}`,Vr(a))}normalizeTileURL(e,r,i){if(this._isSkuTokenExpired()&&this._createSkuToken(),e&&!wt(e))return e;const o=gr(e);o.path=o.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${r||i&&o.authority!=="raster"&&i===512?"@2x":""}${Ut.supported?".webp":"$1"}`),o.authority==="raster"?o.path=`/${Ge.RASTER_URL_PREFIX}${o.path}`:(o.path=o.path.replace(/^.+\/v4\//,"/"),o.path=`/${Ge.TILE_URL_VERSION}${o.path}`);const a=this._customAccessToken||function(n){for(const s of n){const l=s.match(/^access_token=(.*)$/);if(l)return l[1]}return null}(o.params)||Ge.ACCESS_TOKEN;return Ge.REQUIRE_ACCESS_TOKEN&&a&&this._skuToken&&o.params.push(`sku=${this._skuToken}`),this._makeAPIURL(o,a)}canonicalizeTileURL(e,r){const i=gr(e);if(!i.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!i.path.match(/\.[\w]+$/))return e;let o="mapbox://";i.path.match(/^\/raster\/v1\//)?o+=`raster/${i.path.replace(`/${Ge.RASTER_URL_PREFIX}/`,"")}`:o+=`tiles/${i.path.replace(`/${Ge.TILE_URL_VERSION}/`,"")}`;let a=i.params;return r&&(a=a.filter(n=>!n.match(/^access_token=/))),a.length&&(o+=`?${a.join("&")}`),o}canonicalizeTileset(e,r){const i=!!r&&wt(r),o=[];for(const a of e.tiles||[])Xt(a)?o.push(this.canonicalizeTileURL(a,i)):o.push(a);return o}_makeAPIURL(e,r){const i="See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes",o=gr(Ge.API_URL);if(e.protocol=o.protocol,e.authority=o.authority,e.protocol==="http"){const a=e.params.indexOf("secure");a>=0&&e.params.splice(a,1)}if(o.path!=="/"&&(e.path=`${o.path}${e.path}`),!Ge.REQUIRE_ACCESS_TOKEN)return Vr(e);if(r=r||Ge.ACCESS_TOKEN,!this._silenceAuthErrors){if(!r)throw new Error(`An API access token is required to use Mapbox GL. ${i}`);if(r[0]==="s")throw new Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${i}`)}return e.params=e.params.filter(a=>a.indexOf("access_token")===-1),e.params.push(`access_token=${r||""}`),Vr(e)}}function wt(t){return t.indexOf("mapbox:")===0}function Xt(t){return Ge.API_URL_REGEX.test(t)}function rr(t){return Ge.API_CDN_URL_REGEX.test(t)}function ur(t){return Ge.API_STYLE_REGEX.test(t)&&!Dr(t)}function Dr(t){return Ge.API_SPRITE_REGEX.test(t)}const pi=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function gr(t){const e=t.match(pi);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function Vr(t){const e=t.params.length?`?${t.params.join("&")}`:"";return`${t.protocol}://${t.authority}${t.path}${e}`}const Pr="mapbox.eventData";function Za(t){if(!t)return null;const e=t.split(".");if(!e||e.length!==3)return null;try{return JSON.parse(decodeURIComponent($.atob(e[1]).split("").map(r=>"%"+("00"+r.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch{return null}}class So{constructor(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(e){const r=Za(Ge.ACCESS_TOKEN);let i="";return i=r&&r.u?$.btoa(encodeURIComponent(r.u).replace(/%([0-9A-F]{2})/g,(o,a)=>String.fromCharCode(+("0x"+a)))):Ge.ACCESS_TOKEN||"",e?`${Pr}.${e}:${i}`:`${Pr}:${i}`}fetchEventData(){const e=Pt("localStorage"),r=this.getStorageKey(),i=this.getStorageKey("uuid");if(e)try{const o=$.localStorage.getItem(r);o&&(this.eventData=JSON.parse(o));const a=$.localStorage.getItem(i);a&&(this.anonId=a)}catch{F("Unable to read from LocalStorage")}}saveEventData(){const e=Pt("localStorage"),r=this.getStorageKey(),i=this.getStorageKey("uuid");if(e)try{$.localStorage.setItem(i,this.anonId),Object.keys(this.eventData).length>=1&&$.localStorage.setItem(r,JSON.stringify(this.eventData))}catch{F("Unable to write to LocalStorage")}}processRequests(e){}postEvent(e,r,i,o){if(!Ge.EVENTS_URL)return;const a=gr(Ge.EVENTS_URL);a.params.push(`access_token=${o||Ge.ACCESS_TOKEN||""}`);const n={event:this.type,created:new Date(e).toISOString()},s=r?we(n,r):n,l={url:Vr(a),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=function(c,u){return ce(we(c,{method:"POST"}),u)}(l,c=>{this.pendingRequest=null,i(c),this.saveEventData(),this.processRequests(o)})}queueRequest(e,r){this.queue.push(e),this.processRequests(r)}}const $a=new class extends So{constructor(t){super("appUserTurnstile"),this._customAccessToken=t}postTurnstileEvent(t,e){Ge.EVENTS_URL&&Ge.ACCESS_TOKEN&&Array.isArray(t)&&t.some(r=>wt(r)||Xt(r))&&this.queueRequest(Date.now(),e)}processRequests(t){if(this.pendingRequest||this.queue.length===0)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const e=Za(Ge.ACCESS_TOKEN),r=e?e.u:Ge.ACCESS_TOKEN;let i=r!==this.eventData.tokenU;Js(this.anonId)||(this.anonId=Xs(),i=!0);const o=this.queue.shift();if(this.eventData.lastSuccess){const a=new Date(this.eventData.lastSuccess),n=new Date(o),s=(o-this.eventData.lastSuccess)/864e5;i=i||s>=1||s<-1||a.getDate()!==n.getDate()}else i=!0;i?this.postEvent(o,{sdkIdentifier:"mapbox-gl-js",sdkVersion:Or,skuId:Eo,"enabled.telemetry":!1,userId:this.anonId},a=>{a||(this.eventData.lastSuccess=o,this.eventData.tokenU=r)},t):this.processRequests()}},xu=$a.postTurnstileEvent.bind($a),sf=new class extends So{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(t,e,r,i){this.skuToken=e,this.errorCb=i,Ge.EVENTS_URL&&(r||Ge.ACCESS_TOKEN?this.queueRequest({id:t,timestamp:Date.now()},r):this.errorCb(new Error(St)))}processRequests(t){if(this.pendingRequest||this.queue.length===0)return;const{id:e,timestamp:r}=this.queue.shift();e&&this.success[e]||(this.anonId||this.fetchEventData(),Js(this.anonId)||(this.anonId=Xs()),this.postEvent(r,{sdkIdentifier:"mapbox-gl-js",sdkVersion:Or,skuId:Eo,skuToken:this.skuToken,userId:this.anonId},i=>{i?this.errorCb(i):e&&(this.success[e]=!0)},t))}},pv=sf.postMapLoadEvent.bind(sf),lf=new class extends So{constructor(){super("gljs.performance")}postPerformanceEvent(t,e){Ge.EVENTS_URL&&(t||Ge.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:e},t)}processRequests(t){if(this.pendingRequest||this.queue.length===0)return;const{timestamp:e,performanceData:r}=this.queue.shift(),i=function(o){const a=$.performance.getEntriesByType("resource"),n=$.performance.getEntriesByType("mark"),s=function(d){const p={};if(d){for(const f in d)if(f!=="other")for(const m of d[f]){const g=`${f}ResolveRangeMin`,_=`${f}ResolveRangeMax`,y=`${f}RequestCount`,v=`${f}RequestCachedCount`;p[g]=Math.min(p[g]||1/0,m.startTime),p[_]=Math.max(p[_]||-1/0,m.responseEnd);const b=x=>{p[x]===void 0&&(p[x]=0),++p[x]};m.transferSize!==void 0&&m.transferSize===0&&b(v),b(y)}}return p}(function(d,p){const f={};if(d)for(const m of d){const g=p(m);f[g]===void 0&&(f[g]=[]),f[g].push(m)}return f}(a,gv)),l=$.devicePixelRatio,c=$.navigator.connection||$.navigator.mozConnection||$.navigator.webkitConnection,u={counters:[],metadata:[],attributes:[]},h=(d,p,f)=>{f!=null&&d.push({name:p,value:f.toString()})};for(const d in s)h(u.counters,d,s[d]);if(o.interactionRange[0]!==1/0&&o.interactionRange[1]!==-1/0&&(h(u.counters,"interactionRangeMin",o.interactionRange[0]),h(u.counters,"interactionRangeMax",o.interactionRange[1])),n)for(const d of Object.keys(Qs)){const p=Qs[d],f=n.find(m=>m.name===p);f&&h(u.counters,p,f.startTime)}return h(u.counters,"visibilityHidden",o.visibilityHidden),h(u.attributes,"style",function(d){if(d)for(const p of d){const f=p.name.split("?")[0];if(ur(f)){const m=f.split("/").slice(-2);if(m.length===2)return`mapbox://styles/${m[0]}/${m[1]}`}}}(a)),h(u.attributes,"terrainEnabled",o.terrainEnabled?"true":"false"),h(u.attributes,"fogEnabled",o.fogEnabled?"true":"false"),h(u.attributes,"projection",o.projection),h(u.attributes,"zoom",o.zoom),h(u.metadata,"devicePixelRatio",l),h(u.metadata,"connectionEffectiveType",c?c.effectiveType:void 0),h(u.metadata,"navigatorUserAgent",$.navigator.userAgent),h(u.metadata,"screenWidth",$.screen.width),h(u.metadata,"screenHeight",$.screen.height),h(u.metadata,"windowWidth",$.innerWidth),h(u.metadata,"windowHeight",$.innerHeight),h(u.metadata,"mapWidth",o.width/l),h(u.metadata,"mapHeight",o.height/l),h(u.metadata,"webglRenderer",o.renderer),h(u.metadata,"webglVendor",o.vendor),h(u.metadata,"sdkVersion",Or),h(u.metadata,"sdkIdentifier","mapbox-gl-js"),u}(r);for(const o of i.metadata);for(const o of i.counters);for(const o of i.attributes);this.postEvent(e,i,()=>{},t)}},fv=lf.postPerformanceEvent.bind(lf),cf=new class extends So{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(t,e,r,i){if(!Ge.API_URL||!Ge.SESSION_PATH)return;const o=gr(Ge.API_URL+Ge.SESSION_PATH);o.params.push(`sku=${e||""}`),o.params.push(`access_token=${i||Ge.ACCESS_TOKEN||""}`);const a={url:Vr(o),headers:{"Content-Type":"text/plain"}};this.pendingRequest=function(n,s){return ce(we(n,{method:"GET"}),s)}(a,n=>{this.pendingRequest=null,r(n),this.saveEventData(),this.processRequests(i)})}getSessionAPI(t,e,r,i){this.skuToken=e,this.errorCb=i,Ge.SESSION_PATH&&Ge.API_URL&&(r||Ge.ACCESS_TOKEN?this.queueRequest({id:t,timestamp:Date.now()},r):this.errorCb(new Error(St)))}processRequests(t){if(this.pendingRequest||this.queue.length===0)return;const{id:e,timestamp:r}=this.queue.shift();e&&this.success[e]||this.getSession(r,this.skuToken,i=>{i?this.errorCb(i):e&&(this.success[e]=!0)},t)}},mv=cf.getSessionAPI.bind(cf),Ks=new Set;function uf(t,e){e?Ks.add(t):Ks.delete(t)}const Qs={create:"create",load:"load",fullLoad:"fullLoad"},hf={mark(t){$.performance.mark(t)},measure(t,e,r){$.performance.measure(t,e,r)}};function gv(t){const e=t.name.split("?")[0];return rr(e)&&e.includes("mapbox-gl.js")?"javascript":rr(e)&&e.includes("mapbox-gl.css")?"css":function(r){return Ge.API_FONTS_REGEX.test(r)}(e)?"fontRange":Dr(e)?"sprite":ur(e)?"style":function(r){return Ge.API_TILEJSON_REGEX.test(r)}(e)?"tilejson":"other"}const _v=$.performance;function df(t){const e=t?t.url.toString():void 0;return _v.getEntriesByName(e)}var pf=vu;function vu(t){return!function(e){return typeof window>"u"||typeof document>"u"?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var i,o,a=new Blob([""],{type:"text/javascript"}),n=URL.createObjectURL(a);try{o=new Worker(n),i=!0}catch{i=!1}return o&&o.terminate(),URL.revokeObjectURL(n),i}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var i=document.createElement("canvas");i.width=i.height=1;var o=i.getContext("2d");if(!o)return!1;var a=o.getImageData(0,0,1,1);return a&&a.width===i.width}()?(bu[r=e&&e.failIfMajorPerformanceCaveat]===void 0&&(bu[r]=function(i){var o,a=function(n){var s=document.createElement("canvas"),l=Object.create(vu.webGLContextAttributes);return l.failIfMajorPerformanceCaveat=n,s.getContext("webgl",l)||s.getContext("experimental-webgl",l)}(i);if(!a)return!1;try{o=a.createShader(a.VERTEX_SHADER)}catch{return!1}return!(!o||a.isContextLost())&&(a.shaderSource(o,"void main() {}"),a.compileShader(o),a.getShaderParameter(o,a.COMPILE_STATUS)===!0)}(r)),bu[r]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var r}(t)}var bu={};let wu,el,ku,tl,la;function ff(){return wu==null&&(wu=$.OffscreenCanvas&&new $.OffscreenCanvas(1,1).getContext("2d")&&typeof $.createImageBitmap=="function"),wu}vu.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};const je={now:()=>tl!==void 0?tl:$.performance.now(),setNow(t){tl=t},restoreNow(){tl=void 0},frame(t){const e=$.requestAnimationFrame(t);return{cancel:()=>$.cancelAnimationFrame(e)}},getImageData(t,e=0){const{width:r,height:i}=t;la||(la=$.document.createElement("canvas"));const o=la.getContext("2d",{willReadFrequently:!0});if(!o)throw new Error("failed to create canvas 2d context");return(r>la.width||i>la.height)&&(la.width=r,la.height=i),o.clearRect(-e,-e,r+2*e,i+2*e),o.drawImage(t,0,0,r,i),o.getImageData(-e,-e,r+2*e,i+2*e)},resolveURL:t=>(el||(el=$.document.createElement("a")),el.href=t,el.href),get devicePixelRatio(){return $.devicePixelRatio},get prefersReducedMotion(){return!!$.matchMedia&&(ku==null&&(ku=$.matchMedia("(prefers-reduced-motion: reduce)")),ku.matches)},hasCanvasFingerprintNoise(){if(!ff())return!1;const t=new $.OffscreenCanvas(85,1),e=t.getContext("2d",{willReadFrequently:!0});let r=0;for(let o=0;o<t.width;++o)e.fillStyle=`rgba(${r++},${r++},${r++}, 255)`,e.fillRect(o,0,1,1);const i=e.getImageData(0,0,t.width,t.height);r=0;for(let o=0;o<i.data.length;++o)if(o%4!=3&&r++!==i.data[o])return!0;return!1}};function Dt(t,e,r){const i=$.document.createElement(t);return e!==void 0&&(i.className=e),r&&r.appendChild(i),i}function io(t,e,r){const i=$.document.createElementNS("http://www.w3.org/2000/svg",t);for(const o of Object.keys(e))i.setAttributeNS(null,o,e[o]);return r&&r.appendChild(i),i}const ca=$.document&&$.document.documentElement.style,On=ca&&ca.userSelect!==void 0?"userSelect":"WebkitUserSelect";let mf;function gf(){ca&&On&&(mf=ca[On],ca[On]="none")}function _f(){ca&&On&&(ca[On]=mf)}function Tu(t){t.preventDefault(),t.stopPropagation(),$.removeEventListener("click",Tu,!0)}function Eu(){$.addEventListener("click",Tu,!0),$.setTimeout(()=>{$.removeEventListener("click",Tu,!0)},0)}function Fn(t,e){const r=t.getBoundingClientRect();return xf(t,r,e)}function rl(t,e){const r=t.getBoundingClientRect(),i=[];for(let o=0;o<e.length;o++)i.push(xf(t,r,e[o]));return i}function yf(t){return $.InstallTrigger!==void 0&&t.button===2&&t.ctrlKey&&$.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:t.button}function xf(t,e,r){const i=t.offsetWidth===e.width?1:t.offsetWidth/e.width;return new N((r.clientX-e.left)*i,(r.clientY-e.top)*i)}function vf(t,e,r){r[t]&&r[t].indexOf(e)!==-1||(r[t]=r[t]||[],r[t].push(e))}function Mu(t,e,r){if(r&&r[t]){const i=r[t].indexOf(e);i!==-1&&r[t].splice(i,1)}}class se{constructor(e,r={}){we(this,r),this.type=e}}class Ve extends se{constructor(e,r={}){super("error",we({error:e},r))}}class ar{on(e,r){return this._listeners=this._listeners||{},vf(e,r,this._listeners),this}off(e,r){return Mu(e,r,this._listeners),Mu(e,r,this._oneTimeListeners),this}once(e,r){return r?(this._oneTimeListeners=this._oneTimeListeners||{},vf(e,r,this._oneTimeListeners),this):new Promise(i=>this.once(e,i))}fire(e,r){typeof e=="string"&&(e=new se(e,r||{}));const i=e.type;if(this.listens(i)){e.target=this;const o=this._listeners&&this._listeners[i]?this._listeners[i].slice():[];for(const s of o)s.call(this,e);const a=this._oneTimeListeners&&this._oneTimeListeners[i]?this._oneTimeListeners[i].slice():[];for(const s of a)Mu(i,s,this._oneTimeListeners),s.call(this,e);const n=this._eventedParent;n&&(we(e,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),n.fire(e))}else e instanceof Ve&&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 j=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"required":false,"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"camera":{"type":"camera"},"imports":{"type":"array","value":"import"},"schema":{"type":"schema"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"},"models":{"type":"models"}},"model":{"type":"string","required":true},"import":{"id":{"type":"string","required":true},"url":{"type":"string","required":true},"config":{"type":"config"},"data":{"type":"$root"}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","required":true},"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1}},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"values":{"type":"array","value":"*"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}},"light-3d":{"id":{"type":"string","required":true},"properties":{"type":"properties"},"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false,"expression":{},"property-type":"data-constant"},"shadow-intensity":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_ambient":{"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_raster_array","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":1}},"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":1,"tms":1},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":1}},"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},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":1}},"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},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":1,"mapbox":1},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_array":{"type":{"required":true,"type":"enum","values":{"raster-array":1}},"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},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":1}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":1}},"url":{"required":false,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_model":{"type":{"required":true,"type":"enum","values":{"model":1,"batched-model":1}},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"hillshade":{},"model":{},"background":{},"sky":{},"slot":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"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_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":1,"round":1,"square":1},"default":"butt","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":1,"round":1,"miter":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":1,"viewport-y":1,"source":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":1,"width":1,"height":1,"both":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":1,"left":1,"center":1,"right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":1,"uppercase":1,"lowercase":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"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":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective","property-type":"data-constant"}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"property-type":"data-constant","type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"property-type":"data-constant","type":"color","default":"#ffffff","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"property-type":"data-constant","type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"property-type":"data-constant","type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"property-type":"data-constant","type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"property-type":"data-constant","type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"property-type":"constant"},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-border-width":{"type":"number","private":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","private":true,"default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-image-cross-fade":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"transition":true},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-color-saturation":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-value"]},"property-type":"color-ramp"},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","default":[0,1],"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"raster-array-band":{"type":"string","required":false,"property-type":"data-constant"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d","property-type":"data-constant"},"model-cast-shadows":{"type":"boolean","default":true,"expression":{},"property-type":"data-constant"},"model-receive-shadows":{"type":"boolean","default":true,"expression":{},"property-type":"data-constant"},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant","transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');class be{constructor(e,r,i,o){this.message=(e?`${e}: `:"")+i,o&&(this.identifier=o),r!=null&&r.__line__&&(this.line=r.__line__)}}class ua extends be{}function oo(t,...e){for(const r of e)for(const i in r)t[i]=r[i];return t}function hr(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function ao(t){if(Array.isArray(t))return t.map(ao);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){const e={};for(const r in t)e[r]=ao(t[r]);return e}return hr(t)}class yv extends Error{constructor(e,r){super(r),this.message=r,this.key=e}}var Ui=yv;class Su{constructor(e,r=[]){this.parent=e,this.bindings={};for(const[i,o]of r)this.bindings[i]=o}concat(e){return new Su(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)}}var xv=Su;const Ha={kind:"null"},ye={kind:"number"},ft={kind:"string"},yt={kind:"boolean"},fi={kind:"color"},Wa={kind:"object"},gt={kind:"value"},il={kind:"collator"},Nn={kind:"formatted"},Vn={kind:"resolvedImage"};function Wr(t,e){return{kind:"array",itemType:t,N:e}}function nr(t){if(t.kind==="array"){const e=nr(t.itemType);return typeof t.N=="number"?`array<${e}, ${t.N}>`:t.itemType.kind==="value"?"array":`array<${e}>`}return t.kind}const vv=[Ha,ye,ft,yt,fi,Nn,Wa,Wr(gt),Vn];function Un(t,e){if(e.kind==="error")return null;if(t.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!Un(t.itemType,e.itemType))&&(typeof t.N!="number"||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(t.kind==="value"){for(const r of vv)if(!Un(r,e))return null}}return`Expected ${nr(t)} but found ${nr(e)} instead.`}function Au(t,e){return e.some(r=>r.kind===t.kind)}function jn(t,e){return e.some(r=>r==="null"?t===null:r==="array"?Array.isArray(t):r==="object"?t&&!Array.isArray(t)&&typeof t=="object":r===typeof t)}var Cu,bf={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function ol(t){return(t=Math.round(t))<0?0:t>255?255:t}function Iu(t){return ol(t[t.length-1]==="%"?parseFloat(t)/100*255:parseInt(t))}function al(t){return(e=t[t.length-1]==="%"?parseFloat(t)/100:parseFloat(t))<0?0:e>1?1:e;var e}function zu(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}try{Cu={}.parseCSSColor=function(t){var e,r=t.replace(/ /g,"").toLowerCase();if(r in bf)return bf[r].slice();if(r[0]==="#")return r.length===4?(e=parseInt(r.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:r.length===7&&(e=parseInt(r.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var i=r.indexOf("("),o=r.indexOf(")");if(i!==-1&&o+1===r.length){var a=r.substr(0,i),n=r.substr(i+1,o-(i+1)).split(","),s=1;switch(a){case"rgba":if(n.length!==4)return null;s=al(n.pop());case"rgb":return n.length!==3?null:[Iu(n[0]),Iu(n[1]),Iu(n[2]),s];case"hsla":if(n.length!==4)return null;s=al(n.pop());case"hsl":if(n.length!==3)return null;var l=(parseFloat(n[0])%360+360)%360/360,c=al(n[1]),u=al(n[2]),h=u<=.5?u*(c+1):u+c-u*c,d=2*u-h;return[ol(255*zu(d,h,l+1/3)),ol(255*zu(d,h,l)),ol(255*zu(d,h,l-1/3)),s];default:return null}}return null}}catch{}class Xr{constructor(e,r,i,o=1){this.r=e,this.g=r,this.b=i,this.a=o}static parse(e){if(!e)return;if(e instanceof Xr)return e;if(typeof e!="string")return;const r=Cu(e);return r?new Xr(r[0]/255*r[3],r[1]/255*r[3],r[2]/255*r[3],r[3]):void 0}toString(){const[e,r,i,o]=this.toArray();return`rgba(${Math.round(e)},${Math.round(r)},${Math.round(i)},${o})`}toArray(){const{r:e,g:r,b:i,a:o}=this;return o===0?[0,0,0,0]:[255*e/o,255*r/o,255*i/o,o]}toArray01(){const{r:e,g:r,b:i,a:o}=this;return o===0?[0,0,0,0]:[e/o,r/o,i/o,o]}toArray01Scaled(e){const{r,g:i,b:o,a}=this;return a===0?[0,0,0]:[r/a*e,i/a*e,o/a*e]}toArray01PremultipliedAlpha(){const{r:e,g:r,b:i,a:o}=this;return[e,r,i,o]}toArray01Linear(){const{r:e,g:r,b:i,a:o}=this;return o===0?[0,0,0,0]:[Math.pow(e/o,2.2),Math.pow(r/o,2.2),Math.pow(i/o,2.2),o]}}Xr.black=new Xr(0,0,0,1),Xr.white=new Xr(1,1,1,1),Xr.transparent=new Xr(0,0,0,0),Xr.red=new Xr(1,0,0,1),Xr.blue=new Xr(0,0,1,1);var Qe=Xr;class Du{constructor(e,r,i){this.sensitivity=e?r?"variant":"case":r?"accent":"base",this.locale=i,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 Pu{constructor(e,r,i,o,a){this.text=e.normalize?e.normalize():e,this.image=r,this.scale=i,this.fontStack=o,this.textColor=a}}class Yr{constructor(e){this.sections=e}static fromString(e){return new Yr([new Pu(e,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||e.image&&e.image.namePrimary.length!==0)}static factory(e){return e instanceof Yr?e:Yr.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const r of this.sections){if(r.image){e.push(["image",r.image.namePrimary]);continue}e.push(r.text);const i={};r.fontStack&&(i["text-font"]=["literal",r.fontStack.split(",")]),r.scale&&(i["font-scale"]=r.scale),r.textColor&&(i["text-color"]=["rgba"].concat(r.textColor.toArray())),e.push(i)}return e}}class mi{constructor(e){this.namePrimary=e.namePrimary,e.nameSecondary&&(this.nameSecondary=e.nameSecondary),this.available=e.available}toString(){return this.nameSecondary?`[${this.namePrimary},${this.nameSecondary}]`:this.namePrimary}static fromString(e,r){return e?new mi({namePrimary:e,nameSecondary:r,available:!1}):null}serialize(){return this.nameSecondary?["image",this.namePrimary,this.nameSecondary]:["image",this.namePrimary]}}function wf(t,e,r,i){return typeof t=="number"&&t>=0&&t<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof r=="number"&&r>=0&&r<=255?i===void 0||typeof i=="number"&&i>=0&&i<=1?null:`Invalid rgba value [${[t,e,r,i].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof i=="number"?[t,e,r,i]:[t,e,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Xa(t){if(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||t instanceof Qe||t instanceof Du||t instanceof Yr||t instanceof mi)return!0;if(Array.isArray(t)){for(const e of t)if(!Xa(e))return!1;return!0}if(typeof t=="object"){for(const e in t)if(!Xa(t[e]))return!1;return!0}return!1}function _r(t){if(t===null)return Ha;if(typeof t=="string")return ft;if(typeof t=="boolean")return yt;if(typeof t=="number")return ye;if(t instanceof Qe)return fi;if(t instanceof Du)return il;if(t instanceof Yr)return Nn;if(t instanceof mi)return Vn;if(Array.isArray(t)){const e=t.length;let r;for(const i of t){const o=_r(i);if(r){if(r===o)continue;r=gt;break}r=o}return Wr(r||gt,e)}return Wa}function Gn(t){const e=typeof t;return t===null?"":e==="string"||e==="number"||e==="boolean"?String(t):t instanceof Qe||t instanceof Yr||t instanceof mi?t.toString():JSON.stringify(t)}class Ru{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(!Xa(e[1]))return r.error("invalid value");const i=e[1];let o=_r(i);const a=r.expectedType;return o.kind!=="array"||o.N!==0||!a||a.kind!=="array"||typeof a.N=="number"&&a.N!==0||(o=a),new Ru(o,i)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof Qe?["rgba"].concat(this.value.toArray()):this.value instanceof Yr?this.value.serialize():this.value}}var qn=Ru,Tr=class{constructor(t){this.name="ExpressionEvaluationError",this.message=t}toJSON(){return this.message}};const Lu={string:ft,number:ye,boolean:yt,object:Wa};class Bu{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 i,o=1;const a=e[0];if(a==="array"){let s,l;if(e.length>2){const c=e[1];if(typeof c!="string"||!(c in Lu)||c==="object")return r.error('The item type argument of "array" must be one of string, number, boolean',1);s=Lu[c],o++}else s=gt;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);l=e[2],o++}i=Wr(s,l)}else i=Lu[a];const n=[];for(;o<e.length;o++){const s=r.parse(e[o],o,gt);if(!s)return null;n.push(s)}return new Bu(i,n)}evaluate(e){for(let r=0;r<this.args.length;r++){const i=this.args[r].evaluate(e);if(!Un(this.type,_r(i)))return i;if(r===this.args.length-1)throw new Tr(`Expected value to be of type ${nr(this.type)}, but found ${nr(_r(i))} instead.`)}return null}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=this.type,r=[e.kind];if(e.kind==="array"){const i=e.itemType;if(i.kind==="string"||i.kind==="number"||i.kind==="boolean"){r.push(i.kind);const o=e.N;(typeof o=="number"||this.args.length>1)&&r.push(o)}}return r.concat(this.args.map(i=>i.serialize()))}}var no=Bu;class Zn{constructor(e){this.type=Nn,this.sections=e}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");const i=e[1];if(!Array.isArray(i)&&typeof i=="object")return r.error("First argument must be an image or text section.");const o=[];let a=!1;for(let n=1;n<=e.length-1;++n){const s=e[n];if(a&&typeof s=="object"&&!Array.isArray(s)){a=!1;let l=null;if(s["font-scale"]&&(l=r.parse(s["font-scale"],1,ye),!l))return null;let c=null;if(s["text-font"]&&(c=r.parse(s["text-font"],1,Wr(ft)),!c))return null;let u=null;if(s["text-color"]&&(u=r.parse(s["text-color"],1,fi),!u))return null;const h=o[o.length-1];h.scale=l,h.font=c,h.textColor=u}else{const l=r.parse(e[n],1,gt);if(!l)return null;const c=l.type.kind;if(c!=="string"&&c!=="value"&&c!=="null"&&c!=="resolvedImage")return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");a=!0,o.push({content:l,scale:null,font:null,textColor:null})}}return new Zn(o)}evaluate(e){return new Yr(this.sections.map(r=>{const i=r.content.evaluate(e);return _r(i)===Vn?new Pu("",i,null,null,null):new Pu(Gn(i),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}serialize(){const e=["format"];for(const r of this.sections){e.push(r.content.serialize());const i={};r.scale&&(i["font-scale"]=r.scale.serialize()),r.font&&(i["text-font"]=r.font.serialize()),r.textColor&&(i["text-color"]=r.textColor.serialize()),e.push(i)}return e}}class $n{constructor(e,r){this.type=Vn,this.inputPrimary=e,this.inputSecondary=r}static parse(e,r){if(e.length<2)return r.error("Expected two or more arguments.");const i=r.parse(e[1],1,ft);if(!i)return r.error("No image name provided.");if(e.length===2)return new $n(i);const o=r.parse(e[2],1,ft);return o?new $n(i,o):r.error("Secondary image variant is not a string.")}evaluate(e){const r=mi.fromString(this.inputPrimary.evaluate(e),this.inputSecondary?this.inputSecondary.evaluate(e):void 0);return r&&e.availableImages&&(r.available=e.availableImages.indexOf(r.namePrimary)>-1,r.nameSecondary&&r.available&&e.availableImages&&(r.available=e.availableImages.indexOf(r.nameSecondary)>-1)),r}eachChild(e){e(this.inputPrimary),this.inputSecondary&&e(this.inputSecondary)}outputDefined(){return!1}serialize(){return this.inputSecondary?["image",this.inputPrimary.serialize(),this.inputSecondary.serialize()]:["image",this.inputPrimary.serialize()]}}function kt(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":t===null?"null":typeof t}const bv={"to-boolean":yt,"to-color":fi,"to-number":ye,"to-string":ft};class Ou{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 i=e[0],o=[];let a=Ha;if(i==="to-array"){if(!Array.isArray(e[1]))return null;const n=e[1].length;if(r.expectedType){if(r.expectedType.kind!=="array")return r.error(`Expected ${r.expectedType.kind} but found array.`);a=Wr(r.expectedType.itemType,n)}else{if(!(n>0&&Xa(e[1][0])))return null;a=Wr(_r(e[1][0]),n)}for(let s=0;s<n;s++){const l=e[1][s];let c;if(kt(l)==="array")c=r.parse(l,void 0,a.itemType);else{const u=kt(l);if(u!==a.itemType.kind)return r.error(`Expected ${a.itemType.kind} but found ${u}.`);c=r.registry.literal.parse(["literal",l===void 0?null:l],r)}if(!c)return null;o.push(c)}}else{if((i==="to-boolean"||i==="to-string")&&e.length!==2)return r.error("Expected one argument.");a=bv[i];for(let n=1;n<e.length;n++){const s=r.parse(e[n],n,gt);if(!s)return null;o.push(s)}}return new Ou(a,o)}evaluate(e){if(this.type.kind==="boolean")return!!this.args[0].evaluate(e);if(this.type.kind==="color"){let r,i;for(const o of this.args){if(r=o.evaluate(e),i=null,r instanceof Qe)return r;if(typeof r=="string"){const a=e.parseColor(r);if(a)return a}else if(Array.isArray(r)&&(i=r.length<3||r.length>4?`Invalid rbga value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:wf(r[0],r[1],r[2],r[3]),!i))return new Qe(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new Tr(i||`Could not parse color from value '${typeof r=="string"?r:String(JSON.stringify(r))}'`)}if(this.type.kind==="number"){let r=null;for(const i of this.args){if(r=i.evaluate(e),r===null)return 0;const o=Number(r);if(!isNaN(o))return o}throw new Tr(`Could not convert ${JSON.stringify(r)} to number.`)}return this.type.kind==="formatted"?Yr.fromString(Gn(this.args[0].evaluate(e))):this.type.kind==="resolvedImage"?mi.fromString(Gn(this.args[0].evaluate(e))):this.type.kind==="array"?this.args.map(r=>r.evaluate(e)):Gn(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if(this.type.kind==="formatted")return new Zn([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new $n(this.args[0]).serialize();const e=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(r=>{e.push(r.serialize())}),e}}var ha=Ou;const wv=["Unknown","Point","LineString","Polygon"];var kf=class{constructor(t){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.options=t}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?wv[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||{}}measureLight(t){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const t=this.featureDistanceData.center,e=this.featureDistanceData.scale,{x:r,y:i}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(r*e-t[0])+this.featureDistanceData.bearing[1]*(i*e-t[1])}return 0}parseColor(t){let e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Qe.parse(t)),e}getConfig(t){return this.options?this.options.get(t):null}};class da{constructor(e,r,i,o,a){this.name=e,this.type=r,this._evaluate=i,this.args=o,this._overloadIndex=a}evaluate(e){if(!this._evaluate){const r=da.definitions[this.name];this._evaluate=Array.isArray(r)?r[2]:r.overloads[this._overloadIndex][1]}return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,r){const i=e[0],o=da.definitions[i];if(!o)return r.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);const a=Array.isArray(o)?o[0]:o.type,n=Array.isArray(o)?[[o[1],o[2]]]:o.overloads,s=[];let l=null,c=-1;for(const[u,h]of n){if(Array.isArray(u)&&u.length!==e.length-1)continue;s.push(u),c++,l=new Vf(r.registry,r.path,null,r.scope,void 0,r.options);const d=[];let p=!1;for(let f=1;f<e.length;f++){const m=e[f],g=Array.isArray(u)?u[f-1]:u.type,_=l.parse(m,1+d.length,g);if(!_){p=!0;break}d.push(_)}if(!p)if(Array.isArray(u)&&u.length!==d.length)l.error(`Expected ${u.length} arguments, but found ${d.length} instead.`);else{for(let f=0;f<d.length;f++){const m=Array.isArray(u)?u[f]:u.type,g=d[f];l.concat(f+1).checkSubtype(m,g.type)}if(l.errors.length===0)return new da(i,a,h,d,c)}}if(s.length===1)r.errors.push(...l.errors);else{const u=(s.length?s:n.map(([d])=>d)).map(kv).join(" | "),h=[];for(let d=1;d<e.length;d++){const p=r.parse(e[d],1+h.length);if(!p)return null;h.push(nr(p.type))}r.error(`Expected arguments of type ${u}, but found (${h.join(", ")}) instead.`)}return null}static register(e,r){da.definitions=r;for(const i in r)e[i]=da}}function kv(t){return Array.isArray(t)?`(${t.map(nr).join(", ")})`:`(${nr(t.type)}...)`}var ji=da;class nl{constructor(e,r,i){this.type=il,this.locale=i,this.caseSensitive=e,this.diacriticSensitive=r}static parse(e,r){if(e.length!==2)return r.error("Expected one argument.");const i=e[1];if(typeof i!="object"||Array.isArray(i))return r.error("Collator options argument must be an object.");const o=r.parse(i["case-sensitive"]!==void 0&&i["case-sensitive"],1,yt);if(!o)return null;const a=r.parse(i["diacritic-sensitive"]!==void 0&&i["diacritic-sensitive"],1,yt);if(!a)return null;let n=null;return i.locale&&(n=r.parse(i.locale,1,ft),!n)?null:new nl(o,a,n)}evaluate(e){return new Du(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}serialize(){const e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}var Tf={exports:{}};Tf.exports=function(){function t(i,o,a,n,s){for(;n>a;){if(n-a>600){var l=n-a+1,c=o-a+1,u=Math.log(l),h=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*h*(l-h)/l)*(c-l/2<0?-1:1);t(i,o,Math.max(a,Math.floor(o-c*h/l+d)),Math.min(n,Math.floor(o+(l-c)*h/l+d)),s)}var p=i[o],f=a,m=n;for(e(i,a,o),s(i[n],p)>0&&e(i,a,n);f<m;){for(e(i,f,m),f++,m--;s(i[f],p)<0;)f++;for(;s(i[m],p)>0;)m--}s(i[a],p)===0?e(i,a,m):e(i,++m,n),m<=o&&(a=m+1),o<=m&&(n=m-1)}}function e(i,o,a){var n=i[o];i[o]=i[a],i[a]=n}function r(i,o){return i<o?-1:i>o?1:0}return function(i,o,a,n,s){t(i,o,a||0,n||i.length-1,s||r)}}();var Tv=hi(Tf.exports);function Ev(t){let e=0;for(let r,i,o=0,a=t.length,n=a-1;o<a;n=o++)r=t[o],i=t[n],e+=(i.x-r.x)*(r.y+i.y);return e}function Hn(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function Wn(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function Mv(t,e,r){const i=t[0]-e[0],o=t[1]-e[1],a=t[0]-r[0],n=t[1]-r[1];return i*n-a*o==0&&i*a<=0&&o*n<=0}function Ya(t,e,r=!1){let i=!1;for(let s=0,l=e.length;s<l;s++){const c=e[s];for(let u=0,h=c.length,d=h-1;u<h;d=u++){const p=c[d],f=c[u];if(Mv(t,p,f))return r;(a=p)[1]>(o=t)[1]!=(n=f)[1]>o[1]&&o[0]<(n[0]-a[0])*(o[1]-a[1])/(n[1]-a[1])+a[0]&&(i=!i)}}var o,a,n;return i}function Ef(t,e,r,i){const o=i[0]-r[0],a=i[1]-r[1],n=(t[0]-r[0])*a-o*(t[1]-r[1]),s=(e[0]-r[0])*a-o*(e[1]-r[1]);return n>0&&s<0||n<0&&s>0}function sl(t,e,r,i){return(o=[i[0]-r[0],i[1]-r[1]])[0]*(a=[e[0]-t[0],e[1]-t[1]])[1]-o[1]*a[0]!=0&&!(!Ef(t,e,r,i)||!Ef(r,i,t,e));var o,a}const Ao=8192;function Sv(t,e){const r=(180+t[0])/360,i=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,o=Math.pow(2,e.z);return[Math.round(r*o*Ao),Math.round(i*o*Ao)]}function Av(t,e){for(let r=0;r<e.length;r++)if(Ya(t,e[r]))return!0;return!1}function Cv(t,e,r){for(const i of r)for(let o=0,a=i.length,n=a-1;o<a;n=o++)if(sl(t,e,i[n],i[o]))return!0;return!1}function Mf(t,e){for(let r=0;r<t.length;++r)if(!Ya(t[r],e))return!1;for(let r=0;r<t.length-1;++r)if(Cv(t[r],t[r+1],e))return!1;return!0}function Iv(t,e){for(let r=0;r<e.length;r++)if(Mf(t,e[r]))return!0;return!1}function Fu(t,e,r){const i=[];for(let o=0;o<t.length;o++){const a=[];for(let n=0;n<t[o].length;n++){const s=Sv(t[o][n],r);Hn(e,s),a.push(s)}i.push(a)}return i}function Sf(t,e,r){const i=[];for(let o=0;o<t.length;o++){const a=Fu(t[o],e,r);i.push(a)}return i}function Af(t,e,r,i){if(t[0]<r[0]||t[0]>r[2]){const o=.5*i;let a=t[0]-r[0]>o?-i:r[0]-t[0]>o?i:0;a===0&&(a=t[0]-r[2]>o?-i:r[2]-t[0]>o?i:0),t[0]+=a}Hn(e,t)}function Cf(t,e,r,i){const o=Math.pow(2,i.z)*Ao,a=[i.x*Ao,i.y*Ao],n=[];if(!t)return n;for(const s of t)for(const l of s){const c=[l.x+a[0],l.y+a[1]];Af(c,e,r,o),n.push(c)}return n}function If(t,e,r,i){const o=Math.pow(2,i.z)*Ao,a=[i.x*Ao,i.y*Ao],n=[];if(!t)return n;for(const l of t){const c=[];for(const u of l){const h=[u.x+a[0],u.y+a[1]];Hn(e,h),c.push(h)}n.push(c)}if(e[2]-e[0]<=o/2){(s=e)[0]=s[1]=1/0,s[2]=s[3]=-1/0;for(const l of n)for(const c of l)Af(c,e,r,o)}var s;return n}class Xn{constructor(e,r){this.type=yt,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(Xa(e[1])){const i=e[1];if(i.type==="FeatureCollection")for(let o=0;o<i.features.length;++o){const a=i.features[o].geometry.type;if(a==="Polygon"||a==="MultiPolygon")return new Xn(i,i.features[o].geometry)}else if(i.type==="Feature"){const o=i.geometry.type;if(o==="Polygon"||o==="MultiPolygon")return new Xn(i,i.geometry)}else if(i.type==="Polygon"||i.type==="MultiPolygon")return new Xn(i,i)}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,i){const o=[1/0,1/0,-1/0,-1/0],a=[1/0,1/0,-1/0,-1/0],n=r.canonicalID();if(!n)return!1;if(i.type==="Polygon"){const s=Fu(i.coordinates,a,n),l=Cf(r.geometry(),o,a,n);if(!Wn(o,a))return!1;for(const c of l)if(!Ya(c,s))return!1}if(i.type==="MultiPolygon"){const s=Sf(i.coordinates,a,n),l=Cf(r.geometry(),o,a,n);if(!Wn(o,a))return!1;for(const c of l)if(!Av(c,s))return!1}return!0}(e,this.geometries);if(e.geometryType()==="LineString")return function(r,i){const o=[1/0,1/0,-1/0,-1/0],a=[1/0,1/0,-1/0,-1/0],n=r.canonicalID();if(!n)return!1;if(i.type==="Polygon"){const s=Fu(i.coordinates,a,n),l=If(r.geometry(),o,a,n);if(!Wn(o,a))return!1;for(const c of l)if(!Mf(c,s))return!1}if(i.type==="MultiPolygon"){const s=Sf(i.coordinates,a,n),l=If(r.geometry(),o,a,n);if(!Wn(o,a))return!1;for(const c of l)if(!Iv(c,s))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}var Nu=Xn,zf={exports:{}};zf.exports=function(){var t={kilometers:1,miles:.621371192237334,nauticalmiles:.5399568034557235,meters:1e3,metres:1e3,yards:1093.6132983377079,feet:3280.839895013123,inches:39370.078740157485},e=1/298.257223563,r=e*(2-e),i=Math.PI/180,o=function(c,u){if(c===void 0)throw new Error("No latitude given.");if(u&&!t[u])throw new Error("Unknown unit "+u+". Use one of: "+Object.keys(t).join(", "));var h=6378.137*i*(u?t[u]:1),d=Math.cos(c*i),p=1/(1-r*(1-d*d)),f=Math.sqrt(p);this.kx=h*f*d,this.ky=h*f*p*(1-r)},a={units:{configurable:!0}};function n(c,u){return c[0]===u[0]&&c[1]===u[1]}function s(c,u,h){var d=l(u[0]-c[0]);return[c[0]+d*h,c[1]+(u[1]-c[1])*h]}function l(c){for(;c<-180;)c+=360;for(;c>180;)c-=360;return c}return o.fromTile=function(c,u,h){var d=Math.PI*(1-2*(c+.5)/Math.pow(2,u)),p=Math.atan(.5*(Math.exp(d)-Math.exp(-d)))/i;return new o(p,h)},a.units.get=function(){return t},o.prototype.distance=function(c,u){var h=l(c[0]-u[0])*this.kx,d=(c[1]-u[1])*this.ky;return Math.sqrt(h*h+d*d)},o.prototype.bearing=function(c,u){var h=l(u[0]-c[0])*this.kx;return Math.atan2(h,(u[1]-c[1])*this.ky)/i},o.prototype.destination=function(c,u,h){var d=h*i;return this.offset(c,Math.sin(d)*u,Math.cos(d)*u)},o.prototype.offset=function(c,u,h){return[c[0]+u/this.kx,c[1]+h/this.ky]},o.prototype.lineDistance=function(c){for(var u=0,h=0;h<c.length-1;h++)u+=this.distance(c[h],c[h+1]);return u},o.prototype.area=function(c){for(var u=0,h=0;h<c.length;h++)for(var d=c[h],p=0,f=d.length,m=f-1;p<f;m=p++)u+=l(d[p][0]-d[m][0])*(d[p][1]+d[m][1])*(h?-1:1);return Math.abs(u)/2*this.kx*this.ky},o.prototype.along=function(c,u){var h=0;if(u<=0)return c[0];for(var d=0;d<c.length-1;d++){var p=c[d],f=c[d+1],m=this.distance(p,f);if((h+=m)>u)return s(p,f,(u-(h-m))/m)}return c[c.length-1]},o.prototype.pointToSegmentDistance=function(c,u,h){var d=u[0],p=u[1],f=l(h[0]-d)*this.kx,m=(h[1]-p)*this.ky,g=0;return f===0&&m===0||((g=(l(c[0]-d)*this.kx*f+(c[1]-p)*this.ky*m)/(f*f+m*m))>1?(d=h[0],p=h[1]):g>0&&(d+=f/this.kx*g,p+=m/this.ky*g)),f=l(c[0]-d)*this.kx,m=(c[1]-p)*this.ky,Math.sqrt(f*f+m*m)},o.prototype.pointOnLine=function(c,u){for(var h,d,p,f,m=1/0,g=0;g<c.length-1;g++){var _=c[g][0],y=c[g][1],v=l(c[g+1][0]-_)*this.kx,b=(c[g+1][1]-y)*this.ky,x=0;v===0&&b===0||((x=(l(u[0]-_)*this.kx*v+(u[1]-y)*this.ky*b)/(v*v+b*b))>1?(_=c[g+1][0],y=c[g+1][1]):x>0&&(_+=v/this.kx*x,y+=b/this.ky*x));var w=(v=l(u[0]-_)*this.kx)*v+(b=(u[1]-y)*this.ky)*b;w<m&&(m=w,h=_,d=y,p=g,f=x)}return{point:[h,d],index:p,t:Math.max(0,Math.min(1,f))}},o.prototype.lineSlice=function(c,u,h){var d=this.pointOnLine(h,c),p=this.pointOnLine(h,u);if(d.index>p.index||d.index===p.index&&d.t>p.t){var f=d;d=p,p=f}var m=[d.point],g=d.index+1,_=p.index;!n(h[g],m[0])&&g<=_&&m.push(h[g]);for(var y=g+1;y<=_;y++)m.push(h[y]);return n(h[_],p.point)||m.push(p.point),m},o.prototype.lineSliceAlong=function(c,u,h){for(var d=0,p=[],f=0;f<h.length-1;f++){var m=h[f],g=h[f+1],_=this.distance(m,g);if((d+=_)>c&&p.length===0&&p.push(s(m,g,(c-(d-_))/_)),d>=u)return p.push(s(m,g,(u-(d-_))/_)),p;d>c&&p.push(g)}return p},o.prototype.bufferPoint=function(c,u){var h=u/this.ky,d=u/this.kx;return[c[0]-d,c[1]-h,c[0]+d,c[1]+h]},o.prototype.bufferBBox=function(c,u){var h=u/this.ky,d=u/this.kx;return[c[0]-d,c[1]-h,c[2]+d,c[3]+h]},o.prototype.insideBBox=function(c,u){return l(c[0]-u[0])>=0&&l(c[0]-u[2])<=0&&c[1]>=u[1]&&c[1]<=u[3]},Object.defineProperties(o,a),o}();var Vu=hi(zf.exports),Df={exports:{}};Df.exports=function(){var t=function(r,i){if(r===void 0&&(r=[]),i===void 0&&(i=e),this.data=r,this.length=this.data.length,this.compare=i,this.length>0)for(var o=(this.length>>1)-1;o>=0;o--)this._down(o)};function e(r,i){return r<i?-1:r>i?1:0}return t.prototype.push=function(r){this.data.push(r),this.length++,this._up(this.length-1)},t.prototype.pop=function(){if(this.length!==0){var r=this.data[0],i=this.data.pop();return this.length--,this.length>0&&(this.data[0]=i,this._down(0)),r}},t.prototype.peek=function(){return this.data[0]},t.prototype._up=function(r){for(var i=this.data,o=this.compare,a=i[r];r>0;){var n=r-1>>1,s=i[n];if(o(a,s)>=0)break;i[r]=s,r=n}i[r]=a},t.prototype._down=function(r){for(var i=this.data,o=this.compare,a=this.length>>1,n=i[r];r<a;){var s=1+(r<<1),l=i[s],c=s+1;if(c<this.length&&o(i[c],l)<0&&(s=c,l=i[c]),o(l,n)>=0)break;i[r]=l,r=s}i[r]=n},t}();var Uu=hi(Df.exports),W=8192;function Pf(t,e){return e.dist-t.dist}const ju=100,Gu=50;function Rf(t){const e=[1/0,1/0,-1/0,-1/0];if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function ll(t){return t[1]-t[0]+1}function so(t,e){const r=t[1]>=t[0]&&t[1]<e;return r||console.warn("Distance Expression: Index is out of range"),r}function qu(t,e){if(t[0]>t[1])return[null,null];const r=ll(t);if(e){if(r===2)return[t,null];const i=Math.floor(r/2);return[[t[0],t[0]+i],[t[0]+i,t[1]]]}{if(r===1)return[t,null];const i=Math.floor(r/2)-1;return[[t[0],t[0]+i],[t[0]+i+1,t[1]]]}}function pa(t,e){const r=[1/0,1/0,-1/0,-1/0];if(!so(e,t.length))return r;for(let i=e[0];i<=e[1];++i)Hn(r,t[i]);return r}function cl(t){const e=[1/0,1/0,-1/0,-1/0];for(let r=0;r<t.length;++r)for(let i=0;i<t[r].length;++i)Hn(e,t[r][i]);return e}function Ja(t,e,r){if(Rf(t)||Rf(e))return NaN;let i=0,o=0;return t[2]<e[0]&&(i=e[0]-t[2]),t[0]>e[2]&&(i=t[0]-e[2]),t[1]>e[3]&&(o=t[1]-e[3]),t[3]<e[1]&&(o=e[1]-t[3]),r.distance([0,0],[i,o])}function Zu(t,e){const r=Math.pow(2,e.z);return[(o=(t.x/W+e.x)/r,360*o-180),(i=(t.y/W+e.y)/r,360/Math.PI*Math.atan(Math.exp((180-360*i)*Math.PI/180))-90)];var i,o}function zv(t,e){const r=[];for(let i=0;i<t.length;++i)r.push(Zu(t[i],e));return r}function Lf(t,e,r){const i=r.pointOnLine(e,t).point;return r.distance(t,i)}function Bf(t,e,r,i,o){const a=r.slice(i[0],i[1]+1);let n=1/0;for(let s=e[0];s<=e[1];++s)if((n=Math.min(n,Lf(t[s],a,o)))===0)return 0;return n}function $u(t,e,r,i,o){const a=Math.min(o.pointToSegmentDistance(t,r,i),o.pointToSegmentDistance(e,r,i)),n=Math.min(o.pointToSegmentDistance(r,t,e),o.pointToSegmentDistance(i,t,e));return Math.min(a,n)}function Dv(t,e,r,i,o){if(!so(e,t.length)||!so(i,r.length))return NaN;let a=1/0;for(let n=e[0];n<e[1];++n)for(let s=i[0];s<i[1];++s){if(sl(t[n],t[n+1],r[s],r[s+1]))return 0;a=Math.min(a,$u(t[n],t[n+1],r[s],r[s+1],o))}return a}function Pv(t,e,r,i,o){if(!so(e,t.length)||!so(i,r.length))return NaN;let a=1/0;for(let n=e[0];n<=e[1];++n)for(let s=i[0];s<=i[1];++s)if((a=Math.min(a,o.distance(t[n],r[s])))===0)return a;return a}function Rv(t,e,r){if(Ya(t,e,!0))return 0;let i=1/0;for(const o of e){const a=o.length;if(a<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(o[0]!==o[a-1]&&(i=Math.min(i,r.pointToSegmentDistance(t,o[a-1],o[0])))===0||(i=Math.min(i,Lf(t,o,r)))===0)return i}return i}function Lv(t,e,r,i){if(!so(e,t.length))return NaN;for(let a=e[0];a<=e[1];++a)if(Ya(t[a],r,!0))return 0;let o=1/0;for(let a=e[0];a<e[1];++a)for(const n of r)for(let s=0,l=n.length,c=l-1;s<l;c=s++){if(sl(t[a],t[a+1],n[c],n[s]))return 0;o=Math.min(o,$u(t[a],t[a+1],n[c],n[s],i))}return o}function Of(t,e){for(const r of t)for(let i=0;i<=r.length-1;++i)if(Ya(r[i],e,!0))return!0;return!1}function Bv(t,e,r,i=1/0){const o=cl(t),a=cl(e);if(i!==1/0&&Ja(o,a,r)>=i)return i;if(Wn(o,a)){if(Of(t,e))return 0}else if(Of(e,t))return 0;let n=i;for(const s of t)for(let l=0,c=s.length,u=c-1;l<c;u=l++)for(const h of e)for(let d=0,p=h.length,f=p-1;d<p;f=d++){if(sl(s[u],s[l],h[f],h[d]))return 0;n=Math.min(n,$u(s[u],s[l],h[f],h[d],r))}return n}function ul(t,e,r,i,o,a,n){if(a===null||n===null)return;const s=Ja(pa(i,a),pa(o,n),r);s<e&&t.push({dist:s,range1:a,range2:n})}function Ov(t,e,r,i,o=1/0){let a=Math.min(i.distance(t[0],r[0][0]),o);if(a===0)return a;const n=new Uu([{dist:0,range1:[0,t.length-1],range2:[0,0]}],Pf),s=e?Gu:ju,l=cl(r);for(;n.length;){const c=n.pop();if(c.dist>=a)continue;const u=c.range1;if(ll(u)<=s){if(!so(u,t.length))return NaN;if(e){const h=Lv(t,u,r,i);if((a=Math.min(a,h))===0)return a}else for(let h=u[0];h<=u[1];++h){const d=Rv(t[h],r,i);if((a=Math.min(a,d))===0)return a}}else{const h=qu(u,e);if(h[0]!==null){const d=Ja(pa(t,h[0]),l,i);d<a&&n.push({dist:d,range1:h[0],range2:[0,0]})}if(h[1]!==null){const d=Ja(pa(t,h[1]),l,i);d<a&&n.push({dist:d,range1:h[1],range2:[0,0]})}}}return a}function Ff(t,e,r,i,o,a=1/0){let n=Math.min(a,o.distance(t[0],r[0]));if(n===0)return n;const s=new Uu([{dist:0,range1:[0,t.length-1],range2:[0,r.length-1]}],Pf),l=e?Gu:ju,c=i?Gu:ju;for(;s.length;){const u=s.pop();if(u.dist>=n)continue;const h=u.range1,d=u.range2;if(ll(h)<=l&&ll(d)<=c){if(!so(h,t.length)||!so(d,r.length))return NaN;if(e&&i?n=Math.min(n,Dv(t,h,r,d,o)):e||i?e&&!i?n=Math.min(n,Bf(r,d,t,h,o)):!e&&i&&(n=Math.min(n,Bf(t,h,r,d,o))):n=Math.min(n,Pv(t,h,r,d,o)),n===0)return n}else{const p=qu(h,e),f=qu(d,i);ul(s,n,o,t,r,p[0],f[0]),ul(s,n,o,t,r,p[0],f[1]),ul(s,n,o,t,r,p[1],f[0]),ul(s,n,o,t,r,p[1],f[1])}}return n}function Hu(t,e,r,i,o=1/0){let a=o;const n=pa(t,[0,t.length-1]);for(const s of r)if(!(a!==1/0&&Ja(n,pa(s,[0,s.length-1]),i)>=a)&&(a=Math.min(a,Ff(t,e,s,!0,i,a)),a===0))return a;return a}function hl(t,e,r,i,o=1/0){let a=o;const n=pa(t,[0,t.length-1]);for(const s of r){if(a!==1/0&&Ja(n,cl(s),i)>=a)continue;const l=Ov(t,e,s,i,a);if(isNaN(l))return l;if((a=Math.min(a,l))===0)return a}return a}function Wu(t){return t==="Point"||t==="MultiPoint"||t==="LineString"||t==="MultiLineString"||t==="Polygon"||t==="MultiPolygon"}class Yn{constructor(e,r){this.type=ye,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`'distance' expression requires either one argument, but found ' ${e.length-1} instead.`);if(Xa(e[1])){const i=e[1];if(i.type==="FeatureCollection"){for(let o=0;o<i.features.length;++o)if(Wu(i.features[o].geometry.type))return new Yn(i,i.features[o].geometry)}else if(i.type==="Feature"){if(Wu(i.geometry.type))return new Yn(i,i.geometry)}else if(Wu(i.type))return new Yn(i,i)}return r.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(e){const r=e.geometry(),i=e.canonicalID();if(r!=null&&i!=null){if(e.geometryType()==="Point")return function(o,a,n){const s=[];for(const c of o)for(const u of c)s.push(Zu(u,a));const l=new Vu(s[0][1],"meters");return n.type==="Point"||n.type==="MultiPoint"||n.type==="LineString"?Ff(s,!1,n.type==="Point"?[n.coordinates]:n.coordinates,n.type==="LineString",l):n.type==="MultiLineString"?Hu(s,!1,n.coordinates,l):n.type==="Polygon"||n.type==="MultiPolygon"?hl(s,!1,n.type==="Polygon"?[n.coordinates]:n.coordinates,l):null}(r,i,this.geometries);if(e.geometryType()==="LineString")return function(o,a,n){const s=[];for(const c of o){const u=[];for(const h of c)u.push(Zu(h,a));s.push(u)}const l=new Vu(s[0][0][1],"meters");if(n.type==="Point"||n.type==="MultiPoint"||n.type==="LineString")return Hu(n.type==="Point"?[n.coordinates]:n.coordinates,n.type==="LineString",s,l);if(n.type==="MultiLineString"){let c=1/0;for(let u=0;u<n.coordinates.length;u++){const h=Hu(n.coordinates[u],!0,s,l,c);if(isNaN(h))return h;if((c=Math.min(c,h))===0)return c}return c}if(n.type==="Polygon"||n.type==="MultiPolygon"){let c=1/0;for(let u=0;u<s.length;u++){const h=hl(s[u],!0,n.type==="Polygon"?[n.coordinates]:n.coordinates,l,c);if(isNaN(h))return h;if((c=Math.min(c,h))===0)return c}return c}return null}(r,i,this.geometries);if(e.geometryType()==="Polygon")return function(o,a,n){const s=[];for(const c of function(u,h){const d=u.length;if(d<=1)return[u];const p=[];let f,m;for(let g=0;g<d;g++){const _=Ev(u[g]);_!==0&&(u[g].area=Math.abs(_),m===void 0&&(m=_<0),m===_<0?(f&&p.push(f),f=[u[g]]):f.push(u[g]))}return f&&p.push(f),p}(o)){const u=[];for(let h=0;h<c.length;++h)u.push(zv(c[h],a));s.push(u)}const l=new Vu(s[0][0][0][1],"meters");if(n.type==="Point"||n.type==="MultiPoint"||n.type==="LineString")return hl(n.type==="Point"?[n.coordinates]:n.coordinates,n.type==="LineString",s,l);if(n.type==="MultiLineString"){let c=1/0;for(let u=0;u<n.coordinates.length;u++){const h=hl(n.coordinates[u],!0,s,l,c);if(isNaN(h))return h;if((c=Math.min(c,h))===0)return c}return c}return n.type==="Polygon"||n.type==="MultiPolygon"?function(c,u,h){let d=1/0;for(const p of c)for(const f of u){const m=Bv(p,f,h,d);if(isNaN(m))return m;if((d=Math.min(d,m))===0)return d}return d}(n.type==="Polygon"?[n.coordinates]:n.coordinates,s,l):null}(r,i,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requirs valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}var Xu=Yn;function Ka(t){if(t instanceof ji&&(t.name==="get"&&t.args.length===1||t.name==="feature-state"||t.name==="has"&&t.args.length===1||t.name==="properties"||t.name==="geometry-type"||t.name==="id"||/^filter-/.test(t.name))||t instanceof Nu||t instanceof Xu)return!1;let e=!0;return t.eachChild(r=>{e&&!Ka(r)&&(e=!1)}),e}function Jn(t){if(t instanceof ji&&t.name==="feature-state")return!1;let e=!0;return t.eachChild(r=>{e&&!Jn(r)&&(e=!1)}),e}function Yu(t){if(t instanceof ji&&t.name==="config")return!1;let e=!0;return t.eachChild(r=>{e&&!Yu(r)&&(e=!1)}),e}function Qa(t,e){if(t instanceof ji&&e.indexOf(t.name)>=0)return!1;let r=!0;return t.eachChild(i=>{r&&!Qa(i,e)&&(r=!1)}),r}class Ju{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 i=e[1];return r.scope.has(i)?new Ju(i,r.scope.get(i)):r.error(`Unknown variable "${i}". Make sure "${i}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Nf=Ju;class Ku{constructor(e,r=[],i,o=new xv,a=[],n){this.registry=e,this.path=r,this.key=r.map(s=>`[${s}]`).join(""),this.scope=o,this.errors=a,this.expectedType=i,this.options=n}parse(e,r,i,o,a={}){return r||i?this.concat(r,i,o)._parse(e,a):this._parse(e,a)}_parse(e,r){function i(o,a,n){return n==="assert"?new no(a,[o]):n==="coerce"?new ha(a,[o]):o}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 o=typeof e[0]=="string"?this.registry[e[0]]:void 0;if(o){let a=o.parse(e,this);if(!a)return null;if(this.expectedType){const n=this.expectedType,s=a.type;if(n.kind!=="string"&&n.kind!=="number"&&n.kind!=="boolean"&&n.kind!=="object"&&n.kind!=="array"||s.kind!=="value")if(n.kind!=="color"&&n.kind!=="formatted"&&n.kind!=="resolvedImage"||s.kind!=="value"&&s.kind!=="string"){if(this.checkSubtype(n,s))return null}else a=i(a,n,r.typeAnnotation||"coerce");else a=i(a,n,r.typeAnnotation||"assert")}if(!(a instanceof qn)&&a.type.kind!=="resolvedImage"&&Qu(a)){const n=new kf(this.options);try{a=new qn(a.type,a.evaluate(n))}catch(s){return this.error(s.message),null}}return a}return ha.parse(["to-array",e],this)}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,i){const o=typeof e=="number"?this.path.concat(e):this.path,a=i?this.scope.concat(i):this.scope;return new Ku(this.registry,o,r||null,a,this.errors,this.options)}error(e,...r){const i=`${this.key}${r.map(o=>`[${o}]`).join("")}`;this.errors.push(new Ui(i,e))}checkSubtype(e,r){const i=Un(e,r);return i&&this.error(i),i}}var Vf=Ku;function Qu(t){if(t instanceof Nf)return Qu(t.boundExpression);if(t instanceof ji&&t.name==="error"||t instanceof ji&&t.name==="config"||t instanceof nl||t instanceof Nu||t instanceof Xu)return!1;const e=t instanceof ha||t instanceof no;let r=!0;return t.eachChild(i=>{r=e?r&&Qu(i):r&&i instanceof qn}),!!r&&Ka(t)&&Qa(t,["zoom","heatmap-density","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light"])}function dl(t,e){const r=t.length-1;let i,o,a=0,n=r,s=0;for(;a<=n;)if(s=Math.floor((a+n)/2),i=t[s],o=t[s+1],i<=e){if(s===r||e<o)return s;a=s+1}else{if(!(i>e))throw new Tr("Input is not a number.");n=s-1}return 0}class eh{constructor(e,r,i){this.type=e,this.input=r,this.labels=[],this.outputs=[];for(const[o,a]of i)this.labels.push(o),this.outputs.push(a)}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 i=r.parse(e[1],1,ye);if(!i)return null;const o=[];let a=null;r.expectedType&&r.expectedType.kind!=="value"&&(a=r.expectedType);for(let n=1;n<e.length;n+=2){const s=n===1?-1/0:e[n],l=e[n+1],c=n,u=n+1;if(typeof s!="number")return r.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',c);if(o.length&&o[o.length-1][0]>=s)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',c);const h=r.parse(l,u,a);if(!h)return null;a=a||h.type,o.push([s,h])}return new eh(a,i,o)}evaluate(e){const r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(e);const o=this.input.evaluate(e);if(o<=r[0])return i[0].evaluate(e);const a=r.length;return o>=r[a-1]?i[a-1].evaluate(e):i[dl(r,o)].evaluate(e)}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let r=0;r<this.labels.length;r++)r>0&&e.push(this.labels[r]),e.push(this.outputs[r].serialize());return e}}var th=eh;function Fe(t,e,r){return t*(1-r)+e*r}function Uf(t,e,r){return t.map((i,o)=>Fe(i,e[o],r))}var pl=Object.freeze({__proto__:null,array:Uf,color:function(t,e,r){return new Qe(Fe(t.r,e.r,r),Fe(t.g,e.g,r),Fe(t.b,e.b,r),Fe(t.a,e.a,r))},number:Fe});const jf=.95047,Gf=1.08883,qf=4/29,en=6/29,Zf=3*en*en,Fv=en*en*en,Nv=Math.PI/180,Vv=180/Math.PI;function rh(t){return t>Fv?Math.pow(t,1/3):t/Zf+qf}function ih(t){return t>en?t*t*t:Zf*(t-qf)}function oh(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ah(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function $f(t){const e=ah(t.r),r=ah(t.g),i=ah(t.b),o=rh((.4124564*e+.3575761*r+.1804375*i)/jf),a=rh((.2126729*e+.7151522*r+.072175*i)/1);return{l:116*a-16,a:500*(o-a),b:200*(a-rh((.0193339*e+.119192*r+.9503041*i)/Gf)),alpha:t.a}}function Hf(t){let e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,i=isNaN(t.b)?e:e-t.b/200;return e=1*ih(e),r=jf*ih(r),i=Gf*ih(i),new Qe(oh(3.2404542*r-1.5371385*e-.4985314*i),oh(-.969266*r+1.8760108*e+.041556*i),oh(.0556434*r-.2040259*e+1.0572252*i),t.alpha)}function Uv(t,e,r){const i=e-t;return t+r*(i>180||i<-180?i-360*Math.round(i/360):i)}const Kn={forward:$f,reverse:Hf,interpolate:function(t,e,r){return{l:Fe(t.l,e.l,r),a:Fe(t.a,e.a,r),b:Fe(t.b,e.b,r),alpha:Fe(t.alpha,e.alpha,r)}}},Qn={forward:function(t){const{l:e,a:r,b:i}=$f(t),o=Math.atan2(i,r)*Vv;return{h:o<0?o+360:o,c:Math.sqrt(r*r+i*i),l:e,alpha:t.a}},reverse:function(t){const e=t.h*Nv,r=t.c;return Hf({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:Uv(t.h,e.h,r),c:Fe(t.c,e.c,r),l:Fe(t.l,e.l,r),alpha:Fe(t.alpha,e.alpha,r)}}};var Wf=Object.freeze({__proto__:null,hcl:Qn,lab:Kn});class fl{constructor(e,r,i,o,a){this.type=e,this.operator=r,this.interpolation=i,this.input=o,this.labels=[],this.outputs=[];for(const[n,s]of a)this.labels.push(n),this.outputs.push(s)}static interpolationFactor(e,r,i,o){let a=0;if(e.name==="exponential")a=nh(r,e.base,i,o);else if(e.name==="linear")a=nh(r,1,i,o);else if(e.name==="cubic-bezier"){const n=e.controlPoints;a=new Ws(n[0],n[1],n[2],n[3]).solve(nh(r,1,i,o))}return a}static parse(e,r){let[i,o,a,...n]=e;if(!Array.isArray(o)||o.length===0)return r.error("Expected an interpolation type expression.",1);if(o[0]==="linear")o={name:"linear"};else if(o[0]==="exponential"){const c=o[1];if(typeof c!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);o={name:"exponential",base:c}}else{if(o[0]!=="cubic-bezier")return r.error(`Unknown interpolation type ${String(o[0])}`,1,0);{const c=o.slice(1);if(c.length!==4||c.some(u=>typeof u!="number"||u<0||u>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);o={name:"cubic-bezier",controlPoints:c}}}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(a=r.parse(a,2,ye),!a)return null;const s=[];let l=null;i==="interpolate-hcl"||i==="interpolate-lab"?l=fi:r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);for(let c=0;c<n.length;c+=2){const u=n[c],h=n[c+1],d=c+3,p=c+4;if(typeof u!="number")return r.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',d);if(s.length&&s[s.length-1][0]>=u)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',d);const f=r.parse(h,p,l);if(!f)return null;l=l||f.type,s.push([u,f])}return l.kind==="number"||l.kind==="color"||l.kind==="array"&&l.itemType.kind==="number"&&typeof l.N=="number"?new fl(l,i,o,a,s):r.error(`Type ${nr(l)} is not interpolatable.`)}evaluate(e){const r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(e);const o=this.input.evaluate(e);if(o<=r[0])return i[0].evaluate(e);const a=r.length;if(o>=r[a-1])return i[a-1].evaluate(e);const n=dl(r,o),s=fl.interpolationFactor(this.interpolation,o,r[n],r[n+1]),l=i[n].evaluate(e),c=i[n+1].evaluate(e);return this.operator==="interpolate"?pl[this.type.kind.toLowerCase()](l,c,s):this.operator==="interpolate-hcl"?Qn.reverse(Qn.interpolate(Qn.forward(l),Qn.forward(c),s)):Kn.reverse(Kn.interpolate(Kn.forward(l),Kn.forward(c),s))}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;e=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const r=[this.operator,e,this.input.serialize()];for(let i=0;i<this.labels.length;i++)r.push(this.labels[i],this.outputs[i].serialize());return r}}function nh(t,e,r,i){const o=i-r,a=t-r;return o===0?0:e===1?a/o:(Math.pow(e,a)-1)/(Math.pow(e,o)-1)}var Gi=fl;class sh{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 i=null;const o=r.expectedType;o&&o.kind!=="value"&&(i=o);const a=[];for(const s of e.slice(1)){const l=r.parse(s,1+a.length,i,void 0,{typeAnnotation:"omit"});if(!l)return null;i=i||l.type,a.push(l)}const n=o&&a.some(s=>Un(o,s.type));return new sh(n?gt:i,a)}evaluate(e){let r,i=null,o=0;for(const a of this.args){if(o++,i=a.evaluate(e),i&&i instanceof mi&&!i.available&&(r||(r=i),i=null,o===this.args.length))return r;if(i!==null)break}return i}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(r=>{e.push(r.serialize())}),e}}var Xf=sh;class lh{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 i=[];for(let a=1;a<e.length-1;a+=2){const n=e[a];if(typeof n!="string")return r.error(`Expected string, but found ${typeof n} instead.`,a);if(/[^a-zA-Z0-9_]/.test(n))return r.error("Variable names must contain only alphanumeric characters or '_'.",a);const s=r.parse(e[a+1],a+1);if(!s)return null;i.push([n,s])}const o=r.parse(e[e.length-1],e.length-1,r.expectedType,i);return o?new lh(i,o):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[r,i]of this.bindings)e.push(r,i.serialize());return e.push(this.result.serialize()),e}}var Yf=lh;class ch{constructor(e,r,i){this.type=e,this.index=r,this.input=i}static parse(e,r){if(e.length!==3)return r.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const i=r.parse(e[1],1,ye),o=r.parse(e[2],2,Wr(r.expectedType||gt));return i&&o?new ch(o.type.itemType,i,o):null}evaluate(e){const r=this.index.evaluate(e),i=this.input.evaluate(e);if(r<0)throw new Tr(`Array index out of bounds: ${r} < 0.`);if(r>=i.length)throw new Tr(`Array index out of bounds: ${r} > ${i.length-1}.`);if(r!==Math.floor(r))throw new Tr(`Array index must be an integer, but found ${r} instead.`);return i[r]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var jv=ch;class uh{constructor(e,r){this.type=yt,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 i=r.parse(e[1],1,gt),o=r.parse(e[2],2,gt);return i&&o?Au(i.type,[yt,ft,ye,Ha,gt])?new uh(i,o):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${nr(i.type)} instead`):null}evaluate(e){const r=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(i==null)return!1;if(!jn(r,["boolean","string","number","null"]))throw new Tr(`Expected first argument to be of type boolean, string, number or null, but found ${nr(_r(r))} instead.`);if(!jn(i,["string","array"]))throw new Tr(`Expected second argument to be of type array or string, but found ${nr(_r(i))} instead.`);return i.indexOf(r)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var Gv=uh;class ml{constructor(e,r,i){this.type=ye,this.needle=e,this.haystack=r,this.fromIndex=i}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 i=r.parse(e[1],1,gt),o=r.parse(e[2],2,gt);if(!i||!o)return null;if(!Au(i.type,[yt,ft,ye,Ha,gt]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${nr(i.type)} instead`);if(e.length===4){const a=r.parse(e[3],3,ye);return a?new ml(i,o,a):null}return new ml(i,o)}evaluate(e){const r=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!jn(r,["boolean","string","number","null"]))throw new Tr(`Expected first argument to be of type boolean, string, number or null, but found ${nr(_r(r))} instead.`);if(!jn(i,["string","array"]))throw new Tr(`Expected second argument to be of type array or string, but found ${nr(_r(i))} instead.`);if(this.fromIndex){const o=this.fromIndex.evaluate(e);return i.indexOf(r,o)}return i.indexOf(r)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var qv=ml;class hh{constructor(e,r,i,o,a,n){this.inputType=e,this.type=r,this.input=i,this.cases=o,this.outputs=a,this.otherwise=n}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 i,o;r.expectedType&&r.expectedType.kind!=="value"&&(o=r.expectedType);const a={},n=[];for(let c=2;c<e.length-1;c+=2){let u=e[c];const h=e[c+1];Array.isArray(u)||(u=[u]);const d=r.concat(c);if(u.length===0)return d.error("Expected at least one branch label.");for(const f of u){if(typeof f!="number"&&typeof f!="string")return d.error("Branch labels must be numbers or strings.");if(typeof f=="number"&&Math.abs(f)>Number.MAX_SAFE_INTEGER)return d.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof f=="number"&&Math.floor(f)!==f)return d.error("Numeric branch labels must be integer values.");if(i){if(d.checkSubtype(i,_r(f)))return null}else i=_r(f);if(a[String(f)]!==void 0)return d.error("Branch labels must be unique.");a[String(f)]=n.length}const p=r.parse(h,c,o);if(!p)return null;o=o||p.type,n.push(p)}const s=r.parse(e[1],1,gt);if(!s)return null;const l=r.parse(e[e.length-1],e.length-1,o);return l?s.type.kind!=="value"&&r.concat(1).checkSubtype(i,s.type)?null:new hh(i,o,s,a,n,l):null}evaluate(e){const r=this.input.evaluate(e);return(_r(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()}serialize(){const e=["match",this.input.serialize()],r=Object.keys(this.cases).sort(),i=[],o={};for(const n of r){const s=o[this.cases[n]];s===void 0?(o[this.cases[n]]=i.length,i.push([this.cases[n],[n]])):i[s][1].push(n)}const a=n=>this.inputType.kind==="number"?Number(n):n;for(const[n,s]of i)e.push(s.length===1?a(s[0]):s.map(a)),e.push(this.outputs[n].serialize());return e.push(this.otherwise.serialize()),e}}var Zv=hh;class dh{constructor(e,r,i){this.type=e,this.branches=r,this.otherwise=i}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 i;r.expectedType&&r.expectedType.kind!=="value"&&(i=r.expectedType);const o=[];for(let n=1;n<e.length-1;n+=2){const s=r.parse(e[n],n,yt);if(!s)return null;const l=r.parse(e[n+1],n+1,i);if(!l)return null;o.push([s,l]),i=i||l.type}const a=r.parse(e[e.length-1],e.length-1,i);return a?new dh(i,o,a):null}evaluate(e){for(const[r,i]of this.branches)if(r.evaluate(e))return i.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[r,i]of this.branches)e(r),e(i);e(this.otherwise)}outputDefined(){return this.branches.every(([e,r])=>r.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(r=>{e.push(r.serialize())}),e}}var $v=dh;class gl{constructor(e,r,i,o){this.type=e,this.input=r,this.beginIndex=i,this.endIndex=o}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 i=r.parse(e[1],1,gt),o=r.parse(e[2],2,ye);if(!i||!o)return null;if(!Au(i.type,[Wr(gt),ft,gt]))return r.error(`Expected first argument to be of type array or string, but found ${nr(i.type)} instead`);if(e.length===4){const a=r.parse(e[3],3,ye);return a?new gl(i.type,i,o,a):null}return new gl(i.type,i,o)}evaluate(e){const r=this.input.evaluate(e),i=this.beginIndex.evaluate(e);if(!jn(r,["string","array"]))throw new Tr(`Expected first argument to be of type array or string, but found ${nr(_r(r))} instead.`);if(this.endIndex){const o=this.endIndex.evaluate(e);return r.slice(i,o)}return r.slice(i)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var Hv=gl;function Jf(t,e){return t==="=="||t==="!="?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 Kf(t,e,r,i){return i.compare(e,r)===0}function tn(t,e,r){const i=t!=="=="&&t!=="!=";return class dv{constructor(a,n,s){this.type=yt,this.lhs=a,this.rhs=n,this.collator=s,this.hasUntypedArgument=a.type.kind==="value"||n.type.kind==="value"}static parse(a,n){if(a.length!==3&&a.length!==4)return n.error("Expected two or three arguments.");const s=a[0];let l=n.parse(a[1],1,gt);if(!l)return null;if(!Jf(s,l.type))return n.concat(1).error(`"${s}" comparisons are not supported for type '${nr(l.type)}'.`);let c=n.parse(a[2],2,gt);if(!c)return null;if(!Jf(s,c.type))return n.concat(2).error(`"${s}" comparisons are not supported for type '${nr(c.type)}'.`);if(l.type.kind!==c.type.kind&&l.type.kind!=="value"&&c.type.kind!=="value")return n.error(`Cannot compare types '${nr(l.type)}' and '${nr(c.type)}'.`);i&&(l.type.kind==="value"&&c.type.kind!=="value"?l=new no(c.type,[l]):l.type.kind!=="value"&&c.type.kind==="value"&&(c=new no(l.type,[c])));let u=null;if(a.length===4){if(l.type.kind!=="string"&&c.type.kind!=="string"&&l.type.kind!=="value"&&c.type.kind!=="value")return n.error("Cannot use collator to compare non-string types.");if(u=n.parse(a[3],3,il),!u)return null}return new dv(l,c,u)}evaluate(a){const n=this.lhs.evaluate(a),s=this.rhs.evaluate(a);if(i&&this.hasUntypedArgument){const l=_r(n),c=_r(s);if(l.kind!==c.kind||l.kind!=="string"&&l.kind!=="number")throw new Tr(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${l.kind}, ${c.kind}) instead.`)}if(this.collator&&!i&&this.hasUntypedArgument){const l=_r(n),c=_r(s);if(l.kind!=="string"||c.kind!=="string")return e(a,n,s)}return this.collator?r(a,n,s,this.collator.evaluate(a)):e(a,n,s)}eachChild(a){a(this.lhs),a(this.rhs),this.collator&&a(this.collator)}outputDefined(){return!0}serialize(){const a=[t];return this.eachChild(n=>{a.push(n.serialize())}),a}}}const Wv=tn("==",function(t,e,r){return e===r},Kf),Xv=tn("!=",function(t,e,r){return e!==r},function(t,e,r,i){return!Kf(0,e,r,i)}),Yv=tn("<",function(t,e,r){return e<r},function(t,e,r,i){return i.compare(e,r)<0}),Jv=tn(">",function(t,e,r){return e>r},function(t,e,r,i){return i.compare(e,r)>0}),Kv=tn("<=",function(t,e,r){return e<=r},function(t,e,r,i){return i.compare(e,r)<=0}),Qv=tn(">=",function(t,e,r){return e>=r},function(t,e,r,i){return i.compare(e,r)>=0});class ph{constructor(e,r,i,o,a,n){this.type=ft,this.number=e,this.locale=r,this.currency=i,this.unit=o,this.minFractionDigits=a,this.maxFractionDigits=n}static parse(e,r){if(e.length!==3)return r.error("Expected two arguments.");const i=r.parse(e[1],1,ye);if(!i)return null;const o=e[2];if(typeof o!="object"||Array.isArray(o))return r.error("NumberFormat options argument must be an object.");let a=null;if(o.locale&&(a=r.parse(o.locale,1,ft),!a))return null;let n=null;if(o.currency&&(n=r.parse(o.currency,1,ft),!n))return null;let s=null;if(o.unit&&(s=r.parse(o.unit,1,ft),!s))return null;let l=null;if(o["min-fraction-digits"]&&(l=r.parse(o["min-fraction-digits"],1,ye),!l))return null;let c=null;return o["max-fraction-digits"]&&(c=r.parse(o["max-fraction-digits"],1,ye),!c)?null:new ph(i,a,n,s,l,c)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class fh{constructor(e){this.type=ye,this.input=e}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);const i=r.parse(e[1],1);return i?i.type.kind!=="array"&&i.type.kind!=="string"&&i.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${nr(i.type)} instead.`):new fh(i):null}evaluate(e){const r=this.input.evaluate(e);if(typeof r=="string"||Array.isArray(r))return r.length;throw new Tr(`Expected value to be of type string or array, but found ${nr(_r(r))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(r=>{e.push(r.serialize())}),e}}function mh(t){return function(){t=1831565813+(t|=0)|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const Qf={"==":Wv,"!=":Xv,">":Jv,"<":Yv,">=":Qv,"<=":Kv,array:no,at:jv,boolean:no,case:$v,coalesce:Xf,collator:nl,format:Zn,image:$n,in:Gv,"index-of":qv,interpolate:Gi,"interpolate-hcl":Gi,"interpolate-lab":Gi,length:fh,let:Yf,literal:qn,match:Zv,number:no,"number-format":ph,object:no,slice:Hv,step:th,string:no,"to-boolean":ha,"to-color":ha,"to-number":ha,"to-string":ha,var:Nf,within:Nu,distance:Xu};function em(t,[e,r,i,o]){e=e.evaluate(t),r=r.evaluate(t),i=i.evaluate(t);const a=o?o.evaluate(t):1,n=wf(e,r,i,a);if(n)throw new Tr(n);return new Qe(e/255*a,r/255*a,i/255*a,a)}function tm(t,[e,r,i,o]){e=e.evaluate(t),r=r.evaluate(t),i=i.evaluate(t);const a=o?o.evaluate(t):1,n=function(c,u,h,d){return typeof c=="number"&&c>=0&&c<=360?typeof u=="number"&&u>=0&&u<=100&&typeof h=="number"&&h>=0&&h<=100?d===void 0||typeof d=="number"&&d>=0&&d<=1?null:`Invalid hsla value [${[c,u,h,d].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof d=="number"?[c,u,h,d]:[c,u,h]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof d=="number"?[c,u,h,d]:[c,u,h]).join(", ")}]: 'h' must be between 0 and 360.`}(e,r,i,a);if(n)throw new Tr(n);const s=`hsla(${e}, ${r}%, ${i}%, ${a})`,l=Qe.parse(s);if(!l)throw new Tr(`Failed to parse HSLA color: ${s}`);return l}function rm(t,e){return t in e}function gh(t,e){const r=e[t];return r===void 0?null:r}function im(t,e){switch(t){case"string":return String(e);case"number":return+e;case"boolean":return!!e;case"color":return Qe.parse(e)}return e}function om(t,e,r,i){return i!==void 0&&(t=i*Math.round(t/i)),e!==void 0&&t<e&&(t=e),r!==void 0&&t>r&&(t=r),t}function am(t,e,r){r.length&&(e+=`${r}`);const i=t.getConfig(e);if(!i)return null;const{type:o,value:a,values:n,minValue:s,maxValue:l,stepValue:c}=i,u=i.default.evaluate(t);let h=a?a.evaluate(t):u;return o&&(h=im(o,h)),a!==void 0&&h!==void 0&&n&&!n.includes(h)&&(h=u,o&&(h=im(o,h))),h===void 0||s===void 0&&l===void 0&&c===void 0||(typeof h=="number"?h=om(h,s,l,c):Array.isArray(h)&&(h=h.map(d=>typeof d=="number"?om(d,s,l,c):d))),h}function fa(t){return{type:t}}ji.register(Qf,{error:[{kind:"error"},[ft],(t,[e])=>{throw new Tr(e.evaluate(t))}],typeof:[ft,[gt],(t,[e])=>nr(_r(e.evaluate(t)))],"to-rgba":[Wr(ye,4),[fi],(t,[e])=>e.evaluate(t).toArray()],rgb:[fi,[ye,ye,ye],em],rgba:[fi,[ye,ye,ye,ye],em],hsl:[fi,[ye,ye,ye],tm],hsla:[fi,[ye,ye,ye,ye],tm],has:{type:yt,overloads:[[[ft],(t,[e])=>rm(e.evaluate(t),t.properties())],[[ft,Wa],(t,[e,r])=>rm(e.evaluate(t),r.evaluate(t))]]},get:{type:gt,overloads:[[[ft],(t,[e])=>gh(e.evaluate(t),t.properties())],[[ft,Wa],(t,[e,r])=>gh(e.evaluate(t),r.evaluate(t))]]},config:{type:gt,overloads:[[[ft],(t,[e])=>am(t,e.evaluate(t),"")],[[ft,ft],(t,[e,r])=>am(t,e.evaluate(t),r.evaluate(t))]]},"feature-state":[gt,[ft],(t,[e])=>gh(e.evaluate(t),t.featureState||{})],properties:[Wa,[],t=>t.properties()],"geometry-type":[ft,[],t=>t.geometryType()],id:[gt,[],t=>t.id()],zoom:[ye,[],t=>t.globals.zoom],pitch:[ye,[],t=>t.globals.pitch||0],"distance-from-center":[ye,[],t=>t.distanceFromCenter()],"measure-light":[ye,[ft],(t,[e])=>t.measureLight(e.evaluate(t))],"heatmap-density":[ye,[],t=>t.globals.heatmapDensity||0],"line-progress":[ye,[],t=>t.globals.lineProgress||0],"raster-value":[ye,[],t=>t.globals.rasterValue||0],"sky-radial-progress":[ye,[],t=>t.globals.skyRadialProgress||0],accumulated:[gt,[],t=>t.globals.accumulated===void 0?null:t.globals.accumulated],"+":[ye,fa(ye),(t,e)=>{let r=0;for(const i of e)r+=i.evaluate(t);return r}],"*":[ye,fa(ye),(t,e)=>{let r=1;for(const i of e)r*=i.evaluate(t);return r}],"-":{type:ye,overloads:[[[ye,ye],(t,[e,r])=>e.evaluate(t)-r.evaluate(t)],[[ye],(t,[e])=>-e.evaluate(t)]]},"/":[ye,[ye,ye],(t,[e,r])=>e.evaluate(t)/r.evaluate(t)],"%":[ye,[ye,ye],(t,[e,r])=>e.evaluate(t)%r.evaluate(t)],ln2:[ye,[],()=>Math.LN2],pi:[ye,[],()=>Math.PI],e:[ye,[],()=>Math.E],"^":[ye,[ye,ye],(t,[e,r])=>Math.pow(e.evaluate(t),r.evaluate(t))],sqrt:[ye,[ye],(t,[e])=>Math.sqrt(e.evaluate(t))],log10:[ye,[ye],(t,[e])=>Math.log(e.evaluate(t))/Math.LN10],ln:[ye,[ye],(t,[e])=>Math.log(e.evaluate(t))],log2:[ye,[ye],(t,[e])=>Math.log(e.evaluate(t))/Math.LN2],sin:[ye,[ye],(t,[e])=>Math.sin(e.evaluate(t))],cos:[ye,[ye],(t,[e])=>Math.cos(e.evaluate(t))],tan:[ye,[ye],(t,[e])=>Math.tan(e.evaluate(t))],asin:[ye,[ye],(t,[e])=>Math.asin(e.evaluate(t))],acos:[ye,[ye],(t,[e])=>Math.acos(e.evaluate(t))],atan:[ye,[ye],(t,[e])=>Math.atan(e.evaluate(t))],min:[ye,fa(ye),(t,e)=>Math.min(...e.map(r=>r.evaluate(t)))],max:[ye,fa(ye),(t,e)=>Math.max(...e.map(r=>r.evaluate(t)))],abs:[ye,[ye],(t,[e])=>Math.abs(e.evaluate(t))],round:[ye,[ye],(t,[e])=>{const r=e.evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[ye,[ye],(t,[e])=>Math.floor(e.evaluate(t))],ceil:[ye,[ye],(t,[e])=>Math.ceil(e.evaluate(t))],"filter-==":[yt,[ft,gt],(t,[e,r])=>t.properties()[e.value]===r.value],"filter-id-==":[yt,[gt],(t,[e])=>t.id()===e.value],"filter-type-==":[yt,[ft],(t,[e])=>t.geometryType()===e.value],"filter-<":[yt,[ft,gt],(t,[e,r])=>{const i=t.properties()[e.value],o=r.value;return typeof i==typeof o&&i<o}],"filter-id-<":[yt,[gt],(t,[e])=>{const r=t.id(),i=e.value;return typeof r==typeof i&&r<i}],"filter->":[yt,[ft,gt],(t,[e,r])=>{const i=t.properties()[e.value],o=r.value;return typeof i==typeof o&&i>o}],"filter-id->":[yt,[gt],(t,[e])=>{const r=t.id(),i=e.value;return typeof r==typeof i&&r>i}],"filter-<=":[yt,[ft,gt],(t,[e,r])=>{const i=t.properties()[e.value],o=r.value;return typeof i==typeof o&&i<=o}],"filter-id-<=":[yt,[gt],(t,[e])=>{const r=t.id(),i=e.value;return typeof r==typeof i&&r<=i}],"filter->=":[yt,[ft,gt],(t,[e,r])=>{const i=t.properties()[e.value],o=r.value;return typeof i==typeof o&&i>=o}],"filter-id->=":[yt,[gt],(t,[e])=>{const r=t.id(),i=e.value;return typeof r==typeof i&&r>=i}],"filter-has":[yt,[gt],(t,[e])=>e.value in t.properties()],"filter-has-id":[yt,[],t=>t.id()!==null&&t.id()!==void 0],"filter-type-in":[yt,[Wr(ft)],(t,[e])=>e.value.indexOf(t.geometryType())>=0],"filter-id-in":[yt,[Wr(gt)],(t,[e])=>e.value.indexOf(t.id())>=0],"filter-in-small":[yt,[ft,Wr(gt)],(t,[e,r])=>r.value.indexOf(t.properties()[e.value])>=0],"filter-in-large":[yt,[ft,Wr(gt)],(t,[e,r])=>function(i,o,a,n){for(;a<=n;){const s=a+n>>1;if(o[s]===i)return!0;o[s]>i?n=s-1:a=s+1}return!1}(t.properties()[e.value],r.value,0,r.value.length-1)],all:{type:yt,overloads:[[[yt,yt],(t,[e,r])=>e.evaluate(t)&&r.evaluate(t)],[fa(yt),(t,e)=>{for(const r of e)if(!r.evaluate(t))return!1;return!0}]]},any:{type:yt,overloads:[[[yt,yt],(t,[e,r])=>e.evaluate(t)||r.evaluate(t)],[fa(yt),(t,e)=>{for(const r of e)if(r.evaluate(t))return!0;return!1}]]},"!":[yt,[yt],(t,[e])=>!e.evaluate(t)],"is-supported-script":[yt,[ft],(t,[e])=>{const r=t.globals&&t.globals.isSupportedScript;return!r||r(e.evaluate(t))}],upcase:[ft,[ft],(t,[e])=>e.evaluate(t).toUpperCase()],downcase:[ft,[ft],(t,[e])=>e.evaluate(t).toLowerCase()],concat:[ft,fa(gt),(t,e)=>e.map(r=>Gn(r.evaluate(t))).join("")],"resolved-locale":[ft,[il],(t,[e])=>e.evaluate(t).resolvedLocale()],random:[ye,[ye,ye,gt],(t,e)=>{const[r,i,o]=e.map(n=>n.evaluate(t));if(r>i||r===i)return r;let a;if(typeof o=="string")a=function(n){let s=0;if(n.length===0)return s;for(let l=0;l<n.length;l++)s=(s<<5)-s+n.charCodeAt(l),s&=s;return s}(o);else{if(typeof o!="number")throw new Tr(`Invalid seed input: ${o}`);a=o}return r+mh(a)()*(i-r)}]});var es=Qf;function nm(t){return{result:"success",value:t}}function ma(t){return{result:"error",value:t}}function sm(t,e){return!!t&&!!t.parameters&&t.parameters.indexOf(e)>-1}function ga(t){return t["property-type"]==="data-driven"}function lm(t){return sm(t.expression,"measure-light")}function _h(t){return sm(t.expression,"zoom")}function yh(t){return!!t.expression&&t.expression.interpolated}function _l(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function eb(t){return t}function cm(t,e){const r=e.type==="color",i=t.stops&&typeof t.stops[0][0]=="object",o=i||!(i||t.property!==void 0),a=t.type||(yh(e)?"exponential":"interval");if(r&&((t=oo({},t)).stops&&(t.stops=t.stops.map(c=>[c[0],Qe.parse(c[1])])),t.default=Qe.parse(t.default?t.default:e.default)),t.colorSpace&&t.colorSpace!=="rgb"&&!Wf[t.colorSpace])throw new Error(`Unknown color space: ${t.colorSpace}`);let n,s,l;if(a==="exponential")n=um;else if(a==="interval")n=rb;else if(a==="categorical"){n=tb,s=Object.create(null);for(const c of t.stops)s[c[0]]=c[1];l=typeof t.stops[0][0]}else{if(a!=="identity")throw new Error(`Unknown function type "${a}"`);n=ib}if(i){const c={},u=[];for(let p=0;p<t.stops.length;p++){const f=t.stops[p],m=f[0].zoom;c[m]===void 0&&(c[m]={zoom:m,type:t.type,property:t.property,default:t.default,stops:[]},u.push(m)),c[m].stops.push([f[0].value,f[1]])}const h=[];for(const p of u)h.push([c[p].zoom,cm(c[p],e)]);const d={name:"linear"};return{kind:"composite",interpolationType:d,interpolationFactor:Gi.interpolationFactor.bind(void 0,d),zoomStops:h.map(p=>p[0]),evaluate:({zoom:p},f)=>um({stops:h,base:t.base},e,p).evaluate(p,f)}}if(o){const c=a==="exponential"?{name:"exponential",base:t.base!==void 0?t.base:1}:null;return{kind:"camera",interpolationType:c,interpolationFactor:Gi.interpolationFactor.bind(void 0,c),zoomStops:t.stops.map(u=>u[0]),evaluate:({zoom:u})=>n(t,e,u,s,l)}}return{kind:"source",evaluate(c,u){const h=u&&u.properties?u.properties[t.property]:void 0;return h===void 0?ts(t.default,e.default):n(t,e,h,s,l)}}}function ts(t,e,r){return t!==void 0?t:e!==void 0?e:r!==void 0?r:void 0}function tb(t,e,r,i,o){return ts(typeof r===o?i[r]:void 0,t.default,e.default)}function rb(t,e,r){if(kt(r)!=="number")return ts(t.default,e.default);const i=t.stops.length;if(i===1||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[i-1][0])return t.stops[i-1][1];const o=dl(t.stops.map(a=>a[0]),r);return t.stops[o][1]}function um(t,e,r){const i=t.base!==void 0?t.base:1;if(kt(r)!=="number")return ts(t.default,e.default);const o=t.stops.length;if(o===1||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[o-1][0])return t.stops[o-1][1];const a=dl(t.stops.map(u=>u[0]),r),n=function(u,h,d,p){const f=p-d,m=u-d;return f===0?0:h===1?m/f:(Math.pow(h,m)-1)/(Math.pow(h,f)-1)}(r,i,t.stops[a][0],t.stops[a+1][0]),s=t.stops[a][1],l=t.stops[a+1][1];let c=pl[e.type]||eb;if(t.colorSpace&&t.colorSpace!=="rgb"){const u=Wf[t.colorSpace];c=(h,d)=>u.reverse(u.interpolate(u.forward(h),u.forward(d),n))}return typeof s.evaluate=="function"?{evaluate(...u){const h=s.evaluate.apply(void 0,u),d=l.evaluate.apply(void 0,u);if(h!==void 0&&d!==void 0)return c(h,d,n)}}:c(s,l,n)}function ib(t,e,r){return e.type==="color"?r=Qe.parse(r):e.type==="formatted"?r=Yr.fromString(r.toString()):e.type==="resolvedImage"?r=mi.fromString(r.toString()):kt(r)===e.type||e.type==="enum"&&e.values[r]||(r=void 0),ts(r,t.default,e.default)}class xh{constructor(e,r,i){this.expression=e,this._warningHistory={},this._evaluator=new kf(i),this._defaultValue=r?function(o){return o.type==="color"&&(_l(o.default)||Array.isArray(o.default))?new Qe(0,0,0,0):o.type==="color"?Qe.parse(o.default)||null:o.default===void 0?null:o.default}(r):null,this._enumValues=r&&r.type==="enum"?r.values:null}evaluateWithoutErrorHandling(e,r,i,o,a,n,s,l){return this._evaluator.globals=e,this._evaluator.feature=r,this._evaluator.featureState=i,this._evaluator.canonical=o||null,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=n,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=l||null,this.expression.evaluate(this._evaluator)}evaluate(e,r,i,o,a,n,s,l){this._evaluator.globals=e,this._evaluator.feature=r||null,this._evaluator.featureState=i||null,this._evaluator.canonical=o||null,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=n||null,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=l||null;try{const c=this.expression.evaluate(this._evaluator);if(c==null||typeof c=="number"&&c!=c)return this._defaultValue;if(this._enumValues&&!(c in this._enumValues))throw new Tr(`Expected value to be one of ${Object.keys(this._enumValues).map(u=>JSON.stringify(u)).join(", ")}, but found ${JSON.stringify(c)} instead.`);return c}catch(c){return this._warningHistory[c.message]||(this._warningHistory[c.message]=!0,typeof console<"u"&&console.warn(c.message)),this._defaultValue}}}function yl(t){return Array.isArray(t)&&t.length>0&&typeof t[0]=="string"&&t[0]in es}function Co(t,e,r){const i=new Vf(es,[],e?function(a){const n={color:fi,string:ft,number:ye,enum:ft,boolean:yt,formatted:Nn,resolvedImage:Vn};return a.type==="array"?Wr(n[a.value]||gt,a.length):n[a.type]}(e):void 0,void 0,void 0,r),o=i.parse(t,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return o?nm(new xh(o,e,r)):ma(i.errors)}class vh{constructor(e,r,i){this.kind=e,this._styleExpression=r,this.isLightConstant=i,this.isStateDependent=e!=="constant"&&!Jn(r.expression),this.isConfigDependent=!Yu(r.expression)}evaluateWithoutErrorHandling(e,r,i,o,a,n){return this._styleExpression.evaluateWithoutErrorHandling(e,r,i,o,a,n)}evaluate(e,r,i,o,a,n){return this._styleExpression.evaluate(e,r,i,o,a,n)}}class Io{constructor(e,r,i,o,a){this.kind=e,this.zoomStops=i,this._styleExpression=r,this.isStateDependent=e!=="camera"&&!Jn(r.expression),this.isLightConstant=a,this.isConfigDependent=!Yu(r.expression),this.interpolationType=o}evaluateWithoutErrorHandling(e,r,i,o,a,n){return this._styleExpression.evaluateWithoutErrorHandling(e,r,i,o,a,n)}evaluate(e,r,i,o,a,n){return this._styleExpression.evaluate(e,r,i,o,a,n)}interpolationFactor(e,r,i){return this.interpolationType?Gi.interpolationFactor(this.interpolationType,e,r,i):0}}function bh(t,e,r){if((t=Co(t,e,r)).result==="error")return t;const i=t.value.expression,o=Ka(i);if(!o&&!ga(e))return ma([new Ui("","data expressions not supported")]);const a=Qa(i,["zoom","pitch","distance-from-center"]);if(!a&&!_h(e))return ma([new Ui("","zoom expressions not supported")]);const n=Qa(i,["measure-light"]);if(!n&&!lm(e))return ma([new Ui("","measure-light expression not supported")]);const s=e.expression&&e.expression.relaxZoomRestriction,l=vl(i);return l||a||s?l instanceof Ui?ma([l]):l instanceof Gi&&!yh(e)?ma([new Ui("",'"interpolate" expressions cannot be used with this property')]):nm(l?new Io(o?"camera":"composite",t.value,l.labels,l instanceof Gi?l.interpolation:void 0,n):new vh(o?"constant":"source",t.value,n)):ma([new Ui("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class xl{constructor(e,r){this._parameters=e,this._specification=r,oo(this,cm(this._parameters,this._specification))}static deserialize(e){return new xl(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function vl(t){let e=null;if(t instanceof Yf)e=vl(t.result);else if(t instanceof Xf){for(const r of t.args)if(e=vl(r),e)break}else(t instanceof th||t instanceof Gi)&&t.input instanceof ji&&t.input.name==="zoom"&&(e=t);return e instanceof Ui||t.eachChild(r=>{const i=vl(r);i instanceof Ui?e=i:e&&i&&e!==i&&(e=new Ui("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}function gi(t){const e=t.key,r=t.value,i=t.valueSpec||{},o=t.objectElementValidators||{},a=t.style,n=t.styleSpec;let s=[];const l=kt(r);if(l!=="object")return[new be(e,r,`object expected, ${l} found`)];for(const c in r){const u=c.split(".")[0];let h;o[u]?h=o[u]:i[u]?h=Mr:o["*"]?h=o["*"]:i["*"]&&(h=Mr),h?s=s.concat(h({key:(e&&`${e}.`)+c,value:r[c],valueSpec:i[u]||i["*"],style:a,styleSpec:n,object:r,objectKey:c},r)):s.push(new ua(e,r[c],`unknown property "${c}"`))}for(const c in i)o[c]||i[c].required&&i[c].default===void 0&&r[c]===void 0&&s.push(new be(e,r,`missing required property "${c}"`));return s}function hm(t){const e=t.value,r=t.valueSpec,i=t.style,o=t.styleSpec,a=t.key,n=t.arrayElementValidator||Mr;if(kt(e)!=="array")return[new be(a,e,`array expected, ${kt(e)} found`)];if(r.length&&e.length!==r.length)return[new be(a,e,`array length ${r.length} expected, length ${e.length} found`)];if(r["min-length"]&&e.length<r["min-length"])return[new be(a,e,`array length at least ${r["min-length"]} expected, length ${e.length} found`)];let s={type:r.value,values:r.values,minimum:r.minimum,maximum:r.maximum,function:void 0};o.$version<7&&(s.function=r.function),kt(r.value)==="object"&&(s=r.value);let l=[];for(let c=0;c<e.length;c++)l=l.concat(n({array:e,arrayIndex:c,value:e[c],valueSpec:s,style:i,styleSpec:o,key:`${a}[${c}]`},!0));return l}function dm(t){const e=t.key,r=t.value,i=t.valueSpec;let o=kt(r);if(o==="number"&&r!=r&&(o="NaN"),o!=="number")return[new be(e,r,`number expected, ${o} found`)];if("minimum"in i){let a=i.minimum;if(kt(i.minimum)==="array"&&(a=i.minimum[t.arrayIndex]),r<a)return[new be(e,r,`${r} is less than the minimum value ${a}`)]}if("maximum"in i){let a=i.maximum;if(kt(i.maximum)==="array"&&(a=i.maximum[t.arrayIndex]),r>a)return[new be(e,r,`${r} is greater than the maximum value ${a}`)]}return[]}function pm(t){const e=t.valueSpec,r=hr(t.value.type);let i,o,a,n={};const s=r!=="categorical"&&t.value.property===void 0,l=!s,c=kt(t.value.stops)==="array"&&kt(t.value.stops[0])==="array"&&kt(t.value.stops[0][0])==="object",u=gi({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(p){if(r==="identity")return[new be(p.key,p.value,'identity function may not have a "stops" property')];let f=[];const m=p.value;return f=f.concat(hm({key:p.key,value:m,valueSpec:p.valueSpec,style:p.style,styleSpec:p.styleSpec,arrayElementValidator:h})),kt(m)==="array"&&m.length===0&&f.push(new be(p.key,m,"array must have at least one stop")),f},default:function(p){return Mr({key:p.key,value:p.value,valueSpec:e,style:p.style,styleSpec:p.styleSpec})}}});return r==="identity"&&s&&u.push(new be(t.key,t.value,'missing required property "property"')),r==="identity"||t.value.stops||u.push(new be(t.key,t.value,'missing required property "stops"')),r==="exponential"&&t.valueSpec.expression&&!yh(t.valueSpec)&&u.push(new be(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!ga(t.valueSpec)?u.push(new be(t.key,t.value,"property functions not supported")):s&&!_h(t.valueSpec)&&u.push(new be(t.key,t.value,"zoom functions not supported"))),r!=="categorical"&&!c||t.value.property!==void 0||u.push(new be(t.key,t.value,'"property" property is required')),u;function h(p){let f=[];const m=p.value,g=p.key;if(kt(m)!=="array")return[new be(g,m,`array expected, ${kt(m)} found`)];if(m.length!==2)return[new be(g,m,`array length 2 expected, length ${m.length} found`)];if(c){if(kt(m[0])!=="object")return[new be(g,m,`object expected, ${kt(m[0])} found`)];if(m[0].zoom===void 0)return[new be(g,m,"object stop key must have zoom")];if(m[0].value===void 0)return[new be(g,m,"object stop key must have value")];const _=hr(m[0].zoom);if(typeof _!="number")return[new be(g,m[0].zoom,"stop zoom values must be numbers")];if(a&&a>_)return[new be(g,m[0].zoom,"stop zoom values must appear in ascending order")];_!==a&&(a=_,o=void 0,n={}),f=f.concat(gi({key:`${g}[0]`,value:m[0],valueSpec:{zoom:{}},style:p.style,styleSpec:p.styleSpec,objectElementValidators:{zoom:dm,value:d}}))}else f=f.concat(d({key:`${g}[0]`,value:m[0],style:p.style,styleSpec:p.styleSpec},m));return yl(ao(m[1]))?f.concat([new be(`${g}[1]`,m[1],"expressions are not allowed in function stops.")]):f.concat(Mr({key:`${g}[1]`,value:m[1],valueSpec:e,style:p.style,styleSpec:p.styleSpec}))}function d(p,f){const m=kt(p.value),g=hr(p.value),_=p.value!==null?p.value:f;if(i){if(m!==i)return[new be(p.key,_,`${m} stop domain type must match previous stop domain type ${i}`)]}else i=m;if(m!=="number"&&m!=="string"&&m!=="boolean"&&typeof g!="number"&&typeof g!="string"&&typeof g!="boolean")return[new be(p.key,_,"stop domain value must be a number, string, or boolean")];if(m!=="number"&&r!=="categorical"){let y=`number expected, ${m} found`;return ga(e)&&r===void 0&&(y+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new be(p.key,_,y)]}return r!=="categorical"||m!=="number"||typeof g=="number"&&isFinite(g)&&Math.floor(g)===g?r!=="categorical"&&m==="number"&&typeof g=="number"&&typeof o=="number"&&o!==void 0&&g<o?[new be(p.key,_,"stop domain values must appear in ascending order")]:(o=g,r==="categorical"&&g in n?[new be(p.key,_,"stop domain values must be unique")]:(n[g]=!0,[])):[new be(p.key,_,`integer expected, found ${String(g)}`)]}}function _a(t){const e=(t.expressionContext==="property"?bh:Co)(ao(t.value),t.valueSpec);if(e.result==="error")return e.value.map(i=>new be(`${t.key}${i.key}`,t.value,i.message));const r=e.value.expression||e.value._styleExpression.expression;if(t.expressionContext==="property"&&t.propertyKey==="text-font"&&!r.outputDefined())return[new be(t.key,t.value,`Invalid data expression for "${t.propertyKey}". Output values must be contained as literals within the expression.`)];if(t.expressionContext==="property"&&t.propertyType==="layout"&&!Jn(r))return[new be(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if(t.expressionContext==="filter")return fm(r,t);if(t.expressionContext&&t.expressionContext.indexOf("cluster")===0){if(!Qa(r,["zoom","feature-state"]))return[new be(t.key,t.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(t.expressionContext==="cluster-initial"&&!Ka(r))return[new be(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function fm(t,e){const r=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(e.valueSpec&&e.valueSpec.expression)for(const o of e.valueSpec.expression.parameters)r.delete(o);if(r.size===0)return[];const i=[];return t instanceof ji&&r.has(t.name)?[new be(e.key,e.value,`["${t.name}"] expression is not supported in a filter for a ${e.object.type} layer with id: ${e.object.id}`)]:(t.eachChild(o=>{i.push(...fm(o,e))}),i)}function bl(t){const e=t.key,r=t.value,i=t.valueSpec,o=[];return Array.isArray(i.values)?i.values.indexOf(hr(r))===-1&&o.push(new be(e,r,`expected one of [${i.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(i.values).indexOf(hr(r))===-1&&o.push(new be(e,r,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(r)} found`)),o}function wh(t){if(t===!0||t===!1)return!0;if(!Array.isArray(t)||t.length===0)return!1;switch(t[0]){case"has":return t.length>=2&&t[1]!=="$id"&&t[1]!=="$type";case"in":return t.length>=3&&(typeof t[1]!="string"||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return t.length!==3||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(const e of t.slice(1))if(!wh(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}function wl(t,e="fill"){if(t==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};wh(t)||(t=kl(t));const r=t;let i=!0;try{i=function(c){if(!rn(c))return c;let u=ao(c);return gm(u),u=mm(u),u}(r)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
|
|
1
|
+
import{q as DE,r as Zs,b as Ba,i as PE,D as RE,c as $s,o as ko,a as fu,d as nf,t as uv,y as LE,_ as BE,E as OE,h as sv,e as hu,w as du,j as af,v as La,C as FE,F as NE,l as VE,p as UE}from"./_plugin-vue_export-helper.js";import{j as jE}from"./index.es.js";import{m as GE,S as qE,a as ZE,F as $E}from"./index.es2.js";var lv={},HE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},hv={exports:{}};(function(Ar,zt){(function(qr,Cr){Ar.exports=Cr()})(HE,function(){var qr,Cr,To;function Bi(Ee,$){if(!qr)qr=$;else if(!Cr)Cr=$;else{var Or="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+qr+")(sharedChunk); ("+Cr+")(sharedChunk); self.onerror = null;",Zr={};qr(Zr),To=$(Zr),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(To.workerUrl=window.URL.createObjectURL(new Blob([Or],{type:"text/javascript"})))}}Bi(["exports"],function(Ee){var $=typeof self<"u"?self:{},Or="3.1.2";let Zr;const Ge={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(Zr==null){const t=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{Zr=lv.API_URL_REGEX!=null?new RegExp(lv.API_URL_REGEX):t}catch{Zr=t}}return Zr},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!Ge.API_URL)return null;try{const t=new URL(Ge.API_URL);return t.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":t.hostname==="api.mapbox.com"?"https://events.mapbox.com/events/v2":null}catch{return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},Ut={supported:!1,testSupport:function(t){!Ti&&cr&&(Lr?Oi(t):Ir=t)}};let Ir,cr,Ti=!1,Lr=!1;function Oi(t){const e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,cr),t.isContextLost())return;Ut.supported=!0}catch{}t.deleteTexture(e),Ti=!0}$.document&&(cr=$.document.createElement("img"),cr.onload=function(){Ir&&Oi(Ir),Ir=null,Lr=!0},cr.onerror=function(){Ti=!0,Ir=null},cr.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const Eo="01";function hi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Hs=ra;function ra(t,e,r,i){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(i-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=e,this.p2x=r,this.p2y=i}ra.prototype={sampleCurveX:function(t){return((this.ax*t+this.bx)*t+this.cx)*t},sampleCurveY:function(t){return((this.ay*t+this.by)*t+this.cy)*t},sampleCurveDerivativeX:function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},solveCurveX:function(t,e){if(e===void 0&&(e=1e-6),t<0)return 0;if(t>1)return 1;for(var r=t,i=0;i<8;i++){var o=this.sampleCurveX(r)-t;if(Math.abs(o)<e)return r;var a=this.sampleCurveDerivativeX(r);if(Math.abs(a)<1e-6)break;r-=o/a}var n=0,s=1;for(r=t,i=0;i<20&&(o=this.sampleCurveX(r),!(Math.abs(o-t)<e));i++)t>o?n=r:s=r,r=.5*(s-n)+n;return r},solve:function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))}};var Ws=hi(Hs),Fa=Fi;function Fi(t,e){this.x=t,this.y=e}Fi.prototype={clone:function(){return new Fi(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},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(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),i=r*this.x+e*this.y;return this.x=e*this.x-r*this.y,this.y=i,this},_rotateAround:function(t,e){var r=Math.cos(t),i=Math.sin(t),o=e.y+i*(this.x-e.x)+r*(this.y-e.y);return this.x=e.x+r*(this.x-e.x)-i*(this.y-e.y),this.y=o,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Fi.convert=function(t){return t instanceof Fi?t:Array.isArray(t)?new Fi(t[0],t[1]):t};var N=hi(Fa);function dt(t,e){if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!dt(t[r],e[r]))return!1;return!0}if(typeof t=="object"&&t!==null&&e!==null){if(typeof e!="object"||Object.keys(t).length!==Object.keys(e).length)return!1;for(const r in t)if(!dt(t[r],e[r]))return!1;return!0}return t===e}const mu=Math.PI/180,ia=180/Math.PI;function He(t){return t*mu}function wr(t){return t*ia}const gu=[[0,0],[1,0],[1,1],[0,1]];function Na(t){if(t<=0)return 0;if(t>=1)return 1;const e=t*t,r=e*t;return 4*(t<.5?r:3*(t-e)+r-.75)}function _u(t){let e=1/0,r=1/0,i=-1/0,o=-1/0;for(const a of t)e=Math.min(e,a.x),r=Math.min(r,a.y),i=Math.max(i,a.x),o=Math.max(o,a.y);return{min:new N(e,r),max:new N(i,o)}}function oa(t,e,r=0,i=!0){const o=new N(r,r),a=t.sub(o),n=e.add(o),s=[a,new N(n.x,a.y),n,new N(a.x,n.y)];return i&&s.push(a.clone()),s}function aa(t,e,r,i){const o=new Ws(t,e,r,i);return function(a){return o.solve(a)}}const di=aa(.25,.1,.25,1);function Me(t,e,r){return Math.min(r,Math.max(e,t))}function Ni(t,e,r){return(r=Me((r-t)/(e-t),0,1))*r*(3-2*r)}function Vi(t,e,r){const i=r-e,o=((t-e)%i+i)%i+e;return o===e?r:o}function na(t,e,r){if(!t.length)return r(null,[]);let i=t.length;const o=new Array(t.length);let a=null;t.forEach((n,s)=>{e(n,(l,c)=>{l&&(a=l),o[s]=c,--i==0&&r(a,o)})})}function sa(t){const e=[];for(const r in t)e.push(t[r]);return e}function we(t,...e){for(const r of e)for(const i in r)t[i]=r[i];return t}function $r(t,e){const r={};for(let i=0;i<e.length;i++){const o=e[i];o in t&&(r[o]=t[o])}return r}let yu=1;function Va(){return yu++}function Xs(){return function t(e){return e?(e^Math.random()*(16>>e/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function Ys(t){return t<=1?1:Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function Js(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function mr(t,e){t.forEach(r=>{e[r]&&(e[r]=e[r].bind(e))})}function Ua(t,e){return t.indexOf(e,t.length-e.length)!==-1}function ja(t,e,r){const i={};for(const o in t)i[o]=e.call(this,t[o],o,t);return i}function le(t,e,r){const i={};for(const o in t)e.call(this,t[o],o,t)&&(i[o]=t[o]);return i}function I(t){return Array.isArray(t)?t.map(I):typeof t=="object"&&t?ja(t,I):t}const P={};function F(t){P[t]||(typeof console<"u"&&console.warn(t),P[t]=!0)}function te(t,e,r){return(r.y-t.y)*(e.x-t.x)>(e.y-t.y)*(r.x-t.x)}function ie(t){let e=0;for(let r,i,o=0,a=t.length,n=a-1;o<a;n=o++)r=t[o],i=t[n],e+=(i.x-r.x)*(r.y+i.y);return e}function ve([t,e,r]){const i=He(e+90),o=He(r);return{x:t*Math.cos(i)*Math.sin(o),y:t*Math.sin(i)*Math.sin(o),z:t*Math.cos(o),azimuthal:e,polar:r}}function Ce(t,e,r){const i=Math.sqrt(t*t+e*e+r*r),o=i>0?Math.acos(r/i)*ia:0;let a=t!==0||e!==0?Math.atan2(-e,-t)*ia+90:0;return a<0&&(a+=360),[i,a,o]}function oe(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}function Ie(t){const e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(r,i,o,a)=>{const n=o||a;return e[i]=!n||n.toLowerCase(),""}),e["max-age"]){const r=parseInt(e["max-age"],10);isNaN(r)?delete e["max-age"]:e["max-age"]=r}return e}let qe=null;function Ue(){return!!$.document.fullscreenElement||!!$.document.webkitFullscreenElement}function Pt(t){try{const e=$[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch{return!1}}function Ht(t,e){return[t[4*e],t[4*e+1],t[4*e+2],t[4*e+3]]}function kr(t,e,r){t[4*e+0]=r[0],t[4*e+1]=r[1],t[4*e+2]=r[2],t[4*e+3]=r[3]}function Wt(t,e){return[Math.pow(t[0],2.2)*e,Math.pow(t[1],2.2)*e,Math.pow(t[2],2.2)*e]}function tr(t){return[Math.pow(t[0],1/2.2),Math.pow(t[1],1/2.2),Math.pow(t[2],1/2.2)]}const Bt="mapbox-tiles";let zr=500,Fr=50,Nr,Ei;function Ga(){try{return $.caches}catch{}}function Hr(){Ga()&&!Nr&&(Nr=$.caches.open(Bt))}function ro(t){const e=t.indexOf("?");if(e<0)return t;const r=function(o){const a=o.indexOf("?");return a>0?o.slice(a+1).split("&"):[]}(t),i=r.filter(o=>{const a=o.split("=");return a[0]==="language"||a[0]==="worldview"});return i.length?`${t.slice(0,e)}?${i.join("&")}`:t.slice(0,e)}let Mo=1/0;function qa(t){Mo++,Mo>Fr&&(t.getActor().send("enforceCacheSizeLimit",zr),Mo=0)}const J={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image",Model:"Model"};typeof Object.freeze=="function"&&Object.freeze(J);class Q extends Error{constructor(e,r,i){r===401&&Xt(i)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=r,this.url=i}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const ne=oe()?()=>self.worker&&self.worker.referrer:()=>($.location.protocol==="blob:"?$.parent:$).location.href,ce=function(t,e){if(!(/^file:/.test(r=t.url)||/^file:/.test(ne())&&!/^\w+:/.test(r))){if($.fetch&&$.Request&&$.AbortController&&$.Request.prototype.hasOwnProperty("signal"))return function(i,o){const a=new $.AbortController,n=new $.Request(i.url,{method:i.method||"GET",body:i.body,credentials:i.credentials,headers:i.headers,referrer:ne(),referrerPolicy:i.referrerPolicy,signal:a.signal});let s=!1,l=!1;const c=(u=n.url).indexOf("sku=")>0&&Xt(u);var u;i.type==="json"&&n.headers.set("Accept","application/json");const h=(p,f,m)=>{if(l)return;if(p&&p.message!=="SecurityError"&&F(p.toString()),f&&m)return d(f);const g=Date.now();$.fetch(n).then(_=>{if(_.ok){const y=c?_.clone():null;return d(_,y,g)}return o(new Q(_.statusText,_.status,i.url))}).catch(_=>{_.name!=="AbortError"&&o(new Error(`${_.message} ${i.url}`))})},d=(p,f,m)=>{(i.type==="arrayBuffer"?p.arrayBuffer():i.type==="json"?p.json():p.text()).then(g=>{l||(f&&m&&function(_,y,v){if(Hr(),!Nr)return;const b={status:y.status,statusText:y.statusText,headers:new $.Headers};y.headers.forEach((k,T)=>b.headers.set(T,k));const x=Ie(y.headers.get("Cache-Control")||"");if(x["no-store"])return;x["max-age"]&&b.headers.set("Expires",new Date(v+1e3*x["max-age"]).toUTCString());const w=b.headers.get("Expires");w&&(new Date(w).getTime()-v<42e4||function(k,T){if(Ei===void 0)try{new Response(new ReadableStream),Ei=!0}catch{Ei=!1}Ei?T(k.body):k.blob().then(T)}(y,k=>{const T=new $.Response(k,b);Hr(),Nr&&Nr.then(E=>E.put(ro(_.url),T)).catch(E=>F(E.message))}))}(n,f,m),s=!0,o(null,g,p.headers.get("Cache-Control"),p.headers.get("Expires")))}).catch(g=>{l||o(new Error(g.message))})};return c?function(p,f){if(Hr(),!Nr)return f(null);const m=ro(p.url);Nr.then(g=>{g.match(m).then(_=>{const y=function(v){if(!v)return!1;const b=new Date(v.headers.get("Expires")||0),x=Ie(v.headers.get("Cache-Control")||"");return b>Date.now()&&!x["no-cache"]}(_);g.delete(m),y&&g.put(m,_.clone()),f(null,_,y)}).catch(f)}).catch(f)}(n,h):h(null,null),{cancel:()=>{l=!0,s||a.abort()}}}(t,e);if(oe()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e,void 0,!0)}var r;return function(i,o){const a=new $.XMLHttpRequest;a.open(i.method||"GET",i.url,!0),i.type==="arrayBuffer"&&(a.responseType="arraybuffer");for(const n in i.headers)a.setRequestHeader(n,i.headers[n]);return i.type==="json"&&(a.responseType="text",a.setRequestHeader("Accept","application/json")),a.withCredentials=i.credentials==="include",a.onerror=()=>{o(new Error(a.statusText))},a.onload=()=>{if((a.status>=200&&a.status<300||a.status===0)&&a.response!==null){let n=a.response;if(i.type==="json")try{n=JSON.parse(a.response)}catch(s){return o(s)}o(null,n,a.getResponseHeader("Cache-Control"),a.getResponseHeader("Expires"))}else o(new Q(a.statusText,a.status,i.url))},a.send(i.body),{cancel:()=>a.abort()}}(t,e)},ue=function(t,e){return ce(we(t,{type:"json"}),e)},fe=function(t,e){return ce(we(t,{type:"arrayBuffer"}),e)};function ge(t){const e=$.document.createElement("a");return e.href=t,e.protocol===$.document.location.protocol&&e.host===$.document.location.host}const he="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Te,me;Te=[],me=0;const Je=function(t,e){if(Ut.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),me>=Ge.MAX_PARALLEL_IMAGE_REQUESTS){const a={requestParameters:t,callback:e,cancelled:!1,cancel(){this.cancelled=!0}};return Te.push(a),a}me++;let r=!1;const i=()=>{if(!r)for(r=!0,me--;Te.length&&me<Ge.MAX_PARALLEL_IMAGE_REQUESTS;){const a=Te.shift(),{requestParameters:n,callback:s,cancelled:l}=a;l||(a.cancel=Je(n,s).cancel)}},o=fe(t,(a,n,s,l)=>{i(),a?e(a):n&&($.createImageBitmap?function(c,u){const h=new $.Blob([new Uint8Array(c)],{type:"image/png"});$.createImageBitmap(h).then(d=>{u(null,d)}).catch(d=>{u(new Error(`Could not load image because of ${d.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(n,(c,u)=>e(c,u,s,l)):function(c,u){const h=new $.Image,d=$.URL;h.onload=()=>{u(null,h),d.revokeObjectURL(h.src),h.onload=null,$.requestAnimationFrame(()=>{h.src=he})},h.onerror=()=>u(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const p=new $.Blob([new Uint8Array(c)],{type:"image/png"});h.src=c.byteLength?d.createObjectURL(p):he}(n,(c,u)=>e(c,u,s,l)))});return{cancel:()=>{o.cancel(),i()}}},St="NO_ACCESS_TOKEN";class Pe{constructor(e,r,i){this._transformRequestFn=e,this._customAccessToken=r,this._silenceAuthErrors=!!i,this._createSkuToken()}_createSkuToken(){const e=function(){let r="";for(let i=0;i<10;i++)r+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",Eo,r].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(e,r){return this._transformRequestFn&&this._transformRequestFn(e,r)||{url:e}}normalizeStyleURL(e,r){if(!wt(e))return e;const i=gr(e);return i.params.push(`sdk=js-${Or}`),i.path=`/styles/v1${i.path}`,this._makeAPIURL(i,this._customAccessToken||r)}normalizeGlyphsURL(e,r){if(!wt(e))return e;const i=gr(e);return i.path=`/fonts/v1${i.path}`,this._makeAPIURL(i,this._customAccessToken||r)}normalizeModelURL(e,r){if(!wt(e))return e;const i=gr(e);return i.path=`/models/v1${i.path}`,this._makeAPIURL(i,this._customAccessToken||r)}normalizeSourceURL(e,r,i,o){if(!wt(e))return e;const a=gr(e);return a.path=`/v4/${a.authority}.json`,a.params.push("secure"),i&&a.params.push(`language=${i}`),o&&a.params.push(`worldview=${o}`),this._makeAPIURL(a,this._customAccessToken||r)}normalizeSpriteURL(e,r,i,o){const a=gr(e);return wt(e)?(a.path=`/styles/v1${a.path}/sprite${r}${i}`,this._makeAPIURL(a,this._customAccessToken||o)):(a.path+=`${r}${i}`,Vr(a))}normalizeTileURL(e,r,i){if(this._isSkuTokenExpired()&&this._createSkuToken(),e&&!wt(e))return e;const o=gr(e);o.path=o.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${r||i&&o.authority!=="raster"&&i===512?"@2x":""}${Ut.supported?".webp":"$1"}`),o.authority==="raster"?o.path=`/${Ge.RASTER_URL_PREFIX}${o.path}`:(o.path=o.path.replace(/^.+\/v4\//,"/"),o.path=`/${Ge.TILE_URL_VERSION}${o.path}`);const a=this._customAccessToken||function(n){for(const s of n){const l=s.match(/^access_token=(.*)$/);if(l)return l[1]}return null}(o.params)||Ge.ACCESS_TOKEN;return Ge.REQUIRE_ACCESS_TOKEN&&a&&this._skuToken&&o.params.push(`sku=${this._skuToken}`),this._makeAPIURL(o,a)}canonicalizeTileURL(e,r){const i=gr(e);if(!i.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!i.path.match(/\.[\w]+$/))return e;let o="mapbox://";i.path.match(/^\/raster\/v1\//)?o+=`raster/${i.path.replace(`/${Ge.RASTER_URL_PREFIX}/`,"")}`:o+=`tiles/${i.path.replace(`/${Ge.TILE_URL_VERSION}/`,"")}`;let a=i.params;return r&&(a=a.filter(n=>!n.match(/^access_token=/))),a.length&&(o+=`?${a.join("&")}`),o}canonicalizeTileset(e,r){const i=!!r&&wt(r),o=[];for(const a of e.tiles||[])Xt(a)?o.push(this.canonicalizeTileURL(a,i)):o.push(a);return o}_makeAPIURL(e,r){const i="See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes",o=gr(Ge.API_URL);if(e.protocol=o.protocol,e.authority=o.authority,e.protocol==="http"){const a=e.params.indexOf("secure");a>=0&&e.params.splice(a,1)}if(o.path!=="/"&&(e.path=`${o.path}${e.path}`),!Ge.REQUIRE_ACCESS_TOKEN)return Vr(e);if(r=r||Ge.ACCESS_TOKEN,!this._silenceAuthErrors){if(!r)throw new Error(`An API access token is required to use Mapbox GL. ${i}`);if(r[0]==="s")throw new Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${i}`)}return e.params=e.params.filter(a=>a.indexOf("access_token")===-1),e.params.push(`access_token=${r||""}`),Vr(e)}}function wt(t){return t.indexOf("mapbox:")===0}function Xt(t){return Ge.API_URL_REGEX.test(t)}function rr(t){return Ge.API_CDN_URL_REGEX.test(t)}function ur(t){return Ge.API_STYLE_REGEX.test(t)&&!Dr(t)}function Dr(t){return Ge.API_SPRITE_REGEX.test(t)}const pi=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function gr(t){const e=t.match(pi);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function Vr(t){const e=t.params.length?`?${t.params.join("&")}`:"";return`${t.protocol}://${t.authority}${t.path}${e}`}const Pr="mapbox.eventData";function Za(t){if(!t)return null;const e=t.split(".");if(!e||e.length!==3)return null;try{return JSON.parse(decodeURIComponent($.atob(e[1]).split("").map(r=>"%"+("00"+r.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch{return null}}class So{constructor(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(e){const r=Za(Ge.ACCESS_TOKEN);let i="";return i=r&&r.u?$.btoa(encodeURIComponent(r.u).replace(/%([0-9A-F]{2})/g,(o,a)=>String.fromCharCode(+("0x"+a)))):Ge.ACCESS_TOKEN||"",e?`${Pr}.${e}:${i}`:`${Pr}:${i}`}fetchEventData(){const e=Pt("localStorage"),r=this.getStorageKey(),i=this.getStorageKey("uuid");if(e)try{const o=$.localStorage.getItem(r);o&&(this.eventData=JSON.parse(o));const a=$.localStorage.getItem(i);a&&(this.anonId=a)}catch{F("Unable to read from LocalStorage")}}saveEventData(){const e=Pt("localStorage"),r=this.getStorageKey(),i=this.getStorageKey("uuid");if(e)try{$.localStorage.setItem(i,this.anonId),Object.keys(this.eventData).length>=1&&$.localStorage.setItem(r,JSON.stringify(this.eventData))}catch{F("Unable to write to LocalStorage")}}processRequests(e){}postEvent(e,r,i,o){if(!Ge.EVENTS_URL)return;const a=gr(Ge.EVENTS_URL);a.params.push(`access_token=${o||Ge.ACCESS_TOKEN||""}`);const n={event:this.type,created:new Date(e).toISOString()},s=r?we(n,r):n,l={url:Vr(a),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=function(c,u){return ce(we(c,{method:"POST"}),u)}(l,c=>{this.pendingRequest=null,i(c),this.saveEventData(),this.processRequests(o)})}queueRequest(e,r){this.queue.push(e),this.processRequests(r)}}const $a=new class extends So{constructor(t){super("appUserTurnstile"),this._customAccessToken=t}postTurnstileEvent(t,e){Ge.EVENTS_URL&&Ge.ACCESS_TOKEN&&Array.isArray(t)&&t.some(r=>wt(r)||Xt(r))&&this.queueRequest(Date.now(),e)}processRequests(t){if(this.pendingRequest||this.queue.length===0)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const e=Za(Ge.ACCESS_TOKEN),r=e?e.u:Ge.ACCESS_TOKEN;let i=r!==this.eventData.tokenU;Js(this.anonId)||(this.anonId=Xs(),i=!0);const o=this.queue.shift();if(this.eventData.lastSuccess){const a=new Date(this.eventData.lastSuccess),n=new Date(o),s=(o-this.eventData.lastSuccess)/864e5;i=i||s>=1||s<-1||a.getDate()!==n.getDate()}else i=!0;i?this.postEvent(o,{sdkIdentifier:"mapbox-gl-js",sdkVersion:Or,skuId:Eo,"enabled.telemetry":!1,userId:this.anonId},a=>{a||(this.eventData.lastSuccess=o,this.eventData.tokenU=r)},t):this.processRequests()}},xu=$a.postTurnstileEvent.bind($a),sf=new class extends So{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(t,e,r,i){this.skuToken=e,this.errorCb=i,Ge.EVENTS_URL&&(r||Ge.ACCESS_TOKEN?this.queueRequest({id:t,timestamp:Date.now()},r):this.errorCb(new Error(St)))}processRequests(t){if(this.pendingRequest||this.queue.length===0)return;const{id:e,timestamp:r}=this.queue.shift();e&&this.success[e]||(this.anonId||this.fetchEventData(),Js(this.anonId)||(this.anonId=Xs()),this.postEvent(r,{sdkIdentifier:"mapbox-gl-js",sdkVersion:Or,skuId:Eo,skuToken:this.skuToken,userId:this.anonId},i=>{i?this.errorCb(i):e&&(this.success[e]=!0)},t))}},pv=sf.postMapLoadEvent.bind(sf),lf=new class extends So{constructor(){super("gljs.performance")}postPerformanceEvent(t,e){Ge.EVENTS_URL&&(t||Ge.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:e},t)}processRequests(t){if(this.pendingRequest||this.queue.length===0)return;const{timestamp:e,performanceData:r}=this.queue.shift(),i=function(o){const a=$.performance.getEntriesByType("resource"),n=$.performance.getEntriesByType("mark"),s=function(d){const p={};if(d){for(const f in d)if(f!=="other")for(const m of d[f]){const g=`${f}ResolveRangeMin`,_=`${f}ResolveRangeMax`,y=`${f}RequestCount`,v=`${f}RequestCachedCount`;p[g]=Math.min(p[g]||1/0,m.startTime),p[_]=Math.max(p[_]||-1/0,m.responseEnd);const b=x=>{p[x]===void 0&&(p[x]=0),++p[x]};m.transferSize!==void 0&&m.transferSize===0&&b(v),b(y)}}return p}(function(d,p){const f={};if(d)for(const m of d){const g=p(m);f[g]===void 0&&(f[g]=[]),f[g].push(m)}return f}(a,gv)),l=$.devicePixelRatio,c=$.navigator.connection||$.navigator.mozConnection||$.navigator.webkitConnection,u={counters:[],metadata:[],attributes:[]},h=(d,p,f)=>{f!=null&&d.push({name:p,value:f.toString()})};for(const d in s)h(u.counters,d,s[d]);if(o.interactionRange[0]!==1/0&&o.interactionRange[1]!==-1/0&&(h(u.counters,"interactionRangeMin",o.interactionRange[0]),h(u.counters,"interactionRangeMax",o.interactionRange[1])),n)for(const d of Object.keys(Qs)){const p=Qs[d],f=n.find(m=>m.name===p);f&&h(u.counters,p,f.startTime)}return h(u.counters,"visibilityHidden",o.visibilityHidden),h(u.attributes,"style",function(d){if(d)for(const p of d){const f=p.name.split("?")[0];if(ur(f)){const m=f.split("/").slice(-2);if(m.length===2)return`mapbox://styles/${m[0]}/${m[1]}`}}}(a)),h(u.attributes,"terrainEnabled",o.terrainEnabled?"true":"false"),h(u.attributes,"fogEnabled",o.fogEnabled?"true":"false"),h(u.attributes,"projection",o.projection),h(u.attributes,"zoom",o.zoom),h(u.metadata,"devicePixelRatio",l),h(u.metadata,"connectionEffectiveType",c?c.effectiveType:void 0),h(u.metadata,"navigatorUserAgent",$.navigator.userAgent),h(u.metadata,"screenWidth",$.screen.width),h(u.metadata,"screenHeight",$.screen.height),h(u.metadata,"windowWidth",$.innerWidth),h(u.metadata,"windowHeight",$.innerHeight),h(u.metadata,"mapWidth",o.width/l),h(u.metadata,"mapHeight",o.height/l),h(u.metadata,"webglRenderer",o.renderer),h(u.metadata,"webglVendor",o.vendor),h(u.metadata,"sdkVersion",Or),h(u.metadata,"sdkIdentifier","mapbox-gl-js"),u}(r);for(const o of i.metadata);for(const o of i.counters);for(const o of i.attributes);this.postEvent(e,i,()=>{},t)}},fv=lf.postPerformanceEvent.bind(lf),cf=new class extends So{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(t,e,r,i){if(!Ge.API_URL||!Ge.SESSION_PATH)return;const o=gr(Ge.API_URL+Ge.SESSION_PATH);o.params.push(`sku=${e||""}`),o.params.push(`access_token=${i||Ge.ACCESS_TOKEN||""}`);const a={url:Vr(o),headers:{"Content-Type":"text/plain"}};this.pendingRequest=function(n,s){return ce(we(n,{method:"GET"}),s)}(a,n=>{this.pendingRequest=null,r(n),this.saveEventData(),this.processRequests(i)})}getSessionAPI(t,e,r,i){this.skuToken=e,this.errorCb=i,Ge.SESSION_PATH&&Ge.API_URL&&(r||Ge.ACCESS_TOKEN?this.queueRequest({id:t,timestamp:Date.now()},r):this.errorCb(new Error(St)))}processRequests(t){if(this.pendingRequest||this.queue.length===0)return;const{id:e,timestamp:r}=this.queue.shift();e&&this.success[e]||this.getSession(r,this.skuToken,i=>{i?this.errorCb(i):e&&(this.success[e]=!0)},t)}},mv=cf.getSessionAPI.bind(cf),Ks=new Set;function uf(t,e){e?Ks.add(t):Ks.delete(t)}const Qs={create:"create",load:"load",fullLoad:"fullLoad"},hf={mark(t){$.performance.mark(t)},measure(t,e,r){$.performance.measure(t,e,r)}};function gv(t){const e=t.name.split("?")[0];return rr(e)&&e.includes("mapbox-gl.js")?"javascript":rr(e)&&e.includes("mapbox-gl.css")?"css":function(r){return Ge.API_FONTS_REGEX.test(r)}(e)?"fontRange":Dr(e)?"sprite":ur(e)?"style":function(r){return Ge.API_TILEJSON_REGEX.test(r)}(e)?"tilejson":"other"}const _v=$.performance;function df(t){const e=t?t.url.toString():void 0;return _v.getEntriesByName(e)}var pf=vu;function vu(t){return!function(e){return typeof window>"u"||typeof document>"u"?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var i,o,a=new Blob([""],{type:"text/javascript"}),n=URL.createObjectURL(a);try{o=new Worker(n),i=!0}catch{i=!1}return o&&o.terminate(),URL.revokeObjectURL(n),i}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var i=document.createElement("canvas");i.width=i.height=1;var o=i.getContext("2d");if(!o)return!1;var a=o.getImageData(0,0,1,1);return a&&a.width===i.width}()?(bu[r=e&&e.failIfMajorPerformanceCaveat]===void 0&&(bu[r]=function(i){var o,a=function(n){var s=document.createElement("canvas"),l=Object.create(vu.webGLContextAttributes);return l.failIfMajorPerformanceCaveat=n,s.getContext("webgl",l)||s.getContext("experimental-webgl",l)}(i);if(!a)return!1;try{o=a.createShader(a.VERTEX_SHADER)}catch{return!1}return!(!o||a.isContextLost())&&(a.shaderSource(o,"void main() {}"),a.compileShader(o),a.getShaderParameter(o,a.COMPILE_STATUS)===!0)}(r)),bu[r]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var r}(t)}var bu={};let wu,el,ku,tl,la;function ff(){return wu==null&&(wu=$.OffscreenCanvas&&new $.OffscreenCanvas(1,1).getContext("2d")&&typeof $.createImageBitmap=="function"),wu}vu.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};const je={now:()=>tl!==void 0?tl:$.performance.now(),setNow(t){tl=t},restoreNow(){tl=void 0},frame(t){const e=$.requestAnimationFrame(t);return{cancel:()=>$.cancelAnimationFrame(e)}},getImageData(t,e=0){const{width:r,height:i}=t;la||(la=$.document.createElement("canvas"));const o=la.getContext("2d",{willReadFrequently:!0});if(!o)throw new Error("failed to create canvas 2d context");return(r>la.width||i>la.height)&&(la.width=r,la.height=i),o.clearRect(-e,-e,r+2*e,i+2*e),o.drawImage(t,0,0,r,i),o.getImageData(-e,-e,r+2*e,i+2*e)},resolveURL:t=>(el||(el=$.document.createElement("a")),el.href=t,el.href),get devicePixelRatio(){return $.devicePixelRatio},get prefersReducedMotion(){return!!$.matchMedia&&(ku==null&&(ku=$.matchMedia("(prefers-reduced-motion: reduce)")),ku.matches)},hasCanvasFingerprintNoise(){if(!ff())return!1;const t=new $.OffscreenCanvas(85,1),e=t.getContext("2d",{willReadFrequently:!0});let r=0;for(let o=0;o<t.width;++o)e.fillStyle=`rgba(${r++},${r++},${r++}, 255)`,e.fillRect(o,0,1,1);const i=e.getImageData(0,0,t.width,t.height);r=0;for(let o=0;o<i.data.length;++o)if(o%4!=3&&r++!==i.data[o])return!0;return!1}};function Dt(t,e,r){const i=$.document.createElement(t);return e!==void 0&&(i.className=e),r&&r.appendChild(i),i}function io(t,e,r){const i=$.document.createElementNS("http://www.w3.org/2000/svg",t);for(const o of Object.keys(e))i.setAttributeNS(null,o,e[o]);return r&&r.appendChild(i),i}const ca=$.document&&$.document.documentElement.style,On=ca&&ca.userSelect!==void 0?"userSelect":"WebkitUserSelect";let mf;function gf(){ca&&On&&(mf=ca[On],ca[On]="none")}function _f(){ca&&On&&(ca[On]=mf)}function Tu(t){t.preventDefault(),t.stopPropagation(),$.removeEventListener("click",Tu,!0)}function Eu(){$.addEventListener("click",Tu,!0),$.setTimeout(()=>{$.removeEventListener("click",Tu,!0)},0)}function Fn(t,e){const r=t.getBoundingClientRect();return xf(t,r,e)}function rl(t,e){const r=t.getBoundingClientRect(),i=[];for(let o=0;o<e.length;o++)i.push(xf(t,r,e[o]));return i}function yf(t){return $.InstallTrigger!==void 0&&t.button===2&&t.ctrlKey&&$.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:t.button}function xf(t,e,r){const i=t.offsetWidth===e.width?1:t.offsetWidth/e.width;return new N((r.clientX-e.left)*i,(r.clientY-e.top)*i)}function vf(t,e,r){r[t]&&r[t].indexOf(e)!==-1||(r[t]=r[t]||[],r[t].push(e))}function Mu(t,e,r){if(r&&r[t]){const i=r[t].indexOf(e);i!==-1&&r[t].splice(i,1)}}class se{constructor(e,r={}){we(this,r),this.type=e}}class Ve extends se{constructor(e,r={}){super("error",we({error:e},r))}}class ar{on(e,r){return this._listeners=this._listeners||{},vf(e,r,this._listeners),this}off(e,r){return Mu(e,r,this._listeners),Mu(e,r,this._oneTimeListeners),this}once(e,r){return r?(this._oneTimeListeners=this._oneTimeListeners||{},vf(e,r,this._oneTimeListeners),this):new Promise(i=>this.once(e,i))}fire(e,r){typeof e=="string"&&(e=new se(e,r||{}));const i=e.type;if(this.listens(i)){e.target=this;const o=this._listeners&&this._listeners[i]?this._listeners[i].slice():[];for(const s of o)s.call(this,e);const a=this._oneTimeListeners&&this._oneTimeListeners[i]?this._oneTimeListeners[i].slice():[];for(const s of a)Mu(i,s,this._oneTimeListeners),s.call(this,e);const n=this._eventedParent;n&&(we(e,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),n.fire(e))}else e instanceof Ve&&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 j=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"required":false,"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"camera":{"type":"camera"},"imports":{"type":"array","value":"import"},"schema":{"type":"schema"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"},"models":{"type":"models"}},"model":{"type":"string","required":true},"import":{"id":{"type":"string","required":true},"url":{"type":"string","required":true},"config":{"type":"config"},"data":{"type":"$root"}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","required":true},"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1}},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"values":{"type":"array","value":"*"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}},"light-3d":{"id":{"type":"string","required":true},"properties":{"type":"properties"},"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false,"expression":{},"property-type":"data-constant"},"shadow-intensity":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_ambient":{"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_raster_array","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":1}},"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":1,"tms":1},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":1}},"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},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":1}},"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},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":1,"mapbox":1},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_array":{"type":{"required":true,"type":"enum","values":{"raster-array":1}},"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},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":1}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":1}},"url":{"required":false,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_model":{"type":{"required":true,"type":"enum","values":{"model":1,"batched-model":1}},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"hillshade":{},"model":{},"background":{},"sky":{},"slot":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"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_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":1,"round":1,"square":1},"default":"butt","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":1,"round":1,"miter":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":1,"viewport-y":1,"source":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":1,"width":1,"height":1,"both":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":1,"left":1,"center":1,"right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":1,"uppercase":1,"lowercase":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"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":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective","property-type":"data-constant"}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"property-type":"data-constant","type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"property-type":"data-constant","type":"color","default":"#ffffff","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"property-type":"data-constant","type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"property-type":"data-constant","type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"property-type":"data-constant","type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"property-type":"data-constant","type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"property-type":"constant"},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-border-width":{"type":"number","private":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","private":true,"default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-image-cross-fade":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"transition":true},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-color-saturation":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-value"]},"property-type":"color-ramp"},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","default":[0,1],"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"raster-array-band":{"type":"string","required":false,"property-type":"data-constant"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d","property-type":"data-constant"},"model-cast-shadows":{"type":"boolean","default":true,"expression":{},"property-type":"data-constant"},"model-receive-shadows":{"type":"boolean","default":true,"expression":{},"property-type":"data-constant"},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant","transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');class be{constructor(e,r,i,o){this.message=(e?`${e}: `:"")+i,o&&(this.identifier=o),r!=null&&r.__line__&&(this.line=r.__line__)}}class ua extends be{}function oo(t,...e){for(const r of e)for(const i in r)t[i]=r[i];return t}function hr(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function ao(t){if(Array.isArray(t))return t.map(ao);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){const e={};for(const r in t)e[r]=ao(t[r]);return e}return hr(t)}class yv extends Error{constructor(e,r){super(r),this.message=r,this.key=e}}var Ui=yv;class Su{constructor(e,r=[]){this.parent=e,this.bindings={};for(const[i,o]of r)this.bindings[i]=o}concat(e){return new Su(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)}}var xv=Su;const Ha={kind:"null"},ye={kind:"number"},ft={kind:"string"},yt={kind:"boolean"},fi={kind:"color"},Wa={kind:"object"},gt={kind:"value"},il={kind:"collator"},Nn={kind:"formatted"},Vn={kind:"resolvedImage"};function Wr(t,e){return{kind:"array",itemType:t,N:e}}function nr(t){if(t.kind==="array"){const e=nr(t.itemType);return typeof t.N=="number"?`array<${e}, ${t.N}>`:t.itemType.kind==="value"?"array":`array<${e}>`}return t.kind}const vv=[Ha,ye,ft,yt,fi,Nn,Wa,Wr(gt),Vn];function Un(t,e){if(e.kind==="error")return null;if(t.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!Un(t.itemType,e.itemType))&&(typeof t.N!="number"||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(t.kind==="value"){for(const r of vv)if(!Un(r,e))return null}}return`Expected ${nr(t)} but found ${nr(e)} instead.`}function Au(t,e){return e.some(r=>r.kind===t.kind)}function jn(t,e){return e.some(r=>r==="null"?t===null:r==="array"?Array.isArray(t):r==="object"?t&&!Array.isArray(t)&&typeof t=="object":r===typeof t)}var Cu,bf={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function ol(t){return(t=Math.round(t))<0?0:t>255?255:t}function Iu(t){return ol(t[t.length-1]==="%"?parseFloat(t)/100*255:parseInt(t))}function al(t){return(e=t[t.length-1]==="%"?parseFloat(t)/100:parseFloat(t))<0?0:e>1?1:e;var e}function zu(t,e,r){return r<0?r+=1:r>1&&(r-=1),6*r<1?t+(e-t)*r*6:2*r<1?e:3*r<2?t+(e-t)*(2/3-r)*6:t}try{Cu={}.parseCSSColor=function(t){var e,r=t.replace(/ /g,"").toLowerCase();if(r in bf)return bf[r].slice();if(r[0]==="#")return r.length===4?(e=parseInt(r.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:r.length===7&&(e=parseInt(r.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var i=r.indexOf("("),o=r.indexOf(")");if(i!==-1&&o+1===r.length){var a=r.substr(0,i),n=r.substr(i+1,o-(i+1)).split(","),s=1;switch(a){case"rgba":if(n.length!==4)return null;s=al(n.pop());case"rgb":return n.length!==3?null:[Iu(n[0]),Iu(n[1]),Iu(n[2]),s];case"hsla":if(n.length!==4)return null;s=al(n.pop());case"hsl":if(n.length!==3)return null;var l=(parseFloat(n[0])%360+360)%360/360,c=al(n[1]),u=al(n[2]),h=u<=.5?u*(c+1):u+c-u*c,d=2*u-h;return[ol(255*zu(d,h,l+1/3)),ol(255*zu(d,h,l)),ol(255*zu(d,h,l-1/3)),s];default:return null}}return null}}catch{}class Xr{constructor(e,r,i,o=1){this.r=e,this.g=r,this.b=i,this.a=o}static parse(e){if(!e)return;if(e instanceof Xr)return e;if(typeof e!="string")return;const r=Cu(e);return r?new Xr(r[0]/255*r[3],r[1]/255*r[3],r[2]/255*r[3],r[3]):void 0}toString(){const[e,r,i,o]=this.toArray();return`rgba(${Math.round(e)},${Math.round(r)},${Math.round(i)},${o})`}toArray(){const{r:e,g:r,b:i,a:o}=this;return o===0?[0,0,0,0]:[255*e/o,255*r/o,255*i/o,o]}toArray01(){const{r:e,g:r,b:i,a:o}=this;return o===0?[0,0,0,0]:[e/o,r/o,i/o,o]}toArray01Scaled(e){const{r,g:i,b:o,a}=this;return a===0?[0,0,0]:[r/a*e,i/a*e,o/a*e]}toArray01PremultipliedAlpha(){const{r:e,g:r,b:i,a:o}=this;return[e,r,i,o]}toArray01Linear(){const{r:e,g:r,b:i,a:o}=this;return o===0?[0,0,0,0]:[Math.pow(e/o,2.2),Math.pow(r/o,2.2),Math.pow(i/o,2.2),o]}}Xr.black=new Xr(0,0,0,1),Xr.white=new Xr(1,1,1,1),Xr.transparent=new Xr(0,0,0,0),Xr.red=new Xr(1,0,0,1),Xr.blue=new Xr(0,0,1,1);var Qe=Xr;class Du{constructor(e,r,i){this.sensitivity=e?r?"variant":"case":r?"accent":"base",this.locale=i,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 Pu{constructor(e,r,i,o,a){this.text=e.normalize?e.normalize():e,this.image=r,this.scale=i,this.fontStack=o,this.textColor=a}}class Yr{constructor(e){this.sections=e}static fromString(e){return new Yr([new Pu(e,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||e.image&&e.image.namePrimary.length!==0)}static factory(e){return e instanceof Yr?e:Yr.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const r of this.sections){if(r.image){e.push(["image",r.image.namePrimary]);continue}e.push(r.text);const i={};r.fontStack&&(i["text-font"]=["literal",r.fontStack.split(",")]),r.scale&&(i["font-scale"]=r.scale),r.textColor&&(i["text-color"]=["rgba"].concat(r.textColor.toArray())),e.push(i)}return e}}class mi{constructor(e){this.namePrimary=e.namePrimary,e.nameSecondary&&(this.nameSecondary=e.nameSecondary),this.available=e.available}toString(){return this.nameSecondary?`[${this.namePrimary},${this.nameSecondary}]`:this.namePrimary}static fromString(e,r){return e?new mi({namePrimary:e,nameSecondary:r,available:!1}):null}serialize(){return this.nameSecondary?["image",this.namePrimary,this.nameSecondary]:["image",this.namePrimary]}}function wf(t,e,r,i){return typeof t=="number"&&t>=0&&t<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof r=="number"&&r>=0&&r<=255?i===void 0||typeof i=="number"&&i>=0&&i<=1?null:`Invalid rgba value [${[t,e,r,i].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof i=="number"?[t,e,r,i]:[t,e,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Xa(t){if(t===null||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||t instanceof Qe||t instanceof Du||t instanceof Yr||t instanceof mi)return!0;if(Array.isArray(t)){for(const e of t)if(!Xa(e))return!1;return!0}if(typeof t=="object"){for(const e in t)if(!Xa(t[e]))return!1;return!0}return!1}function _r(t){if(t===null)return Ha;if(typeof t=="string")return ft;if(typeof t=="boolean")return yt;if(typeof t=="number")return ye;if(t instanceof Qe)return fi;if(t instanceof Du)return il;if(t instanceof Yr)return Nn;if(t instanceof mi)return Vn;if(Array.isArray(t)){const e=t.length;let r;for(const i of t){const o=_r(i);if(r){if(r===o)continue;r=gt;break}r=o}return Wr(r||gt,e)}return Wa}function Gn(t){const e=typeof t;return t===null?"":e==="string"||e==="number"||e==="boolean"?String(t):t instanceof Qe||t instanceof Yr||t instanceof mi?t.toString():JSON.stringify(t)}class Ru{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(!Xa(e[1]))return r.error("invalid value");const i=e[1];let o=_r(i);const a=r.expectedType;return o.kind!=="array"||o.N!==0||!a||a.kind!=="array"||typeof a.N=="number"&&a.N!==0||(o=a),new Ru(o,i)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof Qe?["rgba"].concat(this.value.toArray()):this.value instanceof Yr?this.value.serialize():this.value}}var qn=Ru,Tr=class{constructor(t){this.name="ExpressionEvaluationError",this.message=t}toJSON(){return this.message}};const Lu={string:ft,number:ye,boolean:yt,object:Wa};class Bu{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 i,o=1;const a=e[0];if(a==="array"){let s,l;if(e.length>2){const c=e[1];if(typeof c!="string"||!(c in Lu)||c==="object")return r.error('The item type argument of "array" must be one of string, number, boolean',1);s=Lu[c],o++}else s=gt;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);l=e[2],o++}i=Wr(s,l)}else i=Lu[a];const n=[];for(;o<e.length;o++){const s=r.parse(e[o],o,gt);if(!s)return null;n.push(s)}return new Bu(i,n)}evaluate(e){for(let r=0;r<this.args.length;r++){const i=this.args[r].evaluate(e);if(!Un(this.type,_r(i)))return i;if(r===this.args.length-1)throw new Tr(`Expected value to be of type ${nr(this.type)}, but found ${nr(_r(i))} instead.`)}return null}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=this.type,r=[e.kind];if(e.kind==="array"){const i=e.itemType;if(i.kind==="string"||i.kind==="number"||i.kind==="boolean"){r.push(i.kind);const o=e.N;(typeof o=="number"||this.args.length>1)&&r.push(o)}}return r.concat(this.args.map(i=>i.serialize()))}}var no=Bu;class Zn{constructor(e){this.type=Nn,this.sections=e}static parse(e,r){if(e.length<2)return r.error("Expected at least one argument.");const i=e[1];if(!Array.isArray(i)&&typeof i=="object")return r.error("First argument must be an image or text section.");const o=[];let a=!1;for(let n=1;n<=e.length-1;++n){const s=e[n];if(a&&typeof s=="object"&&!Array.isArray(s)){a=!1;let l=null;if(s["font-scale"]&&(l=r.parse(s["font-scale"],1,ye),!l))return null;let c=null;if(s["text-font"]&&(c=r.parse(s["text-font"],1,Wr(ft)),!c))return null;let u=null;if(s["text-color"]&&(u=r.parse(s["text-color"],1,fi),!u))return null;const h=o[o.length-1];h.scale=l,h.font=c,h.textColor=u}else{const l=r.parse(e[n],1,gt);if(!l)return null;const c=l.type.kind;if(c!=="string"&&c!=="value"&&c!=="null"&&c!=="resolvedImage")return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");a=!0,o.push({content:l,scale:null,font:null,textColor:null})}}return new Zn(o)}evaluate(e){return new Yr(this.sections.map(r=>{const i=r.content.evaluate(e);return _r(i)===Vn?new Pu("",i,null,null,null):new Pu(Gn(i),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}serialize(){const e=["format"];for(const r of this.sections){e.push(r.content.serialize());const i={};r.scale&&(i["font-scale"]=r.scale.serialize()),r.font&&(i["text-font"]=r.font.serialize()),r.textColor&&(i["text-color"]=r.textColor.serialize()),e.push(i)}return e}}class $n{constructor(e,r){this.type=Vn,this.inputPrimary=e,this.inputSecondary=r}static parse(e,r){if(e.length<2)return r.error("Expected two or more arguments.");const i=r.parse(e[1],1,ft);if(!i)return r.error("No image name provided.");if(e.length===2)return new $n(i);const o=r.parse(e[2],1,ft);return o?new $n(i,o):r.error("Secondary image variant is not a string.")}evaluate(e){const r=mi.fromString(this.inputPrimary.evaluate(e),this.inputSecondary?this.inputSecondary.evaluate(e):void 0);return r&&e.availableImages&&(r.available=e.availableImages.indexOf(r.namePrimary)>-1,r.nameSecondary&&r.available&&e.availableImages&&(r.available=e.availableImages.indexOf(r.nameSecondary)>-1)),r}eachChild(e){e(this.inputPrimary),this.inputSecondary&&e(this.inputSecondary)}outputDefined(){return!1}serialize(){return this.inputSecondary?["image",this.inputPrimary.serialize(),this.inputSecondary.serialize()]:["image",this.inputPrimary.serialize()]}}function kt(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":t===null?"null":typeof t}const bv={"to-boolean":yt,"to-color":fi,"to-number":ye,"to-string":ft};class Ou{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 i=e[0],o=[];let a=Ha;if(i==="to-array"){if(!Array.isArray(e[1]))return null;const n=e[1].length;if(r.expectedType){if(r.expectedType.kind!=="array")return r.error(`Expected ${r.expectedType.kind} but found array.`);a=Wr(r.expectedType.itemType,n)}else{if(!(n>0&&Xa(e[1][0])))return null;a=Wr(_r(e[1][0]),n)}for(let s=0;s<n;s++){const l=e[1][s];let c;if(kt(l)==="array")c=r.parse(l,void 0,a.itemType);else{const u=kt(l);if(u!==a.itemType.kind)return r.error(`Expected ${a.itemType.kind} but found ${u}.`);c=r.registry.literal.parse(["literal",l===void 0?null:l],r)}if(!c)return null;o.push(c)}}else{if((i==="to-boolean"||i==="to-string")&&e.length!==2)return r.error("Expected one argument.");a=bv[i];for(let n=1;n<e.length;n++){const s=r.parse(e[n],n,gt);if(!s)return null;o.push(s)}}return new Ou(a,o)}evaluate(e){if(this.type.kind==="boolean")return!!this.args[0].evaluate(e);if(this.type.kind==="color"){let r,i;for(const o of this.args){if(r=o.evaluate(e),i=null,r instanceof Qe)return r;if(typeof r=="string"){const a=e.parseColor(r);if(a)return a}else if(Array.isArray(r)&&(i=r.length<3||r.length>4?`Invalid rbga value ${JSON.stringify(r)}: expected an array containing either three or four numeric values.`:wf(r[0],r[1],r[2],r[3]),!i))return new Qe(r[0]/255,r[1]/255,r[2]/255,r[3])}throw new Tr(i||`Could not parse color from value '${typeof r=="string"?r:String(JSON.stringify(r))}'`)}if(this.type.kind==="number"){let r=null;for(const i of this.args){if(r=i.evaluate(e),r===null)return 0;const o=Number(r);if(!isNaN(o))return o}throw new Tr(`Could not convert ${JSON.stringify(r)} to number.`)}return this.type.kind==="formatted"?Yr.fromString(Gn(this.args[0].evaluate(e))):this.type.kind==="resolvedImage"?mi.fromString(Gn(this.args[0].evaluate(e))):this.type.kind==="array"?this.args.map(r=>r.evaluate(e)):Gn(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if(this.type.kind==="formatted")return new Zn([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new $n(this.args[0]).serialize();const e=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(r=>{e.push(r.serialize())}),e}}var ha=Ou;const wv=["Unknown","Point","LineString","Polygon"];var kf=class{constructor(t){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.options=t}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?wv[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||{}}measureLight(t){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const t=this.featureDistanceData.center,e=this.featureDistanceData.scale,{x:r,y:i}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(r*e-t[0])+this.featureDistanceData.bearing[1]*(i*e-t[1])}return 0}parseColor(t){let e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Qe.parse(t)),e}getConfig(t){return this.options?this.options.get(t):null}};class da{constructor(e,r,i,o,a){this.name=e,this.type=r,this._evaluate=i,this.args=o,this._overloadIndex=a}evaluate(e){if(!this._evaluate){const r=da.definitions[this.name];this._evaluate=Array.isArray(r)?r[2]:r.overloads[this._overloadIndex][1]}return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,r){const i=e[0],o=da.definitions[i];if(!o)return r.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);const a=Array.isArray(o)?o[0]:o.type,n=Array.isArray(o)?[[o[1],o[2]]]:o.overloads,s=[];let l=null,c=-1;for(const[u,h]of n){if(Array.isArray(u)&&u.length!==e.length-1)continue;s.push(u),c++,l=new Vf(r.registry,r.path,null,r.scope,void 0,r.options);const d=[];let p=!1;for(let f=1;f<e.length;f++){const m=e[f],g=Array.isArray(u)?u[f-1]:u.type,_=l.parse(m,1+d.length,g);if(!_){p=!0;break}d.push(_)}if(!p)if(Array.isArray(u)&&u.length!==d.length)l.error(`Expected ${u.length} arguments, but found ${d.length} instead.`);else{for(let f=0;f<d.length;f++){const m=Array.isArray(u)?u[f]:u.type,g=d[f];l.concat(f+1).checkSubtype(m,g.type)}if(l.errors.length===0)return new da(i,a,h,d,c)}}if(s.length===1)r.errors.push(...l.errors);else{const u=(s.length?s:n.map(([d])=>d)).map(kv).join(" | "),h=[];for(let d=1;d<e.length;d++){const p=r.parse(e[d],1+h.length);if(!p)return null;h.push(nr(p.type))}r.error(`Expected arguments of type ${u}, but found (${h.join(", ")}) instead.`)}return null}static register(e,r){da.definitions=r;for(const i in r)e[i]=da}}function kv(t){return Array.isArray(t)?`(${t.map(nr).join(", ")})`:`(${nr(t.type)}...)`}var ji=da;class nl{constructor(e,r,i){this.type=il,this.locale=i,this.caseSensitive=e,this.diacriticSensitive=r}static parse(e,r){if(e.length!==2)return r.error("Expected one argument.");const i=e[1];if(typeof i!="object"||Array.isArray(i))return r.error("Collator options argument must be an object.");const o=r.parse(i["case-sensitive"]!==void 0&&i["case-sensitive"],1,yt);if(!o)return null;const a=r.parse(i["diacritic-sensitive"]!==void 0&&i["diacritic-sensitive"],1,yt);if(!a)return null;let n=null;return i.locale&&(n=r.parse(i.locale,1,ft),!n)?null:new nl(o,a,n)}evaluate(e){return new Du(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}serialize(){const e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}var Tf={exports:{}};Tf.exports=function(){function t(i,o,a,n,s){for(;n>a;){if(n-a>600){var l=n-a+1,c=o-a+1,u=Math.log(l),h=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*h*(l-h)/l)*(c-l/2<0?-1:1);t(i,o,Math.max(a,Math.floor(o-c*h/l+d)),Math.min(n,Math.floor(o+(l-c)*h/l+d)),s)}var p=i[o],f=a,m=n;for(e(i,a,o),s(i[n],p)>0&&e(i,a,n);f<m;){for(e(i,f,m),f++,m--;s(i[f],p)<0;)f++;for(;s(i[m],p)>0;)m--}s(i[a],p)===0?e(i,a,m):e(i,++m,n),m<=o&&(a=m+1),o<=m&&(n=m-1)}}function e(i,o,a){var n=i[o];i[o]=i[a],i[a]=n}function r(i,o){return i<o?-1:i>o?1:0}return function(i,o,a,n,s){t(i,o,a||0,n||i.length-1,s||r)}}();var Tv=hi(Tf.exports);function Ev(t){let e=0;for(let r,i,o=0,a=t.length,n=a-1;o<a;n=o++)r=t[o],i=t[n],e+=(i.x-r.x)*(r.y+i.y);return e}function Hn(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function Wn(t,e){return!(t[0]<=e[0]||t[2]>=e[2]||t[1]<=e[1]||t[3]>=e[3])}function Mv(t,e,r){const i=t[0]-e[0],o=t[1]-e[1],a=t[0]-r[0],n=t[1]-r[1];return i*n-a*o==0&&i*a<=0&&o*n<=0}function Ya(t,e,r=!1){let i=!1;for(let s=0,l=e.length;s<l;s++){const c=e[s];for(let u=0,h=c.length,d=h-1;u<h;d=u++){const p=c[d],f=c[u];if(Mv(t,p,f))return r;(a=p)[1]>(o=t)[1]!=(n=f)[1]>o[1]&&o[0]<(n[0]-a[0])*(o[1]-a[1])/(n[1]-a[1])+a[0]&&(i=!i)}}var o,a,n;return i}function Ef(t,e,r,i){const o=i[0]-r[0],a=i[1]-r[1],n=(t[0]-r[0])*a-o*(t[1]-r[1]),s=(e[0]-r[0])*a-o*(e[1]-r[1]);return n>0&&s<0||n<0&&s>0}function sl(t,e,r,i){return(o=[i[0]-r[0],i[1]-r[1]])[0]*(a=[e[0]-t[0],e[1]-t[1]])[1]-o[1]*a[0]!=0&&!(!Ef(t,e,r,i)||!Ef(r,i,t,e));var o,a}const Ao=8192;function Sv(t,e){const r=(180+t[0])/360,i=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,o=Math.pow(2,e.z);return[Math.round(r*o*Ao),Math.round(i*o*Ao)]}function Av(t,e){for(let r=0;r<e.length;r++)if(Ya(t,e[r]))return!0;return!1}function Cv(t,e,r){for(const i of r)for(let o=0,a=i.length,n=a-1;o<a;n=o++)if(sl(t,e,i[n],i[o]))return!0;return!1}function Mf(t,e){for(let r=0;r<t.length;++r)if(!Ya(t[r],e))return!1;for(let r=0;r<t.length-1;++r)if(Cv(t[r],t[r+1],e))return!1;return!0}function Iv(t,e){for(let r=0;r<e.length;r++)if(Mf(t,e[r]))return!0;return!1}function Fu(t,e,r){const i=[];for(let o=0;o<t.length;o++){const a=[];for(let n=0;n<t[o].length;n++){const s=Sv(t[o][n],r);Hn(e,s),a.push(s)}i.push(a)}return i}function Sf(t,e,r){const i=[];for(let o=0;o<t.length;o++){const a=Fu(t[o],e,r);i.push(a)}return i}function Af(t,e,r,i){if(t[0]<r[0]||t[0]>r[2]){const o=.5*i;let a=t[0]-r[0]>o?-i:r[0]-t[0]>o?i:0;a===0&&(a=t[0]-r[2]>o?-i:r[2]-t[0]>o?i:0),t[0]+=a}Hn(e,t)}function Cf(t,e,r,i){const o=Math.pow(2,i.z)*Ao,a=[i.x*Ao,i.y*Ao],n=[];if(!t)return n;for(const s of t)for(const l of s){const c=[l.x+a[0],l.y+a[1]];Af(c,e,r,o),n.push(c)}return n}function If(t,e,r,i){const o=Math.pow(2,i.z)*Ao,a=[i.x*Ao,i.y*Ao],n=[];if(!t)return n;for(const l of t){const c=[];for(const u of l){const h=[u.x+a[0],u.y+a[1]];Hn(e,h),c.push(h)}n.push(c)}if(e[2]-e[0]<=o/2){(s=e)[0]=s[1]=1/0,s[2]=s[3]=-1/0;for(const l of n)for(const c of l)Af(c,e,r,o)}var s;return n}class Xn{constructor(e,r){this.type=yt,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(Xa(e[1])){const i=e[1];if(i.type==="FeatureCollection")for(let o=0;o<i.features.length;++o){const a=i.features[o].geometry.type;if(a==="Polygon"||a==="MultiPolygon")return new Xn(i,i.features[o].geometry)}else if(i.type==="Feature"){const o=i.geometry.type;if(o==="Polygon"||o==="MultiPolygon")return new Xn(i,i.geometry)}else if(i.type==="Polygon"||i.type==="MultiPolygon")return new Xn(i,i)}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,i){const o=[1/0,1/0,-1/0,-1/0],a=[1/0,1/0,-1/0,-1/0],n=r.canonicalID();if(!n)return!1;if(i.type==="Polygon"){const s=Fu(i.coordinates,a,n),l=Cf(r.geometry(),o,a,n);if(!Wn(o,a))return!1;for(const c of l)if(!Ya(c,s))return!1}if(i.type==="MultiPolygon"){const s=Sf(i.coordinates,a,n),l=Cf(r.geometry(),o,a,n);if(!Wn(o,a))return!1;for(const c of l)if(!Av(c,s))return!1}return!0}(e,this.geometries);if(e.geometryType()==="LineString")return function(r,i){const o=[1/0,1/0,-1/0,-1/0],a=[1/0,1/0,-1/0,-1/0],n=r.canonicalID();if(!n)return!1;if(i.type==="Polygon"){const s=Fu(i.coordinates,a,n),l=If(r.geometry(),o,a,n);if(!Wn(o,a))return!1;for(const c of l)if(!Mf(c,s))return!1}if(i.type==="MultiPolygon"){const s=Sf(i.coordinates,a,n),l=If(r.geometry(),o,a,n);if(!Wn(o,a))return!1;for(const c of l)if(!Iv(c,s))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}var Nu=Xn,zf={exports:{}};zf.exports=function(){var t={kilometers:1,miles:.621371192237334,nauticalmiles:.5399568034557235,meters:1e3,metres:1e3,yards:1093.6132983377079,feet:3280.839895013123,inches:39370.078740157485},e=1/298.257223563,r=e*(2-e),i=Math.PI/180,o=function(c,u){if(c===void 0)throw new Error("No latitude given.");if(u&&!t[u])throw new Error("Unknown unit "+u+". Use one of: "+Object.keys(t).join(", "));var h=6378.137*i*(u?t[u]:1),d=Math.cos(c*i),p=1/(1-r*(1-d*d)),f=Math.sqrt(p);this.kx=h*f*d,this.ky=h*f*p*(1-r)},a={units:{configurable:!0}};function n(c,u){return c[0]===u[0]&&c[1]===u[1]}function s(c,u,h){var d=l(u[0]-c[0]);return[c[0]+d*h,c[1]+(u[1]-c[1])*h]}function l(c){for(;c<-180;)c+=360;for(;c>180;)c-=360;return c}return o.fromTile=function(c,u,h){var d=Math.PI*(1-2*(c+.5)/Math.pow(2,u)),p=Math.atan(.5*(Math.exp(d)-Math.exp(-d)))/i;return new o(p,h)},a.units.get=function(){return t},o.prototype.distance=function(c,u){var h=l(c[0]-u[0])*this.kx,d=(c[1]-u[1])*this.ky;return Math.sqrt(h*h+d*d)},o.prototype.bearing=function(c,u){var h=l(u[0]-c[0])*this.kx;return Math.atan2(h,(u[1]-c[1])*this.ky)/i},o.prototype.destination=function(c,u,h){var d=h*i;return this.offset(c,Math.sin(d)*u,Math.cos(d)*u)},o.prototype.offset=function(c,u,h){return[c[0]+u/this.kx,c[1]+h/this.ky]},o.prototype.lineDistance=function(c){for(var u=0,h=0;h<c.length-1;h++)u+=this.distance(c[h],c[h+1]);return u},o.prototype.area=function(c){for(var u=0,h=0;h<c.length;h++)for(var d=c[h],p=0,f=d.length,m=f-1;p<f;m=p++)u+=l(d[p][0]-d[m][0])*(d[p][1]+d[m][1])*(h?-1:1);return Math.abs(u)/2*this.kx*this.ky},o.prototype.along=function(c,u){var h=0;if(u<=0)return c[0];for(var d=0;d<c.length-1;d++){var p=c[d],f=c[d+1],m=this.distance(p,f);if((h+=m)>u)return s(p,f,(u-(h-m))/m)}return c[c.length-1]},o.prototype.pointToSegmentDistance=function(c,u,h){var d=u[0],p=u[1],f=l(h[0]-d)*this.kx,m=(h[1]-p)*this.ky,g=0;return f===0&&m===0||((g=(l(c[0]-d)*this.kx*f+(c[1]-p)*this.ky*m)/(f*f+m*m))>1?(d=h[0],p=h[1]):g>0&&(d+=f/this.kx*g,p+=m/this.ky*g)),f=l(c[0]-d)*this.kx,m=(c[1]-p)*this.ky,Math.sqrt(f*f+m*m)},o.prototype.pointOnLine=function(c,u){for(var h,d,p,f,m=1/0,g=0;g<c.length-1;g++){var _=c[g][0],y=c[g][1],v=l(c[g+1][0]-_)*this.kx,b=(c[g+1][1]-y)*this.ky,x=0;v===0&&b===0||((x=(l(u[0]-_)*this.kx*v+(u[1]-y)*this.ky*b)/(v*v+b*b))>1?(_=c[g+1][0],y=c[g+1][1]):x>0&&(_+=v/this.kx*x,y+=b/this.ky*x));var w=(v=l(u[0]-_)*this.kx)*v+(b=(u[1]-y)*this.ky)*b;w<m&&(m=w,h=_,d=y,p=g,f=x)}return{point:[h,d],index:p,t:Math.max(0,Math.min(1,f))}},o.prototype.lineSlice=function(c,u,h){var d=this.pointOnLine(h,c),p=this.pointOnLine(h,u);if(d.index>p.index||d.index===p.index&&d.t>p.t){var f=d;d=p,p=f}var m=[d.point],g=d.index+1,_=p.index;!n(h[g],m[0])&&g<=_&&m.push(h[g]);for(var y=g+1;y<=_;y++)m.push(h[y]);return n(h[_],p.point)||m.push(p.point),m},o.prototype.lineSliceAlong=function(c,u,h){for(var d=0,p=[],f=0;f<h.length-1;f++){var m=h[f],g=h[f+1],_=this.distance(m,g);if((d+=_)>c&&p.length===0&&p.push(s(m,g,(c-(d-_))/_)),d>=u)return p.push(s(m,g,(u-(d-_))/_)),p;d>c&&p.push(g)}return p},o.prototype.bufferPoint=function(c,u){var h=u/this.ky,d=u/this.kx;return[c[0]-d,c[1]-h,c[0]+d,c[1]+h]},o.prototype.bufferBBox=function(c,u){var h=u/this.ky,d=u/this.kx;return[c[0]-d,c[1]-h,c[2]+d,c[3]+h]},o.prototype.insideBBox=function(c,u){return l(c[0]-u[0])>=0&&l(c[0]-u[2])<=0&&c[1]>=u[1]&&c[1]<=u[3]},Object.defineProperties(o,a),o}();var Vu=hi(zf.exports),Df={exports:{}};Df.exports=function(){var t=function(r,i){if(r===void 0&&(r=[]),i===void 0&&(i=e),this.data=r,this.length=this.data.length,this.compare=i,this.length>0)for(var o=(this.length>>1)-1;o>=0;o--)this._down(o)};function e(r,i){return r<i?-1:r>i?1:0}return t.prototype.push=function(r){this.data.push(r),this.length++,this._up(this.length-1)},t.prototype.pop=function(){if(this.length!==0){var r=this.data[0],i=this.data.pop();return this.length--,this.length>0&&(this.data[0]=i,this._down(0)),r}},t.prototype.peek=function(){return this.data[0]},t.prototype._up=function(r){for(var i=this.data,o=this.compare,a=i[r];r>0;){var n=r-1>>1,s=i[n];if(o(a,s)>=0)break;i[r]=s,r=n}i[r]=a},t.prototype._down=function(r){for(var i=this.data,o=this.compare,a=this.length>>1,n=i[r];r<a;){var s=1+(r<<1),l=i[s],c=s+1;if(c<this.length&&o(i[c],l)<0&&(s=c,l=i[c]),o(l,n)>=0)break;i[r]=l,r=s}i[r]=n},t}();var Uu=hi(Df.exports),W=8192;function Pf(t,e){return e.dist-t.dist}const ju=100,Gu=50;function Rf(t){const e=[1/0,1/0,-1/0,-1/0];if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function ll(t){return t[1]-t[0]+1}function so(t,e){const r=t[1]>=t[0]&&t[1]<e;return r||console.warn("Distance Expression: Index is out of range"),r}function qu(t,e){if(t[0]>t[1])return[null,null];const r=ll(t);if(e){if(r===2)return[t,null];const i=Math.floor(r/2);return[[t[0],t[0]+i],[t[0]+i,t[1]]]}{if(r===1)return[t,null];const i=Math.floor(r/2)-1;return[[t[0],t[0]+i],[t[0]+i+1,t[1]]]}}function pa(t,e){const r=[1/0,1/0,-1/0,-1/0];if(!so(e,t.length))return r;for(let i=e[0];i<=e[1];++i)Hn(r,t[i]);return r}function cl(t){const e=[1/0,1/0,-1/0,-1/0];for(let r=0;r<t.length;++r)for(let i=0;i<t[r].length;++i)Hn(e,t[r][i]);return e}function Ja(t,e,r){if(Rf(t)||Rf(e))return NaN;let i=0,o=0;return t[2]<e[0]&&(i=e[0]-t[2]),t[0]>e[2]&&(i=t[0]-e[2]),t[1]>e[3]&&(o=t[1]-e[3]),t[3]<e[1]&&(o=e[1]-t[3]),r.distance([0,0],[i,o])}function Zu(t,e){const r=Math.pow(2,e.z);return[(o=(t.x/W+e.x)/r,360*o-180),(i=(t.y/W+e.y)/r,360/Math.PI*Math.atan(Math.exp((180-360*i)*Math.PI/180))-90)];var i,o}function zv(t,e){const r=[];for(let i=0;i<t.length;++i)r.push(Zu(t[i],e));return r}function Lf(t,e,r){const i=r.pointOnLine(e,t).point;return r.distance(t,i)}function Bf(t,e,r,i,o){const a=r.slice(i[0],i[1]+1);let n=1/0;for(let s=e[0];s<=e[1];++s)if((n=Math.min(n,Lf(t[s],a,o)))===0)return 0;return n}function $u(t,e,r,i,o){const a=Math.min(o.pointToSegmentDistance(t,r,i),o.pointToSegmentDistance(e,r,i)),n=Math.min(o.pointToSegmentDistance(r,t,e),o.pointToSegmentDistance(i,t,e));return Math.min(a,n)}function Dv(t,e,r,i,o){if(!so(e,t.length)||!so(i,r.length))return NaN;let a=1/0;for(let n=e[0];n<e[1];++n)for(let s=i[0];s<i[1];++s){if(sl(t[n],t[n+1],r[s],r[s+1]))return 0;a=Math.min(a,$u(t[n],t[n+1],r[s],r[s+1],o))}return a}function Pv(t,e,r,i,o){if(!so(e,t.length)||!so(i,r.length))return NaN;let a=1/0;for(let n=e[0];n<=e[1];++n)for(let s=i[0];s<=i[1];++s)if((a=Math.min(a,o.distance(t[n],r[s])))===0)return a;return a}function Rv(t,e,r){if(Ya(t,e,!0))return 0;let i=1/0;for(const o of e){const a=o.length;if(a<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(o[0]!==o[a-1]&&(i=Math.min(i,r.pointToSegmentDistance(t,o[a-1],o[0])))===0||(i=Math.min(i,Lf(t,o,r)))===0)return i}return i}function Lv(t,e,r,i){if(!so(e,t.length))return NaN;for(let a=e[0];a<=e[1];++a)if(Ya(t[a],r,!0))return 0;let o=1/0;for(let a=e[0];a<e[1];++a)for(const n of r)for(let s=0,l=n.length,c=l-1;s<l;c=s++){if(sl(t[a],t[a+1],n[c],n[s]))return 0;o=Math.min(o,$u(t[a],t[a+1],n[c],n[s],i))}return o}function Of(t,e){for(const r of t)for(let i=0;i<=r.length-1;++i)if(Ya(r[i],e,!0))return!0;return!1}function Bv(t,e,r,i=1/0){const o=cl(t),a=cl(e);if(i!==1/0&&Ja(o,a,r)>=i)return i;if(Wn(o,a)){if(Of(t,e))return 0}else if(Of(e,t))return 0;let n=i;for(const s of t)for(let l=0,c=s.length,u=c-1;l<c;u=l++)for(const h of e)for(let d=0,p=h.length,f=p-1;d<p;f=d++){if(sl(s[u],s[l],h[f],h[d]))return 0;n=Math.min(n,$u(s[u],s[l],h[f],h[d],r))}return n}function ul(t,e,r,i,o,a,n){if(a===null||n===null)return;const s=Ja(pa(i,a),pa(o,n),r);s<e&&t.push({dist:s,range1:a,range2:n})}function Ov(t,e,r,i,o=1/0){let a=Math.min(i.distance(t[0],r[0][0]),o);if(a===0)return a;const n=new Uu([{dist:0,range1:[0,t.length-1],range2:[0,0]}],Pf),s=e?Gu:ju,l=cl(r);for(;n.length;){const c=n.pop();if(c.dist>=a)continue;const u=c.range1;if(ll(u)<=s){if(!so(u,t.length))return NaN;if(e){const h=Lv(t,u,r,i);if((a=Math.min(a,h))===0)return a}else for(let h=u[0];h<=u[1];++h){const d=Rv(t[h],r,i);if((a=Math.min(a,d))===0)return a}}else{const h=qu(u,e);if(h[0]!==null){const d=Ja(pa(t,h[0]),l,i);d<a&&n.push({dist:d,range1:h[0],range2:[0,0]})}if(h[1]!==null){const d=Ja(pa(t,h[1]),l,i);d<a&&n.push({dist:d,range1:h[1],range2:[0,0]})}}}return a}function Ff(t,e,r,i,o,a=1/0){let n=Math.min(a,o.distance(t[0],r[0]));if(n===0)return n;const s=new Uu([{dist:0,range1:[0,t.length-1],range2:[0,r.length-1]}],Pf),l=e?Gu:ju,c=i?Gu:ju;for(;s.length;){const u=s.pop();if(u.dist>=n)continue;const h=u.range1,d=u.range2;if(ll(h)<=l&&ll(d)<=c){if(!so(h,t.length)||!so(d,r.length))return NaN;if(e&&i?n=Math.min(n,Dv(t,h,r,d,o)):e||i?e&&!i?n=Math.min(n,Bf(r,d,t,h,o)):!e&&i&&(n=Math.min(n,Bf(t,h,r,d,o))):n=Math.min(n,Pv(t,h,r,d,o)),n===0)return n}else{const p=qu(h,e),f=qu(d,i);ul(s,n,o,t,r,p[0],f[0]),ul(s,n,o,t,r,p[0],f[1]),ul(s,n,o,t,r,p[1],f[0]),ul(s,n,o,t,r,p[1],f[1])}}return n}function Hu(t,e,r,i,o=1/0){let a=o;const n=pa(t,[0,t.length-1]);for(const s of r)if(!(a!==1/0&&Ja(n,pa(s,[0,s.length-1]),i)>=a)&&(a=Math.min(a,Ff(t,e,s,!0,i,a)),a===0))return a;return a}function hl(t,e,r,i,o=1/0){let a=o;const n=pa(t,[0,t.length-1]);for(const s of r){if(a!==1/0&&Ja(n,cl(s),i)>=a)continue;const l=Ov(t,e,s,i,a);if(isNaN(l))return l;if((a=Math.min(a,l))===0)return a}return a}function Wu(t){return t==="Point"||t==="MultiPoint"||t==="LineString"||t==="MultiLineString"||t==="Polygon"||t==="MultiPolygon"}class Yn{constructor(e,r){this.type=ye,this.geojson=e,this.geometries=r}static parse(e,r){if(e.length!==2)return r.error(`'distance' expression requires either one argument, but found ' ${e.length-1} instead.`);if(Xa(e[1])){const i=e[1];if(i.type==="FeatureCollection"){for(let o=0;o<i.features.length;++o)if(Wu(i.features[o].geometry.type))return new Yn(i,i.features[o].geometry)}else if(i.type==="Feature"){if(Wu(i.geometry.type))return new Yn(i,i.geometry)}else if(Wu(i.type))return new Yn(i,i)}return r.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(e){const r=e.geometry(),i=e.canonicalID();if(r!=null&&i!=null){if(e.geometryType()==="Point")return function(o,a,n){const s=[];for(const c of o)for(const u of c)s.push(Zu(u,a));const l=new Vu(s[0][1],"meters");return n.type==="Point"||n.type==="MultiPoint"||n.type==="LineString"?Ff(s,!1,n.type==="Point"?[n.coordinates]:n.coordinates,n.type==="LineString",l):n.type==="MultiLineString"?Hu(s,!1,n.coordinates,l):n.type==="Polygon"||n.type==="MultiPolygon"?hl(s,!1,n.type==="Polygon"?[n.coordinates]:n.coordinates,l):null}(r,i,this.geometries);if(e.geometryType()==="LineString")return function(o,a,n){const s=[];for(const c of o){const u=[];for(const h of c)u.push(Zu(h,a));s.push(u)}const l=new Vu(s[0][0][1],"meters");if(n.type==="Point"||n.type==="MultiPoint"||n.type==="LineString")return Hu(n.type==="Point"?[n.coordinates]:n.coordinates,n.type==="LineString",s,l);if(n.type==="MultiLineString"){let c=1/0;for(let u=0;u<n.coordinates.length;u++){const h=Hu(n.coordinates[u],!0,s,l,c);if(isNaN(h))return h;if((c=Math.min(c,h))===0)return c}return c}if(n.type==="Polygon"||n.type==="MultiPolygon"){let c=1/0;for(let u=0;u<s.length;u++){const h=hl(s[u],!0,n.type==="Polygon"?[n.coordinates]:n.coordinates,l,c);if(isNaN(h))return h;if((c=Math.min(c,h))===0)return c}return c}return null}(r,i,this.geometries);if(e.geometryType()==="Polygon")return function(o,a,n){const s=[];for(const c of function(u,h){const d=u.length;if(d<=1)return[u];const p=[];let f,m;for(let g=0;g<d;g++){const _=Ev(u[g]);_!==0&&(u[g].area=Math.abs(_),m===void 0&&(m=_<0),m===_<0?(f&&p.push(f),f=[u[g]]):f.push(u[g]))}return f&&p.push(f),p}(o)){const u=[];for(let h=0;h<c.length;++h)u.push(zv(c[h],a));s.push(u)}const l=new Vu(s[0][0][0][1],"meters");if(n.type==="Point"||n.type==="MultiPoint"||n.type==="LineString")return hl(n.type==="Point"?[n.coordinates]:n.coordinates,n.type==="LineString",s,l);if(n.type==="MultiLineString"){let c=1/0;for(let u=0;u<n.coordinates.length;u++){const h=hl(n.coordinates[u],!0,s,l,c);if(isNaN(h))return h;if((c=Math.min(c,h))===0)return c}return c}return n.type==="Polygon"||n.type==="MultiPolygon"?function(c,u,h){let d=1/0;for(const p of c)for(const f of u){const m=Bv(p,f,h,d);if(isNaN(m))return m;if((d=Math.min(d,m))===0)return d}return d}(n.type==="Polygon"?[n.coordinates]:n.coordinates,s,l):null}(r,i,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requirs valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}var Xu=Yn;function Ka(t){if(t instanceof ji&&(t.name==="get"&&t.args.length===1||t.name==="feature-state"||t.name==="has"&&t.args.length===1||t.name==="properties"||t.name==="geometry-type"||t.name==="id"||/^filter-/.test(t.name))||t instanceof Nu||t instanceof Xu)return!1;let e=!0;return t.eachChild(r=>{e&&!Ka(r)&&(e=!1)}),e}function Jn(t){if(t instanceof ji&&t.name==="feature-state")return!1;let e=!0;return t.eachChild(r=>{e&&!Jn(r)&&(e=!1)}),e}function Yu(t){if(t instanceof ji&&t.name==="config")return!1;let e=!0;return t.eachChild(r=>{e&&!Yu(r)&&(e=!1)}),e}function Qa(t,e){if(t instanceof ji&&e.indexOf(t.name)>=0)return!1;let r=!0;return t.eachChild(i=>{r&&!Qa(i,e)&&(r=!1)}),r}class Ju{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 i=e[1];return r.scope.has(i)?new Ju(i,r.scope.get(i)):r.error(`Unknown variable "${i}". Make sure "${i}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Nf=Ju;class Ku{constructor(e,r=[],i,o=new xv,a=[],n){this.registry=e,this.path=r,this.key=r.map(s=>`[${s}]`).join(""),this.scope=o,this.errors=a,this.expectedType=i,this.options=n}parse(e,r,i,o,a={}){return r||i?this.concat(r,i,o)._parse(e,a):this._parse(e,a)}_parse(e,r){function i(o,a,n){return n==="assert"?new no(a,[o]):n==="coerce"?new ha(a,[o]):o}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 o=typeof e[0]=="string"?this.registry[e[0]]:void 0;if(o){let a=o.parse(e,this);if(!a)return null;if(this.expectedType){const n=this.expectedType,s=a.type;if(n.kind!=="string"&&n.kind!=="number"&&n.kind!=="boolean"&&n.kind!=="object"&&n.kind!=="array"||s.kind!=="value")if(n.kind!=="color"&&n.kind!=="formatted"&&n.kind!=="resolvedImage"||s.kind!=="value"&&s.kind!=="string"){if(this.checkSubtype(n,s))return null}else a=i(a,n,r.typeAnnotation||"coerce");else a=i(a,n,r.typeAnnotation||"assert")}if(!(a instanceof qn)&&a.type.kind!=="resolvedImage"&&Qu(a)){const n=new kf(this.options);try{a=new qn(a.type,a.evaluate(n))}catch(s){return this.error(s.message),null}}return a}return ha.parse(["to-array",e],this)}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,i){const o=typeof e=="number"?this.path.concat(e):this.path,a=i?this.scope.concat(i):this.scope;return new Ku(this.registry,o,r||null,a,this.errors,this.options)}error(e,...r){const i=`${this.key}${r.map(o=>`[${o}]`).join("")}`;this.errors.push(new Ui(i,e))}checkSubtype(e,r){const i=Un(e,r);return i&&this.error(i),i}}var Vf=Ku;function Qu(t){if(t instanceof Nf)return Qu(t.boundExpression);if(t instanceof ji&&t.name==="error"||t instanceof ji&&t.name==="config"||t instanceof nl||t instanceof Nu||t instanceof Xu)return!1;const e=t instanceof ha||t instanceof no;let r=!0;return t.eachChild(i=>{r=e?r&&Qu(i):r&&i instanceof qn}),!!r&&Ka(t)&&Qa(t,["zoom","heatmap-density","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light"])}function dl(t,e){const r=t.length-1;let i,o,a=0,n=r,s=0;for(;a<=n;)if(s=Math.floor((a+n)/2),i=t[s],o=t[s+1],i<=e){if(s===r||e<o)return s;a=s+1}else{if(!(i>e))throw new Tr("Input is not a number.");n=s-1}return 0}class eh{constructor(e,r,i){this.type=e,this.input=r,this.labels=[],this.outputs=[];for(const[o,a]of i)this.labels.push(o),this.outputs.push(a)}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 i=r.parse(e[1],1,ye);if(!i)return null;const o=[];let a=null;r.expectedType&&r.expectedType.kind!=="value"&&(a=r.expectedType);for(let n=1;n<e.length;n+=2){const s=n===1?-1/0:e[n],l=e[n+1],c=n,u=n+1;if(typeof s!="number")return r.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',c);if(o.length&&o[o.length-1][0]>=s)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',c);const h=r.parse(l,u,a);if(!h)return null;a=a||h.type,o.push([s,h])}return new eh(a,i,o)}evaluate(e){const r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(e);const o=this.input.evaluate(e);if(o<=r[0])return i[0].evaluate(e);const a=r.length;return o>=r[a-1]?i[a-1].evaluate(e):i[dl(r,o)].evaluate(e)}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let r=0;r<this.labels.length;r++)r>0&&e.push(this.labels[r]),e.push(this.outputs[r].serialize());return e}}var th=eh;function Fe(t,e,r){return t*(1-r)+e*r}function Uf(t,e,r){return t.map((i,o)=>Fe(i,e[o],r))}var pl=Object.freeze({__proto__:null,array:Uf,color:function(t,e,r){return new Qe(Fe(t.r,e.r,r),Fe(t.g,e.g,r),Fe(t.b,e.b,r),Fe(t.a,e.a,r))},number:Fe});const jf=.95047,Gf=1.08883,qf=4/29,en=6/29,Zf=3*en*en,Fv=en*en*en,Nv=Math.PI/180,Vv=180/Math.PI;function rh(t){return t>Fv?Math.pow(t,1/3):t/Zf+qf}function ih(t){return t>en?t*t*t:Zf*(t-qf)}function oh(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ah(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function $f(t){const e=ah(t.r),r=ah(t.g),i=ah(t.b),o=rh((.4124564*e+.3575761*r+.1804375*i)/jf),a=rh((.2126729*e+.7151522*r+.072175*i)/1);return{l:116*a-16,a:500*(o-a),b:200*(a-rh((.0193339*e+.119192*r+.9503041*i)/Gf)),alpha:t.a}}function Hf(t){let e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,i=isNaN(t.b)?e:e-t.b/200;return e=1*ih(e),r=jf*ih(r),i=Gf*ih(i),new Qe(oh(3.2404542*r-1.5371385*e-.4985314*i),oh(-.969266*r+1.8760108*e+.041556*i),oh(.0556434*r-.2040259*e+1.0572252*i),t.alpha)}function Uv(t,e,r){const i=e-t;return t+r*(i>180||i<-180?i-360*Math.round(i/360):i)}const Kn={forward:$f,reverse:Hf,interpolate:function(t,e,r){return{l:Fe(t.l,e.l,r),a:Fe(t.a,e.a,r),b:Fe(t.b,e.b,r),alpha:Fe(t.alpha,e.alpha,r)}}},Qn={forward:function(t){const{l:e,a:r,b:i}=$f(t),o=Math.atan2(i,r)*Vv;return{h:o<0?o+360:o,c:Math.sqrt(r*r+i*i),l:e,alpha:t.a}},reverse:function(t){const e=t.h*Nv,r=t.c;return Hf({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:Uv(t.h,e.h,r),c:Fe(t.c,e.c,r),l:Fe(t.l,e.l,r),alpha:Fe(t.alpha,e.alpha,r)}}};var Wf=Object.freeze({__proto__:null,hcl:Qn,lab:Kn});class fl{constructor(e,r,i,o,a){this.type=e,this.operator=r,this.interpolation=i,this.input=o,this.labels=[],this.outputs=[];for(const[n,s]of a)this.labels.push(n),this.outputs.push(s)}static interpolationFactor(e,r,i,o){let a=0;if(e.name==="exponential")a=nh(r,e.base,i,o);else if(e.name==="linear")a=nh(r,1,i,o);else if(e.name==="cubic-bezier"){const n=e.controlPoints;a=new Ws(n[0],n[1],n[2],n[3]).solve(nh(r,1,i,o))}return a}static parse(e,r){let[i,o,a,...n]=e;if(!Array.isArray(o)||o.length===0)return r.error("Expected an interpolation type expression.",1);if(o[0]==="linear")o={name:"linear"};else if(o[0]==="exponential"){const c=o[1];if(typeof c!="number")return r.error("Exponential interpolation requires a numeric base.",1,1);o={name:"exponential",base:c}}else{if(o[0]!=="cubic-bezier")return r.error(`Unknown interpolation type ${String(o[0])}`,1,0);{const c=o.slice(1);if(c.length!==4||c.some(u=>typeof u!="number"||u<0||u>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);o={name:"cubic-bezier",controlPoints:c}}}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(a=r.parse(a,2,ye),!a)return null;const s=[];let l=null;i==="interpolate-hcl"||i==="interpolate-lab"?l=fi:r.expectedType&&r.expectedType.kind!=="value"&&(l=r.expectedType);for(let c=0;c<n.length;c+=2){const u=n[c],h=n[c+1],d=c+3,p=c+4;if(typeof u!="number")return r.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',d);if(s.length&&s[s.length-1][0]>=u)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',d);const f=r.parse(h,p,l);if(!f)return null;l=l||f.type,s.push([u,f])}return l.kind==="number"||l.kind==="color"||l.kind==="array"&&l.itemType.kind==="number"&&typeof l.N=="number"?new fl(l,i,o,a,s):r.error(`Type ${nr(l)} is not interpolatable.`)}evaluate(e){const r=this.labels,i=this.outputs;if(r.length===1)return i[0].evaluate(e);const o=this.input.evaluate(e);if(o<=r[0])return i[0].evaluate(e);const a=r.length;if(o>=r[a-1])return i[a-1].evaluate(e);const n=dl(r,o),s=fl.interpolationFactor(this.interpolation,o,r[n],r[n+1]),l=i[n].evaluate(e),c=i[n+1].evaluate(e);return this.operator==="interpolate"?pl[this.type.kind.toLowerCase()](l,c,s):this.operator==="interpolate-hcl"?Qn.reverse(Qn.interpolate(Qn.forward(l),Qn.forward(c),s)):Kn.reverse(Kn.interpolate(Kn.forward(l),Kn.forward(c),s))}eachChild(e){e(this.input);for(const r of this.outputs)e(r)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;e=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const r=[this.operator,e,this.input.serialize()];for(let i=0;i<this.labels.length;i++)r.push(this.labels[i],this.outputs[i].serialize());return r}}function nh(t,e,r,i){const o=i-r,a=t-r;return o===0?0:e===1?a/o:(Math.pow(e,a)-1)/(Math.pow(e,o)-1)}var Gi=fl;class sh{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 i=null;const o=r.expectedType;o&&o.kind!=="value"&&(i=o);const a=[];for(const s of e.slice(1)){const l=r.parse(s,1+a.length,i,void 0,{typeAnnotation:"omit"});if(!l)return null;i=i||l.type,a.push(l)}const n=o&&a.some(s=>Un(o,s.type));return new sh(n?gt:i,a)}evaluate(e){let r,i=null,o=0;for(const a of this.args){if(o++,i=a.evaluate(e),i&&i instanceof mi&&!i.available&&(r||(r=i),i=null,o===this.args.length))return r;if(i!==null)break}return i}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(r=>{e.push(r.serialize())}),e}}var Xf=sh;class lh{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 i=[];for(let a=1;a<e.length-1;a+=2){const n=e[a];if(typeof n!="string")return r.error(`Expected string, but found ${typeof n} instead.`,a);if(/[^a-zA-Z0-9_]/.test(n))return r.error("Variable names must contain only alphanumeric characters or '_'.",a);const s=r.parse(e[a+1],a+1);if(!s)return null;i.push([n,s])}const o=r.parse(e[e.length-1],e.length-1,r.expectedType,i);return o?new lh(i,o):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[r,i]of this.bindings)e.push(r,i.serialize());return e.push(this.result.serialize()),e}}var Yf=lh;class ch{constructor(e,r,i){this.type=e,this.index=r,this.input=i}static parse(e,r){if(e.length!==3)return r.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const i=r.parse(e[1],1,ye),o=r.parse(e[2],2,Wr(r.expectedType||gt));return i&&o?new ch(o.type.itemType,i,o):null}evaluate(e){const r=this.index.evaluate(e),i=this.input.evaluate(e);if(r<0)throw new Tr(`Array index out of bounds: ${r} < 0.`);if(r>=i.length)throw new Tr(`Array index out of bounds: ${r} > ${i.length-1}.`);if(r!==Math.floor(r))throw new Tr(`Array index must be an integer, but found ${r} instead.`);return i[r]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var jv=ch;class uh{constructor(e,r){this.type=yt,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 i=r.parse(e[1],1,gt),o=r.parse(e[2],2,gt);return i&&o?Au(i.type,[yt,ft,ye,Ha,gt])?new uh(i,o):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${nr(i.type)} instead`):null}evaluate(e){const r=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(i==null)return!1;if(!jn(r,["boolean","string","number","null"]))throw new Tr(`Expected first argument to be of type boolean, string, number or null, but found ${nr(_r(r))} instead.`);if(!jn(i,["string","array"]))throw new Tr(`Expected second argument to be of type array or string, but found ${nr(_r(i))} instead.`);return i.indexOf(r)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var Gv=uh;class ml{constructor(e,r,i){this.type=ye,this.needle=e,this.haystack=r,this.fromIndex=i}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 i=r.parse(e[1],1,gt),o=r.parse(e[2],2,gt);if(!i||!o)return null;if(!Au(i.type,[yt,ft,ye,Ha,gt]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${nr(i.type)} instead`);if(e.length===4){const a=r.parse(e[3],3,ye);return a?new ml(i,o,a):null}return new ml(i,o)}evaluate(e){const r=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!jn(r,["boolean","string","number","null"]))throw new Tr(`Expected first argument to be of type boolean, string, number or null, but found ${nr(_r(r))} instead.`);if(!jn(i,["string","array"]))throw new Tr(`Expected second argument to be of type array or string, but found ${nr(_r(i))} instead.`);if(this.fromIndex){const o=this.fromIndex.evaluate(e);return i.indexOf(r,o)}return i.indexOf(r)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var qv=ml;class hh{constructor(e,r,i,o,a,n){this.inputType=e,this.type=r,this.input=i,this.cases=o,this.outputs=a,this.otherwise=n}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 i,o;r.expectedType&&r.expectedType.kind!=="value"&&(o=r.expectedType);const a={},n=[];for(let c=2;c<e.length-1;c+=2){let u=e[c];const h=e[c+1];Array.isArray(u)||(u=[u]);const d=r.concat(c);if(u.length===0)return d.error("Expected at least one branch label.");for(const f of u){if(typeof f!="number"&&typeof f!="string")return d.error("Branch labels must be numbers or strings.");if(typeof f=="number"&&Math.abs(f)>Number.MAX_SAFE_INTEGER)return d.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof f=="number"&&Math.floor(f)!==f)return d.error("Numeric branch labels must be integer values.");if(i){if(d.checkSubtype(i,_r(f)))return null}else i=_r(f);if(a[String(f)]!==void 0)return d.error("Branch labels must be unique.");a[String(f)]=n.length}const p=r.parse(h,c,o);if(!p)return null;o=o||p.type,n.push(p)}const s=r.parse(e[1],1,gt);if(!s)return null;const l=r.parse(e[e.length-1],e.length-1,o);return l?s.type.kind!=="value"&&r.concat(1).checkSubtype(i,s.type)?null:new hh(i,o,s,a,n,l):null}evaluate(e){const r=this.input.evaluate(e);return(_r(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()}serialize(){const e=["match",this.input.serialize()],r=Object.keys(this.cases).sort(),i=[],o={};for(const n of r){const s=o[this.cases[n]];s===void 0?(o[this.cases[n]]=i.length,i.push([this.cases[n],[n]])):i[s][1].push(n)}const a=n=>this.inputType.kind==="number"?Number(n):n;for(const[n,s]of i)e.push(s.length===1?a(s[0]):s.map(a)),e.push(this.outputs[n].serialize());return e.push(this.otherwise.serialize()),e}}var Zv=hh;class dh{constructor(e,r,i){this.type=e,this.branches=r,this.otherwise=i}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 i;r.expectedType&&r.expectedType.kind!=="value"&&(i=r.expectedType);const o=[];for(let n=1;n<e.length-1;n+=2){const s=r.parse(e[n],n,yt);if(!s)return null;const l=r.parse(e[n+1],n+1,i);if(!l)return null;o.push([s,l]),i=i||l.type}const a=r.parse(e[e.length-1],e.length-1,i);return a?new dh(i,o,a):null}evaluate(e){for(const[r,i]of this.branches)if(r.evaluate(e))return i.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[r,i]of this.branches)e(r),e(i);e(this.otherwise)}outputDefined(){return this.branches.every(([e,r])=>r.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(r=>{e.push(r.serialize())}),e}}var $v=dh;class gl{constructor(e,r,i,o){this.type=e,this.input=r,this.beginIndex=i,this.endIndex=o}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 i=r.parse(e[1],1,gt),o=r.parse(e[2],2,ye);if(!i||!o)return null;if(!Au(i.type,[Wr(gt),ft,gt]))return r.error(`Expected first argument to be of type array or string, but found ${nr(i.type)} instead`);if(e.length===4){const a=r.parse(e[3],3,ye);return a?new gl(i.type,i,o,a):null}return new gl(i.type,i,o)}evaluate(e){const r=this.input.evaluate(e),i=this.beginIndex.evaluate(e);if(!jn(r,["string","array"]))throw new Tr(`Expected first argument to be of type array or string, but found ${nr(_r(r))} instead.`);if(this.endIndex){const o=this.endIndex.evaluate(e);return r.slice(i,o)}return r.slice(i)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var Hv=gl;function Jf(t,e){return t==="=="||t==="!="?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 Kf(t,e,r,i){return i.compare(e,r)===0}function tn(t,e,r){const i=t!=="=="&&t!=="!=";return class dv{constructor(a,n,s){this.type=yt,this.lhs=a,this.rhs=n,this.collator=s,this.hasUntypedArgument=a.type.kind==="value"||n.type.kind==="value"}static parse(a,n){if(a.length!==3&&a.length!==4)return n.error("Expected two or three arguments.");const s=a[0];let l=n.parse(a[1],1,gt);if(!l)return null;if(!Jf(s,l.type))return n.concat(1).error(`"${s}" comparisons are not supported for type '${nr(l.type)}'.`);let c=n.parse(a[2],2,gt);if(!c)return null;if(!Jf(s,c.type))return n.concat(2).error(`"${s}" comparisons are not supported for type '${nr(c.type)}'.`);if(l.type.kind!==c.type.kind&&l.type.kind!=="value"&&c.type.kind!=="value")return n.error(`Cannot compare types '${nr(l.type)}' and '${nr(c.type)}'.`);i&&(l.type.kind==="value"&&c.type.kind!=="value"?l=new no(c.type,[l]):l.type.kind!=="value"&&c.type.kind==="value"&&(c=new no(l.type,[c])));let u=null;if(a.length===4){if(l.type.kind!=="string"&&c.type.kind!=="string"&&l.type.kind!=="value"&&c.type.kind!=="value")return n.error("Cannot use collator to compare non-string types.");if(u=n.parse(a[3],3,il),!u)return null}return new dv(l,c,u)}evaluate(a){const n=this.lhs.evaluate(a),s=this.rhs.evaluate(a);if(i&&this.hasUntypedArgument){const l=_r(n),c=_r(s);if(l.kind!==c.kind||l.kind!=="string"&&l.kind!=="number")throw new Tr(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${l.kind}, ${c.kind}) instead.`)}if(this.collator&&!i&&this.hasUntypedArgument){const l=_r(n),c=_r(s);if(l.kind!=="string"||c.kind!=="string")return e(a,n,s)}return this.collator?r(a,n,s,this.collator.evaluate(a)):e(a,n,s)}eachChild(a){a(this.lhs),a(this.rhs),this.collator&&a(this.collator)}outputDefined(){return!0}serialize(){const a=[t];return this.eachChild(n=>{a.push(n.serialize())}),a}}}const Wv=tn("==",function(t,e,r){return e===r},Kf),Xv=tn("!=",function(t,e,r){return e!==r},function(t,e,r,i){return!Kf(0,e,r,i)}),Yv=tn("<",function(t,e,r){return e<r},function(t,e,r,i){return i.compare(e,r)<0}),Jv=tn(">",function(t,e,r){return e>r},function(t,e,r,i){return i.compare(e,r)>0}),Kv=tn("<=",function(t,e,r){return e<=r},function(t,e,r,i){return i.compare(e,r)<=0}),Qv=tn(">=",function(t,e,r){return e>=r},function(t,e,r,i){return i.compare(e,r)>=0});class ph{constructor(e,r,i,o,a,n){this.type=ft,this.number=e,this.locale=r,this.currency=i,this.unit=o,this.minFractionDigits=a,this.maxFractionDigits=n}static parse(e,r){if(e.length!==3)return r.error("Expected two arguments.");const i=r.parse(e[1],1,ye);if(!i)return null;const o=e[2];if(typeof o!="object"||Array.isArray(o))return r.error("NumberFormat options argument must be an object.");let a=null;if(o.locale&&(a=r.parse(o.locale,1,ft),!a))return null;let n=null;if(o.currency&&(n=r.parse(o.currency,1,ft),!n))return null;let s=null;if(o.unit&&(s=r.parse(o.unit,1,ft),!s))return null;let l=null;if(o["min-fraction-digits"]&&(l=r.parse(o["min-fraction-digits"],1,ye),!l))return null;let c=null;return o["max-fraction-digits"]&&(c=r.parse(o["max-fraction-digits"],1,ye),!c)?null:new ph(i,a,n,s,l,c)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class fh{constructor(e){this.type=ye,this.input=e}static parse(e,r){if(e.length!==2)return r.error(`Expected 1 argument, but found ${e.length-1} instead.`);const i=r.parse(e[1],1);return i?i.type.kind!=="array"&&i.type.kind!=="string"&&i.type.kind!=="value"?r.error(`Expected argument of type string or array, but found ${nr(i.type)} instead.`):new fh(i):null}evaluate(e){const r=this.input.evaluate(e);if(typeof r=="string"||Array.isArray(r))return r.length;throw new Tr(`Expected value to be of type string or array, but found ${nr(_r(r))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(r=>{e.push(r.serialize())}),e}}function mh(t){return function(){t=1831565813+(t|=0)|0;let e=Math.imul(t^t>>>15,1|t);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const Qf={"==":Wv,"!=":Xv,">":Jv,"<":Yv,">=":Qv,"<=":Kv,array:no,at:jv,boolean:no,case:$v,coalesce:Xf,collator:nl,format:Zn,image:$n,in:Gv,"index-of":qv,interpolate:Gi,"interpolate-hcl":Gi,"interpolate-lab":Gi,length:fh,let:Yf,literal:qn,match:Zv,number:no,"number-format":ph,object:no,slice:Hv,step:th,string:no,"to-boolean":ha,"to-color":ha,"to-number":ha,"to-string":ha,var:Nf,within:Nu,distance:Xu};function em(t,[e,r,i,o]){e=e.evaluate(t),r=r.evaluate(t),i=i.evaluate(t);const a=o?o.evaluate(t):1,n=wf(e,r,i,a);if(n)throw new Tr(n);return new Qe(e/255*a,r/255*a,i/255*a,a)}function tm(t,[e,r,i,o]){e=e.evaluate(t),r=r.evaluate(t),i=i.evaluate(t);const a=o?o.evaluate(t):1,n=function(c,u,h,d){return typeof c=="number"&&c>=0&&c<=360?typeof u=="number"&&u>=0&&u<=100&&typeof h=="number"&&h>=0&&h<=100?d===void 0||typeof d=="number"&&d>=0&&d<=1?null:`Invalid hsla value [${[c,u,h,d].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof d=="number"?[c,u,h,d]:[c,u,h]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof d=="number"?[c,u,h,d]:[c,u,h]).join(", ")}]: 'h' must be between 0 and 360.`}(e,r,i,a);if(n)throw new Tr(n);const s=`hsla(${e}, ${r}%, ${i}%, ${a})`,l=Qe.parse(s);if(!l)throw new Tr(`Failed to parse HSLA color: ${s}`);return l}function rm(t,e){return t in e}function gh(t,e){const r=e[t];return r===void 0?null:r}function im(t,e){switch(t){case"string":return String(e);case"number":return+e;case"boolean":return!!e;case"color":return Qe.parse(e)}return e}function om(t,e,r,i){return i!==void 0&&(t=i*Math.round(t/i)),e!==void 0&&t<e&&(t=e),r!==void 0&&t>r&&(t=r),t}function am(t,e,r){r.length&&(e+=`${r}`);const i=t.getConfig(e);if(!i)return null;const{type:o,value:a,values:n,minValue:s,maxValue:l,stepValue:c}=i,u=i.default.evaluate(t);let h=a?a.evaluate(t):u;return o&&(h=im(o,h)),a!==void 0&&h!==void 0&&n&&!n.includes(h)&&(h=u,o&&(h=im(o,h))),h===void 0||s===void 0&&l===void 0&&c===void 0||(typeof h=="number"?h=om(h,s,l,c):Array.isArray(h)&&(h=h.map(d=>typeof d=="number"?om(d,s,l,c):d))),h}function fa(t){return{type:t}}ji.register(Qf,{error:[{kind:"error"},[ft],(t,[e])=>{throw new Tr(e.evaluate(t))}],typeof:[ft,[gt],(t,[e])=>nr(_r(e.evaluate(t)))],"to-rgba":[Wr(ye,4),[fi],(t,[e])=>e.evaluate(t).toArray()],rgb:[fi,[ye,ye,ye],em],rgba:[fi,[ye,ye,ye,ye],em],hsl:[fi,[ye,ye,ye],tm],hsla:[fi,[ye,ye,ye,ye],tm],has:{type:yt,overloads:[[[ft],(t,[e])=>rm(e.evaluate(t),t.properties())],[[ft,Wa],(t,[e,r])=>rm(e.evaluate(t),r.evaluate(t))]]},get:{type:gt,overloads:[[[ft],(t,[e])=>gh(e.evaluate(t),t.properties())],[[ft,Wa],(t,[e,r])=>gh(e.evaluate(t),r.evaluate(t))]]},config:{type:gt,overloads:[[[ft],(t,[e])=>am(t,e.evaluate(t),"")],[[ft,ft],(t,[e,r])=>am(t,e.evaluate(t),r.evaluate(t))]]},"feature-state":[gt,[ft],(t,[e])=>gh(e.evaluate(t),t.featureState||{})],properties:[Wa,[],t=>t.properties()],"geometry-type":[ft,[],t=>t.geometryType()],id:[gt,[],t=>t.id()],zoom:[ye,[],t=>t.globals.zoom],pitch:[ye,[],t=>t.globals.pitch||0],"distance-from-center":[ye,[],t=>t.distanceFromCenter()],"measure-light":[ye,[ft],(t,[e])=>t.measureLight(e.evaluate(t))],"heatmap-density":[ye,[],t=>t.globals.heatmapDensity||0],"line-progress":[ye,[],t=>t.globals.lineProgress||0],"raster-value":[ye,[],t=>t.globals.rasterValue||0],"sky-radial-progress":[ye,[],t=>t.globals.skyRadialProgress||0],accumulated:[gt,[],t=>t.globals.accumulated===void 0?null:t.globals.accumulated],"+":[ye,fa(ye),(t,e)=>{let r=0;for(const i of e)r+=i.evaluate(t);return r}],"*":[ye,fa(ye),(t,e)=>{let r=1;for(const i of e)r*=i.evaluate(t);return r}],"-":{type:ye,overloads:[[[ye,ye],(t,[e,r])=>e.evaluate(t)-r.evaluate(t)],[[ye],(t,[e])=>-e.evaluate(t)]]},"/":[ye,[ye,ye],(t,[e,r])=>e.evaluate(t)/r.evaluate(t)],"%":[ye,[ye,ye],(t,[e,r])=>e.evaluate(t)%r.evaluate(t)],ln2:[ye,[],()=>Math.LN2],pi:[ye,[],()=>Math.PI],e:[ye,[],()=>Math.E],"^":[ye,[ye,ye],(t,[e,r])=>Math.pow(e.evaluate(t),r.evaluate(t))],sqrt:[ye,[ye],(t,[e])=>Math.sqrt(e.evaluate(t))],log10:[ye,[ye],(t,[e])=>Math.log(e.evaluate(t))/Math.LN10],ln:[ye,[ye],(t,[e])=>Math.log(e.evaluate(t))],log2:[ye,[ye],(t,[e])=>Math.log(e.evaluate(t))/Math.LN2],sin:[ye,[ye],(t,[e])=>Math.sin(e.evaluate(t))],cos:[ye,[ye],(t,[e])=>Math.cos(e.evaluate(t))],tan:[ye,[ye],(t,[e])=>Math.tan(e.evaluate(t))],asin:[ye,[ye],(t,[e])=>Math.asin(e.evaluate(t))],acos:[ye,[ye],(t,[e])=>Math.acos(e.evaluate(t))],atan:[ye,[ye],(t,[e])=>Math.atan(e.evaluate(t))],min:[ye,fa(ye),(t,e)=>Math.min(...e.map(r=>r.evaluate(t)))],max:[ye,fa(ye),(t,e)=>Math.max(...e.map(r=>r.evaluate(t)))],abs:[ye,[ye],(t,[e])=>Math.abs(e.evaluate(t))],round:[ye,[ye],(t,[e])=>{const r=e.evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[ye,[ye],(t,[e])=>Math.floor(e.evaluate(t))],ceil:[ye,[ye],(t,[e])=>Math.ceil(e.evaluate(t))],"filter-==":[yt,[ft,gt],(t,[e,r])=>t.properties()[e.value]===r.value],"filter-id-==":[yt,[gt],(t,[e])=>t.id()===e.value],"filter-type-==":[yt,[ft],(t,[e])=>t.geometryType()===e.value],"filter-<":[yt,[ft,gt],(t,[e,r])=>{const i=t.properties()[e.value],o=r.value;return typeof i==typeof o&&i<o}],"filter-id-<":[yt,[gt],(t,[e])=>{const r=t.id(),i=e.value;return typeof r==typeof i&&r<i}],"filter->":[yt,[ft,gt],(t,[e,r])=>{const i=t.properties()[e.value],o=r.value;return typeof i==typeof o&&i>o}],"filter-id->":[yt,[gt],(t,[e])=>{const r=t.id(),i=e.value;return typeof r==typeof i&&r>i}],"filter-<=":[yt,[ft,gt],(t,[e,r])=>{const i=t.properties()[e.value],o=r.value;return typeof i==typeof o&&i<=o}],"filter-id-<=":[yt,[gt],(t,[e])=>{const r=t.id(),i=e.value;return typeof r==typeof i&&r<=i}],"filter->=":[yt,[ft,gt],(t,[e,r])=>{const i=t.properties()[e.value],o=r.value;return typeof i==typeof o&&i>=o}],"filter-id->=":[yt,[gt],(t,[e])=>{const r=t.id(),i=e.value;return typeof r==typeof i&&r>=i}],"filter-has":[yt,[gt],(t,[e])=>e.value in t.properties()],"filter-has-id":[yt,[],t=>t.id()!==null&&t.id()!==void 0],"filter-type-in":[yt,[Wr(ft)],(t,[e])=>e.value.indexOf(t.geometryType())>=0],"filter-id-in":[yt,[Wr(gt)],(t,[e])=>e.value.indexOf(t.id())>=0],"filter-in-small":[yt,[ft,Wr(gt)],(t,[e,r])=>r.value.indexOf(t.properties()[e.value])>=0],"filter-in-large":[yt,[ft,Wr(gt)],(t,[e,r])=>function(i,o,a,n){for(;a<=n;){const s=a+n>>1;if(o[s]===i)return!0;o[s]>i?n=s-1:a=s+1}return!1}(t.properties()[e.value],r.value,0,r.value.length-1)],all:{type:yt,overloads:[[[yt,yt],(t,[e,r])=>e.evaluate(t)&&r.evaluate(t)],[fa(yt),(t,e)=>{for(const r of e)if(!r.evaluate(t))return!1;return!0}]]},any:{type:yt,overloads:[[[yt,yt],(t,[e,r])=>e.evaluate(t)||r.evaluate(t)],[fa(yt),(t,e)=>{for(const r of e)if(r.evaluate(t))return!0;return!1}]]},"!":[yt,[yt],(t,[e])=>!e.evaluate(t)],"is-supported-script":[yt,[ft],(t,[e])=>{const r=t.globals&&t.globals.isSupportedScript;return!r||r(e.evaluate(t))}],upcase:[ft,[ft],(t,[e])=>e.evaluate(t).toUpperCase()],downcase:[ft,[ft],(t,[e])=>e.evaluate(t).toLowerCase()],concat:[ft,fa(gt),(t,e)=>e.map(r=>Gn(r.evaluate(t))).join("")],"resolved-locale":[ft,[il],(t,[e])=>e.evaluate(t).resolvedLocale()],random:[ye,[ye,ye,gt],(t,e)=>{const[r,i,o]=e.map(n=>n.evaluate(t));if(r>i||r===i)return r;let a;if(typeof o=="string")a=function(n){let s=0;if(n.length===0)return s;for(let l=0;l<n.length;l++)s=(s<<5)-s+n.charCodeAt(l),s&=s;return s}(o);else{if(typeof o!="number")throw new Tr(`Invalid seed input: ${o}`);a=o}return r+mh(a)()*(i-r)}]});var es=Qf;function nm(t){return{result:"success",value:t}}function ma(t){return{result:"error",value:t}}function sm(t,e){return!!t&&!!t.parameters&&t.parameters.indexOf(e)>-1}function ga(t){return t["property-type"]==="data-driven"}function lm(t){return sm(t.expression,"measure-light")}function _h(t){return sm(t.expression,"zoom")}function yh(t){return!!t.expression&&t.expression.interpolated}function _l(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function eb(t){return t}function cm(t,e){const r=e.type==="color",i=t.stops&&typeof t.stops[0][0]=="object",o=i||!(i||t.property!==void 0),a=t.type||(yh(e)?"exponential":"interval");if(r&&((t=oo({},t)).stops&&(t.stops=t.stops.map(c=>[c[0],Qe.parse(c[1])])),t.default=Qe.parse(t.default?t.default:e.default)),t.colorSpace&&t.colorSpace!=="rgb"&&!Wf[t.colorSpace])throw new Error(`Unknown color space: ${t.colorSpace}`);let n,s,l;if(a==="exponential")n=um;else if(a==="interval")n=rb;else if(a==="categorical"){n=tb,s=Object.create(null);for(const c of t.stops)s[c[0]]=c[1];l=typeof t.stops[0][0]}else{if(a!=="identity")throw new Error(`Unknown function type "${a}"`);n=ib}if(i){const c={},u=[];for(let p=0;p<t.stops.length;p++){const f=t.stops[p],m=f[0].zoom;c[m]===void 0&&(c[m]={zoom:m,type:t.type,property:t.property,default:t.default,stops:[]},u.push(m)),c[m].stops.push([f[0].value,f[1]])}const h=[];for(const p of u)h.push([c[p].zoom,cm(c[p],e)]);const d={name:"linear"};return{kind:"composite",interpolationType:d,interpolationFactor:Gi.interpolationFactor.bind(void 0,d),zoomStops:h.map(p=>p[0]),evaluate:({zoom:p},f)=>um({stops:h,base:t.base},e,p).evaluate(p,f)}}if(o){const c=a==="exponential"?{name:"exponential",base:t.base!==void 0?t.base:1}:null;return{kind:"camera",interpolationType:c,interpolationFactor:Gi.interpolationFactor.bind(void 0,c),zoomStops:t.stops.map(u=>u[0]),evaluate:({zoom:u})=>n(t,e,u,s,l)}}return{kind:"source",evaluate(c,u){const h=u&&u.properties?u.properties[t.property]:void 0;return h===void 0?ts(t.default,e.default):n(t,e,h,s,l)}}}function ts(t,e,r){return t!==void 0?t:e!==void 0?e:r!==void 0?r:void 0}function tb(t,e,r,i,o){return ts(typeof r===o?i[r]:void 0,t.default,e.default)}function rb(t,e,r){if(kt(r)!=="number")return ts(t.default,e.default);const i=t.stops.length;if(i===1||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[i-1][0])return t.stops[i-1][1];const o=dl(t.stops.map(a=>a[0]),r);return t.stops[o][1]}function um(t,e,r){const i=t.base!==void 0?t.base:1;if(kt(r)!=="number")return ts(t.default,e.default);const o=t.stops.length;if(o===1||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[o-1][0])return t.stops[o-1][1];const a=dl(t.stops.map(u=>u[0]),r),n=function(u,h,d,p){const f=p-d,m=u-d;return f===0?0:h===1?m/f:(Math.pow(h,m)-1)/(Math.pow(h,f)-1)}(r,i,t.stops[a][0],t.stops[a+1][0]),s=t.stops[a][1],l=t.stops[a+1][1];let c=pl[e.type]||eb;if(t.colorSpace&&t.colorSpace!=="rgb"){const u=Wf[t.colorSpace];c=(h,d)=>u.reverse(u.interpolate(u.forward(h),u.forward(d),n))}return typeof s.evaluate=="function"?{evaluate(...u){const h=s.evaluate.apply(void 0,u),d=l.evaluate.apply(void 0,u);if(h!==void 0&&d!==void 0)return c(h,d,n)}}:c(s,l,n)}function ib(t,e,r){return e.type==="color"?r=Qe.parse(r):e.type==="formatted"?r=Yr.fromString(r.toString()):e.type==="resolvedImage"?r=mi.fromString(r.toString()):kt(r)===e.type||e.type==="enum"&&e.values[r]||(r=void 0),ts(r,t.default,e.default)}class xh{constructor(e,r,i){this.expression=e,this._warningHistory={},this._evaluator=new kf(i),this._defaultValue=r?function(o){return o.type==="color"&&(_l(o.default)||Array.isArray(o.default))?new Qe(0,0,0,0):o.type==="color"?Qe.parse(o.default)||null:o.default===void 0?null:o.default}(r):null,this._enumValues=r&&r.type==="enum"?r.values:null}evaluateWithoutErrorHandling(e,r,i,o,a,n,s,l){return this._evaluator.globals=e,this._evaluator.feature=r,this._evaluator.featureState=i,this._evaluator.canonical=o||null,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=n,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=l||null,this.expression.evaluate(this._evaluator)}evaluate(e,r,i,o,a,n,s,l){this._evaluator.globals=e,this._evaluator.feature=r||null,this._evaluator.featureState=i||null,this._evaluator.canonical=o||null,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=n||null,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=l||null;try{const c=this.expression.evaluate(this._evaluator);if(c==null||typeof c=="number"&&c!=c)return this._defaultValue;if(this._enumValues&&!(c in this._enumValues))throw new Tr(`Expected value to be one of ${Object.keys(this._enumValues).map(u=>JSON.stringify(u)).join(", ")}, but found ${JSON.stringify(c)} instead.`);return c}catch(c){return this._warningHistory[c.message]||(this._warningHistory[c.message]=!0,typeof console<"u"&&console.warn(c.message)),this._defaultValue}}}function yl(t){return Array.isArray(t)&&t.length>0&&typeof t[0]=="string"&&t[0]in es}function Co(t,e,r){const i=new Vf(es,[],e?function(a){const n={color:fi,string:ft,number:ye,enum:ft,boolean:yt,formatted:Nn,resolvedImage:Vn};return a.type==="array"?Wr(n[a.value]||gt,a.length):n[a.type]}(e):void 0,void 0,void 0,r),o=i.parse(t,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return o?nm(new xh(o,e,r)):ma(i.errors)}class vh{constructor(e,r,i){this.kind=e,this._styleExpression=r,this.isLightConstant=i,this.isStateDependent=e!=="constant"&&!Jn(r.expression),this.isConfigDependent=!Yu(r.expression)}evaluateWithoutErrorHandling(e,r,i,o,a,n){return this._styleExpression.evaluateWithoutErrorHandling(e,r,i,o,a,n)}evaluate(e,r,i,o,a,n){return this._styleExpression.evaluate(e,r,i,o,a,n)}}class Io{constructor(e,r,i,o,a){this.kind=e,this.zoomStops=i,this._styleExpression=r,this.isStateDependent=e!=="camera"&&!Jn(r.expression),this.isLightConstant=a,this.isConfigDependent=!Yu(r.expression),this.interpolationType=o}evaluateWithoutErrorHandling(e,r,i,o,a,n){return this._styleExpression.evaluateWithoutErrorHandling(e,r,i,o,a,n)}evaluate(e,r,i,o,a,n){return this._styleExpression.evaluate(e,r,i,o,a,n)}interpolationFactor(e,r,i){return this.interpolationType?Gi.interpolationFactor(this.interpolationType,e,r,i):0}}function bh(t,e,r){if((t=Co(t,e,r)).result==="error")return t;const i=t.value.expression,o=Ka(i);if(!o&&!ga(e))return ma([new Ui("","data expressions not supported")]);const a=Qa(i,["zoom","pitch","distance-from-center"]);if(!a&&!_h(e))return ma([new Ui("","zoom expressions not supported")]);const n=Qa(i,["measure-light"]);if(!n&&!lm(e))return ma([new Ui("","measure-light expression not supported")]);const s=e.expression&&e.expression.relaxZoomRestriction,l=vl(i);return l||a||s?l instanceof Ui?ma([l]):l instanceof Gi&&!yh(e)?ma([new Ui("",'"interpolate" expressions cannot be used with this property')]):nm(l?new Io(o?"camera":"composite",t.value,l.labels,l instanceof Gi?l.interpolation:void 0,n):new vh(o?"constant":"source",t.value,n)):ma([new Ui("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class xl{constructor(e,r){this._parameters=e,this._specification=r,oo(this,cm(this._parameters,this._specification))}static deserialize(e){return new xl(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function vl(t){let e=null;if(t instanceof Yf)e=vl(t.result);else if(t instanceof Xf){for(const r of t.args)if(e=vl(r),e)break}else(t instanceof th||t instanceof Gi)&&t.input instanceof ji&&t.input.name==="zoom"&&(e=t);return e instanceof Ui||t.eachChild(r=>{const i=vl(r);i instanceof Ui?e=i:e&&i&&e!==i&&(e=new Ui("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}function gi(t){const e=t.key,r=t.value,i=t.valueSpec||{},o=t.objectElementValidators||{},a=t.style,n=t.styleSpec;let s=[];const l=kt(r);if(l!=="object")return[new be(e,r,`object expected, ${l} found`)];for(const c in r){const u=c.split(".")[0];let h;o[u]?h=o[u]:i[u]?h=Mr:o["*"]?h=o["*"]:i["*"]&&(h=Mr),h?s=s.concat(h({key:(e&&`${e}.`)+c,value:r[c],valueSpec:i[u]||i["*"],style:a,styleSpec:n,object:r,objectKey:c},r)):s.push(new ua(e,r[c],`unknown property "${c}"`))}for(const c in i)o[c]||i[c].required&&i[c].default===void 0&&r[c]===void 0&&s.push(new be(e,r,`missing required property "${c}"`));return s}function hm(t){const e=t.value,r=t.valueSpec,i=t.style,o=t.styleSpec,a=t.key,n=t.arrayElementValidator||Mr;if(kt(e)!=="array")return[new be(a,e,`array expected, ${kt(e)} found`)];if(r.length&&e.length!==r.length)return[new be(a,e,`array length ${r.length} expected, length ${e.length} found`)];if(r["min-length"]&&e.length<r["min-length"])return[new be(a,e,`array length at least ${r["min-length"]} expected, length ${e.length} found`)];let s={type:r.value,values:r.values,minimum:r.minimum,maximum:r.maximum,function:void 0};o.$version<7&&(s.function=r.function),kt(r.value)==="object"&&(s=r.value);let l=[];for(let c=0;c<e.length;c++)l=l.concat(n({array:e,arrayIndex:c,value:e[c],valueSpec:s,style:i,styleSpec:o,key:`${a}[${c}]`},!0));return l}function dm(t){const e=t.key,r=t.value,i=t.valueSpec;let o=kt(r);if(o==="number"&&r!=r&&(o="NaN"),o!=="number")return[new be(e,r,`number expected, ${o} found`)];if("minimum"in i){let a=i.minimum;if(kt(i.minimum)==="array"&&(a=i.minimum[t.arrayIndex]),r<a)return[new be(e,r,`${r} is less than the minimum value ${a}`)]}if("maximum"in i){let a=i.maximum;if(kt(i.maximum)==="array"&&(a=i.maximum[t.arrayIndex]),r>a)return[new be(e,r,`${r} is greater than the maximum value ${a}`)]}return[]}function pm(t){const e=t.valueSpec,r=hr(t.value.type);let i,o,a,n={};const s=r!=="categorical"&&t.value.property===void 0,l=!s,c=kt(t.value.stops)==="array"&&kt(t.value.stops[0])==="array"&&kt(t.value.stops[0][0])==="object",u=gi({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(p){if(r==="identity")return[new be(p.key,p.value,'identity function may not have a "stops" property')];let f=[];const m=p.value;return f=f.concat(hm({key:p.key,value:m,valueSpec:p.valueSpec,style:p.style,styleSpec:p.styleSpec,arrayElementValidator:h})),kt(m)==="array"&&m.length===0&&f.push(new be(p.key,m,"array must have at least one stop")),f},default:function(p){return Mr({key:p.key,value:p.value,valueSpec:e,style:p.style,styleSpec:p.styleSpec})}}});return r==="identity"&&s&&u.push(new be(t.key,t.value,'missing required property "property"')),r==="identity"||t.value.stops||u.push(new be(t.key,t.value,'missing required property "stops"')),r==="exponential"&&t.valueSpec.expression&&!yh(t.valueSpec)&&u.push(new be(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!ga(t.valueSpec)?u.push(new be(t.key,t.value,"property functions not supported")):s&&!_h(t.valueSpec)&&u.push(new be(t.key,t.value,"zoom functions not supported"))),r!=="categorical"&&!c||t.value.property!==void 0||u.push(new be(t.key,t.value,'"property" property is required')),u;function h(p){let f=[];const m=p.value,g=p.key;if(kt(m)!=="array")return[new be(g,m,`array expected, ${kt(m)} found`)];if(m.length!==2)return[new be(g,m,`array length 2 expected, length ${m.length} found`)];if(c){if(kt(m[0])!=="object")return[new be(g,m,`object expected, ${kt(m[0])} found`)];if(m[0].zoom===void 0)return[new be(g,m,"object stop key must have zoom")];if(m[0].value===void 0)return[new be(g,m,"object stop key must have value")];const _=hr(m[0].zoom);if(typeof _!="number")return[new be(g,m[0].zoom,"stop zoom values must be numbers")];if(a&&a>_)return[new be(g,m[0].zoom,"stop zoom values must appear in ascending order")];_!==a&&(a=_,o=void 0,n={}),f=f.concat(gi({key:`${g}[0]`,value:m[0],valueSpec:{zoom:{}},style:p.style,styleSpec:p.styleSpec,objectElementValidators:{zoom:dm,value:d}}))}else f=f.concat(d({key:`${g}[0]`,value:m[0],style:p.style,styleSpec:p.styleSpec},m));return yl(ao(m[1]))?f.concat([new be(`${g}[1]`,m[1],"expressions are not allowed in function stops.")]):f.concat(Mr({key:`${g}[1]`,value:m[1],valueSpec:e,style:p.style,styleSpec:p.styleSpec}))}function d(p,f){const m=kt(p.value),g=hr(p.value),_=p.value!==null?p.value:f;if(i){if(m!==i)return[new be(p.key,_,`${m} stop domain type must match previous stop domain type ${i}`)]}else i=m;if(m!=="number"&&m!=="string"&&m!=="boolean"&&typeof g!="number"&&typeof g!="string"&&typeof g!="boolean")return[new be(p.key,_,"stop domain value must be a number, string, or boolean")];if(m!=="number"&&r!=="categorical"){let y=`number expected, ${m} found`;return ga(e)&&r===void 0&&(y+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new be(p.key,_,y)]}return r!=="categorical"||m!=="number"||typeof g=="number"&&isFinite(g)&&Math.floor(g)===g?r!=="categorical"&&m==="number"&&typeof g=="number"&&typeof o=="number"&&o!==void 0&&g<o?[new be(p.key,_,"stop domain values must appear in ascending order")]:(o=g,r==="categorical"&&g in n?[new be(p.key,_,"stop domain values must be unique")]:(n[g]=!0,[])):[new be(p.key,_,`integer expected, found ${String(g)}`)]}}function _a(t){const e=(t.expressionContext==="property"?bh:Co)(ao(t.value),t.valueSpec);if(e.result==="error")return e.value.map(i=>new be(`${t.key}${i.key}`,t.value,i.message));const r=e.value.expression||e.value._styleExpression.expression;if(t.expressionContext==="property"&&t.propertyKey==="text-font"&&!r.outputDefined())return[new be(t.key,t.value,`Invalid data expression for "${t.propertyKey}". Output values must be contained as literals within the expression.`)];if(t.expressionContext==="property"&&t.propertyType==="layout"&&!Jn(r))return[new be(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if(t.expressionContext==="filter")return fm(r,t);if(t.expressionContext&&t.expressionContext.indexOf("cluster")===0){if(!Qa(r,["zoom","feature-state"]))return[new be(t.key,t.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(t.expressionContext==="cluster-initial"&&!Ka(r))return[new be(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function fm(t,e){const r=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(e.valueSpec&&e.valueSpec.expression)for(const o of e.valueSpec.expression.parameters)r.delete(o);if(r.size===0)return[];const i=[];return t instanceof ji&&r.has(t.name)?[new be(e.key,e.value,`["${t.name}"] expression is not supported in a filter for a ${e.object.type} layer with id: ${e.object.id}`)]:(t.eachChild(o=>{i.push(...fm(o,e))}),i)}function bl(t){const e=t.key,r=t.value,i=t.valueSpec,o=[];return Array.isArray(i.values)?i.values.indexOf(hr(r))===-1&&o.push(new be(e,r,`expected one of [${i.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(i.values).indexOf(hr(r))===-1&&o.push(new be(e,r,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(r)} found`)),o}function wh(t){if(t===!0||t===!1)return!0;if(!Array.isArray(t)||t.length===0)return!1;switch(t[0]){case"has":return t.length>=2&&t[1]!=="$id"&&t[1]!=="$type";case"in":return t.length>=3&&(typeof t[1]!="string"||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return t.length!==3||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(const e of t.slice(1))if(!wh(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}function wl(t,e="fill"){if(t==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};wh(t)||(t=kl(t));const r=t;let i=!0;try{i=function(c){if(!rn(c))return c;let u=ao(c);return gm(u),u=mm(u),u}(r)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
|
|
2
2
|
This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md
|
|
3
3
|
and paste the contents of this message in the report.
|
|
4
4
|
Thank you!
|