@kvass/widgets 1.3.10 → 1.3.11

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.
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @vue/shared v3.4.15
2
+ * @vue/shared v3.4.19
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
- **/function Yn(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const z={},it=[],Ce=()=>{},Ro=()=>!1,nn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Xn=e=>e.startsWith("onUpdate:"),Q=Object.assign,Zn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Fo=Object.prototype.hasOwnProperty,H=(e,t)=>Fo.call(e,t),T=Array.isArray,lt=e=>Ot(e)==="[object Map]",sn=e=>Ot(e)==="[object Set]",ws=e=>Ot(e)==="[object Date]",F=e=>typeof e=="function",ee=e=>typeof e=="string",We=e=>typeof e=="symbol",G=e=>e!==null&&typeof e=="object",hr=e=>(G(e)||F(e))&&F(e.then)&&F(e.catch),pr=Object.prototype.toString,Ot=e=>pr.call(e),No=e=>Ot(e).slice(8,-1),gr=e=>Ot(e)==="[object Object]",Qn=e=>ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Kt=Yn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),rn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Lo=/-(\w)/g,ae=rn(e=>e.replace(Lo,(t,n)=>n?n.toUpperCase():"")),$o=/\B([A-Z])/g,be=rn(e=>e.replace($o,"-$1").toLowerCase()),on=rn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Bt=rn(e=>e?`on${on(e)}`:""),Me=(e,t)=>!Object.is(e,t),Ut=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Gt=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},es=e=>{const t=parseFloat(e);return isNaN(t)?e:t},$n=e=>{const t=ee(e)?Number(e):NaN;return isNaN(t)?e:t};let Ts;const _r=()=>Ts||(Ts=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ln(e){if(T(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ee(s)?Do(s):ln(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(ee(e)||G(e))return e}const Ho=/;(?![^(]*\))/g,Vo=/:([^]+)/,jo=/\/\*[^]*?\*\//g;function Do(e){const t={};return e.replace(jo,"").split(Ho).forEach(n=>{if(n){const s=n.split(Vo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function cn(e){let t="";if(ee(e))t=e;else if(T(e))for(let n=0;n<e.length;n++){const s=cn(e[n]);s&&(t+=s+" ")}else if(G(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function uc(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ee(t)&&(e.class=cn(t)),n&&(e.style=ln(n)),e}const Ko="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Bo=Yn(Ko);function mr(e){return!!e||e===""}function Uo(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=vt(e[s],t[s]);return n}function vt(e,t){if(e===t)return!0;let n=ws(e),s=ws(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=We(e),s=We(t),n||s)return e===t;if(n=T(e),s=T(t),n||s)return n&&s?Uo(e,t):!1;if(n=G(e),s=G(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const l=e.hasOwnProperty(i),f=t.hasOwnProperty(i);if(l&&!f||!l&&f||!vt(e[i],t[i]))return!1}}return String(e)===String(t)}function Wo(e,t){return e.findIndex(n=>vt(n,t))}const ac=e=>ee(e)?e:e==null?"":T(e)||G(e)&&(e.toString===pr||!F(e.toString))?JSON.stringify(e,yr,2):String(e),yr=(e,t)=>t&&t.__v_isRef?yr(e,t.value):lt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[Tn(s,o)+" =>"]=r,n),{})}:sn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Tn(n))}:We(t)?Tn(t):G(t)&&!T(t)&&!gr(t)?String(t):t,Tn=(e,t="")=>{var n;return We(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
- * @vue/reactivity v3.4.15
5
+ **/function Xn(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const z={},it=[],Ce=()=>{},Io=()=>!1,nn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Zn=e=>e.startsWith("onUpdate:"),Q=Object.assign,Qn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ro=Object.prototype.hasOwnProperty,H=(e,t)=>Ro.call(e,t),T=Array.isArray,lt=e=>It(e)==="[object Map]",sn=e=>It(e)==="[object Set]",ws=e=>It(e)==="[object Date]",L=e=>typeof e=="function",ee=e=>typeof e=="string",We=e=>typeof e=="symbol",k=e=>e!==null&&typeof e=="object",hr=e=>(k(e)||L(e))&&L(e.then)&&L(e.catch),pr=Object.prototype.toString,It=e=>pr.call(e),Lo=e=>It(e).slice(8,-1),gr=e=>It(e)==="[object Object]",es=e=>ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,mt=Xn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),rn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Fo=/-(\w)/g,ae=rn(e=>e.replace(Fo,(t,n)=>n?n.toUpperCase():"")),No=/\B([A-Z])/g,be=rn(e=>e.replace(No,"-$1").toLowerCase()),on=rn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ut=rn(e=>e?`on${on(e)}`:""),Me=(e,t)=>!Object.is(e,t),Wt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},qt=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ts=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Hn=e=>{const t=ee(e)?Number(e):NaN;return isNaN(t)?e:t};let Ts;const _r=()=>Ts||(Ts=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ln(e){if(T(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ee(s)?jo(s):ln(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(ee(e)||k(e))return e}const $o=/;(?![^(]*\))/g,Ho=/:([^]+)/,Vo=/\/\*[^]*?\*\//g;function jo(e){const t={};return e.replace(Vo,"").split($o).forEach(n=>{if(n){const s=n.split(Ho);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function cn(e){let t="";if(ee(e))t=e;else if(T(e))for(let n=0;n<e.length;n++){const s=cn(e[n]);s&&(t+=s+" ")}else if(k(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function uc(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ee(t)&&(e.class=cn(t)),n&&(e.style=ln(n)),e}const Do="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ko=Xn(Do);function mr(e){return!!e||e===""}function Bo(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=fn(e[s],t[s]);return n}function fn(e,t){if(e===t)return!0;let n=ws(e),s=ws(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=We(e),s=We(t),n||s)return e===t;if(n=T(e),s=T(t),n||s)return n&&s?Bo(e,t):!1;if(n=k(e),s=k(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const l=e.hasOwnProperty(i),f=t.hasOwnProperty(i);if(l&&!f||!l&&f||!fn(e[i],t[i]))return!1}}return String(e)===String(t)}function Uo(e,t){return e.findIndex(n=>fn(n,t))}const ac=e=>ee(e)?e:e==null?"":T(e)||k(e)&&(e.toString===pr||!L(e.toString))?JSON.stringify(e,yr,2):String(e),yr=(e,t)=>t&&t.__v_isRef?yr(e,t.value):lt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[An(s,o)+" =>"]=r,n),{})}:sn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>An(n))}:We(t)?An(t):k(t)&&!T(t)&&!gr(t)?String(t):t,An=(e,t="")=>{var n;return We(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
+ * @vue/reactivity v3.4.19
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/let _e;class ko{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=_e,!t&&_e&&(this.index=(_e.scopes||(_e.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=_e;try{return _e=this,t()}finally{_e=n}}}on(){_e=this}off(){_e=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Go(e,t=_e){t&&t.active&&t.effects.push(e)}function qo(){return _e}function dc(e){_e&&_e.cleanups.push(e)}let et;class ts{constructor(t,n,s,r){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=2,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Go(this,r)}get dirty(){if(this._dirtyLevel===1){nt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(zo(n.computed),this._dirtyLevel>=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),st()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Be,n=et;try{return Be=!0,et=this,this._runnings++,As(this),this.fn()}finally{Ss(this),this._runnings--,et=n,Be=t}}stop(){var t;this.active&&(As(this),Ss(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function zo(e){return e.value}function As(e){e._trackId++,e._depsLength=0}function Ss(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)br(e.deps[t],e);e.deps.length=e._depsLength}}function br(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Be=!0,Hn=0;const Cr=[];function nt(){Cr.push(Be),Be=!1}function st(){const e=Cr.pop();Be=e===void 0?!0:e}function ns(){Hn++}function ss(){for(Hn--;!Hn&&Vn.length;)Vn.shift()()}function xr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&br(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Vn=[];function vr(e,t,n){ns();for(const s of e.keys())if(s._dirtyLevel<t&&e.get(s)===s._trackId){const r=s._dirtyLevel;s._dirtyLevel=t,r===0&&(s._shouldSchedule=!0,s.trigger())}Er(e),ss()}function Er(e){for(const t of e.keys())t.scheduler&&t._shouldSchedule&&(!t._runnings||t.allowRecurse)&&e.get(t)===t._trackId&&(t._shouldSchedule=!1,Vn.push(t.scheduler))}const wr=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},jn=new WeakMap,tt=Symbol(""),Dn=Symbol("");function de(e,t,n){if(Be&&et){let s=jn.get(e);s||jn.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=wr(()=>s.delete(n))),xr(et,r)}}function Fe(e,t,n,s,r,o){const i=jn.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&T(e)){const f=Number(s);i.forEach((a,d)=>{(d==="length"||!We(d)&&d>=f)&&l.push(a)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":T(e)?Qn(n)&&l.push(i.get("length")):(l.push(i.get(tt)),lt(e)&&l.push(i.get(Dn)));break;case"delete":T(e)||(l.push(i.get(tt)),lt(e)&&l.push(i.get(Dn)));break;case"set":lt(e)&&l.push(i.get(tt));break}ns();for(const f of l)f&&vr(f,2);ss()}const Jo=Yn("__proto__,__v_isRef,__isVue"),Tr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(We)),Ps=Yo();function Yo(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=V(this);for(let o=0,i=this.length;o<i;o++)de(s,"get",o+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(V)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){nt(),ns();const s=V(this)[t].apply(this,n);return ss(),st(),s}}),e}function Xo(e){const t=V(this);return de(t,"has",e),t.hasOwnProperty(e)}class Ar{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const r=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?Rr:Ir:o?Mr:Or).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=T(t);if(!r){if(i&&H(Ps,n))return Reflect.get(Ps,n,s);if(n==="hasOwnProperty")return Xo}const l=Reflect.get(t,n,s);return(We(n)?Tr.has(n):Jo(n))||(r||de(t,"get",n),o)?l:he(l)?i&&Qn(n)?l:l.value:G(l)?r?Fr(l):os(l):l}}class Sr extends Ar{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._shallow){const f=ut(o);if(!qt(s)&&!ut(s)&&(o=V(o),s=V(s)),!T(t)&&he(o)&&!he(s))return f?!1:(o.value=s,!0)}const i=T(t)&&Qn(n)?Number(n)<t.length:H(t,n),l=Reflect.set(t,n,s,r);return t===V(r)&&(i?Me(s,o)&&Fe(t,"set",n,s):Fe(t,"add",n,s)),l}deleteProperty(t,n){const s=H(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Fe(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!We(n)||!Tr.has(n))&&de(t,"has",n),s}ownKeys(t){return de(t,"iterate",T(t)?"length":tt),Reflect.ownKeys(t)}}class Pr extends Ar{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Zo=new Sr,Qo=new Pr,ei=new Sr(!0),ti=new Pr(!0),rs=e=>e,fn=e=>Reflect.getPrototypeOf(e);function Ft(e,t,n=!1,s=!1){e=e.__v_raw;const r=V(e),o=V(t);n||(Me(t,o)&&de(r,"get",t),de(r,"get",o));const{has:i}=fn(r),l=s?rs:n?is:Et;if(i.call(r,t))return l(e.get(t));if(i.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function Nt(e,t=!1){const n=this.__v_raw,s=V(n),r=V(e);return t||(Me(e,r)&&de(s,"has",e),de(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Lt(e,t=!1){return e=e.__v_raw,!t&&de(V(e),"iterate",tt),Reflect.get(e,"size",e)}function Os(e){e=V(e);const t=V(this);return fn(t).has.call(t,e)||(t.add(e),Fe(t,"add",e,e)),this}function Ms(e,t){t=V(t);const n=V(this),{has:s,get:r}=fn(n);let o=s.call(n,e);o||(e=V(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?Me(t,i)&&Fe(n,"set",e,t):Fe(n,"add",e,t),this}function Is(e){const t=V(this),{has:n,get:s}=fn(t);let r=n.call(t,e);r||(e=V(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&Fe(t,"delete",e,void 0),o}function Rs(){const e=V(this),t=e.size!==0,n=e.clear();return t&&Fe(e,"clear",void 0,void 0),n}function $t(e,t){return function(s,r){const o=this,i=o.__v_raw,l=V(i),f=t?rs:e?is:Et;return!e&&de(l,"iterate",tt),i.forEach((a,d)=>s.call(r,f(a),f(d),o))}}function Ht(e,t,n){return function(...s){const r=this.__v_raw,o=V(r),i=lt(o),l=e==="entries"||e===Symbol.iterator&&i,f=e==="keys"&&i,a=r[e](...s),d=n?rs:t?is:Et;return!t&&de(o,"iterate",f?Dn:tt),{next(){const{value:p,done:g}=a.next();return g?{value:p,done:g}:{value:l?[d(p[0]),d(p[1])]:d(p),done:g}},[Symbol.iterator](){return this}}}}function Le(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ni(){const e={get(o){return Ft(this,o)},get size(){return Lt(this)},has:Nt,add:Os,set:Ms,delete:Is,clear:Rs,forEach:$t(!1,!1)},t={get(o){return Ft(this,o,!1,!0)},get size(){return Lt(this)},has:Nt,add:Os,set:Ms,delete:Is,clear:Rs,forEach:$t(!1,!0)},n={get(o){return Ft(this,o,!0)},get size(){return Lt(this,!0)},has(o){return Nt.call(this,o,!0)},add:Le("add"),set:Le("set"),delete:Le("delete"),clear:Le("clear"),forEach:$t(!0,!1)},s={get(o){return Ft(this,o,!0,!0)},get size(){return Lt(this,!0)},has(o){return Nt.call(this,o,!0)},add:Le("add"),set:Le("set"),delete:Le("delete"),clear:Le("clear"),forEach:$t(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Ht(o,!1,!1),n[o]=Ht(o,!0,!1),t[o]=Ht(o,!1,!0),s[o]=Ht(o,!0,!0)}),[e,n,t,s]}const[si,ri,oi,ii]=ni();function un(e,t){const n=t?e?ii:oi:e?ri:si;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(H(n,r)&&r in s?n:s,r,o)}const li={get:un(!1,!1)},ci={get:un(!1,!0)},fi={get:un(!0,!1)},ui={get:un(!0,!0)},Or=new WeakMap,Mr=new WeakMap,Ir=new WeakMap,Rr=new WeakMap;function ai(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function di(e){return e.__v_skip||!Object.isExtensible(e)?0:ai(No(e))}function os(e){return ut(e)?e:an(e,!1,Zo,li,Or)}function hi(e){return an(e,!1,ei,ci,Mr)}function Fr(e){return an(e,!0,Qo,fi,Ir)}function hc(e){return an(e,!0,ti,ui,Rr)}function an(e,t,n,s,r){if(!G(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=di(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function ct(e){return ut(e)?ct(e.__v_raw):!!(e&&e.__v_isReactive)}function ut(e){return!!(e&&e.__v_isReadonly)}function qt(e){return!!(e&&e.__v_isShallow)}function Nr(e){return ct(e)||ut(e)}function V(e){const t=e&&e.__v_raw;return t?V(t):e}function Lr(e){return Gt(e,"__v_skip",!0),e}const Et=e=>G(e)?os(e):e,is=e=>G(e)?Fr(e):e;class $r{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ts(()=>t(this._value),()=>mt(this,1),()=>this.dep&&Er(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=V(this);return(!t._cacheable||t.effect.dirty)&&Me(t._value,t._value=t.effect.run())&&mt(t,2),ls(t),t.effect._dirtyLevel>=1&&mt(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function pi(e,t,n=!1){let s,r;const o=F(e);return o?(s=e,r=Ce):(s=e.get,r=e.set),new $r(s,r,o||!r,n)}function ls(e){Be&&et&&(e=V(e),xr(et,e.dep||(e.dep=wr(()=>e.dep=void 0,e instanceof $r?e:void 0))))}function mt(e,t=2,n){e=V(e);const s=e.dep;s&&vr(s,t)}function he(e){return!!(e&&e.__v_isRef===!0)}function pc(e){return Hr(e,!1)}function gc(e){return Hr(e,!0)}function Hr(e,t){return he(e)?e:new gi(e,t)}class gi{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:V(t),this._value=n?t:Et(t)}get value(){return ls(this),this._value}set value(t){const n=this.__v_isShallow||qt(t)||ut(t);t=n?t:V(t),Me(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Et(t),mt(this,2))}}function _i(e){return he(e)?e.value:e}const mi={get:(e,t,n)=>_i(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return he(r)&&!he(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Vr(e){return ct(e)?e:new Proxy(e,mi)}class yi{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>ls(this),()=>mt(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function bi(e){return new yi(e)}/**
10
- * @vue/runtime-core v3.4.15
9
+ **/let _e;class Wo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=_e,!t&&_e&&(this.index=(_e.scopes||(_e.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=_e;try{return _e=this,t()}finally{_e=n}}}on(){_e=this}off(){_e=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function ko(e,t=_e){t&&t.active&&t.effects.push(e)}function Go(){return _e}function dc(e){_e&&_e.cleanups.push(e)}let et;class ns{constructor(t,n,s,r){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,ko(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,nt();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(qo(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),st()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Be,n=et;try{return Be=!0,et=this,this._runnings++,As(this),this.fn()}finally{Ss(this),this._runnings--,et=n,Be=t}}stop(){var t;this.active&&(As(this),Ss(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function qo(e){return e.value}function As(e){e._trackId++,e._depsLength=0}function Ss(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)br(e.deps[t],e);e.deps.length=e._depsLength}}function br(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Be=!0,Vn=0;const Cr=[];function nt(){Cr.push(Be),Be=!1}function st(){const e=Cr.pop();Be=e===void 0?!0:e}function ss(){Vn++}function rs(){for(Vn--;!Vn&&jn.length;)jn.shift()()}function xr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&br(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const jn=[];function vr(e,t,n){ss();for(const s of e.keys()){let r;s._dirtyLevel<t&&(r??(r=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(r??(r=e.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&jn.push(s.scheduler)))}rs()}const Er=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Dn=new WeakMap,tt=Symbol(""),Kn=Symbol("");function de(e,t,n){if(Be&&et){let s=Dn.get(e);s||Dn.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=Er(()=>s.delete(n))),xr(et,r)}}function Le(e,t,n,s,r,o){const i=Dn.get(e);if(!i)return;let l=[];if(t==="clear")l=[...i.values()];else if(n==="length"&&T(e)){const f=Number(s);i.forEach((a,d)=>{(d==="length"||!We(d)&&d>=f)&&l.push(a)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":T(e)?es(n)&&l.push(i.get("length")):(l.push(i.get(tt)),lt(e)&&l.push(i.get(Kn)));break;case"delete":T(e)||(l.push(i.get(tt)),lt(e)&&l.push(i.get(Kn)));break;case"set":lt(e)&&l.push(i.get(tt));break}ss();for(const f of l)f&&vr(f,4);rs()}const zo=Xn("__proto__,__v_isRef,__isVue"),wr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(We)),Ps=Jo();function Jo(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=V(this);for(let o=0,i=this.length;o<i;o++)de(s,"get",o+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(V)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){nt(),ss();const s=V(this)[t].apply(this,n);return rs(),st(),s}}),e}function Yo(e){const t=V(this);return de(t,"has",e),t.hasOwnProperty(e)}class Tr{constructor(t=!1,n=!1){this._isReadonly=t,this._shallow=n}get(t,n,s){const r=this._isReadonly,o=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?Ir:Mr:o?Or:Pr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=T(t);if(!r){if(i&&H(Ps,n))return Reflect.get(Ps,n,s);if(n==="hasOwnProperty")return Yo}const l=Reflect.get(t,n,s);return(We(n)?wr.has(n):zo(n))||(r||de(t,"get",n),o)?l:he(l)?i&&es(n)?l:l.value:k(l)?r?Rr(l):is(l):l}}class Ar extends Tr{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._shallow){const f=ut(o);if(!zt(s)&&!ut(s)&&(o=V(o),s=V(s)),!T(t)&&he(o)&&!he(s))return f?!1:(o.value=s,!0)}const i=T(t)&&es(n)?Number(n)<t.length:H(t,n),l=Reflect.set(t,n,s,r);return t===V(r)&&(i?Me(s,o)&&Le(t,"set",n,s):Le(t,"add",n,s)),l}deleteProperty(t,n){const s=H(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Le(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!We(n)||!wr.has(n))&&de(t,"has",n),s}ownKeys(t){return de(t,"iterate",T(t)?"length":tt),Reflect.ownKeys(t)}}class Sr extends Tr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Xo=new Ar,Zo=new Sr,Qo=new Ar(!0),ei=new Sr(!0),os=e=>e,un=e=>Reflect.getPrototypeOf(e);function Nt(e,t,n=!1,s=!1){e=e.__v_raw;const r=V(e),o=V(t);n||(Me(t,o)&&de(r,"get",t),de(r,"get",o));const{has:i}=un(r),l=s?os:n?ls:wt;if(i.call(r,t))return l(e.get(t));if(i.call(r,o))return l(e.get(o));e!==r&&e.get(t)}function $t(e,t=!1){const n=this.__v_raw,s=V(n),r=V(e);return t||(Me(e,r)&&de(s,"has",e),de(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Ht(e,t=!1){return e=e.__v_raw,!t&&de(V(e),"iterate",tt),Reflect.get(e,"size",e)}function Os(e){e=V(e);const t=V(this);return un(t).has.call(t,e)||(t.add(e),Le(t,"add",e,e)),this}function Ms(e,t){t=V(t);const n=V(this),{has:s,get:r}=un(n);let o=s.call(n,e);o||(e=V(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?Me(t,i)&&Le(n,"set",e,t):Le(n,"add",e,t),this}function Is(e){const t=V(this),{has:n,get:s}=un(t);let r=n.call(t,e);r||(e=V(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&Le(t,"delete",e,void 0),o}function Rs(){const e=V(this),t=e.size!==0,n=e.clear();return t&&Le(e,"clear",void 0,void 0),n}function Vt(e,t){return function(s,r){const o=this,i=o.__v_raw,l=V(i),f=t?os:e?ls:wt;return!e&&de(l,"iterate",tt),i.forEach((a,d)=>s.call(r,f(a),f(d),o))}}function jt(e,t,n){return function(...s){const r=this.__v_raw,o=V(r),i=lt(o),l=e==="entries"||e===Symbol.iterator&&i,f=e==="keys"&&i,a=r[e](...s),d=n?os:t?ls:wt;return!t&&de(o,"iterate",f?Kn:tt),{next(){const{value:p,done:g}=a.next();return g?{value:p,done:g}:{value:l?[d(p[0]),d(p[1])]:d(p),done:g}},[Symbol.iterator](){return this}}}}function Ne(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ti(){const e={get(o){return Nt(this,o)},get size(){return Ht(this)},has:$t,add:Os,set:Ms,delete:Is,clear:Rs,forEach:Vt(!1,!1)},t={get(o){return Nt(this,o,!1,!0)},get size(){return Ht(this)},has:$t,add:Os,set:Ms,delete:Is,clear:Rs,forEach:Vt(!1,!0)},n={get(o){return Nt(this,o,!0)},get size(){return Ht(this,!0)},has(o){return $t.call(this,o,!0)},add:Ne("add"),set:Ne("set"),delete:Ne("delete"),clear:Ne("clear"),forEach:Vt(!0,!1)},s={get(o){return Nt(this,o,!0,!0)},get size(){return Ht(this,!0)},has(o){return $t.call(this,o,!0)},add:Ne("add"),set:Ne("set"),delete:Ne("delete"),clear:Ne("clear"),forEach:Vt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=jt(o,!1,!1),n[o]=jt(o,!0,!1),t[o]=jt(o,!1,!0),s[o]=jt(o,!0,!0)}),[e,n,t,s]}const[ni,si,ri,oi]=ti();function an(e,t){const n=t?e?oi:ri:e?si:ni;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(H(n,r)&&r in s?n:s,r,o)}const ii={get:an(!1,!1)},li={get:an(!1,!0)},ci={get:an(!0,!1)},fi={get:an(!0,!0)},Pr=new WeakMap,Or=new WeakMap,Mr=new WeakMap,Ir=new WeakMap;function ui(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ai(e){return e.__v_skip||!Object.isExtensible(e)?0:ui(Lo(e))}function is(e){return ut(e)?e:dn(e,!1,Xo,ii,Pr)}function di(e){return dn(e,!1,Qo,li,Or)}function Rr(e){return dn(e,!0,Zo,ci,Mr)}function hc(e){return dn(e,!0,ei,fi,Ir)}function dn(e,t,n,s,r){if(!k(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=ai(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return r.set(e,l),l}function ct(e){return ut(e)?ct(e.__v_raw):!!(e&&e.__v_isReactive)}function ut(e){return!!(e&&e.__v_isReadonly)}function zt(e){return!!(e&&e.__v_isShallow)}function Lr(e){return ct(e)||ut(e)}function V(e){const t=e&&e.__v_raw;return t?V(t):e}function Fr(e){return Object.isExtensible(e)&&qt(e,"__v_skip",!0),e}const wt=e=>k(e)?is(e):e,ls=e=>k(e)?Rr(e):e;class Nr{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ns(()=>t(this._value),()=>yt(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=V(this);return(!t._cacheable||t.effect.dirty)&&Me(t._value,t._value=t.effect.run())&&yt(t,4),cs(t),t.effect._dirtyLevel>=2&&yt(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function hi(e,t,n=!1){let s,r;const o=L(e);return o?(s=e,r=Ce):(s=e.get,r=e.set),new Nr(s,r,o||!r,n)}function cs(e){var t;Be&&et&&(e=V(e),xr(et,(t=e.dep)!=null?t:e.dep=Er(()=>e.dep=void 0,e instanceof Nr?e:void 0)))}function yt(e,t=4,n){e=V(e);const s=e.dep;s&&vr(s,t)}function he(e){return!!(e&&e.__v_isRef===!0)}function pc(e){return $r(e,!1)}function gc(e){return $r(e,!0)}function $r(e,t){return he(e)?e:new pi(e,t)}class pi{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:V(t),this._value=n?t:wt(t)}get value(){return cs(this),this._value}set value(t){const n=this.__v_isShallow||zt(t)||ut(t);t=n?t:V(t),Me(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:wt(t),yt(this,4))}}function gi(e){return he(e)?e.value:e}const _i={get:(e,t,n)=>gi(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return he(r)&&!he(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Hr(e){return ct(e)?e:new Proxy(e,_i)}class mi{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>cs(this),()=>yt(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function yi(e){return new mi(e)}/**
10
+ * @vue/runtime-core v3.4.19
11
11
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
12
  * @license MIT
13
- **/function Ue(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){dn(o,t,n)}return r}function xe(e,t,n,s){if(F(e)){const o=Ue(e,t,n,s);return o&&hr(o)&&o.catch(i=>{dn(i,t,n)}),o}const r=[];for(let o=0;o<e.length;o++)r.push(xe(e[o],t,n,s));return r}function dn(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const a=o.ec;if(a){for(let d=0;d<a.length;d++)if(a[d](e,i,l)===!1)return}o=o.parent}const f=t.appContext.config.errorHandler;if(f){Ue(f,null,10,[e,i,l]);return}}Ci(e,n,r,s)}function Ci(e,t,n,s=!0){console.error(e)}let wt=!1,Kn=!1;const le=[];let Oe=0;const ft=[];let Ve=null,Xe=0;const jr=Promise.resolve();let cs=null;function fs(e){const t=cs||jr;return e?t.then(this?e.bind(this):e):t}function xi(e){let t=Oe+1,n=le.length;for(;t<n;){const s=t+n>>>1,r=le[s],o=Tt(r);o<e||o===e&&r.pre?t=s+1:n=s}return t}function us(e){(!le.length||!le.includes(e,wt&&e.allowRecurse?Oe+1:Oe))&&(e.id==null?le.push(e):le.splice(xi(e.id),0,e),Dr())}function Dr(){!wt&&!Kn&&(Kn=!0,cs=jr.then(Br))}function vi(e){const t=le.indexOf(e);t>Oe&&le.splice(t,1)}function Ei(e){T(e)?ft.push(...e):(!Ve||!Ve.includes(e,e.allowRecurse?Xe+1:Xe))&&ft.push(e),Dr()}function Fs(e,t,n=wt?Oe+1:0){for(;n<le.length;n++){const s=le[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;le.splice(n,1),n--,s()}}}function Kr(e){if(ft.length){const t=[...new Set(ft)].sort((n,s)=>Tt(n)-Tt(s));if(ft.length=0,Ve){Ve.push(...t);return}for(Ve=t,Xe=0;Xe<Ve.length;Xe++)Ve[Xe]();Ve=null,Xe=0}}const Tt=e=>e.id==null?1/0:e.id,wi=(e,t)=>{const n=Tt(e)-Tt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Br(e){Kn=!1,wt=!0,le.sort(wi);try{for(Oe=0;Oe<le.length;Oe++){const t=le[Oe];t&&t.active!==!1&&Ue(t,null,14)}}finally{Oe=0,le.length=0,Kr(),wt=!1,cs=null,(le.length||ft.length)&&Br()}}function Ti(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||z;let r=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in s){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:p,trim:g}=s[d]||z;g&&(r=n.map(w=>ee(w)?w.trim():w)),p&&(r=n.map(es))}let l,f=s[l=Bt(t)]||s[l=Bt(ae(t))];!f&&o&&(f=s[l=Bt(be(t))]),f&&xe(f,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,xe(a,e,6,r)}}function Ur(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!F(e)){const f=a=>{const d=Ur(a,t,!0);d&&(l=!0,Q(i,d))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!o&&!l?(G(e)&&s.set(e,null),null):(T(o)?o.forEach(f=>i[f]=null):Q(i,o),G(e)&&s.set(e,i),i)}function hn(e,t){return!e||!nn(t)?!1:(t=t.slice(2).replace(/Once$/,""),H(e,t[0].toLowerCase()+t.slice(1))||H(e,be(t))||H(e,t))}let se=null,Wr=null;function zt(e){const t=se;return se=e,Wr=e&&e.type.__scopeId||null,t}function Ai(e,t=se,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Gs(-1);const o=zt(t);let i;try{i=e(...r)}finally{zt(o),s._d&&Gs(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function An(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:l,attrs:f,emit:a,render:d,renderCache:p,data:g,setupState:w,ctx:N,inheritAttrs:O}=e;let j,D;const ne=zt(e);try{if(n.shapeFlag&4){const K=r||s,k=K;j=Pe(d.call(k,K,p,o,w,g,N)),D=f}else{const K=t;j=Pe(K.length>1?K(o,{attrs:f,slots:l,emit:a}):K(o,null)),D=t.props?f:Si(f)}}catch(K){xt.length=0,dn(K,e,1),j=ce(ve)}let $=j;if(D&&O!==!1){const K=Object.keys(D),{shapeFlag:k}=$;K.length&&k&7&&(i&&K.some(Xn)&&(D=Pi(D,i)),$=ke($,D))}return n.dirs&&($=ke($),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&($.transition=n.transition),j=$,zt(ne),j}const Si=e=>{let t;for(const n in e)(n==="class"||n==="style"||nn(n))&&((t||(t={}))[n]=e[n]);return t},Pi=(e,t)=>{const n={};for(const s in e)(!Xn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Oi(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:f}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return s?Ns(s,i,a):!!i;if(f&8){const d=t.dynamicProps;for(let p=0;p<d.length;p++){const g=d[p];if(i[g]!==s[g]&&!hn(a,g))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?Ns(s,i,a):!0:!!i;return!1}function Ns(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!hn(n,o))return!0}return!1}function Mi({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const as="components";function _c(e,t){return Gr(as,e,!0,t)||e}const kr=Symbol.for("v-ndc");function mc(e){return ee(e)?Gr(as,e,!1)||e:e||kr}function Gr(e,t,n=!0,s=!1){const r=se||ie;if(r){const o=r.type;if(e===as){const l=Pl(o,!1);if(l&&(l===t||l===ae(t)||l===on(ae(t))))return o}const i=Ls(r[e]||o[e],t)||Ls(r.appContext[e],t);return!i&&s?o:i}}function Ls(e,t){return e&&(e[t]||e[ae(t)]||e[on(ae(t))])}const Ii=e=>e.__isSuspense;function Ri(e,t){t&&t.pendingBranch?T(e)?t.effects.push(...e):t.effects.push(e):Ei(e)}const Fi=Symbol.for("v-scx"),Ni=()=>Wt(Fi);function yc(e,t){return pn(e,null,t)}function Li(e,t){return pn(e,null,{flush:"sync"})}const Vt={};function Sn(e,t,n){return pn(e,t,n)}function pn(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:l}=z){if(t&&o){const I=t;t=(...J)=>{I(...J),k()}}const f=ie,a=I=>s===!0?I:Qe(I,s===!1?1:void 0);let d,p=!1,g=!1;if(he(e)?(d=()=>e.value,p=qt(e)):ct(e)?(d=()=>a(e),p=!0):T(e)?(g=!0,p=e.some(I=>ct(I)||qt(I)),d=()=>e.map(I=>{if(he(I))return I.value;if(ct(I))return a(I);if(F(I))return Ue(I,f,2)})):F(e)?t?d=()=>Ue(e,f,2):d=()=>(w&&w(),xe(e,f,3,[N])):d=Ce,t&&s){const I=d;d=()=>Qe(I())}let w,N=I=>{w=$.onStop=()=>{Ue(I,f,4),w=$.onStop=void 0}},O;if(Cn)if(N=Ce,t?n&&xe(t,f,3,[d(),g?[]:void 0,N]):d(),r==="sync"){const I=Ni();O=I.__watcherHandles||(I.__watcherHandles=[])}else return Ce;let j=g?new Array(e.length).fill(Vt):Vt;const D=()=>{if(!(!$.active||!$.dirty))if(t){const I=$.run();(s||p||(g?I.some((J,M)=>Me(J,j[M])):Me(I,j)))&&(w&&w(),xe(t,f,3,[I,j===Vt?void 0:g&&j[0]===Vt?[]:j,N]),j=I)}else $.run()};D.allowRecurse=!!t;let ne;r==="sync"?ne=D:r==="post"?ne=()=>ue(D,f&&f.suspense):(D.pre=!0,f&&(D.id=f.uid),ne=()=>us(D));const $=new ts(d,Ce,ne),K=qo(),k=()=>{$.stop(),K&&Zn(K.effects,$)};return t?n?D():j=$.run():r==="post"?ue($.run.bind($),f&&f.suspense):$.run(),O&&O.push(k),k}function $i(e,t,n){const s=this.proxy,r=ee(e)?e.includes(".")?qr(s,e):()=>s[e]:e.bind(s,s);let o;F(t)?o=t:(o=t.handler,n=t);const i=Mt(this),l=pn(r,o.bind(s),n);return i(),l}function qr(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function Qe(e,t,n=0,s){if(!G(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),he(e))Qe(e.value,t,n,s);else if(T(e))for(let r=0;r<e.length;r++)Qe(e[r],t,n,s);else if(sn(e)||lt(e))e.forEach(r=>{Qe(r,t,n,s)});else if(gr(e))for(const r in e)Qe(e[r],t,n,s);return e}function bc(e,t){if(se===null)return e;const n=xn(se)||se.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,l,f=z]=t[r];o&&(F(o)&&(o={mounted:o,updated:o}),o.deep&&Qe(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:f}))}return e}function ze(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];o&&(l.oldValue=o[i].value);let f=l.dir[s];f&&(nt(),xe(f,n,8,[e.el,l,e,t]),st())}}const je=Symbol("_leaveCb"),jt=Symbol("_enterCb");function zr(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Zr(()=>{e.isMounted=!0}),eo(()=>{e.isUnmounting=!0}),e}const ye=[Function,Array],Jr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ye,onEnter:ye,onAfterEnter:ye,onEnterCancelled:ye,onBeforeLeave:ye,onLeave:ye,onAfterLeave:ye,onLeaveCancelled:ye,onBeforeAppear:ye,onAppear:ye,onAfterAppear:ye,onAppearCancelled:ye},Hi={name:"BaseTransition",props:Jr,setup(e,{slots:t}){const n=bn(),s=zr();let r;return()=>{const o=t.default&&ds(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const O of o)if(O.type!==ve){i=O;break}}const l=V(e),{mode:f}=l;if(s.isLeaving)return Pn(i);const a=$s(i);if(!a)return Pn(i);const d=At(a,l,s,n);St(a,d);const p=n.subTree,g=p&&$s(p);let w=!1;const{getTransitionKey:N}=a.type;if(N){const O=N();r===void 0?r=O:O!==r&&(r=O,w=!0)}if(g&&g.type!==ve&&(!Ze(a,g)||w)){const O=At(g,l,s,n);if(St(g,O),f==="out-in")return s.isLeaving=!0,O.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},Pn(i);f==="in-out"&&a.type!==ve&&(O.delayLeave=(j,D,ne)=>{const $=Yr(s,g);$[String(g.key)]=g,j[je]=()=>{D(),j[je]=void 0,delete d.delayedLeave},d.delayedLeave=ne})}return i}}},Vi=Hi;function Yr(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function At(e,t,n,s){const{appear:r,mode:o,persisted:i=!1,onBeforeEnter:l,onEnter:f,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:p,onLeave:g,onAfterLeave:w,onLeaveCancelled:N,onBeforeAppear:O,onAppear:j,onAfterAppear:D,onAppearCancelled:ne}=t,$=String(e.key),K=Yr(n,e),k=(M,U)=>{M&&xe(M,s,9,U)},I=(M,U)=>{const B=U[1];k(M,U),T(M)?M.every(te=>te.length<=1)&&B():M.length<=1&&B()},J={mode:o,persisted:i,beforeEnter(M){let U=l;if(!n.isMounted)if(r)U=O||l;else return;M[je]&&M[je](!0);const B=K[$];B&&Ze(e,B)&&B.el[je]&&B.el[je](),k(U,[M])},enter(M){let U=f,B=a,te=d;if(!n.isMounted)if(r)U=j||f,B=D||a,te=ne||d;else return;let A=!1;const X=M[jt]=pe=>{A||(A=!0,pe?k(te,[M]):k(B,[M]),J.delayedLeave&&J.delayedLeave(),M[jt]=void 0)};U?I(U,[M,X]):X()},leave(M,U){const B=String(e.key);if(M[jt]&&M[jt](!0),n.isUnmounting)return U();k(p,[M]);let te=!1;const A=M[je]=X=>{te||(te=!0,U(),X?k(N,[M]):k(w,[M]),M[je]=void 0,K[B]===e&&delete K[B])};K[B]=e,g?I(g,[M,A]):A()},clone(M){return At(M,t,n,s)}};return J}function Pn(e){if(gn(e))return e=ke(e),e.children=null,e}function $s(e){return gn(e)?e.children?e.children[0]:void 0:e}function St(e,t){e.shapeFlag&6&&e.component?St(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ds(e,t=!1,n){let s=[],r=0;for(let o=0;o<e.length;o++){let i=e[o];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===me?(i.patchFlag&128&&r++,s=s.concat(ds(i.children,t,l))):(t||i.type!==ve)&&s.push(l!=null?ke(i,{key:l}):i)}if(r>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function ji(e,t){return F(e)?Q({name:e.name},t,{setup:e}):e}const yt=e=>!!e.type.__asyncLoader,gn=e=>e.type.__isKeepAlive;function Di(e,t){Xr(e,"a",t)}function Ki(e,t){Xr(e,"da",t)}function Xr(e,t,n=ie){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(_n(t,s,n),n){let r=n.parent;for(;r&&r.parent;)gn(r.parent.vnode)&&Bi(s,t,n,r),r=r.parent}}function Bi(e,t,n,s){const r=_n(t,e,s,!0);to(()=>{Zn(s[t],r)},n)}function _n(e,t,n=ie,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;nt();const l=Mt(n),f=xe(t,n,e,i);return l(),st(),f});return s?r.unshift(o):r.push(o),o}}const Ne=e=>(t,n=ie)=>(!Cn||e==="sp")&&_n(e,(...s)=>t(...s),n),Ui=Ne("bm"),Zr=Ne("m"),Wi=Ne("bu"),Qr=Ne("u"),eo=Ne("bum"),to=Ne("um"),ki=Ne("sp"),Gi=Ne("rtg"),qi=Ne("rtc");function zi(e,t=ie){_n("ec",e,t)}function Cc(e,t,n,s){let r;const o=n&&n[s];if(T(e)||ee(e)){r=new Array(e.length);for(let i=0,l=e.length;i<l;i++)r[i]=t(e[i],i,void 0,o&&o[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,o&&o[i])}else if(G(e))if(e[Symbol.iterator])r=Array.from(e,(i,l)=>t(i,l,void 0,o&&o[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,f=i.length;l<f;l++){const a=i[l];r[l]=t(e[a],a,l,o&&o[l])}}else r=[];return n&&(n[s]=r),r}function xc(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(T(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.key?(...r)=>{const o=s.fn(...r);return o&&(o.key=s.key),o}:s.fn)}return e}function vc(e,t,n={},s,r){if(se.isCE||se.parent&&yt(se.parent)&&se.parent.isCE)return t!=="default"&&(n.name=t),ce("slot",n,s&&s());let o=e[t];o&&o._c&&(o._d=!1),ho();const i=o&&no(o(n)),l=go(me,{key:n.key||i&&i.key||`_${t}`},i||(s?s():[]),i&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function no(e){return e.some(t=>Zt(t)?!(t.type===ve||t.type===me&&!no(t.children)):!0)?e:null}function Ec(e,t){const n={};for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:Bt(s)]=e[s];return n}const Bn=e=>e?yo(e)?xn(e)||e.proxy:Bn(e.parent):null,bt=Q(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bn(e.parent),$root:e=>Bn(e.root),$emit:e=>e.emit,$options:e=>hs(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,us(e.update)}),$nextTick:e=>e.n||(e.n=fs.bind(e.proxy)),$watch:e=>$i.bind(e)}),On=(e,t)=>e!==z&&!e.__isScriptSetup&&H(e,t),Ji={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:f}=e;let a;if(t[0]!=="$"){const w=i[t];if(w!==void 0)switch(w){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(On(s,t))return i[t]=1,s[t];if(r!==z&&H(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&H(a,t))return i[t]=3,o[t];if(n!==z&&H(n,t))return i[t]=4,n[t];Un&&(i[t]=0)}}const d=bt[t];let p,g;if(d)return t==="$attrs"&&de(e,"get",t),d(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==z&&H(n,t))return i[t]=4,n[t];if(g=f.config.globalProperties,H(g,t))return g[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return On(r,t)?(r[t]=n,!0):s!==z&&H(s,t)?(s[t]=n,!0):H(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==z&&H(e,i)||On(t,i)||(l=o[0])&&H(l,i)||H(s,i)||H(bt,i)||H(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:H(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function wc(){return Yi().attrs}function Yi(){const e=bn();return e.setupContext||(e.setupContext=Co(e))}function Jt(e){return T(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Tc(e,t){return!e||!t?e||t:T(e)&&T(t)?e.concat(t):Q({},Jt(e),Jt(t))}let Un=!0;function Xi(e){const t=hs(e),n=e.proxy,s=e.ctx;Un=!1,t.beforeCreate&&Hs(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:f,inject:a,created:d,beforeMount:p,mounted:g,beforeUpdate:w,updated:N,activated:O,deactivated:j,beforeDestroy:D,beforeUnmount:ne,destroyed:$,unmounted:K,render:k,renderTracked:I,renderTriggered:J,errorCaptured:M,serverPrefetch:U,expose:B,inheritAttrs:te,components:A,directives:X,filters:pe}=t;if(a&&Zi(a,s,null),i)for(const Z in i){const q=i[Z];F(q)&&(s[Z]=q.bind(n))}if(r){const Z=r.call(n,n);G(Z)&&(e.data=os(Z))}if(Un=!0,o)for(const Z in o){const q=o[Z],Ge=F(q)?q.bind(n,n):F(q.get)?q.get.bind(n,n):Ce,It=!F(q)&&F(q.set)?q.set.bind(n):Ce,qe=Ml({get:Ge,set:It});Object.defineProperty(s,Z,{enumerable:!0,configurable:!0,get:()=>qe.value,set:Te=>qe.value=Te})}if(l)for(const Z in l)so(l[Z],s,n,Z);if(f){const Z=F(f)?f.call(n):f;Reflect.ownKeys(Z).forEach(q=>{rl(q,Z[q])})}d&&Hs(d,e,"c");function re(Z,q){T(q)?q.forEach(Ge=>Z(Ge.bind(n))):q&&Z(q.bind(n))}if(re(Ui,p),re(Zr,g),re(Wi,w),re(Qr,N),re(Di,O),re(Ki,j),re(zi,M),re(qi,I),re(Gi,J),re(eo,ne),re(to,K),re(ki,U),T(B))if(B.length){const Z=e.exposed||(e.exposed={});B.forEach(q=>{Object.defineProperty(Z,q,{get:()=>n[q],set:Ge=>n[q]=Ge})})}else e.exposed||(e.exposed={});k&&e.render===Ce&&(e.render=k),te!=null&&(e.inheritAttrs=te),A&&(e.components=A),X&&(e.directives=X)}function Zi(e,t,n=Ce){T(e)&&(e=Wn(e));for(const s in e){const r=e[s];let o;G(r)?"default"in r?o=Wt(r.from||s,r.default,!0):o=Wt(r.from||s):o=Wt(r),he(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Hs(e,t,n){xe(T(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function so(e,t,n,s){const r=s.includes(".")?qr(n,s):()=>n[s];if(ee(e)){const o=t[e];F(o)&&Sn(r,o)}else if(F(e))Sn(r,e.bind(n));else if(G(e))if(T(e))e.forEach(o=>so(o,t,n,s));else{const o=F(e.handler)?e.handler.bind(n):t[e.handler];F(o)&&Sn(r,o,e)}}function hs(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let f;return l?f=l:!r.length&&!n&&!s?f=t:(f={},r.length&&r.forEach(a=>Yt(f,a,i,!0)),Yt(f,t,i)),G(t)&&o.set(t,f),f}function Yt(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Yt(e,o,n,!0),r&&r.forEach(i=>Yt(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Qi[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Qi={data:Vs,props:js,emits:js,methods:_t,computed:_t,beforeCreate:fe,created:fe,beforeMount:fe,mounted:fe,beforeUpdate:fe,updated:fe,beforeDestroy:fe,beforeUnmount:fe,destroyed:fe,unmounted:fe,activated:fe,deactivated:fe,errorCaptured:fe,serverPrefetch:fe,components:_t,directives:_t,watch:tl,provide:Vs,inject:el};function Vs(e,t){return t?e?function(){return Q(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function el(e,t){return _t(Wn(e),Wn(t))}function Wn(e){if(T(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function fe(e,t){return e?[...new Set([].concat(e,t))]:t}function _t(e,t){return e?Q(Object.create(null),e,t):t}function js(e,t){return e?T(e)&&T(t)?[...new Set([...e,...t])]:Q(Object.create(null),Jt(e),Jt(t??{})):t}function tl(e,t){if(!e)return t;if(!t)return e;const n=Q(Object.create(null),e);for(const s in t)n[s]=fe(e[s],t[s]);return n}function ro(){return{app:null,config:{isNativeTag:Ro,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let nl=0;function sl(e,t){return function(s,r=null){F(s)||(s=Q({},s)),r!=null&&!G(r)&&(r=null);const o=ro(),i=new WeakSet;let l=!1;const f=o.app={_uid:nl++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Rl,get config(){return o.config},set config(a){},use(a,...d){return i.has(a)||(a&&F(a.install)?(i.add(a),a.install(f,...d)):F(a)&&(i.add(a),a(f,...d))),f},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),f},component(a,d){return d?(o.components[a]=d,f):o.components[a]},directive(a,d){return d?(o.directives[a]=d,f):o.directives[a]},mount(a,d,p){if(!l){const g=ce(s,r);return g.appContext=o,p===!0?p="svg":p===!1&&(p=void 0),d&&t?t(g,a):e(g,a,p),l=!0,f._container=a,a.__vue_app__=f,xn(g.component)||g.component.proxy}},unmount(){l&&(e(null,f._container),delete f._container.__vue_app__)},provide(a,d){return o.provides[a]=d,f},runWithContext(a){Xt=f;try{return a()}finally{Xt=null}}};return f}}let Xt=null;function rl(e,t){if(ie){let n=ie.provides;const s=ie.parent&&ie.parent.provides;s===n&&(n=ie.provides=Object.create(s)),n[e]=t}}function Wt(e,t,n=!1){const s=ie||se;if(s||Xt){const r=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:Xt._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&F(t)?t.call(s&&s.proxy):t}}function ol(e,t,n,s=!1){const r={},o={};Gt(o,yn,1),e.propsDefaults=Object.create(null),oo(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:hi(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function il(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=V(r),[f]=e.propsOptions;let a=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let p=0;p<d.length;p++){let g=d[p];if(hn(e.emitsOptions,g))continue;const w=t[g];if(f)if(H(o,g))w!==o[g]&&(o[g]=w,a=!0);else{const N=ae(g);r[N]=kn(f,l,N,w,e,!1)}else w!==o[g]&&(o[g]=w,a=!0)}}}else{oo(e,t,r,o)&&(a=!0);let d;for(const p in l)(!t||!H(t,p)&&((d=be(p))===p||!H(t,d)))&&(f?n&&(n[p]!==void 0||n[d]!==void 0)&&(r[p]=kn(f,l,p,void 0,e,!0)):delete r[p]);if(o!==l)for(const p in o)(!t||!H(t,p))&&(delete o[p],a=!0)}a&&Fe(e,"set","$attrs")}function oo(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,l;if(t)for(let f in t){if(Kt(f))continue;const a=t[f];let d;r&&H(r,d=ae(f))?!o||!o.includes(d)?n[d]=a:(l||(l={}))[d]=a:hn(e.emitsOptions,f)||(!(f in s)||a!==s[f])&&(s[f]=a,i=!0)}if(o){const f=V(n),a=l||z;for(let d=0;d<o.length;d++){const p=o[d];n[p]=kn(r,f,p,a[p],e,!H(a,p))}}return i}function kn(e,t,n,s,r,o){const i=e[n];if(i!=null){const l=H(i,"default");if(l&&s===void 0){const f=i.default;if(i.type!==Function&&!i.skipFactory&&F(f)){const{propsDefaults:a}=r;if(n in a)s=a[n];else{const d=Mt(r);s=a[n]=f.call(null,t),d()}}else s=f}i[0]&&(o&&!l?s=!1:i[1]&&(s===""||s===be(n))&&(s=!0))}return s}function io(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},l=[];let f=!1;if(!F(e)){const d=p=>{f=!0;const[g,w]=io(p,t,!0);Q(i,g),w&&l.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!f)return G(e)&&s.set(e,it),it;if(T(o))for(let d=0;d<o.length;d++){const p=ae(o[d]);Ds(p)&&(i[p]=z)}else if(o)for(const d in o){const p=ae(d);if(Ds(p)){const g=o[d],w=i[p]=T(g)||F(g)?{type:g}:Q({},g);if(w){const N=Us(Boolean,w.type),O=Us(String,w.type);w[0]=N>-1,w[1]=O<0||N<O,(N>-1||H(w,"default"))&&l.push(p)}}}const a=[i,l];return G(e)&&s.set(e,a),a}function Ds(e){return e[0]!=="$"}function Ks(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Bs(e,t){return Ks(e)===Ks(t)}function Us(e,t){return T(t)?t.findIndex(n=>Bs(n,e)):F(t)&&Bs(t,e)?0:-1}const lo=e=>e[0]==="_"||e==="$stable",ps=e=>T(e)?e.map(Pe):[Pe(e)],ll=(e,t,n)=>{if(t._n)return t;const s=Ai((...r)=>ps(t(...r)),n);return s._c=!1,s},co=(e,t,n)=>{const s=e._ctx;for(const r in e){if(lo(r))continue;const o=e[r];if(F(o))t[r]=ll(r,o,s);else if(o!=null){const i=ps(o);t[r]=()=>i}}},fo=(e,t)=>{const n=ps(t);e.slots.default=()=>n},cl=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=V(t),Gt(t,"_",n)):co(t,e.slots={})}else e.slots={},t&&fo(e,t);Gt(e.slots,yn,1)},fl=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=z;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(Q(r,t),!n&&l===1&&delete r._):(o=!t.$stable,co(t,r)),i=t}else t&&(fo(e,t),i={default:1});if(o)for(const l in r)!lo(l)&&i[l]==null&&delete r[l]};function Gn(e,t,n,s,r=!1){if(T(e)){e.forEach((g,w)=>Gn(g,t&&(T(t)?t[w]:t),n,s,r));return}if(yt(s)&&!r)return;const o=s.shapeFlag&4?xn(s.component)||s.component.proxy:s.el,i=r?null:o,{i:l,r:f}=e,a=t&&t.r,d=l.refs===z?l.refs={}:l.refs,p=l.setupState;if(a!=null&&a!==f&&(ee(a)?(d[a]=null,H(p,a)&&(p[a]=null)):he(a)&&(a.value=null)),F(f))Ue(f,l,12,[i,d]);else{const g=ee(f),w=he(f),N=e.f;if(g||w){const O=()=>{if(N){const j=g?H(p,f)?p[f]:d[f]:f.value;r?T(j)&&Zn(j,o):T(j)?j.includes(o)||j.push(o):g?(d[f]=[o],H(p,f)&&(p[f]=d[f])):(f.value=[o],e.k&&(d[e.k]=f.value))}else g?(d[f]=i,H(p,f)&&(p[f]=i)):w&&(f.value=i,e.k&&(d[e.k]=i))};r||N?O():(O.id=-1,ue(O,n))}}}const ue=Ri;function ul(e){return al(e)}function al(e,t){const n=_r();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:f,setText:a,setElementText:d,parentNode:p,nextSibling:g,setScopeId:w=Ce,insertStaticContent:N}=e,O=(c,u,h,_=null,m=null,C=null,v=void 0,b=null,x=!!u.dynamicChildren)=>{if(c===u)return;c&&!Ze(c,u)&&(_=Rt(c),Te(c,m,C,!0),c=null),u.patchFlag===-2&&(x=!1,u.dynamicChildren=null);const{type:y,ref:E,shapeFlag:P}=u;switch(y){case mn:j(c,u,h,_);break;case ve:D(c,u,h,_);break;case In:c==null&&ne(u,h,_,v);break;case me:A(c,u,h,_,m,C,v,b,x);break;default:P&1?k(c,u,h,_,m,C,v,b,x):P&6?X(c,u,h,_,m,C,v,b,x):(P&64||P&128)&&y.process(c,u,h,_,m,C,v,b,x,rt)}E!=null&&m&&Gn(E,c&&c.ref,C,u||c,!u)},j=(c,u,h,_)=>{if(c==null)s(u.el=l(u.children),h,_);else{const m=u.el=c.el;u.children!==c.children&&a(m,u.children)}},D=(c,u,h,_)=>{c==null?s(u.el=f(u.children||""),h,_):u.el=c.el},ne=(c,u,h,_)=>{[c.el,c.anchor]=N(c.children,u,h,_,c.el,c.anchor)},$=({el:c,anchor:u},h,_)=>{let m;for(;c&&c!==u;)m=g(c),s(c,h,_),c=m;s(u,h,_)},K=({el:c,anchor:u})=>{let h;for(;c&&c!==u;)h=g(c),r(c),c=h;r(u)},k=(c,u,h,_,m,C,v,b,x)=>{u.type==="svg"?v="svg":u.type==="math"&&(v="mathml"),c==null?I(u,h,_,m,C,v,b,x):U(c,u,m,C,v,b,x)},I=(c,u,h,_,m,C,v,b)=>{let x,y;const{props:E,shapeFlag:P,transition:S,dirs:R}=c;if(x=c.el=i(c.type,C,E&&E.is,E),P&8?d(x,c.children):P&16&&M(c.children,x,null,_,m,Mn(c,C),v,b),R&&ze(c,null,_,"created"),J(x,c,c.scopeId,v,_),E){for(const W in E)W!=="value"&&!Kt(W)&&o(x,W,null,E[W],C,c.children,_,m,Ie);"value"in E&&o(x,"value",null,E.value,C),(y=E.onVnodeBeforeMount)&&Se(y,_,c)}R&&ze(c,null,_,"beforeMount");const L=dl(m,S);L&&S.beforeEnter(x),s(x,u,h),((y=E&&E.onVnodeMounted)||L||R)&&ue(()=>{y&&Se(y,_,c),L&&S.enter(x),R&&ze(c,null,_,"mounted")},m)},J=(c,u,h,_,m)=>{if(h&&w(c,h),_)for(let C=0;C<_.length;C++)w(c,_[C]);if(m){let C=m.subTree;if(u===C){const v=m.vnode;J(c,v,v.scopeId,v.slotScopeIds,m.parent)}}},M=(c,u,h,_,m,C,v,b,x=0)=>{for(let y=x;y<c.length;y++){const E=c[y]=b?De(c[y]):Pe(c[y]);O(null,E,u,h,_,m,C,v,b)}},U=(c,u,h,_,m,C,v)=>{const b=u.el=c.el;let{patchFlag:x,dynamicChildren:y,dirs:E}=u;x|=c.patchFlag&16;const P=c.props||z,S=u.props||z;let R;if(h&&Je(h,!1),(R=S.onVnodeBeforeUpdate)&&Se(R,h,u,c),E&&ze(u,c,h,"beforeUpdate"),h&&Je(h,!0),y?B(c.dynamicChildren,y,b,h,_,Mn(u,m),C):v||q(c,u,b,null,h,_,Mn(u,m),C,!1),x>0){if(x&16)te(b,u,P,S,h,_,m);else if(x&2&&P.class!==S.class&&o(b,"class",null,S.class,m),x&4&&o(b,"style",P.style,S.style,m),x&8){const L=u.dynamicProps;for(let W=0;W<L.length;W++){const Y=L[W],oe=P[Y],Ee=S[Y];(Ee!==oe||Y==="value")&&o(b,Y,oe,Ee,m,c.children,h,_,Ie)}}x&1&&c.children!==u.children&&d(b,u.children)}else!v&&y==null&&te(b,u,P,S,h,_,m);((R=S.onVnodeUpdated)||E)&&ue(()=>{R&&Se(R,h,u,c),E&&ze(u,c,h,"updated")},_)},B=(c,u,h,_,m,C,v)=>{for(let b=0;b<u.length;b++){const x=c[b],y=u[b],E=x.el&&(x.type===me||!Ze(x,y)||x.shapeFlag&70)?p(x.el):h;O(x,y,E,null,_,m,C,v,!0)}},te=(c,u,h,_,m,C,v)=>{if(h!==_){if(h!==z)for(const b in h)!Kt(b)&&!(b in _)&&o(c,b,h[b],null,v,u.children,m,C,Ie);for(const b in _){if(Kt(b))continue;const x=_[b],y=h[b];x!==y&&b!=="value"&&o(c,b,y,x,v,u.children,m,C,Ie)}"value"in _&&o(c,"value",h.value,_.value,v)}},A=(c,u,h,_,m,C,v,b,x)=>{const y=u.el=c?c.el:l(""),E=u.anchor=c?c.anchor:l("");let{patchFlag:P,dynamicChildren:S,slotScopeIds:R}=u;R&&(b=b?b.concat(R):R),c==null?(s(y,h,_),s(E,h,_),M(u.children||[],h,E,m,C,v,b,x)):P>0&&P&64&&S&&c.dynamicChildren?(B(c.dynamicChildren,S,h,m,C,v,b),(u.key!=null||m&&u===m.subTree)&&gs(c,u,!0)):q(c,u,h,E,m,C,v,b,x)},X=(c,u,h,_,m,C,v,b,x)=>{u.slotScopeIds=b,c==null?u.shapeFlag&512?m.ctx.activate(u,h,_,v,x):pe(u,h,_,m,C,v,x):dt(c,u,x)},pe=(c,u,h,_,m,C,v)=>{const b=c.component=wl(c,_,m);if(gn(c)&&(b.ctx.renderer=rt),Tl(b),b.asyncDep){if(m&&m.registerDep(b,re),!c.el){const x=b.subTree=ce(ve);D(null,x,u,h)}}else re(b,c,u,h,m,C,v)},dt=(c,u,h)=>{const _=u.component=c.component;if(Oi(c,u,h))if(_.asyncDep&&!_.asyncResolved){Z(_,u,h);return}else _.next=u,vi(_.update),_.effect.dirty=!0,_.update();else u.el=c.el,_.vnode=u},re=(c,u,h,_,m,C,v)=>{const b=()=>{if(c.isMounted){let{next:E,bu:P,u:S,parent:R,vnode:L}=c;{const ot=uo(c);if(ot){E&&(E.el=L.el,Z(c,E,v)),ot.asyncDep.then(()=>{c.isUnmounted||b()});return}}let W=E,Y;Je(c,!1),E?(E.el=L.el,Z(c,E,v)):E=L,P&&Ut(P),(Y=E.props&&E.props.onVnodeBeforeUpdate)&&Se(Y,R,E,L),Je(c,!0);const oe=An(c),Ee=c.subTree;c.subTree=oe,O(Ee,oe,p(Ee.el),Rt(Ee),c,m,C),E.el=oe.el,W===null&&Mi(c,oe.el),S&&ue(S,m),(Y=E.props&&E.props.onVnodeUpdated)&&ue(()=>Se(Y,R,E,L),m)}else{let E;const{el:P,props:S}=u,{bm:R,m:L,parent:W}=c,Y=yt(u);if(Je(c,!1),R&&Ut(R),!Y&&(E=S&&S.onVnodeBeforeMount)&&Se(E,W,u),Je(c,!0),P&&wn){const oe=()=>{c.subTree=An(c),wn(P,c.subTree,c,m,null)};Y?u.type.__asyncLoader().then(()=>!c.isUnmounted&&oe()):oe()}else{const oe=c.subTree=An(c);O(null,oe,h,_,c,m,C),u.el=oe.el}if(L&&ue(L,m),!Y&&(E=S&&S.onVnodeMounted)){const oe=u;ue(()=>Se(E,W,oe),m)}(u.shapeFlag&256||W&&yt(W.vnode)&&W.vnode.shapeFlag&256)&&c.a&&ue(c.a,m),c.isMounted=!0,u=h=_=null}},x=c.effect=new ts(b,Ce,()=>us(y),c.scope),y=c.update=()=>{x.dirty&&x.run()};y.id=c.uid,Je(c,!0),y()},Z=(c,u,h)=>{u.component=c;const _=c.vnode.props;c.vnode=u,c.next=null,il(c,u.props,_,h),fl(c,u.children,h),nt(),Fs(c),st()},q=(c,u,h,_,m,C,v,b,x=!1)=>{const y=c&&c.children,E=c?c.shapeFlag:0,P=u.children,{patchFlag:S,shapeFlag:R}=u;if(S>0){if(S&128){It(y,P,h,_,m,C,v,b,x);return}else if(S&256){Ge(y,P,h,_,m,C,v,b,x);return}}R&8?(E&16&&Ie(y,m,C),P!==y&&d(h,P)):E&16?R&16?It(y,P,h,_,m,C,v,b,x):Ie(y,m,C,!0):(E&8&&d(h,""),R&16&&M(P,h,_,m,C,v,b,x))},Ge=(c,u,h,_,m,C,v,b,x)=>{c=c||it,u=u||it;const y=c.length,E=u.length,P=Math.min(y,E);let S;for(S=0;S<P;S++){const R=u[S]=x?De(u[S]):Pe(u[S]);O(c[S],R,h,null,m,C,v,b,x)}y>E?Ie(c,m,C,!0,!1,P):M(u,h,_,m,C,v,b,x,P)},It=(c,u,h,_,m,C,v,b,x)=>{let y=0;const E=u.length;let P=c.length-1,S=E-1;for(;y<=P&&y<=S;){const R=c[y],L=u[y]=x?De(u[y]):Pe(u[y]);if(Ze(R,L))O(R,L,h,null,m,C,v,b,x);else break;y++}for(;y<=P&&y<=S;){const R=c[P],L=u[S]=x?De(u[S]):Pe(u[S]);if(Ze(R,L))O(R,L,h,null,m,C,v,b,x);else break;P--,S--}if(y>P){if(y<=S){const R=S+1,L=R<E?u[R].el:_;for(;y<=S;)O(null,u[y]=x?De(u[y]):Pe(u[y]),h,L,m,C,v,b,x),y++}}else if(y>S)for(;y<=P;)Te(c[y],m,C,!0),y++;else{const R=y,L=y,W=new Map;for(y=L;y<=S;y++){const ge=u[y]=x?De(u[y]):Pe(u[y]);ge.key!=null&&W.set(ge.key,y)}let Y,oe=0;const Ee=S-L+1;let ot=!1,xs=0;const ht=new Array(Ee);for(y=0;y<Ee;y++)ht[y]=0;for(y=R;y<=P;y++){const ge=c[y];if(oe>=Ee){Te(ge,m,C,!0);continue}let Ae;if(ge.key!=null)Ae=W.get(ge.key);else for(Y=L;Y<=S;Y++)if(ht[Y-L]===0&&Ze(ge,u[Y])){Ae=Y;break}Ae===void 0?Te(ge,m,C,!0):(ht[Ae-L]=y+1,Ae>=xs?xs=Ae:ot=!0,O(ge,u[Ae],h,null,m,C,v,b,x),oe++)}const vs=ot?hl(ht):it;for(Y=vs.length-1,y=Ee-1;y>=0;y--){const ge=L+y,Ae=u[ge],Es=ge+1<E?u[ge+1].el:_;ht[y]===0?O(null,Ae,h,Es,m,C,v,b,x):ot&&(Y<0||y!==vs[Y]?qe(Ae,h,Es,2):Y--)}}},qe=(c,u,h,_,m=null)=>{const{el:C,type:v,transition:b,children:x,shapeFlag:y}=c;if(y&6){qe(c.component.subTree,u,h,_);return}if(y&128){c.suspense.move(u,h,_);return}if(y&64){v.move(c,u,h,rt);return}if(v===me){s(C,u,h);for(let P=0;P<x.length;P++)qe(x[P],u,h,_);s(c.anchor,u,h);return}if(v===In){$(c,u,h);return}if(_!==2&&y&1&&b)if(_===0)b.beforeEnter(C),s(C,u,h),ue(()=>b.enter(C),m);else{const{leave:P,delayLeave:S,afterLeave:R}=b,L=()=>s(C,u,h),W=()=>{P(C,()=>{L(),R&&R()})};S?S(C,L,W):W()}else s(C,u,h)},Te=(c,u,h,_=!1,m=!1)=>{const{type:C,props:v,ref:b,children:x,dynamicChildren:y,shapeFlag:E,patchFlag:P,dirs:S}=c;if(b!=null&&Gn(b,null,h,c,!0),E&256){u.ctx.deactivate(c);return}const R=E&1&&S,L=!yt(c);let W;if(L&&(W=v&&v.onVnodeBeforeUnmount)&&Se(W,u,c),E&6)Io(c.component,h,_);else{if(E&128){c.suspense.unmount(h,_);return}R&&ze(c,null,u,"beforeUnmount"),E&64?c.type.remove(c,u,h,m,rt,_):y&&(C!==me||P>0&&P&64)?Ie(y,u,h,!1,!0):(C===me&&P&384||!m&&E&16)&&Ie(x,u,h),_&&bs(c)}(L&&(W=v&&v.onVnodeUnmounted)||R)&&ue(()=>{W&&Se(W,u,c),R&&ze(c,null,u,"unmounted")},h)},bs=c=>{const{type:u,el:h,anchor:_,transition:m}=c;if(u===me){Mo(h,_);return}if(u===In){K(c);return}const C=()=>{r(h),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(c.shapeFlag&1&&m&&!m.persisted){const{leave:v,delayLeave:b}=m,x=()=>v(h,C);b?b(c.el,C,x):x()}else C()},Mo=(c,u)=>{let h;for(;c!==u;)h=g(c),r(c),c=h;r(u)},Io=(c,u,h)=>{const{bum:_,scope:m,update:C,subTree:v,um:b}=c;_&&Ut(_),m.stop(),C&&(C.active=!1,Te(v,c,u,h)),b&&ue(b,u),ue(()=>{c.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Ie=(c,u,h,_=!1,m=!1,C=0)=>{for(let v=C;v<c.length;v++)Te(c[v],u,h,_,m)},Rt=c=>c.shapeFlag&6?Rt(c.component.subTree):c.shapeFlag&128?c.suspense.next():g(c.anchor||c.el);let vn=!1;const Cs=(c,u,h)=>{c==null?u._vnode&&Te(u._vnode,null,null,!0):O(u._vnode||null,c,u,null,null,null,h),vn||(vn=!0,Fs(),Kr(),vn=!1),u._vnode=c},rt={p:O,um:Te,m:qe,r:bs,mt:pe,mc:M,pc:q,pbc:B,n:Rt,o:e};let En,wn;return t&&([En,wn]=t(rt)),{render:Cs,hydrate:En,createApp:sl(Cs,En)}}function Mn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Je({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function dl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function gs(e,t,n=!1){const s=e.children,r=t.children;if(T(s)&&T(r))for(let o=0;o<s.length;o++){const i=s[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=De(r[o]),l.el=i.el),n||gs(i,l)),l.type===mn&&(l.el=i.el)}}function hl(e){const t=e.slice(),n=[0];let s,r,o,i,l;const f=e.length;for(s=0;s<f;s++){const a=e[s];if(a!==0){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<a?o=l+1:i=l;a<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function uo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:uo(t)}const pl=e=>e.__isTeleport,Ct=e=>e&&(e.disabled||e.disabled===""),Ws=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ks=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,qn=(e,t)=>{const n=e&&e.to;return ee(n)?t?t(n):null:n},gl={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,i,l,f,a){const{mc:d,pc:p,pbc:g,o:{insert:w,querySelector:N,createText:O,createComment:j}}=a,D=Ct(t.props);let{shapeFlag:ne,children:$,dynamicChildren:K}=t;if(e==null){const k=t.el=O(""),I=t.anchor=O("");w(k,n,s),w(I,n,s);const J=t.target=qn(t.props,N),M=t.targetAnchor=O("");J&&(w(M,J),i==="svg"||Ws(J)?i="svg":(i==="mathml"||ks(J))&&(i="mathml"));const U=(B,te)=>{ne&16&&d($,B,te,r,o,i,l,f)};D?U(n,I):J&&U(J,M)}else{t.el=e.el;const k=t.anchor=e.anchor,I=t.target=e.target,J=t.targetAnchor=e.targetAnchor,M=Ct(e.props),U=M?n:I,B=M?k:J;if(i==="svg"||Ws(I)?i="svg":(i==="mathml"||ks(I))&&(i="mathml"),K?(g(e.dynamicChildren,K,U,r,o,i,l),gs(e,t,!0)):f||p(e,t,U,B,r,o,i,l,!1),D)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Dt(t,n,k,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const te=t.target=qn(t.props,N);te&&Dt(t,te,null,a,0)}else M&&Dt(t,I,J,a,1)}ao(t)},remove(e,t,n,s,{um:r,o:{remove:o}},i){const{shapeFlag:l,children:f,anchor:a,targetAnchor:d,target:p,props:g}=e;if(p&&o(d),i&&o(a),l&16){const w=i||!Ct(g);for(let N=0;N<f.length;N++){const O=f[N];r(O,t,n,w,!!O.dynamicChildren)}}},move:Dt,hydrate:_l};function Dt(e,t,n,{o:{insert:s},m:r},o=2){o===0&&s(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:f,children:a,props:d}=e,p=o===2;if(p&&s(i,t,n),(!p||Ct(d))&&f&16)for(let g=0;g<a.length;g++)r(a[g],t,n,2);p&&s(l,t,n)}function _l(e,t,n,s,r,o,{o:{nextSibling:i,parentNode:l,querySelector:f}},a){const d=t.target=qn(t.props,f);if(d){const p=d._lpa||d.firstChild;if(t.shapeFlag&16)if(Ct(t.props))t.anchor=a(i(e),t,l(e),n,s,r,o),t.targetAnchor=p;else{t.anchor=i(e);let g=p;for(;g;)if(g=i(g),g&&g.nodeType===8&&g.data==="teleport anchor"){t.targetAnchor=g,d._lpa=t.targetAnchor&&i(t.targetAnchor);break}a(p,t,d,n,s,r,o)}ao(t)}return t.anchor&&i(t.anchor)}const Ac=gl;function ao(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const me=Symbol.for("v-fgt"),mn=Symbol.for("v-txt"),ve=Symbol.for("v-cmt"),In=Symbol.for("v-stc"),xt=[];let we=null;function ho(e=!1){xt.push(we=e?null:[])}function ml(){xt.pop(),we=xt[xt.length-1]||null}let Pt=1;function Gs(e){Pt+=e}function po(e){return e.dynamicChildren=Pt>0?we||it:null,ml(),Pt>0&&we&&we.push(e),e}function Sc(e,t,n,s,r,o){return po(mo(e,t,n,s,r,o,!0))}function go(e,t,n,s,r){return po(ce(e,t,n,s,r,!0))}function Zt(e){return e?e.__v_isVNode===!0:!1}function Ze(e,t){return e.type===t.type&&e.key===t.key}const yn="__vInternal",_o=({key:e})=>e??null,kt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ee(e)||he(e)||F(e)?{i:se,r:e,k:t,f:!!n}:e:null);function mo(e,t=null,n=null,s=0,r=null,o=e===me?0:1,i=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&_o(t),ref:t&&kt(t),scopeId:Wr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:se};return l?(_s(f,n),o&128&&e.normalize(f)):n&&(f.shapeFlag|=ee(n)?8:16),Pt>0&&!i&&we&&(f.patchFlag>0||o&6)&&f.patchFlag!==32&&we.push(f),f}const ce=yl;function yl(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===kr)&&(e=ve),Zt(e)){const l=ke(e,t,!0);return n&&_s(l,n),Pt>0&&!o&&we&&(l.shapeFlag&6?we[we.indexOf(e)]=l:we.push(l)),l.patchFlag|=-2,l}if(Ol(e)&&(e=e.__vccOpts),t){t=bl(t);let{class:l,style:f}=t;l&&!ee(l)&&(t.class=cn(l)),G(f)&&(Nr(f)&&!T(f)&&(f=Q({},f)),t.style=ln(f))}const i=ee(e)?1:Ii(e)?128:pl(e)?64:G(e)?4:F(e)?2:0;return mo(e,t,n,s,r,i,o,!0)}function bl(e){return e?Nr(e)||yn in e?Q({},e):e:null}function ke(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,l=t?xl(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&_o(l),ref:t&&t.ref?n&&r?T(r)?r.concat(kt(t)):[r,kt(t)]:kt(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ke(e.ssContent),ssFallback:e.ssFallback&&ke(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Cl(e=" ",t=0){return ce(mn,null,e,t)}function Pc(e="",t=!1){return t?(ho(),go(ve,null,e)):ce(ve,null,e)}function Pe(e){return e==null||typeof e=="boolean"?ce(ve):T(e)?ce(me,null,e.slice()):typeof e=="object"?De(e):ce(mn,null,String(e))}function De(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ke(e)}function _s(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(T(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),_s(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(yn in t)?t._ctx=se:r===3&&se&&(se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else F(t)?(t={default:t,_ctx:se},n=32):(t=String(t),s&64?(n=16,t=[Cl(t)]):n=8);e.children=t,e.shapeFlag|=n}function xl(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=cn([t.class,s.class]));else if(r==="style")t.style=ln([t.style,s.style]);else if(nn(r)){const o=t[r],i=s[r];i&&o!==i&&!(T(o)&&o.includes(i))&&(t[r]=o?[].concat(o,i):i)}else r!==""&&(t[r]=s[r])}return t}function Se(e,t,n,s=null){xe(e,t,7,[n,s])}const vl=ro();let El=0;function wl(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||vl,o={uid:El++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new ko(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:io(s,r),emitsOptions:Ur(s,r),emit:null,emitted:null,propsDefaults:z,inheritAttrs:s.inheritAttrs,ctx:z,data:z,props:z,attrs:z,slots:z,refs:z,setupState:z,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Ti.bind(null,o),e.ce&&e.ce(o),o}let ie=null;const bn=()=>ie||se;let Qt,zn;{const e=_r(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};Qt=t("__VUE_INSTANCE_SETTERS__",n=>ie=n),zn=t("__VUE_SSR_SETTERS__",n=>Cn=n)}const Mt=e=>{const t=ie;return Qt(e),e.scope.on(),()=>{e.scope.off(),Qt(t)}},qs=()=>{ie&&ie.scope.off(),Qt(null)};function yo(e){return e.vnode.shapeFlag&4}let Cn=!1;function Tl(e,t=!1){t&&zn(t);const{props:n,children:s}=e.vnode,r=yo(e);ol(e,n,r,t),cl(e,s);const o=r?Al(e,t):void 0;return t&&zn(!1),o}function Al(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Lr(new Proxy(e.ctx,Ji));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Co(e):null,o=Mt(e);nt();const i=Ue(s,e,0,[e.props,r]);if(st(),o(),hr(i)){if(i.then(qs,qs),t)return i.then(l=>{zs(e,l,t)}).catch(l=>{dn(l,e,0)});e.asyncDep=i}else zs(e,i,t)}else bo(e,t)}function zs(e,t,n){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:G(t)&&(e.setupState=Vr(t)),bo(e,n)}let Js;function bo(e,t,n){const s=e.type;if(!e.render){if(!t&&Js&&!s.render){const r=s.template||hs(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:f}=s,a=Q(Q({isCustomElement:o,delimiters:l},i),f);s.render=Js(r,a)}}e.render=s.render||Ce}{const r=Mt(e);nt();try{Xi(e)}finally{st(),r()}}}function Sl(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return de(e,"get","$attrs"),t[n]}}))}function Co(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Sl(e)},slots:e.slots,emit:e.emit,expose:t}}function xn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Vr(Lr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bt)return bt[n](e)},has(t,n){return n in t||n in bt}}))}function Pl(e,t=!0){return F(e)?e.displayName||e.name:e.name||t&&e.__name}function Ol(e){return F(e)&&"__vccOpts"in e}const Ml=(e,t)=>pi(e,t,Cn);function Oc(e,t,n=z){const s=bn(),r=ae(t),o=be(t),i=bi((f,a)=>{let d;return Li(()=>{const p=e[t];Me(d,p)&&(d=p,a())}),{get(){return f(),n.get?n.get(d):d},set(p){const g=s.vnode.props;!(g&&(t in g||r in g||o in g)&&(`onUpdate:${t}`in g||`onUpdate:${r}`in g||`onUpdate:${o}`in g))&&Me(p,d)&&(d=p,a()),s.emit(`update:${t}`,n.set?n.set(p):p)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return i[Symbol.iterator]=()=>{let f=0;return{next(){return f<2?{value:f++?e[l]||{}:i,done:!1}:{done:!0}}}},i}function Il(e,t,n){const s=arguments.length;return s===2?G(t)&&!T(t)?Zt(t)?ce(e,null,[t]):ce(e,t):ce(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Zt(n)&&(n=[n]),ce(e,t,n))}const Rl="3.4.15";/**
14
- * @vue/runtime-dom v3.4.15
13
+ **/function Ue(e,t,n,s){try{return s?e(...s):e()}catch(r){hn(r,t,n)}}function xe(e,t,n,s){if(L(e)){const o=Ue(e,t,n,s);return o&&hr(o)&&o.catch(i=>{hn(i,t,n)}),o}const r=[];for(let o=0;o<e.length;o++)r.push(xe(e[o],t,n,s));return r}function hn(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const a=o.ec;if(a){for(let d=0;d<a.length;d++)if(a[d](e,i,l)===!1)return}o=o.parent}const f=t.appContext.config.errorHandler;if(f){Ue(f,null,10,[e,i,l]);return}}bi(e,n,r,s)}function bi(e,t,n,s=!0){console.error(e)}let Tt=!1,Bn=!1;const le=[];let Oe=0;const ft=[];let Ve=null,Xe=0;const Vr=Promise.resolve();let fs=null;function us(e){const t=fs||Vr;return e?t.then(this?e.bind(this):e):t}function Ci(e){let t=Oe+1,n=le.length;for(;t<n;){const s=t+n>>>1,r=le[s],o=At(r);o<e||o===e&&r.pre?t=s+1:n=s}return t}function as(e){(!le.length||!le.includes(e,Tt&&e.allowRecurse?Oe+1:Oe))&&(e.id==null?le.push(e):le.splice(Ci(e.id),0,e),jr())}function jr(){!Tt&&!Bn&&(Bn=!0,fs=Vr.then(Kr))}function xi(e){const t=le.indexOf(e);t>Oe&&le.splice(t,1)}function vi(e){T(e)?ft.push(...e):(!Ve||!Ve.includes(e,e.allowRecurse?Xe+1:Xe))&&ft.push(e),jr()}function Ls(e,t,n=Tt?Oe+1:0){for(;n<le.length;n++){const s=le[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;le.splice(n,1),n--,s()}}}function Dr(e){if(ft.length){const t=[...new Set(ft)].sort((n,s)=>At(n)-At(s));if(ft.length=0,Ve){Ve.push(...t);return}for(Ve=t,Xe=0;Xe<Ve.length;Xe++)Ve[Xe]();Ve=null,Xe=0}}const At=e=>e.id==null?1/0:e.id,Ei=(e,t)=>{const n=At(e)-At(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Kr(e){Bn=!1,Tt=!0,le.sort(Ei);try{for(Oe=0;Oe<le.length;Oe++){const t=le[Oe];t&&t.active!==!1&&Ue(t,null,14)}}finally{Oe=0,le.length=0,Dr(),Tt=!1,fs=null,(le.length||ft.length)&&Kr()}}function wi(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||z;let r=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in s){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:p,trim:g}=s[d]||z;g&&(r=n.map(w=>ee(w)?w.trim():w)),p&&(r=n.map(ts))}let l,f=s[l=Ut(t)]||s[l=Ut(ae(t))];!f&&o&&(f=s[l=Ut(be(t))]),f&&xe(f,e,6,r);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,xe(a,e,6,r)}}function Br(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!L(e)){const f=a=>{const d=Br(a,t,!0);d&&(l=!0,Q(i,d))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!o&&!l?(k(e)&&s.set(e,null),null):(T(o)?o.forEach(f=>i[f]=null):Q(i,o),k(e)&&s.set(e,i),i)}function pn(e,t){return!e||!nn(t)?!1:(t=t.slice(2).replace(/Once$/,""),H(e,t[0].toLowerCase()+t.slice(1))||H(e,be(t))||H(e,t))}let se=null,Ur=null;function Jt(e){const t=se;return se=e,Ur=e&&e.type.__scopeId||null,t}function Ti(e,t=se,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Gs(-1);const o=Jt(t);let i;try{i=e(...r)}finally{Jt(o),s._d&&Gs(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Sn(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:l,attrs:f,emit:a,render:d,renderCache:p,data:g,setupState:w,ctx:F,inheritAttrs:P}=e;let G,j;const ne=Jt(e);try{if(n.shapeFlag&4){const D=r||s,W=D;G=Pe(d.call(W,D,p,o,w,g,F)),j=f}else{const D=t;G=Pe(D.length>1?D(o,{attrs:f,slots:l,emit:a}):D(o,null)),j=t.props?f:Ai(f)}}catch(D){Et.length=0,hn(D,e,1),G=ce(ve)}let $=G;if(j&&P!==!1){const D=Object.keys(j),{shapeFlag:W}=$;D.length&&W&7&&(i&&D.some(Zn)&&(j=Si(j,i)),$=ke($,j))}return n.dirs&&($=ke($),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&($.transition=n.transition),G=$,Jt(ne),G}const Ai=e=>{let t;for(const n in e)(n==="class"||n==="style"||nn(n))&&((t||(t={}))[n]=e[n]);return t},Si=(e,t)=>{const n={};for(const s in e)(!Zn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Pi(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:f}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return s?Fs(s,i,a):!!i;if(f&8){const d=t.dynamicProps;for(let p=0;p<d.length;p++){const g=d[p];if(i[g]!==s[g]&&!pn(a,g))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?Fs(s,i,a):!0:!!i;return!1}function Fs(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!pn(n,o))return!0}return!1}function Oi({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const ds="components";function _c(e,t){return kr(ds,e,!0,t)||e}const Wr=Symbol.for("v-ndc");function mc(e){return ee(e)?kr(ds,e,!1)||e:e||Wr}function kr(e,t,n=!0,s=!1){const r=se||ie;if(r){const o=r.type;if(e===ds){const l=Sl(o,!1);if(l&&(l===t||l===ae(t)||l===on(ae(t))))return o}const i=Ns(r[e]||o[e],t)||Ns(r.appContext[e],t);return!i&&s?o:i}}function Ns(e,t){return e&&(e[t]||e[ae(t)]||e[on(ae(t))])}const Mi=e=>e.__isSuspense;function Ii(e,t){t&&t.pendingBranch?T(e)?t.effects.push(...e):t.effects.push(e):vi(e)}const Ri=Symbol.for("v-scx"),Li=()=>kt(Ri);function yc(e,t){return gn(e,null,t)}function Fi(e,t){return gn(e,null,{flush:"sync"})}const Dt={};function Pn(e,t,n){return gn(e,t,n)}function gn(e,t,{immediate:n,deep:s,flush:r,once:o,onTrack:i,onTrigger:l}=z){if(t&&o){const I=t;t=(...J)=>{I(...J),W()}}const f=ie,a=I=>s===!0?I:Qe(I,s===!1?1:void 0);let d,p=!1,g=!1;if(he(e)?(d=()=>e.value,p=zt(e)):ct(e)?(d=()=>a(e),p=!0):T(e)?(g=!0,p=e.some(I=>ct(I)||zt(I)),d=()=>e.map(I=>{if(he(I))return I.value;if(ct(I))return a(I);if(L(I))return Ue(I,f,2)})):L(e)?t?d=()=>Ue(e,f,2):d=()=>(w&&w(),xe(e,f,3,[F])):d=Ce,t&&s){const I=d;d=()=>Qe(I())}let w,F=I=>{w=$.onStop=()=>{Ue(I,f,4),w=$.onStop=void 0}},P;if(xn)if(F=Ce,t?n&&xe(t,f,3,[d(),g?[]:void 0,F]):d(),r==="sync"){const I=Li();P=I.__watcherHandles||(I.__watcherHandles=[])}else return Ce;let G=g?new Array(e.length).fill(Dt):Dt;const j=()=>{if(!(!$.active||!$.dirty))if(t){const I=$.run();(s||p||(g?I.some((J,M)=>Me(J,G[M])):Me(I,G)))&&(w&&w(),xe(t,f,3,[I,G===Dt?void 0:g&&G[0]===Dt?[]:G,F]),G=I)}else $.run()};j.allowRecurse=!!t;let ne;r==="sync"?ne=j:r==="post"?ne=()=>ue(j,f&&f.suspense):(j.pre=!0,f&&(j.id=f.uid),ne=()=>as(j));const $=new ns(d,Ce,ne),D=Go(),W=()=>{$.stop(),D&&Qn(D.effects,$)};return t?n?j():G=$.run():r==="post"?ue($.run.bind($),f&&f.suspense):$.run(),P&&P.push(W),W}function Ni(e,t,n){const s=this.proxy,r=ee(e)?e.includes(".")?Gr(s,e):()=>s[e]:e.bind(s,s);let o;L(t)?o=t:(o=t.handler,n=t);const i=Rt(this),l=gn(r,o.bind(s),n);return i(),l}function Gr(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function Qe(e,t,n=0,s){if(!k(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if(s=s||new Set,s.has(e))return e;if(s.add(e),he(e))Qe(e.value,t,n,s);else if(T(e))for(let r=0;r<e.length;r++)Qe(e[r],t,n,s);else if(sn(e)||lt(e))e.forEach(r=>{Qe(r,t,n,s)});else if(gr(e))for(const r in e)Qe(e[r],t,n,s);return e}function bc(e,t){if(se===null)return e;const n=vn(se)||se.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,l,f=z]=t[r];o&&(L(o)&&(o={mounted:o,updated:o}),o.deep&&Qe(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:f}))}return e}function ze(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];o&&(l.oldValue=o[i].value);let f=l.dir[s];f&&(nt(),xe(f,n,8,[e.el,l,e,t]),st())}}const je=Symbol("_leaveCb"),Kt=Symbol("_enterCb");function qr(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Xr(()=>{e.isMounted=!0}),Qr(()=>{e.isUnmounting=!0}),e}const ye=[Function,Array],zr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ye,onEnter:ye,onAfterEnter:ye,onEnterCancelled:ye,onBeforeLeave:ye,onLeave:ye,onAfterLeave:ye,onLeaveCancelled:ye,onBeforeAppear:ye,onAppear:ye,onAfterAppear:ye,onAppearCancelled:ye},$i={name:"BaseTransition",props:zr,setup(e,{slots:t}){const n=Cn(),s=qr();let r;return()=>{const o=t.default&&hs(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const P of o)if(P.type!==ve){i=P;break}}const l=V(e),{mode:f}=l;if(s.isLeaving)return On(i);const a=$s(i);if(!a)return On(i);const d=St(a,l,s,n);Pt(a,d);const p=n.subTree,g=p&&$s(p);let w=!1;const{getTransitionKey:F}=a.type;if(F){const P=F();r===void 0?r=P:P!==r&&(r=P,w=!0)}if(g&&g.type!==ve&&(!Ze(a,g)||w)){const P=St(g,l,s,n);if(Pt(g,P),f==="out-in")return s.isLeaving=!0,P.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},On(i);f==="in-out"&&a.type!==ve&&(P.delayLeave=(G,j,ne)=>{const $=Jr(s,g);$[String(g.key)]=g,G[je]=()=>{j(),G[je]=void 0,delete d.delayedLeave},d.delayedLeave=ne})}return i}}},Hi=$i;function Jr(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function St(e,t,n,s){const{appear:r,mode:o,persisted:i=!1,onBeforeEnter:l,onEnter:f,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:p,onLeave:g,onAfterLeave:w,onLeaveCancelled:F,onBeforeAppear:P,onAppear:G,onAfterAppear:j,onAppearCancelled:ne}=t,$=String(e.key),D=Jr(n,e),W=(M,B)=>{M&&xe(M,s,9,B)},I=(M,B)=>{const K=B[1];W(M,B),T(M)?M.every(te=>te.length<=1)&&K():M.length<=1&&K()},J={mode:o,persisted:i,beforeEnter(M){let B=l;if(!n.isMounted)if(r)B=P||l;else return;M[je]&&M[je](!0);const K=D[$];K&&Ze(e,K)&&K.el[je]&&K.el[je](),W(B,[M])},enter(M){let B=f,K=a,te=d;if(!n.isMounted)if(r)B=G||f,K=j||a,te=ne||d;else return;let A=!1;const X=M[Kt]=pe=>{A||(A=!0,pe?W(te,[M]):W(K,[M]),J.delayedLeave&&J.delayedLeave(),M[Kt]=void 0)};B?I(B,[M,X]):X()},leave(M,B){const K=String(e.key);if(M[Kt]&&M[Kt](!0),n.isUnmounting)return B();W(p,[M]);let te=!1;const A=M[je]=X=>{te||(te=!0,B(),X?W(F,[M]):W(w,[M]),M[je]=void 0,D[K]===e&&delete D[K])};D[K]=e,g?I(g,[M,A]):A()},clone(M){return St(M,t,n,s)}};return J}function On(e){if(_n(e))return e=ke(e),e.children=null,e}function $s(e){return _n(e)?e.children?e.children[0]:void 0:e}function Pt(e,t){e.shapeFlag&6&&e.component?Pt(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function hs(e,t=!1,n){let s=[],r=0;for(let o=0;o<e.length;o++){let i=e[o];const l=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===me?(i.patchFlag&128&&r++,s=s.concat(hs(i.children,t,l))):(t||i.type!==ve)&&s.push(l!=null?ke(i,{key:l}):i)}if(r>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function Vi(e,t){return L(e)?Q({name:e.name},t,{setup:e}):e}const bt=e=>!!e.type.__asyncLoader,_n=e=>e.type.__isKeepAlive;function ji(e,t){Yr(e,"a",t)}function Di(e,t){Yr(e,"da",t)}function Yr(e,t,n=ie){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(mn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)_n(r.parent.vnode)&&Ki(s,t,n,r),r=r.parent}}function Ki(e,t,n,s){const r=mn(t,e,s,!0);eo(()=>{Qn(s[t],r)},n)}function mn(e,t,n=ie,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;nt();const l=Rt(n),f=xe(t,n,e,i);return l(),st(),f});return s?r.unshift(o):r.push(o),o}}const Fe=e=>(t,n=ie)=>(!xn||e==="sp")&&mn(e,(...s)=>t(...s),n),Bi=Fe("bm"),Xr=Fe("m"),Ui=Fe("bu"),Zr=Fe("u"),Qr=Fe("bum"),eo=Fe("um"),Wi=Fe("sp"),ki=Fe("rtg"),Gi=Fe("rtc");function qi(e,t=ie){mn("ec",e,t)}function Cc(e,t,n,s){let r;const o=n&&n[s];if(T(e)||ee(e)){r=new Array(e.length);for(let i=0,l=e.length;i<l;i++)r[i]=t(e[i],i,void 0,o&&o[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,o&&o[i])}else if(k(e))if(e[Symbol.iterator])r=Array.from(e,(i,l)=>t(i,l,void 0,o&&o[l]));else{const i=Object.keys(e);r=new Array(i.length);for(let l=0,f=i.length;l<f;l++){const a=i[l];r[l]=t(e[a],a,l,o&&o[l])}}else r=[];return n&&(n[s]=r),r}function xc(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(T(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.key?(...r)=>{const o=s.fn(...r);return o&&(o.key=s.key),o}:s.fn)}return e}function vc(e,t,n={},s,r){if(se.isCE||se.parent&&bt(se.parent)&&se.parent.isCE)return t!=="default"&&(n.name=t),ce("slot",n,s&&s());let o=e[t];o&&o._c&&(o._d=!1),ao();const i=o&&to(o(n)),l=po(me,{key:n.key||i&&i.key||`_${t}`},i||(s?s():[]),i&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function to(e){return e.some(t=>Zt(t)?!(t.type===ve||t.type===me&&!to(t.children)):!0)?e:null}function Ec(e,t){const n={};for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:Ut(s)]=e[s];return n}const Un=e=>e?mo(e)?vn(e)||e.proxy:Un(e.parent):null,Ct=Q(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Un(e.parent),$root:e=>Un(e.root),$emit:e=>e.emit,$options:e=>ps(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,as(e.update)}),$nextTick:e=>e.n||(e.n=us.bind(e.proxy)),$watch:e=>Ni.bind(e)}),Mn=(e,t)=>e!==z&&!e.__isScriptSetup&&H(e,t),zi={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:f}=e;let a;if(t[0]!=="$"){const w=i[t];if(w!==void 0)switch(w){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(Mn(s,t))return i[t]=1,s[t];if(r!==z&&H(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&H(a,t))return i[t]=3,o[t];if(n!==z&&H(n,t))return i[t]=4,n[t];Wn&&(i[t]=0)}}const d=Ct[t];let p,g;if(d)return t==="$attrs"&&de(e,"get",t),d(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==z&&H(n,t))return i[t]=4,n[t];if(g=f.config.globalProperties,H(g,t))return g[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return Mn(r,t)?(r[t]=n,!0):s!==z&&H(s,t)?(s[t]=n,!0):H(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let l;return!!n[i]||e!==z&&H(e,i)||Mn(t,i)||(l=o[0])&&H(l,i)||H(s,i)||H(Ct,i)||H(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:H(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function wc(){return Ji().attrs}function Ji(){const e=Cn();return e.setupContext||(e.setupContext=bo(e))}function Yt(e){return T(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Tc(e,t){return!e||!t?e||t:T(e)&&T(t)?e.concat(t):Q({},Yt(e),Yt(t))}let Wn=!0;function Yi(e){const t=ps(e),n=e.proxy,s=e.ctx;Wn=!1,t.beforeCreate&&Hs(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:f,inject:a,created:d,beforeMount:p,mounted:g,beforeUpdate:w,updated:F,activated:P,deactivated:G,beforeDestroy:j,beforeUnmount:ne,destroyed:$,unmounted:D,render:W,renderTracked:I,renderTriggered:J,errorCaptured:M,serverPrefetch:B,expose:K,inheritAttrs:te,components:A,directives:X,filters:pe}=t;if(a&&Xi(a,s,null),i)for(const Z in i){const q=i[Z];L(q)&&(s[Z]=q.bind(n))}if(r){const Z=r.call(n,n);k(Z)&&(e.data=is(Z))}if(Wn=!0,o)for(const Z in o){const q=o[Z],Ge=L(q)?q.bind(n,n):L(q.get)?q.get.bind(n,n):Ce,Lt=!L(q)&&L(q.set)?q.set.bind(n):Ce,qe=Ol({get:Ge,set:Lt});Object.defineProperty(s,Z,{enumerable:!0,configurable:!0,get:()=>qe.value,set:Te=>qe.value=Te})}if(l)for(const Z in l)no(l[Z],s,n,Z);if(f){const Z=L(f)?f.call(n):f;Reflect.ownKeys(Z).forEach(q=>{sl(q,Z[q])})}d&&Hs(d,e,"c");function re(Z,q){T(q)?q.forEach(Ge=>Z(Ge.bind(n))):q&&Z(q.bind(n))}if(re(Bi,p),re(Xr,g),re(Ui,w),re(Zr,F),re(ji,P),re(Di,G),re(qi,M),re(Gi,I),re(ki,J),re(Qr,ne),re(eo,D),re(Wi,B),T(K))if(K.length){const Z=e.exposed||(e.exposed={});K.forEach(q=>{Object.defineProperty(Z,q,{get:()=>n[q],set:Ge=>n[q]=Ge})})}else e.exposed||(e.exposed={});W&&e.render===Ce&&(e.render=W),te!=null&&(e.inheritAttrs=te),A&&(e.components=A),X&&(e.directives=X)}function Xi(e,t,n=Ce){T(e)&&(e=kn(e));for(const s in e){const r=e[s];let o;k(r)?"default"in r?o=kt(r.from||s,r.default,!0):o=kt(r.from||s):o=kt(r),he(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function Hs(e,t,n){xe(T(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function no(e,t,n,s){const r=s.includes(".")?Gr(n,s):()=>n[s];if(ee(e)){const o=t[e];L(o)&&Pn(r,o)}else if(L(e))Pn(r,e.bind(n));else if(k(e))if(T(e))e.forEach(o=>no(o,t,n,s));else{const o=L(e.handler)?e.handler.bind(n):t[e.handler];L(o)&&Pn(r,o,e)}}function ps(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let f;return l?f=l:!r.length&&!n&&!s?f=t:(f={},r.length&&r.forEach(a=>Xt(f,a,i,!0)),Xt(f,t,i)),k(t)&&o.set(t,f),f}function Xt(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Xt(e,o,n,!0),r&&r.forEach(i=>Xt(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Zi[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Zi={data:Vs,props:js,emits:js,methods:_t,computed:_t,beforeCreate:fe,created:fe,beforeMount:fe,mounted:fe,beforeUpdate:fe,updated:fe,beforeDestroy:fe,beforeUnmount:fe,destroyed:fe,unmounted:fe,activated:fe,deactivated:fe,errorCaptured:fe,serverPrefetch:fe,components:_t,directives:_t,watch:el,provide:Vs,inject:Qi};function Vs(e,t){return t?e?function(){return Q(L(e)?e.call(this,this):e,L(t)?t.call(this,this):t)}:t:e}function Qi(e,t){return _t(kn(e),kn(t))}function kn(e){if(T(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function fe(e,t){return e?[...new Set([].concat(e,t))]:t}function _t(e,t){return e?Q(Object.create(null),e,t):t}function js(e,t){return e?T(e)&&T(t)?[...new Set([...e,...t])]:Q(Object.create(null),Yt(e),Yt(t??{})):t}function el(e,t){if(!e)return t;if(!t)return e;const n=Q(Object.create(null),e);for(const s in t)n[s]=fe(e[s],t[s]);return n}function so(){return{app:null,config:{isNativeTag:Io,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let tl=0;function nl(e,t){return function(s,r=null){L(s)||(s=Q({},s)),r!=null&&!k(r)&&(r=null);const o=so(),i=new WeakSet;let l=!1;const f=o.app={_uid:tl++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Il,get config(){return o.config},set config(a){},use(a,...d){return i.has(a)||(a&&L(a.install)?(i.add(a),a.install(f,...d)):L(a)&&(i.add(a),a(f,...d))),f},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),f},component(a,d){return d?(o.components[a]=d,f):o.components[a]},directive(a,d){return d?(o.directives[a]=d,f):o.directives[a]},mount(a,d,p){if(!l){const g=ce(s,r);return g.appContext=o,p===!0?p="svg":p===!1&&(p=void 0),d&&t?t(g,a):e(g,a,p),l=!0,f._container=a,a.__vue_app__=f,vn(g.component)||g.component.proxy}},unmount(){l&&(e(null,f._container),delete f._container.__vue_app__)},provide(a,d){return o.provides[a]=d,f},runWithContext(a){const d=xt;xt=f;try{return a()}finally{xt=d}}};return f}}let xt=null;function sl(e,t){if(ie){let n=ie.provides;const s=ie.parent&&ie.parent.provides;s===n&&(n=ie.provides=Object.create(s)),n[e]=t}}function kt(e,t,n=!1){const s=ie||se;if(s||xt){const r=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:xt._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&L(t)?t.call(s&&s.proxy):t}}function rl(e,t,n,s=!1){const r={},o={};qt(o,bn,1),e.propsDefaults=Object.create(null),ro(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:di(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function ol(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=V(r),[f]=e.propsOptions;let a=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let p=0;p<d.length;p++){let g=d[p];if(pn(e.emitsOptions,g))continue;const w=t[g];if(f)if(H(o,g))w!==o[g]&&(o[g]=w,a=!0);else{const F=ae(g);r[F]=Gn(f,l,F,w,e,!1)}else w!==o[g]&&(o[g]=w,a=!0)}}}else{ro(e,t,r,o)&&(a=!0);let d;for(const p in l)(!t||!H(t,p)&&((d=be(p))===p||!H(t,d)))&&(f?n&&(n[p]!==void 0||n[d]!==void 0)&&(r[p]=Gn(f,l,p,void 0,e,!0)):delete r[p]);if(o!==l)for(const p in o)(!t||!H(t,p))&&(delete o[p],a=!0)}a&&Le(e,"set","$attrs")}function ro(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,l;if(t)for(let f in t){if(mt(f))continue;const a=t[f];let d;r&&H(r,d=ae(f))?!o||!o.includes(d)?n[d]=a:(l||(l={}))[d]=a:pn(e.emitsOptions,f)||(!(f in s)||a!==s[f])&&(s[f]=a,i=!0)}if(o){const f=V(n),a=l||z;for(let d=0;d<o.length;d++){const p=o[d];n[p]=Gn(r,f,p,a[p],e,!H(a,p))}}return i}function Gn(e,t,n,s,r,o){const i=e[n];if(i!=null){const l=H(i,"default");if(l&&s===void 0){const f=i.default;if(i.type!==Function&&!i.skipFactory&&L(f)){const{propsDefaults:a}=r;if(n in a)s=a[n];else{const d=Rt(r);s=a[n]=f.call(null,t),d()}}else s=f}i[0]&&(o&&!l?s=!1:i[1]&&(s===""||s===be(n))&&(s=!0))}return s}function oo(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},l=[];let f=!1;if(!L(e)){const d=p=>{f=!0;const[g,w]=oo(p,t,!0);Q(i,g),w&&l.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!f)return k(e)&&s.set(e,it),it;if(T(o))for(let d=0;d<o.length;d++){const p=ae(o[d]);Ds(p)&&(i[p]=z)}else if(o)for(const d in o){const p=ae(d);if(Ds(p)){const g=o[d],w=i[p]=T(g)||L(g)?{type:g}:Q({},g);if(w){const F=Us(Boolean,w.type),P=Us(String,w.type);w[0]=F>-1,w[1]=P<0||F<P,(F>-1||H(w,"default"))&&l.push(p)}}}const a=[i,l];return k(e)&&s.set(e,a),a}function Ds(e){return e[0]!=="$"&&!mt(e)}function Ks(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function Bs(e,t){return Ks(e)===Ks(t)}function Us(e,t){return T(t)?t.findIndex(n=>Bs(n,e)):L(t)&&Bs(t,e)?0:-1}const io=e=>e[0]==="_"||e==="$stable",gs=e=>T(e)?e.map(Pe):[Pe(e)],il=(e,t,n)=>{if(t._n)return t;const s=Ti((...r)=>gs(t(...r)),n);return s._c=!1,s},lo=(e,t,n)=>{const s=e._ctx;for(const r in e){if(io(r))continue;const o=e[r];if(L(o))t[r]=il(r,o,s);else if(o!=null){const i=gs(o);t[r]=()=>i}}},co=(e,t)=>{const n=gs(t);e.slots.default=()=>n},ll=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=V(t),qt(t,"_",n)):lo(t,e.slots={})}else e.slots={},t&&co(e,t);qt(e.slots,bn,1)},cl=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=z;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(Q(r,t),!n&&l===1&&delete r._):(o=!t.$stable,lo(t,r)),i=t}else t&&(co(e,t),i={default:1});if(o)for(const l in r)!io(l)&&i[l]==null&&delete r[l]};function qn(e,t,n,s,r=!1){if(T(e)){e.forEach((g,w)=>qn(g,t&&(T(t)?t[w]:t),n,s,r));return}if(bt(s)&&!r)return;const o=s.shapeFlag&4?vn(s.component)||s.component.proxy:s.el,i=r?null:o,{i:l,r:f}=e,a=t&&t.r,d=l.refs===z?l.refs={}:l.refs,p=l.setupState;if(a!=null&&a!==f&&(ee(a)?(d[a]=null,H(p,a)&&(p[a]=null)):he(a)&&(a.value=null)),L(f))Ue(f,l,12,[i,d]);else{const g=ee(f),w=he(f);if(g||w){const F=()=>{if(e.f){const P=g?H(p,f)?p[f]:d[f]:f.value;r?T(P)&&Qn(P,o):T(P)?P.includes(o)||P.push(o):g?(d[f]=[o],H(p,f)&&(p[f]=d[f])):(f.value=[o],e.k&&(d[e.k]=f.value))}else g?(d[f]=i,H(p,f)&&(p[f]=i)):w&&(f.value=i,e.k&&(d[e.k]=i))};i?(F.id=-1,ue(F,n)):F()}}}const ue=Ii;function fl(e){return ul(e)}function ul(e,t){const n=_r();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:f,setText:a,setElementText:d,parentNode:p,nextSibling:g,setScopeId:w=Ce,insertStaticContent:F}=e,P=(c,u,h,_=null,m=null,C=null,v=void 0,b=null,x=!!u.dynamicChildren)=>{if(c===u)return;c&&!Ze(c,u)&&(_=Ft(c),Te(c,m,C,!0),c=null),u.patchFlag===-2&&(x=!1,u.dynamicChildren=null);const{type:y,ref:E,shapeFlag:O}=u;switch(y){case yn:G(c,u,h,_);break;case ve:j(c,u,h,_);break;case Rn:c==null&&ne(u,h,_,v);break;case me:A(c,u,h,_,m,C,v,b,x);break;default:O&1?W(c,u,h,_,m,C,v,b,x):O&6?X(c,u,h,_,m,C,v,b,x):(O&64||O&128)&&y.process(c,u,h,_,m,C,v,b,x,rt)}E!=null&&m&&qn(E,c&&c.ref,C,u||c,!u)},G=(c,u,h,_)=>{if(c==null)s(u.el=l(u.children),h,_);else{const m=u.el=c.el;u.children!==c.children&&a(m,u.children)}},j=(c,u,h,_)=>{c==null?s(u.el=f(u.children||""),h,_):u.el=c.el},ne=(c,u,h,_)=>{[c.el,c.anchor]=F(c.children,u,h,_,c.el,c.anchor)},$=({el:c,anchor:u},h,_)=>{let m;for(;c&&c!==u;)m=g(c),s(c,h,_),c=m;s(u,h,_)},D=({el:c,anchor:u})=>{let h;for(;c&&c!==u;)h=g(c),r(c),c=h;r(u)},W=(c,u,h,_,m,C,v,b,x)=>{u.type==="svg"?v="svg":u.type==="math"&&(v="mathml"),c==null?I(u,h,_,m,C,v,b,x):B(c,u,m,C,v,b,x)},I=(c,u,h,_,m,C,v,b)=>{let x,y;const{props:E,shapeFlag:O,transition:S,dirs:R}=c;if(x=c.el=i(c.type,C,E&&E.is,E),O&8?d(x,c.children):O&16&&M(c.children,x,null,_,m,In(c,C),v,b),R&&ze(c,null,_,"created"),J(x,c,c.scopeId,v,_),E){for(const U in E)U!=="value"&&!mt(U)&&o(x,U,null,E[U],C,c.children,_,m,Ie);"value"in E&&o(x,"value",null,E.value,C),(y=E.onVnodeBeforeMount)&&Se(y,_,c)}R&&ze(c,null,_,"beforeMount");const N=al(m,S);N&&S.beforeEnter(x),s(x,u,h),((y=E&&E.onVnodeMounted)||N||R)&&ue(()=>{y&&Se(y,_,c),N&&S.enter(x),R&&ze(c,null,_,"mounted")},m)},J=(c,u,h,_,m)=>{if(h&&w(c,h),_)for(let C=0;C<_.length;C++)w(c,_[C]);if(m){let C=m.subTree;if(u===C){const v=m.vnode;J(c,v,v.scopeId,v.slotScopeIds,m.parent)}}},M=(c,u,h,_,m,C,v,b,x=0)=>{for(let y=x;y<c.length;y++){const E=c[y]=b?De(c[y]):Pe(c[y]);P(null,E,u,h,_,m,C,v,b)}},B=(c,u,h,_,m,C,v)=>{const b=u.el=c.el;let{patchFlag:x,dynamicChildren:y,dirs:E}=u;x|=c.patchFlag&16;const O=c.props||z,S=u.props||z;let R;if(h&&Je(h,!1),(R=S.onVnodeBeforeUpdate)&&Se(R,h,u,c),E&&ze(u,c,h,"beforeUpdate"),h&&Je(h,!0),y?K(c.dynamicChildren,y,b,h,_,In(u,m),C):v||q(c,u,b,null,h,_,In(u,m),C,!1),x>0){if(x&16)te(b,u,O,S,h,_,m);else if(x&2&&O.class!==S.class&&o(b,"class",null,S.class,m),x&4&&o(b,"style",O.style,S.style,m),x&8){const N=u.dynamicProps;for(let U=0;U<N.length;U++){const Y=N[U],oe=O[Y],Ee=S[Y];(Ee!==oe||Y==="value")&&o(b,Y,oe,Ee,m,c.children,h,_,Ie)}}x&1&&c.children!==u.children&&d(b,u.children)}else!v&&y==null&&te(b,u,O,S,h,_,m);((R=S.onVnodeUpdated)||E)&&ue(()=>{R&&Se(R,h,u,c),E&&ze(u,c,h,"updated")},_)},K=(c,u,h,_,m,C,v)=>{for(let b=0;b<u.length;b++){const x=c[b],y=u[b],E=x.el&&(x.type===me||!Ze(x,y)||x.shapeFlag&70)?p(x.el):h;P(x,y,E,null,_,m,C,v,!0)}},te=(c,u,h,_,m,C,v)=>{if(h!==_){if(h!==z)for(const b in h)!mt(b)&&!(b in _)&&o(c,b,h[b],null,v,u.children,m,C,Ie);for(const b in _){if(mt(b))continue;const x=_[b],y=h[b];x!==y&&b!=="value"&&o(c,b,y,x,v,u.children,m,C,Ie)}"value"in _&&o(c,"value",h.value,_.value,v)}},A=(c,u,h,_,m,C,v,b,x)=>{const y=u.el=c?c.el:l(""),E=u.anchor=c?c.anchor:l("");let{patchFlag:O,dynamicChildren:S,slotScopeIds:R}=u;R&&(b=b?b.concat(R):R),c==null?(s(y,h,_),s(E,h,_),M(u.children||[],h,E,m,C,v,b,x)):O>0&&O&64&&S&&c.dynamicChildren?(K(c.dynamicChildren,S,h,m,C,v,b),(u.key!=null||m&&u===m.subTree)&&_s(c,u,!0)):q(c,u,h,E,m,C,v,b,x)},X=(c,u,h,_,m,C,v,b,x)=>{u.slotScopeIds=b,c==null?u.shapeFlag&512?m.ctx.activate(u,h,_,v,x):pe(u,h,_,m,C,v,x):dt(c,u,x)},pe=(c,u,h,_,m,C,v)=>{const b=c.component=El(c,_,m);if(_n(c)&&(b.ctx.renderer=rt),wl(b),b.asyncDep){if(m&&m.registerDep(b,re),!c.el){const x=b.subTree=ce(ve);j(null,x,u,h)}}else re(b,c,u,h,m,C,v)},dt=(c,u,h)=>{const _=u.component=c.component;if(Pi(c,u,h))if(_.asyncDep&&!_.asyncResolved){Z(_,u,h);return}else _.next=u,xi(_.update),_.effect.dirty=!0,_.update();else u.el=c.el,_.vnode=u},re=(c,u,h,_,m,C,v)=>{const b=()=>{if(c.isMounted){let{next:E,bu:O,u:S,parent:R,vnode:N}=c;{const ot=fo(c);if(ot){E&&(E.el=N.el,Z(c,E,v)),ot.asyncDep.then(()=>{c.isUnmounted||b()});return}}let U=E,Y;Je(c,!1),E?(E.el=N.el,Z(c,E,v)):E=N,O&&Wt(O),(Y=E.props&&E.props.onVnodeBeforeUpdate)&&Se(Y,R,E,N),Je(c,!0);const oe=Sn(c),Ee=c.subTree;c.subTree=oe,P(Ee,oe,p(Ee.el),Ft(Ee),c,m,C),E.el=oe.el,U===null&&Oi(c,oe.el),S&&ue(S,m),(Y=E.props&&E.props.onVnodeUpdated)&&ue(()=>Se(Y,R,E,N),m)}else{let E;const{el:O,props:S}=u,{bm:R,m:N,parent:U}=c,Y=bt(u);if(Je(c,!1),R&&Wt(R),!Y&&(E=S&&S.onVnodeBeforeMount)&&Se(E,U,u),Je(c,!0),O&&Tn){const oe=()=>{c.subTree=Sn(c),Tn(O,c.subTree,c,m,null)};Y?u.type.__asyncLoader().then(()=>!c.isUnmounted&&oe()):oe()}else{const oe=c.subTree=Sn(c);P(null,oe,h,_,c,m,C),u.el=oe.el}if(N&&ue(N,m),!Y&&(E=S&&S.onVnodeMounted)){const oe=u;ue(()=>Se(E,U,oe),m)}(u.shapeFlag&256||U&&bt(U.vnode)&&U.vnode.shapeFlag&256)&&c.a&&ue(c.a,m),c.isMounted=!0,u=h=_=null}},x=c.effect=new ns(b,Ce,()=>as(y),c.scope),y=c.update=()=>{x.dirty&&x.run()};y.id=c.uid,Je(c,!0),y()},Z=(c,u,h)=>{u.component=c;const _=c.vnode.props;c.vnode=u,c.next=null,ol(c,u.props,_,h),cl(c,u.children,h),nt(),Ls(c),st()},q=(c,u,h,_,m,C,v,b,x=!1)=>{const y=c&&c.children,E=c?c.shapeFlag:0,O=u.children,{patchFlag:S,shapeFlag:R}=u;if(S>0){if(S&128){Lt(y,O,h,_,m,C,v,b,x);return}else if(S&256){Ge(y,O,h,_,m,C,v,b,x);return}}R&8?(E&16&&Ie(y,m,C),O!==y&&d(h,O)):E&16?R&16?Lt(y,O,h,_,m,C,v,b,x):Ie(y,m,C,!0):(E&8&&d(h,""),R&16&&M(O,h,_,m,C,v,b,x))},Ge=(c,u,h,_,m,C,v,b,x)=>{c=c||it,u=u||it;const y=c.length,E=u.length,O=Math.min(y,E);let S;for(S=0;S<O;S++){const R=u[S]=x?De(u[S]):Pe(u[S]);P(c[S],R,h,null,m,C,v,b,x)}y>E?Ie(c,m,C,!0,!1,O):M(u,h,_,m,C,v,b,x,O)},Lt=(c,u,h,_,m,C,v,b,x)=>{let y=0;const E=u.length;let O=c.length-1,S=E-1;for(;y<=O&&y<=S;){const R=c[y],N=u[y]=x?De(u[y]):Pe(u[y]);if(Ze(R,N))P(R,N,h,null,m,C,v,b,x);else break;y++}for(;y<=O&&y<=S;){const R=c[O],N=u[S]=x?De(u[S]):Pe(u[S]);if(Ze(R,N))P(R,N,h,null,m,C,v,b,x);else break;O--,S--}if(y>O){if(y<=S){const R=S+1,N=R<E?u[R].el:_;for(;y<=S;)P(null,u[y]=x?De(u[y]):Pe(u[y]),h,N,m,C,v,b,x),y++}}else if(y>S)for(;y<=O;)Te(c[y],m,C,!0),y++;else{const R=y,N=y,U=new Map;for(y=N;y<=S;y++){const ge=u[y]=x?De(u[y]):Pe(u[y]);ge.key!=null&&U.set(ge.key,y)}let Y,oe=0;const Ee=S-N+1;let ot=!1,xs=0;const ht=new Array(Ee);for(y=0;y<Ee;y++)ht[y]=0;for(y=R;y<=O;y++){const ge=c[y];if(oe>=Ee){Te(ge,m,C,!0);continue}let Ae;if(ge.key!=null)Ae=U.get(ge.key);else for(Y=N;Y<=S;Y++)if(ht[Y-N]===0&&Ze(ge,u[Y])){Ae=Y;break}Ae===void 0?Te(ge,m,C,!0):(ht[Ae-N]=y+1,Ae>=xs?xs=Ae:ot=!0,P(ge,u[Ae],h,null,m,C,v,b,x),oe++)}const vs=ot?dl(ht):it;for(Y=vs.length-1,y=Ee-1;y>=0;y--){const ge=N+y,Ae=u[ge],Es=ge+1<E?u[ge+1].el:_;ht[y]===0?P(null,Ae,h,Es,m,C,v,b,x):ot&&(Y<0||y!==vs[Y]?qe(Ae,h,Es,2):Y--)}}},qe=(c,u,h,_,m=null)=>{const{el:C,type:v,transition:b,children:x,shapeFlag:y}=c;if(y&6){qe(c.component.subTree,u,h,_);return}if(y&128){c.suspense.move(u,h,_);return}if(y&64){v.move(c,u,h,rt);return}if(v===me){s(C,u,h);for(let O=0;O<x.length;O++)qe(x[O],u,h,_);s(c.anchor,u,h);return}if(v===Rn){$(c,u,h);return}if(_!==2&&y&1&&b)if(_===0)b.beforeEnter(C),s(C,u,h),ue(()=>b.enter(C),m);else{const{leave:O,delayLeave:S,afterLeave:R}=b,N=()=>s(C,u,h),U=()=>{O(C,()=>{N(),R&&R()})};S?S(C,N,U):U()}else s(C,u,h)},Te=(c,u,h,_=!1,m=!1)=>{const{type:C,props:v,ref:b,children:x,dynamicChildren:y,shapeFlag:E,patchFlag:O,dirs:S}=c;if(b!=null&&qn(b,null,h,c,!0),E&256){u.ctx.deactivate(c);return}const R=E&1&&S,N=!bt(c);let U;if(N&&(U=v&&v.onVnodeBeforeUnmount)&&Se(U,u,c),E&6)Mo(c.component,h,_);else{if(E&128){c.suspense.unmount(h,_);return}R&&ze(c,null,u,"beforeUnmount"),E&64?c.type.remove(c,u,h,m,rt,_):y&&(C!==me||O>0&&O&64)?Ie(y,u,h,!1,!0):(C===me&&O&384||!m&&E&16)&&Ie(x,u,h),_&&bs(c)}(N&&(U=v&&v.onVnodeUnmounted)||R)&&ue(()=>{U&&Se(U,u,c),R&&ze(c,null,u,"unmounted")},h)},bs=c=>{const{type:u,el:h,anchor:_,transition:m}=c;if(u===me){Oo(h,_);return}if(u===Rn){D(c);return}const C=()=>{r(h),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(c.shapeFlag&1&&m&&!m.persisted){const{leave:v,delayLeave:b}=m,x=()=>v(h,C);b?b(c.el,C,x):x()}else C()},Oo=(c,u)=>{let h;for(;c!==u;)h=g(c),r(c),c=h;r(u)},Mo=(c,u,h)=>{const{bum:_,scope:m,update:C,subTree:v,um:b}=c;_&&Wt(_),m.stop(),C&&(C.active=!1,Te(v,c,u,h)),b&&ue(b,u),ue(()=>{c.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},Ie=(c,u,h,_=!1,m=!1,C=0)=>{for(let v=C;v<c.length;v++)Te(c[v],u,h,_,m)},Ft=c=>c.shapeFlag&6?Ft(c.component.subTree):c.shapeFlag&128?c.suspense.next():g(c.anchor||c.el);let En=!1;const Cs=(c,u,h)=>{c==null?u._vnode&&Te(u._vnode,null,null,!0):P(u._vnode||null,c,u,null,null,null,h),En||(En=!0,Ls(),Dr(),En=!1),u._vnode=c},rt={p:P,um:Te,m:qe,r:bs,mt:pe,mc:M,pc:q,pbc:K,n:Ft,o:e};let wn,Tn;return t&&([wn,Tn]=t(rt)),{render:Cs,hydrate:wn,createApp:nl(Cs,wn)}}function In({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Je({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function al(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function _s(e,t,n=!1){const s=e.children,r=t.children;if(T(s)&&T(r))for(let o=0;o<s.length;o++){const i=s[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=De(r[o]),l.el=i.el),n||_s(i,l)),l.type===yn&&(l.el=i.el)}}function dl(e){const t=e.slice(),n=[0];let s,r,o,i,l;const f=e.length;for(s=0;s<f;s++){const a=e[s];if(a!==0){if(r=n[n.length-1],e[r]<a){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<a?o=l+1:i=l;a<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function fo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:fo(t)}const hl=e=>e.__isTeleport,vt=e=>e&&(e.disabled||e.disabled===""),Ws=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ks=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,zn=(e,t)=>{const n=e&&e.to;return ee(n)?t?t(n):null:n},pl={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,i,l,f,a){const{mc:d,pc:p,pbc:g,o:{insert:w,querySelector:F,createText:P,createComment:G}}=a,j=vt(t.props);let{shapeFlag:ne,children:$,dynamicChildren:D}=t;if(e==null){const W=t.el=P(""),I=t.anchor=P("");w(W,n,s),w(I,n,s);const J=t.target=zn(t.props,F),M=t.targetAnchor=P("");J&&(w(M,J),i==="svg"||Ws(J)?i="svg":(i==="mathml"||ks(J))&&(i="mathml"));const B=(K,te)=>{ne&16&&d($,K,te,r,o,i,l,f)};j?B(n,I):J&&B(J,M)}else{t.el=e.el;const W=t.anchor=e.anchor,I=t.target=e.target,J=t.targetAnchor=e.targetAnchor,M=vt(e.props),B=M?n:I,K=M?W:J;if(i==="svg"||Ws(I)?i="svg":(i==="mathml"||ks(I))&&(i="mathml"),D?(g(e.dynamicChildren,D,B,r,o,i,l),_s(e,t,!0)):f||p(e,t,B,K,r,o,i,l,!1),j)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Bt(t,n,W,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const te=t.target=zn(t.props,F);te&&Bt(t,te,null,a,0)}else M&&Bt(t,I,J,a,1)}uo(t)},remove(e,t,n,s,{um:r,o:{remove:o}},i){const{shapeFlag:l,children:f,anchor:a,targetAnchor:d,target:p,props:g}=e;if(p&&o(d),i&&o(a),l&16){const w=i||!vt(g);for(let F=0;F<f.length;F++){const P=f[F];r(P,t,n,w,!!P.dynamicChildren)}}},move:Bt,hydrate:gl};function Bt(e,t,n,{o:{insert:s},m:r},o=2){o===0&&s(e.targetAnchor,t,n);const{el:i,anchor:l,shapeFlag:f,children:a,props:d}=e,p=o===2;if(p&&s(i,t,n),(!p||vt(d))&&f&16)for(let g=0;g<a.length;g++)r(a[g],t,n,2);p&&s(l,t,n)}function gl(e,t,n,s,r,o,{o:{nextSibling:i,parentNode:l,querySelector:f}},a){const d=t.target=zn(t.props,f);if(d){const p=d._lpa||d.firstChild;if(t.shapeFlag&16)if(vt(t.props))t.anchor=a(i(e),t,l(e),n,s,r,o),t.targetAnchor=p;else{t.anchor=i(e);let g=p;for(;g;)if(g=i(g),g&&g.nodeType===8&&g.data==="teleport anchor"){t.targetAnchor=g,d._lpa=t.targetAnchor&&i(t.targetAnchor);break}a(p,t,d,n,s,r,o)}uo(t)}return t.anchor&&i(t.anchor)}const Ac=pl;function uo(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const me=Symbol.for("v-fgt"),yn=Symbol.for("v-txt"),ve=Symbol.for("v-cmt"),Rn=Symbol.for("v-stc"),Et=[];let we=null;function ao(e=!1){Et.push(we=e?null:[])}function _l(){Et.pop(),we=Et[Et.length-1]||null}let Ot=1;function Gs(e){Ot+=e}function ho(e){return e.dynamicChildren=Ot>0?we||it:null,_l(),Ot>0&&we&&we.push(e),e}function Sc(e,t,n,s,r,o){return ho(_o(e,t,n,s,r,o,!0))}function po(e,t,n,s,r){return ho(ce(e,t,n,s,r,!0))}function Zt(e){return e?e.__v_isVNode===!0:!1}function Ze(e,t){return e.type===t.type&&e.key===t.key}const bn="__vInternal",go=({key:e})=>e??null,Gt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ee(e)||he(e)||L(e)?{i:se,r:e,k:t,f:!!n}:e:null);function _o(e,t=null,n=null,s=0,r=null,o=e===me?0:1,i=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&go(t),ref:t&&Gt(t),scopeId:Ur,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:se};return l?(ms(f,n),o&128&&e.normalize(f)):n&&(f.shapeFlag|=ee(n)?8:16),Ot>0&&!i&&we&&(f.patchFlag>0||o&6)&&f.patchFlag!==32&&we.push(f),f}const ce=ml;function ml(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Wr)&&(e=ve),Zt(e)){const l=ke(e,t,!0);return n&&ms(l,n),Ot>0&&!o&&we&&(l.shapeFlag&6?we[we.indexOf(e)]=l:we.push(l)),l.patchFlag|=-2,l}if(Pl(e)&&(e=e.__vccOpts),t){t=yl(t);let{class:l,style:f}=t;l&&!ee(l)&&(t.class=cn(l)),k(f)&&(Lr(f)&&!T(f)&&(f=Q({},f)),t.style=ln(f))}const i=ee(e)?1:Mi(e)?128:hl(e)?64:k(e)?4:L(e)?2:0;return _o(e,t,n,s,r,i,o,!0)}function yl(e){return e?Lr(e)||bn in e?Q({},e):e:null}function ke(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,l=t?Cl(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&go(l),ref:t&&t.ref?n&&r?T(r)?r.concat(Gt(t)):[r,Gt(t)]:Gt(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ke(e.ssContent),ssFallback:e.ssFallback&&ke(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function bl(e=" ",t=0){return ce(yn,null,e,t)}function Pc(e="",t=!1){return t?(ao(),po(ve,null,e)):ce(ve,null,e)}function Pe(e){return e==null||typeof e=="boolean"?ce(ve):T(e)?ce(me,null,e.slice()):typeof e=="object"?De(e):ce(yn,null,String(e))}function De(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ke(e)}function ms(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(T(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),ms(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(bn in t)?t._ctx=se:r===3&&se&&(se.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else L(t)?(t={default:t,_ctx:se},n=32):(t=String(t),s&64?(n=16,t=[bl(t)]):n=8);e.children=t,e.shapeFlag|=n}function Cl(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=cn([t.class,s.class]));else if(r==="style")t.style=ln([t.style,s.style]);else if(nn(r)){const o=t[r],i=s[r];i&&o!==i&&!(T(o)&&o.includes(i))&&(t[r]=o?[].concat(o,i):i)}else r!==""&&(t[r]=s[r])}return t}function Se(e,t,n,s=null){xe(e,t,7,[n,s])}const xl=so();let vl=0;function El(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||xl,o={uid:vl++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Wo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:oo(s,r),emitsOptions:Br(s,r),emit:null,emitted:null,propsDefaults:z,inheritAttrs:s.inheritAttrs,ctx:z,data:z,props:z,attrs:z,slots:z,refs:z,setupState:z,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=wi.bind(null,o),e.ce&&e.ce(o),o}let ie=null;const Cn=()=>ie||se;let Qt,Jn;{const e=_r(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};Qt=t("__VUE_INSTANCE_SETTERS__",n=>ie=n),Jn=t("__VUE_SSR_SETTERS__",n=>xn=n)}const Rt=e=>{const t=ie;return Qt(e),e.scope.on(),()=>{e.scope.off(),Qt(t)}},qs=()=>{ie&&ie.scope.off(),Qt(null)};function mo(e){return e.vnode.shapeFlag&4}let xn=!1;function wl(e,t=!1){t&&Jn(t);const{props:n,children:s}=e.vnode,r=mo(e);rl(e,n,r,t),ll(e,s);const o=r?Tl(e,t):void 0;return t&&Jn(!1),o}function Tl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Fr(new Proxy(e.ctx,zi));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?bo(e):null,o=Rt(e);nt();const i=Ue(s,e,0,[e.props,r]);if(st(),o(),hr(i)){if(i.then(qs,qs),t)return i.then(l=>{zs(e,l,t)}).catch(l=>{hn(l,e,0)});e.asyncDep=i}else zs(e,i,t)}else yo(e,t)}function zs(e,t,n){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:k(t)&&(e.setupState=Hr(t)),yo(e,n)}let Js;function yo(e,t,n){const s=e.type;if(!e.render){if(!t&&Js&&!s.render){const r=s.template||ps(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:f}=s,a=Q(Q({isCustomElement:o,delimiters:l},i),f);s.render=Js(r,a)}}e.render=s.render||Ce}{const r=Rt(e);nt();try{Yi(e)}finally{st(),r()}}}function Al(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return de(e,"get","$attrs"),t[n]}}))}function bo(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Al(e)},slots:e.slots,emit:e.emit,expose:t}}function vn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Hr(Fr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ct)return Ct[n](e)},has(t,n){return n in t||n in Ct}}))}function Sl(e,t=!0){return L(e)?e.displayName||e.name:e.name||t&&e.__name}function Pl(e){return L(e)&&"__vccOpts"in e}const Ol=(e,t)=>hi(e,t,xn);function Oc(e,t,n=z){const s=Cn(),r=ae(t),o=be(t),i=yi((f,a)=>{let d;return Fi(()=>{const p=e[t];Me(d,p)&&(d=p,a())}),{get(){return f(),n.get?n.get(d):d},set(p){const g=s.vnode.props;!(g&&(t in g||r in g||o in g)&&(`onUpdate:${t}`in g||`onUpdate:${r}`in g||`onUpdate:${o}`in g))&&Me(p,d)&&(d=p,a()),s.emit(`update:${t}`,n.set?n.set(p):p)}}}),l=t==="modelValue"?"modelModifiers":`${t}Modifiers`;return i[Symbol.iterator]=()=>{let f=0;return{next(){return f<2?{value:f++?e[l]||{}:i,done:!1}:{done:!0}}}},i}function Ml(e,t,n){const s=arguments.length;return s===2?k(t)&&!T(t)?Zt(t)?ce(e,null,[t]):ce(e,t):ce(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Zt(n)&&(n=[n]),ce(e,t,n))}const Il="3.4.19";/**
14
+ * @vue/runtime-dom v3.4.19
15
15
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
16
  * @license MIT
17
- **/const Fl="http://www.w3.org/2000/svg",Nl="http://www.w3.org/1998/Math/MathML",Ke=typeof document<"u"?document:null,Ys=Ke&&Ke.createElement("template"),Ll={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Ke.createElementNS(Fl,e):t==="mathml"?Ke.createElementNS(Nl,e):Ke.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ke.createTextNode(e),createComment:e=>Ke.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ke.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Ys.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const l=Ys.content;if(s==="svg"||s==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},$e="transition",pt="animation",at=Symbol("_vtc"),xo=(e,{slots:t})=>Il(Vi,Eo(e),t);xo.displayName="Transition";const vo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},$l=xo.props=Q({},Jr,vo),Ye=(e,t=[])=>{T(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xs=e=>e?T(e)?e.some(t=>t.length>1):e.length>1:!1;function Eo(e){const t={};for(const A in e)A in vo||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:f=o,appearActiveClass:a=i,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:w=`${n}-leave-to`}=e,N=Hl(r),O=N&&N[0],j=N&&N[1],{onBeforeEnter:D,onEnter:ne,onEnterCancelled:$,onLeave:K,onLeaveCancelled:k,onBeforeAppear:I=D,onAppear:J=ne,onAppearCancelled:M=$}=t,U=(A,X,pe)=>{He(A,X?d:l),He(A,X?a:i),pe&&pe()},B=(A,X)=>{A._isLeaving=!1,He(A,p),He(A,w),He(A,g),X&&X()},te=A=>(X,pe)=>{const dt=A?J:ne,re=()=>U(X,A,pe);Ye(dt,[X,re]),Zs(()=>{He(X,A?f:o),Re(X,A?d:l),Xs(dt)||Qs(X,s,O,re)})};return Q(t,{onBeforeEnter(A){Ye(D,[A]),Re(A,o),Re(A,i)},onBeforeAppear(A){Ye(I,[A]),Re(A,f),Re(A,a)},onEnter:te(!1),onAppear:te(!0),onLeave(A,X){A._isLeaving=!0;const pe=()=>B(A,X);Re(A,p),To(),Re(A,g),Zs(()=>{A._isLeaving&&(He(A,p),Re(A,w),Xs(K)||Qs(A,s,j,pe))}),Ye(K,[A,pe])},onEnterCancelled(A){U(A,!1),Ye($,[A])},onAppearCancelled(A){U(A,!0),Ye(M,[A])},onLeaveCancelled(A){B(A),Ye(k,[A])}})}function Hl(e){if(e==null)return null;if(G(e))return[Rn(e.enter),Rn(e.leave)];{const t=Rn(e);return[t,t]}}function Rn(e){return $n(e)}function Re(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[at]||(e[at]=new Set)).add(t)}function He(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[at];n&&(n.delete(t),n.size||(e[at]=void 0))}function Zs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Vl=0;function Qs(e,t,n,s){const r=e._endId=++Vl,o=()=>{r===e._endId&&s()};if(n)return setTimeout(o,n);const{type:i,timeout:l,propCount:f}=wo(e,t);if(!i)return s();const a=i+"end";let d=0;const p=()=>{e.removeEventListener(a,g),o()},g=w=>{w.target===e&&++d>=f&&p()};setTimeout(()=>{d<f&&p()},l+1),e.addEventListener(a,g)}function wo(e,t){const n=window.getComputedStyle(e),s=N=>(n[N]||"").split(", "),r=s(`${$e}Delay`),o=s(`${$e}Duration`),i=er(r,o),l=s(`${pt}Delay`),f=s(`${pt}Duration`),a=er(l,f);let d=null,p=0,g=0;t===$e?i>0&&(d=$e,p=i,g=o.length):t===pt?a>0&&(d=pt,p=a,g=f.length):(p=Math.max(i,a),d=p>0?i>a?$e:pt:null,g=d?d===$e?o.length:f.length:0);const w=d===$e&&/\b(transform|all)(,|$)/.test(s(`${$e}Property`).toString());return{type:d,timeout:p,propCount:g,hasTransform:w}}function er(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>tr(n)+tr(e[s])))}function tr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function To(){return document.body.offsetHeight}function jl(e,t,n){const s=e[at];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ms=Symbol("_vod"),Mc={beforeMount(e,{value:t},{transition:n}){e[ms]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):gt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),gt(e,!0),s.enter(e)):s.leave(e,()=>{gt(e,!1)}):gt(e,t))},beforeUnmount(e,{value:t}){gt(e,t)}};function gt(e,t){e.style.display=t?e[ms]:"none"}const Dl=Symbol("");function Kl(e,t,n){const s=e.style,r=s.display,o=ee(n);if(n&&!o){if(t&&!ee(t))for(const i in t)n[i]==null&&Jn(s,i,"");for(const i in n)Jn(s,i,n[i])}else if(o){if(t!==n){const i=s[Dl];i&&(n+=";"+i),s.cssText=n}}else t&&e.removeAttribute("style");ms in e&&(s.display=r)}const nr=/\s*!important$/;function Jn(e,t,n){if(T(n))n.forEach(s=>Jn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Bl(e,t);nr.test(n)?e.setProperty(be(s),n.replace(nr,""),"important"):e[s]=n}}const sr=["Webkit","Moz","ms"],Fn={};function Bl(e,t){const n=Fn[t];if(n)return n;let s=ae(t);if(s!=="filter"&&s in e)return Fn[t]=s;s=on(s);for(let r=0;r<sr.length;r++){const o=sr[r]+s;if(o in e)return Fn[t]=o}return t}const rr="http://www.w3.org/1999/xlink";function Ul(e,t,n,s,r){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(rr,t.slice(6,t.length)):e.setAttributeNS(rr,t,n);else{const o=Bo(t);n==null||o&&!mr(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function Wl(e,t,n,s,r,o,i){if(t==="innerHTML"||t==="textContent"){s&&i(s,r,o),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const a=l==="OPTION"?e.getAttribute("value"):e.value,d=n??"";a!==d&&(e.value=d),n==null&&e.removeAttribute(t);return}let f=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=mr(n):n==null&&a==="string"?(n="",f=!0):a==="number"&&(n=0,f=!0)}try{e[t]=n}catch{}f&&e.removeAttribute(t)}function Ao(e,t,n,s){e.addEventListener(t,n,s)}function kl(e,t,n,s){e.removeEventListener(t,n,s)}const or=Symbol("_vei");function Gl(e,t,n,s,r=null){const o=e[or]||(e[or]={}),i=o[t];if(s&&i)i.value=s;else{const[l,f]=ql(t);if(s){const a=o[t]=Yl(s,r);Ao(e,l,a,f)}else i&&(kl(e,l,i,f),o[t]=void 0)}}const ir=/(?:Once|Passive|Capture)$/;function ql(e){let t;if(ir.test(e)){t={};let s;for(;s=e.match(ir);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):be(e.slice(2)),t]}let Nn=0;const zl=Promise.resolve(),Jl=()=>Nn||(zl.then(()=>Nn=0),Nn=Date.now());function Yl(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;xe(Xl(s,n.value),t,5,[s])};return n.value=e,n.attached=Jl(),n}function Xl(e,t){if(T(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const lr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Zl=(e,t,n,s,r,o,i,l,f)=>{const a=r==="svg";t==="class"?jl(e,s,a):t==="style"?Kl(e,n,s):nn(t)?Xn(t)||Gl(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ql(e,t,s,a))?Wl(e,t,s,o,i,l,f):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ul(e,t,s,a))};function Ql(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&lr(t)&&F(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return lr(t)&&ee(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Ic(e,t){const n=ji(e);class s extends ys{constructor(o){super(n,o,t)}}return s.def=n,s}const ec=typeof HTMLElement<"u"?HTMLElement:class{};class ys extends ec{constructor(t,n={},s){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),fs(()=>{this._connected||(dr(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);this._ob=new MutationObserver(s=>{for(const r of s)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(s,r=!1)=>{const{props:o,styles:i}=s;let l;if(o&&!T(o))for(const f in o){const a=o[f];(a===Number||a&&a.type===Number)&&(f in this._props&&(this._props[f]=$n(this._props[f])),(l||(l=Object.create(null)))[ae(f)]=!0)}this._numberProps=l,r&&this._resolveProps(s),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(s=>t(s,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,s=T(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&s.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of s.map(ae))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(o){this._setProp(r,o)}})}_setAttr(t){let n=this.getAttribute(t);const s=ae(t);this._numberProps&&this._numberProps[s]&&(n=$n(n)),this._setProp(s,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,s=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),s&&(n===!0?this.setAttribute(be(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(be(t),n+""):n||this.removeAttribute(be(t))))}_update(){dr(this._createVNode(),this.shadowRoot)}_createVNode(){const t=ce(this._def,Q({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const s=(o,i)=>{this.dispatchEvent(new CustomEvent(o,{detail:i}))};n.emit=(o,...i)=>{s(o,i),be(o)!==o&&s(be(o),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof ys){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const s=document.createElement("style");s.textContent=n,this.shadowRoot.appendChild(s)})}}const So=new WeakMap,Po=new WeakMap,en=Symbol("_moveCb"),cr=Symbol("_enterCb"),Oo={name:"TransitionGroup",props:Q({},$l,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=bn(),s=zr();let r,o;return Qr(()=>{if(!r.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!oc(r[0].el,n.vnode.el,i))return;r.forEach(nc),r.forEach(sc);const l=r.filter(rc);To(),l.forEach(f=>{const a=f.el,d=a.style;Re(a,i),d.transform=d.webkitTransform=d.transitionDuration="";const p=a[en]=g=>{g&&g.target!==a||(!g||/transform$/.test(g.propertyName))&&(a.removeEventListener("transitionend",p),a[en]=null,He(a,i))};a.addEventListener("transitionend",p)})}),()=>{const i=V(e),l=Eo(i);let f=i.tag||me;r=o,o=t.default?ds(t.default()):[];for(let a=0;a<o.length;a++){const d=o[a];d.key!=null&&St(d,At(d,l,s,n))}if(r)for(let a=0;a<r.length;a++){const d=r[a];St(d,At(d,l,s,n)),So.set(d,d.el.getBoundingClientRect())}return ce(f,null,o)}}},tc=e=>delete e.mode;Oo.props;const Rc=Oo;function nc(e){const t=e.el;t[en]&&t[en](),t[cr]&&t[cr]()}function sc(e){Po.set(e,e.el.getBoundingClientRect())}function rc(e){const t=So.get(e),n=Po.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${s}px,${r}px)`,o.transitionDuration="0s",e}}function oc(e,t,n){const s=e.cloneNode(),r=e[at];r&&r.forEach(l=>{l.split(/\s+/).forEach(f=>f&&s.classList.remove(f))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:i}=wo(s);return o.removeChild(s),i}const fr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return T(t)?n=>Ut(t,n):t},Ln=Symbol("_assign"),Fc={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=sn(t);Ao(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?es(tn(i)):tn(i));e[Ln](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,fs(()=>{e._assigning=!1})}),e[Ln]=fr(s)},mounted(e,{value:t,oldValue:n,modifiers:{number:s}}){ur(e,t,n,s)},beforeUpdate(e,t,n){e[Ln]=fr(n)},updated(e,{value:t,oldValue:n,modifiers:{number:s}}){e._assigning||ur(e,t,n,s)}};function ur(e,t,n,s){const r=e.multiple,o=T(t);if(!(r&&!o&&!sn(t))&&!(o&&vt(t,n))){for(let i=0,l=e.options.length;i<l;i++){const f=e.options[i],a=tn(f);if(r)if(o){const d=typeof a;d==="string"||d==="number"?f.selected=t.includes(s?es(a):a):f.selected=Wo(t,a)>-1}else f.selected=t.has(a);else if(vt(tn(f),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function tn(e){return"_value"in e?e._value:e.value}const ic=["ctrl","shift","alt","meta"],lc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ic.some(n=>e[`${n}Key`]&&!t.includes(n))},Nc=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i<t.length;i++){const l=lc[t[i]];if(l&&l(r,t))return}return e(r,...o)})},cc=Q({patchProp:Zl},Ll);let ar;function fc(){return ar||(ar=ul(cc))}const dr=(...e)=>{fc().render(...e)},Lc=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n};export{rl as $,Mc as A,xo as B,Cl as C,eo as D,Tc as E,me as F,Lr as G,Sn as H,Oc as I,Qr as J,uc as K,bl as L,Wt as M,yc as N,Ac as O,bi as P,gc as Q,V as R,he as S,Rc as T,to as U,Fr as V,bn as W,_c as X,qo as Y,dc as Z,Lc as _,mo as a,xc as a0,Ec as a1,fs as a2,ke as a3,hc as a4,Fc as a5,Ui as a6,Ml as b,Sc as c,Pc as d,go as e,vc as f,mc as g,os as h,Zr as i,ce as j,Cc as k,Nc as l,xl as m,cn as n,ho as o,Ic as p,ji as q,pc as r,Il as s,ac as t,wc as u,_i as v,Ai as w,pi as x,ln as y,bc as z};
17
+ **/const Rl="http://www.w3.org/2000/svg",Ll="http://www.w3.org/1998/Math/MathML",Ke=typeof document<"u"?document:null,Ys=Ke&&Ke.createElement("template"),Fl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Ke.createElementNS(Rl,e):t==="mathml"?Ke.createElementNS(Ll,e):Ke.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ke.createTextNode(e),createComment:e=>Ke.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ke.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Ys.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const l=Ys.content;if(s==="svg"||s==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},$e="transition",pt="animation",at=Symbol("_vtc"),Co=(e,{slots:t})=>Ml(Hi,vo(e),t);Co.displayName="Transition";const xo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Nl=Co.props=Q({},zr,xo),Ye=(e,t=[])=>{T(e)?e.forEach(n=>n(...t)):e&&e(...t)},Xs=e=>e?T(e)?e.some(t=>t.length>1):e.length>1:!1;function vo(e){const t={};for(const A in e)A in xo||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:f=o,appearActiveClass:a=i,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:w=`${n}-leave-to`}=e,F=$l(r),P=F&&F[0],G=F&&F[1],{onBeforeEnter:j,onEnter:ne,onEnterCancelled:$,onLeave:D,onLeaveCancelled:W,onBeforeAppear:I=j,onAppear:J=ne,onAppearCancelled:M=$}=t,B=(A,X,pe)=>{He(A,X?d:l),He(A,X?a:i),pe&&pe()},K=(A,X)=>{A._isLeaving=!1,He(A,p),He(A,w),He(A,g),X&&X()},te=A=>(X,pe)=>{const dt=A?J:ne,re=()=>B(X,A,pe);Ye(dt,[X,re]),Zs(()=>{He(X,A?f:o),Re(X,A?d:l),Xs(dt)||Qs(X,s,P,re)})};return Q(t,{onBeforeEnter(A){Ye(j,[A]),Re(A,o),Re(A,i)},onBeforeAppear(A){Ye(I,[A]),Re(A,f),Re(A,a)},onEnter:te(!1),onAppear:te(!0),onLeave(A,X){A._isLeaving=!0;const pe=()=>K(A,X);Re(A,p),wo(),Re(A,g),Zs(()=>{A._isLeaving&&(He(A,p),Re(A,w),Xs(D)||Qs(A,s,G,pe))}),Ye(D,[A,pe])},onEnterCancelled(A){B(A,!1),Ye($,[A])},onAppearCancelled(A){B(A,!0),Ye(M,[A])},onLeaveCancelled(A){K(A),Ye(W,[A])}})}function $l(e){if(e==null)return null;if(k(e))return[Ln(e.enter),Ln(e.leave)];{const t=Ln(e);return[t,t]}}function Ln(e){return Hn(e)}function Re(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[at]||(e[at]=new Set)).add(t)}function He(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[at];n&&(n.delete(t),n.size||(e[at]=void 0))}function Zs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Hl=0;function Qs(e,t,n,s){const r=e._endId=++Hl,o=()=>{r===e._endId&&s()};if(n)return setTimeout(o,n);const{type:i,timeout:l,propCount:f}=Eo(e,t);if(!i)return s();const a=i+"end";let d=0;const p=()=>{e.removeEventListener(a,g),o()},g=w=>{w.target===e&&++d>=f&&p()};setTimeout(()=>{d<f&&p()},l+1),e.addEventListener(a,g)}function Eo(e,t){const n=window.getComputedStyle(e),s=F=>(n[F]||"").split(", "),r=s(`${$e}Delay`),o=s(`${$e}Duration`),i=er(r,o),l=s(`${pt}Delay`),f=s(`${pt}Duration`),a=er(l,f);let d=null,p=0,g=0;t===$e?i>0&&(d=$e,p=i,g=o.length):t===pt?a>0&&(d=pt,p=a,g=f.length):(p=Math.max(i,a),d=p>0?i>a?$e:pt:null,g=d?d===$e?o.length:f.length:0);const w=d===$e&&/\b(transform|all)(,|$)/.test(s(`${$e}Property`).toString());return{type:d,timeout:p,propCount:g,hasTransform:w}}function er(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>tr(n)+tr(e[s])))}function tr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function wo(){return document.body.offsetHeight}function Vl(e,t,n){const s=e[at];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Mt=Symbol("_vod"),Mc={beforeMount(e,{value:t},{transition:n}){e[Mt]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):gt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t==!n&&(e.style.display===e[Mt]||!t)||(s?t?(s.beforeEnter(e),gt(e,!0),s.enter(e)):s.leave(e,()=>{gt(e,!1)}):gt(e,t))},beforeUnmount(e,{value:t}){gt(e,t)}};function gt(e,t){e.style.display=t?e[Mt]:"none"}const jl=Symbol(""),Dl=/(^|;)\s*display\s*:/;function Kl(e,t,n){const s=e.style,r=ee(n),o=s.display;let i=!1;if(n&&!r){if(t&&!ee(t))for(const l in t)n[l]==null&&Yn(s,l,"");for(const l in n)l==="display"&&(i=!0),Yn(s,l,n[l])}else if(r){if(t!==n){const l=s[jl];l&&(n+=";"+l),s.cssText=n,i=Dl.test(n)}}else t&&e.removeAttribute("style");Mt in e&&(e[Mt]=i?s.display:"",s.display=o)}const nr=/\s*!important$/;function Yn(e,t,n){if(T(n))n.forEach(s=>Yn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Bl(e,t);nr.test(n)?e.setProperty(be(s),n.replace(nr,""),"important"):e[s]=n}}const sr=["Webkit","Moz","ms"],Fn={};function Bl(e,t){const n=Fn[t];if(n)return n;let s=ae(t);if(s!=="filter"&&s in e)return Fn[t]=s;s=on(s);for(let r=0;r<sr.length;r++){const o=sr[r]+s;if(o in e)return Fn[t]=o}return t}const rr="http://www.w3.org/1999/xlink";function Ul(e,t,n,s,r){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(rr,t.slice(6,t.length)):e.setAttributeNS(rr,t,n);else{const o=Ko(t);n==null||o&&!mr(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function Wl(e,t,n,s,r,o,i){if(t==="innerHTML"||t==="textContent"){s&&i(s,r,o),e[t]=n??"";return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){e._value=n;const a=l==="OPTION"?e.getAttribute("value"):e.value,d=n??"";a!==d&&(e.value=d),n==null&&e.removeAttribute(t);return}let f=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=mr(n):n==null&&a==="string"?(n="",f=!0):a==="number"&&(n=0,f=!0)}try{e[t]=n}catch{}f&&e.removeAttribute(t)}function To(e,t,n,s){e.addEventListener(t,n,s)}function kl(e,t,n,s){e.removeEventListener(t,n,s)}const or=Symbol("_vei");function Gl(e,t,n,s,r=null){const o=e[or]||(e[or]={}),i=o[t];if(s&&i)i.value=s;else{const[l,f]=ql(t);if(s){const a=o[t]=Yl(s,r);To(e,l,a,f)}else i&&(kl(e,l,i,f),o[t]=void 0)}}const ir=/(?:Once|Passive|Capture)$/;function ql(e){let t;if(ir.test(e)){t={};let s;for(;s=e.match(ir);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):be(e.slice(2)),t]}let Nn=0;const zl=Promise.resolve(),Jl=()=>Nn||(zl.then(()=>Nn=0),Nn=Date.now());function Yl(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;xe(Xl(s,n.value),t,5,[s])};return n.value=e,n.attached=Jl(),n}function Xl(e,t){if(T(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const lr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Zl=(e,t,n,s,r,o,i,l,f)=>{const a=r==="svg";t==="class"?Vl(e,s,a):t==="style"?Kl(e,n,s):nn(t)?Zn(t)||Gl(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ql(e,t,s,a))?Wl(e,t,s,o,i,l,f):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ul(e,t,s,a))};function Ql(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&lr(t)&&L(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return lr(t)&&ee(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function Ic(e,t){const n=Vi(e);class s extends ys{constructor(o){super(n,o,t)}}return s.def=n,s}const ec=typeof HTMLElement<"u"?HTMLElement:class{};class ys extends ec{constructor(t,n={},s){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),us(()=>{this._connected||(dr(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);this._ob=new MutationObserver(s=>{for(const r of s)this._setAttr(r.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(s,r=!1)=>{const{props:o,styles:i}=s;let l;if(o&&!T(o))for(const f in o){const a=o[f];(a===Number||a&&a.type===Number)&&(f in this._props&&(this._props[f]=Hn(this._props[f])),(l||(l=Object.create(null)))[ae(f)]=!0)}this._numberProps=l,r&&this._resolveProps(s),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(s=>t(s,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,s=T(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&s.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of s.map(ae))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(o){this._setProp(r,o)}})}_setAttr(t){let n=this.getAttribute(t);const s=ae(t);this._numberProps&&this._numberProps[s]&&(n=Hn(n)),this._setProp(s,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,s=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),s&&(n===!0?this.setAttribute(be(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(be(t),n+""):n||this.removeAttribute(be(t))))}_update(){dr(this._createVNode(),this.shadowRoot)}_createVNode(){const t=ce(this._def,Q({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const s=(o,i)=>{this.dispatchEvent(new CustomEvent(o,{detail:i}))};n.emit=(o,...i)=>{s(o,i),be(o)!==o&&s(be(o),i)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof ys){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const s=document.createElement("style");s.textContent=n,this.shadowRoot.appendChild(s)})}}const Ao=new WeakMap,So=new WeakMap,en=Symbol("_moveCb"),cr=Symbol("_enterCb"),Po={name:"TransitionGroup",props:Q({},Nl,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Cn(),s=qr();let r,o;return Zr(()=>{if(!r.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!oc(r[0].el,n.vnode.el,i))return;r.forEach(nc),r.forEach(sc);const l=r.filter(rc);wo(),l.forEach(f=>{const a=f.el,d=a.style;Re(a,i),d.transform=d.webkitTransform=d.transitionDuration="";const p=a[en]=g=>{g&&g.target!==a||(!g||/transform$/.test(g.propertyName))&&(a.removeEventListener("transitionend",p),a[en]=null,He(a,i))};a.addEventListener("transitionend",p)})}),()=>{const i=V(e),l=vo(i);let f=i.tag||me;r=o,o=t.default?hs(t.default()):[];for(let a=0;a<o.length;a++){const d=o[a];d.key!=null&&Pt(d,St(d,l,s,n))}if(r)for(let a=0;a<r.length;a++){const d=r[a];Pt(d,St(d,l,s,n)),Ao.set(d,d.el.getBoundingClientRect())}return ce(f,null,o)}}},tc=e=>delete e.mode;Po.props;const Rc=Po;function nc(e){const t=e.el;t[en]&&t[en](),t[cr]&&t[cr]()}function sc(e){So.set(e,e.el.getBoundingClientRect())}function rc(e){const t=Ao.get(e),n=So.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${s}px,${r}px)`,o.transitionDuration="0s",e}}function oc(e,t,n){const s=e.cloneNode(),r=e[at];r&&r.forEach(l=>{l.split(/\s+/).forEach(f=>f&&s.classList.remove(f))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:i}=Eo(s);return o.removeChild(s),i}const fr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return T(t)?n=>Wt(t,n):t},$n=Symbol("_assign"),Lc={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=sn(t);To(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?ts(tn(i)):tn(i));e[$n](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,us(()=>{e._assigning=!1})}),e[$n]=fr(s)},mounted(e,{value:t,oldValue:n,modifiers:{number:s}}){ur(e,t,n,s)},beforeUpdate(e,t,n){e[$n]=fr(n)},updated(e,{value:t,oldValue:n,modifiers:{number:s}}){e._assigning||ur(e,t,n,s)}};function ur(e,t,n,s){const r=e.multiple,o=T(t);if(!(r&&!o&&!sn(t))){for(let i=0,l=e.options.length;i<l;i++){const f=e.options[i],a=tn(f);if(r)if(o){const d=typeof a;d==="string"||d==="number"?f.selected=t.includes(s?ts(a):a):f.selected=Uo(t,a)>-1}else f.selected=t.has(a);else if(fn(tn(f),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function tn(e){return"_value"in e?e._value:e.value}const ic=["ctrl","shift","alt","meta"],lc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ic.some(n=>e[`${n}Key`]&&!t.includes(n))},Fc=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i<t.length;i++){const l=lc[t[i]];if(l&&l(r,t))return}return e(r,...o)})},cc=Q({patchProp:Zl},Fl);let ar;function fc(){return ar||(ar=fl(cc))}const dr=(...e)=>{fc().render(...e)},Nc=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n};export{sl as $,Mc as A,Co as B,bl as C,Qr as D,Tc as E,me as F,Fr as G,Pn as H,Oc as I,Zr as J,uc as K,yl as L,kt as M,yc as N,Ac as O,yi as P,gc as Q,V as R,he as S,Rc as T,eo as U,Rr as V,Cn as W,_c as X,Go as Y,dc as Z,Nc as _,_o as a,xc as a0,Ec as a1,us as a2,ke as a3,hc as a4,Lc as a5,Bi as a6,Ol as b,Sc as c,Pc as d,po as e,vc as f,mc as g,is as h,Xr as i,ce as j,Cc as k,Fc as l,Cl as m,cn as n,ao as o,Ic as p,Vi as q,pc as r,Ml as s,ac as t,wc as u,gi as v,Ti as w,hi as x,ln as y,bc as z};
package/dist/map.js CHANGED
@@ -2025,4 +2025,4 @@ ${i.vertexSource}`;const f=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost(
2025
2025
  translate(${r.x}px,${r.y}px)
2026
2026
  `}_calculateXYTransform(){const e=this._pos,r=this._map,i=this.getPitchAlignment();if(!r||!e||i!=="map")return"";if(!r._showingGlobe()){const l=r.getPitch();return l?`rotateX(${l}deg)`:""}const o=xr(zg(r.transform,this._lngLat)),s=e.sub(Cg(r.transform)),n=Math.abs(s.x)+Math.abs(s.y);if(n===0)return"";const a=o/n;return`rotateX(${-s.y*a}deg) rotateY(${s.x*a}deg)`}_calculateZTransform(){const e=this._pos,r=this._map;if(!r||!e)return"";let i=0;const o=this.getRotationAlignment();if(o==="map")if(r._showingGlobe()){const s=r.project(new Ne(this._lngLat.lng,this._lngLat.lat+.001)),n=r.project(new Ne(this._lngLat.lng,this._lngLat.lat-.001)).sub(s);i=xr(Math.atan2(n.y,n.x))-90}else i=-r.getBearing();else if(o==="horizon"){const s=ki(4,6,r.getZoom()),n=Cg(r.transform);n.y+=s*r.transform.height;const a=e.sub(n),l=xr(Math.atan2(a.y,a.x));i=(l>90?l-270:l+90)*(1-s)}return i+=this._rotation,i?`rotateZ(${i}deg)`:""}_update(e){W.cancelAnimationFrame(this._updateFrameId);const r=this._map;r&&(r.transform.renderWorldCopies&&(this._lngLat=G1(this._lngLat,this._pos,r.transform)),this._pos=r.project(this._lngLat),e===!0?this._updateFrameId=W.requestAnimationFrame(()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())}):this._pos=this._pos.round(),r._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(r._showingGlobe()||r.getTerrain()||r.getFog())&&!this._fadeTimer&&(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))}))}getOffset(){return this._offset}setOffset(e){return this._offset=N.convert(e),this._update(),this}addClassName(e){return this._element.classList.add(e),this}removeClassName(e){return this._element.classList.remove(e),this}toggleClassName(e){return this._element.classList.toggle(e)}_onMove(e){const r=this._map;if(!r)return;const i=this._pointerdownPos,o=this._positionDelta;if(i&&o){if(!this._isDragging){const s=this._clickTolerance||r._clickTolerance;if(e.point.dist(i)<s)return;this._isDragging=!0}this._pos=e.point.sub(o),this._lngLat=r.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new ae("dragstart"))),this.fire(new ae("drag"))}}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1;const e=this._map;e&&(e.off("mousemove",this._onMove),e.off("touchmove",this._onMove)),this._state==="active"&&this.fire(new ae("dragend")),this._state="inactive"}_addDragHandler(e){const r=this._map,i=this._pos;r&&i&&this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(i),this._pointerdownPos=e.point,this._state="pending",r.on("mousemove",this._onMove),r.on("touchmove",this._onMove),r.once("mouseup",this._onUp),r.once("touchend",this._onUp))}setDraggable(e){this._draggable=!!e;const r=this._map;return r&&(e?(r.on("mousedown",this._addDragHandler),r.on("touchstart",this._addDragHandler)):(r.off("mousedown",this._addDragHandler),r.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment==="auto"||this._rotationAlignment==="horizon"&&this._map&&!this._map._showingGlobe()?"viewport":this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e||"auto",this._update(),this}getPitchAlignment(){return this._pitchAlignment==="auto"?this.getRotationAlignment():this._pitchAlignment}setOccludedOpacity(e){return this._occludedOpacity=e||.2,this._update(),this}getOccludedOpacity(){return this._occludedOpacity}}const pS={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},fS=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function q1(t=new N(0,0),e="bottom"){if(typeof t=="number"){const r=Math.round(Math.sqrt(.5*Math.pow(t,2)));switch(e){case"top":return new N(0,t);case"top-left":return new N(r,r);case"top-right":return new N(-r,r);case"bottom":return new N(0,-t);case"bottom-left":return new N(r,-r);case"bottom-right":return new N(-r,-r);case"left":return new N(t,0);case"right":return new N(-t,0)}return new N(0,0)}return t instanceof N||Array.isArray(t)?N.convert(t):N.convert(t[e]||[0,0])}class mS{constructor(e){this.jumpTo(e)}getValue(e){if(e<=this._startTime)return this._start;if(e>=this._endTime)return this._end;const r=ks((e-this._startTime)/(this._endTime-this._startTime));return this._start*(1-r)+this._end*r}isEasing(e){return e>=this._startTime&&e<=this._endTime}jumpTo(e){this._startTime=-1/0,this._endTime=-1/0,this._start=e,this._end=e}easeTo(e,r,i){this._start=this.getValue(r),this._end=e,this._startTime=r,this._endTime=r+i}}const _S={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use ⌘ + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},gS={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,performanceMetricsCollection:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,antialias:!1,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,respectPrefersReducedMotion:!0,crossSourceCollisions:!0,collectResourceTiming:!1,testMode:!1},yS={showCompass:!0,showZoom:!0,visualizePitch:!1};class xS{constructor(e,r,i=!1){this._clickTolerance=10,this.element=r,this.mouseRotate=new R1({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,i&&(this.mousePitch=new L1({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),dr(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),r.addEventListener("mousedown",this.mousedown),r.addEventListener("touchstart",this.touchstart,{passive:!1}),r.addEventListener("touchmove",this.touchmove),r.addEventListener("touchend",this.touchend),r.addEventListener("touchcancel",this.reset)}down(e,r){this.mouseRotate.mousedown(e,r),this.mousePitch&&this.mousePitch.mousedown(e,r),cf()}move(e,r){const i=this.map,o=this.mouseRotate.mousemoveWindow(e,r),s=o&&o.bearingDelta;if(s&&i.setBearing(i.getBearing()+s),this.mousePitch){const n=this.mousePitch.mousemoveWindow(e,r),a=n&&n.pitchDelta;a&&i.setPitch(i.getPitch()+a)}}off(){const e=this.element;e.removeEventListener("mousedown",this.mousedown),e.removeEventListener("touchstart",this.touchstart,{passive:!1}),e.removeEventListener("touchmove",this.touchmove),e.removeEventListener("touchend",this.touchend),e.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){uf(),W.removeEventListener("mousemove",this.mousemove),W.removeEventListener("mouseup",this.mouseup)}mousedown(e){this.down(we({},e,{ctrlKey:!0,preventDefault:()=>e.preventDefault()}),Pn(this.element,e)),W.addEventListener("mousemove",this.mousemove),W.addEventListener("mouseup",this.mouseup)}mousemove(e){this.move(e,Pn(this.element,e))}mouseup(e){this.mouseRotate.mouseupWindow(e),this.mousePitch&&this.mousePitch.mouseupWindow(e),this.offTemp()}touchstart(e){e.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=Ja(this.element,e.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>e.preventDefault()},this._startPos))}touchmove(e){e.targetTouches.length!==1?this.reset():(this._lastPos=Ja(this.element,e.targetTouches)[0],this.move({preventDefault:()=>e.preventDefault()},this._lastPos))}touchend(e){e.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()}reset(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()}}const vS={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1},bS={maxWidth:100,unit:"metric"},wS={kilometer:"km",meter:"m",mile:"mi",foot:"ft","nautical-mile":"nm"},ou={version:oi,supported:nf,setRTLTextPlugin:function(t,e,r=!1){if(qr===vh||qr===bh||qr===wh)throw new Error("setRTLTextPlugin cannot be called multiple times.");So=je.resolveURL(t),qr=vh,Th=e,Eh(),r||km()},getRTLTextPluginStatus:Sh,Map:class extends dS{constructor(t){of.mark(Wa.create);const e=t;if((t=we({},gS,t)).minZoom!=null&&t.maxZoom!=null&&t.minZoom>t.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(t.minPitch!=null&&t.maxPitch!=null&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(t.minPitch!=null&&t.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(t.maxPitch!=null&&t.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(t.antialias&&function(r){const i=r.navigator?r.navigator.userAgent:null;return!!function(o){if(Ge==null){const s=o.navigator?o.navigator.userAgent:null;Ge=!!o.safari||!(!s||!(/\b(iPad|iPhone|iPod)\b/.test(s)||s.match("Safari")&&!s.match("Chrome")))}return Ge}(r)&&i&&(i.match("Version/15.4")||i.match("Version/15.5")||i.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/))}(W)&&(t.antialias=!1,F("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new ip(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies),t),this._interactive=t.interactive,this._minTileCacheSize=t.minTileCacheSize,this._maxTileCacheSize=t.maxTileCacheSize,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=t.crossSourceCollisions,this._collectResourceTiming=t.collectResourceTiming,this._language=this._parseLanguage(t.language),this._worldview=t.worldview,this._renderTaskQueue=new j1,this._domRenderTaskQueue=new j1,this._controls=[],this._markers=[],this._popups=[],this._mapId=Ps(),this._locale=we({},_S,t.locale),this._clickTolerance=t.clickTolerance,this._cooperativeGestures=t.cooperativeGestures,this._performanceMetricsCollection=t.performanceMetricsCollection,this._containerWidth=0,this._containerHeight=0,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new mS(0),this._interactionRange=[1/0,-1/0],this._visibilityHidden=0,this._useExplicitProjection=!1,this._requestManager=new Pe(t.transformRequest,t.accessToken,t.testMode),this._silenceAuthErrors=!!t.testMode,this._contextCreateOptions=t.contextCreateOptions?{...t.contextCreateOptions}:{},typeof t.container=="string"){if(this._container=W.document.getElementById(t.container),!this._container)throw new Error(`Container '${t.container.toString()}' not found.`)}else{if(!(t.container instanceof W.HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(this._container.childNodes.length>0&&F("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."),t.maxBounds&&this.setMaxBounds(t.maxBounds),dr(["_onWindowOnline","_onWindowResize","_onVisibilityChange","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),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)),W!==void 0&&(this._fullscreenchangeEvent="onfullscreenchange"in W.document?"fullscreenchange":"webkitfullscreenchange",W.addEventListener("online",this._onWindowOnline,!1),W.addEventListener("resize",this._onWindowResize,!1),W.addEventListener("orientationchange",this._onWindowResize,!1),W.addEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),W.addEventListener("visibilitychange",this._onVisibilityChange,!1)),this.handlers=new hS(this,t),this._localFontFamily=t.localFontFamily,this._localIdeographFontFamily=t.localIdeographFontFamily,(t.style||!t.testMode)&&this.setStyle(t.style||et.DEFAULT_STYLE,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),t.projection&&this.setProjection(t.projection),t.hash&&(this._hash=new LM(typeof t.hash=="string"&&t.hash||void 0).addTo(this)),!this._hash||!this._hash._onHashChange()){e.center==null&&e.zoom==null||(this.transform._unmodified=!1),this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch});const r=t.bounds;r&&(this.resize(),this.fitBounds(r,we({},t.fitBoundsOptions,{duration:0})))}this.resize(),t.attributionControl&&this.addControl(new U1({customAttribution:t.customAttribution})),this._logoControl=new V1,this.addControl(this._logoControl,t.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",r=>{this._update(r.dataType==="style"),this.fire(new ae(`${r.dataType}data`,r))}),this.on("dataloading",r=>{this.fire(new ae(`${r.dataType}dataloading`,r))})}_getMapId(){return this._mapId}addControl(t,e){if(e===void 0&&(e=t.getDefaultPosition?t.getDefaultPosition():"top-right"),!t||!t.onAdd)return this.fire(new Ue(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const r=t.onAdd(this);this._controls.push(t);const i=this._controlPositions[e];return e.indexOf("bottom")!==-1?i.insertBefore(r,i.firstChild):i.appendChild(r),this}removeControl(t){if(!t||!t.onRemove)return this.fire(new Ue(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const e=this._controls.indexOf(t);return e>-1&&this._controls.splice(e,1),t.onRemove(this),this}hasControl(t){return this._controls.indexOf(t)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(t){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 e=!this._moving;return e&&this.fire(new ae("movestart",t)).fire(new ae("move",t)),this.fire(new ae("resize",t)),e&&this.fire(new ae("moveend",t)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(t){return this.transform.setMaxBounds(Hr.convert(t)),this._update()}setMinZoom(t){if((t=t??-2)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t?this.setZoom(t):this.fire(new ae("zoomstart")).fire(new ae("zoom")).fire(new ae("zoomend")),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(t){if((t=t??22)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t?this.setZoom(t):this.fire(new ae("zoomstart")).fire(new ae("zoom")).fire(new ae("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(t){if((t=t??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()<t?this.setPitch(t):this.fire(new ae("pitchstart")).fire(new ae("pitch")).fire(new ae("pitchend")),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(t){if((t=t??85)>85)throw new Error("maxPitch must be less than or equal to 85");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t?this.setPitch(t):this.fire(new ae("pitchstart")).fire(new ae("pitch")).fire(new ae("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(t){return this.transform.renderWorldCopies=t,this.transform.renderWorldCopies||this._forceMarkerAndPopupUpdate(!0),this._update()}getLanguage(){return this._language}_parseLanguage(t){return t==="auto"?W.navigator.language:Array.isArray(t)?t.length===0?void 0:t.map(e=>e==="auto"?W.navigator.language:e):t}setLanguage(t){const e=this._parseLanguage(t);if(!this.style||e===this._language)return this;this._language=e,this.style.reloadSources();for(const r of this._controls)r._setLanguage&&r._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(t){return this.style&&t!==this._worldview?(this._worldview=t,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(t){return this._lazyInitEmptyStyle(),t?typeof t=="string"&&(t={name:t}):t=null,this._useExplicitProjection=!!t,this._prioritizeAndUpdateProjection(t,this.style.projection)}_updateProjectionTransition(){if(this.getProjection().name!=="globe")return;const t=this.transform,e=t.projection.name;let r;e==="globe"&&t.zoom>=Po?(t.setMercatorFromTransition(),r=!0):e==="mercator"&&t.zoom<Po&&(t.setProjection({name:"globe"}),r=!0),r&&(this.style.applyProjectionUpdate(),this.style._forceSymbolLayerUpdate())}_prioritizeAndUpdateProjection(t,e){return this._updateProjection(t||e||{name:"mercator"})}_updateProjection(t){let e;return e=t.name==="globe"&&this.transform.zoom>=Po?this.transform.setMercatorFromTransition():this.transform.setProjection(t),this.style.applyProjectionUpdate(),e&&(this.painter.clearBackgroundTiles(),this.style.clearSources(),this._update(!0),this._forceMarkerAndPopupUpdate(!0)),this}project(t){return this.transform.locationPoint3D(Ne.convert(t))}unproject(t){return this.transform.pointLocation3D(N.convert(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(t,e,r){if(t==="mouseenter"||t==="mouseover"){let i=!1;const o=n=>{const a=e.filter(c=>this.getLayer(c)),l=a.length?this.queryRenderedFeatures(n.point,{layers:a}):[];l.length?i||(i=!0,r.call(this,new ii(t,this,n.originalEvent,{features:l}))):i=!1},s=()=>{i=!1};return{layers:new Set(e),listener:r,delegates:{mousemove:o,mouseout:s}}}if(t==="mouseleave"||t==="mouseout"){let i=!1;const o=n=>{const a=e.filter(l=>this.getLayer(l));(a.length?this.queryRenderedFeatures(n.point,{layers:a}):[]).length?i=!0:i&&(i=!1,r.call(this,new ii(t,this,n.originalEvent)))},s=n=>{i&&(i=!1,r.call(this,new ii(t,this,n.originalEvent)))};return{layers:new Set(e),listener:r,delegates:{mousemove:o,mouseout:s}}}{const i=o=>{const s=e.filter(a=>this.getLayer(a)),n=s.length?this.queryRenderedFeatures(o.point,{layers:s}):[];n.length&&(o.features=n,r.call(this,o),delete o.features)};return{layers:new Set(e),listener:r,delegates:{[t]:i}}}}on(t,e,r){if(r===void 0)return super.on(t,e);if(Array.isArray(e)||(e=[e]),e){for(const o of e)if(!this._isValidId(o))return this}const i=this._createDelegatedListener(t,e,r);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i);for(const o in i.delegates)this.on(o,i.delegates[o]);return this}once(t,e,r){if(r===void 0)return super.once(t,e);if(Array.isArray(e)||(e=[e]),e){for(const o of e)if(!this._isValidId(o))return this}const i=this._createDelegatedListener(t,e,r);for(const o in i.delegates)this.once(o,i.delegates[o]);return this}off(t,e,r){if(r===void 0)return super.off(t,e);e=new Set(Array.isArray(e)?e:[e]);for(const s of e)if(!this._isValidId(s))return this;const i=(s,n)=>{if(s.size!==n.size)return!1;for(const a of s)if(!n.has(a))return!1;return!0},o=this._delegatedListeners?this._delegatedListeners[t]:void 0;return o&&(s=>{for(let n=0;n<s.length;n++){const a=s[n];if(a.listener===r&&i(a.layers,e)){for(const l in a.delegates)this.off(l,a.delegates[l]);return s.splice(n,1),this}}})(o),this}queryRenderedFeatures(t,e){if(!this.style)return[];if(e!==void 0||t===void 0||t instanceof N||Array.isArray(t)||(e=t,t=void 0),t=t||[[0,0],[this.transform.width,this.transform.height]],(e=e||{}).layers&&Array.isArray(e.layers)){for(const r of e.layers)if(!this._isValidId(r))return[]}return this.style.queryRenderedFeatures(t,e,this.transform)}querySourceFeatures(t,e){return this._isValidId(t)?this.style.querySourceFeatures(t,e):[]}isPointOnSurface(t){const{name:e}=this.transform.projection;return e!=="globe"&&e!=="mercator"&&F(`${e} projection does not support isPointOnSurface, this API may behave unexpectedly.`),this.transform.isPointOnSurface(N.convert(t))}setStyle(t,e){return(e=we({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},e)).diff!==!1&&e.localIdeographFontFamily===this._localIdeographFontFamily&&e.localFontFamily===this._localFontFamily&&this.style&&t?(this._diffStyle(t,e),this):(this._localIdeographFontFamily=e.localIdeographFontFamily,this._localFontFamily=e.localFontFamily,this._updateStyle(t,e))}_getUIString(t){const e=this._locale[t];if(e==null)throw new Error(`Missing UI string '${t}'`);return e}_updateStyle(t,e){return this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),t&&(this.style=new Ci(this,e||{}),this.style.setEventedParent(this,{style:this.style}),typeof t=="string"?this.style.loadURL(t):this.style.loadJSON(t)),this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new Ci(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(t,e){if(typeof t=="string"){const r=this._requestManager.normalizeStyleURL(t),i=this._requestManager.transformRequest(r,J.Style);ue(i,(o,s)=>{o?this.fire(new Ue(o)):s&&this._updateDiff(s,e)})}else typeof t=="object"&&this._updateDiff(t,e)}_updateDiff(t,e){try{this.style.setState(t)&&this._update(!0)}catch(r){F(`Unable to perform style diff: ${r.message||r.error||r}. Rebuilding the style from scratch.`),this._updateStyle(t,e)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(F("There is no style added to the map."),!1)}_isValidId(t){return t==null?(this.fire(new Ue(new Error("IDs can't be empty."))),!1):!Lm(t)||(this.fire(new Ue(new Error(`IDs can't contain special symbols: "${t}".`))),!1)}addSource(t,e){return this._isValidId(t)?(this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)):this}isSourceLoaded(t){return!!this._isValidId(t)&&!!this.style&&this.style._isSourceCacheLoaded(t)}areTilesLoaded(){const t=this.style&&this.style._sourceCaches;for(const e in t){const r=t[e]._tiles;for(const i in r){const o=r[i];if(o.state!=="loaded"&&o.state!=="errored")return!1}}return!0}addSourceType(t,e,r){this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,r)}removeSource(t){return this._isValidId(t)?(this.style.removeSource(t),this._updateTerrain(),this._update(!0)):this}getSource(t){return this._isValidId(t)?this.style.getOwnSource(t):null}addImage(t,e,{pixelRatio:r=1,sdf:i=!1,stretchX:o,stretchY:s,content:n}={}){if(this._lazyInitEmptyStyle(),e instanceof W.HTMLImageElement||W.ImageBitmap&&e instanceof W.ImageBitmap){const{width:a,height:l,data:c}=je.getImageData(e);this.style.addImage(t,{data:new rr({width:a,height:l},c),pixelRatio:r,stretchX:o,stretchY:s,content:n,sdf:i,version:0})}else if(e.width===void 0||e.height===void 0)this.fire(new Ue(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:a,height:l}=e,c=e;this.style.addImage(t,{data:new rr({width:a,height:l},new Uint8Array(c.data)),pixelRatio:r,stretchX:o,stretchY:s,content:n,sdf:i,version:0,userImage:c}),c.onAdd&&c.onAdd(this,t)}}updateImage(t,e){this._lazyInitEmptyStyle();const r=this.style.getImage(t);if(!r)return void this.fire(new Ue(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const i=e instanceof W.HTMLImageElement||W.ImageBitmap&&e instanceof W.ImageBitmap?je.getImageData(e):e,{width:o,height:s}=i;o!==void 0&&s!==void 0?o===r.data.width&&s===r.data.height?(r.data.replace(i.data,!(e instanceof W.HTMLImageElement||W.ImageBitmap&&e instanceof W.ImageBitmap)),this.style.updateImage(t,r)):this.fire(new Ue(new Error(`The width and height of the updated image (${o}, ${s})
2027
2027
  must be that same as the previous version of the image
2028
- (${r.data.width}, ${r.data.height})`))):this.fire(new Ue(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`")))}hasImage(t){return t?!!this.style&&!!this.style.getImage(t):(this.fire(new Ue(new Error("Missing required image id"))),!1)}removeImage(t){this.style.removeImage(t)}loadImage(t,e){Ye(this._requestManager.transformRequest(t,J.Image),(r,i)=>{e(r,i instanceof W.HTMLImageElement?je.getImageData(i):i)})}listImages(){return this.style.listImages()}addModel(t,e){this._lazyInitEmptyStyle(),this.style.addModel(t,e)}hasModel(t){return t?this.style.hasModel(t):(this.fire(new Ue(new Error("Missing required model id"))),!1)}removeModel(t){this.style.removeModel(t)}listModels(){return this.style.listModels()}addLayer(t,e){return this._isValidId(t.id)?(this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)):this}moveLayer(t,e){return this._isValidId(t)?(this.style.moveLayer(t,e),this._update(!0)):this}removeLayer(t){return this._isValidId(t)?(this.style.removeLayer(t),this._update(!0)):this}getLayer(t){return this._isValidId(t)?this.style.getOwnLayer(t):null}setLayerZoomRange(t,e,r){return this._isValidId(t)?(this.style.setLayerZoomRange(t,e,r),this._update(!0)):this}setFilter(t,e,r={}){return this._isValidId(t)?(this.style.setFilter(t,e,r),this._update(!0)):this}getFilter(t){return this._isValidId(t)?this.style.getFilter(t):null}setPaintProperty(t,e,r,i={}){return this._isValidId(t)?(this.style.setPaintProperty(t,e,r,i),this._update(!0)):this}getPaintProperty(t,e){return this._isValidId(t)?this.style.getPaintProperty(t,e):null}setLayoutProperty(t,e,r,i={}){return this._isValidId(t)?(this.style.setLayoutProperty(t,e,r,i),this._update(!0)):this}getLayoutProperty(t,e){return this._isValidId(t)?this.style.getLayoutProperty(t,e):null}getConfigProperty(t,e){return this.style.getConfigProperty(t,e)}setConfigProperty(t,e,r){return this.style.setConfigProperty(t,e,r),this._update(!0)}setLights(t){if(this._lazyInitEmptyStyle(),t&&t.length===1&&t[0].type==="flat"){const e=t[0];e.properties?this.style.setFlatLight(e.properties,e.id,{}):this.style.setFlatLight({},"flat")}else this.style.setLights(t),this.painter.terrain&&(this.painter.terrain.invalidateRenderCache=!0);return this._update(!0)}getLights(){const t=this.style.getLights()||[];return t.length===0&&t.push({id:this.style.light.id,type:"flat",properties:this.style.getFlatLight()}),t}setLight(t,e={}){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:t}])}getLight(){return console.log("The `map.getLight` function is deprecated, prefer using `map.getLights` instead."),this.style.getFlatLight()}setTerrain(t){return this._lazyInitEmptyStyle(),!t&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(t),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(t){return this._lazyInitEmptyStyle(),this.style.setFog(t),this._update(!0)}getFog(){return this.style?this.style.getFog():null}setCamera(t){return this.style.setCamera(t),this._triggerCameraUpdate(t)}_triggerCameraUpdate(t){return this._update(this.transform.setOrthographicProjectionAtLowPitch(t["camera-projection"]==="orthographic"))}getCamera(){return this.style.camera}_queryFogOpacity(t){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(Ne.convert(t),this.transform):0}setFeatureState(t,e){return this._isValidId(t.source)?(this.style.setFeatureState(t,e),this._update()):this}removeFeatureState(t,e){return this._isValidId(t.source)?(this.style.removeFeatureState(t,e),this._update()):this}getFeatureState(t){return this._isValidId(t.source)?this.style.getFeatureState(t):null}_updateContainerDimensions(){if(!this._container)return;const t=this._container.getBoundingClientRect().width||400,e=this._container.getBoundingClientRect().height||300;let r,i,o,s=this._container;for(;s&&(!i||!o);){const n=W.getComputedStyle(s).transform;n&&n!=="none"&&(r=n.match(/matrix.*\((.+)\)/)[1].split(", "),r[0]&&r[0]!=="0"&&r[0]!=="1"&&(i=r[0]),r[3]&&r[3]!=="0"&&r[3]!=="1"&&(o=r[3])),s=s.parentElement}this._containerWidth=i?Math.abs(t/i):t,this._containerHeight=o?Math.abs(e/o):e}_detectMissingCSS(){W.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")!=="rgb(250, 128, 114)"&&F("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 t=this._container;t.classList.add("mapboxgl-map"),(this._missingCSSCanary=Dt("div","mapboxgl-canary",t)).style.visibility="hidden",this._detectMissingCSS();const e=this._canvasContainer=Dt("div","mapboxgl-canvas-container",t);this._canvas=Dt("canvas","mapboxgl-canvas",e),this._interactive&&(e.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 r=this._controlContainer=Dt("div","mapboxgl-control-container",t),i=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(o=>{i[o]=Dt("div",`mapboxgl-ctrl-${o}`,r)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(t,e){const r=je.devicePixelRatio||1;this._canvas.width=r*Math.ceil(t),this._canvas.height=r*Math.ceil(e),this._canvas.style.width=`${t}px`,this._canvas.style.height=`${e}px`}_addMarker(t){this._markers.push(t)}_removeMarker(t){const e=this._markers.indexOf(t);e!==-1&&this._markers.splice(e,1)}_addPopup(t){this._popups.push(t)}_removePopup(t){const e=this._popups.indexOf(t);e!==-1&&this._popups.splice(e,1)}_setupPainter(){const t=we({},nf.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),e=this._canvas.getContext("webgl2",t);e?(rf(e,!0),this.painter=new SM(e,this._contextCreateOptions,this.transform),this.on("data",r=>{r.dataType==="source"&&this.painter.setTileLoadedFlag(!0)}),Jo.testSupport(e)):this.fire(new Ue(new Error("Failed to initialize WebGL")))}_contextLost(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new ae("webglcontextlost",{originalEvent:t}))}_contextRestored(t){this._setupPainter(),this.resize(),this._update(),this.fire(new ae("webglcontextrestored",{originalEvent:t}))}_onMapScroll(t){if(t.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(t){return this._update(),this._renderTaskQueue.add(t)}_cancelRenderFrame(t){this._renderTaskQueue.remove(t)}_requestDomTask(t){!this.loaded()||this.loaded()&&!this.isMoving()?t():this._domRenderTaskQueue.add(t)}_render(t){let e;this.fire(new ae("renderstart"));const r=this.painter.context.extTimerQuery,i=je.now(),o=this.painter.context.gl;if(this.listens("gpu-timing-frame")&&(e=o.createQuery(),o.beginQuery(r.TIME_ELAPSED_EXT,e)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],W.performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],W.performance.now())),this._renderTaskQueue.run(t),this._domRenderTaskQueue.run(t),this._removed)return;this._updateProjectionTransition();const s=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const l=this.transform.zoom,c=this.transform.pitch,u=je.now(),h=new Ut(l,{now:u,fadeDuration:s,pitch:c,transition:this.style.transition});this.style.update(h)}this.style&&this.style.hasFogTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let n=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),n=this._updateAverageElevation(i),this.style.updateSources(this.transform),this._forceMarkerAndPopupUpdate()):n=this._updateAverageElevation(i),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,s,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,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:s,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 ae("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new ae("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),e){const l=je.now()-i;o.endQuery(r.TIME_ELAPSED_EXT),setTimeout(()=>{const c=o.getQueryParameter(e,o.QUERY_RESULT)/1e6;o.deleteQuery(e),this.fire(new ae("gpu-timing-frame",{cpuTime:l,gpuTime:c})),W.performance.mark("frame-gpu",{startTime:i,detail:{gpuTime:c}})},50)}if(this.listens("gpu-timing-layer")){const l=this.painter.collectGpuTimers();setTimeout(()=>{const c=this.painter.queryGpuTimers(l);this.fire(new ae("gpu-timing-layer",{layerTimes:c}))},50)}if(this.listens("gpu-timing-deferred-render")){const l=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{const c=this.painter.queryGpuTimeDeferredRender(l);this.fire(new ae("gpu-timing-deferred-render",{gpuTime:c}))},50)}const a=this._sourcesDirty||this._styleDirty||this._placementDirty||n;if(a||this._repaint)this.triggerRepaint();else{const l=!this.isMoving()&&this.loaded();if(l&&(n=this._updateAverageElevation(i,!0)),n)this.triggerRepaint();else if(this._triggerFrame(!1),l&&(this.fire(new ae("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const c=this._calculateSpeedIndex();this.fire(new ae("speedindexcompleted",{speedIndex:c})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||a||(this._fullyLoaded=!0,of.mark(Wa.fullLoad),this._performanceMetricsCollection&&nv(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(t){for(const e of this._markers)t&&!this.getRenderWorldCopies()&&(e._lngLat=e._lngLat.wrap()),e._update();for(const e of this._popups)!t||this.getRenderWorldCopies()||e._trackPointer||(e._lngLat=e._lngLat.wrap()),e._update()}_updateAverageElevation(t,e=!1){const r=o=>(this.transform.averageElevation=o,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return this.transform.averageElevation!==0&&r(0);const i=this.transform.elevation&&this.transform.elevation.exaggeration()!==this._averageElevationExaggeration;if(i||(e||t-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(t)){const o=this.transform.averageElevation;let s=this.transform.sampleAverageElevation();this.transform.elevation&&(this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(s)?s=0:this._averageElevationLastSampledAt=t;const n=Math.abs(o-s);if(n>1){if(this._isInitialLoad||i)return this._averageElevation.jumpTo(s),r(s);this._averageElevation.easeTo(s,t,300)}else if(n>1e-4)return this._averageElevation.jumpTo(s),r(s)}return!!this._averageElevation.isEasing(t)&&r(this._averageElevation.getValue(t))}_authenticate(){av(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,t=>{if(t&&(t.message===At||t.status===401)){const e=this.painter.context.gl;rf(e,!1),this._logoControl instanceof V1&&this._logoControl._updateLogo(),e&&e.clear(e.DEPTH_BUFFER_BIT|e.COLOR_BUFFER_BIT|e.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new Ue(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/")))}}),sv(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_updateTerrain(){const t=this._isDragging();this.painter.updateTerrain(this.style,t)}_calculateSpeedIndex(){const t=this.painter.canvasCopy(),e=this.painter.getCanvasCopiesAndTimestamps();e.timeStamps.push(performance.now());const r=this.painter.context.gl,i=r.createFramebuffer();function o(s){r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,s,0);const n=new Uint8Array(r.drawingBufferWidth*r.drawingBufferHeight*4);return r.readPixels(0,0,r.drawingBufferWidth,r.drawingBufferHeight,r.RGBA,r.UNSIGNED_BYTE,n),n}return r.bindFramebuffer(r.FRAMEBUFFER,i),this._canvasPixelComparison(o(t),e.canvasCopies.map(o),e.timeStamps)}_canvasPixelComparison(t,e,r){let i=r[1]-r[0];const o=t.length/4;for(let s=0;s<e.length;s++){const n=e[s];let a=0;for(let l=0;l<n.length;l+=4)n[l]===t[l]&&n[l+1]===t[l+1]&&n[l+2]===t[l+2]&&n[l+3]===t[l+3]&&(a+=1);i+=(r[s+2]-r[s+1])*(1-a/o)}return i}remove(){this._hash&&this._hash.remove();for(const e of this._controls)e.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),W!==void 0&&(W.removeEventListener("resize",this._onWindowResize,!1),W.removeEventListener("orientationchange",this._onWindowResize,!1),W.removeEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),W.removeEventListener("online",this._onWindowOnline,!1),W.removeEventListener("visibilitychange",this._onVisibilityChange,!1));const t=this.painter.context.gl.getExtension("WEBGL_lose_context");t&&t.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),Ha.delete(this.painter.context.gl),this._removed=!0,this.fire(new ae("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(t){this._renderNextFrame=this._renderNextFrame||t,this.style&&!this._frame&&(this._frame=je.frame(e=>{const r=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,r&&this._render(e)}))}_preloadTiles(t){return rs(this.style?Object.values(this.style._sourceCaches):[],(e,r)=>e._preloadTiles(t,r),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(t){this._trackResize&&this.resize({originalEvent:t})._update()}_onVisibilityChange(){W.document.visibilityState==="hidden"&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(t){this._showTerrainWireframe!==t&&(this._showTerrainWireframe=t,this._update())}get showLayers2DWireframe(){return!!this._showLayers2DWireframe}set showLayers2DWireframe(t){this._showLayers2DWireframe!==t&&(this._showLayers2DWireframe=t,this._update())}get showLayers3DWireframe(){return!!this._showLayers3DWireframe}set showLayers3DWireframe(t){this._showLayers3DWireframe!==t&&(this._showLayers3DWireframe=t,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(t){this._speedIndexTiming!==t&&(this._speedIndexTiming=t,this._update())}get showPadding(){return!!this._showPadding}set showPadding(t){this._showPadding!==t&&(this._showPadding=t,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())}get repaint(){return!!this._repaint}set repaint(t){this._repaint!==t&&(this._repaint=t,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(t){this._vertices=t,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(t){this._showTileAABBs!==t&&(this._showTileAABBs=t,t&&this._update())}_setCacheLimits(t,e){(function(r,i){Ar=r,kr=i})(t,e)}get version(){return oi}},NavigationControl:class{constructor(t){this.options=we({},yS,t),this._container=Dt("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",e=>e.preventDefault()),this.options.showZoom&&(dr(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",e=>{this._map&&this._map.zoomIn({},{originalEvent:e})}),Dt("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",e=>{this._map&&this._map.zoomOut({},{originalEvent:e})}),Dt("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(dr(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",e=>{const r=this._map;r&&(this.options.visualizePitch?r.resetNorthPitch({},{originalEvent:e}):r.resetNorth({},{originalEvent:e}))}),this._compassIcon=Dt("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const t=this._map;if(!t)return;const e=t.getZoom(),r=e===t.getMaxZoom(),i=e===t.getMinZoom();this._zoomInButton.disabled=r,this._zoomOutButton.disabled=i,this._zoomInButton.setAttribute("aria-disabled",r.toString()),this._zoomOutButton.setAttribute("aria-disabled",i.toString())}_rotateCompassArrow(){const t=this._map;if(!t)return;const e=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(t.transform.pitch*(Math.PI/180)),.5)}) rotateX(${t.transform.pitch}deg) rotateZ(${t.transform.angle*(180/Math.PI)}deg)`:`rotate(${t.transform.angle*(180/Math.PI)}deg)`;t._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=e)})}onAdd(t){return this._map=t,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),t.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&t.on("pitch",this._rotateCompassArrow),t.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new xS(t,this._compass,this.options.visualizePitch)),this._container}onRemove(){const t=this._map;t&&(this._container.remove(),this.options.showZoom&&t.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&t.off("pitch",this._rotateCompassArrow),t.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(t,e){const r=Dt("button",t,this._container);return r.type="button",r.addEventListener("click",e),r}_setButtonTitle(t,e){if(!this._map)return;const r=this._map._getUIString(`NavigationControl.${e}`);t.setAttribute("aria-label",r),t.firstElementChild&&t.firstElementChild.setAttribute("title",r)}},GeolocateControl:class extends ir{constructor(t){super(),this.options=we({geolocation:W.navigator.geolocation},vS,t),dr(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=k1(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(t){return this._map=t,this._container=Dt("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(t){const e=(r=!!this.options.geolocation)=>{this._supportsGeolocation=r,t(r)};this._supportsGeolocation!==void 0?t(this._supportsGeolocation):W.navigator.permissions!==void 0?W.navigator.permissions.query({name:"geolocation"}).then(r=>e(r.state!=="denied")).catch(()=>e()):e()}_isOutOfMapMaxBounds(t){const e=this._map.getMaxBounds(),r=t.coords;return!!e&&(r.longitude<e.getWest()||r.longitude>e.getEast()||r.latitude<e.getSouth()||r.latitude>e.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(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new ae("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,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(t),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(t),this.options.showUserLocation&&this._userLocationDotMarker.removeClassName("mapboxgl-user-location-dot-stale"),this.fire(new ae("geolocate",t)),this._finish()}}_updateCamera(t){const e=new Ne(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy,i=we({bearing:this._map.getBearing()},this.options.fitBoundsOptions);this._map.fitBounds(e.toBounds(r),i,{geolocateSource:!0})}_updateMarker(t){if(t){const e=new Ne(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(e).addTo(this._map),this._userLocationDotMarker.setLngLat(e).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const t=this._map.transform,e=It(1,t._center.lat)*t.worldSize,r=Math.ceil(2*this._accuracy*e);this._circleElement.style.width=`${r}px`,this._circleElement.style.height=`${r}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(t){if(this._map){if(this.options.trackUserLocation)if(t.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 e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(t.code===3&&this._noTimeout)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._userLocationDotMarker.addClassName("mapboxgl-user-location-dot-stale"),this.fire(new ae("error",t)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(t){if(this._map!==void 0){if(this._container.addEventListener("contextmenu",e=>e.preventDefault()),this._geolocateButton=Dt("button","mapboxgl-ctrl-geolocate",this._container),Dt("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",t===!1){F("Geolocation support is not available so the GeolocateControl will be disabled.");const e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e)}else{const e=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=Dt("div","mapboxgl-user-location"),this._dotElement.appendChild(Dt("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(Dt("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new Gp({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=Dt("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Gp({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",e=>{e.geolocateSource||this._watchState!=="ACTIVE_LOCK"||e.originalEvent&&e.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 ae("trackuserlocationend")))})}}_onDeviceOrientation(t){this._userLocationDotMarker&&(t.webkitCompassHeading?this._heading=t.webkitCompassHeading:t.absolute===!0&&(this._heading=-1*t.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return F("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 ae("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 ae("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 ae("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 t;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(t={maximumAge:6e5,timeout:0},this._noTimeout=!0):(t=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,t),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const t=()=>{W.addEventListener("ondeviceorientationabsolute"in W?"deviceorientationabsolute":"deviceorientation",this._onDeviceOrientation)};W.DeviceMotionEvent!==void 0&&typeof W.DeviceMotionEvent.requestPermission=="function"?DeviceOrientationEvent.requestPermission().then(e=>{e==="granted"&&t()}).catch(console.error):t()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),W.removeEventListener("deviceorientation",this._onDeviceOrientation),W.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:U1,ScaleControl:class{constructor(t){this.options=we({},bS,t),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch{return!1}}(),dr(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const t=this.options.maxWidth||100,e=this._map,r=e._containerHeight/2,i=e._containerWidth/2-t/2,o=e.unproject([i,r]),s=e.unproject([i+t,r]),n=o.distanceTo(s);if(this.options.unit==="imperial"){const a=3.2808*n;a>5280?this._setScale(t,a/5280,"mile"):this._setScale(t,a,"foot")}else this.options.unit==="nautical"?this._setScale(t,n/1852,"nautical-mile"):n>=1e3?this._setScale(t,n/1e3,"kilometer"):this._setScale(t,n,"meter")}_setScale(t,e,r){this._map._requestDomTask(()=>{const i=function(s){const n=Math.pow(10,`${Math.floor(s)}`.length-1);let a=s/n;return a=a>=10?10:a>=5?5:a>=3?3:a>=2?2:a>=1?1:function(l){const c=Math.pow(10,Math.ceil(-Math.log(l)/Math.LN10));return Math.round(l*c)/c}(a),n*a}(e),o=i/e;this._container.innerHTML=this._isNumberFormatSupported&&r!=="nautical-mile"?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:r}).format(i):`${i}&nbsp;${wS[r]}`,this._container.style.width=t*o+"px"})}onAdd(t){return this._map=t,this._language=t.getLanguage(),this._container=Dt("div","mapboxgl-ctrl mapboxgl-ctrl-scale",t.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(t){this._language=t,this._update()}setUnit(t){this.options.unit=t,this._update()}},FullscreenControl:class{constructor(t){this._fullscreen=!1,t&&t.container&&(t.container instanceof W.HTMLElement?this._container=t.container:F("Full screen control 'container' must be a DOM element.")),dr(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in W.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in W.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=Dt("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",F("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,W.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!W.document.fullscreenEnabled&&!W.document.webkitFullscreenEnabled)}_setupUI(){const t=this._fullscreenButton=Dt("button","mapboxgl-ctrl-fullscreen",this._controlContainer);Dt("span","mapboxgl-ctrl-icon",t).setAttribute("aria-hidden","true"),t.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),W.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",t)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(W.document.fullscreenElement||W.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()?W.document.exitFullscreen?W.document.exitFullscreen():W.document.webkitCancelFullScreen&&W.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends ir{constructor(t){super(),this.options=we(Object.create(pS),t),dr(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(t&&t.className?t.className.trim().split(/\s+/):[])}addTo(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&t.on("preclick",this._onClose),this.options.closeOnMove&&t.on("move",this._onClose),t.on("remove",this.remove),this._update(),t._addPopup(this),this._focusFirstElement(),this._trackPointer?(t.on("mousemove",this._onMouseEvent),t.on("mouseup",this._onMouseEvent),t._canvasContainer.classList.add("mapboxgl-track-pointer")):t.on("move",this._update),this.fire(new ae("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const t=this._map;return t&&(t.off("move",this._update),t.off("move",this._onClose),t.off("preclick",this._onClose),t.off("click",this._onClose),t.off("remove",this.remove),t.off("mousemove",this._onMouseEvent),t.off("mouseup",this._onMouseEvent),t.off("drag",this._onMouseEvent),t._canvasContainer&&t._canvasContainer.classList.remove("mapboxgl-track-pointer"),t._removePopup(this),this._map=void 0),this.fire(new ae("close")),this}getLngLat(){return this._lngLat}setLngLat(t){this._lngLat=Ne.convert(t),this._pos=null,this._trackPointer=!1,this._update();const e=this._map;return e&&(e.on("move",this._update),e.off("mousemove",this._onMouseEvent),e._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const t=this._map;return t&&(t.off("move",this._update),t.on("mousemove",this._onMouseEvent),t.on("drag",this._onMouseEvent),t._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(t){return this.setDOMContent(W.document.createTextNode(t))}setHTML(t){const e=W.document.createDocumentFragment(),r=W.document.createElement("body");let i;for(r.innerHTML=t;i=r.firstChild,i;)e.appendChild(i);return this.setDOMContent(e)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(t){return this.options.maxWidth=t,this._update(),this}setDOMContent(t){let e=this._content;if(e)for(;e.hasChildNodes();)e.firstChild&&e.removeChild(e.firstChild);else e=this._content=Dt("div","mapboxgl-popup-content",this._container||void 0);if(e.appendChild(t),this.options.closeButton){const r=this._closeButton=Dt("button","mapboxgl-popup-close-button",e);r.type="button",r.setAttribute("aria-label","Close popup"),r.setAttribute("aria-hidden","true"),r.innerHTML="&#215;",r.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(t){return this._classList.add(t),this._updateClassList(),this}removeClassName(t){return this._classList.delete(t),this._updateClassList(),this}setOffset(t){return this.options.offset=t,this._update(),this}toggleClassName(t){let e;return this._classList.delete(t)?e=!1:(this._classList.add(t),e=!0),this._updateClassList(),e}_onMouseEvent(t){this._update(t.point)}_getAnchor(t){if(this.options.anchor)return this.options.anchor;const e=this._map,r=this._container,i=this._pos;if(!e||!r||!i)return"bottom";const o=r.offsetWidth,s=r.offsetHeight,n=i.x<o/2,a=i.x>e.transform.width-o/2;if(i.y+t<s)return n?"top-left":a?"top-right":"top";if(i.y>e.transform.height-s){if(n)return"bottom-left";if(a)return"bottom-right"}return n?"left":a?"right":"bottom"}_updateClassList(){const t=this._container;if(!t)return;const e=[...this._classList];e.push("mapboxgl-popup"),this._anchor&&e.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&e.push("mapboxgl-popup-track-pointer"),t.className=e.join(" ")}_update(t){const e=this._map,r=this._content;if(!e||!this._lngLat&&!this._trackPointer||!r)return;let i=this._container;if(i||(i=this._container=Dt("div","mapboxgl-popup",e.getContainer()),this._tip=Dt("div","mapboxgl-popup-tip",i),i.appendChild(r)),this.options.maxWidth&&i.style.maxWidth!==this.options.maxWidth&&(i.style.maxWidth=this.options.maxWidth),e.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=G1(this._lngLat,this._pos,e.transform)),!this._trackPointer||t){const o=this._pos=this._trackPointer&&t?t:e.project(this._lngLat),s=q1(this.options.offset),n=this._anchor=this._getAnchor(s.y),a=q1(this.options.offset,n),l=o.add(a).round();e._requestDomTask(()=>{this._container&&n&&(this._container.style.transform=`${jp[n]} translate(${l.x}px,${l.y}px)`)})}if(!this._marker&&e._showingGlobe()){const o=Vl(e.transform,this._lngLat)?0:1;this._setOpacity(o)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const t=this._container.querySelector(fS);t&&t.focus()}_onClose(){this.remove()}_setOpacity(t){this._container&&(this._container.style.opacity=`${t}`),this._content&&(this._content.style.pointerEvents=t?"auto":"none")}},Marker:Gp,Style:Ci,LngLat:Ne,LngLatBounds:Hr,Point:N,MercatorCoordinate:lt,FreeCameraOptions:t0,Evented:ir,config:et,prewarm:function(){Ra().acquire(pp)},clearPrewarmedResources:function(){const t=Pa;t&&(t.isPreloaded()&&t.numActive()===1?(t.release(pp),Pa=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return et.ACCESS_TOKEN},set accessToken(t){et.ACCESS_TOKEN=t},get baseApiUrl(){return et.API_URL},set baseApiUrl(t){et.API_URL=t},get workerCount(){return En.workerCount},set workerCount(t){En.workerCount=t},get maxParallelImageRequests(){return et.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){et.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage(t){(function(e){if(!Bs())return;const r=W.caches.delete(Lt);e&&r.catch(e).then(()=>e())})(t)},workerUrl:"",workerClass:null,get dracoUrl(){return _x()},set dracoUrl(t){(function(e){fp=je.resolveURL(e),mp||(mp=new Ss(Ra(),new ir)),mp.broadcast("setDracoUrl",fp)})(t)},setNow:je.setNow,restoreNow:je.restoreNow};Se.A=ax,Se.D=sc,Se.E=H,Se.F=Bd,Se.K=jc,Se.O=mt,Se.P=N,Se.T=S0,Se.V=ec,Se.a=Ql,Se.b=oy,Se.c=Pc,Se.d=class extends ir{constructor(t,e,r,i,o,s){super(),this.actor=t,this.layerIndex=e,this.availableImages=r,this.loadVectorData=o||fx,this.loading={},this.loaded={},this.deduped=new px(t.scheduler),this.isSpriteLoaded=i,this.scheduler=t.scheduler,this.brightness=s}loadTile(t,e){const r=t.uid,i=t&&t.request,o=i&&i.collectResourceTiming,s=this.loading[r]=new j3(t);s.abort=this.loadVectorData(t,(n,a)=>{const l=!this.loading[r];if(delete this.loading[r],l||n||!a)return s.status="done",l||(this.loaded[r]=s),e(n);const c=a.rawData,u={};a.expires&&(u.expires=a.expires),a.cacheControl&&(u.cacheControl=a.cacheControl),s.vectorTile=a.vectorTile||new Rd(new oc(c));const h=()=>{s.parse(s.vectorTile,this.layerIndex,this.availableImages,this.actor,(d,p)=>{if(d||!p)return e(d);const f={};if(o){const m=sf(i);m.length>0&&(f.resourceTiming=JSON.parse(JSON.stringify(m)))}e(null,we({rawTileData:c.slice(0)},p,u,f))})};this.isSpriteLoaded?h():this.once("isSpriteLoaded",()=>{this.scheduler?this.scheduler.add(h,{type:"parseTile",isSymbolTile:t.isSymbolTile,zoom:t.tileZoom}):h()}),this.loaded=this.loaded||{},this.loaded[r]=s})}reloadTile(t,e){const r=this.loaded,i=t.uid,o=this;if(r&&r[i]){const s=r[i];s.showCollisionBoxes=t.showCollisionBoxes,s.projection=t.projection,s.brightness=t.brightness,s.tileTransform=bs(t.tileID.canonical,t.projection),s.extraShadowCaster=t.extraShadowCaster;const n=(a,l)=>{const c=s.reloadCallback;c&&(delete s.reloadCallback,s.parse(s.vectorTile,o.layerIndex,this.availableImages,o.actor,c)),e(a,l)};s.status==="parsing"?s.reloadCallback=n:s.status==="done"&&(s.vectorTile?s.parse(s.vectorTile,this.layerIndex,this.availableImages,this.actor,n):n())}else e(null,void 0)}abortTile(t,e){const r=t.uid,i=this.loading[r];i&&(i.abort&&i.abort(),delete this.loading[r]),e()}removeTile(t,e){const r=this.loaded,i=t.uid;r&&r[i]&&delete r[i],e()}},Se.e=To,Se.f=sf,Se.g=si,Se.h=ue,Se.i=fe,Se.j=function(t,e){const r=bp(t);for(const i of r){for(const o of i.meshes)K3(o);i.lights&&(i.lightMeshIndex=i.meshes.length,i.meshes.push(Q3(i.lights,e)))}return r},Se.k=Ut,Se.l=function(t){let e=0;if(new Uint32Array(t,0,1)[0]!==yx){const r=new Uint32Array(t,0,7),[,,i,o,s,n]=r;e=r.byteLength+o+s+n+s,(i!==t.byteLength||e>=t.byteLength)&&F("Invalid b3dm header information.")}return wx(t,e)},Se.m=fc,Se.n=hi,Se.o=ae,Se.p=Ds,Se.q=function(t){Ur(),Pr&&Pr.then(e=>{e.keys().then(r=>{for(let i=0;i<r.length-t;i++)e.delete(r[i])})})},Se.r=Ax,Se.s=ou,Se.t=ca,Se.v=is,Se.w=W}),_o(["./shared"],function(Se){function W(le){if(typeof le=="number"||typeof le=="boolean"||typeof le=="string"||le==null)return JSON.stringify(le);if(Array.isArray(le)){let P="[";for(const F of le)P+=`${W(F)},`;return`${P}]`}let z="{";for(const P of Object.keys(le).sort())z+=`${P}:${W(le[P])},`;return`${z}}`}function oi(le){let z="";for(const P of Se.r)z+=`/${W(le[P])}`;return z}class Sr{constructor(z){this.keyCache={},this._layers={},this._layerConfigs={},z&&this.replace(z)}replace(z,P){this._layerConfigs={},this._layers={},this.update(z,[],P)}update(z,P,F){this._options=F;for(const ie of z){this._layerConfigs[ie.id]=ie;const ve=this._layers[ie.id]=Se.c(ie,this._options);ve.setScope(this.scope),ve.compileFilter(),this.keyCache[ie.id]&&delete this.keyCache[ie.id]}for(const ie of P)delete this.keyCache[ie],delete this._layerConfigs[ie],delete this._layers[ie];this.familiesBySource={};const te=function(ie,ve){const Ce={};for(let ze=0;ze<ie.length;ze++){const Ge=ve&&ve[ie[ze].id]||oi(ie[ze]);ve&&(ve[ie[ze].id]=Ge);let Ve=Ce[Ge];Ve||(Ve=Ce[Ge]=[]),Ve.push(ie[ze])}const oe=[];for(const ze in Ce)oe.push(Ce[ze]);return oe}(Se.v(this._layerConfigs),this.keyCache);for(const ie of te){const ve=ie.map(kt=>this._layers[kt.id]),Ce=ve[0];if(Ce.visibility==="none")continue;const oe=Ce.source||"";let ze=this.familiesBySource[oe];ze||(ze=this.familiesBySource[oe]={});const Ge=Ce.sourceLayer||"_geojsonTileLayer";let Ve=ze[Ge];Ve||(Ve=ze[Ge]=[]),Ve.push(ve)}}}class et{loadTile(z,P){const{uid:F,encoding:te,rawImageData:ie,padding:ve}=z,Ce=Se.w.ImageBitmap&&ie instanceof Se.w.ImageBitmap?this.getImageData(ie,ve):ie;P(null,new Se.D(F,Ce,te,ve<1))}getImageData(z,P){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(z.width,z.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d",{willReadFrequently:!0})),this.offscreenCanvas.width=z.width,this.offscreenCanvas.height=z.height,this.offscreenCanvasContext.drawImage(z,0,0,z.width,z.height);const F=this.offscreenCanvasContext.getImageData(-P,-P,z.width+2*P,z.height+2*P);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),F}}function Jo(le,z){if(le.length!==0){go(le[0],z);for(var P=1;P<le.length;P++)go(le[P],!z)}}function go(le,z){for(var P=0,F=0,te=0,ie=le.length,ve=ie-1;te<ie;ve=te++){var Ce=(le[te][0]-le[ve][0])*(le[ve][1]+le[te][1]),oe=P+Ce;F+=Math.abs(P)>=Math.abs(Ce)?P-oe+Ce:Ce-oe+P,P=oe}P+F>=0!=!!z&&le.reverse()}var yo=Se.g(function le(z,P){var F,te=z&&z.type;if(te==="FeatureCollection")for(F=0;F<z.features.length;F++)le(z.features[F],P);else if(te==="GeometryCollection")for(F=0;F<z.geometries.length;F++)le(z.geometries[F],P);else if(te==="Feature")le(z.geometry,P);else if(te==="Polygon")Jo(z.coordinates,P);else if(te==="MultiPolygon")for(F=0;F<z.coordinates.length;F++)Jo(z.coordinates[F],P);return z});const zn=Se.V.prototype.toGeoJSON;var xo={exports:{}},Va=Se.p,Dn=Se.a.VectorTileFeature,si=ja;function ja(le,z){this.options=z||{},this.features=le,this.length=le.length}function Ko(le,z){this.id=typeof le.id=="number"?le.id:void 0,this.type=le.type,this.rawGeometry=le.type===1?[le.geometry]:le.geometry,this.properties=le.tags,this.extent=z||4096}ja.prototype.feature=function(le){return new Ko(this.features[le],this.options.extent)},Ko.prototype.loadGeometry=function(){var le=this.rawGeometry;this.geometry=[];for(var z=0;z<le.length;z++){for(var P=le[z],F=[],te=0;te<P.length;te++)F.push(new Va(P[te][0],P[te][1]));this.geometry.push(F)}return this.geometry},Ko.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var le=this.geometry,z=1/0,P=-1/0,F=1/0,te=-1/0,ie=0;ie<le.length;ie++)for(var ve=le[ie],Ce=0;Ce<ve.length;Ce++){var oe=ve[Ce];z=Math.min(z,oe.x),P=Math.max(P,oe.x),F=Math.min(F,oe.y),te=Math.max(te,oe.y)}return[z,F,P,te]},Ko.prototype.toGeoJSON=Dn.prototype.toGeoJSON;var Ga=Se.b,Ds=si;function Di(le){var z=new Ga;return function(P,F){for(var te in P.layers)F.writeMessage(3,N,P.layers[te])}(le,z),z.finish()}function N(le,z){var P;z.writeVarintField(15,le.version||1),z.writeStringField(1,le.name||""),z.writeVarintField(5,le.extent||4096);var F={keys:[],values:[],keycache:{},valuecache:{}};for(P=0;P<le.length;P++)F.feature=le.feature(P),z.writeMessage(2,dt,F);var te=F.keys;for(P=0;P<te.length;P++)z.writeStringField(3,te[P]);var ie=F.values;for(P=0;P<ie.length;P++)z.writeMessage(4,lu,ie[P])}function dt(le,z){var P=le.feature;P.id!==void 0&&z.writeVarintField(1,P.id),z.writeMessage(2,au,le),z.writeVarintField(3,P.type),z.writeMessage(4,xr,P)}function au(le,z){var P=le.feature,F=le.keys,te=le.values,ie=le.keycache,ve=le.valuecache;for(var Ce in P.properties){var oe=P.properties[Ce],ze=ie[Ce];if(oe!==null){ze===void 0&&(F.push(Ce),ie[Ce]=ze=F.length-1),z.writeVarint(ze);var Ge=typeof oe;Ge!=="string"&&Ge!=="boolean"&&Ge!=="number"&&(oe=JSON.stringify(oe));var Ve=Ge+":"+oe,kt=ve[Ve];kt===void 0&&(te.push(oe),ve[Ve]=kt=te.length-1),z.writeVarint(kt)}}}function Qo(le,z){return(z<<3)+(7&le)}function $e(le){return le<<1^le>>31}function xr(le,z){for(var P=le.loadGeometry(),F=le.type,te=0,ie=0,ve=P.length,Ce=0;Ce<ve;Ce++){var oe=P[Ce],ze=1;F===1&&(ze=oe.length),z.writeVarint(Qo(1,ze));for(var Ge=F===3?oe.length-1:oe.length,Ve=0;Ve<Ge;Ve++){Ve===1&&F!==1&&z.writeVarint(Qo(2,Ge-1));var kt=oe[Ve].x-te,Zt=oe[Ve].y-ie;z.writeVarint($e(kt)),z.writeVarint($e(Zt)),te+=kt,ie+=Zt}F===3&&z.writeVarint(Qo(7,1))}}function lu(le,z){var P=typeof le;P==="string"?z.writeStringField(1,le):P==="boolean"?z.writeBooleanField(7,le):P==="number"&&(le%1!=0?z.writeDoubleField(3,le):le<0?z.writeSVarintField(6,le):z.writeVarintField(5,le))}xo.exports=Di,xo.exports.fromVectorTileJs=Di,xo.exports.fromGeojsonVt=function(le,z){z=z||{};var P={};for(var F in le)P[F]=new Ds(le[F].features,z),P[F].name=F,P[F].version=z.version,P[F].extent=z.extent;return Di({layers:P})},xo.exports.GeoJSONWrapper=Ds;var ks=Se.g(xo.exports);const cu={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:le=>le},es=Math.fround||(ts=new Float32Array(1),le=>(ts[0]=+le,ts[0]));var ts;const ni=3,Me=5,ki=6;class Pi{constructor(z){this.options=Object.assign(Object.create(cu),z),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(z){const{log:P,minZoom:F,maxZoom:te}=this.options;P&&console.time("total time");const ie=`prepare ${z.length} points`;P&&console.time(ie),this.points=z;const ve=[];for(let oe=0;oe<z.length;oe++){const ze=z[oe];if(!ze.geometry)continue;const[Ge,Ve]=ze.geometry.coordinates,kt=es(we(Ge)),Zt=es(Nr(Ve));ve.push(kt,Zt,1/0,oe,-1,1),this.options.reduce&&ve.push(0)}let Ce=this.trees[te+1]=this._createTree(ve);P&&console.timeEnd(ie);for(let oe=te;oe>=F;oe--){const ze=+Date.now();Ce=this.trees[oe]=this._createTree(this._cluster(Ce,oe)),P&&console.log("z%d: %d clusters in %dms",oe,Ce.numItems,+Date.now()-ze)}return P&&console.timeEnd("total time"),this}getClusters(z,P){let F=((z[0]+180)%360+360)%360-180;const te=Math.max(-90,Math.min(90,z[1]));let ie=z[2]===180?180:((z[2]+180)%360+360)%360-180;const ve=Math.max(-90,Math.min(90,z[3]));if(z[2]-z[0]>=360)F=-180,ie=180;else if(F>ie){const Ve=this.getClusters([F,te,180,ve],P),kt=this.getClusters([-180,te,ie,ve],P);return Ve.concat(kt)}const Ce=this.trees[this._limitZoom(P)],oe=Ce.range(we(F),Nr(ve),we(ie),Nr(te)),ze=Ce.data,Ge=[];for(const Ve of oe){const kt=this.stride*Ve;Ge.push(ze[kt+Me]>1?rs(ze,kt,this.clusterProps):this.points[ze[kt+ni]])}return Ge}getChildren(z){const P=this._getOriginId(z),F=this._getOriginZoom(z),te="No cluster with the specified id.",ie=this.trees[F];if(!ie)throw new Error(te);const ve=ie.data;if(P*this.stride>=ve.length)throw new Error(te);const Ce=this.options.radius/(this.options.extent*Math.pow(2,F-1)),oe=ie.within(ve[P*this.stride],ve[P*this.stride+1],Ce),ze=[];for(const Ge of oe){const Ve=Ge*this.stride;ve[Ve+4]===z&&ze.push(ve[Ve+Me]>1?rs(ve,Ve,this.clusterProps):this.points[ve[Ve+ni]])}if(ze.length===0)throw new Error(te);return ze}getLeaves(z,P,F){const te=[];return this._appendLeaves(te,z,P=P||10,F=F||0,0),te}getTile(z,P,F){const te=this.trees[this._limitZoom(z)],ie=Math.pow(2,z),{extent:ve,radius:Ce}=this.options,oe=Ce/ve,ze=(F-oe)/ie,Ge=(F+1+oe)/ie,Ve={features:[]};return this._addTileFeatures(te.range((P-oe)/ie,ze,(P+1+oe)/ie,Ge),te.data,P,F,ie,Ve),P===0&&this._addTileFeatures(te.range(1-oe/ie,ze,1,Ge),te.data,ie,F,ie,Ve),P===ie-1&&this._addTileFeatures(te.range(0,ze,oe/ie,Ge),te.data,-1,F,ie,Ve),Ve.features.length?Ve:null}getClusterExpansionZoom(z){let P=this._getOriginZoom(z)-1;for(;P<=this.options.maxZoom;){const F=this.getChildren(z);if(P++,F.length!==1)break;z=F[0].properties.cluster_id}return P}_appendLeaves(z,P,F,te,ie){const ve=this.getChildren(P);for(const Ce of ve){const oe=Ce.properties;if(oe&&oe.cluster?ie+oe.point_count<=te?ie+=oe.point_count:ie=this._appendLeaves(z,oe.cluster_id,F,te,ie):ie<te?ie++:z.push(Ce),z.length===F)break}return ie}_createTree(z){const P=new Se.K(z.length/this.stride|0,this.options.nodeSize,Float32Array);for(let F=0;F<z.length;F+=this.stride)P.add(z[F],z[F+1]);return P.finish(),P.data=z,P}_addTileFeatures(z,P,F,te,ie,ve){for(const Ce of z){const oe=Ce*this.stride,ze=P[oe+Me]>1;let Ge,Ve,kt;if(ze)Ge=is(P,oe,this.clusterProps),Ve=P[oe],kt=P[oe+1];else{const $t=this.points[P[oe+ni]];Ge=$t.properties;const[Qt,Lt]=$t.geometry.coordinates;Ve=we(Qt),kt=Nr(Lt)}const Zt={type:1,geometry:[[Math.round(this.options.extent*(Ve*ie-F)),Math.round(this.options.extent*(kt*ie-te))]],tags:Ge};let vr;vr=ze||this.options.generateId?P[oe+ni]:this.points[P[oe+ni]].id,vr!==void 0&&(Zt.id=vr),ve.features.push(Zt)}}_limitZoom(z){return Math.max(this.options.minZoom,Math.min(Math.floor(+z),this.options.maxZoom+1))}_cluster(z,P){const{radius:F,extent:te,reduce:ie,minPoints:ve}=this.options,Ce=F/(te*Math.pow(2,P)),oe=z.data,ze=[],Ge=this.stride;for(let Ve=0;Ve<oe.length;Ve+=Ge){if(oe[Ve+2]<=P)continue;oe[Ve+2]=P;const kt=oe[Ve],Zt=oe[Ve+1],vr=z.within(oe[Ve],oe[Ve+1],Ce),$t=oe[Ve+Me];let Qt=$t;for(const Lt of vr){const Ar=Lt*Ge;oe[Ar+2]>P&&(Qt+=oe[Ar+Me])}if(Qt>$t&&Qt>=ve){let Lt,Ar=kt*$t,kr=Zt*$t,Pr=-1;const xi=((Ve/Ge|0)<<5)+(P+1)+this.points.length;for(const Bs of vr){const Ur=Bs*Ge;if(oe[Ur+2]<=P)continue;oe[Ur+2]=P;const Xi=oe[Ur+Me];Ar+=oe[Ur]*Xi,kr+=oe[Ur+1]*Xi,oe[Ur+4]=xi,ie&&(Lt||(Lt=this._map(oe,Ve,!0),Pr=this.clusterProps.length,this.clusterProps.push(Lt)),ie(Lt,this._map(oe,Ur)))}oe[Ve+4]=xi,ze.push(Ar/Qt,kr/Qt,1/0,xi,-1,Qt),ie&&ze.push(Pr)}else{for(let Lt=0;Lt<Ge;Lt++)ze.push(oe[Ve+Lt]);if(Qt>1)for(const Lt of vr){const Ar=Lt*Ge;if(!(oe[Ar+2]<=P)){oe[Ar+2]=P;for(let kr=0;kr<Ge;kr++)ze.push(oe[Ar+kr])}}}}return ze}_getOriginId(z){return z-this.points.length>>5}_getOriginZoom(z){return(z-this.points.length)%32}_map(z,P,F){if(z[P+Me]>1){const ve=this.clusterProps[z[P+ki]];return F?Object.assign({},ve):ve}const te=this.points[z[P+ni]].properties,ie=this.options.map(te);return F&&ie===te?Object.assign({},ie):ie}}function rs(le,z,P){return{type:"Feature",id:le[z+ni],properties:is(le,z,P),geometry:{type:"Point",coordinates:[(F=le[z],360*(F-.5)),uu(le[z+1])]}};var F}function is(le,z,P){const F=le[z+Me],te=F>=1e4?`${Math.round(F/1e3)}k`:F>=1e3?Math.round(F/100)/10+"k":F,ie=le[z+ki],ve=ie===-1?{}:Object.assign({},P[ie]);return Object.assign(ve,{cluster:!0,cluster_id:le[z+ni],point_count:F,point_count_abbreviated:te})}function we(le){return le/360+.5}function Nr(le){const z=Math.sin(le*Math.PI/180),P=.5-.25*Math.log((1+z)/(1-z))/Math.PI;return P<0?0:P>1?1:P}function uu(le){const z=(180-360*le)*Math.PI/180;return 360*Math.atan(Math.exp(z))/Math.PI-90}var Ps={exports:{}};Ps.exports=function(){function le(J,Q,ne,ce){for(var ue,fe=ce,_e=ne-Q>>1,he=ne-Q,Ee=J[Q],me=J[Q+1],Ye=J[ne],At=J[ne+1],Pe=Q+3;Pe<ne;Pe+=3){var wt=z(J[Pe],J[Pe+1],Ee,me,Ye,At);if(wt>fe)ue=Pe,fe=wt;else if(wt===fe){var Ht=Math.abs(Pe-_e);Ht<he&&(ue=Pe,he=Ht)}}fe>ce&&(ue-Q>3&&le(J,Q,ue,ce),J[ue+2]=fe,ne-ue>3&&le(J,ue,ne,ce))}function z(J,Q,ne,ce,ue,fe){var _e=ue-ne,he=fe-ce;if(_e!==0||he!==0){var Ee=((J-ne)*_e+(Q-ce)*he)/(_e*_e+he*he);Ee>1?(ne=ue,ce=fe):Ee>0&&(ne+=_e*Ee,ce+=he*Ee)}return(_e=J-ne)*_e+(he=Q-ce)*he}function P(J,Q,ne,ce){var ue={id:J===void 0?null:J,type:Q,geometry:ne,tags:ce,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(fe){var _e=fe.geometry,he=fe.type;if(he==="Point"||he==="MultiPoint"||he==="LineString")F(fe,_e);else if(he==="Polygon"||he==="MultiLineString")for(var Ee=0;Ee<_e.length;Ee++)F(fe,_e[Ee]);else if(he==="MultiPolygon")for(Ee=0;Ee<_e.length;Ee++)for(var me=0;me<_e[Ee].length;me++)F(fe,_e[Ee][me])}(ue),ue}function F(J,Q){for(var ne=0;ne<Q.length;ne+=3)J.minX=Math.min(J.minX,Q[ne]),J.minY=Math.min(J.minY,Q[ne+1]),J.maxX=Math.max(J.maxX,Q[ne]),J.maxY=Math.max(J.maxY,Q[ne+1])}function te(J,Q,ne,ce){if(Q.geometry){var ue=Q.geometry.coordinates,fe=Q.geometry.type,_e=Math.pow(ne.tolerance/((1<<ne.maxZoom)*ne.extent),2),he=[],Ee=Q.id;if(ne.promoteId?Ee=Q.properties[ne.promoteId]:ne.generateId&&(Ee=ce||0),fe==="Point")ie(ue,he);else if(fe==="MultiPoint")for(var me=0;me<ue.length;me++)ie(ue[me],he);else if(fe==="LineString")ve(ue,he,_e,!1);else if(fe==="MultiLineString"){if(ne.lineMetrics){for(me=0;me<ue.length;me++)ve(ue[me],he=[],_e,!1),J.push(P(Ee,"LineString",he,Q.properties));return}Ce(ue,he,_e,!1)}else if(fe==="Polygon")Ce(ue,he,_e,!0);else{if(fe!=="MultiPolygon"){if(fe==="GeometryCollection"){for(me=0;me<Q.geometry.geometries.length;me++)te(J,{id:Ee,geometry:Q.geometry.geometries[me],properties:Q.properties},ne,ce);return}throw new Error("Input data is not a valid GeoJSON object.")}for(me=0;me<ue.length;me++){var Ye=[];Ce(ue[me],Ye,_e,!0),he.push(Ye)}}J.push(P(Ee,fe,he,Q.properties))}}function ie(J,Q){Q.push(oe(J[0])),Q.push(ze(J[1])),Q.push(0)}function ve(J,Q,ne,ce){for(var ue,fe,_e=0,he=0;he<J.length;he++){var Ee=oe(J[he][0]),me=ze(J[he][1]);Q.push(Ee),Q.push(me),Q.push(0),he>0&&(_e+=ce?(ue*me-Ee*fe)/2:Math.sqrt(Math.pow(Ee-ue,2)+Math.pow(me-fe,2))),ue=Ee,fe=me}var Ye=Q.length-3;Q[2]=1,le(Q,0,Ye,ne),Q[Ye+2]=1,Q.size=Math.abs(_e),Q.start=0,Q.end=Q.size}function Ce(J,Q,ne,ce){for(var ue=0;ue<J.length;ue++){var fe=[];ve(J[ue],fe,ne,ce),Q.push(fe)}}function oe(J){return J/360+.5}function ze(J){var Q=Math.sin(J*Math.PI/180),ne=.5-.25*Math.log((1+Q)/(1-Q))/Math.PI;return ne<0?0:ne>1?1:ne}function Ge(J,Q,ne,ce,ue,fe,_e,he){if(ce/=Q,fe>=(ne/=Q)&&_e<ce)return J;if(_e<ne||fe>=ce)return null;for(var Ee=[],me=0;me<J.length;me++){var Ye=J[me],At=Ye.geometry,Pe=Ye.type,wt=ue===0?Ye.minX:Ye.minY,Ht=ue===0?Ye.maxX:Ye.maxY;if(wt>=ne&&Ht<ce)Ee.push(Ye);else if(!(Ht<ne||wt>=ce)){var er=[];if(Pe==="Point"||Pe==="MultiPoint")Ve(At,er,ne,ce,ue);else if(Pe==="LineString")kt(At,er,ne,ce,ue,!1,he.lineMetrics);else if(Pe==="MultiLineString")vr(At,er,ne,ce,ue,!1);else if(Pe==="Polygon")vr(At,er,ne,ce,ue,!0);else if(Pe==="MultiPolygon")for(var ar=0;ar<At.length;ar++){var Ir=[];vr(At[ar],Ir,ne,ce,ue,!0),Ir.length&&er.push(Ir)}if(er.length){if(he.lineMetrics&&Pe==="LineString"){for(ar=0;ar<er.length;ar++)Ee.push(P(Ye.id,Pe,er[ar],Ye.tags));continue}Pe!=="LineString"&&Pe!=="MultiLineString"||(er.length===1?(Pe="LineString",er=er[0]):Pe="MultiLineString"),Pe!=="Point"&&Pe!=="MultiPoint"||(Pe=er.length===3?"Point":"MultiPoint"),Ee.push(P(Ye.id,Pe,er,Ye.tags))}}}return Ee.length?Ee:null}function Ve(J,Q,ne,ce,ue){for(var fe=0;fe<J.length;fe+=3){var _e=J[fe+ue];_e>=ne&&_e<=ce&&(Q.push(J[fe]),Q.push(J[fe+1]),Q.push(J[fe+2]))}}function kt(J,Q,ne,ce,ue,fe,_e){for(var he,Ee,me=Zt(J),Ye=ue===0?Qt:Lt,At=J.start,Pe=0;Pe<J.length-3;Pe+=3){var wt=J[Pe],Ht=J[Pe+1],er=J[Pe+2],ar=J[Pe+3],Ir=J[Pe+4],ai=ue===0?wt:Ht,pr=ue===0?ar:Ir,Rr=!1;_e&&(he=Math.sqrt(Math.pow(wt-ar,2)+Math.pow(Ht-Ir,2))),ai<ne?pr>ne&&(Ee=Ye(me,wt,Ht,ar,Ir,ne),_e&&(me.start=At+he*Ee)):ai>ce?pr<ce&&(Ee=Ye(me,wt,Ht,ar,Ir,ce),_e&&(me.start=At+he*Ee)):$t(me,wt,Ht,er),pr<ne&&ai>=ne&&(Ee=Ye(me,wt,Ht,ar,Ir,ne),Rr=!0),pr>ce&&ai<=ce&&(Ee=Ye(me,wt,Ht,ar,Ir,ce),Rr=!0),!fe&&Rr&&(_e&&(me.end=At+he*Ee),Q.push(me),me=Zt(J)),_e&&(At+=he)}var Cr=J.length-3;wt=J[Cr],Ht=J[Cr+1],er=J[Cr+2],(ai=ue===0?wt:Ht)>=ne&&ai<=ce&&$t(me,wt,Ht,er),Cr=me.length-3,fe&&Cr>=3&&(me[Cr]!==me[0]||me[Cr+1]!==me[1])&&$t(me,me[0],me[1],me[2]),me.length&&Q.push(me)}function Zt(J){var Q=[];return Q.size=J.size,Q.start=J.start,Q.end=J.end,Q}function vr(J,Q,ne,ce,ue,fe){for(var _e=0;_e<J.length;_e++)kt(J[_e],Q,ne,ce,ue,fe,!1)}function $t(J,Q,ne,ce){J.push(Q),J.push(ne),J.push(ce)}function Qt(J,Q,ne,ce,ue,fe){var _e=(fe-Q)/(ce-Q);return J.push(fe),J.push(ne+(ue-ne)*_e),J.push(1),_e}function Lt(J,Q,ne,ce,ue,fe){var _e=(fe-ne)/(ue-ne);return J.push(Q+(ce-Q)*_e),J.push(fe),J.push(1),_e}function Ar(J,Q){for(var ne=[],ce=0;ce<J.length;ce++){var ue,fe=J[ce],_e=fe.type;if(_e==="Point"||_e==="MultiPoint"||_e==="LineString")ue=kr(fe.geometry,Q);else if(_e==="MultiLineString"||_e==="Polygon"){ue=[];for(var he=0;he<fe.geometry.length;he++)ue.push(kr(fe.geometry[he],Q))}else if(_e==="MultiPolygon")for(ue=[],he=0;he<fe.geometry.length;he++){for(var Ee=[],me=0;me<fe.geometry[he].length;me++)Ee.push(kr(fe.geometry[he][me],Q));ue.push(Ee)}ne.push(P(fe.id,_e,ue,fe.tags))}return ne}function kr(J,Q){var ne=[];ne.size=J.size,J.start!==void 0&&(ne.start=J.start,ne.end=J.end);for(var ce=0;ce<J.length;ce+=3)ne.push(J[ce]+Q,J[ce+1],J[ce+2]);return ne}function Pr(J,Q){if(J.transformed)return J;var ne,ce,ue,fe=1<<J.z,_e=J.x,he=J.y;for(ne=0;ne<J.features.length;ne++){var Ee=J.features[ne],me=Ee.geometry,Ye=Ee.type;if(Ee.geometry=[],Ye===1)for(ce=0;ce<me.length;ce+=2)Ee.geometry.push(xi(me[ce],me[ce+1],Q,fe,_e,he));else for(ce=0;ce<me.length;ce++){var At=[];for(ue=0;ue<me[ce].length;ue+=2)At.push(xi(me[ce][ue],me[ce][ue+1],Q,fe,_e,he));Ee.geometry.push(At)}}return J.transformed=!0,J}function xi(J,Q,ne,ce,ue,fe){return[Math.round(ne*(J*ce-ue)),Math.round(ne*(Q*ce-fe))]}function Bs(J,Q,ne,ce,ue){for(var fe=Q===ue.maxZoom?0:ue.tolerance/((1<<Q)*ue.extent),_e={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:ne,y:ce,z:Q,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},he=0;he<J.length;he++){_e.numFeatures++,Ur(_e,J[he],fe,ue);var Ee=J[he].minX,me=J[he].minY,Ye=J[he].maxX,At=J[he].maxY;Ee<_e.minX&&(_e.minX=Ee),me<_e.minY&&(_e.minY=me),Ye>_e.maxX&&(_e.maxX=Ye),At>_e.maxY&&(_e.maxY=At)}return _e}function Ur(J,Q,ne,ce){var ue=Q.geometry,fe=Q.type,_e=[];if(fe==="Point"||fe==="MultiPoint")for(var he=0;he<ue.length;he+=3)_e.push(ue[he]),_e.push(ue[he+1]),J.numPoints++,J.numSimplified++;else if(fe==="LineString")Xi(_e,ue,J,ne,!1,!1);else if(fe==="MultiLineString"||fe==="Polygon")for(he=0;he<ue.length;he++)Xi(_e,ue[he],J,ne,fe==="Polygon",he===0);else if(fe==="MultiPolygon")for(var Ee=0;Ee<ue.length;Ee++){var me=ue[Ee];for(he=0;he<me.length;he++)Xi(_e,me[he],J,ne,!0,he===0)}if(_e.length){var Ye=Q.tags||null;if(fe==="LineString"&&ce.lineMetrics){for(var At in Ye={},Q.tags)Ye[At]=Q.tags[At];Ye.mapbox_clip_start=ue.start/ue.size,Ye.mapbox_clip_end=ue.end/ue.size}var Pe={geometry:_e,type:fe==="Polygon"||fe==="MultiPolygon"?3:fe==="LineString"||fe==="MultiLineString"?2:1,tags:Ye};Q.id!==null&&(Pe.id=Q.id),J.features.push(Pe)}}function Xi(J,Q,ne,ce,ue,fe){var _e=ce*ce;if(ce>0&&Q.size<(ue?_e:ce))ne.numPoints+=Q.length/3;else{for(var he=[],Ee=0;Ee<Q.length;Ee+=3)(ce===0||Q[Ee+2]>_e)&&(ne.numSimplified++,he.push(Q[Ee]),he.push(Q[Ee+1])),ne.numPoints++;ue&&function(me,Ye){for(var At=0,Pe=0,wt=me.length,Ht=wt-2;Pe<wt;Ht=Pe,Pe+=2)At+=(me[Pe]-me[Ht])*(me[Pe+1]+me[Ht+1]);if(At>0===Ye)for(Pe=0,wt=me.length;Pe<wt/2;Pe+=2){var er=me[Pe],ar=me[Pe+1];me[Pe]=me[wt-2-Pe],me[Pe+1]=me[wt-1-Pe],me[wt-2-Pe]=er,me[wt-1-Pe]=ar}}(he,fe),J.push(he)}}function vo(J,Q){var ne=(Q=this.options=function(ue,fe){for(var _e in fe)ue[_e]=fe[_e];return ue}(Object.create(this.options),Q)).debug;if(ne&&console.time("preprocess data"),Q.maxZoom<0||Q.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(Q.promoteId&&Q.generateId)throw new Error("promoteId and generateId cannot be used together.");var ce=function(ue,fe){var _e=[];if(ue.type==="FeatureCollection")for(var he=0;he<ue.features.length;he++)te(_e,ue.features[he],fe,he);else te(_e,ue.type==="Feature"?ue:{geometry:ue},fe);return _e}(J,Q);this.tiles={},this.tileCoords=[],ne&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",Q.indexMaxZoom,Q.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(ce=function(ue,fe){var _e=fe.buffer/fe.extent,he=ue,Ee=Ge(ue,1,-1-_e,_e,0,-1,2,fe),me=Ge(ue,1,1-_e,2+_e,0,-1,2,fe);return(Ee||me)&&(he=Ge(ue,1,-_e,1+_e,0,-1,2,fe)||[],Ee&&(he=Ar(Ee,1).concat(he)),me&&(he=he.concat(Ar(me,-1)))),he}(ce,Q)).length&&this.splitTile(ce,0,0,0),ne&&(ce.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function Os(J,Q,ne){return 32*((1<<J)*ne+Q)+J}return vo.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},vo.prototype.splitTile=function(J,Q,ne,ce,ue,fe,_e){for(var he=[J,Q,ne,ce],Ee=this.options,me=Ee.debug;he.length;){ce=he.pop(),ne=he.pop(),Q=he.pop(),J=he.pop();var Ye=1<<Q,At=Os(Q,ne,ce),Pe=this.tiles[At];if(!Pe&&(me>1&&console.time("creation"),Pe=this.tiles[At]=Bs(J,Q,ne,ce,Ee),this.tileCoords.push({z:Q,x:ne,y:ce}),me)){me>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Q,ne,ce,Pe.numFeatures,Pe.numPoints,Pe.numSimplified),console.timeEnd("creation"));var wt="z"+Q;this.stats[wt]=(this.stats[wt]||0)+1,this.total++}if(Pe.source=J,ue){if(Q===Ee.maxZoom||Q===ue)continue;var Ht=1<<ue-Q;if(ne!==Math.floor(fe/Ht)||ce!==Math.floor(_e/Ht))continue}else if(Q===Ee.indexMaxZoom||Pe.numPoints<=Ee.indexMaxPoints)continue;if(Pe.source=null,J.length!==0){me>1&&console.time("clipping");var er,ar,Ir,ai,pr,Rr,Cr=.5*Ee.buffer/Ee.extent,Fs=.5-Cr,bo=.5+Cr,Ns=1+Cr;er=ar=Ir=ai=null,pr=Ge(J,Ye,ne-Cr,ne+bo,0,Pe.minX,Pe.maxX,Ee),Rr=Ge(J,Ye,ne+Fs,ne+Ns,0,Pe.minX,Pe.maxX,Ee),J=null,pr&&(er=Ge(pr,Ye,ce-Cr,ce+bo,1,Pe.minY,Pe.maxY,Ee),ar=Ge(pr,Ye,ce+Fs,ce+Ns,1,Pe.minY,Pe.maxY,Ee),pr=null),Rr&&(Ir=Ge(Rr,Ye,ce-Cr,ce+bo,1,Pe.minY,Pe.maxY,Ee),ai=Ge(Rr,Ye,ce+Fs,ce+Ns,1,Pe.minY,Pe.maxY,Ee),Rr=null),me>1&&console.timeEnd("clipping"),he.push(er||[],Q+1,2*ne,2*ce),he.push(ar||[],Q+1,2*ne,2*ce+1),he.push(Ir||[],Q+1,2*ne+1,2*ce),he.push(ai||[],Q+1,2*ne+1,2*ce+1)}}},vo.prototype.getTile=function(J,Q,ne){var ce=this.options,ue=ce.extent,fe=ce.debug;if(J<0||J>24)return null;var _e=1<<J,he=Os(J,Q=(Q%_e+_e)%_e,ne);if(this.tiles[he])return Pr(this.tiles[he],ue);fe>1&&console.log("drilling down to z%d-%d-%d",J,Q,ne);for(var Ee,me=J,Ye=Q,At=ne;!Ee&&me>0;)me--,Ye=Math.floor(Ye/2),At=Math.floor(At/2),Ee=this.tiles[Os(me,Ye,At)];return Ee&&Ee.source?(fe>1&&console.log("found parent tile z%d-%d-%d",me,Ye,At),fe>1&&console.time("drilling down"),this.splitTile(Ee.source,me,Ye,At,J,Q,ne),fe>1&&console.timeEnd("drilling down"),this.tiles[he]?Pr(this.tiles[he],ue):null):null},function(J,Q){return new vo(J,Q)}}();var qa=Se.g(Ps.exports);function Za(le,z){const P=le.tileID.canonical;if(!this._geoJSONIndex)return z(null,null);const F=this._geoJSONIndex.getTile(P.z,P.x,P.y);if(!F)return z(null,null);const te=new class{constructor(ve){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=Se.E,this.length=ve.length,this._features=ve}feature(ve){return new class{constructor(Ce){this._feature=Ce,this.extent=Se.E,this.type=Ce.type,this.properties=Ce.tags,"id"in Ce&&!isNaN(Ce.id)&&(this.id=parseInt(Ce.id,10))}loadGeometry(){if(this._feature.type===1){const Ce=[];for(const oe of this._feature.geometry)Ce.push([new Se.P(oe[0],oe[1])]);return Ce}{const Ce=[];for(const oe of this._feature.geometry){const ze=[];for(const Ge of oe)ze.push(new Se.P(Ge[0],Ge[1]));Ce.push(ze)}return Ce}}toGeoJSON(Ce,oe,ze){return zn.call(this,Ce,oe,ze)}}(this._features[ve])}}(F.features);let ie=ks(te);ie.byteOffset===0&&ie.byteLength===ie.buffer.byteLength||(ie=new Uint8Array(ie)),z(null,{vectorTile:te,rawData:ie.buffer})}class $a extends Se.d{constructor(z,P,F,te,ie,ve){super(z,P,F,te,Za,ve),ie&&(this.loadGeoJSON=ie)}loadData(z,P){const F=z&&z.request,te=F&&F.collectResourceTiming;this.loadGeoJSON(z,(ie,ve)=>{if(ie||!ve)return P(ie);if(typeof ve!="object")return P(new Error(`Input data given to '${z.source}' is not a valid GeoJSON object.`));{yo(ve,!0);try{if(z.filter){const oe=Se.e(z.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(oe.result==="error")throw new Error(oe.value.map(ze=>`${ze.key}: ${ze.message}`).join(", "));ve={type:"FeatureCollection",features:ve.features.filter(ze=>oe.value.evaluate({zoom:0},ze))}}this._geoJSONIndex=z.cluster?new Pi(function({superclusterOptions:oe,clusterProperties:ze}){if(!ze||!oe)return oe;const Ge={},Ve={},kt={accumulated:null,zoom:0},Zt={properties:null},vr=Object.keys(ze);for(const $t of vr){const[Qt,Lt]=ze[$t],Ar=Se.e(Lt),kr=Se.e(typeof Qt=="string"?[Qt,["accumulated"],["get",$t]]:Qt);Ge[$t]=Ar.value,Ve[$t]=kr.value}return oe.map=$t=>{Zt.properties=$t;const Qt={};for(const Lt of vr)Qt[Lt]=Ge[Lt].evaluate(kt,Zt);return Qt},oe.reduce=($t,Qt)=>{Zt.properties=Qt;for(const Lt of vr)kt.accumulated=$t[Lt],$t[Lt]=Ve[Lt].evaluate(kt,Zt)},oe}(z)).load(ve.features):qa(ve,z.geojsonVtOptions)}catch(oe){return P(oe)}this.loaded={};const Ce={};if(te){const oe=Se.f(F);oe&&(Ce.resourceTiming={},Ce.resourceTiming[z.source]=JSON.parse(JSON.stringify(oe)))}P(null,Ce)}})}reloadTile(z,P){const F=this.loaded;return F&&F[z.uid]?super.reloadTile(z,P):this.loadTile(z,P)}loadGeoJSON(z,P){if(z.request)Se.h(z.request,P);else{if(typeof z.data!="string")return P(new Error(`Input data given to '${z.source}' is not a valid GeoJSON object.`));try{return P(null,JSON.parse(z.data))}catch{return P(new Error(`Input data given to '${z.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(z,P){try{P(null,this._geoJSONIndex.getClusterExpansionZoom(z.clusterId))}catch(F){P(F)}}getClusterChildren(z,P){try{P(null,this._geoJSONIndex.getChildren(z.clusterId))}catch(F){P(F)}}getClusterLeaves(z,P){try{P(null,this._geoJSONIndex.getLeaves(z.clusterId,z.limit,z.offset))}catch(F){P(F)}}}class dr{constructor(z,P){this.tileID=new Se.O(z.tileID.overscaledZ,z.tileID.wrap,z.tileID.canonical.z,z.tileID.canonical.x,z.tileID.canonical.y),this.tileZoom=z.tileZoom,this.uid=z.uid,this.zoom=z.zoom,this.canonical=z.tileID.canonical,this.pixelRatio=z.pixelRatio,this.tileSize=z.tileSize,this.source=z.source,this.overscaling=this.tileID.overscaleFactor(),this.projection=z.projection,this.brightness=P}parse(z,P,F,te){this.status="parsing";const ie=new Se.O(F.tileID.overscaledZ,F.tileID.wrap,F.tileID.canonical.z,F.tileID.canonical.x,F.tileID.canonical.y),ve={},Ce=P.familiesBySource[F.source],oe=new Se.F(ie,F.promoteId);return oe.bucketLayerIDs=[],Se.l(z).then(ze=>{if(!ze)return te(new Error("Could not parse tile"));const Ge=Se.j(ze,1/Se.t(F.tileID.canonical)),Ve=ze.json.extensionsUsed&&ze.json.extensionsUsed.includes("MAPBOX_mesh_features"),kt=new Se.k(this.zoom,{brightness:this.brightness});for(const Zt in Ce)for(const vr of Ce[Zt]){const $t=vr[0],Qt=ze.json.extensionsUsed;$t.recalculate(kt,[]);const Lt=new Se.T(Ge,ie,Qt&&Qt.includes("MAPBOX_mesh_features"),this.brightness);Ve||(Lt.needsUpload=!0),ve[$t.fqid]=Lt,Lt.evaluate($t)}this.status="done",te(null,{buckets:ve,featureIndex:oe})}).catch(ze=>te(new Error(ze.message)))}}class Rs{constructor(z,P,F,te,ie,ve){this.actor=z,this.layerIndex=P,this.brightness=ve,this.loading={},this.loaded={}}loadTile(z,P){const F=z.uid,te=this.loading[F]=new dr(z,this.brightness);Se.i(z.request,(ie,ve)=>{const Ce=!this.loading[F];return delete this.loading[F],Ce||ie?(te.status="done",Ce||(this.loaded[F]=te),P(ie)):ve&&ve.byteLength!==0?void te.parse(ve,this.layerIndex,z,(oe,ze)=>{te.status="done",this.loaded=this.loaded||{},this.loaded[F]=te,oe||!ze?P(oe):P(null,ze)}):(te.status="done",this.loaded[F]=te,P())})}reloadTile(z,P){const F=this.loaded,te=z.uid;if(F&&F[te]){const ie=F[te];ie.projection=z.projection,ie.brightness=z.brightness;const ve=(Ce,oe)=>{ie.reloadCallback&&(delete ie.reloadCallback,this.loadTile(z,P)),P(Ce,oe)};ie.status==="parsing"?ie.reloadCallback=ve:ie.status==="done"&&this.loadTile(z,P)}}abortTile(z,P){const F=z.uid;this.loading[F]&&delete this.loading[F],P()}removeTile(z,P){const F=this.loaded,te=z.uid;F&&F[te]&&delete F[te],P()}}class Ls{constructor(z){this.self=z,this.actor=new Se.A(z,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=Se.m({name:"mercator"}),this.workerSourceTypes={vector:Se.d,geojson:$a,"batched-model":Rs},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(P,F)=>{if(this.workerSourceTypes[P])throw new Error(`Worker source with name "${P}" already registered.`);this.workerSourceTypes[P]=F},this.self.registerRTLTextPlugin=P=>{if(Se.n.isParsed())throw new Error("RTL text plugin already registered.");Se.n.applyArabicShaping=P.applyArabicShaping,Se.n.processBidirectionalText=P.processBidirectionalText,Se.n.processStyledBidirectionalText=P.processStyledBidirectionalText}}clearCaches(z,P,F){delete this.layerIndexes[z],delete this.availableImages[z],delete this.workerSources[z],delete this.demWorkerSources[z],F()}checkIfReady(z,P,F){F()}setReferrer(z,P){this.referrer=P}spriteLoaded(z,{scope:P,isLoaded:F}){if(this.isSpriteLoaded[z]||(this.isSpriteLoaded[z]={}),this.isSpriteLoaded[z][P]=F,this.workerSources[z]&&this.workerSources[z][P])for(const te in this.workerSources[z][P]){const ie=this.workerSources[z][P][te];for(const ve in ie)ie[ve]instanceof Se.d&&(ie[ve].isSpriteLoaded=F,ie[ve].fire(new Se.o("isSpriteLoaded")))}}setImages(z,{scope:P,images:F},te){if(this.availableImages[z]||(this.availableImages[z]={}),this.availableImages[z][P]=F,this.workerSources[z]&&this.workerSources[z][P]){for(const ie in this.workerSources[z][P]){const ve=this.workerSources[z][P][ie];for(const Ce in ve)ve[Ce].availableImages=F}te()}else te()}setProjection(z,P){this.projections[z]=Se.m(P)}setBrightness(z,P,F){this.brightness=P,F()}setLayers(z,P,F){this.getLayerIndex(z,P.scope).replace(P.layers,P.options),F()}updateLayers(z,P,F){this.getLayerIndex(z,P.scope).update(P.layers,P.removedIds,P.options),F()}loadTile(z,P,F){P.projection=this.projections[z]||this.defaultProjection,this.getWorkerSource(z,P.type,P.source,P.scope).loadTile(P,F)}loadDEMTile(z,P,F){this.getDEMWorkerSource(z,P.source,P.scope).loadTile(P,F)}reloadTile(z,P,F){P.projection=this.projections[z]||this.defaultProjection,this.getWorkerSource(z,P.type,P.source,P.scope).reloadTile(P,F)}abortTile(z,P,F){this.getWorkerSource(z,P.type,P.source,P.scope).abortTile(P,F)}removeTile(z,P,F){this.getWorkerSource(z,P.type,P.source,P.scope).removeTile(P,F)}removeSource(z,P,F){if(!(this.workerSources[z]&&this.workerSources[z][P.scope]&&this.workerSources[z][P.scope][P.type]&&this.workerSources[z][P.scope][P.type][P.source]))return;const te=this.workerSources[z][P.scope][P.type][P.source];delete this.workerSources[z][P.scope][P.type][P.source],te.removeSource!==void 0?te.removeSource(P,F):F()}loadWorkerSource(z,P,F){try{this.self.importScripts(P.url),F()}catch(te){F(te.toString())}}syncRTLPluginState(z,P,F){try{Se.n.setState(P);const te=Se.n.getPluginURL();if(Se.n.isLoaded()&&!Se.n.isParsed()&&te!=null){this.self.importScripts(te);const ie=Se.n.isParsed();F(ie?void 0:new Error(`RTL Text Plugin failed to import scripts from ${te}`),ie)}}catch(te){F(te.toString())}}setDracoUrl(z,P){this.dracoUrl=P}getAvailableImages(z,P){this.availableImages[z]||(this.availableImages[z]={});let F=this.availableImages[z][P];return F||(F=[]),F}getLayerIndex(z,P){this.layerIndexes[z]||(this.layerIndexes[z]={});let F=this.layerIndexes[z][P];return F||(F=this.layerIndexes[z][P]=new Sr,F.scope=P),F}getWorkerSource(z,P,F,te){if(this.workerSources[z]||(this.workerSources[z]={}),this.workerSources[z][te]||(this.workerSources[z][te]={}),this.workerSources[z][te][P]||(this.workerSources[z][te][P]={}),this.isSpriteLoaded[z]||(this.isSpriteLoaded[z]={}),!this.workerSources[z][te][P][F]){const ie={send:(ve,Ce,oe,ze,Ge,Ve)=>{this.actor.send(ve,Ce,oe,z,Ge,Ve)},scheduler:this.actor.scheduler};this.workerSources[z][te][P][F]=new this.workerSourceTypes[P](ie,this.getLayerIndex(z,te),this.getAvailableImages(z,te),this.isSpriteLoaded[z][te],void 0,this.brightness)}return this.workerSources[z][te][P][F]}getDEMWorkerSource(z,P,F){return this.demWorkerSources[z]||(this.demWorkerSources[z]={}),this.demWorkerSources[z][F]||(this.demWorkerSources[z][F]={}),this.demWorkerSources[z][F][P]||(this.demWorkerSources[z][F][P]=new et),this.demWorkerSources[z][F][P]}enforceCacheSizeLimit(z,P){Se.q(P)}getWorkerPerformanceMetrics(z,P,F){F(void 0,void 0)}}return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope&&(self.worker=new Ls(self)),Ls}),_o(["./shared"],function(Se){return Se.s});var Ua=Yo;return Ua})})(iv);var Jp=iv.exports;const NS={key:0,class:"kvass-map__address"},US=ES({__name:"Map",props:{coordinates:{},address:{},markers:{},aspectRatio:{default:"2/1"},mapOptions:{},markerOptions:{},showControls:{type:Boolean,default:!0},showAddress:{type:Boolean,default:!1}},setup(zi){const Mr=zi,yi=Yp(),Fr=Yp(),Yo=nu(()=>({center:Mr.coordinates,zoom:12,dragPan:!0,scrollZoom:!1,dragRotate:!1,cooperativeGestures:!1,...Mr.mapOptions}));function _o(){Mr.coordinates&&yi.value&&(Fr.value=new Jp.Map({container:yi.value,center:Mr.coordinates,...Yo.value,language:document.querySelector("html")?.getAttribute("lang")||"auto"}),W(),oi())}MS(()=>{_o()}),SS(()=>{Fr.value?.remove()});const Ua=nu(()=>({color:"var(--kvass-map-primary-color)",...Mr.markerOptions})),Se=Yp([]);function W(){Fr.value&&(Se.value.forEach(Sr=>Sr.remove()),(Mr.markers||[Mr.coordinates]).forEach(Sr=>{Sr&&Se.value.push(new Jp.Marker({...Ua.value}).setLngLat(Sr).addTo(Fr.value))}))}function oi(){!Fr.value||!Mr.showControls||[new Jp.NavigationControl].forEach(Sr=>Fr.value.addControl(Sr))}return(Sr,et)=>(Kp(),ev("div",{class:"kvass-map",style:zS({"--kvass-map-aspect-ratio":Mr.aspectRatio})},[AS("div",{ref_key:"mapEl",ref:yi,class:"kvass-map__map"},null,512),Mr.showAddress?(Kp(),ev("div",NS,IS(Mr.address),1)):CS("",!0)],4))}}),VS=`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.mapboxgl-canvas{left:0;position:absolute;top:0}.mapboxgl-map:-webkit-full-screen{height:100%;width:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.mapboxgl-ctrl-top-left{left:0;top:0}.mapboxgl-ctrl-top-right{right:0;top:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{bottom:0;right:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{float:left;margin:10px 0 0 10px}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{float:right;margin:10px 10px 0 0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{float:left;margin:0 0 10px 10px}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{float:right;margin:0 10px 10px 0}.mapboxgl-ctrl-group{background:#fff;border-radius:4px}.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;overflow:hidden;padding:0;width:29px}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl-group button:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:only-child{border-radius:inherit}.mapboxgl-ctrl button:not(:disabled):hover{background-color:#0000000d}.mapboxgl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23000'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}}@keyframes mapboxgl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='0.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='0.9' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23000'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:#0000000d}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0;top:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0;top:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:#000000bf;text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.mapboxgl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{flex-direction:column-reverse}.mapboxgl-popup-anchor-left{flex-direction:row}.mapboxgl-popup-anchor-right{flex-direction:row-reverse}.mapboxgl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.mapboxgl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.mapboxgl-popup-close-button:hover{background-color:#0000000d}.mapboxgl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:10px 10px 15px;pointer-events:auto;position:relative}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{left:0;opacity:1;position:absolute;top:0;transition:opacity .2s;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.mapboxgl-user-location-dot:before{animation:mapboxgl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.mapboxgl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading{height:0;width:0}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after,.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-bottom:7.5px solid #4aa1eb;content:"";position:absolute}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-left:7.5px solid transparent;transform:translateY(-28px) skewY(-20deg)}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after{border-right:7.5px solid transparent;transform:translate(7.5px,-28px) skewY(20deg)}@keyframes mapboxgl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}@media print{.mapbox-improve-map{display:none}}.mapboxgl-scroll-zoom-blocker,.mapboxgl-touch-pan-blocker{align-items:center;background:#000000b3;color:#fff;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;text-align:center;top:0;transition:opacity .75s ease-in-out;transition-delay:1s;width:100%}.mapboxgl-scroll-zoom-blocker-show,.mapboxgl-touch-pan-blocker-show{opacity:1;transition:opacity .1s ease-in-out}.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page,.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page .mapboxgl-canvas{touch-action:pan-x pan-y}.kvass-map{position:relative;aspect-ratio:var(--kvass-map-aspect-ratio);width:100%;background-color:var(--kvass-map-background, rgba(0, 0, 0, .2))}.kvass-map__address{padding:var(--kvass-map-address-padding-y, .5rem) var(--kvass-map-address-padding-x, 1rem);background-color:var(--kvass-map-address-background, rgba(0, 0, 0, .2));color:var(--kvass-map-address-color, rgba(255, 255, 255, .75));position:absolute;bottom:0}.kvass-map__map,.kvass-map .mapboxgl-canvas-container,.kvass-map .mapboxgl-canvas{height:100%;width:100%}.kvass-map .mapboxgl-ctrl-attrib,.kvass-map .mapboxgl-ctrl-logo{display:none}@media screen and (max-width: 680px){.kvass-map{aspect-ratio:1/1.4}}.kvass-map__address{right:0;left:0;text-align:center;padding-inline:var(--kvass-map-address-padding-x, .5rem)}`,jS={__name:"Map.ce",props:{theme:{type:String,required:!0},mapboxApiToken:{type:String,required:!0},coordinates:{type:String,required:!0},markers:{type:String},zoom:{type:String,default:"8",validator(zi){return typeof parseInt(zi)=="number"}},address:String,aspectRatio:String},setup(zi){const Mr=zi,yi=nu(()=>Mr.coordinates.split(",")),Fr=nu(()=>Mr.markers?.split(";").map(_o=>_o.split(","))),Yo=kS({style:Mr.theme,accessToken:Mr.mapboxApiToken});return(_o,Ua)=>(Kp(),PS(tv(OS),null,{default:RS(()=>[LS(tv(US),{coordinates:yi.value,zoom:parseInt(Mr.zoom),markers:Fr.value,"map-options":Yo,address:zi.address,"show-address":!!zi.address,"aspect-ratio":zi.aspectRatio},null,8,["coordinates","zoom","markers","map-options","address","show-address","aspect-ratio"])]),_:1}))}},GS=DS(jS,[["styles",[VS]]]);customElements.define("kvass-map",BS(GS));
2028
+ (${r.data.width}, ${r.data.height})`))):this.fire(new Ue(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`")))}hasImage(t){return t?!!this.style&&!!this.style.getImage(t):(this.fire(new Ue(new Error("Missing required image id"))),!1)}removeImage(t){this.style.removeImage(t)}loadImage(t,e){Ye(this._requestManager.transformRequest(t,J.Image),(r,i)=>{e(r,i instanceof W.HTMLImageElement?je.getImageData(i):i)})}listImages(){return this.style.listImages()}addModel(t,e){this._lazyInitEmptyStyle(),this.style.addModel(t,e)}hasModel(t){return t?this.style.hasModel(t):(this.fire(new Ue(new Error("Missing required model id"))),!1)}removeModel(t){this.style.removeModel(t)}listModels(){return this.style.listModels()}addLayer(t,e){return this._isValidId(t.id)?(this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)):this}moveLayer(t,e){return this._isValidId(t)?(this.style.moveLayer(t,e),this._update(!0)):this}removeLayer(t){return this._isValidId(t)?(this.style.removeLayer(t),this._update(!0)):this}getLayer(t){return this._isValidId(t)?this.style.getOwnLayer(t):null}setLayerZoomRange(t,e,r){return this._isValidId(t)?(this.style.setLayerZoomRange(t,e,r),this._update(!0)):this}setFilter(t,e,r={}){return this._isValidId(t)?(this.style.setFilter(t,e,r),this._update(!0)):this}getFilter(t){return this._isValidId(t)?this.style.getFilter(t):null}setPaintProperty(t,e,r,i={}){return this._isValidId(t)?(this.style.setPaintProperty(t,e,r,i),this._update(!0)):this}getPaintProperty(t,e){return this._isValidId(t)?this.style.getPaintProperty(t,e):null}setLayoutProperty(t,e,r,i={}){return this._isValidId(t)?(this.style.setLayoutProperty(t,e,r,i),this._update(!0)):this}getLayoutProperty(t,e){return this._isValidId(t)?this.style.getLayoutProperty(t,e):null}getConfigProperty(t,e){return this.style.getConfigProperty(t,e)}setConfigProperty(t,e,r){return this.style.setConfigProperty(t,e,r),this._update(!0)}setLights(t){if(this._lazyInitEmptyStyle(),t&&t.length===1&&t[0].type==="flat"){const e=t[0];e.properties?this.style.setFlatLight(e.properties,e.id,{}):this.style.setFlatLight({},"flat")}else this.style.setLights(t),this.painter.terrain&&(this.painter.terrain.invalidateRenderCache=!0);return this._update(!0)}getLights(){const t=this.style.getLights()||[];return t.length===0&&t.push({id:this.style.light.id,type:"flat",properties:this.style.getFlatLight()}),t}setLight(t,e={}){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:t}])}getLight(){return console.log("The `map.getLight` function is deprecated, prefer using `map.getLights` instead."),this.style.getFlatLight()}setTerrain(t){return this._lazyInitEmptyStyle(),!t&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(t),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(t){return this._lazyInitEmptyStyle(),this.style.setFog(t),this._update(!0)}getFog(){return this.style?this.style.getFog():null}setCamera(t){return this.style.setCamera(t),this._triggerCameraUpdate(t)}_triggerCameraUpdate(t){return this._update(this.transform.setOrthographicProjectionAtLowPitch(t["camera-projection"]==="orthographic"))}getCamera(){return this.style.camera}_queryFogOpacity(t){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(Ne.convert(t),this.transform):0}setFeatureState(t,e){return this._isValidId(t.source)?(this.style.setFeatureState(t,e),this._update()):this}removeFeatureState(t,e){return this._isValidId(t.source)?(this.style.removeFeatureState(t,e),this._update()):this}getFeatureState(t){return this._isValidId(t.source)?this.style.getFeatureState(t):null}_updateContainerDimensions(){if(!this._container)return;const t=this._container.getBoundingClientRect().width||400,e=this._container.getBoundingClientRect().height||300;let r,i,o,s=this._container;for(;s&&(!i||!o);){const n=W.getComputedStyle(s).transform;n&&n!=="none"&&(r=n.match(/matrix.*\((.+)\)/)[1].split(", "),r[0]&&r[0]!=="0"&&r[0]!=="1"&&(i=r[0]),r[3]&&r[3]!=="0"&&r[3]!=="1"&&(o=r[3])),s=s.parentElement}this._containerWidth=i?Math.abs(t/i):t,this._containerHeight=o?Math.abs(e/o):e}_detectMissingCSS(){W.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")!=="rgb(250, 128, 114)"&&F("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 t=this._container;t.classList.add("mapboxgl-map"),(this._missingCSSCanary=Dt("div","mapboxgl-canary",t)).style.visibility="hidden",this._detectMissingCSS();const e=this._canvasContainer=Dt("div","mapboxgl-canvas-container",t);this._canvas=Dt("canvas","mapboxgl-canvas",e),this._interactive&&(e.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 r=this._controlContainer=Dt("div","mapboxgl-control-container",t),i=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(o=>{i[o]=Dt("div",`mapboxgl-ctrl-${o}`,r)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(t,e){const r=je.devicePixelRatio||1;this._canvas.width=r*Math.ceil(t),this._canvas.height=r*Math.ceil(e),this._canvas.style.width=`${t}px`,this._canvas.style.height=`${e}px`}_addMarker(t){this._markers.push(t)}_removeMarker(t){const e=this._markers.indexOf(t);e!==-1&&this._markers.splice(e,1)}_addPopup(t){this._popups.push(t)}_removePopup(t){const e=this._popups.indexOf(t);e!==-1&&this._popups.splice(e,1)}_setupPainter(){const t=we({},nf.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),e=this._canvas.getContext("webgl2",t);e?(rf(e,!0),this.painter=new SM(e,this._contextCreateOptions,this.transform),this.on("data",r=>{r.dataType==="source"&&this.painter.setTileLoadedFlag(!0)}),Jo.testSupport(e)):this.fire(new Ue(new Error("Failed to initialize WebGL")))}_contextLost(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new ae("webglcontextlost",{originalEvent:t}))}_contextRestored(t){this._setupPainter(),this.resize(),this._update(),this.fire(new ae("webglcontextrestored",{originalEvent:t}))}_onMapScroll(t){if(t.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(t){return this._update(),this._renderTaskQueue.add(t)}_cancelRenderFrame(t){this._renderTaskQueue.remove(t)}_requestDomTask(t){!this.loaded()||this.loaded()&&!this.isMoving()?t():this._domRenderTaskQueue.add(t)}_render(t){let e;this.fire(new ae("renderstart"));const r=this.painter.context.extTimerQuery,i=je.now(),o=this.painter.context.gl;if(this.listens("gpu-timing-frame")&&(e=o.createQuery(),o.beginQuery(r.TIME_ELAPSED_EXT,e)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],W.performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],W.performance.now())),this._renderTaskQueue.run(t),this._domRenderTaskQueue.run(t),this._removed)return;this._updateProjectionTransition();const s=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const l=this.transform.zoom,c=this.transform.pitch,u=je.now(),h=new Ut(l,{now:u,fadeDuration:s,pitch:c,transition:this.style.transition});this.style.update(h)}this.style&&this.style.hasFogTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let n=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),n=this._updateAverageElevation(i),this.style.updateSources(this.transform),this._forceMarkerAndPopupUpdate()):n=this._updateAverageElevation(i),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,s,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,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:s,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 ae("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new ae("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),e){const l=je.now()-i;o.endQuery(r.TIME_ELAPSED_EXT),setTimeout(()=>{const c=o.getQueryParameter(e,o.QUERY_RESULT)/1e6;o.deleteQuery(e),this.fire(new ae("gpu-timing-frame",{cpuTime:l,gpuTime:c})),W.performance.mark("frame-gpu",{startTime:i,detail:{gpuTime:c}})},50)}if(this.listens("gpu-timing-layer")){const l=this.painter.collectGpuTimers();setTimeout(()=>{const c=this.painter.queryGpuTimers(l);this.fire(new ae("gpu-timing-layer",{layerTimes:c}))},50)}if(this.listens("gpu-timing-deferred-render")){const l=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{const c=this.painter.queryGpuTimeDeferredRender(l);this.fire(new ae("gpu-timing-deferred-render",{gpuTime:c}))},50)}const a=this._sourcesDirty||this._styleDirty||this._placementDirty||n;if(a||this._repaint)this.triggerRepaint();else{const l=!this.isMoving()&&this.loaded();if(l&&(n=this._updateAverageElevation(i,!0)),n)this.triggerRepaint();else if(this._triggerFrame(!1),l&&(this.fire(new ae("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const c=this._calculateSpeedIndex();this.fire(new ae("speedindexcompleted",{speedIndex:c})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||a||(this._fullyLoaded=!0,of.mark(Wa.fullLoad),this._performanceMetricsCollection&&nv(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(t){for(const e of this._markers)t&&!this.getRenderWorldCopies()&&(e._lngLat=e._lngLat.wrap()),e._update();for(const e of this._popups)!t||this.getRenderWorldCopies()||e._trackPointer||(e._lngLat=e._lngLat.wrap()),e._update()}_updateAverageElevation(t,e=!1){const r=o=>(this.transform.averageElevation=o,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return this.transform.averageElevation!==0&&r(0);const i=this.transform.elevation&&this.transform.elevation.exaggeration()!==this._averageElevationExaggeration;if(i||(e||t-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(t)){const o=this.transform.averageElevation;let s=this.transform.sampleAverageElevation();this.transform.elevation&&(this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(s)?s=0:this._averageElevationLastSampledAt=t;const n=Math.abs(o-s);if(n>1){if(this._isInitialLoad||i)return this._averageElevation.jumpTo(s),r(s);this._averageElevation.easeTo(s,t,300)}else if(n>1e-4)return this._averageElevation.jumpTo(s),r(s)}return!!this._averageElevation.isEasing(t)&&r(this._averageElevation.getValue(t))}_authenticate(){av(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,t=>{if(t&&(t.message===At||t.status===401)){const e=this.painter.context.gl;rf(e,!1),this._logoControl instanceof V1&&this._logoControl._updateLogo(),e&&e.clear(e.DEPTH_BUFFER_BIT|e.COLOR_BUFFER_BIT|e.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new Ue(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/")))}}),sv(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_updateTerrain(){const t=this._isDragging();this.painter.updateTerrain(this.style,t)}_calculateSpeedIndex(){const t=this.painter.canvasCopy(),e=this.painter.getCanvasCopiesAndTimestamps();e.timeStamps.push(performance.now());const r=this.painter.context.gl,i=r.createFramebuffer();function o(s){r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,s,0);const n=new Uint8Array(r.drawingBufferWidth*r.drawingBufferHeight*4);return r.readPixels(0,0,r.drawingBufferWidth,r.drawingBufferHeight,r.RGBA,r.UNSIGNED_BYTE,n),n}return r.bindFramebuffer(r.FRAMEBUFFER,i),this._canvasPixelComparison(o(t),e.canvasCopies.map(o),e.timeStamps)}_canvasPixelComparison(t,e,r){let i=r[1]-r[0];const o=t.length/4;for(let s=0;s<e.length;s++){const n=e[s];let a=0;for(let l=0;l<n.length;l+=4)n[l]===t[l]&&n[l+1]===t[l+1]&&n[l+2]===t[l+2]&&n[l+3]===t[l+3]&&(a+=1);i+=(r[s+2]-r[s+1])*(1-a/o)}return i}remove(){this._hash&&this._hash.remove();for(const e of this._controls)e.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),W!==void 0&&(W.removeEventListener("resize",this._onWindowResize,!1),W.removeEventListener("orientationchange",this._onWindowResize,!1),W.removeEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),W.removeEventListener("online",this._onWindowOnline,!1),W.removeEventListener("visibilitychange",this._onVisibilityChange,!1));const t=this.painter.context.gl.getExtension("WEBGL_lose_context");t&&t.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),Ha.delete(this.painter.context.gl),this._removed=!0,this.fire(new ae("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(t){this._renderNextFrame=this._renderNextFrame||t,this.style&&!this._frame&&(this._frame=je.frame(e=>{const r=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,r&&this._render(e)}))}_preloadTiles(t){return rs(this.style?Object.values(this.style._sourceCaches):[],(e,r)=>e._preloadTiles(t,r),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(t){this._trackResize&&this.resize({originalEvent:t})._update()}_onVisibilityChange(){W.document.visibilityState==="hidden"&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(t){this._showTerrainWireframe!==t&&(this._showTerrainWireframe=t,this._update())}get showLayers2DWireframe(){return!!this._showLayers2DWireframe}set showLayers2DWireframe(t){this._showLayers2DWireframe!==t&&(this._showLayers2DWireframe=t,this._update())}get showLayers3DWireframe(){return!!this._showLayers3DWireframe}set showLayers3DWireframe(t){this._showLayers3DWireframe!==t&&(this._showLayers3DWireframe=t,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(t){this._speedIndexTiming!==t&&(this._speedIndexTiming=t,this._update())}get showPadding(){return!!this._showPadding}set showPadding(t){this._showPadding!==t&&(this._showPadding=t,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())}get repaint(){return!!this._repaint}set repaint(t){this._repaint!==t&&(this._repaint=t,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(t){this._vertices=t,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(t){this._showTileAABBs!==t&&(this._showTileAABBs=t,t&&this._update())}_setCacheLimits(t,e){(function(r,i){Ar=r,kr=i})(t,e)}get version(){return oi}},NavigationControl:class{constructor(t){this.options=we({},yS,t),this._container=Dt("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",e=>e.preventDefault()),this.options.showZoom&&(dr(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",e=>{this._map&&this._map.zoomIn({},{originalEvent:e})}),Dt("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",e=>{this._map&&this._map.zoomOut({},{originalEvent:e})}),Dt("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(dr(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",e=>{const r=this._map;r&&(this.options.visualizePitch?r.resetNorthPitch({},{originalEvent:e}):r.resetNorth({},{originalEvent:e}))}),this._compassIcon=Dt("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const t=this._map;if(!t)return;const e=t.getZoom(),r=e===t.getMaxZoom(),i=e===t.getMinZoom();this._zoomInButton.disabled=r,this._zoomOutButton.disabled=i,this._zoomInButton.setAttribute("aria-disabled",r.toString()),this._zoomOutButton.setAttribute("aria-disabled",i.toString())}_rotateCompassArrow(){const t=this._map;if(!t)return;const e=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(t.transform.pitch*(Math.PI/180)),.5)}) rotateX(${t.transform.pitch}deg) rotateZ(${t.transform.angle*(180/Math.PI)}deg)`:`rotate(${t.transform.angle*(180/Math.PI)}deg)`;t._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=e)})}onAdd(t){return this._map=t,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),t.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&t.on("pitch",this._rotateCompassArrow),t.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new xS(t,this._compass,this.options.visualizePitch)),this._container}onRemove(){const t=this._map;t&&(this._container.remove(),this.options.showZoom&&t.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&t.off("pitch",this._rotateCompassArrow),t.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(t,e){const r=Dt("button",t,this._container);return r.type="button",r.addEventListener("click",e),r}_setButtonTitle(t,e){if(!this._map)return;const r=this._map._getUIString(`NavigationControl.${e}`);t.setAttribute("aria-label",r),t.firstElementChild&&t.firstElementChild.setAttribute("title",r)}},GeolocateControl:class extends ir{constructor(t){super(),this.options=we({geolocation:W.navigator.geolocation},vS,t),dr(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=k1(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(t){return this._map=t,this._container=Dt("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(t){const e=(r=!!this.options.geolocation)=>{this._supportsGeolocation=r,t(r)};this._supportsGeolocation!==void 0?t(this._supportsGeolocation):W.navigator.permissions!==void 0?W.navigator.permissions.query({name:"geolocation"}).then(r=>e(r.state!=="denied")).catch(()=>e()):e()}_isOutOfMapMaxBounds(t){const e=this._map.getMaxBounds(),r=t.coords;return!!e&&(r.longitude<e.getWest()||r.longitude>e.getEast()||r.latitude<e.getSouth()||r.latitude>e.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(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new ae("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,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(t),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(t),this.options.showUserLocation&&this._userLocationDotMarker.removeClassName("mapboxgl-user-location-dot-stale"),this.fire(new ae("geolocate",t)),this._finish()}}_updateCamera(t){const e=new Ne(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy,i=we({bearing:this._map.getBearing()},this.options.fitBoundsOptions);this._map.fitBounds(e.toBounds(r),i,{geolocateSource:!0})}_updateMarker(t){if(t){const e=new Ne(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(e).addTo(this._map),this._userLocationDotMarker.setLngLat(e).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const t=this._map.transform,e=It(1,t._center.lat)*t.worldSize,r=Math.ceil(2*this._accuracy*e);this._circleElement.style.width=`${r}px`,this._circleElement.style.height=`${r}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(t){if(this._map){if(this.options.trackUserLocation)if(t.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 e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(t.code===3&&this._noTimeout)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._userLocationDotMarker.addClassName("mapboxgl-user-location-dot-stale"),this.fire(new ae("error",t)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(t){if(this._map!==void 0){if(this._container.addEventListener("contextmenu",e=>e.preventDefault()),this._geolocateButton=Dt("button","mapboxgl-ctrl-geolocate",this._container),Dt("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",t===!1){F("Geolocation support is not available so the GeolocateControl will be disabled.");const e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e)}else{const e=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=Dt("div","mapboxgl-user-location"),this._dotElement.appendChild(Dt("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(Dt("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new Gp({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=Dt("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Gp({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",e=>{e.geolocateSource||this._watchState!=="ACTIVE_LOCK"||e.originalEvent&&e.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 ae("trackuserlocationend")))})}}_onDeviceOrientation(t){this._userLocationDotMarker&&(t.webkitCompassHeading?this._heading=t.webkitCompassHeading:t.absolute===!0&&(this._heading=-1*t.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return F("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 ae("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 ae("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 ae("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 t;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(t={maximumAge:6e5,timeout:0},this._noTimeout=!0):(t=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,t),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const t=()=>{W.addEventListener("ondeviceorientationabsolute"in W?"deviceorientationabsolute":"deviceorientation",this._onDeviceOrientation)};W.DeviceMotionEvent!==void 0&&typeof W.DeviceMotionEvent.requestPermission=="function"?DeviceOrientationEvent.requestPermission().then(e=>{e==="granted"&&t()}).catch(console.error):t()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),W.removeEventListener("deviceorientation",this._onDeviceOrientation),W.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:U1,ScaleControl:class{constructor(t){this.options=we({},bS,t),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch{return!1}}(),dr(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const t=this.options.maxWidth||100,e=this._map,r=e._containerHeight/2,i=e._containerWidth/2-t/2,o=e.unproject([i,r]),s=e.unproject([i+t,r]),n=o.distanceTo(s);if(this.options.unit==="imperial"){const a=3.2808*n;a>5280?this._setScale(t,a/5280,"mile"):this._setScale(t,a,"foot")}else this.options.unit==="nautical"?this._setScale(t,n/1852,"nautical-mile"):n>=1e3?this._setScale(t,n/1e3,"kilometer"):this._setScale(t,n,"meter")}_setScale(t,e,r){this._map._requestDomTask(()=>{const i=function(s){const n=Math.pow(10,`${Math.floor(s)}`.length-1);let a=s/n;return a=a>=10?10:a>=5?5:a>=3?3:a>=2?2:a>=1?1:function(l){const c=Math.pow(10,Math.ceil(-Math.log(l)/Math.LN10));return Math.round(l*c)/c}(a),n*a}(e),o=i/e;this._container.innerHTML=this._isNumberFormatSupported&&r!=="nautical-mile"?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:r}).format(i):`${i}&nbsp;${wS[r]}`,this._container.style.width=t*o+"px"})}onAdd(t){return this._map=t,this._language=t.getLanguage(),this._container=Dt("div","mapboxgl-ctrl mapboxgl-ctrl-scale",t.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(t){this._language=t,this._update()}setUnit(t){this.options.unit=t,this._update()}},FullscreenControl:class{constructor(t){this._fullscreen=!1,t&&t.container&&(t.container instanceof W.HTMLElement?this._container=t.container:F("Full screen control 'container' must be a DOM element.")),dr(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in W.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in W.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=Dt("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",F("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,W.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!W.document.fullscreenEnabled&&!W.document.webkitFullscreenEnabled)}_setupUI(){const t=this._fullscreenButton=Dt("button","mapboxgl-ctrl-fullscreen",this._controlContainer);Dt("span","mapboxgl-ctrl-icon",t).setAttribute("aria-hidden","true"),t.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),W.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",t)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(W.document.fullscreenElement||W.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()?W.document.exitFullscreen?W.document.exitFullscreen():W.document.webkitCancelFullScreen&&W.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends ir{constructor(t){super(),this.options=we(Object.create(pS),t),dr(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(t&&t.className?t.className.trim().split(/\s+/):[])}addTo(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&t.on("preclick",this._onClose),this.options.closeOnMove&&t.on("move",this._onClose),t.on("remove",this.remove),this._update(),t._addPopup(this),this._focusFirstElement(),this._trackPointer?(t.on("mousemove",this._onMouseEvent),t.on("mouseup",this._onMouseEvent),t._canvasContainer.classList.add("mapboxgl-track-pointer")):t.on("move",this._update),this.fire(new ae("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const t=this._map;return t&&(t.off("move",this._update),t.off("move",this._onClose),t.off("preclick",this._onClose),t.off("click",this._onClose),t.off("remove",this.remove),t.off("mousemove",this._onMouseEvent),t.off("mouseup",this._onMouseEvent),t.off("drag",this._onMouseEvent),t._canvasContainer&&t._canvasContainer.classList.remove("mapboxgl-track-pointer"),t._removePopup(this),this._map=void 0),this.fire(new ae("close")),this}getLngLat(){return this._lngLat}setLngLat(t){this._lngLat=Ne.convert(t),this._pos=null,this._trackPointer=!1,this._update();const e=this._map;return e&&(e.on("move",this._update),e.off("mousemove",this._onMouseEvent),e._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const t=this._map;return t&&(t.off("move",this._update),t.on("mousemove",this._onMouseEvent),t.on("drag",this._onMouseEvent),t._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(t){return this.setDOMContent(W.document.createTextNode(t))}setHTML(t){const e=W.document.createDocumentFragment(),r=W.document.createElement("body");let i;for(r.innerHTML=t;i=r.firstChild,i;)e.appendChild(i);return this.setDOMContent(e)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(t){return this.options.maxWidth=t,this._update(),this}setDOMContent(t){let e=this._content;if(e)for(;e.hasChildNodes();)e.firstChild&&e.removeChild(e.firstChild);else e=this._content=Dt("div","mapboxgl-popup-content",this._container||void 0);if(e.appendChild(t),this.options.closeButton){const r=this._closeButton=Dt("button","mapboxgl-popup-close-button",e);r.type="button",r.setAttribute("aria-label","Close popup"),r.setAttribute("aria-hidden","true"),r.innerHTML="&#215;",r.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(t){return this._classList.add(t),this._updateClassList(),this}removeClassName(t){return this._classList.delete(t),this._updateClassList(),this}setOffset(t){return this.options.offset=t,this._update(),this}toggleClassName(t){let e;return this._classList.delete(t)?e=!1:(this._classList.add(t),e=!0),this._updateClassList(),e}_onMouseEvent(t){this._update(t.point)}_getAnchor(t){if(this.options.anchor)return this.options.anchor;const e=this._map,r=this._container,i=this._pos;if(!e||!r||!i)return"bottom";const o=r.offsetWidth,s=r.offsetHeight,n=i.x<o/2,a=i.x>e.transform.width-o/2;if(i.y+t<s)return n?"top-left":a?"top-right":"top";if(i.y>e.transform.height-s){if(n)return"bottom-left";if(a)return"bottom-right"}return n?"left":a?"right":"bottom"}_updateClassList(){const t=this._container;if(!t)return;const e=[...this._classList];e.push("mapboxgl-popup"),this._anchor&&e.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&e.push("mapboxgl-popup-track-pointer"),t.className=e.join(" ")}_update(t){const e=this._map,r=this._content;if(!e||!this._lngLat&&!this._trackPointer||!r)return;let i=this._container;if(i||(i=this._container=Dt("div","mapboxgl-popup",e.getContainer()),this._tip=Dt("div","mapboxgl-popup-tip",i),i.appendChild(r)),this.options.maxWidth&&i.style.maxWidth!==this.options.maxWidth&&(i.style.maxWidth=this.options.maxWidth),e.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=G1(this._lngLat,this._pos,e.transform)),!this._trackPointer||t){const o=this._pos=this._trackPointer&&t?t:e.project(this._lngLat),s=q1(this.options.offset),n=this._anchor=this._getAnchor(s.y),a=q1(this.options.offset,n),l=o.add(a).round();e._requestDomTask(()=>{this._container&&n&&(this._container.style.transform=`${jp[n]} translate(${l.x}px,${l.y}px)`)})}if(!this._marker&&e._showingGlobe()){const o=Vl(e.transform,this._lngLat)?0:1;this._setOpacity(o)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const t=this._container.querySelector(fS);t&&t.focus()}_onClose(){this.remove()}_setOpacity(t){this._container&&(this._container.style.opacity=`${t}`),this._content&&(this._content.style.pointerEvents=t?"auto":"none")}},Marker:Gp,Style:Ci,LngLat:Ne,LngLatBounds:Hr,Point:N,MercatorCoordinate:lt,FreeCameraOptions:t0,Evented:ir,config:et,prewarm:function(){Ra().acquire(pp)},clearPrewarmedResources:function(){const t=Pa;t&&(t.isPreloaded()&&t.numActive()===1?(t.release(pp),Pa=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return et.ACCESS_TOKEN},set accessToken(t){et.ACCESS_TOKEN=t},get baseApiUrl(){return et.API_URL},set baseApiUrl(t){et.API_URL=t},get workerCount(){return En.workerCount},set workerCount(t){En.workerCount=t},get maxParallelImageRequests(){return et.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){et.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage(t){(function(e){if(!Bs())return;const r=W.caches.delete(Lt);e&&r.catch(e).then(()=>e())})(t)},workerUrl:"",workerClass:null,get dracoUrl(){return _x()},set dracoUrl(t){(function(e){fp=je.resolveURL(e),mp||(mp=new Ss(Ra(),new ir)),mp.broadcast("setDracoUrl",fp)})(t)},setNow:je.setNow,restoreNow:je.restoreNow};Se.A=ax,Se.D=sc,Se.E=H,Se.F=Bd,Se.K=jc,Se.O=mt,Se.P=N,Se.T=S0,Se.V=ec,Se.a=Ql,Se.b=oy,Se.c=Pc,Se.d=class extends ir{constructor(t,e,r,i,o,s){super(),this.actor=t,this.layerIndex=e,this.availableImages=r,this.loadVectorData=o||fx,this.loading={},this.loaded={},this.deduped=new px(t.scheduler),this.isSpriteLoaded=i,this.scheduler=t.scheduler,this.brightness=s}loadTile(t,e){const r=t.uid,i=t&&t.request,o=i&&i.collectResourceTiming,s=this.loading[r]=new j3(t);s.abort=this.loadVectorData(t,(n,a)=>{const l=!this.loading[r];if(delete this.loading[r],l||n||!a)return s.status="done",l||(this.loaded[r]=s),e(n);const c=a.rawData,u={};a.expires&&(u.expires=a.expires),a.cacheControl&&(u.cacheControl=a.cacheControl),s.vectorTile=a.vectorTile||new Rd(new oc(c));const h=()=>{s.parse(s.vectorTile,this.layerIndex,this.availableImages,this.actor,(d,p)=>{if(d||!p)return e(d);const f={};if(o){const m=sf(i);m.length>0&&(f.resourceTiming=JSON.parse(JSON.stringify(m)))}e(null,we({rawTileData:c.slice(0)},p,u,f))})};this.isSpriteLoaded?h():this.once("isSpriteLoaded",()=>{this.scheduler?this.scheduler.add(h,{type:"parseTile",isSymbolTile:t.isSymbolTile,zoom:t.tileZoom}):h()}),this.loaded=this.loaded||{},this.loaded[r]=s})}reloadTile(t,e){const r=this.loaded,i=t.uid,o=this;if(r&&r[i]){const s=r[i];s.showCollisionBoxes=t.showCollisionBoxes,s.projection=t.projection,s.brightness=t.brightness,s.tileTransform=bs(t.tileID.canonical,t.projection),s.extraShadowCaster=t.extraShadowCaster;const n=(a,l)=>{const c=s.reloadCallback;c&&(delete s.reloadCallback,s.parse(s.vectorTile,o.layerIndex,this.availableImages,o.actor,c)),e(a,l)};s.status==="parsing"?s.reloadCallback=n:s.status==="done"&&(s.vectorTile?s.parse(s.vectorTile,this.layerIndex,this.availableImages,this.actor,n):n())}else e(null,void 0)}abortTile(t,e){const r=t.uid,i=this.loading[r];i&&(i.abort&&i.abort(),delete this.loading[r]),e()}removeTile(t,e){const r=this.loaded,i=t.uid;r&&r[i]&&delete r[i],e()}},Se.e=To,Se.f=sf,Se.g=si,Se.h=ue,Se.i=fe,Se.j=function(t,e){const r=bp(t);for(const i of r){for(const o of i.meshes)K3(o);i.lights&&(i.lightMeshIndex=i.meshes.length,i.meshes.push(Q3(i.lights,e)))}return r},Se.k=Ut,Se.l=function(t){let e=0;if(new Uint32Array(t,0,1)[0]!==yx){const r=new Uint32Array(t,0,7),[,,i,o,s,n]=r;e=r.byteLength+o+s+n+s,(i!==t.byteLength||e>=t.byteLength)&&F("Invalid b3dm header information.")}return wx(t,e)},Se.m=fc,Se.n=hi,Se.o=ae,Se.p=Ds,Se.q=function(t){Ur(),Pr&&Pr.then(e=>{e.keys().then(r=>{for(let i=0;i<r.length-t;i++)e.delete(r[i])})})},Se.r=Ax,Se.s=ou,Se.t=ca,Se.v=is,Se.w=W}),_o(["./shared"],function(Se){function W(le){if(typeof le=="number"||typeof le=="boolean"||typeof le=="string"||le==null)return JSON.stringify(le);if(Array.isArray(le)){let P="[";for(const F of le)P+=`${W(F)},`;return`${P}]`}let z="{";for(const P of Object.keys(le).sort())z+=`${P}:${W(le[P])},`;return`${z}}`}function oi(le){let z="";for(const P of Se.r)z+=`/${W(le[P])}`;return z}class Sr{constructor(z){this.keyCache={},this._layers={},this._layerConfigs={},z&&this.replace(z)}replace(z,P){this._layerConfigs={},this._layers={},this.update(z,[],P)}update(z,P,F){this._options=F;for(const ie of z){this._layerConfigs[ie.id]=ie;const ve=this._layers[ie.id]=Se.c(ie,this._options);ve.setScope(this.scope),ve.compileFilter(),this.keyCache[ie.id]&&delete this.keyCache[ie.id]}for(const ie of P)delete this.keyCache[ie],delete this._layerConfigs[ie],delete this._layers[ie];this.familiesBySource={};const te=function(ie,ve){const Ce={};for(let ze=0;ze<ie.length;ze++){const Ge=ve&&ve[ie[ze].id]||oi(ie[ze]);ve&&(ve[ie[ze].id]=Ge);let Ve=Ce[Ge];Ve||(Ve=Ce[Ge]=[]),Ve.push(ie[ze])}const oe=[];for(const ze in Ce)oe.push(Ce[ze]);return oe}(Se.v(this._layerConfigs),this.keyCache);for(const ie of te){const ve=ie.map(kt=>this._layers[kt.id]),Ce=ve[0];if(Ce.visibility==="none")continue;const oe=Ce.source||"";let ze=this.familiesBySource[oe];ze||(ze=this.familiesBySource[oe]={});const Ge=Ce.sourceLayer||"_geojsonTileLayer";let Ve=ze[Ge];Ve||(Ve=ze[Ge]=[]),Ve.push(ve)}}}class et{loadTile(z,P){const{uid:F,encoding:te,rawImageData:ie,padding:ve}=z,Ce=Se.w.ImageBitmap&&ie instanceof Se.w.ImageBitmap?this.getImageData(ie,ve):ie;P(null,new Se.D(F,Ce,te,ve<1))}getImageData(z,P){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(z.width,z.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d",{willReadFrequently:!0})),this.offscreenCanvas.width=z.width,this.offscreenCanvas.height=z.height,this.offscreenCanvasContext.drawImage(z,0,0,z.width,z.height);const F=this.offscreenCanvasContext.getImageData(-P,-P,z.width+2*P,z.height+2*P);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),F}}function Jo(le,z){if(le.length!==0){go(le[0],z);for(var P=1;P<le.length;P++)go(le[P],!z)}}function go(le,z){for(var P=0,F=0,te=0,ie=le.length,ve=ie-1;te<ie;ve=te++){var Ce=(le[te][0]-le[ve][0])*(le[ve][1]+le[te][1]),oe=P+Ce;F+=Math.abs(P)>=Math.abs(Ce)?P-oe+Ce:Ce-oe+P,P=oe}P+F>=0!=!!z&&le.reverse()}var yo=Se.g(function le(z,P){var F,te=z&&z.type;if(te==="FeatureCollection")for(F=0;F<z.features.length;F++)le(z.features[F],P);else if(te==="GeometryCollection")for(F=0;F<z.geometries.length;F++)le(z.geometries[F],P);else if(te==="Feature")le(z.geometry,P);else if(te==="Polygon")Jo(z.coordinates,P);else if(te==="MultiPolygon")for(F=0;F<z.coordinates.length;F++)Jo(z.coordinates[F],P);return z});const zn=Se.V.prototype.toGeoJSON;var xo={exports:{}},Va=Se.p,Dn=Se.a.VectorTileFeature,si=ja;function ja(le,z){this.options=z||{},this.features=le,this.length=le.length}function Ko(le,z){this.id=typeof le.id=="number"?le.id:void 0,this.type=le.type,this.rawGeometry=le.type===1?[le.geometry]:le.geometry,this.properties=le.tags,this.extent=z||4096}ja.prototype.feature=function(le){return new Ko(this.features[le],this.options.extent)},Ko.prototype.loadGeometry=function(){var le=this.rawGeometry;this.geometry=[];for(var z=0;z<le.length;z++){for(var P=le[z],F=[],te=0;te<P.length;te++)F.push(new Va(P[te][0],P[te][1]));this.geometry.push(F)}return this.geometry},Ko.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var le=this.geometry,z=1/0,P=-1/0,F=1/0,te=-1/0,ie=0;ie<le.length;ie++)for(var ve=le[ie],Ce=0;Ce<ve.length;Ce++){var oe=ve[Ce];z=Math.min(z,oe.x),P=Math.max(P,oe.x),F=Math.min(F,oe.y),te=Math.max(te,oe.y)}return[z,F,P,te]},Ko.prototype.toGeoJSON=Dn.prototype.toGeoJSON;var Ga=Se.b,Ds=si;function Di(le){var z=new Ga;return function(P,F){for(var te in P.layers)F.writeMessage(3,N,P.layers[te])}(le,z),z.finish()}function N(le,z){var P;z.writeVarintField(15,le.version||1),z.writeStringField(1,le.name||""),z.writeVarintField(5,le.extent||4096);var F={keys:[],values:[],keycache:{},valuecache:{}};for(P=0;P<le.length;P++)F.feature=le.feature(P),z.writeMessage(2,dt,F);var te=F.keys;for(P=0;P<te.length;P++)z.writeStringField(3,te[P]);var ie=F.values;for(P=0;P<ie.length;P++)z.writeMessage(4,lu,ie[P])}function dt(le,z){var P=le.feature;P.id!==void 0&&z.writeVarintField(1,P.id),z.writeMessage(2,au,le),z.writeVarintField(3,P.type),z.writeMessage(4,xr,P)}function au(le,z){var P=le.feature,F=le.keys,te=le.values,ie=le.keycache,ve=le.valuecache;for(var Ce in P.properties){var oe=P.properties[Ce],ze=ie[Ce];if(oe!==null){ze===void 0&&(F.push(Ce),ie[Ce]=ze=F.length-1),z.writeVarint(ze);var Ge=typeof oe;Ge!=="string"&&Ge!=="boolean"&&Ge!=="number"&&(oe=JSON.stringify(oe));var Ve=Ge+":"+oe,kt=ve[Ve];kt===void 0&&(te.push(oe),ve[Ve]=kt=te.length-1),z.writeVarint(kt)}}}function Qo(le,z){return(z<<3)+(7&le)}function $e(le){return le<<1^le>>31}function xr(le,z){for(var P=le.loadGeometry(),F=le.type,te=0,ie=0,ve=P.length,Ce=0;Ce<ve;Ce++){var oe=P[Ce],ze=1;F===1&&(ze=oe.length),z.writeVarint(Qo(1,ze));for(var Ge=F===3?oe.length-1:oe.length,Ve=0;Ve<Ge;Ve++){Ve===1&&F!==1&&z.writeVarint(Qo(2,Ge-1));var kt=oe[Ve].x-te,Zt=oe[Ve].y-ie;z.writeVarint($e(kt)),z.writeVarint($e(Zt)),te+=kt,ie+=Zt}F===3&&z.writeVarint(Qo(7,1))}}function lu(le,z){var P=typeof le;P==="string"?z.writeStringField(1,le):P==="boolean"?z.writeBooleanField(7,le):P==="number"&&(le%1!=0?z.writeDoubleField(3,le):le<0?z.writeSVarintField(6,le):z.writeVarintField(5,le))}xo.exports=Di,xo.exports.fromVectorTileJs=Di,xo.exports.fromGeojsonVt=function(le,z){z=z||{};var P={};for(var F in le)P[F]=new Ds(le[F].features,z),P[F].name=F,P[F].version=z.version,P[F].extent=z.extent;return Di({layers:P})},xo.exports.GeoJSONWrapper=Ds;var ks=Se.g(xo.exports);const cu={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:le=>le},es=Math.fround||(ts=new Float32Array(1),le=>(ts[0]=+le,ts[0]));var ts;const ni=3,Me=5,ki=6;class Pi{constructor(z){this.options=Object.assign(Object.create(cu),z),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(z){const{log:P,minZoom:F,maxZoom:te}=this.options;P&&console.time("total time");const ie=`prepare ${z.length} points`;P&&console.time(ie),this.points=z;const ve=[];for(let oe=0;oe<z.length;oe++){const ze=z[oe];if(!ze.geometry)continue;const[Ge,Ve]=ze.geometry.coordinates,kt=es(we(Ge)),Zt=es(Nr(Ve));ve.push(kt,Zt,1/0,oe,-1,1),this.options.reduce&&ve.push(0)}let Ce=this.trees[te+1]=this._createTree(ve);P&&console.timeEnd(ie);for(let oe=te;oe>=F;oe--){const ze=+Date.now();Ce=this.trees[oe]=this._createTree(this._cluster(Ce,oe)),P&&console.log("z%d: %d clusters in %dms",oe,Ce.numItems,+Date.now()-ze)}return P&&console.timeEnd("total time"),this}getClusters(z,P){let F=((z[0]+180)%360+360)%360-180;const te=Math.max(-90,Math.min(90,z[1]));let ie=z[2]===180?180:((z[2]+180)%360+360)%360-180;const ve=Math.max(-90,Math.min(90,z[3]));if(z[2]-z[0]>=360)F=-180,ie=180;else if(F>ie){const Ve=this.getClusters([F,te,180,ve],P),kt=this.getClusters([-180,te,ie,ve],P);return Ve.concat(kt)}const Ce=this.trees[this._limitZoom(P)],oe=Ce.range(we(F),Nr(ve),we(ie),Nr(te)),ze=Ce.data,Ge=[];for(const Ve of oe){const kt=this.stride*Ve;Ge.push(ze[kt+Me]>1?rs(ze,kt,this.clusterProps):this.points[ze[kt+ni]])}return Ge}getChildren(z){const P=this._getOriginId(z),F=this._getOriginZoom(z),te="No cluster with the specified id.",ie=this.trees[F];if(!ie)throw new Error(te);const ve=ie.data;if(P*this.stride>=ve.length)throw new Error(te);const Ce=this.options.radius/(this.options.extent*Math.pow(2,F-1)),oe=ie.within(ve[P*this.stride],ve[P*this.stride+1],Ce),ze=[];for(const Ge of oe){const Ve=Ge*this.stride;ve[Ve+4]===z&&ze.push(ve[Ve+Me]>1?rs(ve,Ve,this.clusterProps):this.points[ve[Ve+ni]])}if(ze.length===0)throw new Error(te);return ze}getLeaves(z,P,F){const te=[];return this._appendLeaves(te,z,P=P||10,F=F||0,0),te}getTile(z,P,F){const te=this.trees[this._limitZoom(z)],ie=Math.pow(2,z),{extent:ve,radius:Ce}=this.options,oe=Ce/ve,ze=(F-oe)/ie,Ge=(F+1+oe)/ie,Ve={features:[]};return this._addTileFeatures(te.range((P-oe)/ie,ze,(P+1+oe)/ie,Ge),te.data,P,F,ie,Ve),P===0&&this._addTileFeatures(te.range(1-oe/ie,ze,1,Ge),te.data,ie,F,ie,Ve),P===ie-1&&this._addTileFeatures(te.range(0,ze,oe/ie,Ge),te.data,-1,F,ie,Ve),Ve.features.length?Ve:null}getClusterExpansionZoom(z){let P=this._getOriginZoom(z)-1;for(;P<=this.options.maxZoom;){const F=this.getChildren(z);if(P++,F.length!==1)break;z=F[0].properties.cluster_id}return P}_appendLeaves(z,P,F,te,ie){const ve=this.getChildren(P);for(const Ce of ve){const oe=Ce.properties;if(oe&&oe.cluster?ie+oe.point_count<=te?ie+=oe.point_count:ie=this._appendLeaves(z,oe.cluster_id,F,te,ie):ie<te?ie++:z.push(Ce),z.length===F)break}return ie}_createTree(z){const P=new Se.K(z.length/this.stride|0,this.options.nodeSize,Float32Array);for(let F=0;F<z.length;F+=this.stride)P.add(z[F],z[F+1]);return P.finish(),P.data=z,P}_addTileFeatures(z,P,F,te,ie,ve){for(const Ce of z){const oe=Ce*this.stride,ze=P[oe+Me]>1;let Ge,Ve,kt;if(ze)Ge=is(P,oe,this.clusterProps),Ve=P[oe],kt=P[oe+1];else{const $t=this.points[P[oe+ni]];Ge=$t.properties;const[Qt,Lt]=$t.geometry.coordinates;Ve=we(Qt),kt=Nr(Lt)}const Zt={type:1,geometry:[[Math.round(this.options.extent*(Ve*ie-F)),Math.round(this.options.extent*(kt*ie-te))]],tags:Ge};let vr;vr=ze||this.options.generateId?P[oe+ni]:this.points[P[oe+ni]].id,vr!==void 0&&(Zt.id=vr),ve.features.push(Zt)}}_limitZoom(z){return Math.max(this.options.minZoom,Math.min(Math.floor(+z),this.options.maxZoom+1))}_cluster(z,P){const{radius:F,extent:te,reduce:ie,minPoints:ve}=this.options,Ce=F/(te*Math.pow(2,P)),oe=z.data,ze=[],Ge=this.stride;for(let Ve=0;Ve<oe.length;Ve+=Ge){if(oe[Ve+2]<=P)continue;oe[Ve+2]=P;const kt=oe[Ve],Zt=oe[Ve+1],vr=z.within(oe[Ve],oe[Ve+1],Ce),$t=oe[Ve+Me];let Qt=$t;for(const Lt of vr){const Ar=Lt*Ge;oe[Ar+2]>P&&(Qt+=oe[Ar+Me])}if(Qt>$t&&Qt>=ve){let Lt,Ar=kt*$t,kr=Zt*$t,Pr=-1;const xi=((Ve/Ge|0)<<5)+(P+1)+this.points.length;for(const Bs of vr){const Ur=Bs*Ge;if(oe[Ur+2]<=P)continue;oe[Ur+2]=P;const Xi=oe[Ur+Me];Ar+=oe[Ur]*Xi,kr+=oe[Ur+1]*Xi,oe[Ur+4]=xi,ie&&(Lt||(Lt=this._map(oe,Ve,!0),Pr=this.clusterProps.length,this.clusterProps.push(Lt)),ie(Lt,this._map(oe,Ur)))}oe[Ve+4]=xi,ze.push(Ar/Qt,kr/Qt,1/0,xi,-1,Qt),ie&&ze.push(Pr)}else{for(let Lt=0;Lt<Ge;Lt++)ze.push(oe[Ve+Lt]);if(Qt>1)for(const Lt of vr){const Ar=Lt*Ge;if(!(oe[Ar+2]<=P)){oe[Ar+2]=P;for(let kr=0;kr<Ge;kr++)ze.push(oe[Ar+kr])}}}}return ze}_getOriginId(z){return z-this.points.length>>5}_getOriginZoom(z){return(z-this.points.length)%32}_map(z,P,F){if(z[P+Me]>1){const ve=this.clusterProps[z[P+ki]];return F?Object.assign({},ve):ve}const te=this.points[z[P+ni]].properties,ie=this.options.map(te);return F&&ie===te?Object.assign({},ie):ie}}function rs(le,z,P){return{type:"Feature",id:le[z+ni],properties:is(le,z,P),geometry:{type:"Point",coordinates:[(F=le[z],360*(F-.5)),uu(le[z+1])]}};var F}function is(le,z,P){const F=le[z+Me],te=F>=1e4?`${Math.round(F/1e3)}k`:F>=1e3?Math.round(F/100)/10+"k":F,ie=le[z+ki],ve=ie===-1?{}:Object.assign({},P[ie]);return Object.assign(ve,{cluster:!0,cluster_id:le[z+ni],point_count:F,point_count_abbreviated:te})}function we(le){return le/360+.5}function Nr(le){const z=Math.sin(le*Math.PI/180),P=.5-.25*Math.log((1+z)/(1-z))/Math.PI;return P<0?0:P>1?1:P}function uu(le){const z=(180-360*le)*Math.PI/180;return 360*Math.atan(Math.exp(z))/Math.PI-90}var Ps={exports:{}};Ps.exports=function(){function le(J,Q,ne,ce){for(var ue,fe=ce,_e=ne-Q>>1,he=ne-Q,Ee=J[Q],me=J[Q+1],Ye=J[ne],At=J[ne+1],Pe=Q+3;Pe<ne;Pe+=3){var wt=z(J[Pe],J[Pe+1],Ee,me,Ye,At);if(wt>fe)ue=Pe,fe=wt;else if(wt===fe){var Ht=Math.abs(Pe-_e);Ht<he&&(ue=Pe,he=Ht)}}fe>ce&&(ue-Q>3&&le(J,Q,ue,ce),J[ue+2]=fe,ne-ue>3&&le(J,ue,ne,ce))}function z(J,Q,ne,ce,ue,fe){var _e=ue-ne,he=fe-ce;if(_e!==0||he!==0){var Ee=((J-ne)*_e+(Q-ce)*he)/(_e*_e+he*he);Ee>1?(ne=ue,ce=fe):Ee>0&&(ne+=_e*Ee,ce+=he*Ee)}return(_e=J-ne)*_e+(he=Q-ce)*he}function P(J,Q,ne,ce){var ue={id:J===void 0?null:J,type:Q,geometry:ne,tags:ce,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(fe){var _e=fe.geometry,he=fe.type;if(he==="Point"||he==="MultiPoint"||he==="LineString")F(fe,_e);else if(he==="Polygon"||he==="MultiLineString")for(var Ee=0;Ee<_e.length;Ee++)F(fe,_e[Ee]);else if(he==="MultiPolygon")for(Ee=0;Ee<_e.length;Ee++)for(var me=0;me<_e[Ee].length;me++)F(fe,_e[Ee][me])}(ue),ue}function F(J,Q){for(var ne=0;ne<Q.length;ne+=3)J.minX=Math.min(J.minX,Q[ne]),J.minY=Math.min(J.minY,Q[ne+1]),J.maxX=Math.max(J.maxX,Q[ne]),J.maxY=Math.max(J.maxY,Q[ne+1])}function te(J,Q,ne,ce){if(Q.geometry){var ue=Q.geometry.coordinates,fe=Q.geometry.type,_e=Math.pow(ne.tolerance/((1<<ne.maxZoom)*ne.extent),2),he=[],Ee=Q.id;if(ne.promoteId?Ee=Q.properties[ne.promoteId]:ne.generateId&&(Ee=ce||0),fe==="Point")ie(ue,he);else if(fe==="MultiPoint")for(var me=0;me<ue.length;me++)ie(ue[me],he);else if(fe==="LineString")ve(ue,he,_e,!1);else if(fe==="MultiLineString"){if(ne.lineMetrics){for(me=0;me<ue.length;me++)ve(ue[me],he=[],_e,!1),J.push(P(Ee,"LineString",he,Q.properties));return}Ce(ue,he,_e,!1)}else if(fe==="Polygon")Ce(ue,he,_e,!0);else{if(fe!=="MultiPolygon"){if(fe==="GeometryCollection"){for(me=0;me<Q.geometry.geometries.length;me++)te(J,{id:Ee,geometry:Q.geometry.geometries[me],properties:Q.properties},ne,ce);return}throw new Error("Input data is not a valid GeoJSON object.")}for(me=0;me<ue.length;me++){var Ye=[];Ce(ue[me],Ye,_e,!0),he.push(Ye)}}J.push(P(Ee,fe,he,Q.properties))}}function ie(J,Q){Q.push(oe(J[0])),Q.push(ze(J[1])),Q.push(0)}function ve(J,Q,ne,ce){for(var ue,fe,_e=0,he=0;he<J.length;he++){var Ee=oe(J[he][0]),me=ze(J[he][1]);Q.push(Ee),Q.push(me),Q.push(0),he>0&&(_e+=ce?(ue*me-Ee*fe)/2:Math.sqrt(Math.pow(Ee-ue,2)+Math.pow(me-fe,2))),ue=Ee,fe=me}var Ye=Q.length-3;Q[2]=1,le(Q,0,Ye,ne),Q[Ye+2]=1,Q.size=Math.abs(_e),Q.start=0,Q.end=Q.size}function Ce(J,Q,ne,ce){for(var ue=0;ue<J.length;ue++){var fe=[];ve(J[ue],fe,ne,ce),Q.push(fe)}}function oe(J){return J/360+.5}function ze(J){var Q=Math.sin(J*Math.PI/180),ne=.5-.25*Math.log((1+Q)/(1-Q))/Math.PI;return ne<0?0:ne>1?1:ne}function Ge(J,Q,ne,ce,ue,fe,_e,he){if(ce/=Q,fe>=(ne/=Q)&&_e<ce)return J;if(_e<ne||fe>=ce)return null;for(var Ee=[],me=0;me<J.length;me++){var Ye=J[me],At=Ye.geometry,Pe=Ye.type,wt=ue===0?Ye.minX:Ye.minY,Ht=ue===0?Ye.maxX:Ye.maxY;if(wt>=ne&&Ht<ce)Ee.push(Ye);else if(!(Ht<ne||wt>=ce)){var er=[];if(Pe==="Point"||Pe==="MultiPoint")Ve(At,er,ne,ce,ue);else if(Pe==="LineString")kt(At,er,ne,ce,ue,!1,he.lineMetrics);else if(Pe==="MultiLineString")vr(At,er,ne,ce,ue,!1);else if(Pe==="Polygon")vr(At,er,ne,ce,ue,!0);else if(Pe==="MultiPolygon")for(var ar=0;ar<At.length;ar++){var Ir=[];vr(At[ar],Ir,ne,ce,ue,!0),Ir.length&&er.push(Ir)}if(er.length){if(he.lineMetrics&&Pe==="LineString"){for(ar=0;ar<er.length;ar++)Ee.push(P(Ye.id,Pe,er[ar],Ye.tags));continue}Pe!=="LineString"&&Pe!=="MultiLineString"||(er.length===1?(Pe="LineString",er=er[0]):Pe="MultiLineString"),Pe!=="Point"&&Pe!=="MultiPoint"||(Pe=er.length===3?"Point":"MultiPoint"),Ee.push(P(Ye.id,Pe,er,Ye.tags))}}}return Ee.length?Ee:null}function Ve(J,Q,ne,ce,ue){for(var fe=0;fe<J.length;fe+=3){var _e=J[fe+ue];_e>=ne&&_e<=ce&&(Q.push(J[fe]),Q.push(J[fe+1]),Q.push(J[fe+2]))}}function kt(J,Q,ne,ce,ue,fe,_e){for(var he,Ee,me=Zt(J),Ye=ue===0?Qt:Lt,At=J.start,Pe=0;Pe<J.length-3;Pe+=3){var wt=J[Pe],Ht=J[Pe+1],er=J[Pe+2],ar=J[Pe+3],Ir=J[Pe+4],ai=ue===0?wt:Ht,pr=ue===0?ar:Ir,Rr=!1;_e&&(he=Math.sqrt(Math.pow(wt-ar,2)+Math.pow(Ht-Ir,2))),ai<ne?pr>ne&&(Ee=Ye(me,wt,Ht,ar,Ir,ne),_e&&(me.start=At+he*Ee)):ai>ce?pr<ce&&(Ee=Ye(me,wt,Ht,ar,Ir,ce),_e&&(me.start=At+he*Ee)):$t(me,wt,Ht,er),pr<ne&&ai>=ne&&(Ee=Ye(me,wt,Ht,ar,Ir,ne),Rr=!0),pr>ce&&ai<=ce&&(Ee=Ye(me,wt,Ht,ar,Ir,ce),Rr=!0),!fe&&Rr&&(_e&&(me.end=At+he*Ee),Q.push(me),me=Zt(J)),_e&&(At+=he)}var Cr=J.length-3;wt=J[Cr],Ht=J[Cr+1],er=J[Cr+2],(ai=ue===0?wt:Ht)>=ne&&ai<=ce&&$t(me,wt,Ht,er),Cr=me.length-3,fe&&Cr>=3&&(me[Cr]!==me[0]||me[Cr+1]!==me[1])&&$t(me,me[0],me[1],me[2]),me.length&&Q.push(me)}function Zt(J){var Q=[];return Q.size=J.size,Q.start=J.start,Q.end=J.end,Q}function vr(J,Q,ne,ce,ue,fe){for(var _e=0;_e<J.length;_e++)kt(J[_e],Q,ne,ce,ue,fe,!1)}function $t(J,Q,ne,ce){J.push(Q),J.push(ne),J.push(ce)}function Qt(J,Q,ne,ce,ue,fe){var _e=(fe-Q)/(ce-Q);return J.push(fe),J.push(ne+(ue-ne)*_e),J.push(1),_e}function Lt(J,Q,ne,ce,ue,fe){var _e=(fe-ne)/(ue-ne);return J.push(Q+(ce-Q)*_e),J.push(fe),J.push(1),_e}function Ar(J,Q){for(var ne=[],ce=0;ce<J.length;ce++){var ue,fe=J[ce],_e=fe.type;if(_e==="Point"||_e==="MultiPoint"||_e==="LineString")ue=kr(fe.geometry,Q);else if(_e==="MultiLineString"||_e==="Polygon"){ue=[];for(var he=0;he<fe.geometry.length;he++)ue.push(kr(fe.geometry[he],Q))}else if(_e==="MultiPolygon")for(ue=[],he=0;he<fe.geometry.length;he++){for(var Ee=[],me=0;me<fe.geometry[he].length;me++)Ee.push(kr(fe.geometry[he][me],Q));ue.push(Ee)}ne.push(P(fe.id,_e,ue,fe.tags))}return ne}function kr(J,Q){var ne=[];ne.size=J.size,J.start!==void 0&&(ne.start=J.start,ne.end=J.end);for(var ce=0;ce<J.length;ce+=3)ne.push(J[ce]+Q,J[ce+1],J[ce+2]);return ne}function Pr(J,Q){if(J.transformed)return J;var ne,ce,ue,fe=1<<J.z,_e=J.x,he=J.y;for(ne=0;ne<J.features.length;ne++){var Ee=J.features[ne],me=Ee.geometry,Ye=Ee.type;if(Ee.geometry=[],Ye===1)for(ce=0;ce<me.length;ce+=2)Ee.geometry.push(xi(me[ce],me[ce+1],Q,fe,_e,he));else for(ce=0;ce<me.length;ce++){var At=[];for(ue=0;ue<me[ce].length;ue+=2)At.push(xi(me[ce][ue],me[ce][ue+1],Q,fe,_e,he));Ee.geometry.push(At)}}return J.transformed=!0,J}function xi(J,Q,ne,ce,ue,fe){return[Math.round(ne*(J*ce-ue)),Math.round(ne*(Q*ce-fe))]}function Bs(J,Q,ne,ce,ue){for(var fe=Q===ue.maxZoom?0:ue.tolerance/((1<<Q)*ue.extent),_e={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:ne,y:ce,z:Q,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},he=0;he<J.length;he++){_e.numFeatures++,Ur(_e,J[he],fe,ue);var Ee=J[he].minX,me=J[he].minY,Ye=J[he].maxX,At=J[he].maxY;Ee<_e.minX&&(_e.minX=Ee),me<_e.minY&&(_e.minY=me),Ye>_e.maxX&&(_e.maxX=Ye),At>_e.maxY&&(_e.maxY=At)}return _e}function Ur(J,Q,ne,ce){var ue=Q.geometry,fe=Q.type,_e=[];if(fe==="Point"||fe==="MultiPoint")for(var he=0;he<ue.length;he+=3)_e.push(ue[he]),_e.push(ue[he+1]),J.numPoints++,J.numSimplified++;else if(fe==="LineString")Xi(_e,ue,J,ne,!1,!1);else if(fe==="MultiLineString"||fe==="Polygon")for(he=0;he<ue.length;he++)Xi(_e,ue[he],J,ne,fe==="Polygon",he===0);else if(fe==="MultiPolygon")for(var Ee=0;Ee<ue.length;Ee++){var me=ue[Ee];for(he=0;he<me.length;he++)Xi(_e,me[he],J,ne,!0,he===0)}if(_e.length){var Ye=Q.tags||null;if(fe==="LineString"&&ce.lineMetrics){for(var At in Ye={},Q.tags)Ye[At]=Q.tags[At];Ye.mapbox_clip_start=ue.start/ue.size,Ye.mapbox_clip_end=ue.end/ue.size}var Pe={geometry:_e,type:fe==="Polygon"||fe==="MultiPolygon"?3:fe==="LineString"||fe==="MultiLineString"?2:1,tags:Ye};Q.id!==null&&(Pe.id=Q.id),J.features.push(Pe)}}function Xi(J,Q,ne,ce,ue,fe){var _e=ce*ce;if(ce>0&&Q.size<(ue?_e:ce))ne.numPoints+=Q.length/3;else{for(var he=[],Ee=0;Ee<Q.length;Ee+=3)(ce===0||Q[Ee+2]>_e)&&(ne.numSimplified++,he.push(Q[Ee]),he.push(Q[Ee+1])),ne.numPoints++;ue&&function(me,Ye){for(var At=0,Pe=0,wt=me.length,Ht=wt-2;Pe<wt;Ht=Pe,Pe+=2)At+=(me[Pe]-me[Ht])*(me[Pe+1]+me[Ht+1]);if(At>0===Ye)for(Pe=0,wt=me.length;Pe<wt/2;Pe+=2){var er=me[Pe],ar=me[Pe+1];me[Pe]=me[wt-2-Pe],me[Pe+1]=me[wt-1-Pe],me[wt-2-Pe]=er,me[wt-1-Pe]=ar}}(he,fe),J.push(he)}}function vo(J,Q){var ne=(Q=this.options=function(ue,fe){for(var _e in fe)ue[_e]=fe[_e];return ue}(Object.create(this.options),Q)).debug;if(ne&&console.time("preprocess data"),Q.maxZoom<0||Q.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(Q.promoteId&&Q.generateId)throw new Error("promoteId and generateId cannot be used together.");var ce=function(ue,fe){var _e=[];if(ue.type==="FeatureCollection")for(var he=0;he<ue.features.length;he++)te(_e,ue.features[he],fe,he);else te(_e,ue.type==="Feature"?ue:{geometry:ue},fe);return _e}(J,Q);this.tiles={},this.tileCoords=[],ne&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",Q.indexMaxZoom,Q.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(ce=function(ue,fe){var _e=fe.buffer/fe.extent,he=ue,Ee=Ge(ue,1,-1-_e,_e,0,-1,2,fe),me=Ge(ue,1,1-_e,2+_e,0,-1,2,fe);return(Ee||me)&&(he=Ge(ue,1,-_e,1+_e,0,-1,2,fe)||[],Ee&&(he=Ar(Ee,1).concat(he)),me&&(he=he.concat(Ar(me,-1)))),he}(ce,Q)).length&&this.splitTile(ce,0,0,0),ne&&(ce.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function Os(J,Q,ne){return 32*((1<<J)*ne+Q)+J}return vo.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},vo.prototype.splitTile=function(J,Q,ne,ce,ue,fe,_e){for(var he=[J,Q,ne,ce],Ee=this.options,me=Ee.debug;he.length;){ce=he.pop(),ne=he.pop(),Q=he.pop(),J=he.pop();var Ye=1<<Q,At=Os(Q,ne,ce),Pe=this.tiles[At];if(!Pe&&(me>1&&console.time("creation"),Pe=this.tiles[At]=Bs(J,Q,ne,ce,Ee),this.tileCoords.push({z:Q,x:ne,y:ce}),me)){me>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",Q,ne,ce,Pe.numFeatures,Pe.numPoints,Pe.numSimplified),console.timeEnd("creation"));var wt="z"+Q;this.stats[wt]=(this.stats[wt]||0)+1,this.total++}if(Pe.source=J,ue){if(Q===Ee.maxZoom||Q===ue)continue;var Ht=1<<ue-Q;if(ne!==Math.floor(fe/Ht)||ce!==Math.floor(_e/Ht))continue}else if(Q===Ee.indexMaxZoom||Pe.numPoints<=Ee.indexMaxPoints)continue;if(Pe.source=null,J.length!==0){me>1&&console.time("clipping");var er,ar,Ir,ai,pr,Rr,Cr=.5*Ee.buffer/Ee.extent,Fs=.5-Cr,bo=.5+Cr,Ns=1+Cr;er=ar=Ir=ai=null,pr=Ge(J,Ye,ne-Cr,ne+bo,0,Pe.minX,Pe.maxX,Ee),Rr=Ge(J,Ye,ne+Fs,ne+Ns,0,Pe.minX,Pe.maxX,Ee),J=null,pr&&(er=Ge(pr,Ye,ce-Cr,ce+bo,1,Pe.minY,Pe.maxY,Ee),ar=Ge(pr,Ye,ce+Fs,ce+Ns,1,Pe.minY,Pe.maxY,Ee),pr=null),Rr&&(Ir=Ge(Rr,Ye,ce-Cr,ce+bo,1,Pe.minY,Pe.maxY,Ee),ai=Ge(Rr,Ye,ce+Fs,ce+Ns,1,Pe.minY,Pe.maxY,Ee),Rr=null),me>1&&console.timeEnd("clipping"),he.push(er||[],Q+1,2*ne,2*ce),he.push(ar||[],Q+1,2*ne,2*ce+1),he.push(Ir||[],Q+1,2*ne+1,2*ce),he.push(ai||[],Q+1,2*ne+1,2*ce+1)}}},vo.prototype.getTile=function(J,Q,ne){var ce=this.options,ue=ce.extent,fe=ce.debug;if(J<0||J>24)return null;var _e=1<<J,he=Os(J,Q=(Q%_e+_e)%_e,ne);if(this.tiles[he])return Pr(this.tiles[he],ue);fe>1&&console.log("drilling down to z%d-%d-%d",J,Q,ne);for(var Ee,me=J,Ye=Q,At=ne;!Ee&&me>0;)me--,Ye=Math.floor(Ye/2),At=Math.floor(At/2),Ee=this.tiles[Os(me,Ye,At)];return Ee&&Ee.source?(fe>1&&console.log("found parent tile z%d-%d-%d",me,Ye,At),fe>1&&console.time("drilling down"),this.splitTile(Ee.source,me,Ye,At,J,Q,ne),fe>1&&console.timeEnd("drilling down"),this.tiles[he]?Pr(this.tiles[he],ue):null):null},function(J,Q){return new vo(J,Q)}}();var qa=Se.g(Ps.exports);function Za(le,z){const P=le.tileID.canonical;if(!this._geoJSONIndex)return z(null,null);const F=this._geoJSONIndex.getTile(P.z,P.x,P.y);if(!F)return z(null,null);const te=new class{constructor(ve){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=Se.E,this.length=ve.length,this._features=ve}feature(ve){return new class{constructor(Ce){this._feature=Ce,this.extent=Se.E,this.type=Ce.type,this.properties=Ce.tags,"id"in Ce&&!isNaN(Ce.id)&&(this.id=parseInt(Ce.id,10))}loadGeometry(){if(this._feature.type===1){const Ce=[];for(const oe of this._feature.geometry)Ce.push([new Se.P(oe[0],oe[1])]);return Ce}{const Ce=[];for(const oe of this._feature.geometry){const ze=[];for(const Ge of oe)ze.push(new Se.P(Ge[0],Ge[1]));Ce.push(ze)}return Ce}}toGeoJSON(Ce,oe,ze){return zn.call(this,Ce,oe,ze)}}(this._features[ve])}}(F.features);let ie=ks(te);ie.byteOffset===0&&ie.byteLength===ie.buffer.byteLength||(ie=new Uint8Array(ie)),z(null,{vectorTile:te,rawData:ie.buffer})}class $a extends Se.d{constructor(z,P,F,te,ie,ve){super(z,P,F,te,Za,ve),ie&&(this.loadGeoJSON=ie)}loadData(z,P){const F=z&&z.request,te=F&&F.collectResourceTiming;this.loadGeoJSON(z,(ie,ve)=>{if(ie||!ve)return P(ie);if(typeof ve!="object")return P(new Error(`Input data given to '${z.source}' is not a valid GeoJSON object.`));{yo(ve,!0);try{if(z.filter){const oe=Se.e(z.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(oe.result==="error")throw new Error(oe.value.map(ze=>`${ze.key}: ${ze.message}`).join(", "));ve={type:"FeatureCollection",features:ve.features.filter(ze=>oe.value.evaluate({zoom:0},ze))}}this._geoJSONIndex=z.cluster?new Pi(function({superclusterOptions:oe,clusterProperties:ze}){if(!ze||!oe)return oe;const Ge={},Ve={},kt={accumulated:null,zoom:0},Zt={properties:null},vr=Object.keys(ze);for(const $t of vr){const[Qt,Lt]=ze[$t],Ar=Se.e(Lt),kr=Se.e(typeof Qt=="string"?[Qt,["accumulated"],["get",$t]]:Qt);Ge[$t]=Ar.value,Ve[$t]=kr.value}return oe.map=$t=>{Zt.properties=$t;const Qt={};for(const Lt of vr)Qt[Lt]=Ge[Lt].evaluate(kt,Zt);return Qt},oe.reduce=($t,Qt)=>{Zt.properties=Qt;for(const Lt of vr)kt.accumulated=$t[Lt],$t[Lt]=Ve[Lt].evaluate(kt,Zt)},oe}(z)).load(ve.features):qa(ve,z.geojsonVtOptions)}catch(oe){return P(oe)}this.loaded={};const Ce={};if(te){const oe=Se.f(F);oe&&(Ce.resourceTiming={},Ce.resourceTiming[z.source]=JSON.parse(JSON.stringify(oe)))}P(null,Ce)}})}reloadTile(z,P){const F=this.loaded;return F&&F[z.uid]?super.reloadTile(z,P):this.loadTile(z,P)}loadGeoJSON(z,P){if(z.request)Se.h(z.request,P);else{if(typeof z.data!="string")return P(new Error(`Input data given to '${z.source}' is not a valid GeoJSON object.`));try{return P(null,JSON.parse(z.data))}catch{return P(new Error(`Input data given to '${z.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(z,P){try{P(null,this._geoJSONIndex.getClusterExpansionZoom(z.clusterId))}catch(F){P(F)}}getClusterChildren(z,P){try{P(null,this._geoJSONIndex.getChildren(z.clusterId))}catch(F){P(F)}}getClusterLeaves(z,P){try{P(null,this._geoJSONIndex.getLeaves(z.clusterId,z.limit,z.offset))}catch(F){P(F)}}}class dr{constructor(z,P){this.tileID=new Se.O(z.tileID.overscaledZ,z.tileID.wrap,z.tileID.canonical.z,z.tileID.canonical.x,z.tileID.canonical.y),this.tileZoom=z.tileZoom,this.uid=z.uid,this.zoom=z.zoom,this.canonical=z.tileID.canonical,this.pixelRatio=z.pixelRatio,this.tileSize=z.tileSize,this.source=z.source,this.overscaling=this.tileID.overscaleFactor(),this.projection=z.projection,this.brightness=P}parse(z,P,F,te){this.status="parsing";const ie=new Se.O(F.tileID.overscaledZ,F.tileID.wrap,F.tileID.canonical.z,F.tileID.canonical.x,F.tileID.canonical.y),ve={},Ce=P.familiesBySource[F.source],oe=new Se.F(ie,F.promoteId);return oe.bucketLayerIDs=[],Se.l(z).then(ze=>{if(!ze)return te(new Error("Could not parse tile"));const Ge=Se.j(ze,1/Se.t(F.tileID.canonical)),Ve=ze.json.extensionsUsed&&ze.json.extensionsUsed.includes("MAPBOX_mesh_features"),kt=new Se.k(this.zoom,{brightness:this.brightness});for(const Zt in Ce)for(const vr of Ce[Zt]){const $t=vr[0],Qt=ze.json.extensionsUsed;$t.recalculate(kt,[]);const Lt=new Se.T(Ge,ie,Qt&&Qt.includes("MAPBOX_mesh_features"),this.brightness);Ve||(Lt.needsUpload=!0),ve[$t.fqid]=Lt,Lt.evaluate($t)}this.status="done",te(null,{buckets:ve,featureIndex:oe})}).catch(ze=>te(new Error(ze.message)))}}class Rs{constructor(z,P,F,te,ie,ve){this.actor=z,this.layerIndex=P,this.brightness=ve,this.loading={},this.loaded={}}loadTile(z,P){const F=z.uid,te=this.loading[F]=new dr(z,this.brightness);Se.i(z.request,(ie,ve)=>{const Ce=!this.loading[F];return delete this.loading[F],Ce||ie?(te.status="done",Ce||(this.loaded[F]=te),P(ie)):ve&&ve.byteLength!==0?void te.parse(ve,this.layerIndex,z,(oe,ze)=>{te.status="done",this.loaded=this.loaded||{},this.loaded[F]=te,oe||!ze?P(oe):P(null,ze)}):(te.status="done",this.loaded[F]=te,P())})}reloadTile(z,P){const F=this.loaded,te=z.uid;if(F&&F[te]){const ie=F[te];ie.projection=z.projection,ie.brightness=z.brightness;const ve=(Ce,oe)=>{ie.reloadCallback&&(delete ie.reloadCallback,this.loadTile(z,P)),P(Ce,oe)};ie.status==="parsing"?ie.reloadCallback=ve:ie.status==="done"&&this.loadTile(z,P)}}abortTile(z,P){const F=z.uid;this.loading[F]&&delete this.loading[F],P()}removeTile(z,P){const F=this.loaded,te=z.uid;F&&F[te]&&delete F[te],P()}}class Ls{constructor(z){this.self=z,this.actor=new Se.A(z,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=Se.m({name:"mercator"}),this.workerSourceTypes={vector:Se.d,geojson:$a,"batched-model":Rs},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(P,F)=>{if(this.workerSourceTypes[P])throw new Error(`Worker source with name "${P}" already registered.`);this.workerSourceTypes[P]=F},this.self.registerRTLTextPlugin=P=>{if(Se.n.isParsed())throw new Error("RTL text plugin already registered.");Se.n.applyArabicShaping=P.applyArabicShaping,Se.n.processBidirectionalText=P.processBidirectionalText,Se.n.processStyledBidirectionalText=P.processStyledBidirectionalText}}clearCaches(z,P,F){delete this.layerIndexes[z],delete this.availableImages[z],delete this.workerSources[z],delete this.demWorkerSources[z],F()}checkIfReady(z,P,F){F()}setReferrer(z,P){this.referrer=P}spriteLoaded(z,{scope:P,isLoaded:F}){if(this.isSpriteLoaded[z]||(this.isSpriteLoaded[z]={}),this.isSpriteLoaded[z][P]=F,this.workerSources[z]&&this.workerSources[z][P])for(const te in this.workerSources[z][P]){const ie=this.workerSources[z][P][te];for(const ve in ie)ie[ve]instanceof Se.d&&(ie[ve].isSpriteLoaded=F,ie[ve].fire(new Se.o("isSpriteLoaded")))}}setImages(z,{scope:P,images:F},te){if(this.availableImages[z]||(this.availableImages[z]={}),this.availableImages[z][P]=F,this.workerSources[z]&&this.workerSources[z][P]){for(const ie in this.workerSources[z][P]){const ve=this.workerSources[z][P][ie];for(const Ce in ve)ve[Ce].availableImages=F}te()}else te()}setProjection(z,P){this.projections[z]=Se.m(P)}setBrightness(z,P,F){this.brightness=P,F()}setLayers(z,P,F){this.getLayerIndex(z,P.scope).replace(P.layers,P.options),F()}updateLayers(z,P,F){this.getLayerIndex(z,P.scope).update(P.layers,P.removedIds,P.options),F()}loadTile(z,P,F){P.projection=this.projections[z]||this.defaultProjection,this.getWorkerSource(z,P.type,P.source,P.scope).loadTile(P,F)}loadDEMTile(z,P,F){this.getDEMWorkerSource(z,P.source,P.scope).loadTile(P,F)}reloadTile(z,P,F){P.projection=this.projections[z]||this.defaultProjection,this.getWorkerSource(z,P.type,P.source,P.scope).reloadTile(P,F)}abortTile(z,P,F){this.getWorkerSource(z,P.type,P.source,P.scope).abortTile(P,F)}removeTile(z,P,F){this.getWorkerSource(z,P.type,P.source,P.scope).removeTile(P,F)}removeSource(z,P,F){if(!(this.workerSources[z]&&this.workerSources[z][P.scope]&&this.workerSources[z][P.scope][P.type]&&this.workerSources[z][P.scope][P.type][P.source]))return;const te=this.workerSources[z][P.scope][P.type][P.source];delete this.workerSources[z][P.scope][P.type][P.source],te.removeSource!==void 0?te.removeSource(P,F):F()}loadWorkerSource(z,P,F){try{this.self.importScripts(P.url),F()}catch(te){F(te.toString())}}syncRTLPluginState(z,P,F){try{Se.n.setState(P);const te=Se.n.getPluginURL();if(Se.n.isLoaded()&&!Se.n.isParsed()&&te!=null){this.self.importScripts(te);const ie=Se.n.isParsed();F(ie?void 0:new Error(`RTL Text Plugin failed to import scripts from ${te}`),ie)}}catch(te){F(te.toString())}}setDracoUrl(z,P){this.dracoUrl=P}getAvailableImages(z,P){this.availableImages[z]||(this.availableImages[z]={});let F=this.availableImages[z][P];return F||(F=[]),F}getLayerIndex(z,P){this.layerIndexes[z]||(this.layerIndexes[z]={});let F=this.layerIndexes[z][P];return F||(F=this.layerIndexes[z][P]=new Sr,F.scope=P),F}getWorkerSource(z,P,F,te){if(this.workerSources[z]||(this.workerSources[z]={}),this.workerSources[z][te]||(this.workerSources[z][te]={}),this.workerSources[z][te][P]||(this.workerSources[z][te][P]={}),this.isSpriteLoaded[z]||(this.isSpriteLoaded[z]={}),!this.workerSources[z][te][P][F]){const ie={send:(ve,Ce,oe,ze,Ge,Ve)=>{this.actor.send(ve,Ce,oe,z,Ge,Ve)},scheduler:this.actor.scheduler};this.workerSources[z][te][P][F]=new this.workerSourceTypes[P](ie,this.getLayerIndex(z,te),this.getAvailableImages(z,te),this.isSpriteLoaded[z][te],void 0,this.brightness)}return this.workerSources[z][te][P][F]}getDEMWorkerSource(z,P,F){return this.demWorkerSources[z]||(this.demWorkerSources[z]={}),this.demWorkerSources[z][F]||(this.demWorkerSources[z][F]={}),this.demWorkerSources[z][F][P]||(this.demWorkerSources[z][F][P]=new et),this.demWorkerSources[z][F][P]}enforceCacheSizeLimit(z,P){Se.q(P)}getWorkerPerformanceMetrics(z,P,F){F(void 0,void 0)}}return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope&&(self.worker=new Ls(self)),Ls}),_o(["./shared"],function(Se){return Se.s});var Ua=Yo;return Ua})})(iv);var Jp=iv.exports;const NS={key:0,class:"kvass-map__address"},US=ES({__name:"Map",props:{coordinates:{},address:{},markers:{},aspectRatio:{default:"2/1"},mapOptions:{},markerOptions:{},showControls:{type:Boolean,default:!0},showAddress:{type:Boolean,default:!1}},setup(zi){const Mr=zi,yi=Yp(),Fr=Yp(),Yo=nu(()=>({center:Mr.coordinates,zoom:12,dragPan:!0,scrollZoom:!1,dragRotate:!1,cooperativeGestures:!1,...Mr.mapOptions}));function _o(){Mr.coordinates&&yi.value&&(Fr.value=new Jp.Map({container:yi.value,center:Mr.coordinates,...Yo.value,language:document.querySelector("html")?.getAttribute("lang")||"auto"}),W(),oi())}MS(()=>{_o()}),SS(()=>{Fr.value?.remove()});const Ua=nu(()=>({color:"var(--kvass-map-primary-color)",...Mr.markerOptions})),Se=Yp([]);function W(){Fr.value&&(Se.value.forEach(Sr=>Sr.remove()),(Mr.markers||[Mr.coordinates]).forEach(Sr=>{Sr&&Se.value.push(new Jp.Marker({...Ua.value}).setLngLat(Sr).addTo(Fr.value))}))}function oi(){!Fr.value||!Mr.showControls||[new Jp.NavigationControl].forEach(Sr=>Fr.value.addControl(Sr))}return(Sr,et)=>(Kp(),ev("div",{class:"kvass-map",style:zS({"--kvass-map-aspect-ratio":Mr.aspectRatio})},[AS("div",{ref_key:"mapEl",ref:yi,class:"kvass-map__map"},null,512),Mr.showAddress?(Kp(),ev("div",NS,IS(Mr.address),1)):CS("",!0)],4))}}),VS=`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.mapboxgl-canvas{left:0;position:absolute;top:0}.mapboxgl-map:-webkit-full-screen{height:100%;width:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.mapboxgl-ctrl-top-left{left:0;top:0}.mapboxgl-ctrl-top-right{right:0;top:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{bottom:0;right:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{float:left;margin:10px 0 0 10px}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{float:right;margin:10px 10px 0 0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{float:left;margin:0 0 10px 10px}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{float:right;margin:0 10px 10px 0}.mapboxgl-ctrl-group{background:#fff;border-radius:4px}.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;overflow:hidden;padding:0;width:29px}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl-group button:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:only-child{border-radius:inherit}.mapboxgl-ctrl button:not(:disabled):hover{background-color:#0000000d}.mapboxgl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23000'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}}@keyframes mapboxgl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='0.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='0.9' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23000'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:#0000000d}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0;top:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0;top:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:#000000bf;text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.mapboxgl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{flex-direction:column-reverse}.mapboxgl-popup-anchor-left{flex-direction:row}.mapboxgl-popup-anchor-right{flex-direction:row-reverse}.mapboxgl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.mapboxgl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.mapboxgl-popup-close-button:hover{background-color:#0000000d}.mapboxgl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:10px 10px 15px;pointer-events:auto;position:relative}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{left:0;opacity:1;position:absolute;top:0;transition:opacity .2s;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.mapboxgl-user-location-dot:before{animation:mapboxgl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.mapboxgl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading{height:0;width:0}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after,.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-bottom:7.5px solid #4aa1eb;content:"";position:absolute}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-left:7.5px solid transparent;transform:translateY(-28px) skewY(-20deg)}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after{border-right:7.5px solid transparent;transform:translate(7.5px,-28px) skewY(20deg)}@keyframes mapboxgl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}@media print{.mapbox-improve-map{display:none}}.mapboxgl-scroll-zoom-blocker,.mapboxgl-touch-pan-blocker{align-items:center;background:#000000b3;color:#fff;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;text-align:center;top:0;transition:opacity .75s ease-in-out;transition-delay:1s;width:100%}.mapboxgl-scroll-zoom-blocker-show,.mapboxgl-touch-pan-blocker-show{opacity:1;transition:opacity .1s ease-in-out}.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page,.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page .mapboxgl-canvas{touch-action:pan-x pan-y}.kvass-map{position:relative;aspect-ratio:var(--kvass-map-aspect-ratio);width:100%;background-color:var(--kvass-map-background, rgba(0, 0, 0, .2))}.kvass-map__address{padding:var(--kvass-map-address-padding-y, .5rem) var(--kvass-map-address-padding-x, .5rem);background-color:var(--kvass-map-address-background, rgba(0, 0, 0, .2));color:var(--kvass-map-address-color, rgba(255, 255, 255, .75));position:absolute;bottom:0;right:0;left:0;text-align:center}.kvass-map__map,.kvass-map .mapboxgl-canvas-container,.kvass-map .mapboxgl-canvas{height:100%;width:100%}.kvass-map .mapboxgl-ctrl-attrib,.kvass-map .mapboxgl-ctrl-logo{display:none}@media screen and (max-width: 680px){.kvass-map{aspect-ratio:1/1.4}}`,jS={__name:"Map.ce",props:{theme:{type:String,required:!0},mapboxApiToken:{type:String,required:!0},coordinates:{type:String,required:!0},markers:{type:String},zoom:{type:String,default:"8",validator(zi){return typeof parseInt(zi)=="number"}},address:String,aspectRatio:String},setup(zi){const Mr=zi,yi=nu(()=>Mr.coordinates.split(",")),Fr=nu(()=>Mr.markers?.split(";").map(_o=>_o.split(","))),Yo=kS({style:Mr.theme,accessToken:Mr.mapboxApiToken});return(_o,Ua)=>(Kp(),PS(tv(OS),null,{default:RS(()=>[LS(tv(US),{coordinates:yi.value,zoom:parseInt(Mr.zoom),markers:Fr.value,"map-options":Yo,address:zi.address,"show-address":!!zi.address,"aspect-ratio":zi.aspectRatio},null,8,["coordinates","zoom","markers","map-options","address","show-address","aspect-ratio"])]),_:1}))}},GS=DS(jS,[["styles",[VS]]]);customElements.define("kvass-map",BS(GS));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kvass/widgets",
3
- "version": "1.3.10",
3
+ "version": "1.3.11",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -10,11 +10,11 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@img-comparison-slider/vue": "^8.0.0",
13
- "@kvass/map": "^1.0.4",
13
+ "@kvass/map": "^1.0.5",
14
14
  "@kvass/ui": "^1.6.1",
15
15
  "@kvass/vue3-flatfinder": "^1.0.15",
16
16
  "@vueuse/core": "^10.7.2",
17
- "vue": "^3.4.15",
17
+ "vue": "^3.4.19",
18
18
  "webfontloader": "^1.6.28"
19
19
  },
20
20
  "files": [
@@ -24,9 +24,9 @@
24
24
  ],
25
25
  "devDependencies": {
26
26
  "@types/webfontloader": "^1.6.38",
27
- "@vitejs/plugin-vue": "^5.0.3",
27
+ "@vitejs/plugin-vue": "^5.0.4",
28
28
  "sass": "^1.70.0",
29
- "vite": "^5.0.12"
29
+ "vite": "^5.1.1"
30
30
  },
31
31
  "repository": {
32
32
  "type": "git",