@mapsindoors/map-template 1.97.10 → 1.97.12
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/{GoogleMapsMap-Cma1KCrB.mjs → GoogleMapsMap-BrMEHl4v.mjs} +1 -1
- package/dist/{MapboxMap-BaVKjDpt.mjs → MapboxMap-u-JD9UHx.mjs} +1 -1
- package/dist/mapsindoors-react.es.js +1 -1
- package/dist/mapsindoors-react.umd.js +1 -1
- package/dist/mapsindoors-webcomponent.es.js +2 -2
- package/dist/{reactcomponent-CqM2nxww.mjs → reactcomponent-DbtyzOsi.mjs} +2 -2
- package/package.json +1 -2
|
@@ -83,7 +83,7 @@ Minimum version required to store current data is: `+Pe+`.
|
|
|
83
83
|
${dr?"mapsindoors-map--show-my-position":"mapsindoors-map--hide-my-position"}
|
|
84
84
|
${fr?"mapsindoors-map--kiosk":""}
|
|
85
85
|
${br?"mapsindoors-map--disable-right-click":""}
|
|
86
|
-
${an===hn.CHAT&&!Ke?"mapsindoors-map--hide-map-controls":""}`,children:[Ne.jsx(vce,{}),!Ce&&Ne.jsx(Cq,{}),Ye.length>1&&ji&&Ne.jsx(b6,{onOpen:()=>_t(hn.VENUE_SELECTOR),onClose:()=>Pt(),active:an===hn.VENUE_SELECTOR}),zi&&Ne.jsx(Qce,{}),xi&&Ne.jsx($ce,{}),Ne.jsx(wO,{pushAppView:_t,currentAppView:an,appViews:hn}),Ti&&Ne.jsxs(_e.Fragment,{children:[Ke&&Ne.jsx(U8,{directionsFromLocation:Dr,directionsToLocation:Ii,pushAppView:_t,currentAppView:an,appViews:hn,onRouteFinished:()=>Ko()}),!Ke&&Ne.jsx(F8,{directionsFromLocation:Dr,directionsToLocation:Ii,pushAppView:_t,currentAppView:an,appViews:hn,onRouteFinished:()=>Ko()})]},Ki),Ne.jsx(f6,{useMapProviderModule:ue,onMapPositionKnown:()=>qr(),onMapPositionInvestigating:()=>Zn(!0),onLocationClick:Hn=>Io(Hn),onViewModeSwitchKnown:Hn=>On(Hn),resetCount:Ki,mapOptions:H,gmMapId:le,isWayfindingOrDirections:an===hn.WAYFINDING||an===hn.DIRECTIONS,currentLanguage:un,setLanguage:Hn=>{Jt(Hn),J(!0)},devicePosition:ne})]})})}function Sl(e,n,s,c){let d;return e===!0&&!Nr(c)?c===!0||c==="true"?d=!0:(c===!1||c!=="true")&&(d=!1):Nr(s)?Nr(n)||(d=n):d=typeof s=="boolean"?s:!1,d}IO.propTypes={apiKey:ht.string,gmApiKey:ht.string,mapboxAccessToken:ht.string,venue:ht.string,locationId:ht.string,primaryColor:ht.string,logo:ht.string,appUserRoles:ht.arrayOf(ht.string),directionsFrom:ht.string,directionsTo:ht.string,externalIDs:ht.arrayOf(ht.string),tileStyle:ht.string,startZoomLevel:ht.number,pitch:ht.number,bearing:ht.number,supportsUrlParameters:ht.bool,gmMapId:ht.string,useMapProviderModule:ht.bool,kioskOriginLocationId:ht.string,timeout:ht.number,language:ht.string,useKeyboard:ht.bool,miTransitionLevel:ht.number,category:ht.string,searchAllVenues:ht.bool,hideNonMatches:ht.bool,showExternalIDs:ht.bool,showRoadNames:ht.bool,searchExternalLocations:ht.bool,center:ht.string,useAppTitle:ht.bool,showMapMarkers:ht.bool,mapboxMapStyle:ht.string,devicePosition:ht.object,enableKioskFullReload:ht.bool,kioskReloadTime:ht.number};function IO(e){const[n,s]=_e.useState();return _e.useEffect(()=>{const c=window.location.search,d=new URLSearchParams(c),y={apiKey:"mapspeople3d",useMapProviderModule:!1,useKeyboard:!1,searchAllVenues:!1,searchExternalLocations:!0,showExternalIDs:!1,hideNonMatches:!1,useAppTitle:!1},_=d.get("apiKey"),o=d.get("venue"),M=d.get("locationId"),D=d.get("logo"),E=d.get("directionsFrom"),z=d.get("directionsTo"),B=d.get("tileStyle"),U=Number(d.get("startZoomLevel")),W=Number(d.get("pitch")),le=Number(d.get("bearing")),ue=d.get("gmApiKey"),te=d.get("mapboxAccessToken"),G=d.get("primaryColor"),X=d.get("appUserRoles")?.split(","),de=d.get("externalIDs")?.split(","),xe=d.get("gmMapId"),oe=d.get("kioskOriginLocationId"),Se=Number(d.get("timeout")),Ie=d.get("language"),Ae=Number(d.get("miTransitionLevel")),pe=d.get("category"),Pe=d.get("useMapProviderModule"),Re=d.get("useKeyboard"),Oe=d.get("searchAllVenues"),it=d.get("hideNonMatches"),xt=d.get("showExternalIDs"),Et=d.get("showRoadNames"),ne=d.get("searchExternalLocations"),ye=d.get("center"),S=d.get("useAppTitle"),R=d.get("showMapMarkers"),J=d.get("mapboxMapStyle"),H=d.get("enableKioskFullReload"),V=Number(d.get("kioskReloadTime")),he=e.supportsUrlParameters&&_?_:e.apiKey||y.apiKey;let Me=e.supportsUrlParameters&&o?o:e.venue||y.venue;he==="mapspeople3d"&&!Me&&(Me="AUSTINOFFICE"),s({apiKey:he,venue:Me,locationId:e.supportsUrlParameters&&M?M:e.locationId,logo:e.supportsUrlParameters&&D?D:e.logo,directionsFrom:e.supportsUrlParameters&&E?E:e.directionsFrom,directionsTo:e.supportsUrlParameters&&z?z:e.directionsTo,tileStyle:e.supportsUrlParameters&&B?B:e.tileStyle,startZoomLevel:e.supportsUrlParameters&&U?U:e.startZoomLevel,pitch:e.supportsUrlParameters&&W?W:e.pitch,bearing:e.supportsUrlParameters&&le?le:e.bearing,gmApiKey:e.supportsUrlParameters&&ue?ue:e.gmApiKey,mapboxAccessToken:e.supportsUrlParameters&&te?te:e.mapboxAccessToken,primaryColor:e.supportsUrlParameters&&G?"#"+G:e.primaryColor,appUserRoles:e.supportsUrlParameters&&X?X:e.appUserRoles,externalIDs:e.supportsUrlParameters&&de?de:e.externalIDs,gmMapId:e.supportsUrlParameters&&xe?xe:e.gmMapId,kioskOriginLocationId:e.supportsUrlParameters&&oe?oe:e.kioskOriginLocationId,timeout:e.supportsUrlParameters&&Se?Se:e.timeout,language:e.supportsUrlParameters&&Ie?Ie:e.language,miTransitionLevel:e.supportsUrlParameters&&Ae?Ae:e.miTransitionLevel,category:e.supportsUrlParameters&&pe?pe:e.category,center:e.supportsUrlParameters&&ye?ye:e.center,devicePosition:e.devicePosition,useKeyboard:Sl(e.supportsUrlParameters,y.useKeyboard,e.useKeyboard,Re),useMapProviderModule:Sl(e.supportsUrlParameters,y.useMapProviderModule,e.useMapProviderModule,Pe),searchAllVenues:Sl(e.supportsUrlParameters,y.searchAllVenues,e.searchAllVenues,Oe),hideNonMatches:Sl(e.supportsUrlParameters,y.hideNonMatches,e.hideNonMatches,it),showRoadNames:Sl(e.supportsUrlParameters,y.showRoadNames,e.showRoadNames,Et),showExternalIDs:Sl(e.supportsUrlParameters,y.showExternalIDs,e.showExternalIDs,xt),searchExternalLocations:Sl(e.supportsUrlParameters,y.searchExternalLocations,e.searchExternalLocations,ne),supportsUrlParameters:e.supportsUrlParameters,useAppTitle:Sl(e.supportsUrlParameters,y.useAppTitle,e.useAppTitle,S),showMapMarkers:Sl(e.supportsUrlParameters,y.showMapMarkers,e.showMapMarkers,R),mapboxMapStyle:e.supportsUrlParameters&&J?J:e.mapboxMapStyle,enableKioskFullReload:Sl(e.supportsUrlParameters,!1,e.enableKioskFullReload,H),kioskReloadTime:e.supportsUrlParameters&&V?V:e.kioskReloadTime})},[e]),Ne.jsx(aQ,{children:n&&Ne.jsx(MO,{...n})})}var wv={exports:{}},eue=wv.exports,TO;function tue(){return TO||(TO=1,(function(e,n){(function(s,c){e.exports=c()})(eue,(function(){let s,c,d;function y(o,M){if(!s)s=M;else if(!c)c=M;else{const D={};s(D),d=M(D);const E="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 = {}; ("+s+")(sharedChunk); ("+c+")(undefined, sharedChunk); self.onerror = null;";typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(d.workerUrl=window.URL.createObjectURL(new Blob([E],{type:"text/javascript"})))}}y(["exports"],function(o){var M=1e-6,D=typeof Float32Array<"u"?Float32Array:Array;function E(a,t){var i=t[0],l=t[1],h=t[2],p=t[3],m=i*p-h*l;return m?(a[0]=p*(m=1/m),a[1]=-l*m,a[2]=-h*m,a[3]=i*m,a):null}function z(){var a=new D(9);return D!=Float32Array&&(a[1]=0,a[2]=0,a[3]=0,a[5]=0,a[6]=0,a[7]=0),a[0]=1,a[4]=1,a[8]=1,a}function B(a,t){var i=t[0],l=t[1],h=t[2],p=t[3],m=t[4],x=t[5],b=t[6],T=t[7],A=t[8];return a[0]=m*A-x*T,a[1]=h*T-l*A,a[2]=l*x-h*m,a[3]=x*b-p*A,a[4]=i*A-h*b,a[5]=h*p-i*x,a[6]=p*T-m*b,a[7]=l*b-i*T,a[8]=i*m-l*p,a}function U(a,t,i){var l=t[0],h=t[1],p=t[2],m=t[3],x=t[4],b=t[5],T=t[6],A=t[7],L=t[8],k=i[0],j=i[1],F=i[2],Q=i[3],Z=i[4],K=i[5],ce=i[6],re=i[7],ve=i[8];return a[0]=k*l+j*m+F*T,a[1]=k*h+j*x+F*A,a[2]=k*p+j*b+F*L,a[3]=Q*l+Z*m+K*T,a[4]=Q*h+Z*x+K*A,a[5]=Q*p+Z*b+K*L,a[6]=ce*l+re*m+ve*T,a[7]=ce*h+re*x+ve*A,a[8]=ce*p+re*b+ve*L,a}function W(){var a=new D(16);return D!=Float32Array&&(a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[11]=0,a[12]=0,a[13]=0,a[14]=0),a[0]=1,a[5]=1,a[10]=1,a[15]=1,a}function le(a){var t=new D(16);return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t}function ue(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}function te(a,t){var i=t[0],l=t[1],h=t[2],p=t[3],m=t[4],x=t[5],b=t[6],T=t[7],A=t[8],L=t[9],k=t[10],j=t[11],F=t[12],Q=t[13],Z=t[14],K=t[15],ce=i*x-l*m,re=i*b-h*m,ve=i*T-p*m,we=l*b-h*x,Te=l*T-p*x,We=h*T-p*b,Ue=A*Q-L*F,Ze=A*Z-k*F,Qe=A*K-j*F,$e=L*Z-k*Q,Mt=L*K-j*Q,Dt=k*K-j*Z,Lt=ce*Dt-re*Mt+ve*$e+we*Qe-Te*Ze+We*Ue;return Lt?(a[0]=(x*Dt-b*Mt+T*$e)*(Lt=1/Lt),a[1]=(h*Mt-l*Dt-p*$e)*Lt,a[2]=(Q*We-Z*Te+K*we)*Lt,a[3]=(k*Te-L*We-j*we)*Lt,a[4]=(b*Qe-m*Dt-T*Ze)*Lt,a[5]=(i*Dt-h*Qe+p*Ze)*Lt,a[6]=(Z*ve-F*We-K*re)*Lt,a[7]=(A*We-k*ve+j*re)*Lt,a[8]=(m*Mt-x*Qe+T*Ue)*Lt,a[9]=(l*Qe-i*Mt-p*Ue)*Lt,a[10]=(F*Te-Q*ve+K*ce)*Lt,a[11]=(L*ve-A*Te-j*ce)*Lt,a[12]=(x*Ze-m*$e-b*Ue)*Lt,a[13]=(i*$e-l*Ze+h*Ue)*Lt,a[14]=(Q*re-F*we-Z*ce)*Lt,a[15]=(A*we-L*re+k*ce)*Lt,a):null}function G(a,t,i){var l=t[0],h=t[1],p=t[2],m=t[3],x=t[4],b=t[5],T=t[6],A=t[7],L=t[8],k=t[9],j=t[10],F=t[11],Q=t[12],Z=t[13],K=t[14],ce=t[15],re=i[0],ve=i[1],we=i[2],Te=i[3];return a[0]=re*l+ve*x+we*L+Te*Q,a[1]=re*h+ve*b+we*k+Te*Z,a[2]=re*p+ve*T+we*j+Te*K,a[3]=re*m+ve*A+we*F+Te*ce,a[4]=(re=i[4])*l+(ve=i[5])*x+(we=i[6])*L+(Te=i[7])*Q,a[5]=re*h+ve*b+we*k+Te*Z,a[6]=re*p+ve*T+we*j+Te*K,a[7]=re*m+ve*A+we*F+Te*ce,a[8]=(re=i[8])*l+(ve=i[9])*x+(we=i[10])*L+(Te=i[11])*Q,a[9]=re*h+ve*b+we*k+Te*Z,a[10]=re*p+ve*T+we*j+Te*K,a[11]=re*m+ve*A+we*F+Te*ce,a[12]=(re=i[12])*l+(ve=i[13])*x+(we=i[14])*L+(Te=i[15])*Q,a[13]=re*h+ve*b+we*k+Te*Z,a[14]=re*p+ve*T+we*j+Te*K,a[15]=re*m+ve*A+we*F+Te*ce,a}function X(a,t,i){var l,h,p,m,x,b,T,A,L,k,j,F,Q=i[0],Z=i[1],K=i[2];return t===a?(a[12]=t[0]*Q+t[4]*Z+t[8]*K+t[12],a[13]=t[1]*Q+t[5]*Z+t[9]*K+t[13],a[14]=t[2]*Q+t[6]*Z+t[10]*K+t[14],a[15]=t[3]*Q+t[7]*Z+t[11]*K+t[15]):(h=t[1],p=t[2],m=t[3],x=t[4],b=t[5],T=t[6],A=t[7],L=t[8],k=t[9],j=t[10],F=t[11],a[0]=l=t[0],a[1]=h,a[2]=p,a[3]=m,a[4]=x,a[5]=b,a[6]=T,a[7]=A,a[8]=L,a[9]=k,a[10]=j,a[11]=F,a[12]=l*Q+x*Z+L*K+t[12],a[13]=h*Q+b*Z+k*K+t[13],a[14]=p*Q+T*Z+j*K+t[14],a[15]=m*Q+A*Z+F*K+t[15]),a}function de(a,t,i){var l=i[0],h=i[1],p=i[2];return a[0]=t[0]*l,a[1]=t[1]*l,a[2]=t[2]*l,a[3]=t[3]*l,a[4]=t[4]*h,a[5]=t[5]*h,a[6]=t[6]*h,a[7]=t[7]*h,a[8]=t[8]*p,a[9]=t[9]*p,a[10]=t[10]*p,a[11]=t[11]*p,a[12]=t[12],a[13]=t[13],a[14]=t[14],a[15]=t[15],a}function xe(a,t,i){var l=Math.sin(i),h=Math.cos(i),p=t[4],m=t[5],x=t[6],b=t[7],T=t[8],A=t[9],L=t[10],k=t[11];return t!==a&&(a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[12]=t[12],a[13]=t[13],a[14]=t[14],a[15]=t[15]),a[4]=p*h+T*l,a[5]=m*h+A*l,a[6]=x*h+L*l,a[7]=b*h+k*l,a[8]=T*h-p*l,a[9]=A*h-m*l,a[10]=L*h-x*l,a[11]=k*h-b*l,a}function oe(a,t,i){var l=Math.sin(i),h=Math.cos(i),p=t[0],m=t[1],x=t[2],b=t[3],T=t[8],A=t[9],L=t[10],k=t[11];return t!==a&&(a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a[12]=t[12],a[13]=t[13],a[14]=t[14],a[15]=t[15]),a[0]=p*h-T*l,a[1]=m*h-A*l,a[2]=x*h-L*l,a[3]=b*h-k*l,a[8]=p*l+T*h,a[9]=m*l+A*h,a[10]=x*l+L*h,a[11]=b*l+k*h,a}function Se(a,t,i){var l=Math.sin(i),h=Math.cos(i),p=t[0],m=t[1],x=t[2],b=t[3],T=t[4],A=t[5],L=t[6],k=t[7];return t!==a&&(a[8]=t[8],a[9]=t[9],a[10]=t[10],a[11]=t[11],a[12]=t[12],a[13]=t[13],a[14]=t[14],a[15]=t[15]),a[0]=p*h+T*l,a[1]=m*h+A*l,a[2]=x*h+L*l,a[3]=b*h+k*l,a[4]=T*h-p*l,a[5]=A*h-m*l,a[6]=L*h-x*l,a[7]=k*h-b*l,a}function Ie(a,t){return a[0]=t[0],a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=t[1],a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=t[2],a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}function Ae(a,t,i){var l,h,p,m=i[0],x=i[1],b=i[2],T=Math.sqrt(m*m+x*x+b*b);return T<M?null:(m*=T=1/T,x*=T,b*=T,l=Math.sin(t),h=Math.cos(t),a[0]=m*m*(p=1-h)+h,a[1]=x*m*p+b*l,a[2]=b*m*p-x*l,a[3]=0,a[4]=m*x*p-b*l,a[5]=x*x*p+h,a[6]=b*x*p+m*l,a[7]=0,a[8]=m*b*p+x*l,a[9]=x*b*p-m*l,a[10]=b*b*p+h,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a)}function pe(a,t){var i=t[0],l=t[1],h=t[2],p=t[4],m=t[5],x=t[6],b=t[8],T=t[9],A=t[10];return a[0]=Math.sqrt(i*i+l*l+h*h),a[1]=Math.sqrt(p*p+m*m+x*x),a[2]=Math.sqrt(b*b+T*T+A*A),a}function Pe(a,t){var i=t[0],l=t[1],h=t[2],p=t[3],m=i+i,x=l+l,b=h+h,T=i*m,A=l*m,L=l*x,k=h*m,j=h*x,F=h*b,Q=p*m,Z=p*x,K=p*b;return a[0]=1-L-F,a[1]=A+K,a[2]=k-Z,a[3]=0,a[4]=A-K,a[5]=1-T-F,a[6]=j+Q,a[7]=0,a[8]=k+Z,a[9]=j-Q,a[10]=1-T-L,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}var Re=G;function Oe(){var a=new D(3);return D!=Float32Array&&(a[0]=0,a[1]=0,a[2]=0),a}function it(a){var t=new D(3);return t[0]=a[0],t[1]=a[1],t[2]=a[2],t}function xt(a){var t=a[0],i=a[1],l=a[2];return Math.sqrt(t*t+i*i+l*l)}function Et(a,t,i){var l=new D(3);return l[0]=a,l[1]=t,l[2]=i,l}function ne(a,t,i,l){return a[0]=t,a[1]=i,a[2]=l,a}function ye(a,t,i){return a[0]=t[0]+i[0],a[1]=t[1]+i[1],a[2]=t[2]+i[2],a}function S(a,t,i){return a[0]=t[0]-i[0],a[1]=t[1]-i[1],a[2]=t[2]-i[2],a}function R(a,t,i){return a[0]=t[0]*i[0],a[1]=t[1]*i[1],a[2]=t[2]*i[2],a}function J(a,t,i){return a[0]=Math.min(t[0],i[0]),a[1]=Math.min(t[1],i[1]),a[2]=Math.min(t[2],i[2]),a}function H(a,t,i){return a[0]=Math.max(t[0],i[0]),a[1]=Math.max(t[1],i[1]),a[2]=Math.max(t[2],i[2]),a}function V(a,t,i){return a[0]=t[0]*i,a[1]=t[1]*i,a[2]=t[2]*i,a}function he(a,t,i,l){return a[0]=t[0]+i[0]*l,a[1]=t[1]+i[1]*l,a[2]=t[2]+i[2]*l,a}function Me(a,t){var i=t[0]-a[0],l=t[1]-a[1],h=t[2]-a[2];return Math.sqrt(i*i+l*l+h*h)}function fe(a,t){var i=t[0]-a[0],l=t[1]-a[1],h=t[2]-a[2];return i*i+l*l+h*h}function Ce(a){var t=a[0],i=a[1],l=a[2];return t*t+i*i+l*l}function ze(a,t){return a[0]=-t[0],a[1]=-t[1],a[2]=-t[2],a}function Ye(a,t){var i=t[0],l=t[1],h=t[2],p=i*i+l*l+h*h;return p>0&&(p=1/Math.sqrt(p)),a[0]=t[0]*p,a[1]=t[1]*p,a[2]=t[2]*p,a}function He(a,t){return a[0]*t[0]+a[1]*t[1]+a[2]*t[2]}function Ve(a,t,i){var l=t[0],h=t[1],p=t[2],m=i[0],x=i[1],b=i[2];return a[0]=h*b-p*x,a[1]=p*m-l*b,a[2]=l*x-h*m,a}function nt(a,t,i,l){var h=t[0],p=t[1],m=t[2];return a[0]=h+l*(i[0]-h),a[1]=p+l*(i[1]-p),a[2]=m+l*(i[2]-m),a}function ct(a,t,i){var l=t[0],h=t[1],p=t[2],m=i[3]*l+i[7]*h+i[11]*p+i[15];return a[0]=(i[0]*l+i[4]*h+i[8]*p+i[12])/(m=m||1),a[1]=(i[1]*l+i[5]*h+i[9]*p+i[13])/m,a[2]=(i[2]*l+i[6]*h+i[10]*p+i[14])/m,a}function St(a,t,i){var l=t[0],h=t[1],p=t[2];return a[0]=l*i[0]+h*i[3]+p*i[6],a[1]=l*i[1]+h*i[4]+p*i[7],a[2]=l*i[2]+h*i[5]+p*i[8],a}function yt(a,t,i){var l=i[0],h=i[1],p=i[2],m=i[3],x=t[0],b=t[1],T=t[2],A=h*T-p*b,L=p*x-l*T,k=l*b-h*x;return a[0]=x+m*(A+=A)+h*(k+=k)-p*(L+=L),a[1]=b+m*L+p*A-l*k,a[2]=T+m*k+l*L-h*A,a}function Ot(a){return a[0]=0,a[1]=0,a[2]=0,a}function on(a,t){return a[0]===t[0]&&a[1]===t[1]&&a[2]===t[2]}var Rt=S,sn=R,un=xt;function Jt(){var a=new D(4);return D!=Float32Array&&(a[0]=0,a[1]=0,a[2]=0,a[3]=0),a}function Ln(a,t,i){return a[0]=t[0]*i,a[1]=t[1]*i,a[2]=t[2]*i,a[3]=t[3]*i,a}function Rn(a,t){var i=t[0],l=t[1],h=t[2],p=t[3],m=i*i+l*l+h*h+p*p;return m>0&&(m=1/Math.sqrt(m)),a[0]=i*m,a[1]=l*m,a[2]=h*m,a[3]=p*m,a}function Tn(a,t){return a[0]*t[0]+a[1]*t[1]+a[2]*t[2]+a[3]*t[3]}function ln(a,t,i){var l=t[0],h=t[1],p=t[2],m=t[3];return a[0]=i[0]*l+i[4]*h+i[8]*p+i[12]*m,a[1]=i[1]*l+i[5]*h+i[9]*p+i[13]*m,a[2]=i[2]*l+i[6]*h+i[10]*p+i[14]*m,a[3]=i[3]*l+i[7]*h+i[11]*p+i[15]*m,a}function gt(){var a=new D(4);return D!=Float32Array&&(a[0]=0,a[1]=0,a[2]=0),a[3]=1,a}function Ht(a){return a[0]=0,a[1]=0,a[2]=0,a[3]=1,a}function An(a,t,i){i*=.5;var l=t[0],h=t[1],p=t[2],m=t[3],x=Math.sin(i),b=Math.cos(i);return a[0]=l*b+m*x,a[1]=h*b+p*x,a[2]=p*b-h*x,a[3]=m*b-l*x,a}function kn(a,t,i){i*=.5;var l=t[0],h=t[1],p=t[2],m=t[3],x=Math.sin(i),b=Math.cos(i);return a[0]=l*b-p*x,a[1]=h*b+m*x,a[2]=p*b+l*x,a[3]=m*b-h*x,a}Oe(),Jt();var pn,ri,Xn,Jn=Rn,oi=(pn=Oe(),ri=Et(1,0,0),Xn=Et(0,1,0),function(a,t,i){var l=He(t,i);return l<-.999999?(Ve(pn,ri,t),un(pn)<1e-6&&Ve(pn,Xn,t),Ye(pn,pn),(function(h,p,m){m*=.5;var x=Math.sin(m);h[0]=x*p[0],h[1]=x*p[1],h[2]=x*p[2],h[3]=Math.cos(m)})(a,pn,Math.PI),a):l>.999999?(a[0]=0,a[1]=0,a[2]=0,a[3]=1,a):(Ve(pn,t,i),a[0]=pn[0],a[1]=pn[1],a[2]=pn[2],a[3]=1+l,Jn(a,a))});function Tt(){var a=new D(2);return D!=Float32Array&&(a[0]=0,a[1]=0),a}function ot(a,t){var i=new D(2);return i[0]=a,i[1]=t,i}function At(a,t,i){return a[0]=t,a[1]=i,a}function Gt(a,t,i){return a[0]=t[0]+i[0],a[1]=t[1]+i[1],a}function fn(a,t,i){return a[0]=t[0]-i[0],a[1]=t[1]-i[1],a}function _n(a,t,i){return a[0]=t[0]*i,a[1]=t[1]*i,a}function En(a){var t=a[0],i=a[1];return Math.sqrt(t*t+i*i)}function On(a,t){var i=t[0],l=t[1],h=i*i+l*l;return h>0&&(h=1/Math.sqrt(h)),a[0]=t[0]*h,a[1]=t[1]*h,a}function Vn(a,t){return a[0]*t[0]+a[1]*t[1]}gt(),gt(),z();var di,zi,rr=fn;function ji(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}Tt();var Xi=(function(){if(zi)return di;function a(t,i,l,h){this.cx=3*t,this.bx=3*(l-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*i,this.by=3*(h-i)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=i,this.p2x=l,this.p2y=h}return zi=1,di=a,a.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,i){if(i===void 0&&(i=1e-6),t<0)return 0;if(t>1)return 1;for(var l=t,h=0;h<8;h++){var p=this.sampleCurveX(l)-t;if(Math.abs(p)<i)return l;var m=this.sampleCurveDerivativeX(l);if(Math.abs(m)<1e-6)break;l-=p/m}var x=0,b=1;for(l=t,h=0;h<20&&(p=this.sampleCurveX(l),!(Math.abs(p-t)<i));h++)t>p?x=l:b=l,l=.5*(b-x)+x;return l},solve:function(t,i){return this.sampleCurveY(this.solveCurveX(t,i))}},di})(),dr=ji(Xi);function zt(a,t){this.x=a,this.y=t}function Dr(a,t){if(Array.isArray(a)){if(!Array.isArray(t)||a.length!==t.length)return!1;for(let i=0;i<a.length;i++)if(!Dr(a[i],t[i]))return!1;return!0}if(typeof a=="object"&&a!==null&&t!==null){if(typeof t!="object"||Object.keys(a).length!==Object.keys(t).length)return!1;for(const i in a)if(!Dr(a[i],t[i]))return!1;return!0}return a===t}zt.prototype={clone(){return new zt(this.x,this.y)},add(a){return this.clone()._add(a)},sub(a){return this.clone()._sub(a)},multByPoint(a){return this.clone()._multByPoint(a)},divByPoint(a){return this.clone()._divByPoint(a)},mult(a){return this.clone()._mult(a)},div(a){return this.clone()._div(a)},rotate(a){return this.clone()._rotate(a)},rotateAround(a,t){return this.clone()._rotateAround(a,t)},matMult(a){return this.clone()._matMult(a)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(a){return this.x===a.x&&this.y===a.y},dist(a){return Math.sqrt(this.distSqr(a))},distSqr(a){const t=a.x-this.x,i=a.y-this.y;return t*t+i*i},angle(){return Math.atan2(this.y,this.x)},angleTo(a){return Math.atan2(this.y-a.y,this.x-a.x)},angleWith(a){return this.angleWithSep(a.x,a.y)},angleWithSep(a,t){return Math.atan2(this.x*t-this.y*a,this.x*a+this.y*t)},_matMult(a){const t=a[2]*this.x+a[3]*this.y;return this.x=a[0]*this.x+a[1]*this.y,this.y=t,this},_add(a){return this.x+=a.x,this.y+=a.y,this},_sub(a){return this.x-=a.x,this.y-=a.y,this},_mult(a){return this.x*=a,this.y*=a,this},_div(a){return this.x/=a,this.y/=a,this},_multByPoint(a){return this.x*=a.x,this.y*=a.y,this},_divByPoint(a){return this.x/=a.x,this.y/=a.y,this},_unit(){return this._div(this.mag()),this},_perp(){const a=this.y;return this.y=this.x,this.x=-a,this},_rotate(a){const t=Math.cos(a),i=Math.sin(a),l=i*this.x+t*this.y;return this.x=t*this.x-i*this.y,this.y=l,this},_rotateAround(a,t){const i=Math.cos(a),l=Math.sin(a),h=t.y+l*(this.x-t.x)+i*(this.y-t.y);return this.x=t.x+i*(this.x-t.x)-l*(this.y-t.y),this.y=h,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:zt},zt.convert=function(a){if(a instanceof zt)return a;if(Array.isArray(a))return new zt(+a[0],+a[1]);if(a.x!==void 0&&a.y!==void 0)return new zt(+a.x,+a.y);throw new Error("Expected [x, y] or {x, y} point format")};const Ii=Math.PI/180,Ti=180/Math.PI;function Zn(a){return a*Ii}function lr(a){return a*Ti}const vr=[[0,0],[1,0],[1,1],[0,1]];function uo(a){if(a<=0)return 0;if(a>=1)return 1;const t=a*a,i=t*a;return 4*(a<.5?i:3*(a-t)+i-.75)}function ut(a,t,i,l){const h=new dr(a,t,i,l);return function(p){return h.solve(p)}}const ae=ut(.25,.1,.25,1);function se(a,t,i){return Math.min(i,Math.max(t,a))}function Le(a,t,i){return(i=se((i-a)/(t-a),0,1))*i*(3-2*i)}function qe(a,t,i){const l=i-t,h=((a-t)%l+l)%l+t;return h===t?i:h}function Je(a,t,i){if(!a.length)return i(null,[]);let l=a.length;const h=new Array(a.length);let p=null;a.forEach((m,x)=>{t(m,(b,T)=>{b&&(p=b),h[x]=T,--l===0&&i(p,h)})})}let rt=1;function mt(){return rt++}function je(a){return a<=1?1:Math.pow(2,Math.ceil(Math.log2(a)))}function Ke(a,t){a.forEach(i=>{t[i]&&(t[i]=t[i].bind(t))})}function pt(a,t,i){const l={};for(const h in a)l[h]=t.call(this,a[h],h,a);return l}function _t(a,t,i){const l={};for(const h in a)t.call(this,a[h],h,a)&&(l[h]=a[h]);return l}function Pt(a){return Array.isArray(a)?a.map(Pt):typeof a=="object"&&a?pt(a,Pt):a}function an(a,t){for(let i=0;i<a.length;i++)if(t.indexOf(a[i])>=0)return!0;return!1}const xn={};function hn(a){xn[a]||(typeof console<"u"&&console.warn(a),xn[a]=!0)}function wn(a,t,i){return(i.y-a.y)*(t.x-a.x)>(t.y-a.y)*(i.x-a.x)}function Dn(a){let t=0;for(let i,l,h=0,p=a.length,m=p-1;h<p;m=h++)i=a[h],l=a[m],t+=(l.x-i.x)*(i.y+l.y);return t}function ei([a,t,i]){const l=Zn(t+90),h=Zn(i);return{x:a*Math.cos(l)*Math.sin(h),y:a*Math.sin(l)*Math.sin(h),z:a*Math.cos(h),azimuthal:t,polar:i}}function xi(a){return(typeof self<"u"||a!==void 0)&&typeof WorkerGlobalScope<"u"&&(a!==void 0?a:self)instanceof WorkerGlobalScope}function Ki(a){const t={};if(a.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(i,l,h,p)=>{const m=h||p;return t[l]=!m||m.toLowerCase(),""}),t["max-age"]){const i=parseInt(t["max-age"],10);isNaN(i)?delete t["max-age"]:t["max-age"]=i}return t}let Zi,Yi=null;function Oi(a,t){return[a[4*t],a[4*t+1],a[4*t+2],a[4*t+3]]}function cr(a,t,i,l){for(;t<i;){const h=t+i>>1;a[h]<l?t=h+1:i=h}return t}function Ur(a,t,i,l){for(;t<i;){const h=t+i>>1;a[h]<=l?t=h+1:i=h}return t}function Pi(a){return a>0?1/(1.001-a):1+a}function fr(a){return a>0?1-1/(1.001-a):-a}function br(a,t,i){return(a-t.min)*(i.max-i.min)/(t.max-t.min)+i.min}const vi={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i},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(!vi.API_URL)return null;try{const a=new URL(vi.API_URL);return a.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":a.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",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"/mapbox-gl-js/meshopt_simd_v0.20.wasm",BUILDING_GEN_URL:"/mapbox-gl-js/building-gen/building_gen_v1.2.4.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1",TILE_PROVIDER_URLS:Object.assign(Object.create(null),{pmtiles:"/mapbox-gl-js/mapbox-gl-pmtiles-provider-v0.0.1.js"})};function qr(){return new URL(vi.DRACO_URL,vi.API_URL).href}function Io(){if(typeof WebAssembly!="object")throw new Error("WebAssembly not supported, cannot instantiate meshoptimizer");return new URL((function(){if(Zi===void 0){if(typeof WebAssembly!="object")return!1;const a=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,3,2,0,0,5,3,1,0,1,12,1,0,10,22,2,12,0,65,0,65,0,65,0,252,10,0,0,11,7,0,65,0,253,15,26,11]);Zi=WebAssembly.validate(a)}return Zi})()?vi.MESHOPT_SIMD_URL:vi.MESHOPT_URL,vi.API_URL).href}function _o(){return new URL(vi.BUILDING_GEN_URL,vi.API_URL).href}function Ko(a){return vi.API_URL_REGEX.test(a)}function Hn(a){return vi.API_SPRITE_REGEX.test(a)}let ur,Mr,xs,La,Ns,ka;function Xs(){return ur==null&&(ur=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),ur}const fs={now:()=>La!==void 0?La:performance.now(),setNow(a){La=a},restoreNow(){La=void 0},frame(a){const t=requestAnimationFrame(a);return{cancel:()=>cancelAnimationFrame(t)}},getImageData(a,t=0){const{width:i,height:l}=a;Ns||(Ns=document.createElement("canvas"));const h=Ns.getContext("2d",{willReadFrequently:!0});if(!h)throw new Error("failed to create canvas 2d context");return(i>Ns.width||l>Ns.height)&&(Ns.width=i,Ns.height=l),h.clearRect(-t,-t,i+2*t,l+2*t),h.drawImage(a,0,0,i,l),h.getImageData(-t,-t,i+2*t,l+2*t)},resolveURL:a=>(Mr||(Mr=document.createElement("a")),Mr.href=a,Mr.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(xs==null&&(xs=window.matchMedia("(prefers-reduced-motion: reduce)")),xs.matches)},hasCanvasFingerprintNoise(){if(ka!==void 0)return ka;if(!Xs())return ka=!1,!1;const a=new OffscreenCanvas(85,1),t=a.getContext("2d",{willReadFrequently:!0});let i=0;for(let h=0;h<a.width;++h)t.fillStyle=`rgba(${i++},${i++},${i++}, 255)`,t.fillRect(h,0,1,1);const l=t.getImageData(0,0,a.width,a.height);i=0;for(let h=0;h<l.data.length;++h)if(h%4!=3&&i++!==l.data[h])return ka=!0,!0;return ka=!1,!1}};function gh(a,t){const i=a.indexOf("?");if(i<0)return`${a}?${new URLSearchParams(t).toString()}`;const l=new URLSearchParams(a.slice(i));for(const h in t)l.set(h,t[h]);return`${a.slice(0,i)}?${l.toString()}`}function _m(a,t={persistentParams:[]}){const i=a.indexOf("?");if(i<0)return a;const l=new URLSearchParams,h=new URLSearchParams(a.slice(i));for(const m of t.persistentParams){const x=h.get(m);x&&l.set(m,x)}const p=l.toString();return`${a.slice(0,i)}${p.length>0?`?${p}`:""}`}const lc="mapbox-tiles";let yf=500,_f=50;const vm=["language","worldview","jobid"];let za;function Mv(){try{return caches}catch{}}function vf(){const a=Mv();a&&za==null&&(za=a.open(lc))}let xm=1/0;const xf={supported:!1,testSupport:function(a){!bm&&Xc&&(Ks?Kc(a):cc=a)}};let cc,Xc,bm=!1,Ks=!1;const wm=typeof self<"u"?self:{};function Kc(a){const t=a.createTexture();a.bindTexture(a.TEXTURE_2D,t);try{if(a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,Xc),a.isContextLost())return;xf.supported=!0}catch{}a.deleteTexture(t),bm=!0}wm.document&&(Xc=wm.document.createElement("img"),Xc.onload=function(){cc&&Kc(cc),cc=null,Ks=!0},Xc.onerror=function(){bm=!0,cc=null},Xc.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const mh={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Iconset:"Iconset",Image:"Image",Model:"Model"};Object.freeze(mh);class Mm extends Error{constructor(t,i,l){i===401&&Ko(l)&&(t+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(t),this.status=i,this.url=l}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}function Im(a){return typeof a=="object"&&a!==null&&"status"in a&&a.status===404}const Ni=xi()?()=>self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,Jc=function(a,t){return/^file:/.test(i=a.url)||/^file:/.test(Ni())&&!/^\w+:/.test(i)?(function(l,h){const p=new XMLHttpRequest;p.open(l.method||"GET",l.url,!0),l.type==="arrayBuffer"&&(p.responseType="arraybuffer");for(const m in l.headers)p.setRequestHeader(m,l.headers[m]);return l.type==="json"&&(p.responseType="text",p.setRequestHeader("Accept","application/json")),p.withCredentials=l.credentials==="include",p.onerror=()=>{h(new Error(p.statusText))},p.onload=()=>{if((p.status>=200&&p.status<300||p.status===0)&&p.response!==null){let m=p.response;if(l.type==="json")try{m=JSON.parse(p.response)}catch(b){return h(b)}const x=new Headers;p.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(b=>{const T=b.split(": "),A=T.shift(),L=T.join(": ");x.append(A,L)}),h(null,m,x)}else h(new Mm(p.statusText,p.status,l.url))},p.send(l.body),{cancel:()=>p.abort()}})(a,t):(function(l,h){const p=new AbortController,m=new Request(l.url,{method:l.method||"GET",body:l.body,credentials:l.credentials,headers:l.headers,referrer:Ni(),referrerPolicy:l.referrerPolicy,signal:p.signal});let x=!1,b=!1;const T=(A=m.url).indexOf("sku=")>0&&Ko(A);var A;l.type==="json"&&m.headers.set("Accept","application/json");const L=(j,F,Q)=>{if(b)return;if(j&&j.message!=="SecurityError"&&hn(j.toString()),F&&Q)return k(F);const Z=Date.now();fetch(m).then(K=>{if(K.ok){const ce=T?K.clone():null;return k(K,ce,Z)}return h(new Mm(K.statusText,K.status,l.url))}).catch(K=>{K.name!=="AbortError"&&h(new Error(`${K.message} ${l.url}`))})},k=(j,F,Q)=>{(l.type==="arrayBuffer"?j.arrayBuffer():l.type==="json"?j.json():j.text()).then(Z=>{b||(F&&Q&&(function(K,ce,re){if(vf(),za==null)return;const ve=Ki(ce.headers.get("cache-control")||"");if(ve["no-store"])return;const we={status:ce.status,statusText:ce.statusText,headers:new Headers};ce.headers.forEach((Qe,$e)=>we.headers.set($e,Qe)),ve["max-age"]&&we.headers.set("Expires",new Date(re+1e3*ve["max-age"]).toUTCString());const Te=we.headers.get("expires");if(!Te||new Date(Te).getTime()-re<42e4)return;let We=_m(K.url,{persistentParams:vm});if(ce.status===206){const Qe=K.headers.get("Range");if(!Qe)return;we.status=200,We=gh(We,{range:Qe})}const Ue=new Response((Ze=ce.status)!==200&&Ze!==404&&[101,103,204,205,304].includes(Ze)?null:ce.body,we);var Ze;vf(),za?.then(Qe=>Qe.put(We,Ue)).catch(Qe=>hn(Qe.message))})(m,F,Q),x=!0,h(null,Z,j.headers))}).catch(Z=>{b||h(new Error(Z.message))})};return T?(function(j,F){if(vf(),za==null)return F(null);za.then(Q=>{let Z=_m(j.url,{persistentParams:vm});const K=j.headers.get("Range");K&&(Z=gh(Z,{range:K})),Q.match(Z).then(ce=>{const re=(function(ve){if(!ve)return!1;const we=new Date(ve.headers.get("expires")||0),Te=Ki(ve.headers.get("cache-control")||"");return Number(we)>Date.now()&&!Te["no-cache"]})(ce);Q.delete(Z).catch(F),re&&Q.put(Z,ce.clone()).catch(F),F(null,ce,re)}).catch(F)}).catch(F)})(m,L):L(null,null),{cancel:()=>{b=!0,x||p.abort()}}})(a,t);var i},eu=function(a,t){return Jc(Object.assign(a,{type:"arrayBuffer"}),t)};function wI(a){const t=document.createElement("a");return t.href=a,t.protocol===location.protocol&&t.host===location.host}let bf,El;bf=[],El=0;const tu=function(a,t){if(xf.supported&&(a.headers||(a.headers={}),a.headers.accept="image/webp,*/*"),El>=vi.MAX_PARALLEL_IMAGE_REQUESTS){const p={requestParameters:a,callback:t,cancelled:!1,cancel(){this.cancelled=!0}};return bf.push(p),p}El++;let i=!1;const l=()=>{if(!i)for(i=!0,El--;bf.length&&El<vi.MAX_PARALLEL_IMAGE_REQUESTS;){const p=bf.shift(),{requestParameters:m,callback:x,cancelled:b}=p;b||(p.cancel=tu(m,x).cancel)}},h=eu(a,(p,m,x)=>{l(),p?t(p):m&&(function(b,T){const A=new Blob([new Uint8Array(b)],{type:"image/png"});createImageBitmap(A).then(L=>{T(null,L)}).catch(L=>{T(new Error(`Could not load image because of ${L.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})})(m,(b,T)=>t(b,T,x))});return{cancel:()=>{h.cancel(),l()}}};var yh,wf,Iv,uc={exports:{}},Tv={exports:{}},Tm={exports:{}},MI=(function(){if(Iv)return uc.exports;Iv=1;var a=(yh||(yh=1,Tv.exports=function(i,l){var h,p,m,x,b,T,A,L;for(p=i.length-(h=3&i.length),m=l,b=3432918353,T=461845907,L=0;L<p;)A=255&i.charCodeAt(L)|(255&i.charCodeAt(++L))<<8|(255&i.charCodeAt(++L))<<16|(255&i.charCodeAt(++L))<<24,++L,m=27492+(65535&(x=5*(65535&(m=(m^=A=(65535&(A=(A=(65535&A)*b+(((A>>>16)*b&65535)<<16)&4294967295)<<15|A>>>17))*T+(((A>>>16)*T&65535)<<16)&4294967295)<<13|m>>>19))+((5*(m>>>16)&65535)<<16)&4294967295))+(((x>>>16)+58964&65535)<<16);switch(A=0,h){case 3:A^=(255&i.charCodeAt(L+2))<<16;case 2:A^=(255&i.charCodeAt(L+1))<<8;case 1:m^=A=(65535&(A=(A=(65535&(A^=255&i.charCodeAt(L)))*b+(((A>>>16)*b&65535)<<16)&4294967295)<<15|A>>>17))*T+(((A>>>16)*T&65535)<<16)&4294967295}return m^=i.length,m=2246822507*(65535&(m^=m>>>16))+((2246822507*(m>>>16)&65535)<<16)&4294967295,m=3266489909*(65535&(m^=m>>>13))+((3266489909*(m>>>16)&65535)<<16)&4294967295,(m^=m>>>16)>>>0}),Tv.exports),t=(wf||(wf=1,Tm.exports=function(i,l){for(var h,p=i.length,m=l^p,x=0;p>=4;)h=1540483477*(65535&(h=255&i.charCodeAt(x)|(255&i.charCodeAt(++x))<<8|(255&i.charCodeAt(++x))<<16|(255&i.charCodeAt(++x))<<24))+((1540483477*(h>>>16)&65535)<<16),m=1540483477*(65535&m)+((1540483477*(m>>>16)&65535)<<16)^(h=1540483477*(65535&(h^=h>>>24))+((1540483477*(h>>>16)&65535)<<16)),p-=4,++x;switch(p){case 3:m^=(255&i.charCodeAt(x+2))<<16;case 2:m^=(255&i.charCodeAt(x+1))<<8;case 1:m=1540483477*(65535&(m^=255&i.charCodeAt(x)))+((1540483477*(m>>>16)&65535)<<16)}return m=1540483477*(65535&(m^=m>>>13))+((1540483477*(m>>>16)&65535)<<16),(m^=m>>>15)>>>0}),Tm.exports);return uc.exports=a,uc.exports.murmur3=a,uc.exports.murmur2=t,uc.exports})(),Nl=ji(MI);class fa{constructor(t,...i){Object.assign(this,i[0]||{}),this.type=t}}class nu extends fa{constructor(t,i={}){super("error",Object.assign({error:t},i))}}function Js(a,t,i){i[a]&&i[a].indexOf(t)!==-1||(i[a]=i[a]||[],i[a].push(t))}function Mf(a,t,i){if(i&&i[a]){const l=i[a].indexOf(t);l!==-1&&i[a].splice(l,1)}}class _h{on(t,i){return this._listeners=this._listeners||{},Js(t,i,this._listeners),this}off(t,i){return Mf(t,i,this._listeners),Mf(t,i,this._oneTimeListeners),this}once(t,i){return i?(this._oneTimeListeners=this._oneTimeListeners||{},Js(t,i,this._oneTimeListeners),this):new Promise(l=>{this.once(t,l)})}fire(t,i){const l=typeof t=="string"?new fa(t,i):t,h=l.type;if(this.listens(h)){l.target=this;const p=this._listeners&&this._listeners[h]?this._listeners[h].slice():[];for(const b of p)b.call(this,l);const m=this._oneTimeListeners&&this._oneTimeListeners[h]?this._oneTimeListeners[h].slice():[];for(const b of m)Mf(h,b,this._oneTimeListeners),b.call(this,l);const x=this._eventedParent;if(x){const b=typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData;Object.assign(l,b),x.fire(l)}}else l instanceof nu&&console.error(l.error);return this}listens(t){return!!(this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t))}setEventedParent(t,i){return this._eventedParent=t,this._eventedParentData=i,this}}class bs{constructor(t){typeof t=="string"?this.name=t:(this.name=t.name,this.iconsetId=t.iconsetId)}static from(t){return new bs(t)}static toString(t){return t.iconsetId?`${t.name}${t.iconsetId}`:t.name}static parse(t){const[i,l]=t.split("");return new bs({name:i,iconsetId:l})}static isEqual(t,i){return t.name===i.name&&t.iconsetId===i.iconsetId}toString(){return bs.toString(this)}serialize(){return{name:this.name,iconsetId:this.iconsetId}}}var Cm,If={},Dm=(function(){if(Cm)return If;Cm=1;var a={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 t(p){return(p=Math.round(p))<0?0:p>255?255:p}function i(p){return t(p[p.length-1]==="%"?parseFloat(p)/100*255:parseInt(p))}function l(p){return(m=p[p.length-1]==="%"?parseFloat(p)/100:parseFloat(p))<0?0:m>1?1:m;var m}function h(p,m,x){return x<0?x+=1:x>1&&(x-=1),6*x<1?p+(m-p)*x*6:2*x<1?m:3*x<2?p+(m-p)*(2/3-x)*6:p}try{If.parseCSSColor=function(p){var m,x=p.replace(/ /g,"").toLowerCase();if(x in a)return a[x].slice();if(x[0]==="#")return x.length===4?(m=parseInt(x.substr(1),16))>=0&&m<=4095?[(3840&m)>>4|(3840&m)>>8,240&m|(240&m)>>4,15&m|(15&m)<<4,1]:null:x.length===7&&(m=parseInt(x.substr(1),16))>=0&&m<=16777215?[(16711680&m)>>16,(65280&m)>>8,255&m,1]:null;var b=x.indexOf("("),T=x.indexOf(")");if(b!==-1&&T+1===x.length){var A=x.substr(0,b),L=x.substr(b+1,T-(b+1)).split(","),k=1;switch(A){case"rgba":if(L.length!==4)return null;k=l(L.pop());case"rgb":return L.length!==3?null:[i(L[0]),i(L[1]),i(L[2]),k];case"hsla":if(L.length!==4)return null;k=l(L.pop());case"hsl":if(L.length!==3)return null;var j=(parseFloat(L[0])%360+360)%360/360,F=l(L[1]),Q=l(L[2]),Z=Q<=.5?Q*(F+1):Q+F-Q*F,K=2*Q-Z;return[t(255*h(K,Z,j+1/3)),t(255*h(K,Z,j)),t(255*h(K,Z,j-1/3)),k];default:return null}}return null}}catch{}return If})();class Si{constructor(t,i,l,h=1){this.r=t,this.g=i,this.b=l,this.a=h}static parse(t){if(!t)return;if(t instanceof Si)return t;if(typeof t!="string")return;const i=Dm.parseCSSColor(t);return i?new Si(i[0]/255,i[1]/255,i[2]/255,i[3]):void 0}toString(){const[t,i,l,h]=[this.r,this.g,this.b,this.a];return`rgba(${Math.round(255*t)},${Math.round(255*i)},${Math.round(255*l)},${h})`}toNonPremultipliedRenderColor(t){const{r:i,g:l,b:h,a:p}=this;return new Tf(t,i,l,h,p)}toPremultipliedRenderColor(t){const{r:i,g:l,b:h,a:p}=this;return new iu(t,i*p,l*p,h*p,p)}clone(){return new Si(this.r,this.g,this.b,this.a)}}class Am{constructor(t,i,l,h,p,m=!1){if(this.premultiplied=!1,this.premultiplied=m,t){const x=t.image.height,b=x*x;this.premultiplied?(i=p===0?0:i/p*(x-1),l=p===0?0:l/p*(x-1),h=p===0?0:h/p*(x-1)):(i*=x-1,l*=x-1,h*=x-1),i=Math.max(0,Math.min(x-1,i)),l=Math.max(0,Math.min(x-1,l)),h=Math.max(0,Math.min(x-1,h));const T=Math.floor(i),A=Math.floor(l),L=Math.floor(h),k=Math.ceil(i),j=Math.ceil(l),F=Math.ceil(h),Q=i-T,Z=l-A,K=h-L,ce=t.image.data,re=4*(T+A*b+L*x),ve=4*(T+A*b+F*x),we=4*(T+j*b+L*x),Te=4*(T+j*b+F*x),We=4*(k+A*b+L*x),Ue=4*(k+A*b+F*x),Ze=4*(k+j*b+L*x),Qe=4*(k+j*b+F*x);this.r=$n($n($n(ce[re],ce[ve],K),$n(ce[we],ce[Te],K),Z),$n($n(ce[We],ce[Ue],K),$n(ce[Ze],ce[Qe],K),Z),Q)/255*(this.premultiplied?p:1),this.g=$n($n($n(ce[re+1],ce[ve+1],K),$n(ce[we+1],ce[Te+1],K),Z),$n($n(ce[We+1],ce[Ue+1],K),$n(ce[Ze+1],ce[Qe+1],K),Z),Q)/255*(this.premultiplied?p:1),this.b=$n($n($n(ce[re+2],ce[ve+2],K),$n(ce[we+2],ce[Te+2],K),Z),$n($n(ce[We+2],ce[Ue+2],K),$n(ce[Ze+2],ce[Qe+2],K),Z),Q)/255*(this.premultiplied?p:1),this.a=p}else this.r=i,this.g=l,this.b=h,this.a=p}toArray(){const{r:t,g:i,b:l,a:h}=this;return[255*t,255*i,255*l,h]}toHslaArray(){let{r:t,g:i,b:l,a:h}=this;if(this.premultiplied){if(h===0)return[0,0,0,0];const F=1/h;t*=F,i*=F,l*=F}const p=Math.min(Math.max(t,0),1),m=Math.min(Math.max(i,0),1),x=Math.min(Math.max(l,0),1),b=Math.min(p,m,x),T=Math.max(p,m,x),A=T-b,L=.5*(b+T);if(A===0)return[0,0,100*L,h];const k=L>.5?A/(2-T-b):A/(T+b);let j;switch(T){case p:j=60*((m-x)/A+(m<x?6:0));break;case m:j=60*((x-p)/A+2);break;default:j=60*((p-m)/A+4)}return[j,100*k,100*L,h]}toArray01(){const{r:t,g:i,b:l,a:h}=this;return[t,i,l,h]}toArray01Scaled(t){const{r:i,g:l,b:h}=this;return[i*t,l*t,h*t]}toArray01Linear(){const{r:t,g:i,b:l,a:h}=this;return[Math.pow(t,2.2),Math.pow(i,2.2),Math.pow(l,2.2),h]}}class Tf extends Am{constructor(t,i,l,h,p){super(t,i,l,h,p,!1)}}class iu extends Am{constructor(t,i,l,h,p){super(t,i,l,h,p,!0)}}function $n(a,t,i){return a*(1-i)+t*i}function pa(a,t,i){return a.map((l,h)=>$n(l,t[h],i))}Si.black=new Si(0,0,0,1),Si.white=new Si(1,1,1,1),Si.transparent=new Si(0,0,0,0),Si.red=new Si(1,0,0,1),Si.blue=new Si(0,0,1,1);var Cf=Object.freeze({__proto__:null,array:pa,color:function(a,t,i){return new Si($n(a.r,t.r,i),$n(a.g,t.g,i),$n(a.b,t.b,i),$n(a.a,t.a,i))},number:$n});class ea extends Error{constructor(t,i){super(i),this.message=i,this.key=t}}class hc{constructor(t,i=[]){this.parent=t,this.bindings={};for(const[l,h]of i)this.bindings[l]=h}concat(t){return new hc(this,t)}get(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(`${t} not found in scope.`)}has(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)}}const tl={kind:"null"},jn={kind:"number"},Ui={kind:"string"},Vi={kind:"boolean"},os={kind:"color"},Ll={kind:"object"},Hi={kind:"value"},dc={kind:"collator"},vh={kind:"formatted"},xh={kind:"resolvedImage"};function Jo(a,t){return{kind:"array",itemType:a,N:t}}function ro(a){if(a.kind==="array"){const t=ro(a.itemType);return typeof a.N=="number"?`array<${t}, ${a.N}>`:a.itemType.kind==="value"?"array":`array<${t}>`}return a.kind}const II=[tl,jn,Ui,Vi,os,vh,Ll,Jo(Hi),xh];function bh(a,t){if(t.kind==="error")return null;if(a.kind==="array"){if(t.kind==="array"&&(t.N===0&&t.itemType.kind==="value"||!bh(a.itemType,t.itemType))&&(typeof a.N!="number"||a.N===t.N))return null}else{if(a.kind===t.kind)return null;if(a.kind==="value"){for(const i of II)if(!bh(i,t))return null}}return`Expected ${ro(a)} but found ${ro(t)} instead.`}function Sm(a,t){return t.some(i=>i.kind===a.kind)}function ru(a,t){return t.some(i=>i==="null"?a===null:i==="array"?Array.isArray(a):i==="object"?a&&!Array.isArray(a)&&typeof a=="object":i===typeof a)}function nl(a,t){return a.kind==="array"&&t.kind==="array"?a.N===t.N&&nl(a.itemType,t.itemType):a.kind===t.kind}class Em{constructor(t,i,l){this.sensitivity=t?i?"variant":"case":i?"accent":"base",this.locale=l,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(t,i){return this.collator.compare(t,i)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class wh{constructor(t,i,l,h,p){this.text=t.normalize?t.normalize():t,this.image=i,this.scale=l,this.fontStack=h,this.textColor=p}}class Qo{constructor(t){this.sections=t}static fromString(t){return new Qo([new wh(t,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(t=>t.text.length!==0||!!t.image&&t.image.hasPrimary())}static factory(t){return t instanceof Qo?t:Qo.fromString(t)}toString(){return this.sections.length===0?"":this.sections.map(t=>t.text).join("")}serialize(){const t=["format"];for(const i of this.sections){if(i.image){const h=i.image.getPrimary().id.toString();t.push(["image",h]);continue}t.push(i.text);const l={};i.fontStack&&(l["text-font"]=["literal",i.fontStack.split(",")]),i.scale&&(l["font-scale"]=i.scale),i.textColor&&(l["text-color"]=["rgba"].concat(i.textColor.toNonPremultipliedRenderColor(null).toArray())),t.push(l)}return t}}class ta{constructor(t,i={}){this.id=bs.from(t),this.params=i.params,this.sx=i.sx||1,this.sy=i.sy||1}toString(){return JSON.stringify(this)}static parse(t){let i,l,h,p;try{({id:i,params:l,sx:h,sy:p}=JSON.parse(t)||{})}catch{return null}return i?new ta(i,{params:l,sx:h,sy:p}):null}scaleSelf(t,i=t){return this.sx*=t,this.sy*=i,this}}class ps{constructor(t,i,l,h,p=!1){this.primaryId=bs.from(t),this.primaryOptions=i,l&&(this.secondaryId=bs.from(l)),this.secondaryOptions=h,this.available=p}toString(){return this.primaryId&&this.secondaryId?`[${this.primaryId.name},${this.secondaryId.name}]`:this.primaryId.name}hasPrimary(){return!!this.primaryId}getPrimary(){return new ta(this.primaryId,this.primaryOptions)}hasSecondary(){return!!this.secondaryId}getSecondary(){return this.secondaryId?new ta(this.secondaryId,this.secondaryOptions):null}static from(t){return typeof t=="string"?ps.build({name:t}):t}static build(t,i,l,h){return!t||typeof t=="object"&&!("name"in t)?null:new ps(t,l,i,h)}}function Cv(a,t,i,l){return typeof a=="number"&&a>=0&&a<=255&&typeof t=="number"&&t>=0&&t<=255&&typeof i=="number"&&i>=0&&i<=255?l===void 0||typeof l=="number"&&l>=0&&l<=1?null:`Invalid rgba value [${[a,t,i,l].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof l=="number"?[a,t,i,l]:[a,t,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function ou(a){if(a===null||typeof a=="string"||typeof a=="boolean"||typeof a=="number"||a instanceof Si||a instanceof Em||a instanceof Qo||a instanceof ps)return!0;if(Array.isArray(a)){for(const t of a)if(!ou(t))return!1;return!0}if(typeof a=="object"){for(const t in a)if(!ou(a[t]))return!1;return!0}return!1}function Vr(a){if(a===null)return tl;if(typeof a=="string")return Ui;if(typeof a=="boolean")return Vi;if(typeof a=="number")return jn;if(a instanceof Si)return os;if(a instanceof Em)return dc;if(a instanceof Qo)return vh;if(a instanceof ps)return xh;if(Array.isArray(a)){const t=a.length;let i;for(const l of a){const h=Vr(l);if(i){if(i===h)continue;i=Hi;break}i=h}return Jo(i||Hi,t)}return Ll}function Yn(a){const t=typeof a;return a===null?"":t==="string"||t==="number"||t==="boolean"?String(a):a instanceof Qo||a instanceof ps||a instanceof Si?a.toString():JSON.stringify(a)}class Cn{constructor(t,i){this.type=t,this.value=i}static parse(t,i){if(t.length!==2)return i.error(`'literal' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!ou(t[1]))return i.error("invalid value");const l=t[1];let h=Vr(l);const p=i.expectedType;return h.kind!=="array"||h.N!==0||!p||p.kind!=="array"||typeof p.N=="number"&&p.N!==0||(h=p),new Cn(h,l)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof Si?["rgba"].concat(this.value.toNonPremultipliedRenderColor(null).toArray()):this.value instanceof Qo?this.value.serialize():this.value}}class Xr{constructor(t){this.name="ExpressionEvaluationError",this.message=t}toJSON(){return this.message}}const Gn={string:Ui,number:jn,boolean:Vi,object:Ll};class Ls{constructor(t,i){this.type=t,this.args=i}static parse(t,i){if(t.length<2)return i.error("Expected at least one argument.");let l,h=1;const p=t[0];if(p==="array"){let x,b;if(t.length>2){const T=t[1];if(typeof T!="string"||!(T in Gn)||T==="object")return i.error('The item type argument of "array" must be one of string, number, boolean',1);x=Gn[T],h++}else x=Hi;if(t.length>3){if(t[2]!==null&&(typeof t[2]!="number"||t[2]<0||t[2]!==Math.floor(t[2])))return i.error('The length argument to "array" must be a positive integer literal',2);b=t[2],h++}l=Jo(x,b)}else l=Gn[p];const m=[];for(;h<t.length;h++){const x=i.parse(t[h],h,Hi);if(!x)return null;m.push(x)}return new Ls(l,m)}evaluate(t){for(let i=0;i<this.args.length;i++){const l=this.args[i].evaluate(t);if(!bh(this.type,Vr(l)))return l;if(i===this.args.length-1)throw new Xr(`The expression ${JSON.stringify(this.args[i].serialize())} evaluated to ${ro(Vr(l))} but was expected to be of type ${ro(this.type)}.`)}return null}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}serialize(){const t=this.type,i=[t.kind];if(t.kind==="array"){const l=t.itemType;if(l.kind==="string"||l.kind==="number"||l.kind==="boolean"){i.push(l.kind);const h=t.N;(typeof h=="number"||this.args.length>1)&&i.push(h)}}return i.concat(this.args.map(l=>l.serialize()))}}class fc{constructor(t){this.type=vh,this.sections=t}static parse(t,i){if(t.length<2)return i.error("Expected at least one argument.");const l=t[1];if(!Array.isArray(l)&&typeof l=="object")return i.error("First argument must be an image or text section.");const h=[];let p=!1;for(let m=1;m<=t.length-1;++m){const x=t[m];if(p&&typeof x=="object"&&!Array.isArray(x)){p=!1;let b=null;if(x["font-scale"]&&(b=i.parseObjectValue(x["font-scale"],m,"font-scale",jn),!b))return null;let T=null;if(x["text-font"]&&(T=i.parseObjectValue(x["text-font"],m,"text-font",Jo(Ui)),!T))return null;let A=null;if(x["text-color"]&&(A=i.parseObjectValue(x["text-color"],m,"text-color",os),!A))return null;const L=h[h.length-1];L.scale=b,L.font=T,L.textColor=A}else{const b=i.parse(t[m],m,Hi);if(!b)return null;const T=b.type.kind;if(T!=="string"&&T!=="value"&&T!=="null"&&T!=="resolvedImage")return i.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");p=!0,h.push({content:b,scale:null,font:null,textColor:null})}}return new fc(h)}evaluate(t){return new Qo(this.sections.map(i=>{const l=i.content.evaluate(t);return nl(Vr(l),xh)?new wh("",l,null,null,null):new wh(Yn(l),null,i.scale?i.scale.evaluate(t):null,i.font?i.font.evaluate(t).join(","):null,i.textColor?i.textColor.evaluate(t):null)}))}eachChild(t){for(const i of this.sections)t(i.content),i.scale&&t(i.scale),i.font&&t(i.font),i.textColor&&t(i.textColor)}outputDefined(){return!1}serialize(){const t=["format"];for(const i of this.sections){t.push(i.content.serialize());const l={};i.scale&&(l["font-scale"]=i.scale.serialize()),i.font&&(l["text-font"]=i.font.serialize()),i.textColor&&(l["text-color"]=i.textColor.serialize()),t.push(l)}return t}}class Un{constructor(t,i,l,h){this._imageWarnHistory={},this.type=xh,this.namePrimary=t,this.nameSecondary=i,l&&(this.paramsPrimary=l.params,this.iconsetIdPrimary=l.iconset?l.iconset.id:void 0),h&&(this.paramsSecondary=h.params,this.iconsetIdSecondary=h.iconset?h.iconset.id:void 0)}static parse(t,i){if(t.length<2)return i.error("Expected two or more arguments.");let l=1;const h=[];function p(){if(l<t.length){const x=i.parse(t[l],l++,Ui);return x?(h.push({image:x,options:{}}),!0):(i.error(h.length?"Secondary image variant is not a string.":"No image name provided."),!1)}return!0}function m(){if(l<t.length){const b=t[l];if((x=b)===null||typeof x!="object"||Array.isArray(x))return!0;const T=b.params,A=b.iconset,L=i.concat(l);if(!T&&!A)return l++,!0;if(T){if(typeof T!="object"||T.constructor!==Object)return L.error('Image options "params" should be an object'),!1;const k={},j=L.concat(void 0,"params");for(const F in T){if(!F)return j.error("Image parameter name should be non-empty"),!1;const Q=j.concat(void 0,F).parse(T[F],void 0,os,void 0,{typeAnnotation:"coerce"});if(!Q)return!1;k[F]=Q}h[h.length-1].options.params=k}if(A){if(typeof A!="object"||A.constructor!==Object)return L.error('Image options "iconset" should be an object'),!1;if(!A.id)return L.error('Image options "iconset" should have an "id" property'),!1;h[h.length-1].options.iconset=A}return l++,!0}var x;return!0}for(let x=0;x<2;x++)if(!p()||!m())return;return new Un(h[0].image,h[1]?h[1].image:void 0,h[0].options,h[1]?h[1].options:void 0)}evaluateParams(t,i){const l={};if(i){for(const h in i)if(i[h])try{l[h]=i[h].evaluate(t)}catch{continue}if(Object.keys(l).length!==0)return{params:l}}}evaluate(t){const i={name:this.namePrimary.evaluate(t),iconsetId:this.iconsetIdPrimary},l=this.nameSecondary?{name:this.nameSecondary.evaluate(t),iconsetId:this.iconsetIdSecondary}:void 0,h=ps.build(i,l,this.paramsPrimary?this.evaluateParams(t,this.paramsPrimary):void 0,this.paramsSecondary?this.evaluateParams(t,this.paramsSecondary):void 0);if(h&&t.availableImages){const p=h.getPrimary().id;if(h.available=t.availableImages.some(m=>bs.isEqual(m,p)),h.available){const m=h.getSecondary()?h.getSecondary().id:null;m&&(h.available=t.availableImages.some(x=>bs.isEqual(x,m)))}}return h}eachChild(t){if(t(this.namePrimary),this.paramsPrimary)for(const i in this.paramsPrimary)this.paramsPrimary[i]&&t(this.paramsPrimary[i]);if(this.nameSecondary&&(t(this.nameSecondary),this.paramsSecondary))for(const i in this.paramsSecondary)this.paramsSecondary[i]&&t(this.paramsSecondary[i])}outputDefined(){return!1}serializeOptions(t,i){const l={};if(i&&(l.iconset={id:i}),t){l.params={};for(const h in t)t[h]&&(l.params[h]=t[h].serialize())}return Object.keys(l).length>0?l:void 0}serialize(){const t=["image",this.namePrimary.serialize()];if(this.paramsPrimary||this.iconsetIdPrimary){const i=this.serializeOptions(this.paramsPrimary,this.iconsetIdPrimary);i&&t.push(i)}if(this.nameSecondary&&(t.push(this.nameSecondary.serialize()),this.paramsSecondary||this.iconsetIdSecondary)){const i=this.serializeOptions(this.paramsSecondary,this.iconsetIdSecondary);i&&t.push(i)}return t}}function Mh(a){return Af(a)?"string":Ih(a)?"number":Th(a)?"boolean":Array.isArray(a)?"array":a===null?"null":Df(a)?"object":typeof a}function Df(a){return a!=null&&!Array.isArray(a)&&typeof a!="function"&&!(a instanceof String||a instanceof Number||a instanceof Boolean)&&typeof a=="object"}function Af(a){return typeof a=="string"||a instanceof String}function Ih(a){return typeof a=="number"||a instanceof Number}function Th(a){return typeof a=="boolean"||a instanceof Boolean}const TI={"to-boolean":Vi,"to-color":os,"to-number":jn,"to-string":Ui};class ga{constructor(t,i){this.type=t,this.args=i}static parse(t,i){if(t.length<2)return i.error("Expected at least one argument.");const l=t[0],h=[];let p=tl;if(l==="to-array"){if(!Array.isArray(t[1]))return null;const m=t[1].length;if(i.expectedType){if(i.expectedType.kind!=="array")return i.error(`Expected ${i.expectedType.kind} but found array.`);p=Jo(i.expectedType.itemType,m)}else{if(!(m>0&&ou(t[1][0])))return null;p=Jo(Vr(t[1][0]),m)}for(let x=0;x<m;x++){const b=t[1][x];let T;if(Array.isArray(b))T=i.parse(b,void 0,p.itemType);else{const A=Mh(b);if(A!==p.itemType.kind)return i.error(`Expected ${p.itemType.kind} but found ${A}.`);T=i.registry.literal.parse(["literal",b===void 0?null:b],i)}if(!T)return null;h.push(T)}}else{if((l==="to-boolean"||l==="to-string")&&t.length!==2)return i.error("Expected one argument.");p=TI[l];for(let m=1;m<t.length;m++){const x=i.parse(t[m],m,Hi);if(!x)return null;h.push(x)}}return new ga(p,h)}evaluate(t){if(this.type.kind==="boolean")return!!this.args[0].evaluate(t);if(this.type.kind==="color"){let i,l;for(const h of this.args){if(i=h.evaluate(t),l=null,i instanceof Si)return i;if(typeof i=="string"){const p=t.parseColor(i);if(p)return p}else if(Array.isArray(i)&&(l=i.length<3||i.length>4?`Invalid rbga value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.`:Cv(i[0],i[1],i[2],i[3]),!l))return new Si(i[0]/255,i[1]/255,i[2]/255,i[3])}throw new Xr(l||`Could not parse color from value '${typeof i=="string"?i:String(JSON.stringify(i))}'`)}if(this.type.kind==="number"){let i=null;for(const l of this.args){if(i=l.evaluate(t),i===null)return 0;const h=Number(i);if(!isNaN(h))return h}throw new Xr(`Could not convert ${JSON.stringify(i)} to number.`)}return this.type.kind==="formatted"?Qo.fromString(Yn(this.args[0].evaluate(t))):this.type.kind==="resolvedImage"?ps.build(Yn(this.args[0].evaluate(t))):this.type.kind==="array"?this.args.map(i=>i.evaluate(t)):Yn(this.args[0].evaluate(t))}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}serialize(){if(this.type.kind==="formatted")return new fc([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new Un(this.args[0]).serialize();const t=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(i=>{t.push(i.serialize())}),t}}const pc=["Unknown","Point","LineString","Polygon"];class Ch{constructor(t,i,l){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.scope=t,this.options=i,this.iconImageUseTheme=l}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?pc[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,i=this.featureDistanceData.scale,{x:l,y:h}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(l*i-t[0])+this.featureDistanceData.bearing[1]*(h*i-t[1])}return 0}parseColor(t){let i=this._parseColorCache[t];return i||(i=this._parseColorCache[t]=Si.parse(t)),i}getConfig(t){return this.options?this.options.get(t):null}}class vo{constructor(t,i,l,h,p){this.name=t,this.type=i,this._evaluate=l,this.args=h,this._overloadIndex=p}evaluate(t){if(!this._evaluate){const i=vo.definitions[this.name];this._evaluate=Array.isArray(i)?i[2]:i.overloads[this._overloadIndex][1]}return this._evaluate(t,this.args)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(t=>t.serialize()))}static parse(t,i){const l=t[0],h=vo.definitions[l];if(!h)return i.error(`Unknown expression "${l}". If you wanted a literal array, use ["literal", [...]].`,0);const p=Array.isArray(h)?h[0]:h.type,m=Array.isArray(h)?[[h[1],h[2]]]:h.overloads,x=[];let b=null,T=-1;for(const[A,L]of m){if(Array.isArray(A)&&A.length!==t.length-1)continue;x.push(A),T++,b=new jf(i.registry,i.path,null,i.scope,void 0,i._scope,i.options,i.iconImageUseTheme);const k=[];let j=!1;for(let F=1;F<t.length;F++){const Q=t[F],Z=Array.isArray(A)?A[F-1]:A.type,K=b.parse(Q,1+k.length,Z);if(!K){j=!0;break}k.push(K)}if(!j)if(Array.isArray(A)&&A.length!==k.length)b.error(`Expected ${A.length} arguments, but found ${k.length} instead.`);else{for(let F=0;F<k.length;F++){const Q=Array.isArray(A)?A[F]:A.type,Z=k[F];b.concat(F+1).checkSubtype(Q,Z.type)}if(b.errors.length===0)return new vo(l,p,L,k,T)}}if(x.length===1)i.errors.push(...b.errors);else{const A=(x.length?x:m.map(([k])=>k)).map(kl).join(" | "),L=[];for(let k=1;k<t.length;k++){const j=i.parse(t[k],1+L.length);if(!j)return null;L.push(ro(j.type))}i.error(`Expected arguments of type ${A}, but found (${L.join(", ")}) instead.`)}return null}static register(t,i){vo.definitions=i;for(const l in i)t[l]=vo}}function kl(a){return Array.isArray(a)?`(${a.map(ro).join(", ")})`:`(${ro(a.type)}...)`}class Sf{constructor(t,i,l){this.type=dc,this.locale=l,this.caseSensitive=t,this.diacriticSensitive=i}static parse(t,i){if(t.length!==2)return i.error("Expected one argument."),null;const l=t[1];if(typeof l!="object"||Array.isArray(l))return i.error("Collator options argument must be an object."),null;const h=l["case-sensitive"]===void 0?i.parse(!1,1,Vi):i.parseObjectValue(l["case-sensitive"],1,"case-sensitive",Vi);if(!h)return null;const p=l["diacritic-sensitive"]===void 0?i.parse(!1,1,Vi):i.parseObjectValue(l["diacritic-sensitive"],1,"diacritic-sensitive",Vi);if(!p)return null;let m=null;return l.locale&&(m=i.parseObjectValue(l.locale,1,"locale",Ui),!m)?null:new Sf(h,p,m)}evaluate(t){return new Em(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}serialize(){const t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),["collator",t]}}function Dv(a,t,i=0,l=a.length-1,h=Ef){for(;l>i;){if(l-i>600){const b=l-i+1,T=t-i+1,A=Math.log(b),L=.5*Math.exp(2*A/3),k=.5*Math.sqrt(A*L*(b-L)/b)*(T-b/2<0?-1:1);Dv(a,t,Math.max(i,Math.floor(t-T*L/b+k)),Math.min(l,Math.floor(t+(b-T)*L/b+k)),h)}const p=a[t];let m=i,x=l;for(Dh(a,i,t),h(a[l],p)>0&&Dh(a,i,l);m<x;){for(Dh(a,m,x),m++,x--;h(a[m],p)<0;)m++;for(;h(a[x],p)>0;)x--}h(a[i],p)===0?Dh(a,i,x):(x++,Dh(a,x,l)),x<=t&&(i=x+1),t<=x&&(l=x-1)}}function Dh(a,t,i){const l=a[t];a[t]=a[i],a[i]=l}function Ef(a,t){return a<t?-1:a>t?1:0}function Av(a){let t=0;for(let i,l,h=0,p=a.length,m=p-1;h<p;m=h++)i=a[h],l=a[m],t+=(l.x-i.x)*(i.y+l.y);return t}function ma(a,t){a[0]=Math.min(a[0],t[0]),a[1]=Math.min(a[1],t[1]),a[2]=Math.max(a[2],t[0]),a[3]=Math.max(a[3],t[1])}function Ah(a,t){return!(a[0]<=t[0]||a[2]>=t[2]||a[1]<=t[1]||a[3]>=t[3])}function CI(a,t,i){const l=a[0]-t[0],h=a[1]-t[1],p=a[0]-i[0],m=a[1]-i[1];return l*m-p*h===0&&l*p<=0&&h*m<=0}function Nm(a,t,i){return t[1]>a[1]!=i[1]>a[1]&&a[0]<(i[0]-t[0])*(a[1]-t[1])/(i[1]-t[1])+t[0]}function su(a,t,i=!1){let l=!1;for(let h=0,p=t.length;h<p;h++){const m=t[h];for(let x=0,b=m.length,T=b-1;x<b;T=x++){const A=m[T],L=m[x];if(CI(a,A,L))return i;Nm(a,A,L)&&(l=!l)}}return l}function Sv(a,t,i,l){const h=l[0]-i[0],p=l[1]-i[1],m=(a[0]-i[0])*p-h*(a[1]-i[1]),x=(t[0]-i[0])*p-h*(t[1]-i[1]);return m>0&&x<0||m<0&&x>0}function Sh(a,t,i,l){return(h=[l[0]-i[0],l[1]-i[1]])[0]*(p=[t[0]-a[0],t[1]-a[1]])[1]-h[1]*p[0]!==0&&!(!Sv(a,t,i,l)||!Sv(i,l,a,t));var h,p}function Lm(a){const t=new zt(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),i=new zt(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);for(const l of a[0])t.x>l.x&&(t.x=l.x),t.y>l.y&&(t.y=l.y),i.x<l.x&&(i.x=l.x),i.y<l.y&&(i.y=l.y);return{min:t,max:i}}const zl=8192;function DI(a,t){const i=(180+a[0])/360,l=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+a[1]*Math.PI/360)))/360,h=Math.pow(2,t.z);return[Math.round(i*h*zl),Math.round(l*h*zl)]}function gc(a,t){for(let i=0;i<t.length;i++)if(su(a,t[i]))return!0;return!1}function AI(a,t,i){for(const l of i)for(let h=0,p=l.length,m=p-1;h<p;m=h++)if(Sh(a,t,l[m],l[h]))return!0;return!1}function Ev(a,t){for(let i=0;i<a.length;++i)if(!su(a[i],t))return!1;for(let i=0;i<a.length-1;++i)if(AI(a[i],a[i+1],t))return!1;return!0}function km(a,t){for(let i=0;i<t.length;i++)if(Ev(a,t[i]))return!0;return!1}function Nf(a,t,i){const l=[];for(let h=0;h<a.length;h++){const p=[];for(let m=0;m<a[h].length;m++){const x=DI(a[h][m],i);ma(t,x),p.push(x)}l.push(p)}return l}function zm(a,t,i){const l=[];for(let h=0;h<a.length;h++){const p=Nf(a[h],t,i);l.push(p)}return l}function na(a,t,i,l){if(a[0]<i[0]||a[0]>i[2]){const h=.5*l;let p=a[0]-i[0]>h?-l:i[0]-a[0]>h?l:0;p===0&&(p=a[0]-i[2]>h?-l:i[2]-a[0]>h?l:0),a[0]+=p}ma(t,a)}function Om(a,t,i,l){const h=Math.pow(2,l.z)*zl,p=[l.x*zl,l.y*zl],m=[];if(!a)return m;for(const x of a)for(const b of x){const T=[b.x+p[0],b.y+p[1]];na(T,t,i,h),m.push(T)}return m}function jm(a,t,i,l){const h=Math.pow(2,l.z)*zl,p=[l.x*zl,l.y*zl],m=[];if(!a)return m;for(const b of a){const T=[];for(const A of b){const L=[A.x+p[0],A.y+p[1]];ma(t,L),T.push(L)}m.push(T)}if(t[2]-t[0]<=h/2){(x=t)[0]=x[1]=1/0,x[2]=x[3]=-1/0;for(const b of m)for(const T of b)na(T,t,i,h)}var x;return m}class Ol{constructor(t,i){this.type=Vi,this.geojson=t,this.geometries=i}static parse(t,i){if(t.length!==2)return i.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(ou(t[1])){const l=t[1];if(l.type==="FeatureCollection")for(let h=0;h<l.features.length;++h){const p=l.features[h].geometry.type;if(p==="Polygon"||p==="MultiPolygon")return new Ol(l,l.features[h].geometry)}else if(l.type==="Feature"){const h=l.geometry.type;if(h==="Polygon"||h==="MultiPolygon")return new Ol(l,l.geometry)}else if(l.type==="Polygon"||l.type==="MultiPolygon")return new Ol(l,l)}return i.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return(function(i,l){const h=[1/0,1/0,-1/0,-1/0],p=[1/0,1/0,-1/0,-1/0],m=i.canonicalID();if(!m)return!1;if(l.type==="Polygon"){const x=Nf(l.coordinates,p,m),b=Om(i.geometry(),h,p,m);if(!Ah(h,p))return!1;for(const T of b)if(!su(T,x))return!1}if(l.type==="MultiPolygon"){const x=zm(l.coordinates,p,m),b=Om(i.geometry(),h,p,m);if(!Ah(h,p))return!1;for(const T of b)if(!gc(T,x))return!1}return!0})(t,this.geometries);if(t.geometryType()==="LineString")return(function(i,l){const h=[1/0,1/0,-1/0,-1/0],p=[1/0,1/0,-1/0,-1/0],m=i.canonicalID();if(!m)return!1;if(l.type==="Polygon"){const x=Nf(l.coordinates,p,m),b=jm(i.geometry(),h,p,m);if(!Ah(h,p))return!1;for(const T of b)if(!Ev(T,x))return!1}if(l.type==="MultiPolygon"){const x=zm(l.coordinates,p,m),b=jm(i.geometry(),h,p,m);if(!Ah(h,p))return!1;for(const T of b)if(!km(T,x))return!1}return!0})(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}const Eh={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},Pm=1/298.257223563,Rm=Pm*(2-Pm),au=Math.PI/180;class lu{static fromTile(t,i,l){const h=Math.PI*(1-2*(t+.5)/Math.pow(2,i)),p=Math.atan(.5*(Math.exp(h)-Math.exp(-h)))/au;return new lu(p,l)}static get units(){return Eh}constructor(t,i){if(t===void 0)throw new Error("No latitude given.");if(i&&!Eh[i])throw new Error(`Unknown unit ${i}. Use one of: ${Object.keys(Eh).join(", ")}`);const l=6378.137*au*(i?Eh[i]:1),h=Math.cos(t*au),p=1/(1-Rm*(1-h*h)),m=Math.sqrt(p);this.kx=l*m*h,this.ky=l*m*p*(1-Rm)}distance(t,i){const l=ks(t[0]-i[0])*this.kx,h=(t[1]-i[1])*this.ky;return Math.sqrt(l*l+h*h)}bearing(t,i){const l=ks(i[0]-t[0])*this.kx;return Math.atan2(l,(i[1]-t[1])*this.ky)/au}destination(t,i,l){const h=l*au;return this.offset(t,Math.sin(h)*i,Math.cos(h)*i)}offset(t,i,l){return[t[0]+i/this.kx,t[1]+l/this.ky]}lineDistance(t){let i=0;for(let l=0;l<t.length-1;l++)i+=this.distance(t[l],t[l+1]);return i}area(t){let i=0;for(let l=0;l<t.length;l++){const h=t[l];for(let p=0,m=h.length,x=m-1;p<m;x=p++)i+=ks(h[p][0]-h[x][0])*(h[p][1]+h[x][1])*(l?-1:1)}return Math.abs(i)/2*this.kx*this.ky}along(t,i){let l=0;if(i<=0)return t[0];for(let h=0;h<t.length-1;h++){const p=t[h],m=t[h+1],x=this.distance(p,m);if(l+=x,l>i)return Lf(p,m,(i-(l-x))/x)}return t[t.length-1]}pointToSegmentDistance(t,i,l){let[h,p]=i,m=ks(l[0]-h)*this.kx,x=(l[1]-p)*this.ky;if(m!==0||x!==0){const b=(ks(t[0]-h)*this.kx*m+(t[1]-p)*this.ky*x)/(m*m+x*x);b>1?(h=l[0],p=l[1]):b>0&&(h+=m/this.kx*b,p+=x/this.ky*b)}return m=ks(t[0]-h)*this.kx,x=(t[1]-p)*this.ky,Math.sqrt(m*m+x*x)}pointOnLine(t,i){let l=1/0,h=t[0][0],p=t[0][1],m=0,x=0;for(let b=0;b<t.length-1;b++){let T=t[b][0],A=t[b][1],L=ks(t[b+1][0]-T)*this.kx,k=(t[b+1][1]-A)*this.ky,j=0;L===0&&k===0||(j=(ks(i[0]-T)*this.kx*L+(i[1]-A)*this.ky*k)/(L*L+k*k),j>1?(T=t[b+1][0],A=t[b+1][1]):j>0&&(T+=L/this.kx*j,A+=k/this.ky*j)),L=ks(i[0]-T)*this.kx,k=(i[1]-A)*this.ky;const F=L*L+k*k;F<l&&(l=F,h=T,p=A,m=b,x=j)}return{point:[h,p],index:m,t:Math.max(0,Math.min(1,x))}}lineSlice(t,i,l){let h=this.pointOnLine(l,t),p=this.pointOnLine(l,i);if(h.index>p.index||h.index===p.index&&h.t>p.t){const T=h;h=p,p=T}const m=[h.point],x=h.index+1,b=p.index;!Bm(l[x],m[0])&&x<=b&&m.push(l[x]);for(let T=x+1;T<=b;T++)m.push(l[T]);return Bm(l[b],p.point)||m.push(p.point),m}lineSliceAlong(t,i,l){let h=0;const p=[];for(let m=0;m<l.length-1;m++){const x=l[m],b=l[m+1],T=this.distance(x,b);if(h+=T,h>t&&p.length===0&&p.push(Lf(x,b,(t-(h-T))/T)),h>=i)return p.push(Lf(x,b,(i-(h-T))/T)),p;h>t&&p.push(b)}return p}bufferPoint(t,i){const l=i/this.ky,h=i/this.kx;return[t[0]-h,t[1]-l,t[0]+h,t[1]+l]}bufferBBox(t,i){const l=i/this.ky,h=i/this.kx;return[t[0]-h,t[1]-l,t[2]+h,t[3]+l]}insideBBox(t,i){return ks(t[0]-i[0])>=0&&ks(t[0]-i[2])<=0&&t[1]>=i[1]&&t[1]<=i[3]}}function Bm(a,t){return a[0]===t[0]&&a[1]===t[1]}function Lf(a,t,i){const l=ks(t[0]-a[0]);return[a[0]+l*i,a[1]+(t[1]-a[1])*i]}function ks(a){for(;a<-180;)a+=360;for(;a>180;)a-=360;return a}class Nh{constructor(t=[],i=(l,h)=>l<h?-1:l>h?1:0){if(this.data=t,this.length=this.data.length,this.compare=i,this.length>0)for(let l=(this.length>>1)-1;l>=0;l--)this._down(l)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(this.length===0)return;const t=this.data[0],i=this.data.pop();return--this.length>0&&(this.data[0]=i,this._down(0)),t}peek(){return this.data[0]}_up(t){const{data:i,compare:l}=this,h=i[t];for(;t>0;){const p=t-1>>1,m=i[p];if(l(h,m)>=0)break;i[t]=m,t=p}i[t]=h}_down(t){const{data:i,compare:l}=this,h=this.length>>1,p=i[t];for(;t<h;){let m=1+(t<<1);const x=m+1;if(x<this.length&&l(i[x],i[m])<0&&(m=x),l(i[m],p)>=0)break;i[t]=i[m],t=m}i[t]=p}}var cn=8192;function Nv(a,t){return t.dist-a.dist}function Lv(a){const t=[1/0,1/0,-1/0,-1/0];if(t.length!==a.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==a[i])return!1;return!0}function mc(a){return a[1]-a[0]+1}function ya(a,t){const i=a[1]>=a[0]&&a[1]<t;return i||console.warn("Distance Expression: Index is out of range"),i}function cu(a,t){if(a[0]>a[1])return[null,null];const i=mc(a);if(t){if(i===2)return[a,null];const l=Math.floor(i/2);return[[a[0],a[0]+l],[a[0]+l,a[1]]]}{if(i===1)return[a,null];const l=Math.floor(i/2)-1;return[[a[0],a[0]+l],[a[0]+l+1,a[1]]]}}function jl(a,t){const i=[1/0,1/0,-1/0,-1/0];if(!ya(t,a.length))return i;for(let l=t[0];l<=t[1];++l)ma(i,a[l]);return i}function Lh(a){const t=[1/0,1/0,-1/0,-1/0];for(let i=0;i<a.length;++i)for(let l=0;l<a[i].length;++l)ma(t,a[i][l]);return t}function uu(a,t,i){if(Lv(a)||Lv(t))return NaN;let l=0,h=0;return a[2]<t[0]&&(l=t[0]-a[2]),a[0]>t[2]&&(l=a[0]-t[2]),a[1]>t[3]&&(h=a[1]-t[3]),a[3]<t[1]&&(h=t[1]-a[3]),i.distance([0,0],[l,h])}function SI(a){return 360*a-180}function kv(a){return 360/Math.PI*Math.atan(Math.exp((180-360*a)*Math.PI/180))-90}function il(a,t,i=8192){const l=Math.pow(2,t.z),h=(a.y/i+t.y)/l;return[SI((a.x/i+t.x)/l),kv(h)]}function zv(a,t){const i=[];for(let l=0;l<a.length;++l)i.push(il(a[l],t));return i}function wi(a,t,i){const l=i.pointOnLine(t,a).point;return i.distance(a,l)}function Ov(a,t,i,l,h){const p=i.slice(l[0],l[1]+1);let m=1/0;for(let x=t[0];x<=t[1];++x)if((m=Math.min(m,wi(a[x],p,h)))===0)return 0;return m}function Fm(a,t,i,l,h){const p=Math.min(h.pointToSegmentDistance(a,i,l),h.pointToSegmentDistance(t,i,l)),m=Math.min(h.pointToSegmentDistance(i,a,t),h.pointToSegmentDistance(l,a,t));return Math.min(p,m)}function EI(a,t,i,l,h){if(!ya(t,a.length)||!ya(l,i.length))return NaN;let p=1/0;for(let m=t[0];m<t[1];++m)for(let x=l[0];x<l[1];++x){if(Sh(a[m],a[m+1],i[x],i[x+1]))return 0;p=Math.min(p,Fm(a[m],a[m+1],i[x],i[x+1],h))}return p}function jv(a,t,i,l,h){if(!ya(t,a.length)||!ya(l,i.length))return NaN;let p=1/0;for(let m=t[0];m<=t[1];++m)for(let x=l[0];x<=l[1];++x)if((p=Math.min(p,h.distance(a[m],i[x])))===0)return p;return p}function NI(a,t,i){if(su(a,t,!0))return 0;let l=1/0;for(const h of t){const p=h.length;if(p<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(h[0]!==h[p-1]&&(l=Math.min(l,i.pointToSegmentDistance(a,h[p-1],h[0])))===0||(l=Math.min(l,wi(a,h,i)))===0)return l}return l}function Ar(a,t,i,l){if(!ya(t,a.length))return NaN;for(let p=t[0];p<=t[1];++p)if(su(a[p],i,!0))return 0;let h=1/0;for(let p=t[0];p<t[1];++p)for(const m of i)for(let x=0,b=m.length,T=b-1;x<b;T=x++){if(Sh(a[p],a[p+1],m[T],m[x]))return 0;h=Math.min(h,Fm(a[p],a[p+1],m[T],m[x],l))}return h}function Pv(a,t){for(const i of a)for(let l=0;l<=i.length-1;++l)if(su(i[l],t,!0))return!0;return!1}function LI(a,t,i,l=1/0){const h=Lh(a),p=Lh(t);if(l!==1/0&&uu(h,p,i)>=l)return l;if(Ah(h,p)){if(Pv(a,t))return 0}else if(Pv(t,a))return 0;let m=l;for(const x of a)for(let b=0,T=x.length,A=T-1;b<T;A=b++)for(const L of t)for(let k=0,j=L.length,F=j-1;k<j;F=k++){if(Sh(x[A],x[b],L[F],L[k]))return 0;m=Math.min(m,Fm(x[A],x[b],L[F],L[k],i))}return m}function kf(a,t,i,l,h,p,m){if(p===null||m===null)return;const x=uu(jl(l,p),jl(h,m),i);x<t&&a.push({dist:x,range1:p,range2:m})}function kI(a,t,i,l,h=1/0){let p=Math.min(l.distance(a[0],i[0][0]),h);if(p===0)return p;const m=new Nh([{dist:0,range1:[0,a.length-1],range2:[0,0]}],Nv),x=t?50:100,b=Lh(i);for(;m.length;){const T=m.pop();if(T.dist>=p)continue;const A=T.range1;if(mc(A)<=x){if(!ya(A,a.length))return NaN;if(t){const L=Ar(a,A,i,l);if((p=Math.min(p,L))===0)return p}else for(let L=A[0];L<=A[1];++L){const k=NI(a[L],i,l);if((p=Math.min(p,k))===0)return p}}else{const L=cu(A,t);if(L[0]!==null){const k=uu(jl(a,L[0]),b,l);k<p&&m.push({dist:k,range1:L[0],range2:[0,0]})}if(L[1]!==null){const k=uu(jl(a,L[1]),b,l);k<p&&m.push({dist:k,range1:L[1],range2:[0,0]})}}}return p}function Rv(a,t,i,l,h,p=1/0){let m=Math.min(p,h.distance(a[0],i[0]));if(m===0)return m;const x=new Nh([{dist:0,range1:[0,a.length-1],range2:[0,i.length-1]}],Nv),b=t?50:100,T=l?50:100;for(;x.length;){const A=x.pop();if(A.dist>=m)continue;const L=A.range1,k=A.range2;if(mc(L)<=b&&mc(k)<=T){if(!ya(L,a.length)||!ya(k,i.length))return NaN;if(t&&l?m=Math.min(m,EI(a,L,i,k,h)):t||l?t&&!l?m=Math.min(m,Ov(i,k,a,L,h)):!t&&l&&(m=Math.min(m,Ov(a,L,i,k,h))):m=Math.min(m,jv(a,L,i,k,h)),m===0)return m}else{const j=cu(L,t),F=cu(k,l);kf(x,m,h,a,i,j[0],F[0]),kf(x,m,h,a,i,j[0],F[1]),kf(x,m,h,a,i,j[1],F[0]),kf(x,m,h,a,i,j[1],F[1])}}return m}function Um(a,t,i,l,h=1/0){let p=h;const m=jl(a,[0,a.length-1]);for(const x of i)if(!(p!==1/0&&uu(m,jl(x,[0,x.length-1]),l)>=p)&&(p=Math.min(p,Rv(a,t,x,!0,l,p)),p===0))return p;return p}function zf(a,t,i,l,h=1/0){let p=h;const m=jl(a,[0,a.length-1]);for(const x of i){if(p!==1/0&&uu(m,Lh(x),l)>=p)continue;const b=kI(a,t,x,l,p);if(isNaN(b))return b;if((p=Math.min(p,b))===0)return p}return p}function Vm(a){return a==="Point"||a==="MultiPoint"||a==="LineString"||a==="MultiLineString"||a==="Polygon"||a==="MultiPolygon"}class yc{constructor(t,i){this.type=jn,this.geojson=t,this.geometries=i}static parse(t,i){if(t.length!==2)return i.error(`'distance' expression requires either one argument, but found ' ${t.length-1} instead.`);if(ou(t[1])){const l=t[1];if(l.type==="FeatureCollection"){for(let h=0;h<l.features.length;++h)if(Vm(l.features[h].geometry.type))return new yc(l,l.features[h].geometry)}else if(l.type==="Feature"){if(Vm(l.geometry.type))return new yc(l,l.geometry)}else if(Vm(l.type))return new yc(l,l)}return i.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(t){const i=t.geometry(),l=t.canonicalID();if(i!=null&&l!=null){if(t.geometryType()==="Point")return(function(h,p,m){const x=[];for(const T of h)for(const A of T)x.push(il(A,p));const b=new lu(x[0][1],"meters");return m.type==="Point"||m.type==="MultiPoint"||m.type==="LineString"?Rv(x,!1,m.type==="Point"?[m.coordinates]:m.coordinates,m.type==="LineString",b):m.type==="MultiLineString"?Um(x,!1,m.coordinates,b):m.type==="Polygon"||m.type==="MultiPolygon"?zf(x,!1,m.type==="Polygon"?[m.coordinates]:m.coordinates,b):null})(i,l,this.geometries);if(t.geometryType()==="LineString")return(function(h,p,m){const x=[];for(const T of h){const A=[];for(const L of T)A.push(il(L,p));x.push(A)}const b=new lu(x[0][0][1],"meters");if(m.type==="Point"||m.type==="MultiPoint"||m.type==="LineString")return Um(m.type==="Point"?[m.coordinates]:m.coordinates,m.type==="LineString",x,b);if(m.type==="MultiLineString"){let T=1/0;for(let A=0;A<m.coordinates.length;A++){const L=Um(m.coordinates[A],!0,x,b,T);if(isNaN(L))return L;if((T=Math.min(T,L))===0)return T}return T}if(m.type==="Polygon"||m.type==="MultiPolygon"){let T=1/0;for(let A=0;A<x.length;A++){const L=zf(x[A],!0,m.type==="Polygon"?[m.coordinates]:m.coordinates,b,T);if(isNaN(L))return L;if((T=Math.min(T,L))===0)return T}return T}return null})(i,l,this.geometries);if(t.geometryType()==="Polygon")return(function(h,p,m){const x=[];for(const T of(function(A){const L=A.length;if(L<=1)return[A];const k=[];let j,F;for(let Q=0;Q<L;Q++){const Z=Av(A[Q]);Z!==0&&(A[Q].area=Math.abs(Z),F===void 0&&(F=Z<0),F===Z<0?(j&&k.push(j),j=[A[Q]]):j.push(A[Q]))}return j&&k.push(j),k})(h)){const A=[];for(let L=0;L<T.length;++L)A.push(zv(T[L],p));x.push(A)}const b=new lu(x[0][0][0][1],"meters");if(m.type==="Point"||m.type==="MultiPoint"||m.type==="LineString")return zf(m.type==="Point"?[m.coordinates]:m.coordinates,m.type==="LineString",x,b);if(m.type==="MultiLineString"){let T=1/0;for(let A=0;A<m.coordinates.length;A++){const L=zf(m.coordinates[A],!0,x,b,T);if(isNaN(L))return L;if((T=Math.min(T,L))===0)return T}return T}return m.type==="Polygon"||m.type==="MultiPolygon"?(function(T,A,L){let k=1/0;for(const j of T)for(const F of A){const Q=LI(j,F,L,k);if(isNaN(Q))return Q;if((k=Math.min(k,Q))===0)return k}return k})(m.type==="Polygon"?[m.coordinates]:m.coordinates,x,b):null})(i,l,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requires valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}function _c(a){if(a instanceof vo&&(a.name==="get"&&a.args.length===1||a.name==="feature-state"||a.name==="has"&&a.args.length===1||a.name==="properties"||a.name==="geometry-type"||a.name==="id"||/^filter-/.test(a.name))||a instanceof Ol||a instanceof yc)return!1;if(a instanceof du)return a.featureConstant;let t=!0;return a.eachChild(i=>{t&&!_c(i)&&(t=!1)}),t}function hu(a){if(a instanceof vo&&a.name==="feature-state")return!1;let t=!0;return a.eachChild(i=>{t&&!hu(i)&&(t=!1)}),t}function Oa(a,t){if(a instanceof vo&&t.indexOf(a.name)>=0)return!1;let i=!0;return a.eachChild(l=>{i&&!Oa(l,t)&&(i=!1)}),i}function Bv(a,t,i){return[a,t,i].filter(Boolean).join("")}function Hm(a,t){switch(a){case"string":return Yn(t);case"number":return+t;case"boolean":return!!t;case"color":return Si.parse(t);case"formatted":return Qo.fromString(Yn(t));case"resolvedImage":return ps.build(Yn(t))}return t}function Fv(a,t,i,l){return l!==void 0&&(a=l*Math.round(a/l)),t!==void 0&&a<t&&(a=t),i!==void 0&&a>i&&(a=i),a}class du{constructor(t,i,l,h=!1){this.type=t,this.key=i,this.scope=l,this.featureConstant=h}static parse(t,i){let l=i.expectedType;if(l==null&&(l=Hi),t.length<2||t.length>3)return i.error("Invalid number of arguments for 'config' expression.");const h=i.parse(t[1],1);if(!(h instanceof Cn))return i.error("Key name of 'config' expression must be a string literal.");let p,m=!0;const x=Yn(h.value);if(t.length>=3){const b=i.parse(t[2],2);if(!(b instanceof Cn))return i.error("Scope of 'config' expression must be a string literal.");p=Yn(b.value)}if(i.options){const b=Bv(x,p,i._scope),T=i.options.get(b);T&&(m=_c(T.value||T.default))}return new du(l,x,p,m)}evaluate(t){const i=Bv(this.key,this.scope,t.scope),l=t.getConfig(i);if(!l)return null;const{type:h,value:p,values:m,minValue:x,maxValue:b,stepValue:T}=l,A=l.default.evaluate(t);let L=A;if(p){const k=t.scope;t.scope=(k||"").split("").slice(1).join(""),L=p.evaluate(t),t.scope=k}return h&&(L=Hm(h,L)),L===void 0||x===void 0&&b===void 0&&T===void 0||(typeof L=="number"?L=Fv(L,x,b,T):Array.isArray(L)&&(L=L.map(k=>typeof k=="number"?Fv(k,x,b,T):k))),p!==void 0&&L!==void 0&&m&&!m.includes(L)&&(L=A,h&&(L=Hm(h,L))),(h&&h!==this.type||L!==void 0&&!nl(Vr(L),this.type))&&(L=Hm(this.type.kind,L)),L}eachChild(){}outputDefined(){return!1}serialize(){const t=["config",this.key];return this.scope&&t.concat(this.scope),t}}class Of{constructor(t,i){this.type=i.type,this.name=t,this.boundExpression=i}static parse(t,i){if(t.length!==2||typeof t[1]!="string")return i.error("'var' expression requires exactly one string literal argument.");const l=t[1];return i.scope.has(l)?new Of(l,i.scope.get(l)):i.error(`Unknown variable "${l}". Make sure "${l}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(t){return this.boundExpression.evaluate(t)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class jf{constructor(t,i=[],l,h=new hc,p=[],m,x,b){this.registry=t,this.path=i,this.key=i.map(T=>typeof T=="string"?`['${T}']`:`[${T}]`).join(""),this.scope=h,this.errors=p,this.expectedType=l,this._scope=m,this.options=x,this.iconImageUseTheme=b}parse(t,i,l,h,p={}){return i||l?this.concat(i,null,l,h)._parse(t,p):this._parse(t,p)}parseObjectValue(t,i,l,h,p,m={}){return this.concat(i,l,h,p)._parse(t,m)}_parse(t,i){function l(h,p,m){return m==="assert"?new Ls(p,[h]):m==="coerce"?new ga(p,[h]):h}if(t!==null&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"||(t=["literal",t]),Array.isArray(t)){if(t.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const h=typeof t[0]=="string"?this.registry[t[0]]:void 0;if(h){let p=h.parse(t,this);if(!p)return null;if(this.expectedType){const m=this.expectedType,x=p.type;if(m.kind!=="string"&&m.kind!=="number"&&m.kind!=="boolean"&&m.kind!=="object"&&m.kind!=="array"||x.kind!=="value")if(m.kind!=="color"&&m.kind!=="formatted"&&m.kind!=="resolvedImage"||x.kind!=="value"&&x.kind!=="string"){if(this.checkSubtype(m,x))return null}else p=l(p,m,i.typeAnnotation||"coerce");else p=l(p,m,i.typeAnnotation||"assert")}if(!(p instanceof Cn)&&p.type.kind!=="resolvedImage"&&Qm(p)){const m=new Ch(this._scope,this.options,this.iconImageUseTheme);try{p=new Cn(p.type,p.evaluate(m))}catch(x){return this.error(x.message),null}}return p}return ga.parse(["to-array",t],this)}return this.error(t===void 0?"'undefined' value invalid. Use null instead.":typeof t=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof t} instead.`)}concat(t,i,l,h){let p=typeof t=="number"?this.path.concat(t):this.path;p=typeof i=="string"?p.concat(i):p;const m=h?this.scope.concat(h):this.scope;return new jf(this.registry,p,l||null,m,this.errors,this._scope,this.options,this.iconImageUseTheme)}error(t,...i){const l=`${this.key}${i.map(h=>`[${h}]`).join("")}`;this.errors.push(new ea(l,t))}checkSubtype(t,i){const l=bh(t,i);return l&&this.error(l),l}}function Qm(a){if(a instanceof Of)return Qm(a.boundExpression);if(a instanceof vo&&a.name==="error"||a instanceof Sf||a instanceof Ol||a instanceof yc||a instanceof du)return!1;const t=a instanceof ga||a instanceof Ls;let i=!0;return a.eachChild(l=>{i=t?i&&Qm(l):i&&l instanceof Cn}),!!i&&_c(a)&&Oa(a,["zoom","heatmap-density","worldview","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed","is-active-floor"])}function Pf(a,t){const i=a.length-1;let l,h,p=0,m=i,x=0;for(;p<=m;)if(x=Math.floor((p+m)/2),l=a[x],h=a[x+1],l<=t){if(x===i||t<h)return x;p=x+1}else{if(!(l>t))throw new Xr("Input is not a number.");m=x-1}return 0}class kh{constructor(t,i,l){this.type=t,this.input=i,this.labels=[],this.outputs=[];for(const[h,p]of l)this.labels.push(h),this.outputs.push(p)}static parse(t,i){if(t.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return i.error("Expected an even number of arguments.");const l=i.parse(t[1],1,jn);if(!l)return null;const h=[];let p=null;i.expectedType&&i.expectedType.kind!=="value"&&(p=i.expectedType);for(let m=1;m<t.length;m+=2){const x=m===1?-1/0:t[m],b=t[m+1],T=m,A=m+1;if(typeof x!="number")return i.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',T);if(h.length&&h[h.length-1][0]>=x)return i.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',T);const L=i.parse(b,A,p);if(!L)return null;p=p||L.type,h.push([x,L])}return new kh(p,l,h)}evaluate(t){const i=this.labels,l=this.outputs;if(i.length===1)return l[0].evaluate(t);const h=this.input.evaluate(t);if(h<=i[0])return l[0].evaluate(t);const p=i.length;return h>=i[p-1]?l[p-1].evaluate(t):l[Pf(i,h)].evaluate(t)}eachChild(t){t(this.input);for(const i of this.outputs)t(i)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}serialize(){const t=["step",this.input.serialize()];for(let i=0;i<this.labels.length;i++)i>0&&t.push(this.labels[i]),t.push(this.outputs[i].serialize());return t}}const Uv=.95047,Vv=1.08883,Hv=4/29,fu=6/29,Qv=3*fu*fu,zI=fu*fu*fu,OI=Math.PI/180,jI=180/Math.PI;function Ym(a){return a>zI?Math.pow(a,1/3):a/Qv+Hv}function $m(a){return a>fu?a*a*a:Qv*(a-Hv)}function zh(a){return 255*(a<=.0031308?12.92*a:1.055*Math.pow(a,1/2.4)-.055)}function pu(a){return(a/=255)<=.04045?a/12.92:Math.pow((a+.055)/1.055,2.4)}function Gm(a){const t=pu(a.r),i=pu(a.g),l=pu(a.b),h=Ym((.4124564*t+.3575761*i+.1804375*l)/Uv),p=Ym((.2126729*t+.7151522*i+.072175*l)/1);return{l:116*p-16,a:500*(h-p),b:200*(p-Ym((.0193339*t+.119192*i+.9503041*l)/Vv)),alpha:a.a}}function Yv(a){let t=(a.l+16)/116,i=isNaN(a.a)?t:t+a.a/500,l=isNaN(a.b)?t:t-a.b/200;return t=1*$m(t),i=Uv*$m(i),l=Vv*$m(l),new Si(zh(3.2404542*i-1.5371385*t-.4985314*l),zh(-.969266*i+1.8760108*t+.041556*l),zh(.0556434*i-.2040259*t+1.0572252*l),a.alpha)}function PI(a,t,i){const l=t-a;return a+i*(l>180||l<-180?l-360*Math.round(l/360):l)}const Oh={forward:Gm,reverse:Yv,interpolate:function(a,t,i){return{l:$n(a.l,t.l,i),a:$n(a.a,t.a,i),b:$n(a.b,t.b,i),alpha:$n(a.alpha,t.alpha,i)}}},gu={forward:function(a){const{l:t,a:i,b:l}=Gm(a),h=Math.atan2(l,i)*jI;return{h:h<0?h+360:h,c:Math.sqrt(i*i+l*l),l:t,alpha:a.a}},reverse:function(a){const t=a.h*OI,i=a.c;return Yv({l:a.l,a:Math.cos(t)*i,b:Math.sin(t)*i,alpha:a.alpha})},interpolate:function(a,t,i){return{h:PI(a.h,t.h,i),c:$n(a.c,t.c,i),l:$n(a.l,t.l,i),alpha:$n(a.alpha,t.alpha,i)}}};var Zm=Object.freeze({__proto__:null,hcl:gu,lab:Oh});class Yo{constructor(t,i,l,h,p){this.type=t,this.operator=i,this.interpolation=l,this.input=h,this.labels=[],this.outputs=[];for(const[m,x]of p)this.labels.push(m),this.outputs.push(x)}static interpolationFactor(t,i,l,h){let p=0;if(t.name==="exponential")p=Rf(i,t.base,l,h);else if(t.name==="linear")p=Rf(i,1,l,h);else if(t.name==="cubic-bezier"){const m=t.controlPoints;p=new dr(m[0],m[1],m[2],m[3]).solve(Rf(i,1,l,h))}return p}static parse(t,i){let[l,h,p,...m]=t;if(!Array.isArray(h)||h.length===0)return i.error("Expected an interpolation type expression.",1);if(h[0]==="linear")h={name:"linear"};else if(h[0]==="exponential"){const T=h[1];if(typeof T!="number")return i.error("Exponential interpolation requires a numeric base.",1,1);h={name:"exponential",base:T}}else{if(h[0]!=="cubic-bezier")return i.error(`Unknown interpolation type ${String(h[0])}`,1,0);{const T=h.slice(1);if(T.length!==4||T.some(A=>typeof A!="number"||A<0||A>1))return i.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);h={name:"cubic-bezier",controlPoints:T}}}if(t.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length-1>3&&(t.length-1)%2!=0)return i.error("Expected an even number of arguments.");if(p=i.parse(p,2,jn),!p)return null;const x=[];let b=null;l==="interpolate-hcl"||l==="interpolate-lab"?b=os:i.expectedType&&i.expectedType.kind!=="value"&&(b=i.expectedType);for(let T=0;T<m.length;T+=2){const A=m[T],L=m[T+1],k=T+3,j=T+4;if(typeof A!="number")return i.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',k);if(x.length&&x[x.length-1][0]>=A)return i.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',k);const F=i.parse(L,j,b);if(!F)return null;b=b||F.type,x.push([A,F])}return b.kind==="number"||b.kind==="color"||b.kind==="array"&&b.itemType.kind==="number"&&typeof b.N=="number"?new Yo(b,l,h,p,x):i.error(`Type ${ro(b)} is not interpolatable.`)}evaluate(t){const i=this.labels,l=this.outputs;if(i.length===1)return l[0].evaluate(t);const h=this.input.evaluate(t);if(h<=i[0])return l[0].evaluate(t);const p=i.length;if(h>=i[p-1])return l[p-1].evaluate(t);const m=Pf(i,h),x=Yo.interpolationFactor(this.interpolation,h,i[m],i[m+1]),b=l[m].evaluate(t),T=l[m+1].evaluate(t);return this.operator==="interpolate"?Cf[this.type.kind.toLowerCase()](b,T,x):this.operator==="interpolate-hcl"?gu.reverse(gu.interpolate(gu.forward(b),gu.forward(T),x)):Oh.reverse(Oh.interpolate(Oh.forward(b),Oh.forward(T),x))}eachChild(t){t(this.input);for(const i of this.outputs)t(i)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}serialize(){let t;t=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier",...this.interpolation.controlPoints];const i=[this.operator,t,this.input.serialize()];for(let l=0;l<this.labels.length;l++)i.push(this.labels[l],this.outputs[l].serialize());return i}}function Rf(a,t,i,l){const h=l-i,p=a-i;return h===0?0:t===1?p/h:(Math.pow(t,p)-1)/(Math.pow(t,h)-1)}class jh{constructor(t,i){this.type=t,this.args=i}static parse(t,i){if(t.length<2)return i.error("Expectected at least one argument."),null;let l=null;const h=i.expectedType;h&&h.kind!=="value"&&(l=h);const p=[];for(const x of t.slice(1)){const b=i.parse(x,1+p.length,l,void 0,{typeAnnotation:"omit"});if(!b)return null;l=l||b.type,p.push(b)}const m=h&&p.some(x=>bh(h,x.type));return new jh(m?Hi:l,p)}evaluate(t){let i,l=null,h=0;for(const p of this.args){if(h++,l=p.evaluate(t),l&&l instanceof ps&&!l.available&&(i||(i=l),l=null,h===this.args.length))return i;if(l!==null)break}return l}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}serialize(){const t=["coalesce"];return this.eachChild(i=>{t.push(i.serialize())}),t}}class Bf{constructor(t,i){this.type=i.type,this.bindings=[].concat(t),this.result=i}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(const i of this.bindings)t(i[1]);t(this.result)}static parse(t,i){if(t.length<4)return i.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);const l=[];for(let p=1;p<t.length-1;p+=2){const m=t[p];if(typeof m!="string")return i.error(`Expected string, but found ${typeof m} instead.`,p);if(/[^a-zA-Z0-9_]/.test(m))return i.error("Variable names must contain only alphanumeric characters or '_'.",p);const x=i.parse(t[p+1],p+1);if(!x)return null;l.push([m,x])}const h=i.parse(t[t.length-1],t.length-1,i.expectedType,l);return h?new Bf(l,h):null}outputDefined(){return this.result.outputDefined()}serialize(){const t=["let"];for(const[i,l]of this.bindings)t.push(i,l.serialize());return t.push(this.result.serialize()),t}}class Ph{constructor(t,i,l){this.type=t,this.index=i,this.input=l}static parse(t,i){if(t.length!==3)return i.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const l=i.parse(t[1],1,jn),h=i.parse(t[2],2,Jo(i.expectedType||Hi));return l&&h?new Ph(h.type.itemType,l,h):null}evaluate(t){const i=this.index.evaluate(t),l=this.input.evaluate(t);if(i<0)throw new Xr("Array index out of bounds: negative index");if(i>=l.length)throw new Xr("Array index out of bounds: index exceeds array size");if(i!==Math.floor(i))throw new Xr("Array index must be an integer. Use at-interpolated for fractional indices");return l[i]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class Rh{constructor(t,i,l){this.type=t,this.index=i,this.input=l}static parse(t,i){if(t.length!==3)return i.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const l=i.parse(t[1],1,jn),h=i.parse(t[2],2,Jo(i.expectedType||Hi));return l&&h?new Rh(h.type.itemType,l,h):null}evaluate(t){const i=this.index.evaluate(t),l=this.input.evaluate(t);if(i<0)throw new Xr(`Array index out of bounds: ${i} < 0.`);if(i>l.length-1)throw new Xr(`Array index out of bounds: ${i} > ${l.length-1}.`);if(i===Math.floor(i))return l[i];const h=Math.floor(i),p=Math.ceil(i),m=l[h],x=l[p];if(typeof m!="number"||typeof x!="number")throw new Xr(`Cannot interpolate between non-number values at index ${i}.`);const b=i-h;return m*(1-b)+x*b}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}serialize(){return["at-interpolated",this.index.serialize(),this.input.serialize()]}}class Bh{constructor(t,i){this.type=Vi,this.needle=t,this.haystack=i}static parse(t,i){if(t.length!==3)return i.error(`Expected 2 arguments, but found ${t.length-1} instead.`),null;const l=i.parse(t[1],1,Hi),h=i.parse(t[2],2,Hi);return l&&h?Sm(l.type,[Vi,Ui,jn,tl,Hi])?new Bh(l,h):(i.error(`Expected first argument to be of type boolean, string, number or null, but found ${ro(l.type)} instead`),null):null}evaluate(t){const i=this.needle.evaluate(t),l=this.haystack.evaluate(t);if(l==null)return!1;if(!ru(i,["boolean","string","number","null"]))throw new Xr(`Expected first argument to be of type boolean, string, number or null, but found ${ro(Vr(i))} instead.`);if(!ru(l,["string","array"]))throw new Xr(`Expected second argument to be of type array or string, but found ${ro(Vr(l))} instead.`);return l.indexOf(i)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class Ff{constructor(t,i,l){this.type=jn,this.needle=t,this.haystack=i,this.fromIndex=l}static parse(t,i){if(t.length<=2||t.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`),null;const l=i.parse(t[1],1,Hi),h=i.parse(t[2],2,Hi);if(!l||!h)return null;if(!Sm(l.type,[Vi,Ui,jn,tl,Hi]))return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${ro(l.type)} instead`),null;if(t.length===4){const p=i.parse(t[3],3,jn);return p?new Ff(l,h,p):null}return new Ff(l,h)}evaluate(t){const i=this.needle.evaluate(t),l=this.haystack.evaluate(t);if(!ru(i,["boolean","string","number","null"]))throw new Xr(`Expected first argument to be of type boolean, string, number or null, but found ${ro(Vr(i))} instead.`);if(!ru(l,["string","array"]))throw new Xr(`Expected second argument to be of type array or string, but found ${ro(Vr(l))} instead.`);if(this.fromIndex){const h=this.fromIndex.evaluate(t);return l.indexOf(i,h)}return l.indexOf(i)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class Wm{constructor(t,i,l,h,p,m){this.inputType=t,this.type=i,this.input=l,this.cases=h,this.outputs=p,this.otherwise=m}static parse(t,i){if(t.length<5)return i.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return i.error("Expected an even number of arguments.");let l,h;i.expectedType&&i.expectedType.kind!=="value"&&(h=i.expectedType);const p={},m=[];for(let T=2;T<t.length-1;T+=2){let A=t[T];const L=t[T+1];Array.isArray(A)||(A=[A]);const k=i.concat(T);if(A.length===0)return k.error("Expected at least one branch label.");for(const F of A){if(typeof F!="number"&&typeof F!="string")return k.error("Branch labels must be numbers or strings.");if(typeof F=="number"&&Math.abs(F)>Number.MAX_SAFE_INTEGER)return k.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof F=="number"&&Math.floor(F)!==F)return k.error("Numeric branch labels must be integer values.");if(l){if(k.checkSubtype(l,Vr(F)))return null}else l=Vr(F);if(p[String(F)]!==void 0)return k.error("Branch labels must be unique.");p[String(F)]=m.length}const j=i.parse(L,T,h);if(!j)return null;h=h||j.type,m.push(j)}const x=i.parse(t[1],1,Hi);if(!x)return null;const b=i.parse(t[t.length-1],t.length-1,h);return b?x.type.kind!=="value"&&i.concat(1).checkSubtype(l,x.type)?null:new Wm(l,h,x,p,m,b):null}evaluate(t){const i=this.input.evaluate(t);return(nl(Vr(i),this.inputType)&&this.outputs[this.cases[i]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every(t=>t.outputDefined())&&this.otherwise.outputDefined()}serialize(){const t=["match",this.input.serialize()],i=Object.keys(this.cases).sort(),l=[],h={};for(const m of i){const x=h[this.cases[m]];x===void 0?(h[this.cases[m]]=l.length,l.push([this.cases[m],[m]])):l[x][1].push(m)}const p=m=>this.inputType.kind==="number"?Number(m):m;for(const[m,x]of l)t.push(x.length===1?p(x[0]):x.map(p)),t.push(this.outputs[m].serialize());return t.push(this.otherwise.serialize()),t}}class Uf{constructor(t,i,l){this.type=t,this.branches=i,this.otherwise=l}static parse(t,i){if(t.length<4)return i.error(`Expected at least 3 arguments, but found only ${t.length-1}.`),null;if(t.length%2!=0)return i.error("Expected an odd number of arguments."),null;let l;i.expectedType&&i.expectedType.kind!=="value"&&(l=i.expectedType);const h=[];for(let m=1;m<t.length-1;m+=2){const x=i.parse(t[m],m,Vi);if(!x)return null;const b=i.parse(t[m+1],m+1,l);if(!b)return null;h.push([x,b]),l=l||b.type}const p=i.parse(t[t.length-1],t.length-1,l);return p?new Uf(l,h,p):null}evaluate(t){for(const[i,l]of this.branches)if(i.evaluate(t))return l.evaluate(t);return this.otherwise.evaluate(t)}eachChild(t){for(const[i,l]of this.branches)t(i),t(l);t(this.otherwise)}outputDefined(){return this.branches.every(([t,i])=>i.outputDefined())&&this.otherwise.outputDefined()}serialize(){const t=["case"];return this.eachChild(i=>{t.push(i.serialize())}),t}}class Fh{constructor(t,i,l,h){this.type=t,this.input=i,this.beginIndex=l,this.endIndex=h}static parse(t,i){if(t.length<=2||t.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`),null;const l=i.parse(t[1],1,Hi),h=i.parse(t[2],2,jn);if(!l||!h)return null;if(!Sm(l.type,[Jo(Hi),Ui,Hi]))return i.error(`Expected first argument to be of type array or string, but found ${ro(l.type)} instead`),null;if(t.length===4){const p=i.parse(t[3],3,jn);return p?new Fh(l.type,l,h,p):null}return new Fh(l.type,l,h)}evaluate(t){const i=this.input.evaluate(t),l=this.beginIndex.evaluate(t);if(!ru(i,["string","array"]))throw new Xr(`Expected first argument to be of type array or string, but found ${ro(Vr(i))} instead.`);if(this.endIndex){const h=this.endIndex.evaluate(t);return i.slice(l,h)}return i.slice(l)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}class qm{constructor(t,i){this.type=Jo(Ui),this.str=t,this.delimiter=i}static parse(t,i){if(t.length!==3)return i.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const l=i.parse(t[1],1,Ui),h=i.parse(t[2],2,Ui);return l&&h?new qm(l,h):void 0}evaluate(t){const i=this.str.evaluate(t),l=this.delimiter.evaluate(t);return i.split(l)}eachChild(t){t(this.str),t(this.delimiter)}outputDefined(){return!1}serialize(){return["split",this.str.serialize(),this.delimiter.serialize()]}}function $v(a,t){return a==="=="||a==="!="?t.kind==="boolean"||t.kind==="string"||t.kind==="number"||t.kind==="null"||t.kind==="value":t.kind==="string"||t.kind==="number"||t.kind==="value"}function Gv(a,t,i,l){return l.compare(t,i)===0}function vc(a,t,i){const l=a!=="=="&&a!=="!=";return class VR{constructor(p,m,x){this.type=Vi,this.lhs=p,this.rhs=m,this.collator=x,this.hasUntypedArgument=p.type.kind==="value"||m.type.kind==="value"}static parse(p,m){if(p.length!==3&&p.length!==4)return m.error("Expected two or three arguments.");const x=p[0];let b=m.parse(p[1],1,Hi);if(!b)return null;if(!$v(x,b.type))return m.concat(1).error(`"${x}" comparisons are not supported for type '${ro(b.type)}'.`);let T=m.parse(p[2],2,Hi);if(!T)return null;if(!$v(x,T.type))return m.concat(2).error(`"${x}" comparisons are not supported for type '${ro(T.type)}'.`);if(b.type.kind!==T.type.kind&&b.type.kind!=="value"&&T.type.kind!=="value")return m.error(`Cannot compare types '${ro(b.type)}' and '${ro(T.type)}'.`);l&&(b.type.kind==="value"&&T.type.kind!=="value"?b=new Ls(T.type,[b]):b.type.kind!=="value"&&T.type.kind==="value"&&(T=new Ls(b.type,[T])));let A=null;if(p.length===4){if(b.type.kind!=="string"&&T.type.kind!=="string"&&b.type.kind!=="value"&&T.type.kind!=="value")return m.error("Cannot use collator to compare non-string types.");if(A=m.parse(p[3],3,dc),!A)return null}return new VR(b,T,A)}evaluate(p){const m=this.lhs.evaluate(p),x=this.rhs.evaluate(p);if(l&&this.hasUntypedArgument){const b=Vr(m),T=Vr(x);if(b.kind!==T.kind||b.kind!=="string"&&b.kind!=="number")throw new Xr(`Expected arguments for "${a}" to be (string, string) or (number, number), but found (${b.kind}, ${T.kind}) instead.`)}if(this.collator&&!l&&this.hasUntypedArgument){const b=Vr(m),T=Vr(x);if(b.kind!=="string"||T.kind!=="string")return t(p,m,x)}return this.collator?i(p,m,x,this.collator.evaluate(p)):t(p,m,x)}eachChild(p){p(this.lhs),p(this.rhs),this.collator&&p(this.collator)}outputDefined(){return!0}serialize(){const p=[a];return this.eachChild(m=>{p.push(m.serialize())}),p}}}const Zv=vc("==",function(a,t,i){return t===i},Gv),Vf=vc("!=",function(a,t,i){return t!==i},function(a,t,i,l){return!Gv(0,t,i,l)}),RI=vc("<",function(a,t,i){return t<i},function(a,t,i,l){return l.compare(t,i)<0}),Wv=vc(">",function(a,t,i){return t>i},function(a,t,i,l){return l.compare(t,i)>0}),BI=vc("<=",function(a,t,i){return t<=i},function(a,t,i,l){return l.compare(t,i)<=0}),FI=vc(">=",function(a,t,i){return t>=i},function(a,t,i,l){return l.compare(t,i)>=0});class Hf{constructor(t,i,l,h,p,m){this.type=Ui,this.number=t,this.locale=i,this.currency=l,this.unit=h,this.minFractionDigits=p,this.maxFractionDigits=m}static parse(t,i){if(t.length!==3)return i.error("Expected two arguments.");const l=i.parse(t[1],1,jn);if(!l)return null;const h=t[2];if(typeof h!="object"||Array.isArray(h))return i.error("NumberFormat options argument must be an object.");let p=null;if(h.locale&&(p=i.parseObjectValue(h.locale,2,"locale",Ui),!p))return null;let m=null;if(h.currency&&(m=i.parseObjectValue(h.currency,2,"currency",Ui),!m))return null;let x=null;if(h.unit&&(x=i.parseObjectValue(h.unit,2,"unit",Ui),!x))return null;let b=null;if(h["min-fraction-digits"]&&(b=i.parseObjectValue(h["min-fraction-digits"],2,"min-fraction-digits",jn),!b))return null;let T=null;return h["max-fraction-digits"]&&(T=i.parseObjectValue(h["max-fraction-digits"],2,"max-fraction-digits",jn),!T)?null:new Hf(l,p,m,x,b,T)}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(t):void 0,unit:this.unit?this.unit.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.unit&&t(this.unit),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.unit&&(t.unit=this.unit.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]}}class Qf{constructor(t){this.type=jn,this.input=t}static parse(t,i){if(t.length!==2)return i.error(`Expected 1 argument, but found ${t.length-1} instead.`),null;const l=i.parse(t[1],1);return l?l.type.kind!=="array"&&l.type.kind!=="string"&&l.type.kind!=="value"?(i.error(`Expected argument of type string or array, but found ${ro(l.type)} instead.`),null):new Qf(l):null}evaluate(t){const i=this.input.evaluate(t);if(typeof i=="string"||Array.isArray(i))return i.length;throw new Xr(`Expected value to be of type string or array, but found ${ro(Vr(i))} instead.`)}eachChild(t){t(this.input)}outputDefined(){return!1}serialize(){const t=["length"];return this.eachChild(i=>{t.push(i.serialize())}),t}}function qv(a){return function(){a=1831565813+(a|=0)|0;let t=Math.imul(a^a>>>15,1|a);return t=t+Math.imul(t^t>>>7,61|t)^t,((t^t>>>14)>>>0)/4294967296}}const mu={"==":Zv,"!=":Vf,">":Wv,"<":RI,">=":FI,"<=":BI,array:Ls,at:Ph,"at-interpolated":Rh,boolean:Ls,case:Uf,coalesce:jh,collator:Sf,format:fc,image:Un,in:Bh,"index-of":Ff,interpolate:Yo,"interpolate-hcl":Yo,"interpolate-lab":Yo,length:Qf,let:Bf,literal:Cn,match:Wm,number:Ls,"number-format":Hf,object:Ls,slice:Fh,step:kh,string:Ls,"to-boolean":ga,"to-color":ga,"to-number":ga,"to-string":ga,var:Of,within:Ol,distance:yc,config:du,split:qm};function Xv(a,[t,i,l,h]){t=t.evaluate(a),i=i.evaluate(a),l=l.evaluate(a);const p=h?h.evaluate(a):1,m=Cv(t,i,l,p);if(m)throw new Xr(m);return new Si(t/255,i/255,l/255,p)}function Kv(a,[t,i,l,h]){t=t.evaluate(a),i=i.evaluate(a),l=l.evaluate(a);const p=h?h.evaluate(a):1,m=(function(T,A,L,k){return typeof T=="number"&&T>=0&&T<=360?typeof A=="number"&&A>=0&&A<=100&&typeof L=="number"&&L>=0&&L<=100?k===void 0||typeof k=="number"&&k>=0&&k<=1?null:`Invalid hsla value [${[T,A,L,k].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof k=="number"?[T,A,L,k]:[T,A,L]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof k=="number"?[T,A,L,k]:[T,A,L]).join(", ")}]: 'h' must be between 0 and 360.`})(t,i,l,p);if(m)throw new Xr(m);const x=`hsla(${t}, ${i}%, ${l}%, ${p})`,b=Si.parse(x);if(!b)throw new Xr(`Failed to parse HSLA color: ${x}`);return b}function Uh(a,t){return a in t}function Yf(a,t){const i=t[a];return i===void 0?null:i}function Pl(a){return{type:a}}function $f(a){if(a instanceof du)return new Set([a.key]);let t=new Set;return a.eachChild(i=>{t=new Set([...t,...$f(i)])}),t}function Gf(a){if(a instanceof vo&&a.name==="is-active-floor")return!0;let t=!1;return a.eachChild(i=>{!t&&Gf(i)&&(t=!0)}),t}function Jv(a){return{result:"success",value:a}}function Rl(a){return{result:"error",value:a}}function Vh(a,t){return!!a&&!!a.parameters&&a.parameters.indexOf(t)>-1}function Zf(a){return a["property-type"]==="data-driven"}function ex(a){return Vh(a.expression,"measure-light")}function Xm(a){return Vh(a.expression,"zoom")}function Wf(a){return!!a.expression&&a.expression.interpolated}function Km(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function tx(a){return a}function nx(a,t){const i=t.type==="color",l=a.stops&&typeof a.stops[0][0]=="object",h=l||!(l||a.property!==void 0),p=a.type||(Wf(t)?"exponential":"interval");if(i&&((a=Object.assign({},a)).stops&&(a.stops=a.stops.map(T=>[T[0],Si.parse(T[1])])),a.default=Si.parse(a.default?a.default:t.default)),a.colorSpace&&a.colorSpace!=="rgb"&&!Zm[a.colorSpace])throw new Error(`Unknown color space: ${a.colorSpace}`);let m,x,b;if(p==="exponential")m=ix;else if(p==="interval")m=VI;else if(p==="categorical"){m=UI,x=Object.create(null);for(const T of a.stops)x[T[0]]=T[1];b=typeof a.stops[0][0]}else{if(p!=="identity")throw new Error(`Unknown function type "${p}"`);m=rx}if(l){const T={},A=[];for(let j=0;j<a.stops.length;j++){const F=a.stops[j],Q=F[0].zoom;T[Q]===void 0&&(T[Q]={zoom:Q,type:a.type,property:a.property,default:a.default,stops:[]},A.push(Q)),T[Q].stops.push([F[0].value,F[1]])}const L=[];for(const j of A)L.push([T[j].zoom,nx(T[j],t)]);const k={name:"linear"};return{kind:"composite",interpolationType:k,interpolationFactor:Yo.interpolationFactor.bind(void 0,k),zoomStops:L.map(j=>j[0]),evaluate:({zoom:j},F)=>ix({stops:L,base:a.base},t,j).evaluate(j,F)}}if(h){const T=p==="exponential"?{name:"exponential",base:a.base!==void 0?a.base:1}:null;return{kind:"camera",interpolationType:T,interpolationFactor:Yo.interpolationFactor.bind(void 0,T),zoomStops:a.stops.map(A=>A[0]),evaluate:({zoom:A})=>m(a,t,A,x,b)}}return{kind:"source",evaluate(T,A){const L=A&&A.properties?A.properties[a.property]:void 0;return L===void 0?ja(a.default,t.default):m(a,t,L,x,b)}}}function ja(a,t,i){return a!==void 0?a:t!==void 0?t:i!==void 0?i:void 0}function UI(a,t,i,l,h){return ja(typeof i===h?l[i]:void 0,a.default,t.default)}function VI(a,t,i){if(!Ih(i))return ja(a.default,t.default);const l=a.stops.length;if(l===1||i<=a.stops[0][0])return a.stops[0][1];if(i>=a.stops[l-1][0])return a.stops[l-1][1];const h=Pf(a.stops.map(p=>p[0]),i);return a.stops[h][1]}function ix(a,t,i){const l=a.base!==void 0?a.base:1;if(!Ih(i))return ja(a.default,t.default);const h=a.stops.length;if(h===1||i<=a.stops[0][0])return a.stops[0][1];if(i>=a.stops[h-1][0])return a.stops[h-1][1];const p=Pf(a.stops.map(A=>A[0]),i),m=(function(A,L,k,j){const F=j-k,Q=A-k;return F===0?0:L===1?Q/F:(Math.pow(L,Q)-1)/(Math.pow(L,F)-1)})(i,l,a.stops[p][0],a.stops[p+1][0]),x=a.stops[p][1],b=a.stops[p+1][1];let T=Cf[t.type]||tx;if(a.colorSpace&&a.colorSpace!=="rgb"){const A=Zm[a.colorSpace];T=(L,k)=>A.reverse(A.interpolate(A.forward(L),A.forward(k),m))}return typeof x.evaluate=="function"?{evaluate(...A){const L=x.evaluate.apply(void 0,A),k=b.evaluate.apply(void 0,A);if(L!==void 0&&k!==void 0)return T(L,k,m)}}:T(x,b,m)}function rx(a,t,i){return t.type==="color"?i=Si.parse(i):t.type==="formatted"?i=Qo.fromString(i.toString()):t.type==="resolvedImage"?i=ps.build(i.toString()):Mh(i)===t.type||t.type==="enum"&&t.values[i]||(i=void 0),ja(i,a.default,t.default)}vo.register(mu,{error:[{kind:"error"},[Ui],(a,[t])=>{throw new Xr(t.evaluate(a))}],typeof:[Ui,[Hi],(a,[t])=>ro(Vr(t.evaluate(a)))],"to-rgba":[Jo(jn,4),[os],(a,[t])=>t.evaluate(a).toNonPremultipliedRenderColor(null).toArray()],"to-hsla":[Jo(jn,4),[os],(a,[t])=>t.evaluate(a).toNonPremultipliedRenderColor(null).toHslaArray()],rgb:[os,[jn,jn,jn],Xv],rgba:[os,[jn,jn,jn,jn],Xv],hsl:[os,[jn,jn,jn],Kv],hsla:[os,[jn,jn,jn,jn],Kv],has:{type:Vi,overloads:[[[Ui],(a,[t])=>Uh(t.evaluate(a),a.properties())],[[Ui,Ll],(a,[t,i])=>Uh(t.evaluate(a),i.evaluate(a))]]},get:{type:Hi,overloads:[[[Ui],(a,[t])=>Yf(t.evaluate(a),a.properties())],[[Ui,Ll],(a,[t,i])=>Yf(t.evaluate(a),i.evaluate(a))]]},"feature-state":[Hi,[Ui],(a,[t])=>Yf(t.evaluate(a),a.featureState||{})],properties:[Ll,[],a=>a.properties()],"geometry-type":[Ui,[],a=>a.geometryType()],worldview:[Ui,[],a=>a.globals.worldview||""],"is-active-floor":[Vi,Pl(Ui),(a,t)=>{if(!(a.globals&&a.globals.activeFloors&&a.globals.activeFloors.size>0))return!1;if(t.length===0)return!0;const i=a.globals.activeFloors;return t.some(l=>{const h=l.evaluate(a);return i.has(h)})}],id:[Hi,[],a=>a.id()],zoom:[jn,[],a=>a.globals.zoom],pitch:[jn,[],a=>a.globals.pitch||0],"distance-from-center":[jn,[],a=>a.distanceFromCenter()],"measure-light":[jn,[Ui],(a,[t])=>a.measureLight(t.evaluate(a))],"heatmap-density":[jn,[],a=>a.globals.heatmapDensity||0],"line-progress":[jn,[],a=>a.globals.lineProgress||0],"raster-value":[jn,[],a=>a.globals.rasterValue||0],"raster-particle-speed":[jn,[],a=>a.globals.rasterParticleSpeed||0],"sky-radial-progress":[jn,[],a=>a.globals.skyRadialProgress||0],accumulated:[Hi,[],a=>a.globals.accumulated===void 0?null:a.globals.accumulated],"+":[jn,Pl(jn),(a,t)=>{let i=0;for(const l of t)i+=l.evaluate(a);return i}],"*":[jn,Pl(jn),(a,t)=>{let i=1;for(const l of t)i*=l.evaluate(a);return i}],"-":{type:jn,overloads:[[[jn,jn],(a,[t,i])=>t.evaluate(a)-i.evaluate(a)],[[jn],(a,[t])=>-t.evaluate(a)]]},"/":[jn,[jn,jn],(a,[t,i])=>t.evaluate(a)/i.evaluate(a)],"%":[jn,[jn,jn],(a,[t,i])=>t.evaluate(a)%i.evaluate(a)],ln2:[jn,[],()=>Math.LN2],pi:[jn,[],()=>Math.PI],e:[jn,[],()=>Math.E],"^":[jn,[jn,jn],(a,[t,i])=>Math.pow(t.evaluate(a),i.evaluate(a))],sqrt:[jn,[jn],(a,[t])=>Math.sqrt(t.evaluate(a))],log10:[jn,[jn],(a,[t])=>Math.log(t.evaluate(a))/Math.LN10],ln:[jn,[jn],(a,[t])=>Math.log(t.evaluate(a))],log2:[jn,[jn],(a,[t])=>Math.log2(t.evaluate(a))],sin:[jn,[jn],(a,[t])=>Math.sin(t.evaluate(a))],cos:[jn,[jn],(a,[t])=>Math.cos(t.evaluate(a))],tan:[jn,[jn],(a,[t])=>Math.tan(t.evaluate(a))],asin:[jn,[jn],(a,[t])=>Math.asin(t.evaluate(a))],acos:[jn,[jn],(a,[t])=>Math.acos(t.evaluate(a))],atan:[jn,[jn],(a,[t])=>Math.atan(t.evaluate(a))],min:[jn,Pl(jn),(a,t)=>Math.min(...t.map(i=>i.evaluate(a)))],max:[jn,Pl(jn),(a,t)=>Math.max(...t.map(i=>i.evaluate(a)))],abs:[jn,[jn],(a,[t])=>Math.abs(t.evaluate(a))],round:[jn,[jn],(a,[t])=>{const i=t.evaluate(a);return i<0?-Math.round(-i):Math.round(i)}],floor:[jn,[jn],(a,[t])=>Math.floor(t.evaluate(a))],ceil:[jn,[jn],(a,[t])=>Math.ceil(t.evaluate(a))],"filter-==":[Vi,[Ui,Hi],(a,[t,i])=>a.properties()[t.value]===i.value],"filter-id-==":[Vi,[Hi],(a,[t])=>a.id()===t.value],"filter-type-==":[Vi,[Ui],(a,[t])=>a.geometryType()===t.value],"filter-<":[Vi,[Ui,Hi],(a,[t,i])=>{const l=a.properties()[t.value],h=i.value;return typeof l==typeof h&&l<h}],"filter-id-<":[Vi,[Hi],(a,[t])=>{const i=a.id(),l=t.value;return typeof i==typeof l&&i<l}],"filter->":[Vi,[Ui,Hi],(a,[t,i])=>{const l=a.properties()[t.value],h=i.value;return typeof l==typeof h&&l>h}],"filter-id->":[Vi,[Hi],(a,[t])=>{const i=a.id(),l=t.value;return typeof i==typeof l&&i>l}],"filter-<=":[Vi,[Ui,Hi],(a,[t,i])=>{const l=a.properties()[t.value],h=i.value;return typeof l==typeof h&&l<=h}],"filter-id-<=":[Vi,[Hi],(a,[t])=>{const i=a.id(),l=t.value;return typeof i==typeof l&&i<=l}],"filter->=":[Vi,[Ui,Hi],(a,[t,i])=>{const l=a.properties()[t.value],h=i.value;return typeof l==typeof h&&l>=h}],"filter-id->=":[Vi,[Hi],(a,[t])=>{const i=a.id(),l=t.value;return typeof i==typeof l&&i>=l}],"filter-has":[Vi,[Hi],(a,[t])=>t.value in a.properties()],"filter-has-id":[Vi,[],a=>a.id()!==null&&a.id()!==void 0],"filter-type-in":[Vi,[Jo(Ui)],(a,[t])=>t.value.indexOf(a.geometryType())>=0],"filter-id-in":[Vi,[Jo(Hi)],(a,[t])=>t.value.indexOf(a.id())>=0],"filter-in-small":[Vi,[Ui,Jo(Hi)],(a,[t,i])=>i.value.indexOf(a.properties()[t.value])>=0],"filter-in-large":[Vi,[Ui,Jo(Hi)],(a,[t,i])=>(function(l,h,p,m){for(;p<=m;){const x=p+m>>1;if(h[x]===l)return!0;h[x]>l?m=x-1:p=x+1}return!1})(a.properties()[t.value],i.value,0,i.value.length-1)],all:{type:Vi,overloads:[[[Vi,Vi],(a,[t,i])=>t.evaluate(a)&&i.evaluate(a)],[Pl(Vi),(a,t)=>{for(const i of t)if(!i.evaluate(a))return!1;return!0}]]},any:{type:Vi,overloads:[[[Vi,Vi],(a,[t,i])=>t.evaluate(a)||i.evaluate(a)],[Pl(Vi),(a,t)=>{for(const i of t)if(i.evaluate(a))return!0;return!1}]]},"!":[Vi,[Vi],(a,[t])=>!t.evaluate(a)],"is-supported-script":[Vi,[Ui],(a,[t])=>{const i=a.globals&&a.globals.isSupportedScript;return!i||i(t.evaluate(a))}],upcase:[Ui,[Ui],(a,[t])=>t.evaluate(a).toUpperCase()],downcase:[Ui,[Ui],(a,[t])=>t.evaluate(a).toLowerCase()],concat:[Ui,Pl(Hi),(a,t)=>t.map(i=>Yn(i.evaluate(a))).join("")],"resolved-locale":[Ui,[dc],(a,[t])=>t.evaluate(a).resolvedLocale()],random:[jn,[jn,jn,Hi],(a,t)=>{const[i,l,h]=t.map(m=>m.evaluate(a));if(i>l||i===l)return i;let p;if(typeof h=="string")p=(function(m){let x=0;if(m.length===0)return x;for(let b=0;b<m.length;b++)x=(x<<5)-x+m.charCodeAt(b),x&=x;return x})(h);else{if(typeof h!="number")throw new Xr(`Invalid seed input: ${h}`);p=h}return i+qv(p)()*(l-i)}]});class qf{constructor(t,i,l,h,p){this.expression=t,this._warningHistory={},this._scope=l,this._options=h,this._iconImageUseTheme=p,this._evaluator=new Ch(l,h,p),this._defaultValue=i?(function(m){return m.type==="color"&&(Km(m.default)||Array.isArray(m.default))?new Si(0,0,0,0):m.type==="color"?Si.parse(m.default)||null:m.default===void 0?null:m.default})(i):null,this._enumValues=i&&i.type==="enum"?i.values:null,this.configDependencies=$f(t),this.isIndoorDependent=Gf(t)}evaluateWithoutErrorHandling(t,i,l,h,p,m,x,b){return this._evaluator.globals=t,this._evaluator.feature=i,this._evaluator.featureState=l,this._evaluator.canonical=h||null,this._evaluator.availableImages=p||null,this._evaluator.formattedSection=m,this._evaluator.featureTileCoord=x||null,this._evaluator.featureDistanceData=b||null,this.expression.evaluate(this._evaluator)}evaluate(t,i,l,h,p,m,x,b,T){this._evaluator||(this._evaluator=new Ch(this._scope,this._options,this._iconImageUseTheme)),this._evaluator.globals=t,this._evaluator.feature=i||null,this._evaluator.featureState=l||null,this._evaluator.canonical=h||null,this._evaluator.availableImages=p||null,this._evaluator.formattedSection=m||null,this._evaluator.featureTileCoord=x||null,this._evaluator.featureDistanceData=b||null,this._evaluator.iconImageUseTheme=T||null;try{const A=this.expression.evaluate(this._evaluator);if(A==null||typeof A=="number"&&A!=A)return this._defaultValue;if(this._enumValues&&!(A in this._enumValues))throw new Xr(`Expected value to be one of ${Object.keys(this._enumValues).map(L=>JSON.stringify(L)).join(", ")}, but found ${JSON.stringify(A)} instead.`);return A}catch(A){const L=A;return this._warningHistory[L.message]||(this._warningHistory[L.message]=!0,typeof console<"u"&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${L.message}`)),this._defaultValue}}}function Hh(a){return Array.isArray(a)&&a.length>0&&typeof a[0]=="string"&&a[0]in mu}function Bl(a,t,i,l,h){const p=new jf(mu,[],t?(function(x){const b={color:os,string:Ui,number:jn,enum:Ui,boolean:Vi,formatted:vh,resolvedImage:xh};return x.type==="array"?Jo(b[x.value]||Hi,x.length):b[x.type]})(t):void 0,void 0,void 0,i,l,h),m=p.parse(a,void 0,void 0,void 0,t&&t.type==="string"?{typeAnnotation:"coerce"}:void 0);return m?Jv(new qf(m,t,i,l,h)):Rl(p.errors)}class yu{constructor(t,i,l,h){this.kind=t,this._styleExpression=i,this.isLightConstant=l,this.isLineProgressConstant=h,this.isStateDependent=t!=="constant"&&!hu(i.expression),this.configDependencies=$f(i.expression),this.isIndoorDependent=Gf(i.expression)}evaluateWithoutErrorHandling(t,i,l,h,p,m){return this._styleExpression.evaluateWithoutErrorHandling(t,i,l,h,p,m)}evaluate(t,i,l,h,p,m,x){return this._styleExpression.evaluate(t,i,l,h,p,m,void 0,void 0,x)}}class xc{constructor(t,i,l,h,p,m){this.kind=t,this.zoomStops=l,this._styleExpression=i,this.isStateDependent=t!=="camera"&&!hu(i.expression),this.isIndoorDependent=Gf(i.expression),this.isLightConstant=p,this.isLineProgressConstant=m,this.configDependencies=$f(i.expression),this.interpolationType=h}evaluateWithoutErrorHandling(t,i,l,h,p,m){return this._styleExpression.evaluateWithoutErrorHandling(t,i,l,h,p,m)}evaluate(t,i,l,h,p,m){return this._styleExpression.evaluate(t,i,l,h,p,m)}interpolationFactor(t,i,l){return this.interpolationType?Yo.interpolationFactor(this.interpolationType,t,i,l):0}}function Jm(a,t,i,l,h){if((a=Bl(a,t,i,l,h)).result==="error")return a;const p=a.value.expression,m=_c(p);if(!m&&!Zf(t))return Rl([new ea("","data expressions not supported")]);const x=Oa(p,["zoom","pitch","distance-from-center"]);if(!x&&!Xm(t))return Rl([new ea("","zoom expressions not supported")]);const b=Oa(p,["measure-light"]);if(!b&&!ex(t))return Rl([new ea("","measure-light expression not supported")]);const T=Oa(p,["line-progress"]);if(!T&&!(function(k){return Vh(k.expression,"line-progress")})(t))return Rl([new ea("","line-progress expression not supported")]);const A=t.expression&&t.expression.relaxZoomRestriction,L=_a(p);return L||x||A?L instanceof ea?Rl([L]):L instanceof Yo&&!Wf(t)?Rl([new ea("",'"interpolate" expressions cannot be used with this property')]):Jv(L?new xc(m&&T?"camera":"composite",a.value,L.labels,L instanceof Yo?L.interpolation:void 0,b,T):new yu(m&&T?"constant":"source",a.value,b,T)):Rl([new ea("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class Xf{constructor(t,i){this._parameters=t,this._specification=i,Object.assign(this,nx(this._parameters,this._specification))}static deserialize(t){return new Xf(t._parameters,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification}}}function _a(a){let t=null;if(a instanceof Bf)t=_a(a.result);else if(a instanceof jh){for(const i of a.args)if(t=_a(i),t)break}else(a instanceof kh||a instanceof Yo)&&a.input instanceof vo&&a.input.name==="zoom"&&(t=a);return t instanceof ea||a.eachChild(i=>{const l=_a(i);l instanceof ea?t=l:t&&l&&t!==l&&(t=new ea("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),t}var e0,ox,Qh=(function(){if(ox)return e0;ox=1,e0=t;var a=3;function t(i,l,h){var p=this.cells=[];if(i instanceof ArrayBuffer){this.arrayBuffer=i;var m=new Int32Array(this.arrayBuffer);i=m[0],this.d=(l=m[1])+2*(h=m[2]);for(var x=0;x<this.d*this.d;x++){var b=m[a+x],T=m[a+x+1];p.push(b===T?null:m.subarray(b,T))}var A=m[a+p.length+1];this.keys=m.subarray(m[a+p.length],A),this.bboxes=m.subarray(A),this.insert=this._insertReadonly}else{this.d=l+2*h;for(var L=0;L<this.d*this.d;L++)p.push([]);this.keys=[],this.bboxes=[]}this.n=l,this.extent=i,this.padding=h,this.scale=l/i,this.uid=0;var k=h/l*i;this.min=-k,this.max=i+k}return t.prototype.insert=function(i,l,h,p,m){this._forEachCell(l,h,p,m,this._insertCell,this.uid++),this.keys.push(i),this.bboxes.push(l),this.bboxes.push(h),this.bboxes.push(p),this.bboxes.push(m)},t.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},t.prototype._insertCell=function(i,l,h,p,m,x){this.cells[m].push(x)},t.prototype.query=function(i,l,h,p,m){var x=this.min,b=this.max;if(i<=x&&l<=x&&b<=h&&b<=p&&!m)return Array.prototype.slice.call(this.keys);var T=[];return this._forEachCell(i,l,h,p,this._queryCell,T,{},m),T},t.prototype._queryCell=function(i,l,h,p,m,x,b,T){var A=this.cells[m];if(A!==null)for(var L=this.keys,k=this.bboxes,j=0;j<A.length;j++){var F=A[j];if(b[F]===void 0){var Q=4*F;(T?T(k[Q+0],k[Q+1],k[Q+2],k[Q+3]):i<=k[Q+2]&&l<=k[Q+3]&&h>=k[Q+0]&&p>=k[Q+1])?(b[F]=!0,x.push(L[F])):b[F]=!1}}},t.prototype._forEachCell=function(i,l,h,p,m,x,b,T){for(var A=this._convertToCellCoord(i),L=this._convertToCellCoord(l),k=this._convertToCellCoord(h),j=this._convertToCellCoord(p),F=A;F<=k;F++)for(var Q=L;Q<=j;Q++){var Z=this.d*Q+F;if((!T||T(this._convertFromCellCoord(F),this._convertFromCellCoord(Q),this._convertFromCellCoord(F+1),this._convertFromCellCoord(Q+1)))&&m.call(this,i,l,h,p,Z,x,b,T))return}},t.prototype._convertFromCellCoord=function(i){return(i-this.padding)/this.scale},t.prototype._convertToCellCoord=function(i){return Math.max(0,Math.min(this.d-1,Math.floor(i*this.scale)+this.padding))},t.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var i=this.cells,l=a+this.cells.length+1+1,h=0,p=0;p<this.cells.length;p++)h+=this.cells[p].length;var m=new Int32Array(l+h+this.keys.length+this.bboxes.length);m[0]=this.extent,m[1]=this.n,m[2]=this.padding;for(var x=l,b=0;b<i.length;b++){var T=i[b];m[a+b]=x,m.set(T,x),x+=T.length}return m[a+i.length]=x,m.set(this.keys,x),m[a+i.length+1]=x+=this.keys.length,m.set(this.bboxes,x),x+=this.bboxes.length,m.buffer},e0})(),_u=ji(Qh);const bc={};function vn(a,t,i={}){Object.defineProperty(a,"_classRegistryKey",{value:t,writable:!1}),bc[t]={klass:a,omit:i.omit||[]}}vn(Object,"Object"),_u.serialize=function(a,t){const i=a.toArrayBuffer();return t&&t.add(i),{buffer:i}},_u.deserialize=function(a){return new _u(a.buffer)},Object.defineProperty(_u,"name",{value:"Grid"}),vn(_u,"Grid"),delete zt.prototype.constructor,vn(Si,"Color"),vn(Error,"Error"),vn(Qo,"Formatted"),vn(wh,"FormattedSection"),vn(Mm,"AJAXError"),vn(ps,"ResolvedImage"),vn(Xf,"StylePropertyFunction"),vn(qf,"StyleExpression",{omit:["_evaluator"]}),vn(bs,"ImageId"),vn(ta,"ImageVariant"),vn(xc,"ZoomDependentExpression"),vn(yu,"ZoomConstantExpression"),vn(vo,"CompoundExpression",{omit:["_evaluate"]});for(const a in mu)bc[mu[a]._classRegistryKey]||vn(mu[a],`Expression${a}`);function Yh(a){return a&&(a instanceof ArrayBuffer||a.constructor&&a.constructor.name==="ArrayBuffer")}function rl(a,t){if(a==null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||a instanceof Boolean||a instanceof Number||a instanceof String||a instanceof Date||a instanceof RegExp)return a;if(Yh(a)||a instanceof ImageBitmap)return t&&t.add(a),a;if(ArrayBuffer.isView(a))return t&&t.add(a.buffer),a;if(a instanceof ImageData)return t&&t.add(a.data.buffer),a;if(Array.isArray(a)){const i=[];for(const l of a)i.push(rl(l,t));return i}if(a instanceof Map){const i={$name:"Map",entries:[]};for(const[l,h]of a.entries())i.entries.push(rl(l),rl(h,t));return i}if(a instanceof Set){const i={$name:"Set"};let l=0;for(const h of a.values())i[++l]=rl(h);return i}if(typeof a=="bigint")return{$name:"BigInt",value:a.toString()};if(typeof a=="object"){const i=a.constructor,l=i._classRegistryKey;if(!l)throw new Error(`Can't serialize object of unregistered class "${i.name}".`);const h=i.serialize?i.serialize(a,t):{};if(!i.serialize){for(const p in a)a.hasOwnProperty(p)&&(bc[l].omit.indexOf(p)>=0||(h[p]=rl(a[p],t)));a instanceof Error&&(h.message=a.message)}if(h.$name)throw new Error("$name property is reserved for worker serialization logic.");return l!=="Object"&&(h.$name=l),h}throw new Error("can't serialize object of type "+typeof a)}function Fl(a){if(a==null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||a instanceof Boolean||a instanceof Number||a instanceof String||a instanceof Date||a instanceof RegExp||Yh(a)||a instanceof ImageBitmap||ArrayBuffer.isView(a)||a instanceof ImageData)return a;if(Array.isArray(a))return a.map(Fl);if(typeof a=="object"){const t=a.$name||"Object";if(t==="Map"){const h=a.entries||[],p=new Map;for(let m=0;m<h.length;m+=2)p.set(Fl(h[m]),Fl(h[m+1]));return p}if(t==="Set"){const h=new Set;for(const p of Object.keys(a))p!=="$name"&&h.add(Fl(a[p]));return h}if(t==="BigInt")return BigInt(a.value);const{klass:i}=bc[t];if(!i)throw new Error(`Can't deserialize unregistered class "${t}".`);if(i.deserialize)return i.deserialize(a);const l=Object.create(i.prototype);for(const h of Object.keys(a))h!=="$name"&&(l[h]=Fl(a[h]));return l}throw new Error("can't deserialize object of type "+typeof a)}const sx=a=>a>=1536&&a<=1791,Kf=a=>a>=1872&&a<=1919,Jf=a=>a>=2208&&a<=2303,ep=a=>a>=11904&&a<=12031,ol=a=>a>=12032&&a<=12255,t0=a=>a>=12272&&a<=12287,$h=a=>a>=12288&&a<=12351,Gh=a=>a>=12352&&a<=12447,wc=a=>a>=12448&&a<=12543,n0=a=>a>=12544&&a<=12591,tp=a=>a>=12704&&a<=12735,Pa=a=>a>=12736&&a<=12783,ax=a=>a>=12784&&a<=12799,lx=a=>a>=12800&&a<=13055,cx=a=>a>=13056&&a<=13311,i0=a=>a>=13312&&a<=19903,np=a=>a>=19968&&a<=40959,Zh=a=>a>=40960&&a<=42127,r0=a=>a>=42128&&a<=42191,o0=a=>a>=44032&&a<=55215,ip=a=>a>=63744&&a<=64255,s0=a=>a>=64336&&a<=65023,ux=a=>a>=65040&&a<=65055,a0=a=>a>=65072&&a<=65103,hx=a=>a>=65104&&a<=65135,l0=a=>a>=65136&&a<=65279,c0=a=>a>=65280&&a<=65519;function u0(a){for(const t of a)if(h0(t.charCodeAt(0)))return!0;return!1}function HI(a){for(const t of a)if(!QI(t.charCodeAt(0)))return!1;return!0}function QI(a){return!(sx(a)||Kf(a)||Jf(a)||s0(a)||l0(a))}function YI(a){return!(a<11904||!(tp(a)||n0(a)||a0(a)||ip(a)||cx(a)||ep(a)||Pa(a)||$h(a)||i0(a)||np(a)||lx(a)||c0(a)||Gh(a)||t0(a)||ol(a)||ax(a)||wc(a)||ux(a)||r0(a)||Zh(a)))}function h0(a){return!(a!==746&&a!==747&&(a<4352||!(tp(a)||n0(a)||a0(a)&&!(a>=65097&&a<=65103)||ip(a)||cx(a)||ep(a)||Pa(a)||!(!$h(a)||a>=12296&&a<=12305||a>=12308&&a<=12319||a===12336)||i0(a)||np(a)||lx(a)||(t=>t>=12592&&t<=12687)(a)||(t=>t>=43360&&t<=43391)(a)||(t=>t>=55216&&t<=55295)(a)||(t=>t>=4352&&t<=4607)(a)||o0(a)||Gh(a)||t0(a)||(t=>t>=12688&&t<=12703)(a)||ol(a)||ax(a)||wc(a)&&a!==12540||!(!c0(a)||a===65288||a===65289||a===65293||a>=65306&&a<=65310||a===65339||a===65341||a===65343||a>=65371&&a<=65503||a===65507||a>=65512&&a<=65519)||!(!hx(a)||a>=65112&&a<=65118||a>=65123&&a<=65126)||(t=>t>=5120&&t<=5759)(a)||(t=>t>=6320&&t<=6399)(a)||ux(a)||(t=>t>=19904&&t<=19967)(a)||Zh(a)||r0(a))))}function dx(a){return a===12312||a===12313||a===12316||a===12540||a===12448}function Mc(a){return!(h0(a)||(function(t){return!!((i=>i>=128&&i<=255)(t)&&(t===167||t===169||t===174||t===177||t===188||t===189||t===190||t===215||t===247)||(i=>i>=8192&&i<=8303)(t)&&(t===8214||t===8224||t===8225||t===8240||t===8241||t===8251||t===8252||t===8258||t===8263||t===8264||t===8265||t===8273)||(i=>i>=8448&&i<=8527)(t)||(i=>i>=8528&&i<=8591)(t)||(i=>i>=8960&&i<=9215)(t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||t===9003||t>=9085&&t<=9114||t>=9150&&t<=9165||t===9167||t>=9169&&t<=9179||t>=9186&&t<=9215)||(i=>i>=9216&&i<=9279)(t)&&t!==9251||(i=>i>=9280&&i<=9311)(t)||(i=>i>=9312&&i<=9471)(t)||(i=>i>=9632&&i<=9727)(t)||(i=>i>=9728&&i<=9983)(t)&&!(t>=9754&&t<=9759)||(i=>i>=11008&&i<=11263)(t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||$h(t)||wc(t)||(i=>i>=57344&&i<=63743)(t)||a0(t)||hx(t)||c0(t)||t===8734||t===8756||t===8757||t>=9984&&t<=10087||t>=10102&&t<=10131||t===65532||t===65533)})(a))}function fx(a){return sx(a)||Kf(a)||Jf(a)||s0(a)||l0(a)}function d0(a){return a>=1424&&a<=2303||s0(a)||l0(a)}function rp(a,t){return!(!t&&d0(a)||a>=2304&&a<=3583||a>=3840&&a<=4255||(i=>i>=6016&&i<=6143)(a))}function $I(a){for(const t of a)if(d0(t.charCodeAt(0)))return!0;return!1}const ws={unavailable:"unavailable",deferred:"deferred",loading:"loading",parsing:"parsing",parsed:"parsed",loaded:"loaded",error:"error"};let Ra=null,es=ws.unavailable,zs=null;const px=function(a){a&&typeof a=="string"&&a.indexOf("NetworkError")>-1&&(es=ws.error),Ra&&Ra(a)};function f0(){p0.fire(new fa("pluginStateChange",{pluginStatus:es,pluginURL:zs}))}const p0=new _h,g0=function(){return es},gx=function(){if(es!==ws.deferred||!zs)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");es=ws.loading,f0(),zs&&eu({url:zs},a=>{a?px(a):(es=ws.loaded,f0())})},sl={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>es===ws.loaded||sl.applyArabicShaping!=null,isLoading:()=>es===ws.loading,setState(a){es=a.pluginStatus,zs=a.pluginURL},isParsing:()=>es===ws.parsing,isParsed:()=>es===ws.parsed,getPluginURL:()=>zs},mx=function(){sl.isLoading()||sl.isLoaded()||g0()!=="deferred"||gx()};class Ri{constructor(t,i){this.zoom=t,i?(this.now=i.now,this.fadeDuration=i.fadeDuration,this.transition=i.transition,this.pitch=i.pitch,this.brightness=i.brightness,this.worldview=i.worldview,this.activeFloors=i.activeFloors):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(t){return(function(i,l){for(const h of i)if(!rp(h.charCodeAt(0),l))return!1;return!0})(t,sl.isLoaded())}}class vu{constructor(t,i,l,h,p){this.property=t,this.value=i,this.expression=(function(m,x,b,T,A){if(Km(m))return new Xf(m,x);if(Hh(m)||Array.isArray(m)&&m.length>0){const L=Jm(m,x,b,T,A);if(L.result==="error")throw new Error(L.value.map(k=>`${k.key}: ${k.message}`).join(", "));return L.value}{let L=m;return typeof m=="string"&&x.type==="color"&&(L=Si.parse(m)),{kind:"constant",configDependencies:new Set,isIndoorDependent:!1,evaluate:()=>L}}})(i===void 0?t.specification.default:i,t.specification,l,h,p)}isIndoorDependent(){return this.expression.isIndoorDependent}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(t,i,l,h){return this.property.possiblyEvaluate(this,t,i,l,h)}}class op{constructor(t,i,l,h){this.property=t,this.value=new vu(t,void 0,i,l,h)}transitioned(t,i){return new xu(this.property,this.value,i,Object.assign({},t.transition,this.transition),t.now)}untransitioned(){return new xu(this.property,this.value,null,{},0)}}class sp{constructor(t,i,l,h){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues),this._scope=i,this._options=l,this._iconImageUseTheme=h,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(t){return Pt(this._values[t].value.value)}setValue(t,i){this._values.hasOwnProperty(t)||(this._values[t]=new op(this._values[t].property,this._scope,this._options,this._iconImageUseTheme)),this._values[t].value=new vu(this._values[t].property,i===null?void 0:Pt(i),this._scope,this._options,this._iconImageUseTheme),this._values[t].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[t].value.expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[t].value.isIndoorDependent())}setTransitionOrValue(t,i){i&&(this._options=i);const l=this._properties.properties;if(t)for(const h in t){const p=t[h];if(h.endsWith("-transition")){const m=h.slice(0,-11);l[m]&&this.setTransition(m,p)}else l.hasOwnProperty(h)&&this.setValue(h,p)}}getTransition(t){return Pt(this._values[t].transition)}setTransition(t,i){this._values.hasOwnProperty(t)||(this._values[t]=new op(this._values[t].property)),this._values[t].transition=Pt(i)||void 0}serialize(){const t={};for(const i of Object.keys(this._values)){const l=this.getValue(i);l!==void 0&&(t[i]=l);const h=this.getTransition(i);h!==void 0&&(t[`${i}-transition`]=h)}return t}transitioned(t,i){const l=new m0(this._properties);for(const h of Object.keys(this._values))l._values[h]=this._values[h].transitioned(t,i._values[h]);return l}untransitioned(){const t=new m0(this._properties);for(const i of Object.keys(this._values))t._values[i]=this._values[i].untransitioned();return t}isIndoorDependent(){return this._isIndoorDependent}}class xu{constructor(t,i,l,h,p){const m=h.delay||0,x=h.duration||0;p=p||0,this.property=t,this.value=i,this.begin=p+m,this.end=this.begin+x,t.specification.transition&&(h.delay||h.duration)&&(this.prior=l)}possiblyEvaluate(t,i,l){const h=t.now||0,p=this.value.possiblyEvaluate(t,i,l),m=this.prior;if(m){if(h>this.end)return this.prior=null,p;if(this.value.isDataDriven())return this.prior=null,p;if(h<this.begin)return m.possiblyEvaluate(t,i,l);{const x=(h-this.begin)/(this.end-this.begin);return this.property.interpolate(m.possiblyEvaluate(t,i,l),p,uo(x))}}return p}}class m0{constructor(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)}possiblyEvaluate(t,i,l){const h=new al(this._properties);for(const p of Object.keys(this._values))h._values[p]=this._values[p].possiblyEvaluate(t,i,l);return h}hasTransition(){for(const t of Object.keys(this._values))if(this._values[t].prior)return!0;return!1}}class y0{constructor(t,i,l,h){this._properties=t,this._values=Object.create(t.defaultPropertyValues),this._scope=i,this._options=l,this._iconImageUseTheme=h,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(t){return Pt(this._values[t].value)}setValue(t,i){this._values[t]=new vu(this._values[t].property,i===null?void 0:Pt(i),this._scope,this._options,this._iconImageUseTheme),this._values[t].expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[t].expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[t].isIndoorDependent())}serialize(){const t={};for(const i of Object.keys(this._values)){const l=this.getValue(i);l!==void 0&&(t[i]=l)}return t}possiblyEvaluate(t,i,l,h){const p=new al(this._properties);for(const m of Object.keys(this._values))p._values[m]=this._values[m].possiblyEvaluate(t,i,l,h);return p}isIndoorDependent(){return this._isIndoorDependent}}class Ic{constructor(t,i,l,h){this.property=t,this.value=i,this.parameters=l,this.iconImageUseTheme=h}isConstant(){return this.value.kind==="constant"}constantOr(t){return this.value.kind==="constant"?this.value.value:t}evaluate(t,i,l,h,p){return this.property.evaluate(this.value,this.parameters,t,i,l,h,this.iconImageUseTheme,p)}}class al{constructor(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)}get(t){return this._values[t]}}class en{constructor(t){this.specification=t}possiblyEvaluate(t,i){return t.expression.evaluate(i)}interpolate(t,i,l){const h=Cf[this.specification.type];return h?h(t,i,l):t}}class Zt{constructor(t,i){this.specification=t,this.overrides=i}possiblyEvaluate(t,i,l,h,p){return t.expression.kind==="constant"||t.expression.kind==="camera"?new Ic(this,{kind:"constant",value:t.expression.evaluate(i,null,{},l,h,void 0,p)},i):new Ic(this,t.expression,i,p)}interpolate(t,i,l){if(t.value.kind!=="constant"||i.value.kind!=="constant")return t;if(t.value.value===void 0||i.value.value===void 0)return new Ic(this,{kind:"constant",value:void 0},t.parameters);const h=Cf[this.specification.type];return h?new Ic(this,{kind:"constant",value:h(t.value.value,i.value.value,l)},t.parameters):t}evaluate(t,i,l,h,p,m,x,b){return t.kind==="constant"?t.value:t.evaluate(i,l,h,p,m,b,x)}}class bu{constructor(t){this.specification=t}possiblyEvaluate(t,i,l,h){return!!t.expression.evaluate(i,null,{},l,h)}interpolate(){return!1}}class Ir{constructor(t){this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const i=new Ri(0,{});for(const l in t){const h=t[l],p=h.specification;p&&p.overridable&&this.overridableProperties.push(l);const m=this.defaultPropertyValues[l]=new vu(h,void 0),x=this.defaultTransitionablePropertyValues[l]=new op(h);this.defaultTransitioningPropertyValues[l]=x.untransitioned(),this.defaultPossiblyEvaluatedValues[l]=m.possiblyEvaluate(i)}}}vn(Zt,"DataDrivenProperty"),vn(en,"DataConstantProperty"),vn(bu,"ColorRampProperty");var at=JSON.parse('{"$version":8,"$root":{"version":{"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":{"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"snow":{"type":"snow"},"rain":{"type":"rain"},"camera":{"type":"camera"},"color-theme":{"type":"colorTheme"},"indoor":{"type":"indoor"},"imports":{"type":"array","value":"import"},"iconsets":{"type":"iconsets"},"schema":{"type":"schema"},"sources":{"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"type":"array","value":"layer"},"models":{"type":"models"},"featuresets":{"type":"featuresets"}},"featuresets":{"*":{"type":"featureset"}},"featureset":{"metadata":{"type":"*"},"selectors":{"type":"array","value":"selector"}},"selector":{"layer":{"type":"string"},"properties":{"type":"selectorProperty"},"featureNamespace":{"type":"string"},"_uniqueFeatureID":{"type":"boolean"}},"selectorProperty":{"*":{"type":"*"}},"model":{"type":"string"},"import":{"id":{"type":"string"},"url":{"type":"string"},"config":{"type":"config"},"data":{"type":"$root"},"color-theme":{"type":"colorTheme","optional":true}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","expression":{}},"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"},"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","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false},"shadow-quality":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"parameters":["zoom"]}},"shadow-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"shadow-draw-before-layer":{"type":"string"}},"properties_light_ambient":{"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","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},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"iconsets":{"*":{"type":"iconset"}},"iconset":["iconset_sprite","iconset_source"],"iconset_sprite":{"type":{"type":"enum","values":{"sprite":1}},"url":{"type":"string"}},"iconset_source":{"type":{"type":"enum","values":{"source":1}},"source":{"type":"string"}},"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":{"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]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"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":{"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]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"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":{"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]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"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":{"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]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"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"},"dynamic":{"type":"boolean","default":false}},"source_video":{"type":{"type":"enum","values":{"video":1}},"urls":{"type":"array","value":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"type":"enum","values":{"image":1}},"url":{"type":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"modelNodeOverride":{"orientation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360}},"modelNodeOverrides":{"*":{"type":"modelNodeOverride"}},"modelMaterialOverride":{"model-color":{"type":"color"},"model-color-mix-intensity":{"type":"number"},"model-opacity":{"type":"number"},"model-emissive-strength":{"type":"number"}},"modelMaterialOverrides":{"*":{"type":"modelMaterialOverride"}},"modelSourceModel":{"uri":{"type":"string"},"position":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[-180,-90],"maximum":[180,90]},"orientation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360},"nodeOverrides":{"type":"modelNodeOverrides"},"materialOverrides":{"type":"modelMaterialOverrides"},"nodeOverrideNames":{"type":"array","value":"string"},"materialOverrideNames":{"type":"array","value":"string"},"featureProperties":{"type":"*"}},"modelSourceModels":{"*":{"type":"modelSourceModel"}},"source_model":{"type":{"type":"enum","values":{"model":1,"batched-model":1}},"url":{"type":"string"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"},"models":{"type":"modelSourceModels"}},"layer":{"id":{"type":"string"},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"building":{},"raster":{},"raster-particle":{},"hillshade":{},"model":{},"background":{},"sky":{},"slot":{},"clip":{}}},"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"},"appearances":{"type":"array","value":"appearance","supported-layer-types":["symbol"]}},"appearance":{"condition":{"type":"boolean","expression":{"interpolated":true,"parameters":["zoom","pitch","feature","feature-state","measure-light","distance-from-center"]},"property-type":"data-driven"},"name":{"type":"string"},"properties":{"type":"*"}},"layout":["layout_clip","layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_building","layout_symbol","layout_raster","layout_raster-particle","layout_hillshade","layout_background","layout_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"model-allow-density-reduction":{"type":"boolean","default":true}},"layout_clip":{"clip-layer-types":{"type":"array","value":"enum","values":{"model":1,"symbol":1},"default":[],"expression":{}},"clip-layer-scope":{"type":"array","value":"string","default":[],"expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"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":{}},"fill-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-base":1,"hd-road-markup":1},"default":"none","expression":{}},"fill-construct-bridge-guard-rail":{"type":"boolean","default":"true","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"circle-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-markup":1},"default":"none","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"fill-extrusion-edge-radius":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"source-max-zoom":{"type":"number","minimum":0,"maximum":24}},"layout_building":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"building-facade":{"type":"boolean","default":false,"expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-facade-floors":{"type":"number","minimum":1,"maximum":200,"default":3,"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-facade-unit-width":{"type":"number","minimum":1,"maximum":20,"default":3.1,"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-facade-window":{"type":"array","length":2,"value":"number","minimum":0.1,"maximum":1,"default":[0.9,0.9],"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-roof-shape":{"type":"enum","values":{"flat":1,"hipped":1,"gabled":1,"parapet":1,"mansard":1,"skillion":1,"pyramidal":1},"default":"flat","expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"},"building-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"},"building-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"building-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"building-flip-roof-orientation":{"property-type":"data-driven","type":"boolean","default":false,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}}},"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,"none":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-z-offset":{"type":"number","default":0,"expression":{"parameters":["zoom","feature","line-progress"]},"property-type":"data-driven"},"line-elevation-reference":{"type":"enum","values":{"none":1,"sea":1,"ground":1,"hd-road-markup":1},"default":"none","expression":{}},"line-cross-slope":{"type":"number","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"line-width-unit":{"type":"enum","values":{"pixels":1,"meters":1},"default":"pixels","expression":{"parameters":["zoom"]}},"line-elevation-ground-scale":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","line-progress"]},"transition":true,"property-type":"data-driven"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]}},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]}},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"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"]}},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1,"hd-road-markup":1},"default":"ground","expression":{"parameters":["zoom"]}},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"icon-size":{"type":"number","default":1,"minimum":0,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":[0.1,0.1],"maximum":[10,10],"expression":{}},"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,"appearance":true,"use-theme":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"appearance":true,"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"]}},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"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,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":[0.1,0.1],"maximum":[10,10],"expression":{}},"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"]}},"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"]}},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]}},"text-rotate":{"type":"number","default":0,"period":360,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"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],"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster-particle":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"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_hillshade":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster-particle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_clip":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_model":{"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_building":{"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":"*"}},"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","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"high-color":{"type":"color","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"space-color":{"type":"color","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"horizon-blend":{"type":"number","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","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","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"snow":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.85],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.3],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.4,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,50],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"flake-size":{"type":"number","default":0.71,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"rain":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.5],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#03113d",0.3,"#a8adbc"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":["interpolate",["linear"],["measure-light","brightness"],0,0.88,1,0.7],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#001736",0.3,"#464646"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.57,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,80],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"droplet-size":{"type":"array","default":[2.6,18.2],"minimum":0,"maximum":50,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"distortion-strength":{"type":"number","default":0.7,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective"}},"colorTheme":{"data":{"type":"string","expression":{}}},"indoor_source":{"sourceId":{"type":"string"},"sourceLayers":{"type":"array","value":"string"}},"indoor":{"*":{"type":"indoor_source"}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","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"},"center":{"type":"array","length":2,"value":"number","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string"},"exaggeration":{"type":"number","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_building","paint_symbol","paint_raster","paint_raster-particle","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"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","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","use-theme":true,"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"]}},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-bridge-guard-rail-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"},"fill-tunnel-structure-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-color":{"type":"color","default":"#000000","use-theme":true,"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"]}},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"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-height-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"flat"},"fill-extrusion-base-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"terrain"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"type":"color","default":"#ffffff","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"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,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"fill-extrusion-front-cutoff":{"type":"array","value":"number","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"fill-extrusion-line-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-cast-shadows":{"type":"boolean","default":true}},"paint_building":{"building-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"parameters":[]},"transition":true},"building-ambient-occlusion-ground-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-cast-shadows":{"type":"boolean","default":true},"building-color":{"type":"color","default":"rgba(193, 154, 127, 1)","use-theme":true,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"},"building-emissive-strength":{"type":"number","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"},"building-facade-emissive-chance":{"type":"number","default":0.35,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["measure-light","zoom"]}},"building-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"building-front-cutoff":{"type":"array","value":"number","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]},"building-flood-light-color":{"type":"color","default":"#ffffff","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"building-flood-light-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"building-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"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","use-theme":true,"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"]}},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light","line-progress"]},"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-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-gradient":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["line-progress"]}},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1]},"line-trim-fade-range":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-trim-color":{"type":"color","default":"transparent","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"line-border-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-occlusion-opacity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"line-blend-mode":{"type":"enum","values":{"default":1,"multiply":1,"additive":1},"default":"default","expression":{"parameters":["zoom"]}}},"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","use-theme":true,"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"]}},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"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","use-theme":true,"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"]}}},"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"]}},"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"],"use-theme":true,"expression":{"interpolated":true,"parameters":["heatmap-density"]}},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"icon-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"appearance":true,"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"appearance":true,"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"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"]},"appearance":true,"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"]},"appearance":true,"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-image-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"text-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"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"]},"appearance":true,"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"]},"appearance":true,"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-color-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"icon-color-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{}},"symbol-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-value"]}},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]}},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"raster-array-band":{"type":"string"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1},"default":"sea","expression":{}}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string"},"raster-particle-count":{"type":"number","default":512,"minimum":1},"raster-particle-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-particle-speed"]}},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1},"raster-particle-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-shadow-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-accent-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_background":{"background-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":[]}},"background-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]}},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]}},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]}},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"use-theme":true,"expression":{"interpolated":true,"parameters":["sky-radial-progress"]}},"sky-atmosphere-halo-color":{"type":"color","default":"white","use-theme":true},"sky-atmosphere-color":{"type":"color","default":"white","use-theme":true},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"property-type":"data-driven"},"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"]},"use-theme":true,"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"},"model-cast-shadows":{"type":"boolean","default":true},"model-receive-shadows":{"type":"boolean","default":true},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"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":{}},"model-front-cutoff":{"type":"array","value":"number","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]},"model-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1,"hd-road-markup":1},"default":"ground","expression":{}},"model-ignore-line-cutout":{"type":"boolean","default":false,"expression":{}}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"promoteId":{"*":{"type":"*"}}}');function yx(a){return a instanceof Number||a instanceof String||a instanceof Boolean?a.valueOf():a}function ap(a){if(Array.isArray(a))return a.map(ap);if(a instanceof Object&&!(a instanceof Number||a instanceof String||a instanceof Boolean)){const t={};for(const i in a)t[i]=ap(a[i]);return t}return yx(a)}function _0(a){if(a===!0||a===!1)return!0;if(!Array.isArray(a)||a.length===0)return!1;switch(a[0]){case"has":return a.length>=2&&a[1]!=="$id"&&a[1]!=="$type";case"in":return a.length>=3&&(typeof a[1]!="string"||Array.isArray(a[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return a.length!==3||Array.isArray(a[1])||Array.isArray(a[2]);case"any":case"all":for(const t of a.slice(1))if(!_0(t)&&typeof t!="boolean")return!1;return!0;default:return!0}}function lp(a,t="",i=null,l="fill"){if(a==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};_0(a)||(a=cp(a));const h=a;let p=!0;try{p=(function(A){if(!wu(A))return A;let L=ap(A);return vx(L),L=_x(L),L})(h)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
|
|
86
|
+
${an===hn.CHAT&&!Ke?"mapsindoors-map--hide-map-controls":""}`,children:[Ne.jsx(vce,{}),!Ce&&Ne.jsx(Cq,{}),Ye.length>1&&ji&&Ne.jsx(b6,{onOpen:()=>_t(hn.VENUE_SELECTOR),onClose:()=>Pt(),active:an===hn.VENUE_SELECTOR}),zi&&Ne.jsx(Qce,{}),xi&&Ne.jsx($ce,{}),Ne.jsx(wO,{pushAppView:_t,currentAppView:an,appViews:hn}),Ti&&Ne.jsxs(_e.Fragment,{children:[Ke&&Ne.jsx(U8,{directionsFromLocation:Dr,directionsToLocation:Ii,pushAppView:_t,currentAppView:an,appViews:hn,onRouteFinished:()=>Ko()}),!Ke&&Ne.jsx(F8,{directionsFromLocation:Dr,directionsToLocation:Ii,pushAppView:_t,currentAppView:an,appViews:hn,onRouteFinished:()=>Ko()})]},Ki),Ne.jsx(f6,{useMapProviderModule:ue,onMapPositionKnown:()=>qr(),onMapPositionInvestigating:()=>Zn(!0),onLocationClick:Hn=>Io(Hn),onViewModeSwitchKnown:Hn=>On(Hn),resetCount:Ki,mapOptions:H,gmMapId:le,isWayfindingOrDirections:an===hn.WAYFINDING||an===hn.DIRECTIONS,currentLanguage:un,setLanguage:Hn=>{Jt(Hn),J(!0)},devicePosition:ne})]})})}function Sl(e,n,s,c){let d;return e===!0&&!Nr(c)?c===!0||c==="true"?d=!0:(c===!1||c!=="true")&&(d=!1):Nr(s)?Nr(n)||(d=n):d=typeof s=="boolean"?s:!1,d}IO.propTypes={apiKey:ht.string,gmApiKey:ht.string,mapboxAccessToken:ht.string,venue:ht.string,locationId:ht.string,primaryColor:ht.string,logo:ht.string,appUserRoles:ht.arrayOf(ht.string),directionsFrom:ht.string,directionsTo:ht.string,externalIDs:ht.arrayOf(ht.string),tileStyle:ht.string,startZoomLevel:ht.number,pitch:ht.number,bearing:ht.number,supportsUrlParameters:ht.bool,gmMapId:ht.string,useMapProviderModule:ht.bool,kioskOriginLocationId:ht.string,timeout:ht.number,language:ht.string,useKeyboard:ht.bool,miTransitionLevel:ht.number,category:ht.string,searchAllVenues:ht.bool,hideNonMatches:ht.bool,showExternalIDs:ht.bool,showRoadNames:ht.bool,searchExternalLocations:ht.bool,center:ht.string,useAppTitle:ht.bool,showMapMarkers:ht.bool,mapboxMapStyle:ht.string,devicePosition:ht.object,enableKioskFullReload:ht.bool,kioskReloadTime:ht.number};function IO(e){const[n,s]=_e.useState();return _e.useEffect(()=>{const c=window.location.search,d=new URLSearchParams(c),y={apiKey:"mapspeople3d",useMapProviderModule:!1,useKeyboard:!1,searchAllVenues:!1,searchExternalLocations:!0,showExternalIDs:!1,hideNonMatches:!1,useAppTitle:!1},_=d.get("apiKey"),o=d.get("venue"),M=d.get("locationId"),D=d.get("logo"),E=d.get("directionsFrom"),z=d.get("directionsTo"),B=d.get("tileStyle"),U=Number(d.get("startZoomLevel")),W=Number(d.get("pitch")),le=Number(d.get("bearing")),ue=d.get("gmApiKey"),te=d.get("mapboxAccessToken"),G=d.get("primaryColor"),X=d.get("appUserRoles")?.split(","),de=d.get("externalIDs")?.split(","),xe=d.get("gmMapId"),oe=d.get("kioskOriginLocationId"),Se=Number(d.get("timeout")),Ie=d.get("language"),Ae=Number(d.get("miTransitionLevel")),pe=d.get("category"),Pe=d.get("useMapProviderModule"),Re=d.get("useKeyboard"),Oe=d.get("searchAllVenues"),it=d.get("hideNonMatches"),xt=d.get("showExternalIDs"),Et=d.get("showRoadNames"),ne=d.get("searchExternalLocations"),ye=d.get("center"),S=d.get("useAppTitle"),R=d.get("showMapMarkers"),J=d.get("mapboxMapStyle"),H=d.get("enableKioskFullReload"),V=Number(d.get("kioskReloadTime")),he=e.supportsUrlParameters&&_?_:e.apiKey||y.apiKey;let Me=e.supportsUrlParameters&&o?o:e.venue||y.venue;he==="mapspeople3d"&&!Me&&(Me="AUSTINOFFICE"),s({apiKey:he,venue:Me,locationId:e.supportsUrlParameters&&M?M:e.locationId,logo:e.supportsUrlParameters&&D?D:e.logo,directionsFrom:e.supportsUrlParameters&&E?E:e.directionsFrom,directionsTo:e.supportsUrlParameters&&z?z:e.directionsTo,tileStyle:e.supportsUrlParameters&&B?B:e.tileStyle,startZoomLevel:e.supportsUrlParameters&&U?U:e.startZoomLevel,pitch:e.supportsUrlParameters&&W?W:e.pitch,bearing:e.supportsUrlParameters&&le?le:e.bearing,gmApiKey:e.supportsUrlParameters&&ue?ue:e.gmApiKey,mapboxAccessToken:e.supportsUrlParameters&&te?te:e.mapboxAccessToken,primaryColor:e.supportsUrlParameters&&G?"#"+G:e.primaryColor,appUserRoles:e.supportsUrlParameters&&X?X:e.appUserRoles,externalIDs:e.supportsUrlParameters&&de?de:e.externalIDs,gmMapId:e.supportsUrlParameters&&xe?xe:e.gmMapId,kioskOriginLocationId:e.supportsUrlParameters&&oe?oe:e.kioskOriginLocationId,timeout:e.supportsUrlParameters&&Se?Se:e.timeout,language:e.supportsUrlParameters&&Ie?Ie:e.language,miTransitionLevel:e.supportsUrlParameters&&Ae?Ae:e.miTransitionLevel,category:e.supportsUrlParameters&&pe?pe:e.category,center:e.supportsUrlParameters&&ye?ye:e.center,devicePosition:e.devicePosition,useKeyboard:Sl(e.supportsUrlParameters,y.useKeyboard,e.useKeyboard,Re),useMapProviderModule:Sl(e.supportsUrlParameters,y.useMapProviderModule,e.useMapProviderModule,Pe),searchAllVenues:Sl(e.supportsUrlParameters,y.searchAllVenues,e.searchAllVenues,Oe),hideNonMatches:Sl(e.supportsUrlParameters,y.hideNonMatches,e.hideNonMatches,it),showRoadNames:Sl(e.supportsUrlParameters,y.showRoadNames,e.showRoadNames,Et),showExternalIDs:Sl(e.supportsUrlParameters,y.showExternalIDs,e.showExternalIDs,xt),searchExternalLocations:Sl(e.supportsUrlParameters,y.searchExternalLocations,e.searchExternalLocations,ne),supportsUrlParameters:e.supportsUrlParameters,useAppTitle:Sl(e.supportsUrlParameters,y.useAppTitle,e.useAppTitle,S),showMapMarkers:Sl(e.supportsUrlParameters,y.showMapMarkers,e.showMapMarkers,R),mapboxMapStyle:e.supportsUrlParameters&&J?J:e.mapboxMapStyle,enableKioskFullReload:Sl(e.supportsUrlParameters,void 0,e.enableKioskFullReload,H),kioskReloadTime:e.supportsUrlParameters&&V?V:e.kioskReloadTime})},[e]),Ne.jsx(aQ,{children:n&&Ne.jsx(MO,{...n})})}var wv={exports:{}},eue=wv.exports,TO;function tue(){return TO||(TO=1,(function(e,n){(function(s,c){e.exports=c()})(eue,(function(){let s,c,d;function y(o,M){if(!s)s=M;else if(!c)c=M;else{const D={};s(D),d=M(D);const E="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 = {}; ("+s+")(sharedChunk); ("+c+")(undefined, sharedChunk); self.onerror = null;";typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(d.workerUrl=window.URL.createObjectURL(new Blob([E],{type:"text/javascript"})))}}y(["exports"],function(o){var M=1e-6,D=typeof Float32Array<"u"?Float32Array:Array;function E(a,t){var i=t[0],l=t[1],h=t[2],p=t[3],m=i*p-h*l;return m?(a[0]=p*(m=1/m),a[1]=-l*m,a[2]=-h*m,a[3]=i*m,a):null}function z(){var a=new D(9);return D!=Float32Array&&(a[1]=0,a[2]=0,a[3]=0,a[5]=0,a[6]=0,a[7]=0),a[0]=1,a[4]=1,a[8]=1,a}function B(a,t){var i=t[0],l=t[1],h=t[2],p=t[3],m=t[4],x=t[5],b=t[6],T=t[7],A=t[8];return a[0]=m*A-x*T,a[1]=h*T-l*A,a[2]=l*x-h*m,a[3]=x*b-p*A,a[4]=i*A-h*b,a[5]=h*p-i*x,a[6]=p*T-m*b,a[7]=l*b-i*T,a[8]=i*m-l*p,a}function U(a,t,i){var l=t[0],h=t[1],p=t[2],m=t[3],x=t[4],b=t[5],T=t[6],A=t[7],L=t[8],k=i[0],j=i[1],F=i[2],Q=i[3],Z=i[4],K=i[5],ce=i[6],re=i[7],ve=i[8];return a[0]=k*l+j*m+F*T,a[1]=k*h+j*x+F*A,a[2]=k*p+j*b+F*L,a[3]=Q*l+Z*m+K*T,a[4]=Q*h+Z*x+K*A,a[5]=Q*p+Z*b+K*L,a[6]=ce*l+re*m+ve*T,a[7]=ce*h+re*x+ve*A,a[8]=ce*p+re*b+ve*L,a}function W(){var a=new D(16);return D!=Float32Array&&(a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[11]=0,a[12]=0,a[13]=0,a[14]=0),a[0]=1,a[5]=1,a[10]=1,a[15]=1,a}function le(a){var t=new D(16);return t[0]=a[0],t[1]=a[1],t[2]=a[2],t[3]=a[3],t[4]=a[4],t[5]=a[5],t[6]=a[6],t[7]=a[7],t[8]=a[8],t[9]=a[9],t[10]=a[10],t[11]=a[11],t[12]=a[12],t[13]=a[13],t[14]=a[14],t[15]=a[15],t}function ue(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=1,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}function te(a,t){var i=t[0],l=t[1],h=t[2],p=t[3],m=t[4],x=t[5],b=t[6],T=t[7],A=t[8],L=t[9],k=t[10],j=t[11],F=t[12],Q=t[13],Z=t[14],K=t[15],ce=i*x-l*m,re=i*b-h*m,ve=i*T-p*m,we=l*b-h*x,Te=l*T-p*x,We=h*T-p*b,Ue=A*Q-L*F,Ze=A*Z-k*F,Qe=A*K-j*F,$e=L*Z-k*Q,Mt=L*K-j*Q,Dt=k*K-j*Z,Lt=ce*Dt-re*Mt+ve*$e+we*Qe-Te*Ze+We*Ue;return Lt?(a[0]=(x*Dt-b*Mt+T*$e)*(Lt=1/Lt),a[1]=(h*Mt-l*Dt-p*$e)*Lt,a[2]=(Q*We-Z*Te+K*we)*Lt,a[3]=(k*Te-L*We-j*we)*Lt,a[4]=(b*Qe-m*Dt-T*Ze)*Lt,a[5]=(i*Dt-h*Qe+p*Ze)*Lt,a[6]=(Z*ve-F*We-K*re)*Lt,a[7]=(A*We-k*ve+j*re)*Lt,a[8]=(m*Mt-x*Qe+T*Ue)*Lt,a[9]=(l*Qe-i*Mt-p*Ue)*Lt,a[10]=(F*Te-Q*ve+K*ce)*Lt,a[11]=(L*ve-A*Te-j*ce)*Lt,a[12]=(x*Ze-m*$e-b*Ue)*Lt,a[13]=(i*$e-l*Ze+h*Ue)*Lt,a[14]=(Q*re-F*we-Z*ce)*Lt,a[15]=(A*we-L*re+k*ce)*Lt,a):null}function G(a,t,i){var l=t[0],h=t[1],p=t[2],m=t[3],x=t[4],b=t[5],T=t[6],A=t[7],L=t[8],k=t[9],j=t[10],F=t[11],Q=t[12],Z=t[13],K=t[14],ce=t[15],re=i[0],ve=i[1],we=i[2],Te=i[3];return a[0]=re*l+ve*x+we*L+Te*Q,a[1]=re*h+ve*b+we*k+Te*Z,a[2]=re*p+ve*T+we*j+Te*K,a[3]=re*m+ve*A+we*F+Te*ce,a[4]=(re=i[4])*l+(ve=i[5])*x+(we=i[6])*L+(Te=i[7])*Q,a[5]=re*h+ve*b+we*k+Te*Z,a[6]=re*p+ve*T+we*j+Te*K,a[7]=re*m+ve*A+we*F+Te*ce,a[8]=(re=i[8])*l+(ve=i[9])*x+(we=i[10])*L+(Te=i[11])*Q,a[9]=re*h+ve*b+we*k+Te*Z,a[10]=re*p+ve*T+we*j+Te*K,a[11]=re*m+ve*A+we*F+Te*ce,a[12]=(re=i[12])*l+(ve=i[13])*x+(we=i[14])*L+(Te=i[15])*Q,a[13]=re*h+ve*b+we*k+Te*Z,a[14]=re*p+ve*T+we*j+Te*K,a[15]=re*m+ve*A+we*F+Te*ce,a}function X(a,t,i){var l,h,p,m,x,b,T,A,L,k,j,F,Q=i[0],Z=i[1],K=i[2];return t===a?(a[12]=t[0]*Q+t[4]*Z+t[8]*K+t[12],a[13]=t[1]*Q+t[5]*Z+t[9]*K+t[13],a[14]=t[2]*Q+t[6]*Z+t[10]*K+t[14],a[15]=t[3]*Q+t[7]*Z+t[11]*K+t[15]):(h=t[1],p=t[2],m=t[3],x=t[4],b=t[5],T=t[6],A=t[7],L=t[8],k=t[9],j=t[10],F=t[11],a[0]=l=t[0],a[1]=h,a[2]=p,a[3]=m,a[4]=x,a[5]=b,a[6]=T,a[7]=A,a[8]=L,a[9]=k,a[10]=j,a[11]=F,a[12]=l*Q+x*Z+L*K+t[12],a[13]=h*Q+b*Z+k*K+t[13],a[14]=p*Q+T*Z+j*K+t[14],a[15]=m*Q+A*Z+F*K+t[15]),a}function de(a,t,i){var l=i[0],h=i[1],p=i[2];return a[0]=t[0]*l,a[1]=t[1]*l,a[2]=t[2]*l,a[3]=t[3]*l,a[4]=t[4]*h,a[5]=t[5]*h,a[6]=t[6]*h,a[7]=t[7]*h,a[8]=t[8]*p,a[9]=t[9]*p,a[10]=t[10]*p,a[11]=t[11]*p,a[12]=t[12],a[13]=t[13],a[14]=t[14],a[15]=t[15],a}function xe(a,t,i){var l=Math.sin(i),h=Math.cos(i),p=t[4],m=t[5],x=t[6],b=t[7],T=t[8],A=t[9],L=t[10],k=t[11];return t!==a&&(a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[12]=t[12],a[13]=t[13],a[14]=t[14],a[15]=t[15]),a[4]=p*h+T*l,a[5]=m*h+A*l,a[6]=x*h+L*l,a[7]=b*h+k*l,a[8]=T*h-p*l,a[9]=A*h-m*l,a[10]=L*h-x*l,a[11]=k*h-b*l,a}function oe(a,t,i){var l=Math.sin(i),h=Math.cos(i),p=t[0],m=t[1],x=t[2],b=t[3],T=t[8],A=t[9],L=t[10],k=t[11];return t!==a&&(a[4]=t[4],a[5]=t[5],a[6]=t[6],a[7]=t[7],a[12]=t[12],a[13]=t[13],a[14]=t[14],a[15]=t[15]),a[0]=p*h-T*l,a[1]=m*h-A*l,a[2]=x*h-L*l,a[3]=b*h-k*l,a[8]=p*l+T*h,a[9]=m*l+A*h,a[10]=x*l+L*h,a[11]=b*l+k*h,a}function Se(a,t,i){var l=Math.sin(i),h=Math.cos(i),p=t[0],m=t[1],x=t[2],b=t[3],T=t[4],A=t[5],L=t[6],k=t[7];return t!==a&&(a[8]=t[8],a[9]=t[9],a[10]=t[10],a[11]=t[11],a[12]=t[12],a[13]=t[13],a[14]=t[14],a[15]=t[15]),a[0]=p*h+T*l,a[1]=m*h+A*l,a[2]=x*h+L*l,a[3]=b*h+k*l,a[4]=T*h-p*l,a[5]=A*h-m*l,a[6]=L*h-x*l,a[7]=k*h-b*l,a}function Ie(a,t){return a[0]=t[0],a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=t[1],a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=t[2],a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}function Ae(a,t,i){var l,h,p,m=i[0],x=i[1],b=i[2],T=Math.sqrt(m*m+x*x+b*b);return T<M?null:(m*=T=1/T,x*=T,b*=T,l=Math.sin(t),h=Math.cos(t),a[0]=m*m*(p=1-h)+h,a[1]=x*m*p+b*l,a[2]=b*m*p-x*l,a[3]=0,a[4]=m*x*p-b*l,a[5]=x*x*p+h,a[6]=b*x*p+m*l,a[7]=0,a[8]=m*b*p+x*l,a[9]=x*b*p-m*l,a[10]=b*b*p+h,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a)}function pe(a,t){var i=t[0],l=t[1],h=t[2],p=t[4],m=t[5],x=t[6],b=t[8],T=t[9],A=t[10];return a[0]=Math.sqrt(i*i+l*l+h*h),a[1]=Math.sqrt(p*p+m*m+x*x),a[2]=Math.sqrt(b*b+T*T+A*A),a}function Pe(a,t){var i=t[0],l=t[1],h=t[2],p=t[3],m=i+i,x=l+l,b=h+h,T=i*m,A=l*m,L=l*x,k=h*m,j=h*x,F=h*b,Q=p*m,Z=p*x,K=p*b;return a[0]=1-L-F,a[1]=A+K,a[2]=k-Z,a[3]=0,a[4]=A-K,a[5]=1-T-F,a[6]=j+Q,a[7]=0,a[8]=k+Z,a[9]=j-Q,a[10]=1-T-L,a[11]=0,a[12]=0,a[13]=0,a[14]=0,a[15]=1,a}var Re=G;function Oe(){var a=new D(3);return D!=Float32Array&&(a[0]=0,a[1]=0,a[2]=0),a}function it(a){var t=new D(3);return t[0]=a[0],t[1]=a[1],t[2]=a[2],t}function xt(a){var t=a[0],i=a[1],l=a[2];return Math.sqrt(t*t+i*i+l*l)}function Et(a,t,i){var l=new D(3);return l[0]=a,l[1]=t,l[2]=i,l}function ne(a,t,i,l){return a[0]=t,a[1]=i,a[2]=l,a}function ye(a,t,i){return a[0]=t[0]+i[0],a[1]=t[1]+i[1],a[2]=t[2]+i[2],a}function S(a,t,i){return a[0]=t[0]-i[0],a[1]=t[1]-i[1],a[2]=t[2]-i[2],a}function R(a,t,i){return a[0]=t[0]*i[0],a[1]=t[1]*i[1],a[2]=t[2]*i[2],a}function J(a,t,i){return a[0]=Math.min(t[0],i[0]),a[1]=Math.min(t[1],i[1]),a[2]=Math.min(t[2],i[2]),a}function H(a,t,i){return a[0]=Math.max(t[0],i[0]),a[1]=Math.max(t[1],i[1]),a[2]=Math.max(t[2],i[2]),a}function V(a,t,i){return a[0]=t[0]*i,a[1]=t[1]*i,a[2]=t[2]*i,a}function he(a,t,i,l){return a[0]=t[0]+i[0]*l,a[1]=t[1]+i[1]*l,a[2]=t[2]+i[2]*l,a}function Me(a,t){var i=t[0]-a[0],l=t[1]-a[1],h=t[2]-a[2];return Math.sqrt(i*i+l*l+h*h)}function fe(a,t){var i=t[0]-a[0],l=t[1]-a[1],h=t[2]-a[2];return i*i+l*l+h*h}function Ce(a){var t=a[0],i=a[1],l=a[2];return t*t+i*i+l*l}function ze(a,t){return a[0]=-t[0],a[1]=-t[1],a[2]=-t[2],a}function Ye(a,t){var i=t[0],l=t[1],h=t[2],p=i*i+l*l+h*h;return p>0&&(p=1/Math.sqrt(p)),a[0]=t[0]*p,a[1]=t[1]*p,a[2]=t[2]*p,a}function He(a,t){return a[0]*t[0]+a[1]*t[1]+a[2]*t[2]}function Ve(a,t,i){var l=t[0],h=t[1],p=t[2],m=i[0],x=i[1],b=i[2];return a[0]=h*b-p*x,a[1]=p*m-l*b,a[2]=l*x-h*m,a}function nt(a,t,i,l){var h=t[0],p=t[1],m=t[2];return a[0]=h+l*(i[0]-h),a[1]=p+l*(i[1]-p),a[2]=m+l*(i[2]-m),a}function ct(a,t,i){var l=t[0],h=t[1],p=t[2],m=i[3]*l+i[7]*h+i[11]*p+i[15];return a[0]=(i[0]*l+i[4]*h+i[8]*p+i[12])/(m=m||1),a[1]=(i[1]*l+i[5]*h+i[9]*p+i[13])/m,a[2]=(i[2]*l+i[6]*h+i[10]*p+i[14])/m,a}function St(a,t,i){var l=t[0],h=t[1],p=t[2];return a[0]=l*i[0]+h*i[3]+p*i[6],a[1]=l*i[1]+h*i[4]+p*i[7],a[2]=l*i[2]+h*i[5]+p*i[8],a}function yt(a,t,i){var l=i[0],h=i[1],p=i[2],m=i[3],x=t[0],b=t[1],T=t[2],A=h*T-p*b,L=p*x-l*T,k=l*b-h*x;return a[0]=x+m*(A+=A)+h*(k+=k)-p*(L+=L),a[1]=b+m*L+p*A-l*k,a[2]=T+m*k+l*L-h*A,a}function Ot(a){return a[0]=0,a[1]=0,a[2]=0,a}function on(a,t){return a[0]===t[0]&&a[1]===t[1]&&a[2]===t[2]}var Rt=S,sn=R,un=xt;function Jt(){var a=new D(4);return D!=Float32Array&&(a[0]=0,a[1]=0,a[2]=0,a[3]=0),a}function Ln(a,t,i){return a[0]=t[0]*i,a[1]=t[1]*i,a[2]=t[2]*i,a[3]=t[3]*i,a}function Rn(a,t){var i=t[0],l=t[1],h=t[2],p=t[3],m=i*i+l*l+h*h+p*p;return m>0&&(m=1/Math.sqrt(m)),a[0]=i*m,a[1]=l*m,a[2]=h*m,a[3]=p*m,a}function Tn(a,t){return a[0]*t[0]+a[1]*t[1]+a[2]*t[2]+a[3]*t[3]}function ln(a,t,i){var l=t[0],h=t[1],p=t[2],m=t[3];return a[0]=i[0]*l+i[4]*h+i[8]*p+i[12]*m,a[1]=i[1]*l+i[5]*h+i[9]*p+i[13]*m,a[2]=i[2]*l+i[6]*h+i[10]*p+i[14]*m,a[3]=i[3]*l+i[7]*h+i[11]*p+i[15]*m,a}function gt(){var a=new D(4);return D!=Float32Array&&(a[0]=0,a[1]=0,a[2]=0),a[3]=1,a}function Ht(a){return a[0]=0,a[1]=0,a[2]=0,a[3]=1,a}function An(a,t,i){i*=.5;var l=t[0],h=t[1],p=t[2],m=t[3],x=Math.sin(i),b=Math.cos(i);return a[0]=l*b+m*x,a[1]=h*b+p*x,a[2]=p*b-h*x,a[3]=m*b-l*x,a}function kn(a,t,i){i*=.5;var l=t[0],h=t[1],p=t[2],m=t[3],x=Math.sin(i),b=Math.cos(i);return a[0]=l*b-p*x,a[1]=h*b+m*x,a[2]=p*b+l*x,a[3]=m*b-h*x,a}Oe(),Jt();var pn,ri,Xn,Jn=Rn,oi=(pn=Oe(),ri=Et(1,0,0),Xn=Et(0,1,0),function(a,t,i){var l=He(t,i);return l<-.999999?(Ve(pn,ri,t),un(pn)<1e-6&&Ve(pn,Xn,t),Ye(pn,pn),(function(h,p,m){m*=.5;var x=Math.sin(m);h[0]=x*p[0],h[1]=x*p[1],h[2]=x*p[2],h[3]=Math.cos(m)})(a,pn,Math.PI),a):l>.999999?(a[0]=0,a[1]=0,a[2]=0,a[3]=1,a):(Ve(pn,t,i),a[0]=pn[0],a[1]=pn[1],a[2]=pn[2],a[3]=1+l,Jn(a,a))});function Tt(){var a=new D(2);return D!=Float32Array&&(a[0]=0,a[1]=0),a}function ot(a,t){var i=new D(2);return i[0]=a,i[1]=t,i}function At(a,t,i){return a[0]=t,a[1]=i,a}function Gt(a,t,i){return a[0]=t[0]+i[0],a[1]=t[1]+i[1],a}function fn(a,t,i){return a[0]=t[0]-i[0],a[1]=t[1]-i[1],a}function _n(a,t,i){return a[0]=t[0]*i,a[1]=t[1]*i,a}function En(a){var t=a[0],i=a[1];return Math.sqrt(t*t+i*i)}function On(a,t){var i=t[0],l=t[1],h=i*i+l*l;return h>0&&(h=1/Math.sqrt(h)),a[0]=t[0]*h,a[1]=t[1]*h,a}function Vn(a,t){return a[0]*t[0]+a[1]*t[1]}gt(),gt(),z();var di,zi,rr=fn;function ji(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}Tt();var Xi=(function(){if(zi)return di;function a(t,i,l,h){this.cx=3*t,this.bx=3*(l-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*i,this.by=3*(h-i)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=i,this.p2x=l,this.p2y=h}return zi=1,di=a,a.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,i){if(i===void 0&&(i=1e-6),t<0)return 0;if(t>1)return 1;for(var l=t,h=0;h<8;h++){var p=this.sampleCurveX(l)-t;if(Math.abs(p)<i)return l;var m=this.sampleCurveDerivativeX(l);if(Math.abs(m)<1e-6)break;l-=p/m}var x=0,b=1;for(l=t,h=0;h<20&&(p=this.sampleCurveX(l),!(Math.abs(p-t)<i));h++)t>p?x=l:b=l,l=.5*(b-x)+x;return l},solve:function(t,i){return this.sampleCurveY(this.solveCurveX(t,i))}},di})(),dr=ji(Xi);function zt(a,t){this.x=a,this.y=t}function Dr(a,t){if(Array.isArray(a)){if(!Array.isArray(t)||a.length!==t.length)return!1;for(let i=0;i<a.length;i++)if(!Dr(a[i],t[i]))return!1;return!0}if(typeof a=="object"&&a!==null&&t!==null){if(typeof t!="object"||Object.keys(a).length!==Object.keys(t).length)return!1;for(const i in a)if(!Dr(a[i],t[i]))return!1;return!0}return a===t}zt.prototype={clone(){return new zt(this.x,this.y)},add(a){return this.clone()._add(a)},sub(a){return this.clone()._sub(a)},multByPoint(a){return this.clone()._multByPoint(a)},divByPoint(a){return this.clone()._divByPoint(a)},mult(a){return this.clone()._mult(a)},div(a){return this.clone()._div(a)},rotate(a){return this.clone()._rotate(a)},rotateAround(a,t){return this.clone()._rotateAround(a,t)},matMult(a){return this.clone()._matMult(a)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(a){return this.x===a.x&&this.y===a.y},dist(a){return Math.sqrt(this.distSqr(a))},distSqr(a){const t=a.x-this.x,i=a.y-this.y;return t*t+i*i},angle(){return Math.atan2(this.y,this.x)},angleTo(a){return Math.atan2(this.y-a.y,this.x-a.x)},angleWith(a){return this.angleWithSep(a.x,a.y)},angleWithSep(a,t){return Math.atan2(this.x*t-this.y*a,this.x*a+this.y*t)},_matMult(a){const t=a[2]*this.x+a[3]*this.y;return this.x=a[0]*this.x+a[1]*this.y,this.y=t,this},_add(a){return this.x+=a.x,this.y+=a.y,this},_sub(a){return this.x-=a.x,this.y-=a.y,this},_mult(a){return this.x*=a,this.y*=a,this},_div(a){return this.x/=a,this.y/=a,this},_multByPoint(a){return this.x*=a.x,this.y*=a.y,this},_divByPoint(a){return this.x/=a.x,this.y/=a.y,this},_unit(){return this._div(this.mag()),this},_perp(){const a=this.y;return this.y=this.x,this.x=-a,this},_rotate(a){const t=Math.cos(a),i=Math.sin(a),l=i*this.x+t*this.y;return this.x=t*this.x-i*this.y,this.y=l,this},_rotateAround(a,t){const i=Math.cos(a),l=Math.sin(a),h=t.y+l*(this.x-t.x)+i*(this.y-t.y);return this.x=t.x+i*(this.x-t.x)-l*(this.y-t.y),this.y=h,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:zt},zt.convert=function(a){if(a instanceof zt)return a;if(Array.isArray(a))return new zt(+a[0],+a[1]);if(a.x!==void 0&&a.y!==void 0)return new zt(+a.x,+a.y);throw new Error("Expected [x, y] or {x, y} point format")};const Ii=Math.PI/180,Ti=180/Math.PI;function Zn(a){return a*Ii}function lr(a){return a*Ti}const vr=[[0,0],[1,0],[1,1],[0,1]];function uo(a){if(a<=0)return 0;if(a>=1)return 1;const t=a*a,i=t*a;return 4*(a<.5?i:3*(a-t)+i-.75)}function ut(a,t,i,l){const h=new dr(a,t,i,l);return function(p){return h.solve(p)}}const ae=ut(.25,.1,.25,1);function se(a,t,i){return Math.min(i,Math.max(t,a))}function Le(a,t,i){return(i=se((i-a)/(t-a),0,1))*i*(3-2*i)}function qe(a,t,i){const l=i-t,h=((a-t)%l+l)%l+t;return h===t?i:h}function Je(a,t,i){if(!a.length)return i(null,[]);let l=a.length;const h=new Array(a.length);let p=null;a.forEach((m,x)=>{t(m,(b,T)=>{b&&(p=b),h[x]=T,--l===0&&i(p,h)})})}let rt=1;function mt(){return rt++}function je(a){return a<=1?1:Math.pow(2,Math.ceil(Math.log2(a)))}function Ke(a,t){a.forEach(i=>{t[i]&&(t[i]=t[i].bind(t))})}function pt(a,t,i){const l={};for(const h in a)l[h]=t.call(this,a[h],h,a);return l}function _t(a,t,i){const l={};for(const h in a)t.call(this,a[h],h,a)&&(l[h]=a[h]);return l}function Pt(a){return Array.isArray(a)?a.map(Pt):typeof a=="object"&&a?pt(a,Pt):a}function an(a,t){for(let i=0;i<a.length;i++)if(t.indexOf(a[i])>=0)return!0;return!1}const xn={};function hn(a){xn[a]||(typeof console<"u"&&console.warn(a),xn[a]=!0)}function wn(a,t,i){return(i.y-a.y)*(t.x-a.x)>(t.y-a.y)*(i.x-a.x)}function Dn(a){let t=0;for(let i,l,h=0,p=a.length,m=p-1;h<p;m=h++)i=a[h],l=a[m],t+=(l.x-i.x)*(i.y+l.y);return t}function ei([a,t,i]){const l=Zn(t+90),h=Zn(i);return{x:a*Math.cos(l)*Math.sin(h),y:a*Math.sin(l)*Math.sin(h),z:a*Math.cos(h),azimuthal:t,polar:i}}function xi(a){return(typeof self<"u"||a!==void 0)&&typeof WorkerGlobalScope<"u"&&(a!==void 0?a:self)instanceof WorkerGlobalScope}function Ki(a){const t={};if(a.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(i,l,h,p)=>{const m=h||p;return t[l]=!m||m.toLowerCase(),""}),t["max-age"]){const i=parseInt(t["max-age"],10);isNaN(i)?delete t["max-age"]:t["max-age"]=i}return t}let Zi,Yi=null;function Oi(a,t){return[a[4*t],a[4*t+1],a[4*t+2],a[4*t+3]]}function cr(a,t,i,l){for(;t<i;){const h=t+i>>1;a[h]<l?t=h+1:i=h}return t}function Ur(a,t,i,l){for(;t<i;){const h=t+i>>1;a[h]<=l?t=h+1:i=h}return t}function Pi(a){return a>0?1/(1.001-a):1+a}function fr(a){return a>0?1-1/(1.001-a):-a}function br(a,t,i){return(a-t.min)*(i.max-i.min)/(t.max-t.min)+i.min}const vi={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i},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(!vi.API_URL)return null;try{const a=new URL(vi.API_URL);return a.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":a.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",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"/mapbox-gl-js/meshopt_simd_v0.20.wasm",BUILDING_GEN_URL:"/mapbox-gl-js/building-gen/building_gen_v1.2.4.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1",TILE_PROVIDER_URLS:Object.assign(Object.create(null),{pmtiles:"/mapbox-gl-js/mapbox-gl-pmtiles-provider-v0.0.1.js"})};function qr(){return new URL(vi.DRACO_URL,vi.API_URL).href}function Io(){if(typeof WebAssembly!="object")throw new Error("WebAssembly not supported, cannot instantiate meshoptimizer");return new URL((function(){if(Zi===void 0){if(typeof WebAssembly!="object")return!1;const a=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,3,2,0,0,5,3,1,0,1,12,1,0,10,22,2,12,0,65,0,65,0,65,0,252,10,0,0,11,7,0,65,0,253,15,26,11]);Zi=WebAssembly.validate(a)}return Zi})()?vi.MESHOPT_SIMD_URL:vi.MESHOPT_URL,vi.API_URL).href}function _o(){return new URL(vi.BUILDING_GEN_URL,vi.API_URL).href}function Ko(a){return vi.API_URL_REGEX.test(a)}function Hn(a){return vi.API_SPRITE_REGEX.test(a)}let ur,Mr,xs,La,Ns,ka;function Xs(){return ur==null&&(ur=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),ur}const fs={now:()=>La!==void 0?La:performance.now(),setNow(a){La=a},restoreNow(){La=void 0},frame(a){const t=requestAnimationFrame(a);return{cancel:()=>cancelAnimationFrame(t)}},getImageData(a,t=0){const{width:i,height:l}=a;Ns||(Ns=document.createElement("canvas"));const h=Ns.getContext("2d",{willReadFrequently:!0});if(!h)throw new Error("failed to create canvas 2d context");return(i>Ns.width||l>Ns.height)&&(Ns.width=i,Ns.height=l),h.clearRect(-t,-t,i+2*t,l+2*t),h.drawImage(a,0,0,i,l),h.getImageData(-t,-t,i+2*t,l+2*t)},resolveURL:a=>(Mr||(Mr=document.createElement("a")),Mr.href=a,Mr.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(xs==null&&(xs=window.matchMedia("(prefers-reduced-motion: reduce)")),xs.matches)},hasCanvasFingerprintNoise(){if(ka!==void 0)return ka;if(!Xs())return ka=!1,!1;const a=new OffscreenCanvas(85,1),t=a.getContext("2d",{willReadFrequently:!0});let i=0;for(let h=0;h<a.width;++h)t.fillStyle=`rgba(${i++},${i++},${i++}, 255)`,t.fillRect(h,0,1,1);const l=t.getImageData(0,0,a.width,a.height);i=0;for(let h=0;h<l.data.length;++h)if(h%4!=3&&i++!==l.data[h])return ka=!0,!0;return ka=!1,!1}};function gh(a,t){const i=a.indexOf("?");if(i<0)return`${a}?${new URLSearchParams(t).toString()}`;const l=new URLSearchParams(a.slice(i));for(const h in t)l.set(h,t[h]);return`${a.slice(0,i)}?${l.toString()}`}function _m(a,t={persistentParams:[]}){const i=a.indexOf("?");if(i<0)return a;const l=new URLSearchParams,h=new URLSearchParams(a.slice(i));for(const m of t.persistentParams){const x=h.get(m);x&&l.set(m,x)}const p=l.toString();return`${a.slice(0,i)}${p.length>0?`?${p}`:""}`}const lc="mapbox-tiles";let yf=500,_f=50;const vm=["language","worldview","jobid"];let za;function Mv(){try{return caches}catch{}}function vf(){const a=Mv();a&&za==null&&(za=a.open(lc))}let xm=1/0;const xf={supported:!1,testSupport:function(a){!bm&&Xc&&(Ks?Kc(a):cc=a)}};let cc,Xc,bm=!1,Ks=!1;const wm=typeof self<"u"?self:{};function Kc(a){const t=a.createTexture();a.bindTexture(a.TEXTURE_2D,t);try{if(a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,Xc),a.isContextLost())return;xf.supported=!0}catch{}a.deleteTexture(t),bm=!0}wm.document&&(Xc=wm.document.createElement("img"),Xc.onload=function(){cc&&Kc(cc),cc=null,Ks=!0},Xc.onerror=function(){bm=!0,cc=null},Xc.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const mh={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Iconset:"Iconset",Image:"Image",Model:"Model"};Object.freeze(mh);class Mm extends Error{constructor(t,i,l){i===401&&Ko(l)&&(t+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(t),this.status=i,this.url=l}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}function Im(a){return typeof a=="object"&&a!==null&&"status"in a&&a.status===404}const Ni=xi()?()=>self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,Jc=function(a,t){return/^file:/.test(i=a.url)||/^file:/.test(Ni())&&!/^\w+:/.test(i)?(function(l,h){const p=new XMLHttpRequest;p.open(l.method||"GET",l.url,!0),l.type==="arrayBuffer"&&(p.responseType="arraybuffer");for(const m in l.headers)p.setRequestHeader(m,l.headers[m]);return l.type==="json"&&(p.responseType="text",p.setRequestHeader("Accept","application/json")),p.withCredentials=l.credentials==="include",p.onerror=()=>{h(new Error(p.statusText))},p.onload=()=>{if((p.status>=200&&p.status<300||p.status===0)&&p.response!==null){let m=p.response;if(l.type==="json")try{m=JSON.parse(p.response)}catch(b){return h(b)}const x=new Headers;p.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(b=>{const T=b.split(": "),A=T.shift(),L=T.join(": ");x.append(A,L)}),h(null,m,x)}else h(new Mm(p.statusText,p.status,l.url))},p.send(l.body),{cancel:()=>p.abort()}})(a,t):(function(l,h){const p=new AbortController,m=new Request(l.url,{method:l.method||"GET",body:l.body,credentials:l.credentials,headers:l.headers,referrer:Ni(),referrerPolicy:l.referrerPolicy,signal:p.signal});let x=!1,b=!1;const T=(A=m.url).indexOf("sku=")>0&&Ko(A);var A;l.type==="json"&&m.headers.set("Accept","application/json");const L=(j,F,Q)=>{if(b)return;if(j&&j.message!=="SecurityError"&&hn(j.toString()),F&&Q)return k(F);const Z=Date.now();fetch(m).then(K=>{if(K.ok){const ce=T?K.clone():null;return k(K,ce,Z)}return h(new Mm(K.statusText,K.status,l.url))}).catch(K=>{K.name!=="AbortError"&&h(new Error(`${K.message} ${l.url}`))})},k=(j,F,Q)=>{(l.type==="arrayBuffer"?j.arrayBuffer():l.type==="json"?j.json():j.text()).then(Z=>{b||(F&&Q&&(function(K,ce,re){if(vf(),za==null)return;const ve=Ki(ce.headers.get("cache-control")||"");if(ve["no-store"])return;const we={status:ce.status,statusText:ce.statusText,headers:new Headers};ce.headers.forEach((Qe,$e)=>we.headers.set($e,Qe)),ve["max-age"]&&we.headers.set("Expires",new Date(re+1e3*ve["max-age"]).toUTCString());const Te=we.headers.get("expires");if(!Te||new Date(Te).getTime()-re<42e4)return;let We=_m(K.url,{persistentParams:vm});if(ce.status===206){const Qe=K.headers.get("Range");if(!Qe)return;we.status=200,We=gh(We,{range:Qe})}const Ue=new Response((Ze=ce.status)!==200&&Ze!==404&&[101,103,204,205,304].includes(Ze)?null:ce.body,we);var Ze;vf(),za?.then(Qe=>Qe.put(We,Ue)).catch(Qe=>hn(Qe.message))})(m,F,Q),x=!0,h(null,Z,j.headers))}).catch(Z=>{b||h(new Error(Z.message))})};return T?(function(j,F){if(vf(),za==null)return F(null);za.then(Q=>{let Z=_m(j.url,{persistentParams:vm});const K=j.headers.get("Range");K&&(Z=gh(Z,{range:K})),Q.match(Z).then(ce=>{const re=(function(ve){if(!ve)return!1;const we=new Date(ve.headers.get("expires")||0),Te=Ki(ve.headers.get("cache-control")||"");return Number(we)>Date.now()&&!Te["no-cache"]})(ce);Q.delete(Z).catch(F),re&&Q.put(Z,ce.clone()).catch(F),F(null,ce,re)}).catch(F)}).catch(F)})(m,L):L(null,null),{cancel:()=>{b=!0,x||p.abort()}}})(a,t);var i},eu=function(a,t){return Jc(Object.assign(a,{type:"arrayBuffer"}),t)};function wI(a){const t=document.createElement("a");return t.href=a,t.protocol===location.protocol&&t.host===location.host}let bf,El;bf=[],El=0;const tu=function(a,t){if(xf.supported&&(a.headers||(a.headers={}),a.headers.accept="image/webp,*/*"),El>=vi.MAX_PARALLEL_IMAGE_REQUESTS){const p={requestParameters:a,callback:t,cancelled:!1,cancel(){this.cancelled=!0}};return bf.push(p),p}El++;let i=!1;const l=()=>{if(!i)for(i=!0,El--;bf.length&&El<vi.MAX_PARALLEL_IMAGE_REQUESTS;){const p=bf.shift(),{requestParameters:m,callback:x,cancelled:b}=p;b||(p.cancel=tu(m,x).cancel)}},h=eu(a,(p,m,x)=>{l(),p?t(p):m&&(function(b,T){const A=new Blob([new Uint8Array(b)],{type:"image/png"});createImageBitmap(A).then(L=>{T(null,L)}).catch(L=>{T(new Error(`Could not load image because of ${L.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})})(m,(b,T)=>t(b,T,x))});return{cancel:()=>{h.cancel(),l()}}};var yh,wf,Iv,uc={exports:{}},Tv={exports:{}},Tm={exports:{}},MI=(function(){if(Iv)return uc.exports;Iv=1;var a=(yh||(yh=1,Tv.exports=function(i,l){var h,p,m,x,b,T,A,L;for(p=i.length-(h=3&i.length),m=l,b=3432918353,T=461845907,L=0;L<p;)A=255&i.charCodeAt(L)|(255&i.charCodeAt(++L))<<8|(255&i.charCodeAt(++L))<<16|(255&i.charCodeAt(++L))<<24,++L,m=27492+(65535&(x=5*(65535&(m=(m^=A=(65535&(A=(A=(65535&A)*b+(((A>>>16)*b&65535)<<16)&4294967295)<<15|A>>>17))*T+(((A>>>16)*T&65535)<<16)&4294967295)<<13|m>>>19))+((5*(m>>>16)&65535)<<16)&4294967295))+(((x>>>16)+58964&65535)<<16);switch(A=0,h){case 3:A^=(255&i.charCodeAt(L+2))<<16;case 2:A^=(255&i.charCodeAt(L+1))<<8;case 1:m^=A=(65535&(A=(A=(65535&(A^=255&i.charCodeAt(L)))*b+(((A>>>16)*b&65535)<<16)&4294967295)<<15|A>>>17))*T+(((A>>>16)*T&65535)<<16)&4294967295}return m^=i.length,m=2246822507*(65535&(m^=m>>>16))+((2246822507*(m>>>16)&65535)<<16)&4294967295,m=3266489909*(65535&(m^=m>>>13))+((3266489909*(m>>>16)&65535)<<16)&4294967295,(m^=m>>>16)>>>0}),Tv.exports),t=(wf||(wf=1,Tm.exports=function(i,l){for(var h,p=i.length,m=l^p,x=0;p>=4;)h=1540483477*(65535&(h=255&i.charCodeAt(x)|(255&i.charCodeAt(++x))<<8|(255&i.charCodeAt(++x))<<16|(255&i.charCodeAt(++x))<<24))+((1540483477*(h>>>16)&65535)<<16),m=1540483477*(65535&m)+((1540483477*(m>>>16)&65535)<<16)^(h=1540483477*(65535&(h^=h>>>24))+((1540483477*(h>>>16)&65535)<<16)),p-=4,++x;switch(p){case 3:m^=(255&i.charCodeAt(x+2))<<16;case 2:m^=(255&i.charCodeAt(x+1))<<8;case 1:m=1540483477*(65535&(m^=255&i.charCodeAt(x)))+((1540483477*(m>>>16)&65535)<<16)}return m=1540483477*(65535&(m^=m>>>13))+((1540483477*(m>>>16)&65535)<<16),(m^=m>>>15)>>>0}),Tm.exports);return uc.exports=a,uc.exports.murmur3=a,uc.exports.murmur2=t,uc.exports})(),Nl=ji(MI);class fa{constructor(t,...i){Object.assign(this,i[0]||{}),this.type=t}}class nu extends fa{constructor(t,i={}){super("error",Object.assign({error:t},i))}}function Js(a,t,i){i[a]&&i[a].indexOf(t)!==-1||(i[a]=i[a]||[],i[a].push(t))}function Mf(a,t,i){if(i&&i[a]){const l=i[a].indexOf(t);l!==-1&&i[a].splice(l,1)}}class _h{on(t,i){return this._listeners=this._listeners||{},Js(t,i,this._listeners),this}off(t,i){return Mf(t,i,this._listeners),Mf(t,i,this._oneTimeListeners),this}once(t,i){return i?(this._oneTimeListeners=this._oneTimeListeners||{},Js(t,i,this._oneTimeListeners),this):new Promise(l=>{this.once(t,l)})}fire(t,i){const l=typeof t=="string"?new fa(t,i):t,h=l.type;if(this.listens(h)){l.target=this;const p=this._listeners&&this._listeners[h]?this._listeners[h].slice():[];for(const b of p)b.call(this,l);const m=this._oneTimeListeners&&this._oneTimeListeners[h]?this._oneTimeListeners[h].slice():[];for(const b of m)Mf(h,b,this._oneTimeListeners),b.call(this,l);const x=this._eventedParent;if(x){const b=typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData;Object.assign(l,b),x.fire(l)}}else l instanceof nu&&console.error(l.error);return this}listens(t){return!!(this._listeners&&this._listeners[t]&&this._listeners[t].length>0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t))}setEventedParent(t,i){return this._eventedParent=t,this._eventedParentData=i,this}}class bs{constructor(t){typeof t=="string"?this.name=t:(this.name=t.name,this.iconsetId=t.iconsetId)}static from(t){return new bs(t)}static toString(t){return t.iconsetId?`${t.name}${t.iconsetId}`:t.name}static parse(t){const[i,l]=t.split("");return new bs({name:i,iconsetId:l})}static isEqual(t,i){return t.name===i.name&&t.iconsetId===i.iconsetId}toString(){return bs.toString(this)}serialize(){return{name:this.name,iconsetId:this.iconsetId}}}var Cm,If={},Dm=(function(){if(Cm)return If;Cm=1;var a={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 t(p){return(p=Math.round(p))<0?0:p>255?255:p}function i(p){return t(p[p.length-1]==="%"?parseFloat(p)/100*255:parseInt(p))}function l(p){return(m=p[p.length-1]==="%"?parseFloat(p)/100:parseFloat(p))<0?0:m>1?1:m;var m}function h(p,m,x){return x<0?x+=1:x>1&&(x-=1),6*x<1?p+(m-p)*x*6:2*x<1?m:3*x<2?p+(m-p)*(2/3-x)*6:p}try{If.parseCSSColor=function(p){var m,x=p.replace(/ /g,"").toLowerCase();if(x in a)return a[x].slice();if(x[0]==="#")return x.length===4?(m=parseInt(x.substr(1),16))>=0&&m<=4095?[(3840&m)>>4|(3840&m)>>8,240&m|(240&m)>>4,15&m|(15&m)<<4,1]:null:x.length===7&&(m=parseInt(x.substr(1),16))>=0&&m<=16777215?[(16711680&m)>>16,(65280&m)>>8,255&m,1]:null;var b=x.indexOf("("),T=x.indexOf(")");if(b!==-1&&T+1===x.length){var A=x.substr(0,b),L=x.substr(b+1,T-(b+1)).split(","),k=1;switch(A){case"rgba":if(L.length!==4)return null;k=l(L.pop());case"rgb":return L.length!==3?null:[i(L[0]),i(L[1]),i(L[2]),k];case"hsla":if(L.length!==4)return null;k=l(L.pop());case"hsl":if(L.length!==3)return null;var j=(parseFloat(L[0])%360+360)%360/360,F=l(L[1]),Q=l(L[2]),Z=Q<=.5?Q*(F+1):Q+F-Q*F,K=2*Q-Z;return[t(255*h(K,Z,j+1/3)),t(255*h(K,Z,j)),t(255*h(K,Z,j-1/3)),k];default:return null}}return null}}catch{}return If})();class Si{constructor(t,i,l,h=1){this.r=t,this.g=i,this.b=l,this.a=h}static parse(t){if(!t)return;if(t instanceof Si)return t;if(typeof t!="string")return;const i=Dm.parseCSSColor(t);return i?new Si(i[0]/255,i[1]/255,i[2]/255,i[3]):void 0}toString(){const[t,i,l,h]=[this.r,this.g,this.b,this.a];return`rgba(${Math.round(255*t)},${Math.round(255*i)},${Math.round(255*l)},${h})`}toNonPremultipliedRenderColor(t){const{r:i,g:l,b:h,a:p}=this;return new Tf(t,i,l,h,p)}toPremultipliedRenderColor(t){const{r:i,g:l,b:h,a:p}=this;return new iu(t,i*p,l*p,h*p,p)}clone(){return new Si(this.r,this.g,this.b,this.a)}}class Am{constructor(t,i,l,h,p,m=!1){if(this.premultiplied=!1,this.premultiplied=m,t){const x=t.image.height,b=x*x;this.premultiplied?(i=p===0?0:i/p*(x-1),l=p===0?0:l/p*(x-1),h=p===0?0:h/p*(x-1)):(i*=x-1,l*=x-1,h*=x-1),i=Math.max(0,Math.min(x-1,i)),l=Math.max(0,Math.min(x-1,l)),h=Math.max(0,Math.min(x-1,h));const T=Math.floor(i),A=Math.floor(l),L=Math.floor(h),k=Math.ceil(i),j=Math.ceil(l),F=Math.ceil(h),Q=i-T,Z=l-A,K=h-L,ce=t.image.data,re=4*(T+A*b+L*x),ve=4*(T+A*b+F*x),we=4*(T+j*b+L*x),Te=4*(T+j*b+F*x),We=4*(k+A*b+L*x),Ue=4*(k+A*b+F*x),Ze=4*(k+j*b+L*x),Qe=4*(k+j*b+F*x);this.r=$n($n($n(ce[re],ce[ve],K),$n(ce[we],ce[Te],K),Z),$n($n(ce[We],ce[Ue],K),$n(ce[Ze],ce[Qe],K),Z),Q)/255*(this.premultiplied?p:1),this.g=$n($n($n(ce[re+1],ce[ve+1],K),$n(ce[we+1],ce[Te+1],K),Z),$n($n(ce[We+1],ce[Ue+1],K),$n(ce[Ze+1],ce[Qe+1],K),Z),Q)/255*(this.premultiplied?p:1),this.b=$n($n($n(ce[re+2],ce[ve+2],K),$n(ce[we+2],ce[Te+2],K),Z),$n($n(ce[We+2],ce[Ue+2],K),$n(ce[Ze+2],ce[Qe+2],K),Z),Q)/255*(this.premultiplied?p:1),this.a=p}else this.r=i,this.g=l,this.b=h,this.a=p}toArray(){const{r:t,g:i,b:l,a:h}=this;return[255*t,255*i,255*l,h]}toHslaArray(){let{r:t,g:i,b:l,a:h}=this;if(this.premultiplied){if(h===0)return[0,0,0,0];const F=1/h;t*=F,i*=F,l*=F}const p=Math.min(Math.max(t,0),1),m=Math.min(Math.max(i,0),1),x=Math.min(Math.max(l,0),1),b=Math.min(p,m,x),T=Math.max(p,m,x),A=T-b,L=.5*(b+T);if(A===0)return[0,0,100*L,h];const k=L>.5?A/(2-T-b):A/(T+b);let j;switch(T){case p:j=60*((m-x)/A+(m<x?6:0));break;case m:j=60*((x-p)/A+2);break;default:j=60*((p-m)/A+4)}return[j,100*k,100*L,h]}toArray01(){const{r:t,g:i,b:l,a:h}=this;return[t,i,l,h]}toArray01Scaled(t){const{r:i,g:l,b:h}=this;return[i*t,l*t,h*t]}toArray01Linear(){const{r:t,g:i,b:l,a:h}=this;return[Math.pow(t,2.2),Math.pow(i,2.2),Math.pow(l,2.2),h]}}class Tf extends Am{constructor(t,i,l,h,p){super(t,i,l,h,p,!1)}}class iu extends Am{constructor(t,i,l,h,p){super(t,i,l,h,p,!0)}}function $n(a,t,i){return a*(1-i)+t*i}function pa(a,t,i){return a.map((l,h)=>$n(l,t[h],i))}Si.black=new Si(0,0,0,1),Si.white=new Si(1,1,1,1),Si.transparent=new Si(0,0,0,0),Si.red=new Si(1,0,0,1),Si.blue=new Si(0,0,1,1);var Cf=Object.freeze({__proto__:null,array:pa,color:function(a,t,i){return new Si($n(a.r,t.r,i),$n(a.g,t.g,i),$n(a.b,t.b,i),$n(a.a,t.a,i))},number:$n});class ea extends Error{constructor(t,i){super(i),this.message=i,this.key=t}}class hc{constructor(t,i=[]){this.parent=t,this.bindings={};for(const[l,h]of i)this.bindings[l]=h}concat(t){return new hc(this,t)}get(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(`${t} not found in scope.`)}has(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)}}const tl={kind:"null"},jn={kind:"number"},Ui={kind:"string"},Vi={kind:"boolean"},os={kind:"color"},Ll={kind:"object"},Hi={kind:"value"},dc={kind:"collator"},vh={kind:"formatted"},xh={kind:"resolvedImage"};function Jo(a,t){return{kind:"array",itemType:a,N:t}}function ro(a){if(a.kind==="array"){const t=ro(a.itemType);return typeof a.N=="number"?`array<${t}, ${a.N}>`:a.itemType.kind==="value"?"array":`array<${t}>`}return a.kind}const II=[tl,jn,Ui,Vi,os,vh,Ll,Jo(Hi),xh];function bh(a,t){if(t.kind==="error")return null;if(a.kind==="array"){if(t.kind==="array"&&(t.N===0&&t.itemType.kind==="value"||!bh(a.itemType,t.itemType))&&(typeof a.N!="number"||a.N===t.N))return null}else{if(a.kind===t.kind)return null;if(a.kind==="value"){for(const i of II)if(!bh(i,t))return null}}return`Expected ${ro(a)} but found ${ro(t)} instead.`}function Sm(a,t){return t.some(i=>i.kind===a.kind)}function ru(a,t){return t.some(i=>i==="null"?a===null:i==="array"?Array.isArray(a):i==="object"?a&&!Array.isArray(a)&&typeof a=="object":i===typeof a)}function nl(a,t){return a.kind==="array"&&t.kind==="array"?a.N===t.N&&nl(a.itemType,t.itemType):a.kind===t.kind}class Em{constructor(t,i,l){this.sensitivity=t?i?"variant":"case":i?"accent":"base",this.locale=l,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(t,i){return this.collator.compare(t,i)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class wh{constructor(t,i,l,h,p){this.text=t.normalize?t.normalize():t,this.image=i,this.scale=l,this.fontStack=h,this.textColor=p}}class Qo{constructor(t){this.sections=t}static fromString(t){return new Qo([new wh(t,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(t=>t.text.length!==0||!!t.image&&t.image.hasPrimary())}static factory(t){return t instanceof Qo?t:Qo.fromString(t)}toString(){return this.sections.length===0?"":this.sections.map(t=>t.text).join("")}serialize(){const t=["format"];for(const i of this.sections){if(i.image){const h=i.image.getPrimary().id.toString();t.push(["image",h]);continue}t.push(i.text);const l={};i.fontStack&&(l["text-font"]=["literal",i.fontStack.split(",")]),i.scale&&(l["font-scale"]=i.scale),i.textColor&&(l["text-color"]=["rgba"].concat(i.textColor.toNonPremultipliedRenderColor(null).toArray())),t.push(l)}return t}}class ta{constructor(t,i={}){this.id=bs.from(t),this.params=i.params,this.sx=i.sx||1,this.sy=i.sy||1}toString(){return JSON.stringify(this)}static parse(t){let i,l,h,p;try{({id:i,params:l,sx:h,sy:p}=JSON.parse(t)||{})}catch{return null}return i?new ta(i,{params:l,sx:h,sy:p}):null}scaleSelf(t,i=t){return this.sx*=t,this.sy*=i,this}}class ps{constructor(t,i,l,h,p=!1){this.primaryId=bs.from(t),this.primaryOptions=i,l&&(this.secondaryId=bs.from(l)),this.secondaryOptions=h,this.available=p}toString(){return this.primaryId&&this.secondaryId?`[${this.primaryId.name},${this.secondaryId.name}]`:this.primaryId.name}hasPrimary(){return!!this.primaryId}getPrimary(){return new ta(this.primaryId,this.primaryOptions)}hasSecondary(){return!!this.secondaryId}getSecondary(){return this.secondaryId?new ta(this.secondaryId,this.secondaryOptions):null}static from(t){return typeof t=="string"?ps.build({name:t}):t}static build(t,i,l,h){return!t||typeof t=="object"&&!("name"in t)?null:new ps(t,l,i,h)}}function Cv(a,t,i,l){return typeof a=="number"&&a>=0&&a<=255&&typeof t=="number"&&t>=0&&t<=255&&typeof i=="number"&&i>=0&&i<=255?l===void 0||typeof l=="number"&&l>=0&&l<=1?null:`Invalid rgba value [${[a,t,i,l].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof l=="number"?[a,t,i,l]:[a,t,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function ou(a){if(a===null||typeof a=="string"||typeof a=="boolean"||typeof a=="number"||a instanceof Si||a instanceof Em||a instanceof Qo||a instanceof ps)return!0;if(Array.isArray(a)){for(const t of a)if(!ou(t))return!1;return!0}if(typeof a=="object"){for(const t in a)if(!ou(a[t]))return!1;return!0}return!1}function Vr(a){if(a===null)return tl;if(typeof a=="string")return Ui;if(typeof a=="boolean")return Vi;if(typeof a=="number")return jn;if(a instanceof Si)return os;if(a instanceof Em)return dc;if(a instanceof Qo)return vh;if(a instanceof ps)return xh;if(Array.isArray(a)){const t=a.length;let i;for(const l of a){const h=Vr(l);if(i){if(i===h)continue;i=Hi;break}i=h}return Jo(i||Hi,t)}return Ll}function Yn(a){const t=typeof a;return a===null?"":t==="string"||t==="number"||t==="boolean"?String(a):a instanceof Qo||a instanceof ps||a instanceof Si?a.toString():JSON.stringify(a)}class Cn{constructor(t,i){this.type=t,this.value=i}static parse(t,i){if(t.length!==2)return i.error(`'literal' expression requires exactly one argument, but found ${t.length-1} instead.`);if(!ou(t[1]))return i.error("invalid value");const l=t[1];let h=Vr(l);const p=i.expectedType;return h.kind!=="array"||h.N!==0||!p||p.kind!=="array"||typeof p.N=="number"&&p.N!==0||(h=p),new Cn(h,l)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof Si?["rgba"].concat(this.value.toNonPremultipliedRenderColor(null).toArray()):this.value instanceof Qo?this.value.serialize():this.value}}class Xr{constructor(t){this.name="ExpressionEvaluationError",this.message=t}toJSON(){return this.message}}const Gn={string:Ui,number:jn,boolean:Vi,object:Ll};class Ls{constructor(t,i){this.type=t,this.args=i}static parse(t,i){if(t.length<2)return i.error("Expected at least one argument.");let l,h=1;const p=t[0];if(p==="array"){let x,b;if(t.length>2){const T=t[1];if(typeof T!="string"||!(T in Gn)||T==="object")return i.error('The item type argument of "array" must be one of string, number, boolean',1);x=Gn[T],h++}else x=Hi;if(t.length>3){if(t[2]!==null&&(typeof t[2]!="number"||t[2]<0||t[2]!==Math.floor(t[2])))return i.error('The length argument to "array" must be a positive integer literal',2);b=t[2],h++}l=Jo(x,b)}else l=Gn[p];const m=[];for(;h<t.length;h++){const x=i.parse(t[h],h,Hi);if(!x)return null;m.push(x)}return new Ls(l,m)}evaluate(t){for(let i=0;i<this.args.length;i++){const l=this.args[i].evaluate(t);if(!bh(this.type,Vr(l)))return l;if(i===this.args.length-1)throw new Xr(`The expression ${JSON.stringify(this.args[i].serialize())} evaluated to ${ro(Vr(l))} but was expected to be of type ${ro(this.type)}.`)}return null}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}serialize(){const t=this.type,i=[t.kind];if(t.kind==="array"){const l=t.itemType;if(l.kind==="string"||l.kind==="number"||l.kind==="boolean"){i.push(l.kind);const h=t.N;(typeof h=="number"||this.args.length>1)&&i.push(h)}}return i.concat(this.args.map(l=>l.serialize()))}}class fc{constructor(t){this.type=vh,this.sections=t}static parse(t,i){if(t.length<2)return i.error("Expected at least one argument.");const l=t[1];if(!Array.isArray(l)&&typeof l=="object")return i.error("First argument must be an image or text section.");const h=[];let p=!1;for(let m=1;m<=t.length-1;++m){const x=t[m];if(p&&typeof x=="object"&&!Array.isArray(x)){p=!1;let b=null;if(x["font-scale"]&&(b=i.parseObjectValue(x["font-scale"],m,"font-scale",jn),!b))return null;let T=null;if(x["text-font"]&&(T=i.parseObjectValue(x["text-font"],m,"text-font",Jo(Ui)),!T))return null;let A=null;if(x["text-color"]&&(A=i.parseObjectValue(x["text-color"],m,"text-color",os),!A))return null;const L=h[h.length-1];L.scale=b,L.font=T,L.textColor=A}else{const b=i.parse(t[m],m,Hi);if(!b)return null;const T=b.type.kind;if(T!=="string"&&T!=="value"&&T!=="null"&&T!=="resolvedImage")return i.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");p=!0,h.push({content:b,scale:null,font:null,textColor:null})}}return new fc(h)}evaluate(t){return new Qo(this.sections.map(i=>{const l=i.content.evaluate(t);return nl(Vr(l),xh)?new wh("",l,null,null,null):new wh(Yn(l),null,i.scale?i.scale.evaluate(t):null,i.font?i.font.evaluate(t).join(","):null,i.textColor?i.textColor.evaluate(t):null)}))}eachChild(t){for(const i of this.sections)t(i.content),i.scale&&t(i.scale),i.font&&t(i.font),i.textColor&&t(i.textColor)}outputDefined(){return!1}serialize(){const t=["format"];for(const i of this.sections){t.push(i.content.serialize());const l={};i.scale&&(l["font-scale"]=i.scale.serialize()),i.font&&(l["text-font"]=i.font.serialize()),i.textColor&&(l["text-color"]=i.textColor.serialize()),t.push(l)}return t}}class Un{constructor(t,i,l,h){this._imageWarnHistory={},this.type=xh,this.namePrimary=t,this.nameSecondary=i,l&&(this.paramsPrimary=l.params,this.iconsetIdPrimary=l.iconset?l.iconset.id:void 0),h&&(this.paramsSecondary=h.params,this.iconsetIdSecondary=h.iconset?h.iconset.id:void 0)}static parse(t,i){if(t.length<2)return i.error("Expected two or more arguments.");let l=1;const h=[];function p(){if(l<t.length){const x=i.parse(t[l],l++,Ui);return x?(h.push({image:x,options:{}}),!0):(i.error(h.length?"Secondary image variant is not a string.":"No image name provided."),!1)}return!0}function m(){if(l<t.length){const b=t[l];if((x=b)===null||typeof x!="object"||Array.isArray(x))return!0;const T=b.params,A=b.iconset,L=i.concat(l);if(!T&&!A)return l++,!0;if(T){if(typeof T!="object"||T.constructor!==Object)return L.error('Image options "params" should be an object'),!1;const k={},j=L.concat(void 0,"params");for(const F in T){if(!F)return j.error("Image parameter name should be non-empty"),!1;const Q=j.concat(void 0,F).parse(T[F],void 0,os,void 0,{typeAnnotation:"coerce"});if(!Q)return!1;k[F]=Q}h[h.length-1].options.params=k}if(A){if(typeof A!="object"||A.constructor!==Object)return L.error('Image options "iconset" should be an object'),!1;if(!A.id)return L.error('Image options "iconset" should have an "id" property'),!1;h[h.length-1].options.iconset=A}return l++,!0}var x;return!0}for(let x=0;x<2;x++)if(!p()||!m())return;return new Un(h[0].image,h[1]?h[1].image:void 0,h[0].options,h[1]?h[1].options:void 0)}evaluateParams(t,i){const l={};if(i){for(const h in i)if(i[h])try{l[h]=i[h].evaluate(t)}catch{continue}if(Object.keys(l).length!==0)return{params:l}}}evaluate(t){const i={name:this.namePrimary.evaluate(t),iconsetId:this.iconsetIdPrimary},l=this.nameSecondary?{name:this.nameSecondary.evaluate(t),iconsetId:this.iconsetIdSecondary}:void 0,h=ps.build(i,l,this.paramsPrimary?this.evaluateParams(t,this.paramsPrimary):void 0,this.paramsSecondary?this.evaluateParams(t,this.paramsSecondary):void 0);if(h&&t.availableImages){const p=h.getPrimary().id;if(h.available=t.availableImages.some(m=>bs.isEqual(m,p)),h.available){const m=h.getSecondary()?h.getSecondary().id:null;m&&(h.available=t.availableImages.some(x=>bs.isEqual(x,m)))}}return h}eachChild(t){if(t(this.namePrimary),this.paramsPrimary)for(const i in this.paramsPrimary)this.paramsPrimary[i]&&t(this.paramsPrimary[i]);if(this.nameSecondary&&(t(this.nameSecondary),this.paramsSecondary))for(const i in this.paramsSecondary)this.paramsSecondary[i]&&t(this.paramsSecondary[i])}outputDefined(){return!1}serializeOptions(t,i){const l={};if(i&&(l.iconset={id:i}),t){l.params={};for(const h in t)t[h]&&(l.params[h]=t[h].serialize())}return Object.keys(l).length>0?l:void 0}serialize(){const t=["image",this.namePrimary.serialize()];if(this.paramsPrimary||this.iconsetIdPrimary){const i=this.serializeOptions(this.paramsPrimary,this.iconsetIdPrimary);i&&t.push(i)}if(this.nameSecondary&&(t.push(this.nameSecondary.serialize()),this.paramsSecondary||this.iconsetIdSecondary)){const i=this.serializeOptions(this.paramsSecondary,this.iconsetIdSecondary);i&&t.push(i)}return t}}function Mh(a){return Af(a)?"string":Ih(a)?"number":Th(a)?"boolean":Array.isArray(a)?"array":a===null?"null":Df(a)?"object":typeof a}function Df(a){return a!=null&&!Array.isArray(a)&&typeof a!="function"&&!(a instanceof String||a instanceof Number||a instanceof Boolean)&&typeof a=="object"}function Af(a){return typeof a=="string"||a instanceof String}function Ih(a){return typeof a=="number"||a instanceof Number}function Th(a){return typeof a=="boolean"||a instanceof Boolean}const TI={"to-boolean":Vi,"to-color":os,"to-number":jn,"to-string":Ui};class ga{constructor(t,i){this.type=t,this.args=i}static parse(t,i){if(t.length<2)return i.error("Expected at least one argument.");const l=t[0],h=[];let p=tl;if(l==="to-array"){if(!Array.isArray(t[1]))return null;const m=t[1].length;if(i.expectedType){if(i.expectedType.kind!=="array")return i.error(`Expected ${i.expectedType.kind} but found array.`);p=Jo(i.expectedType.itemType,m)}else{if(!(m>0&&ou(t[1][0])))return null;p=Jo(Vr(t[1][0]),m)}for(let x=0;x<m;x++){const b=t[1][x];let T;if(Array.isArray(b))T=i.parse(b,void 0,p.itemType);else{const A=Mh(b);if(A!==p.itemType.kind)return i.error(`Expected ${p.itemType.kind} but found ${A}.`);T=i.registry.literal.parse(["literal",b===void 0?null:b],i)}if(!T)return null;h.push(T)}}else{if((l==="to-boolean"||l==="to-string")&&t.length!==2)return i.error("Expected one argument.");p=TI[l];for(let m=1;m<t.length;m++){const x=i.parse(t[m],m,Hi);if(!x)return null;h.push(x)}}return new ga(p,h)}evaluate(t){if(this.type.kind==="boolean")return!!this.args[0].evaluate(t);if(this.type.kind==="color"){let i,l;for(const h of this.args){if(i=h.evaluate(t),l=null,i instanceof Si)return i;if(typeof i=="string"){const p=t.parseColor(i);if(p)return p}else if(Array.isArray(i)&&(l=i.length<3||i.length>4?`Invalid rbga value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.`:Cv(i[0],i[1],i[2],i[3]),!l))return new Si(i[0]/255,i[1]/255,i[2]/255,i[3])}throw new Xr(l||`Could not parse color from value '${typeof i=="string"?i:String(JSON.stringify(i))}'`)}if(this.type.kind==="number"){let i=null;for(const l of this.args){if(i=l.evaluate(t),i===null)return 0;const h=Number(i);if(!isNaN(h))return h}throw new Xr(`Could not convert ${JSON.stringify(i)} to number.`)}return this.type.kind==="formatted"?Qo.fromString(Yn(this.args[0].evaluate(t))):this.type.kind==="resolvedImage"?ps.build(Yn(this.args[0].evaluate(t))):this.type.kind==="array"?this.args.map(i=>i.evaluate(t)):Yn(this.args[0].evaluate(t))}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}serialize(){if(this.type.kind==="formatted")return new fc([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new Un(this.args[0]).serialize();const t=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(i=>{t.push(i.serialize())}),t}}const pc=["Unknown","Point","LineString","Polygon"];class Ch{constructor(t,i,l){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.scope=t,this.options=i,this.iconImageUseTheme=l}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?pc[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,i=this.featureDistanceData.scale,{x:l,y:h}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(l*i-t[0])+this.featureDistanceData.bearing[1]*(h*i-t[1])}return 0}parseColor(t){let i=this._parseColorCache[t];return i||(i=this._parseColorCache[t]=Si.parse(t)),i}getConfig(t){return this.options?this.options.get(t):null}}class vo{constructor(t,i,l,h,p){this.name=t,this.type=i,this._evaluate=l,this.args=h,this._overloadIndex=p}evaluate(t){if(!this._evaluate){const i=vo.definitions[this.name];this._evaluate=Array.isArray(i)?i[2]:i.overloads[this._overloadIndex][1]}return this._evaluate(t,this.args)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(t=>t.serialize()))}static parse(t,i){const l=t[0],h=vo.definitions[l];if(!h)return i.error(`Unknown expression "${l}". If you wanted a literal array, use ["literal", [...]].`,0);const p=Array.isArray(h)?h[0]:h.type,m=Array.isArray(h)?[[h[1],h[2]]]:h.overloads,x=[];let b=null,T=-1;for(const[A,L]of m){if(Array.isArray(A)&&A.length!==t.length-1)continue;x.push(A),T++,b=new jf(i.registry,i.path,null,i.scope,void 0,i._scope,i.options,i.iconImageUseTheme);const k=[];let j=!1;for(let F=1;F<t.length;F++){const Q=t[F],Z=Array.isArray(A)?A[F-1]:A.type,K=b.parse(Q,1+k.length,Z);if(!K){j=!0;break}k.push(K)}if(!j)if(Array.isArray(A)&&A.length!==k.length)b.error(`Expected ${A.length} arguments, but found ${k.length} instead.`);else{for(let F=0;F<k.length;F++){const Q=Array.isArray(A)?A[F]:A.type,Z=k[F];b.concat(F+1).checkSubtype(Q,Z.type)}if(b.errors.length===0)return new vo(l,p,L,k,T)}}if(x.length===1)i.errors.push(...b.errors);else{const A=(x.length?x:m.map(([k])=>k)).map(kl).join(" | "),L=[];for(let k=1;k<t.length;k++){const j=i.parse(t[k],1+L.length);if(!j)return null;L.push(ro(j.type))}i.error(`Expected arguments of type ${A}, but found (${L.join(", ")}) instead.`)}return null}static register(t,i){vo.definitions=i;for(const l in i)t[l]=vo}}function kl(a){return Array.isArray(a)?`(${a.map(ro).join(", ")})`:`(${ro(a.type)}...)`}class Sf{constructor(t,i,l){this.type=dc,this.locale=l,this.caseSensitive=t,this.diacriticSensitive=i}static parse(t,i){if(t.length!==2)return i.error("Expected one argument."),null;const l=t[1];if(typeof l!="object"||Array.isArray(l))return i.error("Collator options argument must be an object."),null;const h=l["case-sensitive"]===void 0?i.parse(!1,1,Vi):i.parseObjectValue(l["case-sensitive"],1,"case-sensitive",Vi);if(!h)return null;const p=l["diacritic-sensitive"]===void 0?i.parse(!1,1,Vi):i.parseObjectValue(l["diacritic-sensitive"],1,"diacritic-sensitive",Vi);if(!p)return null;let m=null;return l.locale&&(m=i.parseObjectValue(l.locale,1,"locale",Ui),!m)?null:new Sf(h,p,m)}evaluate(t){return new Em(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}serialize(){const t={};return t["case-sensitive"]=this.caseSensitive.serialize(),t["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(t.locale=this.locale.serialize()),["collator",t]}}function Dv(a,t,i=0,l=a.length-1,h=Ef){for(;l>i;){if(l-i>600){const b=l-i+1,T=t-i+1,A=Math.log(b),L=.5*Math.exp(2*A/3),k=.5*Math.sqrt(A*L*(b-L)/b)*(T-b/2<0?-1:1);Dv(a,t,Math.max(i,Math.floor(t-T*L/b+k)),Math.min(l,Math.floor(t+(b-T)*L/b+k)),h)}const p=a[t];let m=i,x=l;for(Dh(a,i,t),h(a[l],p)>0&&Dh(a,i,l);m<x;){for(Dh(a,m,x),m++,x--;h(a[m],p)<0;)m++;for(;h(a[x],p)>0;)x--}h(a[i],p)===0?Dh(a,i,x):(x++,Dh(a,x,l)),x<=t&&(i=x+1),t<=x&&(l=x-1)}}function Dh(a,t,i){const l=a[t];a[t]=a[i],a[i]=l}function Ef(a,t){return a<t?-1:a>t?1:0}function Av(a){let t=0;for(let i,l,h=0,p=a.length,m=p-1;h<p;m=h++)i=a[h],l=a[m],t+=(l.x-i.x)*(i.y+l.y);return t}function ma(a,t){a[0]=Math.min(a[0],t[0]),a[1]=Math.min(a[1],t[1]),a[2]=Math.max(a[2],t[0]),a[3]=Math.max(a[3],t[1])}function Ah(a,t){return!(a[0]<=t[0]||a[2]>=t[2]||a[1]<=t[1]||a[3]>=t[3])}function CI(a,t,i){const l=a[0]-t[0],h=a[1]-t[1],p=a[0]-i[0],m=a[1]-i[1];return l*m-p*h===0&&l*p<=0&&h*m<=0}function Nm(a,t,i){return t[1]>a[1]!=i[1]>a[1]&&a[0]<(i[0]-t[0])*(a[1]-t[1])/(i[1]-t[1])+t[0]}function su(a,t,i=!1){let l=!1;for(let h=0,p=t.length;h<p;h++){const m=t[h];for(let x=0,b=m.length,T=b-1;x<b;T=x++){const A=m[T],L=m[x];if(CI(a,A,L))return i;Nm(a,A,L)&&(l=!l)}}return l}function Sv(a,t,i,l){const h=l[0]-i[0],p=l[1]-i[1],m=(a[0]-i[0])*p-h*(a[1]-i[1]),x=(t[0]-i[0])*p-h*(t[1]-i[1]);return m>0&&x<0||m<0&&x>0}function Sh(a,t,i,l){return(h=[l[0]-i[0],l[1]-i[1]])[0]*(p=[t[0]-a[0],t[1]-a[1]])[1]-h[1]*p[0]!==0&&!(!Sv(a,t,i,l)||!Sv(i,l,a,t));var h,p}function Lm(a){const t=new zt(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),i=new zt(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);for(const l of a[0])t.x>l.x&&(t.x=l.x),t.y>l.y&&(t.y=l.y),i.x<l.x&&(i.x=l.x),i.y<l.y&&(i.y=l.y);return{min:t,max:i}}const zl=8192;function DI(a,t){const i=(180+a[0])/360,l=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+a[1]*Math.PI/360)))/360,h=Math.pow(2,t.z);return[Math.round(i*h*zl),Math.round(l*h*zl)]}function gc(a,t){for(let i=0;i<t.length;i++)if(su(a,t[i]))return!0;return!1}function AI(a,t,i){for(const l of i)for(let h=0,p=l.length,m=p-1;h<p;m=h++)if(Sh(a,t,l[m],l[h]))return!0;return!1}function Ev(a,t){for(let i=0;i<a.length;++i)if(!su(a[i],t))return!1;for(let i=0;i<a.length-1;++i)if(AI(a[i],a[i+1],t))return!1;return!0}function km(a,t){for(let i=0;i<t.length;i++)if(Ev(a,t[i]))return!0;return!1}function Nf(a,t,i){const l=[];for(let h=0;h<a.length;h++){const p=[];for(let m=0;m<a[h].length;m++){const x=DI(a[h][m],i);ma(t,x),p.push(x)}l.push(p)}return l}function zm(a,t,i){const l=[];for(let h=0;h<a.length;h++){const p=Nf(a[h],t,i);l.push(p)}return l}function na(a,t,i,l){if(a[0]<i[0]||a[0]>i[2]){const h=.5*l;let p=a[0]-i[0]>h?-l:i[0]-a[0]>h?l:0;p===0&&(p=a[0]-i[2]>h?-l:i[2]-a[0]>h?l:0),a[0]+=p}ma(t,a)}function Om(a,t,i,l){const h=Math.pow(2,l.z)*zl,p=[l.x*zl,l.y*zl],m=[];if(!a)return m;for(const x of a)for(const b of x){const T=[b.x+p[0],b.y+p[1]];na(T,t,i,h),m.push(T)}return m}function jm(a,t,i,l){const h=Math.pow(2,l.z)*zl,p=[l.x*zl,l.y*zl],m=[];if(!a)return m;for(const b of a){const T=[];for(const A of b){const L=[A.x+p[0],A.y+p[1]];ma(t,L),T.push(L)}m.push(T)}if(t[2]-t[0]<=h/2){(x=t)[0]=x[1]=1/0,x[2]=x[3]=-1/0;for(const b of m)for(const T of b)na(T,t,i,h)}var x;return m}class Ol{constructor(t,i){this.type=Vi,this.geojson=t,this.geometries=i}static parse(t,i){if(t.length!==2)return i.error(`'within' expression requires exactly one argument, but found ${t.length-1} instead.`);if(ou(t[1])){const l=t[1];if(l.type==="FeatureCollection")for(let h=0;h<l.features.length;++h){const p=l.features[h].geometry.type;if(p==="Polygon"||p==="MultiPolygon")return new Ol(l,l.features[h].geometry)}else if(l.type==="Feature"){const h=l.geometry.type;if(h==="Polygon"||h==="MultiPolygon")return new Ol(l,l.geometry)}else if(l.type==="Polygon"||l.type==="MultiPolygon")return new Ol(l,l)}return i.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(t.geometry()!=null&&t.canonicalID()!=null){if(t.geometryType()==="Point")return(function(i,l){const h=[1/0,1/0,-1/0,-1/0],p=[1/0,1/0,-1/0,-1/0],m=i.canonicalID();if(!m)return!1;if(l.type==="Polygon"){const x=Nf(l.coordinates,p,m),b=Om(i.geometry(),h,p,m);if(!Ah(h,p))return!1;for(const T of b)if(!su(T,x))return!1}if(l.type==="MultiPolygon"){const x=zm(l.coordinates,p,m),b=Om(i.geometry(),h,p,m);if(!Ah(h,p))return!1;for(const T of b)if(!gc(T,x))return!1}return!0})(t,this.geometries);if(t.geometryType()==="LineString")return(function(i,l){const h=[1/0,1/0,-1/0,-1/0],p=[1/0,1/0,-1/0,-1/0],m=i.canonicalID();if(!m)return!1;if(l.type==="Polygon"){const x=Nf(l.coordinates,p,m),b=jm(i.geometry(),h,p,m);if(!Ah(h,p))return!1;for(const T of b)if(!Ev(T,x))return!1}if(l.type==="MultiPolygon"){const x=zm(l.coordinates,p,m),b=jm(i.geometry(),h,p,m);if(!Ah(h,p))return!1;for(const T of b)if(!km(T,x))return!1}return!0})(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}const Eh={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},Pm=1/298.257223563,Rm=Pm*(2-Pm),au=Math.PI/180;class lu{static fromTile(t,i,l){const h=Math.PI*(1-2*(t+.5)/Math.pow(2,i)),p=Math.atan(.5*(Math.exp(h)-Math.exp(-h)))/au;return new lu(p,l)}static get units(){return Eh}constructor(t,i){if(t===void 0)throw new Error("No latitude given.");if(i&&!Eh[i])throw new Error(`Unknown unit ${i}. Use one of: ${Object.keys(Eh).join(", ")}`);const l=6378.137*au*(i?Eh[i]:1),h=Math.cos(t*au),p=1/(1-Rm*(1-h*h)),m=Math.sqrt(p);this.kx=l*m*h,this.ky=l*m*p*(1-Rm)}distance(t,i){const l=ks(t[0]-i[0])*this.kx,h=(t[1]-i[1])*this.ky;return Math.sqrt(l*l+h*h)}bearing(t,i){const l=ks(i[0]-t[0])*this.kx;return Math.atan2(l,(i[1]-t[1])*this.ky)/au}destination(t,i,l){const h=l*au;return this.offset(t,Math.sin(h)*i,Math.cos(h)*i)}offset(t,i,l){return[t[0]+i/this.kx,t[1]+l/this.ky]}lineDistance(t){let i=0;for(let l=0;l<t.length-1;l++)i+=this.distance(t[l],t[l+1]);return i}area(t){let i=0;for(let l=0;l<t.length;l++){const h=t[l];for(let p=0,m=h.length,x=m-1;p<m;x=p++)i+=ks(h[p][0]-h[x][0])*(h[p][1]+h[x][1])*(l?-1:1)}return Math.abs(i)/2*this.kx*this.ky}along(t,i){let l=0;if(i<=0)return t[0];for(let h=0;h<t.length-1;h++){const p=t[h],m=t[h+1],x=this.distance(p,m);if(l+=x,l>i)return Lf(p,m,(i-(l-x))/x)}return t[t.length-1]}pointToSegmentDistance(t,i,l){let[h,p]=i,m=ks(l[0]-h)*this.kx,x=(l[1]-p)*this.ky;if(m!==0||x!==0){const b=(ks(t[0]-h)*this.kx*m+(t[1]-p)*this.ky*x)/(m*m+x*x);b>1?(h=l[0],p=l[1]):b>0&&(h+=m/this.kx*b,p+=x/this.ky*b)}return m=ks(t[0]-h)*this.kx,x=(t[1]-p)*this.ky,Math.sqrt(m*m+x*x)}pointOnLine(t,i){let l=1/0,h=t[0][0],p=t[0][1],m=0,x=0;for(let b=0;b<t.length-1;b++){let T=t[b][0],A=t[b][1],L=ks(t[b+1][0]-T)*this.kx,k=(t[b+1][1]-A)*this.ky,j=0;L===0&&k===0||(j=(ks(i[0]-T)*this.kx*L+(i[1]-A)*this.ky*k)/(L*L+k*k),j>1?(T=t[b+1][0],A=t[b+1][1]):j>0&&(T+=L/this.kx*j,A+=k/this.ky*j)),L=ks(i[0]-T)*this.kx,k=(i[1]-A)*this.ky;const F=L*L+k*k;F<l&&(l=F,h=T,p=A,m=b,x=j)}return{point:[h,p],index:m,t:Math.max(0,Math.min(1,x))}}lineSlice(t,i,l){let h=this.pointOnLine(l,t),p=this.pointOnLine(l,i);if(h.index>p.index||h.index===p.index&&h.t>p.t){const T=h;h=p,p=T}const m=[h.point],x=h.index+1,b=p.index;!Bm(l[x],m[0])&&x<=b&&m.push(l[x]);for(let T=x+1;T<=b;T++)m.push(l[T]);return Bm(l[b],p.point)||m.push(p.point),m}lineSliceAlong(t,i,l){let h=0;const p=[];for(let m=0;m<l.length-1;m++){const x=l[m],b=l[m+1],T=this.distance(x,b);if(h+=T,h>t&&p.length===0&&p.push(Lf(x,b,(t-(h-T))/T)),h>=i)return p.push(Lf(x,b,(i-(h-T))/T)),p;h>t&&p.push(b)}return p}bufferPoint(t,i){const l=i/this.ky,h=i/this.kx;return[t[0]-h,t[1]-l,t[0]+h,t[1]+l]}bufferBBox(t,i){const l=i/this.ky,h=i/this.kx;return[t[0]-h,t[1]-l,t[2]+h,t[3]+l]}insideBBox(t,i){return ks(t[0]-i[0])>=0&&ks(t[0]-i[2])<=0&&t[1]>=i[1]&&t[1]<=i[3]}}function Bm(a,t){return a[0]===t[0]&&a[1]===t[1]}function Lf(a,t,i){const l=ks(t[0]-a[0]);return[a[0]+l*i,a[1]+(t[1]-a[1])*i]}function ks(a){for(;a<-180;)a+=360;for(;a>180;)a-=360;return a}class Nh{constructor(t=[],i=(l,h)=>l<h?-1:l>h?1:0){if(this.data=t,this.length=this.data.length,this.compare=i,this.length>0)for(let l=(this.length>>1)-1;l>=0;l--)this._down(l)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(this.length===0)return;const t=this.data[0],i=this.data.pop();return--this.length>0&&(this.data[0]=i,this._down(0)),t}peek(){return this.data[0]}_up(t){const{data:i,compare:l}=this,h=i[t];for(;t>0;){const p=t-1>>1,m=i[p];if(l(h,m)>=0)break;i[t]=m,t=p}i[t]=h}_down(t){const{data:i,compare:l}=this,h=this.length>>1,p=i[t];for(;t<h;){let m=1+(t<<1);const x=m+1;if(x<this.length&&l(i[x],i[m])<0&&(m=x),l(i[m],p)>=0)break;i[t]=i[m],t=m}i[t]=p}}var cn=8192;function Nv(a,t){return t.dist-a.dist}function Lv(a){const t=[1/0,1/0,-1/0,-1/0];if(t.length!==a.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==a[i])return!1;return!0}function mc(a){return a[1]-a[0]+1}function ya(a,t){const i=a[1]>=a[0]&&a[1]<t;return i||console.warn("Distance Expression: Index is out of range"),i}function cu(a,t){if(a[0]>a[1])return[null,null];const i=mc(a);if(t){if(i===2)return[a,null];const l=Math.floor(i/2);return[[a[0],a[0]+l],[a[0]+l,a[1]]]}{if(i===1)return[a,null];const l=Math.floor(i/2)-1;return[[a[0],a[0]+l],[a[0]+l+1,a[1]]]}}function jl(a,t){const i=[1/0,1/0,-1/0,-1/0];if(!ya(t,a.length))return i;for(let l=t[0];l<=t[1];++l)ma(i,a[l]);return i}function Lh(a){const t=[1/0,1/0,-1/0,-1/0];for(let i=0;i<a.length;++i)for(let l=0;l<a[i].length;++l)ma(t,a[i][l]);return t}function uu(a,t,i){if(Lv(a)||Lv(t))return NaN;let l=0,h=0;return a[2]<t[0]&&(l=t[0]-a[2]),a[0]>t[2]&&(l=a[0]-t[2]),a[1]>t[3]&&(h=a[1]-t[3]),a[3]<t[1]&&(h=t[1]-a[3]),i.distance([0,0],[l,h])}function SI(a){return 360*a-180}function kv(a){return 360/Math.PI*Math.atan(Math.exp((180-360*a)*Math.PI/180))-90}function il(a,t,i=8192){const l=Math.pow(2,t.z),h=(a.y/i+t.y)/l;return[SI((a.x/i+t.x)/l),kv(h)]}function zv(a,t){const i=[];for(let l=0;l<a.length;++l)i.push(il(a[l],t));return i}function wi(a,t,i){const l=i.pointOnLine(t,a).point;return i.distance(a,l)}function Ov(a,t,i,l,h){const p=i.slice(l[0],l[1]+1);let m=1/0;for(let x=t[0];x<=t[1];++x)if((m=Math.min(m,wi(a[x],p,h)))===0)return 0;return m}function Fm(a,t,i,l,h){const p=Math.min(h.pointToSegmentDistance(a,i,l),h.pointToSegmentDistance(t,i,l)),m=Math.min(h.pointToSegmentDistance(i,a,t),h.pointToSegmentDistance(l,a,t));return Math.min(p,m)}function EI(a,t,i,l,h){if(!ya(t,a.length)||!ya(l,i.length))return NaN;let p=1/0;for(let m=t[0];m<t[1];++m)for(let x=l[0];x<l[1];++x){if(Sh(a[m],a[m+1],i[x],i[x+1]))return 0;p=Math.min(p,Fm(a[m],a[m+1],i[x],i[x+1],h))}return p}function jv(a,t,i,l,h){if(!ya(t,a.length)||!ya(l,i.length))return NaN;let p=1/0;for(let m=t[0];m<=t[1];++m)for(let x=l[0];x<=l[1];++x)if((p=Math.min(p,h.distance(a[m],i[x])))===0)return p;return p}function NI(a,t,i){if(su(a,t,!0))return 0;let l=1/0;for(const h of t){const p=h.length;if(p<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(h[0]!==h[p-1]&&(l=Math.min(l,i.pointToSegmentDistance(a,h[p-1],h[0])))===0||(l=Math.min(l,wi(a,h,i)))===0)return l}return l}function Ar(a,t,i,l){if(!ya(t,a.length))return NaN;for(let p=t[0];p<=t[1];++p)if(su(a[p],i,!0))return 0;let h=1/0;for(let p=t[0];p<t[1];++p)for(const m of i)for(let x=0,b=m.length,T=b-1;x<b;T=x++){if(Sh(a[p],a[p+1],m[T],m[x]))return 0;h=Math.min(h,Fm(a[p],a[p+1],m[T],m[x],l))}return h}function Pv(a,t){for(const i of a)for(let l=0;l<=i.length-1;++l)if(su(i[l],t,!0))return!0;return!1}function LI(a,t,i,l=1/0){const h=Lh(a),p=Lh(t);if(l!==1/0&&uu(h,p,i)>=l)return l;if(Ah(h,p)){if(Pv(a,t))return 0}else if(Pv(t,a))return 0;let m=l;for(const x of a)for(let b=0,T=x.length,A=T-1;b<T;A=b++)for(const L of t)for(let k=0,j=L.length,F=j-1;k<j;F=k++){if(Sh(x[A],x[b],L[F],L[k]))return 0;m=Math.min(m,Fm(x[A],x[b],L[F],L[k],i))}return m}function kf(a,t,i,l,h,p,m){if(p===null||m===null)return;const x=uu(jl(l,p),jl(h,m),i);x<t&&a.push({dist:x,range1:p,range2:m})}function kI(a,t,i,l,h=1/0){let p=Math.min(l.distance(a[0],i[0][0]),h);if(p===0)return p;const m=new Nh([{dist:0,range1:[0,a.length-1],range2:[0,0]}],Nv),x=t?50:100,b=Lh(i);for(;m.length;){const T=m.pop();if(T.dist>=p)continue;const A=T.range1;if(mc(A)<=x){if(!ya(A,a.length))return NaN;if(t){const L=Ar(a,A,i,l);if((p=Math.min(p,L))===0)return p}else for(let L=A[0];L<=A[1];++L){const k=NI(a[L],i,l);if((p=Math.min(p,k))===0)return p}}else{const L=cu(A,t);if(L[0]!==null){const k=uu(jl(a,L[0]),b,l);k<p&&m.push({dist:k,range1:L[0],range2:[0,0]})}if(L[1]!==null){const k=uu(jl(a,L[1]),b,l);k<p&&m.push({dist:k,range1:L[1],range2:[0,0]})}}}return p}function Rv(a,t,i,l,h,p=1/0){let m=Math.min(p,h.distance(a[0],i[0]));if(m===0)return m;const x=new Nh([{dist:0,range1:[0,a.length-1],range2:[0,i.length-1]}],Nv),b=t?50:100,T=l?50:100;for(;x.length;){const A=x.pop();if(A.dist>=m)continue;const L=A.range1,k=A.range2;if(mc(L)<=b&&mc(k)<=T){if(!ya(L,a.length)||!ya(k,i.length))return NaN;if(t&&l?m=Math.min(m,EI(a,L,i,k,h)):t||l?t&&!l?m=Math.min(m,Ov(i,k,a,L,h)):!t&&l&&(m=Math.min(m,Ov(a,L,i,k,h))):m=Math.min(m,jv(a,L,i,k,h)),m===0)return m}else{const j=cu(L,t),F=cu(k,l);kf(x,m,h,a,i,j[0],F[0]),kf(x,m,h,a,i,j[0],F[1]),kf(x,m,h,a,i,j[1],F[0]),kf(x,m,h,a,i,j[1],F[1])}}return m}function Um(a,t,i,l,h=1/0){let p=h;const m=jl(a,[0,a.length-1]);for(const x of i)if(!(p!==1/0&&uu(m,jl(x,[0,x.length-1]),l)>=p)&&(p=Math.min(p,Rv(a,t,x,!0,l,p)),p===0))return p;return p}function zf(a,t,i,l,h=1/0){let p=h;const m=jl(a,[0,a.length-1]);for(const x of i){if(p!==1/0&&uu(m,Lh(x),l)>=p)continue;const b=kI(a,t,x,l,p);if(isNaN(b))return b;if((p=Math.min(p,b))===0)return p}return p}function Vm(a){return a==="Point"||a==="MultiPoint"||a==="LineString"||a==="MultiLineString"||a==="Polygon"||a==="MultiPolygon"}class yc{constructor(t,i){this.type=jn,this.geojson=t,this.geometries=i}static parse(t,i){if(t.length!==2)return i.error(`'distance' expression requires either one argument, but found ' ${t.length-1} instead.`);if(ou(t[1])){const l=t[1];if(l.type==="FeatureCollection"){for(let h=0;h<l.features.length;++h)if(Vm(l.features[h].geometry.type))return new yc(l,l.features[h].geometry)}else if(l.type==="Feature"){if(Vm(l.geometry.type))return new yc(l,l.geometry)}else if(Vm(l.type))return new yc(l,l)}return i.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(t){const i=t.geometry(),l=t.canonicalID();if(i!=null&&l!=null){if(t.geometryType()==="Point")return(function(h,p,m){const x=[];for(const T of h)for(const A of T)x.push(il(A,p));const b=new lu(x[0][1],"meters");return m.type==="Point"||m.type==="MultiPoint"||m.type==="LineString"?Rv(x,!1,m.type==="Point"?[m.coordinates]:m.coordinates,m.type==="LineString",b):m.type==="MultiLineString"?Um(x,!1,m.coordinates,b):m.type==="Polygon"||m.type==="MultiPolygon"?zf(x,!1,m.type==="Polygon"?[m.coordinates]:m.coordinates,b):null})(i,l,this.geometries);if(t.geometryType()==="LineString")return(function(h,p,m){const x=[];for(const T of h){const A=[];for(const L of T)A.push(il(L,p));x.push(A)}const b=new lu(x[0][0][1],"meters");if(m.type==="Point"||m.type==="MultiPoint"||m.type==="LineString")return Um(m.type==="Point"?[m.coordinates]:m.coordinates,m.type==="LineString",x,b);if(m.type==="MultiLineString"){let T=1/0;for(let A=0;A<m.coordinates.length;A++){const L=Um(m.coordinates[A],!0,x,b,T);if(isNaN(L))return L;if((T=Math.min(T,L))===0)return T}return T}if(m.type==="Polygon"||m.type==="MultiPolygon"){let T=1/0;for(let A=0;A<x.length;A++){const L=zf(x[A],!0,m.type==="Polygon"?[m.coordinates]:m.coordinates,b,T);if(isNaN(L))return L;if((T=Math.min(T,L))===0)return T}return T}return null})(i,l,this.geometries);if(t.geometryType()==="Polygon")return(function(h,p,m){const x=[];for(const T of(function(A){const L=A.length;if(L<=1)return[A];const k=[];let j,F;for(let Q=0;Q<L;Q++){const Z=Av(A[Q]);Z!==0&&(A[Q].area=Math.abs(Z),F===void 0&&(F=Z<0),F===Z<0?(j&&k.push(j),j=[A[Q]]):j.push(A[Q]))}return j&&k.push(j),k})(h)){const A=[];for(let L=0;L<T.length;++L)A.push(zv(T[L],p));x.push(A)}const b=new lu(x[0][0][0][1],"meters");if(m.type==="Point"||m.type==="MultiPoint"||m.type==="LineString")return zf(m.type==="Point"?[m.coordinates]:m.coordinates,m.type==="LineString",x,b);if(m.type==="MultiLineString"){let T=1/0;for(let A=0;A<m.coordinates.length;A++){const L=zf(m.coordinates[A],!0,x,b,T);if(isNaN(L))return L;if((T=Math.min(T,L))===0)return T}return T}return m.type==="Polygon"||m.type==="MultiPolygon"?(function(T,A,L){let k=1/0;for(const j of T)for(const F of A){const Q=LI(j,F,L,k);if(isNaN(Q))return Q;if((k=Math.min(k,Q))===0)return k}return k})(m.type==="Polygon"?[m.coordinates]:m.coordinates,x,b):null})(i,l,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requires valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}function _c(a){if(a instanceof vo&&(a.name==="get"&&a.args.length===1||a.name==="feature-state"||a.name==="has"&&a.args.length===1||a.name==="properties"||a.name==="geometry-type"||a.name==="id"||/^filter-/.test(a.name))||a instanceof Ol||a instanceof yc)return!1;if(a instanceof du)return a.featureConstant;let t=!0;return a.eachChild(i=>{t&&!_c(i)&&(t=!1)}),t}function hu(a){if(a instanceof vo&&a.name==="feature-state")return!1;let t=!0;return a.eachChild(i=>{t&&!hu(i)&&(t=!1)}),t}function Oa(a,t){if(a instanceof vo&&t.indexOf(a.name)>=0)return!1;let i=!0;return a.eachChild(l=>{i&&!Oa(l,t)&&(i=!1)}),i}function Bv(a,t,i){return[a,t,i].filter(Boolean).join("")}function Hm(a,t){switch(a){case"string":return Yn(t);case"number":return+t;case"boolean":return!!t;case"color":return Si.parse(t);case"formatted":return Qo.fromString(Yn(t));case"resolvedImage":return ps.build(Yn(t))}return t}function Fv(a,t,i,l){return l!==void 0&&(a=l*Math.round(a/l)),t!==void 0&&a<t&&(a=t),i!==void 0&&a>i&&(a=i),a}class du{constructor(t,i,l,h=!1){this.type=t,this.key=i,this.scope=l,this.featureConstant=h}static parse(t,i){let l=i.expectedType;if(l==null&&(l=Hi),t.length<2||t.length>3)return i.error("Invalid number of arguments for 'config' expression.");const h=i.parse(t[1],1);if(!(h instanceof Cn))return i.error("Key name of 'config' expression must be a string literal.");let p,m=!0;const x=Yn(h.value);if(t.length>=3){const b=i.parse(t[2],2);if(!(b instanceof Cn))return i.error("Scope of 'config' expression must be a string literal.");p=Yn(b.value)}if(i.options){const b=Bv(x,p,i._scope),T=i.options.get(b);T&&(m=_c(T.value||T.default))}return new du(l,x,p,m)}evaluate(t){const i=Bv(this.key,this.scope,t.scope),l=t.getConfig(i);if(!l)return null;const{type:h,value:p,values:m,minValue:x,maxValue:b,stepValue:T}=l,A=l.default.evaluate(t);let L=A;if(p){const k=t.scope;t.scope=(k||"").split("").slice(1).join(""),L=p.evaluate(t),t.scope=k}return h&&(L=Hm(h,L)),L===void 0||x===void 0&&b===void 0&&T===void 0||(typeof L=="number"?L=Fv(L,x,b,T):Array.isArray(L)&&(L=L.map(k=>typeof k=="number"?Fv(k,x,b,T):k))),p!==void 0&&L!==void 0&&m&&!m.includes(L)&&(L=A,h&&(L=Hm(h,L))),(h&&h!==this.type||L!==void 0&&!nl(Vr(L),this.type))&&(L=Hm(this.type.kind,L)),L}eachChild(){}outputDefined(){return!1}serialize(){const t=["config",this.key];return this.scope&&t.concat(this.scope),t}}class Of{constructor(t,i){this.type=i.type,this.name=t,this.boundExpression=i}static parse(t,i){if(t.length!==2||typeof t[1]!="string")return i.error("'var' expression requires exactly one string literal argument.");const l=t[1];return i.scope.has(l)?new Of(l,i.scope.get(l)):i.error(`Unknown variable "${l}". Make sure "${l}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(t){return this.boundExpression.evaluate(t)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class jf{constructor(t,i=[],l,h=new hc,p=[],m,x,b){this.registry=t,this.path=i,this.key=i.map(T=>typeof T=="string"?`['${T}']`:`[${T}]`).join(""),this.scope=h,this.errors=p,this.expectedType=l,this._scope=m,this.options=x,this.iconImageUseTheme=b}parse(t,i,l,h,p={}){return i||l?this.concat(i,null,l,h)._parse(t,p):this._parse(t,p)}parseObjectValue(t,i,l,h,p,m={}){return this.concat(i,l,h,p)._parse(t,m)}_parse(t,i){function l(h,p,m){return m==="assert"?new Ls(p,[h]):m==="coerce"?new ga(p,[h]):h}if(t!==null&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"||(t=["literal",t]),Array.isArray(t)){if(t.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const h=typeof t[0]=="string"?this.registry[t[0]]:void 0;if(h){let p=h.parse(t,this);if(!p)return null;if(this.expectedType){const m=this.expectedType,x=p.type;if(m.kind!=="string"&&m.kind!=="number"&&m.kind!=="boolean"&&m.kind!=="object"&&m.kind!=="array"||x.kind!=="value")if(m.kind!=="color"&&m.kind!=="formatted"&&m.kind!=="resolvedImage"||x.kind!=="value"&&x.kind!=="string"){if(this.checkSubtype(m,x))return null}else p=l(p,m,i.typeAnnotation||"coerce");else p=l(p,m,i.typeAnnotation||"assert")}if(!(p instanceof Cn)&&p.type.kind!=="resolvedImage"&&Qm(p)){const m=new Ch(this._scope,this.options,this.iconImageUseTheme);try{p=new Cn(p.type,p.evaluate(m))}catch(x){return this.error(x.message),null}}return p}return ga.parse(["to-array",t],this)}return this.error(t===void 0?"'undefined' value invalid. Use null instead.":typeof t=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof t} instead.`)}concat(t,i,l,h){let p=typeof t=="number"?this.path.concat(t):this.path;p=typeof i=="string"?p.concat(i):p;const m=h?this.scope.concat(h):this.scope;return new jf(this.registry,p,l||null,m,this.errors,this._scope,this.options,this.iconImageUseTheme)}error(t,...i){const l=`${this.key}${i.map(h=>`[${h}]`).join("")}`;this.errors.push(new ea(l,t))}checkSubtype(t,i){const l=bh(t,i);return l&&this.error(l),l}}function Qm(a){if(a instanceof Of)return Qm(a.boundExpression);if(a instanceof vo&&a.name==="error"||a instanceof Sf||a instanceof Ol||a instanceof yc||a instanceof du)return!1;const t=a instanceof ga||a instanceof Ls;let i=!0;return a.eachChild(l=>{i=t?i&&Qm(l):i&&l instanceof Cn}),!!i&&_c(a)&&Oa(a,["zoom","heatmap-density","worldview","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed","is-active-floor"])}function Pf(a,t){const i=a.length-1;let l,h,p=0,m=i,x=0;for(;p<=m;)if(x=Math.floor((p+m)/2),l=a[x],h=a[x+1],l<=t){if(x===i||t<h)return x;p=x+1}else{if(!(l>t))throw new Xr("Input is not a number.");m=x-1}return 0}class kh{constructor(t,i,l){this.type=t,this.input=i,this.labels=[],this.outputs=[];for(const[h,p]of l)this.labels.push(h),this.outputs.push(p)}static parse(t,i){if(t.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if((t.length-1)%2!=0)return i.error("Expected an even number of arguments.");const l=i.parse(t[1],1,jn);if(!l)return null;const h=[];let p=null;i.expectedType&&i.expectedType.kind!=="value"&&(p=i.expectedType);for(let m=1;m<t.length;m+=2){const x=m===1?-1/0:t[m],b=t[m+1],T=m,A=m+1;if(typeof x!="number")return i.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',T);if(h.length&&h[h.length-1][0]>=x)return i.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',T);const L=i.parse(b,A,p);if(!L)return null;p=p||L.type,h.push([x,L])}return new kh(p,l,h)}evaluate(t){const i=this.labels,l=this.outputs;if(i.length===1)return l[0].evaluate(t);const h=this.input.evaluate(t);if(h<=i[0])return l[0].evaluate(t);const p=i.length;return h>=i[p-1]?l[p-1].evaluate(t):l[Pf(i,h)].evaluate(t)}eachChild(t){t(this.input);for(const i of this.outputs)t(i)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}serialize(){const t=["step",this.input.serialize()];for(let i=0;i<this.labels.length;i++)i>0&&t.push(this.labels[i]),t.push(this.outputs[i].serialize());return t}}const Uv=.95047,Vv=1.08883,Hv=4/29,fu=6/29,Qv=3*fu*fu,zI=fu*fu*fu,OI=Math.PI/180,jI=180/Math.PI;function Ym(a){return a>zI?Math.pow(a,1/3):a/Qv+Hv}function $m(a){return a>fu?a*a*a:Qv*(a-Hv)}function zh(a){return 255*(a<=.0031308?12.92*a:1.055*Math.pow(a,1/2.4)-.055)}function pu(a){return(a/=255)<=.04045?a/12.92:Math.pow((a+.055)/1.055,2.4)}function Gm(a){const t=pu(a.r),i=pu(a.g),l=pu(a.b),h=Ym((.4124564*t+.3575761*i+.1804375*l)/Uv),p=Ym((.2126729*t+.7151522*i+.072175*l)/1);return{l:116*p-16,a:500*(h-p),b:200*(p-Ym((.0193339*t+.119192*i+.9503041*l)/Vv)),alpha:a.a}}function Yv(a){let t=(a.l+16)/116,i=isNaN(a.a)?t:t+a.a/500,l=isNaN(a.b)?t:t-a.b/200;return t=1*$m(t),i=Uv*$m(i),l=Vv*$m(l),new Si(zh(3.2404542*i-1.5371385*t-.4985314*l),zh(-.969266*i+1.8760108*t+.041556*l),zh(.0556434*i-.2040259*t+1.0572252*l),a.alpha)}function PI(a,t,i){const l=t-a;return a+i*(l>180||l<-180?l-360*Math.round(l/360):l)}const Oh={forward:Gm,reverse:Yv,interpolate:function(a,t,i){return{l:$n(a.l,t.l,i),a:$n(a.a,t.a,i),b:$n(a.b,t.b,i),alpha:$n(a.alpha,t.alpha,i)}}},gu={forward:function(a){const{l:t,a:i,b:l}=Gm(a),h=Math.atan2(l,i)*jI;return{h:h<0?h+360:h,c:Math.sqrt(i*i+l*l),l:t,alpha:a.a}},reverse:function(a){const t=a.h*OI,i=a.c;return Yv({l:a.l,a:Math.cos(t)*i,b:Math.sin(t)*i,alpha:a.alpha})},interpolate:function(a,t,i){return{h:PI(a.h,t.h,i),c:$n(a.c,t.c,i),l:$n(a.l,t.l,i),alpha:$n(a.alpha,t.alpha,i)}}};var Zm=Object.freeze({__proto__:null,hcl:gu,lab:Oh});class Yo{constructor(t,i,l,h,p){this.type=t,this.operator=i,this.interpolation=l,this.input=h,this.labels=[],this.outputs=[];for(const[m,x]of p)this.labels.push(m),this.outputs.push(x)}static interpolationFactor(t,i,l,h){let p=0;if(t.name==="exponential")p=Rf(i,t.base,l,h);else if(t.name==="linear")p=Rf(i,1,l,h);else if(t.name==="cubic-bezier"){const m=t.controlPoints;p=new dr(m[0],m[1],m[2],m[3]).solve(Rf(i,1,l,h))}return p}static parse(t,i){let[l,h,p,...m]=t;if(!Array.isArray(h)||h.length===0)return i.error("Expected an interpolation type expression.",1);if(h[0]==="linear")h={name:"linear"};else if(h[0]==="exponential"){const T=h[1];if(typeof T!="number")return i.error("Exponential interpolation requires a numeric base.",1,1);h={name:"exponential",base:T}}else{if(h[0]!=="cubic-bezier")return i.error(`Unknown interpolation type ${String(h[0])}`,1,0);{const T=h.slice(1);if(T.length!==4||T.some(A=>typeof A!="number"||A<0||A>1))return i.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);h={name:"cubic-bezier",controlPoints:T}}}if(t.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length-1>3&&(t.length-1)%2!=0)return i.error("Expected an even number of arguments.");if(p=i.parse(p,2,jn),!p)return null;const x=[];let b=null;l==="interpolate-hcl"||l==="interpolate-lab"?b=os:i.expectedType&&i.expectedType.kind!=="value"&&(b=i.expectedType);for(let T=0;T<m.length;T+=2){const A=m[T],L=m[T+1],k=T+3,j=T+4;if(typeof A!="number")return i.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',k);if(x.length&&x[x.length-1][0]>=A)return i.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',k);const F=i.parse(L,j,b);if(!F)return null;b=b||F.type,x.push([A,F])}return b.kind==="number"||b.kind==="color"||b.kind==="array"&&b.itemType.kind==="number"&&typeof b.N=="number"?new Yo(b,l,h,p,x):i.error(`Type ${ro(b)} is not interpolatable.`)}evaluate(t){const i=this.labels,l=this.outputs;if(i.length===1)return l[0].evaluate(t);const h=this.input.evaluate(t);if(h<=i[0])return l[0].evaluate(t);const p=i.length;if(h>=i[p-1])return l[p-1].evaluate(t);const m=Pf(i,h),x=Yo.interpolationFactor(this.interpolation,h,i[m],i[m+1]),b=l[m].evaluate(t),T=l[m+1].evaluate(t);return this.operator==="interpolate"?Cf[this.type.kind.toLowerCase()](b,T,x):this.operator==="interpolate-hcl"?gu.reverse(gu.interpolate(gu.forward(b),gu.forward(T),x)):Oh.reverse(Oh.interpolate(Oh.forward(b),Oh.forward(T),x))}eachChild(t){t(this.input);for(const i of this.outputs)t(i)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}serialize(){let t;t=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier",...this.interpolation.controlPoints];const i=[this.operator,t,this.input.serialize()];for(let l=0;l<this.labels.length;l++)i.push(this.labels[l],this.outputs[l].serialize());return i}}function Rf(a,t,i,l){const h=l-i,p=a-i;return h===0?0:t===1?p/h:(Math.pow(t,p)-1)/(Math.pow(t,h)-1)}class jh{constructor(t,i){this.type=t,this.args=i}static parse(t,i){if(t.length<2)return i.error("Expectected at least one argument."),null;let l=null;const h=i.expectedType;h&&h.kind!=="value"&&(l=h);const p=[];for(const x of t.slice(1)){const b=i.parse(x,1+p.length,l,void 0,{typeAnnotation:"omit"});if(!b)return null;l=l||b.type,p.push(b)}const m=h&&p.some(x=>bh(h,x.type));return new jh(m?Hi:l,p)}evaluate(t){let i,l=null,h=0;for(const p of this.args){if(h++,l=p.evaluate(t),l&&l instanceof ps&&!l.available&&(i||(i=l),l=null,h===this.args.length))return i;if(l!==null)break}return l}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}serialize(){const t=["coalesce"];return this.eachChild(i=>{t.push(i.serialize())}),t}}class Bf{constructor(t,i){this.type=i.type,this.bindings=[].concat(t),this.result=i}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(const i of this.bindings)t(i[1]);t(this.result)}static parse(t,i){if(t.length<4)return i.error(`Expected at least 3 arguments, but found ${t.length-1} instead.`);const l=[];for(let p=1;p<t.length-1;p+=2){const m=t[p];if(typeof m!="string")return i.error(`Expected string, but found ${typeof m} instead.`,p);if(/[^a-zA-Z0-9_]/.test(m))return i.error("Variable names must contain only alphanumeric characters or '_'.",p);const x=i.parse(t[p+1],p+1);if(!x)return null;l.push([m,x])}const h=i.parse(t[t.length-1],t.length-1,i.expectedType,l);return h?new Bf(l,h):null}outputDefined(){return this.result.outputDefined()}serialize(){const t=["let"];for(const[i,l]of this.bindings)t.push(i,l.serialize());return t.push(this.result.serialize()),t}}class Ph{constructor(t,i,l){this.type=t,this.index=i,this.input=l}static parse(t,i){if(t.length!==3)return i.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const l=i.parse(t[1],1,jn),h=i.parse(t[2],2,Jo(i.expectedType||Hi));return l&&h?new Ph(h.type.itemType,l,h):null}evaluate(t){const i=this.index.evaluate(t),l=this.input.evaluate(t);if(i<0)throw new Xr("Array index out of bounds: negative index");if(i>=l.length)throw new Xr("Array index out of bounds: index exceeds array size");if(i!==Math.floor(i))throw new Xr("Array index must be an integer. Use at-interpolated for fractional indices");return l[i]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class Rh{constructor(t,i,l){this.type=t,this.index=i,this.input=l}static parse(t,i){if(t.length!==3)return i.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const l=i.parse(t[1],1,jn),h=i.parse(t[2],2,Jo(i.expectedType||Hi));return l&&h?new Rh(h.type.itemType,l,h):null}evaluate(t){const i=this.index.evaluate(t),l=this.input.evaluate(t);if(i<0)throw new Xr(`Array index out of bounds: ${i} < 0.`);if(i>l.length-1)throw new Xr(`Array index out of bounds: ${i} > ${l.length-1}.`);if(i===Math.floor(i))return l[i];const h=Math.floor(i),p=Math.ceil(i),m=l[h],x=l[p];if(typeof m!="number"||typeof x!="number")throw new Xr(`Cannot interpolate between non-number values at index ${i}.`);const b=i-h;return m*(1-b)+x*b}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}serialize(){return["at-interpolated",this.index.serialize(),this.input.serialize()]}}class Bh{constructor(t,i){this.type=Vi,this.needle=t,this.haystack=i}static parse(t,i){if(t.length!==3)return i.error(`Expected 2 arguments, but found ${t.length-1} instead.`),null;const l=i.parse(t[1],1,Hi),h=i.parse(t[2],2,Hi);return l&&h?Sm(l.type,[Vi,Ui,jn,tl,Hi])?new Bh(l,h):(i.error(`Expected first argument to be of type boolean, string, number or null, but found ${ro(l.type)} instead`),null):null}evaluate(t){const i=this.needle.evaluate(t),l=this.haystack.evaluate(t);if(l==null)return!1;if(!ru(i,["boolean","string","number","null"]))throw new Xr(`Expected first argument to be of type boolean, string, number or null, but found ${ro(Vr(i))} instead.`);if(!ru(l,["string","array"]))throw new Xr(`Expected second argument to be of type array or string, but found ${ro(Vr(l))} instead.`);return l.indexOf(i)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class Ff{constructor(t,i,l){this.type=jn,this.needle=t,this.haystack=i,this.fromIndex=l}static parse(t,i){if(t.length<=2||t.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`),null;const l=i.parse(t[1],1,Hi),h=i.parse(t[2],2,Hi);if(!l||!h)return null;if(!Sm(l.type,[Vi,Ui,jn,tl,Hi]))return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${ro(l.type)} instead`),null;if(t.length===4){const p=i.parse(t[3],3,jn);return p?new Ff(l,h,p):null}return new Ff(l,h)}evaluate(t){const i=this.needle.evaluate(t),l=this.haystack.evaluate(t);if(!ru(i,["boolean","string","number","null"]))throw new Xr(`Expected first argument to be of type boolean, string, number or null, but found ${ro(Vr(i))} instead.`);if(!ru(l,["string","array"]))throw new Xr(`Expected second argument to be of type array or string, but found ${ro(Vr(l))} instead.`);if(this.fromIndex){const h=this.fromIndex.evaluate(t);return l.indexOf(i,h)}return l.indexOf(i)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class Wm{constructor(t,i,l,h,p,m){this.inputType=t,this.type=i,this.input=l,this.cases=h,this.outputs=p,this.otherwise=m}static parse(t,i){if(t.length<5)return i.error(`Expected at least 4 arguments, but found only ${t.length-1}.`);if(t.length%2!=1)return i.error("Expected an even number of arguments.");let l,h;i.expectedType&&i.expectedType.kind!=="value"&&(h=i.expectedType);const p={},m=[];for(let T=2;T<t.length-1;T+=2){let A=t[T];const L=t[T+1];Array.isArray(A)||(A=[A]);const k=i.concat(T);if(A.length===0)return k.error("Expected at least one branch label.");for(const F of A){if(typeof F!="number"&&typeof F!="string")return k.error("Branch labels must be numbers or strings.");if(typeof F=="number"&&Math.abs(F)>Number.MAX_SAFE_INTEGER)return k.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof F=="number"&&Math.floor(F)!==F)return k.error("Numeric branch labels must be integer values.");if(l){if(k.checkSubtype(l,Vr(F)))return null}else l=Vr(F);if(p[String(F)]!==void 0)return k.error("Branch labels must be unique.");p[String(F)]=m.length}const j=i.parse(L,T,h);if(!j)return null;h=h||j.type,m.push(j)}const x=i.parse(t[1],1,Hi);if(!x)return null;const b=i.parse(t[t.length-1],t.length-1,h);return b?x.type.kind!=="value"&&i.concat(1).checkSubtype(l,x.type)?null:new Wm(l,h,x,p,m,b):null}evaluate(t){const i=this.input.evaluate(t);return(nl(Vr(i),this.inputType)&&this.outputs[this.cases[i]]||this.otherwise).evaluate(t)}eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every(t=>t.outputDefined())&&this.otherwise.outputDefined()}serialize(){const t=["match",this.input.serialize()],i=Object.keys(this.cases).sort(),l=[],h={};for(const m of i){const x=h[this.cases[m]];x===void 0?(h[this.cases[m]]=l.length,l.push([this.cases[m],[m]])):l[x][1].push(m)}const p=m=>this.inputType.kind==="number"?Number(m):m;for(const[m,x]of l)t.push(x.length===1?p(x[0]):x.map(p)),t.push(this.outputs[m].serialize());return t.push(this.otherwise.serialize()),t}}class Uf{constructor(t,i,l){this.type=t,this.branches=i,this.otherwise=l}static parse(t,i){if(t.length<4)return i.error(`Expected at least 3 arguments, but found only ${t.length-1}.`),null;if(t.length%2!=0)return i.error("Expected an odd number of arguments."),null;let l;i.expectedType&&i.expectedType.kind!=="value"&&(l=i.expectedType);const h=[];for(let m=1;m<t.length-1;m+=2){const x=i.parse(t[m],m,Vi);if(!x)return null;const b=i.parse(t[m+1],m+1,l);if(!b)return null;h.push([x,b]),l=l||b.type}const p=i.parse(t[t.length-1],t.length-1,l);return p?new Uf(l,h,p):null}evaluate(t){for(const[i,l]of this.branches)if(i.evaluate(t))return l.evaluate(t);return this.otherwise.evaluate(t)}eachChild(t){for(const[i,l]of this.branches)t(i),t(l);t(this.otherwise)}outputDefined(){return this.branches.every(([t,i])=>i.outputDefined())&&this.otherwise.outputDefined()}serialize(){const t=["case"];return this.eachChild(i=>{t.push(i.serialize())}),t}}class Fh{constructor(t,i,l,h){this.type=t,this.input=i,this.beginIndex=l,this.endIndex=h}static parse(t,i){if(t.length<=2||t.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${t.length-1} instead.`),null;const l=i.parse(t[1],1,Hi),h=i.parse(t[2],2,jn);if(!l||!h)return null;if(!Sm(l.type,[Jo(Hi),Ui,Hi]))return i.error(`Expected first argument to be of type array or string, but found ${ro(l.type)} instead`),null;if(t.length===4){const p=i.parse(t[3],3,jn);return p?new Fh(l.type,l,h,p):null}return new Fh(l.type,l,h)}evaluate(t){const i=this.input.evaluate(t),l=this.beginIndex.evaluate(t);if(!ru(i,["string","array"]))throw new Xr(`Expected first argument to be of type array or string, but found ${ro(Vr(i))} instead.`);if(this.endIndex){const h=this.endIndex.evaluate(t);return i.slice(l,h)}return i.slice(l)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}class qm{constructor(t,i){this.type=Jo(Ui),this.str=t,this.delimiter=i}static parse(t,i){if(t.length!==3)return i.error(`Expected 2 arguments, but found ${t.length-1} instead.`);const l=i.parse(t[1],1,Ui),h=i.parse(t[2],2,Ui);return l&&h?new qm(l,h):void 0}evaluate(t){const i=this.str.evaluate(t),l=this.delimiter.evaluate(t);return i.split(l)}eachChild(t){t(this.str),t(this.delimiter)}outputDefined(){return!1}serialize(){return["split",this.str.serialize(),this.delimiter.serialize()]}}function $v(a,t){return a==="=="||a==="!="?t.kind==="boolean"||t.kind==="string"||t.kind==="number"||t.kind==="null"||t.kind==="value":t.kind==="string"||t.kind==="number"||t.kind==="value"}function Gv(a,t,i,l){return l.compare(t,i)===0}function vc(a,t,i){const l=a!=="=="&&a!=="!=";return class VR{constructor(p,m,x){this.type=Vi,this.lhs=p,this.rhs=m,this.collator=x,this.hasUntypedArgument=p.type.kind==="value"||m.type.kind==="value"}static parse(p,m){if(p.length!==3&&p.length!==4)return m.error("Expected two or three arguments.");const x=p[0];let b=m.parse(p[1],1,Hi);if(!b)return null;if(!$v(x,b.type))return m.concat(1).error(`"${x}" comparisons are not supported for type '${ro(b.type)}'.`);let T=m.parse(p[2],2,Hi);if(!T)return null;if(!$v(x,T.type))return m.concat(2).error(`"${x}" comparisons are not supported for type '${ro(T.type)}'.`);if(b.type.kind!==T.type.kind&&b.type.kind!=="value"&&T.type.kind!=="value")return m.error(`Cannot compare types '${ro(b.type)}' and '${ro(T.type)}'.`);l&&(b.type.kind==="value"&&T.type.kind!=="value"?b=new Ls(T.type,[b]):b.type.kind!=="value"&&T.type.kind==="value"&&(T=new Ls(b.type,[T])));let A=null;if(p.length===4){if(b.type.kind!=="string"&&T.type.kind!=="string"&&b.type.kind!=="value"&&T.type.kind!=="value")return m.error("Cannot use collator to compare non-string types.");if(A=m.parse(p[3],3,dc),!A)return null}return new VR(b,T,A)}evaluate(p){const m=this.lhs.evaluate(p),x=this.rhs.evaluate(p);if(l&&this.hasUntypedArgument){const b=Vr(m),T=Vr(x);if(b.kind!==T.kind||b.kind!=="string"&&b.kind!=="number")throw new Xr(`Expected arguments for "${a}" to be (string, string) or (number, number), but found (${b.kind}, ${T.kind}) instead.`)}if(this.collator&&!l&&this.hasUntypedArgument){const b=Vr(m),T=Vr(x);if(b.kind!=="string"||T.kind!=="string")return t(p,m,x)}return this.collator?i(p,m,x,this.collator.evaluate(p)):t(p,m,x)}eachChild(p){p(this.lhs),p(this.rhs),this.collator&&p(this.collator)}outputDefined(){return!0}serialize(){const p=[a];return this.eachChild(m=>{p.push(m.serialize())}),p}}}const Zv=vc("==",function(a,t,i){return t===i},Gv),Vf=vc("!=",function(a,t,i){return t!==i},function(a,t,i,l){return!Gv(0,t,i,l)}),RI=vc("<",function(a,t,i){return t<i},function(a,t,i,l){return l.compare(t,i)<0}),Wv=vc(">",function(a,t,i){return t>i},function(a,t,i,l){return l.compare(t,i)>0}),BI=vc("<=",function(a,t,i){return t<=i},function(a,t,i,l){return l.compare(t,i)<=0}),FI=vc(">=",function(a,t,i){return t>=i},function(a,t,i,l){return l.compare(t,i)>=0});class Hf{constructor(t,i,l,h,p,m){this.type=Ui,this.number=t,this.locale=i,this.currency=l,this.unit=h,this.minFractionDigits=p,this.maxFractionDigits=m}static parse(t,i){if(t.length!==3)return i.error("Expected two arguments.");const l=i.parse(t[1],1,jn);if(!l)return null;const h=t[2];if(typeof h!="object"||Array.isArray(h))return i.error("NumberFormat options argument must be an object.");let p=null;if(h.locale&&(p=i.parseObjectValue(h.locale,2,"locale",Ui),!p))return null;let m=null;if(h.currency&&(m=i.parseObjectValue(h.currency,2,"currency",Ui),!m))return null;let x=null;if(h.unit&&(x=i.parseObjectValue(h.unit,2,"unit",Ui),!x))return null;let b=null;if(h["min-fraction-digits"]&&(b=i.parseObjectValue(h["min-fraction-digits"],2,"min-fraction-digits",jn),!b))return null;let T=null;return h["max-fraction-digits"]&&(T=i.parseObjectValue(h["max-fraction-digits"],2,"max-fraction-digits",jn),!T)?null:new Hf(l,p,m,x,b,T)}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(t):void 0,unit:this.unit?this.unit.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.unit&&t(this.unit),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.unit&&(t.unit=this.unit.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]}}class Qf{constructor(t){this.type=jn,this.input=t}static parse(t,i){if(t.length!==2)return i.error(`Expected 1 argument, but found ${t.length-1} instead.`),null;const l=i.parse(t[1],1);return l?l.type.kind!=="array"&&l.type.kind!=="string"&&l.type.kind!=="value"?(i.error(`Expected argument of type string or array, but found ${ro(l.type)} instead.`),null):new Qf(l):null}evaluate(t){const i=this.input.evaluate(t);if(typeof i=="string"||Array.isArray(i))return i.length;throw new Xr(`Expected value to be of type string or array, but found ${ro(Vr(i))} instead.`)}eachChild(t){t(this.input)}outputDefined(){return!1}serialize(){const t=["length"];return this.eachChild(i=>{t.push(i.serialize())}),t}}function qv(a){return function(){a=1831565813+(a|=0)|0;let t=Math.imul(a^a>>>15,1|a);return t=t+Math.imul(t^t>>>7,61|t)^t,((t^t>>>14)>>>0)/4294967296}}const mu={"==":Zv,"!=":Vf,">":Wv,"<":RI,">=":FI,"<=":BI,array:Ls,at:Ph,"at-interpolated":Rh,boolean:Ls,case:Uf,coalesce:jh,collator:Sf,format:fc,image:Un,in:Bh,"index-of":Ff,interpolate:Yo,"interpolate-hcl":Yo,"interpolate-lab":Yo,length:Qf,let:Bf,literal:Cn,match:Wm,number:Ls,"number-format":Hf,object:Ls,slice:Fh,step:kh,string:Ls,"to-boolean":ga,"to-color":ga,"to-number":ga,"to-string":ga,var:Of,within:Ol,distance:yc,config:du,split:qm};function Xv(a,[t,i,l,h]){t=t.evaluate(a),i=i.evaluate(a),l=l.evaluate(a);const p=h?h.evaluate(a):1,m=Cv(t,i,l,p);if(m)throw new Xr(m);return new Si(t/255,i/255,l/255,p)}function Kv(a,[t,i,l,h]){t=t.evaluate(a),i=i.evaluate(a),l=l.evaluate(a);const p=h?h.evaluate(a):1,m=(function(T,A,L,k){return typeof T=="number"&&T>=0&&T<=360?typeof A=="number"&&A>=0&&A<=100&&typeof L=="number"&&L>=0&&L<=100?k===void 0||typeof k=="number"&&k>=0&&k<=1?null:`Invalid hsla value [${[T,A,L,k].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof k=="number"?[T,A,L,k]:[T,A,L]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof k=="number"?[T,A,L,k]:[T,A,L]).join(", ")}]: 'h' must be between 0 and 360.`})(t,i,l,p);if(m)throw new Xr(m);const x=`hsla(${t}, ${i}%, ${l}%, ${p})`,b=Si.parse(x);if(!b)throw new Xr(`Failed to parse HSLA color: ${x}`);return b}function Uh(a,t){return a in t}function Yf(a,t){const i=t[a];return i===void 0?null:i}function Pl(a){return{type:a}}function $f(a){if(a instanceof du)return new Set([a.key]);let t=new Set;return a.eachChild(i=>{t=new Set([...t,...$f(i)])}),t}function Gf(a){if(a instanceof vo&&a.name==="is-active-floor")return!0;let t=!1;return a.eachChild(i=>{!t&&Gf(i)&&(t=!0)}),t}function Jv(a){return{result:"success",value:a}}function Rl(a){return{result:"error",value:a}}function Vh(a,t){return!!a&&!!a.parameters&&a.parameters.indexOf(t)>-1}function Zf(a){return a["property-type"]==="data-driven"}function ex(a){return Vh(a.expression,"measure-light")}function Xm(a){return Vh(a.expression,"zoom")}function Wf(a){return!!a.expression&&a.expression.interpolated}function Km(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function tx(a){return a}function nx(a,t){const i=t.type==="color",l=a.stops&&typeof a.stops[0][0]=="object",h=l||!(l||a.property!==void 0),p=a.type||(Wf(t)?"exponential":"interval");if(i&&((a=Object.assign({},a)).stops&&(a.stops=a.stops.map(T=>[T[0],Si.parse(T[1])])),a.default=Si.parse(a.default?a.default:t.default)),a.colorSpace&&a.colorSpace!=="rgb"&&!Zm[a.colorSpace])throw new Error(`Unknown color space: ${a.colorSpace}`);let m,x,b;if(p==="exponential")m=ix;else if(p==="interval")m=VI;else if(p==="categorical"){m=UI,x=Object.create(null);for(const T of a.stops)x[T[0]]=T[1];b=typeof a.stops[0][0]}else{if(p!=="identity")throw new Error(`Unknown function type "${p}"`);m=rx}if(l){const T={},A=[];for(let j=0;j<a.stops.length;j++){const F=a.stops[j],Q=F[0].zoom;T[Q]===void 0&&(T[Q]={zoom:Q,type:a.type,property:a.property,default:a.default,stops:[]},A.push(Q)),T[Q].stops.push([F[0].value,F[1]])}const L=[];for(const j of A)L.push([T[j].zoom,nx(T[j],t)]);const k={name:"linear"};return{kind:"composite",interpolationType:k,interpolationFactor:Yo.interpolationFactor.bind(void 0,k),zoomStops:L.map(j=>j[0]),evaluate:({zoom:j},F)=>ix({stops:L,base:a.base},t,j).evaluate(j,F)}}if(h){const T=p==="exponential"?{name:"exponential",base:a.base!==void 0?a.base:1}:null;return{kind:"camera",interpolationType:T,interpolationFactor:Yo.interpolationFactor.bind(void 0,T),zoomStops:a.stops.map(A=>A[0]),evaluate:({zoom:A})=>m(a,t,A,x,b)}}return{kind:"source",evaluate(T,A){const L=A&&A.properties?A.properties[a.property]:void 0;return L===void 0?ja(a.default,t.default):m(a,t,L,x,b)}}}function ja(a,t,i){return a!==void 0?a:t!==void 0?t:i!==void 0?i:void 0}function UI(a,t,i,l,h){return ja(typeof i===h?l[i]:void 0,a.default,t.default)}function VI(a,t,i){if(!Ih(i))return ja(a.default,t.default);const l=a.stops.length;if(l===1||i<=a.stops[0][0])return a.stops[0][1];if(i>=a.stops[l-1][0])return a.stops[l-1][1];const h=Pf(a.stops.map(p=>p[0]),i);return a.stops[h][1]}function ix(a,t,i){const l=a.base!==void 0?a.base:1;if(!Ih(i))return ja(a.default,t.default);const h=a.stops.length;if(h===1||i<=a.stops[0][0])return a.stops[0][1];if(i>=a.stops[h-1][0])return a.stops[h-1][1];const p=Pf(a.stops.map(A=>A[0]),i),m=(function(A,L,k,j){const F=j-k,Q=A-k;return F===0?0:L===1?Q/F:(Math.pow(L,Q)-1)/(Math.pow(L,F)-1)})(i,l,a.stops[p][0],a.stops[p+1][0]),x=a.stops[p][1],b=a.stops[p+1][1];let T=Cf[t.type]||tx;if(a.colorSpace&&a.colorSpace!=="rgb"){const A=Zm[a.colorSpace];T=(L,k)=>A.reverse(A.interpolate(A.forward(L),A.forward(k),m))}return typeof x.evaluate=="function"?{evaluate(...A){const L=x.evaluate.apply(void 0,A),k=b.evaluate.apply(void 0,A);if(L!==void 0&&k!==void 0)return T(L,k,m)}}:T(x,b,m)}function rx(a,t,i){return t.type==="color"?i=Si.parse(i):t.type==="formatted"?i=Qo.fromString(i.toString()):t.type==="resolvedImage"?i=ps.build(i.toString()):Mh(i)===t.type||t.type==="enum"&&t.values[i]||(i=void 0),ja(i,a.default,t.default)}vo.register(mu,{error:[{kind:"error"},[Ui],(a,[t])=>{throw new Xr(t.evaluate(a))}],typeof:[Ui,[Hi],(a,[t])=>ro(Vr(t.evaluate(a)))],"to-rgba":[Jo(jn,4),[os],(a,[t])=>t.evaluate(a).toNonPremultipliedRenderColor(null).toArray()],"to-hsla":[Jo(jn,4),[os],(a,[t])=>t.evaluate(a).toNonPremultipliedRenderColor(null).toHslaArray()],rgb:[os,[jn,jn,jn],Xv],rgba:[os,[jn,jn,jn,jn],Xv],hsl:[os,[jn,jn,jn],Kv],hsla:[os,[jn,jn,jn,jn],Kv],has:{type:Vi,overloads:[[[Ui],(a,[t])=>Uh(t.evaluate(a),a.properties())],[[Ui,Ll],(a,[t,i])=>Uh(t.evaluate(a),i.evaluate(a))]]},get:{type:Hi,overloads:[[[Ui],(a,[t])=>Yf(t.evaluate(a),a.properties())],[[Ui,Ll],(a,[t,i])=>Yf(t.evaluate(a),i.evaluate(a))]]},"feature-state":[Hi,[Ui],(a,[t])=>Yf(t.evaluate(a),a.featureState||{})],properties:[Ll,[],a=>a.properties()],"geometry-type":[Ui,[],a=>a.geometryType()],worldview:[Ui,[],a=>a.globals.worldview||""],"is-active-floor":[Vi,Pl(Ui),(a,t)=>{if(!(a.globals&&a.globals.activeFloors&&a.globals.activeFloors.size>0))return!1;if(t.length===0)return!0;const i=a.globals.activeFloors;return t.some(l=>{const h=l.evaluate(a);return i.has(h)})}],id:[Hi,[],a=>a.id()],zoom:[jn,[],a=>a.globals.zoom],pitch:[jn,[],a=>a.globals.pitch||0],"distance-from-center":[jn,[],a=>a.distanceFromCenter()],"measure-light":[jn,[Ui],(a,[t])=>a.measureLight(t.evaluate(a))],"heatmap-density":[jn,[],a=>a.globals.heatmapDensity||0],"line-progress":[jn,[],a=>a.globals.lineProgress||0],"raster-value":[jn,[],a=>a.globals.rasterValue||0],"raster-particle-speed":[jn,[],a=>a.globals.rasterParticleSpeed||0],"sky-radial-progress":[jn,[],a=>a.globals.skyRadialProgress||0],accumulated:[Hi,[],a=>a.globals.accumulated===void 0?null:a.globals.accumulated],"+":[jn,Pl(jn),(a,t)=>{let i=0;for(const l of t)i+=l.evaluate(a);return i}],"*":[jn,Pl(jn),(a,t)=>{let i=1;for(const l of t)i*=l.evaluate(a);return i}],"-":{type:jn,overloads:[[[jn,jn],(a,[t,i])=>t.evaluate(a)-i.evaluate(a)],[[jn],(a,[t])=>-t.evaluate(a)]]},"/":[jn,[jn,jn],(a,[t,i])=>t.evaluate(a)/i.evaluate(a)],"%":[jn,[jn,jn],(a,[t,i])=>t.evaluate(a)%i.evaluate(a)],ln2:[jn,[],()=>Math.LN2],pi:[jn,[],()=>Math.PI],e:[jn,[],()=>Math.E],"^":[jn,[jn,jn],(a,[t,i])=>Math.pow(t.evaluate(a),i.evaluate(a))],sqrt:[jn,[jn],(a,[t])=>Math.sqrt(t.evaluate(a))],log10:[jn,[jn],(a,[t])=>Math.log(t.evaluate(a))/Math.LN10],ln:[jn,[jn],(a,[t])=>Math.log(t.evaluate(a))],log2:[jn,[jn],(a,[t])=>Math.log2(t.evaluate(a))],sin:[jn,[jn],(a,[t])=>Math.sin(t.evaluate(a))],cos:[jn,[jn],(a,[t])=>Math.cos(t.evaluate(a))],tan:[jn,[jn],(a,[t])=>Math.tan(t.evaluate(a))],asin:[jn,[jn],(a,[t])=>Math.asin(t.evaluate(a))],acos:[jn,[jn],(a,[t])=>Math.acos(t.evaluate(a))],atan:[jn,[jn],(a,[t])=>Math.atan(t.evaluate(a))],min:[jn,Pl(jn),(a,t)=>Math.min(...t.map(i=>i.evaluate(a)))],max:[jn,Pl(jn),(a,t)=>Math.max(...t.map(i=>i.evaluate(a)))],abs:[jn,[jn],(a,[t])=>Math.abs(t.evaluate(a))],round:[jn,[jn],(a,[t])=>{const i=t.evaluate(a);return i<0?-Math.round(-i):Math.round(i)}],floor:[jn,[jn],(a,[t])=>Math.floor(t.evaluate(a))],ceil:[jn,[jn],(a,[t])=>Math.ceil(t.evaluate(a))],"filter-==":[Vi,[Ui,Hi],(a,[t,i])=>a.properties()[t.value]===i.value],"filter-id-==":[Vi,[Hi],(a,[t])=>a.id()===t.value],"filter-type-==":[Vi,[Ui],(a,[t])=>a.geometryType()===t.value],"filter-<":[Vi,[Ui,Hi],(a,[t,i])=>{const l=a.properties()[t.value],h=i.value;return typeof l==typeof h&&l<h}],"filter-id-<":[Vi,[Hi],(a,[t])=>{const i=a.id(),l=t.value;return typeof i==typeof l&&i<l}],"filter->":[Vi,[Ui,Hi],(a,[t,i])=>{const l=a.properties()[t.value],h=i.value;return typeof l==typeof h&&l>h}],"filter-id->":[Vi,[Hi],(a,[t])=>{const i=a.id(),l=t.value;return typeof i==typeof l&&i>l}],"filter-<=":[Vi,[Ui,Hi],(a,[t,i])=>{const l=a.properties()[t.value],h=i.value;return typeof l==typeof h&&l<=h}],"filter-id-<=":[Vi,[Hi],(a,[t])=>{const i=a.id(),l=t.value;return typeof i==typeof l&&i<=l}],"filter->=":[Vi,[Ui,Hi],(a,[t,i])=>{const l=a.properties()[t.value],h=i.value;return typeof l==typeof h&&l>=h}],"filter-id->=":[Vi,[Hi],(a,[t])=>{const i=a.id(),l=t.value;return typeof i==typeof l&&i>=l}],"filter-has":[Vi,[Hi],(a,[t])=>t.value in a.properties()],"filter-has-id":[Vi,[],a=>a.id()!==null&&a.id()!==void 0],"filter-type-in":[Vi,[Jo(Ui)],(a,[t])=>t.value.indexOf(a.geometryType())>=0],"filter-id-in":[Vi,[Jo(Hi)],(a,[t])=>t.value.indexOf(a.id())>=0],"filter-in-small":[Vi,[Ui,Jo(Hi)],(a,[t,i])=>i.value.indexOf(a.properties()[t.value])>=0],"filter-in-large":[Vi,[Ui,Jo(Hi)],(a,[t,i])=>(function(l,h,p,m){for(;p<=m;){const x=p+m>>1;if(h[x]===l)return!0;h[x]>l?m=x-1:p=x+1}return!1})(a.properties()[t.value],i.value,0,i.value.length-1)],all:{type:Vi,overloads:[[[Vi,Vi],(a,[t,i])=>t.evaluate(a)&&i.evaluate(a)],[Pl(Vi),(a,t)=>{for(const i of t)if(!i.evaluate(a))return!1;return!0}]]},any:{type:Vi,overloads:[[[Vi,Vi],(a,[t,i])=>t.evaluate(a)||i.evaluate(a)],[Pl(Vi),(a,t)=>{for(const i of t)if(i.evaluate(a))return!0;return!1}]]},"!":[Vi,[Vi],(a,[t])=>!t.evaluate(a)],"is-supported-script":[Vi,[Ui],(a,[t])=>{const i=a.globals&&a.globals.isSupportedScript;return!i||i(t.evaluate(a))}],upcase:[Ui,[Ui],(a,[t])=>t.evaluate(a).toUpperCase()],downcase:[Ui,[Ui],(a,[t])=>t.evaluate(a).toLowerCase()],concat:[Ui,Pl(Hi),(a,t)=>t.map(i=>Yn(i.evaluate(a))).join("")],"resolved-locale":[Ui,[dc],(a,[t])=>t.evaluate(a).resolvedLocale()],random:[jn,[jn,jn,Hi],(a,t)=>{const[i,l,h]=t.map(m=>m.evaluate(a));if(i>l||i===l)return i;let p;if(typeof h=="string")p=(function(m){let x=0;if(m.length===0)return x;for(let b=0;b<m.length;b++)x=(x<<5)-x+m.charCodeAt(b),x&=x;return x})(h);else{if(typeof h!="number")throw new Xr(`Invalid seed input: ${h}`);p=h}return i+qv(p)()*(l-i)}]});class qf{constructor(t,i,l,h,p){this.expression=t,this._warningHistory={},this._scope=l,this._options=h,this._iconImageUseTheme=p,this._evaluator=new Ch(l,h,p),this._defaultValue=i?(function(m){return m.type==="color"&&(Km(m.default)||Array.isArray(m.default))?new Si(0,0,0,0):m.type==="color"?Si.parse(m.default)||null:m.default===void 0?null:m.default})(i):null,this._enumValues=i&&i.type==="enum"?i.values:null,this.configDependencies=$f(t),this.isIndoorDependent=Gf(t)}evaluateWithoutErrorHandling(t,i,l,h,p,m,x,b){return this._evaluator.globals=t,this._evaluator.feature=i,this._evaluator.featureState=l,this._evaluator.canonical=h||null,this._evaluator.availableImages=p||null,this._evaluator.formattedSection=m,this._evaluator.featureTileCoord=x||null,this._evaluator.featureDistanceData=b||null,this.expression.evaluate(this._evaluator)}evaluate(t,i,l,h,p,m,x,b,T){this._evaluator||(this._evaluator=new Ch(this._scope,this._options,this._iconImageUseTheme)),this._evaluator.globals=t,this._evaluator.feature=i||null,this._evaluator.featureState=l||null,this._evaluator.canonical=h||null,this._evaluator.availableImages=p||null,this._evaluator.formattedSection=m||null,this._evaluator.featureTileCoord=x||null,this._evaluator.featureDistanceData=b||null,this._evaluator.iconImageUseTheme=T||null;try{const A=this.expression.evaluate(this._evaluator);if(A==null||typeof A=="number"&&A!=A)return this._defaultValue;if(this._enumValues&&!(A in this._enumValues))throw new Xr(`Expected value to be one of ${Object.keys(this._enumValues).map(L=>JSON.stringify(L)).join(", ")}, but found ${JSON.stringify(A)} instead.`);return A}catch(A){const L=A;return this._warningHistory[L.message]||(this._warningHistory[L.message]=!0,typeof console<"u"&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${L.message}`)),this._defaultValue}}}function Hh(a){return Array.isArray(a)&&a.length>0&&typeof a[0]=="string"&&a[0]in mu}function Bl(a,t,i,l,h){const p=new jf(mu,[],t?(function(x){const b={color:os,string:Ui,number:jn,enum:Ui,boolean:Vi,formatted:vh,resolvedImage:xh};return x.type==="array"?Jo(b[x.value]||Hi,x.length):b[x.type]})(t):void 0,void 0,void 0,i,l,h),m=p.parse(a,void 0,void 0,void 0,t&&t.type==="string"?{typeAnnotation:"coerce"}:void 0);return m?Jv(new qf(m,t,i,l,h)):Rl(p.errors)}class yu{constructor(t,i,l,h){this.kind=t,this._styleExpression=i,this.isLightConstant=l,this.isLineProgressConstant=h,this.isStateDependent=t!=="constant"&&!hu(i.expression),this.configDependencies=$f(i.expression),this.isIndoorDependent=Gf(i.expression)}evaluateWithoutErrorHandling(t,i,l,h,p,m){return this._styleExpression.evaluateWithoutErrorHandling(t,i,l,h,p,m)}evaluate(t,i,l,h,p,m,x){return this._styleExpression.evaluate(t,i,l,h,p,m,void 0,void 0,x)}}class xc{constructor(t,i,l,h,p,m){this.kind=t,this.zoomStops=l,this._styleExpression=i,this.isStateDependent=t!=="camera"&&!hu(i.expression),this.isIndoorDependent=Gf(i.expression),this.isLightConstant=p,this.isLineProgressConstant=m,this.configDependencies=$f(i.expression),this.interpolationType=h}evaluateWithoutErrorHandling(t,i,l,h,p,m){return this._styleExpression.evaluateWithoutErrorHandling(t,i,l,h,p,m)}evaluate(t,i,l,h,p,m){return this._styleExpression.evaluate(t,i,l,h,p,m)}interpolationFactor(t,i,l){return this.interpolationType?Yo.interpolationFactor(this.interpolationType,t,i,l):0}}function Jm(a,t,i,l,h){if((a=Bl(a,t,i,l,h)).result==="error")return a;const p=a.value.expression,m=_c(p);if(!m&&!Zf(t))return Rl([new ea("","data expressions not supported")]);const x=Oa(p,["zoom","pitch","distance-from-center"]);if(!x&&!Xm(t))return Rl([new ea("","zoom expressions not supported")]);const b=Oa(p,["measure-light"]);if(!b&&!ex(t))return Rl([new ea("","measure-light expression not supported")]);const T=Oa(p,["line-progress"]);if(!T&&!(function(k){return Vh(k.expression,"line-progress")})(t))return Rl([new ea("","line-progress expression not supported")]);const A=t.expression&&t.expression.relaxZoomRestriction,L=_a(p);return L||x||A?L instanceof ea?Rl([L]):L instanceof Yo&&!Wf(t)?Rl([new ea("",'"interpolate" expressions cannot be used with this property')]):Jv(L?new xc(m&&T?"camera":"composite",a.value,L.labels,L instanceof Yo?L.interpolation:void 0,b,T):new yu(m&&T?"constant":"source",a.value,b,T)):Rl([new ea("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class Xf{constructor(t,i){this._parameters=t,this._specification=i,Object.assign(this,nx(this._parameters,this._specification))}static deserialize(t){return new Xf(t._parameters,t._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification}}}function _a(a){let t=null;if(a instanceof Bf)t=_a(a.result);else if(a instanceof jh){for(const i of a.args)if(t=_a(i),t)break}else(a instanceof kh||a instanceof Yo)&&a.input instanceof vo&&a.input.name==="zoom"&&(t=a);return t instanceof ea||a.eachChild(i=>{const l=_a(i);l instanceof ea?t=l:t&&l&&t!==l&&(t=new ea("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),t}var e0,ox,Qh=(function(){if(ox)return e0;ox=1,e0=t;var a=3;function t(i,l,h){var p=this.cells=[];if(i instanceof ArrayBuffer){this.arrayBuffer=i;var m=new Int32Array(this.arrayBuffer);i=m[0],this.d=(l=m[1])+2*(h=m[2]);for(var x=0;x<this.d*this.d;x++){var b=m[a+x],T=m[a+x+1];p.push(b===T?null:m.subarray(b,T))}var A=m[a+p.length+1];this.keys=m.subarray(m[a+p.length],A),this.bboxes=m.subarray(A),this.insert=this._insertReadonly}else{this.d=l+2*h;for(var L=0;L<this.d*this.d;L++)p.push([]);this.keys=[],this.bboxes=[]}this.n=l,this.extent=i,this.padding=h,this.scale=l/i,this.uid=0;var k=h/l*i;this.min=-k,this.max=i+k}return t.prototype.insert=function(i,l,h,p,m){this._forEachCell(l,h,p,m,this._insertCell,this.uid++),this.keys.push(i),this.bboxes.push(l),this.bboxes.push(h),this.bboxes.push(p),this.bboxes.push(m)},t.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},t.prototype._insertCell=function(i,l,h,p,m,x){this.cells[m].push(x)},t.prototype.query=function(i,l,h,p,m){var x=this.min,b=this.max;if(i<=x&&l<=x&&b<=h&&b<=p&&!m)return Array.prototype.slice.call(this.keys);var T=[];return this._forEachCell(i,l,h,p,this._queryCell,T,{},m),T},t.prototype._queryCell=function(i,l,h,p,m,x,b,T){var A=this.cells[m];if(A!==null)for(var L=this.keys,k=this.bboxes,j=0;j<A.length;j++){var F=A[j];if(b[F]===void 0){var Q=4*F;(T?T(k[Q+0],k[Q+1],k[Q+2],k[Q+3]):i<=k[Q+2]&&l<=k[Q+3]&&h>=k[Q+0]&&p>=k[Q+1])?(b[F]=!0,x.push(L[F])):b[F]=!1}}},t.prototype._forEachCell=function(i,l,h,p,m,x,b,T){for(var A=this._convertToCellCoord(i),L=this._convertToCellCoord(l),k=this._convertToCellCoord(h),j=this._convertToCellCoord(p),F=A;F<=k;F++)for(var Q=L;Q<=j;Q++){var Z=this.d*Q+F;if((!T||T(this._convertFromCellCoord(F),this._convertFromCellCoord(Q),this._convertFromCellCoord(F+1),this._convertFromCellCoord(Q+1)))&&m.call(this,i,l,h,p,Z,x,b,T))return}},t.prototype._convertFromCellCoord=function(i){return(i-this.padding)/this.scale},t.prototype._convertToCellCoord=function(i){return Math.max(0,Math.min(this.d-1,Math.floor(i*this.scale)+this.padding))},t.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var i=this.cells,l=a+this.cells.length+1+1,h=0,p=0;p<this.cells.length;p++)h+=this.cells[p].length;var m=new Int32Array(l+h+this.keys.length+this.bboxes.length);m[0]=this.extent,m[1]=this.n,m[2]=this.padding;for(var x=l,b=0;b<i.length;b++){var T=i[b];m[a+b]=x,m.set(T,x),x+=T.length}return m[a+i.length]=x,m.set(this.keys,x),m[a+i.length+1]=x+=this.keys.length,m.set(this.bboxes,x),x+=this.bboxes.length,m.buffer},e0})(),_u=ji(Qh);const bc={};function vn(a,t,i={}){Object.defineProperty(a,"_classRegistryKey",{value:t,writable:!1}),bc[t]={klass:a,omit:i.omit||[]}}vn(Object,"Object"),_u.serialize=function(a,t){const i=a.toArrayBuffer();return t&&t.add(i),{buffer:i}},_u.deserialize=function(a){return new _u(a.buffer)},Object.defineProperty(_u,"name",{value:"Grid"}),vn(_u,"Grid"),delete zt.prototype.constructor,vn(Si,"Color"),vn(Error,"Error"),vn(Qo,"Formatted"),vn(wh,"FormattedSection"),vn(Mm,"AJAXError"),vn(ps,"ResolvedImage"),vn(Xf,"StylePropertyFunction"),vn(qf,"StyleExpression",{omit:["_evaluator"]}),vn(bs,"ImageId"),vn(ta,"ImageVariant"),vn(xc,"ZoomDependentExpression"),vn(yu,"ZoomConstantExpression"),vn(vo,"CompoundExpression",{omit:["_evaluate"]});for(const a in mu)bc[mu[a]._classRegistryKey]||vn(mu[a],`Expression${a}`);function Yh(a){return a&&(a instanceof ArrayBuffer||a.constructor&&a.constructor.name==="ArrayBuffer")}function rl(a,t){if(a==null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||a instanceof Boolean||a instanceof Number||a instanceof String||a instanceof Date||a instanceof RegExp)return a;if(Yh(a)||a instanceof ImageBitmap)return t&&t.add(a),a;if(ArrayBuffer.isView(a))return t&&t.add(a.buffer),a;if(a instanceof ImageData)return t&&t.add(a.data.buffer),a;if(Array.isArray(a)){const i=[];for(const l of a)i.push(rl(l,t));return i}if(a instanceof Map){const i={$name:"Map",entries:[]};for(const[l,h]of a.entries())i.entries.push(rl(l),rl(h,t));return i}if(a instanceof Set){const i={$name:"Set"};let l=0;for(const h of a.values())i[++l]=rl(h);return i}if(typeof a=="bigint")return{$name:"BigInt",value:a.toString()};if(typeof a=="object"){const i=a.constructor,l=i._classRegistryKey;if(!l)throw new Error(`Can't serialize object of unregistered class "${i.name}".`);const h=i.serialize?i.serialize(a,t):{};if(!i.serialize){for(const p in a)a.hasOwnProperty(p)&&(bc[l].omit.indexOf(p)>=0||(h[p]=rl(a[p],t)));a instanceof Error&&(h.message=a.message)}if(h.$name)throw new Error("$name property is reserved for worker serialization logic.");return l!=="Object"&&(h.$name=l),h}throw new Error("can't serialize object of type "+typeof a)}function Fl(a){if(a==null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||a instanceof Boolean||a instanceof Number||a instanceof String||a instanceof Date||a instanceof RegExp||Yh(a)||a instanceof ImageBitmap||ArrayBuffer.isView(a)||a instanceof ImageData)return a;if(Array.isArray(a))return a.map(Fl);if(typeof a=="object"){const t=a.$name||"Object";if(t==="Map"){const h=a.entries||[],p=new Map;for(let m=0;m<h.length;m+=2)p.set(Fl(h[m]),Fl(h[m+1]));return p}if(t==="Set"){const h=new Set;for(const p of Object.keys(a))p!=="$name"&&h.add(Fl(a[p]));return h}if(t==="BigInt")return BigInt(a.value);const{klass:i}=bc[t];if(!i)throw new Error(`Can't deserialize unregistered class "${t}".`);if(i.deserialize)return i.deserialize(a);const l=Object.create(i.prototype);for(const h of Object.keys(a))h!=="$name"&&(l[h]=Fl(a[h]));return l}throw new Error("can't deserialize object of type "+typeof a)}const sx=a=>a>=1536&&a<=1791,Kf=a=>a>=1872&&a<=1919,Jf=a=>a>=2208&&a<=2303,ep=a=>a>=11904&&a<=12031,ol=a=>a>=12032&&a<=12255,t0=a=>a>=12272&&a<=12287,$h=a=>a>=12288&&a<=12351,Gh=a=>a>=12352&&a<=12447,wc=a=>a>=12448&&a<=12543,n0=a=>a>=12544&&a<=12591,tp=a=>a>=12704&&a<=12735,Pa=a=>a>=12736&&a<=12783,ax=a=>a>=12784&&a<=12799,lx=a=>a>=12800&&a<=13055,cx=a=>a>=13056&&a<=13311,i0=a=>a>=13312&&a<=19903,np=a=>a>=19968&&a<=40959,Zh=a=>a>=40960&&a<=42127,r0=a=>a>=42128&&a<=42191,o0=a=>a>=44032&&a<=55215,ip=a=>a>=63744&&a<=64255,s0=a=>a>=64336&&a<=65023,ux=a=>a>=65040&&a<=65055,a0=a=>a>=65072&&a<=65103,hx=a=>a>=65104&&a<=65135,l0=a=>a>=65136&&a<=65279,c0=a=>a>=65280&&a<=65519;function u0(a){for(const t of a)if(h0(t.charCodeAt(0)))return!0;return!1}function HI(a){for(const t of a)if(!QI(t.charCodeAt(0)))return!1;return!0}function QI(a){return!(sx(a)||Kf(a)||Jf(a)||s0(a)||l0(a))}function YI(a){return!(a<11904||!(tp(a)||n0(a)||a0(a)||ip(a)||cx(a)||ep(a)||Pa(a)||$h(a)||i0(a)||np(a)||lx(a)||c0(a)||Gh(a)||t0(a)||ol(a)||ax(a)||wc(a)||ux(a)||r0(a)||Zh(a)))}function h0(a){return!(a!==746&&a!==747&&(a<4352||!(tp(a)||n0(a)||a0(a)&&!(a>=65097&&a<=65103)||ip(a)||cx(a)||ep(a)||Pa(a)||!(!$h(a)||a>=12296&&a<=12305||a>=12308&&a<=12319||a===12336)||i0(a)||np(a)||lx(a)||(t=>t>=12592&&t<=12687)(a)||(t=>t>=43360&&t<=43391)(a)||(t=>t>=55216&&t<=55295)(a)||(t=>t>=4352&&t<=4607)(a)||o0(a)||Gh(a)||t0(a)||(t=>t>=12688&&t<=12703)(a)||ol(a)||ax(a)||wc(a)&&a!==12540||!(!c0(a)||a===65288||a===65289||a===65293||a>=65306&&a<=65310||a===65339||a===65341||a===65343||a>=65371&&a<=65503||a===65507||a>=65512&&a<=65519)||!(!hx(a)||a>=65112&&a<=65118||a>=65123&&a<=65126)||(t=>t>=5120&&t<=5759)(a)||(t=>t>=6320&&t<=6399)(a)||ux(a)||(t=>t>=19904&&t<=19967)(a)||Zh(a)||r0(a))))}function dx(a){return a===12312||a===12313||a===12316||a===12540||a===12448}function Mc(a){return!(h0(a)||(function(t){return!!((i=>i>=128&&i<=255)(t)&&(t===167||t===169||t===174||t===177||t===188||t===189||t===190||t===215||t===247)||(i=>i>=8192&&i<=8303)(t)&&(t===8214||t===8224||t===8225||t===8240||t===8241||t===8251||t===8252||t===8258||t===8263||t===8264||t===8265||t===8273)||(i=>i>=8448&&i<=8527)(t)||(i=>i>=8528&&i<=8591)(t)||(i=>i>=8960&&i<=9215)(t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||t===9003||t>=9085&&t<=9114||t>=9150&&t<=9165||t===9167||t>=9169&&t<=9179||t>=9186&&t<=9215)||(i=>i>=9216&&i<=9279)(t)&&t!==9251||(i=>i>=9280&&i<=9311)(t)||(i=>i>=9312&&i<=9471)(t)||(i=>i>=9632&&i<=9727)(t)||(i=>i>=9728&&i<=9983)(t)&&!(t>=9754&&t<=9759)||(i=>i>=11008&&i<=11263)(t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||$h(t)||wc(t)||(i=>i>=57344&&i<=63743)(t)||a0(t)||hx(t)||c0(t)||t===8734||t===8756||t===8757||t>=9984&&t<=10087||t>=10102&&t<=10131||t===65532||t===65533)})(a))}function fx(a){return sx(a)||Kf(a)||Jf(a)||s0(a)||l0(a)}function d0(a){return a>=1424&&a<=2303||s0(a)||l0(a)}function rp(a,t){return!(!t&&d0(a)||a>=2304&&a<=3583||a>=3840&&a<=4255||(i=>i>=6016&&i<=6143)(a))}function $I(a){for(const t of a)if(d0(t.charCodeAt(0)))return!0;return!1}const ws={unavailable:"unavailable",deferred:"deferred",loading:"loading",parsing:"parsing",parsed:"parsed",loaded:"loaded",error:"error"};let Ra=null,es=ws.unavailable,zs=null;const px=function(a){a&&typeof a=="string"&&a.indexOf("NetworkError")>-1&&(es=ws.error),Ra&&Ra(a)};function f0(){p0.fire(new fa("pluginStateChange",{pluginStatus:es,pluginURL:zs}))}const p0=new _h,g0=function(){return es},gx=function(){if(es!==ws.deferred||!zs)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");es=ws.loading,f0(),zs&&eu({url:zs},a=>{a?px(a):(es=ws.loaded,f0())})},sl={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>es===ws.loaded||sl.applyArabicShaping!=null,isLoading:()=>es===ws.loading,setState(a){es=a.pluginStatus,zs=a.pluginURL},isParsing:()=>es===ws.parsing,isParsed:()=>es===ws.parsed,getPluginURL:()=>zs},mx=function(){sl.isLoading()||sl.isLoaded()||g0()!=="deferred"||gx()};class Ri{constructor(t,i){this.zoom=t,i?(this.now=i.now,this.fadeDuration=i.fadeDuration,this.transition=i.transition,this.pitch=i.pitch,this.brightness=i.brightness,this.worldview=i.worldview,this.activeFloors=i.activeFloors):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(t){return(function(i,l){for(const h of i)if(!rp(h.charCodeAt(0),l))return!1;return!0})(t,sl.isLoaded())}}class vu{constructor(t,i,l,h,p){this.property=t,this.value=i,this.expression=(function(m,x,b,T,A){if(Km(m))return new Xf(m,x);if(Hh(m)||Array.isArray(m)&&m.length>0){const L=Jm(m,x,b,T,A);if(L.result==="error")throw new Error(L.value.map(k=>`${k.key}: ${k.message}`).join(", "));return L.value}{let L=m;return typeof m=="string"&&x.type==="color"&&(L=Si.parse(m)),{kind:"constant",configDependencies:new Set,isIndoorDependent:!1,evaluate:()=>L}}})(i===void 0?t.specification.default:i,t.specification,l,h,p)}isIndoorDependent(){return this.expression.isIndoorDependent}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(t,i,l,h){return this.property.possiblyEvaluate(this,t,i,l,h)}}class op{constructor(t,i,l,h){this.property=t,this.value=new vu(t,void 0,i,l,h)}transitioned(t,i){return new xu(this.property,this.value,i,Object.assign({},t.transition,this.transition),t.now)}untransitioned(){return new xu(this.property,this.value,null,{},0)}}class sp{constructor(t,i,l,h){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues),this._scope=i,this._options=l,this._iconImageUseTheme=h,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(t){return Pt(this._values[t].value.value)}setValue(t,i){this._values.hasOwnProperty(t)||(this._values[t]=new op(this._values[t].property,this._scope,this._options,this._iconImageUseTheme)),this._values[t].value=new vu(this._values[t].property,i===null?void 0:Pt(i),this._scope,this._options,this._iconImageUseTheme),this._values[t].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[t].value.expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[t].value.isIndoorDependent())}setTransitionOrValue(t,i){i&&(this._options=i);const l=this._properties.properties;if(t)for(const h in t){const p=t[h];if(h.endsWith("-transition")){const m=h.slice(0,-11);l[m]&&this.setTransition(m,p)}else l.hasOwnProperty(h)&&this.setValue(h,p)}}getTransition(t){return Pt(this._values[t].transition)}setTransition(t,i){this._values.hasOwnProperty(t)||(this._values[t]=new op(this._values[t].property)),this._values[t].transition=Pt(i)||void 0}serialize(){const t={};for(const i of Object.keys(this._values)){const l=this.getValue(i);l!==void 0&&(t[i]=l);const h=this.getTransition(i);h!==void 0&&(t[`${i}-transition`]=h)}return t}transitioned(t,i){const l=new m0(this._properties);for(const h of Object.keys(this._values))l._values[h]=this._values[h].transitioned(t,i._values[h]);return l}untransitioned(){const t=new m0(this._properties);for(const i of Object.keys(this._values))t._values[i]=this._values[i].untransitioned();return t}isIndoorDependent(){return this._isIndoorDependent}}class xu{constructor(t,i,l,h,p){const m=h.delay||0,x=h.duration||0;p=p||0,this.property=t,this.value=i,this.begin=p+m,this.end=this.begin+x,t.specification.transition&&(h.delay||h.duration)&&(this.prior=l)}possiblyEvaluate(t,i,l){const h=t.now||0,p=this.value.possiblyEvaluate(t,i,l),m=this.prior;if(m){if(h>this.end)return this.prior=null,p;if(this.value.isDataDriven())return this.prior=null,p;if(h<this.begin)return m.possiblyEvaluate(t,i,l);{const x=(h-this.begin)/(this.end-this.begin);return this.property.interpolate(m.possiblyEvaluate(t,i,l),p,uo(x))}}return p}}class m0{constructor(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)}possiblyEvaluate(t,i,l){const h=new al(this._properties);for(const p of Object.keys(this._values))h._values[p]=this._values[p].possiblyEvaluate(t,i,l);return h}hasTransition(){for(const t of Object.keys(this._values))if(this._values[t].prior)return!0;return!1}}class y0{constructor(t,i,l,h){this._properties=t,this._values=Object.create(t.defaultPropertyValues),this._scope=i,this._options=l,this._iconImageUseTheme=h,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(t){return Pt(this._values[t].value)}setValue(t,i){this._values[t]=new vu(this._values[t].property,i===null?void 0:Pt(i),this._scope,this._options,this._iconImageUseTheme),this._values[t].expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[t].expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[t].isIndoorDependent())}serialize(){const t={};for(const i of Object.keys(this._values)){const l=this.getValue(i);l!==void 0&&(t[i]=l)}return t}possiblyEvaluate(t,i,l,h){const p=new al(this._properties);for(const m of Object.keys(this._values))p._values[m]=this._values[m].possiblyEvaluate(t,i,l,h);return p}isIndoorDependent(){return this._isIndoorDependent}}class Ic{constructor(t,i,l,h){this.property=t,this.value=i,this.parameters=l,this.iconImageUseTheme=h}isConstant(){return this.value.kind==="constant"}constantOr(t){return this.value.kind==="constant"?this.value.value:t}evaluate(t,i,l,h,p){return this.property.evaluate(this.value,this.parameters,t,i,l,h,this.iconImageUseTheme,p)}}class al{constructor(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)}get(t){return this._values[t]}}class en{constructor(t){this.specification=t}possiblyEvaluate(t,i){return t.expression.evaluate(i)}interpolate(t,i,l){const h=Cf[this.specification.type];return h?h(t,i,l):t}}class Zt{constructor(t,i){this.specification=t,this.overrides=i}possiblyEvaluate(t,i,l,h,p){return t.expression.kind==="constant"||t.expression.kind==="camera"?new Ic(this,{kind:"constant",value:t.expression.evaluate(i,null,{},l,h,void 0,p)},i):new Ic(this,t.expression,i,p)}interpolate(t,i,l){if(t.value.kind!=="constant"||i.value.kind!=="constant")return t;if(t.value.value===void 0||i.value.value===void 0)return new Ic(this,{kind:"constant",value:void 0},t.parameters);const h=Cf[this.specification.type];return h?new Ic(this,{kind:"constant",value:h(t.value.value,i.value.value,l)},t.parameters):t}evaluate(t,i,l,h,p,m,x,b){return t.kind==="constant"?t.value:t.evaluate(i,l,h,p,m,b,x)}}class bu{constructor(t){this.specification=t}possiblyEvaluate(t,i,l,h){return!!t.expression.evaluate(i,null,{},l,h)}interpolate(){return!1}}class Ir{constructor(t){this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const i=new Ri(0,{});for(const l in t){const h=t[l],p=h.specification;p&&p.overridable&&this.overridableProperties.push(l);const m=this.defaultPropertyValues[l]=new vu(h,void 0),x=this.defaultTransitionablePropertyValues[l]=new op(h);this.defaultTransitioningPropertyValues[l]=x.untransitioned(),this.defaultPossiblyEvaluatedValues[l]=m.possiblyEvaluate(i)}}}vn(Zt,"DataDrivenProperty"),vn(en,"DataConstantProperty"),vn(bu,"ColorRampProperty");var at=JSON.parse('{"$version":8,"$root":{"version":{"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":{"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"snow":{"type":"snow"},"rain":{"type":"rain"},"camera":{"type":"camera"},"color-theme":{"type":"colorTheme"},"indoor":{"type":"indoor"},"imports":{"type":"array","value":"import"},"iconsets":{"type":"iconsets"},"schema":{"type":"schema"},"sources":{"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"type":"array","value":"layer"},"models":{"type":"models"},"featuresets":{"type":"featuresets"}},"featuresets":{"*":{"type":"featureset"}},"featureset":{"metadata":{"type":"*"},"selectors":{"type":"array","value":"selector"}},"selector":{"layer":{"type":"string"},"properties":{"type":"selectorProperty"},"featureNamespace":{"type":"string"},"_uniqueFeatureID":{"type":"boolean"}},"selectorProperty":{"*":{"type":"*"}},"model":{"type":"string"},"import":{"id":{"type":"string"},"url":{"type":"string"},"config":{"type":"config"},"data":{"type":"$root"},"color-theme":{"type":"colorTheme","optional":true}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","expression":{}},"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"},"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","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false},"shadow-quality":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"parameters":["zoom"]}},"shadow-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"shadow-draw-before-layer":{"type":"string"}},"properties_light_ambient":{"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","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},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"iconsets":{"*":{"type":"iconset"}},"iconset":["iconset_sprite","iconset_source"],"iconset_sprite":{"type":{"type":"enum","values":{"sprite":1}},"url":{"type":"string"}},"iconset_source":{"type":{"type":"enum","values":{"source":1}},"source":{"type":"string"}},"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":{"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]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"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":{"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]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"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":{"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]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"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":{"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]},"extra_bounds":{"type":"array","value":{"type":"array","value":"number","length":4}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"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"},"dynamic":{"type":"boolean","default":false}},"source_video":{"type":{"type":"enum","values":{"video":1}},"urls":{"type":"array","value":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"type":"enum","values":{"image":1}},"url":{"type":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"modelNodeOverride":{"orientation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360}},"modelNodeOverrides":{"*":{"type":"modelNodeOverride"}},"modelMaterialOverride":{"model-color":{"type":"color"},"model-color-mix-intensity":{"type":"number"},"model-opacity":{"type":"number"},"model-emissive-strength":{"type":"number"}},"modelMaterialOverrides":{"*":{"type":"modelMaterialOverride"}},"modelSourceModel":{"uri":{"type":"string"},"position":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[-180,-90],"maximum":[180,90]},"orientation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360},"nodeOverrides":{"type":"modelNodeOverrides"},"materialOverrides":{"type":"modelMaterialOverrides"},"nodeOverrideNames":{"type":"array","value":"string"},"materialOverrideNames":{"type":"array","value":"string"},"featureProperties":{"type":"*"}},"modelSourceModels":{"*":{"type":"modelSourceModel"}},"source_model":{"type":{"type":"enum","values":{"model":1,"batched-model":1}},"url":{"type":"string"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"},"models":{"type":"modelSourceModels"}},"layer":{"id":{"type":"string"},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"building":{},"raster":{},"raster-particle":{},"hillshade":{},"model":{},"background":{},"sky":{},"slot":{},"clip":{}}},"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"},"appearances":{"type":"array","value":"appearance","supported-layer-types":["symbol"]}},"appearance":{"condition":{"type":"boolean","expression":{"interpolated":true,"parameters":["zoom","pitch","feature","feature-state","measure-light","distance-from-center"]},"property-type":"data-driven"},"name":{"type":"string"},"properties":{"type":"*"}},"layout":["layout_clip","layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_building","layout_symbol","layout_raster","layout_raster-particle","layout_hillshade","layout_background","layout_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"model-allow-density-reduction":{"type":"boolean","default":true}},"layout_clip":{"clip-layer-types":{"type":"array","value":"enum","values":{"model":1,"symbol":1},"default":[],"expression":{}},"clip-layer-scope":{"type":"array","value":"string","default":[],"expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"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":{}},"fill-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-base":1,"hd-road-markup":1},"default":"none","expression":{}},"fill-construct-bridge-guard-rail":{"type":"boolean","default":"true","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"circle-elevation-reference":{"type":"enum","values":{"none":1,"hd-road-markup":1},"default":"none","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"fill-extrusion-edge-radius":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"source-max-zoom":{"type":"number","minimum":0,"maximum":24}},"layout_building":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"building-facade":{"type":"boolean","default":false,"expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-facade-floors":{"type":"number","minimum":1,"maximum":200,"default":3,"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-facade-unit-width":{"type":"number","minimum":1,"maximum":20,"default":3.1,"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-facade-window":{"type":"array","length":2,"value":"number","minimum":0.1,"maximum":1,"default":[0.9,0.9],"property-type":"data-driven","expression":{"parameters":["feature"]}},"building-roof-shape":{"type":"enum","values":{"flat":1,"hipped":1,"gabled":1,"parapet":1,"mansard":1,"skillion":1,"pyramidal":1},"default":"flat","expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"},"building-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{},"property-type":"data-driven"},"building-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"building-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"building-flip-roof-orientation":{"property-type":"data-driven","type":"boolean","default":false,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}}},"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,"none":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]}},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-z-offset":{"type":"number","default":0,"expression":{"parameters":["zoom","feature","line-progress"]},"property-type":"data-driven"},"line-elevation-reference":{"type":"enum","values":{"none":1,"sea":1,"ground":1,"hd-road-markup":1},"default":"none","expression":{}},"line-cross-slope":{"type":"number","expression":{}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}},"line-width-unit":{"type":"enum","values":{"pixels":1,"meters":1},"default":"pixels","expression":{"parameters":["zoom"]}},"line-elevation-ground-scale":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","line-progress"]},"transition":true,"property-type":"data-driven"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]}},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]}},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"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"]}},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1,"hd-road-markup":1},"default":"ground","expression":{"parameters":["zoom"]}},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"icon-size":{"type":"number","default":1,"minimum":0,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":[0.1,0.1],"maximum":[10,10],"expression":{}},"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,"appearance":true,"use-theme":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"appearance":true,"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"]}},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"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,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size-scale-range":{"type":"array","value":"number","length":2,"default":[0.8,2],"minimum":[0.1,0.1],"maximum":[10,10],"expression":{}},"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"]}},"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"]}},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]}},"text-rotate":{"type":"number","default":0,"period":360,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"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],"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_raster-particle":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{}}},"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_hillshade":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_raster-particle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_clip":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_model":{"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_building":{"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":"*"}},"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","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"high-color":{"type":"color","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"space-color":{"type":"color","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"horizon-blend":{"type":"number","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","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","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"snow":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.85],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.3],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.4,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,50],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"flake-size":{"type":"number","default":0.71,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"rain":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.5],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#03113d",0.3,"#a8adbc"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"opacity":{"type":"number","default":["interpolate",["linear"],["measure-light","brightness"],0,0.88,1,0.7],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vignette-color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#001736",0.3,"#464646"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"use-theme":true,"transition":true},"center-thinning":{"type":"number","default":0.57,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"direction":{"type":"array","default":[0,80],"minimum":0,"maximum":360,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"droplet-size":{"type":"array","default":[2.6,18.2],"minimum":0,"maximum":50,"length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"distortion-strength":{"type":"number","default":0.7,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective"}},"colorTheme":{"data":{"type":"string","expression":{}}},"indoor_source":{"sourceId":{"type":"string"},"sourceLayers":{"type":"array","value":"string"}},"indoor":{"*":{"type":"indoor_source"}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"use-theme":true,"transition":true},"intensity":{"type":"number","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"},"center":{"type":"array","length":2,"value":"number","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string"},"exaggeration":{"type":"number","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_building","paint_symbol","paint_raster","paint_raster-particle","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"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","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","use-theme":true,"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"]}},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-bridge-guard-rail-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"},"fill-tunnel-structure-color":{"type":"color","default":"rgba(241, 236, 225, 255)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-color":{"type":"color","default":"#000000","use-theme":true,"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"]}},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"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-height-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"flat"},"fill-extrusion-base-alignment":{"type":"enum","values":{"terrain":1,"flat":1},"default":"terrain"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"type":"color","default":"#ffffff","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"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,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"fill-extrusion-front-cutoff":{"type":"array","value":"number","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"fill-extrusion-line-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-cast-shadows":{"type":"boolean","default":true}},"paint_building":{"building-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"parameters":[]},"transition":true},"building-ambient-occlusion-ground-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"building-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-vertical-scale":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"building-cast-shadows":{"type":"boolean","default":true},"building-color":{"type":"color","default":"rgba(193, 154, 127, 1)","use-theme":true,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"},"building-emissive-strength":{"type":"number","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"},"building-facade-emissive-chance":{"type":"number","default":0.35,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["measure-light","zoom"]}},"building-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"building-front-cutoff":{"type":"array","value":"number","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]},"building-flood-light-color":{"type":"color","default":"#ffffff","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"building-flood-light-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"building-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"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","use-theme":true,"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"]}},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light","line-progress"]},"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-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-gradient":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["line-progress"]}},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1]},"line-trim-fade-range":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-trim-color":{"type":"color","default":"transparent","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"line-border-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-occlusion-opacity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"line-blend-mode":{"type":"enum","values":{"default":1,"multiply":1,"additive":1},"default":"default","expression":{"parameters":["zoom"]}}},"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","use-theme":true,"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"]}},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"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","use-theme":true,"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"]}}},"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"]}},"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"],"use-theme":true,"expression":{"interpolated":true,"parameters":["heatmap-density"]}},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"icon-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"appearance":true,"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"appearance":true,"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"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"]},"appearance":true,"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"]},"appearance":true,"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-image-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"text-occlusion-opacity":{"type":"number","minimum":0,"maximum":1,"default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"appearance":true,"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"]},"appearance":true,"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"]},"appearance":true,"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]}},"icon-color-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{}},"icon-color-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{}},"icon-color-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{}},"symbol-z-offset":{"type":"number","default":0,"minimum":0,"transition":true,"appearance":true,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-value"]}},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]}},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"raster-array-band":{"type":"string"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1},"default":"sea","expression":{}}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string"},"raster-particle-count":{"type":"number","default":512,"minimum":1},"raster-particle-color":{"type":"color","use-theme":true,"expression":{"interpolated":true,"parameters":["raster-particle-speed"]}},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1},"raster-particle-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]}},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"hillshade-shadow-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-accent-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_background":{"background-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":[]}},"background-color":{"type":"color","default":"#000000","use-theme":true,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]}},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]}},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]}},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]}},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"use-theme":true,"expression":{"interpolated":true,"parameters":["sky-radial-progress"]}},"sky-atmosphere-halo-color":{"type":"color","default":"white","use-theme":true},"sky-atmosphere-color":{"type":"color","default":"white","use-theme":true},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"property-type":"data-driven"},"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"]},"use-theme":true,"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"},"model-cast-shadows":{"type":"boolean","default":true},"model-receive-shadows":{"type":"boolean","default":true},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"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":{}},"model-front-cutoff":{"type":"array","value":"number","expression":{"interpolated":true,"parameters":["zoom"]},"length":3,"default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1]},"model-elevation-reference":{"type":"enum","values":{"sea":1,"ground":1,"hd-road-markup":1},"default":"ground","expression":{}},"model-ignore-line-cutout":{"type":"boolean","default":false,"expression":{}}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"promoteId":{"*":{"type":"*"}}}');function yx(a){return a instanceof Number||a instanceof String||a instanceof Boolean?a.valueOf():a}function ap(a){if(Array.isArray(a))return a.map(ap);if(a instanceof Object&&!(a instanceof Number||a instanceof String||a instanceof Boolean)){const t={};for(const i in a)t[i]=ap(a[i]);return t}return yx(a)}function _0(a){if(a===!0||a===!1)return!0;if(!Array.isArray(a)||a.length===0)return!1;switch(a[0]){case"has":return a.length>=2&&a[1]!=="$id"&&a[1]!=="$type";case"in":return a.length>=3&&(typeof a[1]!="string"||Array.isArray(a[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return a.length!==3||Array.isArray(a[1])||Array.isArray(a[2]);case"any":case"all":for(const t of a.slice(1))if(!_0(t)&&typeof t!="boolean")return!1;return!0;default:return!0}}function lp(a,t="",i=null,l="fill"){if(a==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};_0(a)||(a=cp(a));const h=a;let p=!0;try{p=(function(A){if(!wu(A))return A;let L=ap(A);return vx(L),L=_x(L),L})(h)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
|
|
87
87
|
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
|
|
88
88
|
and paste the contents of this message in the report.
|
|
89
89
|
Thank you!
|