@warp-ds/elements 1.0.0-alpha.7 → 1.0.0-alpha.8

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,56 +1,32 @@
1
- var $r = Object.defineProperty;
2
- var zr = (o, e, t) => e in o ? $r(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
- var k = (o, e, t) => (zr(o, typeof e != "symbol" ? e + "" : e, t), t), _r = (o, e, t) => {
1
+ var dr = Object.defineProperty;
2
+ var ur = (o, e, t) => e in o ? dr(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
+ var x = (o, e, t) => (ur(o, typeof e != "symbol" ? e + "" : e, t), t), br = (o, e, t) => {
4
4
  if (!e.has(o))
5
5
  throw TypeError("Cannot " + t);
6
6
  };
7
- var J = (o, e, t) => (_r(o, e, "read from private field"), t ? t.call(o) : e.get(o)), Re = (o, e, t) => {
7
+ var D = (o, e, t) => (br(o, e, "read from private field"), t ? t.call(o) : e.get(o)), Re = (o, e, t) => {
8
8
  if (e.has(o))
9
9
  throw TypeError("Cannot add the same private member more than once");
10
10
  e instanceof WeakSet ? e.add(o) : e.set(o, t);
11
11
  };
12
- (function() {
13
- const e = document.createElement("link").relList;
14
- if (e && e.supports && e.supports("modulepreload"))
15
- return;
16
- for (const i of document.querySelectorAll('link[rel="modulepreload"]'))
17
- r(i);
18
- new MutationObserver((i) => {
19
- for (const a of i)
20
- if (a.type === "childList")
21
- for (const n of a.addedNodes)
22
- n.tagName === "LINK" && n.rel === "modulepreload" && r(n);
23
- }).observe(document, { childList: !0, subtree: !0 });
24
- function t(i) {
25
- const a = {};
26
- return i.integrity && (a.integrity = i.integrity), i.referrerpolicy && (a.referrerPolicy = i.referrerpolicy), i.crossorigin === "use-credentials" ? a.credentials = "include" : i.crossorigin === "anonymous" ? a.credentials = "omit" : a.credentials = "same-origin", a;
27
- }
28
- function r(i) {
29
- if (i.ep)
30
- return;
31
- i.ep = !0;
32
- const a = t(i);
33
- fetch(i.href, a);
34
- }
35
- })();
36
12
  /**
37
13
  * @license
38
14
  * Copyright 2019 Google LLC
39
15
  * SPDX-License-Identifier: BSD-3-Clause
40
16
  */
41
- const Sr = !1, Ae = window, Do = Ae.ShadowRoot && (Ae.ShadyCSS === void 0 || Ae.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ho = Symbol(), st = /* @__PURE__ */ new WeakMap();
42
- class Nt {
17
+ const Ee = window, Lo = Ee.ShadowRoot && (Ee.ShadyCSS === void 0 || Ee.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Io = Symbol(), ot = /* @__PURE__ */ new WeakMap();
18
+ class St {
43
19
  constructor(e, t, r) {
44
- if (this._$cssResult$ = !0, r !== Ho)
20
+ if (this._$cssResult$ = !0, r !== Io)
45
21
  throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
46
22
  this.cssText = e, this._strings = t;
47
23
  }
48
24
  get styleSheet() {
49
25
  let e = this._styleSheet;
50
26
  const t = this._strings;
51
- if (Do && e === void 0) {
27
+ if (Lo && e === void 0) {
52
28
  const r = t !== void 0 && t.length === 1;
53
- r && (e = st.get(t)), e === void 0 && ((this._styleSheet = e = new CSSStyleSheet()).replaceSync(this.cssText), r && st.set(t, e));
29
+ r && (e = ot.get(t)), e === void 0 && ((this._styleSheet = e = new CSSStyleSheet()).replaceSync(this.cssText), r && ot.set(t, e));
54
30
  }
55
31
  return e;
56
32
  }
@@ -58,54 +34,54 @@ class Nt {
58
34
  return this.cssText;
59
35
  }
60
36
  }
61
- const Cr = (o) => {
37
+ const gr = (o) => {
62
38
  if (o._$cssResult$ === !0)
63
39
  return o.cssText;
64
40
  if (typeof o == "number")
65
41
  return o;
66
42
  throw new Error(`Value passed to 'css' function must be a 'css' function result: ${o}. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`);
67
- }, Er = (o) => new Nt(typeof o == "string" ? o : String(o), void 0, Ho), R = (o, ...e) => {
68
- const t = o.length === 1 ? o[0] : e.reduce((r, i, a) => r + Cr(i) + o[a + 1], o[0]);
69
- return new Nt(t, o, Ho);
70
- }, Rr = (o, e) => {
71
- Do ? o.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet) : e.forEach((t) => {
72
- const r = document.createElement("style"), i = Ae.litNonce;
43
+ }, hr = (o) => new St(typeof o == "string" ? o : String(o), void 0, Io), C = (o, ...e) => {
44
+ const t = o.length === 1 ? o[0] : e.reduce((r, i, a) => r + gr(i) + o[a + 1], o[0]);
45
+ return new St(t, o, Io);
46
+ }, pr = (o, e) => {
47
+ Lo ? o.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet) : e.forEach((t) => {
48
+ const r = document.createElement("style"), i = Ee.litNonce;
73
49
  i !== void 0 && r.setAttribute("nonce", i), r.textContent = t.cssText, o.appendChild(r);
74
50
  });
75
- }, Ar = (o) => {
51
+ }, mr = (o) => {
76
52
  let e = "";
77
53
  for (const t of o.cssRules)
78
54
  e += t.cssText;
79
- return Er(e);
80
- }, dt = Do || Sr ? (o) => o : (o) => o instanceof CSSStyleSheet ? Ar(o) : o;
55
+ return hr(e);
56
+ }, tt = Lo ? (o) => o : (o) => o instanceof CSSStyleSheet ? mr(o) : o;
81
57
  /**
82
58
  * @license
83
59
  * Copyright 2017 Google LLC
84
60
  * SPDX-License-Identifier: BSD-3-Clause
85
61
  */
86
- var to, ro, io, Tt;
87
- const B = window;
88
- let Ut, ee;
89
- const ut = B.trustedTypes, qr = ut ? ut.emptyScript : "", qe = B.reactiveElementPolyfillSupportDevMode;
62
+ var Je, Qe, eo, Ct;
63
+ const N = window;
64
+ let Rt, W;
65
+ const rt = N.trustedTypes, fr = rt ? rt.emptyScript : "", Ae = N.reactiveElementPolyfillSupportDevMode;
90
66
  {
91
- const o = (to = B.litIssuedWarnings) !== null && to !== void 0 ? to : B.litIssuedWarnings = /* @__PURE__ */ new Set();
92
- ee = (e, t) => {
67
+ const o = (Je = N.litIssuedWarnings) !== null && Je !== void 0 ? Je : N.litIssuedWarnings = /* @__PURE__ */ new Set();
68
+ W = (e, t) => {
93
69
  t += ` See https://lit.dev/msg/${e} for more information.`, o.has(t) || (console.warn(t), o.add(t));
94
- }, ee("dev-mode", "Lit is in dev mode. Not recommended for production!"), ((ro = B.ShadyDOM) === null || ro === void 0 ? void 0 : ro.inUse) && qe === void 0 && ee("polyfill-support-missing", "Shadow DOM is being polyfilled via `ShadyDOM` but the `polyfill-support` module has not been loaded."), Ut = (e) => ({
70
+ }, W("dev-mode", "Lit is in dev mode. Not recommended for production!"), ((Qe = N.ShadyDOM) === null || Qe === void 0 ? void 0 : Qe.inUse) && Ae === void 0 && W("polyfill-support-missing", "Shadow DOM is being polyfilled via `ShadyDOM` but the `polyfill-support` module has not been loaded."), Rt = (e) => ({
95
71
  then: (t, r) => {
96
- ee("request-update-promise", `The \`requestUpdate\` method should no longer return a Promise but does so on \`${e}\`. Use \`updateComplete\` instead.`), t !== void 0 && t(!1);
72
+ W("request-update-promise", `The \`requestUpdate\` method should no longer return a Promise but does so on \`${e}\`. Use \`updateComplete\` instead.`), t !== void 0 && t(!1);
97
73
  }
98
74
  });
99
75
  }
100
- const no = (o) => {
101
- !B.emitLitDebugLogEvents || B.dispatchEvent(new CustomEvent("lit-debug", {
76
+ const oo = (o) => {
77
+ !N.emitLitDebugLogEvents || N.dispatchEvent(new CustomEvent("lit-debug", {
102
78
  detail: o
103
79
  }));
104
- }, Ot = (o, e) => o, So = {
80
+ }, Et = (o, e) => o, yo = {
105
81
  toAttribute(o, e) {
106
82
  switch (e) {
107
83
  case Boolean:
108
- o = o ? qr : null;
84
+ o = o ? fr : null;
109
85
  break;
110
86
  case Object:
111
87
  case Array:
@@ -134,14 +110,14 @@ const no = (o) => {
134
110
  }
135
111
  return t;
136
112
  }
137
- }, Ft = (o, e) => e !== o && (e === e || o === o), ao = {
113
+ }, At = (o, e) => e !== o && (e === e || o === o), to = {
138
114
  attribute: !0,
139
115
  type: String,
140
- converter: So,
116
+ converter: yo,
141
117
  reflect: !1,
142
- hasChanged: Ft
143
- }, Co = "finalized";
144
- class V extends HTMLElement {
118
+ hasChanged: At
119
+ }, $o = "finalized";
120
+ class U extends HTMLElement {
145
121
  constructor() {
146
122
  super(), this.__instanceProperties = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this.__reflectingProperty = null, this._initialize();
147
123
  }
@@ -157,7 +133,7 @@ class V extends HTMLElement {
157
133
  i !== void 0 && (this.__attributeToPropertyMap.set(i, r), e.push(i));
158
134
  }), e;
159
135
  }
160
- static createProperty(e, t = ao) {
136
+ static createProperty(e, t = to) {
161
137
  var r;
162
138
  if (t.state && (t.attribute = !1), this.finalize(), this.elementProperties.set(e, t), !t.noAccessor && !this.prototype.hasOwnProperty(e)) {
163
139
  const i = typeof e == "symbol" ? Symbol() : `__${e}`, a = this.getPropertyDescriptor(e, i, t);
@@ -178,14 +154,14 @@ class V extends HTMLElement {
178
154
  };
179
155
  }
180
156
  static getPropertyOptions(e) {
181
- return this.elementProperties.get(e) || ao;
157
+ return this.elementProperties.get(e) || to;
182
158
  }
183
159
  static finalize() {
184
- if (this.hasOwnProperty(Co))
160
+ if (this.hasOwnProperty($o))
185
161
  return !1;
186
- this[Co] = !0;
162
+ this[$o] = !0;
187
163
  const e = Object.getPrototypeOf(this);
188
- if (e.finalize(), e._initializers !== void 0 && (this._initializers = [...e._initializers]), this.elementProperties = new Map(e.elementProperties), this.__attributeToPropertyMap = /* @__PURE__ */ new Map(), this.hasOwnProperty(Ot("properties"))) {
164
+ if (e.finalize(), e._initializers !== void 0 && (this._initializers = [...e._initializers]), this.elementProperties = new Map(e.elementProperties), this.__attributeToPropertyMap = /* @__PURE__ */ new Map(), this.hasOwnProperty(Et("properties"))) {
189
165
  const t = this.properties, r = [
190
166
  ...Object.getOwnPropertyNames(t),
191
167
  ...Object.getOwnPropertySymbols(t)
@@ -196,7 +172,7 @@ class V extends HTMLElement {
196
172
  this.elementStyles = this.finalizeStyles(this.styles);
197
173
  {
198
174
  const t = (r, i = !1) => {
199
- this.prototype.hasOwnProperty(r) && ee(i ? "renamed-api" : "removed-api", `\`${r}\` is implemented on class ${this.name}. It has been ${i ? "renamed" : "removed"} in this version of LitElement.`);
175
+ this.prototype.hasOwnProperty(r) && W(i ? "renamed-api" : "removed-api", `\`${r}\` is implemented on class ${this.name}. It has been ${i ? "renamed" : "removed"} in this version of LitElement.`);
200
176
  };
201
177
  t("initialize"), t("requestUpdateInternal"), t("_getUpdateComplete", !0);
202
178
  }
@@ -207,9 +183,9 @@ class V extends HTMLElement {
207
183
  if (Array.isArray(e)) {
208
184
  const r = new Set(e.flat(1 / 0).reverse());
209
185
  for (const i of r)
210
- t.unshift(dt(i));
186
+ t.unshift(tt(i));
211
187
  } else
212
- e !== void 0 && t.push(dt(e));
188
+ e !== void 0 && t.push(tt(e));
213
189
  return t;
214
190
  }
215
191
  static __attributeNameForProperty(e, t) {
@@ -236,7 +212,7 @@ class V extends HTMLElement {
236
212
  createRenderRoot() {
237
213
  var e;
238
214
  const t = (e = this.shadowRoot) !== null && e !== void 0 ? e : this.attachShadow(this.constructor.shadowRootOptions);
239
- return Rr(t, this.constructor.elementStyles), t;
215
+ return pr(t, this.constructor.elementStyles), t;
240
216
  }
241
217
  connectedCallback() {
242
218
  var e;
@@ -257,19 +233,19 @@ class V extends HTMLElement {
257
233
  attributeChangedCallback(e, t, r) {
258
234
  this._$attributeToProperty(e, r);
259
235
  }
260
- __propertyToAttribute(e, t, r = ao) {
236
+ __propertyToAttribute(e, t, r = to) {
261
237
  var i;
262
238
  const a = this.constructor.__attributeNameForProperty(e, r);
263
239
  if (a !== void 0 && r.reflect === !0) {
264
- const l = (((i = r.converter) === null || i === void 0 ? void 0 : i.toAttribute) !== void 0 ? r.converter : So).toAttribute(t, r.type);
265
- this.constructor.enabledWarnings.indexOf("migration") >= 0 && l === void 0 && ee("undefined-attribute-value", `The attribute value for the ${e} property is undefined on element ${this.localName}. The attribute will be removed, but in the previous version of \`ReactiveElement\`, the attribute would not have changed.`), this.__reflectingProperty = e, l == null ? this.removeAttribute(a) : this.setAttribute(a, l), this.__reflectingProperty = null;
240
+ const l = (((i = r.converter) === null || i === void 0 ? void 0 : i.toAttribute) !== void 0 ? r.converter : yo).toAttribute(t, r.type);
241
+ this.constructor.enabledWarnings.indexOf("migration") >= 0 && l === void 0 && W("undefined-attribute-value", `The attribute value for the ${e} property is undefined on element ${this.localName}. The attribute will be removed, but in the previous version of \`ReactiveElement\`, the attribute would not have changed.`), this.__reflectingProperty = e, l == null ? this.removeAttribute(a) : this.setAttribute(a, l), this.__reflectingProperty = null;
266
242
  }
267
243
  }
268
244
  _$attributeToProperty(e, t) {
269
245
  var r;
270
246
  const i = this.constructor, a = i.__attributeToPropertyMap.get(e);
271
247
  if (a !== void 0 && this.__reflectingProperty !== a) {
272
- const n = i.getPropertyOptions(a), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((r = n.converter) === null || r === void 0 ? void 0 : r.fromAttribute) !== void 0 ? n.converter : So;
248
+ const n = i.getPropertyOptions(a), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((r = n.converter) === null || r === void 0 ? void 0 : r.fromAttribute) !== void 0 ? n.converter : yo;
273
249
  this.__reflectingProperty = a, this[a] = l.fromAttribute(
274
250
  t,
275
251
  n.type
@@ -278,7 +254,7 @@ class V extends HTMLElement {
278
254
  }
279
255
  requestUpdate(e, t, r) {
280
256
  let i = !0;
281
- return e !== void 0 && (r = r || this.constructor.getPropertyOptions(e), (r.hasChanged || Ft)(this[e], t) ? (this._$changedProperties.has(e) || this._$changedProperties.set(e, t), r.reflect === !0 && this.__reflectingProperty !== e && (this.__reflectingProperties === void 0 && (this.__reflectingProperties = /* @__PURE__ */ new Map()), this.__reflectingProperties.set(e, r))) : i = !1), !this.isUpdatePending && i && (this.__updatePromise = this.__enqueueUpdate()), Ut(this.localName);
257
+ return e !== void 0 && (r = r || this.constructor.getPropertyOptions(e), (r.hasChanged || At)(this[e], t) ? (this._$changedProperties.has(e) || this._$changedProperties.set(e, t), r.reflect === !0 && this.__reflectingProperty !== e && (this.__reflectingProperties === void 0 && (this.__reflectingProperties = /* @__PURE__ */ new Map()), this.__reflectingProperties.set(e, r))) : i = !1), !this.isUpdatePending && i && (this.__updatePromise = this.__enqueueUpdate()), Rt(this.localName);
282
258
  }
283
259
  async __enqueueUpdate() {
284
260
  this.isUpdatePending = !0;
@@ -297,7 +273,7 @@ class V extends HTMLElement {
297
273
  var e, t;
298
274
  if (!this.isUpdatePending)
299
275
  return;
300
- if (no == null || no({ kind: "update" }), !this.hasUpdated) {
276
+ if (oo == null || oo({ kind: "update" }), !this.hasUpdated) {
301
277
  const a = [];
302
278
  if ((e = this.constructor.__reactivePropertyKeys) === null || e === void 0 || e.forEach((n) => {
303
279
  var l;
@@ -325,7 +301,7 @@ class V extends HTMLElement {
325
301
  (t = this.__controllers) === null || t === void 0 || t.forEach((r) => {
326
302
  var i;
327
303
  return (i = r.hostUpdated) === null || i === void 0 ? void 0 : i.call(r);
328
- }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e), this.isUpdatePending && this.constructor.enabledWarnings.indexOf("change-in-update") >= 0 && ee("change-in-update", `Element ${this.localName} scheduled an update (generally because a property was set) after an update completed, causing a new update to be scheduled. This is inefficient and should be avoided unless the next update can only be scheduled as a side effect of the previous update.`);
304
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(e)), this.updated(e), this.isUpdatePending && this.constructor.enabledWarnings.indexOf("change-in-update") >= 0 && W("change-in-update", `Element ${this.localName} scheduled an update (generally because a property was set) after an update completed, causing a new update to be scheduled. This is inefficient and should be avoided unless the next update can only be scheduled as a side effect of the previous update.`);
329
305
  }
330
306
  __markUpdated() {
331
307
  this._$changedProperties = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
@@ -347,85 +323,85 @@ class V extends HTMLElement {
347
323
  firstUpdated(e) {
348
324
  }
349
325
  }
350
- Tt = Co;
351
- V[Tt] = !0;
352
- V.elementProperties = /* @__PURE__ */ new Map();
353
- V.elementStyles = [];
354
- V.shadowRootOptions = { mode: "open" };
355
- qe == null || qe({ ReactiveElement: V });
326
+ Ct = $o;
327
+ U[Ct] = !0;
328
+ U.elementProperties = /* @__PURE__ */ new Map();
329
+ U.elementStyles = [];
330
+ U.shadowRootOptions = { mode: "open" };
331
+ Ae == null || Ae({ ReactiveElement: U });
356
332
  {
357
- V.enabledWarnings = ["change-in-update"];
333
+ U.enabledWarnings = ["change-in-update"];
358
334
  const o = function(e) {
359
- e.hasOwnProperty(Ot("enabledWarnings")) || (e.enabledWarnings = e.enabledWarnings.slice());
335
+ e.hasOwnProperty(Et("enabledWarnings")) || (e.enabledWarnings = e.enabledWarnings.slice());
360
336
  };
361
- V.enableWarning = function(e) {
337
+ U.enableWarning = function(e) {
362
338
  o(this), this.enabledWarnings.indexOf(e) < 0 && this.enabledWarnings.push(e);
363
- }, V.disableWarning = function(e) {
339
+ }, U.disableWarning = function(e) {
364
340
  o(this);
365
341
  const t = this.enabledWarnings.indexOf(e);
366
342
  t >= 0 && this.enabledWarnings.splice(t, 1);
367
343
  };
368
344
  }
369
- ((io = B.reactiveElementVersions) !== null && io !== void 0 ? io : B.reactiveElementVersions = []).push("1.6.1");
370
- B.reactiveElementVersions.length > 1 && ee("multiple-versions", "Multiple versions of Lit loaded. Loading multiple versions is not recommended.");
345
+ ((eo = N.reactiveElementVersions) !== null && eo !== void 0 ? eo : N.reactiveElementVersions = []).push("1.6.1");
346
+ N.reactiveElementVersions.length > 1 && W("multiple-versions", "Multiple versions of Lit loaded. Loading multiple versions is not recommended.");
371
347
  /**
372
348
  * @license
373
349
  * Copyright 2017 Google LLC
374
350
  * SPDX-License-Identifier: BSD-3-Clause
375
351
  */
376
- var lo, co, so, uo;
377
- const q = window, m = (o) => {
378
- !q.emitLitDebugLogEvents || q.dispatchEvent(new CustomEvent("lit-debug", {
352
+ var ro, io, no, ao;
353
+ const R = window, m = (o) => {
354
+ !R.emitLitDebugLogEvents || R.dispatchEvent(new CustomEvent("lit-debug", {
379
355
  detail: o
380
356
  }));
381
357
  };
382
- let Mr = 0, Ue;
383
- (lo = q.litIssuedWarnings) !== null && lo !== void 0 || (q.litIssuedWarnings = /* @__PURE__ */ new Set()), Ue = (o, e) => {
384
- e += o ? ` See https://lit.dev/msg/${o} for more information.` : "", q.litIssuedWarnings.has(e) || (console.warn(e), q.litIssuedWarnings.add(e));
358
+ let vr = 0, Ue;
359
+ (ro = R.litIssuedWarnings) !== null && ro !== void 0 || (R.litIssuedWarnings = /* @__PURE__ */ new Set()), Ue = (o, e) => {
360
+ e += o ? ` See https://lit.dev/msg/${o} for more information.` : "", R.litIssuedWarnings.has(e) || (console.warn(e), R.litIssuedWarnings.add(e));
385
361
  }, Ue("dev-mode", "Lit is in dev mode. Not recommended for production!");
386
- const O = ((co = q.ShadyDOM) === null || co === void 0 ? void 0 : co.inUse) && ((so = q.ShadyDOM) === null || so === void 0 ? void 0 : so.noPatch) === !0 ? q.ShadyDOM.wrap : (o) => o, ue = q.trustedTypes, bt = ue ? ue.createPolicy("lit-html", {
362
+ const q = ((io = R.ShadyDOM) === null || io === void 0 ? void 0 : io.inUse) && ((no = R.ShadyDOM) === null || no === void 0 ? void 0 : no.noPatch) === !0 ? R.ShadyDOM.wrap : (o) => o, ne = R.trustedTypes, it = ne ? ne.createPolicy("lit-html", {
387
363
  createHTML: (o) => o
388
- }) : void 0, Pr = (o) => o, Ye = (o, e, t) => Pr, jr = (o) => {
389
- if (ie !== Ye)
364
+ }) : void 0, xr = (o) => o, We = (o, e, t) => xr, kr = (o) => {
365
+ if (X !== We)
390
366
  throw new Error("Attempted to overwrite existing lit-html security policy. setSanitizeDOMValueFactory should be called at most once.");
391
- ie = o;
392
- }, Nr = () => {
393
- ie = Ye;
394
- }, Eo = (o, e, t) => ie(o, e, t), Oe = "$lit$", I = `lit$${String(Math.random()).slice(9)}$`, Wo = "?" + I, Tr = `<${Wo}>`, xe = document, ke = (o = "") => xe.createComment(o), we = (o) => o === null || typeof o != "object" && typeof o != "function", Lt = Array.isArray, It = (o) => Lt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", bo = `[
395
- \f\r]`, Ur = `[^
396
- \f\r"'\`<>=]`, Or = `[^\\s"'>=/]`, me = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, gt = 1, go = 2, Fr = 3, ht = /-->/g, pt = />/g, te = new RegExp(`>|${bo}(?:(${Or}+)(${bo}*=${bo}*(?:${Ur}|("|')|))|$)`, "g"), Lr = 0, mt = 1, Ir = 2, ft = 3, ho = /'/g, po = /"/g, Bt = /^(?:script|style|textarea|title)$/i, Vt = 1, Fe = 2, Ko = 1, Le = 2, Br = 3, Vr = 4, Dr = 5, Yo = 6, Hr = 7, Dt = (o) => (e, ...t) => (e.some((r) => r === void 0) && console.warn(`Some template strings are undefined.
367
+ X = o;
368
+ }, wr = () => {
369
+ X = We;
370
+ }, zo = (o, e, t) => X(o, e, t), Te = "$lit$", j = `lit$${String(Math.random()).slice(9)}$`, Bo = "?" + j, yr = `<${Bo}>`, pe = document, me = (o = "") => pe.createComment(o), fe = (o) => o === null || typeof o != "object" && typeof o != "function", qt = Array.isArray, Mt = (o) => qt(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", lo = `[
371
+ \f\r]`, $r = `[^
372
+ \f\r"'\`<>=]`, zr = `[^\\s"'>=/]`, be = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, nt = 1, co = 2, _r = 3, at = /-->/g, lt = />/g, Y = new RegExp(`>|${lo}(?:(${zr}+)(${lo}*=${lo}*(?:${$r}|("|')|))|$)`, "g"), Sr = 0, ct = 1, Cr = 2, st = 3, so = /'/g, uo = /"/g, Pt = /^(?:script|style|textarea|title)$/i, jt = 1, Fe = 2, Vo = 1, Oe = 2, Rr = 3, Er = 4, Ar = 5, Do = 6, qr = 7, Nt = (o) => (e, ...t) => (e.some((r) => r === void 0) && console.warn(`Some template strings are undefined.
397
373
  This is probably caused by illegal octal escape sequences.`), {
398
374
  _$litType$: o,
399
375
  strings: e,
400
376
  values: t
401
- }), p = Dt(Vt), Ze = Dt(Fe), K = Symbol.for("lit-noChange"), z = Symbol.for("lit-nothing"), vt = /* @__PURE__ */ new WeakMap(), ce = xe.createTreeWalker(xe, 129, null, !1);
402
- let ie = Ye;
403
- const Ht = (o, e) => {
377
+ }), h = Nt(jt), Ke = Nt(Fe), I = Symbol.for("lit-noChange"), w = Symbol.for("lit-nothing"), dt = /* @__PURE__ */ new WeakMap(), te = pe.createTreeWalker(pe, 129, null, !1);
378
+ let X = We;
379
+ const Ut = (o, e) => {
404
380
  const t = o.length - 1, r = [];
405
- let i = e === Fe ? "<svg>" : "", a, n = me;
406
- for (let s = 0; s < t; s++) {
407
- const c = o[s];
408
- let b = -1, d, g = 0, u;
409
- for (; g < c.length && (n.lastIndex = g, u = n.exec(c), u !== null); )
410
- if (g = n.lastIndex, n === me) {
411
- if (u[gt] === "!--")
412
- n = ht;
413
- else if (u[gt] !== void 0)
414
- n = pt;
415
- else if (u[go] !== void 0)
416
- Bt.test(u[go]) && (a = new RegExp(`</${u[go]}`, "g")), n = te;
417
- else if (u[Fr] !== void 0)
381
+ let i = e === Fe ? "<svg>" : "", a, n = be;
382
+ for (let c = 0; c < t; c++) {
383
+ const s = o[c];
384
+ let g = -1, u, b = 0, d;
385
+ for (; b < s.length && (n.lastIndex = b, d = n.exec(s), d !== null); )
386
+ if (b = n.lastIndex, n === be) {
387
+ if (d[nt] === "!--")
388
+ n = at;
389
+ else if (d[nt] !== void 0)
390
+ n = lt;
391
+ else if (d[co] !== void 0)
392
+ Pt.test(d[co]) && (a = new RegExp(`</${d[co]}`, "g")), n = Y;
393
+ else if (d[_r] !== void 0)
418
394
  throw new Error("Bindings in tag names are not supported. Please use static templates instead. See https://lit.dev/docs/templates/expressions/#static-expressions");
419
395
  } else
420
- n === te ? u[Lr] === ">" ? (n = a != null ? a : me, b = -1) : u[mt] === void 0 ? b = -2 : (b = n.lastIndex - u[Ir].length, d = u[mt], n = u[ft] === void 0 ? te : u[ft] === '"' ? po : ho) : n === po || n === ho ? n = te : n === ht || n === pt ? n = me : (n = te, a = void 0);
421
- console.assert(b === -1 || n === te || n === ho || n === po, "unexpected parse state B");
422
- const h = n === te && o[s + 1].startsWith("/>") ? " " : "";
423
- i += n === me ? c + Tr : b >= 0 ? (r.push(d), c.slice(0, b) + Oe + c.slice(b) + I + h) : c + I + (b === -2 ? (r.push(void 0), s) : h);
396
+ n === Y ? d[Sr] === ">" ? (n = a != null ? a : be, g = -1) : d[ct] === void 0 ? g = -2 : (g = n.lastIndex - d[Cr].length, u = d[ct], n = d[st] === void 0 ? Y : d[st] === '"' ? uo : so) : n === uo || n === so ? n = Y : n === at || n === lt ? n = be : (n = Y, a = void 0);
397
+ console.assert(g === -1 || n === Y || n === so || n === uo, "unexpected parse state B");
398
+ const p = n === Y && o[c + 1].startsWith("/>") ? " " : "";
399
+ i += n === be ? s + yr : g >= 0 ? (r.push(u), s.slice(0, g) + Te + s.slice(g) + j + p) : s + j + (g === -2 ? (r.push(void 0), c) : p);
424
400
  }
425
401
  const l = i + (o[t] || "<?>") + (e === Fe ? "</svg>" : "");
426
402
  if (!Array.isArray(o) || !o.hasOwnProperty("raw")) {
427
- let s = "invalid template strings array";
428
- throw s = `
403
+ let c = "invalid template strings array";
404
+ throw c = `
429
405
  Internal Error: expected template strings to be an array
430
406
  with a 'raw' field. Faking a template strings array by
431
407
  calling html or svg like an ordinary function is effectively
@@ -437,72 +413,72 @@ const Ht = (o, e) => {
437
413
  https://github.com/lit/lit/issues/new?template=bug_report.md
438
414
  and include information about your build tooling, if any.
439
415
  `.trim().replace(/\n */g, `
440
- `), new Error(s);
416
+ `), new Error(c);
441
417
  }
442
418
  return [
443
- bt !== void 0 ? bt.createHTML(l) : l,
419
+ it !== void 0 ? it.createHTML(l) : l,
444
420
  r
445
421
  ];
446
422
  };
447
- class ye {
423
+ class ve {
448
424
  constructor({ strings: e, ["_$litType$"]: t }, r) {
449
425
  this.parts = [];
450
426
  let i, a = 0, n = 0;
451
- const l = e.length - 1, s = this.parts, [c, b] = Ht(e, t);
452
- if (this.el = ye.createElement(c, r), ce.currentNode = this.el.content, t === Fe) {
453
- const d = this.el.content, g = d.firstChild;
454
- g.remove(), d.append(...g.childNodes);
427
+ const l = e.length - 1, c = this.parts, [s, g] = Ut(e, t);
428
+ if (this.el = ve.createElement(s, r), te.currentNode = this.el.content, t === Fe) {
429
+ const u = this.el.content, b = u.firstChild;
430
+ b.remove(), u.append(...b.childNodes);
455
431
  }
456
- for (; (i = ce.nextNode()) !== null && s.length < l; ) {
432
+ for (; (i = te.nextNode()) !== null && c.length < l; ) {
457
433
  if (i.nodeType === 1) {
458
434
  {
459
- const d = i.localName;
460
- if (/^(?:textarea|template)$/i.test(d) && i.innerHTML.includes(I)) {
461
- const g = `Expressions are not supported inside \`${d}\` elements. See https://lit.dev/msg/expression-in-${d} for more information.`;
462
- if (d === "template")
463
- throw new Error(g);
464
- Ue("", g);
435
+ const u = i.localName;
436
+ if (/^(?:textarea|template)$/i.test(u) && i.innerHTML.includes(j)) {
437
+ const b = `Expressions are not supported inside \`${u}\` elements. See https://lit.dev/msg/expression-in-${u} for more information.`;
438
+ if (u === "template")
439
+ throw new Error(b);
440
+ Ue("", b);
465
441
  }
466
442
  }
467
443
  if (i.hasAttributes()) {
468
- const d = [];
469
- for (const g of i.getAttributeNames())
470
- if (g.endsWith(Oe) || g.startsWith(I)) {
471
- const u = b[n++];
472
- if (d.push(g), u !== void 0) {
473
- const f = i.getAttribute(u.toLowerCase() + Oe).split(I), v = /([.?@])?(.*)/.exec(u);
474
- s.push({
475
- type: Ko,
444
+ const u = [];
445
+ for (const b of i.getAttributeNames())
446
+ if (b.endsWith(Te) || b.startsWith(j)) {
447
+ const d = g[n++];
448
+ if (u.push(b), d !== void 0) {
449
+ const f = i.getAttribute(d.toLowerCase() + Te).split(j), v = /([.?@])?(.*)/.exec(d);
450
+ c.push({
451
+ type: Vo,
476
452
  index: a,
477
453
  name: v[2],
478
454
  strings: f,
479
- ctor: v[1] === "." ? Kt : v[1] === "?" ? Yt : v[1] === "@" ? Zt : _e
455
+ ctor: v[1] === "." ? Ft : v[1] === "?" ? Ot : v[1] === "@" ? Lt : ye
480
456
  });
481
457
  } else
482
- s.push({
483
- type: Yo,
458
+ c.push({
459
+ type: Do,
484
460
  index: a
485
461
  });
486
462
  }
487
- for (const g of d)
488
- i.removeAttribute(g);
463
+ for (const b of u)
464
+ i.removeAttribute(b);
489
465
  }
490
- if (Bt.test(i.tagName)) {
491
- const d = i.textContent.split(I), g = d.length - 1;
492
- if (g > 0) {
493
- i.textContent = ue ? ue.emptyScript : "";
494
- for (let u = 0; u < g; u++)
495
- i.append(d[u], ke()), ce.nextNode(), s.push({ type: Le, index: ++a });
496
- i.append(d[g], ke());
466
+ if (Pt.test(i.tagName)) {
467
+ const u = i.textContent.split(j), b = u.length - 1;
468
+ if (b > 0) {
469
+ i.textContent = ne ? ne.emptyScript : "";
470
+ for (let d = 0; d < b; d++)
471
+ i.append(u[d], me()), te.nextNode(), c.push({ type: Oe, index: ++a });
472
+ i.append(u[b], me());
497
473
  }
498
474
  }
499
475
  } else if (i.nodeType === 8)
500
- if (i.data === Wo)
501
- s.push({ type: Le, index: a });
476
+ if (i.data === Bo)
477
+ c.push({ type: Oe, index: a });
502
478
  else {
503
- let g = -1;
504
- for (; (g = i.data.indexOf(I, g + 1)) !== -1; )
505
- s.push({ type: Hr, index: a }), g += I.length - 1;
479
+ let b = -1;
480
+ for (; (b = i.data.indexOf(j, b + 1)) !== -1; )
481
+ c.push({ type: qr, index: a }), b += j.length - 1;
506
482
  }
507
483
  a++;
508
484
  }
@@ -515,19 +491,19 @@ class ye {
515
491
  });
516
492
  }
517
493
  static createElement(e, t) {
518
- const r = xe.createElement("template");
494
+ const r = pe.createElement("template");
519
495
  return r.innerHTML = e, r;
520
496
  }
521
497
  }
522
- function ne(o, e, t = o, r) {
498
+ function G(o, e, t = o, r) {
523
499
  var i, a, n, l;
524
- if (e === K)
500
+ if (e === I)
525
501
  return e;
526
- let s = r !== void 0 ? (i = t.__directives) === null || i === void 0 ? void 0 : i[r] : t.__directive;
527
- const c = we(e) ? void 0 : e._$litDirective$;
528
- return (s == null ? void 0 : s.constructor) !== c && ((a = s == null ? void 0 : s._$notifyDirectiveConnectionChanged) === null || a === void 0 || a.call(s, !1), c === void 0 ? s = void 0 : (s = new c(o), s._$initialize(o, t, r)), r !== void 0 ? ((n = (l = t).__directives) !== null && n !== void 0 ? n : l.__directives = [])[r] = s : t.__directive = s), s !== void 0 && (e = ne(o, s._$resolve(o, e.values), s, r)), e;
502
+ let c = r !== void 0 ? (i = t.__directives) === null || i === void 0 ? void 0 : i[r] : t.__directive;
503
+ const s = fe(e) ? void 0 : e._$litDirective$;
504
+ return (c == null ? void 0 : c.constructor) !== s && ((a = c == null ? void 0 : c._$notifyDirectiveConnectionChanged) === null || a === void 0 || a.call(c, !1), s === void 0 ? c = void 0 : (c = new s(o), c._$initialize(o, t, r)), r !== void 0 ? ((n = (l = t).__directives) !== null && n !== void 0 ? n : l.__directives = [])[r] = c : t.__directive = c), c !== void 0 && (e = G(o, c._$resolve(o, e.values), c, r)), e;
529
505
  }
530
- class Wt {
506
+ class Tt {
531
507
  constructor(e, t) {
532
508
  this._parts = [], this._$disconnectableChildren = void 0, this._$template = e, this._$parent = t;
533
509
  }
@@ -539,15 +515,15 @@ class Wt {
539
515
  }
540
516
  _clone(e) {
541
517
  var t;
542
- const { el: { content: r }, parts: i } = this._$template, a = ((t = e == null ? void 0 : e.creationScope) !== null && t !== void 0 ? t : xe).importNode(r, !0);
543
- ce.currentNode = a;
544
- let n = ce.nextNode(), l = 0, s = 0, c = i[0];
545
- for (; c !== void 0; ) {
546
- if (l === c.index) {
547
- let b;
548
- c.type === Le ? b = new he(n, n.nextSibling, this, e) : c.type === Ko ? b = new c.ctor(n, c.name, c.strings, this, e) : c.type === Yo && (b = new Xt(n, this, e)), this._parts.push(b), c = i[++s];
518
+ const { el: { content: r }, parts: i } = this._$template, a = ((t = e == null ? void 0 : e.creationScope) !== null && t !== void 0 ? t : pe).importNode(r, !0);
519
+ te.currentNode = a;
520
+ let n = te.nextNode(), l = 0, c = 0, s = i[0];
521
+ for (; s !== void 0; ) {
522
+ if (l === s.index) {
523
+ let g;
524
+ s.type === Oe ? g = new le(n, n.nextSibling, this, e) : s.type === Vo ? g = new s.ctor(n, s.name, s.strings, this, e) : s.type === Do && (g = new It(n, this, e)), this._parts.push(g), s = i[++c];
549
525
  }
550
- l !== (c == null ? void 0 : c.index) && (n = ce.nextNode(), l++);
526
+ l !== (s == null ? void 0 : s.index) && (n = te.nextNode(), l++);
551
527
  }
552
528
  return a;
553
529
  }
@@ -564,17 +540,17 @@ class Wt {
564
540
  }), r.strings !== void 0 ? (r._$setValue(e, r, t), t += r.strings.length - 2) : r._$setValue(e[t])), t++;
565
541
  }
566
542
  }
567
- class he {
543
+ class le {
568
544
  constructor(e, t, r, i) {
569
545
  var a;
570
- this.type = Le, this._$committedValue = z, this._$disconnectableChildren = void 0, this._$startNode = e, this._$endNode = t, this._$parent = r, this.options = i, this.__isConnected = (a = i == null ? void 0 : i.isConnected) !== null && a !== void 0 ? a : !0, this._textSanitizer = void 0;
546
+ this.type = Oe, this._$committedValue = w, this._$disconnectableChildren = void 0, this._$startNode = e, this._$endNode = t, this._$parent = r, this.options = i, this.__isConnected = (a = i == null ? void 0 : i.isConnected) !== null && a !== void 0 ? a : !0, this._textSanitizer = void 0;
571
547
  }
572
548
  get _$isConnected() {
573
549
  var e, t;
574
550
  return (t = (e = this._$parent) === null || e === void 0 ? void 0 : e._$isConnected) !== null && t !== void 0 ? t : this.__isConnected;
575
551
  }
576
552
  get parentNode() {
577
- let e = O(this._$startNode).parentNode;
553
+ let e = q(this._$startNode).parentNode;
578
554
  const t = this._$parent;
579
555
  return t !== void 0 && e.nodeType === 11 && (e = t.parentNode), e;
580
556
  }
@@ -588,14 +564,14 @@ class he {
588
564
  var r;
589
565
  if (this.parentNode === null)
590
566
  throw new Error("This `ChildPart` has no `parentNode` and therefore cannot accept a value. This likely means the element containing the part was manipulated in an unsupported way outside of Lit's control such that the part's marker nodes were ejected from DOM. For example, setting the element's `innerHTML` or `textContent` can do this.");
591
- if (e = ne(this, e, t), we(e))
592
- e === z || e == null || e === "" ? (this._$committedValue !== z && (m == null || m({
567
+ if (e = G(this, e, t), fe(e))
568
+ e === w || e == null || e === "" ? (this._$committedValue !== w && (m == null || m({
593
569
  kind: "commit nothing to child",
594
570
  start: this._$startNode,
595
571
  end: this._$endNode,
596
572
  parent: this._$parent,
597
573
  options: this.options
598
- }), this._$clear()), this._$committedValue = z) : e !== this._$committedValue && e !== K && this._commitText(e);
574
+ }), this._$clear()), this._$committedValue = w) : e !== this._$committedValue && e !== I && this._commitText(e);
599
575
  else if (e._$litType$ !== void 0)
600
576
  this._commitTemplateResult(e);
601
577
  else if (e.nodeType !== void 0) {
@@ -605,15 +581,15 @@ class he {
605
581
  }
606
582
  this._commitNode(e);
607
583
  } else
608
- It(e) ? this._commitIterable(e) : this._commitText(e);
584
+ Mt(e) ? this._commitIterable(e) : this._commitText(e);
609
585
  }
610
586
  _insert(e, t = this._$endNode) {
611
- return O(O(this._$startNode).parentNode).insertBefore(e, t);
587
+ return q(q(this._$startNode).parentNode).insertBefore(e, t);
612
588
  }
613
589
  _commitNode(e) {
614
590
  var t;
615
591
  if (this._$committedValue !== e) {
616
- if (this._$clear(), ie !== Ye) {
592
+ if (this._$clear(), X !== We) {
617
593
  const r = (t = this._$startNode.parentNode) === null || t === void 0 ? void 0 : t.nodeName;
618
594
  if (r === "STYLE" || r === "SCRIPT") {
619
595
  let i = "Forbidden";
@@ -630,9 +606,9 @@ class he {
630
606
  }
631
607
  }
632
608
  _commitText(e) {
633
- if (this._$committedValue !== z && we(this._$committedValue)) {
634
- const t = O(this._$startNode).nextSibling;
635
- this._textSanitizer === void 0 && (this._textSanitizer = Eo(t, "data", "property")), e = this._textSanitizer(e), m == null || m({
609
+ if (this._$committedValue !== w && fe(this._$committedValue)) {
610
+ const t = q(this._$startNode).nextSibling;
611
+ this._textSanitizer === void 0 && (this._textSanitizer = zo(t, "data", "property")), e = this._textSanitizer(e), m == null || m({
636
612
  kind: "commit text",
637
613
  node: t,
638
614
  value: e,
@@ -640,7 +616,7 @@ class he {
640
616
  }), t.data = e;
641
617
  } else {
642
618
  const t = document.createTextNode("");
643
- this._commitNode(t), this._textSanitizer === void 0 && (this._textSanitizer = Eo(t, "data", "property")), e = this._textSanitizer(e), m == null || m({
619
+ this._commitNode(t), this._textSanitizer === void 0 && (this._textSanitizer = zo(t, "data", "property")), e = this._textSanitizer(e), m == null || m({
644
620
  kind: "commit text",
645
621
  node: t,
646
622
  value: e,
@@ -651,7 +627,7 @@ class he {
651
627
  }
652
628
  _commitTemplateResult(e) {
653
629
  var t;
654
- const { values: r, ["_$litType$"]: i } = e, a = typeof i == "number" ? this._$getTemplate(e) : (i.el === void 0 && (i.el = ye.createElement(i.h, this.options)), i);
630
+ const { values: r, ["_$litType$"]: i } = e, a = typeof i == "number" ? this._$getTemplate(e) : (i.el === void 0 && (i.el = ve.createElement(i.h, this.options)), i);
655
631
  if (((t = this._$committedValue) === null || t === void 0 ? void 0 : t._$template) === a)
656
632
  m == null || m({
657
633
  kind: "template updating",
@@ -662,7 +638,7 @@ class he {
662
638
  values: r
663
639
  }), this._$committedValue._update(r);
664
640
  else {
665
- const n = new Wt(a, this), l = n._clone(this.options);
641
+ const n = new Tt(a, this), l = n._clone(this.options);
666
642
  m == null || m({
667
643
  kind: "template instantiated",
668
644
  template: a,
@@ -683,22 +659,22 @@ class he {
683
659
  }
684
660
  }
685
661
  _$getTemplate(e) {
686
- let t = vt.get(e.strings);
687
- return t === void 0 && vt.set(e.strings, t = new ye(e)), t;
662
+ let t = dt.get(e.strings);
663
+ return t === void 0 && dt.set(e.strings, t = new ve(e)), t;
688
664
  }
689
665
  _commitIterable(e) {
690
- Lt(this._$committedValue) || (this._$committedValue = [], this._$clear());
666
+ qt(this._$committedValue) || (this._$committedValue = [], this._$clear());
691
667
  const t = this._$committedValue;
692
668
  let r = 0, i;
693
669
  for (const a of e)
694
- r === t.length ? t.push(i = new he(this._insert(ke()), this._insert(ke()), this, this.options)) : i = t[r], i._$setValue(a), r++;
695
- r < t.length && (this._$clear(i && O(i._$endNode).nextSibling, r), t.length = r);
670
+ r === t.length ? t.push(i = new le(this._insert(me()), this._insert(me()), this, this.options)) : i = t[r], i._$setValue(a), r++;
671
+ r < t.length && (this._$clear(i && q(i._$endNode).nextSibling, r), t.length = r);
696
672
  }
697
- _$clear(e = O(this._$startNode).nextSibling, t) {
673
+ _$clear(e = q(this._$startNode).nextSibling, t) {
698
674
  var r;
699
675
  for ((r = this._$notifyConnectionChanged) === null || r === void 0 || r.call(this, !1, !0, t); e && e !== this._$endNode; ) {
700
- const i = O(e).nextSibling;
701
- O(e).remove(), e = i;
676
+ const i = q(e).nextSibling;
677
+ q(e).remove(), e = i;
702
678
  }
703
679
  }
704
680
  setConnected(e) {
@@ -709,9 +685,9 @@ class he {
709
685
  throw new Error("part.setConnected() may only be called on a RootPart returned from render().");
710
686
  }
711
687
  }
712
- class _e {
688
+ class ye {
713
689
  constructor(e, t, r, i, a) {
714
- this.type = Ko, this._$committedValue = z, this._$disconnectableChildren = void 0, this.element = e, this.name = t, this._$parent = i, this.options = a, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$committedValue = new Array(r.length - 1).fill(new String()), this.strings = r) : this._$committedValue = z, this._sanitizer = void 0;
690
+ this.type = Vo, this._$committedValue = w, this._$disconnectableChildren = void 0, this.element = e, this.name = t, this._$parent = i, this.options = a, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$committedValue = new Array(r.length - 1).fill(new String()), this.strings = r) : this._$committedValue = w, this._sanitizer = void 0;
715
691
  }
716
692
  get tagName() {
717
693
  return this.element.tagName;
@@ -723,65 +699,65 @@ class _e {
723
699
  const a = this.strings;
724
700
  let n = !1;
725
701
  if (a === void 0)
726
- e = ne(this, e, t, 0), n = !we(e) || e !== this._$committedValue && e !== K, n && (this._$committedValue = e);
702
+ e = G(this, e, t, 0), n = !fe(e) || e !== this._$committedValue && e !== I, n && (this._$committedValue = e);
727
703
  else {
728
704
  const l = e;
729
705
  e = a[0];
730
- let s, c;
731
- for (s = 0; s < a.length - 1; s++)
732
- c = ne(this, l[r + s], t, s), c === K && (c = this._$committedValue[s]), n || (n = !we(c) || c !== this._$committedValue[s]), c === z ? e = z : e !== z && (e += (c != null ? c : "") + a[s + 1]), this._$committedValue[s] = c;
706
+ let c, s;
707
+ for (c = 0; c < a.length - 1; c++)
708
+ s = G(this, l[r + c], t, c), s === I && (s = this._$committedValue[c]), n || (n = !fe(s) || s !== this._$committedValue[c]), s === w ? e = w : e !== w && (e += (s != null ? s : "") + a[c + 1]), this._$committedValue[c] = s;
733
709
  }
734
710
  n && !i && this._commitValue(e);
735
711
  }
736
712
  _commitValue(e) {
737
- e === z ? O(this.element).removeAttribute(this.name) : (this._sanitizer === void 0 && (this._sanitizer = ie(this.element, this.name, "attribute")), e = this._sanitizer(e != null ? e : ""), m == null || m({
713
+ e === w ? q(this.element).removeAttribute(this.name) : (this._sanitizer === void 0 && (this._sanitizer = X(this.element, this.name, "attribute")), e = this._sanitizer(e != null ? e : ""), m == null || m({
738
714
  kind: "commit attribute",
739
715
  element: this.element,
740
716
  name: this.name,
741
717
  value: e,
742
718
  options: this.options
743
- }), O(this.element).setAttribute(this.name, e != null ? e : ""));
719
+ }), q(this.element).setAttribute(this.name, e != null ? e : ""));
744
720
  }
745
721
  }
746
- class Kt extends _e {
722
+ class Ft extends ye {
747
723
  constructor() {
748
- super(...arguments), this.type = Br;
724
+ super(...arguments), this.type = Rr;
749
725
  }
750
726
  _commitValue(e) {
751
- this._sanitizer === void 0 && (this._sanitizer = ie(this.element, this.name, "property")), e = this._sanitizer(e), m == null || m({
727
+ this._sanitizer === void 0 && (this._sanitizer = X(this.element, this.name, "property")), e = this._sanitizer(e), m == null || m({
752
728
  kind: "commit property",
753
729
  element: this.element,
754
730
  name: this.name,
755
731
  value: e,
756
732
  options: this.options
757
- }), this.element[this.name] = e === z ? void 0 : e;
733
+ }), this.element[this.name] = e === w ? void 0 : e;
758
734
  }
759
735
  }
760
- const Wr = ue ? ue.emptyScript : "";
761
- class Yt extends _e {
736
+ const Mr = ne ? ne.emptyScript : "";
737
+ class Ot extends ye {
762
738
  constructor() {
763
- super(...arguments), this.type = Vr;
739
+ super(...arguments), this.type = Er;
764
740
  }
765
741
  _commitValue(e) {
766
742
  m == null || m({
767
743
  kind: "commit boolean attribute",
768
744
  element: this.element,
769
745
  name: this.name,
770
- value: !!(e && e !== z),
746
+ value: !!(e && e !== w),
771
747
  options: this.options
772
- }), e && e !== z ? O(this.element).setAttribute(this.name, Wr) : O(this.element).removeAttribute(this.name);
748
+ }), e && e !== w ? q(this.element).setAttribute(this.name, Mr) : q(this.element).removeAttribute(this.name);
773
749
  }
774
750
  }
775
- class Zt extends _e {
751
+ class Lt extends ye {
776
752
  constructor(e, t, r, i, a) {
777
- if (super(e, t, r, i, a), this.type = Dr, this.strings !== void 0)
753
+ if (super(e, t, r, i, a), this.type = Ar, this.strings !== void 0)
778
754
  throw new Error(`A \`<${e.localName}>\` has a \`@${t}=...\` listener with invalid content. Event listeners in templates must have exactly one expression and no surrounding text.`);
779
755
  }
780
756
  _$setValue(e, t = this) {
781
757
  var r;
782
- if (e = (r = ne(this, e, t, 0)) !== null && r !== void 0 ? r : z, e === K)
758
+ if (e = (r = G(this, e, t, 0)) !== null && r !== void 0 ? r : w, e === I)
783
759
  return;
784
- const i = this._$committedValue, a = e === z && i !== z || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, n = e !== z && (i === z || a);
760
+ const i = this._$committedValue, a = e === w && i !== w || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, n = e !== w && (i === w || a);
785
761
  m == null || m({
786
762
  kind: "commit event listener",
787
763
  element: this.element,
@@ -798,9 +774,9 @@ class Zt extends _e {
798
774
  typeof this._$committedValue == "function" ? this._$committedValue.call((r = (t = this.options) === null || t === void 0 ? void 0 : t.host) !== null && r !== void 0 ? r : this.element, e) : this._$committedValue.handleEvent(e);
799
775
  }
800
776
  }
801
- class Xt {
777
+ class It {
802
778
  constructor(e, t, r) {
803
- this.element = e, this.type = Yo, this._$disconnectableChildren = void 0, this._$parent = t, this.options = r;
779
+ this.element = e, this.type = Do, this._$disconnectableChildren = void 0, this._$parent = t, this.options = r;
804
780
  }
805
781
  get _$isConnected() {
806
782
  return this._$parent._$isConnected;
@@ -811,33 +787,33 @@ class Xt {
811
787
  element: this.element,
812
788
  value: e,
813
789
  options: this.options
814
- }), ne(this, e);
815
- }
816
- }
817
- const Kr = {
818
- _boundAttributeSuffix: Oe,
819
- _marker: I,
820
- _markerMatch: Wo,
821
- _HTML_RESULT: Vt,
822
- _getTemplateHtml: Ht,
823
- _TemplateInstance: Wt,
824
- _isIterable: It,
825
- _resolveDirective: ne,
826
- _ChildPart: he,
827
- _AttributePart: _e,
828
- _BooleanAttributePart: Yt,
829
- _EventPart: Zt,
830
- _PropertyPart: Kt,
831
- _ElementPart: Xt
832
- }, mo = q.litHtmlPolyfillSupportDevMode;
833
- mo == null || mo(ye, he);
834
- ((uo = q.litHtmlVersions) !== null && uo !== void 0 ? uo : q.litHtmlVersions = []).push("2.6.1");
835
- q.litHtmlVersions.length > 1 && Ue("multiple-versions", "Multiple versions of Lit loaded. Loading multiple versions is not recommended.");
836
- const Me = (o, e, t) => {
790
+ }), G(this, e);
791
+ }
792
+ }
793
+ const Pr = {
794
+ _boundAttributeSuffix: Te,
795
+ _marker: j,
796
+ _markerMatch: Bo,
797
+ _HTML_RESULT: jt,
798
+ _getTemplateHtml: Ut,
799
+ _TemplateInstance: Tt,
800
+ _isIterable: Mt,
801
+ _resolveDirective: G,
802
+ _ChildPart: le,
803
+ _AttributePart: ye,
804
+ _BooleanAttributePart: Ot,
805
+ _EventPart: Lt,
806
+ _PropertyPart: Ft,
807
+ _ElementPart: It
808
+ }, bo = R.litHtmlPolyfillSupportDevMode;
809
+ bo == null || bo(ve, le);
810
+ ((ao = R.litHtmlVersions) !== null && ao !== void 0 ? ao : R.litHtmlVersions = []).push("2.6.1");
811
+ R.litHtmlVersions.length > 1 && Ue("multiple-versions", "Multiple versions of Lit loaded. Loading multiple versions is not recommended.");
812
+ const qe = (o, e, t) => {
837
813
  var r, i;
838
814
  if (e == null)
839
815
  throw new TypeError(`The container to render into may not be ${e}`);
840
- const a = Mr++, n = (r = t == null ? void 0 : t.renderBefore) !== null && r !== void 0 ? r : e;
816
+ const a = vr++, n = (r = t == null ? void 0 : t.renderBefore) !== null && r !== void 0 ? r : e;
841
817
  let l = n._$litPart$;
842
818
  if (m == null || m({
843
819
  kind: "begin render",
@@ -847,8 +823,8 @@ const Me = (o, e, t) => {
847
823
  options: t,
848
824
  part: l
849
825
  }), l === void 0) {
850
- const s = (i = t == null ? void 0 : t.renderBefore) !== null && i !== void 0 ? i : null;
851
- n._$litPart$ = l = new he(e.insertBefore(ke(), s), s, void 0, t != null ? t : {});
826
+ const c = (i = t == null ? void 0 : t.renderBefore) !== null && i !== void 0 ? i : null;
827
+ n._$litPart$ = l = new le(e.insertBefore(me(), c), c, void 0, t != null ? t : {});
852
828
  }
853
829
  return l._$setValue(o), m == null || m({
854
830
  kind: "end render",
@@ -859,21 +835,21 @@ const Me = (o, e, t) => {
859
835
  part: l
860
836
  }), l;
861
837
  };
862
- Me.setSanitizer = jr, Me.createSanitizer = Eo, Me._testOnlyClearSanitizerFactoryDoNotCallOrElse = Nr;
838
+ qe.setSanitizer = kr, qe.createSanitizer = zo, qe._testOnlyClearSanitizerFactoryDoNotCallOrElse = wr;
863
839
  /**
864
840
  * @license
865
841
  * Copyright 2017 Google LLC
866
842
  * SPDX-License-Identifier: BSD-3-Clause
867
843
  */
868
- var fo, vo, xo;
869
- let Zo;
844
+ var go, ho, po;
845
+ let Ho;
870
846
  {
871
- const o = (fo = globalThis.litIssuedWarnings) !== null && fo !== void 0 ? fo : globalThis.litIssuedWarnings = /* @__PURE__ */ new Set();
872
- Zo = (e, t) => {
847
+ const o = (go = globalThis.litIssuedWarnings) !== null && go !== void 0 ? go : globalThis.litIssuedWarnings = /* @__PURE__ */ new Set();
848
+ Ho = (e, t) => {
873
849
  t += ` See https://lit.dev/msg/${e} for more information.`, o.has(t) || (console.warn(t), o.add(t));
874
850
  };
875
851
  }
876
- class $ extends V {
852
+ class y extends U {
877
853
  constructor() {
878
854
  super(...arguments), this.renderOptions = { host: this }, this.__childPart = void 0;
879
855
  }
@@ -884,7 +860,7 @@ class $ extends V {
884
860
  }
885
861
  update(e) {
886
862
  const t = this.render();
887
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this.__childPart = Me(t, this.renderRoot, this.renderOptions);
863
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this.__childPart = qe(t, this.renderRoot, this.renderOptions);
888
864
  }
889
865
  connectedCallback() {
890
866
  var e;
@@ -895,252 +871,28 @@ class $ extends V {
895
871
  super.disconnectedCallback(), (e = this.__childPart) === null || e === void 0 || e.setConnected(!1);
896
872
  }
897
873
  render() {
898
- return K;
874
+ return I;
899
875
  }
900
876
  }
901
- $.finalized = !0;
902
- $._$litElement$ = !0;
903
- (vo = globalThis.litElementHydrateSupport) === null || vo === void 0 || vo.call(globalThis, { LitElement: $ });
904
- const ko = globalThis.litElementPolyfillSupportDevMode;
905
- ko == null || ko({ LitElement: $ });
906
- $.finalize = function() {
907
- if (!V.finalize.call(this))
877
+ y.finalized = !0;
878
+ y._$litElement$ = !0;
879
+ (ho = globalThis.litElementHydrateSupport) === null || ho === void 0 || ho.call(globalThis, { LitElement: y });
880
+ const mo = globalThis.litElementPolyfillSupportDevMode;
881
+ mo == null || mo({ LitElement: y });
882
+ y.finalize = function() {
883
+ if (!U.finalize.call(this))
908
884
  return !1;
909
885
  const e = (t, r, i = !1) => {
910
886
  if (t.hasOwnProperty(r)) {
911
887
  const a = (typeof t == "function" ? t : t.constructor).name;
912
- Zo(i ? "renamed-api" : "removed-api", `\`${r}\` is implemented on class ${a}. It has been ${i ? "renamed" : "removed"} in this version of LitElement.`);
888
+ Ho(i ? "renamed-api" : "removed-api", `\`${r}\` is implemented on class ${a}. It has been ${i ? "renamed" : "removed"} in this version of LitElement.`);
913
889
  }
914
890
  };
915
891
  return e(this, "render"), e(this, "getStyles", !0), e(this.prototype, "adoptStyles"), !0;
916
892
  };
917
- ((xo = globalThis.litElementVersions) !== null && xo !== void 0 ? xo : globalThis.litElementVersions = []).push("3.2.2");
918
- globalThis.litElementVersions.length > 1 && Zo("multiple-versions", "Multiple versions of Lit loaded. Loading multiple versions is not recommended.");
919
- /**
920
- * @license
921
- * Copyright 2017 Google LLC
922
- * SPDX-License-Identifier: BSD-3-Clause
923
- */
924
- const Xo = {
925
- ATTRIBUTE: 1,
926
- CHILD: 2,
927
- PROPERTY: 3,
928
- BOOLEAN_ATTRIBUTE: 4,
929
- EVENT: 5,
930
- ELEMENT: 6
931
- }, Go = (o) => (...e) => ({
932
- _$litDirective$: o,
933
- values: e
934
- });
935
- class Jo {
936
- constructor(e) {
937
- }
938
- get _$isConnected() {
939
- return this._$parent._$isConnected;
940
- }
941
- _$initialize(e, t, r) {
942
- this.__part = e, this._$parent = t, this.__attributeIndex = r;
943
- }
944
- _$resolve(e, t) {
945
- return this.update(e, t);
946
- }
947
- update(e, t) {
948
- return this.render(...t);
949
- }
950
- }
951
- /**
952
- * @license
953
- * Copyright 2017 Google LLC
954
- * SPDX-License-Identifier: BSD-3-Clause
955
- */
956
- const Yr = 1;
957
- class Qo extends Jo {
958
- constructor(e) {
959
- if (super(e), this._value = z, e.type !== Xo.CHILD)
960
- throw new Error(`${this.constructor.directiveName}() can only be used in child bindings`);
961
- }
962
- render(e) {
963
- if (e === z || e == null)
964
- return this._templateResult = void 0, this._value = e;
965
- if (e === K)
966
- return e;
967
- if (typeof e != "string")
968
- throw new Error(`${this.constructor.directiveName}() called with a non-string value`);
969
- if (e === this._value)
970
- return this._templateResult;
971
- this._value = e;
972
- const t = [e];
973
- return t.raw = t, this._templateResult = {
974
- _$litType$: this.constructor.resultType,
975
- strings: t,
976
- values: []
977
- };
978
- }
979
- }
980
- Qo.directiveName = "unsafeHTML";
981
- Qo.resultType = Yr;
982
- const et = Go(Qo);
983
- function Zr(o) {
984
- return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
985
- }
986
- var Ro = { exports: {} };
987
- (function(o, e) {
988
- Object.defineProperty(e, "__esModule", { value: !0 });
989
- class t {
990
- constructor(b, d) {
991
- this.stream = b, this.pos = d;
992
- }
993
- get value() {
994
- return this.stream[this.pos];
995
- }
996
- }
997
- class r {
998
- constructor(b, d, g) {
999
- this.stream = b, this.start = d, this.end = g;
1000
- }
1001
- get value() {
1002
- return this.stream.slice(this.start, this.end);
1003
- }
1004
- get whitespace() {
1005
- let b = this.start - 1;
1006
- for (; b >= 0 && /\s/.test(this.stream[b]); b--)
1007
- ;
1008
- return new r(this.stream, b + 1, this.start);
1009
- }
1010
- }
1011
- function i(c, b, d = /\S/g) {
1012
- if (!d.global)
1013
- throw new Error("Regexp must be global");
1014
- d.lastIndex = b;
1015
- const g = d.exec(c);
1016
- if (!!g)
1017
- return new t(c, g.index);
1018
- }
1019
- function a(c, b) {
1020
- let d = i(c, b);
1021
- if (!d)
1022
- return;
1023
- const g = d.pos;
1024
- d = i(c, g + 1, /[\s<]|>/g);
1025
- const u = d ? d.pos + Number(d.value == ">") : c.length;
1026
- return new r(c, g, u);
1027
- }
1028
- const n = [
1029
- "area",
1030
- "base",
1031
- "br",
1032
- "col",
1033
- "command",
1034
- "embed",
1035
- "hr",
1036
- "img",
1037
- "input",
1038
- "keygen",
1039
- "link",
1040
- "menuitem",
1041
- "meta",
1042
- "param",
1043
- "source",
1044
- "track",
1045
- "wbr",
1046
- "!doctype",
1047
- "--"
1048
- ];
1049
- function l(c) {
1050
- let b = c.replace(/^<\/?|>$/g, "").toLowerCase();
1051
- (b.startsWith("!--") || b.endsWith("--")) && (b = "--");
1052
- const d = /</.test(c), g = />/.test(c), u = /<([^/]|$)/.test(c), h = /<\//.test(c) || u && n.includes(b);
1053
- return {
1054
- isTagStart: d,
1055
- isTagEnd: g,
1056
- isStartTag: u,
1057
- isEndTag: h,
1058
- tagName: b
1059
- };
1060
- }
1061
- function s(c, b = " ", d = 80) {
1062
- const g = [];
1063
- let u = !1, h = !1, f = !1, v = !1, x = "", y = 0, S = {}, w, F = 0;
1064
- for (; w = a(c, F); ) {
1065
- let C = w.value, X = w.whitespace.value, N = "", { isTagStart: E, isTagEnd: A, isStartTag: M, isEndTag: T, tagName: P } = l(C);
1066
- if (!v) {
1067
- if (E && !P) {
1068
- if (F = w.end, w = a(c, F), !w)
1069
- break;
1070
- C += w.value, { isTagStart: E, isTagEnd: A, isStartTag: M, isEndTag: T, tagName: P } = l(C);
1071
- }
1072
- if (!E && (u || h)) {
1073
- const pe = /[^=]"\w/g.exec(C);
1074
- pe && w.end != w.start + pe.index + 2 && (w.end = w.start + pe.index + 2, C = w.value, { isTagStart: E, isTagEnd: A, isStartTag: M, isEndTag: T, tagName: P } = l(C), N = b);
1075
- }
1076
- }
1077
- !v && M && (x = P);
1078
- const G = (T && P != "--" || A && P == "--") && P == x;
1079
- v && !G && (E = A = M = T = !1), M && (u = !0), T && (h = !0), T && !M && --y;
1080
- const eo = u && A && ["script", "style"].includes(x) || M && x == "--", at = u || h, lt = X || S.pendingWhitespace, vr = /^=([^!=]|$)/.test(C) || /^"/.test(C) && /(^|[^!=])=$/.test(S.tokenValue), xr = at && (vr || /^>/.test(C));
1081
- if (v || f)
1082
- g.push(X);
1083
- else if (lt && !xr) {
1084
- const oo = (lt.match(/\n/g) || []).length, pe = Math.max(0, g.lastIndexOf(`
1085
- `)), kr = g.slice(pe).reduce((wr, yr) => wr + yr.length, 0), ct = b.repeat(y + Number(at && !E));
1086
- kr + C.length > d ? g.push(`
1087
- `, ct) : oo ? g.push(...Array(oo).fill(`
1088
- `), ct) : g.push(" ");
1089
- }
1090
- g.push(C), S = { pendingWhitespace: N, tokenValue: C }, eo && (v = !0), G && (v = !1), u && A && x == "pre" && (f = !0), T && P == "pre" && (f = !1), u && A && !h && ++y, A && (u = h = !1), F = w.end;
1091
- }
1092
- return c[c.length - 1] == `
1093
- ` && g.push(`
1094
- `), g.join("");
1095
- }
1096
- e.default = s, o.exports = Object.assign(e.default, e);
1097
- })(Ro, Ro.exports);
1098
- const Xr = /* @__PURE__ */ Zr(Ro.exports);
1099
- class Gt extends $ {
1100
- static get properties() {
1101
- return {
1102
- source: { attribute: !1 }
1103
- };
1104
- }
1105
- firstUpdated() {
1106
- let t = this.shadowRoot.querySelector("slot").assignedNodes().map((i) => i.nodeType === Node.TEXT_NODE ? i.textContent : i.outerHTML).join("").trim();
1107
- t = Xr(t);
1108
- const r = window == null ? void 0 : window.Prism.highlight(t, window.Prism.languages.markup, "html");
1109
- this.source = r;
1110
- }
1111
- render() {
1112
- return p` <link
1113
- rel="stylesheet"
1114
- href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.23.0/themes/prism.min.css"
1115
- integrity="sha512-tN7Ec6zAFaVSG3TpNAKtk4DOHNpSwKHxxrsiw4GHKESGPs5njn/0sMCUMl2svV4wo4BK/rCP7juYz+zx+l6oeQ=="
1116
- crossorigin="anonymous"
1117
- />
1118
- <slot></slot>
1119
- <pre><code>${et(this.source)}</code></pre>`;
1120
- }
1121
- }
1122
- k(Gt, "styles", R`
1123
- :host {
1124
- display: block;
1125
- margin-top: 20px;
1126
- margin-bottom: 20px;
1127
- }
1128
-
1129
- pre {
1130
- background-color: var(--w-bluegray-50);
1131
- font-family: Monaco, Ubuntu Mono, Consolas, monospace;
1132
- font-size: 14px;
1133
- margin: 0;
1134
- padding: 16px;
1135
- overflow-x: auto;
1136
- }
1137
-
1138
- slot {
1139
- display: none;
1140
- }
1141
- `);
1142
- customElements.define("syntax-highlight", Gt);
1143
- const Gr = () => p`<svg
893
+ ((po = globalThis.litElementVersions) !== null && po !== void 0 ? po : globalThis.litElementVersions = []).push("3.2.2");
894
+ globalThis.litElementVersions.length > 1 && Ho("multiple-versions", "Multiple versions of Lit loaded. Loading multiple versions is not recommended.");
895
+ const jr = () => h`<svg
1144
896
  aria-label="Rødt utropstegn"
1145
897
  role="img"
1146
898
  xmlns="http://www.w3.org/2000/svg"
@@ -1148,8 +900,8 @@ const Gr = () => p`<svg
1148
900
  height="16"
1149
901
  fill="none"
1150
902
  >
1151
- ${oi}
1152
- </svg>`, Jr = () => p`<svg
903
+ ${Fr}
904
+ </svg>`, Nr = () => h`<svg
1153
905
  aria-label="Grønt hake"
1154
906
  role="img"
1155
907
  width="16"
@@ -1157,8 +909,8 @@ const Gr = () => p`<svg
1157
909
  fill="none"
1158
910
  xmlns="http://www.w3.org/2000/svg"
1159
911
  >
1160
- ${ti}
1161
- </svg> `, Qr = () => p`<svg
912
+ ${Or}
913
+ </svg> `, Ur = () => h`<svg
1162
914
  aria-label="Gult utropstegn"
1163
915
  role="img"
1164
916
  width="16"
@@ -1166,8 +918,8 @@ const Gr = () => p`<svg
1166
918
  fill="none"
1167
919
  xmlns="http://www.w3.org/2000/svg"
1168
920
  >
1169
- ${ri}
1170
- </svg> `, ei = () => p`<svg
921
+ ${Lr}
922
+ </svg> `, Tr = () => h`<svg
1171
923
  aria-label="Info"
1172
924
  role="img"
1173
925
  width="16"
@@ -1175,8 +927,8 @@ const Gr = () => p`<svg
1175
927
  fill="none"
1176
928
  xmlns="http://www.w3.org/2000/svg"
1177
929
  >
1178
- ${ii}
1179
- </svg>`, oi = Ze`<path
930
+ ${Ir}
931
+ </svg>`, Fr = Ke`<path
1180
932
  d="M4.1.586A2 2 0 0 1 5.516 0h4.97A2 2 0 0 1 11.9.586L15.413 4.1A2 2 0 0 1 16 5.514v4.97a2 2 0 0 1-.586 1.415L11.9 15.413a2 2 0 0 1-1.415.586h-4.97a2 2 0 0 1-1.414-.586L.586 11.9A2 2 0 0 1 0 10.485v-4.97A2 2 0 0 1 .586 4.1L4.1.586Z"
1181
933
  fill="currentColor"
1182
934
  />
@@ -1186,13 +938,13 @@ clip-rule="evenodd"
1186
938
  d="M8 3.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V4A.75.75 0 0 1 8 3.25Z"
1187
939
  fill="#fff"
1188
940
  />
1189
- <path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, ti = Ze`<circle cx="8" cy="8" r="8" transform="rotate(180 8 8)" fill="currentColor" />
941
+ <path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, Or = Ke`<circle cx="8" cy="8" r="8" transform="rotate(180 8 8)" fill="currentColor" />
1190
942
  <path
1191
943
  fill-rule="evenodd"
1192
944
  clip-rule="evenodd"
1193
945
  d="M11.5 4.94c.3.27.34.75.06 1.06l-4 4.5a.75.75 0 0 1-1.09.03l-2-2a.75.75 0 0 1 1.06-1.06l1.44 1.44L10.44 5a.75.75 0 0 1 1.06-.07Z"
1194
946
  fill="#fff"
1195
- />`, ri = Ze`<path
947
+ />`, Lr = Ke`<path
1196
948
  d="M.24 12 6.16 1.09a2.1 2.1 0 0 1 3.68 0l5.92 10.93c.73 1.36-.28 2.99-1.85 2.99H2.1a2.04 2.04 0 0 1-1.85-3Z"
1197
949
  fill="currentColor"
1198
950
  />
@@ -1202,59 +954,59 @@ clip-rule="evenodd"
1202
954
  d="M8 3.25c.41 0 .75.34.75.75v5a.75.75 0 0 1-1.5 0V4c0-.41.34-.75.75-.75Z"
1203
955
  fill="#fff"
1204
956
  />
1205
- <path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, ii = Ze`<circle cx="8" cy="8" r="8" fill="currentColor" />
957
+ <path d="M8.8 11.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z" fill="#fff" />`, Ir = Ke`<circle cx="8" cy="8" r="8" fill="currentColor" />
1206
958
  <path
1207
959
  fill-rule="evenodd"
1208
960
  clip-rule="evenodd"
1209
961
  d="M7.25 12a.75.75 0 0 0 1.5 0V8a.75.75 0 0 0-1.5 0v4ZM8 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"
1210
962
  fill="#fff"
1211
- />`, xt = {
963
+ />`, ut = {
1212
964
  negative: {
1213
965
  color: "red",
1214
- icon: Gr(),
966
+ icon: jr(),
1215
967
  bgColor: "bg-red-50",
1216
968
  borderColor: "border-red-300",
1217
969
  textColor: "text-red-600"
1218
970
  },
1219
971
  positive: {
1220
972
  color: "green",
1221
- icon: Jr(),
973
+ icon: Nr(),
1222
974
  bgColor: "bg-green-50",
1223
975
  borderColor: "border-green-300",
1224
976
  textColor: "text-green-600"
1225
977
  },
1226
978
  warning: {
1227
979
  color: "yellow",
1228
- icon: Qr(),
980
+ icon: Ur(),
1229
981
  bgColor: "bg-yellow-50",
1230
982
  borderColor: "border-yellow-300",
1231
983
  textColor: "text-yellow-600"
1232
984
  },
1233
985
  info: {
1234
986
  color: "aqua",
1235
- icon: ei(),
987
+ icon: Tr(),
1236
988
  bgColor: "bg-aqua-50",
1237
989
  borderColor: "border-aqua-300",
1238
990
  textColor: "text-aqua-600"
1239
991
  }
1240
992
  };
1241
- class Ao extends $ {
993
+ class _o extends y {
1242
994
  constructor() {
1243
995
  super(), this.show = !1, this.role = "alert";
1244
996
  }
1245
997
  connectedCallback() {
1246
- if (super.connectedCallback(), !this.variant || !Object.keys(xt).includes(this.variant))
998
+ if (super.connectedCallback(), !this.variant || !Object.keys(ut).includes(this.variant))
1247
999
  throw new Error(
1248
1000
  `Invalid "variant" attribute. Set its value to one of the following:
1249
1001
  negative, positive, warning, info.`
1250
1002
  );
1251
1003
  }
1252
1004
  get _style() {
1253
- return this.variant ? xt[this.variant] : {};
1005
+ return this.variant ? ut[this.variant] : {};
1254
1006
  }
1255
1007
  render() {
1256
1008
  const { color: e, icon: t, bgColor: r, borderColor: i, textColor: a } = this._style;
1257
- return p`
1009
+ return h`
1258
1010
  <w-expand-transition ?show=${this.show}>
1259
1011
  <div
1260
1012
  role=${this.role}
@@ -1270,11 +1022,11 @@ negative, positive, warning, info.`
1270
1022
  `;
1271
1023
  }
1272
1024
  }
1273
- k(Ao, "properties", {
1025
+ x(_o, "properties", {
1274
1026
  variant: { type: String, reflect: !0 },
1275
1027
  show: { type: Boolean, reflect: !0 },
1276
1028
  role: { type: String, reflect: !0 }
1277
- }), k(Ao, "styles", R`
1029
+ }), x(_o, "styles", C`
1278
1030
  /* /* layer: preflights */
1279
1031
 
1280
1032
  /*
@@ -1851,8 +1603,8 @@ video {
1851
1603
  margin-bottom: 0px !important;
1852
1604
  }
1853
1605
  `);
1854
- customElements.get("w-alert") || customElements.define("w-alert", Ao);
1855
- const Q = {
1606
+ customElements.get("w-alert") || customElements.define("w-alert", _o);
1607
+ const H = {
1856
1608
  base: "border-2 relative",
1857
1609
  tooltip: "bg-gray-700 border-gray-700 text-white rounded-4 py-6 px-8",
1858
1610
  callout: "bg-green-100 border-green-400 py-8 px-16 rounded-8",
@@ -1861,10 +1613,10 @@ const Q = {
1861
1613
  arrowTooltip: "bg-gray-700 border-gray-700",
1862
1614
  arrowCallout: "bg-green-100 border-green-400",
1863
1615
  arrowPopover: "bg-white border-white"
1864
- }, le = {
1616
+ }, oe = {
1865
1617
  box: "group block relative break-words last-child:mb-0 p-16 rounded-8",
1866
1618
  bleed: "-mx-16 sm:mx-0 rounded-l-0 rounded-r-0 sm:rounded-8"
1867
- }, H = {
1619
+ }, O = {
1868
1620
  card: "cursor-pointer overflow-hidden relative transition-all outline-none",
1869
1621
  cardShadow: "f-card rounded-8",
1870
1622
  cardFlat: "border-2 rounded-4",
@@ -1874,10 +1626,10 @@ const Q = {
1874
1626
  cardOutline: "f-card-outline absolute rounded-8 inset-0 transition-all border-2",
1875
1627
  cardOutlineUnselected: "border-transparent",
1876
1628
  cardOutlineSelected: "border-blue-600 hover:border-blue-700"
1877
- }, kt = {
1629
+ }, bt = {
1878
1630
  toasterContainer: "fixed fixed-ios-fix bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none",
1879
1631
  toaster: "f-toaster grid f-grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none"
1880
- }, j = {
1632
+ }, E = {
1881
1633
  toastWrapper: "relative overflow-hidden w-full",
1882
1634
  toast: "toast flex group p-8 mt-16 rounded-8 border-2 w-full pointer-events-auto transition-all",
1883
1635
  toastPositive: "bg-green-50 border-green-300 text-green-800",
@@ -1892,17 +1644,17 @@ const Q = {
1892
1644
  toastIconLoading: "animate-bounce",
1893
1645
  toastContent: "self-center mr-8 py-4 last-child:mb-0",
1894
1646
  toastClose: "ml-auto p-8"
1895
- }, ni = "focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block", Jt = "absolute top-0 bottom-0 hover:text-aqua-400 flex justify-center items-center focus-ring ", ai = {
1896
- wrapper: Jt + "right-0",
1647
+ }, Br = "focus:outline-none appearance-none cursor-pointer bg-transparent border-0 m-0 p-0 inline-block", Bt = "absolute top-0 bottom-0 hover:text-aqua-400 flex justify-center items-center focus-ring ", Vr = {
1648
+ wrapper: Bt + "right-0",
1897
1649
  wrapperWithLabel: "w-max pr-12",
1898
1650
  wrapperWithIcon: "w-40",
1899
1651
  label: "field-label pb-0 text-12"
1900
- }, li = {
1901
- wrapper: Jt + "left-0",
1652
+ }, Dr = {
1653
+ wrapper: Bt + "left-0",
1902
1654
  wrapperWithLabel: "w-max pl-12",
1903
1655
  wrapperWithIcon: "w-40",
1904
1656
  label: "field-label pb-0 text-secondary text-12"
1905
- }, U = {
1657
+ }, A = {
1906
1658
  buttonSecondary: "py-10 px-14 border-2 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-secondary-text i-border-$color-button-secondary-border i-bg-$color-button-secondary-background hover:i-bg-$color-button-secondary-background-hover hover:i-border-$color-button-secondary-border-hover active:i-bg-$color-button-secondary-background-active",
1907
1659
  buttonPrimary: "py-12 px-16 border-0 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-text-$color-button-primary-text i-bg-$color-button-primary-background hover:i-bg-$color-button-primary-background-hover! active:i-bg-$color-button-primary-background-active",
1908
1660
  buttonFlat: "py-12 px-16 border-0! font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-quiet-background i-text-$color-button-quiet-text hover:i-bg-$color-button-quiet-background-hover active:i-bg-$color-button-quiet-background-active",
@@ -1921,24 +1673,56 @@ const Q = {
1921
1673
  buttonIsDisabled: "py-10 px-14 font-bold leading-24 max-w-max focusable justify-center transition-colors ease-in-out i-bg-$color-button-disabled-background! i-text-$color-button-disabled-text! cursor-default pointer-events-none",
1922
1674
  buttonInProgress: "py-10 px-14 border-0 font-bold rounded-8 leading-24 max-w-max focusable justify-center transition-colors ease-in-out animate-inprogress i-text-$color-button-loading-text! pointer-events-none i-bg-$color-button-loading-background!"
1923
1675
  };
1924
- var ot = function() {
1676
+ var Wo = function() {
1925
1677
  for (var o = [], e = arguments.length; e--; )
1926
1678
  o[e] = arguments[e];
1927
1679
  return o.reduce(function(t, r) {
1928
- return t.concat(typeof r == "string" ? r : Array.isArray(r) ? ot.apply(void 0, r) : typeof r == "object" && r ? Object.keys(r).map(function(i) {
1680
+ return t.concat(typeof r == "string" ? r : Array.isArray(r) ? Wo.apply(void 0, r) : typeof r == "object" && r ? Object.keys(r).map(function(i) {
1929
1681
  return r[i] ? i : "";
1930
1682
  }) : "");
1931
1683
  }, []).join(" ");
1932
1684
  };
1685
+ /**
1686
+ * @license
1687
+ * Copyright 2017 Google LLC
1688
+ * SPDX-License-Identifier: BSD-3-Clause
1689
+ */
1690
+ const Ko = {
1691
+ ATTRIBUTE: 1,
1692
+ CHILD: 2,
1693
+ PROPERTY: 3,
1694
+ BOOLEAN_ATTRIBUTE: 4,
1695
+ EVENT: 5,
1696
+ ELEMENT: 6
1697
+ }, Yo = (o) => (...e) => ({
1698
+ _$litDirective$: o,
1699
+ values: e
1700
+ });
1701
+ class Zo {
1702
+ constructor(e) {
1703
+ }
1704
+ get _$isConnected() {
1705
+ return this._$parent._$isConnected;
1706
+ }
1707
+ _$initialize(e, t, r) {
1708
+ this.__part = e, this._$parent = t, this.__attributeIndex = r;
1709
+ }
1710
+ _$resolve(e, t) {
1711
+ return this.update(e, t);
1712
+ }
1713
+ update(e, t) {
1714
+ return this.render(...t);
1715
+ }
1716
+ }
1933
1717
  /**
1934
1718
  * @license
1935
1719
  * Copyright 2018 Google LLC
1936
1720
  * SPDX-License-Identifier: BSD-3-Clause
1937
1721
  */
1938
- class ci extends Jo {
1722
+ class Hr extends Zo {
1939
1723
  constructor(e) {
1940
1724
  var t;
1941
- if (super(e), e.type !== Xo.ATTRIBUTE || e.name !== "class" || ((t = e.strings) === null || t === void 0 ? void 0 : t.length) > 2)
1725
+ if (super(e), e.type !== Ko.ATTRIBUTE || e.name !== "class" || ((t = e.strings) === null || t === void 0 ? void 0 : t.length) > 2)
1942
1726
  throw new Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
1943
1727
  }
1944
1728
  render(e) {
@@ -1960,38 +1744,38 @@ class ci extends Jo {
1960
1744
  const l = !!t[n];
1961
1745
  l !== this._previousClasses.has(n) && !(!((i = this._staticClasses) === null || i === void 0) && i.has(n)) && (l ? (a.add(n), this._previousClasses.add(n)) : (a.remove(n), this._previousClasses.delete(n)));
1962
1746
  }
1963
- return K;
1747
+ return I;
1964
1748
  }
1965
1749
  }
1966
- const tt = Go(ci), si = (o) => o.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1967
- function Xe(o) {
1750
+ const Xo = Yo(Hr), Wr = (o) => o.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
1751
+ function Ye(o) {
1968
1752
  return class extends o {
1969
1753
  static createProperty(e, t) {
1970
1754
  let r = t;
1971
1755
  (typeof (t == null ? void 0 : t.attribute) > "u" || (t == null ? void 0 : t.attribute) === !0) && (r = Object.assign({}, t, {
1972
- attribute: si(e.toString())
1756
+ attribute: Wr(e.toString())
1973
1757
  })), super.createProperty(e, r);
1974
1758
  }
1975
1759
  };
1976
1760
  }
1977
- function wt(o) {
1761
+ function gt(o) {
1978
1762
  const e = [];
1979
1763
  for (const [t, r] of Object.entries(o))
1980
1764
  r && e.push(t);
1981
1765
  return e.join(" ");
1982
1766
  }
1983
- const be = typeof window < "u";
1984
- function L(o) {
1767
+ const xe = typeof window < "u";
1768
+ function M(o) {
1985
1769
  const e = {};
1986
1770
  for (const [t, r] of Object.entries(o))
1987
1771
  for (const i of t.split(" "))
1988
1772
  e[i] = r;
1989
- return tt(e);
1773
+ return Xo(e);
1990
1774
  }
1991
- function di() {
1775
+ function Kr() {
1992
1776
  return `m${Math.random().toString(36).slice(2)}`;
1993
1777
  }
1994
- const wo = [
1778
+ const fo = [
1995
1779
  "primary",
1996
1780
  "secondary",
1997
1781
  "negative",
@@ -1999,15 +1783,15 @@ const wo = [
1999
1783
  "pill",
2000
1784
  "link"
2001
1785
  ];
2002
- class Pe extends Xe($) {
1786
+ class Me extends Ye(y) {
2003
1787
  constructor() {
2004
1788
  super(), this.variant = "secondary";
2005
1789
  }
2006
1790
  connectedCallback() {
2007
- if (super.connectedCallback(), !wo.includes(this.variant))
1791
+ if (super.connectedCallback(), !fo.includes(this.variant))
2008
1792
  throw new Error(
2009
1793
  `Invalid "variant" attribute. Set its value to one of the following:
2010
- ${wo.join(
1794
+ ${fo.join(
2011
1795
  ", "
2012
1796
  )}.`
2013
1797
  );
@@ -2017,37 +1801,37 @@ ${wo.join(
2017
1801
  }
2018
1802
  get _classes() {
2019
1803
  const e = this.variant === "primary", t = this.variant === "secondary", r = this.variant === "negative", i = this.variant === "utility", a = this.variant === "pill", n = this.variant === "link";
2020
- return ot(
1804
+ return Wo(
2021
1805
  {
2022
- [U.buttonSecondary]: !wo.find((l) => this.variant === l) || t,
2023
- [U.buttonPrimary]: e,
2024
- [U.buttonDestructive]: r && !this.quiet,
2025
- [U.buttonFlat]: t && this.quiet,
2026
- [U.buttonDestructiveFlat]: r && this.quiet,
2027
- [U.buttonUtilityFlat]: i && this.quiet,
2028
- [U.buttonSmall]: this.small,
2029
- [U.buttonUtility]: i && !this.quiet,
2030
- [U.buttonLink]: n,
2031
- [U.buttonPill]: a,
2032
- [U.buttonInProgress]: this.loading,
2033
- [U.buttonIsDisabled]: this.disabled,
1806
+ [A.buttonSecondary]: !fo.find((l) => this.variant === l) || t,
1807
+ [A.buttonPrimary]: e,
1808
+ [A.buttonDestructive]: r && !this.quiet,
1809
+ [A.buttonFlat]: t && this.quiet,
1810
+ [A.buttonDestructiveFlat]: r && this.quiet,
1811
+ [A.buttonUtilityFlat]: i && this.quiet,
1812
+ [A.buttonSmall]: this.small,
1813
+ [A.buttonUtility]: i && !this.quiet,
1814
+ [A.buttonLink]: n,
1815
+ [A.buttonPill]: a,
1816
+ [A.buttonInProgress]: this.loading,
1817
+ [A.buttonIsDisabled]: this.disabled,
2034
1818
  ["inline-block"]: !!this.href
2035
1819
  }
2036
1820
  );
2037
1821
  }
2038
1822
  render() {
2039
- return p`
2040
- ${this.href ? p`<a
1823
+ return h`
1824
+ ${this.href ? h`<a
2041
1825
  href=${this.href}
2042
1826
  target=${this.target}
2043
1827
  rel=${this.target === "_blank" ? this.rel || "noopener" : void 0}
2044
1828
  class=${this._classes}
2045
1829
  >
2046
1830
  <slot></slot>
2047
- </a>` : p`<button type=${this.type || "button"} class=${this._classes}>
1831
+ </a>` : h`<button type=${this.type || "button"} class=${this._classes}>
2048
1832
  <slot></slot>
2049
1833
  </button>`}
2050
- ${this.loading ? p`<span
1834
+ ${this.loading ? h`<span
2051
1835
  class="sr-only"
2052
1836
  role="progressbar"
2053
1837
  aria-valuenow="{0}"
@@ -2055,7 +1839,7 @@ ${wo.join(
2055
1839
  />` : null}`;
2056
1840
  }
2057
1841
  }
2058
- k(Pe, "shadowRootOptions", { ...$.shadowRootOptions, delegatesFocus: !0 }), k(Pe, "properties", {
1842
+ x(Me, "shadowRootOptions", { ...y.shadowRootOptions, delegatesFocus: !0 }), x(Me, "properties", {
2059
1843
  type: { type: "button" | "submit" | "reset", reflect: !0 },
2060
1844
  autofocus: { type: Boolean, reflect: !0 },
2061
1845
  variant: { type: String, reflect: !0 },
@@ -2066,7 +1850,7 @@ k(Pe, "shadowRootOptions", { ...$.shadowRootOptions, delegatesFocus: !0 }), k(Pe
2066
1850
  target: { type: String, reflect: !0 },
2067
1851
  rel: { type: String, reflect: !0 },
2068
1852
  buttonClass: { type: String, reflect: !0 }
2069
- }), k(Pe, "styles", R`
1853
+ }), x(Me, "styles", C`
2070
1854
  /* /* layer: preflights */
2071
1855
 
2072
1856
  /*
@@ -2634,50 +2418,50 @@ video {
2634
2418
  .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
2635
2419
  .ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
2636
2420
  `);
2637
- customElements.get("w-button") || customElements.define("w-button", Pe);
2421
+ customElements.get("w-button") || customElements.define("w-button", Me);
2638
2422
  /**
2639
2423
  * @license
2640
2424
  * Copyright 2018 Google LLC
2641
2425
  * SPDX-License-Identifier: BSD-3-Clause
2642
2426
  */
2643
- const _ = (o) => o != null ? o : z, yt = {
2427
+ const z = (o) => o != null ? o : w, ht = {
2644
2428
  ENTER: "Enter",
2645
2429
  SPACE: " "
2646
2430
  };
2647
- class qo extends $ {
2431
+ class So extends y {
2648
2432
  constructor() {
2649
2433
  super(), this.selected = !1, this.flat = !1, this.clickable = !1;
2650
2434
  }
2651
2435
  get _outerClasses() {
2652
- return L({
2653
- [H.card]: !0,
2654
- [H.cardShadow]: !this.flat,
2655
- [H.cardSelected]: this.selected,
2656
- [H.cardFlat]: this.flat,
2657
- [this.selected ? H.cardFlatSelected : H.cardFlatUnselected]: this.flat
2436
+ return M({
2437
+ [O.card]: !0,
2438
+ [O.cardShadow]: !this.flat,
2439
+ [O.cardSelected]: this.selected,
2440
+ [O.cardFlat]: this.flat,
2441
+ [this.selected ? O.cardFlatSelected : O.cardFlatUnselected]: this.flat
2658
2442
  });
2659
2443
  }
2660
2444
  get _innerClasses() {
2661
- return L({
2662
- [H.cardOutline]: !0,
2663
- [this.selected ? H.cardOutlineSelected : H.cardOutlineUnselected]: !0
2445
+ return M({
2446
+ [O.cardOutline]: !0,
2447
+ [this.selected ? O.cardOutlineSelected : O.cardOutlineUnselected]: !0
2664
2448
  });
2665
2449
  }
2666
2450
  get uuButton() {
2667
- return p`<button class="sr-only" aria-pressed="${this.selected}" tabindex="-1">
2451
+ return h`<button class="sr-only" aria-pressed="${this.selected}" tabindex="-1">
2668
2452
  Velg
2669
2453
  </button>`;
2670
2454
  }
2671
2455
  get uuSpan() {
2672
- return p`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`;
2456
+ return h`<span role="checkbox" aria-checked="true" aria-disabled="true"></span>`;
2673
2457
  }
2674
2458
  keypressed(e) {
2675
- !this.clickable || e.altKey || e.ctrlKey || (e.key === yt.ENTER || e.key === yt.SPACE) && (e.preventDefault(), this.click());
2459
+ !this.clickable || e.altKey || e.ctrlKey || (e.key === ht.ENTER || e.key === ht.SPACE) && (e.preventDefault(), this.click());
2676
2460
  }
2677
2461
  render() {
2678
- return p`
2462
+ return h`
2679
2463
  <div
2680
- tabindex=${_(this.clickable ? "0" : void 0)}
2464
+ tabindex=${z(this.clickable ? "0" : void 0)}
2681
2465
  class="${this._outerClasses}"
2682
2466
  @keydown=${this.keypressed}
2683
2467
  >
@@ -2689,8 +2473,8 @@ class qo extends $ {
2689
2473
  `;
2690
2474
  }
2691
2475
  }
2692
- k(qo, "styles", [
2693
- R`
2476
+ x(So, "styles", [
2477
+ C`
2694
2478
  /* /* layer: preflights */
2695
2479
 
2696
2480
  /*
@@ -3270,68 +3054,100 @@ video {
3270
3054
  display: block;
3271
3055
  }
3272
3056
  `
3273
- ]), k(qo, "properties", {
3057
+ ]), x(So, "properties", {
3274
3058
  selected: { type: Boolean, reflect: !0 },
3275
3059
  flat: { type: Boolean },
3276
3060
  clickable: { type: Boolean }
3277
3061
  });
3278
- customElements.get("w-card") || customElements.define("w-card", qo);
3062
+ customElements.get("w-card") || customElements.define("w-card", So);
3279
3063
  /**
3280
3064
  * @license
3281
3065
  * Copyright 2021 Google LLC
3282
3066
  * SPDX-License-Identifier: BSD-3-Clause
3283
3067
  */
3284
- function je(o, e, t) {
3068
+ function Pe(o, e, t) {
3285
3069
  return o ? e() : t == null ? void 0 : t();
3286
3070
  }
3287
- var Ke, Qt, se, Ne, de, Te;
3288
- class Mo extends Xe($) {
3071
+ /**
3072
+ * @license
3073
+ * Copyright 2017 Google LLC
3074
+ * SPDX-License-Identifier: BSD-3-Clause
3075
+ */
3076
+ const Yr = 1;
3077
+ class Go extends Zo {
3078
+ constructor(e) {
3079
+ if (super(e), this._value = w, e.type !== Ko.CHILD)
3080
+ throw new Error(`${this.constructor.directiveName}() can only be used in child bindings`);
3081
+ }
3082
+ render(e) {
3083
+ if (e === w || e == null)
3084
+ return this._templateResult = void 0, this._value = e;
3085
+ if (e === I)
3086
+ return e;
3087
+ if (typeof e != "string")
3088
+ throw new Error(`${this.constructor.directiveName}() called with a non-string value`);
3089
+ if (e === this._value)
3090
+ return this._templateResult;
3091
+ this._value = e;
3092
+ const t = [e];
3093
+ return t.raw = t, this._templateResult = {
3094
+ _$litType$: this.constructor.resultType,
3095
+ strings: t,
3096
+ values: []
3097
+ };
3098
+ }
3099
+ }
3100
+ Go.directiveName = "unsafeHTML";
3101
+ Go.resultType = Yr;
3102
+ const Vt = Yo(Go);
3103
+ var He, Dt, re, je, ie, Ne;
3104
+ class Co extends Ye(y) {
3289
3105
  constructor() {
3290
3106
  super();
3291
- Re(this, Ke);
3292
- Re(this, se);
3293
- Re(this, de);
3107
+ Re(this, He);
3108
+ Re(this, re);
3109
+ Re(this, ie);
3294
3110
  this._options = this.innerHTML;
3295
3111
  }
3296
3112
  render() {
3297
- return p`<div class="${J(this, Ke, Qt)}">
3298
- ${je(
3113
+ return h`<div class="${D(this, He, Dt)}">
3114
+ ${Pe(
3299
3115
  this.label,
3300
- () => p`<label for="${J(this, se, Ne)}">
3116
+ () => h`<label for="${D(this, re, je)}">
3301
3117
  ${this.label}
3302
- ${je(
3118
+ ${Pe(
3303
3119
  this.optional,
3304
- () => p`<span className="pl-8 font-normal text-14 text-gray-500">(valgfritt)</span>`
3120
+ () => h`<span className="pl-8 font-normal text-14 text-gray-500">(valgfritt)</span>`
3305
3121
  )}</label
3306
3122
  >`
3307
3123
  )}
3308
3124
  <div class="input--select__wrap">
3309
3125
  <select
3310
- id="${J(this, se, Ne)}"
3126
+ id="${D(this, re, je)}"
3311
3127
  ?autofocus=${this.autoFocus}
3312
- aria-describedby="${_(J(this, de, Te))}"
3313
- aria-invalid="${_(this.invalid)}"
3314
- aria-errormessage="${_(this.invalid && J(this, de, Te))}"
3128
+ aria-describedby="${z(D(this, ie, Ne))}"
3129
+ aria-invalid="${z(this.invalid)}"
3130
+ aria-errormessage="${z(this.invalid && D(this, ie, Ne))}"
3315
3131
  >
3316
- ${et(this._options)}
3132
+ ${Vt(this._options)}
3317
3133
  </select>
3318
3134
  </div>
3319
- ${je(
3135
+ ${Pe(
3320
3136
  this.always || this.invalid,
3321
- () => p`<div id="${J(this, de, Te)}" class="input__sub-text">${this.hint}</div>`
3137
+ () => h`<div id="${D(this, ie, Ne)}" class="input__sub-text">${this.hint}</div>`
3322
3138
  )}
3323
3139
  </div>`;
3324
3140
  }
3325
3141
  }
3326
- Ke = new WeakSet(), Qt = function() {
3327
- return ot("input mb-0", {
3142
+ He = new WeakSet(), Dt = function() {
3143
+ return Wo("input mb-0", {
3328
3144
  "input--is-invalid": this.invalid
3329
3145
  });
3330
- }, se = new WeakSet(), Ne = function() {
3146
+ }, re = new WeakSet(), je = function() {
3331
3147
  return "select_id";
3332
- }, de = new WeakSet(), Te = function() {
3333
- return this.hint ? `${J(this, se, Ne)}__hint` : void 0;
3334
- }, k(Mo, "properties", {
3148
+ }, ie = new WeakSet(), Ne = function() {
3149
+ return this.hint ? `${D(this, re, je)}__hint` : void 0;
3150
+ }, x(Co, "properties", {
3335
3151
  autoFocus: { type: Boolean, reflect: !0 },
3336
3152
  invalid: { type: Boolean, reflect: !0 },
3337
3153
  always: { type: Boolean, reflect: !0 },
@@ -3339,7 +3155,7 @@ Ke = new WeakSet(), Qt = function() {
3339
3155
  label: { type: String, reflect: !0 },
3340
3156
  optional: { type: Boolean, reflect: !0 },
3341
3157
  _options: { state: !0 }
3342
- }), k(Mo, "styles", R`
3158
+ }), x(Co, "styles", C`
3343
3159
  /* /* layer: preflights */
3344
3160
 
3345
3161
  /*
@@ -3909,31 +3725,31 @@ video {
3909
3725
  .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
3910
3726
  .ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
3911
3727
  `);
3912
- customElements.get("w-select") || customElements.define("w-select", Mo);
3913
- class Po extends $ {
3728
+ customElements.get("w-select") || customElements.define("w-select", Co);
3729
+ class Ro extends y {
3914
3730
  get _class() {
3915
- return L({
3916
- [le.box]: !0,
3917
- [le.bleed]: this.bleed,
3731
+ return M({
3732
+ [oe.box]: !0,
3733
+ [oe.bleed]: this.bleed,
3918
3734
  "bg-aqua-50": this.info,
3919
3735
  "bg-bluegray-100": this.neutral,
3920
3736
  "border-2 border-bluegray-300": this.bordered
3921
3737
  });
3922
3738
  }
3923
3739
  render() {
3924
- return p`
3740
+ return h`
3925
3741
  <div class="${this._class}">
3926
3742
  <slot></slot>
3927
3743
  </div>
3928
3744
  `;
3929
3745
  }
3930
3746
  }
3931
- k(Po, "properties", {
3747
+ x(Ro, "properties", {
3932
3748
  bleed: { type: Boolean },
3933
3749
  bordered: { type: Boolean },
3934
3750
  info: { type: Boolean },
3935
3751
  neutral: { type: Boolean }
3936
- }), k(Po, "styles", R`
3752
+ }), x(Ro, "styles", C`
3937
3753
  /* /* layer: preflights */
3938
3754
 
3939
3755
  /*
@@ -4507,17 +4323,17 @@ video {
4507
4323
  margin-bottom: 0px !important;
4508
4324
  }
4509
4325
  `);
4510
- customElements.get("w-box") || customElements.define("w-box", Po);
4511
- function ui(o, e) {
4326
+ customElements.get("w-box") || customElements.define("w-box", Ro);
4327
+ function Zr(o, e) {
4512
4328
  return o.flatMap((t) => [t, e]).slice(0, -1);
4513
4329
  }
4514
- const bi = p`<span class="select-none" aria-hidden="true">/</span>`;
4515
- class er extends $ {
4330
+ const Xr = h`<span class="select-none" aria-hidden="true">/</span>`;
4331
+ class Ht extends y {
4516
4332
  connectedCallback() {
4517
- super.connectedCallback(), this._children = ui(Array.from(this.children), bi);
4333
+ super.connectedCallback(), this._children = Zr(Array.from(this.children), Xr);
4518
4334
  }
4519
4335
  render() {
4520
- return p`
4336
+ return h`
4521
4337
  <nav aria-label="Her er du" class="flex space-x-8">
4522
4338
  <h2 class="sr-only">Her er du</h2>
4523
4339
  ${this._children}
@@ -4525,7 +4341,7 @@ class er extends $ {
4525
4341
  `;
4526
4342
  }
4527
4343
  }
4528
- k(er, "styles", R`
4344
+ x(Ht, "styles", C`
4529
4345
  /* /* layer: preflights */
4530
4346
 
4531
4347
  /*
@@ -5095,49 +4911,49 @@ video {
5095
4911
  .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
5096
4912
  .ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
5097
4913
  `);
5098
- customElements.get("w-breadcrumbs") || customElements.define("w-breadcrumbs", er);
5099
- const rt = typeof window < "u";
5100
- let or = !0;
5101
- if (rt) {
5102
- const o = window.matchMedia("(prefers-reduced-motion: reduce)"), e = ({ matches: t }) => or = !t;
4914
+ customElements.get("w-breadcrumbs") || customElements.define("w-breadcrumbs", Ht);
4915
+ const Jo = typeof window < "u";
4916
+ let Wt = !0;
4917
+ if (Jo) {
4918
+ const o = window.matchMedia("(prefers-reduced-motion: reduce)"), e = ({ matches: t }) => Wt = !t;
5103
4919
  o.addEventListener && o.addEventListener("change", e), e(o);
5104
4920
  }
5105
- const tr = (o) => {
4921
+ const Kt = (o) => {
5106
4922
  o.style.transition = null, o.style.backfaceVisibility = null, o.style.overflow = null;
5107
- }, rr = (o) => {
5108
- const e = or ? "var(--f-expansion-duration, 0.3s)" : "0.01s";
4923
+ }, Yt = (o) => {
4924
+ const e = Wt ? "var(--f-expansion-duration, 0.3s)" : "0.01s";
5109
4925
  o.style.transition = `height ${e}`, o.style.backfaceVisibility = "hidden", o.style.overflow = "hidden";
5110
- }, gi = (o, e) => () => {
4926
+ }, Gr = (o, e) => () => {
5111
4927
  o.style.height = "auto", o.style.overflow = null, e && e();
5112
- }, hi = (o) => () => {
4928
+ }, Jr = (o) => () => {
5113
4929
  o && o();
5114
- }, ir = (o, e) => {
4930
+ }, Zt = (o, e) => {
5115
4931
  const t = (() => {
5116
4932
  if (!e)
5117
4933
  return new Promise((a) => {
5118
4934
  e = a;
5119
4935
  });
5120
- })(), r = gi(o, e);
5121
- tr(o), o.style.height = "auto";
4936
+ })(), r = Gr(o, e);
4937
+ Kt(o), o.style.height = "auto";
5122
4938
  let i = o.scrollHeight;
5123
- if (rt && requestAnimationFrame(() => {
5124
- o.addEventListener("transitionend", r, { once: !0 }), o.style.height = "0px", o.style.transitionTimingFunction = "ease-out", rr(o), requestAnimationFrame(() => o.style.height = i + "px");
4939
+ if (Jo && requestAnimationFrame(() => {
4940
+ o.addEventListener("transitionend", r, { once: !0 }), o.style.height = "0px", o.style.transitionTimingFunction = "ease-out", Yt(o), requestAnimationFrame(() => o.style.height = i + "px");
5125
4941
  }), t)
5126
4942
  return t;
5127
- }, nr = (o, e) => {
4943
+ }, Xt = (o, e) => {
5128
4944
  const t = (() => {
5129
4945
  if (!e)
5130
4946
  return new Promise((a) => {
5131
4947
  e = a;
5132
4948
  });
5133
- })(), r = hi(e);
5134
- tr(o);
4949
+ })(), r = Jr(e);
4950
+ Kt(o);
5135
4951
  let i = o.scrollHeight;
5136
- if (rt && requestAnimationFrame(() => {
5137
- o.addEventListener("transitionend", r, { once: !0 }), o.style.height = i + "px", o.style.transitionTimingFunction = "ease-in", rr(o), requestAnimationFrame(() => o.style.height = "0px");
4952
+ if (Jo && requestAnimationFrame(() => {
4953
+ o.addEventListener("transitionend", r, { once: !0 }), o.style.height = i + "px", o.style.transitionTimingFunction = "ease-in", Yt(o), requestAnimationFrame(() => o.style.height = "0px");
5138
4954
  }), t)
5139
4955
  return t;
5140
- }, pi = (o) => p`<svg
4956
+ }, Qr = (o) => h`<svg
5141
4957
  role="img"
5142
4958
  aria-label="${o.typeLabel}"
5143
4959
  xmlns="http://www.w3.org/2000/svg"
@@ -5153,7 +4969,7 @@ const tr = (o) => {
5153
4969
  stroke-width="1.5"
5154
4970
  d="M5.5 9l2 1.5L11 6"
5155
4971
  />
5156
- </svg>`, mi = (o) => p`
4972
+ </svg>`, ei = (o) => h`
5157
4973
  <svg
5158
4974
  role="img"
5159
4975
  aria-label="${o.typeLabel}"
@@ -5162,7 +4978,7 @@ const tr = (o) => {
5162
4978
  height="16"
5163
4979
  fill="none"
5164
4980
  viewBox="0 0 16 16"
5165
- class="${tt({
4981
+ class="${Xo({
5166
4982
  "transition-transform duration-200": !0,
5167
4983
  "transform-rotate-180": o.isInfo
5168
4984
  })}"
@@ -5176,7 +4992,7 @@ const tr = (o) => {
5176
4992
  />
5177
4993
  <circle cx="8" cy="11.8" r=".8" fill="currentColor" />
5178
4994
  </svg>
5179
- `, fi = () => p`
4995
+ `, oi = () => h`
5180
4996
  <svg
5181
4997
  role="img"
5182
4998
  aria-label="Lukk"
@@ -5193,14 +5009,14 @@ const tr = (o) => {
5193
5009
  clipRule="evenodd"
5194
5010
  />
5195
5011
  </svg>
5196
- `, $t = (o) => {
5012
+ `, pt = (o) => {
5197
5013
  const e = {};
5198
5014
  for (const [t, r] of Object.entries(o))
5199
5015
  for (const i of t.split(" "))
5200
5016
  e[i] = r;
5201
- return tt(e);
5017
+ return Xo(e);
5202
5018
  };
5203
- class jo extends $ {
5019
+ class Eo extends y {
5204
5020
  constructor() {
5205
5021
  super(), this.id = Date.now().toString(36) + Math.random().toString(36).slice(2, 5), this.type = "success", this.text = "", this.canclose = !1;
5206
5022
  }
@@ -5211,24 +5027,24 @@ class jo extends $ {
5211
5027
  super.disconnectedCallback();
5212
5028
  }
5213
5029
  updated() {
5214
- !this._expanded && this._wrapper && ir(this._wrapper, () => this._expanded = !0);
5030
+ !this._expanded && this._wrapper && Zt(this._wrapper, () => this._expanded = !0);
5215
5031
  }
5216
5032
  get _primaryClasses() {
5217
- return $t({
5218
- [j.toast]: !0,
5219
- [j.toastPositive]: this.type === "success",
5220
- [j.toastWarning]: this.type === "warning",
5221
- [j.toastNegative]: this.type === "error",
5222
- [j.toastNeutral]: this.type === "info"
5033
+ return pt({
5034
+ [E.toast]: !0,
5035
+ [E.toastPositive]: this.type === "success",
5036
+ [E.toastWarning]: this.type === "warning",
5037
+ [E.toastNegative]: this.type === "error",
5038
+ [E.toastNeutral]: this.type === "info"
5223
5039
  });
5224
5040
  }
5225
5041
  get _iconClasses() {
5226
- return $t({
5227
- [j.toastIcon]: !0,
5228
- [j.toastIconPositive]: this.type == "success",
5229
- [j.toastIconWarning]: this.type === "warning",
5230
- [j.toastIconNegative]: this.type === "error",
5231
- [j.toastIconNeutral]: this.type === "info"
5042
+ return pt({
5043
+ [E.toastIcon]: !0,
5044
+ [E.toastIconPositive]: this.type == "success",
5045
+ [E.toastIconWarning]: this.type === "warning",
5046
+ [E.toastIconNegative]: this.type === "error",
5047
+ [E.toastIconNeutral]: this.type === "info"
5232
5048
  });
5233
5049
  }
5234
5050
  get _wrapper() {
@@ -5254,11 +5070,11 @@ class jo extends $ {
5254
5070
  return this._success ? "Vellykket" : this._error ? "Feil" : this._warning ? "Varsel" : "Info";
5255
5071
  }
5256
5072
  get _iconMarkup() {
5257
- return this._success ? pi({ typeLabel: this._typeLabel }) : mi({ typeLabel: this._typeLabel, isInfo: this._info });
5073
+ return this._success ? Qr({ typeLabel: this._typeLabel }) : ei({ typeLabel: this._typeLabel, isInfo: this._info });
5258
5074
  }
5259
5075
  async collapse() {
5260
5076
  return new Promise((e) => {
5261
- this._expanded && this._wrapper ? nr(this._wrapper, e) : e();
5077
+ this._expanded && this._wrapper ? Xt(this._wrapper, e) : e();
5262
5078
  });
5263
5079
  }
5264
5080
  close() {
@@ -5270,22 +5086,22 @@ class jo extends $ {
5270
5086
  this.updateComplete.then(() => this.dispatchEvent(e));
5271
5087
  }
5272
5088
  render() {
5273
- return this.text ? p` <section class="${j.toastWrapper}" aria-label="${this._typeLabel}">
5089
+ return this.text ? h` <section class="${E.toastWrapper}" aria-label="${this._typeLabel}">
5274
5090
  <div class="${this._primaryClasses}">
5275
5091
  <div class="${this._iconClasses}">${this._iconMarkup}</div>
5276
- <div role="${this._role}" class="${j.toastContent}">
5092
+ <div role="${this._role}" class="${E.toastContent}">
5277
5093
  <p>${this.text}</p>
5278
5094
  </div>
5279
- ${je(
5095
+ ${Pe(
5280
5096
  this.canclose === !0,
5281
- () => p`<button class="${j.toastClose}" @click="${this.close}">${fi()}</button>`
5097
+ () => h`<button class="${E.toastClose}" @click="${this.close}">${oi()}</button>`
5282
5098
  )}
5283
5099
  </div>
5284
- </section>` : p``;
5100
+ </section>` : h``;
5285
5101
  }
5286
5102
  }
5287
- k(jo, "styles", [
5288
- R`
5103
+ x(Eo, "styles", [
5104
+ C`
5289
5105
  /* /* layer: preflights */
5290
5106
 
5291
5107
  /*
@@ -5855,49 +5671,49 @@ video {
5855
5671
  display: block;
5856
5672
  }
5857
5673
  `
5858
- ]), k(jo, "properties", {
5674
+ ]), x(Eo, "properties", {
5859
5675
  id: { type: String, attribute: !0, reflect: !0 },
5860
5676
  type: { type: String, attribute: !0, reflect: !0 },
5861
5677
  text: { type: String, attribute: !0, reflect: !0 },
5862
5678
  canclose: { type: Boolean, attribute: !0, reflect: !0 }
5863
5679
  });
5864
- customElements.get("w-toast") || customElements.define("w-toast", jo);
5680
+ customElements.get("w-toast") || customElements.define("w-toast", Eo);
5865
5681
  /**
5866
5682
  * @license
5867
5683
  * Copyright 2020 Google LLC
5868
5684
  * SPDX-License-Identifier: BSD-3-Clause
5869
5685
  */
5870
- var yo, $o;
5871
- const { _ChildPart: vi } = Kr, W = ((yo = window.ShadyDOM) === null || yo === void 0 ? void 0 : yo.inUse) && (($o = window.ShadyDOM) === null || $o === void 0 ? void 0 : $o.noPatch) === !0 ? window.ShadyDOM.wrap : (o) => o, zt = () => document.createComment(""), fe = (o, e, t) => {
5686
+ var vo, xo;
5687
+ const { _ChildPart: ti } = Pr, L = ((vo = window.ShadyDOM) === null || vo === void 0 ? void 0 : vo.inUse) && ((xo = window.ShadyDOM) === null || xo === void 0 ? void 0 : xo.noPatch) === !0 ? window.ShadyDOM.wrap : (o) => o, mt = () => document.createComment(""), ge = (o, e, t) => {
5872
5688
  var r;
5873
- const i = W(o._$startNode).parentNode, a = e === void 0 ? o._$endNode : e._$startNode;
5689
+ const i = L(o._$startNode).parentNode, a = e === void 0 ? o._$endNode : e._$startNode;
5874
5690
  if (t === void 0) {
5875
- const n = W(i).insertBefore(zt(), a), l = W(i).insertBefore(zt(), a);
5876
- t = new vi(n, l, o, o.options);
5691
+ const n = L(i).insertBefore(mt(), a), l = L(i).insertBefore(mt(), a);
5692
+ t = new ti(n, l, o, o.options);
5877
5693
  } else {
5878
- const n = W(t._$endNode).nextSibling, l = t._$parent, s = l !== o;
5879
- if (s) {
5694
+ const n = L(t._$endNode).nextSibling, l = t._$parent, c = l !== o;
5695
+ if (c) {
5880
5696
  (r = t._$reparentDisconnectables) === null || r === void 0 || r.call(t, o), t._$parent = o;
5881
- let c;
5882
- t._$notifyConnectionChanged !== void 0 && (c = o._$isConnected) !== l._$isConnected && t._$notifyConnectionChanged(c);
5697
+ let s;
5698
+ t._$notifyConnectionChanged !== void 0 && (s = o._$isConnected) !== l._$isConnected && t._$notifyConnectionChanged(s);
5883
5699
  }
5884
- if (n !== a || s) {
5885
- let c = t._$startNode;
5886
- for (; c !== n; ) {
5887
- const b = W(c).nextSibling;
5888
- W(i).insertBefore(c, a), c = b;
5700
+ if (n !== a || c) {
5701
+ let s = t._$startNode;
5702
+ for (; s !== n; ) {
5703
+ const g = L(s).nextSibling;
5704
+ L(i).insertBefore(s, a), s = g;
5889
5705
  }
5890
5706
  }
5891
5707
  }
5892
5708
  return t;
5893
- }, re = (o, e, t = o) => (o._$setValue(e, t), o), xi = {}, ki = (o, e = xi) => o._$committedValue = e, wi = (o) => o._$committedValue, zo = (o) => {
5709
+ }, Z = (o, e, t = o) => (o._$setValue(e, t), o), ri = {}, ii = (o, e = ri) => o._$committedValue = e, ni = (o) => o._$committedValue, ko = (o) => {
5894
5710
  var e;
5895
5711
  (e = o._$notifyConnectionChanged) === null || e === void 0 || e.call(o, !1, !0);
5896
5712
  let t = o._$startNode;
5897
- const r = W(o._$endNode).nextSibling;
5713
+ const r = L(o._$endNode).nextSibling;
5898
5714
  for (; t !== r; ) {
5899
- const i = W(t).nextSibling;
5900
- W(t).remove(), t = i;
5715
+ const i = L(t).nextSibling;
5716
+ L(t).remove(), t = i;
5901
5717
  }
5902
5718
  };
5903
5719
  /**
@@ -5905,15 +5721,15 @@ const { _ChildPart: vi } = Kr, W = ((yo = window.ShadyDOM) === null || yo === vo
5905
5721
  * Copyright 2017 Google LLC
5906
5722
  * SPDX-License-Identifier: BSD-3-Clause
5907
5723
  */
5908
- const _t = (o, e, t) => {
5724
+ const ft = (o, e, t) => {
5909
5725
  const r = /* @__PURE__ */ new Map();
5910
5726
  for (let i = e; i <= t; i++)
5911
5727
  r.set(o[i], i);
5912
5728
  return r;
5913
5729
  };
5914
- class yi extends Jo {
5730
+ class ai extends Zo {
5915
5731
  constructor(e) {
5916
- if (super(e), e.type !== Xo.CHILD)
5732
+ if (super(e), e.type !== Ko.CHILD)
5917
5733
  throw new Error("repeat() can only be used in text expressions");
5918
5734
  }
5919
5735
  _getValuesAndKeys(e, t, r) {
@@ -5921,8 +5737,8 @@ class yi extends Jo {
5921
5737
  r === void 0 ? r = t : t !== void 0 && (i = t);
5922
5738
  const a = [], n = [];
5923
5739
  let l = 0;
5924
- for (const s of e)
5925
- a[l] = i ? i(s, l) : l, n[l] = r(s, l), l++;
5740
+ for (const c of e)
5741
+ a[l] = i ? i(c, l) : l, n[l] = r(c, l), l++;
5926
5742
  return {
5927
5743
  values: n,
5928
5744
  keys: a
@@ -5933,50 +5749,50 @@ class yi extends Jo {
5933
5749
  }
5934
5750
  update(e, [t, r, i]) {
5935
5751
  var a;
5936
- const n = wi(e), { values: l, keys: s } = this._getValuesAndKeys(t, r, i);
5752
+ const n = ni(e), { values: l, keys: c } = this._getValuesAndKeys(t, r, i);
5937
5753
  if (!Array.isArray(n))
5938
- return this._itemKeys = s, l;
5939
- const c = (a = this._itemKeys) !== null && a !== void 0 ? a : this._itemKeys = [], b = [];
5940
- let d, g, u = 0, h = n.length - 1, f = 0, v = l.length - 1;
5941
- for (; u <= h && f <= v; )
5942
- if (n[u] === null)
5943
- u++;
5944
- else if (n[h] === null)
5945
- h--;
5946
- else if (c[u] === s[f])
5947
- b[f] = re(n[u], l[f]), u++, f++;
5948
- else if (c[h] === s[v])
5949
- b[v] = re(n[h], l[v]), h--, v--;
5950
- else if (c[u] === s[v])
5951
- b[v] = re(n[u], l[v]), fe(e, b[v + 1], n[u]), u++, v--;
5952
- else if (c[h] === s[f])
5953
- b[f] = re(n[h], l[f]), fe(e, n[u], n[h]), h--, f++;
5954
- else if (d === void 0 && (d = _t(s, f, v), g = _t(c, u, h)), !d.has(c[u]))
5955
- zo(n[u]), u++;
5956
- else if (!d.has(c[h]))
5957
- zo(n[h]), h--;
5754
+ return this._itemKeys = c, l;
5755
+ const s = (a = this._itemKeys) !== null && a !== void 0 ? a : this._itemKeys = [], g = [];
5756
+ let u, b, d = 0, p = n.length - 1, f = 0, v = l.length - 1;
5757
+ for (; d <= p && f <= v; )
5758
+ if (n[d] === null)
5759
+ d++;
5760
+ else if (n[p] === null)
5761
+ p--;
5762
+ else if (s[d] === c[f])
5763
+ g[f] = Z(n[d], l[f]), d++, f++;
5764
+ else if (s[p] === c[v])
5765
+ g[v] = Z(n[p], l[v]), p--, v--;
5766
+ else if (s[d] === c[v])
5767
+ g[v] = Z(n[d], l[v]), ge(e, g[v + 1], n[d]), d++, v--;
5768
+ else if (s[p] === c[f])
5769
+ g[f] = Z(n[p], l[f]), ge(e, n[d], n[p]), p--, f++;
5770
+ else if (u === void 0 && (u = ft(c, f, v), b = ft(s, d, p)), !u.has(s[d]))
5771
+ ko(n[d]), d++;
5772
+ else if (!u.has(s[p]))
5773
+ ko(n[p]), p--;
5958
5774
  else {
5959
- const x = g.get(s[f]), y = x !== void 0 ? n[x] : null;
5960
- if (y === null) {
5961
- const S = fe(e, n[u]);
5962
- re(S, l[f]), b[f] = S;
5775
+ const k = b.get(c[f]), $ = k !== void 0 ? n[k] : null;
5776
+ if ($ === null) {
5777
+ const S = ge(e, n[d]);
5778
+ Z(S, l[f]), g[f] = S;
5963
5779
  } else
5964
- b[f] = re(y, l[f]), fe(e, n[u], y), n[x] = null;
5780
+ g[f] = Z($, l[f]), ge(e, n[d], $), n[k] = null;
5965
5781
  f++;
5966
5782
  }
5967
5783
  for (; f <= v; ) {
5968
- const x = fe(e, b[v + 1]);
5969
- re(x, l[f]), b[f++] = x;
5784
+ const k = ge(e, g[v + 1]);
5785
+ Z(k, l[f]), g[f++] = k;
5970
5786
  }
5971
- for (; u <= h; ) {
5972
- const x = n[u++];
5973
- x !== null && zo(x);
5787
+ for (; d <= p; ) {
5788
+ const k = n[d++];
5789
+ k !== null && ko(k);
5974
5790
  }
5975
- return this._itemKeys = s, ki(e, b), K;
5791
+ return this._itemKeys = c, ii(e, g), I;
5976
5792
  }
5977
5793
  }
5978
- const ar = Go(yi);
5979
- class Ie extends $ {
5794
+ const Gt = Yo(ai);
5795
+ class Ao extends y {
5980
5796
  constructor() {
5981
5797
  super(), this._toasts = /* @__PURE__ */ new Map();
5982
5798
  }
@@ -6034,13 +5850,13 @@ class Ie extends $ {
6034
5850
  return this._toasts = new Map(Array.from(this._toasts)), r;
6035
5851
  }
6036
5852
  render() {
6037
- return p`
6038
- <aside class="${kt.toasterContainer}">
6039
- <div class="${kt.toaster}" id="w-toast-container-list">
6040
- ${ar(
5853
+ return h`
5854
+ <aside class="${bt.toasterContainer}">
5855
+ <div class="${bt.toaster}" id="w-toast-container-list">
5856
+ ${Gt(
6041
5857
  this._toastsArray,
6042
5858
  (e) => e.id,
6043
- (e) => p` <w-toast
5859
+ (e) => h` <w-toast
6044
5860
  class="w-full"
6045
5861
  id="${e.id}"
6046
5862
  type="${e.type}"
@@ -6055,8 +5871,8 @@ class Ie extends $ {
6055
5871
  `;
6056
5872
  }
6057
5873
  }
6058
- k(Ie, "styles", [
6059
- R`
5874
+ x(Ao, "styles", [
5875
+ C`
6060
5876
  /* /* layer: preflights */
6061
5877
 
6062
5878
  /*
@@ -6628,12 +6444,12 @@ video {
6628
6444
  display: block;
6629
6445
  }
6630
6446
  `
6631
- ]), k(Ie, "properties", {
6447
+ ]), x(Ao, "properties", {
6632
6448
  _toasts: { state: !0 }
6633
6449
  });
6634
- customElements.get("w-toast-container") || customElements.define("w-toast-container", Ie);
6635
- function $i(o, e) {
6636
- if (!be)
6450
+ customElements.get("w-toast-container") || customElements.define("w-toast-container", Ao);
6451
+ function Vi(o, e) {
6452
+ if (!xe)
6637
6453
  return;
6638
6454
  const t = customElements.get("w-toast-container").init(), r = {
6639
6455
  id: Date.now().toString(36) + Math.random().toString(36).slice(2, 5),
@@ -6644,25 +6460,25 @@ function $i(o, e) {
6644
6460
  };
6645
6461
  return t.set(r), r;
6646
6462
  }
6647
- function zi(o) {
6648
- return be ? customElements.get("w-toast-container").init().del(o) : void 0;
6463
+ function Di(o) {
6464
+ return xe ? customElements.get("w-toast-container").init().del(o) : void 0;
6649
6465
  }
6650
- function _i(o, e) {
6651
- if (!be)
6466
+ function Hi(o, e) {
6467
+ if (!xe)
6652
6468
  return;
6653
6469
  const t = customElements.get("w-toast-container").init();
6654
6470
  return t.set({ ...t.get(o), ...e }), t.get(o);
6655
6471
  }
6656
- class No extends $ {
6472
+ class qo extends y {
6657
6473
  constructor() {
6658
- super(), this._messages = [], this.interval = 3e4, this._hiddenMessageIds = [], this.url = be ? window.location.href : "";
6474
+ super(), this._messages = [], this.interval = 3e4, this._hiddenMessageIds = [], this.url = xe ? window.location.href : "";
6659
6475
  }
6660
6476
  async connectedCallback() {
6661
6477
  if (super.connectedCallback(), !this.api) {
6662
6478
  console.error('Broadcast "api" attribute invalid or undefined');
6663
6479
  return;
6664
6480
  }
6665
- be && (await this._fetchMessage(), setInterval(() => this._fetchMessage(), this.interval));
6481
+ xe && (await this._fetchMessage(), setInterval(() => this._fetchMessage(), this.interval));
6666
6482
  }
6667
6483
  async _fetchMessage() {
6668
6484
  const e = `${this.api}?path=${this.url}`;
@@ -6678,12 +6494,12 @@ class No extends $ {
6678
6494
  }
6679
6495
  render() {
6680
6496
  const e = this._messages.filter((t) => !this._hiddenMessageIds.includes(t.id));
6681
- return p`
6497
+ return h`
6682
6498
  <aside class=${`${e.length === 0 ? "hidden" : "mb-16"}`}>
6683
- ${ar(
6499
+ ${Gt(
6684
6500
  e,
6685
6501
  ({ id: t }) => `broadcast-${t}`,
6686
- ({ id: t, message: r }) => p`<w-toast
6502
+ ({ id: t, message: r }) => h`<w-toast
6687
6503
  class="w-full"
6688
6504
  id="broadcast-${t}"
6689
6505
  type="warning"
@@ -6697,7 +6513,7 @@ class No extends $ {
6697
6513
  `;
6698
6514
  }
6699
6515
  }
6700
- k(No, "properties", {
6516
+ x(qo, "properties", {
6701
6517
  _messages: {
6702
6518
  state: !0,
6703
6519
  hasChanged(e, t) {
@@ -6714,7 +6530,7 @@ k(No, "properties", {
6714
6530
  interval: { type: Number, attribute: !0, reflect: !0 },
6715
6531
  url: { type: String, attribute: !0, reflect: !0 },
6716
6532
  api: { type: String, attribute: !0, reflect: !0 }
6717
- }), k(No, "styles", R`
6533
+ }), x(qo, "styles", C`
6718
6534
  /* /* layer: preflights */
6719
6535
 
6720
6536
  /*
@@ -7283,139 +7099,139 @@ video {
7283
7099
  .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
7284
7100
  .ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
7285
7101
  `);
7286
- customElements.get("w-broadcast") || customElements.define("w-broadcast", No);
7287
- function Se(o) {
7102
+ customElements.get("w-broadcast") || customElements.define("w-broadcast", qo);
7103
+ function $e(o) {
7288
7104
  return o.split("-")[0];
7289
7105
  }
7290
- function Ge(o) {
7106
+ function Ze(o) {
7291
7107
  return o.split("-")[1];
7292
7108
  }
7293
- function Ce(o) {
7294
- return ["top", "bottom"].includes(Se(o)) ? "x" : "y";
7109
+ function ze(o) {
7110
+ return ["top", "bottom"].includes($e(o)) ? "x" : "y";
7295
7111
  }
7296
- function it(o) {
7112
+ function Qo(o) {
7297
7113
  return o === "y" ? "height" : "width";
7298
7114
  }
7299
- function St(o, e, t) {
7115
+ function vt(o, e, t) {
7300
7116
  let {
7301
7117
  reference: r,
7302
7118
  floating: i
7303
7119
  } = o;
7304
- const a = r.x + r.width / 2 - i.width / 2, n = r.y + r.height / 2 - i.height / 2, l = Ce(e), s = it(l), c = r[s] / 2 - i[s] / 2, b = Se(e), d = l === "x";
7305
- let g;
7306
- switch (b) {
7120
+ const a = r.x + r.width / 2 - i.width / 2, n = r.y + r.height / 2 - i.height / 2, l = ze(e), c = Qo(l), s = r[c] / 2 - i[c] / 2, g = $e(e), u = l === "x";
7121
+ let b;
7122
+ switch (g) {
7307
7123
  case "top":
7308
- g = {
7124
+ b = {
7309
7125
  x: a,
7310
7126
  y: r.y - i.height
7311
7127
  };
7312
7128
  break;
7313
7129
  case "bottom":
7314
- g = {
7130
+ b = {
7315
7131
  x: a,
7316
7132
  y: r.y + r.height
7317
7133
  };
7318
7134
  break;
7319
7135
  case "right":
7320
- g = {
7136
+ b = {
7321
7137
  x: r.x + r.width,
7322
7138
  y: n
7323
7139
  };
7324
7140
  break;
7325
7141
  case "left":
7326
- g = {
7142
+ b = {
7327
7143
  x: r.x - i.width,
7328
7144
  y: n
7329
7145
  };
7330
7146
  break;
7331
7147
  default:
7332
- g = {
7148
+ b = {
7333
7149
  x: r.x,
7334
7150
  y: r.y
7335
7151
  };
7336
7152
  }
7337
- switch (Ge(e)) {
7153
+ switch (Ze(e)) {
7338
7154
  case "start":
7339
- g[l] -= c * (t && d ? -1 : 1);
7155
+ b[l] -= s * (t && u ? -1 : 1);
7340
7156
  break;
7341
7157
  case "end":
7342
- g[l] += c * (t && d ? -1 : 1);
7158
+ b[l] += s * (t && u ? -1 : 1);
7343
7159
  break;
7344
7160
  }
7345
- return g;
7161
+ return b;
7346
7162
  }
7347
- const Si = async (o, e, t) => {
7163
+ const li = async (o, e, t) => {
7348
7164
  const {
7349
7165
  placement: r = "bottom",
7350
7166
  strategy: i = "absolute",
7351
7167
  middleware: a = [],
7352
7168
  platform: n
7353
7169
  } = t, l = await (n.isRTL == null ? void 0 : n.isRTL(e));
7354
- if (process.env.NODE_ENV !== "production" && (n == null && console.error(["Floating UI: `platform` property was not passed to config. If you", "want to use Floating UI on the web, install @floating-ui/dom", "instead of the /core package. Otherwise, you can create your own", "`platform`: https://floating-ui.com/docs/platform"].join(" ")), a.filter((h) => {
7170
+ if (process.env.NODE_ENV !== "production" && (n == null && console.error(["Floating UI: `platform` property was not passed to config. If you", "want to use Floating UI on the web, install @floating-ui/dom", "instead of the /core package. Otherwise, you can create your own", "`platform`: https://floating-ui.com/docs/platform"].join(" ")), a.filter((p) => {
7355
7171
  let {
7356
7172
  name: f
7357
- } = h;
7173
+ } = p;
7358
7174
  return f === "autoPlacement" || f === "flip";
7359
7175
  }).length > 1))
7360
7176
  throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement`", "middleware detected. This will lead to an infinite loop. Ensure only", "one of either has been passed to the `middleware` array."].join(" "));
7361
- let s = await n.getElementRects({
7177
+ let c = await n.getElementRects({
7362
7178
  reference: o,
7363
7179
  floating: e,
7364
7180
  strategy: i
7365
7181
  }), {
7366
- x: c,
7367
- y: b
7368
- } = St(s, r, l), d = r, g = {}, u = 0;
7369
- for (let h = 0; h < a.length; h++) {
7182
+ x: s,
7183
+ y: g
7184
+ } = vt(c, r, l), u = r, b = {}, d = 0;
7185
+ for (let p = 0; p < a.length; p++) {
7370
7186
  const {
7371
7187
  name: f,
7372
7188
  fn: v
7373
- } = a[h], {
7374
- x,
7375
- y,
7189
+ } = a[p], {
7190
+ x: k,
7191
+ y: $,
7376
7192
  data: S,
7377
- reset: w
7193
+ reset: _
7378
7194
  } = await v({
7379
- x: c,
7380
- y: b,
7195
+ x: s,
7196
+ y: g,
7381
7197
  initialPlacement: r,
7382
- placement: d,
7198
+ placement: u,
7383
7199
  strategy: i,
7384
- middlewareData: g,
7385
- rects: s,
7200
+ middlewareData: b,
7201
+ rects: c,
7386
7202
  platform: n,
7387
7203
  elements: {
7388
7204
  reference: o,
7389
7205
  floating: e
7390
7206
  }
7391
7207
  });
7392
- if (c = x != null ? x : c, b = y != null ? y : b, g = {
7393
- ...g,
7208
+ if (s = k != null ? k : s, g = $ != null ? $ : g, b = {
7209
+ ...b,
7394
7210
  [f]: {
7395
- ...g[f],
7211
+ ...b[f],
7396
7212
  ...S
7397
7213
  }
7398
- }, process.env.NODE_ENV !== "production" && u > 50 && console.warn(["Floating UI: The middleware lifecycle appears to be running in an", "infinite loop. This is usually caused by a `reset` continually", "being returned without a break condition."].join(" ")), w && u <= 50) {
7399
- u++, typeof w == "object" && (w.placement && (d = w.placement), w.rects && (s = w.rects === !0 ? await n.getElementRects({
7214
+ }, process.env.NODE_ENV !== "production" && d > 50 && console.warn(["Floating UI: The middleware lifecycle appears to be running in an", "infinite loop. This is usually caused by a `reset` continually", "being returned without a break condition."].join(" ")), _ && d <= 50) {
7215
+ d++, typeof _ == "object" && (_.placement && (u = _.placement), _.rects && (c = _.rects === !0 ? await n.getElementRects({
7400
7216
  reference: o,
7401
7217
  floating: e,
7402
7218
  strategy: i
7403
- }) : w.rects), {
7404
- x: c,
7405
- y: b
7406
- } = St(s, d, l)), h = -1;
7219
+ }) : _.rects), {
7220
+ x: s,
7221
+ y: g
7222
+ } = vt(c, u, l)), p = -1;
7407
7223
  continue;
7408
7224
  }
7409
7225
  }
7410
7226
  return {
7411
- x: c,
7412
- y: b,
7413
- placement: d,
7227
+ x: s,
7228
+ y: g,
7229
+ placement: u,
7414
7230
  strategy: i,
7415
- middlewareData: g
7231
+ middlewareData: b
7416
7232
  };
7417
7233
  };
7418
- function Ci(o) {
7234
+ function ci(o) {
7419
7235
  return {
7420
7236
  top: 0,
7421
7237
  right: 0,
@@ -7424,15 +7240,15 @@ function Ci(o) {
7424
7240
  ...o
7425
7241
  };
7426
7242
  }
7427
- function lr(o) {
7428
- return typeof o != "number" ? Ci(o) : {
7243
+ function Jt(o) {
7244
+ return typeof o != "number" ? ci(o) : {
7429
7245
  top: o,
7430
7246
  right: o,
7431
7247
  bottom: o,
7432
7248
  left: o
7433
7249
  };
7434
7250
  }
7435
- function Be(o) {
7251
+ function Le(o) {
7436
7252
  return {
7437
7253
  ...o,
7438
7254
  top: o.y,
@@ -7441,7 +7257,7 @@ function Be(o) {
7441
7257
  bottom: o.y + o.height
7442
7258
  };
7443
7259
  }
7444
- async function cr(o, e) {
7260
+ async function Qt(o, e) {
7445
7261
  var t;
7446
7262
  e === void 0 && (e = {});
7447
7263
  const {
@@ -7450,39 +7266,39 @@ async function cr(o, e) {
7450
7266
  platform: a,
7451
7267
  rects: n,
7452
7268
  elements: l,
7453
- strategy: s
7269
+ strategy: c
7454
7270
  } = o, {
7455
- boundary: c = "clippingAncestors",
7456
- rootBoundary: b = "viewport",
7457
- elementContext: d = "floating",
7458
- altBoundary: g = !1,
7459
- padding: u = 0
7460
- } = e, h = lr(u), v = l[g ? d === "floating" ? "reference" : "floating" : d], x = Be(await a.getClippingRect({
7271
+ boundary: s = "clippingAncestors",
7272
+ rootBoundary: g = "viewport",
7273
+ elementContext: u = "floating",
7274
+ altBoundary: b = !1,
7275
+ padding: d = 0
7276
+ } = e, p = Jt(d), v = l[b ? u === "floating" ? "reference" : "floating" : u], k = Le(await a.getClippingRect({
7461
7277
  element: (t = await (a.isElement == null ? void 0 : a.isElement(v))) == null || t ? v : v.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(l.floating)),
7462
- boundary: c,
7463
- rootBoundary: b,
7464
- strategy: s
7465
- })), y = Be(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
7466
- rect: d === "floating" ? {
7278
+ boundary: s,
7279
+ rootBoundary: g,
7280
+ strategy: c
7281
+ })), $ = Le(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
7282
+ rect: u === "floating" ? {
7467
7283
  ...n.floating,
7468
7284
  x: r,
7469
7285
  y: i
7470
7286
  } : n.reference,
7471
7287
  offsetParent: await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l.floating)),
7472
- strategy: s
7473
- }) : n[d]);
7288
+ strategy: c
7289
+ }) : n[u]);
7474
7290
  return {
7475
- top: x.top - y.top + h.top,
7476
- bottom: y.bottom - x.bottom + h.bottom,
7477
- left: x.left - y.left + h.left,
7478
- right: y.right - x.right + h.right
7291
+ top: k.top - $.top + p.top,
7292
+ bottom: $.bottom - k.bottom + p.bottom,
7293
+ left: k.left - $.left + p.left,
7294
+ right: $.right - k.right + p.right
7479
7295
  };
7480
7296
  }
7481
- const Ei = Math.min, Ri = Math.max;
7482
- function To(o, e, t) {
7483
- return Ri(o, Ei(e, t));
7297
+ const si = Math.min, di = Math.max;
7298
+ function Mo(o, e, t) {
7299
+ return di(o, si(e, t));
7484
7300
  }
7485
- const Ai = (o) => ({
7301
+ const ui = (o) => ({
7486
7302
  name: "arrow",
7487
7303
  options: o,
7488
7304
  async fn(e) {
@@ -7494,55 +7310,55 @@ const Ai = (o) => ({
7494
7310
  y: a,
7495
7311
  placement: n,
7496
7312
  rects: l,
7497
- platform: s
7313
+ platform: c
7498
7314
  } = e;
7499
7315
  if (t == null)
7500
7316
  return process.env.NODE_ENV !== "production" && console.warn("Floating UI: No `element` was passed to the `arrow` middleware."), {};
7501
- const c = lr(r), b = {
7317
+ const s = Jt(r), g = {
7502
7318
  x: i,
7503
7319
  y: a
7504
- }, d = Ce(n), g = Ge(n), u = it(d), h = await s.getDimensions(t), f = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", x = l.reference[u] + l.reference[d] - b[d] - l.floating[u], y = b[d] - l.reference[d], S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(t));
7505
- let w = S ? d === "y" ? S.clientHeight || 0 : S.clientWidth || 0 : 0;
7506
- w === 0 && (w = l.floating[u]);
7507
- const F = x / 2 - y / 2, C = c[f], X = w - h[u] - c[v], N = w / 2 - h[u] / 2 + F, E = To(C, N, X), T = (g === "start" ? c[f] : c[v]) > 0 && N !== E && l.reference[u] <= l.floating[u] ? N < C ? C - N : X - N : 0;
7320
+ }, u = ze(n), b = Ze(n), d = Qo(u), p = await c.getDimensions(t), f = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", k = l.reference[d] + l.reference[u] - g[u] - l.floating[d], $ = g[u] - l.reference[u], S = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(t));
7321
+ let _ = S ? u === "y" ? S.clientHeight || 0 : S.clientWidth || 0 : 0;
7322
+ _ === 0 && (_ = l.floating[d]);
7323
+ const Q = k / 2 - $ / 2, ee = s[f], ce = _ - p[d] - s[v], F = _ / 2 - p[d] / 2 + Q, P = Mo(ee, F, ce), Se = (b === "start" ? s[f] : s[v]) > 0 && F !== P && l.reference[d] <= l.floating[d] ? F < ee ? ee - F : ce - F : 0;
7508
7324
  return {
7509
- [d]: b[d] - T,
7325
+ [u]: g[u] - Se,
7510
7326
  data: {
7511
- [d]: E,
7512
- centerOffset: N - E
7327
+ [u]: P,
7328
+ centerOffset: F - P
7513
7329
  }
7514
7330
  };
7515
7331
  }
7516
- }), qi = {
7332
+ }), bi = {
7517
7333
  left: "right",
7518
7334
  right: "left",
7519
7335
  bottom: "top",
7520
7336
  top: "bottom"
7521
7337
  };
7522
- function Ve(o) {
7523
- return o.replace(/left|right|bottom|top/g, (e) => qi[e]);
7338
+ function Ie(o) {
7339
+ return o.replace(/left|right|bottom|top/g, (e) => bi[e]);
7524
7340
  }
7525
- function Mi(o, e, t) {
7341
+ function gi(o, e, t) {
7526
7342
  t === void 0 && (t = !1);
7527
- const r = Ge(o), i = Ce(o), a = it(i);
7343
+ const r = Ze(o), i = ze(o), a = Qo(i);
7528
7344
  let n = i === "x" ? r === (t ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
7529
- return e.reference[a] > e.floating[a] && (n = Ve(n)), {
7345
+ return e.reference[a] > e.floating[a] && (n = Ie(n)), {
7530
7346
  main: n,
7531
- cross: Ve(n)
7347
+ cross: Ie(n)
7532
7348
  };
7533
7349
  }
7534
- const Pi = {
7350
+ const hi = {
7535
7351
  start: "end",
7536
7352
  end: "start"
7537
7353
  };
7538
- function Ct(o) {
7539
- return o.replace(/start|end/g, (e) => Pi[e]);
7354
+ function xt(o) {
7355
+ return o.replace(/start|end/g, (e) => hi[e]);
7540
7356
  }
7541
- function ji(o) {
7542
- const e = Ve(o);
7543
- return [Ct(o), e, Ct(e)];
7357
+ function pi(o) {
7358
+ const e = Ie(o);
7359
+ return [xt(o), e, xt(e)];
7544
7360
  }
7545
- const Ni = function(o) {
7361
+ const mi = function(o) {
7546
7362
  return o === void 0 && (o = {}), {
7547
7363
  name: "flip",
7548
7364
  options: o,
@@ -7554,55 +7370,55 @@ const Ni = function(o) {
7554
7370
  rects: a,
7555
7371
  initialPlacement: n,
7556
7372
  platform: l,
7557
- elements: s
7373
+ elements: c
7558
7374
  } = e, {
7559
- mainAxis: c = !0,
7560
- crossAxis: b = !0,
7561
- fallbackPlacements: d,
7562
- fallbackStrategy: g = "bestFit",
7563
- flipAlignment: u = !0,
7564
- ...h
7565
- } = o, f = Se(r), x = d || (f === n || !u ? [Ve(n)] : ji(n)), y = [n, ...x], S = await cr(e, h), w = [];
7566
- let F = ((t = i.flip) == null ? void 0 : t.overflows) || [];
7567
- if (c && w.push(S[f]), b) {
7375
+ mainAxis: s = !0,
7376
+ crossAxis: g = !0,
7377
+ fallbackPlacements: u,
7378
+ fallbackStrategy: b = "bestFit",
7379
+ flipAlignment: d = !0,
7380
+ ...p
7381
+ } = o, f = $e(r), k = u || (f === n || !d ? [Ie(n)] : pi(n)), $ = [n, ...k], S = await Qt(e, p), _ = [];
7382
+ let Q = ((t = i.flip) == null ? void 0 : t.overflows) || [];
7383
+ if (s && _.push(S[f]), g) {
7568
7384
  const {
7569
- main: E,
7570
- cross: A
7571
- } = Mi(r, a, await (l.isRTL == null ? void 0 : l.isRTL(s.floating)));
7572
- w.push(S[E], S[A]);
7385
+ main: P,
7386
+ cross: se
7387
+ } = gi(r, a, await (l.isRTL == null ? void 0 : l.isRTL(c.floating)));
7388
+ _.push(S[P], S[se]);
7573
7389
  }
7574
- if (F = [...F, {
7390
+ if (Q = [...Q, {
7575
7391
  placement: r,
7576
- overflows: w
7577
- }], !w.every((E) => E <= 0)) {
7578
- var C, X;
7579
- const E = ((C = (X = i.flip) == null ? void 0 : X.index) != null ? C : 0) + 1, A = y[E];
7580
- if (A)
7392
+ overflows: _
7393
+ }], !_.every((P) => P <= 0)) {
7394
+ var ee, ce;
7395
+ const P = ((ee = (ce = i.flip) == null ? void 0 : ce.index) != null ? ee : 0) + 1, se = $[P];
7396
+ if (se)
7581
7397
  return {
7582
7398
  data: {
7583
- index: E,
7584
- overflows: F
7399
+ index: P,
7400
+ overflows: Q
7585
7401
  },
7586
7402
  reset: {
7587
- placement: A
7403
+ placement: se
7588
7404
  }
7589
7405
  };
7590
- let M = "bottom";
7591
- switch (g) {
7406
+ let de = "bottom";
7407
+ switch (b) {
7592
7408
  case "bestFit": {
7593
- var N;
7594
- const T = (N = F.map((P) => [P, P.overflows.filter((G) => G > 0).reduce((G, eo) => G + eo, 0)]).sort((P, G) => P[1] - G[1])[0]) == null ? void 0 : N[0].placement;
7595
- T && (M = T);
7409
+ var F;
7410
+ const Se = (F = Q.map((Ce) => [Ce, Ce.overflows.filter((ue) => ue > 0).reduce((ue, sr) => ue + sr, 0)]).sort((Ce, ue) => Ce[1] - ue[1])[0]) == null ? void 0 : F[0].placement;
7411
+ Se && (de = Se);
7596
7412
  break;
7597
7413
  }
7598
7414
  case "initialPlacement":
7599
- M = n;
7415
+ de = n;
7600
7416
  break;
7601
7417
  }
7602
- if (r !== M)
7418
+ if (r !== de)
7603
7419
  return {
7604
7420
  reset: {
7605
- placement: M
7421
+ placement: de
7606
7422
  }
7607
7423
  };
7608
7424
  }
@@ -7610,35 +7426,35 @@ const Ni = function(o) {
7610
7426
  }
7611
7427
  };
7612
7428
  };
7613
- async function Ti(o, e) {
7429
+ async function fi(o, e) {
7614
7430
  const {
7615
7431
  placement: t,
7616
7432
  platform: r,
7617
7433
  elements: i
7618
- } = o, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), n = Se(t), l = Ge(t), s = Ce(t) === "x", c = ["left", "top"].includes(n) ? -1 : 1, b = a && s ? -1 : 1, d = typeof e == "function" ? e(o) : e;
7434
+ } = o, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), n = $e(t), l = Ze(t), c = ze(t) === "x", s = ["left", "top"].includes(n) ? -1 : 1, g = a && c ? -1 : 1, u = typeof e == "function" ? e(o) : e;
7619
7435
  let {
7620
- mainAxis: g,
7621
- crossAxis: u,
7622
- alignmentAxis: h
7623
- } = typeof d == "number" ? {
7624
- mainAxis: d,
7436
+ mainAxis: b,
7437
+ crossAxis: d,
7438
+ alignmentAxis: p
7439
+ } = typeof u == "number" ? {
7440
+ mainAxis: u,
7625
7441
  crossAxis: 0,
7626
7442
  alignmentAxis: null
7627
7443
  } : {
7628
7444
  mainAxis: 0,
7629
7445
  crossAxis: 0,
7630
7446
  alignmentAxis: null,
7631
- ...d
7447
+ ...u
7632
7448
  };
7633
- return l && typeof h == "number" && (u = l === "end" ? h * -1 : h), s ? {
7634
- x: u * b,
7635
- y: g * c
7449
+ return l && typeof p == "number" && (d = l === "end" ? p * -1 : p), c ? {
7450
+ x: d * g,
7451
+ y: b * s
7636
7452
  } : {
7637
- x: g * c,
7638
- y: u * b
7453
+ x: b * s,
7454
+ y: d * g
7639
7455
  };
7640
7456
  }
7641
- const Ui = function(o) {
7457
+ const vi = function(o) {
7642
7458
  return o === void 0 && (o = 0), {
7643
7459
  name: "offset",
7644
7460
  options: o,
@@ -7646,7 +7462,7 @@ const Ui = function(o) {
7646
7462
  const {
7647
7463
  x: t,
7648
7464
  y: r
7649
- } = e, i = await Ti(e, o);
7465
+ } = e, i = await fi(e, o);
7650
7466
  return {
7651
7467
  x: t + i.x,
7652
7468
  y: r + i.y,
@@ -7655,10 +7471,10 @@ const Ui = function(o) {
7655
7471
  }
7656
7472
  };
7657
7473
  };
7658
- function Oi(o) {
7474
+ function xi(o) {
7659
7475
  return o === "x" ? "y" : "x";
7660
7476
  }
7661
- const Fi = function(o) {
7477
+ const ki = function(o) {
7662
7478
  return o === void 0 && (o = {}), {
7663
7479
  name: "shift",
7664
7480
  options: o,
@@ -7673,33 +7489,33 @@ const Fi = function(o) {
7673
7489
  limiter: l = {
7674
7490
  fn: (v) => {
7675
7491
  let {
7676
- x,
7677
- y
7492
+ x: k,
7493
+ y: $
7678
7494
  } = v;
7679
7495
  return {
7680
- x,
7681
- y
7496
+ x: k,
7497
+ y: $
7682
7498
  };
7683
7499
  }
7684
7500
  },
7685
- ...s
7686
- } = o, c = {
7501
+ ...c
7502
+ } = o, s = {
7687
7503
  x: t,
7688
7504
  y: r
7689
- }, b = await cr(e, s), d = Ce(Se(i)), g = Oi(d);
7690
- let u = c[d], h = c[g];
7505
+ }, g = await Qt(e, c), u = ze($e(i)), b = xi(u);
7506
+ let d = s[u], p = s[b];
7691
7507
  if (a) {
7692
- const v = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", y = u + b[v], S = u - b[x];
7693
- u = To(y, u, S);
7508
+ const v = u === "y" ? "top" : "left", k = u === "y" ? "bottom" : "right", $ = d + g[v], S = d - g[k];
7509
+ d = Mo($, d, S);
7694
7510
  }
7695
7511
  if (n) {
7696
- const v = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", y = h + b[v], S = h - b[x];
7697
- h = To(y, h, S);
7512
+ const v = b === "y" ? "top" : "left", k = b === "y" ? "bottom" : "right", $ = p + g[v], S = p - g[k];
7513
+ p = Mo($, p, S);
7698
7514
  }
7699
7515
  const f = l.fn({
7700
7516
  ...e,
7701
- [d]: u,
7702
- [g]: h
7517
+ [u]: d,
7518
+ [b]: p
7703
7519
  });
7704
7520
  return {
7705
7521
  ...f,
@@ -7711,85 +7527,85 @@ const Fi = function(o) {
7711
7527
  }
7712
7528
  };
7713
7529
  };
7714
- function sr(o) {
7530
+ function er(o) {
7715
7531
  return o && o.document && o.location && o.alert && o.setInterval;
7716
7532
  }
7717
- function Z(o) {
7533
+ function V(o) {
7718
7534
  if (o == null)
7719
7535
  return window;
7720
- if (!sr(o)) {
7536
+ if (!er(o)) {
7721
7537
  const e = o.ownerDocument;
7722
7538
  return e && e.defaultView || window;
7723
7539
  }
7724
7540
  return o;
7725
7541
  }
7726
- function Ee(o) {
7727
- return Z(o).getComputedStyle(o);
7542
+ function _e(o) {
7543
+ return V(o).getComputedStyle(o);
7728
7544
  }
7729
- function Y(o) {
7730
- return sr(o) ? "" : o ? (o.nodeName || "").toLowerCase() : "";
7545
+ function B(o) {
7546
+ return er(o) ? "" : o ? (o.nodeName || "").toLowerCase() : "";
7731
7547
  }
7732
- function dr() {
7548
+ function or() {
7733
7549
  const o = navigator.userAgentData;
7734
7550
  return o != null && o.brands ? o.brands.map((e) => e.brand + "/" + e.version).join(" ") : navigator.userAgent;
7735
7551
  }
7736
- function D(o) {
7737
- return o instanceof Z(o).HTMLElement;
7552
+ function T(o) {
7553
+ return o instanceof V(o).HTMLElement;
7738
7554
  }
7739
- function ge(o) {
7740
- return o instanceof Z(o).Element;
7555
+ function ae(o) {
7556
+ return o instanceof V(o).Element;
7741
7557
  }
7742
- function Li(o) {
7743
- return o instanceof Z(o).Node;
7558
+ function wi(o) {
7559
+ return o instanceof V(o).Node;
7744
7560
  }
7745
- function nt(o) {
7561
+ function et(o) {
7746
7562
  if (typeof ShadowRoot > "u")
7747
7563
  return !1;
7748
- const e = Z(o).ShadowRoot;
7564
+ const e = V(o).ShadowRoot;
7749
7565
  return o instanceof e || o instanceof ShadowRoot;
7750
7566
  }
7751
- function Je(o) {
7567
+ function Xe(o) {
7752
7568
  const {
7753
7569
  overflow: e,
7754
7570
  overflowX: t,
7755
7571
  overflowY: r
7756
- } = Ee(o);
7572
+ } = _e(o);
7757
7573
  return /auto|scroll|overlay|hidden/.test(e + r + t);
7758
7574
  }
7759
- function Ii(o) {
7760
- return ["table", "td", "th"].includes(Y(o));
7575
+ function yi(o) {
7576
+ return ["table", "td", "th"].includes(B(o));
7761
7577
  }
7762
- function ur(o) {
7763
- const e = /firefox/i.test(dr()), t = Ee(o);
7578
+ function tr(o) {
7579
+ const e = /firefox/i.test(or()), t = _e(o);
7764
7580
  return t.transform !== "none" || t.perspective !== "none" || t.contain === "paint" || ["transform", "perspective"].includes(t.willChange) || e && t.willChange === "filter" || e && (t.filter ? t.filter !== "none" : !1);
7765
7581
  }
7766
- function br() {
7767
- return !/^((?!chrome|android).)*safari/i.test(dr());
7582
+ function rr() {
7583
+ return !/^((?!chrome|android).)*safari/i.test(or());
7768
7584
  }
7769
- const Et = Math.min, ve = Math.max, De = Math.round;
7770
- function ae(o, e, t) {
7585
+ const kt = Math.min, he = Math.max, Be = Math.round;
7586
+ function J(o, e, t) {
7771
7587
  var r, i, a, n;
7772
7588
  e === void 0 && (e = !1), t === void 0 && (t = !1);
7773
7589
  const l = o.getBoundingClientRect();
7774
- let s = 1, c = 1;
7775
- e && D(o) && (s = o.offsetWidth > 0 && De(l.width) / o.offsetWidth || 1, c = o.offsetHeight > 0 && De(l.height) / o.offsetHeight || 1);
7776
- const b = ge(o) ? Z(o) : window, d = !br() && t, g = (l.left + (d && (r = (i = b.visualViewport) == null ? void 0 : i.offsetLeft) != null ? r : 0)) / s, u = (l.top + (d && (a = (n = b.visualViewport) == null ? void 0 : n.offsetTop) != null ? a : 0)) / c, h = l.width / s, f = l.height / c;
7590
+ let c = 1, s = 1;
7591
+ e && T(o) && (c = o.offsetWidth > 0 && Be(l.width) / o.offsetWidth || 1, s = o.offsetHeight > 0 && Be(l.height) / o.offsetHeight || 1);
7592
+ const g = ae(o) ? V(o) : window, u = !rr() && t, b = (l.left + (u && (r = (i = g.visualViewport) == null ? void 0 : i.offsetLeft) != null ? r : 0)) / c, d = (l.top + (u && (a = (n = g.visualViewport) == null ? void 0 : n.offsetTop) != null ? a : 0)) / s, p = l.width / c, f = l.height / s;
7777
7593
  return {
7778
- width: h,
7594
+ width: p,
7779
7595
  height: f,
7780
- top: u,
7781
- right: g + h,
7782
- bottom: u + f,
7783
- left: g,
7784
- x: g,
7785
- y: u
7596
+ top: d,
7597
+ right: b + p,
7598
+ bottom: d + f,
7599
+ left: b,
7600
+ x: b,
7601
+ y: d
7786
7602
  };
7787
7603
  }
7788
- function oe(o) {
7789
- return ((Li(o) ? o.ownerDocument : o.document) || window.document).documentElement;
7604
+ function K(o) {
7605
+ return ((wi(o) ? o.ownerDocument : o.document) || window.document).documentElement;
7790
7606
  }
7791
- function Qe(o) {
7792
- return ge(o) ? {
7607
+ function Ge(o) {
7608
+ return ae(o) ? {
7793
7609
  scrollLeft: o.scrollLeft,
7794
7610
  scrollTop: o.scrollTop
7795
7611
  } : {
@@ -7797,17 +7613,17 @@ function Qe(o) {
7797
7613
  scrollTop: o.pageYOffset
7798
7614
  };
7799
7615
  }
7800
- function gr(o) {
7801
- return ae(oe(o)).left + Qe(o).scrollLeft;
7616
+ function ir(o) {
7617
+ return J(K(o)).left + Ge(o).scrollLeft;
7802
7618
  }
7803
- function Bi(o) {
7804
- const e = ae(o);
7805
- return De(e.width) !== o.offsetWidth || De(e.height) !== o.offsetHeight;
7619
+ function $i(o) {
7620
+ const e = J(o);
7621
+ return Be(e.width) !== o.offsetWidth || Be(e.height) !== o.offsetHeight;
7806
7622
  }
7807
- function Vi(o, e, t) {
7808
- const r = D(e), i = oe(e), a = ae(
7623
+ function zi(o, e, t) {
7624
+ const r = T(e), i = K(e), a = J(
7809
7625
  o,
7810
- r && Bi(e),
7626
+ r && $i(e),
7811
7627
  t === "fixed"
7812
7628
  );
7813
7629
  let n = {
@@ -7819,11 +7635,11 @@ function Vi(o, e, t) {
7819
7635
  y: 0
7820
7636
  };
7821
7637
  if (r || !r && t !== "fixed")
7822
- if ((Y(e) !== "body" || Je(i)) && (n = Qe(e)), D(e)) {
7823
- const s = ae(e, !0);
7824
- l.x = s.x + e.clientLeft, l.y = s.y + e.clientTop;
7638
+ if ((B(e) !== "body" || Xe(i)) && (n = Ge(e)), T(e)) {
7639
+ const c = J(e, !0);
7640
+ l.x = c.x + e.clientLeft, l.y = c.y + e.clientTop;
7825
7641
  } else
7826
- i && (l.x = gr(i));
7642
+ i && (l.x = ir(i));
7827
7643
  return {
7828
7644
  x: a.left + n.scrollLeft - l.x,
7829
7645
  y: a.top + n.scrollTop - l.y,
@@ -7831,47 +7647,47 @@ function Vi(o, e, t) {
7831
7647
  height: a.height
7832
7648
  };
7833
7649
  }
7834
- function hr(o) {
7835
- return Y(o) === "html" ? o : o.assignedSlot || o.parentNode || (nt(o) ? o.host : null) || oe(o);
7650
+ function nr(o) {
7651
+ return B(o) === "html" ? o : o.assignedSlot || o.parentNode || (et(o) ? o.host : null) || K(o);
7836
7652
  }
7837
- function Rt(o) {
7838
- return !D(o) || getComputedStyle(o).position === "fixed" ? null : o.offsetParent;
7653
+ function wt(o) {
7654
+ return !T(o) || getComputedStyle(o).position === "fixed" ? null : o.offsetParent;
7839
7655
  }
7840
- function Di(o) {
7841
- let e = hr(o);
7842
- for (nt(e) && (e = e.host); D(e) && !["html", "body"].includes(Y(e)); ) {
7843
- if (ur(e))
7656
+ function _i(o) {
7657
+ let e = nr(o);
7658
+ for (et(e) && (e = e.host); T(e) && !["html", "body"].includes(B(e)); ) {
7659
+ if (tr(e))
7844
7660
  return e;
7845
7661
  e = e.parentNode;
7846
7662
  }
7847
7663
  return null;
7848
7664
  }
7849
- function Uo(o) {
7850
- const e = Z(o);
7851
- let t = Rt(o);
7852
- for (; t && Ii(t) && getComputedStyle(t).position === "static"; )
7853
- t = Rt(t);
7854
- return t && (Y(t) === "html" || Y(t) === "body" && getComputedStyle(t).position === "static" && !ur(t)) ? e : t || Di(o) || e;
7665
+ function Po(o) {
7666
+ const e = V(o);
7667
+ let t = wt(o);
7668
+ for (; t && yi(t) && getComputedStyle(t).position === "static"; )
7669
+ t = wt(t);
7670
+ return t && (B(t) === "html" || B(t) === "body" && getComputedStyle(t).position === "static" && !tr(t)) ? e : t || _i(o) || e;
7855
7671
  }
7856
- function At(o) {
7857
- if (D(o))
7672
+ function yt(o) {
7673
+ if (T(o))
7858
7674
  return {
7859
7675
  width: o.offsetWidth,
7860
7676
  height: o.offsetHeight
7861
7677
  };
7862
- const e = ae(o);
7678
+ const e = J(o);
7863
7679
  return {
7864
7680
  width: e.width,
7865
7681
  height: e.height
7866
7682
  };
7867
7683
  }
7868
- function Hi(o) {
7684
+ function Si(o) {
7869
7685
  let {
7870
7686
  rect: e,
7871
7687
  offsetParent: t,
7872
7688
  strategy: r
7873
7689
  } = o;
7874
- const i = D(t), a = oe(t);
7690
+ const i = T(t), a = K(t);
7875
7691
  if (t === a)
7876
7692
  return e;
7877
7693
  let n = {
@@ -7882,9 +7698,9 @@ function Hi(o) {
7882
7698
  x: 0,
7883
7699
  y: 0
7884
7700
  };
7885
- if ((i || !i && r !== "fixed") && ((Y(t) !== "body" || Je(a)) && (n = Qe(t)), D(t))) {
7886
- const s = ae(t, !0);
7887
- l.x = s.x + t.clientLeft, l.y = s.y + t.clientTop;
7701
+ if ((i || !i && r !== "fixed") && ((B(t) !== "body" || Xe(a)) && (n = Ge(t)), T(t))) {
7702
+ const c = J(t, !0);
7703
+ l.x = c.x + t.clientLeft, l.y = c.y + t.clientTop;
7888
7704
  }
7889
7705
  return {
7890
7706
  ...e,
@@ -7892,48 +7708,48 @@ function Hi(o) {
7892
7708
  y: e.y - n.scrollTop + l.y
7893
7709
  };
7894
7710
  }
7895
- function Wi(o, e) {
7896
- const t = Z(o), r = oe(o), i = t.visualViewport;
7897
- let a = r.clientWidth, n = r.clientHeight, l = 0, s = 0;
7711
+ function Ci(o, e) {
7712
+ const t = V(o), r = K(o), i = t.visualViewport;
7713
+ let a = r.clientWidth, n = r.clientHeight, l = 0, c = 0;
7898
7714
  if (i) {
7899
7715
  a = i.width, n = i.height;
7900
- const c = br();
7901
- (c || !c && e === "fixed") && (l = i.offsetLeft, s = i.offsetTop);
7716
+ const s = rr();
7717
+ (s || !s && e === "fixed") && (l = i.offsetLeft, c = i.offsetTop);
7902
7718
  }
7903
7719
  return {
7904
7720
  width: a,
7905
7721
  height: n,
7906
7722
  x: l,
7907
- y: s
7723
+ y: c
7908
7724
  };
7909
7725
  }
7910
- function Ki(o) {
7726
+ function Ri(o) {
7911
7727
  var e;
7912
- const t = oe(o), r = Qe(o), i = (e = o.ownerDocument) == null ? void 0 : e.body, a = ve(t.scrollWidth, t.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), n = ve(t.scrollHeight, t.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0);
7913
- let l = -r.scrollLeft + gr(o);
7914
- const s = -r.scrollTop;
7915
- return Ee(i || t).direction === "rtl" && (l += ve(t.clientWidth, i ? i.clientWidth : 0) - a), {
7728
+ const t = K(o), r = Ge(o), i = (e = o.ownerDocument) == null ? void 0 : e.body, a = he(t.scrollWidth, t.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), n = he(t.scrollHeight, t.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0);
7729
+ let l = -r.scrollLeft + ir(o);
7730
+ const c = -r.scrollTop;
7731
+ return _e(i || t).direction === "rtl" && (l += he(t.clientWidth, i ? i.clientWidth : 0) - a), {
7916
7732
  width: a,
7917
7733
  height: n,
7918
7734
  x: l,
7919
- y: s
7735
+ y: c
7920
7736
  };
7921
7737
  }
7922
- function pr(o) {
7923
- const e = hr(o);
7924
- return ["html", "body", "#document"].includes(Y(e)) ? o.ownerDocument.body : D(e) && Je(e) ? e : pr(e);
7738
+ function ar(o) {
7739
+ const e = nr(o);
7740
+ return ["html", "body", "#document"].includes(B(e)) ? o.ownerDocument.body : T(e) && Xe(e) ? e : ar(e);
7925
7741
  }
7926
- function mr(o, e) {
7742
+ function lr(o, e) {
7927
7743
  var t;
7928
7744
  e === void 0 && (e = []);
7929
- const r = pr(o), i = r === ((t = o.ownerDocument) == null ? void 0 : t.body), a = Z(r), n = i ? [a].concat(a.visualViewport || [], Je(r) ? r : []) : r, l = e.concat(n);
7930
- return i ? l : l.concat(mr(n));
7745
+ const r = ar(o), i = r === ((t = o.ownerDocument) == null ? void 0 : t.body), a = V(r), n = i ? [a].concat(a.visualViewport || [], Xe(r) ? r : []) : r, l = e.concat(n);
7746
+ return i ? l : l.concat(lr(n));
7931
7747
  }
7932
- function Yi(o, e) {
7748
+ function Ei(o, e) {
7933
7749
  const t = e.getRootNode == null ? void 0 : e.getRootNode();
7934
7750
  if (o.contains(e))
7935
7751
  return !0;
7936
- if (t && nt(t)) {
7752
+ if (t && et(t)) {
7937
7753
  let r = e;
7938
7754
  do {
7939
7755
  if (r && o === r)
@@ -7943,8 +7759,8 @@ function Yi(o, e) {
7943
7759
  }
7944
7760
  return !1;
7945
7761
  }
7946
- function Zi(o, e) {
7947
- const t = ae(o, !1, e === "fixed"), r = t.top + o.clientTop, i = t.left + o.clientLeft;
7762
+ function Ai(o, e) {
7763
+ const t = J(o, !1, e === "fixed"), r = t.top + o.clientTop, i = t.left + o.clientLeft;
7948
7764
  return {
7949
7765
  top: r,
7950
7766
  left: i,
@@ -7956,38 +7772,38 @@ function Zi(o, e) {
7956
7772
  height: o.clientHeight
7957
7773
  };
7958
7774
  }
7959
- function qt(o, e, t) {
7960
- return e === "viewport" ? Be(Wi(o, t)) : ge(e) ? Zi(e, t) : Be(Ki(oe(o)));
7775
+ function $t(o, e, t) {
7776
+ return e === "viewport" ? Le(Ci(o, t)) : ae(e) ? Ai(e, t) : Le(Ri(K(o)));
7961
7777
  }
7962
- function Xi(o) {
7963
- const e = mr(o), r = ["absolute", "fixed"].includes(Ee(o).position) && D(o) ? Uo(o) : o;
7964
- return ge(r) ? e.filter((i) => ge(i) && Yi(i, r) && Y(i) !== "body") : [];
7778
+ function qi(o) {
7779
+ const e = lr(o), r = ["absolute", "fixed"].includes(_e(o).position) && T(o) ? Po(o) : o;
7780
+ return ae(r) ? e.filter((i) => ae(i) && Ei(i, r) && B(i) !== "body") : [];
7965
7781
  }
7966
- function Gi(o) {
7782
+ function Mi(o) {
7967
7783
  let {
7968
7784
  element: e,
7969
7785
  boundary: t,
7970
7786
  rootBoundary: r,
7971
7787
  strategy: i
7972
7788
  } = o;
7973
- const n = [...t === "clippingAncestors" ? Xi(e) : [].concat(t), r], l = n[0], s = n.reduce((c, b) => {
7974
- const d = qt(e, b, i);
7975
- return c.top = ve(d.top, c.top), c.right = Et(d.right, c.right), c.bottom = Et(d.bottom, c.bottom), c.left = ve(d.left, c.left), c;
7976
- }, qt(e, l, i));
7789
+ const n = [...t === "clippingAncestors" ? qi(e) : [].concat(t), r], l = n[0], c = n.reduce((s, g) => {
7790
+ const u = $t(e, g, i);
7791
+ return s.top = he(u.top, s.top), s.right = kt(u.right, s.right), s.bottom = kt(u.bottom, s.bottom), s.left = he(u.left, s.left), s;
7792
+ }, $t(e, l, i));
7977
7793
  return {
7978
- width: s.right - s.left,
7979
- height: s.bottom - s.top,
7980
- x: s.left,
7981
- y: s.top
7794
+ width: c.right - c.left,
7795
+ height: c.bottom - c.top,
7796
+ x: c.left,
7797
+ y: c.top
7982
7798
  };
7983
7799
  }
7984
- const Ji = {
7985
- getClippingRect: Gi,
7986
- convertOffsetParentRelativeRectToViewportRelativeRect: Hi,
7987
- isElement: ge,
7988
- getDimensions: At,
7989
- getOffsetParent: Uo,
7990
- getDocumentElement: oe,
7800
+ const Pi = {
7801
+ getClippingRect: Mi,
7802
+ convertOffsetParentRelativeRectToViewportRelativeRect: Si,
7803
+ isElement: ae,
7804
+ getDimensions: yt,
7805
+ getOffsetParent: Po,
7806
+ getDocumentElement: K,
7991
7807
  getElementRects: (o) => {
7992
7808
  let {
7993
7809
  reference: e,
@@ -7995,55 +7811,55 @@ const Ji = {
7995
7811
  strategy: r
7996
7812
  } = o;
7997
7813
  return {
7998
- reference: Vi(e, Uo(t), r),
7814
+ reference: zi(e, Po(t), r),
7999
7815
  floating: {
8000
- ...At(t),
7816
+ ...yt(t),
8001
7817
  x: 0,
8002
7818
  y: 0
8003
7819
  }
8004
7820
  };
8005
7821
  },
8006
7822
  getClientRects: (o) => Array.from(o.getClientRects()),
8007
- isRTL: (o) => Ee(o).direction === "rtl"
8008
- }, Qi = (o, e, t) => Si(o, e, {
8009
- platform: Ji,
7823
+ isRTL: (o) => _e(o).direction === "rtl"
7824
+ }, ji = (o, e, t) => li(o, e, {
7825
+ platform: Pi,
8010
7826
  ...t
8011
- }), $e = "top", ze = "bottom", He = "left", We = "right", _o = {
8012
- [$e]: ze,
8013
- [ze]: $e,
8014
- [He]: We,
8015
- [We]: He
8016
- }, en = {
8017
- [$e]: "\u2191",
8018
- [ze]: "\u2193",
8019
- [He]: "\u2190",
8020
- [We]: "\u2192"
8021
- }, on = {
8022
- [He]: -45,
8023
- [$e]: 45,
8024
- [We]: 135,
8025
- [ze]: -135
8026
- }, Mt = "calc(50% - 7px)", tn = (o) => [$e, ze].includes(o);
8027
- function rn({ actualDirection: o, directionName: e, arrowEl: t }) {
7827
+ }), ke = "top", we = "bottom", Ve = "left", De = "right", wo = {
7828
+ [ke]: we,
7829
+ [we]: ke,
7830
+ [Ve]: De,
7831
+ [De]: Ve
7832
+ }, Ni = {
7833
+ [ke]: "\u2191",
7834
+ [we]: "\u2193",
7835
+ [Ve]: "\u2190",
7836
+ [De]: "\u2192"
7837
+ }, Ui = {
7838
+ [Ve]: -45,
7839
+ [ke]: 45,
7840
+ [De]: 135,
7841
+ [we]: -135
7842
+ }, zt = "calc(50% - 7px)", Ti = (o) => [ke, we].includes(o);
7843
+ function Fi({ actualDirection: o, directionName: e, arrowEl: t }) {
8028
7844
  if (!t)
8029
7845
  return;
8030
7846
  o = e;
8031
- const r = tn(e);
8032
- t.style.left = r ? Mt : "", t.style.top = r ? "" : Mt;
7847
+ const r = Ti(e);
7848
+ t.style.left = r ? zt : "", t.style.top = r ? "" : zt;
8033
7849
  }
8034
- async function nn(o) {
7850
+ async function Oi(o) {
8035
7851
  var i, a;
8036
7852
  if (!o.isShowing)
8037
7853
  return;
8038
7854
  if (await ((i = o == null ? void 0 : o.waitForDOM) == null ? void 0 : i.call(o)), o.isCallout)
8039
- return rn(o);
8040
- const e = await Qi(o.targetEl, o.attentionEl, {
7855
+ return Fi(o);
7856
+ const e = await ji(o.targetEl, o.attentionEl, {
8041
7857
  placement: o.directionName,
8042
7858
  middleware: [
8043
- Ni(),
8044
- Ui(8),
8045
- Fi({ padding: 16 }),
8046
- Ai({ element: o.noArrow ? void 0 : o.arrowEl })
7859
+ mi(),
7860
+ vi(8),
7861
+ ki({ padding: 16 }),
7862
+ ui({ element: o.noArrow ? void 0 : o.arrowEl })
8047
7863
  ]
8048
7864
  });
8049
7865
  o.actualDirection = e.placement, Object.assign(((a = o.attentionEl) == null ? void 0 : a.style) || {}, {
@@ -8054,16 +7870,16 @@ async function nn(o) {
8054
7870
  let { x: t, y: r } = e.middlewareData.arrow;
8055
7871
  o.arrowEl && (o.arrowEl.style.left = t ? t + "px" : "", o.arrowEl.style.top = r ? r + "px" : "");
8056
7872
  }
8057
- class Oo extends Xe($) {
7873
+ class jo extends Ye(y) {
8058
7874
  constructor() {
8059
7875
  super(), this.show = !1, this.tooltip = !1, this.callout = !1, this.popover = !1, this.noArrow = !1;
8060
7876
  }
8061
7877
  connectedCallback() {
8062
- if (super.connectedCallback(), !this.placement || !Object.keys(_o).includes(this.placement))
7878
+ if (super.connectedCallback(), !this.placement || !Object.keys(wo).includes(this.placement))
8063
7879
  throw new Error(
8064
7880
  `Invalid "placement" attribute. Set its value to one of the following:
8065
7881
  ${JSON.stringify(
8066
- Object.keys(_o)
7882
+ Object.keys(wo)
8067
7883
  )}`
8068
7884
  );
8069
7885
  setTimeout(() => this.requestUpdate(), 0);
@@ -8075,7 +7891,7 @@ ${JSON.stringify(
8075
7891
  this.placement = e;
8076
7892
  }
8077
7893
  get _arrowDirection() {
8078
- return _o[this.placement];
7894
+ return wo[this.placement];
8079
7895
  }
8080
7896
  updated() {
8081
7897
  this.callout || this._attentionEl.style.setProperty("--attention-visibility", this.show ? "" : "hidden"), this.tooltip || this._attentionEl.style.setProperty("--attention-display", this.show ? "block" : "none"), this.attentionState = {
@@ -8087,11 +7903,11 @@ ${JSON.stringify(
8087
7903
  attentionEl: this._attentionEl,
8088
7904
  targetEl: this._targetEl,
8089
7905
  noArrow: this.noArrow
8090
- }, nn(this.attentionState);
7906
+ }, Oi(this.attentionState);
8091
7907
  }
8092
7908
  setAriaLabels() {
8093
7909
  if (this._targetEl && !this._targetEl.getAttribute("aria-describedby")) {
8094
- const e = this._messageEl.id || (this._messageEl.id = di());
7910
+ const e = this._messageEl.id || (this._messageEl.id = Kr());
8095
7911
  this._messageEl.setAttribute("role", "tooltip"), this._targetEl.setAttribute("aria-describedby", e);
8096
7912
  }
8097
7913
  }
@@ -8108,39 +7924,39 @@ ${JSON.stringify(
8108
7924
  return this.renderRoot.querySelector("slot[name='message']").assignedNodes()[0];
8109
7925
  }
8110
7926
  get _wrapperClasses() {
8111
- return wt({
8112
- [Q.base]: !0,
8113
- [Q.tooltip]: this.tooltip,
8114
- [Q.callout]: this.callout,
8115
- [Q.popover]: this.popover
7927
+ return gt({
7928
+ [H.base]: !0,
7929
+ [H.tooltip]: this.tooltip,
7930
+ [H.callout]: this.callout,
7931
+ [H.popover]: this.popover
8116
7932
  });
8117
7933
  }
8118
7934
  get _arrowClasses() {
8119
- return wt({
8120
- [Q.arrowBase]: !0,
7935
+ return gt({
7936
+ [H.arrowBase]: !0,
8121
7937
  ["-top-8"]: this._arrowDirection === "top",
8122
7938
  ["-right-8"]: this._arrowDirection === "right",
8123
7939
  ["-bottom-8"]: this._arrowDirection === "bottom",
8124
7940
  ["-left-8"]: this._arrowDirection === "left",
8125
- [Q.arrowTooltip]: this.tooltip,
8126
- [Q.arrowCallout]: this.callout,
8127
- [Q.arrowPopover]: this.popover
7941
+ [H.arrowTooltip]: this.tooltip,
7942
+ [H.arrowCallout]: this.callout,
7943
+ [H.arrowPopover]: this.popover
8128
7944
  });
8129
7945
  }
8130
7946
  get _arrowHtml() {
8131
- return this.noArrow ? "" : p`<div
7947
+ return this.noArrow ? "" : h`<div
8132
7948
  id="arrow"
8133
7949
  role="img"
8134
- aria-label=${en[this._arrowDirection]}
7950
+ aria-label=${Ni[this._arrowDirection]}
8135
7951
  class="${this._arrowClasses}"
8136
- style="transform:rotate(${on[this._arrowDirection]}deg);
7952
+ style="transform:rotate(${Ui[this._arrowDirection]}deg);
8137
7953
  margin-${this._arrowDirection.charAt(0).toLowerCase() + this._arrowDirection.slice(1)}:-0.5px;"
8138
7954
  />`;
8139
7955
  }
8140
7956
  render() {
8141
- return p`
8142
- <div class=${_(this.className ? this.className : void 0)}>
8143
- ${this.placement === "right" || this.placement === "bottom" ? p`
7957
+ return h`
7958
+ <div class=${z(this.className ? this.className : void 0)}>
7959
+ ${this.placement === "right" || this.placement === "bottom" ? h`
8144
7960
  <slot name="target"></slot>
8145
7961
  <div id="attention" class="${this._wrapperClasses}">
8146
7962
  <div>
@@ -8148,7 +7964,7 @@ ${JSON.stringify(
8148
7964
  <slot name="message"></slot>
8149
7965
  </div>
8150
7966
  </div>
8151
- ` : p`
7967
+ ` : h`
8152
7968
  <div id="attention" class="${this._wrapperClasses}">
8153
7969
  <div>
8154
7970
  <slot name="message"></slot>
@@ -8161,15 +7977,15 @@ ${JSON.stringify(
8161
7977
  `;
8162
7978
  }
8163
7979
  }
8164
- k(Oo, "properties", {
7980
+ x(jo, "properties", {
8165
7981
  show: { type: Boolean, reflect: !0 },
8166
7982
  placement: { type: String },
8167
7983
  tooltip: { type: Boolean, reflect: !0 },
8168
7984
  callout: { type: Boolean, reflect: !0 },
8169
7985
  popover: { type: Boolean, reflect: !0 },
8170
7986
  noArrow: { type: Boolean, reflect: !0 }
8171
- }), k(Oo, "styles", [
8172
- R`
7987
+ }), x(jo, "styles", [
7988
+ C`
8173
7989
  /* /* layer: preflights */
8174
7990
 
8175
7991
  /*
@@ -8755,19 +8571,19 @@ video {
8755
8571
  }
8756
8572
  `
8757
8573
  ]);
8758
- customElements.get("w-attention") || customElements.define("w-attention", Oo);
8759
- class Fo extends $ {
8574
+ customElements.get("w-attention") || customElements.define("w-attention", jo);
8575
+ class No extends y {
8760
8576
  constructor() {
8761
8577
  super(), this.type = "text";
8762
8578
  }
8763
8579
  get _outerWrapperStyles() {
8764
- return L({
8580
+ return M({
8765
8581
  "has-suffix": this._hasSuffix,
8766
8582
  "has-prefix": this._hasPrefix
8767
8583
  });
8768
8584
  }
8769
8585
  get _innerWrapperStyles() {
8770
- return L({
8586
+ return M({
8771
8587
  "input mb-0": !0,
8772
8588
  "input--is-invalid": this.invalid,
8773
8589
  "input--is-disabled": this.disabled,
@@ -8776,7 +8592,7 @@ class Fo extends $ {
8776
8592
  }
8777
8593
  get _label() {
8778
8594
  if (this.label)
8779
- return p`<label for="${this._id}">${this.label}</label>`;
8595
+ return h`<label for="${this._id}">${this.label}</label>`;
8780
8596
  }
8781
8597
  get _helpId() {
8782
8598
  if (this.helpText)
@@ -8806,7 +8622,7 @@ class Fo extends $ {
8806
8622
  this.renderRoot.querySelector("slot[name=suffix]").assignedElements().length && (this._hasSuffix = !0);
8807
8623
  }
8808
8624
  render() {
8809
- return p`
8625
+ return h`
8810
8626
  ${this._fabricStylesheet}
8811
8627
  <div class="${this._outerWrapperStyles}">
8812
8628
  <div class="${this._innerWrapperStyles}">
@@ -8815,18 +8631,18 @@ class Fo extends $ {
8815
8631
  <slot @slotchange="${this.prefixSlotChange}" name="prefix"></slot>
8816
8632
  <input
8817
8633
  type="${this.type}"
8818
- min="${_(this.min)}"
8819
- max="${_(this.max)}"
8820
- size="${_(this.size)}"
8821
- minlength="${_(this.minLength)}"
8822
- maxlength="${_(this.maxLength)}"
8823
- name="${_(this.name)}"
8824
- pattern="${_(this.pattern)}"
8825
- placeholder="${_(this.placeholder)}"
8826
- value="${_(this.value)}"
8827
- aria-describedby="${_(this._helpId)}"
8828
- aria-errormessage="${_(this._error)}"
8829
- aria-invalid="${_(this.invalid)}"
8634
+ min="${z(this.min)}"
8635
+ max="${z(this.max)}"
8636
+ size="${z(this.size)}"
8637
+ minlength="${z(this.minLength)}"
8638
+ maxlength="${z(this.maxLength)}"
8639
+ name="${z(this.name)}"
8640
+ pattern="${z(this.pattern)}"
8641
+ placeholder="${z(this.placeholder)}"
8642
+ value="${z(this.value)}"
8643
+ aria-describedby="${z(this._helpId)}"
8644
+ aria-errormessage="${z(this._error)}"
8645
+ aria-invalid="${z(this.invalid)}"
8830
8646
  id="${this._id}"
8831
8647
  ?disabled="${this.disabled}"
8832
8648
  ?readonly="${this.readOnly}"
@@ -8837,13 +8653,13 @@ class Fo extends $ {
8837
8653
  />
8838
8654
  <slot @slotchange="${this.suffixSlotChange}" name="suffix"></slot>
8839
8655
  </div>
8840
- ${this.helpText && p`<div class="input__sub-text" id="${this._helpId}">${this.helpText}</div>`}
8656
+ ${this.helpText && h`<div class="input__sub-text" id="${this._helpId}">${this.helpText}</div>`}
8841
8657
  </div>
8842
8658
  </div>
8843
8659
  `;
8844
8660
  }
8845
8661
  }
8846
- k(Fo, "properties", {
8662
+ x(No, "properties", {
8847
8663
  disabled: { type: Boolean },
8848
8664
  invalid: { type: Boolean },
8849
8665
  id: { type: String },
@@ -8863,8 +8679,8 @@ k(Fo, "properties", {
8863
8679
  value: { type: String },
8864
8680
  _hasPrefix: { state: !0 },
8865
8681
  _hasSuffix: { state: !0 }
8866
- }), k(Fo, "styles", [
8867
- R`
8682
+ }), x(No, "styles", [
8683
+ C`
8868
8684
  /* /* layer: preflights */
8869
8685
 
8870
8686
  /*
@@ -9441,14 +9257,14 @@ video {
9441
9257
  }
9442
9258
  `
9443
9259
  ]);
9444
- customElements.get("w-textfield") || customElements.define("w-textfield", Fo);
9445
- class Pt extends $ {
9260
+ customElements.get("w-textfield") || customElements.define("w-textfield", No);
9261
+ class _t extends y {
9446
9262
  render() {
9447
- return p`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.5 5.5 8 11l5.5-5.5"></path></svg>`;
9263
+ return h`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M2.5 5.5 8 11l5.5-5.5"></path></svg>`;
9448
9264
  }
9449
9265
  }
9450
- customElements.get("f-icon-chevron-down16", Pt) || customElements.define("f-icon-chevron-down16", Pt);
9451
- class Lo extends Xe($) {
9266
+ customElements.get("f-icon-chevron-down16", _t) || customElements.define("f-icon-chevron-down16", _t);
9267
+ class Uo extends Ye(y) {
9452
9268
  constructor() {
9453
9269
  super(), this.expanded = !1, this.animated = !1, this.info = !1, this.box = !1, this.bleed = !1, this.noChevron = !1, this._hasTitle = !0;
9454
9270
  }
@@ -9456,39 +9272,39 @@ class Lo extends Xe($) {
9456
9272
  this._hasTitle = !!this.title || this.renderRoot.querySelector("slot[name='title']").assignedNodes().length > 0;
9457
9273
  }
9458
9274
  get _expandableSlot() {
9459
- return p`<div
9460
- class=${L({
9275
+ return h`<div
9276
+ class=${M({
9461
9277
  [this.contentClass || ""]: !0,
9462
- [le.box + (this._hasTitle ? " pt-0" : "")]: this.box
9278
+ [oe.box + (this._hasTitle ? " pt-0" : "")]: this.box
9463
9279
  })}
9464
9280
  >
9465
9281
  <slot></slot>
9466
9282
  </div>`;
9467
9283
  }
9468
9284
  render() {
9469
- return p` <div
9470
- class=${L({
9285
+ return h` <div
9286
+ class=${M({
9471
9287
  "bg-aqua-50": this.info,
9472
- ["py-0 px-0 " + le.box]: this.box,
9473
- [le.bleed]: this.bleed
9288
+ ["py-0 px-0 " + oe.box]: this.box,
9289
+ [oe.bleed]: this.bleed
9474
9290
  })}
9475
9291
  >
9476
- ${this._hasTitle ? p`<w-unstyled-heading level=${this.headingLevel}>
9292
+ ${this._hasTitle ? h`<w-unstyled-heading level=${this.headingLevel}>
9477
9293
  <button
9478
9294
  type="button"
9479
9295
  aria-expanded="${this.expanded}"
9480
- class=${L({
9296
+ class=${M({
9481
9297
  [this.buttonClass || ""]: !0,
9482
- [ni + " hover:underline focus:underline"]: !0,
9483
- ["w-full text-left relative " + le.box]: this.box,
9298
+ [Br + " hover:underline focus:underline"]: !0,
9299
+ ["w-full text-left relative " + oe.box]: this.box,
9484
9300
  "hover:text-aqua-700 active:text-aqua-800": this.info
9485
9301
  })}
9486
9302
  @click=${() => this.expanded = !this.expanded}
9487
9303
  >
9488
9304
  <div class="flex justify-between align-center">
9489
- ${this.title ? p`<span class="h4">${this.title}</span>` : p`<slot name="title"></slot>`}
9490
- ${this.noChevron ? "" : p`<div
9491
- class=${L({
9305
+ ${this.title ? h`<span class="h4">${this.title}</span>` : h`<slot name="title"></slot>`}
9306
+ ${this.noChevron ? "" : h`<div
9307
+ class=${M({
9492
9308
  "self-center transform transition-transform": !0,
9493
9309
  "-rotate-180": this.expanded,
9494
9310
  "relative left-8": !this.box,
@@ -9500,21 +9316,21 @@ class Lo extends Xe($) {
9500
9316
  </div>
9501
9317
  </button>
9502
9318
  </w-unstyled-heading>` : ""}
9503
- ${this.animated ? p`<w-expand-transition ?show=${this.expanded}>
9319
+ ${this.animated ? h`<w-expand-transition ?show=${this.expanded}>
9504
9320
  ${this._expandableSlot}
9505
- </w-expand-transition>` : p`<div
9506
- class=${L({
9321
+ </w-expand-transition>` : h`<div
9322
+ class=${M({
9507
9323
  "overflow-hidden": !0,
9508
9324
  "h-0 invisible": !this.expanded
9509
9325
  })}
9510
- aria-hidden=${_(this.expanded ? void 0 : !0)}
9326
+ aria-hidden=${z(this.expanded ? void 0 : !0)}
9511
9327
  >
9512
9328
  ${this._expandableSlot}
9513
9329
  </div>`}
9514
9330
  </div>`;
9515
9331
  }
9516
9332
  }
9517
- k(Lo, "properties", {
9333
+ x(Uo, "properties", {
9518
9334
  expanded: { type: Boolean, reflect: !0 },
9519
9335
  title: { type: String },
9520
9336
  info: { type: Boolean },
@@ -9526,8 +9342,8 @@ k(Lo, "properties", {
9526
9342
  animated: { type: Boolean },
9527
9343
  headingLevel: { type: Number },
9528
9344
  _hasTitle: { type: Boolean, state: !0 }
9529
- }), k(Lo, "styles", [
9530
- R`
9345
+ }), x(Uo, "styles", [
9346
+ C`
9531
9347
  /* /* layer: preflights */
9532
9348
 
9533
9349
  /*
@@ -10119,8 +9935,8 @@ video {
10119
9935
  }
10120
9936
  `
10121
9937
  ]);
10122
- customElements.get("w-expandable") || customElements.define("w-expandable", Lo);
10123
- const an = p`
9938
+ customElements.get("w-expandable") || customElements.define("w-expandable", Uo);
9939
+ const Li = h`
10124
9940
  <svg
10125
9941
  role="img"
10126
9942
  aria-label="X"
@@ -10137,7 +9953,7 @@ const an = p`
10137
9953
  clipRule="evenodd"
10138
9954
  />
10139
9955
  </svg>
10140
- `, ln = p`
9956
+ `, Ii = h`
10141
9957
  <svg
10142
9958
  role="img"
10143
9959
  aria-label="Forstørrelsesglass"
@@ -10163,33 +9979,33 @@ const an = p`
10163
9979
  </defs>
10164
9980
  </svg>
10165
9981
  `;
10166
- class Io extends $ {
9982
+ class To extends y {
10167
9983
  get _classBase() {
10168
- return this.slot === "suffix" ? ai : li;
9984
+ return this.slot === "suffix" ? Vr : Dr;
10169
9985
  }
10170
9986
  get _classes() {
10171
- return L({
9987
+ return M({
10172
9988
  [this._classBase.wrapper]: !0,
10173
9989
  [this._classBase.wrapperWithLabel]: this.label,
10174
9990
  [this._classBase.wrapperWithIcon]: !this.label
10175
9991
  });
10176
9992
  }
10177
9993
  get _searchButton() {
10178
- return p`
10179
- <button aria-label="${_(this.ariaLabel)}" class="${this._classes}" type="submit">
10180
- ${ln}
9994
+ return h`
9995
+ <button aria-label="${z(this.ariaLabel)}" class="${this._classes}" type="submit">
9996
+ ${Ii}
10181
9997
  </button>
10182
9998
  `;
10183
9999
  }
10184
10000
  get _clearButton() {
10185
- return p`
10186
- <button aria-label="${_(this.ariaLabel)}" class="${this._classes}" type="reset">
10187
- ${an}
10001
+ return h`
10002
+ <button aria-label="${z(this.ariaLabel)}" class="${this._classes}" type="reset">
10003
+ ${Li}
10188
10004
  </button>
10189
10005
  `;
10190
10006
  }
10191
10007
  get _text() {
10192
- return p`
10008
+ return h`
10193
10009
  <div class="${this._classes}">
10194
10010
  <span class="${this._classBase.label}">${this.label}</span>
10195
10011
  </div>
@@ -10204,10 +10020,10 @@ class Io extends $ {
10204
10020
  return this._clearButton;
10205
10021
  }
10206
10022
  render() {
10207
- return p`${this._markup}`;
10023
+ return h`${this._markup}`;
10208
10024
  }
10209
10025
  }
10210
- k(Io, "styles", R`
10026
+ x(To, "styles", C`
10211
10027
  /* /* layer: preflights */
10212
10028
 
10213
10029
  /*
@@ -10772,17 +10588,17 @@ video {
10772
10588
  .pointer-events-none{pointer-events:none;}
10773
10589
  .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
10774
10590
  .ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
10775
- `), k(Io, "properties", {
10591
+ `), x(To, "properties", {
10776
10592
  ariaLabel: { type: String, attribute: "aria-label" },
10777
10593
  clear: { type: Boolean },
10778
10594
  search: { type: Boolean },
10779
10595
  label: { type: String }
10780
10596
  });
10781
- customElements.get("w-affix") || customElements.define("w-affix", Io);
10782
- const fr = R`
10597
+ customElements.get("w-affix") || customElements.define("w-affix", To);
10598
+ const cr = C`
10783
10599
  @import "https://assets.finn.no/pkg/@warp-ds/tokens/v1/finn-no.css";
10784
10600
  `;
10785
- class Bo extends $ {
10601
+ class Fo extends y {
10786
10602
  constructor() {
10787
10603
  super(), this.show = !1, this._mounted = !1, this._removeElement = !1;
10788
10604
  }
@@ -10795,27 +10611,27 @@ class Bo extends $ {
10795
10611
  this._mounted = !0;
10796
10612
  return;
10797
10613
  }
10798
- this.show && ir(this._wrapper), !this.show && !this._removeElement && nr(this._wrapper, () => this._removeElement = !0);
10614
+ this.show && Zt(this._wrapper), !this.show && !this._removeElement && Xt(this._wrapper, () => this._removeElement = !0);
10799
10615
  }
10800
10616
  }
10801
10617
  get _wrapper() {
10802
10618
  return this != null ? this : null;
10803
10619
  }
10804
10620
  render() {
10805
- return p`<div aria-hidden=${_(this.show ? void 0 : "true")}>
10806
- ${this._removeElement ? p`` : p`<slot></slot>`}
10621
+ return h`<div aria-hidden=${z(this.show ? void 0 : "true")}>
10622
+ ${this._removeElement ? h`` : h`<slot></slot>`}
10807
10623
  </div>`;
10808
10624
  }
10809
10625
  }
10810
- k(Bo, "properties", {
10626
+ x(Fo, "properties", {
10811
10627
  show: {
10812
10628
  type: Boolean,
10813
10629
  reflect: !0
10814
10630
  },
10815
10631
  _removeElement: { type: Boolean, state: !0 }
10816
- }), k(Bo, "styles", [
10817
- fr,
10818
- R`
10632
+ }), x(Fo, "styles", [
10633
+ cr,
10634
+ C`
10819
10635
  /* /* layer: preflights */
10820
10636
 
10821
10637
  /*
@@ -11386,8 +11202,8 @@ video {
11386
11202
  }
11387
11203
  `
11388
11204
  ]);
11389
- customElements.get("w-expand-transition") || customElements.define("w-expand-transition", Bo);
11390
- class Vo extends $ {
11205
+ customElements.get("w-expand-transition") || customElements.define("w-expand-transition", Fo);
11206
+ class Oo extends y {
11391
11207
  get _markup() {
11392
11208
  return `<h${this.level}
11393
11209
  style="margin: 0; font-weight: unset; font-size: unset; line-height: unset;"
@@ -11397,12 +11213,12 @@ class Vo extends $ {
11397
11213
  `;
11398
11214
  }
11399
11215
  render() {
11400
- return this.level ? et(this._markup) : p`<slot></slot>`;
11216
+ return this.level ? Vt(this._markup) : h`<slot></slot>`;
11401
11217
  }
11402
11218
  }
11403
- k(Vo, "properties", {
11219
+ x(Oo, "properties", {
11404
11220
  level: { type: Number }
11405
- }), k(Vo, "styles", [fr, R`
11221
+ }), x(Oo, "styles", [cr, C`
11406
11222
  /* /* layer: preflights */
11407
11223
 
11408
11224
  /*
@@ -11968,12 +11784,24 @@ video {
11968
11784
  .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
11969
11785
  .ease-in-out{transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);} */
11970
11786
  `]);
11971
- customElements.get("w-unstyled-heading") || customElements.define("w-unstyled-heading", Vo);
11972
- class jt extends $ {
11973
- render() {
11974
- return p`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><title>Håndveske</title><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M5 14.5V3a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v11.5"></path><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12.222 6H3.777a2 2 0 0 0-1.986 1.766l-.53 4.5A2 2 0 0 0 3.25 14.5h9.502a2 2 0 0 0 1.986-2.234l-.53-4.5A2 2 0 0 0 12.222 6Z"></path></svg>`;
11975
- }
11976
- }
11977
- customElements.get("f-icon-bag16", jt) || customElements.define("f-icon-bag16", jt);
11978
- be && (window.WarpToastContainer = Ie, window.toast = $i, window.updateToast = _i, window.removeToast = zi);
11979
- //# sourceMappingURL=scripts.19dc1416.js.map
11787
+ customElements.get("w-unstyled-heading") || customElements.define("w-unstyled-heading", Oo);
11788
+ export {
11789
+ Fo as ExpandTransition,
11790
+ Oo as UnstyledHeading,
11791
+ To as WarpAffix,
11792
+ _o as WarpAlert,
11793
+ jo as WarpAttention,
11794
+ Ro as WarpBox,
11795
+ Ht as WarpBreadcrumbs,
11796
+ qo as WarpBroadcast,
11797
+ Me as WarpButton,
11798
+ So as WarpCard,
11799
+ Uo as WarpExpandable,
11800
+ Co as WarpSelect,
11801
+ No as WarpTextField,
11802
+ Eo as WarpToast,
11803
+ Ao as WarpToastContainer,
11804
+ Di as removeToast,
11805
+ Vi as toast,
11806
+ Hi as updateToast
11807
+ };