@inploi/plugin-job-search 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cdn/index.js CHANGED
@@ -1,4 +1,4 @@
1
- var n5=Object.defineProperty;var o5=(jo,Ps,ec)=>Ps in jo?n5(jo,Ps,{enumerable:!0,configurable:!0,writable:!0,value:ec}):jo[Ps]=ec;var nE=(jo,Ps,ec)=>(o5(jo,typeof Ps!="symbol"?Ps+"":Ps,ec),ec);(function(){"use strict";var jo=p=>{throw new Error(`Unhandled discriminated union member: ${JSON.stringify(p)}`)};function Ps(p,y){if(!p)throw new Error(y)}function ec(p,y){return p in y}var Rv={ANNUALLY:"per year",DAILY:"per day",HOURLY:"per hour",MONTHLY:"per month",WEEKLY:"per week"},sE=p=>{const{salary:y,config:w,t:I=B=>B}=p,z=new Intl.NumberFormat(w.locales,{style:"currency",currency:y.pay_currency,trailingZeroDisplay:"stripIfInteger"});if(y.pay_display===!1||y.pay===null&&y.pay_min===null&&y.pay_max===null)return;if(y.pay_mask)return I("competitive");if(y.pay_max&&Number.isNaN(+y.pay_max)||y.pay_min&&Number.isNaN(+y.pay_min)||y.pay&&Number.isNaN(+y.pay))return I("invalid_salary");const k=y.pay_type&&y.pay_type in Rv?Rv[y.pay_type]:void 0;return y.pay?[z.format(+y.pay),k].filter(Boolean).join(" "):y.pay_max&&y.pay_min?[z.formatRange(+y.pay_min,+y.pay_max),k].filter(Boolean).join(" ")||"":y.pay_max?`${I("up_to")} ${[z.format(+y.pay_max),k].filter(Boolean).join(" ")}`:y.pay_min?`${I("from")} ${[z.format(+y.pay_min),k].filter(Boolean).join(" ")}`:I("invalid_salary")},aE=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),lE=({from:p=new Date,to:y,formatter:w=aE,t:I=z=>z})=>{const k=(y instanceof Date?y:new Date(y)).getTime()-p.getTime(),B={days:Math.round(k/1e3/60/60/24),months:Math.round(k/1e3/60/60/24/30)};return B.days===0?I("today"):Math.abs(B.days)<30?w.format(B.days,"days"):Math.abs(B.days)<3?w.format(B.months,"months"):B.months<0?I("over_30_days_ago"):I("in_over_30_days")},cE=p=>p,Xh=class extends Error{constructor(y,w){super(y),this.status=w,this.name="ErrorWithStatus"}},uE=class extends Xh{constructor(y){super(y??"Not found"),this.name="NotFoundError",this.status=404}},hE=class extends Xh{constructor(y,w){super(y??"You are not authorised to perform this action."),this.name="UnauthorisedError",this.status=w??401}},dE=class extends Xh{constructor(y,w){let I=w?` in ${w}`:"";super(`Schema validation failed${I}`),this.issues=y,this.source=w,this.name="SchemaValidationError",this.status=400}},pE=class extends Xh{constructor(y,w){super(y),this.name="ApiError",this.status=w??500}},fE=class extends Xh{constructor(y){super("Error parsing response into JSON."),this.response=y,this.name="ParsingError",this.status=500}},mE={NotFound:uE,Unauthorised:hE,SchemaValidation:dE,Api:pE,JsonParsing:fE};function Q_(){return{"~standard":{vendor:"inploi",version:1,validate:p=>({value:p})}}}function s5(p){return p}var Yh,Ci,zv,tc,Lv,kv,Ov,Fv,eg,tg,ig,Bv,Kh={},Nv=[],_E=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,df=Array.isArray;function la(p,y){for(var w in y)p[w]=y[w];return p}function rg(p){p&&p.parentNode&&p.parentNode.removeChild(p)}function Jt(p,y,w){var I,z,k,B={};for(k in y)k=="key"?I=y[k]:k=="ref"?z=y[k]:B[k]=y[k];if(arguments.length>2&&(B.children=arguments.length>3?Yh.call(arguments,2):w),typeof p=="function"&&p.defaultProps!=null)for(k in p.defaultProps)B[k]===void 0&&(B[k]=p.defaultProps[k]);return Jh(p,B,I,z,null)}function Jh(p,y,w,I,z){var k={type:p,props:y,key:w,ref:I,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:z??++zv,__i:-1,__u:0};return z==null&&Ci.vnode!=null&&Ci.vnode(k),k}function jv(){return{current:null}}function er(p){return p.children}function Vo(p,y){this.props=p,this.context=y}function lu(p,y){if(y==null)return p.__?lu(p.__,p.__i+1):null;for(var w;y<p.__k.length;y++)if((w=p.__k[y])!=null&&w.__e!=null)return w.__e;return typeof p.type=="function"?lu(p):null}function Vv(p){var y,w;if((p=p.__)!=null&&p.__c!=null){for(p.__e=p.__c.base=null,y=0;y<p.__k.length;y++)if((w=p.__k[y])!=null&&w.__e!=null){p.__e=p.__c.base=w.__e;break}return Vv(p)}}function ng(p){(!p.__d&&(p.__d=!0)&&tc.push(p)&&!pf.__r++||Lv!==Ci.debounceRendering)&&((Lv=Ci.debounceRendering)||kv)(pf)}function pf(){for(var p,y,w,I,z,k,B,o=1;tc.length;)tc.length>o&&tc.sort(Ov),p=tc.shift(),o=tc.length,p.__d&&(w=void 0,z=(I=(y=p).__v).__e,k=[],B=[],y.__P&&((w=la({},I)).__v=I.__v+1,Ci.vnode&&Ci.vnode(w),og(y.__P,w,I,y.__n,y.__P.namespaceURI,32&I.__u?[z]:null,k,z??lu(I),!!(32&I.__u),B),w.__v=I.__v,w.__.__k[w.__i]=w,qv(k,w,B),w.__e!=z&&Vv(w)));pf.__r=0}function Uv(p,y,w,I,z,k,B,o,J,oe,be){var ae,Se,ye,De,ve,ze,Ee=I&&I.__k||Nv,tt=y.length;for(J=gE(w,y,Ee,J,tt),ae=0;ae<tt;ae++)(ye=w.__k[ae])!=null&&(Se=ye.__i===-1?Kh:Ee[ye.__i]||Kh,ye.__i=ae,ze=og(p,ye,Se,z,k,B,o,J,oe,be),De=ye.__e,ye.ref&&Se.ref!=ye.ref&&(Se.ref&&sg(Se.ref,null,ye),be.push(ye.ref,ye.__c||De,ye)),ve==null&&De!=null&&(ve=De),4&ye.__u||Se.__k===ye.__k?J=$v(ye,J,p):typeof ye.type=="function"&&ze!==void 0?J=ze:De&&(J=De.nextSibling),ye.__u&=-7);return w.__e=ve,J}function gE(p,y,w,I,z){var k,B,o,J,oe,be=w.length,ae=be,Se=0;for(p.__k=new Array(z),k=0;k<z;k++)(B=y[k])!=null&&typeof B!="boolean"&&typeof B!="function"?(J=k+Se,(B=p.__k[k]=typeof B=="string"||typeof B=="number"||typeof B=="bigint"||B.constructor==String?Jh(null,B,null,null,null):df(B)?Jh(er,{children:B},null,null,null):B.constructor===void 0&&B.__b>0?Jh(B.type,B.props,B.key,B.ref?B.ref:null,B.__v):B).__=p,B.__b=p.__b+1,o=null,(oe=B.__i=yE(B,w,J,ae))!==-1&&(ae--,(o=w[oe])&&(o.__u|=2)),o==null||o.__v===null?(oe==-1&&(z>be?Se--:z<be&&Se++),typeof B.type!="function"&&(B.__u|=4)):oe!=J&&(oe==J-1?Se--:oe==J+1?Se++:(oe>J?Se--:Se++,B.__u|=4))):p.__k[k]=null;if(ae)for(k=0;k<be;k++)(o=w[k])!=null&&!(2&o.__u)&&(o.__e==I&&(I=lu(o)),Zv(o,o));return I}function $v(p,y,w){var I,z;if(typeof p.type=="function"){for(I=p.__k,z=0;I&&z<I.length;z++)I[z]&&(I[z].__=p,y=$v(I[z],y,w));return y}p.__e!=y&&(y&&p.type&&!w.contains(y)&&(y=lu(p)),w.insertBefore(p.__e,y||null),y=p.__e);do y=y&&y.nextSibling;while(y!=null&&y.nodeType==8);return y}function ca(p,y){return y=y||[],p==null||typeof p=="boolean"||(df(p)?p.some(function(w){ca(w,y)}):y.push(p)),y}function yE(p,y,w,I){var z,k,B=p.key,o=p.type,J=y[w];if(J===null&&p.key==null||J&&B==J.key&&o===J.type&&!(2&J.__u))return w;if(I>(J!=null&&!(2&J.__u)?1:0))for(z=w-1,k=w+1;z>=0||k<y.length;){if(z>=0){if((J=y[z])&&!(2&J.__u)&&B==J.key&&o===J.type)return z;z--}if(k<y.length){if((J=y[k])&&!(2&J.__u)&&B==J.key&&o===J.type)return k;k++}}return-1}function Gv(p,y,w){y[0]=="-"?p.setProperty(y,w??""):p[y]=w==null?"":typeof w!="number"||_E.test(y)?w:w+"px"}function ff(p,y,w,I,z){var k;e:if(y=="style")if(typeof w=="string")p.style.cssText=w;else{if(typeof I=="string"&&(p.style.cssText=I=""),I)for(y in I)w&&y in w||Gv(p.style,y,"");if(w)for(y in w)I&&w[y]===I[y]||Gv(p.style,y,w[y])}else if(y[0]=="o"&&y[1]=="n")k=y!=(y=y.replace(Fv,"$1")),y=y.toLowerCase()in p||y=="onFocusOut"||y=="onFocusIn"?y.toLowerCase().slice(2):y.slice(2),p.l||(p.l={}),p.l[y+k]=w,w?I?w.u=I.u:(w.u=eg,p.addEventListener(y,k?ig:tg,k)):p.removeEventListener(y,k?ig:tg,k);else{if(z=="http://www.w3.org/2000/svg")y=y.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(y!="width"&&y!="height"&&y!="href"&&y!="list"&&y!="form"&&y!="tabIndex"&&y!="download"&&y!="rowSpan"&&y!="colSpan"&&y!="role"&&y!="popover"&&y in p)try{p[y]=w??"";break e}catch{}typeof w=="function"||(w==null||w===!1&&y[4]!="-"?p.removeAttribute(y):p.setAttribute(y,y=="popover"&&w==1?"":w))}}function Hv(p){return function(y){if(this.l){var w=this.l[y.type+p];if(y.t==null)y.t=eg++;else if(y.t<w.u)return;return w(Ci.event?Ci.event(y):y)}}}function og(p,y,w,I,z,k,B,o,J,oe){var be,ae,Se,ye,De,ve,ze,Ee,tt,at,Ke,pt,xt,Wt,Ot,ui,Si,ni,Mi=y.type;if(y.constructor!==void 0)return null;128&w.__u&&(J=!!(32&w.__u),k=[o=y.__e=w.__e]),(be=Ci.__b)&&be(y);e:if(typeof Mi=="function")try{if(Ee=y.props,tt="prototype"in Mi&&Mi.prototype.render,at=(be=Mi.contextType)&&I[be.__c],Ke=be?at?at.props.value:be.__:I,w.__c?ze=(ae=y.__c=w.__c).__=ae.__E:(tt?y.__c=ae=new Mi(Ee,Ke):(y.__c=ae=new Vo(Ee,Ke),ae.constructor=Mi,ae.render=xE),at&&at.sub(ae),ae.props=Ee,ae.state||(ae.state={}),ae.context=Ke,ae.__n=I,Se=ae.__d=!0,ae.__h=[],ae._sb=[]),tt&&ae.__s==null&&(ae.__s=ae.state),tt&&Mi.getDerivedStateFromProps!=null&&(ae.__s==ae.state&&(ae.__s=la({},ae.__s)),la(ae.__s,Mi.getDerivedStateFromProps(Ee,ae.__s))),ye=ae.props,De=ae.state,ae.__v=y,Se)tt&&Mi.getDerivedStateFromProps==null&&ae.componentWillMount!=null&&ae.componentWillMount(),tt&&ae.componentDidMount!=null&&ae.__h.push(ae.componentDidMount);else{if(tt&&Mi.getDerivedStateFromProps==null&&Ee!==ye&&ae.componentWillReceiveProps!=null&&ae.componentWillReceiveProps(Ee,Ke),!ae.__e&&(ae.shouldComponentUpdate!=null&&ae.shouldComponentUpdate(Ee,ae.__s,Ke)===!1||y.__v==w.__v)){for(y.__v!=w.__v&&(ae.props=Ee,ae.state=ae.__s,ae.__d=!1),y.__e=w.__e,y.__k=w.__k,y.__k.some(function(gi){gi&&(gi.__=y)}),pt=0;pt<ae._sb.length;pt++)ae.__h.push(ae._sb[pt]);ae._sb=[],ae.__h.length&&B.push(ae);break e}ae.componentWillUpdate!=null&&ae.componentWillUpdate(Ee,ae.__s,Ke),tt&&ae.componentDidUpdate!=null&&ae.__h.push(function(){ae.componentDidUpdate(ye,De,ve)})}if(ae.context=Ke,ae.props=Ee,ae.__P=p,ae.__e=!1,xt=Ci.__r,Wt=0,tt){for(ae.state=ae.__s,ae.__d=!1,xt&&xt(y),be=ae.render(ae.props,ae.state,ae.context),Ot=0;Ot<ae._sb.length;Ot++)ae.__h.push(ae._sb[Ot]);ae._sb=[]}else do ae.__d=!1,xt&&xt(y),be=ae.render(ae.props,ae.state,ae.context),ae.state=ae.__s;while(ae.__d&&++Wt<25);ae.state=ae.__s,ae.getChildContext!=null&&(I=la(la({},I),ae.getChildContext())),tt&&!Se&&ae.getSnapshotBeforeUpdate!=null&&(ve=ae.getSnapshotBeforeUpdate(ye,De)),Si=(ui=be!=null&&be.type===er&&be.key==null)?be.props.children:be,ui&&(be.props.children=null),o=Uv(p,df(Si)?Si:[Si],y,w,I,z,k,B,o,J,oe),ae.base=y.__e,y.__u&=-161,ae.__h.length&&B.push(ae),ze&&(ae.__E=ae.__=null)}catch(gi){if(y.__v=null,J||k!=null)if(gi.then){for(y.__u|=J?160:128;o&&o.nodeType==8&&o.nextSibling;)o=o.nextSibling;k[k.indexOf(o)]=null,y.__e=o}else for(ni=k.length;ni--;)rg(k[ni]);else y.__e=w.__e,y.__k=w.__k;Ci.__e(gi,y,w)}else k==null&&y.__v==w.__v?(y.__k=w.__k,y.__e=w.__e):o=y.__e=vE(w.__e,y,w,I,z,k,B,J,oe);return(be=Ci.diffed)&&be(y),128&y.__u?void 0:o}function qv(p,y,w){for(var I=0;I<w.length;I++)sg(w[I],w[++I],w[++I]);Ci.__c&&Ci.__c(y,p),p.some(function(z){try{p=z.__h,z.__h=[],p.some(function(k){k.call(z)})}catch(k){Ci.__e(k,z.__v)}})}function vE(p,y,w,I,z,k,B,o,J){var oe,be,ae,Se,ye,De,ve,ze=w.props,Ee=y.props,tt=y.type;if(tt=="svg"?z="http://www.w3.org/2000/svg":tt=="math"?z="http://www.w3.org/1998/Math/MathML":z||(z="http://www.w3.org/1999/xhtml"),k!=null){for(oe=0;oe<k.length;oe++)if((ye=k[oe])&&"setAttribute"in ye==!!tt&&(tt?ye.localName==tt:ye.nodeType==3)){p=ye,k[oe]=null;break}}if(p==null){if(tt==null)return document.createTextNode(Ee);p=document.createElementNS(z,tt,Ee.is&&Ee),o&&(Ci.__m&&Ci.__m(y,k),o=!1),k=null}if(tt===null)ze===Ee||o&&p.data===Ee||(p.data=Ee);else{if(k=k&&Yh.call(p.childNodes),ze=w.props||Kh,!o&&k!=null)for(ze={},oe=0;oe<p.attributes.length;oe++)ze[(ye=p.attributes[oe]).name]=ye.value;for(oe in ze)if(ye=ze[oe],oe!="children"){if(oe=="dangerouslySetInnerHTML")ae=ye;else if(!(oe in Ee)){if(oe=="value"&&"defaultValue"in Ee||oe=="checked"&&"defaultChecked"in Ee)continue;ff(p,oe,null,ye,z)}}for(oe in Ee)ye=Ee[oe],oe=="children"?Se=ye:oe=="dangerouslySetInnerHTML"?be=ye:oe=="value"?De=ye:oe=="checked"?ve=ye:o&&typeof ye!="function"||ze[oe]===ye||ff(p,oe,ye,ze[oe],z);if(be)o||ae&&(be.__html===ae.__html||be.__html===p.innerHTML)||(p.innerHTML=be.__html),y.__k=[];else if(ae&&(p.innerHTML=""),Uv(y.type==="template"?p.content:p,df(Se)?Se:[Se],y,w,I,tt=="foreignObject"?"http://www.w3.org/1999/xhtml":z,k,B,k?k[0]:w.__k&&lu(w,0),o,J),k!=null)for(oe=k.length;oe--;)rg(k[oe]);o||(oe="value",tt=="progress"&&De==null?p.removeAttribute("value"):De!==void 0&&(De!==p[oe]||tt=="progress"&&!De||tt=="option"&&De!==ze[oe])&&ff(p,oe,De,ze[oe],z),oe="checked",ve!==void 0&&ve!==p[oe]&&ff(p,oe,ve,ze[oe],z))}return p}function sg(p,y,w){try{if(typeof p=="function"){var I=typeof p.__u=="function";I&&p.__u(),I&&y==null||(p.__u=p(y))}else p.current=y}catch(z){Ci.__e(z,w)}}function Zv(p,y,w){var I,z;if(Ci.unmount&&Ci.unmount(p),(I=p.ref)&&(I.current&&I.current!==p.__e||sg(I,null,y)),(I=p.__c)!=null){if(I.componentWillUnmount)try{I.componentWillUnmount()}catch(k){Ci.__e(k,y)}I.base=I.__P=null}if(I=p.__k)for(z=0;z<I.length;z++)I[z]&&Zv(I[z],y,w||typeof p.type!="function");w||rg(p.__e),p.__c=p.__=p.__e=void 0}function xE(p,y,w){return this.constructor(p,w)}function cu(p,y,w){var I,z,k,B;y==document&&(y=document.documentElement),Ci.__&&Ci.__(p,y),z=(I=typeof w=="function")?null:w&&w.__k||y.__k,k=[],B=[],og(y,p=(!I&&w||y).__k=Jt(er,null,[p]),z||Kh,Kh,y.namespaceURI,!I&&w?[w]:z?null:y.firstChild?Yh.call(y.childNodes):null,k,!I&&w?w:z?z.__e:y.firstChild,I,B),qv(k,p,B)}function ag(p,y){cu(p,y,ag)}function bE(p,y,w){var I,z,k,B,o=la({},p.props);for(k in p.type&&p.type.defaultProps&&(B=p.type.defaultProps),y)k=="key"?I=y[k]:k=="ref"?z=y[k]:o[k]=y[k]===void 0&&B!==void 0?B[k]:y[k];return arguments.length>2&&(o.children=arguments.length>3?Yh.call(arguments,2):w),Jh(p.type,o,I||p.key,z||p.ref,null)}function ic(p){function y(w){var I,z;return this.getChildContext||(I=new Set,(z={})[y.__c]=this,this.getChildContext=function(){return z},this.componentWillUnmount=function(){I=null},this.shouldComponentUpdate=function(k){this.props.value!==k.value&&I.forEach(function(B){B.__e=!0,ng(B)})},this.sub=function(k){I.add(k);var B=k.componentWillUnmount;k.componentWillUnmount=function(){I&&I.delete(k),B&&B.call(k)}}),w.children}return y.__c="__cC"+Bv++,y.__=p,y.Provider=y.__l=(y.Consumer=function(w,I){return w.children(I)}).contextType=y,y}Yh=Nv.slice,Ci={__e:function(p,y,w,I){for(var z,k,B;y=y.__;)if((z=y.__c)&&!z.__)try{if((k=z.constructor)&&k.getDerivedStateFromError!=null&&(z.setState(k.getDerivedStateFromError(p)),B=z.__d),z.componentDidCatch!=null&&(z.componentDidCatch(p,I||{}),B=z.__d),B)return z.__E=z}catch(o){p=o}throw p}},zv=0,Vo.prototype.setState=function(p,y){var w;w=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=la({},this.state),typeof p=="function"&&(p=p(la({},w),this.props)),p&&la(w,p),p!=null&&this.__v&&(y&&this._sb.push(y),ng(this))},Vo.prototype.forceUpdate=function(p){this.__v&&(this.__e=!0,p&&this.__h.push(p),ng(this))},Vo.prototype.render=er,tc=[],kv=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ov=function(p,y){return p.__v.__b-y.__v.__b},pf.__r=0,Fv=/(PointerCapture)$|Capture$/i,eg=0,tg=Hv(!1),ig=Hv(!0),Bv=0;var Wv=/[\s\n\\/='"\0<>]/,Xv=/^(xlink|xmlns|xml)([A-Z])/,wE=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|spellC|src[A-Z]|tabI|useM|item[A-Z]/,TE=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,SE=/["&<]/;function mf(p){if(p.length===0||SE.test(p)===!1)return p;for(var y=0,w=0,I="",z="";w<p.length;w++){switch(p.charCodeAt(w)){case 34:z="&quot;";break;case 38:z="&amp;";break;case 60:z="&lt;";break;default:continue}w!==y&&(I+=p.slice(y,w)),I+=z,y=w+1}return w!==y&&(I+=p.slice(y,w)),I}var Yv={},EE=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),AE=/[A-Z]/g;function IE(p){var y="";for(var w in p){var I=p[w];if(I!=null&&I!==""){var z=w[0]=="-"?w:Yv[w]||(Yv[w]=w.replace(AE,"-$&").toLowerCase()),k=";";typeof I!="number"||z.startsWith("--")||EE.has(z)||(k="px;"),y=y+z+":"+I+k}}return y||void 0}var lg,rc,Qh,ed,Kv=[],Jv=Array.isArray,cg=Object.assign;function CE(p,y,w){var I=Ci.__s;Ci.__s=!0,lg=Ci.__b,rc=Ci.diffed,Qh=Ci.__r,ed=Ci.unmount;var z=Jt(er,null);z.__k=[p];try{var k=Ds(p,y||ex,!1,void 0,z,!1,w);return Array.isArray(k)?k.join(""):k}catch(B){throw B.then?new Error('Use "renderToStringAsync" for suspenseful rendering.'):B}finally{Ci.__c&&Ci.__c(p,Kv),Ci.__s=I,Kv.length=0}}function Qv(){this.__d=!0}var ex={};function tx(p,y){var w,I=p.type,z=!0;return p.__c?(z=!1,(w=p.__c).state=w.__s):w=new I(p.props,y),p.__c=w,w.__v=p,w.props=p.props,w.context=y,w.__d=!0,w.state==null&&(w.state=ex),w.__s==null&&(w.__s=w.state),I.getDerivedStateFromProps?w.state=cg({},w.state,I.getDerivedStateFromProps(w.props,w.state)):z&&w.componentWillMount?(w.componentWillMount(),w.state=w.__s!==w.state?w.__s:w.state):!z&&w.componentWillUpdate&&w.componentWillUpdate(),Qh&&Qh(p),w.render(w.props,w.state,y)}function Ds(p,y,w,I,z,k,B){if(p==null||p===!0||p===!1||p==="")return"";if(typeof p!="object")return typeof p=="function"?"":mf(p+"");if(Jv(p)){var o,J="";z.__k=p;for(var oe=0;oe<p.length;oe++){var be=p[oe];if(be!=null&&typeof be!="boolean"){var ae,Se=Ds(be,y,w,I,z,k,B);typeof Se=="string"?J+=Se:(o=o||[],J&&o.push(J),J="",Array.isArray(Se)?(ae=o).push.apply(ae,Se):o.push(Se))}}return o?(J&&o.push(J),o):J}if(p.constructor!==void 0)return"";p.__=z,lg&&lg(p);var ye,De,ve,ze=p.type,Ee=p.props,tt=y;if(typeof ze=="function"){if(ze===er){if(Ee.tpl){for(var at="",Ke=0;Ke<Ee.tpl.length;Ke++)if(at+=Ee.tpl[Ke],Ee.exprs&&Ke<Ee.exprs.length){var pt=Ee.exprs[Ke];if(pt==null)continue;typeof pt!="object"||pt.constructor!==void 0&&!Jv(pt)?at+=pt:at+=Ds(pt,y,w,I,p,k,B)}return at}if(Ee.UNSTABLE_comment)return"<!--"+mf(Ee.UNSTABLE_comment||"")+"-->";De=Ee.children}else{if((ye=ze.contextType)!=null){var xt=y[ye.__c];tt=xt?xt.props.value:ye.__}if(ze.prototype&&typeof ze.prototype.render=="function")De=tx(p,tt),ve=p.__c;else{p.__c=ve={__v:p,props:Ee,context:tt,setState:Qv,forceUpdate:Qv,__d:!0,__h:[]};for(var Wt=0;ve.__d&&Wt++<25;)ve.__d=!1,Qh&&Qh(p),De=ze.call(ve,Ee,tt);ve.__d=!0}if(ve.getChildContext!=null&&(y=cg({},y,ve.getChildContext())),(ze.getDerivedStateFromError||ve.componentDidCatch)&&Ci.errorBoundaries){var Ot="";De=De!=null&&De.type===er&&De.key==null?De.props.children:De;try{return Ot=Ds(De,y,w,I,p,k,B)}catch(Ei){return ze.getDerivedStateFromError&&(ve.__s=ze.getDerivedStateFromError(Ei)),ve.componentDidCatch&&ve.componentDidCatch(Ei,{}),ve.__d&&(De=tx(p,y),(ve=p.__c).getChildContext!=null&&(y=cg({},y,ve.getChildContext())),Ot=Ds(De=De!=null&&De.type===er&&De.key==null?De.props.children:De,y,w,I,p,k,B)),Ot}finally{rc&&rc(p),p.__=null,ed&&ed(p)}}}De=De!=null&&De.type===er&&De.key==null&&De.props.tpl==null?De.props.children:De;try{var ui=Ds(De,y,w,I,p,k,B);return rc&&rc(p),p.__=null,Ci.unmount&&Ci.unmount(p),ui}catch(Ei){if(!k&&B&&B.onError){var Si=B.onError(Ei,p,function($r){return Ds($r,y,w,I,p,k,B)});if(Si!==void 0)return Si;var ni=Ci.__e;return ni&&ni(Ei,p),""}if(!k||!Ei||typeof Ei.then!="function")throw Ei;var Mi=function $r(){try{return Ds(De,y,w,I,p,k,B)}catch(vn){if(!vn||typeof vn.then!="function")throw vn;return vn.then(function(){return Ds(De,y,w,I,p,k,B)},function(){return $r()})}};return Ei.then(function(){return Mi()})}}var gi,Bt="<"+ze,Yt="";for(var Gt in Ee){var oi=Ee[Gt];switch(Gt){case"children":gi=oi;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in Ee)continue;Gt="for";break;case"className":if("class"in Ee)continue;Gt="class";break;case"defaultChecked":Gt="checked";break;case"defaultSelected":Gt="selected";break;case"defaultValue":case"value":switch(Gt="value",ze){case"textarea":gi=oi;continue;case"select":I=oi;continue;case"option":I!=oi||"selected"in Ee||(Bt+=" selected")}break;case"dangerouslySetInnerHTML":Yt=oi&&oi.__html;continue;case"style":typeof oi=="object"&&(oi=IE(oi));break;case"acceptCharset":Gt="accept-charset";break;case"httpEquiv":Gt="http-equiv";break;default:if(Xv.test(Gt))Gt=Gt.replace(Xv,"$1:$2").toLowerCase();else{if(Wv.test(Gt))continue;Gt[4]!=="-"&&Gt!=="draggable"||oi==null?w?TE.test(Gt)&&(Gt=Gt==="panose1"?"panose-1":Gt.replace(/([A-Z])/g,"-$1").toLowerCase()):wE.test(Gt)&&(Gt=Gt.toLowerCase()):oi+=""}}oi!=null&&oi!==!1&&typeof oi!="function"&&(Bt=oi===!0||oi===""?Bt+" "+Gt:Bt+" "+Gt+'="'+mf(oi+"")+'"')}if(Wv.test(ze))throw new Error(ze+" is not a valid HTML tag name in "+Bt+">");if(Yt||(typeof gi=="string"?Yt=mf(gi):gi!=null&&gi!==!1&&gi!==!0&&(Yt=Ds(gi,y,ze==="svg"||ze!=="foreignObject"&&w,I,p,k,B))),rc&&rc(p),p.__=null,ed&&ed(p),!Yt&&ME.has(ze))return Bt+"/>";var Wi="</"+ze+">",or=Bt+">";return Array.isArray(Yt)?[or].concat(Yt,[Wi]):typeof Yt!="string"?[or,Yt,Wi]:or+Yt+Wi}var ME=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),ua;function ix(p){return{lang:(p==null?void 0:p.lang)??(ua==null?void 0:ua.lang),message:p==null?void 0:p.message,abortEarly:(p==null?void 0:p.abortEarly)??(ua==null?void 0:ua.abortEarly),abortPipeEarly:(p==null?void 0:p.abortPipeEarly)??(ua==null?void 0:ua.abortPipeEarly)}}var ug;function PE(p){return ug==null?void 0:ug.get(p)}var hg;function DE(p){return hg==null?void 0:hg.get(p)}var dg;function RE(p,y){var w;return(w=dg==null?void 0:dg.get(p))==null?void 0:w.get(y)}function rx(p){var w,I;const y=typeof p;return y==="string"?`"${p}"`:y==="number"||y==="bigint"||y==="boolean"?`${p}`:y==="object"||y==="function"?(p&&((I=(w=Object.getPrototypeOf(p))==null?void 0:w.constructor)==null?void 0:I.name))??"null":y}function rs(p,y,w,I,z){const k=z&&"input"in z?z.input:w.value,B=(z==null?void 0:z.expected)??p.expects??null,o=(z==null?void 0:z.received)??rx(k),J={kind:p.kind,type:p.type,input:k,expected:B,received:o,message:`Invalid ${y}: ${B?`Expected ${B} but r`:"R"}eceived ${o}`,requirement:p.requirement,path:z==null?void 0:z.path,issues:z==null?void 0:z.issues,lang:I.lang,abortEarly:I.abortEarly,abortPipeEarly:I.abortPipeEarly},oe=p.kind==="schema",be=(z==null?void 0:z.message)??p.message??RE(p.reference,J.lang)??(oe?DE(J.lang):null)??I.message??PE(J.lang);be!==void 0&&(J.message=typeof be=="function"?be(J):be),oe&&(w.typed=!1),w.issues?w.issues.push(J):w.issues=[J]}function So(p){return{version:1,vendor:"valibot",validate(y){return p["~run"]({value:y},ix())}}}function zE(p,y){return Object.hasOwn(p,y)&&y!=="__proto__"&&y!=="prototype"&&y!=="constructor"}function LE(p,y){const w=[...new Set(p)];return w.length>1?`(${w.join(` ${y} `)})`:w[0]??"never"}function ns(p){return{kind:"transformation",type:"transform",reference:ns,async:!1,operation:p,"~run"(y){return y.value=this.operation(y.value),y}}}function nx(p){return{kind:"validation",type:"url",reference:nx,async:!1,expects:null,requirement(y){try{return new URL(y),!0}catch{return!1}},message:p,"~run"(y,w){return y.typed&&!this.requirement(y.value)&&rs(this,"URL",y,w),y}}}function kE(p,y,w){return typeof p.fallback=="function"?p.fallback(y,w):p.fallback}function pg(p,y,w){return typeof p.default=="function"?p.default(y,w):p.default}function fg(){return{kind:"schema",type:"any",reference:fg,expects:"any",async:!1,get"~standard"(){return So(this)},"~run"(p){return p.typed=!0,p}}}function td(p,y){return{kind:"schema",type:"array",reference:td,expects:"Array",async:!1,item:p,message:y,get"~standard"(){return So(this)},"~run"(w,I){var k;const z=w.value;if(Array.isArray(z)){w.typed=!0,w.value=[];for(let B=0;B<z.length;B++){const o=z[B],J=this.item["~run"]({value:o},I);if(J.issues){const oe={type:"array",origin:"value",input:z,key:B,value:o};for(const be of J.issues)be.path?be.path.unshift(oe):be.path=[oe],(k=w.issues)==null||k.push(be);if(w.issues||(w.issues=J.issues),I.abortEarly){w.typed=!1;break}}J.typed||(w.typed=!1),w.value.push(J.value)}}else rs(this,"type",w,I);return w}}}function _f(p){return{kind:"schema",type:"boolean",reference:_f,expects:"boolean",async:!1,message:p,get"~standard"(){return So(this)},"~run"(y,w){return typeof y.value=="boolean"?y.typed=!0:rs(this,"type",y,w),y}}}function Rs(p,y){return{kind:"schema",type:"literal",reference:Rs,expects:rx(p),async:!1,literal:p,message:y,get"~standard"(){return So(this)},"~run"(w,I){return w.value===this.literal?w.typed=!0:rs(this,"type",w,I),w}}}function ho(p,y){return{kind:"schema",type:"nullable",reference:ho,expects:`(${p.expects} | null)`,async:!1,wrapped:p,default:y,get"~standard"(){return So(this)},"~run"(w,I){return w.value===null&&(this.default!==void 0&&(w.value=pg(this,w,I)),w.value===null)?(w.typed=!0,w):this.wrapped["~run"](w,I)}}}function os(p){return{kind:"schema",type:"number",reference:os,expects:"number",async:!1,message:p,get"~standard"(){return So(this)},"~run"(y,w){return typeof y.value=="number"&&!isNaN(y.value)?y.typed=!0:rs(this,"type",y,w),y}}}function Eo(p,y){return{kind:"schema",type:"object",reference:Eo,expects:"Object",async:!1,entries:p,message:y,get"~standard"(){return So(this)},"~run"(w,I){var k;const z=w.value;if(z&&typeof z=="object"){w.typed=!0,w.value={};for(const B in this.entries){const o=this.entries[B];if(B in z||(o.type==="exact_optional"||o.type==="optional"||o.type==="nullish")&&o.default!==void 0){const J=B in z?z[B]:pg(o),oe=o["~run"]({value:J},I);if(oe.issues){const be={type:"object",origin:"value",input:z,key:B,value:J};for(const ae of oe.issues)ae.path?ae.path.unshift(be):ae.path=[be],(k=w.issues)==null||k.push(ae);if(w.issues||(w.issues=oe.issues),I.abortEarly){w.typed=!1;break}}oe.typed||(w.typed=!1),w.value[B]=oe.value}else if(o.fallback!==void 0)w.value[B]=kE(o);else if(o.type!=="exact_optional"&&o.type!=="optional"&&o.type!=="nullish"&&(rs(this,"key",w,I,{input:void 0,expected:`"${B}"`,path:[{type:"object",origin:"key",input:z,key:B,value:z[B]}]}),I.abortEarly))break}}else rs(this,"type",w,I);return w}}}function nc(p,y){return{kind:"schema",type:"optional",reference:nc,expects:`(${p.expects} | undefined)`,async:!1,wrapped:p,default:y,get"~standard"(){return So(this)},"~run"(w,I){return w.value===void 0&&(this.default!==void 0&&(w.value=pg(this,w,I)),w.value===void 0)?(w.typed=!0,w):this.wrapped["~run"](w,I)}}}function mg(p,y,w){return{kind:"schema",type:"record",reference:mg,expects:"Object",async:!1,key:p,value:y,message:w,get"~standard"(){return So(this)},"~run"(I,z){var B,o;const k=I.value;if(k&&typeof k=="object"){I.typed=!0,I.value={};for(const J in k)if(zE(k,J)){const oe=k[J],be=this.key["~run"]({value:J},z);if(be.issues){const Se={type:"object",origin:"key",input:k,key:J,value:oe};for(const ye of be.issues)ye.path=[Se],(B=I.issues)==null||B.push(ye);if(I.issues||(I.issues=be.issues),z.abortEarly){I.typed=!1;break}}const ae=this.value["~run"]({value:oe},z);if(ae.issues){const Se={type:"object",origin:"value",input:k,key:J,value:oe};for(const ye of ae.issues)ye.path?ye.path.unshift(Se):ye.path=[Se],(o=I.issues)==null||o.push(ye);if(I.issues||(I.issues=ae.issues),z.abortEarly){I.typed=!1;break}}(!be.typed||!ae.typed)&&(I.typed=!1),be.typed&&(I.value[be.value]=ae.value)}}else rs(this,"type",I,z);return I}}}function nn(p){return{kind:"schema",type:"string",reference:nn,expects:"string",async:!1,message:p,get"~standard"(){return So(this)},"~run"(y,w){return typeof y.value=="string"?y.typed=!0:rs(this,"type",y,w),y}}}function ox(p){let y;if(p)for(const w of p)y?y.push(...w.issues):y=w.issues;return y}function _g(p,y){return{kind:"schema",type:"union",reference:_g,expects:LE(p.map(w=>w.expects),"|"),async:!1,options:p,message:y,get"~standard"(){return So(this)},"~run"(w,I){let z,k,B;for(const o of this.options){const J=o["~run"]({value:w.value},I);if(J.typed)if(J.issues)k?k.push(J):k=[J];else{z=J;break}else B?B.push(J):B=[J]}if(z)return z;if(k){if(k.length===1)return k[0];rs(this,"type",w,I,{issues:ox(k)}),w.typed=!0}else{if((B==null?void 0:B.length)===1)return B[0];rs(this,"type",w,I,{issues:ox(B)})}return w}}}function sx(){return{kind:"schema",type:"unknown",reference:sx,expects:"unknown",async:!1,get"~standard"(){return So(this)},"~run"(p){return p.typed=!0,p}}}function ss(...p){return{...p[0],pipe:p,get"~standard"(){return So(this)},"~run"(y,w){for(const I of p)if(I.kind!=="metadata"){if(y.issues&&(I.kind==="schema"||I.kind==="transformation")){y.typed=!1;break}(!y.issues||!w.abortEarly&&!w.abortPipeEarly)&&(y=I["~run"](y,w))}return y}}}function gg(p,y,w){const I=p["~run"]({value:y},ix(w));return{typed:I.typed,success:!I.issues,output:I.value,issues:I.issues}}const ax="inploi-job-search",oc=10,lx=ss(sx(),ns(String),nn()),OE=mg(nn(),td(Eo({label:lx,value:lx,jobs:os()}))),FE=ss(nn(),nx()),BE=Eo({total:os(),current_page:os(),per_page:os(),last_page:os()}),gf=nc(ho(nn()),null),NE=Eo({id:os(),company_name:nn(),company_logo:gf,employment_type:nn(),location_type:_g([Rs("LOCATION"),Rs("REMOTE"),Rs("HYBRID")]),pay_type:ho(_g([Rs("ANNUALLY"),Rs("HOURLY"),Rs("MONTHLY"),Rs("WEEKLY"),Rs("DAILY")])),pay_currency:nn(),pay_mask:_f(),pay_display:_f(),pay:ho(nn()),pay_min:ho(nn()),pay_max:ho(nn()),title:nn(),contract_type:ho(nn()),created_at:ho(nn()),custom_data:ho(mg(fg(),fg())),href:nn(),industry:ho(nn()),category:ho(nn()),skills:gf,town:gf,city:ho(nn()),country:ho(nn()),vector_distance:gf,coordinates:nc(ho(Eo({lat:os(),lng:os()})))}),cx=p=>ss(NE,ns(y=>{const w=gg(FE,y.company_logo);return{id:y.id,createdAt:y.created_at,company:{name:y.company_name,logo:w.success?w.output:null},employmentType:y.employment_type,locationType:y.location_type,pay:sE({salary:y,config:{locales:void 0},t:p})??null,title:y.title,contractType:y.contract_type,href:y.href,relativePostedDate:y.created_at?lE({to:new Date(y.created_at),t:p}):"INVALID DATE",customData:y.custom_data,raw:y,match:y.vector_distance&&parseFloat(y.vector_distance)<.15?p("great_match"):null}})),jE={method:"GET",pathname:"/search/filters",schema:{response:OE,searchParams:Q_()}},VE=p=>ss(Eo({data:td(cx(p)),pagination:BE}),ns(y=>({pagination:y.pagination,results:y.data}))),UE=p=>!p||Array.isArray(p)&&p.length===0?null:p,yg=p=>{var w,I;const y={};for(const z in p.filters){const k=p.filters[z];y[z]=UE(k==null?void 0:k.value)}return((w=p.geo)==null?void 0:w.type)==="provided"&&p.geo.coords&&(y.geolocation={type:p.geo.type,lat:p.geo.coords.lat,lng:p.geo.coords.lng,radius:p.geo.radius}),((I=p.geo)==null?void 0:I.type)==="bounds"&&(y.geolocation={type:"bounds",sw:{lat:p.geo.sw.lat,lng:p.geo.sw.lng},ne:{lat:p.geo.ne.lat,lng:p.geo.ne.lng}}),y},ux=async({rpcClient:p,state:y,signal:w})=>await p.request(jE,{searchParams:{filters:yg(y),query:y.query},signal:w}),hx=async({rpcClient:p,signal:y,state:w,page:I=1,t:z,prioritySegment:k})=>{const B={method:"GET",pathname:"/search/results",schema:{response:VE(z),searchParams:Q_()}};return await p.request(B,{searchParams:{filters:yg(w),query:w.query,page:I,per_page:oc,priority_segment:k},signal:y})},$E=p=>ss(Eo({data:td(cx(p)),pagination:Eo({has_more:_f()})}),ns(y=>({results:y.data,pagination:y.pagination}))),GE=async({rpcClient:p,signal:y,state:w,t:I,prioritySegment:z})=>{const k={method:"GET",pathname:"/search/map-results",schema:{response:$E(I),searchParams:Q_()}};return await p.request(k,{searchParams:{filters:yg(w),query:w.query,mode:w.mode,priority_segment:z},signal:y})},id=p=>{if(p.error)return{queryState:"error",error:p.error,swr:p};if(p.isLoading&&p.data===void 0)return{queryState:"loading",swr:p};if((p.isLoading||p.isValidating)&&p.data)return{queryState:"revalidating",data:p.data,swr:p};if(!p.isLoading&&p.data)return{queryState:"loaded",data:p.data,swr:p};if(!p.data&&!p.isLoading)return{queryState:"idle",swr:p};throw console.error("Unhandled data state",p),new Error("Unhandled data state")},yf={keepPreviousData:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,revalidateFirstPage:!1};var HE=0;function ue(p,y,w,I,z,k){y||(y={});var B,o,J=y;if("ref"in J)for(o in J={},y)o=="ref"?B=y[o]:J[o]=y[o];var oe={type:p,props:J,key:w,ref:B,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--HE,__i:-1,__u:0,__source:z,__self:k};if(typeof p=="function"&&(B=p.defaultProps))for(o in B)J[o]===void 0&&(J[o]=B[o]);return Ci.vnode&&Ci.vnode(oe),oe}function dx(p){var y,w,I="";if(typeof p=="string"||typeof p=="number")I+=p;else if(typeof p=="object")if(Array.isArray(p)){var z=p.length;for(y=0;y<z;y++)p[y]&&(w=dx(p[y]))&&(I&&(I+=" "),I+=w)}else for(w in p)p[w]&&(I&&(I+=" "),I+=w);return I}function uu(){for(var p,y,w=0,I="",z=arguments.length;w<z;w++)(p=arguments[w])&&(y=dx(p))&&(I&&(I+=" "),I+=y);return I}var ha,Yr,vg,px,hu=0,fx=[],pn=Ci,mx=pn.__b,_x=pn.__r,gx=pn.diffed,yx=pn.__c,vx=pn.unmount,xx=pn.__;function sc(p,y){pn.__h&&pn.__h(Yr,p,hu||y),hu=0;var w=Yr.__H||(Yr.__H={__:[],__h:[]});return p>=w.__.length&&w.__.push({}),w.__[p]}function Fi(p){return hu=1,rd(wx,p)}function rd(p,y,w){var I=sc(ha++,2);if(I.t=p,!I.__c&&(I.__=[w?w(y):wx(void 0,y),function(o){var J=I.__N?I.__N[0]:I.__[0],oe=I.t(J,o);J!==oe&&(I.__N=[oe,I.__[1]],I.__c.setState({}))}],I.__c=Yr,!Yr.__f)){var z=function(o,J,oe){if(!I.__c.__H)return!0;var be=I.__c.__H.__.filter(function(Se){return!!Se.__c});if(be.every(function(Se){return!Se.__N}))return!k||k.call(this,o,J,oe);var ae=I.__c.props!==o;return be.forEach(function(Se){if(Se.__N){var ye=Se.__[0];Se.__=Se.__N,Se.__N=void 0,ye!==Se.__[0]&&(ae=!0)}}),k&&k.call(this,o,J,oe)||ae};Yr.__f=!0;var k=Yr.shouldComponentUpdate,B=Yr.componentWillUpdate;Yr.componentWillUpdate=function(o,J,oe){if(this.__e){var be=k;k=void 0,z(o,J,oe),k=be}B&&B.call(this,o,J,oe)},Yr.shouldComponentUpdate=z}return I.__N||I.__}function qi(p,y){var w=sc(ha++,3);!pn.__s&&wg(w.__H,y)&&(w.__=p,w.u=y,Yr.__H.__h.push(w))}function zs(p,y){var w=sc(ha++,4);!pn.__s&&wg(w.__H,y)&&(w.__=p,w.u=y,Yr.__h.push(w))}function Ri(p){return hu=5,fn(function(){return{current:p}},[])}function xg(p,y,w){hu=6,zs(function(){if(typeof p=="function"){var I=p(y());return function(){p(null),I&&typeof I=="function"&&I()}}if(p)return p.current=y(),function(){return p.current=null}},w==null?w:w.concat(p))}function fn(p,y){var w=sc(ha++,7);return wg(w.__H,y)&&(w.__=p(),w.__H=y,w.__h=p),w.__}function Ur(p,y){return hu=8,fn(function(){return p},y)}function Ka(p){var y=Yr.context[p.__c],w=sc(ha++,9);return w.c=p,y?(w.__==null&&(w.__=!0,y.sub(Yr)),y.props.value):p.__}function vf(p,y){pn.useDebugValue&&pn.useDebugValue(y?y(p):p)}function qE(p){var y=sc(ha++,10),w=Fi();return y.__=p,Yr.componentDidCatch||(Yr.componentDidCatch=function(I,z){y.__&&y.__(I,z),w[1](I)}),[w[0],function(){w[1](void 0)}]}function xf(){var p=sc(ha++,11);if(!p.__){for(var y=Yr.__v;y!==null&&!y.__m&&y.__!==null;)y=y.__;var w=y.__m||(y.__m=[0,0]);p.__="P"+w[0]+"-"+w[1]++}return p.__}function ZE(){for(var p;p=fx.shift();)if(p.__P&&p.__H)try{p.__H.__h.forEach(bf),p.__H.__h.forEach(bg),p.__H.__h=[]}catch(y){p.__H.__h=[],pn.__e(y,p.__v)}}pn.__b=function(p){Yr=null,mx&&mx(p)},pn.__=function(p,y){p&&y.__k&&y.__k.__m&&(p.__m=y.__k.__m),xx&&xx(p,y)},pn.__r=function(p){_x&&_x(p),ha=0;var y=(Yr=p.__c).__H;y&&(vg===Yr?(y.__h=[],Yr.__h=[],y.__.forEach(function(w){w.__N&&(w.__=w.__N),w.u=w.__N=void 0})):(y.__h.forEach(bf),y.__h.forEach(bg),y.__h=[],ha=0)),vg=Yr},pn.diffed=function(p){gx&&gx(p);var y=p.__c;y&&y.__H&&(y.__H.__h.length&&(fx.push(y)!==1&&px===pn.requestAnimationFrame||((px=pn.requestAnimationFrame)||WE)(ZE)),y.__H.__.forEach(function(w){w.u&&(w.__H=w.u),w.u=void 0})),vg=Yr=null},pn.__c=function(p,y){y.some(function(w){try{w.__h.forEach(bf),w.__h=w.__h.filter(function(I){return!I.__||bg(I)})}catch(I){y.some(function(z){z.__h&&(z.__h=[])}),y=[],pn.__e(I,w.__v)}}),yx&&yx(p,y)},pn.unmount=function(p){vx&&vx(p);var y,w=p.__c;w&&w.__H&&(w.__H.__.forEach(function(I){try{bf(I)}catch(z){y=z}}),w.__H=void 0,y&&pn.__e(y,w.__v))};var bx=typeof requestAnimationFrame=="function";function WE(p){var y,w=function(){clearTimeout(I),bx&&cancelAnimationFrame(y),setTimeout(p)},I=setTimeout(w,100);bx&&(y=requestAnimationFrame(w))}function bf(p){var y=Yr,w=p.__c;typeof w=="function"&&(p.__c=void 0,w()),Yr=y}function bg(p){var y=Yr;p.__c=p.__(),Yr=y}function wg(p,y){return!p||p.length!==y.length||y.some(function(w,I){return w!==p[I]})}function wx(p,y){return typeof y=="function"?y(p):y}var XE=["other","few","many","two","one","zero"],Tx=({terms:p,overrides:y,locale:w})=>{const I=new Intl.PluralRules(w);function z(k,B){const o=(y==null?void 0:y[k])??p[k];switch(typeof o){case"string":return o.replace(/{{(\w+)}}/g,(J,oe)=>{var be;return((be=B==null?void 0:B[oe])==null?void 0:be.toString())??""});case"object":{if(typeof(B==null?void 0:B.count)!="number")throw new Error(`Missing count for translation key “${k.toString()}”`);let J=I.select(B.count);if(!(J in o)){const oe=XE.find(be=>be in o);if(!oe)throw new Error(`Missing plural rule for translation key “${k.toString()}”`);J=oe}return o[J].replace(/{{(\w+)}}/g,(oe,be)=>{var ae;return((ae=B==null?void 0:B[be])==null?void 0:ae.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${k.toString()}”.`)}}return z},Sx=ic(null),YE=p=>({TranslationProvider:({terms:y,children:w,locale:I})=>{const z=fn(()=>Tx({locale:I,terms:p,overrides:y}),[y,I]);return ue(Sx.Provider,{value:{t:z,locale:I},children:w})},useTranslation:()=>{const y=Ka(Sx);if(y===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:y.t,locale:y.locale}},createTFunction:({overrides:y,locale:w})=>Tx({terms:p,overrides:y,locale:w})});const{TranslationProvider:KE,useTranslation:On,createTFunction:JE}=YE({type_to_search_jobs:"Type to search jobs",type_to_search:"Type to search",jobs_found:{one:"{{count}} job found",other:"{{count}} jobs found"},no_jobs_found:"No jobs found",no_jobs_found_description:"We could not find any jobs matching your filtering criteria.",jobs_loading_error:"We’re having trouble loading available jobs.",filters_loading_error:"We’re having trouble loading available filters.",no_filter_options_available:"No filter options available.",clear:"Clear",selected:"selected",done:"Done",close:"Close",new:"NEW",posted:"Posted",retry:"Retry",widget_unavailable:"Sorry, this widget is unavailable at the moment.",load_more_count:"Load {{count}} more",of_remaining_count:"of {{count}} remaining",today:"today",over_30_days_ago:"over 30 days ago",in_over_30_days:"in over 30 days",up_to:"Up to",from:"From",invalid_salary:"Invalid salary",competitive:"Competitive",natural_language_input:"Type anything",great_match:"Great match",advanced_mode:"Filters",simple_mode:"Hide filters",ai_disclaimer:"Results may not be perfect. AI-powered search can occasionally suggest unrelated content.",geo_error_timeout:"Timed out. Please type your location manually.",geo_error_permission_denied:"Please allow location access to use this feature.",geo_error_position_unavailable:"Could not locate you. Please type your location manually.",geo_my_location:"My location",geo_locating:"Locating you...",geo_search_placeholder:"Search for a location",geo_clear_search:"Clear location search",location_provided:"Provided location",search_label:"What",geo_label:"Where",geo_range_label:"Within",geo_suggestions_error:"Could not get the suggested locations.",feedback:"How was your search experience?",list:"List",map:"Map",loading_jobs:"Loading jobs…",map_jobs_error:"We’re having trouble loading jobs in the area",map_has_more_title:"Not showing all the jobs in this area",map_has_more_description:"Zoom in to refine your search further",map_jobs_showing:{one:"Showing {{count}} job",other:"Showing {{count}} jobs"},page:"Page",reset:"Reset"});function Ex(p){var y,w,I="";if(typeof p=="string"||typeof p=="number")I+=p;else if(typeof p=="object")if(Array.isArray(p))for(y=0;y<p.length;y++)p[y]&&(w=Ex(p[y]))&&(I&&(I+=" "),I+=w);else for(y in p)p[y]&&(I&&(I+=" "),I+=y);return I}function Tg(){for(var p,y,w=0,I="";w<arguments.length;)(p=arguments[w++])&&(y=Ex(p))&&(I&&(I+=" "),I+=y);return I}const Ax=p=>typeof p=="boolean"?"".concat(p):p===0?"0":p,QE=p=>{const y=function(){for(var z=arguments.length,k=new Array(z),B=0;B<z;B++)k[B]=arguments[B];var o,J;return typeof(p==null||(o=p.hooks)===null||o===void 0?void 0:o["cx:done"])<"u"?p==null?void 0:p.hooks["cx:done"](Tg(k)):typeof(p==null||(J=p.hooks)===null||J===void 0?void 0:J.onComplete)<"u"?p==null?void 0:p.hooks.onComplete(Tg(k)):Tg(k)};return{compose:function(){for(var z=arguments.length,k=new Array(z),B=0;B<z;B++)k[B]=arguments[B];return o=>{const J=Object.fromEntries(Object.entries(o||{}).filter(oe=>{let[be]=oe;return!["class","className"].includes(be)}));return y(k.map(oe=>oe(J)),o==null?void 0:o.class,o==null?void 0:o.className)}},cva:z=>k=>{var B;if((z==null?void 0:z.variants)==null)return y(z==null?void 0:z.base,k==null?void 0:k.class,k==null?void 0:k.className);const{variants:o,defaultVariants:J}=z,oe=Object.keys(o).map(Se=>{const ye=k==null?void 0:k[Se],De=J==null?void 0:J[Se],ve=Ax(ye)||Ax(De);return o[Se][ve]}),be={...J,...k&&Object.entries(k).reduce((Se,ye)=>{let[De,ve]=ye;return typeof ve>"u"?Se:{...Se,[De]:ve}},{})},ae=z==null||(B=z.compoundVariants)===null||B===void 0?void 0:B.reduce((Se,ye)=>{let{class:De,className:ve,...ze}=ye;return Object.entries(ze).every(Ee=>{let[tt,at]=Ee;const Ke=be[tt];return Array.isArray(at)?at.includes(Ke):Ke===at})?[...Se,De,ve]:Se},[]);return y(z==null?void 0:z.base,oe,ae,k==null?void 0:k.class,k==null?void 0:k.className)},cx:y}},{compose:a5,cva:Uo,cx:l5}=QE(),da=Uo({base:"fr animate-selected-tag justify-center touch-hitbox text-style-filter ease-expo-out disabled:text-interactive-neutral-bg-hover disabled:bg-interactive-neutral-bg disabled:hover:disabled:bg-interactive-neutral-bg flex cursor-pointer items-center transition-all duration-snappy active:scale-95",variants:{variant:{neutral:"bg-interactive-neutral-bg pointer-fine:hover:bg-interactive-neutral-bg-hover text-interactive-neutral-text",accent:"bg-interactive-accent-bg pointer-fine:hover:bg-interactive-accent-bg-hover text-interactive-accent-text"},icon:{none:"",right:"",left:"",only:""},position:{relative:"relative",absolute:"absolute"},size:{sm:"py-1 rounded-interactive",lg:"py-2 rounded-interactive",unsized:""}},compoundVariants:[{size:"sm",icon:"right",class:"pl-3 pr-1"},{size:"sm",icon:"left",class:"pl-1 pr-3"},{size:"sm",icon:"none",class:"px-3"},{size:"lg",icon:"none",class:"px-5"},{size:"lg",icon:"right",class:"pl-5 pr-3"},{size:"lg",icon:"only",class:"px-2 py-2"},{size:"sm",icon:"only",class:"px-1 py-1"}],defaultVariants:{variant:"neutral",icon:"none",position:"relative",size:"sm"}}),eA=({error:p,resetError:y})=>{const{t:w}=On();return ue("div",{style:{display:"flex",flexDirection:"column",gap:".5rem",padding:"1rem",fontSize:"1rem",color:"hsl(10, 82%, 45%)",fontFamily:"'system-ui' 'Helvetica'",background:"hsl(7, 100%, 98%)"},children:[ue("p",{children:p.message}),ue("button",{type:"button",onClick:y,style:{background:"white",border:"none",cursor:"pointer",textAlign:"center",borderRadius:"4px",padding:"0.5rem 1rem"},children:w("retry")})]})},Ja=({error:p,resetError:y,class:w,...I})=>{const{t:z}=On();return qi(()=>{p.cause instanceof mE.SchemaValidation&&console.error(p.message,p.cause.issues)},[p]),ue("div",{class:uu("bg-neutral-12 ring-section-weak-stroke rounded-section flex flex-col items-center gap-4 overflow-hidden p-6 text-center",w),...I,children:[ue("div",{class:"flex max-w-full flex-col gap-1",children:[ue("p",{class:"text-neutral-1 text-style-job-heading font-style-job-heading font-weight-job-heading [text-wrap:balance]",children:z("widget_unavailable")}),ue("p",{class:"text-neutral-8 text-style-tag font-style-tag font-weight-tag max-w-full break-words leading-snug [text-wrap:pretty]",children:p.message})]}),ue("button",{type:"button",class:da({variant:"neutral",size:"lg",class:"text-interactive-neutral-bg bg-lowest"}),onClick:y,children:z("retry")})]})};class nd extends Vo{constructor(){super(...arguments);nE(this,"state",{error:null})}static getDerivedStateFromError(w){return{error:w.message}}componentDidCatch(w){this.setState({error:w})}render(){if(this.state.error){const{Fallback:w}=this.props;return ue(w,{error:this.state.error,resetError:()=>{this.setState({error:null})}})}return this.props.children}}const tA={briefcase:ue(er,{children:[ue("path",{d:"M17.25 7.75H6.75C5.64543 7.75 4.75 8.64543 4.75 9.75V16.25C4.75 17.3546 5.64543 18.25 6.75 18.25H17.25C18.3546 18.25 19.25 17.3546 19.25 16.25V9.75C19.25 8.64543 18.3546 7.75 17.25 7.75Z"}),ue("path",{d:"M4.75 11.75H19.25"}),ue("path",{d:"M13.25 12.25V13.25H10.75V12.25H13.25Z"}),ue("path",{d:"M9.25 7.5V6.25C9.25 5.42157 9.92157 4.75 10.75 4.75H13.25C14.0784 4.75 14.75 5.42157 14.75 6.25V7.5"})]}),brand:ue(er,{children:[ue("path",{d:"M18.45 13.9901C18.1288 15.031 17.5574 15.9886 16.773 16.773C15.5071 18.0388 13.7902 18.75 12 18.75C10.2098 18.75 8.49289 18.0388 7.22702 16.773C6.44262 15.9886 5.87122 15.031 5.55003 13.9901"}),ue("path",{d:"M9.87868 14.8713C10.1573 15.1499 10.488 15.3709 10.8519 15.5216C11.2159 15.6724 11.606 15.75 12 15.75C12.394 15.75 12.7841 15.6724 13.1481 15.5216C13.512 15.3709 13.8427 15.1499 14.1213 14.8713"}),ue("path",{d:"M17.0791 7.55413C16.7038 7.12546 16.2758 6.74602 15.8053 6.42486"}),ue("path",{d:"M12.8451 5.30311C12.2799 5.23179 11.7079 5.2323 11.1428 5.30465"}),ue("path",{d:"M8.25666 6.38307C7.78259 6.69901 7.35043 7.07369 6.97047 7.49818"}),ue("circle",{cx:"18.75",cy:"12",r:"2"}),ue("circle",{cx:"5.25",cy:"12",r:"2"})]}),building:ue(er,{children:[ue("path",{d:"M16.75 10.25H13.75"}),ue("path",{d:"M16.75 13.25H13.75"}),ue("path",{d:"M3 18.25H5.25006M5.25006 18.25V14.25C5.25006 13.1454 6.14549 12.25 7.25006 12.25H10.2501L10.25 8.25003C10.25 6.59316 11.5932 5.25 13.25 5.25H17.25C18.9069 5.25 20.25 6.59315 20.25 8.25V18.25H5.25006Z"}),ue("path",{d:"M10.25 12.25V18.25"})]}),circles:ue(er,{children:[ue("path",{d:"M16.773 16.773C15.829 17.717 14.6262 18.3599 13.3169 18.6203C12.0075 18.8808 10.6503 18.7471 9.41689 18.2362C8.18349 17.7253 7.12928 16.8601 6.38758 15.7501C5.64588 14.6401 5.25 13.335 5.25 12C5.25 10.665 5.64588 9.35993 6.38758 8.2499C7.12928 7.13987 8.18349 6.27471 9.41689 5.76381C10.6503 5.25292 12.0075 5.11925 13.3169 5.3797C14.6262 5.64015 15.829 6.28302 16.773 7.22703"}),ue("path",{d:"M9.34835 9.34835C9.8728 8.8239 10.541 8.46675 11.2684 8.32206C11.9958 8.17736 12.7498 8.25162 13.4351 8.53545C14.1203 8.81928 14.706 9.29993 15.118 9.91661C15.5301 10.5333 15.75 11.2583 15.75 12C15.75 12.7417 15.5301 13.4667 15.118 14.0834C14.706 14.7001 14.1203 15.1807 13.4351 15.4645C12.7498 15.7484 11.9958 15.8226 11.2684 15.6779C10.541 15.5333 9.8728 15.1761 9.34835 14.6517"})]}),clock:ue(er,{children:[ue("path",{d:"M14 9L12 13L9.5 12"}),ue("path",{d:"M18.75 12C18.75 15.7279 15.7279 18.75 12 18.75C8.27208 18.75 5.25 15.7279 5.25 12C5.25 8.27208 8.27208 5.25 12 5.25C15.7279 5.25 18.75 8.27208 18.75 12Z"})]}),filter:ue(er,{children:ue("path",{d:"M19.25 7H4.75V8.5L10.25 12.25V17.5H13.75V12.25L19.25 8.5V7Z"})}),globe:ue(er,{children:[ue("path",{d:"M5 13.75H19"}),ue("path",{d:"M5 10.25H19"}),ue("path",{d:"M12 4.75C15.5 9.25 15.5 14.75 12.0001 19.25C8.50012 14.75 8.50005 9.25 12 4.75Z"}),ue("circle",{cx:"12",cy:"12",r:"7.25"})]}),magnifier:ue(er,{children:[ue("path",{d:"M15.5659 15.5659C14.4875 16.6442 13.025 17.25 11.5 17.25C9.97501 17.25 8.51247 16.6442 7.43414 15.5659C6.3558 14.4875 5.75 13.025 5.75 11.5C5.75 9.97501 6.3558 8.51247 7.43414 7.43414C8.51247 6.3558 9.97501 5.75 11.5 5.75C13.025 5.75 14.4875 6.3558 15.5659 7.43414C16.6442 8.51247 17.25 9.97501 17.25 11.5C17.25 13.025 16.6442 14.4875 15.5659 15.5659L15.5659 15.5659Z"}),ue("path",{d:"M11.5 8.75C11.8611 8.75 12.2187 8.82113 12.5524 8.95933C12.886 9.09753 13.1892 9.3001 13.4445 9.55546C13.6999 9.81082 13.9025 10.114 14.0407 10.4476C14.1789 10.7813 14.25 11.1389 14.25 11.5"}),ue("path",{d:"M16 16L19 19"})]}),magnifierSimple:ue(er,{children:[ue("path",{d:"M15.5659 15.5659C14.4875 16.6442 13.025 17.25 11.5 17.25C9.97501 17.25 8.51247 16.6442 7.43414 15.5659C6.3558 14.4875 5.75 13.025 5.75 11.5C5.75 9.97501 6.3558 8.51247 7.43414 7.43414C8.51247 6.3558 9.97501 5.75 11.5 5.75C13.025 5.75 14.4875 6.3558 15.5659 7.43414C16.6442 8.51247 17.25 9.97501 17.25 11.5C17.25 13.025 16.6442 14.4875 15.5659 15.5659L15.5659 15.5659Z"}),ue("path",{d:"M16 16L19 19"})]}),mapPin:ue(er,{children:ue(er,{children:[ue("circle",{cx:"12",cy:"9",r:"2"}),ue("path",{d:"M16.2426 16.8358C17.0818 17.1155 17.6532 17.4719 17.8847 17.8598C18.1162 18.2478 17.9974 18.6499 17.5433 19.0154C17.0892 19.3808 16.3201 19.6932 15.3334 19.9129C14.3467 20.1327 13.1867 20.25 12 20.25C10.8133 20.25 9.65327 20.1327 8.66658 19.9129C7.67988 19.6932 6.91085 19.3808 6.45672 19.0154C6.0026 18.6499 5.88378 18.2478 6.11529 17.8598C6.3468 17.4719 6.91825 17.1155 7.75736 16.8358"}),ue("path",{d:"M17.25 9C17.25 13.3995 12 16.75 12 16.75C12 16.75 6.75 13.3995 6.75 9C6.75 6.10051 9.10051 3.75 12 3.75C14.8995 3.75 17.25 6.10051 17.25 9Z"})]})}),pay:ue(er,{children:[ue("path",{d:"M16.8 16.8a6.78 6.78 0 1 1 0-9.6M12 16v-1M12 9V8"}),ue("path",{d:"M10 14c.3.7 1 1 2 1 2.6 0 2.7-3 0-3s-2.7-3 0-3c1 0 1.7.4 2 1"})]}),sunset:ue(er,{children:[ue("path",{d:"M18.5 8.5L17.5 9.5"}),ue("path",{d:"M5.5 8.5L6.5 9.5"}),ue("path",{d:"M12 6L12 7.5"}),ue("path",{d:"M7.5 15.25L7.5 14.25C7.5 13.6591 7.6164 13.0739 7.84254 12.5279C8.06869 11.982 8.40016 11.4859 8.81802 11.068C9.23588 10.6502 9.73196 10.3187 10.2779 10.0925C10.8239 9.8664 11.4091 9.75 12 9.75C12.5909 9.75 13.1761 9.8664 13.7221 10.0925C14.268 10.3187 14.7641 10.6502 15.182 11.068C15.5998 11.4859 15.9313 11.982 16.1575 12.5279C16.3836 13.0739 16.5 13.6591 16.5 14.25V15.25"}),ue("path",{d:"M20.25 15.25H12H3.75"}),ue("path",{d:"M16.25 18.25H12L7.75 18.25"})]}),x:ue("path",{d:"M8 8l8 8M8 16l8 -8"}),plus:ue("path",{d:"M12 8V16M8 12H16"}),"chevron-right":ue("path",{d:"M11 8L15 12L11 16"}),ai:ue("path",{d:"M8.3 14.5c3.4 0 5.2-1.7 5.2-5.2 0 3.5 1.8 5.2 5.3 5.2-3.6 0-5.3 1.7-5.3 5.1 0-3.4-1.8-5.1-5.3-5.1ZM5 7.5c2.3 0 3.5-1.2 3.5-3.5 0 2.3 1.2 3.4 3.5 3.4-2.3 0-3.5 1.2-3.5 3.5 0-2.3-1.2-3.5-3.5-3.5Z",fill:"currentColor"}),"target-location":ue(er,{children:[ue("circle",{cx:"12",cy:"12",r:"0.75"}),ue("circle",{cx:"12",cy:"12",r:"5.75"}),ue("path",{d:"M12 4.25V6.25"}),ue("path",{d:"M12 17.75V19.75"}),ue("path",{d:"M4.25 12L6.25 12"}),ue("path",{d:"M17.75 12L19.75 12"})]}),warning:ue("path",{fill:"currentColor",stroke:"none",d:"M12 20.4C16.63 20.4 20.4 16.64 20.4 12C20.4 7.36 16.64 3.6 12.0 3.6C7.36 3.6 3.6 7.36 3.6 12C3.6 16.64 7.36 20.4 12 20.4ZM10.8 12.6V7.8H13.2V12.6H10.8ZM10.8 16.8V14.4H13.2V16.8H10.8Z"}),map:ue(er,{children:[ue("path",{d:"M9 17.25V3.75","stroke-dasharray":"1 2"}),ue("path",{d:"M15 6.75V20.25","stroke-dasharray":"1 2"}),ue("path",{d:"M9 17.25L3 18.75V5.25L9 3.75L15 6.75L21 5.25V18.75L15 20.25L9 17.25Z"})]}),list:ue(er,{children:[ue("rect",{x:"4",y:"5",width:"16",height:"5.5",rx:"1"}),ue("rect",{x:"4",y:"13.5",width:"16",height:"5.5",rx:"1"})]})},iA=({theme:p})=>ue("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:ue("defs",{children:Object.entries(tA).map(([y,w])=>{var I;return ue("symbol",{id:`i-icon-${y}`,children:ue("g",{fill:"none","stroke-width":p.mode==="dark"&&((I=p.accessibility)==null?void 0:I.highContrast)!==!0?"1":"1.5","stroke-linecap":"round","stroke-linejoin":"round",stroke:"currentColor",children:w})},y)})})}),An=({name:p,...y})=>ue("svg",{viewBox:"0 0 24 24",width:24,height:24,...y,children:ue("use",{href:`#i-icon-${p}`})});function Ix(p,y){for(var w in y)p[w]=y[w];return p}function Sg(p,y){for(var w in p)if(w!=="__source"&&!(w in y))return!0;for(var I in y)if(I!=="__source"&&p[I]!==y[I])return!0;return!1}function Eg(p,y){var w=y(),I=Fi({t:{__:w,u:y}}),z=I[0].t,k=I[1];return zs(function(){z.__=w,z.u=y,Ag(z)&&k({t:z})},[p,w,y]),qi(function(){return Ag(z)&&k({t:z}),p(function(){Ag(z)&&k({t:z})})},[p]),w}function Ag(p){var y,w,I=p.u,z=p.__;try{var k=I();return!((y=z)===(w=k)&&(y!==0||1/y==1/w)||y!=y&&w!=w)}catch{return!0}}function Ig(p){p()}function Cg(p){return p}function Mg(){return[!1,Ig]}var Pg=zs;function wf(p,y){this.props=p,this.context=y}function Cx(p,y){function w(z){var k=this.props.ref,B=k==z.ref;return!B&&k&&(k.call?k(null):k.current=null),y?!y(this.props,z)||!B:Sg(this.props,z)}function I(z){return this.shouldComponentUpdate=w,Jt(p,z)}return I.displayName="Memo("+(p.displayName||p.name)+")",I.prototype.isReactComponent=!0,I.__f=!0,I}(wf.prototype=new Vo).isPureReactComponent=!0,wf.prototype.shouldComponentUpdate=function(p,y){return Sg(this.props,p)||Sg(this.state,y)};var Mx=Ci.__b;Ci.__b=function(p){p.type&&p.type.__f&&p.ref&&(p.props.ref=p.ref,p.ref=null),Mx&&Mx(p)};var rA=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function on(p){function y(w){var I=Ix({},w);return delete I.ref,p(I,w.ref||null)}return y.$$typeof=rA,y.render=y,y.prototype.isReactComponent=y.__f=!0,y.displayName="ForwardRef("+(p.displayName||p.name)+")",y}var Px=function(p,y){return p==null?null:ca(ca(p).map(y))},Ls={map:Px,forEach:Px,count:function(p){return p?ca(p).length:0},only:function(p){var y=ca(p);if(y.length!==1)throw"Children.only";return y[0]},toArray:ca},nA=Ci.__e;Ci.__e=function(p,y,w,I){if(p.then){for(var z,k=y;k=k.__;)if((z=k.__c)&&z.__c)return y.__e==null&&(y.__e=w.__e,y.__k=w.__k),z.__c(p,y)}nA(p,y,w,I)};var Dx=Ci.unmount;function Rx(p,y,w){return p&&(p.__c&&p.__c.__H&&(p.__c.__H.__.forEach(function(I){typeof I.__c=="function"&&I.__c()}),p.__c.__H=null),(p=Ix({},p)).__c!=null&&(p.__c.__P===w&&(p.__c.__P=y),p.__c=null),p.__k=p.__k&&p.__k.map(function(I){return Rx(I,y,w)})),p}function zx(p,y,w){return p&&w&&(p.__v=null,p.__k=p.__k&&p.__k.map(function(I){return zx(I,y,w)}),p.__c&&p.__c.__P===y&&(p.__e&&w.appendChild(p.__e),p.__c.__e=!0,p.__c.__P=w)),p}function du(){this.__u=0,this.o=null,this.__b=null}function Lx(p){var y=p.__.__c;return y&&y.__a&&y.__a(p)}function Dg(p){var y,w,I;function z(k){if(y||(y=p()).then(function(B){w=B.default||B},function(B){I=B}),I)throw I;if(!w)throw y;return Jt(w,k)}return z.displayName="Lazy",z.__f=!0,z}function pu(){this.i=null,this.l=null}Ci.unmount=function(p){var y=p.__c;y&&y.__R&&y.__R(),y&&32&p.__u&&(p.type=null),Dx&&Dx(p)},(du.prototype=new Vo).__c=function(p,y){var w=y.__c,I=this;I.o==null&&(I.o=[]),I.o.push(w);var z=Lx(I.__v),k=!1,B=function(){k||(k=!0,w.__R=null,z?z(o):o())};w.__R=B;var o=function(){if(!--I.__u){if(I.state.__a){var J=I.state.__a;I.__v.__k[0]=zx(J,J.__c.__P,J.__c.__O)}var oe;for(I.setState({__a:I.__b=null});oe=I.o.pop();)oe.forceUpdate()}};I.__u++||32&y.__u||I.setState({__a:I.__b=I.__v.__k[0]}),p.then(B,B)},du.prototype.componentWillUnmount=function(){this.o=[]},du.prototype.render=function(p,y){if(this.__b){if(this.__v.__k){var w=document.createElement("div"),I=this.__v.__k[0].__c;this.__v.__k[0]=Rx(this.__b,w,I.__O=I.__P)}this.__b=null}var z=y.__a&&Jt(er,null,p.fallback);return z&&(z.__u&=-33),[Jt(er,null,y.__a?null:p.children),z]};var kx=function(p,y,w){if(++w[1]===w[0]&&p.l.delete(y),p.props.revealOrder&&(p.props.revealOrder[0]!=="t"||!p.l.size))for(w=p.i;w;){for(;w.length>3;)w.pop()();if(w[1]<w[0])break;p.i=w=w[2]}};function oA(p){return this.getChildContext=function(){return p.context},p.children}function sA(p){var y=this,w=p.h;y.componentWillUnmount=function(){cu(null,y.v),y.v=null,y.h=null},y.h&&y.h!==w&&y.componentWillUnmount(),y.v||(y.h=w,y.v={nodeType:1,parentNode:w,childNodes:[],contains:function(){return!0},appendChild:function(I){this.childNodes.push(I),y.h.appendChild(I)},insertBefore:function(I,z){this.childNodes.push(I),y.h.insertBefore(I,z)},removeChild:function(I){this.childNodes.splice(this.childNodes.indexOf(I)>>>1,1),y.h.removeChild(I)}}),cu(Jt(oA,{context:y.context},p.__v),y.v)}function Ox(p,y){var w=Jt(sA,{__v:p,h:y});return w.containerInfo=y,w}(pu.prototype=new Vo).__a=function(p){var y=this,w=Lx(y.__v),I=y.l.get(p);return I[0]++,function(z){var k=function(){y.props.revealOrder?(I.push(z),kx(y,p,I)):z()};w?w(k):k()}},pu.prototype.render=function(p){this.i=null,this.l=new Map;var y=ca(p.children);p.revealOrder&&p.revealOrder[0]==="b"&&y.reverse();for(var w=y.length;w--;)this.l.set(y[w],this.i=[1,0,this.i]);return p.children},pu.prototype.componentDidUpdate=pu.prototype.componentDidMount=function(){var p=this;this.l.forEach(function(y,w){kx(p,w,y)})};var Fx=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,aA=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,lA=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,cA=/[A-Z0-9]/g,uA=typeof document<"u",hA=function(p){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(p)};function Bx(p,y,w){return y.__k==null&&(y.textContent=""),cu(p,y),typeof w=="function"&&w(),p?p.__c:null}function Nx(p,y,w){return ag(p,y),typeof w=="function"&&w(),p?p.__c:null}Vo.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(p){Object.defineProperty(Vo.prototype,p,{configurable:!0,get:function(){return this["UNSAFE_"+p]},set:function(y){Object.defineProperty(this,p,{configurable:!0,writable:!0,value:y})}})});var jx=Ci.event;function dA(){}function pA(){return this.cancelBubble}function fA(){return this.defaultPrevented}Ci.event=function(p){return jx&&(p=jx(p)),p.persist=dA,p.isPropagationStopped=pA,p.isDefaultPrevented=fA,p.nativeEvent=p};var Rg,mA={enumerable:!1,configurable:!0,get:function(){return this.class}},Vx=Ci.vnode;Ci.vnode=function(p){typeof p.type=="string"&&function(y){var w=y.props,I=y.type,z={},k=I.indexOf("-")===-1;for(var B in w){var o=w[B];if(!(B==="value"&&"defaultValue"in w&&o==null||uA&&B==="children"&&I==="noscript"||B==="class"||B==="className")){var J=B.toLowerCase();B==="defaultValue"&&"value"in w&&w.value==null?B="value":B==="download"&&o===!0?o="":J==="translate"&&o==="no"?o=!1:J[0]==="o"&&J[1]==="n"?J==="ondoubleclick"?B="ondblclick":J!=="onchange"||I!=="input"&&I!=="textarea"||hA(w.type)?J==="onfocus"?B="onfocusin":J==="onblur"?B="onfocusout":lA.test(B)&&(B=J):J=B="oninput":k&&aA.test(B)?B=B.replace(cA,"-$&").toLowerCase():o===null&&(o=void 0),J==="oninput"&&z[B=J]&&(B="oninputCapture"),z[B]=o}}I=="select"&&z.multiple&&Array.isArray(z.value)&&(z.value=ca(w.children).forEach(function(oe){oe.props.selected=z.value.indexOf(oe.props.value)!=-1})),I=="select"&&z.defaultValue!=null&&(z.value=ca(w.children).forEach(function(oe){oe.props.selected=z.multiple?z.defaultValue.indexOf(oe.props.value)!=-1:z.defaultValue==oe.props.value})),w.class&&!w.className?(z.class=w.class,Object.defineProperty(z,"className",mA)):(w.className&&!w.class||w.class&&w.className)&&(z.class=z.className=w.className),y.props=z}(p),p.$$typeof=Fx,Vx&&Vx(p)};var Ux=Ci.__r;Ci.__r=function(p){Ux&&Ux(p),Rg=p.__c};var $x=Ci.diffed;Ci.diffed=function(p){$x&&$x(p);var y=p.props,w=p.__e;w!=null&&p.type==="textarea"&&"value"in y&&y.value!==w.value&&(w.value=y.value==null?"":y.value),Rg=null};var Gx={ReactCurrentDispatcher:{current:{readContext:function(p){return Rg.__n[p.__c].props.value},useCallback:Ur,useContext:Ka,useDebugValue:vf,useDeferredValue:Cg,useEffect:qi,useId:xf,useImperativeHandle:xg,useInsertionEffect:Pg,useLayoutEffect:zs,useMemo:fn,useReducer:rd,useRef:Ri,useState:Fi,useSyncExternalStore:Eg,useTransition:Mg}}},_A="18.3.1";function Hx(p){return Jt.bind(null,p)}function pa(p){return!!p&&p.$$typeof===Fx}function qx(p){return pa(p)&&p.type===er}function Zx(p){return!!p&&!!p.displayName&&(typeof p.displayName=="string"||p.displayName instanceof String)&&p.displayName.startsWith("Memo(")}function fu(p){return pa(p)?bE.apply(null,arguments):p}function Wx(p){return!!p.__k&&(cu(null,p),!0)}function Xx(p){return p&&(p.base||p.nodeType===1&&p)||null}var Yx=function(p,y){return p(y)},od=function(p,y){return p(y)},Kx=er,Jx=pa,sd={useState:Fi,useId:xf,useReducer:rd,useEffect:qi,useLayoutEffect:zs,useInsertionEffect:Pg,useTransition:Mg,useDeferredValue:Cg,useSyncExternalStore:Eg,startTransition:Ig,useRef:Ri,useImperativeHandle:xg,useMemo:fn,useCallback:Ur,useContext:Ka,useDebugValue:vf,version:"18.3.1",Children:Ls,render:Bx,hydrate:Nx,unmountComponentAtNode:Wx,createPortal:Ox,createElement:Jt,createContext:ic,createFactory:Hx,cloneElement:fu,createRef:jv,Fragment:er,isValidElement:pa,isElement:Jx,isFragment:qx,isMemo:Zx,findDOMNode:Xx,Component:Vo,PureComponent:wf,memo:Cx,forwardRef:on,flushSync:od,unstable_batchedUpdates:Yx,StrictMode:Kx,Suspense:du,SuspenseList:pu,lazy:Dg,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Gx};const Qx=Object.freeze(Object.defineProperty({__proto__:null,Children:Ls,Component:Vo,Fragment:er,PureComponent:wf,StrictMode:Kx,Suspense:du,SuspenseList:pu,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Gx,cloneElement:fu,createContext:ic,createElement:Jt,createFactory:Hx,createPortal:Ox,createRef:jv,default:sd,findDOMNode:Xx,flushSync:od,forwardRef:on,hydrate:Nx,isElement:Jx,isFragment:qx,isMemo:Zx,isValidElement:pa,lazy:Dg,memo:Cx,render:Bx,startTransition:Ig,unmountComponentAtNode:Wx,unstable_batchedUpdates:Yx,useCallback:Ur,useContext:Ka,useDebugValue:vf,useDeferredValue:Cg,useEffect:qi,useErrorBoundary:qE,useId:xf,useImperativeHandle:xg,useInsertionEffect:Pg,useLayoutEffect:zs,useMemo:fn,useReducer:rd,useRef:Ri,useState:Fi,useSyncExternalStore:Eg,useTransition:Mg,version:_A},Symbol.toStringTag,{value:"Module"}));var ad=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zg(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}function gA(p){if(p.__esModule)return p;var y=p.default;if(typeof y=="function"){var w=function I(){return this instanceof I?Reflect.construct(y,arguments,this.constructor):y.apply(this,arguments)};w.prototype=y.prototype}else w={};return Object.defineProperty(w,"__esModule",{value:!0}),Object.keys(p).forEach(function(I){var z=Object.getOwnPropertyDescriptor(p,I);Object.defineProperty(w,I,z.get?z:{enumerable:!0,get:function(){return p[I]}})}),w}var Lg={exports:{}},kg={};const e1=gA(Qx);/**
1
+ var n5=Object.defineProperty;var o5=(jo,Ps,ec)=>Ps in jo?n5(jo,Ps,{enumerable:!0,configurable:!0,writable:!0,value:ec}):jo[Ps]=ec;var nE=(jo,Ps,ec)=>(o5(jo,typeof Ps!="symbol"?Ps+"":Ps,ec),ec);(function(){"use strict";var jo=p=>{throw new Error(`Unhandled discriminated union member: ${JSON.stringify(p)}`)};function Ps(p,y){if(!p)throw new Error(y)}function ec(p,y){return p in y}var Rv={ANNUALLY:"per year",DAILY:"per day",HOURLY:"per hour",MONTHLY:"per month",WEEKLY:"per week"},sE=p=>{const{salary:y,config:w,t:I=B=>B}=p,z=new Intl.NumberFormat(w.locales,{style:"currency",currency:y.pay_currency,trailingZeroDisplay:"stripIfInteger"});if(y.pay_display===!1||y.pay===null&&y.pay_min===null&&y.pay_max===null)return;if(y.pay_mask)return I("competitive");if(y.pay_max&&Number.isNaN(+y.pay_max)||y.pay_min&&Number.isNaN(+y.pay_min)||y.pay&&Number.isNaN(+y.pay))return I("invalid_salary");const k=y.pay_type&&y.pay_type in Rv?Rv[y.pay_type]:void 0;return y.pay?[z.format(+y.pay),k].filter(Boolean).join(" "):y.pay_max&&y.pay_min?[z.formatRange(+y.pay_min,+y.pay_max),k].filter(Boolean).join(" ")||"":y.pay_max?`${I("up_to")} ${[z.format(+y.pay_max),k].filter(Boolean).join(" ")}`:y.pay_min?`${I("from")} ${[z.format(+y.pay_min),k].filter(Boolean).join(" ")}`:I("invalid_salary")},aE=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),lE=({from:p=new Date,to:y,formatter:w=aE,t:I=z=>z})=>{const k=(y instanceof Date?y:new Date(y)).getTime()-p.getTime(),B={days:Math.round(k/1e3/60/60/24),months:Math.round(k/1e3/60/60/24/30)};return B.days===0?I("today"):Math.abs(B.days)<30?w.format(B.days,"days"):Math.abs(B.days)<3?w.format(B.months,"months"):B.months<0?I("over_30_days_ago"):I("in_over_30_days")},cE=p=>p,Xh=class extends Error{constructor(y,w){super(y),this.status=w,this.name="ErrorWithStatus"}},uE=class extends Xh{constructor(y){super(y??"Not found"),this.name="NotFoundError",this.status=404}},hE=class extends Xh{constructor(y,w){super(y??"You are not authorised to perform this action."),this.name="UnauthorisedError",this.status=w??401}},dE=class extends Xh{constructor(y,w){let I=w?` in ${w}`:"";super(`Schema validation failed${I}`),this.issues=y,this.source=w,this.name="SchemaValidationError",this.status=400}},pE=class extends Xh{constructor(y,w){super(y),this.name="ApiError",this.status=w??500}},fE=class extends Xh{constructor(y){super("Error parsing response into JSON."),this.response=y,this.name="ParsingError",this.status=500}},mE={NotFound:uE,Unauthorised:hE,SchemaValidation:dE,Api:pE,JsonParsing:fE};function Q_(){return{"~standard":{vendor:"inploi",version:1,validate:p=>({value:p})}}}function s5(p){return p}var Yh,Ci,zv,tc,Lv,kv,Ov,Fv,eg,tg,ig,Bv,Kh={},Nv=[],_E=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,df=Array.isArray;function la(p,y){for(var w in y)p[w]=y[w];return p}function rg(p){p&&p.parentNode&&p.parentNode.removeChild(p)}function Jt(p,y,w){var I,z,k,B={};for(k in y)k=="key"?I=y[k]:k=="ref"?z=y[k]:B[k]=y[k];if(arguments.length>2&&(B.children=arguments.length>3?Yh.call(arguments,2):w),typeof p=="function"&&p.defaultProps!=null)for(k in p.defaultProps)B[k]===void 0&&(B[k]=p.defaultProps[k]);return Jh(p,B,I,z,null)}function Jh(p,y,w,I,z){var k={type:p,props:y,key:w,ref:I,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:z??++zv,__i:-1,__u:0};return z==null&&Ci.vnode!=null&&Ci.vnode(k),k}function jv(){return{current:null}}function er(p){return p.children}function Vo(p,y){this.props=p,this.context=y}function lu(p,y){if(y==null)return p.__?lu(p.__,p.__i+1):null;for(var w;y<p.__k.length;y++)if((w=p.__k[y])!=null&&w.__e!=null)return w.__e;return typeof p.type=="function"?lu(p):null}function Vv(p){var y,w;if((p=p.__)!=null&&p.__c!=null){for(p.__e=p.__c.base=null,y=0;y<p.__k.length;y++)if((w=p.__k[y])!=null&&w.__e!=null){p.__e=p.__c.base=w.__e;break}return Vv(p)}}function ng(p){(!p.__d&&(p.__d=!0)&&tc.push(p)&&!pf.__r++||Lv!==Ci.debounceRendering)&&((Lv=Ci.debounceRendering)||kv)(pf)}function pf(){for(var p,y,w,I,z,k,B,o=1;tc.length;)tc.length>o&&tc.sort(Ov),p=tc.shift(),o=tc.length,p.__d&&(w=void 0,z=(I=(y=p).__v).__e,k=[],B=[],y.__P&&((w=la({},I)).__v=I.__v+1,Ci.vnode&&Ci.vnode(w),og(y.__P,w,I,y.__n,y.__P.namespaceURI,32&I.__u?[z]:null,k,z??lu(I),!!(32&I.__u),B),w.__v=I.__v,w.__.__k[w.__i]=w,qv(k,w,B),w.__e!=z&&Vv(w)));pf.__r=0}function Uv(p,y,w,I,z,k,B,o,J,oe,be){var ae,Se,ye,De,ve,ze,Ee=I&&I.__k||Nv,tt=y.length;for(J=gE(w,y,Ee,J,tt),ae=0;ae<tt;ae++)(ye=w.__k[ae])!=null&&(Se=ye.__i===-1?Kh:Ee[ye.__i]||Kh,ye.__i=ae,ze=og(p,ye,Se,z,k,B,o,J,oe,be),De=ye.__e,ye.ref&&Se.ref!=ye.ref&&(Se.ref&&sg(Se.ref,null,ye),be.push(ye.ref,ye.__c||De,ye)),ve==null&&De!=null&&(ve=De),4&ye.__u||Se.__k===ye.__k?J=$v(ye,J,p):typeof ye.type=="function"&&ze!==void 0?J=ze:De&&(J=De.nextSibling),ye.__u&=-7);return w.__e=ve,J}function gE(p,y,w,I,z){var k,B,o,J,oe,be=w.length,ae=be,Se=0;for(p.__k=new Array(z),k=0;k<z;k++)(B=y[k])!=null&&typeof B!="boolean"&&typeof B!="function"?(J=k+Se,(B=p.__k[k]=typeof B=="string"||typeof B=="number"||typeof B=="bigint"||B.constructor==String?Jh(null,B,null,null,null):df(B)?Jh(er,{children:B},null,null,null):B.constructor===void 0&&B.__b>0?Jh(B.type,B.props,B.key,B.ref?B.ref:null,B.__v):B).__=p,B.__b=p.__b+1,o=null,(oe=B.__i=yE(B,w,J,ae))!==-1&&(ae--,(o=w[oe])&&(o.__u|=2)),o==null||o.__v===null?(oe==-1&&(z>be?Se--:z<be&&Se++),typeof B.type!="function"&&(B.__u|=4)):oe!=J&&(oe==J-1?Se--:oe==J+1?Se++:(oe>J?Se--:Se++,B.__u|=4))):p.__k[k]=null;if(ae)for(k=0;k<be;k++)(o=w[k])!=null&&!(2&o.__u)&&(o.__e==I&&(I=lu(o)),Zv(o,o));return I}function $v(p,y,w){var I,z;if(typeof p.type=="function"){for(I=p.__k,z=0;I&&z<I.length;z++)I[z]&&(I[z].__=p,y=$v(I[z],y,w));return y}p.__e!=y&&(y&&p.type&&!w.contains(y)&&(y=lu(p)),w.insertBefore(p.__e,y||null),y=p.__e);do y=y&&y.nextSibling;while(y!=null&&y.nodeType==8);return y}function ca(p,y){return y=y||[],p==null||typeof p=="boolean"||(df(p)?p.some(function(w){ca(w,y)}):y.push(p)),y}function yE(p,y,w,I){var z,k,B=p.key,o=p.type,J=y[w];if(J===null&&p.key==null||J&&B==J.key&&o===J.type&&!(2&J.__u))return w;if(I>(J!=null&&!(2&J.__u)?1:0))for(z=w-1,k=w+1;z>=0||k<y.length;){if(z>=0){if((J=y[z])&&!(2&J.__u)&&B==J.key&&o===J.type)return z;z--}if(k<y.length){if((J=y[k])&&!(2&J.__u)&&B==J.key&&o===J.type)return k;k++}}return-1}function Gv(p,y,w){y[0]=="-"?p.setProperty(y,w??""):p[y]=w==null?"":typeof w!="number"||_E.test(y)?w:w+"px"}function ff(p,y,w,I,z){var k;e:if(y=="style")if(typeof w=="string")p.style.cssText=w;else{if(typeof I=="string"&&(p.style.cssText=I=""),I)for(y in I)w&&y in w||Gv(p.style,y,"");if(w)for(y in w)I&&w[y]===I[y]||Gv(p.style,y,w[y])}else if(y[0]=="o"&&y[1]=="n")k=y!=(y=y.replace(Fv,"$1")),y=y.toLowerCase()in p||y=="onFocusOut"||y=="onFocusIn"?y.toLowerCase().slice(2):y.slice(2),p.l||(p.l={}),p.l[y+k]=w,w?I?w.u=I.u:(w.u=eg,p.addEventListener(y,k?ig:tg,k)):p.removeEventListener(y,k?ig:tg,k);else{if(z=="http://www.w3.org/2000/svg")y=y.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(y!="width"&&y!="height"&&y!="href"&&y!="list"&&y!="form"&&y!="tabIndex"&&y!="download"&&y!="rowSpan"&&y!="colSpan"&&y!="role"&&y!="popover"&&y in p)try{p[y]=w??"";break e}catch{}typeof w=="function"||(w==null||w===!1&&y[4]!="-"?p.removeAttribute(y):p.setAttribute(y,y=="popover"&&w==1?"":w))}}function Hv(p){return function(y){if(this.l){var w=this.l[y.type+p];if(y.t==null)y.t=eg++;else if(y.t<w.u)return;return w(Ci.event?Ci.event(y):y)}}}function og(p,y,w,I,z,k,B,o,J,oe){var be,ae,Se,ye,De,ve,ze,Ee,tt,at,Ke,pt,xt,Wt,Ot,ui,Si,ni,Mi=y.type;if(y.constructor!==void 0)return null;128&w.__u&&(J=!!(32&w.__u),k=[o=y.__e=w.__e]),(be=Ci.__b)&&be(y);e:if(typeof Mi=="function")try{if(Ee=y.props,tt="prototype"in Mi&&Mi.prototype.render,at=(be=Mi.contextType)&&I[be.__c],Ke=be?at?at.props.value:be.__:I,w.__c?ze=(ae=y.__c=w.__c).__=ae.__E:(tt?y.__c=ae=new Mi(Ee,Ke):(y.__c=ae=new Vo(Ee,Ke),ae.constructor=Mi,ae.render=xE),at&&at.sub(ae),ae.props=Ee,ae.state||(ae.state={}),ae.context=Ke,ae.__n=I,Se=ae.__d=!0,ae.__h=[],ae._sb=[]),tt&&ae.__s==null&&(ae.__s=ae.state),tt&&Mi.getDerivedStateFromProps!=null&&(ae.__s==ae.state&&(ae.__s=la({},ae.__s)),la(ae.__s,Mi.getDerivedStateFromProps(Ee,ae.__s))),ye=ae.props,De=ae.state,ae.__v=y,Se)tt&&Mi.getDerivedStateFromProps==null&&ae.componentWillMount!=null&&ae.componentWillMount(),tt&&ae.componentDidMount!=null&&ae.__h.push(ae.componentDidMount);else{if(tt&&Mi.getDerivedStateFromProps==null&&Ee!==ye&&ae.componentWillReceiveProps!=null&&ae.componentWillReceiveProps(Ee,Ke),!ae.__e&&(ae.shouldComponentUpdate!=null&&ae.shouldComponentUpdate(Ee,ae.__s,Ke)===!1||y.__v==w.__v)){for(y.__v!=w.__v&&(ae.props=Ee,ae.state=ae.__s,ae.__d=!1),y.__e=w.__e,y.__k=w.__k,y.__k.some(function(gi){gi&&(gi.__=y)}),pt=0;pt<ae._sb.length;pt++)ae.__h.push(ae._sb[pt]);ae._sb=[],ae.__h.length&&B.push(ae);break e}ae.componentWillUpdate!=null&&ae.componentWillUpdate(Ee,ae.__s,Ke),tt&&ae.componentDidUpdate!=null&&ae.__h.push(function(){ae.componentDidUpdate(ye,De,ve)})}if(ae.context=Ke,ae.props=Ee,ae.__P=p,ae.__e=!1,xt=Ci.__r,Wt=0,tt){for(ae.state=ae.__s,ae.__d=!1,xt&&xt(y),be=ae.render(ae.props,ae.state,ae.context),Ot=0;Ot<ae._sb.length;Ot++)ae.__h.push(ae._sb[Ot]);ae._sb=[]}else do ae.__d=!1,xt&&xt(y),be=ae.render(ae.props,ae.state,ae.context),ae.state=ae.__s;while(ae.__d&&++Wt<25);ae.state=ae.__s,ae.getChildContext!=null&&(I=la(la({},I),ae.getChildContext())),tt&&!Se&&ae.getSnapshotBeforeUpdate!=null&&(ve=ae.getSnapshotBeforeUpdate(ye,De)),Si=(ui=be!=null&&be.type===er&&be.key==null)?be.props.children:be,ui&&(be.props.children=null),o=Uv(p,df(Si)?Si:[Si],y,w,I,z,k,B,o,J,oe),ae.base=y.__e,y.__u&=-161,ae.__h.length&&B.push(ae),ze&&(ae.__E=ae.__=null)}catch(gi){if(y.__v=null,J||k!=null)if(gi.then){for(y.__u|=J?160:128;o&&o.nodeType==8&&o.nextSibling;)o=o.nextSibling;k[k.indexOf(o)]=null,y.__e=o}else for(ni=k.length;ni--;)rg(k[ni]);else y.__e=w.__e,y.__k=w.__k;Ci.__e(gi,y,w)}else k==null&&y.__v==w.__v?(y.__k=w.__k,y.__e=w.__e):o=y.__e=vE(w.__e,y,w,I,z,k,B,J,oe);return(be=Ci.diffed)&&be(y),128&y.__u?void 0:o}function qv(p,y,w){for(var I=0;I<w.length;I++)sg(w[I],w[++I],w[++I]);Ci.__c&&Ci.__c(y,p),p.some(function(z){try{p=z.__h,z.__h=[],p.some(function(k){k.call(z)})}catch(k){Ci.__e(k,z.__v)}})}function vE(p,y,w,I,z,k,B,o,J){var oe,be,ae,Se,ye,De,ve,ze=w.props,Ee=y.props,tt=y.type;if(tt=="svg"?z="http://www.w3.org/2000/svg":tt=="math"?z="http://www.w3.org/1998/Math/MathML":z||(z="http://www.w3.org/1999/xhtml"),k!=null){for(oe=0;oe<k.length;oe++)if((ye=k[oe])&&"setAttribute"in ye==!!tt&&(tt?ye.localName==tt:ye.nodeType==3)){p=ye,k[oe]=null;break}}if(p==null){if(tt==null)return document.createTextNode(Ee);p=document.createElementNS(z,tt,Ee.is&&Ee),o&&(Ci.__m&&Ci.__m(y,k),o=!1),k=null}if(tt===null)ze===Ee||o&&p.data===Ee||(p.data=Ee);else{if(k=k&&Yh.call(p.childNodes),ze=w.props||Kh,!o&&k!=null)for(ze={},oe=0;oe<p.attributes.length;oe++)ze[(ye=p.attributes[oe]).name]=ye.value;for(oe in ze)if(ye=ze[oe],oe!="children"){if(oe=="dangerouslySetInnerHTML")ae=ye;else if(!(oe in Ee)){if(oe=="value"&&"defaultValue"in Ee||oe=="checked"&&"defaultChecked"in Ee)continue;ff(p,oe,null,ye,z)}}for(oe in Ee)ye=Ee[oe],oe=="children"?Se=ye:oe=="dangerouslySetInnerHTML"?be=ye:oe=="value"?De=ye:oe=="checked"?ve=ye:o&&typeof ye!="function"||ze[oe]===ye||ff(p,oe,ye,ze[oe],z);if(be)o||ae&&(be.__html===ae.__html||be.__html===p.innerHTML)||(p.innerHTML=be.__html),y.__k=[];else if(ae&&(p.innerHTML=""),Uv(y.type==="template"?p.content:p,df(Se)?Se:[Se],y,w,I,tt=="foreignObject"?"http://www.w3.org/1999/xhtml":z,k,B,k?k[0]:w.__k&&lu(w,0),o,J),k!=null)for(oe=k.length;oe--;)rg(k[oe]);o||(oe="value",tt=="progress"&&De==null?p.removeAttribute("value"):De!==void 0&&(De!==p[oe]||tt=="progress"&&!De||tt=="option"&&De!==ze[oe])&&ff(p,oe,De,ze[oe],z),oe="checked",ve!==void 0&&ve!==p[oe]&&ff(p,oe,ve,ze[oe],z))}return p}function sg(p,y,w){try{if(typeof p=="function"){var I=typeof p.__u=="function";I&&p.__u(),I&&y==null||(p.__u=p(y))}else p.current=y}catch(z){Ci.__e(z,w)}}function Zv(p,y,w){var I,z;if(Ci.unmount&&Ci.unmount(p),(I=p.ref)&&(I.current&&I.current!==p.__e||sg(I,null,y)),(I=p.__c)!=null){if(I.componentWillUnmount)try{I.componentWillUnmount()}catch(k){Ci.__e(k,y)}I.base=I.__P=null}if(I=p.__k)for(z=0;z<I.length;z++)I[z]&&Zv(I[z],y,w||typeof p.type!="function");w||rg(p.__e),p.__c=p.__=p.__e=void 0}function xE(p,y,w){return this.constructor(p,w)}function cu(p,y,w){var I,z,k,B;y==document&&(y=document.documentElement),Ci.__&&Ci.__(p,y),z=(I=typeof w=="function")?null:w&&w.__k||y.__k,k=[],B=[],og(y,p=(!I&&w||y).__k=Jt(er,null,[p]),z||Kh,Kh,y.namespaceURI,!I&&w?[w]:z?null:y.firstChild?Yh.call(y.childNodes):null,k,!I&&w?w:z?z.__e:y.firstChild,I,B),qv(k,p,B)}function ag(p,y){cu(p,y,ag)}function bE(p,y,w){var I,z,k,B,o=la({},p.props);for(k in p.type&&p.type.defaultProps&&(B=p.type.defaultProps),y)k=="key"?I=y[k]:k=="ref"?z=y[k]:o[k]=y[k]===void 0&&B!==void 0?B[k]:y[k];return arguments.length>2&&(o.children=arguments.length>3?Yh.call(arguments,2):w),Jh(p.type,o,I||p.key,z||p.ref,null)}function ic(p){function y(w){var I,z;return this.getChildContext||(I=new Set,(z={})[y.__c]=this,this.getChildContext=function(){return z},this.componentWillUnmount=function(){I=null},this.shouldComponentUpdate=function(k){this.props.value!==k.value&&I.forEach(function(B){B.__e=!0,ng(B)})},this.sub=function(k){I.add(k);var B=k.componentWillUnmount;k.componentWillUnmount=function(){I&&I.delete(k),B&&B.call(k)}}),w.children}return y.__c="__cC"+Bv++,y.__=p,y.Provider=y.__l=(y.Consumer=function(w,I){return w.children(I)}).contextType=y,y}Yh=Nv.slice,Ci={__e:function(p,y,w,I){for(var z,k,B;y=y.__;)if((z=y.__c)&&!z.__)try{if((k=z.constructor)&&k.getDerivedStateFromError!=null&&(z.setState(k.getDerivedStateFromError(p)),B=z.__d),z.componentDidCatch!=null&&(z.componentDidCatch(p,I||{}),B=z.__d),B)return z.__E=z}catch(o){p=o}throw p}},zv=0,Vo.prototype.setState=function(p,y){var w;w=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=la({},this.state),typeof p=="function"&&(p=p(la({},w),this.props)),p&&la(w,p),p!=null&&this.__v&&(y&&this._sb.push(y),ng(this))},Vo.prototype.forceUpdate=function(p){this.__v&&(this.__e=!0,p&&this.__h.push(p),ng(this))},Vo.prototype.render=er,tc=[],kv=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ov=function(p,y){return p.__v.__b-y.__v.__b},pf.__r=0,Fv=/(PointerCapture)$|Capture$/i,eg=0,tg=Hv(!1),ig=Hv(!0),Bv=0;var Wv=/[\s\n\\/='"\0<>]/,Xv=/^(xlink|xmlns|xml)([A-Z])/,wE=/^accessK|^auto[A-Z]|^cell|^ch|^col|cont|cross|dateT|encT|form[A-Z]|frame|hrefL|inputM|maxL|minL|noV|playsI|popoverT|readO|rowS|spellC|src[A-Z]|tabI|useM|item[A-Z]/,TE=/^ac|^ali|arabic|basel|cap|clipPath$|clipRule$|color|dominant|enable|fill|flood|font|glyph[^R]|horiz|image|letter|lighting|marker[^WUH]|overline|panose|pointe|paint|rendering|shape|stop|strikethrough|stroke|text[^L]|transform|underline|unicode|units|^v[^i]|^w|^xH/,SE=/["&<]/;function mf(p){if(p.length===0||SE.test(p)===!1)return p;for(var y=0,w=0,I="",z="";w<p.length;w++){switch(p.charCodeAt(w)){case 34:z="&quot;";break;case 38:z="&amp;";break;case 60:z="&lt;";break;default:continue}w!==y&&(I+=p.slice(y,w)),I+=z,y=w+1}return w!==y&&(I+=p.slice(y,w)),I}var Yv={},EE=new Set(["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","fill-opacity","flex","flex-grow","flex-negative","flex-order","flex-positive","flex-shrink","flood-opacity","font-weight","grid-column","grid-row","line-clamp","line-height","opacity","order","orphans","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","widows","z-index","zoom"]),AE=/[A-Z]/g;function IE(p){var y="";for(var w in p){var I=p[w];if(I!=null&&I!==""){var z=w[0]=="-"?w:Yv[w]||(Yv[w]=w.replace(AE,"-$&").toLowerCase()),k=";";typeof I!="number"||z.startsWith("--")||EE.has(z)||(k="px;"),y=y+z+":"+I+k}}return y||void 0}var lg,rc,Qh,ed,Kv=[],Jv=Array.isArray,cg=Object.assign;function CE(p,y,w){var I=Ci.__s;Ci.__s=!0,lg=Ci.__b,rc=Ci.diffed,Qh=Ci.__r,ed=Ci.unmount;var z=Jt(er,null);z.__k=[p];try{var k=Ds(p,y||ex,!1,void 0,z,!1,w);return Array.isArray(k)?k.join(""):k}catch(B){throw B.then?new Error('Use "renderToStringAsync" for suspenseful rendering.'):B}finally{Ci.__c&&Ci.__c(p,Kv),Ci.__s=I,Kv.length=0}}function Qv(){this.__d=!0}var ex={};function tx(p,y){var w,I=p.type,z=!0;return p.__c?(z=!1,(w=p.__c).state=w.__s):w=new I(p.props,y),p.__c=w,w.__v=p,w.props=p.props,w.context=y,w.__d=!0,w.state==null&&(w.state=ex),w.__s==null&&(w.__s=w.state),I.getDerivedStateFromProps?w.state=cg({},w.state,I.getDerivedStateFromProps(w.props,w.state)):z&&w.componentWillMount?(w.componentWillMount(),w.state=w.__s!==w.state?w.__s:w.state):!z&&w.componentWillUpdate&&w.componentWillUpdate(),Qh&&Qh(p),w.render(w.props,w.state,y)}function Ds(p,y,w,I,z,k,B){if(p==null||p===!0||p===!1||p==="")return"";if(typeof p!="object")return typeof p=="function"?"":mf(p+"");if(Jv(p)){var o,J="";z.__k=p;for(var oe=0;oe<p.length;oe++){var be=p[oe];if(be!=null&&typeof be!="boolean"){var ae,Se=Ds(be,y,w,I,z,k,B);typeof Se=="string"?J+=Se:(o=o||[],J&&o.push(J),J="",Array.isArray(Se)?(ae=o).push.apply(ae,Se):o.push(Se))}}return o?(J&&o.push(J),o):J}if(p.constructor!==void 0)return"";p.__=z,lg&&lg(p);var ye,De,ve,ze=p.type,Ee=p.props,tt=y;if(typeof ze=="function"){if(ze===er){if(Ee.tpl){for(var at="",Ke=0;Ke<Ee.tpl.length;Ke++)if(at+=Ee.tpl[Ke],Ee.exprs&&Ke<Ee.exprs.length){var pt=Ee.exprs[Ke];if(pt==null)continue;typeof pt!="object"||pt.constructor!==void 0&&!Jv(pt)?at+=pt:at+=Ds(pt,y,w,I,p,k,B)}return at}if(Ee.UNSTABLE_comment)return"<!--"+mf(Ee.UNSTABLE_comment||"")+"-->";De=Ee.children}else{if((ye=ze.contextType)!=null){var xt=y[ye.__c];tt=xt?xt.props.value:ye.__}if(ze.prototype&&typeof ze.prototype.render=="function")De=tx(p,tt),ve=p.__c;else{p.__c=ve={__v:p,props:Ee,context:tt,setState:Qv,forceUpdate:Qv,__d:!0,__h:[]};for(var Wt=0;ve.__d&&Wt++<25;)ve.__d=!1,Qh&&Qh(p),De=ze.call(ve,Ee,tt);ve.__d=!0}if(ve.getChildContext!=null&&(y=cg({},y,ve.getChildContext())),(ze.getDerivedStateFromError||ve.componentDidCatch)&&Ci.errorBoundaries){var Ot="";De=De!=null&&De.type===er&&De.key==null?De.props.children:De;try{return Ot=Ds(De,y,w,I,p,k,B)}catch(Ei){return ze.getDerivedStateFromError&&(ve.__s=ze.getDerivedStateFromError(Ei)),ve.componentDidCatch&&ve.componentDidCatch(Ei,{}),ve.__d&&(De=tx(p,y),(ve=p.__c).getChildContext!=null&&(y=cg({},y,ve.getChildContext())),Ot=Ds(De=De!=null&&De.type===er&&De.key==null?De.props.children:De,y,w,I,p,k,B)),Ot}finally{rc&&rc(p),p.__=null,ed&&ed(p)}}}De=De!=null&&De.type===er&&De.key==null&&De.props.tpl==null?De.props.children:De;try{var ui=Ds(De,y,w,I,p,k,B);return rc&&rc(p),p.__=null,Ci.unmount&&Ci.unmount(p),ui}catch(Ei){if(!k&&B&&B.onError){var Si=B.onError(Ei,p,function($r){return Ds($r,y,w,I,p,k,B)});if(Si!==void 0)return Si;var ni=Ci.__e;return ni&&ni(Ei,p),""}if(!k||!Ei||typeof Ei.then!="function")throw Ei;var Mi=function $r(){try{return Ds(De,y,w,I,p,k,B)}catch(vn){if(!vn||typeof vn.then!="function")throw vn;return vn.then(function(){return Ds(De,y,w,I,p,k,B)},function(){return $r()})}};return Ei.then(function(){return Mi()})}}var gi,Bt="<"+ze,Yt="";for(var Gt in Ee){var oi=Ee[Gt];switch(Gt){case"children":gi=oi;continue;case"key":case"ref":case"__self":case"__source":continue;case"htmlFor":if("for"in Ee)continue;Gt="for";break;case"className":if("class"in Ee)continue;Gt="class";break;case"defaultChecked":Gt="checked";break;case"defaultSelected":Gt="selected";break;case"defaultValue":case"value":switch(Gt="value",ze){case"textarea":gi=oi;continue;case"select":I=oi;continue;case"option":I!=oi||"selected"in Ee||(Bt+=" selected")}break;case"dangerouslySetInnerHTML":Yt=oi&&oi.__html;continue;case"style":typeof oi=="object"&&(oi=IE(oi));break;case"acceptCharset":Gt="accept-charset";break;case"httpEquiv":Gt="http-equiv";break;default:if(Xv.test(Gt))Gt=Gt.replace(Xv,"$1:$2").toLowerCase();else{if(Wv.test(Gt))continue;Gt[4]!=="-"&&Gt!=="draggable"||oi==null?w?TE.test(Gt)&&(Gt=Gt==="panose1"?"panose-1":Gt.replace(/([A-Z])/g,"-$1").toLowerCase()):wE.test(Gt)&&(Gt=Gt.toLowerCase()):oi+=""}}oi!=null&&oi!==!1&&typeof oi!="function"&&(Bt=oi===!0||oi===""?Bt+" "+Gt:Bt+" "+Gt+'="'+mf(oi+"")+'"')}if(Wv.test(ze))throw new Error(ze+" is not a valid HTML tag name in "+Bt+">");if(Yt||(typeof gi=="string"?Yt=mf(gi):gi!=null&&gi!==!1&&gi!==!0&&(Yt=Ds(gi,y,ze==="svg"||ze!=="foreignObject"&&w,I,p,k,B))),rc&&rc(p),p.__=null,ed&&ed(p),!Yt&&ME.has(ze))return Bt+"/>";var Wi="</"+ze+">",or=Bt+">";return Array.isArray(Yt)?[or].concat(Yt,[Wi]):typeof Yt!="string"?[or,Yt,Wi]:or+Yt+Wi}var ME=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),ua;function ix(p){return{lang:(p==null?void 0:p.lang)??(ua==null?void 0:ua.lang),message:p==null?void 0:p.message,abortEarly:(p==null?void 0:p.abortEarly)??(ua==null?void 0:ua.abortEarly),abortPipeEarly:(p==null?void 0:p.abortPipeEarly)??(ua==null?void 0:ua.abortPipeEarly)}}var ug;function PE(p){return ug==null?void 0:ug.get(p)}var hg;function DE(p){return hg==null?void 0:hg.get(p)}var dg;function RE(p,y){var w;return(w=dg==null?void 0:dg.get(p))==null?void 0:w.get(y)}function rx(p){var w,I;const y=typeof p;return y==="string"?`"${p}"`:y==="number"||y==="bigint"||y==="boolean"?`${p}`:y==="object"||y==="function"?(p&&((I=(w=Object.getPrototypeOf(p))==null?void 0:w.constructor)==null?void 0:I.name))??"null":y}function rs(p,y,w,I,z){const k=z&&"input"in z?z.input:w.value,B=(z==null?void 0:z.expected)??p.expects??null,o=(z==null?void 0:z.received)??rx(k),J={kind:p.kind,type:p.type,input:k,expected:B,received:o,message:`Invalid ${y}: ${B?`Expected ${B} but r`:"R"}eceived ${o}`,requirement:p.requirement,path:z==null?void 0:z.path,issues:z==null?void 0:z.issues,lang:I.lang,abortEarly:I.abortEarly,abortPipeEarly:I.abortPipeEarly},oe=p.kind==="schema",be=(z==null?void 0:z.message)??p.message??RE(p.reference,J.lang)??(oe?DE(J.lang):null)??I.message??PE(J.lang);be!==void 0&&(J.message=typeof be=="function"?be(J):be),oe&&(w.typed=!1),w.issues?w.issues.push(J):w.issues=[J]}function So(p){return{version:1,vendor:"valibot",validate(y){return p["~run"]({value:y},ix())}}}function zE(p,y){return Object.hasOwn(p,y)&&y!=="__proto__"&&y!=="prototype"&&y!=="constructor"}function LE(p,y){const w=[...new Set(p)];return w.length>1?`(${w.join(` ${y} `)})`:w[0]??"never"}function ns(p){return{kind:"transformation",type:"transform",reference:ns,async:!1,operation:p,"~run"(y){return y.value=this.operation(y.value),y}}}function nx(p){return{kind:"validation",type:"url",reference:nx,async:!1,expects:null,requirement(y){try{return new URL(y),!0}catch{return!1}},message:p,"~run"(y,w){return y.typed&&!this.requirement(y.value)&&rs(this,"URL",y,w),y}}}function kE(p,y,w){return typeof p.fallback=="function"?p.fallback(y,w):p.fallback}function pg(p,y,w){return typeof p.default=="function"?p.default(y,w):p.default}function fg(){return{kind:"schema",type:"any",reference:fg,expects:"any",async:!1,get"~standard"(){return So(this)},"~run"(p){return p.typed=!0,p}}}function td(p,y){return{kind:"schema",type:"array",reference:td,expects:"Array",async:!1,item:p,message:y,get"~standard"(){return So(this)},"~run"(w,I){var k;const z=w.value;if(Array.isArray(z)){w.typed=!0,w.value=[];for(let B=0;B<z.length;B++){const o=z[B],J=this.item["~run"]({value:o},I);if(J.issues){const oe={type:"array",origin:"value",input:z,key:B,value:o};for(const be of J.issues)be.path?be.path.unshift(oe):be.path=[oe],(k=w.issues)==null||k.push(be);if(w.issues||(w.issues=J.issues),I.abortEarly){w.typed=!1;break}}J.typed||(w.typed=!1),w.value.push(J.value)}}else rs(this,"type",w,I);return w}}}function _f(p){return{kind:"schema",type:"boolean",reference:_f,expects:"boolean",async:!1,message:p,get"~standard"(){return So(this)},"~run"(y,w){return typeof y.value=="boolean"?y.typed=!0:rs(this,"type",y,w),y}}}function Rs(p,y){return{kind:"schema",type:"literal",reference:Rs,expects:rx(p),async:!1,literal:p,message:y,get"~standard"(){return So(this)},"~run"(w,I){return w.value===this.literal?w.typed=!0:rs(this,"type",w,I),w}}}function ho(p,y){return{kind:"schema",type:"nullable",reference:ho,expects:`(${p.expects} | null)`,async:!1,wrapped:p,default:y,get"~standard"(){return So(this)},"~run"(w,I){return w.value===null&&(this.default!==void 0&&(w.value=pg(this,w,I)),w.value===null)?(w.typed=!0,w):this.wrapped["~run"](w,I)}}}function os(p){return{kind:"schema",type:"number",reference:os,expects:"number",async:!1,message:p,get"~standard"(){return So(this)},"~run"(y,w){return typeof y.value=="number"&&!isNaN(y.value)?y.typed=!0:rs(this,"type",y,w),y}}}function Eo(p,y){return{kind:"schema",type:"object",reference:Eo,expects:"Object",async:!1,entries:p,message:y,get"~standard"(){return So(this)},"~run"(w,I){var k;const z=w.value;if(z&&typeof z=="object"){w.typed=!0,w.value={};for(const B in this.entries){const o=this.entries[B];if(B in z||(o.type==="exact_optional"||o.type==="optional"||o.type==="nullish")&&o.default!==void 0){const J=B in z?z[B]:pg(o),oe=o["~run"]({value:J},I);if(oe.issues){const be={type:"object",origin:"value",input:z,key:B,value:J};for(const ae of oe.issues)ae.path?ae.path.unshift(be):ae.path=[be],(k=w.issues)==null||k.push(ae);if(w.issues||(w.issues=oe.issues),I.abortEarly){w.typed=!1;break}}oe.typed||(w.typed=!1),w.value[B]=oe.value}else if(o.fallback!==void 0)w.value[B]=kE(o);else if(o.type!=="exact_optional"&&o.type!=="optional"&&o.type!=="nullish"&&(rs(this,"key",w,I,{input:void 0,expected:`"${B}"`,path:[{type:"object",origin:"key",input:z,key:B,value:z[B]}]}),I.abortEarly))break}}else rs(this,"type",w,I);return w}}}function nc(p,y){return{kind:"schema",type:"optional",reference:nc,expects:`(${p.expects} | undefined)`,async:!1,wrapped:p,default:y,get"~standard"(){return So(this)},"~run"(w,I){return w.value===void 0&&(this.default!==void 0&&(w.value=pg(this,w,I)),w.value===void 0)?(w.typed=!0,w):this.wrapped["~run"](w,I)}}}function mg(p,y,w){return{kind:"schema",type:"record",reference:mg,expects:"Object",async:!1,key:p,value:y,message:w,get"~standard"(){return So(this)},"~run"(I,z){var B,o;const k=I.value;if(k&&typeof k=="object"){I.typed=!0,I.value={};for(const J in k)if(zE(k,J)){const oe=k[J],be=this.key["~run"]({value:J},z);if(be.issues){const Se={type:"object",origin:"key",input:k,key:J,value:oe};for(const ye of be.issues)ye.path=[Se],(B=I.issues)==null||B.push(ye);if(I.issues||(I.issues=be.issues),z.abortEarly){I.typed=!1;break}}const ae=this.value["~run"]({value:oe},z);if(ae.issues){const Se={type:"object",origin:"value",input:k,key:J,value:oe};for(const ye of ae.issues)ye.path?ye.path.unshift(Se):ye.path=[Se],(o=I.issues)==null||o.push(ye);if(I.issues||(I.issues=ae.issues),z.abortEarly){I.typed=!1;break}}(!be.typed||!ae.typed)&&(I.typed=!1),be.typed&&(I.value[be.value]=ae.value)}}else rs(this,"type",I,z);return I}}}function nn(p){return{kind:"schema",type:"string",reference:nn,expects:"string",async:!1,message:p,get"~standard"(){return So(this)},"~run"(y,w){return typeof y.value=="string"?y.typed=!0:rs(this,"type",y,w),y}}}function ox(p){let y;if(p)for(const w of p)y?y.push(...w.issues):y=w.issues;return y}function _g(p,y){return{kind:"schema",type:"union",reference:_g,expects:LE(p.map(w=>w.expects),"|"),async:!1,options:p,message:y,get"~standard"(){return So(this)},"~run"(w,I){let z,k,B;for(const o of this.options){const J=o["~run"]({value:w.value},I);if(J.typed)if(J.issues)k?k.push(J):k=[J];else{z=J;break}else B?B.push(J):B=[J]}if(z)return z;if(k){if(k.length===1)return k[0];rs(this,"type",w,I,{issues:ox(k)}),w.typed=!0}else{if((B==null?void 0:B.length)===1)return B[0];rs(this,"type",w,I,{issues:ox(B)})}return w}}}function sx(){return{kind:"schema",type:"unknown",reference:sx,expects:"unknown",async:!1,get"~standard"(){return So(this)},"~run"(p){return p.typed=!0,p}}}function ss(...p){return{...p[0],pipe:p,get"~standard"(){return So(this)},"~run"(y,w){for(const I of p)if(I.kind!=="metadata"){if(y.issues&&(I.kind==="schema"||I.kind==="transformation")){y.typed=!1;break}(!y.issues||!w.abortEarly&&!w.abortPipeEarly)&&(y=I["~run"](y,w))}return y}}}function gg(p,y,w){const I=p["~run"]({value:y},ix(w));return{typed:I.typed,success:!I.issues,output:I.value,issues:I.issues}}const ax="inploi-job-search",oc=10,lx=ss(sx(),ns(String),nn()),OE=mg(nn(),td(Eo({label:lx,value:lx,jobs:os()}))),FE=ss(nn(),nx()),BE=Eo({total:os(),current_page:os(),per_page:os(),last_page:os()}),gf=nc(ho(nn()),null),NE=Eo({id:os(),company_name:nn(),company_logo:gf,employment_type:nn(),location_type:_g([Rs("LOCATION"),Rs("REMOTE"),Rs("HYBRID")]),pay_type:ho(_g([Rs("ANNUALLY"),Rs("HOURLY"),Rs("MONTHLY"),Rs("WEEKLY"),Rs("DAILY")])),pay_currency:nn(),pay_mask:_f(),pay_display:_f(),pay:ho(nn()),pay_min:ho(nn()),pay_max:ho(nn()),title:nn(),contract_type:ho(nn()),created_at:ho(nn()),custom_data:ho(mg(fg(),fg())),href:nn(),industry:ho(nn()),category:ho(nn()),skills:gf,town:gf,city:ho(nn()),country:ho(nn()),vector_distance:gf,coordinates:nc(ho(Eo({lat:os(),lng:os()})))}),cx=p=>ss(NE,ns(y=>{const w=gg(FE,y.company_logo);return{id:y.id,createdAt:y.created_at,company:{name:y.company_name,logo:w.success?w.output:null},employmentType:y.employment_type,locationType:y.location_type,pay:sE({salary:y,config:{locales:void 0},t:p})??null,title:y.title,contractType:y.contract_type,href:y.href,relativePostedDate:y.created_at?lE({to:new Date(y.created_at),t:p}):"INVALID DATE",customData:y.custom_data,raw:y,match:y.vector_distance&&parseFloat(y.vector_distance)<.15?p("great_match"):null}})),jE={method:"GET",pathname:"/search/filters",schema:{response:OE,searchParams:Q_()}},VE=p=>ss(Eo({data:td(cx(p)),pagination:BE}),ns(y=>({pagination:y.pagination,results:y.data}))),UE=p=>!p||Array.isArray(p)&&p.length===0?null:p,yg=p=>{var w,I;const y={};for(const z in p.filters){const k=p.filters[z];y[z]=UE(k==null?void 0:k.value)}return((w=p.geo)==null?void 0:w.type)==="provided"&&p.geo.coords&&(y.geolocation={type:p.geo.type,lat:p.geo.coords.lat,lng:p.geo.coords.lng,radius:p.geo.radius}),((I=p.geo)==null?void 0:I.type)==="bounds"&&(y.geolocation={type:"bounds",sw:{lat:p.geo.sw.lat,lng:p.geo.sw.lng},ne:{lat:p.geo.ne.lat,lng:p.geo.ne.lng}}),y},ux=async({rpcClient:p,state:y,signal:w})=>await p.request(jE,{searchParams:{filters:yg(y),query:y.query},signal:w}),hx=async({rpcClient:p,signal:y,state:w,page:I=1,t:z,prioritySegment:k})=>{const B={method:"GET",pathname:"/search/results",schema:{response:VE(z),searchParams:Q_()}};return await p.request(B,{searchParams:{filters:yg(w),query:w.query,page:I,per_page:oc,priority_segment:k},signal:y})},$E=p=>ss(Eo({data:td(cx(p)),pagination:Eo({has_more:_f()})}),ns(y=>({results:y.data,pagination:y.pagination}))),GE=async({rpcClient:p,signal:y,state:w,t:I,prioritySegment:z})=>{const k={method:"GET",pathname:"/search/map-results",schema:{response:$E(I),searchParams:Q_()}};return await p.request(k,{searchParams:{filters:yg(w),query:w.query,mode:w.mode,priority_segment:z},signal:y})},id=p=>{if(p.error)return{queryState:"error",error:p.error,swr:p};if(p.isLoading&&p.data===void 0)return{queryState:"loading",swr:p};if((p.isLoading||p.isValidating)&&p.data)return{queryState:"revalidating",data:p.data,swr:p};if(!p.isLoading&&p.data)return{queryState:"loaded",data:p.data,swr:p};if(!p.data&&!p.isLoading)return{queryState:"idle",swr:p};throw console.error("Unhandled data state",p),new Error("Unhandled data state")},yf={keepPreviousData:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateIfStale:!1,revalidateFirstPage:!1};var HE=0;function ue(p,y,w,I,z,k){y||(y={});var B,o,J=y;if("ref"in J)for(o in J={},y)o=="ref"?B=y[o]:J[o]=y[o];var oe={type:p,props:J,key:w,ref:B,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--HE,__i:-1,__u:0,__source:z,__self:k};if(typeof p=="function"&&(B=p.defaultProps))for(o in B)J[o]===void 0&&(J[o]=B[o]);return Ci.vnode&&Ci.vnode(oe),oe}function dx(p){var y,w,I="";if(typeof p=="string"||typeof p=="number")I+=p;else if(typeof p=="object")if(Array.isArray(p)){var z=p.length;for(y=0;y<z;y++)p[y]&&(w=dx(p[y]))&&(I&&(I+=" "),I+=w)}else for(w in p)p[w]&&(I&&(I+=" "),I+=w);return I}function uu(){for(var p,y,w=0,I="",z=arguments.length;w<z;w++)(p=arguments[w])&&(y=dx(p))&&(I&&(I+=" "),I+=y);return I}var ha,Yr,vg,px,hu=0,fx=[],pn=Ci,mx=pn.__b,_x=pn.__r,gx=pn.diffed,yx=pn.__c,vx=pn.unmount,xx=pn.__;function sc(p,y){pn.__h&&pn.__h(Yr,p,hu||y),hu=0;var w=Yr.__H||(Yr.__H={__:[],__h:[]});return p>=w.__.length&&w.__.push({}),w.__[p]}function Fi(p){return hu=1,rd(wx,p)}function rd(p,y,w){var I=sc(ha++,2);if(I.t=p,!I.__c&&(I.__=[w?w(y):wx(void 0,y),function(o){var J=I.__N?I.__N[0]:I.__[0],oe=I.t(J,o);J!==oe&&(I.__N=[oe,I.__[1]],I.__c.setState({}))}],I.__c=Yr,!Yr.__f)){var z=function(o,J,oe){if(!I.__c.__H)return!0;var be=I.__c.__H.__.filter(function(Se){return!!Se.__c});if(be.every(function(Se){return!Se.__N}))return!k||k.call(this,o,J,oe);var ae=I.__c.props!==o;return be.forEach(function(Se){if(Se.__N){var ye=Se.__[0];Se.__=Se.__N,Se.__N=void 0,ye!==Se.__[0]&&(ae=!0)}}),k&&k.call(this,o,J,oe)||ae};Yr.__f=!0;var k=Yr.shouldComponentUpdate,B=Yr.componentWillUpdate;Yr.componentWillUpdate=function(o,J,oe){if(this.__e){var be=k;k=void 0,z(o,J,oe),k=be}B&&B.call(this,o,J,oe)},Yr.shouldComponentUpdate=z}return I.__N||I.__}function qi(p,y){var w=sc(ha++,3);!pn.__s&&wg(w.__H,y)&&(w.__=p,w.u=y,Yr.__H.__h.push(w))}function zs(p,y){var w=sc(ha++,4);!pn.__s&&wg(w.__H,y)&&(w.__=p,w.u=y,Yr.__h.push(w))}function Ri(p){return hu=5,fn(function(){return{current:p}},[])}function xg(p,y,w){hu=6,zs(function(){if(typeof p=="function"){var I=p(y());return function(){p(null),I&&typeof I=="function"&&I()}}if(p)return p.current=y(),function(){return p.current=null}},w==null?w:w.concat(p))}function fn(p,y){var w=sc(ha++,7);return wg(w.__H,y)&&(w.__=p(),w.__H=y,w.__h=p),w.__}function Ur(p,y){return hu=8,fn(function(){return p},y)}function Ka(p){var y=Yr.context[p.__c],w=sc(ha++,9);return w.c=p,y?(w.__==null&&(w.__=!0,y.sub(Yr)),y.props.value):p.__}function vf(p,y){pn.useDebugValue&&pn.useDebugValue(y?y(p):p)}function qE(p){var y=sc(ha++,10),w=Fi();return y.__=p,Yr.componentDidCatch||(Yr.componentDidCatch=function(I,z){y.__&&y.__(I,z),w[1](I)}),[w[0],function(){w[1](void 0)}]}function xf(){var p=sc(ha++,11);if(!p.__){for(var y=Yr.__v;y!==null&&!y.__m&&y.__!==null;)y=y.__;var w=y.__m||(y.__m=[0,0]);p.__="P"+w[0]+"-"+w[1]++}return p.__}function ZE(){for(var p;p=fx.shift();)if(p.__P&&p.__H)try{p.__H.__h.forEach(bf),p.__H.__h.forEach(bg),p.__H.__h=[]}catch(y){p.__H.__h=[],pn.__e(y,p.__v)}}pn.__b=function(p){Yr=null,mx&&mx(p)},pn.__=function(p,y){p&&y.__k&&y.__k.__m&&(p.__m=y.__k.__m),xx&&xx(p,y)},pn.__r=function(p){_x&&_x(p),ha=0;var y=(Yr=p.__c).__H;y&&(vg===Yr?(y.__h=[],Yr.__h=[],y.__.forEach(function(w){w.__N&&(w.__=w.__N),w.u=w.__N=void 0})):(y.__h.forEach(bf),y.__h.forEach(bg),y.__h=[],ha=0)),vg=Yr},pn.diffed=function(p){gx&&gx(p);var y=p.__c;y&&y.__H&&(y.__H.__h.length&&(fx.push(y)!==1&&px===pn.requestAnimationFrame||((px=pn.requestAnimationFrame)||WE)(ZE)),y.__H.__.forEach(function(w){w.u&&(w.__H=w.u),w.u=void 0})),vg=Yr=null},pn.__c=function(p,y){y.some(function(w){try{w.__h.forEach(bf),w.__h=w.__h.filter(function(I){return!I.__||bg(I)})}catch(I){y.some(function(z){z.__h&&(z.__h=[])}),y=[],pn.__e(I,w.__v)}}),yx&&yx(p,y)},pn.unmount=function(p){vx&&vx(p);var y,w=p.__c;w&&w.__H&&(w.__H.__.forEach(function(I){try{bf(I)}catch(z){y=z}}),w.__H=void 0,y&&pn.__e(y,w.__v))};var bx=typeof requestAnimationFrame=="function";function WE(p){var y,w=function(){clearTimeout(I),bx&&cancelAnimationFrame(y),setTimeout(p)},I=setTimeout(w,100);bx&&(y=requestAnimationFrame(w))}function bf(p){var y=Yr,w=p.__c;typeof w=="function"&&(p.__c=void 0,w()),Yr=y}function bg(p){var y=Yr;p.__c=p.__(),Yr=y}function wg(p,y){return!p||p.length!==y.length||y.some(function(w,I){return w!==p[I]})}function wx(p,y){return typeof y=="function"?y(p):y}var XE=["other","few","many","two","one","zero"],Tx=({terms:p,overrides:y,locale:w})=>{const I=new Intl.PluralRules(w);function z(k,B){const o=(y==null?void 0:y[k])??p[k];switch(typeof o){case"string":return o.replace(/{{(\w+)}}/g,(J,oe)=>{var be;return((be=B==null?void 0:B[oe])==null?void 0:be.toString())??""});case"object":{if(typeof(B==null?void 0:B.count)!="number")throw new Error(`Missing count for translation key “${k.toString()}”`);let J=I.select(B.count);if(!(J in o)){const oe=XE.find(be=>be in o);if(!oe)throw new Error(`Missing plural rule for translation key “${k.toString()}”`);J=oe}return o[J].replace(/{{(\w+)}}/g,(oe,be)=>{var ae;return((ae=B==null?void 0:B[be])==null?void 0:ae.toString())??""})}default:throw new Error(`Invalid translation value in dictionary for key “${k.toString()}”.`)}}return z},Sx=ic(null),YE=p=>({defaultTerms:p,TranslationProvider:({terms:y,children:w,locale:I})=>{const z=fn(()=>Tx({locale:I,terms:p,overrides:y}),[y,I]);return ue(Sx.Provider,{value:{t:z,locale:I},children:w})},useTranslation:()=>{const y=Ka(Sx);if(y===null)throw new Error("Please wrap useTranslation in a TranslationProvider");return{t:y.t,locale:y.locale}},createTFunction:({overrides:y,locale:w})=>Tx({terms:p,overrides:y,locale:w})});const{TranslationProvider:KE,useTranslation:On,createTFunction:JE,defaultTerms:a5}=YE({type_to_search_jobs:"Type to search jobs",type_to_search:"Type to search",jobs_found:{one:"{{count}} job found",other:"{{count}} jobs found"},no_jobs_found:"No jobs found",no_jobs_found_description:"We could not find any jobs matching your filtering criteria.",jobs_loading_error:"We’re having trouble loading available jobs.",filters_loading_error:"We’re having trouble loading available filters.",no_filter_options_available:"No filter options available.",clear:"Clear",selected:"selected",done:"Done",close:"Close",new:"NEW",posted:"Posted",retry:"Retry",widget_unavailable:"Sorry, this widget is unavailable at the moment.",load_more_count:"Load {{count}} more",of_remaining_count:"of {{count}} remaining",today:"today",over_30_days_ago:"over 30 days ago",in_over_30_days:"in over 30 days",up_to:"Up to",from:"From",invalid_salary:"Invalid salary",competitive:"Competitive",natural_language_input:"Type anything",great_match:"Great match",advanced_mode:"Filters",simple_mode:"Hide filters",ai_disclaimer:"Results may not be perfect. AI-powered search can occasionally suggest unrelated content.",geo_error_timeout:"Timed out. Please type your location manually.",geo_error_permission_denied:"Please allow location access to use this feature.",geo_error_position_unavailable:"Could not locate you. Please type your location manually.",geo_my_location:"My location",geo_locating:"Locating you...",geo_search_placeholder:"Search for a location",geo_clear_search:"Clear location search",location_provided:"Provided location",search_label:"What",geo_label:"Where",geo_range_label:"Within",geo_suggestions_error:"Could not get the suggested locations.",feedback:"How was your search experience?",list:"List",map:"Map",loading_jobs:"Loading jobs…",map_jobs_error:"We’re having trouble loading jobs in the area",map_has_more_title:"Not showing all the jobs in this area",map_has_more_description:"Zoom in to refine your search further",map_jobs_showing:{one:"Showing {{count}} job",other:"Showing {{count}} jobs"},page:"Page",reset:"Reset"});function Ex(p){var y,w,I="";if(typeof p=="string"||typeof p=="number")I+=p;else if(typeof p=="object")if(Array.isArray(p))for(y=0;y<p.length;y++)p[y]&&(w=Ex(p[y]))&&(I&&(I+=" "),I+=w);else for(y in p)p[y]&&(I&&(I+=" "),I+=y);return I}function Tg(){for(var p,y,w=0,I="";w<arguments.length;)(p=arguments[w++])&&(y=Ex(p))&&(I&&(I+=" "),I+=y);return I}const Ax=p=>typeof p=="boolean"?"".concat(p):p===0?"0":p,QE=p=>{const y=function(){for(var z=arguments.length,k=new Array(z),B=0;B<z;B++)k[B]=arguments[B];var o,J;return typeof(p==null||(o=p.hooks)===null||o===void 0?void 0:o["cx:done"])<"u"?p==null?void 0:p.hooks["cx:done"](Tg(k)):typeof(p==null||(J=p.hooks)===null||J===void 0?void 0:J.onComplete)<"u"?p==null?void 0:p.hooks.onComplete(Tg(k)):Tg(k)};return{compose:function(){for(var z=arguments.length,k=new Array(z),B=0;B<z;B++)k[B]=arguments[B];return o=>{const J=Object.fromEntries(Object.entries(o||{}).filter(oe=>{let[be]=oe;return!["class","className"].includes(be)}));return y(k.map(oe=>oe(J)),o==null?void 0:o.class,o==null?void 0:o.className)}},cva:z=>k=>{var B;if((z==null?void 0:z.variants)==null)return y(z==null?void 0:z.base,k==null?void 0:k.class,k==null?void 0:k.className);const{variants:o,defaultVariants:J}=z,oe=Object.keys(o).map(Se=>{const ye=k==null?void 0:k[Se],De=J==null?void 0:J[Se],ve=Ax(ye)||Ax(De);return o[Se][ve]}),be={...J,...k&&Object.entries(k).reduce((Se,ye)=>{let[De,ve]=ye;return typeof ve>"u"?Se:{...Se,[De]:ve}},{})},ae=z==null||(B=z.compoundVariants)===null||B===void 0?void 0:B.reduce((Se,ye)=>{let{class:De,className:ve,...ze}=ye;return Object.entries(ze).every(Ee=>{let[tt,at]=Ee;const Ke=be[tt];return Array.isArray(at)?at.includes(Ke):Ke===at})?[...Se,De,ve]:Se},[]);return y(z==null?void 0:z.base,oe,ae,k==null?void 0:k.class,k==null?void 0:k.className)},cx:y}},{compose:l5,cva:Uo,cx:c5}=QE(),da=Uo({base:"fr animate-selected-tag justify-center touch-hitbox text-style-filter ease-expo-out disabled:text-interactive-neutral-bg-hover disabled:bg-interactive-neutral-bg disabled:hover:disabled:bg-interactive-neutral-bg flex cursor-pointer items-center transition-all duration-snappy active:scale-95",variants:{variant:{neutral:"bg-interactive-neutral-bg pointer-fine:hover:bg-interactive-neutral-bg-hover text-interactive-neutral-text",accent:"bg-interactive-accent-bg pointer-fine:hover:bg-interactive-accent-bg-hover text-interactive-accent-text"},icon:{none:"",right:"",left:"",only:""},position:{relative:"relative",absolute:"absolute"},size:{sm:"py-1 rounded-interactive",lg:"py-2 rounded-interactive",unsized:""}},compoundVariants:[{size:"sm",icon:"right",class:"pl-3 pr-1"},{size:"sm",icon:"left",class:"pl-1 pr-3"},{size:"sm",icon:"none",class:"px-3"},{size:"lg",icon:"none",class:"px-5"},{size:"lg",icon:"right",class:"pl-5 pr-3"},{size:"lg",icon:"only",class:"px-2 py-2"},{size:"sm",icon:"only",class:"px-1 py-1"}],defaultVariants:{variant:"neutral",icon:"none",position:"relative",size:"sm"}}),eA=({error:p,resetError:y})=>{const{t:w}=On();return ue("div",{style:{display:"flex",flexDirection:"column",gap:".5rem",padding:"1rem",fontSize:"1rem",color:"hsl(10, 82%, 45%)",fontFamily:"'system-ui' 'Helvetica'",background:"hsl(7, 100%, 98%)"},children:[ue("p",{children:p.message}),ue("button",{type:"button",onClick:y,style:{background:"white",border:"none",cursor:"pointer",textAlign:"center",borderRadius:"4px",padding:"0.5rem 1rem"},children:w("retry")})]})},Ja=({error:p,resetError:y,class:w,...I})=>{const{t:z}=On();return qi(()=>{p.cause instanceof mE.SchemaValidation&&console.error(p.message,p.cause.issues)},[p]),ue("div",{class:uu("bg-neutral-12 ring-section-weak-stroke rounded-section flex flex-col items-center gap-4 overflow-hidden p-6 text-center",w),...I,children:[ue("div",{class:"flex max-w-full flex-col gap-1",children:[ue("p",{class:"text-neutral-1 text-style-job-heading font-style-job-heading font-weight-job-heading [text-wrap:balance]",children:z("widget_unavailable")}),ue("p",{class:"text-neutral-8 text-style-tag font-style-tag font-weight-tag max-w-full break-words leading-snug [text-wrap:pretty]",children:p.message})]}),ue("button",{type:"button",class:da({variant:"neutral",size:"lg",class:"text-interactive-neutral-bg bg-lowest"}),onClick:y,children:z("retry")})]})};class nd extends Vo{constructor(){super(...arguments);nE(this,"state",{error:null})}static getDerivedStateFromError(w){return{error:w.message}}componentDidCatch(w){this.setState({error:w})}render(){if(this.state.error){const{Fallback:w}=this.props;return ue(w,{error:this.state.error,resetError:()=>{this.setState({error:null})}})}return this.props.children}}const tA={briefcase:ue(er,{children:[ue("path",{d:"M17.25 7.75H6.75C5.64543 7.75 4.75 8.64543 4.75 9.75V16.25C4.75 17.3546 5.64543 18.25 6.75 18.25H17.25C18.3546 18.25 19.25 17.3546 19.25 16.25V9.75C19.25 8.64543 18.3546 7.75 17.25 7.75Z"}),ue("path",{d:"M4.75 11.75H19.25"}),ue("path",{d:"M13.25 12.25V13.25H10.75V12.25H13.25Z"}),ue("path",{d:"M9.25 7.5V6.25C9.25 5.42157 9.92157 4.75 10.75 4.75H13.25C14.0784 4.75 14.75 5.42157 14.75 6.25V7.5"})]}),brand:ue(er,{children:[ue("path",{d:"M18.45 13.9901C18.1288 15.031 17.5574 15.9886 16.773 16.773C15.5071 18.0388 13.7902 18.75 12 18.75C10.2098 18.75 8.49289 18.0388 7.22702 16.773C6.44262 15.9886 5.87122 15.031 5.55003 13.9901"}),ue("path",{d:"M9.87868 14.8713C10.1573 15.1499 10.488 15.3709 10.8519 15.5216C11.2159 15.6724 11.606 15.75 12 15.75C12.394 15.75 12.7841 15.6724 13.1481 15.5216C13.512 15.3709 13.8427 15.1499 14.1213 14.8713"}),ue("path",{d:"M17.0791 7.55413C16.7038 7.12546 16.2758 6.74602 15.8053 6.42486"}),ue("path",{d:"M12.8451 5.30311C12.2799 5.23179 11.7079 5.2323 11.1428 5.30465"}),ue("path",{d:"M8.25666 6.38307C7.78259 6.69901 7.35043 7.07369 6.97047 7.49818"}),ue("circle",{cx:"18.75",cy:"12",r:"2"}),ue("circle",{cx:"5.25",cy:"12",r:"2"})]}),building:ue(er,{children:[ue("path",{d:"M16.75 10.25H13.75"}),ue("path",{d:"M16.75 13.25H13.75"}),ue("path",{d:"M3 18.25H5.25006M5.25006 18.25V14.25C5.25006 13.1454 6.14549 12.25 7.25006 12.25H10.2501L10.25 8.25003C10.25 6.59316 11.5932 5.25 13.25 5.25H17.25C18.9069 5.25 20.25 6.59315 20.25 8.25V18.25H5.25006Z"}),ue("path",{d:"M10.25 12.25V18.25"})]}),circles:ue(er,{children:[ue("path",{d:"M16.773 16.773C15.829 17.717 14.6262 18.3599 13.3169 18.6203C12.0075 18.8808 10.6503 18.7471 9.41689 18.2362C8.18349 17.7253 7.12928 16.8601 6.38758 15.7501C5.64588 14.6401 5.25 13.335 5.25 12C5.25 10.665 5.64588 9.35993 6.38758 8.2499C7.12928 7.13987 8.18349 6.27471 9.41689 5.76381C10.6503 5.25292 12.0075 5.11925 13.3169 5.3797C14.6262 5.64015 15.829 6.28302 16.773 7.22703"}),ue("path",{d:"M9.34835 9.34835C9.8728 8.8239 10.541 8.46675 11.2684 8.32206C11.9958 8.17736 12.7498 8.25162 13.4351 8.53545C14.1203 8.81928 14.706 9.29993 15.118 9.91661C15.5301 10.5333 15.75 11.2583 15.75 12C15.75 12.7417 15.5301 13.4667 15.118 14.0834C14.706 14.7001 14.1203 15.1807 13.4351 15.4645C12.7498 15.7484 11.9958 15.8226 11.2684 15.6779C10.541 15.5333 9.8728 15.1761 9.34835 14.6517"})]}),clock:ue(er,{children:[ue("path",{d:"M14 9L12 13L9.5 12"}),ue("path",{d:"M18.75 12C18.75 15.7279 15.7279 18.75 12 18.75C8.27208 18.75 5.25 15.7279 5.25 12C5.25 8.27208 8.27208 5.25 12 5.25C15.7279 5.25 18.75 8.27208 18.75 12Z"})]}),filter:ue(er,{children:ue("path",{d:"M19.25 7H4.75V8.5L10.25 12.25V17.5H13.75V12.25L19.25 8.5V7Z"})}),globe:ue(er,{children:[ue("path",{d:"M5 13.75H19"}),ue("path",{d:"M5 10.25H19"}),ue("path",{d:"M12 4.75C15.5 9.25 15.5 14.75 12.0001 19.25C8.50012 14.75 8.50005 9.25 12 4.75Z"}),ue("circle",{cx:"12",cy:"12",r:"7.25"})]}),magnifier:ue(er,{children:[ue("path",{d:"M15.5659 15.5659C14.4875 16.6442 13.025 17.25 11.5 17.25C9.97501 17.25 8.51247 16.6442 7.43414 15.5659C6.3558 14.4875 5.75 13.025 5.75 11.5C5.75 9.97501 6.3558 8.51247 7.43414 7.43414C8.51247 6.3558 9.97501 5.75 11.5 5.75C13.025 5.75 14.4875 6.3558 15.5659 7.43414C16.6442 8.51247 17.25 9.97501 17.25 11.5C17.25 13.025 16.6442 14.4875 15.5659 15.5659L15.5659 15.5659Z"}),ue("path",{d:"M11.5 8.75C11.8611 8.75 12.2187 8.82113 12.5524 8.95933C12.886 9.09753 13.1892 9.3001 13.4445 9.55546C13.6999 9.81082 13.9025 10.114 14.0407 10.4476C14.1789 10.7813 14.25 11.1389 14.25 11.5"}),ue("path",{d:"M16 16L19 19"})]}),magnifierSimple:ue(er,{children:[ue("path",{d:"M15.5659 15.5659C14.4875 16.6442 13.025 17.25 11.5 17.25C9.97501 17.25 8.51247 16.6442 7.43414 15.5659C6.3558 14.4875 5.75 13.025 5.75 11.5C5.75 9.97501 6.3558 8.51247 7.43414 7.43414C8.51247 6.3558 9.97501 5.75 11.5 5.75C13.025 5.75 14.4875 6.3558 15.5659 7.43414C16.6442 8.51247 17.25 9.97501 17.25 11.5C17.25 13.025 16.6442 14.4875 15.5659 15.5659L15.5659 15.5659Z"}),ue("path",{d:"M16 16L19 19"})]}),mapPin:ue(er,{children:ue(er,{children:[ue("circle",{cx:"12",cy:"9",r:"2"}),ue("path",{d:"M16.2426 16.8358C17.0818 17.1155 17.6532 17.4719 17.8847 17.8598C18.1162 18.2478 17.9974 18.6499 17.5433 19.0154C17.0892 19.3808 16.3201 19.6932 15.3334 19.9129C14.3467 20.1327 13.1867 20.25 12 20.25C10.8133 20.25 9.65327 20.1327 8.66658 19.9129C7.67988 19.6932 6.91085 19.3808 6.45672 19.0154C6.0026 18.6499 5.88378 18.2478 6.11529 17.8598C6.3468 17.4719 6.91825 17.1155 7.75736 16.8358"}),ue("path",{d:"M17.25 9C17.25 13.3995 12 16.75 12 16.75C12 16.75 6.75 13.3995 6.75 9C6.75 6.10051 9.10051 3.75 12 3.75C14.8995 3.75 17.25 6.10051 17.25 9Z"})]})}),pay:ue(er,{children:[ue("path",{d:"M16.8 16.8a6.78 6.78 0 1 1 0-9.6M12 16v-1M12 9V8"}),ue("path",{d:"M10 14c.3.7 1 1 2 1 2.6 0 2.7-3 0-3s-2.7-3 0-3c1 0 1.7.4 2 1"})]}),sunset:ue(er,{children:[ue("path",{d:"M18.5 8.5L17.5 9.5"}),ue("path",{d:"M5.5 8.5L6.5 9.5"}),ue("path",{d:"M12 6L12 7.5"}),ue("path",{d:"M7.5 15.25L7.5 14.25C7.5 13.6591 7.6164 13.0739 7.84254 12.5279C8.06869 11.982 8.40016 11.4859 8.81802 11.068C9.23588 10.6502 9.73196 10.3187 10.2779 10.0925C10.8239 9.8664 11.4091 9.75 12 9.75C12.5909 9.75 13.1761 9.8664 13.7221 10.0925C14.268 10.3187 14.7641 10.6502 15.182 11.068C15.5998 11.4859 15.9313 11.982 16.1575 12.5279C16.3836 13.0739 16.5 13.6591 16.5 14.25V15.25"}),ue("path",{d:"M20.25 15.25H12H3.75"}),ue("path",{d:"M16.25 18.25H12L7.75 18.25"})]}),x:ue("path",{d:"M8 8l8 8M8 16l8 -8"}),plus:ue("path",{d:"M12 8V16M8 12H16"}),"chevron-right":ue("path",{d:"M11 8L15 12L11 16"}),ai:ue("path",{d:"M8.3 14.5c3.4 0 5.2-1.7 5.2-5.2 0 3.5 1.8 5.2 5.3 5.2-3.6 0-5.3 1.7-5.3 5.1 0-3.4-1.8-5.1-5.3-5.1ZM5 7.5c2.3 0 3.5-1.2 3.5-3.5 0 2.3 1.2 3.4 3.5 3.4-2.3 0-3.5 1.2-3.5 3.5 0-2.3-1.2-3.5-3.5-3.5Z",fill:"currentColor"}),"target-location":ue(er,{children:[ue("circle",{cx:"12",cy:"12",r:"0.75"}),ue("circle",{cx:"12",cy:"12",r:"5.75"}),ue("path",{d:"M12 4.25V6.25"}),ue("path",{d:"M12 17.75V19.75"}),ue("path",{d:"M4.25 12L6.25 12"}),ue("path",{d:"M17.75 12L19.75 12"})]}),warning:ue("path",{fill:"currentColor",stroke:"none",d:"M12 20.4C16.63 20.4 20.4 16.64 20.4 12C20.4 7.36 16.64 3.6 12.0 3.6C7.36 3.6 3.6 7.36 3.6 12C3.6 16.64 7.36 20.4 12 20.4ZM10.8 12.6V7.8H13.2V12.6H10.8ZM10.8 16.8V14.4H13.2V16.8H10.8Z"}),map:ue(er,{children:[ue("path",{d:"M9 17.25V3.75","stroke-dasharray":"1 2"}),ue("path",{d:"M15 6.75V20.25","stroke-dasharray":"1 2"}),ue("path",{d:"M9 17.25L3 18.75V5.25L9 3.75L15 6.75L21 5.25V18.75L15 20.25L9 17.25Z"})]}),list:ue(er,{children:[ue("rect",{x:"4",y:"5",width:"16",height:"5.5",rx:"1"}),ue("rect",{x:"4",y:"13.5",width:"16",height:"5.5",rx:"1"})]})},iA=({theme:p})=>ue("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"},children:ue("defs",{children:Object.entries(tA).map(([y,w])=>{var I;return ue("symbol",{id:`i-icon-${y}`,children:ue("g",{fill:"none","stroke-width":p.mode==="dark"&&((I=p.accessibility)==null?void 0:I.highContrast)!==!0?"1":"1.5","stroke-linecap":"round","stroke-linejoin":"round",stroke:"currentColor",children:w})},y)})})}),An=({name:p,...y})=>ue("svg",{viewBox:"0 0 24 24",width:24,height:24,...y,children:ue("use",{href:`#i-icon-${p}`})});function Ix(p,y){for(var w in y)p[w]=y[w];return p}function Sg(p,y){for(var w in p)if(w!=="__source"&&!(w in y))return!0;for(var I in y)if(I!=="__source"&&p[I]!==y[I])return!0;return!1}function Eg(p,y){var w=y(),I=Fi({t:{__:w,u:y}}),z=I[0].t,k=I[1];return zs(function(){z.__=w,z.u=y,Ag(z)&&k({t:z})},[p,w,y]),qi(function(){return Ag(z)&&k({t:z}),p(function(){Ag(z)&&k({t:z})})},[p]),w}function Ag(p){var y,w,I=p.u,z=p.__;try{var k=I();return!((y=z)===(w=k)&&(y!==0||1/y==1/w)||y!=y&&w!=w)}catch{return!0}}function Ig(p){p()}function Cg(p){return p}function Mg(){return[!1,Ig]}var Pg=zs;function wf(p,y){this.props=p,this.context=y}function Cx(p,y){function w(z){var k=this.props.ref,B=k==z.ref;return!B&&k&&(k.call?k(null):k.current=null),y?!y(this.props,z)||!B:Sg(this.props,z)}function I(z){return this.shouldComponentUpdate=w,Jt(p,z)}return I.displayName="Memo("+(p.displayName||p.name)+")",I.prototype.isReactComponent=!0,I.__f=!0,I}(wf.prototype=new Vo).isPureReactComponent=!0,wf.prototype.shouldComponentUpdate=function(p,y){return Sg(this.props,p)||Sg(this.state,y)};var Mx=Ci.__b;Ci.__b=function(p){p.type&&p.type.__f&&p.ref&&(p.props.ref=p.ref,p.ref=null),Mx&&Mx(p)};var rA=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function on(p){function y(w){var I=Ix({},w);return delete I.ref,p(I,w.ref||null)}return y.$$typeof=rA,y.render=y,y.prototype.isReactComponent=y.__f=!0,y.displayName="ForwardRef("+(p.displayName||p.name)+")",y}var Px=function(p,y){return p==null?null:ca(ca(p).map(y))},Ls={map:Px,forEach:Px,count:function(p){return p?ca(p).length:0},only:function(p){var y=ca(p);if(y.length!==1)throw"Children.only";return y[0]},toArray:ca},nA=Ci.__e;Ci.__e=function(p,y,w,I){if(p.then){for(var z,k=y;k=k.__;)if((z=k.__c)&&z.__c)return y.__e==null&&(y.__e=w.__e,y.__k=w.__k),z.__c(p,y)}nA(p,y,w,I)};var Dx=Ci.unmount;function Rx(p,y,w){return p&&(p.__c&&p.__c.__H&&(p.__c.__H.__.forEach(function(I){typeof I.__c=="function"&&I.__c()}),p.__c.__H=null),(p=Ix({},p)).__c!=null&&(p.__c.__P===w&&(p.__c.__P=y),p.__c=null),p.__k=p.__k&&p.__k.map(function(I){return Rx(I,y,w)})),p}function zx(p,y,w){return p&&w&&(p.__v=null,p.__k=p.__k&&p.__k.map(function(I){return zx(I,y,w)}),p.__c&&p.__c.__P===y&&(p.__e&&w.appendChild(p.__e),p.__c.__e=!0,p.__c.__P=w)),p}function du(){this.__u=0,this.o=null,this.__b=null}function Lx(p){var y=p.__.__c;return y&&y.__a&&y.__a(p)}function Dg(p){var y,w,I;function z(k){if(y||(y=p()).then(function(B){w=B.default||B},function(B){I=B}),I)throw I;if(!w)throw y;return Jt(w,k)}return z.displayName="Lazy",z.__f=!0,z}function pu(){this.i=null,this.l=null}Ci.unmount=function(p){var y=p.__c;y&&y.__R&&y.__R(),y&&32&p.__u&&(p.type=null),Dx&&Dx(p)},(du.prototype=new Vo).__c=function(p,y){var w=y.__c,I=this;I.o==null&&(I.o=[]),I.o.push(w);var z=Lx(I.__v),k=!1,B=function(){k||(k=!0,w.__R=null,z?z(o):o())};w.__R=B;var o=function(){if(!--I.__u){if(I.state.__a){var J=I.state.__a;I.__v.__k[0]=zx(J,J.__c.__P,J.__c.__O)}var oe;for(I.setState({__a:I.__b=null});oe=I.o.pop();)oe.forceUpdate()}};I.__u++||32&y.__u||I.setState({__a:I.__b=I.__v.__k[0]}),p.then(B,B)},du.prototype.componentWillUnmount=function(){this.o=[]},du.prototype.render=function(p,y){if(this.__b){if(this.__v.__k){var w=document.createElement("div"),I=this.__v.__k[0].__c;this.__v.__k[0]=Rx(this.__b,w,I.__O=I.__P)}this.__b=null}var z=y.__a&&Jt(er,null,p.fallback);return z&&(z.__u&=-33),[Jt(er,null,y.__a?null:p.children),z]};var kx=function(p,y,w){if(++w[1]===w[0]&&p.l.delete(y),p.props.revealOrder&&(p.props.revealOrder[0]!=="t"||!p.l.size))for(w=p.i;w;){for(;w.length>3;)w.pop()();if(w[1]<w[0])break;p.i=w=w[2]}};function oA(p){return this.getChildContext=function(){return p.context},p.children}function sA(p){var y=this,w=p.h;y.componentWillUnmount=function(){cu(null,y.v),y.v=null,y.h=null},y.h&&y.h!==w&&y.componentWillUnmount(),y.v||(y.h=w,y.v={nodeType:1,parentNode:w,childNodes:[],contains:function(){return!0},appendChild:function(I){this.childNodes.push(I),y.h.appendChild(I)},insertBefore:function(I,z){this.childNodes.push(I),y.h.insertBefore(I,z)},removeChild:function(I){this.childNodes.splice(this.childNodes.indexOf(I)>>>1,1),y.h.removeChild(I)}}),cu(Jt(oA,{context:y.context},p.__v),y.v)}function Ox(p,y){var w=Jt(sA,{__v:p,h:y});return w.containerInfo=y,w}(pu.prototype=new Vo).__a=function(p){var y=this,w=Lx(y.__v),I=y.l.get(p);return I[0]++,function(z){var k=function(){y.props.revealOrder?(I.push(z),kx(y,p,I)):z()};w?w(k):k()}},pu.prototype.render=function(p){this.i=null,this.l=new Map;var y=ca(p.children);p.revealOrder&&p.revealOrder[0]==="b"&&y.reverse();for(var w=y.length;w--;)this.l.set(y[w],this.i=[1,0,this.i]);return p.children},pu.prototype.componentDidUpdate=pu.prototype.componentDidMount=function(){var p=this;this.l.forEach(function(y,w){kx(p,w,y)})};var Fx=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,aA=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,lA=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,cA=/[A-Z0-9]/g,uA=typeof document<"u",hA=function(p){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(p)};function Bx(p,y,w){return y.__k==null&&(y.textContent=""),cu(p,y),typeof w=="function"&&w(),p?p.__c:null}function Nx(p,y,w){return ag(p,y),typeof w=="function"&&w(),p?p.__c:null}Vo.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(p){Object.defineProperty(Vo.prototype,p,{configurable:!0,get:function(){return this["UNSAFE_"+p]},set:function(y){Object.defineProperty(this,p,{configurable:!0,writable:!0,value:y})}})});var jx=Ci.event;function dA(){}function pA(){return this.cancelBubble}function fA(){return this.defaultPrevented}Ci.event=function(p){return jx&&(p=jx(p)),p.persist=dA,p.isPropagationStopped=pA,p.isDefaultPrevented=fA,p.nativeEvent=p};var Rg,mA={enumerable:!1,configurable:!0,get:function(){return this.class}},Vx=Ci.vnode;Ci.vnode=function(p){typeof p.type=="string"&&function(y){var w=y.props,I=y.type,z={},k=I.indexOf("-")===-1;for(var B in w){var o=w[B];if(!(B==="value"&&"defaultValue"in w&&o==null||uA&&B==="children"&&I==="noscript"||B==="class"||B==="className")){var J=B.toLowerCase();B==="defaultValue"&&"value"in w&&w.value==null?B="value":B==="download"&&o===!0?o="":J==="translate"&&o==="no"?o=!1:J[0]==="o"&&J[1]==="n"?J==="ondoubleclick"?B="ondblclick":J!=="onchange"||I!=="input"&&I!=="textarea"||hA(w.type)?J==="onfocus"?B="onfocusin":J==="onblur"?B="onfocusout":lA.test(B)&&(B=J):J=B="oninput":k&&aA.test(B)?B=B.replace(cA,"-$&").toLowerCase():o===null&&(o=void 0),J==="oninput"&&z[B=J]&&(B="oninputCapture"),z[B]=o}}I=="select"&&z.multiple&&Array.isArray(z.value)&&(z.value=ca(w.children).forEach(function(oe){oe.props.selected=z.value.indexOf(oe.props.value)!=-1})),I=="select"&&z.defaultValue!=null&&(z.value=ca(w.children).forEach(function(oe){oe.props.selected=z.multiple?z.defaultValue.indexOf(oe.props.value)!=-1:z.defaultValue==oe.props.value})),w.class&&!w.className?(z.class=w.class,Object.defineProperty(z,"className",mA)):(w.className&&!w.class||w.class&&w.className)&&(z.class=z.className=w.className),y.props=z}(p),p.$$typeof=Fx,Vx&&Vx(p)};var Ux=Ci.__r;Ci.__r=function(p){Ux&&Ux(p),Rg=p.__c};var $x=Ci.diffed;Ci.diffed=function(p){$x&&$x(p);var y=p.props,w=p.__e;w!=null&&p.type==="textarea"&&"value"in y&&y.value!==w.value&&(w.value=y.value==null?"":y.value),Rg=null};var Gx={ReactCurrentDispatcher:{current:{readContext:function(p){return Rg.__n[p.__c].props.value},useCallback:Ur,useContext:Ka,useDebugValue:vf,useDeferredValue:Cg,useEffect:qi,useId:xf,useImperativeHandle:xg,useInsertionEffect:Pg,useLayoutEffect:zs,useMemo:fn,useReducer:rd,useRef:Ri,useState:Fi,useSyncExternalStore:Eg,useTransition:Mg}}},_A="18.3.1";function Hx(p){return Jt.bind(null,p)}function pa(p){return!!p&&p.$$typeof===Fx}function qx(p){return pa(p)&&p.type===er}function Zx(p){return!!p&&!!p.displayName&&(typeof p.displayName=="string"||p.displayName instanceof String)&&p.displayName.startsWith("Memo(")}function fu(p){return pa(p)?bE.apply(null,arguments):p}function Wx(p){return!!p.__k&&(cu(null,p),!0)}function Xx(p){return p&&(p.base||p.nodeType===1&&p)||null}var Yx=function(p,y){return p(y)},od=function(p,y){return p(y)},Kx=er,Jx=pa,sd={useState:Fi,useId:xf,useReducer:rd,useEffect:qi,useLayoutEffect:zs,useInsertionEffect:Pg,useTransition:Mg,useDeferredValue:Cg,useSyncExternalStore:Eg,startTransition:Ig,useRef:Ri,useImperativeHandle:xg,useMemo:fn,useCallback:Ur,useContext:Ka,useDebugValue:vf,version:"18.3.1",Children:Ls,render:Bx,hydrate:Nx,unmountComponentAtNode:Wx,createPortal:Ox,createElement:Jt,createContext:ic,createFactory:Hx,cloneElement:fu,createRef:jv,Fragment:er,isValidElement:pa,isElement:Jx,isFragment:qx,isMemo:Zx,findDOMNode:Xx,Component:Vo,PureComponent:wf,memo:Cx,forwardRef:on,flushSync:od,unstable_batchedUpdates:Yx,StrictMode:Kx,Suspense:du,SuspenseList:pu,lazy:Dg,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Gx};const Qx=Object.freeze(Object.defineProperty({__proto__:null,Children:Ls,Component:Vo,Fragment:er,PureComponent:wf,StrictMode:Kx,Suspense:du,SuspenseList:pu,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Gx,cloneElement:fu,createContext:ic,createElement:Jt,createFactory:Hx,createPortal:Ox,createRef:jv,default:sd,findDOMNode:Xx,flushSync:od,forwardRef:on,hydrate:Nx,isElement:Jx,isFragment:qx,isMemo:Zx,isValidElement:pa,lazy:Dg,memo:Cx,render:Bx,startTransition:Ig,unmountComponentAtNode:Wx,unstable_batchedUpdates:Yx,useCallback:Ur,useContext:Ka,useDebugValue:vf,useDeferredValue:Cg,useEffect:qi,useErrorBoundary:qE,useId:xf,useImperativeHandle:xg,useInsertionEffect:Pg,useLayoutEffect:zs,useMemo:fn,useReducer:rd,useRef:Ri,useState:Fi,useSyncExternalStore:Eg,useTransition:Mg,version:_A},Symbol.toStringTag,{value:"Module"}));var ad=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zg(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}function gA(p){if(p.__esModule)return p;var y=p.default;if(typeof y=="function"){var w=function I(){return this instanceof I?Reflect.construct(y,arguments,this.constructor):y.apply(this,arguments)};w.prototype=y.prototype}else w={};return Object.defineProperty(w,"__esModule",{value:!0}),Object.keys(p).forEach(function(I){var z=Object.getOwnPropertyDescriptor(p,I);Object.defineProperty(w,I,z.get?z:{enumerable:!0,get:function(){return p[I]}})}),w}var Lg={exports:{}},kg={};const e1=gA(Qx);/**
2
2
  * @license React
3
3
  * use-sync-external-store-shim.production.min.js
4
4
  *
@@ -17,7 +17,7 @@ var n5=Object.defineProperty;var o5=(jo,Ps,ec)=>Ps in jo?n5(jo,Ps,{enumerable:!0
17
17
  */var i1;function vA(){return i1||(i1=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var p=e1,y=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(at){{for(var Ke=arguments.length,pt=new Array(Ke>1?Ke-1:0),xt=1;xt<Ke;xt++)pt[xt-1]=arguments[xt];I("error",at,pt)}}function I(at,Ke,pt){{var xt=y.ReactDebugCurrentFrame,Wt=xt.getStackAddendum();Wt!==""&&(Ke+="%s",pt=pt.concat([Wt]));var Ot=pt.map(function(ui){return String(ui)});Ot.unshift("Warning: "+Ke),Function.prototype.apply.call(console[at],console,Ot)}}function z(at,Ke){return at===Ke&&(at!==0||1/at===1/Ke)||at!==at&&Ke!==Ke}var k=typeof Object.is=="function"?Object.is:z,B=p.useState,o=p.useEffect,J=p.useLayoutEffect,oe=p.useDebugValue,be=!1,ae=!1;function Se(at,Ke,pt){be||p.startTransition!==void 0&&(be=!0,w("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var xt=Ke();if(!ae){var Wt=Ke();k(xt,Wt)||(w("The result of getSnapshot should be cached to avoid an infinite loop"),ae=!0)}var Ot=B({inst:{value:xt,getSnapshot:Ke}}),ui=Ot[0].inst,Si=Ot[1];return J(function(){ui.value=xt,ui.getSnapshot=Ke,ye(ui)&&Si({inst:ui})},[at,xt,Ke]),o(function(){ye(ui)&&Si({inst:ui});var ni=function(){ye(ui)&&Si({inst:ui})};return at(ni)},[at]),oe(xt),xt}function ye(at){var Ke=at.getSnapshot,pt=at.value;try{var xt=Ke();return!k(pt,xt)}catch{return!0}}function De(at,Ke,pt){return Ke()}var ve=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ze=!ve,Ee=ze?De:Se,tt=p.useSyncExternalStore!==void 0?p.useSyncExternalStore:Ee;Og.useSyncExternalStore=tt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Og}process.env.NODE_ENV==="production"?Lg.exports=yA():Lg.exports=vA();var xA=Lg.exports;const Qa=()=>{},so=Qa(),Tf=Object,Fr=p=>p===so,as=p=>typeof p=="function",fa=(p,y)=>({...p,...y}),bA=p=>as(p.then),Sf=new WeakMap;let wA=0;const ld=p=>{const y=typeof p,w=p&&p.constructor,I=w==Date;let z,k;if(Tf(p)===p&&!I&&w!=RegExp){if(z=Sf.get(p),z)return z;if(z=++wA+"~",Sf.set(p,z),w==Array){for(z="@",k=0;k<p.length;k++)z+=ld(p[k])+",";Sf.set(p,z)}if(w==Tf){z="#";const B=Tf.keys(p).sort();for(;!Fr(k=B.pop());)Fr(p[k])||(z+=k+":"+ld(p[k])+",");Sf.set(p,z)}}else z=I?p.toJSON():y=="symbol"?p.toString():y=="string"?JSON.stringify(p):""+p;return z},ma=new WeakMap,Fg={},Ef={},Bg="undefined",Af=typeof window!=Bg,Ng=typeof document!=Bg,TA=()=>Af&&typeof window.requestAnimationFrame!=Bg,r1=(p,y)=>{const w=ma.get(p);return[()=>!Fr(y)&&p.get(y)||Fg,I=>{if(!Fr(y)){const z=p.get(y);y in Ef||(Ef[y]=z),w[5](y,fa(z,I),z||Fg)}},w[6],()=>!Fr(y)&&y in Ef?Ef[y]:!Fr(y)&&p.get(y)||Fg]};let jg=!0;const SA=()=>jg,[Vg,Ug]=Af&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Qa,Qa],EA=()=>{const p=Ng&&document.visibilityState;return Fr(p)||p!=="hidden"},AA=p=>(Ng&&document.addEventListener("visibilitychange",p),Vg("focus",p),()=>{Ng&&document.removeEventListener("visibilitychange",p),Ug("focus",p)}),IA=p=>{const y=()=>{jg=!0,p()},w=()=>{jg=!1};return Vg("online",y),Vg("offline",w),()=>{Ug("online",y),Ug("offline",w)}},CA={isOnline:SA,isVisible:EA},MA={initFocus:AA,initReconnect:IA},n1=!sd.useId,cd=!Af||"Deno"in window,PA=p=>TA()?window.requestAnimationFrame(p):setTimeout(p,1),If=cd?qi:zs,$g=typeof navigator<"u"&&navigator.connection,o1=!cd&&$g&&(["slow-2g","2g"].includes($g.effectiveType)||$g.saveData),Gg=p=>{if(as(p))try{p=p()}catch{p=""}const y=p;return p=typeof p=="string"?p:(Array.isArray(p)?p.length:p)?ld(p):"",[p,y]};let DA=0;const Hg=()=>++DA,s1=0,a1=1,l1=2;var ud={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:s1,MUTATE_EVENT:l1,RECONNECT_EVENT:a1};async function c1(...p){const[y,w,I,z]=p,k=fa({populateCache:!0,throwOnError:!0},typeof z=="boolean"?{revalidate:z}:z||{});let B=k.populateCache;const o=k.rollbackOnError;let J=k.optimisticData;const oe=Se=>typeof o=="function"?o(Se):o!==!1,be=k.throwOnError;if(as(w)){const Se=w,ye=[],De=y.keys();for(const ve of De)!/^\$(inf|sub)\$/.test(ve)&&Se(y.get(ve)._k)&&ye.push(ve);return Promise.all(ye.map(ae))}return ae(w);async function ae(Se){const[ye]=Gg(Se);if(!ye)return;const[De,ve]=r1(y,ye),[ze,Ee,tt,at]=ma.get(y),Ke=()=>{const gi=ze[ye];return(as(k.revalidate)?k.revalidate(De().data,Se):k.revalidate!==!1)&&(delete tt[ye],delete at[ye],gi&&gi[0])?gi[0](l1).then(()=>De().data):De().data};if(p.length<3)return Ke();let pt=I,xt;const Wt=Hg();Ee[ye]=[Wt,0];const Ot=!Fr(J),ui=De(),Si=ui.data,ni=ui._c,Mi=Fr(ni)?Si:ni;if(Ot&&(J=as(J)?J(Mi,Si):J,ve({data:J,_c:Mi})),as(pt))try{pt=pt(Mi)}catch(gi){xt=gi}if(pt&&bA(pt))if(pt=await pt.catch(gi=>{xt=gi}),Wt!==Ee[ye][0]){if(xt)throw xt;return pt}else xt&&Ot&&oe(xt)&&(B=!0,ve({data:Mi,_c:so}));if(B&&!xt)if(as(B)){const gi=B(pt,Mi);ve({data:gi,error:so,_c:so})}else ve({data:pt,error:so,_c:so});if(Ee[ye][1]=Hg(),Promise.resolve(Ke()).then(()=>{ve({_c:so})}),xt){if(be)throw xt;return}return pt}}const u1=(p,y)=>{for(const w in p)p[w][0]&&p[w][0](y)},h1=(p,y)=>{if(!ma.has(p)){const w=fa(MA,y),I={},z=c1.bind(so,p);let k=Qa;const B={},o=(be,ae)=>{const Se=B[be]||[];return B[be]=Se,Se.push(ae),()=>Se.splice(Se.indexOf(ae),1)},J=(be,ae,Se)=>{p.set(be,ae);const ye=B[be];if(ye)for(const De of ye)De(ae,Se)},oe=()=>{if(!ma.has(p)&&(ma.set(p,[I,{},{},{},z,J,o]),!cd)){const be=w.initFocus(setTimeout.bind(so,u1.bind(so,I,s1))),ae=w.initReconnect(setTimeout.bind(so,u1.bind(so,I,a1)));k=()=>{be&&be(),ae&&ae(),ma.delete(p)}}};return oe(),[p,z,oe,k]}return[p,ma.get(p)[4]]},RA=(p,y,w,I,z)=>{const k=w.errorRetryCount,B=z.retryCount,o=~~((Math.random()+.5)*(1<<(B<8?B:8)))*w.errorRetryInterval;!Fr(k)&&B>k||setTimeout(I,o,z)},zA=(p,y)=>ld(p)==ld(y),[qg,LA]=h1(new Map),d1=fa({onLoadingSlow:Qa,onSuccess:Qa,onError:Qa,onErrorRetry:RA,onDiscarded:Qa,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:o1?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:o1?5e3:3e3,compare:zA,isPaused:()=>!1,cache:qg,mutate:LA,fallback:{}},CA),p1=(p,y)=>{const w=fa(p,y);if(y){const{use:I,fallback:z}=p,{use:k,fallback:B}=y;I&&k&&(w.use=I.concat(k)),z&&B&&(w.fallback=fa(z,B))}return w},Zg=ic({}),kA=p=>{const{value:y}=p,w=Ka(Zg),I=as(y),z=fn(()=>I?y(w):y,[I,w,y]),k=fn(()=>I?z:p1(w,z),[I,w,z]),B=z&&z.provider,o=Ri(so);B&&!o.current&&(o.current=h1(B(k.cache||qg),z));const J=o.current;return J&&(k.cache=J[0],k.mutate=J[1]),If(()=>{if(J)return J[2]&&J[2](),J[3]},[]),Jt(Zg.Provider,fa(p,{value:k}))},OA="$inf$",f1=Af&&window.__SWR_DEVTOOLS_USE__,FA=f1?window.__SWR_DEVTOOLS_USE__:[],BA=()=>{f1&&(window.__SWR_DEVTOOLS_REACT__=sd)},NA=p=>as(p[1])?[p[0],p[1],p[2]||{}]:[p[0],null,(p[1]===null?p[2]:p[1])||{}],jA=()=>fa(d1,Ka(Zg)),VA=p=>(y,w,I)=>p(y,w&&((...k)=>{const[B]=Gg(y),[,,,o]=ma.get(qg);if(B.startsWith(OA))return w(...k);const J=o[B];return Fr(J)?w(...k):(delete o[B],J)}),I),UA=FA.concat(VA),$A=p=>function(...w){const I=jA(),[z,k,B]=NA(w),o=p1(I,B);let J=p;const{use:oe}=o,be=(oe||[]).concat(UA);for(let ae=be.length;ae--;)J=be[ae](J);return J(z,k||o.fetcher||null,o)},GA=(p,y,w)=>{const I=y[p]||(y[p]=[]);return I.push(w),()=>{const z=I.indexOf(w);z>=0&&(I[z]=I[I.length-1],I.pop())}};BA();const m1=sd.use||(p=>{if(p.status==="pending")throw p;if(p.status==="fulfilled")return p.value;throw p.status==="rejected"?p.reason:(p.status="pending",p.then(y=>{p.status="fulfilled",p.value=y},y=>{p.status="rejected",p.reason=y}),p)}),Wg={dedupe:!0},HA=(p,y,w)=>{const{cache:I,compare:z,suspense:k,fallbackData:B,revalidateOnMount:o,revalidateIfStale:J,refreshInterval:oe,refreshWhenHidden:be,refreshWhenOffline:ae,keepPreviousData:Se}=w,[ye,De,ve,ze]=ma.get(I),[Ee,tt]=Gg(p),at=Ri(!1),Ke=Ri(!1),pt=Ri(Ee),xt=Ri(y),Wt=Ri(w),Ot=()=>Wt.current,ui=()=>Ot().isVisible()&&Ot().isOnline(),[Si,ni,Mi,gi]=r1(I,Ee),Bt=Ri({}).current,Yt=Fr(B)?w.fallback[Ee]:B,Gt=(tr,Ti)=>{for(const un in Bt){const wr=un;if(wr==="data"){if(!z(tr[wr],Ti[wr])&&(!Fr(tr[wr])||!z(Ui,Ti[wr])))return!1}else if(Ti[wr]!==tr[wr])return!1}return!0},oi=fn(()=>{const tr=(()=>!Ee||!y?!1:Fr(o)?Ot().isPaused()||k?!1:Fr(J)?!0:J:o)(),Ti=Dr=>{const an=fa(Dr);return delete an._k,tr?{isValidating:!0,isLoading:!0,...an}:an},un=Si(),wr=gi(),Br=Ti(un),In=un===wr?Br:Ti(wr);let Gr=Br;return[()=>{const Dr=Ti(Si());return Gt(Dr,Gr)?(Gr.data=Dr.data,Gr.isLoading=Dr.isLoading,Gr.isValidating=Dr.isValidating,Gr.error=Dr.error,Gr):(Gr=Dr,Dr)},()=>In]},[I,Ee]),Wi=xA.useSyncExternalStore(Ur(tr=>Mi(Ee,(Ti,un)=>{Gt(un,Ti)||tr()}),[I,Ee]),oi[0],oi[1]),or=!at.current,Ei=ye[Ee]&&ye[Ee].length>0,$r=Wi.data,vn=Fr($r)?Yt:$r,Kn=Wi.error,po=Ri(vn),Ui=Se?Fr($r)?po.current:$r:vn,Xi=(()=>Ei&&!Fr(Kn)?!1:or&&!Fr(o)?o:Ot().isPaused()?!1:k?Fr(vn)?!1:J:Fr(vn)||J)(),Lr=!!(Ee&&y&&or&&Xi),$o=Fr(Wi.isValidating)?Lr:Wi.isValidating,gr=Fr(Wi.isLoading)?Lr:Wi.isLoading,Jn=Ur(async tr=>{const Ti=xt.current;if(!Ee||!Ti||Ke.current||Ot().isPaused())return!1;let un,wr,Br=!0;const In=tr||{},Gr=!ve[Ee]||!In.dedupe,Dr=()=>n1?!Ke.current&&Ee===pt.current&&at.current:Ee===pt.current,an={isValidating:!1,isLoading:!1},Fn=()=>{ni(an)},fo=()=>{const Hr=ve[Ee];Hr&&Hr[1]===wr&&delete ve[Ee]},Go={isValidating:!0};Fr(Si().data)&&(Go.isLoading=!0);try{if(Gr&&(ni(Go),w.loadingTimeout&&Fr(Si().data)&&setTimeout(()=>{Br&&Dr()&&Ot().onLoadingSlow(Ee,w)},w.loadingTimeout),ve[Ee]=[Ti(tt),Hg()]),[un,wr]=ve[Ee],un=await un,Gr&&setTimeout(fo,w.dedupingInterval),!ve[Ee]||ve[Ee][1]!==wr)return Gr&&Dr()&&Ot().onDiscarded(Ee),!1;an.error=so;const Hr=De[Ee];if(!Fr(Hr)&&(wr<=Hr[0]||wr<=Hr[1]||Hr[1]===0))return Fn(),Gr&&Dr()&&Ot().onDiscarded(Ee),!1;const ln=Si().data;an.data=z(ln,un)?ln:un,Gr&&Dr()&&Ot().onSuccess(un,Ee,w)}catch(Hr){fo();const ln=Ot(),{shouldRetryOnError:hs}=ln;ln.isPaused()||(an.error=Hr,Gr&&Dr()&&(ln.onError(Hr,Ee,ln),(hs===!0||as(hs)&&hs(Hr))&&(!Ot().revalidateOnFocus||!Ot().revalidateOnReconnect||ui())&&ln.onErrorRetry(Hr,Ee,ln,ds=>{const Ho=ye[Ee];Ho&&Ho[0]&&Ho[0](ud.ERROR_REVALIDATE_EVENT,ds)},{retryCount:(In.retryCount||0)+1,dedupe:!0})))}return Br=!1,Fn(),!0},[Ee,I]),ao=Ur((...tr)=>c1(I,pt.current,...tr),[]);if(If(()=>{xt.current=y,Wt.current=w,Fr($r)||(po.current=$r)}),If(()=>{if(!Ee)return;const tr=Jn.bind(so,Wg);let Ti=0;const wr=GA(Ee,ye,(Br,In={})=>{if(Br==ud.FOCUS_EVENT){const Gr=Date.now();Ot().revalidateOnFocus&&Gr>Ti&&ui()&&(Ti=Gr+Ot().focusThrottleInterval,tr())}else if(Br==ud.RECONNECT_EVENT)Ot().revalidateOnReconnect&&ui()&&tr();else{if(Br==ud.MUTATE_EVENT)return Jn();if(Br==ud.ERROR_REVALIDATE_EVENT)return Jn(In)}});return Ke.current=!1,pt.current=Ee,at.current=!0,ni({_k:tt}),Xi&&(Fr(vn)||cd?tr():PA(tr)),()=>{Ke.current=!0,wr()}},[Ee]),If(()=>{let tr;function Ti(){const wr=as(oe)?oe(Si().data):oe;wr&&tr!==-1&&(tr=setTimeout(un,wr))}function un(){!Si().error&&(be||Ot().isVisible())&&(ae||Ot().isOnline())?Jn(Wg).then(Ti):Ti()}return Ti(),()=>{tr&&(clearTimeout(tr),tr=-1)}},[oe,be,ae,Ee]),vf(Ui),k&&Fr(vn)&&Ee){if(!n1&&cd)throw new Error("Fallback data is required when using suspense in SSR.");xt.current=y,Wt.current=w,Ke.current=!1;const tr=ze[Ee];if(!Fr(tr)){const Ti=ao(tr);m1(Ti)}if(Fr(Kn)){const Ti=Jn(Wg);Fr(Ui)||(Ti.status="fulfilled",Ti.value=!0),m1(Ti)}else throw Kn}return{mutate:ao,get data(){return Bt.data=!0,Ui},get error(){return Bt.error=!0,Kn},get isValidating(){return Bt.isValidating=!0,$o},get isLoading(){return Bt.isLoading=!0,gr}}},qA=Tf.defineProperty(kA,"defaultValue",{value:d1}),hd=$A(HA),_1=p=>{const[y,w]=Fi(!1);return qi(()=>{if(typeof window>"u")return;const I=window.matchMedia(p),z=()=>w(I.matches);return z(),I.addEventListener("change",z),()=>I.removeEventListener("change",z)},[p]),y},ZA=(p,{minViewTime:y=1e3,visibilityThreshold:w=0,onView:I})=>{const[z,k]=Fi(!1);qi(()=>{if(z||!p.current)return;let B;const o=new IntersectionObserver(J=>J.forEach(oe=>{clearTimeout(B),oe.isIntersecting&&(B=setTimeout(()=>{k(!0),I()},y))}),{threshold:w});return o.observe(p.current),()=>{o.disconnect(),clearTimeout(B)}},[p,y,w,I,z])};var WA=["1","2","3","4","5","6","7","8","9","10","11","12"],XA={light:{1:[98.8,.015],2:[97.8,.018],3:[95.8,.025],4:[92,.04],5:[89,.05],6:[85,.07],7:[80.5,.08],8:[74,.11],9:[60,.22],10:[56,.23],11:[50,.19],12:[25,.18]},dark:{1:[19,.015],2:[21,.018],3:[25.5,.055],4:[29.3,.084],5:[33.5,.098],6:[39.05,.107],7:[45,.11],8:[55,.13],9:[60,.22],10:[67,.18],11:[79.3,.12],12:[95,.04]}},YA=(p,y=1,w)=>I=>{const[z,k]=XA[w][I];return"oklch("+z+"% "+k*y+" "+p+")"},Xg=p=>{const y=YA(p.hue,p.chroma,p.mode);return Object.fromEntries(WA.map(w=>[p.prefix+w,p.transform(y(w))]))},Yg=p=>p,KA=p=>{const y=Object.keys(p).flatMap(w=>{const I=p[w];return typeof I=="object"&&I!==null?Object.keys(I).map(z=>{const k=I[z];return[`${String(w)}.${z}`,k]}):[[w,I]]});return Object.fromEntries(y)},Cf=p=>!!p&&typeof p=="object"&&!Array.isArray(p),Kg=(p,...y)=>{if(!y.length)return p;const w=y.shift();if(Cf(p)&&Cf(w))for(const I in w){const z=w[I];if(Cf(z)){p[I]||Object.assign(p,{[I]:{}});const k=p[I];Cf(k)&&Kg(k,z)}else Object.assign(p,{[I]:w[I]})}return Kg(p,...y)},JA=p=>{function y(w,I){const z=[p.prefix,I.toString().replace(/\./g,"-")].join("");return w==="declaration"?`--${z}`:`var(--${z})`}return y},QA=()=>({core:p=>({semantic:y=>({component:w=>({from:I=>{const{theme:z,getToken:k}=I,B=Se=>k("reference",Se.toString()),o=p({theme:z}),J=y({theme:z,core:B,raw:{core:o}}),oe=w({theme:z,core:B,semantic:B,raw:{core:o,semantic:J}}),be=KA(Kg(o,J,oe)),ae=([Se,ye],De)=>{const ve=[De,Se].filter(Boolean).join(".");return typeof ye=="object"?Object.entries(ye).flatMap(ze=>ae(ze,ve)):[[I.getToken("declaration",ve),ye]]};return{values:be,declarations:Object.fromEntries(Object.entries(be).flatMap(Se=>ae(Se))),ref:Se=>k("reference",Se.toString())}}})})})});const ks=p=>{const y=[],w=I=>({with:(z,k)=>(y.push({pattern:z,fn:k}),w(I)),otherwise:z=>{e:for(const{fn:k,pattern:B}of y){for(const o in B)if(B[o]!==I[o])continue e;return k(I)}if(z)return z(I);throw new Error("No pattern matched")}});return w(p)},[Jg,Qg,Mf]=["oklch(0 0 0)","oklch(100 0 0)","transparent"],eI=QA().core(({theme:p})=>{var y,w,I,z;return{color:{black:Jg,white:Qg,lowest:p.mode==="light"?Qg:Jg,highest:p.mode==="light"?Jg:Qg,...Xg({prefix:"a-",hue:p.accent.hue,chroma:p.accent.chroma,mode:p.mode,transform:Yg}),...Xg({prefix:"n-",hue:((y=p.neutral)==null?void 0:y.hue)??p.accent.hue,chroma:((w=p.neutral)==null?void 0:w.chroma)??.05,mode:p.mode,transform:Yg}),...Xg({prefix:"m-",hue:((I=p.monetary)==null?void 0:I.hue)??140,chroma:((z=p.monetary)==null?void 0:z.chroma)??1,mode:p.mode,transform:Yg})}}}).semantic(({core:p,theme:y,raw:w})=>{var o,J,oe,be,ae,Se,ye,De,ve,ze,Ee,tt,at,Ke,pt,xt,Wt,Ot,ui,Si,ni;const I=(Mi,gi)=>w.core.color[Mi].replace(")",` / ${gi})`),{typography:z,highlights:k}=y,B=((o=y.accessibility)==null?void 0:o.highContrast)??!1;return{font:z.fontFamily??"inherit","font-style":z.style??"inherit","font-filter":((J=z.filter)==null?void 0:J.fontFamily)??z.fontFamily??"inherit","font-job-heading":((oe=y.typography.jobHeading)==null?void 0:oe.fontFamily)??y.typography.fontFamily??"inherit","font-tag":((be=z.tag)==null?void 0:be.fontFamily)??z.fontFamily??"inherit","weight-default":((ae=z.weight)==null?void 0:ae.toString())??"inherit","style-filter":((Se=z.filter)==null?void 0:Se.style)??z.style??"inherit","weight-filter":((De=(ye=z.filter)==null?void 0:ye.weight)==null?void 0:De.toString())??((ve=z.weight)==null?void 0:ve.toString())??"inherit","style-tag":((ze=z.tag)==null?void 0:ze.style)??z.style??"inherit","style-job-heading":((Ee=z.jobHeading)==null?void 0:Ee.style)??z.style??"inherit","weight-tag":((at=(tt=z.tag)==null?void 0:tt.weight)==null?void 0:at.toString())??((Ke=z.weight)==null?void 0:Ke.toString())??"inherit","weight-job-heading":((xt=(pt=z.jobHeading)==null?void 0:pt.weight)==null?void 0:xt.toString())??((Wt=z.weight)==null?void 0:Wt.toString())??"inherit","style-input":((Ot=z.input)==null?void 0:Ot.style)??z.style??"inherit","weight-input":((Si=(ui=z.input)==null?void 0:ui.weight)==null?void 0:Si.toString())??((ni=z.weight)==null?void 0:ni.toString())??"inherit","app-bg":p("color.lowest"),copy:p(B?"color.highest":"color.n-12"),"copy-lowcontrast":p("color.n-11"),"copy-info":p(B?"color.n-11":"color.n-10"),"copy-icon":p(B?"color.n-12":"color.n-11"),"copy-accent":p(B?"color.highest":"color.a-12"),"copy-accent-lowcontrast":p(B?"color.a-12":"color.a-11"),"copy-accent-icon":p(B?"color.a-12":"color.a-11"),"copy-inverted":p("color.lowest"),"copy-inverted-lowcontrast":p("color.n-4"),"copy-inverted-icon":p("color.n-3"),"tag-neutral-weak-bg":p(k==="fill"?"color.n-2":"color.lowest"),"tag-neutral-weak-copy":p("color.n-12"),"tag-neutral-weak-stroke-color":p(k==="stroke"?"color.n-5":"color.n-3"),"tag-neutral-strong-bg":k==="fill"?p("color.n-12"):Mf,"tag-neutral-strong-copy":p(k==="fill"?"color.white":"color.n-12"),"tag-neutral-strong-stroke-color":I(B?"n-12":"n-4",k==="stroke"?1:0),"tag-monetary-weak-bg":p("color.m-3"),"tag-monetary-weak-copy":p("color.m-11"),"tag-monetary-weak-stroke-color":p("color.m-4"),"tag-accent-strong-bg":y.mode==="dark"?p("color.a-9"):p("color.a-11"),"tag-accent-strong-copy":p("color.white"),"tag-accent-strong-stroke-color":Mf,"radius-app":ks(y).with({corners:"rounded"},()=>"2rem").with({corners:"soft"},()=>"2rem").otherwise(()=>"0"),"radius-section":ks(y).with({corners:"rounded"},()=>"1rem").with({corners:"soft"},()=>"1rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-input":ks(y).with({corners:"rounded"},()=>".5rem").with({corners:"soft"},()=>".25rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-card":ks(y).with({corners:"rounded"},()=>"0.75rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-job-tag":ks(y).with({corners:"rounded"},()=>"0.5rem").with({corners:"soft"},()=>"0.5rem").with({corners:"sharp"},()=>"0").otherwise(),"radius-logo":ks(y).with({corners:"rounded"},()=>".25rem").with({corners:"soft"},()=>".125rem").with({corners:"sharp"},()=>"0").otherwise(),"logo-gap":ks(y).with({corners:"rounded"},()=>"0.75rem").with({corners:"soft"},()=>"1rem").with({corners:"sharp"},()=>"1rem").otherwise(),"interactive-neutral-bg":I(B?"n-5":"n-4",.01),"interactive-neutral-bg-hover":p(B?"color.n-5":"color.n-4"),"interactive-neutral-text":p("color.n-12"),"interactive-accent-bg":I(k==="fill"?"a-4":"a-3",.01),"interactive-accent-bg-hover":p(k==="fill"?"color.a-4":"color.a-3"),"interactive-accent-text":p("color.a-11"),"radius-interactive":ks(y).with({corners:"rounded"},()=>"1.5rem").with({corners:"soft"},()=>".5rem").with({corners:"sharp"},()=>"0").otherwise(),"section-weak-bg":p(k==="fill"?"color.n-2":"color.lowest"),"section-strong-bg":p(k==="fill"?B?"color.n-3":"color.n-2":"color.lowest"),"section-weak-stroke-color":k==="fill"?Mf:p(B?"color.n-7":"color.n-3"),"section-strong-stroke-color":k==="fill"?Mf:p(B?"color.n-11":"color.n-4"),"section-stroke-width":ks(y).with({highlights:"stroke",highcontrast:!0},()=>"1.5px").otherwise(()=>"1px"),"job-card-bg":p("color.lowest"),"job-card-bg-active":p("color.lowest"),"job-card-stroke-color":p(B?"color.n-10":"color.n-4"),"job-card-stroke-color-active":p("color.a-9"),"job-card-stroke-width":ks(y).with({highlights:"stroke",highcontrast:!0},()=>"1.5px").otherwise(()=>"1px")}}).component(()=>({})),tI=JA({prefix:"i-"}),iI=p=>{const y=eI.from({theme:p.theme,getToken:tI}),w=Object.entries(y.declarations).map(([z,k])=>`${z}: ${k};`);return`.inploi-job-search${p.widgetId?`[data-widget-id="${p.widgetId}"]`:""} {
18
18
  ${w.concat(w).join(`
19
19
  `)}
20
- }`},ey=p=>{const y=[];return y.push(p.corners),y.push(p.highlights),y.push(p.mode),y},u5="",ty=p=>{var w,I,z;const y=[p.baseKey];p.state.query&&y.push(`q=${p.state.query}`),((w=p.state.geo)==null?void 0:w.type)==="ip"&&y.push("geo=ip"),((I=p.state.geo)==null?void 0:I.type)==="provided"&&p.state.geo.coords&&y.push(`geo=${p.state.geo.coords.lat}_${p.state.geo.coords.lng}_${p.state.geo.radius}`);for(const k in p.state.filters){const B=p.state.filters[k];if(!B)continue;const o=B.select==="many"?(z=B.value)==null?void 0:z.sort().join("|"):B.value;y.push(`${k}=${o}`)}return y.sort().join("::")};function sn(){return sn=Object.assign?Object.assign.bind():function(p){for(var y=1;y<arguments.length;y++){var w=arguments[y];for(var I in w)Object.prototype.hasOwnProperty.call(w,I)&&(p[I]=w[I])}return p},sn.apply(this,arguments)}function ls(p,y,{checkForDefaultPrevented:w=!0}={}){return function(z){if(p==null||p(z),w===!1||!z.defaultPrevented)return y==null?void 0:y(z)}}function rI(p,y){typeof p=="function"?p(y):p!=null&&(p.current=y)}function g1(...p){return y=>p.forEach(w=>rI(w,y))}function Os(...p){return Ur(g1(...p),p)}function iy(p,y=[]){let w=[];function I(k,B){const o=ic(B),J=w.length;w=[...w,B];function oe(ae){const{scope:Se,children:ye,...De}=ae,ve=(Se==null?void 0:Se[p][J])||o,ze=fn(()=>De,Object.values(De));return Jt(ve.Provider,{value:ze},ye)}function be(ae,Se){const ye=(Se==null?void 0:Se[p][J])||o,De=Ka(ye);if(De)return De;if(B!==void 0)return B;throw new Error(`\`${ae}\` must be used within \`${k}\``)}return oe.displayName=k+"Provider",[oe,be]}const z=()=>{const k=w.map(B=>ic(B));return function(o){const J=(o==null?void 0:o[p])||k;return fn(()=>({[`__scope${p}`]:{...o,[p]:J}}),[o,J])}};return z.scopeName=p,[I,nI(z,...y)]}function nI(...p){const y=p[0];if(p.length===1)return y;const w=()=>{const I=p.map(z=>({useScope:z(),scopeName:z.scopeName}));return function(k){const B=I.reduce((o,{useScope:J,scopeName:oe})=>{const ae=J(k)[`__scope${oe}`];return{...o,...ae}},{});return fn(()=>({[`__scope${y.scopeName}`]:B}),[B])}};return w.scopeName=y.scopeName,w}const mu=globalThis!=null&&globalThis.document?zs:()=>{},oI=Qx["useId".toString()]||(()=>{});let sI=0;function Pf(p){const[y,w]=Fi(oI());return mu(()=>{p||w(I=>I??String(sI++))},[p]),p||(y?`radix-${y}`:"")}function el(p){const y=Ri(p);return qi(()=>{y.current=p}),fn(()=>(...w)=>{var I;return(I=y.current)===null||I===void 0?void 0:I.call(y,...w)},[])}function y1({prop:p,defaultProp:y,onChange:w=()=>{}}){const[I,z]=aI({defaultProp:y,onChange:w}),k=p!==void 0,B=k?p:I,o=el(w),J=Ur(oe=>{if(k){const ae=typeof oe=="function"?oe(p):oe;ae!==p&&o(ae)}else z(oe)},[k,p,z,o]);return[B,J]}function aI({defaultProp:p,onChange:y}){const w=Fi(p),[I]=w,z=Ri(I),k=el(y);return qi(()=>{z.current!==I&&(k(I),z.current=I)},[I,z,k]),w}const Df=on((p,y)=>{const{children:w,...I}=p,z=Ls.toArray(w),k=z.find(cI);if(k){const B=k.props.children,o=z.map(J=>J===k?Ls.count(B)>1?Ls.only(null):pa(B)?B.props.children:null:J);return Jt(ry,sn({},I,{ref:y}),pa(B)?fu(B,void 0,o):null)}return Jt(ry,sn({},I,{ref:y}),w)});Df.displayName="Slot";const ry=on((p,y)=>{const{children:w,...I}=p;return pa(w)?fu(w,{...uI(I,w.props),ref:y?g1(y,w.ref):w.ref}):Ls.count(w)>1?Ls.only(null):null});ry.displayName="SlotClone";const lI=({children:p})=>Jt(er,null,p);function cI(p){return pa(p)&&p.type===lI}function uI(p,y){const w={...y};for(const I in y){const z=p[I],k=y[I];/^on[A-Z]/.test(I)?z&&k?w[I]=(...o)=>{k(...o),z(...o)}:z&&(w[I]=z):I==="style"?w[I]={...z,...k}:I==="className"&&(w[I]=[z,k].filter(Boolean).join(" "))}return{...p,...w}}const tl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((p,y)=>{const w=on((I,z)=>{const{asChild:k,...B}=I,o=k?Df:y;return qi(()=>{window[Symbol.for("radix-ui")]=!0},[]),Jt(o,sn({},B,{ref:z}))});return w.displayName=`Primitive.${y}`,{...p,[y]:w}},{});function hI(p,y){p&&od(()=>p.dispatchEvent(y))}function dI(p,y=globalThis==null?void 0:globalThis.document){const w=el(p);qi(()=>{const I=z=>{z.key==="Escape"&&w(z)};return y.addEventListener("keydown",I),()=>y.removeEventListener("keydown",I)},[w,y])}const ny="dismissableLayer.update",pI="dismissableLayer.pointerDownOutside",fI="dismissableLayer.focusOutside";let v1;const mI=ic({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),x1=on((p,y)=>{var w;const{disableOutsidePointerEvents:I=!1,onEscapeKeyDown:z,onPointerDownOutside:k,onFocusOutside:B,onInteractOutside:o,onDismiss:J,...oe}=p,be=Ka(mI),[ae,Se]=Fi(null),ye=(w=ae==null?void 0:ae.ownerDocument)!==null&&w!==void 0?w:globalThis==null?void 0:globalThis.document,[,De]=Fi({}),ve=Os(y,Ot=>Se(Ot)),ze=Array.from(be.layers),[Ee]=[...be.layersWithOutsidePointerEventsDisabled].slice(-1),tt=ze.indexOf(Ee),at=ae?ze.indexOf(ae):-1,Ke=be.layersWithOutsidePointerEventsDisabled.size>0,pt=at>=tt,xt=_I(Ot=>{const ui=Ot.target,Si=[...be.branches].some(ni=>ni.contains(ui));!pt||Si||(k==null||k(Ot),o==null||o(Ot),Ot.defaultPrevented||J==null||J())},ye),Wt=gI(Ot=>{const ui=Ot.target;[...be.branches].some(ni=>ni.contains(ui))||(B==null||B(Ot),o==null||o(Ot),Ot.defaultPrevented||J==null||J())},ye);return dI(Ot=>{at===be.layers.size-1&&(z==null||z(Ot),!Ot.defaultPrevented&&J&&(Ot.preventDefault(),J()))},ye),qi(()=>{if(ae)return I&&(be.layersWithOutsidePointerEventsDisabled.size===0&&(v1=ye.body.style.pointerEvents,ye.body.style.pointerEvents="none"),be.layersWithOutsidePointerEventsDisabled.add(ae)),be.layers.add(ae),b1(),()=>{I&&be.layersWithOutsidePointerEventsDisabled.size===1&&(ye.body.style.pointerEvents=v1)}},[ae,ye,I,be]),qi(()=>()=>{ae&&(be.layers.delete(ae),be.layersWithOutsidePointerEventsDisabled.delete(ae),b1())},[ae,be]),qi(()=>{const Ot=()=>De({});return document.addEventListener(ny,Ot),()=>document.removeEventListener(ny,Ot)},[]),Jt(tl.div,sn({},oe,{ref:ve,style:{pointerEvents:Ke?pt?"auto":"none":void 0,...p.style},onFocusCapture:ls(p.onFocusCapture,Wt.onFocusCapture),onBlurCapture:ls(p.onBlurCapture,Wt.onBlurCapture),onPointerDownCapture:ls(p.onPointerDownCapture,xt.onPointerDownCapture)}))});function _I(p,y=globalThis==null?void 0:globalThis.document){const w=el(p),I=Ri(!1),z=Ri(()=>{});return qi(()=>{const k=o=>{if(o.target&&!I.current){let oe=function(){w1(pI,w,J,{discrete:!0})};const J={originalEvent:o};o.pointerType==="touch"?(y.removeEventListener("click",z.current),z.current=oe,y.addEventListener("click",z.current,{once:!0})):oe()}else y.removeEventListener("click",z.current);I.current=!1},B=window.setTimeout(()=>{y.addEventListener("pointerdown",k)},0);return()=>{window.clearTimeout(B),y.removeEventListener("pointerdown",k),y.removeEventListener("click",z.current)}},[y,w]),{onPointerDownCapture:()=>I.current=!0}}function gI(p,y=globalThis==null?void 0:globalThis.document){const w=el(p),I=Ri(!1);return qi(()=>{const z=k=>{k.target&&!I.current&&w1(fI,w,{originalEvent:k},{discrete:!1})};return y.addEventListener("focusin",z),()=>y.removeEventListener("focusin",z)},[y,w]),{onFocusCapture:()=>I.current=!0,onBlurCapture:()=>I.current=!1}}function b1(){const p=new CustomEvent(ny);document.dispatchEvent(p)}function w1(p,y,w,{discrete:I}){const z=w.originalEvent.target,k=new CustomEvent(p,{bubbles:!1,cancelable:!0,detail:w});y&&z.addEventListener(p,y,{once:!0}),I?hI(z,k):z.dispatchEvent(k)}const oy="focusScope.autoFocusOnMount",sy="focusScope.autoFocusOnUnmount",T1={bubbles:!1,cancelable:!0},S1=on((p,y)=>{const{loop:w=!1,trapped:I=!1,onMountAutoFocus:z,onUnmountAutoFocus:k,...B}=p,[o,J]=Fi(null),oe=el(z),be=el(k),ae=Ri(null),Se=Os(y,ve=>J(ve)),ye=Ri({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;qi(()=>{if(I){let ve=function(at){if(ye.paused||!o)return;const Ke=at.target;o.contains(Ke)?ae.current=Ke:il(ae.current,{select:!0})},ze=function(at){if(ye.paused||!o)return;const Ke=at.relatedTarget;Ke!==null&&(o.contains(Ke)||il(ae.current,{select:!0}))},Ee=function(at){if(document.activeElement===document.body)for(const pt of at)pt.removedNodes.length>0&&il(o)};document.addEventListener("focusin",ve),document.addEventListener("focusout",ze);const tt=new MutationObserver(Ee);return o&&tt.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",ve),document.removeEventListener("focusout",ze),tt.disconnect()}}},[I,o,ye.paused]),qi(()=>{if(o){I1.add(ye);const ve=document.activeElement;if(!o.contains(ve)){const Ee=new CustomEvent(oy,T1);o.addEventListener(oy,oe),o.dispatchEvent(Ee),Ee.defaultPrevented||(yI(TI(E1(o)),{select:!0}),document.activeElement===ve&&il(o))}return()=>{o.removeEventListener(oy,oe),setTimeout(()=>{const Ee=new CustomEvent(sy,T1);o.addEventListener(sy,be),o.dispatchEvent(Ee),Ee.defaultPrevented||il(ve??document.body,{select:!0}),o.removeEventListener(sy,be),I1.remove(ye)},0)}}},[o,oe,be,ye]);const De=Ur(ve=>{if(!w&&!I||ye.paused)return;const ze=ve.key==="Tab"&&!ve.altKey&&!ve.ctrlKey&&!ve.metaKey,Ee=document.activeElement;if(ze&&Ee){const tt=ve.currentTarget,[at,Ke]=vI(tt);at&&Ke?!ve.shiftKey&&Ee===Ke?(ve.preventDefault(),w&&il(at,{select:!0})):ve.shiftKey&&Ee===at&&(ve.preventDefault(),w&&il(Ke,{select:!0})):Ee===tt&&ve.preventDefault()}},[w,I,ye.paused]);return Jt(tl.div,sn({tabIndex:-1},B,{ref:Se,onKeyDown:De}))});function yI(p,{select:y=!1}={}){const w=document.activeElement;for(const I of p)if(il(I,{select:y}),document.activeElement!==w)return}function vI(p){const y=E1(p),w=A1(y,p),I=A1(y.reverse(),p);return[w,I]}function E1(p){const y=[],w=document.createTreeWalker(p,NodeFilter.SHOW_ELEMENT,{acceptNode:I=>{const z=I.tagName==="INPUT"&&I.type==="hidden";return I.disabled||I.hidden||z?NodeFilter.FILTER_SKIP:I.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;w.nextNode();)y.push(w.currentNode);return y}function A1(p,y){for(const w of p)if(!xI(w,{upTo:y}))return w}function xI(p,{upTo:y}){if(getComputedStyle(p).visibility==="hidden")return!0;for(;p;){if(y!==void 0&&p===y)return!1;if(getComputedStyle(p).display==="none")return!0;p=p.parentElement}return!1}function bI(p){return p instanceof HTMLInputElement&&"select"in p}function il(p,{select:y=!1}={}){if(p&&p.focus){const w=document.activeElement;p.focus({preventScroll:!0}),p!==w&&bI(p)&&y&&p.select()}}const I1=wI();function wI(){let p=[];return{add(y){const w=p[0];y!==w&&(w==null||w.pause()),p=C1(p,y),p.unshift(y)},remove(y){var w;p=C1(p,y),(w=p[0])===null||w===void 0||w.resume()}}}function C1(p,y){const w=[...p],I=w.indexOf(y);return I!==-1&&w.splice(I,1),w}function TI(p){return p.filter(y=>y.tagName!=="A")}const M1=on((p,y)=>{var w;const{container:I=globalThis==null||(w=globalThis.document)===null||w===void 0?void 0:w.body,...z}=p;return I?sd.createPortal(Jt(tl.div,sn({},z,{ref:y})),I):null});function SI(p,y){return rd((w,I)=>{const z=y[w][I];return z??w},p)}const _u=p=>{const{present:y,children:w}=p,I=EI(y),z=typeof w=="function"?w({present:I.isPresent}):Ls.only(w),k=Os(I.ref,z.ref);return typeof w=="function"||I.isPresent?fu(z,{ref:k}):null};_u.displayName="Presence";function EI(p){const[y,w]=Fi(),I=Ri({}),z=Ri(p),k=Ri("none"),B=p?"mounted":"unmounted",[o,J]=SI(B,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return qi(()=>{const oe=Rf(I.current);k.current=o==="mounted"?oe:"none"},[o]),mu(()=>{const oe=I.current,be=z.current;if(be!==p){const Se=k.current,ye=Rf(oe);p?J("MOUNT"):ye==="none"||(oe==null?void 0:oe.display)==="none"?J("UNMOUNT"):J(be&&Se!==ye?"ANIMATION_OUT":"UNMOUNT"),z.current=p}},[p,J]),mu(()=>{if(y){const oe=ae=>{const ye=Rf(I.current).includes(ae.animationName);ae.target===y&&ye&&od(()=>J("ANIMATION_END"))},be=ae=>{ae.target===y&&(k.current=Rf(I.current))};return y.addEventListener("animationstart",be),y.addEventListener("animationcancel",oe),y.addEventListener("animationend",oe),()=>{y.removeEventListener("animationstart",be),y.removeEventListener("animationcancel",oe),y.removeEventListener("animationend",oe)}}else J("ANIMATION_END")},[y,J]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:Ur(oe=>{oe&&(I.current=getComputedStyle(oe)),w(oe)},[])}}function Rf(p){return(p==null?void 0:p.animationName)||"none"}let ay=0;function P1(){qi(()=>{var p,y;const w=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(p=w[0])!==null&&p!==void 0?p:D1()),document.body.insertAdjacentElement("beforeend",(y=w[1])!==null&&y!==void 0?y:D1()),ay++,()=>{ay===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(I=>I.remove()),ay--}},[])}function D1(){const p=document.createElement("span");return p.setAttribute("data-radix-focus-guard",""),p.tabIndex=0,p.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",p}var rl=function(){return rl=Object.assign||function(y){for(var w,I=1,z=arguments.length;I<z;I++){w=arguments[I];for(var k in w)Object.prototype.hasOwnProperty.call(w,k)&&(y[k]=w[k])}return y},rl.apply(this,arguments)};function AI(p,y){var w={};for(var I in p)Object.prototype.hasOwnProperty.call(p,I)&&y.indexOf(I)<0&&(w[I]=p[I]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,I=Object.getOwnPropertySymbols(p);z<I.length;z++)y.indexOf(I[z])<0&&Object.prototype.propertyIsEnumerable.call(p,I[z])&&(w[I[z]]=p[I[z]]);return w}function II(p,y,w){if(w||arguments.length===2)for(var I=0,z=y.length,k;I<z;I++)(k||!(I in y))&&(k||(k=Array.prototype.slice.call(y,0,I)),k[I]=y[I]);return p.concat(k||Array.prototype.slice.call(y))}typeof SuppressedError=="function"&&SuppressedError;var zf="right-scroll-bar-position",Lf="width-before-scroll-bar",CI="with-scroll-bars-hidden",MI="--removed-body-scroll-bar-size";function ly(p,y){return typeof p=="function"?p(y):p&&(p.current=y),p}function PI(p,y){var w=Fi(function(){return{value:p,callback:y,facade:{get current(){return w.value},set current(I){var z=w.value;z!==I&&(w.value=I,w.callback(I,z))}}}})[0];return w.callback=y,w.facade}var DI=typeof window<"u"?zs:qi,R1=new WeakMap;function RI(p,y){var w=PI(y||null,function(I){return p.forEach(function(z){return ly(z,I)})});return DI(function(){var I=R1.get(w);if(I){var z=new Set(I),k=new Set(p),B=w.current;z.forEach(function(o){k.has(o)||ly(o,null)}),k.forEach(function(o){z.has(o)||ly(o,B)})}R1.set(w,p)},[p]),w}var kf=function(){return kf=Object.assign||function(y){for(var w,I=1,z=arguments.length;I<z;I++){w=arguments[I];for(var k in w)Object.prototype.hasOwnProperty.call(w,k)&&(y[k]=w[k])}return y},kf.apply(this,arguments)};function zI(p,y){var w={};for(var I in p)Object.prototype.hasOwnProperty.call(p,I)&&y.indexOf(I)<0&&(w[I]=p[I]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,I=Object.getOwnPropertySymbols(p);z<I.length;z++)y.indexOf(I[z])<0&&Object.prototype.propertyIsEnumerable.call(p,I[z])&&(w[I[z]]=p[I[z]]);return w}typeof SuppressedError=="function"&&SuppressedError;function LI(p){return p}function kI(p,y){y===void 0&&(y=LI);var w=[],I=!1,z={read:function(){if(I)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return w.length?w[w.length-1]:p},useMedium:function(k){var B=y(k,I);return w.push(B),function(){w=w.filter(function(o){return o!==B})}},assignSyncMedium:function(k){for(I=!0;w.length;){var B=w;w=[],B.forEach(k)}w={push:function(o){return k(o)},filter:function(){return w}}},assignMedium:function(k){I=!0;var B=[];if(w.length){var o=w;w=[],o.forEach(k),B=w}var J=function(){var be=B;B=[],be.forEach(k)},oe=function(){return Promise.resolve().then(J)};oe(),w={push:function(be){B.push(be),oe()},filter:function(be){return B=B.filter(be),w}}}};return z}function OI(p){p===void 0&&(p={});var y=kI(null);return y.options=kf({async:!0,ssr:!1},p),y}var z1=function(p){var y=p.sideCar,w=zI(p,["sideCar"]);if(!y)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var I=y.read();if(!I)throw new Error("Sidecar medium not found");return Jt(I,kf({},w))};z1.isSideCarExport=!0;function FI(p,y){return p.useMedium(y),z1}var L1=OI(),cy=function(){},Of=on(function(p,y){var w=Ri(null),I=Fi({onScrollCapture:cy,onWheelCapture:cy,onTouchMoveCapture:cy}),z=I[0],k=I[1],B=p.forwardProps,o=p.children,J=p.className,oe=p.removeScrollBar,be=p.enabled,ae=p.shards,Se=p.sideCar,ye=p.noIsolation,De=p.inert,ve=p.allowPinchZoom,ze=p.as,Ee=ze===void 0?"div":ze,tt=AI(p,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),at=Se,Ke=RI([w,y]),pt=rl(rl({},tt),z);return Jt(er,null,be&&Jt(at,{sideCar:L1,removeScrollBar:oe,shards:ae,noIsolation:ye,inert:De,setCallbacks:k,allowPinchZoom:!!ve,lockRef:w}),B?fu(Ls.only(o),rl(rl({},pt),{ref:Ke})):Jt(Ee,rl({},pt,{className:J,ref:Ke}),o))});Of.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Of.classNames={fullWidth:Lf,zeroRight:zf};var k1,BI=function(){if(k1)return k1;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function NI(){if(!document)return null;var p=document.createElement("style");p.type="text/css";var y=BI();return y&&p.setAttribute("nonce",y),p}function jI(p,y){p.styleSheet?p.styleSheet.cssText=y:p.appendChild(document.createTextNode(y))}function VI(p){var y=document.head||document.getElementsByTagName("head")[0];y.appendChild(p)}var UI=function(){var p=0,y=null;return{add:function(w){p==0&&(y=NI())&&(jI(y,w),VI(y)),p++},remove:function(){p--,!p&&y&&(y.parentNode&&y.parentNode.removeChild(y),y=null)}}},$I=function(){var p=UI();return function(y,w){qi(function(){return p.add(y),function(){p.remove()}},[y&&w])}},O1=function(){var p=$I(),y=function(w){var I=w.styles,z=w.dynamic;return p(I,z),null};return y},GI={left:0,top:0,right:0,gap:0},uy=function(p){return parseInt(p||"",10)||0},HI=function(p){var y=window.getComputedStyle(document.body),w=y[p==="padding"?"paddingLeft":"marginLeft"],I=y[p==="padding"?"paddingTop":"marginTop"],z=y[p==="padding"?"paddingRight":"marginRight"];return[uy(w),uy(I),uy(z)]},qI=function(p){if(p===void 0&&(p="margin"),typeof window>"u")return GI;var y=HI(p),w=document.documentElement.clientWidth,I=window.innerWidth;return{left:y[0],top:y[1],right:y[2],gap:Math.max(0,I-w+y[2]-y[0])}},ZI=O1(),gu="data-scroll-locked",WI=function(p,y,w,I){var z=p.left,k=p.top,B=p.right,o=p.gap;return w===void 0&&(w="margin"),`
20
+ }`},ey=p=>{const y=[];return y.push(p.corners),y.push(p.highlights),y.push(p.mode),y},h5="",ty=p=>{var w,I,z;const y=[p.baseKey];p.state.query&&y.push(`q=${p.state.query}`),((w=p.state.geo)==null?void 0:w.type)==="ip"&&y.push("geo=ip"),((I=p.state.geo)==null?void 0:I.type)==="provided"&&p.state.geo.coords&&y.push(`geo=${p.state.geo.coords.lat}_${p.state.geo.coords.lng}_${p.state.geo.radius}`);for(const k in p.state.filters){const B=p.state.filters[k];if(!B)continue;const o=B.select==="many"?(z=B.value)==null?void 0:z.sort().join("|"):B.value;y.push(`${k}=${o}`)}return y.sort().join("::")};function sn(){return sn=Object.assign?Object.assign.bind():function(p){for(var y=1;y<arguments.length;y++){var w=arguments[y];for(var I in w)Object.prototype.hasOwnProperty.call(w,I)&&(p[I]=w[I])}return p},sn.apply(this,arguments)}function ls(p,y,{checkForDefaultPrevented:w=!0}={}){return function(z){if(p==null||p(z),w===!1||!z.defaultPrevented)return y==null?void 0:y(z)}}function rI(p,y){typeof p=="function"?p(y):p!=null&&(p.current=y)}function g1(...p){return y=>p.forEach(w=>rI(w,y))}function Os(...p){return Ur(g1(...p),p)}function iy(p,y=[]){let w=[];function I(k,B){const o=ic(B),J=w.length;w=[...w,B];function oe(ae){const{scope:Se,children:ye,...De}=ae,ve=(Se==null?void 0:Se[p][J])||o,ze=fn(()=>De,Object.values(De));return Jt(ve.Provider,{value:ze},ye)}function be(ae,Se){const ye=(Se==null?void 0:Se[p][J])||o,De=Ka(ye);if(De)return De;if(B!==void 0)return B;throw new Error(`\`${ae}\` must be used within \`${k}\``)}return oe.displayName=k+"Provider",[oe,be]}const z=()=>{const k=w.map(B=>ic(B));return function(o){const J=(o==null?void 0:o[p])||k;return fn(()=>({[`__scope${p}`]:{...o,[p]:J}}),[o,J])}};return z.scopeName=p,[I,nI(z,...y)]}function nI(...p){const y=p[0];if(p.length===1)return y;const w=()=>{const I=p.map(z=>({useScope:z(),scopeName:z.scopeName}));return function(k){const B=I.reduce((o,{useScope:J,scopeName:oe})=>{const ae=J(k)[`__scope${oe}`];return{...o,...ae}},{});return fn(()=>({[`__scope${y.scopeName}`]:B}),[B])}};return w.scopeName=y.scopeName,w}const mu=globalThis!=null&&globalThis.document?zs:()=>{},oI=Qx["useId".toString()]||(()=>{});let sI=0;function Pf(p){const[y,w]=Fi(oI());return mu(()=>{p||w(I=>I??String(sI++))},[p]),p||(y?`radix-${y}`:"")}function el(p){const y=Ri(p);return qi(()=>{y.current=p}),fn(()=>(...w)=>{var I;return(I=y.current)===null||I===void 0?void 0:I.call(y,...w)},[])}function y1({prop:p,defaultProp:y,onChange:w=()=>{}}){const[I,z]=aI({defaultProp:y,onChange:w}),k=p!==void 0,B=k?p:I,o=el(w),J=Ur(oe=>{if(k){const ae=typeof oe=="function"?oe(p):oe;ae!==p&&o(ae)}else z(oe)},[k,p,z,o]);return[B,J]}function aI({defaultProp:p,onChange:y}){const w=Fi(p),[I]=w,z=Ri(I),k=el(y);return qi(()=>{z.current!==I&&(k(I),z.current=I)},[I,z,k]),w}const Df=on((p,y)=>{const{children:w,...I}=p,z=Ls.toArray(w),k=z.find(cI);if(k){const B=k.props.children,o=z.map(J=>J===k?Ls.count(B)>1?Ls.only(null):pa(B)?B.props.children:null:J);return Jt(ry,sn({},I,{ref:y}),pa(B)?fu(B,void 0,o):null)}return Jt(ry,sn({},I,{ref:y}),w)});Df.displayName="Slot";const ry=on((p,y)=>{const{children:w,...I}=p;return pa(w)?fu(w,{...uI(I,w.props),ref:y?g1(y,w.ref):w.ref}):Ls.count(w)>1?Ls.only(null):null});ry.displayName="SlotClone";const lI=({children:p})=>Jt(er,null,p);function cI(p){return pa(p)&&p.type===lI}function uI(p,y){const w={...y};for(const I in y){const z=p[I],k=y[I];/^on[A-Z]/.test(I)?z&&k?w[I]=(...o)=>{k(...o),z(...o)}:z&&(w[I]=z):I==="style"?w[I]={...z,...k}:I==="className"&&(w[I]=[z,k].filter(Boolean).join(" "))}return{...p,...w}}const tl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((p,y)=>{const w=on((I,z)=>{const{asChild:k,...B}=I,o=k?Df:y;return qi(()=>{window[Symbol.for("radix-ui")]=!0},[]),Jt(o,sn({},B,{ref:z}))});return w.displayName=`Primitive.${y}`,{...p,[y]:w}},{});function hI(p,y){p&&od(()=>p.dispatchEvent(y))}function dI(p,y=globalThis==null?void 0:globalThis.document){const w=el(p);qi(()=>{const I=z=>{z.key==="Escape"&&w(z)};return y.addEventListener("keydown",I),()=>y.removeEventListener("keydown",I)},[w,y])}const ny="dismissableLayer.update",pI="dismissableLayer.pointerDownOutside",fI="dismissableLayer.focusOutside";let v1;const mI=ic({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),x1=on((p,y)=>{var w;const{disableOutsidePointerEvents:I=!1,onEscapeKeyDown:z,onPointerDownOutside:k,onFocusOutside:B,onInteractOutside:o,onDismiss:J,...oe}=p,be=Ka(mI),[ae,Se]=Fi(null),ye=(w=ae==null?void 0:ae.ownerDocument)!==null&&w!==void 0?w:globalThis==null?void 0:globalThis.document,[,De]=Fi({}),ve=Os(y,Ot=>Se(Ot)),ze=Array.from(be.layers),[Ee]=[...be.layersWithOutsidePointerEventsDisabled].slice(-1),tt=ze.indexOf(Ee),at=ae?ze.indexOf(ae):-1,Ke=be.layersWithOutsidePointerEventsDisabled.size>0,pt=at>=tt,xt=_I(Ot=>{const ui=Ot.target,Si=[...be.branches].some(ni=>ni.contains(ui));!pt||Si||(k==null||k(Ot),o==null||o(Ot),Ot.defaultPrevented||J==null||J())},ye),Wt=gI(Ot=>{const ui=Ot.target;[...be.branches].some(ni=>ni.contains(ui))||(B==null||B(Ot),o==null||o(Ot),Ot.defaultPrevented||J==null||J())},ye);return dI(Ot=>{at===be.layers.size-1&&(z==null||z(Ot),!Ot.defaultPrevented&&J&&(Ot.preventDefault(),J()))},ye),qi(()=>{if(ae)return I&&(be.layersWithOutsidePointerEventsDisabled.size===0&&(v1=ye.body.style.pointerEvents,ye.body.style.pointerEvents="none"),be.layersWithOutsidePointerEventsDisabled.add(ae)),be.layers.add(ae),b1(),()=>{I&&be.layersWithOutsidePointerEventsDisabled.size===1&&(ye.body.style.pointerEvents=v1)}},[ae,ye,I,be]),qi(()=>()=>{ae&&(be.layers.delete(ae),be.layersWithOutsidePointerEventsDisabled.delete(ae),b1())},[ae,be]),qi(()=>{const Ot=()=>De({});return document.addEventListener(ny,Ot),()=>document.removeEventListener(ny,Ot)},[]),Jt(tl.div,sn({},oe,{ref:ve,style:{pointerEvents:Ke?pt?"auto":"none":void 0,...p.style},onFocusCapture:ls(p.onFocusCapture,Wt.onFocusCapture),onBlurCapture:ls(p.onBlurCapture,Wt.onBlurCapture),onPointerDownCapture:ls(p.onPointerDownCapture,xt.onPointerDownCapture)}))});function _I(p,y=globalThis==null?void 0:globalThis.document){const w=el(p),I=Ri(!1),z=Ri(()=>{});return qi(()=>{const k=o=>{if(o.target&&!I.current){let oe=function(){w1(pI,w,J,{discrete:!0})};const J={originalEvent:o};o.pointerType==="touch"?(y.removeEventListener("click",z.current),z.current=oe,y.addEventListener("click",z.current,{once:!0})):oe()}else y.removeEventListener("click",z.current);I.current=!1},B=window.setTimeout(()=>{y.addEventListener("pointerdown",k)},0);return()=>{window.clearTimeout(B),y.removeEventListener("pointerdown",k),y.removeEventListener("click",z.current)}},[y,w]),{onPointerDownCapture:()=>I.current=!0}}function gI(p,y=globalThis==null?void 0:globalThis.document){const w=el(p),I=Ri(!1);return qi(()=>{const z=k=>{k.target&&!I.current&&w1(fI,w,{originalEvent:k},{discrete:!1})};return y.addEventListener("focusin",z),()=>y.removeEventListener("focusin",z)},[y,w]),{onFocusCapture:()=>I.current=!0,onBlurCapture:()=>I.current=!1}}function b1(){const p=new CustomEvent(ny);document.dispatchEvent(p)}function w1(p,y,w,{discrete:I}){const z=w.originalEvent.target,k=new CustomEvent(p,{bubbles:!1,cancelable:!0,detail:w});y&&z.addEventListener(p,y,{once:!0}),I?hI(z,k):z.dispatchEvent(k)}const oy="focusScope.autoFocusOnMount",sy="focusScope.autoFocusOnUnmount",T1={bubbles:!1,cancelable:!0},S1=on((p,y)=>{const{loop:w=!1,trapped:I=!1,onMountAutoFocus:z,onUnmountAutoFocus:k,...B}=p,[o,J]=Fi(null),oe=el(z),be=el(k),ae=Ri(null),Se=Os(y,ve=>J(ve)),ye=Ri({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;qi(()=>{if(I){let ve=function(at){if(ye.paused||!o)return;const Ke=at.target;o.contains(Ke)?ae.current=Ke:il(ae.current,{select:!0})},ze=function(at){if(ye.paused||!o)return;const Ke=at.relatedTarget;Ke!==null&&(o.contains(Ke)||il(ae.current,{select:!0}))},Ee=function(at){if(document.activeElement===document.body)for(const pt of at)pt.removedNodes.length>0&&il(o)};document.addEventListener("focusin",ve),document.addEventListener("focusout",ze);const tt=new MutationObserver(Ee);return o&&tt.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",ve),document.removeEventListener("focusout",ze),tt.disconnect()}}},[I,o,ye.paused]),qi(()=>{if(o){I1.add(ye);const ve=document.activeElement;if(!o.contains(ve)){const Ee=new CustomEvent(oy,T1);o.addEventListener(oy,oe),o.dispatchEvent(Ee),Ee.defaultPrevented||(yI(TI(E1(o)),{select:!0}),document.activeElement===ve&&il(o))}return()=>{o.removeEventListener(oy,oe),setTimeout(()=>{const Ee=new CustomEvent(sy,T1);o.addEventListener(sy,be),o.dispatchEvent(Ee),Ee.defaultPrevented||il(ve??document.body,{select:!0}),o.removeEventListener(sy,be),I1.remove(ye)},0)}}},[o,oe,be,ye]);const De=Ur(ve=>{if(!w&&!I||ye.paused)return;const ze=ve.key==="Tab"&&!ve.altKey&&!ve.ctrlKey&&!ve.metaKey,Ee=document.activeElement;if(ze&&Ee){const tt=ve.currentTarget,[at,Ke]=vI(tt);at&&Ke?!ve.shiftKey&&Ee===Ke?(ve.preventDefault(),w&&il(at,{select:!0})):ve.shiftKey&&Ee===at&&(ve.preventDefault(),w&&il(Ke,{select:!0})):Ee===tt&&ve.preventDefault()}},[w,I,ye.paused]);return Jt(tl.div,sn({tabIndex:-1},B,{ref:Se,onKeyDown:De}))});function yI(p,{select:y=!1}={}){const w=document.activeElement;for(const I of p)if(il(I,{select:y}),document.activeElement!==w)return}function vI(p){const y=E1(p),w=A1(y,p),I=A1(y.reverse(),p);return[w,I]}function E1(p){const y=[],w=document.createTreeWalker(p,NodeFilter.SHOW_ELEMENT,{acceptNode:I=>{const z=I.tagName==="INPUT"&&I.type==="hidden";return I.disabled||I.hidden||z?NodeFilter.FILTER_SKIP:I.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;w.nextNode();)y.push(w.currentNode);return y}function A1(p,y){for(const w of p)if(!xI(w,{upTo:y}))return w}function xI(p,{upTo:y}){if(getComputedStyle(p).visibility==="hidden")return!0;for(;p;){if(y!==void 0&&p===y)return!1;if(getComputedStyle(p).display==="none")return!0;p=p.parentElement}return!1}function bI(p){return p instanceof HTMLInputElement&&"select"in p}function il(p,{select:y=!1}={}){if(p&&p.focus){const w=document.activeElement;p.focus({preventScroll:!0}),p!==w&&bI(p)&&y&&p.select()}}const I1=wI();function wI(){let p=[];return{add(y){const w=p[0];y!==w&&(w==null||w.pause()),p=C1(p,y),p.unshift(y)},remove(y){var w;p=C1(p,y),(w=p[0])===null||w===void 0||w.resume()}}}function C1(p,y){const w=[...p],I=w.indexOf(y);return I!==-1&&w.splice(I,1),w}function TI(p){return p.filter(y=>y.tagName!=="A")}const M1=on((p,y)=>{var w;const{container:I=globalThis==null||(w=globalThis.document)===null||w===void 0?void 0:w.body,...z}=p;return I?sd.createPortal(Jt(tl.div,sn({},z,{ref:y})),I):null});function SI(p,y){return rd((w,I)=>{const z=y[w][I];return z??w},p)}const _u=p=>{const{present:y,children:w}=p,I=EI(y),z=typeof w=="function"?w({present:I.isPresent}):Ls.only(w),k=Os(I.ref,z.ref);return typeof w=="function"||I.isPresent?fu(z,{ref:k}):null};_u.displayName="Presence";function EI(p){const[y,w]=Fi(),I=Ri({}),z=Ri(p),k=Ri("none"),B=p?"mounted":"unmounted",[o,J]=SI(B,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return qi(()=>{const oe=Rf(I.current);k.current=o==="mounted"?oe:"none"},[o]),mu(()=>{const oe=I.current,be=z.current;if(be!==p){const Se=k.current,ye=Rf(oe);p?J("MOUNT"):ye==="none"||(oe==null?void 0:oe.display)==="none"?J("UNMOUNT"):J(be&&Se!==ye?"ANIMATION_OUT":"UNMOUNT"),z.current=p}},[p,J]),mu(()=>{if(y){const oe=ae=>{const ye=Rf(I.current).includes(ae.animationName);ae.target===y&&ye&&od(()=>J("ANIMATION_END"))},be=ae=>{ae.target===y&&(k.current=Rf(I.current))};return y.addEventListener("animationstart",be),y.addEventListener("animationcancel",oe),y.addEventListener("animationend",oe),()=>{y.removeEventListener("animationstart",be),y.removeEventListener("animationcancel",oe),y.removeEventListener("animationend",oe)}}else J("ANIMATION_END")},[y,J]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:Ur(oe=>{oe&&(I.current=getComputedStyle(oe)),w(oe)},[])}}function Rf(p){return(p==null?void 0:p.animationName)||"none"}let ay=0;function P1(){qi(()=>{var p,y;const w=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(p=w[0])!==null&&p!==void 0?p:D1()),document.body.insertAdjacentElement("beforeend",(y=w[1])!==null&&y!==void 0?y:D1()),ay++,()=>{ay===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(I=>I.remove()),ay--}},[])}function D1(){const p=document.createElement("span");return p.setAttribute("data-radix-focus-guard",""),p.tabIndex=0,p.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",p}var rl=function(){return rl=Object.assign||function(y){for(var w,I=1,z=arguments.length;I<z;I++){w=arguments[I];for(var k in w)Object.prototype.hasOwnProperty.call(w,k)&&(y[k]=w[k])}return y},rl.apply(this,arguments)};function AI(p,y){var w={};for(var I in p)Object.prototype.hasOwnProperty.call(p,I)&&y.indexOf(I)<0&&(w[I]=p[I]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,I=Object.getOwnPropertySymbols(p);z<I.length;z++)y.indexOf(I[z])<0&&Object.prototype.propertyIsEnumerable.call(p,I[z])&&(w[I[z]]=p[I[z]]);return w}function II(p,y,w){if(w||arguments.length===2)for(var I=0,z=y.length,k;I<z;I++)(k||!(I in y))&&(k||(k=Array.prototype.slice.call(y,0,I)),k[I]=y[I]);return p.concat(k||Array.prototype.slice.call(y))}typeof SuppressedError=="function"&&SuppressedError;var zf="right-scroll-bar-position",Lf="width-before-scroll-bar",CI="with-scroll-bars-hidden",MI="--removed-body-scroll-bar-size";function ly(p,y){return typeof p=="function"?p(y):p&&(p.current=y),p}function PI(p,y){var w=Fi(function(){return{value:p,callback:y,facade:{get current(){return w.value},set current(I){var z=w.value;z!==I&&(w.value=I,w.callback(I,z))}}}})[0];return w.callback=y,w.facade}var DI=typeof window<"u"?zs:qi,R1=new WeakMap;function RI(p,y){var w=PI(y||null,function(I){return p.forEach(function(z){return ly(z,I)})});return DI(function(){var I=R1.get(w);if(I){var z=new Set(I),k=new Set(p),B=w.current;z.forEach(function(o){k.has(o)||ly(o,null)}),k.forEach(function(o){z.has(o)||ly(o,B)})}R1.set(w,p)},[p]),w}var kf=function(){return kf=Object.assign||function(y){for(var w,I=1,z=arguments.length;I<z;I++){w=arguments[I];for(var k in w)Object.prototype.hasOwnProperty.call(w,k)&&(y[k]=w[k])}return y},kf.apply(this,arguments)};function zI(p,y){var w={};for(var I in p)Object.prototype.hasOwnProperty.call(p,I)&&y.indexOf(I)<0&&(w[I]=p[I]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,I=Object.getOwnPropertySymbols(p);z<I.length;z++)y.indexOf(I[z])<0&&Object.prototype.propertyIsEnumerable.call(p,I[z])&&(w[I[z]]=p[I[z]]);return w}typeof SuppressedError=="function"&&SuppressedError;function LI(p){return p}function kI(p,y){y===void 0&&(y=LI);var w=[],I=!1,z={read:function(){if(I)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return w.length?w[w.length-1]:p},useMedium:function(k){var B=y(k,I);return w.push(B),function(){w=w.filter(function(o){return o!==B})}},assignSyncMedium:function(k){for(I=!0;w.length;){var B=w;w=[],B.forEach(k)}w={push:function(o){return k(o)},filter:function(){return w}}},assignMedium:function(k){I=!0;var B=[];if(w.length){var o=w;w=[],o.forEach(k),B=w}var J=function(){var be=B;B=[],be.forEach(k)},oe=function(){return Promise.resolve().then(J)};oe(),w={push:function(be){B.push(be),oe()},filter:function(be){return B=B.filter(be),w}}}};return z}function OI(p){p===void 0&&(p={});var y=kI(null);return y.options=kf({async:!0,ssr:!1},p),y}var z1=function(p){var y=p.sideCar,w=zI(p,["sideCar"]);if(!y)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var I=y.read();if(!I)throw new Error("Sidecar medium not found");return Jt(I,kf({},w))};z1.isSideCarExport=!0;function FI(p,y){return p.useMedium(y),z1}var L1=OI(),cy=function(){},Of=on(function(p,y){var w=Ri(null),I=Fi({onScrollCapture:cy,onWheelCapture:cy,onTouchMoveCapture:cy}),z=I[0],k=I[1],B=p.forwardProps,o=p.children,J=p.className,oe=p.removeScrollBar,be=p.enabled,ae=p.shards,Se=p.sideCar,ye=p.noIsolation,De=p.inert,ve=p.allowPinchZoom,ze=p.as,Ee=ze===void 0?"div":ze,tt=AI(p,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),at=Se,Ke=RI([w,y]),pt=rl(rl({},tt),z);return Jt(er,null,be&&Jt(at,{sideCar:L1,removeScrollBar:oe,shards:ae,noIsolation:ye,inert:De,setCallbacks:k,allowPinchZoom:!!ve,lockRef:w}),B?fu(Ls.only(o),rl(rl({},pt),{ref:Ke})):Jt(Ee,rl({},pt,{className:J,ref:Ke}),o))});Of.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Of.classNames={fullWidth:Lf,zeroRight:zf};var k1,BI=function(){if(k1)return k1;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function NI(){if(!document)return null;var p=document.createElement("style");p.type="text/css";var y=BI();return y&&p.setAttribute("nonce",y),p}function jI(p,y){p.styleSheet?p.styleSheet.cssText=y:p.appendChild(document.createTextNode(y))}function VI(p){var y=document.head||document.getElementsByTagName("head")[0];y.appendChild(p)}var UI=function(){var p=0,y=null;return{add:function(w){p==0&&(y=NI())&&(jI(y,w),VI(y)),p++},remove:function(){p--,!p&&y&&(y.parentNode&&y.parentNode.removeChild(y),y=null)}}},$I=function(){var p=UI();return function(y,w){qi(function(){return p.add(y),function(){p.remove()}},[y&&w])}},O1=function(){var p=$I(),y=function(w){var I=w.styles,z=w.dynamic;return p(I,z),null};return y},GI={left:0,top:0,right:0,gap:0},uy=function(p){return parseInt(p||"",10)||0},HI=function(p){var y=window.getComputedStyle(document.body),w=y[p==="padding"?"paddingLeft":"marginLeft"],I=y[p==="padding"?"paddingTop":"marginTop"],z=y[p==="padding"?"paddingRight":"marginRight"];return[uy(w),uy(I),uy(z)]},qI=function(p){if(p===void 0&&(p="margin"),typeof window>"u")return GI;var y=HI(p),w=document.documentElement.clientWidth,I=window.innerWidth;return{left:y[0],top:y[1],right:y[2],gap:Math.max(0,I-w+y[2]-y[0])}},ZI=O1(),gu="data-scroll-locked",WI=function(p,y,w,I){var z=p.left,k=p.top,B=p.right,o=p.gap;return w===void 0&&(w="margin"),`
21
21
  .`.concat(CI,` {
22
22
  overflow: hidden `).concat(I,`;
23
23
  padding-right: `).concat(o,"px ").concat(I,`;
@@ -57,14 +57,14 @@ ${w.concat(w).join(`
57
57
  `)},F1=function(){var p=parseInt(document.body.getAttribute(gu)||"0",10);return isFinite(p)?p:0},XI=function(){qi(function(){return document.body.setAttribute(gu,(F1()+1).toString()),function(){var p=F1()-1;p<=0?document.body.removeAttribute(gu):document.body.setAttribute(gu,p.toString())}},[])},YI=function(p){var y=p.noRelative,w=p.noImportant,I=p.gapMode,z=I===void 0?"margin":I;XI();var k=fn(function(){return qI(z)},[z]);return Jt(ZI,{styles:WI(k,!y,z,w?"":"!important")})},hy=!1;if(typeof window<"u")try{var Ff=Object.defineProperty({},"passive",{get:function(){return hy=!0,!0}});window.addEventListener("test",Ff,Ff),window.removeEventListener("test",Ff,Ff)}catch{hy=!1}var yu=hy?{passive:!1}:!1,KI=function(p){return p.tagName==="TEXTAREA"},B1=function(p,y){var w=window.getComputedStyle(p);return w[y]!=="hidden"&&!(w.overflowY===w.overflowX&&!KI(p)&&w[y]==="visible")},JI=function(p){return B1(p,"overflowY")},QI=function(p){return B1(p,"overflowX")},N1=function(p,y){var w=y;do{typeof ShadowRoot<"u"&&w instanceof ShadowRoot&&(w=w.host);var I=j1(p,w);if(I){var z=V1(p,w),k=z[1],B=z[2];if(k>B)return!0}w=w.parentNode}while(w&&w!==document.body);return!1},eC=function(p){var y=p.scrollTop,w=p.scrollHeight,I=p.clientHeight;return[y,w,I]},tC=function(p){var y=p.scrollLeft,w=p.scrollWidth,I=p.clientWidth;return[y,w,I]},j1=function(p,y){return p==="v"?JI(y):QI(y)},V1=function(p,y){return p==="v"?eC(y):tC(y)},iC=function(p,y){return p==="h"&&y==="rtl"?-1:1},rC=function(p,y,w,I,z){var k=iC(p,window.getComputedStyle(y).direction),B=k*I,o=w.target,J=y.contains(o),oe=!1,be=B>0,ae=0,Se=0;do{var ye=V1(p,o),De=ye[0],ve=ye[1],ze=ye[2],Ee=ve-ze-k*De;(De||Ee)&&j1(p,o)&&(ae+=Ee,Se+=De),o=o.parentNode}while(!J&&o!==document.body||J&&(y.contains(o)||y===o));return(be&&(z&&ae===0||!z&&B>ae)||!be&&(z&&Se===0||!z&&-B>Se))&&(oe=!0),oe},Bf=function(p){return"changedTouches"in p?[p.changedTouches[0].clientX,p.changedTouches[0].clientY]:[0,0]},U1=function(p){return[p.deltaX,p.deltaY]},$1=function(p){return p&&"current"in p?p.current:p},nC=function(p,y){return p[0]===y[0]&&p[1]===y[1]},oC=function(p){return`
58
58
  .block-interactivity-`.concat(p,` {pointer-events: none;}
59
59
  .allow-interactivity-`).concat(p,` {pointer-events: all;}
60
- `)},sC=0,vu=[];function aC(p){var y=Ri([]),w=Ri([0,0]),I=Ri(),z=Fi(sC++)[0],k=Fi(function(){return O1()})[0],B=Ri(p);qi(function(){B.current=p},[p]),qi(function(){if(p.inert){document.body.classList.add("block-interactivity-".concat(z));var ve=II([p.lockRef.current],(p.shards||[]).map($1),!0).filter(Boolean);return ve.forEach(function(ze){return ze.classList.add("allow-interactivity-".concat(z))}),function(){document.body.classList.remove("block-interactivity-".concat(z)),ve.forEach(function(ze){return ze.classList.remove("allow-interactivity-".concat(z))})}}},[p.inert,p.lockRef.current,p.shards]);var o=Ur(function(ve,ze){if("touches"in ve&&ve.touches.length===2)return!B.current.allowPinchZoom;var Ee=Bf(ve),tt=w.current,at="deltaX"in ve?ve.deltaX:tt[0]-Ee[0],Ke="deltaY"in ve?ve.deltaY:tt[1]-Ee[1],pt,xt=ve.target,Wt=Math.abs(at)>Math.abs(Ke)?"h":"v";if("touches"in ve&&Wt==="h"&&xt.type==="range")return!1;var Ot=N1(Wt,xt);if(!Ot)return!0;if(Ot?pt=Wt:(pt=Wt==="v"?"h":"v",Ot=N1(Wt,xt)),!Ot)return!1;if(!I.current&&"changedTouches"in ve&&(at||Ke)&&(I.current=pt),!pt)return!0;var ui=I.current||pt;return rC(ui,ze,ve,ui==="h"?at:Ke,!0)},[]),J=Ur(function(ve){var ze=ve;if(!(!vu.length||vu[vu.length-1]!==k)){var Ee="deltaY"in ze?U1(ze):Bf(ze),tt=y.current.filter(function(pt){return pt.name===ze.type&&pt.target===ze.target&&nC(pt.delta,Ee)})[0];if(tt&&tt.should){ze.cancelable&&ze.preventDefault();return}if(!tt){var at=(B.current.shards||[]).map($1).filter(Boolean).filter(function(pt){return pt.contains(ze.target)}),Ke=at.length>0?o(ze,at[0]):!B.current.noIsolation;Ke&&ze.cancelable&&ze.preventDefault()}}},[]),oe=Ur(function(ve,ze,Ee,tt){var at={name:ve,delta:ze,target:Ee,should:tt};y.current.push(at),setTimeout(function(){y.current=y.current.filter(function(Ke){return Ke!==at})},1)},[]),be=Ur(function(ve){w.current=Bf(ve),I.current=void 0},[]),ae=Ur(function(ve){oe(ve.type,U1(ve),ve.target,o(ve,p.lockRef.current))},[]),Se=Ur(function(ve){oe(ve.type,Bf(ve),ve.target,o(ve,p.lockRef.current))},[]);qi(function(){return vu.push(k),p.setCallbacks({onScrollCapture:ae,onWheelCapture:ae,onTouchMoveCapture:Se}),document.addEventListener("wheel",J,yu),document.addEventListener("touchmove",J,yu),document.addEventListener("touchstart",be,yu),function(){vu=vu.filter(function(ve){return ve!==k}),document.removeEventListener("wheel",J,yu),document.removeEventListener("touchmove",J,yu),document.removeEventListener("touchstart",be,yu)}},[]);var ye=p.removeScrollBar,De=p.inert;return Jt(er,null,De?Jt(k,{styles:oC(z)}):null,ye?Jt(YI,{gapMode:"margin"}):null)}const lC=FI(L1,aC);var G1=on(function(p,y){return Jt(Of,rl({},p,{ref:y,sideCar:lC}))});G1.classNames=Of.classNames;const H1=G1;var cC=function(p){if(typeof document>"u")return null;var y=Array.isArray(p)?p[0]:p;return y.ownerDocument.body},xu=new WeakMap,Nf=new WeakMap,jf={},dy=0,q1=function(p){return p&&(p.host||q1(p.parentNode))},uC=function(p,y){return y.map(function(w){if(p.contains(w))return w;var I=q1(w);return I&&p.contains(I)?I:(console.error("aria-hidden",w,"in not contained inside",p,". Doing nothing"),null)}).filter(function(w){return!!w})},hC=function(p,y,w,I){var z=uC(y,Array.isArray(p)?p:[p]);jf[w]||(jf[w]=new WeakMap);var k=jf[w],B=[],o=new Set,J=new Set(z),oe=function(ae){!ae||o.has(ae)||(o.add(ae),oe(ae.parentNode))};z.forEach(oe);var be=function(ae){!ae||J.has(ae)||Array.prototype.forEach.call(ae.children,function(Se){if(o.has(Se))be(Se);else try{var ye=Se.getAttribute(I),De=ye!==null&&ye!=="false",ve=(xu.get(Se)||0)+1,ze=(k.get(Se)||0)+1;xu.set(Se,ve),k.set(Se,ze),B.push(Se),ve===1&&De&&Nf.set(Se,!0),ze===1&&Se.setAttribute(w,"true"),De||Se.setAttribute(I,"true")}catch(Ee){console.error("aria-hidden: cannot operate on ",Se,Ee)}})};return be(y),o.clear(),dy++,function(){B.forEach(function(ae){var Se=xu.get(ae)-1,ye=k.get(ae)-1;xu.set(ae,Se),k.set(ae,ye),Se||(Nf.has(ae)||ae.removeAttribute(I),Nf.delete(ae)),ye||ae.removeAttribute(w)}),dy--,dy||(xu=new WeakMap,xu=new WeakMap,Nf=new WeakMap,jf={})}},Z1=function(p,y,w){w===void 0&&(w="data-aria-hidden");var I=Array.from(Array.isArray(p)?p:[p]),z=y||cC(p);return z?(I.push.apply(I,Array.from(z.querySelectorAll("[aria-live], script"))),hC(I,z,w,"aria-hidden")):function(){return null}};const W1="Dialog",[X1,d5]=iy(W1),[dC,nl]=X1(W1),pC=p=>{const{__scopeDialog:y,children:w,open:I,defaultOpen:z,onOpenChange:k,modal:B=!0}=p,o=Ri(null),J=Ri(null),[oe=!1,be]=y1({prop:I,defaultProp:z,onChange:k});return Jt(dC,{scope:y,triggerRef:o,contentRef:J,contentId:Pf(),titleId:Pf(),descriptionId:Pf(),open:oe,onOpenChange:be,onOpenToggle:Ur(()=>be(ae=>!ae),[be]),modal:B},w)},fC="DialogTrigger",mC=on((p,y)=>{const{__scopeDialog:w,...I}=p,z=nl(fC,w),k=Os(y,z.triggerRef);return Jt(tl.button,sn({type:"button","aria-haspopup":"dialog","aria-expanded":z.open,"aria-controls":z.contentId,"data-state":fy(z.open)},I,{ref:k,onClick:ls(p.onClick,z.onOpenToggle)}))}),Y1="DialogPortal",[_C,K1]=X1(Y1,{forceMount:void 0}),gC=p=>{const{__scopeDialog:y,forceMount:w,children:I,container:z}=p,k=nl(Y1,y);return Jt(_C,{scope:y,forceMount:w},Ls.map(I,B=>Jt(_u,{present:w||k.open},Jt(M1,{asChild:!0,container:z},B))))},py="DialogOverlay",yC=on((p,y)=>{const w=K1(py,p.__scopeDialog),{forceMount:I=w.forceMount,...z}=p,k=nl(py,p.__scopeDialog);return k.modal?Jt(_u,{present:I||k.open},Jt(vC,sn({},z,{ref:y}))):null}),vC=on((p,y)=>{const{__scopeDialog:w,...I}=p,z=nl(py,w);return Jt(H1,{as:Df,allowPinchZoom:!0,shards:[z.contentRef]},Jt(tl.div,sn({"data-state":fy(z.open)},I,{ref:y,style:{pointerEvents:"auto",...I.style}})))}),dd="DialogContent",xC=on((p,y)=>{const w=K1(dd,p.__scopeDialog),{forceMount:I=w.forceMount,...z}=p,k=nl(dd,p.__scopeDialog);return Jt(_u,{present:I||k.open},k.modal?Jt(bC,sn({},z,{ref:y})):Jt(wC,sn({},z,{ref:y})))}),bC=on((p,y)=>{const w=nl(dd,p.__scopeDialog),I=Ri(null),z=Os(y,w.contentRef,I);return qi(()=>{const k=I.current;if(k)return Z1(k)},[]),Jt(J1,sn({},p,{ref:z,trapFocus:w.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ls(p.onCloseAutoFocus,k=>{var B;k.preventDefault(),(B=w.triggerRef.current)===null||B===void 0||B.focus()}),onPointerDownOutside:ls(p.onPointerDownOutside,k=>{const B=k.detail.originalEvent,o=B.button===0&&B.ctrlKey===!0;(B.button===2||o)&&k.preventDefault()}),onFocusOutside:ls(p.onFocusOutside,k=>k.preventDefault())}))}),wC=on((p,y)=>{const w=nl(dd,p.__scopeDialog),I=Ri(!1),z=Ri(!1);return Jt(J1,sn({},p,{ref:y,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:k=>{var B;if((B=p.onCloseAutoFocus)===null||B===void 0||B.call(p,k),!k.defaultPrevented){var o;I.current||(o=w.triggerRef.current)===null||o===void 0||o.focus(),k.preventDefault()}I.current=!1,z.current=!1},onInteractOutside:k=>{var B,o;(B=p.onInteractOutside)===null||B===void 0||B.call(p,k),k.defaultPrevented||(I.current=!0,k.detail.originalEvent.type==="pointerdown"&&(z.current=!0));const J=k.target;((o=w.triggerRef.current)===null||o===void 0?void 0:o.contains(J))&&k.preventDefault(),k.detail.originalEvent.type==="focusin"&&z.current&&k.preventDefault()}}))}),J1=on((p,y)=>{const{__scopeDialog:w,trapFocus:I,onOpenAutoFocus:z,onCloseAutoFocus:k,...B}=p,o=nl(dd,w),J=Ri(null),oe=Os(y,J);return P1(),Jt(er,null,Jt(S1,{asChild:!0,loop:!0,trapped:I,onMountAutoFocus:z,onUnmountAutoFocus:k},Jt(x1,sn({role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":fy(o.open)},B,{ref:oe,onDismiss:()=>o.onOpenChange(!1)}))),!1)});function fy(p){return p?"open":"closed"}const TC=pC,SC=mC,EC=gC,AC=yC,IC=xC,CC=["top","right","bottom","left"],Fs=Math.min,Ao=Math.max,Vf=Math.round,Uf=Math.floor,ol=p=>({x:p,y:p}),MC={left:"right",right:"left",bottom:"top",top:"bottom"},PC={start:"end",end:"start"};function my(p,y,w){return Ao(p,Fs(y,w))}function _a(p,y){return typeof p=="function"?p(y):p}function ga(p){return p.split("-")[0]}function bu(p){return p.split("-")[1]}function _y(p){return p==="x"?"y":"x"}function gy(p){return p==="y"?"height":"width"}function sl(p){return["top","bottom"].includes(ga(p))?"y":"x"}function yy(p){return _y(sl(p))}function DC(p,y,w){w===void 0&&(w=!1);const I=bu(p),z=yy(p),k=gy(z);let B=z==="x"?I===(w?"end":"start")?"right":"left":I==="start"?"bottom":"top";return y.reference[k]>y.floating[k]&&(B=$f(B)),[B,$f(B)]}function RC(p){const y=$f(p);return[vy(p),y,vy(y)]}function vy(p){return p.replace(/start|end/g,y=>PC[y])}function zC(p,y,w){const I=["left","right"],z=["right","left"],k=["top","bottom"],B=["bottom","top"];switch(p){case"top":case"bottom":return w?y?z:I:y?I:z;case"left":case"right":return y?k:B;default:return[]}}function LC(p,y,w,I){const z=bu(p);let k=zC(ga(p),w==="start",I);return z&&(k=k.map(B=>B+"-"+z),y&&(k=k.concat(k.map(vy)))),k}function $f(p){return p.replace(/left|right|bottom|top/g,y=>MC[y])}function kC(p){return{top:0,right:0,bottom:0,left:0,...p}}function Q1(p){return typeof p!="number"?kC(p):{top:p,right:p,bottom:p,left:p}}function Gf(p){const{x:y,y:w,width:I,height:z}=p;return{width:I,height:z,top:w,left:y,right:y+I,bottom:w+z,x:y,y:w}}function eb(p,y,w){let{reference:I,floating:z}=p;const k=sl(y),B=yy(y),o=gy(B),J=ga(y),oe=k==="y",be=I.x+I.width/2-z.width/2,ae=I.y+I.height/2-z.height/2,Se=I[o]/2-z[o]/2;let ye;switch(J){case"top":ye={x:be,y:I.y-z.height};break;case"bottom":ye={x:be,y:I.y+I.height};break;case"right":ye={x:I.x+I.width,y:ae};break;case"left":ye={x:I.x-z.width,y:ae};break;default:ye={x:I.x,y:I.y}}switch(bu(y)){case"start":ye[B]-=Se*(w&&oe?-1:1);break;case"end":ye[B]+=Se*(w&&oe?-1:1);break}return ye}const OC=async(p,y,w)=>{const{placement:I="bottom",strategy:z="absolute",middleware:k=[],platform:B}=w,o=k.filter(Boolean),J=await(B.isRTL==null?void 0:B.isRTL(y));let oe=await B.getElementRects({reference:p,floating:y,strategy:z}),{x:be,y:ae}=eb(oe,I,J),Se=I,ye={},De=0;for(let ve=0;ve<o.length;ve++){const{name:ze,fn:Ee}=o[ve],{x:tt,y:at,data:Ke,reset:pt}=await Ee({x:be,y:ae,initialPlacement:I,placement:Se,strategy:z,middlewareData:ye,rects:oe,platform:B,elements:{reference:p,floating:y}});be=tt??be,ae=at??ae,ye={...ye,[ze]:{...ye[ze],...Ke}},pt&&De<=50&&(De++,typeof pt=="object"&&(pt.placement&&(Se=pt.placement),pt.rects&&(oe=pt.rects===!0?await B.getElementRects({reference:p,floating:y,strategy:z}):pt.rects),{x:be,y:ae}=eb(oe,Se,J)),ve=-1)}return{x:be,y:ae,placement:Se,strategy:z,middlewareData:ye}};async function pd(p,y){var w;y===void 0&&(y={});const{x:I,y:z,platform:k,rects:B,elements:o,strategy:J}=p,{boundary:oe="clippingAncestors",rootBoundary:be="viewport",elementContext:ae="floating",altBoundary:Se=!1,padding:ye=0}=_a(y,p),De=Q1(ye),ze=o[Se?ae==="floating"?"reference":"floating":ae],Ee=Gf(await k.getClippingRect({element:(w=await(k.isElement==null?void 0:k.isElement(ze)))==null||w?ze:ze.contextElement||await(k.getDocumentElement==null?void 0:k.getDocumentElement(o.floating)),boundary:oe,rootBoundary:be,strategy:J})),tt=ae==="floating"?{x:I,y:z,width:B.floating.width,height:B.floating.height}:B.reference,at=await(k.getOffsetParent==null?void 0:k.getOffsetParent(o.floating)),Ke=await(k.isElement==null?void 0:k.isElement(at))?await(k.getScale==null?void 0:k.getScale(at))||{x:1,y:1}:{x:1,y:1},pt=Gf(k.convertOffsetParentRelativeRectToViewportRelativeRect?await k.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:tt,offsetParent:at,strategy:J}):tt);return{top:(Ee.top-pt.top+De.top)/Ke.y,bottom:(pt.bottom-Ee.bottom+De.bottom)/Ke.y,left:(Ee.left-pt.left+De.left)/Ke.x,right:(pt.right-Ee.right+De.right)/Ke.x}}const FC=p=>({name:"arrow",options:p,async fn(y){const{x:w,y:I,placement:z,rects:k,platform:B,elements:o,middlewareData:J}=y,{element:oe,padding:be=0}=_a(p,y)||{};if(oe==null)return{};const ae=Q1(be),Se={x:w,y:I},ye=yy(z),De=gy(ye),ve=await B.getDimensions(oe),ze=ye==="y",Ee=ze?"top":"left",tt=ze?"bottom":"right",at=ze?"clientHeight":"clientWidth",Ke=k.reference[De]+k.reference[ye]-Se[ye]-k.floating[De],pt=Se[ye]-k.reference[ye],xt=await(B.getOffsetParent==null?void 0:B.getOffsetParent(oe));let Wt=xt?xt[at]:0;(!Wt||!await(B.isElement==null?void 0:B.isElement(xt)))&&(Wt=o.floating[at]||k.floating[De]);const Ot=Ke/2-pt/2,ui=Wt/2-ve[De]/2-1,Si=Fs(ae[Ee],ui),ni=Fs(ae[tt],ui),Mi=Si,gi=Wt-ve[De]-ni,Bt=Wt/2-ve[De]/2+Ot,Yt=my(Mi,Bt,gi),Gt=!J.arrow&&bu(z)!=null&&Bt!==Yt&&k.reference[De]/2-(Bt<Mi?Si:ni)-ve[De]/2<0,oi=Gt?Bt<Mi?Bt-Mi:Bt-gi:0;return{[ye]:Se[ye]+oi,data:{[ye]:Yt,centerOffset:Bt-Yt-oi,...Gt&&{alignmentOffset:oi}},reset:Gt}}}),BC=function(p){return p===void 0&&(p={}),{name:"flip",options:p,async fn(y){var w,I;const{placement:z,middlewareData:k,rects:B,initialPlacement:o,platform:J,elements:oe}=y,{mainAxis:be=!0,crossAxis:ae=!0,fallbackPlacements:Se,fallbackStrategy:ye="bestFit",fallbackAxisSideDirection:De="none",flipAlignment:ve=!0,...ze}=_a(p,y);if((w=k.arrow)!=null&&w.alignmentOffset)return{};const Ee=ga(z),tt=sl(o),at=ga(o)===o,Ke=await(J.isRTL==null?void 0:J.isRTL(oe.floating)),pt=Se||(at||!ve?[$f(o)]:RC(o)),xt=De!=="none";!Se&&xt&&pt.push(...LC(o,ve,De,Ke));const Wt=[o,...pt],Ot=await pd(y,ze),ui=[];let Si=((I=k.flip)==null?void 0:I.overflows)||[];if(be&&ui.push(Ot[Ee]),ae){const Bt=DC(z,B,Ke);ui.push(Ot[Bt[0]],Ot[Bt[1]])}if(Si=[...Si,{placement:z,overflows:ui}],!ui.every(Bt=>Bt<=0)){var ni,Mi;const Bt=(((ni=k.flip)==null?void 0:ni.index)||0)+1,Yt=Wt[Bt];if(Yt)return{data:{index:Bt,overflows:Si},reset:{placement:Yt}};let Gt=(Mi=Si.filter(oi=>oi.overflows[0]<=0).sort((oi,Wi)=>oi.overflows[1]-Wi.overflows[1])[0])==null?void 0:Mi.placement;if(!Gt)switch(ye){case"bestFit":{var gi;const oi=(gi=Si.filter(Wi=>{if(xt){const or=sl(Wi.placement);return or===tt||or==="y"}return!0}).map(Wi=>[Wi.placement,Wi.overflows.filter(or=>or>0).reduce((or,Ei)=>or+Ei,0)]).sort((Wi,or)=>Wi[1]-or[1])[0])==null?void 0:gi[0];oi&&(Gt=oi);break}case"initialPlacement":Gt=o;break}if(z!==Gt)return{reset:{placement:Gt}}}return{}}}};function tb(p,y){return{top:p.top-y.height,right:p.right-y.width,bottom:p.bottom-y.height,left:p.left-y.width}}function ib(p){return CC.some(y=>p[y]>=0)}const NC=function(p){return p===void 0&&(p={}),{name:"hide",options:p,async fn(y){const{rects:w}=y,{strategy:I="referenceHidden",...z}=_a(p,y);switch(I){case"referenceHidden":{const k=await pd(y,{...z,elementContext:"reference"}),B=tb(k,w.reference);return{data:{referenceHiddenOffsets:B,referenceHidden:ib(B)}}}case"escaped":{const k=await pd(y,{...z,altBoundary:!0}),B=tb(k,w.floating);return{data:{escapedOffsets:B,escaped:ib(B)}}}default:return{}}}}};async function jC(p,y){const{placement:w,platform:I,elements:z}=p,k=await(I.isRTL==null?void 0:I.isRTL(z.floating)),B=ga(w),o=bu(w),J=sl(w)==="y",oe=["left","top"].includes(B)?-1:1,be=k&&J?-1:1,ae=_a(y,p);let{mainAxis:Se,crossAxis:ye,alignmentAxis:De}=typeof ae=="number"?{mainAxis:ae,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...ae};return o&&typeof De=="number"&&(ye=o==="end"?De*-1:De),J?{x:ye*be,y:Se*oe}:{x:Se*oe,y:ye*be}}const VC=function(p){return p===void 0&&(p=0),{name:"offset",options:p,async fn(y){var w,I;const{x:z,y:k,placement:B,middlewareData:o}=y,J=await jC(y,p);return B===((w=o.offset)==null?void 0:w.placement)&&(I=o.arrow)!=null&&I.alignmentOffset?{}:{x:z+J.x,y:k+J.y,data:{...J,placement:B}}}}},UC=function(p){return p===void 0&&(p={}),{name:"shift",options:p,async fn(y){const{x:w,y:I,placement:z}=y,{mainAxis:k=!0,crossAxis:B=!1,limiter:o={fn:ze=>{let{x:Ee,y:tt}=ze;return{x:Ee,y:tt}}},...J}=_a(p,y),oe={x:w,y:I},be=await pd(y,J),ae=sl(ga(z)),Se=_y(ae);let ye=oe[Se],De=oe[ae];if(k){const ze=Se==="y"?"top":"left",Ee=Se==="y"?"bottom":"right",tt=ye+be[ze],at=ye-be[Ee];ye=my(tt,ye,at)}if(B){const ze=ae==="y"?"top":"left",Ee=ae==="y"?"bottom":"right",tt=De+be[ze],at=De-be[Ee];De=my(tt,De,at)}const ve=o.fn({...y,[Se]:ye,[ae]:De});return{...ve,data:{x:ve.x-w,y:ve.y-I}}}}},$C=function(p){return p===void 0&&(p={}),{options:p,fn(y){const{x:w,y:I,placement:z,rects:k,middlewareData:B}=y,{offset:o=0,mainAxis:J=!0,crossAxis:oe=!0}=_a(p,y),be={x:w,y:I},ae=sl(z),Se=_y(ae);let ye=be[Se],De=be[ae];const ve=_a(o,y),ze=typeof ve=="number"?{mainAxis:ve,crossAxis:0}:{mainAxis:0,crossAxis:0,...ve};if(J){const at=Se==="y"?"height":"width",Ke=k.reference[Se]-k.floating[at]+ze.mainAxis,pt=k.reference[Se]+k.reference[at]-ze.mainAxis;ye<Ke?ye=Ke:ye>pt&&(ye=pt)}if(oe){var Ee,tt;const at=Se==="y"?"width":"height",Ke=["top","left"].includes(ga(z)),pt=k.reference[ae]-k.floating[at]+(Ke&&((Ee=B.offset)==null?void 0:Ee[ae])||0)+(Ke?0:ze.crossAxis),xt=k.reference[ae]+k.reference[at]+(Ke?0:((tt=B.offset)==null?void 0:tt[ae])||0)-(Ke?ze.crossAxis:0);De<pt?De=pt:De>xt&&(De=xt)}return{[Se]:ye,[ae]:De}}}},GC=function(p){return p===void 0&&(p={}),{name:"size",options:p,async fn(y){const{placement:w,rects:I,platform:z,elements:k}=y,{apply:B=()=>{},...o}=_a(p,y),J=await pd(y,o),oe=ga(w),be=bu(w),ae=sl(w)==="y",{width:Se,height:ye}=I.floating;let De,ve;oe==="top"||oe==="bottom"?(De=oe,ve=be===(await(z.isRTL==null?void 0:z.isRTL(k.floating))?"start":"end")?"left":"right"):(ve=oe,De=be==="end"?"top":"bottom");const ze=ye-J.top-J.bottom,Ee=Se-J.left-J.right,tt=Fs(ye-J[De],ze),at=Fs(Se-J[ve],Ee),Ke=!y.middlewareData.shift;let pt=tt,xt=at;if(ae?xt=be||Ke?Fs(at,Ee):Ee:pt=be||Ke?Fs(tt,ze):ze,Ke&&!be){const Ot=Ao(J.left,0),ui=Ao(J.right,0),Si=Ao(J.top,0),ni=Ao(J.bottom,0);ae?xt=Se-2*(Ot!==0||ui!==0?Ot+ui:Ao(J.left,J.right)):pt=ye-2*(Si!==0||ni!==0?Si+ni:Ao(J.top,J.bottom))}await B({...y,availableWidth:xt,availableHeight:pt});const Wt=await z.getDimensions(k.floating);return Se!==Wt.width||ye!==Wt.height?{reset:{rects:!0}}:{}}}};function wu(p){return rb(p)?(p.nodeName||"").toLowerCase():"#document"}function Io(p){var y;return(p==null||(y=p.ownerDocument)==null?void 0:y.defaultView)||window}function ya(p){var y;return(y=(rb(p)?p.ownerDocument:p.document)||window.document)==null?void 0:y.documentElement}function rb(p){return p instanceof Node||p instanceof Io(p).Node}function cs(p){return p instanceof Element||p instanceof Io(p).Element}function Bs(p){return p instanceof HTMLElement||p instanceof Io(p).HTMLElement}function nb(p){return typeof ShadowRoot>"u"?!1:p instanceof ShadowRoot||p instanceof Io(p).ShadowRoot}function fd(p){const{overflow:y,overflowX:w,overflowY:I,display:z}=us(p);return/auto|scroll|overlay|hidden|clip/.test(y+I+w)&&!["inline","contents"].includes(z)}function HC(p){return["table","td","th"].includes(wu(p))}function Hf(p){return[":popover-open",":modal"].some(y=>{try{return p.matches(y)}catch{return!1}})}function xy(p){const y=by(),w=cs(p)?us(p):p;return w.transform!=="none"||w.perspective!=="none"||(w.containerType?w.containerType!=="normal":!1)||!y&&(w.backdropFilter?w.backdropFilter!=="none":!1)||!y&&(w.filter?w.filter!=="none":!1)||["transform","perspective","filter"].some(I=>(w.willChange||"").includes(I))||["paint","layout","strict","content"].some(I=>(w.contain||"").includes(I))}function qC(p){let y=al(p);for(;Bs(y)&&!Tu(y);){if(xy(y))return y;if(Hf(y))return null;y=al(y)}return null}function by(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Tu(p){return["html","body","#document"].includes(wu(p))}function us(p){return Io(p).getComputedStyle(p)}function qf(p){return cs(p)?{scrollLeft:p.scrollLeft,scrollTop:p.scrollTop}:{scrollLeft:p.scrollX,scrollTop:p.scrollY}}function al(p){if(wu(p)==="html")return p;const y=p.assignedSlot||p.parentNode||nb(p)&&p.host||ya(p);return nb(y)?y.host:y}function ob(p){const y=al(p);return Tu(y)?p.ownerDocument?p.ownerDocument.body:p.body:Bs(y)&&fd(y)?y:ob(y)}function md(p,y,w){var I;y===void 0&&(y=[]),w===void 0&&(w=!0);const z=ob(p),k=z===((I=p.ownerDocument)==null?void 0:I.body),B=Io(z);if(k){const o=wy(B);return y.concat(B,B.visualViewport||[],fd(z)?z:[],o&&w?md(o):[])}return y.concat(z,md(z,[],w))}function wy(p){return p.parent&&Object.getPrototypeOf(p.parent)?p.frameElement:null}function sb(p){const y=us(p);let w=parseFloat(y.width)||0,I=parseFloat(y.height)||0;const z=Bs(p),k=z?p.offsetWidth:w,B=z?p.offsetHeight:I,o=Vf(w)!==k||Vf(I)!==B;return o&&(w=k,I=B),{width:w,height:I,$:o}}function Ty(p){return cs(p)?p:p.contextElement}function Su(p){const y=Ty(p);if(!Bs(y))return ol(1);const w=y.getBoundingClientRect(),{width:I,height:z,$:k}=sb(y);let B=(k?Vf(w.width):w.width)/I,o=(k?Vf(w.height):w.height)/z;return(!B||!Number.isFinite(B))&&(B=1),(!o||!Number.isFinite(o))&&(o=1),{x:B,y:o}}const ZC=ol(0);function ab(p){const y=Io(p);return!by()||!y.visualViewport?ZC:{x:y.visualViewport.offsetLeft,y:y.visualViewport.offsetTop}}function WC(p,y,w){return y===void 0&&(y=!1),!w||y&&w!==Io(p)?!1:y}function ac(p,y,w,I){y===void 0&&(y=!1),w===void 0&&(w=!1);const z=p.getBoundingClientRect(),k=Ty(p);let B=ol(1);y&&(I?cs(I)&&(B=Su(I)):B=Su(p));const o=WC(k,w,I)?ab(k):ol(0);let J=(z.left+o.x)/B.x,oe=(z.top+o.y)/B.y,be=z.width/B.x,ae=z.height/B.y;if(k){const Se=Io(k),ye=I&&cs(I)?Io(I):I;let De=Se,ve=wy(De);for(;ve&&I&&ye!==De;){const ze=Su(ve),Ee=ve.getBoundingClientRect(),tt=us(ve),at=Ee.left+(ve.clientLeft+parseFloat(tt.paddingLeft))*ze.x,Ke=Ee.top+(ve.clientTop+parseFloat(tt.paddingTop))*ze.y;J*=ze.x,oe*=ze.y,be*=ze.x,ae*=ze.y,J+=at,oe+=Ke,De=Io(ve),ve=wy(De)}}return Gf({width:be,height:ae,x:J,y:oe})}function XC(p){let{elements:y,rect:w,offsetParent:I,strategy:z}=p;const k=z==="fixed",B=ya(I),o=y?Hf(y.floating):!1;if(I===B||o&&k)return w;let J={scrollLeft:0,scrollTop:0},oe=ol(1);const be=ol(0),ae=Bs(I);if((ae||!ae&&!k)&&((wu(I)!=="body"||fd(B))&&(J=qf(I)),Bs(I))){const Se=ac(I);oe=Su(I),be.x=Se.x+I.clientLeft,be.y=Se.y+I.clientTop}return{width:w.width*oe.x,height:w.height*oe.y,x:w.x*oe.x-J.scrollLeft*oe.x+be.x,y:w.y*oe.y-J.scrollTop*oe.y+be.y}}function YC(p){return Array.from(p.getClientRects())}function lb(p){return ac(ya(p)).left+qf(p).scrollLeft}function KC(p){const y=ya(p),w=qf(p),I=p.ownerDocument.body,z=Ao(y.scrollWidth,y.clientWidth,I.scrollWidth,I.clientWidth),k=Ao(y.scrollHeight,y.clientHeight,I.scrollHeight,I.clientHeight);let B=-w.scrollLeft+lb(p);const o=-w.scrollTop;return us(I).direction==="rtl"&&(B+=Ao(y.clientWidth,I.clientWidth)-z),{width:z,height:k,x:B,y:o}}function JC(p,y){const w=Io(p),I=ya(p),z=w.visualViewport;let k=I.clientWidth,B=I.clientHeight,o=0,J=0;if(z){k=z.width,B=z.height;const oe=by();(!oe||oe&&y==="fixed")&&(o=z.offsetLeft,J=z.offsetTop)}return{width:k,height:B,x:o,y:J}}function QC(p,y){const w=ac(p,!0,y==="fixed"),I=w.top+p.clientTop,z=w.left+p.clientLeft,k=Bs(p)?Su(p):ol(1),B=p.clientWidth*k.x,o=p.clientHeight*k.y,J=z*k.x,oe=I*k.y;return{width:B,height:o,x:J,y:oe}}function cb(p,y,w){let I;if(y==="viewport")I=JC(p,w);else if(y==="document")I=KC(ya(p));else if(cs(y))I=QC(y,w);else{const z=ab(p);I={...y,x:y.x-z.x,y:y.y-z.y}}return Gf(I)}function ub(p,y){const w=al(p);return w===y||!cs(w)||Tu(w)?!1:us(w).position==="fixed"||ub(w,y)}function eM(p,y){const w=y.get(p);if(w)return w;let I=md(p,[],!1).filter(o=>cs(o)&&wu(o)!=="body"),z=null;const k=us(p).position==="fixed";let B=k?al(p):p;for(;cs(B)&&!Tu(B);){const o=us(B),J=xy(B);!J&&o.position==="fixed"&&(z=null),(k?!J&&!z:!J&&o.position==="static"&&!!z&&["absolute","fixed"].includes(z.position)||fd(B)&&!J&&ub(p,B))?I=I.filter(be=>be!==B):z=o,B=al(B)}return y.set(p,I),I}function tM(p){let{element:y,boundary:w,rootBoundary:I,strategy:z}=p;const B=[...w==="clippingAncestors"?Hf(y)?[]:eM(y,this._c):[].concat(w),I],o=B[0],J=B.reduce((oe,be)=>{const ae=cb(y,be,z);return oe.top=Ao(ae.top,oe.top),oe.right=Fs(ae.right,oe.right),oe.bottom=Fs(ae.bottom,oe.bottom),oe.left=Ao(ae.left,oe.left),oe},cb(y,o,z));return{width:J.right-J.left,height:J.bottom-J.top,x:J.left,y:J.top}}function iM(p){const{width:y,height:w}=sb(p);return{width:y,height:w}}function rM(p,y,w){const I=Bs(y),z=ya(y),k=w==="fixed",B=ac(p,!0,k,y);let o={scrollLeft:0,scrollTop:0};const J=ol(0);if(I||!I&&!k)if((wu(y)!=="body"||fd(z))&&(o=qf(y)),I){const ae=ac(y,!0,k,y);J.x=ae.x+y.clientLeft,J.y=ae.y+y.clientTop}else z&&(J.x=lb(z));const oe=B.left+o.scrollLeft-J.x,be=B.top+o.scrollTop-J.y;return{x:oe,y:be,width:B.width,height:B.height}}function Sy(p){return us(p).position==="static"}function hb(p,y){return!Bs(p)||us(p).position==="fixed"?null:y?y(p):p.offsetParent}function db(p,y){const w=Io(p);if(Hf(p))return w;if(!Bs(p)){let z=al(p);for(;z&&!Tu(z);){if(cs(z)&&!Sy(z))return z;z=al(z)}return w}let I=hb(p,y);for(;I&&HC(I)&&Sy(I);)I=hb(I,y);return I&&Tu(I)&&Sy(I)&&!xy(I)?w:I||qC(p)||w}const nM=async function(p){const y=this.getOffsetParent||db,w=this.getDimensions,I=await w(p.floating);return{reference:rM(p.reference,await y(p.floating),p.strategy),floating:{x:0,y:0,width:I.width,height:I.height}}};function oM(p){return us(p).direction==="rtl"}const sM={convertOffsetParentRelativeRectToViewportRelativeRect:XC,getDocumentElement:ya,getClippingRect:tM,getOffsetParent:db,getElementRects:nM,getClientRects:YC,getDimensions:iM,getScale:Su,isElement:cs,isRTL:oM};function aM(p,y){let w=null,I;const z=ya(p);function k(){var o;clearTimeout(I),(o=w)==null||o.disconnect(),w=null}function B(o,J){o===void 0&&(o=!1),J===void 0&&(J=1),k();const{left:oe,top:be,width:ae,height:Se}=p.getBoundingClientRect();if(o||y(),!ae||!Se)return;const ye=Uf(be),De=Uf(z.clientWidth-(oe+ae)),ve=Uf(z.clientHeight-(be+Se)),ze=Uf(oe),tt={rootMargin:-ye+"px "+-De+"px "+-ve+"px "+-ze+"px",threshold:Ao(0,Fs(1,J))||1};let at=!0;function Ke(pt){const xt=pt[0].intersectionRatio;if(xt!==J){if(!at)return B();xt?B(!1,xt):I=setTimeout(()=>{B(!1,1e-7)},1e3)}at=!1}try{w=new IntersectionObserver(Ke,{...tt,root:z.ownerDocument})}catch{w=new IntersectionObserver(Ke,tt)}w.observe(p)}return B(!0),k}function lM(p,y,w,I){I===void 0&&(I={});const{ancestorScroll:z=!0,ancestorResize:k=!0,elementResize:B=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:J=!1}=I,oe=Ty(p),be=z||k?[...oe?md(oe):[],...md(y)]:[];be.forEach(Ee=>{z&&Ee.addEventListener("scroll",w,{passive:!0}),k&&Ee.addEventListener("resize",w)});const ae=oe&&o?aM(oe,w):null;let Se=-1,ye=null;B&&(ye=new ResizeObserver(Ee=>{let[tt]=Ee;tt&&tt.target===oe&&ye&&(ye.unobserve(y),cancelAnimationFrame(Se),Se=requestAnimationFrame(()=>{var at;(at=ye)==null||at.observe(y)})),w()}),oe&&!J&&ye.observe(oe),ye.observe(y));let De,ve=J?ac(p):null;J&&ze();function ze(){const Ee=ac(p);ve&&(Ee.x!==ve.x||Ee.y!==ve.y||Ee.width!==ve.width||Ee.height!==ve.height)&&w(),ve=Ee,De=requestAnimationFrame(ze)}return w(),()=>{var Ee;be.forEach(tt=>{z&&tt.removeEventListener("scroll",w),k&&tt.removeEventListener("resize",w)}),ae==null||ae(),(Ee=ye)==null||Ee.disconnect(),ye=null,J&&cancelAnimationFrame(De)}}const cM=VC,uM=UC,hM=BC,dM=GC,pM=NC,pb=FC,fM=$C,mM=(p,y,w)=>{const I=new Map,z={platform:sM,...w},k={...z.platform,_c:I};return OC(p,y,{...z,platform:k})};var Zf=typeof document<"u"?zs:qi;function Wf(p,y){if(p===y)return!0;if(typeof p!=typeof y)return!1;if(typeof p=="function"&&p.toString()===y.toString())return!0;let w,I,z;if(p&&y&&typeof p=="object"){if(Array.isArray(p)){if(w=p.length,w!==y.length)return!1;for(I=w;I--!==0;)if(!Wf(p[I],y[I]))return!1;return!0}if(z=Object.keys(p),w=z.length,w!==Object.keys(y).length)return!1;for(I=w;I--!==0;)if(!{}.hasOwnProperty.call(y,z[I]))return!1;for(I=w;I--!==0;){const k=z[I];if(!(k==="_owner"&&p.$$typeof)&&!Wf(p[k],y[k]))return!1}return!0}return p!==p&&y!==y}function fb(p){return typeof window>"u"?1:(p.ownerDocument.defaultView||window).devicePixelRatio||1}function mb(p,y){const w=fb(p);return Math.round(y*w)/w}function _b(p){const y=Ri(p);return Zf(()=>{y.current=p}),y}function _M(p){p===void 0&&(p={});const{placement:y="bottom",strategy:w="absolute",middleware:I=[],platform:z,elements:{reference:k,floating:B}={},transform:o=!0,whileElementsMounted:J,open:oe}=p,[be,ae]=Fi({x:0,y:0,strategy:w,placement:y,middlewareData:{},isPositioned:!1}),[Se,ye]=Fi(I);Wf(Se,I)||ye(I);const[De,ve]=Fi(null),[ze,Ee]=Fi(null),tt=Ur(oi=>{oi!==xt.current&&(xt.current=oi,ve(oi))},[]),at=Ur(oi=>{oi!==Wt.current&&(Wt.current=oi,Ee(oi))},[]),Ke=k||De,pt=B||ze,xt=Ri(null),Wt=Ri(null),Ot=Ri(be),ui=J!=null,Si=_b(J),ni=_b(z),Mi=Ur(()=>{if(!xt.current||!Wt.current)return;const oi={placement:y,strategy:w,middleware:Se};ni.current&&(oi.platform=ni.current),mM(xt.current,Wt.current,oi).then(Wi=>{const or={...Wi,isPositioned:!0};gi.current&&!Wf(Ot.current,or)&&(Ot.current=or,od(()=>{ae(or)}))})},[Se,y,w,ni]);Zf(()=>{oe===!1&&Ot.current.isPositioned&&(Ot.current.isPositioned=!1,ae(oi=>({...oi,isPositioned:!1})))},[oe]);const gi=Ri(!1);Zf(()=>(gi.current=!0,()=>{gi.current=!1}),[]),Zf(()=>{if(Ke&&(xt.current=Ke),pt&&(Wt.current=pt),Ke&&pt){if(Si.current)return Si.current(Ke,pt,Mi);Mi()}},[Ke,pt,Mi,Si,ui]);const Bt=fn(()=>({reference:xt,floating:Wt,setReference:tt,setFloating:at}),[tt,at]),Yt=fn(()=>({reference:Ke,floating:pt}),[Ke,pt]),Gt=fn(()=>{const oi={position:w,left:0,top:0};if(!Yt.floating)return oi;const Wi=mb(Yt.floating,be.x),or=mb(Yt.floating,be.y);return o?{...oi,transform:"translate("+Wi+"px, "+or+"px)",...fb(Yt.floating)>=1.5&&{willChange:"transform"}}:{position:w,left:Wi,top:or}},[w,o,Yt.floating,be.x,be.y]);return fn(()=>({...be,update:Mi,refs:Bt,elements:Yt,floatingStyles:Gt}),[be,Mi,Bt,Yt,Gt])}const gM=p=>{function y(w){return{}.hasOwnProperty.call(w,"current")}return{name:"arrow",options:p,fn(w){const{element:I,padding:z}=typeof p=="function"?p(w):p;return I&&y(I)?I.current!=null?pb({element:I.current,padding:z}).fn(w):{}:I?pb({element:I,padding:z}).fn(w):{}}}},yM=(p,y)=>({...cM(p),options:[p,y]}),vM=(p,y)=>({...uM(p),options:[p,y]}),xM=(p,y)=>({...fM(p),options:[p,y]}),bM=(p,y)=>({...hM(p),options:[p,y]}),wM=(p,y)=>({...dM(p),options:[p,y]}),TM=(p,y)=>({...pM(p),options:[p,y]}),SM=(p,y)=>({...gM(p),options:[p,y]});function EM(p){const[y,w]=Fi(void 0);return mu(()=>{if(p){w({width:p.offsetWidth,height:p.offsetHeight});const I=new ResizeObserver(z=>{if(!Array.isArray(z)||!z.length)return;const k=z[0];let B,o;if("borderBoxSize"in k){const J=k.borderBoxSize,oe=Array.isArray(J)?J[0]:J;B=oe.inlineSize,o=oe.blockSize}else B=p.offsetWidth,o=p.offsetHeight;w({width:B,height:o})});return I.observe(p,{box:"border-box"}),()=>I.unobserve(p)}else w(void 0)},[p]),y}const gb="Popper",[yb,vb]=iy(gb),[AM,xb]=yb(gb),IM=p=>{const{__scopePopper:y,children:w}=p,[I,z]=Fi(null);return Jt(AM,{scope:y,anchor:I,onAnchorChange:z},w)},CM="PopperAnchor",MM=on((p,y)=>{const{__scopePopper:w,virtualRef:I,...z}=p,k=xb(CM,w),B=Ri(null),o=Os(y,B);return qi(()=>{k.onAnchorChange((I==null?void 0:I.current)||B.current)}),I?null:Jt(tl.div,sn({},z,{ref:o}))}),bb="PopperContent",[PM,p5]=yb(bb),DM=on((p,y)=>{var w,I,z,k,B,o,J,oe;const{__scopePopper:be,side:ae="bottom",sideOffset:Se=0,align:ye="center",alignOffset:De=0,arrowPadding:ve=0,avoidCollisions:ze=!0,collisionBoundary:Ee=[],collisionPadding:tt=0,sticky:at="partial",hideWhenDetached:Ke=!1,updatePositionStrategy:pt="optimized",onPlaced:xt,...Wt}=p,Ot=xb(bb,be),[ui,Si]=Fi(null),ni=Os(y,wr=>Si(wr)),[Mi,gi]=Fi(null),Bt=EM(Mi),Yt=(w=Bt==null?void 0:Bt.width)!==null&&w!==void 0?w:0,Gt=(I=Bt==null?void 0:Bt.height)!==null&&I!==void 0?I:0,oi=ae+(ye!=="center"?"-"+ye:""),Wi=typeof tt=="number"?tt:{top:0,right:0,bottom:0,left:0,...tt},or=Array.isArray(Ee)?Ee:[Ee],Ei=or.length>0,$r={padding:Wi,boundary:or.filter(RM),altBoundary:Ei},{refs:vn,floatingStyles:Kn,placement:po,isPositioned:Ui,middlewareData:Xi}=_M({strategy:"fixed",placement:oi,whileElementsMounted:(...wr)=>lM(...wr,{animationFrame:pt==="always"}),elements:{reference:Ot.anchor},middleware:[yM({mainAxis:Se+Gt,alignmentAxis:De}),ze&&vM({mainAxis:!0,crossAxis:!1,limiter:at==="partial"?xM():void 0,...$r}),ze&&bM({...$r}),wM({...$r,apply:({elements:wr,rects:Br,availableWidth:In,availableHeight:Gr})=>{const{width:Dr,height:an}=Br.reference,Fn=wr.floating.style;Fn.setProperty("--radix-popper-available-width",`${In}px`),Fn.setProperty("--radix-popper-available-height",`${Gr}px`),Fn.setProperty("--radix-popper-anchor-width",`${Dr}px`),Fn.setProperty("--radix-popper-anchor-height",`${an}px`)}}),Mi&&SM({element:Mi,padding:ve}),zM({arrowWidth:Yt,arrowHeight:Gt}),Ke&&TM({strategy:"referenceHidden",...$r})]}),[Lr,$o]=wb(po),gr=el(xt);mu(()=>{Ui&&(gr==null||gr())},[Ui,gr]);const Jn=(z=Xi.arrow)===null||z===void 0?void 0:z.x,ao=(k=Xi.arrow)===null||k===void 0?void 0:k.y,tr=((B=Xi.arrow)===null||B===void 0?void 0:B.centerOffset)!==0,[Ti,un]=Fi();return mu(()=>{ui&&un(window.getComputedStyle(ui).zIndex)},[ui]),Jt("div",{ref:vn.setFloating,"data-radix-popper-content-wrapper":"",style:{...Kn,transform:Ui?Kn.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ti,"--radix-popper-transform-origin":[(o=Xi.transformOrigin)===null||o===void 0?void 0:o.x,(J=Xi.transformOrigin)===null||J===void 0?void 0:J.y].join(" ")},dir:p.dir},Jt(PM,{scope:be,placedSide:Lr,onArrowChange:gi,arrowX:Jn,arrowY:ao,shouldHideArrow:tr},Jt(tl.div,sn({"data-side":Lr,"data-align":$o},Wt,{ref:ni,style:{...Wt.style,animation:Ui?void 0:"none",opacity:(oe=Xi.hide)!==null&&oe!==void 0&&oe.referenceHidden?0:void 0}}))))});function RM(p){return p!==null}const zM=p=>({name:"transformOrigin",options:p,fn(y){var w,I,z,k,B;const{placement:o,rects:J,middlewareData:oe}=y,ae=((w=oe.arrow)===null||w===void 0?void 0:w.centerOffset)!==0,Se=ae?0:p.arrowWidth,ye=ae?0:p.arrowHeight,[De,ve]=wb(o),ze={start:"0%",center:"50%",end:"100%"}[ve],Ee=((I=(z=oe.arrow)===null||z===void 0?void 0:z.x)!==null&&I!==void 0?I:0)+Se/2,tt=((k=(B=oe.arrow)===null||B===void 0?void 0:B.y)!==null&&k!==void 0?k:0)+ye/2;let at="",Ke="";return De==="bottom"?(at=ae?ze:`${Ee}px`,Ke=`${-ye}px`):De==="top"?(at=ae?ze:`${Ee}px`,Ke=`${J.floating.height+ye}px`):De==="right"?(at=`${-ye}px`,Ke=ae?ze:`${tt}px`):De==="left"&&(at=`${J.floating.width+ye}px`,Ke=ae?ze:`${tt}px`),{data:{x:at,y:Ke}}}});function wb(p){const[y,w="center"]=p.split("-");return[y,w]}const LM=IM,kM=MM,OM=DM,Tb="Popover",[Sb,f5]=iy(Tb,[vb]),Ey=vb(),[FM,Eu]=Sb(Tb),BM=p=>{const{__scopePopover:y,children:w,open:I,defaultOpen:z,onOpenChange:k,modal:B=!1}=p,o=Ey(y),J=Ri(null),[oe,be]=Fi(!1),[ae=!1,Se]=y1({prop:I,defaultProp:z,onChange:k});return Jt(LM,o,Jt(FM,{scope:y,contentId:Pf(),triggerRef:J,open:ae,onOpenChange:Se,onOpenToggle:Ur(()=>Se(ye=>!ye),[Se]),hasCustomAnchor:oe,onCustomAnchorAdd:Ur(()=>be(!0),[]),onCustomAnchorRemove:Ur(()=>be(!1),[]),modal:B},w))},NM="PopoverTrigger",jM=on((p,y)=>{const{__scopePopover:w,...I}=p,z=Eu(NM,w),k=Ey(w),B=Os(y,z.triggerRef),o=Jt(tl.button,sn({type:"button","aria-haspopup":"dialog","aria-expanded":z.open,"aria-controls":z.contentId,"data-state":Ib(z.open)},I,{ref:B,onClick:ls(p.onClick,z.onOpenToggle)}));return z.hasCustomAnchor?o:Jt(kM,sn({asChild:!0},k),o)}),Eb="PopoverPortal",[VM,UM]=Sb(Eb,{forceMount:void 0}),$M=p=>{const{__scopePopover:y,forceMount:w,children:I,container:z}=p,k=Eu(Eb,y);return Jt(VM,{scope:y,forceMount:w},Jt(_u,{present:w||k.open},Jt(M1,{asChild:!0,container:z},I)))},_d="PopoverContent",GM=on((p,y)=>{const w=UM(_d,p.__scopePopover),{forceMount:I=w.forceMount,...z}=p,k=Eu(_d,p.__scopePopover);return Jt(_u,{present:I||k.open},k.modal?Jt(HM,sn({},z,{ref:y})):Jt(qM,sn({},z,{ref:y})))}),HM=on((p,y)=>{const w=Eu(_d,p.__scopePopover),I=Ri(null),z=Os(y,I),k=Ri(!1);return qi(()=>{const B=I.current;if(B)return Z1(B)},[]),Jt(H1,{as:Df,allowPinchZoom:!0},Jt(Ab,sn({},p,{ref:z,trapFocus:w.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ls(p.onCloseAutoFocus,B=>{var o;B.preventDefault(),k.current||(o=w.triggerRef.current)===null||o===void 0||o.focus()}),onPointerDownOutside:ls(p.onPointerDownOutside,B=>{const o=B.detail.originalEvent,J=o.button===0&&o.ctrlKey===!0,oe=o.button===2||J;k.current=oe},{checkForDefaultPrevented:!1}),onFocusOutside:ls(p.onFocusOutside,B=>B.preventDefault(),{checkForDefaultPrevented:!1})})))}),qM=on((p,y)=>{const w=Eu(_d,p.__scopePopover),I=Ri(!1),z=Ri(!1);return Jt(Ab,sn({},p,{ref:y,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:k=>{var B;if((B=p.onCloseAutoFocus)===null||B===void 0||B.call(p,k),!k.defaultPrevented){var o;I.current||(o=w.triggerRef.current)===null||o===void 0||o.focus(),k.preventDefault()}I.current=!1,z.current=!1},onInteractOutside:k=>{var B,o;(B=p.onInteractOutside)===null||B===void 0||B.call(p,k),k.defaultPrevented||(I.current=!0,k.detail.originalEvent.type==="pointerdown"&&(z.current=!0));const J=k.target;((o=w.triggerRef.current)===null||o===void 0?void 0:o.contains(J))&&k.preventDefault(),k.detail.originalEvent.type==="focusin"&&z.current&&k.preventDefault()}}))}),Ab=on((p,y)=>{const{__scopePopover:w,trapFocus:I,onOpenAutoFocus:z,onCloseAutoFocus:k,disableOutsidePointerEvents:B,onEscapeKeyDown:o,onPointerDownOutside:J,onFocusOutside:oe,onInteractOutside:be,...ae}=p,Se=Eu(_d,w),ye=Ey(w);return P1(),Jt(S1,{asChild:!0,loop:!0,trapped:I,onMountAutoFocus:z,onUnmountAutoFocus:k},Jt(x1,{asChild:!0,disableOutsidePointerEvents:B,onInteractOutside:be,onEscapeKeyDown:o,onPointerDownOutside:J,onFocusOutside:oe,onDismiss:()=>Se.onOpenChange(!1)},Jt(OM,sn({"data-state":Ib(Se.open),role:"dialog",id:Se.contentId},ye,ae,{ref:y,style:{...ae.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 Ib(p){return p?"open":"closed"}const ZM=BM,WM=jM,XM=$M,YM=GM,Cb=p=>{var w;const y=Number((w=p.match(/\d/g))==null?void 0:w.join(""));return Number.isNaN(y)?0:y},KM=(p,y={by:"results-count",order:"descending"})=>{const w=[...p];switch(y.by){case"results-count":w.sort((I,z)=>I.jobs-z.jobs);break;case"alphabetically":w.sort((I,z)=>I.label.localeCompare(z.label));break;case"numerically":w.sort((I,z)=>{const k=Cb(I.value),B=Cb(z.value);return k-B});break}return y.order==="descending"&&w.reverse(),w},gd=Uo({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}}),Mb=Uo({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"}}),Pb=Uo({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"}}}),Db=Uo({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}}),JM=Uo({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"}}}),QM=({children:p,colorScheme:y})=>ue("span",{class:JM({colorScheme:y}),children:ue("span",{class:"block w-[3ch] text-center tabular-nums",children:p})}),eP=(p,y)=>{const w=p.indexOf(y);return w===-1?[...p,y]:p.filter((I,z)=>z!==w)},tP=(p,y)=>{if(p===null)return!1;const w=p[y.value];return w===void 0?!0:w===0},iP=(p,y)=>{const w=I=>I>99?"99+":I.toString();return w(p===null?y.jobs:p[y.value]??0)},rP=({value:p,property:y,useQuery:w,isMobile:I,onValueChange:z,onClose:k})=>{const{t:B}=On(),o=id(w()),J=fn(()=>{switch(o.queryState){case"error":case"idle":case"loading":return null;case"loaded":case"revalidating":{const ye=o.data[y.key]??[];return Object.fromEntries(ye.map(De=>[De.value,De.jobs]))}default:jo(o)}},[o,y.key]),oe=Ob(p),be=oe.length>0,[ae,Se]=Fi();return ue("div",{class:"theme-fill:bg-neutral-1 flex min-h-0 w-full flex-1 flex-col",children:[y.searchable&&ue("div",{class:"border-b-px border-neutral-4",children:ue("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:ae,onInput:ye=>Se(ye.currentTarget.value),placeholder:B("type_to_search")})}),(()=>{switch(o.queryState){case"error":return ue(Ja,{error:new Error(B("filters_loading_error"),{cause:o.error}),class:"flex-1",resetError:()=>o.swr.mutate()});case"idle":case"loading":return ue("div",{"aria-hidden":!0,class:"flex flex-col p-2",children:Array.from({length:10}).map((ye,De)=>ue("div",{style:{animationDelay:De*-.1+"s"},class:"bg-neutral-3 animate-skeleton h-12 w-full"},De))});case"revalidating":case"loaded":{const ye=o.data[y.key]??[],De=ae&&ae.length>1?ye.filter(Ee=>Ee.label.toLowerCase().includes(ae.toLowerCase())):ye,ve=[];for(const Ee of De){if(Ee.label.length<1)continue;const tt={...Ee,results:iP(J,Ee),disabled:tP(J,Ee)};switch(y.results){case"only-available":tt.disabled===!1&&ve.push(tt);break;default:ve.push(tt)}}return ve.find(Ee=>!Ee.disabled)?ue("ul",{class:Mb(),children:KM(ve,y.sortSuggestions).map(Ee=>{const tt=oe.includes(Ee.value);return ue("li",{class:Pb({type:"line"}),children:ue("button",{type:"button",disabled:Ee.disabled,"data-filter":!0,"data-current-value":tt?"true":void 0,onClick:()=>{switch(p.select){case"many":{const at=eP(oe,Ee.value);z({select:"many",value:at});break}case"one":z({select:"one",value:tt?void 0:Ee.value});break;default:jo(p)}},class:Db({active:tt,disabled:Ee.disabled}),children:[ue("span",{class:"max-w-full truncate",children:Ee.label})," ",ue(QM,{colorScheme:tt?"accentStrong":"neutralStrong",children:Ee.results})]})},Ee.value)})}):ue("p",{class:"font-style-tag text-style-tag font-weight-tag w-full flex-1 px-4 pb-1 pt-4 text-center",children:B("no_filter_options_available")})}default:jo(o)}})(),ue("footer",{class:"flex flex-none justify-end p-2",children:[ue("div",{class:"flex-1",children:be&&ue("button",{type:"button",class:da({variant:"neutral",icon:"left"}),onClick:()=>{z(void 0)},children:[ue(An,{"aria-hidden":!0,name:"x"})," ",B("clear")]})}),p.select==="many"&&I&&ue("div",{class:"flex items-center overflow-hidden",children:ue("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:[oe.length," ",B("selected")]})}),ue("div",{class:"flex-1",children:ue("button",{type:"button",class:da({variant:be?"accent":"neutral",class:"ml-auto"}),onClick:k,children:B(be?"done":"close")},be?"done":"close")})]})]})},Rb=8,zb={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"},Lb=Uo({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"}}}),kb=Uo({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"}}}),Ob=p=>typeof p.value=="string"?[p.value]:p.value??[],nP=({selectedValues:p})=>{const y=p.length;return y===0?null:ue("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:y},y)},oP=({active:p,value:y,onActiveChange:w,property:I,onValueChange:z,unfilteredQuery:k,useQuery:B,theme:o,widgetId:J})=>{const oe=ec(I.key,zb)?zb[I.key]:void 0,be=I.icon??oe??"filter",ae=Ob(y),Se=ae.length>0,ye=_1("(pointer: coarse)"),De=ue(er,{children:[ue("div",{class:"flex min-w-0 flex-1 items-center gap-1.5",children:[ue(An,{"aria-hidden":!0,class:"flex-none",name:be}),ue("span",{class:"truncate",children:I.label})]}),ue(An,{"aria-hidden":!0,class:"text-neutral-8 flex-shrink-0 rotate-90 transition-transform group-data-[state=open]:-rotate-90",name:"chevron-right"}),ue(nP,{selectedValues:ae})]}),ve=ue(rP,{useQuery:B,onClose:()=>w(!1),onValueChange:z,unfilteredQuery:k,property:I,value:y,isMobile:ye});return ye?ue(TC,{open:p,onOpenChange:w,children:[ue(SC,{"data-filter-key":I.key,"aria-label":I.label,"aria-selected":p?"true":void 0,class:Lb({state:p||Se?"active":"default"}),onTouchStart:sP,children:De}),ue(EC,{children:ue("div",{class:"inploi-job-search","data-widget-id":J,children:[ue(AC,{class:"animate-fade-in fixed inset-0 z-50 bg-[#0009]"}),ue(IC,{class:kb({mode:"mobile",class:ey(o)}),children:[ue("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:[ue(An,{name:be,class:"flex-none"}),ue("p",{class:"font-style-filter font-weight-filter text-style-filter truncate",children:I.label})]}),ve]})]})})]}):ue(ZM,{open:p,onOpenChange:ze=>w(ze),modal:ye,children:[ue(WM,{"data-filter-key":I.key,"aria-label":I.label,"aria-selected":p?"true":void 0,class:Lb({state:p||Se?"active":"default"}),children:De}),ue(XM,{children:ue("div",{class:"inploi-job-search","data-widget-id":J,children:ue(YM,{side:"bottom",sideOffset:Rb,align:"center",collisionPadding:Rb,class:kb({mode:"desktop",class:ey(o)}),children:ve})})})]})};function sP(){}const aP=(p,y)=>{var w,I,z;switch(y.select){case"many":(w=y.value)==null||w.forEach(k=>{var B,o;switch(p.select){case"many":(B=p.value)!=null&&B.includes(k)||(o=p.value)==null||o.push(k);break;case"one":p.value=k}});break;case"one":if(!y.value)break;switch(p.select){case"many":(I=p.value)!=null&&I.includes(y.value)||(z=p.value)==null||z.push(y.value);break;case"one":p.value=y.value}break}},lP=({value:p,activeKey:y})=>{switch(p==null?void 0:p.select){case void 0:return{newValue:void 0,newActiveKey:y};case"one":case"many":return{newValue:p,newActiveKey:y};default:jo(p)}},cP=({properties:p,state:y,onFilterValueChange:w,onResetFilters:I,rpcClient:z,theme:k,alerts:B,widgetId:o})=>{const{t:J}=On(),[oe,be]=Fi(void 0),ae=fn(()=>({filters:zy(p,"value"),mode:y.mode,query:"",geo:void 0,page:1,view:"list"}),[p,y.mode]),Se=id(hd(ty({state:ae,baseKey:"filters"}),()=>ux({rpcClient:z,state:ae}),yf)),ye=Ur(De=>()=>{const ve={...y,filters:{...y.filters,[De]:ae.filters[De]}};return hd(ty({state:ve,baseKey:"filters"}),()=>ux({rpcClient:z,state:ve}),yf)},[z,ae.filters,y]);return Se.queryState==="error"?ue(Ja,{error:new Error(J("filters_loading_error"),{cause:Se.error}),resetError:()=>Se.swr.mutate()}):ue("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(De=>De.hidden!==!0).map(De=>{const ve=oe===De.key,ze=y.filters[De.key]??{select:De.select,value:void 0},Ee=ae.filters[De.key];Ee&&aP(ze,Ee);const tt=pt=>{const{newActiveKey:xt,newValue:Wt}=lP({property:De,activeKey:oe,value:pt??Ee,properties:p,appliedFilters:y.filters});return be(xt),w(De.key,Wt)},at=pt=>be(pt?De.key:void 0),Ke=ye(De.key);return ue(nd,{Fallback:Ja,children:ue(oP,{unfilteredQuery:Se,active:ve,property:De,onActiveChange:at,value:ze,useQuery:Ke,onValueChange:tt,theme:k,widgetId:o})},De.key)}),ue("button",{type:"button",class:da({variant:"neutral"}),onClick:I,children:J("reset")}),B?ue("div",{id:"inploi-job-alerts",class:"min-h-[36px]",children:ue("div",{class:"rounded-job-card bg-neutral-2 flex h-[36px] animate-pulse items-center gap-2 px-2",children:[ue("div",{class:"block h-6 w-6"}),ue("p",{class:"text-style-tag text-neutral-6 pr-2 font-[500]",children:B.params.config.label})]})}):null]})};function uP(p){var y=typeof p;return p!=null&&(y=="object"||y=="function")}var Xf=uP,hP=typeof ad=="object"&&ad&&ad.Object===Object&&ad,dP=hP,pP=dP,fP=typeof self=="object"&&self&&self.Object===Object&&self,mP=pP||fP||Function("return this")(),Yf=mP,_P=Yf,gP=function(){return _P.Date.now()},yP=gP,vP=/\s/;function xP(p){for(var y=p.length;y--&&vP.test(p.charAt(y)););return y}var bP=xP,wP=bP,TP=/^\s+/;function SP(p){return p&&p.slice(0,wP(p)+1).replace(TP,"")}var EP=SP,AP=Yf,IP=AP.Symbol,Ay=IP,Fb=Ay,Bb=Object.prototype,CP=Bb.hasOwnProperty,MP=Bb.toString,yd=Fb?Fb.toStringTag:void 0;function PP(p){var y=CP.call(p,yd),w=p[yd];try{p[yd]=void 0;var I=!0}catch{}var z=MP.call(p);return I&&(y?p[yd]=w:delete p[yd]),z}var DP=PP,RP=Object.prototype,zP=RP.toString;function LP(p){return zP.call(p)}var kP=LP,Nb=Ay,OP=DP,FP=kP,BP="[object Null]",NP="[object Undefined]",jb=Nb?Nb.toStringTag:void 0;function jP(p){return p==null?p===void 0?NP:BP:jb&&jb in Object(p)?OP(p):FP(p)}var Vb=jP;function VP(p){return p!=null&&typeof p=="object"}var UP=VP,$P=Vb,GP=UP,HP="[object Symbol]";function qP(p){return typeof p=="symbol"||GP(p)&&$P(p)==HP}var Kf=qP,ZP=EP,Ub=Xf,WP=Kf,$b=0/0,XP=/^[-+]0x[0-9a-f]+$/i,YP=/^0b[01]+$/i,KP=/^0o[0-7]+$/i,JP=parseInt;function QP(p){if(typeof p=="number")return p;if(WP(p))return $b;if(Ub(p)){var y=typeof p.valueOf=="function"?p.valueOf():p;p=Ub(y)?y+"":y}if(typeof p!="string")return p===0?p:+p;p=ZP(p);var w=YP.test(p);return w||KP.test(p)?JP(p.slice(2),w?2:8):XP.test(p)?$b:+p}var eD=QP,tD=Xf,Iy=yP,Gb=eD,iD="Expected a function",rD=Math.max,nD=Math.min;function oD(p,y,w){var I,z,k,B,o,J,oe=0,be=!1,ae=!1,Se=!0;if(typeof p!="function")throw new TypeError(iD);y=Gb(y)||0,tD(w)&&(be=!!w.leading,ae="maxWait"in w,k=ae?rD(Gb(w.maxWait)||0,y):k,Se="trailing"in w?!!w.trailing:Se);function ye(xt){var Wt=I,Ot=z;return I=z=void 0,oe=xt,B=p.apply(Ot,Wt),B}function De(xt){return oe=xt,o=setTimeout(Ee,y),be?ye(xt):B}function ve(xt){var Wt=xt-J,Ot=xt-oe,ui=y-Wt;return ae?nD(ui,k-Ot):ui}function ze(xt){var Wt=xt-J,Ot=xt-oe;return J===void 0||Wt>=y||Wt<0||ae&&Ot>=k}function Ee(){var xt=Iy();if(ze(xt))return tt(xt);o=setTimeout(Ee,ve(xt))}function tt(xt){return o=void 0,Se&&I?ye(xt):(I=z=void 0,B)}function at(){o!==void 0&&clearTimeout(o),oe=0,I=J=z=o=void 0}function Ke(){return o===void 0?B:tt(Iy())}function pt(){var xt=Iy(),Wt=ze(xt);if(I=arguments,z=this,J=xt,Wt){if(o===void 0)return De(J);if(ae)return clearTimeout(o),o=setTimeout(Ee,y),ye(J)}return o===void 0&&(o=setTimeout(Ee,y)),B}return pt.cancel=at,pt.flush=Ke,pt}var sD=oD;const aD=zg(sD),Hb=(p,y=1e3)=>{const[w,I]=Fi(p),z=fn(()=>aD(k=>I(k),y),[y]);return qi(()=>{z(p)},[p,z]),w},lD=on(({disabled:p,error:y,name:w,inputPlaceholder:I,items:z,onItemSelect:k,onQueryChange:B,onBlur:o,onFocus:J,inputProps:oe,menuProps:be,query:ae},Se)=>{const[ye,De]=Fi(!1),[ve,ze]=Fi(),{t:Ee}=On(),tt=Ri();qi(()=>{var Ke;ze((Ke=z[0])==null?void 0:Ke.id)},[z]);const at=Ke=>{k(Ke),De(!1)};return ue("div",{class:"relative h-full",children:[ue("input",{name:w,ref:Se,disabled:p,"data-active":ye?"true":void 0,"aria-controls":`ijs-${w}-menu`,placeholder:I,class:gd({size:"md"}),onFocus:()=>{J==null||J(),De(!0)},onBlur:()=>{tt.current=window.setTimeout(()=>{o==null||o(),De(!1)},100)},value:ae,onChange:Ke=>B(Ke.currentTarget.value),onKeyDown:Ke=>{switch(De(!0),Ke.key){case"ArrowDown":case"ArrowUp":{const pt=Ke.key==="ArrowDown"?1:-1;Ke.preventDefault();const xt=z.findIndex(Ot=>Ot.id===ve);if(xt===-1)return;const Wt=z[xt+pt]??z[Ke.key==="ArrowDown"?0:z.length-1];if(!Wt)return;ze(Wt.id);break}case"Enter":{if(Ke.preventDefault(),!ve)return;k(ve)}}},...oe}),!y&&ye&&!p&&z.length>0?ue("ul",{className:Mb({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-${w}-menu`,onMouseDown:()=>{tt.current&&clearTimeout(tt.current)},...be,children:y?ue("div",{role:"alert",children:Ee("geo_suggestions_error")}):z.map(Ke=>ue("li",{class:Pb({type:"line",className:"group/tag"}),children:ue("button",{type:"button",onMouseEnter:()=>ze(Ke.id),class:Db({active:Ke.id===ve,className:"line-clamp-1 overflow-hidden truncate"}),onClick:()=>at(Ke.id),onKeyDown:pt=>{pt.key==="Enter"&&at(Ke.id)},children:Ke.label})},Ke.id))}):null]})}),cD=(p={})=>new Promise((y,w)=>{var I,z;if((I=p.signal)!=null&&I.aborted){w(new DOMException("Aborted","AbortError"));return}navigator.geolocation.getCurrentPosition(k=>y(k.coords),k=>w(k),p),(z=p.signal)==null||z.addEventListener("abort",()=>{w(new DOMException("Aborted","AbortError"))},{once:!0})}),uD={1:"geo_error_permission_denied",2:"geo_error_position_unavailable",3:"geo_error_timeout"},qb=typeof window<"u"&&"geolocation"in navigator&&window.isSecureContext,hD=({onLocate:p,onError:y,signal:w})=>{const[I,z]=Fi("idle"),[k,B]=Fi(null),{t:o}=On(),J=oe=>{z("idle"),B(oe),p(oe)};return ue("button",{"aria-label":o(I==="loading"?"geo_locating":"geo_my_location"),type:"button",onClick:()=>{if(qb){if(z("loading"),k)return J(k);cD({signal:w}).then(oe=>{const be={lat:oe.latitude,lng:oe.longitude};J(be)}).catch(oe=>{if(oe instanceof DOMException&&oe.name==="AbortError")return z("idle");z("error");const be=uD[oe.code];if(!be)return;const ae=o(be);y(ae)})}},"data-state":I,class:da({variant:"accent",size:"lg",icon:"only",className:"data-[state=loading]:animate-pulse"}),disabled:!qb||I==="error",children:ue(An,{name:"target-location"})})},Au=Uo({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}}),dD="https://api.mapbox.com/search/geocode/v6/forward",pD="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",fD=p=>atob(p).split("").reverse().join(""),mD=Eo({features:td(ss(Eo({properties:Eo({mapbox_id:nn(),place_formatted:nc(nn()),name_preferred:nc(nn(),"Untitled location"),coordinates:ss(Eo({latitude:os(),longitude:os()}),ns(({latitude:p,longitude:y})=>({lat:p,lng:y})))})}),ns(p=>p.properties)))}),_D=(p,y)=>Array.from(new Map(p.map(w=>[typeof y=="function"?y(w):w[y],w])).values()),gD=async p=>{if(!p)return[];const y=new URL(dD);y.searchParams.set("q",p),y.searchParams.set("proximity","ip"),y.searchParams.set("access_token",fD(pD));const w=await fetch(y);if(!w.ok)throw new Error("Failed to get address details");const I=gg(mD,await w.json());if(I.success===!1)throw console.error(I.issues),new Error("Invalid data");const{features:z}=I.output;return _D(z,k=>k.name_preferred+k.place_formatted)},yD=({onSelect:p,onValueChange:y,coords:w,radius:I,onError:z})=>{const{t:k}=On(),[B,o]=Fi(""),[J,oe]=Fi(),be=Hb(B,500),[ae,Se]=Fi(new AbortController),ye=hd(be,gD,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:De,queryState:ve,error:ze}=id(ye),[Ee,tt]=Fi("view"),at=Ri(null);return qi(()=>{if(Ee==="edit"){if(!at.current)return;at.current.focus()}},[Ee]),ue("div",{class:"relative flex-1",children:[Ee==="view"&&w?ue("button",{"aria-label":k("geo_search_placeholder"),type:"button",class:gd({size:"unsized",className:"flex h-10 w-full cursor-text items-stretch px-1 py-1"}),onClick:()=>{tt("edit")},children:ue("div",{class:Au({size:"sm",variant:"accentStrong",interactive:!0,class:"truncate"}),children:J??k("location_provided")})}):ue(lD,{ref:at,error:ze,query:B,name:"location-search",onQueryChange:o,onFocus:()=>{ae.abort(),Se(new AbortController)},onBlur:()=>{tt("view"),o("")},onItemSelect:Ke=>{if(ve!=="loaded")return;const pt=De.find(xt=>xt.mapbox_id===Ke);pt&&(p(pt.coordinates),tt("view"),oe(pt.name_preferred))},inputPlaceholder:k("geo_search_placeholder"),items:(De==null?void 0:De.map(Ke=>({id:Ke.mapbox_id,label:ue("div",{class:"flex min-w-0 max-w-full gap-2 overflow-hidden",children:[ue("strong",{class:"truncate",children:Ke.name_preferred})," ",ue("span",{class:"flex-1 truncate opacity-50",children:Ke.place_formatted})]})})))??[]}),ue("div",{class:"absolute bottom-0 right-0 top-0 flex items-center",children:!B&&!w?ue(hD,{onLocate:Ke=>{tt("view"),oe(k("geo_my_location")),y({type:"provided",coords:Ke,radius:I})},onError:z,signal:ae.signal}):ue("button",{type:"button","aria-label":k("geo_clear_search"),onClick:()=>{o(""),oe(void 0),y({radius:I,type:"provided"}),tt("edit"),at.current&&(at.current.value="",at.current.focus())},class:da({variant:"neutral",size:"lg",icon:"only"}),children:ue(An,{name:"x"})})})]})},vD=[.25,.5,1,3,5,10,15,20,30,40],xD=20,Zb=p=>p*1609.34,bD=new Intl.NumberFormat(void 0,{style:"unit",unit:"mile",unitDisplay:"long",maximumFractionDigits:1,trailingZeroDisplay:"stripIfInteger"}),wD=ss(Eo({type:Rs("provided"),lat:nc(ss(nn(),ns(Number))),lng:nc(ss(nn(),ns(Number))),radius:ss(nn(),ns(Number))}),ns(p=>({radius:p.radius,type:p.type,coords:p.lat&&p.lng?{lat:p.lat,lng:p.lng}:void 0}))),TD=({value:p,onValueChange:y,logger:w})=>{const{t:I}=On(),z=xf(),k=(p==null?void 0:p.type)==="provided"?p.radius:Zb(xD),[B,o]=Fi();return ue("div",{class:"flex flex-col gap-2",children:[ue("form",{onChange:J=>{const oe=new FormData(J.currentTarget),be=gg(wD,Object.fromEntries(oe.entries()));if(!be.success){w.error(be.issues),o(be.issues[0].message);return}y(be.output)},class:"flex flex-col gap-2 md:flex-row",children:[ue("input",{type:"hidden",name:"type",value:"provided"}),(p==null?void 0:p.type)==="provided"&&p.coords?ue(er,{children:[ue("input",{type:"hidden",name:"lat",value:p.coords.lat}),ue("input",{type:"hidden",name:"lng",value:p.coords.lng})]}):null,ue(yD,{coords:(p==null?void 0:p.type)==="provided"?p.coords:void 0,radius:k,onValueChange:y,onSelect:J=>{o(void 0),y({type:"provided",radius:k,coords:J})},onError:o}),ue("div",{class:"relative",children:[ue("label",{class:"sr-only",for:z,children:I("geo_range_label")}),ue("select",{id:z,name:"radius",class:gd({size:"unsized",className:"w-full appearance-none truncate py-2 pl-3 pr-10"}),value:k,onChange:J=>{o(void 0),y({type:"provided",coords:(p==null?void 0:p.type)==="provided"?p.coords:void 0,radius:Number(J.currentTarget.value)})},children:vD.map(J=>ue("option",{value:Zb(J),class:"truncate",children:bD.format(J)},J))}),ue("div",{class:"text-copy-neutral-lowcontrast pointer-events-none absolute bottom-0 right-0 top-0 flex w-10 items-center justify-center",children:ue(An,{name:"chevron-right",class:"h-6 w-6 rotate-90"})})]})]}),B?ue("div",{role:"alert",class:"text-pretty text-copy-neutral font-style-tag font-weight-tag text-style-tag flex gap-1",children:[ue(An,{name:"warning",class:"animate-appear-tag size-[1lh] flex-none"}),B]}):null]})},SD=2,ED=({value:p,onValueChange:y})=>{const[w,I]=Fi(p??""),z=w!==""&&w===p,{t:k}=On();return qi(()=>{I(p??"")},[p]),qi(()=>{let B=w.trim();if(B.length<=SD&&(B=null),B===null){y("");return}const o=setTimeout(()=>{y(B)},300);return()=>clearTimeout(o)},[w,y]),ue("div",{class:"flex flex-col gap-3",children:ue("div",{class:"relative",children:[ue("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[ue(An,{"aria-hidden":!0,title:"Search by keyword",name:"magnifierSimple",class:uu({"text-copy-neutral-icon":!z,"text-copy-accent-icon":z})}),ue("span",{class:"sr-only",children:"Keyword"})]}),ue("input",{autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"search",class:gd({hasValue:z,size:"unsized",class:"peer py-2 pl-10 pr-4"}),placeholder:k("type_to_search_jobs"),value:w,onChange:B=>{I(B.currentTarget.value)}}),ue("button",{type:"button",class:da({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{I("")},children:ue(An,{name:"x"})})]})})},AD=({intervalMs:p,strings:y,class:w})=>{const[I,z]=Fi(0),[k,B]=Fi(!0),o=[...y,y[0]];return qi(()=>{I===o.length&&(B(!1),z(0));const J=setTimeout(()=>{B(!0),z(oe=>oe+1)},p);return()=>clearTimeout(J)},[I,o.length,p]),ue("div",{className:uu("relative h-full w-full overflow-hidden",w),children:ue("div",{className:uu("absolute w-full",{"transition-transform duration-500 ease-in-out":k}),style:{height:`${100*o.length}%`,transform:`translateY(-${I*(100/o.length)}%)`},children:o.map((J,oe)=>ue("div",{className:"flex items-center whitespace-nowrap",style:{height:`${100/o.length}%`},children:J},oe))})})},ID=(p,y)=>{qi(()=>{const w=I=>{document.activeElement===p.current&&y(I)};return document.addEventListener("selectionchange",w),()=>document.removeEventListener("selectionchange",w)},[p,y])},Wb=3,CD=({value:p,onValueChange:y,options:w})=>{const[I,z]=Fi(p??""),k=I.trim(),B=k!==""&&k===p,{t:o}=On(),J=k.split("");qi(()=>{z(p??"")},[p]);const[oe,be]=Fi(0),ae=Ri(null);return ID(ae,Se=>{Se.target instanceof HTMLInputElement&&be(Se.target.scrollLeft)}),qi(()=>{let Se=I.trim();if(Se.length<=Wb&&(Se=null),Se===null){y("");return}const ye=setTimeout(()=>{y(Se.trim())},1e3);return()=>clearTimeout(ye)},[I,y]),ue("div",{class:"mb-2 flex flex-col gap-2",children:[ue("div",{class:"relative",children:[ue("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[ue(An,{"aria-hidden":!0,title:"Search by keyword",name:"ai",class:uu("duration-snappy transition-transform",{"text-copy-neutral-icon scale-90":!B,"text-copy-accent-icon":B})}),ue("span",{class:"sr-only",children:"Keyword"})]}),ue("input",{ref:ae,autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"text",placeholder:w!=null&&w.suggestions?w.suggestions.join(", "):" ",class:gd({hasValue:B,size:"unsized",class:"peer px-10 py-2 tracking-tight !text-transparent placeholder:!text-transparent"}),style:{fontKerning:"none"},value:I,onChange:Se=>{const ye=Se.currentTarget.value.trim();z(ye)},onKeyDown:Se=>{if(Se.key==="Enter"){if(Se.currentTarget.value.trim().length<=Wb)return;Se.preventDefault(),y(I)}}}),ue("div",{"data-synced":B,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:k.length>0?ue("div",{"aria-hidden":!0,class:"flex items-center whitespace-nowrap",style:{transform:`translateX(${-oe}px)`},children:J.map((Se,ye)=>ue("span",{style:{animationDelay:`${ye*300/J.length}ms`},class:"group-data-[synced=true]:animate-ai-letter inline-block",children:Se===" "?" ":Se},k+ye))}):w!=null&&w.suggestions?ue(AD,{intervalMs:2e3,strings:w.suggestions,class:"opacity-30","aria-hidden":!0}):null}),ue("button",{type:"button",class:da({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{z(""),y("")},children:ue(An,{name:"x"})})]}),ue("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:o("ai_disclaimer")})]})};var MD=Array.isArray,Cy=MD,PD=Cy,DD=Kf,RD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zD=/^\w*$/;function LD(p,y){if(PD(p))return!1;var w=typeof p;return w=="number"||w=="symbol"||w=="boolean"||p==null||DD(p)?!0:zD.test(p)||!RD.test(p)||y!=null&&p in Object(y)}var kD=LD,OD=Vb,FD=Xf,BD="[object AsyncFunction]",ND="[object Function]",jD="[object GeneratorFunction]",VD="[object Proxy]";function UD(p){if(!FD(p))return!1;var y=OD(p);return y==ND||y==jD||y==BD||y==VD}var $D=UD,GD=Yf,HD=GD["__core-js_shared__"],qD=HD,My=qD,Xb=function(){var p=/[^.]+$/.exec(My&&My.keys&&My.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}();function ZD(p){return!!Xb&&Xb in p}var WD=ZD,XD=Function.prototype,YD=XD.toString;function KD(p){if(p!=null){try{return YD.call(p)}catch{}try{return p+""}catch{}}return""}var JD=KD,QD=$D,eR=WD,tR=Xf,iR=JD,rR=/[\\^$.*+?()[\]{}|]/g,nR=/^\[object .+?Constructor\]$/,oR=Function.prototype,sR=Object.prototype,aR=oR.toString,lR=sR.hasOwnProperty,cR=RegExp("^"+aR.call(lR).replace(rR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uR(p){if(!tR(p)||eR(p))return!1;var y=QD(p)?cR:nR;return y.test(iR(p))}var hR=uR;function dR(p,y){return p==null?void 0:p[y]}var pR=dR,fR=hR,mR=pR;function _R(p,y){var w=mR(p,y);return fR(w)?w:void 0}var Yb=_R,gR=Yb,yR=gR(Object,"create"),Jf=yR,Kb=Jf;function vR(){this.__data__=Kb?Kb(null):{},this.size=0}var xR=vR;function bR(p){var y=this.has(p)&&delete this.__data__[p];return this.size-=y?1:0,y}var wR=bR,TR=Jf,SR="__lodash_hash_undefined__",ER=Object.prototype,AR=ER.hasOwnProperty;function IR(p){var y=this.__data__;if(TR){var w=y[p];return w===SR?void 0:w}return AR.call(y,p)?y[p]:void 0}var CR=IR,MR=Jf,PR=Object.prototype,DR=PR.hasOwnProperty;function RR(p){var y=this.__data__;return MR?y[p]!==void 0:DR.call(y,p)}var zR=RR,LR=Jf,kR="__lodash_hash_undefined__";function OR(p,y){var w=this.__data__;return this.size+=this.has(p)?0:1,w[p]=LR&&y===void 0?kR:y,this}var FR=OR,BR=xR,NR=wR,jR=CR,VR=zR,UR=FR;function Iu(p){var y=-1,w=p==null?0:p.length;for(this.clear();++y<w;){var I=p[y];this.set(I[0],I[1])}}Iu.prototype.clear=BR,Iu.prototype.delete=NR,Iu.prototype.get=jR,Iu.prototype.has=VR,Iu.prototype.set=UR;var $R=Iu;function GR(){this.__data__=[],this.size=0}var HR=GR;function qR(p,y){return p===y||p!==p&&y!==y}var ZR=qR,WR=ZR;function XR(p,y){for(var w=p.length;w--;)if(WR(p[w][0],y))return w;return-1}var Qf=XR,YR=Qf,KR=Array.prototype,JR=KR.splice;function QR(p){var y=this.__data__,w=YR(y,p);if(w<0)return!1;var I=y.length-1;return w==I?y.pop():JR.call(y,w,1),--this.size,!0}var ez=QR,tz=Qf;function iz(p){var y=this.__data__,w=tz(y,p);return w<0?void 0:y[w][1]}var rz=iz,nz=Qf;function oz(p){return nz(this.__data__,p)>-1}var sz=oz,az=Qf;function lz(p,y){var w=this.__data__,I=az(w,p);return I<0?(++this.size,w.push([p,y])):w[I][1]=y,this}var cz=lz,uz=HR,hz=ez,dz=rz,pz=sz,fz=cz;function Cu(p){var y=-1,w=p==null?0:p.length;for(this.clear();++y<w;){var I=p[y];this.set(I[0],I[1])}}Cu.prototype.clear=uz,Cu.prototype.delete=hz,Cu.prototype.get=dz,Cu.prototype.has=pz,Cu.prototype.set=fz;var mz=Cu,_z=Yb,gz=Yf,yz=_z(gz,"Map"),vz=yz,Jb=$R,xz=mz,bz=vz;function wz(){this.size=0,this.__data__={hash:new Jb,map:new(bz||xz),string:new Jb}}var Tz=wz;function Sz(p){var y=typeof p;return y=="string"||y=="number"||y=="symbol"||y=="boolean"?p!=="__proto__":p===null}var Ez=Sz,Az=Ez;function Iz(p,y){var w=p.__data__;return Az(y)?w[typeof y=="string"?"string":"hash"]:w.map}var em=Iz,Cz=em;function Mz(p){var y=Cz(this,p).delete(p);return this.size-=y?1:0,y}var Pz=Mz,Dz=em;function Rz(p){return Dz(this,p).get(p)}var zz=Rz,Lz=em;function kz(p){return Lz(this,p).has(p)}var Oz=kz,Fz=em;function Bz(p,y){var w=Fz(this,p),I=w.size;return w.set(p,y),this.size+=w.size==I?0:1,this}var Nz=Bz,jz=Tz,Vz=Pz,Uz=zz,$z=Oz,Gz=Nz;function Mu(p){var y=-1,w=p==null?0:p.length;for(this.clear();++y<w;){var I=p[y];this.set(I[0],I[1])}}Mu.prototype.clear=jz,Mu.prototype.delete=Vz,Mu.prototype.get=Uz,Mu.prototype.has=$z,Mu.prototype.set=Gz;var Hz=Mu,Qb=Hz,qz="Expected a function";function Py(p,y){if(typeof p!="function"||y!=null&&typeof y!="function")throw new TypeError(qz);var w=function(){var I=arguments,z=y?y.apply(this,I):I[0],k=w.cache;if(k.has(z))return k.get(z);var B=p.apply(this,I);return w.cache=k.set(z,B)||k,B};return w.cache=new(Py.Cache||Qb),w}Py.Cache=Qb;var Zz=Py,Wz=Zz,Xz=500;function Yz(p){var y=Wz(p,function(I){return w.size===Xz&&w.clear(),I}),w=y.cache;return y}var Kz=Yz,Jz=Kz,Qz=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eL=/\\(\\)?/g,tL=Jz(function(p){var y=[];return p.charCodeAt(0)===46&&y.push(""),p.replace(Qz,function(w,I,z,k){y.push(z?k.replace(eL,"$1"):I||w)}),y}),iL=tL;function rL(p,y){for(var w=-1,I=p==null?0:p.length,z=Array(I);++w<I;)z[w]=y(p[w],w,p);return z}var nL=rL,ew=Ay,oL=nL,sL=Cy,aL=Kf,lL=1/0,tw=ew?ew.prototype:void 0,iw=tw?tw.toString:void 0;function rw(p){if(typeof p=="string")return p;if(sL(p))return oL(p,rw)+"";if(aL(p))return iw?iw.call(p):"";var y=p+"";return y=="0"&&1/p==-lL?"-0":y}var cL=rw,uL=cL;function hL(p){return p==null?"":uL(p)}var dL=hL,pL=Cy,fL=kD,mL=iL,_L=dL;function gL(p,y){return pL(p)?p:fL(p,y)?[p]:mL(_L(p))}var yL=gL,vL=Kf,xL=1/0;function bL(p){if(typeof p=="string"||vL(p))return p;var y=p+"";return y=="0"&&1/p==-xL?"-0":y}var wL=bL,TL=yL,SL=wL;function EL(p,y){y=TL(y,p);for(var w=0,I=y.length;p!=null&&w<I;)p=p[SL(y[w++])];return w&&w==I?p:void 0}var AL=EL,IL=AL;function CL(p,y,w){var I=p==null?void 0:IL(p,y);return I===void 0?w:I}var ML=CL;const PL=zg(ML),vd=({chars:p})=>ue("span",{style:{width:p+"ch"},class:"rounded-job-tag block h-[1lh] min-h-[1em] bg-[currentColor] opacity-25"}),nw=Uo({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}}),DL=Uo({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"}}),Dy=({job:p,property:y})=>{if(!y)return null;const w=PL(p.raw,y.key);return y.transform?y.transform(w):w},RL=({job:p,config:y="hidden"})=>y==="hidden"?null:ue("div",{class:"rounded-logo h-12 flex-none overflow-hidden",style:{aspectRatio:y.replace(":","/")},children:p.company.logo?ue("img",{src:p.company.logo,alt:p.company.name,class:"h-full w-full select-none object-contain [-webkit-user-drag:none]"}):null}),ow=p=>Array.isArray(p)?p:[p],zL=1e3*60*60*24,sw=({job:p,config:y,onJobClick:w,size:I})=>{var ye,De,ve;const{t:z}=On(),k=y.subheading?Dy({job:p,property:y.subheading}):null,B=y.infoTags.flatMap(ze=>ow(Dy({job:p,property:ze}))).filter(Boolean),o=ow((ye=y.overrides)!=null&&ye.salary?Dy({job:p,property:y.overrides.salary}):p.pay).filter(Boolean),J=y.postedDate??"show",oe=(De=y.overrides)!=null&&De.baseUrl?y.overrides.baseUrl(p.id.toString()):p.href,be=y.newUnderDays??7,ae=p.createdAt?new Date(p.createdAt).getTime()>Date.now()-be*zL:!1,Se=ze=>{var Ee,tt;w==null||w(p),(tt=(Ee=y.overrides)==null?void 0:Ee.onClick)==null||tt.call(Ee,ze)};return ue("a",{onMouseEnter:(ve=y.overrides)==null?void 0:ve.onMouseEnter,onClick:Se,href:oe,target:y.openJob==="redirect-new-tab"?"_blank":void 0,class:nw(),children:[ue("div",{class:"flex min-w-0 flex-1 flex-col gap-4",children:[ue("div",{class:"gap-logo flex items-center",children:[ue(RL,{job:p,config:I!=="sm"?y.logo:void 0}),ue("div",{class:"flex flex-col items-start gap-1",children:[ue("div",{class:"order-2 flex flex-col gap-1",children:[p.match?ue("p",{class:"text-style-job-card text-tag-accent-strong-bg flex items-center ",children:[ue(An,{name:"ai",class:"size-4 inline-block"}),ue("span",{children:p.match})]}):null,ue("p",{class:DL({size:I}),children:[p.title.trim(),ae&&J!=="hide"&&ue(er,{children:[" ",ue("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:z("new")})]})]}),k?ue("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:k}):null]}),J==="show"?ue("p",{class:"text-style-job-card-info text-copy-job-info order-1",children:[z("posted")," ",p.relativePostedDate]}):null]})]}),ue("div",{class:"flex min-w-0 flex-col items-start gap-2",children:[ue("div",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:o.map((ze,Ee)=>ue("span",{class:Au({variant:"monetaryWeak",size:"xs"}),children:ze},Ee))}),B.length>0&&ue("ul",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:B.map(ze=>ue("li",{class:Au({size:"xs",class:"max-w-full truncate"}),children:ze},ze))})]})]}),I==="sm"?ue("div",{"aria-hidden":!0,class:"absolute right-1 top-1/2 -translate-y-1/2 transform",children:ue(An,{name:"chevron-right",class:"size-5 text-copy-neutral-icon"})}):ue("div",{"aria-hidden":!0,class:"flex items-center",children:ue(An,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},Ry=({config:p,animationDelay:y,seed:w})=>{const I=p.logo??"hidden",z=p.postedDate??"show";return ue("div",{"aria-hidden":!0,style:{animationDelay:y+"s"},class:nw({interactive:!1}),children:[ue("div",{class:"flex flex-1 flex-col gap-4",children:[ue("div",{class:"flex items-center gap-4",children:[I==="hidden"?null:ue("div",{class:"rounded-logo bg-copy-neutral h-12 opacity-25",style:{aspectRatio:I.replace(":","/")}}),ue("div",{class:"flex flex-col items-start gap-1",children:[z==="show"?ue("p",{class:"text-style-job-card-info text-copy-job-info",children:ue(vd,{chars:12})}):null,ue("div",{class:"flex flex-col gap-1",children:[ue("p",{class:"text-style-job-heading font-style-job-heading font-weight-job-heading text-copy-neutral font-family-job-heading",children:ue(vd,{chars:13+(w+5)*w%7})}),p.subheading!==null?ue("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:ue(vd,{chars:7+w*w%3})}):null]})]})]}),ue("div",{class:"flex flex-col items-start gap-2",children:[w%2===0&&ue("span",{class:Au({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[10ch]"})}),ue("div",{class:"flex items-center gap-2",children:[ue("span",{class:Au({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[6ch]"})}),ue("span",{class:Au({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[8ch]"})})]})]})]}),ue("div",{"aria-hidden":!0,class:"flex items-center",children:ue(An,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},LL=({state:p,fetchNextPage:y,config:w,remainingItems:I})=>{const{t:z}=On(),k=Math.min(oc,I);return p==="revalidating"?ue("ul",{class:"flex flex-col gap-3","aria-hidden":!0,children:Array.from({length:oc}).map((B,o)=>ue("li",{children:ue(Ry,{seed:o,animationDelay:(o-4)*.1,config:w})},o))}):ue("button",{type:"button",class:da({variant:"neutral",class:"w-full max-w-[45rem] self-center py-2"}),onClick:y,children:[z("load_more_count",{count:k})," ",z("of_remaining_count",{count:I})]})},kL=({state:p,rpcClient:y,jobCardConfig:w,initialData:I,onResultsUpdate:z,onJobClick:k,onPaginate:B,mode:o,afterResults:J,prioritySegment:oe})=>ue(er,{children:Array.from({length:p.page}).map((be,ae)=>{const Se=ae===p.page-1;return ue(nd,{Fallback:Ja,children:ue(OL,{state:p,rpcClient:y,page:ae+1,isFirst:ae===0,isLast:Se,fetchNextPage:()=>{B(p.page+1)},jobCardConfig:w,initialData:I,onResultsUpdate:z,onJobClick:k,mode:o,afterResults:J,prioritySegment:oe},ae)},ae)})}),aw=({page:p})=>{const{t:y}=On();return ue("div",{"aria-hidden":!0,class:"text-copy-neutral-lowcontrast mx-auto flex w-full max-w-[45rem] gap-2 py-4",onClick:w=>{w.preventDefault()},children:[ue("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"}),ue("span",{class:"text-style-tag justify-center text-center",children:[y("page")," ",p]}),ue("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"})]})},OL=({state:p,rpcClient:y,page:w,isFirst:I,isLast:z,fetchNextPage:k,jobCardConfig:B,initialData:o,onResultsUpdate:J,onJobClick:oe,afterResults:be,prioritySegment:ae})=>{const{t:Se}=On(),ye=w===1?o:void 0,{data:De,error:ve,queryState:ze,swr:Ee}=id(hd(ty({state:p,baseKey:w.toString()}),()=>hx({rpcClient:y,state:p,page:w,t:Se,prioritySegment:ae}),{...yf,fallbackData:ye}));switch(qi(()=>{De&&I&&J&&J({totalCount:De.pagination.total})},[De,I,J]),ze){case"idle":return null;case"loading":return ue(er,{children:[I?ue("div",{class:"flex w-full max-w-[45rem] items-center gap-2 self-center",children:[ue("div",{class:"flex-1"}),ue("p",{class:"animate-skeleton text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:ue(vd,{chars:8})}),ue("div",{class:"flex flex-1 justify-end",children:be})]}):ue(aw,{page:w}),ue("ul",{class:"flex w-full max-w-[45rem] flex-col gap-3 self-center","aria-hidden":!0,children:Array.from({length:oc}).map((tt,at)=>ue("li",{children:ue(Ry,{seed:at,animationDelay:(at-oc)*.1,config:B})},at))})]});case"error":return ue(Ja,{error:new Error(Se("jobs_loading_error"),{cause:ve}),resetError:()=>Ee.mutate()});case"revalidating":case"loaded":{if(Ps(De.pagination.current_page===w,"Received wrong page from server"),De.pagination.total===0)return ue("div",{class:"mx-auto flex flex-col items-center gap-2 px-2 py-4 text-center",children:[ue(An,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),ue("div",{class:"flex flex-col items-center gap-1",children:[ue("p",{class:"text-copy-neutral text-style-job-heading",children:Se("no_jobs_found")}),ue("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:Se("no_jobs_found_description")})]})]});const tt=De.pagination.last_page!==De.pagination.current_page,at=w*oc,Ke=Math.max(De.pagination.total-at,0),pt=xt=>{oe(xt,w)};return ue(er,{children:[I?ue("div",{class:"flex w-full max-w-[45rem] items-center gap-2 self-center",children:[ue("div",{class:"flex-1"}),ue("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:Se("jobs_found",{count:De.pagination.total})}),ue("div",{class:"flex flex-1 justify-end",children:be})]}):ue(aw,{page:w}),ue("ul",{"aria-label":`Page ${w}`,class:"flex w-full max-w-[45rem] flex-col gap-3 self-center",children:De.results.map(xt=>ue("li",{class:"ease-expo-out duration-slow transition-opacity",style:{opacity:ze==="revalidating"?.33:1},children:ue(sw,{job:xt,onJobClick:pt,config:B})},xt.id))}),tt&&z&&ue(LL,{state:ze,fetchNextPage:k,config:B,remainingItems:Ke})]})}default:jo(ze)}},FL=Dg(()=>Promise.resolve().then(()=>ZL).then(p=>p.Map)),BL=({state:p,rpcClient:y,mapConfig:w,onGeoChange:I,afterResults:z,onJobClick:k,jobCardConfig:B,prioritySegment:o})=>{var ve,ze;const{t:J}=On(),[oe,be]=Fi(new AbortController),ae=_1("(max-width: 767px)"),Se=Ur(Ee=>{I(Ee),oe.abort(),be(new AbortController)},[I,oe]),ye=id(hd(["map",p],()=>GE({rpcClient:y,state:p,t:J,signal:oe.signal,prioritySegment:o}),yf));if(ye.queryState==="error")return ue(Ja,{error:new Error(J("jobs_loading_error"),{cause:ye.error}),resetError:()=>ye.swr.mutate()});const De=ye.queryState==="loaded"||ye.queryState==="revalidating";return ue(er,{children:[ue("div",{class:"flex items-center gap-2",children:[ue("div",{class:"flex-1"}),ue("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:De?ye.data.results.length!==0&&J("map_jobs_showing",{count:ye.data.results.length}):ue("div",{class:"animate-skeleton",children:ue(vd,{chars:8})})}),ue("div",{class:"flex flex-1 justify-end",children:z})]}),ue("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:[ue("div",{class:"md:min-w-80 aspect-square flex-1 md:order-2 md:aspect-auto",children:De?ue(du,{fallback:ue("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"}),children:ue(FL,{config:w,mapData:ye,autoFit:((ve=p.geo)==null?void 0:ve.type)!=="bounds",onBoundsChange:Se})}):ue("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"})}),ue("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:[((ze=ye.data)==null?void 0:ze.results.length)===0?ue("div",{class:"mx-auto flex h-full w-full flex-col items-center justify-center gap-2 text-center",children:[ue(An,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),ue("div",{class:"flex flex-col items-center gap-1",children:[ue("p",{class:"text-copy-neutral text-style-job-heading",children:J("no_jobs_found")}),ue("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:J("no_jobs_found_description")})]})]}):null,De?ye.data.results.map(Ee=>ue("li",{class:"ease-expo-out duration-slow min-w-[calc(100%-1rem)] snap-start transition-opacity",style:{opacity:ye.queryState==="revalidating"?.33:1},children:ue(sw,{job:Ee,onJobClick:tt=>k(tt,1),config:B,size:ae?"sm":void 0})},Ee.id)):Array.from({length:6}).map((Ee,tt)=>ue("li",{children:ue(Ry,{seed:tt,animationDelay:(tt-6)*.1,config:B})},tt))]})]})]})},lw=Uo({base:"flex 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}}),NL=({value:p,onValueChange:y})=>{const{t:w}=On();return ue("div",{class:"bg-neutral-3 rounded-interactive ring-neutral-3 mr-[3px] inline-flex ring-[3px]",children:[ue("button",{type:"button","aria-pressed":p==="list",class:lw({active:p==="list"}),onClick:()=>y("list"),children:[ue(An,{name:"list",class:"size-5"}),ue("span",{children:w("list")})]}),ue("button",{type:"button","aria-pressed":p==="map",class:lw({active:p==="map"}),onClick:()=>y("map"),children:[ue(An,{name:"map",class:"size-5"}),ue("span",{children:w("map")})]})]})},jL=p=>{const y=p.state.view,w=p.mapConfig&&p.mapConfig.enabled?ue(NL,{value:y,onValueChange:p.onViewChange}):null;return y==="list"?ue(kL,{afterResults:w,...p}):ue(BL,{...p,afterResults:w})},zy=(p,y="value")=>p.reduce((w,I)=>{switch(I.select){case"one":{const z=I.value??I[y],k=typeof z=="string"?z:z==null?void 0:z[0];w[I.key]={select:I.select,value:k};break}case"many":{const z=I.value??I[y],k=typeof z=="string"?[z]:Array.isArray(z)?z:[];w[I.key]={select:I.select,value:k};break}default:jo(I.select)}return w},{}),Pu=p=>Object.fromEntries(Object.entries(p).map(([y,w])=>{const I=w==null?void 0:w.value;return[y,Array.isArray(I)?I:I?[I]:[]]}).filter(([,y])=>y!==void 0&&y.length>0)),cw=p=>(p==null?void 0:p.type)==="bounds"?void 0:p,VL=({rpcClient:p,logger:y,properties:w,analytics:I,initialData:z,onStateChange:k,params:B})=>{var Ot,ui,Si,ni,Mi,gi;const{t:o}=On(),J=Ri(null),oe=fn(()=>zy(w,"defaultValue"),[w]),[be,ae]=Fi(!0),[Se,ye]=Fi(()=>typeof B.initialState=="function"?B.initialState(B):B.initialState),[De,ve]=Fi(0),{onJobClick:ze,analyticsPaginate:Ee}=UL({appRef:J,analytics:I,state:Se,hasInteracted:!be,totalCount:De,defaultFilters:oe}),tt=Ur(Bt=>{ye(Yt=>{if(Yt.page===Bt)return Yt;const Gt={...Yt,page:Bt};return k==null||k(Gt),Gt}),Ee(Bt)},[Ee,k]),at=Ur(Bt=>{ye(Yt=>{const Gt={...Yt,view:Bt};return k==null||k(Gt),Gt})},[k]),Ke=Ur(Bt=>{ye(Yt=>{var Wi;if(!Yt.query&&!Bt||Yt.query===Bt)return Yt;ae(!1);const Gt=cw(Yt.geo),oi={...Yt,query:Bt,geo:Gt,page:1,mode:(Wi=B.naturalLanguageSearch)!=null&&Wi.enabled?"vector":"query"};return k==null||k(oi),oi})},[k,(Ot=B.naturalLanguageSearch)==null?void 0:Ot.enabled]),pt=Ur(Bt=>{ae(!1),ye(Yt=>{const Gt={...Yt,geo:Bt};return k==null||k(Gt),Gt})},[k]),xt=Ur(()=>{ye(Bt=>{const Yt={...Bt,filters:zy(w,"defaultValue"),query:"",geo:void 0,page:1};return k==null||k(Yt),Yt})},[k,w]),Wt=fn(()=>(p.environment,new Map),[p.environment]);return ue(qA,{value:{provider:()=>Wt},children:ue("div",{ref:J,class:uu("ijs-app font-family-default font-weight-default font-style-default flex min-h-screen flex-col gap-4",{"reduce-motion":(ui=B.theme.accessibility)==null?void 0:ui.reducedMotion},ey(B.theme)),children:[ue(nd,{Fallback:Ja,children:ue("div",{class:"flex flex-col gap-2",children:[ue("div",{class:"px-4",children:ue("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:[ue("section",{class:"flex flex-1 flex-col gap-1",children:[ue("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:o("search_label")}),(Si=B.naturalLanguageSearch)!=null&&Si.enabled?ue(CD,{value:Se.query,onValueChange:Ke,options:B.naturalLanguageSearch}):B.enableKeywordSearch?ue(ED,{value:Se.query,onValueChange:Ke}):null]}),(ni=B.geolocation)!=null&&ni.enabled?ue("section",{class:"flex flex-1 flex-col gap-1",children:[ue("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:o("geo_label")}),ue(TD,{value:Se.geo,onValueChange:Bt=>{ae(!1),ye(Yt=>{const Gt={...Yt,geo:Bt,page:1};return k==null||k(Gt),Gt}),Ee(1)},logger:y})]}):null]})}),ue(cP,{state:Se,onFilterValueChange:(Bt,Yt)=>{ae(!1),ye(Gt=>{const oi={...Gt.filters,[Bt]:Yt},Wi=cw(Gt.geo),or={...Gt,filters:oi,geo:Wi,page:1};return k==null||k(or),or}),Ee(1)},onResetFilters:xt,properties:w,rpcClient:p,alerts:B.alerts,theme:B.theme,widgetId:B.widgetId})]})}),ue("section",{class:"flex flex-col gap-4 overflow-hidden px-4 py-4",children:[ue(nd,{Fallback:Ja,children:ue(jL,{state:Se,rpcClient:p,jobCardConfig:B.jobCard,mapConfig:B.map,initialData:be?z==null?void 0:z.jobs:void 0,onResultsUpdate:Bt=>{ve(Bt.totalCount)},onJobClick:ze,onPaginate:tt,mode:(Mi=B.naturalLanguageSearch)!=null&&Mi.enabled?"vector":"query",onGeoChange:pt,onViewChange:at,prioritySegment:(gi=B.results)==null?void 0:gi.prioritySegment})}),B.feedback?ue("div",{class:"flex flex-wrap items-center justify-center gap-2",children:[ue("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:o("feedback")}),ue("div",{"data-widget":"inploi-feedback","data-key":"job-search",children:ue("div",{class:"rounded-job-card bg-neutral-2 h-8 w-[72px] animate-pulse"})})]}):null]})]})})},UL=({appRef:p,analytics:y,state:w,defaultFilters:I,totalCount:z,hasInteracted:k})=>{const B=Ur((oe=1)=>({query:w.query,mode:w.mode,filters:Pu(w.filters),default_filters:Pu(I),total_count:z,page_size:oc,page:oe}),[w.query,w.mode,w.filters,I,z]);return ZA(p,{minViewTime:2e3,onView:()=>{y.log({event:"VIEW_SEARCH",properties:B()})}}),qi(()=>{const oe=window.setTimeout(()=>{k&&(!w.query&&!Object.keys(Pu(w.filters)).length||z!==0&&y.log({event:"SEARCH_SETTLE",properties:B()}))},5e3);return()=>{clearTimeout(oe)}},[y,k,B,z,w.query,w.filters]),{onJobClick:(oe,be)=>{y.log({event:"SEARCH_JOB_CLICK",properties:{job_id:oe.id,...B(be)}})},analyticsPaginate:oe=>{y.log({event:"SEARCH_PAGINATE",properties:B(oe)})}}},$L=`.inploi-job-search{font-size:16px;--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 *,.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 .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-\\[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-\\[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 .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-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,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-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 .\\[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-shown~.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-shown~.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>')}
60
+ `)},sC=0,vu=[];function aC(p){var y=Ri([]),w=Ri([0,0]),I=Ri(),z=Fi(sC++)[0],k=Fi(function(){return O1()})[0],B=Ri(p);qi(function(){B.current=p},[p]),qi(function(){if(p.inert){document.body.classList.add("block-interactivity-".concat(z));var ve=II([p.lockRef.current],(p.shards||[]).map($1),!0).filter(Boolean);return ve.forEach(function(ze){return ze.classList.add("allow-interactivity-".concat(z))}),function(){document.body.classList.remove("block-interactivity-".concat(z)),ve.forEach(function(ze){return ze.classList.remove("allow-interactivity-".concat(z))})}}},[p.inert,p.lockRef.current,p.shards]);var o=Ur(function(ve,ze){if("touches"in ve&&ve.touches.length===2)return!B.current.allowPinchZoom;var Ee=Bf(ve),tt=w.current,at="deltaX"in ve?ve.deltaX:tt[0]-Ee[0],Ke="deltaY"in ve?ve.deltaY:tt[1]-Ee[1],pt,xt=ve.target,Wt=Math.abs(at)>Math.abs(Ke)?"h":"v";if("touches"in ve&&Wt==="h"&&xt.type==="range")return!1;var Ot=N1(Wt,xt);if(!Ot)return!0;if(Ot?pt=Wt:(pt=Wt==="v"?"h":"v",Ot=N1(Wt,xt)),!Ot)return!1;if(!I.current&&"changedTouches"in ve&&(at||Ke)&&(I.current=pt),!pt)return!0;var ui=I.current||pt;return rC(ui,ze,ve,ui==="h"?at:Ke,!0)},[]),J=Ur(function(ve){var ze=ve;if(!(!vu.length||vu[vu.length-1]!==k)){var Ee="deltaY"in ze?U1(ze):Bf(ze),tt=y.current.filter(function(pt){return pt.name===ze.type&&pt.target===ze.target&&nC(pt.delta,Ee)})[0];if(tt&&tt.should){ze.cancelable&&ze.preventDefault();return}if(!tt){var at=(B.current.shards||[]).map($1).filter(Boolean).filter(function(pt){return pt.contains(ze.target)}),Ke=at.length>0?o(ze,at[0]):!B.current.noIsolation;Ke&&ze.cancelable&&ze.preventDefault()}}},[]),oe=Ur(function(ve,ze,Ee,tt){var at={name:ve,delta:ze,target:Ee,should:tt};y.current.push(at),setTimeout(function(){y.current=y.current.filter(function(Ke){return Ke!==at})},1)},[]),be=Ur(function(ve){w.current=Bf(ve),I.current=void 0},[]),ae=Ur(function(ve){oe(ve.type,U1(ve),ve.target,o(ve,p.lockRef.current))},[]),Se=Ur(function(ve){oe(ve.type,Bf(ve),ve.target,o(ve,p.lockRef.current))},[]);qi(function(){return vu.push(k),p.setCallbacks({onScrollCapture:ae,onWheelCapture:ae,onTouchMoveCapture:Se}),document.addEventListener("wheel",J,yu),document.addEventListener("touchmove",J,yu),document.addEventListener("touchstart",be,yu),function(){vu=vu.filter(function(ve){return ve!==k}),document.removeEventListener("wheel",J,yu),document.removeEventListener("touchmove",J,yu),document.removeEventListener("touchstart",be,yu)}},[]);var ye=p.removeScrollBar,De=p.inert;return Jt(er,null,De?Jt(k,{styles:oC(z)}):null,ye?Jt(YI,{gapMode:"margin"}):null)}const lC=FI(L1,aC);var G1=on(function(p,y){return Jt(Of,rl({},p,{ref:y,sideCar:lC}))});G1.classNames=Of.classNames;const H1=G1;var cC=function(p){if(typeof document>"u")return null;var y=Array.isArray(p)?p[0]:p;return y.ownerDocument.body},xu=new WeakMap,Nf=new WeakMap,jf={},dy=0,q1=function(p){return p&&(p.host||q1(p.parentNode))},uC=function(p,y){return y.map(function(w){if(p.contains(w))return w;var I=q1(w);return I&&p.contains(I)?I:(console.error("aria-hidden",w,"in not contained inside",p,". Doing nothing"),null)}).filter(function(w){return!!w})},hC=function(p,y,w,I){var z=uC(y,Array.isArray(p)?p:[p]);jf[w]||(jf[w]=new WeakMap);var k=jf[w],B=[],o=new Set,J=new Set(z),oe=function(ae){!ae||o.has(ae)||(o.add(ae),oe(ae.parentNode))};z.forEach(oe);var be=function(ae){!ae||J.has(ae)||Array.prototype.forEach.call(ae.children,function(Se){if(o.has(Se))be(Se);else try{var ye=Se.getAttribute(I),De=ye!==null&&ye!=="false",ve=(xu.get(Se)||0)+1,ze=(k.get(Se)||0)+1;xu.set(Se,ve),k.set(Se,ze),B.push(Se),ve===1&&De&&Nf.set(Se,!0),ze===1&&Se.setAttribute(w,"true"),De||Se.setAttribute(I,"true")}catch(Ee){console.error("aria-hidden: cannot operate on ",Se,Ee)}})};return be(y),o.clear(),dy++,function(){B.forEach(function(ae){var Se=xu.get(ae)-1,ye=k.get(ae)-1;xu.set(ae,Se),k.set(ae,ye),Se||(Nf.has(ae)||ae.removeAttribute(I),Nf.delete(ae)),ye||ae.removeAttribute(w)}),dy--,dy||(xu=new WeakMap,xu=new WeakMap,Nf=new WeakMap,jf={})}},Z1=function(p,y,w){w===void 0&&(w="data-aria-hidden");var I=Array.from(Array.isArray(p)?p:[p]),z=y||cC(p);return z?(I.push.apply(I,Array.from(z.querySelectorAll("[aria-live], script"))),hC(I,z,w,"aria-hidden")):function(){return null}};const W1="Dialog",[X1,p5]=iy(W1),[dC,nl]=X1(W1),pC=p=>{const{__scopeDialog:y,children:w,open:I,defaultOpen:z,onOpenChange:k,modal:B=!0}=p,o=Ri(null),J=Ri(null),[oe=!1,be]=y1({prop:I,defaultProp:z,onChange:k});return Jt(dC,{scope:y,triggerRef:o,contentRef:J,contentId:Pf(),titleId:Pf(),descriptionId:Pf(),open:oe,onOpenChange:be,onOpenToggle:Ur(()=>be(ae=>!ae),[be]),modal:B},w)},fC="DialogTrigger",mC=on((p,y)=>{const{__scopeDialog:w,...I}=p,z=nl(fC,w),k=Os(y,z.triggerRef);return Jt(tl.button,sn({type:"button","aria-haspopup":"dialog","aria-expanded":z.open,"aria-controls":z.contentId,"data-state":fy(z.open)},I,{ref:k,onClick:ls(p.onClick,z.onOpenToggle)}))}),Y1="DialogPortal",[_C,K1]=X1(Y1,{forceMount:void 0}),gC=p=>{const{__scopeDialog:y,forceMount:w,children:I,container:z}=p,k=nl(Y1,y);return Jt(_C,{scope:y,forceMount:w},Ls.map(I,B=>Jt(_u,{present:w||k.open},Jt(M1,{asChild:!0,container:z},B))))},py="DialogOverlay",yC=on((p,y)=>{const w=K1(py,p.__scopeDialog),{forceMount:I=w.forceMount,...z}=p,k=nl(py,p.__scopeDialog);return k.modal?Jt(_u,{present:I||k.open},Jt(vC,sn({},z,{ref:y}))):null}),vC=on((p,y)=>{const{__scopeDialog:w,...I}=p,z=nl(py,w);return Jt(H1,{as:Df,allowPinchZoom:!0,shards:[z.contentRef]},Jt(tl.div,sn({"data-state":fy(z.open)},I,{ref:y,style:{pointerEvents:"auto",...I.style}})))}),dd="DialogContent",xC=on((p,y)=>{const w=K1(dd,p.__scopeDialog),{forceMount:I=w.forceMount,...z}=p,k=nl(dd,p.__scopeDialog);return Jt(_u,{present:I||k.open},k.modal?Jt(bC,sn({},z,{ref:y})):Jt(wC,sn({},z,{ref:y})))}),bC=on((p,y)=>{const w=nl(dd,p.__scopeDialog),I=Ri(null),z=Os(y,w.contentRef,I);return qi(()=>{const k=I.current;if(k)return Z1(k)},[]),Jt(J1,sn({},p,{ref:z,trapFocus:w.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ls(p.onCloseAutoFocus,k=>{var B;k.preventDefault(),(B=w.triggerRef.current)===null||B===void 0||B.focus()}),onPointerDownOutside:ls(p.onPointerDownOutside,k=>{const B=k.detail.originalEvent,o=B.button===0&&B.ctrlKey===!0;(B.button===2||o)&&k.preventDefault()}),onFocusOutside:ls(p.onFocusOutside,k=>k.preventDefault())}))}),wC=on((p,y)=>{const w=nl(dd,p.__scopeDialog),I=Ri(!1),z=Ri(!1);return Jt(J1,sn({},p,{ref:y,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:k=>{var B;if((B=p.onCloseAutoFocus)===null||B===void 0||B.call(p,k),!k.defaultPrevented){var o;I.current||(o=w.triggerRef.current)===null||o===void 0||o.focus(),k.preventDefault()}I.current=!1,z.current=!1},onInteractOutside:k=>{var B,o;(B=p.onInteractOutside)===null||B===void 0||B.call(p,k),k.defaultPrevented||(I.current=!0,k.detail.originalEvent.type==="pointerdown"&&(z.current=!0));const J=k.target;((o=w.triggerRef.current)===null||o===void 0?void 0:o.contains(J))&&k.preventDefault(),k.detail.originalEvent.type==="focusin"&&z.current&&k.preventDefault()}}))}),J1=on((p,y)=>{const{__scopeDialog:w,trapFocus:I,onOpenAutoFocus:z,onCloseAutoFocus:k,...B}=p,o=nl(dd,w),J=Ri(null),oe=Os(y,J);return P1(),Jt(er,null,Jt(S1,{asChild:!0,loop:!0,trapped:I,onMountAutoFocus:z,onUnmountAutoFocus:k},Jt(x1,sn({role:"dialog",id:o.contentId,"aria-describedby":o.descriptionId,"aria-labelledby":o.titleId,"data-state":fy(o.open)},B,{ref:oe,onDismiss:()=>o.onOpenChange(!1)}))),!1)});function fy(p){return p?"open":"closed"}const TC=pC,SC=mC,EC=gC,AC=yC,IC=xC,CC=["top","right","bottom","left"],Fs=Math.min,Ao=Math.max,Vf=Math.round,Uf=Math.floor,ol=p=>({x:p,y:p}),MC={left:"right",right:"left",bottom:"top",top:"bottom"},PC={start:"end",end:"start"};function my(p,y,w){return Ao(p,Fs(y,w))}function _a(p,y){return typeof p=="function"?p(y):p}function ga(p){return p.split("-")[0]}function bu(p){return p.split("-")[1]}function _y(p){return p==="x"?"y":"x"}function gy(p){return p==="y"?"height":"width"}function sl(p){return["top","bottom"].includes(ga(p))?"y":"x"}function yy(p){return _y(sl(p))}function DC(p,y,w){w===void 0&&(w=!1);const I=bu(p),z=yy(p),k=gy(z);let B=z==="x"?I===(w?"end":"start")?"right":"left":I==="start"?"bottom":"top";return y.reference[k]>y.floating[k]&&(B=$f(B)),[B,$f(B)]}function RC(p){const y=$f(p);return[vy(p),y,vy(y)]}function vy(p){return p.replace(/start|end/g,y=>PC[y])}function zC(p,y,w){const I=["left","right"],z=["right","left"],k=["top","bottom"],B=["bottom","top"];switch(p){case"top":case"bottom":return w?y?z:I:y?I:z;case"left":case"right":return y?k:B;default:return[]}}function LC(p,y,w,I){const z=bu(p);let k=zC(ga(p),w==="start",I);return z&&(k=k.map(B=>B+"-"+z),y&&(k=k.concat(k.map(vy)))),k}function $f(p){return p.replace(/left|right|bottom|top/g,y=>MC[y])}function kC(p){return{top:0,right:0,bottom:0,left:0,...p}}function Q1(p){return typeof p!="number"?kC(p):{top:p,right:p,bottom:p,left:p}}function Gf(p){const{x:y,y:w,width:I,height:z}=p;return{width:I,height:z,top:w,left:y,right:y+I,bottom:w+z,x:y,y:w}}function eb(p,y,w){let{reference:I,floating:z}=p;const k=sl(y),B=yy(y),o=gy(B),J=ga(y),oe=k==="y",be=I.x+I.width/2-z.width/2,ae=I.y+I.height/2-z.height/2,Se=I[o]/2-z[o]/2;let ye;switch(J){case"top":ye={x:be,y:I.y-z.height};break;case"bottom":ye={x:be,y:I.y+I.height};break;case"right":ye={x:I.x+I.width,y:ae};break;case"left":ye={x:I.x-z.width,y:ae};break;default:ye={x:I.x,y:I.y}}switch(bu(y)){case"start":ye[B]-=Se*(w&&oe?-1:1);break;case"end":ye[B]+=Se*(w&&oe?-1:1);break}return ye}const OC=async(p,y,w)=>{const{placement:I="bottom",strategy:z="absolute",middleware:k=[],platform:B}=w,o=k.filter(Boolean),J=await(B.isRTL==null?void 0:B.isRTL(y));let oe=await B.getElementRects({reference:p,floating:y,strategy:z}),{x:be,y:ae}=eb(oe,I,J),Se=I,ye={},De=0;for(let ve=0;ve<o.length;ve++){const{name:ze,fn:Ee}=o[ve],{x:tt,y:at,data:Ke,reset:pt}=await Ee({x:be,y:ae,initialPlacement:I,placement:Se,strategy:z,middlewareData:ye,rects:oe,platform:B,elements:{reference:p,floating:y}});be=tt??be,ae=at??ae,ye={...ye,[ze]:{...ye[ze],...Ke}},pt&&De<=50&&(De++,typeof pt=="object"&&(pt.placement&&(Se=pt.placement),pt.rects&&(oe=pt.rects===!0?await B.getElementRects({reference:p,floating:y,strategy:z}):pt.rects),{x:be,y:ae}=eb(oe,Se,J)),ve=-1)}return{x:be,y:ae,placement:Se,strategy:z,middlewareData:ye}};async function pd(p,y){var w;y===void 0&&(y={});const{x:I,y:z,platform:k,rects:B,elements:o,strategy:J}=p,{boundary:oe="clippingAncestors",rootBoundary:be="viewport",elementContext:ae="floating",altBoundary:Se=!1,padding:ye=0}=_a(y,p),De=Q1(ye),ze=o[Se?ae==="floating"?"reference":"floating":ae],Ee=Gf(await k.getClippingRect({element:(w=await(k.isElement==null?void 0:k.isElement(ze)))==null||w?ze:ze.contextElement||await(k.getDocumentElement==null?void 0:k.getDocumentElement(o.floating)),boundary:oe,rootBoundary:be,strategy:J})),tt=ae==="floating"?{x:I,y:z,width:B.floating.width,height:B.floating.height}:B.reference,at=await(k.getOffsetParent==null?void 0:k.getOffsetParent(o.floating)),Ke=await(k.isElement==null?void 0:k.isElement(at))?await(k.getScale==null?void 0:k.getScale(at))||{x:1,y:1}:{x:1,y:1},pt=Gf(k.convertOffsetParentRelativeRectToViewportRelativeRect?await k.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:tt,offsetParent:at,strategy:J}):tt);return{top:(Ee.top-pt.top+De.top)/Ke.y,bottom:(pt.bottom-Ee.bottom+De.bottom)/Ke.y,left:(Ee.left-pt.left+De.left)/Ke.x,right:(pt.right-Ee.right+De.right)/Ke.x}}const FC=p=>({name:"arrow",options:p,async fn(y){const{x:w,y:I,placement:z,rects:k,platform:B,elements:o,middlewareData:J}=y,{element:oe,padding:be=0}=_a(p,y)||{};if(oe==null)return{};const ae=Q1(be),Se={x:w,y:I},ye=yy(z),De=gy(ye),ve=await B.getDimensions(oe),ze=ye==="y",Ee=ze?"top":"left",tt=ze?"bottom":"right",at=ze?"clientHeight":"clientWidth",Ke=k.reference[De]+k.reference[ye]-Se[ye]-k.floating[De],pt=Se[ye]-k.reference[ye],xt=await(B.getOffsetParent==null?void 0:B.getOffsetParent(oe));let Wt=xt?xt[at]:0;(!Wt||!await(B.isElement==null?void 0:B.isElement(xt)))&&(Wt=o.floating[at]||k.floating[De]);const Ot=Ke/2-pt/2,ui=Wt/2-ve[De]/2-1,Si=Fs(ae[Ee],ui),ni=Fs(ae[tt],ui),Mi=Si,gi=Wt-ve[De]-ni,Bt=Wt/2-ve[De]/2+Ot,Yt=my(Mi,Bt,gi),Gt=!J.arrow&&bu(z)!=null&&Bt!==Yt&&k.reference[De]/2-(Bt<Mi?Si:ni)-ve[De]/2<0,oi=Gt?Bt<Mi?Bt-Mi:Bt-gi:0;return{[ye]:Se[ye]+oi,data:{[ye]:Yt,centerOffset:Bt-Yt-oi,...Gt&&{alignmentOffset:oi}},reset:Gt}}}),BC=function(p){return p===void 0&&(p={}),{name:"flip",options:p,async fn(y){var w,I;const{placement:z,middlewareData:k,rects:B,initialPlacement:o,platform:J,elements:oe}=y,{mainAxis:be=!0,crossAxis:ae=!0,fallbackPlacements:Se,fallbackStrategy:ye="bestFit",fallbackAxisSideDirection:De="none",flipAlignment:ve=!0,...ze}=_a(p,y);if((w=k.arrow)!=null&&w.alignmentOffset)return{};const Ee=ga(z),tt=sl(o),at=ga(o)===o,Ke=await(J.isRTL==null?void 0:J.isRTL(oe.floating)),pt=Se||(at||!ve?[$f(o)]:RC(o)),xt=De!=="none";!Se&&xt&&pt.push(...LC(o,ve,De,Ke));const Wt=[o,...pt],Ot=await pd(y,ze),ui=[];let Si=((I=k.flip)==null?void 0:I.overflows)||[];if(be&&ui.push(Ot[Ee]),ae){const Bt=DC(z,B,Ke);ui.push(Ot[Bt[0]],Ot[Bt[1]])}if(Si=[...Si,{placement:z,overflows:ui}],!ui.every(Bt=>Bt<=0)){var ni,Mi;const Bt=(((ni=k.flip)==null?void 0:ni.index)||0)+1,Yt=Wt[Bt];if(Yt)return{data:{index:Bt,overflows:Si},reset:{placement:Yt}};let Gt=(Mi=Si.filter(oi=>oi.overflows[0]<=0).sort((oi,Wi)=>oi.overflows[1]-Wi.overflows[1])[0])==null?void 0:Mi.placement;if(!Gt)switch(ye){case"bestFit":{var gi;const oi=(gi=Si.filter(Wi=>{if(xt){const or=sl(Wi.placement);return or===tt||or==="y"}return!0}).map(Wi=>[Wi.placement,Wi.overflows.filter(or=>or>0).reduce((or,Ei)=>or+Ei,0)]).sort((Wi,or)=>Wi[1]-or[1])[0])==null?void 0:gi[0];oi&&(Gt=oi);break}case"initialPlacement":Gt=o;break}if(z!==Gt)return{reset:{placement:Gt}}}return{}}}};function tb(p,y){return{top:p.top-y.height,right:p.right-y.width,bottom:p.bottom-y.height,left:p.left-y.width}}function ib(p){return CC.some(y=>p[y]>=0)}const NC=function(p){return p===void 0&&(p={}),{name:"hide",options:p,async fn(y){const{rects:w}=y,{strategy:I="referenceHidden",...z}=_a(p,y);switch(I){case"referenceHidden":{const k=await pd(y,{...z,elementContext:"reference"}),B=tb(k,w.reference);return{data:{referenceHiddenOffsets:B,referenceHidden:ib(B)}}}case"escaped":{const k=await pd(y,{...z,altBoundary:!0}),B=tb(k,w.floating);return{data:{escapedOffsets:B,escaped:ib(B)}}}default:return{}}}}};async function jC(p,y){const{placement:w,platform:I,elements:z}=p,k=await(I.isRTL==null?void 0:I.isRTL(z.floating)),B=ga(w),o=bu(w),J=sl(w)==="y",oe=["left","top"].includes(B)?-1:1,be=k&&J?-1:1,ae=_a(y,p);let{mainAxis:Se,crossAxis:ye,alignmentAxis:De}=typeof ae=="number"?{mainAxis:ae,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...ae};return o&&typeof De=="number"&&(ye=o==="end"?De*-1:De),J?{x:ye*be,y:Se*oe}:{x:Se*oe,y:ye*be}}const VC=function(p){return p===void 0&&(p=0),{name:"offset",options:p,async fn(y){var w,I;const{x:z,y:k,placement:B,middlewareData:o}=y,J=await jC(y,p);return B===((w=o.offset)==null?void 0:w.placement)&&(I=o.arrow)!=null&&I.alignmentOffset?{}:{x:z+J.x,y:k+J.y,data:{...J,placement:B}}}}},UC=function(p){return p===void 0&&(p={}),{name:"shift",options:p,async fn(y){const{x:w,y:I,placement:z}=y,{mainAxis:k=!0,crossAxis:B=!1,limiter:o={fn:ze=>{let{x:Ee,y:tt}=ze;return{x:Ee,y:tt}}},...J}=_a(p,y),oe={x:w,y:I},be=await pd(y,J),ae=sl(ga(z)),Se=_y(ae);let ye=oe[Se],De=oe[ae];if(k){const ze=Se==="y"?"top":"left",Ee=Se==="y"?"bottom":"right",tt=ye+be[ze],at=ye-be[Ee];ye=my(tt,ye,at)}if(B){const ze=ae==="y"?"top":"left",Ee=ae==="y"?"bottom":"right",tt=De+be[ze],at=De-be[Ee];De=my(tt,De,at)}const ve=o.fn({...y,[Se]:ye,[ae]:De});return{...ve,data:{x:ve.x-w,y:ve.y-I}}}}},$C=function(p){return p===void 0&&(p={}),{options:p,fn(y){const{x:w,y:I,placement:z,rects:k,middlewareData:B}=y,{offset:o=0,mainAxis:J=!0,crossAxis:oe=!0}=_a(p,y),be={x:w,y:I},ae=sl(z),Se=_y(ae);let ye=be[Se],De=be[ae];const ve=_a(o,y),ze=typeof ve=="number"?{mainAxis:ve,crossAxis:0}:{mainAxis:0,crossAxis:0,...ve};if(J){const at=Se==="y"?"height":"width",Ke=k.reference[Se]-k.floating[at]+ze.mainAxis,pt=k.reference[Se]+k.reference[at]-ze.mainAxis;ye<Ke?ye=Ke:ye>pt&&(ye=pt)}if(oe){var Ee,tt;const at=Se==="y"?"width":"height",Ke=["top","left"].includes(ga(z)),pt=k.reference[ae]-k.floating[at]+(Ke&&((Ee=B.offset)==null?void 0:Ee[ae])||0)+(Ke?0:ze.crossAxis),xt=k.reference[ae]+k.reference[at]+(Ke?0:((tt=B.offset)==null?void 0:tt[ae])||0)-(Ke?ze.crossAxis:0);De<pt?De=pt:De>xt&&(De=xt)}return{[Se]:ye,[ae]:De}}}},GC=function(p){return p===void 0&&(p={}),{name:"size",options:p,async fn(y){const{placement:w,rects:I,platform:z,elements:k}=y,{apply:B=()=>{},...o}=_a(p,y),J=await pd(y,o),oe=ga(w),be=bu(w),ae=sl(w)==="y",{width:Se,height:ye}=I.floating;let De,ve;oe==="top"||oe==="bottom"?(De=oe,ve=be===(await(z.isRTL==null?void 0:z.isRTL(k.floating))?"start":"end")?"left":"right"):(ve=oe,De=be==="end"?"top":"bottom");const ze=ye-J.top-J.bottom,Ee=Se-J.left-J.right,tt=Fs(ye-J[De],ze),at=Fs(Se-J[ve],Ee),Ke=!y.middlewareData.shift;let pt=tt,xt=at;if(ae?xt=be||Ke?Fs(at,Ee):Ee:pt=be||Ke?Fs(tt,ze):ze,Ke&&!be){const Ot=Ao(J.left,0),ui=Ao(J.right,0),Si=Ao(J.top,0),ni=Ao(J.bottom,0);ae?xt=Se-2*(Ot!==0||ui!==0?Ot+ui:Ao(J.left,J.right)):pt=ye-2*(Si!==0||ni!==0?Si+ni:Ao(J.top,J.bottom))}await B({...y,availableWidth:xt,availableHeight:pt});const Wt=await z.getDimensions(k.floating);return Se!==Wt.width||ye!==Wt.height?{reset:{rects:!0}}:{}}}};function wu(p){return rb(p)?(p.nodeName||"").toLowerCase():"#document"}function Io(p){var y;return(p==null||(y=p.ownerDocument)==null?void 0:y.defaultView)||window}function ya(p){var y;return(y=(rb(p)?p.ownerDocument:p.document)||window.document)==null?void 0:y.documentElement}function rb(p){return p instanceof Node||p instanceof Io(p).Node}function cs(p){return p instanceof Element||p instanceof Io(p).Element}function Bs(p){return p instanceof HTMLElement||p instanceof Io(p).HTMLElement}function nb(p){return typeof ShadowRoot>"u"?!1:p instanceof ShadowRoot||p instanceof Io(p).ShadowRoot}function fd(p){const{overflow:y,overflowX:w,overflowY:I,display:z}=us(p);return/auto|scroll|overlay|hidden|clip/.test(y+I+w)&&!["inline","contents"].includes(z)}function HC(p){return["table","td","th"].includes(wu(p))}function Hf(p){return[":popover-open",":modal"].some(y=>{try{return p.matches(y)}catch{return!1}})}function xy(p){const y=by(),w=cs(p)?us(p):p;return w.transform!=="none"||w.perspective!=="none"||(w.containerType?w.containerType!=="normal":!1)||!y&&(w.backdropFilter?w.backdropFilter!=="none":!1)||!y&&(w.filter?w.filter!=="none":!1)||["transform","perspective","filter"].some(I=>(w.willChange||"").includes(I))||["paint","layout","strict","content"].some(I=>(w.contain||"").includes(I))}function qC(p){let y=al(p);for(;Bs(y)&&!Tu(y);){if(xy(y))return y;if(Hf(y))return null;y=al(y)}return null}function by(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Tu(p){return["html","body","#document"].includes(wu(p))}function us(p){return Io(p).getComputedStyle(p)}function qf(p){return cs(p)?{scrollLeft:p.scrollLeft,scrollTop:p.scrollTop}:{scrollLeft:p.scrollX,scrollTop:p.scrollY}}function al(p){if(wu(p)==="html")return p;const y=p.assignedSlot||p.parentNode||nb(p)&&p.host||ya(p);return nb(y)?y.host:y}function ob(p){const y=al(p);return Tu(y)?p.ownerDocument?p.ownerDocument.body:p.body:Bs(y)&&fd(y)?y:ob(y)}function md(p,y,w){var I;y===void 0&&(y=[]),w===void 0&&(w=!0);const z=ob(p),k=z===((I=p.ownerDocument)==null?void 0:I.body),B=Io(z);if(k){const o=wy(B);return y.concat(B,B.visualViewport||[],fd(z)?z:[],o&&w?md(o):[])}return y.concat(z,md(z,[],w))}function wy(p){return p.parent&&Object.getPrototypeOf(p.parent)?p.frameElement:null}function sb(p){const y=us(p);let w=parseFloat(y.width)||0,I=parseFloat(y.height)||0;const z=Bs(p),k=z?p.offsetWidth:w,B=z?p.offsetHeight:I,o=Vf(w)!==k||Vf(I)!==B;return o&&(w=k,I=B),{width:w,height:I,$:o}}function Ty(p){return cs(p)?p:p.contextElement}function Su(p){const y=Ty(p);if(!Bs(y))return ol(1);const w=y.getBoundingClientRect(),{width:I,height:z,$:k}=sb(y);let B=(k?Vf(w.width):w.width)/I,o=(k?Vf(w.height):w.height)/z;return(!B||!Number.isFinite(B))&&(B=1),(!o||!Number.isFinite(o))&&(o=1),{x:B,y:o}}const ZC=ol(0);function ab(p){const y=Io(p);return!by()||!y.visualViewport?ZC:{x:y.visualViewport.offsetLeft,y:y.visualViewport.offsetTop}}function WC(p,y,w){return y===void 0&&(y=!1),!w||y&&w!==Io(p)?!1:y}function ac(p,y,w,I){y===void 0&&(y=!1),w===void 0&&(w=!1);const z=p.getBoundingClientRect(),k=Ty(p);let B=ol(1);y&&(I?cs(I)&&(B=Su(I)):B=Su(p));const o=WC(k,w,I)?ab(k):ol(0);let J=(z.left+o.x)/B.x,oe=(z.top+o.y)/B.y,be=z.width/B.x,ae=z.height/B.y;if(k){const Se=Io(k),ye=I&&cs(I)?Io(I):I;let De=Se,ve=wy(De);for(;ve&&I&&ye!==De;){const ze=Su(ve),Ee=ve.getBoundingClientRect(),tt=us(ve),at=Ee.left+(ve.clientLeft+parseFloat(tt.paddingLeft))*ze.x,Ke=Ee.top+(ve.clientTop+parseFloat(tt.paddingTop))*ze.y;J*=ze.x,oe*=ze.y,be*=ze.x,ae*=ze.y,J+=at,oe+=Ke,De=Io(ve),ve=wy(De)}}return Gf({width:be,height:ae,x:J,y:oe})}function XC(p){let{elements:y,rect:w,offsetParent:I,strategy:z}=p;const k=z==="fixed",B=ya(I),o=y?Hf(y.floating):!1;if(I===B||o&&k)return w;let J={scrollLeft:0,scrollTop:0},oe=ol(1);const be=ol(0),ae=Bs(I);if((ae||!ae&&!k)&&((wu(I)!=="body"||fd(B))&&(J=qf(I)),Bs(I))){const Se=ac(I);oe=Su(I),be.x=Se.x+I.clientLeft,be.y=Se.y+I.clientTop}return{width:w.width*oe.x,height:w.height*oe.y,x:w.x*oe.x-J.scrollLeft*oe.x+be.x,y:w.y*oe.y-J.scrollTop*oe.y+be.y}}function YC(p){return Array.from(p.getClientRects())}function lb(p){return ac(ya(p)).left+qf(p).scrollLeft}function KC(p){const y=ya(p),w=qf(p),I=p.ownerDocument.body,z=Ao(y.scrollWidth,y.clientWidth,I.scrollWidth,I.clientWidth),k=Ao(y.scrollHeight,y.clientHeight,I.scrollHeight,I.clientHeight);let B=-w.scrollLeft+lb(p);const o=-w.scrollTop;return us(I).direction==="rtl"&&(B+=Ao(y.clientWidth,I.clientWidth)-z),{width:z,height:k,x:B,y:o}}function JC(p,y){const w=Io(p),I=ya(p),z=w.visualViewport;let k=I.clientWidth,B=I.clientHeight,o=0,J=0;if(z){k=z.width,B=z.height;const oe=by();(!oe||oe&&y==="fixed")&&(o=z.offsetLeft,J=z.offsetTop)}return{width:k,height:B,x:o,y:J}}function QC(p,y){const w=ac(p,!0,y==="fixed"),I=w.top+p.clientTop,z=w.left+p.clientLeft,k=Bs(p)?Su(p):ol(1),B=p.clientWidth*k.x,o=p.clientHeight*k.y,J=z*k.x,oe=I*k.y;return{width:B,height:o,x:J,y:oe}}function cb(p,y,w){let I;if(y==="viewport")I=JC(p,w);else if(y==="document")I=KC(ya(p));else if(cs(y))I=QC(y,w);else{const z=ab(p);I={...y,x:y.x-z.x,y:y.y-z.y}}return Gf(I)}function ub(p,y){const w=al(p);return w===y||!cs(w)||Tu(w)?!1:us(w).position==="fixed"||ub(w,y)}function eM(p,y){const w=y.get(p);if(w)return w;let I=md(p,[],!1).filter(o=>cs(o)&&wu(o)!=="body"),z=null;const k=us(p).position==="fixed";let B=k?al(p):p;for(;cs(B)&&!Tu(B);){const o=us(B),J=xy(B);!J&&o.position==="fixed"&&(z=null),(k?!J&&!z:!J&&o.position==="static"&&!!z&&["absolute","fixed"].includes(z.position)||fd(B)&&!J&&ub(p,B))?I=I.filter(be=>be!==B):z=o,B=al(B)}return y.set(p,I),I}function tM(p){let{element:y,boundary:w,rootBoundary:I,strategy:z}=p;const B=[...w==="clippingAncestors"?Hf(y)?[]:eM(y,this._c):[].concat(w),I],o=B[0],J=B.reduce((oe,be)=>{const ae=cb(y,be,z);return oe.top=Ao(ae.top,oe.top),oe.right=Fs(ae.right,oe.right),oe.bottom=Fs(ae.bottom,oe.bottom),oe.left=Ao(ae.left,oe.left),oe},cb(y,o,z));return{width:J.right-J.left,height:J.bottom-J.top,x:J.left,y:J.top}}function iM(p){const{width:y,height:w}=sb(p);return{width:y,height:w}}function rM(p,y,w){const I=Bs(y),z=ya(y),k=w==="fixed",B=ac(p,!0,k,y);let o={scrollLeft:0,scrollTop:0};const J=ol(0);if(I||!I&&!k)if((wu(y)!=="body"||fd(z))&&(o=qf(y)),I){const ae=ac(y,!0,k,y);J.x=ae.x+y.clientLeft,J.y=ae.y+y.clientTop}else z&&(J.x=lb(z));const oe=B.left+o.scrollLeft-J.x,be=B.top+o.scrollTop-J.y;return{x:oe,y:be,width:B.width,height:B.height}}function Sy(p){return us(p).position==="static"}function hb(p,y){return!Bs(p)||us(p).position==="fixed"?null:y?y(p):p.offsetParent}function db(p,y){const w=Io(p);if(Hf(p))return w;if(!Bs(p)){let z=al(p);for(;z&&!Tu(z);){if(cs(z)&&!Sy(z))return z;z=al(z)}return w}let I=hb(p,y);for(;I&&HC(I)&&Sy(I);)I=hb(I,y);return I&&Tu(I)&&Sy(I)&&!xy(I)?w:I||qC(p)||w}const nM=async function(p){const y=this.getOffsetParent||db,w=this.getDimensions,I=await w(p.floating);return{reference:rM(p.reference,await y(p.floating),p.strategy),floating:{x:0,y:0,width:I.width,height:I.height}}};function oM(p){return us(p).direction==="rtl"}const sM={convertOffsetParentRelativeRectToViewportRelativeRect:XC,getDocumentElement:ya,getClippingRect:tM,getOffsetParent:db,getElementRects:nM,getClientRects:YC,getDimensions:iM,getScale:Su,isElement:cs,isRTL:oM};function aM(p,y){let w=null,I;const z=ya(p);function k(){var o;clearTimeout(I),(o=w)==null||o.disconnect(),w=null}function B(o,J){o===void 0&&(o=!1),J===void 0&&(J=1),k();const{left:oe,top:be,width:ae,height:Se}=p.getBoundingClientRect();if(o||y(),!ae||!Se)return;const ye=Uf(be),De=Uf(z.clientWidth-(oe+ae)),ve=Uf(z.clientHeight-(be+Se)),ze=Uf(oe),tt={rootMargin:-ye+"px "+-De+"px "+-ve+"px "+-ze+"px",threshold:Ao(0,Fs(1,J))||1};let at=!0;function Ke(pt){const xt=pt[0].intersectionRatio;if(xt!==J){if(!at)return B();xt?B(!1,xt):I=setTimeout(()=>{B(!1,1e-7)},1e3)}at=!1}try{w=new IntersectionObserver(Ke,{...tt,root:z.ownerDocument})}catch{w=new IntersectionObserver(Ke,tt)}w.observe(p)}return B(!0),k}function lM(p,y,w,I){I===void 0&&(I={});const{ancestorScroll:z=!0,ancestorResize:k=!0,elementResize:B=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:J=!1}=I,oe=Ty(p),be=z||k?[...oe?md(oe):[],...md(y)]:[];be.forEach(Ee=>{z&&Ee.addEventListener("scroll",w,{passive:!0}),k&&Ee.addEventListener("resize",w)});const ae=oe&&o?aM(oe,w):null;let Se=-1,ye=null;B&&(ye=new ResizeObserver(Ee=>{let[tt]=Ee;tt&&tt.target===oe&&ye&&(ye.unobserve(y),cancelAnimationFrame(Se),Se=requestAnimationFrame(()=>{var at;(at=ye)==null||at.observe(y)})),w()}),oe&&!J&&ye.observe(oe),ye.observe(y));let De,ve=J?ac(p):null;J&&ze();function ze(){const Ee=ac(p);ve&&(Ee.x!==ve.x||Ee.y!==ve.y||Ee.width!==ve.width||Ee.height!==ve.height)&&w(),ve=Ee,De=requestAnimationFrame(ze)}return w(),()=>{var Ee;be.forEach(tt=>{z&&tt.removeEventListener("scroll",w),k&&tt.removeEventListener("resize",w)}),ae==null||ae(),(Ee=ye)==null||Ee.disconnect(),ye=null,J&&cancelAnimationFrame(De)}}const cM=VC,uM=UC,hM=BC,dM=GC,pM=NC,pb=FC,fM=$C,mM=(p,y,w)=>{const I=new Map,z={platform:sM,...w},k={...z.platform,_c:I};return OC(p,y,{...z,platform:k})};var Zf=typeof document<"u"?zs:qi;function Wf(p,y){if(p===y)return!0;if(typeof p!=typeof y)return!1;if(typeof p=="function"&&p.toString()===y.toString())return!0;let w,I,z;if(p&&y&&typeof p=="object"){if(Array.isArray(p)){if(w=p.length,w!==y.length)return!1;for(I=w;I--!==0;)if(!Wf(p[I],y[I]))return!1;return!0}if(z=Object.keys(p),w=z.length,w!==Object.keys(y).length)return!1;for(I=w;I--!==0;)if(!{}.hasOwnProperty.call(y,z[I]))return!1;for(I=w;I--!==0;){const k=z[I];if(!(k==="_owner"&&p.$$typeof)&&!Wf(p[k],y[k]))return!1}return!0}return p!==p&&y!==y}function fb(p){return typeof window>"u"?1:(p.ownerDocument.defaultView||window).devicePixelRatio||1}function mb(p,y){const w=fb(p);return Math.round(y*w)/w}function _b(p){const y=Ri(p);return Zf(()=>{y.current=p}),y}function _M(p){p===void 0&&(p={});const{placement:y="bottom",strategy:w="absolute",middleware:I=[],platform:z,elements:{reference:k,floating:B}={},transform:o=!0,whileElementsMounted:J,open:oe}=p,[be,ae]=Fi({x:0,y:0,strategy:w,placement:y,middlewareData:{},isPositioned:!1}),[Se,ye]=Fi(I);Wf(Se,I)||ye(I);const[De,ve]=Fi(null),[ze,Ee]=Fi(null),tt=Ur(oi=>{oi!==xt.current&&(xt.current=oi,ve(oi))},[]),at=Ur(oi=>{oi!==Wt.current&&(Wt.current=oi,Ee(oi))},[]),Ke=k||De,pt=B||ze,xt=Ri(null),Wt=Ri(null),Ot=Ri(be),ui=J!=null,Si=_b(J),ni=_b(z),Mi=Ur(()=>{if(!xt.current||!Wt.current)return;const oi={placement:y,strategy:w,middleware:Se};ni.current&&(oi.platform=ni.current),mM(xt.current,Wt.current,oi).then(Wi=>{const or={...Wi,isPositioned:!0};gi.current&&!Wf(Ot.current,or)&&(Ot.current=or,od(()=>{ae(or)}))})},[Se,y,w,ni]);Zf(()=>{oe===!1&&Ot.current.isPositioned&&(Ot.current.isPositioned=!1,ae(oi=>({...oi,isPositioned:!1})))},[oe]);const gi=Ri(!1);Zf(()=>(gi.current=!0,()=>{gi.current=!1}),[]),Zf(()=>{if(Ke&&(xt.current=Ke),pt&&(Wt.current=pt),Ke&&pt){if(Si.current)return Si.current(Ke,pt,Mi);Mi()}},[Ke,pt,Mi,Si,ui]);const Bt=fn(()=>({reference:xt,floating:Wt,setReference:tt,setFloating:at}),[tt,at]),Yt=fn(()=>({reference:Ke,floating:pt}),[Ke,pt]),Gt=fn(()=>{const oi={position:w,left:0,top:0};if(!Yt.floating)return oi;const Wi=mb(Yt.floating,be.x),or=mb(Yt.floating,be.y);return o?{...oi,transform:"translate("+Wi+"px, "+or+"px)",...fb(Yt.floating)>=1.5&&{willChange:"transform"}}:{position:w,left:Wi,top:or}},[w,o,Yt.floating,be.x,be.y]);return fn(()=>({...be,update:Mi,refs:Bt,elements:Yt,floatingStyles:Gt}),[be,Mi,Bt,Yt,Gt])}const gM=p=>{function y(w){return{}.hasOwnProperty.call(w,"current")}return{name:"arrow",options:p,fn(w){const{element:I,padding:z}=typeof p=="function"?p(w):p;return I&&y(I)?I.current!=null?pb({element:I.current,padding:z}).fn(w):{}:I?pb({element:I,padding:z}).fn(w):{}}}},yM=(p,y)=>({...cM(p),options:[p,y]}),vM=(p,y)=>({...uM(p),options:[p,y]}),xM=(p,y)=>({...fM(p),options:[p,y]}),bM=(p,y)=>({...hM(p),options:[p,y]}),wM=(p,y)=>({...dM(p),options:[p,y]}),TM=(p,y)=>({...pM(p),options:[p,y]}),SM=(p,y)=>({...gM(p),options:[p,y]});function EM(p){const[y,w]=Fi(void 0);return mu(()=>{if(p){w({width:p.offsetWidth,height:p.offsetHeight});const I=new ResizeObserver(z=>{if(!Array.isArray(z)||!z.length)return;const k=z[0];let B,o;if("borderBoxSize"in k){const J=k.borderBoxSize,oe=Array.isArray(J)?J[0]:J;B=oe.inlineSize,o=oe.blockSize}else B=p.offsetWidth,o=p.offsetHeight;w({width:B,height:o})});return I.observe(p,{box:"border-box"}),()=>I.unobserve(p)}else w(void 0)},[p]),y}const gb="Popper",[yb,vb]=iy(gb),[AM,xb]=yb(gb),IM=p=>{const{__scopePopper:y,children:w}=p,[I,z]=Fi(null);return Jt(AM,{scope:y,anchor:I,onAnchorChange:z},w)},CM="PopperAnchor",MM=on((p,y)=>{const{__scopePopper:w,virtualRef:I,...z}=p,k=xb(CM,w),B=Ri(null),o=Os(y,B);return qi(()=>{k.onAnchorChange((I==null?void 0:I.current)||B.current)}),I?null:Jt(tl.div,sn({},z,{ref:o}))}),bb="PopperContent",[PM,f5]=yb(bb),DM=on((p,y)=>{var w,I,z,k,B,o,J,oe;const{__scopePopper:be,side:ae="bottom",sideOffset:Se=0,align:ye="center",alignOffset:De=0,arrowPadding:ve=0,avoidCollisions:ze=!0,collisionBoundary:Ee=[],collisionPadding:tt=0,sticky:at="partial",hideWhenDetached:Ke=!1,updatePositionStrategy:pt="optimized",onPlaced:xt,...Wt}=p,Ot=xb(bb,be),[ui,Si]=Fi(null),ni=Os(y,wr=>Si(wr)),[Mi,gi]=Fi(null),Bt=EM(Mi),Yt=(w=Bt==null?void 0:Bt.width)!==null&&w!==void 0?w:0,Gt=(I=Bt==null?void 0:Bt.height)!==null&&I!==void 0?I:0,oi=ae+(ye!=="center"?"-"+ye:""),Wi=typeof tt=="number"?tt:{top:0,right:0,bottom:0,left:0,...tt},or=Array.isArray(Ee)?Ee:[Ee],Ei=or.length>0,$r={padding:Wi,boundary:or.filter(RM),altBoundary:Ei},{refs:vn,floatingStyles:Kn,placement:po,isPositioned:Ui,middlewareData:Xi}=_M({strategy:"fixed",placement:oi,whileElementsMounted:(...wr)=>lM(...wr,{animationFrame:pt==="always"}),elements:{reference:Ot.anchor},middleware:[yM({mainAxis:Se+Gt,alignmentAxis:De}),ze&&vM({mainAxis:!0,crossAxis:!1,limiter:at==="partial"?xM():void 0,...$r}),ze&&bM({...$r}),wM({...$r,apply:({elements:wr,rects:Br,availableWidth:In,availableHeight:Gr})=>{const{width:Dr,height:an}=Br.reference,Fn=wr.floating.style;Fn.setProperty("--radix-popper-available-width",`${In}px`),Fn.setProperty("--radix-popper-available-height",`${Gr}px`),Fn.setProperty("--radix-popper-anchor-width",`${Dr}px`),Fn.setProperty("--radix-popper-anchor-height",`${an}px`)}}),Mi&&SM({element:Mi,padding:ve}),zM({arrowWidth:Yt,arrowHeight:Gt}),Ke&&TM({strategy:"referenceHidden",...$r})]}),[Lr,$o]=wb(po),gr=el(xt);mu(()=>{Ui&&(gr==null||gr())},[Ui,gr]);const Jn=(z=Xi.arrow)===null||z===void 0?void 0:z.x,ao=(k=Xi.arrow)===null||k===void 0?void 0:k.y,tr=((B=Xi.arrow)===null||B===void 0?void 0:B.centerOffset)!==0,[Ti,un]=Fi();return mu(()=>{ui&&un(window.getComputedStyle(ui).zIndex)},[ui]),Jt("div",{ref:vn.setFloating,"data-radix-popper-content-wrapper":"",style:{...Kn,transform:Ui?Kn.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ti,"--radix-popper-transform-origin":[(o=Xi.transformOrigin)===null||o===void 0?void 0:o.x,(J=Xi.transformOrigin)===null||J===void 0?void 0:J.y].join(" ")},dir:p.dir},Jt(PM,{scope:be,placedSide:Lr,onArrowChange:gi,arrowX:Jn,arrowY:ao,shouldHideArrow:tr},Jt(tl.div,sn({"data-side":Lr,"data-align":$o},Wt,{ref:ni,style:{...Wt.style,animation:Ui?void 0:"none",opacity:(oe=Xi.hide)!==null&&oe!==void 0&&oe.referenceHidden?0:void 0}}))))});function RM(p){return p!==null}const zM=p=>({name:"transformOrigin",options:p,fn(y){var w,I,z,k,B;const{placement:o,rects:J,middlewareData:oe}=y,ae=((w=oe.arrow)===null||w===void 0?void 0:w.centerOffset)!==0,Se=ae?0:p.arrowWidth,ye=ae?0:p.arrowHeight,[De,ve]=wb(o),ze={start:"0%",center:"50%",end:"100%"}[ve],Ee=((I=(z=oe.arrow)===null||z===void 0?void 0:z.x)!==null&&I!==void 0?I:0)+Se/2,tt=((k=(B=oe.arrow)===null||B===void 0?void 0:B.y)!==null&&k!==void 0?k:0)+ye/2;let at="",Ke="";return De==="bottom"?(at=ae?ze:`${Ee}px`,Ke=`${-ye}px`):De==="top"?(at=ae?ze:`${Ee}px`,Ke=`${J.floating.height+ye}px`):De==="right"?(at=`${-ye}px`,Ke=ae?ze:`${tt}px`):De==="left"&&(at=`${J.floating.width+ye}px`,Ke=ae?ze:`${tt}px`),{data:{x:at,y:Ke}}}});function wb(p){const[y,w="center"]=p.split("-");return[y,w]}const LM=IM,kM=MM,OM=DM,Tb="Popover",[Sb,m5]=iy(Tb,[vb]),Ey=vb(),[FM,Eu]=Sb(Tb),BM=p=>{const{__scopePopover:y,children:w,open:I,defaultOpen:z,onOpenChange:k,modal:B=!1}=p,o=Ey(y),J=Ri(null),[oe,be]=Fi(!1),[ae=!1,Se]=y1({prop:I,defaultProp:z,onChange:k});return Jt(LM,o,Jt(FM,{scope:y,contentId:Pf(),triggerRef:J,open:ae,onOpenChange:Se,onOpenToggle:Ur(()=>Se(ye=>!ye),[Se]),hasCustomAnchor:oe,onCustomAnchorAdd:Ur(()=>be(!0),[]),onCustomAnchorRemove:Ur(()=>be(!1),[]),modal:B},w))},NM="PopoverTrigger",jM=on((p,y)=>{const{__scopePopover:w,...I}=p,z=Eu(NM,w),k=Ey(w),B=Os(y,z.triggerRef),o=Jt(tl.button,sn({type:"button","aria-haspopup":"dialog","aria-expanded":z.open,"aria-controls":z.contentId,"data-state":Ib(z.open)},I,{ref:B,onClick:ls(p.onClick,z.onOpenToggle)}));return z.hasCustomAnchor?o:Jt(kM,sn({asChild:!0},k),o)}),Eb="PopoverPortal",[VM,UM]=Sb(Eb,{forceMount:void 0}),$M=p=>{const{__scopePopover:y,forceMount:w,children:I,container:z}=p,k=Eu(Eb,y);return Jt(VM,{scope:y,forceMount:w},Jt(_u,{present:w||k.open},Jt(M1,{asChild:!0,container:z},I)))},_d="PopoverContent",GM=on((p,y)=>{const w=UM(_d,p.__scopePopover),{forceMount:I=w.forceMount,...z}=p,k=Eu(_d,p.__scopePopover);return Jt(_u,{present:I||k.open},k.modal?Jt(HM,sn({},z,{ref:y})):Jt(qM,sn({},z,{ref:y})))}),HM=on((p,y)=>{const w=Eu(_d,p.__scopePopover),I=Ri(null),z=Os(y,I),k=Ri(!1);return qi(()=>{const B=I.current;if(B)return Z1(B)},[]),Jt(H1,{as:Df,allowPinchZoom:!0},Jt(Ab,sn({},p,{ref:z,trapFocus:w.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ls(p.onCloseAutoFocus,B=>{var o;B.preventDefault(),k.current||(o=w.triggerRef.current)===null||o===void 0||o.focus()}),onPointerDownOutside:ls(p.onPointerDownOutside,B=>{const o=B.detail.originalEvent,J=o.button===0&&o.ctrlKey===!0,oe=o.button===2||J;k.current=oe},{checkForDefaultPrevented:!1}),onFocusOutside:ls(p.onFocusOutside,B=>B.preventDefault(),{checkForDefaultPrevented:!1})})))}),qM=on((p,y)=>{const w=Eu(_d,p.__scopePopover),I=Ri(!1),z=Ri(!1);return Jt(Ab,sn({},p,{ref:y,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:k=>{var B;if((B=p.onCloseAutoFocus)===null||B===void 0||B.call(p,k),!k.defaultPrevented){var o;I.current||(o=w.triggerRef.current)===null||o===void 0||o.focus(),k.preventDefault()}I.current=!1,z.current=!1},onInteractOutside:k=>{var B,o;(B=p.onInteractOutside)===null||B===void 0||B.call(p,k),k.defaultPrevented||(I.current=!0,k.detail.originalEvent.type==="pointerdown"&&(z.current=!0));const J=k.target;((o=w.triggerRef.current)===null||o===void 0?void 0:o.contains(J))&&k.preventDefault(),k.detail.originalEvent.type==="focusin"&&z.current&&k.preventDefault()}}))}),Ab=on((p,y)=>{const{__scopePopover:w,trapFocus:I,onOpenAutoFocus:z,onCloseAutoFocus:k,disableOutsidePointerEvents:B,onEscapeKeyDown:o,onPointerDownOutside:J,onFocusOutside:oe,onInteractOutside:be,...ae}=p,Se=Eu(_d,w),ye=Ey(w);return P1(),Jt(S1,{asChild:!0,loop:!0,trapped:I,onMountAutoFocus:z,onUnmountAutoFocus:k},Jt(x1,{asChild:!0,disableOutsidePointerEvents:B,onInteractOutside:be,onEscapeKeyDown:o,onPointerDownOutside:J,onFocusOutside:oe,onDismiss:()=>Se.onOpenChange(!1)},Jt(OM,sn({"data-state":Ib(Se.open),role:"dialog",id:Se.contentId},ye,ae,{ref:y,style:{...ae.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 Ib(p){return p?"open":"closed"}const ZM=BM,WM=jM,XM=$M,YM=GM,Cb=p=>{var w;const y=Number((w=p.match(/\d/g))==null?void 0:w.join(""));return Number.isNaN(y)?0:y},KM=(p,y={by:"results-count",order:"descending"})=>{const w=[...p];switch(y.by){case"results-count":w.sort((I,z)=>I.jobs-z.jobs);break;case"alphabetically":w.sort((I,z)=>I.label.localeCompare(z.label));break;case"numerically":w.sort((I,z)=>{const k=Cb(I.value),B=Cb(z.value);return k-B});break}return y.order==="descending"&&w.reverse(),w},gd=Uo({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}}),Mb=Uo({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"}}),Pb=Uo({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"}}}),Db=Uo({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}}),JM=Uo({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"}}}),QM=({children:p,colorScheme:y})=>ue("span",{class:JM({colorScheme:y}),children:ue("span",{class:"block w-[3ch] text-center tabular-nums",children:p})}),eP=(p,y)=>{const w=p.indexOf(y);return w===-1?[...p,y]:p.filter((I,z)=>z!==w)},tP=(p,y)=>{if(p===null)return!1;const w=p[y.value];return w===void 0?!0:w===0},iP=(p,y)=>{const w=I=>I>99?"99+":I.toString();return w(p===null?y.jobs:p[y.value]??0)},rP=({value:p,property:y,useQuery:w,isMobile:I,onValueChange:z,onClose:k})=>{const{t:B}=On(),o=id(w()),J=fn(()=>{switch(o.queryState){case"error":case"idle":case"loading":return null;case"loaded":case"revalidating":{const ye=o.data[y.key]??[];return Object.fromEntries(ye.map(De=>[De.value,De.jobs]))}default:jo(o)}},[o,y.key]),oe=Ob(p),be=oe.length>0,[ae,Se]=Fi();return ue("div",{class:"theme-fill:bg-neutral-1 flex min-h-0 w-full flex-1 flex-col",children:[y.searchable&&ue("div",{class:"border-b-px border-neutral-4",children:ue("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:ae,onInput:ye=>Se(ye.currentTarget.value),placeholder:B("type_to_search")})}),(()=>{switch(o.queryState){case"error":return ue(Ja,{error:new Error(B("filters_loading_error"),{cause:o.error}),class:"flex-1",resetError:()=>o.swr.mutate()});case"idle":case"loading":return ue("div",{"aria-hidden":!0,class:"flex flex-col p-2",children:Array.from({length:10}).map((ye,De)=>ue("div",{style:{animationDelay:De*-.1+"s"},class:"bg-neutral-3 animate-skeleton h-12 w-full"},De))});case"revalidating":case"loaded":{const ye=o.data[y.key]??[],De=ae&&ae.length>1?ye.filter(Ee=>Ee.label.toLowerCase().includes(ae.toLowerCase())):ye,ve=[];for(const Ee of De){if(Ee.label.length<1)continue;const tt={...Ee,results:iP(J,Ee),disabled:tP(J,Ee)};switch(y.results){case"only-available":tt.disabled===!1&&ve.push(tt);break;default:ve.push(tt)}}return ve.find(Ee=>!Ee.disabled)?ue("ul",{class:Mb(),children:KM(ve,y.sortSuggestions).map(Ee=>{const tt=oe.includes(Ee.value);return ue("li",{class:Pb({type:"line"}),children:ue("button",{type:"button",disabled:Ee.disabled,"data-filter":!0,"data-current-value":tt?"true":void 0,onClick:()=>{switch(p.select){case"many":{const at=eP(oe,Ee.value);z({select:"many",value:at});break}case"one":z({select:"one",value:tt?void 0:Ee.value});break;default:jo(p)}},class:Db({active:tt,disabled:Ee.disabled}),children:[ue("span",{class:"max-w-full truncate",children:Ee.label})," ",ue(QM,{colorScheme:tt?"accentStrong":"neutralStrong",children:Ee.results})]})},Ee.value)})}):ue("p",{class:"font-style-tag text-style-tag font-weight-tag w-full flex-1 px-4 pb-1 pt-4 text-center",children:B("no_filter_options_available")})}default:jo(o)}})(),ue("footer",{class:"flex flex-none justify-end p-2",children:[ue("div",{class:"flex-1",children:be&&ue("button",{type:"button",class:da({variant:"neutral",icon:"left"}),onClick:()=>{z(void 0)},children:[ue(An,{"aria-hidden":!0,name:"x"})," ",B("clear")]})}),p.select==="many"&&I&&ue("div",{class:"flex items-center overflow-hidden",children:ue("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:[oe.length," ",B("selected")]})}),ue("div",{class:"flex-1",children:ue("button",{type:"button",class:da({variant:be?"accent":"neutral",class:"ml-auto"}),onClick:k,children:B(be?"done":"close")},be?"done":"close")})]})]})},Rb=8,zb={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"},Lb=Uo({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"}}}),kb=Uo({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"}}}),Ob=p=>typeof p.value=="string"?[p.value]:p.value??[],nP=({selectedValues:p})=>{const y=p.length;return y===0?null:ue("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:y},y)},oP=({active:p,value:y,onActiveChange:w,property:I,onValueChange:z,unfilteredQuery:k,useQuery:B,theme:o,widgetId:J})=>{const oe=ec(I.key,zb)?zb[I.key]:void 0,be=I.icon??oe??"filter",ae=Ob(y),Se=ae.length>0,ye=_1("(pointer: coarse)"),De=ue(er,{children:[ue("div",{class:"flex min-w-0 flex-1 items-center gap-1.5",children:[ue(An,{"aria-hidden":!0,class:"flex-none",name:be}),ue("span",{class:"truncate",children:I.label})]}),ue(An,{"aria-hidden":!0,class:"text-neutral-8 flex-shrink-0 rotate-90 transition-transform group-data-[state=open]:-rotate-90",name:"chevron-right"}),ue(nP,{selectedValues:ae})]}),ve=ue(rP,{useQuery:B,onClose:()=>w(!1),onValueChange:z,unfilteredQuery:k,property:I,value:y,isMobile:ye});return ye?ue(TC,{open:p,onOpenChange:w,children:[ue(SC,{"data-filter-key":I.key,"aria-label":I.label,"aria-selected":p?"true":void 0,class:Lb({state:p||Se?"active":"default"}),onTouchStart:sP,children:De}),ue(EC,{children:ue("div",{class:"inploi-job-search","data-widget-id":J,children:[ue(AC,{class:"animate-fade-in fixed inset-0 z-50 bg-[#0009]"}),ue(IC,{class:kb({mode:"mobile",class:ey(o)}),children:[ue("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:[ue(An,{name:be,class:"flex-none"}),ue("p",{class:"font-style-filter font-weight-filter text-style-filter truncate",children:I.label})]}),ve]})]})})]}):ue(ZM,{open:p,onOpenChange:ze=>w(ze),modal:ye,children:[ue(WM,{"data-filter-key":I.key,"aria-label":I.label,"aria-selected":p?"true":void 0,class:Lb({state:p||Se?"active":"default"}),children:De}),ue(XM,{children:ue("div",{class:"inploi-job-search","data-widget-id":J,children:ue(YM,{side:"bottom",sideOffset:Rb,align:"center",collisionPadding:Rb,class:kb({mode:"desktop",class:ey(o)}),children:ve})})})]})};function sP(){}const aP=(p,y)=>{var w,I,z;switch(y.select){case"many":(w=y.value)==null||w.forEach(k=>{var B,o;switch(p.select){case"many":(B=p.value)!=null&&B.includes(k)||(o=p.value)==null||o.push(k);break;case"one":p.value=k}});break;case"one":if(!y.value)break;switch(p.select){case"many":(I=p.value)!=null&&I.includes(y.value)||(z=p.value)==null||z.push(y.value);break;case"one":p.value=y.value}break}},lP=({value:p,activeKey:y})=>{switch(p==null?void 0:p.select){case void 0:return{newValue:void 0,newActiveKey:y};case"one":case"many":return{newValue:p,newActiveKey:y};default:jo(p)}},cP=({properties:p,state:y,onFilterValueChange:w,onResetFilters:I,rpcClient:z,theme:k,alerts:B,widgetId:o})=>{const{t:J}=On(),[oe,be]=Fi(void 0),ae=fn(()=>({filters:zy(p,"value"),mode:y.mode,query:"",geo:void 0,page:1,view:"list"}),[p,y.mode]),Se=id(hd(ty({state:ae,baseKey:"filters"}),()=>ux({rpcClient:z,state:ae}),yf)),ye=Ur(De=>()=>{const ve={...y,filters:{...y.filters,[De]:ae.filters[De]}};return hd(ty({state:ve,baseKey:"filters"}),()=>ux({rpcClient:z,state:ve}),yf)},[z,ae.filters,y]);return Se.queryState==="error"?ue(Ja,{error:new Error(J("filters_loading_error"),{cause:Se.error}),resetError:()=>Se.swr.mutate()}):ue("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(De=>De.hidden!==!0).map(De=>{const ve=oe===De.key,ze=y.filters[De.key]??{select:De.select,value:void 0},Ee=ae.filters[De.key];Ee&&aP(ze,Ee);const tt=pt=>{const{newActiveKey:xt,newValue:Wt}=lP({property:De,activeKey:oe,value:pt??Ee,properties:p,appliedFilters:y.filters});return be(xt),w(De.key,Wt)},at=pt=>be(pt?De.key:void 0),Ke=ye(De.key);return ue(nd,{Fallback:Ja,children:ue(oP,{unfilteredQuery:Se,active:ve,property:De,onActiveChange:at,value:ze,useQuery:Ke,onValueChange:tt,theme:k,widgetId:o})},De.key)}),ue("button",{type:"button",class:da({variant:"neutral"}),onClick:I,children:J("reset")}),B?ue("div",{id:"inploi-job-alerts",class:"min-h-[36px]",children:ue("div",{class:"rounded-job-card bg-neutral-2 flex h-[36px] animate-pulse items-center gap-2 px-2",children:[ue("div",{class:"block h-6 w-6"}),ue("p",{class:"text-style-tag text-neutral-6 pr-2 font-[500]",children:B.params.config.label})]})}):null]})};function uP(p){var y=typeof p;return p!=null&&(y=="object"||y=="function")}var Xf=uP,hP=typeof ad=="object"&&ad&&ad.Object===Object&&ad,dP=hP,pP=dP,fP=typeof self=="object"&&self&&self.Object===Object&&self,mP=pP||fP||Function("return this")(),Yf=mP,_P=Yf,gP=function(){return _P.Date.now()},yP=gP,vP=/\s/;function xP(p){for(var y=p.length;y--&&vP.test(p.charAt(y)););return y}var bP=xP,wP=bP,TP=/^\s+/;function SP(p){return p&&p.slice(0,wP(p)+1).replace(TP,"")}var EP=SP,AP=Yf,IP=AP.Symbol,Ay=IP,Fb=Ay,Bb=Object.prototype,CP=Bb.hasOwnProperty,MP=Bb.toString,yd=Fb?Fb.toStringTag:void 0;function PP(p){var y=CP.call(p,yd),w=p[yd];try{p[yd]=void 0;var I=!0}catch{}var z=MP.call(p);return I&&(y?p[yd]=w:delete p[yd]),z}var DP=PP,RP=Object.prototype,zP=RP.toString;function LP(p){return zP.call(p)}var kP=LP,Nb=Ay,OP=DP,FP=kP,BP="[object Null]",NP="[object Undefined]",jb=Nb?Nb.toStringTag:void 0;function jP(p){return p==null?p===void 0?NP:BP:jb&&jb in Object(p)?OP(p):FP(p)}var Vb=jP;function VP(p){return p!=null&&typeof p=="object"}var UP=VP,$P=Vb,GP=UP,HP="[object Symbol]";function qP(p){return typeof p=="symbol"||GP(p)&&$P(p)==HP}var Kf=qP,ZP=EP,Ub=Xf,WP=Kf,$b=0/0,XP=/^[-+]0x[0-9a-f]+$/i,YP=/^0b[01]+$/i,KP=/^0o[0-7]+$/i,JP=parseInt;function QP(p){if(typeof p=="number")return p;if(WP(p))return $b;if(Ub(p)){var y=typeof p.valueOf=="function"?p.valueOf():p;p=Ub(y)?y+"":y}if(typeof p!="string")return p===0?p:+p;p=ZP(p);var w=YP.test(p);return w||KP.test(p)?JP(p.slice(2),w?2:8):XP.test(p)?$b:+p}var eD=QP,tD=Xf,Iy=yP,Gb=eD,iD="Expected a function",rD=Math.max,nD=Math.min;function oD(p,y,w){var I,z,k,B,o,J,oe=0,be=!1,ae=!1,Se=!0;if(typeof p!="function")throw new TypeError(iD);y=Gb(y)||0,tD(w)&&(be=!!w.leading,ae="maxWait"in w,k=ae?rD(Gb(w.maxWait)||0,y):k,Se="trailing"in w?!!w.trailing:Se);function ye(xt){var Wt=I,Ot=z;return I=z=void 0,oe=xt,B=p.apply(Ot,Wt),B}function De(xt){return oe=xt,o=setTimeout(Ee,y),be?ye(xt):B}function ve(xt){var Wt=xt-J,Ot=xt-oe,ui=y-Wt;return ae?nD(ui,k-Ot):ui}function ze(xt){var Wt=xt-J,Ot=xt-oe;return J===void 0||Wt>=y||Wt<0||ae&&Ot>=k}function Ee(){var xt=Iy();if(ze(xt))return tt(xt);o=setTimeout(Ee,ve(xt))}function tt(xt){return o=void 0,Se&&I?ye(xt):(I=z=void 0,B)}function at(){o!==void 0&&clearTimeout(o),oe=0,I=J=z=o=void 0}function Ke(){return o===void 0?B:tt(Iy())}function pt(){var xt=Iy(),Wt=ze(xt);if(I=arguments,z=this,J=xt,Wt){if(o===void 0)return De(J);if(ae)return clearTimeout(o),o=setTimeout(Ee,y),ye(J)}return o===void 0&&(o=setTimeout(Ee,y)),B}return pt.cancel=at,pt.flush=Ke,pt}var sD=oD;const aD=zg(sD),Hb=(p,y=1e3)=>{const[w,I]=Fi(p),z=fn(()=>aD(k=>I(k),y),[y]);return qi(()=>{z(p)},[p,z]),w},lD=on(({disabled:p,error:y,name:w,inputPlaceholder:I,items:z,onItemSelect:k,onQueryChange:B,onBlur:o,onFocus:J,inputProps:oe,menuProps:be,query:ae},Se)=>{const[ye,De]=Fi(!1),[ve,ze]=Fi(),{t:Ee}=On(),tt=Ri();qi(()=>{var Ke;ze((Ke=z[0])==null?void 0:Ke.id)},[z]);const at=Ke=>{k(Ke),De(!1)};return ue("div",{class:"relative h-full",children:[ue("input",{name:w,ref:Se,disabled:p,"data-active":ye?"true":void 0,"aria-controls":`ijs-${w}-menu`,placeholder:I,class:gd({size:"md"}),onFocus:()=>{J==null||J(),De(!0)},onBlur:()=>{tt.current=window.setTimeout(()=>{o==null||o(),De(!1)},100)},value:ae,onChange:Ke=>B(Ke.currentTarget.value),onKeyDown:Ke=>{switch(De(!0),Ke.key){case"ArrowDown":case"ArrowUp":{const pt=Ke.key==="ArrowDown"?1:-1;Ke.preventDefault();const xt=z.findIndex(Ot=>Ot.id===ve);if(xt===-1)return;const Wt=z[xt+pt]??z[Ke.key==="ArrowDown"?0:z.length-1];if(!Wt)return;ze(Wt.id);break}case"Enter":{if(Ke.preventDefault(),!ve)return;k(ve)}}},...oe}),!y&&ye&&!p&&z.length>0?ue("ul",{className:Mb({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-${w}-menu`,onMouseDown:()=>{tt.current&&clearTimeout(tt.current)},...be,children:y?ue("div",{role:"alert",children:Ee("geo_suggestions_error")}):z.map(Ke=>ue("li",{class:Pb({type:"line",className:"group/tag"}),children:ue("button",{type:"button",onMouseEnter:()=>ze(Ke.id),class:Db({active:Ke.id===ve,className:"line-clamp-1 overflow-hidden truncate"}),onClick:()=>at(Ke.id),onKeyDown:pt=>{pt.key==="Enter"&&at(Ke.id)},children:Ke.label})},Ke.id))}):null]})}),cD=(p={})=>new Promise((y,w)=>{var I,z;if((I=p.signal)!=null&&I.aborted){w(new DOMException("Aborted","AbortError"));return}navigator.geolocation.getCurrentPosition(k=>y(k.coords),k=>w(k),p),(z=p.signal)==null||z.addEventListener("abort",()=>{w(new DOMException("Aborted","AbortError"))},{once:!0})}),uD={1:"geo_error_permission_denied",2:"geo_error_position_unavailable",3:"geo_error_timeout"},qb=typeof window<"u"&&"geolocation"in navigator&&window.isSecureContext,hD=({onLocate:p,onError:y,signal:w})=>{const[I,z]=Fi("idle"),[k,B]=Fi(null),{t:o}=On(),J=oe=>{z("idle"),B(oe),p(oe)};return ue("button",{"aria-label":o(I==="loading"?"geo_locating":"geo_my_location"),type:"button",onClick:()=>{if(qb){if(z("loading"),k)return J(k);cD({signal:w}).then(oe=>{const be={lat:oe.latitude,lng:oe.longitude};J(be)}).catch(oe=>{if(oe instanceof DOMException&&oe.name==="AbortError")return z("idle");z("error");const be=uD[oe.code];if(!be)return;const ae=o(be);y(ae)})}},"data-state":I,class:da({variant:"accent",size:"lg",icon:"only",className:"data-[state=loading]:animate-pulse"}),disabled:!qb||I==="error",children:ue(An,{name:"target-location"})})},Au=Uo({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}}),dD="https://api.mapbox.com/search/geocode/v6/forward",pD="ZzRDWFU0dTZ3SF9aWk9RNGl6QzZaWS5RZmlFak13a0hPbGxXZXlNSGN5RUhObUJ6TXpSV08yUW5OdE5tSTZJU1lpd2lJb1JYYXRObmJ2Tm5iaGhHZWx4V1lpb2pJMUp5ZS5rcA==",fD=p=>atob(p).split("").reverse().join(""),mD=Eo({features:td(ss(Eo({properties:Eo({mapbox_id:nn(),place_formatted:nc(nn()),name_preferred:nc(nn(),"Untitled location"),coordinates:ss(Eo({latitude:os(),longitude:os()}),ns(({latitude:p,longitude:y})=>({lat:p,lng:y})))})}),ns(p=>p.properties)))}),_D=(p,y)=>Array.from(new Map(p.map(w=>[typeof y=="function"?y(w):w[y],w])).values()),gD=async p=>{if(!p)return[];const y=new URL(dD);y.searchParams.set("q",p),y.searchParams.set("proximity","ip"),y.searchParams.set("access_token",fD(pD));const w=await fetch(y);if(!w.ok)throw new Error("Failed to get address details");const I=gg(mD,await w.json());if(I.success===!1)throw console.error(I.issues),new Error("Invalid data");const{features:z}=I.output;return _D(z,k=>k.name_preferred+k.place_formatted)},yD=({onSelect:p,onValueChange:y,coords:w,radius:I,onError:z})=>{const{t:k}=On(),[B,o]=Fi(""),[J,oe]=Fi(),be=Hb(B,500),[ae,Se]=Fi(new AbortController),ye=hd(be,gD,{keepPreviousData:!1,revalidateIfStale:!1,revalidateOnFocus:!1}),{data:De,queryState:ve,error:ze}=id(ye),[Ee,tt]=Fi("view"),at=Ri(null);return qi(()=>{if(Ee==="edit"){if(!at.current)return;at.current.focus()}},[Ee]),ue("div",{class:"relative flex-1",children:[Ee==="view"&&w?ue("button",{"aria-label":k("geo_search_placeholder"),type:"button",class:gd({size:"unsized",className:"flex h-10 w-full cursor-text items-stretch px-1 py-1"}),onClick:()=>{tt("edit")},children:ue("div",{class:Au({size:"sm",variant:"accentStrong",interactive:!0,class:"truncate"}),children:J??k("location_provided")})}):ue(lD,{ref:at,error:ze,query:B,name:"location-search",onQueryChange:o,onFocus:()=>{ae.abort(),Se(new AbortController)},onBlur:()=>{tt("view"),o("")},onItemSelect:Ke=>{if(ve!=="loaded")return;const pt=De.find(xt=>xt.mapbox_id===Ke);pt&&(p(pt.coordinates),tt("view"),oe(pt.name_preferred))},inputPlaceholder:k("geo_search_placeholder"),items:(De==null?void 0:De.map(Ke=>({id:Ke.mapbox_id,label:ue("div",{class:"flex min-w-0 max-w-full gap-2 overflow-hidden",children:[ue("strong",{class:"truncate",children:Ke.name_preferred})," ",ue("span",{class:"flex-1 truncate opacity-50",children:Ke.place_formatted})]})})))??[]}),ue("div",{class:"absolute bottom-0 right-0 top-0 flex items-center",children:!B&&!w?ue(hD,{onLocate:Ke=>{tt("view"),oe(k("geo_my_location")),y({type:"provided",coords:Ke,radius:I})},onError:z,signal:ae.signal}):ue("button",{type:"button","aria-label":k("geo_clear_search"),onClick:()=>{o(""),oe(void 0),y({radius:I,type:"provided"}),tt("edit"),at.current&&(at.current.value="",at.current.focus())},class:da({variant:"neutral",size:"lg",icon:"only"}),children:ue(An,{name:"x"})})})]})},vD=[.25,.5,1,3,5,10,15,20,30,40],xD=20,Zb=p=>p*1609.34,bD=new Intl.NumberFormat(void 0,{style:"unit",unit:"mile",unitDisplay:"long",maximumFractionDigits:1,trailingZeroDisplay:"stripIfInteger"}),wD=ss(Eo({type:Rs("provided"),lat:nc(ss(nn(),ns(Number))),lng:nc(ss(nn(),ns(Number))),radius:ss(nn(),ns(Number))}),ns(p=>({radius:p.radius,type:p.type,coords:p.lat&&p.lng?{lat:p.lat,lng:p.lng}:void 0}))),TD=({value:p,onValueChange:y,logger:w})=>{const{t:I}=On(),z=xf(),k=(p==null?void 0:p.type)==="provided"?p.radius:Zb(xD),[B,o]=Fi();return ue("div",{class:"flex flex-col gap-2",children:[ue("form",{onChange:J=>{const oe=new FormData(J.currentTarget),be=gg(wD,Object.fromEntries(oe.entries()));if(!be.success){w.error(be.issues),o(be.issues[0].message);return}y(be.output)},class:"flex flex-col gap-2 md:flex-row",children:[ue("input",{type:"hidden",name:"type",value:"provided"}),(p==null?void 0:p.type)==="provided"&&p.coords?ue(er,{children:[ue("input",{type:"hidden",name:"lat",value:p.coords.lat}),ue("input",{type:"hidden",name:"lng",value:p.coords.lng})]}):null,ue(yD,{coords:(p==null?void 0:p.type)==="provided"?p.coords:void 0,radius:k,onValueChange:y,onSelect:J=>{o(void 0),y({type:"provided",radius:k,coords:J})},onError:o}),ue("div",{class:"relative",children:[ue("label",{class:"sr-only",for:z,children:I("geo_range_label")}),ue("select",{id:z,name:"radius",class:gd({size:"unsized",className:"w-full appearance-none truncate py-2 pl-3 pr-10"}),value:k,onChange:J=>{o(void 0),y({type:"provided",coords:(p==null?void 0:p.type)==="provided"?p.coords:void 0,radius:Number(J.currentTarget.value)})},children:vD.map(J=>ue("option",{value:Zb(J),class:"truncate",children:bD.format(J)},J))}),ue("div",{class:"text-copy-neutral-lowcontrast pointer-events-none absolute bottom-0 right-0 top-0 flex w-10 items-center justify-center",children:ue(An,{name:"chevron-right",class:"h-6 w-6 rotate-90"})})]})]}),B?ue("div",{role:"alert",class:"text-pretty text-copy-neutral font-style-tag font-weight-tag text-style-tag flex gap-1",children:[ue(An,{name:"warning",class:"animate-appear-tag size-[1lh] flex-none"}),B]}):null]})},SD=2,ED=({value:p,onValueChange:y})=>{const[w,I]=Fi(p??""),z=w!==""&&w===p,{t:k}=On();return qi(()=>{I(p??"")},[p]),qi(()=>{let B=w.trim();if(B.length<=SD&&(B=null),B===null){y("");return}const o=setTimeout(()=>{y(B)},300);return()=>clearTimeout(o)},[w,y]),ue("div",{class:"flex flex-col gap-3",children:ue("div",{class:"relative",children:[ue("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[ue(An,{"aria-hidden":!0,title:"Search by keyword",name:"magnifierSimple",class:uu({"text-copy-neutral-icon":!z,"text-copy-accent-icon":z})}),ue("span",{class:"sr-only",children:"Keyword"})]}),ue("input",{autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"search",class:gd({hasValue:z,size:"unsized",class:"peer py-2 pl-10 pr-4"}),placeholder:k("type_to_search_jobs"),value:w,onChange:B=>{I(B.currentTarget.value)}}),ue("button",{type:"button",class:da({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{I("")},children:ue(An,{name:"x"})})]})})},AD=({intervalMs:p,strings:y,class:w})=>{const[I,z]=Fi(0),[k,B]=Fi(!0),o=[...y,y[0]];return qi(()=>{I===o.length&&(B(!1),z(0));const J=setTimeout(()=>{B(!0),z(oe=>oe+1)},p);return()=>clearTimeout(J)},[I,o.length,p]),ue("div",{className:uu("relative h-full w-full overflow-hidden",w),children:ue("div",{className:uu("absolute w-full",{"transition-transform duration-500 ease-in-out":k}),style:{height:`${100*o.length}%`,transform:`translateY(-${I*(100/o.length)}%)`},children:o.map((J,oe)=>ue("div",{className:"flex items-center whitespace-nowrap",style:{height:`${100/o.length}%`},children:J},oe))})})},ID=(p,y)=>{qi(()=>{const w=I=>{document.activeElement===p.current&&y(I)};return document.addEventListener("selectionchange",w),()=>document.removeEventListener("selectionchange",w)},[p,y])},Wb=3,CD=({value:p,onValueChange:y,options:w})=>{const[I,z]=Fi(p??""),k=I.trim(),B=k!==""&&k===p,{t:o}=On(),J=k.split("");qi(()=>{z(p??"")},[p]);const[oe,be]=Fi(0),ae=Ri(null);return ID(ae,Se=>{Se.target instanceof HTMLInputElement&&be(Se.target.scrollLeft)}),qi(()=>{let Se=I.trim();if(Se.length<=Wb&&(Se=null),Se===null){y("");return}const ye=setTimeout(()=>{y(Se.trim())},1e3);return()=>clearTimeout(ye)},[I,y]),ue("div",{class:"mb-2 flex flex-col gap-2",children:[ue("div",{class:"relative",children:[ue("label",{class:"absolute left-0 flex h-full items-center px-2",for:"ijs-keyword",children:[ue(An,{"aria-hidden":!0,title:"Search by keyword",name:"ai",class:uu("duration-snappy transition-transform",{"text-copy-neutral-icon scale-90":!B,"text-copy-accent-icon":B})}),ue("span",{class:"sr-only",children:"Keyword"})]}),ue("input",{ref:ae,autoComplete:"off",autocomplete:"off",name:"keyword",id:"ijs-keyword",type:"text",placeholder:w!=null&&w.suggestions?w.suggestions.join(", "):" ",class:gd({hasValue:B,size:"unsized",class:"peer px-10 py-2 tracking-tight !text-transparent placeholder:!text-transparent"}),style:{fontKerning:"none"},value:I,onChange:Se=>{const ye=Se.currentTarget.value.trim();z(ye)},onKeyDown:Se=>{if(Se.key==="Enter"){if(Se.currentTarget.value.trim().length<=Wb)return;Se.preventDefault(),y(I)}}}),ue("div",{"data-synced":B,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:k.length>0?ue("div",{"aria-hidden":!0,class:"flex items-center whitespace-nowrap",style:{transform:`translateX(${-oe}px)`},children:J.map((Se,ye)=>ue("span",{style:{animationDelay:`${ye*300/J.length}ms`},class:"group-data-[synced=true]:animate-ai-letter inline-block",children:Se===" "?" ":Se},k+ye))}):w!=null&&w.suggestions?ue(AD,{intervalMs:2e3,strings:w.suggestions,class:"opacity-30","aria-hidden":!0}):null}),ue("button",{type:"button",class:da({variant:"neutral",size:"lg",position:"absolute",class:"bottom-0 right-0 top-0 h-full peer-placeholder-shown:hidden",icon:"only"}),onClick:()=>{z(""),y("")},children:ue(An,{name:"x"})})]}),ue("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:o("ai_disclaimer")})]})};var MD=Array.isArray,Cy=MD,PD=Cy,DD=Kf,RD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zD=/^\w*$/;function LD(p,y){if(PD(p))return!1;var w=typeof p;return w=="number"||w=="symbol"||w=="boolean"||p==null||DD(p)?!0:zD.test(p)||!RD.test(p)||y!=null&&p in Object(y)}var kD=LD,OD=Vb,FD=Xf,BD="[object AsyncFunction]",ND="[object Function]",jD="[object GeneratorFunction]",VD="[object Proxy]";function UD(p){if(!FD(p))return!1;var y=OD(p);return y==ND||y==jD||y==BD||y==VD}var $D=UD,GD=Yf,HD=GD["__core-js_shared__"],qD=HD,My=qD,Xb=function(){var p=/[^.]+$/.exec(My&&My.keys&&My.keys.IE_PROTO||"");return p?"Symbol(src)_1."+p:""}();function ZD(p){return!!Xb&&Xb in p}var WD=ZD,XD=Function.prototype,YD=XD.toString;function KD(p){if(p!=null){try{return YD.call(p)}catch{}try{return p+""}catch{}}return""}var JD=KD,QD=$D,eR=WD,tR=Xf,iR=JD,rR=/[\\^$.*+?()[\]{}|]/g,nR=/^\[object .+?Constructor\]$/,oR=Function.prototype,sR=Object.prototype,aR=oR.toString,lR=sR.hasOwnProperty,cR=RegExp("^"+aR.call(lR).replace(rR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function uR(p){if(!tR(p)||eR(p))return!1;var y=QD(p)?cR:nR;return y.test(iR(p))}var hR=uR;function dR(p,y){return p==null?void 0:p[y]}var pR=dR,fR=hR,mR=pR;function _R(p,y){var w=mR(p,y);return fR(w)?w:void 0}var Yb=_R,gR=Yb,yR=gR(Object,"create"),Jf=yR,Kb=Jf;function vR(){this.__data__=Kb?Kb(null):{},this.size=0}var xR=vR;function bR(p){var y=this.has(p)&&delete this.__data__[p];return this.size-=y?1:0,y}var wR=bR,TR=Jf,SR="__lodash_hash_undefined__",ER=Object.prototype,AR=ER.hasOwnProperty;function IR(p){var y=this.__data__;if(TR){var w=y[p];return w===SR?void 0:w}return AR.call(y,p)?y[p]:void 0}var CR=IR,MR=Jf,PR=Object.prototype,DR=PR.hasOwnProperty;function RR(p){var y=this.__data__;return MR?y[p]!==void 0:DR.call(y,p)}var zR=RR,LR=Jf,kR="__lodash_hash_undefined__";function OR(p,y){var w=this.__data__;return this.size+=this.has(p)?0:1,w[p]=LR&&y===void 0?kR:y,this}var FR=OR,BR=xR,NR=wR,jR=CR,VR=zR,UR=FR;function Iu(p){var y=-1,w=p==null?0:p.length;for(this.clear();++y<w;){var I=p[y];this.set(I[0],I[1])}}Iu.prototype.clear=BR,Iu.prototype.delete=NR,Iu.prototype.get=jR,Iu.prototype.has=VR,Iu.prototype.set=UR;var $R=Iu;function GR(){this.__data__=[],this.size=0}var HR=GR;function qR(p,y){return p===y||p!==p&&y!==y}var ZR=qR,WR=ZR;function XR(p,y){for(var w=p.length;w--;)if(WR(p[w][0],y))return w;return-1}var Qf=XR,YR=Qf,KR=Array.prototype,JR=KR.splice;function QR(p){var y=this.__data__,w=YR(y,p);if(w<0)return!1;var I=y.length-1;return w==I?y.pop():JR.call(y,w,1),--this.size,!0}var ez=QR,tz=Qf;function iz(p){var y=this.__data__,w=tz(y,p);return w<0?void 0:y[w][1]}var rz=iz,nz=Qf;function oz(p){return nz(this.__data__,p)>-1}var sz=oz,az=Qf;function lz(p,y){var w=this.__data__,I=az(w,p);return I<0?(++this.size,w.push([p,y])):w[I][1]=y,this}var cz=lz,uz=HR,hz=ez,dz=rz,pz=sz,fz=cz;function Cu(p){var y=-1,w=p==null?0:p.length;for(this.clear();++y<w;){var I=p[y];this.set(I[0],I[1])}}Cu.prototype.clear=uz,Cu.prototype.delete=hz,Cu.prototype.get=dz,Cu.prototype.has=pz,Cu.prototype.set=fz;var mz=Cu,_z=Yb,gz=Yf,yz=_z(gz,"Map"),vz=yz,Jb=$R,xz=mz,bz=vz;function wz(){this.size=0,this.__data__={hash:new Jb,map:new(bz||xz),string:new Jb}}var Tz=wz;function Sz(p){var y=typeof p;return y=="string"||y=="number"||y=="symbol"||y=="boolean"?p!=="__proto__":p===null}var Ez=Sz,Az=Ez;function Iz(p,y){var w=p.__data__;return Az(y)?w[typeof y=="string"?"string":"hash"]:w.map}var em=Iz,Cz=em;function Mz(p){var y=Cz(this,p).delete(p);return this.size-=y?1:0,y}var Pz=Mz,Dz=em;function Rz(p){return Dz(this,p).get(p)}var zz=Rz,Lz=em;function kz(p){return Lz(this,p).has(p)}var Oz=kz,Fz=em;function Bz(p,y){var w=Fz(this,p),I=w.size;return w.set(p,y),this.size+=w.size==I?0:1,this}var Nz=Bz,jz=Tz,Vz=Pz,Uz=zz,$z=Oz,Gz=Nz;function Mu(p){var y=-1,w=p==null?0:p.length;for(this.clear();++y<w;){var I=p[y];this.set(I[0],I[1])}}Mu.prototype.clear=jz,Mu.prototype.delete=Vz,Mu.prototype.get=Uz,Mu.prototype.has=$z,Mu.prototype.set=Gz;var Hz=Mu,Qb=Hz,qz="Expected a function";function Py(p,y){if(typeof p!="function"||y!=null&&typeof y!="function")throw new TypeError(qz);var w=function(){var I=arguments,z=y?y.apply(this,I):I[0],k=w.cache;if(k.has(z))return k.get(z);var B=p.apply(this,I);return w.cache=k.set(z,B)||k,B};return w.cache=new(Py.Cache||Qb),w}Py.Cache=Qb;var Zz=Py,Wz=Zz,Xz=500;function Yz(p){var y=Wz(p,function(I){return w.size===Xz&&w.clear(),I}),w=y.cache;return y}var Kz=Yz,Jz=Kz,Qz=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eL=/\\(\\)?/g,tL=Jz(function(p){var y=[];return p.charCodeAt(0)===46&&y.push(""),p.replace(Qz,function(w,I,z,k){y.push(z?k.replace(eL,"$1"):I||w)}),y}),iL=tL;function rL(p,y){for(var w=-1,I=p==null?0:p.length,z=Array(I);++w<I;)z[w]=y(p[w],w,p);return z}var nL=rL,ew=Ay,oL=nL,sL=Cy,aL=Kf,lL=1/0,tw=ew?ew.prototype:void 0,iw=tw?tw.toString:void 0;function rw(p){if(typeof p=="string")return p;if(sL(p))return oL(p,rw)+"";if(aL(p))return iw?iw.call(p):"";var y=p+"";return y=="0"&&1/p==-lL?"-0":y}var cL=rw,uL=cL;function hL(p){return p==null?"":uL(p)}var dL=hL,pL=Cy,fL=kD,mL=iL,_L=dL;function gL(p,y){return pL(p)?p:fL(p,y)?[p]:mL(_L(p))}var yL=gL,vL=Kf,xL=1/0;function bL(p){if(typeof p=="string"||vL(p))return p;var y=p+"";return y=="0"&&1/p==-xL?"-0":y}var wL=bL,TL=yL,SL=wL;function EL(p,y){y=TL(y,p);for(var w=0,I=y.length;p!=null&&w<I;)p=p[SL(y[w++])];return w&&w==I?p:void 0}var AL=EL,IL=AL;function CL(p,y,w){var I=p==null?void 0:IL(p,y);return I===void 0?w:I}var ML=CL;const PL=zg(ML),vd=({chars:p})=>ue("span",{style:{width:p+"ch"},class:"rounded-job-tag block h-[1lh] min-h-[1em] bg-[currentColor] opacity-25"}),nw=Uo({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}}),DL=Uo({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"}}),Dy=({job:p,property:y})=>{if(!y)return null;const w=PL(p.raw,y.key);return y.transform?y.transform(w):w},RL=({job:p,config:y="hidden"})=>y==="hidden"?null:ue("div",{class:"rounded-logo h-12 flex-none overflow-hidden",style:{aspectRatio:y.replace(":","/")},children:p.company.logo?ue("img",{src:p.company.logo,alt:p.company.name,class:"h-full w-full select-none object-contain [-webkit-user-drag:none]"}):null}),ow=p=>Array.isArray(p)?p:[p],zL=1e3*60*60*24,sw=({job:p,config:y,onJobClick:w,size:I})=>{var ye,De,ve;const{t:z}=On(),k=y.subheading?Dy({job:p,property:y.subheading}):null,B=y.infoTags.flatMap(ze=>ow(Dy({job:p,property:ze}))).filter(Boolean),o=ow((ye=y.overrides)!=null&&ye.salary?Dy({job:p,property:y.overrides.salary}):p.pay).filter(Boolean),J=y.postedDate??"show",oe=(De=y.overrides)!=null&&De.baseUrl?y.overrides.baseUrl(p.id.toString()):p.href,be=y.newUnderDays??7,ae=p.createdAt?new Date(p.createdAt).getTime()>Date.now()-be*zL:!1,Se=ze=>{var Ee,tt;w==null||w(p),(tt=(Ee=y.overrides)==null?void 0:Ee.onClick)==null||tt.call(Ee,ze)};return ue("a",{onMouseEnter:(ve=y.overrides)==null?void 0:ve.onMouseEnter,onClick:Se,href:oe,target:y.openJob==="redirect-new-tab"?"_blank":void 0,class:nw(),children:[ue("div",{class:"flex min-w-0 flex-1 flex-col gap-4",children:[ue("div",{class:"gap-logo flex items-center",children:[ue(RL,{job:p,config:I!=="sm"?y.logo:void 0}),ue("div",{class:"flex flex-col items-start gap-1",children:[ue("div",{class:"order-2 flex flex-col gap-1",children:[p.match?ue("p",{class:"text-style-job-card text-tag-accent-strong-bg flex items-center ",children:[ue(An,{name:"ai",class:"size-4 inline-block"}),ue("span",{children:p.match})]}):null,ue("p",{class:DL({size:I}),children:[p.title.trim(),ae&&J!=="hide"&&ue(er,{children:[" ",ue("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:z("new")})]})]}),k?ue("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:k}):null]}),J==="show"?ue("p",{class:"text-style-job-card-info text-copy-job-info order-1",children:[z("posted")," ",p.relativePostedDate]}):null]})]}),ue("div",{class:"flex min-w-0 flex-col items-start gap-2",children:[ue("div",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:o.map((ze,Ee)=>ue("span",{class:Au({variant:"monetaryWeak",size:"xs"}),children:ze},Ee))}),B.length>0&&ue("ul",{class:"flex min-w-0 max-w-full flex-wrap items-center gap-2",children:B.map(ze=>ue("li",{class:Au({size:"xs",class:"max-w-full truncate"}),children:ze},ze))})]})]}),I==="sm"?ue("div",{"aria-hidden":!0,class:"absolute right-1 top-1/2 -translate-y-1/2 transform",children:ue(An,{name:"chevron-right",class:"size-5 text-copy-neutral-icon"})}):ue("div",{"aria-hidden":!0,class:"flex items-center",children:ue(An,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},Ry=({config:p,animationDelay:y,seed:w})=>{const I=p.logo??"hidden",z=p.postedDate??"show";return ue("div",{"aria-hidden":!0,style:{animationDelay:y+"s"},class:nw({interactive:!1}),children:[ue("div",{class:"flex flex-1 flex-col gap-4",children:[ue("div",{class:"flex items-center gap-4",children:[I==="hidden"?null:ue("div",{class:"rounded-logo bg-copy-neutral h-12 opacity-25",style:{aspectRatio:I.replace(":","/")}}),ue("div",{class:"flex flex-col items-start gap-1",children:[z==="show"?ue("p",{class:"text-style-job-card-info text-copy-job-info",children:ue(vd,{chars:12})}):null,ue("div",{class:"flex flex-col gap-1",children:[ue("p",{class:"text-style-job-heading font-style-job-heading font-weight-job-heading text-copy-neutral font-family-job-heading",children:ue(vd,{chars:13+(w+5)*w%7})}),p.subheading!==null?ue("p",{class:"text-style-job-card text-copy-neutral-lowcontrast",children:ue(vd,{chars:7+w*w%3})}):null]})]})]}),ue("div",{class:"flex flex-col items-start gap-2",children:[w%2===0&&ue("span",{class:Au({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[10ch]"})}),ue("div",{class:"flex items-center gap-2",children:[ue("span",{class:Au({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[6ch]"})}),ue("span",{class:Au({variant:"neutralWeak",size:"xs",class:"h-[1lh] min-h-[1em] w-[8ch]"})})]})]})]}),ue("div",{"aria-hidden":!0,class:"flex items-center",children:ue(An,{name:"chevron-right",class:"text-copy-neutral-icon"})})]})},LL=({state:p,fetchNextPage:y,config:w,remainingItems:I})=>{const{t:z}=On(),k=Math.min(oc,I);return p==="revalidating"?ue("ul",{class:"flex flex-col gap-3","aria-hidden":!0,children:Array.from({length:oc}).map((B,o)=>ue("li",{children:ue(Ry,{seed:o,animationDelay:(o-4)*.1,config:w})},o))}):ue("button",{type:"button",class:da({variant:"neutral",class:"w-full max-w-[45rem] self-center py-2"}),onClick:y,children:[z("load_more_count",{count:k})," ",z("of_remaining_count",{count:I})]})},kL=({state:p,rpcClient:y,jobCardConfig:w,initialData:I,onResultsUpdate:z,onJobClick:k,onPaginate:B,mode:o,afterResults:J,prioritySegment:oe})=>ue(er,{children:Array.from({length:p.page}).map((be,ae)=>{const Se=ae===p.page-1;return ue(nd,{Fallback:Ja,children:ue(OL,{state:p,rpcClient:y,page:ae+1,isFirst:ae===0,isLast:Se,fetchNextPage:()=>{B(p.page+1)},jobCardConfig:w,initialData:I,onResultsUpdate:z,onJobClick:k,mode:o,afterResults:J,prioritySegment:oe},ae)},ae)})}),aw=({page:p})=>{const{t:y}=On();return ue("div",{"aria-hidden":!0,class:"text-copy-neutral-lowcontrast mx-auto flex w-full max-w-[45rem] gap-2 py-4",onClick:w=>{w.preventDefault()},children:[ue("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"}),ue("span",{class:"text-style-tag justify-center text-center",children:[y("page")," ",p]}),ue("span",{class:"bg-wavy bg-neutral-3 flex-1 opacity-10"})]})},OL=({state:p,rpcClient:y,page:w,isFirst:I,isLast:z,fetchNextPage:k,jobCardConfig:B,initialData:o,onResultsUpdate:J,onJobClick:oe,afterResults:be,prioritySegment:ae})=>{const{t:Se}=On(),ye=w===1?o:void 0,{data:De,error:ve,queryState:ze,swr:Ee}=id(hd(ty({state:p,baseKey:w.toString()}),()=>hx({rpcClient:y,state:p,page:w,t:Se,prioritySegment:ae}),{...yf,fallbackData:ye}));switch(qi(()=>{De&&I&&J&&J({totalCount:De.pagination.total})},[De,I,J]),ze){case"idle":return null;case"loading":return ue(er,{children:[I?ue("div",{class:"flex w-full max-w-[45rem] items-center gap-2 self-center",children:[ue("div",{class:"flex-1"}),ue("p",{class:"animate-skeleton text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:ue(vd,{chars:8})}),ue("div",{class:"flex flex-1 justify-end",children:be})]}):ue(aw,{page:w}),ue("ul",{class:"flex w-full max-w-[45rem] flex-col gap-3 self-center","aria-hidden":!0,children:Array.from({length:oc}).map((tt,at)=>ue("li",{children:ue(Ry,{seed:at,animationDelay:(at-oc)*.1,config:B})},at))})]});case"error":return ue(Ja,{error:new Error(Se("jobs_loading_error"),{cause:ve}),resetError:()=>Ee.mutate()});case"revalidating":case"loaded":{if(Ps(De.pagination.current_page===w,"Received wrong page from server"),De.pagination.total===0)return ue("div",{class:"mx-auto flex flex-col items-center gap-2 px-2 py-4 text-center",children:[ue(An,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),ue("div",{class:"flex flex-col items-center gap-1",children:[ue("p",{class:"text-copy-neutral text-style-job-heading",children:Se("no_jobs_found")}),ue("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:Se("no_jobs_found_description")})]})]});const tt=De.pagination.last_page!==De.pagination.current_page,at=w*oc,Ke=Math.max(De.pagination.total-at,0),pt=xt=>{oe(xt,w)};return ue(er,{children:[I?ue("div",{class:"flex w-full max-w-[45rem] items-center gap-2 self-center",children:[ue("div",{class:"flex-1"}),ue("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:Se("jobs_found",{count:De.pagination.total})}),ue("div",{class:"flex flex-1 justify-end",children:be})]}):ue(aw,{page:w}),ue("ul",{"aria-label":`Page ${w}`,class:"flex w-full max-w-[45rem] flex-col gap-3 self-center",children:De.results.map(xt=>ue("li",{class:"ease-expo-out duration-slow transition-opacity",style:{opacity:ze==="revalidating"?.33:1},children:ue(sw,{job:xt,onJobClick:pt,config:B})},xt.id))}),tt&&z&&ue(LL,{state:ze,fetchNextPage:k,config:B,remainingItems:Ke})]})}default:jo(ze)}},FL=Dg(()=>Promise.resolve().then(()=>ZL).then(p=>p.Map)),BL=({state:p,rpcClient:y,mapConfig:w,onGeoChange:I,afterResults:z,onJobClick:k,jobCardConfig:B,prioritySegment:o})=>{var ve,ze;const{t:J}=On(),[oe,be]=Fi(new AbortController),ae=_1("(max-width: 767px)"),Se=Ur(Ee=>{I(Ee),oe.abort(),be(new AbortController)},[I,oe]),ye=id(hd(["map",p],()=>GE({rpcClient:y,state:p,t:J,signal:oe.signal,prioritySegment:o}),yf));if(ye.queryState==="error")return ue(Ja,{error:new Error(J("jobs_loading_error"),{cause:ye.error}),resetError:()=>ye.swr.mutate()});const De=ye.queryState==="loaded"||ye.queryState==="revalidating";return ue(er,{children:[ue("div",{class:"flex items-center gap-2",children:[ue("div",{class:"flex-1"}),ue("p",{class:"text-copy-neutral-lowcontrast text-style-tag m-0 justify-center p-0 text-center",children:De?ye.data.results.length!==0&&J("map_jobs_showing",{count:ye.data.results.length}):ue("div",{class:"animate-skeleton",children:ue(vd,{chars:8})})}),ue("div",{class:"flex flex-1 justify-end",children:z})]}),ue("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:[ue("div",{class:"md:min-w-80 aspect-square flex-1 md:order-2 md:aspect-auto",children:De?ue(du,{fallback:ue("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"}),children:ue(FL,{config:w,mapData:ye,autoFit:((ve=p.geo)==null?void 0:ve.type)!=="bounds",onBoundsChange:Se})}):ue("div",{class:"animate-skeleton bg-neutral-6 h-full w-full"})}),ue("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:[((ze=ye.data)==null?void 0:ze.results.length)===0?ue("div",{class:"mx-auto flex h-full w-full flex-col items-center justify-center gap-2 text-center",children:[ue(An,{"aria-hidden":!0,name:"magnifier",class:"text-copy-neutral-lowcontrast"}),ue("div",{class:"flex flex-col items-center gap-1",children:[ue("p",{class:"text-copy-neutral text-style-job-heading",children:J("no_jobs_found")}),ue("p",{class:"text-copy-neutral-lowcontrast text-style-tag [text-wrap:pretty]",children:J("no_jobs_found_description")})]})]}):null,De?ye.data.results.map(Ee=>ue("li",{class:"ease-expo-out duration-slow min-w-[calc(100%-1rem)] snap-start transition-opacity",style:{opacity:ye.queryState==="revalidating"?.33:1},children:ue(sw,{job:Ee,onJobClick:tt=>k(tt,1),config:B,size:ae?"sm":void 0})},Ee.id)):Array.from({length:6}).map((Ee,tt)=>ue("li",{children:ue(Ry,{seed:tt,animationDelay:(tt-6)*.1,config:B})},tt))]})]})]})},lw=Uo({base:"flex 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}}),NL=({value:p,onValueChange:y})=>{const{t:w}=On();return ue("div",{class:"bg-neutral-3 rounded-interactive ring-neutral-3 mr-[3px] inline-flex ring-[3px]",children:[ue("button",{type:"button","aria-pressed":p==="list",class:lw({active:p==="list"}),onClick:()=>y("list"),children:[ue(An,{name:"list",class:"size-5"}),ue("span",{children:w("list")})]}),ue("button",{type:"button","aria-pressed":p==="map",class:lw({active:p==="map"}),onClick:()=>y("map"),children:[ue(An,{name:"map",class:"size-5"}),ue("span",{children:w("map")})]})]})},jL=p=>{const y=p.state.view,w=p.mapConfig&&p.mapConfig.enabled?ue(NL,{value:y,onValueChange:p.onViewChange}):null;return y==="list"?ue(kL,{afterResults:w,...p}):ue(BL,{...p,afterResults:w})},zy=(p,y="value")=>p.reduce((w,I)=>{switch(I.select){case"one":{const z=I.value??I[y],k=typeof z=="string"?z:z==null?void 0:z[0];w[I.key]={select:I.select,value:k};break}case"many":{const z=I.value??I[y],k=typeof z=="string"?[z]:Array.isArray(z)?z:[];w[I.key]={select:I.select,value:k};break}default:jo(I.select)}return w},{}),Pu=p=>Object.fromEntries(Object.entries(p).map(([y,w])=>{const I=w==null?void 0:w.value;return[y,Array.isArray(I)?I:I?[I]:[]]}).filter(([,y])=>y!==void 0&&y.length>0)),cw=p=>(p==null?void 0:p.type)==="bounds"?void 0:p,VL=({rpcClient:p,logger:y,properties:w,analytics:I,initialData:z,onStateChange:k,params:B})=>{var Ot,ui,Si,ni,Mi,gi;const{t:o}=On(),J=Ri(null),oe=fn(()=>zy(w,"defaultValue"),[w]),[be,ae]=Fi(!0),[Se,ye]=Fi(()=>typeof B.initialState=="function"?B.initialState(B):B.initialState),[De,ve]=Fi(0),{onJobClick:ze,analyticsPaginate:Ee}=UL({appRef:J,analytics:I,state:Se,hasInteracted:!be,totalCount:De,defaultFilters:oe}),tt=Ur(Bt=>{ye(Yt=>{if(Yt.page===Bt)return Yt;const Gt={...Yt,page:Bt};return k==null||k(Gt),Gt}),Ee(Bt)},[Ee,k]),at=Ur(Bt=>{ye(Yt=>{const Gt={...Yt,view:Bt};return k==null||k(Gt),Gt})},[k]),Ke=Ur(Bt=>{ye(Yt=>{var Wi;if(!Yt.query&&!Bt||Yt.query===Bt)return Yt;ae(!1);const Gt=cw(Yt.geo),oi={...Yt,query:Bt,geo:Gt,page:1,mode:(Wi=B.naturalLanguageSearch)!=null&&Wi.enabled?"vector":"query"};return k==null||k(oi),oi})},[k,(Ot=B.naturalLanguageSearch)==null?void 0:Ot.enabled]),pt=Ur(Bt=>{ae(!1),ye(Yt=>{const Gt={...Yt,geo:Bt};return k==null||k(Gt),Gt})},[k]),xt=Ur(()=>{ye(Bt=>{const Yt={...Bt,filters:zy(w,"defaultValue"),query:"",geo:void 0,page:1};return k==null||k(Yt),Yt})},[k,w]),Wt=fn(()=>(p.environment,new Map),[p.environment]);return ue(qA,{value:{provider:()=>Wt},children:ue("div",{ref:J,class:uu("ijs-app font-family-default font-weight-default font-style-default flex min-h-screen flex-col gap-4",{"reduce-motion":(ui=B.theme.accessibility)==null?void 0:ui.reducedMotion},ey(B.theme)),children:[ue(nd,{Fallback:Ja,children:ue("div",{class:"flex flex-col gap-2",children:[ue("div",{class:"px-4",children:ue("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:[ue("section",{class:"flex flex-1 flex-col gap-1",children:[ue("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:o("search_label")}),(Si=B.naturalLanguageSearch)!=null&&Si.enabled?ue(CD,{value:Se.query,onValueChange:Ke,options:B.naturalLanguageSearch}):B.enableKeywordSearch?ue(ED,{value:Se.query,onValueChange:Ke}):null]}),(ni=B.geolocation)!=null&&ni.enabled?ue("section",{class:"flex flex-1 flex-col gap-1",children:[ue("p",{class:"text-style-filter text-copy-neutral font-style-filter font-weight-filter",children:o("geo_label")}),ue(TD,{value:Se.geo,onValueChange:Bt=>{ae(!1),ye(Yt=>{const Gt={...Yt,geo:Bt,page:1};return k==null||k(Gt),Gt}),Ee(1)},logger:y})]}):null]})}),ue(cP,{state:Se,onFilterValueChange:(Bt,Yt)=>{ae(!1),ye(Gt=>{const oi={...Gt.filters,[Bt]:Yt},Wi=cw(Gt.geo),or={...Gt,filters:oi,geo:Wi,page:1};return k==null||k(or),or}),Ee(1)},onResetFilters:xt,properties:w,rpcClient:p,alerts:B.alerts,theme:B.theme,widgetId:B.widgetId})]})}),ue("section",{class:"flex flex-col gap-4 overflow-hidden px-4 py-4",children:[ue(nd,{Fallback:Ja,children:ue(jL,{state:Se,rpcClient:p,jobCardConfig:B.jobCard,mapConfig:B.map,initialData:be?z==null?void 0:z.jobs:void 0,onResultsUpdate:Bt=>{ve(Bt.totalCount)},onJobClick:ze,onPaginate:tt,mode:(Mi=B.naturalLanguageSearch)!=null&&Mi.enabled?"vector":"query",onGeoChange:pt,onViewChange:at,prioritySegment:(gi=B.results)==null?void 0:gi.prioritySegment})}),B.feedback?ue("div",{class:"flex flex-wrap items-center justify-center gap-2",children:[ue("p",{class:"font-family-default text-balance font-style-default text-style-job-card-info text-copy-neutral-lowcontrast",children:o("feedback")}),ue("div",{"data-widget":"inploi-feedback","data-key":"job-search",children:ue("div",{class:"rounded-job-card bg-neutral-2 h-8 w-[72px] animate-pulse"})})]}):null]})]})})},UL=({appRef:p,analytics:y,state:w,defaultFilters:I,totalCount:z,hasInteracted:k})=>{const B=Ur((oe=1)=>({query:w.query,mode:w.mode,filters:Pu(w.filters),default_filters:Pu(I),total_count:z,page_size:oc,page:oe}),[w.query,w.mode,w.filters,I,z]);return ZA(p,{minViewTime:2e3,onView:()=>{y.log({event:"VIEW_SEARCH",properties:B()})}}),qi(()=>{const oe=window.setTimeout(()=>{k&&(!w.query&&!Object.keys(Pu(w.filters)).length||z!==0&&y.log({event:"SEARCH_SETTLE",properties:B()}))},5e3);return()=>{clearTimeout(oe)}},[y,k,B,z,w.query,w.filters]),{onJobClick:(oe,be)=>{y.log({event:"SEARCH_JOB_CLICK",properties:{job_id:oe.id,...B(be)}})},analyticsPaginate:oe=>{y.log({event:"SEARCH_PAGINATE",properties:B(oe)})}}},$L=`.inploi-job-search{font-size:16px;--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 *,.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 .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-\\[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-\\[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 .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-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,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-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 .\\[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-shown~.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-shown~.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
61
  `,GL=p=>({getRenderTargetElement:y=>{const w=y?`[data-widget-id="${y}"]`:"",I=document.body.querySelectorAll(`*[data-widget=${ax}]${w}`);if(I.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 z=I[0];if(!z)throw p.error(`Please ensure there is an element with the properties data-widget="${ax}" ${w}`),new Error("Job search widget didn’t find element");return z}}),HL=()=>cE(({apiClient:p,rpcClient:y,logger:w,analytics:I})=>{const z=GL(w),k=({params:B})=>Jt(nd,{Fallback:eA},[Jt(KE,{terms:B.terms,locale:void 0,children:[Jt("style",{id:"inploi-job-search-styles"},$L),Jt("style",{id:"inploi-job-search-theme"},iI(B)),Jt(iA,{theme:B.theme}),Jt(VL,{properties:B.properties,rpcClient:y,logger:w,analytics:I,initialData:B.initialData,onStateChange:B.onStateChange,params:B})]})]);return{prerender:async B=>{var oe;const o=typeof B.initialState=="function"?B.initialState(B):B.initialState,J=B.withData?await hx({state:o,rpcClient:y,t:JE({overrides:B.terms??{},locale:void 0}),prioritySegment:(oe=B.results)==null?void 0:oe.prioritySegment}).then(be=>({jobs:be})).catch(()=>{}):void 0;return{html:CE(Jt(er,{},Jt(k,{params:{...B,initialData:J}}))),data:J}},render:async B=>{var Se,ye;const o=typeof B.initialState=="function"?B.initialState(B):B.initialState,J=B.initialData?ag:cu,oe=z.getRenderTargetElement(B.widgetId);Ps(typeof window<"u","the `render` method of JobSearch cannot be called in non-browser environments. Use `prerender` instead.");let be;if(J(Jt(k,{params:{...B,onStateChange:De=>{B.onStateChange(De),be&&De.filters&&be.setFilters(Pu(De.filters))}}}),oe),B.feedback)if(B.feedback.plugin instanceof Promise)B.feedback.plugin.then(({feedbackPlugin:De})=>{var ze,Ee;if(!B.feedback)return;const ve=De()({apiClient:p,logger:w,analytics:I});uw({instance:ve,theme:{...B.theme,...(ze=B.feedback.params)==null?void 0:ze.theme},terms:((Ee=B.feedback.params)==null?void 0:Ee.terms)??{}})});else{const De=B.feedback.plugin({apiClient:p,logger:w,analytics:I});uw({instance:De,theme:{...B.theme,...(Se=B.feedback.params)==null?void 0:Se.theme},terms:((ye=B.feedback.params)==null?void 0:ye.terms)??{}})}B.alerts&&(B.alerts.plugin instanceof Promise?B.alerts.plugin.then(({jobAlertsPlugin:De})=>{if(!B.alerts)return;De()({apiClient:p,logger:w,analytics:I}).render({config:B.alerts.params.config,initialFilters:Pu(o.filters),theme:B.theme})}):(be=B.alerts.plugin({apiClient:p,logger:w,analytics:I}),be.render({config:B.alerts.params.config,initialFilters:Pu(o.filters),theme:B.theme})))}}});function uw(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=HL;var hw={exports:{}};(function(p,y){(function(w,I){p.exports=I()})(ad,function(){var w,I,z;function k(o,J){if(!w)w=J;else if(!I)I=J;else{var oe="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 = {}; ("+w+")(sharedChunk); ("+I+")(sharedChunk); self.onerror = null;",be={};w(be),z=J(be),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(z.workerUrl=window.URL.createObjectURL(new Blob([oe],{type:"text/javascript"})))}}k(["exports"],function(o){var J=1e-6,oe=typeof Float32Array<"u"?Float32Array:Array;function be(r,e){var i=e[0],s=e[1],a=e[2],u=e[3],h=i*u-a*s;return h?(r[0]=u*(h=1/h),r[1]=-s*h,r[2]=-a*h,r[3]=i*h,r):null}function ae(){var r=new oe(9);return oe!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[5]=0,r[6]=0,r[7]=0),r[0]=1,r[4]=1,r[8]=1,r}function Se(r,e){var i=e[0],s=e[1],a=e[2],u=e[3],h=e[4],m=e[5],g=e[6],x=e[7],T=e[8];return r[0]=h*T-m*x,r[1]=a*x-s*T,r[2]=s*m-a*h,r[3]=m*g-u*T,r[4]=i*T-a*g,r[5]=a*u-i*m,r[6]=u*x-h*g,r[7]=s*g-i*x,r[8]=i*h-s*u,r}function ye(r,e,i){var s=e[0],a=e[1],u=e[2],h=e[3],m=e[4],g=e[5],x=e[6],T=e[7],S=e[8],A=i[0],D=i[1],R=i[2],O=i[3],$=i[4],H=i[5],K=i[6],W=i[7],F=i[8];return r[0]=A*s+D*h+R*x,r[1]=A*a+D*m+R*T,r[2]=A*u+D*g+R*S,r[3]=O*s+$*h+H*x,r[4]=O*a+$*m+H*T,r[5]=O*u+$*g+H*S,r[6]=K*s+W*h+F*x,r[7]=K*a+W*m+F*T,r[8]=K*u+W*g+F*S,r}function De(){var r=new oe(16);return oe!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=0,r[12]=0,r[13]=0,r[14]=0),r[0]=1,r[5]=1,r[10]=1,r[15]=1,r}function ve(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function ze(r,e){var i=e[0],s=e[1],a=e[2],u=e[3],h=e[4],m=e[5],g=e[6],x=e[7],T=e[8],S=e[9],A=e[10],D=e[11],R=e[12],O=e[13],$=e[14],H=e[15],K=i*m-s*h,W=i*g-a*h,F=i*x-u*h,q=s*g-a*m,Y=s*x-u*m,te=a*x-u*g,de=T*O-S*R,ge=T*$-A*R,xe=T*H-D*R,Ce=S*$-A*O,Ue=S*H-D*O,et=A*H-D*$,Xe=K*et-W*Ue+F*Ce+q*xe-Y*ge+te*de;return Xe?(r[0]=(m*et-g*Ue+x*Ce)*(Xe=1/Xe),r[1]=(a*Ue-s*et-u*Ce)*Xe,r[2]=(O*te-$*Y+H*q)*Xe,r[3]=(A*Y-S*te-D*q)*Xe,r[4]=(g*xe-h*et-x*ge)*Xe,r[5]=(i*et-a*xe+u*ge)*Xe,r[6]=($*F-R*te-H*W)*Xe,r[7]=(T*te-A*F+D*W)*Xe,r[8]=(h*Ue-m*xe+x*de)*Xe,r[9]=(s*xe-i*Ue-u*de)*Xe,r[10]=(R*Y-O*F+H*K)*Xe,r[11]=(S*F-T*Y-D*K)*Xe,r[12]=(m*ge-h*Ce-g*de)*Xe,r[13]=(i*Ce-s*ge+a*de)*Xe,r[14]=(O*W-R*q-$*K)*Xe,r[15]=(T*q-S*W+A*K)*Xe,r):null}function Ee(r,e,i){var s=e[0],a=e[1],u=e[2],h=e[3],m=e[4],g=e[5],x=e[6],T=e[7],S=e[8],A=e[9],D=e[10],R=e[11],O=e[12],$=e[13],H=e[14],K=e[15],W=i[0],F=i[1],q=i[2],Y=i[3];return r[0]=W*s+F*m+q*S+Y*O,r[1]=W*a+F*g+q*A+Y*$,r[2]=W*u+F*x+q*D+Y*H,r[3]=W*h+F*T+q*R+Y*K,r[4]=(W=i[4])*s+(F=i[5])*m+(q=i[6])*S+(Y=i[7])*O,r[5]=W*a+F*g+q*A+Y*$,r[6]=W*u+F*x+q*D+Y*H,r[7]=W*h+F*T+q*R+Y*K,r[8]=(W=i[8])*s+(F=i[9])*m+(q=i[10])*S+(Y=i[11])*O,r[9]=W*a+F*g+q*A+Y*$,r[10]=W*u+F*x+q*D+Y*H,r[11]=W*h+F*T+q*R+Y*K,r[12]=(W=i[12])*s+(F=i[13])*m+(q=i[14])*S+(Y=i[15])*O,r[13]=W*a+F*g+q*A+Y*$,r[14]=W*u+F*x+q*D+Y*H,r[15]=W*h+F*T+q*R+Y*K,r}function tt(r,e,i){var s,a,u,h,m,g,x,T,S,A,D,R,O=i[0],$=i[1],H=i[2];return e===r?(r[12]=e[0]*O+e[4]*$+e[8]*H+e[12],r[13]=e[1]*O+e[5]*$+e[9]*H+e[13],r[14]=e[2]*O+e[6]*$+e[10]*H+e[14],r[15]=e[3]*O+e[7]*$+e[11]*H+e[15]):(a=e[1],u=e[2],h=e[3],m=e[4],g=e[5],x=e[6],T=e[7],S=e[8],A=e[9],D=e[10],R=e[11],r[0]=s=e[0],r[1]=a,r[2]=u,r[3]=h,r[4]=m,r[5]=g,r[6]=x,r[7]=T,r[8]=S,r[9]=A,r[10]=D,r[11]=R,r[12]=s*O+m*$+S*H+e[12],r[13]=a*O+g*$+A*H+e[13],r[14]=u*O+x*$+D*H+e[14],r[15]=h*O+T*$+R*H+e[15]),r}function at(r,e,i){var s=i[0],a=i[1],u=i[2];return r[0]=e[0]*s,r[1]=e[1]*s,r[2]=e[2]*s,r[3]=e[3]*s,r[4]=e[4]*a,r[5]=e[5]*a,r[6]=e[6]*a,r[7]=e[7]*a,r[8]=e[8]*u,r[9]=e[9]*u,r[10]=e[10]*u,r[11]=e[11]*u,r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}function Ke(r,e,i){var s=Math.sin(i),a=Math.cos(i),u=e[4],h=e[5],m=e[6],g=e[7],x=e[8],T=e[9],S=e[10],A=e[11];return e!==r&&(r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[4]=u*a+x*s,r[5]=h*a+T*s,r[6]=m*a+S*s,r[7]=g*a+A*s,r[8]=x*a-u*s,r[9]=T*a-h*s,r[10]=S*a-m*s,r[11]=A*a-g*s,r}function pt(r,e,i){var s=Math.sin(i),a=Math.cos(i),u=e[0],h=e[1],m=e[2],g=e[3],x=e[8],T=e[9],S=e[10],A=e[11];return e!==r&&(r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[0]=u*a-x*s,r[1]=h*a-T*s,r[2]=m*a-S*s,r[3]=g*a-A*s,r[8]=u*s+x*a,r[9]=h*s+T*a,r[10]=m*s+S*a,r[11]=g*s+A*a,r}function xt(r,e,i){var s=Math.sin(i),a=Math.cos(i),u=e[0],h=e[1],m=e[2],g=e[3],x=e[4],T=e[5],S=e[6],A=e[7];return e!==r&&(r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[0]=u*a+x*s,r[1]=h*a+T*s,r[2]=m*a+S*s,r[3]=g*a+A*s,r[4]=x*a-u*s,r[5]=T*a-h*s,r[6]=S*a-m*s,r[7]=A*a-g*s,r}function Wt(r,e){return r[0]=e[0],r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=e[1],r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=e[2],r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function Ot(r,e,i){var s,a,u,h=i[0],m=i[1],g=i[2],x=Math.hypot(h,m,g);return x<J?null:(h*=x=1/x,m*=x,g*=x,s=Math.sin(e),a=Math.cos(e),r[0]=h*h*(u=1-a)+a,r[1]=m*h*u+g*s,r[2]=g*h*u-m*s,r[3]=0,r[4]=h*m*u-g*s,r[5]=m*m*u+a,r[6]=g*m*u+h*s,r[7]=0,r[8]=h*g*u+m*s,r[9]=m*g*u-h*s,r[10]=g*g*u+a,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r)}function ui(r,e){var i=e[0],s=e[1],a=e[2],u=e[3],h=i+i,m=s+s,g=a+a,x=i*h,T=s*h,S=s*m,A=a*h,D=a*m,R=a*g,O=u*h,$=u*m,H=u*g;return r[0]=1-S-R,r[1]=T+H,r[2]=A-$,r[3]=0,r[4]=T-H,r[5]=1-x-R,r[6]=D+O,r[7]=0,r[8]=A+$,r[9]=D-O,r[10]=1-x-S,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}Math.hypot||(Math.hypot=function(){for(var r=0,e=arguments.length;e--;)r+=arguments[e]*arguments[e];return Math.sqrt(r)});var Si=Ee;function ni(){var r=new oe(3);return oe!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r}function Mi(r){var e=new oe(3);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e}function gi(r){return Math.hypot(r[0],r[1],r[2])}function Bt(r,e,i){var s=new oe(3);return s[0]=r,s[1]=e,s[2]=i,s}function Yt(r,e,i){return r[0]=e[0]+i[0],r[1]=e[1]+i[1],r[2]=e[2]+i[2],r}function Gt(r,e,i){return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r[2]=e[2]-i[2],r}function oi(r,e,i){return r[0]=e[0]*i[0],r[1]=e[1]*i[1],r[2]=e[2]*i[2],r}function Wi(r,e,i){return r[0]=Math.min(e[0],i[0]),r[1]=Math.min(e[1],i[1]),r[2]=Math.min(e[2],i[2]),r}function or(r,e,i){return r[0]=Math.max(e[0],i[0]),r[1]=Math.max(e[1],i[1]),r[2]=Math.max(e[2],i[2]),r}function Ei(r,e,i){return r[0]=e[0]*i,r[1]=e[1]*i,r[2]=e[2]*i,r}function $r(r,e,i,s){return r[0]=e[0]+i[0]*s,r[1]=e[1]+i[1]*s,r[2]=e[2]+i[2]*s,r}function vn(r,e){var i=e[0]-r[0],s=e[1]-r[1],a=e[2]-r[2];return i*i+s*s+a*a}function Kn(r){var e=r[0],i=r[1],s=r[2];return e*e+i*i+s*s}function po(r,e){return r[0]=-e[0],r[1]=-e[1],r[2]=-e[2],r}function Ui(r,e){var i=e[0],s=e[1],a=e[2],u=i*i+s*s+a*a;return u>0&&(u=1/Math.sqrt(u)),r[0]=e[0]*u,r[1]=e[1]*u,r[2]=e[2]*u,r}function Xi(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]}function Lr(r,e,i){var s=e[0],a=e[1],u=e[2],h=i[0],m=i[1],g=i[2];return r[0]=a*g-u*m,r[1]=u*h-s*g,r[2]=s*m-a*h,r}function $o(r,e,i,s){var a=e[0],u=e[1],h=e[2];return r[0]=a+s*(i[0]-a),r[1]=u+s*(i[1]-u),r[2]=h+s*(i[2]-h),r}function gr(r,e,i){var s=e[0],a=e[1],u=e[2],h=i[3]*s+i[7]*a+i[11]*u+i[15];return r[0]=(i[0]*s+i[4]*a+i[8]*u+i[12])/(h=h||1),r[1]=(i[1]*s+i[5]*a+i[9]*u+i[13])/h,r[2]=(i[2]*s+i[6]*a+i[10]*u+i[14])/h,r}function Jn(r,e,i){var s=e[0],a=e[1],u=e[2];return r[0]=s*i[0]+a*i[3]+u*i[6],r[1]=s*i[1]+a*i[4]+u*i[7],r[2]=s*i[2]+a*i[5]+u*i[8],r}function ao(r,e,i){var s=i[0],a=i[1],u=i[2],h=e[0],m=e[1],g=e[2],x=a*g-u*m,T=u*h-s*g,S=s*m-a*h,A=a*S-u*T,D=u*x-s*S,R=s*T-a*x,O=2*i[3];return T*=O,S*=O,D*=2,R*=2,r[0]=h+(x*=O)+(A*=2),r[1]=m+T+D,r[2]=g+S+R,r}function tr(r,e){return r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]}var Ti=Gt,un=oi,wr=gi;function Br(){var r=new oe(4);return oe!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0,r[3]=0),r}function In(r,e,i){return r[0]=e[0]*i,r[1]=e[1]*i,r[2]=e[2]*i,r[3]=e[3]*i,r}function Gr(r,e){var i=e[0],s=e[1],a=e[2],u=e[3],h=i*i+s*s+a*a+u*u;return h>0&&(h=1/Math.sqrt(h)),r[0]=i*h,r[1]=s*h,r[2]=a*h,r[3]=u*h,r}function Dr(r,e,i){var s=e[0],a=e[1],u=e[2],h=e[3];return r[0]=i[0]*s+i[4]*a+i[8]*u+i[12]*h,r[1]=i[1]*s+i[5]*a+i[9]*u+i[13]*h,r[2]=i[2]*s+i[6]*a+i[10]*u+i[14]*h,r[3]=i[3]*s+i[7]*a+i[11]*u+i[15]*h,r}function an(){var r=new oe(4);return oe!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r[3]=1,r}function Fn(r){return r[0]=0,r[1]=0,r[2]=0,r[3]=1,r}function fo(r,e,i){i*=.5;var s=e[0],a=e[1],u=e[2],h=e[3],m=Math.sin(i),g=Math.cos(i);return r[0]=s*g+h*m,r[1]=a*g+u*m,r[2]=u*g-a*m,r[3]=h*g-s*m,r}function Go(r,e,i){i*=.5;var s=e[0],a=e[1],u=e[2],h=e[3],m=Math.sin(i),g=Math.cos(i);return r[0]=s*g-u*m,r[1]=a*g+h*m,r[2]=u*g+s*m,r[3]=h*g-a*m,r}ni(),Br();var Hr,ln,hs,ds,Ho,qo=Gr,ps=(Hr=ni(),ln=Bt(1,0,0),hs=Bt(0,1,0),function(r,e,i){var s=Xi(e,i);return s<-.999999?(Lr(Hr,ln,e),wr(Hr)<1e-6&&Lr(Hr,hs,e),Ui(Hr,Hr),function(a,u,h){h*=.5;var m=Math.sin(h);a[0]=m*u[0],a[1]=m*u[1],a[2]=m*u[2],a[3]=Math.cos(h)}(r,Hr,Math.PI),r):s>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(Lr(Hr,e,i),r[0]=Hr[0],r[1]=Hr[1],r[2]=Hr[2],r[3]=1+s,qo(r,r))});function qn(){var r=new oe(2);return oe!=Float32Array&&(r[0]=0,r[1]=0),r}function va(r,e){var i=new oe(2);return i[0]=r,i[1]=e,i}function Ns(r,e,i){return r[0]=e[0]+i[0],r[1]=e[1]+i[1],r}function Zo(r,e,i){return r[0]=e[0]-i[0],r[1]=e[1]-i[1],r}function xa(r,e,i){return r[0]=e[0]*i,r[1]=e[1]*i,r}function ba(r){return Math.hypot(r[0],r[1])}function lc(r,e){var i=e[0],s=e[1],a=i*i+s*s;return a>0&&(a=1/Math.sqrt(a)),r[0]=e[0]*a,r[1]=e[1]*a,r}function Ar(r,e){return r[0]*e[0]+r[1]*e[1]}function Wo(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}an(),an(),ae(),qn();var ll,mo,cc=function(){if(Ho)return ds;function r(e,i,s,a){this.cx=3*e,this.bx=3*(s-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=s,this.p2y=a}return Ho=1,ds=r,r.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,i){if(i===void 0&&(i=1e-6),e<0)return 0;if(e>1)return 1;for(var s=e,a=0;a<8;a++){var u=this.sampleCurveX(s)-e;if(Math.abs(u)<i)return s;var h=this.sampleCurveDerivativeX(s);if(Math.abs(h)<1e-6)break;s-=u/h}var m=0,g=1;for(s=e,a=0;a<20&&(u=this.sampleCurveX(s),!(Math.abs(u-e)<i));a++)e>u?m=s:g=s,s=.5*(g-m)+m;return s},solve:function(e,i){return this.sampleCurveY(this.solveCurveX(e,i))}},ds}(),Du=Wo(cc);function uc(){if(mo)return ll;function r(e,i){this.x=e,this.y=i}return mo=1,ll=r,r.prototype={clone:function(){return new r(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,i){return this.clone()._rotateAround(e,i)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var i=e.x-this.x,s=e.y-this.y;return i*i+s*s},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,i){return Math.atan2(this.x*i-this.y*e,this.x*e+this.y*i)},_matMult:function(e){var i=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=i,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var i=Math.cos(e),s=Math.sin(e),a=s*this.x+i*this.y;return this.x=i*this.x-s*this.y,this.y=a,this},_rotateAround:function(e,i){var s=Math.cos(e),a=Math.sin(e),u=i.y+a*(this.x-i.x)+s*(this.y-i.y);return this.x=i.x+s*(this.x-i.x)-a*(this.y-i.y),this.y=u,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},r.convert=function(e){return e instanceof r?e:Array.isArray(e)?new r(e[0],e[1]):e},ll}var ft=Wo(uc());function fs(r,e){if(Array.isArray(r)){if(!Array.isArray(e)||r.length!==e.length)return!1;for(let i=0;i<r.length;i++)if(!fs(r[i],e[i]))return!1;return!0}if(typeof r=="object"&&r!==null&&e!==null){if(typeof e!="object"||Object.keys(r).length!==Object.keys(e).length)return!1;for(const i in r)if(!fs(r[i],e[i]))return!1;return!0}return r===e}const Ru=Math.PI/180,$e=180/Math.PI;function U(r){return r*Ru}function Z(r){return r*$e}const se=[[0,0],[1,0],[1,1],[0,1]];function _e(r){if(r<=0)return 0;if(r>=1)return 1;const e=r*r,i=e*r;return 4*(r<.5?i:3*(r-e)+i-.75)}function fe(r,e,i,s){const a=new Du(r,e,i,s);return function(u){return a.solve(u)}}const we=fe(.25,.1,.25,1);function Te(r,e,i){return Math.min(i,Math.max(e,r))}function Ae(r,e,i){return(i=Te((i-r)/(e-r),0,1))*i*(3-2*i)}function Be(r,e,i){const s=i-e,a=((r-e)%s+s)%s+e;return a===e?i:a}function qe(r,e,i){if(!r.length)return i(null,[]);let s=r.length;const a=new Array(r.length);let u=null;r.forEach((h,m)=>{e(h,(g,x)=>{g&&(u=g),a[m]=x,--s==0&&i(u,a)})})}function Oe(r,...e){for(const i of e)for(const s in i)r[s]=i[s];return r}let mt=1;function bt(){return mt++}function Rt(r){return r<=1?1:Math.pow(2,Math.ceil(Math.log(r)/Math.LN2))}function Qt(r,e){r.forEach(i=>{e[i]&&(e[i]=e[i].bind(e))})}function ii(r,e,i){const s={};for(const a in r)s[a]=e.call(this,r[a],a,r);return s}function hi(r,e,i){const s={};for(const a in r)e.call(this,r[a],a,r)&&(s[a]=r[a]);return s}function mi(r){return Array.isArray(r)?r.map(mi):typeof r=="object"&&r?ii(r,mi):r}const Rr={};function yi(r){Rr[r]||(typeof console<"u"&&console.warn(r),Rr[r]=!0)}function sr(r,e,i){return(i.y-r.y)*(e.x-r.x)>(e.y-r.y)*(i.x-r.x)}function ki(r){let e=0;for(let i,s,a=0,u=r.length,h=u-1;a<u;h=a++)i=r[a],s=r[h],e+=(s.x-i.x)*(i.y+s.y);return e}function ar([r,e,i]){const s=U(e+90),a=U(i);return{x:r*Math.cos(s)*Math.sin(a),y:r*Math.sin(s)*Math.sin(a),z:r*Math.cos(a),azimuthal:e,polar:i}}function ur(r){return(typeof self<"u"||r!==void 0)&&typeof WorkerGlobalScope<"u"&&(r!==void 0?r:self)instanceof WorkerGlobalScope}function qr(r){const e={};if(r.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(i,s,a,u)=>{const h=a||u;return e[s]=!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 Qr=null;function mn(r,e){return[r[4*e],r[4*e+1],r[4*e+2],r[4*e+3]]}function Tn(r,e,i,s){for(;e<i;){const a=e+i>>1;r[a]<s?e=a+1:i=a}return e}function ms(r,e,i,s){for(;e<i;){const a=e+i>>1;r[a]<=s?e=a+1:i=a}return e}function Rn(r){return r>0?1/(1.001-r):1+r}function zn(r){return r>0?1-1/(1.001-r):-r}function xn(r,e,i){return(r-e.min)*(i.max-i.min)/(e.max-e.min)+i.min}const Cn={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(!Cn.API_URL)return null;try{const r=new URL(Cn.API_URL);return r.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":r.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",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1"};function Xo(r){return Cn.API_URL_REGEX.test(r)}function wa(r){return Cn.API_SPRITE_REGEX.test(r)}let hc,cl,zu,dc,Ta,pc;function bd(){return hc==null&&(hc=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),hc}const Co={now:()=>dc!==void 0?dc:performance.now(),setNow(r){dc=r},restoreNow(){dc=void 0},frame(r){const e=requestAnimationFrame(r);return{cancel:()=>cancelAnimationFrame(e)}},getImageData(r,e=0){const{width:i,height:s}=r;Ta||(Ta=document.createElement("canvas"));const a=Ta.getContext("2d",{willReadFrequently:!0});if(!a)throw new Error("failed to create canvas 2d context");return(i>Ta.width||s>Ta.height)&&(Ta.width=i,Ta.height=s),a.clearRect(-e,-e,i+2*e,s+2*e),a.drawImage(r,0,0,i,s),a.getImageData(-e,-e,i+2*e,s+2*e)},resolveURL:r=>(cl||(cl=document.createElement("a")),cl.href=r,cl.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(zu==null&&(zu=window.matchMedia("(prefers-reduced-motion: reduce)")),zu.matches)},hasCanvasFingerprintNoise(){if(pc!==void 0)return pc;if(!bd())return pc=!1,!1;const r=new OffscreenCanvas(85,1),e=r.getContext("2d",{willReadFrequently:!0});let i=0;for(let a=0;a<r.width;++a)e.fillStyle=`rgba(${i++},${i++},${i++}, 255)`,e.fillRect(a,0,1,1);const s=e.getImageData(0,0,r.width,r.height);i=0;for(let a=0;a<s.data.length;++a)if(a%4!=3&&i++!==s.data[a])return pc=!0,!0;return pc=!1,!1}};function wd(r,e){const i=r.indexOf("?");if(i<0)return`${r}?${new URLSearchParams(e).toString()}`;const s=new URLSearchParams(r.slice(i));for(const a in e)s.set(a,e[a]);return`${r.slice(0,i)}?${s.toString()}`}function Qn(r,e={persistentParams:[]}){const i=r.indexOf("?");if(i<0)return r;const s=new URLSearchParams,a=new URLSearchParams(r.slice(i));for(const h of e.persistentParams){const m=a.get(h);m&&s.set(h,m)}const u=s.toString();return`${r.slice(0,i)}${u.length>0?`?${u}`:""}`}const Mo="mapbox-tiles";let _s=500,Po=50;const gs=["language","worldview","jobid"];let _o,fc;function Td(){try{return caches}catch{}}function ys(){const r=Td();r&&_o==null&&(_o=r.open(Mo))}let mc=1/0;const Sd={supported:!1,testSupport:function(r){!Lu&&Bn&&(ku?tm(r):_c=r)}};let _c,Bn,Lu=!1,ku=!1;const ul=typeof self<"u"?self:{};function tm(r){const e=r.createTexture();r.bindTexture(r.TEXTURE_2D,e);try{if(r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,Bn),r.isContextLost())return;Sd.supported=!0}catch{}r.deleteTexture(e),Lu=!0}ul.document&&(Bn=ul.document.createElement("img"),Bn.onload=function(){_c&&tm(_c),_c=null,ku=!0},Bn.onerror=function(){Lu=!0,_c=null},Bn.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const Ou={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Iconset:"Iconset",Image:"Image",Model:"Model"};typeof Object.freeze=="function"&&Object.freeze(Ou);class Fu extends Error{constructor(e,i,s){i===401&&Xo(s)&&(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=s}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const zi=ur()?()=>self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,hl=function(r,e){if(!(/^file:/.test(i=r.url)||/^file:/.test(zi())&&!/^\w+:/.test(i))){if(self.fetch&&self.Request&&self.AbortController&&Request.prototype.hasOwnProperty("signal"))return function(s,a){const u=new AbortController,h=new Request(s.url,{method:s.method||"GET",body:s.body,credentials:s.credentials,headers:s.headers,referrer:zi(),referrerPolicy:s.referrerPolicy,signal:u.signal});let m=!1,g=!1;const x=(T=h.url).indexOf("sku=")>0&&Xo(T);var T;s.type==="json"&&h.headers.set("Accept","application/json");const S=(D,R,O)=>{if(g)return;if(D&&D.message!=="SecurityError"&&yi(D.toString()),R&&O)return A(R);const $=Date.now();fetch(h).then(H=>{if(H.ok){const K=x?H.clone():null;return A(H,K,$)}return a(new Fu(H.statusText,H.status,s.url))}).catch(H=>{H.name!=="AbortError"&&a(new Error(`${H.message} ${s.url}`))})},A=(D,R,O)=>{(s.type==="arrayBuffer"?D.arrayBuffer():s.type==="json"?D.json():D.text()).then($=>{g||(R&&O&&function(H,K,W){if(ys(),_o==null)return;const F=qr(K.headers.get("Cache-Control")||"");if(F["no-store"])return;const q={status:K.status,statusText:K.statusText,headers:new Headers};K.headers.forEach((de,ge)=>q.headers.set(ge,de)),F["max-age"]&&q.headers.set("Expires",new Date(W+1e3*F["max-age"]).toUTCString());const Y=q.headers.get("Expires");if(!Y||new Date(Y).getTime()-W<42e4)return;let te=Qn(H.url,{persistentParams:gs});if(K.status===206){const de=H.headers.get("Range");if(!de)return;q.status=200,te=wd(te,{range:de})}(function(de,ge){if(fc===void 0)try{new Response(new ReadableStream),fc=!0}catch{fc=!1}fc?ge(de.body):de.blob().then(ge).catch(xe=>yi(xe.message))})(K,de=>{const ge=new Response((xe=K.status)!==200&&xe!==404&&[101,103,204,205,304].includes(xe)?null:de,q);var xe;ys(),_o!=null&&_o.then(Ce=>Ce.put(te,ge)).catch(Ce=>yi(Ce.message))})}(h,R,O),m=!0,a(null,$,D.headers.get("Cache-Control"),D.headers.get("Expires")))}).catch($=>{g||a(new Error($.message))})};return x?function(D,R){if(ys(),_o==null)return R(null);_o.then(O=>{let $=Qn(D.url,{persistentParams:gs});const H=D.headers.get("Range");H&&($=wd($,{range:H})),O.match($).then(K=>{const W=function(F){if(!F)return!1;const q=new Date(F.headers.get("Expires")||0),Y=qr(F.headers.get("Cache-Control")||"");return Number(q)>Date.now()&&!Y["no-cache"]}(K);O.delete($).catch(R),W&&O.put($,K.clone()).catch(R),R(null,K,W)}).catch(R)}).catch(R)}(h,S):S(null,null),{cancel:()=>{g=!0,m||u.abort()}}}(r,e);if(ur(self)&&self.worker.actor)return self.worker.actor.send("getResource",r,e,void 0,!0)}var i;return function(s,a){const u=new XMLHttpRequest;u.open(s.method||"GET",s.url,!0),s.type==="arrayBuffer"&&(u.responseType="arraybuffer");for(const h in s.headers)u.setRequestHeader(h,s.headers[h]);return s.type==="json"&&(u.responseType="text",u.setRequestHeader("Accept","application/json")),u.withCredentials=s.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(s.type==="json")try{h=JSON.parse(u.response)}catch(m){return a(m)}a(null,h,u.getResponseHeader("Cache-Control"),u.getResponseHeader("Expires"))}else a(new Fu(u.statusText,u.status,s.url))},u.send(s.body),{cancel:()=>u.abort()}}(r,e)},dl=function(r,e){return hl(Oe(r,{type:"arrayBuffer"}),e)};function Ly(r){const e=document.createElement("a");return e.href=r,e.protocol===location.protocol&&e.host===location.host}const im="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Sa,js;Sa=[],js=0;const pl=function(r,e){if(Sd.supported&&(r.headers||(r.headers={}),r.headers.accept="image/webp,*/*"),js>=Cn.MAX_PARALLEL_IMAGE_REQUESTS){const u={requestParameters:r,callback:e,cancelled:!1,cancel(){this.cancelled=!0}};return Sa.push(u),u}js++;let i=!1;const s=()=>{if(!i)for(i=!0,js--;Sa.length&&js<Cn.MAX_PARALLEL_IMAGE_REQUESTS;){const u=Sa.shift(),{requestParameters:h,callback:m,cancelled:g}=u;g||(u.cancel=pl(h,m).cancel)}},a=dl(r,(u,h,m,g)=>{s(),u?e(u):h&&(self.createImageBitmap?function(x,T){const S=new Blob([new Uint8Array(x)],{type:"image/png"});createImageBitmap(S).then(A=>{T(null,A)}).catch(A=>{T(new Error(`Could not load image because of ${A.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(h,(x,T)=>e(x,T,m,g)):function(x,T){const S=new Image;S.onload=()=>{T(null,S),URL.revokeObjectURL(S.src),S.onload=null,requestAnimationFrame(()=>{S.src=im})},S.onerror=()=>T(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const A=new Blob([new Uint8Array(x)],{type:"image/png"});S.src=x.byteLength?URL.createObjectURL(A):im}(h,(x,T)=>e(x,T,m,g)))});return{cancel:()=>{a.cancel(),s()}}};var rm,Ed,Ea,gc={exports:{}},fl={exports:{}},Bu={exports:{}},Ad=function(){if(Ea)return gc.exports;Ea=1;var r=(rm||(rm=1,fl.exports=function(i,s){var a,u,h,m,g,x,T,S;for(u=i.length-(a=3&i.length),h=s,g=3432918353,x=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&(m=5*(65535&(h=(h^=T=(65535&(T=(T=(65535&T)*g+(((T>>>16)*g&65535)<<16)&4294967295)<<15|T>>>17))*x+(((T>>>16)*x&65535)<<16)&4294967295)<<13|h>>>19))+((5*(h>>>16)&65535)<<16)&4294967295))+((58964+(m>>>16)&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))*x+(((T>>>16)*x&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}),fl.exports),e=(Ed||(Ed=1,Bu.exports=function(i,s){for(var a,u=i.length,h=s^u,m=0;u>=4;)a=1540483477*(65535&(a=255&i.charCodeAt(m)|(255&i.charCodeAt(++m))<<8|(255&i.charCodeAt(++m))<<16|(255&i.charCodeAt(++m))<<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,++m;switch(u){case 3:h^=(255&i.charCodeAt(m+2))<<16;case 2:h^=(255&i.charCodeAt(m+1))<<8;case 1:h=1540483477*(65535&(h^=255&i.charCodeAt(m)))+((1540483477*(h>>>16)&65535)<<16)}return h=1540483477*(65535&(h^=h>>>13))+((1540483477*(h>>>16)&65535)<<16),(h^=h>>>15)>>>0}),Bu.exports);return gc.exports=r,gc.exports.murmur3=r,gc.exports.murmur2=e,gc.exports}(),eo=Wo(Ad);class Vs{constructor(e,...i){Oe(this,i[0]||{}),this.type=e}}class Id extends Vs{constructor(e,i={}){super("error",Oe({error:e},i))}}function Cd(r,e,i){i[r]&&i[r].indexOf(e)!==-1||(i[r]=i[r]||[],i[r].push(e))}function Nu(r,e,i){if(i&&i[r]){const s=i[r].indexOf(e);s!==-1&&i[r].splice(s,1)}}class Aa{on(e,i){return this._listeners=this._listeners||{},Cd(e,i,this._listeners),this}off(e,i){return Nu(e,i,this._listeners),Nu(e,i,this._oneTimeListeners),this}once(e,i){return i?(this._oneTimeListeners=this._oneTimeListeners||{},Cd(e,i,this._oneTimeListeners),this):new Promise(s=>{this.once(e,s)})}fire(e,i){const s=typeof e=="string"?new Vs(e,i):e,a=s.type;if(this.listens(a)){s.target=this;const u=this._listeners&&this._listeners[a]?this._listeners[a].slice():[];for(const g of u)g.call(this,s);const h=this._oneTimeListeners&&this._oneTimeListeners[a]?this._oneTimeListeners[a].slice():[];for(const g of h)Nu(a,g,this._oneTimeListeners),g.call(this,s);const m=this._eventedParent;m&&(Oe(s,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),m.fire(s))}else s instanceof Id&&console.error(s.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,s]=e.split("");return new to({name:i,iconsetId:s})}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 Md,ju={},yc=function(){if(Md)return ju;Md=1;var r={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 s(u){return(h=u[u.length-1]==="%"?parseFloat(u)/100:parseFloat(u))<0?0:h>1?1:h;var h}function a(u,h,m){return m<0?m+=1:m>1&&(m-=1),6*m<1?u+(h-u)*m*6:2*m<1?h:3*m<2?u+(h-u)*(2/3-m)*6:u}try{ju.parseCSSColor=function(u){var h,m=u.replace(/ /g,"").toLowerCase();if(m in r)return r[m].slice();if(m[0]==="#")return m.length===4?(h=parseInt(m.substr(1),16))>=0&&h<=4095?[(3840&h)>>4|(3840&h)>>8,240&h|(240&h)>>4,15&h|(15&h)<<4,1]:null:m.length===7&&(h=parseInt(m.substr(1),16))>=0&&h<=16777215?[(16711680&h)>>16,(65280&h)>>8,255&h,1]:null;var g=m.indexOf("("),x=m.indexOf(")");if(g!==-1&&x+1===m.length){var T=m.substr(0,g),S=m.substr(g+1,x-(g+1)).split(","),A=1;switch(T){case"rgba":if(S.length!==4)return null;A=s(S.pop());case"rgb":return S.length!==3?null:[i(S[0]),i(S[1]),i(S[2]),A];case"hsla":if(S.length!==4)return null;A=s(S.pop());case"hsl":if(S.length!==3)return null;var D=(parseFloat(S[0])%360+360)%360/360,R=s(S[1]),O=s(S[2]),$=O<=.5?O*(R+1):O+R-O*R,H=2*O-$;return[e(255*a(H,$,D+1/3)),e(255*a(H,$,D)),e(255*a(H,$,D-1/3)),A];default:return null}}return null}}catch{}return ju}();class Bi{constructor(e,i,s,a=1){this.r=e,this.g=i,this.b=s,this.a=a}static parse(e){if(!e)return;if(e instanceof Bi)return e;if(typeof e!="string")return;const i=yc.parseCSSColor(e);return i?new Bi(i[0]/255*i[3],i[1]/255*i[3],i[2]/255*i[3],i[3]):void 0}toStringPremultipliedAlpha(){const[e,i,s,a]=this.a===0?[0,0,0,0]:[255*this.r/this.a,255*this.g/this.a,255*this.b/this.a,this.a];return`rgba(${Math.round(e)},${Math.round(i)},${Math.round(s)},${a})`}toString(){const[e,i,s,a]=[this.r,this.g,this.b,this.a];return`rgba(${Math.round(255*e)},${Math.round(255*i)},${Math.round(255*s)},${a})`}toRenderColor(e){const{r:i,g:s,b:a,a:u}=this;return new nm(e,i,s,a,u)}clone(){return new Bi(this.r,this.g,this.b,this.a)}}class nm{constructor(e,i,s,a,u){if(e){const h=e.image.height,m=h*h;i=u===0?0:i/u*(h-1),s=u===0?0:s/u*(h-1),a=u===0?0:a/u*(h-1);const g=Math.floor(i),x=Math.floor(s),T=Math.floor(a),S=Math.ceil(i),A=Math.ceil(s),D=Math.ceil(a),R=i-g,O=s-x,$=a-T,H=e.image.data,K=4*(g+x*m+T*h),W=4*(g+x*m+D*h),F=4*(g+A*m+T*h),q=4*(g+A*m+D*h),Y=4*(S+x*m+T*h),te=4*(S+x*m+D*h),de=4*(S+A*m+T*h),ge=4*(S+A*m+D*h);if(K<0||ge>=H.length)throw new Error("out of range");this.r=Nt(Nt(Nt(H[K],H[W],$),Nt(H[F],H[q],$),O),Nt(Nt(H[Y],H[te],$),Nt(H[de],H[ge],$),O),R)/255*u,this.g=Nt(Nt(Nt(H[K+1],H[W+1],$),Nt(H[F+1],H[q+1],$),O),Nt(Nt(H[Y+1],H[te+1],$),Nt(H[de+1],H[ge+1],$),O),R)/255*u,this.b=Nt(Nt(Nt(H[K+2],H[W+2],$),Nt(H[F+2],H[q+2],$),O),Nt(Nt(H[Y+2],H[te+2],$),Nt(H[de+2],H[ge+2],$),O),R)/255*u,this.a=u}else this.r=i,this.g=s,this.b=a,this.a=u}toArray(){const{r:e,g:i,b:s,a}=this;return a===0?[0,0,0,0]:[255*e/a,255*i/a,255*s/a,a]}toHslaArray(){if(this.a===0)return[0,0,0,0];const{r:e,g:i,b:s,a}=this,u=Math.min(Math.max(e/a,0),1),h=Math.min(Math.max(i/a,0),1),m=Math.min(Math.max(s/a,0),1),g=Math.min(u,h,m),x=Math.max(u,h,m),T=(g+x)/2;if(g===x)return[0,0,100*T,a];const S=x-g,A=T>.5?S/(2-x-g):S/(x+g);let D=0;return x===u?D=(h-m)/S+(h<m?6:0):x===h?D=(m-u)/S+2:x===m&&(D=(u-h)/S+4),D*=60,[Math.min(Math.max(D,0),360),Math.min(Math.max(100*A,0),100),Math.min(Math.max(100*T,0),100),a]}toArray01(){const{r:e,g:i,b:s,a}=this;return a===0?[0,0,0,0]:[e/a,i/a,s/a,a]}toArray01Scaled(e){const{r:i,g:s,b:a,a:u}=this;return u===0?[0,0,0]:[i/u*e,s/u*e,a/u*e]}toArray01PremultipliedAlpha(){const{r:e,g:i,b:s,a}=this;return[e,i,s,a]}toArray01Linear(){const{r:e,g:i,b:s,a}=this;return a===0?[0,0,0,0]:[Math.pow(e/a,2.2),Math.pow(i/a,2.2),Math.pow(s/a,2.2),a]}}function Nt(r,e,i){return r*(1-i)+e*i}function om(r,e,i){return r.map((s,a)=>Nt(s,e[a],i))}function Vu(r){return r*r*r*r*r}Bi.black=new Bi(0,0,0,1),Bi.white=new Bi(1,1,1,1),Bi.transparent=new Bi(0,0,0,0),Bi.red=new Bi(1,0,0,1),Bi.blue=new Bi(0,0,1,1);var Uu=Object.freeze({__proto__:null,array:om,color:function(r,e,i){return new Bi(Nt(r.r,e.r,i),Nt(r.g,e.g,i),Nt(r.b,e.b,i),Nt(r.a,e.a,i))},easeIn:Vu,number:Nt});function vc(r,...e){for(const i of e)for(const s in i)r[s]=i[s];return r}class go extends Error{constructor(e,i){super(i),this.message=i,this.key=e}}class Ia{constructor(e,i=[]){this.parent=e,this.bindings={};for(const[s,a]of i)this.bindings[s]=a}concat(e){return new Ia(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 Us={kind:"null"},Ft={kind:"number"},ir={kind:"string"},$i={kind:"boolean"},Zn={kind:"color"},$s={kind:"object"},ji={kind:"value"},Ca={kind:"collator"},xc={kind:"formatted"},bc={kind:"resolvedImage"};function Nn(r,e){return{kind:"array",itemType:r,N:e}}function en(r){if(r.kind==="array"){const e=en(r.itemType);return typeof r.N=="number"?`array<${e}, ${r.N}>`:r.itemType.kind==="value"?"array":`array<${e}>`}return r.kind}const ky=[Us,Ft,ir,$i,Zn,xc,$s,Nn(ji),bc];function wc(r,e){if(e.kind==="error")return null;if(r.kind==="array"){if(e.kind==="array"&&(e.N===0&&e.itemType.kind==="value"||!wc(r.itemType,e.itemType))&&(typeof r.N!="number"||r.N===e.N))return null}else{if(r.kind===e.kind)return null;if(r.kind==="value"){for(const i of ky)if(!wc(i,e))return null}}return`Expected ${en(r)} but found ${en(e)} instead.`}function Pd(r,e){return e.some(i=>i.kind===r.kind)}function ml(r,e){return e.some(i=>i==="null"?r===null:i==="array"?Array.isArray(r):i==="object"?r&&!Array.isArray(r)&&typeof r=="object":i===typeof r)}class Gs{constructor(e,i,s){this.sensitivity=e?i?"variant":"case":i?"accent":"base",this.locale=s,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 $u{constructor(e,i,s,a,u){this.text=e.normalize?e.normalize():e,this.image=i,this.scale=s,this.fontStack=a,this.textColor=u}}class jn{constructor(e){this.sections=e}static fromString(e){return new jn([new $u(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 jn?e:jn.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 s={};i.fontStack&&(s["text-font"]=["literal",i.fontStack.split(",")]),i.scale&&(s["font-scale"]=i.scale),i.textColor&&(s["text-color"]=["rgba"].concat(i.textColor.toRenderColor(null).toArray())),e.push(s)}return e}}class Do{constructor(e,i={}){if(this.id=to.from(e),this.options=Object.assign({},i),i.transform){const{a:s,b:a,c:u,d:h,e:m,f:g}=i.transform;this.options.transform=new DOMMatrix([s,a,u,h,m,g])}else this.options.transform=new DOMMatrix([1,0,0,1,0,0])}toString(){const{a:e,b:i,c:s,d:a,e:u,f:h}=this.options.transform;return JSON.stringify({name:this.id.name,iconsetId:this.id.iconsetId,params:this.options.params,transform:{a:e,b:i,c:s,d:a,e:u,f:h}})}static parse(e){let i,s,a,u;try{({name:i,iconsetId:s,params:a,transform:u}=JSON.parse(e)||{})}catch{return null}if(!i)return null;const{a:h,b:m,c:g,d:x,e:T,f:S}=u||{};return new Do({name:i,iconsetId:s},{params:a,transform:new DOMMatrix([h,m,g,x,T,S])})}scaleSelf(e,i){return this.options.transform.scaleSelf(e,i),this}}class Wn{constructor(e,i,s,a,u=!1){this.primaryId=to.from(e),this.primaryOptions=i,s&&(this.secondaryId=to.from(s)),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 Do(this.primaryId,this.primaryOptions)}hasSecondary(){return!!this.secondaryId}getSecondary(){return this.secondaryId?new Do(this.secondaryId,this.secondaryOptions):null}static from(e){return typeof e=="string"?Wn.build({name:e}):e}static build(e,i,s,a){return!e||typeof e=="object"&&!("name"in e)?null:new Wn(e,s,i,a)}}function sm(r,e,i,s){return typeof r=="number"&&r>=0&&r<=255&&typeof e=="number"&&e>=0&&e<=255&&typeof i=="number"&&i>=0&&i<=255?s===void 0||typeof s=="number"&&s>=0&&s<=1?null:`Invalid rgba value [${[r,e,i,s].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof s=="number"?[r,e,i,s]:[r,e,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function _l(r){if(r===null||typeof r=="string"||typeof r=="boolean"||typeof r=="number"||r instanceof Bi||r instanceof Gs||r instanceof jn||r instanceof Wn)return!0;if(Array.isArray(r)){for(const e of r)if(!_l(e))return!1;return!0}if(typeof r=="object"){for(const e in r)if(!_l(r[e]))return!1;return!0}return!1}function hn(r){if(r===null)return Us;if(typeof r=="string")return ir;if(typeof r=="boolean")return $i;if(typeof r=="number")return Ft;if(r instanceof Bi)return Zn;if(r instanceof Gs)return Ca;if(r instanceof jn)return xc;if(r instanceof Wn)return bc;if(Array.isArray(r)){const e=r.length;let i;for(const s of r){const a=hn(s);if(i){if(i===a)continue;i=ji;break}i=a}return Nn(i||ji,e)}return $s}function Vn(r){const e=typeof r;return r===null?"":e==="string"||e==="number"||e==="boolean"?String(r):r instanceof Bi?r.toStringPremultipliedAlpha():r instanceof jn||r instanceof Wn?r.toString():JSON.stringify(r)}class di{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(!_l(e[1]))return i.error("invalid value");const s=e[1];let a=hn(s);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 di(a,s)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof Bi?["rgba"].concat(this.value.toRenderColor(null).toArray()):this.value instanceof jn?this.value.serialize():this.value}}class It{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const Tc={string:ir,number:Ft,boolean:$i,object:$s};class qt{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 s,a=1;const u=e[0];if(u==="array"){let m,g;if(e.length>2){const x=e[1];if(typeof x!="string"||!(x in Tc)||x==="object")return i.error('The item type argument of "array" must be one of string, number, boolean',1);m=Tc[x],a++}else m=ji;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++}s=Nn(m,g)}else s=Tc[u];const h=[];for(;a<e.length;a++){const m=i.parse(e[a],a,ji);if(!m)return null;h.push(m)}return new qt(s,h)}evaluate(e){for(let i=0;i<this.args.length;i++){const s=this.args[i].evaluate(e);if(!wc(this.type,hn(s)))return s;if(i===this.args.length-1)throw new It(`The expression ${JSON.stringify(this.args[i].serialize())} evaluated to ${en(hn(s))} but was expected to be of type ${en(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 s=e.itemType;if(s.kind==="string"||s.kind==="number"||s.kind==="boolean"){i.push(s.kind);const a=e.N;(typeof a=="number"||this.args.length>1)&&i.push(a)}}return i.concat(this.args.map(s=>s.serialize()))}}class Ma{constructor(e){this.type=xc,this.sections=e}static parse(e,i){if(e.length<2)return i.error("Expected at least one argument.");const s=e[1];if(!Array.isArray(s)&&typeof s=="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 m=e[h];if(u&&typeof m=="object"&&!Array.isArray(m)){u=!1;let g=null;if(m["font-scale"]&&(g=i.parseObjectValue(m["font-scale"],h,"font-scale",Ft),!g))return null;let x=null;if(m["text-font"]&&(x=i.parseObjectValue(m["text-font"],h,"text-font",Nn(ir)),!x))return null;let T=null;if(m["text-color"]&&(T=i.parseObjectValue(m["text-color"],h,"text-color",Zn),!T))return null;const S=a[a.length-1];S.scale=g,S.font=x,S.textColor=T}else{const g=i.parse(e[h],h,ji);if(!g)return null;const x=g.type.kind;if(x!=="string"&&x!=="value"&&x!=="null"&&x!=="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 Ma(a)}evaluate(e){return new jn(this.sections.map(i=>{const s=i.content.evaluate(e);return hn(s)===bc?new $u("",s,null,null,null):new $u(Vn(s),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 s={};i.scale&&(s["font-scale"]=i.scale.serialize()),i.font&&(s["text-font"]=i.font.serialize()),i.textColor&&(s["text-color"]=i.textColor.serialize()),e.push(s)}return e}}class gl{constructor(e,i,s,a){this._imageWarnHistory={},this.type=bc,this.namePrimary=e,this.nameSecondary=i,s&&(this.paramsPrimary=s.params,this.iconsetIdPrimary=s.iconset?s.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 s=1;const a=[];function u(){if(s<e.length){const m=i.parse(e[s],s++,ir);return m?(a.push({image:m,options:{}}),!0):(i.error(a.length?"Secondary image variant is not a string.":"No image name provided."),!1)}return!0}function h(){if(s<e.length){const g=e[s];if((m=g)===null||typeof m!="object"||Array.isArray(m))return!0;const x=g.params,T=g.iconset,S=i.concat(s);if(!x&&!T)return s++,!0;if(x){if(typeof x!="object"||x.constructor!==Object)return S.error('Image options "params" should be an object'),!1;const A={},D=S.concat(void 0,"params");for(const R in x){if(!R)return D.error("Image parameter name should be non-empty"),!1;const O=D.concat(void 0,R).parse(x[R],void 0,Zn,void 0,{typeAnnotation:"coerce"});if(!O)return!1;A[R]=O}a[a.length-1].options.params=A}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 s++,!0}var m;return!0}for(let m=0;m<2;m++)if(!u()||!h())return;return new gl(a[0].image,a[1]?a[1].image:void 0,a[0].options,a[1]?a[1].options:void 0)}evaluateParams(e,i){const s={};if(i){for(const a in i)if(i[a])try{s[a]=i[a].evaluate(e)}catch{continue}if(Object.keys(s).length!==0)return{params:s}}}evaluate(e){const i={name:this.namePrimary.evaluate(e),iconsetId:this.iconsetIdPrimary},s=this.nameSecondary?{name:this.nameSecondary.evaluate(e),iconsetId:this.iconsetIdSecondary}:void 0,a=Wn.build(i,s,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(m=>to.isEqual(m,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 s={};if(i&&(s.iconset={id:i}),e){s.params={};for(const a in e)e[a]&&(s.params[a]=e[a].serialize())}return Object.keys(s).length>0?s: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 Zt(r){return r instanceof Number?"number":r instanceof String?"string":r instanceof Boolean?"boolean":Array.isArray(r)?"array":r===null?"null":typeof r}const am={"to-boolean":$i,"to-color":Zn,"to-number":Ft,"to-string":ir};class Ro{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 s=e[0],a=[];let u=Us;if(s==="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=Nn(i.expectedType.itemType,h)}else{if(!(h>0&&_l(e[1][0])))return null;u=Nn(hn(e[1][0]),h)}for(let m=0;m<h;m++){const g=e[1][m];let x;if(Zt(g)==="array")x=i.parse(g,void 0,u.itemType);else{const T=Zt(g);if(T!==u.itemType.kind)return i.error(`Expected ${u.itemType.kind} but found ${T}.`);x=i.registry.literal.parse(["literal",g===void 0?null:g],i)}if(!x)return null;a.push(x)}}else{if((s==="to-boolean"||s==="to-string")&&e.length!==2)return i.error("Expected one argument.");u=am[s];for(let h=1;h<e.length;h++){const m=i.parse(e[h],h,ji);if(!m)return null;a.push(m)}}return new Ro(u,a)}evaluate(e){if(this.type.kind==="boolean")return!!this.args[0].evaluate(e);if(this.type.kind==="color"){let i,s;for(const a of this.args){if(i=a.evaluate(e),s=null,i instanceof Bi)return i;if(typeof i=="string"){const u=e.parseColor(i);if(u)return u}else if(Array.isArray(i)&&(s=i.length<3||i.length>4?`Invalid rbga value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.`:sm(i[0],i[1],i[2],i[3]),!s))return new Bi(i[0]/255,i[1]/255,i[2]/255,i[3])}throw new It(s||`Could not parse color from value '${typeof i=="string"?i:String(JSON.stringify(i))}'`)}if(this.type.kind==="number"){let i=null;for(const s of this.args){if(i=s.evaluate(e),i===null)return 0;const a=Number(i);if(!isNaN(a))return a}throw new It(`Could not convert ${JSON.stringify(i)} to number.`)}return this.type.kind==="formatted"?jn.fromString(Vn(this.args[0].evaluate(e))):this.type.kind==="resolvedImage"?Wn.build(Vn(this.args[0].evaluate(e))):this.type.kind==="array"?this.args.map(i=>i.evaluate(e)):Vn(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 Ma([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new gl(this.args[0]).serialize();const e=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(i=>{e.push(i.serialize())}),e}}const lm=["Unknown","Point","LineString","Polygon"];class Gu{constructor(e,i){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}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?lm[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:s,y:a}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(s*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]=Bi.parse(e)),i}getConfig(e){return this.options?this.options.get(e):null}}class Ln{constructor(e,i,s,a,u){this.name=e,this.type=i,this._evaluate=s,this.args=a,this._overloadIndex=u}evaluate(e){if(!this._evaluate){const i=Ln.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 s=e[0],a=Ln.definitions[s];if(!a)return i.error(`Unknown expression "${s}". 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,m=[];let g=null,x=-1;for(const[T,S]of h){if(Array.isArray(T)&&T.length!==e.length-1)continue;m.push(T),x++,g=new ym(i.registry,i.path,null,i.scope,void 0,i._scope,i.options);const A=[];let D=!1;for(let R=1;R<e.length;R++){const O=e[R],$=Array.isArray(T)?T[R-1]:T.type,H=g.parse(O,1+A.length,$);if(!H){D=!0;break}A.push(H)}if(!D)if(Array.isArray(T)&&T.length!==A.length)g.error(`Expected ${T.length} arguments, but found ${A.length} instead.`);else{for(let R=0;R<A.length;R++){const O=Array.isArray(T)?T[R]:T.type,$=A[R];g.concat(R+1).checkSubtype(O,$.type)}if(g.errors.length===0)return new Ln(s,u,S,A,x)}}if(m.length===1)i.errors.push(...g.errors);else{const T=(m.length?m:h.map(([A])=>A)).map(Un).join(" | "),S=[];for(let A=1;A<e.length;A++){const D=i.parse(e[A],1+S.length);if(!D)return null;S.push(en(D.type))}i.error(`Expected arguments of type ${T}, but found (${S.join(", ")}) instead.`)}return null}static register(e,i){Ln.definitions=i;for(const s in i)e[s]=Ln}}function Un(r){return Array.isArray(r)?`(${r.map(en).join(", ")})`:`(${en(r.type)}...)`}class yl{constructor(e,i,s){this.type=Ca,this.locale=s,this.caseSensitive=e,this.diacriticSensitive=i}static parse(e,i){if(e.length!==2)return i.error("Expected one argument.");const s=e[1];if(typeof s!="object"||Array.isArray(s))return i.error("Collator options argument must be an object.");const a=s["case-sensitive"]===void 0?i.parse(!1,1,$i):i.parseObjectValue(s["case-sensitive"],1,"case-sensitive",$i);if(!a)return null;const u=s["diacritic-sensitive"]===void 0?i.parse(!1,1,$i):i.parseObjectValue(s["diacritic-sensitive"],1,"diacritic-sensitive",$i);if(!u)return null;let h=null;return s.locale&&(h=i.parseObjectValue(s.locale,1,"locale",ir),!h)?null:new yl(a,u,h)}evaluate(e){return new Gs(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 Hs(r,e,i=0,s=r.length-1,a=Da){for(;s>i;){if(s-i>600){const g=s-i+1,x=e-i+1,T=Math.log(g),S=.5*Math.exp(2*T/3),A=.5*Math.sqrt(T*S*(g-S)/g)*(x-g/2<0?-1:1);Hs(r,e,Math.max(i,Math.floor(e-x*S/g+A)),Math.min(s,Math.floor(e+(g-x)*S/g+A)),a)}const u=r[e];let h=i,m=s;for(Pa(r,i,e),a(r[s],u)>0&&Pa(r,i,s);h<m;){for(Pa(r,h,m),h++,m--;a(r[h],u)<0;)h++;for(;a(r[m],u)>0;)m--}a(r[i],u)===0?Pa(r,i,m):(m++,Pa(r,m,s)),m<=e&&(i=m+1),e<=m&&(s=m-1)}}function Pa(r,e,i){const s=r[e];r[e]=r[i],r[i]=s}function Da(r,e){return r<e?-1:r>e?1:0}function $n(r){let e=0;for(let i,s,a=0,u=r.length,h=u-1;a<u;h=a++)i=r[a],s=r[h],e+=(s.x-i.x)*(i.y+s.y);return e}function Sc(r,e){r[0]=Math.min(r[0],e[0]),r[1]=Math.min(r[1],e[1]),r[2]=Math.max(r[2],e[0]),r[3]=Math.max(r[3],e[1])}function Ec(r,e){return!(r[0]<=e[0]||r[2]>=e[2]||r[1]<=e[1]||r[3]>=e[3])}function Oy(r,e,i){const s=r[0]-e[0],a=r[1]-e[1],u=r[0]-i[0],h=r[1]-i[1];return s*h-u*a==0&&s*u<=0&&a*h<=0}function vs(r,e,i=!1){let s=!1;for(let m=0,g=e.length;m<g;m++){const x=e[m];for(let T=0,S=x.length,A=S-1;T<S;A=T++){const D=x[A],R=x[T];if(Oy(r,D,R))return i;(u=D)[1]>(a=r)[1]!=(h=R)[1]>a[1]&&a[0]<(h[0]-u[0])*(a[1]-u[1])/(h[1]-u[1])+u[0]&&(s=!s)}}var a,u,h;return s}function Dd(r,e,i,s){const a=s[0]-i[0],u=s[1]-i[1],h=(r[0]-i[0])*u-a*(r[1]-i[1]),m=(e[0]-i[0])*u-a*(e[1]-i[1]);return h>0&&m<0||h<0&&m>0}function Yo(r,e,i,s){return(a=[s[0]-i[0],s[1]-i[1]])[0]*(u=[e[0]-r[0],e[1]-r[1]])[1]-a[1]*u[0]!=0&&!(!Dd(r,e,i,s)||!Dd(i,s,r,e));var a,u}function Rd(r){const e=new ft(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),i=new ft(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);for(const s of r[0])e.x>s.x&&(e.x=s.x),e.y>s.y&&(e.y=s.y),i.x<s.x&&(i.x=s.x),i.y<s.y&&(i.y=s.y);return{min:e,max:i}}const qs=8192;function Fy(r,e){const i=(180+r[0])/360,s=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r[1]*Math.PI/360)))/360,a=Math.pow(2,e.z);return[Math.round(i*a*qs),Math.round(s*a*qs)]}function By(r,e){for(let i=0;i<e.length;i++)if(vs(r,e[i]))return!0;return!1}function cm(r,e,i){for(const s of i)for(let a=0,u=s.length,h=u-1;a<u;h=a++)if(Yo(r,e,s[h],s[a]))return!0;return!1}function um(r,e){for(let i=0;i<r.length;++i)if(!vs(r[i],e))return!1;for(let i=0;i<r.length-1;++i)if(cm(r[i],r[i+1],e))return!1;return!0}function Ny(r,e){for(let i=0;i<e.length;i++)if(um(r,e[i]))return!0;return!1}function Hu(r,e,i){const s=[];for(let a=0;a<r.length;a++){const u=[];for(let h=0;h<r[a].length;h++){const m=Fy(r[a][h],i);Sc(e,m),u.push(m)}s.push(u)}return s}function hm(r,e,i){const s=[];for(let a=0;a<r.length;a++){const u=Hu(r[a],e,i);s.push(u)}return s}function Zs(r,e,i,s){if(r[0]<i[0]||r[0]>i[2]){const a=.5*s;let u=r[0]-i[0]>a?-s:i[0]-r[0]>a?s:0;u===0&&(u=r[0]-i[2]>a?-s:i[2]-r[0]>a?s:0),r[0]+=u}Sc(e,r)}function dm(r,e,i,s){const a=Math.pow(2,s.z)*qs,u=[s.x*qs,s.y*qs],h=[];if(!r)return h;for(const m of r)for(const g of m){const x=[g.x+u[0],g.y+u[1]];Zs(x,e,i,a),h.push(x)}return h}function pm(r,e,i,s){const a=Math.pow(2,s.z)*qs,u=[s.x*qs,s.y*qs],h=[];if(!r)return h;for(const g of r){const x=[];for(const T of g){const S=[T.x+u[0],T.y+u[1]];Sc(e,S),x.push(S)}h.push(x)}if(e[2]-e[0]<=a/2){(m=e)[0]=m[1]=1/0,m[2]=m[3]=-1/0;for(const g of h)for(const x of g)Zs(x,e,i,a)}var m;return h}class xs{constructor(e,i){this.type=$i,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(_l(e[1])){const s=e[1];if(s.type==="FeatureCollection")for(let a=0;a<s.features.length;++a){const u=s.features[a].geometry.type;if(u==="Polygon"||u==="MultiPolygon")return new xs(s,s.features[a].geometry)}else if(s.type==="Feature"){const a=s.geometry.type;if(a==="Polygon"||a==="MultiPolygon")return new xs(s,s.geometry)}else if(s.type==="Polygon"||s.type==="MultiPolygon")return new xs(s,s)}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,s){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(s.type==="Polygon"){const m=Hu(s.coordinates,u,h),g=dm(i.geometry(),a,u,h);if(!Ec(a,u))return!1;for(const x of g)if(!vs(x,m))return!1}if(s.type==="MultiPolygon"){const m=hm(s.coordinates,u,h),g=dm(i.geometry(),a,u,h);if(!Ec(a,u))return!1;for(const x of g)if(!By(x,m))return!1}return!0}(e,this.geometries);if(e.geometryType()==="LineString")return function(i,s){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(s.type==="Polygon"){const m=Hu(s.coordinates,u,h),g=pm(i.geometry(),a,u,h);if(!Ec(a,u))return!1;for(const x of g)if(!um(x,m))return!1}if(s.type==="MultiPolygon"){const m=hm(s.coordinates,u,h),g=pm(i.geometry(),a,u,h);if(!Ec(a,u))return!1;for(const x of g)if(!Ny(x,m))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}const Ac={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},zd=1/298.257223563,yo=zd*(2-zd),vl=Math.PI/180;class xl{static fromTile(e,i,s){const a=Math.PI*(1-2*(e+.5)/Math.pow(2,i)),u=Math.atan(.5*(Math.exp(a)-Math.exp(-a)))/vl;return new xl(u,s)}static get units(){return Ac}constructor(e,i){if(e===void 0)throw new Error("No latitude given.");if(i&&!Ac[i])throw new Error(`Unknown unit ${i}. Use one of: ${Object.keys(Ac).join(", ")}`);const s=6378.137*vl*(i?Ac[i]:1),a=Math.cos(e*vl),u=1/(1-yo*(1-a*a)),h=Math.sqrt(u);this.kx=s*h*a,this.ky=s*h*u*(1-yo)}distance(e,i){const s=lo(e[0]-i[0])*this.kx,a=(e[1]-i[1])*this.ky;return Math.sqrt(s*s+a*a)}bearing(e,i){const s=lo(i[0]-e[0])*this.kx;return Math.atan2(s,(i[1]-e[1])*this.ky)/vl}destination(e,i,s){const a=s*vl;return this.offset(e,Math.sin(a)*i,Math.cos(a)*i)}offset(e,i,s){return[e[0]+i/this.kx,e[1]+s/this.ky]}lineDistance(e){let i=0;for(let s=0;s<e.length-1;s++)i+=this.distance(e[s],e[s+1]);return i}area(e){let i=0;for(let s=0;s<e.length;s++){const a=e[s];for(let u=0,h=a.length,m=h-1;u<h;m=u++)i+=lo(a[u][0]-a[m][0])*(a[u][1]+a[m][1])*(s?-1:1)}return Math.abs(i)/2*this.kx*this.ky}along(e,i){let s=0;if(i<=0)return e[0];for(let a=0;a<e.length-1;a++){const u=e[a],h=e[a+1],m=this.distance(u,h);if(s+=m,s>i)return qu(u,h,(i-(s-m))/m)}return e[e.length-1]}pointToSegmentDistance(e,i,s){let[a,u]=i,h=lo(s[0]-a)*this.kx,m=(s[1]-u)*this.ky;if(h!==0||m!==0){const g=(lo(e[0]-a)*this.kx*h+(e[1]-u)*this.ky*m)/(h*h+m*m);g>1?(a=s[0],u=s[1]):g>0&&(a+=h/this.kx*g,u+=m/this.ky*g)}return h=lo(e[0]-a)*this.kx,m=(e[1]-u)*this.ky,Math.sqrt(h*h+m*m)}pointOnLine(e,i){let s=1/0,a=e[0][0],u=e[0][1],h=0,m=0;for(let g=0;g<e.length-1;g++){let x=e[g][0],T=e[g][1],S=lo(e[g+1][0]-x)*this.kx,A=(e[g+1][1]-T)*this.ky,D=0;S===0&&A===0||(D=(lo(i[0]-x)*this.kx*S+(i[1]-T)*this.ky*A)/(S*S+A*A),D>1?(x=e[g+1][0],T=e[g+1][1]):D>0&&(x+=S/this.kx*D,T+=A/this.ky*D)),S=lo(i[0]-x)*this.kx,A=(i[1]-T)*this.ky;const R=S*S+A*A;R<s&&(s=R,a=x,u=T,h=g,m=D)}return{point:[a,u],index:h,t:Math.max(0,Math.min(1,m))}}lineSlice(e,i,s){let a=this.pointOnLine(s,e),u=this.pointOnLine(s,i);if(a.index>u.index||a.index===u.index&&a.t>u.t){const x=a;a=u,u=x}const h=[a.point],m=a.index+1,g=u.index;!Ld(s[m],h[0])&&m<=g&&h.push(s[m]);for(let x=m+1;x<=g;x++)h.push(s[x]);return Ld(s[g],u.point)||h.push(u.point),h}lineSliceAlong(e,i,s){let a=0;const u=[];for(let h=0;h<s.length-1;h++){const m=s[h],g=s[h+1],x=this.distance(m,g);if(a+=x,a>e&&u.length===0&&u.push(qu(m,g,(e-(a-x))/x)),a>=i)return u.push(qu(m,g,(i-(a-x))/x)),u;a>e&&u.push(g)}return u}bufferPoint(e,i){const s=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-s,e[0]+a,e[1]+s]}bufferBBox(e,i){const s=i/this.ky,a=i/this.kx;return[e[0]-a,e[1]-s,e[2]+a,e[3]+s]}insideBBox(e,i){return lo(e[0]-i[0])>=0&&lo(e[0]-i[2])<=0&&e[1]>=i[1]&&e[1]<=i[3]}}function Ld(r,e){return r[0]===e[0]&&r[1]===e[1]}function qu(r,e,i){const s=lo(e[0]-r[0]);return[r[0]+s*i,r[1]+(e[1]-r[1])*i]}function lo(r){for(;r<-180;)r+=360;for(;r>180;)r-=360;return r}class Zu{constructor(e=[],i=(s,a)=>s<a?-1:s>a?1:0){if(this.data=e,this.length=this.data.length,this.compare=i,this.length>0)for(let s=(this.length>>1)-1;s>=0;s--)this._down(s)}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:s}=this,a=i[e];for(;e>0;){const u=e-1>>1,h=i[u];if(s(a,h)>=0)break;i[e]=h,e=u}i[e]=a}_down(e){const{data:i,compare:s}=this,a=this.length>>1,u=i[e];for(;e<a;){let h=1+(e<<1);const m=h+1;if(m<this.length&&s(i[m],i[h])<0&&(h=m),s(i[h],u)>=0)break;i[e]=i[h],e=h}i[e]=u}}var _t=8192;function kd(r,e){return e.dist-r.dist}const Wu=100,Xu=50;function Od(r){const e=[1/0,1/0,-1/0,-1/0];if(e.length!==r.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==r[i])return!1;return!0}function Ra(r){return r[1]-r[0]+1}function vo(r,e){const i=r[1]>=r[0]&&r[1]<e;return i||console.warn("Distance Expression: Index is out of range"),i}function bl(r,e){if(r[0]>r[1])return[null,null];const i=Ra(r);if(e){if(i===2)return[r,null];const s=Math.floor(i/2);return[[r[0],r[0]+s],[r[0]+s,r[1]]]}{if(i===1)return[r,null];const s=Math.floor(i/2)-1;return[[r[0],r[0]+s],[r[0]+s+1,r[1]]]}}function Ws(r,e){const i=[1/0,1/0,-1/0,-1/0];if(!vo(e,r.length))return i;for(let s=e[0];s<=e[1];++s)Sc(i,r[s]);return i}function Ic(r){const e=[1/0,1/0,-1/0,-1/0];for(let i=0;i<r.length;++i)for(let s=0;s<r[i].length;++s)Sc(e,r[i][s]);return e}function za(r,e,i){if(Od(r)||Od(e))return NaN;let s=0,a=0;return r[2]<e[0]&&(s=e[0]-r[2]),r[0]>e[2]&&(s=r[0]-e[2]),r[1]>e[3]&&(a=r[1]-e[3]),r[3]<e[1]&&(a=e[1]-r[3]),i.distance([0,0],[s,a])}function wl(r){return 360*r-180}function Ii(r){return 360/Math.PI*Math.atan(Math.exp((180-360*r)*Math.PI/180))-90}function Fd(r,e){const i=Math.pow(2,e.z),s=(r.y/_t+e.y)/i;return[wl((r.x/_t+e.x)/i),Ii(s)]}function jy(r,e){const i=[];for(let s=0;s<r.length;++s)i.push(Fd(r[s],e));return i}function fm(r,e,i){const s=i.pointOnLine(e,r).point;return i.distance(r,s)}function Bd(r,e,i,s,a){const u=i.slice(s[0],s[1]+1);let h=1/0;for(let m=e[0];m<=e[1];++m)if((h=Math.min(h,fm(r[m],u,a)))===0)return 0;return h}function Nd(r,e,i,s,a){const u=Math.min(a.pointToSegmentDistance(r,i,s),a.pointToSegmentDistance(e,i,s)),h=Math.min(a.pointToSegmentDistance(i,r,e),a.pointToSegmentDistance(s,r,e));return Math.min(u,h)}function zr(r,e,i,s,a){if(!vo(e,r.length)||!vo(s,i.length))return NaN;let u=1/0;for(let h=e[0];h<e[1];++h)for(let m=s[0];m<s[1];++m){if(Yo(r[h],r[h+1],i[m],i[m+1]))return 0;u=Math.min(u,Nd(r[h],r[h+1],i[m],i[m+1],a))}return u}function Vy(r,e,i,s,a){if(!vo(e,r.length)||!vo(s,i.length))return NaN;let u=1/0;for(let h=e[0];h<=e[1];++h)for(let m=s[0];m<=s[1];++m)if((u=Math.min(u,a.distance(r[h],i[m])))===0)return u;return u}function Uy(r,e,i){if(vs(r,e,!0))return 0;let s=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]&&(s=Math.min(s,i.pointToSegmentDistance(r,a[u-1],a[0])))===0||(s=Math.min(s,fm(r,a,i)))===0)return s}return s}function $y(r,e,i,s){if(!vo(e,r.length))return NaN;for(let u=e[0];u<=e[1];++u)if(vs(r[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 m=0,g=h.length,x=g-1;m<g;x=m++){if(Yo(r[u],r[u+1],h[x],h[m]))return 0;a=Math.min(a,Nd(r[u],r[u+1],h[x],h[m],s))}return a}function mm(r,e){for(const i of r)for(let s=0;s<=i.length-1;++s)if(vs(i[s],e,!0))return!0;return!1}function Gy(r,e,i,s=1/0){const a=Ic(r),u=Ic(e);if(s!==1/0&&za(a,u,i)>=s)return s;if(Ec(a,u)){if(mm(r,e))return 0}else if(mm(e,r))return 0;let h=s;for(const m of r)for(let g=0,x=m.length,T=x-1;g<x;T=g++)for(const S of e)for(let A=0,D=S.length,R=D-1;A<D;R=A++){if(Yo(m[T],m[g],S[R],S[A]))return 0;h=Math.min(h,Nd(m[T],m[g],S[R],S[A],i))}return h}function Yu(r,e,i,s,a,u,h){if(u===null||h===null)return;const m=za(Ws(s,u),Ws(a,h),i);m<e&&r.push({dist:m,range1:u,range2:h})}function Hy(r,e,i,s,a=1/0){let u=Math.min(s.distance(r[0],i[0][0]),a);if(u===0)return u;const h=new Zu([{dist:0,range1:[0,r.length-1],range2:[0,0]}],kd),m=e?Xu:Wu,g=Ic(i);for(;h.length;){const x=h.pop();if(x.dist>=u)continue;const T=x.range1;if(Ra(T)<=m){if(!vo(T,r.length))return NaN;if(e){const S=$y(r,T,i,s);if((u=Math.min(u,S))===0)return u}else for(let S=T[0];S<=T[1];++S){const A=Uy(r[S],i,s);if((u=Math.min(u,A))===0)return u}}else{const S=bl(T,e);if(S[0]!==null){const A=za(Ws(r,S[0]),g,s);A<u&&h.push({dist:A,range1:S[0],range2:[0,0]})}if(S[1]!==null){const A=za(Ws(r,S[1]),g,s);A<u&&h.push({dist:A,range1:S[1],range2:[0,0]})}}}return u}function _m(r,e,i,s,a,u=1/0){let h=Math.min(u,a.distance(r[0],i[0]));if(h===0)return h;const m=new Zu([{dist:0,range1:[0,r.length-1],range2:[0,i.length-1]}],kd),g=e?Xu:Wu,x=s?Xu:Wu;for(;m.length;){const T=m.pop();if(T.dist>=h)continue;const S=T.range1,A=T.range2;if(Ra(S)<=g&&Ra(A)<=x){if(!vo(S,r.length)||!vo(A,i.length))return NaN;if(e&&s?h=Math.min(h,zr(r,S,i,A,a)):e||s?e&&!s?h=Math.min(h,Bd(i,A,r,S,a)):!e&&s&&(h=Math.min(h,Bd(r,S,i,A,a))):h=Math.min(h,Vy(r,S,i,A,a)),h===0)return h}else{const D=bl(S,e),R=bl(A,s);Yu(m,h,a,r,i,D[0],R[0]),Yu(m,h,a,r,i,D[0],R[1]),Yu(m,h,a,r,i,D[1],R[0]),Yu(m,h,a,r,i,D[1],R[1])}}return h}function jd(r,e,i,s,a=1/0){let u=a;const h=Ws(r,[0,r.length-1]);for(const m of i)if(!(u!==1/0&&za(h,Ws(m,[0,m.length-1]),s)>=u)&&(u=Math.min(u,_m(r,e,m,!0,s,u)),u===0))return u;return u}function Ku(r,e,i,s,a=1/0){let u=a;const h=Ws(r,[0,r.length-1]);for(const m of i){if(u!==1/0&&za(h,Ic(m),s)>=u)continue;const g=Hy(r,e,m,s,u);if(isNaN(g))return g;if((u=Math.min(u,g))===0)return u}return u}function Vd(r){return r==="Point"||r==="MultiPoint"||r==="LineString"||r==="MultiLineString"||r==="Polygon"||r==="MultiPolygon"}class La{constructor(e,i){this.type=Ft,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(_l(e[1])){const s=e[1];if(s.type==="FeatureCollection"){for(let a=0;a<s.features.length;++a)if(Vd(s.features[a].geometry.type))return new La(s,s.features[a].geometry)}else if(s.type==="Feature"){if(Vd(s.geometry.type))return new La(s,s.geometry)}else if(Vd(s.type))return new La(s,s)}return i.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(e){const i=e.geometry(),s=e.canonicalID();if(i!=null&&s!=null){if(e.geometryType()==="Point")return function(a,u,h){const m=[];for(const x of a)for(const T of x)m.push(Fd(T,u));const g=new xl(m[0][1],"meters");return h.type==="Point"||h.type==="MultiPoint"||h.type==="LineString"?_m(m,!1,h.type==="Point"?[h.coordinates]:h.coordinates,h.type==="LineString",g):h.type==="MultiLineString"?jd(m,!1,h.coordinates,g):h.type==="Polygon"||h.type==="MultiPolygon"?Ku(m,!1,h.type==="Polygon"?[h.coordinates]:h.coordinates,g):null}(i,s,this.geometries);if(e.geometryType()==="LineString")return function(a,u,h){const m=[];for(const x of a){const T=[];for(const S of x)T.push(Fd(S,u));m.push(T)}const g=new xl(m[0][0][1],"meters");if(h.type==="Point"||h.type==="MultiPoint"||h.type==="LineString")return jd(h.type==="Point"?[h.coordinates]:h.coordinates,h.type==="LineString",m,g);if(h.type==="MultiLineString"){let x=1/0;for(let T=0;T<h.coordinates.length;T++){const S=jd(h.coordinates[T],!0,m,g,x);if(isNaN(S))return S;if((x=Math.min(x,S))===0)return x}return x}if(h.type==="Polygon"||h.type==="MultiPolygon"){let x=1/0;for(let T=0;T<m.length;T++){const S=Ku(m[T],!0,h.type==="Polygon"?[h.coordinates]:h.coordinates,g,x);if(isNaN(S))return S;if((x=Math.min(x,S))===0)return x}return x}return null}(i,s,this.geometries);if(e.geometryType()==="Polygon")return function(a,u,h){const m=[];for(const x of function(T,S){const A=T.length;if(A<=1)return[T];const D=[];let R,O;for(let $=0;$<A;$++){const H=$n(T[$]);H!==0&&(T[$].area=Math.abs(H),O===void 0&&(O=H<0),O===H<0?(R&&D.push(R),R=[T[$]]):R.push(T[$]))}return R&&D.push(R),D}(a)){const T=[];for(let S=0;S<x.length;++S)T.push(jy(x[S],u));m.push(T)}const g=new xl(m[0][0][0][1],"meters");if(h.type==="Point"||h.type==="MultiPoint"||h.type==="LineString")return Ku(h.type==="Point"?[h.coordinates]:h.coordinates,h.type==="LineString",m,g);if(h.type==="MultiLineString"){let x=1/0;for(let T=0;T<h.coordinates.length;T++){const S=Ku(h.coordinates[T],!0,m,g,x);if(isNaN(S))return S;if((x=Math.min(x,S))===0)return x}return x}return h.type==="Polygon"||h.type==="MultiPolygon"?function(x,T,S){let A=1/0;for(const D of x)for(const R of T){const O=Gy(D,R,S,A);if(isNaN(O))return O;if((A=Math.min(A,O))===0)return A}return A}(h.type==="Polygon"?[h.coordinates]:h.coordinates,m,g):null}(i,s,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requirs valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}function Ud(r,e){switch(r){case"string":return Vn(e);case"number":return+e;case"boolean":return!!e;case"color":return Bi.parse(e);case"formatted":return jn.fromString(Vn(e));case"resolvedImage":return Wn.build(Vn(e))}return e}function gm(r,e,i,s){return s!==void 0&&(r=s*Math.round(r/s)),e!==void 0&&r<e&&(r=e),i!==void 0&&r>i&&(r=i),r}class Tl{constructor(e,i,s){this.type=e,this.key=i,this.scope=s}static parse(e,i){let s=i.expectedType;if(s==null&&(s=ji),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 di))return i.error("Key name of 'config' expression must be a string literal.");if(e.length>=3){const u=i.parse(e[2],2);return u instanceof di?new Tl(s,Vn(a.value),Vn(u.value)):i.error("Scope of 'config' expression must be a string literal.")}return new Tl(s,Vn(a.value))}evaluate(e){const i=[this.key,this.scope,e.scope].filter(Boolean).join(""),s=e.getConfig(i);if(!s)return null;const{type:a,value:u,values:h,minValue:m,maxValue:g,stepValue:x}=s,T=s.default.evaluate(e);let S=T;if(u){const A=e.scope;e.scope=(A||"").split("").slice(1).join(""),S=u.evaluate(e),e.scope=A}return a&&(S=Ud(a,S)),S===void 0||m===void 0&&g===void 0&&x===void 0||(typeof S=="number"?S=gm(S,m,g,x):Array.isArray(S)&&(S=S.map(A=>typeof A=="number"?gm(A,m,g,x):A))),u!==void 0&&S!==void 0&&h&&!h.includes(S)&&(S=T,a&&(S=Ud(a,S))),(a&&a!==this.type||S!==void 0&&hn(S)!==this.type)&&(S=Ud(this.type.kind,S)),S}eachChild(){}outputDefined(){return!1}serialize(){const e=["config",this.key];return this.scope&&e.concat(this.key),e}}function Cc(r){if(r instanceof Ln&&(r.name==="get"&&r.args.length===1||r.name==="feature-state"||r.name==="has"&&r.args.length===1||r.name==="properties"||r.name==="geometry-type"||r.name==="id"||/^filter-/.test(r.name))||r instanceof xs||r instanceof La)return!1;let e=!0;return r.eachChild(i=>{e&&!Cc(i)&&(e=!1)}),e}function Ju(r){if(r instanceof Ln&&r.name==="feature-state")return!1;let e=!0;return r.eachChild(i=>{e&&!Ju(i)&&(e=!1)}),e}function Qu(r){if(r instanceof Tl)return new Set([r.key]);let e=new Set;return r.eachChild(i=>{e=new Set([...e,...Qu(i)])}),e}function Sl(r,e){if(r instanceof Ln&&e.indexOf(r.name)>=0)return!1;let i=!0;return r.eachChild(s=>{i&&!Sl(s,e)&&(i=!1)}),i}class eh{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 s=e[1];return i.scope.has(s)?new eh(s,i.scope.get(s)):i.error(`Unknown variable "${s}". Make sure "${s}" 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 $d{constructor(e,i=[],s,a=new Ia,u=[],h,m){this.registry=e,this.path=i,this.key=i.map(g=>typeof g=="string"?`['${g}']`:`[${g}]`).join(""),this.scope=a,this.errors=u,this.expectedType=s,this._scope=h,this.options=m}parse(e,i,s,a,u={}){return i||s?this.concat(i,null,s,a)._parse(e,u):this._parse(e,u)}parseObjectValue(e,i,s,a,u,h={}){return this.concat(i,s,a,u)._parse(e,h)}_parse(e,i){function s(a,u,h){return h==="assert"?new qt(u,[a]):h==="coerce"?new Ro(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,m=u.type;if(h.kind!=="string"&&h.kind!=="number"&&h.kind!=="boolean"&&h.kind!=="object"&&h.kind!=="array"||m.kind!=="value")if(h.kind!=="color"&&h.kind!=="formatted"&&h.kind!=="resolvedImage"||m.kind!=="value"&&m.kind!=="string"){if(this.checkSubtype(h,m))return null}else u=s(u,h,i.typeAnnotation||"coerce");else u=s(u,h,i.typeAnnotation||"assert")}if(!(u instanceof di)&&u.type.kind!=="resolvedImage"&&Gd(u)){const h=new Gu(this._scope,this.options);try{u=new di(u.type,u.evaluate(h))}catch(m){return this.error(m.message),null}}return u}return Ro.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,s,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 $d(this.registry,u,s||null,h,this.errors,this._scope,this.options)}error(e,...i){const s=`${this.key}${i.map(a=>`[${a}]`).join("")}`;this.errors.push(new go(s,e))}checkSubtype(e,i){const s=wc(e,i);return s&&this.error(s),s}}var ym=$d;function Gd(r){if(r instanceof eh)return Gd(r.boundExpression);if(r instanceof Ln&&r.name==="error"||r instanceof yl||r instanceof xs||r instanceof La||r instanceof Tl)return!1;const e=r instanceof Ro||r instanceof qt;let i=!0;return r.eachChild(s=>{i=e?i&&Gd(s):i&&s instanceof di}),!!i&&Cc(r)&&Sl(r,["zoom","heatmap-density","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed"])}function th(r,e){const i=r.length-1;let s,a,u=0,h=i,m=0;for(;u<=h;)if(m=Math.floor((u+h)/2),s=r[m],a=r[m+1],s<=e){if(m===i||e<a)return m;u=m+1}else{if(!(s>e))throw new It("Input is not a number.");h=m-1}return 0}class Mc{constructor(e,i,s){this.type=e,this.input=i,this.labels=[],this.outputs=[];for(const[a,u]of s)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 s=i.parse(e[1],1,Ft);if(!s)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 m=h===1?-1/0:e[h],g=e[h+1],x=h,T=h+1;if(typeof m!="number")return i.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',x);if(a.length&&a[a.length-1][0]>=m)return i.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',x);const S=i.parse(g,T,u);if(!S)return null;u=u||S.type,a.push([m,S])}return new Mc(u,s,a)}evaluate(e){const i=this.labels,s=this.outputs;if(i.length===1)return s[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return s[0].evaluate(e);const u=i.length;return a>=i[u-1]?s[u-1].evaluate(e):s[th(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 vm=.95047,xm=1.08883,bm=4/29,El=6/29,wm=3*El*El,qy=El*El*El,Hd=Math.PI/180,Zy=180/Math.PI;function ih(r){return r>qy?Math.pow(r,1/3):r/wm+bm}function qd(r){return r>El?r*r*r:wm*(r-bm)}function Zd(r){return 255*(r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055)}function Wd(r){return(r/=255)<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function Xd(r){const e=Wd(r.r),i=Wd(r.g),s=Wd(r.b),a=ih((.4124564*e+.3575761*i+.1804375*s)/vm),u=ih((.2126729*e+.7151522*i+.072175*s)/1);return{l:116*u-16,a:500*(a-u),b:200*(u-ih((.0193339*e+.119192*i+.9503041*s)/xm)),alpha:r.a}}function Yd(r){let e=(r.l+16)/116,i=isNaN(r.a)?e:e+r.a/500,s=isNaN(r.b)?e:e-r.b/200;return e=1*qd(e),i=vm*qd(i),s=xm*qd(s),new Bi(Zd(3.2404542*i-1.5371385*e-.4985314*s),Zd(-.969266*i+1.8760108*e+.041556*s),Zd(.0556434*i-.2040259*e+1.0572252*s),r.alpha)}function Al(r,e,i){const s=e-r;return r+i*(s>180||s<-180?s-360*Math.round(s/360):s)}const Il={forward:Xd,reverse:Yd,interpolate:function(r,e,i){return{l:Nt(r.l,e.l,i),a:Nt(r.a,e.a,i),b:Nt(r.b,e.b,i),alpha:Nt(r.alpha,e.alpha,i)}}},Cl={forward:function(r){const{l:e,a:i,b:s}=Xd(r),a=Math.atan2(s,i)*Zy;return{h:a<0?a+360:a,c:Math.sqrt(i*i+s*s),l:e,alpha:r.a}},reverse:function(r){const e=r.h*Hd,i=r.c;return Yd({l:r.l,a:Math.cos(e)*i,b:Math.sin(e)*i,alpha:r.alpha})},interpolate:function(r,e,i){return{h:Al(r.h,e.h,i),c:Nt(r.c,e.c,i),l:Nt(r.l,e.l,i),alpha:Nt(r.alpha,e.alpha,i)}}};var Tm=Object.freeze({__proto__:null,hcl:Cl,lab:Il});class Xn{constructor(e,i,s,a,u){this.type=e,this.operator=i,this.interpolation=s,this.input=a,this.labels=[],this.outputs=[];for(const[h,m]of u)this.labels.push(h),this.outputs.push(m)}static interpolationFactor(e,i,s,a){let u=0;if(e.name==="exponential")u=Pc(i,e.base,s,a);else if(e.name==="linear")u=Pc(i,1,s,a);else if(e.name==="cubic-bezier"){const h=e.controlPoints;u=new Du(h[0],h[1],h[2],h[3]).solve(Pc(i,1,s,a))}return u}static parse(e,i){let[s,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 x=a[1];if(typeof x!="number")return i.error("Exponential interpolation requires a numeric base.",1,1);a={name:"exponential",base:x}}else{if(a[0]!=="cubic-bezier")return i.error(`Unknown interpolation type ${String(a[0])}`,1,0);{const x=a.slice(1);if(x.length!==4||x.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:x}}}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,Ft),!u)return null;const m=[];let g=null;s==="interpolate-hcl"||s==="interpolate-lab"?g=Zn:i.expectedType&&i.expectedType.kind!=="value"&&(g=i.expectedType);for(let x=0;x<h.length;x+=2){const T=h[x],S=h[x+1],A=x+3,D=x+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.',A);if(m.length&&m[m.length-1][0]>=T)return i.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',A);const R=i.parse(S,D,g);if(!R)return null;g=g||R.type,m.push([T,R])}return g.kind==="number"||g.kind==="color"||g.kind==="array"&&g.itemType.kind==="number"&&typeof g.N=="number"?new Xn(g,s,a,u,m):i.error(`Type ${en(g)} is not interpolatable.`)}evaluate(e){const i=this.labels,s=this.outputs;if(i.length===1)return s[0].evaluate(e);const a=this.input.evaluate(e);if(a<=i[0])return s[0].evaluate(e);const u=i.length;if(a>=i[u-1])return s[u-1].evaluate(e);const h=th(i,a),m=Xn.interpolationFactor(this.interpolation,a,i[h],i[h+1]),g=s[h].evaluate(e),x=s[h+1].evaluate(e);return this.operator==="interpolate"?Uu[this.type.kind.toLowerCase()](g,x,m):this.operator==="interpolate-hcl"?Cl.reverse(Cl.interpolate(Cl.forward(g),Cl.forward(x),m)):Il.reverse(Il.interpolate(Il.forward(g),Il.forward(x),m))}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 s=0;s<this.labels.length;s++)i.push(this.labels[s],this.outputs[s].serialize());return i}}function Pc(r,e,i,s){const a=s-i,u=r-i;return a===0?0:e===1?u/a:(Math.pow(e,u)-1)/(Math.pow(e,a)-1)}class rh{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 s=null;const a=i.expectedType;a&&a.kind!=="value"&&(s=a);const u=[];for(const m of e.slice(1)){const g=i.parse(m,1+u.length,s,void 0,{typeAnnotation:"omit"});if(!g)return null;s=s||g.type,u.push(g)}const h=a&&u.some(m=>wc(a,m.type));return new rh(h?ji:s,u)}evaluate(e){let i,s=null,a=0;for(const u of this.args){if(a++,s=u.evaluate(e),s&&s instanceof Wn&&!s.available&&(i||(i=s),s=null,a===this.args.length))return i;if(s!==null)break}return s}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 nh{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 s=[];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 m=i.parse(e[u+1],u+1);if(!m)return null;s.push([h,m])}const a=i.parse(e[e.length-1],e.length-1,i.expectedType,s);return a?new nh(s,a):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[i,s]of this.bindings)e.push(i,s.serialize());return e.push(this.result.serialize()),e}}class oh{constructor(e,i,s){this.type=e,this.index=i,this.input=s}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const s=i.parse(e[1],1,Ft),a=i.parse(e[2],2,Nn(i.expectedType||ji));return s&&a?new oh(a.type.itemType,s,a):null}evaluate(e){const i=this.index.evaluate(e),s=this.input.evaluate(e);if(i<0)throw new It(`Array index out of bounds: ${i} < 0.`);if(i>=s.length)throw new It(`Array index out of bounds: ${i} > ${s.length-1}.`);if(i!==Math.floor(i))throw new It(`Array index must be an integer, but found ${i} instead. Use at-interpolated to retrieve interpolated result with a fractional index.`);return s[i]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class sh{constructor(e,i,s){this.type=e,this.index=i,this.input=s}static parse(e,i){if(e.length!==3)return i.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const s=i.parse(e[1],1,Ft),a=i.parse(e[2],2,Nn(i.expectedType||ji));return s&&a?new sh(a.type.itemType,s,a):null}evaluate(e){const i=this.index.evaluate(e),s=this.input.evaluate(e);if(i<0)throw new It(`Array index out of bounds: ${i} < 0.`);if(i>s.length-1)throw new It(`Array index out of bounds: ${i} > ${s.length-1}.`);if(i===Math.floor(i))return s[i];const a=Math.floor(i),u=Math.ceil(i),h=s[a],m=s[u];if(typeof h!="number"||typeof m!="number")throw new It(`Cannot interpolate between non-number values at index ${i}.`);const g=i-a;return h*(1-g)+m*g}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at-interpolated",this.index.serialize(),this.input.serialize()]}}class Kd{constructor(e,i){this.type=$i,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 s=i.parse(e[1],1,ji),a=i.parse(e[2],2,ji);return s&&a?Pd(s.type,[$i,ir,Ft,Us,ji])?new Kd(s,a):i.error(`Expected first argument to be of type boolean, string, number or null, but found ${en(s.type)} instead`):null}evaluate(e){const i=this.needle.evaluate(e),s=this.haystack.evaluate(e);if(s==null)return!1;if(!ml(i,["boolean","string","number","null"]))throw new It(`Expected first argument to be of type boolean, string, number or null, but found ${en(hn(i))} instead.`);if(!ml(s,["string","array"]))throw new It(`Expected second argument to be of type array or string, but found ${en(hn(s))} instead.`);return s.indexOf(i)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class ah{constructor(e,i,s){this.type=Ft,this.needle=e,this.haystack=i,this.fromIndex=s}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 s=i.parse(e[1],1,ji),a=i.parse(e[2],2,ji);if(!s||!a)return null;if(!Pd(s.type,[$i,ir,Ft,Us,ji]))return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${en(s.type)} instead`);if(e.length===4){const u=i.parse(e[3],3,Ft);return u?new ah(s,a,u):null}return new ah(s,a)}evaluate(e){const i=this.needle.evaluate(e),s=this.haystack.evaluate(e);if(!ml(i,["boolean","string","number","null"]))throw new It(`Expected first argument to be of type boolean, string, number or null, but found ${en(hn(i))} instead.`);if(!ml(s,["string","array"]))throw new It(`Expected second argument to be of type array or string, but found ${en(hn(s))} instead.`);if(this.fromIndex){const a=this.fromIndex.evaluate(e);return s.indexOf(i,a)}return s.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 Jd{constructor(e,i,s,a,u,h){this.inputType=e,this.type=i,this.input=s,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 s,a;i.expectedType&&i.expectedType.kind!=="value"&&(a=i.expectedType);const u={},h=[];for(let x=2;x<e.length-1;x+=2){let T=e[x];const S=e[x+1];Array.isArray(T)||(T=[T]);const A=i.concat(x);if(T.length===0)return A.error("Expected at least one branch label.");for(const R of T){if(typeof R!="number"&&typeof R!="string")return A.error("Branch labels must be numbers or strings.");if(typeof R=="number"&&Math.abs(R)>Number.MAX_SAFE_INTEGER)return A.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof R=="number"&&Math.floor(R)!==R)return A.error("Numeric branch labels must be integer values.");if(s){if(A.checkSubtype(s,hn(R)))return null}else s=hn(R);if(u[String(R)]!==void 0)return A.error("Branch labels must be unique.");u[String(R)]=h.length}const D=i.parse(S,x,a);if(!D)return null;a=a||D.type,h.push(D)}const m=i.parse(e[1],1,ji);if(!m)return null;const g=i.parse(e[e.length-1],e.length-1,a);return g?m.type.kind!=="value"&&i.concat(1).checkSubtype(s,m.type)?null:new Jd(s,a,m,u,h,g):null}evaluate(e){const i=this.input.evaluate(e);return(hn(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(),s=[],a={};for(const h of i){const m=a[this.cases[h]];m===void 0?(a[this.cases[h]]=s.length,s.push([this.cases[h],[h]])):s[m][1].push(h)}const u=h=>this.inputType.kind==="number"?Number(h):h;for(const[h,m]of s)e.push(m.length===1?u(m[0]):m.map(u)),e.push(this.outputs[h].serialize());return e.push(this.otherwise.serialize()),e}}class lh{constructor(e,i,s){this.type=e,this.branches=i,this.otherwise=s}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 s;i.expectedType&&i.expectedType.kind!=="value"&&(s=i.expectedType);const a=[];for(let h=1;h<e.length-1;h+=2){const m=i.parse(e[h],h,$i);if(!m)return null;const g=i.parse(e[h+1],h+1,s);if(!g)return null;a.push([m,g]),s=s||g.type}const u=i.parse(e[e.length-1],e.length-1,s);return u?new lh(s,a,u):null}evaluate(e){for(const[i,s]of this.branches)if(i.evaluate(e))return s.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[i,s]of this.branches)e(i),e(s);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 Dc{constructor(e,i,s,a){this.type=e,this.input=i,this.beginIndex=s,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 s=i.parse(e[1],1,ji),a=i.parse(e[2],2,Ft);if(!s||!a)return null;if(!Pd(s.type,[Nn(ji),ir,ji]))return i.error(`Expected first argument to be of type array or string, but found ${en(s.type)} instead`);if(e.length===4){const u=i.parse(e[3],3,Ft);return u?new Dc(s.type,s,a,u):null}return new Dc(s.type,s,a)}evaluate(e){const i=this.input.evaluate(e),s=this.beginIndex.evaluate(e);if(!ml(i,["string","array"]))throw new It(`Expected first argument to be of type array or string, but found ${en(hn(i))} instead.`);if(this.endIndex){const a=this.endIndex.evaluate(e);return i.slice(s,a)}return i.slice(s)}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()]}}function Rc(r,e){return r==="=="||r==="!="?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 Sm(r,e,i,s){return s.compare(e,i)===0}function ka(r,e,i){const s=r!=="=="&&r!=="!=";return class oE{constructor(u,h,m){this.type=$i,this.lhs=u,this.rhs=h,this.collator=m,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 m=u[0];let g=h.parse(u[1],1,ji);if(!g)return null;if(!Rc(m,g.type))return h.concat(1).error(`"${m}" comparisons are not supported for type '${en(g.type)}'.`);let x=h.parse(u[2],2,ji);if(!x)return null;if(!Rc(m,x.type))return h.concat(2).error(`"${m}" comparisons are not supported for type '${en(x.type)}'.`);if(g.type.kind!==x.type.kind&&g.type.kind!=="value"&&x.type.kind!=="value")return h.error(`Cannot compare types '${en(g.type)}' and '${en(x.type)}'.`);s&&(g.type.kind==="value"&&x.type.kind!=="value"?g=new qt(x.type,[g]):g.type.kind!=="value"&&x.type.kind==="value"&&(x=new qt(g.type,[x])));let T=null;if(u.length===4){if(g.type.kind!=="string"&&x.type.kind!=="string"&&g.type.kind!=="value"&&x.type.kind!=="value")return h.error("Cannot use collator to compare non-string types.");if(T=h.parse(u[3],3,Ca),!T)return null}return new oE(g,x,T)}evaluate(u){const h=this.lhs.evaluate(u),m=this.rhs.evaluate(u);if(s&&this.hasUntypedArgument){const g=hn(h),x=hn(m);if(g.kind!==x.kind||g.kind!=="string"&&g.kind!=="number")throw new It(`Expected arguments for "${r}" to be (string, string) or (number, number), but found (${g.kind}, ${x.kind}) instead.`)}if(this.collator&&!s&&this.hasUntypedArgument){const g=hn(h),x=hn(m);if(g.kind!=="string"||x.kind!=="string")return e(u,h,m)}return this.collator?i(u,h,m,this.collator.evaluate(u)):e(u,h,m)}eachChild(u){u(this.lhs),u(this.rhs),this.collator&&u(this.collator)}outputDefined(){return!0}serialize(){const u=[r];return this.eachChild(h=>{u.push(h.serialize())}),u}}}const Wy=ka("==",function(r,e,i){return e===i},Sm),Xy=ka("!=",function(r,e,i){return e!==i},function(r,e,i,s){return!Sm(0,e,i,s)}),Em=ka("<",function(r,e,i){return e<i},function(r,e,i,s){return s.compare(e,i)<0}),Am=ka(">",function(r,e,i){return e>i},function(r,e,i,s){return s.compare(e,i)>0}),Yy=ka("<=",function(r,e,i){return e<=i},function(r,e,i,s){return s.compare(e,i)<=0}),Ky=ka(">=",function(r,e,i){return e>=i},function(r,e,i,s){return s.compare(e,i)>=0});class Qd{constructor(e,i,s,a,u,h){this.type=ir,this.number=e,this.locale=i,this.currency=s,this.unit=a,this.minFractionDigits=u,this.maxFractionDigits=h}static parse(e,i){if(e.length!==3)return i.error("Expected two arguments.");const s=i.parse(e[1],1,Ft);if(!s)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",ir),!u))return null;let h=null;if(a.currency&&(h=i.parseObjectValue(a.currency,2,"currency",ir),!h))return null;let m=null;if(a.unit&&(m=i.parseObjectValue(a.unit,2,"unit",ir),!m))return null;let g=null;if(a["min-fraction-digits"]&&(g=i.parseObjectValue(a["min-fraction-digits"],2,"min-fraction-digits",Ft),!g))return null;let x=null;return a["max-fraction-digits"]&&(x=i.parseObjectValue(a["max-fraction-digits"],2,"max-fraction-digits",Ft),!x)?null:new Qd(s,u,h,m,g,x)}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 zc{constructor(e){this.type=Ft,this.input=e}static parse(e,i){if(e.length!==2)return i.error(`Expected 1 argument, but found ${e.length-1} instead.`);const s=i.parse(e[1],1);return s?s.type.kind!=="array"&&s.type.kind!=="string"&&s.type.kind!=="value"?i.error(`Expected argument of type string or array, but found ${en(s.type)} instead.`):new zc(s):null}evaluate(e){const i=this.input.evaluate(e);if(typeof i=="string"||Array.isArray(i))return i.length;throw new It(`Expected value to be of type string or array, but found ${en(hn(i))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(i=>{e.push(i.serialize())}),e}}function Im(r){return function(){r=1831565813+(r|=0)|0;let e=Math.imul(r^r>>>15,1|r);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}const Oa={"==":Wy,"!=":Xy,">":Am,"<":Em,">=":Ky,"<=":Yy,array:qt,at:oh,"at-interpolated":sh,boolean:qt,case:lh,coalesce:rh,collator:yl,format:Ma,image:gl,in:Kd,"index-of":ah,interpolate:Xn,"interpolate-hcl":Xn,"interpolate-lab":Xn,length:zc,let:nh,literal:di,match:Jd,number:qt,"number-format":Qd,object:qt,slice:Dc,step:Mc,string:qt,"to-boolean":Ro,"to-color":Ro,"to-number":Ro,"to-string":Ro,var:eh,within:xs,distance:La,config:Tl};function Cm(r,[e,i,s,a]){e=e.evaluate(r),i=i.evaluate(r),s=s.evaluate(r);const u=a?a.evaluate(r):1,h=sm(e,i,s,u);if(h)throw new It(h);return new Bi(e/255*u,i/255*u,s/255*u,u)}function Mm(r,[e,i,s,a]){e=e.evaluate(r),i=i.evaluate(r),s=s.evaluate(r);const u=a?a.evaluate(r):1,h=function(x,T,S,A){return typeof x=="number"&&x>=0&&x<=360?typeof T=="number"&&T>=0&&T<=100&&typeof S=="number"&&S>=0&&S<=100?A===void 0||typeof A=="number"&&A>=0&&A<=1?null:`Invalid hsla value [${[x,T,S,A].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof A=="number"?[x,T,S,A]:[x,T,S]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof A=="number"?[x,T,S,A]:[x,T,S]).join(", ")}]: 'h' must be between 0 and 360.`}(e,i,s,u);if(h)throw new It(h);const m=`hsla(${e}, ${i}%, ${s}%, ${u})`,g=Bi.parse(m);if(!g)throw new It(`Failed to parse HSLA color: ${m}`);return g}function ep(r,e){return r in e}function ch(r,e){const i=e[r];return i===void 0?null:i}function Xs(r){return{type:r}}function Pm(r){return{result:"success",value:r}}function co(r){return{result:"error",value:r}}function tp(r,e){return!!r&&!!r.parameters&&r.parameters.indexOf(e)>-1}function uh(r){return r["property-type"]==="data-driven"}function Dm(r){return tp(r.expression,"measure-light")}function ip(r){return tp(r.expression,"zoom")}function hh(r){return!!r.expression&&r.expression.interpolated}function dh(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function Rm(r){return r}function ph(r,e){const i=e.type==="color",s=r.stops&&typeof r.stops[0][0]=="object",a=s||!(s||r.property!==void 0),u=r.type||(hh(e)?"exponential":"interval");if(i&&((r=vc({},r)).stops&&(r.stops=r.stops.map(x=>[x[0],Bi.parse(x[1])])),r.default=Bi.parse(r.default?r.default:e.default)),r.colorSpace&&r.colorSpace!=="rgb"&&!Tm[r.colorSpace])throw new Error(`Unknown color space: ${r.colorSpace}`);let h,m,g;if(u==="exponential")h=bs;else if(u==="interval")h=Jy;else if(u==="categorical"){h=zm,m=Object.create(null);for(const x of r.stops)m[x[0]]=x[1];g=typeof r.stops[0][0]}else{if(u!=="identity")throw new Error(`Unknown function type "${u}"`);h=Qy}if(s){const x={},T=[];for(let D=0;D<r.stops.length;D++){const R=r.stops[D],O=R[0].zoom;x[O]===void 0&&(x[O]={zoom:O,type:r.type,property:r.property,default:r.default,stops:[]},T.push(O)),x[O].stops.push([R[0].value,R[1]])}const S=[];for(const D of T)S.push([x[D].zoom,ph(x[D],e)]);const A={name:"linear"};return{kind:"composite",interpolationType:A,interpolationFactor:Xn.interpolationFactor.bind(void 0,A),zoomStops:S.map(D=>D[0]),evaluate:({zoom:D},R)=>bs({stops:S,base:r.base},e,D).evaluate(D,R)}}if(a){const x=u==="exponential"?{name:"exponential",base:r.base!==void 0?r.base:1}:null;return{kind:"camera",interpolationType:x,interpolationFactor:Xn.interpolationFactor.bind(void 0,x),zoomStops:r.stops.map(T=>T[0]),evaluate:({zoom:T})=>h(r,e,T,m,g)}}return{kind:"source",evaluate(x,T){const S=T&&T.properties?T.properties[r.property]:void 0;return S===void 0?Fa(r.default,e.default):h(r,e,S,m,g)}}}function Fa(r,e,i){return r!==void 0?r:e!==void 0?e:i!==void 0?i:void 0}function zm(r,e,i,s,a){return Fa(typeof i===a?s[i]:void 0,r.default,e.default)}function Jy(r,e,i){if(Zt(i)!=="number")return Fa(r.default,e.default);const s=r.stops.length;if(s===1||i<=r.stops[0][0])return r.stops[0][1];if(i>=r.stops[s-1][0])return r.stops[s-1][1];const a=th(r.stops.map(u=>u[0]),i);return r.stops[a][1]}function bs(r,e,i){const s=r.base!==void 0?r.base:1;if(Zt(i)!=="number")return Fa(r.default,e.default);const a=r.stops.length;if(a===1||i<=r.stops[0][0])return r.stops[0][1];if(i>=r.stops[a-1][0])return r.stops[a-1][1];const u=th(r.stops.map(T=>T[0]),i),h=function(T,S,A,D){const R=D-A,O=T-A;return R===0?0:S===1?O/R:(Math.pow(S,O)-1)/(Math.pow(S,R)-1)}(i,s,r.stops[u][0],r.stops[u+1][0]),m=r.stops[u][1],g=r.stops[u+1][1];let x=Uu[e.type]||Rm;if(r.colorSpace&&r.colorSpace!=="rgb"){const T=Tm[r.colorSpace];x=(S,A)=>T.reverse(T.interpolate(T.forward(S),T.forward(A),h))}return typeof m.evaluate=="function"?{evaluate(...T){const S=m.evaluate.apply(void 0,T),A=g.evaluate.apply(void 0,T);if(S!==void 0&&A!==void 0)return x(S,A,h)}}:x(m,g,h)}function Qy(r,e,i){return e.type==="color"?i=Bi.parse(i):e.type==="formatted"?i=jn.fromString(i.toString()):e.type==="resolvedImage"?i=Wn.build(i.toString()):Zt(i)===e.type||e.type==="enum"&&e.values[i]||(i=void 0),Fa(i,r.default,e.default)}Ln.register(Oa,{error:[{kind:"error"},[ir],(r,[e])=>{throw new It(e.evaluate(r))}],typeof:[ir,[ji],(r,[e])=>en(hn(e.evaluate(r)))],"to-rgba":[Nn(Ft,4),[Zn],(r,[e])=>e.evaluate(r).toRenderColor(null).toArray()],"to-hsla":[Nn(Ft,4),[Zn],(r,[e])=>e.evaluate(r).toRenderColor(null).toHslaArray()],rgb:[Zn,[Ft,Ft,Ft],Cm],rgba:[Zn,[Ft,Ft,Ft,Ft],Cm],hsl:[Zn,[Ft,Ft,Ft],Mm],hsla:[Zn,[Ft,Ft,Ft,Ft],Mm],has:{type:$i,overloads:[[[ir],(r,[e])=>ep(e.evaluate(r),r.properties())],[[ir,$s],(r,[e,i])=>ep(e.evaluate(r),i.evaluate(r))]]},get:{type:ji,overloads:[[[ir],(r,[e])=>ch(e.evaluate(r),r.properties())],[[ir,$s],(r,[e,i])=>ch(e.evaluate(r),i.evaluate(r))]]},"feature-state":[ji,[ir],(r,[e])=>ch(e.evaluate(r),r.featureState||{})],properties:[$s,[],r=>r.properties()],"geometry-type":[ir,[],r=>r.geometryType()],id:[ji,[],r=>r.id()],zoom:[Ft,[],r=>r.globals.zoom],pitch:[Ft,[],r=>r.globals.pitch||0],"distance-from-center":[Ft,[],r=>r.distanceFromCenter()],"measure-light":[Ft,[ir],(r,[e])=>r.measureLight(e.evaluate(r))],"heatmap-density":[Ft,[],r=>r.globals.heatmapDensity||0],"line-progress":[Ft,[],r=>r.globals.lineProgress||0],"raster-value":[Ft,[],r=>r.globals.rasterValue||0],"raster-particle-speed":[Ft,[],r=>r.globals.rasterParticleSpeed||0],"sky-radial-progress":[Ft,[],r=>r.globals.skyRadialProgress||0],accumulated:[ji,[],r=>r.globals.accumulated===void 0?null:r.globals.accumulated],"+":[Ft,Xs(Ft),(r,e)=>{let i=0;for(const s of e)i+=s.evaluate(r);return i}],"*":[Ft,Xs(Ft),(r,e)=>{let i=1;for(const s of e)i*=s.evaluate(r);return i}],"-":{type:Ft,overloads:[[[Ft,Ft],(r,[e,i])=>e.evaluate(r)-i.evaluate(r)],[[Ft],(r,[e])=>-e.evaluate(r)]]},"/":[Ft,[Ft,Ft],(r,[e,i])=>e.evaluate(r)/i.evaluate(r)],"%":[Ft,[Ft,Ft],(r,[e,i])=>e.evaluate(r)%i.evaluate(r)],ln2:[Ft,[],()=>Math.LN2],pi:[Ft,[],()=>Math.PI],e:[Ft,[],()=>Math.E],"^":[Ft,[Ft,Ft],(r,[e,i])=>Math.pow(e.evaluate(r),i.evaluate(r))],sqrt:[Ft,[Ft],(r,[e])=>Math.sqrt(e.evaluate(r))],log10:[Ft,[Ft],(r,[e])=>Math.log(e.evaluate(r))/Math.LN10],ln:[Ft,[Ft],(r,[e])=>Math.log(e.evaluate(r))],log2:[Ft,[Ft],(r,[e])=>Math.log(e.evaluate(r))/Math.LN2],sin:[Ft,[Ft],(r,[e])=>Math.sin(e.evaluate(r))],cos:[Ft,[Ft],(r,[e])=>Math.cos(e.evaluate(r))],tan:[Ft,[Ft],(r,[e])=>Math.tan(e.evaluate(r))],asin:[Ft,[Ft],(r,[e])=>Math.asin(e.evaluate(r))],acos:[Ft,[Ft],(r,[e])=>Math.acos(e.evaluate(r))],atan:[Ft,[Ft],(r,[e])=>Math.atan(e.evaluate(r))],min:[Ft,Xs(Ft),(r,e)=>Math.min(...e.map(i=>i.evaluate(r)))],max:[Ft,Xs(Ft),(r,e)=>Math.max(...e.map(i=>i.evaluate(r)))],abs:[Ft,[Ft],(r,[e])=>Math.abs(e.evaluate(r))],round:[Ft,[Ft],(r,[e])=>{const i=e.evaluate(r);return i<0?-Math.round(-i):Math.round(i)}],floor:[Ft,[Ft],(r,[e])=>Math.floor(e.evaluate(r))],ceil:[Ft,[Ft],(r,[e])=>Math.ceil(e.evaluate(r))],"filter-==":[$i,[ir,ji],(r,[e,i])=>r.properties()[e.value]===i.value],"filter-id-==":[$i,[ji],(r,[e])=>r.id()===e.value],"filter-type-==":[$i,[ir],(r,[e])=>r.geometryType()===e.value],"filter-<":[$i,[ir,ji],(r,[e,i])=>{const s=r.properties()[e.value],a=i.value;return typeof s==typeof a&&s<a}],"filter-id-<":[$i,[ji],(r,[e])=>{const i=r.id(),s=e.value;return typeof i==typeof s&&i<s}],"filter->":[$i,[ir,ji],(r,[e,i])=>{const s=r.properties()[e.value],a=i.value;return typeof s==typeof a&&s>a}],"filter-id->":[$i,[ji],(r,[e])=>{const i=r.id(),s=e.value;return typeof i==typeof s&&i>s}],"filter-<=":[$i,[ir,ji],(r,[e,i])=>{const s=r.properties()[e.value],a=i.value;return typeof s==typeof a&&s<=a}],"filter-id-<=":[$i,[ji],(r,[e])=>{const i=r.id(),s=e.value;return typeof i==typeof s&&i<=s}],"filter->=":[$i,[ir,ji],(r,[e,i])=>{const s=r.properties()[e.value],a=i.value;return typeof s==typeof a&&s>=a}],"filter-id->=":[$i,[ji],(r,[e])=>{const i=r.id(),s=e.value;return typeof i==typeof s&&i>=s}],"filter-has":[$i,[ji],(r,[e])=>e.value in r.properties()],"filter-has-id":[$i,[],r=>r.id()!==null&&r.id()!==void 0],"filter-type-in":[$i,[Nn(ir)],(r,[e])=>e.value.indexOf(r.geometryType())>=0],"filter-id-in":[$i,[Nn(ji)],(r,[e])=>e.value.indexOf(r.id())>=0],"filter-in-small":[$i,[ir,Nn(ji)],(r,[e,i])=>i.value.indexOf(r.properties()[e.value])>=0],"filter-in-large":[$i,[ir,Nn(ji)],(r,[e,i])=>function(s,a,u,h){for(;u<=h;){const m=u+h>>1;if(a[m]===s)return!0;a[m]>s?h=m-1:u=m+1}return!1}(r.properties()[e.value],i.value,0,i.value.length-1)],all:{type:$i,overloads:[[[$i,$i],(r,[e,i])=>e.evaluate(r)&&i.evaluate(r)],[Xs($i),(r,e)=>{for(const i of e)if(!i.evaluate(r))return!1;return!0}]]},any:{type:$i,overloads:[[[$i,$i],(r,[e,i])=>e.evaluate(r)||i.evaluate(r)],[Xs($i),(r,e)=>{for(const i of e)if(i.evaluate(r))return!0;return!1}]]},"!":[$i,[$i],(r,[e])=>!e.evaluate(r)],"is-supported-script":[$i,[ir],(r,[e])=>{const i=r.globals&&r.globals.isSupportedScript;return!i||i(e.evaluate(r))}],upcase:[ir,[ir],(r,[e])=>e.evaluate(r).toUpperCase()],downcase:[ir,[ir],(r,[e])=>e.evaluate(r).toLowerCase()],concat:[ir,Xs(ji),(r,e)=>e.map(i=>Vn(i.evaluate(r))).join("")],"resolved-locale":[ir,[Ca],(r,[e])=>e.evaluate(r).resolvedLocale()],random:[Ft,[Ft,Ft,ji],(r,e)=>{const[i,s,a]=e.map(h=>h.evaluate(r));if(i>s||i===s)return i;let u;if(typeof a=="string")u=function(h){let m=0;if(h.length===0)return m;for(let g=0;g<h.length;g++)m=(m<<5)-m+h.charCodeAt(g),m|=0;return m}(a);else{if(typeof a!="number")throw new It(`Invalid seed input: ${a}`);u=a}return i+Im(u)()*(s-i)}]});class rp{constructor(e,i,s,a){this.expression=e,this._warningHistory={},this._evaluator=new Gu(s,a),this._defaultValue=i?function(u){return u.type==="color"&&(dh(u.default)||Array.isArray(u.default))?new Bi(0,0,0,0):u.type==="color"?Bi.parse(u.default)||null:u.default===void 0?null:u.default}(i):null,this._enumValues=i&&i.type==="enum"?i.values:null,this.configDependencies=Qu(e)}evaluateWithoutErrorHandling(e,i,s,a,u,h,m,g){return this._evaluator.globals=e,this._evaluator.feature=i,this._evaluator.featureState=s,this._evaluator.canonical=a||null,this._evaluator.availableImages=u||null,this._evaluator.formattedSection=h,this._evaluator.featureTileCoord=m||null,this._evaluator.featureDistanceData=g||null,this.expression.evaluate(this._evaluator)}evaluate(e,i,s,a,u,h,m,g){this._evaluator.globals=e,this._evaluator.feature=i||null,this._evaluator.featureState=s||null,this._evaluator.canonical=a||null,this._evaluator.availableImages=u||null,this._evaluator.formattedSection=h||null,this._evaluator.featureTileCoord=m||null,this._evaluator.featureDistanceData=g||null;try{const x=this.expression.evaluate(this._evaluator);if(x==null||typeof x=="number"&&x!=x)return this._defaultValue;if(this._enumValues&&!(x in this._enumValues))throw new It(`Expected value to be one of ${Object.keys(this._enumValues).map(T=>JSON.stringify(T)).join(", ")}, but found ${JSON.stringify(x)} instead.`);return x}catch(x){return this._warningHistory[x.message]||(this._warningHistory[x.message]=!0,typeof console<"u"&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${x.message}`)),this._defaultValue}}}function fh(r){return Array.isArray(r)&&r.length>0&&typeof r[0]=="string"&&r[0]in Oa}function Ml(r,e,i,s){const a=new ym(Oa,[],e?function(h){const m={color:Zn,string:ir,number:Ft,enum:ir,boolean:$i,formatted:xc,resolvedImage:bc};return h.type==="array"?Nn(m[h.value]||ji,h.length):m[h.type]}(e):void 0,void 0,void 0,i,s),u=a.parse(r,void 0,void 0,void 0,e&&e.type==="string"?{typeAnnotation:"coerce"}:void 0);return u?Pm(new rp(u,e,i,s)):co(a.errors)}class Ba{constructor(e,i,s,a){this.kind=e,this._styleExpression=i,this.isLightConstant=s,this.isLineProgressConstant=a,this.isStateDependent=e!=="constant"&&!Ju(i.expression),this.configDependencies=Qu(i.expression)}evaluateWithoutErrorHandling(e,i,s,a,u,h){return this._styleExpression.evaluateWithoutErrorHandling(e,i,s,a,u,h)}evaluate(e,i,s,a,u,h){return this._styleExpression.evaluate(e,i,s,a,u,h)}}class Pl{constructor(e,i,s,a,u,h){this.kind=e,this.zoomStops=s,this._styleExpression=i,this.isStateDependent=e!=="camera"&&!Ju(i.expression),this.isLightConstant=u,this.isLineProgressConstant=h,this.configDependencies=Qu(i.expression),this.interpolationType=a}evaluateWithoutErrorHandling(e,i,s,a,u,h){return this._styleExpression.evaluateWithoutErrorHandling(e,i,s,a,u,h)}evaluate(e,i,s,a,u,h){return this._styleExpression.evaluate(e,i,s,a,u,h)}interpolationFactor(e,i,s){return this.interpolationType?Xn.interpolationFactor(this.interpolationType,e,i,s):0}}function Lc(r,e,i,s){if((r=Ml(r,e,i,s)).result==="error")return r;const a=r.value.expression,u=Cc(a);if(!u&&!uh(e))return co([new go("","data expressions not supported")]);const h=Sl(a,["zoom","pitch","distance-from-center"]);if(!h&&!ip(e))return co([new go("","zoom expressions not supported")]);const m=Sl(a,["measure-light"]);if(!m&&!Dm(e))return co([new go("","measure-light expression not supported")]);const g=Sl(a,["line-progress"]);if(!g&&!function(S){return tp(S.expression,"line-progress")}(e))return co([new go("","line-progress expression not supported")]);const x=e.expression&&e.expression.relaxZoomRestriction,T=mh(a);return T||h||x?T instanceof go?co([T]):T instanceof Xn&&!hh(e)?co([new go("",'"interpolate" expressions cannot be used with this property')]):Pm(T?new Pl(u&&g?"camera":"composite",r.value,T.labels,T instanceof Xn?T.interpolation:void 0,m,g):new Ba(u&&g?"constant":"source",r.value,m,g)):co([new go("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class kc{constructor(e,i){this._parameters=e,this._specification=i,vc(this,ph(this._parameters,this._specification))}static deserialize(e){return new kc(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function mh(r){let e=null;if(r instanceof nh)e=mh(r.result);else if(r instanceof rh){for(const i of r.args)if(e=mh(i),e)break}else(r instanceof Mc||r instanceof Xn)&&r.input instanceof Ln&&r.input.name==="zoom"&&(e=r);return e instanceof go||r.eachChild(i=>{const s=mh(i);s instanceof go?e=s:e&&s&&e!==s&&(e=new go("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}var np,_h,op=function(){if(_h)return np;_h=1,np=e;var r=3;function e(i,s,a){var u=this.cells=[];if(i instanceof ArrayBuffer){this.arrayBuffer=i;var h=new Int32Array(this.arrayBuffer);i=h[0],this.d=(s=h[1])+2*(a=h[2]);for(var m=0;m<this.d*this.d;m++){var g=h[r+m],x=h[r+m+1];u.push(g===x?null:h.subarray(g,x))}var T=h[r+u.length+1];this.keys=h.subarray(h[r+u.length],T),this.bboxes=h.subarray(T),this.insert=this._insertReadonly}else{this.d=s+2*a;for(var S=0;S<this.d*this.d;S++)u.push([]);this.keys=[],this.bboxes=[]}this.n=s,this.extent=i,this.padding=a,this.scale=s/i,this.uid=0;var A=a/s*i;this.min=-A,this.max=i+A}return e.prototype.insert=function(i,s,a,u,h){this._forEachCell(s,a,u,h,this._insertCell,this.uid++),this.keys.push(i),this.bboxes.push(s),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,s,a,u,h,m){this.cells[h].push(m)},e.prototype.query=function(i,s,a,u,h){var m=this.min,g=this.max;if(i<=m&&s<=m&&g<=a&&g<=u&&!h)return Array.prototype.slice.call(this.keys);var x=[];return this._forEachCell(i,s,a,u,this._queryCell,x,{},h),x},e.prototype._queryCell=function(i,s,a,u,h,m,g,x){var T=this.cells[h];if(T!==null)for(var S=this.keys,A=this.bboxes,D=0;D<T.length;D++){var R=T[D];if(g[R]===void 0){var O=4*R;(x?x(A[O+0],A[O+1],A[O+2],A[O+3]):i<=A[O+2]&&s<=A[O+3]&&a>=A[O+0]&&u>=A[O+1])?(g[R]=!0,m.push(S[R])):g[R]=!1}}},e.prototype._forEachCell=function(i,s,a,u,h,m,g,x){for(var T=this._convertToCellCoord(i),S=this._convertToCellCoord(s),A=this._convertToCellCoord(a),D=this._convertToCellCoord(u),R=T;R<=A;R++)for(var O=S;O<=D;O++){var $=this.d*O+R;if((!x||x(this._convertFromCellCoord(R),this._convertFromCellCoord(O),this._convertFromCellCoord(R+1),this._convertFromCellCoord(O+1)))&&h.call(this,i,s,a,u,$,m,g,x))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,s=r+this.cells.length+1+1,a=0,u=0;u<this.cells.length;u++)a+=this.cells[u].length;var h=new Int32Array(s+a+this.keys.length+this.bboxes.length);h[0]=this.extent,h[1]=this.n,h[2]=this.padding;for(var m=s,g=0;g<i.length;g++){var x=i[g];h[r+g]=m,h.set(x,m),m+=x.length}return h[r+i.length]=m,h.set(this.keys,m),h[r+i.length+1]=m+=this.keys.length,h.set(this.bboxes,m),m+=this.bboxes.length,h.buffer},np}(),Dl=Wo(op);const Oc={};function Tt(r,e,i={}){Object.defineProperty(r,"_classRegistryKey",{value:e,writable:!1}),Oc[e]={klass:r,omit:i.omit||[]}}Tt(Object,"Object"),Dl.serialize=function(r,e){const i=r.toArrayBuffer();return e&&e.add(i),{buffer:i}},Dl.deserialize=function(r){return new Dl(r.buffer)},Object.defineProperty(Dl,"name",{value:"Grid"}),Tt(Dl,"Grid"),typeof DOMMatrix<"u"&&Tt(DOMMatrix,"DOMMatrix"),Tt(Bi,"Color"),Tt(Error,"Error"),Tt(jn,"Formatted"),Tt($u,"FormattedSection"),Tt(Fu,"AJAXError"),Tt(Wn,"ResolvedImage"),Tt(kc,"StylePropertyFunction"),Tt(rp,"StyleExpression",{omit:["_evaluator"]}),Tt(to,"ImageId"),Tt(Do,"ImageVariant"),Tt(Pl,"ZoomDependentExpression"),Tt(Ba,"ZoomConstantExpression"),Tt(Ln,"CompoundExpression",{omit:["_evaluate"]});for(const r in Oa)Oc[Oa[r]._classRegistryKey]||Tt(Oa[r],`Expression${r}`);function Fc(r){return r&&typeof ArrayBuffer<"u"&&(r instanceof ArrayBuffer||r.constructor&&r.constructor.name==="ArrayBuffer")}function Na(r){return self.ImageBitmap&&r instanceof ImageBitmap}function Ys(r,e){if(r==null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||r instanceof Boolean||r instanceof Number||r instanceof String||r instanceof Date||r instanceof RegExp)return r;if(Fc(r)||Na(r))return e&&e.add(r),r;if(ArrayBuffer.isView(r))return e&&e.add(r.buffer),r;if(r instanceof ImageData)return e&&e.add(r.data.buffer),r;if(Array.isArray(r)){const i=[];for(const s of r)i.push(Ys(s,e));return i}if(r instanceof Map){const i={$name:"Map",entries:[]};for(const[s,a]of r.entries())i.entries.push(Ys(s),Ys(a,e));return i}if(r instanceof Set){const i={$name:"Set"};let s=0;for(const a of r.values())i[++s]=Ys(a);return i}if(r instanceof DOMMatrix){const i={$name:"DOMMatrix"},s=["is2D","m11","m12","m13","m14","m21","m22","m23","m24","m31","m32","m33","m34","m41","m42","m43","m44","a","b","c","d","e","f"];for(const a of s)i[a]=r[a];return i}if(typeof r=="bigint")return{$name:"BigInt",value:r.toString()};if(typeof r=="object"){const i=r.constructor,s=i._classRegistryKey;if(!s)throw new Error(`Can't serialize object of unregistered class "${i.name}".`);const a=i.serialize?i.serialize(r,e):{};if(!i.serialize){for(const u in r)r.hasOwnProperty(u)&&(Oc[s].omit.indexOf(u)>=0||(a[u]=Ys(r[u],e)));r instanceof Error&&(a.message=r.message)}if(a.$name)throw new Error("$name property is reserved for worker serialization logic.");return s!=="Object"&&(a.$name=s),a}throw new Error("can't serialize object of type "+typeof r)}function Ks(r){if(r==null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||r instanceof Boolean||r instanceof Number||r instanceof String||r instanceof Date||r instanceof RegExp||Fc(r)||Na(r)||ArrayBuffer.isView(r)||r instanceof ImageData)return r;if(Array.isArray(r))return r.map(Ks);if(typeof r=="object"){const e=r.$name||"Object";if(e==="Map"){const a=r.entries||[],u=new Map;for(let h=0;h<a.length;h+=2)u.set(Ks(a[h]),Ks(a[h+1]));return u}if(e==="Set"){const a=new Set;for(const u of Object.keys(r))u!=="$name"&&a.add(Ks(r[u]));return a}if(e==="DOMMatrix"){let a;return a=r.is2D?[r.a,r.b,r.c,r.d,r.e,r.f]:[r.m11,r.m12,r.m13,r.m14,r.m21,r.m22,r.m23,r.m24,r.m31,r.m32,r.m33,r.m34,r.m41,r.m42,r.m43,r.m44],new DOMMatrix(a)}if(e==="BigInt")return BigInt(r.value);const{klass:i}=Oc[e];if(!i)throw new Error(`Can't deserialize unregistered class "${e}".`);if(i.deserialize)return i.deserialize(r);const s=Object.create(i.prototype);for(const a of Object.keys(r))a!=="$name"&&(s[a]=Ks(r[a]));return s}throw new Error("can't deserialize object of type "+typeof r)}const jt={"Latin-1 Supplement":r=>r>=128&&r<=255,Arabic:r=>r>=1536&&r<=1791,"Arabic Supplement":r=>r>=1872&&r<=1919,"Arabic Extended-A":r=>r>=2208&&r<=2303,"Hangul Jamo":r=>r>=4352&&r<=4607,"Unified Canadian Aboriginal Syllabics":r=>r>=5120&&r<=5759,Khmer:r=>r>=6016&&r<=6143,"Unified Canadian Aboriginal Syllabics Extended":r=>r>=6320&&r<=6399,"General Punctuation":r=>r>=8192&&r<=8303,"Letterlike Symbols":r=>r>=8448&&r<=8527,"Number Forms":r=>r>=8528&&r<=8591,"Miscellaneous Technical":r=>r>=8960&&r<=9215,"Control Pictures":r=>r>=9216&&r<=9279,"Optical Character Recognition":r=>r>=9280&&r<=9311,"Enclosed Alphanumerics":r=>r>=9312&&r<=9471,"Geometric Shapes":r=>r>=9632&&r<=9727,"Miscellaneous Symbols":r=>r>=9728&&r<=9983,"Miscellaneous Symbols and Arrows":r=>r>=11008&&r<=11263,"CJK Radicals Supplement":r=>r>=11904&&r<=12031,"Kangxi Radicals":r=>r>=12032&&r<=12255,"Ideographic Description Characters":r=>r>=12272&&r<=12287,"CJK Symbols and Punctuation":r=>r>=12288&&r<=12351,Hiragana:r=>r>=12352&&r<=12447,Katakana:r=>r>=12448&&r<=12543,Bopomofo:r=>r>=12544&&r<=12591,"Hangul Compatibility Jamo":r=>r>=12592&&r<=12687,Kanbun:r=>r>=12688&&r<=12703,"Bopomofo Extended":r=>r>=12704&&r<=12735,"CJK Strokes":r=>r>=12736&&r<=12783,"Katakana Phonetic Extensions":r=>r>=12784&&r<=12799,"Enclosed CJK Letters and Months":r=>r>=12800&&r<=13055,"CJK Compatibility":r=>r>=13056&&r<=13311,"CJK Unified Ideographs Extension A":r=>r>=13312&&r<=19903,"Yijing Hexagram Symbols":r=>r>=19904&&r<=19967,"CJK Unified Ideographs":r=>r>=19968&&r<=40959,"Yi Syllables":r=>r>=40960&&r<=42127,"Yi Radicals":r=>r>=42128&&r<=42191,"Hangul Jamo Extended-A":r=>r>=43360&&r<=43391,"Hangul Syllables":r=>r>=44032&&r<=55215,"Hangul Jamo Extended-B":r=>r>=55216&&r<=55295,"Private Use Area":r=>r>=57344&&r<=63743,"CJK Compatibility Ideographs":r=>r>=63744&&r<=64255,"Arabic Presentation Forms-A":r=>r>=64336&&r<=65023,"Vertical Forms":r=>r>=65040&&r<=65055,"CJK Compatibility Forms":r=>r>=65072&&r<=65103,"Small Form Variants":r=>r>=65104&&r<=65135,"Arabic Presentation Forms-B":r=>r>=65136&&r<=65279,"Halfwidth and Fullwidth Forms":r=>r>=65280&&r<=65519,Osage:r=>r>=66736&&r<=66815,"CJK Unified Ideographs Extension B":r=>r>=131072&&r<=173791};function sp(r){for(const e of r)if(Bc(e.charCodeAt(0)))return!0;return!1}function e0(r){for(const e of r)if(!Lm(e.charCodeAt(0)))return!1;return!0}function Lm(r){return!(jt.Arabic(r)||jt["Arabic Supplement"](r)||jt["Arabic Extended-A"](r)||jt["Arabic Presentation Forms-A"](r)||jt["Arabic Presentation Forms-B"](r))}function Bc(r){return!(r!==746&&r!==747&&(r<4352||!(jt["Bopomofo Extended"](r)||jt.Bopomofo(r)||jt["CJK Compatibility Forms"](r)&&!(r>=65097&&r<=65103)||jt["CJK Compatibility Ideographs"](r)||jt["CJK Compatibility"](r)||jt["CJK Radicals Supplement"](r)||jt["CJK Strokes"](r)||!(!jt["CJK Symbols and Punctuation"](r)||r>=12296&&r<=12305||r>=12308&&r<=12319||r===12336)||jt["CJK Unified Ideographs Extension A"](r)||jt["CJK Unified Ideographs"](r)||jt["Enclosed CJK Letters and Months"](r)||jt["Hangul Compatibility Jamo"](r)||jt["Hangul Jamo Extended-A"](r)||jt["Hangul Jamo Extended-B"](r)||jt["Hangul Jamo"](r)||jt["Hangul Syllables"](r)||jt.Hiragana(r)||jt["Ideographic Description Characters"](r)||jt.Kanbun(r)||jt["Kangxi Radicals"](r)||jt["Katakana Phonetic Extensions"](r)||jt.Katakana(r)&&r!==12540||!(!jt["Halfwidth and Fullwidth Forms"](r)||r===65288||r===65289||r===65293||r>=65306&&r<=65310||r===65339||r===65341||r===65343||r>=65371&&r<=65503||r===65507||r>=65512&&r<=65519)||!(!jt["Small Form Variants"](r)||r>=65112&&r<=65118||r>=65123&&r<=65126)||jt["Unified Canadian Aboriginal Syllabics"](r)||jt["Unified Canadian Aboriginal Syllabics Extended"](r)||jt["Vertical Forms"](r)||jt["Yijing Hexagram Symbols"](r)||jt["Yi Syllables"](r)||jt["Yi Radicals"](r))))}function km(r){return!(Bc(r)||function(e){return!!(jt["Latin-1 Supplement"](e)&&(e===167||e===169||e===174||e===177||e===188||e===189||e===190||e===215||e===247)||jt["General Punctuation"](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)||jt["Letterlike Symbols"](e)||jt["Number Forms"](e)||jt["Miscellaneous Technical"](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)||jt["Control Pictures"](e)&&e!==9251||jt["Optical Character Recognition"](e)||jt["Enclosed Alphanumerics"](e)||jt["Geometric Shapes"](e)||jt["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||jt["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||jt["CJK Symbols and Punctuation"](e)||jt.Katakana(e)||jt["Private Use Area"](e)||jt["CJK Compatibility Forms"](e)||jt["Small Form Variants"](e)||jt["Halfwidth and Fullwidth Forms"](e)||e===8734||e===8756||e===8757||e>=9984&&e<=10087||e>=10102&&e<=10131||e===65532||e===65533)}(r))}function t0(r){return jt.Arabic(r)||jt["Arabic Supplement"](r)||jt["Arabic Extended-A"](r)||jt["Arabic Presentation Forms-A"](r)||jt["Arabic Presentation Forms-B"](r)}function Om(r){return r>=1424&&r<=2303||jt["Arabic Presentation Forms-A"](r)||jt["Arabic Presentation Forms-B"](r)}function i0(r,e){return!(!e&&Om(r)||r>=2304&&r<=3583||r>=3840&&r<=4255||jt.Khmer(r))}function r0(r){for(const e of r)if(Om(e.charCodeAt(0)))return!0;return!1}const ap="deferred",lp="loading",cp="loaded";let up=null,io="unavailable",Js=null;const ja=function(r){r&&typeof r=="string"&&r.indexOf("NetworkError")>-1&&(io="error"),up&&up(r)};function gh(){yh.fire(new Vs("pluginStateChange",{pluginStatus:io,pluginURL:Js}))}const yh=new Aa,Rl=function(){return io},Fm=function(){if(io!==ap||!Js)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");io=lp,gh(),Js&&dl({url:Js},r=>{r?ja(r):(io=cp,gh())})},xo={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>io===cp||xo.applyArabicShaping!=null,isLoading:()=>io===lp,setState(r){io=r.pluginStatus,Js=r.pluginURL},isParsed:()=>xo.applyArabicShaping!=null&&xo.processBidirectionalText!=null&&xo.processStyledBidirectionalText!=null,getPluginURL:()=>Js};class Yi{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.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(e){return function(i,s){for(const a of i)if(!i0(a.charCodeAt(0),s))return!1;return!0}(e,xo.isLoaded())}}class Nc{constructor(e,i,s,a){this.property=e,this.value=i,this.expression=function(u,h,m,g){if(dh(u))return new kc(u,h);if(fh(u)||Array.isArray(u)&&u.length>0){const x=Lc(u,h,m,g);if(x.result==="error")throw new Error(x.value.map(T=>`${T.key}: ${T.message}`).join(", "));return x.value}{let x=u;return typeof u=="string"&&h.type==="color"&&(x=Bi.parse(u)),{kind:"constant",configDependencies:new Set,evaluate:()=>x}}}(i===void 0?e.specification.default:i,e.specification,s,a)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(e,i,s){return this.property.possiblyEvaluate(this,e,i,s)}}class Qs{constructor(e,i,s){this.property=e,this.value=new Nc(e,void 0,i,s)}transitioned(e,i){return new Nm(this.property,this.value,i,Oe({},e.transition,this.transition),e.now)}untransitioned(){return new Nm(this.property,this.value,null,{},0)}}class Bm{constructor(e,i,s){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._scope=i,this._options=s,this.configDependencies=new Set}getValue(e){return mi(this._values[e].value.value)}setValue(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new Qs(this._values[e].property,this._scope,this._options)),this._values[e].value=new Nc(this._values[e].property,i===null?void 0:mi(i),this._scope,this._options),this._values[e].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].value.expression.configDependencies]))}setTransitionOrValue(e,i){i&&(this._options=i);const s=this._properties.properties;if(e)for(const a in e){const u=e[a];if(a.endsWith("-transition")){const h=a.slice(0,-11);s[h]&&this.setTransition(h,u)}else s.hasOwnProperty(a)&&this.setValue(a,u)}}getTransition(e){return mi(this._values[e].transition)}setTransition(e,i){this._values.hasOwnProperty(e)||(this._values[e]=new Qs(this._values[e].property)),this._values[e].transition=mi(i)||void 0}serialize(){const e={};for(const i of Object.keys(this._values)){const s=this.getValue(i);s!==void 0&&(e[i]=s);const a=this.getTransition(i);a!==void 0&&(e[`${i}-transition`]=a)}return e}transitioned(e,i){const s=new jm(this._properties);for(const a of Object.keys(this._values))s._values[a]=this._values[a].transitioned(e,i._values[a]);return s}untransitioned(){const e=new jm(this._properties);for(const i of Object.keys(this._values))e._values[i]=this._values[i].untransitioned();return e}}class Nm{constructor(e,i,s,a,u){const h=a.delay||0,m=a.duration||0;u=u||0,this.property=e,this.value=i,this.begin=u+h,this.end=this.begin+m,e.specification.transition&&(a.delay||a.duration)&&(this.prior=s)}possiblyEvaluate(e,i,s){const a=e.now||0,u=this.value.possiblyEvaluate(e,i,s),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,s);{const m=(a-this.begin)/(this.end-this.begin);return this.property.interpolate(h.possiblyEvaluate(e,i,s),u,_e(m))}}return u}}class jm{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,i,s){const a=new Va(this._properties);for(const u of Object.keys(this._values))a._values[u]=this._values[u].possiblyEvaluate(e,i,s);return a}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class n0{constructor(e,i,s){this._properties=e,this._values=Object.create(e.defaultPropertyValues),this._scope=i,this._options=s,this.configDependencies=new Set}getValue(e){return mi(this._values[e].value)}setValue(e,i){this._values[e]=new Nc(this._values[e].property,i===null?void 0:mi(i),this._scope,this._options),this._values[e].expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].expression.configDependencies]))}serialize(){const e={};for(const i of Object.keys(this._values)){const s=this.getValue(i);s!==void 0&&(e[i]=s)}return e}possiblyEvaluate(e,i,s){const a=new Va(this._properties);for(const u of Object.keys(this._values))a._values[u]=this._values[u].possiblyEvaluate(e,i,s);return a}}class zl{constructor(e,i,s){this.property=e,this.value=i,this.parameters=s}isConstant(){return this.value.kind==="constant"}constantOr(e){return this.value.kind==="constant"?this.value.value:e}evaluate(e,i,s,a){return this.property.evaluate(this.value,this.parameters,e,i,s,a)}}class Va{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class ht{constructor(e){this.specification=e}possiblyEvaluate(e,i){return e.expression.evaluate(i)}interpolate(e,i,s){const a=Uu[this.specification.type];return a?a(e,i,s):e}}class wt{constructor(e,i){this.specification=e,this.overrides=i}possiblyEvaluate(e,i,s,a){return new zl(this,e.expression.kind==="constant"||e.expression.kind==="camera"?{kind:"constant",value:e.expression.evaluate(i,null,{},s,a)}:e.expression,i)}interpolate(e,i,s){if(e.value.kind!=="constant"||i.value.kind!=="constant")return e;if(e.value.value===void 0||i.value.value===void 0)return new zl(this,{kind:"constant",value:void 0},e.parameters);const a=Uu[this.specification.type];return a?new zl(this,{kind:"constant",value:a(e.value.value,i.value.value,s)},e.parameters):e}evaluate(e,i,s,a,u,h){return e.kind==="constant"?e.value:e.evaluate(i,s,a,u,h)}}class Ua{constructor(e){this.specification=e}possiblyEvaluate(e,i,s,a){return!!e.expression.evaluate(i,null,{},s,a)}interpolate(){return!1}}class Nr{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const i=new Yi(0,{});for(const s in e){const a=e[s];a.specification.overridable&&this.overridableProperties.push(s);const u=this.defaultPropertyValues[s]=new Nc(a,void 0),h=this.defaultTransitionablePropertyValues[s]=new Qs(a);this.defaultTransitioningPropertyValues[s]=h.untransitioned(),this.defaultPossiblyEvaluatedValues[s]=u.possiblyEvaluate(i)}}}Tt(wt,"DataDrivenProperty"),Tt(ht,"DataConstantProperty"),Tt(Ua,"ColorRampProperty");var Re=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"]},"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}},"properties_light_ambient":{"color":{"type":"color","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"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"]},"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"}}},"source_model":{"type":{"type":"enum","values":{"model":1,"batched-model":1}},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"}},"layer":{"id":{"type":"string"},"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"}},"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"]}}},"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":{}}},"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-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"}},"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"]}}},"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,"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,"maximum":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,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]}},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]}},"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,"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,"maximum":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,"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],"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},"transition":true},"high-color":{"type":"color","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"space-color":{"type":"color","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":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},"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},"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},"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},"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":{"floorplanFeaturesetId":{"type":"string","expression":{}},"buildingFeaturesetId":{"type":"string","expression":{}}},"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"]},"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","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"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"]},"transition":true},"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)","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)","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","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"]},"transition":true},"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","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-wall-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"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)","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"property-type":"data-driven"},"building-emissive-strength":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"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"]},"transition":true},"line-gradient":{"type":"color","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","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"]}},"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)","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","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","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"],"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","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"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"]},"transition":true},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-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","transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"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","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"]}}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string"},"raster-particle-count":{"type":"number","default":512,"minimum":1},"raster-particle-color":{"type":"color","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","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"hillshade-accent-color":{"type":"color","default":"#000000","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","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"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"],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]}},"sky-atmosphere-halo-color":{"type":"color","default":"white"},"sky-atmosphere-color":{"type":"color","default":"white"},"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"]},"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]}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"promoteId":{"*":{"type":"*"}}}');function zo(r){return r instanceof Number||r instanceof String||r instanceof Boolean?r.valueOf():r}function vh(r){if(Array.isArray(r))return r.map(vh);if(r instanceof Object&&!(r instanceof Number||r instanceof String||r instanceof Boolean)){const e={};for(const i in r)e[i]=vh(r[i]);return e}return zo(r)}function xh(r){if(r===!0||r===!1)return!0;if(!Array.isArray(r)||r.length===0)return!1;switch(r[0]){case"has":return r.length>=2&&r[1]!=="$id"&&r[1]!=="$type";case"in":return r.length>=3&&(typeof r[1]!="string"||Array.isArray(r[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return r.length!==3||Array.isArray(r[1])||Array.isArray(r[2]);case"any":case"all":for(const e of r.slice(1))if(!xh(e)&&typeof e!="boolean")return!1;return!0;default:return!0}}function hp(r,e="",i=null,s="fill"){if(r==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};xh(r)||(r=bh(r));const a=r;let u=!0;try{u=function(T){if(!Ll(T))return T;let S=vh(T);return Um(S),S=Vm(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!
65
65
  Filter Expression:
66
66
  ${JSON.stringify(a,null,2)}
67
- `)}let h=null,m=null;if(s!=="background"&&s!=="sky"&&s!=="slot"){m=Re[`filter_${s}`];const T=Ml(u,m,e,i);if(T.result==="error")throw new Error(T.value.map(S=>`${S.key}: ${S.message}`).join(", "));h=(S,A,D)=>T.value.evaluate(S,A,{},D)}let g=null,x=null;if(u!==a){const T=Ml(a,m,e,i);if(T.result==="error")throw new Error(T.value.map(S=>`${S.key}: ${S.message}`).join(", "));g=(S,A,D,R,O)=>T.value.evaluate(S,A,{},D,void 0,void 0,R,O),x=!Cc(T.value.expression)}return{filter:h,dynamicFilter:g||void 0,needGeometry:$m(u),needFeature:!!x}}function Vm(r){if(!Array.isArray(r))return r;const e=function(i){if(o0.has(i[0])){for(let s=1;s<i.length;s++)if(Ll(i[s]))return!0}return i}(r);return e===!0?e:e.map(i=>Vm(i))}function Um(r){let e=!1;const i=[];if(r[0]==="case"){for(let s=1;s<r.length-1;s+=2)e=e||Ll(r[s]),i.push(r[s+1]);i.push(r[r.length-1])}else if(r[0]==="match"){e=e||Ll(r[1]);for(let s=2;s<r.length-1;s+=2)i.push(r[s+1]);i.push(r[r.length-1])}else if(r[0]==="step"){e=e||Ll(r[1]);for(let s=1;s<r.length-1;s+=2)i.push(r[s+1])}e&&(r.length=0,r.push("any",...i));for(let s=1;s<r.length;s++)Um(r[s])}function Ll(r){if(!Array.isArray(r))return!1;if((e=r[0])==="pitch"||e==="distance-from-center")return!0;var e;for(let i=1;i<r.length;i++)if(Ll(r[i]))return!0;return!1}const o0=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function s0(r,e){return r<e?-1:r>e?1:0}function $m(r){if(!Array.isArray(r))return!1;if(r[0]==="within"||r[0]==="distance")return!0;for(let e=1;e<r.length;e++)if($m(r[e]))return!0;return!1}function bh(r){if(!r)return!0;const e=r[0];return r.length<=1?e!=="any":e==="=="?dp(r[1],r[2],"=="):e==="!="?wh(dp(r[1],r[2],"==")):e==="<"||e===">"||e==="<="||e===">="?dp(r[1],r[2],e):e==="any"?(i=r.slice(1),["any"].concat(i.map(bh))):e==="all"?["all"].concat(r.slice(1).map(bh)):e==="none"?["all"].concat(r.slice(1).map(bh).map(wh)):e==="in"?pp(r[1],r.slice(2)):e==="!in"?wh(pp(r[1],r.slice(2))):e==="has"?Gm(r[1]):e!=="!has"||wh(Gm(r[1]));var i}function dp(r,e,i){switch(r){case"$type":return[`filter-type-${i}`,e];case"$id":return[`filter-id-${i}`,e];default:return[`filter-${i}`,r,e]}}function pp(r,e){if(e.length===0)return!1;switch(r){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(i=>typeof i!=typeof e[0])?["filter-in-large",r,["literal",e.sort(s0)]]:["filter-in-small",r,["literal",e]]}}function Gm(r){switch(r){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",r]}}function wh(r){return["!",r]}const jc="";function $a(r,e){return e?`${r}${jc}${e}`:r}const fp="-transition",ea=new Set(["fill","line","background","hillshade","raster"]);class Gn extends Aa{constructor(e,i,s,a,u){if(super(),this.id=e.id,this.fqid=$a(this.id,s),this.type=e.type,this.scope=s,this.lut=a,this.options=u,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,this.configDependencies=new Set,e.type!=="custom"){if(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,e.type&&e.type!=="background"&&e.type!=="sky"&&e.type!=="slot"){this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter;const h=Ml(this.filter,Re[`filter_${e.type}`]);h.result!=="error"&&(this.configDependencies=new Set([...this.configDependencies,...h.value.configDependencies]))}if(e.slot&&(this.slot=e.slot),i.layout&&(this._unevaluatedLayout=new n0(i.layout,this.scope,u),this.configDependencies=new Set([...this.configDependencies,...this._unevaluatedLayout.configDependencies])),i.paint){this._transitionablePaint=new Bm(i.paint,this.scope,u);for(const h in e.paint)this.setPaintProperty(h,e.paint[h]);for(const h in e.layout)this.setLayoutProperty(h,e.layout[h]);this.configDependencies=new Set([...this.configDependencies,...this._transitionablePaint.configDependencies]),this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Va(i.paint)}}}onAdd(e){}onRemove(e){}isDraped(e){return!this.is3D(!0)&&ea.has(this.type)}getLayoutProperty(e){return e==="visibility"?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,i){if(this.type==="custom"&&e==="visibility")return void(this.visibility=i);const s=this._unevaluatedLayout;s._properties.properties[e]&&(s.setValue(e,i),this.configDependencies=new Set([...this.configDependencies,...s.configDependencies]),e==="visibility"&&this.possiblyEvaluateVisibility())}possiblyEvaluateVisibility(){this._unevaluatedLayout._values.visibility&&(this.visibility=this._unevaluatedLayout._values.visibility.possiblyEvaluate({zoom:0}))}getPaintProperty(e){return e.endsWith(fp)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}setPaintProperty(e,i){const s=this._transitionablePaint,a=s._properties.properties;if(e.endsWith(fp)){const S=e.slice(0,-11);return a[S]&&s.setTransition(S,i||void 0),!1}if(!a[e])return!1;const u=s._values[e],h=u.value.isDataDriven(),m=u.value;s.setValue(e,i),this.configDependencies=new Set([...this.configDependencies,...s.configDependencies]),this._handleSpecialPaintPropertyUpdate(e);const g=s._values[e].value,x=g.isDataDriven(),T=e.endsWith("pattern")||e==="line-dasharray";return x||h||T||this._handleOverridablePaintPropertyUpdate(e,m,g)}_handleSpecialPaintPropertyUpdate(e){}getProgramIds(){return null}getDefaultProgramParams(e,i,s){return null}_handleOverridablePaintPropertyUpdate(e,i,s){return!1}isHidden(e){return!!(this.minzoom&&e<this.minzoom)||!!(this.maxzoom&&e>=this.maxzoom)||this.visibility==="none"}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,i){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,i)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,i)}serialize(){return hi({id:this.id,type:this.type,slot:this.slot,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()},(e,i)=>!(e===void 0||i==="layout"&&!Object.keys(e).length||i==="paint"&&!Object.keys(e).length))}is3D(e){return!1}hasElevation(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}hasShadowPass(){return!1}canCastShadows(){return!1}hasLightBeamPass(){return!1}cutoffRange(){return 0}tileCoverLift(){return 0}resize(){}isStateDependent(){for(const e in this.paint._values){const i=this.paint.get(e);if(i instanceof zl&&uh(i.property.specification)&&(i.value.kind==="source"||i.value.kind==="composite")&&i.value.isStateDependent)return!0}return!1}compileFilter(e){this._filterCompiled||(this._featureFilter=hp(this.filter,this.scope,e),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}getLayerRenderingStats(){return this._stats}resetLayerRenderingStats(e){this._stats&&(e.renderPass==="shadow"?this._stats.numRenderedVerticesInShadowPass=0:this._stats.numRenderedVerticesInTransparentPass=0)}queryRadius(e){}queryIntersectsFeature(e,i,s,a,u,h,m,g,x){}}const a0={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Vc{constructor(e,i){this._structArray=e,this._pos1=i*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Tr{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,i){return e._trim(),i&&(e.isTransferred=!0,i.add(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const i=Object.create(this.prototype);return i.arrayBuffer=e.arrayBuffer,i.length=e.length,i.capacity=e.arrayBuffer.byteLength/i.bytesPerElement,i._refreshViews(),i}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const i=this.uint8;this._refreshViews(),i&&this.uint8.set(i)}}_refreshViews(){throw new Error("StructArray#_refreshViews() must be implemented by each concrete StructArray layout")}emplace(...e){throw new Error("StructArray#emplace() must be implemented by each concrete StructArray layout")}emplaceBack(...e){throw new Error("StructArray#emplaceBack() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function Oi(r,e=1){let i=0,s=0;return{members:r.map(a=>{const u=a0[a.type].BYTES_PER_ELEMENT,h=i=mp(i,Math.max(e,u)),m=a.components||1;return s=Math.max(s,u),i+=u*m,{name:a.name,type:a.type,components:m,offset:h}}),size:mp(i,Math.max(s,e)),alignment:e}}function mp(r,e){return Math.ceil(r/e)*e}class ws extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i){const s=this.length;return this.resize(s+1),this.emplace(s,e,i)}emplace(e,i,s){const a=2*e;return this.int16[a+0]=i,this.int16[a+1]=s,e}}ws.prototype.bytesPerElement=4,Tt(ws,"StructArrayLayout2i4");class Th extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,i,s)}emplace(e,i,s,a){const u=3*e;return this.int16[u+0]=i,this.int16[u+1]=s,this.int16[u+2]=a,e}}Th.prototype.bytesPerElement=6,Tt(Th,"StructArrayLayout3i6");class Ga extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,s,a){const u=this.length;return this.resize(u+1),this.emplace(u,e,i,s,a)}emplace(e,i,s,a,u){const h=4*e;return this.int16[h+0]=i,this.int16[h+1]=s,this.int16[h+2]=a,this.int16[h+3]=u,e}}Ga.prototype.bytesPerElement=8,Tt(Ga,"StructArrayLayout4i8");class kl extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.float32[1*e+0]=i,e}}kl.prototype.bytesPerElement=4,Tt(kl,"StructArrayLayout1f4");class Sh extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,i,s)}emplace(e,i,s,a){const u=4*e,h=2*e;return this.int16[u+0]=i,this.int16[u+1]=s,this.float32[h+1]=a,e}}Sh.prototype.bytesPerElement=8,Tt(Sh,"StructArrayLayout2i1f8");class Ol extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,i,s)}emplace(e,i,s,a){const u=4*e;return this.int16[u+0]=i,this.int16[u+1]=s,this.int16[u+2]=a,e}}Ol.prototype.bytesPerElement=8,Tt(Ol,"StructArrayLayout3i8");class _p extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u){const h=this.length;return this.resize(h+1),this.emplace(h,e,i,s,a,u)}emplace(e,i,s,a,u,h){const m=5*e;return this.int16[m+0]=i,this.int16[m+1]=s,this.int16[m+2]=a,this.int16[m+3]=u,this.int16[m+4]=h,e}}_p.prototype.bytesPerElement=10,Tt(_p,"StructArrayLayout5i10");class gp extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m){const g=this.length;return this.resize(g+1),this.emplace(g,e,i,s,a,u,h,m)}emplace(e,i,s,a,u,h,m,g){const x=6*e,T=12*e,S=3*e;return this.int16[x+0]=i,this.int16[x+1]=s,this.uint8[T+4]=a,this.uint8[T+5]=u,this.uint8[T+6]=h,this.uint8[T+7]=m,this.float32[S+2]=g,e}}gp.prototype.bytesPerElement=12,Tt(gp,"StructArrayLayout2i4ub1f12");class Ko extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,i,s)}emplace(e,i,s,a){const u=3*e;return this.float32[u+0]=i,this.float32[u+1]=s,this.float32[u+2]=a,e}}Ko.prototype.bytesPerElement=12,Tt(Ko,"StructArrayLayout3f12");class Ts extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u){const h=this.length;return this.resize(h+1),this.emplace(h,e,i,s,a,u)}emplace(e,i,s,a,u,h){const m=6*e,g=3*e;return this.uint16[m+0]=i,this.uint16[m+1]=s,this.uint16[m+2]=a,this.uint16[m+3]=u,this.float32[g+2]=h,e}}Ts.prototype.bytesPerElement=12,Tt(Ts,"StructArrayLayout4ui1f12");class Eh extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,s,a){const u=this.length;return this.resize(u+1),this.emplace(u,e,i,s,a)}emplace(e,i,s,a,u){const h=4*e;return this.uint16[h+0]=i,this.uint16[h+1]=s,this.uint16[h+2]=a,this.uint16[h+3]=u,e}}Eh.prototype.bytesPerElement=8,Tt(Eh,"StructArrayLayout4ui8");class Ha extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h){const m=this.length;return this.resize(m+1),this.emplace(m,e,i,s,a,u,h)}emplace(e,i,s,a,u,h,m){const g=6*e;return this.int16[g+0]=i,this.int16[g+1]=s,this.int16[g+2]=a,this.int16[g+3]=u,this.int16[g+4]=h,this.int16[g+5]=m,e}}Ha.prototype.bytesPerElement=12,Tt(Ha,"StructArrayLayout6i12");class Fl extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m,g,x,T,S,A){const D=this.length;return this.resize(D+1),this.emplace(D,e,i,s,a,u,h,m,g,x,T,S,A)}emplace(e,i,s,a,u,h,m,g,x,T,S,A,D){const R=12*e;return this.int16[R+0]=i,this.int16[R+1]=s,this.int16[R+2]=a,this.int16[R+3]=u,this.uint16[R+4]=h,this.uint16[R+5]=m,this.uint16[R+6]=g,this.uint16[R+7]=x,this.int16[R+8]=T,this.int16[R+9]=S,this.int16[R+10]=A,this.int16[R+11]=D,e}}Fl.prototype.bytesPerElement=24,Tt(Fl,"StructArrayLayout4i4ui4i24");class Yn extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h){const m=this.length;return this.resize(m+1),this.emplace(m,e,i,s,a,u,h)}emplace(e,i,s,a,u,h,m){const g=10*e,x=5*e;return this.int16[g+0]=i,this.int16[g+1]=s,this.int16[g+2]=a,this.float32[x+2]=u,this.float32[x+3]=h,this.float32[x+4]=m,e}}Yn.prototype.bytesPerElement=20,Tt(Yn,"StructArrayLayout3i3f20");class Jo extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a){const u=this.length;return this.resize(u+1),this.emplace(u,e,i,s,a)}emplace(e,i,s,a,u){const h=4*e;return this.float32[h+0]=i,this.float32[h+1]=s,this.float32[h+2]=a,this.float32[h+3]=u,e}}Jo.prototype.bytesPerElement=16,Tt(Jo,"StructArrayLayout4f16");class yp extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.uint32[1*e+0]=i,e}}yp.prototype.bytesPerElement=4,Tt(yp,"StructArrayLayout1ul4");class ta extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i){const s=this.length;return this.resize(s+1),this.emplace(s,e,i)}emplace(e,i,s){const a=2*e;return this.uint16[a+0]=i,this.uint16[a+1]=s,e}}ta.prototype.bytesPerElement=4,Tt(ta,"StructArrayLayout2ui4");class vp extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m,g,x,T,S,A,D){const R=this.length;return this.resize(R+1),this.emplace(R,e,i,s,a,u,h,m,g,x,T,S,A,D)}emplace(e,i,s,a,u,h,m,g,x,T,S,A,D,R){const O=20*e,$=10*e;return this.int16[O+0]=i,this.int16[O+1]=s,this.int16[O+2]=a,this.int16[O+3]=u,this.int16[O+4]=h,this.float32[$+3]=m,this.float32[$+4]=g,this.float32[$+5]=x,this.float32[$+6]=T,this.int16[O+14]=S,this.uint32[$+8]=A,this.uint16[O+18]=D,this.uint16[O+19]=R,e}}vp.prototype.bytesPerElement=40,Tt(vp,"StructArrayLayout5i4f1i1ul2ui40");class Ah extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m){const g=this.length;return this.resize(g+1),this.emplace(g,e,i,s,a,u,h,m)}emplace(e,i,s,a,u,h,m,g){const x=8*e;return this.int16[x+0]=i,this.int16[x+1]=s,this.int16[x+2]=a,this.int16[x+4]=u,this.int16[x+5]=h,this.int16[x+6]=m,this.int16[x+7]=g,e}}Ah.prototype.bytesPerElement=16,Tt(Ah,"StructArrayLayout3i2i2i16");class Uc extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u){const h=this.length;return this.resize(h+1),this.emplace(h,e,i,s,a,u)}emplace(e,i,s,a,u,h){const m=4*e,g=8*e;return this.float32[m+0]=i,this.float32[m+1]=s,this.float32[m+2]=a,this.int16[g+6]=u,this.int16[g+7]=h,e}}Uc.prototype.bytesPerElement=16,Tt(Uc,"StructArrayLayout2f1f2i16");class xp extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h){const m=this.length;return this.resize(m+1),this.emplace(m,e,i,s,a,u,h)}emplace(e,i,s,a,u,h,m){const g=20*e,x=5*e;return this.uint8[g+0]=i,this.uint8[g+1]=s,this.float32[x+1]=a,this.float32[x+2]=u,this.float32[x+3]=h,this.float32[x+4]=m,e}}xp.prototype.bytesPerElement=20,Tt(xp,"StructArrayLayout2ub4f20");class _n extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,i,s)}emplace(e,i,s,a){const u=3*e;return this.uint16[u+0]=i,this.uint16[u+1]=s,this.uint16[u+2]=a,e}}_n.prototype.bytesPerElement=6,Tt(_n,"StructArrayLayout3ui6");class bp extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$,H,K,W,F,q){const Y=this.length;return this.resize(Y+1),this.emplace(Y,e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$,H,K,W,F,q)}emplace(e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$,H,K,W,F,q,Y){const te=30*e,de=15*e,ge=60*e;return this.int16[te+0]=i,this.int16[te+1]=s,this.int16[te+2]=a,this.float32[de+2]=u,this.float32[de+3]=h,this.uint16[te+8]=m,this.uint16[te+9]=g,this.uint32[de+5]=x,this.uint32[de+6]=T,this.uint32[de+7]=S,this.uint16[te+16]=A,this.uint16[te+17]=D,this.uint16[te+18]=R,this.float32[de+10]=O,this.float32[de+11]=$,this.uint8[ge+48]=H,this.uint8[ge+49]=K,this.uint8[ge+50]=W,this.uint32[de+13]=F,this.int16[te+28]=q,this.uint8[ge+58]=Y,e}}bp.prototype.bytesPerElement=60,Tt(bp,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class wp extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$,H,K,W,F,q,Y,te,de,ge,xe,Ce,Ue,et,Xe,Qe,ot,je){const Je=this.length;return this.resize(Je+1),this.emplace(Je,e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$,H,K,W,F,q,Y,te,de,ge,xe,Ce,Ue,et,Xe,Qe,ot,je)}emplace(e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$,H,K,W,F,q,Y,te,de,ge,xe,Ce,Ue,et,Xe,Qe,ot,je,Je){const Fe=20*e,Ve=40*e,lt=80*e;return this.float32[Fe+0]=i,this.float32[Fe+1]=s,this.int16[Ve+4]=a,this.int16[Ve+5]=u,this.int16[Ve+6]=h,this.int16[Ve+7]=m,this.int16[Ve+8]=g,this.int16[Ve+9]=x,this.int16[Ve+10]=T,this.int16[Ve+11]=S,this.int16[Ve+12]=A,this.uint16[Ve+13]=D,this.uint16[Ve+14]=R,this.uint16[Ve+15]=O,this.uint16[Ve+16]=$,this.uint16[Ve+17]=H,this.uint16[Ve+18]=K,this.uint16[Ve+19]=W,this.uint16[Ve+20]=F,this.uint16[Ve+21]=q,this.uint16[Ve+22]=Y,this.uint16[Ve+23]=te,this.uint16[Ve+24]=de,this.uint16[Ve+25]=ge,this.uint16[Ve+26]=xe,this.uint16[Ve+27]=Ce,this.uint32[Fe+14]=Ue,this.float32[Fe+15]=et,this.float32[Fe+16]=Xe,this.float32[Fe+17]=Qe,this.float32[Fe+18]=ot,this.uint8[lt+76]=je,this.uint16[Ve+39]=Je,e}}wp.prototype.bytesPerElement=80,Tt(wp,"StructArrayLayout2f9i15ui1ul4f1ub1ui80");class ia extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u){const h=this.length;return this.resize(h+1),this.emplace(h,e,i,s,a,u)}emplace(e,i,s,a,u,h){const m=5*e;return this.float32[m+0]=i,this.float32[m+1]=s,this.float32[m+2]=a,this.float32[m+3]=u,this.float32[m+4]=h,e}}ia.prototype.bytesPerElement=20,Tt(ia,"StructArrayLayout5f20");class $c extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m){const g=this.length;return this.resize(g+1),this.emplace(g,e,i,s,a,u,h,m)}emplace(e,i,s,a,u,h,m,g){const x=7*e;return this.float32[x+0]=i,this.float32[x+1]=s,this.float32[x+2]=a,this.float32[x+3]=u,this.float32[x+4]=h,this.float32[x+5]=m,this.float32[x+6]=g,e}}$c.prototype.bytesPerElement=28,Tt($c,"StructArrayLayout7f28");class Tp extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m,g,x,T,S){const A=this.length;return this.resize(A+1),this.emplace(A,e,i,s,a,u,h,m,g,x,T,S)}emplace(e,i,s,a,u,h,m,g,x,T,S,A){const D=11*e;return this.float32[D+0]=i,this.float32[D+1]=s,this.float32[D+2]=a,this.float32[D+3]=u,this.float32[D+4]=h,this.float32[D+5]=m,this.float32[D+6]=g,this.float32[D+7]=x,this.float32[D+8]=T,this.float32[D+9]=S,this.float32[D+10]=A,e}}Tp.prototype.bytesPerElement=44,Tt(Tp,"StructArrayLayout11f44");class Ih extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m,g,x){const T=this.length;return this.resize(T+1),this.emplace(T,e,i,s,a,u,h,m,g,x)}emplace(e,i,s,a,u,h,m,g,x,T){const S=9*e;return this.float32[S+0]=i,this.float32[S+1]=s,this.float32[S+2]=a,this.float32[S+3]=u,this.float32[S+4]=h,this.float32[S+5]=m,this.float32[S+6]=g,this.float32[S+7]=x,this.float32[S+8]=T,e}}Ih.prototype.bytesPerElement=36,Tt(Ih,"StructArrayLayout9f36");class qa extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i){const s=this.length;return this.resize(s+1),this.emplace(s,e,i)}emplace(e,i,s){const a=2*e;return this.float32[a+0]=i,this.float32[a+1]=s,e}}qa.prototype.bytesPerElement=8,Tt(qa,"StructArrayLayout2f8");class Sp extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,s,a){const u=this.length;return this.resize(u+1),this.emplace(u,e,i,s,a)}emplace(e,i,s,a,u){const h=6*e;return this.uint32[3*e+0]=i,this.uint16[h+2]=s,this.uint16[h+3]=a,this.uint16[h+4]=u,e}}Sp.prototype.bytesPerElement=12,Tt(Sp,"StructArrayLayout1ul3ui12");class Gc extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.uint16[1*e+0]=i,e}}Gc.prototype.bytesPerElement=2,Tt(Gc,"StructArrayLayout1ui2");class Bl extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$){const H=this.length;return this.resize(H+1),this.emplace(H,e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$)}emplace(e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$,H){const K=16*e;return this.float32[K+0]=i,this.float32[K+1]=s,this.float32[K+2]=a,this.float32[K+3]=u,this.float32[K+4]=h,this.float32[K+5]=m,this.float32[K+6]=g,this.float32[K+7]=x,this.float32[K+8]=T,this.float32[K+9]=S,this.float32[K+10]=A,this.float32[K+11]=D,this.float32[K+12]=R,this.float32[K+13]=O,this.float32[K+14]=$,this.float32[K+15]=H,e}}Bl.prototype.bytesPerElement=64,Tt(Bl,"StructArrayLayout16f64");class Hc extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m){const g=this.length;return this.resize(g+1),this.emplace(g,e,i,s,a,u,h,m)}emplace(e,i,s,a,u,h,m,g){const x=10*e,T=5*e;return this.uint16[x+0]=i,this.uint16[x+1]=s,this.uint16[x+2]=a,this.uint16[x+3]=u,this.float32[T+2]=h,this.float32[T+3]=m,this.float32[T+4]=g,e}}Hc.prototype.bytesPerElement=20,Tt(Hc,"StructArrayLayout4ui3f20");class Ep extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e){const i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.int16[1*e+0]=i,e}}Ep.prototype.bytesPerElement=2,Tt(Ep,"StructArrayLayout1i2");class Ch extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer)}emplaceBack(e){const i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.uint8[1*e+0]=i,e}}Ch.prototype.bytesPerElement=1,Tt(Ch,"StructArrayLayout1ub1");class Hm extends Vc{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}Hm.prototype.size=40;class Mh extends vp{get(e){return new Hm(this,e)}}Tt(Mh,"CollisionBoxArray");class qm extends Vc{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(e){this._structArray.uint8[this._pos1+49]=e}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(e){this._structArray.uint8[this._pos1+50]=e}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(e){this._structArray.uint32[this._pos4+13]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(e){this._structArray.uint8[this._pos1+58]=e}}qm.prototype.size=60;class Zm extends bp{get(e){return new qm(this,e)}}Tt(Zm,"PlacedSymbolArray");class Wm extends Vc{get tileAnchorX(){return this._structArray.float32[this._pos4+0]}get tileAnchorY(){return this._structArray.float32[this._pos4+1]}get projectedAnchorX(){return this._structArray.int16[this._pos2+4]}get projectedAnchorY(){return this._structArray.int16[this._pos2+5]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+6]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+7]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+11]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get key(){return this._structArray.uint16[this._pos2+13]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+14]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+15]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+17]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+19]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+21]}get featureIndex(){return this._structArray.uint16[this._pos2+22]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+23]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numIconVertices(){return this._structArray.uint16[this._pos2+25]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+26]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+27]}get crossTileID(){return this._structArray.uint32[this._pos4+14]}set crossTileID(e){this._structArray.uint32[this._pos4+14]=e}get textOffset0(){return this._structArray.float32[this._pos4+15]}get textOffset1(){return this._structArray.float32[this._pos4+16]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+17]}get zOffset(){return this._structArray.float32[this._pos4+18]}set zOffset(e){this._structArray.float32[this._pos4+18]=e}get hasIconTextFit(){return this._structArray.uint8[this._pos1+76]}get elevationFeatureIndex(){return this._structArray.uint16[this._pos2+39]}}Wm.prototype.size=80;class Xm extends wp{get(e){return new Wm(this,e)}}Tt(Xm,"SymbolInstanceArray");class Ap extends kl{getoffsetX(e){return this.float32[1*e+0]}}Tt(Ap,"GlyphOffsetArray");class Ym extends ws{getx(e){return this.int16[2*e+0]}gety(e){return this.int16[2*e+1]}}Tt(Ym,"SymbolLineVertexArray");class Km extends Vc{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}Km.prototype.size=12;class Jm extends Sp{get(e){return new Km(this,e)}}Tt(Jm,"FeatureIndexArray");class Qm extends ta{geta_centroid_pos0(e){return this.uint16[2*e+0]}geta_centroid_pos1(e){return this.uint16[2*e+1]}}Tt(Qm,"FillExtrusionCentroidArray");class e_ extends Vc{get a_join_normal_inside0(){return this._structArray.int16[this._pos2+0]}get a_join_normal_inside1(){return this._structArray.int16[this._pos2+1]}get a_join_normal_inside2(){return this._structArray.int16[this._pos2+2]}}e_.prototype.size=6;class t_ extends Th{get(e){return new e_(this,e)}}Tt(t_,"FillExtrusionWallArray");const l0=Oi([{name:"a_pos",components:2,type:"Int16"}],4),c0=Oi([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class Cr{constructor(e=[]){this.segments=e}_prepareSegment(e,i,s,a){let u=this.segments[this.segments.length-1];return e>Cr.MAX_VERTEX_ARRAY_LENGTH&&yi(`Max vertices per segment is ${Cr.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!u||u.vertexLength+e>Cr.MAX_VERTEX_ARRAY_LENGTH||u.sortKey!==a)&&(u={vertexOffset:i,primitiveOffset:s,vertexLength:0,primitiveLength:0},a!==void 0&&(u.sortKey=a),this.segments.push(u)),u}prepareSegment(e,i,s,a){return this._prepareSegment(e,i.length,s.length,a)}get(){return this.segments}destroy(){for(const e of this.segments)for(const i in e.vaos)e.vaos[i].destroy()}static simpleSegment(e,i,s,a){return new Cr([{vertexOffset:e,primitiveOffset:i,vertexLength:s,primitiveLength:a,vaos:{},sortKey:0}])}}function i_(r,e){return 256*(r=Te(Math.floor(r),0,255))+Te(Math.floor(e),0,255)}Cr.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Tt(Cr,"SegmentVector");const u0=Oi([{name:"a_pattern",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),Nl=Oi([{name:"a_pattern_b",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),h0=Oi([{name:"a_dash",components:4,type:"Uint16"}]);class jl{constructor(){this.ids=[],this.uniqueIds=[],this.positions=[],this.indexed=!1}add(e,i,s,a){this.ids.push(r_(e)),this.positions.push(i,s,a)}eachPosition(e,i){const s=r_(e);let a=0,u=this.ids.length-1;for(;a<u;){const h=a+u>>1;this.ids[h]>=s?u=h:a=h+1}for(;this.ids[a]===s;)i(this.positions[3*a],this.positions[3*a+1],this.positions[3*a+2]),a++}static serialize(e,i){const s=new Float64Array(e.ids),a=new Uint32Array(e.positions);return Ph(s,a,0,s.length-1),i&&(i.add(s.buffer),i.add(a.buffer)),{ids:s,positions:a}}static deserialize(e){const i=new jl;let s;i.ids=e.ids,i.positions=e.positions;for(const a of i.ids)a!==s&&i.uniqueIds.push(a),s=a;return i.indexed=!0,i}}function r_(r){const e=+r;return!isNaN(e)&&Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:eo(String(r))}function Ph(r,e,i,s){for(;i<s;){const a=r[i+s>>1];let u=i-1,h=s+1;for(;;){do u++;while(r[u]<a);do h--;while(r[h]>a);if(u>=h)break;qc(r,u,h),qc(e,3*u,3*h),qc(e,3*u+1,3*h+1),qc(e,3*u+2,3*h+2)}h-i<s-h?(Ph(r,e,i,h),i=h+1):(Ph(r,e,h+1,s),s=h)}}function qc(r,e,i){const s=r[e];r[e]=r[i],r[i]=s}Tt(jl,"FeaturePositionMap");class Qo{constructor(e){this.gl=e.gl,this.initialized=!1}fetchUniformLocation(e,i){return this.location||this.initialized||(this.location=this.gl.getUniformLocation(e,i),this.initialized=!0),!!this.location}set(e,i,s){throw new Error("Uniform#set() must be implemented by each concrete Uniform")}}class Dh extends Qo{constructor(e){super(e),this.current=0}set(e,i,s){this.fetchUniformLocation(e,i)&&this.current!==s&&(this.current=s,this.gl.uniform1i(this.location,s))}}class Wr extends Qo{constructor(e){super(e),this.current=0}set(e,i,s){this.fetchUniformLocation(e,i)&&this.current!==s&&(this.current=s,this.gl.uniform1f(this.location,s))}}class Lo extends Qo{constructor(e){super(e),this.current=[0,0]}set(e,i,s){this.fetchUniformLocation(e,i)&&(s[0]===this.current[0]&&s[1]===this.current[1]||(this.current=s,this.gl.uniform2f(this.location,s[0],s[1])))}}class Zc extends Qo{constructor(e){super(e),this.current=[0,0,0]}set(e,i,s){this.fetchUniformLocation(e,i)&&(s[0]===this.current[0]&&s[1]===this.current[1]&&s[2]===this.current[2]||(this.current=s,this.gl.uniform3f(this.location,s[0],s[1],s[2])))}}class Rh extends Qo{constructor(e){super(e),this.current=[0,0,0,0]}set(e,i,s){this.fetchUniformLocation(e,i)&&(s[0]===this.current[0]&&s[1]===this.current[1]&&s[2]===this.current[2]&&s[3]===this.current[3]||(this.current=s,this.gl.uniform4f(this.location,s[0],s[1],s[2],s[3])))}}class n_ extends Qo{constructor(e){super(e),this.current=Bi.transparent.toRenderColor(null)}set(e,i,s){this.fetchUniformLocation(e,i)&&(s.r===this.current.r&&s.g===this.current.g&&s.b===this.current.b&&s.a===this.current.a||(this.current=s,this.gl.uniform4f(this.location,s.r,s.g,s.b,s.a)))}}const d0=new Float32Array(16);class Wc extends Qo{constructor(e){super(e),this.current=d0}set(e,i,s){if(this.fetchUniformLocation(e,i)){if(s[12]!==this.current[12]||s[0]!==this.current[0])return this.current=s,void this.gl.uniformMatrix4fv(this.location,!1,s);for(let a=1;a<16;a++)if(s[a]!==this.current[a]){this.current=s,this.gl.uniformMatrix4fv(this.location,!1,s);break}}}}const o_=new Float32Array(9),Ip=new Float32Array(4);class bo extends Qo{constructor(e){super(e),this.current=Ip}set(e,i,s){if(this.fetchUniformLocation(e,i)){for(let a=0;a<4;a++)if(s[a]!==this.current[a]){this.current=s,this.gl.uniformMatrix2fv(this.location,!1,s);break}}}}function Xc(r){return[i_(255*r.r,255*r.g),i_(255*r.b,255*r.a)]}class Yc{constructor(e,i,s,a){this.value=e,this.uniformNames=i.map(u=>`u_${u}`),this.type=s,this.context=a}setUniform(e,i,s,a,u){const h=a.constantOr(this.value);i.set(e,u,h instanceof Bi?h.toRenderColor(this.lutExpression&&this.lutExpression.value==="none"?null:this.context.lut):h)}getBinding(e,i){return this.type==="color"?new n_(e):new Wr(e)}}class Vl{constructor(e,i){this.uniformNames=i.map(s=>`u_${s}`),this.pattern=null,this.patternTransition=null,this.pixelRatio=1}setConstantPatternPositions(e,i){this.pixelRatio=e.pixelRatio||1,this.pattern=e.tl.concat(e.br),this.patternTransition=i?i.tl.concat(i.br):this.pattern}setUniform(e,i,s,a,u){let h=null;u!=="u_pattern"&&u!=="u_dash"||(h=this.pattern),u==="u_pattern_b"&&(h=this.patternTransition),u==="u_pixel_ratio"&&(h=this.pixelRatio),h&&i.set(e,u,h)}getBinding(e,i){return i==="u_pattern"||i==="u_pattern_b"||i==="u_dash"?new Rh(e):new Wr(e)}}class Ss{constructor(e,i,s,a){this.expression=e,this.type=s,this.maxValue=0,this.paintVertexAttributes=i.map(u=>({name:`a_${u}`,type:"Float32",components:s==="color"?2:1,offset:0})),this.paintVertexArray=new a}populatePaintArray(e,i,s,a,u,h,m){const g=this.paintVertexArray.length,x=this.expression.kind==="composite"||this.expression.kind==="source"?this.expression.evaluate(new Yi(0,{brightness:h}),i,{},u,a,m):this.expression.kind==="constant"&&this.expression.value,T=!!this.lutExpression&&(this.lutExpression.kind==="composite"||this.lutExpression.kind==="source"?this.lutExpression.evaluate(new Yi(0,{brightness:h}),i,{},u,a,m):this.lutExpression.value)==="none";this.paintVertexArray.resize(e),this._setPaintValue(g,e,x,T?null:this.context.lut)}updatePaintArray(e,i,s,a,u,h,m){const g=this.expression.kind==="composite"||this.expression.kind==="source"?this.expression.evaluate({zoom:0,brightness:m},s,a,void 0,u):this.expression.kind==="constant"&&this.expression.value,x=!!this.lutExpression&&(this.lutExpression.kind==="composite"||this.lutExpression.kind==="source"?this.lutExpression.evaluate(new Yi(0,{brightness:m}),s,a,void 0,u):this.lutExpression.value)==="none";this._setPaintValue(e,i,g,x?null:this.context.lut)}_setPaintValue(e,i,s,a){if(this.type==="color"){const u=Xc(s.toRenderColor(a));for(let h=e;h<i;h++)this.paintVertexArray.emplace(h,u[0],u[1])}else{for(let u=e;u<i;u++)this.paintVertexArray.emplace(u,s);this.maxValue=Math.max(this.maxValue,Math.abs(s))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.lutExpression&&this.lutExpression.kind!=="constant"&&(this.lutExpression.isStateDependent||!this.lutExpression.isLightConstant)||this.expression.kind!=="constant"&&(this.expression.isStateDependent||!this.expression.isLightConstant)))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class ko{constructor(e,i,s,a,u,h){this.expression=e,this.uniformNames=i.map(m=>`u_${m}_t`),this.type=s,this.useIntegerZoom=a,this.context=u,this.maxValue=0,this.paintVertexAttributes=i.map(m=>({name:`a_${m}`,type:"Float32",components:s==="color"?4:2,offset:0})),this.paintVertexArray=new h}populatePaintArray(e,i,s,a,u,h,m){const g=this.expression.evaluate(new Yi(this.context.zoom,{brightness:h}),i,{},u,a,m),x=this.expression.evaluate(new Yi(this.context.zoom+1,{brightness:h}),i,{},u,a,m),T=!!this.lutExpression&&(this.lutExpression.kind==="composite"||this.lutExpression.kind==="source"?this.lutExpression.evaluate(new Yi(0,{brightness:h}),i,{},u,a,m):this.lutExpression.value)==="none",S=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(S,e,g,x,T?null:this.context.lut)}updatePaintArray(e,i,s,a,u,h,m){const g=this.expression.evaluate({zoom:this.context.zoom,brightness:m},s,a,void 0,u),x=this.expression.evaluate({zoom:this.context.zoom+1,brightness:m},s,a,void 0,u),T=!!this.lutExpression&&(this.lutExpression.kind==="composite"||this.lutExpression.kind==="source"?this.lutExpression.evaluate(new Yi(0,{brightness:m}),s,a,void 0,u):this.lutExpression.value)==="none";this._setPaintValue(e,i,g,x,T?null:this.context.lut)}_setPaintValue(e,i,s,a,u){if(this.type==="color"){const h=Xc(s.toRenderColor(u)),m=Xc(s.toRenderColor(u));for(let g=e;g<i;g++)this.paintVertexArray.emplace(g,h[0],h[1],m[0],m[1])}else{for(let h=e;h<i;h++)this.paintVertexArray.emplace(h,s,a);this.maxValue=Math.max(this.maxValue,Math.abs(s),Math.abs(a))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent||!this.expression.isLightConstant))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(e,i,s,a,u){const h=this.useIntegerZoom?Math.floor(s.zoom):s.zoom,m=Te(this.expression.interpolationFactor(h,this.context.zoom,this.context.zoom+1),0,1);i.set(e,u,m)}getBinding(e,i){return new Wr(e)}}class Oo{constructor(e,i,s,a,u){this.expression=e,this.layerId=u,this.paintVertexAttributes=(s==="array"?h0:u0).members;for(let h=0;h<i.length;++h);this.paintVertexArray=new a,this.paintTransitionVertexArray=new Ts}populatePaintArray(e,i,s,a){const u=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValues(u,e,i.patterns&&i.patterns[this.layerId],s)}updatePaintArray(e,i,s,a,u,h,m){this._setPaintValues(e,i,s.patterns&&s.patterns[this.layerId],h)}_setPaintValues(e,i,s,a){if(!a||!s)return;const u=a[s[0]],h=a[s[1]];if(u){if(u){const{tl:m,br:g,pixelRatio:x}=u;for(let T=e;T<i;T++)this.paintVertexArray.emplace(T,m[0],m[1],g[0],g[1],x)}if(h){this.paintTransitionVertexArray.resize(this.paintVertexArray.length);const{tl:m,br:g,pixelRatio:x}=h;for(let T=e;T<i;T++)this.paintTransitionVertexArray.emplace(T,m[0],m[1],g[0],g[1],x)}}}upload(e){const i=this.expression.isStateDependent||!this.expression.isLightConstant;this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,i)),this.paintTransitionVertexArray&&this.paintTransitionVertexArray.length&&(this.paintTransitionVertexBuffer=e.createVertexBuffer(this.paintTransitionVertexArray,Nl.members,i))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy(),this.paintTransitionVertexBuffer&&this.paintTransitionVertexBuffer.destroy()}}class ra{constructor(e,i,s=()=>!0){this.binders={},this._buffers=[],this.context=i;const a=[];for(const u in e.paint._values){const h=e.paint.get(u);if(u.endsWith("-use-theme")||!s(u)||!(h instanceof zl&&uh(h.property.specification)))continue;const m=t(u,e.type),g=h.value,x=h.property.specification.type,T=!!h.property.useIntegerZoom,S=u==="line-dasharray"||u.endsWith("pattern"),A=e.paint.get(`${u}-use-theme`),D=u==="line-dasharray"&&e.layout.get("line-cap").value.kind!=="constant"||A&&A.value.kind!=="constant";if(g.kind!=="constant"||D)if(g.kind==="source"||D||S){const R=d(u,x,"source");this.binders[u]=S?new Oo(g,m,x,R,e.id):new Ss(g,m,x,R),a.push(`/a_${u}`)}else{const R=d(u,x,"composite");this.binders[u]=new ko(g,m,x,T,i,R),a.push(`/z_${u}`)}else this.binders[u]=S?new Vl(g.value,m):new Yc(g.value,m,x,i),a.push(`/u_${u}`);A&&(this.binders[u].lutExpression=A.value)}this.cacheKey=a.sort().join("")}getMaxValue(e){const i=this.binders[e];return i instanceof Ss||i instanceof ko?i.maxValue:0}populatePaintArrays(e,i,s,a,u,h,m){for(const g in this.binders){const x=this.binders[g];x.context=this.context,(x instanceof Ss||x instanceof ko||x instanceof Oo)&&x.populatePaintArray(e,i,s,a,u,h,m)}}setConstantPatternPositions(e,i){for(const s in this.binders){const a=this.binders[s];a instanceof Vl&&a.setConstantPatternPositions(e,i)}}getPatternTransitionVertexBuffer(e){const i=this.binders[e];return i instanceof Oo?i.paintTransitionVertexBuffer:null}updatePaintArrays(e,i,s,a,u,h,m,g,x){let T=!1;const S=Object.keys(e),A=S.length!==0&&!g,D=A?S:i.uniqueIds;this.context.lut=u.lut;for(const R in this.binders){const O=this.binders[R];if(O.context=this.context,(O instanceof Ss||O instanceof ko||O instanceof Oo)&&O.expression&&O.expression.kind&&O.expression.kind!=="constant"&&(O.expression.isStateDependent===!0||O.expression.isLightConstant===!1)){const $=u.paint.get(R);O.expression=$.value;for(const H of D){const K=e[H.toString()];i.eachPosition(H,(W,F,q)=>{const Y=a.feature(W);O.updatePaintArray(F,q,Y,K,h,m,x)})}if(!A)for(const H of s.uniqueIds){const K=e[H.toString()];s.eachPosition(H,(W,F,q)=>{const Y=a.feature(W);O.updatePaintArray(F,q,Y,K,h,m,x)})}T=!0}}return T}defines(){const e=[];for(const i in this.binders){const s=this.binders[i];(s instanceof Yc||s instanceof Vl)&&e.push(...s.uniformNames.map(a=>`#define HAS_UNIFORM_${a}`))}return e}getBinderAttributes(){const e=[];for(const i in this.binders){const s=this.binders[i];if(s instanceof Ss||s instanceof ko||s instanceof Oo)for(let a=0;a<s.paintVertexAttributes.length;a++)e.push(s.paintVertexAttributes[a].name);if(s instanceof Oo)for(let a=0;a<Nl.members.length;a++)e.push(Nl.members[a].name)}return e}getBinderUniforms(){const e=[];for(const i in this.binders){const s=this.binders[i];if(s instanceof Yc||s instanceof Vl||s instanceof ko)for(const a of s.uniformNames)e.push(a)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e){const i=[];for(const s in this.binders){const a=this.binders[s];if(a instanceof Yc||a instanceof Vl||a instanceof ko)for(const u of a.uniformNames)i.push({name:u,property:s,binding:a.getBinding(e,u)})}return i}setUniforms(e,i,s,a,u){for(const{name:h,property:m,binding:g}of s)this.binders[m].setUniform(e,g,u,a.get(m),h)}updatePaintBuffers(){this._buffers=[];for(const e in this.binders){const i=this.binders[e];(i instanceof Ss||i instanceof ko||i instanceof Oo)&&i.paintVertexBuffer&&this._buffers.push(i.paintVertexBuffer),i instanceof Oo&&i.paintTransitionVertexBuffer&&this._buffers.push(i.paintTransitionVertexBuffer)}}upload(e){for(const i in this.binders){const s=this.binders[i];(s instanceof Ss||s instanceof ko||s instanceof Oo)&&s.upload(e)}this.updatePaintBuffers()}destroy(){for(const e in this.binders){const i=this.binders[e];(i instanceof Ss||i instanceof ko||i instanceof Oo)&&i.destroy()}}}class Za{constructor(e,i,s=()=>!0){this.programConfigurations={};for(const a of e)this.programConfigurations[a.id]=new ra(a,i,s);this.needsUpload=!1,this._featureMap=new jl,this._featureMapWithoutIds=new jl,this._bufferOffset=0,this._idlessCounter=0}populatePaintArrays(e,i,s,a,u,h,m,g){for(const x in this.programConfigurations)this.programConfigurations[x].populatePaintArrays(e,i,a,u,h,m,g);i.id!==void 0?this._featureMap.add(i.id,s,this._bufferOffset,e):(this._featureMapWithoutIds.add(this._idlessCounter,s,this._bufferOffset,e),this._idlessCounter+=1),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,i,s,a,u,h,m){for(const g of s)this.needsUpload=this.programConfigurations[g.id].updatePaintArrays(e,this._featureMap,this._featureMapWithoutIds,i,g,a,u,h,m||0)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const i in this.programConfigurations)this.programConfigurations[i].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}const l={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-occlusion-opacity":["occlusion_opacity"],"icon-occlusion-opacity":["occlusion_opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-emissive-strength":["emissive_strength"],"icon-emissive-strength":["emissive_strength"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"symbol-z-offset":["z_offset"],"line-gap-width":["gapwidth"],"line-pattern":["pattern","pixel_ratio","pattern_b"],"fill-pattern":["pattern","pixel_ratio","pattern_b"],"fill-extrusion-pattern":["pattern","pixel_ratio","pattern_b"],"line-dasharray":["dash"]};function t(r,e){return l[r]||[r.replace(`${e}-`,"").replace(/-/g,"_")]}const n={"line-pattern":{source:Ts,composite:Ts},"fill-pattern":{source:Ts,composite:Ts},"fill-extrusion-pattern":{source:Ts,composite:Ts},"line-dasharray":{source:Eh,composite:Eh}},c={color:{source:qa,composite:Jo},number:{source:kl,composite:qa}};function d(r,e,i){const s=n[r];return s&&s[i]||c[e][i]}Tt(Yc,"ConstantBinder"),Tt(Vl,"PatternConstantBinder"),Tt(Ss,"SourceExpressionBinder"),Tt(Oo,"PatternCompositeBinder"),Tt(ko,"CompositeExpressionBinder"),Tt(ra,"ProgramConfiguration",{omit:["_buffers"]}),Tt(Za,"ProgramConfigurationSet");const f=_t/Math.PI/2,_=5,v=6,b=16383,E=64,C=[E,32,16],P=-f,M=f;function L(r,e,i,s=f){return i=U(i),[r*Math.sin(i)*s,-e*s,r*Math.cos(i)*s]}function j(r,e,i){return L(Math.cos(U(r)),Math.sin(U(r)),e,i)}const N=63710088e-1,G=2*Math.PI*N;class V{constructor(e,i){if(isNaN(e)||isNaN(i))throw new Error(`Invalid LngLat object: (${e}, ${i})`);if(this.lng=+e,this.lat=+i,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new V(Be(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const i=Math.PI/180,s=this.lat*i,a=e.lat*i,u=Math.sin(s)*Math.sin(a)+Math.cos(s)*Math.cos(a)*Math.cos((e.lng-this.lng)*i);return N*Math.acos(Math.min(u,1))}toBounds(e=0){const i=360*e/40075017,s=i/Math.cos(Math.PI/180*this.lat);return new X({lng:this.lng-s,lat:this.lat-i},{lng:this.lng+s,lat:this.lat+i})}toEcef(e){return j(this.lat,this.lng,f+e*f/N)}static convert(e){if(e instanceof V)return e;if(Array.isArray(e)&&(e.length===2||e.length===3))return new V(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&typeof e=="object"&&e!==null)return new V(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}class X{constructor(e,i){if(e)if(i)this.setSouthWest(e).setNorthEast(i);else if(e.length===4){const s=e;this.setSouthWest([s[0],s[1]]).setNorthEast([s[2],s[3]])}else{const s=e;this.setSouthWest(s[0]).setNorthEast(s[1])}}setNorthEast(e){return this._ne=e instanceof V?new V(e.lng,e.lat):V.convert(e),this}setSouthWest(e){return this._sw=e instanceof V?new V(e.lng,e.lat):V.convert(e),this}extend(e){const i=this._sw,s=this._ne;let a,u;if(e instanceof V)a=e,u=e;else{if(!(e instanceof X))return Array.isArray(e)?e.length===4||e.every(Array.isArray)?this.extend(X.convert(e)):this.extend(V.convert(e)):typeof e=="object"&&e!==null&&e.hasOwnProperty("lat")&&(e.hasOwnProperty("lon")||e.hasOwnProperty("lng"))?this.extend(V.convert(e)):this;if(a=e._sw,u=e._ne,!a||!u)return this}return i||s?(i.lng=Math.min(a.lng,i.lng),i.lat=Math.min(a.lat,i.lat),s.lng=Math.max(u.lng,s.lng),s.lat=Math.max(u.lat,s.lat)):(this._sw=new V(a.lng,a.lat),this._ne=new V(u.lng,u.lat)),this}getCenter(){return new V((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new V(this.getWest(),this.getNorth())}getSouthEast(){return new V(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(e){const{lng:i,lat:s}=V.convert(e);let a=this._sw.lng<=i&&i<=this._ne.lng;return this._sw.lng>this._ne.lng&&(a=this._sw.lng>=i&&i>=this._ne.lng),this._sw.lat<=s&&s<=this._ne.lat&&a}static convert(e){if(e)return e instanceof X?e:new X(e)}}const ee=0,re=25.5;function he(r){return G*Math.cos(r*Math.PI/180)}function le(r){return(180+r)/360}function ce(r){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r*Math.PI/360)))/360}function ne(r,e){return r/he(e)}function pe(r){return 360*r-180}function me(r){return 360/Math.PI*Math.atan(Math.exp((180-360*r)*Math.PI/180))-90}function Le(r,e){return r*he(me(e))}const Me=85.051129;function Ze(r){return Math.cos(U(Te(r,-Me,Me)))}function He(r,e){const i=Te(e,ee,re),s=Math.pow(2,i);return Ze(r)*G/(512*s)}function ut(r){return 1/Math.cos(r*Math.PI/180)}function Pe(r,e=0){const i=Math.exp(Math.PI*(1-(r.y+e/_t)/(1<<r.z)*2));return 80150034*i/(i*i+1)/_t/(1<<r.z)}class ke{constructor(e,i,s=0){this.x=+e,this.y=+i,this.z=+s}static fromLngLat(e,i=0){const s=V.convert(e);return new ke(le(s.lng),ce(s.lat),ne(i,s.lat))}toLngLat(){return new V(pe(this.x),me(this.y))}toAltitude(){return Le(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/G*ut(me(this.y))}}function Ie(r,e,i,s,a,u,h,m,g){const x=(e+s)/2,T=(i+a)/2,S=new ft(x,T);m(S),function(A,D,R,O,$,H){const K=R-$,W=O-H;return Math.abs((O-D)*K-(R-A)*W)/Math.hypot(K,W)}(S.x,S.y,u.x,u.y,h.x,h.y)>=g?(Ie(r,e,i,x,T,u,S,m,g),Ie(r,x,T,s,a,S,h,m,g)):r.push(h)}function Ye(r,e,i){let s=r[0],a=s.x,u=s.y;e(s);const h=[s];for(let m=1;m<r.length;m++){const g=r[m],{x,y:T}=g;e(g),Ie(h,a,u,x,T,s,g,e,i),a=x,u=T,s=g}return h}function Ne(r,e,i,s){if(s(e,i)){const a=e.add(i)._mult(.5);Ne(r,e,a,s),Ne(r,a,i,s)}else r.push(i)}function it(r,e){let i=r[0];const s=[i];for(let a=1;a<r.length;a++){const u=r[a];Ne(s,i,u,e),i=u}return s}const We=Math.pow(2,14)-1,rt=-We-1;function nt(r,e){const i=Math.round(r.x*e),s=Math.round(r.y*e);return r.x=Te(i,rt,We),r.y=Te(s,rt,We),(i<r.x||i>r.x+1||s<r.y||s>r.y+1)&&yi("Geometry exceeds allowed extent, reduce your vector tile buffer size"),r}function At(r,e,i){const s=r.loadGeometry(),a=r.extent,u=_t/a;if(e&&i&&i.projection.isReprojectedInTileSpace){const h=1<<e.z,{scale:m,x:g,y:x,projection:T}=i,S=A=>{const D=pe((e.x+A.x/a)/h),R=me((e.y+A.y/a)/h),O=T.project(D,R);A.x=(O.x*m-g)*a,A.y=(O.y*m-x)*a};for(let A=0;A<s.length;A++)if(r.type!==1)s[A]=Ye(s[A],S,1);else{const D=[];for(const R of s[A])R.x<0||R.x>=a||R.y<0||R.y>=a||(S(R),D.push(R));s[A]=D}}for(const h of s)for(const m of h)nt(m,u);return s}function Lt(r,e){return{type:r.type,id:r.id,properties:r.properties,geometry:e?At(r):[]}}function St(r,e,i,s,a){r.emplaceBack(2*e+(s+1)/2,2*i+(a+1)/2)}function kt(r,e,i){r.emplaceBack(e.x,e.y,e.z,i[0]*16384,i[1]*16384,i[2]*16384)}class Ct{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(i=>i.fqid),this.index=e.index,this.hasPattern=!1,this.projection=e.projection,this.layoutVertexArray=new ws,this.indexArray=new _n,this.segments=new Cr,this.programConfigurations=new Za(e.layers,{zoom:e.zoom,lut:e.lut}),this.stateDependentLayerIds=this.layers.filter(i=>i.isStateDependent()).map(i=>i.id)}updateFootprints(e,i){}populate(e,i,s,a){const u=this.layers[0],h=[];let m=null;u.type==="circle"&&(m=u.layout.get("circle-sort-key"));for(const{feature:x,id:T,index:S,sourceLayerIndex:A}of e){const D=this.layers[0]._featureFilter.needGeometry,R=Lt(x,D);if(!this.layers[0]._featureFilter.filter(new Yi(this.zoom),R,s))continue;const O=m?m.evaluate(R,{},s):void 0,$={id:T,properties:x.properties,type:x.type,sourceLayerIndex:A,index:S,geometry:D?R.geometry:At(x,s,a),patterns:{},sortKey:O};h.push($)}m&&h.sort((x,T)=>x.sortKey-T.sortKey);let g=null;a.projection.name==="globe"&&(this.globeExtVertexArray=new Ha,g=a.projection);for(const x of h){const{geometry:T,index:S,sourceLayerIndex:A}=x,D=e[S].feature;this.addFeature(x,T,S,i.availableImages,s,g,i.brightness),i.featureIndex.insert(D,T,S,A,this.index)}}update(e,i,s,a,u,h,m){this.programConfigurations.updatePaintArrays(e,i,u,s,a,h,m)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,l0.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,c0.members))),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(e,i,s,a,u,h,m){for(const g of i)for(const x of g){const T=x.x,S=x.y;if(T<0||T>=_t||S<0||S>=_t)continue;if(h){const R=h.projectTilePoint(T,S,u),O=h.upVector(u,T,S),$=this.globeExtVertexArray;kt($,R,O),kt($,R,O),kt($,R,O),kt($,R,O)}const A=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),D=A.vertexLength;St(this.layoutVertexArray,T,S,-1,-1),St(this.layoutVertexArray,T,S,1,-1),St(this.layoutVertexArray,T,S,1,1),St(this.layoutVertexArray,T,S,-1,1),this.indexArray.emplaceBack(D,D+1,D+2),this.indexArray.emplaceBack(D,D+2,D+3),A.vertexLength+=4,A.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,s,{},a,u,m)}}function Vt(r,e){for(let i=0;i<r.length;i++)if(Ji(e,r[i]))return!0;for(let i=0;i<e.length;i++)if(Ji(r,e[i]))return!0;return!!Gi(r,e)}function Kt(r,e,i){return!!Ji(r,e)||!!ei(e,r,i)}function _i(r,e){if(r.length===1)return Li(e,r[0]);for(let i=0;i<e.length;i++){const s=e[i];for(let a=0;a<s.length;a++)if(Ji(r,s[a]))return!0}for(let i=0;i<r.length;i++)if(Li(e,r[i]))return!0;for(let i=0;i<e.length;i++)if(Gi(r,e[i]))return!0;return!1}function Ki(r,e,i){if(r.length>1){if(Gi(r,e))return!0;for(let s=0;s<e.length;s++)if(ei(e[s],r,i))return!0}for(let s=0;s<r.length;s++)if(ei(r[s],e,i))return!0;return!1}function Gi(r,e){if(r.length===0||e.length===0)return!1;for(let i=0;i<r.length-1;i++){const s=r[i],a=r[i+1];for(let u=0;u<e.length-1;u++)if(vi(s,a,e[u],e[u+1]))return!0}return!1}function vi(r,e,i,s){return sr(r,i,s)!==sr(e,i,s)&&sr(r,e,i)!==sr(r,e,s)}function kr(r,e,i){return(r.x-i.x)*(e.y-i.y)-(r.y-i.y)*(e.x-i.x)}function Ir(r,e,i,s){const a=kr(r,e,s),u=kr(r,e,i);if(Math.sign(a)===Math.sign(u))return;const h=kr(i,s,r),m=h+u-a;return Math.sign(h)!==Math.sign(m)?[h/(h-m),u/(u-a)]:void 0}function ei(r,e,i){const s=i*i;if(e.length===1)return r.distSqr(e[0])<s;for(let a=1;a<e.length;a++)if(Ai(r,e[a-1],e[a])<s)return!0;return!1}function Ai(r,e,i){const s=e.distSqr(i);if(s===0)return r.distSqr(e);const a=((r.x-e.x)*(i.x-e.x)+(r.y-e.y)*(i.y-e.y))/s;return r.distSqr(a<0?e:a>1?i:i.sub(e)._mult(a)._add(e))}function Li(r,e){let i,s,a,u=!1;for(let h=0;h<r.length;h++){i=r[h];for(let m=0,g=i.length-1;m<i.length;g=m++)s=i[m],a=i[g],s.y>e.y!=a.y>e.y&&e.x<(a.x-s.x)*(e.y-s.y)/(a.y-s.y)+s.x&&(u=!u)}return u}function Ji(r,e){let i=!1;for(let s=0,a=r.length-1;s<r.length;a=s++){const u=r[s],h=r[a];u.y>e.y!=h.y>e.y&&e.x<(h.x-u.x)*(e.y-u.y)/(h.y-u.y)+u.x&&(i=!i)}return i}function Kr(r,e,i,s,a){for(const h of r)if(e<=h.x&&i<=h.y&&s>=h.x&&a>=h.y)return!0;const u=[new ft(e,i),new ft(e,a),new ft(s,a),new ft(s,i)];if(r.length>2){for(const h of u)if(Ji(r,h))return!0}for(let h=0;h<r.length-1;h++)if(jr(r[h],r[h+1],u))return!0;return!1}function jr(r,e,i){const s=i[0],a=i[2];if(r.x<s.x&&e.x<s.x||r.x>a.x&&e.x>a.x||r.y<s.y&&e.y<s.y||r.y>a.y&&e.y>a.y)return!1;const u=sr(r,e,i[0]);return u!==sr(r,e,i[1])||u!==sr(r,e,i[2])||u!==sr(r,e,i[3])}function Xr(r,e,i,s,a,u){let h=e.y-r.y,m=r.x-e.x;if(u=u||0){const g=h*h+m*m;if(g===0)return!0;const x=Math.sqrt(g);h/=x,m/=x}return!((i.x-r.x)*h+(i.y-r.y)*m-u<0||(s.x-r.x)*h+(s.y-r.y)*m-u<0||(a.x-r.x)*h+(a.y-r.y)*m-u<0)}function Sr(r,e,i,s,a,u,h){return!(Xr(r,e,s,a,u,h)||Xr(e,i,s,a,u,h)||Xr(i,r,s,a,u,h)||Xr(s,a,r,e,i,h)||Xr(a,u,r,e,i,h)||Xr(u,s,r,e,i,h))}function si(r,e,i){const s=e.paint.get(r).value;return s.kind==="constant"?s.value:i.programConfigurations.get(e.id).getMaxValue(r)}function yr(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Di(r,e,i,s,a){if(!e[0]&&!e[1])return r;const u=ft.convert(e)._mult(a);i==="viewport"&&u._rotate(-s);const h=[];for(let m=0;m<r.length;m++)h.push(r[m].sub(u));return h}function vr(r,e,i,s){const a=ft.convert(r)._mult(s);return e==="viewport"&&a._rotate(-i),a}let Ni,Er;function gn(r,e,i){var s=2*Math.PI*6378137/256/Math.pow(2,i);return[r*s-2*Math.PI*6378137/2,e*s-2*Math.PI*6378137/2]}Tt(Ct,"CircleBucket",{omit:["layers"]});class hr{constructor(e,i,s){this.z=e,this.x=i,this.y=s,this.key=Sn(0,e,e,i,s)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,i){const s=function(u,h,m){var g=gn(256*u,256*(h=Math.pow(2,m)-h-1),m),x=gn(256*(u+1),256*(h+1),m);return g[0]+","+g[1]+","+x[0]+","+x[1]}(this.x,this.y,this.z),a=function(u,h,m){let g,x="";for(let T=u;T>0;T--)g=1<<T-1,x+=(h&g?1:0)+(m&g?2:0);return x}(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(i==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",a).replace("{bbox-epsg-3857}",s)}toString(){return`${this.z}/${this.x}/${this.y}`}}class bn{constructor(e,i){this.wrap=e,this.canonical=i,this.key=Sn(e,i.z,i.z,i.x,i.y)}}class Zr{constructor(e,i,s,a,u){this.overscaledZ=e,this.wrap=i,this.canonical=new hr(s,+a,+u),this.key=i===0&&e===s?this.canonical.key:Sn(i,e,s,a,u)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){const i=this.canonical.z-e;return e>this.canonical.z?new Zr(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Zr(e,this.wrap,e,this.canonical.x>>i,this.canonical.y>>i)}calculateScaledKey(e,i=!0){if(this.overscaledZ===e&&i)return this.key;if(e>this.canonical.z)return Sn(this.wrap*+i,e,this.canonical.z,this.canonical.x,this.canonical.y);{const s=this.canonical.z-e;return Sn(this.wrap*+i,e,e,this.canonical.x>>s,this.canonical.y>>s)}}isChildOf(e){if(e.wrap!==this.wrap)return!1;const i=this.canonical.z-e.canonical.z;return e.overscaledZ===0||e.overscaledZ<this.overscaledZ&&e.canonical.z<this.canonical.z&&e.canonical.x===this.canonical.x>>i&&e.canonical.y===this.canonical.y>>i}children(e){if(this.overscaledZ>=e)return[new Zr(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const i=this.canonical.z+1,s=2*this.canonical.x,a=2*this.canonical.y;return[new Zr(i,this.wrap,i,s,a),new Zr(i,this.wrap,i,s+1,a),new Zr(i,this.wrap,i,s,a+1),new Zr(i,this.wrap,i,s+1,a+1)]}isLessThan(e){return this.wrap<e.wrap||!(this.wrap>e.wrap)&&(this.overscaledZ<e.overscaledZ||!(this.overscaledZ>e.overscaledZ)&&(this.canonical.x<e.canonical.x||!(this.canonical.x>e.canonical.x)&&this.canonical.y<e.canonical.y))}wrapped(){return new Zr(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(e){return new Zr(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new bn(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}}function Sn(r,e,i,s,a){const u=1<<Math.min(i,22);let h=u*(a%u)+s%u;return r&&i<22&&(h+=u*u*((r<0?-2*r-1:2*r)%(1<<2*(22-i)))),16*(32*h+i)+(e-i)}const Fo=[r=>{let e=r.canonical.x-1,i=r.wrap;return e<0&&(e=(1<<r.canonical.z)-1,i--),new Zr(r.overscaledZ,i,r.canonical.z,e,r.canonical.y)},r=>{let e=r.canonical.x+1,i=r.wrap;return e===1<<r.canonical.z&&(e=0,i++),new Zr(r.overscaledZ,i,r.canonical.z,e,r.canonical.y)},r=>new Zr(r.overscaledZ,r.wrap,r.canonical.z,r.canonical.x,(r.canonical.y===0?1<<r.canonical.z:r.canonical.y)-1),r=>new Zr(r.overscaledZ,r.wrap,r.canonical.z,r.canonical.x,r.canonical.y===(1<<r.canonical.z)-1?0:r.canonical.y+1)];Tt(hr,"CanonicalTileID"),Tt(Zr,"OverscaledTileID",{omit:["projMatrix","expandedProjMatrix"]});const Es=Oi([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:ro}=Es,wo=Oi([{name:"a_pos_3",components:3,type:"Int16"}]);var es=Oi([{name:"a_pos",type:"Int16",components:2}]);class ts{constructor(e,i){this.pos=e,this.dir=i}intersectsPlane(e,i,s){const a=Ar(i,this.dir);if(Math.abs(a)<1e-6)return!1;const u=((e[0]-this.pos[0])*i[0]+(e[1]-this.pos[1])*i[1])/a;return s[0]=this.pos[0]+this.dir[0]*u,s[1]=this.pos[1]+this.dir[1]*u,!0}}class Bo{constructor(e,i){this.pos=e,this.dir=i}intersectsPlane(e,i,s){const a=Xi(i,this.dir);if(Math.abs(a)<1e-6)return!1;const u=((e[0]-this.pos[0])*i[0]+(e[1]-this.pos[1])*i[1]+(e[2]-this.pos[2])*i[2])/a;return s[0]=this.pos[0]+this.dir[0]*u,s[1]=this.pos[1]+this.dir[1]*u,s[2]=this.pos[2]+this.dir[2]*u,!0}closestPointOnSphere(e,i,s){if(function(D,R){var O=D[0],$=D[1],H=D[2],K=R[0],W=R[1],F=R[2];return Math.abs(O-K)<=J*Math.max(1,Math.abs(O),Math.abs(K))&&Math.abs($-W)<=J*Math.max(1,Math.abs($),Math.abs(W))&&Math.abs(H-F)<=J*Math.max(1,Math.abs(H),Math.abs(F))}(this.pos,e)||i===0)return s[0]=s[1]=s[2]=0,!1;const[a,u,h]=this.dir,m=this.pos[0]-e[0],g=this.pos[1]-e[1],x=this.pos[2]-e[2],T=a*a+u*u+h*h,S=2*(m*a+g*u+x*h),A=S*S-4*T*(m*m+g*g+x*x-i*i);if(A<0){const D=Math.max(-S/2,0),R=m+a*D,O=g+u*D,$=x+h*D,H=Math.hypot(R,O,$);return s[0]=R*i/H,s[1]=O*i/H,s[2]=$*i/H,!1}{const D=(-S-Math.sqrt(A))/(2*T);if(D<0){const R=Math.hypot(m,g,x);return s[0]=m*i/R,s[1]=g*i/R,s[2]=x*i/R,!1}return s[0]=m+a*D,s[1]=g+u*D,s[2]=x+h*D,!0}}}class Ul{constructor(e,i,s,a,u){this.TL=e,this.TR=i,this.BR=s,this.BL=a,this.horizon=u}static fromInvProjectionMatrix(e,i,s){const a=[-1,1,1],u=[1,1,1],h=[1,-1,1],m=[-1,-1,1],g=gr(a,a,e),x=gr(u,u,e),T=gr(h,h,e),S=gr(m,m,e);return new Ul(g,x,T,S,i/s)}}function Wa(r,e,i){let s=1/0,a=-1/0;const u=[];for(const h of r){Ti(u,h,e);const m=Xi(u,i);s=Math.min(s,m),a=Math.max(a,m)}return[s,a]}function zh(r,e){let i=!0;for(let s=0;s<r.planes.length;s++){const a=r.planes[s];let u=0;for(let h=0;h<e.length;h++)u+=Xi(a,e[h])+a[3]>=0;if(u===0)return 0;u!==e.length&&(i=!1)}return i?2:1}function Lh(r,e){for(const i of r.projections){const s=Wa(e,r.points[0],i.axis);if(i.projection[1]<s[0]||i.projection[0]>s[1])return 0}return 1}function kh(r,e){let i=0;const s=[0,0,0,0];for(let h=0;h<r.length;h++)s[0]=r[h][0],s[1]=r[h][1],s[2]=r[h][2],s[3]=1,(a=s)[0]*(u=e)[0]+a[1]*u[1]+a[2]*u[2]+a[3]*u[3]>=0&&i++;var a,u;return i}class Kc{constructor(e,i){this.points=e||new Array(8).fill([0,0,0]),this.planes=i||new Array(6).fill([0,0,0,0]),this.bounds=xr.fromPoints(this.points),this.projections=[],this.frustumEdges=[Ti([],this.points[2],this.points[3]),Ti([],this.points[0],this.points[3]),Ti([],this.points[4],this.points[0]),Ti([],this.points[5],this.points[1]),Ti([],this.points[6],this.points[2]),Ti([],this.points[7],this.points[3])];for(const s of this.frustumEdges){const a=[0,-s[2],s[1]],u=[s[2],0,-s[0]];this.projections.push({axis:a,projection:Wa(this.points,this.points[0],a)}),this.projections.push({axis:u,projection:Wa(this.points,this.points[0],u)})}}static fromInvProjectionMatrix(e,i,s,a){const u=Math.pow(2,s),h=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(x=>{const T=Dr([],x,e),S=1/T[3]/i*u;return(A=T)[0]=(D=T)[0]*(R=[S,S,a?1/T[3]:S,S])[0],A[1]=D[1]*R[1],A[2]=D[2]*R[2],A[3]=D[3]*R[3],A;var A,D,R}),m=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(x=>{const T=Ui([],Lr([],Ti([],h[x[0]],h[x[1]]),Ti([],h[x[2]],h[x[1]]))),S=-Xi(T,h[x[1]]);return T.concat(S)}),g=[];for(let x=0;x<h.length;x++)g.push([h[x][0],h[x][1],h[x][2]]);return new Kc(g,m)}intersectsPrecise(e,i,s){for(let a=0;a<i.length;a++)if(!kh(e,i[a]))return 0;for(let a=0;a<this.planes.length;a++)if(!kh(e,this.planes[a]))return 0;for(const a of s)for(const u of this.frustumEdges){const h=Lr([],a,u),m=gi(h);if(m===0)continue;Ei(h,h,1/m);const g=Wa(this.points,this.points[0],h),x=Wa(e,this.points[0],h);if(g[0]>x[1]||x[0]>g[1])return 0}return 1}containsPoint(e){for(const i of this.planes){const s=i[3];if(Xi([i[0],i[1],i[2]],e)+s<0)return!1}return!0}}class xr{static fromPoints(e){const i=[1/0,1/0,1/0],s=[-1/0,-1/0,-1/0];for(const a of e)Wi(i,i,a),or(s,s,a);return new xr(i,s)}static fromTileIdAndHeight(e,i,s){const a=1<<e.canonical.z,u=e.canonical.x,h=e.canonical.y;return new xr([u/a,h/a,i],[(u+1)/a,(h+1)/a,s])}static applyTransform(e,i){const s=e.getCorners();for(let a=0;a<s.length;++a)gr(s[a],s[a],i);return xr.fromPoints(s)}static applyTransformFast(e,i){const s=[i[12],i[13],i[14]],a=[...s];for(let u=0;u<3;u++)for(let h=0;h<3;h++){const m=i[4*h+u],g=m*e.min[h],x=m*e.max[h];s[u]+=Math.min(g,x),a[u]+=Math.max(g,x)}return new xr(s,a)}static projectAabbCorners(e,i){const s=e.getCorners();for(let a=0;a<s.length;++a)gr(s[a],s[a],i);return s}constructor(e,i){this.min=e,this.max=i,this.center=Ei([],Yt([],this.min,this.max),.5)}quadrant(e){const i=[e%2==0,e<2],s=Mi(this.min),a=Mi(this.max);for(let u=0;u<i.length;u++)s[u]=i[u]?this.min[u]:this.center[u],a[u]=i[u]?this.center[u]:this.max[u];return a[2]=this.max[2],new xr(s,a)}distanceX(e){return Math.max(Math.min(this.max[0],e[0]),this.min[0])-e[0]}distanceY(e){return Math.max(Math.min(this.max[1],e[1]),this.min[1])-e[1]}distanceZ(e){return Math.max(Math.min(this.max[2],e[2]),this.min[2])-e[2]}getCorners(){const e=this.min,i=this.max;return[[e[0],e[1],e[2]],[i[0],e[1],e[2]],[i[0],i[1],e[2]],[e[0],i[1],e[2]],[e[0],e[1],i[2]],[i[0],e[1],i[2]],[i[0],i[1],i[2]],[e[0],i[1],i[2]]]}intersects(e){return this.intersectsAabb(e.bounds)?zh(e,this.getCorners()):0}intersectsFlat(e){return this.intersectsAabb(e.bounds)?zh(e,[[this.min[0],this.min[1],0],[this.max[0],this.min[1],0],[this.max[0],this.max[1],0],[this.min[0],this.max[1],0]]):0}intersectsPrecise(e,i){return i||this.intersects(e)?Lh(e,this.getCorners()):0}intersectsPreciseFlat(e,i){return i||this.intersectsFlat(e)?Lh(e,[[this.min[0],this.min[1],0],[this.max[0],this.min[1],0],[this.max[0],this.max[1],0],[this.min[0],this.max[1],0]]):0}intersectsAabb(e){for(let i=0;i<3;++i)if(this.min[i]>e.max[i]||e.min[i]>this.max[i])return!1;return!0}intersectsAabbXY(e){return!(this.min[0]>e.max[0]||e.min[0]>this.max[0]||this.min[1]>e.max[1]||e.min[1]>this.max[1])}encapsulate(e){for(let i=0;i<3;i++)this.min[i]=Math.min(this.min[i],e.min[i]),this.max[i]=Math.max(this.max[i],e.max[i])}encapsulatePoint(e){for(let i=0;i<3;i++)this.min[i]=Math.min(this.min[i],e[i]),this.max[i]=Math.max(this.max[i],e[i])}closestPoint(e){return[Math.max(Math.min(this.max[0],e[0]),this.min[0]),Math.max(Math.min(this.max[1],e[1]),this.min[1]),Math.max(Math.min(this.max[2],e[2]),this.min[2])]}}function $l(r){return r*f/N}Tt(xr,"Aabb");const Cp=[new xr([P,P,P],[M,M,M]),new xr([P,P,P],[0,0,M]),new xr([0,P,P],[M,0,M]),new xr([P,0,P],[0,M,M]),new xr([0,0,P],[M,M,M])];function dw(r,e,i,s=!0){const a=Ei([],r._camera.position,r.worldSize),u=[e,i,1,1];Dr(u,u,r.pixelMatrixInverse),In(u,u,1/u[3]);const h=Ui([],Ti([],u,a)),m=r.globeMatrix,g=[m[12],m[13],m[14]],x=Ti([],g,a),T=gi(x),S=Ui([],x),A=r.worldSize/(2*Math.PI),D=Xi(S,h),R=Math.asin(A/T);if(R<Math.acos(D)){if(!s)return null;const xe=[],Ce=[];Ei(xe,h,T/D),Ui(Ce,Ti(Ce,xe,x)),Ui(h,Yt(h,x,Ei(h,Ce,Math.tan(R)*T)))}const O=[];new Bo(a,h).closestPointOnSphere(g,A,O);const $=Ui([],mn(m,0)),H=Ui([],mn(m,1)),K=Ui([],mn(m,2)),W=Xi($,O),F=Xi(H,O),q=Xi(K,O),Y=Z(Math.asin(-F/A));let te=Z(Math.atan2(W,q));te=r.center.lng+function(xe,Ce){const Ue=(Ce-xe+180)%360-180;return Ue<-180?Ue+360:Ue}(r.center.lng,te);const de=le(te),ge=Te(ce(Y),0,1);return new ke(de,ge)}class WL{constructor(e,i,s){this.a=Ti([],e,s),this.b=Ti([],i,s),this.center=s;const a=Ui([],this.a),u=Ui([],this.b);this.angle=Math.acos(Xi(a,u))}}function p0(r,e){if(r.angle===0)return null;let i;return i=r.a[e]===0?1/r.angle*.5*Math.PI:1/r.angle*Math.atan(r.b[e]/r.a[e]/Math.sin(r.angle)-1/Math.tan(r.angle)),i<0||i>1?null:function(s,a,u,h){const m=Math.sin(u);return s*(Math.sin((1-h)*u)/m)+a*(Math.sin(h*u)/m)}(r.a[e],r.b[e],r.angle,Te(i,0,1))+r.center[e]}function na(r){if(r.z<=1)return Cp[r.z+2*r.y+r.x];const e=f0(s_(r));return xr.fromPoints(e)}function Xa(r,e,i){return Ei(r,r,1-i),$r(r,r,e,i)}function pw(r,e,i){for(const s of r)gr(s,s,e),Ei(s,s,i)}function fw(r,e,i,s){const a=e/r.worldSize,u=r.globeMatrix;if(i.z<=1){const ge=na(i).getCorners();return pw(ge,u,a),xr.fromPoints(ge)}const h=s_(i,s),m=f0(h,f+$l(r._tileCoverLift));pw(m,u,a);const g=Number.MAX_VALUE,x=[-g,-g,-g],T=[g,g,g];if(h.contains(r.center)){for(const Ce of m)Wi(T,T,Ce),or(x,x,Ce);x[2]=0;const ge=r.point,xe=[ge.x*a,ge.y*a,0];return Wi(T,T,xe),or(x,x,xe),new xr(T,x)}if(r._tileCoverLift>0){for(const ge of m)Wi(T,T,ge),or(x,x,ge);return new xr(T,x)}const S=[u[12]*a,u[13]*a,u[14]*a],A=h.getCenter(),D=Te(r.center.lat,-Me,Me),R=Te(A.lat,-Me,Me),O=le(r.center.lng),$=ce(D);let H=O-le(A.lng);const K=$-ce(R);H>.5?H-=1:H<-.5&&(H+=1);let W=0;Math.abs(H)>Math.abs(K)?W=H>=0?1:3:(W=K>=0?0:2,$r(S,S,[u[4]*a,u[5]*a,u[6]*a],-Math.sin(U(K>=0?h.getSouth():h.getNorth()))*f));const F=m[W],q=m[(W+1)%4],Y=new WL(F,q,S),te=[p0(Y,0)||F[0],p0(Y,1)||F[1],p0(Y,2)||F[2]],de=Gl(r.zoom);if(de>0){const ge=function({x:Ce,y:Ue,z:et},Xe,Qe,ot,je){const Je=1/(1<<et);let Fe=Ce*Je,Ve=Fe+Je,lt=Ue*Je,ct=lt+Je,zt=0;const Et=(Fe+Ve)/2-ot;return Et>.5?zt=-1:Et<-.5&&(zt=1),Fe=((Fe+zt)*Xe-(ot*=Xe))*Qe+ot,Ve=((Ve+zt)*Xe-ot)*Qe+ot,lt=(lt*Xe-(je*=Xe))*Qe+je,ct=(ct*Xe-je)*Qe+je,[[Fe,ct,0],[Ve,ct,0],[Ve,lt,0],[Fe,lt,0]]}(i,e,r._pixelsPerMercatorPixel,O,$);for(let Ce=0;Ce<m.length;Ce++)Xa(m[Ce],ge[Ce],de);const xe=Yt([],ge[W],ge[(W+1)%4]);Ei(xe,xe,.5),Xa(te,xe,de)}for(const ge of m)Wi(T,T,ge),or(x,x,ge);return T[2]=Math.min(F[2],q[2]),Wi(T,T,te),or(x,x,te),new xr(T,x)}function s_({x:r,y:e,z:i},s=!1){const a=1/(1<<i),u=new V(pe(r*a),e===(1<<i)-1&&s?-90:me((e+1)*a)),h=new V(pe((r+1)*a),e===0&&s?90:me(e*a));return new X(u,h)}function f0(r,e=f){const i=U(r.getNorth()),s=U(r.getSouth()),a=Math.cos(i),u=Math.cos(s),h=Math.sin(i),m=Math.sin(s),g=r.getWest(),x=r.getEast();return[L(u,m,g,e),L(u,m,x,e),L(a,h,x,e),L(a,h,g,e)]}function Mp(r,e,i,s){const a=1<<i.z,u=(r/_t+i.x)/a;return j(me((e/_t+i.y)/a),pe(u),s)}function a_({min:r,max:e}){return b/Math.max(e[0]-r[0],e[1]-r[1],e[2]-r[2])}const mw=new Float64Array(16);function l_(r){const e=a_(r),i=Wt(mw,[e,e,e]);return tt(i,i,po([],r.min))}function m0(r){const e=(s=r.min,(i=mw)[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=s[0],i[13]=s[1],i[14]=s[2],i[15]=1,i);var i,s;const a=1/a_(r);return at(e,e,[a,a,a])}function _0(r){const e=_t/(2*Math.PI);return r/(2*Math.PI)/e}function _w(r,e){return _t/(512*Math.pow(2,r))*a_(na(e))}function gw(r,e,i,s,a){const u=_0(i),h=[r,e,-i/(2*Math.PI)],m=ve(new Float64Array(16));return tt(m,m,h),at(m,m,[u,u,u]),Ke(m,m,U(-a)),pt(m,m,U(-s)),m}function Gl(r){return Ae(_,v,r)}function yw(r,e){const i=j(e.lat,e.lng),s=function(R){const O=j(R._center.lat,R._center.lng);let $=Lr([],Bt(0,1,0),O);const H=Ot([],-R.angle,O);$=gr($,$,H),Ot(H,-R._pitch,$);const K=Ui([],O);return Ei(K,K,$l(R.cameraToCenterDistance/R.pixelsPerMeter)),gr(K,K,H),Yt([],O,K)}(r);return h=(a=Gt([],s,i))[0],m=a[1],g=a[2],x=(u=i)[0],T=u[1],S=u[2],D=(A=Math.sqrt(h*h+m*m+g*g)*Math.sqrt(x*x+T*T+S*S))&&Xi(a,u)/A,Math.acos(Math.min(Math.max(D,-1),1));var a,u,h,m,g,x,T,S,A,D}function g0(r,e){return yw(r,e)>Math.PI/2*1.01}const vw=U(85),XL=Math.cos(vw),YL=Math.sin(vw),KL=De(),xw=r=>{const e=[];return r.paint.get("circle-pitch-alignment")==="map"&&e.push("PITCH_WITH_MAP"),r.paint.get("circle-pitch-scale")==="map"&&e.push("SCALE_WITH_MAP"),e};function bw(r,e,i,s,a,u,h,m,g){if(u&&r.queryGeometry.isAboveHorizon)return!1;u&&(g*=r.pixelToTileUnitsFactor);const x=r.tileID.canonical,T=i.projection.upVectorScale(x,i.center.lat,i.worldSize).metersToTile;for(const S of e)for(const A of S){const D=A.add(m),R=a&&i.elevation?i.elevation.exaggeration()*a.getElevationAt(D.x,D.y,!0):0,O=i.projection.projectTilePoint(D.x,D.y,x);if(R>0){const W=i.projection.upVector(x,D.x,D.y);O.x+=W[0]*T*R,O.y+=W[1]*T*R,O.z+=W[2]*T*R}const $=u?D:JL(O.x,O.y,O.z,s),H=u?r.tilespaceRays.map(W=>e3(W,R)):r.queryGeometry.screenGeometry,K=Dr([],[O.x,O.y,O.z,1],s);if(!h&&u?g*=K[3]/i.cameraToCenterDistance:h&&!u&&(g*=i.cameraToCenterDistance/K[3]),u){const W=me((A.y/_t+x.y)/(1<<x.z));g/=i.projection.pixelsPerMeter(W,1)/ne(1,W)}if(Kt(H,$,g))return!0}return!1}function JL(r,e,i,s){const a=Dr([],[r,e,i,1],s);return new ft(a[0]/a[3],a[1]/a[3])}const ww=Bt(0,0,0),QL=Bt(0,0,1);function e3(r,e){const i=ni();return ww[2]=e,r.intersectsPlane(ww,QL,i),new ft(i[0],i[1])}class Tw extends Ct{}let Sw,Ew,Aw,Iw;function Cw(r,{width:e,height:i},s,a){if(a){if(a instanceof Uint8ClampedArray)a=new Uint8Array(a.buffer);else if(a.length!==e*i*s)throw new RangeError("mismatched image size")}else a=new Uint8Array(e*i*s);return r.width=e,r.height=i,r.data=a,r}function Mw(r,e,i){const{width:s,height:a}=e;s===r.width&&a===r.height||(y0(r,e,{x:0,y:0},{x:0,y:0},{width:Math.min(r.width,s),height:Math.min(r.height,a)},i,null),r.width=s,r.height=a,r.data=e.data)}function y0(r,e,i,s,a,u,h,m){if(a.width===0||a.height===0)return e;if(a.width>r.width||a.height>r.height||i.x>r.width-a.width||i.y>r.height-a.height)throw new RangeError("out of range source coordinates for image copy");if(a.width>e.width||a.height>e.height||s.x>e.width-a.width||s.y>e.height-a.height)throw new RangeError("out of range destination coordinates for image copy");const g=r.data,x=e.data,T=u===4&&m;for(let S=0;S<a.height;S++){const A=((i.y+S)*r.width+i.x)*u,D=((s.y+S)*e.width+s.x)*u;if(T)for(let R=0;R<a.width;R++){const O=A+R*u+3,$=D+R*u;x[$+0]=255,x[$+1]=255,x[$+2]=255,x[$+3]=g[O]}else if(h)for(let R=0;R<a.width;R++){const O=A+R*u,$=D+R*u,H=g[O+3],K=new Bi(g[O+0]/255*H,g[O+1]/255*H,g[O+2]/255*H,H).toRenderColor(h).toArray();x[$+0]=K[0],x[$+1]=K[1],x[$+2]=K[2],x[$+3]=K[3]}else for(let R=0;R<a.width*u;R++)x[D+R]=g[A+R]}return e}Tt(Tw,"HeatmapBucket",{omit:["layers"]});class Hl{constructor(e,i){Cw(this,e,1,i)}resize(e){Mw(this,new Hl(e),1)}clone(){return new Hl({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,i,s,a,u){y0(e,i,s,a,u,1,null)}}class Mn{constructor(e,i){Cw(this,e,4,i)}resize(e){Mw(this,new Mn(e),4)}replace(e,i){i?this.data.set(e):this.data=e instanceof Uint8ClampedArray?new Uint8Array(e.buffer):e}clone(){return new Mn({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,i,s,a,u,h,m){y0(e,i,s,a,u,4,h,m)}}class Pw{constructor(e,i){this.width=e.width,this.height=e.height,this.data=i instanceof Uint8Array?new Float32Array(i.buffer):i}}function Pp(r){const e={},i=r.resolution||256,s=r.clips?r.clips.length:1,a=r.image||new Mn({width:i,height:s}),u=(h,m,g)=>{e[r.evaluationKey]=g;const x=r.expression.evaluate(e);x&&(a.data[h+m+0]=Math.floor(255*x.r/x.a),a.data[h+m+1]=Math.floor(255*x.g/x.a),a.data[h+m+2]=Math.floor(255*x.b/x.a),a.data[h+m+3]=Math.floor(255*x.a))};if(r.clips)for(let h=0,m=0;h<s;++h,m+=4*i)for(let g=0,x=0;g<i;g++,x+=4){const T=g/(i-1),{start:S,end:A}=r.clips[h];u(m,x,S*(1-T)+A*T)}else for(let h=0,m=0;h<i;h++,m+=4)u(0,m,h/(i-1));return a}Tt(Hl,"AlphaImage"),Tt(Mn,"RGBAImage");const t3=Oi([{name:"a_pos",components:2,type:"Int16"}],4),i3=Oi([{name:"a_road_z_offset",components:1,type:"Float32"}],4),r3=Oi([{name:"a_pos",components:2,type:"Int16"},{name:"a_height",components:1,type:"Float32"}],4),n3=Oi([{name:"a_pos_normal_3",components:3,type:"Int16"}],4);function Dp(r,e,i=2){const s=e&&e.length,a=s?e[0]*i:r.length;let u=Dw(r,0,a,i,!0);const h=[];if(!u||u.next===u.prev)return h;let m,g,x;if(s&&(u=function(T,S,A,D){const R=[];for(let O=0,$=S.length;O<$;O++){const H=Dw(T,S[O]*D,O<$-1?S[O+1]*D:T.length,D,!1);H===H.next&&(H.steiner=!0),R.push(d3(H))}R.sort(c3);for(let O=0;O<R.length;O++)A=u3(R[O],A);return A}(r,e,u,i)),r.length>80*i){m=1/0,g=1/0;let T=-1/0,S=-1/0;for(let A=i;A<a;A+=i){const D=r[A],R=r[A+1];D<m&&(m=D),R<g&&(g=R),D>T&&(T=D),R>S&&(S=R)}x=Math.max(T-m,S-g),x=x!==0?32767/x:0}return Rp(u,h,i,m,g,x,0),h}function Dw(r,e,i,s,a){let u;if(a===function(h,m,g,x){let T=0;for(let S=m,A=g-x;S<g;S+=x)T+=(h[A]-h[S])*(h[S+1]+h[A+1]),A=S;return T}(r,e,i,s)>0)for(let h=e;h<i;h+=s)u=kw(h/s|0,r[h],r[h+1],u);else for(let h=i-s;h>=e;h-=s)u=kw(h/s|0,r[h],r[h+1],u);return u&&Oh(u,u.next)&&(kp(u),u=u.next),u}function Jc(r,e){if(!r)return r;e||(e=r);let i,s=r;do if(i=!1,s.steiner||!Oh(s,s.next)&&yn(s.prev,s,s.next)!==0)s=s.next;else{if(kp(s),s=e=s.prev,s===s.next)break;i=!0}while(i||s!==e);return e}function Rp(r,e,i,s,a,u,h){if(!r)return;!h&&u&&function(g,x,T,S){let A=g;do A.z===0&&(A.z=v0(A.x,A.y,x,T,S)),A.prevZ=A.prev,A.nextZ=A.next,A=A.next;while(A!==g);A.prevZ.nextZ=null,A.prevZ=null,function(D){let R,O=1;do{let $,H=D;D=null;let K=null;for(R=0;H;){R++;let W=H,F=0;for(let Y=0;Y<O&&(F++,W=W.nextZ,W);Y++);let q=O;for(;F>0||q>0&&W;)F!==0&&(q===0||!W||H.z<=W.z)?($=H,H=H.nextZ,F--):($=W,W=W.nextZ,q--),K?K.nextZ=$:D=$,$.prevZ=K,K=$;H=W}K.nextZ=null,O*=2}while(R>1)}(A)}(r,s,a,u);let m=r;for(;r.prev!==r.next;){const g=r.prev,x=r.next;if(u?s3(r,s,a,u):o3(r))e.push(g.i,r.i,x.i),kp(r),r=x.next,m=x.next;else if((r=x)===m){h?h===1?Rp(r=a3(Jc(r),e),e,i,s,a,u,2):h===2&&l3(r,e,i,s,a,u):Rp(Jc(r),e,i,s,a,u,1);break}}}function o3(r){const e=r.prev,i=r,s=r.next;if(yn(e,i,s)>=0)return!1;const a=e.x,u=i.x,h=s.x,m=e.y,g=i.y,x=s.y,T=Math.min(a,u,h),S=Math.min(m,g,x),A=Math.max(a,u,h),D=Math.max(m,g,x);let R=s.next;for(;R!==e;){if(R.x>=T&&R.x<=A&&R.y>=S&&R.y<=D&&zp(a,m,u,g,h,x,R.x,R.y)&&yn(R.prev,R,R.next)>=0)return!1;R=R.next}return!0}function s3(r,e,i,s){const a=r.prev,u=r,h=r.next;if(yn(a,u,h)>=0)return!1;const m=a.x,g=u.x,x=h.x,T=a.y,S=u.y,A=h.y,D=Math.min(m,g,x),R=Math.min(T,S,A),O=Math.max(m,g,x),$=Math.max(T,S,A),H=v0(D,R,e,i,s),K=v0(O,$,e,i,s);let W=r.prevZ,F=r.nextZ;for(;W&&W.z>=H&&F&&F.z<=K;){if(W.x>=D&&W.x<=O&&W.y>=R&&W.y<=$&&W!==a&&W!==h&&zp(m,T,g,S,x,A,W.x,W.y)&&yn(W.prev,W,W.next)>=0||(W=W.prevZ,F.x>=D&&F.x<=O&&F.y>=R&&F.y<=$&&F!==a&&F!==h&&zp(m,T,g,S,x,A,F.x,F.y)&&yn(F.prev,F,F.next)>=0))return!1;F=F.nextZ}for(;W&&W.z>=H;){if(W.x>=D&&W.x<=O&&W.y>=R&&W.y<=$&&W!==a&&W!==h&&zp(m,T,g,S,x,A,W.x,W.y)&&yn(W.prev,W,W.next)>=0)return!1;W=W.prevZ}for(;F&&F.z<=K;){if(F.x>=D&&F.x<=O&&F.y>=R&&F.y<=$&&F!==a&&F!==h&&zp(m,T,g,S,x,A,F.x,F.y)&&yn(F.prev,F,F.next)>=0)return!1;F=F.nextZ}return!0}function a3(r,e){let i=r;do{const s=i.prev,a=i.next.next;!Oh(s,a)&&zw(s,i,i.next,a)&&Lp(s,a)&&Lp(a,s)&&(e.push(s.i,i.i,a.i),kp(i),kp(i.next),i=r=a),i=i.next}while(i!==r);return Jc(i)}function l3(r,e,i,s,a,u){let h=r;do{let m=h.next.next;for(;m!==h.prev;){if(h.i!==m.i&&p3(h,m)){let g=Lw(h,m);return h=Jc(h,h.next),g=Jc(g,g.next),Rp(h,e,i,s,a,u,0),void Rp(g,e,i,s,a,u,0)}m=m.next}h=h.next}while(h!==r)}function c3(r,e){let i=r.x-e.x;return i===0&&(i=r.y-e.y,i===0)&&(i=(r.next.y-r.y)/(r.next.x-r.x)-(e.next.y-e.y)/(e.next.x-e.x)),i}function u3(r,e){const i=function(a,u){let h=u;const m=a.x,g=a.y;let x,T=-1/0;if(Oh(a,h))return h;do{if(Oh(a,h.next))return h.next;if(g<=h.y&&g>=h.next.y&&h.next.y!==h.y){const O=h.x+(g-h.y)*(h.next.x-h.x)/(h.next.y-h.y);if(O<=m&&O>T&&(T=O,x=h.x<h.next.x?h:h.next,O===m))return x}h=h.next}while(h!==u);if(!x)return null;const S=x,A=x.x,D=x.y;let R=1/0;h=x;do{if(m>=h.x&&h.x>=A&&m!==h.x&&Rw(g<D?m:T,g,A,D,g<D?T:m,g,h.x,h.y)){const O=Math.abs(g-h.y)/(m-h.x);Lp(h,a)&&(O<R||O===R&&(h.x>x.x||h.x===x.x&&h3(x,h)))&&(x=h,R=O)}h=h.next}while(h!==S);return x}(r,e);if(!i)return e;const s=Lw(i,r);return Jc(s,s.next),Jc(i,i.next)}function h3(r,e){return yn(r.prev,r,e.prev)<0&&yn(e.next,r,r.next)<0}function v0(r,e,i,s,a){return(r=1431655765&((r=858993459&((r=252645135&((r=16711935&((r=(r-i)*a|0)|r<<8))|r<<4))|r<<2))|r<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-s)*a|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function d3(r){let e=r,i=r;do(e.x<i.x||e.x===i.x&&e.y<i.y)&&(i=e),e=e.next;while(e!==r);return i}function Rw(r,e,i,s,a,u,h,m){return(a-h)*(e-m)>=(r-h)*(u-m)&&(r-h)*(s-m)>=(i-h)*(e-m)&&(i-h)*(u-m)>=(a-h)*(s-m)}function zp(r,e,i,s,a,u,h,m){return!(r===h&&e===m)&&Rw(r,e,i,s,a,u,h,m)}function p3(r,e){return r.next.i!==e.i&&r.prev.i!==e.i&&!function(i,s){let a=i;do{if(a.i!==i.i&&a.next.i!==i.i&&a.i!==s.i&&a.next.i!==s.i&&zw(a,a.next,i,s))return!0;a=a.next}while(a!==i);return!1}(r,e)&&(Lp(r,e)&&Lp(e,r)&&function(i,s){let a=i,u=!1;const h=(i.x+s.x)/2,m=(i.y+s.y)/2;do a.y>m!=a.next.y>m&&a.next.y!==a.y&&h<(a.next.x-a.x)*(m-a.y)/(a.next.y-a.y)+a.x&&(u=!u),a=a.next;while(a!==i);return u}(r,e)&&(yn(r.prev,r,e.prev)||yn(r,e.prev,e))||Oh(r,e)&&yn(r.prev,r,r.next)>0&&yn(e.prev,e,e.next)>0)}function yn(r,e,i){return(e.y-r.y)*(i.x-e.x)-(e.x-r.x)*(i.y-e.y)}function Oh(r,e){return r.x===e.x&&r.y===e.y}function zw(r,e,i,s){const a=u_(yn(r,e,i)),u=u_(yn(r,e,s)),h=u_(yn(i,s,r)),m=u_(yn(i,s,e));return a!==u&&h!==m||!(a!==0||!c_(r,i,e))||!(u!==0||!c_(r,s,e))||!(h!==0||!c_(i,r,s))||!(m!==0||!c_(i,e,s))}function c_(r,e,i){return e.x<=Math.max(r.x,i.x)&&e.x>=Math.min(r.x,i.x)&&e.y<=Math.max(r.y,i.y)&&e.y>=Math.min(r.y,i.y)}function u_(r){return r>0?1:r<0?-1:0}function Lp(r,e){return yn(r.prev,r,r.next)<0?yn(r,e,r.next)>=0&&yn(r,r.prev,e)>=0:yn(r,e,r.prev)<0||yn(r,r.next,e)<0}function Lw(r,e){const i=x0(r.i,r.x,r.y),s=x0(e.i,e.x,e.y),a=r.next,u=e.prev;return r.next=e,e.prev=r,i.next=a,a.prev=i,s.next=i,i.prev=s,u.next=s,s.prev=u,s}function kw(r,e,i,s){const a=x0(r,e,i);return s?(a.next=s.next,a.prev=s,s.next.prev=a,s.next=a):(a.prev=a,a.next=a),a}function kp(r){r.next.prev=r.prev,r.prev.next=r.next,r.prevZ&&(r.prevZ.nextZ=r.nextZ),r.nextZ&&(r.nextZ.prevZ=r.prevZ)}function x0(r,e,i){return{i:r,x:e,y:i,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function h_(r,e){const i=r.length;if(i<=1)return[r];const s=[];let a,u;for(let h=0;h<i;h++){const m=ki(r[h]);m!==0&&(r[h].area=Math.abs(m),u===void 0&&(u=m<0),u===m<0?(a&&s.push(a),a=[r[h]]):a.push(r[h]))}if(a&&s.push(a),e>1)for(let h=0;h<s.length;h++)s[h].length<=e||(Hs(s[h],e,1,s[h].length-1,f3),s[h]=s[h].slice(0,e));return s}function f3(r,e){return e.area-r.area}function Ow(r,e,i=1){if(!r)return null;const s=typeof r=="string"?Wn.from(r).getPrimary():r.getPrimary(),a=typeof r=="string"?null:r.getSecondary();for(const u of[s,a]){if(!u)continue;const h=u.id.toString();e.has(h)||e.set(h,[]),u.scaleSelf(i),e.get(h).push(u)}return{primary:s.toString(),secondary:a?a.toString():null}}function b0(r,e,i,s){const a=s.patternDependencies;let u=!1;for(const h of e){const m=h.paint.get(`${r}-pattern`);m.isConstant()||(u=!0),Ow(m.constantOr(null),a,i)&&(u=!0)}return u}function w0(r,e,i,s,a,u){const h=u.patternDependencies;for(const m of e){const g=m.paint.get(`${r}-pattern`).value;if(g.kind!=="constant"){let x=g.evaluate({zoom:s},i,{},u.availableImages);x=x&&x.name?x.name:x;const T=Ow(x,h,a);if(!T)continue;const{primary:S,secondary:A}=T;S&&(i.patterns[m.id]=[S,A].filter(Boolean))}}return i}var T0,Fw,S0,Bw,E0,Nw,jw,d_={};function Vw(){if(Fw)return T0;Fw=1;var r=uc();function e(a,u,h,m,g){this.properties={},this.extent=h,this.type=0,this._pbf=a,this._geometry=-1,this._keys=m,this._values=g,a.readFields(i,this,u)}function i(a,u,h){a==1?u.id=h.readVarint():a==2?function(m,g){for(var x=m.readVarint()+m.pos;m.pos<x;){var T=g._keys[m.readVarint()],S=g._values[m.readVarint()];g.properties[T]=S}}(h,u):a==3?u.type=h.readVarint():a==4&&(u._geometry=h.pos)}function s(a){for(var u,h,m=0,g=0,x=a.length,T=x-1;g<x;T=g++)m+=((h=a[T]).x-(u=a[g]).x)*(u.y+h.y);return m}return T0=e,e.types=["Unknown","Point","LineString","Polygon"],e.prototype.loadGeometry=function(){var a=this._pbf;a.pos=this._geometry;for(var u,h=a.readVarint()+a.pos,m=1,g=0,x=0,T=0,S=[];a.pos<h;){if(g<=0){var A=a.readVarint();m=7&A,g=A>>3}if(g--,m===1||m===2)x+=a.readSVarint(),T+=a.readSVarint(),m===1&&(u&&S.push(u),u=[]),u.push(new r(x,T));else{if(m!==7)throw new Error("unknown command "+m);u&&u.push(u[0].clone())}}return u&&S.push(u),S},e.prototype.bbox=function(){var a=this._pbf;a.pos=this._geometry;for(var u=a.readVarint()+a.pos,h=1,m=0,g=0,x=0,T=1/0,S=-1/0,A=1/0,D=-1/0;a.pos<u;){if(m<=0){var R=a.readVarint();h=7&R,m=R>>3}if(m--,h===1||h===2)(g+=a.readSVarint())<T&&(T=g),g>S&&(S=g),(x+=a.readSVarint())<A&&(A=x),x>D&&(D=x);else if(h!==7)throw new Error("unknown command "+h)}return[T,A,S,D]},e.prototype.toGeoJSON=function(a,u,h){var m,g,x=this.extent*Math.pow(2,h),T=this.extent*a,S=this.extent*u,A=this.loadGeometry(),D=e.types[this.type];function R(H){for(var K=0;K<H.length;K++){var W=H[K];H[K]=[360*(W.x+T)/x-180,360/Math.PI*Math.atan(Math.exp((180-360*(W.y+S)/x)*Math.PI/180))-90]}}switch(this.type){case 1:var O=[];for(m=0;m<A.length;m++)O[m]=A[m][0];R(A=O);break;case 2:for(m=0;m<A.length;m++)R(A[m]);break;case 3:for(A=function(H){var K=H.length;if(K<=1)return[H];for(var W,F,q=[],Y=0;Y<K;Y++){var te=s(H[Y]);te!==0&&(F===void 0&&(F=te<0),F===te<0?(W&&q.push(W),W=[H[Y]]):W.push(H[Y]))}return W&&q.push(W),q}(A),m=0;m<A.length;m++)for(g=0;g<A[m].length;g++)R(A[m][g])}A.length===1?A=A[0]:D="Multi"+D;var $={type:"Feature",geometry:{type:D,coordinates:A},properties:this.properties};return"id"in this&&($.id=this.id),$},T0}function Uw(){if(Bw)return S0;Bw=1;var r=Vw();function e(s,a){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=s,this._keys=[],this._values=[],this._features=[],s.readFields(i,this,a),this.length=this._features.length}function i(s,a,u){s===15?a.version=u.readVarint():s===1?a.name=u.readString():s===5?a.extent=u.readVarint():s===2?a._features.push(u.pos):s===3?a._keys.push(u.readString()):s===4&&a._values.push(function(h){for(var m=null,g=h.readVarint()+h.pos;h.pos<g;){var x=h.readVarint()>>3;m=x===1?h.readString():x===2?h.readFloat():x===3?h.readDouble():x===4?h.readVarint64():x===5?h.readVarint():x===6?h.readSVarint():x===7?h.readBoolean():null}return m}(u))}return S0=e,e.prototype.feature=function(s){if(s<0||s>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[s];var a=this._pbf.readVarint()+this._pbf.pos;return new r(this._pbf,a,this.extent,this._keys,this._values)},S0}function $w(){return jw||(jw=1,d_.VectorTile=function(){if(Nw)return E0;Nw=1;var r=Uw();function e(i,s,a){if(i===3){var u=new r(a,a.readVarint()+a.pos);u.length&&(s[u.name]=u)}}return E0=function(i,s){this.layers=i.readFields(e,{},s)},E0}(),d_.VectorTileFeature=Vw(),d_.VectorTileLayer=Uw()),d_}var ql=$w();const Qc="3d_elevation_id",Gw="level";class m3{constructor(){this._valid=!1}reset(e){return this.feature=e,this._valid=!0,this._geometry=e.loadGeometry(),this._geometry.length!==0&&this._geometry[0].length!==0||(this._valid=!1),this}geometry(e,i){return this._valid&&e(i(this._geometry)),this}require(e,i,s){return this.get(e,!0,i,s)}optional(e,i,s){return this.get(e,!1,i,s)}success(){return this._valid}get(e,i,s,a){const u=this.feature.properties.hasOwnProperty(e)?+this.feature.properties[e]:void 0;return this._valid&&u!==void 0&&!Number.isNaN(u)?s(a?a(u):u):i&&(this._valid=!1),this}}class Hw{constructor(e,i){this.featureFunc=e,this.vertexFunc=i}parseFeature(e,i,s){return this.featureFunc(e,i,s)}parseVertex(e,i,s){return this.vertexFunc(e,i,s)}}const _3=new Hw((r,e,i)=>r.reset(e).require(Qc,s=>{i.id=s}).optional("fixed_height_relative",s=>{i.constantHeight=s},eu.decodeRelativeHeight).geometry(s=>{i.bounds=s},Rd).success(),(r,e,i)=>r.reset(e).require(Qc,s=>{i.id=s}).require("elevation_idx",s=>{i.idx=s}).require("extent",s=>{i.extent=s}).require("height_relative",s=>{i.height=s},eu.decodeRelativeHeight).geometry(s=>{i.position=s},eu.getPoint).success()),g3=new Hw((r,e,i)=>r.reset(e).require(Qc,s=>{i.id=s}).optional("fixed_height",s=>{i.constantHeight=s},eu.decodeMetricHeight).geometry(s=>{i.bounds=s},Rd).success(),(r,e,i)=>r.reset(e).require(Qc,s=>{i.id=s}).require("elevation_idx",s=>{i.idx=s}).require("extent",s=>{i.extent=s}).require("height",s=>{i.height=s},eu.decodeMetricHeight).geometry(s=>{i.position=s},eu.getPoint).success());class eu{static getPoint(e){return va(e[0][0].x,e[0][0].y)}static decodeRelativeHeight(e){return 1e-4*e*5}static decodeMetricHeight(e){return 1e-4*e}static parse(e){const i=[],s=[],a=e.length,u=new m3;for(let m=0;m<a;m++){const g=e.feature(m),x=g.properties.hasOwnProperty("version")?String(g.properties.version):void 0,T=(h=x)?h==="1.0.1"?g3:void 0:_3;if(T===void 0){yi(`Unknown elevation feature version number ${x||"(unknown)"}`);continue}const S=g.properties.hasOwnProperty("type")?g.properties.type:void 0;if(S){if(ql.VectorTileFeature.types[g.type]==="Point"&&S==="curve_point"){const A={};T.parseVertex(u,g,A)&&i.push(A)}else if(ql.VectorTileFeature.types[g.type]==="Polygon"&&S==="curve_meta"){const A={};T.parseFeature(u,g,A)&&s.push(A)}}}var h;return{vertices:i,features:s}}}class qw{constructor(e,i){this.feature=e,this.metersToTile=i,this.index=0}get(){const e=this.feature.vertices[this.index],i=this.feature.vertexProps[this.index].dir,s=i[1],a=-i[0],u=(e.extent+1)*this.metersToTile;return[new ft(Math.trunc(e.position[0]+s*u),Math.trunc(e.position[1]+a*u)),new ft(Math.trunc(e.position[0]-s*u),Math.trunc(e.position[1]-a*u))]}next(){this.index++}valid(){return this.index<this.feature.vertices.length}}class A0{constructor(e,i,s,a,u,h){if(this.vertices=new Array,this.vertexProps=new Array,this.edges=new Array,this.edgeProps=new Array,this.id=e,this.heightRange={min:s,max:s},this.safeArea=i,this.constantHeight=s,this.constantHeight==null&&(this.constantHeight!=null||a.length!==0)){this.vertices=a,this.edges=u,this.edges=this.edges.filter(m=>{return m.a<this.vertices.length&&m.b<this.vertices.length&&!((g=this.vertices[m.a].position)[0]===(x=this.vertices[m.b].position)[0]&&g[1]===x[1]);var g,x}),this.heightRange={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};for(const m of this.vertices)this.vertexProps.push({dir:va(0,0)}),this.heightRange.min=Math.min(this.heightRange.min,m.height),this.heightRange.max=Math.max(this.heightRange.max,m.height);for(const m of this.edges){const g=this.vertices[m.a].position,x=this.vertices[m.b].position,T=Zo(qn(),x,g),S=ba(T),A=xa(qn(),T,1/S);this.edgeProps.push({vec:T,dir:A,len:S});const D=this.vertexProps[m.a].dir,R=this.vertexProps[m.b].dir;Ns(D,D,A),Ns(R,R,A)}for(const m of this.vertexProps)m.dir[0]===0&&m.dir[1]===0||lc(m.dir,m.dir);this.tessellate(h)}}pointElevation(e){if(this.constantHeight!=null)return this.constantHeight;const i=this.getClosestEdge(e);if(i==null)return 0;const[s,a]=i;return((u,h,m)=>(1-m)*u+m*h)(this.vertices[this.edges[s].a].height,this.vertices[this.edges[s].b].height,a)}getSafeArea(){return this.safeArea}isTunnel(){return this.heightRange.max<=-5}getClosestEdge(e){if(this.edges.length===0)return;let i=0,s=Number.POSITIVE_INFINITY,a=0;const u=va(e.x,e.y);for(let h=0;h<this.edges.length;h++){const m=this.edges[h],g=this.edgeProps[h].dir,x=new ts(u,this.edgeProps[h].dir),T=this.vertices[m.a].position,S=this.vertices[m.b].position,A=qn(),D=qn(),R=x.intersectsPlane(T,this.vertexProps[m.a].dir,A),O=x.intersectsPlane(S,this.vertexProps[m.b].dir,D);if(!R||!O)continue;const $=Zo(qn(),D,A),H=Zo(qn(),u,A),K=Ar($,$),W=K>0?Ar(H,$)/K:0,F=Te(W,0,1),q=Math.abs((W-F)*this.edgeProps[h].len),Y=Zo(qn(),u,T),te=q+Math.abs(Ar(Y,va(g[1],-g[0])));te<s&&(i=h,s=te,a=F)}return[i,a]}tessellate(e){for(let i=this.edges.length-1;i>=0;--i){const s=this.edges[i].a,a=this.edges[i].b,{position:u,height:h,extent:m}=this.vertices[s],{position:g,height:x,extent:T}=this.vertices[a],S=this.vertexProps[s].dir,A=this.vertexProps[a].dir,D=Bt(u[0]/e,u[1]/e,h),R=Bt(g[0]/e,g[1]/e,x),O=Bt(S[1],-S[0],0);Ei(O,O,m);const $=Bt(A[1],-A[0],0);if(Ei($,$,T),this.distSqLines(Bt(D[0]+.5*O[0],D[1]+.5*O[1],D[2]+.5*O[2]),Bt(R[0]-.5*$[0],R[1]-.5*$[1],R[2]-.5*$[2]),Bt(D[0]-.5*O[0],D[1]-.5*O[1],D[2]-.5*O[2]),Bt(R[0]+.5*$[0],R[1]+.5*$[1],R[2]+.5*$[2]))<=.0025000000000000005)continue;const H=this.vertices.length,K=Ns(qn(),u,g);this.vertices.push({position:xa(K,K,.5),height:.5*(h+x),extent:.5*(m+T)});const W=Ns(qn(),S,A);this.vertexProps.push({dir:lc(W,W)}),this.edges.splice(i,1),this.edgeProps.splice(i,1),this.edges.push({a:s,b:H}),this.edges.push({a:H,b:a});const F=Zo(qn(),this.vertices[H].position,u),q=ba(F),Y={vec:F,dir:xa(qn(),F,1/q),len:q};this.edgeProps.push(Y),this.edgeProps.push(Y)}}distSqLines(e,i,s,a){const u=Gt(ni(),i,e),h=Gt(ni(),a,s),m=Gt(ni(),e,s),g=Xi(u,u),x=Xi(u,h),T=Xi(u,m),S=Xi(h,h),A=Xi(h,m),D=g*S-x*x;if(D===0){const $=Xi(m,h)/Xi(h,h);return vn($o(ni(),s,a,$),e)}const R=(x*A-T*S)/D,O=(g*A-x*T)/D;return vn($o(ni(),e,i,R),$o(ni(),s,a,O))}}class I0{static parseFrom(e,i){const s=eu.parse(e);if(!s)return[];let{vertices:a,features:u}=s;const h=1/Pe(i);u.sort((T,S)=>T.id-S.id),a.sort((T,S)=>T.id-S.id||T.idx-S.idx),a=a.filter((T,S,A)=>S===A.findIndex(D=>D.id===T.id&&D.idx===T.idx));const m=new Array;let g=0;const x=a.length;for(const T of u){if(T.constantHeight){m.push(new A0(T.id,T.bounds,T.constantHeight));continue}for(;g!==x&&a[g].id<T.id;)g++;if(g===x||a[g].id!==T.id)continue;const S=new Array,A=new Array,D=g;for(;g!==x&&a[g].id===T.id;){const R=a[g];if(S.push({position:R.position,height:R.height,extent:R.extent}),g!==D&&a[g-1].idx===R.idx-1){const O=g-D;A.push({a:O-1,b:O})}g++}m.push(new A0(T.id,T.bounds,void 0,S,A,h))}return m}static getElevationFeature(e,i){if(!i)return;const s=+e.properties[Qc];return Number.isNaN(s)?void 0:i.find(a=>a.id===s)}}class Zw{constructor(e,i){this.zScale=1,this.xOffset=0,this.yOffset=0,e.equals(i)||(this.zScale=Math.pow(2,i.z-e.z),this.xOffset=(e.x*this.zScale-i.x)*_t,this.yOffset=(e.y*this.zScale-i.y)*_t)}constantElevation(e,i){if(e.constantHeight!=null)return this.computeBiasedHeight(e.constantHeight,i)}pointElevation(e,i,s){const a=this.constantElevation(i,s);return a??(e.x=e.x*this.zScale+this.xOffset,e.y=e.y*this.zScale+this.yOffset,this.computeBiasedHeight(i.pointElevation(e),s))}computeBiasedHeight(e,i){return i<=0?e:e+i*Ae(0,i,e>=0?e:Math.abs(.5*e))}}Tt(A0,"ElevationFeature");class Ww{constructor(){this.polygons=new Map}add(e,...i){this.polygons.has(e)?this.polygons.get(e).push(...i):this.polygons.set(e,i)}merge(e){for(const[i,s]of e.polygons)this.add(i,...s)}}class tu{constructor(){this.portals=[]}static evaluate(e){if(e.length===0)return new tu;let i=[];for(const x of e)i.push(...x.portals);if(i.length===0)return new tu;const s=(x,T)=>x<=0&&T<=0||x>=_t&&T>=_t;for(const x of i){const T=x.va,S=x.vb;(s(T.x,S.x)||s(T.y,S.y))&&(x.type="border")}const a=i.filter(x=>x.type!=="unevaluated"),u=i.filter(x=>x.type==="unevaluated");if(u.length===0)return new tu;u.sort((x,T)=>x.hash===T.hash?x.isTunnel===T.isTunnel?0:x.isTunnel?-1:1:x.hash<T.hash?1:-1),i=a.concat(u);let h=a.length,m=h,g=h;do if(m++,m===i.length||i[h].hash!==i[m].hash){if(m-h==2){g<h&&(i[g]=i[h],i[h]=null);const x=i[g],T=i[m-1];x.type=x.isTunnel!==T.isTunnel?"tunnel":"polygon",x.connection={a:x.connection.a,b:T.connection.a},g++}h=m}while(h!==i.length);return i.splice(g),i.sort((x,T)=>x.hash<T.hash?1:-1),{portals:i}}}Tt(tu,"ElevationPortalGraph"),Tt(Ww,"ElevationPolygons");class y3{constructor(e,i,s){this.outPositions=e,this.outNormals=i,this.outIndices=s,this.vertexLookup=new Map,this.buffer=new ArrayBuffer(4),this.view=new DataView(this.buffer)}addVertex(e,i,s){let a=e[2];s!=null&&(a*=s);const u=this.getVec3Bits(e)<<96n|this.getVec3Bits(i),h=this.vertexLookup.get(u);if(h!=null)return h;const m=this.outPositions.length;this.vertexLookup.set(u,m);const g=Math.trunc(16384*i[0]),x=Math.trunc(16384*i[1]),T=Math.trunc(16384*i[2]);return this.outPositions.emplaceBack(e[0],e[1],a),this.outNormals.emplaceBack(g,x,T),m}addVertices(e,i,...s){const a=[];for(const u of s){const h=this.addVertex(u,e,i);a.push(h)}return a}addTriangles(e,i,s){if(i&&s){const a=s.length===1,u=Bt(0,0,0);for(let h=0;h<e.length;h+=3){const m=i[e[h+0]],g=i[e[h+1]],x=i[e[h+2]],T=a?s[0]:s[e[h+1]],S=a?s[0]:s[e[h+2]],A=this.addVertex(Bt(m.x,m.y,a?s[0]:s[e[h+0]]),u),D=this.addVertex(Bt(g.x,g.y,T),u),R=this.addVertex(Bt(x.x,x.y,S),u);this.outIndices.emplaceBack(A,D,R)}}else for(let a=0;a<e.length;a+=3)this.outIndices.emplaceBack(e[a+0],e[a+1],e[a+2])}addQuad(e,i){const s=this.addVertices(i,void 0,...e.map(g=>Bt(g.coord.x,g.coord.y,g.height))),[a,u,h,m]=s;this.addTriangles([a,u,h,h,m,a])}getBits(e){return this.view.setFloat32(0,e),BigInt(this.view.getUint32(0))}getVec3Bits(e){return this.getBits(e[0])<<64n|this.getBits(e[1])<<32n|this.getBits(e[2])}}class To{constructor(e){this.unevaluatedPortals=new tu,this.portalPolygons=new Ww,this.vertexHashLookup=new Map,this.unevalVertices=[],this.unevalHeights=[],this.unevalTriangles=[],this.unevalTunnelTriangles=[],this.unevalEdges=[],this.vertexPositions=new Sh,this.vertexNormals=new Ol,this.indexArray=new _n,this.tileToMeters=Pe(e)}addVertices(e,i){const s=this.unevalVertices.length;for(let a=0;a<e.length;a++)this.unevalVertices.push(e[a]),this.unevalHeights.push(i[a]);return s}addTriangles(e,i,s){const a=s?this.unevalTunnelTriangles:this.unevalTriangles;for(const u of e)a.push(u+i)}addRenderableRing(e,i,s,a,u){const h=[new ft(u.min.x,u.min.y),new ft(u.max.x,u.min.y),new ft(u.max.x,u.max.y),new ft(u.min.x,u.max.y)];for(let m=0;m<s-1;m++){const g=i+m,x=g+1,T=this.unevalVertices[g],S=this.unevalVertices[x];if(!(T.x>=u.min.x&&T.x<=u.max.x&&T.y>=u.min.y&&T.y<=u.max.y||S.x>=u.min.x&&S.x<=u.max.x&&S.y>=u.min.y&&S.y<=u.max.y||jr(T,S,h))||this.isOnBorder(T.x,S.x)||this.isOnBorder(T.y,S.y))continue;const A=To.computeEdgeHash(this.unevalVertices[g],this.unevalVertices[x]);let D,R=this.vertexHashLookup.get(To.computePosHash(T));R!=null?D=R.next:(R=this.vertexHashLookup.get(To.computePosHash(S)),D=R!=null?R.prev:A),this.unevalEdges.push({polygonIdx:e,a:g,b:x,hash:A,portalHash:D,isTunnel:a,type:"unevaluated"})}}addPortalCandidates(e,i,s,a,u){if(i.length===0)return;this.portalPolygons.add(e,{geometry:i,zLevel:u});const h=i[0];this.vertexHashLookup.clear();let m=To.computeEdgeHash(h[h.length-2],h[h.length-1]);for(let g=0;g<h.length-1;g++){const x=h[g+0],T=h[g+1],S=va(T.x-x.x,T.y-x.y),A=ba(S);if(A===0)continue;let D="unevaluated";const R=a.pointElevation(x),O=a.pointElevation(T);Math.abs(R)<.01&&Math.abs(O)<.01?D="entrance":(this.isOnBorder(x.x,T.x)||this.isOnBorder(x.y,T.y))&&(D="border");const $=To.computeEdgeHash(x,T);this.unevaluatedPortals.portals.push({connection:{a:e,b:void 0},va:x,vb:T,vab:S,length:A,hash:$,isTunnel:s,type:D});const H=To.computePosHash(x);this.vertexHashLookup.set(H,{prev:m,next:$}),m=$}}construct(e){if(this.unevalVertices.length===0)return;const i=()=>({vertexOffset:0,primitiveOffset:this.indexArray.length}),s=S=>{S.primitiveLength=this.indexArray.length-S.primitiveOffset},a=new y3(this.vertexPositions,this.vertexNormals,this.indexArray);this.prepareEdges(e.portals,this.unevalEdges);const u=i(),h=i(),m=i(),g=(S,A)=>{S.sort((R,O)=>R.type===A&&O.type!==A?-1:R.type!==A&&O.type===A?1:0);const D=S.findIndex(R=>R.type!==A);return D>=0?D:S.length};let x=0;this.unevalEdges.length>0&&(x=g(this.unevalEdges,"none"),this.constructBridgeStructures(a,this.unevalVertices,this.unevalHeights,this.unevalEdges,{min:0,max:x},this.tileToMeters));const T=i();if(this.unevalEdges.length>0){const S=this.unevalEdges.splice(x),A=g(S,"tunnel")+x;this.unevalEdges.push(...S),this.constructTunnelStructures(a,this.unevalVertices,this.unevalHeights,this.unevalEdges,{min:0,max:x},{min:x,max:A})}s(m),a.addTriangles(this.unevalTriangles,this.unevalVertices,this.unevalHeights),s(T),a.addTriangles(this.unevalTunnelTriangles,this.unevalVertices,this.unevalHeights),s(h),a.addTriangles(this.unevalTunnelTriangles,this.unevalVertices,[-.1]),s(u),this.maskSegments=Cr.simpleSegment(0,T.primitiveOffset,0,T.primitiveLength),this.depthSegments=Cr.simpleSegment(0,h.primitiveOffset,0,h.primitiveLength),this.renderableSegments=Cr.simpleSegment(0,m.primitiveOffset,0,m.primitiveLength),this.shadowCasterSegments=Cr.simpleSegment(0,u.primitiveOffset,0,u.primitiveLength)}upload(e){this.vertexBuffer||this.vertexPositions.length===0||this.vertexNormals.length===0||this.indexArray.length===0||(this.vertexBuffer=e.createVertexBuffer(this.vertexPositions,r3.members),this.vertexBufferNormal=e.createVertexBuffer(this.vertexNormals,n3.members),this.indexBuffer=e.createIndexBuffer(this.indexArray))}destroy(){this.vertexBuffer&&(this.vertexBuffer.destroy(),this.vertexBufferNormal.destroy(),this.indexBuffer.destroy()),this.maskSegments&&(this.maskSegments.destroy(),this.depthSegments.destroy(),this.renderableSegments.destroy(),this.shadowCasterSegments.destroy())}computeVertexConnections(e,i,s,a,u){const h=new Map;for(let m=a;m<u;m++){const g=s[m],x=g.a,T=g.b,S=To.computePosHash(e[x]),A=To.computePosHash(e[T]);h.has(S)||h.set(S,{}),h.has(A)||h.set(A,{});const D=h.get(S),R=h.get(A);i[x]<=0&&i[T]<=0||(D.to=T,R.from=x)}return h}constructBridgeStructures(e,i,s,a,u,h){const m=this.computeVertexConnections(i,s,a,u.min,u.max),g=1/h,x=.5*g,T=A=>Bt(i[A].x,i[A].y,s[A]*g),S=A=>{const D=m.get(To.computePosHash(i[A])),R=D.from,O=D.to;if(!R||!O)return;const $=T(R),H=T(A),K=T(O),W=Bt(0,0,0);if(!tr($,H)){const q=Ti(ni(),H,$);Yt(W,W,Ui(q,q))}if(!tr(K,H)){const q=Ti(ni(),K,H);Yt(W,W,Ui(q,q))}const F=wr(W);return F>0?Ei(W,W,1/F):void 0};for(let A=u.min;A<u.max;A++){const D=a[A],R=this.prepareEdgePoints(i,s,D,(st,Xt)=>st>Xt);if(R==null)continue;const O=R[0],$=R[1],H=Bt(O.coord.x,O.coord.y,g*O.height),K=Bt($.coord.x,$.coord.y,g*$.height);if(tr(H,K))continue;const W=Ti(ni(),K,H);Ui(W,W);const F=st=>Ui(st,st),q=S(D.a)||W,Y=S(D.b)||W,te=F(Bt(q[1],-q[0],0)),de=F(Bt(Y[1],-Y[0],0)),ge=F(Lr(ni(),te,q)),xe=F(Lr(ni(),de,Y)),Ce=ni(),Ue=[Yt(ni(),H,Ei(Ce,Ti(Ce,te,ge),x)),Yt(ni(),H,Ei(Ce,Yt(Ce,te,ge),x)),Yt(ni(),H,Ei(Ce,ge,x)),H],et=[Yt(ni(),K,Ei(Ce,Ti(Ce,de,xe),x)),Yt(ni(),K,Ei(Ce,Yt(Ce,de,xe),x)),Yt(ni(),K,Ei(Ce,xe,x)),K],[Xe,Qe]=e.addVertices(te,h,Ue[0],Ue[1]),[ot,je]=e.addVertices(de,h,et[0],et[1]);e.addTriangles([Xe,Qe,ot,Qe,je,ot]);const[Je,Fe]=e.addVertices(ge,h,Ue[1],Ue[2]),[Ve,lt]=e.addVertices(xe,h,et[1],et[2]);e.addTriangles([Je,Fe,Ve,Fe,lt,Ve]);const[ct,zt]=e.addVertices(po(te,te),h,Ue[2],Ue[3]),[Et,gt]=e.addVertices(po(de,de),h,et[2],et[3]);e.addTriangles([ct,zt,Et,zt,gt,Et])}}constructTunnelStructures(e,i,s,a,u,h){const m=g=>Ui(g,g);for(let g=u.min;g<u.max;g++){const x=this.prepareEdgePoints(i,s,a[g],(D,R)=>D<R);if(x==null)continue;const[T,S]=x,A=m(Bt(S.coord.y-T.coord.y,-(S.coord.x-T.coord.x),0));e.addQuad([T,S,{coord:S.coord,height:a[g].isTunnel?-.1:0},{coord:T.coord,height:a[g].isTunnel?-.1:0}],A)}for(let g=h.min;g<h.max;g++){const x=a[g],T=i[x.a],S=i[x.b],A=m(Bt(S.y-T.y,-(S.x-T.x),0));e.addQuad([{coord:S,height:0},{coord:T,height:0},{coord:T,height:s[x.a]+4},{coord:S,height:s[x.b]+4}],A),e.addQuad([{coord:T,height:0},{coord:S,height:0},{coord:S,height:s[x.b]+4},{coord:T,height:s[x.a]+4}],A)}}prepareEdgePoints(e,i,s,a){let u=i[s.a],h=i[s.b];const m=a(u,0),g=a(h,0);if(m&&g)return[{coord:e[s.a],height:u},{coord:e[s.b],height:h}];if(!m&&!g)return;const x=e[s.a].clone(),T=e[s.b].clone();if(m){if(!g){const S=h/(h-u);T.x=Nt(T.x,x.x,S),T.y=Nt(T.y,x.y,S),h=Nt(h,u,S)}}else{const S=u/(u-h);x.x=Nt(x.x,T.x,S),x.y=Nt(x.y,T.y,S),u=Nt(u,h,S)}return[{coord:x,height:u},{coord:T,height:h}]}prepareEdges(e,i){if(i.length===0)return;i.sort((m,g)=>m.hash===g.hash?g.polygonIdx-m.polygonIdx:g.hash>m.hash?1:-1);let s=0,a=0,u=0,h=i[s].polygonIdx;do a++,(a===i.length||i[s].hash!==i[a].hash)&&((a-s==1||i[a-1].polygonIdx!==h)&&(u<s&&(i[u]=i[s],i[s]=null),i[u].type="none",u++),s=a,s!==i.length&&(h=i[s].polygonIdx));while(s!==i.length);if(i.splice(u),i.length!==0&&e.length!==0){i.sort((x,T)=>x.portalHash<T.portalHash?1:-1);let m=0,g=0;for(;m!==i.length&&g!==e.length;){const x=i[m],T=e[g];x.portalHash>T.hash?m++:T.hash>x.portalHash?g++:(x.type=T.type,m++)}}}isOnBorder(e,i){return e<=0&&i<=0||e>=_t&&i>=_t}static computeEdgeHash(e,i){return(e.y===i.y&&e.x>i.x||e.y>i.y)&&([e,i]=[i,e]),BigInt(To.computePosHash(e))<<32n|BigInt(To.computePosHash(i))}static computePosHash(e){return((65535&e.x)<<16|65535&e.y)>>>0}}var Xw,Yw={exports:{}},Kw=(Xw||(Xw=1,function(r,e){(function(i){function s(Q,ie){return Q>ie?1:Q<ie?-1:0}var a=function(Q,ie){Q===void 0&&(Q=s),ie===void 0&&(ie=!1),this._compare=Q,this._root=null,this._size=0,this._noDuplicates=!!ie},u={size:{configurable:!0}};function h(Q,ie,Ge,dt,vt){var yt=vt-dt;if(yt>0){var Dt=dt+Math.floor(yt/2),$t={key:ie[Dt],data:Ge[Dt],parent:Q};return $t.left=h($t,ie,Ge,dt,Dt),$t.right=h($t,ie,Ge,Dt+1,vt),$t}return null}function m(Q,ie,Ge,dt,vt){if(!(Ge>=dt)){for(var yt=Q[Ge+dt>>1],Dt=Ge-1,$t=dt+1;;){do Dt++;while(vt(Q[Dt],yt)<0);do $t--;while(vt(Q[$t],yt)>0);if(Dt>=$t)break;var xi=Q[Dt];Q[Dt]=Q[$t],Q[$t]=xi,xi=ie[Dt],ie[Dt]=ie[$t],ie[$t]=xi}m(Q,ie,Ge,$t,vt),m(Q,ie,$t+1,dt,vt)}}a.prototype.rotateLeft=function(Q){var ie=Q.right;ie&&(Q.right=ie.left,ie.left&&(ie.left.parent=Q),ie.parent=Q.parent),Q.parent?Q===Q.parent.left?Q.parent.left=ie:Q.parent.right=ie:this._root=ie,ie&&(ie.left=Q),Q.parent=ie},a.prototype.rotateRight=function(Q){var ie=Q.left;ie&&(Q.left=ie.right,ie.right&&(ie.right.parent=Q),ie.parent=Q.parent),Q.parent?Q===Q.parent.left?Q.parent.left=ie:Q.parent.right=ie:this._root=ie,ie&&(ie.right=Q),Q.parent=ie},a.prototype._splay=function(Q){for(;Q.parent;){var ie=Q.parent;ie.parent?ie.left===Q&&ie.parent.left===ie?(this.rotateRight(ie.parent),this.rotateRight(ie)):ie.right===Q&&ie.parent.right===ie?(this.rotateLeft(ie.parent),this.rotateLeft(ie)):ie.left===Q&&ie.parent.right===ie?(this.rotateRight(ie),this.rotateLeft(ie)):(this.rotateLeft(ie),this.rotateRight(ie)):ie.left===Q?this.rotateRight(ie):this.rotateLeft(ie)}},a.prototype.splay=function(Q){for(var ie,Ge,dt,vt,yt;Q.parent;)(Ge=(ie=Q.parent).parent)&&Ge.parent?((dt=Ge.parent).left===Ge?dt.left=Q:dt.right=Q,Q.parent=dt):(Q.parent=null,this._root=Q),vt=Q.left,yt=Q.right,Q===ie.left?(Ge&&(Ge.left===ie?(ie.right?(Ge.left=ie.right,Ge.left.parent=Ge):Ge.left=null,ie.right=Ge,Ge.parent=ie):(vt?(Ge.right=vt,vt.parent=Ge):Ge.right=null,Q.left=Ge,Ge.parent=Q)),yt?(ie.left=yt,yt.parent=ie):ie.left=null,Q.right=ie,ie.parent=Q):(Ge&&(Ge.right===ie?(ie.left?(Ge.right=ie.left,Ge.right.parent=Ge):Ge.right=null,ie.left=Ge,Ge.parent=ie):(yt?(Ge.left=yt,yt.parent=Ge):Ge.left=null,Q.right=Ge,Ge.parent=Q)),vt?(ie.right=vt,vt.parent=ie):ie.right=null,Q.left=ie,ie.parent=Q)},a.prototype.replace=function(Q,ie){Q.parent?Q===Q.parent.left?Q.parent.left=ie:Q.parent.right=ie:this._root=ie,ie&&(ie.parent=Q.parent)},a.prototype.minNode=function(Q){if(Q===void 0&&(Q=this._root),Q)for(;Q.left;)Q=Q.left;return Q},a.prototype.maxNode=function(Q){if(Q===void 0&&(Q=this._root),Q)for(;Q.right;)Q=Q.right;return Q},a.prototype.insert=function(Q,ie){var Ge=this._root,dt=null,vt=this._compare;if(this._noDuplicates)for(;Ge;){if(dt=Ge,vt(Ge.key,Q)===0)return;Ge=vt(Ge.key,Q)<0?Ge.right:Ge.left}else for(;Ge;)dt=Ge,Ge=vt(Ge.key,Q)<0?Ge.right:Ge.left;return Ge={key:Q,data:ie,left:null,right:null,parent:dt},dt?vt(dt.key,Ge.key)<0?dt.right=Ge:dt.left=Ge:this._root=Ge,this.splay(Ge),this._size++,Ge},a.prototype.find=function(Q){for(var ie=this._root,Ge=this._compare;ie;){var dt=Ge(ie.key,Q);if(dt<0)ie=ie.right;else{if(!(dt>0))return ie;ie=ie.left}}return null},a.prototype.contains=function(Q){for(var ie=this._root,Ge=this._compare;ie;){var dt=Ge(Q,ie.key);if(dt===0)return!0;ie=dt<0?ie.left:ie.right}return!1},a.prototype.remove=function(Q){var ie=this.find(Q);if(!ie)return!1;if(this.splay(ie),ie.left)if(ie.right){var Ge=this.minNode(ie.right);Ge.parent!==ie&&(this.replace(Ge,Ge.right),Ge.right=ie.right,Ge.right.parent=Ge),this.replace(ie,Ge),Ge.left=ie.left,Ge.left.parent=Ge}else this.replace(ie,ie.left);else this.replace(ie,ie.right);return this._size--,!0},a.prototype.removeNode=function(Q){if(!Q)return!1;if(this.splay(Q),Q.left)if(Q.right){var ie=this.minNode(Q.right);ie.parent!==Q&&(this.replace(ie,ie.right),ie.right=Q.right,ie.right.parent=ie),this.replace(Q,ie),ie.left=Q.left,ie.left.parent=ie}else this.replace(Q,Q.left);else this.replace(Q,Q.right);return this._size--,!0},a.prototype.erase=function(Q){var ie=this.find(Q);if(ie){this.splay(ie);var Ge=ie.left,dt=ie.right,vt=null;Ge&&(Ge.parent=null,vt=this.maxNode(Ge),this.splay(vt),this._root=vt),dt&&(Ge?vt.right=dt:this._root=dt,dt.parent=vt),this._size--}},a.prototype.pop=function(){var Q=this._root,ie=null;if(Q){for(;Q.left;)Q=Q.left;ie={key:Q.key,data:Q.data},this.remove(Q.key)}return ie},a.prototype.next=function(Q){var ie=Q;if(ie)if(ie.right)for(ie=ie.right;ie&&ie.left;)ie=ie.left;else for(ie=Q.parent;ie&&ie.right===Q;)Q=ie,ie=ie.parent;return ie},a.prototype.prev=function(Q){var ie=Q;if(ie)if(ie.left)for(ie=ie.left;ie&&ie.right;)ie=ie.right;else for(ie=Q.parent;ie&&ie.left===Q;)Q=ie,ie=ie.parent;return ie},a.prototype.forEach=function(Q){for(var ie=this._root,Ge=[],dt=!1,vt=0;!dt;)ie?(Ge.push(ie),ie=ie.left):Ge.length>0?(Q(ie=Ge.pop(),vt++),ie=ie.right):dt=!0;return this},a.prototype.range=function(Q,ie,Ge,dt){for(var vt=[],yt=this._compare,Dt=this._root;vt.length!==0||Dt;)if(Dt)vt.push(Dt),Dt=Dt.left;else{if(yt((Dt=vt.pop()).key,ie)>0)break;if(yt(Dt.key,Q)>=0&&Ge.call(dt,Dt))return this;Dt=Dt.right}return this},a.prototype.keys=function(){for(var Q=this._root,ie=[],Ge=[],dt=!1;!dt;)Q?(ie.push(Q),Q=Q.left):ie.length>0?(Q=ie.pop(),Ge.push(Q.key),Q=Q.right):dt=!0;return Ge},a.prototype.values=function(){for(var Q=this._root,ie=[],Ge=[],dt=!1;!dt;)Q?(ie.push(Q),Q=Q.left):ie.length>0?(Q=ie.pop(),Ge.push(Q.data),Q=Q.right):dt=!0;return Ge},a.prototype.at=function(Q){for(var ie=this._root,Ge=[],dt=!1,vt=0;!dt;)if(ie)Ge.push(ie),ie=ie.left;else if(Ge.length>0){if(ie=Ge.pop(),vt===Q)return ie;vt++,ie=ie.right}else dt=!0;return null},a.prototype.load=function(Q,ie,Ge){if(Q===void 0&&(Q=[]),ie===void 0&&(ie=[]),Ge===void 0&&(Ge=!1),this._size!==0)throw new Error("bulk-load: tree is not empty");var dt=Q.length;return Ge&&m(Q,ie,0,dt-1,this._compare),this._root=h(null,Q,ie,0,dt),this._size=dt,this},a.prototype.min=function(){var Q=this.minNode(this._root);return Q?Q.key:null},a.prototype.max=function(){var Q=this.maxNode(this._root);return Q?Q.key:null},a.prototype.isEmpty=function(){return this._root===null},u.size.get=function(){return this._size},a.createTree=function(Q,ie,Ge,dt,vt){return new a(Ge,vt).load(Q,ie,dt)},Object.defineProperties(a.prototype,u);var g=0,x=1,T=2,S=3,A=0,D=1,R=2,O=3;function $(Q,ie,Ge){ie===null?(Q.inOut=!1,Q.otherInOut=!0):(Q.isSubject===ie.isSubject?(Q.inOut=!ie.inOut,Q.otherInOut=ie.otherInOut):(Q.inOut=!ie.otherInOut,Q.otherInOut=ie.isVertical()?!ie.inOut:ie.inOut),ie&&(Q.prevInResult=!H(ie,Ge)||ie.isVertical()?ie.prevInResult:ie));var dt=H(Q,Ge);Q.resultTransition=dt?function(vt,yt){var Dt,$t=!vt.inOut,xi=!vt.otherInOut;switch(yt){case A:Dt=$t&&xi;break;case D:Dt=$t||xi;break;case O:Dt=$t^xi;break;case R:Dt=vt.isSubject?$t&&!xi:xi&&!$t}return Dt?1:-1}(Q,Ge):0}function H(Q,ie){switch(Q.type){case g:switch(ie){case A:return!Q.otherInOut;case D:return Q.otherInOut;case R:return Q.isSubject&&Q.otherInOut||!Q.isSubject&&!Q.otherInOut;case O:return!0}break;case T:return ie===A||ie===D;case S:return ie===R;case x:return!1}return!1}var K=function(Q,ie,Ge,dt,vt){this.left=ie,this.point=Q,this.otherEvent=Ge,this.isSubject=dt,this.type=vt||g,this.inOut=!1,this.otherInOut=!1,this.prevInResult=null,this.resultTransition=0,this.otherPos=-1,this.outputContourId=-1,this.isExteriorRing=!0},W={inResult:{configurable:!0}};function F(Q,ie){return Q[0]===ie[0]&&Q[1]===ie[1]}K.prototype.isBelow=function(Q){var ie=this.point,Ge=this.otherEvent.point;return this.left?(ie[0]-Q[0])*(Ge[1]-Q[1])-(Ge[0]-Q[0])*(ie[1]-Q[1])>0:(Ge[0]-Q[0])*(ie[1]-Q[1])-(ie[0]-Q[0])*(Ge[1]-Q[1])>0},K.prototype.isAbove=function(Q){return!this.isBelow(Q)},K.prototype.isVertical=function(){return this.point[0]===this.otherEvent.point[0]},W.inResult.get=function(){return this.resultTransition!==0},K.prototype.clone=function(){var Q=new K(this.point,this.left,this.otherEvent,this.isSubject,this.type);return Q.contourId=this.contourId,Q.resultTransition=this.resultTransition,Q.prevInResult=this.prevInResult,Q.isExteriorRing=this.isExteriorRing,Q.inOut=this.inOut,Q.otherInOut=this.otherInOut,Q},Object.defineProperties(K.prototype,W);var q=11102230246251565e-32,Y=134217729,te=(3+8*q)*q;function de(Q,ie,Ge,dt,vt){var yt,Dt,$t,xi,bi=ie[0],li=dt[0],Hi=0,lr=0;li>bi==li>-bi?(yt=bi,bi=ie[++Hi]):(yt=li,li=dt[++lr]);var wi=0;if(Hi<Q&&lr<Ge)for(li>bi==li>-bi?($t=yt-((Dt=bi+yt)-bi),bi=ie[++Hi]):($t=yt-((Dt=li+yt)-li),li=dt[++lr]),yt=Dt,$t!==0&&(vt[wi++]=$t);Hi<Q&&lr<Ge;)li>bi==li>-bi?($t=yt-((Dt=yt+bi)-(xi=Dt-yt))+(bi-xi),bi=ie[++Hi]):($t=yt-((Dt=yt+li)-(xi=Dt-yt))+(li-xi),li=dt[++lr]),yt=Dt,$t!==0&&(vt[wi++]=$t);for(;Hi<Q;)$t=yt-((Dt=yt+bi)-(xi=Dt-yt))+(bi-xi),bi=ie[++Hi],yt=Dt,$t!==0&&(vt[wi++]=$t);for(;lr<Ge;)$t=yt-((Dt=yt+li)-(xi=Dt-yt))+(li-xi),li=dt[++lr],yt=Dt,$t!==0&&(vt[wi++]=$t);return yt===0&&wi!==0||(vt[wi++]=yt),wi}function ge(Q){return new Float64Array(Q)}var xe=33306690738754716e-32,Ce=22204460492503146e-32,Ue=11093356479670487e-47,et=ge(4),Xe=ge(8),Qe=ge(12),ot=ge(16),je=ge(4);function Je(Q,ie,Ge){var dt=function(vt,yt,Dt,$t,xi,bi){var li=(yt-bi)*(Dt-xi),Hi=(vt-xi)*($t-bi),lr=li-Hi;if(li===0||Hi===0||li>0!=Hi>0)return lr;var wi=Math.abs(li+Hi);return Math.abs(lr)>=xe*wi?lr:-function(Mr,pr,Vi,Vr,mr,cr,fr){var Zi,pi,Qi,Pr,Ut,Pi,_r,Or,br,tn,nr,Jr,no,Pn,En,oo,aa,rn,dn=Mr-mr,Dn=Vi-mr,Hn=pr-cr,kn=Vr-cr;et[0]=(En=(Or=dn-(_r=(Pi=Y*dn)-(Pi-dn)))*(tn=kn-(br=(Pi=Y*kn)-(Pi-kn)))-((Pn=dn*kn)-_r*br-Or*br-_r*tn))-((nr=En-(aa=(Or=Hn-(_r=(Pi=Y*Hn)-(Pi-Hn)))*(tn=Dn-(br=(Pi=Y*Dn)-(Pi-Dn)))-((oo=Hn*Dn)-_r*br-Or*br-_r*tn)))+(Ut=En-nr))+(Ut-aa),et[1]=(no=Pn-((Jr=Pn+nr)-(Ut=Jr-Pn))+(nr-Ut))-((nr=no-oo)+(Ut=no-nr))+(Ut-oo),et[2]=Jr-((rn=Jr+nr)-(Ut=rn-Jr))+(nr-Ut),et[3]=rn;var Ql=function(g5,iE){for(var rE=iE[0],Dv=1;Dv<4;Dv++)rE+=iE[Dv];return rE}(0,et),hf=Ce*fr;if(Ql>=hf||-Ql>=hf||(Zi=Mr-(dn+(Ut=Mr-dn))+(Ut-mr),Qi=Vi-(Dn+(Ut=Vi-Dn))+(Ut-mr),pi=pr-(Hn+(Ut=pr-Hn))+(Ut-cr),Pr=Vr-(kn+(Ut=Vr-kn))+(Ut-cr),Zi===0&&pi===0&&Qi===0&&Pr===0)||(hf=Ue*fr+te*Math.abs(Ql),(Ql+=dn*Pr+kn*Zi-(Hn*Qi+Dn*pi))>=hf||-Ql>=hf))return Ql;je[0]=(En=(Or=Zi-(_r=(Pi=Y*Zi)-(Pi-Zi)))*(tn=kn-(br=(Pi=Y*kn)-(Pi-kn)))-((Pn=Zi*kn)-_r*br-Or*br-_r*tn))-((nr=En-(aa=(Or=pi-(_r=(Pi=Y*pi)-(Pi-pi)))*(tn=Dn-(br=(Pi=Y*Dn)-(Pi-Dn)))-((oo=pi*Dn)-_r*br-Or*br-_r*tn)))+(Ut=En-nr))+(Ut-aa),je[1]=(no=Pn-((Jr=Pn+nr)-(Ut=Jr-Pn))+(nr-Ut))-((nr=no-oo)+(Ut=no-nr))+(Ut-oo),je[2]=Jr-((rn=Jr+nr)-(Ut=rn-Jr))+(nr-Ut),je[3]=rn;var t5=de(4,et,4,je,Xe);je[0]=(En=(Or=dn-(_r=(Pi=Y*dn)-(Pi-dn)))*(tn=Pr-(br=(Pi=Y*Pr)-(Pi-Pr)))-((Pn=dn*Pr)-_r*br-Or*br-_r*tn))-((nr=En-(aa=(Or=Hn-(_r=(Pi=Y*Hn)-(Pi-Hn)))*(tn=Qi-(br=(Pi=Y*Qi)-(Pi-Qi)))-((oo=Hn*Qi)-_r*br-Or*br-_r*tn)))+(Ut=En-nr))+(Ut-aa),je[1]=(no=Pn-((Jr=Pn+nr)-(Ut=Jr-Pn))+(nr-Ut))-((nr=no-oo)+(Ut=no-nr))+(Ut-oo),je[2]=Jr-((rn=Jr+nr)-(Ut=rn-Jr))+(nr-Ut),je[3]=rn;var i5=de(t5,Xe,4,je,Qe);je[0]=(En=(Or=Zi-(_r=(Pi=Y*Zi)-(Pi-Zi)))*(tn=Pr-(br=(Pi=Y*Pr)-(Pi-Pr)))-((Pn=Zi*Pr)-_r*br-Or*br-_r*tn))-((nr=En-(aa=(Or=pi-(_r=(Pi=Y*pi)-(Pi-pi)))*(tn=Qi-(br=(Pi=Y*Qi)-(Pi-Qi)))-((oo=pi*Qi)-_r*br-Or*br-_r*tn)))+(Ut=En-nr))+(Ut-aa),je[1]=(no=Pn-((Jr=Pn+nr)-(Ut=Jr-Pn))+(nr-Ut))-((nr=no-oo)+(Ut=no-nr))+(Ut-oo),je[2]=Jr-((rn=Jr+nr)-(Ut=rn-Jr))+(nr-Ut),je[3]=rn;var r5=de(i5,Qe,4,je,ot);return ot[r5-1]}(vt,yt,Dt,$t,xi,bi,wi)}(Q[0],Q[1],ie[0],ie[1],Ge[0],Ge[1]);return dt>0?-1:dt<0?1:0}function Fe(Q,ie){var Ge=Q.point,dt=ie.point;return Ge[0]>dt[0]?1:Ge[0]<dt[0]?-1:Ge[1]!==dt[1]?Ge[1]>dt[1]?1:-1:function(vt,yt,Dt,$t){return vt.left!==yt.left?vt.left?1:-1:Je(Dt,vt.otherEvent.point,yt.otherEvent.point)!==0?vt.isBelow(yt.otherEvent.point)?-1:1:!vt.isSubject&&yt.isSubject?1:-1}(Q,ie,Ge)}function Ve(Q,ie,Ge){var dt=new K(ie,!1,Q,Q.isSubject),vt=new K(ie,!0,Q.otherEvent,Q.isSubject);return F(Q.point,Q.otherEvent.point)&&console.warn("what is that, a collapsed segment?",Q),dt.contourId=vt.contourId=Q.contourId,Fe(vt,Q.otherEvent)>0&&(Q.otherEvent.left=!0,vt.left=!1),Q.otherEvent.otherEvent=vt,Q.otherEvent=dt,Ge.push(vt),Ge.push(dt),Ge}function lt(Q,ie){return Q[0]*ie[1]-Q[1]*ie[0]}function ct(Q,ie){return Q[0]*ie[0]+Q[1]*ie[1]}function zt(Q,ie,Ge){var dt=function(xi,bi,li,Hi,lr){var wi=[bi[0]-xi[0],bi[1]-xi[1]],Mr=[Hi[0]-li[0],Hi[1]-li[1]];function pr(Pi,_r,Or){return[Pi[0]+_r*Or[0],Pi[1]+_r*Or[1]]}var Vi=[li[0]-xi[0],li[1]-xi[1]],Vr=lt(wi,Mr),mr=Vr*Vr,cr=ct(wi,wi);if(mr>0){var fr=lt(Vi,Mr)/Vr;if(fr<0||fr>1)return null;var Zi=lt(Vi,wi)/Vr;return Zi<0||Zi>1?null:fr===0||fr===1?[pr(xi,fr,wi)]:Zi===0||Zi===1?[pr(li,Zi,Mr)]:[pr(xi,fr,wi)]}if((mr=(Vr=lt(Vi,wi))*Vr)>0)return null;var pi=ct(wi,Vi)/cr,Qi=pi+ct(wi,Mr)/cr,Pr=Math.min(pi,Qi),Ut=Math.max(pi,Qi);return Pr<=1&&Ut>=0?Pr===1?[pr(xi,Pr>0?Pr:0,wi)]:Ut===0?[pr(xi,Ut<1?Ut:1,wi)]:[pr(xi,Pr>0?Pr:0,wi),pr(xi,Ut<1?Ut:1,wi)]:null}(Q.point,Q.otherEvent.point,ie.point,ie.otherEvent.point),vt=dt?dt.length:0;if(vt===0||vt===1&&(F(Q.point,ie.point)||F(Q.otherEvent.point,ie.otherEvent.point))||vt===2&&Q.isSubject===ie.isSubject)return 0;if(vt===1)return F(Q.point,dt[0])||F(Q.otherEvent.point,dt[0])||Ve(Q,dt[0],Ge),F(ie.point,dt[0])||F(ie.otherEvent.point,dt[0])||Ve(ie,dt[0],Ge),1;var yt=[],Dt=!1,$t=!1;return F(Q.point,ie.point)?Dt=!0:Fe(Q,ie)===1?yt.push(ie,Q):yt.push(Q,ie),F(Q.otherEvent.point,ie.otherEvent.point)?$t=!0:Fe(Q.otherEvent,ie.otherEvent)===1?yt.push(ie.otherEvent,Q.otherEvent):yt.push(Q.otherEvent,ie.otherEvent),Dt&&$t||Dt?(ie.type=x,Q.type=ie.inOut===Q.inOut?T:S,Dt&&!$t&&Ve(yt[1].otherEvent,yt[0].point,Ge),2):$t?(Ve(yt[0],yt[1].point,Ge),3):yt[0]!==yt[3].otherEvent?(Ve(yt[0],yt[1].point,Ge),Ve(yt[1],yt[2].point,Ge),3):(Ve(yt[0],yt[1].point,Ge),Ve(yt[3].otherEvent,yt[2].point,Ge),3)}function Et(Q,ie){if(Q===ie)return 0;if(Je(Q.point,Q.otherEvent.point,ie.point)!==0||Je(Q.point,Q.otherEvent.point,ie.otherEvent.point)!==0)return F(Q.point,ie.point)?Q.isBelow(ie.otherEvent.point)?-1:1:Q.point[0]===ie.point[0]?Q.point[1]<ie.point[1]?-1:1:Fe(Q,ie)===1?ie.isAbove(Q.point)?-1:1:Q.isBelow(ie.point)?-1:1;if(Q.isSubject!==ie.isSubject)return Q.isSubject?-1:1;var Ge=Q.point,dt=ie.point;return Ge[0]===dt[0]&&Ge[1]===dt[1]?(Ge=Q.otherEvent.point)[0]===(dt=ie.otherEvent.point)[0]&&Ge[1]===dt[1]?0:Q.contourId>ie.contourId?1:-1:Fe(Q,ie)===1?1:-1}var gt=function(){this.points=[],this.holeIds=[],this.holeOf=null,this.depth=null};function st(Q,ie,Ge,dt){var vt,yt=Q+1,Dt=ie[Q].point,$t=ie.length;for(yt<$t&&(vt=ie[yt].point);yt<$t&&vt[0]===Dt[0]&&vt[1]===Dt[1];){if(!Ge[yt])return yt;++yt<$t&&(vt=ie[yt].point)}for(yt=Q-1;Ge[yt]&&yt>dt;)yt--;return yt}gt.prototype.isExterior=function(){return this.holeOf==null};var Xt=Pt,Mt=Pt;function Pt(Q,ie){if(!(this instanceof Pt))return new Pt(Q,ie);if(this.data=Q||[],this.length=this.data.length,this.compare=ie||Ht,this.length>0)for(var Ge=(this.length>>1)-1;Ge>=0;Ge--)this._down(Ge)}function Ht(Q,ie){return Q<ie?-1:Q>ie?1:0}Pt.prototype={push:function(Q){this.data.push(Q),this.length++,this._up(this.length-1)},pop:function(){if(this.length!==0){var Q=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),Q}},peek:function(){return this.data[0]},_up:function(Q){for(var ie=this.data,Ge=this.compare,dt=ie[Q];Q>0;){var vt=Q-1>>1,yt=ie[vt];if(Ge(dt,yt)>=0)break;ie[Q]=yt,Q=vt}ie[Q]=dt},_down:function(Q){for(var ie=this.data,Ge=this.compare,dt=this.length>>1,vt=ie[Q];Q<dt;){var yt=1+(Q<<1),Dt=yt+1,$t=ie[yt];if(Dt<this.length&&Ge(ie[Dt],$t)<0&&(yt=Dt,$t=ie[Dt]),Ge($t,vt)>=0)break;ie[Q]=$t,Q=yt}ie[Q]=vt}},Xt.default=Mt;var ti=Math.max,ri=Math.min,fi=0;function ci(Q,ie,Ge,dt,vt,yt){var Dt,$t,xi,bi,li,Hi;for(Dt=0,$t=Q.length-1;Dt<$t;Dt++)if(bi=Q[Dt+1],li=new K(xi=Q[Dt],!1,void 0,ie),Hi=new K(bi,!1,li,ie),li.otherEvent=Hi,xi[0]!==bi[0]||xi[1]!==bi[1]){li.contourId=Hi.contourId=Ge,yt||(li.isExteriorRing=!1,Hi.isExteriorRing=!1),Fe(li,Hi)>0?Hi.left=!0:li.left=!0;var lr=xi[0],wi=xi[1];vt[0]=ri(vt[0],lr),vt[1]=ri(vt[1],wi),vt[2]=ti(vt[2],lr),vt[3]=ti(vt[3],wi),dt.push(li),dt.push(Hi)}}var ai=[];function rr(Q,ie,Ge){typeof Q[0][0][0]=="number"&&(Q=[Q]),typeof ie[0][0][0]=="number"&&(ie=[ie]);var dt=function(wi,Mr,pr){var Vi=null;return wi.length*Mr.length==0&&(pr===A?Vi=ai:pr===R?Vi=wi:pr!==D&&pr!==O||(Vi=wi.length===0?Mr:wi)),Vi}(Q,ie,Ge);if(dt)return dt===ai?null:dt;var vt=[1/0,1/0,-1/0,-1/0],yt=[1/0,1/0,-1/0,-1/0],Dt=function(wi,Mr,pr,Vi,Vr){var mr,cr,fr,Zi,pi,Qi,Pr=new Xt(null,Fe);for(fr=0,Zi=wi.length;fr<Zi;fr++)for(pi=0,Qi=(mr=wi[fr]).length;pi<Qi;pi++)(cr=pi===0)&&fi++,ci(mr[pi],!0,fi,Pr,pr,cr);for(fr=0,Zi=Mr.length;fr<Zi;fr++)for(pi=0,Qi=(mr=Mr[fr]).length;pi<Qi;pi++)cr=pi===0,Vr===R&&(cr=!1),cr&&fi++,ci(mr[pi],!1,fi,Pr,Vi,cr);return Pr}(Q,ie,vt,yt,Ge);if(dt=function(wi,Mr,pr,Vi,Vr){var mr=null;return(pr[0]>Vi[2]||Vi[0]>pr[2]||pr[1]>Vi[3]||Vi[1]>pr[3])&&(Vr===A?mr=ai:Vr===R?mr=wi:Vr!==D&&Vr!==O||(mr=wi.concat(Mr))),mr}(Q,ie,vt,yt,Ge))return dt===ai?null:dt;for(var $t=function(wi){var Mr,pr,Vi=function(fr){var Zi,pi,Qi,Pr,Ut=[];for(pi=0,Qi=fr.length;pi<Qi;pi++)((Zi=fr[pi]).left&&Zi.inResult||!Zi.left&&Zi.otherEvent.inResult)&&Ut.push(Zi);for(var Pi=!1;!Pi;)for(Pi=!0,pi=0,Qi=Ut.length;pi<Qi;pi++)pi+1<Qi&&Fe(Ut[pi],Ut[pi+1])===1&&(Pr=Ut[pi],Ut[pi]=Ut[pi+1],Ut[pi+1]=Pr,Pi=!1);for(pi=0,Qi=Ut.length;pi<Qi;pi++)(Zi=Ut[pi]).otherPos=pi;for(pi=0,Qi=Ut.length;pi<Qi;pi++)(Zi=Ut[pi]).left||(Pr=Zi.otherPos,Zi.otherPos=Zi.otherEvent.otherPos,Zi.otherEvent.otherPos=Pr);return Ut}(wi),Vr={},mr=[],cr=function(){if(!Vr[Mr]){var fr=mr.length,Zi=function(Ut,Pi,_r){var Or=new gt;if(Ut.prevInResult!=null){var br=Ut.prevInResult,tn=br.outputContourId;if(br.resultTransition>0){var nr=Pi[tn];if(nr.holeOf!=null){var Jr=nr.holeOf;Pi[Jr].holeIds.push(_r),Or.holeOf=Jr,Or.depth=Pi[tn].depth}else Pi[tn].holeIds.push(_r),Or.holeOf=tn,Or.depth=Pi[tn].depth+1}else Or.holeOf=null,Or.depth=Pi[tn].depth}else Or.holeOf=null,Or.depth=0;return Or}(Vi[Mr],mr,fr),pi=function(Ut){Vr[Ut]=!0,Ut<Vi.length&&Vi[Ut]&&(Vi[Ut].outputContourId=fr)},Qi=Mr,Pr=Mr;for(Zi.points.push(Vi[Mr].point);pi(Qi),pi(Qi=Vi[Qi].otherPos),Zi.points.push(Vi[Qi].point),!((Qi=st(Qi,Vi,Vr,Pr))==Pr||Qi>=Vi.length)&&Vi[Qi];);mr.push(Zi)}};for(Mr=0,pr=Vi.length;Mr<pr;Mr++)cr();return mr}(function(wi,Mr,pr,Vi,Vr,mr){for(var cr,fr,Zi,pi=new a(Et),Qi=[],Pr=Math.min(Vi[2],Vr[2]);wi.length!==0;){var Ut=wi.pop();if(Qi.push(Ut),mr===A&&Ut.point[0]>Pr||mr===R&&Ut.point[0]>Vi[2])break;if(Ut.left){fr=cr=pi.insert(Ut),cr=cr!==(Zi=pi.minNode())?pi.prev(cr):null,fr=pi.next(fr);var Pi=cr?cr.key:null;if($(Ut,Pi,mr),fr&&zt(Ut,fr.key,wi)===2&&($(Ut,Pi,mr),$(fr.key,Ut,mr)),cr&&zt(cr.key,Ut,wi)===2){var _r=cr;$(Pi,(_r=_r!==Zi?pi.prev(_r):null)?_r.key:null,mr),$(Ut,Pi,mr)}}else fr=cr=pi.find(Ut=Ut.otherEvent),cr&&fr&&(cr=cr!==Zi?pi.prev(cr):null,fr=pi.next(fr),pi.remove(Ut),fr&&cr&&zt(cr.key,fr.key,wi))}return Qi}(Dt,0,0,vt,yt,Ge)),xi=[],bi=0;bi<$t.length;bi++){var li=$t[bi];if(li.isExterior()){for(var Hi=[li.points],lr=0;lr<li.holeIds.length;lr++)Hi.push($t[li.holeIds[lr]].points);xi.push(Hi)}}return xi}var dr={UNION:D,DIFFERENCE:R,INTERSECTION:A,XOR:O};i.diff=function(Q,ie){return rr(Q,ie,R)},i.intersection=function(Q,ie){return rr(Q,ie,A)},i.operations=dr,i.union=function(Q,ie){return rr(Q,ie,D)},i.xor=function(Q,ie){return rr(Q,ie,O)},Object.defineProperty(i,"__esModule",{value:!0})})(e)}(0,Yw.exports)),Yw.exports);/**
67
+ `)}let h=null,m=null;if(s!=="background"&&s!=="sky"&&s!=="slot"){m=Re[`filter_${s}`];const T=Ml(u,m,e,i);if(T.result==="error")throw new Error(T.value.map(S=>`${S.key}: ${S.message}`).join(", "));h=(S,A,D)=>T.value.evaluate(S,A,{},D)}let g=null,x=null;if(u!==a){const T=Ml(a,m,e,i);if(T.result==="error")throw new Error(T.value.map(S=>`${S.key}: ${S.message}`).join(", "));g=(S,A,D,R,O)=>T.value.evaluate(S,A,{},D,void 0,void 0,R,O),x=!Cc(T.value.expression)}return{filter:h,dynamicFilter:g||void 0,needGeometry:$m(u),needFeature:!!x}}function Vm(r){if(!Array.isArray(r))return r;const e=function(i){if(o0.has(i[0])){for(let s=1;s<i.length;s++)if(Ll(i[s]))return!0}return i}(r);return e===!0?e:e.map(i=>Vm(i))}function Um(r){let e=!1;const i=[];if(r[0]==="case"){for(let s=1;s<r.length-1;s+=2)e=e||Ll(r[s]),i.push(r[s+1]);i.push(r[r.length-1])}else if(r[0]==="match"){e=e||Ll(r[1]);for(let s=2;s<r.length-1;s+=2)i.push(r[s+1]);i.push(r[r.length-1])}else if(r[0]==="step"){e=e||Ll(r[1]);for(let s=1;s<r.length-1;s+=2)i.push(r[s+1])}e&&(r.length=0,r.push("any",...i));for(let s=1;s<r.length;s++)Um(r[s])}function Ll(r){if(!Array.isArray(r))return!1;if((e=r[0])==="pitch"||e==="distance-from-center")return!0;var e;for(let i=1;i<r.length;i++)if(Ll(r[i]))return!0;return!1}const o0=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function s0(r,e){return r<e?-1:r>e?1:0}function $m(r){if(!Array.isArray(r))return!1;if(r[0]==="within"||r[0]==="distance")return!0;for(let e=1;e<r.length;e++)if($m(r[e]))return!0;return!1}function bh(r){if(!r)return!0;const e=r[0];return r.length<=1?e!=="any":e==="=="?dp(r[1],r[2],"=="):e==="!="?wh(dp(r[1],r[2],"==")):e==="<"||e===">"||e==="<="||e===">="?dp(r[1],r[2],e):e==="any"?(i=r.slice(1),["any"].concat(i.map(bh))):e==="all"?["all"].concat(r.slice(1).map(bh)):e==="none"?["all"].concat(r.slice(1).map(bh).map(wh)):e==="in"?pp(r[1],r.slice(2)):e==="!in"?wh(pp(r[1],r.slice(2))):e==="has"?Gm(r[1]):e!=="!has"||wh(Gm(r[1]));var i}function dp(r,e,i){switch(r){case"$type":return[`filter-type-${i}`,e];case"$id":return[`filter-id-${i}`,e];default:return[`filter-${i}`,r,e]}}function pp(r,e){if(e.length===0)return!1;switch(r){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(i=>typeof i!=typeof e[0])?["filter-in-large",r,["literal",e.sort(s0)]]:["filter-in-small",r,["literal",e]]}}function Gm(r){switch(r){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",r]}}function wh(r){return["!",r]}const jc="";function $a(r,e){return e?`${r}${jc}${e}`:r}const fp="-transition",ea=new Set(["fill","line","background","hillshade","raster"]);class Gn extends Aa{constructor(e,i,s,a,u){if(super(),this.id=e.id,this.fqid=$a(this.id,s),this.type=e.type,this.scope=s,this.lut=a,this.options=u,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,this.configDependencies=new Set,e.type!=="custom"){if(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,e.type&&e.type!=="background"&&e.type!=="sky"&&e.type!=="slot"){this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter;const h=Ml(this.filter,Re[`filter_${e.type}`]);h.result!=="error"&&(this.configDependencies=new Set([...this.configDependencies,...h.value.configDependencies]))}if(e.slot&&(this.slot=e.slot),i.layout&&(this._unevaluatedLayout=new n0(i.layout,this.scope,u),this.configDependencies=new Set([...this.configDependencies,...this._unevaluatedLayout.configDependencies])),i.paint){this._transitionablePaint=new Bm(i.paint,this.scope,u);for(const h in e.paint)this.setPaintProperty(h,e.paint[h]);for(const h in e.layout)this.setLayoutProperty(h,e.layout[h]);this.configDependencies=new Set([...this.configDependencies,...this._transitionablePaint.configDependencies]),this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new Va(i.paint)}}}onAdd(e){}onRemove(e){}isDraped(e){return!this.is3D(!0)&&ea.has(this.type)}getLayoutProperty(e){return e==="visibility"?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,i){if(this.type==="custom"&&e==="visibility")return void(this.visibility=i);const s=this._unevaluatedLayout;s._properties.properties[e]&&(s.setValue(e,i),this.configDependencies=new Set([...this.configDependencies,...s.configDependencies]),e==="visibility"&&this.possiblyEvaluateVisibility())}possiblyEvaluateVisibility(){this._unevaluatedLayout._values.visibility&&(this.visibility=this._unevaluatedLayout._values.visibility.possiblyEvaluate({zoom:0}))}getPaintProperty(e){return e.endsWith(fp)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}setPaintProperty(e,i){const s=this._transitionablePaint,a=s._properties.properties;if(e.endsWith(fp)){const S=e.slice(0,-11);return a[S]&&s.setTransition(S,i||void 0),!1}if(!a[e])return!1;const u=s._values[e],h=u.value.isDataDriven(),m=u.value;s.setValue(e,i),this.configDependencies=new Set([...this.configDependencies,...s.configDependencies]),this._handleSpecialPaintPropertyUpdate(e);const g=s._values[e].value,x=g.isDataDriven(),T=e.endsWith("pattern")||e==="line-dasharray";return x||h||T||this._handleOverridablePaintPropertyUpdate(e,m,g)}_handleSpecialPaintPropertyUpdate(e){}getProgramIds(){return null}getDefaultProgramParams(e,i,s){return null}_handleOverridablePaintPropertyUpdate(e,i,s){return!1}isHidden(e){return!!(this.minzoom&&e<this.minzoom)||!!(this.maxzoom&&e>=this.maxzoom)||this.visibility==="none"}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,i){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,i)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,i)}serialize(){return hi({id:this.id,type:this.type,slot:this.slot,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()},(e,i)=>!(e===void 0||i==="layout"&&!Object.keys(e).length||i==="paint"&&!Object.keys(e).length))}is3D(e){return!1}hasElevation(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}hasShadowPass(){return!1}canCastShadows(){return!1}hasLightBeamPass(){return!1}cutoffRange(){return 0}tileCoverLift(){return 0}resize(){}isStateDependent(){for(const e in this.paint._values){const i=this.paint.get(e);if(i instanceof zl&&uh(i.property.specification)&&(i.value.kind==="source"||i.value.kind==="composite")&&i.value.isStateDependent)return!0}return!1}compileFilter(e){this._filterCompiled||(this._featureFilter=hp(this.filter,this.scope,e),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}getLayerRenderingStats(){return this._stats}resetLayerRenderingStats(e){this._stats&&(e.renderPass==="shadow"?this._stats.numRenderedVerticesInShadowPass=0:this._stats.numRenderedVerticesInTransparentPass=0)}queryRadius(e){}queryIntersectsFeature(e,i,s,a,u,h,m,g,x){}}const a0={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Vc{constructor(e,i){this._structArray=e,this._pos1=i*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Tr{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,i){return e._trim(),i&&(e.isTransferred=!0,i.add(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const i=Object.create(this.prototype);return i.arrayBuffer=e.arrayBuffer,i.length=e.length,i.capacity=e.arrayBuffer.byteLength/i.bytesPerElement,i._refreshViews(),i}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const i=this.uint8;this._refreshViews(),i&&this.uint8.set(i)}}_refreshViews(){throw new Error("StructArray#_refreshViews() must be implemented by each concrete StructArray layout")}emplace(...e){throw new Error("StructArray#emplace() must be implemented by each concrete StructArray layout")}emplaceBack(...e){throw new Error("StructArray#emplaceBack() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function Oi(r,e=1){let i=0,s=0;return{members:r.map(a=>{const u=a0[a.type].BYTES_PER_ELEMENT,h=i=mp(i,Math.max(e,u)),m=a.components||1;return s=Math.max(s,u),i+=u*m,{name:a.name,type:a.type,components:m,offset:h}}),size:mp(i,Math.max(s,e)),alignment:e}}function mp(r,e){return Math.ceil(r/e)*e}class ws extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i){const s=this.length;return this.resize(s+1),this.emplace(s,e,i)}emplace(e,i,s){const a=2*e;return this.int16[a+0]=i,this.int16[a+1]=s,e}}ws.prototype.bytesPerElement=4,Tt(ws,"StructArrayLayout2i4");class Th extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,i,s)}emplace(e,i,s,a){const u=3*e;return this.int16[u+0]=i,this.int16[u+1]=s,this.int16[u+2]=a,e}}Th.prototype.bytesPerElement=6,Tt(Th,"StructArrayLayout3i6");class Ga extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,s,a){const u=this.length;return this.resize(u+1),this.emplace(u,e,i,s,a)}emplace(e,i,s,a,u){const h=4*e;return this.int16[h+0]=i,this.int16[h+1]=s,this.int16[h+2]=a,this.int16[h+3]=u,e}}Ga.prototype.bytesPerElement=8,Tt(Ga,"StructArrayLayout4i8");class kl extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.float32[1*e+0]=i,e}}kl.prototype.bytesPerElement=4,Tt(kl,"StructArrayLayout1f4");class Sh extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,i,s)}emplace(e,i,s,a){const u=4*e,h=2*e;return this.int16[u+0]=i,this.int16[u+1]=s,this.float32[h+1]=a,e}}Sh.prototype.bytesPerElement=8,Tt(Sh,"StructArrayLayout2i1f8");class Ol extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,i,s)}emplace(e,i,s,a){const u=4*e;return this.int16[u+0]=i,this.int16[u+1]=s,this.int16[u+2]=a,e}}Ol.prototype.bytesPerElement=8,Tt(Ol,"StructArrayLayout3i8");class _p extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u){const h=this.length;return this.resize(h+1),this.emplace(h,e,i,s,a,u)}emplace(e,i,s,a,u,h){const m=5*e;return this.int16[m+0]=i,this.int16[m+1]=s,this.int16[m+2]=a,this.int16[m+3]=u,this.int16[m+4]=h,e}}_p.prototype.bytesPerElement=10,Tt(_p,"StructArrayLayout5i10");class gp extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m){const g=this.length;return this.resize(g+1),this.emplace(g,e,i,s,a,u,h,m)}emplace(e,i,s,a,u,h,m,g){const x=6*e,T=12*e,S=3*e;return this.int16[x+0]=i,this.int16[x+1]=s,this.uint8[T+4]=a,this.uint8[T+5]=u,this.uint8[T+6]=h,this.uint8[T+7]=m,this.float32[S+2]=g,e}}gp.prototype.bytesPerElement=12,Tt(gp,"StructArrayLayout2i4ub1f12");class Ko extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,i,s)}emplace(e,i,s,a){const u=3*e;return this.float32[u+0]=i,this.float32[u+1]=s,this.float32[u+2]=a,e}}Ko.prototype.bytesPerElement=12,Tt(Ko,"StructArrayLayout3f12");class Ts extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u){const h=this.length;return this.resize(h+1),this.emplace(h,e,i,s,a,u)}emplace(e,i,s,a,u,h){const m=6*e,g=3*e;return this.uint16[m+0]=i,this.uint16[m+1]=s,this.uint16[m+2]=a,this.uint16[m+3]=u,this.float32[g+2]=h,e}}Ts.prototype.bytesPerElement=12,Tt(Ts,"StructArrayLayout4ui1f12");class Eh extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,s,a){const u=this.length;return this.resize(u+1),this.emplace(u,e,i,s,a)}emplace(e,i,s,a,u){const h=4*e;return this.uint16[h+0]=i,this.uint16[h+1]=s,this.uint16[h+2]=a,this.uint16[h+3]=u,e}}Eh.prototype.bytesPerElement=8,Tt(Eh,"StructArrayLayout4ui8");class Ha extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h){const m=this.length;return this.resize(m+1),this.emplace(m,e,i,s,a,u,h)}emplace(e,i,s,a,u,h,m){const g=6*e;return this.int16[g+0]=i,this.int16[g+1]=s,this.int16[g+2]=a,this.int16[g+3]=u,this.int16[g+4]=h,this.int16[g+5]=m,e}}Ha.prototype.bytesPerElement=12,Tt(Ha,"StructArrayLayout6i12");class Fl extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m,g,x,T,S,A){const D=this.length;return this.resize(D+1),this.emplace(D,e,i,s,a,u,h,m,g,x,T,S,A)}emplace(e,i,s,a,u,h,m,g,x,T,S,A,D){const R=12*e;return this.int16[R+0]=i,this.int16[R+1]=s,this.int16[R+2]=a,this.int16[R+3]=u,this.uint16[R+4]=h,this.uint16[R+5]=m,this.uint16[R+6]=g,this.uint16[R+7]=x,this.int16[R+8]=T,this.int16[R+9]=S,this.int16[R+10]=A,this.int16[R+11]=D,e}}Fl.prototype.bytesPerElement=24,Tt(Fl,"StructArrayLayout4i4ui4i24");class Yn extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h){const m=this.length;return this.resize(m+1),this.emplace(m,e,i,s,a,u,h)}emplace(e,i,s,a,u,h,m){const g=10*e,x=5*e;return this.int16[g+0]=i,this.int16[g+1]=s,this.int16[g+2]=a,this.float32[x+2]=u,this.float32[x+3]=h,this.float32[x+4]=m,e}}Yn.prototype.bytesPerElement=20,Tt(Yn,"StructArrayLayout3i3f20");class Jo extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a){const u=this.length;return this.resize(u+1),this.emplace(u,e,i,s,a)}emplace(e,i,s,a,u){const h=4*e;return this.float32[h+0]=i,this.float32[h+1]=s,this.float32[h+2]=a,this.float32[h+3]=u,e}}Jo.prototype.bytesPerElement=16,Tt(Jo,"StructArrayLayout4f16");class yp extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.uint32[1*e+0]=i,e}}yp.prototype.bytesPerElement=4,Tt(yp,"StructArrayLayout1ul4");class ta extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i){const s=this.length;return this.resize(s+1),this.emplace(s,e,i)}emplace(e,i,s){const a=2*e;return this.uint16[a+0]=i,this.uint16[a+1]=s,e}}ta.prototype.bytesPerElement=4,Tt(ta,"StructArrayLayout2ui4");class vp extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m,g,x,T,S,A,D){const R=this.length;return this.resize(R+1),this.emplace(R,e,i,s,a,u,h,m,g,x,T,S,A,D)}emplace(e,i,s,a,u,h,m,g,x,T,S,A,D,R){const O=20*e,$=10*e;return this.int16[O+0]=i,this.int16[O+1]=s,this.int16[O+2]=a,this.int16[O+3]=u,this.int16[O+4]=h,this.float32[$+3]=m,this.float32[$+4]=g,this.float32[$+5]=x,this.float32[$+6]=T,this.int16[O+14]=S,this.uint32[$+8]=A,this.uint16[O+18]=D,this.uint16[O+19]=R,e}}vp.prototype.bytesPerElement=40,Tt(vp,"StructArrayLayout5i4f1i1ul2ui40");class Ah extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m){const g=this.length;return this.resize(g+1),this.emplace(g,e,i,s,a,u,h,m)}emplace(e,i,s,a,u,h,m,g){const x=8*e;return this.int16[x+0]=i,this.int16[x+1]=s,this.int16[x+2]=a,this.int16[x+4]=u,this.int16[x+5]=h,this.int16[x+6]=m,this.int16[x+7]=g,e}}Ah.prototype.bytesPerElement=16,Tt(Ah,"StructArrayLayout3i2i2i16");class Uc extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u){const h=this.length;return this.resize(h+1),this.emplace(h,e,i,s,a,u)}emplace(e,i,s,a,u,h){const m=4*e,g=8*e;return this.float32[m+0]=i,this.float32[m+1]=s,this.float32[m+2]=a,this.int16[g+6]=u,this.int16[g+7]=h,e}}Uc.prototype.bytesPerElement=16,Tt(Uc,"StructArrayLayout2f1f2i16");class xp extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h){const m=this.length;return this.resize(m+1),this.emplace(m,e,i,s,a,u,h)}emplace(e,i,s,a,u,h,m){const g=20*e,x=5*e;return this.uint8[g+0]=i,this.uint8[g+1]=s,this.float32[x+1]=a,this.float32[x+2]=u,this.float32[x+3]=h,this.float32[x+4]=m,e}}xp.prototype.bytesPerElement=20,Tt(xp,"StructArrayLayout2ub4f20");class _n extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,i,s)}emplace(e,i,s,a){const u=3*e;return this.uint16[u+0]=i,this.uint16[u+1]=s,this.uint16[u+2]=a,e}}_n.prototype.bytesPerElement=6,Tt(_n,"StructArrayLayout3ui6");class bp extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$,H,K,W,F,q){const Y=this.length;return this.resize(Y+1),this.emplace(Y,e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$,H,K,W,F,q)}emplace(e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$,H,K,W,F,q,Y){const te=30*e,de=15*e,ge=60*e;return this.int16[te+0]=i,this.int16[te+1]=s,this.int16[te+2]=a,this.float32[de+2]=u,this.float32[de+3]=h,this.uint16[te+8]=m,this.uint16[te+9]=g,this.uint32[de+5]=x,this.uint32[de+6]=T,this.uint32[de+7]=S,this.uint16[te+16]=A,this.uint16[te+17]=D,this.uint16[te+18]=R,this.float32[de+10]=O,this.float32[de+11]=$,this.uint8[ge+48]=H,this.uint8[ge+49]=K,this.uint8[ge+50]=W,this.uint32[de+13]=F,this.int16[te+28]=q,this.uint8[ge+58]=Y,e}}bp.prototype.bytesPerElement=60,Tt(bp,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class wp extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$,H,K,W,F,q,Y,te,de,ge,xe,Ce,Ue,et,Xe,Qe,ot,je){const Je=this.length;return this.resize(Je+1),this.emplace(Je,e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$,H,K,W,F,q,Y,te,de,ge,xe,Ce,Ue,et,Xe,Qe,ot,je)}emplace(e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$,H,K,W,F,q,Y,te,de,ge,xe,Ce,Ue,et,Xe,Qe,ot,je,Je){const Fe=20*e,Ve=40*e,lt=80*e;return this.float32[Fe+0]=i,this.float32[Fe+1]=s,this.int16[Ve+4]=a,this.int16[Ve+5]=u,this.int16[Ve+6]=h,this.int16[Ve+7]=m,this.int16[Ve+8]=g,this.int16[Ve+9]=x,this.int16[Ve+10]=T,this.int16[Ve+11]=S,this.int16[Ve+12]=A,this.uint16[Ve+13]=D,this.uint16[Ve+14]=R,this.uint16[Ve+15]=O,this.uint16[Ve+16]=$,this.uint16[Ve+17]=H,this.uint16[Ve+18]=K,this.uint16[Ve+19]=W,this.uint16[Ve+20]=F,this.uint16[Ve+21]=q,this.uint16[Ve+22]=Y,this.uint16[Ve+23]=te,this.uint16[Ve+24]=de,this.uint16[Ve+25]=ge,this.uint16[Ve+26]=xe,this.uint16[Ve+27]=Ce,this.uint32[Fe+14]=Ue,this.float32[Fe+15]=et,this.float32[Fe+16]=Xe,this.float32[Fe+17]=Qe,this.float32[Fe+18]=ot,this.uint8[lt+76]=je,this.uint16[Ve+39]=Je,e}}wp.prototype.bytesPerElement=80,Tt(wp,"StructArrayLayout2f9i15ui1ul4f1ub1ui80");class ia extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u){const h=this.length;return this.resize(h+1),this.emplace(h,e,i,s,a,u)}emplace(e,i,s,a,u,h){const m=5*e;return this.float32[m+0]=i,this.float32[m+1]=s,this.float32[m+2]=a,this.float32[m+3]=u,this.float32[m+4]=h,e}}ia.prototype.bytesPerElement=20,Tt(ia,"StructArrayLayout5f20");class $c extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m){const g=this.length;return this.resize(g+1),this.emplace(g,e,i,s,a,u,h,m)}emplace(e,i,s,a,u,h,m,g){const x=7*e;return this.float32[x+0]=i,this.float32[x+1]=s,this.float32[x+2]=a,this.float32[x+3]=u,this.float32[x+4]=h,this.float32[x+5]=m,this.float32[x+6]=g,e}}$c.prototype.bytesPerElement=28,Tt($c,"StructArrayLayout7f28");class Tp extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m,g,x,T,S){const A=this.length;return this.resize(A+1),this.emplace(A,e,i,s,a,u,h,m,g,x,T,S)}emplace(e,i,s,a,u,h,m,g,x,T,S,A){const D=11*e;return this.float32[D+0]=i,this.float32[D+1]=s,this.float32[D+2]=a,this.float32[D+3]=u,this.float32[D+4]=h,this.float32[D+5]=m,this.float32[D+6]=g,this.float32[D+7]=x,this.float32[D+8]=T,this.float32[D+9]=S,this.float32[D+10]=A,e}}Tp.prototype.bytesPerElement=44,Tt(Tp,"StructArrayLayout11f44");class Ih extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m,g,x){const T=this.length;return this.resize(T+1),this.emplace(T,e,i,s,a,u,h,m,g,x)}emplace(e,i,s,a,u,h,m,g,x,T){const S=9*e;return this.float32[S+0]=i,this.float32[S+1]=s,this.float32[S+2]=a,this.float32[S+3]=u,this.float32[S+4]=h,this.float32[S+5]=m,this.float32[S+6]=g,this.float32[S+7]=x,this.float32[S+8]=T,e}}Ih.prototype.bytesPerElement=36,Tt(Ih,"StructArrayLayout9f36");class qa extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i){const s=this.length;return this.resize(s+1),this.emplace(s,e,i)}emplace(e,i,s){const a=2*e;return this.float32[a+0]=i,this.float32[a+1]=s,e}}qa.prototype.bytesPerElement=8,Tt(qa,"StructArrayLayout2f8");class Sp extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,i,s,a){const u=this.length;return this.resize(u+1),this.emplace(u,e,i,s,a)}emplace(e,i,s,a,u){const h=6*e;return this.uint32[3*e+0]=i,this.uint16[h+2]=s,this.uint16[h+3]=a,this.uint16[h+4]=u,e}}Sp.prototype.bytesPerElement=12,Tt(Sp,"StructArrayLayout1ul3ui12");class Gc extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.uint16[1*e+0]=i,e}}Gc.prototype.bytesPerElement=2,Tt(Gc,"StructArrayLayout1ui2");class Bl extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$){const H=this.length;return this.resize(H+1),this.emplace(H,e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$)}emplace(e,i,s,a,u,h,m,g,x,T,S,A,D,R,O,$,H){const K=16*e;return this.float32[K+0]=i,this.float32[K+1]=s,this.float32[K+2]=a,this.float32[K+3]=u,this.float32[K+4]=h,this.float32[K+5]=m,this.float32[K+6]=g,this.float32[K+7]=x,this.float32[K+8]=T,this.float32[K+9]=S,this.float32[K+10]=A,this.float32[K+11]=D,this.float32[K+12]=R,this.float32[K+13]=O,this.float32[K+14]=$,this.float32[K+15]=H,e}}Bl.prototype.bytesPerElement=64,Tt(Bl,"StructArrayLayout16f64");class Hc extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,i,s,a,u,h,m){const g=this.length;return this.resize(g+1),this.emplace(g,e,i,s,a,u,h,m)}emplace(e,i,s,a,u,h,m,g){const x=10*e,T=5*e;return this.uint16[x+0]=i,this.uint16[x+1]=s,this.uint16[x+2]=a,this.uint16[x+3]=u,this.float32[T+2]=h,this.float32[T+3]=m,this.float32[T+4]=g,e}}Hc.prototype.bytesPerElement=20,Tt(Hc,"StructArrayLayout4ui3f20");class Ep extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e){const i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.int16[1*e+0]=i,e}}Ep.prototype.bytesPerElement=2,Tt(Ep,"StructArrayLayout1i2");class Ch extends Tr{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer)}emplaceBack(e){const i=this.length;return this.resize(i+1),this.emplace(i,e)}emplace(e,i){return this.uint8[1*e+0]=i,e}}Ch.prototype.bytesPerElement=1,Tt(Ch,"StructArrayLayout1ub1");class Hm extends Vc{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}Hm.prototype.size=40;class Mh extends vp{get(e){return new Hm(this,e)}}Tt(Mh,"CollisionBoxArray");class qm extends Vc{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(e){this._structArray.uint8[this._pos1+49]=e}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(e){this._structArray.uint8[this._pos1+50]=e}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(e){this._structArray.uint32[this._pos4+13]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(e){this._structArray.uint8[this._pos1+58]=e}}qm.prototype.size=60;class Zm extends bp{get(e){return new qm(this,e)}}Tt(Zm,"PlacedSymbolArray");class Wm extends Vc{get tileAnchorX(){return this._structArray.float32[this._pos4+0]}get tileAnchorY(){return this._structArray.float32[this._pos4+1]}get projectedAnchorX(){return this._structArray.int16[this._pos2+4]}get projectedAnchorY(){return this._structArray.int16[this._pos2+5]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+6]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+7]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+11]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get key(){return this._structArray.uint16[this._pos2+13]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+14]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+15]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+17]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+19]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+21]}get featureIndex(){return this._structArray.uint16[this._pos2+22]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+23]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numIconVertices(){return this._structArray.uint16[this._pos2+25]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+26]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+27]}get crossTileID(){return this._structArray.uint32[this._pos4+14]}set crossTileID(e){this._structArray.uint32[this._pos4+14]=e}get textOffset0(){return this._structArray.float32[this._pos4+15]}get textOffset1(){return this._structArray.float32[this._pos4+16]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+17]}get zOffset(){return this._structArray.float32[this._pos4+18]}set zOffset(e){this._structArray.float32[this._pos4+18]=e}get hasIconTextFit(){return this._structArray.uint8[this._pos1+76]}get elevationFeatureIndex(){return this._structArray.uint16[this._pos2+39]}}Wm.prototype.size=80;class Xm extends wp{get(e){return new Wm(this,e)}}Tt(Xm,"SymbolInstanceArray");class Ap extends kl{getoffsetX(e){return this.float32[1*e+0]}}Tt(Ap,"GlyphOffsetArray");class Ym extends ws{getx(e){return this.int16[2*e+0]}gety(e){return this.int16[2*e+1]}}Tt(Ym,"SymbolLineVertexArray");class Km extends Vc{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}Km.prototype.size=12;class Jm extends Sp{get(e){return new Km(this,e)}}Tt(Jm,"FeatureIndexArray");class Qm extends ta{geta_centroid_pos0(e){return this.uint16[2*e+0]}geta_centroid_pos1(e){return this.uint16[2*e+1]}}Tt(Qm,"FillExtrusionCentroidArray");class e_ extends Vc{get a_join_normal_inside0(){return this._structArray.int16[this._pos2+0]}get a_join_normal_inside1(){return this._structArray.int16[this._pos2+1]}get a_join_normal_inside2(){return this._structArray.int16[this._pos2+2]}}e_.prototype.size=6;class t_ extends Th{get(e){return new e_(this,e)}}Tt(t_,"FillExtrusionWallArray");const l0=Oi([{name:"a_pos",components:2,type:"Int16"}],4),c0=Oi([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class Cr{constructor(e=[]){this.segments=e}_prepareSegment(e,i,s,a){let u=this.segments[this.segments.length-1];return e>Cr.MAX_VERTEX_ARRAY_LENGTH&&yi(`Max vertices per segment is ${Cr.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!u||u.vertexLength+e>Cr.MAX_VERTEX_ARRAY_LENGTH||u.sortKey!==a)&&(u={vertexOffset:i,primitiveOffset:s,vertexLength:0,primitiveLength:0},a!==void 0&&(u.sortKey=a),this.segments.push(u)),u}prepareSegment(e,i,s,a){return this._prepareSegment(e,i.length,s.length,a)}get(){return this.segments}destroy(){for(const e of this.segments)for(const i in e.vaos)e.vaos[i].destroy()}static simpleSegment(e,i,s,a){return new Cr([{vertexOffset:e,primitiveOffset:i,vertexLength:s,primitiveLength:a,vaos:{},sortKey:0}])}}function i_(r,e){return 256*(r=Te(Math.floor(r),0,255))+Te(Math.floor(e),0,255)}Cr.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Tt(Cr,"SegmentVector");const u0=Oi([{name:"a_pattern",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),Nl=Oi([{name:"a_pattern_b",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),h0=Oi([{name:"a_dash",components:4,type:"Uint16"}]);class jl{constructor(){this.ids=[],this.uniqueIds=[],this.positions=[],this.indexed=!1}add(e,i,s,a){this.ids.push(r_(e)),this.positions.push(i,s,a)}eachPosition(e,i){const s=r_(e);let a=0,u=this.ids.length-1;for(;a<u;){const h=a+u>>1;this.ids[h]>=s?u=h:a=h+1}for(;this.ids[a]===s;)i(this.positions[3*a],this.positions[3*a+1],this.positions[3*a+2]),a++}static serialize(e,i){const s=new Float64Array(e.ids),a=new Uint32Array(e.positions);return Ph(s,a,0,s.length-1),i&&(i.add(s.buffer),i.add(a.buffer)),{ids:s,positions:a}}static deserialize(e){const i=new jl;let s;i.ids=e.ids,i.positions=e.positions;for(const a of i.ids)a!==s&&i.uniqueIds.push(a),s=a;return i.indexed=!0,i}}function r_(r){const e=+r;return!isNaN(e)&&Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:eo(String(r))}function Ph(r,e,i,s){for(;i<s;){const a=r[i+s>>1];let u=i-1,h=s+1;for(;;){do u++;while(r[u]<a);do h--;while(r[h]>a);if(u>=h)break;qc(r,u,h),qc(e,3*u,3*h),qc(e,3*u+1,3*h+1),qc(e,3*u+2,3*h+2)}h-i<s-h?(Ph(r,e,i,h),i=h+1):(Ph(r,e,h+1,s),s=h)}}function qc(r,e,i){const s=r[e];r[e]=r[i],r[i]=s}Tt(jl,"FeaturePositionMap");class Qo{constructor(e){this.gl=e.gl,this.initialized=!1}fetchUniformLocation(e,i){return this.location||this.initialized||(this.location=this.gl.getUniformLocation(e,i),this.initialized=!0),!!this.location}set(e,i,s){throw new Error("Uniform#set() must be implemented by each concrete Uniform")}}class Dh extends Qo{constructor(e){super(e),this.current=0}set(e,i,s){this.fetchUniformLocation(e,i)&&this.current!==s&&(this.current=s,this.gl.uniform1i(this.location,s))}}class Wr extends Qo{constructor(e){super(e),this.current=0}set(e,i,s){this.fetchUniformLocation(e,i)&&this.current!==s&&(this.current=s,this.gl.uniform1f(this.location,s))}}class Lo extends Qo{constructor(e){super(e),this.current=[0,0]}set(e,i,s){this.fetchUniformLocation(e,i)&&(s[0]===this.current[0]&&s[1]===this.current[1]||(this.current=s,this.gl.uniform2f(this.location,s[0],s[1])))}}class Zc extends Qo{constructor(e){super(e),this.current=[0,0,0]}set(e,i,s){this.fetchUniformLocation(e,i)&&(s[0]===this.current[0]&&s[1]===this.current[1]&&s[2]===this.current[2]||(this.current=s,this.gl.uniform3f(this.location,s[0],s[1],s[2])))}}class Rh extends Qo{constructor(e){super(e),this.current=[0,0,0,0]}set(e,i,s){this.fetchUniformLocation(e,i)&&(s[0]===this.current[0]&&s[1]===this.current[1]&&s[2]===this.current[2]&&s[3]===this.current[3]||(this.current=s,this.gl.uniform4f(this.location,s[0],s[1],s[2],s[3])))}}class n_ extends Qo{constructor(e){super(e),this.current=Bi.transparent.toRenderColor(null)}set(e,i,s){this.fetchUniformLocation(e,i)&&(s.r===this.current.r&&s.g===this.current.g&&s.b===this.current.b&&s.a===this.current.a||(this.current=s,this.gl.uniform4f(this.location,s.r,s.g,s.b,s.a)))}}const d0=new Float32Array(16);class Wc extends Qo{constructor(e){super(e),this.current=d0}set(e,i,s){if(this.fetchUniformLocation(e,i)){if(s[12]!==this.current[12]||s[0]!==this.current[0])return this.current=s,void this.gl.uniformMatrix4fv(this.location,!1,s);for(let a=1;a<16;a++)if(s[a]!==this.current[a]){this.current=s,this.gl.uniformMatrix4fv(this.location,!1,s);break}}}}const o_=new Float32Array(9),Ip=new Float32Array(4);class bo extends Qo{constructor(e){super(e),this.current=Ip}set(e,i,s){if(this.fetchUniformLocation(e,i)){for(let a=0;a<4;a++)if(s[a]!==this.current[a]){this.current=s,this.gl.uniformMatrix2fv(this.location,!1,s);break}}}}function Xc(r){return[i_(255*r.r,255*r.g),i_(255*r.b,255*r.a)]}class Yc{constructor(e,i,s,a){this.value=e,this.uniformNames=i.map(u=>`u_${u}`),this.type=s,this.context=a}setUniform(e,i,s,a,u){const h=a.constantOr(this.value);i.set(e,u,h instanceof Bi?h.toRenderColor(this.lutExpression&&this.lutExpression.value==="none"?null:this.context.lut):h)}getBinding(e,i){return this.type==="color"?new n_(e):new Wr(e)}}class Vl{constructor(e,i){this.uniformNames=i.map(s=>`u_${s}`),this.pattern=null,this.patternTransition=null,this.pixelRatio=1}setConstantPatternPositions(e,i){this.pixelRatio=e.pixelRatio||1,this.pattern=e.tl.concat(e.br),this.patternTransition=i?i.tl.concat(i.br):this.pattern}setUniform(e,i,s,a,u){let h=null;u!=="u_pattern"&&u!=="u_dash"||(h=this.pattern),u==="u_pattern_b"&&(h=this.patternTransition),u==="u_pixel_ratio"&&(h=this.pixelRatio),h&&i.set(e,u,h)}getBinding(e,i){return i==="u_pattern"||i==="u_pattern_b"||i==="u_dash"?new Rh(e):new Wr(e)}}class Ss{constructor(e,i,s,a){this.expression=e,this.type=s,this.maxValue=0,this.paintVertexAttributes=i.map(u=>({name:`a_${u}`,type:"Float32",components:s==="color"?2:1,offset:0})),this.paintVertexArray=new a}populatePaintArray(e,i,s,a,u,h,m){const g=this.paintVertexArray.length,x=this.expression.kind==="composite"||this.expression.kind==="source"?this.expression.evaluate(new Yi(0,{brightness:h}),i,{},u,a,m):this.expression.kind==="constant"&&this.expression.value,T=!!this.lutExpression&&(this.lutExpression.kind==="composite"||this.lutExpression.kind==="source"?this.lutExpression.evaluate(new Yi(0,{brightness:h}),i,{},u,a,m):this.lutExpression.value)==="none";this.paintVertexArray.resize(e),this._setPaintValue(g,e,x,T?null:this.context.lut)}updatePaintArray(e,i,s,a,u,h,m){const g=this.expression.kind==="composite"||this.expression.kind==="source"?this.expression.evaluate({zoom:0,brightness:m},s,a,void 0,u):this.expression.kind==="constant"&&this.expression.value,x=!!this.lutExpression&&(this.lutExpression.kind==="composite"||this.lutExpression.kind==="source"?this.lutExpression.evaluate(new Yi(0,{brightness:m}),s,a,void 0,u):this.lutExpression.value)==="none";this._setPaintValue(e,i,g,x?null:this.context.lut)}_setPaintValue(e,i,s,a){if(this.type==="color"){const u=Xc(s.toRenderColor(a));for(let h=e;h<i;h++)this.paintVertexArray.emplace(h,u[0],u[1])}else{for(let u=e;u<i;u++)this.paintVertexArray.emplace(u,s);this.maxValue=Math.max(this.maxValue,Math.abs(s))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.lutExpression&&this.lutExpression.kind!=="constant"&&(this.lutExpression.isStateDependent||!this.lutExpression.isLightConstant)||this.expression.kind!=="constant"&&(this.expression.isStateDependent||!this.expression.isLightConstant)))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class ko{constructor(e,i,s,a,u,h){this.expression=e,this.uniformNames=i.map(m=>`u_${m}_t`),this.type=s,this.useIntegerZoom=a,this.context=u,this.maxValue=0,this.paintVertexAttributes=i.map(m=>({name:`a_${m}`,type:"Float32",components:s==="color"?4:2,offset:0})),this.paintVertexArray=new h}populatePaintArray(e,i,s,a,u,h,m){const g=this.expression.evaluate(new Yi(this.context.zoom,{brightness:h}),i,{},u,a,m),x=this.expression.evaluate(new Yi(this.context.zoom+1,{brightness:h}),i,{},u,a,m),T=!!this.lutExpression&&(this.lutExpression.kind==="composite"||this.lutExpression.kind==="source"?this.lutExpression.evaluate(new Yi(0,{brightness:h}),i,{},u,a,m):this.lutExpression.value)==="none",S=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(S,e,g,x,T?null:this.context.lut)}updatePaintArray(e,i,s,a,u,h,m){const g=this.expression.evaluate({zoom:this.context.zoom,brightness:m},s,a,void 0,u),x=this.expression.evaluate({zoom:this.context.zoom+1,brightness:m},s,a,void 0,u),T=!!this.lutExpression&&(this.lutExpression.kind==="composite"||this.lutExpression.kind==="source"?this.lutExpression.evaluate(new Yi(0,{brightness:m}),s,a,void 0,u):this.lutExpression.value)==="none";this._setPaintValue(e,i,g,x,T?null:this.context.lut)}_setPaintValue(e,i,s,a,u){if(this.type==="color"){const h=Xc(s.toRenderColor(u)),m=Xc(s.toRenderColor(u));for(let g=e;g<i;g++)this.paintVertexArray.emplace(g,h[0],h[1],m[0],m[1])}else{for(let h=e;h<i;h++)this.paintVertexArray.emplace(h,s,a);this.maxValue=Math.max(this.maxValue,Math.abs(s),Math.abs(a))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent||!this.expression.isLightConstant))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(e,i,s,a,u){const h=this.useIntegerZoom?Math.floor(s.zoom):s.zoom,m=Te(this.expression.interpolationFactor(h,this.context.zoom,this.context.zoom+1),0,1);i.set(e,u,m)}getBinding(e,i){return new Wr(e)}}class Oo{constructor(e,i,s,a,u){this.expression=e,this.layerId=u,this.paintVertexAttributes=(s==="array"?h0:u0).members;for(let h=0;h<i.length;++h);this.paintVertexArray=new a,this.paintTransitionVertexArray=new Ts}populatePaintArray(e,i,s,a){const u=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValues(u,e,i.patterns&&i.patterns[this.layerId],s)}updatePaintArray(e,i,s,a,u,h,m){this._setPaintValues(e,i,s.patterns&&s.patterns[this.layerId],h)}_setPaintValues(e,i,s,a){if(!a||!s)return;const u=a[s[0]],h=a[s[1]];if(u){if(u){const{tl:m,br:g,pixelRatio:x}=u;for(let T=e;T<i;T++)this.paintVertexArray.emplace(T,m[0],m[1],g[0],g[1],x)}if(h){this.paintTransitionVertexArray.resize(this.paintVertexArray.length);const{tl:m,br:g,pixelRatio:x}=h;for(let T=e;T<i;T++)this.paintTransitionVertexArray.emplace(T,m[0],m[1],g[0],g[1],x)}}}upload(e){const i=this.expression.isStateDependent||!this.expression.isLightConstant;this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,i)),this.paintTransitionVertexArray&&this.paintTransitionVertexArray.length&&(this.paintTransitionVertexBuffer=e.createVertexBuffer(this.paintTransitionVertexArray,Nl.members,i))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy(),this.paintTransitionVertexBuffer&&this.paintTransitionVertexBuffer.destroy()}}class ra{constructor(e,i,s=()=>!0){this.binders={},this._buffers=[],this.context=i;const a=[];for(const u in e.paint._values){const h=e.paint.get(u);if(u.endsWith("-use-theme")||!s(u)||!(h instanceof zl&&uh(h.property.specification)))continue;const m=t(u,e.type),g=h.value,x=h.property.specification.type,T=!!h.property.useIntegerZoom,S=u==="line-dasharray"||u.endsWith("pattern"),A=e.paint.get(`${u}-use-theme`),D=u==="line-dasharray"&&e.layout.get("line-cap").value.kind!=="constant"||A&&A.value.kind!=="constant";if(g.kind!=="constant"||D)if(g.kind==="source"||D||S){const R=d(u,x,"source");this.binders[u]=S?new Oo(g,m,x,R,e.id):new Ss(g,m,x,R),a.push(`/a_${u}`)}else{const R=d(u,x,"composite");this.binders[u]=new ko(g,m,x,T,i,R),a.push(`/z_${u}`)}else this.binders[u]=S?new Vl(g.value,m):new Yc(g.value,m,x,i),a.push(`/u_${u}`);A&&(this.binders[u].lutExpression=A.value)}this.cacheKey=a.sort().join("")}getMaxValue(e){const i=this.binders[e];return i instanceof Ss||i instanceof ko?i.maxValue:0}populatePaintArrays(e,i,s,a,u,h,m){for(const g in this.binders){const x=this.binders[g];x.context=this.context,(x instanceof Ss||x instanceof ko||x instanceof Oo)&&x.populatePaintArray(e,i,s,a,u,h,m)}}setConstantPatternPositions(e,i){for(const s in this.binders){const a=this.binders[s];a instanceof Vl&&a.setConstantPatternPositions(e,i)}}getPatternTransitionVertexBuffer(e){const i=this.binders[e];return i instanceof Oo?i.paintTransitionVertexBuffer:null}updatePaintArrays(e,i,s,a,u,h,m,g,x){let T=!1;const S=Object.keys(e),A=S.length!==0&&!g,D=A?S:i.uniqueIds;this.context.lut=u.lut;for(const R in this.binders){const O=this.binders[R];if(O.context=this.context,(O instanceof Ss||O instanceof ko||O instanceof Oo)&&O.expression&&O.expression.kind&&O.expression.kind!=="constant"&&(O.expression.isStateDependent===!0||O.expression.isLightConstant===!1)){const $=u.paint.get(R);O.expression=$.value;for(const H of D){const K=e[H.toString()];i.eachPosition(H,(W,F,q)=>{const Y=a.feature(W);O.updatePaintArray(F,q,Y,K,h,m,x)})}if(!A)for(const H of s.uniqueIds){const K=e[H.toString()];s.eachPosition(H,(W,F,q)=>{const Y=a.feature(W);O.updatePaintArray(F,q,Y,K,h,m,x)})}T=!0}}return T}defines(){const e=[];for(const i in this.binders){const s=this.binders[i];(s instanceof Yc||s instanceof Vl)&&e.push(...s.uniformNames.map(a=>`#define HAS_UNIFORM_${a}`))}return e}getBinderAttributes(){const e=[];for(const i in this.binders){const s=this.binders[i];if(s instanceof Ss||s instanceof ko||s instanceof Oo)for(let a=0;a<s.paintVertexAttributes.length;a++)e.push(s.paintVertexAttributes[a].name);if(s instanceof Oo)for(let a=0;a<Nl.members.length;a++)e.push(Nl.members[a].name)}return e}getBinderUniforms(){const e=[];for(const i in this.binders){const s=this.binders[i];if(s instanceof Yc||s instanceof Vl||s instanceof ko)for(const a of s.uniformNames)e.push(a)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e){const i=[];for(const s in this.binders){const a=this.binders[s];if(a instanceof Yc||a instanceof Vl||a instanceof ko)for(const u of a.uniformNames)i.push({name:u,property:s,binding:a.getBinding(e,u)})}return i}setUniforms(e,i,s,a,u){for(const{name:h,property:m,binding:g}of s)this.binders[m].setUniform(e,g,u,a.get(m),h)}updatePaintBuffers(){this._buffers=[];for(const e in this.binders){const i=this.binders[e];(i instanceof Ss||i instanceof ko||i instanceof Oo)&&i.paintVertexBuffer&&this._buffers.push(i.paintVertexBuffer),i instanceof Oo&&i.paintTransitionVertexBuffer&&this._buffers.push(i.paintTransitionVertexBuffer)}}upload(e){for(const i in this.binders){const s=this.binders[i];(s instanceof Ss||s instanceof ko||s instanceof Oo)&&s.upload(e)}this.updatePaintBuffers()}destroy(){for(const e in this.binders){const i=this.binders[e];(i instanceof Ss||i instanceof ko||i instanceof Oo)&&i.destroy()}}}class Za{constructor(e,i,s=()=>!0){this.programConfigurations={};for(const a of e)this.programConfigurations[a.id]=new ra(a,i,s);this.needsUpload=!1,this._featureMap=new jl,this._featureMapWithoutIds=new jl,this._bufferOffset=0,this._idlessCounter=0}populatePaintArrays(e,i,s,a,u,h,m,g){for(const x in this.programConfigurations)this.programConfigurations[x].populatePaintArrays(e,i,a,u,h,m,g);i.id!==void 0?this._featureMap.add(i.id,s,this._bufferOffset,e):(this._featureMapWithoutIds.add(this._idlessCounter,s,this._bufferOffset,e),this._idlessCounter+=1),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,i,s,a,u,h,m){for(const g of s)this.needsUpload=this.programConfigurations[g.id].updatePaintArrays(e,this._featureMap,this._featureMapWithoutIds,i,g,a,u,h,m||0)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const i in this.programConfigurations)this.programConfigurations[i].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}const l={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-occlusion-opacity":["occlusion_opacity"],"icon-occlusion-opacity":["occlusion_opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-emissive-strength":["emissive_strength"],"icon-emissive-strength":["emissive_strength"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"symbol-z-offset":["z_offset"],"line-gap-width":["gapwidth"],"line-pattern":["pattern","pixel_ratio","pattern_b"],"fill-pattern":["pattern","pixel_ratio","pattern_b"],"fill-extrusion-pattern":["pattern","pixel_ratio","pattern_b"],"line-dasharray":["dash"]};function t(r,e){return l[r]||[r.replace(`${e}-`,"").replace(/-/g,"_")]}const n={"line-pattern":{source:Ts,composite:Ts},"fill-pattern":{source:Ts,composite:Ts},"fill-extrusion-pattern":{source:Ts,composite:Ts},"line-dasharray":{source:Eh,composite:Eh}},c={color:{source:qa,composite:Jo},number:{source:kl,composite:qa}};function d(r,e,i){const s=n[r];return s&&s[i]||c[e][i]}Tt(Yc,"ConstantBinder"),Tt(Vl,"PatternConstantBinder"),Tt(Ss,"SourceExpressionBinder"),Tt(Oo,"PatternCompositeBinder"),Tt(ko,"CompositeExpressionBinder"),Tt(ra,"ProgramConfiguration",{omit:["_buffers"]}),Tt(Za,"ProgramConfigurationSet");const f=_t/Math.PI/2,_=5,v=6,b=16383,E=64,C=[E,32,16],P=-f,M=f;function L(r,e,i,s=f){return i=U(i),[r*Math.sin(i)*s,-e*s,r*Math.cos(i)*s]}function j(r,e,i){return L(Math.cos(U(r)),Math.sin(U(r)),e,i)}const N=63710088e-1,G=2*Math.PI*N;class V{constructor(e,i){if(isNaN(e)||isNaN(i))throw new Error(`Invalid LngLat object: (${e}, ${i})`);if(this.lng=+e,this.lat=+i,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new V(Be(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const i=Math.PI/180,s=this.lat*i,a=e.lat*i,u=Math.sin(s)*Math.sin(a)+Math.cos(s)*Math.cos(a)*Math.cos((e.lng-this.lng)*i);return N*Math.acos(Math.min(u,1))}toBounds(e=0){const i=360*e/40075017,s=i/Math.cos(Math.PI/180*this.lat);return new X({lng:this.lng-s,lat:this.lat-i},{lng:this.lng+s,lat:this.lat+i})}toEcef(e){return j(this.lat,this.lng,f+e*f/N)}static convert(e){if(e instanceof V)return e;if(Array.isArray(e)&&(e.length===2||e.length===3))return new V(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&typeof e=="object"&&e!==null)return new V(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}class X{constructor(e,i){if(e)if(i)this.setSouthWest(e).setNorthEast(i);else if(e.length===4){const s=e;this.setSouthWest([s[0],s[1]]).setNorthEast([s[2],s[3]])}else{const s=e;this.setSouthWest(s[0]).setNorthEast(s[1])}}setNorthEast(e){return this._ne=e instanceof V?new V(e.lng,e.lat):V.convert(e),this}setSouthWest(e){return this._sw=e instanceof V?new V(e.lng,e.lat):V.convert(e),this}extend(e){const i=this._sw,s=this._ne;let a,u;if(e instanceof V)a=e,u=e;else{if(!(e instanceof X))return Array.isArray(e)?e.length===4||e.every(Array.isArray)?this.extend(X.convert(e)):this.extend(V.convert(e)):typeof e=="object"&&e!==null&&e.hasOwnProperty("lat")&&(e.hasOwnProperty("lon")||e.hasOwnProperty("lng"))?this.extend(V.convert(e)):this;if(a=e._sw,u=e._ne,!a||!u)return this}return i||s?(i.lng=Math.min(a.lng,i.lng),i.lat=Math.min(a.lat,i.lat),s.lng=Math.max(u.lng,s.lng),s.lat=Math.max(u.lat,s.lat)):(this._sw=new V(a.lng,a.lat),this._ne=new V(u.lng,u.lat)),this}getCenter(){return new V((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new V(this.getWest(),this.getNorth())}getSouthEast(){return new V(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(e){const{lng:i,lat:s}=V.convert(e);let a=this._sw.lng<=i&&i<=this._ne.lng;return this._sw.lng>this._ne.lng&&(a=this._sw.lng>=i&&i>=this._ne.lng),this._sw.lat<=s&&s<=this._ne.lat&&a}static convert(e){if(e)return e instanceof X?e:new X(e)}}const ee=0,re=25.5;function he(r){return G*Math.cos(r*Math.PI/180)}function le(r){return(180+r)/360}function ce(r){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r*Math.PI/360)))/360}function ne(r,e){return r/he(e)}function pe(r){return 360*r-180}function me(r){return 360/Math.PI*Math.atan(Math.exp((180-360*r)*Math.PI/180))-90}function Le(r,e){return r*he(me(e))}const Me=85.051129;function Ze(r){return Math.cos(U(Te(r,-Me,Me)))}function He(r,e){const i=Te(e,ee,re),s=Math.pow(2,i);return Ze(r)*G/(512*s)}function ut(r){return 1/Math.cos(r*Math.PI/180)}function Pe(r,e=0){const i=Math.exp(Math.PI*(1-(r.y+e/_t)/(1<<r.z)*2));return 80150034*i/(i*i+1)/_t/(1<<r.z)}class ke{constructor(e,i,s=0){this.x=+e,this.y=+i,this.z=+s}static fromLngLat(e,i=0){const s=V.convert(e);return new ke(le(s.lng),ce(s.lat),ne(i,s.lat))}toLngLat(){return new V(pe(this.x),me(this.y))}toAltitude(){return Le(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/G*ut(me(this.y))}}function Ie(r,e,i,s,a,u,h,m,g){const x=(e+s)/2,T=(i+a)/2,S=new ft(x,T);m(S),function(A,D,R,O,$,H){const K=R-$,W=O-H;return Math.abs((O-D)*K-(R-A)*W)/Math.hypot(K,W)}(S.x,S.y,u.x,u.y,h.x,h.y)>=g?(Ie(r,e,i,x,T,u,S,m,g),Ie(r,x,T,s,a,S,h,m,g)):r.push(h)}function Ye(r,e,i){let s=r[0],a=s.x,u=s.y;e(s);const h=[s];for(let m=1;m<r.length;m++){const g=r[m],{x,y:T}=g;e(g),Ie(h,a,u,x,T,s,g,e,i),a=x,u=T,s=g}return h}function Ne(r,e,i,s){if(s(e,i)){const a=e.add(i)._mult(.5);Ne(r,e,a,s),Ne(r,a,i,s)}else r.push(i)}function it(r,e){let i=r[0];const s=[i];for(let a=1;a<r.length;a++){const u=r[a];Ne(s,i,u,e),i=u}return s}const We=Math.pow(2,14)-1,rt=-We-1;function nt(r,e){const i=Math.round(r.x*e),s=Math.round(r.y*e);return r.x=Te(i,rt,We),r.y=Te(s,rt,We),(i<r.x||i>r.x+1||s<r.y||s>r.y+1)&&yi("Geometry exceeds allowed extent, reduce your vector tile buffer size"),r}function At(r,e,i){const s=r.loadGeometry(),a=r.extent,u=_t/a;if(e&&i&&i.projection.isReprojectedInTileSpace){const h=1<<e.z,{scale:m,x:g,y:x,projection:T}=i,S=A=>{const D=pe((e.x+A.x/a)/h),R=me((e.y+A.y/a)/h),O=T.project(D,R);A.x=(O.x*m-g)*a,A.y=(O.y*m-x)*a};for(let A=0;A<s.length;A++)if(r.type!==1)s[A]=Ye(s[A],S,1);else{const D=[];for(const R of s[A])R.x<0||R.x>=a||R.y<0||R.y>=a||(S(R),D.push(R));s[A]=D}}for(const h of s)for(const m of h)nt(m,u);return s}function Lt(r,e){return{type:r.type,id:r.id,properties:r.properties,geometry:e?At(r):[]}}function St(r,e,i,s,a){r.emplaceBack(2*e+(s+1)/2,2*i+(a+1)/2)}function kt(r,e,i){r.emplaceBack(e.x,e.y,e.z,i[0]*16384,i[1]*16384,i[2]*16384)}class Ct{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(i=>i.fqid),this.index=e.index,this.hasPattern=!1,this.projection=e.projection,this.layoutVertexArray=new ws,this.indexArray=new _n,this.segments=new Cr,this.programConfigurations=new Za(e.layers,{zoom:e.zoom,lut:e.lut}),this.stateDependentLayerIds=this.layers.filter(i=>i.isStateDependent()).map(i=>i.id)}updateFootprints(e,i){}populate(e,i,s,a){const u=this.layers[0],h=[];let m=null;u.type==="circle"&&(m=u.layout.get("circle-sort-key"));for(const{feature:x,id:T,index:S,sourceLayerIndex:A}of e){const D=this.layers[0]._featureFilter.needGeometry,R=Lt(x,D);if(!this.layers[0]._featureFilter.filter(new Yi(this.zoom),R,s))continue;const O=m?m.evaluate(R,{},s):void 0,$={id:T,properties:x.properties,type:x.type,sourceLayerIndex:A,index:S,geometry:D?R.geometry:At(x,s,a),patterns:{},sortKey:O};h.push($)}m&&h.sort((x,T)=>x.sortKey-T.sortKey);let g=null;a.projection.name==="globe"&&(this.globeExtVertexArray=new Ha,g=a.projection);for(const x of h){const{geometry:T,index:S,sourceLayerIndex:A}=x,D=e[S].feature;this.addFeature(x,T,S,i.availableImages,s,g,i.brightness),i.featureIndex.insert(D,T,S,A,this.index)}}update(e,i,s,a,u,h,m){this.programConfigurations.updatePaintArrays(e,i,u,s,a,h,m)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,l0.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,c0.members))),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(e,i,s,a,u,h,m){for(const g of i)for(const x of g){const T=x.x,S=x.y;if(T<0||T>=_t||S<0||S>=_t)continue;if(h){const R=h.projectTilePoint(T,S,u),O=h.upVector(u,T,S),$=this.globeExtVertexArray;kt($,R,O),kt($,R,O),kt($,R,O),kt($,R,O)}const A=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),D=A.vertexLength;St(this.layoutVertexArray,T,S,-1,-1),St(this.layoutVertexArray,T,S,1,-1),St(this.layoutVertexArray,T,S,1,1),St(this.layoutVertexArray,T,S,-1,1),this.indexArray.emplaceBack(D,D+1,D+2),this.indexArray.emplaceBack(D,D+2,D+3),A.vertexLength+=4,A.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,s,{},a,u,m)}}function Vt(r,e){for(let i=0;i<r.length;i++)if(Ji(e,r[i]))return!0;for(let i=0;i<e.length;i++)if(Ji(r,e[i]))return!0;return!!Gi(r,e)}function Kt(r,e,i){return!!Ji(r,e)||!!ei(e,r,i)}function _i(r,e){if(r.length===1)return Li(e,r[0]);for(let i=0;i<e.length;i++){const s=e[i];for(let a=0;a<s.length;a++)if(Ji(r,s[a]))return!0}for(let i=0;i<r.length;i++)if(Li(e,r[i]))return!0;for(let i=0;i<e.length;i++)if(Gi(r,e[i]))return!0;return!1}function Ki(r,e,i){if(r.length>1){if(Gi(r,e))return!0;for(let s=0;s<e.length;s++)if(ei(e[s],r,i))return!0}for(let s=0;s<r.length;s++)if(ei(r[s],e,i))return!0;return!1}function Gi(r,e){if(r.length===0||e.length===0)return!1;for(let i=0;i<r.length-1;i++){const s=r[i],a=r[i+1];for(let u=0;u<e.length-1;u++)if(vi(s,a,e[u],e[u+1]))return!0}return!1}function vi(r,e,i,s){return sr(r,i,s)!==sr(e,i,s)&&sr(r,e,i)!==sr(r,e,s)}function kr(r,e,i){return(r.x-i.x)*(e.y-i.y)-(r.y-i.y)*(e.x-i.x)}function Ir(r,e,i,s){const a=kr(r,e,s),u=kr(r,e,i);if(Math.sign(a)===Math.sign(u))return;const h=kr(i,s,r),m=h+u-a;return Math.sign(h)!==Math.sign(m)?[h/(h-m),u/(u-a)]:void 0}function ei(r,e,i){const s=i*i;if(e.length===1)return r.distSqr(e[0])<s;for(let a=1;a<e.length;a++)if(Ai(r,e[a-1],e[a])<s)return!0;return!1}function Ai(r,e,i){const s=e.distSqr(i);if(s===0)return r.distSqr(e);const a=((r.x-e.x)*(i.x-e.x)+(r.y-e.y)*(i.y-e.y))/s;return r.distSqr(a<0?e:a>1?i:i.sub(e)._mult(a)._add(e))}function Li(r,e){let i,s,a,u=!1;for(let h=0;h<r.length;h++){i=r[h];for(let m=0,g=i.length-1;m<i.length;g=m++)s=i[m],a=i[g],s.y>e.y!=a.y>e.y&&e.x<(a.x-s.x)*(e.y-s.y)/(a.y-s.y)+s.x&&(u=!u)}return u}function Ji(r,e){let i=!1;for(let s=0,a=r.length-1;s<r.length;a=s++){const u=r[s],h=r[a];u.y>e.y!=h.y>e.y&&e.x<(h.x-u.x)*(e.y-u.y)/(h.y-u.y)+u.x&&(i=!i)}return i}function Kr(r,e,i,s,a){for(const h of r)if(e<=h.x&&i<=h.y&&s>=h.x&&a>=h.y)return!0;const u=[new ft(e,i),new ft(e,a),new ft(s,a),new ft(s,i)];if(r.length>2){for(const h of u)if(Ji(r,h))return!0}for(let h=0;h<r.length-1;h++)if(jr(r[h],r[h+1],u))return!0;return!1}function jr(r,e,i){const s=i[0],a=i[2];if(r.x<s.x&&e.x<s.x||r.x>a.x&&e.x>a.x||r.y<s.y&&e.y<s.y||r.y>a.y&&e.y>a.y)return!1;const u=sr(r,e,i[0]);return u!==sr(r,e,i[1])||u!==sr(r,e,i[2])||u!==sr(r,e,i[3])}function Xr(r,e,i,s,a,u){let h=e.y-r.y,m=r.x-e.x;if(u=u||0){const g=h*h+m*m;if(g===0)return!0;const x=Math.sqrt(g);h/=x,m/=x}return!((i.x-r.x)*h+(i.y-r.y)*m-u<0||(s.x-r.x)*h+(s.y-r.y)*m-u<0||(a.x-r.x)*h+(a.y-r.y)*m-u<0)}function Sr(r,e,i,s,a,u,h){return!(Xr(r,e,s,a,u,h)||Xr(e,i,s,a,u,h)||Xr(i,r,s,a,u,h)||Xr(s,a,r,e,i,h)||Xr(a,u,r,e,i,h)||Xr(u,s,r,e,i,h))}function si(r,e,i){const s=e.paint.get(r).value;return s.kind==="constant"?s.value:i.programConfigurations.get(e.id).getMaxValue(r)}function yr(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Di(r,e,i,s,a){if(!e[0]&&!e[1])return r;const u=ft.convert(e)._mult(a);i==="viewport"&&u._rotate(-s);const h=[];for(let m=0;m<r.length;m++)h.push(r[m].sub(u));return h}function vr(r,e,i,s){const a=ft.convert(r)._mult(s);return e==="viewport"&&a._rotate(-i),a}let Ni,Er;function gn(r,e,i){var s=2*Math.PI*6378137/256/Math.pow(2,i);return[r*s-2*Math.PI*6378137/2,e*s-2*Math.PI*6378137/2]}Tt(Ct,"CircleBucket",{omit:["layers"]});class hr{constructor(e,i,s){this.z=e,this.x=i,this.y=s,this.key=Sn(0,e,e,i,s)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,i){const s=function(u,h,m){var g=gn(256*u,256*(h=Math.pow(2,m)-h-1),m),x=gn(256*(u+1),256*(h+1),m);return g[0]+","+g[1]+","+x[0]+","+x[1]}(this.x,this.y,this.z),a=function(u,h,m){let g,x="";for(let T=u;T>0;T--)g=1<<T-1,x+=(h&g?1:0)+(m&g?2:0);return x}(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String(i==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",a).replace("{bbox-epsg-3857}",s)}toString(){return`${this.z}/${this.x}/${this.y}`}}class bn{constructor(e,i){this.wrap=e,this.canonical=i,this.key=Sn(e,i.z,i.z,i.x,i.y)}}class Zr{constructor(e,i,s,a,u){this.overscaledZ=e,this.wrap=i,this.canonical=new hr(s,+a,+u),this.key=i===0&&e===s?this.canonical.key:Sn(i,e,s,a,u)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){const i=this.canonical.z-e;return e>this.canonical.z?new Zr(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Zr(e,this.wrap,e,this.canonical.x>>i,this.canonical.y>>i)}calculateScaledKey(e,i=!0){if(this.overscaledZ===e&&i)return this.key;if(e>this.canonical.z)return Sn(this.wrap*+i,e,this.canonical.z,this.canonical.x,this.canonical.y);{const s=this.canonical.z-e;return Sn(this.wrap*+i,e,e,this.canonical.x>>s,this.canonical.y>>s)}}isChildOf(e){if(e.wrap!==this.wrap)return!1;const i=this.canonical.z-e.canonical.z;return e.overscaledZ===0||e.overscaledZ<this.overscaledZ&&e.canonical.z<this.canonical.z&&e.canonical.x===this.canonical.x>>i&&e.canonical.y===this.canonical.y>>i}children(e){if(this.overscaledZ>=e)return[new Zr(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const i=this.canonical.z+1,s=2*this.canonical.x,a=2*this.canonical.y;return[new Zr(i,this.wrap,i,s,a),new Zr(i,this.wrap,i,s+1,a),new Zr(i,this.wrap,i,s,a+1),new Zr(i,this.wrap,i,s+1,a+1)]}isLessThan(e){return this.wrap<e.wrap||!(this.wrap>e.wrap)&&(this.overscaledZ<e.overscaledZ||!(this.overscaledZ>e.overscaledZ)&&(this.canonical.x<e.canonical.x||!(this.canonical.x>e.canonical.x)&&this.canonical.y<e.canonical.y))}wrapped(){return new Zr(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(e){return new Zr(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new bn(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}}function Sn(r,e,i,s,a){const u=1<<Math.min(i,22);let h=u*(a%u)+s%u;return r&&i<22&&(h+=u*u*((r<0?-2*r-1:2*r)%(1<<2*(22-i)))),16*(32*h+i)+(e-i)}const Fo=[r=>{let e=r.canonical.x-1,i=r.wrap;return e<0&&(e=(1<<r.canonical.z)-1,i--),new Zr(r.overscaledZ,i,r.canonical.z,e,r.canonical.y)},r=>{let e=r.canonical.x+1,i=r.wrap;return e===1<<r.canonical.z&&(e=0,i++),new Zr(r.overscaledZ,i,r.canonical.z,e,r.canonical.y)},r=>new Zr(r.overscaledZ,r.wrap,r.canonical.z,r.canonical.x,(r.canonical.y===0?1<<r.canonical.z:r.canonical.y)-1),r=>new Zr(r.overscaledZ,r.wrap,r.canonical.z,r.canonical.x,r.canonical.y===(1<<r.canonical.z)-1?0:r.canonical.y+1)];Tt(hr,"CanonicalTileID"),Tt(Zr,"OverscaledTileID",{omit:["projMatrix","expandedProjMatrix"]});const Es=Oi([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:ro}=Es,wo=Oi([{name:"a_pos_3",components:3,type:"Int16"}]);var es=Oi([{name:"a_pos",type:"Int16",components:2}]);class ts{constructor(e,i){this.pos=e,this.dir=i}intersectsPlane(e,i,s){const a=Ar(i,this.dir);if(Math.abs(a)<1e-6)return!1;const u=((e[0]-this.pos[0])*i[0]+(e[1]-this.pos[1])*i[1])/a;return s[0]=this.pos[0]+this.dir[0]*u,s[1]=this.pos[1]+this.dir[1]*u,!0}}class Bo{constructor(e,i){this.pos=e,this.dir=i}intersectsPlane(e,i,s){const a=Xi(i,this.dir);if(Math.abs(a)<1e-6)return!1;const u=((e[0]-this.pos[0])*i[0]+(e[1]-this.pos[1])*i[1]+(e[2]-this.pos[2])*i[2])/a;return s[0]=this.pos[0]+this.dir[0]*u,s[1]=this.pos[1]+this.dir[1]*u,s[2]=this.pos[2]+this.dir[2]*u,!0}closestPointOnSphere(e,i,s){if(function(D,R){var O=D[0],$=D[1],H=D[2],K=R[0],W=R[1],F=R[2];return Math.abs(O-K)<=J*Math.max(1,Math.abs(O),Math.abs(K))&&Math.abs($-W)<=J*Math.max(1,Math.abs($),Math.abs(W))&&Math.abs(H-F)<=J*Math.max(1,Math.abs(H),Math.abs(F))}(this.pos,e)||i===0)return s[0]=s[1]=s[2]=0,!1;const[a,u,h]=this.dir,m=this.pos[0]-e[0],g=this.pos[1]-e[1],x=this.pos[2]-e[2],T=a*a+u*u+h*h,S=2*(m*a+g*u+x*h),A=S*S-4*T*(m*m+g*g+x*x-i*i);if(A<0){const D=Math.max(-S/2,0),R=m+a*D,O=g+u*D,$=x+h*D,H=Math.hypot(R,O,$);return s[0]=R*i/H,s[1]=O*i/H,s[2]=$*i/H,!1}{const D=(-S-Math.sqrt(A))/(2*T);if(D<0){const R=Math.hypot(m,g,x);return s[0]=m*i/R,s[1]=g*i/R,s[2]=x*i/R,!1}return s[0]=m+a*D,s[1]=g+u*D,s[2]=x+h*D,!0}}}class Ul{constructor(e,i,s,a,u){this.TL=e,this.TR=i,this.BR=s,this.BL=a,this.horizon=u}static fromInvProjectionMatrix(e,i,s){const a=[-1,1,1],u=[1,1,1],h=[1,-1,1],m=[-1,-1,1],g=gr(a,a,e),x=gr(u,u,e),T=gr(h,h,e),S=gr(m,m,e);return new Ul(g,x,T,S,i/s)}}function Wa(r,e,i){let s=1/0,a=-1/0;const u=[];for(const h of r){Ti(u,h,e);const m=Xi(u,i);s=Math.min(s,m),a=Math.max(a,m)}return[s,a]}function zh(r,e){let i=!0;for(let s=0;s<r.planes.length;s++){const a=r.planes[s];let u=0;for(let h=0;h<e.length;h++)u+=Xi(a,e[h])+a[3]>=0;if(u===0)return 0;u!==e.length&&(i=!1)}return i?2:1}function Lh(r,e){for(const i of r.projections){const s=Wa(e,r.points[0],i.axis);if(i.projection[1]<s[0]||i.projection[0]>s[1])return 0}return 1}function kh(r,e){let i=0;const s=[0,0,0,0];for(let h=0;h<r.length;h++)s[0]=r[h][0],s[1]=r[h][1],s[2]=r[h][2],s[3]=1,(a=s)[0]*(u=e)[0]+a[1]*u[1]+a[2]*u[2]+a[3]*u[3]>=0&&i++;var a,u;return i}class Kc{constructor(e,i){this.points=e||new Array(8).fill([0,0,0]),this.planes=i||new Array(6).fill([0,0,0,0]),this.bounds=xr.fromPoints(this.points),this.projections=[],this.frustumEdges=[Ti([],this.points[2],this.points[3]),Ti([],this.points[0],this.points[3]),Ti([],this.points[4],this.points[0]),Ti([],this.points[5],this.points[1]),Ti([],this.points[6],this.points[2]),Ti([],this.points[7],this.points[3])];for(const s of this.frustumEdges){const a=[0,-s[2],s[1]],u=[s[2],0,-s[0]];this.projections.push({axis:a,projection:Wa(this.points,this.points[0],a)}),this.projections.push({axis:u,projection:Wa(this.points,this.points[0],u)})}}static fromInvProjectionMatrix(e,i,s,a){const u=Math.pow(2,s),h=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(x=>{const T=Dr([],x,e),S=1/T[3]/i*u;return(A=T)[0]=(D=T)[0]*(R=[S,S,a?1/T[3]:S,S])[0],A[1]=D[1]*R[1],A[2]=D[2]*R[2],A[3]=D[3]*R[3],A;var A,D,R}),m=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(x=>{const T=Ui([],Lr([],Ti([],h[x[0]],h[x[1]]),Ti([],h[x[2]],h[x[1]]))),S=-Xi(T,h[x[1]]);return T.concat(S)}),g=[];for(let x=0;x<h.length;x++)g.push([h[x][0],h[x][1],h[x][2]]);return new Kc(g,m)}intersectsPrecise(e,i,s){for(let a=0;a<i.length;a++)if(!kh(e,i[a]))return 0;for(let a=0;a<this.planes.length;a++)if(!kh(e,this.planes[a]))return 0;for(const a of s)for(const u of this.frustumEdges){const h=Lr([],a,u),m=gi(h);if(m===0)continue;Ei(h,h,1/m);const g=Wa(this.points,this.points[0],h),x=Wa(e,this.points[0],h);if(g[0]>x[1]||x[0]>g[1])return 0}return 1}containsPoint(e){for(const i of this.planes){const s=i[3];if(Xi([i[0],i[1],i[2]],e)+s<0)return!1}return!0}}class xr{static fromPoints(e){const i=[1/0,1/0,1/0],s=[-1/0,-1/0,-1/0];for(const a of e)Wi(i,i,a),or(s,s,a);return new xr(i,s)}static fromTileIdAndHeight(e,i,s){const a=1<<e.canonical.z,u=e.canonical.x,h=e.canonical.y;return new xr([u/a,h/a,i],[(u+1)/a,(h+1)/a,s])}static applyTransform(e,i){const s=e.getCorners();for(let a=0;a<s.length;++a)gr(s[a],s[a],i);return xr.fromPoints(s)}static applyTransformFast(e,i){const s=[i[12],i[13],i[14]],a=[...s];for(let u=0;u<3;u++)for(let h=0;h<3;h++){const m=i[4*h+u],g=m*e.min[h],x=m*e.max[h];s[u]+=Math.min(g,x),a[u]+=Math.max(g,x)}return new xr(s,a)}static projectAabbCorners(e,i){const s=e.getCorners();for(let a=0;a<s.length;++a)gr(s[a],s[a],i);return s}constructor(e,i){this.min=e,this.max=i,this.center=Ei([],Yt([],this.min,this.max),.5)}quadrant(e){const i=[e%2==0,e<2],s=Mi(this.min),a=Mi(this.max);for(let u=0;u<i.length;u++)s[u]=i[u]?this.min[u]:this.center[u],a[u]=i[u]?this.center[u]:this.max[u];return a[2]=this.max[2],new xr(s,a)}distanceX(e){return Math.max(Math.min(this.max[0],e[0]),this.min[0])-e[0]}distanceY(e){return Math.max(Math.min(this.max[1],e[1]),this.min[1])-e[1]}distanceZ(e){return Math.max(Math.min(this.max[2],e[2]),this.min[2])-e[2]}getCorners(){const e=this.min,i=this.max;return[[e[0],e[1],e[2]],[i[0],e[1],e[2]],[i[0],i[1],e[2]],[e[0],i[1],e[2]],[e[0],e[1],i[2]],[i[0],e[1],i[2]],[i[0],i[1],i[2]],[e[0],i[1],i[2]]]}intersects(e){return this.intersectsAabb(e.bounds)?zh(e,this.getCorners()):0}intersectsFlat(e){return this.intersectsAabb(e.bounds)?zh(e,[[this.min[0],this.min[1],0],[this.max[0],this.min[1],0],[this.max[0],this.max[1],0],[this.min[0],this.max[1],0]]):0}intersectsPrecise(e,i){return i||this.intersects(e)?Lh(e,this.getCorners()):0}intersectsPreciseFlat(e,i){return i||this.intersectsFlat(e)?Lh(e,[[this.min[0],this.min[1],0],[this.max[0],this.min[1],0],[this.max[0],this.max[1],0],[this.min[0],this.max[1],0]]):0}intersectsAabb(e){for(let i=0;i<3;++i)if(this.min[i]>e.max[i]||e.min[i]>this.max[i])return!1;return!0}intersectsAabbXY(e){return!(this.min[0]>e.max[0]||e.min[0]>this.max[0]||this.min[1]>e.max[1]||e.min[1]>this.max[1])}encapsulate(e){for(let i=0;i<3;i++)this.min[i]=Math.min(this.min[i],e.min[i]),this.max[i]=Math.max(this.max[i],e.max[i])}encapsulatePoint(e){for(let i=0;i<3;i++)this.min[i]=Math.min(this.min[i],e[i]),this.max[i]=Math.max(this.max[i],e[i])}closestPoint(e){return[Math.max(Math.min(this.max[0],e[0]),this.min[0]),Math.max(Math.min(this.max[1],e[1]),this.min[1]),Math.max(Math.min(this.max[2],e[2]),this.min[2])]}}function $l(r){return r*f/N}Tt(xr,"Aabb");const Cp=[new xr([P,P,P],[M,M,M]),new xr([P,P,P],[0,0,M]),new xr([0,P,P],[M,0,M]),new xr([P,0,P],[0,M,M]),new xr([0,0,P],[M,M,M])];function dw(r,e,i,s=!0){const a=Ei([],r._camera.position,r.worldSize),u=[e,i,1,1];Dr(u,u,r.pixelMatrixInverse),In(u,u,1/u[3]);const h=Ui([],Ti([],u,a)),m=r.globeMatrix,g=[m[12],m[13],m[14]],x=Ti([],g,a),T=gi(x),S=Ui([],x),A=r.worldSize/(2*Math.PI),D=Xi(S,h),R=Math.asin(A/T);if(R<Math.acos(D)){if(!s)return null;const xe=[],Ce=[];Ei(xe,h,T/D),Ui(Ce,Ti(Ce,xe,x)),Ui(h,Yt(h,x,Ei(h,Ce,Math.tan(R)*T)))}const O=[];new Bo(a,h).closestPointOnSphere(g,A,O);const $=Ui([],mn(m,0)),H=Ui([],mn(m,1)),K=Ui([],mn(m,2)),W=Xi($,O),F=Xi(H,O),q=Xi(K,O),Y=Z(Math.asin(-F/A));let te=Z(Math.atan2(W,q));te=r.center.lng+function(xe,Ce){const Ue=(Ce-xe+180)%360-180;return Ue<-180?Ue+360:Ue}(r.center.lng,te);const de=le(te),ge=Te(ce(Y),0,1);return new ke(de,ge)}class WL{constructor(e,i,s){this.a=Ti([],e,s),this.b=Ti([],i,s),this.center=s;const a=Ui([],this.a),u=Ui([],this.b);this.angle=Math.acos(Xi(a,u))}}function p0(r,e){if(r.angle===0)return null;let i;return i=r.a[e]===0?1/r.angle*.5*Math.PI:1/r.angle*Math.atan(r.b[e]/r.a[e]/Math.sin(r.angle)-1/Math.tan(r.angle)),i<0||i>1?null:function(s,a,u,h){const m=Math.sin(u);return s*(Math.sin((1-h)*u)/m)+a*(Math.sin(h*u)/m)}(r.a[e],r.b[e],r.angle,Te(i,0,1))+r.center[e]}function na(r){if(r.z<=1)return Cp[r.z+2*r.y+r.x];const e=f0(s_(r));return xr.fromPoints(e)}function Xa(r,e,i){return Ei(r,r,1-i),$r(r,r,e,i)}function pw(r,e,i){for(const s of r)gr(s,s,e),Ei(s,s,i)}function fw(r,e,i,s){const a=e/r.worldSize,u=r.globeMatrix;if(i.z<=1){const ge=na(i).getCorners();return pw(ge,u,a),xr.fromPoints(ge)}const h=s_(i,s),m=f0(h,f+$l(r._tileCoverLift));pw(m,u,a);const g=Number.MAX_VALUE,x=[-g,-g,-g],T=[g,g,g];if(h.contains(r.center)){for(const Ce of m)Wi(T,T,Ce),or(x,x,Ce);x[2]=0;const ge=r.point,xe=[ge.x*a,ge.y*a,0];return Wi(T,T,xe),or(x,x,xe),new xr(T,x)}if(r._tileCoverLift>0){for(const ge of m)Wi(T,T,ge),or(x,x,ge);return new xr(T,x)}const S=[u[12]*a,u[13]*a,u[14]*a],A=h.getCenter(),D=Te(r.center.lat,-Me,Me),R=Te(A.lat,-Me,Me),O=le(r.center.lng),$=ce(D);let H=O-le(A.lng);const K=$-ce(R);H>.5?H-=1:H<-.5&&(H+=1);let W=0;Math.abs(H)>Math.abs(K)?W=H>=0?1:3:(W=K>=0?0:2,$r(S,S,[u[4]*a,u[5]*a,u[6]*a],-Math.sin(U(K>=0?h.getSouth():h.getNorth()))*f));const F=m[W],q=m[(W+1)%4],Y=new WL(F,q,S),te=[p0(Y,0)||F[0],p0(Y,1)||F[1],p0(Y,2)||F[2]],de=Gl(r.zoom);if(de>0){const ge=function({x:Ce,y:Ue,z:et},Xe,Qe,ot,je){const Je=1/(1<<et);let Fe=Ce*Je,Ve=Fe+Je,lt=Ue*Je,ct=lt+Je,zt=0;const Et=(Fe+Ve)/2-ot;return Et>.5?zt=-1:Et<-.5&&(zt=1),Fe=((Fe+zt)*Xe-(ot*=Xe))*Qe+ot,Ve=((Ve+zt)*Xe-ot)*Qe+ot,lt=(lt*Xe-(je*=Xe))*Qe+je,ct=(ct*Xe-je)*Qe+je,[[Fe,ct,0],[Ve,ct,0],[Ve,lt,0],[Fe,lt,0]]}(i,e,r._pixelsPerMercatorPixel,O,$);for(let Ce=0;Ce<m.length;Ce++)Xa(m[Ce],ge[Ce],de);const xe=Yt([],ge[W],ge[(W+1)%4]);Ei(xe,xe,.5),Xa(te,xe,de)}for(const ge of m)Wi(T,T,ge),or(x,x,ge);return T[2]=Math.min(F[2],q[2]),Wi(T,T,te),or(x,x,te),new xr(T,x)}function s_({x:r,y:e,z:i},s=!1){const a=1/(1<<i),u=new V(pe(r*a),e===(1<<i)-1&&s?-90:me((e+1)*a)),h=new V(pe((r+1)*a),e===0&&s?90:me(e*a));return new X(u,h)}function f0(r,e=f){const i=U(r.getNorth()),s=U(r.getSouth()),a=Math.cos(i),u=Math.cos(s),h=Math.sin(i),m=Math.sin(s),g=r.getWest(),x=r.getEast();return[L(u,m,g,e),L(u,m,x,e),L(a,h,x,e),L(a,h,g,e)]}function Mp(r,e,i,s){const a=1<<i.z,u=(r/_t+i.x)/a;return j(me((e/_t+i.y)/a),pe(u),s)}function a_({min:r,max:e}){return b/Math.max(e[0]-r[0],e[1]-r[1],e[2]-r[2])}const mw=new Float64Array(16);function l_(r){const e=a_(r),i=Wt(mw,[e,e,e]);return tt(i,i,po([],r.min))}function m0(r){const e=(s=r.min,(i=mw)[0]=1,i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=1,i[6]=0,i[7]=0,i[8]=0,i[9]=0,i[10]=1,i[11]=0,i[12]=s[0],i[13]=s[1],i[14]=s[2],i[15]=1,i);var i,s;const a=1/a_(r);return at(e,e,[a,a,a])}function _0(r){const e=_t/(2*Math.PI);return r/(2*Math.PI)/e}function _w(r,e){return _t/(512*Math.pow(2,r))*a_(na(e))}function gw(r,e,i,s,a){const u=_0(i),h=[r,e,-i/(2*Math.PI)],m=ve(new Float64Array(16));return tt(m,m,h),at(m,m,[u,u,u]),Ke(m,m,U(-a)),pt(m,m,U(-s)),m}function Gl(r){return Ae(_,v,r)}function yw(r,e){const i=j(e.lat,e.lng),s=function(R){const O=j(R._center.lat,R._center.lng);let $=Lr([],Bt(0,1,0),O);const H=Ot([],-R.angle,O);$=gr($,$,H),Ot(H,-R._pitch,$);const K=Ui([],O);return Ei(K,K,$l(R.cameraToCenterDistance/R.pixelsPerMeter)),gr(K,K,H),Yt([],O,K)}(r);return h=(a=Gt([],s,i))[0],m=a[1],g=a[2],x=(u=i)[0],T=u[1],S=u[2],D=(A=Math.sqrt(h*h+m*m+g*g)*Math.sqrt(x*x+T*T+S*S))&&Xi(a,u)/A,Math.acos(Math.min(Math.max(D,-1),1));var a,u,h,m,g,x,T,S,A,D}function g0(r,e){return yw(r,e)>Math.PI/2*1.01}const vw=U(85),XL=Math.cos(vw),YL=Math.sin(vw),KL=De(),xw=r=>{const e=[];return r.paint.get("circle-pitch-alignment")==="map"&&e.push("PITCH_WITH_MAP"),r.paint.get("circle-pitch-scale")==="map"&&e.push("SCALE_WITH_MAP"),e};function bw(r,e,i,s,a,u,h,m,g){if(u&&r.queryGeometry.isAboveHorizon)return!1;u&&(g*=r.pixelToTileUnitsFactor);const x=r.tileID.canonical,T=i.projection.upVectorScale(x,i.center.lat,i.worldSize).metersToTile;for(const S of e)for(const A of S){const D=A.add(m),R=a&&i.elevation?i.elevation.exaggeration()*a.getElevationAt(D.x,D.y,!0):0,O=i.projection.projectTilePoint(D.x,D.y,x);if(R>0){const W=i.projection.upVector(x,D.x,D.y);O.x+=W[0]*T*R,O.y+=W[1]*T*R,O.z+=W[2]*T*R}const $=u?D:JL(O.x,O.y,O.z,s),H=u?r.tilespaceRays.map(W=>e3(W,R)):r.queryGeometry.screenGeometry,K=Dr([],[O.x,O.y,O.z,1],s);if(!h&&u?g*=K[3]/i.cameraToCenterDistance:h&&!u&&(g*=i.cameraToCenterDistance/K[3]),u){const W=me((A.y/_t+x.y)/(1<<x.z));g/=i.projection.pixelsPerMeter(W,1)/ne(1,W)}if(Kt(H,$,g))return!0}return!1}function JL(r,e,i,s){const a=Dr([],[r,e,i,1],s);return new ft(a[0]/a[3],a[1]/a[3])}const ww=Bt(0,0,0),QL=Bt(0,0,1);function e3(r,e){const i=ni();return ww[2]=e,r.intersectsPlane(ww,QL,i),new ft(i[0],i[1])}class Tw extends Ct{}let Sw,Ew,Aw,Iw;function Cw(r,{width:e,height:i},s,a){if(a){if(a instanceof Uint8ClampedArray)a=new Uint8Array(a.buffer);else if(a.length!==e*i*s)throw new RangeError("mismatched image size")}else a=new Uint8Array(e*i*s);return r.width=e,r.height=i,r.data=a,r}function Mw(r,e,i){const{width:s,height:a}=e;s===r.width&&a===r.height||(y0(r,e,{x:0,y:0},{x:0,y:0},{width:Math.min(r.width,s),height:Math.min(r.height,a)},i,null),r.width=s,r.height=a,r.data=e.data)}function y0(r,e,i,s,a,u,h,m){if(a.width===0||a.height===0)return e;if(a.width>r.width||a.height>r.height||i.x>r.width-a.width||i.y>r.height-a.height)throw new RangeError("out of range source coordinates for image copy");if(a.width>e.width||a.height>e.height||s.x>e.width-a.width||s.y>e.height-a.height)throw new RangeError("out of range destination coordinates for image copy");const g=r.data,x=e.data,T=u===4&&m;for(let S=0;S<a.height;S++){const A=((i.y+S)*r.width+i.x)*u,D=((s.y+S)*e.width+s.x)*u;if(T)for(let R=0;R<a.width;R++){const O=A+R*u+3,$=D+R*u;x[$+0]=255,x[$+1]=255,x[$+2]=255,x[$+3]=g[O]}else if(h)for(let R=0;R<a.width;R++){const O=A+R*u,$=D+R*u,H=g[O+3],K=new Bi(g[O+0]/255*H,g[O+1]/255*H,g[O+2]/255*H,H).toRenderColor(h).toArray();x[$+0]=K[0],x[$+1]=K[1],x[$+2]=K[2],x[$+3]=K[3]}else for(let R=0;R<a.width*u;R++)x[D+R]=g[A+R]}return e}Tt(Tw,"HeatmapBucket",{omit:["layers"]});class Hl{constructor(e,i){Cw(this,e,1,i)}resize(e){Mw(this,new Hl(e),1)}clone(){return new Hl({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,i,s,a,u){y0(e,i,s,a,u,1,null)}}class Mn{constructor(e,i){Cw(this,e,4,i)}resize(e){Mw(this,new Mn(e),4)}replace(e,i){i?this.data.set(e):this.data=e instanceof Uint8ClampedArray?new Uint8Array(e.buffer):e}clone(){return new Mn({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,i,s,a,u,h,m){y0(e,i,s,a,u,4,h,m)}}class Pw{constructor(e,i){this.width=e.width,this.height=e.height,this.data=i instanceof Uint8Array?new Float32Array(i.buffer):i}}function Pp(r){const e={},i=r.resolution||256,s=r.clips?r.clips.length:1,a=r.image||new Mn({width:i,height:s}),u=(h,m,g)=>{e[r.evaluationKey]=g;const x=r.expression.evaluate(e);x&&(a.data[h+m+0]=Math.floor(255*x.r/x.a),a.data[h+m+1]=Math.floor(255*x.g/x.a),a.data[h+m+2]=Math.floor(255*x.b/x.a),a.data[h+m+3]=Math.floor(255*x.a))};if(r.clips)for(let h=0,m=0;h<s;++h,m+=4*i)for(let g=0,x=0;g<i;g++,x+=4){const T=g/(i-1),{start:S,end:A}=r.clips[h];u(m,x,S*(1-T)+A*T)}else for(let h=0,m=0;h<i;h++,m+=4)u(0,m,h/(i-1));return a}Tt(Hl,"AlphaImage"),Tt(Mn,"RGBAImage");const t3=Oi([{name:"a_pos",components:2,type:"Int16"}],4),i3=Oi([{name:"a_road_z_offset",components:1,type:"Float32"}],4),r3=Oi([{name:"a_pos",components:2,type:"Int16"},{name:"a_height",components:1,type:"Float32"}],4),n3=Oi([{name:"a_pos_normal_3",components:3,type:"Int16"}],4);function Dp(r,e,i=2){const s=e&&e.length,a=s?e[0]*i:r.length;let u=Dw(r,0,a,i,!0);const h=[];if(!u||u.next===u.prev)return h;let m,g,x;if(s&&(u=function(T,S,A,D){const R=[];for(let O=0,$=S.length;O<$;O++){const H=Dw(T,S[O]*D,O<$-1?S[O+1]*D:T.length,D,!1);H===H.next&&(H.steiner=!0),R.push(d3(H))}R.sort(c3);for(let O=0;O<R.length;O++)A=u3(R[O],A);return A}(r,e,u,i)),r.length>80*i){m=1/0,g=1/0;let T=-1/0,S=-1/0;for(let A=i;A<a;A+=i){const D=r[A],R=r[A+1];D<m&&(m=D),R<g&&(g=R),D>T&&(T=D),R>S&&(S=R)}x=Math.max(T-m,S-g),x=x!==0?32767/x:0}return Rp(u,h,i,m,g,x,0),h}function Dw(r,e,i,s,a){let u;if(a===function(h,m,g,x){let T=0;for(let S=m,A=g-x;S<g;S+=x)T+=(h[A]-h[S])*(h[S+1]+h[A+1]),A=S;return T}(r,e,i,s)>0)for(let h=e;h<i;h+=s)u=kw(h/s|0,r[h],r[h+1],u);else for(let h=i-s;h>=e;h-=s)u=kw(h/s|0,r[h],r[h+1],u);return u&&Oh(u,u.next)&&(kp(u),u=u.next),u}function Jc(r,e){if(!r)return r;e||(e=r);let i,s=r;do if(i=!1,s.steiner||!Oh(s,s.next)&&yn(s.prev,s,s.next)!==0)s=s.next;else{if(kp(s),s=e=s.prev,s===s.next)break;i=!0}while(i||s!==e);return e}function Rp(r,e,i,s,a,u,h){if(!r)return;!h&&u&&function(g,x,T,S){let A=g;do A.z===0&&(A.z=v0(A.x,A.y,x,T,S)),A.prevZ=A.prev,A.nextZ=A.next,A=A.next;while(A!==g);A.prevZ.nextZ=null,A.prevZ=null,function(D){let R,O=1;do{let $,H=D;D=null;let K=null;for(R=0;H;){R++;let W=H,F=0;for(let Y=0;Y<O&&(F++,W=W.nextZ,W);Y++);let q=O;for(;F>0||q>0&&W;)F!==0&&(q===0||!W||H.z<=W.z)?($=H,H=H.nextZ,F--):($=W,W=W.nextZ,q--),K?K.nextZ=$:D=$,$.prevZ=K,K=$;H=W}K.nextZ=null,O*=2}while(R>1)}(A)}(r,s,a,u);let m=r;for(;r.prev!==r.next;){const g=r.prev,x=r.next;if(u?s3(r,s,a,u):o3(r))e.push(g.i,r.i,x.i),kp(r),r=x.next,m=x.next;else if((r=x)===m){h?h===1?Rp(r=a3(Jc(r),e),e,i,s,a,u,2):h===2&&l3(r,e,i,s,a,u):Rp(Jc(r),e,i,s,a,u,1);break}}}function o3(r){const e=r.prev,i=r,s=r.next;if(yn(e,i,s)>=0)return!1;const a=e.x,u=i.x,h=s.x,m=e.y,g=i.y,x=s.y,T=Math.min(a,u,h),S=Math.min(m,g,x),A=Math.max(a,u,h),D=Math.max(m,g,x);let R=s.next;for(;R!==e;){if(R.x>=T&&R.x<=A&&R.y>=S&&R.y<=D&&zp(a,m,u,g,h,x,R.x,R.y)&&yn(R.prev,R,R.next)>=0)return!1;R=R.next}return!0}function s3(r,e,i,s){const a=r.prev,u=r,h=r.next;if(yn(a,u,h)>=0)return!1;const m=a.x,g=u.x,x=h.x,T=a.y,S=u.y,A=h.y,D=Math.min(m,g,x),R=Math.min(T,S,A),O=Math.max(m,g,x),$=Math.max(T,S,A),H=v0(D,R,e,i,s),K=v0(O,$,e,i,s);let W=r.prevZ,F=r.nextZ;for(;W&&W.z>=H&&F&&F.z<=K;){if(W.x>=D&&W.x<=O&&W.y>=R&&W.y<=$&&W!==a&&W!==h&&zp(m,T,g,S,x,A,W.x,W.y)&&yn(W.prev,W,W.next)>=0||(W=W.prevZ,F.x>=D&&F.x<=O&&F.y>=R&&F.y<=$&&F!==a&&F!==h&&zp(m,T,g,S,x,A,F.x,F.y)&&yn(F.prev,F,F.next)>=0))return!1;F=F.nextZ}for(;W&&W.z>=H;){if(W.x>=D&&W.x<=O&&W.y>=R&&W.y<=$&&W!==a&&W!==h&&zp(m,T,g,S,x,A,W.x,W.y)&&yn(W.prev,W,W.next)>=0)return!1;W=W.prevZ}for(;F&&F.z<=K;){if(F.x>=D&&F.x<=O&&F.y>=R&&F.y<=$&&F!==a&&F!==h&&zp(m,T,g,S,x,A,F.x,F.y)&&yn(F.prev,F,F.next)>=0)return!1;F=F.nextZ}return!0}function a3(r,e){let i=r;do{const s=i.prev,a=i.next.next;!Oh(s,a)&&zw(s,i,i.next,a)&&Lp(s,a)&&Lp(a,s)&&(e.push(s.i,i.i,a.i),kp(i),kp(i.next),i=r=a),i=i.next}while(i!==r);return Jc(i)}function l3(r,e,i,s,a,u){let h=r;do{let m=h.next.next;for(;m!==h.prev;){if(h.i!==m.i&&p3(h,m)){let g=Lw(h,m);return h=Jc(h,h.next),g=Jc(g,g.next),Rp(h,e,i,s,a,u,0),void Rp(g,e,i,s,a,u,0)}m=m.next}h=h.next}while(h!==r)}function c3(r,e){let i=r.x-e.x;return i===0&&(i=r.y-e.y,i===0)&&(i=(r.next.y-r.y)/(r.next.x-r.x)-(e.next.y-e.y)/(e.next.x-e.x)),i}function u3(r,e){const i=function(a,u){let h=u;const m=a.x,g=a.y;let x,T=-1/0;if(Oh(a,h))return h;do{if(Oh(a,h.next))return h.next;if(g<=h.y&&g>=h.next.y&&h.next.y!==h.y){const O=h.x+(g-h.y)*(h.next.x-h.x)/(h.next.y-h.y);if(O<=m&&O>T&&(T=O,x=h.x<h.next.x?h:h.next,O===m))return x}h=h.next}while(h!==u);if(!x)return null;const S=x,A=x.x,D=x.y;let R=1/0;h=x;do{if(m>=h.x&&h.x>=A&&m!==h.x&&Rw(g<D?m:T,g,A,D,g<D?T:m,g,h.x,h.y)){const O=Math.abs(g-h.y)/(m-h.x);Lp(h,a)&&(O<R||O===R&&(h.x>x.x||h.x===x.x&&h3(x,h)))&&(x=h,R=O)}h=h.next}while(h!==S);return x}(r,e);if(!i)return e;const s=Lw(i,r);return Jc(s,s.next),Jc(i,i.next)}function h3(r,e){return yn(r.prev,r,e.prev)<0&&yn(e.next,r,r.next)<0}function v0(r,e,i,s,a){return(r=1431655765&((r=858993459&((r=252645135&((r=16711935&((r=(r-i)*a|0)|r<<8))|r<<4))|r<<2))|r<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-s)*a|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function d3(r){let e=r,i=r;do(e.x<i.x||e.x===i.x&&e.y<i.y)&&(i=e),e=e.next;while(e!==r);return i}function Rw(r,e,i,s,a,u,h,m){return(a-h)*(e-m)>=(r-h)*(u-m)&&(r-h)*(s-m)>=(i-h)*(e-m)&&(i-h)*(u-m)>=(a-h)*(s-m)}function zp(r,e,i,s,a,u,h,m){return!(r===h&&e===m)&&Rw(r,e,i,s,a,u,h,m)}function p3(r,e){return r.next.i!==e.i&&r.prev.i!==e.i&&!function(i,s){let a=i;do{if(a.i!==i.i&&a.next.i!==i.i&&a.i!==s.i&&a.next.i!==s.i&&zw(a,a.next,i,s))return!0;a=a.next}while(a!==i);return!1}(r,e)&&(Lp(r,e)&&Lp(e,r)&&function(i,s){let a=i,u=!1;const h=(i.x+s.x)/2,m=(i.y+s.y)/2;do a.y>m!=a.next.y>m&&a.next.y!==a.y&&h<(a.next.x-a.x)*(m-a.y)/(a.next.y-a.y)+a.x&&(u=!u),a=a.next;while(a!==i);return u}(r,e)&&(yn(r.prev,r,e.prev)||yn(r,e.prev,e))||Oh(r,e)&&yn(r.prev,r,r.next)>0&&yn(e.prev,e,e.next)>0)}function yn(r,e,i){return(e.y-r.y)*(i.x-e.x)-(e.x-r.x)*(i.y-e.y)}function Oh(r,e){return r.x===e.x&&r.y===e.y}function zw(r,e,i,s){const a=u_(yn(r,e,i)),u=u_(yn(r,e,s)),h=u_(yn(i,s,r)),m=u_(yn(i,s,e));return a!==u&&h!==m||!(a!==0||!c_(r,i,e))||!(u!==0||!c_(r,s,e))||!(h!==0||!c_(i,r,s))||!(m!==0||!c_(i,e,s))}function c_(r,e,i){return e.x<=Math.max(r.x,i.x)&&e.x>=Math.min(r.x,i.x)&&e.y<=Math.max(r.y,i.y)&&e.y>=Math.min(r.y,i.y)}function u_(r){return r>0?1:r<0?-1:0}function Lp(r,e){return yn(r.prev,r,r.next)<0?yn(r,e,r.next)>=0&&yn(r,r.prev,e)>=0:yn(r,e,r.prev)<0||yn(r,r.next,e)<0}function Lw(r,e){const i=x0(r.i,r.x,r.y),s=x0(e.i,e.x,e.y),a=r.next,u=e.prev;return r.next=e,e.prev=r,i.next=a,a.prev=i,s.next=i,i.prev=s,u.next=s,s.prev=u,s}function kw(r,e,i,s){const a=x0(r,e,i);return s?(a.next=s.next,a.prev=s,s.next.prev=a,s.next=a):(a.prev=a,a.next=a),a}function kp(r){r.next.prev=r.prev,r.prev.next=r.next,r.prevZ&&(r.prevZ.nextZ=r.nextZ),r.nextZ&&(r.nextZ.prevZ=r.prevZ)}function x0(r,e,i){return{i:r,x:e,y:i,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function h_(r,e){const i=r.length;if(i<=1)return[r];const s=[];let a,u;for(let h=0;h<i;h++){const m=ki(r[h]);m!==0&&(r[h].area=Math.abs(m),u===void 0&&(u=m<0),u===m<0?(a&&s.push(a),a=[r[h]]):a.push(r[h]))}if(a&&s.push(a),e>1)for(let h=0;h<s.length;h++)s[h].length<=e||(Hs(s[h],e,1,s[h].length-1,f3),s[h]=s[h].slice(0,e));return s}function f3(r,e){return e.area-r.area}function Ow(r,e,i=1){if(!r)return null;const s=typeof r=="string"?Wn.from(r).getPrimary():r.getPrimary(),a=typeof r=="string"?null:r.getSecondary();for(const u of[s,a]){if(!u)continue;const h=u.id.toString();e.has(h)||e.set(h,[]),u.scaleSelf(i),e.get(h).push(u)}return{primary:s.toString(),secondary:a?a.toString():null}}function b0(r,e,i,s){const a=s.patternDependencies;let u=!1;for(const h of e){const m=h.paint.get(`${r}-pattern`);m.isConstant()||(u=!0),Ow(m.constantOr(null),a,i)&&(u=!0)}return u}function w0(r,e,i,s,a,u){const h=u.patternDependencies;for(const m of e){const g=m.paint.get(`${r}-pattern`).value;if(g.kind!=="constant"){let x=g.evaluate({zoom:s},i,{},u.availableImages);x=x&&x.name?x.name:x;const T=Ow(x,h,a);if(!T)continue;const{primary:S,secondary:A}=T;S&&(i.patterns[m.id]=[S,A].filter(Boolean))}}return i}var T0,Fw,S0,Bw,E0,Nw,jw,d_={};function Vw(){if(Fw)return T0;Fw=1;var r=uc();function e(a,u,h,m,g){this.properties={},this.extent=h,this.type=0,this._pbf=a,this._geometry=-1,this._keys=m,this._values=g,a.readFields(i,this,u)}function i(a,u,h){a==1?u.id=h.readVarint():a==2?function(m,g){for(var x=m.readVarint()+m.pos;m.pos<x;){var T=g._keys[m.readVarint()],S=g._values[m.readVarint()];g.properties[T]=S}}(h,u):a==3?u.type=h.readVarint():a==4&&(u._geometry=h.pos)}function s(a){for(var u,h,m=0,g=0,x=a.length,T=x-1;g<x;T=g++)m+=((h=a[T]).x-(u=a[g]).x)*(u.y+h.y);return m}return T0=e,e.types=["Unknown","Point","LineString","Polygon"],e.prototype.loadGeometry=function(){var a=this._pbf;a.pos=this._geometry;for(var u,h=a.readVarint()+a.pos,m=1,g=0,x=0,T=0,S=[];a.pos<h;){if(g<=0){var A=a.readVarint();m=7&A,g=A>>3}if(g--,m===1||m===2)x+=a.readSVarint(),T+=a.readSVarint(),m===1&&(u&&S.push(u),u=[]),u.push(new r(x,T));else{if(m!==7)throw new Error("unknown command "+m);u&&u.push(u[0].clone())}}return u&&S.push(u),S},e.prototype.bbox=function(){var a=this._pbf;a.pos=this._geometry;for(var u=a.readVarint()+a.pos,h=1,m=0,g=0,x=0,T=1/0,S=-1/0,A=1/0,D=-1/0;a.pos<u;){if(m<=0){var R=a.readVarint();h=7&R,m=R>>3}if(m--,h===1||h===2)(g+=a.readSVarint())<T&&(T=g),g>S&&(S=g),(x+=a.readSVarint())<A&&(A=x),x>D&&(D=x);else if(h!==7)throw new Error("unknown command "+h)}return[T,A,S,D]},e.prototype.toGeoJSON=function(a,u,h){var m,g,x=this.extent*Math.pow(2,h),T=this.extent*a,S=this.extent*u,A=this.loadGeometry(),D=e.types[this.type];function R(H){for(var K=0;K<H.length;K++){var W=H[K];H[K]=[360*(W.x+T)/x-180,360/Math.PI*Math.atan(Math.exp((180-360*(W.y+S)/x)*Math.PI/180))-90]}}switch(this.type){case 1:var O=[];for(m=0;m<A.length;m++)O[m]=A[m][0];R(A=O);break;case 2:for(m=0;m<A.length;m++)R(A[m]);break;case 3:for(A=function(H){var K=H.length;if(K<=1)return[H];for(var W,F,q=[],Y=0;Y<K;Y++){var te=s(H[Y]);te!==0&&(F===void 0&&(F=te<0),F===te<0?(W&&q.push(W),W=[H[Y]]):W.push(H[Y]))}return W&&q.push(W),q}(A),m=0;m<A.length;m++)for(g=0;g<A[m].length;g++)R(A[m][g])}A.length===1?A=A[0]:D="Multi"+D;var $={type:"Feature",geometry:{type:D,coordinates:A},properties:this.properties};return"id"in this&&($.id=this.id),$},T0}function Uw(){if(Bw)return S0;Bw=1;var r=Vw();function e(s,a){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=s,this._keys=[],this._values=[],this._features=[],s.readFields(i,this,a),this.length=this._features.length}function i(s,a,u){s===15?a.version=u.readVarint():s===1?a.name=u.readString():s===5?a.extent=u.readVarint():s===2?a._features.push(u.pos):s===3?a._keys.push(u.readString()):s===4&&a._values.push(function(h){for(var m=null,g=h.readVarint()+h.pos;h.pos<g;){var x=h.readVarint()>>3;m=x===1?h.readString():x===2?h.readFloat():x===3?h.readDouble():x===4?h.readVarint64():x===5?h.readVarint():x===6?h.readSVarint():x===7?h.readBoolean():null}return m}(u))}return S0=e,e.prototype.feature=function(s){if(s<0||s>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[s];var a=this._pbf.readVarint()+this._pbf.pos;return new r(this._pbf,a,this.extent,this._keys,this._values)},S0}function $w(){return jw||(jw=1,d_.VectorTile=function(){if(Nw)return E0;Nw=1;var r=Uw();function e(i,s,a){if(i===3){var u=new r(a,a.readVarint()+a.pos);u.length&&(s[u.name]=u)}}return E0=function(i,s){this.layers=i.readFields(e,{},s)},E0}(),d_.VectorTileFeature=Vw(),d_.VectorTileLayer=Uw()),d_}var ql=$w();const Qc="3d_elevation_id",Gw="level";class m3{constructor(){this._valid=!1}reset(e){return this.feature=e,this._valid=!0,this._geometry=e.loadGeometry(),this._geometry.length!==0&&this._geometry[0].length!==0||(this._valid=!1),this}geometry(e,i){return this._valid&&e(i(this._geometry)),this}require(e,i,s){return this.get(e,!0,i,s)}optional(e,i,s){return this.get(e,!1,i,s)}success(){return this._valid}get(e,i,s,a){const u=this.feature.properties.hasOwnProperty(e)?+this.feature.properties[e]:void 0;return this._valid&&u!==void 0&&!Number.isNaN(u)?s(a?a(u):u):i&&(this._valid=!1),this}}class Hw{constructor(e,i){this.featureFunc=e,this.vertexFunc=i}parseFeature(e,i,s){return this.featureFunc(e,i,s)}parseVertex(e,i,s){return this.vertexFunc(e,i,s)}}const _3=new Hw((r,e,i)=>r.reset(e).require(Qc,s=>{i.id=s}).optional("fixed_height_relative",s=>{i.constantHeight=s},eu.decodeRelativeHeight).geometry(s=>{i.bounds=s},Rd).success(),(r,e,i)=>r.reset(e).require(Qc,s=>{i.id=s}).require("elevation_idx",s=>{i.idx=s}).require("extent",s=>{i.extent=s}).require("height_relative",s=>{i.height=s},eu.decodeRelativeHeight).geometry(s=>{i.position=s},eu.getPoint).success()),g3=new Hw((r,e,i)=>r.reset(e).require(Qc,s=>{i.id=s}).optional("fixed_height",s=>{i.constantHeight=s},eu.decodeMetricHeight).geometry(s=>{i.bounds=s},Rd).success(),(r,e,i)=>r.reset(e).require(Qc,s=>{i.id=s}).require("elevation_idx",s=>{i.idx=s}).require("extent",s=>{i.extent=s}).require("height",s=>{i.height=s},eu.decodeMetricHeight).geometry(s=>{i.position=s},eu.getPoint).success());class eu{static getPoint(e){return va(e[0][0].x,e[0][0].y)}static decodeRelativeHeight(e){return 1e-4*e*5}static decodeMetricHeight(e){return 1e-4*e}static parse(e){const i=[],s=[],a=e.length,u=new m3;for(let m=0;m<a;m++){const g=e.feature(m),x=g.properties.hasOwnProperty("version")?String(g.properties.version):void 0,T=(h=x)?h==="1.0.1"?g3:void 0:_3;if(T===void 0){yi(`Unknown elevation feature version number ${x||"(unknown)"}`);continue}const S=g.properties.hasOwnProperty("type")?g.properties.type:void 0;if(S){if(ql.VectorTileFeature.types[g.type]==="Point"&&S==="curve_point"){const A={};T.parseVertex(u,g,A)&&i.push(A)}else if(ql.VectorTileFeature.types[g.type]==="Polygon"&&S==="curve_meta"){const A={};T.parseFeature(u,g,A)&&s.push(A)}}}var h;return{vertices:i,features:s}}}class qw{constructor(e,i){this.feature=e,this.metersToTile=i,this.index=0}get(){const e=this.feature.vertices[this.index],i=this.feature.vertexProps[this.index].dir,s=i[1],a=-i[0],u=(e.extent+1)*this.metersToTile;return[new ft(Math.trunc(e.position[0]+s*u),Math.trunc(e.position[1]+a*u)),new ft(Math.trunc(e.position[0]-s*u),Math.trunc(e.position[1]-a*u))]}next(){this.index++}valid(){return this.index<this.feature.vertices.length}}class A0{constructor(e,i,s,a,u,h){if(this.vertices=new Array,this.vertexProps=new Array,this.edges=new Array,this.edgeProps=new Array,this.id=e,this.heightRange={min:s,max:s},this.safeArea=i,this.constantHeight=s,this.constantHeight==null&&(this.constantHeight!=null||a.length!==0)){this.vertices=a,this.edges=u,this.edges=this.edges.filter(m=>{return m.a<this.vertices.length&&m.b<this.vertices.length&&!((g=this.vertices[m.a].position)[0]===(x=this.vertices[m.b].position)[0]&&g[1]===x[1]);var g,x}),this.heightRange={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};for(const m of this.vertices)this.vertexProps.push({dir:va(0,0)}),this.heightRange.min=Math.min(this.heightRange.min,m.height),this.heightRange.max=Math.max(this.heightRange.max,m.height);for(const m of this.edges){const g=this.vertices[m.a].position,x=this.vertices[m.b].position,T=Zo(qn(),x,g),S=ba(T),A=xa(qn(),T,1/S);this.edgeProps.push({vec:T,dir:A,len:S});const D=this.vertexProps[m.a].dir,R=this.vertexProps[m.b].dir;Ns(D,D,A),Ns(R,R,A)}for(const m of this.vertexProps)m.dir[0]===0&&m.dir[1]===0||lc(m.dir,m.dir);this.tessellate(h)}}pointElevation(e){if(this.constantHeight!=null)return this.constantHeight;const i=this.getClosestEdge(e);if(i==null)return 0;const[s,a]=i;return((u,h,m)=>(1-m)*u+m*h)(this.vertices[this.edges[s].a].height,this.vertices[this.edges[s].b].height,a)}getSafeArea(){return this.safeArea}isTunnel(){return this.heightRange.max<=-5}getClosestEdge(e){if(this.edges.length===0)return;let i=0,s=Number.POSITIVE_INFINITY,a=0;const u=va(e.x,e.y);for(let h=0;h<this.edges.length;h++){const m=this.edges[h],g=this.edgeProps[h].dir,x=new ts(u,this.edgeProps[h].dir),T=this.vertices[m.a].position,S=this.vertices[m.b].position,A=qn(),D=qn(),R=x.intersectsPlane(T,this.vertexProps[m.a].dir,A),O=x.intersectsPlane(S,this.vertexProps[m.b].dir,D);if(!R||!O)continue;const $=Zo(qn(),D,A),H=Zo(qn(),u,A),K=Ar($,$),W=K>0?Ar(H,$)/K:0,F=Te(W,0,1),q=Math.abs((W-F)*this.edgeProps[h].len),Y=Zo(qn(),u,T),te=q+Math.abs(Ar(Y,va(g[1],-g[0])));te<s&&(i=h,s=te,a=F)}return[i,a]}tessellate(e){for(let i=this.edges.length-1;i>=0;--i){const s=this.edges[i].a,a=this.edges[i].b,{position:u,height:h,extent:m}=this.vertices[s],{position:g,height:x,extent:T}=this.vertices[a],S=this.vertexProps[s].dir,A=this.vertexProps[a].dir,D=Bt(u[0]/e,u[1]/e,h),R=Bt(g[0]/e,g[1]/e,x),O=Bt(S[1],-S[0],0);Ei(O,O,m);const $=Bt(A[1],-A[0],0);if(Ei($,$,T),this.distSqLines(Bt(D[0]+.5*O[0],D[1]+.5*O[1],D[2]+.5*O[2]),Bt(R[0]-.5*$[0],R[1]-.5*$[1],R[2]-.5*$[2]),Bt(D[0]-.5*O[0],D[1]-.5*O[1],D[2]-.5*O[2]),Bt(R[0]+.5*$[0],R[1]+.5*$[1],R[2]+.5*$[2]))<=.0025000000000000005)continue;const H=this.vertices.length,K=Ns(qn(),u,g);this.vertices.push({position:xa(K,K,.5),height:.5*(h+x),extent:.5*(m+T)});const W=Ns(qn(),S,A);this.vertexProps.push({dir:lc(W,W)}),this.edges.splice(i,1),this.edgeProps.splice(i,1),this.edges.push({a:s,b:H}),this.edges.push({a:H,b:a});const F=Zo(qn(),this.vertices[H].position,u),q=ba(F),Y={vec:F,dir:xa(qn(),F,1/q),len:q};this.edgeProps.push(Y),this.edgeProps.push(Y)}}distSqLines(e,i,s,a){const u=Gt(ni(),i,e),h=Gt(ni(),a,s),m=Gt(ni(),e,s),g=Xi(u,u),x=Xi(u,h),T=Xi(u,m),S=Xi(h,h),A=Xi(h,m),D=g*S-x*x;if(D===0){const $=Xi(m,h)/Xi(h,h);return vn($o(ni(),s,a,$),e)}const R=(x*A-T*S)/D,O=(g*A-x*T)/D;return vn($o(ni(),e,i,R),$o(ni(),s,a,O))}}class I0{static parseFrom(e,i){const s=eu.parse(e);if(!s)return[];let{vertices:a,features:u}=s;const h=1/Pe(i);u.sort((T,S)=>T.id-S.id),a.sort((T,S)=>T.id-S.id||T.idx-S.idx),a=a.filter((T,S,A)=>S===A.findIndex(D=>D.id===T.id&&D.idx===T.idx));const m=new Array;let g=0;const x=a.length;for(const T of u){if(T.constantHeight){m.push(new A0(T.id,T.bounds,T.constantHeight));continue}for(;g!==x&&a[g].id<T.id;)g++;if(g===x||a[g].id!==T.id)continue;const S=new Array,A=new Array,D=g;for(;g!==x&&a[g].id===T.id;){const R=a[g];if(S.push({position:R.position,height:R.height,extent:R.extent}),g!==D&&a[g-1].idx===R.idx-1){const O=g-D;A.push({a:O-1,b:O})}g++}m.push(new A0(T.id,T.bounds,void 0,S,A,h))}return m}static getElevationFeature(e,i){if(!i)return;const s=+e.properties[Qc];return Number.isNaN(s)?void 0:i.find(a=>a.id===s)}}class Zw{constructor(e,i){this.zScale=1,this.xOffset=0,this.yOffset=0,e.equals(i)||(this.zScale=Math.pow(2,i.z-e.z),this.xOffset=(e.x*this.zScale-i.x)*_t,this.yOffset=(e.y*this.zScale-i.y)*_t)}constantElevation(e,i){if(e.constantHeight!=null)return this.computeBiasedHeight(e.constantHeight,i)}pointElevation(e,i,s){const a=this.constantElevation(i,s);return a??(e.x=e.x*this.zScale+this.xOffset,e.y=e.y*this.zScale+this.yOffset,this.computeBiasedHeight(i.pointElevation(e),s))}computeBiasedHeight(e,i){return i<=0?e:e+i*Ae(0,i,e>=0?e:Math.abs(.5*e))}}Tt(A0,"ElevationFeature");class Ww{constructor(){this.polygons=new Map}add(e,...i){this.polygons.has(e)?this.polygons.get(e).push(...i):this.polygons.set(e,i)}merge(e){for(const[i,s]of e.polygons)this.add(i,...s)}}class tu{constructor(){this.portals=[]}static evaluate(e){if(e.length===0)return new tu;let i=[];for(const x of e)i.push(...x.portals);if(i.length===0)return new tu;const s=(x,T)=>x<=0&&T<=0||x>=_t&&T>=_t;for(const x of i){const T=x.va,S=x.vb;(s(T.x,S.x)||s(T.y,S.y))&&(x.type="border")}const a=i.filter(x=>x.type!=="unevaluated"),u=i.filter(x=>x.type==="unevaluated");if(u.length===0)return new tu;u.sort((x,T)=>x.hash===T.hash?x.isTunnel===T.isTunnel?0:x.isTunnel?-1:1:x.hash<T.hash?1:-1),i=a.concat(u);let h=a.length,m=h,g=h;do if(m++,m===i.length||i[h].hash!==i[m].hash){if(m-h==2){g<h&&(i[g]=i[h],i[h]=null);const x=i[g],T=i[m-1];x.type=x.isTunnel!==T.isTunnel?"tunnel":"polygon",x.connection={a:x.connection.a,b:T.connection.a},g++}h=m}while(h!==i.length);return i.splice(g),i.sort((x,T)=>x.hash<T.hash?1:-1),{portals:i}}}Tt(tu,"ElevationPortalGraph"),Tt(Ww,"ElevationPolygons");class y3{constructor(e,i,s){this.outPositions=e,this.outNormals=i,this.outIndices=s,this.vertexLookup=new Map,this.buffer=new ArrayBuffer(4),this.view=new DataView(this.buffer)}addVertex(e,i,s){let a=e[2];s!=null&&(a*=s);const u=this.getVec3Bits(e)<<96n|this.getVec3Bits(i),h=this.vertexLookup.get(u);if(h!=null)return h;const m=this.outPositions.length;this.vertexLookup.set(u,m);const g=Math.trunc(16384*i[0]),x=Math.trunc(16384*i[1]),T=Math.trunc(16384*i[2]);return this.outPositions.emplaceBack(e[0],e[1],a),this.outNormals.emplaceBack(g,x,T),m}addVertices(e,i,...s){const a=[];for(const u of s){const h=this.addVertex(u,e,i);a.push(h)}return a}addTriangles(e,i,s){if(i&&s){const a=s.length===1,u=Bt(0,0,0);for(let h=0;h<e.length;h+=3){const m=i[e[h+0]],g=i[e[h+1]],x=i[e[h+2]],T=a?s[0]:s[e[h+1]],S=a?s[0]:s[e[h+2]],A=this.addVertex(Bt(m.x,m.y,a?s[0]:s[e[h+0]]),u),D=this.addVertex(Bt(g.x,g.y,T),u),R=this.addVertex(Bt(x.x,x.y,S),u);this.outIndices.emplaceBack(A,D,R)}}else for(let a=0;a<e.length;a+=3)this.outIndices.emplaceBack(e[a+0],e[a+1],e[a+2])}addQuad(e,i){const s=this.addVertices(i,void 0,...e.map(g=>Bt(g.coord.x,g.coord.y,g.height))),[a,u,h,m]=s;this.addTriangles([a,u,h,h,m,a])}getBits(e){return this.view.setFloat32(0,e),BigInt(this.view.getUint32(0))}getVec3Bits(e){return this.getBits(e[0])<<64n|this.getBits(e[1])<<32n|this.getBits(e[2])}}class To{constructor(e){this.unevaluatedPortals=new tu,this.portalPolygons=new Ww,this.vertexHashLookup=new Map,this.unevalVertices=[],this.unevalHeights=[],this.unevalTriangles=[],this.unevalTunnelTriangles=[],this.unevalEdges=[],this.vertexPositions=new Sh,this.vertexNormals=new Ol,this.indexArray=new _n,this.tileToMeters=Pe(e)}addVertices(e,i){const s=this.unevalVertices.length;for(let a=0;a<e.length;a++)this.unevalVertices.push(e[a]),this.unevalHeights.push(i[a]);return s}addTriangles(e,i,s){const a=s?this.unevalTunnelTriangles:this.unevalTriangles;for(const u of e)a.push(u+i)}addRenderableRing(e,i,s,a,u){const h=[new ft(u.min.x,u.min.y),new ft(u.max.x,u.min.y),new ft(u.max.x,u.max.y),new ft(u.min.x,u.max.y)];for(let m=0;m<s-1;m++){const g=i+m,x=g+1,T=this.unevalVertices[g],S=this.unevalVertices[x];if(!(T.x>=u.min.x&&T.x<=u.max.x&&T.y>=u.min.y&&T.y<=u.max.y||S.x>=u.min.x&&S.x<=u.max.x&&S.y>=u.min.y&&S.y<=u.max.y||jr(T,S,h))||this.isOnBorder(T.x,S.x)||this.isOnBorder(T.y,S.y))continue;const A=To.computeEdgeHash(this.unevalVertices[g],this.unevalVertices[x]);let D,R=this.vertexHashLookup.get(To.computePosHash(T));R!=null?D=R.next:(R=this.vertexHashLookup.get(To.computePosHash(S)),D=R!=null?R.prev:A),this.unevalEdges.push({polygonIdx:e,a:g,b:x,hash:A,portalHash:D,isTunnel:a,type:"unevaluated"})}}addPortalCandidates(e,i,s,a,u){if(i.length===0)return;this.portalPolygons.add(e,{geometry:i,zLevel:u});const h=i[0];this.vertexHashLookup.clear();let m=To.computeEdgeHash(h[h.length-2],h[h.length-1]);for(let g=0;g<h.length-1;g++){const x=h[g+0],T=h[g+1],S=va(T.x-x.x,T.y-x.y),A=ba(S);if(A===0)continue;let D="unevaluated";const R=a.pointElevation(x),O=a.pointElevation(T);Math.abs(R)<.01&&Math.abs(O)<.01?D="entrance":(this.isOnBorder(x.x,T.x)||this.isOnBorder(x.y,T.y))&&(D="border");const $=To.computeEdgeHash(x,T);this.unevaluatedPortals.portals.push({connection:{a:e,b:void 0},va:x,vb:T,vab:S,length:A,hash:$,isTunnel:s,type:D});const H=To.computePosHash(x);this.vertexHashLookup.set(H,{prev:m,next:$}),m=$}}construct(e){if(this.unevalVertices.length===0)return;const i=()=>({vertexOffset:0,primitiveOffset:this.indexArray.length}),s=S=>{S.primitiveLength=this.indexArray.length-S.primitiveOffset},a=new y3(this.vertexPositions,this.vertexNormals,this.indexArray);this.prepareEdges(e.portals,this.unevalEdges);const u=i(),h=i(),m=i(),g=(S,A)=>{S.sort((R,O)=>R.type===A&&O.type!==A?-1:R.type!==A&&O.type===A?1:0);const D=S.findIndex(R=>R.type!==A);return D>=0?D:S.length};let x=0;this.unevalEdges.length>0&&(x=g(this.unevalEdges,"none"),this.constructBridgeStructures(a,this.unevalVertices,this.unevalHeights,this.unevalEdges,{min:0,max:x},this.tileToMeters));const T=i();if(this.unevalEdges.length>0){const S=this.unevalEdges.splice(x),A=g(S,"tunnel")+x;this.unevalEdges.push(...S),this.constructTunnelStructures(a,this.unevalVertices,this.unevalHeights,this.unevalEdges,{min:0,max:x},{min:x,max:A})}s(m),a.addTriangles(this.unevalTriangles,this.unevalVertices,this.unevalHeights),s(T),a.addTriangles(this.unevalTunnelTriangles,this.unevalVertices,this.unevalHeights),s(h),a.addTriangles(this.unevalTunnelTriangles,this.unevalVertices,[-.1]),s(u),this.maskSegments=Cr.simpleSegment(0,T.primitiveOffset,0,T.primitiveLength),this.depthSegments=Cr.simpleSegment(0,h.primitiveOffset,0,h.primitiveLength),this.renderableSegments=Cr.simpleSegment(0,m.primitiveOffset,0,m.primitiveLength),this.shadowCasterSegments=Cr.simpleSegment(0,u.primitiveOffset,0,u.primitiveLength)}upload(e){this.vertexBuffer||this.vertexPositions.length===0||this.vertexNormals.length===0||this.indexArray.length===0||(this.vertexBuffer=e.createVertexBuffer(this.vertexPositions,r3.members),this.vertexBufferNormal=e.createVertexBuffer(this.vertexNormals,n3.members),this.indexBuffer=e.createIndexBuffer(this.indexArray))}destroy(){this.vertexBuffer&&(this.vertexBuffer.destroy(),this.vertexBufferNormal.destroy(),this.indexBuffer.destroy()),this.maskSegments&&(this.maskSegments.destroy(),this.depthSegments.destroy(),this.renderableSegments.destroy(),this.shadowCasterSegments.destroy())}computeVertexConnections(e,i,s,a,u){const h=new Map;for(let m=a;m<u;m++){const g=s[m],x=g.a,T=g.b,S=To.computePosHash(e[x]),A=To.computePosHash(e[T]);h.has(S)||h.set(S,{}),h.has(A)||h.set(A,{});const D=h.get(S),R=h.get(A);i[x]<=0&&i[T]<=0||(D.to=T,R.from=x)}return h}constructBridgeStructures(e,i,s,a,u,h){const m=this.computeVertexConnections(i,s,a,u.min,u.max),g=1/h,x=.5*g,T=A=>Bt(i[A].x,i[A].y,s[A]*g),S=A=>{const D=m.get(To.computePosHash(i[A])),R=D.from,O=D.to;if(!R||!O)return;const $=T(R),H=T(A),K=T(O),W=Bt(0,0,0);if(!tr($,H)){const q=Ti(ni(),H,$);Yt(W,W,Ui(q,q))}if(!tr(K,H)){const q=Ti(ni(),K,H);Yt(W,W,Ui(q,q))}const F=wr(W);return F>0?Ei(W,W,1/F):void 0};for(let A=u.min;A<u.max;A++){const D=a[A],R=this.prepareEdgePoints(i,s,D,(st,Xt)=>st>Xt);if(R==null)continue;const O=R[0],$=R[1],H=Bt(O.coord.x,O.coord.y,g*O.height),K=Bt($.coord.x,$.coord.y,g*$.height);if(tr(H,K))continue;const W=Ti(ni(),K,H);Ui(W,W);const F=st=>Ui(st,st),q=S(D.a)||W,Y=S(D.b)||W,te=F(Bt(q[1],-q[0],0)),de=F(Bt(Y[1],-Y[0],0)),ge=F(Lr(ni(),te,q)),xe=F(Lr(ni(),de,Y)),Ce=ni(),Ue=[Yt(ni(),H,Ei(Ce,Ti(Ce,te,ge),x)),Yt(ni(),H,Ei(Ce,Yt(Ce,te,ge),x)),Yt(ni(),H,Ei(Ce,ge,x)),H],et=[Yt(ni(),K,Ei(Ce,Ti(Ce,de,xe),x)),Yt(ni(),K,Ei(Ce,Yt(Ce,de,xe),x)),Yt(ni(),K,Ei(Ce,xe,x)),K],[Xe,Qe]=e.addVertices(te,h,Ue[0],Ue[1]),[ot,je]=e.addVertices(de,h,et[0],et[1]);e.addTriangles([Xe,Qe,ot,Qe,je,ot]);const[Je,Fe]=e.addVertices(ge,h,Ue[1],Ue[2]),[Ve,lt]=e.addVertices(xe,h,et[1],et[2]);e.addTriangles([Je,Fe,Ve,Fe,lt,Ve]);const[ct,zt]=e.addVertices(po(te,te),h,Ue[2],Ue[3]),[Et,gt]=e.addVertices(po(de,de),h,et[2],et[3]);e.addTriangles([ct,zt,Et,zt,gt,Et])}}constructTunnelStructures(e,i,s,a,u,h){const m=g=>Ui(g,g);for(let g=u.min;g<u.max;g++){const x=this.prepareEdgePoints(i,s,a[g],(D,R)=>D<R);if(x==null)continue;const[T,S]=x,A=m(Bt(S.coord.y-T.coord.y,-(S.coord.x-T.coord.x),0));e.addQuad([T,S,{coord:S.coord,height:a[g].isTunnel?-.1:0},{coord:T.coord,height:a[g].isTunnel?-.1:0}],A)}for(let g=h.min;g<h.max;g++){const x=a[g],T=i[x.a],S=i[x.b],A=m(Bt(S.y-T.y,-(S.x-T.x),0));e.addQuad([{coord:S,height:0},{coord:T,height:0},{coord:T,height:s[x.a]+4},{coord:S,height:s[x.b]+4}],A),e.addQuad([{coord:T,height:0},{coord:S,height:0},{coord:S,height:s[x.b]+4},{coord:T,height:s[x.a]+4}],A)}}prepareEdgePoints(e,i,s,a){let u=i[s.a],h=i[s.b];const m=a(u,0),g=a(h,0);if(m&&g)return[{coord:e[s.a],height:u},{coord:e[s.b],height:h}];if(!m&&!g)return;const x=e[s.a].clone(),T=e[s.b].clone();if(m){if(!g){const S=h/(h-u);T.x=Nt(T.x,x.x,S),T.y=Nt(T.y,x.y,S),h=Nt(h,u,S)}}else{const S=u/(u-h);x.x=Nt(x.x,T.x,S),x.y=Nt(x.y,T.y,S),u=Nt(u,h,S)}return[{coord:x,height:u},{coord:T,height:h}]}prepareEdges(e,i){if(i.length===0)return;i.sort((m,g)=>m.hash===g.hash?g.polygonIdx-m.polygonIdx:g.hash>m.hash?1:-1);let s=0,a=0,u=0,h=i[s].polygonIdx;do a++,(a===i.length||i[s].hash!==i[a].hash)&&((a-s==1||i[a-1].polygonIdx!==h)&&(u<s&&(i[u]=i[s],i[s]=null),i[u].type="none",u++),s=a,s!==i.length&&(h=i[s].polygonIdx));while(s!==i.length);if(i.splice(u),i.length!==0&&e.length!==0){i.sort((x,T)=>x.portalHash<T.portalHash?1:-1);let m=0,g=0;for(;m!==i.length&&g!==e.length;){const x=i[m],T=e[g];x.portalHash>T.hash?m++:T.hash>x.portalHash?g++:(x.type=T.type,m++)}}}isOnBorder(e,i){return e<=0&&i<=0||e>=_t&&i>=_t}static computeEdgeHash(e,i){return(e.y===i.y&&e.x>i.x||e.y>i.y)&&([e,i]=[i,e]),BigInt(To.computePosHash(e))<<32n|BigInt(To.computePosHash(i))}static computePosHash(e){return((65535&e.x)<<16|65535&e.y)>>>0}}var Xw,Yw={exports:{}},Kw=(Xw||(Xw=1,function(r,e){(function(i){function s(Q,ie){return Q>ie?1:Q<ie?-1:0}var a=function(Q,ie){Q===void 0&&(Q=s),ie===void 0&&(ie=!1),this._compare=Q,this._root=null,this._size=0,this._noDuplicates=!!ie},u={size:{configurable:!0}};function h(Q,ie,Ge,dt,vt){var yt=vt-dt;if(yt>0){var Dt=dt+Math.floor(yt/2),$t={key:ie[Dt],data:Ge[Dt],parent:Q};return $t.left=h($t,ie,Ge,dt,Dt),$t.right=h($t,ie,Ge,Dt+1,vt),$t}return null}function m(Q,ie,Ge,dt,vt){if(!(Ge>=dt)){for(var yt=Q[Ge+dt>>1],Dt=Ge-1,$t=dt+1;;){do Dt++;while(vt(Q[Dt],yt)<0);do $t--;while(vt(Q[$t],yt)>0);if(Dt>=$t)break;var xi=Q[Dt];Q[Dt]=Q[$t],Q[$t]=xi,xi=ie[Dt],ie[Dt]=ie[$t],ie[$t]=xi}m(Q,ie,Ge,$t,vt),m(Q,ie,$t+1,dt,vt)}}a.prototype.rotateLeft=function(Q){var ie=Q.right;ie&&(Q.right=ie.left,ie.left&&(ie.left.parent=Q),ie.parent=Q.parent),Q.parent?Q===Q.parent.left?Q.parent.left=ie:Q.parent.right=ie:this._root=ie,ie&&(ie.left=Q),Q.parent=ie},a.prototype.rotateRight=function(Q){var ie=Q.left;ie&&(Q.left=ie.right,ie.right&&(ie.right.parent=Q),ie.parent=Q.parent),Q.parent?Q===Q.parent.left?Q.parent.left=ie:Q.parent.right=ie:this._root=ie,ie&&(ie.right=Q),Q.parent=ie},a.prototype._splay=function(Q){for(;Q.parent;){var ie=Q.parent;ie.parent?ie.left===Q&&ie.parent.left===ie?(this.rotateRight(ie.parent),this.rotateRight(ie)):ie.right===Q&&ie.parent.right===ie?(this.rotateLeft(ie.parent),this.rotateLeft(ie)):ie.left===Q&&ie.parent.right===ie?(this.rotateRight(ie),this.rotateLeft(ie)):(this.rotateLeft(ie),this.rotateRight(ie)):ie.left===Q?this.rotateRight(ie):this.rotateLeft(ie)}},a.prototype.splay=function(Q){for(var ie,Ge,dt,vt,yt;Q.parent;)(Ge=(ie=Q.parent).parent)&&Ge.parent?((dt=Ge.parent).left===Ge?dt.left=Q:dt.right=Q,Q.parent=dt):(Q.parent=null,this._root=Q),vt=Q.left,yt=Q.right,Q===ie.left?(Ge&&(Ge.left===ie?(ie.right?(Ge.left=ie.right,Ge.left.parent=Ge):Ge.left=null,ie.right=Ge,Ge.parent=ie):(vt?(Ge.right=vt,vt.parent=Ge):Ge.right=null,Q.left=Ge,Ge.parent=Q)),yt?(ie.left=yt,yt.parent=ie):ie.left=null,Q.right=ie,ie.parent=Q):(Ge&&(Ge.right===ie?(ie.left?(Ge.right=ie.left,Ge.right.parent=Ge):Ge.right=null,ie.left=Ge,Ge.parent=ie):(yt?(Ge.left=yt,yt.parent=Ge):Ge.left=null,Q.right=Ge,Ge.parent=Q)),vt?(ie.right=vt,vt.parent=ie):ie.right=null,Q.left=ie,ie.parent=Q)},a.prototype.replace=function(Q,ie){Q.parent?Q===Q.parent.left?Q.parent.left=ie:Q.parent.right=ie:this._root=ie,ie&&(ie.parent=Q.parent)},a.prototype.minNode=function(Q){if(Q===void 0&&(Q=this._root),Q)for(;Q.left;)Q=Q.left;return Q},a.prototype.maxNode=function(Q){if(Q===void 0&&(Q=this._root),Q)for(;Q.right;)Q=Q.right;return Q},a.prototype.insert=function(Q,ie){var Ge=this._root,dt=null,vt=this._compare;if(this._noDuplicates)for(;Ge;){if(dt=Ge,vt(Ge.key,Q)===0)return;Ge=vt(Ge.key,Q)<0?Ge.right:Ge.left}else for(;Ge;)dt=Ge,Ge=vt(Ge.key,Q)<0?Ge.right:Ge.left;return Ge={key:Q,data:ie,left:null,right:null,parent:dt},dt?vt(dt.key,Ge.key)<0?dt.right=Ge:dt.left=Ge:this._root=Ge,this.splay(Ge),this._size++,Ge},a.prototype.find=function(Q){for(var ie=this._root,Ge=this._compare;ie;){var dt=Ge(ie.key,Q);if(dt<0)ie=ie.right;else{if(!(dt>0))return ie;ie=ie.left}}return null},a.prototype.contains=function(Q){for(var ie=this._root,Ge=this._compare;ie;){var dt=Ge(Q,ie.key);if(dt===0)return!0;ie=dt<0?ie.left:ie.right}return!1},a.prototype.remove=function(Q){var ie=this.find(Q);if(!ie)return!1;if(this.splay(ie),ie.left)if(ie.right){var Ge=this.minNode(ie.right);Ge.parent!==ie&&(this.replace(Ge,Ge.right),Ge.right=ie.right,Ge.right.parent=Ge),this.replace(ie,Ge),Ge.left=ie.left,Ge.left.parent=Ge}else this.replace(ie,ie.left);else this.replace(ie,ie.right);return this._size--,!0},a.prototype.removeNode=function(Q){if(!Q)return!1;if(this.splay(Q),Q.left)if(Q.right){var ie=this.minNode(Q.right);ie.parent!==Q&&(this.replace(ie,ie.right),ie.right=Q.right,ie.right.parent=ie),this.replace(Q,ie),ie.left=Q.left,ie.left.parent=ie}else this.replace(Q,Q.left);else this.replace(Q,Q.right);return this._size--,!0},a.prototype.erase=function(Q){var ie=this.find(Q);if(ie){this.splay(ie);var Ge=ie.left,dt=ie.right,vt=null;Ge&&(Ge.parent=null,vt=this.maxNode(Ge),this.splay(vt),this._root=vt),dt&&(Ge?vt.right=dt:this._root=dt,dt.parent=vt),this._size--}},a.prototype.pop=function(){var Q=this._root,ie=null;if(Q){for(;Q.left;)Q=Q.left;ie={key:Q.key,data:Q.data},this.remove(Q.key)}return ie},a.prototype.next=function(Q){var ie=Q;if(ie)if(ie.right)for(ie=ie.right;ie&&ie.left;)ie=ie.left;else for(ie=Q.parent;ie&&ie.right===Q;)Q=ie,ie=ie.parent;return ie},a.prototype.prev=function(Q){var ie=Q;if(ie)if(ie.left)for(ie=ie.left;ie&&ie.right;)ie=ie.right;else for(ie=Q.parent;ie&&ie.left===Q;)Q=ie,ie=ie.parent;return ie},a.prototype.forEach=function(Q){for(var ie=this._root,Ge=[],dt=!1,vt=0;!dt;)ie?(Ge.push(ie),ie=ie.left):Ge.length>0?(Q(ie=Ge.pop(),vt++),ie=ie.right):dt=!0;return this},a.prototype.range=function(Q,ie,Ge,dt){for(var vt=[],yt=this._compare,Dt=this._root;vt.length!==0||Dt;)if(Dt)vt.push(Dt),Dt=Dt.left;else{if(yt((Dt=vt.pop()).key,ie)>0)break;if(yt(Dt.key,Q)>=0&&Ge.call(dt,Dt))return this;Dt=Dt.right}return this},a.prototype.keys=function(){for(var Q=this._root,ie=[],Ge=[],dt=!1;!dt;)Q?(ie.push(Q),Q=Q.left):ie.length>0?(Q=ie.pop(),Ge.push(Q.key),Q=Q.right):dt=!0;return Ge},a.prototype.values=function(){for(var Q=this._root,ie=[],Ge=[],dt=!1;!dt;)Q?(ie.push(Q),Q=Q.left):ie.length>0?(Q=ie.pop(),Ge.push(Q.data),Q=Q.right):dt=!0;return Ge},a.prototype.at=function(Q){for(var ie=this._root,Ge=[],dt=!1,vt=0;!dt;)if(ie)Ge.push(ie),ie=ie.left;else if(Ge.length>0){if(ie=Ge.pop(),vt===Q)return ie;vt++,ie=ie.right}else dt=!0;return null},a.prototype.load=function(Q,ie,Ge){if(Q===void 0&&(Q=[]),ie===void 0&&(ie=[]),Ge===void 0&&(Ge=!1),this._size!==0)throw new Error("bulk-load: tree is not empty");var dt=Q.length;return Ge&&m(Q,ie,0,dt-1,this._compare),this._root=h(null,Q,ie,0,dt),this._size=dt,this},a.prototype.min=function(){var Q=this.minNode(this._root);return Q?Q.key:null},a.prototype.max=function(){var Q=this.maxNode(this._root);return Q?Q.key:null},a.prototype.isEmpty=function(){return this._root===null},u.size.get=function(){return this._size},a.createTree=function(Q,ie,Ge,dt,vt){return new a(Ge,vt).load(Q,ie,dt)},Object.defineProperties(a.prototype,u);var g=0,x=1,T=2,S=3,A=0,D=1,R=2,O=3;function $(Q,ie,Ge){ie===null?(Q.inOut=!1,Q.otherInOut=!0):(Q.isSubject===ie.isSubject?(Q.inOut=!ie.inOut,Q.otherInOut=ie.otherInOut):(Q.inOut=!ie.otherInOut,Q.otherInOut=ie.isVertical()?!ie.inOut:ie.inOut),ie&&(Q.prevInResult=!H(ie,Ge)||ie.isVertical()?ie.prevInResult:ie));var dt=H(Q,Ge);Q.resultTransition=dt?function(vt,yt){var Dt,$t=!vt.inOut,xi=!vt.otherInOut;switch(yt){case A:Dt=$t&&xi;break;case D:Dt=$t||xi;break;case O:Dt=$t^xi;break;case R:Dt=vt.isSubject?$t&&!xi:xi&&!$t}return Dt?1:-1}(Q,Ge):0}function H(Q,ie){switch(Q.type){case g:switch(ie){case A:return!Q.otherInOut;case D:return Q.otherInOut;case R:return Q.isSubject&&Q.otherInOut||!Q.isSubject&&!Q.otherInOut;case O:return!0}break;case T:return ie===A||ie===D;case S:return ie===R;case x:return!1}return!1}var K=function(Q,ie,Ge,dt,vt){this.left=ie,this.point=Q,this.otherEvent=Ge,this.isSubject=dt,this.type=vt||g,this.inOut=!1,this.otherInOut=!1,this.prevInResult=null,this.resultTransition=0,this.otherPos=-1,this.outputContourId=-1,this.isExteriorRing=!0},W={inResult:{configurable:!0}};function F(Q,ie){return Q[0]===ie[0]&&Q[1]===ie[1]}K.prototype.isBelow=function(Q){var ie=this.point,Ge=this.otherEvent.point;return this.left?(ie[0]-Q[0])*(Ge[1]-Q[1])-(Ge[0]-Q[0])*(ie[1]-Q[1])>0:(Ge[0]-Q[0])*(ie[1]-Q[1])-(ie[0]-Q[0])*(Ge[1]-Q[1])>0},K.prototype.isAbove=function(Q){return!this.isBelow(Q)},K.prototype.isVertical=function(){return this.point[0]===this.otherEvent.point[0]},W.inResult.get=function(){return this.resultTransition!==0},K.prototype.clone=function(){var Q=new K(this.point,this.left,this.otherEvent,this.isSubject,this.type);return Q.contourId=this.contourId,Q.resultTransition=this.resultTransition,Q.prevInResult=this.prevInResult,Q.isExteriorRing=this.isExteriorRing,Q.inOut=this.inOut,Q.otherInOut=this.otherInOut,Q},Object.defineProperties(K.prototype,W);var q=11102230246251565e-32,Y=134217729,te=(3+8*q)*q;function de(Q,ie,Ge,dt,vt){var yt,Dt,$t,xi,bi=ie[0],li=dt[0],Hi=0,lr=0;li>bi==li>-bi?(yt=bi,bi=ie[++Hi]):(yt=li,li=dt[++lr]);var wi=0;if(Hi<Q&&lr<Ge)for(li>bi==li>-bi?($t=yt-((Dt=bi+yt)-bi),bi=ie[++Hi]):($t=yt-((Dt=li+yt)-li),li=dt[++lr]),yt=Dt,$t!==0&&(vt[wi++]=$t);Hi<Q&&lr<Ge;)li>bi==li>-bi?($t=yt-((Dt=yt+bi)-(xi=Dt-yt))+(bi-xi),bi=ie[++Hi]):($t=yt-((Dt=yt+li)-(xi=Dt-yt))+(li-xi),li=dt[++lr]),yt=Dt,$t!==0&&(vt[wi++]=$t);for(;Hi<Q;)$t=yt-((Dt=yt+bi)-(xi=Dt-yt))+(bi-xi),bi=ie[++Hi],yt=Dt,$t!==0&&(vt[wi++]=$t);for(;lr<Ge;)$t=yt-((Dt=yt+li)-(xi=Dt-yt))+(li-xi),li=dt[++lr],yt=Dt,$t!==0&&(vt[wi++]=$t);return yt===0&&wi!==0||(vt[wi++]=yt),wi}function ge(Q){return new Float64Array(Q)}var xe=33306690738754716e-32,Ce=22204460492503146e-32,Ue=11093356479670487e-47,et=ge(4),Xe=ge(8),Qe=ge(12),ot=ge(16),je=ge(4);function Je(Q,ie,Ge){var dt=function(vt,yt,Dt,$t,xi,bi){var li=(yt-bi)*(Dt-xi),Hi=(vt-xi)*($t-bi),lr=li-Hi;if(li===0||Hi===0||li>0!=Hi>0)return lr;var wi=Math.abs(li+Hi);return Math.abs(lr)>=xe*wi?lr:-function(Mr,pr,Vi,Vr,mr,cr,fr){var Zi,pi,Qi,Pr,Ut,Pi,_r,Or,br,tn,nr,Jr,no,Pn,En,oo,aa,rn,dn=Mr-mr,Dn=Vi-mr,Hn=pr-cr,kn=Vr-cr;et[0]=(En=(Or=dn-(_r=(Pi=Y*dn)-(Pi-dn)))*(tn=kn-(br=(Pi=Y*kn)-(Pi-kn)))-((Pn=dn*kn)-_r*br-Or*br-_r*tn))-((nr=En-(aa=(Or=Hn-(_r=(Pi=Y*Hn)-(Pi-Hn)))*(tn=Dn-(br=(Pi=Y*Dn)-(Pi-Dn)))-((oo=Hn*Dn)-_r*br-Or*br-_r*tn)))+(Ut=En-nr))+(Ut-aa),et[1]=(no=Pn-((Jr=Pn+nr)-(Ut=Jr-Pn))+(nr-Ut))-((nr=no-oo)+(Ut=no-nr))+(Ut-oo),et[2]=Jr-((rn=Jr+nr)-(Ut=rn-Jr))+(nr-Ut),et[3]=rn;var Ql=function(y5,iE){for(var rE=iE[0],Dv=1;Dv<4;Dv++)rE+=iE[Dv];return rE}(0,et),hf=Ce*fr;if(Ql>=hf||-Ql>=hf||(Zi=Mr-(dn+(Ut=Mr-dn))+(Ut-mr),Qi=Vi-(Dn+(Ut=Vi-Dn))+(Ut-mr),pi=pr-(Hn+(Ut=pr-Hn))+(Ut-cr),Pr=Vr-(kn+(Ut=Vr-kn))+(Ut-cr),Zi===0&&pi===0&&Qi===0&&Pr===0)||(hf=Ue*fr+te*Math.abs(Ql),(Ql+=dn*Pr+kn*Zi-(Hn*Qi+Dn*pi))>=hf||-Ql>=hf))return Ql;je[0]=(En=(Or=Zi-(_r=(Pi=Y*Zi)-(Pi-Zi)))*(tn=kn-(br=(Pi=Y*kn)-(Pi-kn)))-((Pn=Zi*kn)-_r*br-Or*br-_r*tn))-((nr=En-(aa=(Or=pi-(_r=(Pi=Y*pi)-(Pi-pi)))*(tn=Dn-(br=(Pi=Y*Dn)-(Pi-Dn)))-((oo=pi*Dn)-_r*br-Or*br-_r*tn)))+(Ut=En-nr))+(Ut-aa),je[1]=(no=Pn-((Jr=Pn+nr)-(Ut=Jr-Pn))+(nr-Ut))-((nr=no-oo)+(Ut=no-nr))+(Ut-oo),je[2]=Jr-((rn=Jr+nr)-(Ut=rn-Jr))+(nr-Ut),je[3]=rn;var t5=de(4,et,4,je,Xe);je[0]=(En=(Or=dn-(_r=(Pi=Y*dn)-(Pi-dn)))*(tn=Pr-(br=(Pi=Y*Pr)-(Pi-Pr)))-((Pn=dn*Pr)-_r*br-Or*br-_r*tn))-((nr=En-(aa=(Or=Hn-(_r=(Pi=Y*Hn)-(Pi-Hn)))*(tn=Qi-(br=(Pi=Y*Qi)-(Pi-Qi)))-((oo=Hn*Qi)-_r*br-Or*br-_r*tn)))+(Ut=En-nr))+(Ut-aa),je[1]=(no=Pn-((Jr=Pn+nr)-(Ut=Jr-Pn))+(nr-Ut))-((nr=no-oo)+(Ut=no-nr))+(Ut-oo),je[2]=Jr-((rn=Jr+nr)-(Ut=rn-Jr))+(nr-Ut),je[3]=rn;var i5=de(t5,Xe,4,je,Qe);je[0]=(En=(Or=Zi-(_r=(Pi=Y*Zi)-(Pi-Zi)))*(tn=Pr-(br=(Pi=Y*Pr)-(Pi-Pr)))-((Pn=Zi*Pr)-_r*br-Or*br-_r*tn))-((nr=En-(aa=(Or=pi-(_r=(Pi=Y*pi)-(Pi-pi)))*(tn=Qi-(br=(Pi=Y*Qi)-(Pi-Qi)))-((oo=pi*Qi)-_r*br-Or*br-_r*tn)))+(Ut=En-nr))+(Ut-aa),je[1]=(no=Pn-((Jr=Pn+nr)-(Ut=Jr-Pn))+(nr-Ut))-((nr=no-oo)+(Ut=no-nr))+(Ut-oo),je[2]=Jr-((rn=Jr+nr)-(Ut=rn-Jr))+(nr-Ut),je[3]=rn;var r5=de(i5,Qe,4,je,ot);return ot[r5-1]}(vt,yt,Dt,$t,xi,bi,wi)}(Q[0],Q[1],ie[0],ie[1],Ge[0],Ge[1]);return dt>0?-1:dt<0?1:0}function Fe(Q,ie){var Ge=Q.point,dt=ie.point;return Ge[0]>dt[0]?1:Ge[0]<dt[0]?-1:Ge[1]!==dt[1]?Ge[1]>dt[1]?1:-1:function(vt,yt,Dt,$t){return vt.left!==yt.left?vt.left?1:-1:Je(Dt,vt.otherEvent.point,yt.otherEvent.point)!==0?vt.isBelow(yt.otherEvent.point)?-1:1:!vt.isSubject&&yt.isSubject?1:-1}(Q,ie,Ge)}function Ve(Q,ie,Ge){var dt=new K(ie,!1,Q,Q.isSubject),vt=new K(ie,!0,Q.otherEvent,Q.isSubject);return F(Q.point,Q.otherEvent.point)&&console.warn("what is that, a collapsed segment?",Q),dt.contourId=vt.contourId=Q.contourId,Fe(vt,Q.otherEvent)>0&&(Q.otherEvent.left=!0,vt.left=!1),Q.otherEvent.otherEvent=vt,Q.otherEvent=dt,Ge.push(vt),Ge.push(dt),Ge}function lt(Q,ie){return Q[0]*ie[1]-Q[1]*ie[0]}function ct(Q,ie){return Q[0]*ie[0]+Q[1]*ie[1]}function zt(Q,ie,Ge){var dt=function(xi,bi,li,Hi,lr){var wi=[bi[0]-xi[0],bi[1]-xi[1]],Mr=[Hi[0]-li[0],Hi[1]-li[1]];function pr(Pi,_r,Or){return[Pi[0]+_r*Or[0],Pi[1]+_r*Or[1]]}var Vi=[li[0]-xi[0],li[1]-xi[1]],Vr=lt(wi,Mr),mr=Vr*Vr,cr=ct(wi,wi);if(mr>0){var fr=lt(Vi,Mr)/Vr;if(fr<0||fr>1)return null;var Zi=lt(Vi,wi)/Vr;return Zi<0||Zi>1?null:fr===0||fr===1?[pr(xi,fr,wi)]:Zi===0||Zi===1?[pr(li,Zi,Mr)]:[pr(xi,fr,wi)]}if((mr=(Vr=lt(Vi,wi))*Vr)>0)return null;var pi=ct(wi,Vi)/cr,Qi=pi+ct(wi,Mr)/cr,Pr=Math.min(pi,Qi),Ut=Math.max(pi,Qi);return Pr<=1&&Ut>=0?Pr===1?[pr(xi,Pr>0?Pr:0,wi)]:Ut===0?[pr(xi,Ut<1?Ut:1,wi)]:[pr(xi,Pr>0?Pr:0,wi),pr(xi,Ut<1?Ut:1,wi)]:null}(Q.point,Q.otherEvent.point,ie.point,ie.otherEvent.point),vt=dt?dt.length:0;if(vt===0||vt===1&&(F(Q.point,ie.point)||F(Q.otherEvent.point,ie.otherEvent.point))||vt===2&&Q.isSubject===ie.isSubject)return 0;if(vt===1)return F(Q.point,dt[0])||F(Q.otherEvent.point,dt[0])||Ve(Q,dt[0],Ge),F(ie.point,dt[0])||F(ie.otherEvent.point,dt[0])||Ve(ie,dt[0],Ge),1;var yt=[],Dt=!1,$t=!1;return F(Q.point,ie.point)?Dt=!0:Fe(Q,ie)===1?yt.push(ie,Q):yt.push(Q,ie),F(Q.otherEvent.point,ie.otherEvent.point)?$t=!0:Fe(Q.otherEvent,ie.otherEvent)===1?yt.push(ie.otherEvent,Q.otherEvent):yt.push(Q.otherEvent,ie.otherEvent),Dt&&$t||Dt?(ie.type=x,Q.type=ie.inOut===Q.inOut?T:S,Dt&&!$t&&Ve(yt[1].otherEvent,yt[0].point,Ge),2):$t?(Ve(yt[0],yt[1].point,Ge),3):yt[0]!==yt[3].otherEvent?(Ve(yt[0],yt[1].point,Ge),Ve(yt[1],yt[2].point,Ge),3):(Ve(yt[0],yt[1].point,Ge),Ve(yt[3].otherEvent,yt[2].point,Ge),3)}function Et(Q,ie){if(Q===ie)return 0;if(Je(Q.point,Q.otherEvent.point,ie.point)!==0||Je(Q.point,Q.otherEvent.point,ie.otherEvent.point)!==0)return F(Q.point,ie.point)?Q.isBelow(ie.otherEvent.point)?-1:1:Q.point[0]===ie.point[0]?Q.point[1]<ie.point[1]?-1:1:Fe(Q,ie)===1?ie.isAbove(Q.point)?-1:1:Q.isBelow(ie.point)?-1:1;if(Q.isSubject!==ie.isSubject)return Q.isSubject?-1:1;var Ge=Q.point,dt=ie.point;return Ge[0]===dt[0]&&Ge[1]===dt[1]?(Ge=Q.otherEvent.point)[0]===(dt=ie.otherEvent.point)[0]&&Ge[1]===dt[1]?0:Q.contourId>ie.contourId?1:-1:Fe(Q,ie)===1?1:-1}var gt=function(){this.points=[],this.holeIds=[],this.holeOf=null,this.depth=null};function st(Q,ie,Ge,dt){var vt,yt=Q+1,Dt=ie[Q].point,$t=ie.length;for(yt<$t&&(vt=ie[yt].point);yt<$t&&vt[0]===Dt[0]&&vt[1]===Dt[1];){if(!Ge[yt])return yt;++yt<$t&&(vt=ie[yt].point)}for(yt=Q-1;Ge[yt]&&yt>dt;)yt--;return yt}gt.prototype.isExterior=function(){return this.holeOf==null};var Xt=Pt,Mt=Pt;function Pt(Q,ie){if(!(this instanceof Pt))return new Pt(Q,ie);if(this.data=Q||[],this.length=this.data.length,this.compare=ie||Ht,this.length>0)for(var Ge=(this.length>>1)-1;Ge>=0;Ge--)this._down(Ge)}function Ht(Q,ie){return Q<ie?-1:Q>ie?1:0}Pt.prototype={push:function(Q){this.data.push(Q),this.length++,this._up(this.length-1)},pop:function(){if(this.length!==0){var Q=this.data[0];return this.length--,this.length>0&&(this.data[0]=this.data[this.length],this._down(0)),this.data.pop(),Q}},peek:function(){return this.data[0]},_up:function(Q){for(var ie=this.data,Ge=this.compare,dt=ie[Q];Q>0;){var vt=Q-1>>1,yt=ie[vt];if(Ge(dt,yt)>=0)break;ie[Q]=yt,Q=vt}ie[Q]=dt},_down:function(Q){for(var ie=this.data,Ge=this.compare,dt=this.length>>1,vt=ie[Q];Q<dt;){var yt=1+(Q<<1),Dt=yt+1,$t=ie[yt];if(Dt<this.length&&Ge(ie[Dt],$t)<0&&(yt=Dt,$t=ie[Dt]),Ge($t,vt)>=0)break;ie[Q]=$t,Q=yt}ie[Q]=vt}},Xt.default=Mt;var ti=Math.max,ri=Math.min,fi=0;function ci(Q,ie,Ge,dt,vt,yt){var Dt,$t,xi,bi,li,Hi;for(Dt=0,$t=Q.length-1;Dt<$t;Dt++)if(bi=Q[Dt+1],li=new K(xi=Q[Dt],!1,void 0,ie),Hi=new K(bi,!1,li,ie),li.otherEvent=Hi,xi[0]!==bi[0]||xi[1]!==bi[1]){li.contourId=Hi.contourId=Ge,yt||(li.isExteriorRing=!1,Hi.isExteriorRing=!1),Fe(li,Hi)>0?Hi.left=!0:li.left=!0;var lr=xi[0],wi=xi[1];vt[0]=ri(vt[0],lr),vt[1]=ri(vt[1],wi),vt[2]=ti(vt[2],lr),vt[3]=ti(vt[3],wi),dt.push(li),dt.push(Hi)}}var ai=[];function rr(Q,ie,Ge){typeof Q[0][0][0]=="number"&&(Q=[Q]),typeof ie[0][0][0]=="number"&&(ie=[ie]);var dt=function(wi,Mr,pr){var Vi=null;return wi.length*Mr.length==0&&(pr===A?Vi=ai:pr===R?Vi=wi:pr!==D&&pr!==O||(Vi=wi.length===0?Mr:wi)),Vi}(Q,ie,Ge);if(dt)return dt===ai?null:dt;var vt=[1/0,1/0,-1/0,-1/0],yt=[1/0,1/0,-1/0,-1/0],Dt=function(wi,Mr,pr,Vi,Vr){var mr,cr,fr,Zi,pi,Qi,Pr=new Xt(null,Fe);for(fr=0,Zi=wi.length;fr<Zi;fr++)for(pi=0,Qi=(mr=wi[fr]).length;pi<Qi;pi++)(cr=pi===0)&&fi++,ci(mr[pi],!0,fi,Pr,pr,cr);for(fr=0,Zi=Mr.length;fr<Zi;fr++)for(pi=0,Qi=(mr=Mr[fr]).length;pi<Qi;pi++)cr=pi===0,Vr===R&&(cr=!1),cr&&fi++,ci(mr[pi],!1,fi,Pr,Vi,cr);return Pr}(Q,ie,vt,yt,Ge);if(dt=function(wi,Mr,pr,Vi,Vr){var mr=null;return(pr[0]>Vi[2]||Vi[0]>pr[2]||pr[1]>Vi[3]||Vi[1]>pr[3])&&(Vr===A?mr=ai:Vr===R?mr=wi:Vr!==D&&Vr!==O||(mr=wi.concat(Mr))),mr}(Q,ie,vt,yt,Ge))return dt===ai?null:dt;for(var $t=function(wi){var Mr,pr,Vi=function(fr){var Zi,pi,Qi,Pr,Ut=[];for(pi=0,Qi=fr.length;pi<Qi;pi++)((Zi=fr[pi]).left&&Zi.inResult||!Zi.left&&Zi.otherEvent.inResult)&&Ut.push(Zi);for(var Pi=!1;!Pi;)for(Pi=!0,pi=0,Qi=Ut.length;pi<Qi;pi++)pi+1<Qi&&Fe(Ut[pi],Ut[pi+1])===1&&(Pr=Ut[pi],Ut[pi]=Ut[pi+1],Ut[pi+1]=Pr,Pi=!1);for(pi=0,Qi=Ut.length;pi<Qi;pi++)(Zi=Ut[pi]).otherPos=pi;for(pi=0,Qi=Ut.length;pi<Qi;pi++)(Zi=Ut[pi]).left||(Pr=Zi.otherPos,Zi.otherPos=Zi.otherEvent.otherPos,Zi.otherEvent.otherPos=Pr);return Ut}(wi),Vr={},mr=[],cr=function(){if(!Vr[Mr]){var fr=mr.length,Zi=function(Ut,Pi,_r){var Or=new gt;if(Ut.prevInResult!=null){var br=Ut.prevInResult,tn=br.outputContourId;if(br.resultTransition>0){var nr=Pi[tn];if(nr.holeOf!=null){var Jr=nr.holeOf;Pi[Jr].holeIds.push(_r),Or.holeOf=Jr,Or.depth=Pi[tn].depth}else Pi[tn].holeIds.push(_r),Or.holeOf=tn,Or.depth=Pi[tn].depth+1}else Or.holeOf=null,Or.depth=Pi[tn].depth}else Or.holeOf=null,Or.depth=0;return Or}(Vi[Mr],mr,fr),pi=function(Ut){Vr[Ut]=!0,Ut<Vi.length&&Vi[Ut]&&(Vi[Ut].outputContourId=fr)},Qi=Mr,Pr=Mr;for(Zi.points.push(Vi[Mr].point);pi(Qi),pi(Qi=Vi[Qi].otherPos),Zi.points.push(Vi[Qi].point),!((Qi=st(Qi,Vi,Vr,Pr))==Pr||Qi>=Vi.length)&&Vi[Qi];);mr.push(Zi)}};for(Mr=0,pr=Vi.length;Mr<pr;Mr++)cr();return mr}(function(wi,Mr,pr,Vi,Vr,mr){for(var cr,fr,Zi,pi=new a(Et),Qi=[],Pr=Math.min(Vi[2],Vr[2]);wi.length!==0;){var Ut=wi.pop();if(Qi.push(Ut),mr===A&&Ut.point[0]>Pr||mr===R&&Ut.point[0]>Vi[2])break;if(Ut.left){fr=cr=pi.insert(Ut),cr=cr!==(Zi=pi.minNode())?pi.prev(cr):null,fr=pi.next(fr);var Pi=cr?cr.key:null;if($(Ut,Pi,mr),fr&&zt(Ut,fr.key,wi)===2&&($(Ut,Pi,mr),$(fr.key,Ut,mr)),cr&&zt(cr.key,Ut,wi)===2){var _r=cr;$(Pi,(_r=_r!==Zi?pi.prev(_r):null)?_r.key:null,mr),$(Ut,Pi,mr)}}else fr=cr=pi.find(Ut=Ut.otherEvent),cr&&fr&&(cr=cr!==Zi?pi.prev(cr):null,fr=pi.next(fr),pi.remove(Ut),fr&&cr&&zt(cr.key,fr.key,wi))}return Qi}(Dt,0,0,vt,yt,Ge)),xi=[],bi=0;bi<$t.length;bi++){var li=$t[bi];if(li.isExterior()){for(var Hi=[li.points],lr=0;lr<li.holeIds.length;lr++)Hi.push($t[li.holeIds[lr]].points);xi.push(Hi)}}return xi}var dr={UNION:D,DIFFERENCE:R,INTERSECTION:A,XOR:O};i.diff=function(Q,ie){return rr(Q,ie,R)},i.intersection=function(Q,ie){return rr(Q,ie,A)},i.operations=dr,i.union=function(Q,ie){return rr(Q,ie,D)},i.xor=function(Q,ie){return rr(Q,ie,O)},Object.defineProperty(i,"__esModule",{value:!0})})(e)}(0,Yw.exports)),Yw.exports);/**
68
68
  * martinez v0.7.4
69
69
  * Martinez polygon clipping algorithm, does boolean operation on polygons (multipolygons, polygons with holes etc): intersection, union, difference, xor
70
70
  *
@@ -2718,4 +2718,4 @@ ${c.vertexSource}`,this.forceManualRenderingForInstanceIDShaders&&(L=L.replaceAl
2718
2718
  translate(${n.x}px,${n.y}px)
2719
2719
  `}_calculateXYTransform(){const t=this._pos,n=this._map,c=this.getPitchAlignment();if(!n||!t||c!=="map")return"";if(!n._showingGlobe()){const b=n.getPitch();return b?`rotateX(${b}deg)`:""}const d=o.cJ(o.eL(n.transform,this._lngLat)),f=t.sub(o.eM(n.transform)),_=Math.abs(f.x)+Math.abs(f.y);if(_===0)return"";const v=d/_;return`rotateX(${-f.y*v}deg) rotateY(${f.x*v}deg)`}_calculateZTransform(){const t=this._pos,n=this._map;if(!n||!t)return"";let c=0;const d=this.getRotationAlignment();if(d==="map")if(n._showingGlobe()){const f=n.project(new o.cd(this._lngLat.lng,this._lngLat.lat+.001),this._altitude),_=n.project(new o.cd(this._lngLat.lng,this._lngLat.lat-.001),this._altitude).sub(f);c=o.cJ(Math.atan2(_.y,_.x))-90}else c=-n.getBearing();else if(d==="horizon"){const f=o.af(4,6,n.getZoom()),_=o.eM(n.transform);_.y+=f*n.transform.height;const v=t.sub(_),b=o.cJ(Math.atan2(v.y,v.x));c=(b>90?b-270:b+90)*(1-f)}return c+=this._rotation,c?`rotateZ(${c}deg)`:""}_update(t){cancelAnimationFrame(this._updateFrameId);const n=this._map;n&&(n.transform.renderWorldCopies&&(this._lngLat=o_(this._lngLat,this._pos,n.transform)),this._pos=n.project(this._lngLat,this._altitude),t===!0?this._updateFrameId=requestAnimationFrame(()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())}):this._pos=this._pos.round(),n._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(n._showingGlobe()||n.getTerrain()||n.getFog())&&!this._fadeTimer&&(this._fadeTimer=window.setTimeout(this._evaluateOpacity.bind(this),60)))}))}getOffset(){return this._offset}setOffset(t){return this._offset=o.P.convert(t),this._update(),this}addClassName(t){return this._element.classList.add(t),this}removeClassName(t){return this._element.classList.remove(t),this}toggleClassName(t){return this._element.classList.toggle(t)}_onMove(t){const n=this._map;if(!n)return;const c=this._pointerdownPos,d=this._positionDelta;if(c&&d){if(!this._isDragging){const f=this._clickTolerance||n._clickTolerance;if(t.point.dist(c)<f)return;this._isDragging=!0}this._pos=t.point.sub(d),this._lngLat=n.unproject(this._pos,this._altitude),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new o.A("dragstart"))),this.fire(new o.A("drag"))}}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1;const t=this._map;t&&(t.off("mousemove",this._onMove),t.off("touchmove",this._onMove)),this._state==="active"&&this.fire(new o.A("dragend")),this._state="inactive"}_addDragHandler(t){const n=this._map,c=this._pos;n&&c&&this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(c),this._pointerdownPos=t.point,this._state="pending",n.on("mousemove",this._onMove),n.on("touchmove",this._onMove),n.once("mouseup",this._onUp),n.once("touchend",this._onUp))}setDraggable(t){this._draggable=!!t;const n=this._map;return n&&(t?(n.on("mousedown",this._addDragHandler),n.on("touchstart",this._addDragHandler)):(n.off("mousedown",this._addDragHandler),n.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(t){return this._rotation=t||bo.rotation,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(t){return this._rotationAlignment=t||bo.rotationAlignment,this._update(),this}getRotationAlignment(){return this._rotationAlignment==="auto"||this._rotationAlignment==="horizon"&&this._map&&!this._map._showingGlobe()?"viewport":this._rotationAlignment}setPitchAlignment(t){return this._pitchAlignment=t||bo.pitchAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment==="auto"?this.getRotationAlignment():this._pitchAlignment}setOccludedOpacity(t){return this._occludedOpacity=t||bo.occludedOpacity,this._update(),this}getOccludedOpacity(){return this._occludedOpacity}}const Yc={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1},Vl={maxWidth:100,unit:"metric"},Ss={kilometer:"km",meter:"m",mile:"mi",foot:"ft","nautical-mile":"nm"},ko={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",altitude:0},Oo=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function ra(l=new o.P(0,0),t="bottom"){if(typeof l=="number"){const n=Math.round(Math.sqrt(.5*Math.pow(l,2)));switch(t){case"top":return new o.P(0,l);case"top-left":return new o.P(n,n);case"top-right":return new o.P(-n,n);case"bottom":return new o.P(0,-l);case"bottom-left":return new o.P(n,-n);case"bottom-right":return new o.P(-n,-n);case"left":return new o.P(l,0);case"right":return new o.P(-l,0)}return new o.P(0,0)}return l instanceof o.P||Array.isArray(l)?o.P.convert(l):o.P.convert(l[t]||[0,0])}return{version:J,supported:De.supported,setRTLTextPlugin:o.eN,getRTLTextPluginStatus:o.eO,Map:class extends r_{constructor(l){be.mark(oe.create);const t=l;if((l=o.l({},n_,l)).minZoom!=null&&l.maxZoom!=null&&l.minZoom>l.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(l.minPitch!=null&&l.maxPitch!=null&&l.minPitch>l.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(l.minPitch!=null&&l.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(l.maxPitch!=null&&l.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(l.antialias&&o.eI(window)&&(l.antialias=!1,o.w("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new Pa(l.minZoom,l.maxZoom,l.minPitch,l.maxPitch,l.renderWorldCopies,null,null),l),this._repaint=!!l.repaint,this._interactive=l.interactive,this._minTileCacheSize=l.minTileCacheSize,this._maxTileCacheSize=l.maxTileCacheSize,this._failIfMajorPerformanceCaveat=l.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=l.preserveDrawingBuffer,this._antialias=l.antialias,this._trackResize=l.trackResize,this._bearingSnap=l.bearingSnap,this._refreshExpiredTiles=l.refreshExpiredTiles,this._fadeDuration=l.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=l.crossSourceCollisions,this._collectResourceTiming=l.collectResourceTiming,this._language=this._parseLanguage(l.language),this._worldview=l.worldview,this._renderTaskQueue=new Qo,this._domRenderTaskQueue=new Qo,this._controls=[],this._markers=[],this._popups=[],this._mapId=o.a$(),this._locale=o.l({},Wr,l.locale),this._clickTolerance=l.clickTolerance,this._cooperativeGestures=l.cooperativeGestures,this._performanceMetricsCollection=l.performanceMetricsCollection,this._tessellationStep=l.tessellationStep,this._containerWidth=0,this._containerHeight=0,this._showParseStatus=!0,this._precompilePrograms=l.precompilePrograms,this._scaleFactorChanged=!1,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new Dh(0),this._interactionRange=[1/0,-1/0],this._visibilityHidden=0,this._useExplicitProjection=!1,this._frameId=0,this._scaleFactor=l.scaleFactor,this._requestManager=new Bt(l.transformRequest,l.accessToken,l.testMode),this._silenceAuthErrors=!!l.testMode,this._contextCreateOptions=l.contextCreateOptions?Object.assign({},l.contextCreateOptions):{},typeof l.container=="string"){const n=document.getElementById(l.container);if(!n)throw new Error(`Container '${l.container.toString()}' not found.`);this._container=n}else{if(!(l.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=l.container}if(this._container.childNodes.length>0&&o.w("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),l.maxBounds&&this.setMaxBounds(l.maxBounds),this._spriteFormat=l.spriteFormat,o.aV(["_onWindowOnline","_onWindowResize","_onVisibilityChange","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._tp||(this._tp=new dp),this._tp.registerParameter(this,["Debug"],"showOverdrawInspector"),this._tp.registerParameter(this,["Debug"],"showTileBoundaries"),this._tp.registerParameter(this,["Debug"],"showParseStatus"),this._tp.registerParameter(this,["Debug"],"repaint"),this._tp.registerParameter(this,["Debug"],"showTileAABBs"),this._tp.registerParameter(this,["Debug"],"showPadding"),this._tp.registerParameter(this,["Debug"],"showCollisionBoxes",{noSave:!0}),this._tp.registerParameter(this.transform,["Debug"],"freezeTileCoverage",{noSave:!0},()=>{this._update()}),this._tp.registerParameter(this,["Debug","Wireframe"],"showTerrainWireframe"),this._tp.registerParameter(this,["Debug","Wireframe"],"showLayers2DWireframe"),this._tp.registerParameter(this,["Debug","Wireframe"],"showLayers3DWireframe"),this._tp.registerParameter(this,["Scaling"],"_scaleFactor",{min:.1,max:10,step:.1},()=>{this.setScaleFactor(this._scaleFactor)}),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");if(this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this._fullscreenchangeEvent="onfullscreenchange"in document?"fullscreenchange":"webkitfullscreenchange",window.addEventListener("online",this._onWindowOnline,!1),window.addEventListener("resize",this._onWindowResize,!1),window.addEventListener("orientationchange",this._onWindowResize,!1),window.addEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.addEventListener("visibilitychange",this._onVisibilityChange,!1),this.handlers=new h0(this,l),this._localFontFamily=l.localFontFamily,this._localIdeographFontFamily=l.localIdeographFontFamily,(l.style||!l.testMode)&&this.setStyle(l.style||o.e.DEFAULT_STYLE,{config:l.config,localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),l.projection&&this.setProjection(l.projection),this.indoor=new um(this),l.hash&&(this._hash=new kl(typeof l.hash=="string"&&l.hash||void 0).addTo(this)),!this._hash||!this._hash._onHashChange()){t.center==null&&t.zoom==null||(this.transform._unmodified=!1),this.jumpTo({center:l.center,zoom:l.zoom,bearing:l.bearing,pitch:l.pitch});const n=l.bounds;n&&(this.resize(),this.fitBounds(n,o.l({},l.fitBoundsOptions,{duration:0})))}this.resize(),l.attributionControl&&this.addControl(new Ph({customAttribution:l.customAttribution})),this._logoControl=new qc,this.addControl(this._logoControl,l.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet),this._postStyleLoadEvent()}),this.on("data",n=>{this._update(n.dataType==="style"),this.fire(new o.A(`${n.dataType}data`,n))}),this.on("dataloading",n=>{this.fire(new o.A(`${n.dataType}dataloading`,n))}),this._interactions=new Zc(this)}_getMapId(){return this._mapId}addControl(l,t){if(t===void 0&&(t=l.getDefaultPosition?l.getDefaultPosition():"top-right"),!l||!l.onAdd)return this.fire(new o.z(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const n=l.onAdd(this);this._controls.push(l);const c=this._controlPositions[t];return t.indexOf("bottom")!==-1?c.insertBefore(n,c.firstChild):c.appendChild(n),this}removeControl(l){if(!l||!l.onRemove)return this.fire(new o.z(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const t=this._controls.indexOf(l);return t>-1&&this._controls.splice(t,1),l.onRemove(this),this}hasControl(l){return this._controls.indexOf(l)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(l){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const t=!this._moving;return t&&this.fire(new o.A("movestart",l)).fire(new o.A("move",l)),this.fire(new o.A("resize",l)),t&&this.fire(new o.A("moveend",l)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(l){return this.transform.setMaxBounds(o.aG.convert(l)),this._update()}setMinZoom(l){if((l=l??-2)>=-2&&l<=this.transform.maxZoom)return this.transform.minZoom=l,this._update(),this.getZoom()<l?this.setZoom(l):this.fire(new o.A("zoomstart")).fire(new o.A("zoom")).fire(new o.A("zoomend")),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(l){if((l=l??22)>=this.transform.minZoom)return this.transform.maxZoom=l,this._update(),this.getZoom()>l?this.setZoom(l):this.fire(new o.A("zoomstart")).fire(new o.A("zoom")).fire(new o.A("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(l){if((l=l??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(l>=0&&l<=this.transform.maxPitch)return this.transform.minPitch=l,this._update(),this.getPitch()<l?this.setPitch(l):this.fire(new o.A("pitchstart")).fire(new o.A("pitch")).fire(new o.A("pitchend")),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(l){if((l=l??85)>85)throw new Error("maxPitch must be less than or equal to 85");if(l>=this.transform.minPitch)return this.transform.maxPitch=l,this._update(),this.getPitch()>l?this.setPitch(l):this.fire(new o.A("pitchstart")).fire(new o.A("pitch")).fire(new o.A("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getScaleFactor(){return this._scaleFactor}setScaleFactor(l){return this._scaleFactor=l,this.painter.scaleFactor=l,this._tp.refreshUI(),this._scaleFactorChanged=!0,this.style._updateFilteredLayers(t=>t.type==="symbol"),this._update(!0),this}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(l){return this.transform.renderWorldCopies=l,this.transform.renderWorldCopies||this._forceMarkerAndPopupUpdate(!0),this._update()}getLanguage(){return this._language}_parseLanguage(l){return l==="auto"?navigator.language:Array.isArray(l)?l.length===0?void 0:l.map(t=>t==="auto"?navigator.language:t):l}setLanguage(l){const t=this._parseLanguage(l);if(!this.style||t===this._language)return this;this._language=t,this.style.reloadSources();for(const n of this._controls)n._setLanguage&&n._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(l){return this.style&&l!==this._worldview?(this._worldview=l,this.style.reloadSources(),this):this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return this.transform.projection.name==="globe"}setProjection(l){return this._lazyInitEmptyStyle(),l?typeof l=="string"&&(l={name:l}):l=null,this._useExplicitProjection=!!l,this._prioritizeAndUpdateProjection(l,this.style.projection)}_updateProjectionTransition(){if(this.getProjection().name!=="globe")return;const l=this.transform,t=l.projection.name;let n;t==="globe"&&l.zoom>=o.cx?(l.setMercatorFromTransition(),n=!0):t==="mercator"&&l.zoom<o.cx&&(l.setProjection({name:"globe"}),n=!0),n&&(this.style.applyProjectionUpdate(),this.style._forceSymbolLayerUpdate())}_prioritizeAndUpdateProjection(l,t){return this._updateProjection(l||t||{name:"mercator"})}_updateProjection(l){let t;return t=l.name==="globe"&&this.transform.zoom>=o.cx?this.transform.setMercatorFromTransition():this.transform.setProjection(l),this.style.applyProjectionUpdate(),t&&(this.painter.clearBackgroundTiles(),this.style.clearSources(),this._update(!0),this._forceMarkerAndPopupUpdate(!0)),this}project(l,t){return this.transform.locationPoint3D(o.cd.convert(l),t)}unproject(l,t){return this.transform.pointLocation3D(o.P.convert(l),t)}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_isDragging(){return this.handlers&&this.handlers._isDragging()||!1}_createDelegatedListener(l,t,n){const c=d=>{let f=[];if(Array.isArray(t)){const _=t.filter(v=>this.getLayer(v));f=_.length?this.queryRenderedFeatures(d,{layers:_}):[]}else f=this.queryRenderedFeatures(d,{target:t});return f};if(l==="mouseenter"||l==="mouseover"){let d=!1;return{listener:n,targets:t,delegates:{mousemove:_=>{const v=c(_.point);v.length?d||(d=!0,n.call(this,new Yn(l,this,_.originalEvent,{features:v}))):d=!1},mouseout:()=>{d=!1}}}}if(l==="mouseleave"||l==="mouseout"){let d=!1;return{listener:n,targets:t,delegates:{mousemove:v=>{c(v.point).length?d=!0:d&&(d=!1,n.call(this,new Yn(l,this,v.originalEvent)))},mouseout:v=>{d&&(d=!1,n.call(this,new Yn(l,this,v.originalEvent)))}}}}{const d=f=>{const _=c(f.point);_.length&&(f.features=_,n.call(this,f),delete f.features)};return{listener:n,targets:t,delegates:{[l]:d}}}}on(l,t,n){if(typeof t=="function"||n===void 0)return super.on(l,t);if(typeof t=="string"&&(t=[t]),!this._areTargetsValid(t))return this;const c=this._createDelegatedListener(l,t,n);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[l]=this._delegatedListeners[l]||[],this._delegatedListeners[l].push(c);for(const d in c.delegates)this.on(d,c.delegates[d]);return this}once(l,t,n){if(typeof t=="function"||n===void 0)return super.once(l,t);if(typeof t=="string"&&(t=[t]),!this._areTargetsValid(t))return this;const c=this._createDelegatedListener(l,t,n);for(const d in c.delegates)this.once(d,c.delegates[d]);return this}off(l,t,n){if(typeof t=="function"||n===void 0)return super.off(l,t);if(typeof t=="string"&&(t=[t]),!this._areTargetsValid(t))return this;const c=this._delegatedListeners?this._delegatedListeners[l]:void 0;return c&&(d=>{for(let f=0;f<d.length;f++){const _=d[f];if(_.listener===n&&Rh(_.targets,t)){for(const v in _.delegates)this.off(v,_.delegates[v]);return d.splice(f,1),this}}})(c),this}queryRenderedFeatures(l,t){if(!this.style)return[];if(l===void 0||l instanceof o.P||Array.isArray(l)||t!==void 0||(t=l,l=void 0),l=l||[[0,0],[this.transform.width,this.transform.height]],!t){const f=this.style.queryRenderedFeatures(l,void 0,this.transform),_=this.style.queryRenderedFeatureset(l,void 0,this.transform);return f.concat(_)}let n=!0;if(t.target&&(n=this._isTargetValid(t.target),n&&!t.layers))return this.style.queryRenderedFeatureset(l,t,this.transform);let c=!0;if(t.layers&&Array.isArray(t.layers)){for(const f of t.layers)if(!this._isValidId(f)){c=!1;break}if(c&&!t.target)return this.style.queryRenderedFeatures(l,t,this.transform)}let d=[];return c&&(d=d.concat(this.style.queryRenderedFeatures(l,t,this.transform))),n&&(d=d.concat(this.style.queryRenderedFeatureset(l,t,this.transform))),d}querySourceFeatures(l,t){return!l||typeof l=="string"&&!this._isValidId(l)?[]:this.style.querySourceFeatures(l,t)}isPointOnSurface(l){const{name:t}=this.transform.projection;return t!=="globe"&&t!=="mercator"&&o.w(`${t} projection does not support isPointOnSurface, this API may behave unexpectedly.`),this.transform.isPointOnSurface(o.P.convert(l))}addInteraction(l,t){return this._interactions.add(l,t),this}removeInteraction(l){return this._interactions.remove(l),this}getCooperativeGestures(){return this._cooperativeGestures}setCooperativeGestures(l){return this._cooperativeGestures=l,this}setStyle(l,t){return t=o.l({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},t),this.style&&l&&t.diff!==!1&&t.localFontFamily===this._localFontFamily&&t.localIdeographFontFamily===this._localIdeographFontFamily&&!t.config?(this.style._diffStyle(l,(n,c)=>{if(n){const d=typeof n=="string"?n:n instanceof Error?n.message:n.error;o.w(`Unable to perform style diff: ${d}. Rebuilding the style from scratch.`),this._updateStyle(l,t)}else c&&this._update(!0)},()=>this._postStyleLoadEvent()),this):(this._localIdeographFontFamily=t.localIdeographFontFamily,this._localFontFamily=t.localFontFamily,this._updateStyle(l,t))}_getUIString(l){const t=this._locale[l];if(t==null)throw new Error(`Missing UI string '${l}'`);return t}_updateStyle(l,t){if(this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),l){const n=o.l({},t);t&&t.config&&(n.initialConfig=t.config,delete n.config),this.style=new yo(this,n).load(l),this.style.setEventedParent(this,{style:this.style})}return this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new yo(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(o.w("There is no style added to the map."),!1)}_isValidId(l){return l==null?(this.fire(new o.z(new Error("IDs can't be empty."))),!1):!o.d9(l)||(this.fire(new o.z(new Error(`IDs can't contain special symbols: "${l}".`))),!1)}_isTargetValid(l){return"featuresetId"in l?this._isValidId("importId"in l?l.importId:l.featuresetId):"layerId"in l&&this._isValidId(l.layerId)}_areTargetsValid(l){if(Array.isArray(l)){for(const t of l)if(!this._isValidId(t))return!1;return!0}return this._isTargetValid(l)}addSource(l,t){return this._isValidId(l)?(this._lazyInitEmptyStyle(),this.style.addSource(l,t),this._update(!0)):this}isSourceLoaded(l){return!!this._isValidId(l)&&!!this.style&&this.style._isSourceCacheLoaded(l)}areTilesLoaded(){return this.style.areTilesLoaded()}addSourceType(l,t,n){this._lazyInitEmptyStyle(),this.style.addSourceType(l,t,n)}removeSource(l){return this._isValidId(l)?(this.style.removeSource(l),this._updateTerrain(),this._update(!0)):this}getSource(l){return this._isValidId(l)?this.style.getOwnSource(l):null}addImage(l,t,{pixelRatio:n=1,sdf:c=!1,stretchX:d,stretchY:f,content:_}={}){this._lazyInitEmptyStyle();const v=o.I.from(l);if(t instanceof HTMLImageElement||ImageBitmap&&t instanceof ImageBitmap){const{width:b,height:E,data:C}=o.q.getImageData(t);this.style.addImage(v,{data:new o.r({width:b,height:E},C),pixelRatio:n,stretchX:d,stretchY:f,content:_,sdf:c,version:0,usvg:!1})}else if(t.width===void 0||t.height===void 0)this.fire(new o.z(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{const{width:b,height:E}=t,C=t;this.style.addImage(v,{data:new o.r({width:b,height:E},new Uint8Array(C.data)),pixelRatio:n,stretchX:d,stretchY:f,content:_,sdf:c,usvg:!1,version:0,userImage:C}),C.onAdd&&C.onAdd(this,l)}}updateImage(l,t){this._lazyInitEmptyStyle();const n=o.I.from(l),c=this.style.getImage(n);if(!c)return void this.fire(new o.z(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const d=t instanceof HTMLImageElement||ImageBitmap&&t instanceof ImageBitmap?o.q.getImageData(t):t,{width:f,height:_,data:v}=d;if(f===void 0||_===void 0)return void this.fire(new o.z(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(f!==(c.usvg?c.icon.usvg_tree.width:c.data.width)||_!==(c.usvg?c.icon.usvg_tree.height:c.data.height))return void this.fire(new o.z(new Error(`The width and height of the updated image (${f}, ${_})
2720
2720
  must be that same as the previous version of the image
2721
- (${c.data.width}, ${c.data.height})`)));const b=!(t instanceof HTMLImageElement||ImageBitmap&&t instanceof ImageBitmap);let E=!1;c.usvg?(c.data=new o.r({width:f,height:_},new Uint8Array(v)),c.usvg=!1,c.icon=void 0,E=!0):c.data.replace(v,b),this.style.updateImage(n,c,E)}hasImage(l){return l?!!this.style&&!!this.style.getImage(o.I.from(l)):(this.fire(new o.z(new Error("Missing required image id"))),!1)}removeImage(l){this.style.removeImage(o.I.from(l))}loadImage(l,t){o.o(this._requestManager.transformRequest(l,o.R.Image),(n,c)=>{t(n,c instanceof HTMLImageElement?o.q.getImageData(c):c)})}listImages(){return this.style.listImages().map(l=>l.name)}addModel(l,t){this._lazyInitEmptyStyle(),this.style.addModel(l,t)}hasModel(l){return l?this.style.hasModel(l):(this.fire(new o.z(new Error("Missing required model id"))),!1)}removeModel(l){this.style.removeModel(l)}listModels(){return this.style.listModels()}addLayer(l,t){return this._isValidId(l.id)?(this._lazyInitEmptyStyle(),this.style.addLayer(l,t),this._update(!0)):this}getSlot(l){const t=this.getLayer(l);return t&&t.slot||null}setSlot(l,t){return this.style.setSlot(l,t),this.style.mergeLayers(),this._update(!0)}addImport(l,t){return this.style.addImport(l,t).catch(n=>this.fire(new o.z(new Error("Failed to add import",n)))),this}updateImport(l,t){return typeof t!="string"&&t.id!==l?(this.removeImport(l),this.addImport(t)):(this.style.updateImport(l,t),this._update(!0))}removeImport(l){return this.style.removeImport(l),this}moveImport(l,t){return this.style.moveImport(l,t),this._update(!0)}moveLayer(l,t){return this._isValidId(l)?(this.style.moveLayer(l,t),this._update(!0)):this}removeLayer(l){return this._isValidId(l)?(this.style.removeLayer(l),this._update(!0)):this}getLayer(l){if(!this._isValidId(l))return null;const t=this.style.getOwnLayer(l);return t?t.type==="custom"?t.implementation:t.serialize():void 0}getSlots(){return this.style.getSlots()}setLayerZoomRange(l,t,n){return this._isValidId(l)?(this.style.setLayerZoomRange(l,t,n),this._update(!0)):this}setFilter(l,t,n={}){return this._isValidId(l)?(this.style.setFilter(l,t,n),this._update(!0)):this}getFilter(l){return this._isValidId(l)?this.style.getFilter(l):null}setPaintProperty(l,t,n,c={}){return this._isValidId(l)?(this.style.setPaintProperty(l,t,n,c),this._update(!0)):this}getPaintProperty(l,t){return this._isValidId(l)?this.style.getPaintProperty(l,t):null}setLayoutProperty(l,t,n,c={}){return this._isValidId(l)?(this.style.setLayoutProperty(l,t,n,c),this._update(!0)):this}getLayoutProperty(l,t){return this._isValidId(l)?this.style.getLayoutProperty(l,t):null}getGlyphsUrl(){return this.style.getGlyphsUrl()}setGlyphsUrl(l){return this.style.setGlyphsUrl(l),this._update(!0)}getSchema(l){return this.style.getSchema(l)}setSchema(l,t){return this.style.setSchema(l,t),this._update(!0)}getConfig(l){return this.style.getConfig(l)}setConfig(l,t){return this.style.setConfig(l,t),this._update(!0)}getConfigProperty(l,t){return this.style.getConfigProperty(l,t)}setConfigProperty(l,t,n){return this.style.setConfigProperty(l,t,n),this._update(!0)}getFeaturesetDescriptors(l){return this.style.getFeaturesetDescriptors(l)}setLights(l){if(this._lazyInitEmptyStyle(),l&&l.length===1&&l[0].type==="flat"){const t=l[0];t.properties?this.style.setFlatLight(t.properties,t.id,{}):this.style.setFlatLight({},"flat")}else this.style.setLights(l),this.painter.terrain&&(this.painter.terrain.invalidateRenderCache=!0);return this._update(!0)}getLights(){const l=this.style.getLights()||[];return l.length===0&&l.push({id:this.style.light.id,type:"flat",properties:this.style.getFlatLight()}),l}setLight(l,t={}){return console.log("The `map.setLight` function is deprecated, prefer using `map.setLights` with `flat` light type instead."),this.setLights([{id:"flat",type:"flat",properties:l}])}getLight(){return console.log("The `map.getLight` function is deprecated, prefer using `map.getLights` instead."),this.style.getFlatLight()}setTerrain(l){return this._lazyInitEmptyStyle(),!l&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(l),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(l){return this._lazyInitEmptyStyle(),this.style.setFog(l),this._update(!0)}getFog(){return this.style?this.style.getFog():null}setSnow(l){return this._lazyInitEmptyStyle(),this.style.setSnow(l),this._update(!0)}getSnow(){return this.style?this.style.getSnow():null}setRain(l){return this._lazyInitEmptyStyle(),this.style.setRain(l),this._update(!0)}getRain(){return this.style?this.style.getRain():null}setColorTheme(l){return this._lazyInitEmptyStyle(),this.style.setColorTheme(l),this._update(!0)}setImportColorTheme(l,t){return this._lazyInitEmptyStyle(),this.style.setImportColorTheme(l,t),this._update(!0)}setCamera(l){return this.style.setCamera(l),this._triggerCameraUpdate(l)}_triggerCameraUpdate(l){return this._update(this.transform.setOrthographicProjectionAtLowPitch(l["camera-projection"]==="orthographic"))}getCamera(){return this.style.camera}_queryFogOpacity(l){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(o.cd.convert(l),this.transform):0}setFeatureState(l,t){return l.source&&!this._isValidId(l.source)?this:(this.style.setFeatureState(l,t),this._update())}removeFeatureState(l,t){return l.source&&!this._isValidId(l.source)?this:(this.style.removeFeatureState(l,t),this._update())}getFeatureState(l){return l.source&&!this._isValidId(l.source)?null:this.style.getFeatureState(l)}_updateContainerDimensions(){if(!this._container)return;const l=this._container.getBoundingClientRect().width||400,t=this._container.getBoundingClientRect().height||300;let n,c,d,f=this._container;for(;f&&(!c||!d);){const _=window.getComputedStyle(f).transform;_&&_!=="none"&&(n=_.match(/matrix.*\((.+)\)/)[1].split(", "),n[0]&&n[0]!=="0"&&n[0]!=="1"&&(c=n[0]),n[3]&&n[3]!=="0"&&n[3]!=="1"&&(d=n[3])),f=f.parentElement}this._containerWidth=c?Math.abs(l/c):l,this._containerHeight=d?Math.abs(t/d):t}_detectMissingCSS(){window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")!=="rgb(250, 128, 114)"&&o.w("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const l=this._container;l.classList.add("mapboxgl-map"),(this._missingCSSCanary=ve("div","mapboxgl-canary",l)).style.visibility="hidden",this._detectMissingCSS();const t=this._canvasContainer=ve("div","mapboxgl-canvas-container",l);this._canvas=ve("canvas","mapboxgl-canvas",t),this._interactive&&(t.classList.add("mapboxgl-interactive"),this._canvas.setAttribute("tabindex","0")),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const n=this._controlContainer=ve("div","mapboxgl-control-container",l),c=this._controlPositions={};["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"].forEach(d=>{c[d]=ve("div",`mapboxgl-ctrl-${d}`,n)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(l,t){const n=o.q.devicePixelRatio||1;this._canvas.width=n*Math.ceil(l),this._canvas.height=n*Math.ceil(t),this._canvas.style.width=`${l}px`,this._canvas.style.height=`${t}px`}_addMarker(l){this._markers.push(l)}_removeMarker(l){const t=this._markers.indexOf(l);t!==-1&&this._markers.splice(t,1)}_addPopup(l){this._popups.push(l)}_removePopup(l){const t=this._popups.indexOf(l);t!==-1&&this._popups.splice(t,1)}_setupPainter(){const l=o.l({},De.supported.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),t=this._canvas.getContext("webgl2",l);t?(tr(t,!0),this.painter=new Th(t,this._contextCreateOptions,this.transform,this._scaleFactor,this._tp),this.on("data",n=>{n.dataType==="source"&&this.painter.setTileLoadedFlag(!0)}),o.m.testSupport(t)):this.fire(new o.z(new Error("Failed to initialize WebGL")))}_contextLost(l){l.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new o.A("webglcontextlost",{originalEvent:l}))}_contextRestored(l){this._setupPainter(),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight)),this._updateTerrain(),this.style&&(this.style.reloadModels(),this.style.clearSources()),this._update(),this.fire(new o.A("webglcontextrestored",{originalEvent:l}))}_onMapScroll(l){if(l.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}idle(){return!this.isMoving()&&this.loaded()}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}frameReady(){return this.loaded()&&!this._placementDirty}_update(l){return this.style?(this._styleDirty=this._styleDirty||l,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(l){return this._update(),this._renderTaskQueue.add(l)}_cancelRenderFrame(l){this._renderTaskQueue.remove(l)}_requestDomTask(l){!this.loaded()||this.loaded()&&!this.isMoving()?l():this._domRenderTaskQueue.add(l)}_render(l){let t;this.fire(new o.A("renderstart")),++this._frameId;const n=this.painter.context.extTimerQuery,c=o.q.now(),d=this.painter.context.gl;if(this.listens("gpu-timing-frame")&&(t=d.createQuery(),d.beginQuery(n.TIME_ELAPSED_EXT,t)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],performance.now())),this._renderTaskQueue.run(l),this._domRenderTaskQueue.run(l),this._removed)return;this._updateProjectionTransition();const f=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const E=this.transform.zoom,C=this.transform.pitch,P=o.q.now(),M=new o.aa(E,{now:P,fadeDuration:f,pitch:C,transition:this.style.transition});this.style.update(M)}this.style&&this.style.hasFogTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let _=!1;this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),_=this._updateAverageElevation(c),this.style.updateSources(this.transform),this.style.updateImageProviders(),this.isMoving()||this._forceMarkerAndPopupUpdate()):_=this._updateAverageElevation(c);const v=this.style&&this.style._updatePlacement(this.painter,this.painter.transform,this.showCollisionBoxes,f,this._crossSourceCollisions,this.painter.replacementSource,this._scaleFactorChanged);if(this._scaleFactorChanged&&(this._scaleFactorChanged=!1),v&&(this._placementDirty=v.needsRerender),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showParseStatus:this.showParseStatus,wireframe:{terrain:this.showTerrainWireframe,layers2D:this.showLayers2DWireframe,layers3D:this.showLayers3DWireframe},showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:f,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new o.A("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,be.mark(oe.load),this.fire(new o.A("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&(this.style.snow||this.style.rain)&&(this._styleDirty=!0),this.style&&this.style.imageManager.hasPatternsInFlight()&&(this._styleDirty=!0),this.style&&!this.style.modelManager.isLoaded()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),t){const E=o.q.now()-c;d.endQuery(n.TIME_ELAPSED_EXT),setTimeout(()=>{const C=d.getQueryParameter(t,d.QUERY_RESULT)/1e6;d.deleteQuery(t),this.fire(new o.A("gpu-timing-frame",{cpuTime:E,gpuTime:C}))},50)}if(this.listens("gpu-timing-layer")){const E=this.painter.collectGpuTimers();setTimeout(()=>{const C=this.painter.queryGpuTimers(E);this.fire(new o.A("gpu-timing-layer",{layerTimes:C}))},50)}if(this.listens("gpu-timing-deferred-render")){const E=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{const C=this.painter.queryGpuTimeDeferredRender(E);this.fire(new o.A("gpu-timing-deferred-render",{gpuTime:C}))},50)}const b=this._sourcesDirty||this._styleDirty||this._placementDirty||_;if(b||this._repaint)this.triggerRepaint();else{const E=this.idle();if(E&&(_=this._updateAverageElevation(c,!0)),_)this.triggerRepaint();else if(this._triggerFrame(!1),E&&(this.fire(new o.A("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const C=this._calculateSpeedIndex();this.fire(new o.A("speedindexcompleted",{speedIndex:C})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||b||(this._fullyLoaded=!0,be.mark(oe.fullLoad),this._performanceMetricsCollection&&$o(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(l){for(const t of this._markers)l&&!this.getRenderWorldCopies()&&(t._lngLat=t._lngLat.wrap()),t._update();for(const t of this._popups)!l||this.getRenderWorldCopies()||t._trackPointer||(t._lngLat=t._lngLat.wrap()),t._update()}_updateAverageElevation(l,t=!1){const n=d=>(this.transform.averageElevation=d,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return this.transform.averageElevation!==0&&n(0);const c=this.transform.elevation&&this.transform.elevation.exaggeration()!==this._averageElevationExaggeration;if(c||(t||l-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(l)){const d=this.transform.averageElevation;let f=this.transform.sampleAverageElevation();this.transform.elevation!=null&&(this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(f)?f=0:this._averageElevationLastSampledAt=l;const _=Math.abs(d-f);if(_>1){if(this._isInitialLoad||c)return this._averageElevation.jumpTo(f),n(f);this._averageElevation.easeTo(f,l,300)}else if(_>1e-4)return this._averageElevation.jumpTo(f),n(f)}return!!this._averageElevation.isEasing(l)&&n(this._averageElevation.getValue(l))}_authenticate(){Jn(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,l=>{if(l&&(l.message===gi||l.status===401)){const t=this.painter.context.gl;tr(t,!1),this._logoControl instanceof qc&&this._logoControl._updateLogo(),t&&t.clear(t.DEPTH_BUFFER_BIT|t.COLOR_BUFFER_BIT|t.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new o.z(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),po(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_postStyleLoadEvent(){this.style.globalId&&Xi(this._requestManager._customAccessToken,{map:this,style:this.style.globalId,importedStyles:this.style.getImportGlobalIds()})}_updateTerrain(){const l=this._isDragging();this.painter.updateTerrain(this.style,l)}_calculateSpeedIndex(){const l=this.painter.canvasCopy(),t=this.painter.getCanvasCopiesAndTimestamps();t.timeStamps.push(performance.now());const n=this.painter.context.gl,c=n.createFramebuffer();function d(f){n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,f,0);const _=new Uint8Array(n.drawingBufferWidth*n.drawingBufferHeight*4);return n.readPixels(0,0,n.drawingBufferWidth,n.drawingBufferHeight,n.RGBA,n.UNSIGNED_BYTE,_),_}return n.bindFramebuffer(n.FRAMEBUFFER,c),this._canvasPixelComparison(d(l),t.canvasCopies.map(d),t.timeStamps)}_canvasPixelComparison(l,t,n){let c=n[1]-n[0];const d=l.length/4;for(let f=0;f<t.length;f++){const _=t[f];let v=0;for(let b=0;b<_.length;b+=4)_[b]===l[b]&&_[b+1]===l[b+1]&&_[b+2]===l[b+2]&&_[b+3]===l[b+3]&&(v+=1);c+=(n[f+2]-n[f+1])*(1-v/d)}return c}remove(){this._hash&&this._hash.remove();for(const t of this._controls)t.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.indoor.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),window.removeEventListener("resize",this._onWindowResize,!1),window.removeEventListener("orientationchange",this._onWindowResize,!1),window.removeEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.removeEventListener("online",this._onWindowOnline,!1),window.removeEventListener("visibilitychange",this._onVisibilityChange,!1);const l=this.painter.context.gl.getExtension("WEBGL_lose_context");l&&l.loseContext(),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._missingCSSCanary.remove(),this._canvas=void 0,this._canvasContainer=void 0,this._controlContainer=void 0,this._missingCSSCanary=void 0,this._container.classList.remove("mapboxgl-map"),this._container.removeEventListener("scroll",this._onMapScroll,!1),ao.delete(this.painter.context.gl),gr.remove(),Kn.remove(),this._removed=!0,this.fire(new o.A("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(l){this._renderNextFrame=this._renderNextFrame||l,this.style&&!this._frame&&(this._frame=o.q.frame(t=>{const n=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,n&&this._render(t)}))}_preloadTiles(l){const t=this.style?this.style.getSourceCaches():[];return o.bt(t,(n,c)=>n._preloadTiles(l,c),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(l){this._trackResize&&this.resize({originalEvent:l})._update()}_onVisibilityChange(){document.visibilityState==="hidden"&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(l){this._showTileBoundaries!==l&&(this._showTileBoundaries=l,this._tp.refreshUI(),this._update())}get showParseStatus(){return!!this._showParseStatus}set showParseStatus(l){this._showParseStatus!==l&&(this._showParseStatus=l,this._tp.refreshUI(),this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(l){this._showTerrainWireframe!==l&&(this._showTerrainWireframe=l,this._tp.refreshUI(),this._update())}get showLayers2DWireframe(){return!!this._showLayers2DWireframe}set showLayers2DWireframe(l){this._showLayers2DWireframe!==l&&(this._showLayers2DWireframe=l,this._tp.refreshUI(),this._update())}get showLayers3DWireframe(){return!!this._showLayers3DWireframe}set showLayers3DWireframe(l){this._showLayers3DWireframe!==l&&(this._showLayers3DWireframe=l,this._tp.refreshUI(),this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(l){this._speedIndexTiming!==l&&(this._speedIndexTiming=l,this._update())}get showPadding(){return!!this._showPadding}set showPadding(l){this._showPadding!==l&&(this._showPadding=l,this._tp.refreshUI(),this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(l){this._showCollisionBoxes!==l&&(this._showCollisionBoxes=l,this._tp.refreshUI(),l?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(l){this._showOverdrawInspector!==l&&(this._showOverdrawInspector=l,this._tp.refreshUI(),this._update())}get repaint(){return!!this._repaint}set repaint(l){this._repaint!==l&&(this._repaint=l,this._tp.refreshUI(),this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(l){this._vertices=l,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(l){this._showTileAABBs!==l&&(this._showTileAABBs=l,this._tp.refreshUI(),l&&this._update())}_setCacheLimits(l,t){o.eJ(l,t)}get version(){return J}},NavigationControl:class{constructor(l={}){this.options=o.l({},d0,l),this._container=ve("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",t=>t.preventDefault()),this.options.showZoom&&(o.aV(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",t=>{this._map&&this._map.zoomIn({},{originalEvent:t})}),ve("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",t=>{this._map&&this._map.zoomOut({},{originalEvent:t})}),ve("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(o.aV(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",t=>{const n=this._map;n&&(this.options.visualizePitch?n.resetNorthPitch({},{originalEvent:t}):n.resetNorth({},{originalEvent:t}))}),this._compassIcon=ve("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const l=this._map;if(!l)return;const t=l.getZoom(),n=t===l.getMaxZoom(),c=t===l.getMinZoom();this._zoomInButton.disabled=n,this._zoomOutButton.disabled=c,this._zoomInButton.setAttribute("aria-disabled",n.toString()),this._zoomOutButton.setAttribute("aria-disabled",c.toString())}_rotateCompassArrow(){const l=this._map;if(!l)return;const t=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(l.transform.pitch*(Math.PI/180)),.5)}) rotateX(${l.transform.pitch}deg) rotateZ(${l.transform.angle*(180/Math.PI)}deg)`:`rotate(${l.transform.angle*(180/Math.PI)}deg)`;l._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=t)})}onAdd(l){return this._map=l,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),l.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&l.on("pitch",this._rotateCompassArrow),l.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Wc(l,this._compass,this.options.visualizePitch)),this._container}onRemove(){const l=this._map;l&&(this._container.remove(),this.options.showZoom&&l.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&l.off("pitch",this._rotateCompassArrow),l.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(l,t){const n=ve("button",l,this._container);return n.type="button",n.addEventListener("click",t),n}_setButtonTitle(l,t){if(!this._map)return;const n=this._map._getUIString(`NavigationControl.${t}`);l.setAttribute("aria-label",n),l.firstElementChild&&l.firstElementChild.setAttribute("title",n)}},GeolocateControl:class extends o.E{constructor(l={}){super();const t=navigator.geolocation;this.options=o.l({geolocation:t},Yc,l),o.aV(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=Ga(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(l){return this._map=l,this._container=ve("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){this._geolocationWatchID!==void 0&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(l){const t=(n=!!this.options.geolocation)=>{this._supportsGeolocation=n,l(n)};this._supportsGeolocation!==void 0?l(this._supportsGeolocation):navigator.permissions!==void 0?navigator.permissions.query({name:"geolocation"}).then(n=>t(n.state!=="denied")).catch(()=>t()):t()}_isOutOfMapMaxBounds(l){const t=this._map.getMaxBounds(),n=l.coords;return!!t&&(n.longitude<t.getWest()||n.longitude>t.getEast()||n.latitude<t.getSouth()||n.latitude>t.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(l){if(this._map){if(this._isOutOfMapMaxBounds(l))return this._setErrorState(),this.fire(new o.A("outofmaxbounds",l)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=l,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(l),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(l),this.options.showUserLocation&&this._userLocationDotMarker.removeClassName("mapboxgl-user-location-dot-stale"),this.fire(new o.A("geolocate",l)),this._finish()}}_updateCamera(l){const t=new o.cd(l.coords.longitude,l.coords.latitude),n=l.coords.accuracy,c=this._map.getBearing(),d=o.l({bearing:c},this.options.fitBoundsOptions);this._map.fitBounds(t.toBounds(n),d,{geolocateSource:!0})}_updateMarker(l){if(l){const t=new o.cd(l.coords.longitude,l.coords.latitude);this._accuracyCircleMarker.setLngLat(t).addTo(this._map),this._userLocationDotMarker.setLngLat(t).addTo(this._map),this._accuracy=l.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const l=this._map.transform,t=o.c6(1,l._center.lat)*l.worldSize,n=Math.ceil(2*this._accuracy*t);this._circleElement.style.width=`${n}px`,this._circleElement.style.height=`${n}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&typeof this._heading=="number"?(this._userLocationDotMarker.setRotation(this._heading),this._userLocationDotMarker.addClassName("mapboxgl-user-location-show-heading")):(this._userLocationDotMarker.removeClassName("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(l){if(this._map){if(this.options.trackUserLocation)if(l.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",t),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",t),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(l.code===3&&this._noTimeout)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._userLocationDotMarker.addClassName("mapboxgl-user-location-dot-stale"),this.fire(new o.A("error",l)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(l){if(this._map!==void 0){if(this._container.addEventListener("contextmenu",t=>t.preventDefault()),this._geolocateButton=ve("button","mapboxgl-ctrl-geolocate",this._container),ve("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",l===!1){o.w("Geolocation support is not available so the GeolocateControl will be disabled.");const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",t),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",t)}else{const t=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",t),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",t)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=ve("div","mapboxgl-user-location"),this._dotElement.appendChild(ve("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(ve("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new Xc({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=ve("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Xc({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",t=>{t.geolocateSource||this._watchState!=="ACTIVE_LOCK"||t.originalEvent&&t.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new o.A("trackuserlocationend")))})}}_onDeviceOrientation(l){this._userLocationDotMarker&&(l.webkitCompassHeading?this._heading=l.webkitCompassHeading:l.absolute===!0&&(this._heading=-1*l.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return o.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new o.A("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new o.A("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new o.A("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let l;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(l={maximumAge:6e5,timeout:0},this._noTimeout=!0):(l=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,l),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=window.setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const l=()=>{"ondeviceorientationabsolute"in window?window.addEventListener("deviceorientationabsolute",this._onDeviceOrientation):window.addEventListener("deviceorientation",this._onDeviceOrientation)};typeof DeviceMotionEvent<"u"&&typeof DeviceMotionEvent.requestPermission=="function"?DeviceOrientationEvent.requestPermission().then(t=>{t==="granted"&&l()}).catch(console.error):l()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),window.removeEventListener("deviceorientation",this._onDeviceOrientation),window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:Ph,ScaleControl:class{constructor(l={}){this.options=o.l({},Vl,l),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch{return!1}}(),o.aV(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const l=this.options.maxWidth||100,t=this._map,n=t._containerHeight/2,c=t._containerWidth/2-l/2,d=t.unproject([c,n]),f=t.unproject([c+l,n]),_=d.distanceTo(f);if(this.options.unit==="imperial"){const v=3.2808*_;v>5280?this._setScale(l,v/5280,"mile"):this._setScale(l,v,"foot")}else this.options.unit==="nautical"?this._setScale(l,_/1852,"nautical-mile"):_>=1e3?this._setScale(l,_/1e3,"kilometer"):this._setScale(l,_,"meter")}_setScale(l,t,n){this._map._requestDomTask(()=>{const c=function(f){const _=Math.pow(10,`${Math.floor(f)}`.length-1);let v=f/_;return v=v>=10?10:v>=5?5:v>=3?3:v>=2?2:v>=1?1:function(b){const E=Math.pow(10,Math.ceil(-Math.log(b)/Math.LN10));return Math.round(b*E)/E}(v),_*v}(t),d=c/t;this._container.innerHTML=this._isNumberFormatSupported&&n!=="nautical-mile"?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:n}).format(c):`${c}&nbsp;${Ss[n]}`,this._container.style.width=l*d+"px"})}onAdd(l){return this._map=l,this._language=l.getLanguage(),this._container=ve("div","mapboxgl-ctrl mapboxgl-ctrl-scale",l.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(l){this._language=l,this._update()}setUnit(l){this.options.unit=l,this._update()}},FullscreenControl:class{constructor(l={}){this._fullscreen=!1,l&&l.container&&(l.container instanceof HTMLElement?this._container=l.container:o.w("Full screen control 'container' must be a DOM element.")),o.aV(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(l){return this._map=l,this._container||(this._container=this._map.getContainer()),this._controlContainer=ve("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",o.w("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!document.fullscreenEnabled&&!document.webkitFullscreenEnabled)}_setupUI(){const l=this._fullscreenButton=ve("button","mapboxgl-ctrl-fullscreen",this._controlContainer);ve("span","mapboxgl-ctrl-icon",l).setAttribute("aria-hidden","true"),l.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const l=this._getTitle();this._fullscreenButton.setAttribute("aria-label",l),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",l)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(document.fullscreenElement||document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends o.E{constructor(l){super(),this.options=o.l(Object.create(ko),l),this._altitude=this.options.altitude,o.aV(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(l&&l.className?l.className.trim().split(/\s+/):[])}addTo(l){return this._map&&this.remove(),this._map=l,this.options.closeOnClick&&l.on("preclick",this._onClose),this.options.closeOnMove&&l.on("move",this._onClose),l.on("remove",this.remove),this._update(),l._addPopup(this),this._focusFirstElement(),this._trackPointer?(l.on("mousemove",this._onMouseEvent),l.on("mouseup",this._onMouseEvent),l._canvasContainer.classList.add("mapboxgl-track-pointer")):l.on("move",this._update),this.fire(new o.A("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const l=this._map;return l&&(l.off("move",this._update),l.off("move",this._onClose),l.off("preclick",this._onClose),l.off("click",this._onClose),l.off("remove",this.remove),l.off("mousemove",this._onMouseEvent),l.off("mouseup",this._onMouseEvent),l.off("drag",this._onMouseEvent),l._canvasContainer&&l._canvasContainer.classList.remove("mapboxgl-track-pointer"),l._removePopup(this),this._map=void 0),this.fire(new o.A("close")),this}getLngLat(){return this._lngLat}setLngLat(l){this._lngLat=o.cd.convert(l),this._pos=null,this._trackPointer=!1,this._update();const t=this._map;return t&&(t.on("move",this._update),t.off("mousemove",this._onMouseEvent),t._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}getAltitude(){return this._altitude}setAltitude(l){return this._altitude=l,this._update(),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const l=this._map;return l&&(l.off("move",this._update),l.on("mousemove",this._onMouseEvent),l.on("drag",this._onMouseEvent),l._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(l){return this.setDOMContent(document.createTextNode(l))}setHTML(l){const t=document.createDocumentFragment(),n=document.createElement("body");let c;for(n.innerHTML=l;c=n.firstChild,c;)t.appendChild(c);return this.setDOMContent(t)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(l){return this.options.maxWidth=l,this._update(),this}setDOMContent(l){let t=this._content;if(t)for(;t.hasChildNodes();)t.firstChild&&t.removeChild(t.firstChild);else t=this._content=ve("div","mapboxgl-popup-content",this._container||void 0);if(t.appendChild(l),this.options.closeButton){const n=this._closeButton=ve("button","mapboxgl-popup-close-button",t);n.type="button",n.setAttribute("aria-label","Close popup"),n.innerHTML='<span aria-hidden="true">&#215;</span>',n.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(l){return this._classList.add(l),this._updateClassList(),this}removeClassName(l){return this._classList.delete(l),this._updateClassList(),this}setOffset(l){return this.options.offset=l,this._update(),this}toggleClassName(l){let t;return this._classList.delete(l)?t=!1:(this._classList.add(l),t=!0),this._updateClassList(),t}_onMouseEvent(l){this._update(l.point)}_getAnchor(l){if(this.options.anchor)return this.options.anchor;const t=this._map,n=this._container,c=this._pos;if(!t||!n||!c)return"bottom";const d=n.offsetWidth,f=n.offsetHeight,_=c.x<d/2,v=c.x>t.transform.width-d/2;if(c.y+l<f)return _?"top-left":v?"top-right":"top";if(c.y>t.transform.height-f){if(_)return"bottom-left";if(v)return"bottom-right"}return _?"left":v?"right":"bottom"}_updateClassList(){const l=this._container;if(!l)return;const t=[...this._classList];t.push("mapboxgl-popup"),this._anchor&&t.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&t.push("mapboxgl-popup-track-pointer"),l.className=t.join(" ")}_update(l){const t=this._map,n=this._content;if(!t||!this._lngLat&&!this._trackPointer||!n)return;let c=this._container;if(c||(c=this._container=ve("div","mapboxgl-popup",t.getContainer()),this._tip=ve("div","mapboxgl-popup-tip",c),c.appendChild(n)),this.options.maxWidth&&c.style.maxWidth!==this.options.maxWidth&&(c.style.maxWidth=this.options.maxWidth),t.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=o_(this._lngLat,this._pos,t.transform)),!this._trackPointer||l){const d=this._pos=this._trackPointer&&l instanceof o.P?l:t.project(this._lngLat,this._altitude),f=ra(this.options.offset),_=this._anchor=this._getAnchor(f.y),v=ra(this.options.offset,_),b=d.add(v).round();t._requestDomTask(()=>{this._container&&_&&(this._container.style.transform=`${Ip[_]} translate(${b.x}px,${b.y}px)`)})}if(!this._marker&&t._showingGlobe()){const d=o.eK(t.transform,this._lngLat)?0:1;this._setOpacity(d)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const l=this._container.querySelector(Oo);l&&l.focus()}_onClose(){this.remove()}_setOpacity(l){this._container&&(this._container.style.opacity=`${l}`),this._content&&(this._content.style.pointerEvents=l?"auto":"none")}},Marker:Xc,Style:yo,LngLat:o.cd,LngLatBounds:o.aG,Point:o.P,MercatorCoordinate:o.ac,FreeCameraOptions:Gu,Evented:o.E,config:o.e,prewarm:o.eP,clearPrewarmedResources:o.eQ,get accessToken(){return o.e.ACCESS_TOKEN},set accessToken(l){o.e.ACCESS_TOKEN=l},get baseApiUrl(){return o.e.API_URL},set baseApiUrl(l){o.e.API_URL=l},get workerCount(){return o.eR.workerCount},set workerCount(l){o.eR.workerCount=l},get maxParallelImageRequests(){return o.e.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(l){o.e.MAX_PARALLEL_IMAGE_REQUESTS=l},clearStorage(l){o.eS(l)},get workerUrl(){return o.eT.workerUrl},set workerUrl(l){o.eT.workerUrl=l},get workerClass(){return o.eT.workerClass},set workerClass(l){o.eT.workerClass=l},get workerParams(){return o.eT.workerParams},set workerParams(l){o.eT.workerParams=l},get dracoUrl(){return o.eU()},set dracoUrl(l){o.eV(l)},get meshoptUrl(){return o.eW()},set meshoptUrl(l){o.eX(l)},setNow:o.q.setNow,restoreNow:o.q.restoreNow}});var B=z;return B})})(hw);var qL=hw.exports;const xd=zg(qL),m5="",ZL=Object.freeze(Object.defineProperty({__proto__:null,Map:({config:p,mapData:y,onBoundsChange:w,autoFit:I})=>{const{t:z}=On(),k=Ri(null),B=Ri(null),o=Ri(!1),J=Ri(!0),[oe,be]=Fi(null),ae=Hb(oe,250),Se=Ri(null),{queryState:ye,data:De}=y;qi(()=>{xd.accessToken=p==null?void 0:p.accessToken;const ze=new xd.Map({container:k.current??"ijs-map",style:(p==null?void 0:p.style)??"mapbox://styles/mapbox/light-v10",center:(p==null?void 0:p.defaultCenter)??[-.13,51.51],zoom:3,attributionControl:!1,cooperativeGestures:!0});return B.current=ze,ze.addControl(new xd.NavigationControl),ze.addControl(new xd.AttributionControl({compact:!0})),ze.on("move",Ee=>{Ee.originalEvent&&be(ze.getBounds())}),()=>{ze.remove(),B.current=null,o.current=!1}},[p]),qi(()=>{const ze=ae;if(!ze)return;const Ee=[ze.getSouthWest().lat.toFixed(2),ze.getSouthWest().lng.toFixed(2),ze.getNorthEast().lat.toFixed(2),ze.getNorthEast().lng.toFixed(2)].join(",");Ee!==Se.current&&(Se.current=Ee,w({type:"bounds",sw:{lat:ze.getSouthWest().lat,lng:ze.getSouthWest().lng},ne:{lat:ze.getNorthEast().lat,lng:ze.getNorthEast().lng}}))},[ae,w]),qi(()=>{if(ye!=="loaded")return;const ze=B.current;if(!ze)return;const Ee=()=>{const tt=De.results.filter(Ke=>Ke.raw.coordinates).map(Ke=>({type:"Feature",properties:{id:Ke.id},geometry:{type:"Point",coordinates:[Ke.raw.coordinates.lng,Ke.raw.coordinates.lat]}})),at={type:"FeatureCollection",features:tt};if(ze.getSource("jobs")?ze.getSource("jobs").setData(at):ze.addSource("jobs",{type:"geojson",data:at,cluster:!0,clusterRadius:40,clusterMaxZoom:20}),o.current||(ze.addLayer({id:"clusters",type:"circle",source:"jobs",filter:["has","point_count"],paint:{"circle-color":(p==null?void 0:p.pinColor)??"#0066ff","circle-radius":["step",["get","point_count"],14,10,18,50,24]}}),ze.addLayer({id:"cluster-count",type:"symbol",source:"jobs",filter:["has","point_count"],layout:{"text-field":"{point_count_abbreviated}","text-font":["DIN Offc Pro Medium","Arial Unicode MS Bold"],"text-size":12},paint:{"text-color":"#ffffff"}}),ze.addLayer({id:"unclustered-point",type:"circle",source:"jobs",filter:["!",["has","point_count"]],paint:{"circle-color":(p==null?void 0:p.pinColor)??"#0066ff","circle-radius":6,"circle-stroke-width":1,"circle-stroke-color":"#ffffff"}}),ze.on("mouseenter","clusters",()=>ze.getCanvas().style.cursor="pointer"),ze.on("mouseleave","clusters",()=>ze.getCanvas().style.cursor=""),ze.on("click","clusters",Ke=>{const pt=ze.queryRenderedFeatures(Ke.point,{layers:["clusters"]});if(!pt.length)return;const xt=pt[0].properties.cluster_id;ze.getSource("jobs").getClusterExpansionZoom(xt,(Wt,Ot)=>{ze.easeTo({center:pt[0].geometry.coordinates,zoom:Ot})})}),o.current=!0),(J.current||I)&&tt.length){const Ke=new xd.LngLatBounds;tt.forEach(pt=>{pt.geometry.type==="Point"&&Ke.extend(pt.geometry.coordinates)}),ze.fitBounds(Ke,{padding:50,duration:500}),J.current=!1}};ze.isStyleLoaded()?Ee():ze.once("load",Ee)},[p,ye,De,I]);const ve=(()=>{switch(y.queryState){case"loading":case"revalidating":return ue("span",{class:"animate-pulse",children:z("loading_jobs")});case"error":return ue("span",{class:"flex flex-col",style:"color: #e42d16;",children:z("map_jobs_error")});case"loaded":return y.data.pagination.has_more?ue("span",{class:"flex flex-col",children:[ue("span",{class:"font-weight-job-heading",children:z("map_has_more_title")}),ue("span",{class:"text-style-job-card-info opacity-80",children:z("map_has_more_description")})]}):null;default:return null}})();return ue("div",{class:"relative h-full w-full overflow-hidden",children:[ue("div",{ref:k,id:"ijs-map",class:"h-full w-full"}),ve&&ue("div",{class:"pointer-events-none absolute left-12 right-12 top-2 flex items-center justify-center",children:ue("div",{class:"animate-selected-tag bg-app text-interactive-neutral-text border-section-weak-stroke text-style-job-card border-px rounded-input font-family-tag font-weight-tag pointer-events-none px-3 py-2 text-center shadow-sm",children:ve},y.queryState)})]})}},Symbol.toStringTag,{value:"Module"}))})();
2721
+ (${c.data.width}, ${c.data.height})`)));const b=!(t instanceof HTMLImageElement||ImageBitmap&&t instanceof ImageBitmap);let E=!1;c.usvg?(c.data=new o.r({width:f,height:_},new Uint8Array(v)),c.usvg=!1,c.icon=void 0,E=!0):c.data.replace(v,b),this.style.updateImage(n,c,E)}hasImage(l){return l?!!this.style&&!!this.style.getImage(o.I.from(l)):(this.fire(new o.z(new Error("Missing required image id"))),!1)}removeImage(l){this.style.removeImage(o.I.from(l))}loadImage(l,t){o.o(this._requestManager.transformRequest(l,o.R.Image),(n,c)=>{t(n,c instanceof HTMLImageElement?o.q.getImageData(c):c)})}listImages(){return this.style.listImages().map(l=>l.name)}addModel(l,t){this._lazyInitEmptyStyle(),this.style.addModel(l,t)}hasModel(l){return l?this.style.hasModel(l):(this.fire(new o.z(new Error("Missing required model id"))),!1)}removeModel(l){this.style.removeModel(l)}listModels(){return this.style.listModels()}addLayer(l,t){return this._isValidId(l.id)?(this._lazyInitEmptyStyle(),this.style.addLayer(l,t),this._update(!0)):this}getSlot(l){const t=this.getLayer(l);return t&&t.slot||null}setSlot(l,t){return this.style.setSlot(l,t),this.style.mergeLayers(),this._update(!0)}addImport(l,t){return this.style.addImport(l,t).catch(n=>this.fire(new o.z(new Error("Failed to add import",n)))),this}updateImport(l,t){return typeof t!="string"&&t.id!==l?(this.removeImport(l),this.addImport(t)):(this.style.updateImport(l,t),this._update(!0))}removeImport(l){return this.style.removeImport(l),this}moveImport(l,t){return this.style.moveImport(l,t),this._update(!0)}moveLayer(l,t){return this._isValidId(l)?(this.style.moveLayer(l,t),this._update(!0)):this}removeLayer(l){return this._isValidId(l)?(this.style.removeLayer(l),this._update(!0)):this}getLayer(l){if(!this._isValidId(l))return null;const t=this.style.getOwnLayer(l);return t?t.type==="custom"?t.implementation:t.serialize():void 0}getSlots(){return this.style.getSlots()}setLayerZoomRange(l,t,n){return this._isValidId(l)?(this.style.setLayerZoomRange(l,t,n),this._update(!0)):this}setFilter(l,t,n={}){return this._isValidId(l)?(this.style.setFilter(l,t,n),this._update(!0)):this}getFilter(l){return this._isValidId(l)?this.style.getFilter(l):null}setPaintProperty(l,t,n,c={}){return this._isValidId(l)?(this.style.setPaintProperty(l,t,n,c),this._update(!0)):this}getPaintProperty(l,t){return this._isValidId(l)?this.style.getPaintProperty(l,t):null}setLayoutProperty(l,t,n,c={}){return this._isValidId(l)?(this.style.setLayoutProperty(l,t,n,c),this._update(!0)):this}getLayoutProperty(l,t){return this._isValidId(l)?this.style.getLayoutProperty(l,t):null}getGlyphsUrl(){return this.style.getGlyphsUrl()}setGlyphsUrl(l){return this.style.setGlyphsUrl(l),this._update(!0)}getSchema(l){return this.style.getSchema(l)}setSchema(l,t){return this.style.setSchema(l,t),this._update(!0)}getConfig(l){return this.style.getConfig(l)}setConfig(l,t){return this.style.setConfig(l,t),this._update(!0)}getConfigProperty(l,t){return this.style.getConfigProperty(l,t)}setConfigProperty(l,t,n){return this.style.setConfigProperty(l,t,n),this._update(!0)}getFeaturesetDescriptors(l){return this.style.getFeaturesetDescriptors(l)}setLights(l){if(this._lazyInitEmptyStyle(),l&&l.length===1&&l[0].type==="flat"){const t=l[0];t.properties?this.style.setFlatLight(t.properties,t.id,{}):this.style.setFlatLight({},"flat")}else this.style.setLights(l),this.painter.terrain&&(this.painter.terrain.invalidateRenderCache=!0);return this._update(!0)}getLights(){const l=this.style.getLights()||[];return l.length===0&&l.push({id:this.style.light.id,type:"flat",properties:this.style.getFlatLight()}),l}setLight(l,t={}){return console.log("The `map.setLight` function is deprecated, prefer using `map.setLights` with `flat` light type instead."),this.setLights([{id:"flat",type:"flat",properties:l}])}getLight(){return console.log("The `map.getLight` function is deprecated, prefer using `map.getLights` instead."),this.style.getFlatLight()}setTerrain(l){return this._lazyInitEmptyStyle(),!l&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(l),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(l){return this._lazyInitEmptyStyle(),this.style.setFog(l),this._update(!0)}getFog(){return this.style?this.style.getFog():null}setSnow(l){return this._lazyInitEmptyStyle(),this.style.setSnow(l),this._update(!0)}getSnow(){return this.style?this.style.getSnow():null}setRain(l){return this._lazyInitEmptyStyle(),this.style.setRain(l),this._update(!0)}getRain(){return this.style?this.style.getRain():null}setColorTheme(l){return this._lazyInitEmptyStyle(),this.style.setColorTheme(l),this._update(!0)}setImportColorTheme(l,t){return this._lazyInitEmptyStyle(),this.style.setImportColorTheme(l,t),this._update(!0)}setCamera(l){return this.style.setCamera(l),this._triggerCameraUpdate(l)}_triggerCameraUpdate(l){return this._update(this.transform.setOrthographicProjectionAtLowPitch(l["camera-projection"]==="orthographic"))}getCamera(){return this.style.camera}_queryFogOpacity(l){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(o.cd.convert(l),this.transform):0}setFeatureState(l,t){return l.source&&!this._isValidId(l.source)?this:(this.style.setFeatureState(l,t),this._update())}removeFeatureState(l,t){return l.source&&!this._isValidId(l.source)?this:(this.style.removeFeatureState(l,t),this._update())}getFeatureState(l){return l.source&&!this._isValidId(l.source)?null:this.style.getFeatureState(l)}_updateContainerDimensions(){if(!this._container)return;const l=this._container.getBoundingClientRect().width||400,t=this._container.getBoundingClientRect().height||300;let n,c,d,f=this._container;for(;f&&(!c||!d);){const _=window.getComputedStyle(f).transform;_&&_!=="none"&&(n=_.match(/matrix.*\((.+)\)/)[1].split(", "),n[0]&&n[0]!=="0"&&n[0]!=="1"&&(c=n[0]),n[3]&&n[3]!=="0"&&n[3]!=="1"&&(d=n[3])),f=f.parentElement}this._containerWidth=c?Math.abs(l/c):l,this._containerHeight=d?Math.abs(t/d):t}_detectMissingCSS(){window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")!=="rgb(250, 128, 114)"&&o.w("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const l=this._container;l.classList.add("mapboxgl-map"),(this._missingCSSCanary=ve("div","mapboxgl-canary",l)).style.visibility="hidden",this._detectMissingCSS();const t=this._canvasContainer=ve("div","mapboxgl-canvas-container",l);this._canvas=ve("canvas","mapboxgl-canvas",t),this._interactive&&(t.classList.add("mapboxgl-interactive"),this._canvas.setAttribute("tabindex","0")),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const n=this._controlContainer=ve("div","mapboxgl-control-container",l),c=this._controlPositions={};["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"].forEach(d=>{c[d]=ve("div",`mapboxgl-ctrl-${d}`,n)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(l,t){const n=o.q.devicePixelRatio||1;this._canvas.width=n*Math.ceil(l),this._canvas.height=n*Math.ceil(t),this._canvas.style.width=`${l}px`,this._canvas.style.height=`${t}px`}_addMarker(l){this._markers.push(l)}_removeMarker(l){const t=this._markers.indexOf(l);t!==-1&&this._markers.splice(t,1)}_addPopup(l){this._popups.push(l)}_removePopup(l){const t=this._popups.indexOf(l);t!==-1&&this._popups.splice(t,1)}_setupPainter(){const l=o.l({},De.supported.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),t=this._canvas.getContext("webgl2",l);t?(tr(t,!0),this.painter=new Th(t,this._contextCreateOptions,this.transform,this._scaleFactor,this._tp),this.on("data",n=>{n.dataType==="source"&&this.painter.setTileLoadedFlag(!0)}),o.m.testSupport(t)):this.fire(new o.z(new Error("Failed to initialize WebGL")))}_contextLost(l){l.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new o.A("webglcontextlost",{originalEvent:l}))}_contextRestored(l){this._setupPainter(),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight)),this._updateTerrain(),this.style&&(this.style.reloadModels(),this.style.clearSources()),this._update(),this.fire(new o.A("webglcontextrestored",{originalEvent:l}))}_onMapScroll(l){if(l.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}idle(){return!this.isMoving()&&this.loaded()}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}frameReady(){return this.loaded()&&!this._placementDirty}_update(l){return this.style?(this._styleDirty=this._styleDirty||l,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(l){return this._update(),this._renderTaskQueue.add(l)}_cancelRenderFrame(l){this._renderTaskQueue.remove(l)}_requestDomTask(l){!this.loaded()||this.loaded()&&!this.isMoving()?l():this._domRenderTaskQueue.add(l)}_render(l){let t;this.fire(new o.A("renderstart")),++this._frameId;const n=this.painter.context.extTimerQuery,c=o.q.now(),d=this.painter.context.gl;if(this.listens("gpu-timing-frame")&&(t=d.createQuery(),d.beginQuery(n.TIME_ELAPSED_EXT,t)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],performance.now())),this._renderTaskQueue.run(l),this._domRenderTaskQueue.run(l),this._removed)return;this._updateProjectionTransition();const f=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const E=this.transform.zoom,C=this.transform.pitch,P=o.q.now(),M=new o.aa(E,{now:P,fadeDuration:f,pitch:C,transition:this.style.transition});this.style.update(M)}this.style&&this.style.hasFogTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let _=!1;this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),_=this._updateAverageElevation(c),this.style.updateSources(this.transform),this.style.updateImageProviders(),this.isMoving()||this._forceMarkerAndPopupUpdate()):_=this._updateAverageElevation(c);const v=this.style&&this.style._updatePlacement(this.painter,this.painter.transform,this.showCollisionBoxes,f,this._crossSourceCollisions,this.painter.replacementSource,this._scaleFactorChanged);if(this._scaleFactorChanged&&(this._scaleFactorChanged=!1),v&&(this._placementDirty=v.needsRerender),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showParseStatus:this.showParseStatus,wireframe:{terrain:this.showTerrainWireframe,layers2D:this.showLayers2DWireframe,layers3D:this.showLayers3DWireframe},showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:f,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new o.A("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,be.mark(oe.load),this.fire(new o.A("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&(this.style.snow||this.style.rain)&&(this._styleDirty=!0),this.style&&this.style.imageManager.hasPatternsInFlight()&&(this._styleDirty=!0),this.style&&!this.style.modelManager.isLoaded()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),t){const E=o.q.now()-c;d.endQuery(n.TIME_ELAPSED_EXT),setTimeout(()=>{const C=d.getQueryParameter(t,d.QUERY_RESULT)/1e6;d.deleteQuery(t),this.fire(new o.A("gpu-timing-frame",{cpuTime:E,gpuTime:C}))},50)}if(this.listens("gpu-timing-layer")){const E=this.painter.collectGpuTimers();setTimeout(()=>{const C=this.painter.queryGpuTimers(E);this.fire(new o.A("gpu-timing-layer",{layerTimes:C}))},50)}if(this.listens("gpu-timing-deferred-render")){const E=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{const C=this.painter.queryGpuTimeDeferredRender(E);this.fire(new o.A("gpu-timing-deferred-render",{gpuTime:C}))},50)}const b=this._sourcesDirty||this._styleDirty||this._placementDirty||_;if(b||this._repaint)this.triggerRepaint();else{const E=this.idle();if(E&&(_=this._updateAverageElevation(c,!0)),_)this.triggerRepaint();else if(this._triggerFrame(!1),E&&(this.fire(new o.A("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const C=this._calculateSpeedIndex();this.fire(new o.A("speedindexcompleted",{speedIndex:C})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||b||(this._fullyLoaded=!0,be.mark(oe.fullLoad),this._performanceMetricsCollection&&$o(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(l){for(const t of this._markers)l&&!this.getRenderWorldCopies()&&(t._lngLat=t._lngLat.wrap()),t._update();for(const t of this._popups)!l||this.getRenderWorldCopies()||t._trackPointer||(t._lngLat=t._lngLat.wrap()),t._update()}_updateAverageElevation(l,t=!1){const n=d=>(this.transform.averageElevation=d,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return this.transform.averageElevation!==0&&n(0);const c=this.transform.elevation&&this.transform.elevation.exaggeration()!==this._averageElevationExaggeration;if(c||(t||l-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(l)){const d=this.transform.averageElevation;let f=this.transform.sampleAverageElevation();this.transform.elevation!=null&&(this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(f)?f=0:this._averageElevationLastSampledAt=l;const _=Math.abs(d-f);if(_>1){if(this._isInitialLoad||c)return this._averageElevation.jumpTo(f),n(f);this._averageElevation.easeTo(f,l,300)}else if(_>1e-4)return this._averageElevation.jumpTo(f),n(f)}return!!this._averageElevation.isEasing(l)&&n(this._averageElevation.getValue(l))}_authenticate(){Jn(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,l=>{if(l&&(l.message===gi||l.status===401)){const t=this.painter.context.gl;tr(t,!1),this._logoControl instanceof qc&&this._logoControl._updateLogo(),t&&t.clear(t.DEPTH_BUFFER_BIT|t.COLOR_BUFFER_BIT|t.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new o.z(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),po(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_postStyleLoadEvent(){this.style.globalId&&Xi(this._requestManager._customAccessToken,{map:this,style:this.style.globalId,importedStyles:this.style.getImportGlobalIds()})}_updateTerrain(){const l=this._isDragging();this.painter.updateTerrain(this.style,l)}_calculateSpeedIndex(){const l=this.painter.canvasCopy(),t=this.painter.getCanvasCopiesAndTimestamps();t.timeStamps.push(performance.now());const n=this.painter.context.gl,c=n.createFramebuffer();function d(f){n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,f,0);const _=new Uint8Array(n.drawingBufferWidth*n.drawingBufferHeight*4);return n.readPixels(0,0,n.drawingBufferWidth,n.drawingBufferHeight,n.RGBA,n.UNSIGNED_BYTE,_),_}return n.bindFramebuffer(n.FRAMEBUFFER,c),this._canvasPixelComparison(d(l),t.canvasCopies.map(d),t.timeStamps)}_canvasPixelComparison(l,t,n){let c=n[1]-n[0];const d=l.length/4;for(let f=0;f<t.length;f++){const _=t[f];let v=0;for(let b=0;b<_.length;b+=4)_[b]===l[b]&&_[b+1]===l[b+1]&&_[b+2]===l[b+2]&&_[b+3]===l[b+3]&&(v+=1);c+=(n[f+2]-n[f+1])*(1-v/d)}return c}remove(){this._hash&&this._hash.remove();for(const t of this._controls)t.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.indoor.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),window.removeEventListener("resize",this._onWindowResize,!1),window.removeEventListener("orientationchange",this._onWindowResize,!1),window.removeEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.removeEventListener("online",this._onWindowOnline,!1),window.removeEventListener("visibilitychange",this._onVisibilityChange,!1);const l=this.painter.context.gl.getExtension("WEBGL_lose_context");l&&l.loseContext(),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._missingCSSCanary.remove(),this._canvas=void 0,this._canvasContainer=void 0,this._controlContainer=void 0,this._missingCSSCanary=void 0,this._container.classList.remove("mapboxgl-map"),this._container.removeEventListener("scroll",this._onMapScroll,!1),ao.delete(this.painter.context.gl),gr.remove(),Kn.remove(),this._removed=!0,this.fire(new o.A("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(l){this._renderNextFrame=this._renderNextFrame||l,this.style&&!this._frame&&(this._frame=o.q.frame(t=>{const n=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,n&&this._render(t)}))}_preloadTiles(l){const t=this.style?this.style.getSourceCaches():[];return o.bt(t,(n,c)=>n._preloadTiles(l,c),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(l){this._trackResize&&this.resize({originalEvent:l})._update()}_onVisibilityChange(){document.visibilityState==="hidden"&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(l){this._showTileBoundaries!==l&&(this._showTileBoundaries=l,this._tp.refreshUI(),this._update())}get showParseStatus(){return!!this._showParseStatus}set showParseStatus(l){this._showParseStatus!==l&&(this._showParseStatus=l,this._tp.refreshUI(),this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(l){this._showTerrainWireframe!==l&&(this._showTerrainWireframe=l,this._tp.refreshUI(),this._update())}get showLayers2DWireframe(){return!!this._showLayers2DWireframe}set showLayers2DWireframe(l){this._showLayers2DWireframe!==l&&(this._showLayers2DWireframe=l,this._tp.refreshUI(),this._update())}get showLayers3DWireframe(){return!!this._showLayers3DWireframe}set showLayers3DWireframe(l){this._showLayers3DWireframe!==l&&(this._showLayers3DWireframe=l,this._tp.refreshUI(),this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(l){this._speedIndexTiming!==l&&(this._speedIndexTiming=l,this._update())}get showPadding(){return!!this._showPadding}set showPadding(l){this._showPadding!==l&&(this._showPadding=l,this._tp.refreshUI(),this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(l){this._showCollisionBoxes!==l&&(this._showCollisionBoxes=l,this._tp.refreshUI(),l?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(l){this._showOverdrawInspector!==l&&(this._showOverdrawInspector=l,this._tp.refreshUI(),this._update())}get repaint(){return!!this._repaint}set repaint(l){this._repaint!==l&&(this._repaint=l,this._tp.refreshUI(),this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(l){this._vertices=l,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(l){this._showTileAABBs!==l&&(this._showTileAABBs=l,this._tp.refreshUI(),l&&this._update())}_setCacheLimits(l,t){o.eJ(l,t)}get version(){return J}},NavigationControl:class{constructor(l={}){this.options=o.l({},d0,l),this._container=ve("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",t=>t.preventDefault()),this.options.showZoom&&(o.aV(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",t=>{this._map&&this._map.zoomIn({},{originalEvent:t})}),ve("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",t=>{this._map&&this._map.zoomOut({},{originalEvent:t})}),ve("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(o.aV(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",t=>{const n=this._map;n&&(this.options.visualizePitch?n.resetNorthPitch({},{originalEvent:t}):n.resetNorth({},{originalEvent:t}))}),this._compassIcon=ve("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const l=this._map;if(!l)return;const t=l.getZoom(),n=t===l.getMaxZoom(),c=t===l.getMinZoom();this._zoomInButton.disabled=n,this._zoomOutButton.disabled=c,this._zoomInButton.setAttribute("aria-disabled",n.toString()),this._zoomOutButton.setAttribute("aria-disabled",c.toString())}_rotateCompassArrow(){const l=this._map;if(!l)return;const t=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(l.transform.pitch*(Math.PI/180)),.5)}) rotateX(${l.transform.pitch}deg) rotateZ(${l.transform.angle*(180/Math.PI)}deg)`:`rotate(${l.transform.angle*(180/Math.PI)}deg)`;l._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=t)})}onAdd(l){return this._map=l,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),l.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&l.on("pitch",this._rotateCompassArrow),l.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Wc(l,this._compass,this.options.visualizePitch)),this._container}onRemove(){const l=this._map;l&&(this._container.remove(),this.options.showZoom&&l.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&l.off("pitch",this._rotateCompassArrow),l.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(l,t){const n=ve("button",l,this._container);return n.type="button",n.addEventListener("click",t),n}_setButtonTitle(l,t){if(!this._map)return;const n=this._map._getUIString(`NavigationControl.${t}`);l.setAttribute("aria-label",n),l.firstElementChild&&l.firstElementChild.setAttribute("title",n)}},GeolocateControl:class extends o.E{constructor(l={}){super();const t=navigator.geolocation;this.options=o.l({geolocation:t},Yc,l),o.aV(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=Ga(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(l){return this._map=l,this._container=ve("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){this._geolocationWatchID!==void 0&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(l){const t=(n=!!this.options.geolocation)=>{this._supportsGeolocation=n,l(n)};this._supportsGeolocation!==void 0?l(this._supportsGeolocation):navigator.permissions!==void 0?navigator.permissions.query({name:"geolocation"}).then(n=>t(n.state!=="denied")).catch(()=>t()):t()}_isOutOfMapMaxBounds(l){const t=this._map.getMaxBounds(),n=l.coords;return!!t&&(n.longitude<t.getWest()||n.longitude>t.getEast()||n.latitude<t.getSouth()||n.latitude>t.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(l){if(this._map){if(this._isOutOfMapMaxBounds(l))return this._setErrorState(),this.fire(new o.A("outofmaxbounds",l)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=l,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(l),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(l),this.options.showUserLocation&&this._userLocationDotMarker.removeClassName("mapboxgl-user-location-dot-stale"),this.fire(new o.A("geolocate",l)),this._finish()}}_updateCamera(l){const t=new o.cd(l.coords.longitude,l.coords.latitude),n=l.coords.accuracy,c=this._map.getBearing(),d=o.l({bearing:c},this.options.fitBoundsOptions);this._map.fitBounds(t.toBounds(n),d,{geolocateSource:!0})}_updateMarker(l){if(l){const t=new o.cd(l.coords.longitude,l.coords.latitude);this._accuracyCircleMarker.setLngLat(t).addTo(this._map),this._userLocationDotMarker.setLngLat(t).addTo(this._map),this._accuracy=l.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const l=this._map.transform,t=o.c6(1,l._center.lat)*l.worldSize,n=Math.ceil(2*this._accuracy*t);this._circleElement.style.width=`${n}px`,this._circleElement.style.height=`${n}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&typeof this._heading=="number"?(this._userLocationDotMarker.setRotation(this._heading),this._userLocationDotMarker.addClassName("mapboxgl-user-location-show-heading")):(this._userLocationDotMarker.removeClassName("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(l){if(this._map){if(this.options.trackUserLocation)if(l.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",t),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",t),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(l.code===3&&this._noTimeout)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._userLocationDotMarker.addClassName("mapboxgl-user-location-dot-stale"),this.fire(new o.A("error",l)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(l){if(this._map!==void 0){if(this._container.addEventListener("contextmenu",t=>t.preventDefault()),this._geolocateButton=ve("button","mapboxgl-ctrl-geolocate",this._container),ve("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",l===!1){o.w("Geolocation support is not available so the GeolocateControl will be disabled.");const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",t),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",t)}else{const t=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",t),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",t)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=ve("div","mapboxgl-user-location"),this._dotElement.appendChild(ve("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(ve("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new Xc({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=ve("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Xc({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",t=>{t.geolocateSource||this._watchState!=="ACTIVE_LOCK"||t.originalEvent&&t.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new o.A("trackuserlocationend")))})}}_onDeviceOrientation(l){this._userLocationDotMarker&&(l.webkitCompassHeading?this._heading=l.webkitCompassHeading:l.absolute===!0&&(this._heading=-1*l.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return o.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new o.A("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new o.A("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new o.A("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let l;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(l={maximumAge:6e5,timeout:0},this._noTimeout=!0):(l=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,l),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=window.setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const l=()=>{"ondeviceorientationabsolute"in window?window.addEventListener("deviceorientationabsolute",this._onDeviceOrientation):window.addEventListener("deviceorientation",this._onDeviceOrientation)};typeof DeviceMotionEvent<"u"&&typeof DeviceMotionEvent.requestPermission=="function"?DeviceOrientationEvent.requestPermission().then(t=>{t==="granted"&&l()}).catch(console.error):l()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),window.removeEventListener("deviceorientation",this._onDeviceOrientation),window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:Ph,ScaleControl:class{constructor(l={}){this.options=o.l({},Vl,l),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch{return!1}}(),o.aV(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const l=this.options.maxWidth||100,t=this._map,n=t._containerHeight/2,c=t._containerWidth/2-l/2,d=t.unproject([c,n]),f=t.unproject([c+l,n]),_=d.distanceTo(f);if(this.options.unit==="imperial"){const v=3.2808*_;v>5280?this._setScale(l,v/5280,"mile"):this._setScale(l,v,"foot")}else this.options.unit==="nautical"?this._setScale(l,_/1852,"nautical-mile"):_>=1e3?this._setScale(l,_/1e3,"kilometer"):this._setScale(l,_,"meter")}_setScale(l,t,n){this._map._requestDomTask(()=>{const c=function(f){const _=Math.pow(10,`${Math.floor(f)}`.length-1);let v=f/_;return v=v>=10?10:v>=5?5:v>=3?3:v>=2?2:v>=1?1:function(b){const E=Math.pow(10,Math.ceil(-Math.log(b)/Math.LN10));return Math.round(b*E)/E}(v),_*v}(t),d=c/t;this._container.innerHTML=this._isNumberFormatSupported&&n!=="nautical-mile"?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:n}).format(c):`${c}&nbsp;${Ss[n]}`,this._container.style.width=l*d+"px"})}onAdd(l){return this._map=l,this._language=l.getLanguage(),this._container=ve("div","mapboxgl-ctrl mapboxgl-ctrl-scale",l.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(l){this._language=l,this._update()}setUnit(l){this.options.unit=l,this._update()}},FullscreenControl:class{constructor(l={}){this._fullscreen=!1,l&&l.container&&(l.container instanceof HTMLElement?this._container=l.container:o.w("Full screen control 'container' must be a DOM element.")),o.aV(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(l){return this._map=l,this._container||(this._container=this._map.getContainer()),this._controlContainer=ve("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",o.w("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!document.fullscreenEnabled&&!document.webkitFullscreenEnabled)}_setupUI(){const l=this._fullscreenButton=ve("button","mapboxgl-ctrl-fullscreen",this._controlContainer);ve("span","mapboxgl-ctrl-icon",l).setAttribute("aria-hidden","true"),l.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const l=this._getTitle();this._fullscreenButton.setAttribute("aria-label",l),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",l)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(document.fullscreenElement||document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends o.E{constructor(l){super(),this.options=o.l(Object.create(ko),l),this._altitude=this.options.altitude,o.aV(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(l&&l.className?l.className.trim().split(/\s+/):[])}addTo(l){return this._map&&this.remove(),this._map=l,this.options.closeOnClick&&l.on("preclick",this._onClose),this.options.closeOnMove&&l.on("move",this._onClose),l.on("remove",this.remove),this._update(),l._addPopup(this),this._focusFirstElement(),this._trackPointer?(l.on("mousemove",this._onMouseEvent),l.on("mouseup",this._onMouseEvent),l._canvasContainer.classList.add("mapboxgl-track-pointer")):l.on("move",this._update),this.fire(new o.A("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const l=this._map;return l&&(l.off("move",this._update),l.off("move",this._onClose),l.off("preclick",this._onClose),l.off("click",this._onClose),l.off("remove",this.remove),l.off("mousemove",this._onMouseEvent),l.off("mouseup",this._onMouseEvent),l.off("drag",this._onMouseEvent),l._canvasContainer&&l._canvasContainer.classList.remove("mapboxgl-track-pointer"),l._removePopup(this),this._map=void 0),this.fire(new o.A("close")),this}getLngLat(){return this._lngLat}setLngLat(l){this._lngLat=o.cd.convert(l),this._pos=null,this._trackPointer=!1,this._update();const t=this._map;return t&&(t.on("move",this._update),t.off("mousemove",this._onMouseEvent),t._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}getAltitude(){return this._altitude}setAltitude(l){return this._altitude=l,this._update(),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const l=this._map;return l&&(l.off("move",this._update),l.on("mousemove",this._onMouseEvent),l.on("drag",this._onMouseEvent),l._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(l){return this.setDOMContent(document.createTextNode(l))}setHTML(l){const t=document.createDocumentFragment(),n=document.createElement("body");let c;for(n.innerHTML=l;c=n.firstChild,c;)t.appendChild(c);return this.setDOMContent(t)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(l){return this.options.maxWidth=l,this._update(),this}setDOMContent(l){let t=this._content;if(t)for(;t.hasChildNodes();)t.firstChild&&t.removeChild(t.firstChild);else t=this._content=ve("div","mapboxgl-popup-content",this._container||void 0);if(t.appendChild(l),this.options.closeButton){const n=this._closeButton=ve("button","mapboxgl-popup-close-button",t);n.type="button",n.setAttribute("aria-label","Close popup"),n.innerHTML='<span aria-hidden="true">&#215;</span>',n.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(l){return this._classList.add(l),this._updateClassList(),this}removeClassName(l){return this._classList.delete(l),this._updateClassList(),this}setOffset(l){return this.options.offset=l,this._update(),this}toggleClassName(l){let t;return this._classList.delete(l)?t=!1:(this._classList.add(l),t=!0),this._updateClassList(),t}_onMouseEvent(l){this._update(l.point)}_getAnchor(l){if(this.options.anchor)return this.options.anchor;const t=this._map,n=this._container,c=this._pos;if(!t||!n||!c)return"bottom";const d=n.offsetWidth,f=n.offsetHeight,_=c.x<d/2,v=c.x>t.transform.width-d/2;if(c.y+l<f)return _?"top-left":v?"top-right":"top";if(c.y>t.transform.height-f){if(_)return"bottom-left";if(v)return"bottom-right"}return _?"left":v?"right":"bottom"}_updateClassList(){const l=this._container;if(!l)return;const t=[...this._classList];t.push("mapboxgl-popup"),this._anchor&&t.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&t.push("mapboxgl-popup-track-pointer"),l.className=t.join(" ")}_update(l){const t=this._map,n=this._content;if(!t||!this._lngLat&&!this._trackPointer||!n)return;let c=this._container;if(c||(c=this._container=ve("div","mapboxgl-popup",t.getContainer()),this._tip=ve("div","mapboxgl-popup-tip",c),c.appendChild(n)),this.options.maxWidth&&c.style.maxWidth!==this.options.maxWidth&&(c.style.maxWidth=this.options.maxWidth),t.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=o_(this._lngLat,this._pos,t.transform)),!this._trackPointer||l){const d=this._pos=this._trackPointer&&l instanceof o.P?l:t.project(this._lngLat,this._altitude),f=ra(this.options.offset),_=this._anchor=this._getAnchor(f.y),v=ra(this.options.offset,_),b=d.add(v).round();t._requestDomTask(()=>{this._container&&_&&(this._container.style.transform=`${Ip[_]} translate(${b.x}px,${b.y}px)`)})}if(!this._marker&&t._showingGlobe()){const d=o.eK(t.transform,this._lngLat)?0:1;this._setOpacity(d)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const l=this._container.querySelector(Oo);l&&l.focus()}_onClose(){this.remove()}_setOpacity(l){this._container&&(this._container.style.opacity=`${l}`),this._content&&(this._content.style.pointerEvents=l?"auto":"none")}},Marker:Xc,Style:yo,LngLat:o.cd,LngLatBounds:o.aG,Point:o.P,MercatorCoordinate:o.ac,FreeCameraOptions:Gu,Evented:o.E,config:o.e,prewarm:o.eP,clearPrewarmedResources:o.eQ,get accessToken(){return o.e.ACCESS_TOKEN},set accessToken(l){o.e.ACCESS_TOKEN=l},get baseApiUrl(){return o.e.API_URL},set baseApiUrl(l){o.e.API_URL=l},get workerCount(){return o.eR.workerCount},set workerCount(l){o.eR.workerCount=l},get maxParallelImageRequests(){return o.e.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(l){o.e.MAX_PARALLEL_IMAGE_REQUESTS=l},clearStorage(l){o.eS(l)},get workerUrl(){return o.eT.workerUrl},set workerUrl(l){o.eT.workerUrl=l},get workerClass(){return o.eT.workerClass},set workerClass(l){o.eT.workerClass=l},get workerParams(){return o.eT.workerParams},set workerParams(l){o.eT.workerParams=l},get dracoUrl(){return o.eU()},set dracoUrl(l){o.eV(l)},get meshoptUrl(){return o.eW()},set meshoptUrl(l){o.eX(l)},setNow:o.q.setNow,restoreNow:o.q.restoreNow}});var B=z;return B})})(hw);var qL=hw.exports;const xd=zg(qL),_5="",ZL=Object.freeze(Object.defineProperty({__proto__:null,Map:({config:p,mapData:y,onBoundsChange:w,autoFit:I})=>{const{t:z}=On(),k=Ri(null),B=Ri(null),o=Ri(!1),J=Ri(!0),[oe,be]=Fi(null),ae=Hb(oe,250),Se=Ri(null),{queryState:ye,data:De}=y;qi(()=>{xd.accessToken=p==null?void 0:p.accessToken;const ze=new xd.Map({container:k.current??"ijs-map",style:(p==null?void 0:p.style)??"mapbox://styles/mapbox/light-v10",center:(p==null?void 0:p.defaultCenter)??[-.13,51.51],zoom:3,attributionControl:!1,cooperativeGestures:!0});return B.current=ze,ze.addControl(new xd.NavigationControl),ze.addControl(new xd.AttributionControl({compact:!0})),ze.on("move",Ee=>{Ee.originalEvent&&be(ze.getBounds())}),()=>{ze.remove(),B.current=null,o.current=!1}},[p]),qi(()=>{const ze=ae;if(!ze)return;const Ee=[ze.getSouthWest().lat.toFixed(2),ze.getSouthWest().lng.toFixed(2),ze.getNorthEast().lat.toFixed(2),ze.getNorthEast().lng.toFixed(2)].join(",");Ee!==Se.current&&(Se.current=Ee,w({type:"bounds",sw:{lat:ze.getSouthWest().lat,lng:ze.getSouthWest().lng},ne:{lat:ze.getNorthEast().lat,lng:ze.getNorthEast().lng}}))},[ae,w]),qi(()=>{if(ye!=="loaded")return;const ze=B.current;if(!ze)return;const Ee=()=>{const tt=De.results.filter(Ke=>Ke.raw.coordinates).map(Ke=>({type:"Feature",properties:{id:Ke.id},geometry:{type:"Point",coordinates:[Ke.raw.coordinates.lng,Ke.raw.coordinates.lat]}})),at={type:"FeatureCollection",features:tt};if(ze.getSource("jobs")?ze.getSource("jobs").setData(at):ze.addSource("jobs",{type:"geojson",data:at,cluster:!0,clusterRadius:40,clusterMaxZoom:20}),o.current||(ze.addLayer({id:"clusters",type:"circle",source:"jobs",filter:["has","point_count"],paint:{"circle-color":(p==null?void 0:p.pinColor)??"#0066ff","circle-radius":["step",["get","point_count"],14,10,18,50,24]}}),ze.addLayer({id:"cluster-count",type:"symbol",source:"jobs",filter:["has","point_count"],layout:{"text-field":"{point_count_abbreviated}","text-font":["DIN Offc Pro Medium","Arial Unicode MS Bold"],"text-size":12},paint:{"text-color":"#ffffff"}}),ze.addLayer({id:"unclustered-point",type:"circle",source:"jobs",filter:["!",["has","point_count"]],paint:{"circle-color":(p==null?void 0:p.pinColor)??"#0066ff","circle-radius":6,"circle-stroke-width":1,"circle-stroke-color":"#ffffff"}}),ze.on("mouseenter","clusters",()=>ze.getCanvas().style.cursor="pointer"),ze.on("mouseleave","clusters",()=>ze.getCanvas().style.cursor=""),ze.on("click","clusters",Ke=>{const pt=ze.queryRenderedFeatures(Ke.point,{layers:["clusters"]});if(!pt.length)return;const xt=pt[0].properties.cluster_id;ze.getSource("jobs").getClusterExpansionZoom(xt,(Wt,Ot)=>{ze.easeTo({center:pt[0].geometry.coordinates,zoom:Ot})})}),o.current=!0),(J.current||I)&&tt.length){const Ke=new xd.LngLatBounds;tt.forEach(pt=>{pt.geometry.type==="Point"&&Ke.extend(pt.geometry.coordinates)}),ze.fitBounds(Ke,{padding:50,duration:500}),J.current=!1}};ze.isStyleLoaded()?Ee():ze.once("load",Ee)},[p,ye,De,I]);const ve=(()=>{switch(y.queryState){case"loading":case"revalidating":return ue("span",{class:"animate-pulse",children:z("loading_jobs")});case"error":return ue("span",{class:"flex flex-col",style:"color: #e42d16;",children:z("map_jobs_error")});case"loaded":return y.data.pagination.has_more?ue("span",{class:"flex flex-col",children:[ue("span",{class:"font-weight-job-heading",children:z("map_has_more_title")}),ue("span",{class:"text-style-job-card-info opacity-80",children:z("map_has_more_description")})]}):null;default:return null}})();return ue("div",{class:"relative h-full w-full overflow-hidden",children:[ue("div",{ref:k,id:"ijs-map",class:"h-full w-full"}),ve&&ue("div",{class:"pointer-events-none absolute left-12 right-12 top-2 flex items-center justify-center",children:ue("div",{class:"animate-selected-tag bg-app text-interactive-neutral-text border-section-weak-stroke text-style-job-card border-px rounded-input font-family-tag font-weight-tag pointer-events-none px-3 py-2 text-center shadow-sm",children:ve},y.queryState)})]})}},Symbol.toStringTag,{value:"Module"}))})();