@eox/itemfilter 1.6.1 → 1.7.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/dist/eox-itemfilter.js +3037 -3015
- package/dist/eox-itemfilter.umd.cjs +122 -105
- package/package.json +3 -3
- package/src/components/filters/range.js +4 -4
- package/src/methods/filters/range.js +6 -2
- package/src/methods/itemfilter/filter-apply.js +6 -2
- package/src/methods/results/create.js +31 -18
- package/src/style.eox.js +5 -1
- package/types/methods/filters/range.d.ts.map +1 -1
- package/types/methods/itemfilter/filter-apply.d.ts.map +1 -1
- package/types/methods/results/create.d.ts.map +1 -1
- package/types/style.eox.d.ts +1 -1
- package/types/style.eox.d.ts.map +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(ve,me){typeof exports=="object"&&typeof module<"u"?me(exports):typeof define=="function"&&define.amd?define(["exports"],me):(ve=typeof globalThis<"u"?globalThis:ve||self,me(ve["eox-itemfilter"]={}))})(this,function(ve){"use strict";var Eu=Object.defineProperty;var Fo=ve=>{throw TypeError(ve)};var Cu=(ve,me,He)=>me in ve?Eu(ve,me,{enumerable:!0,configurable:!0,writable:!0,value:He}):ve[me]=He;var Pn=(ve,me,He)=>Cu(ve,typeof me!="symbol"?me+"":me,He),ls=(ve,me,He)=>me.has(ve)||Fo("Cannot "+He);var lt=(ve,me,He)=>(ls(ve,me,"read from private field"),He?He.call(ve):me.get(ve)),it=(ve,me,He)=>me.has(ve)?Fo("Cannot add the same private member more than once"):me instanceof WeakSet?me.add(ve):me.set(ve,He),yi=(ve,me,He,Gr)=>(ls(ve,me,"write to private field"),Gr?Gr.call(ve,He):me.set(ve,He),He),ye=(ve,me,He)=>(ls(ve,me,"access private method"),He);/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/var
|
|
5
|
+
*/var Yo,Xn,Zo,Ce,Xo,cs,us,Jo,ds,hs,Qo,fs,ea,ta,Jn,ir,ps,ra,Wt,na,ia,sa,sr,oa,gs,Qn,aa,ei,la,or,ys,ca,cn,Er,dt,Cr,ua,da;const me=globalThis,He=me.ShadowRoot&&(me.ShadyCSS===void 0||me.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Gr=Symbol(),bs=new WeakMap;let ha=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Gr)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(He&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=bs.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&bs.set(r,e))}return e}toString(){return this.cssText}};const fa=t=>new ha(typeof t=="string"?t:t+"",void 0,Gr),pa=(t,e)=>{if(He)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(const r of e){const n=document.createElement("style"),i=me.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},ms=He?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return fa(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:ga,defineProperty:ya,getOwnPropertyDescriptor:ba,getOwnPropertyNames:ma,getOwnPropertySymbols:va,getPrototypeOf:wa}=Object,It=globalThis,vs=It.trustedTypes,xa=vs?vs.emptyScript:"",bi=It.reactiveElementPolyfillSupport,Yr=(t,e)=>t,mi={toAttribute(t,e){switch(e){case Boolean:t=t?xa: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}},ws=(t,e)=>!ga(t,e),xs={attribute:!0,type:String,converter:mi,reflect:!1,hasChanged:ws};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),It.litPropertyMetadata??(It.litPropertyMetadata=new WeakMap);class wr 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=xs){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&&ya(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){const{get:i,set:s}=ba(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)??xs}static _$Ei(){if(this.hasOwnProperty(Yr("elementProperties")))return;const e=wa(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Yr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Yr("properties"))){const r=this.properties,n=[...ma(r),...va(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(ms(i))}else e!==void 0&&r.push(ms(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 pa(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:mi).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:mi;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??ws)(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){}}wr.elementStyles=[],wr.shadowRootOptions={mode:"open"},wr[Yr("elementProperties")]=new Map,wr[Yr("finalized")]=new Map,bi==null||bi({ReactiveElement:wr}),(It.reactiveElementVersions??(It.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 Fr=globalThis,Tn=Fr.trustedTypes,$s=Tn?Tn.createPolicy("lit-html",{createHTML:t=>t}):void 0,vi="$lit$",kt=`lit$${Math.random().toFixed(9).slice(2)}$`,wi="?"+kt,$a=`<${wi}>`,Zt=document,Zr=()=>Zt.createComment(""),Xr=t=>t===null||typeof t!="object"&&typeof t!="function",xi=Array.isArray,_s=t=>xi(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",$i=`[
|
|
14
|
+
\f\r]`,Jr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,As=/-->/g,Ms=/>/g,Xt=RegExp(`>|${$i}(?:([^\\s"'>=/]+)(${$i}*=${$i}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ss=/'/g,Es=/"/g,Cs=/^(?:script|style|textarea|title)$/i,_a=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ee=_a(1),Bt=Symbol.for("lit-noChange"),Ae=Symbol.for("lit-nothing"),ks=new WeakMap,Jt=Zt.createTreeWalker(Zt,129);function Ls(t,e){if(!xi(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return $s!==void 0?$s.createHTML(e):e}const Ps=(t,e)=>{const r=t.length-1,n=[];let i,s=e===2?"<svg>":e===3?"<math>":"",o=Jr;for(let l=0;l<r;l++){const c=t[l];let d,g,y=-1,w=0;for(;w<c.length&&(o.lastIndex=w,g=o.exec(c),g!==null);)w=o.lastIndex,o===Jr?g[1]==="!--"?o=As:g[1]!==void 0?o=Ms:g[2]!==void 0?(Cs.test(g[2])&&(i=RegExp("</"+g[2],"g")),o=Xt):g[3]!==void 0&&(o=Xt):o===Xt?g[0]===">"?(o=i??Jr,y=-1):g[1]===void 0?y=-2:(y=o.lastIndex-g[2].length,d=g[1],o=g[3]===void 0?Xt:g[3]==='"'?Es:Ss):o===Es||o===Ss?o=Xt:o===As||o===Ms?o=Jr:(o=Xt,i=void 0);const b=o===Xt&&t[l+1].startsWith("/>")?" ":"";s+=o===Jr?c+$a:y>=0?(n.push(d),c.slice(0,y)+vi+c.slice(y)+kt+b):c+kt+(y===-2?l:b)}return[Ls(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]};class Qr{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let s=0,o=0;const l=e.length-1,c=this.parts,[d,g]=Ps(e,r);if(this.el=Qr.createElement(d,n),Jt.currentNode=this.el.content,r===2||r===3){const y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(i=Jt.nextNode())!==null&&c.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(const y of i.getAttributeNames())if(y.endsWith(vi)){const w=g[o++],b=i.getAttribute(y).split(kt),A=/([.?@])?(.*)/.exec(w);c.push({type:1,index:s,name:A[2],strings:b,ctor:A[1]==="."?Os:A[1]==="?"?Rs:A[1]==="@"?Ds:en}),i.removeAttribute(y)}else y.startsWith(kt)&&(c.push({type:6,index:s}),i.removeAttribute(y));if(Cs.test(i.tagName)){const y=i.textContent.split(kt),w=y.length-1;if(w>0){i.textContent=Tn?Tn.emptyScript:"";for(let b=0;b<w;b++)i.append(y[b],Zr()),Jt.nextNode(),c.push({type:2,index:++s});i.append(y[w],Zr())}}}else if(i.nodeType===8)if(i.data===wi)c.push({type:2,index:s});else{let y=-1;for(;(y=i.data.indexOf(kt,y+1))!==-1;)c.push({type:7,index:s}),y+=kt.length-1}s++}}static createElement(e,r){const n=Zt.createElement("template");return n.innerHTML=e,n}}function Qt(t,e,r=t,n){var o,l;if(e===Bt)return e;let i=n!==void 0?(o=r._$Co)==null?void 0:o[n]:r._$Cl;const s=Xr(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=Qt(t,i._$AS(t,e.values),i,n)),e}let Ts=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)??Zt).importNode(r,!0);Jt.currentNode=i;let s=Jt.nextNode(),o=0,l=0,c=n[0];for(;c!==void 0;){if(o===c.index){let d;c.type===2?d=new xr(s,s.nextSibling,this,e):c.type===1?d=new c.ctor(s,c.name,c.strings,this,e):c.type===6&&(d=new js(s,this,e)),this._$AV.push(d),c=n[++l]}o!==(c==null?void 0:c.index)&&(s=Jt.nextNode(),o++)}return Jt.currentNode=Zt,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 xr{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=Ae,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=Qt(this,e,r),Xr(e)?e===Ae||e==null||e===""?(this._$AH!==Ae&&this._$AR(),this._$AH=Ae):e!==this._$AH&&e!==Bt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):_s(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!==Ae&&Xr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Zt.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=Qr.createElement(Ls(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 Ts(i,this),l=o.u(this.options);o.p(r),this.T(l),this._$AH=o}}_$AC(e){let r=ks.get(e.strings);return r===void 0&&ks.set(e.strings,r=new Qr(e)),r}k(e){xi(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 xr(this.O(Zr()),this.O(Zr()),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 en{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,s){this.type=1,this._$AH=Ae,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=Ae}_$AI(e,r=this,n,i){const s=this.strings;let o=!1;if(s===void 0)e=Qt(this,e,r,0),o=!Xr(e)||e!==this._$AH&&e!==Bt,o&&(this._$AH=e);else{const l=e;let c,d;for(e=s[0],c=0;c<s.length-1;c++)d=Qt(this,l[n+c],r,c),d===Bt&&(d=this._$AH[c]),o||(o=!Xr(d)||d!==this._$AH[c]),d===Ae?e=Ae:e!==Ae&&(e+=(d??"")+s[c+1]),this._$AH[c]=d}o&&!i&&this.j(e)}j(e){e===Ae?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Os extends en{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ae?void 0:e}}class Rs extends en{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ae)}}class Ds extends en{constructor(e,r,n,i,s){super(e,r,n,i,s),this.type=5}_$AI(e,r=this){if((e=Qt(this,e,r,0)??Ae)===Bt)return;const n=this._$AH,i=e===Ae&&n!==Ae||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==Ae&&(n===Ae||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 js{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){Qt(this,e)}}const Aa={M:vi,P:kt,A:wi,C:1,L:Ps,R:Ts,D:_s,V:Qt,I:xr,H:en,N:Rs,U:Ds,B:Os,F:js},_i=Fr.litHtmlPolyfillSupport;_i==null||_i(Qr,xr),(Fr.litHtmlVersions??(Fr.litHtmlVersions=[])).push("3.2.1");const Ma=(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 xr(e.insertBefore(Zr(),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
|
-
*/let
|
|
19
|
+
*/let et=class extends wr{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=Ma(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 Bt}};et._$litElement$=!0,et.finalized=!0,(Yo=globalThis.litElementHydrateSupport)==null||Yo.call(globalThis,{LitElement:et});const Ai=globalThis.litElementPolyfillSupport;Ai==null||Ai({LitElement:et}),(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
|
|
23
|
-
*/function*
|
|
23
|
+
*/function*On(t,e){if(t!==void 0){let r=0;for(const n of t)yield e(n,r++)}}/**
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2021 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/function
|
|
27
|
+
*/function Qe(t,e,r){return t?e(t):r==null?void 0:r(t)}const Sa=`
|
|
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
|
+
`,tn=`
|
|
53
53
|
:host, :root {
|
|
54
54
|
--item-color: color-mix(
|
|
55
55
|
in srgb,
|
|
@@ -72,11 +72,12 @@ details {
|
|
|
72
72
|
#000000 20%,
|
|
73
73
|
transparent
|
|
74
74
|
);
|
|
75
|
-
--background-color:
|
|
75
|
+
--background-color: var(--eox-background-color, transparent);
|
|
76
76
|
--padding: 0.5rem;
|
|
77
77
|
--text-transform: capitalize;
|
|
78
78
|
--form-flex-direction: column;
|
|
79
79
|
--filter-display: block;
|
|
80
|
+
background-color: var(--background-color);
|
|
80
81
|
}
|
|
81
82
|
* {
|
|
82
83
|
font-family: Roboto, sans-serif;
|
|
@@ -568,15 +569,18 @@ eox-itemfilter-results li.highlighted {
|
|
|
568
569
|
font-size: x-small;
|
|
569
570
|
top: -8px;
|
|
570
571
|
}
|
|
571
|
-
`,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);}pre { position: relative; border-radius: 4px; z-index: 1; margin: 0; padding: 20px 0; background: transparent; background: var(--code-bg-color, #8e96aa24);}code { display: block; padding: 0 24px; width: fit-content; min-width: 100%; line-height: var(--code-line-height, 1.7); font-family: var(--code-font-family, monospace); font-size: var(--code-font-size, var(--font-size)); color: var(--code-color, #004170);}:not(pre) > code { display: inline; border-radius: 4px; background: var(--code-bg-color, #8e96aa24); padding: var(--code-padding, 3px 6px);}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 Ye{constructor(){super();Xe(this,jn);this.filterObject={},this.unstyled=!1}static get properties(){return{filterObject:{attribute:!1,type:Object},unstyled:{type:Boolean}}}render(){return Y`
|
|
572
|
+
input {
|
|
573
|
+
background-color: var(--background-color);
|
|
574
|
+
}
|
|
575
|
+
`,Ea=`: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);}pre { position: relative; border-radius: 4px; z-index: 1; margin: 0; padding: 20px 0; background: transparent; background: var(--code-bg-color, #8e96aa24); overflow: auto;}code { display: block; padding: 0 24px; width: fit-content; min-width: 100%; line-height: var(--code-line-height, 1.7); font-family: var(--code-font-family, monospace); font-size: var(--code-font-size, var(--font-size)); color: var(--code-color, #004170);}:not(pre) > code { display: inline; border-radius: 4px; background: var(--code-bg-color, #8e96aa24); padding: var(--code-padding, 3px 6px);}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 Ca extends et{constructor(){super();it(this,Xn);this.filterObject={},this.unstyled=!1}static get properties(){return{filterObject:{attribute:!1,type:Object},unstyled:{type:Boolean}}}render(){return ee`
|
|
572
576
|
<style>
|
|
573
|
-
${!this.unstyled&&
|
|
577
|
+
${!this.unstyled&&tn}
|
|
574
578
|
</style>
|
|
575
579
|
|
|
576
|
-
${
|
|
577
|
-
@toggle="${
|
|
580
|
+
${Qe(this.filterObject.featured,()=>ee`<slot name="filter"></slot>`,()=>ee`<details
|
|
581
|
+
@toggle="${ye(this,Xn,Zo)}"
|
|
578
582
|
class="details-filter"
|
|
579
|
-
?open=${this.filterObject.expanded||
|
|
583
|
+
?open=${this.filterObject.expanded||Ae}
|
|
580
584
|
>
|
|
581
585
|
<summary>
|
|
582
586
|
<span
|
|
@@ -591,27 +595,27 @@ eox-itemfilter-results li.highlighted {
|
|
|
591
595
|
<slot name="filter"></slot>
|
|
592
596
|
</div>
|
|
593
597
|
</details>`)}
|
|
594
|
-
`}}jn=new WeakSet,da=function(r){this.dispatchEvent(new CustomEvent("details-toggled",{detail:r,bubbles:!0,composed:!0}))},customElements.define("eox-itemfilter-expandcontainer",qa);function vt(t){return Array.isArray?Array.isArray(t):Zs(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 Ys(t){return typeof t=="number"}function Ga(t){return t===!0||t===!1||Ya(t)&&Zs(t)=="[object Boolean]"}function Fs(t){return typeof t=="object"}function Ya(t){return Fs(t)&&t!==null}function Je(t){return t!=null}function bi(t){return!t.trim().length}function Zs(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Zd="Extended search is not available",Fa="Incorrect 'index' type",Za=t=>`Invalid value for key ${t}`,Xa=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=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)||vt(t))n=t,e=Qs(t),r=mi(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=Qs(o),r=mi(o),s=t.getFn}return{path:e,id:r,weight:i,src:n,getFn:s}}function Qs(t){return vt(t)?t:t.split(".")}function mi(t){return vt(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 d=s[c];if(!Je(d))return;if(l===o.length-1&&(ut(d)||Ys(d)||Ga(d)))r.push(Ka(d));else if(vt(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: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 vi{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)||bi(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(vt(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)&&!bi(p)){let y={v:p,i:d,n:this.norm.get(p)};l.push(y)}else vt(p)&&p.forEach((y,v)=>{c.push({nestedArrIndex:v,value:y})})}n.$[s]=l}else if(ut(o)&&!bi(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 vi({getFn:r,fieldNormWeight:n});return i.setKeys(t.map(Js)),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 vi({getFn:e,fieldNormWeight:r});return s.setKeys(n),s.setIndexRecords(i),s}function yn(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:d=V.ignoreLocation}={}){if(e.length>Ut)throw new Error(Xa(Ut));const p=e.length,y=t.length,v=Math.max(0,Math.min(n,y));let m=s,_=v;const E=l>1||c,z=E?Array(y):[];let H;for(;(H=t.indexOf(e,_))>-1;){let pe=yn(e,{currentLocation:H,expectedLocation:v,distance:i,ignoreLocation:d});if(m=Math.min(pe,m),_=H+p,E){let Ae=0;for(;Ae<p;)z[H+Ae]=1,Ae+=1}}_=-1;let Z=[],F=1,fe=p+y;const te=1<<p-1;for(let pe=0;pe<p;pe+=1){let Ae=0,Ce=fe;for(;Ae<Ce;)yn(e,{errors:pe,currentLocation:v+Ce,expectedLocation:v,distance:i,ignoreLocation:d})<=m?Ae=Ce:fe=Ce,Ce=Math.floor((fe-Ae)/2+Ae);fe=Ce;let ye=Math.max(1,v-Ce+1),ie=o?y:Math.min(v+Ce,y)+p,Ge=Array(ie+2);Ge[ie+1]=(1<<pe)-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,pe&&(Ge[D]|=(Z[D+1]|Z[D])<<1|1|Z[D+1]),Ge[D]&te&&(F=yn(e,{errors:pe,currentLocation:S,expectedLocation:v,distance:i,ignoreLocation:d}),F<=m)){if(m=F,_=S,_<=v)break;ye=Math.max(1,2*v-_)}}if(yn(e,{errors:pe+1,currentLocation:v,expectedLocation:v,distance:i,ignoreLocation:d})>m)break;Z=Ge}const X={isMatch:_>=0,score:Math.max(.001,F)};if(E){const pe=sl(z,l);pe.length?c&&(X.indices=pe):X.isMatch=!1}return X}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 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=(v,m)=>{this.chunks.push({pattern:v,alphabet:al(v),startIndex:m})},y=this.pattern.length;if(y>Ut){let v=0;const m=y%Ut,_=y-m;for(;v<_;)p(this.pattern.substr(v,Ut),v),v+=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,v=!1;this.chunks.forEach(({pattern:_,alphabet:E,startIndex:z})=>{const{isMatch:H,score:Z,indices:F}=ol(e,_,E,{location:i+z,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:c,includeMatches:n,ignoreLocation:d});H&&(v=!0),y+=Z,H&&F&&(p=[...p,...F])});let m={isMatch:v,score:v?y/this.chunks.length:1};return v&&n&&(m.indices=p),m}}class Ct{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 ll extends Ct{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 Ct{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 Ct{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 dl extends Ct{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 hl extends Ct{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 Ct{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 Ct{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 Ct{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 wi=[ll,io,ul,dl,fl,hl,cl,no],so=wi.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,d=-1;for(;!c&&++d<so;){const p=wi[d];let y=p.isMultiMatch(l);y&&(i.push(new p(y,e)),c=!0)}if(!c)for(d=-1;++d<so;){const p=wi[d];let y=p.isSingleMatch(l);if(y){i.push(new p(y,e));break}}}return i})}const bl=new Set([no.type,io.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: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=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,d=r.length;c<d;c+=1){const p=r[c];o.length=0,s=0;for(let y=0,v=p.length;y<v;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;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 xi=[];function vl(...t){xi.push(...t)}function $i(t,e){for(let r=0,n=xi.length;r<n;r+=1){let i=xi[r];if(i.condition(t,e))return new i(t,e)}return new to(t,e)}const bn={AND:"$and",OR:"$or"},_i={PATH:"$path",PATTERN:"$val"},Ai=t=>!!(t[bn.AND]||t[bn.OR]),wl=t=>!!t[_i.PATH],xl=t=>!vt(t)&&Fs(t)&&!Ai(t),oo=t=>({[bn.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=wl(i);if(!o&&s.length>1&&!Ai(i))return n(oo(i));if(xl(i)){const c=o?i[_i.PATH]:s[0],d=o?i[_i.PATTERN]:i[c];if(!ut(d))throw new Error(Za(c));const p={keyId:mi(c),pattern:d};return r&&(p.searcher=$i(d,e)),p}let l={children:[],operator:s[0]};return s.forEach(c=>{const d=i[c];vt(d)&&d.forEach(p=>{l.children.push(n(p))})}),l};return Ai(t)||(t=oo(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 kt{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 vi))throw new Error(Fa);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 $l(c,{ignoreFieldNorm:l}),s&&c.sort(o),Ys(r)&&r>-1&&(c=c.slice(0,r)),Ml(c,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e){const r=$i(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:v}=l,m=this._findMatches({key:this._keyStore.get(y),value:this._myIndex.getValueForItemAtKeyId(c,y),searcher:v});return m&&m.length?[{idx:d,item:c,matches:m}]:[]}const p=[];for(let y=0,v=l.children.length;y<v;y+=1){const m=l.children[y],_=n(m,c,d);if(_.length)p.push(..._);else if(l.operator===bn.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=$i(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(vt(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}}kt.version="7.0.0",kt.createIndex=eo,kt.parseIndex=il,kt.config=V,kt.parseQuery=ao,vl(ml);function lo(t,e){const r=new kt(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 Mi=Math.min,lr=Math.max,mn=Math.round,vn=Math.floor,dt=t=>({x:t,y:t});function co(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 uo(t){return["top","bottom"].includes(co(t))?"y":"x"}function Ll(t){return Cl(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=Ll(e),l=kl(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,v=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]-=v*(r&&d?-1:1);break;case"end":m[o]+=v*(r&&d?-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 d=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:p,y}=fo(d,n,c),v=n,m={},_=0;for(let E=0;E<l.length;E++){const{name:z,fn:H}=l[E],{x:Z,y:F,data:fe,reset:te}=await H({x:p,y,initialPlacement:n,placement:v,strategy:i,middlewareData:m,rects:d,platform:o,elements:{reference:t,floating:e}});p=Z??p,y=F??y,m={...m,[z]:{...m[z],...fe}},te&&_<=50&&(_++,typeof te=="object"&&(te.placement&&(v=te.placement),te.rects&&(d=te.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):te.rects),{x:p,y}=fo(d,v,c)),E=-1)}return{x:p,y,placement:v,strategy:i,middlewareData:m}};function wn(){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 ht(t){var e;return(e=(po(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function po(t){return wn()?t instanceof Node||t instanceof Qe(t).Node:!1}function ot(t){return wn()?t instanceof Element||t instanceof Qe(t).Element:!1}function ft(t){return wn()?t instanceof HTMLElement||t instanceof Qe(t).HTMLElement:!1}function go(t){return!wn()||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 Tl(t){return["table","td","th"].includes(cr(t))}function xn(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Si(t){const e=Ei(),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(;ft(e)&&!ur(e);){if(Si(e))return e;if(xn(e))return null;e=Lt(e)}return null}function Ei(){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 $n(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||ht(t);return go(e)?e.host:e}function yo(t){const e=Lt(t);return ur(e)?t.ownerDocument?t.ownerDocument.body:t.body:ft(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=Ci(o);return e.concat(o,o.visualViewport||[],zr(i)?i:[],l&&r?qr(l):[])}return e.concat(i,qr(i,[],r))}function Ci(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=ft(t),s=i?t.offsetWidth:r,o=i?t.offsetHeight:n,l=mn(r)!==s||mn(n)!==o;return l&&(r=s,n=o),{width:r,height:n,$:l}}function ki(t){return ot(t)?t:t.contextElement}function dr(t){const e=ki(t);if(!ft(e))return dt(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:s}=bo(e);let o=(s?mn(r.width):r.width)/n,l=(s?mn(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Rl=dt(0);function mo(t){const e=Qe(t);return!Ei()||!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=ki(t);let o=dt(1);e&&(n?ot(n)&&(o=dr(n)):o=dr(t));const l=Dl(s,r,n)?mo(s):dt(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 v=Qe(s),m=n&&ot(n)?Qe(n):n;let _=v,E=Ci(_);for(;E&&n&&m!==_;){const z=dr(E),H=E.getBoundingClientRect(),Z=at(E),F=H.left+(E.clientLeft+parseFloat(Z.paddingLeft))*z.x,fe=H.top+(E.clientTop+parseFloat(Z.paddingTop))*z.y;c*=z.x,d*=z.y,p*=z.x,y*=z.y,c+=F,d+=fe,_=Qe(E),E=Ci(_)}}return ho({width:p,height:y,x:c,y:d})}function Li(t,e){const r=$n(t).scrollLeft;return e?e.left+r:zt(ht(t)).left+r}function vo(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),i=n.left+e.scrollLeft-(r?0:Li(t,n)),s=n.top+e.scrollTop;return{x:i,y:s}}function jl(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const s=i==="fixed",o=ht(n),l=e?xn(e.floating):!1;if(n===o||l&&s)return r;let c={scrollLeft:0,scrollTop:0},d=dt(1);const p=dt(0),y=ft(n);if((y||!y&&!s)&&((cr(n)!=="body"||zr(o))&&(c=$n(n)),ft(n))){const m=zt(n);d=dr(n),p.x=m.x+n.clientLeft,p.y=m.y+n.clientTop}const v=o&&!y&&!s?vo(o,c,!0):dt(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+p.x+v.x,y:r.y*d.y-c.scrollTop*d.y+p.y+v.y}}function Nl(t){return Array.from(t.getClientRects())}function Hl(t){const e=ht(t),r=$n(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+Li(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 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 d=Ei();(!d||d&&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=ft(t)?dr(t):dt(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 wo(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=mo(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return ho(n)}function xo(t,e){const r=Lt(t);return r===e||!ot(r)||ur(r)?!1:at(r).position==="fixed"||xo(r,e)}function Ul(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=Si(o);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||zr(o)&&!c&&xo(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"?xn(e)?[]:Ul(e,this._c):[].concat(r),n],l=o[0],c=o.reduce((d,p)=>{const y=wo(e,p,i);return d.top=lr(y.top,d.top),d.right=Mi(y.right,d.right),d.bottom=Mi(y.bottom,d.bottom),d.left=lr(y.left,d.left),d},wo(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}=bo(t);return{width:e,height:r}}function Wl(t,e,r){const n=ft(e),i=ht(e),s=r==="fixed",o=zt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=dt(0);if(n||!n&&!s)if((cr(e)!=="body"||zr(i))&&(l=$n(e)),n){const v=zt(e,!0,s,e);c.x=v.x+e.clientLeft,c.y=v.y+e.clientTop}else i&&(c.x=Li(i));const d=i&&!n&&!s?vo(i,l):dt(0),p=o.left+l.scrollLeft-c.x-d.x,y=o.top+l.scrollTop-c.y-d.y;return{x:p,y,width:o.width,height:o.height}}function Pi(t){return at(t).position==="static"}function $o(t,e){if(!ft(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 _o(t,e){const r=Qe(t);if(xn(t))return r;if(!ft(t)){let i=Lt(t);for(;i&&!ur(i);){if(ot(i)&&!Pi(i))return i;i=Lt(i)}return r}let n=$o(t,e);for(;n&&Tl(n)&&Pi(n);)n=$o(n,e);return n&&ur(n)&&Pi(n)&&!Si(n)?r:n||Ol(t)||r}const Vl=async function(t){const e=this.getOffsetParent||_o,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:_o,getElementRects:Vl,getClientRects:Nl,getDimensions:ql,getScale:dr,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:d,top:p,width:y,height:v}=t.getBoundingClientRect();if(l||e(),!y||!v)return;const m=vn(p),_=vn(i.clientWidth-(d+y)),E=vn(i.clientHeight-(p+v)),z=vn(d),Z={rootMargin:-m+"px "+-_+"px "+-E+"px "+-z+"px",threshold:lr(0,Mi(1,c))||1};let F=!0;function fe(te){const X=te[0].intersectionRatio;if(X!==c){if(!F)return o();X?o(!1,X):n=setTimeout(()=>{o(!1,1e-7)},1e3)}F=!1}try{r=new IntersectionObserver(fe,{...Z,root:i.ownerDocument})}catch{r=new IntersectionObserver(fe,Z)}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,d=ki(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?Yl(d,r):null;let v=-1,m=null;o&&(m=new ResizeObserver(H=>{let[Z]=H;Z&&Z.target===d&&m&&(m.unobserve(e),cancelAnimationFrame(v),v=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(Z=>{i&&Z.removeEventListener("scroll",r),s&&Z.removeEventListener("resize",r)}),y==null||y(),(H=m)==null||H.disconnect(),m=null,c&&cancelAnimationFrame(_)}}const Zl=(t,e,r)=>{const n=new Map,i={platform:Gl,...r},s={...i.platform,_c:n};return Pl(t,e,{...i,platform:s})};function Xl(t){const e=t.renderRoot.querySelector(".inline-container-wrapper"),r=t.renderRoot.querySelector("[popover]");return Fl(e,r,()=>{r.matches(":popover-open")&&Zl(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 Ao(t){t.renderRoot.querySelector("#eox-itemfilter-input-search").value="",lo({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&&(Ao(e),e.showDropdown=!1)}function rc(t,e){e.inlineMode&&t.target.tagName!=="DROPDOWN-FORM"&&t.target.tagName!=="EOX-ITEMFILTER"&&e.showDropdown&&(Ao(e),e.showDropdown=!1)}function nc(t,e){var r=0,n=0,i=0,s=0,o=0,l=0,c=0,d=0,p=null,y=null,v=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]-v,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]-v;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 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(!Mo(t[0])||!Mo(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 Ti(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 Mo(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function So(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=So(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 d=0;d<l.length;++d){const p=nc(n,l[d]);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 Eo{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 Co(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 ko{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 dc(t,e){if(t.type==="FeatureCollection"){const r=t.features;for(let n=0;n<r.length;n++)Lo(r[n],e)}else Lo(t,e)}let _n=0,An=0,Mn=0;function Lo(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;An=An+1;for(let c=0;c<n[i][s].length-1;c++){l=n[i][s][c+1];const d=new ko(o,_n,An,Mn),p=new ko(l,_n,An,Mn+1);d.otherEvent=p,p.otherEvent=d,Co(d,p)>0?(p.isLeftEndpoint=!0,d.isLeftEndpoint=!1):(d.isLeftEndpoint=!0,p.isLeftEndpoint=!1),e.push(d),e.push(p),o=l,Mn=Mn+1}}_n=_n+1}class hc{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,d=e.rightSweepEvent.p.y,p=(d-l)*(i-r)-(c-o)*(s-n),y=(c-o)*(n-l)-(d-l)*(r-o),v=(i-r)*(n-l)-(s-n)*(r-o);if(p===0)return!1;const m=y/p,_=v/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 pc(t,e){e=e||!1;const r=[],n=new Eo([],uc);for(;t.length;){const i=t.pop();if(i.isLeftEndpoint){const s=new hc(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 Eo([],Co);return dc(t,r),pc(r,e)}var yc=gc;function Oi(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(Ti(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 Ti(l.map(c=>ic(c)))}function Po(t,e,r){if(t!==null)for(var n,i,s,o,l,c,d,p=0,y=0,v,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,v=d?d.type==="GeometryCollection":!1,l=v?d.geometries.length:1;for(var Z=0;Z<l;Z++){var F=0,fe=0;if(o=v?d.geometries[Z]: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,fe)===!1)return!1;y++,F++;break;case"LineString":case"MultiPoint":for(n=0;n<c.length;n++){if(e(c[n],y,H,F,fe)===!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,fe)===!1)return!1;y++}te==="MultiLineString"&&F++,te==="Polygon"&&fe++}te==="Polygon"&&F++;break;case"MultiPolygon":for(n=0;n<c.length;n++){for(fe=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,fe)===!1)return!1;y++}fe++}F++}break;case"GeometryCollection":for(n=0;n<o.geometries.length;n++)if(Po(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,d,p,y,v=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,v,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,v,d,p,y)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<s.geometries.length;n++)if(e(s.geometries[n],v,d,p,y)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}v++}}function Sn(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 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 Ri(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 To(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(To(o,i))}),Ti(s)}function To(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 Sn(t,o=>{Sn(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!Oo(e,t);case"Polygon":return!nt(t,e)}break;case"LineString":switch(e.type){case"Point":return!Oo(t,e);case"LineString":return!$c(t,e,r);case"Polygon":return!Ro(e,t,r)}break;case"Polygon":switch(e.type){case"Point":return!nt(e,t);case"LineString":return!Ro(t,e,r);case"Polygon":return!_c(e,t,r)}}return!1}function Oo(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 Oi(t,e,{ignoreSelfIntersections:r}).features.length>0}function Ro(t,e,r){for(const i of e.coordinates)if(nt(i,t))return!0;return Oi(e,Ri(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 Oi(Ri(t),Ri(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 Sn(t,o=>{Sn(e,l=>{if(s===!0)return!0;s=!wc(o.geometry,l.geometry,{ignoreSelfIntersections:i})})}),s}var Ec=Sc;function En(t,e={}){if(t.bbox!=null&&e.recompute!==!0)return t.bbox;const r=[1/0,1/0,-1/0,-1/0];return Po(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 Cn(t,e,r={}){const n=So(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],d=e[0],p=e[1],y=r[0]-l,v=r[1]-c,m=d-l,_=p-c,E=y*_-v*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 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 Cn(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(jo(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++)jo(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(!Cn(t.coordinates[n],e))return!1;r||(r=Cn(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(!Cn(t.coordinates[r],e))return!1;return!0}function Dc(t,e){var r=En(e),n=En(t);if(!Do(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=En(t),n=En(e);if(!Do(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 Do(t,e){return!(t[0]>e[0]||t[2]<e[2]||t[1]>e[1]||t[3]<e[3])}function jo(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 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 kn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var No={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",v="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,Z={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},fe={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:v}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},te="en",X={};X[te]=Z;var pe="$isDayjsObject",Ae=function(D){return D instanceof Ge||!(!D||!D[pe])},Ce=function D(S,M,j){var k;if(!S)return te;if(typeof S=="string"){var K=S.toLowerCase();X[K]&&(k=K),M&&(X[K]=M,k=K);var G=S.split("-");if(!k&&G.length>1)return D(G[0])}else{var de=S.name;X[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=fe;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[pe]=!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,pt,_e){return re&&(re[Oe]||re(j,K))||pt[Oe].slice(0,_e)},se=function(re){return ie.s(de%12||12,re,"0")},Te=Pe||function(re,Oe,pt){var _e=re<12?"AM":"PM";return pt?_e.toLowerCase():_e};return K.replace(H,function(re,Oe){return Oe||function(pt){switch(pt){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 v: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 X[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=X[te],ye.Ls=X,ye.p={},ye})})(No);var zc=No.exports;const Wr=kn(zc);let Ho;const qc=(t,e)=>{Ho=new kt(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,d])=>{const p="$or",y=[],v=(m,_)=>{const E={};d.type==="text"?E[m]=`${_}`:E[c]=`="${m}"`,y.push(E)};return Object.entries(d.state).filter(([,m])=>m).forEach(([m,_])=>v(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=Ho.search(l);i=r.enableHighlighting?Uc(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 v=_=>y.format==="date"?Wr(_).unix():_,m=Vr(p,i[c]);m?Array.isArray(m)?d[p]=s[p].min<=v(m[1])&&v(m[0])<=s[p].max:v(m)>=s[p].min&&v(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=Vr(p,i[c]),v=o[p].mode||"within";y&&(v==="within"?Bc(y,o[p].geometry):Ic(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 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 Ln(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 Io(t,e){return t*2+e}function Kc(t){return Object.keys(t).map(e=>({title:Y`${t[e].title||t[e].key}:
|
|
595
|
-
<strong>${t[e].stringifiedState}</strong>`,key:e})).filter(e=>t[e.key].dirty)}function
|
|
598
|
+
`}}Xn=new WeakSet,Zo=function(r){this.dispatchEvent(new CustomEvent("details-toggled",{detail:r,bubbles:!0,composed:!0}))},customElements.define("eox-itemfilter-expandcontainer",Ca);function Lt(t){return Array.isArray?Array.isArray(t):Is(t)==="[object Array]"}const ka=1/0;function La(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-ka?"-0":e}function Pa(t){return t==null?"":La(t)}function vt(t){return typeof t=="string"}function Ns(t){return typeof t=="number"}function Ta(t){return t===!0||t===!1||Oa(t)&&Is(t)=="[object Boolean]"}function Hs(t){return typeof t=="object"}function Oa(t){return Hs(t)&&t!==null}function st(t){return t!=null}function Mi(t){return!t.trim().length}function Is(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const ku="Extended search is not available",Ra="Incorrect 'index' type",Da=t=>`Invalid value for key ${t}`,ja=t=>`Pattern length exceeds max of ${t}.`,Na=t=>`Missing ${t} property in key`,Ha=t=>`Property 'weight' in key '${t}' must be a positive integer`,Bs=Object.prototype.hasOwnProperty;class Ia{constructor(e){this._keys=[],this._keyMap={};let r=0;e.forEach(n=>{let i=Us(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 Us(t){let e=null,r=null,n=null,i=1,s=null;if(vt(t)||Lt(t))n=t,e=zs(t),r=Si(t);else{if(!Bs.call(t,"name"))throw new Error(Na("name"));const o=t.name;if(n=o,Bs.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(Ha(o));e=zs(o),r=Si(o),s=t.getFn}return{path:e,id:r,weight:i,src:n,getFn:s}}function zs(t){return Lt(t)?t:t.split(".")}function Si(t){return Lt(t)?t.join("."):t}function Ba(t,e){let r=[],n=!1;const i=(s,o,l)=>{if(st(s))if(!o[l])r.push(s);else{let c=o[l];const d=s[c];if(!st(d))return;if(l===o.length-1&&(vt(d)||Ns(d)||Ta(d)))r.push(Pa(d));else if(Lt(d)){n=!0;for(let g=0,y=d.length;g<y;g+=1)i(d[g],o,l+1)}else o.length&&i(d,o,l+1)}};return i(t,vt(e)?e.split("."):e,0),n?r:r[0]}var J={...{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:Ba,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}};const Ua=/[^ ]+/g;function za(t=1,e=3){const r=new Map,n=Math.pow(10,e);return{get(i){const s=i.match(Ua).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 Ei{constructor({getFn:e=J.getFn,fieldNormWeight:r=J.fieldNormWeight}={}){this.norm=za(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,vt(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();vt(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(!st(e)||Mi(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(st(o)){if(Lt(o)){let l=[];const c=[{nestedArrIndex:-1,value:o}];for(;c.length;){const{nestedArrIndex:d,value:g}=c.pop();if(st(g))if(vt(g)&&!Mi(g)){let y={v:g,i:d,n:this.norm.get(g)};l.push(y)}else Lt(g)&&g.forEach((y,w)=>{c.push({nestedArrIndex:w,value:y})})}n.$[s]=l}else if(vt(o)&&!Mi(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=J.getFn,fieldNormWeight:n=J.fieldNormWeight}={}){const i=new Ei({getFn:r,fieldNormWeight:n});return i.setKeys(t.map(Us)),i.setSources(e),i.create(),i}function qa(t,{getFn:e=J.getFn,fieldNormWeight:r=J.fieldNormWeight}={}){const{keys:n,records:i}=t,s=new Ei({getFn:e,fieldNormWeight:r});return s.setKeys(n),s.setIndexRecords(i),s}function Rn(t,{errors:e=0,currentLocation:r=0,expectedLocation:n=0,distance:i=J.distance,ignoreLocation:s=J.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 Wa(t=[],e=J.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 er=32;function Va(t,e,r,{location:n=J.location,distance:i=J.distance,threshold:s=J.threshold,findAllMatches:o=J.findAllMatches,minMatchCharLength:l=J.minMatchCharLength,includeMatches:c=J.includeMatches,ignoreLocation:d=J.ignoreLocation}={}){if(e.length>er)throw new Error(ja(er));const g=e.length,y=t.length,w=Math.max(0,Math.min(n,y));let b=s,A=w;const k=l>1||c,W=k?Array(y):[];let U;for(;(U=t.indexOf(e,A))>-1;){let ge=Rn(e,{currentLocation:U,expectedLocation:w,distance:i,ignoreLocation:d});if(b=Math.min(ge,b),A=U+g,k){let xe=0;for(;xe<g;)W[U+xe]=1,xe+=1}}A=-1;let ie=[],te=1,pe=g+y;const O=1<<g-1;for(let ge=0;ge<g;ge+=1){let xe=0,Pe=pe;for(;xe<Pe;)Rn(e,{errors:ge,currentLocation:w+Pe,expectedLocation:w,distance:i,ignoreLocation:d})<=b?xe=Pe:pe=Pe,Pe=Math.floor((pe-xe)/2+xe);pe=Pe;let de=Math.max(1,w-Pe+1),Q=o?y:Math.min(w+Pe,y)+g,$e=Array(Q+2);$e[Q+1]=(1<<ge)-1;for(let P=Q;P>=de;P-=1){let C=P-1,S=r[t.charAt(C)];if(k&&(W[C]=+!!S),$e[P]=($e[P+1]<<1|1)&S,ge&&($e[P]|=(ie[P+1]|ie[P])<<1|1|ie[P+1]),$e[P]&O&&(te=Rn(e,{errors:ge,currentLocation:C,expectedLocation:w,distance:i,ignoreLocation:d}),te<=b)){if(b=te,A=C,A<=w)break;de=Math.max(1,2*w-A)}}if(Rn(e,{errors:ge+1,currentLocation:w,expectedLocation:w,distance:i,ignoreLocation:d})>b)break;ie=$e}const oe={isMatch:A>=0,score:Math.max(.001,te)};if(k){const ge=Wa(W,l);ge.length?c&&(oe.indices=ge):oe.isMatch=!1}return oe}function Ka(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 Ws{constructor(e,{location:r=J.location,threshold:n=J.threshold,distance:i=J.distance,includeMatches:s=J.includeMatches,findAllMatches:o=J.findAllMatches,minMatchCharLength:l=J.minMatchCharLength,isCaseSensitive:c=J.isCaseSensitive,ignoreLocation:d=J.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 g=(w,b)=>{this.chunks.push({pattern:w,alphabet:Ka(w),startIndex:b})},y=this.pattern.length;if(y>er){let w=0;const b=y%er,A=y-b;for(;w<A;)g(this.pattern.substr(w,er),w),w+=er;if(b){const k=y-er;g(this.pattern.substr(k),k)}}else g(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:d}=this.options;let g=[],y=0,w=!1;this.chunks.forEach(({pattern:A,alphabet:k,startIndex:W})=>{const{isMatch:U,score:ie,indices:te}=Va(e,A,k,{location:i+W,distance:s,threshold:o,findAllMatches:l,minMatchCharLength:c,includeMatches:n,ignoreLocation:d});U&&(w=!0),y+=ie,U&&te&&(g=[...g,...te])});let b={isMatch:w,score:w?y/this.chunks.length:1};return w&&n&&(b.indices=g),b}}class Ut{constructor(e){this.pattern=e}static isMultiMatch(e){return Vs(e,this.multiRegex)}static isSingleMatch(e){return Vs(e,this.singleRegex)}search(){}}function Vs(t,e){const r=t.match(e);return r?r[1]:null}class Ga extends Ut{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 Ya extends Ut{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 Fa extends Ut{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 Za extends Ut{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 Xa extends Ut{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 Ja extends Ut{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 Ks extends Ut{constructor(e,{location:r=J.location,threshold:n=J.threshold,distance:i=J.distance,includeMatches:s=J.includeMatches,findAllMatches:o=J.findAllMatches,minMatchCharLength:l=J.minMatchCharLength,isCaseSensitive:c=J.isCaseSensitive,ignoreLocation:d=J.ignoreLocation}={}){super(e),this._bitapSearch=new Ws(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 Gs extends Ut{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 Ci=[Ga,Gs,Fa,Za,Ja,Xa,Ya,Ks],Ys=Ci.length,Qa=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,el="|";function tl(t,e={}){return t.split(el).map(r=>{let n=r.trim().split(Qa).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<Ys;){const g=Ci[d];let y=g.isMultiMatch(l);y&&(i.push(new g(y,e)),c=!0)}if(!c)for(d=-1;++d<Ys;){const g=Ci[d];let y=g.isSingleMatch(l);if(y){i.push(new g(y,e));break}}}return i})}const rl=new Set([Ks.type,Gs.type]);class nl{constructor(e,{isCaseSensitive:r=J.isCaseSensitive,includeMatches:n=J.includeMatches,minMatchCharLength:i=J.minMatchCharLength,ignoreLocation:s=J.ignoreLocation,findAllMatches:o=J.findAllMatches,location:l=J.location,threshold:c=J.threshold,distance:d=J.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=tl(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 g=r[c];o.length=0,s=0;for(let y=0,w=g.length;y<w;y+=1){const b=g[y],{isMatch:A,indices:k,score:W}=b.search(e);if(A){if(s+=1,l+=W,n){const U=b.constructor.type;rl.has(U)?o=[...o,...k]:o.push(k)}}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 ki=[];function il(...t){ki.push(...t)}function Li(t,e){for(let r=0,n=ki.length;r<n;r+=1){let i=ki[r];if(i.condition(t,e))return new i(t,e)}return new Ws(t,e)}const Dn={AND:"$and",OR:"$or"},Pi={PATH:"$path",PATTERN:"$val"},Ti=t=>!!(t[Dn.AND]||t[Dn.OR]),sl=t=>!!t[Pi.PATH],ol=t=>!Lt(t)&&Hs(t)&&!Ti(t),Fs=t=>({[Dn.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Zs(t,e,{auto:r=!0}={}){const n=i=>{let s=Object.keys(i);const o=sl(i);if(!o&&s.length>1&&!Ti(i))return n(Fs(i));if(ol(i)){const c=o?i[Pi.PATH]:s[0],d=o?i[Pi.PATTERN]:i[c];if(!vt(d))throw new Error(Da(c));const g={keyId:Si(c),pattern:d};return r&&(g.searcher=Li(d,e)),g}let l={children:[],operator:s[0]};return s.forEach(c=>{const d=i[c];Lt(d)&&d.forEach(g=>{l.children.push(n(g))})}),l};return Ti(t)||(t=Fs(t)),n(t)}function al(t,{ignoreFieldNorm:e=J.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 ll(t,e){const r=t.matches;e.matches=[],st(r)&&r.forEach(n=>{if(!st(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 cl(t,e){e.score=t.score}function ul(t,e,{includeMatches:r=J.includeMatches,includeScore:n=J.includeScore}={}){const i=[];return r&&i.push(ll),n&&i.push(cl),t.map(s=>{const{idx:o}=s,l={item:e[o],refIndex:o};return i.length&&i.forEach(c=>{c(s,l)}),l})}class zt{constructor(e,r={},n){this.options={...J,...r},this.options.useExtendedSearch,this._keyStore=new Ia(this.options.keys),this.setCollection(e,n)}setCollection(e,r){if(this._docs=e,r&&!(r instanceof Ei))throw new Error(Ra);this._myIndex=r||qs(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){st(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=vt(e)?vt(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return al(c,{ignoreFieldNorm:l}),s&&c.sort(o),Ns(r)&&r>-1&&(c=c.slice(0,r)),ul(c,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e){const r=Li(e,this.options),{records:n}=this._myIndex,i=[];return n.forEach(({v:s,i:o,n:l})=>{if(!st(s))return;const{isMatch:c,score:d,indices:g}=r.searchIn(s);c&&i.push({item:s,idx:o,matches:[{score:d,value:s,norm:l,indices:g}]})}),i}_searchLogical(e){const r=Zs(e,this.options),n=(l,c,d)=>{if(!l.children){const{keyId:y,searcher:w}=l,b=this._findMatches({key:this._keyStore.get(y),value:this._myIndex.getValueForItemAtKeyId(c,y),searcher:w});return b&&b.length?[{idx:d,item:c,matches:b}]:[]}const g=[];for(let y=0,w=l.children.length;y<w;y+=1){const b=l.children[y],A=n(b,c,d);if(A.length)g.push(...A);else if(l.operator===Dn.AND)return[]}return g},i=this._myIndex.records,s={},o=[];return i.forEach(({$:l,i:c})=>{if(st(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:g})=>{s[c].matches.push(...g)}))}}),o}_searchObjectList(e){const r=Li(e,this.options),{keys:n,records:i}=this._myIndex,s=[];return i.forEach(({$:o,i:l})=>{if(!st(o))return;let c=[];n.forEach((d,g)=>{c.push(...this._findMatches({key:d,value:o[g],searcher:r}))}),c.length&&s.push({idx:l,item:o,matches:c})}),s}_findMatches({key:e,value:r,searcher:n}){if(!st(r))return[];let i=[];if(Lt(r))r.forEach(({v:s,i:o,n:l})=>{if(!st(s))return;const{isMatch:c,score:d,indices:g}=n.searchIn(s);c&&i.push({score:d,key:e,value:s,idx:o,norm:l,indices:g})});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}}zt.version="7.0.0",zt.createIndex=qs,zt.parseIndex=qa,zt.config=J,zt.parseQuery=Zs,il(nl);function Xs(t,e){const r=new zt(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 dl(t,e){const r=t.target.getAttribute("data-close").replace("|","-");e.querySelector(`#filter-${r}`).reset(),e.dispatchEvent(new CustomEvent("filter")),e.requestUpdate()}const Oi=Math.min,$r=Math.max,jn=Math.round,Nn=Math.floor,wt=t=>({x:t,y:t});function Js(t){return t.split("-")[0]}function hl(t){return t.split("-")[1]}function fl(t){return t==="x"?"y":"x"}function pl(t){return t==="y"?"height":"width"}function Qs(t){return["top","bottom"].includes(Js(t))?"y":"x"}function gl(t){return fl(Qs(t))}function eo(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 to(t,e,r){let{reference:n,floating:i}=t;const s=Qs(e),o=gl(e),l=pl(o),c=Js(e),d=s==="y",g=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 b;switch(c){case"top":b={x:g,y:n.y-i.height};break;case"bottom":b={x:g,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y};break;case"left":b={x:n.x-i.width,y};break;default:b={x:n.x,y:n.y}}switch(hl(e)){case"start":b[o]-=w*(r&&d?-1:1);break;case"end":b[o]+=w*(r&&d?-1:1);break}return b}const yl=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:g,y}=to(d,n,c),w=n,b={},A=0;for(let k=0;k<l.length;k++){const{name:W,fn:U}=l[k],{x:ie,y:te,data:pe,reset:O}=await U({x:g,y,initialPlacement:n,placement:w,strategy:i,middlewareData:b,rects:d,platform:o,elements:{reference:t,floating:e}});g=ie??g,y=te??y,b={...b,[W]:{...b[W],...pe}},O&&A<=50&&(A++,typeof O=="object"&&(O.placement&&(w=O.placement),O.rects&&(d=O.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:i}):O.rects),{x:g,y}=to(d,w,c)),k=-1)}return{x:g,y,placement:w,strategy:i,middlewareData:b}};function Hn(){return typeof window<"u"}function _r(t){return ro(t)?(t.nodeName||"").toLowerCase():"#document"}function ot(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function xt(t){var e;return(e=(ro(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ro(t){return Hn()?t instanceof Node||t instanceof ot(t).Node:!1}function pt(t){return Hn()?t instanceof Element||t instanceof ot(t).Element:!1}function $t(t){return Hn()?t instanceof HTMLElement||t instanceof ot(t).HTMLElement:!1}function no(t){return!Hn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ot(t).ShadowRoot}function rn(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=gt(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function bl(t){return["table","td","th"].includes(_r(t))}function In(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Ri(t){const e=Di(),r=pt(t)?gt(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 ml(t){let e=qt(t);for(;$t(e)&&!Ar(e);){if(Ri(e))return e;if(In(e))return null;e=qt(e)}return null}function Di(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ar(t){return["html","body","#document"].includes(_r(t))}function gt(t){return ot(t).getComputedStyle(t)}function Bn(t){return pt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function qt(t){if(_r(t)==="html")return t;const e=t.assignedSlot||t.parentNode||no(t)&&t.host||xt(t);return no(e)?e.host:e}function io(t){const e=qt(t);return Ar(e)?t.ownerDocument?t.ownerDocument.body:t.body:$t(e)&&rn(e)?e:io(e)}function nn(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=io(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),o=ot(i);if(s){const l=ji(o);return e.concat(o,o.visualViewport||[],rn(i)?i:[],l&&r?nn(l):[])}return e.concat(i,nn(i,[],r))}function ji(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function so(t){const e=gt(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=$t(t),s=i?t.offsetWidth:r,o=i?t.offsetHeight:n,l=jn(r)!==s||jn(n)!==o;return l&&(r=s,n=o),{width:r,height:n,$:l}}function Ni(t){return pt(t)?t:t.contextElement}function Mr(t){const e=Ni(t);if(!$t(e))return wt(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:s}=so(e);let o=(s?jn(r.width):r.width)/n,l=(s?jn(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const vl=wt(0);function oo(t){const e=ot(t);return!Di()||!e.visualViewport?vl:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function wl(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==ot(t)?!1:e}function tr(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),s=Ni(t);let o=wt(1);e&&(n?pt(n)&&(o=Mr(n)):o=Mr(t));const l=wl(s,r,n)?oo(s):wt(0);let c=(i.left+l.x)/o.x,d=(i.top+l.y)/o.y,g=i.width/o.x,y=i.height/o.y;if(s){const w=ot(s),b=n&&pt(n)?ot(n):n;let A=w,k=ji(A);for(;k&&n&&b!==A;){const W=Mr(k),U=k.getBoundingClientRect(),ie=gt(k),te=U.left+(k.clientLeft+parseFloat(ie.paddingLeft))*W.x,pe=U.top+(k.clientTop+parseFloat(ie.paddingTop))*W.y;c*=W.x,d*=W.y,g*=W.x,y*=W.y,c+=te,d+=pe,A=ot(k),k=ji(A)}}return eo({width:g,height:y,x:c,y:d})}function Hi(t,e){const r=Bn(t).scrollLeft;return e?e.left+r:tr(xt(t)).left+r}function ao(t,e,r){r===void 0&&(r=!1);const n=t.getBoundingClientRect(),i=n.left+e.scrollLeft-(r?0:Hi(t,n)),s=n.top+e.scrollTop;return{x:i,y:s}}function xl(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t;const s=i==="fixed",o=xt(n),l=e?In(e.floating):!1;if(n===o||l&&s)return r;let c={scrollLeft:0,scrollTop:0},d=wt(1);const g=wt(0),y=$t(n);if((y||!y&&!s)&&((_r(n)!=="body"||rn(o))&&(c=Bn(n)),$t(n))){const b=tr(n);d=Mr(n),g.x=b.x+n.clientLeft,g.y=b.y+n.clientTop}const w=o&&!y&&!s?ao(o,c,!0):wt(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-c.scrollLeft*d.x+g.x+w.x,y:r.y*d.y-c.scrollTop*d.y+g.y+w.y}}function $l(t){return Array.from(t.getClientRects())}function _l(t){const e=xt(t),r=Bn(t),n=t.ownerDocument.body,i=$r(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=$r(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Hi(t);const l=-r.scrollTop;return gt(n).direction==="rtl"&&(o+=$r(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:l}}function Al(t,e){const r=ot(t),n=xt(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=Di();(!d||d&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:o,x:l,y:c}}function Ml(t,e){const r=tr(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,s=$t(t)?Mr(t):wt(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 lo(t,e,r){let n;if(e==="viewport")n=Al(t,r);else if(e==="document")n=_l(xt(t));else if(pt(e))n=Ml(e,r);else{const i=oo(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return eo(n)}function co(t,e){const r=qt(t);return r===e||!pt(r)||Ar(r)?!1:gt(r).position==="fixed"||co(r,e)}function Sl(t,e){const r=e.get(t);if(r)return r;let n=nn(t,[],!1).filter(l=>pt(l)&&_r(l)!=="body"),i=null;const s=gt(t).position==="fixed";let o=s?qt(t):t;for(;pt(o)&&!Ar(o);){const l=gt(o),c=Ri(o);!c&&l.position==="fixed"&&(i=null),(s?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||rn(o)&&!c&&co(t,o))?n=n.filter(g=>g!==o):i=l,o=qt(o)}return e.set(t,n),n}function El(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const o=[...r==="clippingAncestors"?In(e)?[]:Sl(e,this._c):[].concat(r),n],l=o[0],c=o.reduce((d,g)=>{const y=lo(e,g,i);return d.top=$r(y.top,d.top),d.right=Oi(y.right,d.right),d.bottom=Oi(y.bottom,d.bottom),d.left=$r(y.left,d.left),d},lo(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Cl(t){const{width:e,height:r}=so(t);return{width:e,height:r}}function kl(t,e,r){const n=$t(e),i=xt(e),s=r==="fixed",o=tr(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=wt(0);if(n||!n&&!s)if((_r(e)!=="body"||rn(i))&&(l=Bn(e)),n){const w=tr(e,!0,s,e);c.x=w.x+e.clientLeft,c.y=w.y+e.clientTop}else i&&(c.x=Hi(i));const d=i&&!n&&!s?ao(i,l):wt(0),g=o.left+l.scrollLeft-c.x-d.x,y=o.top+l.scrollTop-c.y-d.y;return{x:g,y,width:o.width,height:o.height}}function Ii(t){return gt(t).position==="static"}function uo(t,e){if(!$t(t)||gt(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return xt(t)===r&&(r=r.ownerDocument.body),r}function ho(t,e){const r=ot(t);if(In(t))return r;if(!$t(t)){let i=qt(t);for(;i&&!Ar(i);){if(pt(i)&&!Ii(i))return i;i=qt(i)}return r}let n=uo(t,e);for(;n&&bl(n)&&Ii(n);)n=uo(n,e);return n&&Ar(n)&&Ii(n)&&!Ri(n)?r:n||ml(t)||r}const Ll=async function(t){const e=this.getOffsetParent||ho,r=this.getDimensions,n=await r(t.floating);return{reference:kl(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Pl(t){return gt(t).direction==="rtl"}const Tl={convertOffsetParentRelativeRectToViewportRelativeRect:xl,getDocumentElement:xt,getClippingRect:El,getOffsetParent:ho,getElementRects:Ll,getClientRects:$l,getDimensions:Cl,getScale:Mr,isElement:pt,isRTL:Pl};function Ol(t,e){let r=null,n;const i=xt(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:g,width:y,height:w}=t.getBoundingClientRect();if(l||e(),!y||!w)return;const b=Nn(g),A=Nn(i.clientWidth-(d+y)),k=Nn(i.clientHeight-(g+w)),W=Nn(d),ie={rootMargin:-b+"px "+-A+"px "+-k+"px "+-W+"px",threshold:$r(0,Oi(1,c))||1};let te=!0;function pe(O){const oe=O[0].intersectionRatio;if(oe!==c){if(!te)return o();oe?o(!1,oe):n=setTimeout(()=>{o(!1,1e-7)},1e3)}te=!1}try{r=new IntersectionObserver(pe,{...ie,root:i.ownerDocument})}catch{r=new IntersectionObserver(pe,ie)}r.observe(t)}return o(!0),s}function Rl(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=Ni(t),g=i||s?[...d?nn(d):[],...nn(e)]:[];g.forEach(U=>{i&&U.addEventListener("scroll",r,{passive:!0}),s&&U.addEventListener("resize",r)});const y=d&&l?Ol(d,r):null;let w=-1,b=null;o&&(b=new ResizeObserver(U=>{let[ie]=U;ie&&ie.target===d&&b&&(b.unobserve(e),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var te;(te=b)==null||te.observe(e)})),r()}),d&&!c&&b.observe(d),b.observe(e));let A,k=c?tr(t):null;c&&W();function W(){const U=tr(t);k&&(U.x!==k.x||U.y!==k.y||U.width!==k.width||U.height!==k.height)&&r(),k=U,A=requestAnimationFrame(W)}return r(),()=>{var U;g.forEach(ie=>{i&&ie.removeEventListener("scroll",r),s&&ie.removeEventListener("resize",r)}),y==null||y(),(U=b)==null||U.disconnect(),b=null,c&&cancelAnimationFrame(A)}}const Dl=(t,e,r)=>{const n=new Map,i={platform:Tl,...r},s={...i.platform,_c:n};return yl(t,e,{...i,platform:s})};function jl(t){const e=t.renderRoot.querySelector(".inline-container-wrapper"),r=t.renderRoot.querySelector("[popover]");return Rl(e,r,()=>{r.matches(":popover-open")&&Dl(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 fo(t){t.renderRoot.querySelector("#eox-itemfilter-input-search").value="",Xs({target:{value:""}},t)}function Nl(t,e){e.inlineMode&&t.stopPropagation()}function Hl(t){t.inlineMode&&(t.showDropdown=!0)}function Il(t,e){e.inlineMode&&(t.stopPropagation(),e.showDropdown=!0)}function Bl(t,e){e.inlineMode&&t.key==="Escape"&&e.showDropdown&&(fo(e),e.showDropdown=!1)}function Ul(t,e){e.inlineMode&&t.target.tagName!=="DROPDOWN-FORM"&&t.target.tagName!=="EOX-ITEMFILTER"&&e.showDropdown&&(fo(e),e.showDropdown=!1)}function zl(t,e){var r=0,n=0,i=0,s=0,o=0,l=0,c=0,d=0,g=null,y=null,w=t[0],b=t[1],A=e.length;for(r;r<A;r++){n=0;var k=e[r].length-1,W=e[r];if(g=W[0],g[0]!==W[k][0]&&g[1]!==W[k][1])throw new Error("First and last coordinates in a ring must be the same");for(o=g[0]-w,l=g[1]-b,n;n<k;n++){if(y=W[n+1],d=y[1]-b,l<0&&d<0||l>0&&d>0){g=y,l=d,o=g[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}g=y,l=d,o=c}}return i%2!==0}function rr(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 ql(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(!po(t[0])||!po(t[1]))throw new Error("coordinates must contain numbers");return rr({type:"Point",coordinates:t},e,r)}function Wl(t,e,r={}){if(t.length<2)throw new Error("coordinates must be an array of two or more positions");return rr({type:"LineString",coordinates:t},e,r)}function Bi(t,e={}){const r={type:"FeatureCollection"};return e.id&&(r.id=e.id),e.bbox&&(r.bbox=e.bbox),r.features=t,r}function Vl(t,e,r={}){return rr({type:"MultiLineString",coordinates:t},e,r)}function po(t){return!isNaN(t)&&t!==null&&!Array.isArray(t)}function go(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 Kl(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 Sr(t){return t.type==="Feature"?t.geometry:t}function ct(t,e,r={}){if(!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");const n=go(t),i=Sr(e),s=i.type,o=e.bbox;let l=i.coordinates;if(o&&Gl(n,o)===!1)return!1;s==="Polygon"&&(l=[l]);let c=!1;for(var d=0;d<l.length;++d){const g=zl(n,l[d]);if(g===0)return!r.ignoreBoundary;g&&(c=!0)}return c}function Gl(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}class yo{constructor(e=[],r=Yl){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 Yl(t,e){return t<e?-1:t>e?1:0}function bo(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 Fl(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 mo{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 Zl(t,e){if(t.type==="FeatureCollection"){const r=t.features;for(let n=0;n<r.length;n++)vo(r[n],e)}else vo(t,e)}let Un=0,zn=0,qn=0;function vo(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;zn=zn+1;for(let c=0;c<n[i][s].length-1;c++){l=n[i][s][c+1];const d=new mo(o,Un,zn,qn),g=new mo(l,Un,zn,qn+1);d.otherEvent=g,g.otherEvent=d,bo(d,g)>0?(g.isLeftEndpoint=!0,d.isLeftEndpoint=!1):(d.isLeftEndpoint=!0,g.isLeftEndpoint=!1),e.push(d),e.push(g),o=l,qn=qn+1}}Un=Un+1}class Xl{constructor(e){this.leftSweepEvent=e,this.rightSweepEvent=e.otherEvent}}function Jl(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,g=(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(g===0)return!1;const b=y/g,A=w/g;if(b>=0&&b<=1&&A>=0&&A<=1){const k=r+b*(i-r),W=n+b*(s-n);return[k,W]}return!1}function Ql(t,e){e=e||!1;const r=[],n=new yo([],Fl);for(;t.length;){const i=t.pop();if(i.isLeftEndpoint){const s=new Xl(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=Jl(s,l);c!==!1&&r.push(c)}n.push(s)}else i.isLeftEndpoint===!1&&n.pop()}return r}function ec(t,e){const r=new yo([],bo);return Zl(t,r),Ql(r,e)}var tc=ec;function Ui(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(rr(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(rr(e));const o=tc(Bi(s),i);let l=[];if(n){const c={};o.forEach(d=>{const g=d.join(",");c[g]||(c[g]=!0,l.push(d))})}else l=o;return Bi(l.map(c=>ql(c)))}function wo(t,e,r){if(t!==null)for(var n,i,s,o,l,c,d,g=0,y=0,w,b=t.type,A=b==="FeatureCollection",k=b==="Feature",W=A?t.features.length:1,U=0;U<W;U++){d=A?t.features[U].geometry:k?t.geometry:t,w=d?d.type==="GeometryCollection":!1,l=w?d.geometries.length:1;for(var ie=0;ie<l;ie++){var te=0,pe=0;if(o=w?d.geometries[ie]:d,o!==null){c=o.coordinates;var O=o.type;switch(g=0,O){case null:break;case"Point":if(e(c,y,U,te,pe)===!1)return!1;y++,te++;break;case"LineString":case"MultiPoint":for(n=0;n<c.length;n++){if(e(c[n],y,U,te,pe)===!1)return!1;y++,O==="MultiPoint"&&te++}O==="LineString"&&te++;break;case"Polygon":case"MultiLineString":for(n=0;n<c.length;n++){for(i=0;i<c[n].length-g;i++){if(e(c[n][i],y,U,te,pe)===!1)return!1;y++}O==="MultiLineString"&&te++,O==="Polygon"&&pe++}O==="Polygon"&&te++;break;case"MultiPolygon":for(n=0;n<c.length;n++){for(pe=0,i=0;i<c[n].length;i++){for(s=0;s<c[n][i].length-g;s++){if(e(c[n][i][s],y,U,te,pe)===!1)return!1;y++}pe++}te++}break;case"GeometryCollection":for(n=0;n<o.geometries.length;n++)if(wo(o.geometries[n],e)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function rc(t,e){var r,n,i,s,o,l,c,d,g,y,w=0,b=t.type==="FeatureCollection",A=t.type==="Feature",k=b?t.features.length:1;for(r=0;r<k;r++){for(l=b?t.features[r].geometry:A?t.geometry:t,d=b?t.features[r].properties:A?t.properties:{},g=b?t.features[r].bbox:A?t.bbox:void 0,y=b?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,d,g,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,g,y)===!1)return!1;break}case"GeometryCollection":{for(n=0;n<s.geometries.length;n++)if(e(s.geometries[n],w,d,g,y)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}w++}}function Wn(t,e){rc(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(rr(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 g=r.coordinates[d],y={type:c,coordinates:g};if(e(rr(y,i),n,d)===!1)return!1}})}function zi(t,e={}){const r=Sr(t);switch(!e.properties&&t.type==="Feature"&&(e.properties=t.properties),r.type){case"Polygon":return nc(r,e);case"MultiPolygon":return ic(r,e);default:throw new Error("invalid poly")}}function nc(t,e={}){const n=Sr(t).coordinates,i=e.properties?e.properties:t.type==="Feature"?t.properties:{};return xo(n,i)}function ic(t,e={}){const n=Sr(t).coordinates,i=e.properties?e.properties:t.type==="Feature"?t.properties:{},s=[];return n.forEach(o=>{s.push(xo(o,i))}),Bi(s)}function xo(t,e){return t.length>1?Vl(t,e):Wl(t[0],e)}function sc(t,e,r={}){var n;const i=(n=r.ignoreSelfIntersections)!=null?n:!1;let s=!0;return Wn(t,o=>{Wn(e,l=>{if(s===!1)return!1;s=oc(o.geometry,l.geometry,i)})}),s}function oc(t,e,r){switch(t.type){case"Point":switch(e.type){case"Point":return!uc(t.coordinates,e.coordinates);case"LineString":return!$o(e,t);case"Polygon":return!ct(t,e)}break;case"LineString":switch(e.type){case"Point":return!$o(t,e);case"LineString":return!ac(t,e,r);case"Polygon":return!_o(e,t,r)}break;case"Polygon":switch(e.type){case"Point":return!ct(e,t);case"LineString":return!_o(t,e,r);case"Polygon":return!lc(e,t,r)}}return!1}function $o(t,e){for(let r=0;r<t.coordinates.length-1;r++)if(cc(t.coordinates[r],t.coordinates[r+1],e.coordinates))return!0;return!1}function ac(t,e,r){return Ui(t,e,{ignoreSelfIntersections:r}).features.length>0}function _o(t,e,r){for(const i of e.coordinates)if(ct(i,t))return!0;return Ui(e,zi(t),{ignoreSelfIntersections:r}).features.length>0}function lc(t,e,r){for(const i of t.coordinates[0])if(ct(i,e))return!0;for(const i of e.coordinates[0])if(ct(i,t))return!0;return Ui(zi(t),zi(e),{ignoreSelfIntersections:r}).features.length>0}function cc(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 uc(t,e){return t[0]===e[0]&&t[1]===e[1]}function dc(t,e,r={}){var n;const i=(n=r.ignoreSelfIntersections)!=null?n:!1;let s=!1;return Wn(t,o=>{Wn(e,l=>{if(s===!0)return!0;s=!sc(o.geometry,l.geometry,{ignoreSelfIntersections:i})})}),s}var hc=dc;function Vn(t,e={}){if(t.bbox!=null&&e.recompute!==!0)return t.bbox;const r=[1/0,1/0,-1/0,-1/0];return wo(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 Kn(t,e,r={}){const n=go(t),i=Kl(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")),fc(i[s],i[s+1],n,o,typeof r.epsilon>"u"?null:r.epsilon))return!0}return!1}function fc(t,e,r,n,i){const s=r[0],o=r[1],l=t[0],c=t[1],d=e[0],g=e[1],y=r[0]-l,w=r[1]-c,b=d-l,A=g-c,k=y*A-w*b;if(i!==null){if(Math.abs(k)>i)return!1}else if(k!==0)return!1;if(n){if(n==="start")return Math.abs(b)>=Math.abs(A)?b>0?l<s&&s<=d:d<=s&&s<l:A>0?c<o&&o<=g:g<=o&&o<c;if(n==="end")return Math.abs(b)>=Math.abs(A)?b>0?l<=s&&s<d:d<s&&s<=l:A>0?c<=o&&o<g:g<o&&o<=c;if(n==="both")return Math.abs(b)>=Math.abs(A)?b>0?l<s&&s<d:d<s&&s<l:A>0?c<o&&o<g:g<o&&o<c}else return Math.abs(b)>=Math.abs(A)?b>0?l<=s&&s<=d:d<=s&&s<=l:A>0?c<=o&&o<=g:g<=o&&o<=c;return!1}function pc(t,e){var r=Sr(t),n=Sr(e),i=r.type,s=n.type;switch(i){case"Point":switch(s){case"MultiPoint":return gc(r,n);case"LineString":return Kn(r,n,{ignoreEndVertices:!0});case"Polygon":case"MultiPolygon":return ct(r,n,{ignoreBoundary:!0});default:throw new Error("feature2 "+s+" geometry not supported")}case"MultiPoint":switch(s){case"MultiPoint":return yc(r,n);case"LineString":return bc(r,n);case"Polygon":case"MultiPolygon":return mc(r,n);default:throw new Error("feature2 "+s+" geometry not supported")}case"LineString":switch(s){case"LineString":return vc(r,n);case"Polygon":case"MultiPolygon":return wc(r,n);default:throw new Error("feature2 "+s+" geometry not supported")}case"Polygon":switch(s){case"Polygon":case"MultiPolygon":return xc(r,n);default:throw new Error("feature2 "+s+" geometry not supported")}default:throw new Error("feature1 "+i+" geometry not supported")}}function gc(t,e){var r,n=!1;for(r=0;r<e.coordinates.length;r++)if(Mo(e.coordinates[r],t.coordinates)){n=!0;break}return n}function yc(t,e){for(var r=0;r<t.coordinates.length;r++){for(var n=!1,i=0;i<e.coordinates.length;i++)Mo(t.coordinates[r],e.coordinates[i])&&(n=!0);if(!n)return!1}return!0}function bc(t,e){for(var r=!1,n=0;n<t.coordinates.length;n++){if(!Kn(t.coordinates[n],e))return!1;r||(r=Kn(t.coordinates[n],e,{ignoreEndVertices:!0}))}return r}function mc(t,e){for(var r=!0,n=!1,i=0;i<t.coordinates.length;i++){if(n=ct(t.coordinates[i],e),!n){r=!1;break}n=ct(t.coordinates[i],e,{ignoreBoundary:!0})}return r&&n}function vc(t,e){for(var r=0;r<t.coordinates.length;r++)if(!Kn(t.coordinates[r],e))return!1;return!0}function wc(t,e){var r=Vn(e),n=Vn(t);if(!Ao(r,n))return!1;for(var i=!1,s=0;s<t.coordinates.length;s++){if(!ct(t.coordinates[s],e))return!1;if(i||(i=ct(t.coordinates[s],e,{ignoreBoundary:!0})),!i&&s<t.coordinates.length-1){var o=$c(t.coordinates[s],t.coordinates[s+1]);i=ct(o,e,{ignoreBoundary:!0})}}return i}function xc(t,e){var r=Vn(t),n=Vn(e);if(!Ao(n,r))return!1;for(var i=0;i<t.coordinates[0].length;i++)if(!ct(t.coordinates[0][i],e))return!1;return!0}function Ao(t,e){return!(t[0]>e[0]||t[2]<e[2]||t[1]>e[1]||t[3]<e[3])}function Mo(t,e){return t[0]===e[0]&&t[1]===e[1]}function $c(t,e){return[(t[0]+e[0])/2,(t[1]+e[1])/2]}var _c=pc;const Ac=(t,e)=>e?hc(t,e):!0,Mc=(t,e)=>e?_c(t,e):!0;function Sc(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 g=d[1]+1;l+=[s.substring(c,d[0]),`<mark class="${e}">`,s.substring(d[0],g),"</mark>"].join(""),c=g}),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 ut=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yn={exports:{}},Ec=Yn.exports,So;function Cc(){return So||(So=1,function(t,e){(function(r,n){t.exports=n()})(Ec,function(){var r=1e3,n=6e4,i=36e5,s="millisecond",o="second",l="minute",c="hour",d="day",g="week",y="month",w="quarter",b="year",A="date",k="Invalid Date",W=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,U=/\[([^\]]+)]|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,ie={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(P){var C=["th","st","nd","rd"],S=P%100;return"["+P+(C[(S-20)%10]||C[S]||C[0])+"]"}},te=function(P,C,S){var H=String(P);return!H||H.length>=C?P:""+Array(C+1-H.length).join(S)+P},pe={s:te,z:function(P){var C=-P.utcOffset(),S=Math.abs(C),H=Math.floor(S/60),L=S%60;return(C<=0?"+":"-")+te(H,2,"0")+":"+te(L,2,"0")},m:function P(C,S){if(C.date()<S.date())return-P(S,C);var H=12*(S.year()-C.year())+(S.month()-C.month()),L=C.clone().add(H,y),V=S-L<0,K=C.clone().add(H+(V?-1:1),y);return+(-(H+(S-L)/(V?L-K:K-L))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:y,y:b,w:g,d,D:A,h:c,m:l,s:o,ms:s,Q:w}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},O="en",oe={};oe[O]=ie;var ge="$isDayjsObject",xe=function(P){return P instanceof $e||!(!P||!P[ge])},Pe=function P(C,S,H){var L;if(!C)return O;if(typeof C=="string"){var V=C.toLowerCase();oe[V]&&(L=V),S&&(oe[V]=S,L=V);var K=C.split("-");if(!L&&K.length>1)return P(K[0])}else{var se=C.name;oe[se]=C,L=se}return!H&&L&&(O=L),L||!H&&O},de=function(P,C){if(xe(P))return P.clone();var S=typeof C=="object"?C:{};return S.date=P,S.args=arguments,new $e(S)},Q=pe;Q.l=Pe,Q.i=xe,Q.w=function(P,C){return de(P,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var $e=function(){function P(S){this.$L=Pe(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[ge]=!0}var C=P.prototype;return C.parse=function(S){this.$d=function(H){var L=H.date,V=H.utc;if(L===null)return new Date(NaN);if(Q.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var K=L.match(W);if(K){var se=K[2]-1||0,be=(K[7]||"0").substring(0,3);return V?new Date(Date.UTC(K[1],se,K[3]||1,K[4]||0,K[5]||0,K[6]||0,be)):new Date(K[1],se,K[3]||1,K[4]||0,K[5]||0,K[6]||0,be)}}return new Date(L)}(S),this.init()},C.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},C.$utils=function(){return Q},C.isValid=function(){return this.$d.toString()!==k},C.isSame=function(S,H){var L=de(S);return this.startOf(H)<=L&&L<=this.endOf(H)},C.isAfter=function(S,H){return de(S)<this.startOf(H)},C.isBefore=function(S,H){return this.endOf(H)<de(S)},C.$g=function(S,H,L){return Q.u(S)?this[H]:this.set(L,S)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(S,H){var L=this,V=!!Q.u(H)||H,K=Q.p(S),se=function(Me,ne){var Ne=Q.w(L.$u?Date.UTC(L.$y,ne,Me):new Date(L.$y,ne,Me),L);return V?Ne:Ne.endOf(d)},be=function(Me,ne){return Q.w(L.toDate()[Me].apply(L.toDate("s"),(V?[0,0,0,0]:[23,59,59,999]).slice(ne)),L)},ke=this.$W,De=this.$M,Be=this.$D,Te="set"+(this.$u?"UTC":"");switch(K){case b:return V?se(1,0):se(31,11);case y:return V?se(1,De):se(0,De+1);case g:var re=this.$locale().weekStart||0,Z=(ke<re?ke+7:ke)-re;return se(V?Be-Z:Be+(6-Z),De);case d:case A:return be(Te+"Hours",0);case c:return be(Te+"Minutes",1);case l:return be(Te+"Seconds",2);case o:return be(Te+"Milliseconds",3);default:return this.clone()}},C.endOf=function(S){return this.startOf(S,!1)},C.$set=function(S,H){var L,V=Q.p(S),K="set"+(this.$u?"UTC":""),se=(L={},L[d]=K+"Date",L[A]=K+"Date",L[y]=K+"Month",L[b]=K+"FullYear",L[c]=K+"Hours",L[l]=K+"Minutes",L[o]=K+"Seconds",L[s]=K+"Milliseconds",L)[V],be=V===d?this.$D+(H-this.$W):H;if(V===y||V===b){var ke=this.clone().set(A,1);ke.$d[se](be),ke.init(),this.$d=ke.set(A,Math.min(this.$D,ke.daysInMonth())).$d}else se&&this.$d[se](be);return this.init(),this},C.set=function(S,H){return this.clone().$set(S,H)},C.get=function(S){return this[Q.p(S)]()},C.add=function(S,H){var L,V=this;S=Number(S);var K=Q.p(H),se=function(De){var Be=de(V);return Q.w(Be.date(Be.date()+Math.round(De*S)),V)};if(K===y)return this.set(y,this.$M+S);if(K===b)return this.set(b,this.$y+S);if(K===d)return se(1);if(K===g)return se(7);var be=(L={},L[l]=n,L[c]=i,L[o]=r,L)[K]||1,ke=this.$d.getTime()+S*be;return Q.w(ke,this)},C.subtract=function(S,H){return this.add(-1*S,H)},C.format=function(S){var H=this,L=this.$locale();if(!this.isValid())return L.invalidDate||k;var V=S||"YYYY-MM-DDTHH:mm:ssZ",K=Q.z(this),se=this.$H,be=this.$m,ke=this.$M,De=L.weekdays,Be=L.months,Te=L.meridiem,re=function(ne,Ne,ht,we){return ne&&(ne[Ne]||ne(H,V))||ht[Ne].slice(0,we)},Z=function(ne){return Q.s(se%12||12,ne,"0")},Me=Te||function(ne,Ne,ht){var we=ne<12?"AM":"PM";return ht?we.toLowerCase():we};return V.replace(U,function(ne,Ne){return Ne||function(ht){switch(ht){case"YY":return String(H.$y).slice(-2);case"YYYY":return Q.s(H.$y,4,"0");case"M":return ke+1;case"MM":return Q.s(ke+1,2,"0");case"MMM":return re(L.monthsShort,ke,Be,3);case"MMMM":return re(Be,ke);case"D":return H.$D;case"DD":return Q.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return re(L.weekdaysMin,H.$W,De,2);case"ddd":return re(L.weekdaysShort,H.$W,De,3);case"dddd":return De[H.$W];case"H":return String(se);case"HH":return Q.s(se,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return Me(se,be,!0);case"A":return Me(se,be,!1);case"m":return String(be);case"mm":return Q.s(be,2,"0");case"s":return String(H.$s);case"ss":return Q.s(H.$s,2,"0");case"SSS":return Q.s(H.$ms,3,"0");case"Z":return K}return null}(ne)||K.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(S,H,L){var V,K=this,se=Q.p(H),be=de(S),ke=(be.utcOffset()-this.utcOffset())*n,De=this-be,Be=function(){return Q.m(K,be)};switch(se){case b:V=Be()/12;break;case y:V=Be();break;case w:V=Be()/3;break;case g:V=(De-ke)/6048e5;break;case d:V=(De-ke)/864e5;break;case c:V=De/i;break;case l:V=De/n;break;case o:V=De/r;break;default:V=De}return L?V:Q.a(V)},C.daysInMonth=function(){return this.endOf(y).$D},C.$locale=function(){return oe[this.$L]},C.locale=function(S,H){if(!S)return this.$L;var L=this.clone(),V=Pe(S,H,!0);return V&&(L.$L=V),L},C.clone=function(){return Q.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},P}(),ze=$e.prototype;return de.prototype=ze,[["$ms",s],["$s",o],["$m",l],["$H",c],["$W",d],["$M",y],["$y",b],["$D",A]].forEach(function(P){ze[P[1]]=function(C){return this.$g(C,P[0],P[1])}}),de.extend=function(P,C){return P.$i||(P(C,$e,de),P.$i=!0),de},de.locale=Pe,de.isDayjs=xe,de.unix=function(P){return de(1e3*P)},de.en=oe[O],de.Ls=oe,de.p={},de})}(Yn)),Yn.exports}var kc=Cc();const sn=Gn(kc);let Eo;const Lc=(t,e)=>{Eo=new zt(t,{threshold:.4,distance:50,includeMatches:!0,useExtendedSearch:!0,...e})},Pc=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 g="$or",y=[],w=(b,A)=>{const k={};d.type==="text"?k[b]=`${A}`:k[c]=`="${b}"`,y.push(k)};return Object.entries(d.state).filter(([,b])=>b).forEach(([b,A])=>w(b,A)),y.length>0&&l.push({[g]:y}),l},[]);let i;if(!(n.length>0)&&r.matchAllWhenEmpty!==!1)i=t;else{const l={$and:[...n]},c=Eo.search(l);i=r.enableHighlighting?Sc(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[g,y]of Object.entries(s)){const w=A=>y.format==="date"?sn(A).unix():A,b=on(g,i[c]);b?Array.isArray(b)?d[g]=s[g].min<=w(b[1])&&w(b[0])<=s[g].max:w(b)>=s[g].min&&w(b)<=s[g].max?d[g]=!0:d[g]=!1:d[g]=!0}Object.values(d).every(g=>!!g)&&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 g of Object.keys(o)){const y=on(g,i[c]),w=o[g].mode||"within";y&&(w==="within"?Mc(y,o[g].geometry):Ac(y,o[g].geometry))?d[g]=!0:d[g]=!1}Object.values(d).every(g=>!!g)&&l.push(i[c])}i=[...l]}return i};function Tc(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 Fn(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 Co(t,e){return t*2+e}function Oc(t){return Object.keys(t).map(e=>({title:ee`${t[e].title||t[e].key}:
|
|
599
|
+
<strong>${t[e].stringifiedState}</strong>`,key:e})).filter(e=>t[e.key].dirty)}function qi(t){return Object.values(t).map(e=>e.dirty).filter(e=>e).length>0}async function Rc(t,e,r){return await(await fetch(`${r.externalFilter(t,e)}`)).json()}function ko(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 on(t,e){return t!=null&&t.includes(".")?t.split(".").reduce((r,n)=>r&&r[n],e):e[t]}class Dc extends et{constructor(){super();it(this,Ce);this.filterProperties={},this.unstyled=!1,this.inlineMode=!1,this.filters={},this._handleClickOutside=ye(this,Ce,Jo).bind(this),this._handleKeyDown=ye(this,Ce,ds).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&&ye(this,Ce,cs).call(this)}disconnectedCallback(){this.inlineMode&&ye(this,Ce,us).call(this),super.disconnectedCallback()}_overlayCleanup(){}updateInline(){this.inlineMode&&this.requestUpdate()}updated(r){r.has("inlineMode")&&(this.inlineMode?ye(this,Ce,cs).call(this):ye(this,Ce,us).call(this))}render(){return ee`
|
|
596
600
|
<style>
|
|
597
|
-
${!this.unstyled&&
|
|
601
|
+
${!this.unstyled&&tn}
|
|
598
602
|
</style>
|
|
599
|
-
${this.inlineMode?
|
|
603
|
+
${this.inlineMode?ee`
|
|
600
604
|
<div
|
|
601
605
|
class="inline-container-wrapper"
|
|
602
|
-
@click="${
|
|
606
|
+
@click="${ye(this,Ce,hs)}"
|
|
603
607
|
>
|
|
604
608
|
<div class="inline-container" part="container">
|
|
605
609
|
<div class="chip-container">
|
|
606
610
|
<div class="chip-wrapper">
|
|
607
611
|
<eox-itemfilter-chips
|
|
608
|
-
.items=${
|
|
609
|
-
.controller=${{remove:r=>
|
|
612
|
+
.items=${Oc(this.filters)}
|
|
613
|
+
.controller=${{remove:r=>ye(this,Ce,ea).call(this,r)}}
|
|
610
614
|
>
|
|
611
615
|
</eox-itemfilter-chips>
|
|
612
616
|
</div>
|
|
613
617
|
|
|
614
|
-
${
|
|
618
|
+
${Qe(qi(this.filters),()=>ee`
|
|
615
619
|
<span
|
|
616
620
|
class="chip-close"
|
|
617
621
|
@click=${()=>this.dispatchEvent(new CustomEvent("reset"))}
|
|
@@ -619,15 +623,15 @@ eox-itemfilter-results li.highlighted {
|
|
|
619
623
|
`)}
|
|
620
624
|
</div>
|
|
621
625
|
<div
|
|
622
|
-
class="input-container ${
|
|
626
|
+
class="input-container ${qi(this.filters)?"dirty-filter-input":""}"
|
|
623
627
|
>
|
|
624
628
|
<input
|
|
625
629
|
autocomplete="off"
|
|
626
630
|
id="eox-itemfilter-input-search"
|
|
627
631
|
type="text"
|
|
628
|
-
@click="${
|
|
629
|
-
@focus="${
|
|
630
|
-
@input="${
|
|
632
|
+
@click="${ye(this,Ce,hs)}"
|
|
633
|
+
@focus="${ye(this,Ce,Qo)}"
|
|
634
|
+
@input="${ye(this,Ce,ta)}"
|
|
631
635
|
placeholder="Search and add filter"
|
|
632
636
|
aria-haspopup="true"
|
|
633
637
|
aria-expanded="${this.showDropdown}"
|
|
@@ -638,16 +642,16 @@ eox-itemfilter-results li.highlighted {
|
|
|
638
642
|
<div
|
|
639
643
|
class="inline-content"
|
|
640
644
|
slot="content"
|
|
641
|
-
@keydown="${
|
|
642
|
-
@click="${
|
|
643
|
-
@focus="${
|
|
645
|
+
@keydown="${ye(this,Ce,ds)}"
|
|
646
|
+
@click="${ye(this,Ce,fs)}"
|
|
647
|
+
@focus="${ye(this,Ce,fs)}"
|
|
644
648
|
>
|
|
645
649
|
<slot name="section"></slot>
|
|
646
650
|
</div>
|
|
647
651
|
</div>
|
|
648
652
|
</div>
|
|
649
|
-
`:
|
|
650
|
-
`}}
|
|
653
|
+
`:ee`<slot name="section"></slot>`}
|
|
654
|
+
`}}Ce=new WeakSet,Xo=function(){setTimeout(()=>this._overlayCleanup=jl(this))},cs=function(){document.addEventListener("click",this._handleClickOutside),document.addEventListener("focusout",this._handleClickOutside),document.addEventListener("keydown",this._handleKeyDown),ye(this,Ce,Xo).call(this)},us=function(){document.removeEventListener("click",this._handleClickOutside),document.removeEventListener("focusout",this._handleClickOutside),document.removeEventListener("keydown",this._handleKeyDown),this._overlayCleanup()},Jo=function(r){Ul(r,this)},ds=function(r){Bl(r,this)},hs=function(r){Il(r,this)},Qo=function(){Hl(this)},fs=function(r){Nl(r,this)},ea=function(r){dl(r,this)},ta=function(r){Xs(r,this)},customElements.define("eox-itemfilter-container",Dc);var Wi,Lo;function jc(){if(Lo)return Wi;Lo=1;var t="Expected a function",e=NaN,r="[object Symbol]",n=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt,c=typeof ut=="object"&&ut&&ut.Object===Object&&ut,d=typeof self=="object"&&self&&self.Object===Object&&self,g=c||d||Function("return this")(),y=Object.prototype,w=y.toString,b=Math.max,A=Math.min,k=function(){return g.Date.now()};function W(O,oe,ge){var xe,Pe,de,Q,$e,ze,P=0,C=!1,S=!1,H=!0;if(typeof O!="function")throw new TypeError(t);oe=pe(oe)||0,U(ge)&&(C=!!ge.leading,S="maxWait"in ge,de=S?b(pe(ge.maxWait)||0,oe):de,H="trailing"in ge?!!ge.trailing:H);function L(re){var Z=xe,Me=Pe;return xe=Pe=void 0,P=re,Q=O.apply(Me,Z),Q}function V(re){return P=re,$e=setTimeout(be,oe),C?L(re):Q}function K(re){var Z=re-ze,Me=re-P,ne=oe-Z;return S?A(ne,de-Me):ne}function se(re){var Z=re-ze,Me=re-P;return ze===void 0||Z>=oe||Z<0||S&&Me>=de}function be(){var re=k();if(se(re))return ke(re);$e=setTimeout(be,K(re))}function ke(re){return $e=void 0,H&&xe?L(re):(xe=Pe=void 0,Q)}function De(){$e!==void 0&&clearTimeout($e),P=0,xe=ze=Pe=$e=void 0}function Be(){return $e===void 0?Q:ke(k())}function Te(){var re=k(),Z=se(re);if(xe=arguments,Pe=this,ze=re,Z){if($e===void 0)return V(ze);if(S)return $e=setTimeout(be,oe),L(ze)}return $e===void 0&&($e=setTimeout(be,oe)),Q}return Te.cancel=De,Te.flush=Be,Te}function U(O){var oe=typeof O;return!!O&&(oe=="object"||oe=="function")}function ie(O){return!!O&&typeof O=="object"}function te(O){return typeof O=="symbol"||ie(O)&&w.call(O)==r}function pe(O){if(typeof O=="number")return O;if(te(O))return e;if(U(O)){var oe=typeof O.valueOf=="function"?O.valueOf():O;O=U(oe)?oe+"":oe}if(typeof O!="string")return O===0?O:+O;O=O.replace(n,"");var ge=s.test(O);return ge||o.test(O)?l(O.slice(2),ge?2:8):i.test(O)?e:+O}return Wi=W,Wi}var Nc=jc();const Zn=Gn(Nc);function Hc(t){const e=t.renderRoot.querySelector("input[type='text']");e.value="",Fn(t.filterObject),t.requestUpdate()}function Ic(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()}const Vi="ddd, D MMM YYYY HH:mm:ss";function Bc(t){if(t.filterObject=Fn(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 Uc(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"?`${sn.unix(r).format(Vi)} - ${sn.unix(n).format(Vi)}`:`${r} - ${n}`),e.dispatchEvent(new CustomEvent("filter")),r===e.filterObject.min&&n===e.filterObject.max?e.reset():e.requestUpdate()}function zc(t,e,r){const n=r.filterObject.format==="date",i=r.filterObject.state[t],s=n?sn.unix(i).format(Vi):i;return ee`<div class="range-${e}">${s}</div>`}function qc(t){Wc(-1,t),Fn(t.filterObject),t.requestUpdate()}function Wc(t,e){e.selectedItems=[],Ki(e),To(e)}function Po(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),Ki(e),To(e)}function Vc(t,e){e.query=t.target.value,e.showSuggestions=!0}function Kc(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&&Po(e.filteredSuggestions[e.highlightedIndex],e);break;case"Escape":e.showSuggestions=!1;break}}function Gc(t,e){(t.has("suggestions")||t.has("query"))&&Ki(e)}function Yc(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 Ki(t){var r,n,i;let e;t.query&&(e=new zt(t.suggestions,{threshold:.4}).search(t.query).map(o=>o.item)),t.filteredSuggestions=Yc(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 To(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 Fc(t){Fn(t.filterObject),t.renderRoot.querySelector("eox-itemfilter-spatial-filter").reset(),t.requestUpdate()}function Zc(t){t.renderRoot.querySelector("#eox-map").innerHTML="",Oo(t)}function Xc(t,e){e.filterObject.state.mode=t;const r=new CustomEvent("filter",{detail:{[e.filterObject.key]:{}}});e.dispatchEvent(r)}function Oo(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&&Jc(t.geometry),n=Tc(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 Jc(t){return`data:text/json,${encodeURIComponent(JSON.stringify({type:"FeatureCollection",features:[{type:"Feature",properties:null,geometry:t}]}))}`}class Qc extends et{constructor(){super();it(this,Jn,()=>{Ic(this)});Pn(this,"debouncedInputHandler",Zn(lt(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(){Hc(this)}createRenderRoot(){return this}render(){return Qe(this.filterObject,()=>{var r;return ee`
|
|
651
655
|
<style></style>
|
|
652
656
|
<div class="text-container">
|
|
653
657
|
<div class="text-container-wrapper">
|
|
@@ -668,27 +672,27 @@ eox-itemfilter-results li.highlighted {
|
|
|
668
672
|
<small class="error-validation"
|
|
669
673
|
>${this.filterObject.validation&&this.isValid===!1?this.filterObject.validation.message:""}</small
|
|
670
674
|
>
|
|
671
|
-
`})}}
|
|
675
|
+
`})}}Jn=new WeakMap,customElements.define("eox-itemfilter-text",Qc);function eu(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})}/**
|
|
672
676
|
* @license
|
|
673
677
|
* Copyright 2017 Google LLC
|
|
674
678
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
675
|
-
*/const
|
|
679
|
+
*/const Ro={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Do=t=>(...e)=>({_$litDirective$:t,values:e});class jo{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)}}/**
|
|
676
680
|
* @license
|
|
677
681
|
* Copyright 2020 Google LLC
|
|
678
682
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
679
|
-
*/const{I:
|
|
683
|
+
*/const{I:tu}=Aa,No=()=>document.createComment(""),an=(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(No(),i),l=n.insertBefore(No(),i);r=new tu(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 g=d.nextSibling;n.insertBefore(d,i),d=g}}}return r},nr=(t,e,r=t)=>(t._$AI(e,r),t),ru={},nu=(t,e=ru)=>t._$AH=e,iu=t=>t._$AH,Gi=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}};/**
|
|
680
684
|
* @license
|
|
681
685
|
* Copyright 2017 Google LLC
|
|
682
686
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
683
|
-
*/const
|
|
687
|
+
*/const Ho=(t,e,r)=>{const n=new Map;for(let i=e;i<=r;i++)n.set(t[i],i);return n},su=Do(class extends jo{constructor(t){if(super(t),t.type!==Ro.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=iu(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,g,y=0,w=i.length-1,b=0,A=s.length-1;for(;y<=w&&b<=A;)if(i[y]===null)y++;else if(i[w]===null)w--;else if(l[y]===o[b])c[b]=nr(i[y],s[b]),y++,b++;else if(l[w]===o[A])c[A]=nr(i[w],s[A]),w--,A--;else if(l[y]===o[A])c[A]=nr(i[y],s[A]),an(t,c[A+1],i[y]),y++,A--;else if(l[w]===o[b])c[b]=nr(i[w],s[b]),an(t,i[y],i[w]),w--,b++;else if(d===void 0&&(d=Ho(o,b,A),g=Ho(l,y,w)),d.has(l[y]))if(d.has(l[w])){const k=g.get(o[b]),W=k!==void 0?i[k]:null;if(W===null){const U=an(t,i[y]);nr(U,s[b]),c[b]=U}else c[b]=nr(W,s[b]),an(t,i[y],W),i[k]=null;b++}else Gi(i[w]),w--;else Gi(i[y]),y++;for(;b<=A;){const k=an(t,c[A+1]);nr(k,s[b]),c[b++]=k}for(;y<=w;){const k=i[y++];k!==null&&Gi(k)}return this.ut=o,nu(t,c),Bt}});/**
|
|
684
688
|
* @license
|
|
685
689
|
* Copyright 2017 Google LLC
|
|
686
690
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
687
|
-
*/class
|
|
691
|
+
*/class Yi extends jo{constructor(e){if(super(e),this.it=Ae,e.type!==Ro.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===Ae||e==null)return this._t=void 0,this.it=e;if(e===Bt)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:[]}}}Yi.directiveName="unsafeHTML",Yi.resultType=1;const Fi=Do(Yi);function ou(t,e){return ee`
|
|
688
692
|
<details
|
|
689
693
|
class="details-results"
|
|
690
694
|
@toggle=${e.handleAccordion}
|
|
691
|
-
?open=${e.config.expandResults||
|
|
695
|
+
?open=${e.config.expandResults||Ae}
|
|
692
696
|
>
|
|
693
697
|
<summary>
|
|
694
698
|
<span class="title">
|
|
@@ -699,60 +703,73 @@ eox-itemfilter-results li.highlighted {
|
|
|
699
703
|
</span>
|
|
700
704
|
</summary>
|
|
701
705
|
<div>
|
|
702
|
-
${
|
|
706
|
+
${Io(t,e)}
|
|
703
707
|
</div>
|
|
704
708
|
</details>
|
|
705
|
-
`}function
|
|
709
|
+
`}function Io(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":Ae};return ee`
|
|
706
710
|
<ul class=${e.resultType}>
|
|
707
|
-
${
|
|
708
|
-
<li
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
>
|
|
713
|
-
${
|
|
714
|
-
${
|
|
711
|
+
${su(n,o=>o.id,o=>ee`
|
|
712
|
+
<li
|
|
713
|
+
class=${s(o)}
|
|
714
|
+
@click=${()=>{e.selectedResult===o?e.selectedResult=null:e.selectedResult=o,e.dispatchEvent(new CustomEvent("result",{detail:e.selectedResult}))}}
|
|
715
|
+
>
|
|
716
|
+
<span id="${o.id}">
|
|
717
|
+
${Qe(i.subTitleProperty||i.imageProperty,()=>ee`
|
|
718
|
+
${on(i.imageProperty,o)?ee`
|
|
715
719
|
<img
|
|
716
720
|
class="image"
|
|
717
|
-
src="${
|
|
721
|
+
src="${on(i.imageProperty,o)}"
|
|
718
722
|
/>
|
|
719
|
-
`:
|
|
723
|
+
`:ee`
|
|
724
|
+
<svg
|
|
725
|
+
class="image"
|
|
726
|
+
width="800"
|
|
727
|
+
height="600"
|
|
728
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
729
|
+
>
|
|
730
|
+
<rect
|
|
731
|
+
width="800"
|
|
732
|
+
height="600"
|
|
733
|
+
fill="var(--primary-color)"
|
|
734
|
+
/>
|
|
735
|
+
</svg>
|
|
736
|
+
`}
|
|
720
737
|
<div class="title-container">
|
|
721
738
|
<span class="title"
|
|
722
|
-
>${
|
|
739
|
+
>${Fi(o[i.titleProperty])}</span
|
|
723
740
|
>
|
|
724
741
|
<span class="subtitle"
|
|
725
|
-
>${
|
|
742
|
+
>${Fi(o[i.subTitleProperty])}</span
|
|
726
743
|
>
|
|
727
744
|
</div>
|
|
728
|
-
`,()=>
|
|
745
|
+
`,()=>ee`
|
|
729
746
|
<span class="title"
|
|
730
|
-
>${
|
|
747
|
+
>${Fi(o[i.titleProperty])}</span
|
|
731
748
|
>
|
|
732
749
|
`)}
|
|
733
750
|
</span>
|
|
734
751
|
</li>
|
|
735
752
|
`)}
|
|
736
753
|
</ul>
|
|
737
|
-
`}class
|
|
754
|
+
`}class au extends et{constructor(){super();it(this,ir);this.config=null,this.filters={},this.resultAggregation=[],this.selectedResult=null,this.resultType="list"}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},resultType:{attribute:"result-type",type:String}}}aggregateResults(r,n){return eu(r,n,this)}createRenderRoot(){return this}handleAccordion(r){ko(r,this.config,this)}render(){return ee`
|
|
738
755
|
<section id="section-results">
|
|
739
756
|
<div slot="resultstitle"></div>
|
|
740
757
|
<div id="container-results" class="scroll">
|
|
741
|
-
${
|
|
758
|
+
${Qe(this.results.length<1,()=>ee`<small class="no-results">No matching items</small>`,()=>Ae)}
|
|
742
759
|
<ul id="results" part="results">
|
|
743
|
-
${
|
|
744
|
-
${
|
|
745
|
-
</div>`,()=>
|
|
760
|
+
${Qe(this.config.aggregateResults,()=>On(this.resultAggregation.filter(r=>this.aggregateResults(this.results,r).length),r=>ee`${Qe(this.aggregateResults(this.results,r).length===1&&this.config.autoSpreadSingle,()=>ee`<div style="margin-left: -8px">
|
|
761
|
+
${ye(this,ir,ps).call(this,r)}
|
|
762
|
+
</div>`,()=>ye(this,ir,ra).call(this,r))}`),()=>ye(this,ir,ps).call(this))}
|
|
746
763
|
</ul>
|
|
747
764
|
</div>
|
|
748
765
|
</section>
|
|
749
|
-
`}}
|
|
766
|
+
`}}ir=new WeakSet,ps=function(r){return Io(r,this)},ra=function(r){return ou(r,this)},customElements.define("eox-itemfilter-results",au);const lu=`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");}`,cu=`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 Bo extends et{constructor(){super();it(this,Wt);Pn(this,"debouncedInputHandler",Zn(ye(this,Wt,sa),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){Gc(r,this)}reset(){qc(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":Ae;return ee`
|
|
750
767
|
<style>
|
|
751
|
-
${!this.unstyled&&
|
|
752
|
-
${!this.unstyled&&
|
|
753
|
-
${!this.unstyled&&
|
|
768
|
+
${!this.unstyled&&tn}
|
|
769
|
+
${!this.unstyled&&lu}
|
|
770
|
+
${!this.unstyled&&cu}
|
|
754
771
|
</style>
|
|
755
|
-
${
|
|
772
|
+
${Qe(this.suggestions.length>10,()=>ee`<div class="autocomplete-container">
|
|
756
773
|
<div class="autocomplete-container-wrapper">
|
|
757
774
|
<input
|
|
758
775
|
autocomplete="off"
|
|
@@ -761,8 +778,8 @@ eox-itemfilter-results li.highlighted {
|
|
|
761
778
|
type="text"
|
|
762
779
|
.value=${this.query}
|
|
763
780
|
placeholder="${this.filterObject.placeholder||""}"
|
|
764
|
-
@input=${
|
|
765
|
-
@keydown=${
|
|
781
|
+
@input=${ye(this,Wt,na)}
|
|
782
|
+
@keydown=${ye(this,Wt,ia)}
|
|
766
783
|
@blur=${()=>this.showSuggestions=!1}
|
|
767
784
|
@focus=${()=>this.showSuggestions=!0}
|
|
768
785
|
/>
|
|
@@ -770,7 +787,7 @@ eox-itemfilter-results li.highlighted {
|
|
|
770
787
|
</div>`)}
|
|
771
788
|
<div class="select-container ${n}">
|
|
772
789
|
<ul class="${this.type}">
|
|
773
|
-
${this.filteredSuggestions.map(i=>
|
|
790
|
+
${this.filteredSuggestions.map(i=>ee`
|
|
774
791
|
<li
|
|
775
792
|
data-identifier="${i.toString().toLowerCase()}"
|
|
776
793
|
data-title="${i}"
|
|
@@ -790,28 +807,28 @@ eox-itemfilter-results li.highlighted {
|
|
|
790
807
|
`)}
|
|
791
808
|
</ul>
|
|
792
809
|
</div>
|
|
793
|
-
`}}Pt=new WeakSet,ma=function(r){wu(r,this)},va=function(r){xu(r,this)},wa=function(r){qo(r,this)},fn(Jo,"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",Jo),(()=>{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",v="max",m="step",_="round",E="type",z="theme",H="rtl",Z="btt",F="disabled",fe="keyboard-disabled",te="mousewheel-disabled",X="slider-width",pe="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,$,w,C)=>{let B=g-u;return B===0?$:(w-$)*(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,pt=(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}}))},Bn=(u,g)=>{u.dispatchEvent(new CustomEvent("onMouseDown",{detail:{nativeEvent:g}}))},Un=(u,g)=>{u.dispatchEvent(new CustomEvent("onMouseUp",{detail:{nativeEvent:g}}))},zn=(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),w={values:$||[]};w.value=$[0],w.value0=$[0],w.value1=$[0];for(let C=1;C<$.length;C++)w[`value${C+1}`]=$[C];u.dispatchEvent(new CustomEvent("change",{detail:w}))},Fr=(u,g,$)=>{let w=0,C,B,U,L,T=!1,J=(q,be,Re,Le,Me,we)=>{let Ue=w;Re!==void 0&&q>Re&&(q=Re),be!==void 0&&q<be&&(q=be),w=q;let ze=w;return(Le===Pe&&we||Le===Be&&Me)&&(ze=100-ze),Le===Pe?g.style.top=`${ze}%`:g.style.left=`${ze}%`,Ue!==w},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")},Ze=(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}}zn(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 w},get disabled(){return T},set disabled(q){oe(q)},updatePosition:J,isClicked:ne,setCallbacks:I,setAttr:Ze,getAttr:je,destroy:()=>{g.removeEventListener("keydown",N),g.removeEventListener("click",ee),g.remove()}}},Zi=u=>{if(u==null)return;if(Array.isArray(u))return u;if(u.trim()==="")return;let g=u.split(","),$=[],w=!0;for(let C=0;C<g.length;C++){let B=g[C].trim();B!==""&&($.push(B),Te(B)||(w=!1))}return w?$.map(C=>Number(C)):$},Xi=(u,g)=>g?g.findIndex($=>$===u||$.toString().trim()===u.toString().trim()):-1,Ji=u=>({updatePosition:(g,$,w,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)}%`,w?(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)}%`))}}),qn="--animate-onclick",Qi="--width",Zr="--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",Wn="--pointer-bg",Vn="--pointer-bg-hover",lt="--pointer-bg-focus",Tt="--pointer-shadow",ss="--pointer-shadow-hover",mr="--pointer-shadow-focus",Kn="--pointer-border",os="--pointer-border-hover",as="--pointer-border-focus",Zt=(u,g,$)=>{let w=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;w.set(L,T)}return w},ls=u=>{if(!u)return null;let g=u.getAttribute(Ie);if(!g)return null;let $=g.split(";"),w=[];for(let C of $)C.trim()!==""&&w.push(C.trim());return w},vr=[[Qi,X,"sliderWidth",null],[Zr,pe,"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$/],[Wn,S,"pointer#Bg",/^pointer([0-9]*)-bg$/],[Vn,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$/],[Kn,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$/]],Xt=(u,g,$)=>{let w=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=>{w=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=Zt(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}`,Ze=(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=Zt(u,Re);for(let we of Me){let Ue=we[0],ze=we[1];Ze(ee,ze,Ue)}}else{let Me=u.getAttribute(q);Ze(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=>{Ze(ee,ze,Ue)}})}catch(we){console.error(we)}}T(u.getAttribute(z)),I()})(),{setStyle:Ze,getStyle:je,get theme(){return w},set theme(N){T(N)},get pointerShapes(){return C},setPointerShape:ne}},gt="animate-on-click",wr="range-dragging",Jr=(u,g,$,w)=>{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,$,w),T(I),J(I))}},update:B,onAttrChange:L,destroy:U}},Jt=10,Gn=20,cs=(u,g)=>{let $=new Map,w=/^value([0-9]*)$/;for(let L of u.attributes){let T=L.nodeName.trim().toLowerCase();if(!w.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([Fr(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([Fr(u,T,L),$.get(L)])}return B},Yn=(u,g,$,w,C,B,U)=>{try{Object.defineProperty(u,w,{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 w=2;w<Jt;w++)$.push([`value${w}`,`ariaLabel${w}`,`pointer${w}Shape`,`pointer${w}Disabled`,w-1]);for(let w of $)Yn(u,g,w[4],w[0],w[1],w[2],w[3])},Fn=(u,g,$)=>{var w;let C=(w=$.shadowRoot)==null?void 0:w.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=Gn.toString();g.$pointer.style.zIndex=(Gn*2).toString()}},Qt=0,Ot=100,Fe=2,Zn="0.3s",ds=(u,g,$)=>{let w=$.map(f=>f[0]),C=null,B=null,U=null,L=null,T=Qt,J=Ot,ne,I,oe=Be,Ze=Fe,je=!1,N=!1,ee=!1,q=0,be=1/0,Re=!1,Le,Me,we=!1,Ue=!1,ze=!1,yt=Zn,Xn=[],en=f=>{we||(f.preventDefault&&f.preventDefault(),wt(f),window.addEventListener("mousemove",wt),window.addEventListener("mouseup",$r),Bn(u,f))},$r=f=>{we||(Le=void 0,Me=void 0,window.removeEventListener("mousemove",wt),window.removeEventListener("mouseup",$r),yt&&g.classList.add(gt),Un(u,f))},ps=(f,x)=>{if(w.length<=0)return;if(w.length===1)return w[0].isClicked(f)&&yt&&g.classList.remove(gt),w[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,yt&&g.classList.remove(gt)):Le!==void 0&&(Me=ae-Le,Le=ae)}if(!gs(f)&&!O){for(let ae of w)if(!(!ae.isClicked(f)||ae.disabled))return yt&&g.classList.remove(gt),ae;for(let ae of w)if(C===ae)return ae}let Q=1/0,ge=null;for(let ae of w){if(ae.disabled)continue;let Ve=Math.abs(x-ae.percent);Ve<Q&&(Q=Ve,ge=ae)}return ge},_r=()=>w.findIndex(f=>C===f&&!f.disabled),wt=f=>{let x;if(oe===Pe){let{height:Q,top:ge}=g.getBoundingClientRect(),ae=f.type.indexOf("mouse")!==-1?f.clientY:f.touches[0].clientY;x=Math.min(Math.max(0,ae-ge),Q)*100/Q}else{let{width:Q,left:ge}=g.getBoundingClientRect(),ae=f.type.indexOf("mouse")!==-1?f.clientX:f.touches[0].clientX;x=Math.min(Math.max(0,ae-ge),Q)*100/Q}if((je||N)&&(x=100-x),C=ps(f.target,x),C&&xr(w,C),Re&&w.length>1&&Me!==void 0){let Q=w[0],ge=w[w.length-1],ae=Q.percent+Me<0,Ve=ge.percent+Me>100;if(ae||Ve)return;for(let Mt=0;Mt<w.length;Mt++)De(Mt,w[Mt].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,ge=_r();ge!==-1&&(Q?er(ge,w[ge].percent):tr(ge,w[ge].percent))},Jn=f=>{we||Ue||(oe===Pe?N?De(f,100):De(f,0):je?tr(f,w[f].percent):er(f,w[f].percent))},Qn=f=>{we||Ue||(oe===Pe?N?De(f,0):De(f,100):je?er(f,w[f].percent):tr(f,w[f].percent))},ei=f=>{we||Ue||(oe===Pe?N?tr(f,w[f].percent):er(f,w[f].percent):je?De(f,100):De(f,0))},ti=f=>{we||Ue||(oe===Pe?N?er(f,w[f].percent):tr(f,w[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)},xt=()=>{!L||L.update({percents:ni(),values:ii(),$pointers:rn(),min:nr(),max:si(),data:nn(),step:tn(),round:Sr(),type:sn(),textMin:Mr(),textMax:$t(),rightToLeft:ct(),bottomToTop:an(),pointersOverlap:sr(),pointersMinDistance:Er(),pointersMaxDistance:on(),rangeDragging:tt(),disabled:ln(),keyboardDisabled:ir(),mousewheelDisabled:kr()})},ri=()=>{xt()},bs=f=>{if(!(ee||w.length<=1||J===T))if(f===0){let x=be*100/(J-T);return Math.max(0,w[f+1].percent-x)}else{let x=q*100/(J-T);return Math.min(w[f-1].percent+x,100)}},ms=f=>{if(!(ee||w.length<=1||J===T))if(f===w.length-1){let x=be*100/(J-T);return Math.min(w[f-1].percent+x,100)}else{let x=q*100/(J-T);return Math.max(0,w[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)]:pt(x,Ze)},Mr=()=>I!==void 0?I[T]:T,$t=()=>I!==void 0?I[J]:J,tn=()=>ne,Dt=f=>{var x;return f<=0||ee?Mr():(x=Rt(w[f-1].percent))!=null?x:""},bt=f=>{var x;return w.length<=1||f>=w.length-1||ee?$t():(x=Rt(w[f+1].percent))!=null?x:""},ni=()=>w.map(f=>f.percent),ii=()=>w.map(f=>Rt(f.percent)),rn=()=>w.map(f=>f.$pointer),nr=()=>T,si=()=>J,nn=()=>I,sn=()=>oe,Sr=()=>Ze,Er=()=>q,on=()=>be,Cr=f=>Xn[f],ct=()=>je,an=()=>N,ln=()=>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=w[f];if(!Q)return;let ge=Q.updatePosition(x,bs(f),ms(f),oe,je,N);B==null||B.updatePosition(oe,w.map(ae=>ae.percent),je,N),xt();for(let ae of w){let Ve=Rt(ae.percent);Ve!==void 0&&(ae.setAttr("aria-valuenow",Ve.toString()),ae.setAttr("aria-valuetext",Ve.toString()))}cn(),ge&&Fi(u,w.map(ae=>Rt(ae.percent)))},st=()=>{for(let f=0;f<w.length;f++)De(f,w[f].percent)},oi=(f,x)=>{T=I!==void 0?0:re(f,Qt),J=I!==void 0?I.length-1:re(x,Ot),_t(T),At(J)},cn=()=>{var f,x;for(let O=0;O<w.length;O++){let Q=w[O];Q.setAttr("aria-valuemin",((f=Dt(O))!=null?f:"").toString()),Q.setAttr("aria-valuemax",((x=bt(O))!=null?x:"").toString())}},_t=f=>{T=re(f,Qt),T>J&&(J=T+Ot),st()},At=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: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)},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},un=f=>{ee=f,st()},dn=f=>{(!Te(f)||f<0)&&(f=0),q=f},jt=f=>{(!Te(f)||f<0)&&(f=1/0),be=f},hn=f=>{we=f,g.classList.toggle("disabled",we),we?g.setAttribute("aria-disabled","true"):g.hasAttribute("aria-disabled")&&g.removeAttribute("aria-disabled")},ai=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=Zi(f),I===void 0||I.length<=0){I=void 0;return}_t(0),At(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 ge of w)ge.setAttr("aria-orientation",Q)},A=f=>{je=f,w.length>1&&Fn(w,je,u),st(),xt()},R=f=>{N=f,w.length>1&&Fn(w,N,u),st(),xt()},P=f=>{Ze=re(f,Fe),Ze<0&&(Ze=Fe),xt()},W=f=>{f==null||f.toString().trim().toLowerCase()==="false"?(yt=void 0,g.style.removeProperty(qn),g.classList.remove(gt)):(yt=f.toString(),g.style.setProperty(qn,yt),g.classList.add(gt))},xe=(f,x)=>{let O=w[f];!O||(O.setAttr("aria-label",x),Xn[f]=x)},ve=f=>{if(Le=void 0,w.length<=1){Re=!1,g.classList.remove(wr);return}Re=f,g.classList.toggle(wr,Re)},Ne=()=>{hn(_e(u.getAttribute(F))),Ue=_e(u.getAttribute(fe)),ze=_e(u.getAttribute(te));let f=Zt(u,/^pointer([0-9]*)-disabled$/,x=>_e(x));for(let x of f){let O=x[0];!w[O]||(w[O].disabled=x[1])}},qe=()=>{let f=Zt(u,/^aria-label([0-9]*)$/);for(let x of f){let O=x[0];xe(O,x[1])}},We=f=>{let x=w.length,O=w[x-1].$pointer,Q=O.cloneNode(!0);O.after(Q);let ge=Fr(u,Q,x);return ge.setCallbacks(Jn,Qn,ei,ti),w.push(ge),Pr(f,x),st(),xt(),x},He=()=>{let f=w.length,x=w[f-1];return x?(x.destroy(),w.pop(),w.length<=1&&ve(!1),st(),xt(),f-1):-1};return(()=>{var f,x;for(let Q of w)Q.setCallbacks(Jn,Qn,ei,ti);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(Z))),oi(u.getAttribute(y),u.getAttribute(v)),Tr(u.getAttribute(m)),h(u.getAttribute(p)),Lr($.map(Q=>Q[1])),un(_e(u.getAttribute(o))),dn(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=Xt(u,g,w),W((x=u.getAttribute(ke))!=null?x:Zn),g.addEventListener("mousedown",en),g.addEventListener("mouseup",$r),g.addEventListener("touchmove",wt),g.addEventListener("touchstart",wt),ze||document.addEventListener("wheel",Ar,{passive:!1}),L=Jr(u,ri,{setValues:Lr,setMin:_t,setMax:At,setStep:Tr,setPointersOverlap:un,setPointersMinDistance:dn,setPointersMaxDistance:jt,setDisabled:hn,setType:b,setRightToLeft:A,setBottomToTop:R,setRound:P,setKeyboardDisabled:ai,setMousewheelDisabled:a,setRangeDragging:ve,setData:h},{getPercents:ni,getValues:ii,getPointerElements:rn,getMin:nr,getMax:si,getStep:tn,getData:nn,getType:sn,getRound:Sr,getTextMin:Mr,getTextMax:$t,isRightToLeft:ct,isBottomToTop:an,isDisabled:ln,isKeyboardDisabled:ir,isMousewheelDisabled:kr,isPointersOverlap:sr,isRangeDraggingEnabled:tt,getPointersMinDistance:Er,getPointersMaxDistance:on}),L.init()})(),{get pointers(){return w},get styles(){return U},get pluginsManager(){return L},get min(){return Mr()},get max(){return $t()},get step(){return tn()},get pointersOverlap(){return sr()},set pointersOverlap(f){un(f)},get pointersMinDistance(){return Er()},set pointersMinDistance(f){dn(f)},get pointersMaxDistance(){return on()},set pointersMaxDistance(f){jt(f)},get disabled(){return ln()},set disabled(f){hn(f)},get data(){return nn()},get type(){return sn()},set type(f){b(f)},get rightToLeft(){return ct()},set rightToLeft(f){A(f)},get bottomToTop(){return an()},set bottomToTop(f){R(f)},get round(){return Sr()},set round(f){P(f)},get animateOnClick(){return yt},set animateOnClick(f){W(f)},get keyboardDisabled(){return ir()},set keyboardDisabled(f){ai(f)},get mousewheelDisabled(){return kr()},set mousewheelDisabled(f){a(f)},get rangeDragging(){return tt()},set rangeDragging(f){ve(f)},setMin:_t,setMax:At,setValue:Pr,setStep:Tr,setData:h,getTextValue:Rt,setAriaLabel:xe,getAriaLabel:Cr,addPointer:We,removePointer:He,destroy:()=>{g.removeEventListener("mousedown",en),g.removeEventListener("mouseup",$r),g.removeEventListener("touchmove",wt),g.removeEventListener("touchstart",wt),document.removeEventListener("wheel",Ar);for(let f of w)f.destroy();L==null||L.destroy()}}},hs=(u,g,$)=>{let w=vr.find(([L,T,J,ne])=>T.replace("#","")===g.replace(/\d+/g,""));if(w&&u.styles){let[L,T,J,ne]=w,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 v:{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 fe:{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 Z:{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 w=($=(g=this.slider)==null?void 0:g.addPointer(u))!=null?$:0;Yn(this,this.slider,w,`value${w+1}`,`ariaLabel${w+1}`,`pointerShape${w+1}`,`pointer${w+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 w=(g=this.shadowRoot)==null?void 0:g.getElementById("range-slider");if(!w)return;let C=cs(this,$);this.slider=ds(this,w,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()}},Qr=fs;window.tcRangeSlider=Qr,customElements.get("toolcool-range-slider")||customElements.define("toolcool-range-slider",Qr),customElements.get("tc-range-slider")||customElements.define("tc-range-slider",class extends Qr{})})();class Qo extends Ye{constructor(){super();Xe(this,Gt);this.filterObject={},this.tabIndex=0,this.inputHandler=le(this,Gt,xa).bind(this),this.debouncedInputHandler=Pn(this.inputHandler,0,{leading:!0})}reset(){gu(this)}createRenderRoot(){return this}render(){return Ke(this.filterObject,()=>Y`
|
|
794
|
-
${
|
|
810
|
+
`}}Wt=new WeakSet,na=function(r){Vc(r,this)},ia=function(r){Kc(r,this)},sa=function(r){Po(r,this)},Pn(Bo,"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",Bo),(()=>{var t=Object.defineProperty,e=Math.pow,r=(u,p,_)=>p in u?t(u,p,{enumerable:!0,configurable:!0,writable:!0,value:_}):u[p]=_,n=(u,p,_)=>(r(u,typeof p!="symbol"?p+"":p,_),_),i=(u,p)=>` ${p&&p.length>0?p.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",g="data",y="min",w="max",b="step",A="round",k="type",W="theme",U="rtl",ie="btt",te="disabled",pe="keyboard-disabled",O="mousewheel-disabled",oe="slider-width",ge="slider-height",xe="slider-radius",Pe="slider-bg",de="slider-bg-hover",Q="slider-bg-fill",$e="pointer-width",ze="pointer-height",P="pointer-radius",C="pointer-bg",S="pointer-bg-hover",H="pointer-bg-focus",L="pointer-shadow",V="pointer-shadow-hover",K="pointer-shadow-focus",se="pointer-border",be="pointer-border-hover",ke="pointer-border-focus",De="animate-onclick",Be="css-links",Te="vertical",re="horizontal",Z=(u,p,_,v,T)=>{let G=p-u;return G===0?_:(v-_)*(T-u)/G+_},Me=u=>!isNaN(parseFloat(u))&&isFinite(u),ne=(u,p)=>Me(u)?Number(u):p,Ne=(u,p)=>p===0?0:Math.round(u/p)*p,ht=(u,p=1/0)=>{if(p===1/0)return u;let _=e(10,p);return Math.round(u*_)/_},we=u=>u==null?!1:typeof u=="boolean"?u:u.trim().toLowerCase()==="true",un=(u,p)=>{u.dispatchEvent(new CustomEvent("onPointerClicked",{detail:{$pointer:p}}))},kr=(u,p)=>{u.dispatchEvent(new CustomEvent("onMouseDown",{detail:{nativeEvent:p}}))},Pt=(u,p)=>{u.dispatchEvent(new CustomEvent("onMouseUp",{detail:{nativeEvent:p}}))},Lr=(u,p)=>{u.dispatchEvent(new CustomEvent("onKeyDown",{detail:{nativeEvent:p}}))},dn=(u,p)=>{if(!p||p.length<=0)return;let _=p.map(T=>Me(T)?ne(T,T):T),v={values:_||[]};v.value=_[0],v.value0=_[0],v.value1=_[0];for(let T=1;T<_.length;T++)v[`value${T+1}`]=_[T];u.dispatchEvent(new CustomEvent("change",{detail:v}))},ar=(u,p,_)=>{let v=0,T,G,Y,R,j=!1,ae=(F,Ee,Ue,Ie,je,Oe)=>{let Ye=v;Ue!==void 0&&F>Ue&&(F=Ue),Ee!==void 0&&F<Ee&&(F=Ee),v=F;let Fe=v;return(Ie===Te&&Oe||Ie===re&&je)&&(Fe=100-Fe),Ie===Te?p.style.top=`${Fe}%`:p.style.left=`${Fe}%`,Ye!==v},ue=F=>F===p||p.contains(F),z=(F,Ee,Ue,Ie)=>{T=F,G=Ee,Y=Ue,R=Ie},he=F=>{j=F,p.classList.toggle("disabled",j),j?p.setAttribute("aria-disabled","true"):p.hasAttribute("aria-disabled")&&p.removeAttribute("aria-disabled")},nt=(F,Ee)=>{Ee==null?p.removeAttribute(F):p.setAttribute(F,Ee)},Ve=F=>p.getAttribute(F),B=F=>{if(!j){switch(F.key){case"ArrowLeft":{F.preventDefault(),typeof T=="function"&&T(_);break}case"ArrowRight":{F.preventDefault(),typeof G=="function"&&G(_);break}case"ArrowUp":{F.preventDefault(),typeof Y=="function"&&Y(_);break}case"ArrowDown":{F.preventDefault(),typeof R=="function"&&R(_);break}}Lr(u,F)}},ce=()=>{j||un(u,p)};return p.className=`pointer pointer-${_}`,p.addEventListener("keydown",B),p.addEventListener("click",ce),{$pointer:p,get percent(){return v},get disabled(){return j},set disabled(F){he(F)},updatePosition:ae,isClicked:ue,setCallbacks:z,setAttr:nt,getAttr:Ve,destroy:()=>{p.removeEventListener("keydown",B),p.removeEventListener("click",ce),p.remove()}}},Vt=u=>{if(u==null)return;if(Array.isArray(u))return u;if(u.trim()==="")return;let p=u.split(","),_=[],v=!0;for(let T=0;T<p.length;T++){let G=p[T].trim();G!==""&&(_.push(G),Me(G)||(v=!1))}return v?_.map(T=>Number(T)):_},lr=(u,p)=>p?p.findIndex(_=>_===u||_.toString().trim()===u.toString().trim()):-1,hn=u=>({updatePosition:(p,_,v,T)=>{if(_.length<=0)return;let G=_.length===1,Y=_[0],R=_[_.length-1];p===Te?(u.style.removeProperty("width"),u.style.removeProperty("right"),u.style.removeProperty("left"),G?u.style.height=`${Y}%`:u.style.height=`${Math.abs(Y-R)}%`,T?(u.style.bottom="0%",G?u.style.top="auto":u.style.top=`${Math.min(100-R,100-Y)}%`):(u.style.bottom="auto",G?u.style.top="0%":u.style.top=`${Math.min(Y,R)}%`)):(u.style.removeProperty("height"),u.style.removeProperty("top"),u.style.removeProperty("bottom"),G?u.style.width=`${Y}%`:u.style.width=`${Math.abs(Y-R)}%`,v?(u.style.right="0%",G?u.style.left="auto":u.style.left=`${Math.min(100-R,100-Y)}%`):(u.style.right="auto",G?u.style.left="0%":u.style.left=`${Math.min(Y,R)}%`))}}),Pr="--animate-onclick",fn="--width",cr="--height",pn="--panel-bg-border-radius",gn="--panel-bg",Tr="--panel-bg-hover",yn="--panel-bg-fill",x="--pointer-width",E="--pointer-height",q="--pointer-border-radius",Se="--pointer-bg",yt="--pointer-bg-hover",qe="--pointer-bg-focus",bt="--pointer-shadow",_t="--pointer-shadow-hover",tt="--pointer-shadow-focus",ur="--pointer-border",At="--pointer-border-hover",Tt="--pointer-border-focus",Mt=(u,p,_)=>{let v=new Map;for(let T of u.attributes){let G=T.nodeName.trim().toLowerCase();if(!p.test(G))continue;let Y=G.replace(/\D/g,"").trim(),R=Y===""||Y==="0"||Y==="1"?0:ne(Y,0)-1,j=_&&typeof _=="function"?_(T.value):T.value;v.set(R,j)}return v},Xi=u=>{if(!u)return null;let p=u.getAttribute(Be);if(!p)return null;let _=p.split(";"),v=[];for(let T of _)T.trim()!==""&&v.push(T.trim());return v},Or=[[fn,oe,"sliderWidth",null],[cr,ge,"sliderHeight",null],[pn,xe,"sliderRadius",null],[gn,Pe,"sliderBg",null],[Tr,de,"sliderBgHover",null],[yn,Q,"sliderBgFill",null],[x,$e,"pointer#Width",/^pointer([0-9]*)-width$/],[E,ze,"pointer#Height",/^pointer([0-9]*)-height$/],[q,P,"pointer#Radius",/^pointer([0-9]*)-radius$/],[Se,C,"pointer#Bg",/^pointer([0-9]*)-bg$/],[yt,S,"pointer#BgHover",/^pointer([0-9]*)-bg-hover$/],[qe,H,"pointer#BgFocus",/^pointer([0-9]*)-bg-focus$/],[bt,L,"pointer#Shadow",/^pointer([0-9]*)-shadow$/],[_t,V,"pointer#ShadowHover",/^pointer([0-9]*)-shadow-hover$/],[tt,K,"pointer#ShadowFocus",/^pointer([0-9]*)-shadow-focus$/],[ur,se,"pointer#Border",/^pointer([0-9]*)-border$/],[At,be,"pointer#BorderHover",/^pointer([0-9]*)-border-hover$/],[Tt,ke,"pointer#BorderFocus",/^pointer([0-9]*)-border-focus$/]],dr=(u,p,_)=>{let v=null,T=[],G=new Map,Y=(B,ce=p)=>{let F=[...ce.classList];for(let Ee of F)Ee.startsWith(B)&&p.classList.remove(Ee)},R=()=>{Y("shape");let B=p.querySelectorAll(".pointer");for(let ce of B)Y("shape",ce)},j=B=>{v=B,Y("theme-"),typeof B=="string"&&p.classList.add(`theme-${B}`)},ae=()=>{if(R(),!(T.length<=0)){p.classList.add("shape",`shape-${T[0]}`);for(let B=1;B<T.length;B++){let ce=T[B];if(!ce)continue;let F=p.querySelector(`.pointer-${B}`);!F||F.classList.add("shape",`shape-${ce}`)}}},ue=(B,ce)=>{T[B]=ce,ae()},z=()=>{R();let B=Mt(u,/^pointer([0-9]*)-shape$/);if(!(B.size<=0)){for(let ce of B){let F=ce[0];T[F]=ce[1]}ae()}},he=(B,ce)=>`${B}-${ce}`,nt=(B,ce,F)=>{let Ee=_[F];if(!Ee)return;let Ue=F===0?p:Ee.$pointer;if(ce==null){G.has(he(B,F))&&G.delete(he(B,F)),Ue.style.removeProperty(B);return}G.set(he(B,F),ce),Ue.style.setProperty(B,ce)},Ve=(B,ce)=>G.get(he(B,ce));return(()=>{for(let B of Or){let[ce,F,Ee,Ue]=B;if(Ue){let je=Mt(u,Ue);for(let Oe of je){let Ye=Oe[0],Fe=Oe[1];nt(ce,Fe,Ye)}}else{let je=u.getAttribute(F);nt(ce,je,0)}let Ie=[];if(Ee.indexOf("#")===-1)Ie.push([Ee,0]);else{Ie.push([Ee.replace("#",""),0]),Ie.push([Ee.replace("#","0"),0]),Ie.push([Ee.replace("#","1"),0]);for(let je=1;je<_.length;je++)Ie.push([Ee.replace("#",(je+1).toString()),je])}for(let je of Ie)try{let Oe=je[0],Ye=je[1];Object.prototype.hasOwnProperty.call(u,Oe)||Object.defineProperty(u,Oe,{get(){return Ve(ce,Ye)},set:Fe=>{nt(ce,Fe,Ye)}})}catch(Oe){console.error(Oe)}}j(u.getAttribute(W)),z()})(),{setStyle:nt,getStyle:Ve,get theme(){return v},set theme(B){j(B)},get pointerShapes(){return T},setPointerShape:ue}},St="animate-on-click",Rr="range-dragging",bn=(u,p,_,v)=>{let T=[],G=ue=>{for(let z of T)z.update&&typeof z.update=="function"&&z.update(ue)},Y=()=>{for(let ue of T)ue.destroy&&typeof ue.destroy=="function"&&ue.destroy()},R=(ue,z)=>{for(let he of T)he.onAttrChange&&typeof he.onAttrChange=="function"&&he.onAttrChange(ue,z)},j=ue=>{if(ue.gettersAndSetters){for(let z of ue.gettersAndSetters)if(!(!z.name||!z.attributes))try{Object.prototype.hasOwnProperty.call(u,z.name)||Object.defineProperty(u,z.name,z.attributes)}catch(he){console.error("defineSettersGetters error:",he)}}},ae=ue=>{var z;if(!ue.css)return;let he=(z=u.shadowRoot)==null?void 0:z.querySelector("style");!he||(he.innerHTML+=ue.css)};return{init:()=>{if(window.tcRangeSliderPlugins)for(let ue of window.tcRangeSliderPlugins){let z=ue();T.push(z),z.init&&typeof z.init=="function"&&(z.init(u,p,_,v),j(z),ae(z))}},update:G,onAttrChange:R,destroy:Y}},hr=10,ti=20,Ji=(u,p)=>{let _=new Map,v=/^value([0-9]*)$/;for(let R of u.attributes){let j=R.nodeName.trim().toLowerCase();if(!v.test(j))continue;let ae=j.replace("value","").trim(),ue=ae===""||ae==="0"||ae==="1"?0:ne(ae,0)-1,z=Me(R.value)?ne(R.value,0):R.value;_.set(ue,z)}let T=Math.max(...Array.from(_.keys())),G=[];G.push([ar(u,p,0),_.get(0)]);let Y=p;for(let R=1;R<=T;R++){let j=p.cloneNode(!0);Y.after(j),Y=j,G.push([ar(u,j,R),_.get(R)])}return G},ri=(u,p,_,v,T,G,Y)=>{try{Object.defineProperty(u,v,{configurable:!0,get(){if(!p)return;let R=p.pointers[_];if(!R)return;let j=p.getTextValue(R.percent);return Me(j)?ne(j,j):j},set:R=>{p.pointers[_]?p==null||p.setValue(R,_):p==null||p.addPointer(R)}}),Object.defineProperty(u,T,{configurable:!0,get(){var R,j;return(j=(R=p==null?void 0:p.pointers[_])==null?void 0:R.getAttr("aria-label"))!=null?j:void 0},set:R=>{!p||p.setAriaLabel(_,R)}}),Object.defineProperty(u,G,{configurable:!0,get(){var R,j;return(j=(R=p==null?void 0:p.styles)==null?void 0:R.pointerShapes[_])!=null?j:null},set:R=>{!p||!p.styles||p.styles.setPointerShape(_,R)}}),Object.defineProperty(u,Y,{configurable:!0,get(){var R;return(R=p==null?void 0:p.pointers[_].disabled)!=null?R:!1},set:R=>{if(!p)return;let j=p==null?void 0:p.pointers[_];!j||(j.disabled=R)}})}catch(R){console.error(R)}},Qi=(u,p)=>{let _=[["value","ariaLabel","pointerShape","pointerDisabled",0],["value0","ariaLabel0","pointerShape0","pointer0Disabled",0],["value1","ariaLabel1","pointerShape1","pointer1Disabled",0]];for(let v=2;v<hr;v++)_.push([`value${v}`,`ariaLabel${v}`,`pointer${v}Shape`,`pointer${v}Disabled`,v-1]);for(let v of _)ri(u,p,v[4],v[0],v[1],v[2],v[3])},ni=(u,p,_)=>{var v;let T=(v=_.shadowRoot)==null?void 0:v.querySelector(".container");if(T)for(let G of u)p?T.prepend(G.$pointer):T.append(G.$pointer)},Dr=(u,p)=>{if(!(!p||u.length<=1)){for(let _ of u)_.$pointer.style.zIndex=ti.toString();p.$pointer.style.zIndex=(ti*2).toString()}},fr=0,Kt=100,rt=2,ii="0.3s",es=(u,p,_)=>{let v=_.map(f=>f[0]),T=null,G=null,Y=null,R=null,j=fr,ae=Kt,ue,z,he=re,nt=rt,Ve=!1,B=!1,ce=!1,F=0,Ee=1/0,Ue=!1,Ie,je,Oe=!1,Ye=!1,Fe=!1,Et=ii,si=[],vn=f=>{Oe||(f.preventDefault&&f.preventDefault(),Ot(f),window.addEventListener("mousemove",Ot),window.addEventListener("mouseup",jr),kr(u,f))},jr=f=>{Oe||(Ie=void 0,je=void 0,window.removeEventListener("mousemove",Ot),window.removeEventListener("mouseup",jr),Et&&p.classList.add(St),Pt(u,f))},ns=(f,$)=>{if(v.length<=0)return;if(v.length===1)return v[0].isClicked(f)&&Et&&p.classList.remove(St),v[0];let N=ss(f);if(Ue){let fe=$,Je=yr(fe);Je!==void 0&&(fe=Ne(fe,Je)),N?(Ie=fe,je=0,Et&&p.classList.remove(St)):Ie!==void 0&&(je=fe-Ie,Ie=fe)}if(!is(f)&&!N){for(let fe of v)if(!(!fe.isClicked(f)||fe.disabled))return Et&&p.classList.remove(St),fe;for(let fe of v)if(T===fe)return fe}let le=1/0,_e=null;for(let fe of v){if(fe.disabled)continue;let Je=Math.abs($-fe.percent);Je<le&&(le=Je,_e=fe)}return _e},Nr=()=>v.findIndex(f=>T===f&&!f.disabled),Ot=f=>{let $;if(he===Te){let{height:le,top:_e}=p.getBoundingClientRect(),fe=f.type.indexOf("mouse")!==-1?f.clientY:f.touches[0].clientY;$=Math.min(Math.max(0,fe-_e),le)*100/le}else{let{width:le,left:_e}=p.getBoundingClientRect(),fe=f.type.indexOf("mouse")!==-1?f.clientX:f.touches[0].clientX;$=Math.min(Math.max(0,fe-_e),le)*100/le}if((Ve||B)&&($=100-$),T=ns(f.target,$),T&&Dr(v,T),Ue&&v.length>1&&je!==void 0){let le=v[0],_e=v[v.length-1],fe=le.percent+je<0,Je=_e.percent+je>100;if(fe||Je)return;for(let Ht=0;Ht<v.length;Ht++)We(Ht,v[Ht].percent+je);return}let N=Nr();N!==-1&&(We(N,$),T==null||T.$pointer.focus())},Hr=f=>{if(Oe||document.activeElement!==u||T!=null&&T.disabled)return;f.stopPropagation(),f.preventDefault();let $=f.deltaY<0,N=Ve||B,le=$?!N:N,_e=Nr();_e!==-1&&(le?pr(_e,v[_e].percent):gr(_e,v[_e].percent))},oi=f=>{Oe||Ye||(he===Te?B?We(f,100):We(f,0):Ve?gr(f,v[f].percent):pr(f,v[f].percent))},ai=f=>{Oe||Ye||(he===Te?B?We(f,0):We(f,100):Ve?pr(f,v[f].percent):gr(f,v[f].percent))},li=f=>{Oe||Ye||(he===Te?B?gr(f,v[f].percent):pr(f,v[f].percent):Ve?We(f,100):We(f,0))},ci=f=>{Oe||Ye||(he===Te?B?pr(f,v[f].percent):gr(f,v[f].percent):Ve?We(f,0):We(f,100))},is=f=>f.classList.contains("panel"),ss=f=>f.classList.contains("panel-fill"),pr=(f,$)=>{if($===void 0)return;let N=yr($);N==null&&(N=1),$-=N,$<0&&($=0),We(f,$)},gr=(f,$)=>{if($===void 0)return;let N=yr($);N==null&&(N=1),$+=N,$>100&&($=100),We(f,$)},Rt=()=>{!R||R.update({percents:di(),values:hi(),$pointers:xn(),min:br(),max:fi(),data:$n(),step:wn(),round:Br(),type:_n(),textMin:Ir(),textMax:Dt(),rightToLeft:mt(),bottomToTop:Mn(),pointersOverlap:vr(),pointersMinDistance:Ur(),pointersMaxDistance:An(),rangeDragging:at(),disabled:Sn(),keyboardDisabled:mr(),mousewheelDisabled:qr()})},ui=()=>{Rt()},os=f=>{if(!(ce||v.length<=1||ae===j))if(f===0){let $=Ee*100/(ae-j);return Math.max(0,v[f+1].percent-$)}else{let $=F*100/(ae-j);return Math.min(v[f-1].percent+$,100)}},as=f=>{if(!(ce||v.length<=1||ae===j))if(f===v.length-1){let $=Ee*100/(ae-j);return Math.min(v[f-1].percent+$,100)}else{let $=F*100/(ae-j);return Math.max(0,v[f+1].percent-$)}},yr=f=>{let $;if(typeof ue=="function"){let N=Z(0,100,j,ae,f);$=ue(N,f)}else $=ue;if(Me($)){let N=ae-j;return $=N===0?0:$*100/N,$}},Gt=f=>{if(f===void 0)return;let $=Z(0,100,j,ae,f);return z!==void 0?z[Math.round($)]:ht($,nt)},Ir=()=>z!==void 0?z[j]:j,Dt=()=>z!==void 0?z[ae]:ae,wn=()=>ue,Yt=f=>{var $;return f<=0||ce?Ir():($=Gt(v[f-1].percent))!=null?$:""},Ct=f=>{var $;return v.length<=1||f>=v.length-1||ce?Dt():($=Gt(v[f+1].percent))!=null?$:""},di=()=>v.map(f=>f.percent),hi=()=>v.map(f=>Gt(f.percent)),xn=()=>v.map(f=>f.$pointer),br=()=>j,fi=()=>ae,$n=()=>z,_n=()=>he,Br=()=>nt,Ur=()=>F,An=()=>Ee,zr=f=>si[f],mt=()=>Ve,Mn=()=>B,Sn=()=>Oe,mr=()=>Ye,qr=()=>Fe,vr=()=>ce,at=()=>Ue,We=(f,$)=>{if($===void 0)return;let N=yr($);N!==void 0&&($=Ne($,N));let le=v[f];if(!le)return;let _e=le.updatePosition($,os(f),as(f),he,Ve,B);G==null||G.updatePosition(he,v.map(fe=>fe.percent),Ve,B),Rt();for(let fe of v){let Je=Gt(fe.percent);Je!==void 0&&(fe.setAttr("aria-valuenow",Je.toString()),fe.setAttr("aria-valuetext",Je.toString()))}En(),_e&&dn(u,v.map(fe=>Gt(fe.percent)))},ft=()=>{for(let f=0;f<v.length;f++)We(f,v[f].percent)},pi=(f,$)=>{j=z!==void 0?0:ne(f,fr),ae=z!==void 0?z.length-1:ne($,Kt),jt(j),Nt(ae)},En=()=>{var f,$;for(let N=0;N<v.length;N++){let le=v[N];le.setAttr("aria-valuemin",((f=Yt(N))!=null?f:"").toString()),le.setAttr("aria-valuemax",(($=Ct(N))!=null?$:"").toString())}},jt=f=>{j=ne(f,fr),j>ae&&(ae=j+Kt),ft()},Nt=f=>{ae=ne(f,Kt),ae<j&&(ae=j+Kt),ft()},Wr=f=>{ce=!0;for(let $=0;$<f.length;$++)Vr(f[$],$);ce=!1;for(let $=0;$<f.length;$++)Vr(f[$],$)},Vr=(f,$)=>{let N;z!==void 0?(N=f==null?0:lr(f,z),N===-1&&(N=0)):(N=ne(f,j),N<j&&(N=j),N>ae&&(N=ae));let le=Z(j,ae,0,100,N);We($,le)},Kr=f=>{if(f==null){ue=void 0;return}if(typeof f=="function"){ue=f,ft();return}if(Me(f)){ue=ne(f,1);let $=Math.abs(ae-j);ue>$&&(ue=void 0),ft();return}ue=void 0},Cn=f=>{ce=f,ft()},kn=f=>{(!Me(f)||f<0)&&(f=0),F=f},Ft=f=>{(!Me(f)||f<0)&&(f=1/0),Ee=f},Ln=f=>{Oe=f,p.classList.toggle("disabled",Oe),Oe?p.setAttribute("aria-disabled","true"):p.hasAttribute("aria-disabled")&&p.removeAttribute("aria-disabled")},gi=f=>{Ye=f},a=f=>{Fe=f,Fe?document.removeEventListener("wheel",Hr):document.addEventListener("wheel",Hr,{passive:!1})},h=f=>{if(f==null){z=void 0;return}if(z=Vt(f),z===void 0||z.length<=0){z=void 0;return}jt(0),Nt(z.length-1),ue===void 0&&Kr(1)},m=f=>{var $;typeof f=="string"?he=f.trim().toLowerCase()===Te?Te:re:he=re;let N=($=u.shadowRoot)==null?void 0:$.querySelector(".range-slider-box");if(!N)return;N.className=`range-slider-box type-${he}`,ft();let le=he===Te?"vertical":"horizontal";for(let _e of v)_e.setAttr("aria-orientation",le)},M=f=>{Ve=f,v.length>1&&ni(v,Ve,u),ft(),Rt()},I=f=>{B=f,v.length>1&&ni(v,B,u),ft(),Rt()},D=f=>{nt=ne(f,rt),nt<0&&(nt=rt),Rt()},X=f=>{f==null||f.toString().trim().toLowerCase()==="false"?(Et=void 0,p.style.removeProperty(Pr),p.classList.remove(St)):(Et=f.toString(),p.style.setProperty(Pr,Et),p.classList.add(St))},Re=(f,$)=>{let N=v[f];!N||(N.setAttr("aria-label",$),si[f]=$)},Le=f=>{if(Ie=void 0,v.length<=1){Ue=!1,p.classList.remove(Rr);return}Ue=f,p.classList.toggle(Rr,Ue)},Ke=()=>{Ln(we(u.getAttribute(te))),Ye=we(u.getAttribute(pe)),Fe=we(u.getAttribute(O));let f=Mt(u,/^pointer([0-9]*)-disabled$/,$=>we($));for(let $ of f){let N=$[0];!v[N]||(v[N].disabled=$[1])}},Ze=()=>{let f=Mt(u,/^aria-label([0-9]*)$/);for(let $ of f){let N=$[0];Re(N,$[1])}},Xe=f=>{let $=v.length,N=v[$-1].$pointer,le=N.cloneNode(!0);N.after(le);let _e=ar(u,le,$);return _e.setCallbacks(oi,ai,li,ci),v.push(_e),Vr(f,$),ft(),Rt(),$},Ge=()=>{let f=v.length,$=v[f-1];return $?($.destroy(),v.pop(),v.length<=1&&Le(!1),ft(),Rt(),f-1):-1};return(()=>{var f,$;for(let le of v)le.setCallbacks(oi,ai,li,ci);let N=(f=u.shadowRoot)==null?void 0:f.querySelector(".panel-fill");N&&(G=hn(N)),m(u.getAttribute(k)),M(we(u.getAttribute(U))),I(we(u.getAttribute(ie))),pi(u.getAttribute(y),u.getAttribute(w)),Kr(u.getAttribute(b)),h(u.getAttribute(g)),Wr(_.map(le=>le[1])),Cn(we(u.getAttribute(o))),kn(ne(u.getAttribute(l),0)),Ft(ne(u.getAttribute(c),1/0)),Le(we(u.getAttribute(d))),D(ne(u.getAttribute(A),rt)),Ke(),Ze(),Y=dr(u,p,v),X(($=u.getAttribute(De))!=null?$:ii),p.addEventListener("mousedown",vn),p.addEventListener("mouseup",jr),p.addEventListener("touchmove",Ot),p.addEventListener("touchstart",Ot),Fe||document.addEventListener("wheel",Hr,{passive:!1}),R=bn(u,ui,{setValues:Wr,setMin:jt,setMax:Nt,setStep:Kr,setPointersOverlap:Cn,setPointersMinDistance:kn,setPointersMaxDistance:Ft,setDisabled:Ln,setType:m,setRightToLeft:M,setBottomToTop:I,setRound:D,setKeyboardDisabled:gi,setMousewheelDisabled:a,setRangeDragging:Le,setData:h},{getPercents:di,getValues:hi,getPointerElements:xn,getMin:br,getMax:fi,getStep:wn,getData:$n,getType:_n,getRound:Br,getTextMin:Ir,getTextMax:Dt,isRightToLeft:mt,isBottomToTop:Mn,isDisabled:Sn,isKeyboardDisabled:mr,isMousewheelDisabled:qr,isPointersOverlap:vr,isRangeDraggingEnabled:at,getPointersMinDistance:Ur,getPointersMaxDistance:An}),R.init()})(),{get pointers(){return v},get styles(){return Y},get pluginsManager(){return R},get min(){return Ir()},get max(){return Dt()},get step(){return wn()},get pointersOverlap(){return vr()},set pointersOverlap(f){Cn(f)},get pointersMinDistance(){return Ur()},set pointersMinDistance(f){kn(f)},get pointersMaxDistance(){return An()},set pointersMaxDistance(f){Ft(f)},get disabled(){return Sn()},set disabled(f){Ln(f)},get data(){return $n()},get type(){return _n()},set type(f){m(f)},get rightToLeft(){return mt()},set rightToLeft(f){M(f)},get bottomToTop(){return Mn()},set bottomToTop(f){I(f)},get round(){return Br()},set round(f){D(f)},get animateOnClick(){return Et},set animateOnClick(f){X(f)},get keyboardDisabled(){return mr()},set keyboardDisabled(f){gi(f)},get mousewheelDisabled(){return qr()},set mousewheelDisabled(f){a(f)},get rangeDragging(){return at()},set rangeDragging(f){Le(f)},setMin:jt,setMax:Nt,setValue:Vr,setStep:Kr,setData:h,getTextValue:Gt,setAriaLabel:Re,getAriaLabel:zr,addPointer:Xe,removePointer:Ge,destroy:()=>{p.removeEventListener("mousedown",vn),p.removeEventListener("mouseup",jr),p.removeEventListener("touchmove",Ot),p.removeEventListener("touchstart",Ot),document.removeEventListener("wheel",Hr);for(let f of v)f.destroy();R==null||R.destroy()}}},ts=(u,p,_)=>{let v=Or.find(([R,j,ae,ue])=>j.replace("#","")===p.replace(/\d+/g,""));if(v&&u.styles){let[R,j,ae,ue]=v,z=p.replace(/\D/g,"").trim(),he=z===""||z==="0"||z==="1"?0:ne(z,0)-1;u.styles.setStyle(R,_,he);return}switch(u&&u.pluginsManager&&u.pluginsManager.onAttrChange(p,_),p){case y:{u.setMin(_);break}case w:{u.setMax(_);break}case b:{u.setStep(_);break}case o:{u.pointersOverlap=we(_);break}case l:{u.pointersMinDistance=ne(_,0);break}case d:{u.rangeDragging=we(_);break}case c:{u.pointersMaxDistance=ne(_,1/0);break}case te:{u.disabled=we(_);break}case pe:{u.keyboardDisabled=we(_);break}case O:{u.mousewheelDisabled=we(_);break}case g:{u.setData(_);break}case k:{u.type=_;break}case U:{u.rightToLeft=we(_);break}case ie:{u.bottomToTop=we(_);break}case A:{u.round=ne(_,rt);break}case W:{u.styles&&(u.styles.theme=_);break}case De:{u.animateOnClick=_;break}}let T=null;if(/^value([0-9]*)$/.test(p)&&(T="value"),/^pointer([0-9]*)-disabled$/.test(p)&&(T="pointer-disabled"),/^aria-label([0-9]*)$/.test(p)&&(T="aria-label"),/^pointer([0-9]*)-shape$/.test(p)&&(T="pointer-shape"),!T)return;let G=p.replace(/\D/g,"").trim(),Y=G===""||G==="0"||G==="1"?0:ne(G,0)-1;switch(T){case"value":{u.setValue(_,Y);break}case"pointer-disabled":{let R=u==null?void 0:u.pointers[Y];if(!R)return;R.disabled=we(_);break}case"aria-label":{u.setAriaLabel(Y,_);break}case"pointer-shape":{u.styles&&u.styles.setPointerShape(Y,_);break}}},rs=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,p;return(p=(u=this.slider)==null?void 0:u.disabled)!=null?p:!1}set data(u){var p;(p=this.slider)==null||p.setData(u)}get data(){var u;return(u=this.slider)==null?void 0:u.data}set min(u){var p;(p=this.slider)==null||p.setMin(u)}get min(){var u;return(u=this.slider)==null?void 0:u.min}set max(u){var p;(p=this.slider)==null||p.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,p;return(p=(u=this.slider)==null?void 0:u.round)!=null?p:rt}set type(u){!this.slider||(this.slider.type=u??re)}get type(){var u;return((u=this.slider)==null?void 0:u.type)||re}set pointersOverlap(u){!this.slider||(this.slider.pointersOverlap=u)}get pointersOverlap(){var u,p;return(p=(u=this.slider)==null?void 0:u.pointersOverlap)!=null?p:!1}set pointersMinDistance(u){!this.slider||(this.slider.pointersMinDistance=u)}get pointersMinDistance(){var u,p;return(p=(u=this.slider)==null?void 0:u.pointersMinDistance)!=null?p:0}set pointersMaxDistance(u){!this.slider||(this.slider.pointersMaxDistance=u)}get pointersMaxDistance(){var u,p;return(p=(u=this.slider)==null?void 0:u.pointersMaxDistance)!=null?p:1/0}set theme(u){!this.slider||!this.slider.styles||(this.slider.styles.theme=u)}get theme(){var u,p,_;return(_=(p=(u=this.slider)==null?void 0:u.styles)==null?void 0:p.theme)!=null?_:null}set rtl(u){!this.slider||(this.slider.rightToLeft=u)}get rtl(){var u,p;return(p=(u=this.slider)==null?void 0:u.rightToLeft)!=null?p:!1}set btt(u){!this.slider||(this.slider.bottomToTop=u)}get btt(){var u,p;return(p=(u=this.slider)==null?void 0:u.bottomToTop)!=null?p:!1}set keyboardDisabled(u){!this.slider||(this.slider.keyboardDisabled=u)}get keyboardDisabled(){var u,p;return(p=(u=this.slider)==null?void 0:u.keyboardDisabled)!=null?p:!1}set mousewheelDisabled(u){!this.slider||(this.slider.mousewheelDisabled=u)}get mousewheelDisabled(){var u,p;return(p=(u=this.slider)==null?void 0:u.mousewheelDisabled)!=null?p:!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,p;return(p=(u=this.slider)==null?void 0:u.rangeDragging)!=null?p:!1}set rangeDragging(u){this.slider&&(this.slider.rangeDragging=we(u))}get externalCSSList(){return this._externalCSSList}addPointer(u){var p,_;if(!this.slider)return;let v=(_=(p=this.slider)==null?void 0:p.addPointer(u))!=null?_:0;ri(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 p=document.createElement("style");p.textContent=u,this.shadowRoot.appendChild(p)}connectedCallback(){var u,p;if(!this.shadowRoot)return;this._externalCSSList=Xi(this),this.shadowRoot.innerHTML=i(s,this._externalCSSList);let _=(u=this.shadowRoot)==null?void 0:u.querySelector(".pointer");if(!_)return;let v=(p=this.shadowRoot)==null?void 0:p.getElementById("range-slider");if(!v)return;let T=Ji(this,_);this.slider=es(this,v,T),Qi(this,this.slider),this._observer=new MutationObserver(G=>{G.forEach(Y=>{var R;if(!this.slider||Y.type!=="attributes")return;let j=Y.attributeName;!j||ts(this.slider,j,(R=this.getAttribute(j))!=null?R:"")})}),this._observer.observe(this,{attributes:!0})}disconnectedCallback(){this._observer&&this._observer.disconnect(),this.slider&&this.slider.destroy()}},mn=rs;window.tcRangeSlider=mn,customElements.get("toolcool-range-slider")||customElements.define("toolcool-range-slider",mn),customElements.get("tc-range-slider")||customElements.define("tc-range-slider",class extends mn{})})();class Uo extends et{constructor(){super();it(this,sr);this.filterObject={},this.tabIndex=0,this.inputHandler=ye(this,sr,oa).bind(this),this.debouncedInputHandler=Zn(this.inputHandler,500,{leading:!1})}reset(){Bc(this)}createRenderRoot(){return this}render(){return Qe(this.filterObject,()=>ee`
|
|
811
|
+
${ye(this,sr,gs).call(this,"min","before")}
|
|
795
812
|
<tc-range-slider
|
|
796
813
|
min="${this.filterObject.min}"
|
|
797
814
|
max="${this.filterObject.max}"
|
|
798
|
-
value1="${this.filterObject.min||this.filterObject.
|
|
799
|
-
value2="${this.filterObject.max||this.filterObject.
|
|
815
|
+
value1="${this.filterObject.state.min||this.filterObject.min}"
|
|
816
|
+
value2="${this.filterObject.state.max||this.filterObject.max}"
|
|
800
817
|
step="${this.filterObject.step||1}"
|
|
801
818
|
@change=${this.debouncedInputHandler}
|
|
802
819
|
></tc-range-slider>
|
|
803
|
-
${
|
|
804
|
-
`)}}
|
|
820
|
+
${ye(this,sr,gs).call(this,"max","after")}
|
|
821
|
+
`)}}sr=new WeakSet,oa=function(r){Uc(r,this)},gs=function(r,n){return zc(r,n,this)},Pn(Uo,"properties",{filterObject:{attribute:!1,type:Object},tabIndex:{attribute:!1,type:Number}}),customElements.define("eox-itemfilter-range",Uo);class uu extends et{constructor(){super();it(this,Qn);this.filterObject={},this.tabIndex=0}static get properties(){return{filterObject:{type:Object},tabIndex:{attribute:!1,type:Number}}}reset(){Fc(this)}createRenderRoot(){return this}render(){return Qe(this.filterObject,()=>{var r;return ee`
|
|
805
822
|
<form style="display: inline">
|
|
806
|
-
${
|
|
823
|
+
${On(["intersects","within"],n=>ee`
|
|
807
824
|
<label>
|
|
808
825
|
<input
|
|
809
826
|
tabindex=${this.tabIndex}
|
|
810
827
|
type="radio"
|
|
811
828
|
name="mode"
|
|
812
|
-
.checked="${(this.filterObject.state.mode||"")===n||
|
|
829
|
+
.checked="${(this.filterObject.state.mode||"")===n||Ae}"
|
|
813
830
|
value="${n}"
|
|
814
|
-
@click=${()=>
|
|
831
|
+
@click=${()=>ye(this,Qn,aa).call(this,n)}
|
|
815
832
|
/>
|
|
816
833
|
<small>${n} filter geometry</small>
|
|
817
834
|
</label>
|
|
@@ -822,13 +839,13 @@ eox-itemfilter-results li.highlighted {
|
|
|
822
839
|
.geometry="${(r=this.filterObject.state)==null?void 0:r.geometry}"
|
|
823
840
|
@filter="${n=>{this.filterObject.state.geometry=n.detail.geometry,this.filterObject.dirty=!0,this.filterObject.stringifiedState="Polygon",this.dispatchEvent(new CustomEvent("filter"))}}"
|
|
824
841
|
></eox-itemfilter-spatial>
|
|
825
|
-
`})}}
|
|
842
|
+
`})}}Qn=new WeakSet,aa=function(r){Xc(r,this)},customElements.define("eox-itemfilter-spatial",uu);class du extends et{constructor(){super();it(this,ei);this.geometry=null,this.eoxMap=null}static get properties(){return{geometry:{type:Object},eoxMap:{type:Object}}}firstUpdated(){ye(this,ei,la).call(this)}reset(){Zc(this)}render(){return ee`<div id="eox-map"></div>`}}ei=new WeakSet,la=function(){Oo(this)},customElements.define("eox-itemfilter-spatial-filter",du);function hu(t,e){e.renderRoot.querySelectorAll(".chip").forEach(r=>{r.classList.remove("highlighted")}),t.target.classList.add("highlighted"),e.requestUpdate()}function fu(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)&&pu(r,t.target.value??"",e)))}function pu(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 gu extends et{constructor(){super();it(this,or);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",ye(this,or,ys).bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.getRootNode().removeEventListener("keydown",ye(this,or,ys).bind(this))}_dispatchEvent(){this.dispatchEvent(new CustomEvent("items-selected",{detail:this.items}))}render(){return ee`
|
|
826
843
|
<style>
|
|
827
|
-
${
|
|
844
|
+
${tn}
|
|
828
845
|
</style>
|
|
829
846
|
<span class="chip-container">
|
|
830
|
-
${
|
|
831
|
-
<span class="chip" @click=${
|
|
847
|
+
${On(this.items,r=>ee`
|
|
848
|
+
<span class="chip" @click=${ye(this,or,ca).bind(this)}>
|
|
832
849
|
<span class="chip-title">${r.title}</span>
|
|
833
850
|
<span
|
|
834
851
|
class="chip-item-close hidden"
|
|
@@ -839,7 +856,7 @@ eox-itemfilter-results li.highlighted {
|
|
|
839
856
|
</span>
|
|
840
857
|
`)}
|
|
841
858
|
</span>
|
|
842
|
-
`}}Yt=new WeakSet,Es=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,imageProperty:void 0,expandMultipleFilters:!0,expandResults:!0,expandMultipleResults:!0}),ea=["aggregateResults","autoSpreadSingle","enableHighlighting","externalFilter","filterProperties","fuseConfig","inlineMode","matchAllWhenEmpty","showResults","titleProperty","subTitleProperty","imageProperty","idProperty","expandMultipleFilters","expandResults","expandMultipleResults","items"];var Ku=200,zi="__lodash_hash_undefined__",Gu=1/0,Yu="[object Function]",Fu="[object GeneratorFunction]",Zu=/[\\^$.*+?()[\]{}|]/g,Xu=/^\[object .+?Constructor\]$/,Ju=typeof et=="object"&&et&&et.Object===Object&&et,Qu=typeof self=="object"&&self&&self.Object===Object&&self,qi=Ju||Qu||Function("return this")();function ed(t,e){var r=t?t.length:0;return!!r&&rd(t,e,0)>-1}function td(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 rd(t,e,r){if(e!==e)return td(t,nd,r);for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1}function nd(t){return t!==t}function id(t,e){return t.has(e)}function sd(t,e){return t==null?void 0:t[e]}function od(t){var e=!1;if(t!=null&&typeof t.toString!="function")try{e=!!(t+"")}catch{}return e}function ta(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var ad=Array.prototype,ld=Function.prototype,ra=Object.prototype,Wi=qi["__core-js_shared__"],na=function(){var t=/[^.]+$/.exec(Wi&&Wi.keys&&Wi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),ia=ld.toString,Vi=ra.hasOwnProperty,cd=ra.toString,ud=RegExp("^"+ia.call(Vi).replace(Zu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dd=ad.splice,hd=Gi(qi,"Map"),Ki=Gi(qi,"Set"),Gr=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 fd(){this.__data__=Gr?Gr(null):{}}function pd(t){return this.has(t)&&delete this.__data__[t]}function gd(t){var e=this.__data__;if(Gr){var r=e[t];return r===zi?void 0:r}return Vi.call(e,t)?e[t]:void 0}function yd(t){var e=this.__data__;return Gr?e[t]!==void 0:Vi.call(e,t)}function bd(t,e){var r=this.__data__;return r[t]=Gr&&e===void 0?zi:e,this}Vt.prototype.clear=fd,Vt.prototype.delete=pd,Vt.prototype.get=gd,Vt.prototype.has=yd,Vt.prototype.set=bd;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 md(){this.__data__=[]}function vd(t){var e=this.__data__,r=On(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():dd.call(e,r,1),!0}function wd(t){var e=this.__data__,r=On(e,t);return r<0?void 0:e[r][1]}function xd(t){return On(this.__data__,t)>-1}function $d(t,e){var r=this.__data__,n=On(r,t);return n<0?r.push([t,e]):r[n][1]=e,this}fr.prototype.clear=md,fr.prototype.delete=vd,fr.prototype.get=wd,fr.prototype.has=xd,fr.prototype.set=$d;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(hd||fr),string:new Vt}}function Ad(t){return Rn(this,t).delete(t)}function Md(t){return Rn(this,t).get(t)}function Sd(t){return Rn(this,t).has(t)}function Ed(t,e){return Rn(this,t).set(t,e),this}pr.prototype.clear=_d,pr.prototype.delete=Ad,pr.prototype.get=Md,pr.prototype.has=Sd,pr.prototype.set=Ed;function Tn(t){var e=-1,r=t?t.length:0;for(this.__data__=new pr;++e<r;)this.add(t[e])}function Cd(t){return this.__data__.set(t,zi),this}function kd(t){return this.__data__.has(t)}Tn.prototype.add=Tn.prototype.push=Cd,Tn.prototype.has=kd;function On(t,e){for(var r=t.length;r--;)if(Nd(t[r][0],e))return r;return-1}function Ld(t){if(!sa(t)||Rd(t))return!1;var e=Hd(t)||od(t)?ud:Xu;return e.test(Dd(t))}function Pd(t,e,r){var n=-1,i=ed,s=t.length,o=!0,l=[],c=l;if(s>=Ku){var d=Td(t);if(d)return ta(d);o=!1,i=id,c=new Tn}else c=l;e:for(;++n<s;){var p=t[n],y=p;if(p=p!==0?p:0,o&&y===y){for(var v=c.length;v--;)if(c[v]===y)continue e;l.push(p)}else i(c,y,r)||(c!==l&&c.push(y),l.push(p))}return l}var Td=Ki&&1/ta(new Ki([,-0]))[1]==Gu?function(t){return new Ki(t)}:Id;function Rn(t,e){var r=t.__data__;return Od(e)?r[typeof e=="string"?"string":"hash"]:r.map}function Gi(t,e){var r=sd(t,e);return Ld(r)?r:void 0}function Od(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Rd(t){return!!na&&na in t}function Dd(t){if(t!=null){try{return ia.call(t)}catch{}try{return t+""}catch{}}return""}function jd(t){return t&&t.length?Pd(t):[]}function Nd(t,e){return t===e||t!==t&&e!==e}function Hd(t){var e=sa(t)?cd.call(t):"";return e==Yu||e==Fu}function sa(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function Id(){}var Bd=jd;const oa=kn(Bd);var Dn={exports:{}};Dn.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]",v="[object Date]",m="[object Error]",_="[object Function]",E="[object GeneratorFunction]",z="[object Map]",H="[object Number]",Z="[object Object]",F="[object Promise]",fe="[object RegExp]",te="[object Set]",X="[object String]",pe="[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[v]=se[m]=se[_]=se[z]=se[H]=se[Z]=se[fe]=se[te]=se[X]=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")(),pt=e&&!e.nodeType&&e,_e=pt&&!0&&t&&!t.nodeType&&t,Yi=_e&&_e.exports===pt,Bn=Yi&&Te.process,Un=function(){try{return Bn&&Bn.binding("util")}catch{}}(),zn=Un&&Un.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 Fr(a,h){for(var b=-1,A=h.length,R=a.length;++b<A;)a[R+b]=h[b];return a}function Zi(a,h){for(var b=-1,A=a?a.length:0;++b<A;)if(h(a[b],b,a))return!0;return!1}function Xi(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 qn(a){return function(h){return a(h)}}function Qi(a,h){return a==null?void 0:a[h]}function Zr(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__"],Wn=function(){var a=/[^.]+$/.exec(Xr&&Xr.keys&&Xr.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Vn=is.toString,lt=br.hasOwnProperty,Tt=br.toString,ss=RegExp("^"+Vn.call(lt).replace(ke,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mr=Oe.Symbol,Kn=Oe.Uint8Array,os=br.propertyIsEnumerable,as=ns.splice,Zt=mr?mr.isConcatSpreadable:void 0,ls=ts(Object.keys,Object),vr=Dt(Oe,"DataView"),Xt=Dt(Oe,"Map"),gt=Dt(Oe,"Promise"),wr=Dt(Oe,"Set"),Jr=Dt(Oe,"WeakMap"),Jt=Dt(Object,"create"),Gn=ct(vr),cs=ct(Xt),Yn=ct(gt),us=ct(wr),Fn=ct(Jr),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 Zn(){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 Qr(a,h){var b=this.__data__;return b[a]=Jt&&h===void 0?i:h,this}Fe.prototype.clear=Zn,Fe.prototype.delete=ds,Fe.prototype.get=hs,Fe.prototype.has=fs,Fe.prototype.set=Qr;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 w(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=w,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(Xt||u),string:new Fe}}function T(a){return $t(this,a).delete(a)}function J(a){return $t(this,a).get(a)}function ne(a){return $t(this,a).has(a)}function I(a,h){return $t(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 Ze(a){return this.__data__.set(a,i),this}function je(a){return this.__data__.has(a)}oe.prototype.add=oe.prototype.push=Ze,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(!Xt||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"||rn(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=ii),R||(R=[]);++P<W;){var xe=a[P];b(xe)?Fr(R,xe):R[R.length]=xe}return R}var yt=ms();function Xn(a,h){return a&&yt(a,h,jt)}function en(a,h){h=nr(h,a)?[h]:ri(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)&&!At(h)?a!==a&&h!==h:wt(a,h,_r,b,A,R)}function wt(a,h,b,A,R,P){var W=tt(a),xe=tt(h),ve=p,Ne=p;W||(ve=bt(a),ve=ve==d?Z:ve),xe||(Ne=bt(h),Ne=Ne==d?Z:Ne);var qe=ve==Z&&!Zr(a),We=Ne==Z&&!Zr(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 Jn(a){if(!_t(a)||nn(a))return!1;var h=oi(a)||Zr(a)?ss:Pe;return h.test(ct(a))}function Qn(a){return At(a)&&cn(a.length)&&!!se[Tt.call(a)]}function ei(a){return typeof a=="function"?a:a==null?hn:typeof a=="object"?tt(a)?er(a[0],a[1]):ys(a):ai(a)}function ti(a){if(!sn(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=tn(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=un(b,a);return A===void 0&&A===h?dn(b,a):_r(h,A,void 0,s|o)}}function tr(a){return function(h){return en(h,a)}}function xt(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 ri(a){return tt(a)?a:on(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(!Zi(h,function(Q,ge){if(!He.has(ge)&&(f===Q||b(f,Q,A,R,P)))return He.add(ge)})){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 Kn(a),new Kn(h)));case y:case v:case H:return kr(+a,+h);case m:return a.name==h.name&&a.message==h.message;case fe:case X: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 pe: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],ge=h[He];if(A)var ae=W?A(ge,Q,He,h,a,P):A(Q,ge,He,a,h,P);if(!(ae===void 0?Q===ge||b(Q,ge,A,R,P):ae)){x=!1;break}O||(O=He=="constructor")}if(x&&!O){var Ve=a.constructor,Mt=h.constructor;Ve!=Mt&&"constructor"in a&&"constructor"in h&&!(typeof Ve=="function"&&Ve instanceof Ve&&typeof Mt=="function"&&Mt instanceof Mt)&&(x=!1)}return P.delete(a),P.delete(h),x}function $t(a,h){var b=a.__data__;return si(h)?b[typeof h=="string"?"string":"hash"]:b.map}function tn(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 Jn(b)?b:void 0}var bt=$r;(vr&&bt(new vr(new ArrayBuffer(1)))!=ye||Xt&&bt(new Xt)!=z||gt&&bt(gt.resolve())!=F||wr&&bt(new wr)!=te||Jr&&bt(new Jr)!=Ae)&&(bt=function(a){var h=Tt.call(a),b=h==Z?a.constructor:void 0,A=b?ct(b):void 0;if(A)switch(A){case Gn:return ye;case cs:return z;case Yn:return F;case us:return te;case Fn:return Ae}return h});function ni(a,h,b){h=nr(h,a)?[h]:ri(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&&cn(W)&&rn(P,W)&&(tt(a)||sr(a))}function ii(a){return tt(a)||sr(a)||!!(Zt&&a&&a[Zt])}function rn(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 si(a){var h=typeof a;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?a!=="__proto__":a===null}function nn(a){return!!Wn&&Wn in a}function sn(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 on=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 Vn.call(a)}catch{}try{return a+""}catch{}}return""}function an(a,h){return ze(ln(a,h))}function ln(a,h){var b=tt(a)?Fi:gs;return b(a,ei(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&&cn(a.length)&&!oi(a)}function st(a){return At(a)&&De(a)}function oi(a){var h=_t(a)?Tt.call(a):"";return h==_||h==E}function cn(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 At(a){return!!a&&typeof a=="object"}function Lr(a){return typeof a=="symbol"||At(a)&&Tt.call(a)==pe}var Pr=zn?qn(zn):Qn;function Tr(a){return a==null?"":xt(a)}function un(a,h,b){var A=a==null?void 0:en(a,h);return A===void 0?b:A}function dn(a,h){return a!=null&&ni(a,h,ps)}function jt(a){return De(a)?Me(a):ti(a)}function hn(a){return a}function ai(a){return nr(a)?Xi(Cr(a)):tr(a)}t.exports=an}(Dn,Dn.exports);var Ud=Dn.exports;const aa=kn(Ud);function zd(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=Vr(s.key,d);if(Array.isArray(y)){const v=[l(y[0]),l(y[1])];o.min=o.min!==void 0?Math.min(o.min,v[0]):v[0],o.max=o.max!==void 0?Math.max(o.max,v[1]):v[1]}else{const v=l(y);o.min=o.min!==void 0?Math.min(o.min,v):v,o.max=o.max!==void 0?Math.max(o.max,v):v}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(".")?oa(aa(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))}),qc(e,Object.assign({keys:i},t.fuseConfig)),n}async function qd(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 Wd(t,e,r){const n=`filter-${t.key}`.replace("|","-");switch(t.type){case"text":return Y`<eox-itemfilter-text
|
|
859
|
+
`}}or=new WeakSet,ys=function(r){fu(r,this)},ca=function(r){hu(r,this)},customElements.define("eox-itemfilter-chips",gu);const yu=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,imageProperty:void 0,expandMultipleFilters:!0,expandResults:!0,expandMultipleResults:!0}),zo=["aggregateResults","autoSpreadSingle","enableHighlighting","externalFilter","filterProperties","fuseConfig","inlineMode","matchAllWhenEmpty","showResults","titleProperty","subTitleProperty","imageProperty","idProperty","expandMultipleFilters","expandResults","expandMultipleResults","items"];var Zi,qo;function bu(){if(qo)return Zi;qo=1;var t=200,e="__lodash_hash_undefined__",r=1/0,n="[object Function]",i="[object GeneratorFunction]",s=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,l=typeof ut=="object"&&ut&&ut.Object===Object&&ut,c=typeof self=="object"&&self&&self.Object===Object&&self,d=l||c||Function("return this")();function g(x,E){var q=x?x.length:0;return!!q&&w(x,E,0)>-1}function y(x,E,q,Se){for(var yt=x.length,qe=q+-1;++qe<yt;)if(E(x[qe],qe,x))return qe;return-1}function w(x,E,q){if(E!==E)return y(x,b,q);for(var Se=q-1,yt=x.length;++Se<yt;)if(x[Se]===E)return Se;return-1}function b(x){return x!==x}function A(x,E){return x.has(E)}function k(x,E){return x==null?void 0:x[E]}function W(x){var E=!1;if(x!=null&&typeof x.toString!="function")try{E=!!(x+"")}catch{}return E}function U(x){var E=-1,q=Array(x.size);return x.forEach(function(Se){q[++E]=Se}),q}var ie=Array.prototype,te=Function.prototype,pe=Object.prototype,O=d["__core-js_shared__"],oe=function(){var x=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||"");return x?"Symbol(src)_1."+x:""}(),ge=te.toString,xe=pe.hasOwnProperty,Pe=pe.toString,de=RegExp("^"+ge.call(xe).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Q=ie.splice,$e=lr(d,"Map"),ze=lr(d,"Set"),P=lr(Object,"create");function C(x){var E=-1,q=x?x.length:0;for(this.clear();++E<q;){var Se=x[E];this.set(Se[0],Se[1])}}function S(){this.__data__=P?P(null):{}}function H(x){return this.has(x)&&delete this.__data__[x]}function L(x){var E=this.__data__;if(P){var q=E[x];return q===e?void 0:q}return xe.call(E,x)?E[x]:void 0}function V(x){var E=this.__data__;return P?E[x]!==void 0:xe.call(E,x)}function K(x,E){var q=this.__data__;return q[x]=P&&E===void 0?e:E,this}C.prototype.clear=S,C.prototype.delete=H,C.prototype.get=L,C.prototype.has=V,C.prototype.set=K;function se(x){var E=-1,q=x?x.length:0;for(this.clear();++E<q;){var Se=x[E];this.set(Se[0],Se[1])}}function be(){this.__data__=[]}function ke(x){var E=this.__data__,q=Pt(E,x);if(q<0)return!1;var Se=E.length-1;return q==Se?E.pop():Q.call(E,q,1),!0}function De(x){var E=this.__data__,q=Pt(E,x);return q<0?void 0:E[q][1]}function Be(x){return Pt(this.__data__,x)>-1}function Te(x,E){var q=this.__data__,Se=Pt(q,x);return Se<0?q.push([x,E]):q[Se][1]=E,this}se.prototype.clear=be,se.prototype.delete=ke,se.prototype.get=De,se.prototype.has=Be,se.prototype.set=Te;function re(x){var E=-1,q=x?x.length:0;for(this.clear();++E<q;){var Se=x[E];this.set(Se[0],Se[1])}}function Z(){this.__data__={hash:new C,map:new($e||se),string:new C}}function Me(x){return Vt(this,x).delete(x)}function ne(x){return Vt(this,x).get(x)}function Ne(x){return Vt(this,x).has(x)}function ht(x,E){return Vt(this,x).set(x,E),this}re.prototype.clear=Z,re.prototype.delete=Me,re.prototype.get=ne,re.prototype.has=Ne,re.prototype.set=ht;function we(x){var E=-1,q=x?x.length:0;for(this.__data__=new re;++E<q;)this.add(x[E])}function un(x){return this.__data__.set(x,e),this}function kr(x){return this.__data__.has(x)}we.prototype.add=we.prototype.push=un,we.prototype.has=kr;function Pt(x,E){for(var q=x.length;q--;)if(pn(x[q][0],E))return q;return-1}function Lr(x){if(!Tr(x)||Pr(x))return!1;var E=gn(x)||W(x)?de:o;return E.test(fn(x))}function dn(x,E,q){var Se=-1,yt=g,qe=x.length,bt=!0,_t=[],tt=_t;if(qe>=t){var ur=ar(x);if(ur)return U(ur);bt=!1,yt=A,tt=new we}else tt=_t;e:for(;++Se<qe;){var At=x[Se],Tt=At;if(At=At!==0?At:0,bt&&Tt===Tt){for(var Mt=tt.length;Mt--;)if(tt[Mt]===Tt)continue e;_t.push(At)}else yt(tt,Tt,q)||(tt!==_t&&tt.push(Tt),_t.push(At))}return _t}var ar=ze&&1/U(new ze([,-0]))[1]==r?function(x){return new ze(x)}:yn;function Vt(x,E){var q=x.__data__;return hn(E)?q[typeof E=="string"?"string":"hash"]:q.map}function lr(x,E){var q=k(x,E);return Lr(q)?q:void 0}function hn(x){var E=typeof x;return E=="string"||E=="number"||E=="symbol"||E=="boolean"?x!=="__proto__":x===null}function Pr(x){return!!oe&&oe in x}function fn(x){if(x!=null){try{return ge.call(x)}catch{}try{return x+""}catch{}}return""}function cr(x){return x&&x.length?dn(x):[]}function pn(x,E){return x===E||x!==x&&E!==E}function gn(x){var E=Tr(x)?Pe.call(x):"";return E==n||E==i}function Tr(x){var E=typeof x;return!!x&&(E=="object"||E=="function")}function yn(){}return Zi=cr,Zi}var mu=bu();const Wo=Gn(mu);var ln={exports:{}};ln.exports;var Vo;function vu(){return Vo||(Vo=1,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]",g="[object Array]",y="[object Boolean]",w="[object Date]",b="[object Error]",A="[object Function]",k="[object GeneratorFunction]",W="[object Map]",U="[object Number]",ie="[object Object]",te="[object Promise]",pe="[object RegExp]",O="[object Set]",oe="[object String]",ge="[object Symbol]",xe="[object WeakMap]",Pe="[object ArrayBuffer]",de="[object DataView]",Q="[object Float32Array]",$e="[object Float64Array]",ze="[object Int8Array]",P="[object Int16Array]",C="[object Int32Array]",S="[object Uint8Array]",H="[object Uint8ClampedArray]",L="[object Uint16Array]",V="[object Uint32Array]",K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,se=/^\w*$/,be=/^\./,ke=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,De=/[\\^$.*+?()[\]{}|]/g,Be=/\\(\\)?/g,Te=/^\[object .+?Constructor\]$/,re=/^(?:0|[1-9]\d*)$/,Z={};Z[Q]=Z[$e]=Z[ze]=Z[P]=Z[C]=Z[S]=Z[H]=Z[L]=Z[V]=!0,Z[d]=Z[g]=Z[Pe]=Z[y]=Z[de]=Z[w]=Z[b]=Z[A]=Z[W]=Z[U]=Z[ie]=Z[pe]=Z[O]=Z[oe]=Z[xe]=!1;var Me=typeof ut=="object"&&ut&&ut.Object===Object&&ut,ne=typeof self=="object"&&self&&self.Object===Object&&self,Ne=Me||ne||Function("return this")(),ht=e&&!e.nodeType&&e,we=ht&&!0&&t&&!t.nodeType&&t,un=we&&we.exports===ht,kr=un&&Me.process,Pt=function(){try{return kr&&kr.binding("util")}catch{}}(),Lr=Pt&&Pt.isTypedArray;function dn(a,h){for(var m=-1,M=a?a.length:0,I=Array(M);++m<M;)I[m]=h(a[m],m,a);return I}function ar(a,h){for(var m=-1,M=h.length,I=a.length;++m<M;)a[I+m]=h[m];return a}function Vt(a,h){for(var m=-1,M=a?a.length:0;++m<M;)if(h(a[m],m,a))return!0;return!1}function lr(a){return function(h){return h==null?void 0:h[a]}}function hn(a,h){for(var m=-1,M=Array(a);++m<a;)M[m]=h(m);return M}function Pr(a){return function(h){return a(h)}}function fn(a,h){return a==null?void 0:a[h]}function cr(a){var h=!1;if(a!=null&&typeof a.toString!="function")try{h=!!(a+"")}catch{}return h}function pn(a){var h=-1,m=Array(a.size);return a.forEach(function(M,I){m[++h]=[I,M]}),m}function gn(a,h){return function(m){return a(h(m))}}function Tr(a){var h=-1,m=Array(a.size);return a.forEach(function(M){m[++h]=M}),m}var yn=Array.prototype,x=Function.prototype,E=Object.prototype,q=Ne["__core-js_shared__"],Se=function(){var a=/[^.]+$/.exec(q&&q.keys&&q.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),yt=x.toString,qe=E.hasOwnProperty,bt=E.toString,_t=RegExp("^"+yt.call(qe).replace(De,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tt=Ne.Symbol,ur=Ne.Uint8Array,At=E.propertyIsEnumerable,Tt=yn.splice,Mt=tt?tt.isConcatSpreadable:void 0,Xi=gn(Object.keys,Object),Or=Yt(Ne,"DataView"),dr=Yt(Ne,"Map"),St=Yt(Ne,"Promise"),Rr=Yt(Ne,"Set"),bn=Yt(Ne,"WeakMap"),hr=Yt(Object,"create"),ti=mt(Or),Ji=mt(dr),ri=mt(St),Qi=mt(Rr),ni=mt(bn),Dr=tt?tt.prototype:void 0,fr=Dr?Dr.valueOf:void 0,Kt=Dr?Dr.toString:void 0;function rt(a){var h=-1,m=a?a.length:0;for(this.clear();++h<m;){var M=a[h];this.set(M[0],M[1])}}function ii(){this.__data__=hr?hr(null):{}}function es(a){return this.has(a)&&delete this.__data__[a]}function ts(a){var h=this.__data__;if(hr){var m=h[a];return m===i?void 0:m}return qe.call(h,a)?h[a]:void 0}function rs(a){var h=this.__data__;return hr?h[a]!==void 0:qe.call(h,a)}function mn(a,h){var m=this.__data__;return m[a]=hr&&h===void 0?i:h,this}rt.prototype.clear=ii,rt.prototype.delete=es,rt.prototype.get=ts,rt.prototype.has=rs,rt.prototype.set=mn;function u(a){var h=-1,m=a?a.length:0;for(this.clear();++h<m;){var M=a[h];this.set(M[0],M[1])}}function p(){this.__data__=[]}function _(a){var h=this.__data__,m=Oe(h,a);if(m<0)return!1;var M=h.length-1;return m==M?h.pop():Tt.call(h,m,1),!0}function v(a){var h=this.__data__,m=Oe(h,a);return m<0?void 0:h[m][1]}function T(a){return Oe(this.__data__,a)>-1}function G(a,h){var m=this.__data__,M=Oe(m,a);return M<0?m.push([a,h]):m[M][1]=h,this}u.prototype.clear=p,u.prototype.delete=_,u.prototype.get=v,u.prototype.has=T,u.prototype.set=G;function Y(a){var h=-1,m=a?a.length:0;for(this.clear();++h<m;){var M=a[h];this.set(M[0],M[1])}}function R(){this.__data__={hash:new rt,map:new(dr||u),string:new rt}}function j(a){return Dt(this,a).delete(a)}function ae(a){return Dt(this,a).get(a)}function ue(a){return Dt(this,a).has(a)}function z(a,h){return Dt(this,a).set(a,h),this}Y.prototype.clear=R,Y.prototype.delete=j,Y.prototype.get=ae,Y.prototype.has=ue,Y.prototype.set=z;function he(a){var h=-1,m=a?a.length:0;for(this.__data__=new Y;++h<m;)this.add(a[h])}function nt(a){return this.__data__.set(a,i),this}function Ve(a){return this.__data__.has(a)}he.prototype.add=he.prototype.push=nt,he.prototype.has=Ve;function B(a){this.__data__=new u(a)}function ce(){this.__data__=new u}function F(a){return this.__data__.delete(a)}function Ee(a){return this.__data__.get(a)}function Ue(a){return this.__data__.has(a)}function Ie(a,h){var m=this.__data__;if(m instanceof u){var M=m.__data__;if(!dr||M.length<r-1)return M.push([a,h]),this;m=this.__data__=new Y(M)}return m.set(a,h),this}B.prototype.clear=ce,B.prototype.delete=F,B.prototype.get=Ee,B.prototype.has=Ue,B.prototype.set=Ie;function je(a,h){var m=at(a)||vr(a)?hn(a.length,String):[],M=m.length,I=!!M;for(var D in a)qe.call(a,D)&&!(I&&(D=="length"||xn(D,M)))&&m.push(D);return m}function Oe(a,h){for(var m=a.length;m--;)if(qr(a[m][0],h))return m;return-1}var Ye=os(si);function Fe(a,h,m,M,I){var D=-1,X=a.length;for(m||(m=hi),I||(I=[]);++D<X;){var Re=a[D];m(Re)?ar(I,Re):I[I.length]=Re}return I}var Et=as();function si(a,h){return a&&Et(a,h,Ft)}function vn(a,h){h=br(h,a)?[h]:ui(h);for(var m=0,M=h.length;a!=null&&m<M;)a=a[zr(h[m++])];return m&&m==M?a:void 0}function jr(a){return bt.call(a)}function ns(a,h){return a!=null&&h in Object(a)}function Nr(a,h,m,M,I){return a===h?!0:a==null||h==null||!jt(a)&&!Nt(h)?a!==a&&h!==h:Ot(a,h,Nr,m,M,I)}function Ot(a,h,m,M,I,D){var X=at(a),Re=at(h),Le=g,Ke=g;X||(Le=Ct(a),Le=Le==d?ie:Le),Re||(Ke=Ct(h),Ke=Ke==d?ie:Ke);var Ze=Le==ie&&!cr(a),Xe=Ke==ie&&!cr(h),Ge=Le==Ke;if(Ge&&!Ze)return D||(D=new B),X||Vr(a)?yr(a,h,m,M,I,D):Gt(a,h,Le,m,M,I,D);if(!(I&o)){var f=Ze&&qe.call(a,"__wrapped__"),$=Xe&&qe.call(h,"__wrapped__");if(f||$){var N=f?a.value():a,le=$?h.value():h;return D||(D=new B),m(N,le,M,I,D)}}return Ge?(D||(D=new B),Ir(a,h,m,M,I,D)):!1}function Hr(a,h,m,M){var I=m.length,D=I;if(a==null)return!D;for(a=Object(a);I--;){var X=m[I];if(X[2]?X[1]!==a[X[0]]:!(X[0]in a))return!1}for(;++I<D;){X=m[I];var Re=X[0],Le=a[Re],Ke=X[1];if(X[2]){if(Le===void 0&&!(Re in a))return!1}else{var Ze=new B,Xe;if(!(Xe===void 0?Nr(Ke,Le,M,s|o,Ze):Xe))return!1}}return!0}function oi(a){if(!jt(a)||$n(a))return!1;var h=pi(a)||cr(a)?_t:Te;return h.test(mt(a))}function ai(a){return Nt(a)&&En(a.length)&&!!Z[bt.call(a)]}function li(a){return typeof a=="function"?a:a==null?Ln:typeof a=="object"?at(a)?pr(a[0],a[1]):ss(a):gi(a)}function ci(a){if(!_n(a))return Xi(a);var h=[];for(var m in Object(a))qe.call(a,m)&&m!="constructor"&&h.push(m);return h}function is(a,h){var m=-1,M=We(a)?Array(a.length):[];return Ye(a,function(I,D,X){M[++m]=h(I,D,X)}),M}function ss(a){var h=wn(a);return h.length==1&&h[0][2]?Ur(h[0][0],h[0][1]):function(m){return m===a||Hr(m,a,h)}}function pr(a,h){return br(a)&&Br(h)?Ur(zr(a),h):function(m){var M=Cn(m,a);return M===void 0&&M===h?kn(m,a):Nr(h,M,void 0,s|o)}}function gr(a){return function(h){return vn(h,a)}}function Rt(a){if(typeof a=="string")return a;if(Wr(a))return Kt?Kt.call(a):"";var h=a+"";return h=="0"&&1/a==-l?"-0":h}function ui(a){return at(a)?a:An(a)}function os(a,h){return function(m,M){if(m==null)return m;if(!We(m))return a(m,M);for(var I=m.length,D=-1,X=Object(m);++D<I&&M(X[D],D,X)!==!1;);return m}}function as(a){return function(h,m,M){for(var I=-1,D=Object(h),X=M(h),Re=X.length;Re--;){var Le=X[++I];if(m(D[Le],Le,D)===!1)break}return h}}function yr(a,h,m,M,I,D){var X=I&o,Re=a.length,Le=h.length;if(Re!=Le&&!(X&&Le>Re))return!1;var Ke=D.get(a);if(Ke&&D.get(h))return Ke==h;var Ze=-1,Xe=!0,Ge=I&s?new he:void 0;for(D.set(a,h),D.set(h,a);++Ze<Re;){var f=a[Ze],$=h[Ze];if(M)var N=X?M($,f,Ze,h,a,D):M(f,$,Ze,a,h,D);if(N!==void 0){if(N)continue;Xe=!1;break}if(Ge){if(!Vt(h,function(le,_e){if(!Ge.has(_e)&&(f===le||m(f,le,M,I,D)))return Ge.add(_e)})){Xe=!1;break}}else if(!(f===$||m(f,$,M,I,D))){Xe=!1;break}}return D.delete(a),D.delete(h),Xe}function Gt(a,h,m,M,I,D,X){switch(m){case de:if(a.byteLength!=h.byteLength||a.byteOffset!=h.byteOffset)return!1;a=a.buffer,h=h.buffer;case Pe:return!(a.byteLength!=h.byteLength||!M(new ur(a),new ur(h)));case y:case w:case U:return qr(+a,+h);case b:return a.name==h.name&&a.message==h.message;case pe:case oe:return a==h+"";case W:var Re=pn;case O:var Le=D&o;if(Re||(Re=Tr),a.size!=h.size&&!Le)return!1;var Ke=X.get(a);if(Ke)return Ke==h;D|=s,X.set(a,h);var Ze=yr(Re(a),Re(h),M,I,D,X);return X.delete(a),Ze;case ge:if(fr)return fr.call(a)==fr.call(h)}return!1}function Ir(a,h,m,M,I,D){var X=I&o,Re=Ft(a),Le=Re.length,Ke=Ft(h),Ze=Ke.length;if(Le!=Ze&&!X)return!1;for(var Xe=Le;Xe--;){var Ge=Re[Xe];if(!(X?Ge in h:qe.call(h,Ge)))return!1}var f=D.get(a);if(f&&D.get(h))return f==h;var $=!0;D.set(a,h),D.set(h,a);for(var N=X;++Xe<Le;){Ge=Re[Xe];var le=a[Ge],_e=h[Ge];if(M)var fe=X?M(_e,le,Ge,h,a,D):M(le,_e,Ge,a,h,D);if(!(fe===void 0?le===_e||m(le,_e,M,I,D):fe)){$=!1;break}N||(N=Ge=="constructor")}if($&&!N){var Je=a.constructor,Ht=h.constructor;Je!=Ht&&"constructor"in a&&"constructor"in h&&!(typeof Je=="function"&&Je instanceof Je&&typeof Ht=="function"&&Ht instanceof Ht)&&($=!1)}return D.delete(a),D.delete(h),$}function Dt(a,h){var m=a.__data__;return fi(h)?m[typeof h=="string"?"string":"hash"]:m.map}function wn(a){for(var h=Ft(a),m=h.length;m--;){var M=h[m],I=a[M];h[m]=[M,I,Br(I)]}return h}function Yt(a,h){var m=fn(a,h);return oi(m)?m:void 0}var Ct=jr;(Or&&Ct(new Or(new ArrayBuffer(1)))!=de||dr&&Ct(new dr)!=W||St&&Ct(St.resolve())!=te||Rr&&Ct(new Rr)!=O||bn&&Ct(new bn)!=xe)&&(Ct=function(a){var h=bt.call(a),m=h==ie?a.constructor:void 0,M=m?mt(m):void 0;if(M)switch(M){case ti:return de;case Ji:return W;case ri:return te;case Qi:return O;case ni:return xe}return h});function di(a,h,m){h=br(h,a)?[h]:ui(h);for(var M,I=-1,X=h.length;++I<X;){var D=zr(h[I]);if(!(M=a!=null&&m(a,D)))break;a=a[D]}if(M)return M;var X=a?a.length:0;return!!X&&En(X)&&xn(D,X)&&(at(a)||vr(a))}function hi(a){return at(a)||vr(a)||!!(Mt&&a&&a[Mt])}function xn(a,h){return h=h??c,!!h&&(typeof a=="number"||re.test(a))&&a>-1&&a%1==0&&a<h}function br(a,h){if(at(a))return!1;var m=typeof a;return m=="number"||m=="symbol"||m=="boolean"||a==null||Wr(a)?!0:se.test(a)||!K.test(a)||h!=null&&a in Object(h)}function fi(a){var h=typeof a;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?a!=="__proto__":a===null}function $n(a){return!!Se&&Se in a}function _n(a){var h=a&&a.constructor,m=typeof h=="function"&&h.prototype||E;return a===m}function Br(a){return a===a&&!jt(a)}function Ur(a,h){return function(m){return m==null?!1:m[a]===h&&(h!==void 0||a in Object(m))}}var An=mr(function(a){a=Kr(a);var h=[];return be.test(a)&&h.push(""),a.replace(ke,function(m,M,I,D){h.push(I?D.replace(Be,"$1"):M||m)}),h});function zr(a){if(typeof a=="string"||Wr(a))return a;var h=a+"";return h=="0"&&1/a==-l?"-0":h}function mt(a){if(a!=null){try{return yt.call(a)}catch{}try{return a+""}catch{}}return""}function Mn(a,h){return Fe(Sn(a,h))}function Sn(a,h){var m=at(a)?dn:is;return m(a,li(h))}function mr(a,h){if(typeof a!="function"||h&&typeof h!="function")throw new TypeError(n);var m=function(){var M=arguments,I=h?h.apply(this,M):M[0],D=m.cache;if(D.has(I))return D.get(I);var X=a.apply(this,M);return m.cache=D.set(I,X),X};return m.cache=new(mr.Cache||Y),m}mr.Cache=Y;function qr(a,h){return a===h||a!==a&&h!==h}function vr(a){return ft(a)&&qe.call(a,"callee")&&(!At.call(a,"callee")||bt.call(a)==d)}var at=Array.isArray;function We(a){return a!=null&&En(a.length)&&!pi(a)}function ft(a){return Nt(a)&&We(a)}function pi(a){var h=jt(a)?bt.call(a):"";return h==A||h==k}function En(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=c}function jt(a){var h=typeof a;return!!a&&(h=="object"||h=="function")}function Nt(a){return!!a&&typeof a=="object"}function Wr(a){return typeof a=="symbol"||Nt(a)&&bt.call(a)==ge}var Vr=Lr?Pr(Lr):ai;function Kr(a){return a==null?"":Rt(a)}function Cn(a,h,m){var M=a==null?void 0:vn(a,h);return M===void 0?m:M}function kn(a,h){return a!=null&&di(a,h,ns)}function Ft(a){return We(a)?je(a):ci(a)}function Ln(a){return a}function gi(a){return br(a)?lr(zr(a)):gr(a)}t.exports=Mn}(ln,ln.exports)),ln.exports}var wu=vu();const Ko=Gn(wu);function xu(t,e,r){let n=[];t.filterProperties.length&&t.filterProperties.forEach(s=>{const o={},l=d=>s.format==="date"?sn(d).unix():parseFloat(d);e.forEach(d=>{var g,y;if(s.type==="range"){const w=on(s.key,d);if(Array.isArray(w)){const b=[l(w[0]),l(w[1])];o.min=o.min!==void 0?Math.min(o.min,b[0]):b[0],o.max=o.max!==void 0?Math.max(o.max,b[1]):b[1]}else{const b=l(w);o.min=o.min!==void 0?Math.min(o.min,b):b,o.max=o.max!==void 0?Math.max(o.max,b):b}return}Array.isArray(d[s.key])?d[s.key].forEach(w=>{o[w]=void 0}):s.type==="spatial"?(o.geometry=((g=s==null?void 0:s.state)==null?void 0:g.geometry)||void 0,o.geometry&&(s.stringifiedState=o.geometry.type),o.mode=s.mode||"intersects"):(y=s.key)!=null&&y.includes(".")?Wo(Ko(r.items,s.key)).filter(w=>w).forEach(w=>{o[w]=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?Object.values(s.state).some(d=>d):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))}),Lc(e,Object.assign({keys:i},t.fuseConfig)),n}async function $u(t,e,r){let n;r.externalFilter?n=await Rc(e,r.filters,t):n=await Pc(e,r.filters,t),r.results=r.sortResults(n)}function _u(t,e,r){const n=`filter-${t.key}`.replace("|","-");switch(t.type){case"text":return ee`<eox-itemfilter-text
|
|
843
860
|
data-type="filter"
|
|
844
861
|
data-cy="text-filter"
|
|
845
862
|
slot="filter"
|
|
@@ -848,7 +865,7 @@ eox-itemfilter-results li.highlighted {
|
|
|
848
865
|
.filterObject=${t}
|
|
849
866
|
.unstyled=${r.unstyled}
|
|
850
867
|
@filter=${()=>r.search()}
|
|
851
|
-
></eox-itemfilter-text>`;case"multiselect":case"select":return
|
|
868
|
+
></eox-itemfilter-text>`;case"multiselect":case"select":return ee`
|
|
852
869
|
<eox-itemfilter-select
|
|
853
870
|
.inlineMode=${r.inlineMode||!1}
|
|
854
871
|
data-type="filter"
|
|
@@ -856,12 +873,12 @@ eox-itemfilter-results li.highlighted {
|
|
|
856
873
|
.tabIndex=${e}
|
|
857
874
|
.filterObject=${t}
|
|
858
875
|
slot="filter"
|
|
859
|
-
.suggestions="${
|
|
876
|
+
.suggestions="${Wo(Ko(r.items,t.key)).filter(i=>i)}"
|
|
860
877
|
type="${t.type}"
|
|
861
878
|
.unstyled=${r.unstyled}
|
|
862
879
|
@filter=${()=>r.search()}
|
|
863
880
|
></eox-itemfilter-select>
|
|
864
|
-
`;case"range":return
|
|
881
|
+
`;case"range":return ee`
|
|
865
882
|
<eox-itemfilter-range
|
|
866
883
|
id="${n}"
|
|
867
884
|
data-type="filter"
|
|
@@ -871,7 +888,7 @@ eox-itemfilter-results li.highlighted {
|
|
|
871
888
|
.unstyled=${r.unstyled}
|
|
872
889
|
@filter=${()=>r.search()}
|
|
873
890
|
></eox-itemfilter-range>
|
|
874
|
-
`;case"spatial":return
|
|
891
|
+
`;case"spatial":return ee`
|
|
875
892
|
<eox-itemfilter-spatial
|
|
876
893
|
id="${n}"
|
|
877
894
|
data-type="filter"
|
|
@@ -880,8 +897,8 @@ eox-itemfilter-results li.highlighted {
|
|
|
880
897
|
slot="filter"
|
|
881
898
|
@filter=${()=>r.search()}
|
|
882
899
|
></eox-itemfilter-spatial>
|
|
883
|
-
`;default:return
|
|
884
|
-
${
|
|
900
|
+
`;default:return ee``}}function Au(t,e){return[...t].sort((r,n)=>r[e.titleProperty].localeCompare(n[e.titleProperty]))}function Mu(t,e,r){return ee`
|
|
901
|
+
${Qe(t.dirty,()=>ee`
|
|
885
902
|
<button
|
|
886
903
|
type="button"
|
|
887
904
|
tabindex=${e}
|
|
@@ -889,22 +906,22 @@ eox-itemfilter-results li.highlighted {
|
|
|
889
906
|
class="reset-icon icon"
|
|
890
907
|
@click=${n=>{const i=n.target.parentElement.querySelector("[slot=filter]");i&&typeof i.reset=="function"&&i.reset(),r.search(),r.requestUpdate()}}
|
|
891
908
|
>
|
|
892
|
-
${r.unstyled?"Reset":
|
|
909
|
+
${r.unstyled?"Reset":Ae}
|
|
893
910
|
</button>
|
|
894
911
|
`)}
|
|
895
|
-
`}function
|
|
912
|
+
`}function Su(t){t.renderRoot.querySelectorAll("[data-type='filter']").forEach(e=>{typeof e.reset=="function"&&e.reset()}),t.search()}class Go extends et{constructor(){super();it(this,Cr);it(this,cn,[]);it(this,Er,[]);it(this,dt,yu);this.items=null,this.filters={},this.results=[],this.selectedResult=null,this.search=Zn(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.imageProperty=void 0,this.idProperty="id",this.expandMultipleFilters=!0,this.expandResults=!0,this.expandMultipleResults=!0,this.resultType="list",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},imageProperty:{attribute:"image-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},resultType:{attribute:"result-type",type:String},unstyled:{type:Boolean}}}apply(){yi(this,cn,xu(lt(this,dt),lt(this,Er),this)),this.search()}async searchHandler(){await $u(lt(this,dt),lt(this,Er),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 Au(r,lt(this,dt))}resetFilters(){Su(this)}firstUpdated(r){var i;let n={};zo.map(s=>{n={...n,[s]:this[s]}}),yi(this,dt,n),yi(this,Er,((i=this.items)==null?void 0:i.map((s,o)=>Object.assign({id:s[this.idProperty]||`item-${o}`},s)))||[]),this.apply()}updated(r){zo.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 ee`
|
|
896
913
|
<style>
|
|
897
|
-
${
|
|
898
|
-
${!this.unstyled&&
|
|
899
|
-
${!this.unstyled&&
|
|
914
|
+
${Sa}
|
|
915
|
+
${!this.unstyled&&tn}
|
|
916
|
+
${!this.unstyled&&Ea}
|
|
900
917
|
${this.styleOverride}
|
|
901
918
|
</style>
|
|
902
919
|
<form
|
|
903
920
|
id="itemfilter"
|
|
904
|
-
class=${this.inlineMode?"inline":
|
|
921
|
+
class=${this.inlineMode?"inline":Ae}
|
|
905
922
|
@submit="${n=>n.preventDefault()}"
|
|
906
923
|
>
|
|
907
|
-
${
|
|
924
|
+
${Qe(this.filterProperties,()=>ee`
|
|
908
925
|
<eox-itemfilter-container
|
|
909
926
|
.filters=${this.filters}
|
|
910
927
|
.filterProperties=${this.filterProperties}
|
|
@@ -913,24 +930,24 @@ eox-itemfilter-results li.highlighted {
|
|
|
913
930
|
@filter=${()=>this.search()}
|
|
914
931
|
>
|
|
915
932
|
<section slot="section">
|
|
916
|
-
${
|
|
933
|
+
${Qe(!this.inlineMode,()=>ee`
|
|
917
934
|
<slot name="filterstitle"
|
|
918
935
|
><h6 class="main-heading">Filters</h6></slot
|
|
919
936
|
>
|
|
920
937
|
`)}
|
|
921
938
|
<ul id="filters">
|
|
922
|
-
${
|
|
939
|
+
${On(Object.values(this.filters),(n,i)=>ee` <li>
|
|
923
940
|
<eox-itemfilter-expandcontainer
|
|
924
941
|
.filterObject=${n}
|
|
925
|
-
@details-toggled=${s=>
|
|
942
|
+
@details-toggled=${s=>ko(s,lt(this,dt),this)}
|
|
926
943
|
data-details="${n.key}"
|
|
927
944
|
>
|
|
928
|
-
${
|
|
929
|
-
${
|
|
945
|
+
${ye(this,Cr,da).call(this,n,Co(i,1))}
|
|
946
|
+
${ye(this,Cr,ua).call(this,n,Co(i,2))}
|
|
930
947
|
</eox-itemfilter-expandcontainer>
|
|
931
948
|
</li>`)}
|
|
932
949
|
</ul>
|
|
933
|
-
${
|
|
950
|
+
${Qe(!this.inlineMode&<(this,dt).filterProperties&&!this.inlineMode&<(this,dt).filterProperties&&qi(this.filters),()=>ee`
|
|
934
951
|
<button
|
|
935
952
|
type="button"
|
|
936
953
|
id="filter-reset"
|
|
@@ -944,12 +961,12 @@ eox-itemfilter-results li.highlighted {
|
|
|
944
961
|
</section>
|
|
945
962
|
</eox-itemfilter-container>
|
|
946
963
|
`)}
|
|
947
|
-
${
|
|
964
|
+
${Qe(((r=lt(this,dt))==null?void 0:r.showResults)&&this.results,()=>ee`
|
|
948
965
|
<eox-itemfilter-results
|
|
949
|
-
.config=${
|
|
966
|
+
.config=${lt(this,dt)}
|
|
950
967
|
.results=${this.results}
|
|
951
968
|
.filters=${this.filters}
|
|
952
|
-
.resultAggregation=${
|
|
969
|
+
.resultAggregation=${lt(this,cn)}
|
|
953
970
|
.selectedResult=${this.selectedResult}
|
|
954
971
|
.resultType=${this.resultType}
|
|
955
972
|
@result=${this.updateResult}
|
|
@@ -960,4 +977,4 @@ eox-itemfilter-results li.highlighted {
|
|
|
960
977
|
</eox-itemfilter-results>
|
|
961
978
|
`)}
|
|
962
979
|
</form>
|
|
963
|
-
`}}
|
|
980
|
+
`}}cn=new WeakMap,Er=new WeakMap,dt=new WeakMap,Cr=new WeakSet,ua=function(r,n){return _u(r,n,this)},da=function(r,n){return Mu(r,n,this)},customElements.define("eox-itemfilter",Go),ve.EOxItemFilter=Go,Object.defineProperty(ve,Symbol.toStringTag,{value:"Module"})});
|