1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[588],{1014:(t,e,r)=>{"use strict";r.d(e,{A:()=>b});var n=r(5834);let i=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class o{static from(t){if(!(t instanceof ArrayBuffer))throw Error("Data must be an instance of ArrayBuffer.");let[e,r]=new Uint8Array(t,0,2);if(219!==e)throw Error("Data does not appear to be in a KDBush format.");let n=r>>4;if(1!==n)throw Error(`Got v${n} data when expected v1.`);let s=i[15&r];if(!s)throw Error("Unrecognized array type.");let[a]=new Uint16Array(t,2,1),[l]=new Uint32Array(t,4,1);return new o(l,a,s,t)}constructor(t,e=64,r=Float64Array,n){if(isNaN(t)||t<0)throw Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+e,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;let o=i.indexOf(this.ArrayType),s=2*t*this.ArrayType.BYTES_PER_ELEMENT,a=t*this.IndexArrayType.BYTES_PER_ELEMENT,l=(8-a%8)%8;if(o<0)throw Error(`Unexpected typed array class: ${r}.`);n&&n instanceof ArrayBuffer?(this.data=n,this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+l,2*t),this._pos=2*t,this._finished=!0):(this.data=new ArrayBuffer(8+s+a+l),this.ids=new this.IndexArrayType(this.data,8,t),this.coords=new this.ArrayType(this.data,8+a+l,2*t),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+o]),new Uint16Array(this.data,2,1)[0]=e,new Uint32Array(this.data,4,1)[0]=t)}add(t,e){let r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=e,r}finish(){let t=this._pos>>1;if(t!==this.numItems)throw Error(`Added ${t} items when expected ${this.numItems}.`);return function t(e,r,n,i,o,a){if(o-i<=n)return;let l=i+o>>1;(function t(e,r,n,i,o,a){for(;o>i;){if(o-i>600){let s=o-i+1,l=n-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1),f=Math.max(i,Math.floor(n-l*c/s+h)),d=Math.min(o,Math.floor(n+(s-l)*c/s+h));t(e,r,n,f,d,a)}let l=r[2*n+a],u=i,c=o;for(s(e,r,i,n),r[2*o+a]>l&&s(e,r,i,o);u<c;){for(s(e,r,u,c),u++,c--;r[2*u+a]<l;)u++;for(;r[2*c+a]>l;)c--}r[2*i+a]===l?s(e,r,i,c):s(e,r,++c,o),c<=n&&(i=c+1),n<=c&&(o=c-1)}})(e,r,l,i,o,a),t(e,r,n,i,l-1,1-a),t(e,r,n,l+1,o,1-a)}(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,e,r,n){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:i,coords:o,nodeSize:s}=this,a=[0,i.length-1,0],l=[];for(;a.length;){let u=a.pop()||0,c=a.pop()||0,h=a.pop()||0;if(c-h<=s){for(let s=h;s<=c;s++){let a=o[2*s],u=o[2*s+1];a>=t&&a<=r&&u>=e&&u<=n&&l.push(i[s])}continue}let f=h+c>>1,d=o[2*f],p=o[2*f+1];d>=t&&d<=r&&p>=e&&p<=n&&l.push(i[f]),(0===u?t<=d:e<=p)&&(a.push(h),a.push(f-1),a.push(1-u)),(0===u?r>=d:n>=p)&&(a.push(f+1),a.push(c),a.push(1-u))}return l}within(t,e,r){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:n,coords:i,nodeSize:o}=this,s=[0,n.length-1,0],a=[],u=r*r;for(;s.length;){let c=s.pop()||0,h=s.pop()||0,f=s.pop()||0;if(h-f<=o){for(let r=f;r<=h;r++)l(i[2*r],i[2*r+1],t,e)<=u&&a.push(n[r]);continue}let d=f+h>>1,p=i[2*d],g=i[2*d+1];l(p,g,t,e)<=u&&a.push(n[d]),(0===c?t-r<=p:e-r<=g)&&(s.push(f),s.push(d-1),s.push(1-c)),(0===c?t+r>=p:e+r>=g)&&(s.push(d+1),s.push(h),s.push(1-c))}return a}}function s(t,e,r,n){a(t,r,n),a(e,2*r,2*n),a(e,2*r+1,2*n+1)}function a(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}function l(t,e,r,n){let i=t-r,o=e-n;return i*i+o*o}let u={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:t=>t},c=Math.fround||(t=>e=>(t[0]=+e,t[0]))(new Float32Array(1));class h{constructor(t){this.options=Object.assign(Object.create(u),t),this.trees=Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){let{log:e,minZoom:r,maxZoom:n}=this.options;e&&console.time("total time");let i=`prepare ${t.length} points`;e&&console.time(i),this.points=t;let o=[];for(let e=0;e<t.length;e++){let r=t[e];if(!r.geometry)continue;let[n,i]=r.geometry.coordinates,s=c(p(n)),a=c(g(i));o.push(s,a,1/0,e,-1,1),this.options.reduce&&o.push(0)}let s=this.trees[n+1]=this._createTree(o);e&&console.timeEnd(i);for(let t=n;t>=r;t--){let r=+Date.now();s=this.trees[t]=this._createTree(this._cluster(s,t)),e&&console.log("z%d: %d clusters in %dms",t,s.numItems,Date.now()-r)}
1return e&&console.timeEnd("total time"),this}getClusters(t,e){let r=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,i=180;else if(r>i){let t=this.getClusters([r,n,180,o],e),s=this.getClusters([-180,n,i,o],e);return t.concat(s)}let s=this.trees[this._limitZoom(e)],a=s.range(p(r),g(o),p(i),g(n)),l=s.data,u=[];for(let t of a){let e=this.stride*t;u.push(l[e+5]>1?f(l,e,this.clusterProps):this.points[l[e+3]])}return u}getChildren(t){let e=this._getOriginId(t),r=this._getOriginZoom(t),n="No cluster with the specified id.",i=this.trees[r];if(!i)throw Error(n);let o=i.data;if(e*this.stride>=o.length)throw Error(n);let s=this.options.radius/(this.options.extent*Math.pow(2,r-1)),a=o[e*this.stride],l=o[e*this.stride+1],u=i.within(a,l,s),c=[];for(let e of u){let r=e*this.stride;o[r+4]===t&&c.push(o[r+5]>1?f(o,r,this.clusterProps):this.points[o[r+3]])}if(0===c.length)throw Error(n);return c}getLeaves(t,e,r){e=e||10,r=r||0;let n=[];return this._appendLeaves(n,t,e,r,0),n}getTile(t,e,r){let n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),{extent:o,radius:s}=this.options,a=s/o,l=(r-a)/i,u=(r+1+a)/i,c={features:[]};return this._addTileFeatures(n.range((e-a)/i,l,(e+1+a)/i,u),n.data,e,r,i,c),0===e&&this._addTileFeatures(n.range(1-a/i,l,1,u),n.data,i,r,i,c),e===i-1&&this._addTileFeatures(n.range(0,l,a/i,u),n.data,-1,r,i,c),c.features.length?c:null}getClusterExpansionZoom(t){let e=this._getOriginZoom(t)-1;for(;e<=this.options.maxZoom;){let r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e}_appendLeaves(t,e,r,n,i){for(let o of this.getChildren(e)){let e=o.properties;if(e&&e.cluster?i+e.point_count<=n?i+=e.point_count:i=this._appendLeaves(t,e.cluster_id,r,n,i):i<n?i++:t.push(o),t.length===r)break}return i}_createTree(t){let e=new o(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<t.length;r+=this.stride)e.add(t[r],t[r+1]);return e.finish(),e.data=t,e}_addTileFeatures(t,e,r,n,i,o){for(let s of t){let t,a,l,u,c=s*this.stride,h=e[c+5]>1;if(h)t=d(e,c,this.clusterProps),a=e[c],l=e[c+1];else{let r=this.points[e[c+3]];t=r.properties;let[n,i]=r.geometry.coordinates;a=p(n),l=g(i)}let f={type:1,geometry:[[Math.round(this.options.extent*(a*i-r)),Math.round(this.options.extent*(l*i-n))]],tags:t};void 0!==(u=h||this.options.generateId?e[c+3]:this.points[e[c+3]].id)&&(f.id=u),o.features.push(f)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,e){let{radius:r,extent:n,reduce:i,minPoints:o}=this.options,s=r/(n*Math.pow(2,e)),a=t.data,l=[],u=this.stride;for(let r=0;r<a.length;r+=u){if(a[r+2]<=e)continue;a[r+2]=e;let n=a[r],c=a[r+1],h=t.within(a[r],a[r+1],s),f=a[r+5],d=f;for(let t of h){let r=t*u;a[r+2]>e&&(d+=a[r+5])}if(d>f&&d>=o){let t,o=n*f,s=c*f,p=-1,g=((r/u|0)<<5)+(e+1)+this.points.length;for(let n of h){let l=n*u;if(a[l+2]<=e)continue;a[l+2]=e;let c=a[l+5];o+=a[l]*c,s+=a[l+1]*c,a[l+4]=g,i&&(t||(t=this._map(a,r,!0),p=this.clusterProps.length,this.clusterProps.push(t)),i(t,this._map(a,l)))}a[r+4]=g,l.push(o/d,s/d,1/0,g,-1,d),i&&l.push(p)}else{for(let t=0;t<u;t++)l.push(a[r+t]);if(d>1)for(let t of h){let r=t*u;if(!(a[r+2]<=e)){a[r+2]=e;for(let t=0;t<u;t++)l.push(a[r+t])}}}}return l}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,e,r){if(t[e+5]>1){let n=this.clusterProps[t[e+6]];return r?Object.assign({},n):n}let n=this.points[t[e+3]].properties,i=this.options.map(n);return r&&i===n?Object.assign({},i):i}}function f(t,e,r){return{type:"Feature",id:t[e+3],properties:d(t,e,r),geometry:{type:"Point",coordinates:[(t[e]-.5)*360,360*Math.atan(Math.exp((180-360*t[e+1])*Math.PI/180))/Math.PI-90]}}}function d(t,e,r){let n=t[e+5],i=n>=1e4?`${Math.round(n/1e3)}k`:n>=1e3?`${Math.round(n/100)/10}k`:n,o=t[e+6];return Object.assign(-1===o?{}:Object.assign({},r[o]),{cluster:!0,cluster_id:t[e+3],point_count:n,point_count_abbreviated:i})}function p(t){return t/360+.5}function g(t){let e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r<0?0:r>1?1:r}var m=Object.prototype.hasOwnProperty;function y(t,e,r){for(r of t.keys())if(v(r,e))return r}function v(t,e){var r,n,i;if(t===e)return!0;
vendor: 1,041 bytes, line 1
1if(t&&e&&(r=t.constructor)===e.constructor){if(r===Date)return t.getTime()===e.getTime();if(r===RegExp)return t.toString()===e.toString();if(r===Array){if((n=t.length)===e.length)for(;n--&&v(t[n],e[n]););return -1===n}if(r===Set){if(t.size!==e.size)return!1;for(n of t)if((i=n)&&"object"==typeof i&&!(i=y(e,i))||!e.has(i))return!1;return!0}if(r===Map){if(t.size!==e.size)return!1;for(n of t)if((i=n[0])&&"object"==typeof i&&!(i=y(e,i))||!v(n[1],e.get(i)))return!1;return!0}if(r===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(r===DataView){if((n=t.byteLength)===e.byteLength)for(;n--&&t.getInt8(n)===e.getInt8(n););return -1===n}if(ArrayBuffer.isView(t)){if((n=t.byteLength)===e.byteLength)for(;n--&&t[n]===e[n];);return -1===n}if(!r||"object"==typeof t){for(r in n=0,t)if(m.call(t,r)&&++n&&!m.call(e,r)||!(r in e)||!v(t[r],e[r]))return!1;return Object.keys(e).length===n}}return t!=t&&e!=e}let b=function(t){var e,r,i,o,s=t.points,a=t.bounds,l=t.zoom,u=t.options,c=t.disableRefresh,f=(0,n.useRef)(),d=(0,n.useRef)(),p=(0,n.use
1State)([]),g=p[0],m=p[1],y=Math.round(l);return e=function(){!0!==c&&(f.current&&v(d.current,s)&&v(f.current.options,u)||(f.current=new h(u),f.current.load(s)),a&&m(f.current.getClusters(a,y)),d.current=s)},r=[s,a,y,u,c],n.useEffect(e,(i=n.useRef(r),o=n.useRef(0),v(r,i.current)||(i.current=r,o.current+=1),n.useMemo(function(){return i.current},[o.current]))),{clusters:g,supercluster:f.current}}},1477:(t,e)=>{t.exports=function(){var t={},e=Math.PI/180,r=180/Math.PI;function n(t){return Number(t)===t&&t%1!=0}function i(e){if(e=e||{},this.size=e.size||256,this.expansion=!0===e.antimeridian?2:1,!t[this.size]){var r=this.size,n=t[this.size]={};n.Bc=[],n.Cc=[],n.zc=[],n.Ac=[];for(var i=0;i<30;i++)n.Bc.push(r/360),n.Cc.push(r/(2*Math.PI)),n.zc.push(r/2),n.Ac.push(r),r*=2}this.Bc=t[this.size].Bc,this.Cc=t[this.size].Cc,this.zc=t[this.size].zc,this.Ac=t[this.size].Ac}return i.prototype.px=function(t,r){if(n(r)){var i=this.size*Math.pow(2,r),o=i/2,s=i/(2*Math.PI),a=Math.min(Math.max(Math.sin(e*t[1]),-.9999),.9999),l=o+t[0]*(i/360),u=o+-(.5*Math.log((1+a)/(1-a))*s);return l>i*this.expansion&&(l=i*this.expansion),u>i&&(u=i),[l,u]}var o=this.zc[r],a=Math.min(Math.max(Math.sin(e*t[1]),-.9999),.9999),l=Math.round(o+t[0]*this.Bc[r]),u=Math.round(o+-(.5*Math.log((1+a)/(1-a))*this.Cc[r]));return l>this.Ac[r]*this.expansion&&(l=this.Ac[r]*this.expansion),u>this.Ac[r]&&(u=this.Ac[r]),[l,u]},i.prototype.ll=function(t,e){if(n(e)){var i=this.size*Math.pow(2,e),o=i/(2*Math.PI),s=i/2,a=-((t[1]-s)/o),l=(t[0]-s)/(i/360),u=r*(2*Math.atan(Math.exp(a))-.5*Math.PI);return[l,u]}var a=-((t[1]-this.zc[e])/this.Cc[e]),l=(t[0]-this.zc[e])/this.Bc[e],u=r*(2*Math.atan(Math.exp(a))-.5*Math.PI);return[l,u]},i.prototype.bbox=function(t,e,r,n,i){n&&(e=Math.pow(2,r)-1-e);var o=[t*this.size,(+e+1)*this.size],s=[(+t+1)*this.size,e*this.size],a=this.ll(o,r).concat(this.ll(s,r));return"900913"===i?this.convert(a,"900913"):a},i.prototype.xyz=function(t,e,r,n){"900913"===n&&(t=this.convert(t,"WGS84"));var i=[t[0],t[1]],o=[t[2],t[3]],s=this.px(i,e),a=this.px(o,e),l=[Math.floor(s[0]/this.size),Math.floor((a[0]-1)/this.size)],u=[Math.floor(a[1]/this.size),Math.floor((s[1]-1)/this.size)],c={minX:0>Math.min.apply(Math,l)?0:Math.min.apply(Math,l),minY:0>Math.min.apply(Math,u)?0:Math.min.apply(Math,u),maxX:Math.max.apply(Math,l),maxY:Math.max.apply(Math,u)};if(r){var h={minY:Math.pow(2,e)-1-c.maxY,maxY:Math.pow(2,e)-1-c.minY};c.minY=h.minY,c.maxY=h.maxY}return c},i.prototype.convert=function(t,e){return"900913"===e?this.forward(t.slice(0,2)).concat(this.forward(t.slice(2,4))):this.inverse(t.slice(0,2)).concat(this.inverse(t.slice(2,4)))},i.prototype.forward=function(t){var r=[6378137*t[0]*e,6378137*Math.log(Math.tan(.25*Math.PI+.5*t[1]*e))];return r[0]>20037508.342789244&&(r[0]=20037508.342789244),r[0]<-20037508.342789244&&(r[0]=-20037508.342789244),r[1]>20037508.342789244&&(r[1]=20037508.342789244),r[1]<-20037508.342789244&&(r[1]=-20037508.342789244),r},i.prototype.inverse=function(t){return[t[0]*r/6378137,(.5*Math.PI-2*Math.atan(Math.exp(-t[1]/6378137)))*r]},i}()},1858:function(t){!function(e){var r,n,i=!1;function o(t){if("undefined"!=typeof document&&!i){var e=document.documentElement;n=window.pageYOffset,document.documentElement.scrollHeight>window.innerHeight?e.style.width="calc(100% - "+function(){if(void 0!==r)return r;var t=document.documentElement,e=document.createElement("div");return e.setAttribute("style","width:99px;height:99px;position:absolute;top:-9999px;overflow:scroll;"),t.appendChild(e),r=e.offsetWidth-e.clientWidth,t.removeChild(e),r}()+"px)":e.style.width="100%",e.style.position="fixed",e.style.top=-n+"px",e.style.overflow="hidden",i=!0}}function s(){if("undefined"!=typeof document&&i){var t=document.documentElement;t.style.width="",t.style.position="",t.style.top="",t.style.overflow="",window.scroll(0,n),i=!1}}var a={on:o,off:s,toggle:function(){if(i)return void s();o()}};void 0!==t.exports?t.exports=a:e.noScroll=a}(this)},1885:function(t){var e;e=function(){var t=/^([a-zA-Z]{2,3})(?:[_-]+([a-zA-Z]{3})(?=$|[_-]+))?(?:[_-]+([a-zA-Z]{4})(?=$|[_-]+))?(?:[_-]+([a-zA-Z]{2}|[0-9]{3})(?=$|[_-]+))?/;function e(e){return e.match(t)||[]}function r(t){return{language:(t=e(t))[1]||"",extlang:t[2]||"",script:t[3]||"",region:t[4]||""}}function n(t,e,r){Object.defineProperty(t,e,{value:r,enumerable:!0})}function i(t,i,o){function s(r){return e(r)[t]||""}
1n(s,"pattern",i),n(r,o,s)}return i(1,/^[a-zA-Z]{2,3}$/,"language"),i(2,/^[a-zA-Z]{3}$/,"extlang"),i(3,/^[a-zA-Z]{4}$/,"script"),i(4,/^[a-zA-Z]{2}$|^[0-9]{3}$/,"region"),n(r,"split",function(t){return e(t).filter(function(t,e){return t&&e})}),r},t.exports?t.exports=e():this.subtag=e()},5293:(t,e,r)=>{"use strict";function n(t){return t.split("-")[0]}function i(t){return t.split("-")[1]}function o(t){return["top","bottom"].includes(n(t))?"x":"y"}function s(t){return"y"===t?"height":"width"}function a(t,e,r){let a,{reference:l,floating:u}=t,c=l.x+l.width/2-u.width/2,h=l.y+l.height/2-u.height/2,f=o(e),d=s(f),p=l[d]/2-u[d]/2,g="x"===f;switch(n(e)){case"top":a={x:c,y:l.y-u.height};break;case"bottom":a={x:c,y:l.y+l.height};break;case"right":a={x:l.x+l.width,y:h};break;case"left":a={x:l.x-u.width,y:h};break;default:a={x:l.x,y:l.y}}switch(i(e)){case"start":a[f]-=p*(r&&g?-1:1);break;case"end":a[f]+=p*(r&&g?-1:1)}return a}r.d(e,{B1:()=>u,UU:()=>g,cY:()=>m,rD:()=>l});let l=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,l=await (null==s.isRTL?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:c,y:h}=a(u,n,l),f=n,d={},p=0;for(let r=0;r<o.length;r++){let{name:g,fn:m}=o[r],{x:y,y:v,data:b,reset:w}=await m({x:c,y:h,initialPlacement:n,placement:f,strategy:i,middlewareData:d,rects:u,platform:s,elements:{reference:t,floating:e}});c=null!=y?y:c,h=null!=v?v:h,d={...d,[g]:{...d[g],...b}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await s.getElementRects({reference:t,floating:e,strategy:i}):w.rects),{x:c,y:h}=a(u,f,l)),r=-1)}return{x:c,y:h,placement:f,strategy:i,middlewareData:d}};function u(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function c(t,e){var r,n;void 0===e&&(e={});let{x:i,y:o,platform:s,rects:a,elements:l,strategy:c}=t,{boundary:h="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=e,m="number"!=typeof(n=g)?{top:0,right:0,bottom:0,left:0,...n}:{top:n,right:n,bottom:n,left:n},y=l[p?"floating"===d?"reference":"floating":d],v=u(await s.getClippingRect({element:null==(r=await (null==s.isElement?void 0:s.isElement(y)))||r?y:y.contextElement||await (null==s.getDocumentElement?void 0:s.getDocumentElement(l.floating)),boundary:h,rootBoundary:f,strategy:c})),b=u(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:i,y:o}:a.reference,offsetParent:await (null==s.getOffsetParent?void 0:s.getOffsetParent(l.floating)),strategy:c}):a[d]);return{top:v.top-b.top+m.top,bottom:b.bottom-v.bottom+m.bottom,left:v.left-b.left+m.left,right:b.right-v.right+m.right}}let h={left:"right",right:"left",bottom:"top",top:"bottom"};function f(t){return t.replace(/left|right|bottom|top/g,t=>h[t])}let d={start:"end",end:"start"};function p(t){return t.replace(/start|end/g,t=>d[t])}["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);let g=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var r,a,l,u;let{placement:h,middlewareData:d,rects:g,initialPlacement:m,platform:y,elements:v}=e,{mainAxis:b=!0,crossAxis:w=!0,fallbackPlacements:x,fallbackStrategy:E="bestFit",flipAlignment:_=!0,...A}=t,T=n(h),k=x||(T!==m&&_?function(t){let e=f(t);return[p(t),e,p(e)]}(m):[f(m)]),S=[m,...k],M=await c(e,A),L=[],R=(null==(r=d.flip)?void 0:r.overflows)||[];if(b&&L.push(M[T]),w){let{main:t,cross:e}=function(t,e,r){void 0===r&&(r=!1);let n=i(t),a=o(t),l=s(a),u="x"===a?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return e.reference[l]>e.floating[l]&&(u=f(u)),{main:u,cross:f(u)}}(h,g,await (null==y.isRTL?void 0:y.isRTL(v.floating)));L.push(M[t],M[e])}if(R=[...R,{placement:h,overflows:L}],!L.every(t=>t<=0)){let t=(null!=(a=null==(l=d.flip)?void 0:l.index)?a:0)+1,e=S[t];if(e)return{data:{index:t,overflows:R},reset:{placement:e}};let r="bottom";switch(E){case"bestFit":{let t=null==(u=R.map(t=>[t,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:u[0].placement;t&&(r=t);break}case"initialPlacement":r=m}if(h!==r)return{reset:{placement:r}}}return{}}}},m=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){let{x:r,y:s}=e,a=await async function(t,e){let{placement:r,platform:s,elements:a}=t,l=await (null==s.isRTL?void 0:s.isRTL(a.floating)),u=n(r),c=i(r),h="x"===o(r),f=["left","top"].includes(u)?-1:1,d=l&&h?-1:1,p="function"==typeof e?e(t):e,{mainAxis:g,crossAxis:m,alignmentAxis:y}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return c&&"number"==typeof y&&(m="end"===c?-1*y:y),h?{x:m*d,y:g*f}:{x:g*f,y:m*d}}(e,t);return{x:r+a.x,y:s+a.y,data:a}}}}},7311:(t,e,r)=>{"use strict";r.d(e,{ll:()=>L,rD:()=>R});var n=r(5293);function i(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function o(t){if(null==t)return window;if(!i(t)){let e=t.ownerDocument;return e&&e.defaultView||window}return t}function s(t){return o(t).getComputedStyle(t)}function a(t){return i(t)?"":t?(t.nodeName||"").toLowerCase():""}function l(){let t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function u(t){return t instanceof o(t).HTMLElement}function c(t){return t instanceof o(t).Element}function h(t){return"undefined"!=typeof ShadowRoot&&(t instanceof o(t).ShadowRoot||t instanceof ShadowRoot)}function f(t){let{overflow:e,overflowX:r,overflowY:n}=s(t);return/auto|scroll|overlay|hidden/.test(e+n+r)}function d(t){let e=/firefox/i.test(l()),r=s(t);return"none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||["transform","perspective"].includes(r.willChange)||e&&"filter"===r.willChange||e&&!!r.filter&&"none"!==r.filter}function p(){return!/^((?!chrome|android).)*safari/i.test(l())}let g=Math.min,m=Math.max,y=Math.round;function v(t,e,r){var n,i,s,a;void 0===e&&(e=!1),void 0===r&&(r=!1);let l=t.getBoundingClientRect(),h=1,f=1;e&&u(t)&&(h=t.offsetWidth>0&&y(l.width)/t.offsetWidth||1,f=t.offsetHeight>0&&y(l.height)/t.offsetHeight||1);let d=c(t)?o(t):window,g=!p()&&r,m=(l.left+(g&&null!=(n=null==(i=d.visualVie
1wport)?void 0:i.offsetLeft)?n:0))/h,v=(l.top+(g&&null!=(s=null==(a=d.visualViewport)?void 0:a.offsetTop)?s:0))/f,b=l.width/h,w=l.height/f;return{width:b,height:w,top:v,right:m+b,bottom:v+w,left:m,x:m,y:v}}function b(t){return((t instanceof o(t).Node?t.ownerDocument:t.document)||window.document).documentElement}function w(t){return c(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function x(t){return v(b(t)).left+w(t).scrollLeft}function E(t){return"html"===a(t)?t:t.assignedSlot||t.parentNode||(h(t)?t.host:null)||b(t)}function _(t){return u(t)&&"fixed"!==getComputedStyle(t).position?t.offsetParent:null}function A(t){let e=o(t),r=_(t);for(;r&&["table","td","th"].includes(a(r))&&"static"===getComputedStyle(r).position;)r=_(r);return r&&("html"===a(r)||"body"===a(r)&&"static"===getComputedStyle(r).position&&!d(r))?e:r||function(t){let e=E(t);for(h(e)&&(e=e.host);u(e)&&!["html","body"].includes(a(e));){if(d(e))return e;e=e.parentNode}return null}(t)||e}function T(t){if(u(t))return{width:t.offsetWidth,height:t.offsetHeight};let e=v(t);return{width:e.width,height:e.height}}function k(t,e){var r;void 0===e&&(e=[]);let n=function t(e){let r=E(e);return["html","body","#document"].includes(a(r))?e.ownerDocument.body:u(r)&&f(r)?r:t(r)}(t),i=n===(null==(r=t.ownerDocument)?void 0:r.body),s=o(n),l=i?[s].concat(s.visualViewport||[],f(n)?n:[]):n,c=e.concat(l);return i?c:c.concat(k(l))}function S(t,e,r){return"viewport"===e?(0,n.B1)(function(t,e){let r=o(t),n=b(t),i=r.visualViewport,s=n.clientWidth,a=n.clientHeight,l=0,u=0;if(i){s=i.width,a=i.height;let t=p();(t||!t&&"fixed"===e)&&(l=i.offsetLeft,u=i.offsetTop)}return{width:s,height:a,x:l,y:u}}(t,r)):c(e)?function(t,e){let r=v(t,!1,"fixed"===e),n=r.top+t.clientTop,i=r.left+t.clientLeft;return{top:n,left:i,x:i,y:n,right:i+t.clientWidth,bottom:n+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(e,r):(0,n.B1)(function(t){var e;let r=b(t),n=w(t),i=null==(e=t.ownerDocument)?void 0:e.body,o=m(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=m(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-n.scrollLeft+x(t),u=-n.scrollTop;return"rtl"===s(i||r).direction&&(l+=m(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:l,y:u}}(b(t)))}let M={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,o=[..."clippingAncestors"===r?function(t){let e=k(t),r=["absolute","fixed"].includes(s(t).position)&&u(t)?A(t):t;return c(r)?e.filter(t=>c(t)&&function(t,e){let r=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(r&&h(r)){let r=e;do{if(r&&t===r)return!0;r=r.parentNode||r.host}while(r)}return!1}(t,r)&&"body"!==a(t)):[]}(e):[].concat(r),n],l=o[0],f=o.reduce((t,r)=>{let n=S(e,r,i);return t.top=m(n.top,t.top),t.right=g(n.right,t.right),t.bottom=g(n.bottom,t.bottom),t.left=m(n.left,t.left),t},S(e,l,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:n}=t,i=u(r),o=b(r);if(r===o)return e;let s={scrollLeft:0,scrollTop:0},l={x:0,y:0};if((i||!i&&"fixed"!==n)&&(("body"!==a(r)||f(o))&&(s=w(r)),u(r))){let t=v(r,!0);l.x=t.x+r.clientLeft,l.y=t.y+r.clientTop}return{...e,x:e.x-s.scrollLeft+l.x,y:e.y-s.scrollTop+l.y}},isElement:c,getDimensions:T,getOffsetParent:A,getDocumentElement:b,getElementRects:t=>{let{reference:e,floating:r,strategy:n}=t;return{reference:function(t,e,r){let n=u(e),i=b(e),o=v(t,n&&function(t){let e=v(t);return y(e.width)!==t.offsetWidth||y(e.height)!==t.offsetHeight}(e),"fixed"===r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};if(n||!n&&"fixed"!==r)if(("body"!==a(e)||f(i))&&(s=w(e)),u(e)){let t=v(e,!0);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else i&&(l.x=x(i));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}(e,A(r),n),floating:{...T(r),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===s(t).direction};function L(t,e,r,n){void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=!0,animationFrame:a=!1}=n,l=i&&!a,u=o&&!a,h=l||u?[...c(t)?k(t):[],...k(e)]:[];h.forEach(t=>{l&&t.addEventListener("scroll",r,{passive:!0}),u&&t.addEventListener("resize",r)});let f,d=null;if(s){let n=!0;d=new ResizeObserver(()=>{n||r(),n=!1}),c(t)&&!a&&d.observe(t),d.observe(e)}let p=a?v(t):null;return a&&function e(){let n=v(t);p&&(n.x!==p.x||n.y!==p.y||n.width!==p.width||n.height!==p.height)&&r(),p=n,f=requestAnimationFrame(e)}(),r(),()=>{var t;h.forEach(t=>{l&&t.removeEventListener("scroll",r),u&&t.removeEventListener("resize",r)}),null==(t=d)||t.disconnect(),d=null,a&&cancelAnimationFrame(f)}}let R=(t,e,r)=>(0,n.rD)(t,e,{platform:M,...r})},8423:()=>{},8742:(t,e,r)=>{"use strict";r.d(e,{Dh:()=>td,Tu:()=>ty,UH:()=>q,a$:()=>tw,cl:()=>G,cr:()=>tA,jJ:()=>B,p7:()=>t_,pA:()=>th,qz:()=>Q,sg:()=>tx,tp:()=>tb});var n,i,o,s,a,l,u,c,h,f,d,p,g,m,y,v,b,w,x,E,_,A=Object.defineProperty,T=Object.defineProperties,k=Object.getOwnPropertyDescriptors,S=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,R=(t,e,r)=>e in t?A(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,O=(t,e)=>{for(var r in e||(e={}))M.call(e,r)&&R(t,r,e[r]);if(S)for(var r of S(e))L.call(e,r)&&R(t,r,e[r]);return t},N=(t,e)=>T(t,k(e)),C=(t,e)=>{var r={};for(var n in t)M.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&S)for(var n of S(t))0>e.indexOf(n)&&L.call(t,n)&&(r[n]=t[n]);return r},I=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)},j=(t,e,r)=>(I(t,e,"read from private field"),r?r.call(t):e.get(t)),P=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},F=(t,e,r,n)=>(I(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),D=(t,e,r)=>(I(t,e,"access private method"),r),$=(t,e,r)=>new Promise((n,i)=>{var o=t=>{try{a(r.next(t))}catch(t){i(t)}},s=t=>{try{a(r.throw(t))}catch(t){i(t)}},a=t=>t.done?n(t.value):Promise.resolve(t.value).then(o,s);a((r=r.apply(t,e)).next())}),z="https://api.mapbox.com/autofill/v1",U=`${z}/suggest`,W=`${z}/retrieve`,B=class{constructor(t,e){if(isNaN(t)||isNaN(e))throw Error(`Invalid LngLat object: (${t}, ${e})`);if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90");if(this.lng>180||this.lng<-180)throw Error("Invalid LngLat longitude value: must be between -180 and 180")}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}static convert(t){if(t instanceof B)return new B(t.lng,t.lat);
1if(Array.isArray(t)&&2===t.length)return new B(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t&&("lng"in t||"lon"in t)&&"lat"in t)return new B(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw Error("`LngLatLike` argument must be specified as an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}},q=class{constructor(t,e){this._sw=B.convert(t),this._ne=B.convert(e)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new B(this.getWest(),this.getNorth())}getSouthEast(){return new B(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toFlatArray(){return[this._sw.lng,this._sw.lat,this._ne.lng,this._ne.lat]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}static convert(t){if(!t)throw Error("Invalid LngLatBounds convert value: falsy");
1if(t instanceof q)return new q(t.getSouthWest(),t.getNorthEast());if(Array.isArray(t)&&2===t.length)return new q(B.convert(t[0]),B.convert(t[1]));if(Array.isArray(t)&&4===t.length)return new q(B.convert([t[0],t[1]]),B.convert([t[2],t[3]]));throw Error("`LngLatBoundsLike` argument must be specified as an array [<LngLatLike>, <LngLatLike>] or an array [<west>, <south>, <east>, <north>]")}},G=class{constructor(t){this.id=null!=t?t:function(){let t=(Math.random().toString(16)+Date.now().toString(16)+Math.random().toString(16)).replace(/\./g,"");return[t.slice(0,8),t.slice(8,12),"4"+t.slice(12,15)+"-8"+t.slice(15,18),t.slice(18,30)].join("-")}()}toString(){return this.id}static convert(t){return new G(t instanceof G?t.id:t.toString())}},Z=class extends Error{constructor(t,e){super(String(t.message||t.error||"Unknown error")),this.name="MapboxError",this.statusCode=e}toString(){return`${this.name} (${this.statusCode}): ${this.message}`}};function Y(t){return $(this,null,function*(){if(!t.ok)throw new Z((yield t.json()),t.status)})}var H=globalThis.fetch,V=globalThis.AbortController;function X(){if(!H)throw Error("Fetch implementation not found. Please include a fetch polyfill in your application or use `polyfillFetch` from `@mapbox/search-js-core` to fix this issue.");return{fetch:H,AbortController:V}}function K(...t){let e=[];for(let r of t)if(r)for(let[t,n]of Object.entries(r))null!=n&&e.push(`${t}=${encodeURIComponent(String(n))}`);return e.join("&")}var J=class{constructor(t={}){P(this,i),P(this,n,void 0);let{accessToken:e}=t,r=C(t,["accessToken"]);this.accessToken=e,this.defaults=O(O({},J.defaults),r)}get responseHeaders(){return j(this,n)}suggest(t,e){return $(this,null,function*(){if(!t)throw Error("searchText is required");let{sessionToken:r,signal:s}=e,a=N(O(O({},this.defaults),e),{sessionToken:r}),l=new URL(`${U}/${encodeURIComponent(t)}`);l.search=D(this,i,o).call(this,a);let{fetch:u}=X(),c=yield u(l.toString(),{signal:s});F(this,n,c.headers),yield Y(c);let h=yield c.json();return N(O({},h),{suggestions:h.suggestions.map(e=>N(O({},e),{original_search_text:t,_source:"mapbox"})),url:l.toString()})})}retrieve(t,e){return $(this,null,function*(){if(!t)throw Error("suggestion is required");if(!this.canRetrieve(t))throw Error("suggestion cannot be retrieved");let{sessionToken:r,signal:n}=e,i=G.convert(r),o=new URL(`${W}/${t.action.id}`);o.search=K({access_token:this.accessToken,session_token:i.id});let{fetch:s}=X(),a=yield s(o.toString(),{signal:n});yield Y(a);let l=yield a.json();return l.url=o.toString(),l})}canRetrieve(t){let e=t.action;return"string"==typeof(null==e?void 0:e.id)}},Q=J;n=new WeakMap,i=new WeakSet,o=function(t){return K({types:"address",access_token:this.accessToken,streets:t.streets,language:t.language,country:t.country,limit:t.limit},t.sessionToken&&{session_token:G.convert(t.sessionToken).id},t.proximity&&{proximity:"string"==typeof t.proximity?t.proximity:B.convert(t.proximity).toArray().join(",")},t.bbox&&{bbox:"string"==typeof t.bbox?t.bbox:q.convert(t.bbox).toFlatArray().join(",")})},Q.defaults={language:"en",proximity:"ip",streets:!0};var tt="https://api.mapbox.com/search/searchbox/v1",te=`${tt}/suggest`,tr=`${tt}/retrieve`,tn=`${tt}/category`,ti=`${tt}/reverse`,to="\\.\\d{1,256}",ts=`\\d{1,3}(${to})?`,ta=`(-?(${ts}|${to}))`,tl=RegExp(`^[ ]*${ta},\\s*${ta}[ ]*$`),tu=/[\s,]+/,tc=class{constructor(t={}){P(this,s),P(this,l),P(this,c);let{accessToken:e}=t,r=C(t,["accessToken"]);this.accessToken=e,this.defaults=O(O({},tc.defaults),r)}suggest(t,e){return $(this,null,function*(){var r;if(!t)throw Error("searchText is required");if(tl.test(t)&&e.allowReverse){let r=t.trim().split(tu).map(t=>t.trim());e.flipCoordinates&&(r=r.reverse());let n=r.join(","),i=yield this.reverse(n,e);return D(this,l,u).call(this,i)}let{sessionToken:n,signal:i}=e,o=N(O(O({},this.defaults),e),{q:t,sessionToken:n});if(o.eta_type&&(!o.origin||!o.navigation_profile))throw Error("to provide eta estimate: eta, navigation_profile, and origin are required");if(o.origin&&!o.navigation_profile)throw Error("to provide distance estimate: both navigation_profile and origin are required");let c=new URL(te);c.search=D(this,s,a).call(this,o);let{fetch:h}=X(),f=yield h(c.toString(),{signal:i});yield Y(f);let d=yield f.json();return d.url=c.toString(),null==(r=d.suggestions)||r.forEach(t=>{t._source="mapbox"}),d})}retrieve(t,e){return $(this,null,function*(){if(!t)throw Error("suggestion is required");if(t._originalFeature)return{type:"FeatureCollection",features:[t._originalFeature],url:t._originalUrl||""};if(t._geometry)return{type:"FeatureCollection",features:[{type:"Feature",properties:t,geometry:t._geometry}]};let{sessionToken:r,signal:n,language:i}=e,o=G.convert(r),s=O(O({},this.defaults),i&&{language:i}),a=new URL(`${tr}/${encodeURIComponent(t.mapbox_id)}`);a.search=K({access_token:this.accessToken,session_token:o.id},{language:s.language});let{fetch:l}=X(),u=yield l(a.toString(),{signal:n});yield Y(u);let c=yield u.json();return c.url=a.toString(),c})}category(t){return $(this,arguments,function*(t,e={}){if(!t)throw Error("category is required");let r=O(O({},this.defaults),e),n=new URL(`${tn}/${encodeURIComponent(t)}`);n.search=D(this,s,a).call(this,r);let{fetch:i}=X(),o=yield i(n.toString(),{signal:r.signal});yield Y(o);let l=yield o.json();return l.url=n.toString(),l})}reverse(t){return $(this,arguments,function*(t,e={}){var r;if(!t)throw Error("lngLat is required");let[n,i]="string"==typeof t?t.split(",").map(t=>parseFloat(t)):B.convert(t).toArray();if(isNaN(n)||isNaN(i))throw Error("lngLat is required");let o=O(O({},this.defaults),e),s=new URL(ti);s.search=K({access_token:this.accessToken,language:o.language,limit:o.limit,longitude:n,latitude:i},o.types&&{types:"string"==typeof o.types?o.types:[...o.types].join(",")});let{fetch:a}=X(),l=yield a(s.toString(),{signal:o.signal});yield Y(l);let u=yield l.json();return u.url=s.toString(),null==(r=u.features)||r.forEach(t=>{t._source="mapbox"}),u})}},th=tc;s=new WeakSet,a=function(t){return K({q:t.q,access_token:this.accessToken,language:t.language,limit:t.limit,navigation_profile:t.navigation_profile,route:t.route,route_geometry:t.route_geometry,sar_type:t.sar_type,time_deviation:t.time_deviation,eta_type:t.eta_type,country:t.country,poi_category:t.poi_category,rich_metadata_provider:t.rich_metadata_provider,poi_category_exclusions:t.poi_category_exclusions},t.sessionToken&&{session_token:G.convert(t.sessionToken).id},t.proximity&&{proximity:"string"==typeof t.proximity?t.proximity:B.convert(t.proximity).toArray().join(",")}
1,t.origin&&{origin:"string"==typeof t.origin?t.origin:B.convert(t.origin).toArray().join(",")},t.bbox&&{bbox:"string"==typeof t.bbox?t.bbox:q.convert(t.bbox).toFlatArray().join(",")},t.types&&{types:"string"==typeof t.types?t.types:[...t.types].join(",")})},l=new WeakSet,u=function(t){return{suggestions:t.features.map(e=>D(this,c,h).call(this,e,t.url)),attribution:t.attribution,url:t.url}},c=new WeakSet,h=function(t,e){return N(O({},t.properties),{_originalFeature:t,_originalUrl:e,_source:t._source})},th.defaults={language:"en"};var tf=class{constructor(t={}){P(this,f);let{accessToken:e}=t,r=C(t,["accessToken"]);this.accessToken=e,this.defaults=O(O({},tf.defaults),r)}validate(t,e){return $(this,null,function*(){if(!t)throw Error("searchText is required");let{sessionToken:r,signal:n}=e,i=N(O(O({},this.defaults),e),{sessionToken:r}),o=new URL(`https://api.mapbox.com/autofill/v1/retrieve/${encodeURIComponent(t)}`);o.search=D(this,f,d).call(this,i);let{fetch:s}=X(),a=yield s(o.toString(),{signal:n});yield Y(a);let l=yield a.json();return l.url=o.toString(),l.features.length>0&&(l.features=[l.features[0]]),l})}},td=tf;f=new WeakSet,d=function(t){return K({access_token:this.accessToken,language:t.language,country:t.country},t.sessionToken&&{session_token:G.convert(t.sessionToken).id},t.proximity&&{proximity:"string"==typeof t.proximity?t.proximity:B.convert(t.proximity).toArray().join(",")},t.bbox&&{bbox:"string"==typeof t.bbox?t.bbox:q.convert(t.bbox).toFlatArray().join(",")})},td.defaults={language:"en",proximity:"ip"};var tp="https://api.mapbox.com/search/geocode/v6",tg=`${tp}/forward`,tm=`${tp}/reverse`,ty=class{constructor(t={}){P(this,g),P(this,p,void 0);let{accessToken:e}=t,r=C(t,["accessToken"]);this.accessToken=e,this.defaults=O({},r)}get responseHeaders(){return j(this,p)}forward(t,e){return $(this,null,function*(){var r;let n;if(!t)throw Error("searchText is required");e&&({signal:n}=e);let i=N(O(O({},this.defaults),e),{q:t}),o=new URL(`${tg}`);o.search=D(this,g,m).call(this,i);let{fetch:s}=X(),a=n?{signal:n}:{},l=yield s(o.toString(),a);F(this,p,l.headers),yield Y(l);let u=yield l.json();return u.url=o.toString(),null==(r=u.features)||r.forEach(t=>{t._source="mapbox"}),u})}reverse(t,e){return $(this,null,function*(){var r;let n,i;if(!t)throw Error("lngLat is required");if(e&&({signal:n}=e),"string"==typeof t){let[e,r]=t.split(",");i=new B(Number(e),Number(r))}else i=B.convert(t);let o=N(O(O({},this.defaults),e),{longitude:i.lng,latitude:i.lat}),s=new URL(`${tm}`);s.search=D(this,g,m).call(this,o,!0);let{fetch:a}=X(),l=n?{signal:n}:{},u=yield a(s.toString(),l);F(this,p,u.headers),yield Y(u);let c=yield u.json();return c.url=s.toString(),null==(r=c.features)||r.forEach(t=>{t._source="mapbox"}),c})}suggest(t,e){return $(this,null,function*(){if(!tl.test(t))return this.forward(t,e);{let r=t.trim().split(tu).map(t=>t.trim());e.flipCoordinates&&(r=r.reverse());let n=r.join(",");return this.reverse(n,e)}})}retrieve(t){return $(this,null,function*(){return t})}};p=new WeakMap,g=new WeakSet,m=function(t,e=!1){return e&&["proximity","autocomplete","bbox"].forEach(e=>{e in t&&delete t[e]}),K({q:t.q,longitude:t.longitude,latitude:t.latitude,access_token:this.accessToken,permanent:t.permanent,language:t.language,country:t.country,limit:t.limit,autocomplete:t.autocomplete,worldview:t.worldview},t.sessionToken&&{session_token:G.convert(t.sessionToken).id},t.proximity&&{proximity:"string"==typeof t.proximity?t.proximity:B.convert(t.proximity).toArray().join(",")},t.bbox&&{bbox:"string"==typeof t.bbox?t.bbox:q.convert(t.bbox).toFlatArray().join(",")},t.types&&{types:"string"==typeof t.types?t.types:[...t.types].join(",")})};var tv=(t=>(t.matched="matched",t.unmatched="unmatched",t.plausible="plausible",t.not_applicable="not_applicable",t.inferred="inferred",t))(tv||{}),tb=(t=>(t.exact="exact",t.high="high",t.medium="medium",t.low="low",t))(tb||{}),tw=class{constructor(){P(this,y,{})}addEventListener(t,e){let r=j(this,y);r[t]||(r[t]=[]),r[t].push(e)}removeEventListener(t,e){let r=j(this,y);if(!r[t])return;let n=r[t],i=n.indexOf(e);-1!==i&&n.splice(i,1)}fire(t,e){let r=j(this,y);if(r[t])for(let n of r[t])n(e)}};function tx(t,e,r){let n=null;return(...i)=>{null!==n&&clearTimeout(n);let o=r&&r();n=setTimeout(()=>{n=null,null!=o&&o.aborted||t(...i)},e)}}function tE(){let{AbortController:t}=X();return new t}y=new WeakMap;
1var t_=class extends tw{constructor(t,e=0){super(),P(this,v,new G),P(this,b,0),P(this,w,!1),P(this,x,void 0),P(this,E,tE()),P(this,_,void 0),F(this,_,tx((t,...e)=>$(this,[t,...e],function*(t,e={}){if(j(this,E).abort(),F(this,E,tE()),!t){F(this,x,null),this.fire("suggest",j(this,x));return}try{let r=yield this.search.suggest(t,N(O({sessionToken:this.sessionToken},e),{signal:j(this,E).signal}));F(this,x,r),this.fire("suggest",r)}catch(t){if("AbortError"===t.name)return;this.fire("suggesterror",t)}}),e,()=>j(this,E).signal)),Object.defineProperties(this,{search:{value:t,writable:!1},debounce:{value:e,writable:!1}})}get sessionToken(){return j(this,w)?j(this,v).id:`${j(this,v).id}.${j(this,b)}`}set sessionToken(t){F(this,w,!0),F(this,v,new G(t))}get suggestions(){return j(this,x)}suggest(t,e){return j(this,_).call(this,t,e),new Promise((t,e)=>{let r,n;r=e=>{this.removeEventListener("suggest",r),this.removeEventListener("suggesterror",n),t(e)},n=t=>{this.removeEventListener("suggest",r),this.removeEventListener("suggesterror",n),e(t)},this.addEventListener("suggest",r),this.addEventListener("suggesterror",n)})}clear(){this.suggest("")}retrieve(t,e){return $(this,null,function*(){let r=yield this.search.retrieve(t,O({sessionToken:this.sessionToken},e));return this.fire("retrieve",r),r})}canRetrieve(t){return!this.search.canRetrieve||this.search.canRetrieve(t)}canSuggest(t){return!this.search.canSuggest||this.search.canSuggest(t)}abort(){j(this,E).abort(),F(this,E,tE())}incrementSession(){let t,e,r,n;(t=this,e=b,{set _(value){F(t,e,value,r)},get _(){return j(t,e,n)}})._++}};function tA(t){let{properties:e}=t;return O({},e)}v=new WeakMap,b=new WeakMap,w=new WeakMap,x=new WeakMap,E=new WeakMap,_=new WeakMap},9036:(t,e,r)=>{"use strict";r.d(e,{K:()=>j});var n=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],i=n.join(","),o="undefined"==typeof Element,s=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=!o&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},l=function(t,e,r){var n=Array.prototype.slice.apply(t.querySelectorAll(i));return e&&s.call(t,i)&&n.unshift(t),n=n.filter(r)},u=function t(e,r,n){for(var o=[],a=Array.from(e);a.length;){var l=a.shift();if("SLOT"===l.tagName){var u=l.assignedElements(),c=t(u.length?u:l.children,!0,n);n.flatten?o.push.apply(o,c):o.push({scope:l,candidates:c})}else{s.call(l,i)&&n.filter(l)&&(r||!e.includes(l))&&o.push(l);var h=l.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(l),f=!n.shadowRootFilter||n.shadowRootFilter(l);if(h&&f){var d=t(!0===h?l.children:h.children,!0,n);n.flatten?o.push.apply(o,d):o.push({scope:l,candidates:d})}else a.unshift.apply(a,l.children)}}return o},c=function(t,e){return t.tabIndex<0&&(e||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},h=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},f=function(t){return"INPUT"===t.tagName},d=function(t,e){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===e)return t[r]},p=function(t){if(!t.name)return!0;var e,r=t.form||a(t),n=function(t){return r.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=n(window.CSS.escape(t.name));else try{e=n(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var i=d(e,t.form);return!i||i===t},g=function(t){return f(t)&&"radio"===t.type&&!p(t)},m=function(t){var e=t.getBoundingClientRect(),r=e.width,n=e.height;return 0===r&&0===n},y=function(t,e){var r=e.displayCheck,n=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var i=s.call(t,"details>summary:first-of-type")?t.parentElement:t;if(s.call(i,"details:not([open]) *"))return!0;var o=a(t).host,l=(null==o?void 0:o.ownerDocument.contains(o))||t.ownerDocument.contains(t);if(r&&"full"!==r){if("non-zero-area"===r)return m(t)}else{if("function"==typeof n){for(var u=t;t;){var c=t.parentElement,h=a(t);if(c&&!c.shadowRoot&&!0===n(c))return m(t);t=t.assignedSlot?t.assignedSlot:c||h===t.ownerDocument?c:h.host}t=u}if(l)return!t.getClientRects().length}return!1}
1,v=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var r=0;r<e.children.length;r++){var n=e.children.item(r);if("LEGEND"===n.tagName)return!!s.call(e,"fieldset[disabled] *")||!n.contains(t)}return!0}e=e.parentElement}return!1},b=function(t,e){return!(e.disabled||f(e)&&"hidden"===e.type||y(e,t)||"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(t){return"SUMMARY"===t.tagName})||v(e))},w=function(t,e){return!(g(e)||0>c(e))&&!!b(t,e)},x=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!isNaN(e)||!!(e>=0)},E=function t(e){var r=[],n=[];return e.forEach(function(e,i){var o=!!e.scope,s=o?e.scope:e,a=c(s,o),l=o?t(e.candidates):s;0===a?o?r.push.apply(r,l):r.push(s):n.push({documentOrder:i,tabIndex:a,item:e,isScope:o,content:l})}),n.sort(h).reduce(function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t},[]).concat(r)},_=function(t,e){return E((e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:w.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:x}):l(t,e.includeContainer,w.bind(null,e)))},A=function(t,e){return(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:b.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):l(t,e.includeContainer,b.bind(null,e))},T=function(t,e){if(e=e||{},!t)throw Error("No node provided");return!1!==s.call(t,i)&&w(e,t)},k=n.concat("iframe").join(","),S=function(t,e){if(e=e||{},!t)throw Error("No node provided");return!1!==s.call(t,k)&&b(e,t)};function M(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function L(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?M(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var R=function(){var t=[];return{activateTrap:function(e){if(t.length>0){var r=t[t.length-1];r!==e&&r.pause()}var n=t.indexOf(e);-1===n||t.splice(n,1),t.push(e)},deactivateTrap:function(e){var r=t.indexOf(e);-1!==r&&t.splice(r,1),t.length>0&&t[t.length-1].unpause()}}}(),O=function(t){return setTimeout(t,0)},N=function(t,e){var r=-1;return t.every(function(t,n){return!e(t)||(r=n,!1)}),r},C=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return"function"==typeof t?t.apply(void 0,r):t},I=function(t){return t.target.shadowRoot&&"function"==typeof t.composedPath?t.composedPath()[0]:t.target},j=function(t,e){var r,n=(null==e?void 0:e.document)||document,i=L({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},e),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s=function(t,e,r){return t&&void 0!==t[e]?t[e]:i[r||e]},a=function(t){return o.containerGroups.findIndex(function(e){var r=e.container,n=e.tabbableNodes;return r.contains(t)||n.find(function(e){return e===t})})},l=function(t){var e=i[t];if("function"==typeof e){for(var r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];e=e.apply(void 0,o)}if(!0===e&&(e=void 0),!e){if(void 0===e||!1===e)return e;throw Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var a=e;if("string"==typeof e&&!(a=n.querySelector(e)))throw Error("`".concat(t,"` as selector refers to no known node"));return a},u=function(){var t=l("initialFocus");if(!1===t)return!1;if(void 0===t)if(a(n.activeElement)>=0)t=n.activeElement;else{var e=o.tabbableGroups[0];t=e&&e.firstTabbableNode||l("fallbackFocus")}if(!t)throw Error("Your focus-trap needs to have at least one focusable element");return t},c=function(){if(o.containerGroups=o.containers.map(function(t){var e=_(t,i.tabbableOptions),r=A(t,i.tabbableOptions);return{container:t,tabbableNodes:e,focusableNodes:r,firstTabbableNode:e.length>0?e[0]:null,lastTabbableNode:e.length>0?e[e.length-1]:null,nextTabbableNode:function(t){var e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=r.findIndex(function(e){return e===t});if(!(n<0))return e?r.slice(n+1).find(function(t){return T(t,i.tabbableOptions)}):r.slice(0,n).reverse().find(function(t){return T(t,i.tabbableOptions)})}}}),o.tabbableGroups=o.containerGroups.filter(function(t){return t.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!l("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},h=function t(e){if(!1!==e&&e!==n.activeElement){if(!e||!e.focus)return void t(u());e.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=e,e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select&&e.select()}},f=function(t){var e=l("setReturnFocus",t);return e||!1!==e&&t},d=function(t){var e=I(t);if(!(a(e)>
1=0)){if(C(i.clickOutsideDeactivates,t))return void r.deactivate({returnFocus:i.returnFocusOnDeactivate&&!S(e,i.tabbableOptions)});C(i.allowOutsideClick,t)||t.preventDefault()}},p=function(t){var e=I(t),r=a(e)>=0;r||e instanceof Document?r&&(o.mostRecentlyFocusedNode=e):(t.stopImmediatePropagation(),h(o.mostRecentlyFocusedNode||u()))},g=function(t){var e=I(t);c();var r=null;if(o.tabbableGroups.length>0){var n=a(e),s=n>=0?o.containerGroups[n]:void 0;if(n<0)r=t.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(t.shiftKey){var u=N(o.tabbableGroups,function(t){return e===t.firstTabbableNode});if(u<0&&(s.container===e||S(e,i.tabbableOptions)&&!T(e,i.tabbableOptions)&&!s.nextTabbableNode(e,!1))&&(u=n),u>=0){var f=0===u?o.tabbableGroups.length-1:u-1;r=o.tabbableGroups[f].lastTabbableNode}}else{var d=N(o.tabbableGroups,function(t){return e===t.lastTabbableNode});if(d<0&&(s.container===e||S(e,i.tabbableOptions)&&!T(e,i.tabbableOptions)&&!s.nextTabbableNode(e))&&(d=n),d>=0){var p=d===o.tabbableGroups.length-1?0:d+1;r=o.tabbableGroups[p].firstTabbableNode}}}else r=l("fallbackFocus");r&&(t.preventDefault(),h(r))},m=function(t){if(("Escape"===t.key||"Esc"===t.key||27===t.keyCode)&&!1!==C(i.escapeDeactivates,t)){t.preventDefault(),r.deactivate();return}if("Tab"===t.key||9===t.keyCode)return void g(t)},y=function(t){!(a(I(t))>=0||C(i.clickOutsideDeactivates,t))&&(C(i.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation()))},v=function(){if(o.active)return R.activateTrap(r),o.delayInitialFocusTimer=i.delayInitialFocus?O(function(){h(u())}):h(u()),n.addEventListener("focusin",p,!0),n.addEventListener("mousedown",d,{capture:!0,passive:!1}),n.addEventListener("touchstart",d,{capture:!0,passive:!1}),n.addEventListener("click",y,{capture:!0,passive:!1}),n.addEventListener("keydown",m,{capture:!0,passive:!1}),r},b=function(){if(o.active)return n.removeEventListener("focusin",p,!0),n.removeEventListener("mousedown",d,!0),n.removeEventListener("touchstart",d,!0),n.removeEventListener("click",y,!0),n.removeEventListener("keydown",m,!0),r};return(r={get active(){return o.active},get paused(){return o.paused},activate:function(t){if(o.active)return this;var e=s(t,"onActivate"),r=s(t,"onPostActivate"),i=s(t,"checkCanFocusTrap");i||c(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=n.activeElement,e&&e();var a=function(){i&&c(),v(),r&&r()};return i?i(o.containers.concat()).then(a,a):a(),this},deactivate:function(t){if(!o.active)return this;var e=L({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},t);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,b(),o.active=!1,o.paused=!1,R.deactivateTrap(r);var n=s(e,"onDeactivate"),a=s(e,"onPostDeactivate"),l=s(e,"checkCanReturnFocus"),u=s(e,"returnFocus","returnFocusOnDeactivate");n&&n();var c=function(){O(function(){u&&h(f(o.nodeFocusedBeforeActivation)),a&&a()})};return u&&l?l(f(o.nodeFocusedBeforeActivation)).then(c,c):c(),this},pause:function(){return o.paused||!o.active||(o.paused=!0,b()),this},unpause:function(){return o.paused&&o.active&&(o.paused=!1,c(),v()),this},updateContainerElements:function(t){return o.containers=[].concat(t).filter(Boolean).map(function(t){return"string"==typeof t?n.querySelector(t):t}),o.active&&c(),this}}).updateContainerElements(t),r}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.