@eox/itemfilter 0.10.2 → 0.11.1

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.
@@ -3,8 +3,8 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const wr = globalThis, Ci = wr.ShadowRoot && (wr.ShadyCSS === void 0 || wr.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, rs = Symbol(), _n = /* @__PURE__ */ new WeakMap();
7
- let ta = class {
6
+ const wr = globalThis, Li = wr.ShadowRoot && (wr.ShadyCSS === void 0 || wr.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, rs = Symbol(), _n = /* @__PURE__ */ new WeakMap();
7
+ let tl = class {
8
8
  constructor(e, r, i) {
9
9
  if (this._$cssResult$ = !0, i !== rs)
10
10
  throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -13,7 +13,7 @@ let ta = class {
13
13
  get styleSheet() {
14
14
  let e = this.o;
15
15
  const r = this.t;
16
- if (Ci && e === void 0) {
16
+ if (Li && e === void 0) {
17
17
  const i = r !== void 0 && r.length === 1;
18
18
  i && (e = _n.get(r)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && _n.set(r, e));
19
19
  }
@@ -23,29 +23,29 @@ let ta = class {
23
23
  return this.cssText;
24
24
  }
25
25
  };
26
- const ra = (t) => new ta(typeof t == "string" ? t : t + "", void 0, rs), ia = (t, e) => {
27
- if (Ci)
26
+ const rl = (t) => new tl(typeof t == "string" ? t : t + "", void 0, rs), il = (t, e) => {
27
+ if (Li)
28
28
  t.adoptedStyleSheets = e.map((r) => r instanceof CSSStyleSheet ? r : r.styleSheet);
29
29
  else
30
30
  for (const r of e) {
31
31
  const i = document.createElement("style"), n = wr.litNonce;
32
32
  n !== void 0 && i.setAttribute("nonce", n), i.textContent = r.cssText, t.appendChild(i);
33
33
  }
34
- }, En = Ci ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
34
+ }, En = Li ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
35
35
  let r = "";
36
36
  for (const i of e.cssRules)
37
37
  r += i.cssText;
38
- return ra(r);
38
+ return rl(r);
39
39
  })(t) : t;
40
40
  /**
41
41
  * @license
42
42
  * Copyright 2017 Google LLC
43
43
  * SPDX-License-Identifier: BSD-3-Clause
44
44
  */
45
- const { is: na, defineProperty: sa, getOwnPropertyDescriptor: oa, getOwnPropertyNames: aa, getOwnPropertySymbols: la, getPrototypeOf: ca } = Object, ot = globalThis, Sn = ot.trustedTypes, ha = Sn ? Sn.emptyScript : "", ci = ot.reactiveElementPolyfillSupport, Xt = (t, e) => t, _r = { toAttribute(t, e) {
45
+ const { is: nl, defineProperty: sl, getOwnPropertyDescriptor: ol, getOwnPropertyNames: ll, getOwnPropertySymbols: al, getPrototypeOf: cl } = Object, ot = globalThis, Sn = ot.trustedTypes, hl = Sn ? Sn.emptyScript : "", ci = ot.reactiveElementPolyfillSupport, Xt = (t, e) => t, _r = { toAttribute(t, e) {
46
46
  switch (e) {
47
47
  case Boolean:
48
- t = t ? ha : null;
48
+ t = t ? hl : null;
49
49
  break;
50
50
  case Object:
51
51
  case Array:
@@ -70,7 +70,7 @@ const { is: na, defineProperty: sa, getOwnPropertyDescriptor: oa, getOwnProperty
70
70
  }
71
71
  }
72
72
  return r;
73
- } }, Li = (t, e) => !na(t, e), An = { attribute: !0, type: String, converter: _r, reflect: !1, hasChanged: Li };
73
+ } }, Ci = (t, e) => !nl(t, e), An = { attribute: !0, type: String, converter: _r, reflect: !1, hasChanged: Ci };
74
74
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), ot.litPropertyMetadata ?? (ot.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
75
75
  class Pt extends HTMLElement {
76
76
  static addInitializer(e) {
@@ -82,11 +82,11 @@ class Pt extends HTMLElement {
82
82
  static createProperty(e, r = An) {
83
83
  if (r.state && (r.attribute = !1), this._$Ei(), this.elementProperties.set(e, r), !r.noAccessor) {
84
84
  const i = Symbol(), n = this.getPropertyDescriptor(e, i, r);
85
- n !== void 0 && sa(this.prototype, e, n);
85
+ n !== void 0 && sl(this.prototype, e, n);
86
86
  }
87
87
  }
88
88
  static getPropertyDescriptor(e, r, i) {
89
- const { get: n, set: s } = oa(this.prototype, e) ?? { get() {
89
+ const { get: n, set: s } = ol(this.prototype, e) ?? { get() {
90
90
  return this[r];
91
91
  }, set(o) {
92
92
  this[r] = o;
@@ -94,8 +94,8 @@ class Pt extends HTMLElement {
94
94
  return { get() {
95
95
  return n == null ? void 0 : n.call(this);
96
96
  }, set(o) {
97
- const l = n == null ? void 0 : n.call(this);
98
- s.call(this, o), this.requestUpdate(e, l, i);
97
+ const a = n == null ? void 0 : n.call(this);
98
+ s.call(this, o), this.requestUpdate(e, a, i);
99
99
  }, configurable: !0, enumerable: !0 };
100
100
  }
101
101
  static getPropertyOptions(e) {
@@ -104,14 +104,14 @@ class Pt extends HTMLElement {
104
104
  static _$Ei() {
105
105
  if (this.hasOwnProperty(Xt("elementProperties")))
106
106
  return;
107
- const e = ca(this);
107
+ const e = cl(this);
108
108
  e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
109
109
  }
110
110
  static finalize() {
111
111
  if (this.hasOwnProperty(Xt("finalized")))
112
112
  return;
113
113
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Xt("properties"))) {
114
- const r = this.properties, i = [...aa(r), ...la(r)];
114
+ const r = this.properties, i = [...ll(r), ...al(r)];
115
115
  for (const n of i)
116
116
  this.createProperty(n, r[n]);
117
117
  }
@@ -166,7 +166,7 @@ class Pt extends HTMLElement {
166
166
  }
167
167
  createRenderRoot() {
168
168
  const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
169
- return ia(e, this.constructor.elementStyles), e;
169
+ return il(e, this.constructor.elementStyles), e;
170
170
  }
171
171
  connectedCallback() {
172
172
  var e;
@@ -199,13 +199,13 @@ class Pt extends HTMLElement {
199
199
  var s;
200
200
  const i = this.constructor, n = i._$Eh.get(e);
201
201
  if (n !== void 0 && this._$Em !== n) {
202
- const o = i.getPropertyOptions(n), l = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? o.converter : _r;
203
- this._$Em = n, this[n] = l.fromAttribute(r, o.type), this._$Em = null;
202
+ const o = i.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? o.converter : _r;
203
+ this._$Em = n, this[n] = a.fromAttribute(r, o.type), this._$Em = null;
204
204
  }
205
205
  }
206
206
  requestUpdate(e, r, i, n = !1, s) {
207
207
  if (e !== void 0) {
208
- if (i ?? (i = this.constructor.getPropertyOptions(e)), !(i.hasChanged ?? Li)(n ? s : this[e], r))
208
+ if (i ?? (i = this.constructor.getPropertyOptions(e)), !(i.hasChanged ?? Ci)(n ? s : this[e], r))
209
209
  return;
210
210
  this.C(e, r, i);
211
211
  }
@@ -289,24 +289,24 @@ Pt.elementStyles = [], Pt.shadowRootOptions = { mode: "open" }, Pt[Xt("elementPr
289
289
  * Copyright 2017 Google LLC
290
290
  * SPDX-License-Identifier: BSD-3-Clause
291
291
  */
292
- const Vt = globalThis, Er = Vt.trustedTypes, Mn = Er ? Er.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ki = "$lit$", Ze = `lit$${(Math.random() + "").slice(9)}$`, Ri = "?" + Ze, ua = `<${Ri}>`, xt = document, Gt = () => xt.createComment(""), Jt = (t) => t === null || typeof t != "object" && typeof t != "function", is = Array.isArray, ns = (t) => is(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", hi = `[
292
+ const Vt = globalThis, Er = Vt.trustedTypes, Mn = Er ? Er.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ki = "$lit$", Ze = `lit$${(Math.random() + "").slice(9)}$`, Ri = "?" + Ze, ul = `<${Ri}>`, xt = document, Gt = () => xt.createComment(""), Jt = (t) => t === null || typeof t != "object" && typeof t != "function", is = Array.isArray, ns = (t) => is(t) || typeof (t == null ? void 0 : t[Symbol.iterator]) == "function", hi = `[
293
293
  \f\r]`, Yt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, On = /-->/g, Pn = />/g, mt = RegExp(`>|${hi}(?:([^\\s"'>=/]+)(${hi}*=${hi}*(?:[^
294
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Cn = /'/g, Ln = /"/g, ss = /^(?:script|style|textarea|title)$/i, da = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), V = da(1), at = Symbol.for("lit-noChange"), ae = Symbol.for("lit-nothing"), kn = /* @__PURE__ */ new WeakMap(), bt = xt.createTreeWalker(xt, 129);
294
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Ln = /'/g, Cn = /"/g, ss = /^(?:script|style|textarea|title)$/i, dl = (t) => (e, ...r) => ({ _$litType$: t, strings: e, values: r }), X = dl(1), lt = Symbol.for("lit-noChange"), oe = Symbol.for("lit-nothing"), kn = /* @__PURE__ */ new WeakMap(), bt = xt.createTreeWalker(xt, 129);
295
295
  function os(t, e) {
296
296
  if (!Array.isArray(t) || !t.hasOwnProperty("raw"))
297
297
  throw Error("invalid template strings array");
298
298
  return Mn !== void 0 ? Mn.createHTML(e) : e;
299
299
  }
300
- const as = (t, e) => {
300
+ const ls = (t, e) => {
301
301
  const r = t.length - 1, i = [];
302
302
  let n, s = e === 2 ? "<svg>" : "", o = Yt;
303
- for (let l = 0; l < r; l++) {
304
- const a = t[l];
303
+ for (let a = 0; a < r; a++) {
304
+ const l = t[a];
305
305
  let h, f, p = -1, b = 0;
306
- for (; b < a.length && (o.lastIndex = b, f = o.exec(a), f !== null); )
307
- b = o.lastIndex, o === Yt ? f[1] === "!--" ? o = On : f[1] !== void 0 ? o = Pn : f[2] !== void 0 ? (ss.test(f[2]) && (n = RegExp("</" + f[2], "g")), o = mt) : f[3] !== void 0 && (o = mt) : o === mt ? f[0] === ">" ? (o = n ?? Yt, p = -1) : f[1] === void 0 ? p = -2 : (p = o.lastIndex - f[2].length, h = f[1], o = f[3] === void 0 ? mt : f[3] === '"' ? Ln : Cn) : o === Ln || o === Cn ? o = mt : o === On || o === Pn ? o = Yt : (o = mt, n = void 0);
308
- const y = o === mt && t[l + 1].startsWith("/>") ? " " : "";
309
- s += o === Yt ? a + ua : p >= 0 ? (i.push(h), a.slice(0, p) + ki + a.slice(p) + Ze + y) : a + Ze + (p === -2 ? l : y);
306
+ for (; b < l.length && (o.lastIndex = b, f = o.exec(l), f !== null); )
307
+ b = o.lastIndex, o === Yt ? f[1] === "!--" ? o = On : f[1] !== void 0 ? o = Pn : f[2] !== void 0 ? (ss.test(f[2]) && (n = RegExp("</" + f[2], "g")), o = mt) : f[3] !== void 0 && (o = mt) : o === mt ? f[0] === ">" ? (o = n ?? Yt, p = -1) : f[1] === void 0 ? p = -2 : (p = o.lastIndex - f[2].length, h = f[1], o = f[3] === void 0 ? mt : f[3] === '"' ? Cn : Ln) : o === Cn || o === Ln ? o = mt : o === On || o === Pn ? o = Yt : (o = mt, n = void 0);
308
+ const y = o === mt && t[a + 1].startsWith("/>") ? " " : "";
309
+ s += o === Yt ? l + ul : p >= 0 ? (i.push(h), l.slice(0, p) + ki + l.slice(p) + Ze + y) : l + Ze + (p === -2 ? a : y);
310
310
  }
311
311
  return [os(t, s + (t[r] || "<?>") + (e === 2 ? "</svg>" : "")), i];
312
312
  };
@@ -315,36 +315,36 @@ class Zt {
315
315
  let n;
316
316
  this.parts = [];
317
317
  let s = 0, o = 0;
318
- const l = e.length - 1, a = this.parts, [h, f] = as(e, r);
318
+ const a = e.length - 1, l = this.parts, [h, f] = ls(e, r);
319
319
  if (this.el = Zt.createElement(h, i), bt.currentNode = this.el.content, r === 2) {
320
320
  const p = this.el.content.firstChild;
321
321
  p.replaceWith(...p.childNodes);
322
322
  }
323
- for (; (n = bt.nextNode()) !== null && a.length < l; ) {
323
+ for (; (n = bt.nextNode()) !== null && l.length < a; ) {
324
324
  if (n.nodeType === 1) {
325
325
  if (n.hasAttributes())
326
326
  for (const p of n.getAttributeNames())
327
327
  if (p.endsWith(ki)) {
328
328
  const b = f[o++], y = n.getAttribute(p).split(Ze), $ = /([.?@])?(.*)/.exec(b);
329
- a.push({ type: 1, index: s, name: $[2], strings: y, ctor: $[1] === "." ? cs : $[1] === "?" ? hs : $[1] === "@" ? us : nr }), n.removeAttribute(p);
329
+ l.push({ type: 1, index: s, name: $[2], strings: y, ctor: $[1] === "." ? cs : $[1] === "?" ? hs : $[1] === "@" ? us : nr }), n.removeAttribute(p);
330
330
  } else
331
- p.startsWith(Ze) && (a.push({ type: 6, index: s }), n.removeAttribute(p));
331
+ p.startsWith(Ze) && (l.push({ type: 6, index: s }), n.removeAttribute(p));
332
332
  if (ss.test(n.tagName)) {
333
333
  const p = n.textContent.split(Ze), b = p.length - 1;
334
334
  if (b > 0) {
335
335
  n.textContent = Er ? Er.emptyScript : "";
336
336
  for (let y = 0; y < b; y++)
337
- n.append(p[y], Gt()), bt.nextNode(), a.push({ type: 2, index: ++s });
337
+ n.append(p[y], Gt()), bt.nextNode(), l.push({ type: 2, index: ++s });
338
338
  n.append(p[b], Gt());
339
339
  }
340
340
  }
341
341
  } else if (n.nodeType === 8)
342
342
  if (n.data === Ri)
343
- a.push({ type: 2, index: s });
343
+ l.push({ type: 2, index: s });
344
344
  else {
345
345
  let p = -1;
346
346
  for (; (p = n.data.indexOf(Ze, p + 1)) !== -1; )
347
- a.push({ type: 7, index: s }), p += Ze.length - 1;
347
+ l.push({ type: 7, index: s }), p += Ze.length - 1;
348
348
  }
349
349
  s++;
350
350
  }
@@ -355,14 +355,14 @@ class Zt {
355
355
  }
356
356
  }
357
357
  function wt(t, e, r = t, i) {
358
- var o, l;
359
- if (e === at)
358
+ var o, a;
359
+ if (e === lt)
360
360
  return e;
361
361
  let n = i !== void 0 ? (o = r._$Co) == null ? void 0 : o[i] : r._$Cl;
362
362
  const s = Jt(e) ? void 0 : e._$litDirective$;
363
- return (n == null ? void 0 : n.constructor) !== s && ((l = n == null ? void 0 : n._$AO) == null || l.call(n, !1), s === void 0 ? n = void 0 : (n = new s(t), n._$AT(t, r, i)), i !== void 0 ? (r._$Co ?? (r._$Co = []))[i] = n : r._$Cl = n), n !== void 0 && (e = wt(t, n._$AS(t, e.values), n, i)), e;
363
+ return (n == null ? void 0 : n.constructor) !== s && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), s === void 0 ? n = void 0 : (n = new s(t), n._$AT(t, r, i)), i !== void 0 ? (r._$Co ?? (r._$Co = []))[i] = n : r._$Cl = n), n !== void 0 && (e = wt(t, n._$AS(t, e.values), n, i)), e;
364
364
  }
365
- class ls {
365
+ class as {
366
366
  constructor(e, r) {
367
367
  this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = r;
368
368
  }
@@ -375,13 +375,13 @@ class ls {
375
375
  u(e) {
376
376
  const { el: { content: r }, parts: i } = this._$AD, n = ((e == null ? void 0 : e.creationScope) ?? xt).importNode(r, !0);
377
377
  bt.currentNode = n;
378
- let s = bt.nextNode(), o = 0, l = 0, a = i[0];
379
- for (; a !== void 0; ) {
380
- if (o === a.index) {
378
+ let s = bt.nextNode(), o = 0, a = 0, l = i[0];
379
+ for (; l !== void 0; ) {
380
+ if (o === l.index) {
381
381
  let h;
382
- a.type === 2 ? h = new jt(s, s.nextSibling, this, e) : a.type === 1 ? h = new a.ctor(s, a.name, a.strings, this, e) : a.type === 6 && (h = new ds(s, this, e)), this._$AV.push(h), a = i[++l];
382
+ l.type === 2 ? h = new Nt(s, s.nextSibling, this, e) : l.type === 1 ? h = new l.ctor(s, l.name, l.strings, this, e) : l.type === 6 && (h = new ds(s, this, e)), this._$AV.push(h), l = i[++a];
383
383
  }
384
- o !== (a == null ? void 0 : a.index) && (s = bt.nextNode(), o++);
384
+ o !== (l == null ? void 0 : l.index) && (s = bt.nextNode(), o++);
385
385
  }
386
386
  return bt.currentNode = xt, n;
387
387
  }
@@ -391,13 +391,13 @@ class ls {
391
391
  i !== void 0 && (i.strings !== void 0 ? (i._$AI(e, i, r), r += i.strings.length - 2) : i._$AI(e[r])), r++;
392
392
  }
393
393
  }
394
- class jt {
394
+ class Nt {
395
395
  get _$AU() {
396
396
  var e;
397
397
  return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
398
398
  }
399
399
  constructor(e, r, i, n) {
400
- this.type = 2, this._$AH = ae, this._$AN = void 0, this._$AA = e, this._$AB = r, this._$AM = i, this.options = n, this._$Cv = (n == null ? void 0 : n.isConnected) ?? !0;
400
+ this.type = 2, this._$AH = oe, this._$AN = void 0, this._$AA = e, this._$AB = r, this._$AM = i, this.options = n, this._$Cv = (n == null ? void 0 : n.isConnected) ?? !0;
401
401
  }
402
402
  get parentNode() {
403
403
  let e = this._$AA.parentNode;
@@ -411,7 +411,7 @@ class jt {
411
411
  return this._$AB;
412
412
  }
413
413
  _$AI(e, r = this) {
414
- e = wt(this, e, r), Jt(e) ? e === ae || e == null || e === "" ? (this._$AH !== ae && this._$AR(), this._$AH = ae) : e !== this._$AH && e !== at && this._(e) : e._$litType$ !== void 0 ? this.g(e) : e.nodeType !== void 0 ? this.$(e) : ns(e) ? this.T(e) : this._(e);
414
+ e = wt(this, e, r), Jt(e) ? e === oe || e == null || e === "" ? (this._$AH !== oe && this._$AR(), this._$AH = oe) : e !== this._$AH && e !== lt && this._(e) : e._$litType$ !== void 0 ? this.g(e) : e.nodeType !== void 0 ? this.$(e) : ns(e) ? this.T(e) : this._(e);
415
415
  }
416
416
  k(e) {
417
417
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -420,7 +420,7 @@ class jt {
420
420
  this._$AH !== e && (this._$AR(), this._$AH = this.k(e));
421
421
  }
422
422
  _(e) {
423
- this._$AH !== ae && Jt(this._$AH) ? this._$AA.nextSibling.data = e : this.$(xt.createTextNode(e)), this._$AH = e;
423
+ this._$AH !== oe && Jt(this._$AH) ? this._$AA.nextSibling.data = e : this.$(xt.createTextNode(e)), this._$AH = e;
424
424
  }
425
425
  g(e) {
426
426
  var s;
@@ -428,8 +428,8 @@ class jt {
428
428
  if (((s = this._$AH) == null ? void 0 : s._$AD) === n)
429
429
  this._$AH.p(r);
430
430
  else {
431
- const o = new ls(n, this), l = o.u(this.options);
432
- o.p(r), this.$(l), this._$AH = o;
431
+ const o = new as(n, this), a = o.u(this.options);
432
+ o.p(r), this.$(a), this._$AH = o;
433
433
  }
434
434
  }
435
435
  _$AC(e) {
@@ -441,7 +441,7 @@ class jt {
441
441
  const r = this._$AH;
442
442
  let i, n = 0;
443
443
  for (const s of e)
444
- n === r.length ? r.push(i = new jt(this.k(Gt()), this.k(Gt()), this, this.options)) : i = r[n], i._$AI(s), n++;
444
+ n === r.length ? r.push(i = new Nt(this.k(Gt()), this.k(Gt()), this, this.options)) : i = r[n], i._$AI(s), n++;
445
445
  n < r.length && (this._$AR(i && i._$AB.nextSibling, n), r.length = n);
446
446
  }
447
447
  _$AR(e = this._$AA.nextSibling, r) {
@@ -464,23 +464,23 @@ class nr {
464
464
  return this._$AM._$AU;
465
465
  }
466
466
  constructor(e, r, i, n, s) {
467
- this.type = 1, this._$AH = ae, this._$AN = void 0, this.element = e, this.name = r, this._$AM = n, this.options = s, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = ae;
467
+ this.type = 1, this._$AH = oe, this._$AN = void 0, this.element = e, this.name = r, this._$AM = n, this.options = s, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = oe;
468
468
  }
469
469
  _$AI(e, r = this, i, n) {
470
470
  const s = this.strings;
471
471
  let o = !1;
472
472
  if (s === void 0)
473
- e = wt(this, e, r, 0), o = !Jt(e) || e !== this._$AH && e !== at, o && (this._$AH = e);
473
+ e = wt(this, e, r, 0), o = !Jt(e) || e !== this._$AH && e !== lt, o && (this._$AH = e);
474
474
  else {
475
- const l = e;
476
- let a, h;
477
- for (e = s[0], a = 0; a < s.length - 1; a++)
478
- h = wt(this, l[i + a], r, a), h === at && (h = this._$AH[a]), o || (o = !Jt(h) || h !== this._$AH[a]), h === ae ? e = ae : e !== ae && (e += (h ?? "") + s[a + 1]), this._$AH[a] = h;
475
+ const a = e;
476
+ let l, h;
477
+ for (e = s[0], l = 0; l < s.length - 1; l++)
478
+ h = wt(this, a[i + l], r, l), h === lt && (h = this._$AH[l]), o || (o = !Jt(h) || h !== this._$AH[l]), h === oe ? e = oe : e !== oe && (e += (h ?? "") + s[l + 1]), this._$AH[l] = h;
479
479
  }
480
480
  o && !n && this.O(e);
481
481
  }
482
482
  O(e) {
483
- e === ae ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
483
+ e === oe ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
484
484
  }
485
485
  }
486
486
  class cs extends nr {
@@ -488,7 +488,7 @@ class cs extends nr {
488
488
  super(...arguments), this.type = 3;
489
489
  }
490
490
  O(e) {
491
- this.element[this.name] = e === ae ? void 0 : e;
491
+ this.element[this.name] = e === oe ? void 0 : e;
492
492
  }
493
493
  }
494
494
  class hs extends nr {
@@ -496,7 +496,7 @@ class hs extends nr {
496
496
  super(...arguments), this.type = 4;
497
497
  }
498
498
  O(e) {
499
- this.element.toggleAttribute(this.name, !!e && e !== ae);
499
+ this.element.toggleAttribute(this.name, !!e && e !== oe);
500
500
  }
501
501
  }
502
502
  class us extends nr {
@@ -504,9 +504,9 @@ class us extends nr {
504
504
  super(e, r, i, n, s), this.type = 5;
505
505
  }
506
506
  _$AI(e, r = this) {
507
- if ((e = wt(this, e, r, 0) ?? ae) === at)
507
+ if ((e = wt(this, e, r, 0) ?? oe) === lt)
508
508
  return;
509
- const i = this._$AH, n = e === ae && i !== ae || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, s = e !== ae && (i === ae || n);
509
+ const i = this._$AH, n = e === oe && i !== oe || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, s = e !== oe && (i === oe || n);
510
510
  n && this.element.removeEventListener(this.name, this, i), s && this.element.addEventListener(this.name, this, e), this._$AH = e;
511
511
  }
512
512
  handleEvent(e) {
@@ -525,14 +525,14 @@ class ds {
525
525
  wt(this, e);
526
526
  }
527
527
  }
528
- const fa = { j: ki, P: Ze, A: Ri, C: 1, M: as, L: ls, R: ns, V: wt, D: jt, I: nr, H: hs, N: us, U: cs, B: ds }, ui = Vt.litHtmlPolyfillSupport;
529
- ui == null || ui(Zt, jt), (Vt.litHtmlVersions ?? (Vt.litHtmlVersions = [])).push("3.1.0");
530
- const pa = (t, e, r) => {
528
+ const fl = { j: ki, P: Ze, A: Ri, C: 1, M: ls, L: as, R: ns, V: wt, D: Nt, I: nr, H: hs, N: us, U: cs, B: ds }, ui = Vt.litHtmlPolyfillSupport;
529
+ ui == null || ui(Zt, Nt), (Vt.litHtmlVersions ?? (Vt.litHtmlVersions = [])).push("3.1.0");
530
+ const pl = (t, e, r) => {
531
531
  const i = (r == null ? void 0 : r.renderBefore) ?? e;
532
532
  let n = i._$litPart$;
533
533
  if (n === void 0) {
534
534
  const s = (r == null ? void 0 : r.renderBefore) ?? null;
535
- i._$litPart$ = n = new jt(e.insertBefore(Gt(), s), s, void 0, r ?? {});
535
+ i._$litPart$ = n = new Nt(e.insertBefore(Gt(), s), s, void 0, r ?? {});
536
536
  }
537
537
  return n._$AI(t), n;
538
538
  };
@@ -552,7 +552,7 @@ let _e = class extends Pt {
552
552
  }
553
553
  update(e) {
554
554
  const r = this.render();
555
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = pa(r, this.renderRoot, this.renderOptions);
555
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = pl(r, this.renderRoot, this.renderOptions);
556
556
  }
557
557
  connectedCallback() {
558
558
  var e;
@@ -563,7 +563,7 @@ let _e = class extends Pt {
563
563
  super.disconnectedCallback(), (e = this._$Do) == null || e.setConnected(!1);
564
564
  }
565
565
  render() {
566
- return at;
566
+ return lt;
567
567
  }
568
568
  };
569
569
  var ts;
@@ -586,29 +586,29 @@ const Re = (t) => (e, r) => {
586
586
  * Copyright 2017 Google LLC
587
587
  * SPDX-License-Identifier: BSD-3-Clause
588
588
  */
589
- const ga = { attribute: !0, type: String, converter: _r, reflect: !1, hasChanged: Li }, ma = (t = ga, e, r) => {
589
+ const gl = { attribute: !0, type: String, converter: _r, reflect: !1, hasChanged: Ci }, ml = (t = gl, e, r) => {
590
590
  const { kind: i, metadata: n } = r;
591
591
  let s = globalThis.litPropertyMetadata.get(n);
592
592
  if (s === void 0 && globalThis.litPropertyMetadata.set(n, s = /* @__PURE__ */ new Map()), s.set(r.name, t), i === "accessor") {
593
593
  const { name: o } = r;
594
- return { set(l) {
595
- const a = e.get.call(this);
596
- e.set.call(this, l), this.requestUpdate(o, a, t);
597
- }, init(l) {
598
- return l !== void 0 && this.C(o, void 0, t), l;
594
+ return { set(a) {
595
+ const l = e.get.call(this);
596
+ e.set.call(this, a), this.requestUpdate(o, l, t);
597
+ }, init(a) {
598
+ return a !== void 0 && this.C(o, void 0, t), a;
599
599
  } };
600
600
  }
601
601
  if (i === "setter") {
602
602
  const { name: o } = r;
603
- return function(l) {
604
- const a = this[o];
605
- e.call(this, l), this.requestUpdate(o, a, t);
603
+ return function(a) {
604
+ const l = this[o];
605
+ e.call(this, a), this.requestUpdate(o, l, t);
606
606
  };
607
607
  }
608
608
  throw Error("Unsupported decorator location: " + i);
609
609
  };
610
610
  function J(t) {
611
- return (e, r) => typeof r == "object" ? ma(t, e, r) : ((i, n, s) => {
611
+ return (e, r) => typeof r == "object" ? ml(t, e, r) : ((i, n, s) => {
612
612
  const o = n.hasOwnProperty(s);
613
613
  return n.constructor.createProperty(s, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(n, s) : void 0;
614
614
  })(t, e, r);
@@ -626,7 +626,7 @@ function Ke(t) {
626
626
  * Copyright 2021 Google LLC
627
627
  * SPDX-License-Identifier: BSD-3-Clause
628
628
  */
629
- function fe(t, e, r) {
629
+ function de(t, e, r) {
630
630
  return t ? e(t) : r == null ? void 0 : r(t);
631
631
  }
632
632
  /**
@@ -668,19 +668,19 @@ let gs = class {
668
668
  * Copyright 2020 Google LLC
669
669
  * SPDX-License-Identifier: BSD-3-Clause
670
670
  */
671
- const { D: ya } = fa, Rn = () => document.createComment(""), Wt = (t, e, r) => {
671
+ const { D: yl } = fl, Rn = () => document.createComment(""), Wt = (t, e, r) => {
672
672
  var s;
673
673
  const i = t._$AA.parentNode, n = e === void 0 ? t._$AB : e._$AA;
674
674
  if (r === void 0) {
675
- const o = i.insertBefore(Rn(), n), l = i.insertBefore(Rn(), n);
676
- r = new ya(o, l, t, t.options);
675
+ const o = i.insertBefore(Rn(), n), a = i.insertBefore(Rn(), n);
676
+ r = new yl(o, a, t, t.options);
677
677
  } else {
678
- const o = r._$AB.nextSibling, l = r._$AM, a = l !== t;
679
- if (a) {
678
+ const o = r._$AB.nextSibling, a = r._$AM, l = a !== t;
679
+ if (l) {
680
680
  let h;
681
- (s = r._$AQ) == null || s.call(r, t), r._$AM = t, r._$AP !== void 0 && (h = t._$AU) !== l._$AU && r._$AP(h);
681
+ (s = r._$AQ) == null || s.call(r, t), r._$AM = t, r._$AP !== void 0 && (h = t._$AU) !== a._$AU && r._$AP(h);
682
682
  }
683
- if (o !== n || a) {
683
+ if (o !== n || l) {
684
684
  let h = r._$AA;
685
685
  for (; h !== o; ) {
686
686
  const f = h.nextSibling;
@@ -689,7 +689,7 @@ const { D: ya } = fa, Rn = () => document.createComment(""), Wt = (t, e, r) => {
689
689
  }
690
690
  }
691
691
  return r;
692
- }, yt = (t, e, r = t) => (t._$AI(e, r), t), va = {}, ba = (t, e = va) => t._$AH = e, xa = (t) => t._$AH, fi = (t) => {
692
+ }, yt = (t, e, r = t) => (t._$AI(e, r), t), vl = {}, bl = (t, e = vl) => t._$AH = e, xl = (t) => t._$AH, fi = (t) => {
693
693
  var i;
694
694
  (i = t._$AP) == null || i.call(t, !1, !0);
695
695
  let e = t._$AA;
@@ -719,54 +719,54 @@ const Tn = (t, e, r) => {
719
719
  r === void 0 ? r = e : e !== void 0 && (i = e);
720
720
  const n = [], s = [];
721
721
  let o = 0;
722
- for (const l of t)
723
- n[o] = i ? i(l, o) : o, s[o] = r(l, o), o++;
722
+ for (const a of t)
723
+ n[o] = i ? i(a, o) : o, s[o] = r(a, o), o++;
724
724
  return { values: s, keys: n };
725
725
  }
726
726
  render(t, e, r) {
727
727
  return this.ht(t, e, r).values;
728
728
  }
729
729
  update(t, [e, r, i]) {
730
- const n = xa(t), { values: s, keys: o } = this.ht(e, r, i);
730
+ const n = xl(t), { values: s, keys: o } = this.ht(e, r, i);
731
731
  if (!Array.isArray(n))
732
732
  return this.dt = o, s;
733
- const l = this.dt ?? (this.dt = []), a = [];
733
+ const a = this.dt ?? (this.dt = []), l = [];
734
734
  let h, f, p = 0, b = n.length - 1, y = 0, $ = s.length - 1;
735
735
  for (; p <= b && y <= $; )
736
736
  if (n[p] === null)
737
737
  p++;
738
738
  else if (n[b] === null)
739
739
  b--;
740
- else if (l[p] === o[y])
741
- a[y] = yt(n[p], s[y]), p++, y++;
742
- else if (l[b] === o[$])
743
- a[$] = yt(n[b], s[$]), b--, $--;
744
- else if (l[p] === o[$])
745
- a[$] = yt(n[p], s[$]), Wt(t, a[$ + 1], n[p]), p++, $--;
746
- else if (l[b] === o[y])
747
- a[y] = yt(n[b], s[y]), Wt(t, n[p], n[b]), b--, y++;
748
- else if (h === void 0 && (h = Tn(o, y, $), f = Tn(l, p, b)), h.has(l[p]))
749
- if (h.has(l[b])) {
750
- const C = f.get(o[y]), G = C !== void 0 ? n[C] : null;
740
+ else if (a[p] === o[y])
741
+ l[y] = yt(n[p], s[y]), p++, y++;
742
+ else if (a[b] === o[$])
743
+ l[$] = yt(n[b], s[$]), b--, $--;
744
+ else if (a[p] === o[$])
745
+ l[$] = yt(n[p], s[$]), Wt(t, l[$ + 1], n[p]), p++, $--;
746
+ else if (a[b] === o[y])
747
+ l[y] = yt(n[b], s[y]), Wt(t, n[p], n[b]), b--, y++;
748
+ else if (h === void 0 && (h = Tn(o, y, $), f = Tn(a, p, b)), h.has(a[p]))
749
+ if (h.has(a[b])) {
750
+ const L = f.get(o[y]), G = L !== void 0 ? n[L] : null;
751
751
  if (G === null) {
752
752
  const B = Wt(t, n[p]);
753
- yt(B, s[y]), a[y] = B;
753
+ yt(B, s[y]), l[y] = B;
754
754
  } else
755
- a[y] = yt(G, s[y]), Wt(t, n[p], G), n[C] = null;
755
+ l[y] = yt(G, s[y]), Wt(t, n[p], G), n[L] = null;
756
756
  y++;
757
757
  } else
758
758
  fi(n[b]), b--;
759
759
  else
760
760
  fi(n[p]), p++;
761
761
  for (; y <= $; ) {
762
- const C = Wt(t, a[$ + 1]);
763
- yt(C, s[y]), a[y++] = C;
762
+ const L = Wt(t, l[$ + 1]);
763
+ yt(L, s[y]), l[y++] = L;
764
764
  }
765
765
  for (; p <= b; ) {
766
- const C = n[p++];
767
- C !== null && fi(C);
766
+ const L = n[p++];
767
+ L !== null && fi(L);
768
768
  }
769
- return this.dt = o, ba(t, a), at;
769
+ return this.dt = o, bl(t, l), lt;
770
770
  }
771
771
  });
772
772
  /**
@@ -776,13 +776,13 @@ const Tn = (t, e, r) => {
776
776
  */
777
777
  let mi = class extends gs {
778
778
  constructor(e) {
779
- if (super(e), this.et = ae, e.type !== fs.CHILD)
779
+ if (super(e), this.et = oe, e.type !== fs.CHILD)
780
780
  throw Error(this.constructor.directiveName + "() can only be used in child bindings");
781
781
  }
782
782
  render(e) {
783
- if (e === ae || e == null)
783
+ if (e === oe || e == null)
784
784
  return this.vt = void 0, this.et = e;
785
- if (e === at)
785
+ if (e === lt)
786
786
  return e;
787
787
  if (typeof e != "string")
788
788
  throw Error(this.constructor.directiveName + "() called with a non-string value");
@@ -800,35 +800,35 @@ const In = ps(mi);
800
800
  * Copyright 2020 Google LLC
801
801
  * SPDX-License-Identifier: BSD-3-Clause
802
802
  */
803
- const ys = Symbol.for(""), wa = (t) => {
803
+ const ys = Symbol.for(""), wl = (t) => {
804
804
  if ((t == null ? void 0 : t.r) === ys)
805
805
  return t == null ? void 0 : t._$litStatic$;
806
- }, Ct = (t) => ({ _$litStatic$: t, r: ys }), Dn = /* @__PURE__ */ new Map(), $a = (t) => (e, ...r) => {
806
+ }, Lt = (t) => ({ _$litStatic$: t, r: ys }), Dn = /* @__PURE__ */ new Map(), $l = (t) => (e, ...r) => {
807
807
  const i = r.length;
808
808
  let n, s;
809
- const o = [], l = [];
810
- let a, h = 0, f = !1;
809
+ const o = [], a = [];
810
+ let l, h = 0, f = !1;
811
811
  for (; h < i; ) {
812
- for (a = e[h]; h < i && (s = r[h], (n = wa(s)) !== void 0); )
813
- a += n + e[++h], f = !0;
814
- h !== i && l.push(s), o.push(a), h++;
812
+ for (l = e[h]; h < i && (s = r[h], (n = wl(s)) !== void 0); )
813
+ l += n + e[++h], f = !0;
814
+ h !== i && a.push(s), o.push(l), h++;
815
815
  }
816
816
  if (h === i && o.push(e[i]), f) {
817
817
  const p = o.join("$$lit$$");
818
- (e = Dn.get(p)) === void 0 && (o.raw = o, Dn.set(p, e = o)), r = l;
818
+ (e = Dn.get(p)) === void 0 && (o.raw = o, Dn.set(p, e = o)), r = a;
819
819
  }
820
820
  return t(e, ...r);
821
- }, $r = $a(V);
821
+ }, $r = $l(X);
822
822
  (() => {
823
- var t = Object.defineProperty, e = Math.pow, r = (c, d, x) => d in c ? t(c, d, { enumerable: !0, configurable: !0, writable: !0, value: x }) : c[d] = x, i = (c, d, x) => (r(c, typeof d != "symbol" ? d + "" : d, x), x), n = (c, d) => ` ${d && d.length > 0 ? d.map((x) => `<link rel="stylesheet" href="${x}" />`).join("") : ""} <style> ${c} </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", a = "pointers-max-distance", h = "range-dragging", f = "data", p = "min", b = "max", y = "step", $ = "round", C = "type", G = "theme", B = "rtl", g = "btt", m = "disabled", w = "keyboard-disabled", S = "mousewheel-disabled", E = "slider-width", A = "slider-height", k = "slider-radius", F = "slider-bg", H = "slider-bg-hover", I = "slider-bg-fill", te = "pointer-width", oe = "pointer-height", O = "pointer-radius", P = "pointer-bg", M = "pointer-bg-hover", N = "pointer-bg-focus", L = "pointer-shadow", X = "pointer-shadow-hover", U = "pointer-shadow-focus", se = "pointer-border", re = "pointer-border-hover", ye = "pointer-border-focus", ve = "animate-onclick", Ae = "css-links", xe = "vertical", Me = "horizontal", Je = (c, d, x, v, R) => {
823
+ var t = Object.defineProperty, e = Math.pow, r = (c, d, x) => d in c ? t(c, d, { enumerable: !0, configurable: !0, writable: !0, value: x }) : c[d] = x, i = (c, d, x) => (r(c, typeof d != "symbol" ? d + "" : d, x), x), n = (c, d) => ` ${d && d.length > 0 ? d.map((x) => `<link rel="stylesheet" href="${x}" />`).join("") : ""} <style> ${c} </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", a = "pointers-min-distance", l = "pointers-max-distance", h = "range-dragging", f = "data", p = "min", b = "max", y = "step", $ = "round", L = "type", G = "theme", B = "rtl", g = "btt", m = "disabled", w = "keyboard-disabled", S = "mousewheel-disabled", E = "slider-width", A = "slider-height", k = "slider-radius", F = "slider-bg", H = "slider-bg-hover", I = "slider-bg-fill", te = "pointer-width", le = "pointer-height", O = "pointer-radius", P = "pointer-bg", M = "pointer-bg-hover", j = "pointer-bg-focus", C = "pointer-shadow", V = "pointer-shadow-hover", U = "pointer-shadow-focus", se = "pointer-border", re = "pointer-border-hover", ye = "pointer-border-focus", ve = "animate-onclick", Ae = "css-links", xe = "vertical", Me = "horizontal", Je = (c, d, x, v, R) => {
824
824
  let z = d - c;
825
825
  return z === 0 ? x : (v - x) * (R - c) / z + x;
826
- }, $e = (c) => !isNaN(parseFloat(c)) && isFinite(c), ie = (c, d) => $e(c) ? Number(c) : d, je = (c, d) => d === 0 ? 0 : Math.round(c / d) * d, ft = (c, d = 1 / 0) => {
826
+ }, $e = (c) => !isNaN(parseFloat(c)) && isFinite(c), ie = (c, d) => $e(c) ? Number(c) : d, Ne = (c, d) => d === 0 ? 0 : Math.round(c / d) * d, ft = (c, d = 1 / 0) => {
827
827
  if (d === 1 / 0)
828
828
  return c;
829
829
  let x = e(10, d);
830
830
  return Math.round(c * x) / x;
831
- }, de = (c) => c == null ? !1 : typeof c == "boolean" ? c : c.trim().toLowerCase() === "true", io = (c, d) => {
831
+ }, fe = (c) => c == null ? !1 : typeof c == "boolean" ? c : c.trim().toLowerCase() === "true", io = (c, d) => {
832
832
  c.dispatchEvent(new CustomEvent("onPointerClicked", { detail: { $pointer: d } }));
833
833
  }, no = (c, d) => {
834
834
  c.dispatchEvent(new CustomEvent("onMouseDown", { detail: { nativeEvent: d } }));
@@ -836,7 +836,7 @@ const ys = Symbol.for(""), wa = (t) => {
836
836
  c.dispatchEvent(new CustomEvent("onMouseUp", { detail: { nativeEvent: d } }));
837
837
  }, oo = (c, d) => {
838
838
  c.dispatchEvent(new CustomEvent("onKeyDown", { detail: { nativeEvent: d } }));
839
- }, ao = (c, d) => {
839
+ }, lo = (c, d) => {
840
840
  if (!d || d.length <= 0)
841
841
  return;
842
842
  let x = d.map((R) => $e(R) ? ie(R, R) : R), v = { values: x || [] };
@@ -844,7 +844,7 @@ const ys = Symbol.for(""), wa = (t) => {
844
844
  for (let R = 1; R < x.length; R++)
845
845
  v[`value${R + 1}`] = x[R];
846
846
  c.dispatchEvent(new CustomEvent("change", { detail: v }));
847
- }, jr = (c, d, x) => {
847
+ }, Nr = (c, d, x) => {
848
848
  let v = 0, R, z, Z, T, D = !1, Q = (W, ue, we, be, pe, ge) => {
849
849
  let Oe = v;
850
850
  we !== void 0 && W > we && (W = we), ue !== void 0 && W < ue && (W = ue), v = W;
@@ -890,7 +890,7 @@ const ys = Symbol.for(""), wa = (t) => {
890
890
  }, updatePosition: Q, isClicked: ne, setCallbacks: q, setAttr: Te, getAttr: Ee, destroy: () => {
891
891
  d.removeEventListener("keydown", Y), d.removeEventListener("click", ee), d.remove();
892
892
  } };
893
- }, lo = (c) => {
893
+ }, ao = (c) => {
894
894
  if (c == null)
895
895
  return;
896
896
  if (Array.isArray(c))
@@ -908,7 +908,7 @@ const ys = Symbol.for(""), wa = (t) => {
908
908
  return;
909
909
  let z = x.length === 1, Z = x[0], T = x[x.length - 1];
910
910
  d === xe ? (c.style.removeProperty("width"), c.style.removeProperty("right"), c.style.removeProperty("left"), z ? c.style.height = `${Z}%` : c.style.height = `${Math.abs(Z - T)}%`, R ? (c.style.bottom = "0%", z ? c.style.top = "auto" : c.style.top = `${Math.min(100 - T, 100 - Z)}%`) : (c.style.bottom = "auto", z ? c.style.top = "0%" : c.style.top = `${Math.min(Z, T)}%`)) : (c.style.removeProperty("height"), c.style.removeProperty("top"), c.style.removeProperty("bottom"), z ? c.style.width = `${Z}%` : c.style.width = `${Math.abs(Z - T)}%`, v ? (c.style.right = "0%", z ? c.style.left = "auto" : c.style.left = `${Math.min(100 - T, 100 - Z)}%`) : (c.style.right = "auto", z ? c.style.left = "0%" : c.style.left = `${Math.min(Z, T)}%`));
911
- } }), Zi = "--animate-onclick", uo = "--width", fo = "--height", po = "--panel-bg-border-radius", go = "--panel-bg", mo = "--panel-bg-hover", yo = "--panel-bg-fill", vo = "--pointer-width", bo = "--pointer-height", xo = "--pointer-border-radius", wo = "--pointer-bg", $o = "--pointer-bg-hover", _o = "--pointer-bg-focus", Eo = "--pointer-shadow", So = "--pointer-shadow-hover", Ao = "--pointer-shadow-focus", Mo = "--pointer-border", Oo = "--pointer-border-hover", Po = "--pointer-border-focus", ar = (c, d, x) => {
911
+ } }), Zi = "--animate-onclick", uo = "--width", fo = "--height", po = "--panel-bg-border-radius", go = "--panel-bg", mo = "--panel-bg-hover", yo = "--panel-bg-fill", vo = "--pointer-width", bo = "--pointer-height", xo = "--pointer-border-radius", wo = "--pointer-bg", $o = "--pointer-bg-hover", _o = "--pointer-bg-focus", Eo = "--pointer-shadow", So = "--pointer-shadow-hover", Ao = "--pointer-shadow-focus", Mo = "--pointer-border", Oo = "--pointer-border-hover", Po = "--pointer-border-focus", lr = (c, d, x) => {
912
912
  let v = /* @__PURE__ */ new Map();
913
913
  for (let R of c.attributes) {
914
914
  let z = R.nodeName.trim().toLowerCase();
@@ -918,7 +918,7 @@ const ys = Symbol.for(""), wa = (t) => {
918
918
  v.set(T, D);
919
919
  }
920
920
  return v;
921
- }, Co = (c) => {
921
+ }, Lo = (c) => {
922
922
  if (!c)
923
923
  return null;
924
924
  let d = c.getAttribute(Ae);
@@ -928,7 +928,7 @@ const ys = Symbol.for(""), wa = (t) => {
928
928
  for (let R of x)
929
929
  R.trim() !== "" && v.push(R.trim());
930
930
  return v;
931
- }, Qi = [[uo, E, "sliderWidth", null], [fo, A, "sliderHeight", null], [po, k, "sliderRadius", null], [go, F, "sliderBg", null], [mo, H, "sliderBgHover", null], [yo, I, "sliderBgFill", null], [vo, te, "pointer#Width", /^pointer([0-9]*)-width$/], [bo, oe, "pointer#Height", /^pointer([0-9]*)-height$/], [xo, O, "pointer#Radius", /^pointer([0-9]*)-radius$/], [wo, P, "pointer#Bg", /^pointer([0-9]*)-bg$/], [$o, M, "pointer#BgHover", /^pointer([0-9]*)-bg-hover$/], [_o, N, "pointer#BgFocus", /^pointer([0-9]*)-bg-focus$/], [Eo, L, "pointer#Shadow", /^pointer([0-9]*)-shadow$/], [So, X, "pointer#ShadowHover", /^pointer([0-9]*)-shadow-hover$/], [Ao, U, "pointer#ShadowFocus", /^pointer([0-9]*)-shadow-focus$/], [Mo, se, "pointer#Border", /^pointer([0-9]*)-border$/], [Oo, re, "pointer#BorderHover", /^pointer([0-9]*)-border-hover$/], [Po, ye, "pointer#BorderFocus", /^pointer([0-9]*)-border-focus$/]], Lo = (c, d, x) => {
931
+ }, Qi = [[uo, E, "sliderWidth", null], [fo, A, "sliderHeight", null], [po, k, "sliderRadius", null], [go, F, "sliderBg", null], [mo, H, "sliderBgHover", null], [yo, I, "sliderBgFill", null], [vo, te, "pointer#Width", /^pointer([0-9]*)-width$/], [bo, le, "pointer#Height", /^pointer([0-9]*)-height$/], [xo, O, "pointer#Radius", /^pointer([0-9]*)-radius$/], [wo, P, "pointer#Bg", /^pointer([0-9]*)-bg$/], [$o, M, "pointer#BgHover", /^pointer([0-9]*)-bg-hover$/], [_o, j, "pointer#BgFocus", /^pointer([0-9]*)-bg-focus$/], [Eo, C, "pointer#Shadow", /^pointer([0-9]*)-shadow$/], [So, V, "pointer#ShadowHover", /^pointer([0-9]*)-shadow-hover$/], [Ao, U, "pointer#ShadowFocus", /^pointer([0-9]*)-shadow-focus$/], [Mo, se, "pointer#Border", /^pointer([0-9]*)-border$/], [Oo, re, "pointer#BorderHover", /^pointer([0-9]*)-border-hover$/], [Po, ye, "pointer#BorderFocus", /^pointer([0-9]*)-border-focus$/]], Co = (c, d, x) => {
932
932
  let v = null, R = [], z = /* @__PURE__ */ new Map(), Z = (Y, ee = d) => {
933
933
  let W = [...ee.classList];
934
934
  for (let ue of W)
@@ -955,7 +955,7 @@ const ys = Symbol.for(""), wa = (t) => {
955
955
  R[Y] = ee, Q();
956
956
  }, q = () => {
957
957
  T();
958
- let Y = ar(c, /^pointer([0-9]*)-shape$/);
958
+ let Y = lr(c, /^pointer([0-9]*)-shape$/);
959
959
  if (!(Y.size <= 0)) {
960
960
  for (let ee of Y) {
961
961
  let W = ee[0];
@@ -978,7 +978,7 @@ const ys = Symbol.for(""), wa = (t) => {
978
978
  for (let Y of Qi) {
979
979
  let [ee, W, ue, we] = Y;
980
980
  if (we) {
981
- let pe = ar(c, we);
981
+ let pe = lr(c, we);
982
982
  for (let ge of pe) {
983
983
  let Oe = ge[0], Pe = ge[1];
984
984
  Te(ee, Pe, Oe);
@@ -1059,11 +1059,11 @@ const ys = Symbol.for(""), wa = (t) => {
1059
1059
  x.set(ne, q);
1060
1060
  }
1061
1061
  let R = Math.max(...Array.from(x.keys())), z = [];
1062
- z.push([jr(c, d, 0), x.get(0)]);
1062
+ z.push([Nr(c, d, 0), x.get(0)]);
1063
1063
  let Z = d;
1064
1064
  for (let T = 1; T <= R; T++) {
1065
1065
  let D = d.cloneNode(!0);
1066
- Z.after(D), Z = D, z.push([jr(c, D, T), x.get(T)]);
1066
+ Z.after(D), Z = D, z.push([Nr(c, D, T), x.get(T)]);
1067
1067
  }
1068
1068
  return z;
1069
1069
  }, rn = (c, d, x, v, R, z, Z) => {
@@ -1118,80 +1118,80 @@ const ys = Symbol.for(""), wa = (t) => {
1118
1118
  x.$pointer.style.zIndex = tn.toString();
1119
1119
  d.$pointer.style.zIndex = (tn * 2).toString();
1120
1120
  }
1121
- }, Br = 0, qt = 100, At = 2, sn = "0.3s", No = (c, d, x) => {
1122
- let v = x.map((u) => u[0]), R = null, z = null, Z = null, T = null, D = Br, Q = qt, ne, q, ce = Me, Te = At, Ee = !1, Y = !1, ee = !1, W = 0, ue = 1 / 0, we = !1, be, pe, ge = !1, Oe = !1, Pe = !1, st = sn, on = [], an = (u) => {
1123
- ge || (u.preventDefault && u.preventDefault(), pt(u), window.addEventListener("mousemove", pt), window.addEventListener("mouseup", lr), no(c, u));
1124
- }, lr = (u) => {
1125
- ge || (be = void 0, pe = void 0, window.removeEventListener("mousemove", pt), window.removeEventListener("mouseup", lr), st && d.classList.add(St), so(c, u));
1121
+ }, Br = 0, qt = 100, At = 2, sn = "0.3s", jo = (c, d, x) => {
1122
+ let v = x.map((u) => u[0]), R = null, z = null, Z = null, T = null, D = Br, Q = qt, ne, q, ce = Me, Te = At, Ee = !1, Y = !1, ee = !1, W = 0, ue = 1 / 0, we = !1, be, pe, ge = !1, Oe = !1, Pe = !1, st = sn, on = [], ln = (u) => {
1123
+ ge || (u.preventDefault && u.preventDefault(), pt(u), window.addEventListener("mousemove", pt), window.addEventListener("mouseup", ar), no(c, u));
1124
+ }, ar = (u) => {
1125
+ ge || (be = void 0, pe = void 0, window.removeEventListener("mousemove", pt), window.removeEventListener("mouseup", ar), st && d.classList.add(St), so(c, u));
1126
1126
  }, Fo = (u, _) => {
1127
1127
  if (v.length <= 0)
1128
1128
  return;
1129
1129
  if (v.length === 1)
1130
1130
  return v[0].isClicked(u) && st && d.classList.remove(St), v[0];
1131
- let j = qo(u);
1131
+ let N = qo(u);
1132
1132
  if (we) {
1133
- let le = _, Be = hr(le);
1134
- Be !== void 0 && (le = je(le, Be)), j ? (be = le, pe = 0, st && d.classList.remove(St)) : be !== void 0 && (pe = le - be, be = le);
1133
+ let ae = _, Be = hr(ae);
1134
+ Be !== void 0 && (ae = Ne(ae, Be)), N ? (be = ae, pe = 0, st && d.classList.remove(St)) : be !== void 0 && (pe = ae - be, be = ae);
1135
1135
  }
1136
- if (!Ho(u) && !j) {
1137
- for (let le of v)
1138
- if (!(!le.isClicked(u) || le.disabled))
1139
- return st && d.classList.remove(St), le;
1140
- for (let le of v)
1141
- if (R === le)
1142
- return le;
1136
+ if (!Ho(u) && !N) {
1137
+ for (let ae of v)
1138
+ if (!(!ae.isClicked(u) || ae.disabled))
1139
+ return st && d.classList.remove(St), ae;
1140
+ for (let ae of v)
1141
+ if (R === ae)
1142
+ return ae;
1143
1143
  }
1144
1144
  let he = 1 / 0, me = null;
1145
- for (let le of v) {
1146
- if (le.disabled)
1145
+ for (let ae of v) {
1146
+ if (ae.disabled)
1147
1147
  continue;
1148
- let Be = Math.abs(_ - le.percent);
1149
- Be < he && (he = Be, me = le);
1148
+ let Be = Math.abs(_ - ae.percent);
1149
+ Be < he && (he = Be, me = ae);
1150
1150
  }
1151
1151
  return me;
1152
- }, ln = () => v.findIndex((u) => R === u && !u.disabled), pt = (u) => {
1152
+ }, an = () => v.findIndex((u) => R === u && !u.disabled), pt = (u) => {
1153
1153
  let _;
1154
1154
  if (ce === xe) {
1155
- let { height: he, top: me } = d.getBoundingClientRect(), le = u.type.indexOf("mouse") !== -1 ? u.clientY : u.touches[0].clientY;
1156
- _ = Math.min(Math.max(0, le - me), he) * 100 / he;
1155
+ let { height: he, top: me } = d.getBoundingClientRect(), ae = u.type.indexOf("mouse") !== -1 ? u.clientY : u.touches[0].clientY;
1156
+ _ = Math.min(Math.max(0, ae - me), he) * 100 / he;
1157
1157
  } else {
1158
- let { width: he, left: me } = d.getBoundingClientRect(), le = u.type.indexOf("mouse") !== -1 ? u.clientX : u.touches[0].clientX;
1159
- _ = Math.min(Math.max(0, le - me), he) * 100 / he;
1158
+ let { width: he, left: me } = d.getBoundingClientRect(), ae = u.type.indexOf("mouse") !== -1 ? u.clientX : u.touches[0].clientX;
1159
+ _ = Math.min(Math.max(0, ae - me), he) * 100 / he;
1160
1160
  }
1161
1161
  if ((Ee || Y) && (_ = 100 - _), R = Fo(u.target, _), R && Do(v, R), we && v.length > 1 && pe !== void 0) {
1162
- let he = v[0], me = v[v.length - 1], le = he.percent + pe < 0, Be = me.percent + pe > 100;
1163
- if (le || Be)
1162
+ let he = v[0], me = v[v.length - 1], ae = he.percent + pe < 0, Be = me.percent + pe > 100;
1163
+ if (ae || Be)
1164
1164
  return;
1165
1165
  for (let vr = 0; vr < v.length; vr++)
1166
- Ce(vr, v[vr].percent + pe);
1166
+ Le(vr, v[vr].percent + pe);
1167
1167
  return;
1168
1168
  }
1169
- let j = ln();
1170
- j !== -1 && (Ce(j, _), R == null || R.$pointer.focus());
1169
+ let N = an();
1170
+ N !== -1 && (Le(N, _), R == null || R.$pointer.focus());
1171
1171
  }, cr = (u) => {
1172
1172
  if (ge || document.activeElement !== c || R != null && R.disabled)
1173
1173
  return;
1174
1174
  u.stopPropagation(), u.preventDefault();
1175
- let _ = u.deltaY < 0, j = Ee || Y, he = _ ? !j : j, me = ln();
1175
+ let _ = u.deltaY < 0, N = Ee || Y, he = _ ? !N : N, me = an();
1176
1176
  me !== -1 && (he ? Ut(me, v[me].percent) : zt(me, v[me].percent));
1177
1177
  }, cn = (u) => {
1178
- ge || Oe || (ce === xe ? Y ? Ce(u, 100) : Ce(u, 0) : Ee ? zt(u, v[u].percent) : Ut(u, v[u].percent));
1178
+ ge || Oe || (ce === xe ? Y ? Le(u, 100) : Le(u, 0) : Ee ? zt(u, v[u].percent) : Ut(u, v[u].percent));
1179
1179
  }, hn = (u) => {
1180
- ge || Oe || (ce === xe ? Y ? Ce(u, 0) : Ce(u, 100) : Ee ? Ut(u, v[u].percent) : zt(u, v[u].percent));
1180
+ ge || Oe || (ce === xe ? Y ? Le(u, 0) : Le(u, 100) : Ee ? Ut(u, v[u].percent) : zt(u, v[u].percent));
1181
1181
  }, un = (u) => {
1182
- ge || Oe || (ce === xe ? Y ? zt(u, v[u].percent) : Ut(u, v[u].percent) : Ee ? Ce(u, 100) : Ce(u, 0));
1182
+ ge || Oe || (ce === xe ? Y ? zt(u, v[u].percent) : Ut(u, v[u].percent) : Ee ? Le(u, 100) : Le(u, 0));
1183
1183
  }, dn = (u) => {
1184
- ge || Oe || (ce === xe ? Y ? Ut(u, v[u].percent) : zt(u, v[u].percent) : Ee ? Ce(u, 0) : Ce(u, 100));
1184
+ ge || Oe || (ce === xe ? Y ? Ut(u, v[u].percent) : zt(u, v[u].percent) : Ee ? Le(u, 0) : Le(u, 100));
1185
1185
  }, Ho = (u) => u.classList.contains("panel"), qo = (u) => u.classList.contains("panel-fill"), Ut = (u, _) => {
1186
1186
  if (_ === void 0)
1187
1187
  return;
1188
- let j = hr(_);
1189
- j == null && (j = 1), _ -= j, _ < 0 && (_ = 0), Ce(u, _);
1188
+ let N = hr(_);
1189
+ N == null && (N = 1), _ -= N, _ < 0 && (_ = 0), Le(u, _);
1190
1190
  }, zt = (u, _) => {
1191
1191
  if (_ === void 0)
1192
1192
  return;
1193
- let j = hr(_);
1194
- j == null && (j = 1), _ += j, _ > 100 && (_ = 100), Ce(u, _);
1193
+ let N = hr(_);
1194
+ N == null && (N = 1), _ += N, _ > 100 && (_ = 100), Le(u, _);
1195
1195
  }, gt = () => {
1196
1196
  !T || T.update({ percents: fn(), values: pn(), $pointers: gn(), min: mn(), max: yn(), data: qr(), step: Hr(), round: zr(), type: Ur(), textMin: ur(), textMax: dr(), rightToLeft: Xr(), bottomToTop: Vr(), pointersOverlap: Zr(), pointersMinDistance: Yr(), pointersMaxDistance: Wr(), rangeDragging: Qr(), disabled: Kr(), keyboardDisabled: Gr(), mousewheelDisabled: Jr() });
1197
1197
  }, Uo = () => {
@@ -1217,13 +1217,13 @@ const ys = Symbol.for(""), wa = (t) => {
1217
1217
  }, hr = (u) => {
1218
1218
  let _;
1219
1219
  if (typeof ne == "function") {
1220
- let j = Je(0, 100, D, Q, u);
1221
- _ = ne(j, u);
1220
+ let N = Je(0, 100, D, Q, u);
1221
+ _ = ne(N, u);
1222
1222
  } else
1223
1223
  _ = ne;
1224
1224
  if ($e(_)) {
1225
- let j = Q - D;
1226
- return _ = j === 0 ? 0 : _ * 100 / j, _;
1225
+ let N = Q - D;
1226
+ return _ = N === 0 ? 0 : _ * 100 / N, _;
1227
1227
  }
1228
1228
  }, Mt = (u) => {
1229
1229
  if (u === void 0)
@@ -1236,31 +1236,31 @@ const ys = Symbol.for(""), wa = (t) => {
1236
1236
  }, Xo = (u) => {
1237
1237
  var _;
1238
1238
  return v.length <= 1 || u >= v.length - 1 || ee ? dr() : (_ = Mt(v[u + 1].percent)) != null ? _ : "";
1239
- }, fn = () => v.map((u) => u.percent), pn = () => v.map((u) => Mt(u.percent)), gn = () => v.map((u) => u.$pointer), mn = () => D, yn = () => Q, qr = () => q, Ur = () => ce, zr = () => Te, Yr = () => W, Wr = () => ue, Vo = (u) => on[u], Xr = () => Ee, Vr = () => Y, Kr = () => ge, Gr = () => Oe, Jr = () => Pe, Zr = () => ee, Qr = () => we, Ce = (u, _) => {
1239
+ }, fn = () => v.map((u) => u.percent), pn = () => v.map((u) => Mt(u.percent)), gn = () => v.map((u) => u.$pointer), mn = () => D, yn = () => Q, qr = () => q, Ur = () => ce, zr = () => Te, Yr = () => W, Wr = () => ue, Vo = (u) => on[u], Xr = () => Ee, Vr = () => Y, Kr = () => ge, Gr = () => Oe, Jr = () => Pe, Zr = () => ee, Qr = () => we, Le = (u, _) => {
1240
1240
  if (_ === void 0)
1241
1241
  return;
1242
- let j = hr(_);
1243
- j !== void 0 && (_ = je(_, j));
1242
+ let N = hr(_);
1243
+ N !== void 0 && (_ = Ne(_, N));
1244
1244
  let he = v[u];
1245
1245
  if (!he)
1246
1246
  return;
1247
1247
  let me = he.updatePosition(_, zo(u), Yo(u), ce, Ee, Y);
1248
- z == null || z.updatePosition(ce, v.map((le) => le.percent), Ee, Y), gt();
1249
- for (let le of v) {
1250
- let Be = Mt(le.percent);
1251
- Be !== void 0 && (le.setAttr("aria-valuenow", Be.toString()), le.setAttr("aria-valuetext", Be.toString()));
1248
+ z == null || z.updatePosition(ce, v.map((ae) => ae.percent), Ee, Y), gt();
1249
+ for (let ae of v) {
1250
+ let Be = Mt(ae.percent);
1251
+ Be !== void 0 && (ae.setAttr("aria-valuenow", Be.toString()), ae.setAttr("aria-valuetext", Be.toString()));
1252
1252
  }
1253
- Go(), me && ao(c, v.map((le) => Mt(le.percent)));
1253
+ Go(), me && lo(c, v.map((ae) => Mt(ae.percent)));
1254
1254
  }, qe = () => {
1255
1255
  for (let u = 0; u < v.length; u++)
1256
- Ce(u, v[u].percent);
1256
+ Le(u, v[u].percent);
1257
1257
  }, Ko = (u, _) => {
1258
1258
  D = q !== void 0 ? 0 : ie(u, Br), Q = q !== void 0 ? q.length - 1 : ie(_, qt), fr(D), pr(Q);
1259
1259
  }, Go = () => {
1260
1260
  var u, _;
1261
- for (let j = 0; j < v.length; j++) {
1262
- let he = v[j];
1263
- he.setAttr("aria-valuemin", ((u = Wo(j)) != null ? u : "").toString()), he.setAttr("aria-valuemax", ((_ = Xo(j)) != null ? _ : "").toString());
1261
+ for (let N = 0; N < v.length; N++) {
1262
+ let he = v[N];
1263
+ he.setAttr("aria-valuemin", ((u = Wo(N)) != null ? u : "").toString()), he.setAttr("aria-valuemax", ((_ = Xo(N)) != null ? _ : "").toString());
1264
1264
  }
1265
1265
  }, fr = (u) => {
1266
1266
  D = ie(u, Br), D > Q && (Q = D + qt), qe();
@@ -1274,10 +1274,10 @@ const ys = Symbol.for(""), wa = (t) => {
1274
1274
  for (let _ = 0; _ < u.length; _++)
1275
1275
  gr(u[_], _);
1276
1276
  }, gr = (u, _) => {
1277
- let j;
1278
- q !== void 0 ? (j = u == null ? 0 : co(u, q), j === -1 && (j = 0)) : (j = ie(u, D), j < D && (j = D), j > Q && (j = Q));
1279
- let he = Je(D, Q, 0, 100, j);
1280
- Ce(_, he);
1277
+ let N;
1278
+ q !== void 0 ? (N = u == null ? 0 : co(u, q), N === -1 && (N = 0)) : (N = ie(u, D), N < D && (N = D), N > Q && (N = Q));
1279
+ let he = Je(D, Q, 0, 100, N);
1280
+ Le(_, he);
1281
1281
  }, mr = (u) => {
1282
1282
  if (u == null) {
1283
1283
  ne = void 0;
@@ -1311,7 +1311,7 @@ const ys = Symbol.for(""), wa = (t) => {
1311
1311
  q = void 0;
1312
1312
  return;
1313
1313
  }
1314
- if (q = lo(u), q === void 0 || q.length <= 0) {
1314
+ if (q = ao(u), q === void 0 || q.length <= 0) {
1315
1315
  q = void 0;
1316
1316
  return;
1317
1317
  }
@@ -1319,24 +1319,24 @@ const ys = Symbol.for(""), wa = (t) => {
1319
1319
  }, si = (u) => {
1320
1320
  var _;
1321
1321
  typeof u == "string" ? ce = u.trim().toLowerCase() === xe ? xe : Me : ce = Me;
1322
- let j = (_ = c.shadowRoot) == null ? void 0 : _.querySelector(".range-slider-box");
1323
- if (!j)
1322
+ let N = (_ = c.shadowRoot) == null ? void 0 : _.querySelector(".range-slider-box");
1323
+ if (!N)
1324
1324
  return;
1325
- j.className = `range-slider-box type-${ce}`, qe();
1325
+ N.className = `range-slider-box type-${ce}`, qe();
1326
1326
  let he = ce === xe ? "vertical" : "horizontal";
1327
1327
  for (let me of v)
1328
1328
  me.setAttr("aria-orientation", he);
1329
1329
  }, oi = (u) => {
1330
1330
  Ee = u, v.length > 1 && nn(v, Ee, c), qe(), gt();
1331
- }, ai = (u) => {
1332
- Y = u, v.length > 1 && nn(v, Y, c), qe(), gt();
1333
1331
  }, li = (u) => {
1332
+ Y = u, v.length > 1 && nn(v, Y, c), qe(), gt();
1333
+ }, ai = (u) => {
1334
1334
  Te = ie(u, At), Te < 0 && (Te = At), gt();
1335
1335
  }, wn = (u) => {
1336
1336
  u == null || u.toString().trim().toLowerCase() === "false" ? (st = void 0, d.style.removeProperty(Zi), d.classList.remove(St)) : (st = u.toString(), d.style.setProperty(Zi, st), d.classList.add(St));
1337
1337
  }, $n = (u, _) => {
1338
- let j = v[u];
1339
- !j || (j.setAttr("aria-label", _), on[u] = _);
1338
+ let N = v[u];
1339
+ !N || (N.setAttr("aria-label", _), on[u] = _);
1340
1340
  }, yr = (u) => {
1341
1341
  if (be = void 0, v.length <= 1) {
1342
1342
  we = !1, d.classList.remove(en);
@@ -1344,24 +1344,24 @@ const ys = Symbol.for(""), wa = (t) => {
1344
1344
  }
1345
1345
  we = u, d.classList.toggle(en, we);
1346
1346
  }, Jo = () => {
1347
- ii(de(c.getAttribute(m))), Oe = de(c.getAttribute(w)), Pe = de(c.getAttribute(S));
1348
- let u = ar(c, /^pointer([0-9]*)-disabled$/, (_) => de(_));
1347
+ ii(fe(c.getAttribute(m))), Oe = fe(c.getAttribute(w)), Pe = fe(c.getAttribute(S));
1348
+ let u = lr(c, /^pointer([0-9]*)-disabled$/, (_) => fe(_));
1349
1349
  for (let _ of u) {
1350
- let j = _[0];
1351
- !v[j] || (v[j].disabled = _[1]);
1350
+ let N = _[0];
1351
+ !v[N] || (v[N].disabled = _[1]);
1352
1352
  }
1353
1353
  }, Zo = () => {
1354
- let u = ar(c, /^aria-label([0-9]*)$/);
1354
+ let u = lr(c, /^aria-label([0-9]*)$/);
1355
1355
  for (let _ of u) {
1356
- let j = _[0];
1357
- $n(j, _[1]);
1356
+ let N = _[0];
1357
+ $n(N, _[1]);
1358
1358
  }
1359
1359
  }, Qo = (u) => {
1360
- let _ = v.length, j = v[_ - 1].$pointer, he = j.cloneNode(!0);
1361
- j.after(he);
1362
- let me = jr(c, he, _);
1360
+ let _ = v.length, N = v[_ - 1].$pointer, he = N.cloneNode(!0);
1361
+ N.after(he);
1362
+ let me = Nr(c, he, _);
1363
1363
  return me.setCallbacks(cn, hn, un, dn), v.push(me), gr(u, _), qe(), gt(), _;
1364
- }, ea = () => {
1364
+ }, el = () => {
1365
1365
  let u = v.length, _ = v[u - 1];
1366
1366
  return _ ? (_.destroy(), v.pop(), v.length <= 1 && yr(!1), qe(), gt(), u - 1) : -1;
1367
1367
  };
@@ -1369,8 +1369,8 @@ const ys = Symbol.for(""), wa = (t) => {
1369
1369
  var u, _;
1370
1370
  for (let he of v)
1371
1371
  he.setCallbacks(cn, hn, un, dn);
1372
- let j = (u = c.shadowRoot) == null ? void 0 : u.querySelector(".panel-fill");
1373
- j && (z = ho(j)), si(c.getAttribute(C)), oi(de(c.getAttribute(B))), ai(de(c.getAttribute(g))), Ko(c.getAttribute(p), c.getAttribute(b)), mr(c.getAttribute(y)), ni(c.getAttribute(f)), vn(x.map((he) => he[1])), ei(de(c.getAttribute(o))), ti(ie(c.getAttribute(l), 0)), ri(ie(c.getAttribute(a), 1 / 0)), yr(de(c.getAttribute(h))), li(ie(c.getAttribute($), At)), Jo(), Zo(), Z = Lo(c, d, v), wn((_ = c.getAttribute(ve)) != null ? _ : sn), d.addEventListener("mousedown", an), d.addEventListener("mouseup", lr), d.addEventListener("touchmove", pt), d.addEventListener("touchstart", pt), Pe || document.addEventListener("wheel", cr, { passive: !1 }), T = ko(c, Uo, { setValues: vn, setMin: fr, setMax: pr, setStep: mr, setPointersOverlap: ei, setPointersMinDistance: ti, setPointersMaxDistance: ri, setDisabled: ii, setType: si, setRightToLeft: oi, setBottomToTop: ai, setRound: li, setKeyboardDisabled: bn, setMousewheelDisabled: xn, setRangeDragging: yr, setData: ni }, { getPercents: fn, getValues: pn, getPointerElements: gn, getMin: mn, getMax: yn, getStep: Hr, getData: qr, getType: Ur, getRound: zr, getTextMin: ur, getTextMax: dr, isRightToLeft: Xr, isBottomToTop: Vr, isDisabled: Kr, isKeyboardDisabled: Gr, isMousewheelDisabled: Jr, isPointersOverlap: Zr, isRangeDraggingEnabled: Qr, getPointersMinDistance: Yr, getPointersMaxDistance: Wr }), T.init();
1372
+ let N = (u = c.shadowRoot) == null ? void 0 : u.querySelector(".panel-fill");
1373
+ N && (z = ho(N)), si(c.getAttribute(L)), oi(fe(c.getAttribute(B))), li(fe(c.getAttribute(g))), Ko(c.getAttribute(p), c.getAttribute(b)), mr(c.getAttribute(y)), ni(c.getAttribute(f)), vn(x.map((he) => he[1])), ei(fe(c.getAttribute(o))), ti(ie(c.getAttribute(a), 0)), ri(ie(c.getAttribute(l), 1 / 0)), yr(fe(c.getAttribute(h))), ai(ie(c.getAttribute($), At)), Jo(), Zo(), Z = Co(c, d, v), wn((_ = c.getAttribute(ve)) != null ? _ : sn), d.addEventListener("mousedown", ln), d.addEventListener("mouseup", ar), d.addEventListener("touchmove", pt), d.addEventListener("touchstart", pt), Pe || document.addEventListener("wheel", cr, { passive: !1 }), T = ko(c, Uo, { setValues: vn, setMin: fr, setMax: pr, setStep: mr, setPointersOverlap: ei, setPointersMinDistance: ti, setPointersMaxDistance: ri, setDisabled: ii, setType: si, setRightToLeft: oi, setBottomToTop: li, setRound: ai, setKeyboardDisabled: bn, setMousewheelDisabled: xn, setRangeDragging: yr, setData: ni }, { getPercents: fn, getValues: pn, getPointerElements: gn, getMin: mn, getMax: yn, getStep: Hr, getData: qr, getType: Ur, getRound: zr, getTextMin: ur, getTextMax: dr, isRightToLeft: Xr, isBottomToTop: Vr, isDisabled: Kr, isKeyboardDisabled: Gr, isMousewheelDisabled: Jr, isPointersOverlap: Zr, isRangeDraggingEnabled: Qr, getPointersMinDistance: Yr, getPointersMaxDistance: Wr }), T.init();
1374
1374
  })(), { get pointers() {
1375
1375
  return v;
1376
1376
  }, get styles() {
@@ -1412,11 +1412,11 @@ const ys = Symbol.for(""), wa = (t) => {
1412
1412
  }, get bottomToTop() {
1413
1413
  return Vr();
1414
1414
  }, set bottomToTop(u) {
1415
- ai(u);
1415
+ li(u);
1416
1416
  }, get round() {
1417
1417
  return zr();
1418
1418
  }, set round(u) {
1419
- li(u);
1419
+ ai(u);
1420
1420
  }, get animateOnClick() {
1421
1421
  return st;
1422
1422
  }, set animateOnClick(u) {
@@ -1433,13 +1433,13 @@ const ys = Symbol.for(""), wa = (t) => {
1433
1433
  return Qr();
1434
1434
  }, set rangeDragging(u) {
1435
1435
  yr(u);
1436
- }, setMin: fr, setMax: pr, setValue: gr, setStep: mr, setData: ni, getTextValue: Mt, setAriaLabel: $n, getAriaLabel: Vo, addPointer: Qo, removePointer: ea, destroy: () => {
1437
- d.removeEventListener("mousedown", an), d.removeEventListener("mouseup", lr), d.removeEventListener("touchmove", pt), d.removeEventListener("touchstart", pt), document.removeEventListener("wheel", cr);
1436
+ }, setMin: fr, setMax: pr, setValue: gr, setStep: mr, setData: ni, getTextValue: Mt, setAriaLabel: $n, getAriaLabel: Vo, addPointer: Qo, removePointer: el, destroy: () => {
1437
+ d.removeEventListener("mousedown", ln), d.removeEventListener("mouseup", ar), d.removeEventListener("touchmove", pt), d.removeEventListener("touchstart", pt), document.removeEventListener("wheel", cr);
1438
1438
  for (let u of v)
1439
1439
  u.destroy();
1440
1440
  T == null || T.destroy();
1441
1441
  } };
1442
- }, jo = (c, d, x) => {
1442
+ }, No = (c, d, x) => {
1443
1443
  let v = Qi.find(([T, D, Q, ne]) => D.replace("#", "") === d.replace(/\d+/g, ""));
1444
1444
  if (v && c.styles) {
1445
1445
  let [T, D, Q, ne] = v, q = d.replace(/\D/g, "").trim(), ce = q === "" || q === "0" || q === "1" ? 0 : ie(q, 0) - 1;
@@ -1460,47 +1460,47 @@ const ys = Symbol.for(""), wa = (t) => {
1460
1460
  break;
1461
1461
  }
1462
1462
  case o: {
1463
- c.pointersOverlap = de(x);
1463
+ c.pointersOverlap = fe(x);
1464
1464
  break;
1465
1465
  }
1466
- case l: {
1466
+ case a: {
1467
1467
  c.pointersMinDistance = ie(x, 0);
1468
1468
  break;
1469
1469
  }
1470
1470
  case h: {
1471
- c.rangeDragging = de(x);
1471
+ c.rangeDragging = fe(x);
1472
1472
  break;
1473
1473
  }
1474
- case a: {
1474
+ case l: {
1475
1475
  c.pointersMaxDistance = ie(x, 1 / 0);
1476
1476
  break;
1477
1477
  }
1478
1478
  case m: {
1479
- c.disabled = de(x);
1479
+ c.disabled = fe(x);
1480
1480
  break;
1481
1481
  }
1482
1482
  case w: {
1483
- c.keyboardDisabled = de(x);
1483
+ c.keyboardDisabled = fe(x);
1484
1484
  break;
1485
1485
  }
1486
1486
  case S: {
1487
- c.mousewheelDisabled = de(x);
1487
+ c.mousewheelDisabled = fe(x);
1488
1488
  break;
1489
1489
  }
1490
1490
  case f: {
1491
1491
  c.setData(x);
1492
1492
  break;
1493
1493
  }
1494
- case C: {
1494
+ case L: {
1495
1495
  c.type = x;
1496
1496
  break;
1497
1497
  }
1498
1498
  case B: {
1499
- c.rightToLeft = de(x);
1499
+ c.rightToLeft = fe(x);
1500
1500
  break;
1501
1501
  }
1502
1502
  case g: {
1503
- c.bottomToTop = de(x);
1503
+ c.bottomToTop = fe(x);
1504
1504
  break;
1505
1505
  }
1506
1506
  case $: {
@@ -1529,7 +1529,7 @@ const ys = Symbol.for(""), wa = (t) => {
1529
1529
  let T = c == null ? void 0 : c.pointers[Z];
1530
1530
  if (!T)
1531
1531
  return;
1532
- T.disabled = de(x);
1532
+ T.disabled = fe(x);
1533
1533
  break;
1534
1534
  }
1535
1535
  case "aria-label": {
@@ -1665,7 +1665,7 @@ const ys = Symbol.for(""), wa = (t) => {
1665
1665
  return (d = (c = this.slider) == null ? void 0 : c.rangeDragging) != null ? d : !1;
1666
1666
  }
1667
1667
  set rangeDragging(c) {
1668
- this.slider && (this.slider.rangeDragging = de(c));
1668
+ this.slider && (this.slider.rangeDragging = fe(c));
1669
1669
  }
1670
1670
  get externalCSSList() {
1671
1671
  return this._externalCSSList;
@@ -1691,7 +1691,7 @@ const ys = Symbol.for(""), wa = (t) => {
1691
1691
  var c, d;
1692
1692
  if (!this.shadowRoot)
1693
1693
  return;
1694
- this._externalCSSList = Co(this), this.shadowRoot.innerHTML = n(s, this._externalCSSList);
1694
+ this._externalCSSList = Lo(this), this.shadowRoot.innerHTML = n(s, this._externalCSSList);
1695
1695
  let x = (c = this.shadowRoot) == null ? void 0 : c.querySelector(".pointer");
1696
1696
  if (!x)
1697
1697
  return;
@@ -1699,13 +1699,13 @@ const ys = Symbol.for(""), wa = (t) => {
1699
1699
  if (!v)
1700
1700
  return;
1701
1701
  let R = To(this, x);
1702
- this.slider = No(this, v, R), Io(this, this.slider), this._observer = new MutationObserver((z) => {
1702
+ this.slider = jo(this, v, R), Io(this, this.slider), this._observer = new MutationObserver((z) => {
1703
1703
  z.forEach((Z) => {
1704
1704
  var T;
1705
1705
  if (!this.slider || Z.type !== "attributes")
1706
1706
  return;
1707
1707
  let D = Z.attributeName;
1708
- !D || jo(this.slider, D, (T = this.getAttribute(D)) != null ? T : "");
1708
+ !D || No(this.slider, D, (T = this.getAttribute(D)) != null ? T : "");
1709
1709
  });
1710
1710
  }), this._observer.observe(this, { attributes: !0 });
1711
1711
  }
@@ -1716,7 +1716,7 @@ const ys = Symbol.for(""), wa = (t) => {
1716
1716
  window.tcRangeSlider = Fr, customElements.get("toolcool-range-slider") || customElements.define("toolcool-range-slider", Fr), customElements.get("tc-range-slider") || customElements.define("tc-range-slider", class extends Fr {
1717
1717
  });
1718
1718
  })();
1719
- var Lt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1719
+ var Ct = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1720
1720
  function Ti(t) {
1721
1721
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1722
1722
  }
@@ -1745,46 +1745,46 @@ var vs = { exports: {} };
1745
1745
  (function(t, e) {
1746
1746
  (function(r, i) {
1747
1747
  t.exports = i();
1748
- })(Lt, function() {
1749
- var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", o = "second", l = "minute", a = "hour", h = "day", f = "week", p = "month", b = "quarter", y = "year", $ = "date", C = "Invalid Date", G = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(O) {
1748
+ })(Ct, function() {
1749
+ var r = 1e3, i = 6e4, n = 36e5, s = "millisecond", o = "second", a = "minute", l = "hour", h = "day", f = "week", p = "month", b = "quarter", y = "year", $ = "date", L = "Invalid Date", G = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(O) {
1750
1750
  var P = ["th", "st", "nd", "rd"], M = O % 100;
1751
1751
  return "[" + O + (P[(M - 20) % 10] || P[M] || P[0]) + "]";
1752
1752
  } }, m = function(O, P, M) {
1753
- var N = String(O);
1754
- return !N || N.length >= P ? O : "" + Array(P + 1 - N.length).join(M) + O;
1753
+ var j = String(O);
1754
+ return !j || j.length >= P ? O : "" + Array(P + 1 - j.length).join(M) + O;
1755
1755
  }, w = { s: m, z: function(O) {
1756
- var P = -O.utcOffset(), M = Math.abs(P), N = Math.floor(M / 60), L = M % 60;
1757
- return (P <= 0 ? "+" : "-") + m(N, 2, "0") + ":" + m(L, 2, "0");
1756
+ var P = -O.utcOffset(), M = Math.abs(P), j = Math.floor(M / 60), C = M % 60;
1757
+ return (P <= 0 ? "+" : "-") + m(j, 2, "0") + ":" + m(C, 2, "0");
1758
1758
  }, m: function O(P, M) {
1759
1759
  if (P.date() < M.date())
1760
1760
  return -O(M, P);
1761
- var N = 12 * (M.year() - P.year()) + (M.month() - P.month()), L = P.clone().add(N, p), X = M - L < 0, U = P.clone().add(N + (X ? -1 : 1), p);
1762
- return +(-(N + (M - L) / (X ? L - U : U - L)) || 0);
1761
+ var j = 12 * (M.year() - P.year()) + (M.month() - P.month()), C = P.clone().add(j, p), V = M - C < 0, U = P.clone().add(j + (V ? -1 : 1), p);
1762
+ return +(-(j + (M - C) / (V ? C - U : U - C)) || 0);
1763
1763
  }, a: function(O) {
1764
1764
  return O < 0 ? Math.ceil(O) || 0 : Math.floor(O);
1765
1765
  }, p: function(O) {
1766
- return { M: p, y, w: f, d: h, D: $, h: a, m: l, s: o, ms: s, Q: b }[O] || String(O || "").toLowerCase().replace(/s$/, "");
1766
+ return { M: p, y, w: f, d: h, D: $, h: l, m: a, s: o, ms: s, Q: b }[O] || String(O || "").toLowerCase().replace(/s$/, "");
1767
1767
  }, u: function(O) {
1768
1768
  return O === void 0;
1769
1769
  } }, S = "en", E = {};
1770
1770
  E[S] = g;
1771
1771
  var A = "$isDayjsObject", k = function(O) {
1772
1772
  return O instanceof te || !(!O || !O[A]);
1773
- }, F = function O(P, M, N) {
1774
- var L;
1773
+ }, F = function O(P, M, j) {
1774
+ var C;
1775
1775
  if (!P)
1776
1776
  return S;
1777
1777
  if (typeof P == "string") {
1778
- var X = P.toLowerCase();
1779
- E[X] && (L = X), M && (E[X] = M, L = X);
1778
+ var V = P.toLowerCase();
1779
+ E[V] && (C = V), M && (E[V] = M, C = V);
1780
1780
  var U = P.split("-");
1781
- if (!L && U.length > 1)
1781
+ if (!C && U.length > 1)
1782
1782
  return O(U[0]);
1783
1783
  } else {
1784
1784
  var se = P.name;
1785
- E[se] = P, L = se;
1785
+ E[se] = P, C = se;
1786
1786
  }
1787
- return !N && L && (S = L), L || !N && S;
1787
+ return !j && C && (S = C), C || !j && S;
1788
1788
  }, H = function(O, P) {
1789
1789
  if (k(O))
1790
1790
  return O.clone();
@@ -1800,22 +1800,22 @@ var vs = { exports: {} };
1800
1800
  }
1801
1801
  var P = O.prototype;
1802
1802
  return P.parse = function(M) {
1803
- this.$d = function(N) {
1804
- var L = N.date, X = N.utc;
1805
- if (L === null)
1803
+ this.$d = function(j) {
1804
+ var C = j.date, V = j.utc;
1805
+ if (C === null)
1806
1806
  return /* @__PURE__ */ new Date(NaN);
1807
- if (I.u(L))
1807
+ if (I.u(C))
1808
1808
  return /* @__PURE__ */ new Date();
1809
- if (L instanceof Date)
1810
- return new Date(L);
1811
- if (typeof L == "string" && !/Z$/i.test(L)) {
1812
- var U = L.match(G);
1809
+ if (C instanceof Date)
1810
+ return new Date(C);
1811
+ if (typeof C == "string" && !/Z$/i.test(C)) {
1812
+ var U = C.match(G);
1813
1813
  if (U) {
1814
1814
  var se = U[2] - 1 || 0, re = (U[7] || "0").substring(0, 3);
1815
- return X ? new Date(Date.UTC(U[1], se, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, re)) : new Date(U[1], se, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, re);
1815
+ return V ? new Date(Date.UTC(U[1], se, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, re)) : new Date(U[1], se, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, re);
1816
1816
  }
1817
1817
  }
1818
- return new Date(L);
1818
+ return new Date(C);
1819
1819
  }(M), this.init();
1820
1820
  }, P.init = function() {
1821
1821
  var M = this.$d;
@@ -1823,41 +1823,41 @@ var vs = { exports: {} };
1823
1823
  }, P.$utils = function() {
1824
1824
  return I;
1825
1825
  }, P.isValid = function() {
1826
- return this.$d.toString() !== C;
1827
- }, P.isSame = function(M, N) {
1828
- var L = H(M);
1829
- return this.startOf(N) <= L && L <= this.endOf(N);
1830
- }, P.isAfter = function(M, N) {
1831
- return H(M) < this.startOf(N);
1832
- }, P.isBefore = function(M, N) {
1833
- return this.endOf(N) < H(M);
1834
- }, P.$g = function(M, N, L) {
1835
- return I.u(M) ? this[N] : this.set(L, M);
1826
+ return this.$d.toString() !== L;
1827
+ }, P.isSame = function(M, j) {
1828
+ var C = H(M);
1829
+ return this.startOf(j) <= C && C <= this.endOf(j);
1830
+ }, P.isAfter = function(M, j) {
1831
+ return H(M) < this.startOf(j);
1832
+ }, P.isBefore = function(M, j) {
1833
+ return this.endOf(j) < H(M);
1834
+ }, P.$g = function(M, j, C) {
1835
+ return I.u(M) ? this[j] : this.set(C, M);
1836
1836
  }, P.unix = function() {
1837
1837
  return Math.floor(this.valueOf() / 1e3);
1838
1838
  }, P.valueOf = function() {
1839
1839
  return this.$d.getTime();
1840
- }, P.startOf = function(M, N) {
1841
- var L = this, X = !!I.u(N) || N, U = I.p(M), se = function($e, ie) {
1842
- var je = I.w(L.$u ? Date.UTC(L.$y, ie, $e) : new Date(L.$y, ie, $e), L);
1843
- return X ? je : je.endOf(h);
1840
+ }, P.startOf = function(M, j) {
1841
+ var C = this, V = !!I.u(j) || j, U = I.p(M), se = function($e, ie) {
1842
+ var Ne = I.w(C.$u ? Date.UTC(C.$y, ie, $e) : new Date(C.$y, ie, $e), C);
1843
+ return V ? Ne : Ne.endOf(h);
1844
1844
  }, re = function($e, ie) {
1845
- return I.w(L.toDate()[$e].apply(L.toDate("s"), (X ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), L);
1845
+ return I.w(C.toDate()[$e].apply(C.toDate("s"), (V ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ie)), C);
1846
1846
  }, ye = this.$W, ve = this.$M, Ae = this.$D, xe = "set" + (this.$u ? "UTC" : "");
1847
1847
  switch (U) {
1848
1848
  case y:
1849
- return X ? se(1, 0) : se(31, 11);
1849
+ return V ? se(1, 0) : se(31, 11);
1850
1850
  case p:
1851
- return X ? se(1, ve) : se(0, ve + 1);
1851
+ return V ? se(1, ve) : se(0, ve + 1);
1852
1852
  case f:
1853
1853
  var Me = this.$locale().weekStart || 0, Je = (ye < Me ? ye + 7 : ye) - Me;
1854
- return se(X ? Ae - Je : Ae + (6 - Je), ve);
1854
+ return se(V ? Ae - Je : Ae + (6 - Je), ve);
1855
1855
  case h:
1856
1856
  case $:
1857
1857
  return re(xe + "Hours", 0);
1858
- case a:
1859
- return re(xe + "Minutes", 1);
1860
1858
  case l:
1859
+ return re(xe + "Minutes", 1);
1860
+ case a:
1861
1861
  return re(xe + "Seconds", 2);
1862
1862
  case o:
1863
1863
  return re(xe + "Milliseconds", 3);
@@ -1866,24 +1866,24 @@ var vs = { exports: {} };
1866
1866
  }
1867
1867
  }, P.endOf = function(M) {
1868
1868
  return this.startOf(M, !1);
1869
- }, P.$set = function(M, N) {
1870
- var L, X = I.p(M), U = "set" + (this.$u ? "UTC" : ""), se = (L = {}, L[h] = U + "Date", L[$] = U + "Date", L[p] = U + "Month", L[y] = U + "FullYear", L[a] = U + "Hours", L[l] = U + "Minutes", L[o] = U + "Seconds", L[s] = U + "Milliseconds", L)[X], re = X === h ? this.$D + (N - this.$W) : N;
1871
- if (X === p || X === y) {
1869
+ }, P.$set = function(M, j) {
1870
+ var C, V = I.p(M), U = "set" + (this.$u ? "UTC" : ""), se = (C = {}, C[h] = U + "Date", C[$] = U + "Date", C[p] = U + "Month", C[y] = U + "FullYear", C[l] = U + "Hours", C[a] = U + "Minutes", C[o] = U + "Seconds", C[s] = U + "Milliseconds", C)[V], re = V === h ? this.$D + (j - this.$W) : j;
1871
+ if (V === p || V === y) {
1872
1872
  var ye = this.clone().set($, 1);
1873
1873
  ye.$d[se](re), ye.init(), this.$d = ye.set($, Math.min(this.$D, ye.daysInMonth())).$d;
1874
1874
  } else
1875
1875
  se && this.$d[se](re);
1876
1876
  return this.init(), this;
1877
- }, P.set = function(M, N) {
1878
- return this.clone().$set(M, N);
1877
+ }, P.set = function(M, j) {
1878
+ return this.clone().$set(M, j);
1879
1879
  }, P.get = function(M) {
1880
1880
  return this[I.p(M)]();
1881
- }, P.add = function(M, N) {
1882
- var L, X = this;
1881
+ }, P.add = function(M, j) {
1882
+ var C, V = this;
1883
1883
  M = Number(M);
1884
- var U = I.p(N), se = function(ve) {
1885
- var Ae = H(X);
1886
- return I.w(Ae.date(Ae.date() + Math.round(ve * M)), X);
1884
+ var U = I.p(j), se = function(ve) {
1885
+ var Ae = H(V);
1886
+ return I.w(Ae.date(Ae.date() + Math.round(ve * M)), V);
1887
1887
  };
1888
1888
  if (U === p)
1889
1889
  return this.set(p, this.$M + M);
@@ -1893,49 +1893,49 @@ var vs = { exports: {} };
1893
1893
  return se(1);
1894
1894
  if (U === f)
1895
1895
  return se(7);
1896
- var re = (L = {}, L[l] = i, L[a] = n, L[o] = r, L)[U] || 1, ye = this.$d.getTime() + M * re;
1896
+ var re = (C = {}, C[a] = i, C[l] = n, C[o] = r, C)[U] || 1, ye = this.$d.getTime() + M * re;
1897
1897
  return I.w(ye, this);
1898
- }, P.subtract = function(M, N) {
1899
- return this.add(-1 * M, N);
1898
+ }, P.subtract = function(M, j) {
1899
+ return this.add(-1 * M, j);
1900
1900
  }, P.format = function(M) {
1901
- var N = this, L = this.$locale();
1901
+ var j = this, C = this.$locale();
1902
1902
  if (!this.isValid())
1903
- return L.invalidDate || C;
1904
- var X = M || "YYYY-MM-DDTHH:mm:ssZ", U = I.z(this), se = this.$H, re = this.$m, ye = this.$M, ve = L.weekdays, Ae = L.months, xe = L.meridiem, Me = function(ie, je, ft, de) {
1905
- return ie && (ie[je] || ie(N, X)) || ft[je].slice(0, de);
1903
+ return C.invalidDate || L;
1904
+ var V = M || "YYYY-MM-DDTHH:mm:ssZ", U = I.z(this), se = this.$H, re = this.$m, ye = this.$M, ve = C.weekdays, Ae = C.months, xe = C.meridiem, Me = function(ie, Ne, ft, fe) {
1905
+ return ie && (ie[Ne] || ie(j, V)) || ft[Ne].slice(0, fe);
1906
1906
  }, Je = function(ie) {
1907
1907
  return I.s(se % 12 || 12, ie, "0");
1908
- }, $e = xe || function(ie, je, ft) {
1909
- var de = ie < 12 ? "AM" : "PM";
1910
- return ft ? de.toLowerCase() : de;
1908
+ }, $e = xe || function(ie, Ne, ft) {
1909
+ var fe = ie < 12 ? "AM" : "PM";
1910
+ return ft ? fe.toLowerCase() : fe;
1911
1911
  };
1912
- return X.replace(B, function(ie, je) {
1913
- return je || function(ft) {
1912
+ return V.replace(B, function(ie, Ne) {
1913
+ return Ne || function(ft) {
1914
1914
  switch (ft) {
1915
1915
  case "YY":
1916
- return String(N.$y).slice(-2);
1916
+ return String(j.$y).slice(-2);
1917
1917
  case "YYYY":
1918
- return I.s(N.$y, 4, "0");
1918
+ return I.s(j.$y, 4, "0");
1919
1919
  case "M":
1920
1920
  return ye + 1;
1921
1921
  case "MM":
1922
1922
  return I.s(ye + 1, 2, "0");
1923
1923
  case "MMM":
1924
- return Me(L.monthsShort, ye, Ae, 3);
1924
+ return Me(C.monthsShort, ye, Ae, 3);
1925
1925
  case "MMMM":
1926
1926
  return Me(Ae, ye);
1927
1927
  case "D":
1928
- return N.$D;
1928
+ return j.$D;
1929
1929
  case "DD":
1930
- return I.s(N.$D, 2, "0");
1930
+ return I.s(j.$D, 2, "0");
1931
1931
  case "d":
1932
- return String(N.$W);
1932
+ return String(j.$W);
1933
1933
  case "dd":
1934
- return Me(L.weekdaysMin, N.$W, ve, 2);
1934
+ return Me(C.weekdaysMin, j.$W, ve, 2);
1935
1935
  case "ddd":
1936
- return Me(L.weekdaysShort, N.$W, ve, 3);
1936
+ return Me(C.weekdaysShort, j.$W, ve, 3);
1937
1937
  case "dddd":
1938
- return ve[N.$W];
1938
+ return ve[j.$W];
1939
1939
  case "H":
1940
1940
  return String(se);
1941
1941
  case "HH":
@@ -1953,11 +1953,11 @@ var vs = { exports: {} };
1953
1953
  case "mm":
1954
1954
  return I.s(re, 2, "0");
1955
1955
  case "s":
1956
- return String(N.$s);
1956
+ return String(j.$s);
1957
1957
  case "ss":
1958
- return I.s(N.$s, 2, "0");
1958
+ return I.s(j.$s, 2, "0");
1959
1959
  case "SSS":
1960
- return I.s(N.$ms, 3, "0");
1960
+ return I.s(j.$ms, 3, "0");
1961
1961
  case "Z":
1962
1962
  return U;
1963
1963
  }
@@ -1966,48 +1966,48 @@ var vs = { exports: {} };
1966
1966
  });
1967
1967
  }, P.utcOffset = function() {
1968
1968
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1969
- }, P.diff = function(M, N, L) {
1970
- var X, U = this, se = I.p(N), re = H(M), ye = (re.utcOffset() - this.utcOffset()) * i, ve = this - re, Ae = function() {
1969
+ }, P.diff = function(M, j, C) {
1970
+ var V, U = this, se = I.p(j), re = H(M), ye = (re.utcOffset() - this.utcOffset()) * i, ve = this - re, Ae = function() {
1971
1971
  return I.m(U, re);
1972
1972
  };
1973
1973
  switch (se) {
1974
1974
  case y:
1975
- X = Ae() / 12;
1975
+ V = Ae() / 12;
1976
1976
  break;
1977
1977
  case p:
1978
- X = Ae();
1978
+ V = Ae();
1979
1979
  break;
1980
1980
  case b:
1981
- X = Ae() / 3;
1981
+ V = Ae() / 3;
1982
1982
  break;
1983
1983
  case f:
1984
- X = (ve - ye) / 6048e5;
1984
+ V = (ve - ye) / 6048e5;
1985
1985
  break;
1986
1986
  case h:
1987
- X = (ve - ye) / 864e5;
1988
- break;
1989
- case a:
1990
- X = ve / n;
1987
+ V = (ve - ye) / 864e5;
1991
1988
  break;
1992
1989
  case l:
1993
- X = ve / i;
1990
+ V = ve / n;
1991
+ break;
1992
+ case a:
1993
+ V = ve / i;
1994
1994
  break;
1995
1995
  case o:
1996
- X = ve / r;
1996
+ V = ve / r;
1997
1997
  break;
1998
1998
  default:
1999
- X = ve;
1999
+ V = ve;
2000
2000
  }
2001
- return L ? X : I.a(X);
2001
+ return C ? V : I.a(V);
2002
2002
  }, P.daysInMonth = function() {
2003
2003
  return this.endOf(p).$D;
2004
2004
  }, P.$locale = function() {
2005
2005
  return E[this.$L];
2006
- }, P.locale = function(M, N) {
2006
+ }, P.locale = function(M, j) {
2007
2007
  if (!M)
2008
2008
  return this.$L;
2009
- var L = this.clone(), X = F(M, N, !0);
2010
- return X && (L.$L = X), L;
2009
+ var C = this.clone(), V = F(M, j, !0);
2010
+ return V && (C.$L = V), C;
2011
2011
  }, P.clone = function() {
2012
2012
  return I.w(this.$d, this);
2013
2013
  }, P.toDate = function() {
@@ -2019,9 +2019,9 @@ var vs = { exports: {} };
2019
2019
  }, P.toString = function() {
2020
2020
  return this.$d.toUTCString();
2021
2021
  }, O;
2022
- }(), oe = te.prototype;
2023
- return H.prototype = oe, [["$ms", s], ["$s", o], ["$m", l], ["$H", a], ["$W", h], ["$M", p], ["$y", y], ["$D", $]].forEach(function(O) {
2024
- oe[O[1]] = function(P) {
2022
+ }(), le = te.prototype;
2023
+ return H.prototype = le, [["$ms", s], ["$s", o], ["$m", a], ["$H", l], ["$W", h], ["$M", p], ["$y", y], ["$D", $]].forEach(function(O) {
2024
+ le[O[1]] = function(P) {
2025
2025
  return this.$g(P, O[0], O[1]);
2026
2026
  };
2027
2027
  }), H.extend = function(O, P) {
@@ -2031,9 +2031,9 @@ var vs = { exports: {} };
2031
2031
  }, H.en = E[S], H.Ls = E, H.p = {}, H;
2032
2032
  });
2033
2033
  })(vs);
2034
- var _a = vs.exports;
2035
- const kt = /* @__PURE__ */ Ti(_a);
2036
- class Ea extends _e {
2034
+ var _l = vs.exports;
2035
+ const kt = /* @__PURE__ */ Ti(_l);
2036
+ class El extends _e {
2037
2037
  constructor() {
2038
2038
  super(...arguments), this.templates = {}, this._renderedTemplates = {};
2039
2039
  }
@@ -2071,13 +2071,13 @@ class Ea extends _e {
2071
2071
  if (!this.hasTemplate(e))
2072
2072
  return null;
2073
2073
  i = i || e;
2074
- const n = V` <slot name=${i}></slot> `, s = { [e]: { ...r } };
2074
+ const n = X` <slot name=${i}></slot> `, s = { [e]: { ...r } };
2075
2075
  if (this._renderedTemplates.hasOwnProperty(i)) {
2076
- const { slot: l } = (
2076
+ const { slot: a } = (
2077
2077
  // @ts-ignore
2078
2078
  this._renderedTemplates[i]
2079
2079
  );
2080
- this.contains(l) && this.removeChild(l);
2080
+ this.contains(a) && this.removeChild(a);
2081
2081
  }
2082
2082
  const o = document.createElement("div");
2083
2083
  return o.slot = i, o.dataset.generated = "template", this._renderTemplate(o, this.templates[e], s), this.appendChild(o), this._renderedTemplates[i] = { context: s, slot: o }, n;
@@ -2172,7 +2172,7 @@ form#itemfilter {
2172
2172
  details {
2173
2173
  width: 100%;
2174
2174
  }
2175
- `, Ni = `
2175
+ `, ji = `
2176
2176
  button {
2177
2177
  /* TODO: why does this only work here and not from :root? */
2178
2178
  --primary-color: #004170;
@@ -2261,7 +2261,7 @@ button.small {
2261
2261
  padding: 12.4px;
2262
2262
  font-size: .75rem;
2263
2263
  }
2264
- `, Sa = `
2264
+ `, Sl = `
2265
2265
  input[type=checkbox] {
2266
2266
  appearance: none;
2267
2267
  -webkit-appearance: none;
@@ -2284,7 +2284,7 @@ input[type=checkbox]:checked:after {
2284
2284
  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");
2285
2285
 
2286
2286
  }
2287
- `, Aa = `
2287
+ `, Al = `
2288
2288
  input[type=radio] {
2289
2289
  appearance: none;
2290
2290
  -webkit-appearance: none;
@@ -2312,7 +2312,7 @@ input[type=radio]:checked:after {
2312
2312
  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");
2313
2313
 
2314
2314
  }
2315
- `, Ma = `
2315
+ `, Ml = `
2316
2316
  input[type="range"] {
2317
2317
  -webkit-appearance: none;
2318
2318
  width: 90%;
@@ -2389,15 +2389,15 @@ input[type="range"]:focus::-webkit-slider-thumb {
2389
2389
  input::-moz-focus-inner, input::-moz-focus-outer {
2390
2390
  border: 0;
2391
2391
  }
2392
- `, ji = `
2392
+ `, Ni = `
2393
2393
  * {
2394
2394
  font-family: Roboto, sans-serif;
2395
2395
  }
2396
2396
 
2397
- ${Ni}
2398
- ${Sa}
2399
- ${Aa}
2400
- ${Ma}
2397
+ ${ji}
2398
+ ${Sl}
2399
+ ${Al}
2400
+ ${Ml}
2401
2401
 
2402
2402
  ul {
2403
2403
  padding-left: 0;
@@ -2508,13 +2508,6 @@ button#filter-reset {
2508
2508
  position: absolute;
2509
2509
  top: 4px;
2510
2510
  right: 0;
2511
- text-indent: -9999px;
2512
- line-height: 0;
2513
- }
2514
- button#filter-reset:after {
2515
- content: "Reset";
2516
- text-indent: 0px;
2517
- line-height: initial;
2518
2511
  }
2519
2512
  .scroll {
2520
2513
  max-height: calc(100% - 30px);
@@ -2548,11 +2541,23 @@ eox-itemfilter-range {
2548
2541
  .range-after {
2549
2542
  margin-left: .5rem;
2550
2543
  }
2551
- `;
2552
- var Oa = Object.defineProperty, Pa = Object.getOwnPropertyDescriptor, Bi = (t, e, r, i) => {
2553
- for (var n = i > 1 ? void 0 : i ? Pa(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2544
+
2545
+ button.reset-icon:before {
2546
+ content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23004170' viewBox='0 0 24 24'%3E%3Ctitle%3Eclose%3C/title%3E%3Cpath d='M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z' /%3E%3C/svg%3E");
2547
+ }
2548
+ eox-itemfilter-expandcontainer button.reset-icon {
2549
+ margin-left: 4px;
2550
+ margin-top: 1px;
2551
+ }
2552
+ eox-itemfilter-expandcontainer button.reset-icon:before {
2553
+ height: 16px;
2554
+ width: 16px;
2555
+ }
2556
+ `;
2557
+ var Ol = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, Bi = (t, e, r, i) => {
2558
+ for (var n = i > 1 ? void 0 : i ? Pl(e, r) : e, s = t.length - 1, o; s >= 0; s--)
2554
2559
  (o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
2555
- return i && n && Oa(e, r, n), n;
2560
+ return i && n && Ol(e, r, n), n;
2556
2561
  };
2557
2562
  let Sr = class extends _e {
2558
2563
  handleDetailsToggle(t) {
@@ -2564,17 +2569,20 @@ let Sr = class extends _e {
2564
2569
  })
2565
2570
  );
2566
2571
  }
2572
+ _resetFilter() {
2573
+ this.querySelector("[slot='filter']").reset();
2574
+ }
2567
2575
  render() {
2568
- return V`
2576
+ return X`
2569
2577
  <style>
2570
2578
  ${Di}
2571
- ${!this.unstyled && ji}
2579
+ ${!this.unstyled && Ni}
2572
2580
  </style>
2573
2581
  <details
2574
2582
  @toggle="${this.handleDetailsToggle}"
2575
2583
  class="details-filter"
2576
2584
  part="details-filter"
2577
- ?open=${this.filterObject.expanded || ae}
2585
+ ?open=${this.filterObject.expanded || oe}
2578
2586
  >
2579
2587
  <summary>
2580
2588
  <span
@@ -2582,6 +2590,7 @@ let Sr = class extends _e {
2582
2590
  style="${!this.filterObject.title && "text-transform: capitalize"}"
2583
2591
  >
2584
2592
  ${this.filterObject.title || this.filterObject.key || "Filter"}
2593
+ <slot name="reset-button"></slot>
2585
2594
  </span>
2586
2595
  </summary>
2587
2596
  <div class="scroll">
@@ -2625,27 +2634,27 @@ const Bt = (t) => {
2625
2634
  break;
2626
2635
  }
2627
2636
  return delete t.stringifiedState, delete t.dirty, t;
2628
- }, yi = Math.min, Rt = Math.max, Ar = Math.round, br = Math.floor, lt = (t) => ({
2637
+ }, yi = Math.min, Rt = Math.max, Ar = Math.round, br = Math.floor, at = (t) => ({
2629
2638
  x: t,
2630
2639
  y: t
2631
2640
  });
2632
2641
  function bs(t) {
2633
2642
  return t.split("-")[0];
2634
2643
  }
2635
- function Ca(t) {
2644
+ function Ll(t) {
2636
2645
  return t.split("-")[1];
2637
2646
  }
2638
- function La(t) {
2647
+ function Cl(t) {
2639
2648
  return t === "x" ? "y" : "x";
2640
2649
  }
2641
- function ka(t) {
2650
+ function kl(t) {
2642
2651
  return t === "y" ? "height" : "width";
2643
2652
  }
2644
2653
  function xs(t) {
2645
2654
  return ["top", "bottom"].includes(bs(t)) ? "y" : "x";
2646
2655
  }
2647
- function Ra(t) {
2648
- return La(xs(t));
2656
+ function Rl(t) {
2657
+ return Cl(xs(t));
2649
2658
  }
2650
2659
  function ws(t) {
2651
2660
  return {
@@ -2656,14 +2665,14 @@ function ws(t) {
2656
2665
  bottom: t.y + t.height
2657
2666
  };
2658
2667
  }
2659
- function Nn(t, e, r) {
2668
+ function jn(t, e, r) {
2660
2669
  let {
2661
2670
  reference: i,
2662
2671
  floating: n
2663
2672
  } = t;
2664
- const s = xs(e), o = Ra(e), l = ka(o), a = bs(e), h = s === "y", f = i.x + i.width / 2 - n.width / 2, p = i.y + i.height / 2 - n.height / 2, b = i[l] / 2 - n[l] / 2;
2673
+ const s = xs(e), o = Rl(e), a = kl(o), l = bs(e), h = s === "y", f = i.x + i.width / 2 - n.width / 2, p = i.y + i.height / 2 - n.height / 2, b = i[a] / 2 - n[a] / 2;
2665
2674
  let y;
2666
- switch (a) {
2675
+ switch (l) {
2667
2676
  case "top":
2668
2677
  y = {
2669
2678
  x: f,
@@ -2694,7 +2703,7 @@ function Nn(t, e, r) {
2694
2703
  y: i.y
2695
2704
  };
2696
2705
  }
2697
- switch (Ca(e)) {
2706
+ switch (Ll(e)) {
2698
2707
  case "start":
2699
2708
  y[o] -= b * (r && h ? -1 : 1);
2700
2709
  break;
@@ -2704,13 +2713,13 @@ function Nn(t, e, r) {
2704
2713
  }
2705
2714
  return y;
2706
2715
  }
2707
- const Ta = async (t, e, r) => {
2716
+ const Tl = async (t, e, r) => {
2708
2717
  const {
2709
2718
  placement: i = "bottom",
2710
2719
  strategy: n = "absolute",
2711
2720
  middleware: s = [],
2712
2721
  platform: o
2713
- } = r, l = s.filter(Boolean), a = await (o.isRTL == null ? void 0 : o.isRTL(e));
2722
+ } = r, a = s.filter(Boolean), l = await (o.isRTL == null ? void 0 : o.isRTL(e));
2714
2723
  let h = await o.getElementRects({
2715
2724
  reference: t,
2716
2725
  floating: e,
@@ -2718,12 +2727,12 @@ const Ta = async (t, e, r) => {
2718
2727
  }), {
2719
2728
  x: f,
2720
2729
  y: p
2721
- } = Nn(h, i, a), b = i, y = {}, $ = 0;
2722
- for (let C = 0; C < l.length; C++) {
2730
+ } = jn(h, i, l), b = i, y = {}, $ = 0;
2731
+ for (let L = 0; L < a.length; L++) {
2723
2732
  const {
2724
2733
  name: G,
2725
2734
  fn: B
2726
- } = l[C], {
2735
+ } = a[L], {
2727
2736
  x: g,
2728
2737
  y: m,
2729
2738
  data: w,
@@ -2756,7 +2765,7 @@ const Ta = async (t, e, r) => {
2756
2765
  }) : S.rects), {
2757
2766
  x: f,
2758
2767
  y: p
2759
- } = Nn(h, b, a)), C = -1;
2768
+ } = jn(h, b, l)), L = -1;
2760
2769
  continue;
2761
2770
  }
2762
2771
  }
@@ -2788,7 +2797,7 @@ function Qe(t) {
2788
2797
  function We(t) {
2789
2798
  return t instanceof HTMLElement || t instanceof ke(t).HTMLElement;
2790
2799
  }
2791
- function jn(t) {
2800
+ function Nn(t) {
2792
2801
  return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof ke(t).ShadowRoot;
2793
2802
  }
2794
2803
  function sr(t) {
@@ -2800,14 +2809,14 @@ function sr(t) {
2800
2809
  } = De(t);
2801
2810
  return /auto|scroll|overlay|hidden|clip/.test(e + i + r) && !["inline", "contents"].includes(n);
2802
2811
  }
2803
- function Ia(t) {
2812
+ function Il(t) {
2804
2813
  return ["table", "td", "th"].includes(ct(t));
2805
2814
  }
2806
2815
  function Fi(t) {
2807
2816
  const e = Hi(), r = De(t);
2808
2817
  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((i) => (r.willChange || "").includes(i)) || ["paint", "layout", "strict", "content"].some((i) => (r.contain || "").includes(i));
2809
2818
  }
2810
- function Da(t) {
2819
+ function Dl(t) {
2811
2820
  let e = It(t);
2812
2821
  for (; We(e) && !kr(e); ) {
2813
2822
  if (Fi(e))
@@ -2841,10 +2850,10 @@ function It(t) {
2841
2850
  // Step into the shadow DOM of the parent of a slotted node.
2842
2851
  t.assignedSlot || // DOM Element detected.
2843
2852
  t.parentNode || // ShadowRoot detected.
2844
- jn(t) && t.host || // Fallback.
2853
+ Nn(t) && t.host || // Fallback.
2845
2854
  rt(t)
2846
2855
  );
2847
- return jn(e) ? e.host : e;
2856
+ return Nn(e) ? e.host : e;
2848
2857
  }
2849
2858
  function _s(t) {
2850
2859
  const e = It(t);
@@ -2859,11 +2868,11 @@ function Qt(t, e, r) {
2859
2868
  function Es(t) {
2860
2869
  const e = De(t);
2861
2870
  let r = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
2862
- const n = We(t), s = n ? t.offsetWidth : r, o = n ? t.offsetHeight : i, l = Ar(r) !== s || Ar(i) !== o;
2863
- return l && (r = s, i = o), {
2871
+ const n = We(t), s = n ? t.offsetWidth : r, o = n ? t.offsetHeight : i, a = Ar(r) !== s || Ar(i) !== o;
2872
+ return a && (r = s, i = o), {
2864
2873
  width: r,
2865
2874
  height: i,
2866
- $: l
2875
+ $: a
2867
2876
  };
2868
2877
  }
2869
2878
  function qi(t) {
@@ -2872,52 +2881,52 @@ function qi(t) {
2872
2881
  function Tt(t) {
2873
2882
  const e = qi(t);
2874
2883
  if (!We(e))
2875
- return lt(1);
2884
+ return at(1);
2876
2885
  const r = e.getBoundingClientRect(), {
2877
2886
  width: i,
2878
2887
  height: n,
2879
2888
  $: s
2880
2889
  } = Es(e);
2881
- let o = (s ? Ar(r.width) : r.width) / i, l = (s ? Ar(r.height) : r.height) / n;
2882
- return (!o || !Number.isFinite(o)) && (o = 1), (!l || !Number.isFinite(l)) && (l = 1), {
2890
+ let o = (s ? Ar(r.width) : r.width) / i, a = (s ? Ar(r.height) : r.height) / n;
2891
+ return (!o || !Number.isFinite(o)) && (o = 1), (!a || !Number.isFinite(a)) && (a = 1), {
2883
2892
  x: o,
2884
- y: l
2893
+ y: a
2885
2894
  };
2886
2895
  }
2887
- const Na = /* @__PURE__ */ lt(0);
2896
+ const jl = /* @__PURE__ */ at(0);
2888
2897
  function Ss(t) {
2889
2898
  const e = ke(t);
2890
- return !Hi() || !e.visualViewport ? Na : {
2899
+ return !Hi() || !e.visualViewport ? jl : {
2891
2900
  x: e.visualViewport.offsetLeft,
2892
2901
  y: e.visualViewport.offsetTop
2893
2902
  };
2894
2903
  }
2895
- function ja(t, e, r) {
2904
+ function Nl(t, e, r) {
2896
2905
  return e === void 0 && (e = !1), !r || e && r !== ke(t) ? !1 : e;
2897
2906
  }
2898
2907
  function $t(t, e, r, i) {
2899
2908
  e === void 0 && (e = !1), r === void 0 && (r = !1);
2900
2909
  const n = t.getBoundingClientRect(), s = qi(t);
2901
- let o = lt(1);
2910
+ let o = at(1);
2902
2911
  e && (i ? Qe(i) && (o = Tt(i)) : o = Tt(t));
2903
- const l = ja(s, r, i) ? Ss(s) : lt(0);
2904
- let a = (n.left + l.x) / o.x, h = (n.top + l.y) / o.y, f = n.width / o.x, p = n.height / o.y;
2912
+ const a = Nl(s, r, i) ? Ss(s) : at(0);
2913
+ let l = (n.left + a.x) / o.x, h = (n.top + a.y) / o.y, f = n.width / o.x, p = n.height / o.y;
2905
2914
  if (s) {
2906
2915
  const b = ke(s), y = i && Qe(i) ? ke(i) : i;
2907
2916
  let $ = b.frameElement;
2908
2917
  for (; $ && i && y !== b; ) {
2909
- const C = Tt($), G = $.getBoundingClientRect(), B = De($), g = G.left + ($.clientLeft + parseFloat(B.paddingLeft)) * C.x, m = G.top + ($.clientTop + parseFloat(B.paddingTop)) * C.y;
2910
- a *= C.x, h *= C.y, f *= C.x, p *= C.y, a += g, h += m, $ = ke($).frameElement;
2918
+ const L = Tt($), G = $.getBoundingClientRect(), B = De($), g = G.left + ($.clientLeft + parseFloat(B.paddingLeft)) * L.x, m = G.top + ($.clientTop + parseFloat(B.paddingTop)) * L.y;
2919
+ l *= L.x, h *= L.y, f *= L.x, p *= L.y, l += g, h += m, $ = ke($).frameElement;
2911
2920
  }
2912
2921
  }
2913
2922
  return ws({
2914
2923
  width: f,
2915
2924
  height: p,
2916
- x: a,
2925
+ x: l,
2917
2926
  y: h
2918
2927
  });
2919
2928
  }
2920
- function Ba(t) {
2929
+ function Bl(t) {
2921
2930
  let {
2922
2931
  rect: e,
2923
2932
  offsetParent: r,
@@ -2929,68 +2938,68 @@ function Ba(t) {
2929
2938
  let o = {
2930
2939
  scrollLeft: 0,
2931
2940
  scrollTop: 0
2932
- }, l = lt(1);
2933
- const a = lt(0);
2941
+ }, a = at(1);
2942
+ const l = at(0);
2934
2943
  if ((n || !n && i !== "fixed") && ((ct(r) !== "body" || sr(s)) && (o = Rr(r)), We(r))) {
2935
2944
  const h = $t(r);
2936
- l = Tt(r), a.x = h.x + r.clientLeft, a.y = h.y + r.clientTop;
2945
+ a = Tt(r), l.x = h.x + r.clientLeft, l.y = h.y + r.clientTop;
2937
2946
  }
2938
2947
  return {
2939
- width: e.width * l.x,
2940
- height: e.height * l.y,
2941
- x: e.x * l.x - o.scrollLeft * l.x + a.x,
2942
- y: e.y * l.y - o.scrollTop * l.y + a.y
2948
+ width: e.width * a.x,
2949
+ height: e.height * a.y,
2950
+ x: e.x * a.x - o.scrollLeft * a.x + l.x,
2951
+ y: e.y * a.y - o.scrollTop * a.y + l.y
2943
2952
  };
2944
2953
  }
2945
- function Fa(t) {
2954
+ function Fl(t) {
2946
2955
  return Array.from(t.getClientRects());
2947
2956
  }
2948
2957
  function As(t) {
2949
2958
  return $t(rt(t)).left + Rr(t).scrollLeft;
2950
2959
  }
2951
- function Ha(t) {
2960
+ function Hl(t) {
2952
2961
  const e = rt(t), r = Rr(t), i = t.ownerDocument.body, n = Rt(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), s = Rt(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
2953
2962
  let o = -r.scrollLeft + As(t);
2954
- const l = -r.scrollTop;
2963
+ const a = -r.scrollTop;
2955
2964
  return De(i).direction === "rtl" && (o += Rt(e.clientWidth, i.clientWidth) - n), {
2956
2965
  width: n,
2957
2966
  height: s,
2958
2967
  x: o,
2959
- y: l
2968
+ y: a
2960
2969
  };
2961
2970
  }
2962
- function qa(t, e) {
2971
+ function ql(t, e) {
2963
2972
  const r = ke(t), i = rt(t), n = r.visualViewport;
2964
- let s = i.clientWidth, o = i.clientHeight, l = 0, a = 0;
2973
+ let s = i.clientWidth, o = i.clientHeight, a = 0, l = 0;
2965
2974
  if (n) {
2966
2975
  s = n.width, o = n.height;
2967
2976
  const h = Hi();
2968
- (!h || h && e === "fixed") && (l = n.offsetLeft, a = n.offsetTop);
2977
+ (!h || h && e === "fixed") && (a = n.offsetLeft, l = n.offsetTop);
2969
2978
  }
2970
2979
  return {
2971
2980
  width: s,
2972
2981
  height: o,
2973
- x: l,
2974
- y: a
2982
+ x: a,
2983
+ y: l
2975
2984
  };
2976
2985
  }
2977
- function Ua(t, e) {
2978
- const r = $t(t, !0, e === "fixed"), i = r.top + t.clientTop, n = r.left + t.clientLeft, s = We(t) ? Tt(t) : lt(1), o = t.clientWidth * s.x, l = t.clientHeight * s.y, a = n * s.x, h = i * s.y;
2986
+ function Ul(t, e) {
2987
+ const r = $t(t, !0, e === "fixed"), i = r.top + t.clientTop, n = r.left + t.clientLeft, s = We(t) ? Tt(t) : at(1), o = t.clientWidth * s.x, a = t.clientHeight * s.y, l = n * s.x, h = i * s.y;
2979
2988
  return {
2980
2989
  width: o,
2981
- height: l,
2982
- x: a,
2990
+ height: a,
2991
+ x: l,
2983
2992
  y: h
2984
2993
  };
2985
2994
  }
2986
2995
  function Bn(t, e, r) {
2987
2996
  let i;
2988
2997
  if (e === "viewport")
2989
- i = qa(t, r);
2998
+ i = ql(t, r);
2990
2999
  else if (e === "document")
2991
- i = Ha(rt(t));
3000
+ i = Hl(rt(t));
2992
3001
  else if (Qe(e))
2993
- i = Ua(e, r);
3002
+ i = Ul(e, r);
2994
3003
  else {
2995
3004
  const n = Ss(t);
2996
3005
  i = {
@@ -3005,56 +3014,56 @@ function Ms(t, e) {
3005
3014
  const r = It(t);
3006
3015
  return r === e || !Qe(r) || kr(r) ? !1 : De(r).position === "fixed" || Ms(r, e);
3007
3016
  }
3008
- function za(t, e) {
3017
+ function zl(t, e) {
3009
3018
  const r = e.get(t);
3010
3019
  if (r)
3011
3020
  return r;
3012
- let i = Qt(t, [], !1).filter((l) => Qe(l) && ct(l) !== "body"), n = null;
3021
+ let i = Qt(t, [], !1).filter((a) => Qe(a) && ct(a) !== "body"), n = null;
3013
3022
  const s = De(t).position === "fixed";
3014
3023
  let o = s ? It(t) : t;
3015
3024
  for (; Qe(o) && !kr(o); ) {
3016
- const l = De(o), a = Fi(o);
3017
- !a && l.position === "fixed" && (n = null), (s ? !a && !n : !a && l.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || sr(o) && !a && Ms(t, o)) ? i = i.filter((f) => f !== o) : n = l, o = It(o);
3025
+ const a = De(o), l = Fi(o);
3026
+ !l && a.position === "fixed" && (n = null), (s ? !l && !n : !l && a.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || sr(o) && !l && Ms(t, o)) ? i = i.filter((f) => f !== o) : n = a, o = It(o);
3018
3027
  }
3019
3028
  return e.set(t, i), i;
3020
3029
  }
3021
- function Ya(t) {
3030
+ function Yl(t) {
3022
3031
  let {
3023
3032
  element: e,
3024
3033
  boundary: r,
3025
3034
  rootBoundary: i,
3026
3035
  strategy: n
3027
3036
  } = t;
3028
- const o = [...r === "clippingAncestors" ? za(e, this._c) : [].concat(r), i], l = o[0], a = o.reduce((h, f) => {
3037
+ const o = [...r === "clippingAncestors" ? zl(e, this._c) : [].concat(r), i], a = o[0], l = o.reduce((h, f) => {
3029
3038
  const p = Bn(e, f, n);
3030
3039
  return h.top = Rt(p.top, h.top), h.right = yi(p.right, h.right), h.bottom = yi(p.bottom, h.bottom), h.left = Rt(p.left, h.left), h;
3031
- }, Bn(e, l, n));
3040
+ }, Bn(e, a, n));
3032
3041
  return {
3033
- width: a.right - a.left,
3034
- height: a.bottom - a.top,
3035
- x: a.left,
3036
- y: a.top
3042
+ width: l.right - l.left,
3043
+ height: l.bottom - l.top,
3044
+ x: l.left,
3045
+ y: l.top
3037
3046
  };
3038
3047
  }
3039
- function Wa(t) {
3048
+ function Wl(t) {
3040
3049
  return Es(t);
3041
3050
  }
3042
- function Xa(t, e, r) {
3051
+ function Xl(t, e, r) {
3043
3052
  const i = We(e), n = rt(e), s = r === "fixed", o = $t(t, !0, s, e);
3044
- let l = {
3053
+ let a = {
3045
3054
  scrollLeft: 0,
3046
3055
  scrollTop: 0
3047
3056
  };
3048
- const a = lt(0);
3057
+ const l = at(0);
3049
3058
  if (i || !i && !s)
3050
- if ((ct(e) !== "body" || sr(n)) && (l = Rr(e)), i) {
3059
+ if ((ct(e) !== "body" || sr(n)) && (a = Rr(e)), i) {
3051
3060
  const h = $t(e, !0, s, e);
3052
- a.x = h.x + e.clientLeft, a.y = h.y + e.clientTop;
3061
+ l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
3053
3062
  } else
3054
- n && (a.x = As(n));
3063
+ n && (l.x = As(n));
3055
3064
  return {
3056
- x: o.left + l.scrollLeft - a.x,
3057
- y: o.top + l.scrollTop - a.y,
3065
+ x: o.left + a.scrollLeft - l.x,
3066
+ y: o.top + a.scrollTop - l.y,
3058
3067
  width: o.width,
3059
3068
  height: o.height
3060
3069
  };
@@ -3067,11 +3076,11 @@ function Os(t, e) {
3067
3076
  if (!We(t))
3068
3077
  return r;
3069
3078
  let i = Fn(t, e);
3070
- for (; i && Ia(i) && De(i).position === "static"; )
3079
+ for (; i && Il(i) && De(i).position === "static"; )
3071
3080
  i = Fn(i, e);
3072
- return i && (ct(i) === "html" || ct(i) === "body" && De(i).position === "static" && !Fi(i)) ? r : i || Da(t) || r;
3081
+ return i && (ct(i) === "html" || ct(i) === "body" && De(i).position === "static" && !Fi(i)) ? r : i || Dl(t) || r;
3073
3082
  }
3074
- const Va = async function(t) {
3083
+ const Vl = async function(t) {
3075
3084
  let {
3076
3085
  reference: e,
3077
3086
  floating: r,
@@ -3079,7 +3088,7 @@ const Va = async function(t) {
3079
3088
  } = t;
3080
3089
  const n = this.getOffsetParent || Os, s = this.getDimensions;
3081
3090
  return {
3082
- reference: Xa(e, await n(r), i),
3091
+ reference: Xl(e, await n(r), i),
3083
3092
  floating: {
3084
3093
  x: 0,
3085
3094
  y: 0,
@@ -3087,45 +3096,45 @@ const Va = async function(t) {
3087
3096
  }
3088
3097
  };
3089
3098
  };
3090
- function Ka(t) {
3099
+ function Kl(t) {
3091
3100
  return De(t).direction === "rtl";
3092
3101
  }
3093
- const Ga = {
3094
- convertOffsetParentRelativeRectToViewportRelativeRect: Ba,
3102
+ const Gl = {
3103
+ convertOffsetParentRelativeRectToViewportRelativeRect: Bl,
3095
3104
  getDocumentElement: rt,
3096
- getClippingRect: Ya,
3105
+ getClippingRect: Yl,
3097
3106
  getOffsetParent: Os,
3098
- getElementRects: Va,
3099
- getClientRects: Fa,
3100
- getDimensions: Wa,
3107
+ getElementRects: Vl,
3108
+ getClientRects: Fl,
3109
+ getDimensions: Wl,
3101
3110
  getScale: Tt,
3102
3111
  isElement: Qe,
3103
- isRTL: Ka
3112
+ isRTL: Kl
3104
3113
  };
3105
- function Ja(t, e) {
3114
+ function Jl(t, e) {
3106
3115
  let r = null, i;
3107
3116
  const n = rt(t);
3108
3117
  function s() {
3109
3118
  clearTimeout(i), r && r.disconnect(), r = null;
3110
3119
  }
3111
- function o(l, a) {
3112
- l === void 0 && (l = !1), a === void 0 && (a = 1), s();
3120
+ function o(a, l) {
3121
+ a === void 0 && (a = !1), l === void 0 && (l = 1), s();
3113
3122
  const {
3114
3123
  left: h,
3115
3124
  top: f,
3116
3125
  width: p,
3117
3126
  height: b
3118
3127
  } = t.getBoundingClientRect();
3119
- if (l || e(), !p || !b)
3128
+ if (a || e(), !p || !b)
3120
3129
  return;
3121
- const y = br(f), $ = br(n.clientWidth - (h + p)), C = br(n.clientHeight - (f + b)), G = br(h), g = {
3122
- rootMargin: -y + "px " + -$ + "px " + -C + "px " + -G + "px",
3123
- threshold: Rt(0, yi(1, a)) || 1
3130
+ const y = br(f), $ = br(n.clientWidth - (h + p)), L = br(n.clientHeight - (f + b)), G = br(h), g = {
3131
+ rootMargin: -y + "px " + -$ + "px " + -L + "px " + -G + "px",
3132
+ threshold: Rt(0, yi(1, l)) || 1
3124
3133
  };
3125
3134
  let m = !0;
3126
3135
  function w(S) {
3127
3136
  const E = S[0].intersectionRatio;
3128
- if (E !== a) {
3137
+ if (E !== l) {
3129
3138
  if (!m)
3130
3139
  return o();
3131
3140
  E ? o(!1, E) : i = setTimeout(() => {
@@ -3147,57 +3156,57 @@ function Ja(t, e) {
3147
3156
  }
3148
3157
  return o(!0), s;
3149
3158
  }
3150
- function Za(t, e, r, i) {
3159
+ function Zl(t, e, r, i) {
3151
3160
  i === void 0 && (i = {});
3152
3161
  const {
3153
3162
  ancestorScroll: n = !0,
3154
3163
  ancestorResize: s = !0,
3155
3164
  elementResize: o = typeof ResizeObserver == "function",
3156
- layoutShift: l = typeof IntersectionObserver == "function",
3157
- animationFrame: a = !1
3165
+ layoutShift: a = typeof IntersectionObserver == "function",
3166
+ animationFrame: l = !1
3158
3167
  } = i, h = qi(t), f = n || s ? [...h ? Qt(h) : [], ...Qt(e)] : [];
3159
3168
  f.forEach((B) => {
3160
3169
  n && B.addEventListener("scroll", r, {
3161
3170
  passive: !0
3162
3171
  }), s && B.addEventListener("resize", r);
3163
3172
  });
3164
- const p = h && l ? Ja(h, r) : null;
3173
+ const p = h && a ? Jl(h, r) : null;
3165
3174
  let b = -1, y = null;
3166
3175
  o && (y = new ResizeObserver((B) => {
3167
3176
  let [g] = B;
3168
3177
  g && g.target === h && y && (y.unobserve(e), cancelAnimationFrame(b), b = requestAnimationFrame(() => {
3169
3178
  y && y.observe(e);
3170
3179
  })), r();
3171
- }), h && !a && y.observe(h), y.observe(e));
3172
- let $, C = a ? $t(t) : null;
3173
- a && G();
3180
+ }), h && !l && y.observe(h), y.observe(e));
3181
+ let $, L = l ? $t(t) : null;
3182
+ l && G();
3174
3183
  function G() {
3175
3184
  const B = $t(t);
3176
- C && (B.x !== C.x || B.y !== C.y || B.width !== C.width || B.height !== C.height) && r(), C = B, $ = requestAnimationFrame(G);
3185
+ L && (B.x !== L.x || B.y !== L.y || B.width !== L.width || B.height !== L.height) && r(), L = B, $ = requestAnimationFrame(G);
3177
3186
  }
3178
3187
  return r(), () => {
3179
3188
  f.forEach((B) => {
3180
3189
  n && B.removeEventListener("scroll", r), s && B.removeEventListener("resize", r);
3181
- }), p && p(), y && y.disconnect(), y = null, a && cancelAnimationFrame($);
3190
+ }), p && p(), y && y.disconnect(), y = null, l && cancelAnimationFrame($);
3182
3191
  };
3183
3192
  }
3184
- const Qa = (t, e, r) => {
3193
+ const Ql = (t, e, r) => {
3185
3194
  const i = /* @__PURE__ */ new Map(), n = {
3186
- platform: Ga,
3195
+ platform: Gl,
3187
3196
  ...r
3188
3197
  }, s = {
3189
3198
  ...n.platform,
3190
3199
  _c: i
3191
3200
  };
3192
- return Ta(t, e, {
3201
+ return Tl(t, e, {
3193
3202
  ...n,
3194
3203
  platform: s
3195
3204
  });
3196
3205
  };
3197
- var el = Object.defineProperty, tl = Object.getOwnPropertyDescriptor, Tr = (t, e, r, i) => {
3198
- for (var n = i > 1 ? void 0 : i ? tl(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3206
+ var ea = Object.defineProperty, ta = Object.getOwnPropertyDescriptor, Tr = (t, e, r, i) => {
3207
+ for (var n = i > 1 ? void 0 : i ? ta(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3199
3208
  (o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
3200
- return i && n && el(e, r, n), n;
3209
+ return i && n && ea(e, r, n), n;
3201
3210
  };
3202
3211
  let er = class extends _e {
3203
3212
  constructor() {
@@ -3220,7 +3229,7 @@ let er = class extends _e {
3220
3229
  connectedCallback() {
3221
3230
  super.connectedCallback(), this.unstyled || setTimeout(() => {
3222
3231
  const t = this.parent || this.renderRoot.querySelector("[name=trigger]").assignedNodes()[0], e = this.renderRoot.querySelector("#dropdown"), r = () => {
3223
- e.classList.contains("open") && Qa(t, e, { strategy: "fixed" }).then(
3232
+ e.classList.contains("open") && Ql(t, e, { strategy: "fixed" }).then(
3224
3233
  ({ x: i, y: n }) => {
3225
3234
  Object.assign(e.style, {
3226
3235
  left: `${i}px`,
@@ -3230,7 +3239,7 @@ let er = class extends _e {
3230
3239
  }
3231
3240
  );
3232
3241
  };
3233
- this._overlayCleanup = Za(t, e, r);
3242
+ this._overlayCleanup = Zl(t, e, r);
3234
3243
  });
3235
3244
  }
3236
3245
  disconnectedCallback() {
@@ -3240,7 +3249,7 @@ let er = class extends _e {
3240
3249
  ), window.removeEventListener("click", this._clickEventListener);
3241
3250
  }
3242
3251
  render() {
3243
- return V`
3252
+ return X`
3244
3253
  <style>
3245
3254
  #dropdown {
3246
3255
  display: none;
@@ -3248,7 +3257,7 @@ let er = class extends _e {
3248
3257
  #dropdown.open {
3249
3258
  display: block;
3250
3259
  }
3251
- ${this.unstyled ? ae : V`
3260
+ ${this.unstyled ? oe : X`
3252
3261
  eox-dropdown { height: 100%;} #dropdown { position: fixed; top:
3253
3262
  0px; left: 0; width: 100%; margin: 0; padding: 0; background:
3254
3263
  white; border-bottom-left-radius: 4px; border-bottom-right-radius:
@@ -3286,10 +3295,10 @@ Tr([
3286
3295
  er = Tr([
3287
3296
  Re("eox-dropdown")
3288
3297
  ], er);
3289
- var rl = Object.defineProperty, il = Object.getOwnPropertyDescriptor, Ir = (t, e, r, i) => {
3290
- for (var n = i > 1 ? void 0 : i ? il(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3298
+ var ra = Object.defineProperty, ia = Object.getOwnPropertyDescriptor, Ir = (t, e, r, i) => {
3299
+ for (var n = i > 1 ? void 0 : i ? ia(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3291
3300
  (o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
3292
- return i && n && rl(e, r, n), n;
3301
+ return i && n && ra(e, r, n), n;
3293
3302
  };
3294
3303
  let tr = class extends _e {
3295
3304
  constructor() {
@@ -3340,7 +3349,7 @@ let tr = class extends _e {
3340
3349
  );
3341
3350
  }
3342
3351
  render() {
3343
- return V`
3352
+ return X`
3344
3353
  <style>
3345
3354
  .chip.highlighted {
3346
3355
  background: lightgrey;
@@ -3348,7 +3357,7 @@ let tr = class extends _e {
3348
3357
  .chip-title {
3349
3358
  pointer-events: none;
3350
3359
  }
3351
- ${this.unstyled ? ae : V`
3360
+ ${this.unstyled ? oe : X`
3352
3361
  .chip-container { display: flex; flex: 0; } .chip { display: flex;
3353
3362
  align-items: center; background: #00417022; border-radius: 4px;
3354
3363
  margin-right: 4px; padding: 5px 10px; font-size: small; cursor:
@@ -3360,7 +3369,7 @@ let tr = class extends _e {
3360
3369
  <span class="chip-container">
3361
3370
  ${Kt(
3362
3371
  this.items,
3363
- (t) => V`
3372
+ (t) => X`
3364
3373
  <span
3365
3374
  class="chip"
3366
3375
  @click=${(e) => {
@@ -3372,13 +3381,13 @@ let tr = class extends _e {
3372
3381
  <span class="chip-title"
3373
3382
  >${t[this.titleProperty]}</span
3374
3383
  >
3375
- ${fe(
3384
+ ${de(
3376
3385
  t._inProgress,
3377
- () => t.stringifiedState ? "" : V` ... `
3386
+ () => t.stringifiedState ? "" : X` ... `
3378
3387
  )}
3379
- ${fe(
3388
+ ${de(
3380
3389
  t.stringifiedState,
3381
- () => V`: ${t.stringifiedState}`
3390
+ () => X`: ${t.stringifiedState}`
3382
3391
  )}
3383
3392
  <span
3384
3393
  class="chip-close"
@@ -3406,10 +3415,10 @@ Ir([
3406
3415
  tr = Ir([
3407
3416
  Re("eox-itemfilter-chips")
3408
3417
  ], tr);
3409
- var nl = Object.defineProperty, sl = Object.getOwnPropertyDescriptor, Ge = (t, e, r, i) => {
3410
- for (var n = i > 1 ? void 0 : i ? sl(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3418
+ var na = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, Ge = (t, e, r, i) => {
3419
+ for (var n = i > 1 ? void 0 : i ? sa(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3411
3420
  (o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
3412
- return i && n && nl(e, r, n), n;
3421
+ return i && n && na(e, r, n), n;
3413
3422
  };
3414
3423
  let He = class extends _e {
3415
3424
  constructor() {
@@ -3470,7 +3479,7 @@ let He = class extends _e {
3470
3479
  t.has("selectedItems") && this._handleSelect(this.selectedItems);
3471
3480
  }
3472
3481
  render() {
3473
- return V`
3482
+ return X`
3474
3483
  <style>
3475
3484
  :host,
3476
3485
  .container {
@@ -3479,8 +3488,8 @@ let He = class extends _e {
3479
3488
  #dropdown {
3480
3489
  display: none;
3481
3490
  }
3482
- ${this.unstyled ? ae : V`
3483
- ${Ni} :host { position: relative; } .container { width: 100%;
3491
+ ${this.unstyled ? oe : X`
3492
+ ${ji} :host { position: relative; } .container { width: 100%;
3484
3493
  position: relative; border: 1px solid #00417066; border-radius:
3485
3494
  4px; height: 24px; padding: 5px; flex: 1; justify-content:
3486
3495
  space-between; cursor: text; overflow-x: auto; } .container:hover
@@ -3504,9 +3513,9 @@ let He = class extends _e {
3504
3513
  t.stopPropagation(), this.renderRoot.querySelector("input[type=text]").focus();
3505
3514
  }}
3506
3515
  >
3507
- ${fe(
3516
+ ${de(
3508
3517
  this.multiple,
3509
- () => V`
3518
+ () => X`
3510
3519
  <eox-itemfilter-chips
3511
3520
  .items=${this.selectedItems}
3512
3521
  .titleProperty=${this.titleProperty}
@@ -3529,9 +3538,9 @@ let He = class extends _e {
3529
3538
  this.inputText = t.target.value.toLowerCase();
3530
3539
  }}
3531
3540
  />
3532
- ${fe(
3541
+ ${de(
3533
3542
  this.items.length > 0,
3534
- () => V`
3543
+ () => X`
3535
3544
  <eox-selectionlist
3536
3545
  slot="content"
3537
3546
  .filter=${this.inputText}
@@ -3559,9 +3568,9 @@ let He = class extends _e {
3559
3568
  </eox-dropdown>
3560
3569
  </div>
3561
3570
  </div>
3562
- ${fe(
3571
+ ${de(
3563
3572
  this.selectedItems.length > 0,
3564
- () => V`
3573
+ () => X`
3565
3574
  <div class="button-container">
3566
3575
  <button
3567
3576
  class="icon"
@@ -3607,10 +3616,10 @@ Ge([
3607
3616
  He = Ge([
3608
3617
  Re("eox-autocomplete")
3609
3618
  ], He);
3610
- var ol = Object.defineProperty, al = Object.getOwnPropertyDescriptor, it = (t, e, r, i) => {
3611
- for (var n = i > 1 ? void 0 : i ? al(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3619
+ var oa = Object.defineProperty, la = Object.getOwnPropertyDescriptor, it = (t, e, r, i) => {
3620
+ for (var n = i > 1 ? void 0 : i ? la(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3612
3621
  (o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
3613
- return i && n && ol(e, r, n), n;
3622
+ return i && n && oa(e, r, n), n;
3614
3623
  };
3615
3624
  let Xe = class extends _e {
3616
3625
  constructor() {
@@ -3683,7 +3692,7 @@ let Xe = class extends _e {
3683
3692
  }) : this._currentHighlight = null);
3684
3693
  }
3685
3694
  render() {
3686
- return V`
3695
+ return X`
3687
3696
  <style>
3688
3697
  ${Di}
3689
3698
  :host {
@@ -3695,7 +3704,7 @@ let Xe = class extends _e {
3695
3704
  li.highlighted {
3696
3705
  background: lightgrey;
3697
3706
  }
3698
- ${!this.unstyled && ji}
3707
+ ${!this.unstyled && Ni}
3699
3708
  </style>
3700
3709
  <ul>
3701
3710
  ${ms(
@@ -3703,9 +3712,9 @@ let Xe = class extends _e {
3703
3712
  (t) => this.filter ? t[this.titleProperty].toLowerCase().includes(this.filter.toLowerCase()) : !0
3704
3713
  ),
3705
3714
  (t) => t[this.idProperty],
3706
- (t) => V`
3715
+ (t) => X`
3707
3716
  <li
3708
- class=${this._currentHighlight === t ? "highlighted" : ae}
3717
+ class=${this._currentHighlight === t ? "highlighted" : oe}
3709
3718
  data-identifier=${t[this.idProperty]}
3710
3719
  data-title=${t[this.titleProperty]}
3711
3720
  @mouseenter=${() => {
@@ -3720,7 +3729,7 @@ let Xe = class extends _e {
3720
3729
  type="${this.multiple ? "checkbox" : "radio"}"
3721
3730
  .checked=${!!this.selectedItems.find(
3722
3731
  (e) => e[this.idProperty] === t[this.idProperty]
3723
- ) || ae}
3732
+ ) || oe}
3724
3733
  @change=${() => this._handleSelect(t)}
3725
3734
  />
3726
3735
  <span class="title"
@@ -3761,10 +3770,10 @@ it([
3761
3770
  Xe = it([
3762
3771
  Re("eox-selectionlist")
3763
3772
  ], Xe);
3764
- var ll = Object.defineProperty, cl = Object.getOwnPropertyDescriptor, Dr = (t, e, r, i) => {
3765
- for (var n = i > 1 ? void 0 : i ? cl(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3773
+ var aa = Object.defineProperty, ca = Object.getOwnPropertyDescriptor, Dr = (t, e, r, i) => {
3774
+ for (var n = i > 1 ? void 0 : i ? ca(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3766
3775
  (o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
3767
- return i && n && ll(e, r, n), n;
3776
+ return i && n && aa(e, r, n), n;
3768
3777
  };
3769
3778
  let rr = class extends _e {
3770
3779
  constructor() {
@@ -3792,17 +3801,18 @@ let rr = class extends _e {
3792
3801
  }));
3793
3802
  }
3794
3803
  _handleSelected(t) {
3795
- Object.keys(this.filterObject.state).forEach((e) => {
3796
- this.filterObject.state[e] = t.map((r) => r.id).includes(e);
3797
- }), this.filterObject.stringifiedState = Object.keys(this.filterObject.state).filter((e) => this.filterObject.state[e]).join(", "), this.filterObject.dirty = !0, this.dispatchEvent(new CustomEvent("filter"));
3804
+ var e;
3805
+ Object.keys(this.filterObject.state).forEach((r) => {
3806
+ this.filterObject.state[r] = t.map((i) => i.id).includes(r);
3807
+ }), this.filterObject.stringifiedState = Object.keys(this.filterObject.state).filter((r) => this.filterObject.state[r]).join(", "), ((e = this.filterObject.stringifiedState) == null ? void 0 : e.length) > 0 && (this.filterObject.dirty = !0), this.dispatchEvent(new CustomEvent("filter"));
3798
3808
  }
3799
3809
  render() {
3800
- return fe(
3810
+ return de(
3801
3811
  this.filterObject,
3802
- () => V`
3803
- ${fe(
3812
+ () => X`
3813
+ ${de(
3804
3814
  this.inline || Object.keys(this.filterObject.state).length > 10,
3805
- () => V`
3815
+ () => X`
3806
3816
  <eox-autocomplete
3807
3817
  multiple
3808
3818
  .items=${this._getItems()}
@@ -3812,7 +3822,7 @@ let rr = class extends _e {
3812
3822
  >
3813
3823
  </eox-autocomplete>
3814
3824
  `,
3815
- () => V`
3825
+ () => X`
3816
3826
  <eox-selectionlist
3817
3827
  multiple
3818
3828
  .items=${this._getItems()}
@@ -3838,53 +3848,53 @@ Dr([
3838
3848
  rr = Dr([
3839
3849
  Re("eox-itemfilter-multiselect")
3840
3850
  ], rr);
3841
- var hl = "Expected a function", Hn = NaN, ul = "[object Symbol]", dl = /^\s+|\s+$/g, fl = /^[-+]0x[0-9a-f]+$/i, pl = /^0b[01]+$/i, gl = /^0o[0-7]+$/i, ml = parseInt, yl = typeof Lt == "object" && Lt && Lt.Object === Object && Lt, vl = typeof self == "object" && self && self.Object === Object && self, bl = yl || vl || Function("return this")(), xl = Object.prototype, wl = xl.toString, $l = Math.max, _l = Math.min, pi = function() {
3842
- return bl.Date.now();
3851
+ var ha = "Expected a function", Hn = NaN, ua = "[object Symbol]", da = /^\s+|\s+$/g, fa = /^[-+]0x[0-9a-f]+$/i, pa = /^0b[01]+$/i, ga = /^0o[0-7]+$/i, ma = parseInt, ya = typeof Ct == "object" && Ct && Ct.Object === Object && Ct, va = typeof self == "object" && self && self.Object === Object && self, ba = ya || va || Function("return this")(), xa = Object.prototype, wa = xa.toString, $a = Math.max, _a = Math.min, pi = function() {
3852
+ return ba.Date.now();
3843
3853
  };
3844
- function El(t, e, r) {
3845
- var i, n, s, o, l, a, h = 0, f = !1, p = !1, b = !0;
3854
+ function Ea(t, e, r) {
3855
+ var i, n, s, o, a, l, h = 0, f = !1, p = !1, b = !0;
3846
3856
  if (typeof t != "function")
3847
- throw new TypeError(hl);
3848
- e = qn(e) || 0, vi(r) && (f = !!r.leading, p = "maxWait" in r, s = p ? $l(qn(r.maxWait) || 0, e) : s, b = "trailing" in r ? !!r.trailing : b);
3857
+ throw new TypeError(ha);
3858
+ e = qn(e) || 0, vi(r) && (f = !!r.leading, p = "maxWait" in r, s = p ? $a(qn(r.maxWait) || 0, e) : s, b = "trailing" in r ? !!r.trailing : b);
3849
3859
  function y(E) {
3850
3860
  var A = i, k = n;
3851
3861
  return i = n = void 0, h = E, o = t.apply(k, A), o;
3852
3862
  }
3853
3863
  function $(E) {
3854
- return h = E, l = setTimeout(B, e), f ? y(E) : o;
3864
+ return h = E, a = setTimeout(B, e), f ? y(E) : o;
3855
3865
  }
3856
- function C(E) {
3857
- var A = E - a, k = E - h, F = e - A;
3858
- return p ? _l(F, s - k) : F;
3866
+ function L(E) {
3867
+ var A = E - l, k = E - h, F = e - A;
3868
+ return p ? _a(F, s - k) : F;
3859
3869
  }
3860
3870
  function G(E) {
3861
- var A = E - a, k = E - h;
3862
- return a === void 0 || A >= e || A < 0 || p && k >= s;
3871
+ var A = E - l, k = E - h;
3872
+ return l === void 0 || A >= e || A < 0 || p && k >= s;
3863
3873
  }
3864
3874
  function B() {
3865
3875
  var E = pi();
3866
3876
  if (G(E))
3867
3877
  return g(E);
3868
- l = setTimeout(B, C(E));
3878
+ a = setTimeout(B, L(E));
3869
3879
  }
3870
3880
  function g(E) {
3871
- return l = void 0, b && i ? y(E) : (i = n = void 0, o);
3881
+ return a = void 0, b && i ? y(E) : (i = n = void 0, o);
3872
3882
  }
3873
3883
  function m() {
3874
- l !== void 0 && clearTimeout(l), h = 0, i = a = n = l = void 0;
3884
+ a !== void 0 && clearTimeout(a), h = 0, i = l = n = a = void 0;
3875
3885
  }
3876
3886
  function w() {
3877
- return l === void 0 ? o : g(pi());
3887
+ return a === void 0 ? o : g(pi());
3878
3888
  }
3879
3889
  function S() {
3880
3890
  var E = pi(), A = G(E);
3881
- if (i = arguments, n = this, a = E, A) {
3882
- if (l === void 0)
3883
- return $(a);
3891
+ if (i = arguments, n = this, l = E, A) {
3892
+ if (a === void 0)
3893
+ return $(l);
3884
3894
  if (p)
3885
- return l = setTimeout(B, e), y(a);
3895
+ return a = setTimeout(B, e), y(l);
3886
3896
  }
3887
- return l === void 0 && (l = setTimeout(B, e)), o;
3897
+ return a === void 0 && (a = setTimeout(B, e)), o;
3888
3898
  }
3889
3899
  return S.cancel = m, S.flush = w, S;
3890
3900
  }
@@ -3892,16 +3902,16 @@ function vi(t) {
3892
3902
  var e = typeof t;
3893
3903
  return !!t && (e == "object" || e == "function");
3894
3904
  }
3895
- function Sl(t) {
3905
+ function Sa(t) {
3896
3906
  return !!t && typeof t == "object";
3897
3907
  }
3898
- function Al(t) {
3899
- return typeof t == "symbol" || Sl(t) && wl.call(t) == ul;
3908
+ function Aa(t) {
3909
+ return typeof t == "symbol" || Sa(t) && wa.call(t) == ua;
3900
3910
  }
3901
3911
  function qn(t) {
3902
3912
  if (typeof t == "number")
3903
3913
  return t;
3904
- if (Al(t))
3914
+ if (Aa(t))
3905
3915
  return Hn;
3906
3916
  if (vi(t)) {
3907
3917
  var e = typeof t.valueOf == "function" ? t.valueOf() : t;
@@ -3909,16 +3919,16 @@ function qn(t) {
3909
3919
  }
3910
3920
  if (typeof t != "string")
3911
3921
  return t === 0 ? t : +t;
3912
- t = t.replace(dl, "");
3913
- var r = pl.test(t);
3914
- return r || gl.test(t) ? ml(t.slice(2), r ? 2 : 8) : fl.test(t) ? Hn : +t;
3922
+ t = t.replace(da, "");
3923
+ var r = pa.test(t);
3924
+ return r || ga.test(t) ? ma(t.slice(2), r ? 2 : 8) : fa.test(t) ? Hn : +t;
3915
3925
  }
3916
- var Ml = El;
3917
- const Ps = /* @__PURE__ */ Ti(Ml);
3918
- var Ol = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, Cs = (t, e, r, i) => {
3919
- for (var n = i > 1 ? void 0 : i ? Pl(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3926
+ var Ma = Ea;
3927
+ const Ps = /* @__PURE__ */ Ti(Ma);
3928
+ var Oa = Object.defineProperty, Pa = Object.getOwnPropertyDescriptor, Ls = (t, e, r, i) => {
3929
+ for (var n = i > 1 ? void 0 : i ? Pa(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3920
3930
  (o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
3921
- return i && n && Ol(e, r, n), n;
3931
+ return i && n && Oa(e, r, n), n;
3922
3932
  };
3923
3933
  let bi = class extends _e {
3924
3934
  constructor() {
@@ -3937,9 +3947,9 @@ let bi = class extends _e {
3937
3947
  return this;
3938
3948
  }
3939
3949
  render() {
3940
- return fe(
3950
+ return de(
3941
3951
  this.filterObject,
3942
- () => V`
3952
+ () => X`
3943
3953
  <div class="range-before">
3944
3954
  ${this.filterObject.format === "date" ? kt.unix(this.filterObject.state.min) : this.filterObject.state.min}
3945
3955
  </div>
@@ -3949,9 +3959,7 @@ let bi = class extends _e {
3949
3959
  value1="${this.filterObject.state.min}"
3950
3960
  value2="${this.filterObject.state.max}"
3951
3961
  step="1"
3952
- @change="${() => {
3953
- this.debouncedInputHandler;
3954
- }}"
3962
+ @change=${this.debouncedInputHandler}
3955
3963
  ></tc-range-slider>
3956
3964
  <div class="range-after">
3957
3965
  ${this.filterObject.format === "date" ? kt.unix(this.filterObject.state.max) : this.filterObject.state.max}
@@ -3960,16 +3968,16 @@ let bi = class extends _e {
3960
3968
  );
3961
3969
  }
3962
3970
  };
3963
- Cs([
3971
+ Ls([
3964
3972
  J()
3965
3973
  ], bi.prototype, "filterObject", 2);
3966
- bi = Cs([
3974
+ bi = Ls([
3967
3975
  Re("eox-itemfilter-range")
3968
3976
  ], bi);
3969
- var Cl = Object.defineProperty, Ll = Object.getOwnPropertyDescriptor, Nr = (t, e, r, i) => {
3970
- for (var n = i > 1 ? void 0 : i ? Ll(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3977
+ var La = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, jr = (t, e, r, i) => {
3978
+ for (var n = i > 1 ? void 0 : i ? Ca(e, r) : e, s = t.length - 1, o; s >= 0; s--)
3971
3979
  (o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
3972
- return i && n && Cl(e, r, n), n;
3980
+ return i && n && La(e, r, n), n;
3973
3981
  };
3974
3982
  let ir = class extends _e {
3975
3983
  constructor() {
@@ -3997,19 +4005,20 @@ let ir = class extends _e {
3997
4005
  }));
3998
4006
  }
3999
4007
  _handleSelected(t) {
4000
- Object.keys(this.filterObject.state).forEach((e) => {
4001
- this.filterObject.state[e] = t.detail.map((r) => r.id).includes(e);
4008
+ var e;
4009
+ Object.keys(this.filterObject.state).forEach((r) => {
4010
+ this.filterObject.state[r] = t.detail.map((i) => i.id).includes(r);
4002
4011
  }), this.filterObject.stringifiedState = Object.keys(
4003
4012
  this.filterObject.state
4004
- ).filter((e) => this.filterObject.state[e])[0], this.filterObject.dirty = !0, this.dispatchEvent(new CustomEvent("filter"));
4013
+ ).filter((r) => this.filterObject.state[r])[0], ((e = this.filterObject.stringifiedState) == null ? void 0 : e.length) > 0 && (this.filterObject.dirty = !0), this.dispatchEvent(new CustomEvent("filter"));
4005
4014
  }
4006
4015
  render() {
4007
- return fe(
4016
+ return de(
4008
4017
  this.filterObject,
4009
- () => V`
4010
- ${fe(
4018
+ () => X`
4019
+ ${de(
4011
4020
  this.inline || Object.keys(this.filterObject.state).length > 1,
4012
- () => V`
4021
+ () => X`
4013
4022
  <eox-autocomplete
4014
4023
  .items=${this._getItems()}
4015
4024
  .selectedItems=${this._getSelectedItems()}
@@ -4018,7 +4027,7 @@ let ir = class extends _e {
4018
4027
  >
4019
4028
  </eox-autocomplete>
4020
4029
  `,
4021
- () => V`
4030
+ () => X`
4022
4031
  <eox-selectionlist
4023
4032
  .items=${this._getItems()}
4024
4033
  .selectedItems=${this._getSelectedItems()}
@@ -4031,16 +4040,16 @@ let ir = class extends _e {
4031
4040
  );
4032
4041
  }
4033
4042
  };
4034
- Nr([
4043
+ jr([
4035
4044
  J()
4036
4045
  ], ir.prototype, "filterObject", 2);
4037
- Nr([
4046
+ jr([
4038
4047
  J({ type: Boolean })
4039
4048
  ], ir.prototype, "inline", 2);
4040
- Nr([
4049
+ jr([
4041
4050
  J({ type: Boolean })
4042
4051
  ], ir.prototype, "unstyled", 2);
4043
- ir = Nr([
4052
+ ir = jr([
4044
4053
  Re("eox-itemfilter-select")
4045
4054
  ], ir);
4046
4055
  var Se = 63710088e-1, Ui = {
@@ -4059,7 +4068,7 @@ var Se = 63710088e-1, Ui = {
4059
4068
  nauticalmiles: Se / 1852,
4060
4069
  radians: 1,
4061
4070
  yards: Se * 1.0936
4062
- }, kl = {
4071
+ }, ka = {
4063
4072
  centimeters: 100,
4064
4073
  centimetres: 100,
4065
4074
  degrees: 1 / 111325,
@@ -4091,12 +4100,12 @@ var Se = 63710088e-1, Ui = {
4091
4100
  millimetres: 1e6,
4092
4101
  yards: 1.195990046
4093
4102
  };
4094
- function Ne(t, e, r) {
4103
+ function je(t, e, r) {
4095
4104
  r === void 0 && (r = {});
4096
4105
  var i = { type: "Feature" };
4097
4106
  return (r.id === 0 || r.id) && (i.id = r.id), r.bbox && (i.bbox = r.bbox), i.properties = e || {}, i.geometry = t, i;
4098
4107
  }
4099
- function Rl(t, e, r) {
4108
+ function Ra(t, e, r) {
4100
4109
  switch (t) {
4101
4110
  case "Point":
4102
4111
  return ze(e).geometry;
@@ -4105,7 +4114,7 @@ function Rl(t, e, r) {
4105
4114
  case "Polygon":
4106
4115
  return zi(e).geometry;
4107
4116
  case "MultiPoint":
4108
- return Ls(e).geometry;
4117
+ return Cs(e).geometry;
4109
4118
  case "MultiLineString":
4110
4119
  return Yi(e).geometry;
4111
4120
  case "MultiPolygon":
@@ -4127,9 +4136,9 @@ function ze(t, e, r) {
4127
4136
  type: "Point",
4128
4137
  coordinates: t
4129
4138
  };
4130
- return Ne(i, e, r);
4139
+ return je(i, e, r);
4131
4140
  }
4132
- function Tl(t, e, r) {
4141
+ function Ta(t, e, r) {
4133
4142
  return r === void 0 && (r = {}), ht(t.map(function(i) {
4134
4143
  return ze(i, e);
4135
4144
  }), r);
@@ -4144,13 +4153,13 @@ function zi(t, e, r) {
4144
4153
  if (s[s.length - 1][o] !== s[0][o])
4145
4154
  throw new Error("First and last Position are not equivalent.");
4146
4155
  }
4147
- var l = {
4156
+ var a = {
4148
4157
  type: "Polygon",
4149
4158
  coordinates: t
4150
4159
  };
4151
- return Ne(l, e, r);
4160
+ return je(a, e, r);
4152
4161
  }
4153
- function Il(t, e, r) {
4162
+ function Ia(t, e, r) {
4154
4163
  return r === void 0 && (r = {}), ht(t.map(function(i) {
4155
4164
  return zi(i, e);
4156
4165
  }), r);
@@ -4162,9 +4171,9 @@ function Fe(t, e, r) {
4162
4171
  type: "LineString",
4163
4172
  coordinates: t
4164
4173
  };
4165
- return Ne(i, e, r);
4174
+ return je(i, e, r);
4166
4175
  }
4167
- function Dl(t, e, r) {
4176
+ function Da(t, e, r) {
4168
4177
  return r === void 0 && (r = {}), ht(t.map(function(i) {
4169
4178
  return Fe(i, e);
4170
4179
  }), r);
@@ -4180,15 +4189,15 @@ function Yi(t, e, r) {
4180
4189
  type: "MultiLineString",
4181
4190
  coordinates: t
4182
4191
  };
4183
- return Ne(i, e, r);
4192
+ return je(i, e, r);
4184
4193
  }
4185
- function Ls(t, e, r) {
4194
+ function Cs(t, e, r) {
4186
4195
  r === void 0 && (r = {});
4187
4196
  var i = {
4188
4197
  type: "MultiPoint",
4189
4198
  coordinates: t
4190
4199
  };
4191
- return Ne(i, e, r);
4200
+ return je(i, e, r);
4192
4201
  }
4193
4202
  function ks(t, e, r) {
4194
4203
  r === void 0 && (r = {});
@@ -4196,17 +4205,17 @@ function ks(t, e, r) {
4196
4205
  type: "MultiPolygon",
4197
4206
  coordinates: t
4198
4207
  };
4199
- return Ne(i, e, r);
4208
+ return je(i, e, r);
4200
4209
  }
4201
- function Nl(t, e, r) {
4210
+ function ja(t, e, r) {
4202
4211
  r === void 0 && (r = {});
4203
4212
  var i = {
4204
4213
  type: "GeometryCollection",
4205
4214
  geometries: t
4206
4215
  };
4207
- return Ne(i, e, r);
4216
+ return je(i, e, r);
4208
4217
  }
4209
- function jl(t, e) {
4218
+ function Na(t, e) {
4210
4219
  if (e === void 0 && (e = 0), e && !(e >= 0))
4211
4220
  throw new Error("precision must be a positive number");
4212
4221
  var r = Math.pow(10, e || 0);
@@ -4226,10 +4235,10 @@ function Wi(t, e) {
4226
4235
  throw new Error(e + " units is invalid");
4227
4236
  return t / r;
4228
4237
  }
4229
- function Bl(t, e) {
4238
+ function Ba(t, e) {
4230
4239
  return Ts(Wi(t, e));
4231
4240
  }
4232
- function Fl(t) {
4241
+ function Fa(t) {
4233
4242
  var e = t % 360;
4234
4243
  return e < 0 && (e += 360), e;
4235
4244
  }
@@ -4237,16 +4246,16 @@ function Ts(t) {
4237
4246
  var e = t % (2 * Math.PI);
4238
4247
  return e * 180 / Math.PI;
4239
4248
  }
4240
- function Hl(t) {
4249
+ function Ha(t) {
4241
4250
  var e = t % 360;
4242
4251
  return e * Math.PI / 180;
4243
4252
  }
4244
- function ql(t, e, r) {
4253
+ function qa(t, e, r) {
4245
4254
  if (e === void 0 && (e = "kilometers"), r === void 0 && (r = "kilometers"), !(t >= 0))
4246
4255
  throw new Error("length must be a positive number");
4247
4256
  return Rs(Wi(t, e), r);
4248
4257
  }
4249
- function Ul(t, e, r) {
4258
+ function Ua(t, e, r) {
4250
4259
  if (e === void 0 && (e = "meters"), r === void 0 && (r = "kilometers"), !(t >= 0))
4251
4260
  throw new Error("area must be a positive number");
4252
4261
  var i = xi[e];
@@ -4263,7 +4272,7 @@ function Mr(t) {
4263
4272
  function Xi(t) {
4264
4273
  return !!t && t.constructor === Object;
4265
4274
  }
4266
- function zl(t) {
4275
+ function za(t) {
4267
4276
  if (!t)
4268
4277
  throw new Error("bbox is required");
4269
4278
  if (!Array.isArray(t))
@@ -4275,44 +4284,44 @@ function zl(t) {
4275
4284
  throw new Error("bbox must only contain numbers");
4276
4285
  });
4277
4286
  }
4278
- function Yl(t) {
4287
+ function Ya(t) {
4279
4288
  if (!t)
4280
4289
  throw new Error("id is required");
4281
4290
  if (["string", "number"].indexOf(typeof t) === -1)
4282
4291
  throw new Error("id must be a number or a string");
4283
4292
  }
4284
- const Wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4293
+ const Wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4285
4294
  __proto__: null,
4286
4295
  areaFactors: xi,
4287
- bearingToAzimuth: Fl,
4288
- convertArea: Ul,
4289
- convertLength: ql,
4290
- degreesToRadians: Hl,
4296
+ bearingToAzimuth: Fa,
4297
+ convertArea: Ua,
4298
+ convertLength: qa,
4299
+ degreesToRadians: Ha,
4291
4300
  earthRadius: Se,
4292
4301
  factors: Ui,
4293
- feature: Ne,
4302
+ feature: je,
4294
4303
  featureCollection: ht,
4295
- geometry: Rl,
4296
- geometryCollection: Nl,
4304
+ geometry: Ra,
4305
+ geometryCollection: ja,
4297
4306
  isNumber: Mr,
4298
4307
  isObject: Xi,
4299
- lengthToDegrees: Bl,
4308
+ lengthToDegrees: Ba,
4300
4309
  lengthToRadians: Wi,
4301
4310
  lineString: Fe,
4302
- lineStrings: Dl,
4311
+ lineStrings: Da,
4303
4312
  multiLineString: Yi,
4304
- multiPoint: Ls,
4313
+ multiPoint: Cs,
4305
4314
  multiPolygon: ks,
4306
4315
  point: ze,
4307
- points: Tl,
4316
+ points: Ta,
4308
4317
  polygon: zi,
4309
- polygons: Il,
4318
+ polygons: Ia,
4310
4319
  radiansToDegrees: Ts,
4311
4320
  radiansToLength: Rs,
4312
- round: jl,
4313
- unitsFactors: kl,
4314
- validateBBox: zl,
4315
- validateId: Yl
4321
+ round: Na,
4322
+ unitsFactors: ka,
4323
+ validateBBox: za,
4324
+ validateId: Ya
4316
4325
  }, Symbol.toStringTag, { value: "Module" }));
4317
4326
  function Is(t) {
4318
4327
  if (!t)
@@ -4337,7 +4346,7 @@ function Dt(t) {
4337
4346
  return t.coordinates;
4338
4347
  throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array");
4339
4348
  }
4340
- function Nt(t) {
4349
+ function jt(t) {
4341
4350
  return t.type === "Feature" ? t.geometry : t;
4342
4351
  }
4343
4352
  function Ie(t, e, r) {
@@ -4345,48 +4354,48 @@ function Ie(t, e, r) {
4345
4354
  throw new Error("point is required");
4346
4355
  if (!e)
4347
4356
  throw new Error("polygon is required");
4348
- var i = Is(t), n = Nt(e), s = n.type, o = e.bbox, l = n.coordinates;
4349
- if (o && Xl(i, o) === !1)
4357
+ var i = Is(t), n = jt(e), s = n.type, o = e.bbox, a = n.coordinates;
4358
+ if (o && Xa(i, o) === !1)
4350
4359
  return !1;
4351
- s === "Polygon" && (l = [l]);
4352
- for (var a = !1, h = 0; h < l.length && !a; h++)
4353
- if (Un(i, l[h][0], r.ignoreBoundary)) {
4354
- for (var f = !1, p = 1; p < l[h].length && !f; )
4355
- Un(i, l[h][p], !r.ignoreBoundary) && (f = !0), p++;
4356
- f || (a = !0);
4360
+ s === "Polygon" && (a = [a]);
4361
+ for (var l = !1, h = 0; h < a.length && !l; h++)
4362
+ if (Un(i, a[h][0], r.ignoreBoundary)) {
4363
+ for (var f = !1, p = 1; p < a[h].length && !f; )
4364
+ Un(i, a[h][p], !r.ignoreBoundary) && (f = !0), p++;
4365
+ f || (l = !0);
4357
4366
  }
4358
- return a;
4367
+ return l;
4359
4368
  }
4360
4369
  function Un(t, e, r) {
4361
4370
  var i = !1;
4362
4371
  e[0][0] === e[e.length - 1][0] && e[0][1] === e[e.length - 1][1] && (e = e.slice(0, e.length - 1));
4363
4372
  for (var n = 0, s = e.length - 1; n < e.length; s = n++) {
4364
- var o = e[n][0], l = e[n][1], a = e[s][0], h = e[s][1], f = t[1] * (o - a) + l * (a - t[0]) + h * (t[0] - o) === 0 && (o - t[0]) * (a - t[0]) <= 0 && (l - t[1]) * (h - t[1]) <= 0;
4373
+ var o = e[n][0], a = e[n][1], l = e[s][0], h = e[s][1], f = t[1] * (o - l) + a * (l - t[0]) + h * (t[0] - o) === 0 && (o - t[0]) * (l - t[0]) <= 0 && (a - t[1]) * (h - t[1]) <= 0;
4365
4374
  if (f)
4366
4375
  return !r;
4367
- var p = l > t[1] != h > t[1] && t[0] < (a - o) * (t[1] - l) / (h - l) + o;
4376
+ var p = a > t[1] != h > t[1] && t[0] < (l - o) * (t[1] - a) / (h - a) + o;
4368
4377
  p && (i = !i);
4369
4378
  }
4370
4379
  return i;
4371
4380
  }
4372
- function Xl(t, e) {
4381
+ function Xa(t, e) {
4373
4382
  return e[0] <= t[0] && e[1] <= t[1] && e[2] >= t[0] && e[3] >= t[1];
4374
4383
  }
4375
4384
  function Ft(t, e, r) {
4376
4385
  if (t !== null)
4377
- for (var i, n, s, o, l, a, h, f = 0, p = 0, b, y = t.type, $ = y === "FeatureCollection", C = y === "Feature", G = $ ? t.features.length : 1, B = 0; B < G; B++) {
4378
- h = $ ? t.features[B].geometry : C ? t.geometry : t, b = h ? h.type === "GeometryCollection" : !1, l = b ? h.geometries.length : 1;
4379
- for (var g = 0; g < l; g++) {
4386
+ for (var i, n, s, o, a, l, h, f = 0, p = 0, b, y = t.type, $ = y === "FeatureCollection", L = y === "Feature", G = $ ? t.features.length : 1, B = 0; B < G; B++) {
4387
+ h = $ ? t.features[B].geometry : L ? t.geometry : t, b = h ? h.type === "GeometryCollection" : !1, a = b ? h.geometries.length : 1;
4388
+ for (var g = 0; g < a; g++) {
4380
4389
  var m = 0, w = 0;
4381
4390
  if (o = b ? h.geometries[g] : h, o !== null) {
4382
- a = o.coordinates;
4391
+ l = o.coordinates;
4383
4392
  var S = o.type;
4384
4393
  switch (f = r && (S === "Polygon" || S === "MultiPolygon") ? 1 : 0, S) {
4385
4394
  case null:
4386
4395
  break;
4387
4396
  case "Point":
4388
4397
  if (e(
4389
- a,
4398
+ l,
4390
4399
  p,
4391
4400
  B,
4392
4401
  m,
@@ -4397,9 +4406,9 @@ function Ft(t, e, r) {
4397
4406
  break;
4398
4407
  case "LineString":
4399
4408
  case "MultiPoint":
4400
- for (i = 0; i < a.length; i++) {
4409
+ for (i = 0; i < l.length; i++) {
4401
4410
  if (e(
4402
- a[i],
4411
+ l[i],
4403
4412
  p,
4404
4413
  B,
4405
4414
  m,
@@ -4412,10 +4421,10 @@ function Ft(t, e, r) {
4412
4421
  break;
4413
4422
  case "Polygon":
4414
4423
  case "MultiLineString":
4415
- for (i = 0; i < a.length; i++) {
4416
- for (n = 0; n < a[i].length - f; n++) {
4424
+ for (i = 0; i < l.length; i++) {
4425
+ for (n = 0; n < l[i].length - f; n++) {
4417
4426
  if (e(
4418
- a[i][n],
4427
+ l[i][n],
4419
4428
  p,
4420
4429
  B,
4421
4430
  m,
@@ -4429,11 +4438,11 @@ function Ft(t, e, r) {
4429
4438
  S === "Polygon" && m++;
4430
4439
  break;
4431
4440
  case "MultiPolygon":
4432
- for (i = 0; i < a.length; i++) {
4433
- for (w = 0, n = 0; n < a[i].length; n++) {
4434
- for (s = 0; s < a[i][n].length - f; s++) {
4441
+ for (i = 0; i < l.length; i++) {
4442
+ for (w = 0, n = 0; n < l[i].length; n++) {
4443
+ for (s = 0; s < l[i][n].length - f; s++) {
4435
4444
  if (e(
4436
- a[i][n][s],
4445
+ l[i][n][s],
4437
4446
  p,
4438
4447
  B,
4439
4448
  m,
@@ -4459,17 +4468,17 @@ function Ft(t, e, r) {
4459
4468
  }
4460
4469
  }
4461
4470
  }
4462
- function Vl(t, e, r, i) {
4471
+ function Va(t, e, r, i) {
4463
4472
  var n = r;
4464
4473
  return Ft(
4465
4474
  t,
4466
- function(s, o, l, a, h) {
4475
+ function(s, o, a, l, h) {
4467
4476
  o === 0 && r === void 0 ? n = s : n = e(
4468
4477
  n,
4469
4478
  s,
4470
4479
  o,
4471
- l,
4472
4480
  a,
4481
+ l,
4473
4482
  h
4474
4483
  );
4475
4484
  },
@@ -4488,7 +4497,7 @@ function Ds(t, e) {
4488
4497
  break;
4489
4498
  }
4490
4499
  }
4491
- function Kl(t, e, r) {
4500
+ function Ka(t, e, r) {
4492
4501
  var i = r;
4493
4502
  return Ds(t, function(n, s) {
4494
4503
  s === 0 && r === void 0 ? i = n : i = e(i, n, s);
@@ -4501,23 +4510,23 @@ function Or(t, e) {
4501
4510
  for (var r = 0; r < t.features.length && e(t.features[r], r) !== !1; r++)
4502
4511
  ;
4503
4512
  }
4504
- function Gl(t, e, r) {
4513
+ function Ga(t, e, r) {
4505
4514
  var i = r;
4506
4515
  return Or(t, function(n, s) {
4507
4516
  s === 0 && r === void 0 ? i = n : i = e(i, n, s);
4508
4517
  }), i;
4509
4518
  }
4510
- function Jl(t) {
4519
+ function Ja(t) {
4511
4520
  var e = [];
4512
4521
  return Ft(t, function(r) {
4513
4522
  e.push(r);
4514
4523
  }), e;
4515
4524
  }
4516
4525
  function Vi(t, e) {
4517
- var r, i, n, s, o, l, a, h, f, p, b = 0, y = t.type === "FeatureCollection", $ = t.type === "Feature", C = y ? t.features.length : 1;
4518
- for (r = 0; r < C; r++) {
4519
- for (l = y ? t.features[r].geometry : $ ? t.geometry : t, h = y ? t.features[r].properties : $ ? t.properties : {}, f = y ? t.features[r].bbox : $ ? t.bbox : void 0, p = y ? t.features[r].id : $ ? t.id : void 0, a = l ? l.type === "GeometryCollection" : !1, o = a ? l.geometries.length : 1, n = 0; n < o; n++) {
4520
- if (s = a ? l.geometries[n] : l, s === null) {
4526
+ var r, i, n, s, o, a, l, h, f, p, b = 0, y = t.type === "FeatureCollection", $ = t.type === "Feature", L = y ? t.features.length : 1;
4527
+ for (r = 0; r < L; r++) {
4528
+ for (a = y ? t.features[r].geometry : $ ? t.geometry : t, h = y ? t.features[r].properties : $ ? t.properties : {}, f = y ? t.features[r].bbox : $ ? t.bbox : void 0, p = y ? t.features[r].id : $ ? t.id : void 0, l = a ? a.type === "GeometryCollection" : !1, o = l ? a.geometries.length : 1, n = 0; n < o; n++) {
4529
+ if (s = l ? a.geometries[n] : a, s === null) {
4521
4530
  if (e(
4522
4531
  null,
4523
4532
  b,
@@ -4564,59 +4573,59 @@ function Vi(t, e) {
4564
4573
  b++;
4565
4574
  }
4566
4575
  }
4567
- function Zl(t, e, r) {
4576
+ function Za(t, e, r) {
4568
4577
  var i = r;
4569
4578
  return Vi(
4570
4579
  t,
4571
- function(n, s, o, l, a) {
4580
+ function(n, s, o, a, l) {
4572
4581
  s === 0 && r === void 0 ? i = n : i = e(
4573
4582
  i,
4574
4583
  n,
4575
4584
  s,
4576
4585
  o,
4577
- l,
4578
- a
4586
+ a,
4587
+ l
4579
4588
  );
4580
4589
  }
4581
4590
  ), i;
4582
4591
  }
4583
4592
  function et(t, e) {
4584
4593
  Vi(t, function(r, i, n, s, o) {
4585
- var l = r === null ? null : r.type;
4586
- switch (l) {
4594
+ var a = r === null ? null : r.type;
4595
+ switch (a) {
4587
4596
  case null:
4588
4597
  case "Point":
4589
4598
  case "LineString":
4590
4599
  case "Polygon":
4591
4600
  return e(
4592
- Ne(r, n, { bbox: s, id: o }),
4601
+ je(r, n, { bbox: s, id: o }),
4593
4602
  i,
4594
4603
  0
4595
4604
  ) === !1 ? !1 : void 0;
4596
4605
  }
4597
- var a;
4598
- switch (l) {
4606
+ var l;
4607
+ switch (a) {
4599
4608
  case "MultiPoint":
4600
- a = "Point";
4609
+ l = "Point";
4601
4610
  break;
4602
4611
  case "MultiLineString":
4603
- a = "LineString";
4612
+ l = "LineString";
4604
4613
  break;
4605
4614
  case "MultiPolygon":
4606
- a = "Polygon";
4615
+ l = "Polygon";
4607
4616
  break;
4608
4617
  }
4609
4618
  for (var h = 0; h < r.coordinates.length; h++) {
4610
4619
  var f = r.coordinates[h], p = {
4611
- type: a,
4620
+ type: l,
4612
4621
  coordinates: f
4613
4622
  };
4614
- if (e(Ne(p, n), i, h) === !1)
4623
+ if (e(je(p, n), i, h) === !1)
4615
4624
  return !1;
4616
4625
  }
4617
4626
  });
4618
4627
  }
4619
- function Ql(t, e, r) {
4628
+ function Qa(t, e, r) {
4620
4629
  var i = r;
4621
4630
  return et(
4622
4631
  t,
@@ -4630,33 +4639,33 @@ function Ql(t, e, r) {
4630
4639
  }
4631
4640
  ), i;
4632
4641
  }
4633
- function Ns(t, e) {
4642
+ function js(t, e) {
4634
4643
  et(t, function(r, i, n) {
4635
4644
  var s = 0;
4636
4645
  if (r.geometry) {
4637
4646
  var o = r.geometry.type;
4638
4647
  if (!(o === "Point" || o === "MultiPoint")) {
4639
- var l, a = 0, h = 0, f = 0;
4648
+ var a, l = 0, h = 0, f = 0;
4640
4649
  if (Ft(
4641
4650
  r,
4642
- function(p, b, y, $, C) {
4643
- if (l === void 0 || i > a || $ > h || C > f) {
4644
- l = p, a = i, h = $, f = C, s = 0;
4651
+ function(p, b, y, $, L) {
4652
+ if (a === void 0 || i > l || $ > h || L > f) {
4653
+ a = p, l = i, h = $, f = L, s = 0;
4645
4654
  return;
4646
4655
  }
4647
4656
  var G = Fe(
4648
- [l, p],
4657
+ [a, p],
4649
4658
  r.properties
4650
4659
  );
4651
4660
  if (e(
4652
4661
  G,
4653
4662
  i,
4654
4663
  n,
4655
- C,
4664
+ L,
4656
4665
  s
4657
4666
  ) === !1)
4658
4667
  return !1;
4659
- s++, l = p;
4668
+ s++, a = p;
4660
4669
  }
4661
4670
  ) === !1)
4662
4671
  return !1;
@@ -4666,21 +4675,21 @@ function Ns(t, e) {
4666
4675
  }
4667
4676
  function ec(t, e, r) {
4668
4677
  var i = r, n = !1;
4669
- return Ns(
4678
+ return js(
4670
4679
  t,
4671
- function(s, o, l, a, h) {
4680
+ function(s, o, a, l, h) {
4672
4681
  n === !1 && r === void 0 ? i = s : i = e(
4673
4682
  i,
4674
4683
  s,
4675
4684
  o,
4676
- l,
4677
4685
  a,
4686
+ l,
4678
4687
  h
4679
4688
  ), n = !0;
4680
4689
  }
4681
4690
  ), i;
4682
4691
  }
4683
- function js(t, e) {
4692
+ function Ns(t, e) {
4684
4693
  if (!t)
4685
4694
  throw new Error("geojson is required");
4686
4695
  et(t, function(r, i, n) {
@@ -4692,12 +4701,12 @@ function js(t, e) {
4692
4701
  return !1;
4693
4702
  break;
4694
4703
  case "Polygon":
4695
- for (var l = 0; l < o.length; l++)
4704
+ for (var a = 0; a < o.length; a++)
4696
4705
  if (e(
4697
- Fe(o[l], r.properties),
4706
+ Fe(o[a], r.properties),
4698
4707
  i,
4699
4708
  n,
4700
- l
4709
+ a
4701
4710
  ) === !1)
4702
4711
  return !1;
4703
4712
  break;
@@ -4707,15 +4716,15 @@ function js(t, e) {
4707
4716
  }
4708
4717
  function tc(t, e, r) {
4709
4718
  var i = r;
4710
- return js(
4719
+ return Ns(
4711
4720
  t,
4712
- function(n, s, o, l) {
4721
+ function(n, s, o, a) {
4713
4722
  s === 0 && r === void 0 ? i = n : i = e(
4714
4723
  i,
4715
4724
  n,
4716
4725
  s,
4717
4726
  o,
4718
- l
4727
+ a
4719
4728
  );
4720
4729
  }
4721
4730
  ), i;
@@ -4723,13 +4732,13 @@ function tc(t, e, r) {
4723
4732
  function rc(t, e) {
4724
4733
  if (e = e || {}, !Xi(e))
4725
4734
  throw new Error("options is invalid");
4726
- var r = e.featureIndex || 0, i = e.multiFeatureIndex || 0, n = e.geometryIndex || 0, s = e.segmentIndex || 0, o = e.properties, l;
4735
+ var r = e.featureIndex || 0, i = e.multiFeatureIndex || 0, n = e.geometryIndex || 0, s = e.segmentIndex || 0, o = e.properties, a;
4727
4736
  switch (t.type) {
4728
4737
  case "FeatureCollection":
4729
- r < 0 && (r = t.features.length + r), o = o || t.features[r].properties, l = t.features[r].geometry;
4738
+ r < 0 && (r = t.features.length + r), o = o || t.features[r].properties, a = t.features[r].geometry;
4730
4739
  break;
4731
4740
  case "Feature":
4732
- o = o || t.properties, l = t.geometry;
4741
+ o = o || t.properties, a = t.geometry;
4733
4742
  break;
4734
4743
  case "Point":
4735
4744
  case "MultiPoint":
@@ -4738,47 +4747,47 @@ function rc(t, e) {
4738
4747
  case "Polygon":
4739
4748
  case "MultiLineString":
4740
4749
  case "MultiPolygon":
4741
- l = t;
4750
+ a = t;
4742
4751
  break;
4743
4752
  default:
4744
4753
  throw new Error("geojson is invalid");
4745
4754
  }
4746
- if (l === null)
4755
+ if (a === null)
4747
4756
  return null;
4748
- var a = l.coordinates;
4749
- switch (l.type) {
4757
+ var l = a.coordinates;
4758
+ switch (a.type) {
4750
4759
  case "Point":
4751
4760
  case "MultiPoint":
4752
4761
  return null;
4753
4762
  case "LineString":
4754
- return s < 0 && (s = a.length + s - 1), Fe(
4755
- [a[s], a[s + 1]],
4763
+ return s < 0 && (s = l.length + s - 1), Fe(
4764
+ [l[s], l[s + 1]],
4756
4765
  o,
4757
4766
  e
4758
4767
  );
4759
4768
  case "Polygon":
4760
- return n < 0 && (n = a.length + n), s < 0 && (s = a[n].length + s - 1), Fe(
4769
+ return n < 0 && (n = l.length + n), s < 0 && (s = l[n].length + s - 1), Fe(
4761
4770
  [
4762
- a[n][s],
4763
- a[n][s + 1]
4771
+ l[n][s],
4772
+ l[n][s + 1]
4764
4773
  ],
4765
4774
  o,
4766
4775
  e
4767
4776
  );
4768
4777
  case "MultiLineString":
4769
- return i < 0 && (i = a.length + i), s < 0 && (s = a[i].length + s - 1), Fe(
4778
+ return i < 0 && (i = l.length + i), s < 0 && (s = l[i].length + s - 1), Fe(
4770
4779
  [
4771
- a[i][s],
4772
- a[i][s + 1]
4780
+ l[i][s],
4781
+ l[i][s + 1]
4773
4782
  ],
4774
4783
  o,
4775
4784
  e
4776
4785
  );
4777
4786
  case "MultiPolygon":
4778
- return i < 0 && (i = a.length + i), n < 0 && (n = a[i].length + n), s < 0 && (s = a[i][n].length - s - 1), Fe(
4787
+ return i < 0 && (i = l.length + i), n < 0 && (n = l[i].length + n), s < 0 && (s = l[i][n].length - s - 1), Fe(
4779
4788
  [
4780
- a[i][n][s],
4781
- a[i][n][s + 1]
4789
+ l[i][n][s],
4790
+ l[i][n][s + 1]
4782
4791
  ],
4783
4792
  o,
4784
4793
  e
@@ -4789,13 +4798,13 @@ function rc(t, e) {
4789
4798
  function ic(t, e) {
4790
4799
  if (e = e || {}, !Xi(e))
4791
4800
  throw new Error("options is invalid");
4792
- var r = e.featureIndex || 0, i = e.multiFeatureIndex || 0, n = e.geometryIndex || 0, s = e.coordIndex || 0, o = e.properties, l;
4801
+ var r = e.featureIndex || 0, i = e.multiFeatureIndex || 0, n = e.geometryIndex || 0, s = e.coordIndex || 0, o = e.properties, a;
4793
4802
  switch (t.type) {
4794
4803
  case "FeatureCollection":
4795
- r < 0 && (r = t.features.length + r), o = o || t.features[r].properties, l = t.features[r].geometry;
4804
+ r < 0 && (r = t.features.length + r), o = o || t.features[r].properties, a = t.features[r].geometry;
4796
4805
  break;
4797
4806
  case "Feature":
4798
- o = o || t.properties, l = t.geometry;
4807
+ o = o || t.properties, a = t.geometry;
4799
4808
  break;
4800
4809
  case "Point":
4801
4810
  case "MultiPoint":
@@ -4804,28 +4813,28 @@ function ic(t, e) {
4804
4813
  case "Polygon":
4805
4814
  case "MultiLineString":
4806
4815
  case "MultiPolygon":
4807
- l = t;
4816
+ a = t;
4808
4817
  break;
4809
4818
  default:
4810
4819
  throw new Error("geojson is invalid");
4811
4820
  }
4812
- if (l === null)
4821
+ if (a === null)
4813
4822
  return null;
4814
- var a = l.coordinates;
4815
- switch (l.type) {
4823
+ var l = a.coordinates;
4824
+ switch (a.type) {
4816
4825
  case "Point":
4817
- return ze(a, o, e);
4826
+ return ze(l, o, e);
4818
4827
  case "MultiPoint":
4819
- return i < 0 && (i = a.length + i), ze(a[i], o, e);
4828
+ return i < 0 && (i = l.length + i), ze(l[i], o, e);
4820
4829
  case "LineString":
4821
- return s < 0 && (s = a.length + s), ze(a[s], o, e);
4830
+ return s < 0 && (s = l.length + s), ze(l[s], o, e);
4822
4831
  case "Polygon":
4823
- return n < 0 && (n = a.length + n), s < 0 && (s = a[n].length + s), ze(a[n][s], o, e);
4832
+ return n < 0 && (n = l.length + n), s < 0 && (s = l[n].length + s), ze(l[n][s], o, e);
4824
4833
  case "MultiLineString":
4825
- return i < 0 && (i = a.length + i), s < 0 && (s = a[i].length + s), ze(a[i][s], o, e);
4834
+ return i < 0 && (i = l.length + i), s < 0 && (s = l[i].length + s), ze(l[i][s], o, e);
4826
4835
  case "MultiPolygon":
4827
- return i < 0 && (i = a.length + i), n < 0 && (n = a[i].length + n), s < 0 && (s = a[i][n].length - s), ze(
4828
- a[i][n][s],
4836
+ return i < 0 && (i = l.length + i), n < 0 && (n = l[i].length + n), s < 0 && (s = l[i][n].length - s), ze(
4837
+ l[i][n][s],
4829
4838
  o,
4830
4839
  e
4831
4840
  );
@@ -4834,22 +4843,22 @@ function ic(t, e) {
4834
4843
  }
4835
4844
  const nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4836
4845
  __proto__: null,
4837
- coordAll: Jl,
4846
+ coordAll: Ja,
4838
4847
  coordEach: Ft,
4839
- coordReduce: Vl,
4848
+ coordReduce: Va,
4840
4849
  featureEach: Or,
4841
- featureReduce: Gl,
4850
+ featureReduce: Ga,
4842
4851
  findPoint: ic,
4843
4852
  findSegment: rc,
4844
4853
  flattenEach: et,
4845
- flattenReduce: Ql,
4854
+ flattenReduce: Qa,
4846
4855
  geomEach: Vi,
4847
- geomReduce: Zl,
4848
- lineEach: js,
4856
+ geomReduce: Za,
4857
+ lineEach: Ns,
4849
4858
  lineReduce: tc,
4850
4859
  propEach: Ds,
4851
- propReduce: Kl,
4852
- segmentEach: Ns,
4860
+ propReduce: Ka,
4861
+ segmentEach: js,
4853
4862
  segmentReduce: ec
4854
4863
  }, Symbol.toStringTag, { value: "Module" }));
4855
4864
  function zn(t) {
@@ -4882,24 +4891,24 @@ function oc(t, e) {
4882
4891
  var r = [];
4883
4892
  return t.reduce(function(i, n) {
4884
4893
  var s = Fe([i, n], e);
4885
- return s.bbox = ac(i, n), r.push(s), n;
4894
+ return s.bbox = lc(i, n), r.push(s), n;
4886
4895
  }), r;
4887
4896
  }
4888
- function ac(t, e) {
4889
- var r = t[0], i = t[1], n = e[0], s = e[1], o = r < n ? r : n, l = i < s ? i : s, a = r > n ? r : n, h = i > s ? i : s;
4890
- return [o, l, a, h];
4897
+ function lc(t, e) {
4898
+ var r = t[0], i = t[1], n = e[0], s = e[1], o = r < n ? r : n, a = i < s ? i : s, l = r > n ? r : n, h = i > s ? i : s;
4899
+ return [o, a, l, h];
4891
4900
  }
4892
4901
  var Ki = { exports: {} }, Bs = { exports: {} };
4893
4902
  (function(t, e) {
4894
4903
  (function(r, i) {
4895
4904
  t.exports = i();
4896
- })(Lt, function() {
4905
+ })(Ct, function() {
4897
4906
  function r(g, m, w, S, E) {
4898
4907
  (function A(k, F, H, I, te) {
4899
4908
  for (; I > H; ) {
4900
4909
  if (I - H > 600) {
4901
- var oe = I - H + 1, O = F - H + 1, P = Math.log(oe), M = 0.5 * Math.exp(2 * P / 3), N = 0.5 * Math.sqrt(P * M * (oe - M) / oe) * (O - oe / 2 < 0 ? -1 : 1), L = Math.max(H, Math.floor(F - O * M / oe + N)), X = Math.min(I, Math.floor(F + (oe - O) * M / oe + N));
4902
- A(k, F, L, X, te);
4910
+ var le = I - H + 1, O = F - H + 1, P = Math.log(le), M = 0.5 * Math.exp(2 * P / 3), j = 0.5 * Math.sqrt(P * M * (le - M) / le) * (O - le / 2 < 0 ? -1 : 1), C = Math.max(H, Math.floor(F - O * M / le + j)), V = Math.min(I, Math.floor(F + (le - O) * M / le + j));
4911
+ A(k, F, C, V, te);
4903
4912
  }
4904
4913
  var U = k[F], se = H, re = I;
4905
4914
  for (i(k, H, F), te(k[I], U) > 0 && i(k, H, I); se < re; ) {
@@ -4930,10 +4939,10 @@ var Ki = { exports: {} }, Bs = { exports: {} };
4930
4939
  return S;
4931
4940
  return -1;
4932
4941
  }
4933
- function l(g, m) {
4934
- a(g, 0, g.children.length, m, g);
4942
+ function a(g, m) {
4943
+ l(g, 0, g.children.length, m, g);
4935
4944
  }
4936
- function a(g, m, w, S, E) {
4945
+ function l(g, m, w, S, E) {
4937
4946
  E || (E = G(null)), E.minX = 1 / 0, E.minY = 1 / 0, E.maxX = -1 / 0, E.maxY = -1 / 0;
4938
4947
  for (var A = m; A < w; A++) {
4939
4948
  var k = g.children[A];
@@ -4959,7 +4968,7 @@ var Ki = { exports: {} }, Bs = { exports: {} };
4959
4968
  function $(g, m) {
4960
4969
  return g.minX <= m.minX && g.minY <= m.minY && m.maxX <= g.maxX && m.maxY <= g.maxY;
4961
4970
  }
4962
- function C(g, m) {
4971
+ function L(g, m) {
4963
4972
  return m.minX <= g.maxX && m.minY <= g.maxY && m.maxX >= g.minX && m.maxY >= g.minY;
4964
4973
  }
4965
4974
  function G(g) {
@@ -4976,24 +4985,24 @@ var Ki = { exports: {} }, Bs = { exports: {} };
4976
4985
  return this._all(this.data, []);
4977
4986
  }, s.prototype.search = function(g) {
4978
4987
  var m = this.data, w = [];
4979
- if (!C(g, m))
4988
+ if (!L(g, m))
4980
4989
  return w;
4981
4990
  for (var S = this.toBBox, E = []; m; ) {
4982
4991
  for (var A = 0; A < m.children.length; A++) {
4983
4992
  var k = m.children[A], F = m.leaf ? S(k) : k;
4984
- C(g, F) && (m.leaf ? w.push(k) : $(g, F) ? this._all(k, w) : E.push(k));
4993
+ L(g, F) && (m.leaf ? w.push(k) : $(g, F) ? this._all(k, w) : E.push(k));
4985
4994
  }
4986
4995
  m = E.pop();
4987
4996
  }
4988
4997
  return w;
4989
4998
  }, s.prototype.collides = function(g) {
4990
4999
  var m = this.data;
4991
- if (!C(g, m))
5000
+ if (!L(g, m))
4992
5001
  return !1;
4993
5002
  for (var w = []; m; ) {
4994
5003
  for (var S = 0; S < m.children.length; S++) {
4995
5004
  var E = m.children[S], A = m.leaf ? this.toBBox(E) : E;
4996
- if (C(g, A)) {
5005
+ if (L(g, A)) {
4997
5006
  if (m.leaf || $(g, A))
4998
5007
  return !0;
4999
5008
  w.push(E);
@@ -5057,28 +5066,28 @@ var Ki = { exports: {} }, Bs = { exports: {} };
5057
5066
  }, s.prototype._build = function(g, m, w, S) {
5058
5067
  var E, A = w - m + 1, k = this._maxEntries;
5059
5068
  if (A <= k)
5060
- return l(E = G(g.slice(m, w + 1)), this.toBBox), E;
5069
+ return a(E = G(g.slice(m, w + 1)), this.toBBox), E;
5061
5070
  S || (S = Math.ceil(Math.log(A) / Math.log(k)), k = Math.ceil(A / Math.pow(k, S - 1))), (E = G([])).leaf = !1, E.height = S;
5062
5071
  var F = Math.ceil(A / k), H = F * Math.ceil(Math.sqrt(k));
5063
5072
  B(g, m, w, H, this.compareMinX);
5064
5073
  for (var I = m; I <= w; I += H) {
5065
5074
  var te = Math.min(I + H - 1, w);
5066
5075
  B(g, I, te, F, this.compareMinY);
5067
- for (var oe = I; oe <= te; oe += F) {
5068
- var O = Math.min(oe + F - 1, te);
5069
- E.children.push(this._build(g, oe, O, S - 1));
5076
+ for (var le = I; le <= te; le += F) {
5077
+ var O = Math.min(le + F - 1, te);
5078
+ E.children.push(this._build(g, le, O, S - 1));
5070
5079
  }
5071
5080
  }
5072
- return l(E, this.toBBox), E;
5081
+ return a(E, this.toBBox), E;
5073
5082
  }, s.prototype._chooseSubtree = function(g, m, w, S) {
5074
5083
  for (; S.push(m), !m.leaf && S.length - 1 !== w; ) {
5075
5084
  for (var E = 1 / 0, A = 1 / 0, k = void 0, F = 0; F < m.children.length; F++) {
5076
- var H = m.children[F], I = b(H), te = (oe = g, O = H, (Math.max(O.maxX, oe.maxX) - Math.min(O.minX, oe.minX)) * (Math.max(O.maxY, oe.maxY) - Math.min(O.minY, oe.minY)) - I);
5085
+ var H = m.children[F], I = b(H), te = (le = g, O = H, (Math.max(O.maxX, le.maxX) - Math.min(O.minX, le.minX)) * (Math.max(O.maxY, le.maxY) - Math.min(O.minY, le.minY)) - I);
5077
5086
  te < A ? (A = te, E = I < E ? I : E, k = H) : te === A && I < E && (E = I, k = H);
5078
5087
  }
5079
5088
  m = k || m.children[0];
5080
5089
  }
5081
- var oe, O;
5090
+ var le, O;
5082
5091
  return m;
5083
5092
  }, s.prototype._insert = function(g, m, w) {
5084
5093
  var S = w ? g : this.toBBox(g), E = [], A = this._chooseSubtree(S, this.data, m, E);
@@ -5089,13 +5098,13 @@ var Ki = { exports: {} }, Bs = { exports: {} };
5089
5098
  var w = g[m], S = w.children.length, E = this._minEntries;
5090
5099
  this._chooseSplitAxis(w, E, S);
5091
5100
  var A = this._chooseSplitIndex(w, E, S), k = G(w.children.splice(A, w.children.length - A));
5092
- k.height = w.height, k.leaf = w.leaf, l(w, this.toBBox), l(k, this.toBBox), m ? g[m - 1].children.push(k) : this._splitRoot(w, k);
5101
+ k.height = w.height, k.leaf = w.leaf, a(w, this.toBBox), a(k, this.toBBox), m ? g[m - 1].children.push(k) : this._splitRoot(w, k);
5093
5102
  }, s.prototype._splitRoot = function(g, m) {
5094
- this.data = G([g, m]), this.data.height = g.height + 1, this.data.leaf = !1, l(this.data, this.toBBox);
5103
+ this.data = G([g, m]), this.data.height = g.height + 1, this.data.leaf = !1, a(this.data, this.toBBox);
5095
5104
  }, s.prototype._chooseSplitIndex = function(g, m, w) {
5096
- for (var S, E, A, k, F, H, I, te = 1 / 0, oe = 1 / 0, O = m; O <= w - m; O++) {
5097
- var P = a(g, 0, O, this.toBBox), M = a(g, O, w, this.toBBox), N = (E = P, A = M, k = void 0, F = void 0, H = void 0, I = void 0, k = Math.max(E.minX, A.minX), F = Math.max(E.minY, A.minY), H = Math.min(E.maxX, A.maxX), I = Math.min(E.maxY, A.maxY), Math.max(0, H - k) * Math.max(0, I - F)), L = b(P) + b(M);
5098
- N < te ? (te = N, S = O, oe = L < oe ? L : oe) : N === te && L < oe && (oe = L, S = O);
5105
+ for (var S, E, A, k, F, H, I, te = 1 / 0, le = 1 / 0, O = m; O <= w - m; O++) {
5106
+ var P = l(g, 0, O, this.toBBox), M = l(g, O, w, this.toBBox), j = (E = P, A = M, k = void 0, F = void 0, H = void 0, I = void 0, k = Math.max(E.minX, A.minX), F = Math.max(E.minY, A.minY), H = Math.min(E.maxX, A.maxX), I = Math.min(E.maxY, A.maxY), Math.max(0, H - k) * Math.max(0, I - F)), C = b(P) + b(M);
5107
+ j < te ? (te = j, S = O, le = C < le ? C : le) : j === te && C < le && (le = C, S = O);
5099
5108
  }
5100
5109
  return S || w - m;
5101
5110
  }, s.prototype._chooseSplitAxis = function(g, m, w) {
@@ -5103,13 +5112,13 @@ var Ki = { exports: {} }, Bs = { exports: {} };
5103
5112
  this._allDistMargin(g, m, w, S) < this._allDistMargin(g, m, w, E) && g.children.sort(S);
5104
5113
  }, s.prototype._allDistMargin = function(g, m, w, S) {
5105
5114
  g.children.sort(S);
5106
- for (var E = this.toBBox, A = a(g, 0, m, E), k = a(g, w - m, w, E), F = y(A) + y(k), H = m; H < w - m; H++) {
5115
+ for (var E = this.toBBox, A = l(g, 0, m, E), k = l(g, w - m, w, E), F = y(A) + y(k), H = m; H < w - m; H++) {
5107
5116
  var I = g.children[H];
5108
5117
  h(A, g.leaf ? E(I) : I), F += y(A);
5109
5118
  }
5110
5119
  for (var te = w - m - 1; te >= m; te--) {
5111
- var oe = g.children[te];
5112
- h(k, g.leaf ? E(oe) : oe), F += y(k);
5120
+ var le = g.children[te];
5121
+ h(k, g.leaf ? E(le) : le), F += y(k);
5113
5122
  }
5114
5123
  return F;
5115
5124
  }, s.prototype._adjustParentBBoxes = function(g, m, w) {
@@ -5117,12 +5126,12 @@ var Ki = { exports: {} }, Bs = { exports: {} };
5117
5126
  h(m[S], g);
5118
5127
  }, s.prototype._condense = function(g) {
5119
5128
  for (var m = g.length - 1, w = void 0; m >= 0; m--)
5120
- g[m].children.length === 0 ? m > 0 ? (w = g[m - 1].children).splice(w.indexOf(g[m]), 1) : this.clear() : l(g[m], this.toBBox);
5129
+ g[m].children.length === 0 ? m > 0 ? (w = g[m - 1].children).splice(w.indexOf(g[m]), 1) : this.clear() : a(g[m], this.toBBox);
5121
5130
  }, s;
5122
5131
  });
5123
5132
  })(Bs);
5124
- var lc = Bs.exports;
5125
- const cc = /* @__PURE__ */ Ii(Wl), hc = /* @__PURE__ */ Ii(nc);
5133
+ var ac = Bs.exports;
5134
+ const cc = /* @__PURE__ */ Ii(Wa), hc = /* @__PURE__ */ Ii(nc);
5126
5135
  function _t(t) {
5127
5136
  var e = [1 / 0, 1 / 0, -1 / 0, -1 / 0];
5128
5137
  return Ft(t, function(r) {
@@ -5134,7 +5143,7 @@ const uc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5134
5143
  __proto__: null,
5135
5144
  default: _t
5136
5145
  }, Symbol.toStringTag, { value: "Module" })), dc = /* @__PURE__ */ Ii(uc);
5137
- var Ue = lc, Fs = cc, Hs = hc, Ot = dc.default, fc = Hs.featureEach;
5146
+ var Ue = ac, Fs = cc, Hs = hc, Ot = dc.default, fc = Hs.featureEach;
5138
5147
  Hs.coordEach;
5139
5148
  Fs.polygon;
5140
5149
  var Yn = Fs.featureCollection;
@@ -5201,17 +5210,17 @@ var pc = Ki.exports;
5201
5210
  const gc = /* @__PURE__ */ Ti(pc);
5202
5211
  function Gi(t, e) {
5203
5212
  var r = {}, i = [];
5204
- if (t.type === "LineString" && (t = Ne(t)), e.type === "LineString" && (e = Ne(e)), t.type === "Feature" && e.type === "Feature" && t.geometry !== null && e.geometry !== null && t.geometry.type === "LineString" && e.geometry.type === "LineString" && t.geometry.coordinates.length === 2 && e.geometry.coordinates.length === 2) {
5213
+ if (t.type === "LineString" && (t = je(t)), e.type === "LineString" && (e = je(e)), t.type === "Feature" && e.type === "Feature" && t.geometry !== null && e.geometry !== null && t.geometry.type === "LineString" && e.geometry.type === "LineString" && t.geometry.coordinates.length === 2 && e.geometry.coordinates.length === 2) {
5205
5214
  var n = Wn(t, e);
5206
5215
  return n && i.push(n), ht(i);
5207
5216
  }
5208
5217
  var s = gc();
5209
5218
  return s.load(zn(e)), Or(zn(t), function(o) {
5210
- Or(s.search(o), function(l) {
5211
- var a = Wn(o, l);
5212
- if (a) {
5213
- var h = Dt(a).join(",");
5214
- r[h] || (r[h] = !0, i.push(a));
5219
+ Or(s.search(o), function(a) {
5220
+ var l = Wn(o, a);
5221
+ if (l) {
5222
+ var h = Dt(l).join(",");
5223
+ r[h] || (r[h] = !0, i.push(l));
5215
5224
  }
5216
5225
  });
5217
5226
  }), ht(i);
@@ -5222,19 +5231,19 @@ function Wn(t, e) {
5222
5231
  throw new Error("<intersects> line1 must only contain 2 coordinates");
5223
5232
  if (i.length !== 2)
5224
5233
  throw new Error("<intersects> line2 must only contain 2 coordinates");
5225
- var n = r[0][0], s = r[0][1], o = r[1][0], l = r[1][1], a = i[0][0], h = i[0][1], f = i[1][0], p = i[1][1], b = (p - h) * (o - n) - (f - a) * (l - s), y = (f - a) * (s - h) - (p - h) * (n - a), $ = (o - n) * (s - h) - (l - s) * (n - a);
5234
+ var n = r[0][0], s = r[0][1], o = r[1][0], a = r[1][1], l = i[0][0], h = i[0][1], f = i[1][0], p = i[1][1], b = (p - h) * (o - n) - (f - l) * (a - s), y = (f - l) * (s - h) - (p - h) * (n - l), $ = (o - n) * (s - h) - (a - s) * (n - l);
5226
5235
  if (b === 0)
5227
5236
  return null;
5228
- var C = y / b, G = $ / b;
5229
- if (C >= 0 && C <= 1 && G >= 0 && G <= 1) {
5230
- var B = n + C * (o - n), g = s + C * (l - s);
5237
+ var L = y / b, G = $ / b;
5238
+ if (L >= 0 && L <= 1 && G >= 0 && G <= 1) {
5239
+ var B = n + L * (o - n), g = s + L * (a - s);
5231
5240
  return ze([B, g]);
5232
5241
  }
5233
5242
  return null;
5234
5243
  }
5235
5244
  function wi(t, e) {
5236
5245
  e === void 0 && (e = {});
5237
- var r = Nt(t);
5246
+ var r = jt(t);
5238
5247
  switch (!e.properties && t.type === "Feature" && (e.properties = t.properties), r.type) {
5239
5248
  case "Polygon":
5240
5249
  return mc(r, e);
@@ -5246,12 +5255,12 @@ function wi(t, e) {
5246
5255
  }
5247
5256
  function mc(t, e) {
5248
5257
  e === void 0 && (e = {});
5249
- var r = Nt(t), i = r.coordinates, n = e.properties ? e.properties : t.type === "Feature" ? t.properties : {};
5258
+ var r = jt(t), i = r.coordinates, n = e.properties ? e.properties : t.type === "Feature" ? t.properties : {};
5250
5259
  return Us(i, n);
5251
5260
  }
5252
5261
  function yc(t, e) {
5253
5262
  e === void 0 && (e = {});
5254
- var r = Nt(t), i = r.coordinates, n = e.properties ? e.properties : t.type === "Feature" ? t.properties : {}, s = [];
5263
+ var r = jt(t), i = r.coordinates, n = e.properties ? e.properties : t.type === "Feature" ? t.properties : {}, s = [];
5255
5264
  return i.forEach(function(o) {
5256
5265
  s.push(Us(o, n));
5257
5266
  }), ht(s);
@@ -5329,16 +5338,16 @@ function wc(t, e) {
5329
5338
  return !0;
5330
5339
  }
5331
5340
  for (var s = 0, o = e.coordinates[0]; s < o.length; s++) {
5332
- var l = o[s];
5333
- if (Ie(l, t))
5341
+ var a = o[s];
5342
+ if (Ie(a, t))
5334
5343
  return !0;
5335
5344
  }
5336
- var a = Gi(wi(t), wi(e));
5337
- return a.features.length > 0;
5345
+ var l = Gi(wi(t), wi(e));
5346
+ return l.features.length > 0;
5338
5347
  }
5339
5348
  function $c(t, e, r) {
5340
- var i = r[0] - t[0], n = r[1] - t[1], s = e[0] - t[0], o = e[1] - t[1], l = i * o - n * s;
5341
- return l !== 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];
5349
+ var i = r[0] - t[0], n = r[1] - t[1], s = e[0] - t[0], o = e[1] - t[1], a = i * o - n * s;
5350
+ return a !== 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];
5342
5351
  }
5343
5352
  function _c(t, e) {
5344
5353
  return t[0] === e[0] && t[1] === e[1];
@@ -5363,25 +5372,25 @@ function Pr(t, e, r) {
5363
5372
  return !1;
5364
5373
  }
5365
5374
  function Sc(t, e, r, i, n) {
5366
- var s = r[0], o = r[1], l = t[0], a = t[1], h = e[0], f = e[1], p = r[0] - l, b = r[1] - a, y = h - l, $ = f - a, C = p * $ - b * y;
5375
+ var s = r[0], o = r[1], a = t[0], l = t[1], h = e[0], f = e[1], p = r[0] - a, b = r[1] - l, y = h - a, $ = f - l, L = p * $ - b * y;
5367
5376
  if (n !== null) {
5368
- if (Math.abs(C) > n)
5377
+ if (Math.abs(L) > n)
5369
5378
  return !1;
5370
- } else if (C !== 0)
5379
+ } else if (L !== 0)
5371
5380
  return !1;
5372
5381
  if (i) {
5373
5382
  if (i === "start")
5374
- return Math.abs(y) >= Math.abs($) ? y > 0 ? l < s && s <= h : h <= s && s < l : $ > 0 ? a < o && o <= f : f <= o && o < a;
5383
+ return Math.abs(y) >= Math.abs($) ? y > 0 ? a < s && s <= h : h <= s && s < a : $ > 0 ? l < o && o <= f : f <= o && o < l;
5375
5384
  if (i === "end")
5376
- return Math.abs(y) >= Math.abs($) ? y > 0 ? l <= s && s < h : h < s && s <= l : $ > 0 ? a <= o && o < f : f < o && o <= a;
5385
+ return Math.abs(y) >= Math.abs($) ? y > 0 ? a <= s && s < h : h < s && s <= a : $ > 0 ? l <= o && o < f : f < o && o <= l;
5377
5386
  if (i === "both")
5378
- return Math.abs(y) >= Math.abs($) ? y > 0 ? l < s && s < h : h < s && s < l : $ > 0 ? a < o && o < f : f < o && o < a;
5387
+ return Math.abs(y) >= Math.abs($) ? y > 0 ? a < s && s < h : h < s && s < a : $ > 0 ? l < o && o < f : f < o && o < l;
5379
5388
  } else
5380
- return Math.abs(y) >= Math.abs($) ? y > 0 ? l <= s && s <= h : h <= s && s <= l : $ > 0 ? a <= o && o <= f : f <= o && o <= a;
5389
+ return Math.abs(y) >= Math.abs($) ? y > 0 ? a <= s && s <= h : h <= s && s <= a : $ > 0 ? l <= o && o <= f : f <= o && o <= l;
5381
5390
  return !1;
5382
5391
  }
5383
5392
  function Ac(t, e) {
5384
- var r = Nt(t), i = Nt(e), n = r.type, s = i.type;
5393
+ var r = jt(t), i = jt(e), n = r.type, s = i.type;
5385
5394
  switch (n) {
5386
5395
  case "Point":
5387
5396
  switch (s) {
@@ -5403,14 +5412,14 @@ function Ac(t, e) {
5403
5412
  return Pc(r, i);
5404
5413
  case "Polygon":
5405
5414
  case "MultiPolygon":
5406
- return Cc(r, i);
5415
+ return Lc(r, i);
5407
5416
  default:
5408
5417
  throw new Error("feature2 " + s + " geometry not supported");
5409
5418
  }
5410
5419
  case "LineString":
5411
5420
  switch (s) {
5412
5421
  case "LineString":
5413
- return Lc(r, i);
5422
+ return Cc(r, i);
5414
5423
  case "Polygon":
5415
5424
  case "MultiPolygon":
5416
5425
  return kc(r, i);
@@ -5455,7 +5464,7 @@ function Pc(t, e) {
5455
5464
  }
5456
5465
  return r;
5457
5466
  }
5458
- function Cc(t, e) {
5467
+ function Lc(t, e) {
5459
5468
  for (var r = !0, i = !1, n = 0; n < t.coordinates.length; n++) {
5460
5469
  if (i = Ie(t.coordinates[1], e), !i) {
5461
5470
  r = !1;
@@ -5467,7 +5476,7 @@ function Cc(t, e) {
5467
5476
  }
5468
5477
  return r && i;
5469
5478
  }
5470
- function Lc(t, e) {
5479
+ function Cc(t, e) {
5471
5480
  for (var r = 0; r < t.coordinates.length; r++)
5472
5481
  if (!Pr(t.coordinates[r], e))
5473
5482
  return !1;
@@ -5512,7 +5521,7 @@ var Ic = Object.defineProperty, Dc = Object.getOwnPropertyDescriptor, or = (t, e
5512
5521
  (o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
5513
5522
  return i && n && Ic(e, r, n), n;
5514
5523
  };
5515
- const Nc = (t, e) => e ? Ec(t, e) : !0, jc = (t, e) => e ? Ac(t, e) : !0;
5524
+ const jc = (t, e) => e ? Ec(t, e) : !0, Nc = (t, e) => e ? Ac(t, e) : !0;
5516
5525
  let $i = class extends _e {
5517
5526
  reset() {
5518
5527
  Bt(this.filterObject), this.renderRoot.querySelector(
@@ -5524,20 +5533,20 @@ let $i = class extends _e {
5524
5533
  return this;
5525
5534
  }
5526
5535
  render() {
5527
- return fe(
5536
+ return de(
5528
5537
  this.filterObject,
5529
5538
  () => {
5530
5539
  var t;
5531
- return V`
5540
+ return X`
5532
5541
  <form style="display: inline">
5533
5542
  ${Kt(
5534
5543
  ["intersects", "within"],
5535
- (e) => V`
5544
+ (e) => X`
5536
5545
  <label>
5537
5546
  <input
5538
5547
  type="radio"
5539
5548
  name="mode"
5540
- .checked="${this.filterObject.state.mode === e || ae}
5549
+ .checked="${this.filterObject.state.mode === e || oe}
5541
5550
  "
5542
5551
  value="${e}"
5543
5552
  @click="${() => {
@@ -5573,9 +5582,9 @@ or([
5573
5582
  $i = or([
5574
5583
  Re("eox-itemfilter-spatial")
5575
5584
  ], $i);
5576
- let Cr = class extends _e {
5585
+ let Lr = class extends _e {
5577
5586
  render() {
5578
- return V`<eox-map part="map" style="height: 400px"></eox-map>`;
5587
+ return X`<eox-map part="map" style="height: 400px"></eox-map>`;
5579
5588
  }
5580
5589
  firstUpdated() {
5581
5590
  this.setup();
@@ -5664,13 +5673,13 @@ let Cr = class extends _e {
5664
5673
  };
5665
5674
  or([
5666
5675
  J()
5667
- ], Cr.prototype, "geometry", 2);
5676
+ ], Lr.prototype, "geometry", 2);
5668
5677
  or([
5669
5678
  Ke()
5670
- ], Cr.prototype, "eoxMap", 2);
5671
- Cr = or([
5679
+ ], Lr.prototype, "eoxMap", 2);
5680
+ Lr = or([
5672
5681
  Re("eox-itemfilter-spatial-filter")
5673
- ], Cr);
5682
+ ], Lr);
5674
5683
  var Bc = Object.defineProperty, Fc = Object.getOwnPropertyDescriptor, Ws = (t, e, r, i) => {
5675
5684
  for (var n = i > 1 ? void 0 : i ? Fc(e, r) : e, s = t.length - 1, o; s >= 0; s--)
5676
5685
  (o = t[s]) && (n = (i ? o(e, r, n) : o(n)) || n);
@@ -5696,9 +5705,9 @@ let _i = class extends _e {
5696
5705
  return this;
5697
5706
  }
5698
5707
  render() {
5699
- return fe(
5708
+ return de(
5700
5709
  this.filterObject,
5701
- () => V`
5710
+ () => X`
5702
5711
  <style>
5703
5712
  input {
5704
5713
  max-height: 100%;
@@ -5741,12 +5750,12 @@ let ut = class extends _e {
5741
5750
  };
5742
5751
  }
5743
5752
  _handleKeyboard(t) {
5744
- var s, o, l, a, h, f;
5753
+ var s, o, a, l, h, f;
5745
5754
  if (this.clientHeight === 0)
5746
5755
  return;
5747
5756
  const e = this.items.find((p) => p._inProgress), r = (e == null ? void 0 : e.type) === "text" && (e == null ? void 0 : e.dirty), i = this.renderRoot.querySelector(
5748
5757
  "#inline-input"
5749
- ), n = (f = (h = (a = (l = (o = (s = this.renderRoot) == null ? void 0 : s.querySelector("[data-filter]")) == null ? void 0 : o.querySelector("eox-autocomplete")) == null ? void 0 : l.renderRoot) == null ? void 0 : a.querySelector("eox-selectionlist")) == null ? void 0 : h.renderRoot) == null ? void 0 : f.querySelector("li.highlighted");
5758
+ ), n = (f = (h = (l = (a = (o = (s = this.renderRoot) == null ? void 0 : s.querySelector("[data-filter]")) == null ? void 0 : o.querySelector("eox-autocomplete")) == null ? void 0 : a.renderRoot) == null ? void 0 : l.querySelector("eox-selectionlist")) == null ? void 0 : h.renderRoot) == null ? void 0 : f.querySelector("li.highlighted");
5750
5759
  if (t == "Enter" && n && i.selectionStart && (n.querySelector("input[type=checkbox]").dispatchEvent(new Event("change")), i.selectionStart = 0, i.value = "", i.focus()), ["Escape", "Space"].includes(t) || t == "Enter" && r) {
5751
5760
  e && (delete e._inProgress, this.requestUpdate(), this.inputText = "", this.renderRoot.querySelector("input").value = "", this.renderRoot.querySelector("input").focus()), this.renderRoot.querySelector("[slot=content]").classList.remove("hidden");
5752
5761
  return;
@@ -5767,14 +5776,14 @@ let ut = class extends _e {
5767
5776
  ), window.removeEventListener("click", this._clickOutsideListener);
5768
5777
  }
5769
5778
  render() {
5770
- return V`
5779
+ return X`
5771
5780
  <style>
5772
5781
  :host,
5773
5782
  .container {
5774
5783
  display: flex;
5775
5784
  }
5776
- ${this.unstyled ? ae : V`
5777
- ${Ni} :host { position: relative; } .container { width: 100%;
5785
+ ${this.unstyled ? oe : X`
5786
+ ${ji} :host { position: relative; } .container { width: 100%;
5778
5787
  position: relative; border: 1px solid #00417066; border-radius:
5779
5788
  4px; height: 24px; padding: 5px; flex: 1; justify-content:
5780
5789
  space-between; cursor: text; transition: all 0.2s ease-in-out;
@@ -5832,9 +5841,9 @@ let ut = class extends _e {
5832
5841
  }}
5833
5842
  />
5834
5843
  <div slot="content">
5835
- ${fe(
5844
+ ${de(
5836
5845
  !this.items.find((t) => t._inProgress),
5837
- () => V`
5846
+ () => X`
5838
5847
  <eox-selectionlist
5839
5848
  .filter=${this.inputText}
5840
5849
  .idProperty=${this.idProperty}
@@ -5869,10 +5878,10 @@ let ut = class extends _e {
5869
5878
  </eox-selectionlist>
5870
5879
  `
5871
5880
  )}
5872
- ${fe(
5881
+ ${de(
5873
5882
  this.items.find((t) => t._inProgress),
5874
5883
  () => $r`
5875
- <eox-itemfilter-${Ct(
5884
+ <eox-itemfilter-${Lt(
5876
5885
  this.items.find((t) => t._inProgress).type
5877
5886
  )}
5878
5887
  data-filter=${this.items.find((t) => t._inProgress).id}
@@ -5886,7 +5895,7 @@ let ut = class extends _e {
5886
5895
  @click=${(t) => {
5887
5896
  t.stopPropagation();
5888
5897
  }}
5889
- ></eox-itemfilter-${Ct(
5898
+ ></eox-itemfilter-${Lt(
5890
5899
  this.items.find((t) => t._inProgress).type
5891
5900
  )}>
5892
5901
  `
@@ -5895,9 +5904,9 @@ let ut = class extends _e {
5895
5904
  </eox-dropdown>
5896
5905
  </div>
5897
5906
  </div>
5898
- ${fe(
5907
+ ${de(
5899
5908
  this.items.filter((t) => t.stringifiedState || t._inProgress).length > 0,
5900
- () => V`
5909
+ () => X`
5901
5910
  <div class="button-container">
5902
5911
  <button
5903
5912
  class="icon"
@@ -5964,7 +5973,7 @@ function Vs(t) {
5964
5973
  function Xc(t) {
5965
5974
  return Vs(t) && t !== null;
5966
5975
  }
5967
- function Le(t) {
5976
+ function Ce(t) {
5968
5977
  return t != null;
5969
5978
  }
5970
5979
  function gi(t) {
@@ -6017,23 +6026,23 @@ function Ei(t) {
6017
6026
  }
6018
6027
  function eh(t, e) {
6019
6028
  let r = [], i = !1;
6020
- const n = (s, o, l) => {
6021
- if (Le(s))
6022
- if (!o[l])
6029
+ const n = (s, o, a) => {
6030
+ if (Ce(s))
6031
+ if (!o[a])
6023
6032
  r.push(s);
6024
6033
  else {
6025
- let a = o[l];
6026
- const h = s[a];
6027
- if (!Le(h))
6034
+ let l = o[a];
6035
+ const h = s[l];
6036
+ if (!Ce(h))
6028
6037
  return;
6029
- if (l === o.length - 1 && (Ye(h) || Xs(h) || Wc(h)))
6038
+ if (a === o.length - 1 && (Ye(h) || Xs(h) || Wc(h)))
6030
6039
  r.push(Yc(h));
6031
6040
  else if (tt(h)) {
6032
6041
  i = !0;
6033
6042
  for (let f = 0, p = h.length; f < p; f += 1)
6034
- n(h[f], o, l + 1);
6043
+ n(h[f], o, a + 1);
6035
6044
  } else
6036
- o.length && n(h, o, l + 1);
6045
+ o.length && n(h, o, a + 1);
6037
6046
  }
6038
6047
  };
6039
6048
  return n(t, Ye(e) ? e.split(".") : e, 0), i ? r : r[0];
@@ -6103,8 +6112,8 @@ function oh(t = 1, e = 3) {
6103
6112
  const s = n.match(sh).length;
6104
6113
  if (r.has(s))
6105
6114
  return r.get(s);
6106
- const o = 1 / Math.pow(s, 0.5 * t), l = parseFloat(Math.round(o * i) / i);
6107
- return r.set(s, l), l;
6115
+ const o = 1 / Math.pow(s, 0.5 * t), a = parseFloat(Math.round(o * i) / i);
6116
+ return r.set(s, a), a;
6108
6117
  },
6109
6118
  clear() {
6110
6119
  r.clear();
@@ -6154,7 +6163,7 @@ class Ji {
6154
6163
  return this.records.length;
6155
6164
  }
6156
6165
  _addString(e, r) {
6157
- if (!Le(e) || gi(e))
6166
+ if (!Ce(e) || gi(e))
6158
6167
  return;
6159
6168
  let i = {
6160
6169
  v: e,
@@ -6167,35 +6176,35 @@ class Ji {
6167
6176
  let i = { i: r, $: {} };
6168
6177
  this.keys.forEach((n, s) => {
6169
6178
  let o = n.getFn ? n.getFn(e) : this.getFn(e, n.path);
6170
- if (Le(o)) {
6179
+ if (Ce(o)) {
6171
6180
  if (tt(o)) {
6172
- let l = [];
6173
- const a = [{ nestedArrIndex: -1, value: o }];
6174
- for (; a.length; ) {
6175
- const { nestedArrIndex: h, value: f } = a.pop();
6176
- if (Le(f))
6181
+ let a = [];
6182
+ const l = [{ nestedArrIndex: -1, value: o }];
6183
+ for (; l.length; ) {
6184
+ const { nestedArrIndex: h, value: f } = l.pop();
6185
+ if (Ce(f))
6177
6186
  if (Ye(f) && !gi(f)) {
6178
6187
  let p = {
6179
6188
  v: f,
6180
6189
  i: h,
6181
6190
  n: this.norm.get(f)
6182
6191
  };
6183
- l.push(p);
6192
+ a.push(p);
6184
6193
  } else
6185
6194
  tt(f) && f.forEach((p, b) => {
6186
- a.push({
6195
+ l.push({
6187
6196
  nestedArrIndex: b,
6188
6197
  value: p
6189
6198
  });
6190
6199
  });
6191
6200
  }
6192
- i.$[s] = l;
6201
+ i.$[s] = a;
6193
6202
  } else if (Ye(o) && !gi(o)) {
6194
- let l = {
6203
+ let a = {
6195
6204
  v: o,
6196
6205
  n: this.norm.get(o)
6197
6206
  };
6198
- i.$[s] = l;
6207
+ i.$[s] = a;
6199
6208
  }
6200
6209
  }
6201
6210
  }), this.records.push(i);
@@ -6211,7 +6220,7 @@ function Js(t, e, { getFn: r = K.getFn, fieldNormWeight: i = K.fieldNormWeight }
6211
6220
  const n = new Ji({ getFn: r, fieldNormWeight: i });
6212
6221
  return n.setKeys(t.map(Gs)), n.setSources(e), n.create(), n;
6213
6222
  }
6214
- function ah(t, { getFn: e = K.getFn, fieldNormWeight: r = K.fieldNormWeight } = {}) {
6223
+ function lh(t, { getFn: e = K.getFn, fieldNormWeight: r = K.fieldNormWeight } = {}) {
6215
6224
  const { keys: i, records: n } = t, s = new Ji({ getFn: e, fieldNormWeight: r });
6216
6225
  return s.setKeys(i), s.setIndexRecords(n), s;
6217
6226
  }
@@ -6225,14 +6234,14 @@ function xr(t, {
6225
6234
  const o = e / t.length;
6226
6235
  if (s)
6227
6236
  return o;
6228
- const l = Math.abs(i - r);
6229
- return n ? o + l / n : l ? 1 : o;
6237
+ const a = Math.abs(i - r);
6238
+ return n ? o + a / n : a ? 1 : o;
6230
6239
  }
6231
- function lh(t = [], e = K.minMatchCharLength) {
6240
+ function ah(t = [], e = K.minMatchCharLength) {
6232
6241
  let r = [], i = -1, n = -1, s = 0;
6233
6242
  for (let o = t.length; s < o; s += 1) {
6234
- let l = t[s];
6235
- l && i === -1 ? i = s : !l && i !== -1 && (n = s - 1, n - i + 1 >= e && r.push([i, n]), i = -1);
6243
+ let a = t[s];
6244
+ a && i === -1 ? i = s : !a && i !== -1 && (n = s - 1, n - i + 1 >= e && r.push([i, n]), i = -1);
6236
6245
  }
6237
6246
  return t[s - 1] && s - i >= e && r.push([i, s - 1]), r;
6238
6247
  }
@@ -6242,15 +6251,15 @@ function ch(t, e, r, {
6242
6251
  distance: n = K.distance,
6243
6252
  threshold: s = K.threshold,
6244
6253
  findAllMatches: o = K.findAllMatches,
6245
- minMatchCharLength: l = K.minMatchCharLength,
6246
- includeMatches: a = K.includeMatches,
6254
+ minMatchCharLength: a = K.minMatchCharLength,
6255
+ includeMatches: l = K.includeMatches,
6247
6256
  ignoreLocation: h = K.ignoreLocation
6248
6257
  } = {}) {
6249
6258
  if (e.length > vt)
6250
6259
  throw new Error(Gc(vt));
6251
6260
  const f = e.length, p = t.length, b = Math.max(0, Math.min(i, p));
6252
6261
  let y = s, $ = b;
6253
- const C = l > 1 || a, G = C ? Array(p) : [];
6262
+ const L = a > 1 || l, G = L ? Array(p) : [];
6254
6263
  let B;
6255
6264
  for (; (B = t.indexOf(e, $)) > -1; ) {
6256
6265
  let A = xr(e, {
@@ -6259,7 +6268,7 @@ function ch(t, e, r, {
6259
6268
  distance: n,
6260
6269
  ignoreLocation: h
6261
6270
  });
6262
- if (y = Math.min(A, y), $ = B + f, C) {
6271
+ if (y = Math.min(A, y), $ = B + f, L) {
6263
6272
  let k = 0;
6264
6273
  for (; k < f; )
6265
6274
  G[B + k] = 1, k += 1;
@@ -6283,7 +6292,7 @@ function ch(t, e, r, {
6283
6292
  te[I + 1] = (1 << A) - 1;
6284
6293
  for (let O = I; O >= H; O -= 1) {
6285
6294
  let P = O - 1, M = r[t.charAt(P)];
6286
- if (C && (G[P] = +!!M), te[O] = (te[O + 1] << 1 | 1) & M, A && (te[O] |= (g[O + 1] | g[O]) << 1 | 1 | g[O + 1]), te[O] & S && (m = xr(e, {
6295
+ if (L && (G[P] = +!!M), te[O] = (te[O + 1] << 1 | 1) & M, A && (te[O] |= (g[O + 1] | g[O]) << 1 | 1 | g[O + 1]), te[O] & S && (m = xr(e, {
6287
6296
  errors: A,
6288
6297
  currentLocation: P,
6289
6298
  expectedLocation: b,
@@ -6310,9 +6319,9 @@ function ch(t, e, r, {
6310
6319
  // Count exact matches (those with a score of 0) to be "almost" exact
6311
6320
  score: Math.max(1e-3, m)
6312
6321
  };
6313
- if (C) {
6314
- const A = lh(G, l);
6315
- A.length ? a && (E.indices = A) : E.isMatch = !1;
6322
+ if (L) {
6323
+ const A = ah(G, a);
6324
+ A.length ? l && (E.indices = A) : E.isMatch = !1;
6316
6325
  }
6317
6326
  return E;
6318
6327
  }
@@ -6331,8 +6340,8 @@ class Zs {
6331
6340
  distance: n = K.distance,
6332
6341
  includeMatches: s = K.includeMatches,
6333
6342
  findAllMatches: o = K.findAllMatches,
6334
- minMatchCharLength: l = K.minMatchCharLength,
6335
- isCaseSensitive: a = K.isCaseSensitive,
6343
+ minMatchCharLength: a = K.minMatchCharLength,
6344
+ isCaseSensitive: l = K.isCaseSensitive,
6336
6345
  ignoreLocation: h = K.ignoreLocation
6337
6346
  } = {}) {
6338
6347
  if (this.options = {
@@ -6341,10 +6350,10 @@ class Zs {
6341
6350
  distance: n,
6342
6351
  includeMatches: s,
6343
6352
  findAllMatches: o,
6344
- minMatchCharLength: l,
6345
- isCaseSensitive: a,
6353
+ minMatchCharLength: a,
6354
+ isCaseSensitive: l,
6346
6355
  ignoreLocation: h
6347
- }, this.pattern = a ? e : e.toLowerCase(), this.chunks = [], !this.pattern.length)
6356
+ }, this.pattern = l ? e : e.toLowerCase(), this.chunks = [], !this.pattern.length)
6348
6357
  return;
6349
6358
  const f = (b, y) => {
6350
6359
  this.chunks.push({
@@ -6359,8 +6368,8 @@ class Zs {
6359
6368
  for (; b < $; )
6360
6369
  f(this.pattern.substr(b, vt), b), b += vt;
6361
6370
  if (y) {
6362
- const C = p - vt;
6363
- f(this.pattern.substr(C), C);
6371
+ const L = p - vt;
6372
+ f(this.pattern.substr(L), L);
6364
6373
  }
6365
6374
  } else
6366
6375
  f(this.pattern, 0);
@@ -6378,18 +6387,18 @@ class Zs {
6378
6387
  location: n,
6379
6388
  distance: s,
6380
6389
  threshold: o,
6381
- findAllMatches: l,
6382
- minMatchCharLength: a,
6390
+ findAllMatches: a,
6391
+ minMatchCharLength: l,
6383
6392
  ignoreLocation: h
6384
6393
  } = this.options;
6385
6394
  let f = [], p = 0, b = !1;
6386
- this.chunks.forEach(({ pattern: $, alphabet: C, startIndex: G }) => {
6387
- const { isMatch: B, score: g, indices: m } = ch(e, $, C, {
6395
+ this.chunks.forEach(({ pattern: $, alphabet: L, startIndex: G }) => {
6396
+ const { isMatch: B, score: g, indices: m } = ch(e, $, L, {
6388
6397
  location: n + G,
6389
6398
  distance: s,
6390
6399
  threshold: o,
6391
- findAllMatches: l,
6392
- minMatchCharLength: a,
6400
+ findAllMatches: a,
6401
+ minMatchCharLength: l,
6393
6402
  includeMatches: i,
6394
6403
  ignoreLocation: h
6395
6404
  });
@@ -6558,8 +6567,8 @@ class Qs extends dt {
6558
6567
  distance: n = K.distance,
6559
6568
  includeMatches: s = K.includeMatches,
6560
6569
  findAllMatches: o = K.findAllMatches,
6561
- minMatchCharLength: l = K.minMatchCharLength,
6562
- isCaseSensitive: a = K.isCaseSensitive,
6570
+ minMatchCharLength: a = K.minMatchCharLength,
6571
+ isCaseSensitive: l = K.isCaseSensitive,
6563
6572
  ignoreLocation: h = K.ignoreLocation
6564
6573
  } = {}) {
6565
6574
  super(e), this._bitapSearch = new Zs(e, {
@@ -6568,8 +6577,8 @@ class Qs extends dt {
6568
6577
  distance: n,
6569
6578
  includeMatches: s,
6570
6579
  findAllMatches: o,
6571
- minMatchCharLength: l,
6572
- isCaseSensitive: a,
6580
+ minMatchCharLength: a,
6581
+ isCaseSensitive: l,
6573
6582
  ignoreLocation: h
6574
6583
  });
6575
6584
  }
@@ -6626,17 +6635,17 @@ function bh(t, e = {}) {
6626
6635
  return t.split(vh).map((r) => {
6627
6636
  let i = r.trim().split(yh).filter((s) => s && !!s.trim()), n = [];
6628
6637
  for (let s = 0, o = i.length; s < o; s += 1) {
6629
- const l = i[s];
6630
- let a = !1, h = -1;
6631
- for (; !a && ++h < Zn; ) {
6638
+ const a = i[s];
6639
+ let l = !1, h = -1;
6640
+ for (; !l && ++h < Zn; ) {
6632
6641
  const f = Si[h];
6633
- let p = f.isMultiMatch(l);
6634
- p && (n.push(new f(p, e)), a = !0);
6642
+ let p = f.isMultiMatch(a);
6643
+ p && (n.push(new f(p, e)), l = !0);
6635
6644
  }
6636
- if (!a)
6645
+ if (!l)
6637
6646
  for (h = -1; ++h < Zn; ) {
6638
6647
  const f = Si[h];
6639
- let p = f.isSingleMatch(l);
6648
+ let p = f.isSingleMatch(a);
6640
6649
  if (p) {
6641
6650
  n.push(new f(p, e));
6642
6651
  break;
@@ -6654,8 +6663,8 @@ class wh {
6654
6663
  minMatchCharLength: n = K.minMatchCharLength,
6655
6664
  ignoreLocation: s = K.ignoreLocation,
6656
6665
  findAllMatches: o = K.findAllMatches,
6657
- location: l = K.location,
6658
- threshold: a = K.threshold,
6666
+ location: a = K.location,
6667
+ threshold: l = K.threshold,
6659
6668
  distance: h = K.distance
6660
6669
  } = {}) {
6661
6670
  this.query = null, this.options = {
@@ -6664,8 +6673,8 @@ class wh {
6664
6673
  minMatchCharLength: n,
6665
6674
  findAllMatches: o,
6666
6675
  ignoreLocation: s,
6667
- location: l,
6668
- threshold: a,
6676
+ location: a,
6677
+ threshold: l,
6669
6678
  distance: h
6670
6679
  }, this.pattern = r ? e : e.toLowerCase(), this.query = bh(this.pattern, this.options);
6671
6680
  }
@@ -6681,26 +6690,26 @@ class wh {
6681
6690
  };
6682
6691
  const { includeMatches: i, isCaseSensitive: n } = this.options;
6683
6692
  e = n ? e : e.toLowerCase();
6684
- let s = 0, o = [], l = 0;
6685
- for (let a = 0, h = r.length; a < h; a += 1) {
6686
- const f = r[a];
6693
+ let s = 0, o = [], a = 0;
6694
+ for (let l = 0, h = r.length; l < h; l += 1) {
6695
+ const f = r[l];
6687
6696
  o.length = 0, s = 0;
6688
6697
  for (let p = 0, b = f.length; p < b; p += 1) {
6689
- const y = f[p], { isMatch: $, indices: C, score: G } = y.search(e);
6698
+ const y = f[p], { isMatch: $, indices: L, score: G } = y.search(e);
6690
6699
  if ($) {
6691
- if (s += 1, l += G, i) {
6700
+ if (s += 1, a += G, i) {
6692
6701
  const B = y.constructor.type;
6693
- xh.has(B) ? o = [...o, ...C] : o.push(C);
6702
+ xh.has(B) ? o = [...o, ...L] : o.push(L);
6694
6703
  }
6695
6704
  } else {
6696
- l = 0, s = 0, o.length = 0;
6705
+ a = 0, s = 0, o.length = 0;
6697
6706
  break;
6698
6707
  }
6699
6708
  }
6700
6709
  if (s) {
6701
6710
  let p = {
6702
6711
  isMatch: !0,
6703
- score: l / s
6712
+ score: a / s
6704
6713
  };
6705
6714
  return i && (p.indices = o), p;
6706
6715
  }
@@ -6723,14 +6732,14 @@ function Mi(t, e) {
6723
6732
  }
6724
6733
  return new Zs(t, e);
6725
6734
  }
6726
- const Lr = {
6735
+ const Cr = {
6727
6736
  AND: "$and",
6728
6737
  OR: "$or"
6729
6738
  }, Oi = {
6730
6739
  PATH: "$path",
6731
6740
  PATTERN: "$val"
6732
- }, Pi = (t) => !!(t[Lr.AND] || t[Lr.OR]), _h = (t) => !!t[Oi.PATH], Eh = (t) => !tt(t) && Vs(t) && !Pi(t), Qn = (t) => ({
6733
- [Lr.AND]: Object.keys(t).map((e) => ({
6741
+ }, Pi = (t) => !!(t[Cr.AND] || t[Cr.OR]), _h = (t) => !!t[Oi.PATH], Eh = (t) => !tt(t) && Vs(t) && !Pi(t), Qn = (t) => ({
6742
+ [Cr.AND]: Object.keys(t).map((e) => ({
6734
6743
  [e]: t[e]
6735
6744
  }))
6736
6745
  });
@@ -6741,25 +6750,25 @@ function to(t, e, { auto: r = !0 } = {}) {
6741
6750
  if (!o && s.length > 1 && !Pi(n))
6742
6751
  return i(Qn(n));
6743
6752
  if (Eh(n)) {
6744
- const a = o ? n[Oi.PATH] : s[0], h = o ? n[Oi.PATTERN] : n[a];
6753
+ const l = o ? n[Oi.PATH] : s[0], h = o ? n[Oi.PATTERN] : n[l];
6745
6754
  if (!Ye(h))
6746
- throw new Error(Kc(a));
6755
+ throw new Error(Kc(l));
6747
6756
  const f = {
6748
- keyId: Ei(a),
6757
+ keyId: Ei(l),
6749
6758
  pattern: h
6750
6759
  };
6751
6760
  return r && (f.searcher = Mi(h, e)), f;
6752
6761
  }
6753
- let l = {
6762
+ let a = {
6754
6763
  children: [],
6755
6764
  operator: s[0]
6756
6765
  };
6757
- return s.forEach((a) => {
6758
- const h = n[a];
6766
+ return s.forEach((l) => {
6767
+ const h = n[l];
6759
6768
  tt(h) && h.forEach((f) => {
6760
- l.children.push(i(f));
6769
+ a.children.push(i(f));
6761
6770
  });
6762
- }), l;
6771
+ }), a;
6763
6772
  };
6764
6773
  return Pi(t) || (t = Qn(t)), i(t);
6765
6774
  }
@@ -6767,18 +6776,18 @@ function Sh(t, { ignoreFieldNorm: e = K.ignoreFieldNorm }) {
6767
6776
  t.forEach((r) => {
6768
6777
  let i = 1;
6769
6778
  r.matches.forEach(({ key: n, norm: s, score: o }) => {
6770
- const l = n ? n.weight : null;
6779
+ const a = n ? n.weight : null;
6771
6780
  i *= Math.pow(
6772
- o === 0 && l ? Number.EPSILON : o,
6773
- (l || 1) * (e ? 1 : s)
6781
+ o === 0 && a ? Number.EPSILON : o,
6782
+ (a || 1) * (e ? 1 : s)
6774
6783
  );
6775
6784
  }), r.score = i;
6776
6785
  });
6777
6786
  }
6778
6787
  function Ah(t, e) {
6779
6788
  const r = t.matches;
6780
- e.matches = [], Le(r) && r.forEach((i) => {
6781
- if (!Le(i.indices) || !i.indices.length)
6789
+ e.matches = [], Ce(r) && r.forEach((i) => {
6790
+ if (!Ce(i.indices) || !i.indices.length)
6782
6791
  return;
6783
6792
  const { indices: n, value: s } = i;
6784
6793
  let o = {
@@ -6797,13 +6806,13 @@ function Oh(t, e, {
6797
6806
  } = {}) {
6798
6807
  const n = [];
6799
6808
  return r && n.push(Ah), i && n.push(Mh), t.map((s) => {
6800
- const { idx: o } = s, l = {
6809
+ const { idx: o } = s, a = {
6801
6810
  item: e[o],
6802
6811
  refIndex: o
6803
6812
  };
6804
- return n.length && n.forEach((a) => {
6805
- a(s, l);
6806
- }), l;
6813
+ return n.length && n.forEach((l) => {
6814
+ l(s, a);
6815
+ }), a;
6807
6816
  });
6808
6817
  }
6809
6818
  class Ht {
@@ -6819,7 +6828,7 @@ class Ht {
6819
6828
  });
6820
6829
  }
6821
6830
  add(e) {
6822
- Le(e) && (this._docs.push(e), this._myIndex.add(e));
6831
+ Ce(e) && (this._docs.push(e), this._myIndex.add(e));
6823
6832
  }
6824
6833
  remove(e = () => !1) {
6825
6834
  const r = [];
@@ -6841,151 +6850,151 @@ class Ht {
6841
6850
  includeScore: n,
6842
6851
  shouldSort: s,
6843
6852
  sortFn: o,
6844
- ignoreFieldNorm: l
6853
+ ignoreFieldNorm: a
6845
6854
  } = this.options;
6846
- let a = Ye(e) ? Ye(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e);
6847
- return Sh(a, { ignoreFieldNorm: l }), s && a.sort(o), Xs(r) && r > -1 && (a = a.slice(0, r)), Oh(a, this._docs, {
6855
+ let l = Ye(e) ? Ye(this._docs[0]) ? this._searchStringList(e) : this._searchObjectList(e) : this._searchLogical(e);
6856
+ return Sh(l, { ignoreFieldNorm: a }), s && l.sort(o), Xs(r) && r > -1 && (l = l.slice(0, r)), Oh(l, this._docs, {
6848
6857
  includeMatches: i,
6849
6858
  includeScore: n
6850
6859
  });
6851
6860
  }
6852
6861
  _searchStringList(e) {
6853
6862
  const r = Mi(e, this.options), { records: i } = this._myIndex, n = [];
6854
- return i.forEach(({ v: s, i: o, n: l }) => {
6855
- if (!Le(s))
6863
+ return i.forEach(({ v: s, i: o, n: a }) => {
6864
+ if (!Ce(s))
6856
6865
  return;
6857
- const { isMatch: a, score: h, indices: f } = r.searchIn(s);
6858
- a && n.push({
6866
+ const { isMatch: l, score: h, indices: f } = r.searchIn(s);
6867
+ l && n.push({
6859
6868
  item: s,
6860
6869
  idx: o,
6861
- matches: [{ score: h, value: s, norm: l, indices: f }]
6870
+ matches: [{ score: h, value: s, norm: a, indices: f }]
6862
6871
  });
6863
6872
  }), n;
6864
6873
  }
6865
6874
  _searchLogical(e) {
6866
- const r = to(e, this.options), i = (l, a, h) => {
6867
- if (!l.children) {
6868
- const { keyId: p, searcher: b } = l, y = this._findMatches({
6875
+ const r = to(e, this.options), i = (a, l, h) => {
6876
+ if (!a.children) {
6877
+ const { keyId: p, searcher: b } = a, y = this._findMatches({
6869
6878
  key: this._keyStore.get(p),
6870
- value: this._myIndex.getValueForItemAtKeyId(a, p),
6879
+ value: this._myIndex.getValueForItemAtKeyId(l, p),
6871
6880
  searcher: b
6872
6881
  });
6873
6882
  return y && y.length ? [
6874
6883
  {
6875
6884
  idx: h,
6876
- item: a,
6885
+ item: l,
6877
6886
  matches: y
6878
6887
  }
6879
6888
  ] : [];
6880
6889
  }
6881
6890
  const f = [];
6882
- for (let p = 0, b = l.children.length; p < b; p += 1) {
6883
- const y = l.children[p], $ = i(y, a, h);
6891
+ for (let p = 0, b = a.children.length; p < b; p += 1) {
6892
+ const y = a.children[p], $ = i(y, l, h);
6884
6893
  if ($.length)
6885
6894
  f.push(...$);
6886
- else if (l.operator === Lr.AND)
6895
+ else if (a.operator === Cr.AND)
6887
6896
  return [];
6888
6897
  }
6889
6898
  return f;
6890
6899
  }, n = this._myIndex.records, s = {}, o = [];
6891
- return n.forEach(({ $: l, i: a }) => {
6892
- if (Le(l)) {
6893
- let h = i(r, l, a);
6894
- h.length && (s[a] || (s[a] = { idx: a, item: l, matches: [] }, o.push(s[a])), h.forEach(({ matches: f }) => {
6895
- s[a].matches.push(...f);
6900
+ return n.forEach(({ $: a, i: l }) => {
6901
+ if (Ce(a)) {
6902
+ let h = i(r, a, l);
6903
+ h.length && (s[l] || (s[l] = { idx: l, item: a, matches: [] }, o.push(s[l])), h.forEach(({ matches: f }) => {
6904
+ s[l].matches.push(...f);
6896
6905
  }));
6897
6906
  }
6898
6907
  }), o;
6899
6908
  }
6900
6909
  _searchObjectList(e) {
6901
6910
  const r = Mi(e, this.options), { keys: i, records: n } = this._myIndex, s = [];
6902
- return n.forEach(({ $: o, i: l }) => {
6903
- if (!Le(o))
6911
+ return n.forEach(({ $: o, i: a }) => {
6912
+ if (!Ce(o))
6904
6913
  return;
6905
- let a = [];
6914
+ let l = [];
6906
6915
  i.forEach((h, f) => {
6907
- a.push(
6916
+ l.push(
6908
6917
  ...this._findMatches({
6909
6918
  key: h,
6910
6919
  value: o[f],
6911
6920
  searcher: r
6912
6921
  })
6913
6922
  );
6914
- }), a.length && s.push({
6915
- idx: l,
6923
+ }), l.length && s.push({
6924
+ idx: a,
6916
6925
  item: o,
6917
- matches: a
6926
+ matches: l
6918
6927
  });
6919
6928
  }), s;
6920
6929
  }
6921
6930
  _findMatches({ key: e, value: r, searcher: i }) {
6922
- if (!Le(r))
6931
+ if (!Ce(r))
6923
6932
  return [];
6924
6933
  let n = [];
6925
6934
  if (tt(r))
6926
- r.forEach(({ v: s, i: o, n: l }) => {
6927
- if (!Le(s))
6935
+ r.forEach(({ v: s, i: o, n: a }) => {
6936
+ if (!Ce(s))
6928
6937
  return;
6929
- const { isMatch: a, score: h, indices: f } = i.searchIn(s);
6930
- a && n.push({
6938
+ const { isMatch: l, score: h, indices: f } = i.searchIn(s);
6939
+ l && n.push({
6931
6940
  score: h,
6932
6941
  key: e,
6933
6942
  value: s,
6934
6943
  idx: o,
6935
- norm: l,
6944
+ norm: a,
6936
6945
  indices: f
6937
6946
  });
6938
6947
  });
6939
6948
  else {
6940
- const { v: s, n: o } = r, { isMatch: l, score: a, indices: h } = i.searchIn(s);
6941
- l && n.push({ score: a, key: e, value: s, norm: o, indices: h });
6949
+ const { v: s, n: o } = r, { isMatch: a, score: l, indices: h } = i.searchIn(s);
6950
+ a && n.push({ score: l, key: e, value: s, norm: o, indices: h });
6942
6951
  }
6943
6952
  return n;
6944
6953
  }
6945
6954
  }
6946
6955
  Ht.version = "7.0.0";
6947
6956
  Ht.createIndex = Js;
6948
- Ht.parseIndex = ah;
6957
+ Ht.parseIndex = lh;
6949
6958
  Ht.config = K;
6950
6959
  Ht.parseQuery = to;
6951
6960
  $h(wh);
6952
6961
  const Ph = (t, e = "highlight", r = "title") => {
6953
- const i = (s, o, l) => {
6954
- const a = o.split(".");
6962
+ const i = (s, o, a) => {
6963
+ const l = o.split(".");
6955
6964
  let h;
6956
- for (h = 0; h < a.length - 1; h++)
6957
- s = s[a[h]];
6958
- s[a[h]] = l;
6965
+ for (h = 0; h < l.length - 1; h++)
6966
+ s = s[l[h]];
6967
+ s[l[h]] = a;
6959
6968
  }, n = (s, o = []) => {
6960
- let l = "", a = 0;
6969
+ let a = "", l = 0;
6961
6970
  return o.forEach((h) => {
6962
6971
  const f = h[1] + 1;
6963
- l += [
6964
- s.substring(a, h[0]),
6972
+ a += [
6973
+ s.substring(l, h[0]),
6965
6974
  `<mark class="${e}">`,
6966
6975
  s.substring(h[0], f),
6967
6976
  "</mark>"
6968
- ].join(""), a = f;
6969
- }), l += s.substring(a), l;
6977
+ ].join(""), l = f;
6978
+ }), a += s.substring(l), a;
6970
6979
  };
6971
6980
  return t.filter(({ matches: s }) => s && s.length).map(({ item: s, matches: o }) => {
6972
- const l = {};
6973
- for (const [a, h] of Object.entries(s))
6974
- l[a] = h;
6975
- return o.forEach((a) => {
6976
- a.key === r && i(
6977
- l,
6978
- a.key,
6981
+ const a = {};
6982
+ for (const [l, h] of Object.entries(s))
6983
+ a[l] = h;
6984
+ return o.forEach((l) => {
6985
+ l.key === r && i(
6986
+ a,
6987
+ l.key,
6979
6988
  n(
6980
- a.value,
6981
- a.indices
6989
+ l.value,
6990
+ l.indices
6982
6991
  )
6983
6992
  );
6984
- }), l;
6993
+ }), a;
6985
6994
  });
6986
6995
  };
6987
6996
  let ro;
6988
- const Ch = (t, e) => {
6997
+ const Lh = (t, e) => {
6989
6998
  ro = new Ht(t, {
6990
6999
  // minMatchCharLength: 3,
6991
7000
  // location: 0,
@@ -6995,68 +7004,68 @@ const Ch = (t, e) => {
6995
7004
  useExtendedSearch: !0,
6996
7005
  ...e
6997
7006
  });
6998
- }, Lh = async (t, e, r) => {
7007
+ }, Ch = async (t, e, r) => {
6999
7008
  const i = Object.entries(e).filter(
7000
- ([, l]) => l.type === "text" || l.type === "select" || l.type === "multiselect"
7001
- ).reduce((l, [a, h]) => {
7009
+ ([, a]) => a.type === "text" || a.type === "select" || a.type === "multiselect"
7010
+ ).reduce((a, [l, h]) => {
7002
7011
  const f = "$or", p = [], b = (y, $) => {
7003
- const C = {};
7004
- h.type === "text" ? C[y] = `${$}` : C[a] = `="${y}"`, p.push(C);
7012
+ const L = {};
7013
+ h.type === "text" ? L[y] = `${$}` : L[l] = `="${y}"`, p.push(L);
7005
7014
  };
7006
- return Object.entries(h.state).filter(([, y]) => y).forEach(([y, $]) => b(y, $)), p.length > 0 && l.push({
7015
+ return Object.entries(h.state).filter(([, y]) => y).forEach(([y, $]) => b(y, $)), p.length > 0 && a.push({
7007
7016
  [f]: p
7008
- }), l;
7017
+ }), a;
7009
7018
  }, []);
7010
7019
  let n;
7011
7020
  if (!(i.length > 0) && r.matchAllWhenEmpty !== !1)
7012
7021
  n = t;
7013
7022
  else {
7014
- const l = {
7023
+ const a = {
7015
7024
  $and: [...i]
7016
- }, a = ro.search(l);
7017
- n = r.enableHighlighting ? Ph(a, "highlight", r.titleProperty) : a.map((h) => h.item);
7025
+ }, l = ro.search(a);
7026
+ n = r.enableHighlighting ? Ph(l, "highlight", r.titleProperty) : l.map((h) => h.item);
7018
7027
  }
7019
- const s = Object.entries(e).filter(([, l]) => l.type === "range").reduce((l, [a, h]) => (l[a] = {
7028
+ const s = Object.entries(e).filter(([, a]) => a.type === "range").reduce((a, [l, h]) => (a[l] = {
7020
7029
  min: h.state.min,
7021
7030
  max: h.state.max,
7022
7031
  format: h.format
7023
- }, l), {});
7032
+ }, a), {});
7024
7033
  if (Object.keys(s).length > 0) {
7025
- const l = [];
7026
- for (let a = 0; a < n.length; a++) {
7034
+ const a = [];
7035
+ for (let l = 0; l < n.length; l++) {
7027
7036
  const h = {};
7028
7037
  for (const [f, p] of Object.entries(s)) {
7029
7038
  const b = (y) => p.format === "date" ? kt(y).unix() : y;
7030
- Object.prototype.hasOwnProperty.call(n[a], f) ? Array.isArray(n[a][f]) ? h[f] = // @ts-ignore
7031
- s[f].min <= b(n[a][f][1]) && // @ts-ignore
7032
- b(n[a][f][0]) <= s[f].max : /* @ts-ignore */ b(n[a][f]) >= s[f].min && // @ts-ignore
7033
- b(n[a][f]) <= s[f].max ? h[f] = !0 : h[f] = !1 : h[f] = !0;
7039
+ Object.prototype.hasOwnProperty.call(n[l], f) ? Array.isArray(n[l][f]) ? h[f] = // @ts-ignore
7040
+ s[f].min <= b(n[l][f][1]) && // @ts-ignore
7041
+ b(n[l][f][0]) <= s[f].max : /* @ts-ignore */ b(n[l][f]) >= s[f].min && // @ts-ignore
7042
+ b(n[l][f]) <= s[f].max ? h[f] = !0 : h[f] = !1 : h[f] = !0;
7034
7043
  }
7035
- Object.values(h).every((f) => !!f) && l.push(n[a]);
7044
+ Object.values(h).every((f) => !!f) && a.push(n[l]);
7036
7045
  }
7037
- n = [...l];
7046
+ n = [...a];
7038
7047
  }
7039
- const o = Object.entries(e).filter(([, l]) => l.type === "spatial").reduce((l, [a, h]) => (l[a] = {
7048
+ const o = Object.entries(e).filter(([, a]) => a.type === "spatial").reduce((a, [l, h]) => (a[l] = {
7040
7049
  geometry: h.state.geometry,
7041
7050
  mode: h.state.mode
7042
- }, l), {});
7043
- if (Object.values(o).map((l) => l.geometry).filter((l) => !!l).length > 0) {
7044
- const l = [];
7045
- for (let a = 0; a < n.length; a++) {
7051
+ }, a), {});
7052
+ if (Object.values(o).map((a) => a.geometry).filter((a) => !!a).length > 0) {
7053
+ const a = [];
7054
+ for (let l = 0; l < n.length; l++) {
7046
7055
  const h = {};
7047
7056
  for (const f of Object.keys(o)) {
7048
7057
  const p = o[f].mode || "within";
7049
- Object.prototype.hasOwnProperty.call(n[a], f) && (p === "within" ? (
7058
+ Object.prototype.hasOwnProperty.call(n[l], f) && (p === "within" ? (
7050
7059
  // @ts-ignore
7051
- jc(n[a][f], o[f].geometry)
7060
+ Nc(n[l][f], o[f].geometry)
7052
7061
  ) : (
7053
7062
  // @ts-ignore
7054
- Nc(n[a][f], o[f].geometry)
7063
+ jc(n[l][f], o[f].geometry)
7055
7064
  )) ? h[f] = !0 : h[f] = !1;
7056
7065
  }
7057
- Object.values(h).every((f) => !!f) && l.push(n[a]);
7066
+ Object.values(h).every((f) => !!f) && a.push(n[l]);
7058
7067
  }
7059
- n = [...l];
7068
+ n = [...a];
7060
7069
  }
7061
7070
  return n;
7062
7071
  }, kh = async (t, e, r) => (await (await fetch(`${r.externalFilter(t, e)}`)).json()).features;
@@ -7072,7 +7081,7 @@ class es {
7072
7081
  }, this.showResults = !0, this.titleProperty = "title", this.expandMultipleFilters = !0, this.expandResults = !0, this.expandMultipleResults = !0;
7073
7082
  }
7074
7083
  }
7075
- let Ve = class extends Ea {
7084
+ let Ve = class extends El {
7076
7085
  constructor() {
7077
7086
  super(...arguments), this._resultAggregation = [], this.filters = {}, this.items = [], this._config = new es(), this.apply = (t) => {
7078
7087
  this.items = t.map((r, i) => ({
@@ -7141,7 +7150,7 @@ let Ve = class extends Ea {
7141
7150
  r.type === "text" ? r.keys.forEach((i) => {
7142
7151
  e.includes(i) || e.push(i);
7143
7152
  }) : (r.type === "select" || r.type === "multiselect") && (e.includes(r.key) || e.push(r.key));
7144
- }), Ch(this.items, {
7153
+ }), Lh(this.items, {
7145
7154
  keys: e,
7146
7155
  ...this._config.fuseConfig
7147
7156
  }), this.search();
@@ -7159,7 +7168,7 @@ let Ve = class extends Ea {
7159
7168
  }
7160
7169
  async search() {
7161
7170
  let t;
7162
- this.config.externalFilter ? t = await kh(this.items, this.filters, this._config) : t = await Lh(this.items, this.filters, this._config), this.results = this.sortResults(t), this._config.onFilter(this.results, this.filters);
7171
+ this.config.externalFilter ? t = await kh(this.items, this.filters, this._config) : t = await Ch(this.items, this.filters, this._config), this.results = this.sortResults(t), this._config.onFilter(this.results, this.filters);
7163
7172
  }
7164
7173
  aggregateResults(t, e) {
7165
7174
  return t.filter((r) => {
@@ -7200,19 +7209,19 @@ let Ve = class extends Ea {
7200
7209
  }
7201
7210
  }
7202
7211
  render() {
7203
- return V`
7212
+ return X`
7204
7213
  <style>
7205
7214
  ${Di}
7206
- ${!this.unstyled && ji}
7215
+ ${!this.unstyled && Ni}
7207
7216
  ${this.styleOverride}
7208
7217
  </style>
7209
7218
  <form
7210
7219
  id="itemfilter"
7211
7220
  @submit="${(t) => t.preventDefault()}"
7212
7221
  >
7213
- ${fe(
7222
+ ${de(
7214
7223
  this._config.inlineMode,
7215
- () => V`
7224
+ () => X`
7216
7225
  <eox-itemfilter-inline
7217
7226
  .items=${Object.values(this.filters)}
7218
7227
  .unstyled=${this.unstyled}
@@ -7220,16 +7229,16 @@ let Ve = class extends Ea {
7220
7229
  >
7221
7230
  </eox-itemfilter-inline>
7222
7231
  `,
7223
- () => V`
7224
- ${fe(
7232
+ () => X`
7233
+ ${de(
7225
7234
  this._config.filterProperties.length,
7226
- () => V`
7235
+ () => X`
7227
7236
  <section
7228
- class="${this.config.inlineMode ? "inline" : ae}"
7237
+ class="${this.config.inlineMode ? "inline" : oe}"
7229
7238
  >
7230
- ${fe(
7239
+ ${de(
7231
7240
  !this.config.inlineMode,
7232
- () => V`
7241
+ () => X`
7233
7242
  <slot name="filterstitle"
7234
7243
  ><h4 style="margin-top: 8px">Filters</h4></slot
7235
7244
  >
@@ -7241,13 +7250,13 @@ let Ve = class extends Ea {
7241
7250
  (t) => $r`
7242
7251
  <li>
7243
7252
  ${t.featured ? $r`
7244
- <eox-itemfilter-${Ct(t.type)}
7253
+ <eox-itemfilter-${Lt(t.type)}
7245
7254
  slot="filter"
7246
7255
  data-type="filter"
7247
7256
  .filterObject=${t}
7248
7257
  .unstyled=${this.unstyled}
7249
7258
  @filter="${() => this.search()}"
7250
- ></eox-itemfilter-${Ct(
7259
+ ></eox-itemfilter-${Lt(
7251
7260
  t.type
7252
7261
  )}>
7253
7262
  ` : $r`
@@ -7256,14 +7265,30 @@ let Ve = class extends Ea {
7256
7265
  .unstyled=${this.unstyled}
7257
7266
  @details-toggled=${this.toggleAccordion}
7258
7267
  >
7259
- <eox-itemfilter-${Ct(t.type)}
7268
+ ${de(
7269
+ t.dirty,
7270
+ () => X`
7271
+ <button
7272
+ slot="reset-button"
7273
+ class="reset-icon icon"
7274
+ @click=${(e) => {
7275
+ e.target.parentElement.querySelector(
7276
+ "[slot=filter]"
7277
+ ).reset(), this.search(), this.requestUpdate();
7278
+ }}
7279
+ >
7280
+ ${this.unstyled ? "Reset" : oe}
7281
+ </button>
7282
+ `
7283
+ )}
7284
+ <eox-itemfilter-${Lt(t.type)}
7260
7285
  slot="filter"
7261
7286
  data-type="filter"
7262
7287
  data-filter="${t.key}"
7263
7288
  .filterObject=${t}
7264
7289
  .unstyled=${this.unstyled}
7265
7290
  @filter="${() => this.search()}"
7266
- ></eox-itemfilter-${Ct(
7291
+ ></eox-itemfilter-${Lt(
7267
7292
  t.type
7268
7293
  )}>
7269
7294
  </eox-itemfilter-expandcontainer>
@@ -7272,25 +7297,25 @@ let Ve = class extends Ea {
7272
7297
  `
7273
7298
  )}
7274
7299
  </ul>
7275
- ${fe(
7300
+ ${de(
7276
7301
  this._config.filterProperties && Object.values(this.filters).map((t) => t.dirty).filter((t) => t).length > 0,
7277
- () => V`
7302
+ () => X`
7278
7303
  <button
7279
7304
  id="filter-reset"
7280
- class="outline small"
7305
+ class="outline small icon-text reset-icon"
7281
7306
  data-cy="filter-reset"
7282
7307
  @click=${() => this.resetFilters()}
7283
7308
  >
7284
- Reset filters
7309
+ Reset all
7285
7310
  </a>
7286
7311
  `
7287
7312
  )}
7288
7313
  </section>
7289
7314
  `
7290
7315
  )}
7291
- ${fe(
7316
+ ${de(
7292
7317
  this.config.showResults && this.results,
7293
- () => V`
7318
+ () => X`
7294
7319
  <section id="section-results">
7295
7320
  <div>
7296
7321
  <slot name="resultstitle"
@@ -7298,9 +7323,9 @@ let Ve = class extends Ea {
7298
7323
  >
7299
7324
  </div>
7300
7325
  <div id="container-results" class="scroll">
7301
- ${this.results.length < 1 ? V`
7326
+ ${this.results.length < 1 ? X`
7302
7327
  <small class="no-results">No matching items</small>
7303
- ` : ae}
7328
+ ` : oe}
7304
7329
  <ul id="results" part="results">
7305
7330
  ${this._config.aggregateResults ? Kt(
7306
7331
  this._resultAggregation.filter(
@@ -7309,10 +7334,10 @@ let Ve = class extends Ea {
7309
7334
  t
7310
7335
  ).length
7311
7336
  ),
7312
- (t) => V`<details
7337
+ (t) => X`<details
7313
7338
  class="details-results"
7314
7339
  @toggle=${this.toggleAccordion}
7315
- ?open=${this._config.expandResults || ae}
7340
+ ?open=${this._config.expandResults || oe}
7316
7341
  >
7317
7342
  <summary>
7318
7343
  <span class="title">
@@ -7334,9 +7359,9 @@ let Ve = class extends Ea {
7334
7359
  (e) => e.id,
7335
7360
  (e) => {
7336
7361
  var r, i;
7337
- return V`
7362
+ return X`
7338
7363
  <li
7339
- class=${((r = this.selectedResult) == null ? void 0 : r[this._config.titleProperty]) === e[this._config.titleProperty] ? "highlighted" : ae}
7364
+ class=${((r = this.selectedResult) == null ? void 0 : r[this._config.titleProperty]) === e[this._config.titleProperty] ? "highlighted" : oe}
7340
7365
  >
7341
7366
  <label>
7342
7367
  <input
@@ -7345,19 +7370,19 @@ let Ve = class extends Ea {
7345
7370
  class="result-radio"
7346
7371
  name="result"
7347
7372
  id="${e.id}"
7348
- ?checked=${((i = this.selectedResult) == null ? void 0 : i[this._config.titleProperty]) === e[this._config.titleProperty] || ae}
7373
+ ?checked=${((i = this.selectedResult) == null ? void 0 : i[this._config.titleProperty]) === e[this._config.titleProperty] || oe}
7349
7374
  @click=${() => {
7350
7375
  this.selectedResult = e, this._config.onSelect(e);
7351
7376
  }}
7352
7377
  />
7353
- ${fe(
7378
+ ${de(
7354
7379
  this.hasTemplate("result"),
7355
7380
  () => this.renderTemplate(
7356
7381
  "result",
7357
7382
  e,
7358
7383
  `result-${e.id}`
7359
7384
  ),
7360
- () => V`
7385
+ () => X`
7361
7386
  <span class="title"
7362
7387
  >${In(
7363
7388
  e[this._config.titleProperty]
@@ -7374,7 +7399,7 @@ let Ve = class extends Ea {
7374
7399
  </details>`
7375
7400
  ) : Kt(
7376
7401
  this.results,
7377
- (t) => V`<li part="result">
7402
+ (t) => X`<li part="result">
7378
7403
  <label>
7379
7404
  <input
7380
7405
  type="radio"
@@ -7384,14 +7409,14 @@ let Ve = class extends Ea {
7384
7409
  this.selectedResult = t, this._config.onSelect(t);
7385
7410
  }}
7386
7411
  />
7387
- ${fe(
7412
+ ${de(
7388
7413
  this.hasTemplate("result"),
7389
7414
  () => this.renderTemplate(
7390
7415
  "result",
7391
7416
  t,
7392
7417
  `result-${t.id}`
7393
7418
  ),
7394
- () => V`
7419
+ () => X`
7395
7420
  <span class="title"
7396
7421
  >${In(
7397
7422
  t[this._config.titleProperty]