1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../assets/ol.aEmqeWRe.css","../assets/ol-layerswitcher.uX5it9Pu.css"])))=>i.map(i=>d[i]); 2import{_ as Mo}from"../chunks/C1FmrZbK.js";import{s as $l,E as Pl,d as S,A as Cr,y as Xn,a as Pe,r as M,aj as Jt,i as D,b as P,G as je,q as de,c as C,e as j,f as Y,g as K,w as At,h as L,t as J,j as ee,k as Al,B as Il,C as Ol,n as ze,z as ye,O as Vr}from"../chunks/CeKwq4tL.js";import{S as ko,h as Bo,u as Ml}from"../chunks/i2zaU2gV.js";import{e as Ue}from"../chunks/BysmMC_4.js";import{S as kl,i as Bl,t as hr,a as Ot,e as Rl,d as Cl,m as Ll,c as Fl,b as Tl,g as Nl}from"../chunks/CC91_1Oj.js";import{p as jl}from"../chunks/Aiqce9ZO.js";import{y as Dl,E as yr,D as Wl,G as Gl,a as Ul,b as ql,V as Yr,c as Jr,S as St,d as _t,F as wt,r as Ee,w as Hl,u as zl,M as Vl,e as Yl,aI as Jl,x as Xl,g as Ql,f as Zl,aJ as Kl,a8 as eu,J as tu,aK as Ve,aL as Ro,aM as Te,p as Co,h as ru}from"../chunks/eoGA7h4K.js";import{r as Lo,R as nu}from"../chunks/BGQDQoHa.js";const ke=11102230246251565e-32,ne=134217729,ou=(3+8*ke)*ke;function Xr(r,e,t,n,o){let i,s,a,u,c=e[0],h=n[0],l=0,f=0;h>c==h>-c?(i=c,c=e[++l]):(i=h,h=n[++f]);let p=0;if(l<r&&f<t)for(h>c==h>-c?(s=c+i,a=i-(s-c),c=e[++l]):(s=h+i,a=i-(s-h),h=n[++f]),i=s,a!==0&&(o[p++]=a);l<r&&f<t;)h>c==h>-c?(s=i+c,u=s-i,a=i-(s-u)+(c-u),c=e[++l]):(s=i+h,u=s-i,a=i-(s-u)+(h-u),h=n[++f]),i=s,a!==0&&(o[p++]=a);for(;l<r;)s=i+c,u=s-i,a=i-(s-u)+(c-u),c=e[++l],i=s,a!==0&&(o[p++]=a);for(;f<t;)s=i+h,u=s-i,a=i-(s-u)+(h-u),h=n[++f],i=s,a!==0&&(o[p++]=a);return(i!==0||p===0)&&(o[p++]=i),p}function iu(r,e){let t=e[0];for(let n=1;n<r;n++)t+=e[n];return t}function jt(r){return new Float64Array(r)}const su=(3+16*ke)*ke,au=(2+12*ke)*ke,lu=(9+64*ke)*ke*ke,rt=jt(4),Fo=jt(8),To=jt(12),No=jt(16),ae=jt(4);function uu(r,e,t,n,o,i,s){let a,u,c,h,l,f,p,g,y,d,v,m,$,b,E,w,A,x;const I=r-o,k=t-o,G=e-i,F=n-i;b=I*F,f=ne*I,p=f-(f-I),g=I-p,f=ne*F,y=f-(f-F),d=F-y,E=g*d-(b-p*y-g*y-p*d),w=G*k,f=ne*G,p=f-(f-G),g=G-p,f=ne*k,y=f-(f-k),d=k-y,A=g*d-(w-p*y-g*y-p*d),v=E-A,l=E-v,rt[0]=E-(v+l)+(l-A),m=b+v,l=m-b,$=b-(m-l)+(v-l),v=$-w,l=$-v,rt[1]=$-(v+l)+(l-w),x=m+v,l=x-m,rt[2]=m-(x-l)+(v-l),rt[3]=x;let T=iu(4,rt),X=au*s;if(T>=X||-T>=X||(l=r-I,a=r-(I+l)+(l-o),l=t-k,c=t-(k+l)+(l-o),l=e-G,u=e-(G+l)+(l-i),l=n-F,h=n-(F+l)+(l-i),a===0&&u===0&&c===0&&h===0)||(X=lu*s+ou*Math.abs(T),T+=I*h+F*a-(G*c+k*u),T>=X||-T>=X))return T;b=a*F,f=ne*a,p=f-(f-a),g=a-p,f=ne*F,y=f-(f-F),d=F-y,E=g*d-(b-p*y-g*y-p*d),w=u*k,f=ne*u,p=f-(f-u),g=u-p,f=ne*k,y=f-(f-k),d=k-y,A=g*d-(w-p*y-g*y-p*d),v=E-A,l=E-v,ae[0]=E-(v+l)+(l-A),m=b+v,l=m-b,$=b-(m-l)+(v-l),v=$-w,l=$-v,ae[1]=$-(v+l)+(l-w),x=m+v,l=x-m,ae[2]=m-(x-l)+(v-l),ae[3]=x;const te=Xr(4,rt,4,ae,Fo);b=I*h,f=ne*I,p=f-(f-I),g=I-p,f=ne*h,y=f-(f-h),d=h-y,E=g*d-(b-p*y-g*y-p*d),w=G*c,f=ne*G,p=f-(f-G),g=G-p,f=ne*c,y=f-(f-c),d=c-y,A=g*d-(w-p*y-g*y-p*d),v=E-A,l=E-v,ae[0]=E-(v+l)+(l-A),m=b+v,l=m-b,$=b-(m-l)+(v-l),v=$-w,l=$-v,ae[1]=$-(v+l)+(l-w),x=m+v,l=x-m,ae[2]=m-(x-l)+(v-l),ae[3]=x;const ce=Xr(te,Fo,4,ae,To);b=a*h,f=ne*a,p=f-(f-a),g=a-p,f=ne*h,y=f-(f-h),d=h-y,E=g*d-(b-p*y-g*y-p*d),w=u*c,f=ne*u,p=f-(f-u),g=u-p,f=ne*c,y=f-(f-c),d=c-y,A=g*d-(w-p*y-g*y-p*d),v=E-A,l=E-v,ae[0]=E-(v+l)+(l-A),m=b+v,l=m-b,$=b-(m-l)+(v-l),v=$-w,l=$-v,ae[1]=$-(v+l)+(l-w),x=m+v,l=x-m,ae[2]=m-(x-l)+(v-l),ae[3]=x;const se=Xr(ce,To,4,ae,No);return No[se-1]}function ta(r,e,t,n,o,i){const s=(e-i)*(t-o),a=(r-o)*(n-i),u=s-a,c=Math.abs(s+a);return Math.abs(u)>=su*c?u:-uu(r,e,t,n,o,i,c)}function fu(r,e){var t,n,o=0,i,s,a,u,c,h,l,f=r[0],p=r[1],g=e.length;for(t=0;t<g;t++){n=0;var y=e[t],d=y.length-1;if(h=y[0],h[0]!==y[d][0]&&h[1]!==y[d][1])throw new Error("First and last coordinates in a ring must be the same");for(s=h[0]-f,a=h[1]-p,n;n<d;n++){if(l=y[n+1],u=l[0]-f,c=l[1]-p,a===0&&c===0){if(u<=0&&s>=0||s<=0&&u>=0)return 0}else if(c>=0&&a<=0||c<=0&&a>=0){if(i=ta(s,u,a,c,0,0),i===0)return 0;(i>0&&c>0&&a<=0||i<0&&c<=0&&a>0)&&o++}h=l,a=c,s=u}}return o%2!==0}function Je(r,e,t={}){const n={type:"Feature"};return(t.id===0||t.id)&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.properties=e||{},n.geometry=r,n}function cu(r,e,t={}){if(!r)throw new Error("coordinates is required");if(!Array.isArray(r))throw new Error("coordinates must be an Array");if(r.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!jo(r[0])||!jo(r[1]))throw new Error("coordinates must contain numbers");return Je({type:"Point",coordinates:r},e,t)}function pu(r,e,t={}){if(r.length<2)throw new Error("coordinates must be an array of two or more positions");return Je({type:"LineString",coordinates:r},e,t)}function En(r,e={}){const t={type:"FeatureCollection"};return e.id&&(t.id=e.id),e.bbox&&(t.bbox=e.bbox),t.features=r,t}function hu(r,e,t={}){return Je({type:"MultiLineString",coordinates:r},e,t)}function jo(r){return!isNaN(r)&&r!==null&&!Array.isArray(r)}
2function yu(r){if(!r)throw new Error("coord is required");if(!Array.isArray(r)){if(r.type==="Feature"&&r.geometry!==null&&r.geometry.type==="Point")return[...r.geometry.coordinates];if(r.type==="Point")return[...r.coordinates]}if(Array.isArray(r)&&r.length>=2&&!Array.isArray(r[0])&&!Array.isArray(r[1]))return[...r];throw new Error("coord must be GeoJSON Point or an Array of numbers")}function Lr(r){return r.type==="Feature"?r.geometry:r}function Lt(r,e,t={}){if(!r)throw new Error("point is required");if(!e)throw new Error("polygon is required");const n=yu(r),o=Lr(e),i=o.type,s=e.bbox;let a=o.coordinates;if(s&&gu(n,s)===!1)return!1;i==="Polygon"&&(a=[a]);for(var u=0;u<a.length;++u){const c=fu(n,a[u]);if(c===0&&!t.ignoreBoundary)return!0;if(c)return!0}return!1}function gu(r,e){return e[0]<=r[0]&&e[1]<=r[1]&&e[2]>=r[0]&&e[3]>=r[1]}class ra{constructor(e=[],t=vu){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:n}=this,o=t[e];for(;e>0;){const i=e-1>>1,s=t[i];if(n(o,s)>=0)break;t[e]=s,e=i}t[e]=o}_down(e){const{data:t,compare:n}=this,o=this.length>>1,i=t[e];for(;e<o;){let s=(e<<1)+1,a=t[s];const u=s+1;if(u<this.length&&n(t[u],a)<0&&(s=u,a=t[u]),n(a,i)>=0)break;t[e]=a,e=s}t[e]=i}}function vu(r,e){return r<e?-1:r>e?1:0}const Be=11102230246251565e-32,oe=134217729,du=(3+8*Be)*Be;function Qr(r,e,t,n,o){let i,s,a,u,c=e[0],h=n[0],l=0,f=0;h>c==h>-c?(i=c,c=e[++l]):(i=h,h=n[++f]);let p=0;if(l<r&&f<t)for(h>c==h>-c?(s=c+i,a=i-(s-c),c=e[++l]):(s=h+i,a=i-(s-h),h=n[++f]),i=s,a!==0&&(o[p++]=a);l<r&&f<t;)h>c==h>-c?(s=i+c,u=s-i,a=i-(s-u)+(c-u),c=e[++l]):(s=i+h,u=s-i,a=i-(s-u)+(h-u),h=n[++f]),i=s,a!==0&&(o[p++]=a);for(;l<r;)s=i+c,u=s-i,a=i-(s-u)+(c-u),c=e[++l],i=s,a!==0&&(o[p++]=a);for(;f<t;)s=i+h,u=s-i,a=i-(s-u)+(h-u),h=n[++f],i=s,a!==0&&(o[p++]=a);return(i!==0||p===0)&&(o[p++]=i),p}function mu(r,e){let t=e[0];for(let n=1;n<r;n++)t+=e[n];return t}function Dt(r){return new Float64Array(r)}const bu=(3+16*Be)*Be,Su=(2+12*Be)*Be,_u=(9+64*Be)*Be*Be,nt=Dt(4),Do=Dt(8),Wo=Dt(12),Go=Dt(16),le=Dt(4);function wu(r,e,t,n,o,i,s){let a,u,c,h,l,f,p,g,y,d,v,m,$,b,E,w,A,x;const I=r-o,k=t-o,G=e-i,F=n-i;b=I*F,f=oe*I,p=f-(f-I),g=I-p,f=oe*F,y=f-(f-F),d=F-y,E=g*d-(b-p*y-g*y-p*d),w=G*k,f=oe*G,p=f-(f-G),g=G-p,f=oe*k,y=f-(f-k),d=k-y,A=g*d-(w-p*y-g*y-p*d),v=E-A,l=E-v,nt[0]=E-(v+l)+(l-A),m=b+v,l=m-b,$=b-(m-l)+(v-l),v=$-w,l=$-v,nt[1]=$-(v+l)+(l-w),x=m+v,l=x-m,nt[2]=m-(x-l)+(v-l),nt[3]=x;let T=mu(4,nt),X=Su*s;if(T>=X||-T>=X||(l=r-I,a=r-(I+l)+(l-o),l=t-k,c=t-(k+l)+(l-o),l=e-G,u=e-(G+l)+(l-i),l=n-F,h=n-(F+l)+(l-i),a===0&&u===0&&c===0&&h===0)||(X=_u*s+du*Math.abs(T),T+=I*h+F*a-(G*c+k*u),T>=X||-T>=X))return T;b=a*F,f=oe*a,p=f-(f-a),g=a-p,f=oe*F,y=f-(f-F),d=F-y,E=g*d-(b-p*y-g*y-p*d),w=u*k,f=oe*u,p=f-(f-u),g=u-p,f=oe*k,y=f-(f-k),d=k-y,A=g*d-(w-p*y-g*y-p*d),v=E-A,l=E-v,le[0]=E-(v+l)+(l-A),m=b+v,l=m-b,$=b-(m-l)+(v-l),v=$-w,l=$-v,le[1]=$-(v+l)+(l-w),x=m+v,l=x-m,le[2]=m-(x-l)+(v-l),le[3]=x;const te=Qr(4,nt,4,le,Do);b=I*h,f=oe*I,p=f-(f-I),g=I-p,f=oe*h,y=f-(f-h),d=h-y,E=g*d-(b-p*y-g*y-p*d),w=G*c,f=oe*G,p=f-(f-G),g=G-p,f=oe*c,y=f-(f-c),d=c-y,A=g*d-(w-p*y-g*y-p*d),v=E-A,l=E-v,le[0]=E-(v+l)+(l-A),m=b+v,l=m-b,$=b-(m-l)+(v-l),v=$-w,l=$-v,le[1]=$-(v+l)+(l-w),x=m+v,l=x-m,le[2]=m-(x-l)+(v-l),le[3]=x;const ce=Qr(te,Do,4,le,Wo);b=a*h,f=oe*a,p=f-(f-a),g=a-p,f=oe*h,y=f-(f-h),d=h-y,E=g*d-(b-p*y-g*y-p*d),w=u*c,f=oe*u,p=f-(f-u),g=u-p,f=oe*c,y=f-(f-c),d=c-y,A=g*d-(w-p*y-g*y-p*d),v=E-A,l=E-v,le[0]=E-(v+l)+(l-A),m=b+v,l=m-b,$=b-(m-l)+(v-l),v=$-w,l=$-v,le[1]=$-(v+l)+(l-w),x=m+v,l=x-m,le[2]=m-(x-l)+(v-l),le[3]=x;const se=Qr(ce,Wo,4,le,Go);return Go[se-1]}function Uo(r,e,t,n,o,i){const s=(e-i)*(t-o),a=(r-o)*(n-i),u=s-a;if(s===0||a===0||s>0!=a>0)return u;const c=Math.abs(s+a);return Math.abs(u)>=bu*c?u:-wu(r,e,t,n,o,i,c)}function Eu(r,e){const t=new ra([],na);return $u(r,t),Pu(t,e)}function na(r,e){return r.p.x>e.p.x?1:r.p.x<e.p.x||r.p.x===e.p.x&&(r.featureId!==e.featureId||r.ringId!==e.ringId)&&r.isLeftEndpoint&&!e.isLeftEndpoint?-1:r.p.y!==e.p.y?r.p.y>e.p.y?1:-1:1}function xu(r,e){return r.rightSweepEvent.p.x>e.rightSweepEvent.p.x?1:r.rightSweepEvent.p.x<e.rightSweepEvent.p.x?-1:r.rightSweepEvent.p.y!==e.rightSweepEvent.p.y?r.rightSweepEvent.p.y<e.rightSweepEvent.p.y?1:-1:1}function $u(r,e){if(r.type==="FeatureCollection"){const t=r.features;for(let n=0;n<t.length;n++)qo(t[n],e)}else qo(r,e)}var Xt=0,Qt=0,Zt=0;function qo(r,e){const t=r.type==="Feature"?r.geometry:r;let n=t.coordinates;(t.type==="Polygon"||t.type==="MultiLineString")&&(n=[n]),t.type==="LineString"&&(n=[[n]]);for(let o=0;o<n.length;o++)for(let i=0;i<n[o].length;i++){let s=n[o][i][0],a=null;Qt=Qt+1;for(let u=0;u<n[o][i].length-1;u++){a=n[o][i][u+1];const c=new Ho(s,Xt,Qt,Zt),h=new Ho(a,Xt,Qt,Zt+1);c.otherEvent=h,h.otherEvent=c,na(c,h)>0?(h.isLeftEndpoint=!0,c.isLeftEndpoint=!1):(c.isLeftEndpoint=!0,h.isLeftEndpoint=!1),e.push(c),e.push(h),s=a,Zt=Zt+1}}Xt=Xt+1}var Ho=class{constructor(r,e,t,n){this.p={x:r[0],y:r[1]},this.featureId=e,this.ringId=t,this.eventId=n,this.otherEvent=null,this.isLeftEndpoint=null}isSamePoint(r){return this.p.x===r.p.x&&this.p.y===r.p.y}asNewXY(){return[this.p.x,this.p.y]}};function Pu(r,e=!1){const t=[],n=new ra([],xu);for(;r.length;){const o=r.pop();if(o.isLeftEndpoint){const i=new Au(o);for(let s=0;s<n.data.length;s++){const a=n.data[s];if(e&&a.leftSweepEvent.featureId===o.featureId)continue;const u=Iu(i,a);u!==!1&&t.push(u)}n.push(i)}else o.isLeftEndpoint===!1&&n.pop()}return t}var Au=class{constructor(e){this.leftSweepEvent=e,this.rightSweepEvent=e.otherEvent}};function Iu(r,e){if(r===null||e===null)return!1;const t=r.leftSweepEvent.p.x,n=r.leftSweepEvent.p.y,o=r.rightSweepEvent.p.x,i=r.rightSweepEvent.p.y,s=e.leftSweepEvent.p.x,a=e.leftSweepEvent.p.y,u=e.rightSweepEvent.p.x,c=e.rightSweepEvent.p.y,h=Uo(t,n,o,i,s,a),l=Uo(t,n,o,i,u,c);if(h>0&&l>0)return!1;if(h<0&&l<0)return!1;if(r.leftSweepEvent.ringId===e.leftSweepEvent.ringId){if(r.rightSweepEvent.isSamePoint(e.leftSweepEvent)||r.rightSweepEvent.isSamePoint(e.rightSweepEvent)||r.leftSweepEvent.isSamePoint(e.leftSweepEvent)||r.leftSweepEvent.isSamePoint(e.rightSweepEvent))return!1}else{if(r.rightSweepEvent.isSamePoint(e.leftSweepEvent))return e.leftSweepEvent.asNewXY();if(r.rightSweepEvent.isSamePoint(e.rightSweepEvent))return e.rightSweepEvent.asNewXY();if(r.leftSweepEvent.isSamePoint(e.leftSweepEvent))return e.leftSweepEvent.asNewXY();if(r.leftSweepEvent.isSamePoint(e.rightSweepEvent))return e.rightSweepEvent.asNewXY()}const f=(c-a)*(o-t)-(u-s)*(i-n),p=(u-s)*(n-a)-(c-a)*(t-s),g=(o-t)*(n-a)-(i-n)*(t-s);if(f===0)return!1;const y=p/f,d=g/f;if(y>=0&&y<=1&&d>=0&&d<=1){const v=t+y*(o-t),m=n+y*(i-n);return[v,m]}return!1}function Qn(r,e,t={}){const{removeDuplicates:n=!0,ignoreSelfIntersections:o=!0}=t;let i=[];r.type==="FeatureCollection"?i=i.concat(r.features):r.type==="Feature"?i.push(r):(r.type==="LineString"||r.type==="Polygon"||r.type==="MultiLineString"||r.type==="MultiPolygon")&&i.push(Je(r)),e.type==="FeatureCollection"?i=i.concat(e.features):e.type==="Feature"?i.push(e):(e.type==="LineString"||e.type==="Polygon"||e.type==="MultiLineString"||e.type==="MultiPolygon")&&i.push(Je(e));const s=Eu(En(i),o);let a=[];if(n){const u={};
vendor: 1,035 bytes, line 2
2s.forEach(c=>{const h=c.join(",");u[h]||(u[h]=!0,a.push(c))})}else a=s;return En(a.map(u=>cu(u)))}function oa(r,e){var t,n,o,i,s,a,u,c,h,l,f=0,p=r.type==="FeatureCollection",g=r.type==="Feature",y=p?r.features.length:1;for(t=0;t<y;t++){for(a=p?r.features[t].geometry:g?r.geometry:r,c=p?r.features[t].properties:g?r.properties:{},h=p?r.features[t].bbox:g?r.bbox:void 0,l=p?r.features[t].id:g?r.id:void 0,u=a?a.type==="GeometryCollection":!1,s=u?a.geometries.length:1,o=0;o<s;o++){if(i=u?a.geometries[o]:a,i===null){if(e(null,f,c,h,l)===!1)return!1;continue}switch(i.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(i,f,c,h,l)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<i.geometries.length;n++)if(e(i.geometries[n],f,c,h,l)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}f++}}function gr(r,e){oa(r,function(t,n,o,i,s){var a=t===null?null:t.type;switch(a){case null:case"Point":case"LineString":case"Polygon":return e(Je(t,o,{bbox:i,id:s}
2),n,0)===!1?!1:void 0}var u;switch(a){case"MultiPoint":u="Point";break;case"MultiLineString":u="LineString";break;case"MultiPolygon":u="Polygon";break}for(var c=0;c<t.coordinates.length;c++){var h=t.coordinates[c],l={type:u,coordinates:h};if(e(Je(l,o),n,c)===!1)return!1}})}function xn(r,e={}){const t=Lr(r);switch(!e.properties&&r.type==="Feature"&&(e.properties=r.properties),t.type){case"Polygon":return Ou(t,e);case"MultiPolygon":return Mu(t,e);default:throw new Error("invalid poly")}}function Ou(r,e={}){const n=Lr(r).coordinates,o=e.properties?e.properties:r.type==="Feature"?r.properties:{};return ia(n,o)}function Mu(r,e={}){const n=Lr(r).coordinates,o=e.properties?e.properties:r.type==="Feature"?r.properties:{},i=[];return n.forEach(s=>{i.push(ia(s,o))}),En(i)}function ia(r,e){return r.length>1?hu(r,e):pu(r[0],e)}function ku(r,e,{ignoreSelfIntersections:t=!0}={ignoreSelfIntersections:!0}){let n=!0;return gr(r,o=>{gr(e,i=>{if(n===!1)return!1;n=Bu(o.geometry,i.geometry,t)})}),n}function Bu(r,e,t){switch(r.type){case"Point":switch(e.type){case"Point":return!Fu(r.coordinates,e.coordinates);case"LineString":return!vr(e,r);case"Polygon":return!Lt(r,e)}break;case"LineString":switch(e.type){case"Point":return!vr(r,e);case"LineString":return!Ru(r,e,t);case"Polygon":return!zo(e,r,t)}break;case"Polygon":switch(e.type){case"Point":return!Lt(e,r);case"LineString":return!zo(r,e,t);case"Polygon":return!Cu(e,r,t)}}return!1}function vr(r,e){for(let t=0;t<r.coordinates.length-1;t++)if(Lu(r.coordinates[t],r.coordinates[t+1],e.coordinates))return!0;return!1}function Ru(r,e,t){if(Qn(r,e,{ignoreSelfIntersections:t}).features.length>0)return!0;for(const o of r.coordinates)if(vr(e,{coordinates:o}))return!0;for(const o of e.coordinates)if(vr(r,{coordinates:o}))return!0;return!1}function zo(r,e,t){for(const o of e.coordinates)if(Lt(o,r))return!0;return Qn(e,xn(r),{ignoreSelfIntersections:t}).features.length>0}function Cu(r,e,t){for(const o of r.coordinates[0])if(Lt(o,e))return!0;for(const o of e.coordinates[0])if(Lt(o,r))return!0;return Qn(xn(r),xn(e),{ignoreSelfIntersections:t}).features.length>0}function Lu(r,e,t){const n=t[0]-r[0],o=t[1]-r[1],i=e[0]-r[0],s=e[1]-r[1];return n*s-o*i!==0?!1:Math.abs(i)>=Math.abs(s)?i>0?r[0]<=t[0]&&t[0]<=e[0]:e[0]<=t[0]&&t[0]<=r[0]:s>0?r[1]<=t[1]&&t[1]<=e[1]:e[1]<=t[1]&&t[1]<=r[1]}function Fu(r,e){return r[0]===e[0]&&r[1]===e[1]}var Tu=Object.defineProperty,Nu=(r,e)=>Tu(r,"name",{value:e,configurable:!0});function sa(r,e){let t=!1;return gr(r,n=>{gr(e,o=>{if(t===!0)return!0;t=!ku(n.geometry,o.geometry)})}),t}Nu(sa,"booleanIntersects");var ju=sa,Vo=Object.prototype.toString,aa=function(e){var t=Vo.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Vo.call(e.callee)==="[object Function]"),n},Zr,Yo;function Du(){if(Yo)return Zr;Yo=1;var r;if(!Object.keys){var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=aa,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),s=o.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(f){var p=f.constructor;return p&&p.prototype===f},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!c["$"+f]&&e.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{u(window[f])}catch{return!0}}catch{return!0}return!1}(),l=function(f){if(typeof window>"u"||!h)return u(f);try{return u(f)}catch{return!1}};r=function(p){var g=p!==null&&typeof p=="object",y=t.call(p)==="[object Function]",d=n(p),v=g&&t.call(p)==="[object String]",m=[];if(!g&&!y&&!d)throw new TypeError("Object.keys called on a non-object");var $=s&&y;if(v&&p.length>0&&!e.call(p,0))for(var b=0;b<p.length;++b)m.push(String(b));if(d&&p.length>0)for(var E=0;E<p.length;++E)m.push(String(E));else for(var w in p)!($&&w==="prototype")&&e.call(p,w)&&m.push(String(w));if(i)for(var A=l(p),x=0;x<a.length;++x)!(A&&a[x]==="constructor")&&e.call(p,a[x])&&m.push(a[x]);return m}}return Zr=r,Zr}var Wu=Array.prototype.slice,Gu=aa,Jo=Object.keys,rr=Jo?function(e){return Jo(e)}:Du(),Xo=Object.keys;rr.shim=function(){if(Object.keys){var e=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);e||(Object.keys=function(n){return Gu(n)?Xo(Wu.call(n)):Xo(n)})}else Object.keys=rr;return Object.keys||rr};var Zn=rr,nr=Object.defineProperty||!1;if(nr)try{nr({},"a",{value:1})}catch{nr=!1}var Fr=nr,Kn=SyntaxError,ge=TypeError,Uu=Object.getOwnPropertyDescriptor,or=Uu;if(or)try{or([],"length")}catch{or=null}var Xe=or,Qo=Fr,qu=Kn,ot=ge,Zo=Xe,eo=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new ot("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new ot("`property` must be a string or a symbol`");
2if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new ot("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new ot("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new ot("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new ot("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,u=!!Zo&&Zo(e,t);if(Qo)Qo(e,t,{configurable:s===null&&u?u.configurable:!s,enumerable:o===null&&u?u.enumerable:!o,value:n,writable:i===null&&u?u.writable:!i});else if(a||!o&&!i&&!s)e[t]=n;else throw new qu("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},$n=Fr,la=function(){return!!$n};la.hasArrayLengthDefineBug=function(){if(!$n)return null;try{return $n([],"length",{value:1}).length!==1}catch{return!0}};var to=la,Hu=Zn,zu=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Vu=Object.prototype.toString,Yu=Array.prototype.concat,Ko=eo,Ju=function(r){return typeof r=="function"&&Vu.call(r)==="[object Function]"},ua=to(),Xu=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!Ju(n)||!n())return}ua?Ko(r,e,t,!0):Ko(r,e,t)},fa=function(r,e){var t=arguments.length>2?arguments[2]:{},n=Hu(e);zu&&(n=Yu.call(n,Object.getOwnPropertySymbols(e)));for(var o=0;o<n.length;o+=1)Xu(r,n[o],e[n[o]],t[n[o]])};fa.supportsDescriptors=!!ua;var Qe=fa,ca={exports:{}},ro=Object,pa=Error,Qu=EvalError,Zu=RangeError,Ku=ReferenceError,ef=URIError,tf=Math.abs,rf=Math.floor,nf=Math.max,of=Math.min,sf=Math.pow,af=Math.round,lf=Number.isNaN||function(e){return e!==e},uf=lf,ff=function(e){return uf(e)||e===0?e:e<0?-1:1},Tr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[t]=o;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==o||a.enumerable!==!0)return!1}return!0},ei=typeof Symbol<"u"&&Symbol,cf=Tr,no=function(){return typeof ei!="function"||typeof Symbol!="function"||typeof ei("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:cf()},ha=typeof Reflect<"u"&&Reflect.getPrototypeOf||null,pf=ro,ya=pf.getPrototypeOf||null,Kr,ti;function hf(){if(ti)return Kr;ti=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",o=function(u,c){for(var h=[],l=0;l<u.length;l+=1)h[l]=u[l];for(var f=0;f<c.length;f+=1)h[f+u.length]=c[f];return h},i=function(u,c){for(var h=[],l=c,f=0;l<u.length;l+=1,f+=1)h[f]=u[l];return h},s=function(a,u){for(var c="",h=0;h<a.length;h+=1)c+=a[h],h+1<a.length&&(c+=u);return c};return Kr=function(u){var c=this;if(typeof c!="function"||e.apply(c)!==n)throw new TypeError(r+c);for(var h=i(arguments,1),l,f=function(){if(this instanceof l){var v=c.apply(this,o(h,arguments));return Object(v)===v?v:this}return c.apply(u,o(h,arguments))},p=t(0,c.length-h.length),g=[],y=0;y<p;y++)g[y]="$"+y;if(l=Function("binder","return function ("+s(g,",")+"){ return binder.apply(this,arguments); }")(f),c.prototype){var d=function(){};d.prototype=c.prototype,l.prototype=new d,d.prototype=null}return l},Kr}var en,ri;function Wt(){if(ri)return en;ri=1;var r=hf();return en=Function.prototype.bind||r,en}var tn,ni;function oo(){return ni||(ni=1,tn=Function.prototype.call),tn}var rn,oi;function io(){return oi||(oi=1,rn=Function.prototype.apply),rn}var yf=typeof Reflect<"u"&&Reflect&&Reflect.apply,gf=Wt(),vf=io(),df=oo(),mf=yf,ga=mf||gf.call(df,vf),bf=Wt(),Sf=ge,_f=oo(),wf=ga,so=function(e){if(e.length<1||typeof e[0]!="function")throw new Sf("a function is required");return wf(bf,_f,e)}
2,Ef=so,ii=Xe,va;try{va=[].__proto__===Array.prototype}catch(r){if(!r||typeof r!="object"||!("code"in r)||r.code!=="ERR_PROTO_ACCESS")throw r}var nn=!!va&&ii&&ii(Object.prototype,"__proto__"),da=Object,si=da.getPrototypeOf,xf=nn&&typeof nn.get=="function"?Ef([nn.get]):typeof si=="function"?function(e){return si(e==null?e:da(e))}:!1,ai=ha,li=ya,ui=xf,ao=ai?function(e){return ai(e)}:li?function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return li(e)}:ui?function(e){return ui(e)}:null,$f=Function.prototype.call,Pf=Object.prototype.hasOwnProperty,Af=Wt(),lo=Af.call($f,Pf),R,If=ro,Of=pa,Mf=Qu,kf=Zu,Bf=Ku,ft=Kn,ut=ge,Rf=ef,Cf=tf,Lf=rf,Ff=nf,Tf=of,Nf=sf,jf=af,Df=ff,ma=Function,on=function(r){try{return ma('"use strict"; return ('+r+").constructor;")()}catch{}},Ft=Xe,Wf=Fr,sn=function(){throw new ut},Gf=Ft?function(){try{return arguments.callee,sn}catch{try{return Ft(arguments,"callee").get}catch{return sn}}}():sn,it=no(),Z=ao,Uf=ya,qf=ha,ba=io(),Gt=oo(),at={},Hf=typeof Uint8Array>"u"||!Z?R:Z(Uint8Array),Ye={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?R:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?R:ArrayBuffer,"%ArrayIteratorPrototype%":it&&Z?Z([][Symbol.iterator]()):R,"%AsyncFromSyncIteratorPrototype%":R,"%AsyncFunction%":at,"%AsyncGenerator%":at,"%AsyncGeneratorFunction%":at,"%AsyncIteratorPrototype%":at,"%Atomics%":typeof Atomics>"u"?R:Atomics,"%BigInt%":typeof BigInt>"u"?R:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?R:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?R:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?R:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Of,"%eval%":eval,"%EvalError%":Mf,"%Float16Array%":typeof Float16Array>"u"?R:Float16Array,"%Float32Array%":typeof Float32Array>"u"?R:Float32Array,"%Float64Array%":typeof Float64Array>"u"?R:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?R:FinalizationRegistry,"%Function%":ma,"%GeneratorFunction%":at,"%Int8Array%":typeof Int8Array>"u"?R:Int8Array,"%Int16Array%":typeof Int16Array>"u"?R:Int16Array,"%Int32Array%":typeof Int32Array>
vendor: 4,945 bytes, line 2
2"u"?R:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":it&&Z?Z(Z([][Symbol.iterator]())):R,"%JSON%":typeof JSON=="object"?JSON:R,"%Map%":typeof Map>"u"?R:Map,"%MapIteratorPrototype%":typeof Map>"u"||!it||!Z?R:Z(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":If,"%Object.getOwnPropertyDescriptor%":Ft,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?R:Promise,"%Proxy%":typeof Proxy>"u"?R:Proxy,"%RangeError%":kf,"%ReferenceError%":Bf,"%Reflect%":typeof Reflect>"u"?R:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?R:Set,"%SetIteratorPrototype%":typeof Set>"u"||!it||!Z?R:Z(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?R:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":it&&Z?Z(""[Symbol.iterator]()):R,"%Symbol%":it?Symbol:R,"%SyntaxError%":ft,"%ThrowTypeError%":Gf,"%TypedArray%":Hf,"%TypeError%":ut,"%Uint8Array%":typeof Uint8Array>"u"?R:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?R:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?R:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?R:Uint32Array,"%URIError%":Rf,"%WeakMap%":typeof WeakMap>"u"?R:WeakMap,"%WeakRef%":typeof WeakRef>"u"?R:WeakRef,"%WeakSet%":typeof WeakSet>"u"?R:WeakSet,"%Function.prototype.call%":Gt,"%Function.prototype.apply%":ba,"%Object.defineProperty%":Wf,"%Object.getPrototypeOf%":Uf,"%Math.abs%":Cf,"%Math.floor%":Lf,"%Math.max%":Ff,"%Math.min%":Tf,"%Math.pow%":Nf,"%Math.round%":jf,"%Math.sign%":Df,"%Reflect.getPrototypeOf%":qf};if(Z)try{null.error}catch(r){var zf=Z(Z(r));Ye["%Error.prototype%"]=zf}var Vf=function r(e){var t;if(e==="%AsyncFunction%")t=on("async function () {}");else if(e==="%GeneratorFunction%")t=on("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=on("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=r("%AsyncGenerator%");o&&Z&&(t=Z(o.prototype))}return Ye[e]=t,t},fi={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ut=Wt(),dr=lo,Yf=Ut.call(Gt,Array.prototype.concat),Jf=Ut.call(ba,Array.prototype.splice),ci=Ut.call(Gt,String.prototype.replace),mr=Ut.call(Gt,String.prototype.slice),Xf=Ut.call(Gt,RegExp.prototype.exec),Qf=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Zf=/\\(\\)?/g,Kf=function(e){var t=mr(e,0,1),n=mr(e,-1);
2if(t==="%"&&n!=="%")throw new ft("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new ft("invalid intrinsic syntax, expected opening `%`");var o=[];return ci(e,Qf,function(i,s,a,u){o[o.length]=a?ci(u,Zf,"$1"):s||i}),o},ec=function(e,t){var n=e,o;if(dr(fi,n)&&(o=fi[n],n="%"+o[0]+"%"),dr(Ye,n)){var i=Ye[n];if(i===at&&(i=Vf(n)),typeof i>"u"&&!t)throw new ut("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new ft("intrinsic "+e+" does not exist!")},Re=function(e,t){if(typeof e!="string"||e.length===0)throw new ut("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new ut('"allowMissing" argument must be a boolean');if(Xf(/^%?[^%]*%?$/,e)===null)throw new ft("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Kf(e),o=n.length>0?n[0]:"",i=ec("%"+o+"%",t),s=i.name,a=i.value,u=!1,c=i.alias;c&&(o=c[0],Jf(n,Yf([0,1],c)));for(var h=1,l=!0;h<n.length;h+=1){var f=n[h],p=mr(f,0,1),g=mr(f,-1);if((p==='"'||p==="'"||p==="`"||g==='"'||g==="'"||g==="`")&&p!==g)throw new ft("property names with quotes must have matching quotes");if((f==="constructor"||!l)&&(u=!0),o+="."+f,s="%"+o+"%",dr(Ye,s))a=Ye[s];else if(a!=null){if(!(f in a)){if(!t)throw new ut("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ft&&h+1>=n.length){var y=Ft(a,f);l=!!y,l&&"get"in y&&!("originalValue"in y.get)?a=y.get:a=a[f]}else l=dr(a,f),a=a[f];l&&!u&&(Ye[s]=a)}}return a},tc=Re,pi=eo,rc=to(),hi=Xe,yi=ge,nc=tc("%Math.floor%"),oc=function(e,t){if(typeof e!="function")throw new yi("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||nc(t)!==t)throw new yi("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in e&&hi){var s=hi(e,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!n)&&(rc?pi(e,"length",t,!0,!0):pi(e,"length",t)),e},ic=Wt(),sc=io(),ac=ga,lc=function(){return ac(ic,sc,arguments)};(function(r){var e=oc,t=Fr,n=so,o=lc;r.exports=function(s){var a=n(arguments),u=1+s.length-(arguments.length-1);return e(a,u>0?u:0,!0)},t?t(r.exports,"apply",{value:o}):r.exports.apply=o})(ca);var yt=ca.exports,Sa=Re,_a=so,uc=_a([Sa("%String.prototype.indexOf%")]),ie=function(e,t){var n=Sa(e,!!t);return typeof n=="function"&&uc(e,".prototype.")>-1?_a([n]):n},fc=Zn,wa=Tr(),Ea=ie,ir=ro,cc=Ea("Array.prototype.push"),gi=Ea("Object.prototype.propertyIsEnumerable"),pc=wa?ir.getOwnPropertySymbols:null,xa=function(e,t){if(e==null)throw new TypeError("target must be an object");var n=ir(e);if(arguments.length===1)return n;for(var o=1;o<arguments.length;++o){var i=ir(arguments[o]),s=fc(i),a=wa&&(ir.getOwnPropertySymbols||pc);if(a)for(var u=a(i),c=0;c<u.length;++c){var h=u[c];gi(i,h)&&cc(s,h)}for(var l=0;l<s.length;++l){var f=s[l];if(gi(i,f)){var p=i[f];n[f]=p}}}return n},an=xa,hc=function(){if(!Object.assign)return!1;for(var r="abcdefghijklmnopqrst",e=r.split(""),t={},n=0;n<e.length;++n)t[e[n]]=e[n];var o=Object.assign({},t),i="";for(var s in o)i+=s;return r!==i},yc=function(){if(!Object.assign||!Object.preventExtensions)return!1;var r=Object.preventExtensions({1:2});try{Object.assign(r,"xy")}catch{return r[1]==="y"}return!1},$a=function(){return!Object.assign||hc()||yc()?an:Object.assign},gc=Qe,vc=$a,dc=function(){var e=vc();return gc(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e},mc=Qe,bc=yt,Sc=xa,Pa=$a,_c=dc,wc=bc.apply(Pa()),Aa=function(e,t){return wc(Object,arguments)};mc(Aa,{getPolyfill:Pa,implementation:Sc,shim:_c});var Ec=Aa,Ia=Re,Oa=yt,xc=Oa(Ia("String.prototype.indexOf")),Ma=function(e,t){var n=Ia(e,!!t);return typeof n=="function"&&xc(e,".prototype.")>-1?Oa(n):n},Tt=function(){return typeof(function(){}).name=="string"},Mt=Object.getOwnPropertyDescriptor;if(Mt)try{Mt([],"length")}catch{Mt=null}Tt.functionsHaveConfigurableNames=function(){if(!Tt()||!Mt)return!1;var e=Mt(function(){},"name");return!!e&&!!e.configurable};var $c=Function.prototype.bind;Tt.boundFunctionsHaveNames=function(){return Tt()&&typeof $c=="function"&&(function(){}).bind().name!==""};var Pc=Tt,vi=eo,Ac=to(),Ic=Pc.functionsHaveConfigurableNames(),Oc=ge,Mc=function(e,t){if(typeof e!="function")throw new Oc("`fn` is not a function");var n=arguments.length>2&&!!arguments[2];return(!n||Ic)&&(Ac?vi(e,"name",t,!0,!0):vi(e,"name",t)),e},kc=Mc,Bc=ge,Rc=Object,ka=kc(function(){if(this==null||this!==Rc(this))throw new Bc("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},"get flags",!0),Cc=ka,Lc=Qe.supportsDescriptors,Fc=Object.getOwnPropertyDescriptor,Ba=function(){if(Lc&&/a/mig.flags==="gim"){var e=Fc(RegExp.prototype,"flags");if(e&&typeof e.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),e.get.call(n),t==="dy")return e.get}}return Cc},Tc=Qe.supportsDescriptors,Nc=Ba,jc=Xe,Dc=Object.defineProperty,Wc=pa,di=ao,Gc=/a/,Uc=function(){if(!Tc||!di)throw new Wc("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=Nc(),t=di(Gc),n=jc(t,"flags");return(!n||n.get!==e)&&Dc(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}
vendor: 11,337 bytes, lines 2-5
2,qc=Qe,Hc=yt,zc=ka,Ra=Ba,Vc=Uc,Ca=Hc(Ra());qc(Ca,{getPolyfill:Ra,implementation:zc,shim:Vc});var Yc=Ca,sr={exports:{}},Jc=Tr,Ze=function(){return Jc()&&!!Symbol.toStringTag},Xc=Ze(),Qc=ie,Pn=Qc("Object.prototype.toString"),Nr=function(e){return Xc&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Pn(e)==="[object Arguments]"},La=function(e){return Nr(e)?!0:e!==null&&typeof e=="object"&&"length"in e&&typeof e.length=="number"&&e.length>=0&&Pn(e)!=="[object Array]"&&"callee"in e&&Pn(e.callee)==="[object Function]"},Zc=function(){return Nr(arguments)}();Nr.isLegacyArguments=La;var Fa=Zc?Nr:La;const Kc={},ep=Object.freeze(Object.defineProperty({__proto__:null,default:Kc},Symbol.toStringTag,{value:"Module"})),tp=Dl(ep);var uo=typeof Map=="function"&&Map.prototype,ln=Object.getOwnPropertyDescriptor&&uo?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,br=uo&&ln&&typeof ln.get=="function"?ln.get:null,mi=uo&&Map.prototype.forEach,fo=typeof Set=="function"&&Set.prototype,un=Object.getOwnPropertyDescriptor&&fo?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Sr=fo&&un&&typeof un.get=="function"?un.get:null,bi=fo&&Set.prototype.forEach,rp=typeof WeakMap=="function"&&WeakMap.prototype,kt=rp?WeakMap.prototype.has:null,np=typeof WeakSet=="function"&&WeakSet.prototype,Bt=np?WeakSet.prototype.has:null,op=typeof WeakRef=="function"&&WeakRef.prototype,Si=op?WeakRef.prototype.deref:null,ip=Boolean.prototype.valueOf,sp=Object.prototype.toString,ap=Function.prototype.toString,lp=String.prototype.match,co=String.prototype.slice,De=String.prototype.replace,up=String.prototype.toUpperCase,_i=String.prototype.toLowerCase,Ta=RegExp.prototype.test,wi=Array.prototype.concat,xe=Array.prototype.join,fp=Array.prototype.slice,Ei=Math.floor,An=typeof BigInt=="function"?BigInt.prototype.valueOf:null,fn=Object.getOwnPropertySymbols,In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ct=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Rt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ct||!0)?Symbol.toStringTag:null,Na=Object.prototype.propertyIsEnumerable,xi=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function $i(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||Ta.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-Ei(-r):Ei(r);if(n!==r){var o=String(n),i=co.call(e,o.length+1);return De.call(o,t,"$&_")+"."+De.call(De.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return De.call(e,t,"$&_")}var On=tp,Pi=On.custom,Ai=Wa(Pi)?Pi:null,ja={__proto__:null,double:'"',single:"'"},cp={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},jr=function r(e,t,n,o){var i=t||{};if(Me(i,"quoteStyle")&&!Me(ja,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Me(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Me(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Me(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Me(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Ua(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return a?$i(e,u):u}if(typeof e=="bigint"){var c=String(e)+"n";return a?$i(e,c):c}var h=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=h&&h>0&&typeof e=="object")return Mn(e)?"[Array]":"[Object]";var l=Op(i,n);if(typeof o>"u")o=[];else if(Ga(o,e)>=0)return"[Circular]";function f(T,X,te){if(X&&(o=fp.call(o),o.push(X)),te){var ce={depth:i.depth};return Me(i,"quoteStyle")&&(ce.quoteStyle=i.quoteStyle),r(T,ce,n+1,o)}return r(T,i,n+1,o)}if(typeof e=="function"&&!Ii(e)){var p=Sp(e),g=Kt(e,f);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(g.length>0?" { "+xe.call(g,", ")+" }":"")}if(Wa(e)){var y=ct?De.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):In.call(e);return typeof e=="object"&&!ct?Et(y):y}if(Pp(e)){for(var d="<"+_i.call(String(e.nodeName)),v=e.attributes||[],m=0;m<v.length;m++)d+=" "+v[m].name+"="+Da(pp(v[m].value),"double",i);return d+=">",e.childNodes&&e.childNodes.length&&(d+="..."),d+="</"+_i.call(String(e.nodeName))+">",d}if(Mn(e)){if(e.length===0)return"[]";var $=Kt(e,f);return l&&!Ip($)?"["+kn($,l)+"]":"[ "+xe.call($,", ")+" ]"}if(yp(e)){var b=Kt(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!Na.call(e,"cause")?"{ ["+String(e)+"] "+xe.call(wi.call("[cause]: "+f(e.cause),b),", ")+" }":b.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+xe.call(b,", ")+" }"}if(typeof e=="object"&&s){if(Ai&&typeof e[Ai]=="function"&&On)return On(e,{depth:h-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(_p(e)){var E=[];return mi&&mi.call(e,function(T,X){E.push(f(X,e,!0)+" => "+f(T,e))}),Oi("Map",br.call(e),E,l)}if(xp(e)){var w=[];return bi&&bi.call(e,function(T){w.push(f(T,e))}),Oi("Set",Sr.call(e),w,l)}if(wp(e))return cn("WeakMap");if($p(e))return cn("WeakSet");if(Ep(e))return cn("WeakRef");if(vp(e))return Et(f(Number(e)));if(mp(e))return Et(f(An.call(e)));if(dp(e))return Et(ip.call(e));if(gp(e))return Et(f(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof yr<"u"&&e===yr)return"{ [object globalThis] }";if(!hp(e)&&!Ii(e)){var A=Kt(e,f),x=xi?xi(e)===Object.prototype:e instanceof Object||e.constructor===Object,I=e instanceof Object?"":"null prototype",k=!x&&Rt&&Object(e)===e&&Rt in e?co.call(He(e),8,-1):I?"Object":"",G=x||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",F=G+(k||I?"["+xe.call(wi.call([],k||[],I||[]),": ")+"] ":"");return A.length===0?F+"{}":l?F+"{"+kn(A,l)+"}":F+"{ "+xe.call(A,", ")+" }"}return String(e)};function Da(r,e,t){var n=t.quoteStyle||e,o=ja[n];return o+r+o}function pp(r){return De.call(String(r),/"/g,""")}function Ke(r){return!Rt||!(typeof r=="object"&&(Rt in r||typeof r[Rt]<"u"))}function Mn(r){return He(r)==="[object Array]"&&Ke(r)}function hp(r){return He(r)==="[object Date]"&&Ke(r)}function Ii(r){return He(r)==="[object RegExp]"&&Ke(r)}function yp(r){return He(r)==="[object Error]"&&Ke(r)}function gp(r){return He(r)==="[object String]"&&Ke(r)}function vp(r){return He(r)==="[object Number]"&&Ke(r)}function dp(r){return He(r)==="[object Boolean]"&&Ke(r)}function Wa(r){if(ct)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!In)return!1;try{return In.call(r),!0}catch{}return!1}function mp(r){if(!r||typeof r!="object"||!An)return!1;try{return An.call(r),!0}catch{}return!1}var bp=Object.prototype.hasOwnProperty||function(r){return r in this};function Me(r,e){return bp.call(r,e)}function He(r){return sp.call(r)}function Sp(r){if(r.name)return r.name;var e=lp.call(ap.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function Ga(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function _p(r){if(!br||!r||typeof r!="object")return!1;try{br.call(r);try{Sr.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function wp(r){if(!kt||!r||typeof r!="object")return!1;try{kt.call(r,kt);try{Bt.call(r,Bt)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function Ep(r){if(!Si||!r||typeof r!="object")return!1;try{return Si.call(r),!0}catch{}return!1}function xp(r){if(!Sr||!r||typeof r!="object")return!1;try{Sr.call(r);try{br.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function $p(r){if(!Bt||!r||typeof r!="object")return!1;try{Bt.call(r,Bt);try{kt.call(r,kt)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function Pp(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function Ua(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return Ua(co.call(r,0,e.maxStringLength),e)+n}var o=cp[e.quoteStyle||"single"];o.lastIndex=0;var i=De.call(De.call(r,o,"\\$1"),/[\x00-\x1f]/g,Ap);return Da(i,"single",e)}function Ap(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+up.call(e.toString(16))}function Et(r){return"Object("+r+")"}function cn(r){return r+" { ? }"}function Oi(r,e,t,n){var o=n?kn(t,n):xe.call(t,", ");return r+" ("+e+") {"+o+"}"}function Ip(r){for(var e=0;e<r.length;e++)if(Ga(r[e],` 3`)>=0)return!1;return!0}function Op(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=xe.call(Array(r.indent+1)," ");else return null;return{base:t,prev:xe.call(Array(e+1),t)}}function kn(r,e){if(r.length===0)return"";var t=` 4`+e.prev+e.base;return t+xe.call(r,","+t)+` 5`+e.prev}function Kt(r,e){var t=Mn(r),n=[];if(t){n.length=r.length;for(var o=0;o<r.length;o++)n[o]=Me(r,o)?e(r[o],r):""}var i=typeof fn=="function"?fn(r):[],s;if(ct){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in r)Me(r,u)&&(t&&String(Number(u))===u&&u<r.length||ct&&s["$"+u]instanceof Symbol||(Ta.call(/[^\w$]/,u)?n.push(e(u,r)+": "+e(r[u],r)):n.push(u+": "+e(r[u],r))));if(typeof fn=="function")for(var c=0;c<i.length;c++)Na.call(r,i[c])&&n.push("["+e(i[c])+"]: "+e(r[i[c]],r));return n}var Mp=jr,kp=ge,Dr=function(r,e,t){for(var n=r,o;(o=n.next)!=null;n=o)if(o.key===e)return n.next=o.next,t||(o.next=r.next,r.next=o),o},Bp=function(r,e){if(r){var t=Dr(r,e);return t&&t.value}},Rp=function(r,e,t){var n=Dr(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},Cp=function(r,e){return r?!!Dr(r,e):!1},Lp=function(r,e){if(r)return Dr(r,e,!0)},Fp=function(){var e,t={assert:function(n){if(!t.has(n))throw new kp("Side channel does not contain "+Mp(n))},delete:function(n){var o=Lp(e,n);return o&&e&&!e.next&&(e=void 0),!!o},get:function(n){return Bp(e,n)},has:function(n){return Cp(e,n)},set:function(n,o){e||(e={next:void 0}),Rp(e,n,o)}};return t},Tp=Re,qt=ie,Np=jr,jp=ge,Mi=Tp("%Map%",!0),Dp=qt("Map.prototype.get",!0),Wp=qt("Map.prototype.set",!0),Gp=qt("Map.prototype.has",!0),Up=qt("Map.prototype.delete",!0),qp=qt("Map.prototype.size",!0),qa=!!Mi&&function(){var e,t={assert:function(n){if(!t.has(n))throw new jp("Side channel does not contain "+Np(n))},delete:function(n){if(e){var o=Up(e,n);return qp(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return Dp(e,n)},has:function(n){return e?Gp(e,n):!1},set:function(n,o){e||(e=new Mi),Wp(e,n,o)}};return t},Hp=Re,Wr=ie,zp=jr,er=qa,Vp=ge,st=Hp("%WeakMap%",!0),Yp=Wr("WeakMap.prototype.get",!0),Jp=Wr("WeakMap.prototype.set",!0),Xp=Wr("WeakMap.prototype.has",!0),Qp=Wr("WeakMap.prototype.delete",!0),Zp=st?function(){var e,t,n={assert:function(o){if
5(!n.has(o))throw new Vp("Side channel does not contain "+zp(o))},delete:function(o){if(st&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Qp(e,o)}else if(er&&t)return t.delete(o);return!1},get:function(o){return st&&o&&(typeof o=="object"||typeof o=="function")&&e?Yp(e,o):t&&t.get(o)},has:function(o){return st&&o&&(typeof o=="object"||typeof o=="function")&&e?Xp(e,o):!!t&&t.has(o)},set:function(o,i){st&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new st),Jp(e,o,i)):er&&(t||(t=er()),t.set(o,i))}};return n}:er,Kp=ge,eh=jr,th=Fp,rh=qa,nh=Zp,oh=nh||rh||th,Ha=function(){var e,t={assert:function(n){if(!t.has(n)){var o=n&&Object(n)===n?"the given object key":eh(n);throw new Kp("Side channel does not contain "+o)}},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,o){e||(e=oh()),e.set(n,o)}};return t},ih=lo,xt=Ha(),Oe=ge,po={assert:function(r,e){if(!r||typeof r!="object"&&typeof r!="function")throw new Oe("`O` is not an object");if(typeof e!="string")throw new Oe("`slot` must be a string");if(xt.assert(r),!po.has(r,e))throw new Oe("`"+e+"` is not present on `O`")},get:function(r,e){if(!r||typeof r!="object"&&typeof r!="function")throw new Oe("`O` is not an object");if(typeof e!="string")throw new Oe("`slot` must be a string");var t=xt.get(r);return t&&t["$"+e]},has:function(r,e){if(!r||typeof r!="object"&&typeof r!="function")throw new Oe("`O` is not an object");if(typeof e!="string")throw new Oe("`slot` must be a string");var t=xt.get(r);return!!t&&ih(t,"$"+e)},set:function(r,e,t){if(!r||typeof r!="object"&&typeof r!="function")throw new Oe("`O` is not an object");if(typeof e!="string")throw new Oe("`slot` must be a string");var n=xt.get(r);n||(n={},xt.set(r,n)),n["$"+e]=t}};Object.freeze&&Object.freeze(po);var sh=po,$t=sh,ah=Kn,ki=typeof StopIteration=="object"?StopIteration:null,lh=function(e){if(!ki)throw new ah("this environment lacks StopIteration");$t.set(e,"[[Done]]",!1);var t={next:function(){var o=$t.get(this,"[[Iterator]]"),i=!!$t.get(o,"[[Done]]");try{return{done:i,value:i?void 0:o.next()}}catch(s){if($t.set(o,"[[Done]]",!0),s!==ki)throw s;return{done:!0,value:void 0}}}};return $t.set(t,"[[Iterator]]",e),t},uh={}.toString,za=Array.isArray||function(r){return uh.call(r)=="[object Array]"},Va=ie,fh=Va("String.prototype.valueOf"),ch=function(e){try{return fh(e),!0}catch{return!1}},ph=Va("Object.prototype.toString"),hh="[object String]",yh=Ze(),Ya=function(e){return typeof e=="string"?!0:!e||typeof e!="object"?!1:yh?ch(e):ph(e)===hh},ho=typeof Map=="function"&&Map.prototype?Map:null,gh=typeof Set=="function"&&Set.prototype?Set:null,_r;ho||(_r=function(e){return!1});var Ja=ho?Map.prototype.has:null,Bi=gh?Set.prototype.has:null;!_r&&!Ja&&(_r=function(e){return!1});var Xa=_r||function(e){if(!e||typeof e!="object")return!1;try{if(Ja.call(e),Bi)try{Bi.call(e)}catch{return!0}return e instanceof ho}catch{}return!1},vh=typeof Map=="function"&&Map.prototype?Map:null,yo=typeof Set=="function"&&Set.prototype?Set:null,wr;yo||(wr=function(e){return!1});var Ri=vh?Map.prototype.has:null,Qa=yo?Set.prototype.has:null;!wr&&!Qa&&(wr=function(e){return!1});var Za=wr||function(e){if(!e||typeof e!="object")return!1;try{if(Qa.call(e),Ri)try{Ri.call(e)}catch{return!0}return e instanceof yo}catch{}return!1},Ci=Fa,Li=lh;if(no()||Tr()){var pn=Symbol.iterator;sr.exports=function(e){if(e!=null&&typeof e[pn]<"u")return e[pn]();if(Ci(e))return Array.prototype[pn].call(e)}}else{var dh=za,mh=Ya,Fi=Re,bh=Fi("%Map%",!0),Sh=Fi("%Set%",!0),ve=Ma,Ti=ve("Array.prototype.push"),Ni=ve("String.prototype.charCodeAt"),_h=ve("String.prototype.slice"),wh=function(e,t){var n=e.length;if(t+1>=n)return t+1;var o=Ni(e,t);if(o<55296||o>56319)return t+1;var i=Ni(e,t+1);return i<56320||i>57343?t+1:t+2},hn=function(e){var t=0;return{next:function(){var o=t>=e.length,i;return o||(i=e[t],t+=1),{done:o,value:i}}}},ji=function(e,t){if(dh(e)||Ci(e))return hn(e);if(mh(e)){var n=0;return{next:function(){var i=wh(e,n),s=_h(e,n,i);return n=i,{done:i>e.length,value:s}}}}if(t&&typeof e["_es6-shim iterator_"]<"u")return e["_es6-shim iterator_"]()};if(!bh&&!Sh)sr.exports=function(e){if(e!=null)return ji(e,!0)};else{var Eh=Xa,xh=Za,Di=ve("Map.prototype.forEach",!0),Wi=ve("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var Gi=ve("Map.prototype.iterator",!0),Ui=ve("Set.prototype.iterator",!0);var qi=ve("Map.prototype.@@iterator",!0)||ve("Map.prototype._es6-shim iterator_",!0),Hi=ve("Set.prototype.@@iterator",!0)||ve("Set.prototype._es6-shim iterator_",!0),$h=function(e){if(Eh(e)){if(Gi)return Li(Gi(e));if(qi)return qi(e);if(Di){var t=[];return Di(e,function(o,i){Ti(t,[i,o])}),hn(t)}}if(xh(e)){if(Ui)return Li(Ui(e));if(Hi)return Hi(e);if(Wi){var n=[];return Wi(e,function(o){Ti(n,o)}),hn(n)}}};sr.exports=function(e){return $h(e)||ji(e)}}}var Ph=sr.exports,zi=function(r){return r!==r},Ka=function(e,t){return e===0&&t===0?1/e===1/t:!!(e===t||zi(e)&&zi(t))},Ah=Ka,el=function(){return typeof Object.is=="function"?Object.is:Ah},Ih=el,Oh=Qe,Mh=function(){var e=Ih();return Oh(Object,{is:e},{is:function(){return Object.is!==e}}),e},kh=Qe,Bh=yt,Rh=Ka,tl=el,Ch=Mh,rl=Bh(tl(),Object);kh(rl,{getPolyfill:tl,implementation:Rh,shim:Ch});var Lh=rl,Fh=yt,nl=ie,Th=Re,Bn=Th("%ArrayBuffer%",!0),ar=nl("ArrayBuffer.prototype.byteLength",!0),Nh=nl("Object.prototype.toString"),Vi=!!Bn&&!ar&&new Bn(0).slice,Yi=!!Vi&&Fh(Vi),ol=ar||Yi?function(e){if(!e||typeof e!="object")return!1;try{return ar?ar(e):Yi(e,0),!0}catch{return!1}}:Bn?function(e){return Nh(e)==="[object ArrayBuffer]"}:function(e){return!1},il=ie,jh=il("Date.prototype.getDay"),Dh=function(e){try{return jh(e),!0}catch{return!1}},Wh=il("Object.prototype.toString"),Gh="[object Date]",Uh=Ze(),qh=function(e){return typeof e!="object"||e===null?!1:Uh?Dh(e):Wh(e)===Gh},Ji=ie,Hh=Ze(),zh=lo,Vh=Xe,Rn;if(Hh){var Yh=Ji("RegExp.prototype.exec"),Xi={},yn=function(){throw Xi}
5,Qi={toString:yn,valueOf:yn};typeof Symbol.toPrimitive=="symbol"&&(Qi[Symbol.toPrimitive]=yn),Rn=function(e){if(!e||typeof e!="object")return!1;var t=Vh(e,"lastIndex"),n=t&&zh(t,"value");if(!n)return!1;try{Yh(e,Qi)}catch(o){return o===Xi}}}else{var Jh=Ji("Object.prototype.toString"),Xh="[object RegExp]";Rn=function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:Jh(e)===Xh}}var sl=Rn,Qh=ie,Zi=Qh("SharedArrayBuffer.prototype.byteLength",!0),Zh=Zi?function(e){if(!e||typeof e!="object")return!1;try{return Zi(e),!0}catch{return!1}}:function(e){return!1},al=ie,Kh=al("Number.prototype.toString"),ey=function(e){try{return Kh(e),!0}catch{return!1}},ty=al("Object.prototype.toString"),ry="[object Number]",ny=Ze(),oy=function(e){return typeof e=="number"?!0:!e||typeof e!="object"?!1:ny?ey(e):ty(e)===ry},ll=ie,iy=ll("Boolean.prototype.toString"),sy=ll("Object.prototype.toString"),ay=function(e){try{return iy(e),!0}catch{return!1}},ly="[object Boolean]",uy=Ze(),fy=function(e){return typeof e=="boolean"?!0:e===null||typeof e!="object"?!1:uy?ay(e):sy(e)===ly},Cn={exports:{}},gn,Ki;function cy(){if(Ki)return gn;Ki=1;var r=ie,e=sl,t=r("RegExp.prototype.exec"),n=ge;return gn=function(i){if(!e(i))throw new n("`regex` must be a RegExp");return function(a){return t(i,a)!==null}},gn}var ul=ie,py=ul("Object.prototype.toString"),hy=no(),yy=cy();if(hy){var gy=ul("Symbol.prototype.toString"),vy=yy(/^Symbol\(.*\)$/),dy=function(e){return typeof e.valueOf()!="symbol"?!1:vy(gy(e))};Cn.exports=function(e){if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||py(e)!=="[object Symbol]")return!1;try{return dy(e)}catch{return!1}}}else Cn.exports=function(e){return!1};var my=Cn.exports,Ln={exports:{}},es=typeof BigInt<"u"&&BigInt,by=function(){return typeof es=="function"&&typeof BigInt=="function"&&typeof es(42)=="bigint"&&typeof BigInt(42)=="bigint"},Sy=by();if(Sy){var _y=BigInt.prototype.valueOf,wy=function(e){try{return _y.call(e),!0}catch{}return!1};Ln.exports=function(e){return e===null||typeof e>"u"||typeof e=="boolean"||typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="function"?!1:typeof e=="bigint"?!0:wy(e)}}else Ln.exports=function(e){return!1};var Ey=Ln.exports,xy=Ya,$y=oy,Py=fy,Ay=my,Iy=Ey,Oy=function(e){if(e==null||typeof e!="object"&&typeof e!="function")return null;if(xy(e))return"String";if($y(e))return"Number";if(Py(e))return"Boolean";if(Ay(e))return"Symbol";if(Iy(e))return"BigInt"},Er=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,ts=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,xr;Er||(xr=function(e){return!1});var Fn=Er?Er.prototype.has:null,vn=ts?ts.prototype.has:null;!xr&&!Fn&&(xr=function(e){return!1});var My=xr||function(e){if(!e||typeof e!="object")return!1;try{if(Fn.call(e,Fn),vn)try{vn.call(e,vn)}catch{return!0}return e instanceof Er}catch{}return!1}
5,Tn={exports:{}},ky=Re,fl=ie,By=ky("%WeakSet%",!0),dn=fl("WeakSet.prototype.has",!0);if(dn){var mn=fl("WeakMap.prototype.has",!0);Tn.exports=function(e){if(!e||typeof e!="object")return!1;try{if(dn(e,dn),mn)try{mn(e,mn)}catch{return!0}return e instanceof By}catch{}return!1}}else Tn.exports=function(e){return!1};var Ry=Tn.exports,Cy=Xa,Ly=Za,Fy=My,Ty=Ry,Ny=function(e){if(e&&typeof e=="object"){if(Cy(e))return"Map";if(Ly(e))return"Set";if(Fy(e))return"WeakMap";if(Ty(e))return"WeakSet"}return!1},cl=Function.prototype.toString,lt=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Nn,lr;if(typeof lt=="function"&&typeof Object.defineProperty=="function")try{Nn=Object.defineProperty({},"length",{get:function(){throw lr}}),lr={},lt(function(){throw 42},null,Nn)}catch(r){r!==lr&&(lt=null)}else lt=null;var jy=/^\s*class\b/,jn=function(e){try{var t=cl.call(e);return jy.test(t)}catch{return!1}},bn=function(e){try{return jn(e)?!1:(cl.call(e),!0)}catch{return!1}},ur=Object.prototype.toString,Dy="[object Object]",Wy="[object Function]",Gy="[object GeneratorFunction]",Uy="[object HTMLAllCollection]",qy="[object HTML document.all class]",Hy="[object HTMLCollection]",zy=typeof Symbol=="function"&&!!Symbol.toStringTag,Vy=!(0 in[,]),Dn=function(){return!1};if(typeof document=="object"){var Yy=document.all;ur.call(Yy)===ur.call(document.all)&&(Dn=function(e){if((Vy||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=ur.call(e);return(t===Uy||t===qy||t===Hy||t===Dy)&&e("")==null}catch{}return!1})}var Jy=lt?function(e){if(Dn(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{lt(e,null,Nn)}catch(t){if(t!==lr)return!1}return!jn(e)&&bn(e)}:function(e){if(Dn(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(zy)return bn(e);if(jn(e))return!1;var t=ur.call(e);return t!==Wy&&t!==Gy&&!/^\[object HTML/.test(t)?!1:bn(e)},Xy=Jy,Qy=Object.prototype.toString,pl=Object.prototype.hasOwnProperty,Zy=function(e,t,n){for(var o=0,i=e.length;o<i;o++)pl.call(e,o)&&(n==null?t(e[o],o,e):t.call(n,e[o],o,e))},Ky=function(e,t,n){for(var o=0,i=e.length;o<i;o++)n==null?t(e.charAt(o),o,e):t.call(n,e.charAt(o),o,e)},eg=function(e,t,n){for(var o in e)pl.call(e,o)&&(n==null?t(e[o],o,e):t.call(n,e[o],o,e))};function tg(r){return Qy.call(r)==="[object Array]"}var rg=function(e,t,n){if(!Xy(t))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=n),tg(e)?Zy(e,t,o):typeof e=="string"?Ky(e,t,o):eg(e,t,o)},ng=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],Sn=ng,og=typeof globalThis>"u"?yr:globalThis,ig=function(){for(var e=[],t=0;t<Sn.length;t++)typeof og[Sn[t]]=="function"&&(e[e.length]=Sn[t]);return e},$r=rg,sg=ig,rs=yt,go=ie,fr=Xe,tr=ao,ag=go("Object.prototype.toString"),hl=Ze(),ns=typeof globalThis>"u"?yr:globalThis,Wn=sg(),vo=go("String.prototype.slice"),lg=go("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},Pr={__proto__:null};hl&&fr&&tr?$r(Wn,function(r){var e=new ns[r];if(Symbol.toStringTag in e&&tr){var t=tr(e),n=fr(t,Symbol.toStringTag);if(!n&&t){var o=tr(t);n=fr(o,Symbol.toStringTag)}if(n&&n.get){var i=rs(n.get);Pr["$"+r]=i}}}):$r(Wn,function(r){var e=new ns[r],t=e.slice||e.set;if(t){var n=rs(t);Pr["$"+r]=n}});function ug(r){var e=!1;return $r(Pr,function(t,n){if(!e)try{"$"+t(r)===n&&(e=vo(n,1))}catch{}}),e}function fg(r){var e=!1;return $r(Pr,function(t,n){if(!e)try{t(r),e=vo(n,1)}catch{}}),e}function cg(r){return lg(Wn,r)>-1}var pg=function(e){if(!e||typeof e!="object")return!1;if(!hl){var t=vo(ag(e),8,-1);return cg(t)?t:t!=="Object"?!1:fg(e)}return fr?ug(e):null},hg=ie,os=hg("ArrayBuffer.prototype.byteLength",!0),yg=ol,gg=function(e){return yg(e)?os?os(e):e.byteLength:NaN},yl=Ec,Ae=Ma,is=Yc,vg=Re,pt=Ph,dg=Ha,ss=Lh,as=Fa,ls=za,us=ol,fs=qh,cs=sl,ps=Zh,hs=Zn,ys=Oy,gs=Ny,vs=pg,ds=gg,ms=Ae("SharedArrayBuffer.prototype.byteLength",!0),bs=Ae("Date.prototype.getTime"),_n=Object.getPrototypeOf,Ss=Ae("Object.prototype.toString"),Ar=vg("%Set%",!0),Gn=Ae("Map.prototype.has",!0),Ir=Ae("Map.prototype.get",!0),_s=Ae
5("Map.prototype.size",!0),Or=Ae("Set.prototype.add",!0),gl=Ae("Set.prototype.delete",!0),Mr=Ae("Set.prototype.has",!0),cr=Ae("Set.prototype.size",!0);function ws(r,e,t,n){for(var o=pt(r),i;(i=o.next())&&!i.done;)if(be(e,i.value,t,n))return gl(r,i.value),!0;return!1}function vl(r){if(typeof r>"u")return null;if(typeof r!="object")return typeof r=="symbol"?!1:typeof r=="string"||typeof r=="number"?+r==+r:!0}function mg(r,e,t,n,o,i){var s=vl(t);if(s!=null)return s;var a=Ir(e,s),u=yl({},o,{strict:!1});return typeof a>"u"&&!Gn(e,s)||!be(n,a,u,i)?!1:!Gn(r,s)&&be(n,a,u,i)}function bg(r,e,t){var n=vl(t);return n??(Mr(e,n)&&!Mr(r,n))}function Es(r,e,t,n,o,i){for(var s=pt(r),a,u;(a=s.next())&&!a.done;)if(u=a.value,be(t,u,o,i)&&be(n,Ir(e,u),o,i))return gl(r,u),!0;return!1}function be(r,e,t,n){var o=t||{};if(o.strict?ss(r,e):r===e)return!0;var i=ys(r),s=ys(e);if(i!==s)return!1;if(!r||!e||typeof r!="object"&&typeof e!="object")return o.strict?ss(r,e):r==e;var a=n.has(r),u=n.has(e),c;if(a&&u){if(n.get(r)===n.get(e))return!0}else c={};return a||n.set(r,c),u||n.set(e,c),wg(r,e,o,n)}function xs(r){return!r||typeof r!="object"||typeof r.length!="number"||typeof r.copy!="function"||typeof r.slice!="function"||r.length>0&&typeof r[0]!="number"?!1:!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))}function Sg(r,e,t,n){if(cr(r)!==cr(e))return!1;for(var o=pt(r),i=pt(e),s,a,u;(s=o.next())&&!s.done;)if(s.value&&typeof s.value=="object")u||(u=new Ar),Or(u,s.value);else if(!Mr(e,s.value)){if(t.strict||!bg(r,e,s.value))return!1;u||(u=new Ar),Or(u,s.value)}if(u){for(;(a=i.next())&&!a.done;)if(a.value&&typeof a.value=="object"){if(!ws(u,a.value,t.strict,n))return!1}else if(!t.strict&&!Mr(r,a.value)&&!ws(u,a.value,t.strict,n))return!1;return cr(u)===0}return!0}function _g(r,e,t,n){if(_s(r)!==_s(e))return!1;for(var o=pt(r),i=pt(e),s,a,u,c,h,l;(s=o.next())&&!s.done;)if(c=s.value[0],h=s.value[1],c&&typeof c=="object")u||(u=new Ar),Or(u,c);else if(l=Ir(e,c),typeof l>"u"&&!Gn(e,c)||!be(h,l,t,n)){if(t.strict||!mg(r,e,c,h,t,n))return!1;u||(u=new Ar),Or(u,c)}if(u){for(;(a=i.next())&&!a.done;)if(c=a.value[0],l=a.value[1],c&&typeof c=="object"){if(!Es(u,r,c,l,t,n))return!1}else if(!t.strict&&(!r.has(c)||!be(Ir(r,c),l,t,n))&&!Es(u,r,c,l,yl({},t,{strict:!1}),n))return!1;return cr(u)===0}return!0}function wg(r,e,t,n){var o,i;if(typeof r!=typeof e||r==null||e==null||Ss(r)!==Ss(e)||as(r)!==as(e))return!1;var s=ls(r),a=ls(e);if(s!==a)return!1;var u=r instanceof Error,c=e instanceof Error;if(u!==c||(u||c)&&(r.name!==e.name||r.message!==e.message))return!1;var h=cs(r),l=cs(e);if(h!==l||(h||l)&&(r.source!==e.source||is(r)!==is(e)))return!1;var f=fs(r),p=fs(e);if(f!==p||(f||p)&&bs(r)!==bs(e)||t.strict&&_n&&_n(r)!==_n(e))return!1;var g=vs(r),y=vs(e);if(g!==y)return!1;if(g||y){if(r.length!==e.length)return!1;for(o=0;o<r.length;o++)if(r[o]!==e[o])return!1;return!0}var d=xs(r),v=xs(e);if(d!==v)return!1;if(d||v){if(r.length!==e.length)return!1;for(o=0;o<r.length;o++)if(r[o]!==e[o])return!1;return!0}var m=us(r),$=us(e);if(m!==$)return!1;if(m||$)return ds(r)!==ds(e)?!1:typeof Uint8Array=="function"&&be(new Uint8Array(r),new Uint8Array(e),t,n);var b=ps(r),E=ps(e);if(b!==E)return!1;if(b||E)return ms(r)!==ms(e)?!1:typeof Uint8Array=="function"&&be(new Uint8Array(r),new Uint8Array(e),t,n);if(typeof r!=typeof e)return!1;var w=hs(r),A=hs(e);if(w.length!==A.length)return!1;for(w.sort(),A.sort(),o=w.length-1;o>=0;o--)if(w[o]!=A[o])return!1;for(o=w.length-1;o>=0;o--)if(i=w[o],!be(r[i],e[i],t,n))return!1;var x=gs(r),I=gs(e);return x!==I?!1:x==="Set"||I==="Set"?Sg(r,e,t,n):x==="Map"?_g(r,e,t,n):!0}var Eg=function(e,t,n){return be(e,t,n,dg())};const xg=Wl(Eg);var $g=Object.defineProperty,U=(r,e)=>$g(r,"name",{value:e,configurable:!0}),Pg=class{constructor(e){this.direction=!1,this.compareProperties=!0;var t,n,o;this.precision=10**-((t=e==null?void 0:e.precision)!=null?t:17),this.direction=(n=e==null?void 0:e.direction)!=null?n:!1,this.compareProperties=(o=e==null?void 0:e.compareProperties)!=null?o:!0}compare(e,t){if(e.type!==t.type||!It(e,t))return!1;switch(e.type){case"Point":return this.compareCoord(e.coordinates,t.coordinates);
5case"LineString":return this.compareLine(e.coordinates,t.coordinates);case"Polygon":return this.comparePolygon(e,t);case"GeometryCollection":return this.compareGeometryCollection(e,t);case"Feature":return this.compareFeature(e,t);case"FeatureCollection":return this.compareFeatureCollection(e,t);default:if(e.type.startsWith("Multi")){const n=Un(e),o=Un(t);return n.every(i=>o.some(s=>this.compare(i,s)))}}return!1}compareCoord(e,t){return e.length===t.length&&e.every((n,o)=>Math.abs(n-t[o])<this.precision)}compareLine(e,t,n=0,o=!1){if(!It(e,t))return!1;const i=e;let s=t;if(o&&!this.compareCoord(i[0],s[0])){const u=this.fixStartIndex(s,i);if(u)s=u;else return!1}const a=this.compareCoord(i[n],s[n]);return this.direction||a?this.comparePath(i,s):this.compareCoord(i[n],s[s.length-(1+n)])?this.comparePath(i.slice().reverse(),s):!1}fixStartIndex(e,t){let n,o=-1;for(let i=0;i<e.length;i++)if(this.compareCoord(e[i],t[0])){o=i;break}return o>=0&&(n=[].concat(e.slice(o,e.length),e.slice(1,o+1))),n}comparePath(e,t){return e.every((n,o)=>this.compareCoord(n,t[o]))}comparePolygon(e,t){if(this.compareLine(e.coordinates[0],t.coordinates[0],1,!0)){const n=e.coordinates.slice(1,e.coordinates.length),o=t.coordinates.slice(1,t.coordinates.length);return n.every(i=>o.some(s=>this.compareLine(i,s,1,!0)))}return!1}compareGeometryCollection(e,t){return It(e.geometries,t.geometries)&&this.compareBBox(e,t)&&e.geometries.every((n,o)=>this.compare(n,t.geometries[o]))}compareFeature(e,t){return e.id===t.id&&(this.compareProperties?xg(e.properties,t.properties):!0)&&this.compareBBox(e,t)&&this.compare(e.geometry,t.geometry)}compareFeatureCollection(e,t){return It(e.features,t.features)&&this.compareBBox(e,t)&&e.features.every((n,o)=>this.compare(n,t.features[o]))}compareBBox(e,t){return!e.bbox&&!t.bbox||(e.bbox&&t.bbox?this.compareCoord(e.bbox,t.bbox):!1)}};U(Pg,"GeojsonEquality");function It(r,e){return r.coordinates?r.coordinates.length===e.coordinates.length:r.length===e.length}U(It,"sameLength");function Un(r){return r.coordinates.map(e=>({type:r.type.replace("Multi",""),coordinates:e}))}U(Un,"explode");var fe=63710088e-1,dl={centimeters:fe*100,centimetres:fe*100,degrees:360/(2*Math.PI),feet:fe*3.28084,inches:fe*39.37,kilometers:fe/1e3,kilometres:fe/1e3,meters:fe,metres:fe,miles:fe/1609.344,millimeters:fe*1e3,millimetres:fe*1e3,nauticalmiles:fe/1852,radians:1,yards:fe*1.0936},$s={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,nauticalmiles:29155334959812285e-23,millimeters:1e6,millimetres:1e6,yards:1.195990046};function $e(r,e,t={}){const n={type:"Feature"};return(t.id===0||t.id)&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.properties=e||{},n.geometry=r,n}U($e,"feature");function Ag(r,e,t={}){switch(r){case"Point":return mo(e).geometry;case"LineString":return bo(e).geometry;case"Polygon":return Gr(e).geometry;case"MultiPoint":return bl(e).geometry;case"MultiLineString":return ml(e).geometry;case"MultiPolygon":return So(e).geometry;default:throw new Error(r+" is invalid")}}U(Ag,"geometry");function mo(r,e,t={}){if(!r)throw new Error("coordinates is required");if(!Array.isArray(r))throw new Error("coordinates must be an Array");if(r.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!kr(r[0])||!kr(r[1]))throw new Error("coordinates must contain numbers");return $e({type:"Point",coordinates:r},e,t)}U(mo,"point");function Ig(r,e,t={}){return ht(r.map(n=>mo(n,e)),t)}U(Ig,"points");function Gr(r,e,t={}){for(const o of r){if(o.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");if(o[o.length-1].length!==o[0].length)throw new Error("First and last Position are not equivalent.");for(let i=0;i<o[o.length-1].length;i++)if(o[o.length-1][i]!==o[0][i])throw new Error("First and last Position are not equivalent.")}return $e({type:"Polygon",coordinates:r},e,t)}U(Gr,"polygon");function Og(r,e,t={}){return ht(r.map(n=>Gr(n,e)),t)}U(Og,"polygons");function bo(r,e,t={}){if(r.length<2)throw new Error("coordinates must be an array of two or more positions");return $e({type:"LineString",coordinates:r},e,t)}U(bo,"lineString");function Mg(r,e,t={}){return ht(r.map(n=>bo(n,e)),t)}U(Mg,"lineStrings");function ht(r,e={}){const t={type:"FeatureCollection"};return e.id&&(t.id=e.id),e.bbox&&(t.bbox=e.bbox),t.features=r,t}U(ht,"featureCollection");function ml(r,e,t={}){return $e({type:"MultiLineString",coordinates:r},e,t)}U(ml,"multiLineString");function bl(r,e,t={}){return $e({type:"MultiPoint",coordinates:r},e,t)}U(bl,"multiPoint");function So(r,e,t={}){return $e({type:"MultiPolygon",coordinates:r},e,t)}U(So,"multiPolygon");function kg(r,e,t={}){return $e({type:"GeometryCollection",geometries:r},e,t)}U(kg,"geometryCollection");function Bg(r,e=0){if(e&&!(e>=0))throw new Error("precision must be a positive number");const t=Math.pow(10,e||0);return Math.round(r*t)/t}U(Bg,"round");function Sl(r,e="kilometers"){const t=dl[e];
5if(!t)throw new Error(e+" units is invalid");return r*t}U(Sl,"radiansToLength");function _o(r,e="kilometers"){const t=dl[e];if(!t)throw new Error(e+" units is invalid");return r/t}U(_o,"lengthToRadians");function Rg(r,e){return _l(_o(r,e))}U(Rg,"lengthToDegrees");function Cg(r){let e=r%360;return e<0&&(e+=360),e}U(Cg,"bearingToAzimuth");function _l(r){return r%(2*Math.PI)*180/Math.PI}U(_l,"radiansToDegrees");function Lg(r){return r%360*Math.PI/180}U(Lg,"degreesToRadians");function Fg(r,e="kilometers",t="kilometers"){if(!(r>=0))throw new Error("length must be a positive number");return Sl(_o(r,e),t)}U(Fg,"convertLength");function Tg(r,e="meters",t="kilometers"){if(!(r>=0))throw new Error("area must be a positive number");const n=$s[e];if(!n)throw new Error("invalid original units");const o=$s[t];if(!o)throw new Error("invalid final units");return r/n*o}U(Tg,"convertArea");function kr(r){return!isNaN(r)&&r!==null&&!Array.isArray(r)}U(kr,"isNumber");function Ng(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}U(Ng,"isObject");function jg(r){if(!r)throw new Error("bbox is required");if(!Array.isArray(r))throw new Error("bbox must be an Array");if(r.length!==4&&r.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");r.forEach(e=>{if(!kr(e))throw new Error("bbox must only contain numbers")})}U(jg,"validateBBox");function Dg(r){if(!r)throw new Error("id is required");if(["string","number"].indexOf(typeof r)===-1)throw new Error("id must be a number or a string")}U(Dg,"validateId");class qe{constructor(e,t){this.next=null,this.key=e,this.data=t,this.left=null,this.right=null}}function Wg(r,e){return r>e?1:r<e?-1:0}function Ne(r,e,t){const n=new qe(null,null);let o=n,i=n;for(;;){const s=t(r,e.key);if(s<0){if(e.left===null)break;if(t(r,e.left.key)<0){const a=e.left;if(e.left=a.right,a.right=e,e=a,e.left===null)break}i.left=e,i=e,e=e.left}else if(s>0){if(e.right===null)break;if(t(r,e.right.key)>0){const a=e.right;if(e.right=a.left,a.left=e,e=a,e.right===null)break}o.right=e,o=e,e=e.right}else break}return o.right=e.left,i.left=e.right,e.left=n.right,e.right=n.left,e}function wn(r,e,t,n){const o=new qe(r,e);if(t===null)return o.left=o.right=null,o;t=Ne(r,t,n);const i=n(r,t.key);return i<0?(o.left=t.left,o.right=t,t.left=null):i>=0&&(o.right=t.right,o.left=t,t.right=null),o}function Ps(r,e,t){let n=null,o=null;if(e){e=Ne(r,e,t);const i=t(e.key,r);i===0?(n=e.left,o=e.right):i<0?(o=e.right,e.right=null,n=e):(n=e.left,e.left=null,o=e)}return{left:n,right:o}}function Gg(r,e,t){return e===null?r:(r===null||(e=Ne(r.key,e,t),e.left=r),e)}function qn(r,e,t,n,o){if(r){n(`${e}${t?"âââ ":"âââ "}${o(r)} 6`);const i=e+(t?" ":"â ");r.left&&qn(r.left,i,!1,n,o),r.right&&qn(r.right,i,!0,n,o)}}class wo{constructor(e=Wg){this._root=null,this._size=0,this._comparator=e}insert(e,t){return this._size++,this._root=wn(e,t,this._root,this._comparator)}add(e,t){const n=new qe(e,t);this._root===null&&(n.left=n.right=null,this._size++,this._root=n);const o=this._comparator,i=Ne(e,this._root,o),s=o(e,i.key);return s===0?this._root=i:(s<0?(n.left=i.left,n.right=i,i.left=null):s>0&&(n.right=i.right,n.left=i,i.right=null),this._size++,this._root=n),this._root}remove(e){this._root=this._remove(e,this._root,this._comparator)}_remove(e,t,n){let o;return t===null?null:(t=Ne(e,t,n),n(e,t.key)===0?(t.left===null?o=t.right:(o=Ne(e,t.left,n),o.right=t.right),this._size--,o):t)}pop(){let e=this._root;if(e){for(;e.left;)e=e.left;return this._root=Ne(e.key,this._root,this._comparator),this._root=this._remove(e.key,this._root,this._comparator),{key:e.key,data:e.data}}return null}findStatic(e){let t=this._root;const n=this._comparator;for(;t;){const o=n(e,t.key);if(o===0)return t;o<0?t=t.left:t=t.right}return null}find(e){return this._root&&(this._root=Ne(e,this._root,this._comparator),this._comparator(e,this._root.key)!==0)?null:this._root}contains(e){let t=this._root;const n=this._comparator;for(;t;){const o=n(e,t.key);if(o===0)return!0;o<0?t=t.left:t=t.right}return!1}forEach(e,t){let n=this._root;const o=[];let i=!1;for(;!i;)n!==null?(o.push(n),n=n.left):o.length!==0?(n=o.pop(),e.call(t,n),n=n.right):i=!0;return this}range(e,t,n,o){const i=[],s=this._comparator;let a=this._root,u;for(;i.length!==0||a;)if(a)i.push(a),a=a.left;else{if(a=i.pop(),u=s(a.key,t),u>0)break;if(s(a.key,e)>=0&&n.call(o,a))return this;a=a.right}return this}keys(){const e=[];return this.forEach(({key:t})=>{e.push(t)}),e}values(){const e=[];return this.forEach(({data:t})=>{e.push(t)}),e}min(){return this._root?this.minNode(this._root).key:null}max(){return this._root?this.maxNode(this._root).key:null}minNode(e=this._root){if(e)for(;e.left;)e=e.left;return e}maxNode(e=this._root){if(e)for(;e.right;)e=e.right;return e}at(e){let t=this._root,n=!1,o=0;const i=[];for(;!n;)if(t)i.push(t),t=t.left;else if(i.length>0){if(t=i.pop(),o===e)return t;o++,t=t.right}else n=!0;return null}next(e){let t=this._root,n=null;if(e.right){for(n=e.right;n.left;)n=n.left;return n}const o=this._comparator;for(;t;){const i=o(e.key,t.key);if(i===0)break;i<0?(n=t,t=t.left):t=t.right}return n}prev(e){let t=this._root,n=null;if(e.left!==null){for(n=e.left;n.right;)n=n.right;return n}const o=this._comparator;for(;t;){const i=o(e.key,t.key);if(i===0)break;i<0?t=t.left:(n=t,t=t.right)}return n}clear(){return this._root=null,this._size=0,this}toList(){return qg(this._root)}load(e,t=[],n=!1){let o=e.length;const i=this._comparator;if(n&&Vn(e,t,0,o-1,i),this._root===null)this._root=Hn(e,t,0,o),this._size=o;else{const s=Hg(this.toList(),Ug(e,t),i);o=this._size+o,this._root=zn({head:s},0,o)}return this}isEmpty(){return this._root===null}get size(){return this._size}get root(){return this._root}toString(e=t=>String(t.key)){const t=[];return qn(this._root,"",!0,n=>t.push(n),e),t.join("")}update(e,t,n){const o=this._comparator;let{left:i,right:s}=Ps(e,this._root,o);o(e,t)<0?s=wn(t,n,s,o):i=wn(t,n,i,o),this._root=Gg(i,s,o)}split(e){return Ps(e,this._root,this._comparator)}*[Symbol.iterator](){let e=this._root;const t=[];let n=!1;for(;!n;)e!==null?(t.push(e),e=e.left):t.length!==0?(e=t.pop(),yield e,e=e.right):n=!0}}function Hn(r,e,t,n){const o=n-t;if(o>0){const i=t+Math.floor(o/2),s=r[i],a=e[i],u=new qe(s,a);return u.left=Hn(r,e,t,i),u.right=Hn(r,e,i+1,n),u}return null}function Ug(r,e){const t=new qe(null,null);let n=t;for(let o=0;o<r.length;o++)n=n.next=new qe(r[o],e[o]);return n.next=null,t.next}function qg(r){let e=r;const t=[];let n=!1;const o=new qe(null,null);let i=o;for(;!n;)e?(t.push(e),e=e.left):t.length>0?(e=i=i.next=t.pop(),e=e.right):n=!0;return i.next=null,o.next}function zn(r,e,t){const n=t-e;if(n>0){const o=e+Math.floor(n/2),i=zn(r,e,o),s=r.head;return s.left=i,r.head=r.head.next,s.right=zn(r,o+1,t),s}return null}function Hg(r,e,t){const n=new qe(null,null);let o=n,i=r,s=e;for(;i!==null&&s!==null;)t(i.key,s.key)<0?(o.next=i,i=i.next):(o.next=s,s=s.next),o=o.next;return i!==null?o.next=i:s!==null&&(o.next=s),n.next}function Vn(r,e,t,n,o){if(t>=n)return;const i=r[t+n>>1];let s=t-1,a=n+1;for(;;){do s++;while(o(r[s],i)<0);do a--;while(o(r[a],i)>0);if(s>=a)break;let u=r[s];r[s]=r[a],r[a]=u,u=e[s],e[s]=e[a],e[a]=u}Vn(r,e,t,a,o),Vn(r,e,a+1,n,o)}var wl={};const Pt=(r,e)=>r.ll.x<=e.x&&e.x<=r.ur.x&&r.ll.y<=e.y&&e.y<=r.ur.y,Yn=(r,e)=>{if(e.ur.x<r.ll.x||r.ur.x<e.ll.x||e.ur.y<r.ll.y||r.ur.y<e.ll.y)return null;const t=r.ll.x<e.ll.x?e.ll.x:r.ll.x,n=r.ur.x<e.ur.x?r.ur.x:e.ur.x,o=r.ll.y<e.ll.y?e.ll.y:r.ll.y,i=r.ur.y<e.ur.y?r.ur.y:e.ur.y;return{ll:{x:t,y:o},ur:{x:n,y:i}}};let We=Number.EPSILON;We===void 0&&(We=Math.pow(2,-52));const zg=We*We,As=(r,e)=>{if(-We<r&&r<We&&-We<e&&e<We)return 0;const t=r-e;return t*t<zg*r*e?0:r<e?-1:1};class Vg{constructor(){this.reset()}reset(){this.xRounder=new Is,this.yRounder=new Is}round(e,t){return{x:this.xRounder.round(e),y:this.yRounder.round(t)}}}class Is{constructor(){this.tree=new wo,this.round(0)}round(e){const t=this.tree.add(e),n=this.tree.prev(t);if(n!==null&&As(t.key,n.key)===0)return this.tree.remove(e),n.key;const o=this.tree.next(t);return o!==null&&As(t.key,o.key)===0?(this.tree.remove(e),o.key):e}}
6const Nt=new Vg,pr=(r,e)=>r.x*e.y-r.y*e.x,El=(r,e)=>r.x*e.x+r.y*e.y,Os=(r,e,t)=>{const n=ta(r.x,r.y,e.x,e.y,t.x,t.y);return n>0?-1:n<0?1:0},Br=r=>Math.sqrt(El(r,r)),Yg=(r,e,t)=>{const n={x:e.x-r.x,y:e.y-r.y},o={x:t.x-r.x,y:t.y-r.y};return pr(o,n)/Br(o)/Br(n)},Jg=(r,e,t)=>{const n={x:e.x-r.x,y:e.y-r.y},o={x:t.x-r.x,y:t.y-r.y};return El(o,n)/Br(o)/Br(n)},Ms=(r,e,t)=>e.y===0?null:{x:r.x+e.x/e.y*(t-r.y),y:t},ks=(r,e,t)=>e.x===0?null:{x:t,y:r.y+e.y/e.x*(t-r.x)},Xg=(r,e,t,n)=>{if(e.x===0)return ks(t,n,r.x);if(n.x===0)return ks(r,e,t.x);if(e.y===0)return Ms(t,n,r.y);if(n.y===0)return Ms(r,e,t.y);const o=pr(e,n);if(o==0)return null;const i={x:t.x-r.x,y:t.y-r.y},s=pr(i,e)/o,a=pr(i,n)/o,u=r.x+a*e.x,c=t.x+s*n.x,h=r.y+a*e.y,l=t.y+s*n.y,f=(u+c)/2,p=(h+l)/2;return{x:f,y:p}};class he{static compare(e,t){const n=he.comparePoints(e.point,t.point);return n!==0?n:(e.point!==t.point&&e.link(t),e.isLeft!==t.isLeft?e.isLeft?1:-1:Ge.compare(e.segment,t.segment))}static comparePoints(e,t){return e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0}constructor(e,t){e.events===void 0?e.events=[this]:e.events.push(this),this.point=e,this.isLeft=t}link(e){if(e.point===this.point)throw new Error("Tried to link already linked events");const t=e.point.events;for(let n=0,o=t.length;n<o;n++){const i=t[n];this.point.events.push(i),i.point=this.point}this.checkForConsuming()}checkForConsuming(){const e=this.point.events.length;for(let t=0;t<e;t++){const n=this.point.events[t];if(n.segment.consumedBy===void 0)for(let o=t+1;o<e;o++){const i=this.point.events[o];i.consumedBy===void 0&&n.otherSE.point.events===i.otherSE.point.events&&n.segment.consume(i.segment)}}}getAvailableLinkedEvents(){const e=[];for(let t=0,n=this.point.events.length;t<n;t++){const o=this.point.events[t];o!==this&&!o.segment.ringOut&&o.segment.isInResult()&&e.push(o)}return e}getLeftmostComparator(e){const t=new Map,n=o=>{const i=o.otherSE;t.set(o,{sine:Yg(this.point,e.point,i.point),cosine:Jg(this.point,e.point,i.point)})};return(o,i)=>{t.has(o)||n(o),t.has(i)||n(i);const{sine:s,cosine:a}=t.get(o),{sine:u,cosine:c}=t.get(i);return s>=0&&u>=0?a<c?1:a>c?-1:0:s<0&&u<0?a<c?-1:a>c?1:0:u<s?-1:u>s?1:0}}}let Qg=0;class Ge{static compare(e,t){const n=e.leftSE.point.x,o=t.leftSE.point.x,i=e.rightSE.point.x,s=t.rightSE.point.x;if(s<n)return 1;if(i<o)return-1;const a=e.leftSE.point.y,u=t.leftSE.point.y,c=e.rightSE.point.y,h=t.rightSE.point.y;if(n<o){if(u<a&&u<c)return 1;if(u>a&&u>c)return-1;const l=e.comparePoint(t.leftSE.point);if(l<0)return 1;if(l>0)return-1;const f=t.comparePoint(e.rightSE.point);return f!==0?f:-1}if(n>o){if(a<u&&a<h)return-1;if(a>u&&a>h)return 1;const l=t.comparePoint(e.leftSE.point);if(l!==0)return l;const f=e.comparePoint(t.rightSE.point);return f<0?1:f>0?-1:1}if(a<u)return-1;if(a>u)return 1;if(i<s){const l=t.comparePoint(e.rightSE.point);if(l!==0)return l}if(i>s){const l=e.comparePoint(t.rightSE.point);if(l<0)return 1;if(l>0)return-1}if(i!==s){const l=c-a,f=i-n,p=h-u,g=s-o;if(l>f&&p<g)return 1;if(l<f&&p>g)return-1}return i>s?1:i<s||c<h?-1:c>h?1:e.id<t.id?-1:e.id>t.id?1:0}constructor(e,t,n,o){this.id=++Qg,this.leftSE=e,e.segment=this,e.otherSE=t,this.rightSE=t,t.segment=this,t.otherSE=e,this.rings=n,this.windings=o}static fromRing(e,t,n){let o,i,s;const a=he.comparePoints(e,t);if(a<0)o=e,i=t,s=1;else if(a>0)o=t,i=e,s=-1;else throw new Error(`Tried to create degenerate segment at [${e.x}, ${e.y}]`);const u=new he(o,!0),c=new he(i,!1);return new Ge(u,c,[n],[s])}replaceRightSE(e){this.rightSE=e,this.rightSE.segment=this,this.rightSE.otherSE=this.leftSE,this.leftSE.otherSE=this.rightSE}bbox(){const e=this.leftSE.point.y,t=this.rightSE.point.y;return{ll:{x:this.leftSE.point.x,y:e<t?e:t},ur:{x:this.rightSE.point.x,y:e>t?e:t}}}vector(){return{x:this.rightSE.point.x-this.leftSE.point.x,y:this.rightSE.point.y-this.leftSE.point.y}}isAnEndpoint(e){return e.x===this.leftSE.point.x&&e.y===this.leftSE.point.y||e.x===this.rightSE.point.x&&e.y===this.rightSE.point.y}comparePoint(e){if(this.isAnEndpoint(e))return 0;const t=this.leftSE.point,n=this.rightSE.point,o=this.vector();if(t.x===n.x)return e.x===t.x?0:e.x<t.x?1:-1;const i=(e.y-t.y)/o.y,s=t.x+i*o.x;if(e.x===s)return 0;
6const a=(e.x-t.x)/o.x,u=t.y+a*o.y;return e.y===u?0:e.y<u?-1:1}getIntersection(e){const t=this.bbox(),n=e.bbox(),o=Yn(t,n);if(o===null)return null;const i=this.leftSE.point,s=this.rightSE.point,a=e.leftSE.point,u=e.rightSE.point,c=Pt(t,a)&&this.comparePoint(a)===0,h=Pt(n,i)&&e.comparePoint(i)===0,l=Pt(t,u)&&this.comparePoint(u)===0,f=Pt(n,s)&&e.comparePoint(s)===0;if(h&&c)return f&&!l?s:!f&&l?u:null;if(h)return l&&i.x===u.x&&i.y===u.y?null:i;if(c)return f&&s.x===a.x&&s.y===a.y?null:a;if(f&&l)return null;if(f)return s;if(l)return u;const p=Xg(i,this.vector(),a,e.vector());return p===null||!Pt(o,p)?null:Nt.round(p.x,p.y)}split(e){const t=[],n=e.events!==void 0,o=new he(e,!0),i=new he(e,!1),s=this.rightSE;this.replaceRightSE(i),t.push(i),t.push(o);const a=new Ge(o,s,this.rings.slice(),this.windings.slice());return he.comparePoints(a.leftSE.point,a.rightSE.point)>0&&a.swapEvents(),he.comparePoints(this.leftSE.point,this.rightSE.point)>0&&this.swapEvents(),n&&(o.checkForConsuming(),i.checkForConsuming()),t}swapEvents(){const e=this.rightSE;this.rightSE=this.leftSE,this.leftSE=e,this.leftSE.isLeft=!0,this.rightSE.isLeft=!1;for(let t=0,n=this.windings.length;t<n;t++)this.windings[t]*=-1}consume(e){let t=this,n=e;for(;t.consumedBy;)t=t.consumedBy;for(;n.consumedBy;)n=n.consumedBy;const o=Ge.compare(t,n);if(o!==0){if(o>0){const i=t;t=n,n=i}if(t.prev===n){const i=t;t=n,n=i}for(let i=0,s=n.rings.length;i<s;i++){const a=n.rings[i],u=n.windings[i],c=t.rings.indexOf(a);c===-1?(t.rings.push(a),t.windings.push(u)):t.windings[c]+=u}n.rings=null,n.windings=null,n.consumedBy=t,n.leftSE.consumedBy=t.leftSE,n.rightSE.consumedBy=t.rightSE}}prevInResult(){return this._prevInResult!==void 0?this._prevInResult:(this.prev?this.prev.isInResult()?this._prevInResult=this.prev:this._prevInResult=this.prev.prevInResult():this._prevInResult=null,this._prevInResult)}beforeState(){if(this._beforeState!==void 0)return this._beforeState;if(!this.prev)this._beforeState={rings:[],windings:[],multiPolys:[]};else{const e=this.prev.consumedBy||this.prev;this._beforeState=e.afterState()}return this._beforeState}afterState(){if(this._afterState!==void 0)return this._afterState;const e=this.beforeState();this._afterState={rings:e.rings.slice(0),windings:e.windings.slice(0),multiPolys:[]};const t=this._afterState.rings,n=this._afterState.windings,o=this._afterState.multiPolys;for(let a=0,u=this.rings.length;a<u;a++){const c=this.rings[a],h=this.windings[a],l=t.indexOf(c);l===-1?(t.push(c),n.push(h)):n[l]+=h}const i=[],s=[];for(let a=0,u=t.length;a<u;a++){if(n[a]===0)continue;const c=t[a],h=c.poly;if(s.indexOf(h)===-1)if(c.isExterior)i.push(h);else{s.indexOf(h)===-1&&s.push(h);const l=i.indexOf(c.poly);l!==-1&&i.splice(l,1)}}for(let a=0,u=i.length;a<u;a++){const c=i[a].multiPoly;o.indexOf(c)===-1&&o.push(c)}return this._afterState}
6isInResult(){if(this.consumedBy)return!1;if(this._isInResult!==void 0)return this._isInResult;const e=this.beforeState().multiPolys,t=this.afterState().multiPolys;switch(me.type){case"union":{const n=e.length===0,o=t.length===0;this._isInResult=n!==o;break}case"intersection":{let n,o;e.length<t.length?(n=e.length,o=t.length):(n=t.length,o=e.length),this._isInResult=o===me.numMultiPolys&&n<o;break}case"xor":{const n=Math.abs(e.length-t.length);this._isInResult=n%2===1;break}case"difference":{const n=o=>o.length===1&&o[0].isSubject;this._isInResult=n(e)!==n(t);break}default:throw new Error(`Unrecognized operation type found ${me.type}`)}return this._isInResult}}class Bs{constructor(e,t,n){if(!Array.isArray(e)||e.length===0)throw new Error("Input geometry is not a valid Polygon or MultiPolygon");if(this.poly=t,this.isExterior=n,this.segments=[],typeof e[0][0]!="number"||typeof e[0][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");const o=Nt.round(e[0][0],e[0][1]);this.bbox={ll:{x:o.x,y:o.y},ur:{x:o.x,y:o.y}};let i=o;for(let s=1,a=e.length;s<a;s++){if(typeof e[s][0]!="number"||typeof e[s][1]!="number")throw new Error("Input geometry is not a valid Polygon or MultiPolygon");let u=Nt.round(e[s][0],e[s][1]);u.x===i.x&&u.y===i.y||(this.segments.push(Ge.fromRing(i,u,this)),u.x<this.bbox.ll.x&&(this.bbox.ll.x=u.x),u.y<this.bbox.ll.y&&(this.bbox.ll.y=u.y),u.x>this.bbox.ur.x&&(this.bbox.ur.x=u.x),u.y>this.bbox.ur.y&&(this.bbox.ur.y=u.y),i=u)}(o.x!==i.x||o.y!==i.y)&&this.segments.push(Ge.fromRing(i,o,this))}getSweepEvents(){const e=[];for(let t=0,n=this.segments.length;t<n;t++){const o=this.segments[t];e.push(o.leftSE),e.push(o.rightSE)}return e}}class Zg{constructor(e,t){if(!Array.isArray(e))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");this.exteriorRing=new Bs(e[0],this,!0),this.bbox={ll:{x:this.exteriorRing.bbox.ll.x,y:this.exteriorRing.bbox.ll.y},ur:{x:this.exteriorRing.bbox.ur.x,y:this.exteriorRing.bbox.ur.y}},this.interiorRings=[];for(let n=1,o=e.length;n<o;n++){const i=new Bs(e[n],this,!1);i.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=i.bbox.ll.x),i.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=i.bbox.ll.y),i.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=i.bbox.ur.x),i.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=i.bbox.ur.y),this.interiorRings.push(i)}this.multiPoly=t}getSweepEvents(){const e=this.exteriorRing.getSweepEvents();for(let t=0,n=this.interiorRings.length;t<n;t++){const o=this.interiorRings[t].getSweepEvents();for(let i=0,s=o.length;i<s;i++)e.push(o[i])}return e}}class Rs{constructor(e,t){if(!Array.isArray(e))throw new Error("Input geometry is not a valid Polygon or MultiPolygon");try{typeof e[0][0][0]=="number"&&(e=[e])}catch{}this.polys=[],this.bbox={ll:{x:Number.POSITIVE_INFINITY,y:Number.POSITIVE_INFINITY},ur:{x:Number.NEGATIVE_INFINITY,y:Number.NEGATIVE_INFINITY}};for(let n=0,o=e.length;n<o;n++){const i=new Zg(e[n],this);i.bbox.ll.x<this.bbox.ll.x&&(this.bbox.ll.x=i.bbox.ll.x),i.bbox.ll.y<this.bbox.ll.y&&(this.bbox.ll.y=i.bbox.ll.y),i.bbox.ur.x>this.bbox.ur.x&&(this.bbox.ur.x=i.bbox.ur.x),i.bbox.ur.y>this.bbox.ur.y&&(this.bbox.ur.y=i.bbox.ur.y),this.polys.push(i)}this.isSubject=t}getSweepEvents(){const e=[];for(let t=0,n=this.polys.length;t<n;t++){const o=this.polys[t].getSweepEvents();for(let i=0,s=o.length;i<s;i++)e.push(o[i])}return e}}class Rr{static factory(e){const t=[];for(let n=0,o=e.length;n<o;n++){const i=e[n];if(!i.isInResult()||i.ringOut)continue;let s=null,a=i.leftSE,u=i.rightSE;const c=[a],h=a.point,l=[];for(;s=a,a=u,c.push(a),a.point!==h;)for(;;){const f=a.getAvailableLinkedEvents();if(f.length===0){const y=c[0].point,d=c[c.length-1].point;throw new Error(`Unable to complete output ring starting at [${y.x}, ${y.y}]. Last matching segment found ends at [${d.x}, ${d.y}].`)}if(f.length===1){u=f[0].otherSE;break}let p=null;for(let y=0,d=l.length;y<d;y++)if(l[y].point===a.point){p=y;break}if(p!==null){const y=l.splice(p)[0],d=c.splice(y.index);d.unshift(d[0].otherSE),t.push(new Rr(d.reverse()));continue}l.push({index:c.length,point:a.point});const g=a.getLeftmostComparator(s);u=f.sort(g)[0].otherSE;break}t.push(new Rr(c))}return t}constructor(e){this.events=e;for(let t=0,n=e.length;t<n;t++)e[t].segment.ringOut=this;this.poly=null}getGeom(){let e=this.events[0].point;const t=[e];for(let c=1,h=this.events.length-1;c<h;c++){const l=this.events[c].point,f=this.events[c+1].point;Os(l,e,f)!==0&&(t.push(l),e=l)}if(t.length===1)return null;const n=t[0],o=t[1];Os(n,e,o)===0&&t.shift(),t.push(t[0]);const i=this.isExteriorRing()?1:-1,s=this.isExteriorRing()?0:t.length-1,a=this.isExteriorRing()?t.length:-1,u=[];for(let c=s;c!=a;c+=i)u.push([t[c].x,t[c].y]);return u}isExteriorRing(){if(this._isExteriorRing===void 0){const e=this.enclosingRing();this._isExteriorRing=e?!e.isExteriorRing():!0}return this._isExteriorRing}enclosingRing(){return this._enclosingRing===void 0&&(this._enclosingRing=this._calcEnclosingRing()),this._enclosingRing}_calcEnclosingRing(){let e=this.events[0];for(let o=1,i=this.events.length;o<i;o++){const s=this.events[o];he.compare(e,s)>0&&(e=s)}let t=e.segment.prevInResult(),n=t?t.prevInResult():null;for(;;){if(!t)return null;if(!n)return t.ringOut;if(n.ringOut!==t.ringOut)return n.ringOut.enclosingRing()!==t.ringOut?t.ringOut:t.ringOut.enclosingRing();t=n.prevInResult(),n=t?t.prevInResult():null}}}class Cs{constructor(e){this.exteriorRing=e,e.poly=this,this.interiorRings=[]}addInterior(e){this.interiorRings.push(e),e.poly=this}getGeom(){const e=[this.exteriorRing.getGeom()];if(e[0]===null)return null;for(let t=0,n=this.interiorRings.length;t<n;t++){const o=this.interiorRings[t].getGeom();o!==null&&e.push(o)}return e}}class Kg{constructor(e){this.rings=e,this.polys=this._composePolys(e)}getGeom(){const e=[];for(let t=0,n=this.polys.length;t<n;t++){const o=this.polys[t].getGeom();o!==null&&e.push(o)}return e}_composePolys(e){const t=[];for(let n=0,o=e.length;n<o;n++){const i=e[n];if(!i.poly)if(i.isExteriorRing())t.push(new Cs(i));else{const s=i.enclosingRing();
6s.poly||t.push(new Cs(s)),s.poly.addInterior(i)}}return t}}class ev{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge.compare;this.queue=e,this.tree=new wo(t),this.segments=[]}process(e){const t=e.segment,n=[];if(e.consumedBy)return e.isLeft?this.queue.remove(e.otherSE):this.tree.remove(t),n;const o=e.isLeft?this.tree.add(t):this.tree.find(t);if(!o)throw new Error(`Unable to find segment #${t.id} [${t.leftSE.point.x}, ${t.leftSE.point.y}] -> [${t.rightSE.point.x}, ${t.rightSE.point.y}] in SweepLine tree.`);let i=o,s=o,a,u;for(;a===void 0;)i=this.tree.prev(i),i===null?a=null:i.key.consumedBy===void 0&&(a=i.key);for(;u===void 0;)s=this.tree.next(s),s===null?u=null:s.key.consumedBy===void 0&&(u=s.key);if(e.isLeft){let c=null;if(a){const l=a.getIntersection(t);if(l!==null&&(t.isAnEndpoint(l)||(c=l),!a.isAnEndpoint(l))){const f=this._splitSafely(a,l);for(let p=0,g=f.length;p<g;p++)n.push(f[p])}}let h=null;if(u){const l=u.getIntersection(t);if(l!==null&&(t.isAnEndpoint(l)||(h=l),!u.isAnEndpoint(l))){const f=this._splitSafely(u,l);for(let p=0,g=f.length;p<g;p++)n.push(f[p])}}if(c!==null||h!==null){let l=null;c===null?l=h:h===null?l=c:l=he.comparePoints(c,h)<=0?c:h,this.queue.remove(t.rightSE),n.push(t.rightSE);const f=t.split(l);for(let p=0,g=f.length;p<g;p++)n.push(f[p])}n.length>0?(this.tree.remove(t),n.push(e)):(this.segments.push(t),t.prev=a)}else{if(a&&u){const c=a.getIntersection(u);if(c!==null){if(!a.isAnEndpoint(c)){const h=this._splitSafely(a,c);for(let l=0,f=h.length;l<f;l++)n.push(h[l])}if(!u.isAnEndpoint(c)){const h=this._splitSafely(u,c);for(let l=0,f=h.length;l<f;l++)n.push(h[l])}}}this.tree.remove(t)}return n}_splitSafely(e,t){this.tree.remove(e);const n=e.rightSE;this.queue.remove(n);const o=e.split(t);return o.push(n),e.consumedBy===void 0&&this.tree.add(e),o}}const Ls=typeof process<"u"&&wl.POLYGON_CLIPPING_MAX_QUEUE_SIZE||1e6,tv=typeof process<"u"&&wl.POLYGON_CLIPPING_MAX_SWEEPLINE_SEGMENTS||1e6;let rv=class{run(e,t,n){me.type=e,Nt.reset();const o=[new Rs(t,!0)];for(let l=0,f=n.length;l<f;l++)o.push(new Rs(n[l],!1));if(me.numMultiPolys=o.length,me.type==="difference"){const l=o[0];let f=1;for(;f<o.length;)Yn(o[f].bbox,l.bbox)!==null?f++:o.splice(f,1)}if(me.type==="intersection")for(let l=0,f=o.length;l<f;l++){const p=o[l];for(let g=l+1,y=o.length;g<y;g++)if(Yn(p.bbox,o[g].bbox)===null)return[]}const i=new wo(he.compare);for(let l=0,f=o.length;l<f;l++){const p=o[l].getSweepEvents();for(let g=0,y=p.length;g<y;g++)if(i.insert(p[g]),i.size>Ls)throw new Error("Infinite loop when putting segment endpoints in a priority queue (queue size too big).")}const s=new ev(i);let a=i.size,u=i.pop();for(;u;){const l=u.key;if(i.size===a){const p=l.segment;throw new Error(`Unable to pop() ${l.isLeft?"left":"right"} SweepEvent [${l.point.x}, ${l.point.y}] from segment #${p.id} [${p.leftSE.point.x}, ${p.leftSE.point.y}] -> [${p.rightSE.point.x}, ${p.rightSE.point.y}] from queue.`)}if(i.size>Ls)throw new Error("Infinite loop when passing sweep line over endpoints (queue size too big).");if(s.segments.length>tv)throw new Error("Infinite loop when passing sweep line over endpoints (too many sweep line segments).");const f=s.process(l);for(let p=0,g=f.length;p<g;p++){const y=f[p];y.consumedBy===void 0&&i.insert(y)}a=i.size,u=i.pop()}Nt.reset();const c=Rr.factory(s.segments);return new Kg(c).getGeom()}};const me=new rv,nv=function(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return me.run("union",r,t)},ov=function(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return me.run("intersection",r,t)},iv=function(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return me.run("xor",r,t)},sv=function(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return me.run("difference",r,t)};var av={union:nv,intersection:ov,xor:iv,difference:sv},lv=Object.defineProperty,uv=(r,e)=>lv(r,"name",{value:e,configurable:!0});function xl(r,e={}){const t=[];if(oa(r,o=>{t.push(o.coordinates)}
6),t.length<2)throw new Error("Must specify at least 2 geometries");const n=av.intersection(t[0],...t.slice(1));return n.length===0?null:n.length===1?Gr(n[0],e.properties):So(n,e.properties)}uv(xl,"intersect");var fv=xl,Jn=(r=>(r[r.SUM=0]="SUM",r[r.PERCENT_SUM=1]="PERCENT_SUM",r[r.AVERAGE=2]="AVERAGE",r))(Jn||{});const Ct={cc_district:{name:"City Council Districts",query:"city_council_districts_2026/FeatureServer/0",property:"district_number"},zip_codes:{name:"ZIP Codes",query:"City_of_Detroit_Zip_Code_Tabulation_Areas/FeatureServer/0",property:"zipcode"},cd_neighborhoods:{name:"City Defined Neighborhoods",query:"Current_City_of_Detroit_Neighborhoods/FeatureServer/0",property:"nhood_name"},mp_neighborhoods:{name:"Master Plan Neighborhoods",query:"MasterPlanNeighborhood/FeatureServer/0",property:"NHOOD"},police_precinct:{name:"Police Precincts",query:"Neighborhood_Police_Officers/FeatureServer/0",property:"precinct"},house_district:{name:"House Districts",query:"Remedial_State_House_2021/FeatureServer/0",property:"Name"},senate_district:{name:"Senate Districts",query:"Remedial_State_Senate_2021/FeatureServer/0",property:"Name"},congress_district:{name:"Congressional Districts",query:"US_Congressional_Districts_2021/FeatureServer/23",property:"NAME"}},Fs={below_poverty_rate:{op:1,name:"Below Poverty"},population17_younger:{op:1,name:"Age 17 or Younger"},population65_older:{op:1,name:"Age 65 or Older"},minority_status:{op:1,name:"Minority Status"},health_insurance_rate:{op:1,name:"Uninsured"},housing_units:{op:0,name:"Housing Units"},housing_cost_burden:{op:1,name:"Housing Cost Burden"},unemployment_rate:{op:1,name:"Unenmployed"},no_vehicle:{op:1,name:"No Vehicle"}};function Ts(r,e,t){const n=r.slice();return n[45]=e[t],n}function Ns(r,e,t){const n=r.slice();n[58]=e[t][0],n[59]=e[t][1].op,n[50]=e[t][1].name;const o=n[12].tracts.features.filter(s=>{var a;return!(n[9]??[]).includes((a=s.properties)==null?void 0:a.id)});n[60]=o;const i=n[60].reduce((s,a)=>{var u;return+((u=a.properties)==null?void 0:u.population)+s},0);return n[61]=i,n}function cv(r){const e=r.slice(),t=e[60].reduce(function(...o){return r[29](e[58],...o)},0);return e[64]=t,e}function pv(r){const e=r.slice(),t=e[60].reduce(function(...o){return r[28](e[58],...o)},0);return e[64]=t,e}function js(r,e,t){const n=r.slice();n[48]=e[t].key,n[49]=e[t].matches;const o=Ct[n[48]].name;return n[50]=o,n}function Ds(r){const e=Ct[r[48]].property;r[54]=e;const t=Array.from(new Set(r[53].features.map(function(...o){return r[23](r[54],...o)})));r[55]=t}function Ws(r,e,t){const n=r.slice();return n[54]=e[t],n[57]=t,n}function hv(r){let e;return{c(){e=J("â¶")},l(t){e=Y(t,"â¶")},m(t,n){D(t,e,n)},d(t){t&&S(e)}}}function yv(r){let e;return{c(){e=J("Ã")},l(t){e=Y(t,"Ã")},m(t,n){D(t,e,n)},d(t){t&&S(e)}}}function gv(r){let e,t="Population",n,o,i=r[12].tracts.features.filter(r[26]).reduce(Ks,0)+"",s,a,u,c,h=r[10]&&Gs(r),l=Ue(Object.entries(Fs)),f=[];for(let p=0;p<l.length;p+=1)f[p]=Vs(Ns(r,l,p));return{c(){e=L("h3"),e.textContent=t,n=ee(),o=L("p"),s=J(i),a=ee(),h&&h.c(),u=ee(),c=L("ul");for(let p=0;p<f.length;p+=1)f[p].c();this.h()},l(p){e=C(p,"H3",{style:!0,class:!0,"data-svelte-h":!0}),At(e)!=="svelte-w3ynbe"&&(e.textContent=t),n=K(p),o=C(p,"P",{style:!0});var g=j(o);s=Y(g,i),a=K(g),h&&h.l(g),g.forEach(S),u=K(p),c=C(p,"UL",{class:!0});var y=j(c);for(let d=0;d<f.length;d+=1)f[d].l(y);y.forEach(S),this.h()},h(){de(e,"text-align","center"),M(e,"class","svelte-r08u20"),de(o,"text-align","center"),de(o,"margin","0"),de(o,"font-size","2rem"),de(o,"font-weight","300"),M(c,"class","fields svelte-r08u20")},m(p,g){D(p,e,g),D(p,n,g),D(p,o,g),P(o,s),P(o,a),h&&h.m(o,null),D(p,u,g),D(p,c,g);for(let y=0;y<f.length;y+=1)f[y]&&f[y].m(c,null)},p(p,g){if(g[0]&512&&i!==(i=p[12].tracts.features.filter(p[26]).reduce(Ks,0)+"")&&Pe(s,i),p[10]?h?h.p(p,g):(h=Gs(p),h.c(),h.m(o,null)):h&&(h.d(1),h=null),g[0]&5632){l=Ue(Object.entries(Fs));let y;for(y=0;y<l.length;y+=1){const d=Ns(p,l,y);f[y]?f[y].p(d,g):(f[y]=Vs(d),f[y].c(),f[y].m(c,null))}for(;y<f.length;y+=1)f[y].d(1);f.length=l.length}},d(p){p&&(S(e),S(n),S(o),S(u),S(c)),h&&h.d(),Cr(f,p)}}}function vv(r){let e,t=Ue(r[8]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Qs(js(r,t,o));return{c(){e=L("ul");for(let o=0;o<n.length;o+=1)n[o].c();this.h()},l(o){e=C(o,"UL",{class:!0});var i=j(e);for(let s=0;s<n.length;s+=1)n[s].l(i);
6i.forEach(S),this.h()},h(){M(e,"class","fields svelte-r08u20")},m(o,i){D(o,e,i);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null)},p(o,i){if(i[0]&8640){t=Ue(o[8]);let s;for(s=0;s<t.length;s+=1){const a=js(o,t,s);n[s]?n[s].p(a,i):(n[s]=Qs(a),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(o){o&&S(e),Cr(n,o)}}}function Gs(r){let e,t,n=r[12].tracts.features.filter(r[27]).reduce(ea,0)+"",o;return{c(){e=L("span"),t=J("â "),o=J(n),this.h()},l(i){e=C(i,"SPAN",{style:!0});var s=j(e);t=Y(s,"â "),o=Y(s,n),s.forEach(S),this.h()},h(){de(e,"color",Ee(Te,1))},m(i,s){D(i,e,s),P(e,t),P(e,o)},p(i,s){s[0]&1024&&n!==(n=i[12].tracts.features.filter(i[27]).reduce(ea,0)+"")&&Pe(o,n)},d(i){i&&S(e)}}}function Us(r){let e=Math.round(r[64]/r[61]*100)+"",t,n,o,i=r[10]&&Hs(r);return{c(){t=J(e),n=J(`% 7 `),i&&i.c(),o=ye()},l(s){t=Y(s,e),n=Y(s,`% 8 `),i&&i.l(s),o=ye()},m(s,a){D(s,t,a),D(s,n,a),i&&i.m(s,a),D(s,o,a)},p(s,a){a[0]&512&&e!==(e=Math.round(s[64]/s[61]*100)+"")&&Pe(t,e),s[10]?i?i.p(s,a):(i=Hs(s),i.c(),i.m(o.parentNode,o)):i&&(i.d(1),i=null)},d(s){s&&(S(t),S(n),S(o)),i&&i.d(s)}}}function qs(r){let e=r[64]+"",t,n,o,i=r[10]&&zs(r);return{c(){t=J(e),n=ee(),i&&i.c(),o=ye()},l(s){t=Y(s,e),n=K(s),i&&i.l(s),o=ye()},m(s,a){D(s,t,a),D(s,n,a),i&&i.m(s,a),D(s,o,a)},p(s,a){a[0]&512&&e!==(e=s[64]+"")&&Pe(t,e),s[10]?i?i.p(s,a):(i=zs(s),i.c(),i.m(o.parentNode,o)):i&&(i.d(1),i=null)},d(s){s&&(S(t),S(n),S(o)),i&&i.d(s)}}}function Hs(r){let e,t,n=r[12].tracts.features.filter(r[32]).reduce(i,0)+"",o;function i(...s){return r[33](r[58],...s)}return{c(){e=L("span"),t=J("â "),o=J(n),this.h()},l(s){e=C(s,"SPAN",{style:!0,class:!0});var a=j(e);t=Y(a,"â "),o=Y(a,n),a.forEach(S),this.h()},h(){de(e,"color",Ee(Te,1)),M(e,"class","svelte-r08u20")},m(s,a){D(s,e,a),P(e,t),P(e,o)},p(s,a){r=s,a[0]&1024&&n!==(n=r[12].tracts.features.filter(r[32]).reduce(i,0)+"")&&Pe(o,n)},d(s){s&&S(e)}}}function zs(r){let e,t,n=r[12].tracts.features.filter(r[30]).reduce(i,0)+"",o;function i(...s){return r[31](r[58],...s)}return{c(){e=L("span"),t=J("â "),o=J(n),this.h()},l(s){e=C(s,"SPAN",{style:!0,class:!0});var a=j(e);t=Y(a,"â "),o=Y(a,n),a.forEach(S),this.h()},h(){de(e,"color",Ee(Te,1)),M(e,"class","svelte-r08u20")},m(s,a){D(s,e,a),P(e,t),P(e,o)},p(s,a){r=s,a[0]&1024&&n!==(n=r[12].tracts.features.filter(r[30]).reduce(i,0)+"")&&Pe(o,n)},d(s){s&&S(e)}}}function Vs(r){let e,t,n=r[50]+"",o,i,s,a;function u(f,p){if(f[59]===Jn.SUM)return qs;if(f[59]===Jn.PERCENT_SUM)return Us}function c(f,p){if(p===qs)return pv(f);if(p===Us)return cv(f)}let h=u(r),l=h&&h(c(r,h));return{c(){e=L("li"),t=L("p"),o=J(n),i=ee(),s=L("span"),l&&l.c(),a=ee(),this.h()},l(f){e=C(f,"LI",{class:!0});var p=j(e);t=C(p,"P",{style:!0,class:!0});var g=j(t);o=Y(g,n),g.forEach(S),i=K(p),s=C(p,"SPAN",{class:!0});var y=j(s);l&&l.l(y),y.forEach(S),a=K(p),p.forEach(S),this.h()},h(){de(t,"font-weight","500"),M(t,"class","svelte-r08u20"),M(s,"class","svelte-r08u20"),M(e,"class","field svelte-r08u20")},m(f,p){D(f,e,p),P(e,t),P(t,o),P(e,i),P(e,s),l&&l.m(s,null),P(e,a)},p(f,p){l&&l.p(c(f,h),p)},d(f){f&&S(e),l&&l.d()}}}function dv(r){return{c:ze,l:ze,m:ze,p:ze,d:ze}}function mv(r){Ds(r);let e,t=Ue(r[55]),n=[];for(let o=0;o<t.length;o+=1)n[o]=Xs(Ws(r,t,o));return{c(){e=L("span");for(let o=0;o<n.length;o+=1)n[o].c();this.h()},l(o){e=C(o,"SPAN",{class:!0});var i=j(e);for(let s=0;s<n.length;s+=1)n[s].l(i);i.forEach(S),this.h()},h(){M(e,"class","svelte-r08u20")},m(o,i){D(o,e,i);for(let s=0;s<n.length;s+=1)n[s]&&n[s].m(e,null)},p(o,i){if(Ds(o),i[0]&8640){t=Ue(o[55]);let s;for(s=0;s<t.length;s+=1){const a=Ws(o,t,s);n[s]?n[s].p(a,i):(n[s]=Xs(a),n[s].c(),n[s].m(e,null))}for(;s<n.length;s+=1)n[s].d(1);n.length=t.length}},d(o){o&&S(e),Cr(n,o)}}}function bv(r){let e,t=r[54]+"",n,o,i=r[57]<r[55].length-1&&Ys();return{c(){e=L("span"),n=J(t),i&&i.c(),o=ye(),this.h()},l(s){e=C(s,"SPAN",{class:!0});var a=j(e);n=Y(a,t),a.forEach(S),i&&i.l(s),o=ye(),this.h()},h(){M(e,"class","svelte-r08u20")},m(s,a){D(s,e,a),P(e,n),i&&i.m(s,a),D(s,o,a)},p(s,a){a[0]&256&&t!==(t=s[54]+"")&&Pe(n,t),s[57]<s[55].length-1?i||(i=Ys(),i.c(),i.m(o.parentNode,o)):i&&(i.d(1),i=null)}
8,d(s){s&&(S(e),S(o)),i&&i.d(s)}}}function Sv(r){let e,t=r[54]+"",n,o,i,s,a;function u(){return r[21](r[54],r[48])}function c(){return r[22](r[48])}let h=r[57]<r[55].length-1&&Js();return{c(){e=L("span"),n=J(t),h&&h.c(),i=ye(),this.h()},l(l){e=C(l,"SPAN",{style:!0,class:!0});var f=j(e);n=Y(f,t),f.forEach(S),h&&h.l(l),i=ye(),this.h()},h(){M(e,"style",o=` 9 text-decoration: underline 3px ${Ve(r[57])}; 10 background: ${r[7]==r[54]?Ve(r[57]):void 0}; 11 `),M(e,"class","svelte-r08u20")},m(l,f){D(l,e,f),P(e,n),h&&h.m(l,f),D(l,i,f),s||(a=[je(e,"pointerenter",u),je(e,"pointerleave",c)],s=!0)},p(l,f){r=l,f[0]&256&&t!==(t=r[54]+"")&&Pe(n,t),f[0]&384&&o!==(o=` 12 text-decoration: underline 3px ${Ve(r[57])}; 13 background: ${r[7]==r[54]?Ve(r[57]):void 0}; 14 `)&&M(e,"style",o),r[57]<r[55].length-1?h||(h=Js(),h.c(),h.m(i.parentNode,i)):h&&(h.d(1),h=null)},d(l){l&&(S(e),S(i)),h&&h.d(l),s=!1,Xn(a)}}}function Ys(r){let e,t=" ",n;return{c(){e=J(","),n=J(t)},l(o){e=Y(o,","),n=Y(o,t)},m(o,i){D(o,e,i),D(o,n,i)},d(o){o&&(S(e),S(n))}}}function Js(r){let e,t=" ",n;return{c(){e=J(","),n=J(t)},l(o){e=Y(o,","),n=Y(o,t)},m(o,i){D(o,e,i),D(o,n,i)},d(o){o&&(S(e),S(n))}}}function Xs(r){let e;function t(i,s){return i[6]===i[48]?Sv:bv}let n=t(r),o=n(r);return{c(){o.c(),e=ye()},l(i){o.l(i),e=ye()},m(i,s){o.m(i,s),D(i,e,s)},p(i,s){n===(n=t(i))&&o?o.p(i,s):(o.d(1),o=n(i),o&&(o.c(),o.m(e.parentNode,e)))},d(i){i&&S(e),o.d(i)}}}function _v(r){let e;return{c(){e=L("div"),this.h()},l(t){e=C(t,"DIV",{class:!0}),j(e).forEach(S),this.h()},h(){M(e,"class","loading svelte-r08u20")},m(t,n){D(t,e,n)},p:ze,d(t){t&&S(e)}}}function Qs(r){let e,t,n=r[50]+"",o,i,s,a,u,c,h={ctx:r,current:null,token:null,hasCatch:!1,pending:_v,then:mv,catch:dv,value:53};Bo(s=r[49],h);function l(){return r[24](r[48])}function f(){return r[25](r[48])}return{c(){e=L("li"),t=L("p"),o=J(n),i=ee(),h.block.c(),a=ee(),this.h()},l(p){e=C(p,"LI",{class:!0});var g=j(e);t=C(g,"P",{style:!0,class:!0});var y=j(t);o=Y(y,n),y.forEach(S),i=K(g),h.block.l(g),a=K(g),g.forEach(S),this.h()},h(){de(t,"font-weight","600"),M(t,"class","svelte-r08u20"),M(e,"class","field intersects svelte-r08u20")},m(p,g){D(p,e,g),P(e,t),P(t,o),P(e,i),h.block.m(e,h.anchor=null),h.mount=()=>e,h.anchor=a,P(e,a),u||(c=[je(e,"pointerenter",l),je(e,"pointerleave",f)],u=!0)},p(p,g){r=p,g[0]&256&&n!==(n=r[50]+"")&&Pe(o,n),h.ctx=r,g[0]&256&&s!==(s=r[49])&&Bo(s,h)||Ml(h,r,g)},d(p){p&&S(e),h.block.d(),h.token=null,h=null,u=!1,Xn(c)}}}function wv(r){let e,t;return e=new nu({props:{resource:r[45]}}),{c(){Tl(e.$$.fragment)},l(n){Fl(e.$$.fragment,n)},m(n,o){Ll(e,n,o),t=!0},i(n){t||(Ot(e.$$.fragment,n),t=!0)},o(n){hr(e.$$.fragment,n),t=!1},d(n){Cl(e,n)}}}function Zs(r){let e,t,n=(r[45].nonprofit_required!=="Yes"||r[45].nonprofit_required==="Yes"&&r[12].nonprofit==="Yes")&&wv(r);return{c(){n&&n.c(),e=ye()},l(o){n&&n.l(o),e=ye()},m(o,i){n&&n.m(o,i),D(o,e,i),t=!0},p:ze,i(o){t||(Ot(n),t=!0)},o(o){hr(n),t=!1},d(o){o&&S(e),n&&n.d(o)}}}function Ev(r){let e,t,n,o,i,s=r[12].name+"",a,u,c,h=r[11].params.email+"",l,f,p,g,y,d,v,m,$,b,E,w="District/Precinct Data",A,x,I,k,G="Population Data",F,T,X,te,ce,se,et,gt,Ce,vt,ue,Ie,Ht='<a style="color:inherit; font-size: 1.25rem; text-decoration: none;" href="funding">Funding opportunities</a>',dt,Le,zt="<i>Recommended based on your survey results</i>",mt,Se,pe,bt,_;Pl(r[16]);function O(B,W){return B[4]?yv:hv}let H=O(r),V=H(r);function Fe(B,W){return B[5]?vv:gv}let Q=Fe(r),N=Q(r),re=Ue(Lo),q=[];for(let B=0;B<re.length;B+=1)q[B]=Zs(Ts(r,re,B));const Ur=B=>hr(q[B],1,1,()=>{q[B]=null});return{c(){e=L("main"),t=L("section"),n=L("section"),o=L("header"),i=L("h1"),a=J(s),u=ee(),c=L("small"),l=J(h),f=ee(),p=L("a"),g=J("Edit Organization Info"),d=ee(),v=L("div"),m=L("div"),$=L("div"),b=L("button"),E=L("i"),E.textContent=w,A=ee(),I=L("button"),k=L("i"),k.textContent=G,X=ee(),te=L("button"),V.c(),ce=ee(),se=L("section"),N.c(),gt=ee(),Ce=L("div"),vt=ee(),ue=L("section"),Ie=L("h2"),Ie.innerHTML=Ht,dt=ee(),Le=L("small"),Le.innerHTML=zt,mt=ee(),Se=L("ul");for(let B=0;B<q.length;
14B+=1)q[B].c();this.h()},l(B){e=C(B,"MAIN",{class:!0});var W=j(e);t=C(W,"SECTION",{id:!0,class:!0});var z=j(t);n=C(z,"SECTION",{id:!0,class:!0});var _e=j(n);o=C(_e,"HEADER",{class:!0});var we=j(o);i=C(we,"H1",{class:!0});var Eo=j(i);a=Y(Eo,s),Eo.forEach(S),u=K(we),c=C(we,"SMALL",{});var xo=j(c);l=Y(xo,h),xo.forEach(S),f=K(we),p=C(we,"A",{href:!0,class:!0});var $o=j(p);g=Y($o,"Edit Organization Info"),$o.forEach(S),we.forEach(S),d=K(_e),v=C(_e,"DIV",{style:!0});var Vt=j(v);m=C(Vt,"DIV",{class:!0});var Yt=j(m);$=C(Yt,"DIV",{style:!0});var qr=j($);b=C(qr,"BUTTON",{class:!0});var Hr=j(b);E=C(Hr,"I",{"data-svelte-h":!0}),At(E)!=="svelte-ud97c9"&&(E.textContent=w),A=K(Hr),Hr.forEach(S),I=C(qr,"BUTTON",{class:!0});var Po=j(I);k=C(Po,"I",{"data-svelte-h":!0}),At(k)!=="svelte-1n1h5u3"&&(k.textContent=G),Po.forEach(S),qr.forEach(S),X=K(Yt),te=C(Yt,"BUTTON",{id:!0,class:!0});var Ao=j(te);V.l(Ao),Ao.forEach(S),Yt.forEach(S),ce=K(Vt),se=C(Vt,"SECTION",{class:!0,style:!0});var Io=j(se);N.l(Io),Io.forEach(S),Vt.forEach(S),_e.forEach(S),gt=K(z),Ce=C(z,"DIV",{id:!0}),j(Ce).forEach(S),z.forEach(S),vt=K(W),ue=C(W,"SECTION",{id:!0,class:!0});var tt=j(ue);Ie=C(tt,"H2",{class:!0,"data-svelte-h":!0}),At(Ie)!=="svelte-tp8e0k"&&(Ie.innerHTML=Ht),dt=K(tt),Le=C(tt,"SMALL",{"data-svelte-h":!0}),At(Le)!=="svelte-1lpjoeb"&&(Le.innerHTML=zt),mt=K(tt),Se=C(tt,"UL",{id:!0,class:!0});var Oo=j(Se);for(let zr=0;zr<q.length;zr+=1)q[zr].l(Oo);Oo.forEach(S),tt.forEach(S),W.forEach(S),this.h()},h(){M(i,"class","svelte-r08u20"),M(p,"href",y=r[11].params.email+"/edit"),M(p,"class","svelte-r08u20"),M(o,"class","svelte-r08u20"),M(b,"class",x=Jt(`tab ${r[5]&&"focused"}`)+" svelte-r08u20"),M(I,"class",F=Jt(`tab ${!r[5]&&"focused"}`)+" svelte-r08u20"),M($,"style",T=`${!r[4]&&"display: none"}`),M(te,"id","modal-toggle"),M(te,"class","svelte-r08u20"),M(m,"class","tab-group svelte-r08u20"),M(se,"class","analysis-container svelte-r08u20"),M(se,"style",et=`${!r[4]&&"display: none"}`),de(v,"pointer-events","auto"),M(n,"id","info"),M(n,"class","svelte-r08u20"),M(Ce,"id","map"),M(t,"id","primary"),M(t,"class","svelte-r08u20"),M(Ie,"class","svelte-r08u20"),M(Se,"id","resources"),M(Se,"class","svelte-r08u20"),M(ue,"id","funding"),M(ue,"class","svelte-r08u20"),M(e,"class","svelte-r08u20")},m(B,W){D(B,e,W),P(e,t),P(t,n),P(n,o),P(o,i),P(i,a),P(o,u),P(o,c),P(c,l),P(o,f),P(o,p),P(p,g),r[17](o),P(n,d),P(n,v),P(v,m),P(m,$),P($,b),P(b,E),P(b,A),P($,I),P(I,k),P(m,X),P(m,te),V.m(te,null),P(v,ce),P(v,se),N.m(se,null),r[34](v),P(t,gt),P(t,Ce),r[35](Ce),P(e,vt),P(e,ue),P(ue,Ie),P(ue,dt),P(ue,Le),P(ue,mt),P(ue,Se);for(let z=0;z<q.length;z+=1)q[z]&&q[z].m(Se,null);pe=!0,bt||(_=[je(window,"resize",r[16]),je(b,"click",r[18]),je(I,"click",r[19]),je(te,"click",r[20])],bt=!0)},p(B,W){if((!pe||W[0]&2048)&&h!==(h=B[11].params.email+"")&&Pe(l,h),(!pe||W[0]&2048&&y!==(y=B[11].params.email+"/edit"))&&M(p,"href",y),(!pe||W[0]&32&&x!==(x=Jt(`tab ${B[5]&&"focused"}`)+" svelte-r08u20"))&&M(b,"class",x),(!pe||W[0]&32&&F!==(F=Jt(`tab ${!B[5]&&"focused"}`)+" svelte-r08u20"))&&M(I,"class",F),(!pe||W[0]&16&&T!==(T=`${!B[4]&&"display: none"}`))&&M($,"style",T),H!==(H=O(B))&&(V.d(1),V=H(B),V&&(V.c(),V.m(te,null))),Q===(Q=Fe(B))&&N?N.p(B,W):(N.d(1),N=Q(B),N&&(N.c(),N.m(se,null))),(!pe||W[0]&16&&et!==(et=`${!B[4]&&"display: none"}`))&&M(se,"style",et),W[0]&4096){re=Ue(Lo);let z;for(z=0;z<re.length;z+=1){const _e=Ts(B,re,z);q[z]?(q[z].p(_e,W),Ot(q[z],1)):(q[z]=Zs(_e),q[z].c(),Ot(q[z],1),q[z].m(Se,null))}for(Nl(),z=re.length;z<q.length;z+=1)Ur(z);Rl()}},i(B){if(!pe){for(let W=0;W<re.length;W+=1)Ot(q[W]);pe=!0}},o(B){q=q.filter(Boolean);for(let W=0;W<q.length;W+=1)hr(q[W]);pe=!1},d(B){B&&S(e),r[17](null),V.d(),N.d(),r[34](null),r[35](null),Cr(q,B),bt=!1,Xn(_)}}}const Ks=(r,e)=>{var t;return+((t=e.properties)==null?void 0:t.population)+r},ea=(r,e)=>{var t;return+((t=e.properties)==null?void 0:t.population)+r};function xv(r,e,t){let n;Al(r,jl,_=>t(11,n=_));let{data:o}=e,{entry:i}=o;const s=new Gl;
14let a=!0,u=!1,c,h,l=[],f,p,g,y,d;const v=[],m=new Ul({declutter:!0,source:ql});v.push(m);const $=new Yr({features:[s.readFeature(i.service_area)]}),b=new Jr({source:$,opacity:.5,style:new St({fill:new wt({color:Ee(Co,.35)}),stroke:new _t({color:Ee(Co,1),width:3})})});v.push(b);const E=$.getExtent();Hl(E,1.1);let w,A,x,I;function k(_){return f.getLayers().getArray().find(O=>O.get("key")===_)}async function G(_,O){const H=await fetch(`api/?key=${_}`,{method:"GET"}).then(Q=>Q.json());return{type:"FeatureCollection",features:(H==null?void 0:H.features.filter(Q=>ju(O,Q))).map(Q=>({...fv(ht([$e(JSON.parse(i.service_area)),Q])),properties:Q.properties})).filter(Q=>Q!==null&&Q.geometry!==null&&Ro(s.readGeometry(Q.geometry))/Ro(s.readGeometry(JSON.parse(i.service_area)))>.005)??[]}}Il(async()=>{zl();let _;const O=N=>`calc(${N}vh - (40px + 10px + 5px) - 5rem)`;d>780?(t(2,y.style.height=`max(${O(100)}, ${g.clientHeight+32}px)`,y),_=[p.clientHeight+2*16,g.clientWidth,0,0]):(t(2,y.style.height=`max(${O(120)}, ${g.clientHeight*2+32+4*16}px)`,y),_=[p.clientHeight+4*16,0,g.clientHeight+4*16,0]),t(15,f=new Vl({target:"map",layers:v,view:new Yl({center:Ql(E),extent:Xl(),zoom:11,minZoom:11,maxZoom:17}),interactions:Jl({mouseWheelZoom:!1,doubleClickZoom:!0,dragPan:!1})})),Zl(m,ru,"esri"),f.getView().fit(E,{padding:_}),await Mo(()=>Promise.resolve({}),__vite__mapDeps([0]),import.meta.url),await Mo(()=>Promise.resolve({}),__vite__mapDeps([1]),import.meta.url),t(8,l=Object.entries(Ct).map(([N,re])=>({key:N,matches:G(N,$e(JSON.parse(i.service_area)))})));const H=i.tracts.features.map(N=>{var re;return(re=N.properties)==null?void 0:re.id}),V=await fetch(`api/?key=tracts&query=FIPS IN (${H.map(N=>`'${N}'`).join(",")})`).then(N=>N.json()),Fe=new Yr({features:s.readFeatures(V)}),Q=new Jr({source:Fe,properties:{key:"tracts"},opacity:.75,style:new St({fill:new wt({color:Kl(Ee(Te,.8))}),stroke:new _t({color:Ee(Te,.8),width:3})})});f.addLayer(Q),w=new ko({multi:!0,toggleCondition:eu,layers:[Q],style:new St({fill:new wt({color:"transparent"}),stroke:new _t({color:Ee(Te,.8),lineDash:[4,6],width:3})})}),A=new ko({condition:tu,layers:[Q],filter:N=>!w.getFeatures().getArray().includes(N),style:new St({fill:new wt({color:Ee(Te,.8)}),stroke:new _t({color:Ee(Te,1),width:3})})}),f.addInteraction(w),f.addInteraction(A),w.on("select",()=>{t(9,x=(w==null?void 0:w.getFeatures().getArray().map(N=>{var re;return(re=N.getProperties())==null?void 0:re.FIPS}))??[])}),A.on("select",()=>{const[N]=A==null?void 0:A.getFeatures().getArray();N?t(10,I=N.getProperties().FIPS):t(10,I="")}),l.forEach(async({key:N,matches:re})=>{const q=(await re).features,Ur=Array.from(new Set((await re).features.map(B=>{var W;return(W=B.properties)==null?void 0:W[Ct[N].property]})));if(q&&q.length>0){const B=new Yr({features:s.readFeatures(ht(q))}),W=new Jr({source:B,properties:{key:N},visible:!1,opacity:.7,style:z=>{const _e=z.get(Ct[N].property),we=Ur.indexOf(_e);return new St({fill:new wt({color:_e===h?Ve(we,1):Ve(we,.6)}),stroke:new _t({color:Ve(we),width:3})})}});f.addLayer(W)}})}),Ol(()=>{f&&(f.removeInteraction(w),f.removeInteraction(A),f.dispose(),w.dispose(),A.dispose())});function F(){t(3,d=window.innerWidth)}function T(_){Vr[_?"unshift":"push"](()=>{p=_,t(0,p)})}const X=()=>{var _;t(5,u=!0),(_=k("tracts"))==null||_.setVisible(!1)},te=()=>{var _;t(5,u=!1),(_=k("tracts"))==null||_.setVisible(!0)},ce=()=>t(4,a=!a),se=(_,O)=>{var H;t(7,h=_),(H=k(O))==null||H.changed()},et=_=>{var O;t(7,h=void 0),(O=k(_))==null||O.changed()},gt=(_,O)=>{var H;return(H=O.properties)==null?void 0:H[_]},Ce=_=>{t(6,c=_);const O=k(_);O&&O.setVisible(!0)},vt=_=>{t(6,c=void 0),t(7,h=void 0);const O=k(_);O&&O.setVisible(!1)},ue=_=>{var O;return!(x??[]).includes((O=_.properties)==null?void 0:O.id)},Ie=_=>{var O;return((O=_.properties)==null?void 0:O.id)===I},Ht=(_,O,H)=>{var V;return+((V=H.properties)==null?void 0:V[_])+O},dt=(_,O,H)=>{var V,Fe;return+((V=H.properties)==null?void 0:V.population)*+((Fe=H.properties)==null?void 0:Fe[_])*.01+O},Le=_=>{var O;return((O=_.properties)==null?void 0:O.id)===I},zt=(_,O,H)=>{var V;return+((V=H.properties)==null?void 0:V[_])+O},mt=_=>{var O;return((O=_.properties)==null?void 0:O.id)===I},Se=(_,O,H)=>{var V;return+((V=H.properties)==null?void 0:V[_])+O};function pe(_){Vr[_?"unshift":"push"](()=>{g=_,t(1,g)})}function bt(_){Vr[_?"unshift":"push"](()=>{y=_,t(2,y),t(1,g),t(0,p),t(3,d),t(15,f)})}return r.$$set=_=>{"data"in _&&t(14,o=_.data)},r.$$.update=()=>{if(r.$$.dirty[0]&32783&&y&&g&&p){let _;const O=H=>`calc(${H}vh - (40px + 10px + 5px) - 5rem)`;d>780?(t(2,y.style.height=`max(${O(100)}, ${g.clientHeight+32}px)`,y),_=[p.clientHeight+2*16,g.clientWidth,0,0]):(t(2,y.style.height=`max(${O(120)}, ${g.clientHeight*2+32+4*16}px)`,y),_=[p.clientHeight+4*16,0,g.clientHeight+4*16,0]),f.getView().fit(E,{padding:_})}},[p,g,y,d,a,u,c,h,l,x,I,n,i,k,o,f,F,T,X,te,ce,se,et,gt,Ce,vt,ue,Ie,Ht,dt,
14Le,zt,mt,Se,pe,bt]}class Fv extends kl{constructor(e){super(),Bl(this,e,xv,Ev,$l,{data:14},null,[-1,-1,-1])}}export{Fv as component};
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.