@eox/itemfilter 1.17.1 → 1.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eox-itemfilter.js +14 -8
- package/dist/eox-itemfilter.umd.cjs +3 -3
- package/package.json +3 -3
- package/src/helpers/filter-client.js +10 -3
- package/src/methods/itemfilter/filter-apply.js +18 -0
- package/src/style.eox.js +1 -1
- package/types/helpers/filter-client.d.ts.map +1 -1
- package/types/methods/itemfilter/filter-apply.d.ts.map +1 -1
package/dist/eox-itemfilter.js
CHANGED
|
@@ -678,7 +678,7 @@ li label {
|
|
|
678
678
|
flex-direction: column;
|
|
679
679
|
}
|
|
680
680
|
eox-itemfilter-expandcontainer {
|
|
681
|
-
max-height:
|
|
681
|
+
max-height: 400px;
|
|
682
682
|
width: 100%;
|
|
683
683
|
}
|
|
684
684
|
eox-itemfilter-expandcontainer > [data-type=filter] {
|
|
@@ -4456,17 +4456,20 @@ var $ = /* @__PURE__ */ c((/* @__PURE__ */ o(((e, t) => {
|
|
|
4456
4456
|
let e = { $and: [...r] }, t = Ka.search(e);
|
|
4457
4457
|
i = n.enableHighlighting ? Ga(t, "highlight", n.titleProperty) : t.map((e) => e.item);
|
|
4458
4458
|
}
|
|
4459
|
-
let a = Object.entries(t).filter(([, e]) => e.type === "range").reduce((e, [t, n]) =>
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4459
|
+
let a = Object.entries(t).filter(([, e]) => e.type === "range").reduce((e, [t, n]) => {
|
|
4460
|
+
let r = (e) => n.format === "date" ? (0, $.default)(e).valueOf() : parseFloat(e);
|
|
4461
|
+
return e[t] = {
|
|
4462
|
+
min: r(n.state.min),
|
|
4463
|
+
max: r(n.state.max),
|
|
4464
|
+
format: n.format
|
|
4465
|
+
}, e;
|
|
4466
|
+
}, {});
|
|
4464
4467
|
if (Object.keys(a).length > 0) {
|
|
4465
4468
|
let e = [];
|
|
4466
4469
|
for (let t = 0; t < i.length; t++) {
|
|
4467
4470
|
let n = {};
|
|
4468
4471
|
for (let [e, r] of Object.entries(a)) {
|
|
4469
|
-
let o = (e) => r.format === "date" ? (0, $.default)(e).valueOf() : e, s = no(e, i[t]);
|
|
4472
|
+
let o = (e) => r.format === "date" ? (0, $.default)(e).valueOf() : parseFloat(e), s = no(e, i[t]);
|
|
4470
4473
|
if (s) if (Array.isArray(s)) {
|
|
4471
4474
|
let t = "overlap";
|
|
4472
4475
|
t === "overlap" ? n[e] = a[e].min <= o(s[1]) && o(s[0]) <= a[e].max : t === "contain" && (n[e] = o(s[0]) >= a[e].min && o(s[1]) <= a[e].max);
|
|
@@ -7674,7 +7677,10 @@ function ms(e, t, n) {
|
|
|
7674
7677
|
let t = (t) => e.format === "date" ? (0, $.default)(t).valueOf() : parseFloat(t), r = t(e.state?.min === void 0 ? o?.state?.min : e.state.min), i = t(e.state?.max === void 0 ? o?.state?.max : e.state.max);
|
|
7675
7678
|
n.filters[a].stringifiedState = e.format === "date" ? `${(0, $.default)(r).format(po)} - ${(0, $.default)(i).format(po)}` : `${r} - ${i}`;
|
|
7676
7679
|
}
|
|
7677
|
-
n.filters[a].state = Object.assign({}, r, o?.state || {}, e.state)
|
|
7680
|
+
if (n.filters[a].state = Object.assign({}, r, o?.state || {}, e.state), e.type === "range" && e.state) {
|
|
7681
|
+
let t = (t) => e.format === "date" ? (0, $.default)(t).valueOf() : parseFloat(t);
|
|
7682
|
+
e.state.min !== void 0 && (n.filters[a].state.min = t(e.state.min)), e.state.max !== void 0 && (n.filters[a].state.max = t(e.state.max));
|
|
7683
|
+
}
|
|
7678
7684
|
}), e.matchAllWhenEmpty !== !1 && (n.results = n.sortResults(t), n.requestUpdate()), e.aggregateResults && (r = Array.from(new Set(t.reduce((t, n) => t.concat(n[e.aggregateResults]), []))).filter((e) => e).sort((e, t) => e.localeCompare(t)));
|
|
7679
7685
|
let i = [];
|
|
7680
7686
|
return Object.values(n.filters).forEach((e) => {
|
|
@@ -150,7 +150,7 @@ li label {
|
|
|
150
150
|
flex-direction: column;
|
|
151
151
|
}
|
|
152
152
|
eox-itemfilter-expandcontainer {
|
|
153
|
-
max-height:
|
|
153
|
+
max-height: 400px;
|
|
154
154
|
width: 100%;
|
|
155
155
|
}
|
|
156
156
|
eox-itemfilter-expandcontainer > [data-type=filter] {
|
|
@@ -591,7 +591,7 @@ input {
|
|
|
591
591
|
<slot name="filter"></slot>
|
|
592
592
|
</div>
|
|
593
593
|
</details>`)}
|
|
594
|
-
`}};customElements.define(`eox-itemfilter-expandcontainer`,Fe);function Ie(e){return Array.isArray?Array.isArray(e):We(e)===`[object Array]`}function Le(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Re(e){return e==null?``:Le(e)}function G(e){return typeof e==`string`}function ze(e){return typeof e==`number`}function Be(e){return e===!0||e===!1||He(e)&&We(e)==`[object Boolean]`}function Ve(e){return typeof e==`object`}function He(e){return Ve(e)&&e!==null}function K(e){return e!=null}function Ue(e){return!e.trim().length}function We(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Ge=`Incorrect 'index' type`,Ke=e=>`Invalid value for key ${e}`,qe=e=>`Pattern length exceeds max of ${e}.`,Je=e=>`Missing ${e} property in key`,Ye=e=>`Property 'weight' in key '${e}' must be a positive integer`,Xe=Object.prototype.hasOwnProperty,Ze=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=Qe(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function Qe(e){let t=null,n=null,r=null,i=1,a=null;if(G(e)||Ie(e))r=e,t=$e(e),n=et(e);else{if(!Xe.call(e,`name`))throw Error(Je(`name`));let o=e.name;if(r=o,Xe.call(e,`weight`)&&(i=e.weight,i<=0))throw Error(Ye(o));t=$e(o),n=et(o),a=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:a}}function $e(e){return Ie(e)?e:e.split(`.`)}function et(e){return Ie(e)?e.join(`.`):e}function tt(e,t){let n=[],r=!1,i=(e,t,a,o)=>{if(K(e))if(!t[a])n.push(o===void 0?e:{v:e,i:o});else{let s=e[t[a]];if(!K(s))return;if(a===t.length-1&&(G(s)||ze(s)||Be(s)||typeof s==`bigint`))n.push(o===void 0?Re(s):{v:Re(s),i:o});else if(Ie(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,a+1,e)}else t.length&&i(s,t,a+1,o)}};return i(e,G(t)?t.split(`.`):t,0),r?n:n[0]}var nt={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},rt={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},it={location:0,threshold:.6,distance:100},at={useExtendedSearch:!1,useTokenSearch:!1,getFn:tt,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},q=Object.freeze({...rt,...nt,...it,...at}),ot=/[^ ]+/g;function st(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=t.match(ot).length;if(n.has(i))return n.get(i);let a=1/i**(.5*e),o=parseFloat(Math.round(a*r)/r);return n.set(i,o),o},clear(){n.clear()}}}var ct=class{constructor({getFn:e=q.getFn,fieldNormWeight:t=q.fieldNormWeight}={}){this.norm=st(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,G(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();G(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)--this.records[t].i}removeAll(e){for(let t=e.length-1;t>=0;--t)this.records.splice(e[t],1);for(let e=0,t=this.records.length;e<t;e+=1)this.records[e].i=e}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!K(e)||Ue(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach((t,r)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(K(i)){if(Ie(i)){let e=[];for(let t=0,n=i.length;t<n;t+=1){let n=i[t];if(K(n)){if(G(n)){if(!Ue(n)){let r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(K(n.v)){let t=G(n.v)?n.v:Re(n.v);if(!Ue(t)){let r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}}n.$[r]=e}else if(G(i)&&!Ue(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}}}),this.records.push(n)}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function lt(e,t,{getFn:n=q.getFn,fieldNormWeight:r=q.fieldNormWeight}={}){let i=new ct({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(Qe)),i.setSources(t),i.create(),i}function ut(e,{getFn:t=q.getFn,fieldNormWeight:n=q.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new ct({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function J(e=[],t=q.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}var Y=32;function dt(e,t,n,{location:r=q.location,distance:i=q.distance,threshold:a=q.threshold,findAllMatches:o=q.findAllMatches,minMatchCharLength:s=q.minMatchCharLength,includeMatches:c=q.includeMatches,ignoreLocation:l=q.ignoreLocation}={}){if(t.length>Y)throw Error(qe(Y));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},g=s>1||c,_=g?Array(d):[],v;for(;(v=e.indexOf(t,m))>-1;){let e=h(0,v);if(p=Math.min(e,p),m=v+u,g){let e=0;for(;e<u;)_[v+e]=1,e+=1}}m=-1;let y=[],b=1,x=u+d,S=1<<u-1;for(let t=0;t<u;t+=1){let r=0,i=x;for(;r<i;)h(t,f+i)<=p?r=i:x=i,i=Math.floor((x-r)/2+r);x=i;let a=Math.max(1,f-i+1),s=o?d:Math.min(f+i,d)+u,c=Array(s+2);c[s+1]=(1<<t)-1;for(let r=s;r>=a;--r){let i=r-1,o=n[e[i]];if(g&&(_[i]=+!!o),c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),c[r]&S&&(b=h(t,i),b<=p)){if(p=b,m=i,m<=f)break;a=Math.max(1,2*f-m)}}if(h(t+1,f)>p)break;y=c}let C={isMatch:m>=0,score:Math.max(.001,b)};if(g){let e=J(_,s);e.length?c&&(C.indices=e):C.isMatch=!1}return C}function ft(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function pt(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){let r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}var mt={ł:`l`,Ł:`L`,đ:`d`,Đ:`D`,ø:`o`,Ø:`O`,ħ:`h`,Ħ:`H`,ŧ:`t`,Ŧ:`T`,ı:`i`,ß:`ss`},ht=RegExp(`[`+Object.keys(mt).join(``)+`]`,`g`),gt=String.prototype.normalize?e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(ht,e=>mt[e]):e=>e,_t=class{constructor(e,{location:t=q.location,threshold:n=q.threshold,distance:r=q.distance,includeMatches:i=q.includeMatches,findAllMatches:a=q.findAllMatches,minMatchCharLength:o=q.minMatchCharLength,isCaseSensitive:s=q.isCaseSensitive,ignoreDiacritics:c=q.ignoreDiacritics,ignoreLocation:l=q.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?gt(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:ft(e),startIndex:t})},d=this.pattern.length;if(d>Y){let e=0,t=d%Y,n=d-t;for(;e<n;)u(this.pattern.substr(e,Y),e),e+=Y;if(t){let e=d-Y;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?gt(e):e,this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=dt(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=pt(u)),p}},vt=class{constructor(e){this.pattern=e}static isMultiMatch(e){return yt(e,this.multiRegex)}static isSingleMatch(e){return yt(e,this.singleRegex)}search(e){return{isMatch:!1,score:1}}};function yt(e,t){let n=e.match(t);return n?n[1]:null}var bt=class extends vt{constructor(e){super(e)}static get type(){return`exact`}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},xt=class extends vt{constructor(e){super(e)}static get type(){return`inverse-exact`}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=e.indexOf(this.pattern)===-1;return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},St=class extends vt{constructor(e){super(e)}static get type(){return`prefix-exact`}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},Ct=class extends vt{constructor(e){super(e)}static get type(){return`inverse-prefix-exact`}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},wt=class extends vt{constructor(e){super(e)}static get type(){return`suffix-exact`}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}},Tt=class extends vt{constructor(e){super(e)}static get type(){return`inverse-suffix-exact`}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},Et=class extends vt{constructor(e,{location:t=q.location,threshold:n=q.threshold,distance:r=q.distance,includeMatches:i=q.includeMatches,findAllMatches:a=q.findAllMatches,minMatchCharLength:o=q.minMatchCharLength,isCaseSensitive:s=q.isCaseSensitive,ignoreDiacritics:c=q.ignoreDiacritics,ignoreLocation:l=q.ignoreLocation}={}){super(e),this._bitapSearch=new _t(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l})}static get type(){return`fuzzy`}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}},Dt=class extends vt{constructor(e){super(e)}static get type(){return`include`}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t=0,n,r=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,t))>-1;)t=n+i,r.push([n,t-1]);let a=!!r.length;return{isMatch:a,score:+!a,indices:r}}},Ot=[bt,Dt,St,Ct,Tt,wt,xt,Et],kt=Ot.length,At=`\0`,jt=`|`;function Mt(e){let t=[],n=e.length,r=0;for(;r<n;){for(;r<n&&e[r]===` `;)r++;if(r>=n)break;let i=r;for(;i<n&&e[i]!==` `&&e[i]!==`"`;)i++;if(i<n&&e[i]===`"`){for(i++;i<n;){if(e[i]===`"`){let t=i+1;if(t>=n||e[t]===` `){i++;break}if(e[t]===`$`&&(t+1>=n||e[t+1]===` `)){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i<n&&e[i]!==` `;)i++;t.push(e.substring(r,i)),r=i}}return t}function Nt(e,t={}){return e.replace(/\\\|/g,At).split(jt).map(e=>{let n=Mt(e.replace(/\u0000/g,`|`).trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){let i=n[e],a=!1,o=-1;for(;!a&&++o<kt;){let e=Ot[o],n=e.isMultiMatch(i);n&&(r.push(new e(n,t)),a=!0)}if(!a)for(o=-1;++o<kt;){let e=Ot[o],n=e.isSingleMatch(i);if(n){r.push(new e(n,t));break}}}return r})}var Pt=new Set([Et.type,Dt.type]),Ft=class{constructor(e,{isCaseSensitive:t=q.isCaseSensitive,ignoreDiacritics:n=q.ignoreDiacritics,includeMatches:r=q.includeMatches,minMatchCharLength:i=q.minMatchCharLength,ignoreLocation:a=q.ignoreLocation,findAllMatches:o=q.findAllMatches,location:s=q.location,threshold:c=q.threshold,distance:l=q.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?gt(e):e,this.pattern=e,this.query=Nt(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?gt(e):e;let a=0,o=[],s=0,c=!1;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0,c=!1;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:l,indices:u,score:d}=r.search(e);if(l){a+=1,s+=d;let e=r.constructor.type;e.startsWith(`inverse`)&&(c=!0),n&&(Pt.has(e)?o.push(...u):o.push(u))}else{s=0,a=0,o.length=0,c=!1;break}}if(a){let e={isMatch:!0,score:s/a};return c&&(e.hasInverse=!0),n&&(e.indices=pt(o)),e}}return{isMatch:!1,score:1}}},It=[];function Lt(...e){It.push(...e)}function Rt(e,t){for(let n=0,r=It.length;n<r;n+=1){let r=It[n];if(r.condition(e,t))return new r(e,t)}return new _t(e,t)}var zt={AND:`$and`,OR:`$or`},Bt={PATH:`$path`,PATTERN:`$val`},Vt=e=>!!(e[zt.AND]||e[zt.OR]),Ht=e=>!!e[Bt.PATH],Ut=e=>!Ie(e)&&Ve(e)&&!Vt(e),Wt=e=>({[zt.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Gt(e,t,{auto:n=!0}={}){let r=e=>{if(G(e)){let r={keyId:null,pattern:e};return n&&(r.searcher=Rt(e,t)),r}let i=Object.keys(e),a=Ht(e);if(!a&&i.length>1&&!Vt(e))return r(Wt(e));if(Ut(e)){let r=a?e[Bt.PATH]:i[0],o=a?e[Bt.PATTERN]:e[r];if(!G(o))throw Error(Ke(r));let s={keyId:et(r),pattern:o};return n&&(s.searcher=Rt(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];Ie(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return Vt(e)||(e=Wt(e)),r(e)}function Kt(e,{ignoreFieldNorm:t=q.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),n}function qt(e,{ignoreFieldNorm:t=q.ignoreFieldNorm}){e.forEach(e=>{e.score=Kt(e.matches,{ignoreFieldNorm:t})})}var Jt=class{constructor(e){this.limit=e,this.heap=[]}get size(){return this.heap.length}shouldInsert(e){return this.size<this.limit||e<this.heap[0].score}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):e.score<this.heap[0].score&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(e){return this.heap.sort(e)}_bubbleUp(e){let t=this.heap;for(;e>0;){let n=e-1>>1;if(t[e].score<=t[n].score)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{e=r;let i=2*e+1,a=2*e+2;if(i<n&&t[i].score>t[r].score&&(r=i),a<n&&t[a].score>t[r].score&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function Yt(e,t){let n=e.matches;t.matches=[],K(n)&&n.forEach(e=>{if(!K(e.indices)||!e.indices.length)return;let{indices:n,value:r}=e,i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function Xt(e,t){t.score=e.score}function Zt(e,t,{includeMatches:n=q.includeMatches,includeScore:r=q.includeScore}={}){let i=[];return n&&i.push(Yt),r&&i.push(Xt),e.map(e=>{let{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach(t=>{t(e,r)}),r})}var Qt=/\b\w+\b/g;function $t({isCaseSensitive:e=!1,ignoreDiacritics:t=!1}={}){return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=gt(n)),n.match(Qt)||[]}}}function en(e,t,n){let r=new Map,i=new Map,a=0;function o(e,t,o,s){let c=n.tokenize(e);if(!c.length)return;a++;let l=new Map;for(let e of c)l.set(e,(l.get(e)||0)+1);for(let[e,n]of l){let a={docIdx:t,keyIdx:o,subIdx:s,tf:n},c=r.get(e);c||(c=[],r.set(e,c)),c.push(a),i.set(e,(i.get(e)||0)+1)}}for(let n of e){let{i:e,v:r,$:i}=n;if(r!==void 0){o(r,e,-1,-1);continue}if(i)for(let n=0;n<t;n++){let t=i[n];if(t)if(Array.isArray(t))for(let r of t)o(r.v,e,n,r.i??-1);else o(t.v,e,n,-1)}}return{terms:r,fieldCount:a,df:i}}function tn(e,t,n,r){let{i,v:a,$:o}=t;function s(t,n,a){let o=r.tokenize(t);if(!o.length)return;e.fieldCount++;let s=new Map;for(let e of o)s.set(e,(s.get(e)||0)+1);for(let[t,r]of s){let o={docIdx:i,keyIdx:n,subIdx:a,tf:r},s=e.terms.get(t);s||(s=[],e.terms.set(t,s)),s.push(o),e.df.set(t,(e.df.get(t)||0)+1)}}if(a!==void 0){s(a,-1,-1);return}if(o)for(let e=0;e<n;e++){let t=o[e];if(t)if(Array.isArray(t))for(let n of t)s(n.v,e,n.i??-1);else s(t.v,e,-1)}}function nn(e,t){for(let[n,r]of e.terms){let i=r.filter(e=>e.docIdx!==t),a=r.length-i.length;a>0&&(e.fieldCount-=a,e.df.set(n,(e.df.get(n)||0)-a),i.length===0?(e.terms.delete(n),e.df.delete(n)):e.terms.set(n,i))}}var rn=class{constructor(e,t,n){this.options={...q,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new Ze(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=Rt(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof ct))throw Error(Ge);if(this._myIndex=t||lt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=$t({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});this._invertedIndex=en(this._myIndex.records,this._myIndex.keys.length,e)}}add(e){if(K(e)&&(this._docs.push(e),this._myIndex.add(e),this._invertedIndex)){let e=this._myIndex.records[this._myIndex.records.length-1],t=$t({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});tn(this._invertedIndex,e,this._myIndex.keys.length,t)}}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){if(this._invertedIndex)for(let e of n)nn(this._invertedIndex,e);for(let e=n.length-1;e>=0;--e)this._docs.splice(n[e],1);this._myIndex.removeAll(n)}return t}removeAt(e){this._invertedIndex&&nn(this._invertedIndex,e);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),t}getIndex(){return this._myIndex}search(e,t){let{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options;if(G(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return ze(n)&&n>-1&&(e=e.slice(0,n)),e}let c=ze(n)&&n>0&&G(e),l;if(c){let t=new Jt(n);G(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),l=t.extractSorted(o)}else l=G(e)?G(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),qt(l,{ignoreFieldNorm:s}),a&&l.sort(o),ze(n)&&n>-1&&(l=l.slice(0,n));return Zt(l,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),{records:i}=this._myIndex,a=t?null:[];return i.forEach(({v:e,i,n:o})=>{if(!K(e))return;let{isMatch:s,score:c,indices:l}=r.searchIn(e);if(s){let r={item:e,idx:i,matches:[{score:c,value:e,norm:o,indices:l}]};t?(r.score=Kt(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):a.push(r)}}),a}_searchLogical(e){let t=Gt(e,this.options),n=(e,t,r)=>{if(!(`children`in e)){let{keyId:n,searcher:i}=e,a;return n===null?(a=[],this._myIndex.keys.forEach((e,n)=>{a.push(...this._findMatches({key:e,value:t[n],searcher:i}))})):a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i}),a&&a.length?[{idx:r,item:t,matches:a}]:[]}let{children:i,operator:a}=e,o=[];for(let e=0,s=i.length;e<s;e+=1){let s=i[e],c=n(s,t,r);if(c.length)o.push(...c);else if(a===zt.AND)return[]}return o},r=this._myIndex.records,i=new Map,a=[];return r.forEach(({$:e,i:r})=>{if(K(e)){let o=n(t,e,r);o.length&&(i.has(r)||(i.set(r,{idx:r,item:e,matches:[]}),a.push(i.get(r))),o.forEach(({matches:e})=>{i.get(r).matches.push(...e)}))}}),a}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),{keys:i,records:a}=this._myIndex,o=t?null:[];return a.forEach(({$:e,i:a})=>{if(!K(e))return;let s=[],c=!1,l=!1;if(i.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(s.push(...i),i[0].hasInverse&&(l=!0)):c=!0}),!(l&&c)&&s.length){let r={idx:a,item:e,matches:s};t?(r.score=Kt(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):o.push(r)}}),o}_findMatches({key:e,value:t,searcher:n}){if(!K(t))return[];let r=[];if(Ie(t))t.forEach(({v:t,i,n:a})=>{if(!K(t))return;let{isMatch:o,score:s,indices:c,hasInverse:l}=n.searchIn(t);o&&r.push({score:s,key:e,value:t,idx:i,norm:a,indices:c,hasInverse:l})});else{let{v:i,n:a}=t,{isMatch:o,score:s,indices:c,hasInverse:l}=n.searchIn(i);o&&r.push({score:s,key:e,value:i,norm:a,indices:c,hasInverse:l})}return r}},an=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=$t({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics});let n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let e of n){this.termSearchers.push(new _t(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let n=r.get(e)||0,a=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(a)}}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],n=0,r=0,i=0;for(let a=0;a<this.termSearchers.length;a++){let o=this.termSearchers[a].searchIn(e),s=this.idfWeights[a];r+=s,o.isMatch&&(i++,n+=s*(1-o.score),o.indices&&t.push(...o.indices))}if(i===0)return{isMatch:!1,score:1};let a=r>0?1-n/r:0,o={isMatch:!0,score:Math.max(.001,a)};return this.options.includeMatches&&t.length&&(o.indices=pt(t)),o}};rn.version=`7.3.0`,rn.createIndex=lt,rn.parseIndex=ut,rn.config=q,rn.match=function(e,t,n){return Rt(e,{...q,...n}).searchIn(t)},rn.parseQuery=Gt,Lt(Ft),Lt(an),rn.use=function(...e){e.forEach(e=>Lt(e))};function on(e,t){let n=new rn(t.filterProperties,{keys:[`title`]});if(!(e.target instanceof HTMLInputElement))return;let r=e.target.value,i=n.search(r).map(e=>e.item.key||e.item.keys.join(`|`));Object.keys(t.filters).forEach(e=>{t.querySelector(`[data-details="${e}"]`).parentElement.style.display=i.includes(e)||!r?``:`none`})}function sn(e,t){if(!(e.target instanceof HTMLElement))return;let n=e.target.getAttribute(`data-close`).replace(`|`,`-`);t.querySelector(`#filter-${n}`).reset(),t.dispatchEvent(new CustomEvent(`filter`)),t.requestUpdate()}var cn=Math.min,ln=Math.max,un=Math.round,dn=Math.floor,fn=e=>({x:e,y:e});function pn(e,t){return typeof e==`function`?e(t):e}function mn(e){return e.split(`-`)[0]}function hn(e){return e.split(`-`)[1]}function gn(e){return e===`x`?`y`:`x`}function _n(e){return e===`y`?`height`:`width`}function vn(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function yn(e){return gn(vn(e))}function bn(e){return{top:0,right:0,bottom:0,left:0,...e}}function xn(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:bn(e)}function Sn(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Cn(e,t,n){let{reference:r,floating:i}=e,a=vn(t),o=yn(t),s=_n(o),c=mn(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(hn(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function wn(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=pn(t,e),p=xn(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Sn(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Sn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Tn=50,En=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:wn},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Cn(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Tn&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Cn(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}};function Dn(){return typeof window<`u`}function On(e){return jn(e)?(e.nodeName||``).toLowerCase():`#document`}function kn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function An(e){return((jn(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function jn(e){return Dn()?e instanceof Node||e instanceof kn(e).Node:!1}function Mn(e){return Dn()?e instanceof Element||e instanceof kn(e).Element:!1}function Nn(e){return Dn()?e instanceof HTMLElement||e instanceof kn(e).HTMLElement:!1}function Pn(e){return!Dn()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof kn(e).ShadowRoot}function Fn(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Kn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function In(e){return/^(table|td|th)$/.test(On(e))}function Ln(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Rn=/transform|translate|scale|rotate|perspective|filter/,zn=/paint|layout|strict|content/,Bn=e=>!!e&&e!==`none`,Vn;function Hn(e){let t=Mn(e)?Kn(e):e;return Bn(t.transform)||Bn(t.translate)||Bn(t.scale)||Bn(t.rotate)||Bn(t.perspective)||!Wn()&&(Bn(t.backdropFilter)||Bn(t.filter))||Rn.test(t.willChange||``)||zn.test(t.contain||``)}function Un(e){let t=Jn(e);for(;Nn(t)&&!Gn(t);){if(Hn(t))return t;if(Ln(t))return null;t=Jn(t)}return null}function Wn(){return Vn??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Vn}function Gn(e){return/^(html|body|#document)$/.test(On(e))}function Kn(e){return kn(e).getComputedStyle(e)}function qn(e){return Mn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Jn(e){if(On(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Pn(e)&&e.host||An(e);return Pn(t)?t.host:t}function Yn(e){let t=Jn(e);return Gn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nn(t)&&Fn(t)?t:Yn(t)}function Xn(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Yn(e),i=r===e.ownerDocument?.body,a=kn(r);if(i){let e=Zn(a);return t.concat(a,a.visualViewport||[],Fn(r)?r:[],e&&n?Xn(e):[])}else return t.concat(r,Xn(r,[],n))}function Zn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qn(e){let t=Kn(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Nn(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=un(n)!==a||un(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function $n(e){return Mn(e)?e:e.contextElement}function er(e){let t=$n(e);if(!Nn(t))return fn(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Qn(t),o=(a?un(n.width):n.width)/r,s=(a?un(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var tr=fn(0);function nr(e){let t=kn(e);return!Wn()||!t.visualViewport?tr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==kn(e)?!1:t}function ir(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=$n(e),o=fn(1);t&&(r?Mn(r)&&(o=er(r)):o=er(e));let s=rr(a,n,r)?nr(a):fn(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=kn(a),t=r&&Mn(r)?kn(r):r,n=e,i=Zn(n);for(;i&&r&&t!==n;){let e=er(i),t=i.getBoundingClientRect(),r=Kn(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=kn(i),i=Zn(n)}}return Sn({width:u,height:d,x:c,y:l})}function ar(e,t){let n=qn(e).scrollLeft;return t?t.left+n:ir(An(e)).left+n}function or(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ar(e,n),y:n.top+t.scrollTop}}function sr(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=An(r),s=t?Ln(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=fn(1),u=fn(0),d=Nn(r);if((d||!d&&!a)&&((On(r)!==`body`||Fn(o))&&(c=qn(r)),d)){let e=ir(r);l=er(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?or(o,c):fn(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function cr(e){return Array.from(e.getClientRects())}function lr(e){let t=An(e),n=qn(e),r=e.ownerDocument.body,i=ln(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ln(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+ar(e),s=-n.scrollTop;return Kn(r).direction===`rtl`&&(o+=ln(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var ur=25;function dr(e,t){let n=kn(e),r=An(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Wn();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=ar(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=ur&&(a-=o)}else l<=ur&&(a+=l);return{width:a,height:o,x:s,y:c}}function fr(e,t){let n=ir(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Nn(e)?er(e):fn(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function pr(e,t,n){let r;if(t===`viewport`)r=dr(e,n);else if(t===`document`)r=lr(An(e));else if(Mn(t))r=fr(t,n);else{let n=nr(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Sn(r)}function mr(e,t){let n=Jn(e);return n===t||!Mn(n)||Gn(n)?!1:Kn(n).position===`fixed`||mr(n,t)}function hr(e,t){let n=t.get(e);if(n)return n;let r=Xn(e,[],!1).filter(e=>Mn(e)&&On(e)!==`body`),i=null,a=Kn(e).position===`fixed`,o=a?Jn(e):e;for(;Mn(o)&&!Gn(o);){let t=Kn(o),n=Hn(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Fn(o)&&!n&&mr(e,o))?r=r.filter(e=>e!==o):i=t,o=Jn(o)}return t.set(e,r),r}function gr(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ln(t)?[]:hr(t,this._c):[].concat(n),r],o=pr(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=pr(t,a[e],i);s=ln(n.top,s),c=cn(n.right,c),l=cn(n.bottom,l),u=ln(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function _r(e){let{width:t,height:n}=Qn(e);return{width:t,height:n}}function vr(e,t,n){let r=Nn(t),i=An(t),a=n===`fixed`,o=ir(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=fn(0);function l(){c.x=ar(i)}if(r||!r&&!a)if((On(t)!==`body`||Fn(i))&&(s=qn(t)),r){let e=ir(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?or(i,s):fn(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function yr(e){return Kn(e).position===`static`}function br(e,t){if(!Nn(e)||Kn(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return An(e)===n&&(n=n.ownerDocument.body),n}function xr(e,t){let n=kn(e);if(Ln(e))return n;if(!Nn(e)){let t=Jn(e);for(;t&&!Gn(t);){if(Mn(t)&&!yr(t))return t;t=Jn(t)}return n}let r=br(e,t);for(;r&&In(r)&&yr(r);)r=br(r,t);return r&&Gn(r)&&yr(r)&&!Hn(r)?n:r||Un(e)||n}var Sr=async function(e){let t=this.getOffsetParent||xr,n=this.getDimensions,r=await n(e.floating);return{reference:vr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Cr(e){return Kn(e).direction===`rtl`}var wr={convertOffsetParentRelativeRectToViewportRelativeRect:sr,getDocumentElement:An,getClippingRect:gr,getOffsetParent:xr,getElementRects:Sr,getClientRects:cr,getDimensions:_r,getScale:er,isElement:Mn,isRTL:Cr};function Tr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Er(e,t){let n=null,r,i=An(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=dn(d),h=dn(i.clientWidth-(u+f)),g=dn(i.clientHeight-(d+p)),_=dn(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:ln(0,cn(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Tr(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Dr(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=$n(e),u=i||a?[...l?Xn(l):[],...t?Xn(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Er(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?ir(e):null;c&&g();function g(){let t=ir(e);h&&!Tr(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Or=(e,t,n)=>{let r=new Map,i={platform:wr,...n},a={...i.platform,_c:r};return En(e,t,{...i,platform:a})};function kr(e){let t=e.renderRoot.querySelector(`.inline-container-wrapper`),n=e.renderRoot.querySelector(`[popover]`);return Dr(t,n,()=>{n.matches(`:popover-open`)&&Or(t,n,{strategy:`fixed`}).then(({x:e,y:r})=>{Object.assign(n.style,{left:`${e}px`,top:`${r}px`,width:`${t.getBoundingClientRect().width}px`})})},{animationFrame:!0})}function Ar(e){e.renderRoot.querySelector(`#eox-itemfilter-input-search`).value=``,on({target:{value:``}},e)}function jr(e,t){t.inlineMode&&e.stopPropagation()}function Mr(e){e.inlineMode&&(e.showDropdown=!0)}function Nr(e,t){t.inlineMode&&(e.stopPropagation(),t.showDropdown=!0)}function Pr(e,t){t.inlineMode&&e.key===`Escape`&&t.showDropdown&&(Ar(t),t.showDropdown=!1)}function Fr(e,t){t.inlineMode&&e.target instanceof HTMLElement&&e.target.tagName!==`DROPDOWN-FORM`&&e.target.tagName!==`EOX-ITEMFILTER`&&t.showDropdown&&(Ar(t),t.showDropdown=!1)}var X=11102230246251565e-32,Z=134217729,Ir=(3+8*X)*X;function Lr(e,t,n,r,i){let a,o,s,c,l=t[0],u=r[0],d=0,f=0;u>l==u>-l?(a=l,l=t[++d]):(a=u,u=r[++f]);let p=0;if(d<e&&f<n)for(u>l==u>-l?(o=l+a,s=a-(o-l),l=t[++d]):(o=u+a,s=a-(o-u),u=r[++f]),a=o,s!==0&&(i[p++]=s);d<e&&f<n;)u>l==u>-l?(o=a+l,c=o-a,s=a-(o-c)+(l-c),l=t[++d]):(o=a+u,c=o-a,s=a-(o-c)+(u-c),u=r[++f]),a=o,s!==0&&(i[p++]=s);for(;d<e;)o=a+l,c=o-a,s=a-(o-c)+(l-c),l=t[++d],a=o,s!==0&&(i[p++]=s);for(;f<n;)o=a+u,c=o-a,s=a-(o-c)+(u-c),u=r[++f],a=o,s!==0&&(i[p++]=s);return(a!==0||p===0)&&(i[p++]=a),p}function Rr(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function Q(e){return new Float64Array(e)}var zr=(3+16*X)*X,Br=(2+12*X)*X,Vr=(9+64*X)*X*X,Hr=Q(4),Ur=Q(8),Wr=Q(12),Gr=Q(16),Kr=Q(4);function qr(e,t,n,r,i,a,o){let s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=e-i,E=n-i,D=t-a,O=r-a;b=T*O,f=Z*T,p=f-(f-T),m=T-p,f=Z*O,h=f-(f-O),g=O-h,x=m*g-(b-p*h-m*h-p*g),S=D*E,f=Z*D,p=f-(f-D),m=D-p,f=Z*E,h=f-(f-E),g=E-h,C=m*g-(S-p*h-m*h-p*g),_=x-C,d=x-_,Hr[0]=x-(_+d)+(d-C),v=b+_,d=v-b,y=b-(v-d)+(_-d),_=y-S,d=y-_,Hr[1]=y-(_+d)+(d-S),w=v+_,d=w-v,Hr[2]=v-(w-d)+(_-d),Hr[3]=w;let k=Rr(4,Hr),A=Br*o;if(k>=A||-k>=A||(d=e-T,s=e-(T+d)+(d-i),d=n-E,l=n-(E+d)+(d-i),d=t-D,c=t-(D+d)+(d-a),d=r-O,u=r-(O+d)+(d-a),s===0&&c===0&&l===0&&u===0)||(A=Vr*o+Ir*Math.abs(k),k+=T*u+O*s-(D*l+E*c),k>=A||-k>=A))return k;b=s*O,f=Z*s,p=f-(f-s),m=s-p,f=Z*O,h=f-(f-O),g=O-h,x=m*g-(b-p*h-m*h-p*g),S=c*E,f=Z*c,p=f-(f-c),m=c-p,f=Z*E,h=f-(f-E),g=E-h,C=m*g-(S-p*h-m*h-p*g),_=x-C,d=x-_,Kr[0]=x-(_+d)+(d-C),v=b+_,d=v-b,y=b-(v-d)+(_-d),_=y-S,d=y-_,Kr[1]=y-(_+d)+(d-S),w=v+_,d=w-v,Kr[2]=v-(w-d)+(_-d),Kr[3]=w;let ee=Lr(4,Hr,4,Kr,Ur);b=T*u,f=Z*T,p=f-(f-T),m=T-p,f=Z*u,h=f-(f-u),g=u-h,x=m*g-(b-p*h-m*h-p*g),S=D*l,f=Z*D,p=f-(f-D),m=D-p,f=Z*l,h=f-(f-l),g=l-h,C=m*g-(S-p*h-m*h-p*g),_=x-C,d=x-_,Kr[0]=x-(_+d)+(d-C),v=b+_,d=v-b,y=b-(v-d)+(_-d),_=y-S,d=y-_,Kr[1]=y-(_+d)+(d-S),w=v+_,d=w-v,Kr[2]=v-(w-d)+(_-d),Kr[3]=w;let j=Lr(ee,Ur,4,Kr,Wr);return b=s*u,f=Z*s,p=f-(f-s),m=s-p,f=Z*u,h=f-(f-u),g=u-h,x=m*g-(b-p*h-m*h-p*g),S=c*l,f=Z*c,p=f-(f-c),m=c-p,f=Z*l,h=f-(f-l),g=l-h,C=m*g-(S-p*h-m*h-p*g),_=x-C,d=x-_,Kr[0]=x-(_+d)+(d-C),v=b+_,d=v-b,y=b-(v-d)+(_-d),_=y-S,d=y-_,Kr[1]=y-(_+d)+(d-S),w=v+_,d=w-v,Kr[2]=v-(w-d)+(_-d),Kr[3]=w,Gr[Lr(j,Wr,4,Kr,Gr)-1]}function Jr(e,t,n,r,i,a){let o=(t-a)*(n-i),s=(e-i)*(r-a),c=o-s,l=Math.abs(o+s);return Math.abs(c)>=zr*l?c:-qr(e,t,n,r,i,a,l)}(7+56*X)*X,(3+28*X)*X,(26+288*X)*X*X,Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(8),Q(8),Q(8),Q(4),Q(8),Q(8),Q(8),Q(12),Q(192),Q(192),(10+96*X)*X,(4+48*X)*X,(44+576*X)*X*X,Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(8),Q(8),Q(8),Q(8),Q(8),Q(8),Q(8),Q(8),Q(8),Q(4),Q(4),Q(4),Q(8),Q(16),Q(16),Q(16),Q(32),Q(32),Q(48),Q(64),Q(1152),Q(1152),(16+224*X)*X,(5+72*X)*X,(71+1408*X)*X*X,Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(24),Q(24),Q(24),Q(24),Q(24),Q(24),Q(24),Q(24),Q(24),Q(24),Q(1152),Q(1152),Q(1152),Q(1152),Q(1152),Q(2304),Q(2304),Q(3456),Q(5760),Q(8),Q(8),Q(8),Q(16),Q(24),Q(48),Q(48),Q(96),Q(192),Q(384),Q(384),Q(384),Q(768),Q(96),Q(96),Q(96),Q(1152);function Yr(e,t){var n,r,i=0,a,o,s,c,l,u,d,f=e[0],p=e[1],m=t.length;for(n=0;n<m;n++){r=0;var h=t[n],g=h.length-1;if(u=h[0],u[0]!==h[g][0]&&u[1]!==h[g][1])throw Error(`First and last coordinates in a ring must be the same`);for(o=u[0]-f,s=u[1]-p;r<g;r++){if(d=h[r+1],c=d[0]-f,l=d[1]-p,s===0&&l===0){if(c<=0&&o>=0||o<=0&&c>=0)return 0}else if(l>=0&&s<=0||l<=0&&s>=0){if(a=Jr(o,c,s,l,0,0),a===0)return 0;(a>0&&l>0&&s<=0||a<0&&l<=0&&s>0)&&i++}u=d,s=l,o=c}}return i%2!=0}var Xr=6371008.8,Zr={centimeters:Xr*100,centimetres:Xr*100,degrees:360/(2*Math.PI),feet:Xr*3.28084,inches:Xr*39.37,kilometers:Xr/1e3,kilometres:Xr/1e3,meters:Xr,metres:Xr,miles:Xr/1609.344,millimeters:Xr*1e3,millimetres:Xr*1e3,nauticalmiles:Xr/1852,radians:1,yards:Xr*1.0936};function Qr(e,t,n={}){let r={type:`Feature`};return(n.id===0||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function $r(e,t,n={}){if(!e)throw Error(`coordinates is required`);if(!Array.isArray(e))throw Error(`coordinates must be an Array`);if(e.length<2)throw Error(`coordinates must be at least 2 numbers long`);if(!oi(e[0])||!oi(e[1]))throw Error(`coordinates must contain numbers`);return Qr({type:`Point`,coordinates:e},t,n)}function ei(e,t,n={}){if(e.length<2)throw Error(`coordinates must be an array of two or more positions`);return Qr({type:`LineString`,coordinates:e},t,n)}function ti(e,t={}){let n={type:`FeatureCollection`};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function ni(e,t,n={}){return Qr({type:`MultiLineString`,coordinates:e},t,n)}function ri(e,t=`kilometers`){let n=Zr[t];if(!n)throw Error(t+` units is invalid`);return e*n}function ii(e){return e%(2*Math.PI)*180/Math.PI}function ai(e){return e%360*Math.PI/180}function oi(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function si(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ci(e){if(!e)throw Error(`coord is required`);if(!Array.isArray(e)){if(e.type===`Feature`&&e.geometry!==null&&e.geometry.type===`Point`)return[...e.geometry.coordinates];if(e.type===`Point`)return[...e.coordinates]}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return[...e];throw Error(`coord must be GeoJSON Point or an Array of numbers`)}function li(e){if(Array.isArray(e))return e;if(e.type===`Feature`){if(e.geometry!==null)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw Error(`coords must be GeoJSON Feature, Geometry Object or an Array`)}function ui(e){return e.type===`Feature`?e.geometry:e}function di(e,t){return e.type===`FeatureCollection`?`FeatureCollection`:e.type===`GeometryCollection`?`GeometryCollection`:e.type===`Feature`&&e.geometry!==null?e.geometry.type:e.type}function fi(e,t,n={}){if(!e)throw Error(`point is required`);if(!t)throw Error(`polygon is required`);let r=ci(e),i=ui(t),a=i.type,o=t.bbox,s=i.coordinates;if(o&&pi(r,o)===!1)return!1;a===`Polygon`&&(s=[s]);let c=!1;for(var l=0;l<s.length;++l){let e=Yr(r,s[l]);if(e===0)return!n.ignoreBoundary;e&&(c=!0)}return c}function pi(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}var mi=class{constructor(e=[],t=hi){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let e=(this.length>>1)-1;e>=0;e--)this._down(e)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;let 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){let{data:t,compare:n}=this,r=t[e];for(;e>0;){let i=e-1>>1,a=t[i];if(n(r,a)>=0)break;t[e]=a,e=i}t[e]=r}_down(e){let{data:t,compare:n}=this,r=this.length>>1,i=t[e];for(;e<r;){let r=(e<<1)+1,a=t[r],o=r+1;if(o<this.length&&n(t[o],a)<0&&(r=o,a=t[o]),n(a,i)>=0)break;t[e]=a,e=r}t[e]=i}};function hi(e,t){return e<t?-1:+(e>t)}function gi(e,t){return e.p.x>t.p.x?1:e.p.x<t.p.x?-1:e.p.y===t.p.y||e.p.y>t.p.y?1:-1}function _i(e,t){return e.rightSweepEvent.p.x>t.rightSweepEvent.p.x?1:e.rightSweepEvent.p.x<t.rightSweepEvent.p.x?-1:e.rightSweepEvent.p.y===t.rightSweepEvent.p.y||e.rightSweepEvent.p.y<t.rightSweepEvent.p.y?1:-1}var vi=class{constructor(e,t,n,r){this.p={x:e[0],y:e[1]},this.featureId=t,this.ringId=n,this.eventId=r,this.otherEvent=null,this.isLeftEndpoint=null}isSamePoint(e){return this.p.x===e.p.x&&this.p.y===e.p.y}};function yi(e,t){if(e.type===`FeatureCollection`){let n=e.features;for(let e=0;e<n.length;e++)Ci(n[e],t)}else Ci(e,t)}var bi=0,xi=0,Si=0;function Ci(e,t){let n=e.type===`Feature`?e.geometry:e,r=n.coordinates;(n.type===`Polygon`||n.type===`MultiLineString`)&&(r=[r]),n.type===`LineString`&&(r=[[r]]);for(let e=0;e<r.length;e++)for(let n=0;n<r[e].length;n++){let i=r[e][n][0],a=null;xi+=1;for(let o=0;o<r[e][n].length-1;o++){a=r[e][n][o+1];let s=new vi(i,bi,xi,Si),c=new vi(a,bi,xi,Si+1);s.otherEvent=c,c.otherEvent=s,gi(s,c)>0?(c.isLeftEndpoint=!0,s.isLeftEndpoint=!1):(s.isLeftEndpoint=!0,c.isLeftEndpoint=!1),t.push(s),t.push(c),i=a,Si+=1}}bi+=1}var wi=class{constructor(e){this.leftSweepEvent=e,this.rightSweepEvent=e.otherEvent}};function Ti(e,t){if(e===null||t===null||e.leftSweepEvent.ringId===t.leftSweepEvent.ringId&&(e.rightSweepEvent.isSamePoint(t.leftSweepEvent)||e.rightSweepEvent.isSamePoint(t.leftSweepEvent)||e.rightSweepEvent.isSamePoint(t.rightSweepEvent)||e.leftSweepEvent.isSamePoint(t.leftSweepEvent)||e.leftSweepEvent.isSamePoint(t.rightSweepEvent)))return!1;let n=e.leftSweepEvent.p.x,r=e.leftSweepEvent.p.y,i=e.rightSweepEvent.p.x,a=e.rightSweepEvent.p.y,o=t.leftSweepEvent.p.x,s=t.leftSweepEvent.p.y,c=t.rightSweepEvent.p.x,l=t.rightSweepEvent.p.y,u=(l-s)*(i-n)-(c-o)*(a-r),d=(c-o)*(r-s)-(l-s)*(n-o),f=(i-n)*(r-s)-(a-r)*(n-o);if(u===0)return!1;let p=d/u,m=f/u;return p>=0&&p<=1&&m>=0&&m<=1?[n+p*(i-n),r+p*(a-r)]:!1}function Ei(e,t){t||=!1;let n=[],r=new mi([],_i);for(;e.length;){let i=e.pop();if(i.isLeftEndpoint){let e=new wi(i);for(let a=0;a<r.data.length;a++){let o=r.data[a];if(t&&o.leftSweepEvent.featureId===i.featureId)continue;let s=Ti(e,o);s!==!1&&n.push(s)}r.push(e)}else i.isLeftEndpoint===!1&&r.pop()}return n}function Di(e,t){let n=new mi([],gi);return yi(e,n),Ei(n,t)}var Oi=Di;function ki(e,t,n={}){let{removeDuplicates:r=!0,ignoreSelfIntersections:i=!0}=n,a=[];e.type===`FeatureCollection`?a=a.concat(e.features):e.type===`Feature`?a.push(e):(e.type===`LineString`||e.type===`Polygon`||e.type===`MultiLineString`||e.type===`MultiPolygon`)&&a.push(Qr(e)),t.type===`FeatureCollection`?a=a.concat(t.features):t.type===`Feature`?a.push(t):(t.type===`LineString`||t.type===`Polygon`||t.type===`MultiLineString`||t.type===`MultiPolygon`)&&a.push(Qr(t));let o=Oi(ti(a),i),s=[];if(r){let e={};o.forEach(t=>{let n=t.join(`,`);e[n]||(e[n]=!0,s.push(t))})}else s=o;return ti(s.map(e=>$r(e)))}function Ai(e,t,n){if(e!==null)for(var r,i,a,o,s,c,l,u=0,d=0,f,p=e.type,m=p===`FeatureCollection`,h=p===`Feature`,g=m?e.features.length:1,_=0;_<g;_++){l=m?e.features[_].geometry:h?e.geometry:e,f=l?l.type===`GeometryCollection`:!1,s=f?l.geometries.length:1;for(var v=0;v<s;v++){var y=0,b=0;if(o=f?l.geometries[v]:l,o!==null){c=o.coordinates;var x=o.type;switch(u=n&&(x===`Polygon`||x===`MultiPolygon`)?1:0,x){case null:break;case`Point`:if(t(c,d,_,y,b)===!1)return!1;d++,y++;break;case`LineString`:case`MultiPoint`:for(r=0;r<c.length;r++){if(t(c[r],d,_,y,b)===!1)return!1;d++,x===`MultiPoint`&&y++}x===`LineString`&&y++;break;case`Polygon`:case`MultiLineString`:for(r=0;r<c.length;r++){for(i=0;i<c[r].length-u;i++){if(t(c[r][i],d,_,y,b)===!1)return!1;d++}x===`MultiLineString`&&y++,x===`Polygon`&&b++}x===`Polygon`&&y++;break;case`MultiPolygon`:for(r=0;r<c.length;r++){for(b=0,i=0;i<c[r].length;i++){for(a=0;a<c[r][i].length-u;a++){if(t(c[r][i][a],d,_,y,b)===!1)return!1;d++}b++}y++}break;case`GeometryCollection`:for(r=0;r<o.geometries.length;r++)if(Ai(o.geometries[r],t,n)===!1)return!1;break;default:throw Error(`Unknown Geometry Type`)}}}}}function ji(e,t){if(e.type===`Feature`)t(e,0);else if(e.type===`FeatureCollection`)for(var n=0;n<e.features.length&&t(e.features[n],n)!==!1;n++);}function Mi(e,t,n){var r=n;return ji(e,function(e,i){r=i===0&&n===void 0?e:t(r,e,i)}),r}function Ni(e,t){var n,r,i,a,o,s,c,l,u,d,f=0,p=e.type===`FeatureCollection`,m=e.type===`Feature`,h=p?e.features.length:1;for(n=0;n<h;n++){for(s=p?e.features[n].geometry:m?e.geometry:e,l=p?e.features[n].properties:m?e.properties:{},u=p?e.features[n].bbox:m?e.bbox:void 0,d=p?e.features[n].id:m?e.id:void 0,c=s?s.type===`GeometryCollection`:!1,o=c?s.geometries.length:1,i=0;i<o;i++){if(a=c?s.geometries[i]:s,a===null){if(t(null,f,l,u,d)===!1)return!1;continue}switch(a.type){case`Point`:case`LineString`:case`MultiPoint`:case`Polygon`:case`MultiLineString`:case`MultiPolygon`:if(t(a,f,l,u,d)===!1)return!1;break;case`GeometryCollection`:for(r=0;r<a.geometries.length;r++)if(t(a.geometries[r],f,l,u,d)===!1)return!1;break;default:throw Error(`Unknown Geometry Type`)}}f++}}function Pi(e,t){Ni(e,function(e,n,r,i,a){var o=e===null?null:e.type;switch(o){case null:case`Point`:case`LineString`:case`Polygon`:return t(Qr(e,r,{bbox:i,id:a}),n,0)===!1?!1:void 0}var s;switch(o){case`MultiPoint`:s=`Point`;break;case`MultiLineString`:s=`LineString`;break;case`MultiPolygon`:s=`Polygon`;break}for(var c=0;c<e.coordinates.length;c++){var l=e.coordinates[c];if(t(Qr({type:s,coordinates:l},r),n,c)===!1)return!1}})}function Fi(e,t={}){let n=ui(e);switch(!t.properties&&e.type===`Feature`&&(t.properties=e.properties),n.type){case`Polygon`:return Ii(n,t);case`MultiPolygon`:return Li(n,t);default:throw Error(`invalid poly`)}}function Ii(e,t={}){let n=ui(e).coordinates;return Ri(n,t.properties?t.properties:e.type===`Feature`?e.properties:{})}function Li(e,t={}){let n=ui(e).coordinates,r=t.properties?t.properties:e.type===`Feature`?e.properties:{},i=[];return n.forEach(e=>{i.push(Ri(e,r))}),ti(i)}function Ri(e,t){return e.length>1?ni(e,t):ei(e[0],t)}function zi(e,t,{ignoreSelfIntersections:n=!0}={ignoreSelfIntersections:!0}){let r=!0;return Pi(e,e=>{Pi(t,t=>{if(r===!1)return!1;r=Bi(e.geometry,t.geometry,n)})}),r}function Bi(e,t,n){switch(e.type){case`Point`:switch(t.type){case`Point`:return!Ki(e.coordinates,t.coordinates);case`LineString`:return!Vi(t,e);case`Polygon`:return!fi(e,t)}break;case`LineString`:switch(t.type){case`Point`:return!Vi(e,t);case`LineString`:return!Hi(e,t,n);case`Polygon`:return!Ui(t,e,n)}break;case`Polygon`:switch(t.type){case`Point`:return!fi(t,e);case`LineString`:return!Ui(e,t,n);case`Polygon`:return!Wi(t,e,n)}}return!1}function Vi(e,t){for(let n=0;n<e.coordinates.length-1;n++)if(Gi(e.coordinates[n],e.coordinates[n+1],t.coordinates))return!0;return!1}function Hi(e,t,n){return ki(e,t,{ignoreSelfIntersections:n}).features.length>0}function Ui(e,t,n){for(let n of t.coordinates)if(fi(n,e))return!0;return ki(t,Fi(e),{ignoreSelfIntersections:n}).features.length>0}function Wi(e,t,n){for(let n of e.coordinates[0])if(fi(n,t))return!0;for(let n of t.coordinates[0])if(fi(n,e))return!0;return ki(Fi(e),Fi(t),{ignoreSelfIntersections:n}).features.length>0}function Gi(e,t,n){let r=n[0]-e[0],i=n[1]-e[1],a=t[0]-e[0],o=t[1]-e[1];return r*o-i*a===0?Math.abs(a)>=Math.abs(o)?a>0?e[0]<=n[0]&&n[0]<=t[0]:t[0]<=n[0]&&n[0]<=e[0]:o>0?e[1]<=n[1]&&n[1]<=t[1]:t[1]<=n[1]&&n[1]<=e[1]:!1}function Ki(e,t){return e[0]===t[0]&&e[1]===t[1]}function qi(e,t,{ignoreSelfIntersections:n=!0}={}){let r=!1;return Pi(e,e=>{Pi(t,t=>{if(r===!0)return!0;r=!zi(e.geometry,t.geometry,{ignoreSelfIntersections:n})})}),r}var Ji=qi;function Yi(e,t={}){if(e.bbox!=null&&!0!==t.recompute)return e.bbox;let n=[1/0,1/0,-1/0,-1/0];return Ai(e,e=>{n[0]>e[0]&&(n[0]=e[0]),n[1]>e[1]&&(n[1]=e[1]),n[2]<e[0]&&(n[2]=e[0]),n[3]<e[1]&&(n[3]=e[1])}),n}function Xi(e,t,n={}){let r=ci(e),i=li(t);for(let e=0;e<i.length-1;e++){let t=!1;if(n.ignoreEndVertices&&(e===0&&(t=`start`),e===i.length-2&&(t=`end`),e===0&&e+1===i.length-1&&(t=`both`)),Zi(i[e],i[e+1],r,t,n.epsilon===void 0?null:n.epsilon))return!0}return!1}function Zi(e,t,n,r,i){let a=n[0],o=n[1],s=e[0],c=e[1],l=t[0],u=t[1],d=n[0]-s,f=n[1]-c,p=l-s,m=u-c,h=d*m-f*p;if(i!==null){if(Math.abs(h)>i)return!1}else if(h!==0)return!1;return Math.abs(p)===Math.abs(m)&&Math.abs(p)===0?r?!1:n[0]===e[0]&&n[1]===e[1]:r?r===`start`?Math.abs(p)>=Math.abs(m)?p>0?s<a&&a<=l:l<=a&&a<s:m>0?c<o&&o<=u:u<=o&&o<c:r===`end`?Math.abs(p)>=Math.abs(m)?p>0?s<=a&&a<l:l<a&&a<=s:m>0?c<=o&&o<u:u<o&&o<=c:r===`both`?Math.abs(p)>=Math.abs(m)?p>0?s<a&&a<l:l<a&&a<s:m>0?c<o&&o<u:u<o&&o<c:!1:Math.abs(p)>=Math.abs(m)?p>0?s<=a&&a<=l:l<=a&&a<=s:m>0?c<=o&&o<=u:u<=o&&o<=c}var Qi=l(s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self).RBush=r()})(e,function(){"use strict";function e(e,r,i,a,o){(function e(n,r,i,a,o){for(;a>i;){if(a-i>600){var s=a-i+1,c=r-i+1,l=Math.log(s),u=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*u*(s-u)/s)*(c-s/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-c*u/s+d)),Math.min(a,Math.floor(r+(s-c)*u/s+d)),o)}var f=n[r],p=i,m=a;for(t(n,i,r),o(n[a],f)>0&&t(n,i,a);p<m;){for(t(n,p,m),p++,m--;o(n[p],f)<0;)p++;for(;o(n[m],f)>0;)m--}o(n[i],f)===0?t(n,i,m):t(n,++m,a),m<=r&&(i=m+1),r<=m&&(a=m-1)}})(e,r,i||0,a||e.length-1,o||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return e<t?-1:+(e>t)}var r=function(e){e===void 0&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function a(e,t){o(e,0,e.children.length,t,e)}function o(e,t,n,r,i){i||=m(null),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var a=t;a<n;a++){var o=e.children[a];s(i,e.leaf?r(o):o)}return i}function s(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function c(e,t){return e.minX-t.minX}function l(e,t){return e.minY-t.minY}function u(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function p(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function m(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function h(t,n,r,i,a){for(var o=[n,r];o.length;)if(!((r=o.pop())-(n=o.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,a),o.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!p(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var a=0;a<t.children.length;a++){var o=t.children[a],s=t.leaf?r(o):o;p(e,s)&&(t.leaf?n.push(o):f(e,s)?this._all(o,n):i.push(o))}t=i.pop()}return n},r.prototype.collides=function(e){var t=this.data;if(!p(e,t))return!1;for(var n=[];t;){for(var r=0;r<t.children.length;r++){var i=t.children[r],a=t.leaf?this.toBBox(i):i;if(p(e,a)){if(t.leaf||f(e,a))return!0;n.push(i)}}t=n.pop()}return!1},r.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},r.prototype.clear=function(){return this.data=m([]),this},r.prototype.remove=function(e,t){if(!e)return this;for(var n,r,a,o=this.data,s=this.toBBox(e),c=[],l=[];o||c.length;){if(o||(o=c.pop(),r=c[c.length-1],n=l.pop(),a=!0),o.leaf){var u=i(e,o.children,t);if(u!==-1)return o.children.splice(u,1),c.push(o),this._condense(c),this}a||o.leaf||!f(o,s)?r?(n++,o=r.children[n],a=!1):o=null:(c.push(o),l.push(n),n=0,r=o,o=o.children[0])}return this},r.prototype.toBBox=function(e){return e},r.prototype.compareMinX=function(e,t){return e.minX-t.minX},r.prototype.compareMinY=function(e,t){return e.minY-t.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(e){return this.data=e,this},r.prototype._all=function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},r.prototype._build=function(e,t,n,r){var i,o=n-t+1,s=this._maxEntries;if(o<=s)return a(i=m(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/s**(r-1))),(i=m([])).leaf=!1,i.height=r;var c=Math.ceil(o/s),l=c*Math.ceil(Math.sqrt(s));h(e,t,n,l,this.compareMinX);for(var u=t;u<=n;u+=l){var d=Math.min(u+l-1,n);h(e,u,d,c,this.compareMinY);for(var f=u;f<=d;f+=c){var p=Math.min(f+c-1,d);i.children.push(this._build(e,f,p,r-1))}}return a(i,this.toBBox),i},r.prototype._chooseSubtree=function(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){for(var i=1/0,a=1/0,o=void 0,s=0;s<t.children.length;s++){var c=t.children[s],l=u(c),d=(f=e,p=c,(Math.max(p.maxX,f.maxX)-Math.min(p.minX,f.minX))*(Math.max(p.maxY,f.maxY)-Math.min(p.minY,f.minY))-l);d<a?(a=d,i=l<i?l:i,o=c):d===a&&l<i&&(i=l,o=c)}t=o||t.children[0]}var f,p;return t},r.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],a=this._chooseSubtree(r,this.data,t,i);for(a.children.push(e),s(a,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),s=m(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,a(n,this.toBBox),a(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(e,t){this.data=m([e,t]),this.data.height=e.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,a,s,c,l,d,f=1/0,p=1/0,m=t;m<=n-t;m++){var h=o(e,0,m,this.toBBox),g=o(e,m,n,this.toBBox),_=(i=h,a=g,s=void 0,c=void 0,l=void 0,d=void 0,s=Math.max(i.minX,a.minX),c=Math.max(i.minY,a.minY),l=Math.min(i.maxX,a.maxX),d=Math.min(i.maxY,a.maxY),Math.max(0,l-s)*Math.max(0,d-c)),v=u(h)+u(g);_<f?(f=_,r=m,p=v<p?v:p):_===f&&v<p&&(p=v,r=m)}return r||n-t},r.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:c,i=e.leaf?this.compareMinY:l;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},r.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,a=o(e,0,t,i),c=o(e,n-t,n,i),l=d(a)+d(c),u=t;u<n-t;u++){var f=e.children[u];s(a,e.leaf?i(f):f),l+=d(a)}for(var p=n-t-1;p>=t;p--){var m=e.children[p];s(c,e.leaf?i(m):m),l+=d(c)}return l},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)e[t].children.length===0?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():a(e[t],this.toBBox)},r})}))(),1);function $i(e){var t;if(e.bbox)t=e.bbox;else if(Array.isArray(e)&&e.length===4)t=e;else if(Array.isArray(e)&&e.length===6)t=[e[0],e[1],e[3],e[4]];else if(e.type===`Feature`)t=Yi(e);else if(e.type===`FeatureCollection`)t=Yi(e);else throw Error(`invalid geojson`);return{minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}}var ea=class{constructor(e=9){this.tree=new Qi.default(e),this.tree.toBBox=$i}insert(e){if(e.type!==`Feature`)throw Error(`invalid feature`);return e.bbox=e.bbox?e.bbox:Yi(e),this.tree.insert(e),this}load(e){var t=[];return Array.isArray(e)?e.forEach(function(e){if(e.type!==`Feature`)throw Error(`invalid features`);e.bbox=e.bbox?e.bbox:Yi(e),t.push(e)}):ji(e,function(e){if(e.type!==`Feature`)throw Error(`invalid features`);e.bbox=e.bbox?e.bbox:Yi(e),t.push(e)}),this.tree.load(t),this}remove(e,t){if(e.type!==`Feature`)throw Error(`invalid feature`);return e.bbox=e.bbox?e.bbox:Yi(e),this.tree.remove(e,t),this}clear(){return this.tree.clear(),this}search(e){return ti(this.tree.search($i(e)))}collides(e){return this.tree.collides($i(e))}all(){return ti(this.tree.all())}toJSON(){return this.tree.toJSON()}fromJSON(e){return this.tree.fromJSON(e),this}};function ta(e){return new ea(e)}function na(e,t){if(t??={},!si(t))throw Error(`options is invalid`);var n=t.precision,r=t.coordinates,i=t.mutate;if(n=n==null||isNaN(n)?6:n,r=r==null||isNaN(r)?3:r,!e)throw Error(`<geojson> is required`);if(typeof n!=`number`)throw Error(`<precision> must be a number`);if(typeof r!=`number`)throw Error(`<coordinates> must be a number`);(i===!1||i===void 0)&&(e=JSON.parse(JSON.stringify(e)));var a=10**n;return Ai(e,function(e){ra(e,a,r)}),e}function ra(e,t,n){e.length>n&&e.splice(n,e.length);for(var r=0;r<e.length;r++)e[r]=Math.round(e[r]*t)/t;return e}function ia(e){if(!e)throw Error(`geojson is required`);let t=[];return Pi(e,e=>{aa(e,t)}),ti(t)}function aa(e,t){let n=[],r=e.geometry;if(r!==null){switch(r.type){case`Polygon`:n=li(r);break;case`LineString`:n=[li(r)]}n.forEach(n=>{oa(n,e.properties).forEach(e=>{e.id=t.length,t.push(e)})})}}function oa(e,t){let n=[];return e.reduce((e,r)=>{let i=ei([e,r],t);return i.bbox=sa(e,r),n.push(i),r}),n}function sa(e,t){let n=e[0],r=e[1],i=t[0],a=t[1];return[n<i?n:i,r<a?r:a,n>i?n:i,r>a?r:a]}function ca(e,t,n={}){var r=ci(e),i=ci(t),a=ai(i[1]-r[1]),o=ai(i[0]-r[0]),s=ai(r[1]),c=ai(i[1]),l=Math.sin(a/2)**2+Math.sin(o/2)**2*Math.cos(s)*Math.cos(c);return ri(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),n.units)}var la=Object.defineProperty,ua=Object.defineProperties,da=Object.getOwnPropertyDescriptors,fa=Object.getOwnPropertySymbols,pa=Object.prototype.hasOwnProperty,ma=Object.prototype.propertyIsEnumerable,ha=(e,t,n)=>t in e?la(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ga=(e,t)=>{for(var n in t||={})pa.call(t,n)&&ha(e,n,t[n]);if(fa)for(var n of fa(t))ma.call(t,n)&&ha(e,n,t[n]);return e},_a=(e,t)=>ua(e,da(t));function va(e,t,n={}){if(!e||!t)throw Error(`lines and inputPoint are required arguments`);let r=ci(t),i=$r([1/0,1/0],{lineStringIndex:-1,segmentIndex:-1,totalDistance:-1,lineDistance:-1,segmentDistance:-1,pointDistance:1/0,multiFeatureIndex:-1,index:-1,location:-1,dist:1/0}),a=0,o=0,s=-1;return Pi(e,function(e,c,l){s!==l&&(s=l,o=0);let u=li(e);for(let e=0;e<u.length-1;e++){let s=$r(u[e]),c=ci(s),d=$r(u[e+1]),f=ci(d),p=ca(s,d,n),m,h;f[0]===r[0]&&f[1]===r[1]?[m,h]=[f,!0]:c[0]===r[0]&&c[1]===r[1]?[m,h]=[c,!1]:[m,h]=Ta(c,f,r);let g=ca(t,m,n);if(g<i.properties.pointDistance){let t=ca(s,m,n);i=$r(m,{lineStringIndex:l,segmentIndex:h?e+1:e,totalDistance:a+t,lineDistance:o+t,segmentDistance:t,pointDistance:g,multiFeatureIndex:-1,index:-1,location:-1,dist:1/0}),i.properties=_a(ga({},i.properties),{multiFeatureIndex:i.properties.lineStringIndex,index:i.properties.segmentIndex,location:i.properties.totalDistance,dist:i.properties.pointDistance})}a+=p,o+=p}}),i}function ya(e,t){let[n,r,i]=e,[a,o,s]=t;return n*a+r*o+i*s}function ba(e,t){let[n,r,i]=e,[a,o,s]=t;return[r*s-i*o,i*a-n*s,n*o-r*a]}function xa(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2)}function Sa(e){let t=xa(e);return[e[0]/t,e[1]/t,e[2]/t]}function Ca(e){let t=ai(e[1]),n=ai(e[0]);return[Math.cos(t)*Math.cos(n),Math.cos(t)*Math.sin(n),Math.sin(t)]}function wa(e){let[t,n,r]=e,i=ii(Math.asin(Math.min(Math.max(r,-1),1)));return[ii(Math.atan2(n,t)),i]}function Ta(e,t,n){let r=Ca(e),i=Ca(t),a=Ca(n),o=ba(r,i);if(o[0]===0&&o[1]===0&&o[2]===0)return ya(r,i)>0?[[...t],!0]:[[...n],!1];let s=ba(o,a);if(s[0]===0&&s[1]===0&&s[2]===0)return[[...t],!0];let c=Sa(ba(s,o)),l=[-c[0],-c[1],-c[2]],u=ya(a,c)>ya(a,l)?c:l,d=Sa(o),f=ya(ba(r,u),d),p=ya(ba(u,i),d);return f>=0&&p>=0?[wa(u),!1]:ya(r,a)>ya(i,a)?[[...e],!1]:[[...t],!0]}function Ea(e,t){if(!e)throw Error(`line is required`);if(!t)throw Error(`splitter is required`);let n=di(e),r=di(t);if(n!==`LineString`)throw Error(`line must be LineString`);if(r===`FeatureCollection`)throw Error(`splitter cannot be a FeatureCollection`);if(r===`GeometryCollection`)throw Error(`splitter cannot be a GeometryCollection`);var i=na(t,{precision:7});switch(e.type!==`Feature`&&(e=Qr(e)),r){case`Point`:return Oa(e,i);case`MultiPoint`:return Da(e,i);case`LineString`:case`MultiLineString`:case`Polygon`:case`MultiPolygon`:return Da(e,ki(e,i,{ignoreSelfIntersections:!0}))}}function Da(e,t){var n=[],r=ta();return Pi(t,function(t){if(n.forEach(function(e,t){e.id=t}),!n.length)n=Oa(e,t).features,r.load(ti(n));else{var i=r.search(t);if(i.features.length){var a=ka(t,i);n=n.filter(function(e){return e.id!==a.id}),r.remove(a),ji(Oa(a,t),function(e){n.push(e),r.insert(e)})}}}),ti(n)}function Oa(e,t){var n=[],r=li(e)[0],i=li(e)[e.geometry.coordinates.length-1];if(Aa(r,ci(t))||Aa(i,ci(t)))return ti([e]);var a=ta(),o=ia(e);a.load(o);var s=a.search(t);if(!s.features.length)return ti([e]);var c=ka(t,s),l=Mi(o,function(e,r,i){var a=li(r)[1],o=ci(t);return i===c.id?(e.push(o),n.push(ei(e)),Aa(o,a)?[o]:[o,a]):(e.push(a),e)},[r]);return l.length>1&&n.push(ei(l)),ti(n)}function ka(e,t){if(!t.features.length)throw Error(`lines must contain features`);if(t.features.length===1)return t.features[0];var n,r=1/0;return ji(t,function(t){var i=va(t,e).properties.pointDistance;i<r&&(n=t,r=i)}),n}function Aa(e,t){return e[0]===t[0]&&e[1]===t[1]}function ja(e,t){var n=ui(e),r=ui(t),i=n.type,a=r.type;switch(i){case`Point`:switch(a){case`MultiPoint`:return Ma(n,r);case`LineString`:return Xi(n,r,{ignoreEndVertices:!0});case`Polygon`:case`MultiPolygon`:return fi(n,r,{ignoreBoundary:!0});default:throw Error(`feature2 `+a+` geometry not supported`)}case`MultiPoint`:switch(a){case`MultiPoint`:return Na(n,r);case`LineString`:return Pa(n,r);case`Polygon`:case`MultiPolygon`:return Fa(n,r);default:throw Error(`feature2 `+a+` geometry not supported`)}case`LineString`:switch(a){case`LineString`:return Ia(n,r);case`Polygon`:case`MultiPolygon`:return Ra(n,r);default:throw Error(`feature2 `+a+` geometry not supported`)}case`Polygon`:switch(a){case`Polygon`:case`MultiPolygon`:return za(n,r);default:throw Error(`feature2 `+a+` geometry not supported`)}default:throw Error(`feature1 `+i+` geometry not supported`)}}function Ma(e,t){var n,r=!1;for(n=0;n<t.coordinates.length;n++)if(Va(t.coordinates[n],e.coordinates)){r=!0;break}return r}function Na(e,t){for(var n=0;n<e.coordinates.length;n++){for(var r=!1,i=0;i<t.coordinates.length;i++)Va(e.coordinates[n],t.coordinates[i])&&(r=!0);if(!r)return!1}return!0}function Pa(e,t){for(var n=!1,r=0;r<e.coordinates.length;r++){if(!Xi(e.coordinates[r],t))return!1;n||=Xi(e.coordinates[r],t,{ignoreEndVertices:!0})}return n}function Fa(e,t){for(var n=!0,r=!1,i=!1,a=0;a<e.coordinates.length;a++){if(i=fi(e.coordinates[a],t),!i){n=!1;break}r||(i=fi(e.coordinates[a],t,{ignoreBoundary:!0}))}return n&&i}function Ia(e,t){for(var n=0;n<e.coordinates.length;n++)if(!Xi(e.coordinates[n],t))return!1;return!0}function La(e,t){let n=e.coordinates,r=[];for(let e=0;e<n.length-1;e++){let i=ei([n[e],n[e+1]]),a=Ea(i,Qr(t));a.features.length===0?r.push(i):r.push(...a.features)}return ti(r)}function Ra(e,t){if(!Ba(Yi(t),Yi(e)))return!1;for(let n of e.coordinates)if(!fi(n,t))return!1;let n=!1,r=La(e,t);for(let e of r.features){let r=Ha(e.geometry.coordinates[0],e.geometry.coordinates[1]);if(!fi(r,t))return!1;!n&&fi(r,t,{ignoreBoundary:!0})&&(n=!0)}return n}function za(e,t){var n=Yi(e);if(!Ba(Yi(t),n))return!1;for(var r=0;r<e.coordinates[0].length;r++)if(!fi(e.coordinates[0][r],t))return!1;return!0}function Ba(e,t){return!(e[0]>t[0]||e[2]<t[2]||e[1]>t[1]||e[3]<t[3])}function Va(e,t){return e[0]===t[0]&&e[1]===t[1]}function Ha(e,t){return[(e[0]+t[0])/2,(e[1]+t[1])/2]}var Ua=ja,Wa=(e,t)=>t?Ji(e,t):!0,Ga=(e,t)=>t?Ua(e,t):!0;function Ka(e,t=`highlight`,n=`title`){let r=(e,n=[])=>{let r=``,i=0,a=0;return n.forEach((n,o)=>{let s=n[1]+1;o&&a>n[0]||(a=n[1],r+=[e.substring(i,n[0]),`<mark class="${t}">`,e.substring(n[0],s),`</mark>`].join(``),i=s)}),r+=e.substring(i),r};return e.filter(({matches:e})=>e&&e.length).map(({item:e,matches:t})=>{let i={...e};return t.forEach(e=>{e.key===n&&(i.highlightedText=r(io(e.value),ao(e.indices)))}),i})}var $=l(s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))}))(),1),qa,Ja=(e,t)=>{qa=new rn(e,{threshold:.4,distance:50,ignoreLocation:!0,includeMatches:!0,useExtendedSearch:!0,...t})},Ya=async(e,t,n)=>{let r=Object.entries(t).filter(([,e])=>e.type===`text`||e.type===`select`||e.type===`multiselect`).reduce((e,[t,n])=>{let r=[],i=(e,i)=>{let a={};n.type===`text`?a[e]=`${i}`:a[t]=`="${e}"`,r.push(a)};return Object.entries(n.state).filter(([,e])=>e).forEach(([e,t])=>i(e,t)),r.length>0&&e.push({$or:r}),e},[]),i;if(!(r.length>0)&&n.matchAllWhenEmpty!==!1)i=e;else{let e={$and:[...r]},t=qa.search(e);i=n.enableHighlighting?Ka(t,`highlight`,n.titleProperty):t.map(e=>e.item)}let a=Object.entries(t).filter(([,e])=>e.type===`range`).reduce((e,[t,n])=>(e[t]={min:n.state.min,max:n.state.max,format:n.format},e),{});if(Object.keys(a).length>0){let e=[];for(let t=0;t<i.length;t++){let n={};for(let[e,r]of Object.entries(a)){let o=e=>r.format===`date`?(0,$.default)(e).valueOf():e,s=ro(e,i[t]);if(s)if(Array.isArray(s)){let t=`overlap`;t===`overlap`?n[e]=a[e].min<=o(s[1])&&o(s[0])<=a[e].max:t===`contain`&&(n[e]=o(s[0])>=a[e].min&&o(s[1])<=a[e].max)}else o(s)>=a[e].min&&o(s)<=a[e].max?n[e]=!0:n[e]=!1;else n[e]=!0}Object.values(n).every(e=>!!e)&&e.push(i[t])}i=[...e]}let o=Object.entries(t).filter(([,e])=>e.type===`spatial`).reduce((e,[t,n])=>(e[t]={geometry:n.state.geometry,mode:n.state.mode},e),{});if(Object.values(o).map(e=>e.geometry).filter(e=>!!e).length>0){let e=[];for(let t=0;t<i.length;t++){let n={};for(let e of Object.keys(o)){let r=ro(e,i[t]),a=o[e].mode||`within`;r&&(a===`within`?Ga(r,o[e].geometry):Wa(r,o[e].geometry))?n[e]=!0:n[e]=!1}Object.values(n).every(e=>!!e)&&e.push(i[t])}i=[...e]}return i};function Xa(e,t){return[{type:`Tile`,source:{type:`XYZ`,url:`https://tiles.maps.eox.at/wmts/1.0.0/osm_3857/default/g/{z}/{y}/{x}.jpg`,attribution:`{ OSM: Data © OpenStreetMap contributors and others, Rendering © EOX }`}},{type:`Vector`,properties:{id:`draw`},source:{type:`Vector`,...e&&{format:`GeoJSON`},...e&&{url:t}},zIndex:1,interactions:[{type:`draw`,options:{id:`drawInteraction`,type:`Box`,modify:!0}}]}]}function Za(e){if(!e.dirty)return null;switch(e.type){case`multiselect`:for(let t in e.state)e.state.hasOwnProperty(t)&&(e.state[t]=!1);break;case`range`:e.state.min=e.min,e.state.max=e.max;break;case`select`:for(let t in e.state)e.state.hasOwnProperty(t)&&(e.state[t]=!1);break;case`spatial`:e.state.geometry=void 0;break;case`text`:e.keys.forEach(t=>{e.state[t]=void 0});break}return delete e.stringifiedState,delete e.dirty,e}function Qa(e,t){return e*2+t}function $a(e){return Object.keys(e).map(t=>({title:V`${e[t].title||e[t].key}:
|
|
594
|
+
`}};customElements.define(`eox-itemfilter-expandcontainer`,Fe);function Ie(e){return Array.isArray?Array.isArray(e):We(e)===`[object Array]`}function Le(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Re(e){return e==null?``:Le(e)}function G(e){return typeof e==`string`}function ze(e){return typeof e==`number`}function Be(e){return e===!0||e===!1||He(e)&&We(e)==`[object Boolean]`}function Ve(e){return typeof e==`object`}function He(e){return Ve(e)&&e!==null}function K(e){return e!=null}function Ue(e){return!e.trim().length}function We(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Ge=`Incorrect 'index' type`,Ke=e=>`Invalid value for key ${e}`,qe=e=>`Pattern length exceeds max of ${e}.`,Je=e=>`Missing ${e} property in key`,Ye=e=>`Property 'weight' in key '${e}' must be a positive integer`,Xe=Object.prototype.hasOwnProperty,Ze=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=Qe(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function Qe(e){let t=null,n=null,r=null,i=1,a=null;if(G(e)||Ie(e))r=e,t=$e(e),n=et(e);else{if(!Xe.call(e,`name`))throw Error(Je(`name`));let o=e.name;if(r=o,Xe.call(e,`weight`)&&(i=e.weight,i<=0))throw Error(Ye(o));t=$e(o),n=et(o),a=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:a}}function $e(e){return Ie(e)?e:e.split(`.`)}function et(e){return Ie(e)?e.join(`.`):e}function tt(e,t){let n=[],r=!1,i=(e,t,a,o)=>{if(K(e))if(!t[a])n.push(o===void 0?e:{v:e,i:o});else{let s=e[t[a]];if(!K(s))return;if(a===t.length-1&&(G(s)||ze(s)||Be(s)||typeof s==`bigint`))n.push(o===void 0?Re(s):{v:Re(s),i:o});else if(Ie(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,a+1,e)}else t.length&&i(s,t,a+1,o)}};return i(e,G(t)?t.split(`.`):t,0),r?n:n[0]}var nt={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},rt={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},it={location:0,threshold:.6,distance:100},at={useExtendedSearch:!1,useTokenSearch:!1,getFn:tt,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},q=Object.freeze({...rt,...nt,...it,...at}),ot=/[^ ]+/g;function st(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=t.match(ot).length;if(n.has(i))return n.get(i);let a=1/i**(.5*e),o=parseFloat(Math.round(a*r)/r);return n.set(i,o),o},clear(){n.clear()}}}var ct=class{constructor({getFn:e=q.getFn,fieldNormWeight:t=q.fieldNormWeight}={}){this.norm=st(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,G(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();G(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)--this.records[t].i}removeAll(e){for(let t=e.length-1;t>=0;--t)this.records.splice(e[t],1);for(let e=0,t=this.records.length;e<t;e+=1)this.records[e].i=e}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!K(e)||Ue(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach((t,r)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(K(i)){if(Ie(i)){let e=[];for(let t=0,n=i.length;t<n;t+=1){let n=i[t];if(K(n)){if(G(n)){if(!Ue(n)){let r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(K(n.v)){let t=G(n.v)?n.v:Re(n.v);if(!Ue(t)){let r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}}n.$[r]=e}else if(G(i)&&!Ue(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}}}),this.records.push(n)}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function lt(e,t,{getFn:n=q.getFn,fieldNormWeight:r=q.fieldNormWeight}={}){let i=new ct({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(Qe)),i.setSources(t),i.create(),i}function ut(e,{getFn:t=q.getFn,fieldNormWeight:n=q.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new ct({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function J(e=[],t=q.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}var Y=32;function dt(e,t,n,{location:r=q.location,distance:i=q.distance,threshold:a=q.threshold,findAllMatches:o=q.findAllMatches,minMatchCharLength:s=q.minMatchCharLength,includeMatches:c=q.includeMatches,ignoreLocation:l=q.ignoreLocation}={}){if(t.length>Y)throw Error(qe(Y));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},g=s>1||c,_=g?Array(d):[],v;for(;(v=e.indexOf(t,m))>-1;){let e=h(0,v);if(p=Math.min(e,p),m=v+u,g){let e=0;for(;e<u;)_[v+e]=1,e+=1}}m=-1;let y=[],b=1,x=u+d,S=1<<u-1;for(let t=0;t<u;t+=1){let r=0,i=x;for(;r<i;)h(t,f+i)<=p?r=i:x=i,i=Math.floor((x-r)/2+r);x=i;let a=Math.max(1,f-i+1),s=o?d:Math.min(f+i,d)+u,c=Array(s+2);c[s+1]=(1<<t)-1;for(let r=s;r>=a;--r){let i=r-1,o=n[e[i]];if(g&&(_[i]=+!!o),c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),c[r]&S&&(b=h(t,i),b<=p)){if(p=b,m=i,m<=f)break;a=Math.max(1,2*f-m)}}if(h(t+1,f)>p)break;y=c}let C={isMatch:m>=0,score:Math.max(.001,b)};if(g){let e=J(_,s);e.length?c&&(C.indices=e):C.isMatch=!1}return C}function ft(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function pt(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){let r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}var mt={ł:`l`,Ł:`L`,đ:`d`,Đ:`D`,ø:`o`,Ø:`O`,ħ:`h`,Ħ:`H`,ŧ:`t`,Ŧ:`T`,ı:`i`,ß:`ss`},ht=RegExp(`[`+Object.keys(mt).join(``)+`]`,`g`),gt=String.prototype.normalize?e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(ht,e=>mt[e]):e=>e,_t=class{constructor(e,{location:t=q.location,threshold:n=q.threshold,distance:r=q.distance,includeMatches:i=q.includeMatches,findAllMatches:a=q.findAllMatches,minMatchCharLength:o=q.minMatchCharLength,isCaseSensitive:s=q.isCaseSensitive,ignoreDiacritics:c=q.ignoreDiacritics,ignoreLocation:l=q.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?gt(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:ft(e),startIndex:t})},d=this.pattern.length;if(d>Y){let e=0,t=d%Y,n=d-t;for(;e<n;)u(this.pattern.substr(e,Y),e),e+=Y;if(t){let e=d-Y;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?gt(e):e,this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=dt(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=pt(u)),p}},vt=class{constructor(e){this.pattern=e}static isMultiMatch(e){return yt(e,this.multiRegex)}static isSingleMatch(e){return yt(e,this.singleRegex)}search(e){return{isMatch:!1,score:1}}};function yt(e,t){let n=e.match(t);return n?n[1]:null}var bt=class extends vt{constructor(e){super(e)}static get type(){return`exact`}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},xt=class extends vt{constructor(e){super(e)}static get type(){return`inverse-exact`}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=e.indexOf(this.pattern)===-1;return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},St=class extends vt{constructor(e){super(e)}static get type(){return`prefix-exact`}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}},Ct=class extends vt{constructor(e){super(e)}static get type(){return`inverse-prefix-exact`}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},wt=class extends vt{constructor(e){super(e)}static get type(){return`suffix-exact`}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}},Tt=class extends vt{constructor(e){super(e)}static get type(){return`inverse-suffix-exact`}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}},Et=class extends vt{constructor(e,{location:t=q.location,threshold:n=q.threshold,distance:r=q.distance,includeMatches:i=q.includeMatches,findAllMatches:a=q.findAllMatches,minMatchCharLength:o=q.minMatchCharLength,isCaseSensitive:s=q.isCaseSensitive,ignoreDiacritics:c=q.ignoreDiacritics,ignoreLocation:l=q.ignoreLocation}={}){super(e),this._bitapSearch=new _t(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l})}static get type(){return`fuzzy`}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}},Dt=class extends vt{constructor(e){super(e)}static get type(){return`include`}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t=0,n,r=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,t))>-1;)t=n+i,r.push([n,t-1]);let a=!!r.length;return{isMatch:a,score:+!a,indices:r}}},Ot=[bt,Dt,St,Ct,Tt,wt,xt,Et],kt=Ot.length,At=`\0`,jt=`|`;function Mt(e){let t=[],n=e.length,r=0;for(;r<n;){for(;r<n&&e[r]===` `;)r++;if(r>=n)break;let i=r;for(;i<n&&e[i]!==` `&&e[i]!==`"`;)i++;if(i<n&&e[i]===`"`){for(i++;i<n;){if(e[i]===`"`){let t=i+1;if(t>=n||e[t]===` `){i++;break}if(e[t]===`$`&&(t+1>=n||e[t+1]===` `)){i+=2;break}}i++}t.push(e.substring(r,i)),r=i}else{for(;i<n&&e[i]!==` `;)i++;t.push(e.substring(r,i)),r=i}}return t}function Nt(e,t={}){return e.replace(/\\\|/g,At).split(jt).map(e=>{let n=Mt(e.replace(/\u0000/g,`|`).trim()).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){let i=n[e],a=!1,o=-1;for(;!a&&++o<kt;){let e=Ot[o],n=e.isMultiMatch(i);n&&(r.push(new e(n,t)),a=!0)}if(!a)for(o=-1;++o<kt;){let e=Ot[o],n=e.isSingleMatch(i);if(n){r.push(new e(n,t));break}}}return r})}var Pt=new Set([Et.type,Dt.type]),Ft=class{constructor(e,{isCaseSensitive:t=q.isCaseSensitive,ignoreDiacritics:n=q.ignoreDiacritics,includeMatches:r=q.includeMatches,minMatchCharLength:i=q.minMatchCharLength,ignoreLocation:a=q.ignoreLocation,findAllMatches:o=q.findAllMatches,location:s=q.location,threshold:c=q.threshold,distance:l=q.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?gt(e):e,this.pattern=e,this.query=Nt(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?gt(e):e;let a=0,o=[],s=0,c=!1;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0,c=!1;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:l,indices:u,score:d}=r.search(e);if(l){a+=1,s+=d;let e=r.constructor.type;e.startsWith(`inverse`)&&(c=!0),n&&(Pt.has(e)?o.push(...u):o.push(u))}else{s=0,a=0,o.length=0,c=!1;break}}if(a){let e={isMatch:!0,score:s/a};return c&&(e.hasInverse=!0),n&&(e.indices=pt(o)),e}}return{isMatch:!1,score:1}}},It=[];function Lt(...e){It.push(...e)}function Rt(e,t){for(let n=0,r=It.length;n<r;n+=1){let r=It[n];if(r.condition(e,t))return new r(e,t)}return new _t(e,t)}var zt={AND:`$and`,OR:`$or`},Bt={PATH:`$path`,PATTERN:`$val`},Vt=e=>!!(e[zt.AND]||e[zt.OR]),Ht=e=>!!e[Bt.PATH],Ut=e=>!Ie(e)&&Ve(e)&&!Vt(e),Wt=e=>({[zt.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Gt(e,t,{auto:n=!0}={}){let r=e=>{if(G(e)){let r={keyId:null,pattern:e};return n&&(r.searcher=Rt(e,t)),r}let i=Object.keys(e),a=Ht(e);if(!a&&i.length>1&&!Vt(e))return r(Wt(e));if(Ut(e)){let r=a?e[Bt.PATH]:i[0],o=a?e[Bt.PATTERN]:e[r];if(!G(o))throw Error(Ke(r));let s={keyId:et(r),pattern:o};return n&&(s.searcher=Rt(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];Ie(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return Vt(e)||(e=Wt(e)),r(e)}function Kt(e,{ignoreFieldNorm:t=q.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),n}function qt(e,{ignoreFieldNorm:t=q.ignoreFieldNorm}){e.forEach(e=>{e.score=Kt(e.matches,{ignoreFieldNorm:t})})}var Jt=class{constructor(e){this.limit=e,this.heap=[]}get size(){return this.heap.length}shouldInsert(e){return this.size<this.limit||e<this.heap[0].score}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):e.score<this.heap[0].score&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(e){return this.heap.sort(e)}_bubbleUp(e){let t=this.heap;for(;e>0;){let n=e-1>>1;if(t[e].score<=t[n].score)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{e=r;let i=2*e+1,a=2*e+2;if(i<n&&t[i].score>t[r].score&&(r=i),a<n&&t[a].score>t[r].score&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function Yt(e,t){let n=e.matches;t.matches=[],K(n)&&n.forEach(e=>{if(!K(e.indices)||!e.indices.length)return;let{indices:n,value:r}=e,i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function Xt(e,t){t.score=e.score}function Zt(e,t,{includeMatches:n=q.includeMatches,includeScore:r=q.includeScore}={}){let i=[];return n&&i.push(Yt),r&&i.push(Xt),e.map(e=>{let{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach(t=>{t(e,r)}),r})}var Qt=/\b\w+\b/g;function $t({isCaseSensitive:e=!1,ignoreDiacritics:t=!1}={}){return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=gt(n)),n.match(Qt)||[]}}}function en(e,t,n){let r=new Map,i=new Map,a=0;function o(e,t,o,s){let c=n.tokenize(e);if(!c.length)return;a++;let l=new Map;for(let e of c)l.set(e,(l.get(e)||0)+1);for(let[e,n]of l){let a={docIdx:t,keyIdx:o,subIdx:s,tf:n},c=r.get(e);c||(c=[],r.set(e,c)),c.push(a),i.set(e,(i.get(e)||0)+1)}}for(let n of e){let{i:e,v:r,$:i}=n;if(r!==void 0){o(r,e,-1,-1);continue}if(i)for(let n=0;n<t;n++){let t=i[n];if(t)if(Array.isArray(t))for(let r of t)o(r.v,e,n,r.i??-1);else o(t.v,e,n,-1)}}return{terms:r,fieldCount:a,df:i}}function tn(e,t,n,r){let{i,v:a,$:o}=t;function s(t,n,a){let o=r.tokenize(t);if(!o.length)return;e.fieldCount++;let s=new Map;for(let e of o)s.set(e,(s.get(e)||0)+1);for(let[t,r]of s){let o={docIdx:i,keyIdx:n,subIdx:a,tf:r},s=e.terms.get(t);s||(s=[],e.terms.set(t,s)),s.push(o),e.df.set(t,(e.df.get(t)||0)+1)}}if(a!==void 0){s(a,-1,-1);return}if(o)for(let e=0;e<n;e++){let t=o[e];if(t)if(Array.isArray(t))for(let n of t)s(n.v,e,n.i??-1);else s(t.v,e,-1)}}function nn(e,t){for(let[n,r]of e.terms){let i=r.filter(e=>e.docIdx!==t),a=r.length-i.length;a>0&&(e.fieldCount-=a,e.df.set(n,(e.df.get(n)||0)-a),i.length===0?(e.terms.delete(n),e.df.delete(n)):e.terms.set(n,i))}}var rn=class{constructor(e,t,n){this.options={...q,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new Ze(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=Rt(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof ct))throw Error(Ge);if(this._myIndex=t||lt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=$t({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});this._invertedIndex=en(this._myIndex.records,this._myIndex.keys.length,e)}}add(e){if(K(e)&&(this._docs.push(e),this._myIndex.add(e),this._invertedIndex)){let e=this._myIndex.records[this._myIndex.records.length-1],t=$t({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics});tn(this._invertedIndex,e,this._myIndex.keys.length,t)}}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){if(this._invertedIndex)for(let e of n)nn(this._invertedIndex,e);for(let e=n.length-1;e>=0;--e)this._docs.splice(n[e],1);this._myIndex.removeAll(n)}return t}removeAt(e){this._invertedIndex&&nn(this._invertedIndex,e);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),t}getIndex(){return this._myIndex}search(e,t){let{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options;if(G(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return ze(n)&&n>-1&&(e=e.slice(0,n)),e}let c=ze(n)&&n>0&&G(e),l;if(c){let t=new Jt(n);G(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),l=t.extractSorted(o)}else l=G(e)?G(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),qt(l,{ignoreFieldNorm:s}),a&&l.sort(o),ze(n)&&n>-1&&(l=l.slice(0,n));return Zt(l,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),{records:i}=this._myIndex,a=t?null:[];return i.forEach(({v:e,i,n:o})=>{if(!K(e))return;let{isMatch:s,score:c,indices:l}=r.searchIn(e);if(s){let r={item:e,idx:i,matches:[{score:c,value:e,norm:o,indices:l}]};t?(r.score=Kt(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):a.push(r)}}),a}_searchLogical(e){let t=Gt(e,this.options),n=(e,t,r)=>{if(!(`children`in e)){let{keyId:n,searcher:i}=e,a;return n===null?(a=[],this._myIndex.keys.forEach((e,n)=>{a.push(...this._findMatches({key:e,value:t[n],searcher:i}))})):a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i}),a&&a.length?[{idx:r,item:t,matches:a}]:[]}let{children:i,operator:a}=e,o=[];for(let e=0,s=i.length;e<s;e+=1){let s=i[e],c=n(s,t,r);if(c.length)o.push(...c);else if(a===zt.AND)return[]}return o},r=this._myIndex.records,i=new Map,a=[];return r.forEach(({$:e,i:r})=>{if(K(e)){let o=n(t,e,r);o.length&&(i.has(r)||(i.set(r,{idx:r,item:e,matches:[]}),a.push(i.get(r))),o.forEach(({matches:e})=>{i.get(r).matches.push(...e)}))}}),a}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),{keys:i,records:a}=this._myIndex,o=t?null:[];return a.forEach(({$:e,i:a})=>{if(!K(e))return;let s=[],c=!1,l=!1;if(i.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(s.push(...i),i[0].hasInverse&&(l=!0)):c=!0}),!(l&&c)&&s.length){let r={idx:a,item:e,matches:s};t?(r.score=Kt(r.matches,{ignoreFieldNorm:n}),t.shouldInsert(r.score)&&t.insert(r)):o.push(r)}}),o}_findMatches({key:e,value:t,searcher:n}){if(!K(t))return[];let r=[];if(Ie(t))t.forEach(({v:t,i,n:a})=>{if(!K(t))return;let{isMatch:o,score:s,indices:c,hasInverse:l}=n.searchIn(t);o&&r.push({score:s,key:e,value:t,idx:i,norm:a,indices:c,hasInverse:l})});else{let{v:i,n:a}=t,{isMatch:o,score:s,indices:c,hasInverse:l}=n.searchIn(i);o&&r.push({score:s,key:e,value:i,norm:a,indices:c,hasInverse:l})}return r}},an=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=$t({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics});let n=this.analyzer.tokenize(e),{df:r,fieldCount:i}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(let e of n){this.termSearchers.push(new _t(e,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));let n=r.get(e)||0,a=Math.log(1+(i-n+.5)/(n+.5));this.idfWeights.push(a)}}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};let t=[],n=0,r=0,i=0;for(let a=0;a<this.termSearchers.length;a++){let o=this.termSearchers[a].searchIn(e),s=this.idfWeights[a];r+=s,o.isMatch&&(i++,n+=s*(1-o.score),o.indices&&t.push(...o.indices))}if(i===0)return{isMatch:!1,score:1};let a=r>0?1-n/r:0,o={isMatch:!0,score:Math.max(.001,a)};return this.options.includeMatches&&t.length&&(o.indices=pt(t)),o}};rn.version=`7.3.0`,rn.createIndex=lt,rn.parseIndex=ut,rn.config=q,rn.match=function(e,t,n){return Rt(e,{...q,...n}).searchIn(t)},rn.parseQuery=Gt,Lt(Ft),Lt(an),rn.use=function(...e){e.forEach(e=>Lt(e))};function on(e,t){let n=new rn(t.filterProperties,{keys:[`title`]});if(!(e.target instanceof HTMLInputElement))return;let r=e.target.value,i=n.search(r).map(e=>e.item.key||e.item.keys.join(`|`));Object.keys(t.filters).forEach(e=>{t.querySelector(`[data-details="${e}"]`).parentElement.style.display=i.includes(e)||!r?``:`none`})}function sn(e,t){if(!(e.target instanceof HTMLElement))return;let n=e.target.getAttribute(`data-close`).replace(`|`,`-`);t.querySelector(`#filter-${n}`).reset(),t.dispatchEvent(new CustomEvent(`filter`)),t.requestUpdate()}var cn=Math.min,ln=Math.max,un=Math.round,dn=Math.floor,fn=e=>({x:e,y:e});function pn(e,t){return typeof e==`function`?e(t):e}function mn(e){return e.split(`-`)[0]}function hn(e){return e.split(`-`)[1]}function gn(e){return e===`x`?`y`:`x`}function _n(e){return e===`y`?`height`:`width`}function vn(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function yn(e){return gn(vn(e))}function bn(e){return{top:0,right:0,bottom:0,left:0,...e}}function xn(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:bn(e)}function Sn(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Cn(e,t,n){let{reference:r,floating:i}=e,a=vn(t),o=yn(t),s=_n(o),c=mn(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(hn(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function wn(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=pn(t,e),p=xn(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Sn(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Sn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Tn=50,En=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:wn},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Cn(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Tn&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Cn(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}};function Dn(){return typeof window<`u`}function On(e){return jn(e)?(e.nodeName||``).toLowerCase():`#document`}function kn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function An(e){return((jn(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function jn(e){return Dn()?e instanceof Node||e instanceof kn(e).Node:!1}function Mn(e){return Dn()?e instanceof Element||e instanceof kn(e).Element:!1}function Nn(e){return Dn()?e instanceof HTMLElement||e instanceof kn(e).HTMLElement:!1}function Pn(e){return!Dn()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof kn(e).ShadowRoot}function Fn(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Kn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function In(e){return/^(table|td|th)$/.test(On(e))}function Ln(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Rn=/transform|translate|scale|rotate|perspective|filter/,zn=/paint|layout|strict|content/,Bn=e=>!!e&&e!==`none`,Vn;function Hn(e){let t=Mn(e)?Kn(e):e;return Bn(t.transform)||Bn(t.translate)||Bn(t.scale)||Bn(t.rotate)||Bn(t.perspective)||!Wn()&&(Bn(t.backdropFilter)||Bn(t.filter))||Rn.test(t.willChange||``)||zn.test(t.contain||``)}function Un(e){let t=Jn(e);for(;Nn(t)&&!Gn(t);){if(Hn(t))return t;if(Ln(t))return null;t=Jn(t)}return null}function Wn(){return Vn??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Vn}function Gn(e){return/^(html|body|#document)$/.test(On(e))}function Kn(e){return kn(e).getComputedStyle(e)}function qn(e){return Mn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Jn(e){if(On(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Pn(e)&&e.host||An(e);return Pn(t)?t.host:t}function Yn(e){let t=Jn(e);return Gn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Nn(t)&&Fn(t)?t:Yn(t)}function Xn(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Yn(e),i=r===e.ownerDocument?.body,a=kn(r);if(i){let e=Zn(a);return t.concat(a,a.visualViewport||[],Fn(r)?r:[],e&&n?Xn(e):[])}else return t.concat(r,Xn(r,[],n))}function Zn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qn(e){let t=Kn(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Nn(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=un(n)!==a||un(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function $n(e){return Mn(e)?e:e.contextElement}function er(e){let t=$n(e);if(!Nn(t))return fn(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Qn(t),o=(a?un(n.width):n.width)/r,s=(a?un(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var tr=fn(0);function nr(e){let t=kn(e);return!Wn()||!t.visualViewport?tr:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==kn(e)?!1:t}function ir(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=$n(e),o=fn(1);t&&(r?Mn(r)&&(o=er(r)):o=er(e));let s=rr(a,n,r)?nr(a):fn(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=kn(a),t=r&&Mn(r)?kn(r):r,n=e,i=Zn(n);for(;i&&r&&t!==n;){let e=er(i),t=i.getBoundingClientRect(),r=Kn(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=kn(i),i=Zn(n)}}return Sn({width:u,height:d,x:c,y:l})}function ar(e,t){let n=qn(e).scrollLeft;return t?t.left+n:ir(An(e)).left+n}function or(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ar(e,n),y:n.top+t.scrollTop}}function sr(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=An(r),s=t?Ln(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=fn(1),u=fn(0),d=Nn(r);if((d||!d&&!a)&&((On(r)!==`body`||Fn(o))&&(c=qn(r)),d)){let e=ir(r);l=er(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?or(o,c):fn(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function cr(e){return Array.from(e.getClientRects())}function lr(e){let t=An(e),n=qn(e),r=e.ownerDocument.body,i=ln(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ln(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+ar(e),s=-n.scrollTop;return Kn(r).direction===`rtl`&&(o+=ln(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var ur=25;function dr(e,t){let n=kn(e),r=An(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Wn();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=ar(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=ur&&(a-=o)}else l<=ur&&(a+=l);return{width:a,height:o,x:s,y:c}}function fr(e,t){let n=ir(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Nn(e)?er(e):fn(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function pr(e,t,n){let r;if(t===`viewport`)r=dr(e,n);else if(t===`document`)r=lr(An(e));else if(Mn(t))r=fr(t,n);else{let n=nr(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Sn(r)}function mr(e,t){let n=Jn(e);return n===t||!Mn(n)||Gn(n)?!1:Kn(n).position===`fixed`||mr(n,t)}function hr(e,t){let n=t.get(e);if(n)return n;let r=Xn(e,[],!1).filter(e=>Mn(e)&&On(e)!==`body`),i=null,a=Kn(e).position===`fixed`,o=a?Jn(e):e;for(;Mn(o)&&!Gn(o);){let t=Kn(o),n=Hn(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Fn(o)&&!n&&mr(e,o))?r=r.filter(e=>e!==o):i=t,o=Jn(o)}return t.set(e,r),r}function gr(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Ln(t)?[]:hr(t,this._c):[].concat(n),r],o=pr(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=pr(t,a[e],i);s=ln(n.top,s),c=cn(n.right,c),l=cn(n.bottom,l),u=ln(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function _r(e){let{width:t,height:n}=Qn(e);return{width:t,height:n}}function vr(e,t,n){let r=Nn(t),i=An(t),a=n===`fixed`,o=ir(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=fn(0);function l(){c.x=ar(i)}if(r||!r&&!a)if((On(t)!==`body`||Fn(i))&&(s=qn(t)),r){let e=ir(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?or(i,s):fn(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function yr(e){return Kn(e).position===`static`}function br(e,t){if(!Nn(e)||Kn(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return An(e)===n&&(n=n.ownerDocument.body),n}function xr(e,t){let n=kn(e);if(Ln(e))return n;if(!Nn(e)){let t=Jn(e);for(;t&&!Gn(t);){if(Mn(t)&&!yr(t))return t;t=Jn(t)}return n}let r=br(e,t);for(;r&&In(r)&&yr(r);)r=br(r,t);return r&&Gn(r)&&yr(r)&&!Hn(r)?n:r||Un(e)||n}var Sr=async function(e){let t=this.getOffsetParent||xr,n=this.getDimensions,r=await n(e.floating);return{reference:vr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Cr(e){return Kn(e).direction===`rtl`}var wr={convertOffsetParentRelativeRectToViewportRelativeRect:sr,getDocumentElement:An,getClippingRect:gr,getOffsetParent:xr,getElementRects:Sr,getClientRects:cr,getDimensions:_r,getScale:er,isElement:Mn,isRTL:Cr};function Tr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Er(e,t){let n=null,r,i=An(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=dn(d),h=dn(i.clientWidth-(u+f)),g=dn(i.clientHeight-(d+p)),_=dn(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:ln(0,cn(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Tr(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Dr(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=$n(e),u=i||a?[...l?Xn(l):[],...t?Xn(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Er(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?ir(e):null;c&&g();function g(){let t=ir(e);h&&!Tr(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Or=(e,t,n)=>{let r=new Map,i={platform:wr,...n},a={...i.platform,_c:r};return En(e,t,{...i,platform:a})};function kr(e){let t=e.renderRoot.querySelector(`.inline-container-wrapper`),n=e.renderRoot.querySelector(`[popover]`);return Dr(t,n,()=>{n.matches(`:popover-open`)&&Or(t,n,{strategy:`fixed`}).then(({x:e,y:r})=>{Object.assign(n.style,{left:`${e}px`,top:`${r}px`,width:`${t.getBoundingClientRect().width}px`})})},{animationFrame:!0})}function Ar(e){e.renderRoot.querySelector(`#eox-itemfilter-input-search`).value=``,on({target:{value:``}},e)}function jr(e,t){t.inlineMode&&e.stopPropagation()}function Mr(e){e.inlineMode&&(e.showDropdown=!0)}function Nr(e,t){t.inlineMode&&(e.stopPropagation(),t.showDropdown=!0)}function Pr(e,t){t.inlineMode&&e.key===`Escape`&&t.showDropdown&&(Ar(t),t.showDropdown=!1)}function Fr(e,t){t.inlineMode&&e.target instanceof HTMLElement&&e.target.tagName!==`DROPDOWN-FORM`&&e.target.tagName!==`EOX-ITEMFILTER`&&t.showDropdown&&(Ar(t),t.showDropdown=!1)}var X=11102230246251565e-32,Z=134217729,Ir=(3+8*X)*X;function Lr(e,t,n,r,i){let a,o,s,c,l=t[0],u=r[0],d=0,f=0;u>l==u>-l?(a=l,l=t[++d]):(a=u,u=r[++f]);let p=0;if(d<e&&f<n)for(u>l==u>-l?(o=l+a,s=a-(o-l),l=t[++d]):(o=u+a,s=a-(o-u),u=r[++f]),a=o,s!==0&&(i[p++]=s);d<e&&f<n;)u>l==u>-l?(o=a+l,c=o-a,s=a-(o-c)+(l-c),l=t[++d]):(o=a+u,c=o-a,s=a-(o-c)+(u-c),u=r[++f]),a=o,s!==0&&(i[p++]=s);for(;d<e;)o=a+l,c=o-a,s=a-(o-c)+(l-c),l=t[++d],a=o,s!==0&&(i[p++]=s);for(;f<n;)o=a+u,c=o-a,s=a-(o-c)+(u-c),u=r[++f],a=o,s!==0&&(i[p++]=s);return(a!==0||p===0)&&(i[p++]=a),p}function Rr(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function Q(e){return new Float64Array(e)}var zr=(3+16*X)*X,Br=(2+12*X)*X,Vr=(9+64*X)*X*X,Hr=Q(4),Ur=Q(8),Wr=Q(12),Gr=Q(16),Kr=Q(4);function qr(e,t,n,r,i,a,o){let s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=e-i,E=n-i,D=t-a,O=r-a;b=T*O,f=Z*T,p=f-(f-T),m=T-p,f=Z*O,h=f-(f-O),g=O-h,x=m*g-(b-p*h-m*h-p*g),S=D*E,f=Z*D,p=f-(f-D),m=D-p,f=Z*E,h=f-(f-E),g=E-h,C=m*g-(S-p*h-m*h-p*g),_=x-C,d=x-_,Hr[0]=x-(_+d)+(d-C),v=b+_,d=v-b,y=b-(v-d)+(_-d),_=y-S,d=y-_,Hr[1]=y-(_+d)+(d-S),w=v+_,d=w-v,Hr[2]=v-(w-d)+(_-d),Hr[3]=w;let k=Rr(4,Hr),A=Br*o;if(k>=A||-k>=A||(d=e-T,s=e-(T+d)+(d-i),d=n-E,l=n-(E+d)+(d-i),d=t-D,c=t-(D+d)+(d-a),d=r-O,u=r-(O+d)+(d-a),s===0&&c===0&&l===0&&u===0)||(A=Vr*o+Ir*Math.abs(k),k+=T*u+O*s-(D*l+E*c),k>=A||-k>=A))return k;b=s*O,f=Z*s,p=f-(f-s),m=s-p,f=Z*O,h=f-(f-O),g=O-h,x=m*g-(b-p*h-m*h-p*g),S=c*E,f=Z*c,p=f-(f-c),m=c-p,f=Z*E,h=f-(f-E),g=E-h,C=m*g-(S-p*h-m*h-p*g),_=x-C,d=x-_,Kr[0]=x-(_+d)+(d-C),v=b+_,d=v-b,y=b-(v-d)+(_-d),_=y-S,d=y-_,Kr[1]=y-(_+d)+(d-S),w=v+_,d=w-v,Kr[2]=v-(w-d)+(_-d),Kr[3]=w;let ee=Lr(4,Hr,4,Kr,Ur);b=T*u,f=Z*T,p=f-(f-T),m=T-p,f=Z*u,h=f-(f-u),g=u-h,x=m*g-(b-p*h-m*h-p*g),S=D*l,f=Z*D,p=f-(f-D),m=D-p,f=Z*l,h=f-(f-l),g=l-h,C=m*g-(S-p*h-m*h-p*g),_=x-C,d=x-_,Kr[0]=x-(_+d)+(d-C),v=b+_,d=v-b,y=b-(v-d)+(_-d),_=y-S,d=y-_,Kr[1]=y-(_+d)+(d-S),w=v+_,d=w-v,Kr[2]=v-(w-d)+(_-d),Kr[3]=w;let j=Lr(ee,Ur,4,Kr,Wr);return b=s*u,f=Z*s,p=f-(f-s),m=s-p,f=Z*u,h=f-(f-u),g=u-h,x=m*g-(b-p*h-m*h-p*g),S=c*l,f=Z*c,p=f-(f-c),m=c-p,f=Z*l,h=f-(f-l),g=l-h,C=m*g-(S-p*h-m*h-p*g),_=x-C,d=x-_,Kr[0]=x-(_+d)+(d-C),v=b+_,d=v-b,y=b-(v-d)+(_-d),_=y-S,d=y-_,Kr[1]=y-(_+d)+(d-S),w=v+_,d=w-v,Kr[2]=v-(w-d)+(_-d),Kr[3]=w,Gr[Lr(j,Wr,4,Kr,Gr)-1]}function Jr(e,t,n,r,i,a){let o=(t-a)*(n-i),s=(e-i)*(r-a),c=o-s,l=Math.abs(o+s);return Math.abs(c)>=zr*l?c:-qr(e,t,n,r,i,a,l)}(7+56*X)*X,(3+28*X)*X,(26+288*X)*X*X,Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(8),Q(8),Q(8),Q(4),Q(8),Q(8),Q(8),Q(12),Q(192),Q(192),(10+96*X)*X,(4+48*X)*X,(44+576*X)*X*X,Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(8),Q(8),Q(8),Q(8),Q(8),Q(8),Q(8),Q(8),Q(8),Q(4),Q(4),Q(4),Q(8),Q(16),Q(16),Q(16),Q(32),Q(32),Q(48),Q(64),Q(1152),Q(1152),(16+224*X)*X,(5+72*X)*X,(71+1408*X)*X*X,Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(4),Q(24),Q(24),Q(24),Q(24),Q(24),Q(24),Q(24),Q(24),Q(24),Q(24),Q(1152),Q(1152),Q(1152),Q(1152),Q(1152),Q(2304),Q(2304),Q(3456),Q(5760),Q(8),Q(8),Q(8),Q(16),Q(24),Q(48),Q(48),Q(96),Q(192),Q(384),Q(384),Q(384),Q(768),Q(96),Q(96),Q(96),Q(1152);function Yr(e,t){var n,r,i=0,a,o,s,c,l,u,d,f=e[0],p=e[1],m=t.length;for(n=0;n<m;n++){r=0;var h=t[n],g=h.length-1;if(u=h[0],u[0]!==h[g][0]&&u[1]!==h[g][1])throw Error(`First and last coordinates in a ring must be the same`);for(o=u[0]-f,s=u[1]-p;r<g;r++){if(d=h[r+1],c=d[0]-f,l=d[1]-p,s===0&&l===0){if(c<=0&&o>=0||o<=0&&c>=0)return 0}else if(l>=0&&s<=0||l<=0&&s>=0){if(a=Jr(o,c,s,l,0,0),a===0)return 0;(a>0&&l>0&&s<=0||a<0&&l<=0&&s>0)&&i++}u=d,s=l,o=c}}return i%2!=0}var Xr=6371008.8,Zr={centimeters:Xr*100,centimetres:Xr*100,degrees:360/(2*Math.PI),feet:Xr*3.28084,inches:Xr*39.37,kilometers:Xr/1e3,kilometres:Xr/1e3,meters:Xr,metres:Xr,miles:Xr/1609.344,millimeters:Xr*1e3,millimetres:Xr*1e3,nauticalmiles:Xr/1852,radians:1,yards:Xr*1.0936};function Qr(e,t,n={}){let r={type:`Feature`};return(n.id===0||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function $r(e,t,n={}){if(!e)throw Error(`coordinates is required`);if(!Array.isArray(e))throw Error(`coordinates must be an Array`);if(e.length<2)throw Error(`coordinates must be at least 2 numbers long`);if(!oi(e[0])||!oi(e[1]))throw Error(`coordinates must contain numbers`);return Qr({type:`Point`,coordinates:e},t,n)}function ei(e,t,n={}){if(e.length<2)throw Error(`coordinates must be an array of two or more positions`);return Qr({type:`LineString`,coordinates:e},t,n)}function ti(e,t={}){let n={type:`FeatureCollection`};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function ni(e,t,n={}){return Qr({type:`MultiLineString`,coordinates:e},t,n)}function ri(e,t=`kilometers`){let n=Zr[t];if(!n)throw Error(t+` units is invalid`);return e*n}function ii(e){return e%(2*Math.PI)*180/Math.PI}function ai(e){return e%360*Math.PI/180}function oi(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function si(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ci(e){if(!e)throw Error(`coord is required`);if(!Array.isArray(e)){if(e.type===`Feature`&&e.geometry!==null&&e.geometry.type===`Point`)return[...e.geometry.coordinates];if(e.type===`Point`)return[...e.coordinates]}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return[...e];throw Error(`coord must be GeoJSON Point or an Array of numbers`)}function li(e){if(Array.isArray(e))return e;if(e.type===`Feature`){if(e.geometry!==null)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw Error(`coords must be GeoJSON Feature, Geometry Object or an Array`)}function ui(e){return e.type===`Feature`?e.geometry:e}function di(e,t){return e.type===`FeatureCollection`?`FeatureCollection`:e.type===`GeometryCollection`?`GeometryCollection`:e.type===`Feature`&&e.geometry!==null?e.geometry.type:e.type}function fi(e,t,n={}){if(!e)throw Error(`point is required`);if(!t)throw Error(`polygon is required`);let r=ci(e),i=ui(t),a=i.type,o=t.bbox,s=i.coordinates;if(o&&pi(r,o)===!1)return!1;a===`Polygon`&&(s=[s]);let c=!1;for(var l=0;l<s.length;++l){let e=Yr(r,s[l]);if(e===0)return!n.ignoreBoundary;e&&(c=!0)}return c}function pi(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}var mi=class{constructor(e=[],t=hi){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let e=(this.length>>1)-1;e>=0;e--)this._down(e)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;let 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){let{data:t,compare:n}=this,r=t[e];for(;e>0;){let i=e-1>>1,a=t[i];if(n(r,a)>=0)break;t[e]=a,e=i}t[e]=r}_down(e){let{data:t,compare:n}=this,r=this.length>>1,i=t[e];for(;e<r;){let r=(e<<1)+1,a=t[r],o=r+1;if(o<this.length&&n(t[o],a)<0&&(r=o,a=t[o]),n(a,i)>=0)break;t[e]=a,e=r}t[e]=i}};function hi(e,t){return e<t?-1:+(e>t)}function gi(e,t){return e.p.x>t.p.x?1:e.p.x<t.p.x?-1:e.p.y===t.p.y||e.p.y>t.p.y?1:-1}function _i(e,t){return e.rightSweepEvent.p.x>t.rightSweepEvent.p.x?1:e.rightSweepEvent.p.x<t.rightSweepEvent.p.x?-1:e.rightSweepEvent.p.y===t.rightSweepEvent.p.y||e.rightSweepEvent.p.y<t.rightSweepEvent.p.y?1:-1}var vi=class{constructor(e,t,n,r){this.p={x:e[0],y:e[1]},this.featureId=t,this.ringId=n,this.eventId=r,this.otherEvent=null,this.isLeftEndpoint=null}isSamePoint(e){return this.p.x===e.p.x&&this.p.y===e.p.y}};function yi(e,t){if(e.type===`FeatureCollection`){let n=e.features;for(let e=0;e<n.length;e++)Ci(n[e],t)}else Ci(e,t)}var bi=0,xi=0,Si=0;function Ci(e,t){let n=e.type===`Feature`?e.geometry:e,r=n.coordinates;(n.type===`Polygon`||n.type===`MultiLineString`)&&(r=[r]),n.type===`LineString`&&(r=[[r]]);for(let e=0;e<r.length;e++)for(let n=0;n<r[e].length;n++){let i=r[e][n][0],a=null;xi+=1;for(let o=0;o<r[e][n].length-1;o++){a=r[e][n][o+1];let s=new vi(i,bi,xi,Si),c=new vi(a,bi,xi,Si+1);s.otherEvent=c,c.otherEvent=s,gi(s,c)>0?(c.isLeftEndpoint=!0,s.isLeftEndpoint=!1):(s.isLeftEndpoint=!0,c.isLeftEndpoint=!1),t.push(s),t.push(c),i=a,Si+=1}}bi+=1}var wi=class{constructor(e){this.leftSweepEvent=e,this.rightSweepEvent=e.otherEvent}};function Ti(e,t){if(e===null||t===null||e.leftSweepEvent.ringId===t.leftSweepEvent.ringId&&(e.rightSweepEvent.isSamePoint(t.leftSweepEvent)||e.rightSweepEvent.isSamePoint(t.leftSweepEvent)||e.rightSweepEvent.isSamePoint(t.rightSweepEvent)||e.leftSweepEvent.isSamePoint(t.leftSweepEvent)||e.leftSweepEvent.isSamePoint(t.rightSweepEvent)))return!1;let n=e.leftSweepEvent.p.x,r=e.leftSweepEvent.p.y,i=e.rightSweepEvent.p.x,a=e.rightSweepEvent.p.y,o=t.leftSweepEvent.p.x,s=t.leftSweepEvent.p.y,c=t.rightSweepEvent.p.x,l=t.rightSweepEvent.p.y,u=(l-s)*(i-n)-(c-o)*(a-r),d=(c-o)*(r-s)-(l-s)*(n-o),f=(i-n)*(r-s)-(a-r)*(n-o);if(u===0)return!1;let p=d/u,m=f/u;return p>=0&&p<=1&&m>=0&&m<=1?[n+p*(i-n),r+p*(a-r)]:!1}function Ei(e,t){t||=!1;let n=[],r=new mi([],_i);for(;e.length;){let i=e.pop();if(i.isLeftEndpoint){let e=new wi(i);for(let a=0;a<r.data.length;a++){let o=r.data[a];if(t&&o.leftSweepEvent.featureId===i.featureId)continue;let s=Ti(e,o);s!==!1&&n.push(s)}r.push(e)}else i.isLeftEndpoint===!1&&r.pop()}return n}function Di(e,t){let n=new mi([],gi);return yi(e,n),Ei(n,t)}var Oi=Di;function ki(e,t,n={}){let{removeDuplicates:r=!0,ignoreSelfIntersections:i=!0}=n,a=[];e.type===`FeatureCollection`?a=a.concat(e.features):e.type===`Feature`?a.push(e):(e.type===`LineString`||e.type===`Polygon`||e.type===`MultiLineString`||e.type===`MultiPolygon`)&&a.push(Qr(e)),t.type===`FeatureCollection`?a=a.concat(t.features):t.type===`Feature`?a.push(t):(t.type===`LineString`||t.type===`Polygon`||t.type===`MultiLineString`||t.type===`MultiPolygon`)&&a.push(Qr(t));let o=Oi(ti(a),i),s=[];if(r){let e={};o.forEach(t=>{let n=t.join(`,`);e[n]||(e[n]=!0,s.push(t))})}else s=o;return ti(s.map(e=>$r(e)))}function Ai(e,t,n){if(e!==null)for(var r,i,a,o,s,c,l,u=0,d=0,f,p=e.type,m=p===`FeatureCollection`,h=p===`Feature`,g=m?e.features.length:1,_=0;_<g;_++){l=m?e.features[_].geometry:h?e.geometry:e,f=l?l.type===`GeometryCollection`:!1,s=f?l.geometries.length:1;for(var v=0;v<s;v++){var y=0,b=0;if(o=f?l.geometries[v]:l,o!==null){c=o.coordinates;var x=o.type;switch(u=n&&(x===`Polygon`||x===`MultiPolygon`)?1:0,x){case null:break;case`Point`:if(t(c,d,_,y,b)===!1)return!1;d++,y++;break;case`LineString`:case`MultiPoint`:for(r=0;r<c.length;r++){if(t(c[r],d,_,y,b)===!1)return!1;d++,x===`MultiPoint`&&y++}x===`LineString`&&y++;break;case`Polygon`:case`MultiLineString`:for(r=0;r<c.length;r++){for(i=0;i<c[r].length-u;i++){if(t(c[r][i],d,_,y,b)===!1)return!1;d++}x===`MultiLineString`&&y++,x===`Polygon`&&b++}x===`Polygon`&&y++;break;case`MultiPolygon`:for(r=0;r<c.length;r++){for(b=0,i=0;i<c[r].length;i++){for(a=0;a<c[r][i].length-u;a++){if(t(c[r][i][a],d,_,y,b)===!1)return!1;d++}b++}y++}break;case`GeometryCollection`:for(r=0;r<o.geometries.length;r++)if(Ai(o.geometries[r],t,n)===!1)return!1;break;default:throw Error(`Unknown Geometry Type`)}}}}}function ji(e,t){if(e.type===`Feature`)t(e,0);else if(e.type===`FeatureCollection`)for(var n=0;n<e.features.length&&t(e.features[n],n)!==!1;n++);}function Mi(e,t,n){var r=n;return ji(e,function(e,i){r=i===0&&n===void 0?e:t(r,e,i)}),r}function Ni(e,t){var n,r,i,a,o,s,c,l,u,d,f=0,p=e.type===`FeatureCollection`,m=e.type===`Feature`,h=p?e.features.length:1;for(n=0;n<h;n++){for(s=p?e.features[n].geometry:m?e.geometry:e,l=p?e.features[n].properties:m?e.properties:{},u=p?e.features[n].bbox:m?e.bbox:void 0,d=p?e.features[n].id:m?e.id:void 0,c=s?s.type===`GeometryCollection`:!1,o=c?s.geometries.length:1,i=0;i<o;i++){if(a=c?s.geometries[i]:s,a===null){if(t(null,f,l,u,d)===!1)return!1;continue}switch(a.type){case`Point`:case`LineString`:case`MultiPoint`:case`Polygon`:case`MultiLineString`:case`MultiPolygon`:if(t(a,f,l,u,d)===!1)return!1;break;case`GeometryCollection`:for(r=0;r<a.geometries.length;r++)if(t(a.geometries[r],f,l,u,d)===!1)return!1;break;default:throw Error(`Unknown Geometry Type`)}}f++}}function Pi(e,t){Ni(e,function(e,n,r,i,a){var o=e===null?null:e.type;switch(o){case null:case`Point`:case`LineString`:case`Polygon`:return t(Qr(e,r,{bbox:i,id:a}),n,0)===!1?!1:void 0}var s;switch(o){case`MultiPoint`:s=`Point`;break;case`MultiLineString`:s=`LineString`;break;case`MultiPolygon`:s=`Polygon`;break}for(var c=0;c<e.coordinates.length;c++){var l=e.coordinates[c];if(t(Qr({type:s,coordinates:l},r),n,c)===!1)return!1}})}function Fi(e,t={}){let n=ui(e);switch(!t.properties&&e.type===`Feature`&&(t.properties=e.properties),n.type){case`Polygon`:return Ii(n,t);case`MultiPolygon`:return Li(n,t);default:throw Error(`invalid poly`)}}function Ii(e,t={}){let n=ui(e).coordinates;return Ri(n,t.properties?t.properties:e.type===`Feature`?e.properties:{})}function Li(e,t={}){let n=ui(e).coordinates,r=t.properties?t.properties:e.type===`Feature`?e.properties:{},i=[];return n.forEach(e=>{i.push(Ri(e,r))}),ti(i)}function Ri(e,t){return e.length>1?ni(e,t):ei(e[0],t)}function zi(e,t,{ignoreSelfIntersections:n=!0}={ignoreSelfIntersections:!0}){let r=!0;return Pi(e,e=>{Pi(t,t=>{if(r===!1)return!1;r=Bi(e.geometry,t.geometry,n)})}),r}function Bi(e,t,n){switch(e.type){case`Point`:switch(t.type){case`Point`:return!Ki(e.coordinates,t.coordinates);case`LineString`:return!Vi(t,e);case`Polygon`:return!fi(e,t)}break;case`LineString`:switch(t.type){case`Point`:return!Vi(e,t);case`LineString`:return!Hi(e,t,n);case`Polygon`:return!Ui(t,e,n)}break;case`Polygon`:switch(t.type){case`Point`:return!fi(t,e);case`LineString`:return!Ui(e,t,n);case`Polygon`:return!Wi(t,e,n)}}return!1}function Vi(e,t){for(let n=0;n<e.coordinates.length-1;n++)if(Gi(e.coordinates[n],e.coordinates[n+1],t.coordinates))return!0;return!1}function Hi(e,t,n){return ki(e,t,{ignoreSelfIntersections:n}).features.length>0}function Ui(e,t,n){for(let n of t.coordinates)if(fi(n,e))return!0;return ki(t,Fi(e),{ignoreSelfIntersections:n}).features.length>0}function Wi(e,t,n){for(let n of e.coordinates[0])if(fi(n,t))return!0;for(let n of t.coordinates[0])if(fi(n,e))return!0;return ki(Fi(e),Fi(t),{ignoreSelfIntersections:n}).features.length>0}function Gi(e,t,n){let r=n[0]-e[0],i=n[1]-e[1],a=t[0]-e[0],o=t[1]-e[1];return r*o-i*a===0?Math.abs(a)>=Math.abs(o)?a>0?e[0]<=n[0]&&n[0]<=t[0]:t[0]<=n[0]&&n[0]<=e[0]:o>0?e[1]<=n[1]&&n[1]<=t[1]:t[1]<=n[1]&&n[1]<=e[1]:!1}function Ki(e,t){return e[0]===t[0]&&e[1]===t[1]}function qi(e,t,{ignoreSelfIntersections:n=!0}={}){let r=!1;return Pi(e,e=>{Pi(t,t=>{if(r===!0)return!0;r=!zi(e.geometry,t.geometry,{ignoreSelfIntersections:n})})}),r}var Ji=qi;function Yi(e,t={}){if(e.bbox!=null&&!0!==t.recompute)return e.bbox;let n=[1/0,1/0,-1/0,-1/0];return Ai(e,e=>{n[0]>e[0]&&(n[0]=e[0]),n[1]>e[1]&&(n[1]=e[1]),n[2]<e[0]&&(n[2]=e[0]),n[3]<e[1]&&(n[3]=e[1])}),n}function Xi(e,t,n={}){let r=ci(e),i=li(t);for(let e=0;e<i.length-1;e++){let t=!1;if(n.ignoreEndVertices&&(e===0&&(t=`start`),e===i.length-2&&(t=`end`),e===0&&e+1===i.length-1&&(t=`both`)),Zi(i[e],i[e+1],r,t,n.epsilon===void 0?null:n.epsilon))return!0}return!1}function Zi(e,t,n,r,i){let a=n[0],o=n[1],s=e[0],c=e[1],l=t[0],u=t[1],d=n[0]-s,f=n[1]-c,p=l-s,m=u-c,h=d*m-f*p;if(i!==null){if(Math.abs(h)>i)return!1}else if(h!==0)return!1;return Math.abs(p)===Math.abs(m)&&Math.abs(p)===0?r?!1:n[0]===e[0]&&n[1]===e[1]:r?r===`start`?Math.abs(p)>=Math.abs(m)?p>0?s<a&&a<=l:l<=a&&a<s:m>0?c<o&&o<=u:u<=o&&o<c:r===`end`?Math.abs(p)>=Math.abs(m)?p>0?s<=a&&a<l:l<a&&a<=s:m>0?c<=o&&o<u:u<o&&o<=c:r===`both`?Math.abs(p)>=Math.abs(m)?p>0?s<a&&a<l:l<a&&a<s:m>0?c<o&&o<u:u<o&&o<c:!1:Math.abs(p)>=Math.abs(m)?p>0?s<=a&&a<=l:l<=a&&a<=s:m>0?c<=o&&o<=u:u<=o&&o<=c}var Qi=l(s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n||=self).RBush=r()})(e,function(){"use strict";function e(e,r,i,a,o){(function e(n,r,i,a,o){for(;a>i;){if(a-i>600){var s=a-i+1,c=r-i+1,l=Math.log(s),u=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*u*(s-u)/s)*(c-s/2<0?-1:1);e(n,r,Math.max(i,Math.floor(r-c*u/s+d)),Math.min(a,Math.floor(r+(s-c)*u/s+d)),o)}var f=n[r],p=i,m=a;for(t(n,i,r),o(n[a],f)>0&&t(n,i,a);p<m;){for(t(n,p,m),p++,m--;o(n[p],f)<0;)p++;for(;o(n[m],f)>0;)m--}o(n[i],f)===0?t(n,i,m):t(n,++m,a),m<=r&&(i=m+1),r<=m&&(a=m-1)}})(e,r,i||0,a||e.length-1,o||n)}function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return e<t?-1:+(e>t)}var r=function(e){e===void 0&&(e=9),this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(e,t,n){if(!n)return t.indexOf(e);for(var r=0;r<t.length;r++)if(n(e,t[r]))return r;return-1}function a(e,t){o(e,0,e.children.length,t,e)}function o(e,t,n,r,i){i||=m(null),i.minX=1/0,i.minY=1/0,i.maxX=-1/0,i.maxY=-1/0;for(var a=t;a<n;a++){var o=e.children[a];s(i,e.leaf?r(o):o)}return i}function s(e,t){return e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),e}function c(e,t){return e.minX-t.minX}function l(e,t){return e.minY-t.minY}function u(e){return(e.maxX-e.minX)*(e.maxY-e.minY)}function d(e){return e.maxX-e.minX+(e.maxY-e.minY)}function f(e,t){return e.minX<=t.minX&&e.minY<=t.minY&&t.maxX<=e.maxX&&t.maxY<=e.maxY}function p(e,t){return t.minX<=e.maxX&&t.minY<=e.maxY&&t.maxX>=e.minX&&t.maxY>=e.minY}function m(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function h(t,n,r,i,a){for(var o=[n,r];o.length;)if(!((r=o.pop())-(n=o.pop())<=i)){var s=n+Math.ceil((r-n)/i/2)*i;e(t,s,n,r,a),o.push(n,s,s,r)}}return r.prototype.all=function(){return this._all(this.data,[])},r.prototype.search=function(e){var t=this.data,n=[];if(!p(e,t))return n;for(var r=this.toBBox,i=[];t;){for(var a=0;a<t.children.length;a++){var o=t.children[a],s=t.leaf?r(o):o;p(e,s)&&(t.leaf?n.push(o):f(e,s)?this._all(o,n):i.push(o))}t=i.pop()}return n},r.prototype.collides=function(e){var t=this.data;if(!p(e,t))return!1;for(var n=[];t;){for(var r=0;r<t.children.length;r++){var i=t.children[r],a=t.leaf?this.toBBox(i):i;if(p(e,a)){if(t.leaf||f(e,a))return!0;n.push(i)}}t=n.pop()}return!1},r.prototype.load=function(e){if(!e||!e.length)return this;if(e.length<this._minEntries){for(var t=0;t<e.length;t++)this.insert(e[t]);return this}var n=this._build(e.slice(),0,e.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},r.prototype.insert=function(e){return e&&this._insert(e,this.data.height-1),this},r.prototype.clear=function(){return this.data=m([]),this},r.prototype.remove=function(e,t){if(!e)return this;for(var n,r,a,o=this.data,s=this.toBBox(e),c=[],l=[];o||c.length;){if(o||(o=c.pop(),r=c[c.length-1],n=l.pop(),a=!0),o.leaf){var u=i(e,o.children,t);if(u!==-1)return o.children.splice(u,1),c.push(o),this._condense(c),this}a||o.leaf||!f(o,s)?r?(n++,o=r.children[n],a=!1):o=null:(c.push(o),l.push(n),n=0,r=o,o=o.children[0])}return this},r.prototype.toBBox=function(e){return e},r.prototype.compareMinX=function(e,t){return e.minX-t.minX},r.prototype.compareMinY=function(e,t){return e.minY-t.minY},r.prototype.toJSON=function(){return this.data},r.prototype.fromJSON=function(e){return this.data=e,this},r.prototype._all=function(e,t){for(var n=[];e;)e.leaf?t.push.apply(t,e.children):n.push.apply(n,e.children),e=n.pop();return t},r.prototype._build=function(e,t,n,r){var i,o=n-t+1,s=this._maxEntries;if(o<=s)return a(i=m(e.slice(t,n+1)),this.toBBox),i;r||(r=Math.ceil(Math.log(o)/Math.log(s)),s=Math.ceil(o/s**(r-1))),(i=m([])).leaf=!1,i.height=r;var c=Math.ceil(o/s),l=c*Math.ceil(Math.sqrt(s));h(e,t,n,l,this.compareMinX);for(var u=t;u<=n;u+=l){var d=Math.min(u+l-1,n);h(e,u,d,c,this.compareMinY);for(var f=u;f<=d;f+=c){var p=Math.min(f+c-1,d);i.children.push(this._build(e,f,p,r-1))}}return a(i,this.toBBox),i},r.prototype._chooseSubtree=function(e,t,n,r){for(;r.push(t),!t.leaf&&r.length-1!==n;){for(var i=1/0,a=1/0,o=void 0,s=0;s<t.children.length;s++){var c=t.children[s],l=u(c),d=(f=e,p=c,(Math.max(p.maxX,f.maxX)-Math.min(p.minX,f.minX))*(Math.max(p.maxY,f.maxY)-Math.min(p.minY,f.minY))-l);d<a?(a=d,i=l<i?l:i,o=c):d===a&&l<i&&(i=l,o=c)}t=o||t.children[0]}var f,p;return t},r.prototype._insert=function(e,t,n){var r=n?e:this.toBBox(e),i=[],a=this._chooseSubtree(r,this.data,t,i);for(a.children.push(e),s(a,r);t>=0&&i[t].children.length>this._maxEntries;)this._split(i,t),t--;this._adjustParentBBoxes(r,i,t)},r.prototype._split=function(e,t){var n=e[t],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),s=m(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,a(n,this.toBBox),a(s,this.toBBox),t?e[t-1].children.push(s):this._splitRoot(n,s)},r.prototype._splitRoot=function(e,t){this.data=m([e,t]),this.data.height=e.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},r.prototype._chooseSplitIndex=function(e,t,n){for(var r,i,a,s,c,l,d,f=1/0,p=1/0,m=t;m<=n-t;m++){var h=o(e,0,m,this.toBBox),g=o(e,m,n,this.toBBox),_=(i=h,a=g,s=void 0,c=void 0,l=void 0,d=void 0,s=Math.max(i.minX,a.minX),c=Math.max(i.minY,a.minY),l=Math.min(i.maxX,a.maxX),d=Math.min(i.maxY,a.maxY),Math.max(0,l-s)*Math.max(0,d-c)),v=u(h)+u(g);_<f?(f=_,r=m,p=v<p?v:p):_===f&&v<p&&(p=v,r=m)}return r||n-t},r.prototype._chooseSplitAxis=function(e,t,n){var r=e.leaf?this.compareMinX:c,i=e.leaf?this.compareMinY:l;this._allDistMargin(e,t,n,r)<this._allDistMargin(e,t,n,i)&&e.children.sort(r)},r.prototype._allDistMargin=function(e,t,n,r){e.children.sort(r);for(var i=this.toBBox,a=o(e,0,t,i),c=o(e,n-t,n,i),l=d(a)+d(c),u=t;u<n-t;u++){var f=e.children[u];s(a,e.leaf?i(f):f),l+=d(a)}for(var p=n-t-1;p>=t;p--){var m=e.children[p];s(c,e.leaf?i(m):m),l+=d(c)}return l},r.prototype._adjustParentBBoxes=function(e,t,n){for(var r=n;r>=0;r--)s(t[r],e)},r.prototype._condense=function(e){for(var t=e.length-1,n=void 0;t>=0;t--)e[t].children.length===0?t>0?(n=e[t-1].children).splice(n.indexOf(e[t]),1):this.clear():a(e[t],this.toBBox)},r})}))(),1);function $i(e){var t;if(e.bbox)t=e.bbox;else if(Array.isArray(e)&&e.length===4)t=e;else if(Array.isArray(e)&&e.length===6)t=[e[0],e[1],e[3],e[4]];else if(e.type===`Feature`)t=Yi(e);else if(e.type===`FeatureCollection`)t=Yi(e);else throw Error(`invalid geojson`);return{minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]}}var ea=class{constructor(e=9){this.tree=new Qi.default(e),this.tree.toBBox=$i}insert(e){if(e.type!==`Feature`)throw Error(`invalid feature`);return e.bbox=e.bbox?e.bbox:Yi(e),this.tree.insert(e),this}load(e){var t=[];return Array.isArray(e)?e.forEach(function(e){if(e.type!==`Feature`)throw Error(`invalid features`);e.bbox=e.bbox?e.bbox:Yi(e),t.push(e)}):ji(e,function(e){if(e.type!==`Feature`)throw Error(`invalid features`);e.bbox=e.bbox?e.bbox:Yi(e),t.push(e)}),this.tree.load(t),this}remove(e,t){if(e.type!==`Feature`)throw Error(`invalid feature`);return e.bbox=e.bbox?e.bbox:Yi(e),this.tree.remove(e,t),this}clear(){return this.tree.clear(),this}search(e){return ti(this.tree.search($i(e)))}collides(e){return this.tree.collides($i(e))}all(){return ti(this.tree.all())}toJSON(){return this.tree.toJSON()}fromJSON(e){return this.tree.fromJSON(e),this}};function ta(e){return new ea(e)}function na(e,t){if(t??={},!si(t))throw Error(`options is invalid`);var n=t.precision,r=t.coordinates,i=t.mutate;if(n=n==null||isNaN(n)?6:n,r=r==null||isNaN(r)?3:r,!e)throw Error(`<geojson> is required`);if(typeof n!=`number`)throw Error(`<precision> must be a number`);if(typeof r!=`number`)throw Error(`<coordinates> must be a number`);(i===!1||i===void 0)&&(e=JSON.parse(JSON.stringify(e)));var a=10**n;return Ai(e,function(e){ra(e,a,r)}),e}function ra(e,t,n){e.length>n&&e.splice(n,e.length);for(var r=0;r<e.length;r++)e[r]=Math.round(e[r]*t)/t;return e}function ia(e){if(!e)throw Error(`geojson is required`);let t=[];return Pi(e,e=>{aa(e,t)}),ti(t)}function aa(e,t){let n=[],r=e.geometry;if(r!==null){switch(r.type){case`Polygon`:n=li(r);break;case`LineString`:n=[li(r)]}n.forEach(n=>{oa(n,e.properties).forEach(e=>{e.id=t.length,t.push(e)})})}}function oa(e,t){let n=[];return e.reduce((e,r)=>{let i=ei([e,r],t);return i.bbox=sa(e,r),n.push(i),r}),n}function sa(e,t){let n=e[0],r=e[1],i=t[0],a=t[1];return[n<i?n:i,r<a?r:a,n>i?n:i,r>a?r:a]}function ca(e,t,n={}){var r=ci(e),i=ci(t),a=ai(i[1]-r[1]),o=ai(i[0]-r[0]),s=ai(r[1]),c=ai(i[1]),l=Math.sin(a/2)**2+Math.sin(o/2)**2*Math.cos(s)*Math.cos(c);return ri(2*Math.atan2(Math.sqrt(l),Math.sqrt(1-l)),n.units)}var la=Object.defineProperty,ua=Object.defineProperties,da=Object.getOwnPropertyDescriptors,fa=Object.getOwnPropertySymbols,pa=Object.prototype.hasOwnProperty,ma=Object.prototype.propertyIsEnumerable,ha=(e,t,n)=>t in e?la(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ga=(e,t)=>{for(var n in t||={})pa.call(t,n)&&ha(e,n,t[n]);if(fa)for(var n of fa(t))ma.call(t,n)&&ha(e,n,t[n]);return e},_a=(e,t)=>ua(e,da(t));function va(e,t,n={}){if(!e||!t)throw Error(`lines and inputPoint are required arguments`);let r=ci(t),i=$r([1/0,1/0],{lineStringIndex:-1,segmentIndex:-1,totalDistance:-1,lineDistance:-1,segmentDistance:-1,pointDistance:1/0,multiFeatureIndex:-1,index:-1,location:-1,dist:1/0}),a=0,o=0,s=-1;return Pi(e,function(e,c,l){s!==l&&(s=l,o=0);let u=li(e);for(let e=0;e<u.length-1;e++){let s=$r(u[e]),c=ci(s),d=$r(u[e+1]),f=ci(d),p=ca(s,d,n),m,h;f[0]===r[0]&&f[1]===r[1]?[m,h]=[f,!0]:c[0]===r[0]&&c[1]===r[1]?[m,h]=[c,!1]:[m,h]=Ta(c,f,r);let g=ca(t,m,n);if(g<i.properties.pointDistance){let t=ca(s,m,n);i=$r(m,{lineStringIndex:l,segmentIndex:h?e+1:e,totalDistance:a+t,lineDistance:o+t,segmentDistance:t,pointDistance:g,multiFeatureIndex:-1,index:-1,location:-1,dist:1/0}),i.properties=_a(ga({},i.properties),{multiFeatureIndex:i.properties.lineStringIndex,index:i.properties.segmentIndex,location:i.properties.totalDistance,dist:i.properties.pointDistance})}a+=p,o+=p}}),i}function ya(e,t){let[n,r,i]=e,[a,o,s]=t;return n*a+r*o+i*s}function ba(e,t){let[n,r,i]=e,[a,o,s]=t;return[r*s-i*o,i*a-n*s,n*o-r*a]}function xa(e){return Math.sqrt(e[0]**2+e[1]**2+e[2]**2)}function Sa(e){let t=xa(e);return[e[0]/t,e[1]/t,e[2]/t]}function Ca(e){let t=ai(e[1]),n=ai(e[0]);return[Math.cos(t)*Math.cos(n),Math.cos(t)*Math.sin(n),Math.sin(t)]}function wa(e){let[t,n,r]=e,i=ii(Math.asin(Math.min(Math.max(r,-1),1)));return[ii(Math.atan2(n,t)),i]}function Ta(e,t,n){let r=Ca(e),i=Ca(t),a=Ca(n),o=ba(r,i);if(o[0]===0&&o[1]===0&&o[2]===0)return ya(r,i)>0?[[...t],!0]:[[...n],!1];let s=ba(o,a);if(s[0]===0&&s[1]===0&&s[2]===0)return[[...t],!0];let c=Sa(ba(s,o)),l=[-c[0],-c[1],-c[2]],u=ya(a,c)>ya(a,l)?c:l,d=Sa(o),f=ya(ba(r,u),d),p=ya(ba(u,i),d);return f>=0&&p>=0?[wa(u),!1]:ya(r,a)>ya(i,a)?[[...e],!1]:[[...t],!0]}function Ea(e,t){if(!e)throw Error(`line is required`);if(!t)throw Error(`splitter is required`);let n=di(e),r=di(t);if(n!==`LineString`)throw Error(`line must be LineString`);if(r===`FeatureCollection`)throw Error(`splitter cannot be a FeatureCollection`);if(r===`GeometryCollection`)throw Error(`splitter cannot be a GeometryCollection`);var i=na(t,{precision:7});switch(e.type!==`Feature`&&(e=Qr(e)),r){case`Point`:return Oa(e,i);case`MultiPoint`:return Da(e,i);case`LineString`:case`MultiLineString`:case`Polygon`:case`MultiPolygon`:return Da(e,ki(e,i,{ignoreSelfIntersections:!0}))}}function Da(e,t){var n=[],r=ta();return Pi(t,function(t){if(n.forEach(function(e,t){e.id=t}),!n.length)n=Oa(e,t).features,r.load(ti(n));else{var i=r.search(t);if(i.features.length){var a=ka(t,i);n=n.filter(function(e){return e.id!==a.id}),r.remove(a),ji(Oa(a,t),function(e){n.push(e),r.insert(e)})}}}),ti(n)}function Oa(e,t){var n=[],r=li(e)[0],i=li(e)[e.geometry.coordinates.length-1];if(Aa(r,ci(t))||Aa(i,ci(t)))return ti([e]);var a=ta(),o=ia(e);a.load(o);var s=a.search(t);if(!s.features.length)return ti([e]);var c=ka(t,s),l=Mi(o,function(e,r,i){var a=li(r)[1],o=ci(t);return i===c.id?(e.push(o),n.push(ei(e)),Aa(o,a)?[o]:[o,a]):(e.push(a),e)},[r]);return l.length>1&&n.push(ei(l)),ti(n)}function ka(e,t){if(!t.features.length)throw Error(`lines must contain features`);if(t.features.length===1)return t.features[0];var n,r=1/0;return ji(t,function(t){var i=va(t,e).properties.pointDistance;i<r&&(n=t,r=i)}),n}function Aa(e,t){return e[0]===t[0]&&e[1]===t[1]}function ja(e,t){var n=ui(e),r=ui(t),i=n.type,a=r.type;switch(i){case`Point`:switch(a){case`MultiPoint`:return Ma(n,r);case`LineString`:return Xi(n,r,{ignoreEndVertices:!0});case`Polygon`:case`MultiPolygon`:return fi(n,r,{ignoreBoundary:!0});default:throw Error(`feature2 `+a+` geometry not supported`)}case`MultiPoint`:switch(a){case`MultiPoint`:return Na(n,r);case`LineString`:return Pa(n,r);case`Polygon`:case`MultiPolygon`:return Fa(n,r);default:throw Error(`feature2 `+a+` geometry not supported`)}case`LineString`:switch(a){case`LineString`:return Ia(n,r);case`Polygon`:case`MultiPolygon`:return Ra(n,r);default:throw Error(`feature2 `+a+` geometry not supported`)}case`Polygon`:switch(a){case`Polygon`:case`MultiPolygon`:return za(n,r);default:throw Error(`feature2 `+a+` geometry not supported`)}default:throw Error(`feature1 `+i+` geometry not supported`)}}function Ma(e,t){var n,r=!1;for(n=0;n<t.coordinates.length;n++)if(Va(t.coordinates[n],e.coordinates)){r=!0;break}return r}function Na(e,t){for(var n=0;n<e.coordinates.length;n++){for(var r=!1,i=0;i<t.coordinates.length;i++)Va(e.coordinates[n],t.coordinates[i])&&(r=!0);if(!r)return!1}return!0}function Pa(e,t){for(var n=!1,r=0;r<e.coordinates.length;r++){if(!Xi(e.coordinates[r],t))return!1;n||=Xi(e.coordinates[r],t,{ignoreEndVertices:!0})}return n}function Fa(e,t){for(var n=!0,r=!1,i=!1,a=0;a<e.coordinates.length;a++){if(i=fi(e.coordinates[a],t),!i){n=!1;break}r||(i=fi(e.coordinates[a],t,{ignoreBoundary:!0}))}return n&&i}function Ia(e,t){for(var n=0;n<e.coordinates.length;n++)if(!Xi(e.coordinates[n],t))return!1;return!0}function La(e,t){let n=e.coordinates,r=[];for(let e=0;e<n.length-1;e++){let i=ei([n[e],n[e+1]]),a=Ea(i,Qr(t));a.features.length===0?r.push(i):r.push(...a.features)}return ti(r)}function Ra(e,t){if(!Ba(Yi(t),Yi(e)))return!1;for(let n of e.coordinates)if(!fi(n,t))return!1;let n=!1,r=La(e,t);for(let e of r.features){let r=Ha(e.geometry.coordinates[0],e.geometry.coordinates[1]);if(!fi(r,t))return!1;!n&&fi(r,t,{ignoreBoundary:!0})&&(n=!0)}return n}function za(e,t){var n=Yi(e);if(!Ba(Yi(t),n))return!1;for(var r=0;r<e.coordinates[0].length;r++)if(!fi(e.coordinates[0][r],t))return!1;return!0}function Ba(e,t){return!(e[0]>t[0]||e[2]<t[2]||e[1]>t[1]||e[3]<t[3])}function Va(e,t){return e[0]===t[0]&&e[1]===t[1]}function Ha(e,t){return[(e[0]+t[0])/2,(e[1]+t[1])/2]}var Ua=ja,Wa=(e,t)=>t?Ji(e,t):!0,Ga=(e,t)=>t?Ua(e,t):!0;function Ka(e,t=`highlight`,n=`title`){let r=(e,n=[])=>{let r=``,i=0,a=0;return n.forEach((n,o)=>{let s=n[1]+1;o&&a>n[0]||(a=n[1],r+=[e.substring(i,n[0]),`<mark class="${t}">`,e.substring(n[0],s),`</mark>`].join(``),i=s)}),r+=e.substring(i),r};return e.filter(({matches:e})=>e&&e.length).map(({item:e,matches:t})=>{let i={...e};return t.forEach(e=>{e.key===n&&(i.highlightedText=r(io(e.value),ao(e.indices)))}),i})}var $=l(s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))}))(),1),qa,Ja=(e,t)=>{qa=new rn(e,{threshold:.4,distance:50,ignoreLocation:!0,includeMatches:!0,useExtendedSearch:!0,...t})},Ya=async(e,t,n)=>{let r=Object.entries(t).filter(([,e])=>e.type===`text`||e.type===`select`||e.type===`multiselect`).reduce((e,[t,n])=>{let r=[],i=(e,i)=>{let a={};n.type===`text`?a[e]=`${i}`:a[t]=`="${e}"`,r.push(a)};return Object.entries(n.state).filter(([,e])=>e).forEach(([e,t])=>i(e,t)),r.length>0&&e.push({$or:r}),e},[]),i;if(!(r.length>0)&&n.matchAllWhenEmpty!==!1)i=e;else{let e={$and:[...r]},t=qa.search(e);i=n.enableHighlighting?Ka(t,`highlight`,n.titleProperty):t.map(e=>e.item)}let a=Object.entries(t).filter(([,e])=>e.type===`range`).reduce((e,[t,n])=>{let r=e=>n.format===`date`?(0,$.default)(e).valueOf():parseFloat(e);return e[t]={min:r(n.state.min),max:r(n.state.max),format:n.format},e},{});if(Object.keys(a).length>0){let e=[];for(let t=0;t<i.length;t++){let n={};for(let[e,r]of Object.entries(a)){let o=e=>r.format===`date`?(0,$.default)(e).valueOf():parseFloat(e),s=ro(e,i[t]);if(s)if(Array.isArray(s)){let t=`overlap`;t===`overlap`?n[e]=a[e].min<=o(s[1])&&o(s[0])<=a[e].max:t===`contain`&&(n[e]=o(s[0])>=a[e].min&&o(s[1])<=a[e].max)}else o(s)>=a[e].min&&o(s)<=a[e].max?n[e]=!0:n[e]=!1;else n[e]=!0}Object.values(n).every(e=>!!e)&&e.push(i[t])}i=[...e]}let o=Object.entries(t).filter(([,e])=>e.type===`spatial`).reduce((e,[t,n])=>(e[t]={geometry:n.state.geometry,mode:n.state.mode},e),{});if(Object.values(o).map(e=>e.geometry).filter(e=>!!e).length>0){let e=[];for(let t=0;t<i.length;t++){let n={};for(let e of Object.keys(o)){let r=ro(e,i[t]),a=o[e].mode||`within`;r&&(a===`within`?Ga(r,o[e].geometry):Wa(r,o[e].geometry))?n[e]=!0:n[e]=!1}Object.values(n).every(e=>!!e)&&e.push(i[t])}i=[...e]}return i};function Xa(e,t){return[{type:`Tile`,source:{type:`XYZ`,url:`https://tiles.maps.eox.at/wmts/1.0.0/osm_3857/default/g/{z}/{y}/{x}.jpg`,attribution:`{ OSM: Data © OpenStreetMap contributors and others, Rendering © EOX }`}},{type:`Vector`,properties:{id:`draw`},source:{type:`Vector`,...e&&{format:`GeoJSON`},...e&&{url:t}},zIndex:1,interactions:[{type:`draw`,options:{id:`drawInteraction`,type:`Box`,modify:!0}}]}]}function Za(e){if(!e.dirty)return null;switch(e.type){case`multiselect`:for(let t in e.state)e.state.hasOwnProperty(t)&&(e.state[t]=!1);break;case`range`:e.state.min=e.min,e.state.max=e.max;break;case`select`:for(let t in e.state)e.state.hasOwnProperty(t)&&(e.state[t]=!1);break;case`spatial`:e.state.geometry=void 0;break;case`text`:e.keys.forEach(t=>{e.state[t]=void 0});break}return delete e.stringifiedState,delete e.dirty,e}function Qa(e,t){return e*2+t}function $a(e){return Object.keys(e).map(t=>({title:V`${e[t].title||e[t].key}:
|
|
595
595
|
${e[t].stringifiedState}`,key:t})).filter(t=>e[t.key].dirty)}function eo(e){return Object.values(e).map(e=>e.dirty).filter(e=>e).length>0}async function to(e,t,n){let r=n.externalFilter(e,t),i=typeof r==`string`||r instanceof String?r:r.url,a=typeof r==`object`&&`fetchFn`in r?await r.fetchFn(i):await fetch(i).then(async e=>await e.json());return r.key?ro(r.key,a):a}function no(e,t,n){let r;if(r=e.detail?e.detail.target:e.target,r?.classList.contains(`details-filter`)){if(!r.open||t?.expandMultipleFilters)return;n.shadowRoot.querySelectorAll(`eox-itemfilter-expandcontainer`).forEach(e=>{let t=e.shadowRoot.querySelector(`.details-filter`);t&&t!==r&&t.removeAttribute(`open`)})}else{if(!r?.open||t?.expandMultipleResults)return;n.querySelectorAll(`details`).forEach(e=>{e!==r&&e.removeAttribute(`open`)})}}function ro(e,t){return typeof e==`function`?e(t):e?.includes(`.`)?e.split(`.`).reduce((e,t)=>e&&e[t],t):t[e]}function io(e){return e.split(` `).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function ao(e,{mergeAdjacent:t=!1}={}){if(!Array.isArray(e))return[];let n=e.map(([e,t])=>e<=t?[e,t]:[t,e]).sort((e,t)=>e[0]-t[0]||e[1]-t[1]),r=[];for(let[e,i]of n){if(r.length===0){r.push([e,i]);continue}let n=r[r.length-1];(t?e<=n[1]+1:e<=n[1])?i>n[1]&&(n[1]=i):r.push([e,i])}return r}function oo(e){return e.format===`date`}var so=class extends U{static get properties(){return{filterProperties:{attribute:!1,type:Object},inlineMode:{attribute:`inline-mode`,type:Boolean},unstyled:{type:Boolean},filters:{state:!0,type:Object}}}constructor(){super(),this.filterProperties={},this.unstyled=!1,this.inlineMode=!1,this.filters={},this._handleClickOutside=this.#r.bind(this),this._handleKeyDown=this.#i.bind(this)}set showDropdown(e){this.renderRoot.querySelector(`[popover]`).togglePopover(e)}get showDropdown(){return this.renderRoot.querySelector(`[popover]`)?.matches(`:popover-open`)}#e(){setTimeout(()=>this._overlayCleanup=kr(this))}#t(){document.addEventListener(`click`,this._handleClickOutside),document.addEventListener(`focusout`,this._handleClickOutside),document.addEventListener(`keydown`,this._handleKeyDown),this.#e()}connectedCallback(){super.connectedCallback(),this.inlineMode&&this.#t()}#n(){document.removeEventListener(`click`,this._handleClickOutside),document.removeEventListener(`focusout`,this._handleClickOutside),document.removeEventListener(`keydown`,this._handleKeyDown),this._overlayCleanup()}disconnectedCallback(){this.inlineMode&&this.#n(),super.disconnectedCallback()}_overlayCleanup(){}#r(e){Fr(e,this)}#i(e){Pr(e,this)}#a(e){Nr(e,this)}#o(){Mr(this)}#s(e){jr(e,this)}#c(e){sn(e,this)}#l(e){on(e,this)}updateInline(){this.inlineMode&&this.requestUpdate()}updated(e){e.has(`inlineMode`)&&(this.inlineMode?this.#t():this.#n())}render(){return V`
|
|
596
596
|
<style>
|
|
597
597
|
${!this.unstyled&&Pe}
|
|
@@ -938,7 +938,7 @@ input {
|
|
|
938
938
|
</span>
|
|
939
939
|
`)}
|
|
940
940
|
</span>
|
|
941
|
-
`}};customElements.define(`eox-itemfilter-chips`,us);var ds=s(((e,t)=>{var n=200,r=`__lodash_hash_undefined__`,i=1/0,a=`[object Function]`,o=`[object GeneratorFunction]`,s=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l=typeof global==`object`&&global&&global.Object===Object&&global,u=typeof self==`object`&&self&&self.Object===Object&&self,d=l||u||Function(`return this`)();function f(e,t){return!!(e&&e.length)&&h(e,t,0)>-1}function p(e,t,n){for(var r=-1,i=e?e.length:0;++r<i;)if(n(t,e[r]))return!0;return!1}function m(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function h(e,t,n){if(t!==t)return m(e,g,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function g(e){return e!==e}function _(e,t){return e.has(t)}function v(e,t){return e?.[t]}function y(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function b(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var x=Array.prototype,S=Function.prototype,C=Object.prototype,w=d[`__core-js_shared__`],T=function(){var e=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),E=S.toString,D=C.hasOwnProperty,O=C.toString,k=RegExp(`^`+E.call(D).replace(s,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),A=x.splice,ee=_e(d,`Map`),j=_e(d,`Set`),te=_e(Object,`create`);function M(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ne(){this.__data__=te?te(null):{}}function re(e){return this.has(e)&&delete this.__data__[e]}function N(e){var t=this.__data__;if(te){var n=t[e];return n===r?void 0:n}return D.call(t,e)?t[e]:void 0}function ie(e){var t=this.__data__;return te?t[e]!==void 0:D.call(t,e)}function ae(e,t){var n=this.__data__;return n[e]=te&&t===void 0?r:t,this}M.prototype.clear=ne,M.prototype.delete=re,M.prototype.get=N,M.prototype.has=ie,M.prototype.set=ae;function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function F(){this.__data__=[]}function I(e){var t=this.__data__,n=H(t,e);return n<0?!1:(n==t.length-1?t.pop():A.call(t,n,1),!0)}function oe(e){var t=this.__data__,n=H(t,e);return n<0?void 0:t[n][1]}function L(e){return H(this.__data__,e)>-1}function R(e,t){var n=this.__data__,r=H(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}P.prototype.clear=F,P.prototype.delete=I,P.prototype.get=oe,P.prototype.has=L,P.prototype.set=R;function z(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function se(){this.__data__={hash:new M,map:new(ee||P),string:new M}}function ce(e){return ge(this,e).delete(e)}function B(e){return ge(this,e).get(e)}function le(e){return ge(this,e).has(e)}function ue(e,t){return ge(this,e).set(e,t),this}z.prototype.clear=se,z.prototype.delete=ce,z.prototype.get=B,z.prototype.has=le,z.prototype.set=ue;function de(e){var t=-1,n=e?e.length:0;for(this.__data__=new z;++t<n;)this.add(e[t])}function V(e){return this.__data__.set(e,r),this}function fe(e){return this.__data__.has(e)}de.prototype.add=de.prototype.push=V,de.prototype.has=fe;function H(e,t){for(var n=e.length;n--;)if(Se(e[n][0],t))return n;return-1}function pe(e){return!we(e)||ye(e)?!1:(Ce(e)||y(e)?k:c).test(be(e))}function me(e,t,r){var i=-1,a=f,o=e.length,s=!0,c=[],l=c;if(r)s=!1,a=p;else if(o>=n){var u=t?null:he(e);if(u)return b(u);s=!1,a=_,l=new de}else l=t?[]:c;outer:for(;++i<o;){var d=e[i],m=t?t(d):d;if(d=r||d!==0?d:0,s&&m===m){for(var h=l.length;h--;)if(l[h]===m)continue outer;t&&l.push(m),c.push(d)}else a(l,m,r)||(l!==c&&l.push(m),c.push(d))}return c}var he=j&&1/b(new j([,-0]))[1]==i?function(e){return new j(e)}:Te;function ge(e,t){var n=e.__data__;return ve(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function _e(e,t){var n=v(e,t);return pe(n)?n:void 0}function ve(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function ye(e){return!!T&&T in e}function be(e){if(e!=null){try{return E.call(e)}catch{}try{return e+``}catch{}}return``}function xe(e){return e&&e.length?me(e):[]}function Se(e,t){return e===t||e!==e&&t!==t}function Ce(e){var t=we(e)?O.call(e):``;return t==a||t==o}function we(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Te(){}t.exports=xe})),fs=s(((e,t)=>{var n=200,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=1,o=2,s=1/0,c=9007199254740991,l=`[object Arguments]`,u=`[object Array]`,d=`[object Boolean]`,f=`[object Date]`,p=`[object Error]`,m=`[object Function]`,h=`[object GeneratorFunction]`,g=`[object Map]`,_=`[object Number]`,v=`[object Object]`,y=`[object Promise]`,b=`[object RegExp]`,x=`[object Set]`,S=`[object String]`,C=`[object Symbol]`,w=`[object WeakMap]`,T=`[object ArrayBuffer]`,E=`[object DataView]`,D=`[object Float32Array]`,O=`[object Float64Array]`,k=`[object Int8Array]`,A=`[object Int16Array]`,ee=`[object Int32Array]`,j=`[object Uint8Array]`,te=`[object Uint8ClampedArray]`,M=`[object Uint16Array]`,ne=`[object Uint32Array]`,re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,N=/^\w*$/,ie=/^\./,ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/[\\^$.*+?()[\]{}|]/g,F=/\\(\\)?/g,I=/^\[object .+?Constructor\]$/,oe=/^(?:0|[1-9]\d*)$/,L={};L[D]=L[O]=L[k]=L[A]=L[ee]=L[j]=L[te]=L[M]=L[ne]=!0,L[l]=L[u]=L[T]=L[d]=L[E]=L[f]=L[p]=L[m]=L[g]=L[_]=L[v]=L[b]=L[x]=L[S]=L[w]=!1;var R=typeof global==`object`&&global&&global.Object===Object&&global,z=typeof self==`object`&&self&&self.Object===Object&&self,se=R||z||Function(`return this`)(),ce=typeof e==`object`&&e&&!e.nodeType&&e,B=ce&&typeof t==`object`&&t&&!t.nodeType&&t,le=B&&B.exports===ce&&R.process,ue=function(){try{return le&&le.binding(`util`)}catch{}}(),de=ue&&ue.isTypedArray;function V(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function fe(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function H(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function pe(e){return function(t){return t?.[e]}}function me(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function he(e){return function(t){return e(t)}}function ge(e,t){return e?.[t]}function _e(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function ve(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function ye(e,t){return function(n){return e(t(n))}}function be(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var xe=Array.prototype,Se=Function.prototype,Ce=Object.prototype,we=se[`__core-js_shared__`],Te=function(){var e=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),Ee=Se.toString,De=Ce.hasOwnProperty,Oe=Ce.toString,ke=RegExp(`^`+Ee.call(De).replace(P,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),U=se.Symbol,Ae=se.Uint8Array,je=Ce.propertyIsEnumerable,W=xe.splice,Me=U?U.isConcatSpreadable:void 0,Ne=ye(Object.keys,Object),Pe=Gt(se,`DataView`),Fe=Gt(se,`Map`),Ie=Gt(se,`Promise`),Le=Gt(se,`Set`),Re=Gt(se,`WeakMap`),G=Gt(Object,`create`),ze=an(Pe),Be=an(Fe),Ve=an(Ie),He=an(Le),K=an(Re),Ue=U?U.prototype:void 0,We=Ue?Ue.valueOf:void 0,Ge=Ue?Ue.toString:void 0;function Ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qe(){this.__data__=G?G(null):{}}function Je(e){return this.has(e)&&delete this.__data__[e]}function Ye(e){var t=this.__data__;if(G){var n=t[e];return n===i?void 0:n}return De.call(t,e)?t[e]:void 0}function Xe(e){var t=this.__data__;return G?t[e]!==void 0:De.call(t,e)}function Ze(e,t){var n=this.__data__;return n[e]=G&&t===void 0?i:t,this}Ke.prototype.clear=qe,Ke.prototype.delete=Je,Ke.prototype.get=Ye,Ke.prototype.has=Xe,Ke.prototype.set=Ze;function Qe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $e(){this.__data__=[]}function et(e){var t=this.__data__,n=_t(t,e);return n<0?!1:(n==t.length-1?t.pop():W.call(t,n,1),!0)}function tt(e){var t=this.__data__,n=_t(t,e);return n<0?void 0:t[n][1]}function nt(e){return _t(this.__data__,e)>-1}function rt(e,t){var n=this.__data__,r=_t(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Qe.prototype.clear=$e,Qe.prototype.delete=et,Qe.prototype.get=tt,Qe.prototype.has=nt,Qe.prototype.set=rt;function it(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function at(){this.__data__={hash:new Ke,map:new(Fe||Qe),string:new Ke}}function q(e){return Ut(this,e).delete(e)}function ot(e){return Ut(this,e).get(e)}function st(e){return Ut(this,e).has(e)}function ct(e,t){return Ut(this,e).set(e,t),this}it.prototype.clear=at,it.prototype.delete=q,it.prototype.get=ot,it.prototype.has=st,it.prototype.set=ct;function lt(e){var t=-1,n=e?e.length:0;for(this.__data__=new it;++t<n;)this.add(e[t])}function ut(e){return this.__data__.set(e,i),this}function J(e){return this.__data__.has(e)}lt.prototype.add=lt.prototype.push=ut,lt.prototype.has=J;function Y(e){this.__data__=new Qe(e)}function dt(){this.__data__=new Qe}function ft(e){return this.__data__.delete(e)}function pt(e){return this.__data__.get(e)}function mt(e){return this.__data__.has(e)}function ht(e,t){var r=this.__data__;if(r instanceof Qe){var i=r.__data__;if(!Fe||i.length<n-1)return i.push([e,t]),this;r=this.__data__=new it(i)}return r.set(e,t),this}Y.prototype.clear=dt,Y.prototype.delete=ft,Y.prototype.get=pt,Y.prototype.has=mt,Y.prototype.set=ht;function gt(e,t){var n=dn(e)||un(e)?me(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||De.call(e,a))&&!(i&&(a==`length`||Yt(a,r)))&&n.push(a);return n}function _t(e,t){for(var n=e.length;n--;)if(ln(e[n][0],t))return n;return-1}var vt=Rt(xt);function yt(e,t,n,r,i){var a=-1,o=e.length;for(n||=Jt,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?yt(s,t-1,n,r,i):fe(i,s):r||(i[i.length]=s)}return i}var bt=zt();function xt(e,t){return e&&bt(e,t,Cn)}function St(e,t){t=Xt(t,e)?[t]:Lt(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[rn(t[n++])];return n&&n==r?e:void 0}function Ct(e){return Oe.call(e)}function wt(e,t){return e!=null&&t in Object(e)}function Tt(e,t,n,r,i){return e===t?!0:e==null||t==null||!gn(e)&&!_n(t)?e!==e&&t!==t:Et(e,t,Tt,n,r,i)}function Et(e,t,n,r,i,a){var s=dn(e),c=dn(t),d=u,f=u;s||(d=Kt(e),d=d==l?v:d),c||(f=Kt(t),f=f==l?v:f);var p=d==v&&!_e(e),m=f==v&&!_e(t),h=d==f;if(h&&!p)return a||=new Y,s||yn(e)?Bt(e,t,n,r,i,a):Vt(e,t,d,n,r,i,a);if(!(i&o)){var g=p&&De.call(e,`__wrapped__`),_=m&&De.call(t,`__wrapped__`);if(g||_){var y=g?e.value():e,b=_?t.value():t;return a||=new Y,n(y,b,r,i,a)}}return h?(a||=new Y,Ht(e,t,n,r,i,a)):!1}function Dt(e,t,n,r){var i=n.length,s=i,c=!r;if(e==null)return!s;for(e=Object(e);i--;){var l=n[i];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){l=n[i];var u=l[0],d=e[u],f=l[1];if(c&&l[2]){if(d===void 0&&!(u in e))return!1}else{var p=new Y;if(r)var m=r(d,f,u,e,t,p);if(!(m===void 0?Tt(f,d,r,a|o,p):m))return!1}}return!0}function Ot(e){return!gn(e)||Qt(e)?!1:(mn(e)||_e(e)?ke:I).test(an(e))}function kt(e){return _n(e)&&hn(e.length)&&!!L[Oe.call(e)]}function At(e){return typeof e==`function`?e:e==null?wn:typeof e==`object`?dn(e)?Pt(e[0],e[1]):Nt(e):Tn(e)}function jt(e){if(!$t(e))return Ne(e);var t=[];for(var n in Object(e))De.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Mt(e,t){var n=-1,r=fn(e)?Array(e.length):[];return vt(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Nt(e){var t=Wt(e);return t.length==1&&t[0][2]?tn(t[0][0],t[0][1]):function(n){return n===e||Dt(n,e,t)}}function Pt(e,t){return Xt(e)&&en(t)?tn(rn(e),t):function(n){var r=xn(n,e);return r===void 0&&r===t?Sn(n,e):Tt(t,r,void 0,a|o)}}function Ft(e){return function(t){return St(t,e)}}function It(e){if(typeof e==`string`)return e;if(vn(e))return Ge?Ge.call(e):``;var t=e+``;return t==`0`&&1/e==-s?`-0`:t}function Lt(e){return dn(e)?e:nn(e)}function Rt(e,t){return function(n,r){if(n==null)return n;if(!fn(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function zt(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function Bt(e,t,n,r,i,s){var c=i&o,l=e.length,u=t.length;if(l!=u&&!(c&&u>l))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var f=-1,p=!0,m=i&a?new lt:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var h=e[f],g=t[f];if(r)var _=c?r(g,h,f,t,e,s):r(h,g,f,e,t,s);if(_!==void 0){if(_)continue;p=!1;break}if(m){if(!H(t,function(e,t){if(!m.has(t)&&(h===e||n(h,e,r,i,s)))return m.add(t)})){p=!1;break}}else if(!(h===g||n(h,g,r,i,s))){p=!1;break}}return s.delete(e),s.delete(t),p}function Vt(e,t,n,r,i,s,c){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!r(new Ae(e),new Ae(t)));case d:case f:case _:return ln(+e,+t);case p:return e.name==t.name&&e.message==t.message;case b:case S:return e==t+``;case g:var l=ve;case x:var u=s&o;if(l||=be,e.size!=t.size&&!u)return!1;var m=c.get(e);if(m)return m==t;s|=a,c.set(e,t);var h=Bt(l(e),l(t),r,i,s,c);return c.delete(e),h;case C:if(We)return We.call(e)==We.call(t)}return!1}function Ht(e,t,n,r,i,a){var s=i&o,c=Cn(e),l=c.length;if(l!=Cn(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:De.call(t,d)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var p=!0;a.set(e,t),a.set(t,e);for(var m=s;++u<l;){d=c[u];var h=e[d],g=t[d];if(r)var _=s?r(g,h,d,t,e,a):r(h,g,d,e,t,a);if(!(_===void 0?h===g||n(h,g,r,i,a):_)){p=!1;break}m||=d==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}function Ut(e,t){var n=e.__data__;return Zt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Wt(e){for(var t=Cn(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,en(i)]}return t}function Gt(e,t){var n=ge(e,t);return Ot(n)?n:void 0}var Kt=Ct;(Pe&&Kt(new Pe(new ArrayBuffer(1)))!=E||Fe&&Kt(new Fe)!=g||Ie&&Kt(Ie.resolve())!=y||Le&&Kt(new Le)!=x||Re&&Kt(new Re)!=w)&&(Kt=function(e){var t=Oe.call(e),n=t==v?e.constructor:void 0,r=n?an(n):void 0;if(r)switch(r){case ze:return E;case Be:return g;case Ve:return y;case He:return x;case K:return w}return t});function qt(e,t,n){t=Xt(t,e)?[t]:Lt(t);for(var r,i=-1,a=t.length;++i<a;){var o=rn(t[i]);if(!(r=e!=null&&n(e,o)))break;e=e[o]}if(r)return r;var a=e?e.length:0;return!!a&&hn(a)&&Yt(o,a)&&(dn(e)||un(e))}function Jt(e){return dn(e)||un(e)||!!(Me&&e&&e[Me])}function Yt(e,t){return t??=c,!!t&&(typeof e==`number`||oe.test(e))&&e>-1&&e%1==0&&e<t}function Xt(e,t){if(dn(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||vn(e)?!0:N.test(e)||!re.test(e)||t!=null&&e in Object(t)}function Zt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Qt(e){return!!Te&&Te in e}function $t(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Ce)}function en(e){return e===e&&!gn(e)}function tn(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var nn=cn(function(e){e=bn(e);var t=[];return ie.test(e)&&t.push(``),e.replace(ae,function(e,n,r,i){t.push(r?i.replace(F,`$1`):n||e)}),t});function rn(e){if(typeof e==`string`||vn(e))return e;var t=e+``;return t==`0`&&1/e==-s?`-0`:t}function an(e){if(e!=null){try{return Ee.call(e)}catch{}try{return e+``}catch{}}return``}function on(e,t){return yt(sn(e,t),1)}function sn(e,t){return(dn(e)?V:Mt)(e,At(t,3))}function cn(e,t){if(typeof e!=`function`||t&&typeof t!=`function`)throw TypeError(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(cn.Cache||it),n}cn.Cache=it;function ln(e,t){return e===t||e!==e&&t!==t}function un(e){return pn(e)&&De.call(e,`callee`)&&(!je.call(e,`callee`)||Oe.call(e)==l)}var dn=Array.isArray;function fn(e){return e!=null&&hn(e.length)&&!mn(e)}function pn(e){return _n(e)&&fn(e)}function mn(e){var t=gn(e)?Oe.call(e):``;return t==m||t==h}function hn(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=c}function gn(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _n(e){return!!e&&typeof e==`object`}function vn(e){return typeof e==`symbol`||_n(e)&&Oe.call(e)==C}var yn=de?he(de):kt;function bn(e){return e==null?``:It(e)}function xn(e,t,n){var r=e==null?void 0:St(e,t);return r===void 0?n:r}function Sn(e,t){return e!=null&&qt(e,t,wt)}function Cn(e){return fn(e)?gt(e):jt(e)}function wn(e){return e}function Tn(e){return Xt(e)?pe(rn(e)):Ft(e)}t.exports=on})),ps=l(ds(),1),ms=l(fs(),1);function hs(e,t,n){let r=[];e.filterProperties.length&&e.filterProperties.forEach(e=>{let r={},i=t=>e.format===`date`?(0,$.default)(t).valueOf():parseFloat(t);t.forEach(t=>{if(e.type===`range`){let n=ro(e.key,t);if(Array.isArray(n)){let e=[i(n[0]),i(n[1])];r.min=r.min===void 0?e[0]:Math.min(r.min,e[0]),r.max=r.max===void 0?e[1]:Math.max(r.max,e[1])}else{let e=i(n);r.min=r.min===void 0?e:Math.min(r.min,e),r.max=r.max===void 0?e:Math.max(r.max,e)}return}Array.isArray(t[e.key])?t[e.key].forEach(e=>{r[e]=void 0}):e.type===`spatial`?(r.geometry=e?.state?.geometry||void 0,r.geometry&&(e.stringifiedState=r.geometry.type),r.mode=e.mode||`intersects`):e.key?.includes(`.`)?(0,ps.default)((0,ms.default)(n.items,e.key)).filter(e=>e).forEach(e=>{r[e]=void 0}):r[t[e.key]]=void 0});let a=e.key||e.keys.join(`|`),o=n.filters[a],s;if(e.state)if(e.type===`range`){let t=t=>e.format===`date`?(0,$.default)(t).valueOf():parseFloat(t),n=t(e.state.min),i=t(e.state.max),a=t(e.min??r.min),o=t(e.max??r.max);s=e.format===`date`?!(0,$.default)(n).isSame((0,$.default)(a),`day`)||!(0,$.default)(i).isSame((0,$.default)(o),`day`)||void 0:n!==a||i!==o||void 0}else s=Object.values(e.state).some(e=>e)||void 0;if(n.filters[a]=Object.assign({type:e.type||`multiselect`,dirty:s||o?.dirty,key:a},e.type===`range`?{min:r.min,max:r.max,format:e.format}:{},e),e.type===`range`&&n.filters[a].dirty){let t=t=>e.format===`date`?(0,$.default)(t).valueOf():parseFloat(t),r=t(e.state?.min===void 0?o?.state?.min:e.state.min),i=t(e.state?.max===void 0?o?.state?.max:e.state.max);n.filters[a].stringifiedState=e.format===`date`?`${(0,$.default)(r).format(mo)} - ${(0,$.default)(i).format(mo)}`:`${r} - ${i}`}n.filters[a].state=Object.assign({},r,o?.state||{},e.state)}),e.matchAllWhenEmpty!==!1&&(n.results=n.sortResults(t),n.requestUpdate()),e.aggregateResults&&(r=Array.from(new Set(t.reduce((t,n)=>t.concat(n[e.aggregateResults]),[]))).filter(e=>e).sort((e,t)=>e.localeCompare(t)));let i=[];return Object.values(n.filters).forEach(e=>{e.type===`text`?e.keys.forEach(e=>{i.includes(e)||i.push(e)}):(e.type===`select`||e.type===`multiselect`)&&(i.includes(e.key)||i.push(e.key))}),Ja(t,Object.assign({keys:i},e.fuseConfig)),r}async function gs(e,t,n){let r;r=n.externalFilter?await to(t,n.filters,e):await Ya(t,n.filters,e),n.results=n.sortResults(r,{isExternalResult:!!n.externalFilter})}function _s(e,t,n){let r=`filter-${e.key}`.replace(`|`,`-`);switch(e.type){case`text`:return V`<eox-itemfilter-text
|
|
941
|
+
`}};customElements.define(`eox-itemfilter-chips`,us);var ds=s(((e,t)=>{var n=200,r=`__lodash_hash_undefined__`,i=1/0,a=`[object Function]`,o=`[object GeneratorFunction]`,s=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l=typeof global==`object`&&global&&global.Object===Object&&global,u=typeof self==`object`&&self&&self.Object===Object&&self,d=l||u||Function(`return this`)();function f(e,t){return!!(e&&e.length)&&h(e,t,0)>-1}function p(e,t,n){for(var r=-1,i=e?e.length:0;++r<i;)if(n(t,e[r]))return!0;return!1}function m(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function h(e,t,n){if(t!==t)return m(e,g,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function g(e){return e!==e}function _(e,t){return e.has(t)}function v(e,t){return e?.[t]}function y(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function b(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var x=Array.prototype,S=Function.prototype,C=Object.prototype,w=d[`__core-js_shared__`],T=function(){var e=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),E=S.toString,D=C.hasOwnProperty,O=C.toString,k=RegExp(`^`+E.call(D).replace(s,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),A=x.splice,ee=_e(d,`Map`),j=_e(d,`Set`),te=_e(Object,`create`);function M(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ne(){this.__data__=te?te(null):{}}function re(e){return this.has(e)&&delete this.__data__[e]}function N(e){var t=this.__data__;if(te){var n=t[e];return n===r?void 0:n}return D.call(t,e)?t[e]:void 0}function ie(e){var t=this.__data__;return te?t[e]!==void 0:D.call(t,e)}function ae(e,t){var n=this.__data__;return n[e]=te&&t===void 0?r:t,this}M.prototype.clear=ne,M.prototype.delete=re,M.prototype.get=N,M.prototype.has=ie,M.prototype.set=ae;function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function F(){this.__data__=[]}function I(e){var t=this.__data__,n=H(t,e);return n<0?!1:(n==t.length-1?t.pop():A.call(t,n,1),!0)}function oe(e){var t=this.__data__,n=H(t,e);return n<0?void 0:t[n][1]}function L(e){return H(this.__data__,e)>-1}function R(e,t){var n=this.__data__,r=H(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}P.prototype.clear=F,P.prototype.delete=I,P.prototype.get=oe,P.prototype.has=L,P.prototype.set=R;function z(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function se(){this.__data__={hash:new M,map:new(ee||P),string:new M}}function ce(e){return ge(this,e).delete(e)}function B(e){return ge(this,e).get(e)}function le(e){return ge(this,e).has(e)}function ue(e,t){return ge(this,e).set(e,t),this}z.prototype.clear=se,z.prototype.delete=ce,z.prototype.get=B,z.prototype.has=le,z.prototype.set=ue;function de(e){var t=-1,n=e?e.length:0;for(this.__data__=new z;++t<n;)this.add(e[t])}function V(e){return this.__data__.set(e,r),this}function fe(e){return this.__data__.has(e)}de.prototype.add=de.prototype.push=V,de.prototype.has=fe;function H(e,t){for(var n=e.length;n--;)if(Se(e[n][0],t))return n;return-1}function pe(e){return!we(e)||ye(e)?!1:(Ce(e)||y(e)?k:c).test(be(e))}function me(e,t,r){var i=-1,a=f,o=e.length,s=!0,c=[],l=c;if(r)s=!1,a=p;else if(o>=n){var u=t?null:he(e);if(u)return b(u);s=!1,a=_,l=new de}else l=t?[]:c;outer:for(;++i<o;){var d=e[i],m=t?t(d):d;if(d=r||d!==0?d:0,s&&m===m){for(var h=l.length;h--;)if(l[h]===m)continue outer;t&&l.push(m),c.push(d)}else a(l,m,r)||(l!==c&&l.push(m),c.push(d))}return c}var he=j&&1/b(new j([,-0]))[1]==i?function(e){return new j(e)}:Te;function ge(e,t){var n=e.__data__;return ve(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function _e(e,t){var n=v(e,t);return pe(n)?n:void 0}function ve(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function ye(e){return!!T&&T in e}function be(e){if(e!=null){try{return E.call(e)}catch{}try{return e+``}catch{}}return``}function xe(e){return e&&e.length?me(e):[]}function Se(e,t){return e===t||e!==e&&t!==t}function Ce(e){var t=we(e)?O.call(e):``;return t==a||t==o}function we(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Te(){}t.exports=xe})),fs=s(((e,t)=>{var n=200,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=1,o=2,s=1/0,c=9007199254740991,l=`[object Arguments]`,u=`[object Array]`,d=`[object Boolean]`,f=`[object Date]`,p=`[object Error]`,m=`[object Function]`,h=`[object GeneratorFunction]`,g=`[object Map]`,_=`[object Number]`,v=`[object Object]`,y=`[object Promise]`,b=`[object RegExp]`,x=`[object Set]`,S=`[object String]`,C=`[object Symbol]`,w=`[object WeakMap]`,T=`[object ArrayBuffer]`,E=`[object DataView]`,D=`[object Float32Array]`,O=`[object Float64Array]`,k=`[object Int8Array]`,A=`[object Int16Array]`,ee=`[object Int32Array]`,j=`[object Uint8Array]`,te=`[object Uint8ClampedArray]`,M=`[object Uint16Array]`,ne=`[object Uint32Array]`,re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,N=/^\w*$/,ie=/^\./,ae=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/[\\^$.*+?()[\]{}|]/g,F=/\\(\\)?/g,I=/^\[object .+?Constructor\]$/,oe=/^(?:0|[1-9]\d*)$/,L={};L[D]=L[O]=L[k]=L[A]=L[ee]=L[j]=L[te]=L[M]=L[ne]=!0,L[l]=L[u]=L[T]=L[d]=L[E]=L[f]=L[p]=L[m]=L[g]=L[_]=L[v]=L[b]=L[x]=L[S]=L[w]=!1;var R=typeof global==`object`&&global&&global.Object===Object&&global,z=typeof self==`object`&&self&&self.Object===Object&&self,se=R||z||Function(`return this`)(),ce=typeof e==`object`&&e&&!e.nodeType&&e,B=ce&&typeof t==`object`&&t&&!t.nodeType&&t,le=B&&B.exports===ce&&R.process,ue=function(){try{return le&&le.binding(`util`)}catch{}}(),de=ue&&ue.isTypedArray;function V(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function fe(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function H(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function pe(e){return function(t){return t?.[e]}}function me(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function he(e){return function(t){return e(t)}}function ge(e,t){return e?.[t]}function _e(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function ve(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function ye(e,t){return function(n){return e(t(n))}}function be(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var xe=Array.prototype,Se=Function.prototype,Ce=Object.prototype,we=se[`__core-js_shared__`],Te=function(){var e=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),Ee=Se.toString,De=Ce.hasOwnProperty,Oe=Ce.toString,ke=RegExp(`^`+Ee.call(De).replace(P,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),U=se.Symbol,Ae=se.Uint8Array,je=Ce.propertyIsEnumerable,W=xe.splice,Me=U?U.isConcatSpreadable:void 0,Ne=ye(Object.keys,Object),Pe=Gt(se,`DataView`),Fe=Gt(se,`Map`),Ie=Gt(se,`Promise`),Le=Gt(se,`Set`),Re=Gt(se,`WeakMap`),G=Gt(Object,`create`),ze=an(Pe),Be=an(Fe),Ve=an(Ie),He=an(Le),K=an(Re),Ue=U?U.prototype:void 0,We=Ue?Ue.valueOf:void 0,Ge=Ue?Ue.toString:void 0;function Ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qe(){this.__data__=G?G(null):{}}function Je(e){return this.has(e)&&delete this.__data__[e]}function Ye(e){var t=this.__data__;if(G){var n=t[e];return n===i?void 0:n}return De.call(t,e)?t[e]:void 0}function Xe(e){var t=this.__data__;return G?t[e]!==void 0:De.call(t,e)}function Ze(e,t){var n=this.__data__;return n[e]=G&&t===void 0?i:t,this}Ke.prototype.clear=qe,Ke.prototype.delete=Je,Ke.prototype.get=Ye,Ke.prototype.has=Xe,Ke.prototype.set=Ze;function Qe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $e(){this.__data__=[]}function et(e){var t=this.__data__,n=_t(t,e);return n<0?!1:(n==t.length-1?t.pop():W.call(t,n,1),!0)}function tt(e){var t=this.__data__,n=_t(t,e);return n<0?void 0:t[n][1]}function nt(e){return _t(this.__data__,e)>-1}function rt(e,t){var n=this.__data__,r=_t(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Qe.prototype.clear=$e,Qe.prototype.delete=et,Qe.prototype.get=tt,Qe.prototype.has=nt,Qe.prototype.set=rt;function it(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function at(){this.__data__={hash:new Ke,map:new(Fe||Qe),string:new Ke}}function q(e){return Ut(this,e).delete(e)}function ot(e){return Ut(this,e).get(e)}function st(e){return Ut(this,e).has(e)}function ct(e,t){return Ut(this,e).set(e,t),this}it.prototype.clear=at,it.prototype.delete=q,it.prototype.get=ot,it.prototype.has=st,it.prototype.set=ct;function lt(e){var t=-1,n=e?e.length:0;for(this.__data__=new it;++t<n;)this.add(e[t])}function ut(e){return this.__data__.set(e,i),this}function J(e){return this.__data__.has(e)}lt.prototype.add=lt.prototype.push=ut,lt.prototype.has=J;function Y(e){this.__data__=new Qe(e)}function dt(){this.__data__=new Qe}function ft(e){return this.__data__.delete(e)}function pt(e){return this.__data__.get(e)}function mt(e){return this.__data__.has(e)}function ht(e,t){var r=this.__data__;if(r instanceof Qe){var i=r.__data__;if(!Fe||i.length<n-1)return i.push([e,t]),this;r=this.__data__=new it(i)}return r.set(e,t),this}Y.prototype.clear=dt,Y.prototype.delete=ft,Y.prototype.get=pt,Y.prototype.has=mt,Y.prototype.set=ht;function gt(e,t){var n=dn(e)||un(e)?me(e.length,String):[],r=n.length,i=!!r;for(var a in e)(t||De.call(e,a))&&!(i&&(a==`length`||Yt(a,r)))&&n.push(a);return n}function _t(e,t){for(var n=e.length;n--;)if(ln(e[n][0],t))return n;return-1}var vt=Rt(xt);function yt(e,t,n,r,i){var a=-1,o=e.length;for(n||=Jt,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?yt(s,t-1,n,r,i):fe(i,s):r||(i[i.length]=s)}return i}var bt=zt();function xt(e,t){return e&&bt(e,t,Cn)}function St(e,t){t=Xt(t,e)?[t]:Lt(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[rn(t[n++])];return n&&n==r?e:void 0}function Ct(e){return Oe.call(e)}function wt(e,t){return e!=null&&t in Object(e)}function Tt(e,t,n,r,i){return e===t?!0:e==null||t==null||!gn(e)&&!_n(t)?e!==e&&t!==t:Et(e,t,Tt,n,r,i)}function Et(e,t,n,r,i,a){var s=dn(e),c=dn(t),d=u,f=u;s||(d=Kt(e),d=d==l?v:d),c||(f=Kt(t),f=f==l?v:f);var p=d==v&&!_e(e),m=f==v&&!_e(t),h=d==f;if(h&&!p)return a||=new Y,s||yn(e)?Bt(e,t,n,r,i,a):Vt(e,t,d,n,r,i,a);if(!(i&o)){var g=p&&De.call(e,`__wrapped__`),_=m&&De.call(t,`__wrapped__`);if(g||_){var y=g?e.value():e,b=_?t.value():t;return a||=new Y,n(y,b,r,i,a)}}return h?(a||=new Y,Ht(e,t,n,r,i,a)):!1}function Dt(e,t,n,r){var i=n.length,s=i,c=!r;if(e==null)return!s;for(e=Object(e);i--;){var l=n[i];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){l=n[i];var u=l[0],d=e[u],f=l[1];if(c&&l[2]){if(d===void 0&&!(u in e))return!1}else{var p=new Y;if(r)var m=r(d,f,u,e,t,p);if(!(m===void 0?Tt(f,d,r,a|o,p):m))return!1}}return!0}function Ot(e){return!gn(e)||Qt(e)?!1:(mn(e)||_e(e)?ke:I).test(an(e))}function kt(e){return _n(e)&&hn(e.length)&&!!L[Oe.call(e)]}function At(e){return typeof e==`function`?e:e==null?wn:typeof e==`object`?dn(e)?Pt(e[0],e[1]):Nt(e):Tn(e)}function jt(e){if(!$t(e))return Ne(e);var t=[];for(var n in Object(e))De.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Mt(e,t){var n=-1,r=fn(e)?Array(e.length):[];return vt(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function Nt(e){var t=Wt(e);return t.length==1&&t[0][2]?tn(t[0][0],t[0][1]):function(n){return n===e||Dt(n,e,t)}}function Pt(e,t){return Xt(e)&&en(t)?tn(rn(e),t):function(n){var r=xn(n,e);return r===void 0&&r===t?Sn(n,e):Tt(t,r,void 0,a|o)}}function Ft(e){return function(t){return St(t,e)}}function It(e){if(typeof e==`string`)return e;if(vn(e))return Ge?Ge.call(e):``;var t=e+``;return t==`0`&&1/e==-s?`-0`:t}function Lt(e){return dn(e)?e:nn(e)}function Rt(e,t){return function(n,r){if(n==null)return n;if(!fn(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function zt(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function Bt(e,t,n,r,i,s){var c=i&o,l=e.length,u=t.length;if(l!=u&&!(c&&u>l))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var f=-1,p=!0,m=i&a?new lt:void 0;for(s.set(e,t),s.set(t,e);++f<l;){var h=e[f],g=t[f];if(r)var _=c?r(g,h,f,t,e,s):r(h,g,f,e,t,s);if(_!==void 0){if(_)continue;p=!1;break}if(m){if(!H(t,function(e,t){if(!m.has(t)&&(h===e||n(h,e,r,i,s)))return m.add(t)})){p=!1;break}}else if(!(h===g||n(h,g,r,i,s))){p=!1;break}}return s.delete(e),s.delete(t),p}function Vt(e,t,n,r,i,s,c){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case T:return!(e.byteLength!=t.byteLength||!r(new Ae(e),new Ae(t)));case d:case f:case _:return ln(+e,+t);case p:return e.name==t.name&&e.message==t.message;case b:case S:return e==t+``;case g:var l=ve;case x:var u=s&o;if(l||=be,e.size!=t.size&&!u)return!1;var m=c.get(e);if(m)return m==t;s|=a,c.set(e,t);var h=Bt(l(e),l(t),r,i,s,c);return c.delete(e),h;case C:if(We)return We.call(e)==We.call(t)}return!1}function Ht(e,t,n,r,i,a){var s=i&o,c=Cn(e),l=c.length;if(l!=Cn(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:De.call(t,d)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var p=!0;a.set(e,t),a.set(t,e);for(var m=s;++u<l;){d=c[u];var h=e[d],g=t[d];if(r)var _=s?r(g,h,d,t,e,a):r(h,g,d,e,t,a);if(!(_===void 0?h===g||n(h,g,r,i,a):_)){p=!1;break}m||=d==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}function Ut(e,t){var n=e.__data__;return Zt(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Wt(e){for(var t=Cn(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,en(i)]}return t}function Gt(e,t){var n=ge(e,t);return Ot(n)?n:void 0}var Kt=Ct;(Pe&&Kt(new Pe(new ArrayBuffer(1)))!=E||Fe&&Kt(new Fe)!=g||Ie&&Kt(Ie.resolve())!=y||Le&&Kt(new Le)!=x||Re&&Kt(new Re)!=w)&&(Kt=function(e){var t=Oe.call(e),n=t==v?e.constructor:void 0,r=n?an(n):void 0;if(r)switch(r){case ze:return E;case Be:return g;case Ve:return y;case He:return x;case K:return w}return t});function qt(e,t,n){t=Xt(t,e)?[t]:Lt(t);for(var r,i=-1,a=t.length;++i<a;){var o=rn(t[i]);if(!(r=e!=null&&n(e,o)))break;e=e[o]}if(r)return r;var a=e?e.length:0;return!!a&&hn(a)&&Yt(o,a)&&(dn(e)||un(e))}function Jt(e){return dn(e)||un(e)||!!(Me&&e&&e[Me])}function Yt(e,t){return t??=c,!!t&&(typeof e==`number`||oe.test(e))&&e>-1&&e%1==0&&e<t}function Xt(e,t){if(dn(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||vn(e)?!0:N.test(e)||!re.test(e)||t!=null&&e in Object(t)}function Zt(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Qt(e){return!!Te&&Te in e}function $t(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||Ce)}function en(e){return e===e&&!gn(e)}function tn(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var nn=cn(function(e){e=bn(e);var t=[];return ie.test(e)&&t.push(``),e.replace(ae,function(e,n,r,i){t.push(r?i.replace(F,`$1`):n||e)}),t});function rn(e){if(typeof e==`string`||vn(e))return e;var t=e+``;return t==`0`&&1/e==-s?`-0`:t}function an(e){if(e!=null){try{return Ee.call(e)}catch{}try{return e+``}catch{}}return``}function on(e,t){return yt(sn(e,t),1)}function sn(e,t){return(dn(e)?V:Mt)(e,At(t,3))}function cn(e,t){if(typeof e!=`function`||t&&typeof t!=`function`)throw TypeError(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new(cn.Cache||it),n}cn.Cache=it;function ln(e,t){return e===t||e!==e&&t!==t}function un(e){return pn(e)&&De.call(e,`callee`)&&(!je.call(e,`callee`)||Oe.call(e)==l)}var dn=Array.isArray;function fn(e){return e!=null&&hn(e.length)&&!mn(e)}function pn(e){return _n(e)&&fn(e)}function mn(e){var t=gn(e)?Oe.call(e):``;return t==m||t==h}function hn(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=c}function gn(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _n(e){return!!e&&typeof e==`object`}function vn(e){return typeof e==`symbol`||_n(e)&&Oe.call(e)==C}var yn=de?he(de):kt;function bn(e){return e==null?``:It(e)}function xn(e,t,n){var r=e==null?void 0:St(e,t);return r===void 0?n:r}function Sn(e,t){return e!=null&&qt(e,t,wt)}function Cn(e){return fn(e)?gt(e):jt(e)}function wn(e){return e}function Tn(e){return Xt(e)?pe(rn(e)):Ft(e)}t.exports=on})),ps=l(ds(),1),ms=l(fs(),1);function hs(e,t,n){let r=[];e.filterProperties.length&&e.filterProperties.forEach(e=>{let r={},i=t=>e.format===`date`?(0,$.default)(t).valueOf():parseFloat(t);t.forEach(t=>{if(e.type===`range`){let n=ro(e.key,t);if(Array.isArray(n)){let e=[i(n[0]),i(n[1])];r.min=r.min===void 0?e[0]:Math.min(r.min,e[0]),r.max=r.max===void 0?e[1]:Math.max(r.max,e[1])}else{let e=i(n);r.min=r.min===void 0?e:Math.min(r.min,e),r.max=r.max===void 0?e:Math.max(r.max,e)}return}Array.isArray(t[e.key])?t[e.key].forEach(e=>{r[e]=void 0}):e.type===`spatial`?(r.geometry=e?.state?.geometry||void 0,r.geometry&&(e.stringifiedState=r.geometry.type),r.mode=e.mode||`intersects`):e.key?.includes(`.`)?(0,ps.default)((0,ms.default)(n.items,e.key)).filter(e=>e).forEach(e=>{r[e]=void 0}):r[t[e.key]]=void 0});let a=e.key||e.keys.join(`|`),o=n.filters[a],s;if(e.state)if(e.type===`range`){let t=t=>e.format===`date`?(0,$.default)(t).valueOf():parseFloat(t),n=t(e.state.min),i=t(e.state.max),a=t(e.min??r.min),o=t(e.max??r.max);s=e.format===`date`?!(0,$.default)(n).isSame((0,$.default)(a),`day`)||!(0,$.default)(i).isSame((0,$.default)(o),`day`)||void 0:n!==a||i!==o||void 0}else s=Object.values(e.state).some(e=>e)||void 0;if(n.filters[a]=Object.assign({type:e.type||`multiselect`,dirty:s||o?.dirty,key:a},e.type===`range`?{min:r.min,max:r.max,format:e.format}:{},e),e.type===`range`&&n.filters[a].dirty){let t=t=>e.format===`date`?(0,$.default)(t).valueOf():parseFloat(t),r=t(e.state?.min===void 0?o?.state?.min:e.state.min),i=t(e.state?.max===void 0?o?.state?.max:e.state.max);n.filters[a].stringifiedState=e.format===`date`?`${(0,$.default)(r).format(mo)} - ${(0,$.default)(i).format(mo)}`:`${r} - ${i}`}if(n.filters[a].state=Object.assign({},r,o?.state||{},e.state),e.type===`range`&&e.state){let t=t=>e.format===`date`?(0,$.default)(t).valueOf():parseFloat(t);e.state.min!==void 0&&(n.filters[a].state.min=t(e.state.min)),e.state.max!==void 0&&(n.filters[a].state.max=t(e.state.max))}}),e.matchAllWhenEmpty!==!1&&(n.results=n.sortResults(t),n.requestUpdate()),e.aggregateResults&&(r=Array.from(new Set(t.reduce((t,n)=>t.concat(n[e.aggregateResults]),[]))).filter(e=>e).sort((e,t)=>e.localeCompare(t)));let i=[];return Object.values(n.filters).forEach(e=>{e.type===`text`?e.keys.forEach(e=>{i.includes(e)||i.push(e)}):(e.type===`select`||e.type===`multiselect`)&&(i.includes(e.key)||i.push(e.key))}),Ja(t,Object.assign({keys:i},e.fuseConfig)),r}async function gs(e,t,n){let r;r=n.externalFilter?await to(t,n.filters,e):await Ya(t,n.filters,e),n.results=n.sortResults(r,{isExternalResult:!!n.externalFilter})}function _s(e,t,n){let r=`filter-${e.key}`.replace(`|`,`-`);switch(e.type){case`text`:return V`<eox-itemfilter-text
|
|
942
942
|
data-type="filter"
|
|
943
943
|
data-cy="text-filter"
|
|
944
944
|
slot="filter"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eox/itemfilter",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@types/geojson": "^7946.0.14",
|
|
11
11
|
"@types/lodash.debounce": "^4.0.7",
|
|
12
|
-
"vite": "^8.0.
|
|
12
|
+
"vite": "^8.0.13"
|
|
13
13
|
},
|
|
14
14
|
"engines": {
|
|
15
15
|
"npm": ">=8.0.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@turf/boolean-within": "^7.3.5",
|
|
47
47
|
"dayjs": "^1.11.9",
|
|
48
48
|
"fuse.js": "^7.3.0",
|
|
49
|
-
"lit": "^3.
|
|
49
|
+
"lit": "^3.3.3",
|
|
50
50
|
"lodash.debounce": "^4.0.8",
|
|
51
51
|
"lodash.flatmap": "^4.5.0",
|
|
52
52
|
"lodash.uniq": "^4.5.0",
|
|
@@ -85,9 +85,14 @@ export const filter = async (items, filters, config) => {
|
|
|
85
85
|
const rangeFilters = Object.entries(filters)
|
|
86
86
|
.filter(([, value]) => value.type === "range")
|
|
87
87
|
.reduce((acc, [key, value]) => {
|
|
88
|
+
const parseValue = (input) => {
|
|
89
|
+
return value.format === "date"
|
|
90
|
+
? dayjs(input).valueOf()
|
|
91
|
+
: parseFloat(input);
|
|
92
|
+
};
|
|
88
93
|
acc[key] = {
|
|
89
|
-
min: value.state.min,
|
|
90
|
-
max: value.state.max,
|
|
94
|
+
min: parseValue(value.state.min),
|
|
95
|
+
max: parseValue(value.state.max),
|
|
91
96
|
format: value.format,
|
|
92
97
|
};
|
|
93
98
|
return acc; // Return the accumulated range filters
|
|
@@ -100,7 +105,9 @@ export const filter = async (items, filters, config) => {
|
|
|
100
105
|
for (const [key, value] of Object.entries(rangeFilters)) {
|
|
101
106
|
// Function to parse value based on format
|
|
102
107
|
const parseValue = (input) => {
|
|
103
|
-
return value.format === "date"
|
|
108
|
+
return value.format === "date"
|
|
109
|
+
? dayjs(input).valueOf()
|
|
110
|
+
: parseFloat(input);
|
|
104
111
|
};
|
|
105
112
|
const rangeValue = getValue(key, results[i]);
|
|
106
113
|
if (rangeValue) {
|
|
@@ -153,6 +153,24 @@ function filterApplyMethod(config, items, EOxItemFilter) {
|
|
|
153
153
|
existingFilter?.state || {},
|
|
154
154
|
filterProperty.state,
|
|
155
155
|
);
|
|
156
|
+
|
|
157
|
+
if (filterProperty.type === "range" && filterProperty.state) {
|
|
158
|
+
const parseVal = (val) => {
|
|
159
|
+
return filterProperty.format === "date"
|
|
160
|
+
? dayjs(val).valueOf()
|
|
161
|
+
: parseFloat(val);
|
|
162
|
+
};
|
|
163
|
+
if (filterProperty.state.min !== undefined) {
|
|
164
|
+
EOxItemFilter.filters[filterKey].state.min = parseVal(
|
|
165
|
+
filterProperty.state.min,
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
if (filterProperty.state.max !== undefined) {
|
|
169
|
+
EOxItemFilter.filters[filterKey].state.max = parseVal(
|
|
170
|
+
filterProperty.state.max,
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
156
174
|
});
|
|
157
175
|
}
|
|
158
176
|
|
package/src/style.eox.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-client.d.ts","sourceRoot":"","sources":["../../src/helpers/filter-client.js"],"names":[],"mappings":"AAYO,kCAHI,KAAK,KAAQ,yBAYvB;AAUM,8BALI,KAAK,KAAQ,8BAGX,OAAO,CAAC,KAAK,KAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"filter-client.d.ts","sourceRoot":"","sources":["../../src/helpers/filter-client.js"],"names":[],"mappings":"AAYO,kCAHI,KAAK,KAAQ,yBAYvB;AAUM,8BALI,KAAK,KAAQ,8BAGX,OAAO,CAAC,KAAK,KAAQ,CAAC,CA6JlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter-apply.d.ts","sourceRoot":"","sources":["../../../src/methods/itemfilter/filter-apply.js"],"names":[],"mappings":";AAMA;;;;;;;GAOG;AACH,uDAJW,KAAK,KAAQ,uBAEX,KAAK,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"filter-apply.d.ts","sourceRoot":"","sources":["../../../src/methods/itemfilter/filter-apply.js"],"names":[],"mappings":";AAMA;;;;;;;GAOG;AACH,uDAJW,KAAK,KAAQ,uBAEX,KAAK,CAAC,MAAM,CAAC,CA2MzB"}
|