@eox/itemfilter 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,24 @@
1
- var ae = Object.defineProperty;
2
- var ue = (i, t, e) => t in i ? ae(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
- var x = (i, t, e) => (ue(i, typeof t != "symbol" ? t + "" : t, e), e);
1
+ var de = Object.defineProperty;
2
+ var fe = (i, t, e) => t in i ? de(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var m = (i, t, e) => (fe(i, typeof t != "symbol" ? t + "" : t, e), e);
4
4
  /**
5
5
  * @license
6
6
  * Copyright 2019 Google LLC
7
7
  * SPDX-License-Identifier: BSD-3-Clause
8
8
  */
9
- const et = window, wt = et.ShadowRoot && (et.ShadyCSS === void 0 || et.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Jt = Symbol(), Lt = /* @__PURE__ */ new WeakMap();
10
- let de = class {
9
+ const st = window, Mt = st.ShadowRoot && (st.ShadyCSS === void 0 || st.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Qt = Symbol(), Ot = /* @__PURE__ */ new WeakMap();
10
+ let pe = class {
11
11
  constructor(t, e, s) {
12
- if (this._$cssResult$ = !0, s !== Jt)
12
+ if (this._$cssResult$ = !0, s !== Qt)
13
13
  throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
14
14
  this.cssText = t, this.t = e;
15
15
  }
16
16
  get styleSheet() {
17
17
  let t = this.o;
18
18
  const e = this.t;
19
- if (wt && t === void 0) {
19
+ if (Mt && t === void 0) {
20
20
  const s = e !== void 0 && e.length === 1;
21
- s && (t = Lt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Lt.set(e, t));
21
+ s && (t = Ot.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Ot.set(e, t));
22
22
  }
23
23
  return t;
24
24
  }
@@ -26,27 +26,27 @@ let de = class {
26
26
  return this.cssText;
27
27
  }
28
28
  };
29
- const fe = (i) => new de(typeof i == "string" ? i : i + "", void 0, Jt), pe = (i, t) => {
30
- wt ? i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
31
- const s = document.createElement("style"), r = et.litNonce;
29
+ const ge = (i) => new pe(typeof i == "string" ? i : i + "", void 0, Qt), _e = (i, t) => {
30
+ Mt ? i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
31
+ const s = document.createElement("style"), r = st.litNonce;
32
32
  r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, i.appendChild(s);
33
33
  });
34
- }, Nt = wt ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
34
+ }, kt = Mt ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
35
35
  let e = "";
36
36
  for (const s of t.cssRules)
37
37
  e += s.cssText;
38
- return fe(e);
38
+ return ge(e);
39
39
  })(i) : i;
40
40
  /**
41
41
  * @license
42
42
  * Copyright 2017 Google LLC
43
43
  * SPDX-License-Identifier: BSD-3-Clause
44
44
  */
45
- var ht;
46
- const st = window, Ot = st.trustedTypes, ge = Ot ? Ot.emptyScript : "", kt = st.reactiveElementPolyfillSupport, _t = { toAttribute(i, t) {
45
+ var at;
46
+ const it = window, Nt = it.trustedTypes, me = Nt ? Nt.emptyScript : "", Pt = it.reactiveElementPolyfillSupport, $t = { toAttribute(i, t) {
47
47
  switch (t) {
48
48
  case Boolean:
49
- i = i ? ge : null;
49
+ i = i ? me : null;
50
50
  break;
51
51
  case Object:
52
52
  case Array:
@@ -71,7 +71,7 @@ const st = window, Ot = st.trustedTypes, ge = Ot ? Ot.emptyScript : "", kt = st.
71
71
  }
72
72
  }
73
73
  return e;
74
- } }, Qt = (i, t) => t !== i && (t == t || i == i), at = { attribute: !0, type: String, converter: _t, reflect: !1, hasChanged: Qt };
74
+ } }, Xt = (i, t) => t !== i && (t == t || i == i), ut = { attribute: !0, type: String, converter: $t, reflect: !1, hasChanged: Xt };
75
75
  let z = class extends HTMLElement {
76
76
  constructor() {
77
77
  super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
@@ -88,7 +88,7 @@ let z = class extends HTMLElement {
88
88
  r !== void 0 && (this._$Ev.set(r, s), t.push(r));
89
89
  }), t;
90
90
  }
91
- static createProperty(t, e = at) {
91
+ static createProperty(t, e = ut) {
92
92
  if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
93
93
  const s = typeof t == "symbol" ? Symbol() : "__" + t, r = this.getPropertyDescriptor(t, s, e);
94
94
  r !== void 0 && Object.defineProperty(this.prototype, t, r);
@@ -103,7 +103,7 @@ let z = class extends HTMLElement {
103
103
  }, configurable: !0, enumerable: !0 };
104
104
  }
105
105
  static getPropertyOptions(t) {
106
- return this.elementProperties.get(t) || at;
106
+ return this.elementProperties.get(t) || ut;
107
107
  }
108
108
  static finalize() {
109
109
  if (this.hasOwnProperty("finalized"))
@@ -122,9 +122,9 @@ let z = class extends HTMLElement {
122
122
  if (Array.isArray(t)) {
123
123
  const s = new Set(t.flat(1 / 0).reverse());
124
124
  for (const r of s)
125
- e.unshift(Nt(r));
125
+ e.unshift(kt(r));
126
126
  } else
127
- t !== void 0 && e.push(Nt(t));
127
+ t !== void 0 && e.push(kt(t));
128
128
  return e;
129
129
  }
130
130
  static _$Ep(t, e) {
@@ -151,7 +151,7 @@ let z = class extends HTMLElement {
151
151
  createRenderRoot() {
152
152
  var t;
153
153
  const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
154
- return pe(e, this.constructor.elementStyles), e;
154
+ return _e(e, this.constructor.elementStyles), e;
155
155
  }
156
156
  connectedCallback() {
157
157
  var t;
@@ -172,11 +172,11 @@ let z = class extends HTMLElement {
172
172
  attributeChangedCallback(t, e, s) {
173
173
  this._$AK(t, s);
174
174
  }
175
- _$EO(t, e, s = at) {
175
+ _$EO(t, e, s = ut) {
176
176
  var r;
177
177
  const n = this.constructor._$Ep(t, s);
178
178
  if (n !== void 0 && s.reflect === !0) {
179
- const o = (((r = s.converter) === null || r === void 0 ? void 0 : r.toAttribute) !== void 0 ? s.converter : _t).toAttribute(e, s.type);
179
+ const o = (((r = s.converter) === null || r === void 0 ? void 0 : r.toAttribute) !== void 0 ? s.converter : $t).toAttribute(e, s.type);
180
180
  this._$El = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$El = null;
181
181
  }
182
182
  }
@@ -184,13 +184,13 @@ let z = class extends HTMLElement {
184
184
  var s;
185
185
  const r = this.constructor, n = r._$Ev.get(t);
186
186
  if (n !== void 0 && this._$El !== n) {
187
- const o = r.getPropertyOptions(n), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) === null || s === void 0 ? void 0 : s.fromAttribute) !== void 0 ? o.converter : _t;
187
+ const o = r.getPropertyOptions(n), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) === null || s === void 0 ? void 0 : s.fromAttribute) !== void 0 ? o.converter : $t;
188
188
  this._$El = n, this[n] = c.fromAttribute(e, o.type), this._$El = null;
189
189
  }
190
190
  }
191
191
  requestUpdate(t, e, s) {
192
192
  let r = !0;
193
- t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || Qt)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, s))) : r = !1), !this.isUpdatePending && r && (this._$E_ = this._$Ej());
193
+ t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || Xt)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, s))) : r = !1), !this.isUpdatePending && r && (this._$E_ = this._$Ej());
194
194
  }
195
195
  async _$Ej() {
196
196
  this.isUpdatePending = !0;
@@ -251,38 +251,38 @@ let z = class extends HTMLElement {
251
251
  firstUpdated(t) {
252
252
  }
253
253
  };
254
- z.finalized = !0, z.elementProperties = /* @__PURE__ */ new Map(), z.elementStyles = [], z.shadowRootOptions = { mode: "open" }, kt == null || kt({ ReactiveElement: z }), ((ht = st.reactiveElementVersions) !== null && ht !== void 0 ? ht : st.reactiveElementVersions = []).push("1.6.1");
254
+ z.finalized = !0, z.elementProperties = /* @__PURE__ */ new Map(), z.elementStyles = [], z.shadowRootOptions = { mode: "open" }, Pt == null || Pt({ ReactiveElement: z }), ((at = it.reactiveElementVersions) !== null && at !== void 0 ? at : it.reactiveElementVersions = []).push("1.6.1");
255
255
  /**
256
256
  * @license
257
257
  * Copyright 2017 Google LLC
258
258
  * SPDX-License-Identifier: BSD-3-Clause
259
259
  */
260
- var ut;
261
- const it = window, D = it.trustedTypes, Pt = D ? D.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, $t = "$lit$", M = `lit$${(Math.random() + "").slice(9)}$`, Xt = "?" + M, me = `<${Xt}>`, T = document, G = () => T.createComment(""), J = (i) => i === null || typeof i != "object" && typeof i != "function", Zt = Array.isArray, _e = (i) => Zt(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", dt = `[
262
- \f\r]`, K = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Tt = /-->/g, Ut = />/g, N = RegExp(`>|${dt}(?:([^\\s"'>=/]+)(${dt}*=${dt}*(?:[^
263
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Ht = /'/g, jt = /"/g, qt = /^(?:script|style|textarea|title)$/i, $e = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), O = $e(1), U = Symbol.for("lit-noChange"), m = Symbol.for("lit-nothing"), Ft = /* @__PURE__ */ new WeakMap(), P = T.createTreeWalker(T, 129, null, !1), ve = (i, t) => {
260
+ var dt;
261
+ const rt = window, D = rt.trustedTypes, Tt = D ? D.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, vt = "$lit$", R = `lit$${(Math.random() + "").slice(9)}$`, Zt = "?" + R, $e = `<${Zt}>`, T = document, G = () => T.createComment(""), J = (i) => i === null || typeof i != "object" && typeof i != "function", te = Array.isArray, ve = (i) => te(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", ft = `[
262
+ \f\r]`, V = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ut = /-->/g, Ht = />/g, k = RegExp(`>|${ft}(?:([^\\s"'>=/]+)(${ft}*=${ft}*(?:[^
263
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), jt = /'/g, Ft = /"/g, ee = /^(?:script|style|textarea|title)$/i, ye = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), E = ye(1), U = Symbol.for("lit-noChange"), _ = Symbol.for("lit-nothing"), zt = /* @__PURE__ */ new WeakMap(), P = T.createTreeWalker(T, 129, null, !1), Ae = (i, t) => {
264
264
  const e = i.length - 1, s = [];
265
- let r, n = t === 2 ? "<svg>" : "", o = K;
265
+ let r, n = t === 2 ? "<svg>" : "", o = V;
266
266
  for (let l = 0; l < e; l++) {
267
267
  const h = i[l];
268
268
  let a, u, d = -1, p = 0;
269
269
  for (; p < h.length && (o.lastIndex = p, u = o.exec(h), u !== null); )
270
- p = o.lastIndex, o === K ? u[1] === "!--" ? o = Tt : u[1] !== void 0 ? o = Ut : u[2] !== void 0 ? (qt.test(u[2]) && (r = RegExp("</" + u[2], "g")), o = N) : u[3] !== void 0 && (o = N) : o === N ? u[0] === ">" ? (o = r ?? K, d = -1) : u[1] === void 0 ? d = -2 : (d = o.lastIndex - u[2].length, a = u[1], o = u[3] === void 0 ? N : u[3] === '"' ? jt : Ht) : o === jt || o === Ht ? o = N : o === Tt || o === Ut ? o = K : (o = N, r = void 0);
271
- const g = o === N && i[l + 1].startsWith("/>") ? " " : "";
272
- n += o === K ? h + me : d >= 0 ? (s.push(a), h.slice(0, d) + $t + h.slice(d) + M + g) : h + M + (d === -2 ? (s.push(void 0), l) : g);
270
+ p = o.lastIndex, o === V ? u[1] === "!--" ? o = Ut : u[1] !== void 0 ? o = Ht : u[2] !== void 0 ? (ee.test(u[2]) && (r = RegExp("</" + u[2], "g")), o = k) : u[3] !== void 0 && (o = k) : o === k ? u[0] === ">" ? (o = r ?? V, d = -1) : u[1] === void 0 ? d = -2 : (d = o.lastIndex - u[2].length, a = u[1], o = u[3] === void 0 ? k : u[3] === '"' ? Ft : jt) : o === Ft || o === jt ? o = k : o === Ut || o === Ht ? o = V : (o = k, r = void 0);
271
+ const g = o === k && i[l + 1].startsWith("/>") ? " " : "";
272
+ n += o === V ? h + $e : d >= 0 ? (s.push(a), h.slice(0, d) + vt + h.slice(d) + R + g) : h + R + (d === -2 ? (s.push(void 0), l) : g);
273
273
  }
274
274
  const c = n + (i[e] || "<?>") + (t === 2 ? "</svg>" : "");
275
275
  if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
276
276
  throw Error("invalid template strings array");
277
- return [Pt !== void 0 ? Pt.createHTML(c) : c, s];
277
+ return [Tt !== void 0 ? Tt.createHTML(c) : c, s];
278
278
  };
279
- class Q {
279
+ class q {
280
280
  constructor({ strings: t, _$litType$: e }, s) {
281
281
  let r;
282
282
  this.parts = [];
283
283
  let n = 0, o = 0;
284
- const c = t.length - 1, l = this.parts, [h, a] = ve(t, e);
285
- if (this.el = Q.createElement(h, s), P.currentNode = this.el.content, e === 2) {
284
+ const c = t.length - 1, l = this.parts, [h, a] = Ae(t, e);
285
+ if (this.el = q.createElement(h, s), P.currentNode = this.el.content, e === 2) {
286
286
  const u = this.el.content, d = u.firstChild;
287
287
  d.remove(), u.append(...d.childNodes);
288
288
  }
@@ -291,19 +291,19 @@ class Q {
291
291
  if (r.hasAttributes()) {
292
292
  const u = [];
293
293
  for (const d of r.getAttributeNames())
294
- if (d.endsWith($t) || d.startsWith(M)) {
294
+ if (d.endsWith(vt) || d.startsWith(R)) {
295
295
  const p = a[o++];
296
296
  if (u.push(d), p !== void 0) {
297
- const g = r.getAttribute(p.toLowerCase() + $t).split(M), _ = /([.?@])?(.*)/.exec(p);
298
- l.push({ type: 1, index: n, name: _[2], strings: g, ctor: _[1] === "." ? Ae : _[1] === "?" ? xe : _[1] === "@" ? Se : nt });
297
+ const g = r.getAttribute(p.toLowerCase() + vt).split(R), $ = /([.?@])?(.*)/.exec(p);
298
+ l.push({ type: 1, index: n, name: $[2], strings: g, ctor: $[1] === "." ? xe : $[1] === "?" ? be : $[1] === "@" ? we : ot });
299
299
  } else
300
300
  l.push({ type: 6, index: n });
301
301
  }
302
302
  for (const d of u)
303
303
  r.removeAttribute(d);
304
304
  }
305
- if (qt.test(r.tagName)) {
306
- const u = r.textContent.split(M), d = u.length - 1;
305
+ if (ee.test(r.tagName)) {
306
+ const u = r.textContent.split(R), d = u.length - 1;
307
307
  if (d > 0) {
308
308
  r.textContent = D ? D.emptyScript : "";
309
309
  for (let p = 0; p < d; p++)
@@ -312,12 +312,12 @@ class Q {
312
312
  }
313
313
  }
314
314
  } else if (r.nodeType === 8)
315
- if (r.data === Xt)
315
+ if (r.data === Zt)
316
316
  l.push({ type: 2, index: n });
317
317
  else {
318
318
  let u = -1;
319
- for (; (u = r.data.indexOf(M, u + 1)) !== -1; )
320
- l.push({ type: 7, index: n }), u += M.length - 1;
319
+ for (; (u = r.data.indexOf(R, u + 1)) !== -1; )
320
+ l.push({ type: 7, index: n }), u += R.length - 1;
321
321
  }
322
322
  n++;
323
323
  }
@@ -335,7 +335,7 @@ function B(i, t, e = i, s) {
335
335
  const h = J(t) ? void 0 : t._$litDirective$;
336
336
  return (l == null ? void 0 : l.constructor) !== h && ((n = l == null ? void 0 : l._$AO) === null || n === void 0 || n.call(l, !1), h === void 0 ? l = void 0 : (l = new h(i), l._$AT(i, e, s)), s !== void 0 ? ((o = (c = e)._$Co) !== null && o !== void 0 ? o : c._$Co = [])[s] = l : e._$Cl = l), l !== void 0 && (t = B(i, l._$AS(i, t.values), l, s)), t;
337
337
  }
338
- class ye {
338
+ class Ee {
339
339
  constructor(t, e) {
340
340
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
341
341
  }
@@ -353,7 +353,7 @@ class ye {
353
353
  for (; h !== void 0; ) {
354
354
  if (c === h.index) {
355
355
  let a;
356
- h.type === 2 ? a = new X(o, o.nextSibling, this, t) : h.type === 1 ? a = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (a = new be(o, this, t)), this._$AV.push(a), h = r[++l];
356
+ h.type === 2 ? a = new Q(o, o.nextSibling, this, t) : h.type === 1 ? a = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (a = new Me(o, this, t)), this._$AV.push(a), h = r[++l];
357
357
  }
358
358
  c !== (h == null ? void 0 : h.index) && (o = P.nextNode(), c++);
359
359
  }
@@ -365,10 +365,10 @@ class ye {
365
365
  s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
366
366
  }
367
367
  }
368
- class X {
368
+ class Q {
369
369
  constructor(t, e, s, r) {
370
370
  var n;
371
- this.type = 2, this._$AH = m, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = r, this._$Cp = (n = r == null ? void 0 : r.isConnected) === null || n === void 0 || n;
371
+ this.type = 2, this._$AH = _, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = r, this._$Cp = (n = r == null ? void 0 : r.isConnected) === null || n === void 0 || n;
372
372
  }
373
373
  get _$AU() {
374
374
  var t, e;
@@ -386,7 +386,7 @@ class X {
386
386
  return this._$AB;
387
387
  }
388
388
  _$AI(t, e = this) {
389
- t = B(this, t, e), J(t) ? t === m || t == null || t === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : t !== this._$AH && t !== U && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : _e(t) ? this.T(t) : this._(t);
389
+ t = B(this, t, e), J(t) ? t === _ || t == null || t === "" ? (this._$AH !== _ && this._$AR(), this._$AH = _) : t !== this._$AH && t !== U && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : ve(t) ? this.T(t) : this._(t);
390
390
  }
391
391
  k(t) {
392
392
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -395,28 +395,28 @@ class X {
395
395
  this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
396
396
  }
397
397
  _(t) {
398
- this._$AH !== m && J(this._$AH) ? this._$AA.nextSibling.data = t : this.$(T.createTextNode(t)), this._$AH = t;
398
+ this._$AH !== _ && J(this._$AH) ? this._$AA.nextSibling.data = t : this.$(T.createTextNode(t)), this._$AH = t;
399
399
  }
400
400
  g(t) {
401
401
  var e;
402
- const { values: s, _$litType$: r } = t, n = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = Q.createElement(r.h, this.options)), r);
402
+ const { values: s, _$litType$: r } = t, n = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = q.createElement(r.h, this.options)), r);
403
403
  if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === n)
404
404
  this._$AH.v(s);
405
405
  else {
406
- const o = new ye(n, this), c = o.u(this.options);
406
+ const o = new Ee(n, this), c = o.u(this.options);
407
407
  o.v(s), this.$(c), this._$AH = o;
408
408
  }
409
409
  }
410
410
  _$AC(t) {
411
- let e = Ft.get(t.strings);
412
- return e === void 0 && Ft.set(t.strings, e = new Q(t)), e;
411
+ let e = zt.get(t.strings);
412
+ return e === void 0 && zt.set(t.strings, e = new q(t)), e;
413
413
  }
414
414
  T(t) {
415
- Zt(this._$AH) || (this._$AH = [], this._$AR());
415
+ te(this._$AH) || (this._$AH = [], this._$AR());
416
416
  const e = this._$AH;
417
417
  let s, r = 0;
418
418
  for (const n of t)
419
- r === e.length ? e.push(s = new X(this.k(G()), this.k(G()), this, this.options)) : s = e[r], s._$AI(n), r++;
419
+ r === e.length ? e.push(s = new Q(this.k(G()), this.k(G()), this, this.options)) : s = e[r], s._$AI(n), r++;
420
420
  r < e.length && (this._$AR(s && s._$AB.nextSibling, r), e.length = r);
421
421
  }
422
422
  _$AR(t = this._$AA.nextSibling, e) {
@@ -431,9 +431,9 @@ class X {
431
431
  this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
432
432
  }
433
433
  }
434
- class nt {
434
+ class ot {
435
435
  constructor(t, e, s, r, n) {
436
- this.type = 1, this._$AH = m, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = m;
436
+ this.type = 1, this._$AH = _, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = _;
437
437
  }
438
438
  get tagName() {
439
439
  return this.element.tagName;
@@ -450,40 +450,40 @@ class nt {
450
450
  const c = t;
451
451
  let l, h;
452
452
  for (t = n[0], l = 0; l < n.length - 1; l++)
453
- h = B(this, c[s + l], e, l), h === U && (h = this._$AH[l]), o || (o = !J(h) || h !== this._$AH[l]), h === m ? t = m : t !== m && (t += (h ?? "") + n[l + 1]), this._$AH[l] = h;
453
+ h = B(this, c[s + l], e, l), h === U && (h = this._$AH[l]), o || (o = !J(h) || h !== this._$AH[l]), h === _ ? t = _ : t !== _ && (t += (h ?? "") + n[l + 1]), this._$AH[l] = h;
454
454
  }
455
455
  o && !r && this.j(t);
456
456
  }
457
457
  j(t) {
458
- t === m ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
458
+ t === _ ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
459
459
  }
460
460
  }
461
- class Ae extends nt {
461
+ class xe extends ot {
462
462
  constructor() {
463
463
  super(...arguments), this.type = 3;
464
464
  }
465
465
  j(t) {
466
- this.element[this.name] = t === m ? void 0 : t;
466
+ this.element[this.name] = t === _ ? void 0 : t;
467
467
  }
468
468
  }
469
- const Ee = D ? D.emptyScript : "";
470
- class xe extends nt {
469
+ const Se = D ? D.emptyScript : "";
470
+ class be extends ot {
471
471
  constructor() {
472
472
  super(...arguments), this.type = 4;
473
473
  }
474
474
  j(t) {
475
- t && t !== m ? this.element.setAttribute(this.name, Ee) : this.element.removeAttribute(this.name);
475
+ t && t !== _ ? this.element.setAttribute(this.name, Se) : this.element.removeAttribute(this.name);
476
476
  }
477
477
  }
478
- class Se extends nt {
478
+ class we extends ot {
479
479
  constructor(t, e, s, r, n) {
480
480
  super(t, e, s, r, n), this.type = 5;
481
481
  }
482
482
  _$AI(t, e = this) {
483
483
  var s;
484
- if ((t = (s = B(this, t, e, 0)) !== null && s !== void 0 ? s : m) === U)
484
+ if ((t = (s = B(this, t, e, 0)) !== null && s !== void 0 ? s : _) === U)
485
485
  return;
486
- const r = this._$AH, n = t === m && r !== m || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, o = t !== m && (r === m || n);
486
+ const r = this._$AH, n = t === _ && r !== _ || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, o = t !== _ && (r === _ || n);
487
487
  n && this.element.removeEventListener(this.name, this, r), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
488
488
  }
489
489
  handleEvent(t) {
@@ -491,7 +491,7 @@ class Se extends nt {
491
491
  typeof this._$AH == "function" ? this._$AH.call((s = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && s !== void 0 ? s : this.element, t) : this._$AH.handleEvent(t);
492
492
  }
493
493
  }
494
- class be {
494
+ class Me {
495
495
  constructor(t, e, s) {
496
496
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
497
497
  }
@@ -502,15 +502,15 @@ class be {
502
502
  B(this, t);
503
503
  }
504
504
  }
505
- const zt = it.litHtmlPolyfillSupport;
506
- zt == null || zt(Q, X), ((ut = it.litHtmlVersions) !== null && ut !== void 0 ? ut : it.litHtmlVersions = []).push("2.7.4");
507
- const we = (i, t, e) => {
505
+ const Dt = rt.litHtmlPolyfillSupport;
506
+ Dt == null || Dt(q, Q), ((dt = rt.litHtmlVersions) !== null && dt !== void 0 ? dt : rt.litHtmlVersions = []).push("2.7.4");
507
+ const Re = (i, t, e) => {
508
508
  var s, r;
509
509
  const n = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : t;
510
510
  let o = n._$litPart$;
511
511
  if (o === void 0) {
512
512
  const c = (r = e == null ? void 0 : e.renderBefore) !== null && r !== void 0 ? r : null;
513
- n._$litPart$ = o = new X(t.insertBefore(G(), c), c, void 0, e ?? {});
513
+ n._$litPart$ = o = new Q(t.insertBefore(G(), c), c, void 0, e ?? {});
514
514
  }
515
515
  return o._$AI(i), o;
516
516
  };
@@ -519,7 +519,7 @@ const we = (i, t, e) => {
519
519
  * Copyright 2017 Google LLC
520
520
  * SPDX-License-Identifier: BSD-3-Clause
521
521
  */
522
- var ft, pt;
522
+ var pt, gt;
523
523
  class Y extends z {
524
524
  constructor() {
525
525
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
@@ -531,7 +531,7 @@ class Y extends z {
531
531
  }
532
532
  update(t) {
533
533
  const e = this.render();
534
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = we(e, this.renderRoot, this.renderOptions);
534
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Re(e, this.renderRoot, this.renderOptions);
535
535
  }
536
536
  connectedCallback() {
537
537
  var t;
@@ -545,16 +545,16 @@ class Y extends z {
545
545
  return U;
546
546
  }
547
547
  }
548
- Y.finalized = !0, Y._$litElement$ = !0, (ft = globalThis.litElementHydrateSupport) === null || ft === void 0 || ft.call(globalThis, { LitElement: Y });
549
- const Dt = globalThis.litElementPolyfillSupport;
550
- Dt == null || Dt({ LitElement: Y });
551
- ((pt = globalThis.litElementVersions) !== null && pt !== void 0 ? pt : globalThis.litElementVersions = []).push("3.3.2");
548
+ Y.finalized = !0, Y._$litElement$ = !0, (pt = globalThis.litElementHydrateSupport) === null || pt === void 0 || pt.call(globalThis, { LitElement: Y });
549
+ const Bt = globalThis.litElementPolyfillSupport;
550
+ Bt == null || Bt({ LitElement: Y });
551
+ ((gt = globalThis.litElementVersions) !== null && gt !== void 0 ? gt : globalThis.litElementVersions = []).push("3.3.2");
552
552
  /**
553
553
  * @license
554
554
  * Copyright 2017 Google LLC
555
555
  * SPDX-License-Identifier: BSD-3-Clause
556
556
  */
557
- const Me = (i) => (t) => typeof t == "function" ? ((e, s) => (customElements.define(e, s), s))(i, t) : ((e, s) => {
557
+ const Ce = (i) => (t) => typeof t == "function" ? ((e, s) => (customElements.define(e, s), s))(i, t) : ((e, s) => {
558
558
  const { kind: r, elements: n } = s;
559
559
  return { kind: r, elements: n, finisher(o) {
560
560
  customElements.define(e, o);
@@ -565,39 +565,47 @@ const Me = (i) => (t) => typeof t == "function" ? ((e, s) => (customElements.def
565
565
  * Copyright 2017 Google LLC
566
566
  * SPDX-License-Identifier: BSD-3-Clause
567
567
  */
568
- const Ce = (i, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(e) {
568
+ const Ie = (i, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? { ...t, finisher(e) {
569
569
  e.createProperty(t.key, i);
570
570
  } } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
571
571
  typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
572
572
  }, finisher(e) {
573
573
  e.createProperty(t.key, i);
574
574
  } };
575
- function Mt(i) {
575
+ function Rt(i) {
576
576
  return (t, e) => e !== void 0 ? ((s, r, n) => {
577
577
  r.constructor.createProperty(n, s);
578
- })(i, t, e) : Ce(i, t);
578
+ })(i, t, e) : Ie(i, t);
579
579
  }
580
580
  /**
581
581
  * @license
582
582
  * Copyright 2017 Google LLC
583
583
  * SPDX-License-Identifier: BSD-3-Clause
584
584
  */
585
- function ot(i) {
586
- return Mt({ ...i, state: !0 });
585
+ function lt(i) {
586
+ return Rt({ ...i, state: !0 });
587
587
  }
588
588
  /**
589
589
  * @license
590
590
  * Copyright 2021 Google LLC
591
591
  * SPDX-License-Identifier: BSD-3-Clause
592
592
  */
593
- var gt;
594
- ((gt = window.HTMLSlotElement) === null || gt === void 0 ? void 0 : gt.prototype.assignedElements) != null;
593
+ var _t;
594
+ ((_t = window.HTMLSlotElement) === null || _t === void 0 ? void 0 : _t.prototype.assignedElements) != null;
595
595
  /**
596
596
  * @license
597
597
  * Copyright 2021 Google LLC
598
598
  * SPDX-License-Identifier: BSD-3-Clause
599
599
  */
600
- function* V(i, t) {
600
+ function tt(i, t, e) {
601
+ return i ? t() : e == null ? void 0 : e();
602
+ }
603
+ /**
604
+ * @license
605
+ * Copyright 2021 Google LLC
606
+ * SPDX-License-Identifier: BSD-3-Clause
607
+ */
608
+ function* K(i, t) {
601
609
  if (i !== void 0) {
602
610
  let e = 0;
603
611
  for (const s of i)
@@ -609,8 +617,8 @@ function* V(i, t) {
609
617
  * Copyright 2017 Google LLC
610
618
  * SPDX-License-Identifier: BSD-3-Clause
611
619
  */
612
- const Re = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ie = (i) => (...t) => ({ _$litDirective$: i, values: t });
613
- class Le {
620
+ const Le = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Oe = (i) => (...t) => ({ _$litDirective$: i, values: t });
621
+ class ke {
614
622
  constructor(t) {
615
623
  }
616
624
  get _$AU() {
@@ -631,13 +639,13 @@ class Le {
631
639
  * Copyright 2017 Google LLC
632
640
  * SPDX-License-Identifier: BSD-3-Clause
633
641
  */
634
- class vt extends Le {
642
+ class yt extends ke {
635
643
  constructor(t) {
636
- if (super(t), this.et = m, t.type !== Re.CHILD)
644
+ if (super(t), this.et = _, t.type !== Le.CHILD)
637
645
  throw Error(this.constructor.directiveName + "() can only be used in child bindings");
638
646
  }
639
647
  render(t) {
640
- if (t === m || t == null)
648
+ if (t === _ || t == null)
641
649
  return this.ft = void 0, this.et = t;
642
650
  if (t === U)
643
651
  return t;
@@ -650,52 +658,52 @@ class vt extends Le {
650
658
  return e.raw = e, this.ft = { _$litType$: this.constructor.resultType, strings: e, values: [] };
651
659
  }
652
660
  }
653
- vt.directiveName = "unsafeHTML", vt.resultType = 1;
654
- const Bt = Ie(vt);
655
- function S(i) {
656
- return Array.isArray ? Array.isArray(i) : se(i) === "[object Array]";
661
+ yt.directiveName = "unsafeHTML", yt.resultType = 1;
662
+ const Wt = Oe(yt);
663
+ function b(i) {
664
+ return Array.isArray ? Array.isArray(i) : re(i) === "[object Array]";
657
665
  }
658
666
  const Ne = 1 / 0;
659
- function Oe(i) {
667
+ function Pe(i) {
660
668
  if (typeof i == "string")
661
669
  return i;
662
670
  let t = i + "";
663
671
  return t == "0" && 1 / i == -Ne ? "-0" : t;
664
672
  }
665
- function ke(i) {
666
- return i == null ? "" : Oe(i);
673
+ function Te(i) {
674
+ return i == null ? "" : Pe(i);
667
675
  }
668
- function A(i) {
676
+ function x(i) {
669
677
  return typeof i == "string";
670
678
  }
671
- function te(i) {
679
+ function se(i) {
672
680
  return typeof i == "number";
673
681
  }
674
- function Pe(i) {
675
- return i === !0 || i === !1 || Te(i) && se(i) == "[object Boolean]";
682
+ function Ue(i) {
683
+ return i === !0 || i === !1 || He(i) && re(i) == "[object Boolean]";
676
684
  }
677
- function ee(i) {
685
+ function ie(i) {
678
686
  return typeof i == "object";
679
687
  }
680
- function Te(i) {
681
- return ee(i) && i !== null;
688
+ function He(i) {
689
+ return ie(i) && i !== null;
682
690
  }
683
- function $(i) {
691
+ function v(i) {
684
692
  return i != null;
685
693
  }
686
694
  function mt(i) {
687
695
  return !i.trim().length;
688
696
  }
689
- function se(i) {
697
+ function re(i) {
690
698
  return i == null ? i === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(i);
691
699
  }
692
- const Ue = "Incorrect 'index' type", He = (i) => `Invalid value for key ${i}`, je = (i) => `Pattern length exceeds max of ${i}.`, Fe = (i) => `Missing ${i} property in key`, ze = (i) => `Property 'weight' in key '${i}' must be a positive integer`, Wt = Object.prototype.hasOwnProperty;
693
- class De {
700
+ const je = "Incorrect 'index' type", Fe = (i) => `Invalid value for key ${i}`, ze = (i) => `Pattern length exceeds max of ${i}.`, De = (i) => `Missing ${i} property in key`, Be = (i) => `Property 'weight' in key '${i}' must be a positive integer`, Vt = Object.prototype.hasOwnProperty;
701
+ class We {
694
702
  constructor(t) {
695
703
  this._keys = [], this._keyMap = {};
696
704
  let e = 0;
697
705
  t.forEach((s) => {
698
- let r = ie(s);
706
+ let r = ne(s);
699
707
  e += r.weight, this._keys.push(r), this._keyMap[r.id] = r, e += r.weight;
700
708
  }), this._keys.forEach((s) => {
701
709
  s.weight /= e;
@@ -711,40 +719,40 @@ class De {
711
719
  return JSON.stringify(this._keys);
712
720
  }
713
721
  }
714
- function ie(i) {
722
+ function ne(i) {
715
723
  let t = null, e = null, s = null, r = 1, n = null;
716
- if (A(i) || S(i))
717
- s = i, t = Kt(i), e = yt(i);
724
+ if (x(i) || b(i))
725
+ s = i, t = Kt(i), e = At(i);
718
726
  else {
719
- if (!Wt.call(i, "name"))
720
- throw new Error(Fe("name"));
727
+ if (!Vt.call(i, "name"))
728
+ throw new Error(De("name"));
721
729
  const o = i.name;
722
- if (s = o, Wt.call(i, "weight") && (r = i.weight, r <= 0))
723
- throw new Error(ze(o));
724
- t = Kt(o), e = yt(o), n = i.getFn;
730
+ if (s = o, Vt.call(i, "weight") && (r = i.weight, r <= 0))
731
+ throw new Error(Be(o));
732
+ t = Kt(o), e = At(o), n = i.getFn;
725
733
  }
726
734
  return { path: t, id: e, weight: r, src: s, getFn: n };
727
735
  }
728
736
  function Kt(i) {
729
- return S(i) ? i : i.split(".");
737
+ return b(i) ? i : i.split(".");
730
738
  }
731
- function yt(i) {
732
- return S(i) ? i.join(".") : i;
739
+ function At(i) {
740
+ return b(i) ? i.join(".") : i;
733
741
  }
734
- function Be(i, t) {
742
+ function Ve(i, t) {
735
743
  let e = [], s = !1;
736
744
  const r = (n, o, c) => {
737
- if ($(n))
745
+ if (v(n))
738
746
  if (!o[c])
739
747
  e.push(n);
740
748
  else {
741
749
  let l = o[c];
742
750
  const h = n[l];
743
- if (!$(h))
751
+ if (!v(h))
744
752
  return;
745
- if (c === o.length - 1 && (A(h) || te(h) || Pe(h)))
746
- e.push(ke(h));
747
- else if (S(h)) {
753
+ if (c === o.length - 1 && (x(h) || se(h) || Ue(h)))
754
+ e.push(Te(h));
755
+ else if (b(h)) {
748
756
  s = !0;
749
757
  for (let a = 0, u = h.length; a < u; a += 1)
750
758
  r(h[a], o, c + 1);
@@ -752,9 +760,9 @@ function Be(i, t) {
752
760
  o.length && r(h, o, c + 1);
753
761
  }
754
762
  };
755
- return r(i, A(t) ? t.split(".") : t, 0), s ? e : e[0];
763
+ return r(i, x(t) ? t.split(".") : t, 0), s ? e : e[0];
756
764
  }
757
- const We = {
765
+ const Ke = {
758
766
  // Whether the matches should be included in the result set. When `true`, each record in the result
759
767
  // set will include the indices of the matched characters.
760
768
  // These can consequently be used for highlighting purposes.
@@ -764,7 +772,7 @@ const We = {
764
772
  findAllMatches: !1,
765
773
  // Minimum number of characters that must be matched before a result is considered a match
766
774
  minMatchCharLength: 1
767
- }, Ke = {
775
+ }, Ye = {
768
776
  // When `true`, the algorithm continues searching to the end of the input even if a perfect
769
777
  // match is found before the end of the same input.
770
778
  isCaseSensitive: !1,
@@ -776,7 +784,7 @@ const We = {
776
784
  shouldSort: !0,
777
785
  // Default sort function: sort by ascending score, ascending index
778
786
  sortFn: (i, t) => i.score === t.score ? i.idx < t.idx ? -1 : 1 : i.score < t.score ? -1 : 1
779
- }, Ve = {
787
+ }, Ge = {
780
788
  // Approximately where in the text is the pattern expected to be found?
781
789
  location: 0,
782
790
  // At what point does the match algorithm give up. A threshold of '0.0' requires a perfect match
@@ -788,12 +796,12 @@ const We = {
788
796
  // the exact location specified, a threshold of '1000' would require a perfect match
789
797
  // to be within 800 characters of the fuzzy location to be found using a 0.8 threshold.
790
798
  distance: 100
791
- }, Ye = {
799
+ }, Je = {
792
800
  // When `true`, it enables the use of unix-like search commands
793
801
  useExtendedSearch: !1,
794
802
  // The get function to use when fetching an object's properties.
795
803
  // The default will search nested paths *ie foo.bar.baz*
796
- getFn: Be,
804
+ getFn: Ve,
797
805
  // When `true`, search will ignore `location` and `distance`, so it won't matter
798
806
  // where in the string the pattern appears.
799
807
  // More info: https://fusejs.io/concepts/scoring-theory.html#fuzziness-score
@@ -806,17 +814,17 @@ const We = {
806
814
  fieldNormWeight: 1
807
815
  };
808
816
  var f = {
817
+ ...Ye,
809
818
  ...Ke,
810
- ...We,
811
- ...Ve,
812
- ...Ye
819
+ ...Ge,
820
+ ...Je
813
821
  };
814
- const Ge = /[^ ]+/g;
815
- function Je(i = 1, t = 3) {
822
+ const qe = /[^ ]+/g;
823
+ function Qe(i = 1, t = 3) {
816
824
  const e = /* @__PURE__ */ new Map(), s = Math.pow(10, t);
817
825
  return {
818
826
  get(r) {
819
- const n = r.match(Ge).length;
827
+ const n = r.match(qe).length;
820
828
  if (e.has(n))
821
829
  return e.get(n);
822
830
  const o = 1 / Math.pow(n, 0.5 * i), c = parseFloat(Math.round(o * s) / s);
@@ -832,7 +840,7 @@ class Ct {
832
840
  getFn: t = f.getFn,
833
841
  fieldNormWeight: e = f.fieldNormWeight
834
842
  } = {}) {
835
- this.norm = Je(e, 3), this.getFn = t, this.isCreated = !1, this.setIndexRecords();
843
+ this.norm = Qe(e, 3), this.getFn = t, this.isCreated = !1, this.setIndexRecords();
836
844
  }
837
845
  setSources(t = []) {
838
846
  this.docs = t;
@@ -846,7 +854,7 @@ class Ct {
846
854
  });
847
855
  }
848
856
  create() {
849
- this.isCreated || !this.docs.length || (this.isCreated = !0, A(this.docs[0]) ? this.docs.forEach((t, e) => {
857
+ this.isCreated || !this.docs.length || (this.isCreated = !0, x(this.docs[0]) ? this.docs.forEach((t, e) => {
850
858
  this._addString(t, e);
851
859
  }) : this.docs.forEach((t, e) => {
852
860
  this._addObject(t, e);
@@ -855,7 +863,7 @@ class Ct {
855
863
  // Adds a doc to the end of the index
856
864
  add(t) {
857
865
  const e = this.size();
858
- A(t) ? this._addString(t, e) : this._addObject(t, e);
866
+ x(t) ? this._addString(t, e) : this._addObject(t, e);
859
867
  }
860
868
  // Removes the doc at the specified index of the index
861
869
  removeAt(t) {
@@ -870,7 +878,7 @@ class Ct {
870
878
  return this.records.length;
871
879
  }
872
880
  _addString(t, e) {
873
- if (!$(t) || mt(t))
881
+ if (!v(t) || mt(t))
874
882
  return;
875
883
  let s = {
876
884
  v: t,
@@ -883,14 +891,14 @@ class Ct {
883
891
  let s = { i: e, $: {} };
884
892
  this.keys.forEach((r, n) => {
885
893
  let o = r.getFn ? r.getFn(t) : this.getFn(t, r.path);
886
- if ($(o)) {
887
- if (S(o)) {
894
+ if (v(o)) {
895
+ if (b(o)) {
888
896
  let c = [];
889
897
  const l = [{ nestedArrIndex: -1, value: o }];
890
898
  for (; l.length; ) {
891
899
  const { nestedArrIndex: h, value: a } = l.pop();
892
- if ($(a))
893
- if (A(a) && !mt(a)) {
900
+ if (v(a))
901
+ if (x(a) && !mt(a)) {
894
902
  let u = {
895
903
  v: a,
896
904
  i: h,
@@ -898,7 +906,7 @@ class Ct {
898
906
  };
899
907
  c.push(u);
900
908
  } else
901
- S(a) && a.forEach((u, d) => {
909
+ b(a) && a.forEach((u, d) => {
902
910
  l.push({
903
911
  nestedArrIndex: d,
904
912
  value: u
@@ -906,7 +914,7 @@ class Ct {
906
914
  });
907
915
  }
908
916
  s.$[n] = c;
909
- } else if (A(o) && !mt(o)) {
917
+ } else if (x(o) && !mt(o)) {
910
918
  let c = {
911
919
  v: o,
912
920
  n: this.norm.get(o)
@@ -923,15 +931,15 @@ class Ct {
923
931
  };
924
932
  }
925
933
  }
926
- function re(i, t, { getFn: e = f.getFn, fieldNormWeight: s = f.fieldNormWeight } = {}) {
934
+ function oe(i, t, { getFn: e = f.getFn, fieldNormWeight: s = f.fieldNormWeight } = {}) {
927
935
  const r = new Ct({ getFn: e, fieldNormWeight: s });
928
- return r.setKeys(i.map(ie)), r.setSources(t), r.create(), r;
936
+ return r.setKeys(i.map(ne)), r.setSources(t), r.create(), r;
929
937
  }
930
- function Qe(i, { getFn: t = f.getFn, fieldNormWeight: e = f.fieldNormWeight } = {}) {
938
+ function Xe(i, { getFn: t = f.getFn, fieldNormWeight: e = f.fieldNormWeight } = {}) {
931
939
  const { keys: s, records: r } = i, n = new Ct({ getFn: t, fieldNormWeight: e });
932
940
  return n.setKeys(s), n.setIndexRecords(r), n;
933
941
  }
934
- function tt(i, {
942
+ function et(i, {
935
943
  errors: t = 0,
936
944
  currentLocation: e = 0,
937
945
  expectedLocation: s = 0,
@@ -944,7 +952,7 @@ function tt(i, {
944
952
  const c = Math.abs(s - e);
945
953
  return r ? o + c / r : c ? 1 : o;
946
954
  }
947
- function Xe(i = [], t = f.minMatchCharLength) {
955
+ function Ze(i = [], t = f.minMatchCharLength) {
948
956
  let e = [], s = -1, r = -1, n = 0;
949
957
  for (let o = i.length; n < o; n += 1) {
950
958
  let c = i[n];
@@ -952,8 +960,8 @@ function Xe(i = [], t = f.minMatchCharLength) {
952
960
  }
953
961
  return i[n - 1] && n - s >= t && e.push([s, n - 1]), e;
954
962
  }
955
- const k = 32;
956
- function Ze(i, t, e, {
963
+ const N = 32;
964
+ function ts(i, t, e, {
957
965
  location: s = f.location,
958
966
  distance: r = f.distance,
959
967
  threshold: n = f.threshold,
@@ -962,57 +970,57 @@ function Ze(i, t, e, {
962
970
  includeMatches: l = f.includeMatches,
963
971
  ignoreLocation: h = f.ignoreLocation
964
972
  } = {}) {
965
- if (t.length > k)
966
- throw new Error(je(k));
973
+ if (t.length > N)
974
+ throw new Error(ze(N));
967
975
  const a = t.length, u = i.length, d = Math.max(0, Math.min(s, u));
968
976
  let p = n, g = d;
969
- const _ = c > 1 || l, I = _ ? Array(u) : [];
970
- let E;
971
- for (; (E = i.indexOf(t, g)) > -1; ) {
972
- let v = tt(t, {
973
- currentLocation: E,
977
+ const $ = c > 1 || l, L = $ ? Array(u) : [];
978
+ let S;
979
+ for (; (S = i.indexOf(t, g)) > -1; ) {
980
+ let y = et(t, {
981
+ currentLocation: S,
974
982
  expectedLocation: d,
975
983
  distance: r,
976
984
  ignoreLocation: h
977
985
  });
978
- if (p = Math.min(v, p), g = E + a, _) {
979
- let b = 0;
980
- for (; b < a; )
981
- I[E + b] = 1, b += 1;
986
+ if (p = Math.min(y, p), g = S + a, $) {
987
+ let w = 0;
988
+ for (; w < a; )
989
+ L[S + w] = 1, w += 1;
982
990
  }
983
991
  }
984
992
  g = -1;
985
- let j = [], L = 1, Z = a + u;
986
- const he = 1 << a - 1;
987
- for (let v = 0; v < a; v += 1) {
988
- let b = 0, w = Z;
989
- for (; b < w; )
990
- tt(t, {
991
- errors: v,
992
- currentLocation: d + w,
993
+ let j = [], O = 1, X = a + u;
994
+ const ue = 1 << a - 1;
995
+ for (let y = 0; y < a; y += 1) {
996
+ let w = 0, M = X;
997
+ for (; w < M; )
998
+ et(t, {
999
+ errors: y,
1000
+ currentLocation: d + M,
993
1001
  expectedLocation: d,
994
1002
  distance: r,
995
1003
  ignoreLocation: h
996
- }) <= p ? b = w : Z = w, w = Math.floor((Z - b) / 2 + b);
997
- Z = w;
998
- let Rt = Math.max(1, d - w + 1), ct = o ? u : Math.min(d + w, u) + a, F = Array(ct + 2);
999
- F[ct + 1] = (1 << v) - 1;
1000
- for (let y = ct; y >= Rt; y -= 1) {
1001
- let q = y - 1, It = e[i.charAt(q)];
1002
- if (_ && (I[q] = +!!It), F[y] = (F[y + 1] << 1 | 1) & It, v && (F[y] |= (j[y + 1] | j[y]) << 1 | 1 | j[y + 1]), F[y] & he && (L = tt(t, {
1003
- errors: v,
1004
- currentLocation: q,
1004
+ }) <= p ? w = M : X = M, M = Math.floor((X - w) / 2 + w);
1005
+ X = M;
1006
+ let It = Math.max(1, d - M + 1), ht = o ? u : Math.min(d + M, u) + a, F = Array(ht + 2);
1007
+ F[ht + 1] = (1 << y) - 1;
1008
+ for (let A = ht; A >= It; A -= 1) {
1009
+ let Z = A - 1, Lt = e[i.charAt(Z)];
1010
+ if ($ && (L[Z] = +!!Lt), F[A] = (F[A + 1] << 1 | 1) & Lt, y && (F[A] |= (j[A + 1] | j[A]) << 1 | 1 | j[A + 1]), F[A] & ue && (O = et(t, {
1011
+ errors: y,
1012
+ currentLocation: Z,
1005
1013
  expectedLocation: d,
1006
1014
  distance: r,
1007
1015
  ignoreLocation: h
1008
- }), L <= p)) {
1009
- if (p = L, g = q, g <= d)
1016
+ }), O <= p)) {
1017
+ if (p = O, g = Z, g <= d)
1010
1018
  break;
1011
- Rt = Math.max(1, 2 * d - g);
1019
+ It = Math.max(1, 2 * d - g);
1012
1020
  }
1013
1021
  }
1014
- if (tt(t, {
1015
- errors: v + 1,
1022
+ if (et(t, {
1023
+ errors: y + 1,
1016
1024
  currentLocation: d,
1017
1025
  expectedLocation: d,
1018
1026
  distance: r,
@@ -1021,18 +1029,18 @@ function Ze(i, t, e, {
1021
1029
  break;
1022
1030
  j = F;
1023
1031
  }
1024
- const lt = {
1032
+ const ct = {
1025
1033
  isMatch: g >= 0,
1026
1034
  // Count exact matches (those with a score of 0) to be "almost" exact
1027
- score: Math.max(1e-3, L)
1035
+ score: Math.max(1e-3, O)
1028
1036
  };
1029
- if (_) {
1030
- const v = Xe(I, c);
1031
- v.length ? l && (lt.indices = v) : lt.isMatch = !1;
1037
+ if ($) {
1038
+ const y = Ze(L, c);
1039
+ y.length ? l && (ct.indices = y) : ct.isMatch = !1;
1032
1040
  }
1033
- return lt;
1041
+ return ct;
1034
1042
  }
1035
- function qe(i) {
1043
+ function es(i) {
1036
1044
  let t = {};
1037
1045
  for (let e = 0, s = i.length; e < s; e += 1) {
1038
1046
  const r = i.charAt(e);
@@ -1040,7 +1048,7 @@ function qe(i) {
1040
1048
  }
1041
1049
  return t;
1042
1050
  }
1043
- class ne {
1051
+ class le {
1044
1052
  constructor(t, {
1045
1053
  location: e = f.location,
1046
1054
  threshold: s = f.threshold,
@@ -1065,18 +1073,18 @@ class ne {
1065
1073
  const a = (d, p) => {
1066
1074
  this.chunks.push({
1067
1075
  pattern: d,
1068
- alphabet: qe(d),
1076
+ alphabet: es(d),
1069
1077
  startIndex: p
1070
1078
  });
1071
1079
  }, u = this.pattern.length;
1072
- if (u > k) {
1080
+ if (u > N) {
1073
1081
  let d = 0;
1074
- const p = u % k, g = u - p;
1082
+ const p = u % N, g = u - p;
1075
1083
  for (; d < g; )
1076
- a(this.pattern.substr(d, k), d), d += k;
1084
+ a(this.pattern.substr(d, N), d), d += N;
1077
1085
  if (p) {
1078
- const _ = u - k;
1079
- a(this.pattern.substr(_), _);
1086
+ const $ = u - N;
1087
+ a(this.pattern.substr($), $);
1080
1088
  }
1081
1089
  } else
1082
1090
  a(this.pattern, 0);
@@ -1099,9 +1107,9 @@ class ne {
1099
1107
  ignoreLocation: h
1100
1108
  } = this.options;
1101
1109
  let a = [], u = 0, d = !1;
1102
- this.chunks.forEach(({ pattern: g, alphabet: _, startIndex: I }) => {
1103
- const { isMatch: E, score: j, indices: L } = Ze(t, g, _, {
1104
- location: r + I,
1110
+ this.chunks.forEach(({ pattern: g, alphabet: $, startIndex: L }) => {
1111
+ const { isMatch: S, score: j, indices: O } = ts(t, g, $, {
1112
+ location: r + L,
1105
1113
  distance: n,
1106
1114
  threshold: o,
1107
1115
  findAllMatches: c,
@@ -1109,7 +1117,7 @@ class ne {
1109
1117
  includeMatches: s,
1110
1118
  ignoreLocation: h
1111
1119
  });
1112
- E && (d = !0), u += j, E && L && (a = [...a, ...L]);
1120
+ S && (d = !0), u += j, S && O && (a = [...a, ...O]);
1113
1121
  });
1114
1122
  let p = {
1115
1123
  isMatch: d,
@@ -1118,24 +1126,24 @@ class ne {
1118
1126
  return d && s && (p.indices = a), p;
1119
1127
  }
1120
1128
  }
1121
- class R {
1129
+ class I {
1122
1130
  constructor(t) {
1123
1131
  this.pattern = t;
1124
1132
  }
1125
1133
  static isMultiMatch(t) {
1126
- return Vt(t, this.multiRegex);
1134
+ return Yt(t, this.multiRegex);
1127
1135
  }
1128
1136
  static isSingleMatch(t) {
1129
- return Vt(t, this.singleRegex);
1137
+ return Yt(t, this.singleRegex);
1130
1138
  }
1131
1139
  search() {
1132
1140
  }
1133
1141
  }
1134
- function Vt(i, t) {
1142
+ function Yt(i, t) {
1135
1143
  const e = i.match(t);
1136
1144
  return e ? e[1] : null;
1137
1145
  }
1138
- class ts extends R {
1146
+ class ss extends I {
1139
1147
  constructor(t) {
1140
1148
  super(t);
1141
1149
  }
@@ -1157,7 +1165,7 @@ class ts extends R {
1157
1165
  };
1158
1166
  }
1159
1167
  }
1160
- class es extends R {
1168
+ class is extends I {
1161
1169
  constructor(t) {
1162
1170
  super(t);
1163
1171
  }
@@ -1179,7 +1187,7 @@ class es extends R {
1179
1187
  };
1180
1188
  }
1181
1189
  }
1182
- class ss extends R {
1190
+ class rs extends I {
1183
1191
  constructor(t) {
1184
1192
  super(t);
1185
1193
  }
@@ -1201,7 +1209,7 @@ class ss extends R {
1201
1209
  };
1202
1210
  }
1203
1211
  }
1204
- class is extends R {
1212
+ class ns extends I {
1205
1213
  constructor(t) {
1206
1214
  super(t);
1207
1215
  }
@@ -1223,7 +1231,7 @@ class is extends R {
1223
1231
  };
1224
1232
  }
1225
1233
  }
1226
- class rs extends R {
1234
+ class os extends I {
1227
1235
  constructor(t) {
1228
1236
  super(t);
1229
1237
  }
@@ -1245,7 +1253,7 @@ class rs extends R {
1245
1253
  };
1246
1254
  }
1247
1255
  }
1248
- class ns extends R {
1256
+ class ls extends I {
1249
1257
  constructor(t) {
1250
1258
  super(t);
1251
1259
  }
@@ -1267,7 +1275,7 @@ class ns extends R {
1267
1275
  };
1268
1276
  }
1269
1277
  }
1270
- class oe extends R {
1278
+ class ce extends I {
1271
1279
  constructor(t, {
1272
1280
  location: e = f.location,
1273
1281
  threshold: s = f.threshold,
@@ -1278,7 +1286,7 @@ class oe extends R {
1278
1286
  isCaseSensitive: l = f.isCaseSensitive,
1279
1287
  ignoreLocation: h = f.ignoreLocation
1280
1288
  } = {}) {
1281
- super(t), this._bitapSearch = new ne(t, {
1289
+ super(t), this._bitapSearch = new le(t, {
1282
1290
  location: e,
1283
1291
  threshold: s,
1284
1292
  distance: r,
@@ -1302,7 +1310,7 @@ class oe extends R {
1302
1310
  return this._bitapSearch.searchIn(t);
1303
1311
  }
1304
1312
  }
1305
- class le extends R {
1313
+ class he extends I {
1306
1314
  constructor(t) {
1307
1315
  super(t);
1308
1316
  }
@@ -1328,30 +1336,30 @@ class le extends R {
1328
1336
  };
1329
1337
  }
1330
1338
  }
1331
- const At = [
1332
- ts,
1333
- le,
1339
+ const Et = [
1334
1340
  ss,
1335
- is,
1336
- ns,
1341
+ he,
1337
1342
  rs,
1338
- es,
1339
- oe
1340
- ], Yt = At.length, os = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, ls = "|";
1341
- function cs(i, t = {}) {
1342
- return i.split(ls).map((e) => {
1343
- let s = e.trim().split(os).filter((n) => n && !!n.trim()), r = [];
1343
+ ns,
1344
+ ls,
1345
+ os,
1346
+ is,
1347
+ ce
1348
+ ], Gt = Et.length, cs = / +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/, hs = "|";
1349
+ function as(i, t = {}) {
1350
+ return i.split(hs).map((e) => {
1351
+ let s = e.trim().split(cs).filter((n) => n && !!n.trim()), r = [];
1344
1352
  for (let n = 0, o = s.length; n < o; n += 1) {
1345
1353
  const c = s[n];
1346
1354
  let l = !1, h = -1;
1347
- for (; !l && ++h < Yt; ) {
1348
- const a = At[h];
1355
+ for (; !l && ++h < Gt; ) {
1356
+ const a = Et[h];
1349
1357
  let u = a.isMultiMatch(c);
1350
1358
  u && (r.push(new a(u, t)), l = !0);
1351
1359
  }
1352
1360
  if (!l)
1353
- for (h = -1; ++h < Yt; ) {
1354
- const a = At[h];
1361
+ for (h = -1; ++h < Gt; ) {
1362
+ const a = Et[h];
1355
1363
  let u = a.isSingleMatch(c);
1356
1364
  if (u) {
1357
1365
  r.push(new a(u, t));
@@ -1362,8 +1370,8 @@ function cs(i, t = {}) {
1362
1370
  return r;
1363
1371
  });
1364
1372
  }
1365
- const hs = /* @__PURE__ */ new Set([oe.type, le.type]);
1366
- class as {
1373
+ const us = /* @__PURE__ */ new Set([ce.type, he.type]);
1374
+ class ds {
1367
1375
  constructor(t, {
1368
1376
  isCaseSensitive: e = f.isCaseSensitive,
1369
1377
  includeMatches: s = f.includeMatches,
@@ -1383,7 +1391,7 @@ class as {
1383
1391
  location: c,
1384
1392
  threshold: l,
1385
1393
  distance: h
1386
- }, this.pattern = e ? t : t.toLowerCase(), this.query = cs(this.pattern, this.options);
1394
+ }, this.pattern = e ? t : t.toLowerCase(), this.query = as(this.pattern, this.options);
1387
1395
  }
1388
1396
  static condition(t, e) {
1389
1397
  return e.useExtendedSearch;
@@ -1402,11 +1410,11 @@ class as {
1402
1410
  const a = e[l];
1403
1411
  o.length = 0, n = 0;
1404
1412
  for (let u = 0, d = a.length; u < d; u += 1) {
1405
- const p = a[u], { isMatch: g, indices: _, score: I } = p.search(t);
1413
+ const p = a[u], { isMatch: g, indices: $, score: L } = p.search(t);
1406
1414
  if (g) {
1407
- if (n += 1, c += I, s) {
1408
- const E = p.constructor.type;
1409
- hs.has(E) ? o = [...o, ..._] : o.push(_);
1415
+ if (n += 1, c += L, s) {
1416
+ const S = p.constructor.type;
1417
+ us.has(S) ? o = [...o, ...$] : o.push($);
1410
1418
  }
1411
1419
  } else {
1412
1420
  c = 0, n = 0, o.length = 0;
@@ -1427,44 +1435,44 @@ class as {
1427
1435
  };
1428
1436
  }
1429
1437
  }
1430
- const Et = [];
1431
- function us(...i) {
1432
- Et.push(...i);
1438
+ const xt = [];
1439
+ function fs(...i) {
1440
+ xt.push(...i);
1433
1441
  }
1434
- function xt(i, t) {
1435
- for (let e = 0, s = Et.length; e < s; e += 1) {
1436
- let r = Et[e];
1442
+ function St(i, t) {
1443
+ for (let e = 0, s = xt.length; e < s; e += 1) {
1444
+ let r = xt[e];
1437
1445
  if (r.condition(i, t))
1438
1446
  return new r(i, t);
1439
1447
  }
1440
- return new ne(i, t);
1448
+ return new le(i, t);
1441
1449
  }
1442
- const rt = {
1450
+ const nt = {
1443
1451
  AND: "$and",
1444
1452
  OR: "$or"
1445
- }, St = {
1453
+ }, bt = {
1446
1454
  PATH: "$path",
1447
1455
  PATTERN: "$val"
1448
- }, bt = (i) => !!(i[rt.AND] || i[rt.OR]), ds = (i) => !!i[St.PATH], fs = (i) => !S(i) && ee(i) && !bt(i), Gt = (i) => ({
1449
- [rt.AND]: Object.keys(i).map((t) => ({
1456
+ }, wt = (i) => !!(i[nt.AND] || i[nt.OR]), ps = (i) => !!i[bt.PATH], gs = (i) => !b(i) && ie(i) && !wt(i), Jt = (i) => ({
1457
+ [nt.AND]: Object.keys(i).map((t) => ({
1450
1458
  [t]: i[t]
1451
1459
  }))
1452
1460
  });
1453
- function ce(i, t, { auto: e = !0 } = {}) {
1461
+ function ae(i, t, { auto: e = !0 } = {}) {
1454
1462
  const s = (r) => {
1455
1463
  let n = Object.keys(r);
1456
- const o = ds(r);
1457
- if (!o && n.length > 1 && !bt(r))
1458
- return s(Gt(r));
1459
- if (fs(r)) {
1460
- const l = o ? r[St.PATH] : n[0], h = o ? r[St.PATTERN] : r[l];
1461
- if (!A(h))
1462
- throw new Error(He(l));
1464
+ const o = ps(r);
1465
+ if (!o && n.length > 1 && !wt(r))
1466
+ return s(Jt(r));
1467
+ if (gs(r)) {
1468
+ const l = o ? r[bt.PATH] : n[0], h = o ? r[bt.PATTERN] : r[l];
1469
+ if (!x(h))
1470
+ throw new Error(Fe(l));
1463
1471
  const a = {
1464
- keyId: yt(l),
1472
+ keyId: At(l),
1465
1473
  pattern: h
1466
1474
  };
1467
- return e && (a.searcher = xt(h, t)), a;
1475
+ return e && (a.searcher = St(h, t)), a;
1468
1476
  }
1469
1477
  let c = {
1470
1478
  children: [],
@@ -1472,14 +1480,14 @@ function ce(i, t, { auto: e = !0 } = {}) {
1472
1480
  };
1473
1481
  return n.forEach((l) => {
1474
1482
  const h = r[l];
1475
- S(h) && h.forEach((a) => {
1483
+ b(h) && h.forEach((a) => {
1476
1484
  c.children.push(s(a));
1477
1485
  });
1478
1486
  }), c;
1479
1487
  };
1480
- return bt(i) || (i = Gt(i)), s(i);
1488
+ return wt(i) || (i = Jt(i)), s(i);
1481
1489
  }
1482
- function ps(i, { ignoreFieldNorm: t = f.ignoreFieldNorm }) {
1490
+ function _s(i, { ignoreFieldNorm: t = f.ignoreFieldNorm }) {
1483
1491
  i.forEach((e) => {
1484
1492
  let s = 1;
1485
1493
  e.matches.forEach(({ key: r, norm: n, score: o }) => {
@@ -1491,10 +1499,10 @@ function ps(i, { ignoreFieldNorm: t = f.ignoreFieldNorm }) {
1491
1499
  }), e.score = s;
1492
1500
  });
1493
1501
  }
1494
- function gs(i, t) {
1502
+ function ms(i, t) {
1495
1503
  const e = i.matches;
1496
- t.matches = [], $(e) && e.forEach((s) => {
1497
- if (!$(s.indices) || !s.indices.length)
1504
+ t.matches = [], v(e) && e.forEach((s) => {
1505
+ if (!v(s.indices) || !s.indices.length)
1498
1506
  return;
1499
1507
  const { indices: r, value: n } = s;
1500
1508
  let o = {
@@ -1504,15 +1512,15 @@ function gs(i, t) {
1504
1512
  s.key && (o.key = s.key.src), s.idx > -1 && (o.refIndex = s.idx), t.matches.push(o);
1505
1513
  });
1506
1514
  }
1507
- function ms(i, t) {
1515
+ function $s(i, t) {
1508
1516
  t.score = i.score;
1509
1517
  }
1510
- function _s(i, t, {
1518
+ function vs(i, t, {
1511
1519
  includeMatches: e = f.includeMatches,
1512
1520
  includeScore: s = f.includeScore
1513
1521
  } = {}) {
1514
1522
  const r = [];
1515
- return e && r.push(gs), s && r.push(ms), i.map((n) => {
1523
+ return e && r.push(ms), s && r.push($s), i.map((n) => {
1516
1524
  const { idx: o } = n, c = {
1517
1525
  item: t[o],
1518
1526
  refIndex: o
@@ -1524,18 +1532,18 @@ function _s(i, t, {
1524
1532
  }
1525
1533
  class W {
1526
1534
  constructor(t, e = {}, s) {
1527
- this.options = { ...f, ...e }, this.options.useExtendedSearch, this._keyStore = new De(this.options.keys), this.setCollection(t, s);
1535
+ this.options = { ...f, ...e }, this.options.useExtendedSearch, this._keyStore = new We(this.options.keys), this.setCollection(t, s);
1528
1536
  }
1529
1537
  setCollection(t, e) {
1530
1538
  if (this._docs = t, e && !(e instanceof Ct))
1531
- throw new Error(Ue);
1532
- this._myIndex = e || re(this.options.keys, this._docs, {
1539
+ throw new Error(je);
1540
+ this._myIndex = e || oe(this.options.keys, this._docs, {
1533
1541
  getFn: this.options.getFn,
1534
1542
  fieldNormWeight: this.options.fieldNormWeight
1535
1543
  });
1536
1544
  }
1537
1545
  add(t) {
1538
- $(t) && (this._docs.push(t), this._myIndex.add(t));
1546
+ v(t) && (this._docs.push(t), this._myIndex.add(t));
1539
1547
  }
1540
1548
  remove(t = () => !1) {
1541
1549
  const e = [];
@@ -1559,16 +1567,16 @@ class W {
1559
1567
  sortFn: o,
1560
1568
  ignoreFieldNorm: c
1561
1569
  } = this.options;
1562
- let l = A(t) ? A(this._docs[0]) ? this._searchStringList(t) : this._searchObjectList(t) : this._searchLogical(t);
1563
- return ps(l, { ignoreFieldNorm: c }), n && l.sort(o), te(e) && e > -1 && (l = l.slice(0, e)), _s(l, this._docs, {
1570
+ let l = x(t) ? x(this._docs[0]) ? this._searchStringList(t) : this._searchObjectList(t) : this._searchLogical(t);
1571
+ return _s(l, { ignoreFieldNorm: c }), n && l.sort(o), se(e) && e > -1 && (l = l.slice(0, e)), vs(l, this._docs, {
1564
1572
  includeMatches: s,
1565
1573
  includeScore: r
1566
1574
  });
1567
1575
  }
1568
1576
  _searchStringList(t) {
1569
- const e = xt(t, this.options), { records: s } = this._myIndex, r = [];
1577
+ const e = St(t, this.options), { records: s } = this._myIndex, r = [];
1570
1578
  return s.forEach(({ v: n, i: o, n: c }) => {
1571
- if (!$(n))
1579
+ if (!v(n))
1572
1580
  return;
1573
1581
  const { isMatch: l, score: h, indices: a } = e.searchIn(n);
1574
1582
  l && r.push({
@@ -1579,7 +1587,7 @@ class W {
1579
1587
  }), r;
1580
1588
  }
1581
1589
  _searchLogical(t) {
1582
- const e = ce(t, this.options), s = (c, l, h) => {
1590
+ const e = ae(t, this.options), s = (c, l, h) => {
1583
1591
  if (!c.children) {
1584
1592
  const { keyId: u, searcher: d } = c, p = this._findMatches({
1585
1593
  key: this._keyStore.get(u),
@@ -1599,13 +1607,13 @@ class W {
1599
1607
  const p = c.children[u], g = s(p, l, h);
1600
1608
  if (g.length)
1601
1609
  a.push(...g);
1602
- else if (c.operator === rt.AND)
1610
+ else if (c.operator === nt.AND)
1603
1611
  return [];
1604
1612
  }
1605
1613
  return a;
1606
1614
  }, r = this._myIndex.records, n = {}, o = [];
1607
1615
  return r.forEach(({ $: c, i: l }) => {
1608
- if ($(c)) {
1616
+ if (v(c)) {
1609
1617
  let h = s(e, c, l);
1610
1618
  h.length && (n[l] || (n[l] = { idx: l, item: c, matches: [] }, o.push(n[l])), h.forEach(({ matches: a }) => {
1611
1619
  n[l].matches.push(...a);
@@ -1614,9 +1622,9 @@ class W {
1614
1622
  }), o;
1615
1623
  }
1616
1624
  _searchObjectList(t) {
1617
- const e = xt(t, this.options), { keys: s, records: r } = this._myIndex, n = [];
1625
+ const e = St(t, this.options), { keys: s, records: r } = this._myIndex, n = [];
1618
1626
  return r.forEach(({ $: o, i: c }) => {
1619
- if (!$(o))
1627
+ if (!v(o))
1620
1628
  return;
1621
1629
  let l = [];
1622
1630
  s.forEach((h, a) => {
@@ -1635,12 +1643,12 @@ class W {
1635
1643
  }), n;
1636
1644
  }
1637
1645
  _findMatches({ key: t, value: e, searcher: s }) {
1638
- if (!$(e))
1646
+ if (!v(e))
1639
1647
  return [];
1640
1648
  let r = [];
1641
- if (S(e))
1649
+ if (b(e))
1642
1650
  e.forEach(({ v: n, i: o, n: c }) => {
1643
- if (!$(n))
1651
+ if (!v(n))
1644
1652
  return;
1645
1653
  const { isMatch: l, score: h, indices: a } = s.searchIn(n);
1646
1654
  l && r.push({
@@ -1660,12 +1668,12 @@ class W {
1660
1668
  }
1661
1669
  }
1662
1670
  W.version = "6.6.2";
1663
- W.createIndex = re;
1664
- W.parseIndex = Qe;
1671
+ W.createIndex = oe;
1672
+ W.parseIndex = Xe;
1665
1673
  W.config = f;
1666
- W.parseQuery = ce;
1667
- us(as);
1668
- const $s = (i, t = "highlight", e = "title") => {
1674
+ W.parseQuery = ae;
1675
+ fs(ds);
1676
+ const ys = (i, t = "highlight", e = "title") => {
1669
1677
  const s = (n, o, c) => {
1670
1678
  const l = o.split(".");
1671
1679
  let h;
@@ -1694,7 +1702,7 @@ const $s = (i, t = "highlight", e = "title") => {
1694
1702
  );
1695
1703
  }), c;
1696
1704
  });
1697
- }, vs = `
1705
+ }, As = `
1698
1706
  :host {
1699
1707
  display: flex;
1700
1708
  box-sizing: border-box;
@@ -1804,39 +1812,87 @@ ul#results {
1804
1812
  ul#results li {
1805
1813
  padding-left: 0.5rem;
1806
1814
  }
1815
+ #filter-reset {
1816
+ cursor: pointer;
1817
+ }
1807
1818
  .scroll {
1808
1819
  height: 100%;
1809
1820
  overflow-x: hidden;
1810
1821
  overflow-y: auto;
1811
1822
  }
1812
1823
  `;
1813
- var ys = Object.defineProperty, As = Object.getOwnPropertyDescriptor, H = (i, t, e, s) => {
1814
- for (var r = s > 1 ? void 0 : s ? As(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1824
+ var Es = Object.defineProperty, xs = Object.getOwnPropertyDescriptor, H = (i, t, e, s) => {
1825
+ for (var r = s > 1 ? void 0 : s ? xs(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1815
1826
  (o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
1816
- return s && r && ys(t, e, r), r;
1827
+ return s && r && Es(t, e, r), r;
1817
1828
  };
1829
+ class qt {
1830
+ constructor() {
1831
+ /**
1832
+ * Aggregate results by a property key
1833
+ */
1834
+ m(this, "aggregateResults");
1835
+ /**
1836
+ * Highlighting of search result character matches
1837
+ */
1838
+ m(this, "enableHighlighting", !1);
1839
+ /**
1840
+ * Search functionality
1841
+ */
1842
+ m(this, "enableSearch", !1);
1843
+ /**
1844
+ * Display results list
1845
+ */
1846
+ m(this, "showResults", !0);
1847
+ /**
1848
+ * Make the filters mutually exclusive
1849
+ */
1850
+ m(this, "exclusiveFilters", !1);
1851
+ /**
1852
+ * The filter properties.
1853
+ * @param filterProperties
1854
+ */
1855
+ m(this, "filterProperties", []);
1856
+ /**
1857
+ * Native fuse.js config override
1858
+ */
1859
+ m(this, "fuseConfig", {
1860
+ keys: ["title"]
1861
+ });
1862
+ /**
1863
+ * Show all result items if nothing is input by the user
1864
+ * @default true
1865
+ */
1866
+ m(this, "matchAllWhenEmpty", !0);
1867
+ /**
1868
+ * Callback that is triggered on item search
1869
+ * @returns result items
1870
+ */
1871
+ m(this, "onSearch", () => {
1872
+ });
1873
+ /**
1874
+ * Callback that is triggered on item selection
1875
+ * @returns selected item
1876
+ */
1877
+ m(this, "onSelect", () => {
1878
+ });
1879
+ /**
1880
+ * The property of the result items used for display
1881
+ */
1882
+ m(this, "titleProperty", "title");
1883
+ }
1884
+ }
1818
1885
  let C = class extends Y {
1819
1886
  constructor() {
1820
1887
  super(...arguments);
1821
- x(this, "_fuse");
1822
- x(this, "_resultAggregation", []);
1823
- x(this, "_items", []);
1824
- x(this, "_results", []);
1825
- x(this, "_filters", {});
1826
- x(this, "_selectedResult");
1827
- x(this, "config", {
1828
- titleProperty: "title",
1829
- filterProperties: ["themes"],
1830
- aggregateResults: "themes",
1831
- fuseConfig: {},
1832
- enableSearch: !0,
1833
- enableHighlighting: !1,
1834
- onSelect: () => {
1835
- },
1836
- matchAllWhenEmpty: !0,
1837
- exclusiveFilters: !1
1838
- });
1839
- x(this, "apply", (t) => {
1888
+ m(this, "_fuse");
1889
+ m(this, "_resultAggregation", []);
1890
+ m(this, "_items", []);
1891
+ m(this, "_results", []);
1892
+ m(this, "_filters", {});
1893
+ m(this, "_selectedResult");
1894
+ m(this, "_config", new qt());
1895
+ m(this, "apply", (t) => {
1840
1896
  this._items = t.map((e, s) => ({
1841
1897
  ...e,
1842
1898
  id: `item-${s}`
@@ -1847,21 +1903,31 @@ let C = class extends Y {
1847
1903
  distance: 50,
1848
1904
  includeMatches: !0,
1849
1905
  useExtendedSearch: !0,
1850
- ...this.config.fuseConfig
1851
- }), this.config.filterProperties.forEach((e) => {
1906
+ ...this._config.fuseConfig
1907
+ }), this._config.filterProperties.length && this._config.filterProperties.forEach((e) => {
1852
1908
  const s = {};
1853
1909
  this._items.forEach((r) => {
1854
1910
  Array.isArray(r[e]) ? r[e].forEach((n) => {
1855
1911
  s[n] = void 0;
1856
1912
  }) : s[r[e]] = void 0;
1857
1913
  }), this._filters[e] = s;
1858
- }), this.config.matchAllWhenEmpty !== !1 && (this._results = this.sortResults(this._items), this.requestUpdate()), this.config.aggregateResults && (this._resultAggregation = [
1914
+ }), this._config.matchAllWhenEmpty !== !1 && (this._results = this.sortResults(this._items), this.requestUpdate()), this._config.aggregateResults && (this._resultAggregation = [
1859
1915
  ...new Set(
1860
- this._items.reduce((e, s) => e.concat(s[this.config.aggregateResults]), [])
1916
+ this._items.reduce((e, s) => e.concat(s[this._config.aggregateResults]), [])
1861
1917
  )
1862
1918
  ].sort());
1863
1919
  });
1864
1920
  }
1921
+ set config(t) {
1922
+ const e = this._config;
1923
+ this._config = {
1924
+ ...new qt(),
1925
+ ...t
1926
+ }, this.requestUpdate("config", e);
1927
+ }
1928
+ get config() {
1929
+ return this._config;
1930
+ }
1865
1931
  search(t = "", e = this._filters) {
1866
1932
  const s = Object.entries(e).reduce(
1867
1933
  (n, [o, c]) => {
@@ -1874,16 +1940,20 @@ let C = class extends Y {
1874
1940
  []
1875
1941
  );
1876
1942
  let r;
1877
- if (!(t.length > 2) && !s.length && this.config.matchAllWhenEmpty !== !1)
1943
+ if (!(t.length > 2) && !s.length && this._config.matchAllWhenEmpty !== !1)
1878
1944
  r = this._items;
1879
1945
  else {
1880
1946
  const n = {
1881
1947
  ...t.length > 2 && s.length ? {
1882
1948
  $and: [
1883
- // @ts-ignore
1884
- ...this.config.fuseConfig.keys.map((c) => ({
1885
- [c]: t
1886
- })),
1949
+ {
1950
+ $or: [
1951
+ // @ts-ignore
1952
+ ...this._config.fuseConfig.keys.map((c) => ({
1953
+ [c]: t
1954
+ }))
1955
+ ]
1956
+ },
1887
1957
  {
1888
1958
  $or: s
1889
1959
  }
@@ -1891,7 +1961,7 @@ let C = class extends Y {
1891
1961
  } : {
1892
1962
  $or: [
1893
1963
  // @ts-ignore
1894
- ...this.config.fuseConfig.keys.map((c) => ({
1964
+ ...this._config.fuseConfig.keys.map((c) => ({
1895
1965
  [c]: t
1896
1966
  })),
1897
1967
  {
@@ -1900,214 +1970,265 @@ let C = class extends Y {
1900
1970
  ]
1901
1971
  }
1902
1972
  }, o = this._fuse.search(n);
1903
- r = this.config.enableHighlighting ? $s(o, "highlight", this.config.titleProperty) : o.map((c) => c.item);
1973
+ r = this._config.enableHighlighting ? ys(o, "highlight", this._config.titleProperty) : o.map((c) => c.item);
1904
1974
  }
1905
- this._results = this.sortResults(r), this.requestUpdate();
1975
+ this._results = this.sortResults(r), this._config.onSearch(r), this.requestUpdate();
1906
1976
  }
1907
1977
  aggregateResults(t, e) {
1908
1978
  return t.filter((s) => {
1909
- const r = s[this.config.aggregateResults];
1910
- return Array.isArray(r) ? r.includes(e) : r === e;
1979
+ const r = s[this._config.aggregateResults], n = Object.keys(
1980
+ // @ts-ignore
1981
+ this._filters[this._config.aggregateResults]
1982
+ // @ts-ignore
1983
+ ).filter((c) => this._filters[this._config.aggregateResults][c]);
1984
+ return (n.length ? (
1985
+ // @ts-ignore
1986
+ n.includes(e)
1987
+ ) : !0) && Array.isArray(r) ? r.includes(e) : r === e;
1911
1988
  });
1912
1989
  }
1913
1990
  sortResults(t) {
1914
1991
  return [...t].sort(
1915
1992
  (e, s) => (
1916
1993
  // @ts-ignore
1917
- e[this.config.titleProperty] < s[this.config.titleProperty] ? -1 : 1
1994
+ e[this._config.titleProperty] < s[this._config.titleProperty] ? -1 : 1
1918
1995
  )
1919
1996
  );
1920
1997
  }
1921
1998
  toggleFilter(t, e) {
1922
- this.config.exclusiveFilters === !0 && Object.keys(this._filters).forEach((r) => {
1923
- Object.keys(this._filters[r]).forEach((n) => {
1924
- this._filters[r][n] = !1;
1999
+ this._config.exclusiveFilters === !0 && Object.keys(this._filters).forEach((n) => {
2000
+ Object.keys(this._filters[n]).forEach((o) => {
2001
+ this._filters[n][o] = !1;
1925
2002
  });
1926
- }), this._filters[t][e] = !this._filters[t][e], this.search();
1927
- const s = this.renderRoot.querySelectorAll(
2003
+ }), this._filters[t][e] = !this._filters[t][e];
2004
+ const s = this.renderRoot.querySelector('input[type="text"]');
2005
+ s ? this.search(s.value) : this.search();
2006
+ const r = this.renderRoot.querySelectorAll(
1928
2007
  "ul#results input[type='radio']"
1929
2008
  );
1930
- for (let r = 0; r < s.length; r++)
1931
- s[r].checked = !1;
1932
- setTimeout(() => {
1933
- const r = this.renderRoot.querySelector(
2009
+ for (let n = 0; n < r.length; n++)
2010
+ r[n].checked = !1;
2011
+ this._selectedResult && setTimeout(() => {
2012
+ const n = this.renderRoot.querySelector(
1934
2013
  // @ts-ignore
1935
2014
  `#${this._selectedResult.id}`
1936
2015
  );
1937
- r && (r.checked = !0, this.requestUpdate());
2016
+ n && (n.checked = !0, this.requestUpdate());
2017
+ });
2018
+ }
2019
+ resetFilters() {
2020
+ this.renderRoot.querySelectorAll("#details-filter input").forEach((e) => {
2021
+ e.checked = !1;
1938
2022
  });
2023
+ const t = this.renderRoot.querySelector('input[type="text"]');
2024
+ t && (t.value = ""), Object.keys(this._filters).forEach((e) => {
2025
+ Object.keys(this._filters[e]).forEach((s) => {
2026
+ this._filters[e][s] = !1;
2027
+ });
2028
+ }), this.search(), this.requestUpdate();
1939
2029
  }
1940
2030
  render() {
1941
- return O`
2031
+ return E`
1942
2032
  <style>
1943
- ${vs}
2033
+ ${As}
1944
2034
  </style>
1945
2035
  <form>
1946
- <section>
1947
- <input
1948
- type="text"
1949
- placeholder="Search"
1950
- style="display:${this.config.enableSearch ? "block" : "none"}"
1951
- @input="${(t) => this.search(t.target.value)}"
1952
- />
1953
- </section>
1954
- <section>
1955
- <slot name="filterstitle"></slot>
1956
- <ul id="filters">
1957
- ${V(
1958
- this.config.filterProperties,
1959
- (t) => O`
1960
- <details
1961
- id="details-filter"
1962
- data-filter="${t}"
1963
- @click=${() => this.renderRoot.querySelectorAll("details#details-filter").forEach((e) => {
1964
- e.getAttribute("data-filter") !== t && (e.removeAttribute("open"), this.requestUpdate());
1965
- })}
1966
- >
1967
- <summary>
1968
- <small>
1969
- <strong class="title"> ${t} </strong>
1970
- </small>
1971
- <div>
1972
- <svg
1973
- xmlns="http://www.w3.org/2000/svg"
1974
- viewBox="0 0 24 24"
1975
- >
1976
- <title>chevron-down</title>
1977
- <path
1978
- d="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
1979
- />
1980
- </svg>
1981
- </div>
1982
- </summary>
1983
- <div class="scroll" style="max-height: 150px">
1984
- <ul>
1985
- ${// @ts-ignore
1986
- this._filters[t] ? V(
1987
- // @ts-ignore
1988
- Object.keys(this._filters[t]).sort(),
1989
- (e) => O`
2036
+ ${tt(
2037
+ this._config.enableSearch,
2038
+ () => E`
2039
+ <section>
2040
+ <input
2041
+ type="text"
2042
+ placeholder="Search"
2043
+ data-cy="search"
2044
+ @input="${(t) => this.search(t.target.value)}"
2045
+ />
2046
+ </section>
2047
+ `
2048
+ )}
2049
+ ${tt(
2050
+ this._config.filterProperties.length,
2051
+ () => E`
2052
+ <section>
2053
+ <slot name="filterstitle"></slot>
2054
+ <ul id="filters">
2055
+ ${K(
2056
+ this._config.filterProperties,
2057
+ (t) => E`
2058
+ <details
2059
+ id="details-filter"
2060
+ data-filter="${t}"
2061
+ @click=${() => this.renderRoot.querySelectorAll("details#details-filter").forEach((e) => {
2062
+ e.getAttribute("data-filter") !== t && (e.removeAttribute("open"), this.requestUpdate());
2063
+ })}
2064
+ >
2065
+ <summary>
2066
+ <small>
2067
+ <strong class="title"> ${t} </strong>
2068
+ </small>
2069
+ <div>
2070
+ <svg
2071
+ data-cy="expand-button"
2072
+ xmlns="http://www.w3.org/2000/svg"
2073
+ viewBox="0 0 24 24"
2074
+ >
2075
+ <title>chevron-down</title>
2076
+ <path
2077
+ d="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
2078
+ />
2079
+ </svg>
2080
+ </div>
2081
+ </summary>
2082
+ <div class="scroll" style="max-height: 150px">
2083
+ <ul>
2084
+ ${// @ts-ignore
2085
+ this._filters[t] ? K(
2086
+ // @ts-ignore
2087
+ Object.keys(this._filters[t]).sort(),
2088
+ (e) => E`
2089
+ <li>
2090
+ <label>
2091
+ <input
2092
+ name="selection"
2093
+ type="${this._config.exclusiveFilters === !0 ? "radio" : "checkbox"}"
2094
+ checked="${// @ts-ignore
2095
+ this._filters[t][e] || _}"
2096
+ @click=${() => this.toggleFilter(t, e)}
2097
+ />
2098
+ <span class="title">${e}</span>
2099
+ </label>
2100
+ </li>
2101
+ `
2102
+ ) : null}
2103
+ </ul>
2104
+ </div>
2105
+ </details>
2106
+ `
2107
+ )}
2108
+ </ul>
2109
+ ${tt(
2110
+ this._config.filterProperties,
2111
+ () => E`
2112
+ <a
2113
+ id="filter-reset"
2114
+ data-cy="filter-reset"
2115
+ @click=${() => this.resetFilters()}
2116
+ ><small>Reset filters</small></a
2117
+ >
2118
+ `
2119
+ )}
2120
+ </section>
2121
+ `
2122
+ )}
2123
+ ${tt(
2124
+ this.config.showResults,
2125
+ () => E`
2126
+ <section id="section-results">
2127
+ <div>
2128
+ <slot name="resultstitle"></slot>
2129
+ </div>
2130
+ <div id="container-results" class="scroll">
2131
+ ${this._results.length < 1 ? E` <small class="no-results">No matching items</small> ` : _}
2132
+ <ul id="results">
2133
+ ${this._config.aggregateResults ? K(
2134
+ this._resultAggregation.filter(
2135
+ (t) => this.aggregateResults(
2136
+ this._results,
2137
+ t
2138
+ ).length
2139
+ ),
2140
+ (t) => E`<details
2141
+ id="details-results"
2142
+ open
2143
+ >
2144
+ <summary>
2145
+ <svg
2146
+ xmlns="http://www.w3.org/2000/svg"
2147
+ viewBox="0 0 24 24"
2148
+ >
2149
+ <title>chevron-down</title>
2150
+ <path
2151
+ d="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
2152
+ />
2153
+ </svg>
2154
+ <strong class="title">
2155
+ ${t}
2156
+ </strong>
2157
+ <span style="margin-left: 0.25rem"
2158
+ >(${this.aggregateResults(
2159
+ this._results,
2160
+ t
2161
+ ).length})</span
2162
+ >
2163
+ </summary>
2164
+ <ul>
2165
+ ${K(
2166
+ this.aggregateResults(
2167
+ this._results,
2168
+ t
2169
+ ),
2170
+ // @ts-ignore
2171
+ (e) => E`
1990
2172
  <li>
1991
2173
  <label>
1992
2174
  <input
1993
- name="selection"
1994
- type="${this.config.exclusiveFilters === !0 ? "radio" : "checkbox"}"
1995
- checked="${// @ts-ignore
1996
- this._filters[t][e] || m}"
1997
- @click=${() => this.toggleFilter(t, e)}
2175
+ type="radio"
2176
+ name="result"
2177
+ id="${// @ts-ignore
2178
+ e.id}"
2179
+ @click=${() => {
2180
+ this._selectedResult = e, this._config.onSelect(e);
2181
+ }}
1998
2182
  />
1999
- <span class="title">${e}</span>
2183
+ <span class="title"
2184
+ >${Wt(
2185
+ // @ts-ignore
2186
+ e[this._config.titleProperty]
2187
+ )}</span
2188
+ >
2000
2189
  </label>
2001
2190
  </li>
2002
2191
  `
2003
- ) : null}
2004
- </ul>
2005
- </div>
2006
- </details>
2007
- `
2008
- )}
2009
- </ul>
2010
- </section>
2011
- <section id="section-results">
2012
- <div>
2013
- <slot name="resultstitle"></slot>
2014
- </div>
2015
- <div id="container-results" class="scroll">
2016
- ${this._results.length < 1 ? O` <small class="no-results">No matching items</small> ` : m}
2017
- <ul id="results">
2018
- ${this.config.aggregateResults ? V(
2019
- this._resultAggregation.filter(
2020
- (t) => this.aggregateResults(
2021
- this._results,
2022
- t
2023
- ).length
2024
- ),
2025
- (t) => O`<details
2026
- id="details-results"
2027
- open
2028
- >
2029
- <summary>
2030
- <svg
2031
- xmlns="http://www.w3.org/2000/svg"
2032
- viewBox="0 0 24 24"
2033
- >
2034
- <title>chevron-down</title>
2035
- <path
2036
- d="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"
2037
- />
2038
- </svg>
2039
- <strong class="title"> ${t} </strong>
2040
- <span style="margin-left: 0.25rem"
2041
- >(${this.aggregateResults(
2192
+ )}
2193
+ </ul>
2194
+ </details>`
2195
+ ) : K(
2042
2196
  this._results,
2043
- t
2044
- ).length})</span
2045
- >
2046
- </summary>
2047
- <ul>
2048
- ${V(
2049
- this.aggregateResults(
2050
- this._results,
2051
- t
2052
- ),
2053
2197
  // @ts-ignore
2054
- (e) => O`
2055
- <li>
2056
- <label>
2057
- <input
2058
- type="radio"
2059
- name="result"
2060
- id="${// @ts-ignore
2061
- e.id}"
2062
- @click=${() => {
2063
- this._selectedResult = e, this.config.onSelect(e);
2064
- }}
2065
- />
2066
- <span class="title"
2067
- >${// @ts-ignore
2068
- Bt(e[this.config.titleProperty])}</span
2069
- >
2070
- </label>
2071
- </li>
2072
- `
2198
+ (t) => E`<li>
2199
+ ${// @ts-ignore
2200
+ Wt(t[this._config.titleProperty])}
2201
+ </li>`
2073
2202
  )}
2074
- </ul>
2075
- </details>`
2076
- ) : V(
2077
- this._results,
2078
- // @ts-ignore
2079
- (t) => O`<li>
2080
- ${// @ts-ignore
2081
- Bt(t[this.config.titleProperty])}
2082
- </li>`
2203
+ </ul>
2204
+ </div>
2205
+ </section>
2206
+ `
2083
2207
  )}
2084
- </ul>
2085
- </div>
2086
- </section>
2087
2208
  </form>
2088
2209
  `;
2089
2210
  }
2090
2211
  };
2091
2212
  H([
2092
- ot()
2213
+ lt()
2093
2214
  ], C.prototype, "_items", 2);
2094
2215
  H([
2095
- ot()
2216
+ lt()
2096
2217
  ], C.prototype, "_results", 2);
2097
2218
  H([
2098
- ot()
2219
+ lt()
2099
2220
  ], C.prototype, "_filters", 2);
2100
2221
  H([
2101
- ot()
2222
+ lt()
2102
2223
  ], C.prototype, "_selectedResult", 2);
2103
2224
  H([
2104
- Mt({ attribute: !1 })
2105
- ], C.prototype, "config", 2);
2225
+ Rt({ attribute: !1 })
2226
+ ], C.prototype, "config", 1);
2106
2227
  H([
2107
- Mt()
2228
+ Rt()
2108
2229
  ], C.prototype, "apply", 2);
2109
2230
  C = H([
2110
- Me("eox-itemfilter")
2231
+ Ce("eox-itemfilter")
2111
2232
  ], C);
2112
2233
  export {
2113
2234
  C as EOxItemFilter