@inploi/plugin-job-search 8.2.0 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/index.js +2 -2
- package/cdn/style.css +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +142 -140
- package/dist/job-search.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -2
package/cdn/index.js
CHANGED
|
@@ -57,8 +57,8 @@ ${b.concat(b).join(`
|
|
|
57
57
|
`)},dT=function(){var p=parseInt(document.body.getAttribute(Gu)||"0",10);return isFinite(p)?p:0},bR=function(){Bi(function(){return document.body.setAttribute(Gu,(dT()+1).toString()),function(){var p=dT()-1;p<=0?document.body.removeAttribute(Gu):document.body.setAttribute(Gu,p.toString())}},[])},wR=function(p){var v=p.noRelative,b=p.noImportant,C=p.gapMode,D=C===void 0?"margin":C;bR();var F=qn(function(){return yR(D)},[D]);return Zt(vR,{styles:xR(F,!v,D,b?"":"!important")})},av=!1;if(typeof window<"u")try{var Wm=Object.defineProperty({},"passive",{get:function(){return av=!0,!0}});window.addEventListener("test",Wm,Wm),window.removeEventListener("test",Wm,Wm)}catch{av=!1}var Hu=av?{passive:!1}:!1,TR=function(p){return p.tagName==="TEXTAREA"},pT=function(p,v){var b=window.getComputedStyle(p);return b[v]!=="hidden"&&!(b.overflowY===b.overflowX&&!TR(p)&&b[v]==="visible")},SR=function(p){return pT(p,"overflowY")},ER=function(p){return pT(p,"overflowX")},fT=function(p,v){var b=v;do{typeof ShadowRoot<"u"&&b instanceof ShadowRoot&&(b=b.host);var C=mT(p,b);if(C){var D=_T(p,b),F=D[1],V=D[2];if(F>V)return!0}b=b.parentNode}while(b&&b!==document.body);return!1},AR=function(p){var v=p.scrollTop,b=p.scrollHeight,C=p.clientHeight;return[v,b,C]},IR=function(p){var v=p.scrollLeft,b=p.scrollWidth,C=p.clientWidth;return[v,b,C]},mT=function(p,v){return p==="v"?SR(v):ER(v)},_T=function(p,v){return p==="v"?AR(v):IR(v)},CR=function(p,v){return p==="h"&&v==="rtl"?-1:1},PR=function(p,v,b,C,D){var F=CR(p,window.getComputedStyle(v).direction),V=F*C,s=b.target,ee=v.contains(s),re=!1,ge=V>0,oe=0,Ee=0;do{var ye=_T(p,s),Ue=ye[0],Te=ye[1],Pe=ye[2],qe=Te-Pe-F*Ue;(Ue||qe)&&mT(p,s)&&(oe+=qe,Ee+=Ue),s=s.parentNode}while(!ee&&s!==document.body||ee&&(v.contains(s)||v===s));return(ge&&(D&&oe===0||!D&&V>oe)||!ge&&(D&&Ee===0||!D&&-V>Ee))&&(re=!0),re},Zm=function(p){return"changedTouches"in p?[p.changedTouches[0].clientX,p.changedTouches[0].clientY]:[0,0]},gT=function(p){return[p.deltaX,p.deltaY]},yT=function(p){return p&&"current"in p?p.current:p},MR=function(p,v){return p[0]===v[0]&&p[1]===v[1]},RR=function(p){return`
|
|
58
58
|
.block-interactivity-`.concat(p,` {pointer-events: none;}
|
|
59
59
|
.allow-interactivity-`).concat(p,` {pointer-events: all;}
|
|
60
|
-
`)},DR=0,qu=[];function LR(p){var v=mi([]),b=mi([0,0]),C=mi(),D=Ri(DR++)[0],F=Ri(function(){return hT()})[0],V=mi(p);Bi(function(){V.current=p},[p]),Bi(function(){if(p.inert){document.body.classList.add("block-interactivity-".concat(D));var Te=eR([p.lockRef.current],(p.shards||[]).map(yT),!0).filter(Boolean);return Te.forEach(function(Pe){return Pe.classList.add("allow-interactivity-".concat(D))}),function(){document.body.classList.remove("block-interactivity-".concat(D)),Te.forEach(function(Pe){return Pe.classList.remove("allow-interactivity-".concat(D))})}}},[p.inert,p.lockRef.current,p.shards]);var s=xn(function(Te,Pe){if("touches"in Te&&Te.touches.length===2)return!V.current.allowPinchZoom;var qe=Zm(Te),Re=b.current,at="deltaX"in Te?Te.deltaX:Re[0]-qe[0],Qe="deltaY"in Te?Te.deltaY:Re[1]-qe[1],yt,It=Te.target,Rt=Math.abs(at)>Math.abs(Qe)?"h":"v";if("touches"in Te&&Rt==="h"&&It.type==="range")return!1;var zt=fT(Rt,It);if(!zt)return!0;if(zt?yt=Rt:(yt=Rt==="v"?"h":"v",zt=fT(Rt,It)),!zt)return!1;if(!C.current&&"changedTouches"in Te&&(at||Qe)&&(C.current=yt),!yt)return!0;var Nt=C.current||yt;return PR(Nt,Pe,Te,Nt==="h"?at:Qe,!0)},[]),ee=xn(function(Te){var Pe=Te;if(!(!qu.length||qu[qu.length-1]!==F)){var qe="deltaY"in Pe?gT(Pe):Zm(Pe),Re=v.current.filter(function(yt){return yt.name===Pe.type&&yt.target===Pe.target&&MR(yt.delta,qe)})[0];if(Re&&Re.should){Pe.cancelable&&Pe.preventDefault();return}if(!Re){var at=(V.current.shards||[]).map(yT).filter(Boolean).filter(function(yt){return yt.contains(Pe.target)}),Qe=at.length>0?s(Pe,at[0]):!V.current.noIsolation;Qe&&Pe.cancelable&&Pe.preventDefault()}}},[]),re=xn(function(Te,Pe,qe,Re){var at={name:Te,delta:Pe,target:qe,should:Re};v.current.push(at),setTimeout(function(){v.current=v.current.filter(function(Qe){return Qe!==at})},1)},[]),ge=xn(function(Te){b.current=Zm(Te),C.current=void 0},[]),oe=xn(function(Te){re(Te.type,gT(Te),Te.target,s(Te,p.lockRef.current))},[]),Ee=xn(function(Te){re(Te.type,Zm(Te),Te.target,s(Te,p.lockRef.current))},[]);Bi(function(){return qu.push(F),p.setCallbacks({onScrollCapture:oe,onWheelCapture:oe,onTouchMoveCapture:Ee}),document.addEventListener("wheel",ee,Hu),document.addEventListener("touchmove",ee,Hu),document.addEventListener("touchstart",ge,Hu),function(){qu=qu.filter(function(Te){return Te!==F}),document.removeEventListener("wheel",ee,Hu),document.removeEventListener("touchmove",ee,Hu),document.removeEventListener("touchstart",ge,Hu)}},[]);var ye=p.removeScrollBar,Ue=p.inert;return Zt(Hi,null,Ue?Zt(F,{styles:RR(D)}):null,ye?Zt(wR,{gapMode:"margin"}):null)}const zR=cR(cT,LR);var vT=Wn(function(p,v){return Zt(qm,ea({},p,{ref:v,sideCar:zR}))});vT.classNames=qm.classNames;const xT=vT;var kR=function(p){if(typeof document>"u")return null;var v=Array.isArray(p)?p[0]:p;return v.ownerDocument.body},Wu=new WeakMap,Xm=new WeakMap,Ym={},lv=0,bT=function(p){return p&&(p.host||bT(p.parentNode))},OR=function(p,v){return v.map(function(b){if(p.contains(b))return b;var C=bT(b);return C&&p.contains(C)?C:(console.error("aria-hidden",b,"in not contained inside",p,". Doing nothing"),null)}).filter(function(b){return!!b})},FR=function(p,v,b,C){var D=OR(v,Array.isArray(p)?p:[p]);Ym[b]||(Ym[b]=new WeakMap);var F=Ym[b],V=[],s=new Set,ee=new Set(D),re=function(oe){!oe||s.has(oe)||(s.add(oe),re(oe.parentNode))};D.forEach(re);var ge=function(oe){!oe||ee.has(oe)||Array.prototype.forEach.call(oe.children,function(Ee){if(s.has(Ee))ge(Ee);else try{var ye=Ee.getAttribute(C),Ue=ye!==null&&ye!=="false",Te=(Wu.get(Ee)||0)+1,Pe=(F.get(Ee)||0)+1;Wu.set(Ee,Te),F.set(Ee,Pe),V.push(Ee),Te===1&&Ue&&Xm.set(Ee,!0),Pe===1&&Ee.setAttribute(b,"true"),Ue||Ee.setAttribute(C,"true")}catch(qe){console.error("aria-hidden: cannot operate on ",Ee,qe)}})};return ge(v),s.clear(),lv++,function(){V.forEach(function(oe){var Ee=Wu.get(oe)-1,ye=F.get(oe)-1;Wu.set(oe,Ee),F.set(oe,ye),Ee||(Xm.has(oe)||oe.removeAttribute(C),Xm.delete(oe)),ye||oe.removeAttribute(b)}),lv--,lv||(Wu=new WeakMap,Wu=new WeakMap,Xm=new WeakMap,Ym={})}},wT=function(p,v,b){b===void 0&&(b="data-aria-hidden");var C=Array.from(Array.isArray(p)?p:[p]),D=v||kR(p);return D?(C.push.apply(C,Array.from(D.querySelectorAll("[aria-live], script"))),FR(C,D,b,"aria-hidden")):function(){return null}};const TT="Dialog",[ST,NN]=J0(TT),[BR,Al]=ST(TT),NR=p=>{const{__scopeDialog:v,children:b,open:C,defaultOpen:D,onOpenChange:F,modal:V=!0}=p,s=mi(null),ee=mi(null),[re=!1,ge]=qw({prop:C,defaultProp:D,onChange:F});return Zt(BR,{scope:v,triggerRef:s,contentRef:ee,contentId:Vm(),titleId:Vm(),descriptionId:Vm(),open:re,onOpenChange:ge,onOpenToggle:xn(()=>ge(oe=>!oe),[ge]),modal:V},b)},jR="DialogTrigger",VR=Wn((p,v)=>{const{__scopeDialog:b,...C}=p,D=Al(jR,b),F=Qs(v,D.triggerRef);return Zt(Sl.button,Zn({type:"button","aria-haspopup":"dialog","aria-expanded":D.open,"aria-controls":D.contentId,"data-state":uv(D.open)},C,{ref:F,onClick:As(p.onClick,D.onOpenToggle)}))}),ET="DialogPortal",[UR,AT]=ST(ET,{forceMount:void 0}),$R=p=>{const{__scopeDialog:v,forceMount:b,children:C,container:D}=p,F=Al(ET,v);return Zt(UR,{scope:v,forceMount:b},Ks.map(C,V=>Zt($u,{present:b||F.open},Zt(nT,{asChild:!0,container:D},V))))},cv="DialogOverlay",GR=Wn((p,v)=>{const b=AT(cv,p.__scopeDialog),{forceMount:C=b.forceMount,...D}=p,F=Al(cv,p.__scopeDialog);return F.modal?Zt($u,{present:C||F.open},Zt(HR,Zn({},D,{ref:v}))):null}),HR=Wn((p,v)=>{const{__scopeDialog:b,...C}=p,D=Al(cv,b);return Zt(xT,{as:Um,allowPinchZoom:!0,shards:[D.contentRef]},Zt(Sl.div,Zn({"data-state":uv(D.open)},C,{ref:v,style:{pointerEvents:"auto",...C.style}})))}),Wd="DialogContent",qR=Wn((p,v)=>{const b=AT(Wd,p.__scopeDialog),{forceMount:C=b.forceMount,...D}=p,F=Al(Wd,p.__scopeDialog);return Zt($u,{present:C||F.open},F.modal?Zt(WR,Zn({},D,{ref:v})):Zt(ZR,Zn({},D,{ref:v})))}),WR=Wn((p,v)=>{const b=Al(Wd,p.__scopeDialog),C=mi(null),D=Qs(v,b.contentRef,C);return Bi(()=>{const F=C.current;if(F)return wT(F)},[]),Zt(IT,Zn({},p,{ref:D,trapFocus:b.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:As(p.onCloseAutoFocus,F=>{var V;F.preventDefault(),(V=b.triggerRef.current)===null||V===void 0||V.focus()}),onPointerDownOutside:As(p.onPointerDownOutside,F=>{const V=F.detail.originalEvent,s=V.button===0&&V.ctrlKey===!0;(V.button===2||s)&&F.preventDefault()}),onFocusOutside:As(p.onFocusOutside,F=>F.preventDefault())}))}),ZR=Wn((p,v)=>{const b=Al(Wd,p.__scopeDialog),C=mi(!1),D=mi(!1);return Zt(IT,Zn({},p,{ref:v,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:F=>{var V;if((V=p.onCloseAutoFocus)===null||V===void 0||V.call(p,F),!F.defaultPrevented){var s;C.current||(s=b.triggerRef.current)===null||s===void 0||s.focus(),F.preventDefault()}C.current=!1,D.current=!1},onInteractOutside:F=>{var V,s;(V=p.onInteractOutside)===null||V===void 0||V.call(p,F),F.defaultPrevented||(C.current=!0,F.detail.originalEvent.type==="pointerdown"&&(D.current=!0));const ee=F.target;((s=b.triggerRef.current)===null||s===void 0?void 0:s.contains(ee))&&F.preventDefault(),F.detail.originalEvent.type==="focusin"&&D.current&&F.preventDefault()}}))}),IT=Wn((p,v)=>{const{__scopeDialog:b,trapFocus:C,onOpenAutoFocus:D,onCloseAutoFocus:F,...V}=p,s=Al(Wd,b),ee=mi(null),re=Qs(v,ee);return rT(),Zt(Hi,null,Zt(Jw,{asChild:!0,loop:!0,trapped:C,onMountAutoFocus:D,onUnmountAutoFocus:F},Zt(Zw,Zn({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":uv(s.open)},V,{ref:re,onDismiss:()=>s.onOpenChange(!1)}))),!1)});function uv(p){return p?"open":"closed"}const XR=NR,YR=VR,KR=$R,JR=GR,QR=qR,eD=["top","right","bottom","left"],Il=Math.min,$o=Math.max,Km=Math.round,Jm=Math.floor,ta=p=>({x:p,y:p}),tD={left:"right",right:"left",bottom:"top",top:"bottom"};function hv(p,v,b){return $o(p,Il(v,b))}function Xa(p,v){return typeof p=="function"?p(v):p}function Ya(p){return p.split("-")[0]}function Zu(p){return p.split("-")[1]}function dv(p){return p==="x"?"y":"x"}function pv(p){return p==="y"?"height":"width"}function ia(p){const v=p[0];return v==="t"||v==="b"?"y":"x"}function fv(p){return dv(ia(p))}function iD(p,v,b){b===void 0&&(b=!1);const C=Zu(p),D=fv(p),F=pv(D);let V=D==="x"?C===(b?"end":"start")?"right":"left":C==="start"?"bottom":"top";return v.reference[F]>v.floating[F]&&(V=Qm(V)),[V,Qm(V)]}function nD(p){const v=Qm(p);return[mv(p),v,mv(v)]}function mv(p){return p.includes("start")?p.replace("start","end"):p.replace("end","start")}const CT=["left","right"],PT=["right","left"],rD=["top","bottom"],oD=["bottom","top"];function sD(p,v,b){switch(p){case"top":case"bottom":return b?v?PT:CT:v?CT:PT;case"left":case"right":return v?rD:oD;default:return[]}}function aD(p,v,b,C){const D=Zu(p);let F=sD(Ya(p),b==="start",C);return D&&(F=F.map(V=>V+"-"+D),v&&(F=F.concat(F.map(mv)))),F}function Qm(p){const v=Ya(p);return tD[v]+p.slice(v.length)}function lD(p){return{top:0,right:0,bottom:0,left:0,...p}}function MT(p){return typeof p!="number"?lD(p):{top:p,right:p,bottom:p,left:p}}function e_(p){const{x:v,y:b,width:C,height:D}=p;return{width:C,height:D,top:b,left:v,right:v+C,bottom:b+D,x:v,y:b}}function RT(p,v,b){let{reference:C,floating:D}=p;const F=ia(v),V=fv(v),s=pv(V),ee=Ya(v),re=F==="y",ge=C.x+C.width/2-D.width/2,oe=C.y+C.height/2-D.height/2,Ee=C[s]/2-D[s]/2;let ye;switch(ee){case"top":ye={x:ge,y:C.y-D.height};break;case"bottom":ye={x:ge,y:C.y+C.height};break;case"right":ye={x:C.x+C.width,y:oe};break;case"left":ye={x:C.x-D.width,y:oe};break;default:ye={x:C.x,y:C.y}}switch(Zu(v)){case"start":ye[V]-=Ee*(b&&re?-1:1);break;case"end":ye[V]+=Ee*(b&&re?-1:1);break}return ye}async function cD(p,v){var b;v===void 0&&(v={});const{x:C,y:D,platform:F,rects:V,elements:s,strategy:ee}=p,{boundary:re="clippingAncestors",rootBoundary:ge="viewport",elementContext:oe="floating",altBoundary:Ee=!1,padding:ye=0}=Xa(v,p),Ue=MT(ye),Pe=s[Ee?oe==="floating"?"reference":"floating":oe],qe=e_(await F.getClippingRect({element:(b=await(F.isElement==null?void 0:F.isElement(Pe)))==null||b?Pe:Pe.contextElement||await(F.getDocumentElement==null?void 0:F.getDocumentElement(s.floating)),boundary:re,rootBoundary:ge,strategy:ee})),Re=oe==="floating"?{x:C,y:D,width:V.floating.width,height:V.floating.height}:V.reference,at=await(F.getOffsetParent==null?void 0:F.getOffsetParent(s.floating)),Qe=await(F.isElement==null?void 0:F.isElement(at))?await(F.getScale==null?void 0:F.getScale(at))||{x:1,y:1}:{x:1,y:1},yt=e_(F.convertOffsetParentRelativeRectToViewportRelativeRect?await F.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:Re,offsetParent:at,strategy:ee}):Re);return{top:(qe.top-yt.top+Ue.top)/Qe.y,bottom:(yt.bottom-qe.bottom+Ue.bottom)/Qe.y,left:(qe.left-yt.left+Ue.left)/Qe.x,right:(yt.right-qe.right+Ue.right)/Qe.x}}const uD=50,hD=async(p,v,b)=>{const{placement:C="bottom",strategy:D="absolute",middleware:F=[],platform:V}=b,s=V.detectOverflow?V:{...V,detectOverflow:cD},ee=await(V.isRTL==null?void 0:V.isRTL(v));let re=await V.getElementRects({reference:p,floating:v,strategy:D}),{x:ge,y:oe}=RT(re,C,ee),Ee=C,ye=0;const Ue={};for(let Te=0;Te<F.length;Te++){const Pe=F[Te];if(!Pe)continue;const{name:qe,fn:Re}=Pe,{x:at,y:Qe,data:yt,reset:It}=await Re({x:ge,y:oe,initialPlacement:C,placement:Ee,strategy:D,middlewareData:Ue,rects:re,platform:s,elements:{reference:p,floating:v}});ge=at??ge,oe=Qe??oe,Ue[qe]={...Ue[qe],...yt},It&&ye<uD&&(ye++,typeof It=="object"&&(It.placement&&(Ee=It.placement),It.rects&&(re=It.rects===!0?await V.getElementRects({reference:p,floating:v,strategy:D}):It.rects),{x:ge,y:oe}=RT(re,Ee,ee)),Te=-1)}return{x:ge,y:oe,placement:Ee,strategy:D,middlewareData:Ue}},dD=p=>({name:"arrow",options:p,async fn(v){const{x:b,y:C,placement:D,rects:F,platform:V,elements:s,middlewareData:ee}=v,{element:re,padding:ge=0}=Xa(p,v)||{};if(re==null)return{};const oe=MT(ge),Ee={x:b,y:C},ye=fv(D),Ue=pv(ye),Te=await V.getDimensions(re),Pe=ye==="y",qe=Pe?"top":"left",Re=Pe?"bottom":"right",at=Pe?"clientHeight":"clientWidth",Qe=F.reference[Ue]+F.reference[ye]-Ee[ye]-F.floating[Ue],yt=Ee[ye]-F.reference[ye],It=await(V.getOffsetParent==null?void 0:V.getOffsetParent(re));let Rt=It?It[at]:0;(!Rt||!await(V.isElement==null?void 0:V.isElement(It)))&&(Rt=s.floating[at]||F.floating[Ue]);const zt=Qe/2-yt/2,Nt=Rt/2-Te[Ue]/2-1,Qt=Il(oe[qe],Nt),ai=Il(oe[Re],Nt),Ii=Qt,Ut=Rt-Te[Ue]-ai,li=Rt/2-Te[Ue]/2+zt,Xt=hv(Ii,li,Ut),Dt=!ee.arrow&&Zu(D)!=null&&li!==Xt&&F.reference[Ue]/2-(li<Ii?Qt:ai)-Te[Ue]/2<0,Tt=Dt?li<Ii?li-Ii:li-Ut:0;return{[ye]:Ee[ye]+Tt,data:{[ye]:Xt,centerOffset:li-Xt-Tt,...Dt&&{alignmentOffset:Tt}},reset:Dt}}}),pD=function(p){return p===void 0&&(p={}),{name:"flip",options:p,async fn(v){var b,C;const{placement:D,middlewareData:F,rects:V,initialPlacement:s,platform:ee,elements:re}=v,{mainAxis:ge=!0,crossAxis:oe=!0,fallbackPlacements:Ee,fallbackStrategy:ye="bestFit",fallbackAxisSideDirection:Ue="none",flipAlignment:Te=!0,...Pe}=Xa(p,v);if((b=F.arrow)!=null&&b.alignmentOffset)return{};const qe=Ya(D),Re=ia(s),at=Ya(s)===s,Qe=await(ee.isRTL==null?void 0:ee.isRTL(re.floating)),yt=Ee||(at||!Te?[Qm(s)]:nD(s)),It=Ue!=="none";!Ee&&It&&yt.push(...aD(s,Te,Ue,Qe));const Rt=[s,...yt],zt=await ee.detectOverflow(v,Pe),Nt=[];let Qt=((C=F.flip)==null?void 0:C.overflows)||[];if(ge&&Nt.push(zt[qe]),oe){const li=iD(D,V,Qe);Nt.push(zt[li[0]],zt[li[1]])}if(Qt=[...Qt,{placement:D,overflows:Nt}],!Nt.every(li=>li<=0)){var ai,Ii;const li=(((ai=F.flip)==null?void 0:ai.index)||0)+1,Xt=Rt[li];if(Xt&&(!(oe==="alignment"?Re!==ia(Xt):!1)||Qt.every(Wt=>ia(Wt.placement)===Re?Wt.overflows[0]>0:!0)))return{data:{index:li,overflows:Qt},reset:{placement:Xt}};let Dt=(Ii=Qt.filter(Tt=>Tt.overflows[0]<=0).sort((Tt,Wt)=>Tt.overflows[1]-Wt.overflows[1])[0])==null?void 0:Ii.placement;if(!Dt)switch(ye){case"bestFit":{var Ut;const Tt=(Ut=Qt.filter(Wt=>{if(It){const ji=ia(Wt.placement);return ji===Re||ji==="y"}return!0}).map(Wt=>[Wt.placement,Wt.overflows.filter(ji=>ji>0).reduce((ji,En)=>ji+En,0)]).sort((Wt,ji)=>Wt[1]-ji[1])[0])==null?void 0:Ut[0];Tt&&(Dt=Tt);break}case"initialPlacement":Dt=s;break}if(D!==Dt)return{reset:{placement:Dt}}}return{}}}};function DT(p,v){return{top:p.top-v.height,right:p.right-v.width,bottom:p.bottom-v.height,left:p.left-v.width}}function LT(p){return eD.some(v=>p[v]>=0)}const fD=function(p){return p===void 0&&(p={}),{name:"hide",options:p,async fn(v){const{rects:b,platform:C}=v,{strategy:D="referenceHidden",...F}=Xa(p,v);switch(D){case"referenceHidden":{const V=await C.detectOverflow(v,{...F,elementContext:"reference"}),s=DT(V,b.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:LT(s)}}}case"escaped":{const V=await C.detectOverflow(v,{...F,altBoundary:!0}),s=DT(V,b.floating);return{data:{escapedOffsets:s,escaped:LT(s)}}}default:return{}}}}},zT=new Set(["left","top"]);async function mD(p,v){const{placement:b,platform:C,elements:D}=p,F=await(C.isRTL==null?void 0:C.isRTL(D.floating)),V=Ya(b),s=Zu(b),ee=ia(b)==="y",re=zT.has(V)?-1:1,ge=F&&ee?-1:1,oe=Xa(v,p);let{mainAxis:Ee,crossAxis:ye,alignmentAxis:Ue}=typeof oe=="number"?{mainAxis:oe,crossAxis:0,alignmentAxis:null}:{mainAxis:oe.mainAxis||0,crossAxis:oe.crossAxis||0,alignmentAxis:oe.alignmentAxis};return s&&typeof Ue=="number"&&(ye=s==="end"?Ue*-1:Ue),ee?{x:ye*ge,y:Ee*re}:{x:Ee*re,y:ye*ge}}const _D=function(p){return p===void 0&&(p=0),{name:"offset",options:p,async fn(v){var b,C;const{x:D,y:F,placement:V,middlewareData:s}=v,ee=await mD(v,p);return V===((b=s.offset)==null?void 0:b.placement)&&(C=s.arrow)!=null&&C.alignmentOffset?{}:{x:D+ee.x,y:F+ee.y,data:{...ee,placement:V}}}}},gD=function(p){return p===void 0&&(p={}),{name:"shift",options:p,async fn(v){const{x:b,y:C,placement:D,platform:F}=v,{mainAxis:V=!0,crossAxis:s=!1,limiter:ee={fn:qe=>{let{x:Re,y:at}=qe;return{x:Re,y:at}}},...re}=Xa(p,v),ge={x:b,y:C},oe=await F.detectOverflow(v,re),Ee=ia(Ya(D)),ye=dv(Ee);let Ue=ge[ye],Te=ge[Ee];if(V){const qe=ye==="y"?"top":"left",Re=ye==="y"?"bottom":"right",at=Ue+oe[qe],Qe=Ue-oe[Re];Ue=hv(at,Ue,Qe)}if(s){const qe=Ee==="y"?"top":"left",Re=Ee==="y"?"bottom":"right",at=Te+oe[qe],Qe=Te-oe[Re];Te=hv(at,Te,Qe)}const Pe=ee.fn({...v,[ye]:Ue,[Ee]:Te});return{...Pe,data:{x:Pe.x-b,y:Pe.y-C,enabled:{[ye]:V,[Ee]:s}}}}}},yD=function(p){return p===void 0&&(p={}),{options:p,fn(v){const{x:b,y:C,placement:D,rects:F,middlewareData:V}=v,{offset:s=0,mainAxis:ee=!0,crossAxis:re=!0}=Xa(p,v),ge={x:b,y:C},oe=ia(D),Ee=dv(oe);let ye=ge[Ee],Ue=ge[oe];const Te=Xa(s,v),Pe=typeof Te=="number"?{mainAxis:Te,crossAxis:0}:{mainAxis:0,crossAxis:0,...Te};if(ee){const at=Ee==="y"?"height":"width",Qe=F.reference[Ee]-F.floating[at]+Pe.mainAxis,yt=F.reference[Ee]+F.reference[at]-Pe.mainAxis;ye<Qe?ye=Qe:ye>yt&&(ye=yt)}if(re){var qe,Re;const at=Ee==="y"?"width":"height",Qe=zT.has(Ya(D)),yt=F.reference[oe]-F.floating[at]+(Qe&&((qe=V.offset)==null?void 0:qe[oe])||0)+(Qe?0:Pe.crossAxis),It=F.reference[oe]+F.reference[at]+(Qe?0:((Re=V.offset)==null?void 0:Re[oe])||0)-(Qe?Pe.crossAxis:0);Ue<yt?Ue=yt:Ue>It&&(Ue=It)}return{[Ee]:ye,[oe]:Ue}}}},vD=function(p){return p===void 0&&(p={}),{name:"size",options:p,async fn(v){var b,C;const{placement:D,rects:F,platform:V,elements:s}=v,{apply:ee=()=>{},...re}=Xa(p,v),ge=await V.detectOverflow(v,re),oe=Ya(D),Ee=Zu(D),ye=ia(D)==="y",{width:Ue,height:Te}=F.floating;let Pe,qe;oe==="top"||oe==="bottom"?(Pe=oe,qe=Ee===(await(V.isRTL==null?void 0:V.isRTL(s.floating))?"start":"end")?"left":"right"):(qe=oe,Pe=Ee==="end"?"top":"bottom");const Re=Te-ge.top-ge.bottom,at=Ue-ge.left-ge.right,Qe=Il(Te-ge[Pe],Re),yt=Il(Ue-ge[qe],at),It=!v.middlewareData.shift;let Rt=Qe,zt=yt;if((b=v.middlewareData.shift)!=null&&b.enabled.x&&(zt=at),(C=v.middlewareData.shift)!=null&&C.enabled.y&&(Rt=Re),It&&!Ee){const Qt=$o(ge.left,0),ai=$o(ge.right,0),Ii=$o(ge.top,0),Ut=$o(ge.bottom,0);ye?zt=Ue-2*(Qt!==0||ai!==0?Qt+ai:$o(ge.left,ge.right)):Rt=Te-2*(Ii!==0||Ut!==0?Ii+Ut:$o(ge.top,ge.bottom))}await ee({...v,availableWidth:zt,availableHeight:Rt});const Nt=await V.getDimensions(s.floating);return Ue!==Nt.width||Te!==Nt.height?{reset:{rects:!0}}:{}}}};function t_(){return typeof window<"u"}function Xu(p){return kT(p)?(p.nodeName||"").toLowerCase():"#document"}function Go(p){var v;return(p==null||(v=p.ownerDocument)==null?void 0:v.defaultView)||window}function na(p){var v;return(v=(kT(p)?p.ownerDocument:p.document)||window.document)==null?void 0:v.documentElement}function kT(p){return t_()?p instanceof Node||p instanceof Go(p).Node:!1}function Is(p){return t_()?p instanceof Element||p instanceof Go(p).Element:!1}function Ka(p){return t_()?p instanceof HTMLElement||p instanceof Go(p).HTMLElement:!1}function OT(p){return!t_()||typeof ShadowRoot>"u"?!1:p instanceof ShadowRoot||p instanceof Go(p).ShadowRoot}function Zd(p){const{overflow:v,overflowX:b,overflowY:C,display:D}=Cs(p);return/auto|scroll|overlay|hidden|clip/.test(v+C+b)&&D!=="inline"&&D!=="contents"}function xD(p){return/^(table|td|th)$/.test(Xu(p))}function i_(p){try{if(p.matches(":popover-open"))return!0}catch{}try{return p.matches(":modal")}catch{return!1}}const bD=/transform|translate|scale|rotate|perspective|filter/,wD=/paint|layout|strict|content/,Dc=p=>!!p&&p!=="none";let _v;function gv(p){const v=Is(p)?Cs(p):p;return Dc(v.transform)||Dc(v.translate)||Dc(v.scale)||Dc(v.rotate)||Dc(v.perspective)||!yv()&&(Dc(v.backdropFilter)||Dc(v.filter))||bD.test(v.willChange||"")||wD.test(v.contain||"")}function TD(p){let v=Cl(p);for(;Ka(v)&&!Yu(v);){if(gv(v))return v;if(i_(v))return null;v=Cl(v)}return null}function yv(){return _v==null&&(_v=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_v}function Yu(p){return/^(html|body|#document)$/.test(Xu(p))}function Cs(p){return Go(p).getComputedStyle(p)}function n_(p){return Is(p)?{scrollLeft:p.scrollLeft,scrollTop:p.scrollTop}:{scrollLeft:p.scrollX,scrollTop:p.scrollY}}function Cl(p){if(Xu(p)==="html")return p;const v=p.assignedSlot||p.parentNode||OT(p)&&p.host||na(p);return OT(v)?v.host:v}function FT(p){const v=Cl(p);return Yu(v)?p.ownerDocument?p.ownerDocument.body:p.body:Ka(v)&&Zd(v)?v:FT(v)}function Xd(p,v,b){var C;v===void 0&&(v=[]),b===void 0&&(b=!0);const D=FT(p),F=D===((C=p.ownerDocument)==null?void 0:C.body),V=Go(D);if(F){const s=vv(V);return v.concat(V,V.visualViewport||[],Zd(D)?D:[],s&&b?Xd(s):[])}else return v.concat(D,Xd(D,[],b))}function vv(p){return p.parent&&Object.getPrototypeOf(p.parent)?p.frameElement:null}function BT(p){const v=Cs(p);let b=parseFloat(v.width)||0,C=parseFloat(v.height)||0;const D=Ka(p),F=D?p.offsetWidth:b,V=D?p.offsetHeight:C,s=Km(b)!==F||Km(C)!==V;return s&&(b=F,C=V),{width:b,height:C,$:s}}function xv(p){return Is(p)?p:p.contextElement}function Ku(p){const v=xv(p);if(!Ka(v))return ta(1);const b=v.getBoundingClientRect(),{width:C,height:D,$:F}=BT(v);let V=(F?Km(b.width):b.width)/C,s=(F?Km(b.height):b.height)/D;return(!V||!Number.isFinite(V))&&(V=1),(!s||!Number.isFinite(s))&&(s=1),{x:V,y:s}}const SD=ta(0);function NT(p){const v=Go(p);return!yv()||!v.visualViewport?SD:{x:v.visualViewport.offsetLeft,y:v.visualViewport.offsetTop}}function ED(p,v,b){return v===void 0&&(v=!1),!b||v&&b!==Go(p)?!1:v}function Lc(p,v,b,C){v===void 0&&(v=!1),b===void 0&&(b=!1);const D=p.getBoundingClientRect(),F=xv(p);let V=ta(1);v&&(C?Is(C)&&(V=Ku(C)):V=Ku(p));const s=ED(F,b,C)?NT(F):ta(0);let ee=(D.left+s.x)/V.x,re=(D.top+s.y)/V.y,ge=D.width/V.x,oe=D.height/V.y;if(F){const Ee=Go(F),ye=C&&Is(C)?Go(C):C;let Ue=Ee,Te=vv(Ue);for(;Te&&C&&ye!==Ue;){const Pe=Ku(Te),qe=Te.getBoundingClientRect(),Re=Cs(Te),at=qe.left+(Te.clientLeft+parseFloat(Re.paddingLeft))*Pe.x,Qe=qe.top+(Te.clientTop+parseFloat(Re.paddingTop))*Pe.y;ee*=Pe.x,re*=Pe.y,ge*=Pe.x,oe*=Pe.y,ee+=at,re+=Qe,Ue=Go(Te),Te=vv(Ue)}}return e_({width:ge,height:oe,x:ee,y:re})}function r_(p,v){const b=n_(p).scrollLeft;return v?v.left+b:Lc(na(p)).left+b}function jT(p,v){const b=p.getBoundingClientRect(),C=b.left+v.scrollLeft-r_(p,b),D=b.top+v.scrollTop;return{x:C,y:D}}function AD(p){let{elements:v,rect:b,offsetParent:C,strategy:D}=p;const F=D==="fixed",V=na(C),s=v?i_(v.floating):!1;if(C===V||s&&F)return b;let ee={scrollLeft:0,scrollTop:0},re=ta(1);const ge=ta(0),oe=Ka(C);if((oe||!oe&&!F)&&((Xu(C)!=="body"||Zd(V))&&(ee=n_(C)),oe)){const ye=Lc(C);re=Ku(C),ge.x=ye.x+C.clientLeft,ge.y=ye.y+C.clientTop}const Ee=V&&!oe&&!F?jT(V,ee):ta(0);return{width:b.width*re.x,height:b.height*re.y,x:b.x*re.x-ee.scrollLeft*re.x+ge.x+Ee.x,y:b.y*re.y-ee.scrollTop*re.y+ge.y+Ee.y}}function ID(p){return Array.from(p.getClientRects())}function CD(p){const v=na(p),b=n_(p),C=p.ownerDocument.body,D=$o(v.scrollWidth,v.clientWidth,C.scrollWidth,C.clientWidth),F=$o(v.scrollHeight,v.clientHeight,C.scrollHeight,C.clientHeight);let V=-b.scrollLeft+r_(p);const s=-b.scrollTop;return Cs(C).direction==="rtl"&&(V+=$o(v.clientWidth,C.clientWidth)-D),{width:D,height:F,x:V,y:s}}const VT=25;function PD(p,v){const b=Go(p),C=na(p),D=b.visualViewport;let F=C.clientWidth,V=C.clientHeight,s=0,ee=0;if(D){F=D.width,V=D.height;const ge=yv();(!ge||ge&&v==="fixed")&&(s=D.offsetLeft,ee=D.offsetTop)}const re=r_(C);if(re<=0){const ge=C.ownerDocument,oe=ge.body,Ee=getComputedStyle(oe),ye=ge.compatMode==="CSS1Compat"&&parseFloat(Ee.marginLeft)+parseFloat(Ee.marginRight)||0,Ue=Math.abs(C.clientWidth-oe.clientWidth-ye);Ue<=VT&&(F-=Ue)}else re<=VT&&(F+=re);return{width:F,height:V,x:s,y:ee}}function MD(p,v){const b=Lc(p,!0,v==="fixed"),C=b.top+p.clientTop,D=b.left+p.clientLeft,F=Ka(p)?Ku(p):ta(1),V=p.clientWidth*F.x,s=p.clientHeight*F.y,ee=D*F.x,re=C*F.y;return{width:V,height:s,x:ee,y:re}}function UT(p,v,b){let C;if(v==="viewport")C=PD(p,b);else if(v==="document")C=CD(na(p));else if(Is(v))C=MD(v,b);else{const D=NT(p);C={x:v.x-D.x,y:v.y-D.y,width:v.width,height:v.height}}return e_(C)}function $T(p,v){const b=Cl(p);return b===v||!Is(b)||Yu(b)?!1:Cs(b).position==="fixed"||$T(b,v)}function RD(p,v){const b=v.get(p);if(b)return b;let C=Xd(p,[],!1).filter(s=>Is(s)&&Xu(s)!=="body"),D=null;const F=Cs(p).position==="fixed";let V=F?Cl(p):p;for(;Is(V)&&!Yu(V);){const s=Cs(V),ee=gv(V);!ee&&s.position==="fixed"&&(D=null),(F?!ee&&!D:!ee&&s.position==="static"&&!!D&&(D.position==="absolute"||D.position==="fixed")||Zd(V)&&!ee&&$T(p,V))?C=C.filter(ge=>ge!==V):D=s,V=Cl(V)}return v.set(p,C),C}function DD(p){let{element:v,boundary:b,rootBoundary:C,strategy:D}=p;const V=[...b==="clippingAncestors"?i_(v)?[]:RD(v,this._c):[].concat(b),C],s=UT(v,V[0],D);let ee=s.top,re=s.right,ge=s.bottom,oe=s.left;for(let Ee=1;Ee<V.length;Ee++){const ye=UT(v,V[Ee],D);ee=$o(ye.top,ee),re=Il(ye.right,re),ge=Il(ye.bottom,ge),oe=$o(ye.left,oe)}return{width:re-oe,height:ge-ee,x:oe,y:ee}}function LD(p){const{width:v,height:b}=BT(p);return{width:v,height:b}}function zD(p,v,b){const C=Ka(v),D=na(v),F=b==="fixed",V=Lc(p,!0,F,v);let s={scrollLeft:0,scrollTop:0};const ee=ta(0);function re(){ee.x=r_(D)}if(C||!C&&!F)if((Xu(v)!=="body"||Zd(D))&&(s=n_(v)),C){const ye=Lc(v,!0,F,v);ee.x=ye.x+v.clientLeft,ee.y=ye.y+v.clientTop}else D&&re();F&&!C&&D&&re();const ge=D&&!C&&!F?jT(D,s):ta(0),oe=V.left+s.scrollLeft-ee.x-ge.x,Ee=V.top+s.scrollTop-ee.y-ge.y;return{x:oe,y:Ee,width:V.width,height:V.height}}function bv(p){return Cs(p).position==="static"}function GT(p,v){if(!Ka(p)||Cs(p).position==="fixed")return null;if(v)return v(p);let b=p.offsetParent;return na(p)===b&&(b=b.ownerDocument.body),b}function HT(p,v){const b=Go(p);if(i_(p))return b;if(!Ka(p)){let D=Cl(p);for(;D&&!Yu(D);){if(Is(D)&&!bv(D))return D;D=Cl(D)}return b}let C=GT(p,v);for(;C&&xD(C)&&bv(C);)C=GT(C,v);return C&&Yu(C)&&bv(C)&&!gv(C)?b:C||TD(p)||b}const kD=async function(p){const v=this.getOffsetParent||HT,b=this.getDimensions,C=await b(p.floating);return{reference:zD(p.reference,await v(p.floating),p.strategy),floating:{x:0,y:0,width:C.width,height:C.height}}};function OD(p){return Cs(p).direction==="rtl"}const FD={convertOffsetParentRelativeRectToViewportRelativeRect:AD,getDocumentElement:na,getClippingRect:DD,getOffsetParent:HT,getElementRects:kD,getClientRects:ID,getDimensions:LD,getScale:Ku,isElement:Is,isRTL:OD};function qT(p,v){return p.x===v.x&&p.y===v.y&&p.width===v.width&&p.height===v.height}function BD(p,v){let b=null,C;const D=na(p);function F(){var s;clearTimeout(C),(s=b)==null||s.disconnect(),b=null}function V(s,ee){s===void 0&&(s=!1),ee===void 0&&(ee=1),F();const re=p.getBoundingClientRect(),{left:ge,top:oe,width:Ee,height:ye}=re;if(s||v(),!Ee||!ye)return;const Ue=Jm(oe),Te=Jm(D.clientWidth-(ge+Ee)),Pe=Jm(D.clientHeight-(oe+ye)),qe=Jm(ge),at={rootMargin:-Ue+"px "+-Te+"px "+-Pe+"px "+-qe+"px",threshold:$o(0,Il(1,ee))||1};let Qe=!0;function yt(It){const Rt=It[0].intersectionRatio;if(Rt!==ee){if(!Qe)return V();Rt?V(!1,Rt):C=setTimeout(()=>{V(!1,1e-7)},1e3)}Rt===1&&!qT(re,p.getBoundingClientRect())&&V(),Qe=!1}try{b=new IntersectionObserver(yt,{...at,root:D.ownerDocument})}catch{b=new IntersectionObserver(yt,at)}b.observe(p)}return V(!0),F}function ND(p,v,b,C){C===void 0&&(C={});const{ancestorScroll:D=!0,ancestorResize:F=!0,elementResize:V=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:ee=!1}=C,re=xv(p),ge=D||F?[...re?Xd(re):[],...v?Xd(v):[]]:[];ge.forEach(qe=>{D&&qe.addEventListener("scroll",b,{passive:!0}),F&&qe.addEventListener("resize",b)});const oe=re&&s?BD(re,b):null;let Ee=-1,ye=null;V&&(ye=new ResizeObserver(qe=>{let[Re]=qe;Re&&Re.target===re&&ye&&v&&(ye.unobserve(v),cancelAnimationFrame(Ee),Ee=requestAnimationFrame(()=>{var at;(at=ye)==null||at.observe(v)})),b()}),re&&!ee&&ye.observe(re),v&&ye.observe(v));let Ue,Te=ee?Lc(p):null;ee&&Pe();function Pe(){const qe=Lc(p);Te&&!qT(Te,qe)&&b(),Te=qe,Ue=requestAnimationFrame(Pe)}return b(),()=>{var qe;ge.forEach(Re=>{D&&Re.removeEventListener("scroll",b),F&&Re.removeEventListener("resize",b)}),oe==null||oe(),(qe=ye)==null||qe.disconnect(),ye=null,ee&&cancelAnimationFrame(Ue)}}const jD=_D,VD=gD,UD=pD,$D=vD,GD=fD,WT=dD,HD=yD,qD=(p,v,b)=>{const C=new Map,D={platform:FD,...b},F={...D.platform,_c:C};return hD(p,v,{...D,platform:F})};var o_=typeof document<"u"?Ys:Bi;function s_(p,v){if(p===v)return!0;if(typeof p!=typeof v)return!1;if(typeof p=="function"&&p.toString()===v.toString())return!0;let b,C,D;if(p&&v&&typeof p=="object"){if(Array.isArray(p)){if(b=p.length,b!==v.length)return!1;for(C=b;C--!==0;)if(!s_(p[C],v[C]))return!1;return!0}if(D=Object.keys(p),b=D.length,b!==Object.keys(v).length)return!1;for(C=b;C--!==0;)if(!{}.hasOwnProperty.call(v,D[C]))return!1;for(C=b;C--!==0;){const F=D[C];if(!(F==="_owner"&&p.$$typeof)&&!s_(p[F],v[F]))return!1}return!0}return p!==p&&v!==v}function ZT(p){return typeof window>"u"?1:(p.ownerDocument.defaultView||window).devicePixelRatio||1}function XT(p,v){const b=ZT(p);return Math.round(v*b)/b}function YT(p){const v=mi(p);return o_(()=>{v.current=p}),v}function WD(p){p===void 0&&(p={});const{placement:v="bottom",strategy:b="absolute",middleware:C=[],platform:D,elements:{reference:F,floating:V}={},transform:s=!0,whileElementsMounted:ee,open:re}=p,[ge,oe]=Ri({x:0,y:0,strategy:b,placement:v,middlewareData:{},isPositioned:!1}),[Ee,ye]=Ri(C);s_(Ee,C)||ye(C);const[Ue,Te]=Ri(null),[Pe,qe]=Ri(null),Re=xn(Tt=>{Tt!==It.current&&(It.current=Tt,Te(Tt))},[]),at=xn(Tt=>{Tt!==Rt.current&&(Rt.current=Tt,qe(Tt))},[]),Qe=F||Ue,yt=V||Pe,It=mi(null),Rt=mi(null),zt=mi(ge),Nt=ee!=null,Qt=YT(ee),ai=YT(D),Ii=xn(()=>{if(!It.current||!Rt.current)return;const Tt={placement:v,strategy:b,middleware:Ee};ai.current&&(Tt.platform=ai.current),qD(It.current,Rt.current,Tt).then(Wt=>{const ji={...Wt,isPositioned:!0};Ut.current&&!s_(zt.current,ji)&&(zt.current=ji,Ud(()=>{oe(ji)}))})},[Ee,v,b,ai]);o_(()=>{re===!1&&zt.current.isPositioned&&(zt.current.isPositioned=!1,oe(Tt=>({...Tt,isPositioned:!1})))},[re]);const Ut=mi(!1);o_(()=>(Ut.current=!0,()=>{Ut.current=!1}),[]),o_(()=>{if(Qe&&(It.current=Qe),yt&&(Rt.current=yt),Qe&&yt){if(Qt.current)return Qt.current(Qe,yt,Ii);Ii()}},[Qe,yt,Ii,Qt,Nt]);const li=qn(()=>({reference:It,floating:Rt,setReference:Re,setFloating:at}),[Re,at]),Xt=qn(()=>({reference:Qe,floating:yt}),[Qe,yt]),Dt=qn(()=>{const Tt={position:b,left:0,top:0};if(!Xt.floating)return Tt;const Wt=XT(Xt.floating,ge.x),ji=XT(Xt.floating,ge.y);return s?{...Tt,transform:"translate("+Wt+"px, "+ji+"px)",...ZT(Xt.floating)>=1.5&&{willChange:"transform"}}:{position:b,left:Wt,top:ji}},[b,s,Xt.floating,ge.x,ge.y]);return qn(()=>({...ge,update:Ii,refs:li,elements:Xt,floatingStyles:Dt}),[ge,Ii,li,Xt,Dt])}const ZD=p=>{function v(b){return{}.hasOwnProperty.call(b,"current")}return{name:"arrow",options:p,fn(b){const{element:C,padding:D}=typeof p=="function"?p(b):p;return C&&v(C)?C.current!=null?WT({element:C.current,padding:D}).fn(b):{}:C?WT({element:C,padding:D}).fn(b):{}}}},XD=(p,v)=>({...jD(p),options:[p,v]}),YD=(p,v)=>({...VD(p),options:[p,v]}),KD=(p,v)=>({...HD(p),options:[p,v]}),JD=(p,v)=>({...UD(p),options:[p,v]}),QD=(p,v)=>({...$D(p),options:[p,v]}),eL=(p,v)=>({...GD(p),options:[p,v]}),tL=(p,v)=>({...ZD(p),options:[p,v]});function iL(p){const[v,b]=Ri(void 0);return Uu(()=>{if(p){b({width:p.offsetWidth,height:p.offsetHeight});const C=new ResizeObserver(D=>{if(!Array.isArray(D)||!D.length)return;const F=D[0];let V,s;if("borderBoxSize"in F){const ee=F.borderBoxSize,re=Array.isArray(ee)?ee[0]:ee;V=re.inlineSize,s=re.blockSize}else V=p.offsetWidth,s=p.offsetHeight;b({width:V,height:s})});return C.observe(p,{box:"border-box"}),()=>C.unobserve(p)}else b(void 0)},[p]),v}const KT="Popper",[JT,QT]=J0(KT),[nL,e2]=JT(KT),rL=p=>{const{__scopePopper:v,children:b}=p,[C,D]=Ri(null);return Zt(nL,{scope:v,anchor:C,onAnchorChange:D},b)},oL="PopperAnchor",sL=Wn((p,v)=>{const{__scopePopper:b,virtualRef:C,...D}=p,F=e2(oL,b),V=mi(null),s=Qs(v,V);return Bi(()=>{F.onAnchorChange((C==null?void 0:C.current)||V.current)}),C?null:Zt(Sl.div,Zn({},D,{ref:s}))}),t2="PopperContent",[aL,jN]=JT(t2),lL=Wn((p,v)=>{var b,C,D,F,V,s,ee,re;const{__scopePopper:ge,side:oe="bottom",sideOffset:Ee=0,align:ye="center",alignOffset:Ue=0,arrowPadding:Te=0,avoidCollisions:Pe=!0,collisionBoundary:qe=[],collisionPadding:Re=0,sticky:at="partial",hideWhenDetached:Qe=!1,updatePositionStrategy:yt="optimized",onPlaced:It,...Rt}=p,zt=e2(t2,ge),[Nt,Qt]=Ri(null),ai=Qs(v,eo=>Qt(eo)),[Ii,Ut]=Ri(null),li=iL(Ii),Xt=(b=li==null?void 0:li.width)!==null&&b!==void 0?b:0,Dt=(C=li==null?void 0:li.height)!==null&&C!==void 0?C:0,Tt=oe+(ye!=="center"?"-"+ye:""),Wt=typeof Re=="number"?Re:{top:0,right:0,bottom:0,left:0,...Re},ji=Array.isArray(qe)?qe:[qe],En=ji.length>0,on={padding:Wt,boundary:ji.filter(cL),altBoundary:En},{refs:Bn,floatingStyles:Ci,placement:Dn,isPositioned:Jr,middlewareData:Cr}=WD({strategy:"fixed",placement:Tt,whileElementsMounted:(...eo)=>ND(...eo,{animationFrame:yt==="always"}),elements:{reference:zt.anchor},middleware:[XD({mainAxis:Ee+Dt,alignmentAxis:Ue}),Pe&&YD({mainAxis:!0,crossAxis:!1,limiter:at==="partial"?KD():void 0,...on}),Pe&&JD({...on}),QD({...on,apply:({elements:eo,rects:Zi,availableWidth:tn,availableHeight:Si})=>{const{width:bn,height:ur}=Zi.reference,Nn=eo.floating.style;Nn.setProperty("--radix-popper-available-width",`${tn}px`),Nn.setProperty("--radix-popper-available-height",`${Si}px`),Nn.setProperty("--radix-popper-anchor-width",`${bn}px`),Nn.setProperty("--radix-popper-anchor-height",`${ur}px`)}}),Ii&&tL({element:Ii,padding:Te}),uL({arrowWidth:Xt,arrowHeight:Dt}),Qe&&eL({strategy:"referenceHidden",...on})]}),[Qr,qr]=i2(Dn),Fi=Tl(It);Uu(()=>{Jr&&(Fi==null||Fi())},[Jr,Fi]);const Qi=(D=Cr.arrow)===null||D===void 0?void 0:D.x,nr=(F=Cr.arrow)===null||F===void 0?void 0:F.y,Ho=((V=Cr.arrow)===null||V===void 0?void 0:V.centerOffset)!==0,[en,To]=Ri();return Uu(()=>{Nt&&To(window.getComputedStyle(Nt).zIndex)},[Nt]),Zt("div",{ref:Bn.setFloating,"data-radix-popper-content-wrapper":"",style:{...Ci,transform:Jr?Ci.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:en,"--radix-popper-transform-origin":[(s=Cr.transformOrigin)===null||s===void 0?void 0:s.x,(ee=Cr.transformOrigin)===null||ee===void 0?void 0:ee.y].join(" ")},dir:p.dir},Zt(aL,{scope:ge,placedSide:Qr,onArrowChange:Ut,arrowX:Qi,arrowY:nr,shouldHideArrow:Ho},Zt(Sl.div,Zn({"data-side":Qr,"data-align":qr},Rt,{ref:ai,style:{...Rt.style,animation:Jr?void 0:"none",opacity:(re=Cr.hide)!==null&&re!==void 0&&re.referenceHidden?0:void 0}}))))});function cL(p){return p!==null}const uL=p=>({name:"transformOrigin",options:p,fn(v){var b,C,D,F,V;const{placement:s,rects:ee,middlewareData:re}=v,oe=((b=re.arrow)===null||b===void 0?void 0:b.centerOffset)!==0,Ee=oe?0:p.arrowWidth,ye=oe?0:p.arrowHeight,[Ue,Te]=i2(s),Pe={start:"0%",center:"50%",end:"100%"}[Te],qe=((C=(D=re.arrow)===null||D===void 0?void 0:D.x)!==null&&C!==void 0?C:0)+Ee/2,Re=((F=(V=re.arrow)===null||V===void 0?void 0:V.y)!==null&&F!==void 0?F:0)+ye/2;let at="",Qe="";return Ue==="bottom"?(at=oe?Pe:`${qe}px`,Qe=`${-ye}px`):Ue==="top"?(at=oe?Pe:`${qe}px`,Qe=`${ee.floating.height+ye}px`):Ue==="right"?(at=`${-ye}px`,Qe=oe?Pe:`${Re}px`):Ue==="left"&&(at=`${ee.floating.width+ye}px`,Qe=oe?Pe:`${Re}px`),{data:{x:at,y:Qe}}}});function i2(p){const[v,b="center"]=p.split("-");return[v,b]}const hL=rL,dL=sL,pL=lL,n2="Popover",[r2,VN]=J0(n2,[QT]),wv=QT(),[fL,Ju]=r2(n2),mL=p=>{const{__scopePopover:v,children:b,open:C,defaultOpen:D,onOpenChange:F,modal:V=!1}=p,s=wv(v),ee=mi(null),[re,ge]=Ri(!1),[oe=!1,Ee]=qw({prop:C,defaultProp:D,onChange:F});return Zt(hL,s,Zt(fL,{scope:v,contentId:Vm(),triggerRef:ee,open:oe,onOpenChange:Ee,onOpenToggle:xn(()=>Ee(ye=>!ye),[Ee]),hasCustomAnchor:re,onCustomAnchorAdd:xn(()=>ge(!0),[]),onCustomAnchorRemove:xn(()=>ge(!1),[]),modal:V},b))},_L="PopoverTrigger",gL=Wn((p,v)=>{const{__scopePopover:b,...C}=p,D=Ju(_L,b),F=wv(b),V=Qs(v,D.triggerRef),s=Zt(Sl.button,Zn({type:"button","aria-haspopup":"dialog","aria-expanded":D.open,"aria-controls":D.contentId,"data-state":a2(D.open)},C,{ref:V,onClick:As(p.onClick,D.onOpenToggle)}));return D.hasCustomAnchor?s:Zt(dL,Zn({asChild:!0},F),s)}),o2="PopoverPortal",[yL,vL]=r2(o2,{forceMount:void 0}),xL=p=>{const{__scopePopover:v,forceMount:b,children:C,container:D}=p,F=Ju(o2,v);return Zt(yL,{scope:v,forceMount:b},Zt($u,{present:b||F.open},Zt(nT,{asChild:!0,container:D},C)))},Yd="PopoverContent",bL=Wn((p,v)=>{const b=vL(Yd,p.__scopePopover),{forceMount:C=b.forceMount,...D}=p,F=Ju(Yd,p.__scopePopover);return Zt($u,{present:C||F.open},F.modal?Zt(wL,Zn({},D,{ref:v})):Zt(TL,Zn({},D,{ref:v})))}),wL=Wn((p,v)=>{const b=Ju(Yd,p.__scopePopover),C=mi(null),D=Qs(v,C),F=mi(!1);return Bi(()=>{const V=C.current;if(V)return wT(V)},[]),Zt(xT,{as:Um,allowPinchZoom:!0},Zt(s2,Zn({},p,{ref:D,trapFocus:b.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:As(p.onCloseAutoFocus,V=>{var s;V.preventDefault(),F.current||(s=b.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:As(p.onPointerDownOutside,V=>{const s=V.detail.originalEvent,ee=s.button===0&&s.ctrlKey===!0,re=s.button===2||ee;F.current=re},{checkForDefaultPrevented:!1}),onFocusOutside:As(p.onFocusOutside,V=>V.preventDefault(),{checkForDefaultPrevented:!1})})))}),TL=Wn((p,v)=>{const b=Ju(Yd,p.__scopePopover),C=mi(!1),D=mi(!1);return Zt(s2,Zn({},p,{ref:v,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:F=>{var V;if((V=p.onCloseAutoFocus)===null||V===void 0||V.call(p,F),!F.defaultPrevented){var s;C.current||(s=b.triggerRef.current)===null||s===void 0||s.focus(),F.preventDefault()}C.current=!1,D.current=!1},onInteractOutside:F=>{var V,s;(V=p.onInteractOutside)===null||V===void 0||V.call(p,F),F.defaultPrevented||(C.current=!0,F.detail.originalEvent.type==="pointerdown"&&(D.current=!0));const ee=F.target;((s=b.triggerRef.current)===null||s===void 0?void 0:s.contains(ee))&&F.preventDefault(),F.detail.originalEvent.type==="focusin"&&D.current&&F.preventDefault()}}))}),s2=Wn((p,v)=>{const{__scopePopover:b,trapFocus:C,onOpenAutoFocus:D,onCloseAutoFocus:F,disableOutsidePointerEvents:V,onEscapeKeyDown:s,onPointerDownOutside:ee,onFocusOutside:re,onInteractOutside:ge,...oe}=p,Ee=Ju(Yd,b),ye=wv(b);return rT(),Zt(Jw,{asChild:!0,loop:!0,trapped:C,onMountAutoFocus:D,onUnmountAutoFocus:F},Zt(Zw,{asChild:!0,disableOutsidePointerEvents:V,onInteractOutside:ge,onEscapeKeyDown:s,onPointerDownOutside:ee,onFocusOutside:re,onDismiss:()=>Ee.onOpenChange(!1)},Zt(pL,Zn({"data-state":a2(Ee.open),role:"dialog",id:Ee.contentId},ye,oe,{ref:v,style:{...oe.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function a2(p){return p?"open":"closed"}const SL=mL,EL=gL,AL=xL,IL=bL,l2=p=>{var b;const v=Number((b=p.match(/\d/g))==null?void 0:b.join(""));return Number.isNaN(v)?0:v},CL=(p,v={by:"results-count",order:"descending"})=>{const b=[...p];switch(v.by){case"results-count":b.sort((C,D)=>C.jobs-D.jobs);break;case"alphabetically":b.sort((C,D)=>C.label.localeCompare(D.label));break;case"numerically":b.sort((C,D)=>{const F=l2(C.value),V=l2(D.value);return F-V});break}return v.order==="descending"&&b.reverse(),b},Kd=cs({base:"fr bg-lowest caret-accent-11 selection:bg-accent-4 selection:text-accent-12 placeholder:text-copy-neutral placeholder:opacity-30 ring-width-section ease-expo-out duration-snappy transition-all disabled:opacity-50 rounded-input font-style-input text-style-input font-weight-input",variants:{hasValue:{false:"text-copy-neutral ring-job-card-stroke",true:"text-interactive-accent-text ring-job-card-stroke"},size:{md:"py-2 px-4",unsized:""}},defaultVariants:{size:"md",hasValue:!1}}),c2=cs({base:"flex-1 gutter-stable group/filter flex-col p-2 bg-app flex max-w-full overflow-y-auto items-stretch",variants:{ring:{default:"border-b-px border-neutral-4",unset:""}},defaultVariants:{ring:"default"}}),u2=cs({base:"max-w-full origin-top group/tag ease-expo-out transition-all duration-snappy",variants:{type:{pill:"",line:"[&:not(:last-child)]:border-b-px border-neutral-2 has-[[data-current-value=true]]:border-b-accent-3"}}}),h2=cs({base:"cursor-pointer flex fr gap-2 font-style-tag pointer-fine:group-[&:first-child]/filter:group-[&:first-child]/tag:rounded-t-tag py-2.5 px-2.5 font-family-tag font-weight-tag text-style-tag focus:relative w-full justify-between",variants:{active:{true:"bg-accent-2 text-accent-11",false:"text-neutral-11"},disabled:{true:"opacity-25 pointer-events-none",false:""}},compoundVariants:[{disabled:!1,active:!1,class:"hover:bg-neutral-2"}],defaultVariants:{disabled:!1,active:!1}}),PL=cs({base:"rounded-job-tag inline-block px-1 border-solid border-px ease-expo-out transition-all duration-snappy",variants:{colorScheme:{accentStrong:"text-accent-11 bg-accent-4 border-tag-accent-strong-stroke",neutralStrong:"text-neutral-11 bg-neutral-2 border-tag-neutral-strong-stroke"}}}),ML=({children:p,colorScheme:v})=>me("span",{class:PL({colorScheme:v}),children:me("span",{class:"block w-[3ch] text-center tabular-nums",children:p})}),RL=(p,v)=>{const b=p.indexOf(v);return b===-1?[...p,v]:p.filter((C,D)=>D!==b)},DL=(p,v)=>{if(p===null)return!1;const b=p[v.value];return b===void 0?!0:b===0},LL=(p,v)=>{const b=C=>C>99?"99+":C.toString();return b(p===null?v.jobs:p[v.value]??0)},zL=({value:p,property:v,useQuery:b,isMobile:C,onValueChange:D,onClose:F})=>{const{t:V}=Hr(),s=Nd(b()),ee=qn(()=>{switch(s.queryState){case"error":case"idle":case"loading":return null;case"loaded":case"revalidating":{const ye=s.data[v.key]??[];return Object.fromEntries(ye.map(Ue=>[Ue.value,Ue.jobs]))}default:os(s)}},[s,v.key]),re=_2(p),ge=re.length>0,[oe,Ee]=Ri();return me("div",{class:"theme-fill:bg-neutral-1 flex min-h-0 w-full flex-1 flex-col",children:[v.searchable&&me("div",{class:"border-b-px border-neutral-4",children:me("input",{type:"search",class:"theme-fill:bg-neutral-2 theme-stroke:bg-neutral-1 theme-fill:focus:bg-neutral-1 theme-stroke:focus:bg-lowest focus:ring-px focus:ring-neutral-6 pointer-fine:theme-soft:rounded-t-lg pointer-fine:theme-rounded:rounded-t-lg caret-accent-11 selection:bg-accent-4 selection:text-accent-12 placeholder:text-copy-neutral ease-expo-out duration-snappy font-style-input text-style-input font-weight-input bg-transparent px-4 py-2.5 outline-none transition-all placeholder:opacity-30 disabled:opacity-50",value:oe,onInput:ye=>Ee(ye.currentTarget.value),placeholder:V("type_to_search")})}),(()=>{switch(s.queryState){case"error":return me(wl,{error:new Error(V("filters_loading_error"),{cause:s.error}),class:"flex-1",resetError:()=>s.swr.mutate()});case"idle":case"loading":return me("div",{"aria-hidden":!0,class:"flex flex-col p-2",children:Array.from({length:10}).map((ye,Ue)=>me("div",{style:{animationDelay:Ue*-.1+"s"},class:"bg-neutral-3 animate-skeleton h-12 w-full"},Ue))});case"revalidating":case"loaded":{const ye=s.data[v.key]??[],Ue=oe&&oe.length>1?ye.filter(qe=>qe.label.toLowerCase().includes(oe.toLowerCase())):ye,Te=[];for(const qe of Ue){if(qe.label.length<1)continue;const Re={...qe,results:LL(ee,qe),disabled:DL(ee,qe)};switch(v.results){case"only-available":Re.disabled===!1&&Te.push(Re);break;default:Te.push(Re)}}return Te.find(qe=>!qe.disabled)?me("ul",{class:c2(),children:CL(Te,v.sortSuggestions).map(qe=>{const Re=re.includes(qe.value);return me("li",{class:u2({type:"line"}),children:me("button",{type:"button",disabled:qe.disabled,"data-filter":!0,"data-current-value":Re?"true":void 0,onClick:()=>{switch(p.select){case"many":{const at=RL(re,qe.value);D({select:"many",value:at});break}case"one":D({select:"one",value:Re?void 0:qe.value});break;default:os(p)}},class:h2({active:Re,disabled:qe.disabled}),children:[me("span",{class:"max-w-full truncate",children:qe.label})," ",me(ML,{colorScheme:Re?"accentStrong":"neutralStrong",children:qe.results})]})},qe.value)})}):me("p",{class:"font-style-tag text-style-tag font-weight-tag w-full flex-1 px-4 pb-1 pt-4 text-center",children:V("no_filter_options_available")})}default:os(s)}})(),me("footer",{class:"flex flex-none justify-end p-2",children:[me("div",{class:"flex-1",children:ge&&me("button",{type:"button",class:Ga({variant:"neutral",icon:"left"}),onClick:()=>{D(void 0)},children:[me(Ir,{"aria-hidden":!0,name:"x"})," ",V("clear")]})}),p.select==="many"&&C&&me("div",{class:"flex items-center overflow-hidden",children:me("p",{class:"theme-light:text-neutral-11 theme-dark:text-neutral-12 font-style-default text-style-tag font-weight-default flex-grow select-none truncate text-center",children:[re.length," ",V("selected")]})}),me("div",{class:"flex-1",children:me("button",{type:"button",class:Ga({variant:ge?"accent":"neutral",class:"ml-auto"}),onClick:F,children:V(ge?"done":"close")},ge?"done":"close")})]})]})},d2=8,p2={contract_type:"clock",title:"magnifier",city:"mapPin",town:"mapPin",country:"mapPin",company_name:"briefcase",category:"briefcase",pay:"pay",pay_currency:"pay",pay_mask:"pay",pay_display:"pay",pay_max:"pay",pay_min:"pay",pay_type:"pay"},f2=cs({base:"theme-fill:fr theme-fill:bg-neutral-2 theme-fill:hover:bg-neutral-3 theme-stroke:fr theme-stroke:hover:fr theme-stroke:ring-px theme-stroke:bg-lowest theme-stroke:ring-neutral-4 theme-stroke:hover:ring-neutral-6 group relative flex cursor-pointer select-none items-center gap-1.5 py-2.5 pl-3.5 pr-3 font-style-filter font-family-filter font-weight-filter text-style-filter duration-snappy outline-none ijs-filter flex-shrink-0 min-w-0 theme-rounded:rounded-md theme-soft:rounded-sm transition-all ease-expo-out active:scale-[0.975] origin-[50%_1.75rem]",variants:{state:{default:"text-copy-neutral-lowcontrast hover:text-copy-neutral",active:"text-copy-neutral"}}}),m2=cs({base:"bg-lowest isolate z-50 flex flex-col overflow-hidden ring-neutral-4 ring-px",variants:{mode:{mobile:"fixed bottom-0 w-full h-[80svh] rounded-t-section animate-slide-out-bottom pb-[env(safe-area-inset-bottom)]",desktop:"min-w-64 max-w-xs max-h-[--radix-popover-content-available-height] rounded-section animate-slideDownFade data-[side=top]:animate-slideUpFade shadow-lg"}}}),_2=p=>typeof p.value=="string"?[p.value]:p.value??[],kL=({selectedValues:p})=>{const v=p.length;return v===0?null:me("span",{"aria-label":"Current value",class:"animate-appear-tag text-style-job-card-info font-style-tag font-family-tag font-weight-tag text-tag-accent-strong-copy bg-tag-accent-strong-bg min-w-6 min-h-6 absolute -right-1 -top-1 inline-flex items-center justify-center rounded-[999px] px-2 tabular-nums",children:v},v)},OL=({active:p,value:v,onActiveChange:b,property:C,onValueChange:D,unfilteredQuery:F,useQuery:V,theme:s,widgetId:ee})=>{const re=Sc(C.key,p2)?p2[C.key]:void 0,ge=C.icon??re??"filter",oe=_2(v),Ee=oe.length>0,ye=Gw("(pointer: coarse)"),Ue=me(Hi,{children:[me("div",{class:"flex min-w-0 flex-1 items-center gap-1.5",children:[me(Ir,{"aria-hidden":!0,class:"flex-none",name:ge}),me("span",{class:"truncate",children:C.label})]}),me(Ir,{"aria-hidden":!0,class:"text-neutral-8 flex-shrink-0 rotate-90 transition-transform group-data-[state=open]:-rotate-90",name:"chevron-right"}),me(kL,{selectedValues:oe})]}),Te=me(zL,{useQuery:V,onClose:()=>b(!1),onValueChange:D,unfilteredQuery:F,property:C,value:v,isMobile:ye});return ye?me(XR,{open:p,onOpenChange:b,children:[me(YR,{"data-filter-key":C.key,"aria-label":C.label,"aria-selected":p?"true":void 0,class:f2({state:p||Ee?"active":"default"}),onTouchStart:FL,children:Ue}),me(KR,{children:me("div",{class:"inploi-job-search","data-widget-id":ee,children:[me(JR,{class:"animate-fade-in fixed inset-0 z-50 bg-[#0009]"}),me(QR,{class:m2({mode:"mobile",class:K0(s)}),children:[me("header",{class:"theme-fill:bg-neutral-1 text-neutral-12 border-b-px border-neutral-4 flex cursor-default items-center gap-2 p-4",children:[me(Ir,{name:ge,class:"flex-none"}),me("p",{class:"font-style-filter font-weight-filter text-style-filter truncate",children:C.label})]}),Te]})]})})]}):me(SL,{open:p,onOpenChange:Pe=>b(Pe),modal:ye,children:[me(EL,{"data-filter-key":C.key,"aria-label":C.label,"aria-selected":p?"true":void 0,class:f2({state:p||Ee?"active":"default"}),children:Ue}),me(AL,{children:me("div",{class:"inploi-job-search","data-widget-id":ee,children:me(IL,{side:"bottom",sideOffset:d2,align:"center",collisionPadding:d2,class:m2({mode:"desktop",class:K0(s)}),children:Te})})})]})};function FL(){}const BL=(p,v)=>{var b,C,D;switch(v.select){case"many":(b=v.value)==null||b.forEach(F=>{var V,s;switch(p.select){case"many":(V=p.value)!=null&&V.includes(F)||(s=p.value)==null||s.push(F);break;case"one":p.value=F}});break;case"one":if(!v.value)break;switch(p.select){case"many":(C=p.value)!=null&&C.includes(v.value)||(D=p.value)==null||D.push(v.value);break;case"one":p.value=v.value}break}},NL=({value:p,activeKey:v})=>{switch(p==null?void 0:p.select){case void 0:return{newValue:void 0,newActiveKey:v};case"one":case"many":return{newValue:p,newActiveKey:v};default:os(p)}},jL=({properties:p,state:v,onFilterValueChange:b,onResetFilters:C,rpcClient:D,theme:F,alerts:V,widgetId:s,i18n:ee})=>{const{t:re}=Hr(),[ge,oe]=Ri(void 0),Ee=qn(()=>({filters:Dv(p,"value"),mode:v.mode,query:"",geo:void 0,page:1,view:"list"}),[p,v.mode]),ye=Nd(qd(jm({state:Ee,baseKey:"filters"}),()=>zb({rpcClient:D,state:Ee,t:re,locale:ee?ee.locale:void 0,fallbackLocale:ee?ee.fallbackLocale:void 0}),Pm)),Ue=xn(Te=>()=>{const Pe={...v,resultOrder:void 0,filters:{...v.filters,[Te]:Ee.filters[Te]}};return qd(jm({state:Pe,baseKey:"filters"}),()=>zb({rpcClient:D,state:Pe,t:re,locale:ee?ee.locale:void 0,fallbackLocale:ee?ee.fallbackLocale:void 0}),Pm)},[D,Ee.filters,v,re,ee]);return ye.queryState==="error"?me(wl,{error:new Error(re("filters_loading_error"),{cause:ye.error}),resetError:()=>ye.swr.mutate()}):me("div",{class:"ijs-filters-section flex w-full flex-col items-stretch justify-center gap-2 overflow-auto px-4 py-2 md:flex-row md:flex-wrap md:items-center",children:[p.filter(Te=>Te.hidden!==!0).map(Te=>{const Pe=ge===Te.key,qe=v.filters[Te.key]??{select:Te.select,value:void 0},Re=Ee.filters[Te.key];Re&&BL(qe,Re);const at=It=>{const{newActiveKey:Rt,newValue:zt}=NL({property:Te,activeKey:ge,value:It??Re,properties:p,appliedFilters:v.filters});return oe(Rt),b(Te.key,zt)},Qe=It=>oe(It?Te.key:void 0),yt=Ue(Te.key);return me(Vd,{Fallback:wl,children:me(OL,{unfilteredQuery:ye,active:Pe,property:Te,onActiveChange:Qe,value:qe,useQuery:yt,onValueChange:at,theme:F,widgetId:s})},Te.key)}),me("button",{type:"button",class:Ga({variant:"neutral"}),onClick:C,children:re("reset")}),V?me("div",{id:"inploi-job-alerts",class:"min-h-[36px]",children:me("div",{class:"rounded-job-card bg-neutral-2 flex h-[36px] animate-pulse items-center gap-2 px-2",children:[me("div",{class:"block h-6 w-6"}),me("p",{class:"text-style-tag text-neutral-6 pr-2 font-[500]",children:V.params.config.label})]})}):null]})},Tv=p=>p*1609.34,Sv=p=>p*1e3,VL=()=>{const p=typeof document>"u"?"":document.documentElement.lang;if(p)try{return Intl.getCanonicalLocales(p)[0]}catch{return}},g2=(p,v)=>new Intl.NumberFormat(VL()??p,{style:"unit",unit:v==="miles"?"mile":"kilometer",unitDisplay:"short",maximumFractionDigits:1,trailingZeroDisplay:"stripIfInteger"}),UL=(p,v,b)=>g2(b,v).format(p/(v==="miles"?Tv(1):Sv(1)));function $L(p){var v=typeof p;return p!=null&&(v=="object"||v=="function")}var a_=$L,GL=typeof Gd=="object"&&Gd&&Gd.Object===Object&&Gd,HL=GL,qL=HL,WL=typeof self=="object"&&self&&self.Object===Object&&self,ZL=qL||WL||Function("return this")(),l_=ZL,XL=l_,YL=function(){return XL.Date.now()},KL=YL,JL=/\s/;function QL(p){for(var v=p.length;v--&&JL.test(p.charAt(v)););return v}var ez=QL,tz=ez,iz=/^\s+/;function nz(p){return p&&p.slice(0,tz(p)+1).replace(iz,"")}var rz=nz,oz=l_,sz=oz.Symbol,Ev=sz,y2=Ev,v2=Object.prototype,az=v2.hasOwnProperty,lz=v2.toString,Jd=y2?y2.toStringTag:void 0;function cz(p){var v=az.call(p,Jd),b=p[Jd];try{p[Jd]=void 0;var C=!0}catch{}var D=lz.call(p);return C&&(v?p[Jd]=b:delete p[Jd]),D}var uz=cz,hz=Object.prototype,dz=hz.toString;function pz(p){return dz.call(p)}var fz=pz,x2=Ev,mz=uz,_z=fz,gz="[object Null]",yz="[object Undefined]",b2=x2?x2.toStringTag:void 0;function vz(p){return p==null?p===void 0?yz:gz:b2&&b2 in Object(p)?mz(p):_z(p)}var w2=vz;function xz(p){return p!=null&&typeof p=="object"}var bz=xz,wz=w2,Tz=bz,Sz="[object Symbol]";function Ez(p){return typeof p=="symbol"||Tz(p)&&wz(p)==Sz}var c_=Ez,Az=rz,T2=a_,Iz=c_,S2=0/0,Cz=/^[-+]0x[0-9a-f]+$/i,Pz=/^0b[01]+$/i,Mz=/^0o[0-7]+$/i,Rz=parseInt;function Dz(p){if(typeof p=="number")return p;if(Iz(p))return S2;if(T2(p)){var v=typeof p.valueOf=="function"?p.valueOf():p;p=T2(v)?v+"":v}if(typeof p!="string")return p===0?p:+p;p=Az(p);var b=Pz.test(p);return b||Mz.test(p)?Rz(p.slice(2),b?2:8):Cz.test(p)?S2:+p}var Lz=Dz,zz=a_,Av=KL,E2=Lz,kz="Expected a function",Oz=Math.max,Fz=Math.min;function Bz(p,v,b){var C,D,F,V,s,ee,re=0,ge=!1,oe=!1,Ee=!0;if(typeof p!="function")throw new TypeError(kz);v=E2(v)||0,zz(b)&&(ge=!!b.leading,oe="maxWait"in b,F=oe?Oz(E2(b.maxWait)||0,v):F,Ee="trailing"in b?!!b.trailing:Ee);function ye(It){var Rt=C,zt=D;return C=D=void 0,re=It,V=p.apply(zt,Rt),V}function Ue(It){return re=It,s=setTimeout(qe,v),ge?ye(It):V}function Te(It){var Rt=It-ee,zt=It-re,Nt=v-Rt;return oe?Fz(Nt,F-zt):Nt}function Pe(It){var Rt=It-ee,zt=It-re;return ee===void 0||Rt>=v||Rt<0||oe&&zt>=F}function qe(){var It=Av();if(Pe(It))return Re(It);s=setTimeout(qe,Te(It))}function Re(It){return s=void 0,Ee&&C?ye(It):(C=D=void 0,V)}function at(){s!==void 0&&clearTimeout(s),re=0,C=ee=D=s=void 0}function Qe(){return s===void 0?V:Re(Av())}function yt(){var It=Av(),Rt=Pe(It);if(C=arguments,D=this,ee=It,Rt){if(s===void 0)return Ue(ee);if(oe)return clearTimeout(s),s=setTimeout(qe,v),ye(ee)}return s===void 0&&(s=setTimeout(qe,v)),V}return yt.cancel=at,yt.flush=Qe,yt}var Nz=Bz;const jz=A0(Nz),A2=(p,v=1e3)=>{const[b,C]=Ri(p),D=qn(()=>jz(F=>C(F),v),[v]);return Bi(()=>{D(p)},[p,D]),b},Vz=Wn(({disabled:p,error:v,name:b,inputPlaceholder:C,items:D,onItemSelect:F,onEnter:V,onQueryChange:s,onBlur:ee,onFocus:re,inputProps:ge,menuProps:oe,query:Ee},ye)=>{const[Ue,Te]=Ri(!1),[Pe,qe]=Ri(),{t:Re}=Hr();Bi(()=>{var Qe;qe((Qe=D[0])==null?void 0:Qe.id)},[D]);const at=Qe=>{F(Qe),Te(!1)};return me("div",{class:"relative h-full",children:[me("input",{name:b,ref:ye,disabled:p,"data-active":Ue?"true":void 0,"aria-controls":`ijs-${b}-menu`,placeholder:C,class:Kd({size:"md"}),onFocus:()=>{re==null||re(),Te(!0)},onBlur:()=>{window.setTimeout(()=>{ee==null||ee(),Te(!1)},100)},value:Ee,onChange:Qe=>s(Qe.currentTarget.value),onKeyDown:Qe=>{switch(Te(!0),Qe.key){case"ArrowDown":case"ArrowUp":{const yt=Qe.key==="ArrowDown"?1:-1;Qe.preventDefault();const It=D.findIndex(zt=>zt.id===Pe);if(It===-1)return;const Rt=D[It+yt]??D[Qe.key==="ArrowDown"?0:D.length-1];if(!Rt)return;qe(Rt.id);break}case"Enter":Qe.preventDefault(),V(Pe)}},...ge}),!v&&Ue&&!p&&D.length>0?me("ul",{className:c2({ring:"unset",className:"ring-width-section rounded-input ring-job-card-stroke absolute left-0 right-0 top-12 z-50 w-full shadow-sm"}),id:`ijs-${b}-menu`,onMouseDown:Qe=>Qe.preventDefault(),...oe,children:v?me("div",{role:"alert",children:Re("geo_suggestions_error")}):D.map(Qe=>me("li",{class:u2({type:"line",className:"group/tag"}),children:me("button",{type:"button",onMouseEnter:()=>qe(Qe.id),class:h2({active:Qe.id===Pe,className:"line-clamp-1 overflow-hidden truncate"}),onClick:()=>at(Qe.id),onKeyDown:yt=>{yt.key==="Enter"&&at(Qe.id)},children:Qe.label})},Qe.id))}):null]})}),Uz=1e4;class I2 extends Error{constructor(){super("Timed out waiting for the browser location"),this.name="LocateTimeoutError"}}const $z=({signal:p,timeoutMs:v})=>new Promise((b,C)=>{if(p.aborted){C(new DOMException("Aborted","AbortError"));return}const D=setTimeout(()=>C(new I2),v);p.addEventListener("abort",()=>{clearTimeout(D),C(new DOMException("Aborted","AbortError"))},{once:!0}),navigator.geolocation.getCurrentPosition(F=>{clearTimeout(D),b(F.coords)},F=>{clearTimeout(D),C(F)},{timeout:v})}),Gz=1,Hz=3,qz=p=>{if(p instanceof DOMException&&p.name==="AbortError")return null;if(p instanceof I2)return"geo_error_timeout";const v=typeof p=="object"&&p!==null&&"code"in p?p.code:void 0;return v===Gz?"geo_error_permission_denied":v===Hz?"geo_error_timeout":"geo_error_position_unavailable"},Wz=()=>typeof window<"u"&&"geolocation"in navigator&&window.isSecureContext,Zz=({onLocate:p,onError:v,signal:b})=>{const[C,D]=Ri("idle"),[F,V]=Ri(null),{t:s}=Hr(),ee=ge=>{D("idle"),V(ge),p(ge)},re=ge=>{const oe=qz(ge);if(!oe)return D("idle");D("error"),v(s(oe))};return me("button",{"aria-label":s(C==="loading"?"geo_locating":"geo_my_location"),type:"button",onClick:()=>{if(C!=="loading"){if(F)return ee(F);if(!Wz())return re(void 0);D("loading"),$z({signal:b,timeoutMs:Uz}).then(ge=>ee({lat:ge.latitude,lng:ge.longitude})).catch(re)}},"data-state":C,class:Ga({variant:"accent",size:"lg",icon:"only",className:"data-[state=loading]:animate-pulse"}),children:me(Ir,{name:"target-location"})})},Qu=cs({base:"block fr font-style-tag font-family-tag font-weight-tag",variants:{variant:{neutralWeak:"text-tag-neutral-weak-copy bg-tag-neutral-weak-bg border-solid border-px border-tag-neutral-weak-stroke",neutralStrong:"text-tag-neutral-strong-copy bg-tag-neutral-strong-bg border-solid border-px border-tag-neutral-strong-stroke",accentStrong:"text-tag-accent-strong-copy bg-tag-accent-strong-bg border-solid border-px border-tag-accent-strong-stroke",monetaryWeak:"text-tag-monetary-weak-copy bg-tag-monetary-weak-bg border-solid border-px border-tag-monetary-weak-stroke"},interactive:{true:"ease-expo-out rounded-interactive transition-all duration-snappy",false:"rounded-tag"},size:{xs:"px-2 py-0.5 text-style-tag",sm:"px-3 py-1.5 text-style-tag",lg:"px-5 py-2.5 text-style-tag",unsized:""},disabled:{true:"opacity-25 pointer-events-none",false:""}},compoundVariants:[{disabled:!1,interactive:!0,class:"cursor-pointer active:scale-[0.975]"}],defaultVariants:{variant:"neutralWeak",size:"sm",disabled:!1,interactive:!1}}),Xz="https://api.mapbox.com/search/geocode/v6/forward",Yz="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",Kz=p=>atob(p).split("").reverse().join(""),Jz=ls({features:Bd(Ua(ls({properties:ls({mapbox_id:ir(),place_formatted:Pc(ir()),name_preferred:Pc(ir(),"Untitled location"),coordinates:Ua(ls({latitude:as(),longitude:as()}),Va(({latitude:p,longitude:v})=>({lat:p,lng:v})))})}),Va(p=>p.properties)))}),Qz=(p,v)=>Array.from(new Map(p.map(b=>[typeof v=="function"?v(b):b[v],b])).values()),C2=async p=>{if(!p)return[];const v=new URL(Xz);v.searchParams.set("q",p),v.searchParams.set("proximity","ip"),v.searchParams.set("access_token",Kz(Yz));const b=await fetch(v);if(!b.ok)throw new Error("Failed to get address details");const C=Ib(Jz,await b.json());if(C.success===!1)throw console.error(C.issues),new Error("Invalid data");const{features:D}=C.output;return Qz(D,F=>F.name_preferred+F.place_formatted)},ek=({onSelect:p,onValueChange:v,coords:b,radius:C,onError:D})=>{const{t:F}=Hr(),[V,s]=Ri(""),[ee,re]=Ri(),ge=A2(V,500),[oe,Ee]=Ri(new AbortController),ye=qd(ge,C2,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:Ue,queryState:Te,error:Pe}=Nd(ye),qe=mi(0),[Re,at]=Ri("view"),Qe=mi(null),yt=mi(null),It=mi(null),Rt=mi(!1);Bi(()=>{var Qt,ai;Re==="edit"&&((Qt=Qe.current)==null||Qt.focus()),Re==="view"&&b&&Rt.current&&(Rt.current=!1,(ai=It.current)==null||ai.focus())},[Re,b]);const zt=(Qt,ai)=>{var Ii;qe.current++,Rt.current=((Ii=yt.current)==null?void 0:Ii.contains(document.activeElement))??!1,p(Qt),re(ai),s(""),at("view")};return me("div",{ref:yt,class:"relative flex-1",children:[Re==="view"&&b?me("button",{ref:It,"aria-label":`${F("geo_search_placeholder")}: ${ee??F("location_provided")}`,type:"button",class:Kd({size:"unsized",className:"flex h-10 w-full cursor-text items-stretch px-1 py-1"}),onClick:()=>{at("edit")},children:me("div",{class:Qu({size:"sm",variant:"accentStrong",interactive:!0,class:"truncate"}),children:ee??F("location_provided")})}):me(Vz,{ref:Qe,error:Pe,query:V,name:"location-search",onQueryChange:Qt=>{qe.current++,s(Qt),D(void 0)},onFocus:()=>{oe.abort(),Ee(new AbortController)},onBlur:()=>{const Qt=Qe.current;if(!(!Qt||document.activeElement===Qt)){if(at("view"),b)return s("");Qt.value.trim()&&D(F("geo_choose_location"))}},onItemSelect:Qt=>{if(Te!=="loaded")return;const ai=Ue.find(Ii=>Ii.mapbox_id===Qt);ai&&zt(ai.coordinates,ai.name_preferred)},onEnter:async Qt=>{const ai=V.trim();if(!ai)return;const Ii=++qe.current;try{const Ut=ge===V&&Te==="loaded"?Ue:await C2(ai);if(Ii!==qe.current)return;const li=Ut.find(Xt=>Xt.mapbox_id===Qt)??Ut[0];if(li)return zt(li.coordinates,li.name_preferred);D(F("geo_no_match"))}catch{if(Ii!==qe.current)return;D(F("geo_suggestions_error"))}},inputPlaceholder:F("geo_search_placeholder"),inputProps:{enterkeyhint:"search"},items:(Ue==null?void 0:Ue.map(Qt=>({id:Qt.mapbox_id,label:me("div",{class:"flex min-w-0 max-w-full gap-2 overflow-hidden",children:[me("strong",{class:"truncate",children:Qt.name_preferred})," ",me("span",{class:"flex-1 truncate opacity-50",children:Qt.place_formatted})]})})))??[]}),me("div",{class:"absolute bottom-0 right-0 top-0 flex items-center",children:!V&&!b?me(Zz,{onLocate:Qt=>zt(Qt,F("geo_my_location")),onError:D,signal:oe.signal}):me("button",{type:"button","aria-label":F("geo_clear_search"),onClick:()=>{qe.current++,s(""),D(void 0),re(void 0),v({radius:C,type:"provided"}),at("edit"),Qe.current&&(Qe.current.value="",Qe.current.focus())},class:Ga({variant:"neutral",size:"lg",icon:"only"}),children:me(Ir,{name:"x"})})})]})},tk=[.25,.5,1,3,5,10,15,20,30,40],ik=[.5,1,3,5,10,15,25,50,100],nk=20,rk=25,ok=({value:p,onValueChange:v,distanceUnit:b="miles"})=>{const{t:C,locale:D}=Hr(),F=Rm(),[V,s]=Ri(),ee=qn(()=>g2(D,b),[D,b]),re=b==="miles"?Tv(nk):Sv(rk),ge=(p==null?void 0:p.type)==="provided"?p.radius:re,oe=(p==null?void 0:p.type)==="provided"?p.coords:void 0,Ee=b==="miles"?tk.map(ye=>({value:Tv(ye),label:ee.format(ye)})):ik.map(ye=>({value:Sv(ye),label:ee.format(ye)}));return me("div",{class:"flex flex-col gap-2",children:[me("div",{class:"flex flex-col gap-2 md:flex-row",children:[me(ek,{coords:oe,radius:ge,onValueChange:v,onSelect:ye=>{s(void 0),v({type:"provided",radius:ge,coords:ye})},onError:s}),me("div",{class:"relative",children:[me("label",{class:"sr-only",for:F,children:C("geo_range_label")}),me("select",{id:F,name:"radius",class:Kd({size:"unsized",className:"w-full appearance-none truncate py-2 pl-3 pr-10"}),disabled:!oe,value:oe?ge:"",onChange:ye=>{s(void 0),v({type:"provided",coords:oe,radius:Number(ye.currentTarget.value)})},children:[oe?null:me("option",{value:"",children:C("geo_any_distance")}),Ee.map(ye=>me("option",{value:ye.value,class:"truncate",children:ye.label},ye.value))]}),me("div",{class:"text-copy-neutral-lowcontrast pointer-events-none absolute bottom-0 right-0 top-0 flex w-10 items-center justify-center",children:me(Ir,{name:"chevron-right",class:"h-6 w-6 rotate-90"})})]})]}),V?me("div",{role:"alert",class:"text-pretty text-copy-neutral font-style-tag font-weight-tag text-style-tag flex gap-1",children:[me(Ir,{name:"warning",class:"animate-appear-tag size-[1lh] flex-none"}),V]}):null]})},sk=2,ak=({value:p,onValueChange:v})=>{const[b,C]=Ri(p??""),D=b!==""&&b===p,{t:F}=Hr();return Bi(()=>{C(p??"")},[p]),Bi(()=>{let V=b.trim();if(V.length<=sk&&(V=null),V===null){v("");return}const s=setTimeout(()=>{v(V)},300);return()=>clearTimeout(s)},[b,v]),me("div",{class:"flex flex-col gap-3",children:me("div",{class:"relative",children:[me("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[me(Ir,{"aria-hidden":!0,title:"Search by keyword",name:"magnifierSimple",class:Ou({"text-copy-neutral-icon":!D,"text-copy-accent-icon":D})}),me("span",{class:"sr-only",children:"Keyword"})]}),me("input",{autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"search",class:Kd({hasValue:D,size:"unsized",class:"peer py-2 pl-10 pr-4"}),placeholder:F("type_to_search_jobs"),value:b,onChange:V=>{C(V.currentTarget.value)}}),me("button",{type:"button",class:Ga({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{C("")},children:me(Ir,{name:"x"})})]})})},lk=({intervalMs:p,strings:v,class:b})=>{const[C,D]=Ri(0),[F,V]=Ri(!0),s=[...v,v[0]];return Bi(()=>{C===s.length&&(V(!1),D(0));const ee=setTimeout(()=>{V(!0),D(re=>re+1)},p);return()=>clearTimeout(ee)},[C,s.length,p]),me("div",{className:Ou("relative h-full w-full overflow-hidden",b),children:me("div",{className:Ou("absolute w-full",{"transition-transform duration-500 ease-in-out":F}),style:{height:`${100*s.length}%`,transform:`translateY(-${C*(100/s.length)}%)`},children:s.map((ee,re)=>me("div",{className:"flex items-center whitespace-nowrap",style:{height:`${100/s.length}%`},children:ee},re))})})},ck=(p,v)=>{Bi(()=>{const b=C=>{document.activeElement===p.current&&v(C)};return document.addEventListener("selectionchange",b),()=>document.removeEventListener("selectionchange",b)},[p,v])},P2=3,uk=({value:p,onValueChange:v,options:b})=>{const[C,D]=Ri(p??""),F=C.trim(),V=F!==""&&F===p,{t:s}=Hr(),ee=F.split("");Bi(()=>{D(p??"")},[p]);const[re,ge]=Ri(0),oe=mi(null);return ck(oe,Ee=>{Ee.target instanceof HTMLInputElement&&ge(Ee.target.scrollLeft)}),Bi(()=>{let Ee=C.trim();if(Ee.length<=P2&&(Ee=null),Ee===null){v("");return}const ye=setTimeout(()=>{v(Ee.trim())},1e3);return()=>clearTimeout(ye)},[C,v]),me("div",{class:"mb-2 flex flex-col gap-2",children:[me("div",{class:"relative",children:[me("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[me(Ir,{"aria-hidden":!0,title:"Search by keyword",name:"ai",class:Ou("duration-snappy transition-transform",{"text-copy-neutral-icon scale-90":!V,"text-copy-accent-icon":V})}),me("span",{class:"sr-only",children:"Keyword"})]}),me("input",{ref:oe,autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"text",placeholder:b!=null&&b.suggestions?b.suggestions.join(", "):" ",class:Kd({hasValue:V,size:"unsized",class:"peer px-10 py-2 tracking-tight !text-transparent placeholder:!text-transparent"}),style:{fontKerning:"none"},value:C,onChange:Ee=>{const ye=Ee.currentTarget.value.trim();D(ye)},onKeyDown:Ee=>{if(Ee.key==="Enter"){if(Ee.currentTarget.value.trim().length<=P2)return;Ee.preventDefault(),v(C)}}}),me("div",{"data-synced":V,class:"font-weight-input text-copy-neutral group pointer-events-none absolute inset-x-10 inset-y-0 flex overflow-hidden tracking-tight peer-placeholder-shown:right-0",children:F.length>0?me("div",{"aria-hidden":!0,class:"flex items-center whitespace-nowrap",style:{transform:`translateX(${-re}px)`},children:ee.map((Ee,ye)=>me("span",{style:{animationDelay:`${ye*300/ee.length}ms`},class:"group-data-[synced=true]:animate-ai-letter inline-block",children:Ee===" "?" ":Ee},F+ye))}):b!=null&&b.suggestions?me(lk,{intervalMs:2e3,strings:b.suggestions,class:"opacity-30","aria-hidden":!0}):null}),me("button",{type:"button",class:Ga({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{D(""),v("")},children:me(Ir,{name:"x"})})]}),me("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:s("ai_disclaimer")})]})},u_=cs({base:"fr flex min-h-8 min-w-0 items-center justify-center cursor-pointer text-style-tag rounded-interactive active:scale-95 transition-all duration-snappy pl-2 pr-2.5 py-1.5 gap-1",variants:{active:{true:"bg-lowest text-neutral-12 shadow-sm animate-appear-tag",false:"text-neutral-10 hover:text-neutral-12"}},defaultVariants:{active:!1}}),M2="bg-neutral-3 rounded-interactive ring-neutral-3 mr-[3px] inline-flex min-w-0 max-w-full ring-[3px]",hk=({value:p,onValueChange:v})=>{const{t:b}=Hr();return me("div",{class:M2,children:[me("button",{type:"button","aria-pressed":p==="list",class:u_({active:p==="list"}),onClick:()=>v("list"),children:[me(Ir,{name:"list",class:"size-5 shrink-0"}),me("span",{children:b("list")})]}),me("button",{type:"button","aria-pressed":p==="map",class:u_({active:p==="map"}),onClick:()=>v("map"),children:[me(Ir,{name:"map",class:"size-5 shrink-0"}),me("span",{children:b("map")})]})]})},dk=({state:p,onValueChange:v})=>{var D;const{t:b}=Hr(),C=p.query.trim()?"sort_most_relevant":((D=p.geo)==null?void 0:D.type)==="provided"&&p.geo.coords?"sort_closest":void 0;return C?me("div",{role:"group","aria-label":b("sort_by"),class:M2,children:[me("button",{type:"button","aria-pressed":!p.resultOrder,class:u_({active:!p.resultOrder}),onClick:()=>v(void 0),children:b(C)}),me("button",{type:"button","aria-pressed":p.resultOrder==="newest",class:u_({active:p.resultOrder==="newest"}),onClick:()=>v("newest"),children:b("sort_newest")})]}):null};var pk=Array.isArray,Iv=pk,fk=Iv,mk=c_,_k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gk=/^\w*$/;function yk(p,v){if(fk(p))return!1;var b=typeof p;return b=="number"||b=="symbol"||b=="boolean"||p==null||mk(p)?!0:gk.test(p)||!_k.test(p)||v!=null&&p in Object(v)}var vk=yk,xk=w2,bk=a_,wk="[object AsyncFunction]",Tk="[object Function]",Sk="[object GeneratorFunction]",Ek="[object Proxy]";function Ak(p){if(!bk(p))return!1;var v=xk(p);return v==Tk||v==Sk||v==wk||v==Ek}var Ik=Ak,Ck=l_,Pk=Ck["__core-js_shared__"],Mk=Pk,Cv=Mk,R2=function(){var p=/[^.]+$/.exec(Cv&&Cv.keys&&Cv.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}();function Rk(p){return!!R2&&R2 in p}var Dk=Rk,Lk=Function.prototype,zk=Lk.toString;function kk(p){if(p!=null){try{return zk.call(p)}catch{}try{return p+""}catch{}}return""}var Ok=kk,Fk=Ik,Bk=Dk,Nk=a_,jk=Ok,Vk=/[\\^$.*+?()[\]{}|]/g,Uk=/^\[object .+?Constructor\]$/,$k=Function.prototype,Gk=Object.prototype,Hk=$k.toString,qk=Gk.hasOwnProperty,Wk=RegExp("^"+Hk.call(qk).replace(Vk,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Zk(p){if(!Nk(p)||Bk(p))return!1;var v=Fk(p)?Wk:Uk;return v.test(jk(p))}var Xk=Zk;function Yk(p,v){return p==null?void 0:p[v]}var Kk=Yk,Jk=Xk,Qk=Kk;function eO(p,v){var b=Qk(p,v);return Jk(b)?b:void 0}var D2=eO,tO=D2,iO=tO(Object,"create"),h_=iO,L2=h_;function nO(){this.__data__=L2?L2(null):{},this.size=0}var rO=nO;function oO(p){var v=this.has(p)&&delete this.__data__[p];return this.size-=v?1:0,v}var sO=oO,aO=h_,lO="__lodash_hash_undefined__",cO=Object.prototype,uO=cO.hasOwnProperty;function hO(p){var v=this.__data__;if(aO){var b=v[p];return b===lO?void 0:b}return uO.call(v,p)?v[p]:void 0}var dO=hO,pO=h_,fO=Object.prototype,mO=fO.hasOwnProperty;function _O(p){var v=this.__data__;return pO?v[p]!==void 0:mO.call(v,p)}var gO=_O,yO=h_,vO="__lodash_hash_undefined__";function xO(p,v){var b=this.__data__;return this.size+=this.has(p)?0:1,b[p]=yO&&v===void 0?vO:v,this}var bO=xO,wO=rO,TO=sO,SO=dO,EO=gO,AO=bO;function eh(p){var v=-1,b=p==null?0:p.length;for(this.clear();++v<b;){var C=p[v];this.set(C[0],C[1])}}eh.prototype.clear=wO,eh.prototype.delete=TO,eh.prototype.get=SO,eh.prototype.has=EO,eh.prototype.set=AO;var IO=eh;function CO(){this.__data__=[],this.size=0}var PO=CO;function MO(p,v){return p===v||p!==p&&v!==v}var RO=MO,DO=RO;function LO(p,v){for(var b=p.length;b--;)if(DO(p[b][0],v))return b;return-1}var d_=LO,zO=d_,kO=Array.prototype,OO=kO.splice;function FO(p){var v=this.__data__,b=zO(v,p);if(b<0)return!1;var C=v.length-1;return b==C?v.pop():OO.call(v,b,1),--this.size,!0}var BO=FO,NO=d_;function jO(p){var v=this.__data__,b=NO(v,p);return b<0?void 0:v[b][1]}var VO=jO,UO=d_;function $O(p){return UO(this.__data__,p)>-1}var GO=$O,HO=d_;function qO(p,v){var b=this.__data__,C=HO(b,p);return C<0?(++this.size,b.push([p,v])):b[C][1]=v,this}var WO=qO,ZO=PO,XO=BO,YO=VO,KO=GO,JO=WO;function th(p){var v=-1,b=p==null?0:p.length;for(this.clear();++v<b;){var C=p[v];this.set(C[0],C[1])}}th.prototype.clear=ZO,th.prototype.delete=XO,th.prototype.get=YO,th.prototype.has=KO,th.prototype.set=JO;var QO=th,e3=D2,t3=l_,i3=e3(t3,"Map"),n3=i3,z2=IO,r3=QO,o3=n3;function s3(){this.size=0,this.__data__={hash:new z2,map:new(o3||r3),string:new z2}}var a3=s3;function l3(p){var v=typeof p;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?p!=="__proto__":p===null}var c3=l3,u3=c3;function h3(p,v){var b=p.__data__;return u3(v)?b[typeof v=="string"?"string":"hash"]:b.map}var p_=h3,d3=p_;function p3(p){var v=d3(this,p).delete(p);return this.size-=v?1:0,v}var f3=p3,m3=p_;function _3(p){return m3(this,p).get(p)}var g3=_3,y3=p_;function v3(p){return y3(this,p).has(p)}var x3=v3,b3=p_;function w3(p,v){var b=b3(this,p),C=b.size;return b.set(p,v),this.size+=b.size==C?0:1,this}var T3=w3,S3=a3,E3=f3,A3=g3,I3=x3,C3=T3;function ih(p){var v=-1,b=p==null?0:p.length;for(this.clear();++v<b;){var C=p[v];this.set(C[0],C[1])}}ih.prototype.clear=S3,ih.prototype.delete=E3,ih.prototype.get=A3,ih.prototype.has=I3,ih.prototype.set=C3;var P3=ih,k2=P3,M3="Expected a function";function Pv(p,v){if(typeof p!="function"||v!=null&&typeof v!="function")throw new TypeError(M3);var b=function(){var C=arguments,D=v?v.apply(this,C):C[0],F=b.cache;if(F.has(D))return F.get(D);var V=p.apply(this,C);return b.cache=F.set(D,V)||F,V};return b.cache=new(Pv.Cache||k2),b}Pv.Cache=k2;var R3=Pv,D3=R3,L3=500;function z3(p){var v=D3(p,function(C){return b.size===L3&&b.clear(),C}),b=v.cache;return v}var k3=z3,O3=k3,F3=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B3=/\\(\\)?/g,N3=O3(function(p){var v=[];return p.charCodeAt(0)===46&&v.push(""),p.replace(F3,function(b,C,D,F){v.push(D?F.replace(B3,"$1"):C||b)}),v}),j3=N3;function V3(p,v){for(var b=-1,C=p==null?0:p.length,D=Array(C);++b<C;)D[b]=v(p[b],b,p);return D}var U3=V3,O2=Ev,$3=U3,G3=Iv,H3=c_,q3=1/0,F2=O2?O2.prototype:void 0,B2=F2?F2.toString:void 0;function N2(p){if(typeof p=="string")return p;if(G3(p))return $3(p,N2)+"";if(H3(p))return B2?B2.call(p):"";var v=p+"";return v=="0"&&1/p==-q3?"-0":v}var W3=N2,Z3=W3;function X3(p){return p==null?"":Z3(p)}var Y3=X3,K3=Iv,J3=vk,Q3=j3,eF=Y3;function tF(p,v){return K3(p)?p:J3(p,v)?[p]:Q3(eF(p))}var iF=tF,nF=c_,rF=1/0;function oF(p){if(typeof p=="string"||nF(p))return p;var v=p+"";return v=="0"&&1/p==-rF?"-0":v}var sF=oF,aF=iF,lF=sF;function cF(p,v){v=aF(v,p);for(var b=0,C=v.length;p!=null&&b<C;)p=p[lF(v[b++])];return b&&b==C?p:void 0}var uF=cF,hF=uF;function dF(p,v,b){var C=p==null?void 0:hF(p,v);return C===void 0?b:C}var pF=dF;const fF=A0(pF),Qd=({chars:p})=>me("span",{style:{width:p+"ch"},class:"rounded-job-tag block h-[1lh] min-h-[1em] bg-[currentColor] opacity-25"}),j2=cs({base:"ijs-job relative rounded-job-card bg-job-card-bg ring-width-job-card ring-job-card-stroke flex gap-4 fr ease-expo-out min-w-0 p-4 transition-all duration-medium",variants:{interactive:{true:"active:bg-job-card-bg-active active:ring-job-card-stroke-active hover:bg-job-card-bg-active hover:ring-job-card-stroke-active active:scale-[0.975]",false:"animate-skeleton"}},defaultVariants:{interactive:!0}}),mF=cs({base:"font-style-job-heading font-weight-job-heading text-copy-neutral font-family-job-heading text-pretty",variants:{size:{sm:"text-style-filter",default:"text-style-job-heading"}},defaultVariants:{size:"default"}}),Mv=({job:p,property:v})=>{if(!v)return null;const b=fF(p.raw,v.key);return v.transform?v.transform(b):b},_F=({job:p,config:v="hidden"})=>v==="hidden"?null:me("div",{class:"rounded-logo h-12 flex-none overflow-hidden",style:{aspectRatio:v.replace(":","/")},children:p.company.logo?me("img",{src:p.company.logo,alt:p.company.name,class:"h-full w-full select-none object-contain [-webkit-user-drag:none]"}):null}),V2=p=>Array.isArray(p)?p:[p],gF=1e3*60*60*24,U2=({job:p,config:v,onJobClick:b,size:C,distanceUnit:D})=>{var Pe,qe,Re;const{t:F,locale:V}=Hr(),s=p.distanceMeters===null?null:F("distance_away",{distance:UL(p.distanceMeters,D??"miles",V)}),ee=v.subheading?Mv({job:p,property:v.subheading}):null,re=v.infoTags.flatMap(at=>V2(Mv({job:p,property:at}))).filter(Boolean),ge=V2((Pe=v.overrides)!=null&&Pe.salary?Mv({job:p,property:v.overrides.salary}):p.pay).filter(Boolean),oe=v.postedDate??"show",Ee=(qe=v.overrides)!=null&&qe.baseUrl?v.overrides.baseUrl(p.id.toString()):p.href,ye=v.newUnderDays??7,Ue=p.createdAt?new Date(p.createdAt).getTime()>Date.now()-ye*gF:!1,Te=at=>{var Qe,yt;b==null||b(p),(yt=(Qe=v.overrides)==null?void 0:Qe.onClick)==null||yt.call(Qe,at)};return me("a",{onMouseEnter:(Re=v.overrides)==null?void 0:Re.onMouseEnter,onClick:Te,href:Ee,target:v.openJob==="redirect-new-tab"?"_blank":void 0,class:j2(),children:[me("div",{class:"flex min-w-0 flex-1 flex-col gap-4",children:[me("div",{class:"gap-logo flex items-center",children:[me(_F,{job:p,config:C!=="sm"?v.logo:void 0}),me("div",{class:"flex flex-col items-start gap-1",children:[me("div",{class:"order-2 flex flex-col gap-1",children:[p.match?me("p",{class:"text-style-job-card text-tag-accent-strong-bg flex items-center ",children:[me(Ir,{name:"ai",class:"size-4 inline-block"}),me("span",{children:p.match})]}):null,me("p",{class:mF({size:C}),children:[p.title.trim(),Ue&&oe!=="hide"&&me(Hi,{children:[" ",me("span",{"aria-hidden":!0,class:"ring-px ring-tag-accent-strong-bg rounded-job-card text-tag-accent-strong-bg font-weight-tag not-sr-only order-1 inline-block px-2 py-1 align-middle text-[10px] leading-none",children:F("new")})]})]}),ee?me("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:ee}):null]}),oe==="show"?me("p",{class:"text-style-job-card-info text-copy-job-info order-1",children:[F("posted")," ",p.relativePostedDate]}):null]})]}),me("div",{class:"flex min-w-0 flex-col items-start gap-2",children:[s?me("p",{class:"text-style-job-card-info text-copy-job-info flex items-center gap-1",children:[me(Ir,{name:"target-location",class:"size-4 flex-none","aria-hidden":!0}),s]}):null,me("div",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:ge.map((at,Qe)=>me("span",{class:Qu({variant:"monetaryWeak",size:"xs"}),children:at},Qe))}),re.length>0&&me("ul",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:re.map(at=>me("li",{class:Qu({size:"xs",class:"max-w-full truncate"}),children:at},at))})]})]}),C==="sm"?me("div",{"aria-hidden":!0,class:"absolute right-1 top-1/2 -translate-y-1/2 transform",children:me(Ir,{name:"chevron-right",class:"size-5 text-copy-neutral-icon"})}):me("div",{"aria-hidden":!0,class:"flex items-center",children:me(Ir,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},Rv=({config:p,animationDelay:v,seed:b})=>{const C=p.logo??"hidden",D=p.postedDate??"show";return me("div",{"aria-hidden":!0,style:{animationDelay:v+"s"},class:j2({interactive:!1}),children:[me("div",{class:"flex flex-1 flex-col gap-4",children:[me("div",{class:"flex items-center gap-4",children:[C==="hidden"?null:me("div",{class:"rounded-logo bg-copy-neutral h-12 opacity-25",style:{aspectRatio:C.replace(":","/")}}),me("div",{class:"flex flex-col items-start gap-1",children:[D==="show"?me("p",{class:"text-style-job-card-info text-copy-job-info",children:me(Qd,{chars:12})}):null,me("div",{class:"flex flex-col gap-1",children:[me("p",{class:"text-style-job-heading font-style-job-heading font-weight-job-heading text-copy-neutral font-family-job-heading",children:me(Qd,{chars:13+(b+5)*b%7})}),p.subheading!==null?me("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:me(Qd,{chars:7+b*b%3})}):null]})]})]}),me("div",{class:"flex flex-col items-start gap-2",children:[b%2===0&&me("span",{class:Qu({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[10ch]"})}),me("div",{class:"flex items-center gap-2",children:[me("span",{class:Qu({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[6ch]"})}),me("span",{class:Qu({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[8ch]"})})]})]})]}),me("div",{"aria-hidden":!0,class:"flex items-center",children:me(Ir,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},yF=({state:p,fetchNextPage:v,config:b,remainingItems:C})=>{const{t:D}=Hr(),F=Math.min(Mc,C);return p==="revalidating"?me("ul",{class:"flex flex-col gap-3","aria-hidden":!0,children:Array.from({length:Mc}).map((V,s)=>me("li",{children:me(Rv,{seed:s,animationDelay:(s-4)*.1,config:b})},s))}):me("button",{type:"button",class:Ga({variant:"neutral",class:"w-full max-w-[45rem] self-center py-2"}),onClick:v,children:[D("load_more_count",{count:F})," ",D("of_remaining_count",{count:C})]})},vF=({state:p,rpcClient:v,jobCardConfig:b,initialData:C,onResultsUpdate:D,onJobClick:F,onPaginate:V,mode:s,afterResults:ee,prioritySegment:re,i18n:ge,distanceUnit:oe})=>me(Hi,{children:Array.from({length:p.page}).map((Ee,ye)=>{const Ue=ye===p.page-1;return me(Vd,{Fallback:wl,children:me(xF,{state:p,rpcClient:v,page:ye+1,isFirst:ye===0,isLast:Ue,fetchNextPage:()=>{V(p.page+1)},jobCardConfig:b,initialData:C,onResultsUpdate:D,onJobClick:F,mode:s,afterResults:ee,prioritySegment:re,i18n:ge,distanceUnit:oe},ye)},ye)})}),$2=({page:p})=>{const{t:v}=Hr();return me("div",{"aria-hidden":!0,class:"text-copy-neutral-lowcontrast mx-auto flex w-full max-w-[45rem] gap-2 py-4",onClick:b=>{b.preventDefault()},children:[me("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"}),me("span",{class:"text-style-tag justify-center text-center",children:[v("page")," ",p]}),me("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"})]})},xF=({state:p,rpcClient:v,page:b,isFirst:C,isLast:D,fetchNextPage:F,jobCardConfig:V,initialData:s,onResultsUpdate:ee,onJobClick:re,afterResults:ge,prioritySegment:oe,i18n:Ee,distanceUnit:ye})=>{const{t:Ue}=Hr(),Te=b===1?s:void 0,{data:Pe,error:qe,queryState:Re,swr:at}=Nd(qd(jm({state:p,baseKey:b.toString()}),()=>kb({rpcClient:v,state:p,page:b,t:Ue,prioritySegment:oe,locale:Ee?Ee.locale:void 0,fallbackLocale:Ee?Ee.fallbackLocale:void 0}),{...Pm,fallbackData:Te}));switch(Bi(()=>{Pe&&C&&ee&&ee({totalCount:Pe.pagination.total})},[Pe,C,ee]),Re){case"idle":return null;case"loading":return me(Hi,{children:[C?me("div",{class:"flex w-full max-w-[45rem] items-center justify-between gap-3 self-center",children:[me("p",{class:"animate-skeleton text-copy-neutral-lowcontrast text-style-tag m-0 min-w-0 max-w-[25%] flex-none p-0 text-left [overflow-wrap:anywhere]",children:me(Qd,{chars:8})}),me("div",{class:"flex min-w-0 flex-1 justify-end",children:ge})]}):me($2,{page:b}),me("ul",{class:"flex w-full max-w-[45rem] flex-col gap-3 self-center","aria-hidden":!0,children:Array.from({length:Mc}).map((Qe,yt)=>me("li",{children:me(Rv,{seed:yt,animationDelay:(yt-Mc)*.1,config:V})},yt))})]});case"error":return me(wl,{error:new Error(Ue("jobs_loading_error"),{cause:qe}),resetError:()=>at.mutate()});case"revalidating":case"loaded":{if(Zs(Pe.pagination.current_page===b,"Received wrong page from server"),Pe.pagination.total===0)return me("div",{class:"mx-auto flex flex-col items-center gap-2 px-2 py-4 text-center",children:[me(Ir,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),me("div",{class:"flex flex-col items-center gap-1",children:[me("p",{class:"text-copy-neutral text-style-job-heading",children:Ue("no_jobs_found")}),me("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:Ue("no_jobs_found_description")})]})]});const Qe=Pe.pagination.last_page!==Pe.pagination.current_page,yt=b*Mc,It=Math.max(Pe.pagination.total-yt,0),Rt=zt=>{re(zt,b)};return me(Hi,{children:[C?me("div",{class:"flex w-full max-w-[45rem] items-center justify-between gap-3 self-center",children:[me("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 min-w-0 max-w-[25%] flex-none p-0 text-left [overflow-wrap:anywhere]",children:Ue("jobs_found",{count:Pe.pagination.total})}),me("div",{class:"flex min-w-0 flex-1 justify-end",children:ge})]}):me($2,{page:b}),me("ul",{"aria-label":`Page ${b}`,class:"flex w-full max-w-[45rem] flex-col gap-3 self-center",children:Pe.results.map(zt=>me("li",{class:"ease-expo-out duration-slow transition-opacity",style:{opacity:Re==="revalidating"?.33:1},children:me(U2,{job:zt,onJobClick:Rt,config:V,distanceUnit:ye})},zt.id))}),Qe&&D&&me(yF,{state:Re,fetchNextPage:F,config:V,remainingItems:It})]})}default:os(Re)}},bF=S0(()=>Promise.resolve().then(()=>MF).then(p=>p.Map)),wF=({state:p,rpcClient:v,mapConfig:b,onGeoChange:C,afterResults:D,onJobClick:F,jobCardConfig:V,prioritySegment:s,i18n:ee,distanceUnit:re})=>{var qe,Re;const{t:ge}=Hr(),[oe,Ee]=Ri(new AbortController),ye=Gw("(max-width: 767px)"),Ue=xn(at=>{C(at),oe.abort(),Ee(new AbortController)},[C,oe]),Te=Nd(qd(jm({state:p,baseKey:"map",mode:p.mode}),()=>gP({rpcClient:v,state:p,t:ge,signal:oe.signal,prioritySegment:s,locale:ee?ee.locale:void 0,fallbackLocale:ee?ee.fallbackLocale:void 0}),Pm));if(Te.queryState==="error")return me(wl,{error:new Error(ge("jobs_loading_error"),{cause:Te.error}),resetError:()=>Te.swr.mutate()});const Pe=Te.queryState==="loaded"||Te.queryState==="revalidating";return me(Hi,{children:[me("div",{class:"flex items-center justify-between gap-3",children:[me("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 min-w-0 max-w-[25%] flex-none p-0 text-left [overflow-wrap:anywhere]",children:Pe?Te.data.results.length!==0&&ge("map_jobs_showing",{count:Te.data.results.length}):me("div",{class:"animate-skeleton",children:me(Qd,{chars:8})})}),me("div",{class:"flex min-w-0 flex-1 justify-end",children:D})]}),me("div",{class:"theme-fill:bg-neutral-2 theme-stroke:bg-lowest ring-px theme-fill:ring-neutral-3 theme-stroke:ring-neutral-3 theme-soft:rounded-lg theme-rounded:rounded-xl relative flex h-auto flex-col items-stretch overflow-hidden md:h-[70svh] md:flex-row",children:[me("div",{class:"aspect-square flex-1 md:order-2 md:aspect-auto md:min-w-80",children:Pe?me(Bu,{fallback:me("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"}),children:me(bF,{config:b,mapData:Te,autoFit:((qe=p.geo)==null?void 0:qe.type)!=="bounds",onBoundsChange:Ue})}):me("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"})}),me("ul",{class:"flex h-full w-full snap-x snap-proximity scroll-px-4 gap-3 overflow-auto p-4 md:order-1 md:max-w-xl md:flex-col",children:[((Re=Te.data)==null?void 0:Re.results.length)===0?me("div",{class:"mx-auto flex h-full w-full flex-col items-center justify-center gap-2 text-center",children:[me(Ir,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),me("div",{class:"flex flex-col items-center gap-1",children:[me("p",{class:"text-copy-neutral text-style-job-heading",children:ge("no_jobs_found")}),me("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:ge("no_jobs_found_description")})]})]}):null,Pe?Te.data.results.map(at=>me("li",{class:"ease-expo-out duration-slow min-w-[calc(100%-1rem)] snap-start transition-opacity",style:{opacity:Te.queryState==="revalidating"?.33:1},children:me(U2,{job:at,onJobClick:Qe=>F(Qe,1),config:V,size:ye?"sm":void 0,distanceUnit:re})},at.id)):Array.from({length:6}).map((at,Qe)=>me("li",{children:me(Rv,{seed:Qe,animationDelay:(Qe-6)*.1,config:V})},Qe))]})]})]})},TF=p=>{var C;const v=p.state.view,b=me("div",{class:"flex min-w-0 max-w-full flex-wrap items-center justify-end gap-3",children:[(C=p.mapConfig)!=null&&C.enabled?me(hk,{value:v,onValueChange:p.onViewChange}):null,me(dk,{state:p.state,onValueChange:p.onResultOrderChange})]});return v==="list"?me(vF,{afterResults:b,...p}):me(wF,{...p,afterResults:b})},Dv=(p,v="value")=>p.reduce((b,C)=>{switch(C.select){case"one":{const D=C.value??C[v],F=typeof D=="string"?D:D==null?void 0:D[0];b[C.key]={select:C.select,value:F};break}case"many":{const D=C.value??C[v],F=typeof D=="string"?[D]:Array.isArray(D)?D:[];b[C.key]={select:C.select,value:F};break}default:os(C.select)}return b},{}),ep=p=>Object.fromEntries(Object.entries(p).map(([v,b])=>{const C=b==null?void 0:b.value;return[v,Array.isArray(C)?C:C?[C]:[]]}).filter(([,v])=>v!==void 0&&v.length>0)),G2=p=>(p==null?void 0:p.type)==="bounds"?void 0:p,SF=({rpcClient:p,properties:v,analytics:b,initialData:C,onStateChange:D,params:F})=>{var zt,Nt,Qt,ai,Ii,Ut,li;const{t:V}=Hr(),s=mi(null),ee=qn(()=>Dv(v,"defaultValue"),[v]),[re,ge]=Ri(!0),[oe,Ee]=Ri(()=>typeof F.initialState=="function"?F.initialState(F):F.initialState),[ye,Ue]=Ri(0),{onJobClick:Te,analyticsPaginate:Pe}=EF({appRef:s,analytics:b,state:oe,hasInteracted:!re,totalCount:ye,defaultFilters:ee}),qe=xn(Xt=>{Ee(Dt=>{if(Dt.page===Xt)return Dt;const Tt={...Dt,page:Xt};return D==null||D(Tt),Tt}),Pe(Xt)},[Pe,D]),Re=xn(Xt=>{Ee(Dt=>{const Tt={...Dt,view:Xt};return D==null||D(Tt),Tt})},[D]),at=xn(Xt=>{Ee(Dt=>{var ji;if(!Dt.query&&!Xt||Dt.query===Xt)return Dt;ge(!1);const Tt=G2(Dt.geo),Wt={...Dt,query:Xt,geo:Tt,page:1,mode:(ji=F.naturalLanguageSearch)!=null&&ji.enabled?"vector":"query"};return D==null||D(Wt),Wt})},[D,(zt=F.naturalLanguageSearch)==null?void 0:zt.enabled]),Qe=xn(Xt=>{ge(!1),Ee(Dt=>{const Tt={...Dt,geo:Xt,page:1};return D==null||D(Tt),Tt})},[D]),yt=xn(()=>{ge(!1),Ee(Xt=>{const Dt={...Xt,filters:Dv(v,"defaultValue"),query:"",geo:void 0,page:1,resultOrder:void 0};return D==null||D(Dt),Dt})},[D,v]),It=xn(Xt=>{Ee(Dt=>{if(Dt.resultOrder===Xt)return Dt;ge(!1);const Tt={...Dt,resultOrder:Xt,page:1};return D==null||D(Tt),Tt})},[D]),Rt=qn(()=>(p.environment,new Map),[p.environment]);return me(xM,{value:{provider:()=>Rt},children:me("div",{ref:s,class:Ou("ijs-app font-family-default font-weight-default font-style-default flex min-h-screen flex-col gap-4",{"reduce-motion":(Nt=F.theme.accessibility)==null?void 0:Nt.reducedMotion},K0(F.theme)),children:[me(Vd,{Fallback:wl,children:me("div",{class:"flex flex-col gap-2",children:[me("div",{class:"px-4",children:me("div",{class:"bg-section-strong-bg ring-section-weak-stroke rounded-section ring-px lg:ring-width-section flex flex-col gap-4 p-4 md:flex-row",children:[me("section",{class:"flex flex-1 flex-col gap-1",children:[me("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:V("search_label")}),(Qt=F.naturalLanguageSearch)!=null&&Qt.enabled?me(uk,{value:oe.query,onValueChange:at,options:F.naturalLanguageSearch}):F.enableKeywordSearch?me(ak,{value:oe.query,onValueChange:at}):null]}),(ai=F.geolocation)!=null&&ai.enabled?me("section",{class:"flex flex-1 flex-col gap-1",children:[me("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:V("geo_label")}),me(ok,{value:oe.geo,distanceUnit:F.geolocation.distanceUnit,onValueChange:Xt=>{ge(!1),Ee(Dt=>{const Tt={...Dt,geo:Xt,page:1};return D==null||D(Tt),Tt}),Pe(1)}})]}):null]})}),me(jL,{state:oe,onFilterValueChange:(Xt,Dt)=>{ge(!1),Ee(Tt=>{const Wt={...Tt.filters,[Xt]:Dt},ji=G2(Tt.geo),En={...Tt,filters:Wt,geo:ji,page:1};return D==null||D(En),En}),Pe(1)},onResetFilters:yt,properties:v,rpcClient:p,alerts:F.alerts,theme:F.theme,widgetId:F.widgetId,i18n:F.i18n})]})}),me("section",{class:"flex flex-col gap-4 overflow-hidden px-4 py-4",children:[me(Vd,{Fallback:wl,children:me(TF,{state:oe,rpcClient:p,jobCardConfig:F.jobCard,mapConfig:F.map,initialData:re?C==null?void 0:C.jobs:void 0,onResultsUpdate:Xt=>{Ue(Xt.totalCount)},onJobClick:Te,onPaginate:qe,mode:(Ii=F.naturalLanguageSearch)!=null&&Ii.enabled?"vector":"query",onGeoChange:Qe,onViewChange:Re,onResultOrderChange:It,prioritySegment:(Ut=F.results)==null?void 0:Ut.prioritySegment,distanceUnit:(li=F.geolocation)==null?void 0:li.distanceUnit,i18n:F.i18n})}),F.feedback?me("div",{class:"flex flex-wrap items-center justify-center gap-2",children:[me("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:V("feedback")}),me("div",{"data-widget":"inploi-feedback","data-key":"job-search",children:me("div",{class:"rounded-job-card bg-neutral-2 h-8 w-[72px] animate-pulse"})})]}):null]})]})})},EF=({appRef:p,analytics:v,state:b,defaultFilters:C,totalCount:D,hasInteracted:F})=>{const V=xn((re=1)=>({query:b.query,mode:b.mode,filters:ep(b.filters),default_filters:ep(C),total_count:D,page_size:Mc,page:re}),[b.query,b.mode,b.filters,C,D]);return bM(p,{minViewTime:2e3,onView:()=>{v.log({event:"VIEW_SEARCH",properties:V()})}}),Bi(()=>{const re=window.setTimeout(()=>{F&&(!b.query&&!Object.keys(ep(b.filters)).length||D!==0&&v.log({event:"SEARCH_SETTLE",properties:V()}))},5e3);return()=>{clearTimeout(re)}},[v,F,V,D,b.query,b.filters]),{onJobClick:(re,ge)=>{v.log({event:"SEARCH_JOB_CLICK",properties:{job_id:re.id,...V(ge)}})},analyticsPaginate:re=>{v.log({event:"SEARCH_PAGINATE",properties:V(re)})}}},AF=`.inploi-job-search{font-size:16px}.inploi-job-search *,.inploi-job-search :before,.inploi-job-search :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.inploi-job-search ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.inploi-job-search{--tw-content: ""}.inploi-job-search *{box-sizing:border-box;border-style:solid;border-width:0;-webkit-tap-highlight-color:transparent;font-family:inherit;font-style:inherit;font-weight:inherit}.inploi-job-search :before,.inploi-job-search :after{box-sizing:border-box}.inploi-job-search :is(a){text-decoration:none}.inploi-job-search :is(ul,ol){list-style:none;padding:0;margin:0}.inploi-job-search :is(p){margin:0;padding:0}.inploi-job-search :is(li){margin:0;padding:0;list-style:none}.inploi-job-search :is(button),.inploi-job-search :is(a){display:block;margin:0;padding:0;border:unset;background:unset;text-align:unset}.inploi-job-search :is(input),.inploi-job-search :is(textarea){display:block;margin:0;padding:0;min-width:0;max-width:unset;width:100%}.inploi-job-search :is(svg){display:block}.inploi-job-search :is(button){touch-action:manipulation}.inploi-job-search input[type=search]::-webkit-search-decoration,.inploi-job-search input[type=search]::-webkit-search-cancel-button,.inploi-job-search input[type=search]::-webkit-search-results-button,.inploi-job-search input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}@media (prefers-reduced-motion){.inploi-job-search *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;animation-delay:0s!important}}.inploi-job-search .container{width:100%}@media (min-width: 640px){.inploi-job-search .container{max-width:640px}}@media (min-width: 768px){.inploi-job-search .container{max-width:768px}}@media (min-width: 1024px){.inploi-job-search .container{max-width:1024px}}@media (min-width: 1280px){.inploi-job-search .container{max-width:1280px}}@media (min-width: 1536px){.inploi-job-search .container{max-width:1536px}}.inploi-job-search .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.inploi-job-search .not-sr-only{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}.inploi-job-search .pointer-events-none{pointer-events:none}.inploi-job-search .visible{visibility:visible}.inploi-job-search .invisible{visibility:hidden}.inploi-job-search .collapse{visibility:collapse}.inploi-job-search .static{position:static}.inploi-job-search .fixed{position:fixed}.inploi-job-search .absolute{position:absolute}.inploi-job-search .relative{position:relative}.inploi-job-search .sticky{position:sticky}.inploi-job-search .inset-0{top:0;right:0;bottom:0;left:0}.inploi-job-search .inset-x-10{left:2.5rem;right:2.5rem}.inploi-job-search .inset-y-0{top:0;bottom:0}.inploi-job-search .-right-1{right:-.25rem}.inploi-job-search .-top-1{top:-.25rem}.inploi-job-search .bottom-0{bottom:0}.inploi-job-search .left-0{left:0}.inploi-job-search .left-12{left:3rem}.inploi-job-search .right-0{right:0}.inploi-job-search .right-1{right:.25rem}.inploi-job-search .right-12{right:3rem}.inploi-job-search .top-0{top:0}.inploi-job-search .top-1\\/2{top:50%}.inploi-job-search .top-12{top:3rem}.inploi-job-search .top-2{top:.5rem}.inploi-job-search .isolate{isolation:isolate}.inploi-job-search .z-50{z-index:50}.inploi-job-search .order-1{order:1}.inploi-job-search .order-2{order:2}.inploi-job-search .m-0{margin:0}.inploi-job-search .m-11{margin:2.75rem}.inploi-job-search .m-3{margin:.75rem}.inploi-job-search .m-4{margin:1rem}.inploi-job-search .mx-auto{margin-left:auto;margin-right:auto}.inploi-job-search .mb-2{margin-bottom:.5rem}.inploi-job-search .ml-auto{margin-left:auto}.inploi-job-search .mr-\\[3px\\]{margin-right:3px}.inploi-job-search .line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.inploi-job-search .block{display:block}.inploi-job-search .inline-block{display:inline-block}.inploi-job-search .inline{display:inline}.inploi-job-search .flex{display:flex}.inploi-job-search .inline-flex{display:inline-flex}.inploi-job-search .table{display:table}.inploi-job-search .table-row{display:table-row}.inploi-job-search .flow-root{display:flow-root}.inploi-job-search .grid{display:grid}.inploi-job-search .inline-grid{display:inline-grid}.inploi-job-search .contents{display:contents}.inploi-job-search .list-item{display:list-item}.inploi-job-search .\\!hidden{display:none!important}.inploi-job-search .hidden{display:none}.inploi-job-search .aspect-square{aspect-ratio:1 / 1}.inploi-job-search .size-4{width:1rem;height:1rem}.inploi-job-search .size-5{width:1.25rem;height:1.25rem}.inploi-job-search .size-\\[1lh\\]{width:1lh;height:1lh}.inploi-job-search .h-10{height:2.5rem}.inploi-job-search .h-12{height:3rem}.inploi-job-search .h-6{height:1.5rem}.inploi-job-search .h-8{height:2rem}.inploi-job-search .h-\\[1lh\\]{height:1lh}.inploi-job-search .h-\\[36px\\]{height:36px}.inploi-job-search .h-\\[80svh\\]{height:80svh}.inploi-job-search .h-auto{height:auto}.inploi-job-search .h-full{height:100%}.inploi-job-search .max-h-\\[--radix-popover-content-available-height\\]{max-height:var(--radix-popover-content-available-height)}.inploi-job-search .min-h-0{min-height:0px}.inploi-job-search .min-h-6{min-height:1.5rem}.inploi-job-search .min-h-8{min-height:2rem}.inploi-job-search .min-h-\\[1em\\]{min-height:1em}.inploi-job-search .min-h-\\[36px\\]{min-height:36px}.inploi-job-search .min-h-screen{min-height:100vh}.inploi-job-search .w-10{width:2.5rem}.inploi-job-search .w-6{width:1.5rem}.inploi-job-search .w-\\[10ch\\]{width:10ch}.inploi-job-search .w-\\[3ch\\]{width:3ch}.inploi-job-search .w-\\[6ch\\]{width:6ch}.inploi-job-search .w-\\[72px\\]{width:72px}.inploi-job-search .w-\\[8ch\\]{width:8ch}.inploi-job-search .w-full{width:100%}.inploi-job-search .min-w-0{min-width:0px}.inploi-job-search .min-w-6{min-width:1.5rem}.inploi-job-search .min-w-64{min-width:16rem}.inploi-job-search .min-w-\\[calc\\(100\\%-1rem\\)\\]{min-width:calc(100% - 1rem)}.inploi-job-search .max-w-\\[25\\%\\]{max-width:25%}.inploi-job-search .max-w-\\[45rem\\]{max-width:45rem}.inploi-job-search .max-w-full{max-width:100%}.inploi-job-search .max-w-xs{max-width:20rem}.inploi-job-search .flex-1{flex:1 1 0%}.inploi-job-search .flex-none{flex:none}.inploi-job-search .flex-shrink{flex-shrink:1}.inploi-job-search .flex-shrink-0{flex-shrink:0}.inploi-job-search .shrink{flex-shrink:1}.inploi-job-search .shrink-0{flex-shrink:0}.inploi-job-search .flex-grow,.inploi-job-search .grow{flex-grow:1}.inploi-job-search .border-collapse{border-collapse:collapse}.inploi-job-search .origin-\\[50\\%_1\\.75rem\\]{transform-origin:50% 1.75rem}.inploi-job-search .origin-top{transform-origin:top}.inploi-job-search .-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.inploi-job-search .rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.inploi-job-search .scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.inploi-job-search .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes appear-tag{0%{transform:scale(.9)}to{transform:scale(1)}}.inploi-job-search .animate-appear-tag{animation:appear-tag .6s cubic-bezier(.16,1,.3,1) both}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.inploi-job-search .animate-fade-in{animation:fade-in .4s cubic-bezier(.16,1,.3,1) both}.inploi-job-search .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes selected-tag{0%{transform:scale(1.11)}to{transform:scale(1)}}.inploi-job-search .animate-selected-tag{animation:selected-tag .9s cubic-bezier(.16,1,.3,1)}@keyframes skeleton{0%{opacity:.2}50%{opacity:.6}to{opacity:.25}}.inploi-job-search .animate-skeleton{animation:skeleton 1.2s cubic-bezier(.4,0,.6,1) infinite}@keyframes slide-out-bottom{0%{transform:translateY(100%)}to{transform:translateY(0)}}.inploi-job-search .animate-slide-out-bottom{animation:slide-out-bottom .4s cubic-bezier(.16,1,.3,1) both}@keyframes slideDownFade{0%{opacity:0;transform:scale(.95) translateY(-16px)}to{opacity:1;transform:scale(1) translateY(0)}}.inploi-job-search .animate-slideDownFade{animation:slideDownFade .2s cubic-bezier(.34,1.56,.64,1)}.inploi-job-search .cursor-default{cursor:default}.inploi-job-search .cursor-pointer{cursor:pointer}.inploi-job-search .cursor-text{cursor:text}.inploi-job-search .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.inploi-job-search .resize{resize:both}.inploi-job-search .snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.inploi-job-search .snap-proximity{--tw-scroll-snap-strictness: proximity}.inploi-job-search .snap-start{scroll-snap-align:start}.inploi-job-search .scroll-px-4{scroll-padding-left:1rem;scroll-padding-right:1rem}.inploi-job-search .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.inploi-job-search .flex-col{flex-direction:column}.inploi-job-search .flex-wrap{flex-wrap:wrap}.inploi-job-search .items-start{align-items:flex-start}.inploi-job-search .items-center{align-items:center}.inploi-job-search .items-stretch{align-items:stretch}.inploi-job-search .justify-end{justify-content:flex-end}.inploi-job-search .justify-center{justify-content:center}.inploi-job-search .justify-between{justify-content:space-between}.inploi-job-search .gap-1{gap:.25rem}.inploi-job-search .gap-1\\.5{gap:.375rem}.inploi-job-search .gap-2{gap:.5rem}.inploi-job-search .gap-3{gap:.75rem}.inploi-job-search .gap-4{gap:1rem}.inploi-job-search .gap-logo{gap:var(--i-logo-gap)}.inploi-job-search .self-center{align-self:center}.inploi-job-search .overflow-auto{overflow:auto}.inploi-job-search .overflow-hidden{overflow:hidden}.inploi-job-search .overflow-y-auto{overflow-y:auto}.inploi-job-search .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inploi-job-search .whitespace-nowrap{white-space:nowrap}.inploi-job-search .text-balance{text-wrap:balance}.inploi-job-search .text-pretty{text-wrap:pretty}.inploi-job-search .break-words{overflow-wrap:break-word}.inploi-job-search .rounded-\\[999px\\]{border-radius:999px}.inploi-job-search .rounded-input{border-radius:var(--i-radius-input)}.inploi-job-search .rounded-interactive{border-radius:var(--i-radius-interactive)}.inploi-job-search .rounded-job-card{border-radius:var(--i-radius-job-card)}.inploi-job-search .rounded-job-tag{border-radius:var(--i-radius-job-tag)}.inploi-job-search .rounded-logo{border-radius:var(--i-radius-logo)}.inploi-job-search .rounded-section{border-radius:var(--i-radius-section)}.inploi-job-search .rounded-tag{border-radius:var(--i-radius-job-tag)}.inploi-job-search .rounded-t-section{border-top-left-radius:var(--i-radius-section);border-top-right-radius:var(--i-radius-section)}.inploi-job-search .border-px{border-width:1px}.inploi-job-search .border-b-px{border-bottom-width:1px}.inploi-job-search .border-solid{border-style:solid}.inploi-job-search .border-neutral-2{border-color:var(--i-color-n-2)}.inploi-job-search .border-neutral-4{border-color:var(--i-color-n-4)}.inploi-job-search .border-section-weak-stroke{border-color:var(--i-section-weak-stroke-color)}.inploi-job-search .border-tag-accent-strong-stroke{border-color:var(--i-tag-accent-strong-stroke-color)}.inploi-job-search .border-tag-monetary-weak-stroke{border-color:var(--i-tag-monetary-weak-stroke-color)}.inploi-job-search .border-tag-neutral-strong-stroke{border-color:var(--i-tag-neutral-strong-stroke-color)}.inploi-job-search .border-tag-neutral-weak-stroke{border-color:var(--i-tag-neutral-weak-stroke-color)}.inploi-job-search .bg-\\[\\#0009\\]{background-color:#0009}.inploi-job-search .bg-\\[currentColor\\]{background-color:currentColor}.inploi-job-search .bg-accent-2{background-color:var(--i-color-a-2)}.inploi-job-search .bg-accent-4{background-color:var(--i-color-a-4)}.inploi-job-search .bg-app{background-color:var(--i-app-bg)}.inploi-job-search .bg-copy-neutral{background-color:var(--i-copy)}.inploi-job-search .bg-interactive-accent-bg{background-color:var(--i-interactive-accent-bg)}.inploi-job-search .bg-interactive-neutral-bg{background-color:var(--i-interactive-neutral-bg)}.inploi-job-search .bg-job-card-bg{background-color:var(--i-job-card-bg)}.inploi-job-search .bg-lowest{background-color:var(--i-color-lowest)}.inploi-job-search .bg-neutral-12{background-color:var(--i-color-n-12)}.inploi-job-search .bg-neutral-2{background-color:var(--i-color-n-2)}.inploi-job-search .bg-neutral-3{background-color:var(--i-color-n-3)}.inploi-job-search .bg-neutral-6{background-color:var(--i-color-n-6)}.inploi-job-search .bg-section-strong-bg{background-color:var(--i-section-strong-bg)}.inploi-job-search .bg-tag-accent-strong-bg{background-color:var(--i-tag-accent-strong-bg)}.inploi-job-search .bg-tag-monetary-weak-bg{background-color:var(--i-tag-monetary-weak-bg)}.inploi-job-search .bg-tag-neutral-strong-bg{background-color:var(--i-tag-neutral-strong-bg)}.inploi-job-search .bg-tag-neutral-weak-bg{background-color:var(--i-tag-neutral-weak-bg)}.inploi-job-search .bg-transparent{background-color:transparent}.inploi-job-search .object-contain{-o-object-fit:contain;object-fit:contain}.inploi-job-search .p-0{padding:0}.inploi-job-search .p-1{padding:.25rem}.inploi-job-search .p-10{padding:2.5rem}.inploi-job-search .p-11{padding:2.75rem}.inploi-job-search .p-12{padding:3rem}.inploi-job-search .p-2{padding:.5rem}.inploi-job-search .p-3{padding:.75rem}.inploi-job-search .p-4{padding:1rem}.inploi-job-search .p-5{padding:1.25rem}.inploi-job-search .p-6{padding:1.5rem}.inploi-job-search .p-7{padding:1.75rem}.inploi-job-search .p-8{padding:2rem}.inploi-job-search .p-9{padding:2.25rem}.inploi-job-search .px-1{padding-left:.25rem;padding-right:.25rem}.inploi-job-search .px-10{padding-left:2.5rem;padding-right:2.5rem}.inploi-job-search .px-2{padding-left:.5rem;padding-right:.5rem}.inploi-job-search .px-2\\.5{padding-left:.625rem;padding-right:.625rem}.inploi-job-search .px-3{padding-left:.75rem;padding-right:.75rem}.inploi-job-search .px-4{padding-left:1rem;padding-right:1rem}.inploi-job-search .px-5{padding-left:1.25rem;padding-right:1.25rem}.inploi-job-search .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.inploi-job-search .py-1{padding-top:.25rem;padding-bottom:.25rem}.inploi-job-search .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.inploi-job-search .py-2{padding-top:.5rem;padding-bottom:.5rem}.inploi-job-search .py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.inploi-job-search .py-4{padding-top:1rem;padding-bottom:1rem}.inploi-job-search .pb-1{padding-bottom:.25rem}.inploi-job-search .pb-\\[env\\(safe-area-inset-bottom\\)\\]{padding-bottom:env(safe-area-inset-bottom)}.inploi-job-search .pl-1{padding-left:.25rem}.inploi-job-search .pl-10{padding-left:2.5rem}.inploi-job-search .pl-2{padding-left:.5rem}.inploi-job-search .pl-3{padding-left:.75rem}.inploi-job-search .pl-3\\.5{padding-left:.875rem}.inploi-job-search .pl-5{padding-left:1.25rem}.inploi-job-search .pr-1{padding-right:.25rem}.inploi-job-search .pr-10{padding-right:2.5rem}.inploi-job-search .pr-2{padding-right:.5rem}.inploi-job-search .pr-2\\.5{padding-right:.625rem}.inploi-job-search .pr-3{padding-right:.75rem}.inploi-job-search .pr-4{padding-right:1rem}.inploi-job-search .pt-4{padding-top:1rem}.inploi-job-search .text-left{text-align:left}.inploi-job-search .text-center{text-align:center}.inploi-job-search .text-justify{text-align:justify}.inploi-job-search .align-middle{vertical-align:middle}.inploi-job-search .font-family-default{font-family:var(--i-font)}.inploi-job-search .font-family-filter{font-family:var(--i-font-filter)}.inploi-job-search .font-family-job-heading{font-family:var(--i-font-job-heading)}.inploi-job-search .font-family-tag{font-family:var(--i-font-tag)}.inploi-job-search .text-\\[10px\\]{font-size:10px}.inploi-job-search .text-style-filter{font-size:1rem;line-height:1.5rem;letter-spacing:-.01em}.inploi-job-search .text-style-input{font-size:1rem;line-height:1.5rem}.inploi-job-search .text-style-job-card{font-size:.875rem;line-height:1.125rem}.inploi-job-search .text-style-job-card-info{font-size:.75rem;line-height:1.125rem}.inploi-job-search .text-style-job-heading{font-size:1.125rem;line-height:1.5rem}.inploi-job-search .text-style-tag{font-size:.875rem;line-height:1.1rem}.inploi-job-search .font-\\[500\\]{font-weight:500}.inploi-job-search .font-weight-default{font-weight:var(--i-weight-default)}.inploi-job-search .font-weight-filter{font-weight:var(--i-weight-filter)}.inploi-job-search .font-weight-input{font-weight:var(--i-weight-input)}.inploi-job-search .font-weight-job-heading{font-weight:var(--i-weight-job-heading)}.inploi-job-search .font-weight-tag{font-weight:var(--i-weight-tag)}.inploi-job-search .uppercase{text-transform:uppercase}.inploi-job-search .lowercase{text-transform:lowercase}.inploi-job-search .capitalize{text-transform:capitalize}.inploi-job-search .italic{font-style:italic}.inploi-job-search .ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.inploi-job-search .tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.inploi-job-search .leading-none{line-height:1}.inploi-job-search .leading-snug{line-height:1.375}.inploi-job-search .tracking-tight{letter-spacing:-.025em}.inploi-job-search .\\!text-transparent{color:transparent!important}.inploi-job-search .text-accent-11{color:var(--i-color-a-11)}.inploi-job-search .text-copy-accent-icon{color:var(--i-copy-accent-icon)}.inploi-job-search .text-copy-job-info{color:var(--i-copy-info)}.inploi-job-search .text-copy-neutral{color:var(--i-copy)}.inploi-job-search .text-copy-neutral-icon{color:var(--i-copy-icon)}.inploi-job-search .text-copy-neutral-lowcontrast{color:var(--i-copy-lowcontrast)}.inploi-job-search .text-interactive-accent-text{color:var(--i-interactive-accent-text)}.inploi-job-search .text-interactive-neutral-bg{color:var(--i-interactive-neutral-bg)}.inploi-job-search .text-interactive-neutral-text{color:var(--i-interactive-neutral-text)}.inploi-job-search .text-neutral-1{color:var(--i-color-n-1)}.inploi-job-search .text-neutral-10{color:var(--i-color-n-10)}.inploi-job-search .text-neutral-11{color:var(--i-color-n-11)}.inploi-job-search .text-neutral-12{color:var(--i-color-n-12)}.inploi-job-search .text-neutral-6{color:var(--i-color-n-6)}.inploi-job-search .text-neutral-8{color:var(--i-color-n-8)}.inploi-job-search .text-tag-accent-strong-bg{color:var(--i-tag-accent-strong-bg)}.inploi-job-search .text-tag-accent-strong-copy{color:var(--i-tag-accent-strong-copy)}.inploi-job-search .text-tag-monetary-weak-copy{color:var(--i-tag-monetary-weak-copy)}.inploi-job-search .text-tag-neutral-strong-copy{color:var(--i-tag-neutral-strong-copy)}.inploi-job-search .text-tag-neutral-weak-copy{color:var(--i-tag-neutral-weak-copy)}.inploi-job-search .underline{text-decoration-line:underline}.inploi-job-search .caret-accent-11{caret-color:var(--i-color-a-11)}.inploi-job-search .opacity-10{opacity:.1}.inploi-job-search .opacity-25{opacity:.25}.inploi-job-search .opacity-30{opacity:.3}.inploi-job-search .opacity-50{opacity:.5}.inploi-job-search .opacity-80{opacity:.8}.inploi-job-search .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.inploi-job-search .shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.inploi-job-search .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.inploi-job-search .outline-none{outline:2px solid transparent;outline-offset:2px}.inploi-job-search .outline{outline-style:solid}.inploi-job-search .ring-\\[3px\\]{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .ring-px{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .ring-width-job-card{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(var(--i-job-card-stroke-width) + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .ring-width-section{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(var(--i-section-stroke-width) + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .ring-job-card-stroke{--tw-ring-color: var(--i-job-card-stroke-color)}.inploi-job-search .ring-neutral-3{--tw-ring-color: var(--i-color-n-3)}.inploi-job-search .ring-neutral-4{--tw-ring-color: var(--i-color-n-4)}.inploi-job-search .ring-section-weak-stroke{--tw-ring-color: var(--i-section-weak-stroke-color)}.inploi-job-search .ring-tag-accent-strong-bg{--tw-ring-color: var(--i-tag-accent-strong-bg)}.inploi-job-search .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.inploi-job-search .grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.inploi-job-search .invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.inploi-job-search .sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.inploi-job-search .\\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.inploi-job-search .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.inploi-job-search .backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.inploi-job-search .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.inploi-job-search .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.inploi-job-search .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.inploi-job-search .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.inploi-job-search .duration-500{transition-duration:.5s}.inploi-job-search .duration-medium{transition-duration:.6s}.inploi-job-search .duration-slow{transition-duration:.9s}.inploi-job-search .duration-snappy{transition-duration:.4s}.inploi-job-search .ease-expo-out{transition-timing-function:cubic-bezier(.16,1,.3,1)}.inploi-job-search .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.inploi-job-search .gutter-stable{scrollbar-gutter:stable}.inploi-job-search .font-style-default{font-style:var(--i-font-style)}.inploi-job-search .font-style-filter{font-style:var(--i-style-filter)}.inploi-job-search .font-style-input{font-style:var(--i-style-input)}.inploi-job-search .font-style-job-heading{font-style:var(--i-style-job-heading)}.inploi-job-search .font-style-tag{font-style:var(--i-style-tag)}.inploi-job-search .fr{outline:none}.inploi-job-search .fr:focus{outline:none}.inploi-job-search .fr:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .touch-hitbox:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}.inploi-job-search .\\[-webkit-user-drag\\:none\\]{-webkit-user-drag:none}.inploi-job-search .\\[a-zA-Z0-9-_\\:\\.\\$\\@\\?\\]{a-z-a--z0-9-_:.$@?}.inploi-job-search .\\[overflow-wrap\\:anywhere\\]{overflow-wrap:anywhere}.inploi-job-search .\\[text-wrap\\:balance\\]{text-wrap:balance}.inploi-job-search .\\[text-wrap\\:pretty\\]{text-wrap:pretty}.inploi-job-search .selection\\:bg-accent-4 *::-moz-selection{background-color:var(--i-color-a-4)}.inploi-job-search .selection\\:bg-accent-4 *::selection{background-color:var(--i-color-a-4)}.inploi-job-search .selection\\:text-accent-12 *::-moz-selection{color:var(--i-color-a-12)}.inploi-job-search .selection\\:text-accent-12 *::selection{color:var(--i-color-a-12)}.inploi-job-search .selection\\:bg-accent-4::-moz-selection{background-color:var(--i-color-a-4)}.inploi-job-search .selection\\:bg-accent-4::selection{background-color:var(--i-color-a-4)}.inploi-job-search .selection\\:text-accent-12::-moz-selection{color:var(--i-color-a-12)}.inploi-job-search .selection\\:text-accent-12::selection{color:var(--i-color-a-12)}.inploi-job-search .placeholder\\:\\!text-transparent::-moz-placeholder{color:transparent!important}.inploi-job-search .placeholder\\:\\!text-transparent::placeholder{color:transparent!important}.inploi-job-search .placeholder\\:text-copy-neutral::-moz-placeholder{color:var(--i-copy)}.inploi-job-search .placeholder\\:text-copy-neutral::placeholder{color:var(--i-copy)}.inploi-job-search .placeholder\\:opacity-30::-moz-placeholder{opacity:.3}.inploi-job-search .placeholder\\:opacity-30::placeholder{opacity:.3}.inploi-job-search .hover\\:bg-job-card-bg-active:hover{background-color:var(--i-job-card-bg-active)}.inploi-job-search .hover\\:bg-neutral-2:hover{background-color:var(--i-color-n-2)}.inploi-job-search .hover\\:text-copy-neutral:hover{color:var(--i-copy)}.inploi-job-search .hover\\:text-neutral-12:hover{color:var(--i-color-n-12)}.inploi-job-search .hover\\:ring-job-card-stroke-active:hover{--tw-ring-color: var(--i-job-card-stroke-color-active)}.inploi-job-search .focus\\:relative:focus{position:relative}.inploi-job-search .focus\\:ring-px:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .focus\\:ring-neutral-6:focus{--tw-ring-color: var(--i-color-n-6)}.inploi-job-search .active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.inploi-job-search .active\\:scale-\\[0\\.975\\]:active{--tw-scale-x: .975;--tw-scale-y: .975;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.inploi-job-search .active\\:bg-job-card-bg-active:active{background-color:var(--i-job-card-bg-active)}.inploi-job-search .active\\:ring-job-card-stroke-active:active{--tw-ring-color: var(--i-job-card-stroke-color-active)}.inploi-job-search .disabled\\:bg-interactive-neutral-bg:disabled{background-color:var(--i-interactive-neutral-bg)}.inploi-job-search .disabled\\:text-interactive-neutral-bg-hover:disabled{color:var(--i-interactive-neutral-bg-hover)}.inploi-job-search .disabled\\:opacity-50:disabled{opacity:.5}.inploi-job-search .disabled\\:hover\\:disabled\\:bg-interactive-neutral-bg:disabled:hover:disabled{background-color:var(--i-interactive-neutral-bg)}.inploi-job-search .peer:-moz-placeholder~.peer-placeholder-shown\\:right-0{right:0}.inploi-job-search .peer:placeholder-shown~.peer-placeholder-shown\\:right-0{right:0}.inploi-job-search .peer:-moz-placeholder~.peer-placeholder-shown\\:hidden{display:none}.inploi-job-search .peer:placeholder-shown~.peer-placeholder-shown\\:hidden{display:none}.inploi-job-search .has-\\[\\[data-current-value\\=true\\]\\]\\:border-b-accent-3:has([data-current-value=true]){border-bottom-color:var(--i-color-a-3)}@keyframes slideUpFade{0%{opacity:0;transform:scale(.95) translateY(16px)}to{opacity:1;transform:scale(1) translateY(0)}}.inploi-job-search .data-\\[side\\=top\\]\\:animate-slideUpFade[data-side=top]{animation:slideUpFade .2s cubic-bezier(.34,1.56,.64,1)}@keyframes pulse{50%{opacity:.5}}.inploi-job-search .data-\\[state\\=loading\\]\\:animate-pulse[data-state=loading]{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.inploi-job-search .group[data-state=open] .group-data-\\[state\\=open\\]\\:-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ai-letter{0%{color:var(--i-copy);transform:scale(1)}50%{transform:scale(1.125)}75%{color:var(--i-interactive-accent-text);transform:scale(1.0625)}to{color:var(--i-interactive-accent-text);transform:scale(1)}}.inploi-job-search .group[data-synced=true] .group-data-\\[synced\\=true\\]\\:animate-ai-letter{animation:ai-letter .6s cubic-bezier(.68,-.6,.32,1.6) both}@media (pointer: fine){.inploi-job-search .pointer-fine\\:hover\\:bg-interactive-accent-bg-hover:hover{background-color:var(--i-interactive-accent-bg-hover)}}@media (pointer: fine){.inploi-job-search .pointer-fine\\:hover\\:bg-interactive-neutral-bg-hover:hover{background-color:var(--i-interactive-neutral-bg-hover)}}@media (pointer: fine){.inploi-job-search .group\\/filter:first-child .group\\/tag:first-child .pointer-fine\\:group-\\[\\&\\:first-child\\]\\/filter\\:group-\\[\\&\\:first-child\\]\\/tag\\:rounded-t-tag{border-top-left-radius:var(--i-radius-job-tag);border-top-right-radius:var(--i-radius-job-tag)}}.inploi-job-search .dark .theme-dark\\:text-neutral-12{color:var(--i-color-n-12)}.inploi-job-search .light .theme-light\\:text-neutral-11{color:var(--i-color-n-11)}.inploi-job-search .rounded .theme-rounded\\:rounded-md{border-radius:.75rem}.inploi-job-search .rounded .theme-rounded\\:rounded-xl{border-radius:1.5rem}@media (pointer: fine){.inploi-job-search .rounded .pointer-fine\\:theme-rounded\\:rounded-t-lg{border-top-left-radius:1rem;border-top-right-radius:1rem}}.inploi-job-search .soft .theme-soft\\:rounded-lg{border-radius:1rem}.inploi-job-search .soft .theme-soft\\:rounded-sm{border-radius:.5rem}@media (pointer: fine){.inploi-job-search .soft .pointer-fine\\:theme-soft\\:rounded-t-lg{border-top-left-radius:1rem;border-top-right-radius:1rem}}.inploi-job-search .fill .theme-fill\\:bg-neutral-1{background-color:var(--i-color-n-1)}.inploi-job-search .fill .theme-fill\\:bg-neutral-2{background-color:var(--i-color-n-2)}.inploi-job-search .fill .theme-fill\\:ring-neutral-3{--tw-ring-color: var(--i-color-n-3)}.inploi-job-search .fill .theme-fill\\:fr{outline:none}.inploi-job-search .fill .theme-fill\\:fr:focus{outline:none}.inploi-job-search .fill .theme-fill\\:fr:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .fill .theme-fill\\:hover\\:bg-neutral-3:hover{background-color:var(--i-color-n-3)}.inploi-job-search .fill .theme-fill\\:focus\\:bg-neutral-1:focus{background-color:var(--i-color-n-1)}.inploi-job-search .stroke .theme-stroke\\:bg-lowest{background-color:var(--i-color-lowest)}.inploi-job-search .stroke .theme-stroke\\:bg-neutral-1{background-color:var(--i-color-n-1)}.inploi-job-search .stroke .theme-stroke\\:ring-px{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .stroke .theme-stroke\\:ring-neutral-3{--tw-ring-color: var(--i-color-n-3)}.inploi-job-search .stroke .theme-stroke\\:ring-neutral-4{--tw-ring-color: var(--i-color-n-4)}.inploi-job-search .stroke .theme-stroke\\:fr{outline:none}.inploi-job-search .stroke .theme-stroke\\:fr:focus{outline:none}.inploi-job-search .stroke .theme-stroke\\:fr:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .stroke .theme-stroke\\:hover\\:ring-neutral-6:hover{--tw-ring-color: var(--i-color-n-6)}.inploi-job-search .stroke .theme-stroke\\:hover\\:fr:hover{outline:none}.inploi-job-search .stroke .theme-stroke\\:hover\\:fr:hover:focus{outline:none}.inploi-job-search .stroke .theme-stroke\\:hover\\:fr:hover:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .stroke .theme-stroke\\:focus\\:bg-lowest:focus{background-color:var(--i-color-lowest)}@media (min-width: 768px){.inploi-job-search .md\\:order-1{order:1}}@media (min-width: 768px){.inploi-job-search .md\\:order-2{order:2}}@media (min-width: 768px){.inploi-job-search .md\\:aspect-auto{aspect-ratio:auto}}@media (min-width: 768px){.inploi-job-search .md\\:h-\\[70svh\\]{height:70svh}}@media (min-width: 768px){.inploi-job-search .md\\:min-w-80{min-width:20rem}}@media (min-width: 768px){.inploi-job-search .md\\:max-w-xl{max-width:36rem}}@media (min-width: 768px){.inploi-job-search .md\\:flex-row{flex-direction:row}}@media (min-width: 768px){.inploi-job-search .md\\:flex-col{flex-direction:column}}@media (min-width: 768px){.inploi-job-search .md\\:flex-wrap{flex-wrap:wrap}}@media (min-width: 768px){.inploi-job-search .md\\:items-center{align-items:center}}@media (min-width: 1024px){.inploi-job-search .lg\\:ring-width-section{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(var(--i-section-stroke-width) + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}}.inploi-job-search .\\[\\&\\:not\\(\\:last-child\\)\\]\\:border-b-px:not(:last-child){border-bottom-width:1px}.inploi-job-search .bg-wavy{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="8" fill="none" viewBox="0 -2 32 10"><path stroke="%23000" stroke-width="2" d="M0 4c8 0 8-4 16-4s8 4 16 4"/></svg>');background-size:16px 6px;background-repeat:repeat-x;background-position:center}.inploi-job-search .dark .bg-wavy{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="8" fill="none" viewBox="0 -2 32 10"><path stroke="%23fff" stroke-width="2" d="M0 4c8 0 8-4 16-4s8 4 16 4"/></svg>')}
|
|
61
|
-
`,IF=p=>({getRenderTargetElement:v=>{const b=v?`[data-widget-id="${v}"]`:"",C=document.body.querySelectorAll(`*[data-widget=${Cb}]${b}`);if(C.length>1)throw p.error("Please ensure there is only one instance of the widget or provide a data-widget-id attribute to the widget."),new Error("More than one job search widget found on the page.");const D=C[0];if(!D)throw p.error(`Please ensure there is an element with the properties data-widget="${Cb}" ${b}`),new Error("Job search widget didn’t find element");return D}}),CF=()=>mC(({apiClient:p,rpcClient:v,logger:b,analytics:C})=>{const D=IF(b),F=({params:V})=>{var s,ee;return Zt(Vd,{Fallback:IP},[Zt(SP,{terms:V.terms,locale:((s=V.i18n)==null?void 0:s.locale)??((ee=V.i18n)==null?void 0:ee.fallbackLocale),children:[Zt("style",{id:"inploi-job-search-styles"},AF),Zt("style",{id:"inploi-job-search-theme"},MM(V)),Zt(PP,{theme:V.theme}),Zt(SF,{properties:V.properties,rpcClient:v,analytics:C,initialData:V.initialData,onStateChange:V.onStateChange,params:V})]})])};return{prerender:async V=>{var re,ge,oe,Ee,ye;const s=typeof V.initialState=="function"?V.initialState(V):V.initialState,ee=V.withData?await kb({state:s,rpcClient:v,t:EP({overrides:V.terms??{},locale:((re=V.i18n)==null?void 0:re.locale)??((ge=V.i18n)==null?void 0:ge.fallbackLocale)}),prioritySegment:(oe=V.results)==null?void 0:oe.prioritySegment,locale:(Ee=V.i18n)==null?void 0:Ee.locale,fallbackLocale:(ye=V.i18n)==null?void 0:ye.fallbackLocale}).then(Ue=>({jobs:Ue})).catch(()=>{}):void 0;return{html:eP(Zt(Hi,{},Zt(F,{params:{...V,initialData:ee}}))),data:ee}},render:async V=>{var ye,Ue;const s=typeof V.initialState=="function"?V.initialState(V):V.initialState;let ee=ep(s.filters);const re=V.initialData?Ky:Ru,ge=D.getRenderTargetElement(V.widgetId);Zs(typeof window<"u","the `render` method of JobSearch cannot be called in non-browser environments. Use `prerender` instead.");let oe;if(re(Zt(F,{params:{...V,onStateChange:Te=>{V.onStateChange(Te),Te.filters&&(ee=ep(Te.filters)),oe&&Te.filters&&oe.setFilters(ee)}}}),ge),V.feedback)if(V.feedback.plugin instanceof Promise)V.feedback.plugin.then(({feedbackPlugin:Te})=>{var qe,Re;if(!V.feedback)return;const Pe=Te()({apiClient:p,rpcClient:v,logger:b,analytics:C});H2({instance:Pe,theme:{...V.theme,...(qe=V.feedback.params)==null?void 0:qe.theme},terms:((Re=V.feedback.params)==null?void 0:Re.terms)??{}})});else{const Te=V.feedback.plugin({apiClient:p,rpcClient:v,logger:b,analytics:C});H2({instance:Te,theme:{...V.theme,...(ye=V.feedback.params)==null?void 0:ye.theme},terms:((Ue=V.feedback.params)==null?void 0:Ue.terms)??{}})}V.alerts&&(V.alerts.plugin instanceof Promise?V.alerts.plugin.then(({jobAlertsPlugin:Te})=>{V.alerts&&(oe=Te()({apiClient:p,rpcClient:v,logger:b,analytics:C}),oe.render({config:V.alerts.params.config,initialFilters:ee,theme:V.theme}))}):(oe=V.alerts.plugin({apiClient:p,rpcClient:v,logger:b,analytics:C}),oe.render({config:V.alerts.params.config,initialFilters:ee,theme:V.theme})))}}});function H2(p){p.instance.render({key:"job-search",size:"sm",theme:{positive:{hue:180,chroma:1},negative:{hue:33,chroma:1},...p.theme},terms:p.terms})}if(!window.inploi)throw new Error("Please insert the SDK script tag above the plugins.");window.inploi.jobSearchPlugin=CF;var q2={exports:{}};(function(p,v){(function(b,C){p.exports=C()})(Gd,function(){var b,C,D;function F(s,ee){if(!b)b=ee;else if(!C)C=ee;else{var re="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 = {}; ("+b+")(sharedChunk); ("+C+")(sharedChunk); self.onerror = null;",ge={};b(ge),D=ee(ge),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(D.workerUrl=window.URL.createObjectURL(new Blob([re],{type:"text/javascript"})))}}F(["exports"],function(s){var ee=1e-6,re=typeof Float32Array<"u"?Float32Array:Array;function ge(n,e){var i=e[0],r=e[1],a=e[2],u=e[3],h=i*u-a*r;return h?(n[0]=u*(h=1/h),n[1]=-r*h,n[2]=-a*h,n[3]=i*h,n):null}function oe(){var n=new re(9);return re!=Float32Array&&(n[1]=0,n[2]=0,n[3]=0,n[5]=0,n[6]=0,n[7]=0),n[0]=1,n[4]=1,n[8]=1,n}function Ee(n,e){var i=e[0],r=e[1],a=e[2],u=e[3],h=e[4],f=e[5],g=e[6],y=e[7],T=e[8];return n[0]=h*T-f*y,n[1]=a*y-r*T,n[2]=r*f-a*h,n[3]=f*g-u*T,n[4]=i*T-a*g,n[5]=a*u-i*f,n[6]=u*y-h*g,n[7]=r*g-i*y,n[8]=i*h-r*u,n}function ye(n,e,i){var r=e[0],a=e[1],u=e[2],h=e[3],f=e[4],g=e[5],y=e[6],T=e[7],S=e[8],E=i[0],P=i[1],M=i[2],k=i[3],N=i[4],O=i[5],G=i[6],H=i[7],X=i[8];return n[0]=E*r+P*h+M*y,n[1]=E*a+P*f+M*T,n[2]=E*u+P*g+M*S,n[3]=k*r+N*h+O*y,n[4]=k*a+N*f+O*T,n[5]=k*u+N*g+O*S,n[6]=G*r+H*h+X*y,n[7]=G*a+H*f+X*T,n[8]=G*u+H*g+X*S,n}function Ue(){var n=new re(16);return re!=Float32Array&&(n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0),n[0]=1,n[5]=1,n[10]=1,n[15]=1,n}function Te(n){var e=new re(16);return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],e}function Pe(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=1,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=1,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}function qe(n,e){var i=e[0],r=e[1],a=e[2],u=e[3],h=e[4],f=e[5],g=e[6],y=e[7],T=e[8],S=e[9],E=e[10],P=e[11],M=e[12],k=e[13],N=e[14],O=e[15],G=i*f-r*h,H=i*g-a*h,X=i*y-u*h,Q=r*g-a*f,J=r*y-u*f,fe=a*y-u*g,ae=T*k-S*M,ce=T*N-E*M,de=T*O-P*M,_e=S*N-E*k,Fe=S*O-P*k,Oe=E*O-P*N,je=G*Oe-H*Fe+X*_e+Q*de-J*ce+fe*ae;return je?(n[0]=(f*Oe-g*Fe+y*_e)*(je=1/je),n[1]=(a*Fe-r*Oe-u*_e)*je,n[2]=(k*fe-N*J+O*Q)*je,n[3]=(E*J-S*fe-P*Q)*je,n[4]=(g*de-h*Oe-y*ce)*je,n[5]=(i*Oe-a*de+u*ce)*je,n[6]=(N*X-M*fe-O*H)*je,n[7]=(T*fe-E*X+P*H)*je,n[8]=(h*Fe-f*de+y*ae)*je,n[9]=(r*de-i*Fe-u*ae)*je,n[10]=(M*J-k*X+O*G)*je,n[11]=(S*X-T*J-P*G)*je,n[12]=(f*ce-h*_e-g*ae)*je,n[13]=(i*_e-r*ce+a*ae)*je,n[14]=(k*H-M*Q-N*G)*je,n[15]=(T*Q-S*H+E*G)*je,n):null}function Re(n,e,i){var r=e[0],a=e[1],u=e[2],h=e[3],f=e[4],g=e[5],y=e[6],T=e[7],S=e[8],E=e[9],P=e[10],M=e[11],k=e[12],N=e[13],O=e[14],G=e[15],H=i[0],X=i[1],Q=i[2],J=i[3];return n[0]=H*r+X*f+Q*S+J*k,n[1]=H*a+X*g+Q*E+J*N,n[2]=H*u+X*y+Q*P+J*O,n[3]=H*h+X*T+Q*M+J*G,n[4]=(H=i[4])*r+(X=i[5])*f+(Q=i[6])*S+(J=i[7])*k,n[5]=H*a+X*g+Q*E+J*N,n[6]=H*u+X*y+Q*P+J*O,n[7]=H*h+X*T+Q*M+J*G,n[8]=(H=i[8])*r+(X=i[9])*f+(Q=i[10])*S+(J=i[11])*k,n[9]=H*a+X*g+Q*E+J*N,n[10]=H*u+X*y+Q*P+J*O,n[11]=H*h+X*T+Q*M+J*G,n[12]=(H=i[12])*r+(X=i[13])*f+(Q=i[14])*S+(J=i[15])*k,n[13]=H*a+X*g+Q*E+J*N,n[14]=H*u+X*y+Q*P+J*O,n[15]=H*h+X*T+Q*M+J*G,n}function at(n,e,i){var r,a,u,h,f,g,y,T,S,E,P,M,k=i[0],N=i[1],O=i[2];return e===n?(n[12]=e[0]*k+e[4]*N+e[8]*O+e[12],n[13]=e[1]*k+e[5]*N+e[9]*O+e[13],n[14]=e[2]*k+e[6]*N+e[10]*O+e[14],n[15]=e[3]*k+e[7]*N+e[11]*O+e[15]):(a=e[1],u=e[2],h=e[3],f=e[4],g=e[5],y=e[6],T=e[7],S=e[8],E=e[9],P=e[10],M=e[11],n[0]=r=e[0],n[1]=a,n[2]=u,n[3]=h,n[4]=f,n[5]=g,n[6]=y,n[7]=T,n[8]=S,n[9]=E,n[10]=P,n[11]=M,n[12]=r*k+f*N+S*O+e[12],n[13]=a*k+g*N+E*O+e[13],n[14]=u*k+y*N+P*O+e[14],n[15]=h*k+T*N+M*O+e[15]),n}function Qe(n,e,i){var r=i[0],a=i[1],u=i[2];return n[0]=e[0]*r,n[1]=e[1]*r,n[2]=e[2]*r,n[3]=e[3]*r,n[4]=e[4]*a,n[5]=e[5]*a,n[6]=e[6]*a,n[7]=e[7]*a,n[8]=e[8]*u,n[9]=e[9]*u,n[10]=e[10]*u,n[11]=e[11]*u,n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15],n}function yt(n,e,i){var r=Math.sin(i),a=Math.cos(i),u=e[4],h=e[5],f=e[6],g=e[7],y=e[8],T=e[9],S=e[10],E=e[11];return e!==n&&(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[4]=u*a+y*r,n[5]=h*a+T*r,n[6]=f*a+S*r,n[7]=g*a+E*r,n[8]=y*a-u*r,n[9]=T*a-h*r,n[10]=S*a-f*r,n[11]=E*a-g*r,n}function It(n,e,i){var r=Math.sin(i),a=Math.cos(i),u=e[0],h=e[1],f=e[2],g=e[3],y=e[8],T=e[9],S=e[10],E=e[11];return e!==n&&(n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[0]=u*a-y*r,n[1]=h*a-T*r,n[2]=f*a-S*r,n[3]=g*a-E*r,n[8]=u*r+y*a,n[9]=h*r+T*a,n[10]=f*r+S*a,n[11]=g*r+E*a,n}function Rt(n,e,i){var r=Math.sin(i),a=Math.cos(i),u=e[0],h=e[1],f=e[2],g=e[3],y=e[4],T=e[5],S=e[6],E=e[7];return e!==n&&(n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[0]=u*a+y*r,n[1]=h*a+T*r,n[2]=f*a+S*r,n[3]=g*a+E*r,n[4]=y*a-u*r,n[5]=T*a-h*r,n[6]=S*a-f*r,n[7]=E*a-g*r,n}function zt(n,e){return n[0]=e[0],n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=e[1],n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=e[2],n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}function Nt(n,e,i){var r,a,u,h=i[0],f=i[1],g=i[2],y=Math.sqrt(h*h+f*f+g*g);return y<ee?null:(h*=y=1/y,f*=y,g*=y,r=Math.sin(e),a=Math.cos(e),n[0]=h*h*(u=1-a)+a,n[1]=f*h*u+g*r,n[2]=g*h*u-f*r,n[3]=0,n[4]=h*f*u-g*r,n[5]=f*f*u+a,n[6]=g*f*u+h*r,n[7]=0,n[8]=h*g*u+f*r,n[9]=f*g*u-h*r,n[10]=g*g*u+a,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n)}function Qt(n,e){var i=e[0],r=e[1],a=e[2],u=e[4],h=e[5],f=e[6],g=e[8],y=e[9],T=e[10];return n[0]=Math.sqrt(i*i+r*r+a*a),n[1]=Math.sqrt(u*u+h*h+f*f),n[2]=Math.sqrt(g*g+y*y+T*T),n}function ai(n,e){var i=e[0],r=e[1],a=e[2],u=e[3],h=i+i,f=r+r,g=a+a,y=i*h,T=r*h,S=r*f,E=a*h,P=a*f,M=a*g,k=u*h,N=u*f,O=u*g;return n[0]=1-S-M,n[1]=T+O,n[2]=E-N,n[3]=0,n[4]=T-O,n[5]=1-y-M,n[6]=P+k,n[7]=0,n[8]=E+N,n[9]=P-k,n[10]=1-y-S,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}var Ii=Re;function Ut(){var n=new re(3);return re!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0),n}function li(n){var e=new re(3);return e[0]=n[0],e[1]=n[1],e[2]=n[2],e}function Xt(n){var e=n[0],i=n[1],r=n[2];return Math.sqrt(e*e+i*i+r*r)}function Dt(n,e,i){var r=new re(3);return r[0]=n,r[1]=e,r[2]=i,r}function Tt(n,e,i,r){return n[0]=e,n[1]=i,n[2]=r,n}function Wt(n,e,i){return n[0]=e[0]+i[0],n[1]=e[1]+i[1],n[2]=e[2]+i[2],n}function ji(n,e,i){return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n[2]=e[2]-i[2],n}function En(n,e,i){return n[0]=e[0]*i[0],n[1]=e[1]*i[1],n[2]=e[2]*i[2],n}function on(n,e,i){return n[0]=Math.min(e[0],i[0]),n[1]=Math.min(e[1],i[1]),n[2]=Math.min(e[2],i[2]),n}function Bn(n,e,i){return n[0]=Math.max(e[0],i[0]),n[1]=Math.max(e[1],i[1]),n[2]=Math.max(e[2],i[2]),n}function Ci(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n[2]=e[2]*i,n}function Dn(n,e,i,r){return n[0]=e[0]+i[0]*r,n[1]=e[1]+i[1]*r,n[2]=e[2]+i[2]*r,n}function Jr(n,e){var i=e[0]-n[0],r=e[1]-n[1],a=e[2]-n[2];return Math.sqrt(i*i+r*r+a*a)}function Cr(n,e){var i=e[0]-n[0],r=e[1]-n[1],a=e[2]-n[2];return i*i+r*r+a*a}function Qr(n){var e=n[0],i=n[1],r=n[2];return e*e+i*i+r*r}function qr(n,e){return n[0]=-e[0],n[1]=-e[1],n[2]=-e[2],n}function Fi(n,e){var i=e[0],r=e[1],a=e[2],u=i*i+r*r+a*a;return u>0&&(u=1/Math.sqrt(u)),n[0]=e[0]*u,n[1]=e[1]*u,n[2]=e[2]*u,n}function Qi(n,e){return n[0]*e[0]+n[1]*e[1]+n[2]*e[2]}function nr(n,e,i){var r=e[0],a=e[1],u=e[2],h=i[0],f=i[1],g=i[2];return n[0]=a*g-u*f,n[1]=u*h-r*g,n[2]=r*f-a*h,n}function Ho(n,e,i,r){var a=e[0],u=e[1],h=e[2];return n[0]=a+r*(i[0]-a),n[1]=u+r*(i[1]-u),n[2]=h+r*(i[2]-h),n}function en(n,e,i){var r=e[0],a=e[1],u=e[2],h=i[3]*r+i[7]*a+i[11]*u+i[15];return n[0]=(i[0]*r+i[4]*a+i[8]*u+i[12])/(h=h||1),n[1]=(i[1]*r+i[5]*a+i[9]*u+i[13])/h,n[2]=(i[2]*r+i[6]*a+i[10]*u+i[14])/h,n}function To(n,e,i){var r=e[0],a=e[1],u=e[2];return n[0]=r*i[0]+a*i[3]+u*i[6],n[1]=r*i[1]+a*i[4]+u*i[7],n[2]=r*i[2]+a*i[5]+u*i[8],n}function eo(n,e,i){var r=i[0],a=i[1],u=i[2],h=i[3],f=e[0],g=e[1],y=e[2],T=a*y-u*g,S=u*f-r*y,E=r*g-a*f;return n[0]=f+h*(T+=T)+a*(E+=E)-u*(S+=S),n[1]=g+h*S+u*T-r*E,n[2]=y+h*E+r*S-a*T,n}function Zi(n){return n[0]=0,n[1]=0,n[2]=0,n}function tn(n,e){return n[0]===e[0]&&n[1]===e[1]&&n[2]===e[2]}var Si=ji,bn=En,ur=Xt;function Nn(){var n=new re(4);return re!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0,n[3]=0),n}function Ln(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n[2]=e[2]*i,n[3]=e[3]*i,n}function Fr(n,e){var i=e[0],r=e[1],a=e[2],u=e[3],h=i*i+r*r+a*a+u*u;return h>0&&(h=1/Math.sqrt(h)),n[0]=i*h,n[1]=r*h,n[2]=a*h,n[3]=u*h,n}function vr(n,e){return n[0]*e[0]+n[1]*e[1]+n[2]*e[2]+n[3]*e[3]}function hr(n,e,i){var r=e[0],a=e[1],u=e[2],h=e[3];return n[0]=i[0]*r+i[4]*a+i[8]*u+i[12]*h,n[1]=i[1]*r+i[5]*a+i[9]*u+i[13]*h,n[2]=i[2]*r+i[6]*a+i[10]*u+i[14]*h,n[3]=i[3]*r+i[7]*a+i[11]*u+i[15]*h,n}function zo(){var n=new re(4);return re!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0),n[3]=1,n}function ko(n){return n[0]=0,n[1]=0,n[2]=0,n[3]=1,n}function dr(n,e,i){i*=.5;var r=e[0],a=e[1],u=e[2],h=e[3],f=Math.sin(i),g=Math.cos(i);return n[0]=r*g+h*f,n[1]=a*g+u*f,n[2]=u*g-a*f,n[3]=h*g-r*f,n}function Br(n,e,i){i*=.5;var r=e[0],a=e[1],u=e[2],h=e[3],f=Math.sin(i),g=Math.cos(i);return n[0]=r*g-u*f,n[1]=a*g+h*f,n[2]=u*g+r*f,n[3]=h*g-a*f,n}Ut(),Nn();var xr,ra,Nr,zc=Fr,Ps=(xr=Ut(),ra=Dt(1,0,0),Nr=Dt(0,1,0),function(n,e,i){var r=Qi(e,i);return r<-.999999?(nr(xr,ra,e),ur(xr)<1e-6&&nr(xr,Nr,e),Fi(xr,xr),function(a,u,h){h*=.5;var f=Math.sin(h);a[0]=f*u[0],a[1]=f*u[1],a[2]=f*u[2],a[3]=Math.cos(h)}(n,xr,Math.PI),n):r>.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(nr(xr,e,i),n[0]=xr[0],n[1]=xr[1],n[2]=xr[2],n[3]=1+r,zc(n,n))});function Dr(){var n=new re(2);return re!=Float32Array&&(n[0]=0,n[1]=0),n}function Ms(n,e){var i=new re(2);return i[0]=n,i[1]=e,i}function Rs(n,e,i){return n[0]=e,n[1]=i,n}function oa(n,e,i){return n[0]=e[0]+i[0],n[1]=e[1]+i[1],n}function Ds(n,e,i){return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n}function sa(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n}function aa(n){var e=n[0],i=n[1];return Math.sqrt(e*e+i*i)}function Pl(n,e){var i=e[0],r=e[1],a=i*i+r*r;return a>0&&(a=1/Math.sqrt(a)),n[0]=e[0]*a,n[1]=e[1]*a,n}function sn(n,e){return n[0]*e[0]+n[1]*e[1]}zo(),zo(),oe();var Pr,nh,Ml=Ds;function So(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}Dr();var ip=function(){if(nh)return Pr;function n(e,i,r,a){this.cx=3*e,this.bx=3*(r-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*i,this.by=3*(a-i)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=i,this.p2x=r,this.p2y=a}return nh=1,Pr=n,n.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,i){if(i===void 0&&(i=1e-6),e<0)return 0;if(e>1)return 1;for(var r=e,a=0;a<8;a++){var u=this.sampleCurveX(r)-e;if(Math.abs(u)<i)return r;var h=this.sampleCurveDerivativeX(r);if(Math.abs(h)<1e-6)break;r-=u/h}var f=0,g=1;for(r=e,a=0;a<20&&(u=this.sampleCurveX(r),!(Math.abs(u-e)<i));a++)e>u?f=r:g=r,r=.5*(g-f)+f;return r},solve:function(e,i){return this.sampleCurveY(this.solveCurveX(e,i))}},Pr}(),Rl=So(ip);function it(n,e){this.x=n,this.y=e}function Ls(n,e){if(Array.isArray(n)){if(!Array.isArray(e)||n.length!==e.length)return!1;for(let i=0;i<n.length;i++)if(!Ls(n[i],e[i]))return!1;return!0}if(typeof n=="object"&&n!==null&&e!==null){if(typeof e!="object"||Object.keys(n).length!==Object.keys(e).length)return!1;for(const i in n)if(!Ls(n[i],e[i]))return!1;return!0}return n===e}it.prototype={clone(){return new it(this.x,this.y)},add(n){return this.clone()._add(n)},sub(n){return this.clone()._sub(n)},multByPoint(n){return this.clone()._multByPoint(n)},divByPoint(n){return this.clone()._divByPoint(n)},mult(n){return this.clone()._mult(n)},div(n){return this.clone()._div(n)},rotate(n){return this.clone()._rotate(n)},rotateAround(n,e){return this.clone()._rotateAround(n,e)},matMult(n){return this.clone()._matMult(n)},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(n){return this.x===n.x&&this.y===n.y},dist(n){return Math.sqrt(this.distSqr(n))},distSqr(n){const e=n.x-this.x,i=n.y-this.y;return e*e+i*i},angle(){return Math.atan2(this.y,this.x)},angleTo(n){return Math.atan2(this.y-n.y,this.x-n.x)},angleWith(n){return this.angleWithSep(n.x,n.y)},angleWithSep(n,e){return Math.atan2(this.x*e-this.y*n,this.x*n+this.y*e)},_matMult(n){const e=n[2]*this.x+n[3]*this.y;return this.x=n[0]*this.x+n[1]*this.y,this.y=e,this},_add(n){return this.x+=n.x,this.y+=n.y,this},_sub(n){return this.x-=n.x,this.y-=n.y,this},_mult(n){return this.x*=n,this.y*=n,this},_div(n){return this.x/=n,this.y/=n,this},_multByPoint(n){return this.x*=n.x,this.y*=n.y,this},_divByPoint(n){return this.x/=n.x,this.y/=n.y,this},_unit(){return this._div(this.mag()),this},_perp(){const n=this.y;return this.y=this.x,this.x=-n,this},_rotate(n){const e=Math.cos(n),i=Math.sin(n),r=i*this.x+e*this.y;return this.x=e*this.x-i*this.y,this.y=r,this},_rotateAround(n,e){const i=Math.cos(n),r=Math.sin(n),a=e.y+r*(this.x-e.x)+i*(this.y-e.y);return this.x=e.x+i*(this.x-e.x)-r*(this.y-e.y),this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:it},it.convert=function(n){if(n instanceof it)return n;if(Array.isArray(n))return new it(+n[0],+n[1]);if(n.x!==void 0&&n.y!==void 0)return new it(+n.x,+n.y);throw new Error("Expected [x, y] or {x, y} point format")};const np=Math.PI/180,kc=180/Math.PI;function bi(n){return n*np}function Ie(n){return n*kc}const $=[[0,0],[1,0],[1,1],[0,1]];function Z(n){if(n<=0)return 0;if(n>=1)return 1;const e=n*n,i=e*n;return 4*(n<.5?i:3*(n-e)+i-.75)}function ne(n,e,i,r){const a=new Rl(n,e,i,r);return function(u){return a.solve(u)}}const ve=ne(.25,.1,.25,1);function se(n,e,i){return Math.min(i,Math.max(e,n))}function Se(n,e,i){return(i=se((i-n)/(e-n),0,1))*i*(3-2*i)}function ze(n,e,i){const r=i-e,a=((n-e)%r+r)%r+e;return a===e?i:a}function Ae(n,e,i){if(!n.length)return i(null,[]);let r=n.length;const a=new Array(n.length);let u=null;n.forEach((h,f)=>{e(h,(g,y)=>{g&&(u=g),a[f]=y,--r===0&&i(u,a)})})}let Be=1;function nt(){return Be++}function Ke(n){return n<=1?1:Math.pow(2,Math.ceil(Math.log2(n)))}function gt(n,e){n.forEach(i=>{e[i]&&(e[i]=e[i].bind(e))})}function Lt(n,e,i){const r={};for(const a in n)r[a]=e.call(this,n[a],a,n);return r}function Ot(n,e,i){const r={};for(const a in n)e.call(this,n[a],a,n)&&(r[a]=n[a]);return r}function Yt(n){return Array.isArray(n)?n.map(Yt):typeof n=="object"&&n?Lt(n,Yt):n}function ei(n,e){for(let i=0;i<n.length;i++)if(e.indexOf(n[i])>=0)return!0;return!1}const Ht={};function Gt(n){Ht[n]||(typeof console<"u"&&console.warn(n),Ht[n]=!0)}function Wi(n,e,i){return(i.y-n.y)*(e.x-n.x)>(e.y-n.y)*(i.x-n.x)}function jn(n){let e=0;for(let i,r,a=0,u=n.length,h=u-1;a<u;h=a++)i=n[a],r=n[h],e+=(r.x-i.x)*(i.y+r.y);return e}function An([n,e,i]){const r=bi(e+90),a=bi(i);return{x:n*Math.cos(r)*Math.sin(a),y:n*Math.sin(r)*Math.sin(a),z:n*Math.cos(a),azimuthal:e,polar:i}}function Mn(n){return(typeof self<"u"||n!==void 0)&&typeof WorkerGlobalScope<"u"&&(n!==void 0?n:self)instanceof WorkerGlobalScope}function an(n){const e={};if(n.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(i,r,a,u)=>{const h=a||u;return e[r]=!h||h.toLowerCase(),""}),e["max-age"]){const i=parseInt(e["max-age"],10);isNaN(i)?delete e["max-age"]:e["max-age"]=i}return e}let vi=null;function dn(n,e){return[n[4*e],n[4*e+1],n[4*e+2],n[4*e+3]]}function qi(n,e,i,r){for(;e<i;){const a=e+i>>1;n[a]<r?e=a+1:i=a}return e}function ln(n,e,i,r){for(;e<i;){const a=e+i>>1;n[a]<=r?e=a+1:i=a}return e}function pn(n){return n>0?1/(1.001-n):1+n}function Mr(n){return n>0?1-1/(1.001-n):-n}function br(n,e,i){return(n-e.min)*(i.max-i.min)/(e.max-e.min)+i.min}const Xn={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(!Xn.API_URL)return null;try{const n=new URL(Xn.API_URL);return n.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":n.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:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",BUILDING_GEN_URL:"https://api.mapbox.com/mapbox-gl-js/building-gen/building_gen_v1.2.4.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1"};function us(n){return Xn.API_URL_REGEX.test(n)}function zs(n){return Xn.API_SPRITE_REGEX.test(n)}let hs,Oc,Dl,rh,Oo,Ja;function Fc(){return hs==null&&(hs=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),hs}const ds={now:()=>rh!==void 0?rh:performance.now(),setNow(n){rh=n},restoreNow(){rh=void 0},frame(n){const e=requestAnimationFrame(n);return{cancel:()=>cancelAnimationFrame(e)}},getImageData(n,e=0){const{width:i,height:r}=n;Oo||(Oo=document.createElement("canvas"));const a=Oo.getContext("2d",{willReadFrequently:!0});if(!a)throw new Error("failed to create canvas 2d context");return(i>Oo.width||r>Oo.height)&&(Oo.width=i,Oo.height=r),a.clearRect(-e,-e,i+2*e,r+2*e),a.drawImage(n,0,0,i,r),a.getImageData(-e,-e,i+2*e,r+2*e)},resolveURL:n=>(Oc||(Oc=document.createElement("a")),Oc.href=n,Oc.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(Dl==null&&(Dl=window.matchMedia("(prefers-reduced-motion: reduce)")),Dl.matches)},hasCanvasFingerprintNoise(){if(Ja!==void 0)return Ja;if(!Fc())return Ja=!1,!1;const n=new OffscreenCanvas(85,1),e=n.getContext("2d",{willReadFrequently:!0});let i=0;for(let a=0;a<n.width;++a)e.fillStyle=`rgba(${i++},${i++},${i++}, 255)`,e.fillRect(a,0,1,1);const r=e.getImageData(0,0,n.width,n.height);i=0;for(let a=0;a<r.data.length;++a)if(a%4!=3&&i++!==r.data[a])return Ja=!0,!0;return Ja=!1,!1}};function rp(n,e){const i=n.indexOf("?");if(i<0)return`${n}?${new URLSearchParams(e).toString()}`;const r=new URLSearchParams(n.slice(i));for(const a in e)r.set(a,e[a]);return`${n.slice(0,i)}?${r.toString()}`}function op(n,e={persistentParams:[]}){const i=n.indexOf("?");if(i<0)return n;const r=new URLSearchParams,a=new URLSearchParams(n.slice(i));for(const h of e.persistentParams){const f=a.get(h);f&&r.set(h,f)}const u=r.toString();return`${n.slice(0,i)}${u.length>0?`?${u}`:""}`}const f_="mapbox-tiles";let m_=500,sp=50;const ap=["language","worldview","jobid"];let wr;function qo(){try{return caches}catch{}}function Wo(){const n=qo();n&&wr==null&&(wr=n.open(f_))}let Fo=1/0;const ps={supported:!1,testSupport:function(n){!oh&&Qa&&(el?__(n):la=n)}};let la,Qa,oh=!1,el=!1;const sh=typeof self<"u"?self:{};function __(n){const e=n.createTexture();n.bindTexture(n.TEXTURE_2D,e);try{if(n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,Qa),n.isContextLost())return;ps.supported=!0}catch{}n.deleteTexture(e),oh=!0}sh.document&&(Qa=sh.document.createElement("img"),Qa.onload=function(){la&&__(la),la=null,el=!0},Qa.onerror=function(){oh=!0,la=null},Qa.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const Bc={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Iconset:"Iconset",Image:"Image",Model:"Model"};Object.freeze(Bc);class ho extends Error{constructor(e,i,r){i===401&&us(r)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=i,this.url=r}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const ah=Mn()?()=>self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,ks=function(n,e){return/^file:/.test(i=n.url)||/^file:/.test(ah())&&!/^\w+:/.test(i)?function(r,a){const u=new XMLHttpRequest;u.open(r.method||"GET",r.url,!0),r.type==="arrayBuffer"&&(u.responseType="arraybuffer");for(const h in r.headers)u.setRequestHeader(h,r.headers[h]);return r.type==="json"&&(u.responseType="text",u.setRequestHeader("Accept","application/json")),u.withCredentials=r.credentials==="include",u.onerror=()=>{a(new Error(u.statusText))},u.onload=()=>{if((u.status>=200&&u.status<300||u.status===0)&&u.response!==null){let h=u.response;if(r.type==="json")try{h=JSON.parse(u.response)}catch(g){return a(g)}const f=new Headers;u.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(g=>{const y=g.split(": "),T=y.shift(),S=y.join(": ");f.append(T,S)}),a(null,h,f)}else a(new ho(u.statusText,u.status,r.url))},u.send(r.body),{cancel:()=>u.abort()}}(n,e):function(r,a){const u=new AbortController,h=new Request(r.url,{method:r.method||"GET",body:r.body,credentials:r.credentials,headers:r.headers,referrer:ah(),referrerPolicy:r.referrerPolicy,signal:u.signal});let f=!1,g=!1;const y=(T=h.url).indexOf("sku=")>0&&us(T);var T;r.type==="json"&&h.headers.set("Accept","application/json");const S=(P,M,k)=>{if(g)return;if(P&&P.message!=="SecurityError"&&Gt(P.toString()),M&&k)return E(M);const N=Date.now();fetch(h).then(O=>{if(O.ok){const G=y?O.clone():null;return E(O,G,N)}return a(new ho(O.statusText,O.status,r.url))}).catch(O=>{O.name!=="AbortError"&&a(new Error(`${O.message} ${r.url}`))})},E=(P,M,k)=>{(r.type==="arrayBuffer"?P.arrayBuffer():r.type==="json"?P.json():P.text()).then(N=>{g||(M&&k&&function(O,G,H){if(Wo(),wr==null)return;const X=an(G.headers.get("cache-control")||"");if(X["no-store"])return;const Q={status:G.status,statusText:G.statusText,headers:new Headers};G.headers.forEach((de,_e)=>Q.headers.set(_e,de)),X["max-age"]&&Q.headers.set("Expires",new Date(H+1e3*X["max-age"]).toUTCString());const J=Q.headers.get("expires");if(!J||new Date(J).getTime()-H<42e4)return;let fe=op(O.url,{persistentParams:ap});if(G.status===206){const de=O.headers.get("Range");if(!de)return;Q.status=200,fe=rp(fe,{range:de})}const ae=new Response((ce=G.status)!==200&&ce!==404&&[101,103,204,205,304].includes(ce)?null:G.body,Q);var ce;Wo(),wr!=null&&wr.then(de=>de.put(fe,ae)).catch(de=>Gt(de.message))}(h,M,k),f=!0,a(null,N,P.headers))}).catch(N=>{g||a(new Error(N.message))})};return y?function(P,M){if(Wo(),wr==null)return M(null);wr.then(k=>{let N=op(P.url,{persistentParams:ap});const O=P.headers.get("Range");O&&(N=rp(N,{range:O})),k.match(N).then(G=>{const H=function(X){if(!X)return!1;const Q=new Date(X.headers.get("expires")||0),J=an(X.headers.get("cache-control")||"");return Number(Q)>Date.now()&&!J["no-cache"]}(G);k.delete(N).catch(M),H&&k.put(N,G.clone()).catch(M),M(null,G,H)}).catch(M)}).catch(M)}(h,S):S(null,null),{cancel:()=>{g=!0,f||u.abort()}}}(n,e);var i},Nc=function(n,e){return ks(Object.assign(n,{type:"arrayBuffer"}),e)};function Lv(n){const e=document.createElement("a");return e.href=n,e.protocol===location.protocol&&e.host===location.host}let jc,wi;jc=[],wi=0;const lh=function(n,e){if(ps.supported&&(n.headers||(n.headers={}),n.headers.accept="image/webp,*/*"),wi>=Xn.MAX_PARALLEL_IMAGE_REQUESTS){const u={requestParameters:n,callback:e,cancelled:!1,cancel(){this.cancelled=!0}};return jc.push(u),u}wi++;let i=!1;const r=()=>{if(!i)for(i=!0,wi--;jc.length&&wi<Xn.MAX_PARALLEL_IMAGE_REQUESTS;){const u=jc.shift(),{requestParameters:h,callback:f,cancelled:g}=u;g||(u.cancel=lh(h,f).cancel)}},a=Nc(n,(u,h,f)=>{r(),u?e(u):h&&function(g,y){const T=new Blob([new Uint8Array(g)],{type:"image/png"});createImageBitmap(T).then(S=>{y(null,S)}).catch(S=>{y(new Error(`Could not load image because of ${S.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(h,(g,y)=>e(g,y,f))});return{cancel:()=>{a.cancel(),r()}}};var lp,g_,y_,ca={exports:{}},Vc={exports:{}},Uc={exports:{}},cp=function(){if(y_)return ca.exports;y_=1;var n=(lp||(lp=1,Vc.exports=function(i,r){var a,u,h,f,g,y,T,S;for(u=i.length-(a=3&i.length),h=r,g=3432918353,y=461845907,S=0;S<u;)T=255&i.charCodeAt(S)|(255&i.charCodeAt(++S))<<8|(255&i.charCodeAt(++S))<<16|(255&i.charCodeAt(++S))<<24,++S,h=27492+(65535&(f=5*(65535&(h=(h^=T=(65535&(T=(T=(65535&T)*g+(((T>>>16)*g&65535)<<16)&4294967295)<<15|T>>>17))*y+(((T>>>16)*y&65535)<<16)&4294967295)<<13|h>>>19))+((5*(h>>>16)&65535)<<16)&4294967295))+(((f>>>16)+58964&65535)<<16);switch(T=0,a){case 3:T^=(255&i.charCodeAt(S+2))<<16;case 2:T^=(255&i.charCodeAt(S+1))<<8;case 1:h^=T=(65535&(T=(T=(65535&(T^=255&i.charCodeAt(S)))*g+(((T>>>16)*g&65535)<<16)&4294967295)<<15|T>>>17))*y+(((T>>>16)*y&65535)<<16)&4294967295}return h^=i.length,h=2246822507*(65535&(h^=h>>>16))+((2246822507*(h>>>16)&65535)<<16)&4294967295,h=3266489909*(65535&(h^=h>>>13))+((3266489909*(h>>>16)&65535)<<16)&4294967295,(h^=h>>>16)>>>0}),Vc.exports),e=(g_||(g_=1,Uc.exports=function(i,r){for(var a,u=i.length,h=r^u,f=0;u>=4;)a=1540483477*(65535&(a=255&i.charCodeAt(f)|(255&i.charCodeAt(++f))<<8|(255&i.charCodeAt(++f))<<16|(255&i.charCodeAt(++f))<<24))+((1540483477*(a>>>16)&65535)<<16),h=1540483477*(65535&h)+((1540483477*(h>>>16)&65535)<<16)^(a=1540483477*(65535&(a^=a>>>24))+((1540483477*(a>>>16)&65535)<<16)),u-=4,++f;switch(u){case 3:h^=(255&i.charCodeAt(f+2))<<16;case 2:h^=(255&i.charCodeAt(f+1))<<8;case 1:h=1540483477*(65535&(h^=255&i.charCodeAt(f)))+((1540483477*(h>>>16)&65535)<<16)}return h=1540483477*(65535&(h^=h>>>13))+((1540483477*(h>>>16)&65535)<<16),(h^=h>>>15)>>>0}),Uc.exports);return ca.exports=n,ca.exports.murmur3=n,ca.exports.murmur2=e,ca.exports}(),ch=So(cp);class Zo{constructor(e,...i){Object.assign(this,i[0]||{}),this.type=e}}class uh extends Zo{constructor(e,i={}){super("error",Object.assign({error:e},i))}}function up(n,e,i){i[n]&&i[n].indexOf(e)!==-1||(i[n]=i[n]||[],i[n].push(e))}function hp(n,e,i){if(i&&i[n]){const r=i[n].indexOf(e);r!==-1&&i[n].splice(r,1)}}class Xo{on(e,i){return this._listeners=this._listeners||{},up(e,i,this._listeners),this}off(e,i){return hp(e,i,this._listeners),hp(e,i,this._oneTimeListeners),this}once(e,i){return i?(this._oneTimeListeners=this._oneTimeListeners||{},up(e,i,this._oneTimeListeners),this):new Promise(r=>{this.once(e,r)})}fire(e,i){const r=typeof e=="string"?new Zo(e,i):e,a=r.type;if(this.listens(a)){r.target=this;const u=this._listeners&&this._listeners[a]?this._listeners[a].slice():[];for(const g of u)g.call(this,r);const h=this._oneTimeListeners&&this._oneTimeListeners[a]?this._oneTimeListeners[a].slice():[];for(const g of h)hp(a,g,this._oneTimeListeners),g.call(this,r);const f=this._eventedParent;if(f){const g=typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData;Object.assign(r,g),f.fire(r)}}else r instanceof uh&&console.error(r.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,i){return this._eventedParent=e,this._eventedParentData=i,this}}class to{constructor(e){typeof e=="string"?this.name=e:(this.name=e.name,this.iconsetId=e.iconsetId)}static from(e){return new to(e)}static toString(e){return e.iconsetId?`${e.name}${e.iconsetId}`:e.name}static parse(e){const[i,r]=e.split("");return new to({name:i,iconsetId:r})}static isEqual(e,i){return e.name===i.name&&e.iconsetId===i.iconsetId}toString(){return to.toString(this)}serialize(){return{name:this.name,iconsetId:this.iconsetId}}}var hh,Eo={},dp=function(){if(hh)return Eo;hh=1;var n={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 e(u){return(u=Math.round(u))<0?0:u>255?255:u}function i(u){return e(u[u.length-1]==="%"?parseFloat(u)/100*255:parseInt(u))}function r(u){return(h=u[u.length-1]==="%"?parseFloat(u)/100:parseFloat(u))<0?0:h>1?1:h;var h}function a(u,h,f){return f<0?f+=1:f>1&&(f-=1),6*f<1?u+(h-u)*f*6:2*f<1?h:3*f<2?u+(h-u)*(2/3-f)*6:u}try{Eo.parseCSSColor=function(u){var h,f=u.replace(/ /g,"").toLowerCase();if(f in n)return n[f].slice();if(f[0]==="#")return f.length===4?(h=parseInt(f.substr(1),16))>=0&&h<=4095?[(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,1]:null:f.length===7&&(h=parseInt(f.substr(1),16))>=0&&h<=16777215?[(16711680&h)>>16,(65280&h)>>8,255&h,1]:null;var g=f.indexOf("("),y=f.indexOf(")");if(g!==-1&&y+1===f.length){var T=f.substr(0,g),S=f.substr(g+1,y-(g+1)).split(","),E=1;switch(T){case"rgba":if(S.length!==4)return null;E=r(S.pop());case"rgb":return S.length!==3?null:[i(S[0]),i(S[1]),i(S[2]),E];case"hsla":if(S.length!==4)return null;E=r(S.pop());case"hsl":if(S.length!==3)return null;var P=(parseFloat(S[0])%360+360)%360/360,M=r(S[1]),k=r(S[2]),N=k<=.5?k*(M+1):k+M-k*M,O=2*k-N;return[e(255*a(O,N,P+1/3)),e(255*a(O,N,P)),e(255*a(O,N,P-1/3)),E];default:return null}}return null}}catch{}return Eo}();class ki{constructor(e,i,r,a=1){this.r=e,this.g=i,this.b=r,this.a=a}static parse(e){if(!e)return;if(e instanceof ki)return e;if(typeof e!="string")return;const i=dp.parseCSSColor(e);return i?new ki(i[0]/255,i[1]/255,i[2]/255,i[3]):void 0}toString(){const[e,i,r,a]=[this.r,this.g,this.b,this.a];return`rgba(${Math.round(255*e)},${Math.round(255*i)},${Math.round(255*r)},${a})`}toNonPremultipliedRenderColor(e){const{r:i,g:r,b:a,a:u}=this;return new v_(e,i,r,a,u)}toPremultipliedRenderColor(e){const{r:i,g:r,b:a,a:u}=this;return new x_(e,i*u,r*u,a*u,u)}clone(){return new ki(this.r,this.g,this.b,this.a)}}class pp{constructor(e,i,r,a,u,h=!1){if(this.premultiplied=!1,this.premultiplied=h,e){const f=e.image.height,g=f*f;this.premultiplied?(i=u===0?0:i/u*(f-1),r=u===0?0:r/u*(f-1),a=u===0?0:a/u*(f-1)):(i*=f-1,r*=f-1,a*=f-1),i=Math.max(0,Math.min(f-1,i)),r=Math.max(0,Math.min(f-1,r)),a=Math.max(0,Math.min(f-1,a));const y=Math.floor(i),T=Math.floor(r),S=Math.floor(a),E=Math.ceil(i),P=Math.ceil(r),M=Math.ceil(a),k=i-y,N=r-T,O=a-S,G=e.image.data,H=4*(y+T*g+S*f),X=4*(y+T*g+M*f),Q=4*(y+P*g+S*f),J=4*(y+P*g+M*f),fe=4*(E+T*g+S*f),ae=4*(E+T*g+M*f),ce=4*(E+P*g+S*f),de=4*(E+P*g+M*f);this.r=Bt(Bt(Bt(G[H],G[X],O),Bt(G[Q],G[J],O),N),Bt(Bt(G[fe],G[ae],O),Bt(G[ce],G[de],O),N),k)/255*(this.premultiplied?u:1),this.g=Bt(Bt(Bt(G[H+1],G[X+1],O),Bt(G[Q+1],G[J+1],O),N),Bt(Bt(G[fe+1],G[ae+1],O),Bt(G[ce+1],G[de+1],O),N),k)/255*(this.premultiplied?u:1),this.b=Bt(Bt(Bt(G[H+2],G[X+2],O),Bt(G[Q+2],G[J+2],O),N),Bt(Bt(G[fe+2],G[ae+2],O),Bt(G[ce+2],G[de+2],O),N),k)/255*(this.premultiplied?u:1),this.a=u}else this.r=i,this.g=r,this.b=a,this.a=u}toArray(){const{r:e,g:i,b:r,a}=this;return[255*e,255*i,255*r,a]}toHslaArray(){let{r:e,g:i,b:r,a}=this;if(this.premultiplied){if(a===0)return[0,0,0,0];const M=1/a;e*=M,i*=M,r*=M}const u=Math.min(Math.max(e,0),1),h=Math.min(Math.max(i,0),1),f=Math.min(Math.max(r,0),1),g=Math.min(u,h,f),y=Math.max(u,h,f),T=y-g,S=.5*(g+y);if(T===0)return[0,0,100*S,a];const E=S>.5?T/(2-y-g):T/(y+g);let P;switch(y){case u:P=60*((h-f)/T+(h<f?6:0));break;case h:P=60*((f-u)/T+2);break;default:P=60*((u-h)/T+4)}return[P,100*E,100*S,a]}toArray01(){const{r:e,g:i,b:r,a}=this;return[e,i,r,a]}toArray01Scaled(e){const{r:i,g:r,b:a}=this;return[i*e,r*e,a*e]}toArray01Linear(){const{r:e,g:i,b:r,a}=this;return[Math.pow(e,2.2),Math.pow(i,2.2),Math.pow(r,2.2),a]}}class v_ extends pp{constructor(e,i,r,a,u){super(e,i,r,a,u,!1)}}class x_ extends pp{constructor(e,i,r,a,u){super(e,i,r,a,u,!0)}}function Bt(n,e,i){return n*(1-i)+e*i}function fp(n,e,i){return n.map((r,a)=>Bt(r,e[a],i))}ki.black=new ki(0,0,0,1),ki.white=new ki(1,1,1,1),ki.transparent=new ki(0,0,0,0),ki.red=new ki(1,0,0,1),ki.blue=new ki(0,0,1,1);var $c=Object.freeze({__proto__:null,array:fp,color:function(n,e,i){return new ki(Bt(n.r,e.r,i),Bt(n.g,e.g,i),Bt(n.b,e.b,i),Bt(n.a,e.a,i))},number:Bt});class po extends Error{constructor(e,i){super(i),this.message=i,this.key=e}}class ua{constructor(e,i=[]){this.parent=e,this.bindings={};for(const[r,a]of i)this.bindings[r]=a}concat(e){return new ua(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}const tl={kind:"null"},St={kind:"number"},Di={kind:"string"},Li={kind:"boolean"},Lr={kind:"color"},ha={kind:"object"},Oi={kind:"value"},dh={kind:"collator"},Gc={kind:"formatted"},Ll={kind:"resolvedImage"};function Rr(n,e){return{kind:"array",itemType:n,N:e}}function Vn(n){if(n.kind==="array"){const e=Vn(n.itemType);return typeof n.N=="number"?`array<${e}, ${n.N}>`:n.itemType.kind==="value"?"array":`array<${e}>`}return n.kind}const ph=[tl,St,Di,Li,Lr,Gc,ha,Rr(Oi),Ll];function Hc(n,e){if(e.kind==="error")return null;if(n.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!Hc(n.itemType,e.itemType))&&(typeof n.N!="number"||n.N===e.N))return null}else{if(n.kind===e.kind)return null;if(n.kind==="value"){for(const i of ph)if(!Hc(i,e))return null}}return`Expected ${Vn(n)} but found ${Vn(e)} instead.`}function mp(n,e){return e.some(i=>i.kind===n.kind)}function qc(n,e){return e.some(i=>i==="null"?n===null:i==="array"?Array.isArray(n):i==="object"?n&&!Array.isArray(n)&&typeof n=="object":i===typeof n)}function fh(n,e){return n.kind==="array"&&e.kind==="array"?n.N===e.N&&fh(n.itemType,e.itemType):n.kind===e.kind}class _p{constructor(e,i,r){this.sensitivity=e?i?"variant":"case":i?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,i){return this.collator.compare(e,i)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class mh{constructor(e,i,r,a,u){this.text=e.normalize?e.normalize():e,this.image=i,this.scale=r,this.fontStack=a,this.textColor=u}}class Wr{constructor(e){this.sections=e}static fromString(e){return new Wr([new mh(e,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||!!e.image&&e.image.hasPrimary())}static factory(e){return e instanceof Wr?e:Wr.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const i of this.sections){if(i.image){const a=i.image.getPrimary().id.toString();e.push(["image",a]);continue}e.push(i.text);const r={};i.fontStack&&(r["text-font"]=["literal",i.fontStack.split(",")]),i.scale&&(r["font-scale"]=i.scale),i.textColor&&(r["text-color"]=["rgba"].concat(i.textColor.toNonPremultipliedRenderColor(null).toArray())),e.push(r)}return e}}class Yo{constructor(e,i={}){this.id=to.from(e),this.params=i.params,this.sx=i.sx||1,this.sy=i.sy||1}toString(){return JSON.stringify(this)}static parse(e){let i,r,a,u;try{({id:i,params:r,sx:a,sy:u}=JSON.parse(e)||{})}catch{return null}return i?new Yo(i,{params:r,sx:a,sy:u}):null}scaleSelf(e,i=e){return this.sx*=e,this.sy*=i,this}}class Tr{constructor(e,i,r,a,u=!1){this.primaryId=to.from(e),this.primaryOptions=i,r&&(this.secondaryId=to.from(r)),this.secondaryOptions=a,this.available=u}toString(){return this.primaryId&&this.secondaryId?`[${this.primaryId.name},${this.secondaryId.name}]`:this.primaryId.name}hasPrimary(){return!!this.primaryId}getPrimary(){return new Yo(this.primaryId,this.primaryOptions)}hasSecondary(){return!!this.secondaryId}getSecondary(){return this.secondaryId?new Yo(this.secondaryId,this.secondaryOptions):null}static from(e){return typeof e=="string"?Tr.build({name:e}):e}static build(e,i,r,a){return!e||typeof e=="object"&&!("name"in e)?null:new Tr(e,r,i,a)}}function b_(n,e,i,r){return typeof n=="number"&&n>=0&&n<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof i=="number"&&i>=0&&i<=255?r===void 0||typeof r=="number"&&r>=0&&r<=1?null:`Invalid rgba value [${[n,e,i,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof r=="number"?[n,e,i,r]:[n,e,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function il(n){if(n===null||typeof n=="string"||typeof n=="boolean"||typeof n=="number"||n instanceof ki||n instanceof _p||n instanceof Wr||n instanceof Tr)return!0;if(Array.isArray(n)){for(const e of n)if(!il(e))return!1;return!0}if(typeof n=="object"){for(const e in n)if(!il(n[e]))return!1;return!0}return!1}function Un(n){if(n===null)return tl;if(typeof n=="string")return Di;if(typeof n=="boolean")return Li;if(typeof n=="number")return St;if(n instanceof ki)return Lr;if(n instanceof _p)return dh;if(n instanceof Wr)return Gc;if(n instanceof Tr)return Ll;if(Array.isArray(n)){const e=n.length;let i;for(const r of n){const a=Un(r);if(i){if(i===a)continue;i=Oi;break}i=a}return Rr(i||Oi,e)}return ha}function fs(n){const e=typeof n;return n===null?"":e==="string"||e==="number"||e==="boolean"?String(n):n instanceof Wr||n instanceof Tr||n instanceof ki?n.toString():JSON.stringify(n)}class Os{constructor(e,i){this.type=e,this.value=i}static parse(e,i){if(e.length!==2)return i.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!il(e[1]))return i.error("invalid value");const r=e[1];let a=Un(r);const u=i.expectedType;return a.kind!=="array"||a.N!==0||!u||u.kind!=="array"||typeof u.N=="number"&&u.N!==0||(a=u),new Os(a,r)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof ki?["rgba"].concat(this.value.toNonPremultipliedRenderColor(null).toArray()):this.value instanceof Wr?this.value.serialize():this.value}}class Yn{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const gp={string:Di,number:St,boolean:Li,object:ha};class Zr{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");let r,a=1;const u=e[0];if(u==="array"){let f,g;if(e.length>2){const y=e[1];if(typeof y!="string"||!(y in gp)||y==="object")return i.error('The item type argument of "array" must be one of string, number, boolean',1);f=gp[y],a++}else f=Oi;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return i.error('The length argument to "array" must be a positive integer literal',2);g=e[2],a++}r=Rr(f,g)}else r=gp[u];const h=[];for(;a<e.length;a++){const f=i.parse(e[a],a,Oi);if(!f)return null;h.push(f)}return new Zr(r,h)}evaluate(e){for(let i=0;i<this.args.length;i++){const r=this.args[i].evaluate(e);if(!Hc(this.type,Un(r)))return r;if(i===this.args.length-1)throw new Yn(`The expression ${JSON.stringify(this.args[i].serialize())} evaluated to ${Vn(Un(r))} but was expected to be of type ${Vn(this.type)}.`)}return null}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=this.type,i=[e.kind];if(e.kind==="array"){const r=e.itemType;if(r.kind==="string"||r.kind==="number"||r.kind==="boolean"){i.push(r.kind);const a=e.N;(typeof a=="number"||this.args.length>1)&&i.push(a)}}return i.concat(this.args.map(r=>r.serialize()))}}class Kt{constructor(e){this.type=Gc,this.sections=e}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");const r=e[1];if(!Array.isArray(r)&&typeof r=="object")return i.error("First argument must be an image or text section.");const a=[];let u=!1;for(let h=1;h<=e.length-1;++h){const f=e[h];if(u&&typeof f=="object"&&!Array.isArray(f)){u=!1;let g=null;if(f["font-scale"]&&(g=i.parseObjectValue(f["font-scale"],h,"font-scale",St),!g))return null;let y=null;if(f["text-font"]&&(y=i.parseObjectValue(f["text-font"],h,"text-font",Rr(Di)),!y))return null;let T=null;if(f["text-color"]&&(T=i.parseObjectValue(f["text-color"],h,"text-color",Lr),!T))return null;const S=a[a.length-1];S.scale=g,S.font=y,S.textColor=T}else{const g=i.parse(e[h],h,Oi);if(!g)return null;const y=g.type.kind;if(y!=="string"&&y!=="value"&&y!=="null"&&y!=="resolvedImage")return i.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");u=!0,a.push({content:g,scale:null,font:null,textColor:null})}}return new Kt(a)}evaluate(e){return new Wr(this.sections.map(i=>{const r=i.content.evaluate(e);return fh(Un(r),Ll)?new mh("",r,null,null,null):new mh(fs(r),null,i.scale?i.scale.evaluate(e):null,i.font?i.font.evaluate(e).join(","):null,i.textColor?i.textColor.evaluate(e):null)}))}eachChild(e){for(const i of this.sections)e(i.content),i.scale&&e(i.scale),i.font&&e(i.font),i.textColor&&e(i.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const i of this.sections){e.push(i.content.serialize());const r={};i.scale&&(r["font-scale"]=i.scale.serialize()),i.font&&(r["text-font"]=i.font.serialize()),i.textColor&&(r["text-color"]=i.textColor.serialize()),e.push(r)}return e}}class Ct{constructor(e,i,r,a){this._imageWarnHistory={},this.type=Ll,this.namePrimary=e,this.nameSecondary=i,r&&(this.paramsPrimary=r.params,this.iconsetIdPrimary=r.iconset?r.iconset.id:void 0),a&&(this.paramsSecondary=a.params,this.iconsetIdSecondary=a.iconset?a.iconset.id:void 0)}static parse(e,i){if(e.length<2)return i.error("Expected two or more arguments.");let r=1;const a=[];function u(){if(r<e.length){const f=i.parse(e[r],r++,Di);return f?(a.push({image:f,options:{}}),!0):(i.error(a.length?"Secondary image variant is not a string.":"No image name provided."),!1)}return!0}function h(){if(r<e.length){const g=e[r];if((f=g)===null||typeof f!="object"||Array.isArray(f))return!0;const y=g.params,T=g.iconset,S=i.concat(r);if(!y&&!T)return r++,!0;if(y){if(typeof y!="object"||y.constructor!==Object)return S.error('Image options "params" should be an object'),!1;const E={},P=S.concat(void 0,"params");for(const M in y){if(!M)return P.error("Image parameter name should be non-empty"),!1;const k=P.concat(void 0,M).parse(y[M],void 0,Lr,void 0,{typeAnnotation:"coerce"});if(!k)return!1;E[M]=k}a[a.length-1].options.params=E}if(T){if(typeof T!="object"||T.constructor!==Object)return S.error('Image options "iconset" should be an object'),!1;if(!T.id)return S.error('Image options "iconset" should have an "id" property'),!1;a[a.length-1].options.iconset=T}return r++,!0}var f;return!0}for(let f=0;f<2;f++)if(!u()||!h())return;return new Ct(a[0].image,a[1]?a[1].image:void 0,a[0].options,a[1]?a[1].options:void 0)}evaluateParams(e,i){const r={};if(i){for(const a in i)if(i[a])try{r[a]=i[a].evaluate(e)}catch{continue}if(Object.keys(r).length!==0)return{params:r}}}evaluate(e){const i={name:this.namePrimary.evaluate(e),iconsetId:this.iconsetIdPrimary},r=this.nameSecondary?{name:this.nameSecondary.evaluate(e),iconsetId:this.iconsetIdSecondary}:void 0,a=Tr.build(i,r,this.paramsPrimary?this.evaluateParams(e,this.paramsPrimary):void 0,this.paramsSecondary?this.evaluateParams(e,this.paramsSecondary):void 0);if(a&&e.availableImages){const u=a.getPrimary().id;if(a.available=e.availableImages.some(h=>to.isEqual(h,u)),a.available){const h=a.getSecondary()?a.getSecondary().id:null;h&&(a.available=e.availableImages.some(f=>to.isEqual(f,h)))}}return a}eachChild(e){if(e(this.namePrimary),this.paramsPrimary)for(const i in this.paramsPrimary)this.paramsPrimary[i]&&e(this.paramsPrimary[i]);if(this.nameSecondary&&(e(this.nameSecondary),this.paramsSecondary))for(const i in this.paramsSecondary)this.paramsSecondary[i]&&e(this.paramsSecondary[i])}outputDefined(){return!1}serializeOptions(e,i){const r={};if(i&&(r.iconset={id:i}),e){r.params={};for(const a in e)e[a]&&(r.params[a]=e[a].serialize())}return Object.keys(r).length>0?r:void 0}serialize(){const e=["image",this.namePrimary.serialize()];if(this.paramsPrimary||this.iconsetIdPrimary){const i=this.serializeOptions(this.paramsPrimary,this.iconsetIdPrimary);i&&e.push(i)}if(this.nameSecondary&&(e.push(this.nameSecondary.serialize()),this.paramsSecondary||this.iconsetIdSecondary)){const i=this.serializeOptions(this.paramsSecondary,this.iconsetIdSecondary);i&&e.push(i)}return e}}function zl(n){return Wc(n)?"string":kl(n)?"number":Ft(n)?"boolean":Array.isArray(n)?"array":n===null?"null":jt(n)?"object":typeof n}function jt(n){return n!=null&&!Array.isArray(n)&&typeof n!="function"&&!(n instanceof String||n instanceof Number||n instanceof Boolean)&&typeof n=="object"}function Wc(n){return typeof n=="string"||n instanceof String}function kl(n){return typeof n=="number"||n instanceof Number}function Ft(n){return typeof n=="boolean"||n instanceof Boolean}const w_={"to-boolean":Li,"to-color":Lr,"to-number":St,"to-string":Di};class Ko{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");const r=e[0],a=[];let u=tl;if(r==="to-array"){if(!Array.isArray(e[1]))return null;const h=e[1].length;if(i.expectedType){if(i.expectedType.kind!=="array")return i.error(`Expected ${i.expectedType.kind} but found array.`);u=Rr(i.expectedType.itemType,h)}else{if(!(h>0&&il(e[1][0])))return null;u=Rr(Un(e[1][0]),h)}for(let f=0;f<h;f++){const g=e[1][f];let y;if(Array.isArray(g))y=i.parse(g,void 0,u.itemType);else{const T=zl(g);if(T!==u.itemType.kind)return i.error(`Expected ${u.itemType.kind} but found ${T}.`);y=i.registry.literal.parse(["literal",g===void 0?null:g],i)}if(!y)return null;a.push(y)}}else{if((r==="to-boolean"||r==="to-string")&&e.length!==2)return i.error("Expected one argument.");u=w_[r];for(let h=1;h<e.length;h++){const f=i.parse(e[h],h,Oi);if(!f)return null;a.push(f)}}return new Ko(u,a)}evaluate(e){if(this.type.kind==="boolean")return!!this.args[0].evaluate(e);if(this.type.kind==="color"){let i,r;for(const a of this.args){if(i=a.evaluate(e),r=null,i instanceof ki)return i;if(typeof i=="string"){const u=e.parseColor(i);if(u)return u}else if(Array.isArray(i)&&(r=i.length<3||i.length>4?`Invalid rbga value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.`:b_(i[0],i[1],i[2],i[3]),!r))return new ki(i[0]/255,i[1]/255,i[2]/255,i[3])}throw new Yn(r||`Could not parse color from value '${typeof i=="string"?i:String(JSON.stringify(i))}'`)}if(this.type.kind==="number"){let i=null;for(const r of this.args){if(i=r.evaluate(e),i===null)return 0;const a=Number(i);if(!isNaN(a))return a}throw new Yn(`Could not convert ${JSON.stringify(i)} to number.`)}return this.type.kind==="formatted"?Wr.fromString(fs(this.args[0].evaluate(e))):this.type.kind==="resolvedImage"?Tr.build(fs(this.args[0].evaluate(e))):this.type.kind==="array"?this.args.map(i=>i.evaluate(e)):fs(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if(this.type.kind==="formatted")return new Kt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new Ct(this.args[0]).serialize();const e=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(i=>{e.push(i.serialize())}),e}}const T_=["Unknown","Point","LineString","Polygon"];class _h{constructor(e,i,r){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=e,this.options=i,this.iconImageUseTheme=r}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?T_[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(e){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,i=this.featureDistanceData.scale,{x:r,y:a}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(r*i-e[0])+this.featureDistanceData.bearing[1]*(a*i-e[1])}return 0}parseColor(e){let i=this._parseColorCache[e];return i||(i=this._parseColorCache[e]=ki.parse(e)),i}getConfig(e){return this.options?this.options.get(e):null}}class zr{constructor(e,i,r,a,u){this.name=e,this.type=i,this._evaluate=r,this.args=a,this._overloadIndex=u}evaluate(e){if(!this._evaluate){const i=zr.definitions[this.name];this._evaluate=Array.isArray(i)?i[2]:i.overloads[this._overloadIndex][1]}return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,i){const r=e[0],a=zr.definitions[r];if(!a)return i.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0);const u=Array.isArray(a)?a[0]:a.type,h=Array.isArray(a)?[[a[1],a[2]]]:a.overloads,f=[];let g=null,y=-1;for(const[T,S]of h){if(Array.isArray(T)&&T.length!==e.length-1)continue;f.push(T),y++,g=new Ch(i.registry,i.path,null,i.scope,void 0,i._scope,i.options,i.iconImageUseTheme);const E=[];let P=!1;for(let M=1;M<e.length;M++){const k=e[M],N=Array.isArray(T)?T[M-1]:T.type,O=g.parse(k,1+E.length,N);if(!O){P=!0;break}E.push(O)}if(!P)if(Array.isArray(T)&&T.length!==E.length)g.error(`Expected ${T.length} arguments, but found ${E.length} instead.`);else{for(let M=0;M<E.length;M++){const k=Array.isArray(T)?T[M]:T.type,N=E[M];g.concat(M+1).checkSubtype(k,N.type)}if(g.errors.length===0)return new zr(r,u,S,E,y)}}if(f.length===1)i.errors.push(...g.errors);else{const T=(f.length?f:h.map(([E])=>E)).map(zv).join(" | "),S=[];for(let E=1;E<e.length;E++){const P=i.parse(e[E],1+S.length);if(!P)return null;S.push(Vn(P.type))}i.error(`Expected arguments of type ${T}, but found (${S.join(", ")}) instead.`)}return null}static register(e,i){zr.definitions=i;for(const r in i)e[r]=zr}}function zv(n){return Array.isArray(n)?`(${n.map(Vn).join(", ")})`:`(${Vn(n.type)}...)`}class Ol{constructor(e,i,r){this.type=dh,this.locale=r,this.caseSensitive=e,this.diacriticSensitive=i}static parse(e,i){if(e.length!==2)return i.error("Expected one argument.");const r=e[1];if(typeof r!="object"||Array.isArray(r))return i.error("Collator options argument must be an object.");const a=r["case-sensitive"]===void 0?i.parse(!1,1,Li):i.parseObjectValue(r["case-sensitive"],1,"case-sensitive",Li);if(!a)return null;const u=r["diacritic-sensitive"]===void 0?i.parse(!1,1,Li):i.parseObjectValue(r["diacritic-sensitive"],1,"diacritic-sensitive",Li);if(!u)return null;let h=null;return r.locale&&(h=i.parseObjectValue(r.locale,1,"locale",Di),!h)?null:new Ol(a,u,h)}evaluate(e){return new _p(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}serialize(){const e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}function da(n,e,i=0,r=n.length-1,a=pa){for(;r>i;){if(r-i>600){const g=r-i+1,y=e-i+1,T=Math.log(g),S=.5*Math.exp(2*T/3),E=.5*Math.sqrt(T*S*(g-S)/g)*(y-g/2<0?-1:1);da(n,e,Math.max(i,Math.floor(e-y*S/g+E)),Math.min(r,Math.floor(e+(g-y)*S/g+E)),a)}const u=n[e];let h=i,f=r;for(nl(n,i,e),a(n[r],u)>0&&nl(n,i,r);h<f;){for(nl(n,h,f),h++,f--;a(n[h],u)<0;)h++;for(;a(n[f],u)>0;)f--}a(n[i],u)===0?nl(n,i,f):(f++,nl(n,f,r)),f<=e&&(i=f+1),e<=f&&(r=f-1)}}function nl(n,e,i){const r=n[e];n[e]=n[i],n[i]=r}function pa(n,e){return n<e?-1:n>e?1:0}function fa(n){let e=0;for(let i,r,a=0,u=n.length,h=u-1;a<u;h=a++)i=n[a],r=n[h],e+=(r.x-i.x)*(i.y+r.y);return e}function Zc(n,e){n[0]=Math.min(n[0],e[0]),n[1]=Math.min(n[1],e[1]),n[2]=Math.max(n[2],e[0]),n[3]=Math.max(n[3],e[1])}function Xc(n,e){return!(n[0]<=e[0]||n[2]>=e[2]||n[1]<=e[1]||n[3]>=e[3])}function kv(n,e,i){const r=n[0]-e[0],a=n[1]-e[1],u=n[0]-i[0],h=n[1]-i[1];return r*h-u*a===0&&r*u<=0&&a*h<=0}function gh(n,e,i){return e[1]>n[1]!=i[1]>n[1]&&n[0]<(i[0]-e[0])*(n[1]-e[1])/(i[1]-e[1])+e[0]}function rl(n,e,i=!1){let r=!1;for(let a=0,u=e.length;a<u;a++){const h=e[a];for(let f=0,g=h.length,y=g-1;f<g;y=f++){const T=h[y],S=h[f];if(kv(n,T,S))return i;gh(n,T,S)&&(r=!r)}}return r}function ma(n,e,i,r){const a=r[0]-i[0],u=r[1]-i[1],h=(n[0]-i[0])*u-a*(n[1]-i[1]),f=(e[0]-i[0])*u-a*(e[1]-i[1]);return h>0&&f<0||h<0&&f>0}function yh(n,e,i,r){return(a=[r[0]-i[0],r[1]-i[1]])[0]*(u=[e[0]-n[0],e[1]-n[1]])[1]-a[1]*u[0]!==0&&!(!ma(n,e,i,r)||!ma(i,r,n,e));var a,u}function yp(n){const e=new it(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),i=new it(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);for(const r of n[0])e.x>r.x&&(e.x=r.x),e.y>r.y&&(e.y=r.y),i.x<r.x&&(i.x=r.x),i.y<r.y&&(i.y=r.y);return{min:e,max:i}}const ms=8192;function Ov(n,e){const i=(180+n[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+n[1]*Math.PI/360)))/360,a=Math.pow(2,e.z);return[Math.round(i*a*ms),Math.round(r*a*ms)]}function Fv(n,e){for(let i=0;i<e.length;i++)if(rl(n,e[i]))return!0;return!1}function S_(n,e,i){for(const r of i)for(let a=0,u=r.length,h=u-1;a<u;h=a++)if(yh(n,e,r[h],r[a]))return!0;return!1}function E_(n,e){for(let i=0;i<n.length;++i)if(!rl(n[i],e))return!1;for(let i=0;i<n.length-1;++i)if(S_(n[i],n[i+1],e))return!1;return!0}function Bv(n,e){for(let i=0;i<e.length;i++)if(E_(n,e[i]))return!0;return!1}function vp(n,e,i){const r=[];for(let a=0;a<n.length;a++){const u=[];for(let h=0;h<n[a].length;h++){const f=Ov(n[a][h],i);Zc(e,f),u.push(f)}r.push(u)}return r}function _a(n,e,i){const r=[];for(let a=0;a<n.length;a++){const u=vp(n[a],e,i);r.push(u)}return r}function A_(n,e,i,r){if(n[0]<i[0]||n[0]>i[2]){const a=.5*r;let u=n[0]-i[0]>a?-r:i[0]-n[0]>a?r:0;u===0&&(u=n[0]-i[2]>a?-r:i[2]-n[0]>a?r:0),n[0]+=u}Zc(e,n)}function I_(n,e,i,r){const a=Math.pow(2,r.z)*ms,u=[r.x*ms,r.y*ms],h=[];if(!n)return h;for(const f of n)for(const g of f){const y=[g.x+u[0],g.y+u[1]];A_(y,e,i,a),h.push(y)}return h}function vh(n,e,i,r){const a=Math.pow(2,r.z)*ms,u=[r.x*ms,r.y*ms],h=[];if(!n)return h;for(const g of n){const y=[];for(const T of g){const S=[T.x+u[0],T.y+u[1]];Zc(e,S),y.push(S)}h.push(y)}if(e[2]-e[0]<=a/2){(f=e)[0]=f[1]=1/0,f[2]=f[3]=-1/0;for(const g of h)for(const y of g)A_(y,e,i,a)}var f;return h}class ga{constructor(e,i){this.type=Li,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(il(e[1])){const r=e[1];if(r.type==="FeatureCollection")for(let a=0;a<r.features.length;++a){const u=r.features[a].geometry.type;if(u==="Polygon"||u==="MultiPolygon")return new ga(r,r.features[a].geometry)}else if(r.type==="Feature"){const a=r.geometry.type;if(a==="Polygon"||a==="MultiPolygon")return new ga(r,r.geometry)}else if(r.type==="Polygon"||r.type==="MultiPolygon")return new ga(r,r)}return i.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return function(i,r){const a=[1/0,1/0,-1/0,-1/0],u=[1/0,1/0,-1/0,-1/0],h=i.canonicalID();if(!h)return!1;if(r.type==="Polygon"){const f=vp(r.coordinates,u,h),g=I_(i.geometry(),a,u,h);if(!Xc(a,u))return!1;for(const y of g)if(!rl(y,f))return!1}if(r.type==="MultiPolygon"){const f=_a(r.coordinates,u,h),g=I_(i.geometry(),a,u,h);if(!Xc(a,u))return!1;for(const y of g)if(!Fv(y,f))return!1}return!0}(e,this.geometries);if(e.geometryType()==="LineString")return function(i,r){const a=[1/0,1/0,-1/0,-1/0],u=[1/0,1/0,-1/0,-1/0],h=i.canonicalID();if(!h)return!1;if(r.type==="Polygon"){const f=vp(r.coordinates,u,h),g=vh(i.geometry(),a,u,h);if(!Xc(a,u))return!1;for(const y of g)if(!E_(y,f))return!1}if(r.type==="MultiPolygon"){const f=_a(r.coordinates,u,h),g=vh(i.geometry(),a,u,h);if(!Xc(a,u))return!1;for(const y of g)if(!Bv(y,f))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}const Yc={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},Bo=1/298.257223563,xp=Bo*(2-Bo),Fl=Math.PI/180;class Bl{static fromTile(e,i,r){const a=Math.PI*(1-2*(e+.5)/Math.pow(2,i)),u=Math.atan(.5*(Math.exp(a)-Math.exp(-a)))/Fl;return new Bl(u,r)}static get units(){return Yc}constructor(e,i){if(e===void 0)throw new Error("No latitude given.");if(i&&!Yc[i])throw new Error(`Unknown unit ${i}. Use one of: ${Object.keys(Yc).join(", ")}`);const r=6378.137*Fl*(i?Yc[i]:1),a=Math.cos(e*Fl),u=1/(1-xp*(1-a*a)),h=Math.sqrt(u);this.kx=r*h*a,this.ky=r*h*u*(1-xp)}distance(e,i){const r=Ao(e[0]-i[0])*this.kx,a=(e[1]-i[1])*this.ky;return Math.sqrt(r*r+a*a)}bearing(e,i){const r=Ao(i[0]-e[0])*this.kx;return Math.atan2(r,(i[1]-e[1])*this.ky)/Fl}destination(e,i,r){const a=r*Fl;return this.offset(e,Math.sin(a)*i,Math.cos(a)*i)}offset(e,i,r){return[e[0]+i/this.kx,e[1]+r/this.ky]}lineDistance(e){let i=0;for(let r=0;r<e.length-1;r++)i+=this.distance(e[r],e[r+1]);return i}area(e){let i=0;for(let r=0;r<e.length;r++){const a=e[r];for(let u=0,h=a.length,f=h-1;u<h;f=u++)i+=Ao(a[u][0]-a[f][0])*(a[u][1]+a[f][1])*(r?-1:1)}return Math.abs(i)/2*this.kx*this.ky}along(e,i){let r=0;if(i<=0)return e[0];for(let a=0;a<e.length-1;a++){const u=e[a],h=e[a+1],f=this.distance(u,h);if(r+=f,r>i)return xh(u,h,(i-(r-f))/f)}return e[e.length-1]}pointToSegmentDistance(e,i,r){let[a,u]=i,h=Ao(r[0]-a)*this.kx,f=(r[1]-u)*this.ky;if(h!==0||f!==0){const g=(Ao(e[0]-a)*this.kx*h+(e[1]-u)*this.ky*f)/(h*h+f*f);g>1?(a=r[0],u=r[1]):g>0&&(a+=h/this.kx*g,u+=f/this.ky*g)}return h=Ao(e[0]-a)*this.kx,f=(e[1]-u)*this.ky,Math.sqrt(h*h+f*f)}pointOnLine(e,i){let r=1/0,a=e[0][0],u=e[0][1],h=0,f=0;for(let g=0;g<e.length-1;g++){let y=e[g][0],T=e[g][1],S=Ao(e[g+1][0]-y)*this.kx,E=(e[g+1][1]-T)*this.ky,P=0;S===0&&E===0||(P=(Ao(i[0]-y)*this.kx*S+(i[1]-T)*this.ky*E)/(S*S+E*E),P>1?(y=e[g+1][0],T=e[g+1][1]):P>0&&(y+=S/this.kx*P,T+=E/this.ky*P)),S=Ao(i[0]-y)*this.kx,E=(i[1]-T)*this.ky;const M=S*S+E*E;M<r&&(r=M,a=y,u=T,h=g,f=P)}return{point:[a,u],index:h,t:Math.max(0,Math.min(1,f))}}lineSlice(e,i,r){let a=this.pointOnLine(r,e),u=this.pointOnLine(r,i);if(a.index>u.index||a.index===u.index&&a.t>u.t){const y=a;a=u,u=y}const h=[a.point],f=a.index+1,g=u.index;!bp(r[f],h[0])&&f<=g&&h.push(r[f]);for(let y=f+1;y<=g;y++)h.push(r[y]);return bp(r[g],u.point)||h.push(u.point),h}lineSliceAlong(e,i,r){let a=0;const u=[];for(let h=0;h<r.length-1;h++){const f=r[h],g=r[h+1],y=this.distance(f,g);if(a+=y,a>e&&u.length===0&&u.push(xh(f,g,(e-(a-y))/y)),a>=i)return u.push(xh(f,g,(i-(a-y))/y)),u;a>e&&u.push(g)}return u}bufferPoint(e,i){const r=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-r,e[0]+a,e[1]+r]}bufferBBox(e,i){const r=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-r,e[2]+a,e[3]+r]}insideBBox(e,i){return Ao(e[0]-i[0])>=0&&Ao(e[0]-i[2])<=0&&e[1]>=i[1]&&e[1]<=i[3]}}function bp(n,e){return n[0]===e[0]&&n[1]===e[1]}function xh(n,e,i){const r=Ao(e[0]-n[0]);return[n[0]+r*i,n[1]+(e[1]-n[1])*i]}function Ao(n){for(;n<-180;)n+=360;for(;n>180;)n-=360;return n}class Kc{constructor(e=[],i=(r,a)=>r<a?-1:r>a?1:0){if(this.data=e,this.length=this.data.length,this.compare=i,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;const e=this.data[0],i=this.data.pop();return--this.length>0&&(this.data[0]=i,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:i,compare:r}=this,a=i[e];for(;e>0;){const u=e-1>>1,h=i[u];if(r(a,h)>=0)break;i[e]=h,e=u}i[e]=a}_down(e){const{data:i,compare:r}=this,a=this.length>>1,u=i[e];for(;e<a;){let h=1+(e<<1);const f=h+1;if(f<this.length&&r(i[f],i[h])<0&&(h=f),r(i[h],u)>=0)break;i[e]=i[h],e=h}i[e]=u}}var dt=8192;function wp(n,e){return e.dist-n.dist}function Tp(n){const e=[1/0,1/0,-1/0,-1/0];if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==n[i])return!1;return!0}function Jc(n){return n[1]-n[0]+1}function _s(n,e){const i=n[1]>=n[0]&&n[1]<e;return i||console.warn("Distance Expression: Index is out of range"),i}function bh(n,e){if(n[0]>n[1])return[null,null];const i=Jc(n);if(e){if(i===2)return[n,null];const r=Math.floor(i/2);return[[n[0],n[0]+r],[n[0]+r,n[1]]]}{if(i===1)return[n,null];const r=Math.floor(i/2)-1;return[[n[0],n[0]+r],[n[0]+r+1,n[1]]]}}function ol(n,e){const i=[1/0,1/0,-1/0,-1/0];if(!_s(e,n.length))return i;for(let r=e[0];r<=e[1];++r)Zc(i,n[r]);return i}function wh(n){const e=[1/0,1/0,-1/0,-1/0];for(let i=0;i<n.length;++i)for(let r=0;r<n[i].length;++r)Zc(e,n[i][r]);return e}function Fs(n,e,i){if(Tp(n)||Tp(e))return NaN;let r=0,a=0;return n[2]<e[0]&&(r=e[0]-n[2]),n[0]>e[2]&&(r=n[0]-e[2]),n[1]>e[3]&&(a=n[1]-e[3]),n[3]<e[1]&&(a=e[1]-n[3]),i.distance([0,0],[r,a])}function Sp(n){return 360*n-180}function Th(n){return 360/Math.PI*Math.atan(Math.exp((180-360*n)*Math.PI/180))-90}function Qc(n,e,i=8192){const r=Math.pow(2,e.z),a=(n.y/i+e.y)/r;return[Sp((n.x/i+e.x)/r),Th(a)]}function C_(n,e){const i=[];for(let r=0;r<n.length;++r)i.push(Qc(n[r],e));return i}function P_(n,e,i){const r=i.pointOnLine(e,n).point;return i.distance(n,r)}function M_(n,e,i,r,a){const u=i.slice(r[0],r[1]+1);let h=1/0;for(let f=e[0];f<=e[1];++f)if((h=Math.min(h,P_(n[f],u,a)))===0)return 0;return h}function Sh(n,e,i,r,a){const u=Math.min(a.pointToSegmentDistance(n,i,r),a.pointToSegmentDistance(e,i,r)),h=Math.min(a.pointToSegmentDistance(i,n,e),a.pointToSegmentDistance(r,n,e));return Math.min(u,h)}function Nl(n,e,i,r,a){if(!_s(e,n.length)||!_s(r,i.length))return NaN;let u=1/0;for(let h=e[0];h<e[1];++h)for(let f=r[0];f<r[1];++f){if(yh(n[h],n[h+1],i[f],i[f+1]))return 0;u=Math.min(u,Sh(n[h],n[h+1],i[f],i[f+1],a))}return u}function _i(n,e,i,r,a){if(!_s(e,n.length)||!_s(r,i.length))return NaN;let u=1/0;for(let h=e[0];h<=e[1];++h)for(let f=r[0];f<=r[1];++f)if((u=Math.min(u,a.distance(n[h],i[f])))===0)return u;return u}function Nv(n,e,i){if(rl(n,e,!0))return 0;let r=1/0;for(const a of e){const u=a.length;if(u<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(a[0]!==a[u-1]&&(r=Math.min(r,i.pointToSegmentDistance(n,a[u-1],a[0])))===0||(r=Math.min(r,P_(n,a,i)))===0)return r}return r}function jv(n,e,i,r){if(!_s(e,n.length))return NaN;for(let u=e[0];u<=e[1];++u)if(rl(n[u],i,!0))return 0;let a=1/0;for(let u=e[0];u<e[1];++u)for(const h of i)for(let f=0,g=h.length,y=g-1;f<g;y=f++){if(yh(n[u],n[u+1],h[y],h[f]))return 0;a=Math.min(a,Sh(n[u],n[u+1],h[y],h[f],r))}return a}function R_(n,e){for(const i of n)for(let r=0;r<=i.length-1;++r)if(rl(i[r],e,!0))return!0;return!1}function D_(n,e,i,r=1/0){const a=wh(n),u=wh(e);if(r!==1/0&&Fs(a,u,i)>=r)return r;if(Xc(a,u)){if(R_(n,e))return 0}else if(R_(e,n))return 0;let h=r;for(const f of n)for(let g=0,y=f.length,T=y-1;g<y;T=g++)for(const S of e)for(let E=0,P=S.length,M=P-1;E<P;M=E++){if(yh(f[T],f[g],S[M],S[E]))return 0;h=Math.min(h,Sh(f[T],f[g],S[M],S[E],i))}return h}function Eh(n,e,i,r,a,u,h){if(u===null||h===null)return;const f=Fs(ol(r,u),ol(a,h),i);f<e&&n.push({dist:f,range1:u,range2:h})}function fn(n,e,i,r,a=1/0){let u=Math.min(r.distance(n[0],i[0][0]),a);if(u===0)return u;const h=new Kc([{dist:0,range1:[0,n.length-1],range2:[0,0]}],wp),f=e?50:100,g=wh(i);for(;h.length;){const y=h.pop();if(y.dist>=u)continue;const T=y.range1;if(Jc(T)<=f){if(!_s(T,n.length))return NaN;if(e){const S=jv(n,T,i,r);if((u=Math.min(u,S))===0)return u}else for(let S=T[0];S<=T[1];++S){const E=Nv(n[S],i,r);if((u=Math.min(u,E))===0)return u}}else{const S=bh(T,e);if(S[0]!==null){const E=Fs(ol(n,S[0]),g,r);E<u&&h.push({dist:E,range1:S[0],range2:[0,0]})}if(S[1]!==null){const E=Fs(ol(n,S[1]),g,r);E<u&&h.push({dist:E,range1:S[1],range2:[0,0]})}}}return u}function L_(n,e,i,r,a,u=1/0){let h=Math.min(u,a.distance(n[0],i[0]));if(h===0)return h;const f=new Kc([{dist:0,range1:[0,n.length-1],range2:[0,i.length-1]}],wp),g=e?50:100,y=r?50:100;for(;f.length;){const T=f.pop();if(T.dist>=h)continue;const S=T.range1,E=T.range2;if(Jc(S)<=g&&Jc(E)<=y){if(!_s(S,n.length)||!_s(E,i.length))return NaN;if(e&&r?h=Math.min(h,Nl(n,S,i,E,a)):e||r?e&&!r?h=Math.min(h,M_(i,E,n,S,a)):!e&&r&&(h=Math.min(h,M_(n,S,i,E,a))):h=Math.min(h,_i(n,S,i,E,a)),h===0)return h}else{const P=bh(S,e),M=bh(E,r);Eh(f,h,a,n,i,P[0],M[0]),Eh(f,h,a,n,i,P[0],M[1]),Eh(f,h,a,n,i,P[1],M[0]),Eh(f,h,a,n,i,P[1],M[1])}}return h}function Ep(n,e,i,r,a=1/0){let u=a;const h=ol(n,[0,n.length-1]);for(const f of i)if(!(u!==1/0&&Fs(h,ol(f,[0,f.length-1]),r)>=u)&&(u=Math.min(u,L_(n,e,f,!0,r,u)),u===0))return u;return u}function Ah(n,e,i,r,a=1/0){let u=a;const h=ol(n,[0,n.length-1]);for(const f of i){if(u!==1/0&&Fs(h,wh(f),r)>=u)continue;const g=fn(n,e,f,r,u);if(isNaN(g))return g;if((u=Math.min(u,g))===0)return u}return u}function Ap(n){return n==="Point"||n==="MultiPoint"||n==="LineString"||n==="MultiLineString"||n==="Polygon"||n==="MultiPolygon"}class sl{constructor(e,i){this.type=St,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'distance' expression requires either one argument, but found ' ${e.length-1} instead.`);if(il(e[1])){const r=e[1];if(r.type==="FeatureCollection"){for(let a=0;a<r.features.length;++a)if(Ap(r.features[a].geometry.type))return new sl(r,r.features[a].geometry)}else if(r.type==="Feature"){if(Ap(r.geometry.type))return new sl(r,r.geometry)}else if(Ap(r.type))return new sl(r,r)}return i.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(e){const i=e.geometry(),r=e.canonicalID();if(i!=null&&r!=null){if(e.geometryType()==="Point")return function(a,u,h){const f=[];for(const y of a)for(const T of y)f.push(Qc(T,u));const g=new Bl(f[0][1],"meters");return h.type==="Point"||h.type==="MultiPoint"||h.type==="LineString"?L_(f,!1,h.type==="Point"?[h.coordinates]:h.coordinates,h.type==="LineString",g):h.type==="MultiLineString"?Ep(f,!1,h.coordinates,g):h.type==="Polygon"||h.type==="MultiPolygon"?Ah(f,!1,h.type==="Polygon"?[h.coordinates]:h.coordinates,g):null}(i,r,this.geometries);if(e.geometryType()==="LineString")return function(a,u,h){const f=[];for(const y of a){const T=[];for(const S of y)T.push(Qc(S,u));f.push(T)}const g=new Bl(f[0][0][1],"meters");if(h.type==="Point"||h.type==="MultiPoint"||h.type==="LineString")return Ep(h.type==="Point"?[h.coordinates]:h.coordinates,h.type==="LineString",f,g);if(h.type==="MultiLineString"){let y=1/0;for(let T=0;T<h.coordinates.length;T++){const S=Ep(h.coordinates[T],!0,f,g,y);if(isNaN(S))return S;if((y=Math.min(y,S))===0)return y}return y}if(h.type==="Polygon"||h.type==="MultiPolygon"){let y=1/0;for(let T=0;T<f.length;T++){const S=Ah(f[T],!0,h.type==="Polygon"?[h.coordinates]:h.coordinates,g,y);if(isNaN(S))return S;if((y=Math.min(y,S))===0)return y}return y}return null}(i,r,this.geometries);if(e.geometryType()==="Polygon")return function(a,u,h){const f=[];for(const y of function(T){const S=T.length;if(S<=1)return[T];const E=[];let P,M;for(let k=0;k<S;k++){const N=fa(T[k]);N!==0&&(T[k].area=Math.abs(N),M===void 0&&(M=N<0),M===N<0?(P&&E.push(P),P=[T[k]]):P.push(T[k]))}return P&&E.push(P),E}(a)){const T=[];for(let S=0;S<y.length;++S)T.push(C_(y[S],u));f.push(T)}const g=new Bl(f[0][0][0][1],"meters");if(h.type==="Point"||h.type==="MultiPoint"||h.type==="LineString")return Ah(h.type==="Point"?[h.coordinates]:h.coordinates,h.type==="LineString",f,g);if(h.type==="MultiLineString"){let y=1/0;for(let T=0;T<h.coordinates.length;T++){const S=Ah(h.coordinates[T],!0,f,g,y);if(isNaN(S))return S;if((y=Math.min(y,S))===0)return y}return y}return h.type==="Polygon"||h.type==="MultiPolygon"?function(y,T,S){let E=1/0;for(const P of y)for(const M of T){const k=D_(P,M,S,E);if(isNaN(k))return k;if((E=Math.min(E,k))===0)return E}return E}(h.type==="Polygon"?[h.coordinates]:h.coordinates,f,g):null}(i,r,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 jl(n){if(n instanceof zr&&(n.name==="get"&&n.args.length===1||n.name==="feature-state"||n.name==="has"&&n.args.length===1||n.name==="properties"||n.name==="geometry-type"||n.name==="id"||/^filter-/.test(n.name))||n instanceof ga||n instanceof sl)return!1;if(n instanceof Ul)return n.featureConstant;let e=!0;return n.eachChild(i=>{e&&!jl(i)&&(e=!1)}),e}function eu(n){if(n instanceof zr&&n.name==="feature-state")return!1;let e=!0;return n.eachChild(i=>{e&&!eu(i)&&(e=!1)}),e}function Vl(n,e){if(n instanceof zr&&e.indexOf(n.name)>=0)return!1;let i=!0;return n.eachChild(r=>{i&&!Vl(r,e)&&(i=!1)}),i}function z_(n,e,i){return[n,e,i].filter(Boolean).join("")}function Ip(n,e){switch(n){case"string":return fs(e);case"number":return+e;case"boolean":return!!e;case"color":return ki.parse(e);case"formatted":return Wr.fromString(fs(e));case"resolvedImage":return Tr.build(fs(e))}return e}function k_(n,e,i,r){return r!==void 0&&(n=r*Math.round(n/r)),e!==void 0&&n<e&&(n=e),i!==void 0&&n>i&&(n=i),n}class Ul{constructor(e,i,r,a=!1){this.type=e,this.key=i,this.scope=r,this.featureConstant=a}static parse(e,i){let r=i.expectedType;if(r==null&&(r=Oi),e.length<2||e.length>3)return i.error("Invalid number of arguments for 'config' expression.");const a=i.parse(e[1],1);if(!(a instanceof Os))return i.error("Key name of 'config' expression must be a string literal.");let u,h=!0;const f=fs(a.value);if(e.length>=3){const g=i.parse(e[2],2);if(!(g instanceof Os))return i.error("Scope of 'config' expression must be a string literal.");u=fs(g.value)}if(i.options){const g=z_(f,u,i._scope),y=i.options.get(g);y&&(h=jl(y.value||y.default))}return new Ul(r,f,u,h)}evaluate(e){const i=z_(this.key,this.scope,e.scope),r=e.getConfig(i);if(!r)return null;const{type:a,value:u,values:h,minValue:f,maxValue:g,stepValue:y}=r,T=r.default.evaluate(e);let S=T;if(u){const E=e.scope;e.scope=(E||"").split("").slice(1).join(""),S=u.evaluate(e),e.scope=E}return a&&(S=Ip(a,S)),S===void 0||f===void 0&&g===void 0&&y===void 0||(typeof S=="number"?S=k_(S,f,g,y):Array.isArray(S)&&(S=S.map(E=>typeof E=="number"?k_(E,f,g,y):E))),u!==void 0&&S!==void 0&&h&&!h.includes(S)&&(S=T,a&&(S=Ip(a,S))),(a&&a!==this.type||S!==void 0&&!fh(Un(S),this.type))&&(S=Ip(this.type.kind,S)),S}eachChild(){}outputDefined(){return!1}serialize(){const e=["config",this.key];return this.scope&&e.concat(this.scope),e}}class Ih{constructor(e,i){this.type=i.type,this.name=e,this.boundExpression=i}static parse(e,i){if(e.length!==2||typeof e[1]!="string")return i.error("'var' expression requires exactly one string literal argument.");const r=e[1];return i.scope.has(r)?new Ih(r,i.scope.get(r)):i.error(`Unknown variable "${r}". Make sure "${r}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class Ch{constructor(e,i=[],r,a=new ua,u=[],h,f,g){this.registry=e,this.path=i,this.key=i.map(y=>typeof y=="string"?`['${y}']`:`[${y}]`).join(""),this.scope=a,this.errors=u,this.expectedType=r,this._scope=h,this.options=f,this.iconImageUseTheme=g}parse(e,i,r,a,u={}){return i||r?this.concat(i,null,r,a)._parse(e,u):this._parse(e,u)}parseObjectValue(e,i,r,a,u,h={}){return this.concat(i,r,a,u)._parse(e,h)}_parse(e,i){function r(a,u,h){return h==="assert"?new Zr(u,[a]):h==="coerce"?new Ko(u,[a]):a}if(e!==null&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"||(e=["literal",e]),Array.isArray(e)){if(e.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const a=typeof e[0]=="string"?this.registry[e[0]]:void 0;if(a){let u=a.parse(e,this);if(!u)return null;if(this.expectedType){const h=this.expectedType,f=u.type;if(h.kind!=="string"&&h.kind!=="number"&&h.kind!=="boolean"&&h.kind!=="object"&&h.kind!=="array"||f.kind!=="value")if(h.kind!=="color"&&h.kind!=="formatted"&&h.kind!=="resolvedImage"||f.kind!=="value"&&f.kind!=="string"){if(this.checkSubtype(h,f))return null}else u=r(u,h,i.typeAnnotation||"coerce");else u=r(u,h,i.typeAnnotation||"assert")}if(!(u instanceof Os)&&u.type.kind!=="resolvedImage"&&Cp(u)){const h=new _h(this._scope,this.options,this.iconImageUseTheme);try{u=new Os(u.type,u.evaluate(h))}catch(f){return this.error(f.message),null}}return u}return Ko.parse(["to-array",e],this)}return this.error(e===void 0?"'undefined' value invalid. Use null instead.":typeof e=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,i,r,a){let u=typeof e=="number"?this.path.concat(e):this.path;u=typeof i=="string"?u.concat(i):u;const h=a?this.scope.concat(a):this.scope;return new Ch(this.registry,u,r||null,h,this.errors,this._scope,this.options,this.iconImageUseTheme)}error(e,...i){const r=`${this.key}${i.map(a=>`[${a}]`).join("")}`;this.errors.push(new po(r,e))}checkSubtype(e,i){const r=Hc(e,i);return r&&this.error(r),r}}function Cp(n){if(n instanceof Ih)return Cp(n.boundExpression);if(n instanceof zr&&n.name==="error"||n instanceof Ol||n instanceof ga||n instanceof sl||n instanceof Ul)return!1;const e=n instanceof Ko||n instanceof Zr;let i=!0;return n.eachChild(r=>{i=e?i&&Cp(r):i&&r instanceof Os}),!!i&&jl(n)&&Vl(n,["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 Ph(n,e){const i=n.length-1;let r,a,u=0,h=i,f=0;for(;u<=h;)if(f=Math.floor((u+h)/2),r=n[f],a=n[f+1],r<=e){if(f===i||e<a)return f;u=f+1}else{if(!(r>e))throw new Yn("Input is not a number.");h=f-1}return 0}class tu{constructor(e,i,r){this.type=e,this.input=i,this.labels=[],this.outputs=[];for(const[a,u]of r)this.labels.push(a),this.outputs.push(u)}static parse(e,i){if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return i.error("Expected an even number of arguments.");const r=i.parse(e[1],1,St);if(!r)return null;const a=[];let u=null;i.expectedType&&i.expectedType.kind!=="value"&&(u=i.expectedType);for(let h=1;h<e.length;h+=2){const f=h===1?-1/0:e[h],g=e[h+1],y=h,T=h+1;if(typeof f!="number")return i.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',y);if(a.length&&a[a.length-1][0]>=f)return i.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',y);const S=i.parse(g,T,u);if(!S)return null;u=u||S.type,a.push([f,S])}return new tu(u,r,a)}evaluate(e){const i=this.labels,r=this.outputs;if(i.length===1)return r[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return r[0].evaluate(e);const u=i.length;return a>=i[u-1]?r[u-1].evaluate(e):r[Ph(i,a)].evaluate(e)}eachChild(e){e(this.input);for(const i of this.outputs)e(i)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let i=0;i<this.labels.length;i++)i>0&&e.push(this.labels[i]),e.push(this.outputs[i].serialize());return e}}const O_=.95047,F_=1.08883,B_=4/29,$l=6/29,N_=3*$l*$l,Vv=$l*$l*$l,Uv=Math.PI/180,$v=180/Math.PI;function Pp(n){return n>Vv?Math.pow(n,1/3):n/N_+B_}function Mp(n){return n>$l?n*n*n:N_*(n-B_)}function Rp(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function Dp(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function j_(n){const e=Dp(n.r),i=Dp(n.g),r=Dp(n.b),a=Pp((.4124564*e+.3575761*i+.1804375*r)/O_),u=Pp((.2126729*e+.7151522*i+.072175*r)/1);return{l:116*u-16,a:500*(a-u),b:200*(u-Pp((.0193339*e+.119192*i+.9503041*r)/F_)),alpha:n.a}}function V_(n){let e=(n.l+16)/116,i=isNaN(n.a)?e:e+n.a/500,r=isNaN(n.b)?e:e-n.b/200;return e=1*Mp(e),i=O_*Mp(i),r=F_*Mp(r),new ki(Rp(3.2404542*i-1.5371385*e-.4985314*r),Rp(-.969266*i+1.8760108*e+.041556*r),Rp(.0556434*i-.2040259*e+1.0572252*r),n.alpha)}function Lp(n,e,i){const r=e-n;return n+i*(r>180||r<-180?r-360*Math.round(r/360):r)}const ya={forward:j_,reverse:V_,interpolate:function(n,e,i){return{l:Bt(n.l,e.l,i),a:Bt(n.a,e.a,i),b:Bt(n.b,e.b,i),alpha:Bt(n.alpha,e.alpha,i)}}},Gl={forward:function(n){const{l:e,a:i,b:r}=j_(n),a=Math.atan2(r,i)*$v;return{h:a<0?a+360:a,c:Math.sqrt(i*i+r*r),l:e,alpha:n.a}},reverse:function(n){const e=n.h*Uv,i=n.c;return V_({l:n.l,a:Math.cos(e)*i,b:Math.sin(e)*i,alpha:n.alpha})},interpolate:function(n,e,i){return{h:Lp(n.h,e.h,i),c:Bt(n.c,e.c,i),l:Bt(n.l,e.l,i),alpha:Bt(n.alpha,e.alpha,i)}}};var U_=Object.freeze({__proto__:null,hcl:Gl,lab:ya});class Io{constructor(e,i,r,a,u){this.type=e,this.operator=i,this.interpolation=r,this.input=a,this.labels=[],this.outputs=[];for(const[h,f]of u)this.labels.push(h),this.outputs.push(f)}static interpolationFactor(e,i,r,a){let u=0;if(e.name==="exponential")u=zp(i,e.base,r,a);else if(e.name==="linear")u=zp(i,1,r,a);else if(e.name==="cubic-bezier"){const h=e.controlPoints;u=new Rl(h[0],h[1],h[2],h[3]).solve(zp(i,1,r,a))}return u}static parse(e,i){let[r,a,u,...h]=e;if(!Array.isArray(a)||a.length===0)return i.error("Expected an interpolation type expression.",1);if(a[0]==="linear")a={name:"linear"};else if(a[0]==="exponential"){const y=a[1];if(typeof y!="number")return i.error("Exponential interpolation requires a numeric base.",1,1);a={name:"exponential",base:y}}else{if(a[0]!=="cubic-bezier")return i.error(`Unknown interpolation type ${String(a[0])}`,1,0);{const y=a.slice(1);if(y.length!==4||y.some(T=>typeof T!="number"||T<0||T>1))return i.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);a={name:"cubic-bezier",controlPoints:y}}}if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length-1>3&&(e.length-1)%2!=0)return i.error("Expected an even number of arguments.");if(u=i.parse(u,2,St),!u)return null;const f=[];let g=null;r==="interpolate-hcl"||r==="interpolate-lab"?g=Lr:i.expectedType&&i.expectedType.kind!=="value"&&(g=i.expectedType);for(let y=0;y<h.length;y+=2){const T=h[y],S=h[y+1],E=y+3,P=y+4;if(typeof T!="number")return i.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',E);if(f.length&&f[f.length-1][0]>=T)return i.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',E);const M=i.parse(S,P,g);if(!M)return null;g=g||M.type,f.push([T,M])}return g.kind==="number"||g.kind==="color"||g.kind==="array"&&g.itemType.kind==="number"&&typeof g.N=="number"?new Io(g,r,a,u,f):i.error(`Type ${Vn(g)} is not interpolatable.`)}evaluate(e){const i=this.labels,r=this.outputs;if(i.length===1)return r[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return r[0].evaluate(e);const u=i.length;if(a>=i[u-1])return r[u-1].evaluate(e);const h=Ph(i,a),f=Io.interpolationFactor(this.interpolation,a,i[h],i[h+1]),g=r[h].evaluate(e),y=r[h+1].evaluate(e);return this.operator==="interpolate"?$c[this.type.kind.toLowerCase()](g,y,f):this.operator==="interpolate-hcl"?Gl.reverse(Gl.interpolate(Gl.forward(g),Gl.forward(y),f)):ya.reverse(ya.interpolate(ya.forward(g),ya.forward(y),f))}eachChild(e){e(this.input);for(const i of this.outputs)e(i)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;e=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier",...this.interpolation.controlPoints];const i=[this.operator,e,this.input.serialize()];for(let r=0;r<this.labels.length;r++)i.push(this.labels[r],this.outputs[r].serialize());return i}}function zp(n,e,i,r){const a=r-i,u=n-i;return a===0?0:e===1?u/a:(Math.pow(e,u)-1)/(Math.pow(e,a)-1)}class iu{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expectected at least one argument.");let r=null;const a=i.expectedType;a&&a.kind!=="value"&&(r=a);const u=[];for(const f of e.slice(1)){const g=i.parse(f,1+u.length,r,void 0,{typeAnnotation:"omit"});if(!g)return null;r=r||g.type,u.push(g)}const h=a&&u.some(f=>Hc(a,f.type));return new iu(h?Oi:r,u)}evaluate(e){let i,r=null,a=0;for(const u of this.args){if(a++,r=u.evaluate(e),r&&r instanceof Tr&&!r.available&&(i||(i=r),r=null,a===this.args.length))return i;if(r!==null)break}return r}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(i=>{e.push(i.serialize())}),e}}class nu{constructor(e,i){this.type=i.type,this.bindings=[].concat(e),this.result=i}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const i of this.bindings)e(i[1]);e(this.result)}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const r=[];for(let u=1;u<e.length-1;u+=2){const h=e[u];if(typeof h!="string")return i.error(`Expected string, but found ${typeof h} instead.`,u);if(/[^a-zA-Z0-9_]/.test(h))return i.error("Variable names must contain only alphanumeric characters or '_'.",u);const f=i.parse(e[u+1],u+1);if(!f)return null;r.push([h,f])}const a=i.parse(e[e.length-1],e.length-1,i.expectedType,r);return a?new nu(r,a):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[i,r]of this.bindings)e.push(i,r.serialize());return e.push(this.result.serialize()),e}}class va{constructor(e,i,r){this.type=e,this.index=i,this.input=r}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,St),a=i.parse(e[2],2,Rr(i.expectedType||Oi));return r&&a?new va(a.type.itemType,r,a):null}evaluate(e){const i=this.index.evaluate(e),r=this.input.evaluate(e);if(i<0)throw new Yn("Array index out of bounds: negative index");if(i>=r.length)throw new Yn("Array index out of bounds: index exceeds array size");if(i!==Math.floor(i))throw new Yn("Array index must be an integer. Use at-interpolated for fractional indices");return r[i]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class Mh{constructor(e,i,r){this.type=e,this.index=i,this.input=r}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,St),a=i.parse(e[2],2,Rr(i.expectedType||Oi));return r&&a?new Mh(a.type.itemType,r,a):null}evaluate(e){const i=this.index.evaluate(e),r=this.input.evaluate(e);if(i<0)throw new Yn(`Array index out of bounds: ${i} < 0.`);if(i>r.length-1)throw new Yn(`Array index out of bounds: ${i} > ${r.length-1}.`);if(i===Math.floor(i))return r[i];const a=Math.floor(i),u=Math.ceil(i),h=r[a],f=r[u];if(typeof h!="number"||typeof f!="number")throw new Yn(`Cannot interpolate between non-number values at index ${i}.`);const g=i-a;return h*(1-g)+f*g}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at-interpolated",this.index.serialize(),this.input.serialize()]}}class Rh{constructor(e,i){this.type=Li,this.needle=e,this.haystack=i}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Oi),a=i.parse(e[2],2,Oi);return r&&a?mp(r.type,[Li,Di,St,tl,Oi])?new Rh(r,a):i.error(`Expected first argument to be of type boolean, string, number or null, but found ${Vn(r.type)} instead`):null}evaluate(e){const i=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(r==null)return!1;if(!qc(i,["boolean","string","number","null"]))throw new Yn(`Expected first argument to be of type boolean, string, number or null, but found ${Vn(Un(i))} instead.`);if(!qc(r,["string","array"]))throw new Yn(`Expected second argument to be of type array or string, but found ${Vn(Un(r))} instead.`);return r.indexOf(i)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class Dh{constructor(e,i,r){this.type=St,this.needle=e,this.haystack=i,this.fromIndex=r}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Oi),a=i.parse(e[2],2,Oi);if(!r||!a)return null;if(!mp(r.type,[Li,Di,St,tl,Oi]))return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${Vn(r.type)} instead`);if(e.length===4){const u=i.parse(e[3],3,St);return u?new Dh(r,a,u):null}return new Dh(r,a)}evaluate(e){const i=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(!qc(i,["boolean","string","number","null"]))throw new Yn(`Expected first argument to be of type boolean, string, number or null, but found ${Vn(Un(i))} instead.`);if(!qc(r,["string","array"]))throw new Yn(`Expected second argument to be of type array or string, but found ${Vn(Un(r))} instead.`);if(this.fromIndex){const a=this.fromIndex.evaluate(e);return r.indexOf(i,a)}return r.indexOf(i)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class ru{constructor(e,i,r,a,u,h){this.inputType=e,this.type=i,this.input=r,this.cases=a,this.outputs=u,this.otherwise=h}static parse(e,i){if(e.length<5)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return i.error("Expected an even number of arguments.");let r,a;i.expectedType&&i.expectedType.kind!=="value"&&(a=i.expectedType);const u={},h=[];for(let y=2;y<e.length-1;y+=2){let T=e[y];const S=e[y+1];Array.isArray(T)||(T=[T]);const E=i.concat(y);if(T.length===0)return E.error("Expected at least one branch label.");for(const M of T){if(typeof M!="number"&&typeof M!="string")return E.error("Branch labels must be numbers or strings.");if(typeof M=="number"&&Math.abs(M)>Number.MAX_SAFE_INTEGER)return E.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof M=="number"&&Math.floor(M)!==M)return E.error("Numeric branch labels must be integer values.");if(r){if(E.checkSubtype(r,Un(M)))return null}else r=Un(M);if(u[String(M)]!==void 0)return E.error("Branch labels must be unique.");u[String(M)]=h.length}const P=i.parse(S,y,a);if(!P)return null;a=a||P.type,h.push(P)}const f=i.parse(e[1],1,Oi);if(!f)return null;const g=i.parse(e[e.length-1],e.length-1,a);return g?f.type.kind!=="value"&&i.concat(1).checkSubtype(r,f.type)?null:new ru(r,a,f,u,h,g):null}evaluate(e){const i=this.input.evaluate(e);return(fh(Un(i),this.inputType)&&this.outputs[this.cases[i]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],i=Object.keys(this.cases).sort(),r=[],a={};for(const h of i){const f=a[this.cases[h]];f===void 0?(a[this.cases[h]]=r.length,r.push([this.cases[h],[h]])):r[f][1].push(h)}const u=h=>this.inputType.kind==="number"?Number(h):h;for(const[h,f]of r)e.push(f.length===1?u(f[0]):f.map(u)),e.push(this.outputs[h].serialize());return e.push(this.otherwise.serialize()),e}}class ou{constructor(e,i,r){this.type=e,this.branches=i,this.otherwise=r}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return i.error("Expected an odd number of arguments.");let r;i.expectedType&&i.expectedType.kind!=="value"&&(r=i.expectedType);const a=[];for(let h=1;h<e.length-1;h+=2){const f=i.parse(e[h],h,Li);if(!f)return null;const g=i.parse(e[h+1],h+1,r);if(!g)return null;a.push([f,g]),r=r||g.type}const u=i.parse(e[e.length-1],e.length-1,r);return u?new ou(r,a,u):null}evaluate(e){for(const[i,r]of this.branches)if(i.evaluate(e))return r.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[i,r]of this.branches)e(i),e(r);e(this.otherwise)}outputDefined(){return this.branches.every(([e,i])=>i.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(i=>{e.push(i.serialize())}),e}}class Hl{constructor(e,i,r,a){this.type=e,this.input=i,this.beginIndex=r,this.endIndex=a}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Oi),a=i.parse(e[2],2,St);if(!r||!a)return null;if(!mp(r.type,[Rr(Oi),Di,Oi]))return i.error(`Expected first argument to be of type array or string, but found ${Vn(r.type)} instead`);if(e.length===4){const u=i.parse(e[3],3,St);return u?new Hl(r.type,r,a,u):null}return new Hl(r.type,r,a)}evaluate(e){const i=this.input.evaluate(e),r=this.beginIndex.evaluate(e);if(!qc(i,["string","array"]))throw new Yn(`Expected first argument to be of type array or string, but found ${Vn(Un(i))} instead.`);if(this.endIndex){const a=this.endIndex.evaluate(e);return i.slice(r,a)}return i.slice(r)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}class kp{constructor(e,i){this.type=Rr(Di),this.str=e,this.delimiter=i}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Di),a=i.parse(e[2],2,Di);return r&&a?new kp(r,a):void 0}evaluate(e){const i=this.str.evaluate(e),r=this.delimiter.evaluate(e);return i.split(r)}eachChild(e){e(this.str),e(this.delimiter)}outputDefined(){return!1}serialize(){return["split",this.str.serialize(),this.delimiter.serialize()]}}function $_(n,e){return n==="=="||n==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function Op(n,e,i,r){return r.compare(e,i)===0}function al(n,e,i){const r=n!=="=="&&n!=="!=";return class rC{constructor(u,h,f){this.type=Li,this.lhs=u,this.rhs=h,this.collator=f,this.hasUntypedArgument=u.type.kind==="value"||h.type.kind==="value"}static parse(u,h){if(u.length!==3&&u.length!==4)return h.error("Expected two or three arguments.");const f=u[0];let g=h.parse(u[1],1,Oi);if(!g)return null;if(!$_(f,g.type))return h.concat(1).error(`"${f}" comparisons are not supported for type '${Vn(g.type)}'.`);let y=h.parse(u[2],2,Oi);if(!y)return null;if(!$_(f,y.type))return h.concat(2).error(`"${f}" comparisons are not supported for type '${Vn(y.type)}'.`);if(g.type.kind!==y.type.kind&&g.type.kind!=="value"&&y.type.kind!=="value")return h.error(`Cannot compare types '${Vn(g.type)}' and '${Vn(y.type)}'.`);r&&(g.type.kind==="value"&&y.type.kind!=="value"?g=new Zr(y.type,[g]):g.type.kind!=="value"&&y.type.kind==="value"&&(y=new Zr(g.type,[y])));let T=null;if(u.length===4){if(g.type.kind!=="string"&&y.type.kind!=="string"&&g.type.kind!=="value"&&y.type.kind!=="value")return h.error("Cannot use collator to compare non-string types.");if(T=h.parse(u[3],3,dh),!T)return null}return new rC(g,y,T)}evaluate(u){const h=this.lhs.evaluate(u),f=this.rhs.evaluate(u);if(r&&this.hasUntypedArgument){const g=Un(h),y=Un(f);if(g.kind!==y.kind||g.kind!=="string"&&g.kind!=="number")throw new Yn(`Expected arguments for "${n}" to be (string, string) or (number, number), but found (${g.kind}, ${y.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const g=Un(h),y=Un(f);if(g.kind!=="string"||y.kind!=="string")return e(u,h,f)}return this.collator?i(u,h,f,this.collator.evaluate(u)):e(u,h,f)}eachChild(u){u(this.lhs),u(this.rhs),this.collator&&u(this.collator)}outputDefined(){return!0}serialize(){const u=[n];return this.eachChild(h=>{u.push(h.serialize())}),u}}}const Gv=al("==",function(n,e,i){return e===i},Op),Hv=al("!=",function(n,e,i){return e!==i},function(n,e,i,r){return!Op(0,e,i,r)}),qv=al("<",function(n,e,i){return e<i},function(n,e,i,r){return r.compare(e,i)<0}),G_=al(">",function(n,e,i){return e>i},function(n,e,i,r){return r.compare(e,i)>0}),H_=al("<=",function(n,e,i){return e<=i},function(n,e,i,r){return r.compare(e,i)<=0}),Lh=al(">=",function(n,e,i){return e>=i},function(n,e,i,r){return r.compare(e,i)>=0});class Fp{constructor(e,i,r,a,u,h){this.type=Di,this.number=e,this.locale=i,this.currency=r,this.unit=a,this.minFractionDigits=u,this.maxFractionDigits=h}static parse(e,i){if(e.length!==3)return i.error("Expected two arguments.");const r=i.parse(e[1],1,St);if(!r)return null;const a=e[2];if(typeof a!="object"||Array.isArray(a))return i.error("NumberFormat options argument must be an object.");let u=null;if(a.locale&&(u=i.parseObjectValue(a.locale,2,"locale",Di),!u))return null;let h=null;if(a.currency&&(h=i.parseObjectValue(a.currency,2,"currency",Di),!h))return null;let f=null;if(a.unit&&(f=i.parseObjectValue(a.unit,2,"unit",Di),!f))return null;let g=null;if(a["min-fraction-digits"]&&(g=i.parseObjectValue(a["min-fraction-digits"],2,"min-fraction-digits",St),!g))return null;let y=null;return a["max-fraction-digits"]&&(y=i.parseObjectValue(a["max-fraction-digits"],2,"max-fraction-digits",St),!y)?null:new Fp(r,u,h,f,g,y)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class zh{constructor(e){this.type=St,this.input=e}static parse(e,i){if(e.length!==2)return i.error(`Expected 1 argument, but found ${e.length-1} instead.`);const r=i.parse(e[1],1);return r?r.type.kind!=="array"&&r.type.kind!=="string"&&r.type.kind!=="value"?i.error(`Expected argument of type string or array, but found ${Vn(r.type)} instead.`):new zh(r):null}evaluate(e){const i=this.input.evaluate(e);if(typeof i=="string"||Array.isArray(i))return i.length;throw new Yn(`Expected value to be of type string or array, but found ${Vn(Un(i))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(i=>{e.push(i.serialize())}),e}}function q_(n){return function(){n=1831565813+(n|=0)|0;let e=Math.imul(n^n>>>15,1|n);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const ql={"==":Gv,"!=":Hv,">":G_,"<":qv,">=":Lh,"<=":H_,array:Zr,at:va,"at-interpolated":Mh,boolean:Zr,case:ou,coalesce:iu,collator:Ol,format:Kt,image:Ct,in:Rh,"index-of":Dh,interpolate:Io,"interpolate-hcl":Io,"interpolate-lab":Io,length:zh,let:nu,literal:Os,match:ru,number:Zr,"number-format":Fp,object:Zr,slice:Hl,step:tu,string:Zr,"to-boolean":Ko,"to-color":Ko,"to-number":Ko,"to-string":Ko,var:Ih,within:ga,distance:sl,config:Ul,split:kp};function Bp(n,[e,i,r,a]){e=e.evaluate(n),i=i.evaluate(n),r=r.evaluate(n);const u=a?a.evaluate(n):1,h=b_(e,i,r,u);if(h)throw new Yn(h);return new ki(e/255,i/255,r/255,u)}function Np(n,[e,i,r,a]){e=e.evaluate(n),i=i.evaluate(n),r=r.evaluate(n);const u=a?a.evaluate(n):1,h=function(y,T,S,E){return typeof y=="number"&&y>=0&&y<=360?typeof T=="number"&&T>=0&&T<=100&&typeof S=="number"&&S>=0&&S<=100?E===void 0||typeof E=="number"&&E>=0&&E<=1?null:`Invalid hsla value [${[y,T,S,E].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof E=="number"?[y,T,S,E]:[y,T,S]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof E=="number"?[y,T,S,E]:[y,T,S]).join(", ")}]: 'h' must be between 0 and 360.`}(e,i,r,u);if(h)throw new Yn(h);const f=`hsla(${e}, ${i}%, ${r}%, ${u})`,g=ki.parse(f);if(!g)throw new Yn(`Failed to parse HSLA color: ${f}`);return g}function W_(n,e){return n in e}function jp(n,e){const i=e[n];return i===void 0?null:i}function xa(n){return{type:n}}function kh(n){if(n instanceof Ul)return new Set([n.key]);let e=new Set;return n.eachChild(i=>{e=new Set([...e,...kh(i)])}),e}function ll(n){if(n instanceof zr&&n.name==="is-active-floor")return!0;let e=!1;return n.eachChild(i=>{!e&&ll(i)&&(e=!0)}),e}function Z_(n){return{result:"success",value:n}}function ba(n){return{result:"error",value:n}}function Vp(n,e){return!!n&&!!n.parameters&&n.parameters.indexOf(e)>-1}function Oh(n){return n["property-type"]==="data-driven"}function X_(n){return Vp(n.expression,"measure-light")}function Fh(n){return Vp(n.expression,"zoom")}function Up(n){return!!n.expression&&n.expression.interpolated}function $p(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Y_(n){return n}function Gp(n,e){const i=e.type==="color",r=n.stops&&typeof n.stops[0][0]=="object",a=r||!(r||n.property!==void 0),u=n.type||(Up(e)?"exponential":"interval");if(i&&((n=Object.assign({},n)).stops&&(n.stops=n.stops.map(y=>[y[0],ki.parse(y[1])])),n.default=ki.parse(n.default?n.default:e.default)),n.colorSpace&&n.colorSpace!=="rgb"&&!U_[n.colorSpace])throw new Error(`Unknown color space: ${n.colorSpace}`);let h,f,g;if(u==="exponential")h=cl;else if(u==="interval")h=Wv;else if(u==="categorical"){h=K_,f=Object.create(null);for(const y of n.stops)f[y[0]]=y[1];g=typeof n.stops[0][0]}else{if(u!=="identity")throw new Error(`Unknown function type "${u}"`);h=Zv}if(r){const y={},T=[];for(let P=0;P<n.stops.length;P++){const M=n.stops[P],k=M[0].zoom;y[k]===void 0&&(y[k]={zoom:k,type:n.type,property:n.property,default:n.default,stops:[]},T.push(k)),y[k].stops.push([M[0].value,M[1]])}const S=[];for(const P of T)S.push([y[P].zoom,Gp(y[P],e)]);const E={name:"linear"};return{kind:"composite",interpolationType:E,interpolationFactor:Io.interpolationFactor.bind(void 0,E),zoomStops:S.map(P=>P[0]),evaluate:({zoom:P},M)=>cl({stops:S,base:n.base},e,P).evaluate(P,M)}}if(a){const y=u==="exponential"?{name:"exponential",base:n.base!==void 0?n.base:1}:null;return{kind:"camera",interpolationType:y,interpolationFactor:Io.interpolationFactor.bind(void 0,y),zoomStops:n.stops.map(T=>T[0]),evaluate:({zoom:T})=>h(n,e,T,f,g)}}return{kind:"source",evaluate(y,T){const S=T&&T.properties?T.properties[n.property]:void 0;return S===void 0?su(n.default,e.default):h(n,e,S,f,g)}}}function su(n,e,i){return n!==void 0?n:e!==void 0?e:i!==void 0?i:void 0}function K_(n,e,i,r,a){return su(typeof i===a?r[i]:void 0,n.default,e.default)}function Wv(n,e,i){if(!kl(i))return su(n.default,e.default);const r=n.stops.length;if(r===1||i<=n.stops[0][0])return n.stops[0][1];if(i>=n.stops[r-1][0])return n.stops[r-1][1];const a=Ph(n.stops.map(u=>u[0]),i);return n.stops[a][1]}function cl(n,e,i){const r=n.base!==void 0?n.base:1;if(!kl(i))return su(n.default,e.default);const a=n.stops.length;if(a===1||i<=n.stops[0][0])return n.stops[0][1];if(i>=n.stops[a-1][0])return n.stops[a-1][1];const u=Ph(n.stops.map(T=>T[0]),i),h=function(T,S,E,P){const M=P-E,k=T-E;return M===0?0:S===1?k/M:(Math.pow(S,k)-1)/(Math.pow(S,M)-1)}(i,r,n.stops[u][0],n.stops[u+1][0]),f=n.stops[u][1],g=n.stops[u+1][1];let y=$c[e.type]||Y_;if(n.colorSpace&&n.colorSpace!=="rgb"){const T=U_[n.colorSpace];y=(S,E)=>T.reverse(T.interpolate(T.forward(S),T.forward(E),h))}return typeof f.evaluate=="function"?{evaluate(...T){const S=f.evaluate.apply(void 0,T),E=g.evaluate.apply(void 0,T);if(S!==void 0&&E!==void 0)return y(S,E,h)}}:y(f,g,h)}function Zv(n,e,i){return e.type==="color"?i=ki.parse(i):e.type==="formatted"?i=Wr.fromString(i.toString()):e.type==="resolvedImage"?i=Tr.build(i.toString()):zl(i)===e.type||e.type==="enum"&&e.values[i]||(i=void 0),su(i,n.default,e.default)}zr.register(ql,{error:[{kind:"error"},[Di],(n,[e])=>{throw new Yn(e.evaluate(n))}],typeof:[Di,[Oi],(n,[e])=>Vn(Un(e.evaluate(n)))],"to-rgba":[Rr(St,4),[Lr],(n,[e])=>e.evaluate(n).toNonPremultipliedRenderColor(null).toArray()],"to-hsla":[Rr(St,4),[Lr],(n,[e])=>e.evaluate(n).toNonPremultipliedRenderColor(null).toHslaArray()],rgb:[Lr,[St,St,St],Bp],rgba:[Lr,[St,St,St,St],Bp],hsl:[Lr,[St,St,St],Np],hsla:[Lr,[St,St,St,St],Np],has:{type:Li,overloads:[[[Di],(n,[e])=>W_(e.evaluate(n),n.properties())],[[Di,ha],(n,[e,i])=>W_(e.evaluate(n),i.evaluate(n))]]},get:{type:Oi,overloads:[[[Di],(n,[e])=>jp(e.evaluate(n),n.properties())],[[Di,ha],(n,[e,i])=>jp(e.evaluate(n),i.evaluate(n))]]},"feature-state":[Oi,[Di],(n,[e])=>jp(e.evaluate(n),n.featureState||{})],properties:[ha,[],n=>n.properties()],"geometry-type":[Di,[],n=>n.geometryType()],worldview:[Di,[],n=>n.globals.worldview||""],"is-active-floor":[Li,xa(Di),(n,e)=>{if(!(n.globals&&n.globals.activeFloors&&n.globals.activeFloors.size>0))return!1;if(e.length===0)return!0;const i=n.globals.activeFloors;return e.some(r=>{const a=r.evaluate(n);return i.has(a)})}],id:[Oi,[],n=>n.id()],zoom:[St,[],n=>n.globals.zoom],pitch:[St,[],n=>n.globals.pitch||0],"distance-from-center":[St,[],n=>n.distanceFromCenter()],"measure-light":[St,[Di],(n,[e])=>n.measureLight(e.evaluate(n))],"heatmap-density":[St,[],n=>n.globals.heatmapDensity||0],"line-progress":[St,[],n=>n.globals.lineProgress||0],"raster-value":[St,[],n=>n.globals.rasterValue||0],"raster-particle-speed":[St,[],n=>n.globals.rasterParticleSpeed||0],"sky-radial-progress":[St,[],n=>n.globals.skyRadialProgress||0],accumulated:[Oi,[],n=>n.globals.accumulated===void 0?null:n.globals.accumulated],"+":[St,xa(St),(n,e)=>{let i=0;for(const r of e)i+=r.evaluate(n);return i}],"*":[St,xa(St),(n,e)=>{let i=1;for(const r of e)i*=r.evaluate(n);return i}],"-":{type:St,overloads:[[[St,St],(n,[e,i])=>e.evaluate(n)-i.evaluate(n)],[[St],(n,[e])=>-e.evaluate(n)]]},"/":[St,[St,St],(n,[e,i])=>e.evaluate(n)/i.evaluate(n)],"%":[St,[St,St],(n,[e,i])=>e.evaluate(n)%i.evaluate(n)],ln2:[St,[],()=>Math.LN2],pi:[St,[],()=>Math.PI],e:[St,[],()=>Math.E],"^":[St,[St,St],(n,[e,i])=>Math.pow(e.evaluate(n),i.evaluate(n))],sqrt:[St,[St],(n,[e])=>Math.sqrt(e.evaluate(n))],log10:[St,[St],(n,[e])=>Math.log(e.evaluate(n))/Math.LN10],ln:[St,[St],(n,[e])=>Math.log(e.evaluate(n))],log2:[St,[St],(n,[e])=>Math.log2(e.evaluate(n))],sin:[St,[St],(n,[e])=>Math.sin(e.evaluate(n))],cos:[St,[St],(n,[e])=>Math.cos(e.evaluate(n))],tan:[St,[St],(n,[e])=>Math.tan(e.evaluate(n))],asin:[St,[St],(n,[e])=>Math.asin(e.evaluate(n))],acos:[St,[St],(n,[e])=>Math.acos(e.evaluate(n))],atan:[St,[St],(n,[e])=>Math.atan(e.evaluate(n))],min:[St,xa(St),(n,e)=>Math.min(...e.map(i=>i.evaluate(n)))],max:[St,xa(St),(n,e)=>Math.max(...e.map(i=>i.evaluate(n)))],abs:[St,[St],(n,[e])=>Math.abs(e.evaluate(n))],round:[St,[St],(n,[e])=>{const i=e.evaluate(n);return i<0?-Math.round(-i):Math.round(i)}],floor:[St,[St],(n,[e])=>Math.floor(e.evaluate(n))],ceil:[St,[St],(n,[e])=>Math.ceil(e.evaluate(n))],"filter-==":[Li,[Di,Oi],(n,[e,i])=>n.properties()[e.value]===i.value],"filter-id-==":[Li,[Oi],(n,[e])=>n.id()===e.value],"filter-type-==":[Li,[Di],(n,[e])=>n.geometryType()===e.value],"filter-<":[Li,[Di,Oi],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r<a}],"filter-id-<":[Li,[Oi],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i<r}],"filter->":[Li,[Di,Oi],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r>a}],"filter-id->":[Li,[Oi],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i>r}],"filter-<=":[Li,[Di,Oi],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r<=a}],"filter-id-<=":[Li,[Oi],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i<=r}],"filter->=":[Li,[Di,Oi],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r>=a}],"filter-id->=":[Li,[Oi],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i>=r}],"filter-has":[Li,[Oi],(n,[e])=>e.value in n.properties()],"filter-has-id":[Li,[],n=>n.id()!==null&&n.id()!==void 0],"filter-type-in":[Li,[Rr(Di)],(n,[e])=>e.value.indexOf(n.geometryType())>=0],"filter-id-in":[Li,[Rr(Oi)],(n,[e])=>e.value.indexOf(n.id())>=0],"filter-in-small":[Li,[Di,Rr(Oi)],(n,[e,i])=>i.value.indexOf(n.properties()[e.value])>=0],"filter-in-large":[Li,[Di,Rr(Oi)],(n,[e,i])=>function(r,a,u,h){for(;u<=h;){const f=u+h>>1;if(a[f]===r)return!0;a[f]>r?h=f-1:u=f+1}return!1}(n.properties()[e.value],i.value,0,i.value.length-1)],all:{type:Li,overloads:[[[Li,Li],(n,[e,i])=>e.evaluate(n)&&i.evaluate(n)],[xa(Li),(n,e)=>{for(const i of e)if(!i.evaluate(n))return!1;return!0}]]},any:{type:Li,overloads:[[[Li,Li],(n,[e,i])=>e.evaluate(n)||i.evaluate(n)],[xa(Li),(n,e)=>{for(const i of e)if(i.evaluate(n))return!0;return!1}]]},"!":[Li,[Li],(n,[e])=>!e.evaluate(n)],"is-supported-script":[Li,[Di],(n,[e])=>{const i=n.globals&&n.globals.isSupportedScript;return!i||i(e.evaluate(n))}],upcase:[Di,[Di],(n,[e])=>e.evaluate(n).toUpperCase()],downcase:[Di,[Di],(n,[e])=>e.evaluate(n).toLowerCase()],concat:[Di,xa(Oi),(n,e)=>e.map(i=>fs(i.evaluate(n))).join("")],"resolved-locale":[Di,[dh],(n,[e])=>e.evaluate(n).resolvedLocale()],random:[St,[St,St,Oi],(n,e)=>{const[i,r,a]=e.map(h=>h.evaluate(n));if(i>r||i===r)return i;let u;if(typeof a=="string")u=function(h){let f=0;if(h.length===0)return f;for(let g=0;g<h.length;g++)f=(f<<5)-f+h.charCodeAt(g),f&=f;return f}(a);else{if(typeof a!="number")throw new Yn(`Invalid seed input: ${a}`);u=a}return i+q_(u)()*(r-i)}]});class Hp{constructor(e,i,r,a,u){this.expression=e,this._warningHistory={},this._scope=r,this._options=a,this._iconImageUseTheme=u,this._evaluator=new _h(r,a,u),this._defaultValue=i?function(h){return h.type==="color"&&($p(h.default)||Array.isArray(h.default))?new ki(0,0,0,0):h.type==="color"?ki.parse(h.default)||null:h.default===void 0?null:h.default}(i):null,this._enumValues=i&&i.type==="enum"?i.values:null,this.configDependencies=kh(e),this.isIndoorDependent=ll(e)}evaluateWithoutErrorHandling(e,i,r,a,u,h,f,g){return this._evaluator.globals=e,this._evaluator.feature=i,this._evaluator.featureState=r,this._evaluator.canonical=a||null,this._evaluator.availableImages=u||null,this._evaluator.formattedSection=h,this._evaluator.featureTileCoord=f||null,this._evaluator.featureDistanceData=g||null,this.expression.evaluate(this._evaluator)}evaluate(e,i,r,a,u,h,f,g,y){this._evaluator||(this._evaluator=new _h(this._scope,this._options,this._iconImageUseTheme)),this._evaluator.globals=e,this._evaluator.feature=i||null,this._evaluator.featureState=r||null,this._evaluator.canonical=a||null,this._evaluator.availableImages=u||null,this._evaluator.formattedSection=h||null,this._evaluator.featureTileCoord=f||null,this._evaluator.featureDistanceData=g||null,this._evaluator.iconImageUseTheme=y||null;try{const T=this.expression.evaluate(this._evaluator);if(T==null||typeof T=="number"&&T!=T)return this._defaultValue;if(this._enumValues&&!(T in this._enumValues))throw new Yn(`Expected value to be one of ${Object.keys(this._enumValues).map(S=>JSON.stringify(S)).join(", ")}, but found ${JSON.stringify(T)} instead.`);return T}catch(T){const S=T;return this._warningHistory[S.message]||(this._warningHistory[S.message]=!0,typeof console<"u"&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${S.message}`)),this._defaultValue}}}function Bh(n){return Array.isArray(n)&&n.length>0&&typeof n[0]=="string"&&n[0]in ql}function wa(n,e,i,r,a){const u=new Ch(ql,[],e?function(f){const g={color:Lr,string:Di,number:St,enum:Di,boolean:Li,formatted:Gc,resolvedImage:Ll};return f.type==="array"?Rr(g[f.value]||Oi,f.length):g[f.type]}(e):void 0,void 0,void 0,i,r,a),h=u.parse(n,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return h?Z_(new Hp(h,e,i,r,a)):ba(u.errors)}class au{constructor(e,i,r,a){this.kind=e,this._styleExpression=i,this.isLightConstant=r,this.isLineProgressConstant=a,this.isStateDependent=e!=="constant"&&!eu(i.expression),this.configDependencies=kh(i.expression),this.isIndoorDependent=ll(i.expression)}evaluateWithoutErrorHandling(e,i,r,a,u,h){return this._styleExpression.evaluateWithoutErrorHandling(e,i,r,a,u,h)}evaluate(e,i,r,a,u,h,f){return this._styleExpression.evaluate(e,i,r,a,u,h,void 0,void 0,f)}}class Wl{constructor(e,i,r,a,u,h){this.kind=e,this.zoomStops=r,this._styleExpression=i,this.isStateDependent=e!=="camera"&&!eu(i.expression),this.isIndoorDependent=ll(i.expression),this.isLightConstant=u,this.isLineProgressConstant=h,this.configDependencies=kh(i.expression),this.interpolationType=a}evaluateWithoutErrorHandling(e,i,r,a,u,h){return this._styleExpression.evaluateWithoutErrorHandling(e,i,r,a,u,h)}evaluate(e,i,r,a,u,h){return this._styleExpression.evaluate(e,i,r,a,u,h)}interpolationFactor(e,i,r){return this.interpolationType?Io.interpolationFactor(this.interpolationType,e,i,r):0}}function qp(n,e,i,r,a){if((n=wa(n,e,i,r,a)).result==="error")return n;const u=n.value.expression,h=jl(u);if(!h&&!Oh(e))return ba([new po("","data expressions not supported")]);const f=Vl(u,["zoom","pitch","distance-from-center"]);if(!f&&!Fh(e))return ba([new po("","zoom expressions not supported")]);const g=Vl(u,["measure-light"]);if(!g&&!X_(e))return ba([new po("","measure-light expression not supported")]);const y=Vl(u,["line-progress"]);if(!y&&!function(E){return Vp(E.expression,"line-progress")}(e))return ba([new po("","line-progress expression not supported")]);const T=e.expression&&e.expression.relaxZoomRestriction,S=Xl(u);return S||f||T?S instanceof po?ba([S]):S instanceof Io&&!Up(e)?ba([new po("",'"interpolate" expressions cannot be used with this property')]):Z_(S?new Wl(h&&y?"camera":"composite",n.value,S.labels,S instanceof Io?S.interpolation:void 0,g,y):new au(h&&y?"constant":"source",n.value,g,y)):ba([new po("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class Zl{constructor(e,i){this._parameters=e,this._specification=i,Object.assign(this,Gp(this._parameters,this._specification))}static deserialize(e){return new Zl(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function Xl(n){let e=null;if(n instanceof nu)e=Xl(n.result);else if(n instanceof iu){for(const i of n.args)if(e=Xl(i),e)break}else(n instanceof tu||n instanceof Io)&&n.input instanceof zr&&n.input.name==="zoom"&&(e=n);return e instanceof po||n.eachChild(i=>{const r=Xl(i);r instanceof po?e=r:e&&r&&e!==r&&(e=new po("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}var Nh,J_,Ta=function(){if(J_)return Nh;J_=1,Nh=e;var n=3;function e(i,r,a){var u=this.cells=[];if(i instanceof ArrayBuffer){this.arrayBuffer=i;var h=new Int32Array(this.arrayBuffer);i=h[0],this.d=(r=h[1])+2*(a=h[2]);for(var f=0;f<this.d*this.d;f++){var g=h[n+f],y=h[n+f+1];u.push(g===y?null:h.subarray(g,y))}var T=h[n+u.length+1];this.keys=h.subarray(h[n+u.length],T),this.bboxes=h.subarray(T),this.insert=this._insertReadonly}else{this.d=r+2*a;for(var S=0;S<this.d*this.d;S++)u.push([]);this.keys=[],this.bboxes=[]}this.n=r,this.extent=i,this.padding=a,this.scale=r/i,this.uid=0;var E=a/r*i;this.min=-E,this.max=i+E}return e.prototype.insert=function(i,r,a,u,h){this._forEachCell(r,a,u,h,this._insertCell,this.uid++),this.keys.push(i),this.bboxes.push(r),this.bboxes.push(a),this.bboxes.push(u),this.bboxes.push(h)},e.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},e.prototype._insertCell=function(i,r,a,u,h,f){this.cells[h].push(f)},e.prototype.query=function(i,r,a,u,h){var f=this.min,g=this.max;if(i<=f&&r<=f&&g<=a&&g<=u&&!h)return Array.prototype.slice.call(this.keys);var y=[];return this._forEachCell(i,r,a,u,this._queryCell,y,{},h),y},e.prototype._queryCell=function(i,r,a,u,h,f,g,y){var T=this.cells[h];if(T!==null)for(var S=this.keys,E=this.bboxes,P=0;P<T.length;P++){var M=T[P];if(g[M]===void 0){var k=4*M;(y?y(E[k+0],E[k+1],E[k+2],E[k+3]):i<=E[k+2]&&r<=E[k+3]&&a>=E[k+0]&&u>=E[k+1])?(g[M]=!0,f.push(S[M])):g[M]=!1}}},e.prototype._forEachCell=function(i,r,a,u,h,f,g,y){for(var T=this._convertToCellCoord(i),S=this._convertToCellCoord(r),E=this._convertToCellCoord(a),P=this._convertToCellCoord(u),M=T;M<=E;M++)for(var k=S;k<=P;k++){var N=this.d*k+M;if((!y||y(this._convertFromCellCoord(M),this._convertFromCellCoord(k),this._convertFromCellCoord(M+1),this._convertFromCellCoord(k+1)))&&h.call(this,i,r,a,u,N,f,g,y))return}},e.prototype._convertFromCellCoord=function(i){return(i-this.padding)/this.scale},e.prototype._convertToCellCoord=function(i){return Math.max(0,Math.min(this.d-1,Math.floor(i*this.scale)+this.padding))},e.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var i=this.cells,r=n+this.cells.length+1+1,a=0,u=0;u<this.cells.length;u++)a+=this.cells[u].length;var h=new Int32Array(r+a+this.keys.length+this.bboxes.length);h[0]=this.extent,h[1]=this.n,h[2]=this.padding;for(var f=r,g=0;g<i.length;g++){var y=i[g];h[n+g]=f,h.set(y,f),f+=y.length}return h[n+i.length]=f,h.set(this.keys,f),h[n+i.length+1]=f+=this.keys.length,h.set(this.bboxes,f),f+=this.bboxes.length,h.buffer},Nh}(),Yl=So(Ta);const jh={};function bt(n,e,i={}){Object.defineProperty(n,"_classRegistryKey",{value:e,writable:!1}),jh[e]={klass:n,omit:i.omit||[]}}bt(Object,"Object"),Yl.serialize=function(n,e){const i=n.toArrayBuffer();return e&&e.add(i),{buffer:i}},Yl.deserialize=function(n){return new Yl(n.buffer)},Object.defineProperty(Yl,"name",{value:"Grid"}),bt(Yl,"Grid"),delete it.prototype.constructor,bt(ki,"Color"),bt(Error,"Error"),bt(Wr,"Formatted"),bt(mh,"FormattedSection"),bt(ho,"AJAXError"),bt(Tr,"ResolvedImage"),bt(Zl,"StylePropertyFunction"),bt(Hp,"StyleExpression",{omit:["_evaluator"]}),bt(to,"ImageId"),bt(Yo,"ImageVariant"),bt(Wl,"ZoomDependentExpression"),bt(au,"ZoomConstantExpression"),bt(zr,"CompoundExpression",{omit:["_evaluate"]});for(const n in ql)jh[ql[n]._classRegistryKey]||bt(ql[n],`Expression${n}`);function Q_(n){return n&&(n instanceof ArrayBuffer||n.constructor&&n.constructor.name==="ArrayBuffer")}function Jo(n,e){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp)return n;if(Q_(n)||n instanceof ImageBitmap)return e&&e.add(n),n;if(ArrayBuffer.isView(n))return e&&e.add(n.buffer),n;if(n instanceof ImageData)return e&&e.add(n.data.buffer),n;if(Array.isArray(n)){const i=[];for(const r of n)i.push(Jo(r,e));return i}if(n instanceof Map){const i={$name:"Map",entries:[]};for(const[r,a]of n.entries())i.entries.push(Jo(r),Jo(a,e));return i}if(n instanceof Set){const i={$name:"Set"};let r=0;for(const a of n.values())i[++r]=Jo(a);return i}if(typeof n=="bigint")return{$name:"BigInt",value:n.toString()};if(typeof n=="object"){const i=n.constructor,r=i._classRegistryKey;if(!r)throw new Error(`Can't serialize object of unregistered class "${i.name}".`);const a=i.serialize?i.serialize(n,e):{};if(!i.serialize){for(const u in n)n.hasOwnProperty(u)&&(jh[r].omit.indexOf(u)>=0||(a[u]=Jo(n[u],e)));n instanceof Error&&(a.message=n.message)}if(a.$name)throw new Error("$name property is reserved for worker serialization logic.");return r!=="Object"&&(a.$name=r),a}throw new Error("can't serialize object of type "+typeof n)}function Bs(n){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp||Q_(n)||n instanceof ImageBitmap||ArrayBuffer.isView(n)||n instanceof ImageData)return n;if(Array.isArray(n))return n.map(Bs);if(typeof n=="object"){const e=n.$name||"Object";if(e==="Map"){const a=n.entries||[],u=new Map;for(let h=0;h<a.length;h+=2)u.set(Bs(a[h]),Bs(a[h+1]));return u}if(e==="Set"){const a=new Set;for(const u of Object.keys(n))u!=="$name"&&a.add(Bs(n[u]));return a}if(e==="BigInt")return BigInt(n.value);const{klass:i}=jh[e];if(!i)throw new Error(`Can't deserialize unregistered class "${e}".`);if(i.deserialize)return i.deserialize(n);const r=Object.create(i.prototype);for(const a of Object.keys(n))a!=="$name"&&(r[a]=Bs(n[a]));return r}throw new Error("can't deserialize object of type "+typeof n)}const lu=n=>n>=1536&&n<=1791,Wp=n=>n>=1872&&n<=1919,eg=n=>n>=2208&&n<=2303,tg=n=>n>=11904&&n<=12031,Vh=n=>n>=12032&&n<=12255,Uh=n=>n>=12272&&n<=12287,cu=n=>n>=12288&&n<=12351,$h=n=>n>=12352&&n<=12447,Kl=n=>n>=12448&&n<=12543,uu=n=>n>=12544&&n<=12591,Zp=n=>n>=12704&&n<=12735,gs=n=>n>=12736&&n<=12783,ig=n=>n>=12784&&n<=12799,ng=n=>n>=12800&&n<=13055,rg=n=>n>=13056&&n<=13311,Xp=n=>n>=13312&&n<=19903,Gh=n=>n>=19968&&n<=40959,hu=n=>n>=40960&&n<=42127,Yp=n=>n>=42128&&n<=42191,Kp=n=>n>=44032&&n<=55215,Hh=n=>n>=63744&&n<=64255,Jp=n=>n>=64336&&n<=65023,og=n=>n>=65040&&n<=65055,Qp=n=>n>=65072&&n<=65103,sg=n=>n>=65104&&n<=65135,ef=n=>n>=65136&&n<=65279,tf=n=>n>=65280&&n<=65519;function nf(n){for(const e of n)if(rf(e.charCodeAt(0)))return!0;return!1}function Xv(n){for(const e of n)if(!Yv(e.charCodeAt(0)))return!1;return!0}function Yv(n){return!(lu(n)||Wp(n)||eg(n)||Jp(n)||ef(n))}function Kv(n){return!(n<11904||!(Zp(n)||uu(n)||Qp(n)||Hh(n)||rg(n)||tg(n)||gs(n)||cu(n)||Xp(n)||Gh(n)||ng(n)||tf(n)||$h(n)||Uh(n)||Vh(n)||ig(n)||Kl(n)||og(n)||Yp(n)||hu(n)))}function rf(n){return!(n!==746&&n!==747&&(n<4352||!(Zp(n)||uu(n)||Qp(n)&&!(n>=65097&&n<=65103)||Hh(n)||rg(n)||tg(n)||gs(n)||!(!cu(n)||n>=12296&&n<=12305||n>=12308&&n<=12319||n===12336)||Xp(n)||Gh(n)||ng(n)||(e=>e>=12592&&e<=12687)(n)||(e=>e>=43360&&e<=43391)(n)||(e=>e>=55216&&e<=55295)(n)||(e=>e>=4352&&e<=4607)(n)||Kp(n)||$h(n)||Uh(n)||(e=>e>=12688&&e<=12703)(n)||Vh(n)||ig(n)||Kl(n)&&n!==12540||!(!tf(n)||n===65288||n===65289||n===65293||n>=65306&&n<=65310||n===65339||n===65341||n===65343||n>=65371&&n<=65503||n===65507||n>=65512&&n<=65519)||!(!sg(n)||n>=65112&&n<=65118||n>=65123&&n<=65126)||(e=>e>=5120&&e<=5759)(n)||(e=>e>=6320&&e<=6399)(n)||og(n)||(e=>e>=19904&&e<=19967)(n)||hu(n)||Yp(n))))}function ag(n){return n===12312||n===12313||n===12316||n===12540||n===12448}function ul(n){return!(rf(n)||function(e){return!!((i=>i>=128&&i<=255)(e)&&(e===167||e===169||e===174||e===177||e===188||e===189||e===190||e===215||e===247)||(i=>i>=8192&&i<=8303)(e)&&(e===8214||e===8224||e===8225||e===8240||e===8241||e===8251||e===8252||e===8258||e===8263||e===8264||e===8265||e===8273)||(i=>i>=8448&&i<=8527)(e)||(i=>i>=8528&&i<=8591)(e)||(i=>i>=8960&&i<=9215)(e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||e===9003||e>=9085&&e<=9114||e>=9150&&e<=9165||e===9167||e>=9169&&e<=9179||e>=9186&&e<=9215)||(i=>i>=9216&&i<=9279)(e)&&e!==9251||(i=>i>=9280&&i<=9311)(e)||(i=>i>=9312&&i<=9471)(e)||(i=>i>=9632&&i<=9727)(e)||(i=>i>=9728&&i<=9983)(e)&&!(e>=9754&&e<=9759)||(i=>i>=11008&&i<=11263)(e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||cu(e)||Kl(e)||(i=>i>=57344&&i<=63743)(e)||Qp(e)||sg(e)||tf(e)||e===8734||e===8756||e===8757||e>=9984&&e<=10087||e>=10102&&e<=10131||e===65532||e===65533)}(n))}function lg(n){return lu(n)||Wp(n)||eg(n)||Jp(n)||ef(n)}function of(n){return n>=1424&&n<=2303||Jp(n)||ef(n)}function qh(n,e){return!(!e&&of(n)||n>=2304&&n<=3583||n>=3840&&n<=4255||(i=>i>=6016&&i<=6143)(n))}function Jv(n){for(const e of n)if(of(e.charCodeAt(0)))return!0;return!1}const fo={unavailable:"unavailable",deferred:"deferred",loading:"loading",parsing:"parsing",parsed:"parsed",loaded:"loaded",error:"error"};let ys=null,jr=fo.unavailable,Co=null;const cg=function(n){n&&typeof n=="string"&&n.indexOf("NetworkError")>-1&&(jr=fo.error),ys&&ys(n)};function sf(){af.fire(new Zo("pluginStateChange",{pluginStatus:jr,pluginURL:Co}))}const af=new Xo,lf=function(){return jr},ug=function(){if(jr!==fo.deferred||!Co)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");jr=fo.loading,sf(),Co&&Nc({url:Co},n=>{n?cg(n):(jr=fo.loaded,sf())})},Ns={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>jr===fo.loaded||Ns.applyArabicShaping!=null,isLoading:()=>jr===fo.loading,setState(n){jr=n.pluginStatus,Co=n.pluginURL},isParsing:()=>jr===fo.parsing,isParsed:()=>jr===fo.parsed,getPluginURL:()=>Co};class Ni{constructor(e,i){this.zoom=e,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(e){return function(i,r){for(const a of i)if(!qh(a.charCodeAt(0),r))return!1;return!0}(e,Ns.isLoaded())}}class Jl{constructor(e,i,r,a,u){this.property=e,this.value=i,this.expression=function(h,f,g,y,T){if($p(h))return new Zl(h,f);if(Bh(h)||Array.isArray(h)&&h.length>0){const S=qp(h,f,g,y,T);if(S.result==="error")throw new Error(S.value.map(E=>`${E.key}: ${E.message}`).join(", "));return S.value}{let S=h;return typeof h=="string"&&f.type==="color"&&(S=ki.parse(h)),{kind:"constant",configDependencies:new Set,isIndoorDependent:!1,evaluate:()=>S}}}(i===void 0?e.specification.default:i,e.specification,r,a,u)}isIndoorDependent(){return this.expression.isIndoorDependent}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(e,i,r,a){return this.property.possiblyEvaluate(this,e,i,r,a)}}class du{constructor(e,i,r,a){this.property=e,this.value=new Jl(e,void 0,i,r,a)}transitioned(e,i){return new Wh(this.property,this.value,i,Object.assign({},e.transition,this.transition),e.now)}untransitioned(){return new Wh(this.property,this.value,null,{},0)}}class cf{constructor(e,i,r,a){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._scope=i,this._options=r,this._iconImageUseTheme=a,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(e){return Yt(this._values[e].value.value)}setValue(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new du(this._values[e].property,this._scope,this._options,this._iconImageUseTheme)),this._values[e].value=new Jl(this._values[e].property,i===null?void 0:Yt(i),this._scope,this._options,this._iconImageUseTheme),this._values[e].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].value.expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[e].value.isIndoorDependent())}setTransitionOrValue(e,i){i&&(this._options=i);const r=this._properties.properties;if(e)for(const a in e){const u=e[a];if(a.endsWith("-transition")){const h=a.slice(0,-11);r[h]&&this.setTransition(h,u)}else r.hasOwnProperty(a)&&this.setValue(a,u)}}getTransition(e){return Yt(this._values[e].transition)}setTransition(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new du(this._values[e].property)),this._values[e].transition=Yt(i)||void 0}serialize(){const e={};for(const i of Object.keys(this._values)){const r=this.getValue(i);r!==void 0&&(e[i]=r);const a=this.getTransition(i);a!==void 0&&(e[`${i}-transition`]=a)}return e}transitioned(e,i){const r=new Ql(this._properties);for(const a of Object.keys(this._values))r._values[a]=this._values[a].transitioned(e,i._values[a]);return r}untransitioned(){const e=new Ql(this._properties);for(const i of Object.keys(this._values))e._values[i]=this._values[i].untransitioned();return e}isIndoorDependent(){return this._isIndoorDependent}}class Wh{constructor(e,i,r,a,u){const h=a.delay||0,f=a.duration||0;u=u||0,this.property=e,this.value=i,this.begin=u+h,this.end=this.begin+f,e.specification.transition&&(a.delay||a.duration)&&(this.prior=r)}possiblyEvaluate(e,i,r){const a=e.now||0,u=this.value.possiblyEvaluate(e,i,r),h=this.prior;if(h){if(a>this.end)return this.prior=null,u;if(this.value.isDataDriven())return this.prior=null,u;if(a<this.begin)return h.possiblyEvaluate(e,i,r);{const f=(a-this.begin)/(this.end-this.begin);return this.property.interpolate(h.possiblyEvaluate(e,i,r),u,Z(f))}}return u}}class Ql{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,i,r){const a=new dl(this._properties);for(const u of Object.keys(this._values))a._values[u]=this._values[u].possiblyEvaluate(e,i,r);return a}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class uf{constructor(e,i,r,a){this._properties=e,this._values=Object.create(e.defaultPropertyValues),this._scope=i,this._options=r,this._iconImageUseTheme=a,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(e){return Yt(this._values[e].value)}setValue(e,i){this._values[e]=new Jl(this._values[e].property,i===null?void 0:Yt(i),this._scope,this._options,this._iconImageUseTheme),this._values[e].expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[e].isIndoorDependent())}serialize(){const e={};for(const i of Object.keys(this._values)){const r=this.getValue(i);r!==void 0&&(e[i]=r)}return e}possiblyEvaluate(e,i,r,a){const u=new dl(this._properties);for(const h of Object.keys(this._values))u._values[h]=this._values[h].possiblyEvaluate(e,i,r,a);return u}isIndoorDependent(){return this._isIndoorDependent}}class hl{constructor(e,i,r,a){this.property=e,this.value=i,this.parameters=r,this.iconImageUseTheme=a}isConstant(){return this.value.kind==="constant"}constantOr(e){return this.value.kind==="constant"?this.value.value:e}evaluate(e,i,r,a){return this.property.evaluate(this.value,this.parameters,e,i,r,a,this.iconImageUseTheme)}}class dl{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class st{constructor(e){this.specification=e}possiblyEvaluate(e,i){return e.expression.evaluate(i)}interpolate(e,i,r){const a=$c[this.specification.type];return a?a(e,i,r):e}}class pt{constructor(e,i){this.specification=e,this.overrides=i}possiblyEvaluate(e,i,r,a,u){return e.expression.kind==="constant"||e.expression.kind==="camera"?new hl(this,{kind:"constant",value:e.expression.evaluate(i,null,{},r,a,void 0,u)},i):new hl(this,e.expression,i,u)}interpolate(e,i,r){if(e.value.kind!=="constant"||i.value.kind!=="constant")return e;if(e.value.value===void 0||i.value.value===void 0)return new hl(this,{kind:"constant",value:void 0},e.parameters);const a=$c[this.specification.type];return a?new hl(this,{kind:"constant",value:a(e.value.value,i.value.value,r)},e.parameters):e}evaluate(e,i,r,a,u,h,f){return e.kind==="constant"?e.value:e.evaluate(i,r,a,u,h,void 0,f)}}class io{constructor(e){this.specification=e}possiblyEvaluate(e,i,r,a){return!!e.expression.evaluate(i,null,{},r,a)}interpolate(){return!1}}class mn{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const i=new Ni(0,{});for(const r in e){const a=e[r];a.specification.overridable&&this.overridableProperties.push(r);const u=this.defaultPropertyValues[r]=new Jl(a,void 0),h=this.defaultTransitionablePropertyValues[r]=new du(a);this.defaultTransitioningPropertyValues[r]=h.untransitioned(),this.defaultPossiblyEvaluatedValues[r]=u.possiblyEvaluate(i)}}}bt(pt,"DataDrivenProperty"),bt(st,"DataConstantProperty"),bt(io,"ColorRampProperty");var Ce=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":{}}},"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-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-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}},"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"]},"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"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"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"]},"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"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"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"]},"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"]},"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"]},"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"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"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,"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":{}}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"promoteId":{"*":{"type":"*"}}}');function hg(n){return n instanceof Number||n instanceof String||n instanceof Boolean?n.valueOf():n}function Zh(n){if(Array.isArray(n))return n.map(Zh);if(n instanceof Object&&!(n instanceof Number||n instanceof String||n instanceof Boolean)){const e={};for(const i in n)e[i]=Zh(n[i]);return e}return hg(n)}function hf(n){if(n===!0||n===!1)return!0;if(!Array.isArray(n)||n.length===0)return!1;switch(n[0]){case"has":return n.length>=2&&n[1]!=="$id"&&n[1]!=="$type";case"in":return n.length>=3&&(typeof n[1]!="string"||Array.isArray(n[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return n.length!==3||Array.isArray(n[1])||Array.isArray(n[2]);case"any":case"all":for(const e of n.slice(1))if(!hf(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}function df(n,e="",i=null,r="fill"){if(n==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};hf(n)||(n=Xh(n));const a=n;let u=!0;try{u=function(T){if(!ec(T))return T;let S=Zh(T);return pg(S),S=dg(S),S}(a)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
|
|
60
|
+
`)},DR=0,qu=[];function LR(p){var v=mi([]),b=mi([0,0]),C=mi(),D=Ri(DR++)[0],F=Ri(function(){return hT()})[0],V=mi(p);Bi(function(){V.current=p},[p]),Bi(function(){if(p.inert){document.body.classList.add("block-interactivity-".concat(D));var Te=eR([p.lockRef.current],(p.shards||[]).map(yT),!0).filter(Boolean);return Te.forEach(function(Pe){return Pe.classList.add("allow-interactivity-".concat(D))}),function(){document.body.classList.remove("block-interactivity-".concat(D)),Te.forEach(function(Pe){return Pe.classList.remove("allow-interactivity-".concat(D))})}}},[p.inert,p.lockRef.current,p.shards]);var s=xn(function(Te,Pe){if("touches"in Te&&Te.touches.length===2)return!V.current.allowPinchZoom;var qe=Zm(Te),Re=b.current,at="deltaX"in Te?Te.deltaX:Re[0]-qe[0],Qe="deltaY"in Te?Te.deltaY:Re[1]-qe[1],yt,It=Te.target,Rt=Math.abs(at)>Math.abs(Qe)?"h":"v";if("touches"in Te&&Rt==="h"&&It.type==="range")return!1;var zt=fT(Rt,It);if(!zt)return!0;if(zt?yt=Rt:(yt=Rt==="v"?"h":"v",zt=fT(Rt,It)),!zt)return!1;if(!C.current&&"changedTouches"in Te&&(at||Qe)&&(C.current=yt),!yt)return!0;var Nt=C.current||yt;return PR(Nt,Pe,Te,Nt==="h"?at:Qe,!0)},[]),ee=xn(function(Te){var Pe=Te;if(!(!qu.length||qu[qu.length-1]!==F)){var qe="deltaY"in Pe?gT(Pe):Zm(Pe),Re=v.current.filter(function(yt){return yt.name===Pe.type&&yt.target===Pe.target&&MR(yt.delta,qe)})[0];if(Re&&Re.should){Pe.cancelable&&Pe.preventDefault();return}if(!Re){var at=(V.current.shards||[]).map(yT).filter(Boolean).filter(function(yt){return yt.contains(Pe.target)}),Qe=at.length>0?s(Pe,at[0]):!V.current.noIsolation;Qe&&Pe.cancelable&&Pe.preventDefault()}}},[]),re=xn(function(Te,Pe,qe,Re){var at={name:Te,delta:Pe,target:qe,should:Re};v.current.push(at),setTimeout(function(){v.current=v.current.filter(function(Qe){return Qe!==at})},1)},[]),ge=xn(function(Te){b.current=Zm(Te),C.current=void 0},[]),oe=xn(function(Te){re(Te.type,gT(Te),Te.target,s(Te,p.lockRef.current))},[]),Ee=xn(function(Te){re(Te.type,Zm(Te),Te.target,s(Te,p.lockRef.current))},[]);Bi(function(){return qu.push(F),p.setCallbacks({onScrollCapture:oe,onWheelCapture:oe,onTouchMoveCapture:Ee}),document.addEventListener("wheel",ee,Hu),document.addEventListener("touchmove",ee,Hu),document.addEventListener("touchstart",ge,Hu),function(){qu=qu.filter(function(Te){return Te!==F}),document.removeEventListener("wheel",ee,Hu),document.removeEventListener("touchmove",ee,Hu),document.removeEventListener("touchstart",ge,Hu)}},[]);var ye=p.removeScrollBar,Ue=p.inert;return Zt(Hi,null,Ue?Zt(F,{styles:RR(D)}):null,ye?Zt(wR,{gapMode:"margin"}):null)}const zR=cR(cT,LR);var vT=Wn(function(p,v){return Zt(qm,ea({},p,{ref:v,sideCar:zR}))});vT.classNames=qm.classNames;const xT=vT;var kR=function(p){if(typeof document>"u")return null;var v=Array.isArray(p)?p[0]:p;return v.ownerDocument.body},Wu=new WeakMap,Xm=new WeakMap,Ym={},lv=0,bT=function(p){return p&&(p.host||bT(p.parentNode))},OR=function(p,v){return v.map(function(b){if(p.contains(b))return b;var C=bT(b);return C&&p.contains(C)?C:(console.error("aria-hidden",b,"in not contained inside",p,". Doing nothing"),null)}).filter(function(b){return!!b})},FR=function(p,v,b,C){var D=OR(v,Array.isArray(p)?p:[p]);Ym[b]||(Ym[b]=new WeakMap);var F=Ym[b],V=[],s=new Set,ee=new Set(D),re=function(oe){!oe||s.has(oe)||(s.add(oe),re(oe.parentNode))};D.forEach(re);var ge=function(oe){!oe||ee.has(oe)||Array.prototype.forEach.call(oe.children,function(Ee){if(s.has(Ee))ge(Ee);else try{var ye=Ee.getAttribute(C),Ue=ye!==null&&ye!=="false",Te=(Wu.get(Ee)||0)+1,Pe=(F.get(Ee)||0)+1;Wu.set(Ee,Te),F.set(Ee,Pe),V.push(Ee),Te===1&&Ue&&Xm.set(Ee,!0),Pe===1&&Ee.setAttribute(b,"true"),Ue||Ee.setAttribute(C,"true")}catch(qe){console.error("aria-hidden: cannot operate on ",Ee,qe)}})};return ge(v),s.clear(),lv++,function(){V.forEach(function(oe){var Ee=Wu.get(oe)-1,ye=F.get(oe)-1;Wu.set(oe,Ee),F.set(oe,ye),Ee||(Xm.has(oe)||oe.removeAttribute(C),Xm.delete(oe)),ye||oe.removeAttribute(b)}),lv--,lv||(Wu=new WeakMap,Wu=new WeakMap,Xm=new WeakMap,Ym={})}},wT=function(p,v,b){b===void 0&&(b="data-aria-hidden");var C=Array.from(Array.isArray(p)?p:[p]),D=v||kR(p);return D?(C.push.apply(C,Array.from(D.querySelectorAll("[aria-live], script"))),FR(C,D,b,"aria-hidden")):function(){return null}};const TT="Dialog",[ST,NN]=J0(TT),[BR,Al]=ST(TT),NR=p=>{const{__scopeDialog:v,children:b,open:C,defaultOpen:D,onOpenChange:F,modal:V=!0}=p,s=mi(null),ee=mi(null),[re=!1,ge]=qw({prop:C,defaultProp:D,onChange:F});return Zt(BR,{scope:v,triggerRef:s,contentRef:ee,contentId:Vm(),titleId:Vm(),descriptionId:Vm(),open:re,onOpenChange:ge,onOpenToggle:xn(()=>ge(oe=>!oe),[ge]),modal:V},b)},jR="DialogTrigger",VR=Wn((p,v)=>{const{__scopeDialog:b,...C}=p,D=Al(jR,b),F=Qs(v,D.triggerRef);return Zt(Sl.button,Zn({type:"button","aria-haspopup":"dialog","aria-expanded":D.open,"aria-controls":D.contentId,"data-state":uv(D.open)},C,{ref:F,onClick:As(p.onClick,D.onOpenToggle)}))}),ET="DialogPortal",[UR,AT]=ST(ET,{forceMount:void 0}),$R=p=>{const{__scopeDialog:v,forceMount:b,children:C,container:D}=p,F=Al(ET,v);return Zt(UR,{scope:v,forceMount:b},Ks.map(C,V=>Zt($u,{present:b||F.open},Zt(nT,{asChild:!0,container:D},V))))},cv="DialogOverlay",GR=Wn((p,v)=>{const b=AT(cv,p.__scopeDialog),{forceMount:C=b.forceMount,...D}=p,F=Al(cv,p.__scopeDialog);return F.modal?Zt($u,{present:C||F.open},Zt(HR,Zn({},D,{ref:v}))):null}),HR=Wn((p,v)=>{const{__scopeDialog:b,...C}=p,D=Al(cv,b);return Zt(xT,{as:Um,allowPinchZoom:!0,shards:[D.contentRef]},Zt(Sl.div,Zn({"data-state":uv(D.open)},C,{ref:v,style:{pointerEvents:"auto",...C.style}})))}),Wd="DialogContent",qR=Wn((p,v)=>{const b=AT(Wd,p.__scopeDialog),{forceMount:C=b.forceMount,...D}=p,F=Al(Wd,p.__scopeDialog);return Zt($u,{present:C||F.open},F.modal?Zt(WR,Zn({},D,{ref:v})):Zt(ZR,Zn({},D,{ref:v})))}),WR=Wn((p,v)=>{const b=Al(Wd,p.__scopeDialog),C=mi(null),D=Qs(v,b.contentRef,C);return Bi(()=>{const F=C.current;if(F)return wT(F)},[]),Zt(IT,Zn({},p,{ref:D,trapFocus:b.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:As(p.onCloseAutoFocus,F=>{var V;F.preventDefault(),(V=b.triggerRef.current)===null||V===void 0||V.focus()}),onPointerDownOutside:As(p.onPointerDownOutside,F=>{const V=F.detail.originalEvent,s=V.button===0&&V.ctrlKey===!0;(V.button===2||s)&&F.preventDefault()}),onFocusOutside:As(p.onFocusOutside,F=>F.preventDefault())}))}),ZR=Wn((p,v)=>{const b=Al(Wd,p.__scopeDialog),C=mi(!1),D=mi(!1);return Zt(IT,Zn({},p,{ref:v,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:F=>{var V;if((V=p.onCloseAutoFocus)===null||V===void 0||V.call(p,F),!F.defaultPrevented){var s;C.current||(s=b.triggerRef.current)===null||s===void 0||s.focus(),F.preventDefault()}C.current=!1,D.current=!1},onInteractOutside:F=>{var V,s;(V=p.onInteractOutside)===null||V===void 0||V.call(p,F),F.defaultPrevented||(C.current=!0,F.detail.originalEvent.type==="pointerdown"&&(D.current=!0));const ee=F.target;((s=b.triggerRef.current)===null||s===void 0?void 0:s.contains(ee))&&F.preventDefault(),F.detail.originalEvent.type==="focusin"&&D.current&&F.preventDefault()}}))}),IT=Wn((p,v)=>{const{__scopeDialog:b,trapFocus:C,onOpenAutoFocus:D,onCloseAutoFocus:F,...V}=p,s=Al(Wd,b),ee=mi(null),re=Qs(v,ee);return rT(),Zt(Hi,null,Zt(Jw,{asChild:!0,loop:!0,trapped:C,onMountAutoFocus:D,onUnmountAutoFocus:F},Zt(Zw,Zn({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":uv(s.open)},V,{ref:re,onDismiss:()=>s.onOpenChange(!1)}))),!1)});function uv(p){return p?"open":"closed"}const XR=NR,YR=VR,KR=$R,JR=GR,QR=qR,eD=["top","right","bottom","left"],Il=Math.min,$o=Math.max,Km=Math.round,Jm=Math.floor,ta=p=>({x:p,y:p}),tD={left:"right",right:"left",bottom:"top",top:"bottom"};function hv(p,v,b){return $o(p,Il(v,b))}function Xa(p,v){return typeof p=="function"?p(v):p}function Ya(p){return p.split("-")[0]}function Zu(p){return p.split("-")[1]}function dv(p){return p==="x"?"y":"x"}function pv(p){return p==="y"?"height":"width"}function ia(p){const v=p[0];return v==="t"||v==="b"?"y":"x"}function fv(p){return dv(ia(p))}function iD(p,v,b){b===void 0&&(b=!1);const C=Zu(p),D=fv(p),F=pv(D);let V=D==="x"?C===(b?"end":"start")?"right":"left":C==="start"?"bottom":"top";return v.reference[F]>v.floating[F]&&(V=Qm(V)),[V,Qm(V)]}function nD(p){const v=Qm(p);return[mv(p),v,mv(v)]}function mv(p){return p.includes("start")?p.replace("start","end"):p.replace("end","start")}const CT=["left","right"],PT=["right","left"],rD=["top","bottom"],oD=["bottom","top"];function sD(p,v,b){switch(p){case"top":case"bottom":return b?v?PT:CT:v?CT:PT;case"left":case"right":return v?rD:oD;default:return[]}}function aD(p,v,b,C){const D=Zu(p);let F=sD(Ya(p),b==="start",C);return D&&(F=F.map(V=>V+"-"+D),v&&(F=F.concat(F.map(mv)))),F}function Qm(p){const v=Ya(p);return tD[v]+p.slice(v.length)}function lD(p){return{top:0,right:0,bottom:0,left:0,...p}}function MT(p){return typeof p!="number"?lD(p):{top:p,right:p,bottom:p,left:p}}function e_(p){const{x:v,y:b,width:C,height:D}=p;return{width:C,height:D,top:b,left:v,right:v+C,bottom:b+D,x:v,y:b}}function RT(p,v,b){let{reference:C,floating:D}=p;const F=ia(v),V=fv(v),s=pv(V),ee=Ya(v),re=F==="y",ge=C.x+C.width/2-D.width/2,oe=C.y+C.height/2-D.height/2,Ee=C[s]/2-D[s]/2;let ye;switch(ee){case"top":ye={x:ge,y:C.y-D.height};break;case"bottom":ye={x:ge,y:C.y+C.height};break;case"right":ye={x:C.x+C.width,y:oe};break;case"left":ye={x:C.x-D.width,y:oe};break;default:ye={x:C.x,y:C.y}}switch(Zu(v)){case"start":ye[V]-=Ee*(b&&re?-1:1);break;case"end":ye[V]+=Ee*(b&&re?-1:1);break}return ye}async function cD(p,v){var b;v===void 0&&(v={});const{x:C,y:D,platform:F,rects:V,elements:s,strategy:ee}=p,{boundary:re="clippingAncestors",rootBoundary:ge="viewport",elementContext:oe="floating",altBoundary:Ee=!1,padding:ye=0}=Xa(v,p),Ue=MT(ye),Pe=s[Ee?oe==="floating"?"reference":"floating":oe],qe=e_(await F.getClippingRect({element:(b=await(F.isElement==null?void 0:F.isElement(Pe)))==null||b?Pe:Pe.contextElement||await(F.getDocumentElement==null?void 0:F.getDocumentElement(s.floating)),boundary:re,rootBoundary:ge,strategy:ee})),Re=oe==="floating"?{x:C,y:D,width:V.floating.width,height:V.floating.height}:V.reference,at=await(F.getOffsetParent==null?void 0:F.getOffsetParent(s.floating)),Qe=await(F.isElement==null?void 0:F.isElement(at))?await(F.getScale==null?void 0:F.getScale(at))||{x:1,y:1}:{x:1,y:1},yt=e_(F.convertOffsetParentRelativeRectToViewportRelativeRect?await F.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:Re,offsetParent:at,strategy:ee}):Re);return{top:(qe.top-yt.top+Ue.top)/Qe.y,bottom:(yt.bottom-qe.bottom+Ue.bottom)/Qe.y,left:(qe.left-yt.left+Ue.left)/Qe.x,right:(yt.right-qe.right+Ue.right)/Qe.x}}const uD=50,hD=async(p,v,b)=>{const{placement:C="bottom",strategy:D="absolute",middleware:F=[],platform:V}=b,s=V.detectOverflow?V:{...V,detectOverflow:cD},ee=await(V.isRTL==null?void 0:V.isRTL(v));let re=await V.getElementRects({reference:p,floating:v,strategy:D}),{x:ge,y:oe}=RT(re,C,ee),Ee=C,ye=0;const Ue={};for(let Te=0;Te<F.length;Te++){const Pe=F[Te];if(!Pe)continue;const{name:qe,fn:Re}=Pe,{x:at,y:Qe,data:yt,reset:It}=await Re({x:ge,y:oe,initialPlacement:C,placement:Ee,strategy:D,middlewareData:Ue,rects:re,platform:s,elements:{reference:p,floating:v}});ge=at??ge,oe=Qe??oe,Ue[qe]={...Ue[qe],...yt},It&&ye<uD&&(ye++,typeof It=="object"&&(It.placement&&(Ee=It.placement),It.rects&&(re=It.rects===!0?await V.getElementRects({reference:p,floating:v,strategy:D}):It.rects),{x:ge,y:oe}=RT(re,Ee,ee)),Te=-1)}return{x:ge,y:oe,placement:Ee,strategy:D,middlewareData:Ue}},dD=p=>({name:"arrow",options:p,async fn(v){const{x:b,y:C,placement:D,rects:F,platform:V,elements:s,middlewareData:ee}=v,{element:re,padding:ge=0}=Xa(p,v)||{};if(re==null)return{};const oe=MT(ge),Ee={x:b,y:C},ye=fv(D),Ue=pv(ye),Te=await V.getDimensions(re),Pe=ye==="y",qe=Pe?"top":"left",Re=Pe?"bottom":"right",at=Pe?"clientHeight":"clientWidth",Qe=F.reference[Ue]+F.reference[ye]-Ee[ye]-F.floating[Ue],yt=Ee[ye]-F.reference[ye],It=await(V.getOffsetParent==null?void 0:V.getOffsetParent(re));let Rt=It?It[at]:0;(!Rt||!await(V.isElement==null?void 0:V.isElement(It)))&&(Rt=s.floating[at]||F.floating[Ue]);const zt=Qe/2-yt/2,Nt=Rt/2-Te[Ue]/2-1,Qt=Il(oe[qe],Nt),ai=Il(oe[Re],Nt),Ii=Qt,Ut=Rt-Te[Ue]-ai,li=Rt/2-Te[Ue]/2+zt,Xt=hv(Ii,li,Ut),Dt=!ee.arrow&&Zu(D)!=null&&li!==Xt&&F.reference[Ue]/2-(li<Ii?Qt:ai)-Te[Ue]/2<0,Tt=Dt?li<Ii?li-Ii:li-Ut:0;return{[ye]:Ee[ye]+Tt,data:{[ye]:Xt,centerOffset:li-Xt-Tt,...Dt&&{alignmentOffset:Tt}},reset:Dt}}}),pD=function(p){return p===void 0&&(p={}),{name:"flip",options:p,async fn(v){var b,C;const{placement:D,middlewareData:F,rects:V,initialPlacement:s,platform:ee,elements:re}=v,{mainAxis:ge=!0,crossAxis:oe=!0,fallbackPlacements:Ee,fallbackStrategy:ye="bestFit",fallbackAxisSideDirection:Ue="none",flipAlignment:Te=!0,...Pe}=Xa(p,v);if((b=F.arrow)!=null&&b.alignmentOffset)return{};const qe=Ya(D),Re=ia(s),at=Ya(s)===s,Qe=await(ee.isRTL==null?void 0:ee.isRTL(re.floating)),yt=Ee||(at||!Te?[Qm(s)]:nD(s)),It=Ue!=="none";!Ee&&It&&yt.push(...aD(s,Te,Ue,Qe));const Rt=[s,...yt],zt=await ee.detectOverflow(v,Pe),Nt=[];let Qt=((C=F.flip)==null?void 0:C.overflows)||[];if(ge&&Nt.push(zt[qe]),oe){const li=iD(D,V,Qe);Nt.push(zt[li[0]],zt[li[1]])}if(Qt=[...Qt,{placement:D,overflows:Nt}],!Nt.every(li=>li<=0)){var ai,Ii;const li=(((ai=F.flip)==null?void 0:ai.index)||0)+1,Xt=Rt[li];if(Xt&&(!(oe==="alignment"?Re!==ia(Xt):!1)||Qt.every(Wt=>ia(Wt.placement)===Re?Wt.overflows[0]>0:!0)))return{data:{index:li,overflows:Qt},reset:{placement:Xt}};let Dt=(Ii=Qt.filter(Tt=>Tt.overflows[0]<=0).sort((Tt,Wt)=>Tt.overflows[1]-Wt.overflows[1])[0])==null?void 0:Ii.placement;if(!Dt)switch(ye){case"bestFit":{var Ut;const Tt=(Ut=Qt.filter(Wt=>{if(It){const ji=ia(Wt.placement);return ji===Re||ji==="y"}return!0}).map(Wt=>[Wt.placement,Wt.overflows.filter(ji=>ji>0).reduce((ji,En)=>ji+En,0)]).sort((Wt,ji)=>Wt[1]-ji[1])[0])==null?void 0:Ut[0];Tt&&(Dt=Tt);break}case"initialPlacement":Dt=s;break}if(D!==Dt)return{reset:{placement:Dt}}}return{}}}};function DT(p,v){return{top:p.top-v.height,right:p.right-v.width,bottom:p.bottom-v.height,left:p.left-v.width}}function LT(p){return eD.some(v=>p[v]>=0)}const fD=function(p){return p===void 0&&(p={}),{name:"hide",options:p,async fn(v){const{rects:b,platform:C}=v,{strategy:D="referenceHidden",...F}=Xa(p,v);switch(D){case"referenceHidden":{const V=await C.detectOverflow(v,{...F,elementContext:"reference"}),s=DT(V,b.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:LT(s)}}}case"escaped":{const V=await C.detectOverflow(v,{...F,altBoundary:!0}),s=DT(V,b.floating);return{data:{escapedOffsets:s,escaped:LT(s)}}}default:return{}}}}},zT=new Set(["left","top"]);async function mD(p,v){const{placement:b,platform:C,elements:D}=p,F=await(C.isRTL==null?void 0:C.isRTL(D.floating)),V=Ya(b),s=Zu(b),ee=ia(b)==="y",re=zT.has(V)?-1:1,ge=F&&ee?-1:1,oe=Xa(v,p);let{mainAxis:Ee,crossAxis:ye,alignmentAxis:Ue}=typeof oe=="number"?{mainAxis:oe,crossAxis:0,alignmentAxis:null}:{mainAxis:oe.mainAxis||0,crossAxis:oe.crossAxis||0,alignmentAxis:oe.alignmentAxis};return s&&typeof Ue=="number"&&(ye=s==="end"?Ue*-1:Ue),ee?{x:ye*ge,y:Ee*re}:{x:Ee*re,y:ye*ge}}const _D=function(p){return p===void 0&&(p=0),{name:"offset",options:p,async fn(v){var b,C;const{x:D,y:F,placement:V,middlewareData:s}=v,ee=await mD(v,p);return V===((b=s.offset)==null?void 0:b.placement)&&(C=s.arrow)!=null&&C.alignmentOffset?{}:{x:D+ee.x,y:F+ee.y,data:{...ee,placement:V}}}}},gD=function(p){return p===void 0&&(p={}),{name:"shift",options:p,async fn(v){const{x:b,y:C,placement:D,platform:F}=v,{mainAxis:V=!0,crossAxis:s=!1,limiter:ee={fn:qe=>{let{x:Re,y:at}=qe;return{x:Re,y:at}}},...re}=Xa(p,v),ge={x:b,y:C},oe=await F.detectOverflow(v,re),Ee=ia(Ya(D)),ye=dv(Ee);let Ue=ge[ye],Te=ge[Ee];if(V){const qe=ye==="y"?"top":"left",Re=ye==="y"?"bottom":"right",at=Ue+oe[qe],Qe=Ue-oe[Re];Ue=hv(at,Ue,Qe)}if(s){const qe=Ee==="y"?"top":"left",Re=Ee==="y"?"bottom":"right",at=Te+oe[qe],Qe=Te-oe[Re];Te=hv(at,Te,Qe)}const Pe=ee.fn({...v,[ye]:Ue,[Ee]:Te});return{...Pe,data:{x:Pe.x-b,y:Pe.y-C,enabled:{[ye]:V,[Ee]:s}}}}}},yD=function(p){return p===void 0&&(p={}),{options:p,fn(v){const{x:b,y:C,placement:D,rects:F,middlewareData:V}=v,{offset:s=0,mainAxis:ee=!0,crossAxis:re=!0}=Xa(p,v),ge={x:b,y:C},oe=ia(D),Ee=dv(oe);let ye=ge[Ee],Ue=ge[oe];const Te=Xa(s,v),Pe=typeof Te=="number"?{mainAxis:Te,crossAxis:0}:{mainAxis:0,crossAxis:0,...Te};if(ee){const at=Ee==="y"?"height":"width",Qe=F.reference[Ee]-F.floating[at]+Pe.mainAxis,yt=F.reference[Ee]+F.reference[at]-Pe.mainAxis;ye<Qe?ye=Qe:ye>yt&&(ye=yt)}if(re){var qe,Re;const at=Ee==="y"?"width":"height",Qe=zT.has(Ya(D)),yt=F.reference[oe]-F.floating[at]+(Qe&&((qe=V.offset)==null?void 0:qe[oe])||0)+(Qe?0:Pe.crossAxis),It=F.reference[oe]+F.reference[at]+(Qe?0:((Re=V.offset)==null?void 0:Re[oe])||0)-(Qe?Pe.crossAxis:0);Ue<yt?Ue=yt:Ue>It&&(Ue=It)}return{[Ee]:ye,[oe]:Ue}}}},vD=function(p){return p===void 0&&(p={}),{name:"size",options:p,async fn(v){var b,C;const{placement:D,rects:F,platform:V,elements:s}=v,{apply:ee=()=>{},...re}=Xa(p,v),ge=await V.detectOverflow(v,re),oe=Ya(D),Ee=Zu(D),ye=ia(D)==="y",{width:Ue,height:Te}=F.floating;let Pe,qe;oe==="top"||oe==="bottom"?(Pe=oe,qe=Ee===(await(V.isRTL==null?void 0:V.isRTL(s.floating))?"start":"end")?"left":"right"):(qe=oe,Pe=Ee==="end"?"top":"bottom");const Re=Te-ge.top-ge.bottom,at=Ue-ge.left-ge.right,Qe=Il(Te-ge[Pe],Re),yt=Il(Ue-ge[qe],at),It=!v.middlewareData.shift;let Rt=Qe,zt=yt;if((b=v.middlewareData.shift)!=null&&b.enabled.x&&(zt=at),(C=v.middlewareData.shift)!=null&&C.enabled.y&&(Rt=Re),It&&!Ee){const Qt=$o(ge.left,0),ai=$o(ge.right,0),Ii=$o(ge.top,0),Ut=$o(ge.bottom,0);ye?zt=Ue-2*(Qt!==0||ai!==0?Qt+ai:$o(ge.left,ge.right)):Rt=Te-2*(Ii!==0||Ut!==0?Ii+Ut:$o(ge.top,ge.bottom))}await ee({...v,availableWidth:zt,availableHeight:Rt});const Nt=await V.getDimensions(s.floating);return Ue!==Nt.width||Te!==Nt.height?{reset:{rects:!0}}:{}}}};function t_(){return typeof window<"u"}function Xu(p){return kT(p)?(p.nodeName||"").toLowerCase():"#document"}function Go(p){var v;return(p==null||(v=p.ownerDocument)==null?void 0:v.defaultView)||window}function na(p){var v;return(v=(kT(p)?p.ownerDocument:p.document)||window.document)==null?void 0:v.documentElement}function kT(p){return t_()?p instanceof Node||p instanceof Go(p).Node:!1}function Is(p){return t_()?p instanceof Element||p instanceof Go(p).Element:!1}function Ka(p){return t_()?p instanceof HTMLElement||p instanceof Go(p).HTMLElement:!1}function OT(p){return!t_()||typeof ShadowRoot>"u"?!1:p instanceof ShadowRoot||p instanceof Go(p).ShadowRoot}function Zd(p){const{overflow:v,overflowX:b,overflowY:C,display:D}=Cs(p);return/auto|scroll|overlay|hidden|clip/.test(v+C+b)&&D!=="inline"&&D!=="contents"}function xD(p){return/^(table|td|th)$/.test(Xu(p))}function i_(p){try{if(p.matches(":popover-open"))return!0}catch{}try{return p.matches(":modal")}catch{return!1}}const bD=/transform|translate|scale|rotate|perspective|filter/,wD=/paint|layout|strict|content/,Dc=p=>!!p&&p!=="none";let _v;function gv(p){const v=Is(p)?Cs(p):p;return Dc(v.transform)||Dc(v.translate)||Dc(v.scale)||Dc(v.rotate)||Dc(v.perspective)||!yv()&&(Dc(v.backdropFilter)||Dc(v.filter))||bD.test(v.willChange||"")||wD.test(v.contain||"")}function TD(p){let v=Cl(p);for(;Ka(v)&&!Yu(v);){if(gv(v))return v;if(i_(v))return null;v=Cl(v)}return null}function yv(){return _v==null&&(_v=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_v}function Yu(p){return/^(html|body|#document)$/.test(Xu(p))}function Cs(p){return Go(p).getComputedStyle(p)}function n_(p){return Is(p)?{scrollLeft:p.scrollLeft,scrollTop:p.scrollTop}:{scrollLeft:p.scrollX,scrollTop:p.scrollY}}function Cl(p){if(Xu(p)==="html")return p;const v=p.assignedSlot||p.parentNode||OT(p)&&p.host||na(p);return OT(v)?v.host:v}function FT(p){const v=Cl(p);return Yu(v)?p.ownerDocument?p.ownerDocument.body:p.body:Ka(v)&&Zd(v)?v:FT(v)}function Xd(p,v,b){var C;v===void 0&&(v=[]),b===void 0&&(b=!0);const D=FT(p),F=D===((C=p.ownerDocument)==null?void 0:C.body),V=Go(D);if(F){const s=vv(V);return v.concat(V,V.visualViewport||[],Zd(D)?D:[],s&&b?Xd(s):[])}else return v.concat(D,Xd(D,[],b))}function vv(p){return p.parent&&Object.getPrototypeOf(p.parent)?p.frameElement:null}function BT(p){const v=Cs(p);let b=parseFloat(v.width)||0,C=parseFloat(v.height)||0;const D=Ka(p),F=D?p.offsetWidth:b,V=D?p.offsetHeight:C,s=Km(b)!==F||Km(C)!==V;return s&&(b=F,C=V),{width:b,height:C,$:s}}function xv(p){return Is(p)?p:p.contextElement}function Ku(p){const v=xv(p);if(!Ka(v))return ta(1);const b=v.getBoundingClientRect(),{width:C,height:D,$:F}=BT(v);let V=(F?Km(b.width):b.width)/C,s=(F?Km(b.height):b.height)/D;return(!V||!Number.isFinite(V))&&(V=1),(!s||!Number.isFinite(s))&&(s=1),{x:V,y:s}}const SD=ta(0);function NT(p){const v=Go(p);return!yv()||!v.visualViewport?SD:{x:v.visualViewport.offsetLeft,y:v.visualViewport.offsetTop}}function ED(p,v,b){return v===void 0&&(v=!1),!b||v&&b!==Go(p)?!1:v}function Lc(p,v,b,C){v===void 0&&(v=!1),b===void 0&&(b=!1);const D=p.getBoundingClientRect(),F=xv(p);let V=ta(1);v&&(C?Is(C)&&(V=Ku(C)):V=Ku(p));const s=ED(F,b,C)?NT(F):ta(0);let ee=(D.left+s.x)/V.x,re=(D.top+s.y)/V.y,ge=D.width/V.x,oe=D.height/V.y;if(F){const Ee=Go(F),ye=C&&Is(C)?Go(C):C;let Ue=Ee,Te=vv(Ue);for(;Te&&C&&ye!==Ue;){const Pe=Ku(Te),qe=Te.getBoundingClientRect(),Re=Cs(Te),at=qe.left+(Te.clientLeft+parseFloat(Re.paddingLeft))*Pe.x,Qe=qe.top+(Te.clientTop+parseFloat(Re.paddingTop))*Pe.y;ee*=Pe.x,re*=Pe.y,ge*=Pe.x,oe*=Pe.y,ee+=at,re+=Qe,Ue=Go(Te),Te=vv(Ue)}}return e_({width:ge,height:oe,x:ee,y:re})}function r_(p,v){const b=n_(p).scrollLeft;return v?v.left+b:Lc(na(p)).left+b}function jT(p,v){const b=p.getBoundingClientRect(),C=b.left+v.scrollLeft-r_(p,b),D=b.top+v.scrollTop;return{x:C,y:D}}function AD(p){let{elements:v,rect:b,offsetParent:C,strategy:D}=p;const F=D==="fixed",V=na(C),s=v?i_(v.floating):!1;if(C===V||s&&F)return b;let ee={scrollLeft:0,scrollTop:0},re=ta(1);const ge=ta(0),oe=Ka(C);if((oe||!oe&&!F)&&((Xu(C)!=="body"||Zd(V))&&(ee=n_(C)),oe)){const ye=Lc(C);re=Ku(C),ge.x=ye.x+C.clientLeft,ge.y=ye.y+C.clientTop}const Ee=V&&!oe&&!F?jT(V,ee):ta(0);return{width:b.width*re.x,height:b.height*re.y,x:b.x*re.x-ee.scrollLeft*re.x+ge.x+Ee.x,y:b.y*re.y-ee.scrollTop*re.y+ge.y+Ee.y}}function ID(p){return Array.from(p.getClientRects())}function CD(p){const v=na(p),b=n_(p),C=p.ownerDocument.body,D=$o(v.scrollWidth,v.clientWidth,C.scrollWidth,C.clientWidth),F=$o(v.scrollHeight,v.clientHeight,C.scrollHeight,C.clientHeight);let V=-b.scrollLeft+r_(p);const s=-b.scrollTop;return Cs(C).direction==="rtl"&&(V+=$o(v.clientWidth,C.clientWidth)-D),{width:D,height:F,x:V,y:s}}const VT=25;function PD(p,v){const b=Go(p),C=na(p),D=b.visualViewport;let F=C.clientWidth,V=C.clientHeight,s=0,ee=0;if(D){F=D.width,V=D.height;const ge=yv();(!ge||ge&&v==="fixed")&&(s=D.offsetLeft,ee=D.offsetTop)}const re=r_(C);if(re<=0){const ge=C.ownerDocument,oe=ge.body,Ee=getComputedStyle(oe),ye=ge.compatMode==="CSS1Compat"&&parseFloat(Ee.marginLeft)+parseFloat(Ee.marginRight)||0,Ue=Math.abs(C.clientWidth-oe.clientWidth-ye);Ue<=VT&&(F-=Ue)}else re<=VT&&(F+=re);return{width:F,height:V,x:s,y:ee}}function MD(p,v){const b=Lc(p,!0,v==="fixed"),C=b.top+p.clientTop,D=b.left+p.clientLeft,F=Ka(p)?Ku(p):ta(1),V=p.clientWidth*F.x,s=p.clientHeight*F.y,ee=D*F.x,re=C*F.y;return{width:V,height:s,x:ee,y:re}}function UT(p,v,b){let C;if(v==="viewport")C=PD(p,b);else if(v==="document")C=CD(na(p));else if(Is(v))C=MD(v,b);else{const D=NT(p);C={x:v.x-D.x,y:v.y-D.y,width:v.width,height:v.height}}return e_(C)}function $T(p,v){const b=Cl(p);return b===v||!Is(b)||Yu(b)?!1:Cs(b).position==="fixed"||$T(b,v)}function RD(p,v){const b=v.get(p);if(b)return b;let C=Xd(p,[],!1).filter(s=>Is(s)&&Xu(s)!=="body"),D=null;const F=Cs(p).position==="fixed";let V=F?Cl(p):p;for(;Is(V)&&!Yu(V);){const s=Cs(V),ee=gv(V);!ee&&s.position==="fixed"&&(D=null),(F?!ee&&!D:!ee&&s.position==="static"&&!!D&&(D.position==="absolute"||D.position==="fixed")||Zd(V)&&!ee&&$T(p,V))?C=C.filter(ge=>ge!==V):D=s,V=Cl(V)}return v.set(p,C),C}function DD(p){let{element:v,boundary:b,rootBoundary:C,strategy:D}=p;const V=[...b==="clippingAncestors"?i_(v)?[]:RD(v,this._c):[].concat(b),C],s=UT(v,V[0],D);let ee=s.top,re=s.right,ge=s.bottom,oe=s.left;for(let Ee=1;Ee<V.length;Ee++){const ye=UT(v,V[Ee],D);ee=$o(ye.top,ee),re=Il(ye.right,re),ge=Il(ye.bottom,ge),oe=$o(ye.left,oe)}return{width:re-oe,height:ge-ee,x:oe,y:ee}}function LD(p){const{width:v,height:b}=BT(p);return{width:v,height:b}}function zD(p,v,b){const C=Ka(v),D=na(v),F=b==="fixed",V=Lc(p,!0,F,v);let s={scrollLeft:0,scrollTop:0};const ee=ta(0);function re(){ee.x=r_(D)}if(C||!C&&!F)if((Xu(v)!=="body"||Zd(D))&&(s=n_(v)),C){const ye=Lc(v,!0,F,v);ee.x=ye.x+v.clientLeft,ee.y=ye.y+v.clientTop}else D&&re();F&&!C&&D&&re();const ge=D&&!C&&!F?jT(D,s):ta(0),oe=V.left+s.scrollLeft-ee.x-ge.x,Ee=V.top+s.scrollTop-ee.y-ge.y;return{x:oe,y:Ee,width:V.width,height:V.height}}function bv(p){return Cs(p).position==="static"}function GT(p,v){if(!Ka(p)||Cs(p).position==="fixed")return null;if(v)return v(p);let b=p.offsetParent;return na(p)===b&&(b=b.ownerDocument.body),b}function HT(p,v){const b=Go(p);if(i_(p))return b;if(!Ka(p)){let D=Cl(p);for(;D&&!Yu(D);){if(Is(D)&&!bv(D))return D;D=Cl(D)}return b}let C=GT(p,v);for(;C&&xD(C)&&bv(C);)C=GT(C,v);return C&&Yu(C)&&bv(C)&&!gv(C)?b:C||TD(p)||b}const kD=async function(p){const v=this.getOffsetParent||HT,b=this.getDimensions,C=await b(p.floating);return{reference:zD(p.reference,await v(p.floating),p.strategy),floating:{x:0,y:0,width:C.width,height:C.height}}};function OD(p){return Cs(p).direction==="rtl"}const FD={convertOffsetParentRelativeRectToViewportRelativeRect:AD,getDocumentElement:na,getClippingRect:DD,getOffsetParent:HT,getElementRects:kD,getClientRects:ID,getDimensions:LD,getScale:Ku,isElement:Is,isRTL:OD};function qT(p,v){return p.x===v.x&&p.y===v.y&&p.width===v.width&&p.height===v.height}function BD(p,v){let b=null,C;const D=na(p);function F(){var s;clearTimeout(C),(s=b)==null||s.disconnect(),b=null}function V(s,ee){s===void 0&&(s=!1),ee===void 0&&(ee=1),F();const re=p.getBoundingClientRect(),{left:ge,top:oe,width:Ee,height:ye}=re;if(s||v(),!Ee||!ye)return;const Ue=Jm(oe),Te=Jm(D.clientWidth-(ge+Ee)),Pe=Jm(D.clientHeight-(oe+ye)),qe=Jm(ge),at={rootMargin:-Ue+"px "+-Te+"px "+-Pe+"px "+-qe+"px",threshold:$o(0,Il(1,ee))||1};let Qe=!0;function yt(It){const Rt=It[0].intersectionRatio;if(Rt!==ee){if(!Qe)return V();Rt?V(!1,Rt):C=setTimeout(()=>{V(!1,1e-7)},1e3)}Rt===1&&!qT(re,p.getBoundingClientRect())&&V(),Qe=!1}try{b=new IntersectionObserver(yt,{...at,root:D.ownerDocument})}catch{b=new IntersectionObserver(yt,at)}b.observe(p)}return V(!0),F}function ND(p,v,b,C){C===void 0&&(C={});const{ancestorScroll:D=!0,ancestorResize:F=!0,elementResize:V=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:ee=!1}=C,re=xv(p),ge=D||F?[...re?Xd(re):[],...v?Xd(v):[]]:[];ge.forEach(qe=>{D&&qe.addEventListener("scroll",b,{passive:!0}),F&&qe.addEventListener("resize",b)});const oe=re&&s?BD(re,b):null;let Ee=-1,ye=null;V&&(ye=new ResizeObserver(qe=>{let[Re]=qe;Re&&Re.target===re&&ye&&v&&(ye.unobserve(v),cancelAnimationFrame(Ee),Ee=requestAnimationFrame(()=>{var at;(at=ye)==null||at.observe(v)})),b()}),re&&!ee&&ye.observe(re),v&&ye.observe(v));let Ue,Te=ee?Lc(p):null;ee&&Pe();function Pe(){const qe=Lc(p);Te&&!qT(Te,qe)&&b(),Te=qe,Ue=requestAnimationFrame(Pe)}return b(),()=>{var qe;ge.forEach(Re=>{D&&Re.removeEventListener("scroll",b),F&&Re.removeEventListener("resize",b)}),oe==null||oe(),(qe=ye)==null||qe.disconnect(),ye=null,ee&&cancelAnimationFrame(Ue)}}const jD=_D,VD=gD,UD=pD,$D=vD,GD=fD,WT=dD,HD=yD,qD=(p,v,b)=>{const C=new Map,D={platform:FD,...b},F={...D.platform,_c:C};return hD(p,v,{...D,platform:F})};var o_=typeof document<"u"?Ys:Bi;function s_(p,v){if(p===v)return!0;if(typeof p!=typeof v)return!1;if(typeof p=="function"&&p.toString()===v.toString())return!0;let b,C,D;if(p&&v&&typeof p=="object"){if(Array.isArray(p)){if(b=p.length,b!==v.length)return!1;for(C=b;C--!==0;)if(!s_(p[C],v[C]))return!1;return!0}if(D=Object.keys(p),b=D.length,b!==Object.keys(v).length)return!1;for(C=b;C--!==0;)if(!{}.hasOwnProperty.call(v,D[C]))return!1;for(C=b;C--!==0;){const F=D[C];if(!(F==="_owner"&&p.$$typeof)&&!s_(p[F],v[F]))return!1}return!0}return p!==p&&v!==v}function ZT(p){return typeof window>"u"?1:(p.ownerDocument.defaultView||window).devicePixelRatio||1}function XT(p,v){const b=ZT(p);return Math.round(v*b)/b}function YT(p){const v=mi(p);return o_(()=>{v.current=p}),v}function WD(p){p===void 0&&(p={});const{placement:v="bottom",strategy:b="absolute",middleware:C=[],platform:D,elements:{reference:F,floating:V}={},transform:s=!0,whileElementsMounted:ee,open:re}=p,[ge,oe]=Ri({x:0,y:0,strategy:b,placement:v,middlewareData:{},isPositioned:!1}),[Ee,ye]=Ri(C);s_(Ee,C)||ye(C);const[Ue,Te]=Ri(null),[Pe,qe]=Ri(null),Re=xn(Tt=>{Tt!==It.current&&(It.current=Tt,Te(Tt))},[]),at=xn(Tt=>{Tt!==Rt.current&&(Rt.current=Tt,qe(Tt))},[]),Qe=F||Ue,yt=V||Pe,It=mi(null),Rt=mi(null),zt=mi(ge),Nt=ee!=null,Qt=YT(ee),ai=YT(D),Ii=xn(()=>{if(!It.current||!Rt.current)return;const Tt={placement:v,strategy:b,middleware:Ee};ai.current&&(Tt.platform=ai.current),qD(It.current,Rt.current,Tt).then(Wt=>{const ji={...Wt,isPositioned:!0};Ut.current&&!s_(zt.current,ji)&&(zt.current=ji,Ud(()=>{oe(ji)}))})},[Ee,v,b,ai]);o_(()=>{re===!1&&zt.current.isPositioned&&(zt.current.isPositioned=!1,oe(Tt=>({...Tt,isPositioned:!1})))},[re]);const Ut=mi(!1);o_(()=>(Ut.current=!0,()=>{Ut.current=!1}),[]),o_(()=>{if(Qe&&(It.current=Qe),yt&&(Rt.current=yt),Qe&&yt){if(Qt.current)return Qt.current(Qe,yt,Ii);Ii()}},[Qe,yt,Ii,Qt,Nt]);const li=qn(()=>({reference:It,floating:Rt,setReference:Re,setFloating:at}),[Re,at]),Xt=qn(()=>({reference:Qe,floating:yt}),[Qe,yt]),Dt=qn(()=>{const Tt={position:b,left:0,top:0};if(!Xt.floating)return Tt;const Wt=XT(Xt.floating,ge.x),ji=XT(Xt.floating,ge.y);return s?{...Tt,transform:"translate("+Wt+"px, "+ji+"px)",...ZT(Xt.floating)>=1.5&&{willChange:"transform"}}:{position:b,left:Wt,top:ji}},[b,s,Xt.floating,ge.x,ge.y]);return qn(()=>({...ge,update:Ii,refs:li,elements:Xt,floatingStyles:Dt}),[ge,Ii,li,Xt,Dt])}const ZD=p=>{function v(b){return{}.hasOwnProperty.call(b,"current")}return{name:"arrow",options:p,fn(b){const{element:C,padding:D}=typeof p=="function"?p(b):p;return C&&v(C)?C.current!=null?WT({element:C.current,padding:D}).fn(b):{}:C?WT({element:C,padding:D}).fn(b):{}}}},XD=(p,v)=>({...jD(p),options:[p,v]}),YD=(p,v)=>({...VD(p),options:[p,v]}),KD=(p,v)=>({...HD(p),options:[p,v]}),JD=(p,v)=>({...UD(p),options:[p,v]}),QD=(p,v)=>({...$D(p),options:[p,v]}),eL=(p,v)=>({...GD(p),options:[p,v]}),tL=(p,v)=>({...ZD(p),options:[p,v]});function iL(p){const[v,b]=Ri(void 0);return Uu(()=>{if(p){b({width:p.offsetWidth,height:p.offsetHeight});const C=new ResizeObserver(D=>{if(!Array.isArray(D)||!D.length)return;const F=D[0];let V,s;if("borderBoxSize"in F){const ee=F.borderBoxSize,re=Array.isArray(ee)?ee[0]:ee;V=re.inlineSize,s=re.blockSize}else V=p.offsetWidth,s=p.offsetHeight;b({width:V,height:s})});return C.observe(p,{box:"border-box"}),()=>C.unobserve(p)}else b(void 0)},[p]),v}const KT="Popper",[JT,QT]=J0(KT),[nL,e2]=JT(KT),rL=p=>{const{__scopePopper:v,children:b}=p,[C,D]=Ri(null);return Zt(nL,{scope:v,anchor:C,onAnchorChange:D},b)},oL="PopperAnchor",sL=Wn((p,v)=>{const{__scopePopper:b,virtualRef:C,...D}=p,F=e2(oL,b),V=mi(null),s=Qs(v,V);return Bi(()=>{F.onAnchorChange((C==null?void 0:C.current)||V.current)}),C?null:Zt(Sl.div,Zn({},D,{ref:s}))}),t2="PopperContent",[aL,jN]=JT(t2),lL=Wn((p,v)=>{var b,C,D,F,V,s,ee,re;const{__scopePopper:ge,side:oe="bottom",sideOffset:Ee=0,align:ye="center",alignOffset:Ue=0,arrowPadding:Te=0,avoidCollisions:Pe=!0,collisionBoundary:qe=[],collisionPadding:Re=0,sticky:at="partial",hideWhenDetached:Qe=!1,updatePositionStrategy:yt="optimized",onPlaced:It,...Rt}=p,zt=e2(t2,ge),[Nt,Qt]=Ri(null),ai=Qs(v,eo=>Qt(eo)),[Ii,Ut]=Ri(null),li=iL(Ii),Xt=(b=li==null?void 0:li.width)!==null&&b!==void 0?b:0,Dt=(C=li==null?void 0:li.height)!==null&&C!==void 0?C:0,Tt=oe+(ye!=="center"?"-"+ye:""),Wt=typeof Re=="number"?Re:{top:0,right:0,bottom:0,left:0,...Re},ji=Array.isArray(qe)?qe:[qe],En=ji.length>0,on={padding:Wt,boundary:ji.filter(cL),altBoundary:En},{refs:Bn,floatingStyles:Ci,placement:Dn,isPositioned:Jr,middlewareData:Cr}=WD({strategy:"fixed",placement:Tt,whileElementsMounted:(...eo)=>ND(...eo,{animationFrame:yt==="always"}),elements:{reference:zt.anchor},middleware:[XD({mainAxis:Ee+Dt,alignmentAxis:Ue}),Pe&&YD({mainAxis:!0,crossAxis:!1,limiter:at==="partial"?KD():void 0,...on}),Pe&&JD({...on}),QD({...on,apply:({elements:eo,rects:Zi,availableWidth:tn,availableHeight:Si})=>{const{width:bn,height:ur}=Zi.reference,Nn=eo.floating.style;Nn.setProperty("--radix-popper-available-width",`${tn}px`),Nn.setProperty("--radix-popper-available-height",`${Si}px`),Nn.setProperty("--radix-popper-anchor-width",`${bn}px`),Nn.setProperty("--radix-popper-anchor-height",`${ur}px`)}}),Ii&&tL({element:Ii,padding:Te}),uL({arrowWidth:Xt,arrowHeight:Dt}),Qe&&eL({strategy:"referenceHidden",...on})]}),[Qr,qr]=i2(Dn),Fi=Tl(It);Uu(()=>{Jr&&(Fi==null||Fi())},[Jr,Fi]);const Qi=(D=Cr.arrow)===null||D===void 0?void 0:D.x,nr=(F=Cr.arrow)===null||F===void 0?void 0:F.y,Ho=((V=Cr.arrow)===null||V===void 0?void 0:V.centerOffset)!==0,[en,To]=Ri();return Uu(()=>{Nt&&To(window.getComputedStyle(Nt).zIndex)},[Nt]),Zt("div",{ref:Bn.setFloating,"data-radix-popper-content-wrapper":"",style:{...Ci,transform:Jr?Ci.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:en,"--radix-popper-transform-origin":[(s=Cr.transformOrigin)===null||s===void 0?void 0:s.x,(ee=Cr.transformOrigin)===null||ee===void 0?void 0:ee.y].join(" ")},dir:p.dir},Zt(aL,{scope:ge,placedSide:Qr,onArrowChange:Ut,arrowX:Qi,arrowY:nr,shouldHideArrow:Ho},Zt(Sl.div,Zn({"data-side":Qr,"data-align":qr},Rt,{ref:ai,style:{...Rt.style,animation:Jr?void 0:"none",opacity:(re=Cr.hide)!==null&&re!==void 0&&re.referenceHidden?0:void 0}}))))});function cL(p){return p!==null}const uL=p=>({name:"transformOrigin",options:p,fn(v){var b,C,D,F,V;const{placement:s,rects:ee,middlewareData:re}=v,oe=((b=re.arrow)===null||b===void 0?void 0:b.centerOffset)!==0,Ee=oe?0:p.arrowWidth,ye=oe?0:p.arrowHeight,[Ue,Te]=i2(s),Pe={start:"0%",center:"50%",end:"100%"}[Te],qe=((C=(D=re.arrow)===null||D===void 0?void 0:D.x)!==null&&C!==void 0?C:0)+Ee/2,Re=((F=(V=re.arrow)===null||V===void 0?void 0:V.y)!==null&&F!==void 0?F:0)+ye/2;let at="",Qe="";return Ue==="bottom"?(at=oe?Pe:`${qe}px`,Qe=`${-ye}px`):Ue==="top"?(at=oe?Pe:`${qe}px`,Qe=`${ee.floating.height+ye}px`):Ue==="right"?(at=`${-ye}px`,Qe=oe?Pe:`${Re}px`):Ue==="left"&&(at=`${ee.floating.width+ye}px`,Qe=oe?Pe:`${Re}px`),{data:{x:at,y:Qe}}}});function i2(p){const[v,b="center"]=p.split("-");return[v,b]}const hL=rL,dL=sL,pL=lL,n2="Popover",[r2,VN]=J0(n2,[QT]),wv=QT(),[fL,Ju]=r2(n2),mL=p=>{const{__scopePopover:v,children:b,open:C,defaultOpen:D,onOpenChange:F,modal:V=!1}=p,s=wv(v),ee=mi(null),[re,ge]=Ri(!1),[oe=!1,Ee]=qw({prop:C,defaultProp:D,onChange:F});return Zt(hL,s,Zt(fL,{scope:v,contentId:Vm(),triggerRef:ee,open:oe,onOpenChange:Ee,onOpenToggle:xn(()=>Ee(ye=>!ye),[Ee]),hasCustomAnchor:re,onCustomAnchorAdd:xn(()=>ge(!0),[]),onCustomAnchorRemove:xn(()=>ge(!1),[]),modal:V},b))},_L="PopoverTrigger",gL=Wn((p,v)=>{const{__scopePopover:b,...C}=p,D=Ju(_L,b),F=wv(b),V=Qs(v,D.triggerRef),s=Zt(Sl.button,Zn({type:"button","aria-haspopup":"dialog","aria-expanded":D.open,"aria-controls":D.contentId,"data-state":a2(D.open)},C,{ref:V,onClick:As(p.onClick,D.onOpenToggle)}));return D.hasCustomAnchor?s:Zt(dL,Zn({asChild:!0},F),s)}),o2="PopoverPortal",[yL,vL]=r2(o2,{forceMount:void 0}),xL=p=>{const{__scopePopover:v,forceMount:b,children:C,container:D}=p,F=Ju(o2,v);return Zt(yL,{scope:v,forceMount:b},Zt($u,{present:b||F.open},Zt(nT,{asChild:!0,container:D},C)))},Yd="PopoverContent",bL=Wn((p,v)=>{const b=vL(Yd,p.__scopePopover),{forceMount:C=b.forceMount,...D}=p,F=Ju(Yd,p.__scopePopover);return Zt($u,{present:C||F.open},F.modal?Zt(wL,Zn({},D,{ref:v})):Zt(TL,Zn({},D,{ref:v})))}),wL=Wn((p,v)=>{const b=Ju(Yd,p.__scopePopover),C=mi(null),D=Qs(v,C),F=mi(!1);return Bi(()=>{const V=C.current;if(V)return wT(V)},[]),Zt(xT,{as:Um,allowPinchZoom:!0},Zt(s2,Zn({},p,{ref:D,trapFocus:b.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:As(p.onCloseAutoFocus,V=>{var s;V.preventDefault(),F.current||(s=b.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:As(p.onPointerDownOutside,V=>{const s=V.detail.originalEvent,ee=s.button===0&&s.ctrlKey===!0,re=s.button===2||ee;F.current=re},{checkForDefaultPrevented:!1}),onFocusOutside:As(p.onFocusOutside,V=>V.preventDefault(),{checkForDefaultPrevented:!1})})))}),TL=Wn((p,v)=>{const b=Ju(Yd,p.__scopePopover),C=mi(!1),D=mi(!1);return Zt(s2,Zn({},p,{ref:v,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:F=>{var V;if((V=p.onCloseAutoFocus)===null||V===void 0||V.call(p,F),!F.defaultPrevented){var s;C.current||(s=b.triggerRef.current)===null||s===void 0||s.focus(),F.preventDefault()}C.current=!1,D.current=!1},onInteractOutside:F=>{var V,s;(V=p.onInteractOutside)===null||V===void 0||V.call(p,F),F.defaultPrevented||(C.current=!0,F.detail.originalEvent.type==="pointerdown"&&(D.current=!0));const ee=F.target;((s=b.triggerRef.current)===null||s===void 0?void 0:s.contains(ee))&&F.preventDefault(),F.detail.originalEvent.type==="focusin"&&D.current&&F.preventDefault()}}))}),s2=Wn((p,v)=>{const{__scopePopover:b,trapFocus:C,onOpenAutoFocus:D,onCloseAutoFocus:F,disableOutsidePointerEvents:V,onEscapeKeyDown:s,onPointerDownOutside:ee,onFocusOutside:re,onInteractOutside:ge,...oe}=p,Ee=Ju(Yd,b),ye=wv(b);return rT(),Zt(Jw,{asChild:!0,loop:!0,trapped:C,onMountAutoFocus:D,onUnmountAutoFocus:F},Zt(Zw,{asChild:!0,disableOutsidePointerEvents:V,onInteractOutside:ge,onEscapeKeyDown:s,onPointerDownOutside:ee,onFocusOutside:re,onDismiss:()=>Ee.onOpenChange(!1)},Zt(pL,Zn({"data-state":a2(Ee.open),role:"dialog",id:Ee.contentId},ye,oe,{ref:v,style:{...oe.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))});function a2(p){return p?"open":"closed"}const SL=mL,EL=gL,AL=xL,IL=bL,l2=p=>{var b;const v=Number((b=p.match(/\d/g))==null?void 0:b.join(""));return Number.isNaN(v)?0:v},CL=(p,v={by:"results-count",order:"descending"})=>{const b=[...p];switch(v.by){case"results-count":b.sort((C,D)=>C.jobs-D.jobs);break;case"alphabetically":b.sort((C,D)=>C.label.localeCompare(D.label));break;case"numerically":b.sort((C,D)=>{const F=l2(C.value),V=l2(D.value);return F-V});break}return v.order==="descending"&&b.reverse(),b},Kd=cs({base:"fr bg-lowest caret-accent-11 selection:bg-accent-4 selection:text-accent-12 placeholder:text-copy-neutral placeholder:opacity-30 ring-width-section ease-expo-out duration-snappy transition-all disabled:opacity-50 rounded-input font-style-input text-style-input font-weight-input",variants:{hasValue:{false:"text-copy-neutral ring-job-card-stroke",true:"text-interactive-accent-text ring-job-card-stroke"},size:{md:"py-2 px-4",unsized:""}},defaultVariants:{size:"md",hasValue:!1}}),c2=cs({base:"flex-1 gutter-stable group/filter flex-col p-2 bg-app flex max-w-full overflow-y-auto items-stretch",variants:{ring:{default:"border-b-px border-neutral-4",unset:""}},defaultVariants:{ring:"default"}}),u2=cs({base:"max-w-full origin-top group/tag ease-expo-out transition-all duration-snappy",variants:{type:{pill:"",line:"[&:not(:last-child)]:border-b-px border-neutral-2 has-[[data-current-value=true]]:border-b-accent-3"}}}),h2=cs({base:"cursor-pointer flex fr gap-2 font-style-tag pointer-fine:group-[&:first-child]/filter:group-[&:first-child]/tag:rounded-t-tag py-2.5 px-2.5 font-family-tag font-weight-tag text-style-tag focus:relative w-full justify-between",variants:{active:{true:"bg-accent-2 text-accent-11",false:"text-neutral-11"},disabled:{true:"opacity-25 pointer-events-none",false:""}},compoundVariants:[{disabled:!1,active:!1,class:"hover:bg-neutral-2"}],defaultVariants:{disabled:!1,active:!1}}),PL=cs({base:"rounded-job-tag inline-block px-1 border-solid border-px ease-expo-out transition-all duration-snappy",variants:{colorScheme:{accentStrong:"text-accent-11 bg-accent-4 border-tag-accent-strong-stroke",neutralStrong:"text-neutral-11 bg-neutral-2 border-tag-neutral-strong-stroke"}}}),ML=({children:p,colorScheme:v})=>me("span",{class:PL({colorScheme:v}),children:me("span",{class:"block w-[3ch] text-center tabular-nums",children:p})}),RL=(p,v)=>{const b=p.indexOf(v);return b===-1?[...p,v]:p.filter((C,D)=>D!==b)},DL=(p,v)=>{if(p===null)return!1;const b=p[v.value];return b===void 0?!0:b===0},LL=(p,v)=>{const b=C=>C>99?"99+":C.toString();return b(p===null?v.jobs:p[v.value]??0)},zL=({value:p,property:v,useQuery:b,isMobile:C,onValueChange:D,onClose:F})=>{const{t:V}=Hr(),s=Nd(b()),ee=qn(()=>{switch(s.queryState){case"error":case"idle":case"loading":return null;case"loaded":case"revalidating":{const ye=s.data[v.key]??[];return Object.fromEntries(ye.map(Ue=>[Ue.value,Ue.jobs]))}default:os(s)}},[s,v.key]),re=_2(p),ge=re.length>0,[oe,Ee]=Ri();return me("div",{class:"theme-fill:bg-neutral-1 flex min-h-0 w-full flex-1 flex-col",children:[v.searchable&&me("div",{class:"border-b-px border-neutral-4",children:me("input",{type:"search",class:"theme-fill:bg-neutral-2 theme-stroke:bg-neutral-1 theme-fill:focus:bg-neutral-1 theme-stroke:focus:bg-lowest focus:ring-px focus:ring-neutral-6 pointer-fine:theme-soft:rounded-t-lg pointer-fine:theme-rounded:rounded-t-lg caret-accent-11 selection:bg-accent-4 selection:text-accent-12 placeholder:text-copy-neutral ease-expo-out duration-snappy font-style-input text-style-input font-weight-input bg-transparent px-4 py-2.5 outline-none transition-all placeholder:opacity-30 disabled:opacity-50",value:oe,onInput:ye=>Ee(ye.currentTarget.value),placeholder:V("type_to_search")})}),(()=>{switch(s.queryState){case"error":return me(wl,{error:new Error(V("filters_loading_error"),{cause:s.error}),class:"flex-1",resetError:()=>s.swr.mutate()});case"idle":case"loading":return me("div",{"aria-hidden":!0,class:"flex flex-col p-2",children:Array.from({length:10}).map((ye,Ue)=>me("div",{style:{animationDelay:Ue*-.1+"s"},class:"bg-neutral-3 animate-skeleton h-12 w-full"},Ue))});case"revalidating":case"loaded":{const ye=s.data[v.key]??[],Ue=oe&&oe.length>1?ye.filter(qe=>qe.label.toLowerCase().includes(oe.toLowerCase())):ye,Te=[];for(const qe of Ue){if(qe.label.length<1)continue;const Re={...qe,results:LL(ee,qe),disabled:DL(ee,qe)};switch(v.results){case"only-available":Re.disabled===!1&&Te.push(Re);break;default:Te.push(Re)}}return Te.find(qe=>!qe.disabled)?me("ul",{class:c2(),children:CL(Te,v.sortSuggestions).map(qe=>{const Re=re.includes(qe.value);return me("li",{class:u2({type:"line"}),children:me("button",{type:"button",disabled:qe.disabled,"data-filter":!0,"data-current-value":Re?"true":void 0,onClick:()=>{switch(p.select){case"many":{const at=RL(re,qe.value);D({select:"many",value:at});break}case"one":D({select:"one",value:Re?void 0:qe.value});break;default:os(p)}},class:h2({active:Re,disabled:qe.disabled}),children:[me("span",{class:"max-w-full truncate",children:qe.label})," ",me(ML,{colorScheme:Re?"accentStrong":"neutralStrong",children:qe.results})]})},qe.value)})}):me("p",{class:"font-style-tag text-style-tag font-weight-tag w-full flex-1 px-4 pb-1 pt-4 text-center",children:V("no_filter_options_available")})}default:os(s)}})(),me("footer",{class:"flex flex-none justify-end p-2",children:[me("div",{class:"flex-1",children:ge&&me("button",{type:"button",class:Ga({variant:"neutral",icon:"left"}),onClick:()=>{D(void 0)},children:[me(Ir,{"aria-hidden":!0,name:"x"})," ",V("clear")]})}),p.select==="many"&&C&&me("div",{class:"flex items-center overflow-hidden",children:me("p",{class:"theme-light:text-neutral-11 theme-dark:text-neutral-12 font-style-default text-style-tag font-weight-default flex-grow select-none truncate text-center",children:[re.length," ",V("selected")]})}),me("div",{class:"flex-1",children:me("button",{type:"button",class:Ga({variant:ge?"accent":"neutral",class:"ml-auto"}),onClick:F,children:V(ge?"done":"close")},ge?"done":"close")})]})]})},d2=8,p2={contract_type:"clock",title:"magnifier",city:"mapPin",town:"mapPin",country:"mapPin",company_name:"briefcase",category:"briefcase",pay:"pay",pay_currency:"pay",pay_mask:"pay",pay_display:"pay",pay_max:"pay",pay_min:"pay",pay_type:"pay"},f2=cs({base:"theme-fill:fr theme-fill:bg-neutral-2 theme-fill:hover:bg-neutral-3 theme-stroke:fr theme-stroke:hover:fr theme-stroke:ring-px theme-stroke:bg-lowest theme-stroke:ring-neutral-4 theme-stroke:hover:ring-neutral-6 group relative flex cursor-pointer select-none items-center gap-1.5 py-2.5 pl-3.5 pr-3 font-style-filter font-family-filter font-weight-filter text-style-filter duration-snappy outline-none ijs-filter flex-shrink-0 min-w-0 theme-rounded:rounded-md theme-soft:rounded-sm transition-all ease-expo-out active:scale-[0.975] origin-[50%_1.75rem]",variants:{state:{default:"text-copy-neutral-lowcontrast hover:text-copy-neutral",active:"text-copy-neutral"}}}),m2=cs({base:"bg-lowest isolate z-50 flex flex-col overflow-hidden ring-neutral-4 ring-px",variants:{mode:{mobile:"fixed bottom-0 w-full h-[80svh] rounded-t-section animate-slide-out-bottom pb-[env(safe-area-inset-bottom)]",desktop:"min-w-64 max-w-xs max-h-[--radix-popover-content-available-height] rounded-section animate-slideDownFade data-[side=top]:animate-slideUpFade shadow-lg"}}}),_2=p=>typeof p.value=="string"?[p.value]:p.value??[],kL=({selectedValues:p})=>{const v=p.length;return v===0?null:me("span",{"aria-label":"Current value",class:"animate-appear-tag text-style-job-card-info font-style-tag font-family-tag font-weight-tag text-tag-accent-strong-copy bg-tag-accent-strong-bg min-w-6 min-h-6 absolute -right-1 -top-1 inline-flex items-center justify-center rounded-[999px] px-2 tabular-nums",children:v},v)},OL=({active:p,value:v,onActiveChange:b,property:C,onValueChange:D,unfilteredQuery:F,useQuery:V,theme:s,widgetId:ee})=>{const re=Sc(C.key,p2)?p2[C.key]:void 0,ge=C.icon??re??"filter",oe=_2(v),Ee=oe.length>0,ye=Gw("(pointer: coarse)"),Ue=me(Hi,{children:[me("div",{class:"flex min-w-0 flex-1 items-center gap-1.5",children:[me(Ir,{"aria-hidden":!0,class:"flex-none",name:ge}),me("span",{class:"truncate",children:C.label})]}),me(Ir,{"aria-hidden":!0,class:"text-neutral-8 flex-shrink-0 rotate-90 transition-transform group-data-[state=open]:-rotate-90",name:"chevron-right"}),me(kL,{selectedValues:oe})]}),Te=me(zL,{useQuery:V,onClose:()=>b(!1),onValueChange:D,unfilteredQuery:F,property:C,value:v,isMobile:ye});return ye?me(XR,{open:p,onOpenChange:b,children:[me(YR,{"data-filter-key":C.key,"aria-label":C.label,"aria-selected":p?"true":void 0,class:f2({state:p||Ee?"active":"default"}),onTouchStart:FL,children:Ue}),me(KR,{children:me("div",{class:"inploi-job-search","data-widget-id":ee,children:[me(JR,{class:"animate-fade-in fixed inset-0 z-50 bg-[#0009]"}),me(QR,{class:m2({mode:"mobile",class:K0(s)}),children:[me("header",{class:"theme-fill:bg-neutral-1 text-neutral-12 border-b-px border-neutral-4 flex cursor-default items-center gap-2 p-4",children:[me(Ir,{name:ge,class:"flex-none"}),me("p",{class:"font-style-filter font-weight-filter text-style-filter truncate",children:C.label})]}),Te]})]})})]}):me(SL,{open:p,onOpenChange:Pe=>b(Pe),modal:ye,children:[me(EL,{"data-filter-key":C.key,"aria-label":C.label,"aria-selected":p?"true":void 0,class:f2({state:p||Ee?"active":"default"}),children:Ue}),me(AL,{children:me("div",{class:"inploi-job-search","data-widget-id":ee,children:me(IL,{side:"bottom",sideOffset:d2,align:"center",collisionPadding:d2,class:m2({mode:"desktop",class:K0(s)}),children:Te})})})]})};function FL(){}const BL=(p,v)=>{var b,C,D;switch(v.select){case"many":(b=v.value)==null||b.forEach(F=>{var V,s;switch(p.select){case"many":(V=p.value)!=null&&V.includes(F)||(s=p.value)==null||s.push(F);break;case"one":p.value=F}});break;case"one":if(!v.value)break;switch(p.select){case"many":(C=p.value)!=null&&C.includes(v.value)||(D=p.value)==null||D.push(v.value);break;case"one":p.value=v.value}break}},NL=({value:p,activeKey:v})=>{switch(p==null?void 0:p.select){case void 0:return{newValue:void 0,newActiveKey:v};case"one":case"many":return{newValue:p,newActiveKey:v};default:os(p)}},jL=({properties:p,state:v,onFilterValueChange:b,onResetFilters:C,rpcClient:D,theme:F,alerts:V,widgetId:s,i18n:ee})=>{const{t:re}=Hr(),[ge,oe]=Ri(void 0),Ee=qn(()=>({filters:Dv(p,"value"),mode:v.mode,query:"",geo:void 0,page:1,view:"list"}),[p,v.mode]),ye=Nd(qd(jm({state:Ee,baseKey:"filters"}),()=>zb({rpcClient:D,state:Ee,t:re,locale:ee?ee.locale:void 0,fallbackLocale:ee?ee.fallbackLocale:void 0}),Pm)),Ue=xn(Te=>()=>{const Pe={...v,resultOrder:void 0,filters:{...v.filters,[Te]:Ee.filters[Te]}};return qd(jm({state:Pe,baseKey:"filters"}),()=>zb({rpcClient:D,state:Pe,t:re,locale:ee?ee.locale:void 0,fallbackLocale:ee?ee.fallbackLocale:void 0}),Pm)},[D,Ee.filters,v,re,ee]);return ye.queryState==="error"?me(wl,{error:new Error(re("filters_loading_error"),{cause:ye.error}),resetError:()=>ye.swr.mutate()}):me("div",{class:"ijs-filters-section flex w-full flex-col items-stretch justify-center gap-2 overflow-auto px-4 py-2 md:flex-row md:flex-wrap md:items-center",children:[p.filter(Te=>Te.hidden!==!0).map(Te=>{const Pe=ge===Te.key,qe=v.filters[Te.key]??{select:Te.select,value:void 0},Re=Ee.filters[Te.key];Re&&BL(qe,Re);const at=It=>{const{newActiveKey:Rt,newValue:zt}=NL({property:Te,activeKey:ge,value:It??Re,properties:p,appliedFilters:v.filters});return oe(Rt),b(Te.key,zt)},Qe=It=>oe(It?Te.key:void 0),yt=Ue(Te.key);return me(Vd,{Fallback:wl,children:me(OL,{unfilteredQuery:ye,active:Pe,property:Te,onActiveChange:Qe,value:qe,useQuery:yt,onValueChange:at,theme:F,widgetId:s})},Te.key)}),me("button",{type:"button",class:Ga({variant:"neutral"}),onClick:C,children:re("reset")}),V?me("div",{id:"inploi-job-alerts",class:"min-h-[36px]",children:me("div",{class:"rounded-job-card bg-neutral-2 flex h-[36px] animate-pulse items-center gap-2 px-2",children:[me("div",{class:"block h-6 w-6"}),me("p",{class:"text-style-tag text-neutral-6 pr-2 font-[500]",children:V.params.config.label})]})}):null]})},Tv=p=>p*1609.34,Sv=p=>p*1e3,VL=()=>{const p=typeof document>"u"?"":document.documentElement.lang;if(p)try{return Intl.getCanonicalLocales(p)[0]}catch{return}},g2=(p,v)=>new Intl.NumberFormat(VL()??p,{style:"unit",unit:v==="miles"?"mile":"kilometer",unitDisplay:"short",maximumFractionDigits:1,trailingZeroDisplay:"stripIfInteger"}),UL=(p,v,b)=>g2(b,v).format(p/(v==="miles"?Tv(1):Sv(1)));function $L(p){var v=typeof p;return p!=null&&(v=="object"||v=="function")}var a_=$L,GL=typeof Gd=="object"&&Gd&&Gd.Object===Object&&Gd,HL=GL,qL=HL,WL=typeof self=="object"&&self&&self.Object===Object&&self,ZL=qL||WL||Function("return this")(),l_=ZL,XL=l_,YL=function(){return XL.Date.now()},KL=YL,JL=/\s/;function QL(p){for(var v=p.length;v--&&JL.test(p.charAt(v)););return v}var ez=QL,tz=ez,iz=/^\s+/;function nz(p){return p&&p.slice(0,tz(p)+1).replace(iz,"")}var rz=nz,oz=l_,sz=oz.Symbol,Ev=sz,y2=Ev,v2=Object.prototype,az=v2.hasOwnProperty,lz=v2.toString,Jd=y2?y2.toStringTag:void 0;function cz(p){var v=az.call(p,Jd),b=p[Jd];try{p[Jd]=void 0;var C=!0}catch{}var D=lz.call(p);return C&&(v?p[Jd]=b:delete p[Jd]),D}var uz=cz,hz=Object.prototype,dz=hz.toString;function pz(p){return dz.call(p)}var fz=pz,x2=Ev,mz=uz,_z=fz,gz="[object Null]",yz="[object Undefined]",b2=x2?x2.toStringTag:void 0;function vz(p){return p==null?p===void 0?yz:gz:b2&&b2 in Object(p)?mz(p):_z(p)}var w2=vz;function xz(p){return p!=null&&typeof p=="object"}var bz=xz,wz=w2,Tz=bz,Sz="[object Symbol]";function Ez(p){return typeof p=="symbol"||Tz(p)&&wz(p)==Sz}var c_=Ez,Az=rz,T2=a_,Iz=c_,S2=0/0,Cz=/^[-+]0x[0-9a-f]+$/i,Pz=/^0b[01]+$/i,Mz=/^0o[0-7]+$/i,Rz=parseInt;function Dz(p){if(typeof p=="number")return p;if(Iz(p))return S2;if(T2(p)){var v=typeof p.valueOf=="function"?p.valueOf():p;p=T2(v)?v+"":v}if(typeof p!="string")return p===0?p:+p;p=Az(p);var b=Pz.test(p);return b||Mz.test(p)?Rz(p.slice(2),b?2:8):Cz.test(p)?S2:+p}var Lz=Dz,zz=a_,Av=KL,E2=Lz,kz="Expected a function",Oz=Math.max,Fz=Math.min;function Bz(p,v,b){var C,D,F,V,s,ee,re=0,ge=!1,oe=!1,Ee=!0;if(typeof p!="function")throw new TypeError(kz);v=E2(v)||0,zz(b)&&(ge=!!b.leading,oe="maxWait"in b,F=oe?Oz(E2(b.maxWait)||0,v):F,Ee="trailing"in b?!!b.trailing:Ee);function ye(It){var Rt=C,zt=D;return C=D=void 0,re=It,V=p.apply(zt,Rt),V}function Ue(It){return re=It,s=setTimeout(qe,v),ge?ye(It):V}function Te(It){var Rt=It-ee,zt=It-re,Nt=v-Rt;return oe?Fz(Nt,F-zt):Nt}function Pe(It){var Rt=It-ee,zt=It-re;return ee===void 0||Rt>=v||Rt<0||oe&&zt>=F}function qe(){var It=Av();if(Pe(It))return Re(It);s=setTimeout(qe,Te(It))}function Re(It){return s=void 0,Ee&&C?ye(It):(C=D=void 0,V)}function at(){s!==void 0&&clearTimeout(s),re=0,C=ee=D=s=void 0}function Qe(){return s===void 0?V:Re(Av())}function yt(){var It=Av(),Rt=Pe(It);if(C=arguments,D=this,ee=It,Rt){if(s===void 0)return Ue(ee);if(oe)return clearTimeout(s),s=setTimeout(qe,v),ye(ee)}return s===void 0&&(s=setTimeout(qe,v)),V}return yt.cancel=at,yt.flush=Qe,yt}var Nz=Bz;const jz=A0(Nz),A2=(p,v=1e3)=>{const[b,C]=Ri(p),D=qn(()=>jz(F=>C(F),v),[v]);return Bi(()=>{D(p)},[p,D]),b},Vz=Wn(({disabled:p,error:v,name:b,inputPlaceholder:C,items:D,onItemSelect:F,onEnter:V,onQueryChange:s,onBlur:ee,onFocus:re,inputProps:ge,menuProps:oe,query:Ee},ye)=>{const[Ue,Te]=Ri(!1),[Pe,qe]=Ri(),{t:Re}=Hr();Bi(()=>{var Qe;qe((Qe=D[0])==null?void 0:Qe.id)},[D]);const at=Qe=>{F(Qe),Te(!1)};return me("div",{class:"relative h-full",children:[me("input",{name:b,ref:ye,disabled:p,"data-active":Ue?"true":void 0,"aria-controls":`ijs-${b}-menu`,placeholder:C,class:Kd({size:"md"}),onFocus:()=>{re==null||re(),Te(!0)},onBlur:()=>{window.setTimeout(()=>{ee==null||ee(),Te(!1)},100)},value:Ee,onChange:Qe=>s(Qe.currentTarget.value),onKeyDown:Qe=>{switch(Te(!0),Qe.key){case"ArrowDown":case"ArrowUp":{const yt=Qe.key==="ArrowDown"?1:-1;Qe.preventDefault();const It=D.findIndex(zt=>zt.id===Pe);if(It===-1)return;const Rt=D[It+yt]??D[Qe.key==="ArrowDown"?0:D.length-1];if(!Rt)return;qe(Rt.id);break}case"Enter":Qe.preventDefault(),V(Pe)}},...ge}),!v&&Ue&&!p&&D.length>0?me("ul",{className:c2({ring:"unset",className:"ring-width-section rounded-input ring-job-card-stroke absolute left-0 right-0 top-12 z-50 w-full shadow-sm"}),id:`ijs-${b}-menu`,onMouseDown:Qe=>Qe.preventDefault(),...oe,children:v?me("div",{role:"alert",children:Re("geo_suggestions_error")}):D.map(Qe=>me("li",{class:u2({type:"line",className:"group/tag"}),children:me("button",{type:"button",onMouseEnter:()=>qe(Qe.id),class:h2({active:Qe.id===Pe,className:"line-clamp-1 overflow-hidden truncate"}),onClick:()=>at(Qe.id),onKeyDown:yt=>{yt.key==="Enter"&&at(Qe.id)},children:Qe.label})},Qe.id))}):null]})}),Uz=1e4;class I2 extends Error{constructor(){super("Timed out waiting for the browser location"),this.name="LocateTimeoutError"}}const $z=({signal:p,timeoutMs:v})=>new Promise((b,C)=>{if(p.aborted){C(new DOMException("Aborted","AbortError"));return}const D=setTimeout(()=>C(new I2),v);p.addEventListener("abort",()=>{clearTimeout(D),C(new DOMException("Aborted","AbortError"))},{once:!0}),navigator.geolocation.getCurrentPosition(F=>{clearTimeout(D),b(F.coords)},F=>{clearTimeout(D),C(F)},{timeout:v})}),Gz=1,Hz=3,qz=p=>{if(p instanceof DOMException&&p.name==="AbortError")return null;if(p instanceof I2)return"geo_error_timeout";const v=typeof p=="object"&&p!==null&&"code"in p?p.code:void 0;return v===Gz?"geo_error_permission_denied":v===Hz?"geo_error_timeout":"geo_error_position_unavailable"},Wz=()=>typeof window<"u"&&"geolocation"in navigator&&window.isSecureContext,Zz=({onLocate:p,onError:v,signal:b})=>{const[C,D]=Ri("idle"),[F,V]=Ri(null),{t:s}=Hr(),ee=ge=>{D("idle"),V(ge),p(ge)},re=ge=>{const oe=qz(ge);if(!oe)return D("idle");D("error"),v(s(oe))};return me("button",{"aria-label":s(C==="loading"?"geo_locating":"geo_my_location"),type:"button",onClick:()=>{if(C!=="loading"){if(F)return ee(F);if(!Wz())return re(void 0);D("loading"),$z({signal:b,timeoutMs:Uz}).then(ge=>ee({lat:ge.latitude,lng:ge.longitude})).catch(re)}},"data-state":C,class:Ga({variant:"accent",size:"lg",icon:"only",className:"data-[state=loading]:animate-pulse"}),children:me(Ir,{name:"target-location"})})},Qu=cs({base:"block fr font-style-tag font-family-tag font-weight-tag",variants:{variant:{neutralWeak:"text-tag-neutral-weak-copy bg-tag-neutral-weak-bg border-solid border-px border-tag-neutral-weak-stroke",neutralStrong:"text-tag-neutral-strong-copy bg-tag-neutral-strong-bg border-solid border-px border-tag-neutral-strong-stroke",accentStrong:"text-tag-accent-strong-copy bg-tag-accent-strong-bg border-solid border-px border-tag-accent-strong-stroke",monetaryWeak:"text-tag-monetary-weak-copy bg-tag-monetary-weak-bg border-solid border-px border-tag-monetary-weak-stroke"},interactive:{true:"ease-expo-out rounded-interactive transition-all duration-snappy",false:"rounded-tag"},size:{xs:"px-2 py-0.5 text-style-tag",sm:"px-3 py-1.5 text-style-tag",lg:"px-5 py-2.5 text-style-tag",unsized:""},disabled:{true:"opacity-25 pointer-events-none",false:""}},compoundVariants:[{disabled:!1,interactive:!0,class:"cursor-pointer active:scale-[0.975]"}],defaultVariants:{variant:"neutralWeak",size:"sm",disabled:!1,interactive:!1}}),Xz="https://api.mapbox.com/search/geocode/v6/forward",Yz="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",Kz=p=>atob(p).split("").reverse().join(""),Jz=ls({features:Bd(Ua(ls({properties:ls({mapbox_id:ir(),place_formatted:Pc(ir()),name_preferred:Pc(ir(),"Untitled location"),coordinates:Ua(ls({latitude:as(),longitude:as()}),Va(({latitude:p,longitude:v})=>({lat:p,lng:v})))})}),Va(p=>p.properties)))}),Qz=(p,v)=>Array.from(new Map(p.map(b=>[typeof v=="function"?v(b):b[v],b])).values()),C2=async p=>{if(!p)return[];const v=new URL(Xz);v.searchParams.set("q",p),v.searchParams.set("proximity","ip"),v.searchParams.set("access_token",Kz(Yz));const b=await fetch(v);if(!b.ok)throw new Error("Failed to get address details");const C=Ib(Jz,await b.json());if(C.success===!1)throw console.error(C.issues),new Error("Invalid data");const{features:D}=C.output;return Qz(D,F=>F.name_preferred+F.place_formatted)},ek=({onSelect:p,onValueChange:v,coords:b,radius:C,onError:D})=>{const{t:F}=Hr(),[V,s]=Ri(""),[ee,re]=Ri(),ge=A2(V,500),[oe,Ee]=Ri(new AbortController),ye=qd(ge,C2,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:Ue,queryState:Te,error:Pe}=Nd(ye),qe=mi(0),[Re,at]=Ri("view"),Qe=mi(null),yt=mi(null),It=mi(null),Rt=mi(!1);Bi(()=>{var Qt,ai;Re==="edit"&&((Qt=Qe.current)==null||Qt.focus()),Re==="view"&&b&&Rt.current&&(Rt.current=!1,(ai=It.current)==null||ai.focus())},[Re,b]);const zt=(Qt,ai)=>{var Ii;qe.current++,Rt.current=((Ii=yt.current)==null?void 0:Ii.contains(document.activeElement))??!1,p(Qt),re(ai),s(""),at("view")};return me("div",{ref:yt,class:"relative flex-1",children:[Re==="view"&&b?me("button",{ref:It,"aria-label":`${F("geo_search_placeholder")}: ${ee??F("location_provided")}`,type:"button",class:Kd({size:"unsized",className:"flex h-10 w-full cursor-text items-stretch px-1 py-1"}),onClick:()=>{at("edit")},children:me("div",{class:Qu({size:"sm",variant:"accentStrong",interactive:!0,class:"truncate"}),children:ee??F("location_provided")})}):me(Vz,{ref:Qe,error:Pe,query:V,name:"location-search",onQueryChange:Qt=>{qe.current++,s(Qt),D(void 0)},onFocus:()=>{oe.abort(),Ee(new AbortController)},onBlur:()=>{const Qt=Qe.current;if(!(!Qt||document.activeElement===Qt)){if(at("view"),b)return s("");Qt.value.trim()&&D(F("geo_choose_location"))}},onItemSelect:Qt=>{if(Te!=="loaded")return;const ai=Ue.find(Ii=>Ii.mapbox_id===Qt);ai&&zt(ai.coordinates,ai.name_preferred)},onEnter:async Qt=>{const ai=V.trim();if(!ai)return;const Ii=++qe.current;try{const Ut=ge===V&&Te==="loaded"?Ue:await C2(ai);if(Ii!==qe.current)return;const li=Ut.find(Xt=>Xt.mapbox_id===Qt)??Ut[0];if(li)return zt(li.coordinates,li.name_preferred);D(F("geo_no_match"))}catch{if(Ii!==qe.current)return;D(F("geo_suggestions_error"))}},inputPlaceholder:F("geo_search_placeholder"),inputProps:{enterkeyhint:"search"},items:(Ue==null?void 0:Ue.map(Qt=>({id:Qt.mapbox_id,label:me("div",{class:"flex min-w-0 max-w-full gap-2 overflow-hidden",children:[me("strong",{class:"truncate",children:Qt.name_preferred})," ",me("span",{class:"flex-1 truncate opacity-50",children:Qt.place_formatted})]})})))??[]}),me("div",{class:"absolute bottom-0 right-0 top-0 flex items-center",children:!V&&!b?me(Zz,{onLocate:Qt=>zt(Qt,F("geo_my_location")),onError:D,signal:oe.signal}):me("button",{type:"button","aria-label":F("geo_clear_search"),onClick:()=>{qe.current++,s(""),D(void 0),re(void 0),v({radius:C,type:"provided"}),at("edit"),Qe.current&&(Qe.current.value="",Qe.current.focus())},class:Ga({variant:"neutral",size:"lg",icon:"only"}),children:me(Ir,{name:"x"})})})]})},tk=[.25,.5,1,3,5,10,15,20,30,40],ik=[.5,1,3,5,10,15,25,50,100],nk=20,rk=25,ok=({value:p,onValueChange:v,distanceUnit:b="miles"})=>{const{t:C,locale:D}=Hr(),F=Rm(),[V,s]=Ri(),ee=qn(()=>g2(D,b),[D,b]),re=b==="miles"?Tv(nk):Sv(rk),ge=(p==null?void 0:p.type)==="provided"?p.radius:re,oe=(p==null?void 0:p.type)==="provided"?p.coords:void 0,Ee=b==="miles"?tk.map(ye=>({value:Tv(ye),label:ee.format(ye)})):ik.map(ye=>({value:Sv(ye),label:ee.format(ye)}));return me("div",{class:"flex flex-col gap-2",children:[me("div",{class:"flex flex-col gap-2 md:flex-row",children:[me(ek,{coords:oe,radius:ge,onValueChange:v,onSelect:ye=>{s(void 0),v({type:"provided",radius:ge,coords:ye})},onError:s}),me("div",{class:"relative",children:[me("label",{class:"sr-only",for:F,children:C("geo_range_label")}),me("select",{id:F,name:"radius",class:Kd({size:"unsized",className:"w-full appearance-none truncate py-2 pl-3 pr-10"}),disabled:!oe,value:oe?ge:"",onChange:ye=>{s(void 0),v({type:"provided",coords:oe,radius:Number(ye.currentTarget.value)})},children:[oe?null:me("option",{value:"",children:C("geo_any_distance")}),Ee.map(ye=>me("option",{value:ye.value,class:"truncate",children:ye.label},ye.value))]}),me("div",{class:"text-copy-neutral-lowcontrast pointer-events-none absolute bottom-0 right-0 top-0 flex w-10 items-center justify-center",children:me(Ir,{name:"chevron-right",class:"h-6 w-6 rotate-90"})})]})]}),V?me("div",{role:"alert",class:"text-pretty text-copy-neutral font-style-tag font-weight-tag text-style-tag flex gap-1",children:[me(Ir,{name:"warning",class:"animate-appear-tag size-[1lh] flex-none"}),V]}):null]})},sk=2,ak=({value:p,onValueChange:v})=>{const[b,C]=Ri(p??""),D=b!==""&&b===p,{t:F}=Hr();return Bi(()=>{C(p??"")},[p]),Bi(()=>{let V=b.trim();if(V.length<=sk&&(V=null),V===null){v("");return}const s=setTimeout(()=>{v(V)},300);return()=>clearTimeout(s)},[b,v]),me("div",{class:"flex flex-col gap-3",children:me("div",{class:"relative",children:[me("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[me(Ir,{"aria-hidden":!0,title:"Search by keyword",name:"magnifierSimple",class:Ou({"text-copy-neutral-icon":!D,"text-copy-accent-icon":D})}),me("span",{class:"sr-only",children:"Keyword"})]}),me("input",{autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"search",class:Kd({hasValue:D,size:"unsized",class:"peer py-2 pl-10 pr-4"}),placeholder:F("type_to_search_jobs"),value:b,onChange:V=>{C(V.currentTarget.value)}}),me("button",{type:"button",class:Ga({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{C("")},children:me(Ir,{name:"x"})})]})})},lk=({intervalMs:p,strings:v,class:b})=>{const[C,D]=Ri(0),[F,V]=Ri(!0),s=[...v,v[0]];return Bi(()=>{C===s.length&&(V(!1),D(0));const ee=setTimeout(()=>{V(!0),D(re=>re+1)},p);return()=>clearTimeout(ee)},[C,s.length,p]),me("div",{className:Ou("relative h-full w-full overflow-hidden",b),children:me("div",{className:Ou("absolute w-full",{"transition-transform duration-500 ease-in-out":F}),style:{height:`${100*s.length}%`,transform:`translateY(-${C*(100/s.length)}%)`},children:s.map((ee,re)=>me("div",{className:"flex items-center whitespace-nowrap",style:{height:`${100/s.length}%`},children:ee},re))})})},ck=(p,v)=>{Bi(()=>{const b=C=>{document.activeElement===p.current&&v(C)};return document.addEventListener("selectionchange",b),()=>document.removeEventListener("selectionchange",b)},[p,v])},P2=3,uk=({value:p,onValueChange:v,options:b})=>{const[C,D]=Ri(p??""),F=C.trim(),V=F!==""&&F===p,{t:s}=Hr(),ee=F.split("");Bi(()=>{D(p??"")},[p]);const[re,ge]=Ri(0),oe=mi(null);return ck(oe,Ee=>{Ee.target instanceof HTMLInputElement&&ge(Ee.target.scrollLeft)}),Bi(()=>{let Ee=C.trim();if(Ee.length<=P2&&(Ee=null),Ee===null){v("");return}const ye=setTimeout(()=>{v(Ee.trim())},1e3);return()=>clearTimeout(ye)},[C,v]),me("div",{class:"mb-2 flex flex-col gap-2",children:[me("div",{class:"relative",children:[me("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[me(Ir,{"aria-hidden":!0,title:"Search by keyword",name:"ai",class:Ou("duration-snappy transition-transform",{"text-copy-neutral-icon scale-90":!V,"text-copy-accent-icon":V})}),me("span",{class:"sr-only",children:"Keyword"})]}),me("input",{ref:oe,autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"text",placeholder:b!=null&&b.suggestions?b.suggestions.join(", "):" ",class:Kd({hasValue:V,size:"unsized",class:"peer px-10 py-2 tracking-tight !text-transparent placeholder:!text-transparent"}),style:{fontKerning:"none"},value:C,onChange:Ee=>{const ye=Ee.currentTarget.value.trim();D(ye)},onKeyDown:Ee=>{if(Ee.key==="Enter"){if(Ee.currentTarget.value.trim().length<=P2)return;Ee.preventDefault(),v(C)}}}),me("div",{"data-synced":V,class:"font-weight-input text-copy-neutral group pointer-events-none absolute inset-x-10 inset-y-0 flex overflow-hidden tracking-tight peer-placeholder-shown:right-0",children:F.length>0?me("div",{"aria-hidden":!0,class:"flex items-center whitespace-nowrap",style:{transform:`translateX(${-re}px)`},children:ee.map((Ee,ye)=>me("span",{style:{animationDelay:`${ye*300/ee.length}ms`},class:"group-data-[synced=true]:animate-ai-letter inline-block",children:Ee===" "?" ":Ee},F+ye))}):b!=null&&b.suggestions?me(lk,{intervalMs:2e3,strings:b.suggestions,class:"opacity-30","aria-hidden":!0}):null}),me("button",{type:"button",class:Ga({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{D(""),v("")},children:me(Ir,{name:"x"})})]}),me("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:s("ai_disclaimer")})]})},u_=cs({base:"fr flex min-h-8 min-w-0 items-center justify-center cursor-pointer text-style-tag rounded-interactive active:scale-95 transition-all duration-snappy pl-2 pr-2.5 py-1.5 gap-1",variants:{active:{true:"bg-lowest text-neutral-12 shadow-sm animate-appear-tag",false:"text-neutral-10 hover:text-neutral-12"}},defaultVariants:{active:!1}}),M2="bg-neutral-3 rounded-interactive ring-neutral-3 mr-[3px] inline-flex min-w-0 max-w-full ring-[3px]",hk=({value:p,onValueChange:v})=>{const{t:b}=Hr();return me("div",{class:M2,children:[me("button",{type:"button","aria-pressed":p==="list",class:u_({active:p==="list"}),onClick:()=>v("list"),children:[me(Ir,{name:"list",class:"size-5 shrink-0"}),me("span",{children:b("list")})]}),me("button",{type:"button","aria-pressed":p==="map",class:u_({active:p==="map"}),onClick:()=>v("map"),children:[me(Ir,{name:"map",class:"size-5 shrink-0"}),me("span",{children:b("map")})]})]})},dk=({state:p,onValueChange:v})=>{var D;const{t:b}=Hr(),C=p.query.trim()?"sort_most_relevant":((D=p.geo)==null?void 0:D.type)==="provided"&&p.geo.coords?"sort_closest":void 0;return C?me("div",{role:"group","aria-label":b("sort_by"),class:M2,children:[me("button",{type:"button","aria-pressed":!p.resultOrder,class:u_({active:!p.resultOrder}),onClick:()=>v(void 0),children:b(C)}),me("button",{type:"button","aria-pressed":p.resultOrder==="newest",class:u_({active:p.resultOrder==="newest"}),onClick:()=>v("newest"),children:b("sort_newest")})]}):null};var pk=Array.isArray,Iv=pk,fk=Iv,mk=c_,_k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gk=/^\w*$/;function yk(p,v){if(fk(p))return!1;var b=typeof p;return b=="number"||b=="symbol"||b=="boolean"||p==null||mk(p)?!0:gk.test(p)||!_k.test(p)||v!=null&&p in Object(v)}var vk=yk,xk=w2,bk=a_,wk="[object AsyncFunction]",Tk="[object Function]",Sk="[object GeneratorFunction]",Ek="[object Proxy]";function Ak(p){if(!bk(p))return!1;var v=xk(p);return v==Tk||v==Sk||v==wk||v==Ek}var Ik=Ak,Ck=l_,Pk=Ck["__core-js_shared__"],Mk=Pk,Cv=Mk,R2=function(){var p=/[^.]+$/.exec(Cv&&Cv.keys&&Cv.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}();function Rk(p){return!!R2&&R2 in p}var Dk=Rk,Lk=Function.prototype,zk=Lk.toString;function kk(p){if(p!=null){try{return zk.call(p)}catch{}try{return p+""}catch{}}return""}var Ok=kk,Fk=Ik,Bk=Dk,Nk=a_,jk=Ok,Vk=/[\\^$.*+?()[\]{}|]/g,Uk=/^\[object .+?Constructor\]$/,$k=Function.prototype,Gk=Object.prototype,Hk=$k.toString,qk=Gk.hasOwnProperty,Wk=RegExp("^"+Hk.call(qk).replace(Vk,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Zk(p){if(!Nk(p)||Bk(p))return!1;var v=Fk(p)?Wk:Uk;return v.test(jk(p))}var Xk=Zk;function Yk(p,v){return p==null?void 0:p[v]}var Kk=Yk,Jk=Xk,Qk=Kk;function eO(p,v){var b=Qk(p,v);return Jk(b)?b:void 0}var D2=eO,tO=D2,iO=tO(Object,"create"),h_=iO,L2=h_;function nO(){this.__data__=L2?L2(null):{},this.size=0}var rO=nO;function oO(p){var v=this.has(p)&&delete this.__data__[p];return this.size-=v?1:0,v}var sO=oO,aO=h_,lO="__lodash_hash_undefined__",cO=Object.prototype,uO=cO.hasOwnProperty;function hO(p){var v=this.__data__;if(aO){var b=v[p];return b===lO?void 0:b}return uO.call(v,p)?v[p]:void 0}var dO=hO,pO=h_,fO=Object.prototype,mO=fO.hasOwnProperty;function _O(p){var v=this.__data__;return pO?v[p]!==void 0:mO.call(v,p)}var gO=_O,yO=h_,vO="__lodash_hash_undefined__";function xO(p,v){var b=this.__data__;return this.size+=this.has(p)?0:1,b[p]=yO&&v===void 0?vO:v,this}var bO=xO,wO=rO,TO=sO,SO=dO,EO=gO,AO=bO;function eh(p){var v=-1,b=p==null?0:p.length;for(this.clear();++v<b;){var C=p[v];this.set(C[0],C[1])}}eh.prototype.clear=wO,eh.prototype.delete=TO,eh.prototype.get=SO,eh.prototype.has=EO,eh.prototype.set=AO;var IO=eh;function CO(){this.__data__=[],this.size=0}var PO=CO;function MO(p,v){return p===v||p!==p&&v!==v}var RO=MO,DO=RO;function LO(p,v){for(var b=p.length;b--;)if(DO(p[b][0],v))return b;return-1}var d_=LO,zO=d_,kO=Array.prototype,OO=kO.splice;function FO(p){var v=this.__data__,b=zO(v,p);if(b<0)return!1;var C=v.length-1;return b==C?v.pop():OO.call(v,b,1),--this.size,!0}var BO=FO,NO=d_;function jO(p){var v=this.__data__,b=NO(v,p);return b<0?void 0:v[b][1]}var VO=jO,UO=d_;function $O(p){return UO(this.__data__,p)>-1}var GO=$O,HO=d_;function qO(p,v){var b=this.__data__,C=HO(b,p);return C<0?(++this.size,b.push([p,v])):b[C][1]=v,this}var WO=qO,ZO=PO,XO=BO,YO=VO,KO=GO,JO=WO;function th(p){var v=-1,b=p==null?0:p.length;for(this.clear();++v<b;){var C=p[v];this.set(C[0],C[1])}}th.prototype.clear=ZO,th.prototype.delete=XO,th.prototype.get=YO,th.prototype.has=KO,th.prototype.set=JO;var QO=th,e3=D2,t3=l_,i3=e3(t3,"Map"),n3=i3,z2=IO,r3=QO,o3=n3;function s3(){this.size=0,this.__data__={hash:new z2,map:new(o3||r3),string:new z2}}var a3=s3;function l3(p){var v=typeof p;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?p!=="__proto__":p===null}var c3=l3,u3=c3;function h3(p,v){var b=p.__data__;return u3(v)?b[typeof v=="string"?"string":"hash"]:b.map}var p_=h3,d3=p_;function p3(p){var v=d3(this,p).delete(p);return this.size-=v?1:0,v}var f3=p3,m3=p_;function _3(p){return m3(this,p).get(p)}var g3=_3,y3=p_;function v3(p){return y3(this,p).has(p)}var x3=v3,b3=p_;function w3(p,v){var b=b3(this,p),C=b.size;return b.set(p,v),this.size+=b.size==C?0:1,this}var T3=w3,S3=a3,E3=f3,A3=g3,I3=x3,C3=T3;function ih(p){var v=-1,b=p==null?0:p.length;for(this.clear();++v<b;){var C=p[v];this.set(C[0],C[1])}}ih.prototype.clear=S3,ih.prototype.delete=E3,ih.prototype.get=A3,ih.prototype.has=I3,ih.prototype.set=C3;var P3=ih,k2=P3,M3="Expected a function";function Pv(p,v){if(typeof p!="function"||v!=null&&typeof v!="function")throw new TypeError(M3);var b=function(){var C=arguments,D=v?v.apply(this,C):C[0],F=b.cache;if(F.has(D))return F.get(D);var V=p.apply(this,C);return b.cache=F.set(D,V)||F,V};return b.cache=new(Pv.Cache||k2),b}Pv.Cache=k2;var R3=Pv,D3=R3,L3=500;function z3(p){var v=D3(p,function(C){return b.size===L3&&b.clear(),C}),b=v.cache;return v}var k3=z3,O3=k3,F3=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B3=/\\(\\)?/g,N3=O3(function(p){var v=[];return p.charCodeAt(0)===46&&v.push(""),p.replace(F3,function(b,C,D,F){v.push(D?F.replace(B3,"$1"):C||b)}),v}),j3=N3;function V3(p,v){for(var b=-1,C=p==null?0:p.length,D=Array(C);++b<C;)D[b]=v(p[b],b,p);return D}var U3=V3,O2=Ev,$3=U3,G3=Iv,H3=c_,q3=1/0,F2=O2?O2.prototype:void 0,B2=F2?F2.toString:void 0;function N2(p){if(typeof p=="string")return p;if(G3(p))return $3(p,N2)+"";if(H3(p))return B2?B2.call(p):"";var v=p+"";return v=="0"&&1/p==-q3?"-0":v}var W3=N2,Z3=W3;function X3(p){return p==null?"":Z3(p)}var Y3=X3,K3=Iv,J3=vk,Q3=j3,eF=Y3;function tF(p,v){return K3(p)?p:J3(p,v)?[p]:Q3(eF(p))}var iF=tF,nF=c_,rF=1/0;function oF(p){if(typeof p=="string"||nF(p))return p;var v=p+"";return v=="0"&&1/p==-rF?"-0":v}var sF=oF,aF=iF,lF=sF;function cF(p,v){v=aF(v,p);for(var b=0,C=v.length;p!=null&&b<C;)p=p[lF(v[b++])];return b&&b==C?p:void 0}var uF=cF,hF=uF;function dF(p,v,b){var C=p==null?void 0:hF(p,v);return C===void 0?b:C}var pF=dF;const fF=A0(pF),Qd=({chars:p})=>me("span",{style:{width:p+"ch"},class:"rounded-job-tag block h-[1lh] min-h-[1em] bg-[currentColor] opacity-25"}),j2=cs({base:"ijs-job relative rounded-job-card bg-job-card-bg ring-width-job-card ring-job-card-stroke flex gap-4 fr ease-expo-out min-w-0 p-4 transition-all duration-medium",variants:{interactive:{true:"active:bg-job-card-bg-active active:ring-job-card-stroke-active hover:bg-job-card-bg-active hover:ring-job-card-stroke-active active:scale-[0.975]",false:"animate-skeleton"}},defaultVariants:{interactive:!0}}),mF=cs({base:"font-style-job-heading font-weight-job-heading text-copy-neutral font-family-job-heading text-pretty",variants:{size:{sm:"text-style-filter",default:"text-style-job-heading"}},defaultVariants:{size:"default"}}),Mv=({job:p,property:v})=>{if(!v)return null;const b=fF(p.raw,v.key);return v.transform?v.transform(b):b},_F=({job:p,config:v="hidden"})=>v==="hidden"?null:me("div",{class:"rounded-logo h-12 flex-none overflow-hidden",style:{aspectRatio:v.replace(":","/")},children:p.company.logo?me("img",{src:p.company.logo,alt:p.company.name,class:"h-full w-full select-none object-contain [-webkit-user-drag:none]"}):null}),V2=p=>Array.isArray(p)?p:[p],gF=1e3*60*60*24,U2=({job:p,config:v,onJobClick:b,size:C,distanceUnit:D})=>{var Pe,qe,Re;const{t:F,locale:V}=Hr(),s=p.distanceMeters===null?null:F("distance_away",{distance:UL(p.distanceMeters,D??"miles",V)}),ee=v.subheading?Mv({job:p,property:v.subheading}):null,re=v.infoTags.flatMap(at=>V2(Mv({job:p,property:at}))).filter(Boolean),ge=V2((Pe=v.overrides)!=null&&Pe.salary?Mv({job:p,property:v.overrides.salary}):p.pay).filter(Boolean),oe=v.postedDate??"show",Ee=(qe=v.overrides)!=null&&qe.baseUrl?v.overrides.baseUrl(p.id.toString()):p.href,ye=v.newUnderDays??7,Ue=p.createdAt?new Date(p.createdAt).getTime()>Date.now()-ye*gF:!1,Te=at=>{var Qe,yt;b==null||b(p),(yt=(Qe=v.overrides)==null?void 0:Qe.onClick)==null||yt.call(Qe,at)};return me("a",{onMouseEnter:(Re=v.overrides)==null?void 0:Re.onMouseEnter,onClick:Te,href:Ee,target:v.openJob==="redirect-new-tab"?"_blank":void 0,class:j2(),children:[me("div",{class:"flex min-w-0 flex-1 flex-col gap-4",children:[me("div",{class:"gap-logo flex items-center",children:[me(_F,{job:p,config:C!=="sm"?v.logo:void 0}),me("div",{class:"flex flex-col items-start gap-1",children:[me("div",{class:"order-2 flex flex-col gap-1",children:[p.match?me("p",{class:"text-style-job-card text-tag-accent-strong-bg flex items-center ",children:[me(Ir,{name:"ai",class:"size-4 inline-block"}),me("span",{children:p.match})]}):null,me("p",{class:mF({size:C}),children:[p.title.trim(),Ue&&oe!=="hide"&&me(Hi,{children:[" ",me("span",{"aria-hidden":!0,class:"ring-px ring-tag-accent-strong-bg rounded-job-card text-tag-accent-strong-bg font-weight-tag not-sr-only order-1 inline-block px-2 py-1 align-middle text-[10px] leading-none",children:F("new")})]})]}),ee?me("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:ee}):null]}),oe==="show"?me("p",{class:"text-style-job-card-info text-copy-job-info order-1",children:[F("posted")," ",p.relativePostedDate]}):null]})]}),me("div",{class:"flex min-w-0 flex-col items-start gap-2",children:[s?me("p",{class:"text-style-job-card-info text-copy-job-info flex items-center gap-1",children:[me(Ir,{name:"target-location",class:"size-4 flex-none","aria-hidden":!0}),s]}):null,me("div",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:ge.map((at,Qe)=>me("span",{class:Qu({variant:"monetaryWeak",size:"xs"}),children:at},Qe))}),re.length>0&&me("ul",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:re.map(at=>me("li",{class:Qu({size:"xs",class:"max-w-full truncate"}),children:at},at))})]})]}),C==="sm"?me("div",{"aria-hidden":!0,class:"absolute right-1 top-1/2 -translate-y-1/2 transform",children:me(Ir,{name:"chevron-right",class:"size-5 text-copy-neutral-icon"})}):me("div",{"aria-hidden":!0,class:"flex items-center",children:me(Ir,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},Rv=({config:p,animationDelay:v,seed:b})=>{const C=p.logo??"hidden",D=p.postedDate??"show";return me("div",{"aria-hidden":!0,style:{animationDelay:v+"s"},class:j2({interactive:!1}),children:[me("div",{class:"flex flex-1 flex-col gap-4",children:[me("div",{class:"flex items-center gap-4",children:[C==="hidden"?null:me("div",{class:"rounded-logo bg-copy-neutral h-12 opacity-25",style:{aspectRatio:C.replace(":","/")}}),me("div",{class:"flex flex-col items-start gap-1",children:[D==="show"?me("p",{class:"text-style-job-card-info text-copy-job-info",children:me(Qd,{chars:12})}):null,me("div",{class:"flex flex-col gap-1",children:[me("p",{class:"text-style-job-heading font-style-job-heading font-weight-job-heading text-copy-neutral font-family-job-heading",children:me(Qd,{chars:13+(b+5)*b%7})}),p.subheading!==null?me("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:me(Qd,{chars:7+b*b%3})}):null]})]})]}),me("div",{class:"flex flex-col items-start gap-2",children:[b%2===0&&me("span",{class:Qu({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[10ch]"})}),me("div",{class:"flex items-center gap-2",children:[me("span",{class:Qu({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[6ch]"})}),me("span",{class:Qu({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[8ch]"})})]})]})]}),me("div",{"aria-hidden":!0,class:"flex items-center",children:me(Ir,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},yF=({state:p,fetchNextPage:v,config:b,remainingItems:C})=>{const{t:D}=Hr(),F=Math.min(Mc,C);return p==="revalidating"?me("ul",{class:"flex flex-col gap-3","aria-hidden":!0,children:Array.from({length:Mc}).map((V,s)=>me("li",{children:me(Rv,{seed:s,animationDelay:(s-4)*.1,config:b})},s))}):me("button",{type:"button",class:Ga({variant:"neutral",class:"w-full max-w-[45rem] self-center py-2"}),onClick:v,children:[D("load_more_count",{count:F})," ",D("of_remaining_count",{count:C})]})},vF=({state:p,rpcClient:v,jobCardConfig:b,initialData:C,onResultsUpdate:D,onJobClick:F,onPaginate:V,mode:s,afterResults:ee,prioritySegment:re,i18n:ge,distanceUnit:oe})=>me(Hi,{children:Array.from({length:p.page}).map((Ee,ye)=>{const Ue=ye===p.page-1;return me(Vd,{Fallback:wl,children:me(xF,{state:p,rpcClient:v,page:ye+1,isFirst:ye===0,isLast:Ue,fetchNextPage:()=>{V(p.page+1)},jobCardConfig:b,initialData:C,onResultsUpdate:D,onJobClick:F,mode:s,afterResults:ee,prioritySegment:re,i18n:ge,distanceUnit:oe},ye)},ye)})}),$2=({page:p})=>{const{t:v}=Hr();return me("div",{"aria-hidden":!0,class:"text-copy-neutral-lowcontrast mx-auto flex w-full max-w-[45rem] gap-2 py-4",onClick:b=>{b.preventDefault()},children:[me("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"}),me("span",{class:"text-style-tag justify-center text-center",children:[v("page")," ",p]}),me("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"})]})},xF=({state:p,rpcClient:v,page:b,isFirst:C,isLast:D,fetchNextPage:F,jobCardConfig:V,initialData:s,onResultsUpdate:ee,onJobClick:re,afterResults:ge,prioritySegment:oe,i18n:Ee,distanceUnit:ye})=>{const{t:Ue}=Hr(),Te=b===1?s:void 0,{data:Pe,error:qe,queryState:Re,swr:at}=Nd(qd(jm({state:p,baseKey:b.toString()}),()=>kb({rpcClient:v,state:p,page:b,t:Ue,prioritySegment:oe,locale:Ee?Ee.locale:void 0,fallbackLocale:Ee?Ee.fallbackLocale:void 0}),{...Pm,fallbackData:Te}));switch(Bi(()=>{Pe&&C&&ee&&ee({totalCount:Pe.pagination.total})},[Pe,C,ee]),Re){case"idle":return null;case"loading":return me(Hi,{children:[C?me("div",{class:"flex w-full max-w-[45rem] items-center justify-between gap-3 self-center",children:[me("p",{class:"animate-skeleton text-copy-neutral-lowcontrast text-style-tag m-0 min-w-0 max-w-[25%] flex-none p-0 text-left [overflow-wrap:anywhere]",children:me(Qd,{chars:8})}),me("div",{class:"flex min-w-0 flex-1 justify-end",children:ge})]}):me($2,{page:b}),me("ul",{class:"flex w-full max-w-[45rem] flex-col gap-3 self-center","aria-hidden":!0,children:Array.from({length:Mc}).map((Qe,yt)=>me("li",{children:me(Rv,{seed:yt,animationDelay:(yt-Mc)*.1,config:V})},yt))})]});case"error":return me(wl,{error:new Error(Ue("jobs_loading_error"),{cause:qe}),resetError:()=>at.mutate()});case"revalidating":case"loaded":{if(Zs(Pe.pagination.current_page===b,"Received wrong page from server"),Pe.pagination.total===0)return me("div",{class:"mx-auto flex flex-col items-center gap-2 px-2 py-4 text-center",children:[me(Ir,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),me("div",{class:"flex flex-col items-center gap-1",children:[me("p",{class:"text-copy-neutral text-style-job-heading",children:Ue("no_jobs_found")}),me("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:Ue("no_jobs_found_description")})]})]});const Qe=Pe.pagination.last_page!==Pe.pagination.current_page,yt=b*Mc,It=Math.max(Pe.pagination.total-yt,0),Rt=zt=>{re(zt,b)};return me(Hi,{children:[C?me("div",{class:"flex w-full max-w-[45rem] items-center justify-between gap-3 self-center",children:[me("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 min-w-0 max-w-[25%] flex-none p-0 text-left [overflow-wrap:anywhere]",children:Ue("jobs_found",{count:Pe.pagination.total})}),me("div",{class:"flex min-w-0 flex-1 justify-end",children:ge})]}):me($2,{page:b}),me("ul",{"aria-label":`Page ${b}`,class:"flex w-full max-w-[45rem] flex-col gap-3 self-center",children:Pe.results.map(zt=>me("li",{class:"ease-expo-out duration-slow transition-opacity",style:{opacity:Re==="revalidating"?.33:1},children:me(U2,{job:zt,onJobClick:Rt,config:V,distanceUnit:ye})},zt.id))}),Qe&&D&&me(yF,{state:Re,fetchNextPage:F,config:V,remainingItems:It})]})}default:os(Re)}},bF=S0(()=>Promise.resolve().then(()=>MF).then(p=>p.Map)),wF=({state:p,rpcClient:v,mapConfig:b,onGeoChange:C,afterResults:D,onJobClick:F,jobCardConfig:V,prioritySegment:s,i18n:ee,distanceUnit:re})=>{var qe,Re;const{t:ge}=Hr(),[oe,Ee]=Ri(new AbortController),ye=Gw("(max-width: 767px)"),Ue=xn(at=>{C(at),oe.abort(),Ee(new AbortController)},[C,oe]),Te=Nd(qd(jm({state:p,baseKey:"map",mode:p.mode}),()=>gP({rpcClient:v,state:p,t:ge,signal:oe.signal,prioritySegment:s,locale:ee?ee.locale:void 0,fallbackLocale:ee?ee.fallbackLocale:void 0}),Pm));if(Te.queryState==="error")return me(wl,{error:new Error(ge("jobs_loading_error"),{cause:Te.error}),resetError:()=>Te.swr.mutate()});const Pe=Te.queryState==="loaded"||Te.queryState==="revalidating";return me(Hi,{children:[me("div",{class:"flex items-center justify-between gap-3",children:[me("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 min-w-0 max-w-[25%] flex-none p-0 text-left [overflow-wrap:anywhere]",children:Pe?Te.data.results.length!==0&&ge("map_jobs_showing",{count:Te.data.results.length}):me("div",{class:"animate-skeleton",children:me(Qd,{chars:8})})}),me("div",{class:"flex min-w-0 flex-1 justify-end",children:D})]}),me("div",{class:"theme-fill:bg-neutral-2 theme-stroke:bg-lowest ring-px theme-fill:ring-neutral-3 theme-stroke:ring-neutral-3 theme-soft:rounded-lg theme-rounded:rounded-xl relative flex h-auto flex-col items-stretch overflow-hidden md:h-[70svh] md:flex-row",children:[me("div",{class:"aspect-square flex-1 md:order-2 md:aspect-auto md:min-w-80",children:Pe?me(Bu,{fallback:me("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"}),children:me(bF,{config:b,mapData:Te,autoFit:((qe=p.geo)==null?void 0:qe.type)!=="bounds",onBoundsChange:Ue})}):me("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"})}),me("ul",{class:"flex h-full w-full snap-x snap-proximity scroll-px-4 gap-3 overflow-auto p-4 md:order-1 md:max-w-xl md:flex-col",children:[((Re=Te.data)==null?void 0:Re.results.length)===0?me("div",{class:"mx-auto flex h-full w-full flex-col items-center justify-center gap-2 text-center",children:[me(Ir,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),me("div",{class:"flex flex-col items-center gap-1",children:[me("p",{class:"text-copy-neutral text-style-job-heading",children:ge("no_jobs_found")}),me("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:ge("no_jobs_found_description")})]})]}):null,Pe?Te.data.results.map(at=>me("li",{class:"ease-expo-out duration-slow min-w-[calc(100%-1rem)] snap-start transition-opacity",style:{opacity:Te.queryState==="revalidating"?.33:1},children:me(U2,{job:at,onJobClick:Qe=>F(Qe,1),config:V,size:ye?"sm":void 0,distanceUnit:re})},at.id)):Array.from({length:6}).map((at,Qe)=>me("li",{children:me(Rv,{seed:Qe,animationDelay:(Qe-6)*.1,config:V})},Qe))]})]})]})},TF=p=>{var C;const v=p.state.view,b=me("div",{class:"flex min-w-0 max-w-full flex-wrap items-center justify-end gap-3",children:[(C=p.mapConfig)!=null&&C.enabled?me(hk,{value:v,onValueChange:p.onViewChange}):null,me(dk,{state:p.state,onValueChange:p.onResultOrderChange})]});return v==="list"?me(vF,{afterResults:b,...p}):me(wF,{...p,afterResults:b})},Dv=(p,v="value")=>p.reduce((b,C)=>{switch(C.select){case"one":{const D=C.value??C[v],F=typeof D=="string"?D:D==null?void 0:D[0];b[C.key]={select:C.select,value:F};break}case"many":{const D=C.value??C[v],F=typeof D=="string"?[D]:Array.isArray(D)?D:[];b[C.key]={select:C.select,value:F};break}default:os(C.select)}return b},{}),ep=p=>Object.fromEntries(Object.entries(p).map(([v,b])=>{const C=b==null?void 0:b.value;return[v,Array.isArray(C)?C:C?[C]:[]]}).filter(([,v])=>v!==void 0&&v.length>0)),G2=p=>(p==null?void 0:p.type)==="bounds"?void 0:p,SF=({rpcClient:p,properties:v,analytics:b,initialData:C,onStateChange:D,params:F})=>{var zt,Nt,Qt,ai,Ii,Ut,li;const{t:V}=Hr(),s=mi(null),ee=qn(()=>Dv(v,"defaultValue"),[v]),[re,ge]=Ri(!0),[oe,Ee]=Ri(()=>typeof F.initialState=="function"?F.initialState(F):F.initialState),[ye,Ue]=Ri(0),{onJobClick:Te,analyticsPaginate:Pe}=EF({appRef:s,analytics:b,state:oe,hasInteracted:!re,totalCount:ye,defaultFilters:ee}),qe=xn(Xt=>{Ee(Dt=>{if(Dt.page===Xt)return Dt;const Tt={...Dt,page:Xt};return D==null||D(Tt),Tt}),Pe(Xt)},[Pe,D]),Re=xn(Xt=>{Ee(Dt=>{const Tt={...Dt,view:Xt};return D==null||D(Tt),Tt})},[D]),at=xn(Xt=>{Ee(Dt=>{var ji;if(!Dt.query&&!Xt||Dt.query===Xt)return Dt;ge(!1);const Tt=G2(Dt.geo),Wt={...Dt,query:Xt,geo:Tt,page:1,mode:(ji=F.naturalLanguageSearch)!=null&&ji.enabled?"vector":"query"};return D==null||D(Wt),Wt})},[D,(zt=F.naturalLanguageSearch)==null?void 0:zt.enabled]),Qe=xn(Xt=>{ge(!1),Ee(Dt=>{const Tt={...Dt,geo:Xt,page:1};return D==null||D(Tt),Tt})},[D]),yt=xn(()=>{ge(!1),Ee(Xt=>{const Dt={...Xt,filters:Dv(v,"defaultValue"),query:"",geo:void 0,page:1,resultOrder:void 0};return D==null||D(Dt),Dt})},[D,v]),It=xn(Xt=>{Ee(Dt=>{if(Dt.resultOrder===Xt)return Dt;ge(!1);const Tt={...Dt,resultOrder:Xt,page:1};return D==null||D(Tt),Tt})},[D]),Rt=qn(()=>(p.environment,new Map),[p.environment]);return me(xM,{value:{provider:()=>Rt},children:me("div",{ref:s,class:Ou("ijs-app font-family-default font-weight-default font-style-default flex min-h-screen flex-col gap-4",{"reduce-motion":(Nt=F.theme.accessibility)==null?void 0:Nt.reducedMotion},K0(F.theme)),children:[me(Vd,{Fallback:wl,children:me("div",{class:"flex flex-col gap-2",children:[me("div",{class:"px-4",children:me("div",{class:"bg-section-strong-bg ring-section-weak-stroke rounded-section ring-px lg:ring-width-section flex flex-col gap-4 p-4 md:flex-row",children:[me("section",{class:"flex flex-1 flex-col gap-1",children:[me("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:V("search_label")}),(Qt=F.naturalLanguageSearch)!=null&&Qt.enabled?me(uk,{value:oe.query,onValueChange:at,options:F.naturalLanguageSearch}):F.enableKeywordSearch?me(ak,{value:oe.query,onValueChange:at}):null]}),(ai=F.geolocation)!=null&&ai.enabled?me("section",{class:"flex flex-1 flex-col gap-1",children:[me("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:V("geo_label")}),me(ok,{value:oe.geo,distanceUnit:F.geolocation.distanceUnit,onValueChange:Xt=>{ge(!1),Ee(Dt=>{const Tt={...Dt,geo:Xt,page:1};return D==null||D(Tt),Tt}),Pe(1)}})]}):null]})}),me(jL,{state:oe,onFilterValueChange:(Xt,Dt)=>{ge(!1),Ee(Tt=>{const Wt={...Tt.filters,[Xt]:Dt},ji=G2(Tt.geo),En={...Tt,filters:Wt,geo:ji,page:1};return D==null||D(En),En}),Pe(1)},onResetFilters:yt,properties:v,rpcClient:p,alerts:F.alerts,theme:F.theme,widgetId:F.widgetId,i18n:F.i18n})]})}),me("section",{class:"flex flex-col gap-4 overflow-hidden px-4 py-4",children:[me(Vd,{Fallback:wl,children:me(TF,{state:oe,rpcClient:p,jobCardConfig:F.jobCard,mapConfig:F.map,initialData:re?C==null?void 0:C.jobs:void 0,onResultsUpdate:Xt=>{Ue(Xt.totalCount)},onJobClick:Te,onPaginate:qe,mode:(Ii=F.naturalLanguageSearch)!=null&&Ii.enabled?"vector":"query",onGeoChange:Qe,onViewChange:Re,onResultOrderChange:It,prioritySegment:(Ut=F.results)==null?void 0:Ut.prioritySegment,distanceUnit:(li=F.geolocation)==null?void 0:li.distanceUnit,i18n:F.i18n})}),F.feedback?me("div",{class:"flex flex-wrap items-center justify-center gap-2",children:[me("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:V("feedback")}),me("div",{"data-widget":"inploi-feedback","data-key":"job-search",children:me("div",{class:"rounded-job-card bg-neutral-2 h-8 w-[72px] animate-pulse"})})]}):null]})]})})},EF=({appRef:p,analytics:v,state:b,defaultFilters:C,totalCount:D,hasInteracted:F})=>{const V=xn((re=1)=>({query:b.query,mode:b.mode,filters:ep(b.filters),default_filters:ep(C),total_count:D,page_size:Mc,page:re}),[b.query,b.mode,b.filters,C,D]);return bM(p,{minViewTime:2e3,onView:()=>{v.log({event:"VIEW_SEARCH",properties:V()})}}),Bi(()=>{const re=window.setTimeout(()=>{F&&(!b.query&&!Object.keys(ep(b.filters)).length||D!==0&&v.log({event:"SEARCH_SETTLE",properties:V()}))},5e3);return()=>{clearTimeout(re)}},[v,F,V,D,b.query,b.filters]),{onJobClick:(re,ge)=>{v.log({event:"SEARCH_JOB_CLICK",properties:{job_id:re.id,...V(ge)}})},analyticsPaginate:re=>{v.log({event:"SEARCH_PAGINATE",properties:V(re)})}}},AF=`.inploi-job-search{font-size:16px}.inploi-job-search *,.inploi-job-search :before,.inploi-job-search :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.inploi-job-search ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.inploi-job-search{--tw-content: ""}.inploi-job-search *{box-sizing:border-box;border-style:solid;border-width:0;-webkit-tap-highlight-color:transparent;font-family:inherit;font-style:inherit;font-weight:inherit}.inploi-job-search :before,.inploi-job-search :after{box-sizing:border-box}.inploi-job-search :is(a){text-decoration:none}.inploi-job-search :is(ul,ol){list-style:none;padding:0;margin:0}.inploi-job-search :is(p){margin:0;padding:0}.inploi-job-search :is(li){margin:0;padding:0;list-style:none}.inploi-job-search :is(button),.inploi-job-search :is(a){display:block;margin:0;padding:0;border:unset;background:unset;text-align:unset}.inploi-job-search :is(input),.inploi-job-search :is(textarea){display:block;margin:0;padding:0;min-width:0;max-width:unset;width:100%}.inploi-job-search :is(svg){display:block}.inploi-job-search :is(button){touch-action:manipulation}.inploi-job-search input[type=search]::-webkit-search-decoration,.inploi-job-search input[type=search]::-webkit-search-cancel-button,.inploi-job-search input[type=search]::-webkit-search-results-button,.inploi-job-search input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}@media (prefers-reduced-motion){.inploi-job-search *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;animation-delay:0s!important}}.inploi-job-search .container{width:100%}@media (min-width: 640px){.inploi-job-search .container{max-width:640px}}@media (min-width: 768px){.inploi-job-search .container{max-width:768px}}@media (min-width: 1024px){.inploi-job-search .container{max-width:1024px}}@media (min-width: 1280px){.inploi-job-search .container{max-width:1280px}}@media (min-width: 1536px){.inploi-job-search .container{max-width:1536px}}.inploi-job-search .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.inploi-job-search .not-sr-only{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}.inploi-job-search .pointer-events-none{pointer-events:none}.inploi-job-search .visible{visibility:visible}.inploi-job-search .invisible{visibility:hidden}.inploi-job-search .collapse{visibility:collapse}.inploi-job-search .static{position:static}.inploi-job-search .fixed{position:fixed}.inploi-job-search .absolute{position:absolute}.inploi-job-search .relative{position:relative}.inploi-job-search .sticky{position:sticky}.inploi-job-search .inset-0{top:0;right:0;bottom:0;left:0}.inploi-job-search .inset-x-10{left:2.5rem;right:2.5rem}.inploi-job-search .inset-y-0{top:0;bottom:0}.inploi-job-search .-right-1{right:-.25rem}.inploi-job-search .-top-1{top:-.25rem}.inploi-job-search .bottom-0{bottom:0}.inploi-job-search .left-0{left:0}.inploi-job-search .left-12{left:3rem}.inploi-job-search .right-0{right:0}.inploi-job-search .right-1{right:.25rem}.inploi-job-search .right-12{right:3rem}.inploi-job-search .top-0{top:0}.inploi-job-search .top-1\\/2{top:50%}.inploi-job-search .top-12{top:3rem}.inploi-job-search .top-2{top:.5rem}.inploi-job-search .isolate{isolation:isolate}.inploi-job-search .z-50{z-index:50}.inploi-job-search .order-1{order:1}.inploi-job-search .order-2{order:2}.inploi-job-search .col-span-full{grid-column:1 / -1}.inploi-job-search .row-span-full{grid-row:1 / -1}.inploi-job-search .m-0{margin:0}.inploi-job-search .m-11{margin:2.75rem}.inploi-job-search .m-3{margin:.75rem}.inploi-job-search .m-4{margin:1rem}.inploi-job-search .mx-auto{margin-left:auto;margin-right:auto}.inploi-job-search .mb-2{margin-bottom:.5rem}.inploi-job-search .ml-auto{margin-left:auto}.inploi-job-search .mr-\\[3px\\]{margin-right:3px}.inploi-job-search .mt-0\\.5{margin-top:.125rem}.inploi-job-search .line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.inploi-job-search .block{display:block}.inploi-job-search .inline-block{display:inline-block}.inploi-job-search .inline{display:inline}.inploi-job-search .flex{display:flex}.inploi-job-search .inline-flex{display:inline-flex}.inploi-job-search .table{display:table}.inploi-job-search .table-row{display:table-row}.inploi-job-search .flow-root{display:flow-root}.inploi-job-search .grid{display:grid}.inploi-job-search .inline-grid{display:inline-grid}.inploi-job-search .contents{display:contents}.inploi-job-search .list-item{display:list-item}.inploi-job-search .\\!hidden{display:none!important}.inploi-job-search .hidden{display:none}.inploi-job-search .aspect-square{aspect-ratio:1 / 1}.inploi-job-search .size-4{width:1rem;height:1rem}.inploi-job-search .size-5{width:1.25rem;height:1.25rem}.inploi-job-search .size-\\[1lh\\]{width:1lh;height:1lh}.inploi-job-search .h-10{height:2.5rem}.inploi-job-search .h-12{height:3rem}.inploi-job-search .h-4{height:1rem}.inploi-job-search .h-6{height:1.5rem}.inploi-job-search .h-8{height:2rem}.inploi-job-search .h-\\[1lh\\]{height:1lh}.inploi-job-search .h-\\[36px\\]{height:36px}.inploi-job-search .h-\\[80svh\\]{height:80svh}.inploi-job-search .h-auto{height:auto}.inploi-job-search .h-full{height:100%}.inploi-job-search .max-h-\\[--radix-popover-content-available-height\\]{max-height:var(--radix-popover-content-available-height)}.inploi-job-search .min-h-0{min-height:0px}.inploi-job-search .min-h-6{min-height:1.5rem}.inploi-job-search .min-h-8{min-height:2rem}.inploi-job-search .min-h-\\[1em\\]{min-height:1em}.inploi-job-search .min-h-\\[36px\\]{min-height:36px}.inploi-job-search .min-h-screen{min-height:100vh}.inploi-job-search .w-10{width:2.5rem}.inploi-job-search .w-4{width:1rem}.inploi-job-search .w-6{width:1.5rem}.inploi-job-search .w-64{width:16rem}.inploi-job-search .w-\\[10ch\\]{width:10ch}.inploi-job-search .w-\\[3ch\\]{width:3ch}.inploi-job-search .w-\\[6ch\\]{width:6ch}.inploi-job-search .w-\\[72px\\]{width:72px}.inploi-job-search .w-\\[8ch\\]{width:8ch}.inploi-job-search .w-full{width:100%}.inploi-job-search .min-w-0{min-width:0px}.inploi-job-search .min-w-6{min-width:1.5rem}.inploi-job-search .min-w-64{min-width:16rem}.inploi-job-search .min-w-\\[calc\\(100\\%-1rem\\)\\]{min-width:calc(100% - 1rem)}.inploi-job-search .max-w-\\[25\\%\\]{max-width:25%}.inploi-job-search .max-w-\\[45rem\\]{max-width:45rem}.inploi-job-search .max-w-\\[var\\(--available-width\\)\\]{max-width:var(--available-width)}.inploi-job-search .max-w-full{max-width:100%}.inploi-job-search .max-w-xs{max-width:20rem}.inploi-job-search .flex-1{flex:1 1 0%}.inploi-job-search .flex-none{flex:none}.inploi-job-search .flex-shrink{flex-shrink:1}.inploi-job-search .flex-shrink-0{flex-shrink:0}.inploi-job-search .shrink{flex-shrink:1}.inploi-job-search .shrink-0{flex-shrink:0}.inploi-job-search .flex-grow,.inploi-job-search .grow{flex-grow:1}.inploi-job-search .border-collapse{border-collapse:collapse}.inploi-job-search .origin-\\[50\\%_1\\.75rem\\]{transform-origin:50% 1.75rem}.inploi-job-search .origin-\\[var\\(--transform-origin\\)\\]{transform-origin:var(--transform-origin)}.inploi-job-search .origin-top{transform-origin:top}.inploi-job-search .-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.inploi-job-search .translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.inploi-job-search .rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.inploi-job-search .scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.inploi-job-search .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes appear-tag{0%{transform:scale(.9)}to{transform:scale(1)}}.inploi-job-search .animate-appear-tag{animation:appear-tag .6s cubic-bezier(.16,1,.3,1) both}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.inploi-job-search .animate-fade-in{animation:fade-in .4s cubic-bezier(.16,1,.3,1) both}.inploi-job-search .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes selected-tag{0%{transform:scale(1.11)}to{transform:scale(1)}}.inploi-job-search .animate-selected-tag{animation:selected-tag .9s cubic-bezier(.16,1,.3,1)}@keyframes skeleton{0%{opacity:.2}50%{opacity:.6}to{opacity:.25}}.inploi-job-search .animate-skeleton{animation:skeleton 1.2s cubic-bezier(.4,0,.6,1) infinite}@keyframes slide-out-bottom{0%{transform:translateY(100%)}to{transform:translateY(0)}}.inploi-job-search .animate-slide-out-bottom{animation:slide-out-bottom .4s cubic-bezier(.16,1,.3,1) both}@keyframes slideDownFade{0%{opacity:0;transform:scale(.95) translateY(-16px)}to{opacity:1;transform:scale(1) translateY(0)}}.inploi-job-search .animate-slideDownFade{animation:slideDownFade .2s cubic-bezier(.34,1.56,.64,1)}.inploi-job-search .cursor-default{cursor:default}.inploi-job-search .cursor-pointer{cursor:pointer}.inploi-job-search .cursor-text{cursor:text}.inploi-job-search .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.inploi-job-search .resize{resize:both}.inploi-job-search .snap-x{scroll-snap-type:x var(--tw-scroll-snap-strictness)}.inploi-job-search .snap-proximity{--tw-scroll-snap-strictness: proximity}.inploi-job-search .snap-start{scroll-snap-align:start}.inploi-job-search .scroll-px-4{scroll-padding-left:1rem;scroll-padding-right:1rem}.inploi-job-search .appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.inploi-job-search .flex-col{flex-direction:column}.inploi-job-search .flex-wrap{flex-wrap:wrap}.inploi-job-search .items-start{align-items:flex-start}.inploi-job-search .items-center{align-items:center}.inploi-job-search .items-stretch{align-items:stretch}.inploi-job-search .justify-end{justify-content:flex-end}.inploi-job-search .justify-center{justify-content:center}.inploi-job-search .justify-between{justify-content:space-between}.inploi-job-search .gap-1{gap:.25rem}.inploi-job-search .gap-1\\.5{gap:.375rem}.inploi-job-search .gap-2{gap:.5rem}.inploi-job-search .gap-2\\.5{gap:.625rem}.inploi-job-search .gap-3{gap:.75rem}.inploi-job-search .gap-4{gap:1rem}.inploi-job-search .gap-logo{gap:var(--i-logo-gap)}.inploi-job-search .self-center{align-self:center}.inploi-job-search .overflow-auto{overflow:auto}.inploi-job-search .overflow-hidden{overflow:hidden}.inploi-job-search .overflow-y-auto{overflow-y:auto}.inploi-job-search .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inploi-job-search .whitespace-nowrap{white-space:nowrap}.inploi-job-search .text-balance{text-wrap:balance}.inploi-job-search .text-pretty{text-wrap:pretty}.inploi-job-search .break-words{overflow-wrap:break-word}.inploi-job-search .rounded-\\[999px\\]{border-radius:999px}.inploi-job-search .rounded-input{border-radius:var(--i-radius-input)}.inploi-job-search .rounded-interactive{border-radius:var(--i-radius-interactive)}.inploi-job-search .rounded-job-card{border-radius:var(--i-radius-job-card)}.inploi-job-search .rounded-job-tag{border-radius:var(--i-radius-job-tag)}.inploi-job-search .rounded-lg{border-radius:1rem}.inploi-job-search .rounded-logo{border-radius:var(--i-radius-logo)}.inploi-job-search .rounded-section{border-radius:var(--i-radius-section)}.inploi-job-search .rounded-tag{border-radius:var(--i-radius-job-tag)}.inploi-job-search .rounded-t-section{border-top-left-radius:var(--i-radius-section);border-top-right-radius:var(--i-radius-section)}.inploi-job-search .border-px{border-width:1px}.inploi-job-search .border-b-px{border-bottom-width:1px}.inploi-job-search .border-solid{border-style:solid}.inploi-job-search .border-neutral-2{border-color:var(--i-color-n-2)}.inploi-job-search .border-neutral-4{border-color:var(--i-color-n-4)}.inploi-job-search .border-section-weak-stroke{border-color:var(--i-section-weak-stroke-color)}.inploi-job-search .border-tag-accent-strong-stroke{border-color:var(--i-tag-accent-strong-stroke-color)}.inploi-job-search .border-tag-monetary-weak-stroke{border-color:var(--i-tag-monetary-weak-stroke-color)}.inploi-job-search .border-tag-neutral-strong-stroke{border-color:var(--i-tag-neutral-strong-stroke-color)}.inploi-job-search .border-tag-neutral-weak-stroke{border-color:var(--i-tag-neutral-weak-stroke-color)}.inploi-job-search .bg-\\[\\#0009\\]{background-color:#0009}.inploi-job-search .bg-\\[currentColor\\]{background-color:currentColor}.inploi-job-search .bg-accent-2{background-color:var(--i-color-a-2)}.inploi-job-search .bg-accent-4{background-color:var(--i-color-a-4)}.inploi-job-search .bg-accent-9{background-color:var(--i-color-a-9)}.inploi-job-search .bg-app{background-color:var(--i-app-bg)}.inploi-job-search .bg-copy-neutral{background-color:var(--i-copy)}.inploi-job-search .bg-interactive-accent-bg{background-color:var(--i-interactive-accent-bg)}.inploi-job-search .bg-interactive-neutral-bg{background-color:var(--i-interactive-neutral-bg)}.inploi-job-search .bg-job-card-bg{background-color:var(--i-job-card-bg)}.inploi-job-search .bg-lowest{background-color:var(--i-color-lowest)}.inploi-job-search .bg-neutral-1{background-color:var(--i-color-n-1)}.inploi-job-search .bg-neutral-12{background-color:var(--i-color-n-12)}.inploi-job-search .bg-neutral-2{background-color:var(--i-color-n-2)}.inploi-job-search .bg-neutral-3{background-color:var(--i-color-n-3)}.inploi-job-search .bg-neutral-6{background-color:var(--i-color-n-6)}.inploi-job-search .bg-section-strong-bg{background-color:var(--i-section-strong-bg)}.inploi-job-search .bg-tag-accent-strong-bg{background-color:var(--i-tag-accent-strong-bg)}.inploi-job-search .bg-tag-monetary-weak-bg{background-color:var(--i-tag-monetary-weak-bg)}.inploi-job-search .bg-tag-neutral-strong-bg{background-color:var(--i-tag-neutral-strong-bg)}.inploi-job-search .bg-tag-neutral-weak-bg{background-color:var(--i-tag-neutral-weak-bg)}.inploi-job-search .bg-transparent{background-color:transparent}.inploi-job-search .object-contain{-o-object-fit:contain;object-fit:contain}.inploi-job-search .p-0{padding:0}.inploi-job-search .p-1{padding:.25rem}.inploi-job-search .p-10{padding:2.5rem}.inploi-job-search .p-11{padding:2.75rem}.inploi-job-search .p-12{padding:3rem}.inploi-job-search .p-2{padding:.5rem}.inploi-job-search .p-3{padding:.75rem}.inploi-job-search .p-4{padding:1rem}.inploi-job-search .p-5{padding:1.25rem}.inploi-job-search .p-6{padding:1.5rem}.inploi-job-search .p-7{padding:1.75rem}.inploi-job-search .p-8{padding:2rem}.inploi-job-search .p-9{padding:2.25rem}.inploi-job-search .px-1{padding-left:.25rem;padding-right:.25rem}.inploi-job-search .px-10{padding-left:2.5rem;padding-right:2.5rem}.inploi-job-search .px-2{padding-left:.5rem;padding-right:.5rem}.inploi-job-search .px-2\\.5{padding-left:.625rem;padding-right:.625rem}.inploi-job-search .px-3{padding-left:.75rem;padding-right:.75rem}.inploi-job-search .px-4{padding-left:1rem;padding-right:1rem}.inploi-job-search .px-5{padding-left:1.25rem;padding-right:1.25rem}.inploi-job-search .py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.inploi-job-search .py-1{padding-top:.25rem;padding-bottom:.25rem}.inploi-job-search .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.inploi-job-search .py-2{padding-top:.5rem;padding-bottom:.5rem}.inploi-job-search .py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.inploi-job-search .py-4{padding-top:1rem;padding-bottom:1rem}.inploi-job-search .pb-1{padding-bottom:.25rem}.inploi-job-search .pb-4{padding-bottom:1rem}.inploi-job-search .pb-\\[env\\(safe-area-inset-bottom\\)\\]{padding-bottom:env(safe-area-inset-bottom)}.inploi-job-search .pl-1{padding-left:.25rem}.inploi-job-search .pl-10{padding-left:2.5rem}.inploi-job-search .pl-2{padding-left:.5rem}.inploi-job-search .pl-2\\.5{padding-left:.625rem}.inploi-job-search .pl-3{padding-left:.75rem}.inploi-job-search .pl-3\\.5{padding-left:.875rem}.inploi-job-search .pl-5{padding-left:1.25rem}.inploi-job-search .pr-1{padding-right:.25rem}.inploi-job-search .pr-10{padding-right:2.5rem}.inploi-job-search .pr-2{padding-right:.5rem}.inploi-job-search .pr-2\\.5{padding-right:.625rem}.inploi-job-search .pr-3{padding-right:.75rem}.inploi-job-search .pr-4{padding-right:1rem}.inploi-job-search .pr-8{padding-right:2rem}.inploi-job-search .pt-1{padding-top:.25rem}.inploi-job-search .pt-4{padding-top:1rem}.inploi-job-search .text-left{text-align:left}.inploi-job-search .text-center{text-align:center}.inploi-job-search .text-justify{text-align:justify}.inploi-job-search .align-middle{vertical-align:middle}.inploi-job-search .font-family-default{font-family:var(--i-font)}.inploi-job-search .font-family-filter{font-family:var(--i-font-filter)}.inploi-job-search .font-family-job-heading{font-family:var(--i-font-job-heading)}.inploi-job-search .font-family-tag{font-family:var(--i-font-tag)}.inploi-job-search .text-\\[10px\\]{font-size:10px}.inploi-job-search .text-style-filter{font-size:1rem;line-height:1.5rem;letter-spacing:-.01em}.inploi-job-search .text-style-input{font-size:1rem;line-height:1.5rem}.inploi-job-search .text-style-job-card{font-size:.875rem;line-height:1.125rem}.inploi-job-search .text-style-job-card-info{font-size:.75rem;line-height:1.125rem}.inploi-job-search .text-style-job-heading{font-size:1.125rem;line-height:1.5rem}.inploi-job-search .text-style-tag{font-size:.875rem;line-height:1.1rem}.inploi-job-search .font-\\[500\\]{font-weight:500}.inploi-job-search .font-weight-default{font-weight:var(--i-weight-default)}.inploi-job-search .font-weight-filter{font-weight:var(--i-weight-filter)}.inploi-job-search .font-weight-input{font-weight:var(--i-weight-input)}.inploi-job-search .font-weight-job-heading{font-weight:var(--i-weight-job-heading)}.inploi-job-search .font-weight-tag{font-weight:var(--i-weight-tag)}.inploi-job-search .uppercase{text-transform:uppercase}.inploi-job-search .lowercase{text-transform:lowercase}.inploi-job-search .capitalize{text-transform:capitalize}.inploi-job-search .italic{font-style:italic}.inploi-job-search .ordinal{--tw-ordinal: ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.inploi-job-search .tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.inploi-job-search .leading-none{line-height:1}.inploi-job-search .leading-snug{line-height:1.375}.inploi-job-search .tracking-tight{letter-spacing:-.025em}.inploi-job-search .\\!text-transparent{color:transparent!important}.inploi-job-search .text-\\[\\#E5484D\\]{--tw-text-opacity: 1;color:rgb(229 72 77 / var(--tw-text-opacity, 1))}.inploi-job-search .text-accent-1{color:var(--i-color-a-1)}.inploi-job-search .text-accent-11{color:var(--i-color-a-11)}.inploi-job-search .text-copy-accent-icon{color:var(--i-copy-accent-icon)}.inploi-job-search .text-copy-job-info{color:var(--i-copy-info)}.inploi-job-search .text-copy-neutral{color:var(--i-copy)}.inploi-job-search .text-copy-neutral-icon{color:var(--i-copy-icon)}.inploi-job-search .text-copy-neutral-lowcontrast{color:var(--i-copy-lowcontrast)}.inploi-job-search .text-interactive-accent-text{color:var(--i-interactive-accent-text)}.inploi-job-search .text-interactive-neutral-bg{color:var(--i-interactive-neutral-bg)}.inploi-job-search .text-interactive-neutral-text{color:var(--i-interactive-neutral-text)}.inploi-job-search .text-neutral-1{color:var(--i-color-n-1)}.inploi-job-search .text-neutral-10{color:var(--i-color-n-10)}.inploi-job-search .text-neutral-11{color:var(--i-color-n-11)}.inploi-job-search .text-neutral-12{color:var(--i-color-n-12)}.inploi-job-search .text-neutral-6{color:var(--i-color-n-6)}.inploi-job-search .text-neutral-8{color:var(--i-color-n-8)}.inploi-job-search .text-tag-accent-strong-bg{color:var(--i-tag-accent-strong-bg)}.inploi-job-search .text-tag-accent-strong-copy{color:var(--i-tag-accent-strong-copy)}.inploi-job-search .text-tag-monetary-weak-copy{color:var(--i-tag-monetary-weak-copy)}.inploi-job-search .text-tag-neutral-strong-copy{color:var(--i-tag-neutral-strong-copy)}.inploi-job-search .text-tag-neutral-weak-copy{color:var(--i-tag-neutral-weak-copy)}.inploi-job-search .underline{text-decoration-line:underline}.inploi-job-search .underline-offset-2{text-underline-offset:2px}.inploi-job-search .caret-accent-11{caret-color:var(--i-color-a-11)}.inploi-job-search .opacity-0{opacity:0}.inploi-job-search .opacity-10{opacity:.1}.inploi-job-search .opacity-25{opacity:.25}.inploi-job-search .opacity-30{opacity:.3}.inploi-job-search .opacity-50{opacity:.5}.inploi-job-search .opacity-80{opacity:.8}.inploi-job-search .shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.inploi-job-search .shadow-\\[0_0_0_1px\\]{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.inploi-job-search .shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.inploi-job-search .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.inploi-job-search .outline-none{outline:2px solid transparent;outline-offset:2px}.inploi-job-search .outline{outline-style:solid}.inploi-job-search .ring-\\[1px\\]{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .ring-\\[3px\\]{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .ring-px{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .ring-width-job-card{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(var(--i-job-card-stroke-width) + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .ring-width-section{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(var(--i-section-stroke-width) + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .ring-job-card-stroke{--tw-ring-color: var(--i-job-card-stroke-color)}.inploi-job-search .ring-neutral-3{--tw-ring-color: var(--i-color-n-3)}.inploi-job-search .ring-neutral-4{--tw-ring-color: var(--i-color-n-4)}.inploi-job-search .ring-neutral-5{--tw-ring-color: var(--i-color-n-5)}.inploi-job-search .ring-section-weak-stroke{--tw-ring-color: var(--i-section-weak-stroke-color)}.inploi-job-search .ring-tag-accent-strong-bg{--tw-ring-color: var(--i-tag-accent-strong-bg)}.inploi-job-search .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.inploi-job-search .grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.inploi-job-search .invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.inploi-job-search .sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.inploi-job-search .\\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.inploi-job-search .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.inploi-job-search .backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.inploi-job-search .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.inploi-job-search .transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.inploi-job-search .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.inploi-job-search .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.inploi-job-search .transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.inploi-job-search .duration-500{transition-duration:.5s}.inploi-job-search .duration-medium{transition-duration:.6s}.inploi-job-search .duration-slow{transition-duration:.9s}.inploi-job-search .duration-snappy{transition-duration:.4s}.inploi-job-search .ease-expo-out{transition-timing-function:cubic-bezier(.16,1,.3,1)}.inploi-job-search .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.inploi-job-search .gutter-stable{scrollbar-gutter:stable}.inploi-job-search .font-style-default{font-style:var(--i-font-style)}.inploi-job-search .font-style-filter{font-style:var(--i-style-filter)}.inploi-job-search .font-style-input{font-style:var(--i-style-input)}.inploi-job-search .font-style-job-heading{font-style:var(--i-style-job-heading)}.inploi-job-search .font-style-tag{font-style:var(--i-style-tag)}.inploi-job-search .fr{outline:none}.inploi-job-search .fr:focus{outline:none}.inploi-job-search .fr:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .touch-hitbox:before{content:"";position:absolute;display:block;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-height:44px;min-width:44px;z-index:9999}.inploi-job-search .\\[-webkit-user-drag\\:none\\]{-webkit-user-drag:none}.inploi-job-search .\\[a-zA-Z0-9-_\\:\\.\\$\\@\\?\\]{a-z-a--z0-9-_:.$@?}.inploi-job-search .\\[overflow-wrap\\:anywhere\\]{overflow-wrap:anywhere}.inploi-job-search .\\[text-wrap\\:balance\\]{text-wrap:balance}.inploi-job-search .\\[text-wrap\\:pretty\\]{text-wrap:pretty}.inploi-job-search .selection\\:bg-accent-4 *::-moz-selection{background-color:var(--i-color-a-4)}.inploi-job-search .selection\\:bg-accent-4 *::selection{background-color:var(--i-color-a-4)}.inploi-job-search .selection\\:text-accent-12 *::-moz-selection{color:var(--i-color-a-12)}.inploi-job-search .selection\\:text-accent-12 *::selection{color:var(--i-color-a-12)}.inploi-job-search .selection\\:bg-accent-4::-moz-selection{background-color:var(--i-color-a-4)}.inploi-job-search .selection\\:bg-accent-4::selection{background-color:var(--i-color-a-4)}.inploi-job-search .selection\\:text-accent-12::-moz-selection{color:var(--i-color-a-12)}.inploi-job-search .selection\\:text-accent-12::selection{color:var(--i-color-a-12)}.inploi-job-search .placeholder\\:\\!text-transparent::-moz-placeholder{color:transparent!important}.inploi-job-search .placeholder\\:\\!text-transparent::placeholder{color:transparent!important}.inploi-job-search .placeholder\\:text-copy-neutral::-moz-placeholder{color:var(--i-copy)}.inploi-job-search .placeholder\\:text-copy-neutral::placeholder{color:var(--i-copy)}.inploi-job-search .placeholder\\:opacity-30::-moz-placeholder{opacity:.3}.inploi-job-search .placeholder\\:opacity-30::placeholder{opacity:.3}.inploi-job-search .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.inploi-job-search .autofill\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-2\\)\\]:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-2);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.inploi-job-search .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:-webkit-autofill{-webkit-text-fill-color:var(--i-color-a-11)}.inploi-job-search .autofill\\:\\[-webkit-text-fill-color\\:var\\(--i-color-a-11\\)\\]:autofill{-webkit-text-fill-color:var(--i-color-a-11)}.inploi-job-search .focus-within\\:z-10:focus-within{z-index:10}.inploi-job-search .hover\\:scale-\\[1\\.02\\]:hover{--tw-scale-x: 1.02;--tw-scale-y: 1.02;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.inploi-job-search .hover\\:bg-job-card-bg-active:hover{background-color:var(--i-job-card-bg-active)}.inploi-job-search .hover\\:bg-neutral-2:hover{background-color:var(--i-color-n-2)}.inploi-job-search .hover\\:text-accent-11:hover{color:var(--i-color-a-11)}.inploi-job-search .hover\\:text-copy-neutral:hover{color:var(--i-copy)}.inploi-job-search .hover\\:text-neutral-12:hover{color:var(--i-color-n-12)}.inploi-job-search .hover\\:ring-job-card-stroke-active:hover{--tw-ring-color: var(--i-job-card-stroke-color-active)}.inploi-job-search .focus\\:relative:focus{position:relative}.inploi-job-search .focus\\:shadow-\\[0_0_0_2px\\]:focus{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.inploi-job-search .focus\\:ring-px:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .focus\\:ring-neutral-6:focus{--tw-ring-color: var(--i-color-n-6)}.inploi-job-search .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:-webkit-autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.inploi-job-search .autofill\\:focus\\:shadow-\\[inset_0_0_0_1000px_var\\(--i-color-a-1\\)\\]:focus:autofill{--tw-shadow: inset 0 0 0 1000px var(--i-color-a-1);--tw-shadow-colored: inset 0 0 0 1000px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.inploi-job-search .active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.inploi-job-search .active\\:scale-\\[\\.97\\]:active{--tw-scale-x: .97;--tw-scale-y: .97;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.inploi-job-search .active\\:scale-\\[0\\.975\\]:active{--tw-scale-x: .975;--tw-scale-y: .975;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.inploi-job-search .active\\:bg-accent-10:active{background-color:var(--i-color-a-10)}.inploi-job-search .active\\:bg-job-card-bg-active:active{background-color:var(--i-job-card-bg-active)}.inploi-job-search .active\\:ring-job-card-stroke-active:active{--tw-ring-color: var(--i-job-card-stroke-color-active)}.inploi-job-search .disabled\\:bg-interactive-neutral-bg:disabled{background-color:var(--i-interactive-neutral-bg)}.inploi-job-search .disabled\\:text-interactive-neutral-bg-hover:disabled{color:var(--i-interactive-neutral-bg-hover)}.inploi-job-search .disabled\\:opacity-50:disabled{opacity:.5}.inploi-job-search .disabled\\:hover\\:disabled\\:bg-interactive-neutral-bg:disabled:hover:disabled{background-color:var(--i-interactive-neutral-bg)}.inploi-job-search .peer:-moz-placeholder~.peer-placeholder-shown\\:right-0{right:0}.inploi-job-search .peer:placeholder-shown~.peer-placeholder-shown\\:right-0{right:0}.inploi-job-search .peer:-moz-placeholder~.peer-placeholder-shown\\:hidden{display:none}.inploi-job-search .peer:placeholder-shown~.peer-placeholder-shown\\:hidden{display:none}.inploi-job-search .has-\\[\\[data-current-value\\=true\\]\\]\\:border-b-accent-3:has([data-current-value=true]){border-bottom-color:var(--i-color-a-3)}.inploi-job-search .data-\\[state\\=idle\\]\\:translate-y-full[data-state=idle]{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.inploi-job-search .data-\\[state\\=loading\\]\\:-translate-y-full[data-state=loading]{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.inploi-job-search .data-\\[state\\=success\\]\\:translate-y-full[data-state=success]{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.inploi-job-search .data-\\[ending-style\\]\\:scale-95[data-ending-style],.inploi-job-search .data-\\[starting-style\\]\\:scale-95[data-starting-style]{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes slideUpFade{0%{opacity:0;transform:scale(.95) translateY(16px)}to{opacity:1;transform:scale(1) translateY(0)}}.inploi-job-search .data-\\[side\\=top\\]\\:animate-slideUpFade[data-side=top]{animation:slideUpFade .2s cubic-bezier(.34,1.56,.64,1)}@keyframes pulse{50%{opacity:.5}}.inploi-job-search .data-\\[state\\=loading\\]\\:animate-pulse[data-state=loading]{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.inploi-job-search .data-\\[ending-style\\]\\:opacity-0[data-ending-style],.inploi-job-search .data-\\[starting-style\\]\\:opacity-0[data-starting-style],.inploi-job-search .data-\\[state\\=idle\\]\\:opacity-0[data-state=idle]{opacity:0}.inploi-job-search .data-\\[state\\=idle\\]\\:opacity-100[data-state=idle]{opacity:1}.inploi-job-search .group[data-state=open] .group-data-\\[state\\=open\\]\\:-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ai-letter{0%{color:var(--i-copy);transform:scale(1)}50%{transform:scale(1.125)}75%{color:var(--i-interactive-accent-text);transform:scale(1.0625)}to{color:var(--i-interactive-accent-text);transform:scale(1)}}.inploi-job-search .group[data-synced=true] .group-data-\\[synced\\=true\\]\\:animate-ai-letter{animation:ai-letter .6s cubic-bezier(.68,-.6,.32,1.6) both}@media (pointer: fine){.inploi-job-search .pointer-fine\\:hover\\:bg-interactive-accent-bg-hover:hover{background-color:var(--i-interactive-accent-bg-hover)}}@media (pointer: fine){.inploi-job-search .pointer-fine\\:hover\\:bg-interactive-neutral-bg-hover:hover{background-color:var(--i-interactive-neutral-bg-hover)}}@media (pointer: fine){.inploi-job-search .group\\/filter:first-child .group\\/tag:first-child .pointer-fine\\:group-\\[\\&\\:first-child\\]\\/filter\\:group-\\[\\&\\:first-child\\]\\/tag\\:rounded-t-tag{border-top-left-radius:var(--i-radius-job-tag);border-top-right-radius:var(--i-radius-job-tag)}}.inploi-job-search .dark .theme-dark\\:text-highest{color:var(--i-color-highest)}.inploi-job-search .dark .theme-dark\\:text-neutral-12{color:var(--i-color-n-12)}.inploi-job-search .dark .theme-dark\\:active\\:bg-accent-8:active{background-color:var(--i-color-a-8)}.inploi-job-search .light .theme-light\\:text-neutral-11{color:var(--i-color-n-11)}.inploi-job-search .rounded .theme-rounded\\:rounded-md{border-radius:.75rem}.inploi-job-search .rounded .theme-rounded\\:rounded-xl{border-radius:1.5rem}@media (pointer: fine){.inploi-job-search .rounded .pointer-fine\\:theme-rounded\\:rounded-t-lg{border-top-left-radius:1rem;border-top-right-radius:1rem}}.inploi-job-search .soft .theme-soft\\:rounded-lg{border-radius:1rem}.inploi-job-search .soft .theme-soft\\:rounded-sm{border-radius:.5rem}@media (pointer: fine){.inploi-job-search .soft .pointer-fine\\:theme-soft\\:rounded-t-lg{border-top-left-radius:1rem;border-top-right-radius:1rem}}.inploi-job-search .fill .theme-fill\\:bg-accent-2{background-color:var(--i-color-a-2)}.inploi-job-search .fill .theme-fill\\:bg-neutral-1{background-color:var(--i-color-n-1)}.inploi-job-search .fill .theme-fill\\:bg-neutral-2{background-color:var(--i-color-n-2)}.inploi-job-search .fill .theme-fill\\:ring-neutral-3{--tw-ring-color: var(--i-color-n-3)}.inploi-job-search .fill .theme-fill\\:fr{outline:none}.inploi-job-search .fill .theme-fill\\:fr:focus{outline:none}.inploi-job-search .fill .theme-fill\\:fr:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .fill .theme-fill\\:hover\\:bg-accent-3:hover{background-color:var(--i-color-a-3)}.inploi-job-search .fill .theme-fill\\:hover\\:bg-neutral-3:hover{background-color:var(--i-color-n-3)}.inploi-job-search .fill .theme-fill\\:focus\\:bg-neutral-1:focus{background-color:var(--i-color-n-1)}.inploi-job-search .fill .theme-fill\\:active\\:bg-accent-4:active{background-color:var(--i-color-a-4)}.inploi-job-search .stroke .theme-stroke\\:bg-lowest{background-color:var(--i-color-lowest)}.inploi-job-search .stroke .theme-stroke\\:bg-neutral-1{background-color:var(--i-color-n-1)}.inploi-job-search .stroke .theme-stroke\\:ring-\\[1px\\],.inploi-job-search .stroke .theme-stroke\\:ring-px{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .stroke .theme-stroke\\:ring-accent-4{--tw-ring-color: var(--i-color-a-4)}.inploi-job-search .stroke .theme-stroke\\:ring-neutral-3{--tw-ring-color: var(--i-color-n-3)}.inploi-job-search .stroke .theme-stroke\\:ring-neutral-4{--tw-ring-color: var(--i-color-n-4)}.inploi-job-search .stroke .theme-stroke\\:fr{outline:none}.inploi-job-search .stroke .theme-stroke\\:fr:focus{outline:none}.inploi-job-search .stroke .theme-stroke\\:fr:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .stroke .theme-stroke\\:hover\\:ring-accent-9:hover{--tw-ring-color: var(--i-color-a-9)}.inploi-job-search .stroke .theme-stroke\\:hover\\:ring-neutral-6:hover{--tw-ring-color: var(--i-color-n-6)}.inploi-job-search .stroke .theme-stroke\\:hover\\:fr:hover{outline:none}.inploi-job-search .stroke .theme-stroke\\:hover\\:fr:hover:focus{outline:none}.inploi-job-search .stroke .theme-stroke\\:hover\\:fr:hover:focus-visible{outline:none;--tw-ring-offset-width: 1px;--tw-ring-offset-color: var(--i-color-lowest);--tw-ring-opacity: 1;--tw-ring-color: var(--i-color-a-9);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.inploi-job-search .stroke .theme-stroke\\:focus\\:bg-lowest:focus{background-color:var(--i-color-lowest)}@media (min-width: 768px){.inploi-job-search .md\\:order-1{order:1}}@media (min-width: 768px){.inploi-job-search .md\\:order-2{order:2}}@media (min-width: 768px){.inploi-job-search .md\\:aspect-auto{aspect-ratio:auto}}@media (min-width: 768px){.inploi-job-search .md\\:h-\\[70svh\\]{height:70svh}}@media (min-width: 768px){.inploi-job-search .md\\:min-w-80{min-width:20rem}}@media (min-width: 768px){.inploi-job-search .md\\:max-w-xl{max-width:36rem}}@media (min-width: 768px){.inploi-job-search .md\\:flex-row{flex-direction:row}}@media (min-width: 768px){.inploi-job-search .md\\:flex-col{flex-direction:column}}@media (min-width: 768px){.inploi-job-search .md\\:flex-wrap{flex-wrap:wrap}}@media (min-width: 768px){.inploi-job-search .md\\:items-center{align-items:center}}@media (min-width: 1024px){.inploi-job-search .lg\\:ring-width-section{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(var(--i-section-stroke-width) + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}}.inploi-job-search .\\[\\&\\:not\\(\\:last-child\\)\\]\\:border-b-px:not(:last-child){border-bottom-width:1px}.inploi-job-search .bg-wavy{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="8" fill="none" viewBox="0 -2 32 10"><path stroke="%23000" stroke-width="2" d="M0 4c8 0 8-4 16-4s8 4 16 4"/></svg>');background-size:16px 6px;background-repeat:repeat-x;background-position:center}.inploi-job-search .dark .bg-wavy{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="8" fill="none" viewBox="0 -2 32 10"><path stroke="%23fff" stroke-width="2" d="M0 4c8 0 8-4 16-4s8 4 16 4"/></svg>')}
|
|
61
|
+
`,IF=p=>({getRenderTargetElement:v=>{const b=v?`[data-widget-id="${v}"]`:"",C=document.body.querySelectorAll(`*[data-widget=${Cb}]${b}`);if(C.length>1)throw p.error("Please ensure there is only one instance of the widget or provide a data-widget-id attribute to the widget."),new Error("More than one job search widget found on the page.");const D=C[0];if(!D)throw p.error(`Please ensure there is an element with the properties data-widget="${Cb}" ${b}`),new Error("Job search widget didn’t find element");return D}}),CF=()=>mC(({apiClient:p,rpcClient:v,logger:b,analytics:C})=>{const D=IF(b),F=({params:V})=>{var s,ee;return Zt(Vd,{Fallback:IP},[Zt(SP,{terms:V.terms,locale:((s=V.i18n)==null?void 0:s.locale)??((ee=V.i18n)==null?void 0:ee.fallbackLocale),children:[Zt("style",{id:"inploi-job-search-styles"},AF),Zt("style",{id:"inploi-job-search-theme"},MM(V)),Zt(PP,{theme:V.theme}),Zt(SF,{properties:V.properties,rpcClient:v,analytics:C,initialData:V.initialData,onStateChange:V.onStateChange,params:V})]})])};return{prerender:async V=>{var re,ge,oe,Ee,ye;const s=typeof V.initialState=="function"?V.initialState(V):V.initialState,ee=V.withData?await kb({state:s,rpcClient:v,t:EP({overrides:V.terms??{},locale:((re=V.i18n)==null?void 0:re.locale)??((ge=V.i18n)==null?void 0:ge.fallbackLocale)}),prioritySegment:(oe=V.results)==null?void 0:oe.prioritySegment,locale:(Ee=V.i18n)==null?void 0:Ee.locale,fallbackLocale:(ye=V.i18n)==null?void 0:ye.fallbackLocale}).then(Ue=>({jobs:Ue})).catch(()=>{}):void 0;return{html:eP(Zt(Hi,{},Zt(F,{params:{...V,initialData:ee}}))),data:ee}},render:async V=>{var ye,Ue;const s=typeof V.initialState=="function"?V.initialState(V):V.initialState;let ee=ep(s.filters);const re=V.initialData?Ky:Ru,ge=D.getRenderTargetElement(V.widgetId);Zs(typeof window<"u","the `render` method of JobSearch cannot be called in non-browser environments. Use `prerender` instead.");let oe;if(re(Zt(F,{params:{...V,onStateChange:Te=>{V.onStateChange(Te),Te.filters&&(ee=ep(Te.filters)),oe&&Te.filters&&oe.setFilters(ee)}}}),ge),V.feedback)if(V.feedback.plugin instanceof Promise)V.feedback.plugin.then(({feedbackPlugin:Te})=>{var qe,Re;if(!V.feedback)return;const Pe=Te()({apiClient:p,rpcClient:v,logger:b,analytics:C});H2({instance:Pe,theme:{...V.theme,...(qe=V.feedback.params)==null?void 0:qe.theme},terms:((Re=V.feedback.params)==null?void 0:Re.terms)??{}})});else{const Te=V.feedback.plugin({apiClient:p,rpcClient:v,logger:b,analytics:C});H2({instance:Te,theme:{...V.theme,...(ye=V.feedback.params)==null?void 0:ye.theme},terms:((Ue=V.feedback.params)==null?void 0:Ue.terms)??{}})}V.alerts&&(V.alerts.plugin instanceof Promise?V.alerts.plugin.then(({jobAlertsPlugin:Te})=>{V.alerts&&(oe=Te()({apiClient:p,rpcClient:v,logger:b,analytics:C}),oe.render({config:V.alerts.params.config,terms:V.alerts.params.terms,initialFilters:ee,theme:V.theme}))}):(oe=V.alerts.plugin({apiClient:p,rpcClient:v,logger:b,analytics:C}),oe.render({config:V.alerts.params.config,terms:V.alerts.params.terms,initialFilters:ee,theme:V.theme})))}}});function H2(p){p.instance.render({key:"job-search",size:"sm",theme:{positive:{hue:180,chroma:1},negative:{hue:33,chroma:1},...p.theme},terms:p.terms})}if(!window.inploi)throw new Error("Please insert the SDK script tag above the plugins.");window.inploi.jobSearchPlugin=CF;var q2={exports:{}};(function(p,v){(function(b,C){p.exports=C()})(Gd,function(){var b,C,D;function F(s,ee){if(!b)b=ee;else if(!C)C=ee;else{var re="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 = {}; ("+b+")(sharedChunk); ("+C+")(sharedChunk); self.onerror = null;",ge={};b(ge),D=ee(ge),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(D.workerUrl=window.URL.createObjectURL(new Blob([re],{type:"text/javascript"})))}}F(["exports"],function(s){var ee=1e-6,re=typeof Float32Array<"u"?Float32Array:Array;function ge(n,e){var i=e[0],r=e[1],a=e[2],u=e[3],h=i*u-a*r;return h?(n[0]=u*(h=1/h),n[1]=-r*h,n[2]=-a*h,n[3]=i*h,n):null}function oe(){var n=new re(9);return re!=Float32Array&&(n[1]=0,n[2]=0,n[3]=0,n[5]=0,n[6]=0,n[7]=0),n[0]=1,n[4]=1,n[8]=1,n}function Ee(n,e){var i=e[0],r=e[1],a=e[2],u=e[3],h=e[4],f=e[5],g=e[6],y=e[7],T=e[8];return n[0]=h*T-f*y,n[1]=a*y-r*T,n[2]=r*f-a*h,n[3]=f*g-u*T,n[4]=i*T-a*g,n[5]=a*u-i*f,n[6]=u*y-h*g,n[7]=r*g-i*y,n[8]=i*h-r*u,n}function ye(n,e,i){var r=e[0],a=e[1],u=e[2],h=e[3],f=e[4],g=e[5],y=e[6],T=e[7],S=e[8],E=i[0],P=i[1],M=i[2],k=i[3],N=i[4],O=i[5],G=i[6],H=i[7],X=i[8];return n[0]=E*r+P*h+M*y,n[1]=E*a+P*f+M*T,n[2]=E*u+P*g+M*S,n[3]=k*r+N*h+O*y,n[4]=k*a+N*f+O*T,n[5]=k*u+N*g+O*S,n[6]=G*r+H*h+X*y,n[7]=G*a+H*f+X*T,n[8]=G*u+H*g+X*S,n}function Ue(){var n=new re(16);return re!=Float32Array&&(n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0),n[0]=1,n[5]=1,n[10]=1,n[15]=1,n}function Te(n){var e=new re(16);return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],e}function Pe(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=1,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=1,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}function qe(n,e){var i=e[0],r=e[1],a=e[2],u=e[3],h=e[4],f=e[5],g=e[6],y=e[7],T=e[8],S=e[9],E=e[10],P=e[11],M=e[12],k=e[13],N=e[14],O=e[15],G=i*f-r*h,H=i*g-a*h,X=i*y-u*h,Q=r*g-a*f,J=r*y-u*f,fe=a*y-u*g,ae=T*k-S*M,ce=T*N-E*M,de=T*O-P*M,_e=S*N-E*k,Fe=S*O-P*k,Oe=E*O-P*N,je=G*Oe-H*Fe+X*_e+Q*de-J*ce+fe*ae;return je?(n[0]=(f*Oe-g*Fe+y*_e)*(je=1/je),n[1]=(a*Fe-r*Oe-u*_e)*je,n[2]=(k*fe-N*J+O*Q)*je,n[3]=(E*J-S*fe-P*Q)*je,n[4]=(g*de-h*Oe-y*ce)*je,n[5]=(i*Oe-a*de+u*ce)*je,n[6]=(N*X-M*fe-O*H)*je,n[7]=(T*fe-E*X+P*H)*je,n[8]=(h*Fe-f*de+y*ae)*je,n[9]=(r*de-i*Fe-u*ae)*je,n[10]=(M*J-k*X+O*G)*je,n[11]=(S*X-T*J-P*G)*je,n[12]=(f*ce-h*_e-g*ae)*je,n[13]=(i*_e-r*ce+a*ae)*je,n[14]=(k*H-M*Q-N*G)*je,n[15]=(T*Q-S*H+E*G)*je,n):null}function Re(n,e,i){var r=e[0],a=e[1],u=e[2],h=e[3],f=e[4],g=e[5],y=e[6],T=e[7],S=e[8],E=e[9],P=e[10],M=e[11],k=e[12],N=e[13],O=e[14],G=e[15],H=i[0],X=i[1],Q=i[2],J=i[3];return n[0]=H*r+X*f+Q*S+J*k,n[1]=H*a+X*g+Q*E+J*N,n[2]=H*u+X*y+Q*P+J*O,n[3]=H*h+X*T+Q*M+J*G,n[4]=(H=i[4])*r+(X=i[5])*f+(Q=i[6])*S+(J=i[7])*k,n[5]=H*a+X*g+Q*E+J*N,n[6]=H*u+X*y+Q*P+J*O,n[7]=H*h+X*T+Q*M+J*G,n[8]=(H=i[8])*r+(X=i[9])*f+(Q=i[10])*S+(J=i[11])*k,n[9]=H*a+X*g+Q*E+J*N,n[10]=H*u+X*y+Q*P+J*O,n[11]=H*h+X*T+Q*M+J*G,n[12]=(H=i[12])*r+(X=i[13])*f+(Q=i[14])*S+(J=i[15])*k,n[13]=H*a+X*g+Q*E+J*N,n[14]=H*u+X*y+Q*P+J*O,n[15]=H*h+X*T+Q*M+J*G,n}function at(n,e,i){var r,a,u,h,f,g,y,T,S,E,P,M,k=i[0],N=i[1],O=i[2];return e===n?(n[12]=e[0]*k+e[4]*N+e[8]*O+e[12],n[13]=e[1]*k+e[5]*N+e[9]*O+e[13],n[14]=e[2]*k+e[6]*N+e[10]*O+e[14],n[15]=e[3]*k+e[7]*N+e[11]*O+e[15]):(a=e[1],u=e[2],h=e[3],f=e[4],g=e[5],y=e[6],T=e[7],S=e[8],E=e[9],P=e[10],M=e[11],n[0]=r=e[0],n[1]=a,n[2]=u,n[3]=h,n[4]=f,n[5]=g,n[6]=y,n[7]=T,n[8]=S,n[9]=E,n[10]=P,n[11]=M,n[12]=r*k+f*N+S*O+e[12],n[13]=a*k+g*N+E*O+e[13],n[14]=u*k+y*N+P*O+e[14],n[15]=h*k+T*N+M*O+e[15]),n}function Qe(n,e,i){var r=i[0],a=i[1],u=i[2];return n[0]=e[0]*r,n[1]=e[1]*r,n[2]=e[2]*r,n[3]=e[3]*r,n[4]=e[4]*a,n[5]=e[5]*a,n[6]=e[6]*a,n[7]=e[7]*a,n[8]=e[8]*u,n[9]=e[9]*u,n[10]=e[10]*u,n[11]=e[11]*u,n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15],n}function yt(n,e,i){var r=Math.sin(i),a=Math.cos(i),u=e[4],h=e[5],f=e[6],g=e[7],y=e[8],T=e[9],S=e[10],E=e[11];return e!==n&&(n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[4]=u*a+y*r,n[5]=h*a+T*r,n[6]=f*a+S*r,n[7]=g*a+E*r,n[8]=y*a-u*r,n[9]=T*a-h*r,n[10]=S*a-f*r,n[11]=E*a-g*r,n}function It(n,e,i){var r=Math.sin(i),a=Math.cos(i),u=e[0],h=e[1],f=e[2],g=e[3],y=e[8],T=e[9],S=e[10],E=e[11];return e!==n&&(n[4]=e[4],n[5]=e[5],n[6]=e[6],n[7]=e[7],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[0]=u*a-y*r,n[1]=h*a-T*r,n[2]=f*a-S*r,n[3]=g*a-E*r,n[8]=u*r+y*a,n[9]=h*r+T*a,n[10]=f*r+S*a,n[11]=g*r+E*a,n}function Rt(n,e,i){var r=Math.sin(i),a=Math.cos(i),u=e[0],h=e[1],f=e[2],g=e[3],y=e[4],T=e[5],S=e[6],E=e[7];return e!==n&&(n[8]=e[8],n[9]=e[9],n[10]=e[10],n[11]=e[11],n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n[0]=u*a+y*r,n[1]=h*a+T*r,n[2]=f*a+S*r,n[3]=g*a+E*r,n[4]=y*a-u*r,n[5]=T*a-h*r,n[6]=S*a-f*r,n[7]=E*a-g*r,n}function zt(n,e){return n[0]=e[0],n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=e[1],n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=e[2],n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}function Nt(n,e,i){var r,a,u,h=i[0],f=i[1],g=i[2],y=Math.sqrt(h*h+f*f+g*g);return y<ee?null:(h*=y=1/y,f*=y,g*=y,r=Math.sin(e),a=Math.cos(e),n[0]=h*h*(u=1-a)+a,n[1]=f*h*u+g*r,n[2]=g*h*u-f*r,n[3]=0,n[4]=h*f*u-g*r,n[5]=f*f*u+a,n[6]=g*f*u+h*r,n[7]=0,n[8]=h*g*u+f*r,n[9]=f*g*u-h*r,n[10]=g*g*u+a,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n)}function Qt(n,e){var i=e[0],r=e[1],a=e[2],u=e[4],h=e[5],f=e[6],g=e[8],y=e[9],T=e[10];return n[0]=Math.sqrt(i*i+r*r+a*a),n[1]=Math.sqrt(u*u+h*h+f*f),n[2]=Math.sqrt(g*g+y*y+T*T),n}function ai(n,e){var i=e[0],r=e[1],a=e[2],u=e[3],h=i+i,f=r+r,g=a+a,y=i*h,T=r*h,S=r*f,E=a*h,P=a*f,M=a*g,k=u*h,N=u*f,O=u*g;return n[0]=1-S-M,n[1]=T+O,n[2]=E-N,n[3]=0,n[4]=T-O,n[5]=1-y-M,n[6]=P+k,n[7]=0,n[8]=E+N,n[9]=P-k,n[10]=1-y-S,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,n}var Ii=Re;function Ut(){var n=new re(3);return re!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0),n}function li(n){var e=new re(3);return e[0]=n[0],e[1]=n[1],e[2]=n[2],e}function Xt(n){var e=n[0],i=n[1],r=n[2];return Math.sqrt(e*e+i*i+r*r)}function Dt(n,e,i){var r=new re(3);return r[0]=n,r[1]=e,r[2]=i,r}function Tt(n,e,i,r){return n[0]=e,n[1]=i,n[2]=r,n}function Wt(n,e,i){return n[0]=e[0]+i[0],n[1]=e[1]+i[1],n[2]=e[2]+i[2],n}function ji(n,e,i){return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n[2]=e[2]-i[2],n}function En(n,e,i){return n[0]=e[0]*i[0],n[1]=e[1]*i[1],n[2]=e[2]*i[2],n}function on(n,e,i){return n[0]=Math.min(e[0],i[0]),n[1]=Math.min(e[1],i[1]),n[2]=Math.min(e[2],i[2]),n}function Bn(n,e,i){return n[0]=Math.max(e[0],i[0]),n[1]=Math.max(e[1],i[1]),n[2]=Math.max(e[2],i[2]),n}function Ci(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n[2]=e[2]*i,n}function Dn(n,e,i,r){return n[0]=e[0]+i[0]*r,n[1]=e[1]+i[1]*r,n[2]=e[2]+i[2]*r,n}function Jr(n,e){var i=e[0]-n[0],r=e[1]-n[1],a=e[2]-n[2];return Math.sqrt(i*i+r*r+a*a)}function Cr(n,e){var i=e[0]-n[0],r=e[1]-n[1],a=e[2]-n[2];return i*i+r*r+a*a}function Qr(n){var e=n[0],i=n[1],r=n[2];return e*e+i*i+r*r}function qr(n,e){return n[0]=-e[0],n[1]=-e[1],n[2]=-e[2],n}function Fi(n,e){var i=e[0],r=e[1],a=e[2],u=i*i+r*r+a*a;return u>0&&(u=1/Math.sqrt(u)),n[0]=e[0]*u,n[1]=e[1]*u,n[2]=e[2]*u,n}function Qi(n,e){return n[0]*e[0]+n[1]*e[1]+n[2]*e[2]}function nr(n,e,i){var r=e[0],a=e[1],u=e[2],h=i[0],f=i[1],g=i[2];return n[0]=a*g-u*f,n[1]=u*h-r*g,n[2]=r*f-a*h,n}function Ho(n,e,i,r){var a=e[0],u=e[1],h=e[2];return n[0]=a+r*(i[0]-a),n[1]=u+r*(i[1]-u),n[2]=h+r*(i[2]-h),n}function en(n,e,i){var r=e[0],a=e[1],u=e[2],h=i[3]*r+i[7]*a+i[11]*u+i[15];return n[0]=(i[0]*r+i[4]*a+i[8]*u+i[12])/(h=h||1),n[1]=(i[1]*r+i[5]*a+i[9]*u+i[13])/h,n[2]=(i[2]*r+i[6]*a+i[10]*u+i[14])/h,n}function To(n,e,i){var r=e[0],a=e[1],u=e[2];return n[0]=r*i[0]+a*i[3]+u*i[6],n[1]=r*i[1]+a*i[4]+u*i[7],n[2]=r*i[2]+a*i[5]+u*i[8],n}function eo(n,e,i){var r=i[0],a=i[1],u=i[2],h=i[3],f=e[0],g=e[1],y=e[2],T=a*y-u*g,S=u*f-r*y,E=r*g-a*f;return n[0]=f+h*(T+=T)+a*(E+=E)-u*(S+=S),n[1]=g+h*S+u*T-r*E,n[2]=y+h*E+r*S-a*T,n}function Zi(n){return n[0]=0,n[1]=0,n[2]=0,n}function tn(n,e){return n[0]===e[0]&&n[1]===e[1]&&n[2]===e[2]}var Si=ji,bn=En,ur=Xt;function Nn(){var n=new re(4);return re!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0,n[3]=0),n}function Ln(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n[2]=e[2]*i,n[3]=e[3]*i,n}function Fr(n,e){var i=e[0],r=e[1],a=e[2],u=e[3],h=i*i+r*r+a*a+u*u;return h>0&&(h=1/Math.sqrt(h)),n[0]=i*h,n[1]=r*h,n[2]=a*h,n[3]=u*h,n}function vr(n,e){return n[0]*e[0]+n[1]*e[1]+n[2]*e[2]+n[3]*e[3]}function hr(n,e,i){var r=e[0],a=e[1],u=e[2],h=e[3];return n[0]=i[0]*r+i[4]*a+i[8]*u+i[12]*h,n[1]=i[1]*r+i[5]*a+i[9]*u+i[13]*h,n[2]=i[2]*r+i[6]*a+i[10]*u+i[14]*h,n[3]=i[3]*r+i[7]*a+i[11]*u+i[15]*h,n}function zo(){var n=new re(4);return re!=Float32Array&&(n[0]=0,n[1]=0,n[2]=0),n[3]=1,n}function ko(n){return n[0]=0,n[1]=0,n[2]=0,n[3]=1,n}function dr(n,e,i){i*=.5;var r=e[0],a=e[1],u=e[2],h=e[3],f=Math.sin(i),g=Math.cos(i);return n[0]=r*g+h*f,n[1]=a*g+u*f,n[2]=u*g-a*f,n[3]=h*g-r*f,n}function Br(n,e,i){i*=.5;var r=e[0],a=e[1],u=e[2],h=e[3],f=Math.sin(i),g=Math.cos(i);return n[0]=r*g-u*f,n[1]=a*g+h*f,n[2]=u*g+r*f,n[3]=h*g-a*f,n}Ut(),Nn();var xr,ra,Nr,zc=Fr,Ps=(xr=Ut(),ra=Dt(1,0,0),Nr=Dt(0,1,0),function(n,e,i){var r=Qi(e,i);return r<-.999999?(nr(xr,ra,e),ur(xr)<1e-6&&nr(xr,Nr,e),Fi(xr,xr),function(a,u,h){h*=.5;var f=Math.sin(h);a[0]=f*u[0],a[1]=f*u[1],a[2]=f*u[2],a[3]=Math.cos(h)}(n,xr,Math.PI),n):r>.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(nr(xr,e,i),n[0]=xr[0],n[1]=xr[1],n[2]=xr[2],n[3]=1+r,zc(n,n))});function Dr(){var n=new re(2);return re!=Float32Array&&(n[0]=0,n[1]=0),n}function Ms(n,e){var i=new re(2);return i[0]=n,i[1]=e,i}function Rs(n,e,i){return n[0]=e,n[1]=i,n}function oa(n,e,i){return n[0]=e[0]+i[0],n[1]=e[1]+i[1],n}function Ds(n,e,i){return n[0]=e[0]-i[0],n[1]=e[1]-i[1],n}function sa(n,e,i){return n[0]=e[0]*i,n[1]=e[1]*i,n}function aa(n){var e=n[0],i=n[1];return Math.sqrt(e*e+i*i)}function Pl(n,e){var i=e[0],r=e[1],a=i*i+r*r;return a>0&&(a=1/Math.sqrt(a)),n[0]=e[0]*a,n[1]=e[1]*a,n}function sn(n,e){return n[0]*e[0]+n[1]*e[1]}zo(),zo(),oe();var Pr,nh,Ml=Ds;function So(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}Dr();var ip=function(){if(nh)return Pr;function n(e,i,r,a){this.cx=3*e,this.bx=3*(r-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*i,this.by=3*(a-i)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=i,this.p2x=r,this.p2y=a}return nh=1,Pr=n,n.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,i){if(i===void 0&&(i=1e-6),e<0)return 0;if(e>1)return 1;for(var r=e,a=0;a<8;a++){var u=this.sampleCurveX(r)-e;if(Math.abs(u)<i)return r;var h=this.sampleCurveDerivativeX(r);if(Math.abs(h)<1e-6)break;r-=u/h}var f=0,g=1;for(r=e,a=0;a<20&&(u=this.sampleCurveX(r),!(Math.abs(u-e)<i));a++)e>u?f=r:g=r,r=.5*(g-f)+f;return r},solve:function(e,i){return this.sampleCurveY(this.solveCurveX(e,i))}},Pr}(),Rl=So(ip);function it(n,e){this.x=n,this.y=e}function Ls(n,e){if(Array.isArray(n)){if(!Array.isArray(e)||n.length!==e.length)return!1;for(let i=0;i<n.length;i++)if(!Ls(n[i],e[i]))return!1;return!0}if(typeof n=="object"&&n!==null&&e!==null){if(typeof e!="object"||Object.keys(n).length!==Object.keys(e).length)return!1;for(const i in n)if(!Ls(n[i],e[i]))return!1;return!0}return n===e}it.prototype={clone(){return new it(this.x,this.y)},add(n){return this.clone()._add(n)},sub(n){return this.clone()._sub(n)},multByPoint(n){return this.clone()._multByPoint(n)},divByPoint(n){return this.clone()._divByPoint(n)},mult(n){return this.clone()._mult(n)},div(n){return this.clone()._div(n)},rotate(n){return this.clone()._rotate(n)},rotateAround(n,e){return this.clone()._rotateAround(n,e)},matMult(n){return this.clone()._matMult(n)},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(n){return this.x===n.x&&this.y===n.y},dist(n){return Math.sqrt(this.distSqr(n))},distSqr(n){const e=n.x-this.x,i=n.y-this.y;return e*e+i*i},angle(){return Math.atan2(this.y,this.x)},angleTo(n){return Math.atan2(this.y-n.y,this.x-n.x)},angleWith(n){return this.angleWithSep(n.x,n.y)},angleWithSep(n,e){return Math.atan2(this.x*e-this.y*n,this.x*n+this.y*e)},_matMult(n){const e=n[2]*this.x+n[3]*this.y;return this.x=n[0]*this.x+n[1]*this.y,this.y=e,this},_add(n){return this.x+=n.x,this.y+=n.y,this},_sub(n){return this.x-=n.x,this.y-=n.y,this},_mult(n){return this.x*=n,this.y*=n,this},_div(n){return this.x/=n,this.y/=n,this},_multByPoint(n){return this.x*=n.x,this.y*=n.y,this},_divByPoint(n){return this.x/=n.x,this.y/=n.y,this},_unit(){return this._div(this.mag()),this},_perp(){const n=this.y;return this.y=this.x,this.x=-n,this},_rotate(n){const e=Math.cos(n),i=Math.sin(n),r=i*this.x+e*this.y;return this.x=e*this.x-i*this.y,this.y=r,this},_rotateAround(n,e){const i=Math.cos(n),r=Math.sin(n),a=e.y+r*(this.x-e.x)+i*(this.y-e.y);return this.x=e.x+i*(this.x-e.x)-r*(this.y-e.y),this.y=a,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:it},it.convert=function(n){if(n instanceof it)return n;if(Array.isArray(n))return new it(+n[0],+n[1]);if(n.x!==void 0&&n.y!==void 0)return new it(+n.x,+n.y);throw new Error("Expected [x, y] or {x, y} point format")};const np=Math.PI/180,kc=180/Math.PI;function bi(n){return n*np}function Ie(n){return n*kc}const $=[[0,0],[1,0],[1,1],[0,1]];function Z(n){if(n<=0)return 0;if(n>=1)return 1;const e=n*n,i=e*n;return 4*(n<.5?i:3*(n-e)+i-.75)}function ne(n,e,i,r){const a=new Rl(n,e,i,r);return function(u){return a.solve(u)}}const ve=ne(.25,.1,.25,1);function se(n,e,i){return Math.min(i,Math.max(e,n))}function Se(n,e,i){return(i=se((i-n)/(e-n),0,1))*i*(3-2*i)}function ze(n,e,i){const r=i-e,a=((n-e)%r+r)%r+e;return a===e?i:a}function Ae(n,e,i){if(!n.length)return i(null,[]);let r=n.length;const a=new Array(n.length);let u=null;n.forEach((h,f)=>{e(h,(g,y)=>{g&&(u=g),a[f]=y,--r===0&&i(u,a)})})}let Be=1;function nt(){return Be++}function Ke(n){return n<=1?1:Math.pow(2,Math.ceil(Math.log2(n)))}function gt(n,e){n.forEach(i=>{e[i]&&(e[i]=e[i].bind(e))})}function Lt(n,e,i){const r={};for(const a in n)r[a]=e.call(this,n[a],a,n);return r}function Ot(n,e,i){const r={};for(const a in n)e.call(this,n[a],a,n)&&(r[a]=n[a]);return r}function Yt(n){return Array.isArray(n)?n.map(Yt):typeof n=="object"&&n?Lt(n,Yt):n}function ei(n,e){for(let i=0;i<n.length;i++)if(e.indexOf(n[i])>=0)return!0;return!1}const Ht={};function Gt(n){Ht[n]||(typeof console<"u"&&console.warn(n),Ht[n]=!0)}function Wi(n,e,i){return(i.y-n.y)*(e.x-n.x)>(e.y-n.y)*(i.x-n.x)}function jn(n){let e=0;for(let i,r,a=0,u=n.length,h=u-1;a<u;h=a++)i=n[a],r=n[h],e+=(r.x-i.x)*(i.y+r.y);return e}function An([n,e,i]){const r=bi(e+90),a=bi(i);return{x:n*Math.cos(r)*Math.sin(a),y:n*Math.sin(r)*Math.sin(a),z:n*Math.cos(a),azimuthal:e,polar:i}}function Mn(n){return(typeof self<"u"||n!==void 0)&&typeof WorkerGlobalScope<"u"&&(n!==void 0?n:self)instanceof WorkerGlobalScope}function an(n){const e={};if(n.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(i,r,a,u)=>{const h=a||u;return e[r]=!h||h.toLowerCase(),""}),e["max-age"]){const i=parseInt(e["max-age"],10);isNaN(i)?delete e["max-age"]:e["max-age"]=i}return e}let vi=null;function dn(n,e){return[n[4*e],n[4*e+1],n[4*e+2],n[4*e+3]]}function qi(n,e,i,r){for(;e<i;){const a=e+i>>1;n[a]<r?e=a+1:i=a}return e}function ln(n,e,i,r){for(;e<i;){const a=e+i>>1;n[a]<=r?e=a+1:i=a}return e}function pn(n){return n>0?1/(1.001-n):1+n}function Mr(n){return n>0?1-1/(1.001-n):-n}function br(n,e,i){return(n-e.min)*(i.max-i.min)/(e.max-e.min)+i.min}const Xn={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(!Xn.API_URL)return null;try{const n=new URL(Xn.API_URL);return n.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":n.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:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",BUILDING_GEN_URL:"https://api.mapbox.com/mapbox-gl-js/building-gen/building_gen_v1.2.4.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1"};function us(n){return Xn.API_URL_REGEX.test(n)}function zs(n){return Xn.API_SPRITE_REGEX.test(n)}let hs,Oc,Dl,rh,Oo,Ja;function Fc(){return hs==null&&(hs=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),hs}const ds={now:()=>rh!==void 0?rh:performance.now(),setNow(n){rh=n},restoreNow(){rh=void 0},frame(n){const e=requestAnimationFrame(n);return{cancel:()=>cancelAnimationFrame(e)}},getImageData(n,e=0){const{width:i,height:r}=n;Oo||(Oo=document.createElement("canvas"));const a=Oo.getContext("2d",{willReadFrequently:!0});if(!a)throw new Error("failed to create canvas 2d context");return(i>Oo.width||r>Oo.height)&&(Oo.width=i,Oo.height=r),a.clearRect(-e,-e,i+2*e,r+2*e),a.drawImage(n,0,0,i,r),a.getImageData(-e,-e,i+2*e,r+2*e)},resolveURL:n=>(Oc||(Oc=document.createElement("a")),Oc.href=n,Oc.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(Dl==null&&(Dl=window.matchMedia("(prefers-reduced-motion: reduce)")),Dl.matches)},hasCanvasFingerprintNoise(){if(Ja!==void 0)return Ja;if(!Fc())return Ja=!1,!1;const n=new OffscreenCanvas(85,1),e=n.getContext("2d",{willReadFrequently:!0});let i=0;for(let a=0;a<n.width;++a)e.fillStyle=`rgba(${i++},${i++},${i++}, 255)`,e.fillRect(a,0,1,1);const r=e.getImageData(0,0,n.width,n.height);i=0;for(let a=0;a<r.data.length;++a)if(a%4!=3&&i++!==r.data[a])return Ja=!0,!0;return Ja=!1,!1}};function rp(n,e){const i=n.indexOf("?");if(i<0)return`${n}?${new URLSearchParams(e).toString()}`;const r=new URLSearchParams(n.slice(i));for(const a in e)r.set(a,e[a]);return`${n.slice(0,i)}?${r.toString()}`}function op(n,e={persistentParams:[]}){const i=n.indexOf("?");if(i<0)return n;const r=new URLSearchParams,a=new URLSearchParams(n.slice(i));for(const h of e.persistentParams){const f=a.get(h);f&&r.set(h,f)}const u=r.toString();return`${n.slice(0,i)}${u.length>0?`?${u}`:""}`}const f_="mapbox-tiles";let m_=500,sp=50;const ap=["language","worldview","jobid"];let wr;function qo(){try{return caches}catch{}}function Wo(){const n=qo();n&&wr==null&&(wr=n.open(f_))}let Fo=1/0;const ps={supported:!1,testSupport:function(n){!oh&&Qa&&(el?__(n):la=n)}};let la,Qa,oh=!1,el=!1;const sh=typeof self<"u"?self:{};function __(n){const e=n.createTexture();n.bindTexture(n.TEXTURE_2D,e);try{if(n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,Qa),n.isContextLost())return;ps.supported=!0}catch{}n.deleteTexture(e),oh=!0}sh.document&&(Qa=sh.document.createElement("img"),Qa.onload=function(){la&&__(la),la=null,el=!0},Qa.onerror=function(){oh=!0,la=null},Qa.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const Bc={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Iconset:"Iconset",Image:"Image",Model:"Model"};Object.freeze(Bc);class ho extends Error{constructor(e,i,r){i===401&&us(r)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=i,this.url=r}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const ah=Mn()?()=>self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,ks=function(n,e){return/^file:/.test(i=n.url)||/^file:/.test(ah())&&!/^\w+:/.test(i)?function(r,a){const u=new XMLHttpRequest;u.open(r.method||"GET",r.url,!0),r.type==="arrayBuffer"&&(u.responseType="arraybuffer");for(const h in r.headers)u.setRequestHeader(h,r.headers[h]);return r.type==="json"&&(u.responseType="text",u.setRequestHeader("Accept","application/json")),u.withCredentials=r.credentials==="include",u.onerror=()=>{a(new Error(u.statusText))},u.onload=()=>{if((u.status>=200&&u.status<300||u.status===0)&&u.response!==null){let h=u.response;if(r.type==="json")try{h=JSON.parse(u.response)}catch(g){return a(g)}const f=new Headers;u.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(g=>{const y=g.split(": "),T=y.shift(),S=y.join(": ");f.append(T,S)}),a(null,h,f)}else a(new ho(u.statusText,u.status,r.url))},u.send(r.body),{cancel:()=>u.abort()}}(n,e):function(r,a){const u=new AbortController,h=new Request(r.url,{method:r.method||"GET",body:r.body,credentials:r.credentials,headers:r.headers,referrer:ah(),referrerPolicy:r.referrerPolicy,signal:u.signal});let f=!1,g=!1;const y=(T=h.url).indexOf("sku=")>0&&us(T);var T;r.type==="json"&&h.headers.set("Accept","application/json");const S=(P,M,k)=>{if(g)return;if(P&&P.message!=="SecurityError"&&Gt(P.toString()),M&&k)return E(M);const N=Date.now();fetch(h).then(O=>{if(O.ok){const G=y?O.clone():null;return E(O,G,N)}return a(new ho(O.statusText,O.status,r.url))}).catch(O=>{O.name!=="AbortError"&&a(new Error(`${O.message} ${r.url}`))})},E=(P,M,k)=>{(r.type==="arrayBuffer"?P.arrayBuffer():r.type==="json"?P.json():P.text()).then(N=>{g||(M&&k&&function(O,G,H){if(Wo(),wr==null)return;const X=an(G.headers.get("cache-control")||"");if(X["no-store"])return;const Q={status:G.status,statusText:G.statusText,headers:new Headers};G.headers.forEach((de,_e)=>Q.headers.set(_e,de)),X["max-age"]&&Q.headers.set("Expires",new Date(H+1e3*X["max-age"]).toUTCString());const J=Q.headers.get("expires");if(!J||new Date(J).getTime()-H<42e4)return;let fe=op(O.url,{persistentParams:ap});if(G.status===206){const de=O.headers.get("Range");if(!de)return;Q.status=200,fe=rp(fe,{range:de})}const ae=new Response((ce=G.status)!==200&&ce!==404&&[101,103,204,205,304].includes(ce)?null:G.body,Q);var ce;Wo(),wr!=null&&wr.then(de=>de.put(fe,ae)).catch(de=>Gt(de.message))}(h,M,k),f=!0,a(null,N,P.headers))}).catch(N=>{g||a(new Error(N.message))})};return y?function(P,M){if(Wo(),wr==null)return M(null);wr.then(k=>{let N=op(P.url,{persistentParams:ap});const O=P.headers.get("Range");O&&(N=rp(N,{range:O})),k.match(N).then(G=>{const H=function(X){if(!X)return!1;const Q=new Date(X.headers.get("expires")||0),J=an(X.headers.get("cache-control")||"");return Number(Q)>Date.now()&&!J["no-cache"]}(G);k.delete(N).catch(M),H&&k.put(N,G.clone()).catch(M),M(null,G,H)}).catch(M)}).catch(M)}(h,S):S(null,null),{cancel:()=>{g=!0,f||u.abort()}}}(n,e);var i},Nc=function(n,e){return ks(Object.assign(n,{type:"arrayBuffer"}),e)};function Lv(n){const e=document.createElement("a");return e.href=n,e.protocol===location.protocol&&e.host===location.host}let jc,wi;jc=[],wi=0;const lh=function(n,e){if(ps.supported&&(n.headers||(n.headers={}),n.headers.accept="image/webp,*/*"),wi>=Xn.MAX_PARALLEL_IMAGE_REQUESTS){const u={requestParameters:n,callback:e,cancelled:!1,cancel(){this.cancelled=!0}};return jc.push(u),u}wi++;let i=!1;const r=()=>{if(!i)for(i=!0,wi--;jc.length&&wi<Xn.MAX_PARALLEL_IMAGE_REQUESTS;){const u=jc.shift(),{requestParameters:h,callback:f,cancelled:g}=u;g||(u.cancel=lh(h,f).cancel)}},a=Nc(n,(u,h,f)=>{r(),u?e(u):h&&function(g,y){const T=new Blob([new Uint8Array(g)],{type:"image/png"});createImageBitmap(T).then(S=>{y(null,S)}).catch(S=>{y(new Error(`Could not load image because of ${S.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(h,(g,y)=>e(g,y,f))});return{cancel:()=>{a.cancel(),r()}}};var lp,g_,y_,ca={exports:{}},Vc={exports:{}},Uc={exports:{}},cp=function(){if(y_)return ca.exports;y_=1;var n=(lp||(lp=1,Vc.exports=function(i,r){var a,u,h,f,g,y,T,S;for(u=i.length-(a=3&i.length),h=r,g=3432918353,y=461845907,S=0;S<u;)T=255&i.charCodeAt(S)|(255&i.charCodeAt(++S))<<8|(255&i.charCodeAt(++S))<<16|(255&i.charCodeAt(++S))<<24,++S,h=27492+(65535&(f=5*(65535&(h=(h^=T=(65535&(T=(T=(65535&T)*g+(((T>>>16)*g&65535)<<16)&4294967295)<<15|T>>>17))*y+(((T>>>16)*y&65535)<<16)&4294967295)<<13|h>>>19))+((5*(h>>>16)&65535)<<16)&4294967295))+(((f>>>16)+58964&65535)<<16);switch(T=0,a){case 3:T^=(255&i.charCodeAt(S+2))<<16;case 2:T^=(255&i.charCodeAt(S+1))<<8;case 1:h^=T=(65535&(T=(T=(65535&(T^=255&i.charCodeAt(S)))*g+(((T>>>16)*g&65535)<<16)&4294967295)<<15|T>>>17))*y+(((T>>>16)*y&65535)<<16)&4294967295}return h^=i.length,h=2246822507*(65535&(h^=h>>>16))+((2246822507*(h>>>16)&65535)<<16)&4294967295,h=3266489909*(65535&(h^=h>>>13))+((3266489909*(h>>>16)&65535)<<16)&4294967295,(h^=h>>>16)>>>0}),Vc.exports),e=(g_||(g_=1,Uc.exports=function(i,r){for(var a,u=i.length,h=r^u,f=0;u>=4;)a=1540483477*(65535&(a=255&i.charCodeAt(f)|(255&i.charCodeAt(++f))<<8|(255&i.charCodeAt(++f))<<16|(255&i.charCodeAt(++f))<<24))+((1540483477*(a>>>16)&65535)<<16),h=1540483477*(65535&h)+((1540483477*(h>>>16)&65535)<<16)^(a=1540483477*(65535&(a^=a>>>24))+((1540483477*(a>>>16)&65535)<<16)),u-=4,++f;switch(u){case 3:h^=(255&i.charCodeAt(f+2))<<16;case 2:h^=(255&i.charCodeAt(f+1))<<8;case 1:h=1540483477*(65535&(h^=255&i.charCodeAt(f)))+((1540483477*(h>>>16)&65535)<<16)}return h=1540483477*(65535&(h^=h>>>13))+((1540483477*(h>>>16)&65535)<<16),(h^=h>>>15)>>>0}),Uc.exports);return ca.exports=n,ca.exports.murmur3=n,ca.exports.murmur2=e,ca.exports}(),ch=So(cp);class Zo{constructor(e,...i){Object.assign(this,i[0]||{}),this.type=e}}class uh extends Zo{constructor(e,i={}){super("error",Object.assign({error:e},i))}}function up(n,e,i){i[n]&&i[n].indexOf(e)!==-1||(i[n]=i[n]||[],i[n].push(e))}function hp(n,e,i){if(i&&i[n]){const r=i[n].indexOf(e);r!==-1&&i[n].splice(r,1)}}class Xo{on(e,i){return this._listeners=this._listeners||{},up(e,i,this._listeners),this}off(e,i){return hp(e,i,this._listeners),hp(e,i,this._oneTimeListeners),this}once(e,i){return i?(this._oneTimeListeners=this._oneTimeListeners||{},up(e,i,this._oneTimeListeners),this):new Promise(r=>{this.once(e,r)})}fire(e,i){const r=typeof e=="string"?new Zo(e,i):e,a=r.type;if(this.listens(a)){r.target=this;const u=this._listeners&&this._listeners[a]?this._listeners[a].slice():[];for(const g of u)g.call(this,r);const h=this._oneTimeListeners&&this._oneTimeListeners[a]?this._oneTimeListeners[a].slice():[];for(const g of h)hp(a,g,this._oneTimeListeners),g.call(this,r);const f=this._eventedParent;if(f){const g=typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData;Object.assign(r,g),f.fire(r)}}else r instanceof uh&&console.error(r.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,i){return this._eventedParent=e,this._eventedParentData=i,this}}class to{constructor(e){typeof e=="string"?this.name=e:(this.name=e.name,this.iconsetId=e.iconsetId)}static from(e){return new to(e)}static toString(e){return e.iconsetId?`${e.name}${e.iconsetId}`:e.name}static parse(e){const[i,r]=e.split("");return new to({name:i,iconsetId:r})}static isEqual(e,i){return e.name===i.name&&e.iconsetId===i.iconsetId}toString(){return to.toString(this)}serialize(){return{name:this.name,iconsetId:this.iconsetId}}}var hh,Eo={},dp=function(){if(hh)return Eo;hh=1;var n={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 e(u){return(u=Math.round(u))<0?0:u>255?255:u}function i(u){return e(u[u.length-1]==="%"?parseFloat(u)/100*255:parseInt(u))}function r(u){return(h=u[u.length-1]==="%"?parseFloat(u)/100:parseFloat(u))<0?0:h>1?1:h;var h}function a(u,h,f){return f<0?f+=1:f>1&&(f-=1),6*f<1?u+(h-u)*f*6:2*f<1?h:3*f<2?u+(h-u)*(2/3-f)*6:u}try{Eo.parseCSSColor=function(u){var h,f=u.replace(/ /g,"").toLowerCase();if(f in n)return n[f].slice();if(f[0]==="#")return f.length===4?(h=parseInt(f.substr(1),16))>=0&&h<=4095?[(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,1]:null:f.length===7&&(h=parseInt(f.substr(1),16))>=0&&h<=16777215?[(16711680&h)>>16,(65280&h)>>8,255&h,1]:null;var g=f.indexOf("("),y=f.indexOf(")");if(g!==-1&&y+1===f.length){var T=f.substr(0,g),S=f.substr(g+1,y-(g+1)).split(","),E=1;switch(T){case"rgba":if(S.length!==4)return null;E=r(S.pop());case"rgb":return S.length!==3?null:[i(S[0]),i(S[1]),i(S[2]),E];case"hsla":if(S.length!==4)return null;E=r(S.pop());case"hsl":if(S.length!==3)return null;var P=(parseFloat(S[0])%360+360)%360/360,M=r(S[1]),k=r(S[2]),N=k<=.5?k*(M+1):k+M-k*M,O=2*k-N;return[e(255*a(O,N,P+1/3)),e(255*a(O,N,P)),e(255*a(O,N,P-1/3)),E];default:return null}}return null}}catch{}return Eo}();class ki{constructor(e,i,r,a=1){this.r=e,this.g=i,this.b=r,this.a=a}static parse(e){if(!e)return;if(e instanceof ki)return e;if(typeof e!="string")return;const i=dp.parseCSSColor(e);return i?new ki(i[0]/255,i[1]/255,i[2]/255,i[3]):void 0}toString(){const[e,i,r,a]=[this.r,this.g,this.b,this.a];return`rgba(${Math.round(255*e)},${Math.round(255*i)},${Math.round(255*r)},${a})`}toNonPremultipliedRenderColor(e){const{r:i,g:r,b:a,a:u}=this;return new v_(e,i,r,a,u)}toPremultipliedRenderColor(e){const{r:i,g:r,b:a,a:u}=this;return new x_(e,i*u,r*u,a*u,u)}clone(){return new ki(this.r,this.g,this.b,this.a)}}class pp{constructor(e,i,r,a,u,h=!1){if(this.premultiplied=!1,this.premultiplied=h,e){const f=e.image.height,g=f*f;this.premultiplied?(i=u===0?0:i/u*(f-1),r=u===0?0:r/u*(f-1),a=u===0?0:a/u*(f-1)):(i*=f-1,r*=f-1,a*=f-1),i=Math.max(0,Math.min(f-1,i)),r=Math.max(0,Math.min(f-1,r)),a=Math.max(0,Math.min(f-1,a));const y=Math.floor(i),T=Math.floor(r),S=Math.floor(a),E=Math.ceil(i),P=Math.ceil(r),M=Math.ceil(a),k=i-y,N=r-T,O=a-S,G=e.image.data,H=4*(y+T*g+S*f),X=4*(y+T*g+M*f),Q=4*(y+P*g+S*f),J=4*(y+P*g+M*f),fe=4*(E+T*g+S*f),ae=4*(E+T*g+M*f),ce=4*(E+P*g+S*f),de=4*(E+P*g+M*f);this.r=Bt(Bt(Bt(G[H],G[X],O),Bt(G[Q],G[J],O),N),Bt(Bt(G[fe],G[ae],O),Bt(G[ce],G[de],O),N),k)/255*(this.premultiplied?u:1),this.g=Bt(Bt(Bt(G[H+1],G[X+1],O),Bt(G[Q+1],G[J+1],O),N),Bt(Bt(G[fe+1],G[ae+1],O),Bt(G[ce+1],G[de+1],O),N),k)/255*(this.premultiplied?u:1),this.b=Bt(Bt(Bt(G[H+2],G[X+2],O),Bt(G[Q+2],G[J+2],O),N),Bt(Bt(G[fe+2],G[ae+2],O),Bt(G[ce+2],G[de+2],O),N),k)/255*(this.premultiplied?u:1),this.a=u}else this.r=i,this.g=r,this.b=a,this.a=u}toArray(){const{r:e,g:i,b:r,a}=this;return[255*e,255*i,255*r,a]}toHslaArray(){let{r:e,g:i,b:r,a}=this;if(this.premultiplied){if(a===0)return[0,0,0,0];const M=1/a;e*=M,i*=M,r*=M}const u=Math.min(Math.max(e,0),1),h=Math.min(Math.max(i,0),1),f=Math.min(Math.max(r,0),1),g=Math.min(u,h,f),y=Math.max(u,h,f),T=y-g,S=.5*(g+y);if(T===0)return[0,0,100*S,a];const E=S>.5?T/(2-y-g):T/(y+g);let P;switch(y){case u:P=60*((h-f)/T+(h<f?6:0));break;case h:P=60*((f-u)/T+2);break;default:P=60*((u-h)/T+4)}return[P,100*E,100*S,a]}toArray01(){const{r:e,g:i,b:r,a}=this;return[e,i,r,a]}toArray01Scaled(e){const{r:i,g:r,b:a}=this;return[i*e,r*e,a*e]}toArray01Linear(){const{r:e,g:i,b:r,a}=this;return[Math.pow(e,2.2),Math.pow(i,2.2),Math.pow(r,2.2),a]}}class v_ extends pp{constructor(e,i,r,a,u){super(e,i,r,a,u,!1)}}class x_ extends pp{constructor(e,i,r,a,u){super(e,i,r,a,u,!0)}}function Bt(n,e,i){return n*(1-i)+e*i}function fp(n,e,i){return n.map((r,a)=>Bt(r,e[a],i))}ki.black=new ki(0,0,0,1),ki.white=new ki(1,1,1,1),ki.transparent=new ki(0,0,0,0),ki.red=new ki(1,0,0,1),ki.blue=new ki(0,0,1,1);var $c=Object.freeze({__proto__:null,array:fp,color:function(n,e,i){return new ki(Bt(n.r,e.r,i),Bt(n.g,e.g,i),Bt(n.b,e.b,i),Bt(n.a,e.a,i))},number:Bt});class po extends Error{constructor(e,i){super(i),this.message=i,this.key=e}}class ua{constructor(e,i=[]){this.parent=e,this.bindings={};for(const[r,a]of i)this.bindings[r]=a}concat(e){return new ua(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}const tl={kind:"null"},St={kind:"number"},Di={kind:"string"},Li={kind:"boolean"},Lr={kind:"color"},ha={kind:"object"},Oi={kind:"value"},dh={kind:"collator"},Gc={kind:"formatted"},Ll={kind:"resolvedImage"};function Rr(n,e){return{kind:"array",itemType:n,N:e}}function Vn(n){if(n.kind==="array"){const e=Vn(n.itemType);return typeof n.N=="number"?`array<${e}, ${n.N}>`:n.itemType.kind==="value"?"array":`array<${e}>`}return n.kind}const ph=[tl,St,Di,Li,Lr,Gc,ha,Rr(Oi),Ll];function Hc(n,e){if(e.kind==="error")return null;if(n.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!Hc(n.itemType,e.itemType))&&(typeof n.N!="number"||n.N===e.N))return null}else{if(n.kind===e.kind)return null;if(n.kind==="value"){for(const i of ph)if(!Hc(i,e))return null}}return`Expected ${Vn(n)} but found ${Vn(e)} instead.`}function mp(n,e){return e.some(i=>i.kind===n.kind)}function qc(n,e){return e.some(i=>i==="null"?n===null:i==="array"?Array.isArray(n):i==="object"?n&&!Array.isArray(n)&&typeof n=="object":i===typeof n)}function fh(n,e){return n.kind==="array"&&e.kind==="array"?n.N===e.N&&fh(n.itemType,e.itemType):n.kind===e.kind}class _p{constructor(e,i,r){this.sensitivity=e?i?"variant":"case":i?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,i){return this.collator.compare(e,i)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class mh{constructor(e,i,r,a,u){this.text=e.normalize?e.normalize():e,this.image=i,this.scale=r,this.fontStack=a,this.textColor=u}}class Wr{constructor(e){this.sections=e}static fromString(e){return new Wr([new mh(e,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(e=>e.text.length!==0||!!e.image&&e.image.hasPrimary())}static factory(e){return e instanceof Wr?e:Wr.fromString(e)}toString(){return this.sections.length===0?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const i of this.sections){if(i.image){const a=i.image.getPrimary().id.toString();e.push(["image",a]);continue}e.push(i.text);const r={};i.fontStack&&(r["text-font"]=["literal",i.fontStack.split(",")]),i.scale&&(r["font-scale"]=i.scale),i.textColor&&(r["text-color"]=["rgba"].concat(i.textColor.toNonPremultipliedRenderColor(null).toArray())),e.push(r)}return e}}class Yo{constructor(e,i={}){this.id=to.from(e),this.params=i.params,this.sx=i.sx||1,this.sy=i.sy||1}toString(){return JSON.stringify(this)}static parse(e){let i,r,a,u;try{({id:i,params:r,sx:a,sy:u}=JSON.parse(e)||{})}catch{return null}return i?new Yo(i,{params:r,sx:a,sy:u}):null}scaleSelf(e,i=e){return this.sx*=e,this.sy*=i,this}}class Tr{constructor(e,i,r,a,u=!1){this.primaryId=to.from(e),this.primaryOptions=i,r&&(this.secondaryId=to.from(r)),this.secondaryOptions=a,this.available=u}toString(){return this.primaryId&&this.secondaryId?`[${this.primaryId.name},${this.secondaryId.name}]`:this.primaryId.name}hasPrimary(){return!!this.primaryId}getPrimary(){return new Yo(this.primaryId,this.primaryOptions)}hasSecondary(){return!!this.secondaryId}getSecondary(){return this.secondaryId?new Yo(this.secondaryId,this.secondaryOptions):null}static from(e){return typeof e=="string"?Tr.build({name:e}):e}static build(e,i,r,a){return!e||typeof e=="object"&&!("name"in e)?null:new Tr(e,r,i,a)}}function b_(n,e,i,r){return typeof n=="number"&&n>=0&&n<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof i=="number"&&i>=0&&i<=255?r===void 0||typeof r=="number"&&r>=0&&r<=1?null:`Invalid rgba value [${[n,e,i,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof r=="number"?[n,e,i,r]:[n,e,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function il(n){if(n===null||typeof n=="string"||typeof n=="boolean"||typeof n=="number"||n instanceof ki||n instanceof _p||n instanceof Wr||n instanceof Tr)return!0;if(Array.isArray(n)){for(const e of n)if(!il(e))return!1;return!0}if(typeof n=="object"){for(const e in n)if(!il(n[e]))return!1;return!0}return!1}function Un(n){if(n===null)return tl;if(typeof n=="string")return Di;if(typeof n=="boolean")return Li;if(typeof n=="number")return St;if(n instanceof ki)return Lr;if(n instanceof _p)return dh;if(n instanceof Wr)return Gc;if(n instanceof Tr)return Ll;if(Array.isArray(n)){const e=n.length;let i;for(const r of n){const a=Un(r);if(i){if(i===a)continue;i=Oi;break}i=a}return Rr(i||Oi,e)}return ha}function fs(n){const e=typeof n;return n===null?"":e==="string"||e==="number"||e==="boolean"?String(n):n instanceof Wr||n instanceof Tr||n instanceof ki?n.toString():JSON.stringify(n)}class Os{constructor(e,i){this.type=e,this.value=i}static parse(e,i){if(e.length!==2)return i.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!il(e[1]))return i.error("invalid value");const r=e[1];let a=Un(r);const u=i.expectedType;return a.kind!=="array"||a.N!==0||!u||u.kind!=="array"||typeof u.N=="number"&&u.N!==0||(a=u),new Os(a,r)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof ki?["rgba"].concat(this.value.toNonPremultipliedRenderColor(null).toArray()):this.value instanceof Wr?this.value.serialize():this.value}}class Yn{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const gp={string:Di,number:St,boolean:Li,object:ha};class Zr{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");let r,a=1;const u=e[0];if(u==="array"){let f,g;if(e.length>2){const y=e[1];if(typeof y!="string"||!(y in gp)||y==="object")return i.error('The item type argument of "array" must be one of string, number, boolean',1);f=gp[y],a++}else f=Oi;if(e.length>3){if(e[2]!==null&&(typeof e[2]!="number"||e[2]<0||e[2]!==Math.floor(e[2])))return i.error('The length argument to "array" must be a positive integer literal',2);g=e[2],a++}r=Rr(f,g)}else r=gp[u];const h=[];for(;a<e.length;a++){const f=i.parse(e[a],a,Oi);if(!f)return null;h.push(f)}return new Zr(r,h)}evaluate(e){for(let i=0;i<this.args.length;i++){const r=this.args[i].evaluate(e);if(!Hc(this.type,Un(r)))return r;if(i===this.args.length-1)throw new Yn(`The expression ${JSON.stringify(this.args[i].serialize())} evaluated to ${Vn(Un(r))} but was expected to be of type ${Vn(this.type)}.`)}return null}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=this.type,i=[e.kind];if(e.kind==="array"){const r=e.itemType;if(r.kind==="string"||r.kind==="number"||r.kind==="boolean"){i.push(r.kind);const a=e.N;(typeof a=="number"||this.args.length>1)&&i.push(a)}}return i.concat(this.args.map(r=>r.serialize()))}}class Kt{constructor(e){this.type=Gc,this.sections=e}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");const r=e[1];if(!Array.isArray(r)&&typeof r=="object")return i.error("First argument must be an image or text section.");const a=[];let u=!1;for(let h=1;h<=e.length-1;++h){const f=e[h];if(u&&typeof f=="object"&&!Array.isArray(f)){u=!1;let g=null;if(f["font-scale"]&&(g=i.parseObjectValue(f["font-scale"],h,"font-scale",St),!g))return null;let y=null;if(f["text-font"]&&(y=i.parseObjectValue(f["text-font"],h,"text-font",Rr(Di)),!y))return null;let T=null;if(f["text-color"]&&(T=i.parseObjectValue(f["text-color"],h,"text-color",Lr),!T))return null;const S=a[a.length-1];S.scale=g,S.font=y,S.textColor=T}else{const g=i.parse(e[h],h,Oi);if(!g)return null;const y=g.type.kind;if(y!=="string"&&y!=="value"&&y!=="null"&&y!=="resolvedImage")return i.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");u=!0,a.push({content:g,scale:null,font:null,textColor:null})}}return new Kt(a)}evaluate(e){return new Wr(this.sections.map(i=>{const r=i.content.evaluate(e);return fh(Un(r),Ll)?new mh("",r,null,null,null):new mh(fs(r),null,i.scale?i.scale.evaluate(e):null,i.font?i.font.evaluate(e).join(","):null,i.textColor?i.textColor.evaluate(e):null)}))}eachChild(e){for(const i of this.sections)e(i.content),i.scale&&e(i.scale),i.font&&e(i.font),i.textColor&&e(i.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const i of this.sections){e.push(i.content.serialize());const r={};i.scale&&(r["font-scale"]=i.scale.serialize()),i.font&&(r["text-font"]=i.font.serialize()),i.textColor&&(r["text-color"]=i.textColor.serialize()),e.push(r)}return e}}class Ct{constructor(e,i,r,a){this._imageWarnHistory={},this.type=Ll,this.namePrimary=e,this.nameSecondary=i,r&&(this.paramsPrimary=r.params,this.iconsetIdPrimary=r.iconset?r.iconset.id:void 0),a&&(this.paramsSecondary=a.params,this.iconsetIdSecondary=a.iconset?a.iconset.id:void 0)}static parse(e,i){if(e.length<2)return i.error("Expected two or more arguments.");let r=1;const a=[];function u(){if(r<e.length){const f=i.parse(e[r],r++,Di);return f?(a.push({image:f,options:{}}),!0):(i.error(a.length?"Secondary image variant is not a string.":"No image name provided."),!1)}return!0}function h(){if(r<e.length){const g=e[r];if((f=g)===null||typeof f!="object"||Array.isArray(f))return!0;const y=g.params,T=g.iconset,S=i.concat(r);if(!y&&!T)return r++,!0;if(y){if(typeof y!="object"||y.constructor!==Object)return S.error('Image options "params" should be an object'),!1;const E={},P=S.concat(void 0,"params");for(const M in y){if(!M)return P.error("Image parameter name should be non-empty"),!1;const k=P.concat(void 0,M).parse(y[M],void 0,Lr,void 0,{typeAnnotation:"coerce"});if(!k)return!1;E[M]=k}a[a.length-1].options.params=E}if(T){if(typeof T!="object"||T.constructor!==Object)return S.error('Image options "iconset" should be an object'),!1;if(!T.id)return S.error('Image options "iconset" should have an "id" property'),!1;a[a.length-1].options.iconset=T}return r++,!0}var f;return!0}for(let f=0;f<2;f++)if(!u()||!h())return;return new Ct(a[0].image,a[1]?a[1].image:void 0,a[0].options,a[1]?a[1].options:void 0)}evaluateParams(e,i){const r={};if(i){for(const a in i)if(i[a])try{r[a]=i[a].evaluate(e)}catch{continue}if(Object.keys(r).length!==0)return{params:r}}}evaluate(e){const i={name:this.namePrimary.evaluate(e),iconsetId:this.iconsetIdPrimary},r=this.nameSecondary?{name:this.nameSecondary.evaluate(e),iconsetId:this.iconsetIdSecondary}:void 0,a=Tr.build(i,r,this.paramsPrimary?this.evaluateParams(e,this.paramsPrimary):void 0,this.paramsSecondary?this.evaluateParams(e,this.paramsSecondary):void 0);if(a&&e.availableImages){const u=a.getPrimary().id;if(a.available=e.availableImages.some(h=>to.isEqual(h,u)),a.available){const h=a.getSecondary()?a.getSecondary().id:null;h&&(a.available=e.availableImages.some(f=>to.isEqual(f,h)))}}return a}eachChild(e){if(e(this.namePrimary),this.paramsPrimary)for(const i in this.paramsPrimary)this.paramsPrimary[i]&&e(this.paramsPrimary[i]);if(this.nameSecondary&&(e(this.nameSecondary),this.paramsSecondary))for(const i in this.paramsSecondary)this.paramsSecondary[i]&&e(this.paramsSecondary[i])}outputDefined(){return!1}serializeOptions(e,i){const r={};if(i&&(r.iconset={id:i}),e){r.params={};for(const a in e)e[a]&&(r.params[a]=e[a].serialize())}return Object.keys(r).length>0?r:void 0}serialize(){const e=["image",this.namePrimary.serialize()];if(this.paramsPrimary||this.iconsetIdPrimary){const i=this.serializeOptions(this.paramsPrimary,this.iconsetIdPrimary);i&&e.push(i)}if(this.nameSecondary&&(e.push(this.nameSecondary.serialize()),this.paramsSecondary||this.iconsetIdSecondary)){const i=this.serializeOptions(this.paramsSecondary,this.iconsetIdSecondary);i&&e.push(i)}return e}}function zl(n){return Wc(n)?"string":kl(n)?"number":Ft(n)?"boolean":Array.isArray(n)?"array":n===null?"null":jt(n)?"object":typeof n}function jt(n){return n!=null&&!Array.isArray(n)&&typeof n!="function"&&!(n instanceof String||n instanceof Number||n instanceof Boolean)&&typeof n=="object"}function Wc(n){return typeof n=="string"||n instanceof String}function kl(n){return typeof n=="number"||n instanceof Number}function Ft(n){return typeof n=="boolean"||n instanceof Boolean}const w_={"to-boolean":Li,"to-color":Lr,"to-number":St,"to-string":Di};class Ko{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");const r=e[0],a=[];let u=tl;if(r==="to-array"){if(!Array.isArray(e[1]))return null;const h=e[1].length;if(i.expectedType){if(i.expectedType.kind!=="array")return i.error(`Expected ${i.expectedType.kind} but found array.`);u=Rr(i.expectedType.itemType,h)}else{if(!(h>0&&il(e[1][0])))return null;u=Rr(Un(e[1][0]),h)}for(let f=0;f<h;f++){const g=e[1][f];let y;if(Array.isArray(g))y=i.parse(g,void 0,u.itemType);else{const T=zl(g);if(T!==u.itemType.kind)return i.error(`Expected ${u.itemType.kind} but found ${T}.`);y=i.registry.literal.parse(["literal",g===void 0?null:g],i)}if(!y)return null;a.push(y)}}else{if((r==="to-boolean"||r==="to-string")&&e.length!==2)return i.error("Expected one argument.");u=w_[r];for(let h=1;h<e.length;h++){const f=i.parse(e[h],h,Oi);if(!f)return null;a.push(f)}}return new Ko(u,a)}evaluate(e){if(this.type.kind==="boolean")return!!this.args[0].evaluate(e);if(this.type.kind==="color"){let i,r;for(const a of this.args){if(i=a.evaluate(e),r=null,i instanceof ki)return i;if(typeof i=="string"){const u=e.parseColor(i);if(u)return u}else if(Array.isArray(i)&&(r=i.length<3||i.length>4?`Invalid rbga value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.`:b_(i[0],i[1],i[2],i[3]),!r))return new ki(i[0]/255,i[1]/255,i[2]/255,i[3])}throw new Yn(r||`Could not parse color from value '${typeof i=="string"?i:String(JSON.stringify(i))}'`)}if(this.type.kind==="number"){let i=null;for(const r of this.args){if(i=r.evaluate(e),i===null)return 0;const a=Number(i);if(!isNaN(a))return a}throw new Yn(`Could not convert ${JSON.stringify(i)} to number.`)}return this.type.kind==="formatted"?Wr.fromString(fs(this.args[0].evaluate(e))):this.type.kind==="resolvedImage"?Tr.build(fs(this.args[0].evaluate(e))):this.type.kind==="array"?this.args.map(i=>i.evaluate(e)):fs(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if(this.type.kind==="formatted")return new Kt([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new Ct(this.args[0]).serialize();const e=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(i=>{e.push(i.serialize())}),e}}const T_=["Unknown","Point","LineString","Polygon"];class _h{constructor(e,i,r){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=e,this.options=i,this.iconImageUseTheme=r}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?T_[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(e){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,i=this.featureDistanceData.scale,{x:r,y:a}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(r*i-e[0])+this.featureDistanceData.bearing[1]*(a*i-e[1])}return 0}parseColor(e){let i=this._parseColorCache[e];return i||(i=this._parseColorCache[e]=ki.parse(e)),i}getConfig(e){return this.options?this.options.get(e):null}}class zr{constructor(e,i,r,a,u){this.name=e,this.type=i,this._evaluate=r,this.args=a,this._overloadIndex=u}evaluate(e){if(!this._evaluate){const i=zr.definitions[this.name];this._evaluate=Array.isArray(i)?i[2]:i.overloads[this._overloadIndex][1]}return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,i){const r=e[0],a=zr.definitions[r];if(!a)return i.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0);const u=Array.isArray(a)?a[0]:a.type,h=Array.isArray(a)?[[a[1],a[2]]]:a.overloads,f=[];let g=null,y=-1;for(const[T,S]of h){if(Array.isArray(T)&&T.length!==e.length-1)continue;f.push(T),y++,g=new Ch(i.registry,i.path,null,i.scope,void 0,i._scope,i.options,i.iconImageUseTheme);const E=[];let P=!1;for(let M=1;M<e.length;M++){const k=e[M],N=Array.isArray(T)?T[M-1]:T.type,O=g.parse(k,1+E.length,N);if(!O){P=!0;break}E.push(O)}if(!P)if(Array.isArray(T)&&T.length!==E.length)g.error(`Expected ${T.length} arguments, but found ${E.length} instead.`);else{for(let M=0;M<E.length;M++){const k=Array.isArray(T)?T[M]:T.type,N=E[M];g.concat(M+1).checkSubtype(k,N.type)}if(g.errors.length===0)return new zr(r,u,S,E,y)}}if(f.length===1)i.errors.push(...g.errors);else{const T=(f.length?f:h.map(([E])=>E)).map(zv).join(" | "),S=[];for(let E=1;E<e.length;E++){const P=i.parse(e[E],1+S.length);if(!P)return null;S.push(Vn(P.type))}i.error(`Expected arguments of type ${T}, but found (${S.join(", ")}) instead.`)}return null}static register(e,i){zr.definitions=i;for(const r in i)e[r]=zr}}function zv(n){return Array.isArray(n)?`(${n.map(Vn).join(", ")})`:`(${Vn(n.type)}...)`}class Ol{constructor(e,i,r){this.type=dh,this.locale=r,this.caseSensitive=e,this.diacriticSensitive=i}static parse(e,i){if(e.length!==2)return i.error("Expected one argument.");const r=e[1];if(typeof r!="object"||Array.isArray(r))return i.error("Collator options argument must be an object.");const a=r["case-sensitive"]===void 0?i.parse(!1,1,Li):i.parseObjectValue(r["case-sensitive"],1,"case-sensitive",Li);if(!a)return null;const u=r["diacritic-sensitive"]===void 0?i.parse(!1,1,Li):i.parseObjectValue(r["diacritic-sensitive"],1,"diacritic-sensitive",Li);if(!u)return null;let h=null;return r.locale&&(h=i.parseObjectValue(r.locale,1,"locale",Di),!h)?null:new Ol(a,u,h)}evaluate(e){return new _p(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}serialize(){const e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}function da(n,e,i=0,r=n.length-1,a=pa){for(;r>i;){if(r-i>600){const g=r-i+1,y=e-i+1,T=Math.log(g),S=.5*Math.exp(2*T/3),E=.5*Math.sqrt(T*S*(g-S)/g)*(y-g/2<0?-1:1);da(n,e,Math.max(i,Math.floor(e-y*S/g+E)),Math.min(r,Math.floor(e+(g-y)*S/g+E)),a)}const u=n[e];let h=i,f=r;for(nl(n,i,e),a(n[r],u)>0&&nl(n,i,r);h<f;){for(nl(n,h,f),h++,f--;a(n[h],u)<0;)h++;for(;a(n[f],u)>0;)f--}a(n[i],u)===0?nl(n,i,f):(f++,nl(n,f,r)),f<=e&&(i=f+1),e<=f&&(r=f-1)}}function nl(n,e,i){const r=n[e];n[e]=n[i],n[i]=r}function pa(n,e){return n<e?-1:n>e?1:0}function fa(n){let e=0;for(let i,r,a=0,u=n.length,h=u-1;a<u;h=a++)i=n[a],r=n[h],e+=(r.x-i.x)*(i.y+r.y);return e}function Zc(n,e){n[0]=Math.min(n[0],e[0]),n[1]=Math.min(n[1],e[1]),n[2]=Math.max(n[2],e[0]),n[3]=Math.max(n[3],e[1])}function Xc(n,e){return!(n[0]<=e[0]||n[2]>=e[2]||n[1]<=e[1]||n[3]>=e[3])}function kv(n,e,i){const r=n[0]-e[0],a=n[1]-e[1],u=n[0]-i[0],h=n[1]-i[1];return r*h-u*a===0&&r*u<=0&&a*h<=0}function gh(n,e,i){return e[1]>n[1]!=i[1]>n[1]&&n[0]<(i[0]-e[0])*(n[1]-e[1])/(i[1]-e[1])+e[0]}function rl(n,e,i=!1){let r=!1;for(let a=0,u=e.length;a<u;a++){const h=e[a];for(let f=0,g=h.length,y=g-1;f<g;y=f++){const T=h[y],S=h[f];if(kv(n,T,S))return i;gh(n,T,S)&&(r=!r)}}return r}function ma(n,e,i,r){const a=r[0]-i[0],u=r[1]-i[1],h=(n[0]-i[0])*u-a*(n[1]-i[1]),f=(e[0]-i[0])*u-a*(e[1]-i[1]);return h>0&&f<0||h<0&&f>0}function yh(n,e,i,r){return(a=[r[0]-i[0],r[1]-i[1]])[0]*(u=[e[0]-n[0],e[1]-n[1]])[1]-a[1]*u[0]!==0&&!(!ma(n,e,i,r)||!ma(i,r,n,e));var a,u}function yp(n){const e=new it(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),i=new it(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);for(const r of n[0])e.x>r.x&&(e.x=r.x),e.y>r.y&&(e.y=r.y),i.x<r.x&&(i.x=r.x),i.y<r.y&&(i.y=r.y);return{min:e,max:i}}const ms=8192;function Ov(n,e){const i=(180+n[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+n[1]*Math.PI/360)))/360,a=Math.pow(2,e.z);return[Math.round(i*a*ms),Math.round(r*a*ms)]}function Fv(n,e){for(let i=0;i<e.length;i++)if(rl(n,e[i]))return!0;return!1}function S_(n,e,i){for(const r of i)for(let a=0,u=r.length,h=u-1;a<u;h=a++)if(yh(n,e,r[h],r[a]))return!0;return!1}function E_(n,e){for(let i=0;i<n.length;++i)if(!rl(n[i],e))return!1;for(let i=0;i<n.length-1;++i)if(S_(n[i],n[i+1],e))return!1;return!0}function Bv(n,e){for(let i=0;i<e.length;i++)if(E_(n,e[i]))return!0;return!1}function vp(n,e,i){const r=[];for(let a=0;a<n.length;a++){const u=[];for(let h=0;h<n[a].length;h++){const f=Ov(n[a][h],i);Zc(e,f),u.push(f)}r.push(u)}return r}function _a(n,e,i){const r=[];for(let a=0;a<n.length;a++){const u=vp(n[a],e,i);r.push(u)}return r}function A_(n,e,i,r){if(n[0]<i[0]||n[0]>i[2]){const a=.5*r;let u=n[0]-i[0]>a?-r:i[0]-n[0]>a?r:0;u===0&&(u=n[0]-i[2]>a?-r:i[2]-n[0]>a?r:0),n[0]+=u}Zc(e,n)}function I_(n,e,i,r){const a=Math.pow(2,r.z)*ms,u=[r.x*ms,r.y*ms],h=[];if(!n)return h;for(const f of n)for(const g of f){const y=[g.x+u[0],g.y+u[1]];A_(y,e,i,a),h.push(y)}return h}function vh(n,e,i,r){const a=Math.pow(2,r.z)*ms,u=[r.x*ms,r.y*ms],h=[];if(!n)return h;for(const g of n){const y=[];for(const T of g){const S=[T.x+u[0],T.y+u[1]];Zc(e,S),y.push(S)}h.push(y)}if(e[2]-e[0]<=a/2){(f=e)[0]=f[1]=1/0,f[2]=f[3]=-1/0;for(const g of h)for(const y of g)A_(y,e,i,a)}var f;return h}class ga{constructor(e,i){this.type=Li,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(il(e[1])){const r=e[1];if(r.type==="FeatureCollection")for(let a=0;a<r.features.length;++a){const u=r.features[a].geometry.type;if(u==="Polygon"||u==="MultiPolygon")return new ga(r,r.features[a].geometry)}else if(r.type==="Feature"){const a=r.geometry.type;if(a==="Polygon"||a==="MultiPolygon")return new ga(r,r.geometry)}else if(r.type==="Polygon"||r.type==="MultiPolygon")return new ga(r,r)}return i.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(e.geometry()!=null&&e.canonicalID()!=null){if(e.geometryType()==="Point")return function(i,r){const a=[1/0,1/0,-1/0,-1/0],u=[1/0,1/0,-1/0,-1/0],h=i.canonicalID();if(!h)return!1;if(r.type==="Polygon"){const f=vp(r.coordinates,u,h),g=I_(i.geometry(),a,u,h);if(!Xc(a,u))return!1;for(const y of g)if(!rl(y,f))return!1}if(r.type==="MultiPolygon"){const f=_a(r.coordinates,u,h),g=I_(i.geometry(),a,u,h);if(!Xc(a,u))return!1;for(const y of g)if(!Fv(y,f))return!1}return!0}(e,this.geometries);if(e.geometryType()==="LineString")return function(i,r){const a=[1/0,1/0,-1/0,-1/0],u=[1/0,1/0,-1/0,-1/0],h=i.canonicalID();if(!h)return!1;if(r.type==="Polygon"){const f=vp(r.coordinates,u,h),g=vh(i.geometry(),a,u,h);if(!Xc(a,u))return!1;for(const y of g)if(!E_(y,f))return!1}if(r.type==="MultiPolygon"){const f=_a(r.coordinates,u,h),g=vh(i.geometry(),a,u,h);if(!Xc(a,u))return!1;for(const y of g)if(!Bv(y,f))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}const Yc={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},Bo=1/298.257223563,xp=Bo*(2-Bo),Fl=Math.PI/180;class Bl{static fromTile(e,i,r){const a=Math.PI*(1-2*(e+.5)/Math.pow(2,i)),u=Math.atan(.5*(Math.exp(a)-Math.exp(-a)))/Fl;return new Bl(u,r)}static get units(){return Yc}constructor(e,i){if(e===void 0)throw new Error("No latitude given.");if(i&&!Yc[i])throw new Error(`Unknown unit ${i}. Use one of: ${Object.keys(Yc).join(", ")}`);const r=6378.137*Fl*(i?Yc[i]:1),a=Math.cos(e*Fl),u=1/(1-xp*(1-a*a)),h=Math.sqrt(u);this.kx=r*h*a,this.ky=r*h*u*(1-xp)}distance(e,i){const r=Ao(e[0]-i[0])*this.kx,a=(e[1]-i[1])*this.ky;return Math.sqrt(r*r+a*a)}bearing(e,i){const r=Ao(i[0]-e[0])*this.kx;return Math.atan2(r,(i[1]-e[1])*this.ky)/Fl}destination(e,i,r){const a=r*Fl;return this.offset(e,Math.sin(a)*i,Math.cos(a)*i)}offset(e,i,r){return[e[0]+i/this.kx,e[1]+r/this.ky]}lineDistance(e){let i=0;for(let r=0;r<e.length-1;r++)i+=this.distance(e[r],e[r+1]);return i}area(e){let i=0;for(let r=0;r<e.length;r++){const a=e[r];for(let u=0,h=a.length,f=h-1;u<h;f=u++)i+=Ao(a[u][0]-a[f][0])*(a[u][1]+a[f][1])*(r?-1:1)}return Math.abs(i)/2*this.kx*this.ky}along(e,i){let r=0;if(i<=0)return e[0];for(let a=0;a<e.length-1;a++){const u=e[a],h=e[a+1],f=this.distance(u,h);if(r+=f,r>i)return xh(u,h,(i-(r-f))/f)}return e[e.length-1]}pointToSegmentDistance(e,i,r){let[a,u]=i,h=Ao(r[0]-a)*this.kx,f=(r[1]-u)*this.ky;if(h!==0||f!==0){const g=(Ao(e[0]-a)*this.kx*h+(e[1]-u)*this.ky*f)/(h*h+f*f);g>1?(a=r[0],u=r[1]):g>0&&(a+=h/this.kx*g,u+=f/this.ky*g)}return h=Ao(e[0]-a)*this.kx,f=(e[1]-u)*this.ky,Math.sqrt(h*h+f*f)}pointOnLine(e,i){let r=1/0,a=e[0][0],u=e[0][1],h=0,f=0;for(let g=0;g<e.length-1;g++){let y=e[g][0],T=e[g][1],S=Ao(e[g+1][0]-y)*this.kx,E=(e[g+1][1]-T)*this.ky,P=0;S===0&&E===0||(P=(Ao(i[0]-y)*this.kx*S+(i[1]-T)*this.ky*E)/(S*S+E*E),P>1?(y=e[g+1][0],T=e[g+1][1]):P>0&&(y+=S/this.kx*P,T+=E/this.ky*P)),S=Ao(i[0]-y)*this.kx,E=(i[1]-T)*this.ky;const M=S*S+E*E;M<r&&(r=M,a=y,u=T,h=g,f=P)}return{point:[a,u],index:h,t:Math.max(0,Math.min(1,f))}}lineSlice(e,i,r){let a=this.pointOnLine(r,e),u=this.pointOnLine(r,i);if(a.index>u.index||a.index===u.index&&a.t>u.t){const y=a;a=u,u=y}const h=[a.point],f=a.index+1,g=u.index;!bp(r[f],h[0])&&f<=g&&h.push(r[f]);for(let y=f+1;y<=g;y++)h.push(r[y]);return bp(r[g],u.point)||h.push(u.point),h}lineSliceAlong(e,i,r){let a=0;const u=[];for(let h=0;h<r.length-1;h++){const f=r[h],g=r[h+1],y=this.distance(f,g);if(a+=y,a>e&&u.length===0&&u.push(xh(f,g,(e-(a-y))/y)),a>=i)return u.push(xh(f,g,(i-(a-y))/y)),u;a>e&&u.push(g)}return u}bufferPoint(e,i){const r=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-r,e[0]+a,e[1]+r]}bufferBBox(e,i){const r=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-r,e[2]+a,e[3]+r]}insideBBox(e,i){return Ao(e[0]-i[0])>=0&&Ao(e[0]-i[2])<=0&&e[1]>=i[1]&&e[1]<=i[3]}}function bp(n,e){return n[0]===e[0]&&n[1]===e[1]}function xh(n,e,i){const r=Ao(e[0]-n[0]);return[n[0]+r*i,n[1]+(e[1]-n[1])*i]}function Ao(n){for(;n<-180;)n+=360;for(;n>180;)n-=360;return n}class Kc{constructor(e=[],i=(r,a)=>r<a?-1:r>a?1:0){if(this.data=e,this.length=this.data.length,this.compare=i,this.length>0)for(let r=(this.length>>1)-1;r>=0;r--)this._down(r)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(this.length===0)return;const e=this.data[0],i=this.data.pop();return--this.length>0&&(this.data[0]=i,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:i,compare:r}=this,a=i[e];for(;e>0;){const u=e-1>>1,h=i[u];if(r(a,h)>=0)break;i[e]=h,e=u}i[e]=a}_down(e){const{data:i,compare:r}=this,a=this.length>>1,u=i[e];for(;e<a;){let h=1+(e<<1);const f=h+1;if(f<this.length&&r(i[f],i[h])<0&&(h=f),r(i[h],u)>=0)break;i[e]=i[h],e=h}i[e]=u}}var dt=8192;function wp(n,e){return e.dist-n.dist}function Tp(n){const e=[1/0,1/0,-1/0,-1/0];if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==n[i])return!1;return!0}function Jc(n){return n[1]-n[0]+1}function _s(n,e){const i=n[1]>=n[0]&&n[1]<e;return i||console.warn("Distance Expression: Index is out of range"),i}function bh(n,e){if(n[0]>n[1])return[null,null];const i=Jc(n);if(e){if(i===2)return[n,null];const r=Math.floor(i/2);return[[n[0],n[0]+r],[n[0]+r,n[1]]]}{if(i===1)return[n,null];const r=Math.floor(i/2)-1;return[[n[0],n[0]+r],[n[0]+r+1,n[1]]]}}function ol(n,e){const i=[1/0,1/0,-1/0,-1/0];if(!_s(e,n.length))return i;for(let r=e[0];r<=e[1];++r)Zc(i,n[r]);return i}function wh(n){const e=[1/0,1/0,-1/0,-1/0];for(let i=0;i<n.length;++i)for(let r=0;r<n[i].length;++r)Zc(e,n[i][r]);return e}function Fs(n,e,i){if(Tp(n)||Tp(e))return NaN;let r=0,a=0;return n[2]<e[0]&&(r=e[0]-n[2]),n[0]>e[2]&&(r=n[0]-e[2]),n[1]>e[3]&&(a=n[1]-e[3]),n[3]<e[1]&&(a=e[1]-n[3]),i.distance([0,0],[r,a])}function Sp(n){return 360*n-180}function Th(n){return 360/Math.PI*Math.atan(Math.exp((180-360*n)*Math.PI/180))-90}function Qc(n,e,i=8192){const r=Math.pow(2,e.z),a=(n.y/i+e.y)/r;return[Sp((n.x/i+e.x)/r),Th(a)]}function C_(n,e){const i=[];for(let r=0;r<n.length;++r)i.push(Qc(n[r],e));return i}function P_(n,e,i){const r=i.pointOnLine(e,n).point;return i.distance(n,r)}function M_(n,e,i,r,a){const u=i.slice(r[0],r[1]+1);let h=1/0;for(let f=e[0];f<=e[1];++f)if((h=Math.min(h,P_(n[f],u,a)))===0)return 0;return h}function Sh(n,e,i,r,a){const u=Math.min(a.pointToSegmentDistance(n,i,r),a.pointToSegmentDistance(e,i,r)),h=Math.min(a.pointToSegmentDistance(i,n,e),a.pointToSegmentDistance(r,n,e));return Math.min(u,h)}function Nl(n,e,i,r,a){if(!_s(e,n.length)||!_s(r,i.length))return NaN;let u=1/0;for(let h=e[0];h<e[1];++h)for(let f=r[0];f<r[1];++f){if(yh(n[h],n[h+1],i[f],i[f+1]))return 0;u=Math.min(u,Sh(n[h],n[h+1],i[f],i[f+1],a))}return u}function _i(n,e,i,r,a){if(!_s(e,n.length)||!_s(r,i.length))return NaN;let u=1/0;for(let h=e[0];h<=e[1];++h)for(let f=r[0];f<=r[1];++f)if((u=Math.min(u,a.distance(n[h],i[f])))===0)return u;return u}function Nv(n,e,i){if(rl(n,e,!0))return 0;let r=1/0;for(const a of e){const u=a.length;if(u<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(a[0]!==a[u-1]&&(r=Math.min(r,i.pointToSegmentDistance(n,a[u-1],a[0])))===0||(r=Math.min(r,P_(n,a,i)))===0)return r}return r}function jv(n,e,i,r){if(!_s(e,n.length))return NaN;for(let u=e[0];u<=e[1];++u)if(rl(n[u],i,!0))return 0;let a=1/0;for(let u=e[0];u<e[1];++u)for(const h of i)for(let f=0,g=h.length,y=g-1;f<g;y=f++){if(yh(n[u],n[u+1],h[y],h[f]))return 0;a=Math.min(a,Sh(n[u],n[u+1],h[y],h[f],r))}return a}function R_(n,e){for(const i of n)for(let r=0;r<=i.length-1;++r)if(rl(i[r],e,!0))return!0;return!1}function D_(n,e,i,r=1/0){const a=wh(n),u=wh(e);if(r!==1/0&&Fs(a,u,i)>=r)return r;if(Xc(a,u)){if(R_(n,e))return 0}else if(R_(e,n))return 0;let h=r;for(const f of n)for(let g=0,y=f.length,T=y-1;g<y;T=g++)for(const S of e)for(let E=0,P=S.length,M=P-1;E<P;M=E++){if(yh(f[T],f[g],S[M],S[E]))return 0;h=Math.min(h,Sh(f[T],f[g],S[M],S[E],i))}return h}function Eh(n,e,i,r,a,u,h){if(u===null||h===null)return;const f=Fs(ol(r,u),ol(a,h),i);f<e&&n.push({dist:f,range1:u,range2:h})}function fn(n,e,i,r,a=1/0){let u=Math.min(r.distance(n[0],i[0][0]),a);if(u===0)return u;const h=new Kc([{dist:0,range1:[0,n.length-1],range2:[0,0]}],wp),f=e?50:100,g=wh(i);for(;h.length;){const y=h.pop();if(y.dist>=u)continue;const T=y.range1;if(Jc(T)<=f){if(!_s(T,n.length))return NaN;if(e){const S=jv(n,T,i,r);if((u=Math.min(u,S))===0)return u}else for(let S=T[0];S<=T[1];++S){const E=Nv(n[S],i,r);if((u=Math.min(u,E))===0)return u}}else{const S=bh(T,e);if(S[0]!==null){const E=Fs(ol(n,S[0]),g,r);E<u&&h.push({dist:E,range1:S[0],range2:[0,0]})}if(S[1]!==null){const E=Fs(ol(n,S[1]),g,r);E<u&&h.push({dist:E,range1:S[1],range2:[0,0]})}}}return u}function L_(n,e,i,r,a,u=1/0){let h=Math.min(u,a.distance(n[0],i[0]));if(h===0)return h;const f=new Kc([{dist:0,range1:[0,n.length-1],range2:[0,i.length-1]}],wp),g=e?50:100,y=r?50:100;for(;f.length;){const T=f.pop();if(T.dist>=h)continue;const S=T.range1,E=T.range2;if(Jc(S)<=g&&Jc(E)<=y){if(!_s(S,n.length)||!_s(E,i.length))return NaN;if(e&&r?h=Math.min(h,Nl(n,S,i,E,a)):e||r?e&&!r?h=Math.min(h,M_(i,E,n,S,a)):!e&&r&&(h=Math.min(h,M_(n,S,i,E,a))):h=Math.min(h,_i(n,S,i,E,a)),h===0)return h}else{const P=bh(S,e),M=bh(E,r);Eh(f,h,a,n,i,P[0],M[0]),Eh(f,h,a,n,i,P[0],M[1]),Eh(f,h,a,n,i,P[1],M[0]),Eh(f,h,a,n,i,P[1],M[1])}}return h}function Ep(n,e,i,r,a=1/0){let u=a;const h=ol(n,[0,n.length-1]);for(const f of i)if(!(u!==1/0&&Fs(h,ol(f,[0,f.length-1]),r)>=u)&&(u=Math.min(u,L_(n,e,f,!0,r,u)),u===0))return u;return u}function Ah(n,e,i,r,a=1/0){let u=a;const h=ol(n,[0,n.length-1]);for(const f of i){if(u!==1/0&&Fs(h,wh(f),r)>=u)continue;const g=fn(n,e,f,r,u);if(isNaN(g))return g;if((u=Math.min(u,g))===0)return u}return u}function Ap(n){return n==="Point"||n==="MultiPoint"||n==="LineString"||n==="MultiLineString"||n==="Polygon"||n==="MultiPolygon"}class sl{constructor(e,i){this.type=St,this.geojson=e,this.geometries=i}static parse(e,i){if(e.length!==2)return i.error(`'distance' expression requires either one argument, but found ' ${e.length-1} instead.`);if(il(e[1])){const r=e[1];if(r.type==="FeatureCollection"){for(let a=0;a<r.features.length;++a)if(Ap(r.features[a].geometry.type))return new sl(r,r.features[a].geometry)}else if(r.type==="Feature"){if(Ap(r.geometry.type))return new sl(r,r.geometry)}else if(Ap(r.type))return new sl(r,r)}return i.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(e){const i=e.geometry(),r=e.canonicalID();if(i!=null&&r!=null){if(e.geometryType()==="Point")return function(a,u,h){const f=[];for(const y of a)for(const T of y)f.push(Qc(T,u));const g=new Bl(f[0][1],"meters");return h.type==="Point"||h.type==="MultiPoint"||h.type==="LineString"?L_(f,!1,h.type==="Point"?[h.coordinates]:h.coordinates,h.type==="LineString",g):h.type==="MultiLineString"?Ep(f,!1,h.coordinates,g):h.type==="Polygon"||h.type==="MultiPolygon"?Ah(f,!1,h.type==="Polygon"?[h.coordinates]:h.coordinates,g):null}(i,r,this.geometries);if(e.geometryType()==="LineString")return function(a,u,h){const f=[];for(const y of a){const T=[];for(const S of y)T.push(Qc(S,u));f.push(T)}const g=new Bl(f[0][0][1],"meters");if(h.type==="Point"||h.type==="MultiPoint"||h.type==="LineString")return Ep(h.type==="Point"?[h.coordinates]:h.coordinates,h.type==="LineString",f,g);if(h.type==="MultiLineString"){let y=1/0;for(let T=0;T<h.coordinates.length;T++){const S=Ep(h.coordinates[T],!0,f,g,y);if(isNaN(S))return S;if((y=Math.min(y,S))===0)return y}return y}if(h.type==="Polygon"||h.type==="MultiPolygon"){let y=1/0;for(let T=0;T<f.length;T++){const S=Ah(f[T],!0,h.type==="Polygon"?[h.coordinates]:h.coordinates,g,y);if(isNaN(S))return S;if((y=Math.min(y,S))===0)return y}return y}return null}(i,r,this.geometries);if(e.geometryType()==="Polygon")return function(a,u,h){const f=[];for(const y of function(T){const S=T.length;if(S<=1)return[T];const E=[];let P,M;for(let k=0;k<S;k++){const N=fa(T[k]);N!==0&&(T[k].area=Math.abs(N),M===void 0&&(M=N<0),M===N<0?(P&&E.push(P),P=[T[k]]):P.push(T[k]))}return P&&E.push(P),E}(a)){const T=[];for(let S=0;S<y.length;++S)T.push(C_(y[S],u));f.push(T)}const g=new Bl(f[0][0][0][1],"meters");if(h.type==="Point"||h.type==="MultiPoint"||h.type==="LineString")return Ah(h.type==="Point"?[h.coordinates]:h.coordinates,h.type==="LineString",f,g);if(h.type==="MultiLineString"){let y=1/0;for(let T=0;T<h.coordinates.length;T++){const S=Ah(h.coordinates[T],!0,f,g,y);if(isNaN(S))return S;if((y=Math.min(y,S))===0)return y}return y}return h.type==="Polygon"||h.type==="MultiPolygon"?function(y,T,S){let E=1/0;for(const P of y)for(const M of T){const k=D_(P,M,S,E);if(isNaN(k))return k;if((E=Math.min(E,k))===0)return E}return E}(h.type==="Polygon"?[h.coordinates]:h.coordinates,f,g):null}(i,r,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 jl(n){if(n instanceof zr&&(n.name==="get"&&n.args.length===1||n.name==="feature-state"||n.name==="has"&&n.args.length===1||n.name==="properties"||n.name==="geometry-type"||n.name==="id"||/^filter-/.test(n.name))||n instanceof ga||n instanceof sl)return!1;if(n instanceof Ul)return n.featureConstant;let e=!0;return n.eachChild(i=>{e&&!jl(i)&&(e=!1)}),e}function eu(n){if(n instanceof zr&&n.name==="feature-state")return!1;let e=!0;return n.eachChild(i=>{e&&!eu(i)&&(e=!1)}),e}function Vl(n,e){if(n instanceof zr&&e.indexOf(n.name)>=0)return!1;let i=!0;return n.eachChild(r=>{i&&!Vl(r,e)&&(i=!1)}),i}function z_(n,e,i){return[n,e,i].filter(Boolean).join("")}function Ip(n,e){switch(n){case"string":return fs(e);case"number":return+e;case"boolean":return!!e;case"color":return ki.parse(e);case"formatted":return Wr.fromString(fs(e));case"resolvedImage":return Tr.build(fs(e))}return e}function k_(n,e,i,r){return r!==void 0&&(n=r*Math.round(n/r)),e!==void 0&&n<e&&(n=e),i!==void 0&&n>i&&(n=i),n}class Ul{constructor(e,i,r,a=!1){this.type=e,this.key=i,this.scope=r,this.featureConstant=a}static parse(e,i){let r=i.expectedType;if(r==null&&(r=Oi),e.length<2||e.length>3)return i.error("Invalid number of arguments for 'config' expression.");const a=i.parse(e[1],1);if(!(a instanceof Os))return i.error("Key name of 'config' expression must be a string literal.");let u,h=!0;const f=fs(a.value);if(e.length>=3){const g=i.parse(e[2],2);if(!(g instanceof Os))return i.error("Scope of 'config' expression must be a string literal.");u=fs(g.value)}if(i.options){const g=z_(f,u,i._scope),y=i.options.get(g);y&&(h=jl(y.value||y.default))}return new Ul(r,f,u,h)}evaluate(e){const i=z_(this.key,this.scope,e.scope),r=e.getConfig(i);if(!r)return null;const{type:a,value:u,values:h,minValue:f,maxValue:g,stepValue:y}=r,T=r.default.evaluate(e);let S=T;if(u){const E=e.scope;e.scope=(E||"").split("").slice(1).join(""),S=u.evaluate(e),e.scope=E}return a&&(S=Ip(a,S)),S===void 0||f===void 0&&g===void 0&&y===void 0||(typeof S=="number"?S=k_(S,f,g,y):Array.isArray(S)&&(S=S.map(E=>typeof E=="number"?k_(E,f,g,y):E))),u!==void 0&&S!==void 0&&h&&!h.includes(S)&&(S=T,a&&(S=Ip(a,S))),(a&&a!==this.type||S!==void 0&&!fh(Un(S),this.type))&&(S=Ip(this.type.kind,S)),S}eachChild(){}outputDefined(){return!1}serialize(){const e=["config",this.key];return this.scope&&e.concat(this.scope),e}}class Ih{constructor(e,i){this.type=i.type,this.name=e,this.boundExpression=i}static parse(e,i){if(e.length!==2||typeof e[1]!="string")return i.error("'var' expression requires exactly one string literal argument.");const r=e[1];return i.scope.has(r)?new Ih(r,i.scope.get(r)):i.error(`Unknown variable "${r}". Make sure "${r}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class Ch{constructor(e,i=[],r,a=new ua,u=[],h,f,g){this.registry=e,this.path=i,this.key=i.map(y=>typeof y=="string"?`['${y}']`:`[${y}]`).join(""),this.scope=a,this.errors=u,this.expectedType=r,this._scope=h,this.options=f,this.iconImageUseTheme=g}parse(e,i,r,a,u={}){return i||r?this.concat(i,null,r,a)._parse(e,u):this._parse(e,u)}parseObjectValue(e,i,r,a,u,h={}){return this.concat(i,r,a,u)._parse(e,h)}_parse(e,i){function r(a,u,h){return h==="assert"?new Zr(u,[a]):h==="coerce"?new Ko(u,[a]):a}if(e!==null&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"||(e=["literal",e]),Array.isArray(e)){if(e.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const a=typeof e[0]=="string"?this.registry[e[0]]:void 0;if(a){let u=a.parse(e,this);if(!u)return null;if(this.expectedType){const h=this.expectedType,f=u.type;if(h.kind!=="string"&&h.kind!=="number"&&h.kind!=="boolean"&&h.kind!=="object"&&h.kind!=="array"||f.kind!=="value")if(h.kind!=="color"&&h.kind!=="formatted"&&h.kind!=="resolvedImage"||f.kind!=="value"&&f.kind!=="string"){if(this.checkSubtype(h,f))return null}else u=r(u,h,i.typeAnnotation||"coerce");else u=r(u,h,i.typeAnnotation||"assert")}if(!(u instanceof Os)&&u.type.kind!=="resolvedImage"&&Cp(u)){const h=new _h(this._scope,this.options,this.iconImageUseTheme);try{u=new Os(u.type,u.evaluate(h))}catch(f){return this.error(f.message),null}}return u}return Ko.parse(["to-array",e],this)}return this.error(e===void 0?"'undefined' value invalid. Use null instead.":typeof e=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,i,r,a){let u=typeof e=="number"?this.path.concat(e):this.path;u=typeof i=="string"?u.concat(i):u;const h=a?this.scope.concat(a):this.scope;return new Ch(this.registry,u,r||null,h,this.errors,this._scope,this.options,this.iconImageUseTheme)}error(e,...i){const r=`${this.key}${i.map(a=>`[${a}]`).join("")}`;this.errors.push(new po(r,e))}checkSubtype(e,i){const r=Hc(e,i);return r&&this.error(r),r}}function Cp(n){if(n instanceof Ih)return Cp(n.boundExpression);if(n instanceof zr&&n.name==="error"||n instanceof Ol||n instanceof ga||n instanceof sl||n instanceof Ul)return!1;const e=n instanceof Ko||n instanceof Zr;let i=!0;return n.eachChild(r=>{i=e?i&&Cp(r):i&&r instanceof Os}),!!i&&jl(n)&&Vl(n,["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 Ph(n,e){const i=n.length-1;let r,a,u=0,h=i,f=0;for(;u<=h;)if(f=Math.floor((u+h)/2),r=n[f],a=n[f+1],r<=e){if(f===i||e<a)return f;u=f+1}else{if(!(r>e))throw new Yn("Input is not a number.");h=f-1}return 0}class tu{constructor(e,i,r){this.type=e,this.input=i,this.labels=[],this.outputs=[];for(const[a,u]of r)this.labels.push(a),this.outputs.push(u)}static parse(e,i){if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return i.error("Expected an even number of arguments.");const r=i.parse(e[1],1,St);if(!r)return null;const a=[];let u=null;i.expectedType&&i.expectedType.kind!=="value"&&(u=i.expectedType);for(let h=1;h<e.length;h+=2){const f=h===1?-1/0:e[h],g=e[h+1],y=h,T=h+1;if(typeof f!="number")return i.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',y);if(a.length&&a[a.length-1][0]>=f)return i.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',y);const S=i.parse(g,T,u);if(!S)return null;u=u||S.type,a.push([f,S])}return new tu(u,r,a)}evaluate(e){const i=this.labels,r=this.outputs;if(i.length===1)return r[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return r[0].evaluate(e);const u=i.length;return a>=i[u-1]?r[u-1].evaluate(e):r[Ph(i,a)].evaluate(e)}eachChild(e){e(this.input);for(const i of this.outputs)e(i)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let i=0;i<this.labels.length;i++)i>0&&e.push(this.labels[i]),e.push(this.outputs[i].serialize());return e}}const O_=.95047,F_=1.08883,B_=4/29,$l=6/29,N_=3*$l*$l,Vv=$l*$l*$l,Uv=Math.PI/180,$v=180/Math.PI;function Pp(n){return n>Vv?Math.pow(n,1/3):n/N_+B_}function Mp(n){return n>$l?n*n*n:N_*(n-B_)}function Rp(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function Dp(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function j_(n){const e=Dp(n.r),i=Dp(n.g),r=Dp(n.b),a=Pp((.4124564*e+.3575761*i+.1804375*r)/O_),u=Pp((.2126729*e+.7151522*i+.072175*r)/1);return{l:116*u-16,a:500*(a-u),b:200*(u-Pp((.0193339*e+.119192*i+.9503041*r)/F_)),alpha:n.a}}function V_(n){let e=(n.l+16)/116,i=isNaN(n.a)?e:e+n.a/500,r=isNaN(n.b)?e:e-n.b/200;return e=1*Mp(e),i=O_*Mp(i),r=F_*Mp(r),new ki(Rp(3.2404542*i-1.5371385*e-.4985314*r),Rp(-.969266*i+1.8760108*e+.041556*r),Rp(.0556434*i-.2040259*e+1.0572252*r),n.alpha)}function Lp(n,e,i){const r=e-n;return n+i*(r>180||r<-180?r-360*Math.round(r/360):r)}const ya={forward:j_,reverse:V_,interpolate:function(n,e,i){return{l:Bt(n.l,e.l,i),a:Bt(n.a,e.a,i),b:Bt(n.b,e.b,i),alpha:Bt(n.alpha,e.alpha,i)}}},Gl={forward:function(n){const{l:e,a:i,b:r}=j_(n),a=Math.atan2(r,i)*$v;return{h:a<0?a+360:a,c:Math.sqrt(i*i+r*r),l:e,alpha:n.a}},reverse:function(n){const e=n.h*Uv,i=n.c;return V_({l:n.l,a:Math.cos(e)*i,b:Math.sin(e)*i,alpha:n.alpha})},interpolate:function(n,e,i){return{h:Lp(n.h,e.h,i),c:Bt(n.c,e.c,i),l:Bt(n.l,e.l,i),alpha:Bt(n.alpha,e.alpha,i)}}};var U_=Object.freeze({__proto__:null,hcl:Gl,lab:ya});class Io{constructor(e,i,r,a,u){this.type=e,this.operator=i,this.interpolation=r,this.input=a,this.labels=[],this.outputs=[];for(const[h,f]of u)this.labels.push(h),this.outputs.push(f)}static interpolationFactor(e,i,r,a){let u=0;if(e.name==="exponential")u=zp(i,e.base,r,a);else if(e.name==="linear")u=zp(i,1,r,a);else if(e.name==="cubic-bezier"){const h=e.controlPoints;u=new Rl(h[0],h[1],h[2],h[3]).solve(zp(i,1,r,a))}return u}static parse(e,i){let[r,a,u,...h]=e;if(!Array.isArray(a)||a.length===0)return i.error("Expected an interpolation type expression.",1);if(a[0]==="linear")a={name:"linear"};else if(a[0]==="exponential"){const y=a[1];if(typeof y!="number")return i.error("Exponential interpolation requires a numeric base.",1,1);a={name:"exponential",base:y}}else{if(a[0]!=="cubic-bezier")return i.error(`Unknown interpolation type ${String(a[0])}`,1,0);{const y=a.slice(1);if(y.length!==4||y.some(T=>typeof T!="number"||T<0||T>1))return i.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);a={name:"cubic-bezier",controlPoints:y}}}if(e.length-1<4)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length-1>3&&(e.length-1)%2!=0)return i.error("Expected an even number of arguments.");if(u=i.parse(u,2,St),!u)return null;const f=[];let g=null;r==="interpolate-hcl"||r==="interpolate-lab"?g=Lr:i.expectedType&&i.expectedType.kind!=="value"&&(g=i.expectedType);for(let y=0;y<h.length;y+=2){const T=h[y],S=h[y+1],E=y+3,P=y+4;if(typeof T!="number")return i.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',E);if(f.length&&f[f.length-1][0]>=T)return i.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',E);const M=i.parse(S,P,g);if(!M)return null;g=g||M.type,f.push([T,M])}return g.kind==="number"||g.kind==="color"||g.kind==="array"&&g.itemType.kind==="number"&&typeof g.N=="number"?new Io(g,r,a,u,f):i.error(`Type ${Vn(g)} is not interpolatable.`)}evaluate(e){const i=this.labels,r=this.outputs;if(i.length===1)return r[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return r[0].evaluate(e);const u=i.length;if(a>=i[u-1])return r[u-1].evaluate(e);const h=Ph(i,a),f=Io.interpolationFactor(this.interpolation,a,i[h],i[h+1]),g=r[h].evaluate(e),y=r[h+1].evaluate(e);return this.operator==="interpolate"?$c[this.type.kind.toLowerCase()](g,y,f):this.operator==="interpolate-hcl"?Gl.reverse(Gl.interpolate(Gl.forward(g),Gl.forward(y),f)):ya.reverse(ya.interpolate(ya.forward(g),ya.forward(y),f))}eachChild(e){e(this.input);for(const i of this.outputs)e(i)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;e=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier",...this.interpolation.controlPoints];const i=[this.operator,e,this.input.serialize()];for(let r=0;r<this.labels.length;r++)i.push(this.labels[r],this.outputs[r].serialize());return i}}function zp(n,e,i,r){const a=r-i,u=n-i;return a===0?0:e===1?u/a:(Math.pow(e,u)-1)/(Math.pow(e,a)-1)}class iu{constructor(e,i){this.type=e,this.args=i}static parse(e,i){if(e.length<2)return i.error("Expectected at least one argument.");let r=null;const a=i.expectedType;a&&a.kind!=="value"&&(r=a);const u=[];for(const f of e.slice(1)){const g=i.parse(f,1+u.length,r,void 0,{typeAnnotation:"omit"});if(!g)return null;r=r||g.type,u.push(g)}const h=a&&u.some(f=>Hc(a,f.type));return new iu(h?Oi:r,u)}evaluate(e){let i,r=null,a=0;for(const u of this.args){if(a++,r=u.evaluate(e),r&&r instanceof Tr&&!r.available&&(i||(i=r),r=null,a===this.args.length))return i;if(r!==null)break}return r}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(i=>{e.push(i.serialize())}),e}}class nu{constructor(e,i){this.type=i.type,this.bindings=[].concat(e),this.result=i}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const i of this.bindings)e(i[1]);e(this.result)}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const r=[];for(let u=1;u<e.length-1;u+=2){const h=e[u];if(typeof h!="string")return i.error(`Expected string, but found ${typeof h} instead.`,u);if(/[^a-zA-Z0-9_]/.test(h))return i.error("Variable names must contain only alphanumeric characters or '_'.",u);const f=i.parse(e[u+1],u+1);if(!f)return null;r.push([h,f])}const a=i.parse(e[e.length-1],e.length-1,i.expectedType,r);return a?new nu(r,a):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[i,r]of this.bindings)e.push(i,r.serialize());return e.push(this.result.serialize()),e}}class va{constructor(e,i,r){this.type=e,this.index=i,this.input=r}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,St),a=i.parse(e[2],2,Rr(i.expectedType||Oi));return r&&a?new va(a.type.itemType,r,a):null}evaluate(e){const i=this.index.evaluate(e),r=this.input.evaluate(e);if(i<0)throw new Yn("Array index out of bounds: negative index");if(i>=r.length)throw new Yn("Array index out of bounds: index exceeds array size");if(i!==Math.floor(i))throw new Yn("Array index must be an integer. Use at-interpolated for fractional indices");return r[i]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class Mh{constructor(e,i,r){this.type=e,this.index=i,this.input=r}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,St),a=i.parse(e[2],2,Rr(i.expectedType||Oi));return r&&a?new Mh(a.type.itemType,r,a):null}evaluate(e){const i=this.index.evaluate(e),r=this.input.evaluate(e);if(i<0)throw new Yn(`Array index out of bounds: ${i} < 0.`);if(i>r.length-1)throw new Yn(`Array index out of bounds: ${i} > ${r.length-1}.`);if(i===Math.floor(i))return r[i];const a=Math.floor(i),u=Math.ceil(i),h=r[a],f=r[u];if(typeof h!="number"||typeof f!="number")throw new Yn(`Cannot interpolate between non-number values at index ${i}.`);const g=i-a;return h*(1-g)+f*g}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at-interpolated",this.index.serialize(),this.input.serialize()]}}class Rh{constructor(e,i){this.type=Li,this.needle=e,this.haystack=i}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Oi),a=i.parse(e[2],2,Oi);return r&&a?mp(r.type,[Li,Di,St,tl,Oi])?new Rh(r,a):i.error(`Expected first argument to be of type boolean, string, number or null, but found ${Vn(r.type)} instead`):null}evaluate(e){const i=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(r==null)return!1;if(!qc(i,["boolean","string","number","null"]))throw new Yn(`Expected first argument to be of type boolean, string, number or null, but found ${Vn(Un(i))} instead.`);if(!qc(r,["string","array"]))throw new Yn(`Expected second argument to be of type array or string, but found ${Vn(Un(r))} instead.`);return r.indexOf(i)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class Dh{constructor(e,i,r){this.type=St,this.needle=e,this.haystack=i,this.fromIndex=r}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Oi),a=i.parse(e[2],2,Oi);if(!r||!a)return null;if(!mp(r.type,[Li,Di,St,tl,Oi]))return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${Vn(r.type)} instead`);if(e.length===4){const u=i.parse(e[3],3,St);return u?new Dh(r,a,u):null}return new Dh(r,a)}evaluate(e){const i=this.needle.evaluate(e),r=this.haystack.evaluate(e);if(!qc(i,["boolean","string","number","null"]))throw new Yn(`Expected first argument to be of type boolean, string, number or null, but found ${Vn(Un(i))} instead.`);if(!qc(r,["string","array"]))throw new Yn(`Expected second argument to be of type array or string, but found ${Vn(Un(r))} instead.`);if(this.fromIndex){const a=this.fromIndex.evaluate(e);return r.indexOf(i,a)}return r.indexOf(i)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class ru{constructor(e,i,r,a,u,h){this.inputType=e,this.type=i,this.input=r,this.cases=a,this.outputs=u,this.otherwise=h}static parse(e,i){if(e.length<5)return i.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return i.error("Expected an even number of arguments.");let r,a;i.expectedType&&i.expectedType.kind!=="value"&&(a=i.expectedType);const u={},h=[];for(let y=2;y<e.length-1;y+=2){let T=e[y];const S=e[y+1];Array.isArray(T)||(T=[T]);const E=i.concat(y);if(T.length===0)return E.error("Expected at least one branch label.");for(const M of T){if(typeof M!="number"&&typeof M!="string")return E.error("Branch labels must be numbers or strings.");if(typeof M=="number"&&Math.abs(M)>Number.MAX_SAFE_INTEGER)return E.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof M=="number"&&Math.floor(M)!==M)return E.error("Numeric branch labels must be integer values.");if(r){if(E.checkSubtype(r,Un(M)))return null}else r=Un(M);if(u[String(M)]!==void 0)return E.error("Branch labels must be unique.");u[String(M)]=h.length}const P=i.parse(S,y,a);if(!P)return null;a=a||P.type,h.push(P)}const f=i.parse(e[1],1,Oi);if(!f)return null;const g=i.parse(e[e.length-1],e.length-1,a);return g?f.type.kind!=="value"&&i.concat(1).checkSubtype(r,f.type)?null:new ru(r,a,f,u,h,g):null}evaluate(e){const i=this.input.evaluate(e);return(fh(Un(i),this.inputType)&&this.outputs[this.cases[i]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],i=Object.keys(this.cases).sort(),r=[],a={};for(const h of i){const f=a[this.cases[h]];f===void 0?(a[this.cases[h]]=r.length,r.push([this.cases[h],[h]])):r[f][1].push(h)}const u=h=>this.inputType.kind==="number"?Number(h):h;for(const[h,f]of r)e.push(f.length===1?u(f[0]):f.map(u)),e.push(this.outputs[h].serialize());return e.push(this.otherwise.serialize()),e}}class ou{constructor(e,i,r){this.type=e,this.branches=i,this.otherwise=r}static parse(e,i){if(e.length<4)return i.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return i.error("Expected an odd number of arguments.");let r;i.expectedType&&i.expectedType.kind!=="value"&&(r=i.expectedType);const a=[];for(let h=1;h<e.length-1;h+=2){const f=i.parse(e[h],h,Li);if(!f)return null;const g=i.parse(e[h+1],h+1,r);if(!g)return null;a.push([f,g]),r=r||g.type}const u=i.parse(e[e.length-1],e.length-1,r);return u?new ou(r,a,u):null}evaluate(e){for(const[i,r]of this.branches)if(i.evaluate(e))return r.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[i,r]of this.branches)e(i),e(r);e(this.otherwise)}outputDefined(){return this.branches.every(([e,i])=>i.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(i=>{e.push(i.serialize())}),e}}class Hl{constructor(e,i,r,a){this.type=e,this.input=i,this.beginIndex=r,this.endIndex=a}static parse(e,i){if(e.length<=2||e.length>=5)return i.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Oi),a=i.parse(e[2],2,St);if(!r||!a)return null;if(!mp(r.type,[Rr(Oi),Di,Oi]))return i.error(`Expected first argument to be of type array or string, but found ${Vn(r.type)} instead`);if(e.length===4){const u=i.parse(e[3],3,St);return u?new Hl(r.type,r,a,u):null}return new Hl(r.type,r,a)}evaluate(e){const i=this.input.evaluate(e),r=this.beginIndex.evaluate(e);if(!qc(i,["string","array"]))throw new Yn(`Expected first argument to be of type array or string, but found ${Vn(Un(i))} instead.`);if(this.endIndex){const a=this.endIndex.evaluate(e);return i.slice(r,a)}return i.slice(r)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}class kp{constructor(e,i){this.type=Rr(Di),this.str=e,this.delimiter=i}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const r=i.parse(e[1],1,Di),a=i.parse(e[2],2,Di);return r&&a?new kp(r,a):void 0}evaluate(e){const i=this.str.evaluate(e),r=this.delimiter.evaluate(e);return i.split(r)}eachChild(e){e(this.str),e(this.delimiter)}outputDefined(){return!1}serialize(){return["split",this.str.serialize(),this.delimiter.serialize()]}}function $_(n,e){return n==="=="||n==="!="?e.kind==="boolean"||e.kind==="string"||e.kind==="number"||e.kind==="null"||e.kind==="value":e.kind==="string"||e.kind==="number"||e.kind==="value"}function Op(n,e,i,r){return r.compare(e,i)===0}function al(n,e,i){const r=n!=="=="&&n!=="!=";return class rC{constructor(u,h,f){this.type=Li,this.lhs=u,this.rhs=h,this.collator=f,this.hasUntypedArgument=u.type.kind==="value"||h.type.kind==="value"}static parse(u,h){if(u.length!==3&&u.length!==4)return h.error("Expected two or three arguments.");const f=u[0];let g=h.parse(u[1],1,Oi);if(!g)return null;if(!$_(f,g.type))return h.concat(1).error(`"${f}" comparisons are not supported for type '${Vn(g.type)}'.`);let y=h.parse(u[2],2,Oi);if(!y)return null;if(!$_(f,y.type))return h.concat(2).error(`"${f}" comparisons are not supported for type '${Vn(y.type)}'.`);if(g.type.kind!==y.type.kind&&g.type.kind!=="value"&&y.type.kind!=="value")return h.error(`Cannot compare types '${Vn(g.type)}' and '${Vn(y.type)}'.`);r&&(g.type.kind==="value"&&y.type.kind!=="value"?g=new Zr(y.type,[g]):g.type.kind!=="value"&&y.type.kind==="value"&&(y=new Zr(g.type,[y])));let T=null;if(u.length===4){if(g.type.kind!=="string"&&y.type.kind!=="string"&&g.type.kind!=="value"&&y.type.kind!=="value")return h.error("Cannot use collator to compare non-string types.");if(T=h.parse(u[3],3,dh),!T)return null}return new rC(g,y,T)}evaluate(u){const h=this.lhs.evaluate(u),f=this.rhs.evaluate(u);if(r&&this.hasUntypedArgument){const g=Un(h),y=Un(f);if(g.kind!==y.kind||g.kind!=="string"&&g.kind!=="number")throw new Yn(`Expected arguments for "${n}" to be (string, string) or (number, number), but found (${g.kind}, ${y.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const g=Un(h),y=Un(f);if(g.kind!=="string"||y.kind!=="string")return e(u,h,f)}return this.collator?i(u,h,f,this.collator.evaluate(u)):e(u,h,f)}eachChild(u){u(this.lhs),u(this.rhs),this.collator&&u(this.collator)}outputDefined(){return!0}serialize(){const u=[n];return this.eachChild(h=>{u.push(h.serialize())}),u}}}const Gv=al("==",function(n,e,i){return e===i},Op),Hv=al("!=",function(n,e,i){return e!==i},function(n,e,i,r){return!Op(0,e,i,r)}),qv=al("<",function(n,e,i){return e<i},function(n,e,i,r){return r.compare(e,i)<0}),G_=al(">",function(n,e,i){return e>i},function(n,e,i,r){return r.compare(e,i)>0}),H_=al("<=",function(n,e,i){return e<=i},function(n,e,i,r){return r.compare(e,i)<=0}),Lh=al(">=",function(n,e,i){return e>=i},function(n,e,i,r){return r.compare(e,i)>=0});class Fp{constructor(e,i,r,a,u,h){this.type=Di,this.number=e,this.locale=i,this.currency=r,this.unit=a,this.minFractionDigits=u,this.maxFractionDigits=h}static parse(e,i){if(e.length!==3)return i.error("Expected two arguments.");const r=i.parse(e[1],1,St);if(!r)return null;const a=e[2];if(typeof a!="object"||Array.isArray(a))return i.error("NumberFormat options argument must be an object.");let u=null;if(a.locale&&(u=i.parseObjectValue(a.locale,2,"locale",Di),!u))return null;let h=null;if(a.currency&&(h=i.parseObjectValue(a.currency,2,"currency",Di),!h))return null;let f=null;if(a.unit&&(f=i.parseObjectValue(a.unit,2,"unit",Di),!f))return null;let g=null;if(a["min-fraction-digits"]&&(g=i.parseObjectValue(a["min-fraction-digits"],2,"min-fraction-digits",St),!g))return null;let y=null;return a["max-fraction-digits"]&&(y=i.parseObjectValue(a["max-fraction-digits"],2,"max-fraction-digits",St),!y)?null:new Fp(r,u,h,f,g,y)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class zh{constructor(e){this.type=St,this.input=e}static parse(e,i){if(e.length!==2)return i.error(`Expected 1 argument, but found ${e.length-1} instead.`);const r=i.parse(e[1],1);return r?r.type.kind!=="array"&&r.type.kind!=="string"&&r.type.kind!=="value"?i.error(`Expected argument of type string or array, but found ${Vn(r.type)} instead.`):new zh(r):null}evaluate(e){const i=this.input.evaluate(e);if(typeof i=="string"||Array.isArray(i))return i.length;throw new Yn(`Expected value to be of type string or array, but found ${Vn(Un(i))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(i=>{e.push(i.serialize())}),e}}function q_(n){return function(){n=1831565813+(n|=0)|0;let e=Math.imul(n^n>>>15,1|n);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const ql={"==":Gv,"!=":Hv,">":G_,"<":qv,">=":Lh,"<=":H_,array:Zr,at:va,"at-interpolated":Mh,boolean:Zr,case:ou,coalesce:iu,collator:Ol,format:Kt,image:Ct,in:Rh,"index-of":Dh,interpolate:Io,"interpolate-hcl":Io,"interpolate-lab":Io,length:zh,let:nu,literal:Os,match:ru,number:Zr,"number-format":Fp,object:Zr,slice:Hl,step:tu,string:Zr,"to-boolean":Ko,"to-color":Ko,"to-number":Ko,"to-string":Ko,var:Ih,within:ga,distance:sl,config:Ul,split:kp};function Bp(n,[e,i,r,a]){e=e.evaluate(n),i=i.evaluate(n),r=r.evaluate(n);const u=a?a.evaluate(n):1,h=b_(e,i,r,u);if(h)throw new Yn(h);return new ki(e/255,i/255,r/255,u)}function Np(n,[e,i,r,a]){e=e.evaluate(n),i=i.evaluate(n),r=r.evaluate(n);const u=a?a.evaluate(n):1,h=function(y,T,S,E){return typeof y=="number"&&y>=0&&y<=360?typeof T=="number"&&T>=0&&T<=100&&typeof S=="number"&&S>=0&&S<=100?E===void 0||typeof E=="number"&&E>=0&&E<=1?null:`Invalid hsla value [${[y,T,S,E].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof E=="number"?[y,T,S,E]:[y,T,S]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof E=="number"?[y,T,S,E]:[y,T,S]).join(", ")}]: 'h' must be between 0 and 360.`}(e,i,r,u);if(h)throw new Yn(h);const f=`hsla(${e}, ${i}%, ${r}%, ${u})`,g=ki.parse(f);if(!g)throw new Yn(`Failed to parse HSLA color: ${f}`);return g}function W_(n,e){return n in e}function jp(n,e){const i=e[n];return i===void 0?null:i}function xa(n){return{type:n}}function kh(n){if(n instanceof Ul)return new Set([n.key]);let e=new Set;return n.eachChild(i=>{e=new Set([...e,...kh(i)])}),e}function ll(n){if(n instanceof zr&&n.name==="is-active-floor")return!0;let e=!1;return n.eachChild(i=>{!e&&ll(i)&&(e=!0)}),e}function Z_(n){return{result:"success",value:n}}function ba(n){return{result:"error",value:n}}function Vp(n,e){return!!n&&!!n.parameters&&n.parameters.indexOf(e)>-1}function Oh(n){return n["property-type"]==="data-driven"}function X_(n){return Vp(n.expression,"measure-light")}function Fh(n){return Vp(n.expression,"zoom")}function Up(n){return!!n.expression&&n.expression.interpolated}function $p(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}function Y_(n){return n}function Gp(n,e){const i=e.type==="color",r=n.stops&&typeof n.stops[0][0]=="object",a=r||!(r||n.property!==void 0),u=n.type||(Up(e)?"exponential":"interval");if(i&&((n=Object.assign({},n)).stops&&(n.stops=n.stops.map(y=>[y[0],ki.parse(y[1])])),n.default=ki.parse(n.default?n.default:e.default)),n.colorSpace&&n.colorSpace!=="rgb"&&!U_[n.colorSpace])throw new Error(`Unknown color space: ${n.colorSpace}`);let h,f,g;if(u==="exponential")h=cl;else if(u==="interval")h=Wv;else if(u==="categorical"){h=K_,f=Object.create(null);for(const y of n.stops)f[y[0]]=y[1];g=typeof n.stops[0][0]}else{if(u!=="identity")throw new Error(`Unknown function type "${u}"`);h=Zv}if(r){const y={},T=[];for(let P=0;P<n.stops.length;P++){const M=n.stops[P],k=M[0].zoom;y[k]===void 0&&(y[k]={zoom:k,type:n.type,property:n.property,default:n.default,stops:[]},T.push(k)),y[k].stops.push([M[0].value,M[1]])}const S=[];for(const P of T)S.push([y[P].zoom,Gp(y[P],e)]);const E={name:"linear"};return{kind:"composite",interpolationType:E,interpolationFactor:Io.interpolationFactor.bind(void 0,E),zoomStops:S.map(P=>P[0]),evaluate:({zoom:P},M)=>cl({stops:S,base:n.base},e,P).evaluate(P,M)}}if(a){const y=u==="exponential"?{name:"exponential",base:n.base!==void 0?n.base:1}:null;return{kind:"camera",interpolationType:y,interpolationFactor:Io.interpolationFactor.bind(void 0,y),zoomStops:n.stops.map(T=>T[0]),evaluate:({zoom:T})=>h(n,e,T,f,g)}}return{kind:"source",evaluate(y,T){const S=T&&T.properties?T.properties[n.property]:void 0;return S===void 0?su(n.default,e.default):h(n,e,S,f,g)}}}function su(n,e,i){return n!==void 0?n:e!==void 0?e:i!==void 0?i:void 0}function K_(n,e,i,r,a){return su(typeof i===a?r[i]:void 0,n.default,e.default)}function Wv(n,e,i){if(!kl(i))return su(n.default,e.default);const r=n.stops.length;if(r===1||i<=n.stops[0][0])return n.stops[0][1];if(i>=n.stops[r-1][0])return n.stops[r-1][1];const a=Ph(n.stops.map(u=>u[0]),i);return n.stops[a][1]}function cl(n,e,i){const r=n.base!==void 0?n.base:1;if(!kl(i))return su(n.default,e.default);const a=n.stops.length;if(a===1||i<=n.stops[0][0])return n.stops[0][1];if(i>=n.stops[a-1][0])return n.stops[a-1][1];const u=Ph(n.stops.map(T=>T[0]),i),h=function(T,S,E,P){const M=P-E,k=T-E;return M===0?0:S===1?k/M:(Math.pow(S,k)-1)/(Math.pow(S,M)-1)}(i,r,n.stops[u][0],n.stops[u+1][0]),f=n.stops[u][1],g=n.stops[u+1][1];let y=$c[e.type]||Y_;if(n.colorSpace&&n.colorSpace!=="rgb"){const T=U_[n.colorSpace];y=(S,E)=>T.reverse(T.interpolate(T.forward(S),T.forward(E),h))}return typeof f.evaluate=="function"?{evaluate(...T){const S=f.evaluate.apply(void 0,T),E=g.evaluate.apply(void 0,T);if(S!==void 0&&E!==void 0)return y(S,E,h)}}:y(f,g,h)}function Zv(n,e,i){return e.type==="color"?i=ki.parse(i):e.type==="formatted"?i=Wr.fromString(i.toString()):e.type==="resolvedImage"?i=Tr.build(i.toString()):zl(i)===e.type||e.type==="enum"&&e.values[i]||(i=void 0),su(i,n.default,e.default)}zr.register(ql,{error:[{kind:"error"},[Di],(n,[e])=>{throw new Yn(e.evaluate(n))}],typeof:[Di,[Oi],(n,[e])=>Vn(Un(e.evaluate(n)))],"to-rgba":[Rr(St,4),[Lr],(n,[e])=>e.evaluate(n).toNonPremultipliedRenderColor(null).toArray()],"to-hsla":[Rr(St,4),[Lr],(n,[e])=>e.evaluate(n).toNonPremultipliedRenderColor(null).toHslaArray()],rgb:[Lr,[St,St,St],Bp],rgba:[Lr,[St,St,St,St],Bp],hsl:[Lr,[St,St,St],Np],hsla:[Lr,[St,St,St,St],Np],has:{type:Li,overloads:[[[Di],(n,[e])=>W_(e.evaluate(n),n.properties())],[[Di,ha],(n,[e,i])=>W_(e.evaluate(n),i.evaluate(n))]]},get:{type:Oi,overloads:[[[Di],(n,[e])=>jp(e.evaluate(n),n.properties())],[[Di,ha],(n,[e,i])=>jp(e.evaluate(n),i.evaluate(n))]]},"feature-state":[Oi,[Di],(n,[e])=>jp(e.evaluate(n),n.featureState||{})],properties:[ha,[],n=>n.properties()],"geometry-type":[Di,[],n=>n.geometryType()],worldview:[Di,[],n=>n.globals.worldview||""],"is-active-floor":[Li,xa(Di),(n,e)=>{if(!(n.globals&&n.globals.activeFloors&&n.globals.activeFloors.size>0))return!1;if(e.length===0)return!0;const i=n.globals.activeFloors;return e.some(r=>{const a=r.evaluate(n);return i.has(a)})}],id:[Oi,[],n=>n.id()],zoom:[St,[],n=>n.globals.zoom],pitch:[St,[],n=>n.globals.pitch||0],"distance-from-center":[St,[],n=>n.distanceFromCenter()],"measure-light":[St,[Di],(n,[e])=>n.measureLight(e.evaluate(n))],"heatmap-density":[St,[],n=>n.globals.heatmapDensity||0],"line-progress":[St,[],n=>n.globals.lineProgress||0],"raster-value":[St,[],n=>n.globals.rasterValue||0],"raster-particle-speed":[St,[],n=>n.globals.rasterParticleSpeed||0],"sky-radial-progress":[St,[],n=>n.globals.skyRadialProgress||0],accumulated:[Oi,[],n=>n.globals.accumulated===void 0?null:n.globals.accumulated],"+":[St,xa(St),(n,e)=>{let i=0;for(const r of e)i+=r.evaluate(n);return i}],"*":[St,xa(St),(n,e)=>{let i=1;for(const r of e)i*=r.evaluate(n);return i}],"-":{type:St,overloads:[[[St,St],(n,[e,i])=>e.evaluate(n)-i.evaluate(n)],[[St],(n,[e])=>-e.evaluate(n)]]},"/":[St,[St,St],(n,[e,i])=>e.evaluate(n)/i.evaluate(n)],"%":[St,[St,St],(n,[e,i])=>e.evaluate(n)%i.evaluate(n)],ln2:[St,[],()=>Math.LN2],pi:[St,[],()=>Math.PI],e:[St,[],()=>Math.E],"^":[St,[St,St],(n,[e,i])=>Math.pow(e.evaluate(n),i.evaluate(n))],sqrt:[St,[St],(n,[e])=>Math.sqrt(e.evaluate(n))],log10:[St,[St],(n,[e])=>Math.log(e.evaluate(n))/Math.LN10],ln:[St,[St],(n,[e])=>Math.log(e.evaluate(n))],log2:[St,[St],(n,[e])=>Math.log2(e.evaluate(n))],sin:[St,[St],(n,[e])=>Math.sin(e.evaluate(n))],cos:[St,[St],(n,[e])=>Math.cos(e.evaluate(n))],tan:[St,[St],(n,[e])=>Math.tan(e.evaluate(n))],asin:[St,[St],(n,[e])=>Math.asin(e.evaluate(n))],acos:[St,[St],(n,[e])=>Math.acos(e.evaluate(n))],atan:[St,[St],(n,[e])=>Math.atan(e.evaluate(n))],min:[St,xa(St),(n,e)=>Math.min(...e.map(i=>i.evaluate(n)))],max:[St,xa(St),(n,e)=>Math.max(...e.map(i=>i.evaluate(n)))],abs:[St,[St],(n,[e])=>Math.abs(e.evaluate(n))],round:[St,[St],(n,[e])=>{const i=e.evaluate(n);return i<0?-Math.round(-i):Math.round(i)}],floor:[St,[St],(n,[e])=>Math.floor(e.evaluate(n))],ceil:[St,[St],(n,[e])=>Math.ceil(e.evaluate(n))],"filter-==":[Li,[Di,Oi],(n,[e,i])=>n.properties()[e.value]===i.value],"filter-id-==":[Li,[Oi],(n,[e])=>n.id()===e.value],"filter-type-==":[Li,[Di],(n,[e])=>n.geometryType()===e.value],"filter-<":[Li,[Di,Oi],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r<a}],"filter-id-<":[Li,[Oi],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i<r}],"filter->":[Li,[Di,Oi],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r>a}],"filter-id->":[Li,[Oi],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i>r}],"filter-<=":[Li,[Di,Oi],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r<=a}],"filter-id-<=":[Li,[Oi],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i<=r}],"filter->=":[Li,[Di,Oi],(n,[e,i])=>{const r=n.properties()[e.value],a=i.value;return typeof r==typeof a&&r>=a}],"filter-id->=":[Li,[Oi],(n,[e])=>{const i=n.id(),r=e.value;return typeof i==typeof r&&i>=r}],"filter-has":[Li,[Oi],(n,[e])=>e.value in n.properties()],"filter-has-id":[Li,[],n=>n.id()!==null&&n.id()!==void 0],"filter-type-in":[Li,[Rr(Di)],(n,[e])=>e.value.indexOf(n.geometryType())>=0],"filter-id-in":[Li,[Rr(Oi)],(n,[e])=>e.value.indexOf(n.id())>=0],"filter-in-small":[Li,[Di,Rr(Oi)],(n,[e,i])=>i.value.indexOf(n.properties()[e.value])>=0],"filter-in-large":[Li,[Di,Rr(Oi)],(n,[e,i])=>function(r,a,u,h){for(;u<=h;){const f=u+h>>1;if(a[f]===r)return!0;a[f]>r?h=f-1:u=f+1}return!1}(n.properties()[e.value],i.value,0,i.value.length-1)],all:{type:Li,overloads:[[[Li,Li],(n,[e,i])=>e.evaluate(n)&&i.evaluate(n)],[xa(Li),(n,e)=>{for(const i of e)if(!i.evaluate(n))return!1;return!0}]]},any:{type:Li,overloads:[[[Li,Li],(n,[e,i])=>e.evaluate(n)||i.evaluate(n)],[xa(Li),(n,e)=>{for(const i of e)if(i.evaluate(n))return!0;return!1}]]},"!":[Li,[Li],(n,[e])=>!e.evaluate(n)],"is-supported-script":[Li,[Di],(n,[e])=>{const i=n.globals&&n.globals.isSupportedScript;return!i||i(e.evaluate(n))}],upcase:[Di,[Di],(n,[e])=>e.evaluate(n).toUpperCase()],downcase:[Di,[Di],(n,[e])=>e.evaluate(n).toLowerCase()],concat:[Di,xa(Oi),(n,e)=>e.map(i=>fs(i.evaluate(n))).join("")],"resolved-locale":[Di,[dh],(n,[e])=>e.evaluate(n).resolvedLocale()],random:[St,[St,St,Oi],(n,e)=>{const[i,r,a]=e.map(h=>h.evaluate(n));if(i>r||i===r)return i;let u;if(typeof a=="string")u=function(h){let f=0;if(h.length===0)return f;for(let g=0;g<h.length;g++)f=(f<<5)-f+h.charCodeAt(g),f&=f;return f}(a);else{if(typeof a!="number")throw new Yn(`Invalid seed input: ${a}`);u=a}return i+q_(u)()*(r-i)}]});class Hp{constructor(e,i,r,a,u){this.expression=e,this._warningHistory={},this._scope=r,this._options=a,this._iconImageUseTheme=u,this._evaluator=new _h(r,a,u),this._defaultValue=i?function(h){return h.type==="color"&&($p(h.default)||Array.isArray(h.default))?new ki(0,0,0,0):h.type==="color"?ki.parse(h.default)||null:h.default===void 0?null:h.default}(i):null,this._enumValues=i&&i.type==="enum"?i.values:null,this.configDependencies=kh(e),this.isIndoorDependent=ll(e)}evaluateWithoutErrorHandling(e,i,r,a,u,h,f,g){return this._evaluator.globals=e,this._evaluator.feature=i,this._evaluator.featureState=r,this._evaluator.canonical=a||null,this._evaluator.availableImages=u||null,this._evaluator.formattedSection=h,this._evaluator.featureTileCoord=f||null,this._evaluator.featureDistanceData=g||null,this.expression.evaluate(this._evaluator)}evaluate(e,i,r,a,u,h,f,g,y){this._evaluator||(this._evaluator=new _h(this._scope,this._options,this._iconImageUseTheme)),this._evaluator.globals=e,this._evaluator.feature=i||null,this._evaluator.featureState=r||null,this._evaluator.canonical=a||null,this._evaluator.availableImages=u||null,this._evaluator.formattedSection=h||null,this._evaluator.featureTileCoord=f||null,this._evaluator.featureDistanceData=g||null,this._evaluator.iconImageUseTheme=y||null;try{const T=this.expression.evaluate(this._evaluator);if(T==null||typeof T=="number"&&T!=T)return this._defaultValue;if(this._enumValues&&!(T in this._enumValues))throw new Yn(`Expected value to be one of ${Object.keys(this._enumValues).map(S=>JSON.stringify(S)).join(", ")}, but found ${JSON.stringify(T)} instead.`);return T}catch(T){const S=T;return this._warningHistory[S.message]||(this._warningHistory[S.message]=!0,typeof console<"u"&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${S.message}`)),this._defaultValue}}}function Bh(n){return Array.isArray(n)&&n.length>0&&typeof n[0]=="string"&&n[0]in ql}function wa(n,e,i,r,a){const u=new Ch(ql,[],e?function(f){const g={color:Lr,string:Di,number:St,enum:Di,boolean:Li,formatted:Gc,resolvedImage:Ll};return f.type==="array"?Rr(g[f.value]||Oi,f.length):g[f.type]}(e):void 0,void 0,void 0,i,r,a),h=u.parse(n,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return h?Z_(new Hp(h,e,i,r,a)):ba(u.errors)}class au{constructor(e,i,r,a){this.kind=e,this._styleExpression=i,this.isLightConstant=r,this.isLineProgressConstant=a,this.isStateDependent=e!=="constant"&&!eu(i.expression),this.configDependencies=kh(i.expression),this.isIndoorDependent=ll(i.expression)}evaluateWithoutErrorHandling(e,i,r,a,u,h){return this._styleExpression.evaluateWithoutErrorHandling(e,i,r,a,u,h)}evaluate(e,i,r,a,u,h,f){return this._styleExpression.evaluate(e,i,r,a,u,h,void 0,void 0,f)}}class Wl{constructor(e,i,r,a,u,h){this.kind=e,this.zoomStops=r,this._styleExpression=i,this.isStateDependent=e!=="camera"&&!eu(i.expression),this.isIndoorDependent=ll(i.expression),this.isLightConstant=u,this.isLineProgressConstant=h,this.configDependencies=kh(i.expression),this.interpolationType=a}evaluateWithoutErrorHandling(e,i,r,a,u,h){return this._styleExpression.evaluateWithoutErrorHandling(e,i,r,a,u,h)}evaluate(e,i,r,a,u,h){return this._styleExpression.evaluate(e,i,r,a,u,h)}interpolationFactor(e,i,r){return this.interpolationType?Io.interpolationFactor(this.interpolationType,e,i,r):0}}function qp(n,e,i,r,a){if((n=wa(n,e,i,r,a)).result==="error")return n;const u=n.value.expression,h=jl(u);if(!h&&!Oh(e))return ba([new po("","data expressions not supported")]);const f=Vl(u,["zoom","pitch","distance-from-center"]);if(!f&&!Fh(e))return ba([new po("","zoom expressions not supported")]);const g=Vl(u,["measure-light"]);if(!g&&!X_(e))return ba([new po("","measure-light expression not supported")]);const y=Vl(u,["line-progress"]);if(!y&&!function(E){return Vp(E.expression,"line-progress")}(e))return ba([new po("","line-progress expression not supported")]);const T=e.expression&&e.expression.relaxZoomRestriction,S=Xl(u);return S||f||T?S instanceof po?ba([S]):S instanceof Io&&!Up(e)?ba([new po("",'"interpolate" expressions cannot be used with this property')]):Z_(S?new Wl(h&&y?"camera":"composite",n.value,S.labels,S instanceof Io?S.interpolation:void 0,g,y):new au(h&&y?"constant":"source",n.value,g,y)):ba([new po("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class Zl{constructor(e,i){this._parameters=e,this._specification=i,Object.assign(this,Gp(this._parameters,this._specification))}static deserialize(e){return new Zl(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function Xl(n){let e=null;if(n instanceof nu)e=Xl(n.result);else if(n instanceof iu){for(const i of n.args)if(e=Xl(i),e)break}else(n instanceof tu||n instanceof Io)&&n.input instanceof zr&&n.input.name==="zoom"&&(e=n);return e instanceof po||n.eachChild(i=>{const r=Xl(i);r instanceof po?e=r:e&&r&&e!==r&&(e=new po("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}var Nh,J_,Ta=function(){if(J_)return Nh;J_=1,Nh=e;var n=3;function e(i,r,a){var u=this.cells=[];if(i instanceof ArrayBuffer){this.arrayBuffer=i;var h=new Int32Array(this.arrayBuffer);i=h[0],this.d=(r=h[1])+2*(a=h[2]);for(var f=0;f<this.d*this.d;f++){var g=h[n+f],y=h[n+f+1];u.push(g===y?null:h.subarray(g,y))}var T=h[n+u.length+1];this.keys=h.subarray(h[n+u.length],T),this.bboxes=h.subarray(T),this.insert=this._insertReadonly}else{this.d=r+2*a;for(var S=0;S<this.d*this.d;S++)u.push([]);this.keys=[],this.bboxes=[]}this.n=r,this.extent=i,this.padding=a,this.scale=r/i,this.uid=0;var E=a/r*i;this.min=-E,this.max=i+E}return e.prototype.insert=function(i,r,a,u,h){this._forEachCell(r,a,u,h,this._insertCell,this.uid++),this.keys.push(i),this.bboxes.push(r),this.bboxes.push(a),this.bboxes.push(u),this.bboxes.push(h)},e.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},e.prototype._insertCell=function(i,r,a,u,h,f){this.cells[h].push(f)},e.prototype.query=function(i,r,a,u,h){var f=this.min,g=this.max;if(i<=f&&r<=f&&g<=a&&g<=u&&!h)return Array.prototype.slice.call(this.keys);var y=[];return this._forEachCell(i,r,a,u,this._queryCell,y,{},h),y},e.prototype._queryCell=function(i,r,a,u,h,f,g,y){var T=this.cells[h];if(T!==null)for(var S=this.keys,E=this.bboxes,P=0;P<T.length;P++){var M=T[P];if(g[M]===void 0){var k=4*M;(y?y(E[k+0],E[k+1],E[k+2],E[k+3]):i<=E[k+2]&&r<=E[k+3]&&a>=E[k+0]&&u>=E[k+1])?(g[M]=!0,f.push(S[M])):g[M]=!1}}},e.prototype._forEachCell=function(i,r,a,u,h,f,g,y){for(var T=this._convertToCellCoord(i),S=this._convertToCellCoord(r),E=this._convertToCellCoord(a),P=this._convertToCellCoord(u),M=T;M<=E;M++)for(var k=S;k<=P;k++){var N=this.d*k+M;if((!y||y(this._convertFromCellCoord(M),this._convertFromCellCoord(k),this._convertFromCellCoord(M+1),this._convertFromCellCoord(k+1)))&&h.call(this,i,r,a,u,N,f,g,y))return}},e.prototype._convertFromCellCoord=function(i){return(i-this.padding)/this.scale},e.prototype._convertToCellCoord=function(i){return Math.max(0,Math.min(this.d-1,Math.floor(i*this.scale)+this.padding))},e.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var i=this.cells,r=n+this.cells.length+1+1,a=0,u=0;u<this.cells.length;u++)a+=this.cells[u].length;var h=new Int32Array(r+a+this.keys.length+this.bboxes.length);h[0]=this.extent,h[1]=this.n,h[2]=this.padding;for(var f=r,g=0;g<i.length;g++){var y=i[g];h[n+g]=f,h.set(y,f),f+=y.length}return h[n+i.length]=f,h.set(this.keys,f),h[n+i.length+1]=f+=this.keys.length,h.set(this.bboxes,f),f+=this.bboxes.length,h.buffer},Nh}(),Yl=So(Ta);const jh={};function bt(n,e,i={}){Object.defineProperty(n,"_classRegistryKey",{value:e,writable:!1}),jh[e]={klass:n,omit:i.omit||[]}}bt(Object,"Object"),Yl.serialize=function(n,e){const i=n.toArrayBuffer();return e&&e.add(i),{buffer:i}},Yl.deserialize=function(n){return new Yl(n.buffer)},Object.defineProperty(Yl,"name",{value:"Grid"}),bt(Yl,"Grid"),delete it.prototype.constructor,bt(ki,"Color"),bt(Error,"Error"),bt(Wr,"Formatted"),bt(mh,"FormattedSection"),bt(ho,"AJAXError"),bt(Tr,"ResolvedImage"),bt(Zl,"StylePropertyFunction"),bt(Hp,"StyleExpression",{omit:["_evaluator"]}),bt(to,"ImageId"),bt(Yo,"ImageVariant"),bt(Wl,"ZoomDependentExpression"),bt(au,"ZoomConstantExpression"),bt(zr,"CompoundExpression",{omit:["_evaluate"]});for(const n in ql)jh[ql[n]._classRegistryKey]||bt(ql[n],`Expression${n}`);function Q_(n){return n&&(n instanceof ArrayBuffer||n.constructor&&n.constructor.name==="ArrayBuffer")}function Jo(n,e){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp)return n;if(Q_(n)||n instanceof ImageBitmap)return e&&e.add(n),n;if(ArrayBuffer.isView(n))return e&&e.add(n.buffer),n;if(n instanceof ImageData)return e&&e.add(n.data.buffer),n;if(Array.isArray(n)){const i=[];for(const r of n)i.push(Jo(r,e));return i}if(n instanceof Map){const i={$name:"Map",entries:[]};for(const[r,a]of n.entries())i.entries.push(Jo(r),Jo(a,e));return i}if(n instanceof Set){const i={$name:"Set"};let r=0;for(const a of n.values())i[++r]=Jo(a);return i}if(typeof n=="bigint")return{$name:"BigInt",value:n.toString()};if(typeof n=="object"){const i=n.constructor,r=i._classRegistryKey;if(!r)throw new Error(`Can't serialize object of unregistered class "${i.name}".`);const a=i.serialize?i.serialize(n,e):{};if(!i.serialize){for(const u in n)n.hasOwnProperty(u)&&(jh[r].omit.indexOf(u)>=0||(a[u]=Jo(n[u],e)));n instanceof Error&&(a.message=n.message)}if(a.$name)throw new Error("$name property is reserved for worker serialization logic.");return r!=="Object"&&(a.$name=r),a}throw new Error("can't serialize object of type "+typeof n)}function Bs(n){if(n==null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||n instanceof Boolean||n instanceof Number||n instanceof String||n instanceof Date||n instanceof RegExp||Q_(n)||n instanceof ImageBitmap||ArrayBuffer.isView(n)||n instanceof ImageData)return n;if(Array.isArray(n))return n.map(Bs);if(typeof n=="object"){const e=n.$name||"Object";if(e==="Map"){const a=n.entries||[],u=new Map;for(let h=0;h<a.length;h+=2)u.set(Bs(a[h]),Bs(a[h+1]));return u}if(e==="Set"){const a=new Set;for(const u of Object.keys(n))u!=="$name"&&a.add(Bs(n[u]));return a}if(e==="BigInt")return BigInt(n.value);const{klass:i}=jh[e];if(!i)throw new Error(`Can't deserialize unregistered class "${e}".`);if(i.deserialize)return i.deserialize(n);const r=Object.create(i.prototype);for(const a of Object.keys(n))a!=="$name"&&(r[a]=Bs(n[a]));return r}throw new Error("can't deserialize object of type "+typeof n)}const lu=n=>n>=1536&&n<=1791,Wp=n=>n>=1872&&n<=1919,eg=n=>n>=2208&&n<=2303,tg=n=>n>=11904&&n<=12031,Vh=n=>n>=12032&&n<=12255,Uh=n=>n>=12272&&n<=12287,cu=n=>n>=12288&&n<=12351,$h=n=>n>=12352&&n<=12447,Kl=n=>n>=12448&&n<=12543,uu=n=>n>=12544&&n<=12591,Zp=n=>n>=12704&&n<=12735,gs=n=>n>=12736&&n<=12783,ig=n=>n>=12784&&n<=12799,ng=n=>n>=12800&&n<=13055,rg=n=>n>=13056&&n<=13311,Xp=n=>n>=13312&&n<=19903,Gh=n=>n>=19968&&n<=40959,hu=n=>n>=40960&&n<=42127,Yp=n=>n>=42128&&n<=42191,Kp=n=>n>=44032&&n<=55215,Hh=n=>n>=63744&&n<=64255,Jp=n=>n>=64336&&n<=65023,og=n=>n>=65040&&n<=65055,Qp=n=>n>=65072&&n<=65103,sg=n=>n>=65104&&n<=65135,ef=n=>n>=65136&&n<=65279,tf=n=>n>=65280&&n<=65519;function nf(n){for(const e of n)if(rf(e.charCodeAt(0)))return!0;return!1}function Xv(n){for(const e of n)if(!Yv(e.charCodeAt(0)))return!1;return!0}function Yv(n){return!(lu(n)||Wp(n)||eg(n)||Jp(n)||ef(n))}function Kv(n){return!(n<11904||!(Zp(n)||uu(n)||Qp(n)||Hh(n)||rg(n)||tg(n)||gs(n)||cu(n)||Xp(n)||Gh(n)||ng(n)||tf(n)||$h(n)||Uh(n)||Vh(n)||ig(n)||Kl(n)||og(n)||Yp(n)||hu(n)))}function rf(n){return!(n!==746&&n!==747&&(n<4352||!(Zp(n)||uu(n)||Qp(n)&&!(n>=65097&&n<=65103)||Hh(n)||rg(n)||tg(n)||gs(n)||!(!cu(n)||n>=12296&&n<=12305||n>=12308&&n<=12319||n===12336)||Xp(n)||Gh(n)||ng(n)||(e=>e>=12592&&e<=12687)(n)||(e=>e>=43360&&e<=43391)(n)||(e=>e>=55216&&e<=55295)(n)||(e=>e>=4352&&e<=4607)(n)||Kp(n)||$h(n)||Uh(n)||(e=>e>=12688&&e<=12703)(n)||Vh(n)||ig(n)||Kl(n)&&n!==12540||!(!tf(n)||n===65288||n===65289||n===65293||n>=65306&&n<=65310||n===65339||n===65341||n===65343||n>=65371&&n<=65503||n===65507||n>=65512&&n<=65519)||!(!sg(n)||n>=65112&&n<=65118||n>=65123&&n<=65126)||(e=>e>=5120&&e<=5759)(n)||(e=>e>=6320&&e<=6399)(n)||og(n)||(e=>e>=19904&&e<=19967)(n)||hu(n)||Yp(n))))}function ag(n){return n===12312||n===12313||n===12316||n===12540||n===12448}function ul(n){return!(rf(n)||function(e){return!!((i=>i>=128&&i<=255)(e)&&(e===167||e===169||e===174||e===177||e===188||e===189||e===190||e===215||e===247)||(i=>i>=8192&&i<=8303)(e)&&(e===8214||e===8224||e===8225||e===8240||e===8241||e===8251||e===8252||e===8258||e===8263||e===8264||e===8265||e===8273)||(i=>i>=8448&&i<=8527)(e)||(i=>i>=8528&&i<=8591)(e)||(i=>i>=8960&&i<=9215)(e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||e===9003||e>=9085&&e<=9114||e>=9150&&e<=9165||e===9167||e>=9169&&e<=9179||e>=9186&&e<=9215)||(i=>i>=9216&&i<=9279)(e)&&e!==9251||(i=>i>=9280&&i<=9311)(e)||(i=>i>=9312&&i<=9471)(e)||(i=>i>=9632&&i<=9727)(e)||(i=>i>=9728&&i<=9983)(e)&&!(e>=9754&&e<=9759)||(i=>i>=11008&&i<=11263)(e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||cu(e)||Kl(e)||(i=>i>=57344&&i<=63743)(e)||Qp(e)||sg(e)||tf(e)||e===8734||e===8756||e===8757||e>=9984&&e<=10087||e>=10102&&e<=10131||e===65532||e===65533)}(n))}function lg(n){return lu(n)||Wp(n)||eg(n)||Jp(n)||ef(n)}function of(n){return n>=1424&&n<=2303||Jp(n)||ef(n)}function qh(n,e){return!(!e&&of(n)||n>=2304&&n<=3583||n>=3840&&n<=4255||(i=>i>=6016&&i<=6143)(n))}function Jv(n){for(const e of n)if(of(e.charCodeAt(0)))return!0;return!1}const fo={unavailable:"unavailable",deferred:"deferred",loading:"loading",parsing:"parsing",parsed:"parsed",loaded:"loaded",error:"error"};let ys=null,jr=fo.unavailable,Co=null;const cg=function(n){n&&typeof n=="string"&&n.indexOf("NetworkError")>-1&&(jr=fo.error),ys&&ys(n)};function sf(){af.fire(new Zo("pluginStateChange",{pluginStatus:jr,pluginURL:Co}))}const af=new Xo,lf=function(){return jr},ug=function(){if(jr!==fo.deferred||!Co)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");jr=fo.loading,sf(),Co&&Nc({url:Co},n=>{n?cg(n):(jr=fo.loaded,sf())})},Ns={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>jr===fo.loaded||Ns.applyArabicShaping!=null,isLoading:()=>jr===fo.loading,setState(n){jr=n.pluginStatus,Co=n.pluginURL},isParsing:()=>jr===fo.parsing,isParsed:()=>jr===fo.parsed,getPluginURL:()=>Co};class Ni{constructor(e,i){this.zoom=e,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(e){return function(i,r){for(const a of i)if(!qh(a.charCodeAt(0),r))return!1;return!0}(e,Ns.isLoaded())}}class Jl{constructor(e,i,r,a,u){this.property=e,this.value=i,this.expression=function(h,f,g,y,T){if($p(h))return new Zl(h,f);if(Bh(h)||Array.isArray(h)&&h.length>0){const S=qp(h,f,g,y,T);if(S.result==="error")throw new Error(S.value.map(E=>`${E.key}: ${E.message}`).join(", "));return S.value}{let S=h;return typeof h=="string"&&f.type==="color"&&(S=ki.parse(h)),{kind:"constant",configDependencies:new Set,isIndoorDependent:!1,evaluate:()=>S}}}(i===void 0?e.specification.default:i,e.specification,r,a,u)}isIndoorDependent(){return this.expression.isIndoorDependent}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(e,i,r,a){return this.property.possiblyEvaluate(this,e,i,r,a)}}class du{constructor(e,i,r,a){this.property=e,this.value=new Jl(e,void 0,i,r,a)}transitioned(e,i){return new Wh(this.property,this.value,i,Object.assign({},e.transition,this.transition),e.now)}untransitioned(){return new Wh(this.property,this.value,null,{},0)}}class cf{constructor(e,i,r,a){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._scope=i,this._options=r,this._iconImageUseTheme=a,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(e){return Yt(this._values[e].value.value)}setValue(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new du(this._values[e].property,this._scope,this._options,this._iconImageUseTheme)),this._values[e].value=new Jl(this._values[e].property,i===null?void 0:Yt(i),this._scope,this._options,this._iconImageUseTheme),this._values[e].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].value.expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[e].value.isIndoorDependent())}setTransitionOrValue(e,i){i&&(this._options=i);const r=this._properties.properties;if(e)for(const a in e){const u=e[a];if(a.endsWith("-transition")){const h=a.slice(0,-11);r[h]&&this.setTransition(h,u)}else r.hasOwnProperty(a)&&this.setValue(a,u)}}getTransition(e){return Yt(this._values[e].transition)}setTransition(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new du(this._values[e].property)),this._values[e].transition=Yt(i)||void 0}serialize(){const e={};for(const i of Object.keys(this._values)){const r=this.getValue(i);r!==void 0&&(e[i]=r);const a=this.getTransition(i);a!==void 0&&(e[`${i}-transition`]=a)}return e}transitioned(e,i){const r=new Ql(this._properties);for(const a of Object.keys(this._values))r._values[a]=this._values[a].transitioned(e,i._values[a]);return r}untransitioned(){const e=new Ql(this._properties);for(const i of Object.keys(this._values))e._values[i]=this._values[i].untransitioned();return e}isIndoorDependent(){return this._isIndoorDependent}}class Wh{constructor(e,i,r,a,u){const h=a.delay||0,f=a.duration||0;u=u||0,this.property=e,this.value=i,this.begin=u+h,this.end=this.begin+f,e.specification.transition&&(a.delay||a.duration)&&(this.prior=r)}possiblyEvaluate(e,i,r){const a=e.now||0,u=this.value.possiblyEvaluate(e,i,r),h=this.prior;if(h){if(a>this.end)return this.prior=null,u;if(this.value.isDataDriven())return this.prior=null,u;if(a<this.begin)return h.possiblyEvaluate(e,i,r);{const f=(a-this.begin)/(this.end-this.begin);return this.property.interpolate(h.possiblyEvaluate(e,i,r),u,Z(f))}}return u}}class Ql{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,i,r){const a=new dl(this._properties);for(const u of Object.keys(this._values))a._values[u]=this._values[u].possiblyEvaluate(e,i,r);return a}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class uf{constructor(e,i,r,a){this._properties=e,this._values=Object.create(e.defaultPropertyValues),this._scope=i,this._options=r,this._iconImageUseTheme=a,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(e){return Yt(this._values[e].value)}setValue(e,i){this._values[e]=new Jl(this._values[e].property,i===null?void 0:Yt(i),this._scope,this._options,this._iconImageUseTheme),this._values[e].expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[e].isIndoorDependent())}serialize(){const e={};for(const i of Object.keys(this._values)){const r=this.getValue(i);r!==void 0&&(e[i]=r)}return e}possiblyEvaluate(e,i,r,a){const u=new dl(this._properties);for(const h of Object.keys(this._values))u._values[h]=this._values[h].possiblyEvaluate(e,i,r,a);return u}isIndoorDependent(){return this._isIndoorDependent}}class hl{constructor(e,i,r,a){this.property=e,this.value=i,this.parameters=r,this.iconImageUseTheme=a}isConstant(){return this.value.kind==="constant"}constantOr(e){return this.value.kind==="constant"?this.value.value:e}evaluate(e,i,r,a){return this.property.evaluate(this.value,this.parameters,e,i,r,a,this.iconImageUseTheme)}}class dl{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class st{constructor(e){this.specification=e}possiblyEvaluate(e,i){return e.expression.evaluate(i)}interpolate(e,i,r){const a=$c[this.specification.type];return a?a(e,i,r):e}}class pt{constructor(e,i){this.specification=e,this.overrides=i}possiblyEvaluate(e,i,r,a,u){return e.expression.kind==="constant"||e.expression.kind==="camera"?new hl(this,{kind:"constant",value:e.expression.evaluate(i,null,{},r,a,void 0,u)},i):new hl(this,e.expression,i,u)}interpolate(e,i,r){if(e.value.kind!=="constant"||i.value.kind!=="constant")return e;if(e.value.value===void 0||i.value.value===void 0)return new hl(this,{kind:"constant",value:void 0},e.parameters);const a=$c[this.specification.type];return a?new hl(this,{kind:"constant",value:a(e.value.value,i.value.value,r)},e.parameters):e}evaluate(e,i,r,a,u,h,f){return e.kind==="constant"?e.value:e.evaluate(i,r,a,u,h,void 0,f)}}class io{constructor(e){this.specification=e}possiblyEvaluate(e,i,r,a){return!!e.expression.evaluate(i,null,{},r,a)}interpolate(){return!1}}class mn{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const i=new Ni(0,{});for(const r in e){const a=e[r];a.specification.overridable&&this.overridableProperties.push(r);const u=this.defaultPropertyValues[r]=new Jl(a,void 0),h=this.defaultTransitionablePropertyValues[r]=new du(a);this.defaultTransitioningPropertyValues[r]=h.untransitioned(),this.defaultPossiblyEvaluatedValues[r]=u.possiblyEvaluate(i)}}}bt(pt,"DataDrivenProperty"),bt(st,"DataConstantProperty"),bt(io,"ColorRampProperty");var Ce=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":{}}},"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-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-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}},"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"]},"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"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light","feature-state"]},"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"]},"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"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"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"]},"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"]},"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"]},"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"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"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,"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":{}}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"promoteId":{"*":{"type":"*"}}}');function hg(n){return n instanceof Number||n instanceof String||n instanceof Boolean?n.valueOf():n}function Zh(n){if(Array.isArray(n))return n.map(Zh);if(n instanceof Object&&!(n instanceof Number||n instanceof String||n instanceof Boolean)){const e={};for(const i in n)e[i]=Zh(n[i]);return e}return hg(n)}function hf(n){if(n===!0||n===!1)return!0;if(!Array.isArray(n)||n.length===0)return!1;switch(n[0]){case"has":return n.length>=2&&n[1]!=="$id"&&n[1]!=="$type";case"in":return n.length>=3&&(typeof n[1]!="string"||Array.isArray(n[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return n.length!==3||Array.isArray(n[1])||Array.isArray(n[2]);case"any":case"all":for(const e of n.slice(1))if(!hf(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}function df(n,e="",i=null,r="fill"){if(n==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};hf(n)||(n=Xh(n));const a=n;let u=!0;try{u=function(T){if(!ec(T))return T;let S=Zh(T);return pg(S),S=dg(S),S}(a)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
|
|
62
62
|
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
|
|
63
63
|
and paste the contents of this message in the report.
|
|
64
64
|
Thank you!
|