@eox/itemfilter 1.3.0 → 1.4.0
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/README.md +4 -0
- package/dist/eox-itemfilter.js +1156 -1276
- package/dist/eox-itemfilter.umd.cjs +110 -112
- package/package.json +8 -13
- package/src/components/chips.js +131 -0
- package/src/components/expand-container.js +94 -0
- package/src/components/filters/range.js +114 -0
- package/src/components/filters/selector.js +245 -0
- package/src/components/filters/spatial.js +192 -0
- package/src/components/filters/text.js +114 -0
- package/src/components/itemfilter-container.js +289 -0
- package/src/components/results.js +156 -0
- package/src/enums/config.js +104 -0
- package/src/enums/index.js +1 -0
- package/src/helpers/chip-items.js +19 -0
- package/src/helpers/filter-client.js +179 -0
- package/src/helpers/filter-external.js +18 -0
- package/src/helpers/get-value.js +12 -0
- package/src/helpers/highlighting.js +79 -0
- package/src/helpers/index.js +11 -0
- package/src/helpers/is-filters-dirty.js +13 -0
- package/src/helpers/map-layers.js +42 -0
- package/src/helpers/reset-filter.js +60 -0
- package/src/helpers/spatial.js +35 -0
- package/src/helpers/tab-index.js +13 -0
- package/src/helpers/toggle-accordion.js +39 -0
- package/src/main.js +466 -0
- package/src/methods/chips/handler.js +129 -0
- package/src/methods/chips/index.js +5 -0
- package/src/methods/container/handler.js +70 -0
- package/src/methods/container/index.js +10 -0
- package/src/methods/container/init-popver.js +34 -0
- package/src/methods/container/reset-filter.js +14 -0
- package/src/methods/container/reset-search.js +16 -0
- package/src/methods/container/search-filter.js +27 -0
- package/src/methods/filters/index.js +20 -0
- package/src/methods/filters/range.js +78 -0
- package/src/methods/filters/selector.js +209 -0
- package/src/methods/filters/spatial.js +114 -0
- package/src/methods/filters/text.js +32 -0
- package/src/methods/itemfilter/create-filter.js +83 -0
- package/src/methods/itemfilter/create-reset.js +39 -0
- package/src/methods/itemfilter/filter-apply.js +140 -0
- package/src/methods/itemfilter/index.js +6 -0
- package/src/methods/itemfilter/reset-filter.js +13 -0
- package/src/methods/itemfilter/search.js +23 -0
- package/src/methods/itemfilter/sort-results.js +14 -0
- package/src/methods/results/aggregate-results.js +43 -0
- package/src/methods/results/create.js +111 -0
- package/src/methods/results/index.js +2 -0
- package/src/style.eox.js +457 -0
- package/src/style.js +26 -0
- package/test/_mockMap.js +0 -20
- package/test/cases/filters/filter-keys.js +0 -22
- package/test/cases/filters/index.js +0 -3
- package/test/cases/general/accordion.js +0 -60
- package/test/cases/general/disable-highlight.js +0 -21
- package/test/cases/general/external-filter.js +0 -35
- package/test/cases/general/highlight-result.js +0 -16
- package/test/cases/general/index.js +0 -13
- package/test/cases/general/multiple-filters.js +0 -21
- package/test/cases/general/nested-property.js +0 -25
- package/test/cases/general/search-bar.js +0 -12
- package/test/cases/general/search-result.js +0 -14
- package/test/cases/general/spatial-filter.js +0 -22
- package/test/cases/general/subtitle.js +0 -15
- package/test/cases/general/validation.js +0 -22
- package/test/cases/state/custom-order.js +0 -24
- package/test/cases/state/index.js +0 -6
- package/test/cases/state/render-checkbox.js +0 -17
- package/test/cases/state/result-pre-checked.js +0 -20
- package/test/cases/state/results-with-pre-set-filters.js +0 -30
- package/test/filters.cy.js +0 -54
- package/test/general.cy.js +0 -110
- package/test/state.cy.js +0 -74
- package/test/testItems.json +0 -440
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
(function(ue,ce){typeof exports=="object"&&typeof module<"u"?ce(exports):typeof define=="function"&&define.amd?define(["exports"],ce):(ue=typeof globalThis<"u"?globalThis:ue||self,ce(ue["eox-itemfilter"]={}))})(this,function(ue){"use strict";var
|
|
1
|
+
(function(ue,ce){typeof exports=="object"&&typeof module<"u"?ce(exports):typeof define=="function"&&define.amd?define(["exports"],ce):(ue=typeof globalThis<"u"?globalThis:ue||self,ce(ue["eox-itemfilter"]={}))})(this,function(ue){"use strict";var Gd=Object.defineProperty;var ca=ue=>{throw TypeError(ue)};var Yd=(ue,ce,Ee)=>ce in ue?Gd(ue,ce,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):ue[ce]=Ee;var hn=(ue,ce,Ee)=>Yd(ue,typeof ce!="symbol"?ce+"":ce,Ee),vs=(ue,ce,Ee)=>ce.has(ue)||ca("Cannot "+Ee);var rt=(ue,ce,Ee)=>(vs(ue,ce,"read from private field"),Ee?Ee.call(ue):ce.get(ue)),Ze=(ue,ce,Ee)=>ce.has(ue)?ca("Cannot add the same private member more than once"):ce instanceof WeakSet?ce.add(ue):ce.set(ue,Ee),ai=(ue,ce,Ee,Or)=>(vs(ue,ce,"write to private field"),Or?Or.call(ue,Ee):ce.set(ue,Ee),Ee),le=(ue,ce,Ee)=>(vs(ue,ce,"access private method"),Ee);/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/var la,Dn,
|
|
5
|
+
*/var la,Dn,ua,me,da,ws,xs,ha,$s,_s,fa,As,pa,ga,jn,Kt,Ms,ya,Pt,ba,ma,va,Gt,wa,Ss,Nn,xa,Hn,$a,Yt,Es,_a,Gr,gr,it,yr,Aa,Ma;const ce=globalThis,Ee=ce.ShadowRoot&&(ce.ShadyCSS===void 0||ce.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Or=Symbol(),Cs=new WeakMap;let Sa=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Or)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(Ee&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=Cs.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Cs.set(r,e))}return e}toString(){return this.cssText}};const Ea=t=>new Sa(typeof t=="string"?t:t+"",void 0,Or),Ca=(t,e)=>{if(Ee)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of e){const n=document.createElement("style"),i=ce.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},ks=Ee?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return Ea(r)})(t):t;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/const{is:
|
|
9
|
+
*/const{is:ka,defineProperty:La,getOwnPropertyDescriptor:Pa,getOwnPropertyNames:Ta,getOwnPropertySymbols:Oa,getPrototypeOf:Ra}=Object,Mt=globalThis,Ls=Mt.trustedTypes,Da=Ls?Ls.emptyScript:"",li=Mt.reactiveElementPolyfillSupport,Rr=(t,e)=>t,ci={toAttribute(t,e){switch(e){case Boolean:t=t?Da:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Ps=(t,e)=>!ka(t,e),Ts={attribute:!0,type:String,converter:ci,reflect:!1,hasChanged:Ps};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Mt.litPropertyMetadata??(Mt.litPropertyMetadata=new WeakMap);class or extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=Ts){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){const n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&La(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){const{get:i,set:s}=Pa(this.prototype,e)??{get(){return this[r]},set(o){this[r]=o}};return{get(){return i==null?void 0:i.call(this)},set(o){const l=i==null?void 0:i.call(this);s.call(this,o),this.requestUpdate(e,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ts}static _$Ei(){if(this.hasOwnProperty(Rr("elementProperties")))return;const e=Ra(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Rr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Rr("properties"))){const r=this.properties,n=[...Ta(r),...Oa(r)];for(const i of n)this.createProperty(i,r[i])}const e=this[Symbol.metadata];if(e!==null){const r=litPropertyMetadata.get(e);if(r!==void 0)for(const[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(const[r,n]of this.elementProperties){const i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const i of n)r.unshift(ks(i))}else e!==void 0&&r.push(ks(e));return r}static _$Eu(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(r=>r(this))}addController(e){var r;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var r;(r=this._$EO)==null||r.delete(e)}_$E_(){const e=new Map,r=this.constructor.elementProperties;for(const n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ca(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostConnected)==null?void 0:n.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(r=>{var n;return(n=r.hostDisconnected)==null?void 0:n.call(r)})}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EC(e,r){var s;const n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){const o=(((s=n.converter)==null?void 0:s.toAttribute)!==void 0?n.converter:ci).toAttribute(r,n.type);this._$Em=e,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(e,r){var s;const n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){const o=n.getPropertyOptions(i),l=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)==null?void 0:s.fromAttribute)!==void 0?o.converter:ci;this._$Em=i,this[i]=l.fromAttribute(r,o.type),this._$Em=null}}requestUpdate(e,r,n){if(e!==void 0){if(n??(n=this.constructor.getPropertyOptions(e)),!(n.hasChanged??Ps)(this[e],r))return;this.P(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[s,o]of i)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],o)}let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(n=this._$EO)==null||n.forEach(i=>{var s;return(s=i.hostUpdate)==null?void 0:s.call(i)}),this.update(r)):this._$EU()}catch(i){throw e=!1,this._$EU(),i}e&&this._$AE(r)}willUpdate(e){}_$AE(e){var r;(r=this._$EO)==null||r.forEach(n=>{var i;return(i=n.hostUpdated)==null?void 0:i.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EC(r,this[r]))),this._$EU()}updated(e){}firstUpdated(e){}}or.elementStyles=[],or.shadowRootOptions={mode:"open"},or[Rr("elementProperties")]=new Map,or[Rr("finalized")]=new Map,li==null||li({ReactiveElement:or}),(Mt.reactiveElementVersions??(Mt.reactiveElementVersions=[])).push("2.0.4");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/const
|
|
14
|
-
\f\r]`,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
13
|
+
*/const Dr=globalThis,fn=Dr.trustedTypes,Os=fn?fn.createPolicy("lit-html",{createHTML:t=>t}):void 0,ui="$lit$",bt=`lit$${Math.random().toFixed(9).slice(2)}$`,di="?"+bt,ja=`<${di}>`,Nt=document,jr=()=>Nt.createComment(""),Nr=t=>t===null||typeof t!="object"&&typeof t!="function",hi=Array.isArray,Rs=t=>hi(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",fi=`[
|
|
14
|
+
\f\r]`,Hr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ds=/-->/g,js=/>/g,Ht=RegExp(`>|${fi}(?:([^\\s"'>=/]+)(${fi}*=${fi}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ns=/'/g,Hs=/"/g,Is=/^(?:script|style|textarea|title)$/i,Na=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Y=Na(1),St=Symbol.for("lit-noChange"),ge=Symbol.for("lit-nothing"),Bs=new WeakMap,It=Nt.createTreeWalker(Nt,129);function Us(t,e){if(!hi(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Os!==void 0?Os.createHTML(e):e}const zs=(t,e)=>{const r=t.length-1,n=[];let i,s=e===2?"<svg>":e===3?"<math>":"",o=Hr;for(let l=0;l<r;l++){const c=t[l];let d,p,y=-1,w=0;for(;w<c.length&&(o.lastIndex=w,p=o.exec(c),p!==null);)w=o.lastIndex,o===Hr?p[1]==="!--"?o=Ds:p[1]!==void 0?o=js:p[2]!==void 0?(Is.test(p[2])&&(i=RegExp("</"+p[2],"g")),o=Ht):p[3]!==void 0&&(o=Ht):o===Ht?p[0]===">"?(o=i??Hr,y=-1):p[1]===void 0?y=-2:(y=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?Ht:p[3]==='"'?Hs:Ns):o===Hs||o===Ns?o=Ht:o===Ds||o===js?o=Hr:(o=Ht,i=void 0);const m=o===Ht&&t[l+1].startsWith("/>")?" ":"";s+=o===Hr?c+ja:y>=0?(n.push(d),c.slice(0,y)+ui+c.slice(y)+bt+m):c+bt+(y===-2?l:m)}return[Us(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]};class Ir{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let s=0,o=0;const l=e.length-1,c=this.parts,[d,p]=zs(e,r);if(this.el=Ir.createElement(d,n),It.currentNode=this.el.content,r===2||r===3){const y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(i=It.nextNode())!==null&&c.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(const y of i.getAttributeNames())if(y.endsWith(ui)){const w=p[o++],m=i.getAttribute(y).split(bt),_=/([.?@])?(.*)/.exec(w);c.push({type:1,index:s,name:_[2],strings:m,ctor:_[1]==="."?Ws:_[1]==="?"?Vs:_[1]==="@"?Ks:Br}),i.removeAttribute(y)}else y.startsWith(bt)&&(c.push({type:6,index:s}),i.removeAttribute(y));if(Is.test(i.tagName)){const y=i.textContent.split(bt),w=y.length-1;if(w>0){i.textContent=fn?fn.emptyScript:"";for(let m=0;m<w;m++)i.append(y[m],jr()),It.nextNode(),c.push({type:2,index:++s});i.append(y[w],jr())}}}else if(i.nodeType===8)if(i.data===di)c.push({type:2,index:s});else{let y=-1;for(;(y=i.data.indexOf(bt,y+1))!==-1;)c.push({type:7,index:s}),y+=bt.length-1}s++}}static createElement(e,r){const n=Nt.createElement("template");return n.innerHTML=e,n}}function Bt(t,e,r=t,n){var o,l;if(e===St)return e;let i=n!==void 0?(o=r._$Co)==null?void 0:o[n]:r._$Cl;const s=Nr(e)?void 0:e._$litDirective$;return(i==null?void 0:i.constructor)!==s&&((l=i==null?void 0:i._$AO)==null||l.call(i,!1),s===void 0?i=void 0:(i=new s(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??(r._$Co=[]))[n]=i:r._$Cl=i),i!==void 0&&(e=Bt(t,i._$AS(t,e.values),i,n)),e}let qs=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:r},parts:n}=this._$AD,i=((e==null?void 0:e.creationScope)??Nt).importNode(r,!0);It.currentNode=i;let s=It.nextNode(),o=0,l=0,c=n[0];for(;c!==void 0;){if(o===c.index){let d;c.type===2?d=new ar(s,s.nextSibling,this,e):c.type===1?d=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(d=new Gs(s,this,e)),this._$AV.push(d),c=n[++l]}o!==(c==null?void 0:c.index)&&(s=It.nextNode(),o++)}return It.currentNode=Nt,i}p(e){let r=0;for(const n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}};class ar{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=ge,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Bt(this,e,r),Nr(e)?e===ge||e==null||e===""?(this._$AH!==ge&&this._$AR(),this._$AH=ge):e!==this._$AH&&e!==St&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Rs(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ge&&Nr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Nt.createTextNode(e)),this._$AH=e}$(e){var s;const{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Ir.createElement(Us(n.h,n.h[0]),this.options)),n);if(((s=this._$AH)==null?void 0:s._$AD)===i)this._$AH.p(r);else{const o=new qs(i,this),l=o.u(this.options);o.p(r),this.T(l),this._$AH=o}}_$AC(e){let r=Bs.get(e.strings);return r===void 0&&Bs.set(e.strings,r=new Ir(e)),r}k(e){hi(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,i=0;for(const s of e)i===r.length?r.push(n=new ar(this.O(jr()),this.O(jr()),this,this.options)):n=r[i],n._$AI(s),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,r);e&&e!==this._$AB;){const i=e.nextSibling;e.remove(),e=i}}setConnected(e){var r;this._$AM===void 0&&(this._$Cv=e,(r=this._$AP)==null||r.call(this,e))}}class Br{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,s){this.type=1,this._$AH=ge,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=ge}_$AI(e,r=this,n,i){const s=this.strings;let o=!1;if(s===void 0)e=Bt(this,e,r,0),o=!Nr(e)||e!==this._$AH&&e!==St,o&&(this._$AH=e);else{const l=e;let c,d;for(e=s[0],c=0;c<s.length-1;c++)d=Bt(this,l[n+c],r,c),d===St&&(d=this._$AH[c]),o||(o=!Nr(d)||d!==this._$AH[c]),d===ge?e=ge:e!==ge&&(e+=(d??"")+s[c+1]),this._$AH[c]=d}o&&!i&&this.j(e)}j(e){e===ge?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Ws extends Br{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ge?void 0:e}}class Vs extends Br{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ge)}}class Ks extends Br{constructor(e,r,n,i,s){super(e,r,n,i,s),this.type=5}_$AI(e,r=this){if((e=Bt(this,e,r,0)??ge)===St)return;const n=this._$AH,i=e===ge&&n!==ge||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==ge&&(n===ge||i);i&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r;typeof this._$AH=="function"?this._$AH.call(((r=this.options)==null?void 0:r.host)??this.element,e):this._$AH.handleEvent(e)}}class Gs{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Bt(this,e)}}const Ha={M:ui,P:bt,A:di,C:1,L:zs,R:qs,D:Rs,V:Bt,I:ar,H:Br,N:Vs,U:Ks,B:Ws,F:Gs},pi=Dr.litHtmlPolyfillSupport;pi==null||pi(Ir,ar),(Dr.litHtmlVersions??(Dr.litHtmlVersions=[])).push("3.2.1");const Ia=(t,e,r)=>{const n=(r==null?void 0:r.renderBefore)??e;let i=n._$litPart$;if(i===void 0){const s=(r==null?void 0:r.renderBefore)??null;n._$litPart$=i=new ar(e.insertBefore(jr(),s),s,void 0,r??{})}return i._$AI(t),i};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/class
|
|
19
|
+
*/let Ye=class extends or{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var r;const e=super.createRenderRoot();return(r=this.renderOptions).renderBefore??(r.renderBefore=e.firstChild),e}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ia(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return St}};Ye._$litElement$=!0,Ye.finalized=!0,(la=globalThis.litElementHydrateSupport)==null||la.call(globalThis,{LitElement:Ye});const gi=globalThis.litElementPolyfillSupport;gi==null||gi({LitElement:Ye}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2021 Google LLC
|
|
22
22
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2021 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/function
|
|
27
|
+
*/function Ke(t,e,r){return t?e(t):r==null?void 0:r(t)}const Ba=`
|
|
28
28
|
:host {
|
|
29
29
|
display: flex;
|
|
30
30
|
box-sizing: border-box;
|
|
@@ -49,7 +49,7 @@ form#itemfilter:not(.inline) {
|
|
|
49
49
|
details {
|
|
50
50
|
width: 100%;
|
|
51
51
|
}
|
|
52
|
-
`,
|
|
52
|
+
`,Ur=`
|
|
53
53
|
:host, :root {
|
|
54
54
|
--item-color: color-mix(
|
|
55
55
|
in srgb,
|
|
@@ -505,50 +505,50 @@ eox-itemfilter-results li.highlighted {
|
|
|
505
505
|
font-size: x-small;
|
|
506
506
|
top: -8px;
|
|
507
507
|
}
|
|
508
|
-
`,za=`:root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, white); --color: var(--eox-color, #2c3d49); --h-color: var(--eox-h-color, var(--color)); --hover-transparency: var(--eox-hover-transparency, 20%); --bg-hover-transparency: var(--eox-bg-hover-transparency, 40%); --btn-hover-transparency: var(--eox-btn-hover-transparency, 80%); --primary-color: var(--eox-primary-color, #004170); --primary-color-hover: color-mix( in srgb, var(--primary-color) var(--hover-transparency), transparent ); --primary-bg-color-hover: color-mix( in srgb, var(--primary-color) var(--bg-hover-transparency), transparent ); --primary-btn-color-hover: color-mix( in srgb, var(--primary-color) var(--btn-hover-transparency), transparent ); --secondary-color: var(--eox-secondary-color, #c6d4df); --secondary-color-hover: color-mix( in srgb, var(--secondary-color) var(--hover-transparency), transparent ); --secondary-bg-color-hover: color-mix( in srgb, var(--secondary-color) var(--bg-hover-transparency), transparent ); --secondary-btn-color-hover: color-mix( in srgb, var(--secondary-color) var(--btn-hover-transparency), transparent ); --success: var(--eox-success, #26cc0f); --warning: var(--eox-warning, #f18e32); --error: var(--eox-error, #ff5252); --header-font-family: var(--eox-header-font-family, "Roboto", sans-serif); --body-font-family: var(--eox-body-font-family, "Roboto", sans-serif);}* { font-size: normal; font-family: var(--body-font-family); color: var(--eox-color);}h1,h2,h3,h4,h5,h6 { font-family: var(--header-font-family);}span,p,div,main,label { font-family: var(--body-font-family);}@media (min-width: 576px) { .container { max-width: 510px; padding-right: 0; padding-left: 0; --block-spacing-vertical: calc(var(--spacing) * 2.5); }}@media (min-width: 768px) { .container { max-width: 700px; --block-spacing-vertical: calc(var(--spacing) * 3); }}@media (min-width: 992px) { .container { max-width: 920px; --block-spacing-vertical: calc(var(--spacing) * 3.5); }}@media (min-width: 1200px) { .container { max-width: 1130px; --block-spacing-vertical: calc(var(--spacing) * 4); }}.container { width: 100%; margin-right: auto; margin-left: auto; display: block; padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);}h1,h2,h3 { line-height: 120%; margin-top: 0.8rem; margin-bottom: 0.8rem;}p { --font-size: 1rem; font-weight: 400; line-height: 170%; margin-top: 0.8rem; margin-bottom: 1.6rem; font-size: var(--font-size);}body { padding: 0; margin: 0;}.sb-show-main.sb-main-padded { padding: 0;}h1,h2,h3,h4,h5,h6 { --font-weight: 700;}h1 { --font-size: 3rem; --typography-spacing-vertical: 0.5rem;}h2 { --font-size: 2rem; --typography-spacing-vertical: 0.5rem;}h3 { --font-size: 1.75rem; --typography-spacing-vertical: 0.5rem;}h4 { --font-size: 1.5rem; --typography-spacing-vertical: 0.5rem;}h5 { --font-size: 1.25rem; --typography-spacing-vertical: 0.5rem;}h1,h2,h3,h4,h5,h6 { margin-top: 0; margin-bottom: var(--typography-spacing-vertical); color: var(--h-color); font-weight: var(--font-weight); font-size: var(--font-size); font-family: var(--header-font-family);}button,.button { display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon):not(.json-editor-btntype-*),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-btn-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon,button[class*="json-editor-btntype-"] { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before,button[class*="json-editor-btntype-"]::before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0;}input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}textarea { height: 90px; resize: none; border-radius: 4px; box-sizing: border-box !important; width: 100%; padding: 5px 7px; border: 1px solid var(--secondary-color); font-size: smaller; background: var(--background-color);}input[type="text"],input[type="url"],input[type="email"],input[type="password"],input[type="text"],input[type="number"],input[type="search"],input[type="tel"],select { box-sizing: border-box; width: 100%; margin-top: 0.5rem; margin-bottom: 0.5rem; padding: 5px 7px; border-radius: 4px; border: 1px solid #0004;}ul.list-wrap { padding: 0;}ul.list-wrap li:hover,ul.list-wrap li.selected { background: var(--secondary-bg-color-hover);}ul.list-wrap li { list-style: none; padding: 4px;}ul.list-wrap li { border-bottom: 1.2px solid var(--secondary-color);}ul.list-wrap li:first-child { border-top: 1.2px solid var(--secondary-color);}ul.list-wrap li .list { width: 100%; align-items: center; justify-content: space-between; display: flex; align-items: center; cursor: pointer; font-size: small; gap: 10px;}ul.list-wrap li .list span { display: flex; align-items: center; cursor: pointer; font-size: small; flex-grow: 1;}input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}input[type="range"] { -webkit-appearance: none; width: 90%; margin-left: 5%; height: 6px; border-radius: 5px; background: #d7dcdf; outline: none; padding: 0;}input[type="range"]::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}.range-slider { margin: 60px 0 0 0;}.range-slider { width: 100%;}input[type="range"]::-webkit-slider-thumb:hover { background: #00416f;}input[type="range"]:active::-webkit-slider-thumb { background: #00416f;}input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}input[type="range"]::-moz-range-thumb:hover { background: #00416f;}input[type="range"]:active::-moz-range-thumb { background: #00416f;}input[type="range"]:focus::-webkit-slider-thumb { box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416f00;}.range-slider__value { display: inline-block; position: relative; width: 60px; color: #fff; line-height: 20px; text-align: center; border-radius: 3px; background: #2c3e50; padding: 5px 10px; margin-left: 8px;}.range-slider__value:after { position: absolute; top: 8px; left: -7px; width: 0; height: 0; border-top: 7px solid transparent; border-right: 7px solid #2c3e50; border-bottom: 7px solid transparent; content: "";}input::-moz-focus-inner,input::-moz-focus-outer { border: 0;}`;class qa extends Ze{constructor(){super();Xe(this,Dn);this.filterObject={},this.unstyled=!1}static get properties(){return{filterObject:{attribute:!1,type:Object},unstyled:{type:Boolean}}}render(){return Y`
|
|
508
|
+
`,Ua=`:root,:host { --spacing: 1rem; --block-spacing-vertical: calc(var(--spacing) * 2); --block-spacing-horizontal: var(--spacing); --background-color: var(--eox-background-color, white); --color: var(--eox-color, #2c3d49); --h-color: var(--eox-h-color, var(--color)); --hover-transparency: var(--eox-hover-transparency, 20%); --bg-hover-transparency: var(--eox-bg-hover-transparency, 40%); --btn-hover-transparency: var(--eox-btn-hover-transparency, 80%); --primary-color: var(--eox-primary-color, #004170); --primary-color-hover: color-mix( in srgb, var(--primary-color) var(--hover-transparency), transparent ); --primary-bg-color-hover: color-mix( in srgb, var(--primary-color) var(--bg-hover-transparency), transparent ); --primary-btn-color-hover: color-mix( in srgb, var(--primary-color) var(--btn-hover-transparency), transparent ); --secondary-color: var(--eox-secondary-color, #c6d4df); --secondary-color-hover: color-mix( in srgb, var(--secondary-color) var(--hover-transparency), transparent ); --secondary-bg-color-hover: color-mix( in srgb, var(--secondary-color) var(--bg-hover-transparency), transparent ); --secondary-btn-color-hover: color-mix( in srgb, var(--secondary-color) var(--btn-hover-transparency), transparent ); --success: var(--eox-success, #26cc0f); --warning: var(--eox-warning, #f18e32); --error: var(--eox-error, #ff5252); --header-font-family: var(--eox-header-font-family, "Roboto", sans-serif); --body-font-family: var(--eox-body-font-family, "Roboto", sans-serif);}* { font-size: normal; font-family: var(--body-font-family); color: var(--eox-color);}h1,h2,h3,h4,h5,h6 { font-family: var(--header-font-family);}span,p,div,main,label { font-family: var(--body-font-family);}@media (min-width: 576px) { .container { max-width: 510px; padding-right: 0; padding-left: 0; --block-spacing-vertical: calc(var(--spacing) * 2.5); }}@media (min-width: 768px) { .container { max-width: 700px; --block-spacing-vertical: calc(var(--spacing) * 3); }}@media (min-width: 992px) { .container { max-width: 920px; --block-spacing-vertical: calc(var(--spacing) * 3.5); }}@media (min-width: 1200px) { .container { max-width: 1130px; --block-spacing-vertical: calc(var(--spacing) * 4); }}.container { width: 100%; margin-right: auto; margin-left: auto; display: block; padding: var(--block-spacing-vertical) var(--block-spacing-horizontal);}h1,h2,h3 { line-height: 120%; margin-top: 0.8rem; margin-bottom: 0.8rem;}p { --font-size: 1rem; font-weight: 400; line-height: 170%; margin-top: 0.8rem; margin-bottom: 1.6rem; font-size: var(--font-size);}body { padding: 0; margin: 0;}.sb-show-main.sb-main-padded { padding: 0;}h1,h2,h3,h4,h5,h6 { --font-weight: 700;}h1 { --font-size: 3rem; --typography-spacing-vertical: 0.5rem;}h2 { --font-size: 2rem; --typography-spacing-vertical: 0.5rem;}h3 { --font-size: 1.75rem; --typography-spacing-vertical: 0.5rem;}h4 { --font-size: 1.5rem; --typography-spacing-vertical: 0.5rem;}h5 { --font-size: 1.25rem; --typography-spacing-vertical: 0.5rem;}h1,h2,h3,h4,h5,h6 { margin-top: 0; margin-bottom: var(--typography-spacing-vertical); color: var(--h-color); font-weight: var(--font-weight); font-size: var(--font-size); font-family: var(--header-font-family);}button,.button { display: inline-flex; position: relative; align-items: center; color: #fff; border-width: 0; outline: none; border-radius: 4px; padding: 16px; height: 36px; cursor: pointer; font-family: inherit; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1.25px; font-weight: 500; box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); transition-property: box-shadow, transform, opacity, background; transition-duration: 0.28s; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);}button:hover:not([disabled]):not(.icon):not(.json-editor-btntype-*),.button:hover:not([disabled]):not(.icon) { box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); background: var(--primary-btn-color-hover);}button,button:active,.button,.button:active { background: var(--primary-color);}button[disabled],.button[disabled] { opacity: 0.5; cursor: not-allowed;}button.block,.button.block { display: block;}button.outline,.button.outline { background: transparent; box-shadow: none; color: var(--primary-color); outline: 1px solid var(--primary-color);}button.outline:hover,.button.outline:hover { background: transparent;}button.icon,.button.icon,button[class*="json-editor-btntype-"] { background: transparent; border: none; box-shadow: none; padding: 0; border-radius: 50%; width: 24px; height: 24px; text-indent: -9999px;}button.icon-text,.button.icon-text { text-indent: 26px;}button.icon-text.block,.button.icon-text.block { text-indent: 20px;}button.icon:before,button.icon-text:before,.button.icon:before,.button.icon-text:before { position: absolute; text-indent: 0; line-height: initial;}button.icon-text.block:before,.button.icon-text.block:before { text-indent: -54px;}button.icon:before,.button.icon:before,button[class*="json-editor-btntype-"]::before { width: 24px; height: 24px; margin-right: 0;}button.icon-text:before,.button.icon-text:before { width: 18px; height: 18px;}button.small,.button.small { height: 28px; padding: 12.4px; font-size: 0.75rem;}button.smallest.icon,button.smallest.icon::before { height: 16px; width: 16px; padding: 0;}input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}textarea { height: 90px; resize: none; border-radius: 4px; box-sizing: border-box !important; width: 100%; padding: 5px 7px; border: 1px solid var(--secondary-color); font-size: smaller; background: var(--background-color);}input[type="text"],input[type="url"],input[type="email"],input[type="password"],input[type="text"],input[type="number"],input[type="search"],input[type="tel"],select { box-sizing: border-box; width: 100%; margin-top: 0.5rem; margin-bottom: 0.5rem; padding: 5px 7px; border-radius: 4px; border: 1px solid #0004;}ul.list-wrap { padding: 0;}ul.list-wrap li:hover,ul.list-wrap li.selected { background: var(--secondary-bg-color-hover);}ul.list-wrap li { list-style: none; padding: 4px;}ul.list-wrap li { border-bottom: 1.2px solid var(--secondary-color);}ul.list-wrap li:first-child { border-top: 1.2px solid var(--secondary-color);}ul.list-wrap li .list { width: 100%; align-items: center; justify-content: space-between; display: flex; align-items: center; cursor: pointer; font-size: small; gap: 10px;}ul.list-wrap li .list span { display: flex; align-items: center; cursor: pointer; font-size: small; flex-grow: 1;}input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}input[type="range"] { -webkit-appearance: none; width: 90%; margin-left: 5%; height: 6px; border-radius: 5px; background: #d7dcdf; outline: none; padding: 0;}input[type="range"]::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}.range-slider { margin: 60px 0 0 0;}.range-slider { width: 100%;}input[type="range"]::-webkit-slider-thumb:hover { background: #00416f;}input[type="range"]:active::-webkit-slider-thumb { background: #00416f;}input[type="range"]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #2c3e50; cursor: pointer; transition: background 0.15s ease-in-out;}input[type="range"]::-moz-range-thumb:hover { background: #00416f;}input[type="range"]:active::-moz-range-thumb { background: #00416f;}input[type="range"]:focus::-webkit-slider-thumb { box-shadow: 0 0 0 3px #fff0, 0 0 0 6px #00416f00;}.range-slider__value { display: inline-block; position: relative; width: 60px; color: #fff; line-height: 20px; text-align: center; border-radius: 3px; background: #2c3e50; padding: 5px 10px; margin-left: 8px;}.range-slider__value:after { position: absolute; top: 8px; left: -7px; width: 0; height: 0; border-top: 7px solid transparent; border-right: 7px solid #2c3e50; border-bottom: 7px solid transparent; content: "";}input::-moz-focus-inner,input::-moz-focus-outer { border: 0;}`;class za extends Ye{constructor(){super();Ze(this,Dn);this.filterObject={},this.unstyled=!1}static get properties(){return{filterObject:{attribute:!1,type:Object},unstyled:{type:Boolean}}}render(){return Y`
|
|
509
509
|
<style>
|
|
510
|
-
${!this.unstyled&&
|
|
510
|
+
${!this.unstyled&&Ur}
|
|
511
511
|
</style>
|
|
512
512
|
|
|
513
|
-
${
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
`}}Dn=new WeakSet,ha=function(r){this.dispatchEvent(new CustomEvent("details-toggled",{detail:r,bubbles:!0,composed:!0}))},customElements.define("eox-itemfilter-expandcontainer",qa);function mt(t){return Array.isArray?Array.isArray(t):Fs(t)==="[object Array]"}const Wa=1/0;function Va(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-Wa?"-0":e}function Ka(t){return t==null?"":Va(t)}function ut(t){return typeof t=="string"}function Gs(t){return typeof t=="number"}function Ga(t){return t===!0||t===!1||Ya(t)&&Fs(t)=="[object Boolean]"}function Ys(t){return typeof t=="object"}function Ya(t){return Ys(t)&&t!==null}function Je(t){return t!=null}function yi(t){return!t.trim().length}function Fs(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Xh="Extended search is not available",Fa="Incorrect 'index' type",Xa=t=>`Invalid value for key ${t}`,Za=t=>`Pattern length exceeds max of ${t}.`,Ja=t=>`Missing ${t} property in key`,Qa=t=>`Property 'weight' in key '${t}' must be a positive integer`,Xs=Object.prototype.hasOwnProperty;class el{constructor(e){this._keys=[],this._keyMap={};let r=0;e.forEach(n=>{let i=Zs(n);this._keys.push(i),this._keyMap[i.id]=i,r+=i.weight}),this._keys.forEach(n=>{n.weight/=r})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Zs(t){let e=null,r=null,n=null,i=1,s=null;if(ut(t)||mt(t))n=t,e=Js(t),r=bi(t);else{if(!Xs.call(t,"name"))throw new Error(Ja("name"));const o=t.name;if(n=o,Xs.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(Qa(o));e=Js(o),r=bi(o),s=t.getFn}return{path:e,id:r,weight:i,src:n,getFn:s}}function Js(t){return mt(t)?t:t.split(".")}function bi(t){return mt(t)?t.join("."):t}function tl(t,e){let r=[],n=!1;const i=(s,o,l)=>{if(Je(s))if(!o[l])r.push(s);else{let c=o[l];const h=s[c];if(!Je(h))return;if(l===o.length-1&&(ut(h)||Gs(h)||Ga(h)))r.push(Ka(h));else if(mt(h)){n=!0;for(let p=0,y=h.length;p<y;p+=1)i(h[p],o,l+1)}else o.length&&i(h,o,l+1)}};return i(t,ut(e)?e.split("."):e,0),n?r:r[0]}var V={...{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},...{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},...{location:0,threshold:.6,distance:100},...{useExtendedSearch:!1,getFn:tl,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const rl=/[^ ]+/g;function nl(t=1,e=3){const r=new Map,n=Math.pow(10,e);return{get(i){const s=i.match(rl).length;if(r.has(s))return r.get(s);const o=1/Math.pow(s,.5*t),l=parseFloat(Math.round(o*n)/n);return r.set(s,l),l},clear(){r.clear()}}}class mi{constructor({getFn:e=V.getFn,fieldNormWeight:r=V.fieldNormWeight}={}){this.norm=nl(r,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((r,n)=>{this._keysMap[r.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,ut(this.docs[0])?this.docs.forEach((e,r)=>{this._addString(e,r)}):this.docs.forEach((e,r)=>{this._addObject(e,r)}),this.norm.clear())}add(e){const r=this.size();ut(e)?this._addString(e,r):this._addObject(e,r)}removeAt(e){this.records.splice(e,1);for(let r=e,n=this.size();r<n;r+=1)this.records[r].i-=1}getValueForItemAtKeyId(e,r){return e[this._keysMap[r]]}size(){return this.records.length}_addString(e,r){if(!Je(e)||yi(e))return;let n={v:e,i:r,n:this.norm.get(e)};this.records.push(n)}_addObject(e,r){let n={i:r,$:{}};this.keys.forEach((i,s)=>{let o=i.getFn?i.getFn(e):this.getFn(e,i.path);if(Je(o)){if(mt(o)){let l=[];const c=[{nestedArrIndex:-1,value:o}];for(;c.length;){const{nestedArrIndex:h,value:p}=c.pop();if(Je(p))if(ut(p)&&!yi(p)){let y={v:p,i:h,n:this.norm.get(p)};l.push(y)}else mt(p)&&p.forEach((y,w)=>{c.push({nestedArrIndex:w,value:y})})}n.$[s]=l}else if(ut(o)&&!yi(o)){let l={v:o,n:this.norm.get(o)};n.$[s]=l}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function Qs(t,e,{getFn:r=V.getFn,fieldNormWeight:n=V.fieldNormWeight}={}){const i=new mi({getFn:r,fieldNormWeight:n});return i.setKeys(t.map(Zs)),i.setSources(e),i.create(),i}function il(t,{getFn:e=V.getFn,fieldNormWeight:r=V.fieldNormWeight}={}){const{keys:n,records:i}=t,s=new mi({getFn:e,fieldNormWeight:r});return s.setKeys(n),s.setIndexRecords(i),s}function gn(t,{errors:e=0,currentLocation:r=0,expectedLocation:n=0,distance:i=V.distance,ignoreLocation:s=V.ignoreLocation}={}){const o=e/t.length;if(s)return o;const l=Math.abs(n-r);return i?o+l/i:l?1:o}function sl(t=[],e=V.minMatchCharLength){let r=[],n=-1,i=-1,s=0;for(let o=t.length;s<o;s+=1){let l=t[s];l&&n===-1?n=s:!l&&n!==-1&&(i=s-1,i-n+1>=e&&r.push([n,i]),n=-1)}return t[s-1]&&s-n>=e&&r.push([n,s-1]),r}const Ut=32;function ol(t,e,r,{location:n=V.location,distance:i=V.distance,threshold:s=V.threshold,findAllMatches:o=V.findAllMatches,minMatchCharLength:l=V.minMatchCharLength,includeMatches:c=V.includeMatches,ignoreLocation:h=V.ignoreLocation}={}){if(e.length>Ut)throw new Error(Za(Ut));const p=e.length,y=t.length,w=Math.max(0,Math.min(n,y));let m=s,A=w;const E=l>1||c,z=E?Array(y):[];let H;for(;(H=t.indexOf(e,A))>-1;){let fe=gn(e,{currentLocation:H,expectedLocation:w,distance:i,ignoreLocation:h});if(m=Math.min(fe,m),A=H+p,E){let Ae=0;for(;Ae<p;)z[H+Ae]=1,Ae+=1}}A=-1;let X=[],F=1,de=p+y;const te=1<<p-1;for(let fe=0;fe<p;fe+=1){let Ae=0,Ce=de;for(;Ae<Ce;)gn(e,{errors:fe,currentLocation:w+Ce,expectedLocation:w,distance:i,ignoreLocation:h})<=m?Ae=Ce:de=Ce,Ce=Math.floor((de-Ae)/2+Ae);de=Ce;let ye=Math.max(1,w-Ce+1),ie=o?y:Math.min(w+Ce,y)+p,Ge=Array(ie+2);Ge[ie+1]=(1<<fe)-1;for(let D=ie;D>=ye;D-=1){let S=D-1,M=r[t.charAt(S)];if(E&&(z[S]=+!!M),Ge[D]=(Ge[D+1]<<1|1)&M,fe&&(Ge[D]|=(X[D+1]|X[D])<<1|1|X[D+1]),Ge[D]&te&&(F=gn(e,{errors:fe,currentLocation:S,expectedLocation:w,distance:i,ignoreLocation:h}),F<=m)){if(m=F,A=S,A<=w)break;ye=Math.max(1,2*w-A)}}if(gn(e,{errors:fe+1,currentLocation:w,expectedLocation:w,distance:i,ignoreLocation:h})>m)break;X=Ge}const Z={isMatch:A>=0,score:Math.max(.001,F)};if(E){const fe=sl(z,l);fe.length?c&&(Z.indices=fe):Z.isMatch=!1}return Z}function al(t){let e={};for(let r=0,n=t.length;r<n;r+=1){const i=t.charAt(r);e[i]=(e[i]||0)|1<<n-r-1}return e}class eo{constructor(e,{location:r=V.location,threshold:n=V.threshold,distance:i=V.distance,includeMatches:s=V.includeMatches,findAllMatches:o=V.findAllMatches,minMatchCharLength:l=V.minMatchCharLength,isCaseSensitive:c=V.isCaseSensitive,ignoreLocation:h=V.ignoreLocation}={}){if(this.options={location:r,threshold:n,distance:i,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:c,ignoreLocation:h},this.pattern=c?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const p=(w,m)=>{this.chunks.push({pattern:w,alphabet:al(w),startIndex:m})},y=this.pattern.length;if(y>Ut){let w=0;const m=y%Ut,A=y-m;for(;w<A;)p(this.pattern.substr(w,Ut),w),w+=Ut;if(m){const E=y-Ut;p(this.pattern.substr(E),E)}}else p(this.pattern,0)}searchIn(e){const{isCaseSensitive:r,includeMatches:n}=this.options;if(r||(e=e.toLowerCase()),this.pattern===e){let A={isMatch:!0,score:0};return n&&(A.indices=[[0,e.length-1]]),A}const{location:i,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:c,ignoreLocation:h}=this.options;let p=[],y=0,w=!1;this.chunks.forEach(({pattern:A,alphabet:E,startIndex:z})=>{const{isMatch:H,score:X,indices:F}=ol(e,A,E,{location:i+z,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:c,includeMatches:n,ignoreLocation:h});H&&(w=!0),y+=X,H&&F&&(p=[...p,...F])});let m={isMatch:w,score:w?y/this.chunks.length:1};return w&&n&&(m.indices=p),m}}class Et{constructor(e){this.pattern=e}static isMultiMatch(e){return to(e,this.multiRegex)}static isSingleMatch(e){return to(e,this.singleRegex)}search(){}}function to(t,e){const r=t.match(e);return r?r[1]:null}class ll extends Et{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const r=e===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class cl extends Et{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const n=e.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class ul extends Et{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const r=e.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class hl extends Et{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const r=!e.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class dl extends Et{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const r=e.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class fl extends Et{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const r=!e.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class ro extends Et{constructor(e,{location:r=V.location,threshold:n=V.threshold,distance:i=V.distance,includeMatches:s=V.includeMatches,findAllMatches:o=V.findAllMatches,minMatchCharLength:l=V.minMatchCharLength,isCaseSensitive:c=V.isCaseSensitive,ignoreLocation:h=V.ignoreLocation}={}){super(e),this._bitapSearch=new eo(e,{location:r,threshold:n,distance:i,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:c,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class no extends Et{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let r=0,n;const i=[],s=this.pattern.length;for(;(n=e.indexOf(this.pattern,r))>-1;)r=n+s,i.push([n,r-1]);const o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}}const vi=[ll,no,ul,hl,fl,dl,cl,ro],io=vi.length,pl=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,gl="|";function yl(t,e={}){return t.split(gl).map(r=>{let n=r.trim().split(pl).filter(s=>s&&!!s.trim()),i=[];for(let s=0,o=n.length;s<o;s+=1){const l=n[s];let c=!1,h=-1;for(;!c&&++h<io;){const p=vi[h];let y=p.isMultiMatch(l);y&&(i.push(new p(y,e)),c=!0)}if(!c)for(h=-1;++h<io;){const p=vi[h];let y=p.isSingleMatch(l);if(y){i.push(new p(y,e));break}}}return i})}const bl=new Set([ro.type,no.type]);class ml{constructor(e,{isCaseSensitive:r=V.isCaseSensitive,includeMatches:n=V.includeMatches,minMatchCharLength:i=V.minMatchCharLength,ignoreLocation:s=V.ignoreLocation,findAllMatches:o=V.findAllMatches,location:l=V.location,threshold:c=V.threshold,distance:h=V.distance}={}){this.query=null,this.options={isCaseSensitive:r,includeMatches:n,minMatchCharLength:i,findAllMatches:o,ignoreLocation:s,location:l,threshold:c,distance:h},this.pattern=r?e:e.toLowerCase(),this.query=yl(this.pattern,this.options)}static condition(e,r){return r.useExtendedSearch}searchIn(e){const r=this.query;if(!r)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:i}=this.options;e=i?e:e.toLowerCase();let s=0,o=[],l=0;for(let c=0,h=r.length;c<h;c+=1){const p=r[c];o.length=0,s=0;for(let y=0,w=p.length;y<w;y+=1){const m=p[y],{isMatch:A,indices:E,score:z}=m.search(e);if(A){if(s+=1,l+=z,n){const H=m.constructor.type;bl.has(H)?o=[...o,...E]:o.push(E)}}else{l=0,s=0,o.length=0;break}}if(s){let y={isMatch:!0,score:l/s};return n&&(y.indices=o),y}}return{isMatch:!1,score:1}}}const wi=[];function vl(...t){wi.push(...t)}function xi(t,e){for(let r=0,n=wi.length;r<n;r+=1){let i=wi[r];if(i.condition(t,e))return new i(t,e)}return new eo(t,e)}const yn={AND:"$and",OR:"$or"},$i={PATH:"$path",PATTERN:"$val"},_i=t=>!!(t[yn.AND]||t[yn.OR]),wl=t=>!!t[$i.PATH],xl=t=>!mt(t)&&Ys(t)&&!_i(t),so=t=>({[yn.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function oo(t,e,{auto:r=!0}={}){const n=i=>{let s=Object.keys(i);const o=wl(i);if(!o&&s.length>1&&!_i(i))return n(so(i));if(xl(i)){const c=o?i[$i.PATH]:s[0],h=o?i[$i.PATTERN]:i[c];if(!ut(h))throw new Error(Xa(c));const p={keyId:bi(c),pattern:h};return r&&(p.searcher=xi(h,e)),p}let l={children:[],operator:s[0]};return s.forEach(c=>{const h=i[c];mt(h)&&h.forEach(p=>{l.children.push(n(p))})}),l};return _i(t)||(t=so(t)),n(t)}function $l(t,{ignoreFieldNorm:e=V.ignoreFieldNorm}){t.forEach(r=>{let n=1;r.matches.forEach(({key:i,norm:s,score:o})=>{const l=i?i.weight:null;n*=Math.pow(o===0&&l?Number.EPSILON:o,(l||1)*(e?1:s))}),r.score=n})}function _l(t,e){const r=t.matches;e.matches=[],Je(r)&&r.forEach(n=>{if(!Je(n.indices)||!n.indices.length)return;const{indices:i,value:s}=n;let o={indices:i,value:s};n.key&&(o.key=n.key.src),n.idx>-1&&(o.refIndex=n.idx),e.matches.push(o)})}function Al(t,e){e.score=t.score}function Ml(t,e,{includeMatches:r=V.includeMatches,includeScore:n=V.includeScore}={}){const i=[];return r&&i.push(_l),n&&i.push(Al),t.map(s=>{const{idx:o}=s,l={item:e[o],refIndex:o};return i.length&&i.forEach(c=>{c(s,l)}),l})}class Ct{constructor(e,r={},n){this.options={...V,...r},this.options.useExtendedSearch,this._keyStore=new el(this.options.keys),this.setCollection(e,n)}setCollection(e,r){if(this._docs=e,r&&!(r instanceof mi))throw new Error(Fa);this._myIndex=r||Qs(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Je(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const r=[];for(let n=0,i=this._docs.length;n<i;n+=1){const s=this._docs[n];e(s,n)&&(this.removeAt(n),n-=1,i-=1,r.push(s))}return r}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:r=-1}={}){const{includeMatches:n,includeScore:i,shouldSort:s,sortFn:o,ignoreFieldNorm:l}=this.options;let c=ut(e)?ut(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return $l(c,{ignoreFieldNorm:l}),s&&c.sort(o),Gs(r)&&r>-1&&(c=c.slice(0,r)),Ml(c,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e){const r=xi(e,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:s,i:o,n:l})=>{if(!Je(s))return;const{isMatch:c,score:h,indices:p}=r.searchIn(s);c&&i.push({item:s,idx:o,matches:[{score:h,value:s,norm:l,indices:p}]})}),i}_searchLogical(e){const r=oo(e,this.options),n=(l,c,h)=>{if(!l.children){const{keyId:y,searcher:w}=l,m=this._findMatches({key:this._keyStore.get(y),value:this._myIndex.getValueForItemAtKeyId(c,y),searcher:w});return m&&m.length?[{idx:h,item:c,matches:m}]:[]}const p=[];for(let y=0,w=l.children.length;y<w;y+=1){const m=l.children[y],A=n(m,c,h);if(A.length)p.push(...A);else if(l.operator===yn.AND)return[]}return p},i=this._myIndex.records,s={},o=[];return i.forEach(({$:l,i:c})=>{if(Je(l)){let h=n(r,l,c);h.length&&(s[c]||(s[c]={idx:c,item:l,matches:[]},o.push(s[c])),h.forEach(({matches:p})=>{s[c].matches.push(...p)}))}}),o}_searchObjectList(e){const r=xi(e,this.options),{keys:n,records:i}=this._myIndex,s=[];return i.forEach(({$:o,i:l})=>{if(!Je(o))return;let c=[];n.forEach((h,p)=>{c.push(...this._findMatches({key:h,value:o[p],searcher:r}))}),c.length&&s.push({idx:l,item:o,matches:c})}),s}_findMatches({key:e,value:r,searcher:n}){if(!Je(r))return[];let i=[];if(mt(r))r.forEach(({v:s,i:o,n:l})=>{if(!Je(s))return;const{isMatch:c,score:h,indices:p}=n.searchIn(s);c&&i.push({score:h,key:e,value:s,idx:o,norm:l,indices:p})});else{const{v:s,n:o}=r,{isMatch:l,score:c,indices:h}=n.searchIn(s);l&&i.push({score:c,key:e,value:s,norm:o,indices:h})}return i}}Ct.version="7.0.0",Ct.createIndex=Qs,Ct.parseIndex=il,Ct.config=V,Ct.parseQuery=oo,vl(ml);function ao(t,e){const r=new Ct(e.filterProperties,{keys:["title"]}),n=t.target.value,s=r.search(n).map(o=>o.item.key||o.item.keys.join("|"));Object.keys(e.filters).forEach(o=>{e.querySelector(`[data-details="${o}"]`).parentElement.style.display=s.includes(o)||!n?"":"none"})}function Sl(t,e){const r=t.target.getAttribute("data-close").replace("|","-");e.querySelector(`#filter-${r}`).reset(),e.dispatchEvent(new CustomEvent("filter")),e.requestUpdate()}const Ai=Math.min,ar=Math.max,bn=Math.round,mn=Math.floor,kt=t=>({x:t,y:t});function lo(t){return t.split("-")[0]}function El(t){return t.split("-")[1]}function Cl(t){return t==="x"?"y":"x"}function kl(t){return t==="y"?"height":"width"}function co(t){return["top","bottom"].includes(lo(t))?"y":"x"}function Ll(t){return Cl(co(t))}function uo(t){const{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function ho(t,e,r){let{reference:n,floating:i}=t;const s=co(e),o=Ll(e),l=kl(o),c=lo(e),h=s==="y",p=n.x+n.width/2-i.width/2,y=n.y+n.height/2-i.height/2,w=n[l]/2-i[l]/2;let m;switch(c){case"top":m={x:p,y:n.y-i.height};break;case"bottom":m={x:p,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y};break;case"left":m={x:n.x-i.width,y};break;default:m={x:n.x,y:n.y}}switch(El(e)){case"start":m[o]-=w*(r&&h?-1:1);break;case"end":m[o]+=w*(r&&h?-1:1);break}return m}const Pl=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,l=s.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let h=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:p,y}=ho(h,n,c),w=n,m={},A=0;for(let E=0;E<l.length;E++){const{name:z,fn:H}=l[E],{x:X,y:F,data:de,reset:te}=await H({x:p,y,initialPlacement:n,placement:w,strategy:i,middlewareData:m,rects:h,platform:o,elements:{reference:t,floating:e}});p=X??p,y=F??y,m={...m,[z]:{...m[z],...de}},te&&A<=50&&(A++,typeof te=="object"&&(te.placement&&(w=te.placement),te.rects&&(h=te.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):te.rects),{x:p,y}=ho(h,w,c)),E=-1)}return{x:p,y,placement:w,strategy:i,middlewareData:m}};function vn(){return typeof window<"u"}function lr(t){return fo(t)?(t.nodeName||"").toLowerCase():"#document"}function Qe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ht(t){var e;return(e=(fo(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function fo(t){return vn()?t instanceof Node||t instanceof Qe(t).Node:!1}function ot(t){return vn()?t instanceof Element||t instanceof Qe(t).Element:!1}function dt(t){return vn()?t instanceof HTMLElement||t instanceof Qe(t).HTMLElement:!1}function po(t){return!vn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Qe(t).ShadowRoot}function Ur(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=at(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function Tl(t){return["table","td","th"].includes(lr(t))}function wn(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Mi(t){const e=Si(),r=ot(t)?at(t):t;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Ol(t){let e=Lt(t);for(;dt(e)&&!cr(e);){if(Mi(e))return e;if(wn(e))return null;e=Lt(e)}return null}function Si(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function cr(t){return["html","body","#document"].includes(lr(t))}function at(t){return Qe(t).getComputedStyle(t)}function xn(t){return ot(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Lt(t){if(lr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||po(t)&&t.host||ht(t);return po(e)?e.host:e}function go(t){const e=Lt(t);return cr(e)?t.ownerDocument?t.ownerDocument.body:t.body:dt(e)&&Ur(e)?e:go(e)}function zr(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=go(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),o=Qe(i);if(s){const l=Ei(o);return e.concat(o,o.visualViewport||[],Ur(i)?i:[],l&&r?zr(l):[])}return e.concat(i,zr(i,[],r))}function Ei(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function yo(t){const e=at(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=dt(t),s=i?t.offsetWidth:r,o=i?t.offsetHeight:n,l=bn(r)!==s||bn(n)!==o;return l&&(r=s,n=o),{width:r,height:n,$:l}}function Ci(t){return ot(t)?t:t.contextElement}function ur(t){const e=Ci(t);if(!dt(e))return kt(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:s}=yo(e);let o=(s?bn(r.width):r.width)/n,l=(s?bn(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Rl=kt(0);function bo(t){const e=Qe(t);return!Si()||!e.visualViewport?Rl:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Dl(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Qe(t)?!1:e}function zt(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),s=Ci(t);let o=kt(1);e&&(n?ot(n)&&(o=ur(n)):o=ur(t));const l=Dl(s,r,n)?bo(s):kt(0);let c=(i.left+l.x)/o.x,h=(i.top+l.y)/o.y,p=i.width/o.x,y=i.height/o.y;if(s){const w=Qe(s),m=n&&ot(n)?Qe(n):n;let A=w,E=Ei(A);for(;E&&n&&m!==A;){const z=ur(E),H=E.getBoundingClientRect(),X=at(E),F=H.left+(E.clientLeft+parseFloat(X.paddingLeft))*z.x,de=H.top+(E.clientTop+parseFloat(X.paddingTop))*z.y;c*=z.x,h*=z.y,p*=z.x,y*=z.y,c+=F,h+=de,A=Qe(E),E=Ei(A)}}return uo({width:p,height:y,x:c,y:h})}function jl(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const s=i==="fixed",o=ht(n),l=e?wn(e.floating):!1;if(n===o||l&&s)return r;let c={scrollLeft:0,scrollTop:0},h=kt(1);const p=kt(0),y=dt(n);if((y||!y&&!s)&&((lr(n)!=="body"||Ur(o))&&(c=xn(n)),dt(n))){const w=zt(n);h=ur(n),p.x=w.x+n.clientLeft,p.y=w.y+n.clientTop}return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-c.scrollLeft*h.x+p.x,y:r.y*h.y-c.scrollTop*h.y+p.y}}function Nl(t){return Array.from(t.getClientRects())}function ki(t,e){const r=xn(t).scrollLeft;return e?e.left+r:zt(ht(t)).left+r}function Hl(t){const e=ht(t),r=xn(t),n=t.ownerDocument.body,i=ar(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=ar(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+ki(t);const l=-r.scrollTop;return at(n).direction==="rtl"&&(o+=ar(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:l}}function Il(t,e){const r=Qe(t),n=ht(t),i=r.visualViewport;let s=n.clientWidth,o=n.clientHeight,l=0,c=0;if(i){s=i.width,o=i.height;const h=Si();(!h||h&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:o,x:l,y:c}}function Bl(t,e){const r=zt(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,s=dt(t)?ur(t):kt(1),o=t.clientWidth*s.x,l=t.clientHeight*s.y,c=i*s.x,h=n*s.y;return{width:o,height:l,x:c,y:h}}function mo(t,e,r){let n;if(e==="viewport")n=Il(t,r);else if(e==="document")n=Hl(ht(t));else if(ot(e))n=Bl(e,r);else{const i=bo(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return uo(n)}function vo(t,e){const r=Lt(t);return r===e||!ot(r)||cr(r)?!1:at(r).position==="fixed"||vo(r,e)}function Ul(t,e){const r=e.get(t);if(r)return r;let n=zr(t,[],!1).filter(l=>ot(l)&&lr(l)!=="body"),i=null;const s=at(t).position==="fixed";let o=s?Lt(t):t;for(;ot(o)&&!cr(o);){const l=at(o),c=Mi(o);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ur(o)&&!c&&vo(t,o))?n=n.filter(p=>p!==o):i=l,o=Lt(o)}return e.set(t,n),n}function zl(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const o=[...r==="clippingAncestors"?wn(e)?[]:Ul(e,this._c):[].concat(r),n],l=o[0],c=o.reduce((h,p)=>{const y=mo(e,p,i);return h.top=ar(y.top,h.top),h.right=Ai(y.right,h.right),h.bottom=Ai(y.bottom,h.bottom),h.left=ar(y.left,h.left),h},mo(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ql(t){const{width:e,height:r}=yo(t);return{width:e,height:r}}function Wl(t,e,r){const n=dt(e),i=ht(e),s=r==="fixed",o=zt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=kt(0);if(n||!n&&!s)if((lr(e)!=="body"||Ur(i))&&(l=xn(e)),n){const m=zt(e,!0,s,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else i&&(c.x=ki(i));let h=0,p=0;if(i&&!n&&!s){const m=i.getBoundingClientRect();p=m.top+l.scrollTop,h=m.left+l.scrollLeft-ki(i,m)}const y=o.left+l.scrollLeft-c.x-h,w=o.top+l.scrollTop-c.y-p;return{x:y,y:w,width:o.width,height:o.height}}function Li(t){return at(t).position==="static"}function wo(t,e){if(!dt(t)||at(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return ht(t)===r&&(r=r.ownerDocument.body),r}function xo(t,e){const r=Qe(t);if(wn(t))return r;if(!dt(t)){let i=Lt(t);for(;i&&!cr(i);){if(ot(i)&&!Li(i))return i;i=Lt(i)}return r}let n=wo(t,e);for(;n&&Tl(n)&&Li(n);)n=wo(n,e);return n&&cr(n)&&Li(n)&&!Mi(n)?r:n||Ol(t)||r}const Vl=async function(t){const e=this.getOffsetParent||xo,r=this.getDimensions,n=await r(t.floating);return{reference:Wl(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Kl(t){return at(t).direction==="rtl"}const Gl={convertOffsetParentRelativeRectToViewportRelativeRect:jl,getDocumentElement:ht,getClippingRect:zl,getOffsetParent:xo,getElementRects:Vl,getClientRects:Nl,getDimensions:ql,getScale:ur,isElement:ot,isRTL:Kl};function Yl(t,e){let r=null,n;const i=ht(t);function s(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:h,top:p,width:y,height:w}=t.getBoundingClientRect();if(l||e(),!y||!w)return;const m=mn(p),A=mn(i.clientWidth-(h+y)),E=mn(i.clientHeight-(p+w)),z=mn(h),X={rootMargin:-m+"px "+-A+"px "+-E+"px "+-z+"px",threshold:ar(0,Ai(1,c))||1};let F=!0;function de(te){const Z=te[0].intersectionRatio;if(Z!==c){if(!F)return o();Z?o(!1,Z):n=setTimeout(()=>{o(!1,1e-7)},1e3)}F=!1}try{r=new IntersectionObserver(de,{...X,root:i.ownerDocument})}catch{r=new IntersectionObserver(de,X)}r.observe(t)}return o(!0),s}function Fl(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,h=Ci(t),p=i||s?[...h?zr(h):[],...zr(e)]:[];p.forEach(H=>{i&&H.addEventListener("scroll",r,{passive:!0}),s&&H.addEventListener("resize",r)});const y=h&&l?Yl(h,r):null;let w=-1,m=null;o&&(m=new ResizeObserver(H=>{let[X]=H;X&&X.target===h&&m&&(m.unobserve(e),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var F;(F=m)==null||F.observe(e)})),r()}),h&&!c&&m.observe(h),m.observe(e));let A,E=c?zt(t):null;c&&z();function z(){const H=zt(t);E&&(H.x!==E.x||H.y!==E.y||H.width!==E.width||H.height!==E.height)&&r(),E=H,A=requestAnimationFrame(z)}return r(),()=>{var H;p.forEach(X=>{i&&X.removeEventListener("scroll",r),s&&X.removeEventListener("resize",r)}),y==null||y(),(H=m)==null||H.disconnect(),m=null,c&&cancelAnimationFrame(A)}}const Xl=(t,e,r)=>{const n=new Map,i={platform:Gl,...r},s={...i.platform,_c:n};return Pl(t,e,{...i,platform:s})};function Zl(t){const e=t.renderRoot.querySelector(".inline-container-wrapper"),r=t.renderRoot.querySelector("[popover]");return Fl(e,r,()=>{r.matches(":popover-open")&&Xl(e,r,{strategy:"fixed"}).then(({x:i,y:s})=>{Object.assign(r.style,{left:`${i}px`,top:`${s}px`,width:`${e.getBoundingClientRect().width}px`})})},{animationFrame:!0})}function $o(t){t.renderRoot.querySelector("#eox-itemfilter-input-search").value="",ao({target:{value:""}},t)}function Jl(t,e){e.inlineMode&&t.stopPropagation()}function Ql(t){t.inlineMode&&(t.showDropdown=!0)}function ec(t,e){e.inlineMode&&(t.stopPropagation(),e.showDropdown=!0)}function tc(t,e){e.inlineMode&&t.key==="Escape"&&e.showDropdown&&($o(e),e.showDropdown=!1)}function rc(t,e){e.inlineMode&&t.target.tagName!=="DROPDOWN-FORM"&&t.target.tagName!=="EOX-ITEMFILTER"&&e.showDropdown&&($o(e),e.showDropdown=!1)}function nc(t,e){var r=0,n=0,i=0,s=0,o=0,l=0,c=0,h=0,p=null,y=null,w=t[0],m=t[1],A=e.length;for(r;r<A;r++){n=0;var E=e[r].length-1,z=e[r];if(p=z[0],p[0]!==z[E][0]&&p[1]!==z[E][1])throw new Error("First and last coordinates in a ring must be the same");for(o=p[0]-w,l=p[1]-m,n;n<E;n++){if(y=z[n+1],h=y[1]-m,l<0&&h<0||l>0&&h>0){p=y,l=h,o=p[0]-w;continue}if(c=y[0]-t[0],h>0&&l<=0){if(s=o*h-c*l,s>0)i=i+1;else if(s===0)return 0}else if(l>0&&h<=0){if(s=o*h-c*l,s<0)i=i+1;else if(s===0)return 0}else if(h===0&&l<0){if(s=o*h-c*l,s===0)return 0}else if(l===0&&h<0){if(s=o*h-c*l,s===0)return 0}else if(l===0&&h===0){if(c<=0&&o>=0)return 0;if(o<=0&&c>=0)return 0}p=y,l=h,o=c}}return i%2!==0}function qt(t,e,r={}){const n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function ic(t,e,r={}){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!_o(t[0])||!_o(t[1]))throw new Error("coordinates must contain numbers");return qt({type:"Point",coordinates:t},e,r)}function sc(t,e,r={}){if(t.length<2)throw new Error("coordinates must be an array of two or more positions");return qt({type:"LineString",coordinates:t},e,r)}function Pi(t,e={}){const r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}function oc(t,e,r={}){return qt({type:"MultiLineString",coordinates:t},e,r)}function _o(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function Ao(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point")return[...t.geometry.coordinates];if(t.type==="Point")return[...t.coordinates]}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return[...t];throw new Error("coord must be GeoJSON Point or an Array of numbers")}function ac(t){if(Array.isArray(t))return t;if(t.type==="Feature"){if(t.geometry!==null)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function hr(t){return t.type==="Feature"?t.geometry:t}function nt(t,e,r={}){if(!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");const n=Ao(t),i=hr(e),s=i.type,o=e.bbox;let l=i.coordinates;if(o&&lc(n,o)===!1)return!1;s==="Polygon"&&(l=[l]);let c=!1;for(var h=0;h<l.length;++h){const p=nc(n,l[h]);if(p===0)return!r.ignoreBoundary;p&&(c=!0)}return c}function lc(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}class Mo{constructor(e=[],r=cc){if(this.data=e,this.length=this.data.length,this.compare=r,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const e=this.data[0],r=this.data.pop();return this.length--,this.length>0&&(this.data[0]=r,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:r,compare:n}=this,i=r[e];for(;e>0;){const s=e-1>>1,o=r[s];if(n(i,o)>=0)break;r[e]=o,e=s}r[e]=i}_down(e){const{data:r,compare:n}=this,i=this.length>>1,s=r[e];for(;e<i;){let o=(e<<1)+1,l=r[o];const c=o+1;if(c<this.length&&n(r[c],l)<0&&(o=c,l=r[c]),n(l,s)>=0)break;r[e]=l,e=o}r[e]=s}}function cc(t,e){return t<e?-1:t>e?1:0}function So(t,e){return t.p.x>e.p.x?1:t.p.x<e.p.x?-1:t.p.y!==e.p.y?t.p.y>e.p.y?1:-1:1}function uc(t,e){return t.rightSweepEvent.p.x>e.rightSweepEvent.p.x?1:t.rightSweepEvent.p.x<e.rightSweepEvent.p.x?-1:t.rightSweepEvent.p.y!==e.rightSweepEvent.p.y?t.rightSweepEvent.p.y<e.rightSweepEvent.p.y?1:-1:1}class Eo{constructor(e,r,n,i){this.p={x:e[0],y:e[1]},this.featureId=r,this.ringId=n,this.eventId=i,this.otherEvent=null,this.isLeftEndpoint=null}isSamePoint(e){return this.p.x===e.p.x&&this.p.y===e.p.y}}function hc(t,e){if(t.type==="FeatureCollection"){const r=t.features;for(let n=0;n<r.length;n++)Co(r[n],e)}else Co(t,e)}let $n=0,_n=0,An=0;function Co(t,e){const r=t.type==="Feature"?t.geometry:t;let n=r.coordinates;(r.type==="Polygon"||r.type==="MultiLineString")&&(n=[n]),r.type==="LineString"&&(n=[[n]]);for(let i=0;i<n.length;i++)for(let s=0;s<n[i].length;s++){let o=n[i][s][0],l=null;_n=_n+1;for(let c=0;c<n[i][s].length-1;c++){l=n[i][s][c+1];const h=new Eo(o,$n,_n,An),p=new Eo(l,$n,_n,An+1);h.otherEvent=p,p.otherEvent=h,So(h,p)>0?(p.isLeftEndpoint=!0,h.isLeftEndpoint=!1):(h.isLeftEndpoint=!0,p.isLeftEndpoint=!1),e.push(h),e.push(p),o=l,An=An+1}}$n=$n+1}class dc{constructor(e){this.leftSweepEvent=e,this.rightSweepEvent=e.otherEvent}}function fc(t,e){if(t===null||e===null||t.leftSweepEvent.ringId===e.leftSweepEvent.ringId&&(t.rightSweepEvent.isSamePoint(e.leftSweepEvent)||t.rightSweepEvent.isSamePoint(e.leftSweepEvent)||t.rightSweepEvent.isSamePoint(e.rightSweepEvent)||t.leftSweepEvent.isSamePoint(e.leftSweepEvent)||t.leftSweepEvent.isSamePoint(e.rightSweepEvent)))return!1;const r=t.leftSweepEvent.p.x,n=t.leftSweepEvent.p.y,i=t.rightSweepEvent.p.x,s=t.rightSweepEvent.p.y,o=e.leftSweepEvent.p.x,l=e.leftSweepEvent.p.y,c=e.rightSweepEvent.p.x,h=e.rightSweepEvent.p.y,p=(h-l)*(i-r)-(c-o)*(s-n),y=(c-o)*(n-l)-(h-l)*(r-o),w=(i-r)*(n-l)-(s-n)*(r-o);if(p===0)return!1;const m=y/p,A=w/p;if(m>=0&&m<=1&&A>=0&&A<=1){const E=r+m*(i-r),z=n+m*(s-n);return[E,z]}return!1}function pc(t,e){e=e||!1;const r=[],n=new Mo([],uc);for(;t.length;){const i=t.pop();if(i.isLeftEndpoint){const s=new dc(i);for(let o=0;o<n.data.length;o++){const l=n.data[o];if(e&&l.leftSweepEvent.featureId===i.featureId)continue;const c=fc(s,l);c!==!1&&r.push(c)}n.push(s)}else i.isLeftEndpoint===!1&&n.pop()}return r}function gc(t,e){const r=new Mo([],So);return hc(t,r),pc(r,e)}var yc=gc;function Ti(t,e,r={}){const{removeDuplicates:n=!0,ignoreSelfIntersections:i=!1}=r;let s=[];t.type==="FeatureCollection"?s=s.concat(t.features):t.type==="Feature"?s.push(t):(t.type==="LineString"||t.type==="Polygon"||t.type==="MultiLineString"||t.type==="MultiPolygon")&&s.push(qt(t)),e.type==="FeatureCollection"?s=s.concat(e.features):e.type==="Feature"?s.push(e):(e.type==="LineString"||e.type==="Polygon"||e.type==="MultiLineString"||e.type==="MultiPolygon")&&s.push(qt(e));const o=yc(Pi(s),i);let l=[];if(n){const c={};o.forEach(h=>{const p=h.join(",");c[p]||(c[p]=!0,l.push(h))})}else l=o;return Pi(l.map(c=>ic(c)))}function ko(t,e,r){if(t!==null)for(var n,i,s,o,l,c,h,p=0,y=0,w,m=t.type,A=m==="FeatureCollection",E=m==="Feature",z=A?t.features.length:1,H=0;H<z;H++){h=A?t.features[H].geometry:E?t.geometry:t,w=h?h.type==="GeometryCollection":!1,l=w?h.geometries.length:1;for(var X=0;X<l;X++){var F=0,de=0;if(o=w?h.geometries[X]:h,o!==null){c=o.coordinates;var te=o.type;switch(p=0,te){case null:break;case"Point":if(e(c,y,H,F,de)===!1)return!1;y++,F++;break;case"LineString":case"MultiPoint":for(n=0;n<c.length;n++){if(e(c[n],y,H,F,de)===!1)return!1;y++,te==="MultiPoint"&&F++}te==="LineString"&&F++;break;case"Polygon":case"MultiLineString":for(n=0;n<c.length;n++){for(i=0;i<c[n].length-p;i++){if(e(c[n][i],y,H,F,de)===!1)return!1;y++}te==="MultiLineString"&&F++,te==="Polygon"&&de++}te==="Polygon"&&F++;break;case"MultiPolygon":for(n=0;n<c.length;n++){for(de=0,i=0;i<c[n].length;i++){for(s=0;s<c[n][i].length-p;s++){if(e(c[n][i][s],y,H,F,de)===!1)return!1;y++}de++}F++}break;case"GeometryCollection":for(n=0;n<o.geometries.length;n++)if(ko(o.geometries[n],e)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function bc(t,e){var r,n,i,s,o,l,c,h,p,y,w=0,m=t.type==="FeatureCollection",A=t.type==="Feature",E=m?t.features.length:1;for(r=0;r<E;r++){for(l=m?t.features[r].geometry:A?t.geometry:t,h=m?t.features[r].properties:A?t.properties:{},p=m?t.features[r].bbox:A?t.bbox:void 0,y=m?t.features[r].id:A?t.id:void 0,c=l?l.type==="GeometryCollection":!1,o=c?l.geometries.length:1,i=0;i<o;i++){if(s=c?l.geometries[i]:l,s===null){if(e(null,w,h,p,y)===!1)return!1;continue}switch(s.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(s,w,h,p,y)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<s.geometries.length;n++)if(e(s.geometries[n],w,h,p,y)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}w++}}function Mn(t,e){bc(t,function(r,n,i,s,o){var l=r===null?null:r.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return e(qt(r,i,{bbox:s,id:o}),n,0)===!1?!1:void 0}var c;switch(l){case"MultiPoint":c="Point";break;case"MultiLineString":c="LineString";break;case"MultiPolygon":c="Polygon";break}for(var h=0;h<r.coordinates.length;h++){var p=r.coordinates[h],y={type:c,coordinates:p};if(e(qt(y,i),n,h)===!1)return!1}})}function Oi(t,e={}){const r=hr(t);switch(!e.properties&&t.type==="Feature"&&(e.properties=t.properties),r.type){case"Polygon":return mc(r,e);case"MultiPolygon":return vc(r,e);default:throw new Error("invalid poly")}}function mc(t,e={}){const n=hr(t).coordinates,i=e.properties?e.properties:t.type==="Feature"?t.properties:{};return Lo(n,i)}function vc(t,e={}){const n=hr(t).coordinates,i=e.properties?e.properties:t.type==="Feature"?t.properties:{},s=[];return n.forEach(o=>{s.push(Lo(o,i))}),Pi(s)}function Lo(t,e){return t.length>1?oc(t,e):sc(t[0],e)}function wc(t,e,r={}){var n;const i=(n=r.ignoreSelfIntersections)!=null?n:!1;let s=!0;return Mn(t,o=>{Mn(e,l=>{if(s===!1)return!1;s=xc(o.geometry,l.geometry,i)})}),s}function xc(t,e,r){switch(t.type){case"Point":switch(e.type){case"Point":return!Mc(t.coordinates,e.coordinates);case"LineString":return!Po(e,t);case"Polygon":return!nt(t,e)}break;case"LineString":switch(e.type){case"Point":return!Po(t,e);case"LineString":return!$c(t,e,r);case"Polygon":return!To(e,t,r)}break;case"Polygon":switch(e.type){case"Point":return!nt(e,t);case"LineString":return!To(t,e,r);case"Polygon":return!_c(e,t,r)}}return!1}function Po(t,e){for(let r=0;r<t.coordinates.length-1;r++)if(Ac(t.coordinates[r],t.coordinates[r+1],e.coordinates))return!0;return!1}function $c(t,e,r){return Ti(t,e,{ignoreSelfIntersections:r}).features.length>0}function To(t,e,r){for(const i of e.coordinates)if(nt(i,t))return!0;return Ti(e,Oi(t),{ignoreSelfIntersections:r}).features.length>0}function _c(t,e,r){for(const i of t.coordinates[0])if(nt(i,e))return!0;for(const i of e.coordinates[0])if(nt(i,t))return!0;return Ti(Oi(t),Oi(e),{ignoreSelfIntersections:r}).features.length>0}function Ac(t,e,r){const n=r[0]-t[0],i=r[1]-t[1],s=e[0]-t[0],o=e[1]-t[1];return n*o-i*s!==0?!1:Math.abs(s)>=Math.abs(o)?s>0?t[0]<=r[0]&&r[0]<=e[0]:e[0]<=r[0]&&r[0]<=t[0]:o>0?t[1]<=r[1]&&r[1]<=e[1]:e[1]<=r[1]&&r[1]<=t[1]}function Mc(t,e){return t[0]===e[0]&&t[1]===e[1]}function Sc(t,e,r={}){var n;const i=(n=r.ignoreSelfIntersections)!=null?n:!1;let s=!1;return Mn(t,o=>{Mn(e,l=>{if(s===!0)return!0;s=!wc(o.geometry,l.geometry,{ignoreSelfIntersections:i})})}),s}var Ec=Sc;function Sn(t,e={}){if(t.bbox!=null&&e.recompute!==!0)return t.bbox;const r=[1/0,1/0,-1/0,-1/0];return ko(t,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]<n[0]&&(r[2]=n[0]),r[3]<n[1]&&(r[3]=n[1])}),r}function En(t,e,r={}){const n=Ao(t),i=ac(e);for(let s=0;s<i.length-1;s++){let o=!1;if(r.ignoreEndVertices&&(s===0&&(o="start"),s===i.length-2&&(o="end"),s===0&&s+1===i.length-1&&(o="both")),Cc(i[s],i[s+1],n,o,typeof r.epsilon>"u"?null:r.epsilon))return!0}return!1}function Cc(t,e,r,n,i){const s=r[0],o=r[1],l=t[0],c=t[1],h=e[0],p=e[1],y=r[0]-l,w=r[1]-c,m=h-l,A=p-c,E=y*A-w*m;if(i!==null){if(Math.abs(E)>i)return!1}else if(E!==0)return!1;if(n){if(n==="start")return Math.abs(m)>=Math.abs(A)?m>0?l<s&&s<=h:h<=s&&s<l:A>0?c<o&&o<=p:p<=o&&o<c;if(n==="end")return Math.abs(m)>=Math.abs(A)?m>0?l<=s&&s<h:h<s&&s<=l:A>0?c<=o&&o<p:p<o&&o<=c;if(n==="both")return Math.abs(m)>=Math.abs(A)?m>0?l<s&&s<h:h<s&&s<l:A>0?c<o&&o<p:p<o&&o<c}else return Math.abs(m)>=Math.abs(A)?m>0?l<=s&&s<=h:h<=s&&s<=l:A>0?c<=o&&o<=p:p<=o&&o<=c;return!1}function kc(t,e){var r=hr(t),n=hr(e),i=r.type,s=n.type;switch(i){case"Point":switch(s){case"MultiPoint":return Lc(r,n);case"LineString":return En(r,n,{ignoreEndVertices:!0});case"Polygon":case"MultiPolygon":return nt(r,n,{ignoreBoundary:!0});default:throw new Error("feature2 "+s+" geometry not supported")}case"MultiPoint":switch(s){case"MultiPoint":return Pc(r,n);case"LineString":return Tc(r,n);case"Polygon":case"MultiPolygon":return Oc(r,n);default:throw new Error("feature2 "+s+" geometry not supported")}case"LineString":switch(s){case"LineString":return Rc(r,n);case"Polygon":case"MultiPolygon":return Dc(r,n);default:throw new Error("feature2 "+s+" geometry not supported")}case"Polygon":switch(s){case"Polygon":case"MultiPolygon":return jc(r,n);default:throw new Error("feature2 "+s+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}}function Lc(t,e){var r,n=!1;for(r=0;r<e.coordinates.length;r++)if(Ro(e.coordinates[r],t.coordinates)){n=!0;break}return n}function Pc(t,e){for(var r=0;r<t.coordinates.length;r++){for(var n=!1,i=0;i<e.coordinates.length;i++)Ro(t.coordinates[r],e.coordinates[i])&&(n=!0);if(!n)return!1}return!0}function Tc(t,e){for(var r=!1,n=0;n<t.coordinates.length;n++){if(!En(t.coordinates[n],e))return!1;r||(r=En(t.coordinates[n],e,{ignoreEndVertices:!0}))}return r}function Oc(t,e){for(var r=!0,n=!1,i=0;i<t.coordinates.length;i++){if(n=nt(t.coordinates[i],e),!n){r=!1;break}n=nt(t.coordinates[i],e,{ignoreBoundary:!0})}return r&&n}function Rc(t,e){for(var r=0;r<t.coordinates.length;r++)if(!En(t.coordinates[r],e))return!1;return!0}function Dc(t,e){var r=Sn(e),n=Sn(t);if(!Oo(r,n))return!1;for(var i=!1,s=0;s<t.coordinates.length;s++){if(!nt(t.coordinates[s],e))return!1;if(i||(i=nt(t.coordinates[s],e,{ignoreBoundary:!0})),!i&&s<t.coordinates.length-1){var o=Nc(t.coordinates[s],t.coordinates[s+1]);i=nt(o,e,{ignoreBoundary:!0})}}return i}function jc(t,e){var r=Sn(t),n=Sn(e);if(!Oo(n,r))return!1;for(var i=0;i<t.coordinates[0].length;i++)if(!nt(t.coordinates[0][i],e))return!1;return!0}function Oo(t,e){return!(t[0]>e[0]||t[2]<e[2]||t[1]>e[1]||t[3]<e[3])}function Ro(t,e){return t[0]===e[0]&&t[1]===e[1]}function Nc(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}var Hc=kc;const Ic=(t,e)=>e?Ec(t,e):!0,Bc=(t,e)=>e?Hc(t,e):!0;function Uc(t,e="highlight",r="title"){const n=(s,o,l)=>{const c=o.split(".");let h;for(h=0;h<c.length-1;h++)s=s[c[h]];s[c[h]]=l},i=(s,o=[])=>{let l="",c=0;return o.forEach(h=>{const p=h[1]+1;l+=[s.substring(c,h[0]),`<mark class="${e}">`,s.substring(h[0],p),"</mark>"].join(""),c=p}),l+=s.substring(c),l};return t.filter(({matches:s})=>s&&s.length).map(({item:s,matches:o})=>{const l={...s};return o.forEach(c=>{c.key===r&&n(l,c.key,i(c.value,c.indices))}),l})}var et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Do={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(et,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",l="minute",c="hour",h="day",p="week",y="month",w="quarter",m="year",A="date",E="Invalid Date",z=/^(\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,X={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(D){var S=["th","st","nd","rd"],M=D%100;return"["+D+(S[(M-20)%10]||S[M]||S[0])+"]"}},F=function(D,S,M){var j=String(D);return!j||j.length>=S?D:""+Array(S+1-j.length).join(M)+D},de={s:F,z:function(D){var S=-D.utcOffset(),M=Math.abs(S),j=Math.floor(M/60),k=M%60;return(S<=0?"+":"-")+F(j,2,"0")+":"+F(k,2,"0")},m:function D(S,M){if(S.date()<M.date())return-D(M,S);var j=12*(M.year()-S.year())+(M.month()-S.month()),k=S.clone().add(j,y),K=M-k<0,G=S.clone().add(j+(K?-1:1),y);return+(-(j+(M-k)/(K?k-G:G-k))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:y,y:m,w:p,d:h,D:A,h:c,m:l,s:o,ms:s,Q:w}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},te="en",Z={};Z[te]=X;var fe="$isDayjsObject",Ae=function(D){return D instanceof Ge||!(!D||!D[fe])},Ce=function D(S,M,j){var k;if(!S)return te;if(typeof S=="string"){var K=S.toLowerCase();Z[K]&&(k=K),M&&(Z[K]=M,k=K);var G=S.split("-");if(!k&&G.length>1)return D(G[0])}else{var he=S.name;Z[he]=S,k=he}return!j&&k&&(te=k),k||!j&&te},ye=function(D,S){if(Ae(D))return D.clone();var M=typeof S=="object"?S:{};return M.date=D,M.args=arguments,new Ge(M)},ie=de;ie.l=Ce,ie.i=Ae,ie.w=function(D,S){return ye(D,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var Ge=function(){function D(M){this.$L=Ce(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[fe]=!0}var S=D.prototype;return S.parse=function(M){this.$d=function(j){var k=j.date,K=j.utc;if(k===null)return new Date(NaN);if(ie.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var G=k.match(z);if(G){var he=G[2]-1||0,$e=(G[7]||"0").substring(0,3);return K?new Date(Date.UTC(G[1],he,G[3]||1,G[4]||0,G[5]||0,G[6]||0,$e)):new Date(G[1],he,G[3]||1,G[4]||0,G[5]||0,G[6]||0,$e)}}return new Date(k)}(M),this.init()},S.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},S.$utils=function(){return ie},S.isValid=function(){return this.$d.toString()!==E},S.isSame=function(M,j){var k=ye(M);return this.startOf(j)<=k&&k<=this.endOf(j)},S.isAfter=function(M,j){return ye(M)<this.startOf(j)},S.isBefore=function(M,j){return this.endOf(j)<ye(M)},S.$g=function(M,j,k){return ie.u(M)?this[j]:this.set(k,M)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(M,j){var k=this,K=!!ie.u(j)||j,G=ie.p(M),he=function(Te,re){var Oe=ie.w(k.$u?Date.UTC(k.$y,re,Te):new Date(k.$y,re,Te),k);return K?Oe:Oe.endOf(h)},$e=function(Te,re){return ie.w(k.toDate()[Te].apply(k.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(re)),k)},Se=this.$W,ke=this.$M,Be=this.$D,Pe="set"+(this.$u?"UTC":"");switch(G){case m:return K?he(1,0):he(31,11);case y:return K?he(1,ke):he(0,ke+1);case p:var Ue=this.$locale().weekStart||0,se=(Se<Ue?Se+7:Se)-Ue;return he(K?Be-se:Be+(6-se),ke);case h:case A:return $e(Pe+"Hours",0);case c:return $e(Pe+"Minutes",1);case l:return $e(Pe+"Seconds",2);case o:return $e(Pe+"Milliseconds",3);default:return this.clone()}},S.endOf=function(M){return this.startOf(M,!1)},S.$set=function(M,j){var k,K=ie.p(M),G="set"+(this.$u?"UTC":""),he=(k={},k[h]=G+"Date",k[A]=G+"Date",k[y]=G+"Month",k[m]=G+"FullYear",k[c]=G+"Hours",k[l]=G+"Minutes",k[o]=G+"Seconds",k[s]=G+"Milliseconds",k)[K],$e=K===h?this.$D+(j-this.$W):j;if(K===y||K===m){var Se=this.clone().set(A,1);Se.$d[he]($e),Se.init(),this.$d=Se.set(A,Math.min(this.$D,Se.daysInMonth())).$d}else he&&this.$d[he]($e);return this.init(),this},S.set=function(M,j){return this.clone().$set(M,j)},S.get=function(M){return this[ie.p(M)]()},S.add=function(M,j){var k,K=this;M=Number(M);var G=ie.p(j),he=function(ke){var Be=ye(K);return ie.w(Be.date(Be.date()+Math.round(ke*M)),K)};if(G===y)return this.set(y,this.$M+M);if(G===m)return this.set(m,this.$y+M);if(G===h)return he(1);if(G===p)return he(7);var $e=(k={},k[l]=n,k[c]=i,k[o]=r,k)[G]||1,Se=this.$d.getTime()+M*$e;return ie.w(Se,this)},S.subtract=function(M,j){return this.add(-1*M,j)},S.format=function(M){var j=this,k=this.$locale();if(!this.isValid())return k.invalidDate||E;var K=M||"YYYY-MM-DDTHH:mm:ssZ",G=ie.z(this),he=this.$H,$e=this.$m,Se=this.$M,ke=k.weekdays,Be=k.months,Pe=k.meridiem,Ue=function(re,Oe,ft,_e){return re&&(re[Oe]||re(j,K))||ft[Oe].slice(0,_e)},se=function(re){return ie.s(he%12||12,re,"0")},Te=Pe||function(re,Oe,ft){var _e=re<12?"AM":"PM";return ft?_e.toLowerCase():_e};return K.replace(H,function(re,Oe){return Oe||function(ft){switch(ft){case"YY":return String(j.$y).slice(-2);case"YYYY":return ie.s(j.$y,4,"0");case"M":return Se+1;case"MM":return ie.s(Se+1,2,"0");case"MMM":return Ue(k.monthsShort,Se,Be,3);case"MMMM":return Ue(Be,Se);case"D":return j.$D;case"DD":return ie.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Ue(k.weekdaysMin,j.$W,ke,2);case"ddd":return Ue(k.weekdaysShort,j.$W,ke,3);case"dddd":return ke[j.$W];case"H":return String(he);case"HH":return ie.s(he,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return Te(he,$e,!0);case"A":return Te(he,$e,!1);case"m":return String($e);case"mm":return ie.s($e,2,"0");case"s":return String(j.$s);case"ss":return ie.s(j.$s,2,"0");case"SSS":return ie.s(j.$ms,3,"0");case"Z":return G}return null}(re)||G.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(M,j,k){var K,G=this,he=ie.p(j),$e=ye(M),Se=($e.utcOffset()-this.utcOffset())*n,ke=this-$e,Be=function(){return ie.m(G,$e)};switch(he){case m:K=Be()/12;break;case y:K=Be();break;case w:K=Be()/3;break;case p:K=(ke-Se)/6048e5;break;case h:K=(ke-Se)/864e5;break;case c:K=ke/i;break;case l:K=ke/n;break;case o:K=ke/r;break;default:K=ke}return k?K:ie.a(K)},S.daysInMonth=function(){return this.endOf(y).$D},S.$locale=function(){return Z[this.$L]},S.locale=function(M,j){if(!M)return this.$L;var k=this.clone(),K=Ce(M,j,!0);return K&&(k.$L=K),k},S.clone=function(){return ie.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},D}(),Ft=Ge.prototype;return ye.prototype=Ft,[["$ms",s],["$s",o],["$m",l],["$H",c],["$W",h],["$M",y],["$y",m],["$D",A]].forEach(function(D){Ft[D[1]]=function(S){return this.$g(S,D[0],D[1])}}),ye.extend=function(D,S){return D.$i||(D(S,Ge,ye),D.$i=!0),ye},ye.locale=Ce,ye.isDayjs=Ae,ye.unix=function(D){return ye(1e3*D)},ye.en=Z[te],ye.Ls=Z,ye.p={},ye})})(Do);var zc=Do.exports;const qr=Cn(zc);let jo;const qc=(t,e)=>{jo=new Ct(t,{threshold:.4,distance:50,includeMatches:!0,useExtendedSearch:!0,...e})},Wc=async(t,e,r)=>{const n=Object.entries(e).filter(([,l])=>l.type==="text"||l.type==="select"||l.type==="multiselect").reduce((l,[c,h])=>{const p="$or",y=[],w=(m,A)=>{const E={};h.type==="text"?E[m]=`${A}`:E[c]=`="${m}"`,y.push(E)};return Object.entries(h.state).filter(([,m])=>m).forEach(([m,A])=>w(m,A)),y.length>0&&l.push({[p]:y}),l},[]);let i;if(!(n.length>0)&&r.matchAllWhenEmpty!==!1)i=t;else{const l={$and:[...n]},c=jo.search(l);i=r.enableHighlighting?Uc(c,"highlight",r.titleProperty):c.map(h=>h.item)}const s=Object.entries(e).filter(([,l])=>l.type==="range").reduce((l,[c,h])=>(l[c]={min:h.state.min,max:h.state.max,format:h.format},l),{});if(Object.keys(s).length>0){const l=[];for(let c=0;c<i.length;c++){const h={};for(const[p,y]of Object.entries(s)){const w=m=>y.format==="date"?qr(m).unix():m;Object.prototype.hasOwnProperty.call(i[c],p)?Array.isArray(i[c][p])?h[p]=s[p].min<=w(i[c][p][1])&&w(i[c][p][0])<=s[p].max:w(i[c][p])>=s[p].min&&w(i[c][p])<=s[p].max?h[p]=!0:h[p]=!1:h[p]=!0}Object.values(h).every(p=>!!p)&&l.push(i[c])}i=[...l]}const o=Object.entries(e).filter(([,l])=>l.type==="spatial").reduce((l,[c,h])=>(l[c]={geometry:h.state.geometry,mode:h.state.mode},l),{});if(Object.values(o).map(l=>l.geometry).filter(l=>!!l).length>0){const l=[];for(let c=0;c<i.length;c++){const h={};for(const p of Object.keys(o)){const y=o[p].mode||"within";Object.prototype.hasOwnProperty.call(i[c],p)&&(y==="within"?Bc(i[c][p],o[p].geometry):Ic(i[c][p],o[p].geometry))?h[p]=!0:h[p]=!1}Object.values(h).every(p=>!!p)&&l.push(i[c])}i=[...l]}return i};function Vc(t,e){return[{type:"Vector",properties:{id:"draw"},source:{type:"Vector",...t&&{format:"GeoJSON"},...t&&{url:e}},zIndex:1,interactions:[{type:"draw",options:{id:"drawInteraction",type:"Box",modify:!0}}]},{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 }"}}]}function kn(t){if(!t.dirty)return null;switch(t.type){case"multiselect":for(const r in t.state)t.state.hasOwnProperty(r)&&(t.state[r]=!1);break;case"range":t.state.min=t.min,t.state.max=t.max;break;case"select":for(const r in t.state)t.state.hasOwnProperty(r)&&(t.state[r]=!1);break;case"spatial":t.state.geometry=void 0;break;case"text":t.keys.forEach(r=>{t.state[r]=void 0});break}return delete t.stringifiedState,delete t.dirty,t}function No(t,e){return t*2+e}function Kc(t){return Object.keys(t).map(e=>({title:Y`${t[e].title}:
|
|
532
|
-
<strong>${t[e].stringifiedState}</strong>`,key:e})).filter(e=>t[e.key].dirty)}function Ri(t){return Object.values(t).map(e=>e.dirty).filter(e=>e).length>0}async function
|
|
513
|
+
${Ke(this.filterObject.featured,()=>Y`<slot name="filter"></slot>`,()=>Y`<details
|
|
514
|
+
@toggle="${le(this,Dn,ua)}"
|
|
515
|
+
class="details-filter"
|
|
516
|
+
?open=${this.filterObject.expanded||ge}
|
|
517
|
+
>
|
|
518
|
+
<summary>
|
|
519
|
+
<span
|
|
520
|
+
class="title"
|
|
521
|
+
style="${!this.filterObject.title&&"text-transform: var(--text-transform)"}"
|
|
522
|
+
>
|
|
523
|
+
${this.filterObject.title||this.filterObject.key||"Filter"}
|
|
524
|
+
<slot name="reset-button"></slot>
|
|
525
|
+
</span>
|
|
526
|
+
</summary>
|
|
527
|
+
<div>
|
|
528
|
+
<slot name="filter"></slot>
|
|
529
|
+
</div>
|
|
530
|
+
</details>`)}
|
|
531
|
+
`}}Dn=new WeakSet,ua=function(r){this.dispatchEvent(new CustomEvent("details-toggled",{detail:r,bubbles:!0,composed:!0}))},customElements.define("eox-itemfilter-expandcontainer",za);function mt(t){return Array.isArray?Array.isArray(t):Xs(t)==="[object Array]"}const qa=1/0;function Wa(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-qa?"-0":e}function Va(t){return t==null?"":Wa(t)}function ut(t){return typeof t=="string"}function Ys(t){return typeof t=="number"}function Ka(t){return t===!0||t===!1||Ga(t)&&Xs(t)=="[object Boolean]"}function Fs(t){return typeof t=="object"}function Ga(t){return Fs(t)&&t!==null}function Je(t){return t!=null}function yi(t){return!t.trim().length}function Xs(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Fd="Extended search is not available",Ya="Incorrect 'index' type",Fa=t=>`Invalid value for key ${t}`,Xa=t=>`Pattern length exceeds max of ${t}.`,Za=t=>`Missing ${t} property in key`,Ja=t=>`Property 'weight' in key '${t}' must be a positive integer`,Zs=Object.prototype.hasOwnProperty;class Qa{constructor(e){this._keys=[],this._keyMap={};let r=0;e.forEach(n=>{let i=Js(n);this._keys.push(i),this._keyMap[i.id]=i,r+=i.weight}),this._keys.forEach(n=>{n.weight/=r})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Js(t){let e=null,r=null,n=null,i=1,s=null;if(ut(t)||mt(t))n=t,e=Qs(t),r=bi(t);else{if(!Zs.call(t,"name"))throw new Error(Za("name"));const o=t.name;if(n=o,Zs.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(Ja(o));e=Qs(o),r=bi(o),s=t.getFn}return{path:e,id:r,weight:i,src:n,getFn:s}}function Qs(t){return mt(t)?t:t.split(".")}function bi(t){return mt(t)?t.join("."):t}function el(t,e){let r=[],n=!1;const i=(s,o,l)=>{if(Je(s))if(!o[l])r.push(s);else{let c=o[l];const d=s[c];if(!Je(d))return;if(l===o.length-1&&(ut(d)||Ys(d)||Ka(d)))r.push(Va(d));else if(mt(d)){n=!0;for(let p=0,y=d.length;p<y;p+=1)i(d[p],o,l+1)}else o.length&&i(d,o,l+1)}};return i(t,ut(e)?e.split("."):e,0),n?r:r[0]}var V={...{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},...{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},...{location:0,threshold:.6,distance:100},...{useExtendedSearch:!1,getFn:el,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const tl=/[^ ]+/g;function rl(t=1,e=3){const r=new Map,n=Math.pow(10,e);return{get(i){const s=i.match(tl).length;if(r.has(s))return r.get(s);const o=1/Math.pow(s,.5*t),l=parseFloat(Math.round(o*n)/n);return r.set(s,l),l},clear(){r.clear()}}}class mi{constructor({getFn:e=V.getFn,fieldNormWeight:r=V.fieldNormWeight}={}){this.norm=rl(r,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((r,n)=>{this._keysMap[r.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,ut(this.docs[0])?this.docs.forEach((e,r)=>{this._addString(e,r)}):this.docs.forEach((e,r)=>{this._addObject(e,r)}),this.norm.clear())}add(e){const r=this.size();ut(e)?this._addString(e,r):this._addObject(e,r)}removeAt(e){this.records.splice(e,1);for(let r=e,n=this.size();r<n;r+=1)this.records[r].i-=1}getValueForItemAtKeyId(e,r){return e[this._keysMap[r]]}size(){return this.records.length}_addString(e,r){if(!Je(e)||yi(e))return;let n={v:e,i:r,n:this.norm.get(e)};this.records.push(n)}_addObject(e,r){let n={i:r,$:{}};this.keys.forEach((i,s)=>{let o=i.getFn?i.getFn(e):this.getFn(e,i.path);if(Je(o)){if(mt(o)){let l=[];const c=[{nestedArrIndex:-1,value:o}];for(;c.length;){const{nestedArrIndex:d,value:p}=c.pop();if(Je(p))if(ut(p)&&!yi(p)){let y={v:p,i:d,n:this.norm.get(p)};l.push(y)}else mt(p)&&p.forEach((y,w)=>{c.push({nestedArrIndex:w,value:y})})}n.$[s]=l}else if(ut(o)&&!yi(o)){let l={v:o,n:this.norm.get(o)};n.$[s]=l}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function eo(t,e,{getFn:r=V.getFn,fieldNormWeight:n=V.fieldNormWeight}={}){const i=new mi({getFn:r,fieldNormWeight:n});return i.setKeys(t.map(Js)),i.setSources(e),i.create(),i}function nl(t,{getFn:e=V.getFn,fieldNormWeight:r=V.fieldNormWeight}={}){const{keys:n,records:i}=t,s=new mi({getFn:e,fieldNormWeight:r});return s.setKeys(n),s.setIndexRecords(i),s}function gn(t,{errors:e=0,currentLocation:r=0,expectedLocation:n=0,distance:i=V.distance,ignoreLocation:s=V.ignoreLocation}={}){const o=e/t.length;if(s)return o;const l=Math.abs(n-r);return i?o+l/i:l?1:o}function il(t=[],e=V.minMatchCharLength){let r=[],n=-1,i=-1,s=0;for(let o=t.length;s<o;s+=1){let l=t[s];l&&n===-1?n=s:!l&&n!==-1&&(i=s-1,i-n+1>=e&&r.push([n,i]),n=-1)}return t[s-1]&&s-n>=e&&r.push([n,s-1]),r}const Ut=32;function sl(t,e,r,{location:n=V.location,distance:i=V.distance,threshold:s=V.threshold,findAllMatches:o=V.findAllMatches,minMatchCharLength:l=V.minMatchCharLength,includeMatches:c=V.includeMatches,ignoreLocation:d=V.ignoreLocation}={}){if(e.length>Ut)throw new Error(Xa(Ut));const p=e.length,y=t.length,w=Math.max(0,Math.min(n,y));let m=s,_=w;const E=l>1||c,z=E?Array(y):[];let H;for(;(H=t.indexOf(e,_))>-1;){let fe=gn(e,{currentLocation:H,expectedLocation:w,distance:i,ignoreLocation:d});if(m=Math.min(fe,m),_=H+p,E){let Ae=0;for(;Ae<p;)z[H+Ae]=1,Ae+=1}}_=-1;let X=[],F=1,he=p+y;const te=1<<p-1;for(let fe=0;fe<p;fe+=1){let Ae=0,Ce=he;for(;Ae<Ce;)gn(e,{errors:fe,currentLocation:w+Ce,expectedLocation:w,distance:i,ignoreLocation:d})<=m?Ae=Ce:he=Ce,Ce=Math.floor((he-Ae)/2+Ae);he=Ce;let ye=Math.max(1,w-Ce+1),ie=o?y:Math.min(w+Ce,y)+p,Ge=Array(ie+2);Ge[ie+1]=(1<<fe)-1;for(let D=ie;D>=ye;D-=1){let S=D-1,M=r[t.charAt(S)];if(E&&(z[S]=+!!M),Ge[D]=(Ge[D+1]<<1|1)&M,fe&&(Ge[D]|=(X[D+1]|X[D])<<1|1|X[D+1]),Ge[D]&te&&(F=gn(e,{errors:fe,currentLocation:S,expectedLocation:w,distance:i,ignoreLocation:d}),F<=m)){if(m=F,_=S,_<=w)break;ye=Math.max(1,2*w-_)}}if(gn(e,{errors:fe+1,currentLocation:w,expectedLocation:w,distance:i,ignoreLocation:d})>m)break;X=Ge}const Z={isMatch:_>=0,score:Math.max(.001,F)};if(E){const fe=il(z,l);fe.length?c&&(Z.indices=fe):Z.isMatch=!1}return Z}function ol(t){let e={};for(let r=0,n=t.length;r<n;r+=1){const i=t.charAt(r);e[i]=(e[i]||0)|1<<n-r-1}return e}class to{constructor(e,{location:r=V.location,threshold:n=V.threshold,distance:i=V.distance,includeMatches:s=V.includeMatches,findAllMatches:o=V.findAllMatches,minMatchCharLength:l=V.minMatchCharLength,isCaseSensitive:c=V.isCaseSensitive,ignoreLocation:d=V.ignoreLocation}={}){if(this.options={location:r,threshold:n,distance:i,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:c,ignoreLocation:d},this.pattern=c?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const p=(w,m)=>{this.chunks.push({pattern:w,alphabet:ol(w),startIndex:m})},y=this.pattern.length;if(y>Ut){let w=0;const m=y%Ut,_=y-m;for(;w<_;)p(this.pattern.substr(w,Ut),w),w+=Ut;if(m){const E=y-Ut;p(this.pattern.substr(E),E)}}else p(this.pattern,0)}searchIn(e){const{isCaseSensitive:r,includeMatches:n}=this.options;if(r||(e=e.toLowerCase()),this.pattern===e){let _={isMatch:!0,score:0};return n&&(_.indices=[[0,e.length-1]]),_}const{location:i,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:c,ignoreLocation:d}=this.options;let p=[],y=0,w=!1;this.chunks.forEach(({pattern:_,alphabet:E,startIndex:z})=>{const{isMatch:H,score:X,indices:F}=sl(e,_,E,{location:i+z,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:c,includeMatches:n,ignoreLocation:d});H&&(w=!0),y+=X,H&&F&&(p=[...p,...F])});let m={isMatch:w,score:w?y/this.chunks.length:1};return w&&n&&(m.indices=p),m}}class Et{constructor(e){this.pattern=e}static isMultiMatch(e){return ro(e,this.multiRegex)}static isSingleMatch(e){return ro(e,this.singleRegex)}search(){}}function ro(t,e){const r=t.match(e);return r?r[1]:null}class al extends Et{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const r=e===this.pattern;return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class ll extends Et{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const n=e.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class cl extends Et{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const r=e.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,this.pattern.length-1]}}}class ul extends Et{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const r=!e.startsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class dl extends Et{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const r=e.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class hl extends Et{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const r=!e.endsWith(this.pattern);return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class no extends Et{constructor(e,{location:r=V.location,threshold:n=V.threshold,distance:i=V.distance,includeMatches:s=V.includeMatches,findAllMatches:o=V.findAllMatches,minMatchCharLength:l=V.minMatchCharLength,isCaseSensitive:c=V.isCaseSensitive,ignoreLocation:d=V.ignoreLocation}={}){super(e),this._bitapSearch=new to(e,{location:r,threshold:n,distance:i,includeMatches:s,findAllMatches:o,minMatchCharLength:l,isCaseSensitive:c,ignoreLocation:d})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class io extends Et{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let r=0,n;const i=[],s=this.pattern.length;for(;(n=e.indexOf(this.pattern,r))>-1;)r=n+s,i.push([n,r-1]);const o=!!i.length;return{isMatch:o,score:o?0:1,indices:i}}}const vi=[al,io,cl,ul,hl,dl,ll,no],so=vi.length,fl=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,pl="|";function gl(t,e={}){return t.split(pl).map(r=>{let n=r.trim().split(fl).filter(s=>s&&!!s.trim()),i=[];for(let s=0,o=n.length;s<o;s+=1){const l=n[s];let c=!1,d=-1;for(;!c&&++d<so;){const p=vi[d];let y=p.isMultiMatch(l);y&&(i.push(new p(y,e)),c=!0)}if(!c)for(d=-1;++d<so;){const p=vi[d];let y=p.isSingleMatch(l);if(y){i.push(new p(y,e));break}}}return i})}const yl=new Set([no.type,io.type]);class bl{constructor(e,{isCaseSensitive:r=V.isCaseSensitive,includeMatches:n=V.includeMatches,minMatchCharLength:i=V.minMatchCharLength,ignoreLocation:s=V.ignoreLocation,findAllMatches:o=V.findAllMatches,location:l=V.location,threshold:c=V.threshold,distance:d=V.distance}={}){this.query=null,this.options={isCaseSensitive:r,includeMatches:n,minMatchCharLength:i,findAllMatches:o,ignoreLocation:s,location:l,threshold:c,distance:d},this.pattern=r?e:e.toLowerCase(),this.query=gl(this.pattern,this.options)}static condition(e,r){return r.useExtendedSearch}searchIn(e){const r=this.query;if(!r)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:i}=this.options;e=i?e:e.toLowerCase();let s=0,o=[],l=0;for(let c=0,d=r.length;c<d;c+=1){const p=r[c];o.length=0,s=0;for(let y=0,w=p.length;y<w;y+=1){const m=p[y],{isMatch:_,indices:E,score:z}=m.search(e);if(_){if(s+=1,l+=z,n){const H=m.constructor.type;yl.has(H)?o=[...o,...E]:o.push(E)}}else{l=0,s=0,o.length=0;break}}if(s){let y={isMatch:!0,score:l/s};return n&&(y.indices=o),y}}return{isMatch:!1,score:1}}}const wi=[];function ml(...t){wi.push(...t)}function xi(t,e){for(let r=0,n=wi.length;r<n;r+=1){let i=wi[r];if(i.condition(t,e))return new i(t,e)}return new to(t,e)}const yn={AND:"$and",OR:"$or"},$i={PATH:"$path",PATTERN:"$val"},_i=t=>!!(t[yn.AND]||t[yn.OR]),vl=t=>!!t[$i.PATH],wl=t=>!mt(t)&&Fs(t)&&!_i(t),oo=t=>({[yn.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function ao(t,e,{auto:r=!0}={}){const n=i=>{let s=Object.keys(i);const o=vl(i);if(!o&&s.length>1&&!_i(i))return n(oo(i));if(wl(i)){const c=o?i[$i.PATH]:s[0],d=o?i[$i.PATTERN]:i[c];if(!ut(d))throw new Error(Fa(c));const p={keyId:bi(c),pattern:d};return r&&(p.searcher=xi(d,e)),p}let l={children:[],operator:s[0]};return s.forEach(c=>{const d=i[c];mt(d)&&d.forEach(p=>{l.children.push(n(p))})}),l};return _i(t)||(t=oo(t)),n(t)}function xl(t,{ignoreFieldNorm:e=V.ignoreFieldNorm}){t.forEach(r=>{let n=1;r.matches.forEach(({key:i,norm:s,score:o})=>{const l=i?i.weight:null;n*=Math.pow(o===0&&l?Number.EPSILON:o,(l||1)*(e?1:s))}),r.score=n})}function $l(t,e){const r=t.matches;e.matches=[],Je(r)&&r.forEach(n=>{if(!Je(n.indices)||!n.indices.length)return;const{indices:i,value:s}=n;let o={indices:i,value:s};n.key&&(o.key=n.key.src),n.idx>-1&&(o.refIndex=n.idx),e.matches.push(o)})}function _l(t,e){e.score=t.score}function Al(t,e,{includeMatches:r=V.includeMatches,includeScore:n=V.includeScore}={}){const i=[];return r&&i.push($l),n&&i.push(_l),t.map(s=>{const{idx:o}=s,l={item:e[o],refIndex:o};return i.length&&i.forEach(c=>{c(s,l)}),l})}class Ct{constructor(e,r={},n){this.options={...V,...r},this.options.useExtendedSearch,this._keyStore=new Qa(this.options.keys),this.setCollection(e,n)}setCollection(e,r){if(this._docs=e,r&&!(r instanceof mi))throw new Error(Ya);this._myIndex=r||eo(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Je(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const r=[];for(let n=0,i=this._docs.length;n<i;n+=1){const s=this._docs[n];e(s,n)&&(this.removeAt(n),n-=1,i-=1,r.push(s))}return r}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:r=-1}={}){const{includeMatches:n,includeScore:i,shouldSort:s,sortFn:o,ignoreFieldNorm:l}=this.options;let c=ut(e)?ut(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return xl(c,{ignoreFieldNorm:l}),s&&c.sort(o),Ys(r)&&r>-1&&(c=c.slice(0,r)),Al(c,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e){const r=xi(e,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:s,i:o,n:l})=>{if(!Je(s))return;const{isMatch:c,score:d,indices:p}=r.searchIn(s);c&&i.push({item:s,idx:o,matches:[{score:d,value:s,norm:l,indices:p}]})}),i}_searchLogical(e){const r=ao(e,this.options),n=(l,c,d)=>{if(!l.children){const{keyId:y,searcher:w}=l,m=this._findMatches({key:this._keyStore.get(y),value:this._myIndex.getValueForItemAtKeyId(c,y),searcher:w});return m&&m.length?[{idx:d,item:c,matches:m}]:[]}const p=[];for(let y=0,w=l.children.length;y<w;y+=1){const m=l.children[y],_=n(m,c,d);if(_.length)p.push(..._);else if(l.operator===yn.AND)return[]}return p},i=this._myIndex.records,s={},o=[];return i.forEach(({$:l,i:c})=>{if(Je(l)){let d=n(r,l,c);d.length&&(s[c]||(s[c]={idx:c,item:l,matches:[]},o.push(s[c])),d.forEach(({matches:p})=>{s[c].matches.push(...p)}))}}),o}_searchObjectList(e){const r=xi(e,this.options),{keys:n,records:i}=this._myIndex,s=[];return i.forEach(({$:o,i:l})=>{if(!Je(o))return;let c=[];n.forEach((d,p)=>{c.push(...this._findMatches({key:d,value:o[p],searcher:r}))}),c.length&&s.push({idx:l,item:o,matches:c})}),s}_findMatches({key:e,value:r,searcher:n}){if(!Je(r))return[];let i=[];if(mt(r))r.forEach(({v:s,i:o,n:l})=>{if(!Je(s))return;const{isMatch:c,score:d,indices:p}=n.searchIn(s);c&&i.push({score:d,key:e,value:s,idx:o,norm:l,indices:p})});else{const{v:s,n:o}=r,{isMatch:l,score:c,indices:d}=n.searchIn(s);l&&i.push({score:c,key:e,value:s,norm:o,indices:d})}return i}}Ct.version="7.0.0",Ct.createIndex=eo,Ct.parseIndex=nl,Ct.config=V,Ct.parseQuery=ao,ml(bl);function lo(t,e){const r=new Ct(e.filterProperties,{keys:["title"]}),n=t.target.value,s=r.search(n).map(o=>o.item.key||o.item.keys.join("|"));Object.keys(e.filters).forEach(o=>{e.querySelector(`[data-details="${o}"]`).parentElement.style.display=s.includes(o)||!n?"":"none"})}function Ml(t,e){const r=t.target.getAttribute("data-close").replace("|","-");e.querySelector(`#filter-${r}`).reset(),e.dispatchEvent(new CustomEvent("filter")),e.requestUpdate()}const Ai=Math.min,lr=Math.max,bn=Math.round,mn=Math.floor,kt=t=>({x:t,y:t});function co(t){return t.split("-")[0]}function Sl(t){return t.split("-")[1]}function El(t){return t==="x"?"y":"x"}function Cl(t){return t==="y"?"height":"width"}function uo(t){return["top","bottom"].includes(co(t))?"y":"x"}function kl(t){return El(uo(t))}function ho(t){const{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}function fo(t,e,r){let{reference:n,floating:i}=t;const s=uo(e),o=kl(e),l=Cl(o),c=co(e),d=s==="y",p=n.x+n.width/2-i.width/2,y=n.y+n.height/2-i.height/2,w=n[l]/2-i[l]/2;let m;switch(c){case"top":m={x:p,y:n.y-i.height};break;case"bottom":m={x:p,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y};break;case"left":m={x:n.x-i.width,y};break;default:m={x:n.x,y:n.y}}switch(Sl(e)){case"start":m[o]-=w*(r&&d?-1:1);break;case"end":m[o]+=w*(r&&d?-1:1);break}return m}const Ll=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,l=s.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let d=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:p,y}=fo(d,n,c),w=n,m={},_=0;for(let E=0;E<l.length;E++){const{name:z,fn:H}=l[E],{x:X,y:F,data:he,reset:te}=await H({x:p,y,initialPlacement:n,placement:w,strategy:i,middlewareData:m,rects:d,platform:o,elements:{reference:t,floating:e}});p=X??p,y=F??y,m={...m,[z]:{...m[z],...he}},te&&_<=50&&(_++,typeof te=="object"&&(te.placement&&(w=te.placement),te.rects&&(d=te.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):te.rects),{x:p,y}=fo(d,w,c)),E=-1)}return{x:p,y,placement:w,strategy:i,middlewareData:m}};function vn(){return typeof window<"u"}function cr(t){return po(t)?(t.nodeName||"").toLowerCase():"#document"}function Qe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function dt(t){var e;return(e=(po(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function po(t){return vn()?t instanceof Node||t instanceof Qe(t).Node:!1}function ot(t){return vn()?t instanceof Element||t instanceof Qe(t).Element:!1}function ht(t){return vn()?t instanceof HTMLElement||t instanceof Qe(t).HTMLElement:!1}function go(t){return!vn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Qe(t).ShadowRoot}function zr(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=at(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function Pl(t){return["table","td","th"].includes(cr(t))}function wn(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Mi(t){const e=Si(),r=ot(t)?at(t):t;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Tl(t){let e=Lt(t);for(;ht(e)&&!ur(e);){if(Mi(e))return e;if(wn(e))return null;e=Lt(e)}return null}function Si(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ur(t){return["html","body","#document"].includes(cr(t))}function at(t){return Qe(t).getComputedStyle(t)}function xn(t){return ot(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Lt(t){if(cr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||go(t)&&t.host||dt(t);return go(e)?e.host:e}function yo(t){const e=Lt(t);return ur(e)?t.ownerDocument?t.ownerDocument.body:t.body:ht(e)&&zr(e)?e:yo(e)}function qr(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=yo(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),o=Qe(i);if(s){const l=Ei(o);return e.concat(o,o.visualViewport||[],zr(i)?i:[],l&&r?qr(l):[])}return e.concat(i,qr(i,[],r))}function Ei(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function bo(t){const e=at(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=ht(t),s=i?t.offsetWidth:r,o=i?t.offsetHeight:n,l=bn(r)!==s||bn(n)!==o;return l&&(r=s,n=o),{width:r,height:n,$:l}}function Ci(t){return ot(t)?t:t.contextElement}function dr(t){const e=Ci(t);if(!ht(e))return kt(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:s}=bo(e);let o=(s?bn(r.width):r.width)/n,l=(s?bn(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Ol=kt(0);function mo(t){const e=Qe(t);return!Si()||!e.visualViewport?Ol:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Rl(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Qe(t)?!1:e}function zt(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),s=Ci(t);let o=kt(1);e&&(n?ot(n)&&(o=dr(n)):o=dr(t));const l=Rl(s,r,n)?mo(s):kt(0);let c=(i.left+l.x)/o.x,d=(i.top+l.y)/o.y,p=i.width/o.x,y=i.height/o.y;if(s){const w=Qe(s),m=n&&ot(n)?Qe(n):n;let _=w,E=Ei(_);for(;E&&n&&m!==_;){const z=dr(E),H=E.getBoundingClientRect(),X=at(E),F=H.left+(E.clientLeft+parseFloat(X.paddingLeft))*z.x,he=H.top+(E.clientTop+parseFloat(X.paddingTop))*z.y;c*=z.x,d*=z.y,p*=z.x,y*=z.y,c+=F,d+=he,_=Qe(E),E=Ei(_)}}return ho({width:p,height:y,x:c,y:d})}function Dl(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const s=i==="fixed",o=dt(n),l=e?wn(e.floating):!1;if(n===o||l&&s)return r;let c={scrollLeft:0,scrollTop:0},d=kt(1);const p=kt(0),y=ht(n);if((y||!y&&!s)&&((cr(n)!=="body"||zr(o))&&(c=xn(n)),ht(n))){const w=zt(n);d=dr(n),p.x=w.x+n.clientLeft,p.y=w.y+n.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+p.x,y:r.y*d.y-c.scrollTop*d.y+p.y}}function jl(t){return Array.from(t.getClientRects())}function ki(t,e){const r=xn(t).scrollLeft;return e?e.left+r:zt(dt(t)).left+r}function Nl(t){const e=dt(t),r=xn(t),n=t.ownerDocument.body,i=lr(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=lr(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+ki(t);const l=-r.scrollTop;return at(n).direction==="rtl"&&(o+=lr(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:l}}function Hl(t,e){const r=Qe(t),n=dt(t),i=r.visualViewport;let s=n.clientWidth,o=n.clientHeight,l=0,c=0;if(i){s=i.width,o=i.height;const d=Si();(!d||d&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:o,x:l,y:c}}function Il(t,e){const r=zt(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,s=ht(t)?dr(t):kt(1),o=t.clientWidth*s.x,l=t.clientHeight*s.y,c=i*s.x,d=n*s.y;return{width:o,height:l,x:c,y:d}}function vo(t,e,r){let n;if(e==="viewport")n=Hl(t,r);else if(e==="document")n=Nl(dt(t));else if(ot(e))n=Il(e,r);else{const i=mo(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return ho(n)}function wo(t,e){const r=Lt(t);return r===e||!ot(r)||ur(r)?!1:at(r).position==="fixed"||wo(r,e)}function Bl(t,e){const r=e.get(t);if(r)return r;let n=qr(t,[],!1).filter(l=>ot(l)&&cr(l)!=="body"),i=null;const s=at(t).position==="fixed";let o=s?Lt(t):t;for(;ot(o)&&!ur(o);){const l=at(o),c=Mi(o);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||zr(o)&&!c&&wo(t,o))?n=n.filter(p=>p!==o):i=l,o=Lt(o)}return e.set(t,n),n}function Ul(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const o=[...r==="clippingAncestors"?wn(e)?[]:Bl(e,this._c):[].concat(r),n],l=o[0],c=o.reduce((d,p)=>{const y=vo(e,p,i);return d.top=lr(y.top,d.top),d.right=Ai(y.right,d.right),d.bottom=Ai(y.bottom,d.bottom),d.left=lr(y.left,d.left),d},vo(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function zl(t){const{width:e,height:r}=bo(t);return{width:e,height:r}}function ql(t,e,r){const n=ht(e),i=dt(e),s=r==="fixed",o=zt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=kt(0);if(n||!n&&!s)if((cr(e)!=="body"||zr(i))&&(l=xn(e)),n){const m=zt(e,!0,s,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else i&&(c.x=ki(i));let d=0,p=0;if(i&&!n&&!s){const m=i.getBoundingClientRect();p=m.top+l.scrollTop,d=m.left+l.scrollLeft-ki(i,m)}const y=o.left+l.scrollLeft-c.x-d,w=o.top+l.scrollTop-c.y-p;return{x:y,y:w,width:o.width,height:o.height}}function Li(t){return at(t).position==="static"}function xo(t,e){if(!ht(t)||at(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return dt(t)===r&&(r=r.ownerDocument.body),r}function $o(t,e){const r=Qe(t);if(wn(t))return r;if(!ht(t)){let i=Lt(t);for(;i&&!ur(i);){if(ot(i)&&!Li(i))return i;i=Lt(i)}return r}let n=xo(t,e);for(;n&&Pl(n)&&Li(n);)n=xo(n,e);return n&&ur(n)&&Li(n)&&!Mi(n)?r:n||Tl(t)||r}const Wl=async function(t){const e=this.getOffsetParent||$o,r=this.getDimensions,n=await r(t.floating);return{reference:ql(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Vl(t){return at(t).direction==="rtl"}const Kl={convertOffsetParentRelativeRectToViewportRelativeRect:Dl,getDocumentElement:dt,getClippingRect:Ul,getOffsetParent:$o,getElementRects:Wl,getClientRects:jl,getDimensions:zl,getScale:dr,isElement:ot,isRTL:Vl};function Gl(t,e){let r=null,n;const i=dt(t);function s(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function o(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:d,top:p,width:y,height:w}=t.getBoundingClientRect();if(l||e(),!y||!w)return;const m=mn(p),_=mn(i.clientWidth-(d+y)),E=mn(i.clientHeight-(p+w)),z=mn(d),X={rootMargin:-m+"px "+-_+"px "+-E+"px "+-z+"px",threshold:lr(0,Ai(1,c))||1};let F=!0;function he(te){const Z=te[0].intersectionRatio;if(Z!==c){if(!F)return o();Z?o(!1,Z):n=setTimeout(()=>{o(!1,1e-7)},1e3)}F=!1}try{r=new IntersectionObserver(he,{...X,root:i.ownerDocument})}catch{r=new IntersectionObserver(he,X)}r.observe(t)}return o(!0),s}function Yl(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,d=Ci(t),p=i||s?[...d?qr(d):[],...qr(e)]:[];p.forEach(H=>{i&&H.addEventListener("scroll",r,{passive:!0}),s&&H.addEventListener("resize",r)});const y=d&&l?Gl(d,r):null;let w=-1,m=null;o&&(m=new ResizeObserver(H=>{let[X]=H;X&&X.target===d&&m&&(m.unobserve(e),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var F;(F=m)==null||F.observe(e)})),r()}),d&&!c&&m.observe(d),m.observe(e));let _,E=c?zt(t):null;c&&z();function z(){const H=zt(t);E&&(H.x!==E.x||H.y!==E.y||H.width!==E.width||H.height!==E.height)&&r(),E=H,_=requestAnimationFrame(z)}return r(),()=>{var H;p.forEach(X=>{i&&X.removeEventListener("scroll",r),s&&X.removeEventListener("resize",r)}),y==null||y(),(H=m)==null||H.disconnect(),m=null,c&&cancelAnimationFrame(_)}}const Fl=(t,e,r)=>{const n=new Map,i={platform:Kl,...r},s={...i.platform,_c:n};return Ll(t,e,{...i,platform:s})};function Xl(t){const e=t.renderRoot.querySelector(".inline-container-wrapper"),r=t.renderRoot.querySelector("[popover]");return Yl(e,r,()=>{r.matches(":popover-open")&&Fl(e,r,{strategy:"fixed"}).then(({x:i,y:s})=>{Object.assign(r.style,{left:`${i}px`,top:`${s}px`,width:`${e.getBoundingClientRect().width}px`})})},{animationFrame:!0})}function _o(t){t.renderRoot.querySelector("#eox-itemfilter-input-search").value="",lo({target:{value:""}},t)}function Zl(t,e){e.inlineMode&&t.stopPropagation()}function Jl(t){t.inlineMode&&(t.showDropdown=!0)}function Ql(t,e){e.inlineMode&&(t.stopPropagation(),e.showDropdown=!0)}function ec(t,e){e.inlineMode&&t.key==="Escape"&&e.showDropdown&&(_o(e),e.showDropdown=!1)}function tc(t,e){e.inlineMode&&t.target.tagName!=="DROPDOWN-FORM"&&t.target.tagName!=="EOX-ITEMFILTER"&&e.showDropdown&&(_o(e),e.showDropdown=!1)}function rc(t,e){var r=0,n=0,i=0,s=0,o=0,l=0,c=0,d=0,p=null,y=null,w=t[0],m=t[1],_=e.length;for(r;r<_;r++){n=0;var E=e[r].length-1,z=e[r];if(p=z[0],p[0]!==z[E][0]&&p[1]!==z[E][1])throw new Error("First and last coordinates in a ring must be the same");for(o=p[0]-w,l=p[1]-m,n;n<E;n++){if(y=z[n+1],d=y[1]-m,l<0&&d<0||l>0&&d>0){p=y,l=d,o=p[0]-w;continue}if(c=y[0]-t[0],d>0&&l<=0){if(s=o*d-c*l,s>0)i=i+1;else if(s===0)return 0}else if(l>0&&d<=0){if(s=o*d-c*l,s<0)i=i+1;else if(s===0)return 0}else if(d===0&&l<0){if(s=o*d-c*l,s===0)return 0}else if(l===0&&d<0){if(s=o*d-c*l,s===0)return 0}else if(l===0&&d===0){if(c<=0&&o>=0)return 0;if(o<=0&&c>=0)return 0}p=y,l=d,o=c}}return i%2!==0}function qt(t,e,r={}){const n={type:"Feature"};return(r.id===0||r.id)&&(n.id=r.id),r.bbox&&(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function nc(t,e,r={}){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!Ao(t[0])||!Ao(t[1]))throw new Error("coordinates must contain numbers");return qt({type:"Point",coordinates:t},e,r)}function ic(t,e,r={}){if(t.length<2)throw new Error("coordinates must be an array of two or more positions");return qt({type:"LineString",coordinates:t},e,r)}function Pi(t,e={}){const r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}function sc(t,e,r={}){return qt({type:"MultiLineString",coordinates:t},e,r)}function Ao(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function Mo(t){if(!t)throw new Error("coord is required");if(!Array.isArray(t)){if(t.type==="Feature"&&t.geometry!==null&&t.geometry.type==="Point")return[...t.geometry.coordinates];if(t.type==="Point")return[...t.coordinates]}if(Array.isArray(t)&&t.length>=2&&!Array.isArray(t[0])&&!Array.isArray(t[1]))return[...t];throw new Error("coord must be GeoJSON Point or an Array of numbers")}function oc(t){if(Array.isArray(t))return t;if(t.type==="Feature"){if(t.geometry!==null)return t.geometry.coordinates}else if(t.coordinates)return t.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function hr(t){return t.type==="Feature"?t.geometry:t}function nt(t,e,r={}){if(!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");const n=Mo(t),i=hr(e),s=i.type,o=e.bbox;let l=i.coordinates;if(o&&ac(n,o)===!1)return!1;s==="Polygon"&&(l=[l]);let c=!1;for(var d=0;d<l.length;++d){const p=rc(n,l[d]);if(p===0)return!r.ignoreBoundary;p&&(c=!0)}return c}function ac(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}class So{constructor(e=[],r=lc){if(this.data=e,this.length=this.data.length,this.compare=r,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const e=this.data[0],r=this.data.pop();return this.length--,this.length>0&&(this.data[0]=r,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:r,compare:n}=this,i=r[e];for(;e>0;){const s=e-1>>1,o=r[s];if(n(i,o)>=0)break;r[e]=o,e=s}r[e]=i}_down(e){const{data:r,compare:n}=this,i=this.length>>1,s=r[e];for(;e<i;){let o=(e<<1)+1,l=r[o];const c=o+1;if(c<this.length&&n(r[c],l)<0&&(o=c,l=r[c]),n(l,s)>=0)break;r[e]=l,e=o}r[e]=s}}function lc(t,e){return t<e?-1:t>e?1:0}function Eo(t,e){return t.p.x>e.p.x?1:t.p.x<e.p.x?-1:t.p.y!==e.p.y?t.p.y>e.p.y?1:-1:1}function cc(t,e){return t.rightSweepEvent.p.x>e.rightSweepEvent.p.x?1:t.rightSweepEvent.p.x<e.rightSweepEvent.p.x?-1:t.rightSweepEvent.p.y!==e.rightSweepEvent.p.y?t.rightSweepEvent.p.y<e.rightSweepEvent.p.y?1:-1:1}class Co{constructor(e,r,n,i){this.p={x:e[0],y:e[1]},this.featureId=r,this.ringId=n,this.eventId=i,this.otherEvent=null,this.isLeftEndpoint=null}isSamePoint(e){return this.p.x===e.p.x&&this.p.y===e.p.y}}function uc(t,e){if(t.type==="FeatureCollection"){const r=t.features;for(let n=0;n<r.length;n++)ko(r[n],e)}else ko(t,e)}let $n=0,_n=0,An=0;function ko(t,e){const r=t.type==="Feature"?t.geometry:t;let n=r.coordinates;(r.type==="Polygon"||r.type==="MultiLineString")&&(n=[n]),r.type==="LineString"&&(n=[[n]]);for(let i=0;i<n.length;i++)for(let s=0;s<n[i].length;s++){let o=n[i][s][0],l=null;_n=_n+1;for(let c=0;c<n[i][s].length-1;c++){l=n[i][s][c+1];const d=new Co(o,$n,_n,An),p=new Co(l,$n,_n,An+1);d.otherEvent=p,p.otherEvent=d,Eo(d,p)>0?(p.isLeftEndpoint=!0,d.isLeftEndpoint=!1):(d.isLeftEndpoint=!0,p.isLeftEndpoint=!1),e.push(d),e.push(p),o=l,An=An+1}}$n=$n+1}class dc{constructor(e){this.leftSweepEvent=e,this.rightSweepEvent=e.otherEvent}}function hc(t,e){if(t===null||e===null||t.leftSweepEvent.ringId===e.leftSweepEvent.ringId&&(t.rightSweepEvent.isSamePoint(e.leftSweepEvent)||t.rightSweepEvent.isSamePoint(e.leftSweepEvent)||t.rightSweepEvent.isSamePoint(e.rightSweepEvent)||t.leftSweepEvent.isSamePoint(e.leftSweepEvent)||t.leftSweepEvent.isSamePoint(e.rightSweepEvent)))return!1;const r=t.leftSweepEvent.p.x,n=t.leftSweepEvent.p.y,i=t.rightSweepEvent.p.x,s=t.rightSweepEvent.p.y,o=e.leftSweepEvent.p.x,l=e.leftSweepEvent.p.y,c=e.rightSweepEvent.p.x,d=e.rightSweepEvent.p.y,p=(d-l)*(i-r)-(c-o)*(s-n),y=(c-o)*(n-l)-(d-l)*(r-o),w=(i-r)*(n-l)-(s-n)*(r-o);if(p===0)return!1;const m=y/p,_=w/p;if(m>=0&&m<=1&&_>=0&&_<=1){const E=r+m*(i-r),z=n+m*(s-n);return[E,z]}return!1}function fc(t,e){e=e||!1;const r=[],n=new So([],cc);for(;t.length;){const i=t.pop();if(i.isLeftEndpoint){const s=new dc(i);for(let o=0;o<n.data.length;o++){const l=n.data[o];if(e&&l.leftSweepEvent.featureId===i.featureId)continue;const c=hc(s,l);c!==!1&&r.push(c)}n.push(s)}else i.isLeftEndpoint===!1&&n.pop()}return r}function pc(t,e){const r=new So([],Eo);return uc(t,r),fc(r,e)}var gc=pc;function Ti(t,e,r={}){const{removeDuplicates:n=!0,ignoreSelfIntersections:i=!1}=r;let s=[];t.type==="FeatureCollection"?s=s.concat(t.features):t.type==="Feature"?s.push(t):(t.type==="LineString"||t.type==="Polygon"||t.type==="MultiLineString"||t.type==="MultiPolygon")&&s.push(qt(t)),e.type==="FeatureCollection"?s=s.concat(e.features):e.type==="Feature"?s.push(e):(e.type==="LineString"||e.type==="Polygon"||e.type==="MultiLineString"||e.type==="MultiPolygon")&&s.push(qt(e));const o=gc(Pi(s),i);let l=[];if(n){const c={};o.forEach(d=>{const p=d.join(",");c[p]||(c[p]=!0,l.push(d))})}else l=o;return Pi(l.map(c=>nc(c)))}function Lo(t,e,r){if(t!==null)for(var n,i,s,o,l,c,d,p=0,y=0,w,m=t.type,_=m==="FeatureCollection",E=m==="Feature",z=_?t.features.length:1,H=0;H<z;H++){d=_?t.features[H].geometry:E?t.geometry:t,w=d?d.type==="GeometryCollection":!1,l=w?d.geometries.length:1;for(var X=0;X<l;X++){var F=0,he=0;if(o=w?d.geometries[X]:d,o!==null){c=o.coordinates;var te=o.type;switch(p=0,te){case null:break;case"Point":if(e(c,y,H,F,he)===!1)return!1;y++,F++;break;case"LineString":case"MultiPoint":for(n=0;n<c.length;n++){if(e(c[n],y,H,F,he)===!1)return!1;y++,te==="MultiPoint"&&F++}te==="LineString"&&F++;break;case"Polygon":case"MultiLineString":for(n=0;n<c.length;n++){for(i=0;i<c[n].length-p;i++){if(e(c[n][i],y,H,F,he)===!1)return!1;y++}te==="MultiLineString"&&F++,te==="Polygon"&&he++}te==="Polygon"&&F++;break;case"MultiPolygon":for(n=0;n<c.length;n++){for(he=0,i=0;i<c[n].length;i++){for(s=0;s<c[n][i].length-p;s++){if(e(c[n][i][s],y,H,F,he)===!1)return!1;y++}he++}F++}break;case"GeometryCollection":for(n=0;n<o.geometries.length;n++)if(Lo(o.geometries[n],e)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function yc(t,e){var r,n,i,s,o,l,c,d,p,y,w=0,m=t.type==="FeatureCollection",_=t.type==="Feature",E=m?t.features.length:1;for(r=0;r<E;r++){for(l=m?t.features[r].geometry:_?t.geometry:t,d=m?t.features[r].properties:_?t.properties:{},p=m?t.features[r].bbox:_?t.bbox:void 0,y=m?t.features[r].id:_?t.id:void 0,c=l?l.type==="GeometryCollection":!1,o=c?l.geometries.length:1,i=0;i<o;i++){if(s=c?l.geometries[i]:l,s===null){if(e(null,w,d,p,y)===!1)return!1;continue}switch(s.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(e(s,w,d,p,y)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<s.geometries.length;n++)if(e(s.geometries[n],w,d,p,y)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}w++}}function Mn(t,e){yc(t,function(r,n,i,s,o){var l=r===null?null:r.type;switch(l){case null:case"Point":case"LineString":case"Polygon":return e(qt(r,i,{bbox:s,id:o}),n,0)===!1?!1:void 0}var c;switch(l){case"MultiPoint":c="Point";break;case"MultiLineString":c="LineString";break;case"MultiPolygon":c="Polygon";break}for(var d=0;d<r.coordinates.length;d++){var p=r.coordinates[d],y={type:c,coordinates:p};if(e(qt(y,i),n,d)===!1)return!1}})}function Oi(t,e={}){const r=hr(t);switch(!e.properties&&t.type==="Feature"&&(e.properties=t.properties),r.type){case"Polygon":return bc(r,e);case"MultiPolygon":return mc(r,e);default:throw new Error("invalid poly")}}function bc(t,e={}){const n=hr(t).coordinates,i=e.properties?e.properties:t.type==="Feature"?t.properties:{};return Po(n,i)}function mc(t,e={}){const n=hr(t).coordinates,i=e.properties?e.properties:t.type==="Feature"?t.properties:{},s=[];return n.forEach(o=>{s.push(Po(o,i))}),Pi(s)}function Po(t,e){return t.length>1?sc(t,e):ic(t[0],e)}function vc(t,e,r={}){var n;const i=(n=r.ignoreSelfIntersections)!=null?n:!1;let s=!0;return Mn(t,o=>{Mn(e,l=>{if(s===!1)return!1;s=wc(o.geometry,l.geometry,i)})}),s}function wc(t,e,r){switch(t.type){case"Point":switch(e.type){case"Point":return!Ac(t.coordinates,e.coordinates);case"LineString":return!To(e,t);case"Polygon":return!nt(t,e)}break;case"LineString":switch(e.type){case"Point":return!To(t,e);case"LineString":return!xc(t,e,r);case"Polygon":return!Oo(e,t,r)}break;case"Polygon":switch(e.type){case"Point":return!nt(e,t);case"LineString":return!Oo(t,e,r);case"Polygon":return!$c(e,t,r)}}return!1}function To(t,e){for(let r=0;r<t.coordinates.length-1;r++)if(_c(t.coordinates[r],t.coordinates[r+1],e.coordinates))return!0;return!1}function xc(t,e,r){return Ti(t,e,{ignoreSelfIntersections:r}).features.length>0}function Oo(t,e,r){for(const i of e.coordinates)if(nt(i,t))return!0;return Ti(e,Oi(t),{ignoreSelfIntersections:r}).features.length>0}function $c(t,e,r){for(const i of t.coordinates[0])if(nt(i,e))return!0;for(const i of e.coordinates[0])if(nt(i,t))return!0;return Ti(Oi(t),Oi(e),{ignoreSelfIntersections:r}).features.length>0}function _c(t,e,r){const n=r[0]-t[0],i=r[1]-t[1],s=e[0]-t[0],o=e[1]-t[1];return n*o-i*s!==0?!1:Math.abs(s)>=Math.abs(o)?s>0?t[0]<=r[0]&&r[0]<=e[0]:e[0]<=r[0]&&r[0]<=t[0]:o>0?t[1]<=r[1]&&r[1]<=e[1]:e[1]<=r[1]&&r[1]<=t[1]}function Ac(t,e){return t[0]===e[0]&&t[1]===e[1]}function Mc(t,e,r={}){var n;const i=(n=r.ignoreSelfIntersections)!=null?n:!1;let s=!1;return Mn(t,o=>{Mn(e,l=>{if(s===!0)return!0;s=!vc(o.geometry,l.geometry,{ignoreSelfIntersections:i})})}),s}var Sc=Mc;function Sn(t,e={}){if(t.bbox!=null&&e.recompute!==!0)return t.bbox;const r=[1/0,1/0,-1/0,-1/0];return Lo(t,n=>{r[0]>n[0]&&(r[0]=n[0]),r[1]>n[1]&&(r[1]=n[1]),r[2]<n[0]&&(r[2]=n[0]),r[3]<n[1]&&(r[3]=n[1])}),r}function En(t,e,r={}){const n=Mo(t),i=oc(e);for(let s=0;s<i.length-1;s++){let o=!1;if(r.ignoreEndVertices&&(s===0&&(o="start"),s===i.length-2&&(o="end"),s===0&&s+1===i.length-1&&(o="both")),Ec(i[s],i[s+1],n,o,typeof r.epsilon>"u"?null:r.epsilon))return!0}return!1}function Ec(t,e,r,n,i){const s=r[0],o=r[1],l=t[0],c=t[1],d=e[0],p=e[1],y=r[0]-l,w=r[1]-c,m=d-l,_=p-c,E=y*_-w*m;if(i!==null){if(Math.abs(E)>i)return!1}else if(E!==0)return!1;if(n){if(n==="start")return Math.abs(m)>=Math.abs(_)?m>0?l<s&&s<=d:d<=s&&s<l:_>0?c<o&&o<=p:p<=o&&o<c;if(n==="end")return Math.abs(m)>=Math.abs(_)?m>0?l<=s&&s<d:d<s&&s<=l:_>0?c<=o&&o<p:p<o&&o<=c;if(n==="both")return Math.abs(m)>=Math.abs(_)?m>0?l<s&&s<d:d<s&&s<l:_>0?c<o&&o<p:p<o&&o<c}else return Math.abs(m)>=Math.abs(_)?m>0?l<=s&&s<=d:d<=s&&s<=l:_>0?c<=o&&o<=p:p<=o&&o<=c;return!1}function Cc(t,e){var r=hr(t),n=hr(e),i=r.type,s=n.type;switch(i){case"Point":switch(s){case"MultiPoint":return kc(r,n);case"LineString":return En(r,n,{ignoreEndVertices:!0});case"Polygon":case"MultiPolygon":return nt(r,n,{ignoreBoundary:!0});default:throw new Error("feature2 "+s+" geometry not supported")}case"MultiPoint":switch(s){case"MultiPoint":return Lc(r,n);case"LineString":return Pc(r,n);case"Polygon":case"MultiPolygon":return Tc(r,n);default:throw new Error("feature2 "+s+" geometry not supported")}case"LineString":switch(s){case"LineString":return Oc(r,n);case"Polygon":case"MultiPolygon":return Rc(r,n);default:throw new Error("feature2 "+s+" geometry not supported")}case"Polygon":switch(s){case"Polygon":case"MultiPolygon":return Dc(r,n);default:throw new Error("feature2 "+s+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}}function kc(t,e){var r,n=!1;for(r=0;r<e.coordinates.length;r++)if(Do(e.coordinates[r],t.coordinates)){n=!0;break}return n}function Lc(t,e){for(var r=0;r<t.coordinates.length;r++){for(var n=!1,i=0;i<e.coordinates.length;i++)Do(t.coordinates[r],e.coordinates[i])&&(n=!0);if(!n)return!1}return!0}function Pc(t,e){for(var r=!1,n=0;n<t.coordinates.length;n++){if(!En(t.coordinates[n],e))return!1;r||(r=En(t.coordinates[n],e,{ignoreEndVertices:!0}))}return r}function Tc(t,e){for(var r=!0,n=!1,i=0;i<t.coordinates.length;i++){if(n=nt(t.coordinates[i],e),!n){r=!1;break}n=nt(t.coordinates[i],e,{ignoreBoundary:!0})}return r&&n}function Oc(t,e){for(var r=0;r<t.coordinates.length;r++)if(!En(t.coordinates[r],e))return!1;return!0}function Rc(t,e){var r=Sn(e),n=Sn(t);if(!Ro(r,n))return!1;for(var i=!1,s=0;s<t.coordinates.length;s++){if(!nt(t.coordinates[s],e))return!1;if(i||(i=nt(t.coordinates[s],e,{ignoreBoundary:!0})),!i&&s<t.coordinates.length-1){var o=jc(t.coordinates[s],t.coordinates[s+1]);i=nt(o,e,{ignoreBoundary:!0})}}return i}function Dc(t,e){var r=Sn(t),n=Sn(e);if(!Ro(n,r))return!1;for(var i=0;i<t.coordinates[0].length;i++)if(!nt(t.coordinates[0][i],e))return!1;return!0}function Ro(t,e){return!(t[0]>e[0]||t[2]<e[2]||t[1]>e[1]||t[3]<e[3])}function Do(t,e){return t[0]===e[0]&&t[1]===e[1]}function jc(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}var Nc=Cc;const Hc=(t,e)=>e?Sc(t,e):!0,Ic=(t,e)=>e?Nc(t,e):!0;function Bc(t,e="highlight",r="title"){const n=(s,o,l)=>{const c=o.split(".");let d;for(d=0;d<c.length-1;d++)s=s[c[d]];s[c[d]]=l},i=(s,o=[])=>{let l="",c=0;return o.forEach(d=>{const p=d[1]+1;l+=[s.substring(c,d[0]),`<mark class="${e}">`,s.substring(d[0],p),"</mark>"].join(""),c=p}),l+=s.substring(c),l};return t.filter(({matches:s})=>s&&s.length).map(({item:s,matches:o})=>{const l={...s};return o.forEach(c=>{c.key===r&&n(l,c.key,i(c.value,c.indices))}),l})}var et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jo={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(et,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",l="minute",c="hour",d="day",p="week",y="month",w="quarter",m="year",_="date",E="Invalid Date",z=/^(\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,X={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(D){var S=["th","st","nd","rd"],M=D%100;return"["+D+(S[(M-20)%10]||S[M]||S[0])+"]"}},F=function(D,S,M){var j=String(D);return!j||j.length>=S?D:""+Array(S+1-j.length).join(M)+D},he={s:F,z:function(D){var S=-D.utcOffset(),M=Math.abs(S),j=Math.floor(M/60),k=M%60;return(S<=0?"+":"-")+F(j,2,"0")+":"+F(k,2,"0")},m:function D(S,M){if(S.date()<M.date())return-D(M,S);var j=12*(M.year()-S.year())+(M.month()-S.month()),k=S.clone().add(j,y),K=M-k<0,G=S.clone().add(j+(K?-1:1),y);return+(-(j+(M-k)/(K?k-G:G-k))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:y,y:m,w:p,d,D:_,h:c,m:l,s:o,ms:s,Q:w}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},te="en",Z={};Z[te]=X;var fe="$isDayjsObject",Ae=function(D){return D instanceof Ge||!(!D||!D[fe])},Ce=function D(S,M,j){var k;if(!S)return te;if(typeof S=="string"){var K=S.toLowerCase();Z[K]&&(k=K),M&&(Z[K]=M,k=K);var G=S.split("-");if(!k&&G.length>1)return D(G[0])}else{var de=S.name;Z[de]=S,k=de}return!j&&k&&(te=k),k||!j&&te},ye=function(D,S){if(Ae(D))return D.clone();var M=typeof S=="object"?S:{};return M.date=D,M.args=arguments,new Ge(M)},ie=he;ie.l=Ce,ie.i=Ae,ie.w=function(D,S){return ye(D,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var Ge=function(){function D(M){this.$L=Ce(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[fe]=!0}var S=D.prototype;return S.parse=function(M){this.$d=function(j){var k=j.date,K=j.utc;if(k===null)return new Date(NaN);if(ie.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var G=k.match(z);if(G){var de=G[2]-1||0,$e=(G[7]||"0").substring(0,3);return K?new Date(Date.UTC(G[1],de,G[3]||1,G[4]||0,G[5]||0,G[6]||0,$e)):new Date(G[1],de,G[3]||1,G[4]||0,G[5]||0,G[6]||0,$e)}}return new Date(k)}(M),this.init()},S.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},S.$utils=function(){return ie},S.isValid=function(){return this.$d.toString()!==E},S.isSame=function(M,j){var k=ye(M);return this.startOf(j)<=k&&k<=this.endOf(j)},S.isAfter=function(M,j){return ye(M)<this.startOf(j)},S.isBefore=function(M,j){return this.endOf(j)<ye(M)},S.$g=function(M,j,k){return ie.u(M)?this[j]:this.set(k,M)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(M,j){var k=this,K=!!ie.u(j)||j,G=ie.p(M),de=function(Te,re){var Oe=ie.w(k.$u?Date.UTC(k.$y,re,Te):new Date(k.$y,re,Te),k);return K?Oe:Oe.endOf(d)},$e=function(Te,re){return ie.w(k.toDate()[Te].apply(k.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(re)),k)},Se=this.$W,ke=this.$M,Ie=this.$D,Pe="set"+(this.$u?"UTC":"");switch(G){case m:return K?de(1,0):de(31,11);case y:return K?de(1,ke):de(0,ke+1);case p:var Be=this.$locale().weekStart||0,se=(Se<Be?Se+7:Se)-Be;return de(K?Ie-se:Ie+(6-se),ke);case d:case _:return $e(Pe+"Hours",0);case c:return $e(Pe+"Minutes",1);case l:return $e(Pe+"Seconds",2);case o:return $e(Pe+"Milliseconds",3);default:return this.clone()}},S.endOf=function(M){return this.startOf(M,!1)},S.$set=function(M,j){var k,K=ie.p(M),G="set"+(this.$u?"UTC":""),de=(k={},k[d]=G+"Date",k[_]=G+"Date",k[y]=G+"Month",k[m]=G+"FullYear",k[c]=G+"Hours",k[l]=G+"Minutes",k[o]=G+"Seconds",k[s]=G+"Milliseconds",k)[K],$e=K===d?this.$D+(j-this.$W):j;if(K===y||K===m){var Se=this.clone().set(_,1);Se.$d[de]($e),Se.init(),this.$d=Se.set(_,Math.min(this.$D,Se.daysInMonth())).$d}else de&&this.$d[de]($e);return this.init(),this},S.set=function(M,j){return this.clone().$set(M,j)},S.get=function(M){return this[ie.p(M)]()},S.add=function(M,j){var k,K=this;M=Number(M);var G=ie.p(j),de=function(ke){var Ie=ye(K);return ie.w(Ie.date(Ie.date()+Math.round(ke*M)),K)};if(G===y)return this.set(y,this.$M+M);if(G===m)return this.set(m,this.$y+M);if(G===d)return de(1);if(G===p)return de(7);var $e=(k={},k[l]=n,k[c]=i,k[o]=r,k)[G]||1,Se=this.$d.getTime()+M*$e;return ie.w(Se,this)},S.subtract=function(M,j){return this.add(-1*M,j)},S.format=function(M){var j=this,k=this.$locale();if(!this.isValid())return k.invalidDate||E;var K=M||"YYYY-MM-DDTHH:mm:ssZ",G=ie.z(this),de=this.$H,$e=this.$m,Se=this.$M,ke=k.weekdays,Ie=k.months,Pe=k.meridiem,Be=function(re,Oe,ft,_e){return re&&(re[Oe]||re(j,K))||ft[Oe].slice(0,_e)},se=function(re){return ie.s(de%12||12,re,"0")},Te=Pe||function(re,Oe,ft){var _e=re<12?"AM":"PM";return ft?_e.toLowerCase():_e};return K.replace(H,function(re,Oe){return Oe||function(ft){switch(ft){case"YY":return String(j.$y).slice(-2);case"YYYY":return ie.s(j.$y,4,"0");case"M":return Se+1;case"MM":return ie.s(Se+1,2,"0");case"MMM":return Be(k.monthsShort,Se,Ie,3);case"MMMM":return Be(Ie,Se);case"D":return j.$D;case"DD":return ie.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return Be(k.weekdaysMin,j.$W,ke,2);case"ddd":return Be(k.weekdaysShort,j.$W,ke,3);case"dddd":return ke[j.$W];case"H":return String(de);case"HH":return ie.s(de,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return Te(de,$e,!0);case"A":return Te(de,$e,!1);case"m":return String($e);case"mm":return ie.s($e,2,"0");case"s":return String(j.$s);case"ss":return ie.s(j.$s,2,"0");case"SSS":return ie.s(j.$ms,3,"0");case"Z":return G}return null}(re)||G.replace(":","")})},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(M,j,k){var K,G=this,de=ie.p(j),$e=ye(M),Se=($e.utcOffset()-this.utcOffset())*n,ke=this-$e,Ie=function(){return ie.m(G,$e)};switch(de){case m:K=Ie()/12;break;case y:K=Ie();break;case w:K=Ie()/3;break;case p:K=(ke-Se)/6048e5;break;case d:K=(ke-Se)/864e5;break;case c:K=ke/i;break;case l:K=ke/n;break;case o:K=ke/r;break;default:K=ke}return k?K:ie.a(K)},S.daysInMonth=function(){return this.endOf(y).$D},S.$locale=function(){return Z[this.$L]},S.locale=function(M,j){if(!M)return this.$L;var k=this.clone(),K=Ce(M,j,!0);return K&&(k.$L=K),k},S.clone=function(){return ie.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},D}(),Ft=Ge.prototype;return ye.prototype=Ft,[["$ms",s],["$s",o],["$m",l],["$H",c],["$W",d],["$M",y],["$y",m],["$D",_]].forEach(function(D){Ft[D[1]]=function(S){return this.$g(S,D[0],D[1])}}),ye.extend=function(D,S){return D.$i||(D(S,Ge,ye),D.$i=!0),ye},ye.locale=Ce,ye.isDayjs=Ae,ye.unix=function(D){return ye(1e3*D)},ye.en=Z[te],ye.Ls=Z,ye.p={},ye})})(jo);var Uc=jo.exports;const Wr=Cn(Uc);let No;const zc=(t,e)=>{No=new Ct(t,{threshold:.4,distance:50,includeMatches:!0,useExtendedSearch:!0,...e})},qc=async(t,e,r)=>{const n=Object.entries(e).filter(([,l])=>l.type==="text"||l.type==="select"||l.type==="multiselect").reduce((l,[c,d])=>{const p="$or",y=[],w=(m,_)=>{const E={};d.type==="text"?E[m]=`${_}`:E[c]=`="${m}"`,y.push(E)};return Object.entries(d.state).filter(([,m])=>m).forEach(([m,_])=>w(m,_)),y.length>0&&l.push({[p]:y}),l},[]);let i;if(!(n.length>0)&&r.matchAllWhenEmpty!==!1)i=t;else{const l={$and:[...n]},c=No.search(l);i=r.enableHighlighting?Bc(c,"highlight",r.titleProperty):c.map(d=>d.item)}const s=Object.entries(e).filter(([,l])=>l.type==="range").reduce((l,[c,d])=>(l[c]={min:d.state.min,max:d.state.max,format:d.format},l),{});if(Object.keys(s).length>0){const l=[];for(let c=0;c<i.length;c++){const d={};for(const[p,y]of Object.entries(s)){const w=_=>y.format==="date"?Wr(_).unix():_,m=Di(p,i[c]);m?Array.isArray(m)?d[p]=s[p].min<=w(m[1])&&w(m[0])<=s[p].max:w(m)>=s[p].min&&w(m)<=s[p].max?d[p]=!0:d[p]=!1:d[p]=!0}Object.values(d).every(p=>!!p)&&l.push(i[c])}i=[...l]}const o=Object.entries(e).filter(([,l])=>l.type==="spatial").reduce((l,[c,d])=>(l[c]={geometry:d.state.geometry,mode:d.state.mode},l),{});if(Object.values(o).map(l=>l.geometry).filter(l=>!!l).length>0){const l=[];for(let c=0;c<i.length;c++){const d={};for(const p of Object.keys(o)){const y=Di(p,i[c]),w=o[p].mode||"within";y&&(w==="within"?Ic(y,o[p].geometry):Hc(y,o[p].geometry))?d[p]=!0:d[p]=!1}Object.values(d).every(p=>!!p)&&l.push(i[c])}i=[...l]}return i};function Wc(t,e){return[{type:"Vector",properties:{id:"draw"},source:{type:"Vector",...t&&{format:"GeoJSON"},...t&&{url:e}},zIndex:1,interactions:[{type:"draw",options:{id:"drawInteraction",type:"Box",modify:!0}}]},{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 }"}}]}function kn(t){if(!t.dirty)return null;switch(t.type){case"multiselect":for(const r in t.state)t.state.hasOwnProperty(r)&&(t.state[r]=!1);break;case"range":t.state.min=t.min,t.state.max=t.max;break;case"select":for(const r in t.state)t.state.hasOwnProperty(r)&&(t.state[r]=!1);break;case"spatial":t.state.geometry=void 0;break;case"text":t.keys.forEach(r=>{t.state[r]=void 0});break}return delete t.stringifiedState,delete t.dirty,t}function Ho(t,e){return t*2+e}function Vc(t){return Object.keys(t).map(e=>({title:Y`${t[e].title}:
|
|
532
|
+
<strong>${t[e].stringifiedState}</strong>`,key:e})).filter(e=>t[e.key].dirty)}function Ri(t){return Object.values(t).map(e=>e.dirty).filter(e=>e).length>0}async function Kc(t,e,r){return await(await fetch(`${r.externalFilter(t,e)}`)).json()}function Io(t,e,r){let n;if(t.detail?n=t.detail.target:n=t.target,n!=null&&n.classList.contains("details-filter")){if(!n.open||e!=null&&e.expandMultipleFilters)return;r.shadowRoot.querySelectorAll("eox-itemfilter-expandcontainer").forEach(i=>{const s=i.shadowRoot.querySelector(".details-filter");s&&s!==n&&s.removeAttribute("open")})}else{if(!(n!=null&&n.open)||e!=null&&e.expandMultipleResults)return;r.querySelectorAll("details").forEach(i=>{i!==n&&i.removeAttribute("open")})}}function Di(t,e){return t!=null&&t.includes(".")?t.split(".").reduce((r,n)=>r&&r[n],e):e[t]}class Gc extends Ye{constructor(){super();Ze(this,me);this.filterProperties={},this.unstyled=!1,this.inlineMode=!1,this.filters={},this._handleClickOutside=le(this,me,ha).bind(this),this._handleKeyDown=le(this,me,$s).bind(this)}static get properties(){return{filterProperties:{attribute:!1,type:Object},inlineMode:{attribute:"inline-mode",type:Boolean},unstyled:{type:Boolean},filters:{state:!0,type:Object}}}set showDropdown(r){this.renderRoot.querySelector("[popover]").togglePopover(r)}get showDropdown(){var r;return(r=this.renderRoot.querySelector("[popover]"))==null?void 0:r.matches(":popover-open")}connectedCallback(){super.connectedCallback(),this.inlineMode&&le(this,me,ws).call(this)}disconnectedCallback(){this.inlineMode&&le(this,me,xs).call(this),super.disconnectedCallback()}_overlayCleanup(){}updateInline(){this.inlineMode&&this.requestUpdate()}updated(r){r.has("inlineMode")&&(this.inlineMode?le(this,me,ws).call(this):le(this,me,xs).call(this))}render(){return Y`
|
|
533
533
|
<style>
|
|
534
|
-
${!this.unstyled&&
|
|
534
|
+
${!this.unstyled&&Ur}
|
|
535
535
|
</style>
|
|
536
536
|
${this.inlineMode?Y`
|
|
537
537
|
<div
|
|
538
538
|
class="inline-container-wrapper"
|
|
539
|
-
@click="${le(this,me
|
|
539
|
+
@click="${le(this,me,_s)}"
|
|
540
540
|
>
|
|
541
541
|
<div class="inline-container" part="container">
|
|
542
542
|
<div class="chip-container">
|
|
543
543
|
<div class="chip-wrapper">
|
|
544
544
|
<eox-itemfilter-chips
|
|
545
|
-
.items=${
|
|
546
|
-
.controller=${{remove:r=>le(this,me,
|
|
545
|
+
.items=${Vc(this.filters)}
|
|
546
|
+
.controller=${{remove:r=>le(this,me,pa).call(this,r)}}
|
|
547
547
|
>
|
|
548
548
|
</eox-itemfilter-chips>
|
|
549
549
|
</div>
|
|
550
550
|
|
|
551
|
-
${
|
|
551
|
+
${Ke(Ri(this.filters),()=>Y`
|
|
552
552
|
<span
|
|
553
553
|
class="chip-close"
|
|
554
554
|
@click=${()=>this.dispatchEvent(new CustomEvent("reset"))}
|
|
@@ -562,9 +562,9 @@ eox-itemfilter-results li.highlighted {
|
|
|
562
562
|
autocomplete="off"
|
|
563
563
|
id="eox-itemfilter-input-search"
|
|
564
564
|
type="text"
|
|
565
|
-
@click="${le(this,me
|
|
566
|
-
@focus="${le(this,me,
|
|
567
|
-
@input="${le(this,me,
|
|
565
|
+
@click="${le(this,me,_s)}"
|
|
566
|
+
@focus="${le(this,me,fa)}"
|
|
567
|
+
@input="${le(this,me,ga)}"
|
|
568
568
|
placeholder="Search and add filter"
|
|
569
569
|
aria-haspopup="true"
|
|
570
570
|
aria-expanded="${this.showDropdown}"
|
|
@@ -575,16 +575,16 @@ eox-itemfilter-results li.highlighted {
|
|
|
575
575
|
<div
|
|
576
576
|
class="inline-content"
|
|
577
577
|
slot="content"
|
|
578
|
-
@keydown="${le(this,me
|
|
579
|
-
@click="${le(this,me,
|
|
580
|
-
@focus="${le(this,me,
|
|
578
|
+
@keydown="${le(this,me,$s)}"
|
|
579
|
+
@click="${le(this,me,As)}"
|
|
580
|
+
@focus="${le(this,me,As)}"
|
|
581
581
|
>
|
|
582
582
|
<slot name="section"></slot>
|
|
583
583
|
</div>
|
|
584
584
|
</div>
|
|
585
585
|
</div>
|
|
586
586
|
`:Y`<slot name="section"></slot>`}
|
|
587
|
-
`}}me=new WeakSet,da=function(){setTimeout(()=>this._overlayCleanup=
|
|
587
|
+
`}}me=new WeakSet,da=function(){setTimeout(()=>this._overlayCleanup=Xl(this))},ws=function(){document.addEventListener("click",this._handleClickOutside),document.addEventListener("focusout",this._handleClickOutside),document.addEventListener("keydown",this._handleKeyDown),le(this,me,da).call(this)},xs=function(){document.removeEventListener("click",this._handleClickOutside),document.removeEventListener("focusout",this._handleClickOutside),document.removeEventListener("keydown",this._handleKeyDown),this._overlayCleanup()},ha=function(r){tc(r,this)},$s=function(r){ec(r,this)},_s=function(r){Ql(r,this)},fa=function(){Jl(this)},As=function(r){Zl(r,this)},pa=function(r){Ml(r,this)},ga=function(r){lo(r,this)},customElements.define("eox-itemfilter-container",Gc);var Yc="Expected a function",Bo=NaN,Fc="[object Symbol]",Xc=/^\s+|\s+$/g,Zc=/^[-+]0x[0-9a-f]+$/i,Jc=/^0b[01]+$/i,Qc=/^0o[0-7]+$/i,eu=parseInt,tu=typeof et=="object"&&et&&et.Object===Object&&et,ru=typeof self=="object"&&self&&self.Object===Object&&self,nu=tu||ru||Function("return this")(),iu=Object.prototype,su=iu.toString,ou=Math.max,au=Math.min,ji=function(){return nu.Date.now()};function lu(t,e,r){var n,i,s,o,l,c,d=0,p=!1,y=!1,w=!0;if(typeof t!="function")throw new TypeError(Yc);e=Uo(e)||0,Ni(r)&&(p=!!r.leading,y="maxWait"in r,s=y?ou(Uo(r.maxWait)||0,e):s,w="trailing"in r?!!r.trailing:w);function m(Z){var fe=n,Ae=i;return n=i=void 0,d=Z,o=t.apply(Ae,fe),o}function _(Z){return d=Z,l=setTimeout(H,e),p?m(Z):o}function E(Z){var fe=Z-c,Ae=Z-d,Ce=e-fe;return y?au(Ce,s-Ae):Ce}function z(Z){var fe=Z-c,Ae=Z-d;return c===void 0||fe>=e||fe<0||y&&Ae>=s}function H(){var Z=ji();if(z(Z))return X(Z);l=setTimeout(H,E(Z))}function X(Z){return l=void 0,w&&n?m(Z):(n=i=void 0,o)}function F(){l!==void 0&&clearTimeout(l),d=0,n=c=i=l=void 0}function he(){return l===void 0?o:X(ji())}function te(){var Z=ji(),fe=z(Z);if(n=arguments,i=this,c=Z,fe){if(l===void 0)return _(c);if(y)return l=setTimeout(H,e),m(c)}return l===void 0&&(l=setTimeout(H,e)),o}return te.cancel=F,te.flush=he,te}function Ni(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function cu(t){return!!t&&typeof t=="object"}function uu(t){return typeof t=="symbol"||cu(t)&&su.call(t)==Fc}function Uo(t){if(typeof t=="number")return t;if(uu(t))return Bo;if(Ni(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Ni(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(Xc,"");var r=Jc.test(t);return r||Qc.test(t)?eu(t.slice(2),r?2:8):Zc.test(t)?Bo:+t}var du=lu;const Ln=Cn(du);function hu(t){const e=t.renderRoot.querySelector("input[type='text']");e.value="",kn(t.filterObject),t.requestUpdate()}function fu(t){const e=t.renderRoot.querySelector("input[type='text']");t.isValid=e.checkValidity(),t.filterObject.keys.forEach(r=>{t.filterObject.state[r]=e.value}),t.filterObject.dirty=!0,t.filterObject.stringifiedState=e.value,t.dispatchEvent(new CustomEvent("filter")),e.value===""&&t.reset()}function pu(t){if(t.filterObject=kn(t.filterObject),t.filterObject){const e=t.querySelector("tc-range-slider"),r=t.filterObject.min,n=t.filterObject.max;e.value1!==r&&(e.value1=r),e.value2!==n&&(e.value2=n)}t.requestUpdate()}function gu(t,e){const[r,n]=t.detail.values;(r!==e.filterObject.state.min||n!==e.filterObject.state.max)&&([e.filterObject.state.min,e.filterObject.state.max]=[r,n],e.filterObject.dirty=!0),e.filterObject.dirty&&(e.filterObject.stringifiedState=e.filterObject.format==="date"?`${Wr(r)} - ${Wr(n)}`:`${r} - ${n}`),e.dispatchEvent(new CustomEvent("filter")),r===e.filterObject.min&&n===e.filterObject.max?e.reset():e.requestUpdate()}function yu(t,e,r){const n=r.filterObject.format==="date",i=r.filterObject.state[t],s=n?Wr.unix(i):i;return Y`<div class="range-${e}">${s}</div>`}function bu(t){mu(-1,t),kn(t.filterObject),t.requestUpdate()}function mu(t,e){e.selectedItems=[],Hi(e),qo(e)}function zo(t,e){const r=e.selectedItems.indexOf(t);r>=0?e.selectedItems=e.selectedItems.filter((n,i)=>i!==r):e.type==="multiselect"?e.selectedItems=[...e.selectedItems,t]:(e.selectedItems=[t],e.showSuggestions=!1),Hi(e),qo(e)}function vu(t,e){e.query=t.target.value,e.showSuggestions=!0}function wu(t,e){switch(t.key){case"ArrowDown":e.highlightedIndex=Math.min(e.highlightedIndex+1,e.filteredSuggestions.length-1);break;case"ArrowUp":e.highlightedIndex=Math.max(e.highlightedIndex-1,0);break;case"Enter":e.highlightedIndex>=0&&zo(e.filteredSuggestions[e.highlightedIndex],e);break;case"Escape":e.showSuggestions=!1;break}}function xu(t,e){(t.has("suggestions")||t.has("query"))&&Hi(e)}function $u(t,e){var n;const r=((n=t.filterObject)==null?void 0:n.sort)||((i,s)=>i.localeCompare(s));return e.sort(r).map(i=>i)}function Hi(t){var r,n,i;let e;t.query&&(e=new Ct(t.suggestions,{threshold:.4}).search(t.query).map(o=>o.item)),t.filteredSuggestions=$u(t,e||t.suggestions),(r=t.filterObject)!=null&&r.filterKeys&&(t.filteredSuggestions=(n=t.filterObject)==null?void 0:n.filterKeys.map(s=>`${s}`),t.filterObject.state=(i=t.filterObject)==null?void 0:i.filterKeys.map(s=>`${s}`).reduce((s,o)=>(o in s||(s[o]=void 0),s),t.filterObject.state)),t.highlightedIndex=-1}function qo(t){Object.keys(t.filterObject.state).forEach(e=>{t.filterObject.state[e]=t.selectedItems.includes(e)}),t.filterObject.stringifiedState=Object.keys(t.filterObject.state).filter(e=>t.filterObject.state[e]).join(", ")||"",t.filterObject.dirty=t.filterObject.stringifiedState.length>0,t.dispatchEvent(new CustomEvent("filter")),t.requestUpdate()}function _u(t){kn(t.filterObject),t.renderRoot.querySelector("eox-itemfilter-spatial-filter").reset(),t.requestUpdate()}function Au(t){t.renderRoot.querySelector("#eox-map").innerHTML="",Wo(t)}function Mu(t,e){e.filterObject.state.mode=t;const r=new CustomEvent("filter",{detail:{[e.filterObject.key]:{}}});e.dispatchEvent(r)}function Wo(t){const e=t.renderRoot.querySelector("#eox-map");e.innerHTML===""&&(e.innerHTML='<eox-map part="map" style="height: 400px"></eox-map>');const r=t.geometry&&Su(t.geometry),n=Wc(t.geometry,r);t.eoxMap=t.renderRoot.querySelector("eox-map"),setTimeout(()=>{t.eoxMap.layers=n;const i=s=>{const o=new CustomEvent("filter",{detail:{geometry:{type:"Polygon",coordinates:s.getGeometry().clone().transform("EPSG:3857","EPSG:4326").getCoordinates()}}});t.dispatchEvent(o)};t.eoxMap.interactions.drawInteraction.on("drawend",s=>{i(s.feature),t.eoxMap.removeInteraction("drawInteraction")}),t.eoxMap.interactions.drawInteraction_modify.on("modifyend",s=>{i(s.features.getArray()[0])})},1e3)}function Su(t){return`data:text/json,${encodeURIComponent(JSON.stringify({type:"FeatureCollection",features:[{type:"Feature",properties:null,geometry:t}]}))}`}class Eu extends Ye{constructor(){super();Ze(this,jn,()=>{fu(this)});hn(this,"debouncedInputHandler",Ln(rt(this,jn),500,{leading:!0}));this.filterObject={},this.unstyled=!1,this.tabIndex=0,this.unstyled=!1}static get properties(){return{filterObject:{attribute:!1,type:Object},tabIndex:{attribute:!1,type:Number},unstyled:{type:Boolean},isValid:{state:!0,type:Boolean}}}reset(){hu(this)}createRenderRoot(){return this}render(){return Ke(this.filterObject,()=>{var r;return Y`
|
|
588
588
|
<style></style>
|
|
589
589
|
<div class="text-container">
|
|
590
590
|
<div class="text-container-wrapper">
|
|
@@ -605,23 +605,23 @@ eox-itemfilter-results li.highlighted {
|
|
|
605
605
|
<small class="error-validation"
|
|
606
606
|
>${this.filterObject.validation&&this.isValid===!1?this.filterObject.validation.message:""}</small
|
|
607
607
|
>
|
|
608
|
-
`})}}jn=new WeakMap,customElements.define("eox-itemfilter-text",
|
|
608
|
+
`})}}jn=new WeakMap,customElements.define("eox-itemfilter-text",Eu);function Cu(t,e,r){return t.filter(n=>{const i=n[r.config.aggregateResults];let s;return r.filters[r.config.aggregateResults]&&(s=Object.keys(r.filters[r.config.aggregateResults]).filter(l=>r.filters[r.config.aggregateResults].state[l])),(s!=null&&s.length?s.includes(e):!0)&&Array.isArray(i)?i.includes(e):i===e})}/**
|
|
609
609
|
* @license
|
|
610
610
|
* Copyright 2017 Google LLC
|
|
611
611
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
612
|
-
*/const Vo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ko=t=>(...e)=>({_$litDirective$:t,values:e});class Go{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this.
|
|
612
|
+
*/const Vo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ko=t=>(...e)=>({_$litDirective$:t,values:e});class Go{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}}/**
|
|
613
613
|
* @license
|
|
614
614
|
* Copyright 2020 Google LLC
|
|
615
615
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
616
|
-
*/const{I:
|
|
616
|
+
*/const{I:ku}=Ha,Yo=()=>document.createComment(""),Vr=(t,e,r)=>{var s;const n=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(r===void 0){const o=n.insertBefore(Yo(),i),l=n.insertBefore(Yo(),i);r=new ku(o,l,t,t.options)}else{const o=r._$AB.nextSibling,l=r._$AM,c=l!==t;if(c){let d;(s=r._$AQ)==null||s.call(r,t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==l._$AU&&r._$AP(d)}if(o!==i||c){let d=r._$AA;for(;d!==o;){const p=d.nextSibling;n.insertBefore(d,i),d=p}}}return r},Wt=(t,e,r=t)=>(t._$AI(e,r),t),Lu={},Pu=(t,e=Lu)=>t._$AH=e,Tu=t=>t._$AH,Ii=t=>{var n;(n=t._$AP)==null||n.call(t,!1,!0);let e=t._$AA;const r=t._$AB.nextSibling;for(;e!==r;){const i=e.nextSibling;e.remove(),e=i}};/**
|
|
617
617
|
* @license
|
|
618
618
|
* Copyright 2017 Google LLC
|
|
619
619
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
620
|
-
*/const Fo=(t,e,r)=>{const n=new Map;for(let i=e;i<=r;i++)n.set(t[i],i);return n},
|
|
620
|
+
*/const Fo=(t,e,r)=>{const n=new Map;for(let i=e;i<=r;i++)n.set(t[i],i);return n},Ou=Ko(class extends Go{constructor(t){if(super(t),t.type!==Vo.CHILD)throw Error("repeat() can only be used in text expressions")}dt(t,e,r){let n;r===void 0?r=e:e!==void 0&&(n=e);const i=[],s=[];let o=0;for(const l of t)i[o]=n?n(l,o):o,s[o]=r(l,o),o++;return{values:s,keys:i}}render(t,e,r){return this.dt(t,e,r).values}update(t,[e,r,n]){const i=Tu(t),{values:s,keys:o}=this.dt(e,r,n);if(!Array.isArray(i))return this.ut=o,s;const l=this.ut??(this.ut=[]),c=[];let d,p,y=0,w=i.length-1,m=0,_=s.length-1;for(;y<=w&&m<=_;)if(i[y]===null)y++;else if(i[w]===null)w--;else if(l[y]===o[m])c[m]=Wt(i[y],s[m]),y++,m++;else if(l[w]===o[_])c[_]=Wt(i[w],s[_]),w--,_--;else if(l[y]===o[_])c[_]=Wt(i[y],s[_]),Vr(t,c[_+1],i[y]),y++,_--;else if(l[w]===o[m])c[m]=Wt(i[w],s[m]),Vr(t,i[y],i[w]),w--,m++;else if(d===void 0&&(d=Fo(o,m,_),p=Fo(l,y,w)),d.has(l[y]))if(d.has(l[w])){const E=p.get(o[m]),z=E!==void 0?i[E]:null;if(z===null){const H=Vr(t,i[y]);Wt(H,s[m]),c[m]=H}else c[m]=Wt(z,s[m]),Vr(t,i[y],z),i[E]=null;m++}else Ii(i[w]),w--;else Ii(i[y]),y++;for(;m<=_;){const E=Vr(t,c[_+1]);Wt(E,s[m]),c[m++]=E}for(;y<=w;){const E=i[y++];E!==null&&Ii(E)}return this.ut=o,Pu(t,c),St}});/**
|
|
621
621
|
* @license
|
|
622
622
|
* Copyright 2017 Google LLC
|
|
623
623
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
624
|
-
*/class
|
|
624
|
+
*/class Bi extends Go{constructor(e){if(super(e),this.it=ge,e.type!==Vo.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ge||e==null)return this._t=void 0,this.it=e;if(e===St)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}}Bi.directiveName="unsafeHTML",Bi.resultType=1;const Ui=Ko(Bi);function Ru(t,e){return Y`
|
|
625
625
|
<details
|
|
626
626
|
class="details-results"
|
|
627
627
|
@toggle=${e.handleAccordion}
|
|
@@ -641,68 +641,66 @@ eox-itemfilter-results li.highlighted {
|
|
|
641
641
|
</details>
|
|
642
642
|
`}function Xo(t,e){const r=e.results,n=t?e.aggregateResults(r,t):r,i=e.config,s=o=>{var l;return((l=e.selectedResult)==null?void 0:l[i.idProperty])===o[i.idProperty]?"highlighted":ge};return Y`
|
|
643
643
|
<ul>
|
|
644
|
-
${
|
|
644
|
+
${Ou(n,o=>o.id,o=>Y`
|
|
645
645
|
<li class=${s(o)}>
|
|
646
646
|
<span
|
|
647
647
|
id="${o.id}"
|
|
648
648
|
@click=${()=>{e.selectedResult===o?e.selectedResult=null:e.selectedResult=o,e.dispatchEvent(new CustomEvent("result",{detail:e.selectedResult}))}}
|
|
649
649
|
>
|
|
650
|
-
${
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
>
|
|
664
|
-
`)}
|
|
650
|
+
${Ke(i.subTitleProperty,()=>Y`
|
|
651
|
+
<div class="title-container">
|
|
652
|
+
<span class="title"
|
|
653
|
+
>${Ui(o[i.titleProperty])}</span
|
|
654
|
+
>
|
|
655
|
+
<span class="subtitle"
|
|
656
|
+
>${Ui(o[i.subTitleProperty])}</span
|
|
657
|
+
>
|
|
658
|
+
</div>
|
|
659
|
+
`,()=>Y`
|
|
660
|
+
<span class="title"
|
|
661
|
+
>${Ui(o[i.titleProperty])}</span
|
|
662
|
+
>
|
|
665
663
|
`)}
|
|
666
664
|
</span>
|
|
667
665
|
</li>
|
|
668
666
|
`)}
|
|
669
667
|
</ul>
|
|
670
|
-
`}class
|
|
668
|
+
`}class Du extends Ye{constructor(){super();Ze(this,Kt);this.config=null,this.filters={},this.resultAggregation=[],this.selectedResult=null}static get properties(){return{config:{attribute:!1,type:Object},results:{state:!0,type:Object},filters:{state:!0,type:Object},resultAggregation:{attribute:!1,type:Array},selectedResult:{state:!0,type:Object}}}aggregateResults(r,n){return Cu(r,n,this)}createRenderRoot(){return this}handleAccordion(r){Io(r,this.config,this)}render(){return Y`
|
|
671
669
|
<section id="section-results">
|
|
672
670
|
<div>
|
|
673
671
|
<h6 class="main-heading">Results</h6>
|
|
674
672
|
</div>
|
|
675
673
|
<div id="container-results" class="scroll">
|
|
676
|
-
${
|
|
674
|
+
${Ke(this.results.length<1,()=>Y`<small class="no-results">No matching items</small>`,()=>ge)}
|
|
677
675
|
<ul id="results" part="results">
|
|
678
|
-
${
|
|
679
|
-
${le(this,Kt,
|
|
680
|
-
</div>`,()=>le(this,Kt,
|
|
676
|
+
${Ke(this.config.aggregateResults,()=>pn(this.resultAggregation.filter(r=>this.aggregateResults(this.results,r).length),r=>Y`${Ke(this.aggregateResults(this.results,r).length===1&&this.config.autoSpreadSingle,()=>Y`<div style="margin-left: -8px">
|
|
677
|
+
${le(this,Kt,Ms).call(this,r)}
|
|
678
|
+
</div>`,()=>le(this,Kt,ya).call(this,r))}`),()=>le(this,Kt,Ms).call(this))}
|
|
681
679
|
</ul>
|
|
682
680
|
</div>
|
|
683
681
|
</section>
|
|
684
|
-
`}}Kt=new WeakSet,
|
|
682
|
+
`}}Kt=new WeakSet,Ms=function(r){return Xo(r,this)},ya=function(r){return Ru(r,this)},customElements.define("eox-itemfilter-results",Du);const ju=`input[type="checkbox"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}input[type="checkbox"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-blank-outline%3C/title%3E%3Cpath d='M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="checkbox"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Echeckbox-marked%3C/title%3E%3Cpath d='M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z' /%3E%3C/svg%3E");}`,Nu=`input[type="radio"] { appearance: none; -webkit-appearance: none; margin: 0; cursor: pointer; display: flex; flex-direction: row; align-items: center; width: 24px; height: 24px;}label span { font-size: small;}input[type="radio"]:after { display: block; content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-blank%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z' /%3E%3C/svg%3E"); width: 20px; height: 20px; margin-right: 4px;}input[type="radio"]:checked:after { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eradiobox-marked%3C/title%3E%3Cpath d='M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z' /%3E%3C/svg%3E");}`;class Zo extends Ye{constructor(){super();Ze(this,Pt);hn(this,"debouncedInputHandler",Ln(le(this,Pt,va),500,{leading:!0}));this.filterObject={},this.suggestions=[],this.selectedItems=[],this.query="",this.showSuggestions=!1,this.highlightedIndex=-1,this.filteredSuggestions=[],this.type="select",this.unstyled=!1,this.tabIndex=0,this.inlineMode=!1}updated(r){xu(r,this)}reset(){bu(this)}firstUpdated(){this.filterObject.state&&(this.selectedItems=Object.keys(this.filterObject.state).map(r=>this.filterObject.state[r]?r:null).filter(r=>!!r),this.filterObject.stringifiedState=this.selectedItems.join(", ")||"",this.requestUpdate())}render(){const r=this.type.includes("multi")?"checkbox":"radio",n=this.filteredSuggestions.length>5?"select-overflow":ge;return Y`
|
|
685
683
|
<style>
|
|
686
|
-
${!this.unstyled&&
|
|
684
|
+
${!this.unstyled&&Ur}
|
|
685
|
+
${!this.unstyled&&ju}
|
|
687
686
|
${!this.unstyled&&Nu}
|
|
688
|
-
${!this.unstyled&&Hu}
|
|
689
687
|
</style>
|
|
690
|
-
${
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
688
|
+
${Ke(this.suggestions.length>10,()=>Y`<div class="autocomplete-container">
|
|
689
|
+
<div class="autocomplete-container-wrapper">
|
|
690
|
+
<input
|
|
691
|
+
autocomplete="off"
|
|
692
|
+
tabindex=${this.tabIndex}
|
|
693
|
+
class="autocomplete-input"
|
|
694
|
+
type="text"
|
|
695
|
+
.value=${this.query}
|
|
696
|
+
placeholder="${this.filterObject.placeholder||""}"
|
|
697
|
+
@input=${le(this,Pt,ba)}
|
|
698
|
+
@keydown=${le(this,Pt,ma)}
|
|
699
|
+
@blur=${()=>this.showSuggestions=!1}
|
|
700
|
+
@focus=${()=>this.showSuggestions=!0}
|
|
701
|
+
/>
|
|
702
|
+
</div>
|
|
703
|
+
</div>`)}
|
|
706
704
|
<div class="select-container ${n}">
|
|
707
705
|
<ul class="${this.type}">
|
|
708
706
|
${this.filteredSuggestions.map(i=>Y`
|
|
@@ -725,8 +723,8 @@ eox-itemfilter-results li.highlighted {
|
|
|
725
723
|
`)}
|
|
726
724
|
</ul>
|
|
727
725
|
</div>
|
|
728
|
-
`}}Pt=new WeakSet,ma=function(r){wu(r,this)},va=function(r){xu(r,this)},wa=function(r){Uo(r,this)},hn(Zo,"properties",{filterObject:{attribute:!1,type:Object},suggestions:{attribute:!1,type:Array},selectedItems:{state:!0,type:Array},query:{state:!0,type:String},showSuggestions:{state:!0,type:Boolean},highlightedIndex:{state:!0,type:Number},filteredSuggestions:{state:!0,type:Array},type:{attribute:!0,type:String},unstyled:{type:Boolean},tabIndex:{attribute:!1,type:Number},inlineMode:{attribute:"inline-mode",type:Boolean}}),customElements.define("eox-itemfilter-select",Zo),(()=>{var t=Object.defineProperty,e=Math.pow,r=(u,g,$)=>g in u?t(u,g,{enumerable:!0,configurable:!0,writable:!0,value:$}):u[g]=$,n=(u,g,$)=>(r(u,typeof g!="symbol"?g+"":g,$),$),i=(u,g)=>` ${g&&g.length>0?g.map($=>`<link rel="stylesheet" href="${$}" />`).join(""):""} <style> ${u} </style> <div class="range-slider-box"> <div class="row"> <div id="range-slider" class="range-slider"> <div class="container"> <div class="panel"></div> <div class="panel-fill"></div> <div class="container"> <div class="pointer" tabindex="0" role="slider"> <div class="pointer-shape"></div> </div> </div> </div> </div> </div> </div>`,s=":host{--width:300px;--height:.25rem;--opacity:.4;--panel-bg:#cbd5e1;--panel-bg-hover:#94a3b8;--panel-bg-fill:#475569;--panel-bg-border-radius:1rem;--pointer-width:1rem;--pointer-height:1rem;--pointer-bg:#fff;--pointer-bg-hover:#dcdcdc;--pointer-bg-focus:#dcdcdc;--pointer-shadow:0 0 2px rgba(0,0,0,0.8);--pointer-shadow-hover:0 0 2px #000;--pointer-shadow-focus:var(--pointer-shadow-hover);--pointer-border:1px solid hsla(0,0%,88%,0.5);--pointer-border-hover:1px solid #94a3b8;--pointer-border-focus:var(--pointer-border-hover);--pointer-border-radius:100%;--animate-onclick:.3s}:host{max-width:100%}.range-slider-box{display:flex;position:relative;flex-direction:column}.range-slider{position:relative;width:var(--width,100%);height:var(--height,0.25rem);touch-action:none;max-width:100%;box-sizing:border-box;cursor:pointer}.row{width:100%;display:flex;align-items:center}.range-slider.disabled{opacity:var(--opacity,0.4);cursor:default}.pointer.disabled{-webkit-filter:brightness(0.8);filter:brightness(0.8);cursor:default}.range-slider *{box-sizing:border-box}.container{position:absolute;width:100%;height:100%}.panel{position:absolute;z-index:10;width:100%;height:100%;background:var(--panel-bg,#2d4373);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;transition:.3s all ease}.panel-fill{background:var(--panel-bg-fill,#000);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;height:100%;position:absolute;z-index:10}.panel:hover{background:var(--panel-bg-hover,#5f79b7)}.disabled .panel:hover{background:var(--panel-bg,#5f79b7)}.pointer{position:absolute;z-index:20;outline:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;box-shadow:var(--pointer-shadow);border:var(--pointer-border);border-radius:var(--pointer-border-radius,100%);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pointer-width,15px);height:var(--pointer-height,15px);transition:.3s all ease}.pointer-shape:hover{background:var(--pointer-bg-hover,#fff);background-size:contain;border:var(--pointer-border-hover);box-shadow:var(--pointer-shadow-hover)}.disabled .pointer-shape:hover{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.pointer:focus .pointer-shape{background:var(--pointer-bg-focus,#fff);background-size:contain;border:var(--pointer-border-focus);box-shadow:var(--pointer-shadow-focus)}.disabled .pointer:focus .pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.type-vertical .range-slider{--width:.25rem;--height:300px;max-height:100%}.type-vertical .range-slider .pointer{left:50%}.type-vertical .range-slider .panel-fill{width:100%}.type-vertical.range-slider-box{flex-direction:row}.type-vertical .row{flex-direction:column}.animate-on-click .pointer,.animate-on-click .panel-fill{transition:all var(--animate-onclick)}.range-dragging .panel-fill{cursor:move}",o="pointers-overlap",l="pointers-min-distance",c="pointers-max-distance",h="range-dragging",p="data",y="min",w="max",m="step",A="round",E="type",z="theme",H="rtl",X="btt",F="disabled",de="keyboard-disabled",te="mousewheel-disabled",Z="slider-width",fe="slider-height",Ae="slider-radius",Ce="slider-bg",ye="slider-bg-hover",ie="slider-bg-fill",Ge="pointer-width",Ft="pointer-height",D="pointer-radius",S="pointer-bg",M="pointer-bg-hover",j="pointer-bg-focus",k="pointer-shadow",K="pointer-shadow-hover",G="pointer-shadow-focus",he="pointer-border",$e="pointer-border-hover",Se="pointer-border-focus",ke="animate-onclick",Be="css-links",Pe="vertical",Ue="horizontal",se=(u,g,$,v,C)=>{let B=g-u;return B===0?$:(v-$)*(C-u)/B+$},Te=u=>!isNaN(parseFloat(u))&&isFinite(u),re=(u,g)=>Te(u)?Number(u):g,Oe=(u,g)=>g===0?0:Math.round(u/g)*g,ft=(u,g=1/0)=>{if(g===1/0)return u;let $=e(10,g);return Math.round(u*$)/$},_e=u=>u==null?!1:typeof u=="boolean"?u:u.trim().toLowerCase()==="true",Gi=(u,g)=>{u.dispatchEvent(new CustomEvent("onPointerClicked",{detail:{$pointer:g}}))},In=(u,g)=>{u.dispatchEvent(new CustomEvent("onMouseDown",{detail:{nativeEvent:g}}))},Bn=(u,g)=>{u.dispatchEvent(new CustomEvent("onMouseUp",{detail:{nativeEvent:g}}))},Un=(u,g)=>{u.dispatchEvent(new CustomEvent("onKeyDown",{detail:{nativeEvent:g}}))},Yi=(u,g)=>{if(!g||g.length<=0)return;let $=g.map(C=>Te(C)?re(C,C):C),v={values:$||[]};v.value=$[0],v.value0=$[0],v.value1=$[0];for(let C=1;C<$.length;C++)v[`value${C+1}`]=$[C];u.dispatchEvent(new CustomEvent("change",{detail:v}))},Gr=(u,g,$)=>{let v=0,C,B,U,L,T=!1,J=(q,be,Re,Le,Me,we)=>{let ze=v;Re!==void 0&&q>Re&&(q=Re),be!==void 0&&q<be&&(q=be),v=q;let qe=v;return(Le===Pe&&we||Le===Ue&&Me)&&(qe=100-qe),Le===Pe?g.style.top=`${qe}%`:g.style.left=`${qe}%`,ze!==v},ne=q=>q===g||g.contains(q),I=(q,be,Re,Le)=>{C=q,B=be,U=Re,L=Le},oe=q=>{T=q,g.classList.toggle("disabled",T),T?g.setAttribute("aria-disabled","true"):g.hasAttribute("aria-disabled")&&g.removeAttribute("aria-disabled")},Fe=(q,be)=>{be==null?g.removeAttribute(q):g.setAttribute(q,be)},je=q=>g.getAttribute(q),N=q=>{if(!T){switch(q.key){case"ArrowLeft":{q.preventDefault(),typeof C=="function"&&C($);break}case"ArrowRight":{q.preventDefault(),typeof B=="function"&&B($);break}case"ArrowUp":{q.preventDefault(),typeof U=="function"&&U($);break}case"ArrowDown":{q.preventDefault(),typeof L=="function"&&L($);break}}Un(u,q)}},ee=()=>{T||Gi(u,g)};return g.className=`pointer pointer-${$}`,g.addEventListener("keydown",N),g.addEventListener("click",ee),{$pointer:g,get percent(){return v},get disabled(){return T},set disabled(q){oe(q)},updatePosition:J,isClicked:ne,setCallbacks:I,setAttr:Fe,getAttr:je,destroy:()=>{g.removeEventListener("keydown",N),g.removeEventListener("click",ee),g.remove()}}},Fi=u=>{if(u==null)return;if(Array.isArray(u))return u;if(u.trim()==="")return;let g=u.split(","),$=[],v=!0;for(let C=0;C<g.length;C++){let B=g[C].trim();B!==""&&($.push(B),Te(B)||(v=!1))}return v?$.map(C=>Number(C)):$},Xi=(u,g)=>g?g.findIndex($=>$===u||$.toString().trim()===u.toString().trim()):-1,Zi=u=>({updatePosition:(g,$,v,C)=>{if($.length<=0)return;let B=$.length===1,U=$[0],L=$[$.length-1];g===Pe?(u.style.removeProperty("width"),u.style.removeProperty("right"),u.style.removeProperty("left"),B?u.style.height=`${U}%`:u.style.height=`${Math.abs(U-L)}%`,C?(u.style.bottom="0%",B?u.style.top="auto":u.style.top=`${Math.min(100-L,100-U)}%`):(u.style.bottom="auto",B?u.style.top="0%":u.style.top=`${Math.min(U,L)}%`)):(u.style.removeProperty("height"),u.style.removeProperty("top"),u.style.removeProperty("bottom"),B?u.style.width=`${U}%`:u.style.width=`${Math.abs(U-L)}%`,v?(u.style.right="0%",B?u.style.left="auto":u.style.left=`${Math.min(100-L,100-U)}%`):(u.style.right="auto",B?u.style.left="0%":u.style.left=`${Math.min(U,L)}%`))}}),zn="--animate-onclick",Ji="--width",Yr="--height",Qi="--panel-bg-border-radius",es="--panel-bg",ts="--panel-bg-hover",rs="--panel-bg-fill",ns="--pointer-width",yr="--pointer-height",Fr="--pointer-border-radius",qn="--pointer-bg",Wn="--pointer-bg-hover",lt="--pointer-bg-focus",Tt="--pointer-shadow",is="--pointer-shadow-hover",br="--pointer-shadow-focus",Vn="--pointer-border",ss="--pointer-border-hover",os="--pointer-border-focus",Xt=(u,g,$)=>{let v=new Map;for(let C of u.attributes){let B=C.nodeName.trim().toLowerCase();if(!g.test(B))continue;let U=B.replace(/\D/g,"").trim(),L=U===""||U==="0"||U==="1"?0:re(U,0)-1,T=$&&typeof $=="function"?$(C.value):C.value;v.set(L,T)}return v},as=u=>{if(!u)return null;let g=u.getAttribute(Be);if(!g)return null;let $=g.split(";"),v=[];for(let C of $)C.trim()!==""&&v.push(C.trim());return v},mr=[[Ji,Z,"sliderWidth",null],[Yr,fe,"sliderHeight",null],[Qi,Ae,"sliderRadius",null],[es,Ce,"sliderBg",null],[ts,ye,"sliderBgHover",null],[rs,ie,"sliderBgFill",null],[ns,Ge,"pointer#Width",/^pointer([0-9]*)-width$/],[yr,Ft,"pointer#Height",/^pointer([0-9]*)-height$/],[Fr,D,"pointer#Radius",/^pointer([0-9]*)-radius$/],[qn,S,"pointer#Bg",/^pointer([0-9]*)-bg$/],[Wn,M,"pointer#BgHover",/^pointer([0-9]*)-bg-hover$/],[lt,j,"pointer#BgFocus",/^pointer([0-9]*)-bg-focus$/],[Tt,k,"pointer#Shadow",/^pointer([0-9]*)-shadow$/],[is,K,"pointer#ShadowHover",/^pointer([0-9]*)-shadow-hover$/],[br,G,"pointer#ShadowFocus",/^pointer([0-9]*)-shadow-focus$/],[Vn,he,"pointer#Border",/^pointer([0-9]*)-border$/],[ss,$e,"pointer#BorderHover",/^pointer([0-9]*)-border-hover$/],[os,Se,"pointer#BorderFocus",/^pointer([0-9]*)-border-focus$/]],Zt=(u,g,$)=>{let v=null,C=[],B=new Map,U=(N,ee=g)=>{let q=[...ee.classList];for(let be of q)be.startsWith(N)&&g.classList.remove(be)},L=()=>{U("shape");let N=g.querySelectorAll(".pointer");for(let ee of N)U("shape",ee)},T=N=>{v=N,U("theme-"),typeof N=="string"&&g.classList.add(`theme-${N}`)},J=()=>{if(L(),!(C.length<=0)){g.classList.add("shape",`shape-${C[0]}`);for(let N=1;N<C.length;N++){let ee=C[N];if(!ee)continue;let q=g.querySelector(`.pointer-${N}`);!q||q.classList.add("shape",`shape-${ee}`)}}},ne=(N,ee)=>{C[N]=ee,J()},I=()=>{L();let N=Xt(u,/^pointer([0-9]*)-shape$/);if(!(N.size<=0)){for(let ee of N){let q=ee[0];C[q]=ee[1]}J()}},oe=(N,ee)=>`${N}-${ee}`,Fe=(N,ee,q)=>{let be=$[q];if(!be)return;let Re=q===0?g:be.$pointer;if(ee==null){B.has(oe(N,q))&&B.delete(oe(N,q)),Re.style.removeProperty(N);return}B.set(oe(N,q),ee),Re.style.setProperty(N,ee)},je=(N,ee)=>B.get(oe(N,ee));return(()=>{for(let N of mr){let[ee,q,be,Re]=N;if(Re){let Me=Xt(u,Re);for(let we of Me){let ze=we[0],qe=we[1];Fe(ee,qe,ze)}}else{let Me=u.getAttribute(q);Fe(ee,Me,0)}let Le=[];if(be.indexOf("#")===-1)Le.push([be,0]);else{Le.push([be.replace("#",""),0]),Le.push([be.replace("#","0"),0]),Le.push([be.replace("#","1"),0]);for(let Me=1;Me<$.length;Me++)Le.push([be.replace("#",(Me+1).toString()),Me])}for(let Me of Le)try{let we=Me[0],ze=Me[1];Object.prototype.hasOwnProperty.call(u,we)||Object.defineProperty(u,we,{get(){return je(ee,ze)},set:qe=>{Fe(ee,qe,ze)}})}catch(we){console.error(we)}}T(u.getAttribute(z)),I()})(),{setStyle:Fe,getStyle:je,get theme(){return v},set theme(N){T(N)},get pointerShapes(){return C},setPointerShape:ne}},pt="animate-on-click",vr="range-dragging",Xr=(u,g,$,v)=>{let C=[],B=ne=>{for(let I of C)I.update&&typeof I.update=="function"&&I.update(ne)},U=()=>{for(let ne of C)ne.destroy&&typeof ne.destroy=="function"&&ne.destroy()},L=(ne,I)=>{for(let oe of C)oe.onAttrChange&&typeof oe.onAttrChange=="function"&&oe.onAttrChange(ne,I)},T=ne=>{if(ne.gettersAndSetters){for(let I of ne.gettersAndSetters)if(!(!I.name||!I.attributes))try{Object.prototype.hasOwnProperty.call(u,I.name)||Object.defineProperty(u,I.name,I.attributes)}catch(oe){console.error("defineSettersGetters error:",oe)}}},J=ne=>{var I;if(!ne.css)return;let oe=(I=u.shadowRoot)==null?void 0:I.querySelector("style");!oe||(oe.innerHTML+=ne.css)};return{init:()=>{if(window.tcRangeSliderPlugins)for(let ne of window.tcRangeSliderPlugins){let I=ne();C.push(I),I.init&&typeof I.init=="function"&&(I.init(u,g,$,v),T(I),J(I))}},update:B,onAttrChange:L,destroy:U}},Jt=10,Kn=20,ls=(u,g)=>{let $=new Map,v=/^value([0-9]*)$/;for(let L of u.attributes){let T=L.nodeName.trim().toLowerCase();if(!v.test(T))continue;let J=T.replace("value","").trim(),ne=J===""||J==="0"||J==="1"?0:re(J,0)-1,I=Te(L.value)?re(L.value,0):L.value;$.set(ne,I)}let C=Math.max(...Array.from($.keys())),B=[];B.push([Gr(u,g,0),$.get(0)]);let U=g;for(let L=1;L<=C;L++){let T=g.cloneNode(!0);U.after(T),U=T,B.push([Gr(u,T,L),$.get(L)])}return B},Gn=(u,g,$,v,C,B,U)=>{try{Object.defineProperty(u,v,{configurable:!0,get(){if(!g)return;let L=g.pointers[$];if(!L)return;let T=g.getTextValue(L.percent);return Te(T)?re(T,T):T},set:L=>{g.pointers[$]?g==null||g.setValue(L,$):g==null||g.addPointer(L)}}),Object.defineProperty(u,C,{configurable:!0,get(){var L,T;return(T=(L=g==null?void 0:g.pointers[$])==null?void 0:L.getAttr("aria-label"))!=null?T:void 0},set:L=>{!g||g.setAriaLabel($,L)}}),Object.defineProperty(u,B,{configurable:!0,get(){var L,T;return(T=(L=g==null?void 0:g.styles)==null?void 0:L.pointerShapes[$])!=null?T:null},set:L=>{!g||!g.styles||g.styles.setPointerShape($,L)}}),Object.defineProperty(u,U,{configurable:!0,get(){var L;return(L=g==null?void 0:g.pointers[$].disabled)!=null?L:!1},set:L=>{if(!g)return;let T=g==null?void 0:g.pointers[$];!T||(T.disabled=L)}})}catch(L){console.error(L)}},cs=(u,g)=>{let $=[["value","ariaLabel","pointerShape","pointerDisabled",0],["value0","ariaLabel0","pointerShape0","pointer0Disabled",0],["value1","ariaLabel1","pointerShape1","pointer1Disabled",0]];for(let v=2;v<Jt;v++)$.push([`value${v}`,`ariaLabel${v}`,`pointer${v}Shape`,`pointer${v}Disabled`,v-1]);for(let v of $)Gn(u,g,v[4],v[0],v[1],v[2],v[3])},Yn=(u,g,$)=>{var v;let C=(v=$.shadowRoot)==null?void 0:v.querySelector(".container");if(C)for(let B of u)g?C.prepend(B.$pointer):C.append(B.$pointer)},wr=(u,g)=>{if(!(!g||u.length<=1)){for(let $ of u)$.$pointer.style.zIndex=Kn.toString();g.$pointer.style.zIndex=(Kn*2).toString()}},Qt=0,Ot=100,Ye=2,Fn="0.3s",us=(u,g,$)=>{let v=$.map(f=>f[0]),C=null,B=null,U=null,L=null,T=Qt,J=Ot,ne,I,oe=Ue,Fe=Ye,je=!1,N=!1,ee=!1,q=0,be=1/0,Re=!1,Le,Me,we=!1,ze=!1,qe=!1,gt=Fn,Xn=[],Jr=f=>{we||(f.preventDefault&&f.preventDefault(),vt(f),window.addEventListener("mousemove",vt),window.addEventListener("mouseup",xr),In(u,f))},xr=f=>{we||(Le=void 0,Me=void 0,window.removeEventListener("mousemove",vt),window.removeEventListener("mouseup",xr),gt&&g.classList.add(pt),Bn(u,f))},fs=(f,x)=>{if(v.length<=0)return;if(v.length===1)return v[0].isClicked(f)&>&&g.classList.remove(pt),v[0];let O=gs(f);if(Re){let ae=x,Ke=rr(ae);Ke!==void 0&&(ae=Oe(ae,Ke)),O?(Le=ae,Me=0,gt&&g.classList.remove(pt)):Le!==void 0&&(Me=ae-Le,Le=ae)}if(!ps(f)&&!O){for(let ae of v)if(!(!ae.isClicked(f)||ae.disabled))return gt&&g.classList.remove(pt),ae;for(let ae of v)if(C===ae)return ae}let Q=1/0,pe=null;for(let ae of v){if(ae.disabled)continue;let Ke=Math.abs(x-ae.percent);Ke<Q&&(Q=Ke,pe=ae)}return pe},$r=()=>v.findIndex(f=>C===f&&!f.disabled),vt=f=>{let x;if(oe===Pe){let{height:Q,top:pe}=g.getBoundingClientRect(),ae=f.type.indexOf("mouse")!==-1?f.clientY:f.touches[0].clientY;x=Math.min(Math.max(0,ae-pe),Q)*100/Q}else{let{width:Q,left:pe}=g.getBoundingClientRect(),ae=f.type.indexOf("mouse")!==-1?f.clientX:f.touches[0].clientX;x=Math.min(Math.max(0,ae-pe),Q)*100/Q}if((je||N)&&(x=100-x),C=fs(f.target,x),C&&wr(v,C),Re&&v.length>1&&Me!==void 0){let Q=v[0],pe=v[v.length-1],ae=Q.percent+Me<0,Ke=pe.percent+Me>100;if(ae||Ke)return;for(let At=0;At<v.length;At++)De(At,v[At].percent+Me);return}let O=$r();O!==-1&&(De(O,x),C==null||C.$pointer.focus())},_r=f=>{if(we||document.activeElement!==u||C!=null&&C.disabled)return;f.stopPropagation(),f.preventDefault();let x=f.deltaY<0,O=je||N,Q=x?!O:O,pe=$r();pe!==-1&&(Q?er(pe,v[pe].percent):tr(pe,v[pe].percent))},Zn=f=>{we||ze||(oe===Pe?N?De(f,100):De(f,0):je?tr(f,v[f].percent):er(f,v[f].percent))},Jn=f=>{we||ze||(oe===Pe?N?De(f,0):De(f,100):je?er(f,v[f].percent):tr(f,v[f].percent))},Qn=f=>{we||ze||(oe===Pe?N?tr(f,v[f].percent):er(f,v[f].percent):je?De(f,100):De(f,0))},ei=f=>{we||ze||(oe===Pe?N?er(f,v[f].percent):tr(f,v[f].percent):je?De(f,0):De(f,100))},ps=f=>f.classList.contains("panel"),gs=f=>f.classList.contains("panel-fill"),er=(f,x)=>{if(x===void 0)return;let O=rr(x);O==null&&(O=1),x-=O,x<0&&(x=0),De(f,x)},tr=(f,x)=>{if(x===void 0)return;let O=rr(x);O==null&&(O=1),x+=O,x>100&&(x=100),De(f,x)},wt=()=>{!L||L.update({percents:ri(),values:ni(),$pointers:en(),min:nr(),max:ii(),data:tn(),step:Qr(),round:Mr(),type:rn(),textMin:Ar(),textMax:xt(),rightToLeft:ct(),bottomToTop:sn(),pointersOverlap:sr(),pointersMinDistance:Sr(),pointersMaxDistance:nn(),rangeDragging:tt(),disabled:on(),keyboardDisabled:ir(),mousewheelDisabled:Cr()})},ti=()=>{wt()},ys=f=>{if(!(ee||v.length<=1||J===T))if(f===0){let x=be*100/(J-T);return Math.max(0,v[f+1].percent-x)}else{let x=q*100/(J-T);return Math.min(v[f-1].percent+x,100)}},bs=f=>{if(!(ee||v.length<=1||J===T))if(f===v.length-1){let x=be*100/(J-T);return Math.min(v[f-1].percent+x,100)}else{let x=q*100/(J-T);return Math.max(0,v[f+1].percent-x)}},rr=f=>{let x;if(typeof ne=="function"){let O=se(0,100,T,J,f);x=ne(O,f)}else x=ne;if(Te(x)){let O=J-T;return x=O===0?0:x*100/O,x}},Rt=f=>{if(f===void 0)return;let x=se(0,100,T,J,f);return I!==void 0?I[Math.round(x)]:ft(x,Fe)},Ar=()=>I!==void 0?I[T]:T,xt=()=>I!==void 0?I[J]:J,Qr=()=>ne,Dt=f=>{var x;return f<=0||ee?Ar():(x=Rt(v[f-1].percent))!=null?x:""},yt=f=>{var x;return v.length<=1||f>=v.length-1||ee?xt():(x=Rt(v[f+1].percent))!=null?x:""},ri=()=>v.map(f=>f.percent),ni=()=>v.map(f=>Rt(f.percent)),en=()=>v.map(f=>f.$pointer),nr=()=>T,ii=()=>J,tn=()=>I,rn=()=>oe,Mr=()=>Fe,Sr=()=>q,nn=()=>be,Er=f=>Xn[f],ct=()=>je,sn=()=>N,on=()=>we,ir=()=>ze,Cr=()=>qe,sr=()=>ee,tt=()=>Re,De=(f,x)=>{if(x===void 0)return;let O=rr(x);O!==void 0&&(x=Oe(x,O));let Q=v[f];if(!Q)return;let pe=Q.updatePosition(x,ys(f),bs(f),oe,je,N);B==null||B.updatePosition(oe,v.map(ae=>ae.percent),je,N),wt();for(let ae of v){let Ke=Rt(ae.percent);Ke!==void 0&&(ae.setAttr("aria-valuenow",Ke.toString()),ae.setAttr("aria-valuetext",Ke.toString()))}an(),pe&&Yi(u,v.map(ae=>Rt(ae.percent)))},st=()=>{for(let f=0;f<v.length;f++)De(f,v[f].percent)},si=(f,x)=>{T=I!==void 0?0:re(f,Qt),J=I!==void 0?I.length-1:re(x,Ot),$t(T),_t(J)},an=()=>{var f,x;for(let O=0;O<v.length;O++){let Q=v[O];Q.setAttr("aria-valuemin",((f=Dt(O))!=null?f:"").toString()),Q.setAttr("aria-valuemax",((x=yt(O))!=null?x:"").toString())}},$t=f=>{T=re(f,Qt),T>J&&(J=T+Ot),st()},_t=f=>{J=re(f,Ot),J<T&&(J=T+Ot),st()},kr=f=>{ee=!0;for(let x=0;x<f.length;x++)Lr(f[x],x);ee=!1;for(let x=0;x<f.length;x++)Lr(f[x],x)},Lr=(f,x)=>{let O;I!==void 0?(O=f==null?0:Xi(f,I),O===-1&&(O=0)):(O=re(f,T),O<T&&(O=T),O>J&&(O=J));let Q=se(T,J,0,100,O);De(x,Q)},Pr=f=>{if(f==null){ne=void 0;return}if(typeof f=="function"){ne=f,st();return}if(Te(f)){ne=re(f,1);let x=Math.abs(J-T);ne>x&&(ne=void 0),st();return}ne=void 0},ln=f=>{ee=f,st()},cn=f=>{(!Te(f)||f<0)&&(f=0),q=f},jt=f=>{(!Te(f)||f<0)&&(f=1/0),be=f},un=f=>{we=f,g.classList.toggle("disabled",we),we?g.setAttribute("aria-disabled","true"):g.hasAttribute("aria-disabled")&&g.removeAttribute("aria-disabled")},oi=f=>{ze=f},a=f=>{qe=f,qe?document.removeEventListener("wheel",_r):document.addEventListener("wheel",_r,{passive:!1})},d=f=>{if(f==null){I=void 0;return}if(I=Fi(f),I===void 0||I.length<=0){I=void 0;return}$t(0),_t(I.length-1),ne===void 0&&Pr(1)},b=f=>{var x;typeof f=="string"?oe=f.trim().toLowerCase()===Pe?Pe:Ue:oe=Ue;let O=(x=u.shadowRoot)==null?void 0:x.querySelector(".range-slider-box");if(!O)return;O.className=`range-slider-box type-${oe}`,st();let Q=oe===Pe?"vertical":"horizontal";for(let pe of v)pe.setAttr("aria-orientation",Q)},_=f=>{je=f,v.length>1&&Yn(v,je,u),st(),wt()},R=f=>{N=f,v.length>1&&Yn(v,N,u),st(),wt()},P=f=>{Fe=re(f,Ye),Fe<0&&(Fe=Ye),wt()},W=f=>{f==null||f.toString().trim().toLowerCase()==="false"?(gt=void 0,g.style.removeProperty(zn),g.classList.remove(pt)):(gt=f.toString(),g.style.setProperty(zn,gt),g.classList.add(pt))},xe=(f,x)=>{let O=v[f];!O||(O.setAttr("aria-label",x),Xn[f]=x)},ve=f=>{if(Le=void 0,v.length<=1){Re=!1,g.classList.remove(vr);return}Re=f,g.classList.toggle(vr,Re)},Ne=()=>{un(_e(u.getAttribute(F))),ze=_e(u.getAttribute(de)),qe=_e(u.getAttribute(te));let f=Xt(u,/^pointer([0-9]*)-disabled$/,x=>_e(x));for(let x of f){let O=x[0];!v[O]||(v[O].disabled=x[1])}},We=()=>{let f=Xt(u,/^aria-label([0-9]*)$/);for(let x of f){let O=x[0];xe(O,x[1])}},Ve=f=>{let x=v.length,O=v[x-1].$pointer,Q=O.cloneNode(!0);O.after(Q);let pe=Gr(u,Q,x);return pe.setCallbacks(Zn,Jn,Qn,ei),v.push(pe),Lr(f,x),st(),wt(),x},He=()=>{let f=v.length,x=v[f-1];return x?(x.destroy(),v.pop(),v.length<=1&&ve(!1),st(),wt(),f-1):-1};return(()=>{var f,x;for(let Q of v)Q.setCallbacks(Zn,Jn,Qn,ei);let O=(f=u.shadowRoot)==null?void 0:f.querySelector(".panel-fill");O&&(B=Zi(O)),b(u.getAttribute(E)),_(_e(u.getAttribute(H))),R(_e(u.getAttribute(X))),si(u.getAttribute(y),u.getAttribute(w)),Pr(u.getAttribute(m)),d(u.getAttribute(p)),kr($.map(Q=>Q[1])),ln(_e(u.getAttribute(o))),cn(re(u.getAttribute(l),0)),jt(re(u.getAttribute(c),1/0)),ve(_e(u.getAttribute(h))),P(re(u.getAttribute(A),Ye)),Ne(),We(),U=Zt(u,g,v),W((x=u.getAttribute(ke))!=null?x:Fn),g.addEventListener("mousedown",Jr),g.addEventListener("mouseup",xr),g.addEventListener("touchmove",vt),g.addEventListener("touchstart",vt),qe||document.addEventListener("wheel",_r,{passive:!1}),L=Xr(u,ti,{setValues:kr,setMin:$t,setMax:_t,setStep:Pr,setPointersOverlap:ln,setPointersMinDistance:cn,setPointersMaxDistance:jt,setDisabled:un,setType:b,setRightToLeft:_,setBottomToTop:R,setRound:P,setKeyboardDisabled:oi,setMousewheelDisabled:a,setRangeDragging:ve,setData:d},{getPercents:ri,getValues:ni,getPointerElements:en,getMin:nr,getMax:ii,getStep:Qr,getData:tn,getType:rn,getRound:Mr,getTextMin:Ar,getTextMax:xt,isRightToLeft:ct,isBottomToTop:sn,isDisabled:on,isKeyboardDisabled:ir,isMousewheelDisabled:Cr,isPointersOverlap:sr,isRangeDraggingEnabled:tt,getPointersMinDistance:Sr,getPointersMaxDistance:nn}),L.init()})(),{get pointers(){return v},get styles(){return U},get pluginsManager(){return L},get min(){return Ar()},get max(){return xt()},get step(){return Qr()},get pointersOverlap(){return sr()},set pointersOverlap(f){ln(f)},get pointersMinDistance(){return Sr()},set pointersMinDistance(f){cn(f)},get pointersMaxDistance(){return nn()},set pointersMaxDistance(f){jt(f)},get disabled(){return on()},set disabled(f){un(f)},get data(){return tn()},get type(){return rn()},set type(f){b(f)},get rightToLeft(){return ct()},set rightToLeft(f){_(f)},get bottomToTop(){return sn()},set bottomToTop(f){R(f)},get round(){return Mr()},set round(f){P(f)},get animateOnClick(){return gt},set animateOnClick(f){W(f)},get keyboardDisabled(){return ir()},set keyboardDisabled(f){oi(f)},get mousewheelDisabled(){return Cr()},set mousewheelDisabled(f){a(f)},get rangeDragging(){return tt()},set rangeDragging(f){ve(f)},setMin:$t,setMax:_t,setValue:Lr,setStep:Pr,setData:d,getTextValue:Rt,setAriaLabel:xe,getAriaLabel:Er,addPointer:Ve,removePointer:He,destroy:()=>{g.removeEventListener("mousedown",Jr),g.removeEventListener("mouseup",xr),g.removeEventListener("touchmove",vt),g.removeEventListener("touchstart",vt),document.removeEventListener("wheel",_r);for(let f of v)f.destroy();L==null||L.destroy()}}},hs=(u,g,$)=>{let v=mr.find(([L,T,J,ne])=>T.replace("#","")===g.replace(/\d+/g,""));if(v&&u.styles){let[L,T,J,ne]=v,I=g.replace(/\D/g,"").trim(),oe=I===""||I==="0"||I==="1"?0:re(I,0)-1;u.styles.setStyle(L,$,oe);return}switch(u&&u.pluginsManager&&u.pluginsManager.onAttrChange(g,$),g){case y:{u.setMin($);break}case w:{u.setMax($);break}case m:{u.setStep($);break}case o:{u.pointersOverlap=_e($);break}case l:{u.pointersMinDistance=re($,0);break}case h:{u.rangeDragging=_e($);break}case c:{u.pointersMaxDistance=re($,1/0);break}case F:{u.disabled=_e($);break}case de:{u.keyboardDisabled=_e($);break}case te:{u.mousewheelDisabled=_e($);break}case p:{u.setData($);break}case E:{u.type=$;break}case H:{u.rightToLeft=_e($);break}case X:{u.bottomToTop=_e($);break}case A:{u.round=re($,Ye);break}case z:{u.styles&&(u.styles.theme=$);break}case ke:{u.animateOnClick=$;break}}let C=null;if(/^value([0-9]*)$/.test(g)&&(C="value"),/^pointer([0-9]*)-disabled$/.test(g)&&(C="pointer-disabled"),/^aria-label([0-9]*)$/.test(g)&&(C="aria-label"),/^pointer([0-9]*)-shape$/.test(g)&&(C="pointer-shape"),!C)return;let B=g.replace(/\D/g,"").trim(),U=B===""||B==="0"||B==="1"?0:re(B,0)-1;switch(C){case"value":{u.setValue($,U);break}case"pointer-disabled":{let L=u==null?void 0:u.pointers[U];if(!L)return;L.disabled=_e($);break}case"aria-label":{u.setAriaLabel(U,$);break}case"pointer-shape":{u.styles&&u.styles.setPointerShape(U,$);break}}},ds=class extends HTMLElement{constructor(){super(),n(this,"slider"),n(this,"_externalCSSList",[]),n(this,"_observer",null),this.attachShadow({mode:"open"})}set step(u){this.slider&&this.slider.setStep(u)}get step(){var u;return(u=this.slider)==null?void 0:u.step}set disabled(u){this.slider&&(this.slider.disabled=u)}get disabled(){var u,g;return(g=(u=this.slider)==null?void 0:u.disabled)!=null?g:!1}set data(u){var g;(g=this.slider)==null||g.setData(u)}get data(){var u;return(u=this.slider)==null?void 0:u.data}set min(u){var g;(g=this.slider)==null||g.setMin(u)}get min(){var u;return(u=this.slider)==null?void 0:u.min}set max(u){var g;(g=this.slider)==null||g.setMax(u)}get max(){var u;return(u=this.slider)==null?void 0:u.max}set round(u){!this.slider||(this.slider.round=u)}get round(){var u,g;return(g=(u=this.slider)==null?void 0:u.round)!=null?g:Ye}set type(u){!this.slider||(this.slider.type=u??Ue)}get type(){var u;return((u=this.slider)==null?void 0:u.type)||Ue}set pointersOverlap(u){!this.slider||(this.slider.pointersOverlap=u)}get pointersOverlap(){var u,g;return(g=(u=this.slider)==null?void 0:u.pointersOverlap)!=null?g:!1}set pointersMinDistance(u){!this.slider||(this.slider.pointersMinDistance=u)}get pointersMinDistance(){var u,g;return(g=(u=this.slider)==null?void 0:u.pointersMinDistance)!=null?g:0}set pointersMaxDistance(u){!this.slider||(this.slider.pointersMaxDistance=u)}get pointersMaxDistance(){var u,g;return(g=(u=this.slider)==null?void 0:u.pointersMaxDistance)!=null?g:1/0}set theme(u){!this.slider||!this.slider.styles||(this.slider.styles.theme=u)}get theme(){var u,g,$;return($=(g=(u=this.slider)==null?void 0:u.styles)==null?void 0:g.theme)!=null?$:null}set rtl(u){!this.slider||(this.slider.rightToLeft=u)}get rtl(){var u,g;return(g=(u=this.slider)==null?void 0:u.rightToLeft)!=null?g:!1}set btt(u){!this.slider||(this.slider.bottomToTop=u)}get btt(){var u,g;return(g=(u=this.slider)==null?void 0:u.bottomToTop)!=null?g:!1}set keyboardDisabled(u){!this.slider||(this.slider.keyboardDisabled=u)}get keyboardDisabled(){var u,g;return(g=(u=this.slider)==null?void 0:u.keyboardDisabled)!=null?g:!1}set mousewheelDisabled(u){!this.slider||(this.slider.mousewheelDisabled=u)}get mousewheelDisabled(){var u,g;return(g=(u=this.slider)==null?void 0:u.mousewheelDisabled)!=null?g:!1}set animateOnClick(u){!this.slider||(this.slider.animateOnClick=u)}get animateOnClick(){var u;return(u=this.slider)==null?void 0:u.animateOnClick}get rangeDragging(){var u,g;return(g=(u=this.slider)==null?void 0:u.rangeDragging)!=null?g:!1}set rangeDragging(u){this.slider&&(this.slider.rangeDragging=_e(u))}get externalCSSList(){return this._externalCSSList}addPointer(u){var g,$;if(!this.slider)return;let v=($=(g=this.slider)==null?void 0:g.addPointer(u))!=null?$:0;Gn(this,this.slider,v,`value${v+1}`,`ariaLabel${v+1}`,`pointerShape${v+1}`,`pointer${v+1}Disabled`)}removePointer(){var u;!this.slider||(u=this.slider)==null||u.removePointer()}addCSS(u){if(!this.shadowRoot)return;let g=document.createElement("style");g.textContent=u,this.shadowRoot.appendChild(g)}connectedCallback(){var u,g;if(!this.shadowRoot)return;this._externalCSSList=as(this),this.shadowRoot.innerHTML=i(s,this._externalCSSList);let $=(u=this.shadowRoot)==null?void 0:u.querySelector(".pointer");if(!$)return;let v=(g=this.shadowRoot)==null?void 0:g.getElementById("range-slider");if(!v)return;let C=ls(this,$);this.slider=us(this,v,C),cs(this,this.slider),this._observer=new MutationObserver(B=>{B.forEach(U=>{var L;if(!this.slider||U.type!=="attributes")return;let T=U.attributeName;!T||hs(this.slider,T,(L=this.getAttribute(T))!=null?L:"")})}),this._observer.observe(this,{attributes:!0})}disconnectedCallback(){this._observer&&this._observer.disconnect(),this.slider&&this.slider.destroy()}},Zr=ds;window.tcRangeSlider=Zr,customElements.get("toolcool-range-slider")||customElements.define("toolcool-range-slider",Zr),customElements.get("tc-range-slider")||customElements.define("tc-range-slider",class extends Zr{})})();class Jo extends Ze{constructor(){super();Xe(this,Gt);this.filterObject={},this.tabIndex=0,this.inputHandler=le(this,Gt,xa).bind(this),this.debouncedInputHandler=Ln(this.inputHandler,0,{leading:!0})}reset(){gu(this)}createRenderRoot(){return this}render(){return Ie(this.filterObject,()=>Y`
|
|
729
|
-
${le(this,Gt,
|
|
726
|
+
`}}Pt=new WeakSet,ba=function(r){vu(r,this)},ma=function(r){wu(r,this)},va=function(r){zo(r,this)},hn(Zo,"properties",{filterObject:{attribute:!1,type:Object},suggestions:{attribute:!1,type:Array},selectedItems:{state:!0,type:Array},query:{state:!0,type:String},showSuggestions:{state:!0,type:Boolean},highlightedIndex:{state:!0,type:Number},filteredSuggestions:{state:!0,type:Array},type:{attribute:!0,type:String},unstyled:{type:Boolean},tabIndex:{attribute:!1,type:Number},inlineMode:{attribute:"inline-mode",type:Boolean}}),customElements.define("eox-itemfilter-select",Zo),(()=>{var t=Object.defineProperty,e=Math.pow,r=(u,g,$)=>g in u?t(u,g,{enumerable:!0,configurable:!0,writable:!0,value:$}):u[g]=$,n=(u,g,$)=>(r(u,typeof g!="symbol"?g+"":g,$),$),i=(u,g)=>` ${g&&g.length>0?g.map($=>`<link rel="stylesheet" href="${$}" />`).join(""):""} <style> ${u} </style> <div class="range-slider-box"> <div class="row"> <div id="range-slider" class="range-slider"> <div class="container"> <div class="panel"></div> <div class="panel-fill"></div> <div class="container"> <div class="pointer" tabindex="0" role="slider"> <div class="pointer-shape"></div> </div> </div> </div> </div> </div> </div>`,s=":host{--width:300px;--height:.25rem;--opacity:.4;--panel-bg:#cbd5e1;--panel-bg-hover:#94a3b8;--panel-bg-fill:#475569;--panel-bg-border-radius:1rem;--pointer-width:1rem;--pointer-height:1rem;--pointer-bg:#fff;--pointer-bg-hover:#dcdcdc;--pointer-bg-focus:#dcdcdc;--pointer-shadow:0 0 2px rgba(0,0,0,0.8);--pointer-shadow-hover:0 0 2px #000;--pointer-shadow-focus:var(--pointer-shadow-hover);--pointer-border:1px solid hsla(0,0%,88%,0.5);--pointer-border-hover:1px solid #94a3b8;--pointer-border-focus:var(--pointer-border-hover);--pointer-border-radius:100%;--animate-onclick:.3s}:host{max-width:100%}.range-slider-box{display:flex;position:relative;flex-direction:column}.range-slider{position:relative;width:var(--width,100%);height:var(--height,0.25rem);touch-action:none;max-width:100%;box-sizing:border-box;cursor:pointer}.row{width:100%;display:flex;align-items:center}.range-slider.disabled{opacity:var(--opacity,0.4);cursor:default}.pointer.disabled{-webkit-filter:brightness(0.8);filter:brightness(0.8);cursor:default}.range-slider *{box-sizing:border-box}.container{position:absolute;width:100%;height:100%}.panel{position:absolute;z-index:10;width:100%;height:100%;background:var(--panel-bg,#2d4373);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;transition:.3s all ease}.panel-fill{background:var(--panel-bg-fill,#000);border-radius:var(--panel-bg-border-radius,1rem);overflow:hidden;height:100%;position:absolute;z-index:10}.panel:hover{background:var(--panel-bg-hover,#5f79b7)}.disabled .panel:hover{background:var(--panel-bg,#5f79b7)}.pointer{position:absolute;z-index:20;outline:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;box-shadow:var(--pointer-shadow);border:var(--pointer-border);border-radius:var(--pointer-border-radius,100%);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:var(--pointer-width,15px);height:var(--pointer-height,15px);transition:.3s all ease}.pointer-shape:hover{background:var(--pointer-bg-hover,#fff);background-size:contain;border:var(--pointer-border-hover);box-shadow:var(--pointer-shadow-hover)}.disabled .pointer-shape:hover{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.pointer:focus .pointer-shape{background:var(--pointer-bg-focus,#fff);background-size:contain;border:var(--pointer-border-focus);box-shadow:var(--pointer-shadow-focus)}.disabled .pointer:focus .pointer-shape{background:var(--pointer-bg,#fff);background-size:contain;border:var(--pointer-border);box-shadow:var(--pointer-shadow)}.type-vertical .range-slider{--width:.25rem;--height:300px;max-height:100%}.type-vertical .range-slider .pointer{left:50%}.type-vertical .range-slider .panel-fill{width:100%}.type-vertical.range-slider-box{flex-direction:row}.type-vertical .row{flex-direction:column}.animate-on-click .pointer,.animate-on-click .panel-fill{transition:all var(--animate-onclick)}.range-dragging .panel-fill{cursor:move}",o="pointers-overlap",l="pointers-min-distance",c="pointers-max-distance",d="range-dragging",p="data",y="min",w="max",m="step",_="round",E="type",z="theme",H="rtl",X="btt",F="disabled",he="keyboard-disabled",te="mousewheel-disabled",Z="slider-width",fe="slider-height",Ae="slider-radius",Ce="slider-bg",ye="slider-bg-hover",ie="slider-bg-fill",Ge="pointer-width",Ft="pointer-height",D="pointer-radius",S="pointer-bg",M="pointer-bg-hover",j="pointer-bg-focus",k="pointer-shadow",K="pointer-shadow-hover",G="pointer-shadow-focus",de="pointer-border",$e="pointer-border-hover",Se="pointer-border-focus",ke="animate-onclick",Ie="css-links",Pe="vertical",Be="horizontal",se=(u,g,$,v,C)=>{let B=g-u;return B===0?$:(v-$)*(C-u)/B+$},Te=u=>!isNaN(parseFloat(u))&&isFinite(u),re=(u,g)=>Te(u)?Number(u):g,Oe=(u,g)=>g===0?0:Math.round(u/g)*g,ft=(u,g=1/0)=>{if(g===1/0)return u;let $=e(10,g);return Math.round(u*$)/$},_e=u=>u==null?!1:typeof u=="boolean"?u:u.trim().toLowerCase()==="true",Yi=(u,g)=>{u.dispatchEvent(new CustomEvent("onPointerClicked",{detail:{$pointer:g}}))},In=(u,g)=>{u.dispatchEvent(new CustomEvent("onMouseDown",{detail:{nativeEvent:g}}))},Bn=(u,g)=>{u.dispatchEvent(new CustomEvent("onMouseUp",{detail:{nativeEvent:g}}))},Un=(u,g)=>{u.dispatchEvent(new CustomEvent("onKeyDown",{detail:{nativeEvent:g}}))},Fi=(u,g)=>{if(!g||g.length<=0)return;let $=g.map(C=>Te(C)?re(C,C):C),v={values:$||[]};v.value=$[0],v.value0=$[0],v.value1=$[0];for(let C=1;C<$.length;C++)v[`value${C+1}`]=$[C];u.dispatchEvent(new CustomEvent("change",{detail:v}))},Yr=(u,g,$)=>{let v=0,C,B,U,L,T=!1,J=(q,be,Re,Le,Me,we)=>{let Ue=v;Re!==void 0&&q>Re&&(q=Re),be!==void 0&&q<be&&(q=be),v=q;let ze=v;return(Le===Pe&&we||Le===Be&&Me)&&(ze=100-ze),Le===Pe?g.style.top=`${ze}%`:g.style.left=`${ze}%`,Ue!==v},ne=q=>q===g||g.contains(q),I=(q,be,Re,Le)=>{C=q,B=be,U=Re,L=Le},oe=q=>{T=q,g.classList.toggle("disabled",T),T?g.setAttribute("aria-disabled","true"):g.hasAttribute("aria-disabled")&&g.removeAttribute("aria-disabled")},Xe=(q,be)=>{be==null?g.removeAttribute(q):g.setAttribute(q,be)},je=q=>g.getAttribute(q),N=q=>{if(!T){switch(q.key){case"ArrowLeft":{q.preventDefault(),typeof C=="function"&&C($);break}case"ArrowRight":{q.preventDefault(),typeof B=="function"&&B($);break}case"ArrowUp":{q.preventDefault(),typeof U=="function"&&U($);break}case"ArrowDown":{q.preventDefault(),typeof L=="function"&&L($);break}}Un(u,q)}},ee=()=>{T||Yi(u,g)};return g.className=`pointer pointer-${$}`,g.addEventListener("keydown",N),g.addEventListener("click",ee),{$pointer:g,get percent(){return v},get disabled(){return T},set disabled(q){oe(q)},updatePosition:J,isClicked:ne,setCallbacks:I,setAttr:Xe,getAttr:je,destroy:()=>{g.removeEventListener("keydown",N),g.removeEventListener("click",ee),g.remove()}}},Xi=u=>{if(u==null)return;if(Array.isArray(u))return u;if(u.trim()==="")return;let g=u.split(","),$=[],v=!0;for(let C=0;C<g.length;C++){let B=g[C].trim();B!==""&&($.push(B),Te(B)||(v=!1))}return v?$.map(C=>Number(C)):$},Zi=(u,g)=>g?g.findIndex($=>$===u||$.toString().trim()===u.toString().trim()):-1,Ji=u=>({updatePosition:(g,$,v,C)=>{if($.length<=0)return;let B=$.length===1,U=$[0],L=$[$.length-1];g===Pe?(u.style.removeProperty("width"),u.style.removeProperty("right"),u.style.removeProperty("left"),B?u.style.height=`${U}%`:u.style.height=`${Math.abs(U-L)}%`,C?(u.style.bottom="0%",B?u.style.top="auto":u.style.top=`${Math.min(100-L,100-U)}%`):(u.style.bottom="auto",B?u.style.top="0%":u.style.top=`${Math.min(U,L)}%`)):(u.style.removeProperty("height"),u.style.removeProperty("top"),u.style.removeProperty("bottom"),B?u.style.width=`${U}%`:u.style.width=`${Math.abs(U-L)}%`,v?(u.style.right="0%",B?u.style.left="auto":u.style.left=`${Math.min(100-L,100-U)}%`):(u.style.right="auto",B?u.style.left="0%":u.style.left=`${Math.min(U,L)}%`))}}),zn="--animate-onclick",Qi="--width",Fr="--height",es="--panel-bg-border-radius",ts="--panel-bg",rs="--panel-bg-hover",ns="--panel-bg-fill",is="--pointer-width",br="--pointer-height",Xr="--pointer-border-radius",qn="--pointer-bg",Wn="--pointer-bg-hover",lt="--pointer-bg-focus",Tt="--pointer-shadow",ss="--pointer-shadow-hover",mr="--pointer-shadow-focus",Vn="--pointer-border",os="--pointer-border-hover",as="--pointer-border-focus",Xt=(u,g,$)=>{let v=new Map;for(let C of u.attributes){let B=C.nodeName.trim().toLowerCase();if(!g.test(B))continue;let U=B.replace(/\D/g,"").trim(),L=U===""||U==="0"||U==="1"?0:re(U,0)-1,T=$&&typeof $=="function"?$(C.value):C.value;v.set(L,T)}return v},ls=u=>{if(!u)return null;let g=u.getAttribute(Ie);if(!g)return null;let $=g.split(";"),v=[];for(let C of $)C.trim()!==""&&v.push(C.trim());return v},vr=[[Qi,Z,"sliderWidth",null],[Fr,fe,"sliderHeight",null],[es,Ae,"sliderRadius",null],[ts,Ce,"sliderBg",null],[rs,ye,"sliderBgHover",null],[ns,ie,"sliderBgFill",null],[is,Ge,"pointer#Width",/^pointer([0-9]*)-width$/],[br,Ft,"pointer#Height",/^pointer([0-9]*)-height$/],[Xr,D,"pointer#Radius",/^pointer([0-9]*)-radius$/],[qn,S,"pointer#Bg",/^pointer([0-9]*)-bg$/],[Wn,M,"pointer#BgHover",/^pointer([0-9]*)-bg-hover$/],[lt,j,"pointer#BgFocus",/^pointer([0-9]*)-bg-focus$/],[Tt,k,"pointer#Shadow",/^pointer([0-9]*)-shadow$/],[ss,K,"pointer#ShadowHover",/^pointer([0-9]*)-shadow-hover$/],[mr,G,"pointer#ShadowFocus",/^pointer([0-9]*)-shadow-focus$/],[Vn,de,"pointer#Border",/^pointer([0-9]*)-border$/],[os,$e,"pointer#BorderHover",/^pointer([0-9]*)-border-hover$/],[as,Se,"pointer#BorderFocus",/^pointer([0-9]*)-border-focus$/]],Zt=(u,g,$)=>{let v=null,C=[],B=new Map,U=(N,ee=g)=>{let q=[...ee.classList];for(let be of q)be.startsWith(N)&&g.classList.remove(be)},L=()=>{U("shape");let N=g.querySelectorAll(".pointer");for(let ee of N)U("shape",ee)},T=N=>{v=N,U("theme-"),typeof N=="string"&&g.classList.add(`theme-${N}`)},J=()=>{if(L(),!(C.length<=0)){g.classList.add("shape",`shape-${C[0]}`);for(let N=1;N<C.length;N++){let ee=C[N];if(!ee)continue;let q=g.querySelector(`.pointer-${N}`);!q||q.classList.add("shape",`shape-${ee}`)}}},ne=(N,ee)=>{C[N]=ee,J()},I=()=>{L();let N=Xt(u,/^pointer([0-9]*)-shape$/);if(!(N.size<=0)){for(let ee of N){let q=ee[0];C[q]=ee[1]}J()}},oe=(N,ee)=>`${N}-${ee}`,Xe=(N,ee,q)=>{let be=$[q];if(!be)return;let Re=q===0?g:be.$pointer;if(ee==null){B.has(oe(N,q))&&B.delete(oe(N,q)),Re.style.removeProperty(N);return}B.set(oe(N,q),ee),Re.style.setProperty(N,ee)},je=(N,ee)=>B.get(oe(N,ee));return(()=>{for(let N of vr){let[ee,q,be,Re]=N;if(Re){let Me=Xt(u,Re);for(let we of Me){let Ue=we[0],ze=we[1];Xe(ee,ze,Ue)}}else{let Me=u.getAttribute(q);Xe(ee,Me,0)}let Le=[];if(be.indexOf("#")===-1)Le.push([be,0]);else{Le.push([be.replace("#",""),0]),Le.push([be.replace("#","0"),0]),Le.push([be.replace("#","1"),0]);for(let Me=1;Me<$.length;Me++)Le.push([be.replace("#",(Me+1).toString()),Me])}for(let Me of Le)try{let we=Me[0],Ue=Me[1];Object.prototype.hasOwnProperty.call(u,we)||Object.defineProperty(u,we,{get(){return je(ee,Ue)},set:ze=>{Xe(ee,ze,Ue)}})}catch(we){console.error(we)}}T(u.getAttribute(z)),I()})(),{setStyle:Xe,getStyle:je,get theme(){return v},set theme(N){T(N)},get pointerShapes(){return C},setPointerShape:ne}},pt="animate-on-click",wr="range-dragging",Zr=(u,g,$,v)=>{let C=[],B=ne=>{for(let I of C)I.update&&typeof I.update=="function"&&I.update(ne)},U=()=>{for(let ne of C)ne.destroy&&typeof ne.destroy=="function"&&ne.destroy()},L=(ne,I)=>{for(let oe of C)oe.onAttrChange&&typeof oe.onAttrChange=="function"&&oe.onAttrChange(ne,I)},T=ne=>{if(ne.gettersAndSetters){for(let I of ne.gettersAndSetters)if(!(!I.name||!I.attributes))try{Object.prototype.hasOwnProperty.call(u,I.name)||Object.defineProperty(u,I.name,I.attributes)}catch(oe){console.error("defineSettersGetters error:",oe)}}},J=ne=>{var I;if(!ne.css)return;let oe=(I=u.shadowRoot)==null?void 0:I.querySelector("style");!oe||(oe.innerHTML+=ne.css)};return{init:()=>{if(window.tcRangeSliderPlugins)for(let ne of window.tcRangeSliderPlugins){let I=ne();C.push(I),I.init&&typeof I.init=="function"&&(I.init(u,g,$,v),T(I),J(I))}},update:B,onAttrChange:L,destroy:U}},Jt=10,Kn=20,cs=(u,g)=>{let $=new Map,v=/^value([0-9]*)$/;for(let L of u.attributes){let T=L.nodeName.trim().toLowerCase();if(!v.test(T))continue;let J=T.replace("value","").trim(),ne=J===""||J==="0"||J==="1"?0:re(J,0)-1,I=Te(L.value)?re(L.value,0):L.value;$.set(ne,I)}let C=Math.max(...Array.from($.keys())),B=[];B.push([Yr(u,g,0),$.get(0)]);let U=g;for(let L=1;L<=C;L++){let T=g.cloneNode(!0);U.after(T),U=T,B.push([Yr(u,T,L),$.get(L)])}return B},Gn=(u,g,$,v,C,B,U)=>{try{Object.defineProperty(u,v,{configurable:!0,get(){if(!g)return;let L=g.pointers[$];if(!L)return;let T=g.getTextValue(L.percent);return Te(T)?re(T,T):T},set:L=>{g.pointers[$]?g==null||g.setValue(L,$):g==null||g.addPointer(L)}}),Object.defineProperty(u,C,{configurable:!0,get(){var L,T;return(T=(L=g==null?void 0:g.pointers[$])==null?void 0:L.getAttr("aria-label"))!=null?T:void 0},set:L=>{!g||g.setAriaLabel($,L)}}),Object.defineProperty(u,B,{configurable:!0,get(){var L,T;return(T=(L=g==null?void 0:g.styles)==null?void 0:L.pointerShapes[$])!=null?T:null},set:L=>{!g||!g.styles||g.styles.setPointerShape($,L)}}),Object.defineProperty(u,U,{configurable:!0,get(){var L;return(L=g==null?void 0:g.pointers[$].disabled)!=null?L:!1},set:L=>{if(!g)return;let T=g==null?void 0:g.pointers[$];!T||(T.disabled=L)}})}catch(L){console.error(L)}},us=(u,g)=>{let $=[["value","ariaLabel","pointerShape","pointerDisabled",0],["value0","ariaLabel0","pointerShape0","pointer0Disabled",0],["value1","ariaLabel1","pointerShape1","pointer1Disabled",0]];for(let v=2;v<Jt;v++)$.push([`value${v}`,`ariaLabel${v}`,`pointer${v}Shape`,`pointer${v}Disabled`,v-1]);for(let v of $)Gn(u,g,v[4],v[0],v[1],v[2],v[3])},Yn=(u,g,$)=>{var v;let C=(v=$.shadowRoot)==null?void 0:v.querySelector(".container");if(C)for(let B of u)g?C.prepend(B.$pointer):C.append(B.$pointer)},xr=(u,g)=>{if(!(!g||u.length<=1)){for(let $ of u)$.$pointer.style.zIndex=Kn.toString();g.$pointer.style.zIndex=(Kn*2).toString()}},Qt=0,Ot=100,Fe=2,Fn="0.3s",ds=(u,g,$)=>{let v=$.map(f=>f[0]),C=null,B=null,U=null,L=null,T=Qt,J=Ot,ne,I,oe=Be,Xe=Fe,je=!1,N=!1,ee=!1,q=0,be=1/0,Re=!1,Le,Me,we=!1,Ue=!1,ze=!1,gt=Fn,Xn=[],Qr=f=>{we||(f.preventDefault&&f.preventDefault(),vt(f),window.addEventListener("mousemove",vt),window.addEventListener("mouseup",$r),In(u,f))},$r=f=>{we||(Le=void 0,Me=void 0,window.removeEventListener("mousemove",vt),window.removeEventListener("mouseup",$r),gt&&g.classList.add(pt),Bn(u,f))},ps=(f,x)=>{if(v.length<=0)return;if(v.length===1)return v[0].isClicked(f)&>&&g.classList.remove(pt),v[0];let O=ys(f);if(Re){let ae=x,Ve=rr(ae);Ve!==void 0&&(ae=Oe(ae,Ve)),O?(Le=ae,Me=0,gt&&g.classList.remove(pt)):Le!==void 0&&(Me=ae-Le,Le=ae)}if(!gs(f)&&!O){for(let ae of v)if(!(!ae.isClicked(f)||ae.disabled))return gt&&g.classList.remove(pt),ae;for(let ae of v)if(C===ae)return ae}let Q=1/0,pe=null;for(let ae of v){if(ae.disabled)continue;let Ve=Math.abs(x-ae.percent);Ve<Q&&(Q=Ve,pe=ae)}return pe},_r=()=>v.findIndex(f=>C===f&&!f.disabled),vt=f=>{let x;if(oe===Pe){let{height:Q,top:pe}=g.getBoundingClientRect(),ae=f.type.indexOf("mouse")!==-1?f.clientY:f.touches[0].clientY;x=Math.min(Math.max(0,ae-pe),Q)*100/Q}else{let{width:Q,left:pe}=g.getBoundingClientRect(),ae=f.type.indexOf("mouse")!==-1?f.clientX:f.touches[0].clientX;x=Math.min(Math.max(0,ae-pe),Q)*100/Q}if((je||N)&&(x=100-x),C=ps(f.target,x),C&&xr(v,C),Re&&v.length>1&&Me!==void 0){let Q=v[0],pe=v[v.length-1],ae=Q.percent+Me<0,Ve=pe.percent+Me>100;if(ae||Ve)return;for(let At=0;At<v.length;At++)De(At,v[At].percent+Me);return}let O=_r();O!==-1&&(De(O,x),C==null||C.$pointer.focus())},Ar=f=>{if(we||document.activeElement!==u||C!=null&&C.disabled)return;f.stopPropagation(),f.preventDefault();let x=f.deltaY<0,O=je||N,Q=x?!O:O,pe=_r();pe!==-1&&(Q?er(pe,v[pe].percent):tr(pe,v[pe].percent))},Zn=f=>{we||Ue||(oe===Pe?N?De(f,100):De(f,0):je?tr(f,v[f].percent):er(f,v[f].percent))},Jn=f=>{we||Ue||(oe===Pe?N?De(f,0):De(f,100):je?er(f,v[f].percent):tr(f,v[f].percent))},Qn=f=>{we||Ue||(oe===Pe?N?tr(f,v[f].percent):er(f,v[f].percent):je?De(f,100):De(f,0))},ei=f=>{we||Ue||(oe===Pe?N?er(f,v[f].percent):tr(f,v[f].percent):je?De(f,0):De(f,100))},gs=f=>f.classList.contains("panel"),ys=f=>f.classList.contains("panel-fill"),er=(f,x)=>{if(x===void 0)return;let O=rr(x);O==null&&(O=1),x-=O,x<0&&(x=0),De(f,x)},tr=(f,x)=>{if(x===void 0)return;let O=rr(x);O==null&&(O=1),x+=O,x>100&&(x=100),De(f,x)},wt=()=>{!L||L.update({percents:ri(),values:ni(),$pointers:tn(),min:nr(),max:ii(),data:rn(),step:en(),round:Sr(),type:nn(),textMin:Mr(),textMax:xt(),rightToLeft:ct(),bottomToTop:on(),pointersOverlap:sr(),pointersMinDistance:Er(),pointersMaxDistance:sn(),rangeDragging:tt(),disabled:an(),keyboardDisabled:ir(),mousewheelDisabled:kr()})},ti=()=>{wt()},bs=f=>{if(!(ee||v.length<=1||J===T))if(f===0){let x=be*100/(J-T);return Math.max(0,v[f+1].percent-x)}else{let x=q*100/(J-T);return Math.min(v[f-1].percent+x,100)}},ms=f=>{if(!(ee||v.length<=1||J===T))if(f===v.length-1){let x=be*100/(J-T);return Math.min(v[f-1].percent+x,100)}else{let x=q*100/(J-T);return Math.max(0,v[f+1].percent-x)}},rr=f=>{let x;if(typeof ne=="function"){let O=se(0,100,T,J,f);x=ne(O,f)}else x=ne;if(Te(x)){let O=J-T;return x=O===0?0:x*100/O,x}},Rt=f=>{if(f===void 0)return;let x=se(0,100,T,J,f);return I!==void 0?I[Math.round(x)]:ft(x,Xe)},Mr=()=>I!==void 0?I[T]:T,xt=()=>I!==void 0?I[J]:J,en=()=>ne,Dt=f=>{var x;return f<=0||ee?Mr():(x=Rt(v[f-1].percent))!=null?x:""},yt=f=>{var x;return v.length<=1||f>=v.length-1||ee?xt():(x=Rt(v[f+1].percent))!=null?x:""},ri=()=>v.map(f=>f.percent),ni=()=>v.map(f=>Rt(f.percent)),tn=()=>v.map(f=>f.$pointer),nr=()=>T,ii=()=>J,rn=()=>I,nn=()=>oe,Sr=()=>Xe,Er=()=>q,sn=()=>be,Cr=f=>Xn[f],ct=()=>je,on=()=>N,an=()=>we,ir=()=>Ue,kr=()=>ze,sr=()=>ee,tt=()=>Re,De=(f,x)=>{if(x===void 0)return;let O=rr(x);O!==void 0&&(x=Oe(x,O));let Q=v[f];if(!Q)return;let pe=Q.updatePosition(x,bs(f),ms(f),oe,je,N);B==null||B.updatePosition(oe,v.map(ae=>ae.percent),je,N),wt();for(let ae of v){let Ve=Rt(ae.percent);Ve!==void 0&&(ae.setAttr("aria-valuenow",Ve.toString()),ae.setAttr("aria-valuetext",Ve.toString()))}ln(),pe&&Fi(u,v.map(ae=>Rt(ae.percent)))},st=()=>{for(let f=0;f<v.length;f++)De(f,v[f].percent)},si=(f,x)=>{T=I!==void 0?0:re(f,Qt),J=I!==void 0?I.length-1:re(x,Ot),$t(T),_t(J)},ln=()=>{var f,x;for(let O=0;O<v.length;O++){let Q=v[O];Q.setAttr("aria-valuemin",((f=Dt(O))!=null?f:"").toString()),Q.setAttr("aria-valuemax",((x=yt(O))!=null?x:"").toString())}},$t=f=>{T=re(f,Qt),T>J&&(J=T+Ot),st()},_t=f=>{J=re(f,Ot),J<T&&(J=T+Ot),st()},Lr=f=>{ee=!0;for(let x=0;x<f.length;x++)Pr(f[x],x);ee=!1;for(let x=0;x<f.length;x++)Pr(f[x],x)},Pr=(f,x)=>{let O;I!==void 0?(O=f==null?0:Zi(f,I),O===-1&&(O=0)):(O=re(f,T),O<T&&(O=T),O>J&&(O=J));let Q=se(T,J,0,100,O);De(x,Q)},Tr=f=>{if(f==null){ne=void 0;return}if(typeof f=="function"){ne=f,st();return}if(Te(f)){ne=re(f,1);let x=Math.abs(J-T);ne>x&&(ne=void 0),st();return}ne=void 0},cn=f=>{ee=f,st()},un=f=>{(!Te(f)||f<0)&&(f=0),q=f},jt=f=>{(!Te(f)||f<0)&&(f=1/0),be=f},dn=f=>{we=f,g.classList.toggle("disabled",we),we?g.setAttribute("aria-disabled","true"):g.hasAttribute("aria-disabled")&&g.removeAttribute("aria-disabled")},oi=f=>{Ue=f},a=f=>{ze=f,ze?document.removeEventListener("wheel",Ar):document.addEventListener("wheel",Ar,{passive:!1})},h=f=>{if(f==null){I=void 0;return}if(I=Xi(f),I===void 0||I.length<=0){I=void 0;return}$t(0),_t(I.length-1),ne===void 0&&Tr(1)},b=f=>{var x;typeof f=="string"?oe=f.trim().toLowerCase()===Pe?Pe:Be:oe=Be;let O=(x=u.shadowRoot)==null?void 0:x.querySelector(".range-slider-box");if(!O)return;O.className=`range-slider-box type-${oe}`,st();let Q=oe===Pe?"vertical":"horizontal";for(let pe of v)pe.setAttr("aria-orientation",Q)},A=f=>{je=f,v.length>1&&Yn(v,je,u),st(),wt()},R=f=>{N=f,v.length>1&&Yn(v,N,u),st(),wt()},P=f=>{Xe=re(f,Fe),Xe<0&&(Xe=Fe),wt()},W=f=>{f==null||f.toString().trim().toLowerCase()==="false"?(gt=void 0,g.style.removeProperty(zn),g.classList.remove(pt)):(gt=f.toString(),g.style.setProperty(zn,gt),g.classList.add(pt))},xe=(f,x)=>{let O=v[f];!O||(O.setAttr("aria-label",x),Xn[f]=x)},ve=f=>{if(Le=void 0,v.length<=1){Re=!1,g.classList.remove(wr);return}Re=f,g.classList.toggle(wr,Re)},Ne=()=>{dn(_e(u.getAttribute(F))),Ue=_e(u.getAttribute(he)),ze=_e(u.getAttribute(te));let f=Xt(u,/^pointer([0-9]*)-disabled$/,x=>_e(x));for(let x of f){let O=x[0];!v[O]||(v[O].disabled=x[1])}},qe=()=>{let f=Xt(u,/^aria-label([0-9]*)$/);for(let x of f){let O=x[0];xe(O,x[1])}},We=f=>{let x=v.length,O=v[x-1].$pointer,Q=O.cloneNode(!0);O.after(Q);let pe=Yr(u,Q,x);return pe.setCallbacks(Zn,Jn,Qn,ei),v.push(pe),Pr(f,x),st(),wt(),x},He=()=>{let f=v.length,x=v[f-1];return x?(x.destroy(),v.pop(),v.length<=1&&ve(!1),st(),wt(),f-1):-1};return(()=>{var f,x;for(let Q of v)Q.setCallbacks(Zn,Jn,Qn,ei);let O=(f=u.shadowRoot)==null?void 0:f.querySelector(".panel-fill");O&&(B=Ji(O)),b(u.getAttribute(E)),A(_e(u.getAttribute(H))),R(_e(u.getAttribute(X))),si(u.getAttribute(y),u.getAttribute(w)),Tr(u.getAttribute(m)),h(u.getAttribute(p)),Lr($.map(Q=>Q[1])),cn(_e(u.getAttribute(o))),un(re(u.getAttribute(l),0)),jt(re(u.getAttribute(c),1/0)),ve(_e(u.getAttribute(d))),P(re(u.getAttribute(_),Fe)),Ne(),qe(),U=Zt(u,g,v),W((x=u.getAttribute(ke))!=null?x:Fn),g.addEventListener("mousedown",Qr),g.addEventListener("mouseup",$r),g.addEventListener("touchmove",vt),g.addEventListener("touchstart",vt),ze||document.addEventListener("wheel",Ar,{passive:!1}),L=Zr(u,ti,{setValues:Lr,setMin:$t,setMax:_t,setStep:Tr,setPointersOverlap:cn,setPointersMinDistance:un,setPointersMaxDistance:jt,setDisabled:dn,setType:b,setRightToLeft:A,setBottomToTop:R,setRound:P,setKeyboardDisabled:oi,setMousewheelDisabled:a,setRangeDragging:ve,setData:h},{getPercents:ri,getValues:ni,getPointerElements:tn,getMin:nr,getMax:ii,getStep:en,getData:rn,getType:nn,getRound:Sr,getTextMin:Mr,getTextMax:xt,isRightToLeft:ct,isBottomToTop:on,isDisabled:an,isKeyboardDisabled:ir,isMousewheelDisabled:kr,isPointersOverlap:sr,isRangeDraggingEnabled:tt,getPointersMinDistance:Er,getPointersMaxDistance:sn}),L.init()})(),{get pointers(){return v},get styles(){return U},get pluginsManager(){return L},get min(){return Mr()},get max(){return xt()},get step(){return en()},get pointersOverlap(){return sr()},set pointersOverlap(f){cn(f)},get pointersMinDistance(){return Er()},set pointersMinDistance(f){un(f)},get pointersMaxDistance(){return sn()},set pointersMaxDistance(f){jt(f)},get disabled(){return an()},set disabled(f){dn(f)},get data(){return rn()},get type(){return nn()},set type(f){b(f)},get rightToLeft(){return ct()},set rightToLeft(f){A(f)},get bottomToTop(){return on()},set bottomToTop(f){R(f)},get round(){return Sr()},set round(f){P(f)},get animateOnClick(){return gt},set animateOnClick(f){W(f)},get keyboardDisabled(){return ir()},set keyboardDisabled(f){oi(f)},get mousewheelDisabled(){return kr()},set mousewheelDisabled(f){a(f)},get rangeDragging(){return tt()},set rangeDragging(f){ve(f)},setMin:$t,setMax:_t,setValue:Pr,setStep:Tr,setData:h,getTextValue:Rt,setAriaLabel:xe,getAriaLabel:Cr,addPointer:We,removePointer:He,destroy:()=>{g.removeEventListener("mousedown",Qr),g.removeEventListener("mouseup",$r),g.removeEventListener("touchmove",vt),g.removeEventListener("touchstart",vt),document.removeEventListener("wheel",Ar);for(let f of v)f.destroy();L==null||L.destroy()}}},hs=(u,g,$)=>{let v=vr.find(([L,T,J,ne])=>T.replace("#","")===g.replace(/\d+/g,""));if(v&&u.styles){let[L,T,J,ne]=v,I=g.replace(/\D/g,"").trim(),oe=I===""||I==="0"||I==="1"?0:re(I,0)-1;u.styles.setStyle(L,$,oe);return}switch(u&&u.pluginsManager&&u.pluginsManager.onAttrChange(g,$),g){case y:{u.setMin($);break}case w:{u.setMax($);break}case m:{u.setStep($);break}case o:{u.pointersOverlap=_e($);break}case l:{u.pointersMinDistance=re($,0);break}case d:{u.rangeDragging=_e($);break}case c:{u.pointersMaxDistance=re($,1/0);break}case F:{u.disabled=_e($);break}case he:{u.keyboardDisabled=_e($);break}case te:{u.mousewheelDisabled=_e($);break}case p:{u.setData($);break}case E:{u.type=$;break}case H:{u.rightToLeft=_e($);break}case X:{u.bottomToTop=_e($);break}case _:{u.round=re($,Fe);break}case z:{u.styles&&(u.styles.theme=$);break}case ke:{u.animateOnClick=$;break}}let C=null;if(/^value([0-9]*)$/.test(g)&&(C="value"),/^pointer([0-9]*)-disabled$/.test(g)&&(C="pointer-disabled"),/^aria-label([0-9]*)$/.test(g)&&(C="aria-label"),/^pointer([0-9]*)-shape$/.test(g)&&(C="pointer-shape"),!C)return;let B=g.replace(/\D/g,"").trim(),U=B===""||B==="0"||B==="1"?0:re(B,0)-1;switch(C){case"value":{u.setValue($,U);break}case"pointer-disabled":{let L=u==null?void 0:u.pointers[U];if(!L)return;L.disabled=_e($);break}case"aria-label":{u.setAriaLabel(U,$);break}case"pointer-shape":{u.styles&&u.styles.setPointerShape(U,$);break}}},fs=class extends HTMLElement{constructor(){super(),n(this,"slider"),n(this,"_externalCSSList",[]),n(this,"_observer",null),this.attachShadow({mode:"open"})}set step(u){this.slider&&this.slider.setStep(u)}get step(){var u;return(u=this.slider)==null?void 0:u.step}set disabled(u){this.slider&&(this.slider.disabled=u)}get disabled(){var u,g;return(g=(u=this.slider)==null?void 0:u.disabled)!=null?g:!1}set data(u){var g;(g=this.slider)==null||g.setData(u)}get data(){var u;return(u=this.slider)==null?void 0:u.data}set min(u){var g;(g=this.slider)==null||g.setMin(u)}get min(){var u;return(u=this.slider)==null?void 0:u.min}set max(u){var g;(g=this.slider)==null||g.setMax(u)}get max(){var u;return(u=this.slider)==null?void 0:u.max}set round(u){!this.slider||(this.slider.round=u)}get round(){var u,g;return(g=(u=this.slider)==null?void 0:u.round)!=null?g:Fe}set type(u){!this.slider||(this.slider.type=u??Be)}get type(){var u;return((u=this.slider)==null?void 0:u.type)||Be}set pointersOverlap(u){!this.slider||(this.slider.pointersOverlap=u)}get pointersOverlap(){var u,g;return(g=(u=this.slider)==null?void 0:u.pointersOverlap)!=null?g:!1}set pointersMinDistance(u){!this.slider||(this.slider.pointersMinDistance=u)}get pointersMinDistance(){var u,g;return(g=(u=this.slider)==null?void 0:u.pointersMinDistance)!=null?g:0}set pointersMaxDistance(u){!this.slider||(this.slider.pointersMaxDistance=u)}get pointersMaxDistance(){var u,g;return(g=(u=this.slider)==null?void 0:u.pointersMaxDistance)!=null?g:1/0}set theme(u){!this.slider||!this.slider.styles||(this.slider.styles.theme=u)}get theme(){var u,g,$;return($=(g=(u=this.slider)==null?void 0:u.styles)==null?void 0:g.theme)!=null?$:null}set rtl(u){!this.slider||(this.slider.rightToLeft=u)}get rtl(){var u,g;return(g=(u=this.slider)==null?void 0:u.rightToLeft)!=null?g:!1}set btt(u){!this.slider||(this.slider.bottomToTop=u)}get btt(){var u,g;return(g=(u=this.slider)==null?void 0:u.bottomToTop)!=null?g:!1}set keyboardDisabled(u){!this.slider||(this.slider.keyboardDisabled=u)}get keyboardDisabled(){var u,g;return(g=(u=this.slider)==null?void 0:u.keyboardDisabled)!=null?g:!1}set mousewheelDisabled(u){!this.slider||(this.slider.mousewheelDisabled=u)}get mousewheelDisabled(){var u,g;return(g=(u=this.slider)==null?void 0:u.mousewheelDisabled)!=null?g:!1}set animateOnClick(u){!this.slider||(this.slider.animateOnClick=u)}get animateOnClick(){var u;return(u=this.slider)==null?void 0:u.animateOnClick}get rangeDragging(){var u,g;return(g=(u=this.slider)==null?void 0:u.rangeDragging)!=null?g:!1}set rangeDragging(u){this.slider&&(this.slider.rangeDragging=_e(u))}get externalCSSList(){return this._externalCSSList}addPointer(u){var g,$;if(!this.slider)return;let v=($=(g=this.slider)==null?void 0:g.addPointer(u))!=null?$:0;Gn(this,this.slider,v,`value${v+1}`,`ariaLabel${v+1}`,`pointerShape${v+1}`,`pointer${v+1}Disabled`)}removePointer(){var u;!this.slider||(u=this.slider)==null||u.removePointer()}addCSS(u){if(!this.shadowRoot)return;let g=document.createElement("style");g.textContent=u,this.shadowRoot.appendChild(g)}connectedCallback(){var u,g;if(!this.shadowRoot)return;this._externalCSSList=ls(this),this.shadowRoot.innerHTML=i(s,this._externalCSSList);let $=(u=this.shadowRoot)==null?void 0:u.querySelector(".pointer");if(!$)return;let v=(g=this.shadowRoot)==null?void 0:g.getElementById("range-slider");if(!v)return;let C=cs(this,$);this.slider=ds(this,v,C),us(this,this.slider),this._observer=new MutationObserver(B=>{B.forEach(U=>{var L;if(!this.slider||U.type!=="attributes")return;let T=U.attributeName;!T||hs(this.slider,T,(L=this.getAttribute(T))!=null?L:"")})}),this._observer.observe(this,{attributes:!0})}disconnectedCallback(){this._observer&&this._observer.disconnect(),this.slider&&this.slider.destroy()}},Jr=fs;window.tcRangeSlider=Jr,customElements.get("toolcool-range-slider")||customElements.define("toolcool-range-slider",Jr),customElements.get("tc-range-slider")||customElements.define("tc-range-slider",class extends Jr{})})();class Jo extends Ye{constructor(){super();Ze(this,Gt);this.filterObject={},this.tabIndex=0,this.inputHandler=le(this,Gt,wa).bind(this),this.debouncedInputHandler=Ln(this.inputHandler,0,{leading:!0})}reset(){pu(this)}createRenderRoot(){return this}render(){return Ke(this.filterObject,()=>Y`
|
|
727
|
+
${le(this,Gt,Ss).call(this,"min","before")}
|
|
730
728
|
<tc-range-slider
|
|
731
729
|
min="${this.filterObject.min}"
|
|
732
730
|
max="${this.filterObject.max}"
|
|
@@ -735,8 +733,8 @@ eox-itemfilter-results li.highlighted {
|
|
|
735
733
|
step="${this.filterObject.step||1}"
|
|
736
734
|
@change=${this.debouncedInputHandler}
|
|
737
735
|
></tc-range-slider>
|
|
738
|
-
${le(this,Gt,
|
|
739
|
-
`)}}Gt=new WeakSet,
|
|
736
|
+
${le(this,Gt,Ss).call(this,"max","after")}
|
|
737
|
+
`)}}Gt=new WeakSet,wa=function(r){gu(r,this)},Ss=function(r,n){return yu(r,n,this)},hn(Jo,"properties",{filterObject:{attribute:!1,type:Object},tabIndex:{attribute:!1,type:Number}}),customElements.define("eox-itemfilter-range",Jo);class Hu extends Ye{constructor(){super();Ze(this,Nn);this.filterObject={},this.tabIndex=0}static get properties(){return{filterObject:{type:Object},tabIndex:{attribute:!1,type:Number}}}reset(){_u(this)}createRenderRoot(){return this}render(){return Ke(this.filterObject,()=>{var r;return Y`
|
|
740
738
|
<form style="display: inline">
|
|
741
739
|
${pn(["intersects","within"],n=>Y`
|
|
742
740
|
<label>
|
|
@@ -746,7 +744,7 @@ eox-itemfilter-results li.highlighted {
|
|
|
746
744
|
name="mode"
|
|
747
745
|
.checked="${(this.filterObject.state.mode||"")===n||ge}"
|
|
748
746
|
value="${n}"
|
|
749
|
-
@click=${()=>le(this,Nn
|
|
747
|
+
@click=${()=>le(this,Nn,xa).call(this,n)}
|
|
750
748
|
/>
|
|
751
749
|
<small>${n} filter geometry</small>
|
|
752
750
|
</label>
|
|
@@ -757,13 +755,13 @@ eox-itemfilter-results li.highlighted {
|
|
|
757
755
|
.geometry="${(r=this.filterObject.state)==null?void 0:r.geometry}"
|
|
758
756
|
@filter="${n=>{this.filterObject.state.geometry=n.detail.geometry,this.filterObject.dirty=!0,this.filterObject.stringifiedState="Polygon",this.dispatchEvent(new CustomEvent("filter"))}}"
|
|
759
757
|
></eox-itemfilter-spatial>
|
|
760
|
-
`})}}Nn=new WeakSet
|
|
758
|
+
`})}}Nn=new WeakSet,xa=function(r){Mu(r,this)},customElements.define("eox-itemfilter-spatial",Hu);class Iu extends Ye{constructor(){super();Ze(this,Hn);this.geometry=null,this.eoxMap=null}static get properties(){return{geometry:{type:Object},eoxMap:{type:Object}}}firstUpdated(){le(this,Hn,$a).call(this)}reset(){Au(this)}render(){return Y`<div id="eox-map"></div>`}}Hn=new WeakSet,$a=function(){Wo(this)},customElements.define("eox-itemfilter-spatial-filter",Iu);function Bu(t,e){e.renderRoot.querySelectorAll(".chip").forEach(r=>{r.classList.remove("highlighted")}),t.target.classList.add("highlighted"),e.requestUpdate()}function Uu(t,e){const{code:r,target:n}=t;n.id==="eox-itemfilter-input-search"&&(e.parentElement.classList.contains("hidden")&&["ArrowLeft","ArrowRight","Backspace"].includes(r)||(r==="Space"&&t.preventDefault(),["Escape","Space","Enter"].includes(r)||t.stopPropagation(),["ArrowLeft","ArrowRight","Escape","Backspace"].includes(r)&&zu(r,t.target.value??"",e)))}function zu(t,e,r){const n=r.renderRoot.querySelector(".chip.highlighted");if((t==="Escape"||e)&&n&&n.classList.remove("highlighted"),t==="Backspace"&&!e){if(r.items.length){n&&(n.querySelector(".chip-item-close").click(),r.items.splice(Array.from(r.renderRoot.querySelectorAll(".chip")).indexOf(n),1));const i=r.renderRoot.querySelectorAll(".chip")[r.renderRoot.querySelectorAll(".chip").length-1];i.classList.contains("highlighted")||i.classList.add("highlighted"),r.requestUpdate()}r._dispatchEvent()}if((t==="ArrowLeft"||t==="ArrowRight")&&!e){if(r.renderRoot.querySelectorAll(".chip").length<1)return;let i=0;const s=r.renderRoot.querySelector(".chip.highlighted");s&&(i=Array.from(r.renderRoot.querySelectorAll(".chip")).indexOf(s),s.classList.remove("highlighted")),i=i+(t==="ArrowLeft"?-1:1),t==="ArrowLeft"&&i<0&&(i=r.renderRoot.querySelectorAll(".chip").length-1),t==="ArrowRight"&&i>r.renderRoot.querySelectorAll(".chip").length-1&&(i=0),Array.from(r.renderRoot.querySelectorAll(".chip"))[i].classList.add("highlighted")}}class qu extends Ye{constructor(){super();Ze(this,Yt);this.items={},this.controller={}}static get properties(){return{items:{attribute:!1,type:Object},controller:{attribute:!1,type:Object}}}connectedCallback(){super.connectedCallback(),this.getRootNode().addEventListener("keydown",le(this,Yt,Es).bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.getRootNode().removeEventListener("keydown",le(this,Yt,Es).bind(this))}_dispatchEvent(){this.dispatchEvent(new CustomEvent("items-selected",{detail:this.items}))}render(){return Y`
|
|
761
759
|
<style>
|
|
762
|
-
${
|
|
760
|
+
${Ur}
|
|
763
761
|
</style>
|
|
764
762
|
<span class="chip-container">
|
|
765
763
|
${pn(this.items,r=>Y`
|
|
766
|
-
<span class="chip" @click=${le(this,Yt,
|
|
764
|
+
<span class="chip" @click=${le(this,Yt,_a).bind(this)}>
|
|
767
765
|
<span class="chip-title">${r.title}</span>
|
|
768
766
|
<span
|
|
769
767
|
class="chip-item-close hidden"
|
|
@@ -774,7 +772,7 @@ eox-itemfilter-results li.highlighted {
|
|
|
774
772
|
</span>
|
|
775
773
|
`)}
|
|
776
774
|
</span>
|
|
777
|
-
`}}Yt=new WeakSet,Ss=function(r){zu(r,this)},Aa=function(r){Uu(r,this)},customElements.define("eox-itemfilter-chips",Wu);const Vu=Object.freeze({aggregateResults:void 0,autoSpreadSingle:!1,enableHighlighting:!1,externalFilter:()=>{},filterProperties:[],fuseConfig:{},inlineMode:!1,matchAllWhenEmpty:!0,showResults:!0,idProperty:"id",titleProperty:"title",subTitleProperty:void 0,expandMultipleFilters:!0,expandResults:!0,expandMultipleResults:!0}),Qo=["aggregateResults","autoSpreadSingle","enableHighlighting","externalFilter","filterProperties","fuseConfig","inlineMode","matchAllWhenEmpty","showResults","titleProperty","subTitleProperty","idProperty","expandMultipleFilters","expandResults","expandMultipleResults","items"];var Ku=200,Ui="__lodash_hash_undefined__",Gu=1/0,Yu="[object Function]",Fu="[object GeneratorFunction]",Xu=/[\\^$.*+?()[\]{}|]/g,Zu=/^\[object .+?Constructor\]$/,Ju=typeof et=="object"&&et&&et.Object===Object&&et,Qu=typeof self=="object"&&self&&self.Object===Object&&self,zi=Ju||Qu||Function("return this")();function eh(t,e){var r=t?t.length:0;return!!r&&rh(t,e,0)>-1}function th(t,e,r,n){for(var i=t.length,s=r+-1;++s<i;)if(e(t[s],s,t))return s;return-1}function rh(t,e,r){if(e!==e)return th(t,nh,r);for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}function nh(t){return t!==t}function ih(t,e){return t.has(e)}function sh(t,e){return t==null?void 0:t[e]}function oh(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function ea(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var ah=Array.prototype,lh=Function.prototype,ta=Object.prototype,qi=zi["__core-js_shared__"],ra=function(){var t=/[^.]+$/.exec(qi&&qi.keys&&qi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),na=lh.toString,Wi=ta.hasOwnProperty,ch=ta.toString,uh=RegExp("^"+na.call(Wi).replace(Xu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hh=ah.splice,dh=Ki(zi,"Map"),Vi=Ki(zi,"Set"),Vr=Ki(Object,"create");function Vt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function fh(){this.__data__=Vr?Vr(null):{}}function ph(t){return this.has(t)&&delete this.__data__[t]}function gh(t){var e=this.__data__;if(Vr){var r=e[t];return r===Ui?void 0:r}return Wi.call(e,t)?e[t]:void 0}function yh(t){var e=this.__data__;return Vr?e[t]!==void 0:Wi.call(e,t)}function bh(t,e){var r=this.__data__;return r[t]=Vr&&e===void 0?Ui:e,this}Vt.prototype.clear=fh,Vt.prototype.delete=ph,Vt.prototype.get=gh,Vt.prototype.has=yh,Vt.prototype.set=bh;function dr(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function mh(){this.__data__=[]}function vh(t){var e=this.__data__,r=Tn(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():hh.call(e,r,1),!0}function wh(t){var e=this.__data__,r=Tn(e,t);return r<0?void 0:e[r][1]}function xh(t){return Tn(this.__data__,t)>-1}function $h(t,e){var r=this.__data__,n=Tn(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}dr.prototype.clear=mh,dr.prototype.delete=vh,dr.prototype.get=wh,dr.prototype.has=xh,dr.prototype.set=$h;function fr(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function _h(){this.__data__={hash:new Vt,map:new(dh||dr),string:new Vt}}function Ah(t){return On(this,t).delete(t)}function Mh(t){return On(this,t).get(t)}function Sh(t){return On(this,t).has(t)}function Eh(t,e){return On(this,t).set(t,e),this}fr.prototype.clear=_h,fr.prototype.delete=Ah,fr.prototype.get=Mh,fr.prototype.has=Sh,fr.prototype.set=Eh;function Pn(t){var e=-1,r=t?t.length:0;for(this.__data__=new fr;++e<r;)this.add(t[e])}function Ch(t){return this.__data__.set(t,Ui),this}function kh(t){return this.__data__.has(t)}Pn.prototype.add=Pn.prototype.push=Ch,Pn.prototype.has=kh;function Tn(t,e){for(var r=t.length;r--;)if(Nh(t[r][0],e))return r;return-1}function Lh(t){if(!ia(t)||Rh(t))return!1;var e=Hh(t)||oh(t)?uh:Zu;return e.test(Dh(t))}function Ph(t,e,r){var n=-1,i=eh,s=t.length,o=!0,l=[],c=l;if(s>=Ku){var h=Th(t);if(h)return ea(h);o=!1,i=ih,c=new Pn}else c=l;e:for(;++n<s;){var p=t[n],y=p;if(p=p!==0?p:0,o&&y===y){for(var w=c.length;w--;)if(c[w]===y)continue e;l.push(p)}else i(c,y,r)||(c!==l&&c.push(y),l.push(p))}return l}var Th=Vi&&1/ea(new Vi([,-0]))[1]==Gu?function(t){return new Vi(t)}:Ih;function On(t,e){var r=t.__data__;return Oh(e)?r[typeof e=="string"?"string":"hash"]:r.map}function Ki(t,e){var r=sh(t,e);return Lh(r)?r:void 0}function Oh(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Rh(t){return!!ra&&ra in t}function Dh(t){if(t!=null){try{return na.call(t)}catch{}try{return t+""}catch{}}return""}function jh(t){return t&&t.length?Ph(t):[]}function Nh(t,e){return t===e||t!==t&&e!==e}function Hh(t){var e=ia(t)?ch.call(t):"";return e==Yu||e==Fu}function ia(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Ih(){}var Bh=jh;const sa=Cn(Bh);var Rn={exports:{}};Rn.exports,function(t,e){var r=200,n="Expected a function",i="__lodash_hash_undefined__",s=1,o=2,l=1/0,c=9007199254740991,h="[object Arguments]",p="[object Array]",y="[object Boolean]",w="[object Date]",m="[object Error]",A="[object Function]",E="[object GeneratorFunction]",z="[object Map]",H="[object Number]",X="[object Object]",F="[object Promise]",de="[object RegExp]",te="[object Set]",Z="[object String]",fe="[object Symbol]",Ae="[object WeakMap]",Ce="[object ArrayBuffer]",ye="[object DataView]",ie="[object Float32Array]",Ge="[object Float64Array]",Ft="[object Int8Array]",D="[object Int16Array]",S="[object Int32Array]",M="[object Uint8Array]",j="[object Uint8ClampedArray]",k="[object Uint16Array]",K="[object Uint32Array]",G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,he=/^\w*$/,$e=/^\./,Se=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ke=/[\\^$.*+?()[\]{}|]/g,Be=/\\(\\)?/g,Pe=/^\[object .+?Constructor\]$/,Ue=/^(?:0|[1-9]\d*)$/,se={};se[ie]=se[Ge]=se[Ft]=se[D]=se[S]=se[M]=se[j]=se[k]=se[K]=!0,se[h]=se[p]=se[Ce]=se[y]=se[ye]=se[w]=se[m]=se[A]=se[z]=se[H]=se[X]=se[de]=se[te]=se[Z]=se[Ae]=!1;var Te=typeof et=="object"&&et&&et.Object===Object&&et,re=typeof self=="object"&&self&&self.Object===Object&&self,Oe=Te||re||Function("return this")(),ft=e&&!e.nodeType&&e,_e=ft&&!0&&t&&!t.nodeType&&t,Gi=_e&&_e.exports===ft,In=Gi&&Te.process,Bn=function(){try{return In&&In.binding("util")}catch{}}(),Un=Bn&&Bn.isTypedArray;function Yi(a,d){for(var b=-1,_=a?a.length:0,R=Array(_);++b<_;)R[b]=d(a[b],b,a);return R}function Gr(a,d){for(var b=-1,_=d.length,R=a.length;++b<_;)a[R+b]=d[b];return a}function Fi(a,d){for(var b=-1,_=a?a.length:0;++b<_;)if(d(a[b],b,a))return!0;return!1}function Xi(a){return function(d){return d==null?void 0:d[a]}}function Zi(a,d){for(var b=-1,_=Array(a);++b<a;)_[b]=d(b);return _}function zn(a){return function(d){return a(d)}}function Ji(a,d){return a==null?void 0:a[d]}function Yr(a){var d=!1;if(a!=null&&typeof a.toString!="function")try{d=!!(a+"")}catch{}return d}function Qi(a){var d=-1,b=Array(a.size);return a.forEach(function(_,R){b[++d]=[R,_]}),b}function es(a,d){return function(b){return a(d(b))}}function ts(a){var d=-1,b=Array(a.size);return a.forEach(function(_){b[++d]=_}),b}var rs=Array.prototype,ns=Function.prototype,yr=Object.prototype,Fr=Oe["__core-js_shared__"],qn=function(){var a=/[^.]+$/.exec(Fr&&Fr.keys&&Fr.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Wn=ns.toString,lt=yr.hasOwnProperty,Tt=yr.toString,is=RegExp("^"+Wn.call(lt).replace(ke,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),br=Oe.Symbol,Vn=Oe.Uint8Array,ss=yr.propertyIsEnumerable,os=rs.splice,Xt=br?br.isConcatSpreadable:void 0,as=es(Object.keys,Object),mr=Dt(Oe,"DataView"),Zt=Dt(Oe,"Map"),pt=Dt(Oe,"Promise"),vr=Dt(Oe,"Set"),Xr=Dt(Oe,"WeakMap"),Jt=Dt(Object,"create"),Kn=ct(mr),ls=ct(Zt),Gn=ct(pt),cs=ct(vr),Yn=ct(Xr),wr=br?br.prototype:void 0,Qt=wr?wr.valueOf:void 0,Ot=wr?wr.toString:void 0;function Ye(a){var d=-1,b=a?a.length:0;for(this.clear();++d<b;){var _=a[d];this.set(_[0],_[1])}}function Fn(){this.__data__=Jt?Jt(null):{}}function us(a){return this.has(a)&&delete this.__data__[a]}function hs(a){var d=this.__data__;if(Jt){var b=d[a];return b===i?void 0:b}return lt.call(d,a)?d[a]:void 0}function ds(a){var d=this.__data__;return Jt?d[a]!==void 0:lt.call(d,a)}function Zr(a,d){var b=this.__data__;return b[a]=Jt&&d===void 0?i:d,this}Ye.prototype.clear=Fn,Ye.prototype.delete=us,Ye.prototype.get=hs,Ye.prototype.has=ds,Ye.prototype.set=Zr;function u(a){var d=-1,b=a?a.length:0;for(this.clear();++d<b;){var _=a[d];this.set(_[0],_[1])}}function g(){this.__data__=[]}function $(a){var d=this.__data__,b=we(d,a);if(b<0)return!1;var _=d.length-1;return b==_?d.pop():os.call(d,b,1),!0}function v(a){var d=this.__data__,b=we(d,a);return b<0?void 0:d[b][1]}function C(a){return we(this.__data__,a)>-1}function B(a,d){var b=this.__data__,_=we(b,a);return _<0?b.push([a,d]):b[_][1]=d,this}u.prototype.clear=g,u.prototype.delete=$,u.prototype.get=v,u.prototype.has=C,u.prototype.set=B;function U(a){var d=-1,b=a?a.length:0;for(this.clear();++d<b;){var _=a[d];this.set(_[0],_[1])}}function L(){this.__data__={hash:new Ye,map:new(Zt||u),string:new Ye}}function T(a){return xt(this,a).delete(a)}function J(a){return xt(this,a).get(a)}function ne(a){return xt(this,a).has(a)}function I(a,d){return xt(this,a).set(a,d),this}U.prototype.clear=L,U.prototype.delete=T,U.prototype.get=J,U.prototype.has=ne,U.prototype.set=I;function oe(a){var d=-1,b=a?a.length:0;for(this.__data__=new U;++d<b;)this.add(a[d])}function Fe(a){return this.__data__.set(a,i),this}function je(a){return this.__data__.has(a)}oe.prototype.add=oe.prototype.push=Fe,oe.prototype.has=je;function N(a){this.__data__=new u(a)}function ee(){this.__data__=new u}function q(a){return this.__data__.delete(a)}function be(a){return this.__data__.get(a)}function Re(a){return this.__data__.has(a)}function Le(a,d){var b=this.__data__;if(b instanceof u){var _=b.__data__;if(!Zt||_.length<r-1)return _.push([a,d]),this;b=this.__data__=new U(_)}return b.set(a,d),this}N.prototype.clear=ee,N.prototype.delete=q,N.prototype.get=be,N.prototype.has=Re,N.prototype.set=Le;function Me(a,d){var b=tt(a)||sr(a)?Zi(a.length,String):[],_=b.length,R=!!_;for(var P in a)lt.call(a,P)&&!(R&&(P=="length"||en(P,_)))&&b.push(P);return b}function we(a,d){for(var b=a.length;b--;)if(Cr(a[b][0],d))return b;return-1}var ze=ys(Xn);function qe(a,d,b,_,R){var P=-1,W=a.length;for(b||(b=ni),R||(R=[]);++P<W;){var xe=a[P];b(xe)?Gr(R,xe):R[R.length]=xe}return R}var gt=bs();function Xn(a,d){return a&>(a,d,jt)}function Jr(a,d){d=nr(d,a)?[d]:ti(d);for(var b=0,_=d.length;a!=null&&b<_;)a=a[Er(d[b++])];return b&&b==_?a:void 0}function xr(a){return Tt.call(a)}function fs(a,d){return a!=null&&d in Object(a)}function $r(a,d,b,_,R){return a===d?!0:a==null||d==null||!$t(a)&&!_t(d)?a!==a&&d!==d:vt(a,d,$r,b,_,R)}function vt(a,d,b,_,R,P){var W=tt(a),xe=tt(d),ve=p,Ne=p;W||(ve=yt(a),ve=ve==h?X:ve),xe||(Ne=yt(d),Ne=Ne==h?X:Ne);var We=ve==X&&!Yr(a),Ve=Ne==X&&!Yr(d),He=ve==Ne;if(He&&!We)return P||(P=new N),W||Lr(a)?rr(a,d,b,_,R,P):Rt(a,d,ve,b,_,R,P);if(!(R&o)){var f=We&<.call(a,"__wrapped__"),x=Ve&<.call(d,"__wrapped__");if(f||x){var O=f?a.value():a,Q=x?d.value():d;return P||(P=new N),b(O,Q,_,R,P)}}return He?(P||(P=new N),Ar(a,d,b,_,R,P)):!1}function _r(a,d,b,_){var R=b.length,P=R;if(a==null)return!P;for(a=Object(a);R--;){var W=b[R];if(W[2]?W[1]!==a[W[0]]:!(W[0]in a))return!1}for(;++R<P;){W=b[R];var xe=W[0],ve=a[xe],Ne=W[1];if(W[2]){if(ve===void 0&&!(xe in a))return!1}else{var We=new N,Ve;if(!(Ve===void 0?$r(Ne,ve,_,s|o,We):Ve))return!1}}return!0}function Zn(a){if(!$t(a)||tn(a))return!1;var d=si(a)||Yr(a)?is:Pe;return d.test(ct(a))}function Jn(a){return _t(a)&&an(a.length)&&!!se[Tt.call(a)]}function Qn(a){return typeof a=="function"?a:a==null?un:typeof a=="object"?tt(a)?er(a[0],a[1]):gs(a):oi(a)}function ei(a){if(!rn(a))return as(a);var d=[];for(var b in Object(a))lt.call(a,b)&&b!="constructor"&&d.push(b);return d}function ps(a,d){var b=-1,_=De(a)?Array(a.length):[];return ze(a,function(R,P,W){_[++b]=d(R,P,W)}),_}function gs(a){var d=Qr(a);return d.length==1&&d[0][2]?Sr(d[0][0],d[0][1]):function(b){return b===a||_r(b,a,d)}}function er(a,d){return nr(a)&&Mr(d)?Sr(Er(a),d):function(b){var _=ln(b,a);return _===void 0&&_===d?cn(b,a):$r(d,_,void 0,s|o)}}function tr(a){return function(d){return Jr(d,a)}}function wt(a){if(typeof a=="string")return a;if(kr(a))return Ot?Ot.call(a):"";var d=a+"";return d=="0"&&1/a==-l?"-0":d}function ti(a){return tt(a)?a:nn(a)}function ys(a,d){return function(b,_){if(b==null)return b;if(!De(b))return a(b,_);for(var R=b.length,P=-1,W=Object(b);++P<R&&_(W[P],P,W)!==!1;);return b}}function bs(a){return function(d,b,_){for(var R=-1,P=Object(d),W=_(d),xe=W.length;xe--;){var ve=W[++R];if(b(P[ve],ve,P)===!1)break}return d}}function rr(a,d,b,_,R,P){var W=R&o,xe=a.length,ve=d.length;if(xe!=ve&&!(W&&ve>xe))return!1;var Ne=P.get(a);if(Ne&&P.get(d))return Ne==d;var We=-1,Ve=!0,He=R&s?new oe:void 0;for(P.set(a,d),P.set(d,a);++We<xe;){var f=a[We],x=d[We];if(_)var O=W?_(x,f,We,d,a,P):_(f,x,We,a,d,P);if(O!==void 0){if(O)continue;Ve=!1;break}if(He){if(!Fi(d,function(Q,pe){if(!He.has(pe)&&(f===Q||b(f,Q,_,R,P)))return He.add(pe)})){Ve=!1;break}}else if(!(f===x||b(f,x,_,R,P))){Ve=!1;break}}return P.delete(a),P.delete(d),Ve}function Rt(a,d,b,_,R,P,W){switch(b){case ye:if(a.byteLength!=d.byteLength||a.byteOffset!=d.byteOffset)return!1;a=a.buffer,d=d.buffer;case Ce:return!(a.byteLength!=d.byteLength||!_(new Vn(a),new Vn(d)));case y:case w:case H:return Cr(+a,+d);case m:return a.name==d.name&&a.message==d.message;case de:case Z:return a==d+"";case z:var xe=Qi;case te:var ve=P&o;if(xe||(xe=ts),a.size!=d.size&&!ve)return!1;var Ne=W.get(a);if(Ne)return Ne==d;P|=s,W.set(a,d);var We=rr(xe(a),xe(d),_,R,P,W);return W.delete(a),We;case fe:if(Qt)return Qt.call(a)==Qt.call(d)}return!1}function Ar(a,d,b,_,R,P){var W=R&o,xe=jt(a),ve=xe.length,Ne=jt(d),We=Ne.length;if(ve!=We&&!W)return!1;for(var Ve=ve;Ve--;){var He=xe[Ve];if(!(W?He in d:lt.call(d,He)))return!1}var f=P.get(a);if(f&&P.get(d))return f==d;var x=!0;P.set(a,d),P.set(d,a);for(var O=W;++Ve<ve;){He=xe[Ve];var Q=a[He],pe=d[He];if(_)var ae=W?_(pe,Q,He,d,a,P):_(Q,pe,He,a,d,P);if(!(ae===void 0?Q===pe||b(Q,pe,_,R,P):ae)){x=!1;break}O||(O=He=="constructor")}if(x&&!O){var Ke=a.constructor,At=d.constructor;Ke!=At&&"constructor"in a&&"constructor"in d&&!(typeof Ke=="function"&&Ke instanceof Ke&&typeof At=="function"&&At instanceof At)&&(x=!1)}return P.delete(a),P.delete(d),x}function xt(a,d){var b=a.__data__;return ii(d)?b[typeof d=="string"?"string":"hash"]:b.map}function Qr(a){for(var d=jt(a),b=d.length;b--;){var _=d[b],R=a[_];d[b]=[_,R,Mr(R)]}return d}function Dt(a,d){var b=Ji(a,d);return Zn(b)?b:void 0}var yt=xr;(mr&&yt(new mr(new ArrayBuffer(1)))!=ye||Zt&&yt(new Zt)!=z||pt&&yt(pt.resolve())!=F||vr&&yt(new vr)!=te||Xr&&yt(new Xr)!=Ae)&&(yt=function(a){var d=Tt.call(a),b=d==X?a.constructor:void 0,_=b?ct(b):void 0;if(_)switch(_){case Kn:return ye;case ls:return z;case Gn:return F;case cs:return te;case Yn:return Ae}return d});function ri(a,d,b){d=nr(d,a)?[d]:ti(d);for(var _,R=-1,W=d.length;++R<W;){var P=Er(d[R]);if(!(_=a!=null&&b(a,P)))break;a=a[P]}if(_)return _;var W=a?a.length:0;return!!W&&an(W)&&en(P,W)&&(tt(a)||sr(a))}function ni(a){return tt(a)||sr(a)||!!(Xt&&a&&a[Xt])}function en(a,d){return d=d??c,!!d&&(typeof a=="number"||Ue.test(a))&&a>-1&&a%1==0&&a<d}function nr(a,d){if(tt(a))return!1;var b=typeof a;return b=="number"||b=="symbol"||b=="boolean"||a==null||kr(a)?!0:he.test(a)||!G.test(a)||d!=null&&a in Object(d)}function ii(a){var d=typeof a;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?a!=="__proto__":a===null}function tn(a){return!!qn&&qn in a}function rn(a){var d=a&&a.constructor,b=typeof d=="function"&&d.prototype||yr;return a===b}function Mr(a){return a===a&&!$t(a)}function Sr(a,d){return function(b){return b==null?!1:b[a]===d&&(d!==void 0||a in Object(b))}}var nn=ir(function(a){a=Pr(a);var d=[];return $e.test(a)&&d.push(""),a.replace(Se,function(b,_,R,P){d.push(R?P.replace(Be,"$1"):_||b)}),d});function Er(a){if(typeof a=="string"||kr(a))return a;var d=a+"";return d=="0"&&1/a==-l?"-0":d}function ct(a){if(a!=null){try{return Wn.call(a)}catch{}try{return a+""}catch{}}return""}function sn(a,d){return qe(on(a,d))}function on(a,d){var b=tt(a)?Yi:ps;return b(a,Qn(d))}function ir(a,d){if(typeof a!="function"||d&&typeof d!="function")throw new TypeError(n);var b=function(){var _=arguments,R=d?d.apply(this,_):_[0],P=b.cache;if(P.has(R))return P.get(R);var W=a.apply(this,_);return b.cache=P.set(R,W),W};return b.cache=new(ir.Cache||U),b}ir.Cache=U;function Cr(a,d){return a===d||a!==a&&d!==d}function sr(a){return st(a)&<.call(a,"callee")&&(!ss.call(a,"callee")||Tt.call(a)==h)}var tt=Array.isArray;function De(a){return a!=null&&an(a.length)&&!si(a)}function st(a){return _t(a)&&De(a)}function si(a){var d=$t(a)?Tt.call(a):"";return d==A||d==E}function an(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=c}function $t(a){var d=typeof a;return!!a&&(d=="object"||d=="function")}function _t(a){return!!a&&typeof a=="object"}function kr(a){return typeof a=="symbol"||_t(a)&&Tt.call(a)==fe}var Lr=Un?zn(Un):Jn;function Pr(a){return a==null?"":wt(a)}function ln(a,d,b){var _=a==null?void 0:Jr(a,d);return _===void 0?b:_}function cn(a,d){return a!=null&&ri(a,d,fs)}function jt(a){return De(a)?Me(a):ei(a)}function un(a){return a}function oi(a){return nr(a)?Xi(Er(a)):tr(a)}t.exports=sn}(Rn,Rn.exports);var Uh=Rn.exports;const oa=Cn(Uh);function zh(t,e,r){let n=[];t.filterProperties.length&&t.filterProperties.forEach(s=>{const o={},l=h=>s.format==="date"?qr(h).unix():parseFloat(h);e.forEach(h=>{var p;if(s.type==="range"){if(Array.isArray(h[s.key])){const y=[l(h[s.key][0]),l(h[s.key][1])];o.min=o.min!==void 0?Math.min(o.min,y[0]):y[0],o.max=o.max!==void 0?Math.max(o.max,y[1]):y[1]}else{const y=l(h[s.key]);o.min=o.min!==void 0?Math.min(o.min,y):y,o.max=o.max!==void 0?Math.max(o.max,y):y}return}Array.isArray(h[s.key])?h[s.key].forEach(y=>{o[y]=void 0}):s.type==="spatial"?(o.geometry=void 0,o.mode=s.mode||"intersects"):(p=s.key)!=null&&p.includes(".")?sa(oa(r.items,s.key)).filter(y=>y).forEach(y=>{o[y]=void 0}):o[h[s.key]]=void 0});const c=s.key||s.keys.join("|");r.filters[c]=Object.assign({type:s.type||"multiselect",dirty:s.state?!1:void 0,key:c},s.type==="range"?{min:o.min,max:o.max,format:s.format}:{},s),r.filters[c].state=Object.assign({},o,s.state)}),t.matchAllWhenEmpty!==!1&&(r.results=r.sortResults(e),r.requestUpdate()),t.aggregateResults&&(n=Array.from(new Set(e.reduce((s,o)=>s.concat(o[t.aggregateResults]),[]))).sort((s,o)=>s.localeCompare(o)));const i=[];return Object.values(r.filters).forEach(s=>{s.type==="text"?s.keys.forEach(o=>{i.includes(o)||i.push(o)}):(s.type==="select"||s.type==="multiselect")&&(i.includes(s.key)||i.push(s.key))}),qc(e,Object.assign({keys:i},t.fuseConfig)),n}async function qh(t,e,r){let n;r.externalFilter?n=await Gc(e,r.filters,t):n=await Wc(e,r.filters,t),r.results=r.sortResults(n)}function Wh(t,e,r){const n=`filter-${t.key}`.replace("|","-");switch(t.type){case"text":return Y`<eox-itemfilter-text
|
|
775
|
+
`}}Yt=new WeakSet,Es=function(r){Uu(r,this)},_a=function(r){Bu(r,this)},customElements.define("eox-itemfilter-chips",qu);const Wu=Object.freeze({aggregateResults:void 0,autoSpreadSingle:!1,enableHighlighting:!1,externalFilter:()=>{},filterProperties:[],fuseConfig:{},inlineMode:!1,matchAllWhenEmpty:!0,showResults:!0,idProperty:"id",titleProperty:"title",subTitleProperty:void 0,expandMultipleFilters:!0,expandResults:!0,expandMultipleResults:!0}),Qo=["aggregateResults","autoSpreadSingle","enableHighlighting","externalFilter","filterProperties","fuseConfig","inlineMode","matchAllWhenEmpty","showResults","titleProperty","subTitleProperty","idProperty","expandMultipleFilters","expandResults","expandMultipleResults","items"];var Vu=200,zi="__lodash_hash_undefined__",Ku=1/0,Gu="[object Function]",Yu="[object GeneratorFunction]",Fu=/[\\^$.*+?()[\]{}|]/g,Xu=/^\[object .+?Constructor\]$/,Zu=typeof et=="object"&&et&&et.Object===Object&&et,Ju=typeof self=="object"&&self&&self.Object===Object&&self,qi=Zu||Ju||Function("return this")();function Qu(t,e){var r=t?t.length:0;return!!r&&td(t,e,0)>-1}function ed(t,e,r,n){for(var i=t.length,s=r+-1;++s<i;)if(e(t[s],s,t))return s;return-1}function td(t,e,r){if(e!==e)return ed(t,rd,r);for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}function rd(t){return t!==t}function nd(t,e){return t.has(e)}function id(t,e){return t==null?void 0:t[e]}function sd(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function ea(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var od=Array.prototype,ad=Function.prototype,ta=Object.prototype,Wi=qi["__core-js_shared__"],ra=function(){var t=/[^.]+$/.exec(Wi&&Wi.keys&&Wi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),na=ad.toString,Vi=ta.hasOwnProperty,ld=ta.toString,cd=RegExp("^"+na.call(Vi).replace(Fu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ud=od.splice,dd=Gi(qi,"Map"),Ki=Gi(qi,"Set"),Kr=Gi(Object,"create");function Vt(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function hd(){this.__data__=Kr?Kr(null):{}}function fd(t){return this.has(t)&&delete this.__data__[t]}function pd(t){var e=this.__data__;if(Kr){var r=e[t];return r===zi?void 0:r}return Vi.call(e,t)?e[t]:void 0}function gd(t){var e=this.__data__;return Kr?e[t]!==void 0:Vi.call(e,t)}function yd(t,e){var r=this.__data__;return r[t]=Kr&&e===void 0?zi:e,this}Vt.prototype.clear=hd,Vt.prototype.delete=fd,Vt.prototype.get=pd,Vt.prototype.has=gd,Vt.prototype.set=yd;function fr(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function bd(){this.__data__=[]}function md(t){var e=this.__data__,r=Tn(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():ud.call(e,r,1),!0}function vd(t){var e=this.__data__,r=Tn(e,t);return r<0?void 0:e[r][1]}function wd(t){return Tn(this.__data__,t)>-1}function xd(t,e){var r=this.__data__,n=Tn(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}fr.prototype.clear=bd,fr.prototype.delete=md,fr.prototype.get=vd,fr.prototype.has=wd,fr.prototype.set=xd;function pr(t){var e=-1,r=t?t.length:0;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function $d(){this.__data__={hash:new Vt,map:new(dd||fr),string:new Vt}}function _d(t){return On(this,t).delete(t)}function Ad(t){return On(this,t).get(t)}function Md(t){return On(this,t).has(t)}function Sd(t,e){return On(this,t).set(t,e),this}pr.prototype.clear=$d,pr.prototype.delete=_d,pr.prototype.get=Ad,pr.prototype.has=Md,pr.prototype.set=Sd;function Pn(t){var e=-1,r=t?t.length:0;for(this.__data__=new pr;++e<r;)this.add(t[e])}function Ed(t){return this.__data__.set(t,zi),this}function Cd(t){return this.__data__.has(t)}Pn.prototype.add=Pn.prototype.push=Ed,Pn.prototype.has=Cd;function Tn(t,e){for(var r=t.length;r--;)if(jd(t[r][0],e))return r;return-1}function kd(t){if(!ia(t)||Od(t))return!1;var e=Nd(t)||sd(t)?cd:Xu;return e.test(Rd(t))}function Ld(t,e,r){var n=-1,i=Qu,s=t.length,o=!0,l=[],c=l;if(s>=Vu){var d=Pd(t);if(d)return ea(d);o=!1,i=nd,c=new Pn}else c=l;e:for(;++n<s;){var p=t[n],y=p;if(p=p!==0?p:0,o&&y===y){for(var w=c.length;w--;)if(c[w]===y)continue e;l.push(p)}else i(c,y,r)||(c!==l&&c.push(y),l.push(p))}return l}var Pd=Ki&&1/ea(new Ki([,-0]))[1]==Ku?function(t){return new Ki(t)}:Hd;function On(t,e){var r=t.__data__;return Td(e)?r[typeof e=="string"?"string":"hash"]:r.map}function Gi(t,e){var r=id(t,e);return kd(r)?r:void 0}function Td(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Od(t){return!!ra&&ra in t}function Rd(t){if(t!=null){try{return na.call(t)}catch{}try{return t+""}catch{}}return""}function Dd(t){return t&&t.length?Ld(t):[]}function jd(t,e){return t===e||t!==t&&e!==e}function Nd(t){var e=ia(t)?ld.call(t):"";return e==Gu||e==Yu}function ia(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Hd(){}var Id=Dd;const sa=Cn(Id);var Rn={exports:{}};Rn.exports,function(t,e){var r=200,n="Expected a function",i="__lodash_hash_undefined__",s=1,o=2,l=1/0,c=9007199254740991,d="[object Arguments]",p="[object Array]",y="[object Boolean]",w="[object Date]",m="[object Error]",_="[object Function]",E="[object GeneratorFunction]",z="[object Map]",H="[object Number]",X="[object Object]",F="[object Promise]",he="[object RegExp]",te="[object Set]",Z="[object String]",fe="[object Symbol]",Ae="[object WeakMap]",Ce="[object ArrayBuffer]",ye="[object DataView]",ie="[object Float32Array]",Ge="[object Float64Array]",Ft="[object Int8Array]",D="[object Int16Array]",S="[object Int32Array]",M="[object Uint8Array]",j="[object Uint8ClampedArray]",k="[object Uint16Array]",K="[object Uint32Array]",G=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,de=/^\w*$/,$e=/^\./,Se=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ke=/[\\^$.*+?()[\]{}|]/g,Ie=/\\(\\)?/g,Pe=/^\[object .+?Constructor\]$/,Be=/^(?:0|[1-9]\d*)$/,se={};se[ie]=se[Ge]=se[Ft]=se[D]=se[S]=se[M]=se[j]=se[k]=se[K]=!0,se[d]=se[p]=se[Ce]=se[y]=se[ye]=se[w]=se[m]=se[_]=se[z]=se[H]=se[X]=se[he]=se[te]=se[Z]=se[Ae]=!1;var Te=typeof et=="object"&&et&&et.Object===Object&&et,re=typeof self=="object"&&self&&self.Object===Object&&self,Oe=Te||re||Function("return this")(),ft=e&&!e.nodeType&&e,_e=ft&&!0&&t&&!t.nodeType&&t,Yi=_e&&_e.exports===ft,In=Yi&&Te.process,Bn=function(){try{return In&&In.binding("util")}catch{}}(),Un=Bn&&Bn.isTypedArray;function Fi(a,h){for(var b=-1,A=a?a.length:0,R=Array(A);++b<A;)R[b]=h(a[b],b,a);return R}function Yr(a,h){for(var b=-1,A=h.length,R=a.length;++b<A;)a[R+b]=h[b];return a}function Xi(a,h){for(var b=-1,A=a?a.length:0;++b<A;)if(h(a[b],b,a))return!0;return!1}function Zi(a){return function(h){return h==null?void 0:h[a]}}function Ji(a,h){for(var b=-1,A=Array(a);++b<a;)A[b]=h(b);return A}function zn(a){return function(h){return a(h)}}function Qi(a,h){return a==null?void 0:a[h]}function Fr(a){var h=!1;if(a!=null&&typeof a.toString!="function")try{h=!!(a+"")}catch{}return h}function es(a){var h=-1,b=Array(a.size);return a.forEach(function(A,R){b[++h]=[R,A]}),b}function ts(a,h){return function(b){return a(h(b))}}function rs(a){var h=-1,b=Array(a.size);return a.forEach(function(A){b[++h]=A}),b}var ns=Array.prototype,is=Function.prototype,br=Object.prototype,Xr=Oe["__core-js_shared__"],qn=function(){var a=/[^.]+$/.exec(Xr&&Xr.keys&&Xr.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Wn=is.toString,lt=br.hasOwnProperty,Tt=br.toString,ss=RegExp("^"+Wn.call(lt).replace(ke,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mr=Oe.Symbol,Vn=Oe.Uint8Array,os=br.propertyIsEnumerable,as=ns.splice,Xt=mr?mr.isConcatSpreadable:void 0,ls=ts(Object.keys,Object),vr=Dt(Oe,"DataView"),Zt=Dt(Oe,"Map"),pt=Dt(Oe,"Promise"),wr=Dt(Oe,"Set"),Zr=Dt(Oe,"WeakMap"),Jt=Dt(Object,"create"),Kn=ct(vr),cs=ct(Zt),Gn=ct(pt),us=ct(wr),Yn=ct(Zr),xr=mr?mr.prototype:void 0,Qt=xr?xr.valueOf:void 0,Ot=xr?xr.toString:void 0;function Fe(a){var h=-1,b=a?a.length:0;for(this.clear();++h<b;){var A=a[h];this.set(A[0],A[1])}}function Fn(){this.__data__=Jt?Jt(null):{}}function ds(a){return this.has(a)&&delete this.__data__[a]}function hs(a){var h=this.__data__;if(Jt){var b=h[a];return b===i?void 0:b}return lt.call(h,a)?h[a]:void 0}function fs(a){var h=this.__data__;return Jt?h[a]!==void 0:lt.call(h,a)}function Jr(a,h){var b=this.__data__;return b[a]=Jt&&h===void 0?i:h,this}Fe.prototype.clear=Fn,Fe.prototype.delete=ds,Fe.prototype.get=hs,Fe.prototype.has=fs,Fe.prototype.set=Jr;function u(a){var h=-1,b=a?a.length:0;for(this.clear();++h<b;){var A=a[h];this.set(A[0],A[1])}}function g(){this.__data__=[]}function $(a){var h=this.__data__,b=we(h,a);if(b<0)return!1;var A=h.length-1;return b==A?h.pop():as.call(h,b,1),!0}function v(a){var h=this.__data__,b=we(h,a);return b<0?void 0:h[b][1]}function C(a){return we(this.__data__,a)>-1}function B(a,h){var b=this.__data__,A=we(b,a);return A<0?b.push([a,h]):b[A][1]=h,this}u.prototype.clear=g,u.prototype.delete=$,u.prototype.get=v,u.prototype.has=C,u.prototype.set=B;function U(a){var h=-1,b=a?a.length:0;for(this.clear();++h<b;){var A=a[h];this.set(A[0],A[1])}}function L(){this.__data__={hash:new Fe,map:new(Zt||u),string:new Fe}}function T(a){return xt(this,a).delete(a)}function J(a){return xt(this,a).get(a)}function ne(a){return xt(this,a).has(a)}function I(a,h){return xt(this,a).set(a,h),this}U.prototype.clear=L,U.prototype.delete=T,U.prototype.get=J,U.prototype.has=ne,U.prototype.set=I;function oe(a){var h=-1,b=a?a.length:0;for(this.__data__=new U;++h<b;)this.add(a[h])}function Xe(a){return this.__data__.set(a,i),this}function je(a){return this.__data__.has(a)}oe.prototype.add=oe.prototype.push=Xe,oe.prototype.has=je;function N(a){this.__data__=new u(a)}function ee(){this.__data__=new u}function q(a){return this.__data__.delete(a)}function be(a){return this.__data__.get(a)}function Re(a){return this.__data__.has(a)}function Le(a,h){var b=this.__data__;if(b instanceof u){var A=b.__data__;if(!Zt||A.length<r-1)return A.push([a,h]),this;b=this.__data__=new U(A)}return b.set(a,h),this}N.prototype.clear=ee,N.prototype.delete=q,N.prototype.get=be,N.prototype.has=Re,N.prototype.set=Le;function Me(a,h){var b=tt(a)||sr(a)?Ji(a.length,String):[],A=b.length,R=!!A;for(var P in a)lt.call(a,P)&&!(R&&(P=="length"||tn(P,A)))&&b.push(P);return b}function we(a,h){for(var b=a.length;b--;)if(kr(a[b][0],h))return b;return-1}var Ue=bs(Xn);function ze(a,h,b,A,R){var P=-1,W=a.length;for(b||(b=ni),R||(R=[]);++P<W;){var xe=a[P];b(xe)?Yr(R,xe):R[R.length]=xe}return R}var gt=ms();function Xn(a,h){return a&>(a,h,jt)}function Qr(a,h){h=nr(h,a)?[h]:ti(h);for(var b=0,A=h.length;a!=null&&b<A;)a=a[Cr(h[b++])];return b&&b==A?a:void 0}function $r(a){return Tt.call(a)}function ps(a,h){return a!=null&&h in Object(a)}function _r(a,h,b,A,R){return a===h?!0:a==null||h==null||!$t(a)&&!_t(h)?a!==a&&h!==h:vt(a,h,_r,b,A,R)}function vt(a,h,b,A,R,P){var W=tt(a),xe=tt(h),ve=p,Ne=p;W||(ve=yt(a),ve=ve==d?X:ve),xe||(Ne=yt(h),Ne=Ne==d?X:Ne);var qe=ve==X&&!Fr(a),We=Ne==X&&!Fr(h),He=ve==Ne;if(He&&!qe)return P||(P=new N),W||Pr(a)?rr(a,h,b,A,R,P):Rt(a,h,ve,b,A,R,P);if(!(R&o)){var f=qe&<.call(a,"__wrapped__"),x=We&<.call(h,"__wrapped__");if(f||x){var O=f?a.value():a,Q=x?h.value():h;return P||(P=new N),b(O,Q,A,R,P)}}return He?(P||(P=new N),Mr(a,h,b,A,R,P)):!1}function Ar(a,h,b,A){var R=b.length,P=R;if(a==null)return!P;for(a=Object(a);R--;){var W=b[R];if(W[2]?W[1]!==a[W[0]]:!(W[0]in a))return!1}for(;++R<P;){W=b[R];var xe=W[0],ve=a[xe],Ne=W[1];if(W[2]){if(ve===void 0&&!(xe in a))return!1}else{var qe=new N,We;if(!(We===void 0?_r(Ne,ve,A,s|o,qe):We))return!1}}return!0}function Zn(a){if(!$t(a)||rn(a))return!1;var h=si(a)||Fr(a)?ss:Pe;return h.test(ct(a))}function Jn(a){return _t(a)&&ln(a.length)&&!!se[Tt.call(a)]}function Qn(a){return typeof a=="function"?a:a==null?dn:typeof a=="object"?tt(a)?er(a[0],a[1]):ys(a):oi(a)}function ei(a){if(!nn(a))return ls(a);var h=[];for(var b in Object(a))lt.call(a,b)&&b!="constructor"&&h.push(b);return h}function gs(a,h){var b=-1,A=De(a)?Array(a.length):[];return Ue(a,function(R,P,W){A[++b]=h(R,P,W)}),A}function ys(a){var h=en(a);return h.length==1&&h[0][2]?Er(h[0][0],h[0][1]):function(b){return b===a||Ar(b,a,h)}}function er(a,h){return nr(a)&&Sr(h)?Er(Cr(a),h):function(b){var A=cn(b,a);return A===void 0&&A===h?un(b,a):_r(h,A,void 0,s|o)}}function tr(a){return function(h){return Qr(h,a)}}function wt(a){if(typeof a=="string")return a;if(Lr(a))return Ot?Ot.call(a):"";var h=a+"";return h=="0"&&1/a==-l?"-0":h}function ti(a){return tt(a)?a:sn(a)}function bs(a,h){return function(b,A){if(b==null)return b;if(!De(b))return a(b,A);for(var R=b.length,P=-1,W=Object(b);++P<R&&A(W[P],P,W)!==!1;);return b}}function ms(a){return function(h,b,A){for(var R=-1,P=Object(h),W=A(h),xe=W.length;xe--;){var ve=W[++R];if(b(P[ve],ve,P)===!1)break}return h}}function rr(a,h,b,A,R,P){var W=R&o,xe=a.length,ve=h.length;if(xe!=ve&&!(W&&ve>xe))return!1;var Ne=P.get(a);if(Ne&&P.get(h))return Ne==h;var qe=-1,We=!0,He=R&s?new oe:void 0;for(P.set(a,h),P.set(h,a);++qe<xe;){var f=a[qe],x=h[qe];if(A)var O=W?A(x,f,qe,h,a,P):A(f,x,qe,a,h,P);if(O!==void 0){if(O)continue;We=!1;break}if(He){if(!Xi(h,function(Q,pe){if(!He.has(pe)&&(f===Q||b(f,Q,A,R,P)))return He.add(pe)})){We=!1;break}}else if(!(f===x||b(f,x,A,R,P))){We=!1;break}}return P.delete(a),P.delete(h),We}function Rt(a,h,b,A,R,P,W){switch(b){case ye:if(a.byteLength!=h.byteLength||a.byteOffset!=h.byteOffset)return!1;a=a.buffer,h=h.buffer;case Ce:return!(a.byteLength!=h.byteLength||!A(new Vn(a),new Vn(h)));case y:case w:case H:return kr(+a,+h);case m:return a.name==h.name&&a.message==h.message;case he:case Z:return a==h+"";case z:var xe=es;case te:var ve=P&o;if(xe||(xe=rs),a.size!=h.size&&!ve)return!1;var Ne=W.get(a);if(Ne)return Ne==h;P|=s,W.set(a,h);var qe=rr(xe(a),xe(h),A,R,P,W);return W.delete(a),qe;case fe:if(Qt)return Qt.call(a)==Qt.call(h)}return!1}function Mr(a,h,b,A,R,P){var W=R&o,xe=jt(a),ve=xe.length,Ne=jt(h),qe=Ne.length;if(ve!=qe&&!W)return!1;for(var We=ve;We--;){var He=xe[We];if(!(W?He in h:lt.call(h,He)))return!1}var f=P.get(a);if(f&&P.get(h))return f==h;var x=!0;P.set(a,h),P.set(h,a);for(var O=W;++We<ve;){He=xe[We];var Q=a[He],pe=h[He];if(A)var ae=W?A(pe,Q,He,h,a,P):A(Q,pe,He,a,h,P);if(!(ae===void 0?Q===pe||b(Q,pe,A,R,P):ae)){x=!1;break}O||(O=He=="constructor")}if(x&&!O){var Ve=a.constructor,At=h.constructor;Ve!=At&&"constructor"in a&&"constructor"in h&&!(typeof Ve=="function"&&Ve instanceof Ve&&typeof At=="function"&&At instanceof At)&&(x=!1)}return P.delete(a),P.delete(h),x}function xt(a,h){var b=a.__data__;return ii(h)?b[typeof h=="string"?"string":"hash"]:b.map}function en(a){for(var h=jt(a),b=h.length;b--;){var A=h[b],R=a[A];h[b]=[A,R,Sr(R)]}return h}function Dt(a,h){var b=Qi(a,h);return Zn(b)?b:void 0}var yt=$r;(vr&&yt(new vr(new ArrayBuffer(1)))!=ye||Zt&&yt(new Zt)!=z||pt&&yt(pt.resolve())!=F||wr&&yt(new wr)!=te||Zr&&yt(new Zr)!=Ae)&&(yt=function(a){var h=Tt.call(a),b=h==X?a.constructor:void 0,A=b?ct(b):void 0;if(A)switch(A){case Kn:return ye;case cs:return z;case Gn:return F;case us:return te;case Yn:return Ae}return h});function ri(a,h,b){h=nr(h,a)?[h]:ti(h);for(var A,R=-1,W=h.length;++R<W;){var P=Cr(h[R]);if(!(A=a!=null&&b(a,P)))break;a=a[P]}if(A)return A;var W=a?a.length:0;return!!W&&ln(W)&&tn(P,W)&&(tt(a)||sr(a))}function ni(a){return tt(a)||sr(a)||!!(Xt&&a&&a[Xt])}function tn(a,h){return h=h??c,!!h&&(typeof a=="number"||Be.test(a))&&a>-1&&a%1==0&&a<h}function nr(a,h){if(tt(a))return!1;var b=typeof a;return b=="number"||b=="symbol"||b=="boolean"||a==null||Lr(a)?!0:de.test(a)||!G.test(a)||h!=null&&a in Object(h)}function ii(a){var h=typeof a;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?a!=="__proto__":a===null}function rn(a){return!!qn&&qn in a}function nn(a){var h=a&&a.constructor,b=typeof h=="function"&&h.prototype||br;return a===b}function Sr(a){return a===a&&!$t(a)}function Er(a,h){return function(b){return b==null?!1:b[a]===h&&(h!==void 0||a in Object(b))}}var sn=ir(function(a){a=Tr(a);var h=[];return $e.test(a)&&h.push(""),a.replace(Se,function(b,A,R,P){h.push(R?P.replace(Ie,"$1"):A||b)}),h});function Cr(a){if(typeof a=="string"||Lr(a))return a;var h=a+"";return h=="0"&&1/a==-l?"-0":h}function ct(a){if(a!=null){try{return Wn.call(a)}catch{}try{return a+""}catch{}}return""}function on(a,h){return ze(an(a,h))}function an(a,h){var b=tt(a)?Fi:gs;return b(a,Qn(h))}function ir(a,h){if(typeof a!="function"||h&&typeof h!="function")throw new TypeError(n);var b=function(){var A=arguments,R=h?h.apply(this,A):A[0],P=b.cache;if(P.has(R))return P.get(R);var W=a.apply(this,A);return b.cache=P.set(R,W),W};return b.cache=new(ir.Cache||U),b}ir.Cache=U;function kr(a,h){return a===h||a!==a&&h!==h}function sr(a){return st(a)&<.call(a,"callee")&&(!os.call(a,"callee")||Tt.call(a)==d)}var tt=Array.isArray;function De(a){return a!=null&&ln(a.length)&&!si(a)}function st(a){return _t(a)&&De(a)}function si(a){var h=$t(a)?Tt.call(a):"";return h==_||h==E}function ln(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=c}function $t(a){var h=typeof a;return!!a&&(h=="object"||h=="function")}function _t(a){return!!a&&typeof a=="object"}function Lr(a){return typeof a=="symbol"||_t(a)&&Tt.call(a)==fe}var Pr=Un?zn(Un):Jn;function Tr(a){return a==null?"":wt(a)}function cn(a,h,b){var A=a==null?void 0:Qr(a,h);return A===void 0?b:A}function un(a,h){return a!=null&&ri(a,h,ps)}function jt(a){return De(a)?Me(a):ei(a)}function dn(a){return a}function oi(a){return nr(a)?Zi(Cr(a)):tr(a)}t.exports=on}(Rn,Rn.exports);var Bd=Rn.exports;const oa=Cn(Bd);function Ud(t,e,r){let n=[];t.filterProperties.length&&t.filterProperties.forEach(s=>{const o={},l=d=>s.format==="date"?Wr(d).unix():parseFloat(d);e.forEach(d=>{var p;if(s.type==="range"){const y=Di(s.key,d);if(Array.isArray(y)){const w=[l(y[0]),l(y[1])];o.min=o.min!==void 0?Math.min(o.min,w[0]):w[0],o.max=o.max!==void 0?Math.max(o.max,w[1]):w[1]}else{const w=l(y);o.min=o.min!==void 0?Math.min(o.min,w):w,o.max=o.max!==void 0?Math.max(o.max,w):w}return}Array.isArray(d[s.key])?d[s.key].forEach(y=>{o[y]=void 0}):s.type==="spatial"?(o.geometry=void 0,o.mode=s.mode||"intersects"):(p=s.key)!=null&&p.includes(".")?sa(oa(r.items,s.key)).filter(y=>y).forEach(y=>{o[y]=void 0}):o[d[s.key]]=void 0});const c=s.key||s.keys.join("|");r.filters[c]=Object.assign({type:s.type||"multiselect",dirty:s.state?!1:void 0,key:c},s.type==="range"?{min:o.min,max:o.max,format:s.format}:{},s),r.filters[c].state=Object.assign({},o,s.state)}),t.matchAllWhenEmpty!==!1&&(r.results=r.sortResults(e),r.requestUpdate()),t.aggregateResults&&(n=Array.from(new Set(e.reduce((s,o)=>s.concat(o[t.aggregateResults]),[]))).sort((s,o)=>s.localeCompare(o)));const i=[];return Object.values(r.filters).forEach(s=>{s.type==="text"?s.keys.forEach(o=>{i.includes(o)||i.push(o)}):(s.type==="select"||s.type==="multiselect")&&(i.includes(s.key)||i.push(s.key))}),zc(e,Object.assign({keys:i},t.fuseConfig)),n}async function zd(t,e,r){let n;r.externalFilter?n=await Kc(e,r.filters,t):n=await qc(e,r.filters,t),r.results=r.sortResults(n)}function qd(t,e,r){const n=`filter-${t.key}`.replace("|","-");switch(t.type){case"text":return Y`<eox-itemfilter-text
|
|
778
776
|
data-type="filter"
|
|
779
777
|
data-cy="text-filter"
|
|
780
778
|
slot="filter"
|
|
@@ -815,8 +813,8 @@ eox-itemfilter-results li.highlighted {
|
|
|
815
813
|
slot="filter"
|
|
816
814
|
@filter=${()=>r.search()}
|
|
817
815
|
></eox-itemfilter-spatial>
|
|
818
|
-
`;default:return Y``}}function
|
|
819
|
-
${
|
|
816
|
+
`;default:return Y``}}function Wd(t,e){return[...t].sort((r,n)=>r[e.titleProperty].localeCompare(n[e.titleProperty]))}function Vd(t,e,r){return Y`
|
|
817
|
+
${Ke(t.dirty,()=>Y`
|
|
820
818
|
<button
|
|
821
819
|
type="button"
|
|
822
820
|
tabindex=${e}
|
|
@@ -827,11 +825,11 @@ eox-itemfilter-results li.highlighted {
|
|
|
827
825
|
${r.unstyled?"Reset":ge}
|
|
828
826
|
</button>
|
|
829
827
|
`)}
|
|
830
|
-
`}function
|
|
828
|
+
`}function Kd(t){t.renderRoot.querySelectorAll("[data-type='filter']").forEach(e=>{typeof e.reset=="function"&&e.reset()}),t.search()}class aa extends Ye{constructor(){super();Ze(this,yr);Ze(this,Gr,[]);Ze(this,gr,[]);Ze(this,it,Wu);this.items=null,this.filters={},this.results=[],this.selectedResult=null,this.search=Ln(this.searchHandler,100,{leading:!0}),this.aggregateResults=void 0,this.autoSpreadSingle=!1,this.enableHighlighting=!1,this.externalFilter=null,this.filterProperties=[],this.fuseConfig={},this.inlineMode=!1,this.matchAllWhenEmpty=!0,this.showResults=!0,this.titleProperty="title",this.subTitleProperty=void 0,this.idProperty="id",this.expandMultipleFilters=!0,this.expandResults=!0,this.expandMultipleResults=!0,this.unstyled=!1}static get properties(){return{items:{attribute:!1,type:Object},results:{state:!0,attribute:!1,type:Object},filters:{state:!0,attribute:!1,type:Object},selectedResult:{attribute:!1,type:Object},aggregateResults:{attribute:"aggregate-results",type:String},autoSpreadSingle:{attribute:"auto-spread-single",type:Boolean},enableHighlighting:{attribute:"enable-highlighting",type:Boolean},filterProperties:{attribute:!1,type:Array},fuseConfig:{attribute:!1,type:Object},inlineMode:{attribute:"inline-mode",type:Boolean},matchAllWhenEmpty:{attribute:"match-all-when-empty",type:Boolean},showResults:{attribute:"show-result",type:Boolean},idProperty:{attribute:"id-property",type:String},titleProperty:{attribute:"title-property",type:String},subTitleProperty:{attribute:"sub-title-property",type:String},expandMultipleFilters:{attribute:"enable-multiple-filter",type:Boolean},expandResults:{attribute:"expand-result",type:Boolean},expandMultipleResults:{attribute:"expand-multiple-results",type:Boolean},externalFilter:{attribute:!1,type:Function},unstyled:{type:Boolean}}}apply(){ai(this,Gr,Ud(rt(this,it),rt(this,gr),this)),this.search()}async searchHandler(){await zd(rt(this,it),rt(this,gr),this),this.dispatchEvent(new CustomEvent("filter",{detail:{results:this.results,filters:this.filters},bubbles:!0,composed:!0})),this.inlineMode&&this.renderRoot.querySelector("eox-itemfilter-container").updateInline(),this.requestUpdate()}sortResults(r){return Wd(r,rt(this,it))}resetFilters(){Kd(this)}firstUpdated(r){var i;let n={};Qo.map(s=>{n={...n,[s]:this[s]}}),ai(this,it,n),ai(this,gr,((i=this.items)==null?void 0:i.map((s,o)=>Object.assign({id:s[this.idProperty]||`item-${o}`},s)))||[]),this.apply()}updated(r){Qo.map(n=>{if(r.has(n))return this.firstUpdated(),!0})}updateResult(r){this.selectedResult=r.detail,this.dispatchEvent(new CustomEvent("select",{detail:this.selectedResult,bubbles:!0,composed:!0})),this.requestUpdate()}render(){var r;return Y`
|
|
831
829
|
<style>
|
|
832
|
-
${
|
|
833
|
-
${!this.unstyled&&
|
|
834
|
-
${!this.unstyled&&
|
|
830
|
+
${Ba}
|
|
831
|
+
${!this.unstyled&&Ur}
|
|
832
|
+
${!this.unstyled&&Ua}
|
|
835
833
|
${this.styleOverride}
|
|
836
834
|
</style>
|
|
837
835
|
<form
|
|
@@ -839,7 +837,7 @@ eox-itemfilter-results li.highlighted {
|
|
|
839
837
|
class=${this.inlineMode?"inline":ge}
|
|
840
838
|
@submit="${n=>n.preventDefault()}"
|
|
841
839
|
>
|
|
842
|
-
${
|
|
840
|
+
${Ke(this.filterProperties,()=>Y`
|
|
843
841
|
<eox-itemfilter-container
|
|
844
842
|
.filters=${this.filters}
|
|
845
843
|
.filterProperties=${this.filterProperties}
|
|
@@ -848,7 +846,7 @@ eox-itemfilter-results li.highlighted {
|
|
|
848
846
|
@filter=${()=>this.search()}
|
|
849
847
|
>
|
|
850
848
|
<section slot="section">
|
|
851
|
-
${
|
|
849
|
+
${Ke(!this.inlineMode,()=>Y`
|
|
852
850
|
<slot name="filterstitle"
|
|
853
851
|
><h6 class="main-heading">Filters</h6></slot
|
|
854
852
|
>
|
|
@@ -857,15 +855,15 @@ eox-itemfilter-results li.highlighted {
|
|
|
857
855
|
${pn(Object.values(this.filters),(n,i)=>Y` <li>
|
|
858
856
|
<eox-itemfilter-expandcontainer
|
|
859
857
|
.filterObject=${n}
|
|
860
|
-
@details-toggled=${s=>
|
|
858
|
+
@details-toggled=${s=>Io(s,rt(this,it),this)}
|
|
861
859
|
data-details="${n.key}"
|
|
862
860
|
>
|
|
863
|
-
${le(this,
|
|
864
|
-
${le(this,
|
|
861
|
+
${le(this,yr,Ma).call(this,n,Ho(i,1))}
|
|
862
|
+
${le(this,yr,Aa).call(this,n,Ho(i,2))}
|
|
865
863
|
</eox-itemfilter-expandcontainer>
|
|
866
864
|
</li>`)}
|
|
867
865
|
</ul>
|
|
868
|
-
${
|
|
866
|
+
${Ke(!this.inlineMode&&rt(this,it).filterProperties&&!this.inlineMode&&rt(this,it).filterProperties&&Ri(this.filters),()=>Y`
|
|
869
867
|
<button
|
|
870
868
|
type="button"
|
|
871
869
|
id="filter-reset"
|
|
@@ -879,15 +877,15 @@ eox-itemfilter-results li.highlighted {
|
|
|
879
877
|
</section>
|
|
880
878
|
</eox-itemfilter-container>
|
|
881
879
|
`)}
|
|
882
|
-
${
|
|
880
|
+
${Ke(((r=rt(this,it))==null?void 0:r.showResults)&&this.results,()=>Y`
|
|
883
881
|
<eox-itemfilter-results
|
|
884
882
|
.config=${rt(this,it)}
|
|
885
883
|
.results=${this.results}
|
|
886
884
|
.filters=${this.filters}
|
|
887
|
-
.resultAggregation=${rt(this,
|
|
885
|
+
.resultAggregation=${rt(this,Gr)}
|
|
888
886
|
.selectedResult=${this.selectedResult}
|
|
889
887
|
@result=${this.updateResult}
|
|
890
888
|
></eox-itemfilter-results>
|
|
891
889
|
`)}
|
|
892
890
|
</form>
|
|
893
|
-
`}}
|
|
891
|
+
`}}Gr=new WeakMap,gr=new WeakMap,it=new WeakMap,yr=new WeakSet,Aa=function(r,n){return qd(r,n,this)},Ma=function(r,n){return Vd(r,n,this)},customElements.define("eox-itemfilter",aa),ue.EOxItemFilter=aa,Object.defineProperty(ue,Symbol.toStringTag,{value:"Module"})});
|