@cal.macconnachie/web-components 1.2.2 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- const Xe = globalThis, Et = Xe.ShadowRoot && (Xe.ShadyCSS === void 0 || Xe.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, _t = Symbol(), Vt = /* @__PURE__ */ new WeakMap();
1
+ const Ze = globalThis, Et = Ze.ShadowRoot && (Ze.ShadyCSS === void 0 || Ze.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ct = Symbol(), Vt = /* @__PURE__ */ new WeakMap();
2
2
  let xr = class {
3
3
  constructor(t, r, o) {
4
- if (this._$cssResult$ = !0, o !== _t) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
4
+ if (this._$cssResult$ = !0, o !== Ct) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
5
5
  this.cssText = t, this.t = r;
6
6
  }
7
7
  get styleSheet() {
@@ -17,28 +17,28 @@ let xr = class {
17
17
  return this.cssText;
18
18
  }
19
19
  };
20
- const Xr = (e) => new xr(typeof e == "string" ? e : e + "", void 0, _t), J = (e, ...t) => {
20
+ const Zr = (e) => new xr(typeof e == "string" ? e : e + "", void 0, Ct), J = (e, ...t) => {
21
21
  const r = e.length === 1 ? e[0] : t.reduce(((o, i, s) => o + ((a) => {
22
22
  if (a._$cssResult$ === !0) return a.cssText;
23
23
  if (typeof a == "number") return a;
24
24
  throw Error("Value passed to 'css' function must be a 'css' function result: " + a + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
25
25
  })(i) + e[s + 1]), e[0]);
26
- return new xr(r, e, _t);
27
- }, Zr = (e, t) => {
26
+ return new xr(r, e, Ct);
27
+ }, eo = (e, t) => {
28
28
  if (Et) e.adoptedStyleSheets = t.map(((r) => r instanceof CSSStyleSheet ? r : r.styleSheet));
29
29
  else for (const r of t) {
30
- const o = document.createElement("style"), i = Xe.litNonce;
30
+ const o = document.createElement("style"), i = Ze.litNonce;
31
31
  i !== void 0 && o.setAttribute("nonce", i), o.textContent = r.cssText, e.appendChild(o);
32
32
  }
33
33
  }, Yt = Et ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
34
34
  let r = "";
35
35
  for (const o of t.cssRules) r += o.cssText;
36
- return Xr(r);
36
+ return Zr(r);
37
37
  })(e) : e;
38
- const { is: eo, defineProperty: to, getOwnPropertyDescriptor: ro, getOwnPropertyNames: oo, getOwnPropertySymbols: io, getPrototypeOf: so } = Object, st = globalThis, Wt = st.trustedTypes, ao = Wt ? Wt.emptyScript : "", no = st.reactiveElementPolyfillSupport, qe = (e, t) => e, rt = { toAttribute(e, t) {
38
+ const { is: to, defineProperty: ro, getOwnPropertyDescriptor: oo, getOwnPropertyNames: io, getOwnPropertySymbols: so, getPrototypeOf: ao } = Object, at = globalThis, Wt = at.trustedTypes, no = Wt ? Wt.emptyScript : "", lo = at.reactiveElementPolyfillSupport, qe = (e, t) => e, ot = { toAttribute(e, t) {
39
39
  switch (t) {
40
40
  case Boolean:
41
- e = e ? ao : null;
41
+ e = e ? no : null;
42
42
  break;
43
43
  case Object:
44
44
  case Array:
@@ -63,9 +63,9 @@ const { is: eo, defineProperty: to, getOwnPropertyDescriptor: ro, getOwnProperty
63
63
  }
64
64
  }
65
65
  return r;
66
- } }, Ct = (e, t) => !eo(e, t), Kt = { attribute: !0, type: String, converter: rt, reflect: !1, useDefault: !1, hasChanged: Ct };
67
- Symbol.metadata ??= Symbol("metadata"), st.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
68
- let Ee = class extends HTMLElement {
66
+ } }, _t = (e, t) => !to(e, t), Kt = { attribute: !0, type: String, converter: ot, reflect: !1, useDefault: !1, hasChanged: _t };
67
+ Symbol.metadata ??= Symbol("metadata"), at.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
68
+ let Ce = class extends HTMLElement {
69
69
  static addInitializer(t) {
70
70
  this._$Ei(), (this.l ??= []).push(t);
71
71
  }
@@ -75,11 +75,11 @@ let Ee = class extends HTMLElement {
75
75
  static createProperty(t, r = Kt) {
76
76
  if (r.state && (r.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((r = Object.create(r)).wrapped = !0), this.elementProperties.set(t, r), !r.noAccessor) {
77
77
  const o = Symbol(), i = this.getPropertyDescriptor(t, o, r);
78
- i !== void 0 && to(this.prototype, t, i);
78
+ i !== void 0 && ro(this.prototype, t, i);
79
79
  }
80
80
  }
81
81
  static getPropertyDescriptor(t, r, o) {
82
- const { get: i, set: s } = ro(this.prototype, t) ?? { get() {
82
+ const { get: i, set: s } = oo(this.prototype, t) ?? { get() {
83
83
  return this[r];
84
84
  }, set(a) {
85
85
  this[r] = a;
@@ -94,13 +94,13 @@ let Ee = class extends HTMLElement {
94
94
  }
95
95
  static _$Ei() {
96
96
  if (this.hasOwnProperty(qe("elementProperties"))) return;
97
- const t = so(this);
97
+ const t = ao(this);
98
98
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
99
99
  }
100
100
  static finalize() {
101
101
  if (this.hasOwnProperty(qe("finalized"))) return;
102
102
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(qe("properties"))) {
103
- const r = this.properties, o = [...oo(r), ...io(r)];
103
+ const r = this.properties, o = [...io(r), ...so(r)];
104
104
  for (const i of o) this.createProperty(i, r[i]);
105
105
  }
106
106
  const t = this[Symbol.metadata];
@@ -146,7 +146,7 @@ let Ee = class extends HTMLElement {
146
146
  }
147
147
  createRenderRoot() {
148
148
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
149
- return Zr(t, this.constructor.elementStyles), t;
149
+ return eo(t, this.constructor.elementStyles), t;
150
150
  }
151
151
  connectedCallback() {
152
152
  this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((t) => t.hostConnected?.()));
@@ -162,14 +162,14 @@ let Ee = class extends HTMLElement {
162
162
  _$ET(t, r) {
163
163
  const o = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, o);
164
164
  if (i !== void 0 && o.reflect === !0) {
165
- const s = (o.converter?.toAttribute !== void 0 ? o.converter : rt).toAttribute(r, o.type);
165
+ const s = (o.converter?.toAttribute !== void 0 ? o.converter : ot).toAttribute(r, o.type);
166
166
  this._$Em = t, s == null ? this.removeAttribute(i) : this.setAttribute(i, s), this._$Em = null;
167
167
  }
168
168
  }
169
169
  _$AK(t, r) {
170
170
  const o = this.constructor, i = o._$Eh.get(t);
171
171
  if (i !== void 0 && this._$Em !== i) {
172
- const s = o.getPropertyOptions(i), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : s.converter?.fromAttribute !== void 0 ? s.converter : rt;
172
+ const s = o.getPropertyOptions(i), a = typeof s.converter == "function" ? { fromAttribute: s.converter } : s.converter?.fromAttribute !== void 0 ? s.converter : ot;
173
173
  this._$Em = i;
174
174
  const n = a.fromAttribute(r, s.type);
175
175
  this[i] = n ?? this._$Ej?.get(i) ?? n, this._$Em = null;
@@ -178,7 +178,7 @@ let Ee = class extends HTMLElement {
178
178
  requestUpdate(t, r, o) {
179
179
  if (t !== void 0) {
180
180
  const i = this.constructor, s = this[t];
181
- if (o ??= i.getPropertyOptions(t), !((o.hasChanged ?? Ct)(s, r) || o.useDefault && o.reflect && s === this._$Ej?.get(t) && !this.hasAttribute(i._$Eu(t, o)))) return;
181
+ if (o ??= i.getPropertyOptions(t), !((o.hasChanged ?? _t)(s, r) || o.useDefault && o.reflect && s === this._$Ej?.get(t) && !this.hasAttribute(i._$Eu(t, o)))) return;
182
182
  this.C(t, r, o);
183
183
  }
184
184
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
@@ -246,15 +246,15 @@ let Ee = class extends HTMLElement {
246
246
  firstUpdated(t) {
247
247
  }
248
248
  };
249
- Ee.elementStyles = [], Ee.shadowRootOptions = { mode: "open" }, Ee[qe("elementProperties")] = /* @__PURE__ */ new Map(), Ee[qe("finalized")] = /* @__PURE__ */ new Map(), no?.({ ReactiveElement: Ee }), (st.reactiveElementVersions ??= []).push("2.1.1");
250
- const At = globalThis, ot = At.trustedTypes, Jt = ot ? ot.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, $r = "$lit$", de = `lit$${Math.random().toFixed(9).slice(2)}$`, kr = "?" + de, lo = `<${kr}>`, $e = document, Be = () => $e.createComment(""), je = (e) => e === null || typeof e != "object" && typeof e != "function", Pt = Array.isArray, co = (e) => Pt(e) || typeof e?.[Symbol.iterator] == "function", bt = `[
249
+ Ce.elementStyles = [], Ce.shadowRootOptions = { mode: "open" }, Ce[qe("elementProperties")] = /* @__PURE__ */ new Map(), Ce[qe("finalized")] = /* @__PURE__ */ new Map(), lo?.({ ReactiveElement: Ce }), (at.reactiveElementVersions ??= []).push("2.1.1");
250
+ const At = globalThis, it = At.trustedTypes, Jt = it ? it.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, $r = "$lit$", de = `lit$${Math.random().toFixed(9).slice(2)}$`, kr = "?" + de, co = `<${kr}>`, $e = document, Be = () => $e.createComment(""), je = (e) => e === null || typeof e != "object" && typeof e != "function", Ot = Array.isArray, ho = (e) => Ot(e) || typeof e?.[Symbol.iterator] == "function", bt = `[
251
251
  \f\r]`, Ne = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Gt = /-->/g, Qt = />/g, me = RegExp(`>|${bt}(?:([^\\s"'>=/]+)(${bt}*=${bt}*(?:[^
252
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Xt = /'/g, Zt = /"/g, Sr = /^(?:script|style|textarea|title)$/i, ho = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), b = ho(1), ne = Symbol.for("lit-noChange"), k = Symbol.for("lit-nothing"), er = /* @__PURE__ */ new WeakMap(), ye = $e.createTreeWalker($e, 129);
252
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Xt = /'/g, Zt = /"/g, Sr = /^(?:script|style|textarea|title)$/i, po = (e) => (t, ...r) => ({ _$litType$: e, strings: t, values: r }), b = po(1), ne = Symbol.for("lit-noChange"), k = Symbol.for("lit-nothing"), er = /* @__PURE__ */ new WeakMap(), ye = $e.createTreeWalker($e, 129);
253
253
  function Er(e, t) {
254
- if (!Pt(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
254
+ if (!Ot(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
255
255
  return Jt !== void 0 ? Jt.createHTML(t) : t;
256
256
  }
257
- const po = (e, t) => {
257
+ const uo = (e, t) => {
258
258
  const r = e.length - 1, o = [];
259
259
  let i, s = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", a = Ne;
260
260
  for (let n = 0; n < r; n++) {
@@ -262,17 +262,17 @@ const po = (e, t) => {
262
262
  let p, c, h = -1, m = 0;
263
263
  for (; m < d.length && (a.lastIndex = m, c = a.exec(d), c !== null); ) m = a.lastIndex, a === Ne ? c[1] === "!--" ? a = Gt : c[1] !== void 0 ? a = Qt : c[2] !== void 0 ? (Sr.test(c[2]) && (i = RegExp("</" + c[2], "g")), a = me) : c[3] !== void 0 && (a = me) : a === me ? c[0] === ">" ? (a = i ?? Ne, h = -1) : c[1] === void 0 ? h = -2 : (h = a.lastIndex - c[2].length, p = c[1], a = c[3] === void 0 ? me : c[3] === '"' ? Zt : Xt) : a === Zt || a === Xt ? a = me : a === Gt || a === Qt ? a = Ne : (a = me, i = void 0);
264
264
  const y = a === me && e[n + 1].startsWith("/>") ? " " : "";
265
- s += a === Ne ? d + lo : h >= 0 ? (o.push(p), d.slice(0, h) + $r + d.slice(h) + de + y) : d + de + (h === -2 ? n : y);
265
+ s += a === Ne ? d + co : h >= 0 ? (o.push(p), d.slice(0, h) + $r + d.slice(h) + de + y) : d + de + (h === -2 ? n : y);
266
266
  }
267
267
  return [Er(e, s + (e[r] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), o];
268
268
  };
269
- class Fe {
269
+ class He {
270
270
  constructor({ strings: t, _$litType$: r }, o) {
271
271
  let i;
272
272
  this.parts = [];
273
273
  let s = 0, a = 0;
274
- const n = t.length - 1, d = this.parts, [p, c] = po(t, r);
275
- if (this.el = Fe.createElement(p, o), ye.currentNode = this.el.content, r === 2 || r === 3) {
274
+ const n = t.length - 1, d = this.parts, [p, c] = uo(t, r);
275
+ if (this.el = He.createElement(p, o), ye.currentNode = this.el.content, r === 2 || r === 3) {
276
276
  const h = this.el.content.firstChild;
277
277
  h.replaceWith(...h.childNodes);
278
278
  }
@@ -280,12 +280,12 @@ class Fe {
280
280
  if (i.nodeType === 1) {
281
281
  if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith($r)) {
282
282
  const m = c[a++], y = i.getAttribute(h).split(de), u = /([.?@])?(.*)/.exec(m);
283
- d.push({ type: 1, index: s, name: u[2], strings: y, ctor: u[1] === "." ? fo : u[1] === "?" ? bo : u[1] === "@" ? go : at }), i.removeAttribute(h);
283
+ d.push({ type: 1, index: s, name: u[2], strings: y, ctor: u[1] === "." ? bo : u[1] === "?" ? go : u[1] === "@" ? mo : nt }), i.removeAttribute(h);
284
284
  } else h.startsWith(de) && (d.push({ type: 6, index: s }), i.removeAttribute(h));
285
285
  if (Sr.test(i.tagName)) {
286
286
  const h = i.textContent.split(de), m = h.length - 1;
287
287
  if (m > 0) {
288
- i.textContent = ot ? ot.emptyScript : "";
288
+ i.textContent = it ? it.emptyScript : "";
289
289
  for (let y = 0; y < m; y++) i.append(h[y], Be()), ye.nextNode(), d.push({ type: 2, index: ++s });
290
290
  i.append(h[m], Be());
291
291
  }
@@ -309,7 +309,7 @@ function _e(e, t, r = e, o) {
309
309
  const s = je(t) ? void 0 : t._$litDirective$;
310
310
  return i?.constructor !== s && (i?._$AO?.(!1), s === void 0 ? i = void 0 : (i = new s(e), i._$AT(e, r, o)), o !== void 0 ? (r._$Co ??= [])[o] = i : r._$Cl = i), i !== void 0 && (t = _e(e, i._$AS(e, t.values), i, o)), t;
311
311
  }
312
- let uo = class {
312
+ let fo = class {
313
313
  constructor(t, r) {
314
314
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = r;
315
315
  }
@@ -326,7 +326,7 @@ let uo = class {
326
326
  for (; d !== void 0; ) {
327
327
  if (a === d.index) {
328
328
  let p;
329
- d.type === 2 ? p = new Pe(s, s.nextSibling, this, t) : d.type === 1 ? p = new d.ctor(s, d.name, d.strings, this, t) : d.type === 6 && (p = new mo(s, this, t)), this._$AV.push(p), d = o[++n];
329
+ d.type === 2 ? p = new Oe(s, s.nextSibling, this, t) : d.type === 1 ? p = new d.ctor(s, d.name, d.strings, this, t) : d.type === 6 && (p = new vo(s, this, t)), this._$AV.push(p), d = o[++n];
330
330
  }
331
331
  a !== d?.index && (s = ye.nextNode(), a++);
332
332
  }
@@ -337,7 +337,7 @@ let uo = class {
337
337
  for (const o of this._$AV) o !== void 0 && (o.strings !== void 0 ? (o._$AI(t, o, r), r += o.strings.length - 2) : o._$AI(t[r])), r++;
338
338
  }
339
339
  };
340
- class Pe {
340
+ class Oe {
341
341
  get _$AU() {
342
342
  return this._$AM?._$AU ?? this._$Cv;
343
343
  }
@@ -356,7 +356,7 @@ class Pe {
356
356
  return this._$AB;
357
357
  }
358
358
  _$AI(t, r = this) {
359
- t = _e(this, t, r), je(t) ? t === k || t == null || t === "" ? (this._$AH !== k && this._$AR(), this._$AH = k) : t !== this._$AH && t !== ne && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : co(t) ? this.k(t) : this._(t);
359
+ t = _e(this, t, r), je(t) ? t === k || t == null || t === "" ? (this._$AH !== k && this._$AR(), this._$AH = k) : t !== this._$AH && t !== ne && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : ho(t) ? this.k(t) : this._(t);
360
360
  }
361
361
  O(t) {
362
362
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -368,22 +368,22 @@ class Pe {
368
368
  this._$AH !== k && je(this._$AH) ? this._$AA.nextSibling.data = t : this.T($e.createTextNode(t)), this._$AH = t;
369
369
  }
370
370
  $(t) {
371
- const { values: r, _$litType$: o } = t, i = typeof o == "number" ? this._$AC(t) : (o.el === void 0 && (o.el = Fe.createElement(Er(o.h, o.h[0]), this.options)), o);
371
+ const { values: r, _$litType$: o } = t, i = typeof o == "number" ? this._$AC(t) : (o.el === void 0 && (o.el = He.createElement(Er(o.h, o.h[0]), this.options)), o);
372
372
  if (this._$AH?._$AD === i) this._$AH.p(r);
373
373
  else {
374
- const s = new uo(i, this), a = s.u(this.options);
374
+ const s = new fo(i, this), a = s.u(this.options);
375
375
  s.p(r), this.T(a), this._$AH = s;
376
376
  }
377
377
  }
378
378
  _$AC(t) {
379
379
  let r = er.get(t.strings);
380
- return r === void 0 && er.set(t.strings, r = new Fe(t)), r;
380
+ return r === void 0 && er.set(t.strings, r = new He(t)), r;
381
381
  }
382
382
  k(t) {
383
- Pt(this._$AH) || (this._$AH = [], this._$AR());
383
+ Ot(this._$AH) || (this._$AH = [], this._$AR());
384
384
  const r = this._$AH;
385
385
  let o, i = 0;
386
- for (const s of t) i === r.length ? r.push(o = new Pe(this.O(Be()), this.O(Be()), this, this.options)) : o = r[i], o._$AI(s), i++;
386
+ for (const s of t) i === r.length ? r.push(o = new Oe(this.O(Be()), this.O(Be()), this, this.options)) : o = r[i], o._$AI(s), i++;
387
387
  i < r.length && (this._$AR(o && o._$AB.nextSibling, i), r.length = i);
388
388
  }
389
389
  _$AR(t = this._$AA.nextSibling, r) {
@@ -396,7 +396,7 @@ class Pe {
396
396
  this._$AM === void 0 && (this._$Cv = t, this._$AP?.(t));
397
397
  }
398
398
  }
399
- class at {
399
+ class nt {
400
400
  get tagName() {
401
401
  return this.element.tagName;
402
402
  }
@@ -421,7 +421,7 @@ class at {
421
421
  t === k ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
422
422
  }
423
423
  }
424
- class fo extends at {
424
+ class bo extends nt {
425
425
  constructor() {
426
426
  super(...arguments), this.type = 3;
427
427
  }
@@ -429,7 +429,7 @@ class fo extends at {
429
429
  this.element[this.name] = t === k ? void 0 : t;
430
430
  }
431
431
  }
432
- class bo extends at {
432
+ class go extends nt {
433
433
  constructor() {
434
434
  super(...arguments), this.type = 4;
435
435
  }
@@ -437,7 +437,7 @@ class bo extends at {
437
437
  this.element.toggleAttribute(this.name, !!t && t !== k);
438
438
  }
439
439
  }
440
- class go extends at {
440
+ class mo extends nt {
441
441
  constructor(t, r, o, i, s) {
442
442
  super(t, r, o, i, s), this.type = 5;
443
443
  }
@@ -450,7 +450,7 @@ class go extends at {
450
450
  typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
451
451
  }
452
452
  }
453
- class mo {
453
+ class vo {
454
454
  constructor(t, r, o) {
455
455
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = r, this.options = o;
456
456
  }
@@ -461,19 +461,19 @@ class mo {
461
461
  _e(this, t);
462
462
  }
463
463
  }
464
- const vo = { I: Pe }, yo = At.litHtmlPolyfillSupport;
465
- yo?.(Fe, Pe), (At.litHtmlVersions ??= []).push("3.3.1");
466
- const wo = (e, t, r) => {
464
+ const yo = { I: Oe }, wo = At.litHtmlPolyfillSupport;
465
+ wo?.(He, Oe), (At.litHtmlVersions ??= []).push("3.3.1");
466
+ const xo = (e, t, r) => {
467
467
  const o = r?.renderBefore ?? t;
468
468
  let i = o._$litPart$;
469
469
  if (i === void 0) {
470
470
  const s = r?.renderBefore ?? null;
471
- o._$litPart$ = i = new Pe(t.insertBefore(Be(), s), s, void 0, r ?? {});
471
+ o._$litPart$ = i = new Oe(t.insertBefore(Be(), s), s, void 0, r ?? {});
472
472
  }
473
473
  return i._$AI(e), i;
474
474
  };
475
- const Ot = globalThis;
476
- let Ue = class extends Ee {
475
+ const Pt = globalThis;
476
+ let Ue = class extends Ce {
477
477
  constructor() {
478
478
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
479
479
  }
@@ -483,7 +483,7 @@ let Ue = class extends Ee {
483
483
  }
484
484
  update(t) {
485
485
  const r = this.render();
486
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = wo(r, this.renderRoot, this.renderOptions);
486
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = xo(r, this.renderRoot, this.renderOptions);
487
487
  }
488
488
  connectedCallback() {
489
489
  super.connectedCallback(), this._$Do?.setConnected(!0);
@@ -495,16 +495,16 @@ let Ue = class extends Ee {
495
495
  return ne;
496
496
  }
497
497
  };
498
- Ue._$litElement$ = !0, Ue.finalized = !0, Ot.litElementHydrateSupport?.({ LitElement: Ue });
499
- const xo = Ot.litElementPolyfillSupport;
500
- xo?.({ LitElement: Ue });
501
- (Ot.litElementVersions ??= []).push("4.2.1");
498
+ Ue._$litElement$ = !0, Ue.finalized = !0, Pt.litElementHydrateSupport?.({ LitElement: Ue });
499
+ const $o = Pt.litElementPolyfillSupport;
500
+ $o?.({ LitElement: Ue });
501
+ (Pt.litElementVersions ??= []).push("4.2.1");
502
502
  const K = (e) => (t, r) => {
503
503
  r !== void 0 ? r.addInitializer((() => {
504
504
  customElements.define(e, t);
505
505
  })) : customElements.define(e, t);
506
506
  };
507
- const $o = { attribute: !0, type: String, converter: rt, reflect: !1, hasChanged: Ct }, ko = (e = $o, t, r) => {
507
+ const ko = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: _t }, So = (e = ko, t, r) => {
508
508
  const { kind: o, metadata: i } = r;
509
509
  let s = globalThis.litPropertyMetadata.get(i);
510
510
  if (s === void 0 && globalThis.litPropertyMetadata.set(i, s = /* @__PURE__ */ new Map()), o === "setter" && ((e = Object.create(e)).wrapped = !0), s.set(r.name, e), o === "accessor") {
@@ -526,7 +526,7 @@ const $o = { attribute: !0, type: String, converter: rt, reflect: !1, hasChanged
526
526
  throw Error("Unsupported decorator location: " + o);
527
527
  };
528
528
  function f(e) {
529
- return (t, r) => typeof r == "object" ? ko(e, t, r) : ((o, i, s) => {
529
+ return (t, r) => typeof r == "object" ? So(e, t, r) : ((o, i, s) => {
530
530
  const a = i.hasOwnProperty(s);
531
531
  return i.constructor.createProperty(s, o), a ? Object.getOwnPropertyDescriptor(i, s) : void 0;
532
532
  })(e, t, r);
@@ -534,17 +534,17 @@ function f(e) {
534
534
  function w(e) {
535
535
  return f({ ...e, state: !0, attribute: !1 });
536
536
  }
537
- const So = (e, t, r) => (r.configurable = !0, r.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, r), r);
537
+ const Eo = (e, t, r) => (r.configurable = !0, r.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(e, t, r), r);
538
538
  function j(e, t) {
539
539
  return (r, o, i) => {
540
540
  const s = (a) => a.renderRoot?.querySelector(e) ?? null;
541
- return So(r, o, { get() {
541
+ return Eo(r, o, { get() {
542
542
  return s(this);
543
543
  } });
544
544
  };
545
545
  }
546
- const Dt = { ATTRIBUTE: 1, CHILD: 2 }, Rt = (e) => (...t) => ({ _$litDirective$: e, values: t });
547
- class Tt {
546
+ const Dt = { ATTRIBUTE: 1, CHILD: 2 }, Tt = (e) => (...t) => ({ _$litDirective$: e, values: t });
547
+ class Rt {
548
548
  constructor(t) {
549
549
  }
550
550
  get _$AU() {
@@ -560,11 +560,11 @@ class Tt {
560
560
  return this.render(...r);
561
561
  }
562
562
  }
563
- const { I: Eo } = vo, tr = () => document.createComment(""), Me = (e, t, r) => {
563
+ const { I: Co } = yo, tr = () => document.createComment(""), Me = (e, t, r) => {
564
564
  const o = e._$AA.parentNode, i = t === void 0 ? e._$AB : t._$AA;
565
565
  if (r === void 0) {
566
566
  const s = o.insertBefore(tr(), i), a = o.insertBefore(tr(), i);
567
- r = new Eo(s, a, e, e.options);
567
+ r = new Co(s, a, e, e.options);
568
568
  } else {
569
569
  const s = r._$AB.nextSibling, a = r._$AM, n = a !== e;
570
570
  if (n) {
@@ -580,14 +580,14 @@ const { I: Eo } = vo, tr = () => document.createComment(""), Me = (e, t, r) => {
580
580
  }
581
581
  }
582
582
  return r;
583
- }, ve = (e, t, r = e) => (e._$AI(t, r), e), _o = {}, Co = (e, t = _o) => e._$AH = t, Ao = (e) => e._$AH, gt = (e) => {
583
+ }, ve = (e, t, r = e) => (e._$AI(t, r), e), _o = {}, Ao = (e, t = _o) => e._$AH = t, Oo = (e) => e._$AH, gt = (e) => {
584
584
  e._$AR(), e._$AA.remove();
585
585
  };
586
586
  const rr = (e, t, r) => {
587
587
  const o = /* @__PURE__ */ new Map();
588
588
  for (let i = t; i <= r; i++) o.set(e[i], i);
589
589
  return o;
590
- }, or = Rt(class extends Tt {
590
+ }, or = Tt(class extends Rt {
591
591
  constructor(e) {
592
592
  if (super(e), e.type !== Dt.CHILD) throw Error("repeat() can only be used in text expressions");
593
593
  }
@@ -603,7 +603,7 @@ const rr = (e, t, r) => {
603
603
  return this.dt(e, t, r).values;
604
604
  }
605
605
  update(e, [t, r, o]) {
606
- const i = Ao(e), { values: s, keys: a } = this.dt(t, r, o);
606
+ const i = Oo(e), { values: s, keys: a } = this.dt(t, r, o);
607
607
  if (!Array.isArray(i)) return this.ut = a, s;
608
608
  const n = this.ut ??= [], d = [];
609
609
  let p, c, h = 0, m = i.length - 1, y = 0, u = s.length - 1;
@@ -630,10 +630,10 @@ const rr = (e, t, r) => {
630
630
  const v = i[h++];
631
631
  v !== null && gt(v);
632
632
  }
633
- return this.ut = a, Co(e, d), ne;
633
+ return this.ut = a, Ao(e, d), ne;
634
634
  }
635
635
  });
636
- var Po = Object.defineProperty, _r = (e, t, r, o) => {
636
+ var Po = Object.defineProperty, Cr = (e, t, r, o) => {
637
637
  for (var i = void 0, s = e.length - 1, a; s >= 0; s--)
638
638
  (a = e[s]) && (i = a(t, r, i) || i);
639
639
  return i && Po(t, r, i), i;
@@ -664,13 +664,13 @@ class U extends Ue {
664
664
  );
665
665
  }
666
666
  }
667
- _r([
667
+ Cr([
668
668
  f({ type: String, attribute: "data-theme", reflect: !0 })
669
669
  ], U.prototype, "theme");
670
- _r([
670
+ Cr([
671
671
  f({ type: String, attribute: "storage-key" })
672
672
  ], U.prototype, "storageKey");
673
- const Oo = ({
673
+ const Do = ({
674
674
  baseUrl: e
675
675
  }) => {
676
676
  const t = {
@@ -840,11 +840,11 @@ const Oo = ({
840
840
  return y.json();
841
841
  }
842
842
  };
843
- }, Do = ["code", "state", "error", "error_description"], Ro = (e) => {
843
+ }, To = ["code", "state", "error", "error_description"], Ro = (e) => {
844
844
  if (e) return e;
845
845
  const t = new URL(window.location.href);
846
- return Do.forEach((r) => t.searchParams.delete(r)), t.toString();
847
- }, To = ({
846
+ return To.forEach((r) => t.searchParams.delete(r)), t.toString();
847
+ }, zo = ({
848
848
  domain: e,
849
849
  cognitoRegion: t,
850
850
  userPoolId: r,
@@ -856,11 +856,11 @@ const Oo = ({
856
856
  clientId: o,
857
857
  redirectUri: Ro(i)
858
858
  }, a = (x) => {
859
- const A = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~", _ = new Uint8Array(x);
860
- return crypto.getRandomValues(_), Array.from(_).map((O) => A[O % A.length]).join("");
859
+ const A = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~", C = new Uint8Array(x);
860
+ return crypto.getRandomValues(C), Array.from(C).map((P) => A[P % A.length]).join("");
861
861
  }, n = async (x) => {
862
- const _ = new TextEncoder().encode(x), O = await crypto.subtle.digest("SHA-256", _);
863
- return btoa(String.fromCharCode(...new Uint8Array(O))).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
862
+ const C = new TextEncoder().encode(x), P = await crypto.subtle.digest("SHA-256", C);
863
+ return btoa(String.fromCharCode(...new Uint8Array(P))).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
864
864
  }, d = async () => {
865
865
  const x = a(128), A = await n(x);
866
866
  return sessionStorage.setItem("pkce_code_verifier", x), { codeVerifier: x, codeChallenge: A };
@@ -868,7 +868,7 @@ const Oo = ({
868
868
  const x = a(32);
869
869
  return sessionStorage.setItem("oauth_state", x), x;
870
870
  }, c = async () => {
871
- const { codeChallenge: x } = await d(), A = p(), _ = new URLSearchParams({
871
+ const { codeChallenge: x } = await d(), A = p(), C = new URLSearchParams({
872
872
  response_type: "code",
873
873
  client_id: s.clientId,
874
874
  redirect_uri: s.redirectUri,
@@ -879,12 +879,12 @@ const Oo = ({
879
879
  code_challenge: x,
880
880
  prompt: "select_account"
881
881
  });
882
- return `${s.domain}/oauth2/authorize?${_.toString()}`;
882
+ return `${s.domain}/oauth2/authorize?${C.toString()}`;
883
883
  }, h = async () => {
884
884
  const x = await c();
885
885
  window.location.href = x;
886
886
  }, m = async () => {
887
- const { codeChallenge: x } = await d(), A = p(), _ = new URLSearchParams({
887
+ const { codeChallenge: x } = await d(), A = p(), C = new URLSearchParams({
888
888
  response_type: "code",
889
889
  client_id: s.clientId,
890
890
  redirect_uri: s.redirectUri,
@@ -894,7 +894,7 @@ const Oo = ({
894
894
  code_challenge_method: "S256",
895
895
  code_challenge: x
896
896
  });
897
- return `${s.domain}/oauth2/authorize?${_.toString()}`;
897
+ return `${s.domain}/oauth2/authorize?${C.toString()}`;
898
898
  }, y = async () => {
899
899
  const x = await m();
900
900
  window.location.href = x;
@@ -914,27 +914,27 @@ const Oo = ({
914
914
  const A = v();
915
915
  if (!A)
916
916
  throw new Error("PKCE code verifier not found. Please restart the authentication flow.");
917
- const _ = new URLSearchParams({
917
+ const C = new URLSearchParams({
918
918
  grant_type: "authorization_code",
919
919
  client_id: s.clientId,
920
920
  code: x,
921
921
  redirect_uri: s.redirectUri,
922
922
  code_verifier: A
923
- }), O = await fetch(`${s.domain}/oauth2/token`, {
923
+ }), P = await fetch(`${s.domain}/oauth2/token`, {
924
924
  method: "POST",
925
925
  headers: {
926
926
  "Content-Type": "application/x-www-form-urlencoded"
927
927
  },
928
- body: _.toString()
928
+ body: C.toString()
929
929
  });
930
- if (!O.ok) {
931
- const F = await O.text();
932
- throw new Error(`Token exchange failed: ${F}`);
930
+ if (!P.ok) {
931
+ const H = await P.text();
932
+ throw new Error(`Token exchange failed: ${H}`);
933
933
  }
934
- return O.json();
934
+ return P.json();
935
935
  }
936
936
  };
937
- }, Cr = () => J`
937
+ }, _r = () => J`
938
938
  :host {
939
939
  display: inline-block;
940
940
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
@@ -1434,12 +1434,12 @@ const Oo = ({
1434
1434
  transition: none !important;
1435
1435
  }
1436
1436
  }`;
1437
- var zo = Object.defineProperty, Io = Object.getOwnPropertyDescriptor, C = (e, t, r, o) => {
1438
- for (var i = o > 1 ? void 0 : o ? Io(t, r) : t, s = e.length - 1, a; s >= 0; s--)
1437
+ var Io = Object.defineProperty, No = Object.getOwnPropertyDescriptor, _ = (e, t, r, o) => {
1438
+ for (var i = o > 1 ? void 0 : o ? No(t, r) : t, s = e.length - 1, a; s >= 0; s--)
1439
1439
  (a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
1440
- return o && i && zo(t, r, i), i;
1440
+ return o && i && Io(t, r, i), i;
1441
1441
  };
1442
- const No = [
1442
+ const Mo = [
1443
1443
  "code",
1444
1444
  "state",
1445
1445
  "error",
@@ -1457,9 +1457,9 @@ let E = class extends U {
1457
1457
  };
1458
1458
  }
1459
1459
  getApiService() {
1460
- return this.apiService || (this.mockMode ? this.apiService = this.createMockApiService() : this.apiService = Oo({
1460
+ return this.apiService || (this.mockMode ? this.apiService = this.createMockApiService() : this.apiService = Do({
1461
1461
  baseUrl: "/api/"
1462
- })), this.error = "", this.apiService;
1462
+ })), this.apiService;
1463
1463
  }
1464
1464
  createMockApiService() {
1465
1465
  return {
@@ -1644,7 +1644,7 @@ let E = class extends U {
1644
1644
  return null;
1645
1645
  if (!this.oauthService) {
1646
1646
  const e = this.oauthRedirectUri?.trim() ? this.oauthRedirectUri.trim() : void 0;
1647
- this.oauthService = To({
1647
+ this.oauthService = zo({
1648
1648
  domain: this.oauthDomain.trim(),
1649
1649
  cognitoRegion: this.oauthRegion.trim(),
1650
1650
  userPoolId: this.oauthUserPoolId.trim(),
@@ -1657,7 +1657,7 @@ let E = class extends U {
1657
1657
  stripOAuthParamsFromUrl() {
1658
1658
  const e = new URL(window.location.href);
1659
1659
  let t = !1;
1660
- for (const r of No)
1660
+ for (const r of Mo)
1661
1661
  e.searchParams.has(r) && (e.searchParams.delete(r), t = !0);
1662
1662
  if (t) {
1663
1663
  const r = e.searchParams.toString(), o = `${e.pathname}${r ? `?${r}` : ""}${e.hash}`;
@@ -1665,9 +1665,10 @@ let E = class extends U {
1665
1665
  }
1666
1666
  }
1667
1667
  async handleOAuthCallbackIfPresent() {
1668
+ this.error = "";
1668
1669
  const e = new URLSearchParams(window.location.search), t = e.get("access_token"), r = e.get("id_token"), o = e.get("refresh_token"), i = e.get("code"), s = e.get("state"), a = e.get("error"), n = e.get("error_description");
1669
1670
  if ((t || r || i || a) && !this.hasHandledOAuthCallback) {
1670
- this.hasHandledOAuthCallback = !0, this.isLoading = !0, this.error = "";
1671
+ this.hasHandledOAuthCallback = !0, this.isLoading = !0;
1671
1672
  try {
1672
1673
  if (a)
1673
1674
  throw new Error(n || `OAuth error: ${a}`);
@@ -1746,6 +1747,7 @@ let E = class extends U {
1746
1747
  return this.isLoggedIn;
1747
1748
  }
1748
1749
  async logout() {
1750
+ this.error = "";
1749
1751
  try {
1750
1752
  const e = this.getApiService(), {
1751
1753
  redirectUrl: t,
@@ -2229,7 +2231,7 @@ let E = class extends U {
2229
2231
  </button>
2230
2232
  </div>
2231
2233
  ` : k}
2232
- ${this.error ? b`
2234
+ ${this.error && !this.isLoading ? b`
2233
2235
  <div class="alert alert--error">
2234
2236
  ${this.error}
2235
2237
  <button class="alert-close" @click=${() => this.error = ""} aria-label="Dismiss">
@@ -2293,95 +2295,95 @@ let E = class extends U {
2293
2295
  return this.userEmail;
2294
2296
  }
2295
2297
  };
2296
- E.styles = Cr();
2297
- C([
2298
+ E.styles = _r();
2299
+ _([
2298
2300
  f({ type: String, attribute: "initial-mode" })
2299
2301
  ], E.prototype, "initialMode", 2);
2300
- C([
2302
+ _([
2301
2303
  f({ type: String, attribute: "logo-url" })
2302
2304
  ], E.prototype, "logoUrl", 2);
2303
- C([
2305
+ _([
2304
2306
  f({ type: String, attribute: "oauth-domain" })
2305
2307
  ], E.prototype, "oauthDomain", 2);
2306
- C([
2308
+ _([
2307
2309
  f({ type: String, attribute: "oauth-region" })
2308
2310
  ], E.prototype, "oauthRegion", 2);
2309
- C([
2311
+ _([
2310
2312
  f({ type: String, attribute: "oauth-user-pool-id" })
2311
2313
  ], E.prototype, "oauthUserPoolId", 2);
2312
- C([
2314
+ _([
2313
2315
  f({ type: String, attribute: "oauth-client-id" })
2314
2316
  ], E.prototype, "oauthClientId", 2);
2315
- C([
2317
+ _([
2316
2318
  f({ type: String, attribute: "oauth-redirect-uri" })
2317
2319
  ], E.prototype, "oauthRedirectUri", 2);
2318
- C([
2320
+ _([
2319
2321
  f({ type: String, attribute: "oauth-spa-domain" })
2320
2322
  ], E.prototype, "oauthSpaDomain", 2);
2321
- C([
2323
+ _([
2322
2324
  f({ type: Boolean, attribute: "disable-signup" })
2323
2325
  ], E.prototype, "disableSignup", 2);
2324
- C([
2326
+ _([
2325
2327
  f({ type: Boolean, attribute: "mock-mode" })
2326
2328
  ], E.prototype, "mockMode", 2);
2327
- C([
2329
+ _([
2328
2330
  w()
2329
2331
  ], E.prototype, "mode", 2);
2330
- C([
2332
+ _([
2331
2333
  w()
2332
2334
  ], E.prototype, "resetStep", 2);
2333
- C([
2335
+ _([
2334
2336
  w()
2335
2337
  ], E.prototype, "signupStep", 2);
2336
- C([
2338
+ _([
2337
2339
  w()
2338
2340
  ], E.prototype, "isLoading", 2);
2339
- C([
2341
+ _([
2340
2342
  w()
2341
2343
  ], E.prototype, "isLoggedIn", 2);
2342
- C([
2344
+ _([
2343
2345
  w()
2344
2346
  ], E.prototype, "email", 2);
2345
- C([
2347
+ _([
2346
2348
  w()
2347
2349
  ], E.prototype, "password", 2);
2348
- C([
2350
+ _([
2349
2351
  w()
2350
2352
  ], E.prototype, "givenName", 2);
2351
- C([
2353
+ _([
2352
2354
  w()
2353
2355
  ], E.prototype, "familyName", 2);
2354
- C([
2356
+ _([
2355
2357
  w()
2356
2358
  ], E.prototype, "newPassword", 2);
2357
- C([
2359
+ _([
2358
2360
  w()
2359
2361
  ], E.prototype, "confirmPassword", 2);
2360
- C([
2362
+ _([
2361
2363
  w()
2362
2364
  ], E.prototype, "notice", 2);
2363
- C([
2365
+ _([
2364
2366
  w()
2365
2367
  ], E.prototype, "error", 2);
2366
- C([
2368
+ _([
2367
2369
  w()
2368
2370
  ], E.prototype, "errors", 2);
2369
- C([
2371
+ _([
2370
2372
  w()
2371
2373
  ], E.prototype, "userEmail", 2);
2372
- C([
2374
+ _([
2373
2375
  w()
2374
2376
  ], E.prototype, "otpDigits", 2);
2375
- C([
2377
+ _([
2376
2378
  w()
2377
2379
  ], E.prototype, "signupOtpDigits", 2);
2378
- C([
2380
+ _([
2379
2381
  j("#email-input")
2380
2382
  ], E.prototype, "emailInput", 2);
2381
- E = C([
2383
+ E = _([
2382
2384
  K("auth-form")
2383
2385
  ], E);
2384
- const S = Rt(class extends Tt {
2386
+ const S = Tt(class extends Rt {
2385
2387
  constructor(e) {
2386
2388
  if (super(e), e.type !== Dt.ATTRIBUTE || e.name !== "class" || e.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
2387
2389
  }
@@ -2403,10 +2405,10 @@ const S = Rt(class extends Tt {
2403
2405
  return ne;
2404
2406
  }
2405
2407
  });
2406
- var Mo = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, fe = (e, t, r, o) => {
2407
- for (var i = o > 1 ? void 0 : o ? Lo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
2408
+ var Lo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, fe = (e, t, r, o) => {
2409
+ for (var i = o > 1 ? void 0 : o ? qo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
2408
2410
  (a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
2409
- return o && i && Mo(t, r, i), i;
2411
+ return o && i && Lo(t, r, i), i;
2410
2412
  };
2411
2413
  let se = class extends U {
2412
2414
  constructor() {
@@ -2902,10 +2904,10 @@ fe([
2902
2904
  se = fe([
2903
2905
  K("base-button")
2904
2906
  ], se);
2905
- var qo = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, Oe = (e, t, r, o) => {
2906
- for (var i = o > 1 ? void 0 : o ? Uo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
2907
+ var Uo = Object.defineProperty, Bo = Object.getOwnPropertyDescriptor, Pe = (e, t, r, o) => {
2908
+ for (var i = o > 1 ? void 0 : o ? Bo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
2907
2909
  (a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
2908
- return o && i && qo(t, r, i), i;
2910
+ return o && i && Uo(t, r, i), i;
2909
2911
  };
2910
2912
  let he = class extends U {
2911
2913
  constructor() {
@@ -3152,31 +3154,31 @@ he.styles = J`
3152
3154
  outline-offset: 2px;
3153
3155
  }
3154
3156
  `;
3155
- Oe([
3157
+ Pe([
3156
3158
  f({ type: String, attribute: "variant" })
3157
3159
  ], he.prototype, "variant", 2);
3158
- Oe([
3160
+ Pe([
3159
3161
  f({ type: String, attribute: "padding" })
3160
3162
  ], he.prototype, "padding", 2);
3161
- Oe([
3163
+ Pe([
3162
3164
  f({ type: Boolean, reflect: !0, attribute: "hoverable" })
3163
3165
  ], he.prototype, "hoverable", 2);
3164
- Oe([
3166
+ Pe([
3165
3167
  f({ type: Boolean, reflect: !0, attribute: "expandable" })
3166
3168
  ], he.prototype, "expandable", 2);
3167
- Oe([
3169
+ Pe([
3168
3170
  w()
3169
3171
  ], he.prototype, "isExpanded", 2);
3170
- he = Oe([
3172
+ he = Pe([
3171
3173
  K("base-card")
3172
3174
  ], he);
3173
3175
  const X = (e) => e ?? k;
3174
- var Bo = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, R = (e, t, r, o) => {
3175
- for (var i = o > 1 ? void 0 : o ? jo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
3176
+ var jo = Object.defineProperty, Ho = Object.getOwnPropertyDescriptor, T = (e, t, r, o) => {
3177
+ for (var i = o > 1 ? void 0 : o ? Ho(t, r) : t, s = e.length - 1, a; s >= 0; s--)
3176
3178
  (a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
3177
- return o && i && Bo(t, r, i), i;
3179
+ return o && i && jo(t, r, i), i;
3178
3180
  };
3179
- let P = class extends U {
3181
+ let O = class extends U {
3180
3182
  constructor() {
3181
3183
  super(...arguments), this.value = "", this.placeholder = "Select a date", this.required = !1, this.disabled = !1, this.size = "md", this.isOpen = !1, this.currentMonth = (/* @__PURE__ */ new Date()).getMonth(), this.currentYear = (/* @__PURE__ */ new Date()).getFullYear(), this.showMonthPicker = !1, this.showYearPicker = !1, this.yearRangeStart = (/* @__PURE__ */ new Date()).getFullYear() - 5, this.isFlipped = !1, this.alignRight = !1, this.inputId = `date-picker-${Math.random().toString(36).substr(2, 9)}`, this.weekDays = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], this.monthNames = [
3182
3184
  "Jan",
@@ -3494,7 +3496,7 @@ let P = class extends U {
3494
3496
  `;
3495
3497
  }
3496
3498
  };
3497
- P.styles = J`
3499
+ O.styles = J`
3498
3500
  :host {
3499
3501
  display: block;
3500
3502
  position: relative;
@@ -3950,75 +3952,75 @@ P.styles = J`
3950
3952
  line-height: var(--line-height-tight);
3951
3953
  }
3952
3954
  `;
3953
- R([
3955
+ T([
3954
3956
  f({ type: String })
3955
- ], P.prototype, "value", 2);
3956
- R([
3957
+ ], O.prototype, "value", 2);
3958
+ T([
3957
3959
  f({ type: String })
3958
- ], P.prototype, "label", 2);
3959
- R([
3960
+ ], O.prototype, "label", 2);
3961
+ T([
3960
3962
  f({ type: String })
3961
- ], P.prototype, "placeholder", 2);
3962
- R([
3963
+ ], O.prototype, "placeholder", 2);
3964
+ T([
3963
3965
  f({ type: Boolean, reflect: !0 })
3964
- ], P.prototype, "required", 2);
3965
- R([
3966
+ ], O.prototype, "required", 2);
3967
+ T([
3966
3968
  f({ type: Boolean, reflect: !0 })
3967
- ], P.prototype, "disabled", 2);
3968
- R([
3969
+ ], O.prototype, "disabled", 2);
3970
+ T([
3969
3971
  f({ type: String })
3970
- ], P.prototype, "error", 2);
3971
- R([
3972
+ ], O.prototype, "error", 2);
3973
+ T([
3972
3974
  f({ type: String })
3973
- ], P.prototype, "hint", 2);
3974
- R([
3975
+ ], O.prototype, "hint", 2);
3976
+ T([
3975
3977
  f({ type: String })
3976
- ], P.prototype, "size", 2);
3977
- R([
3978
+ ], O.prototype, "size", 2);
3979
+ T([
3978
3980
  f({ type: String })
3979
- ], P.prototype, "minDate", 2);
3980
- R([
3981
+ ], O.prototype, "minDate", 2);
3982
+ T([
3981
3983
  f({ type: String })
3982
- ], P.prototype, "maxDate", 2);
3983
- R([
3984
+ ], O.prototype, "maxDate", 2);
3985
+ T([
3984
3986
  w()
3985
- ], P.prototype, "isOpen", 2);
3986
- R([
3987
+ ], O.prototype, "isOpen", 2);
3988
+ T([
3987
3989
  w()
3988
- ], P.prototype, "currentMonth", 2);
3989
- R([
3990
+ ], O.prototype, "currentMonth", 2);
3991
+ T([
3990
3992
  w()
3991
- ], P.prototype, "currentYear", 2);
3992
- R([
3993
+ ], O.prototype, "currentYear", 2);
3994
+ T([
3993
3995
  w()
3994
- ], P.prototype, "showMonthPicker", 2);
3995
- R([
3996
+ ], O.prototype, "showMonthPicker", 2);
3997
+ T([
3996
3998
  w()
3997
- ], P.prototype, "showYearPicker", 2);
3998
- R([
3999
+ ], O.prototype, "showYearPicker", 2);
4000
+ T([
3999
4001
  w()
4000
- ], P.prototype, "yearRangeStart", 2);
4001
- R([
4002
+ ], O.prototype, "yearRangeStart", 2);
4003
+ T([
4002
4004
  w()
4003
- ], P.prototype, "isFlipped", 2);
4004
- R([
4005
+ ], O.prototype, "isFlipped", 2);
4006
+ T([
4005
4007
  w()
4006
- ], P.prototype, "alignRight", 2);
4007
- R([
4008
+ ], O.prototype, "alignRight", 2);
4009
+ T([
4008
4010
  j(".date-display")
4009
- ], P.prototype, "dateDisplay", 2);
4010
- R([
4011
+ ], O.prototype, "dateDisplay", 2);
4012
+ T([
4011
4013
  j(".calendar-container")
4012
- ], P.prototype, "calendarContainer", 2);
4013
- P = R([
4014
+ ], O.prototype, "calendarContainer", 2);
4015
+ O = T([
4014
4016
  K("base-date-picker")
4015
- ], P);
4016
- var Fo = Object.defineProperty, Ho = Object.getOwnPropertyDescriptor, M = (e, t, r, o) => {
4017
- for (var i = o > 1 ? void 0 : o ? Ho(t, r) : t, s = e.length - 1, a; s >= 0; s--)
4017
+ ], O);
4018
+ var Fo = Object.defineProperty, Vo = Object.getOwnPropertyDescriptor, M = (e, t, r, o) => {
4019
+ for (var i = o > 1 ? void 0 : o ? Vo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
4018
4020
  (a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
4019
4021
  return o && i && Fo(t, r, i), i;
4020
4022
  };
4021
- let T = class extends U {
4023
+ let R = class extends U {
4022
4024
  constructor() {
4023
4025
  super(...arguments), this.value = "", this.placeholder = "Select a time", this.required = !1, this.disabled = !1, this.size = "md", this.format = "12", this.isOpen = !1, this.selectedHour = 12, this.selectedMinute = 0, this.selectedPeriod = "AM", this.isFlipped = !1, this.alignRight = !1, this.inputId = `time-picker-${Math.random().toString(36).substr(2, 9)}`;
4024
4026
  }
@@ -4236,7 +4238,7 @@ let T = class extends U {
4236
4238
  `;
4237
4239
  }
4238
4240
  };
4239
- T.styles = J`
4241
+ R.styles = J`
4240
4242
  :host {
4241
4243
  display: block;
4242
4244
  position: relative;
@@ -4472,62 +4474,62 @@ T.styles = J`
4472
4474
  `;
4473
4475
  M([
4474
4476
  f({ type: String })
4475
- ], T.prototype, "value", 2);
4477
+ ], R.prototype, "value", 2);
4476
4478
  M([
4477
4479
  f({ type: String })
4478
- ], T.prototype, "label", 2);
4480
+ ], R.prototype, "label", 2);
4479
4481
  M([
4480
4482
  f({ type: String })
4481
- ], T.prototype, "placeholder", 2);
4483
+ ], R.prototype, "placeholder", 2);
4482
4484
  M([
4483
4485
  f({ type: Boolean, reflect: !0 })
4484
- ], T.prototype, "required", 2);
4486
+ ], R.prototype, "required", 2);
4485
4487
  M([
4486
4488
  f({ type: Boolean, reflect: !0 })
4487
- ], T.prototype, "disabled", 2);
4489
+ ], R.prototype, "disabled", 2);
4488
4490
  M([
4489
4491
  f({ type: String })
4490
- ], T.prototype, "error", 2);
4492
+ ], R.prototype, "error", 2);
4491
4493
  M([
4492
4494
  f({ type: String })
4493
- ], T.prototype, "hint", 2);
4495
+ ], R.prototype, "hint", 2);
4494
4496
  M([
4495
4497
  f({ type: String })
4496
- ], T.prototype, "size", 2);
4498
+ ], R.prototype, "size", 2);
4497
4499
  M([
4498
4500
  f({ type: String })
4499
- ], T.prototype, "format", 2);
4501
+ ], R.prototype, "format", 2);
4500
4502
  M([
4501
4503
  w()
4502
- ], T.prototype, "isOpen", 2);
4504
+ ], R.prototype, "isOpen", 2);
4503
4505
  M([
4504
4506
  w()
4505
- ], T.prototype, "selectedHour", 2);
4507
+ ], R.prototype, "selectedHour", 2);
4506
4508
  M([
4507
4509
  w()
4508
- ], T.prototype, "selectedMinute", 2);
4510
+ ], R.prototype, "selectedMinute", 2);
4509
4511
  M([
4510
4512
  w()
4511
- ], T.prototype, "selectedPeriod", 2);
4513
+ ], R.prototype, "selectedPeriod", 2);
4512
4514
  M([
4513
4515
  w()
4514
- ], T.prototype, "isFlipped", 2);
4516
+ ], R.prototype, "isFlipped", 2);
4515
4517
  M([
4516
4518
  w()
4517
- ], T.prototype, "alignRight", 2);
4519
+ ], R.prototype, "alignRight", 2);
4518
4520
  M([
4519
4521
  j(".time-display")
4520
- ], T.prototype, "timeDisplay", 2);
4522
+ ], R.prototype, "timeDisplay", 2);
4521
4523
  M([
4522
4524
  j(".time-container")
4523
- ], T.prototype, "timeContainer", 2);
4524
- T = M([
4525
+ ], R.prototype, "timeContainer", 2);
4526
+ R = M([
4525
4527
  K("base-time-picker")
4526
- ], T);
4527
- var Vo = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, L = (e, t, r, o) => {
4528
- for (var i = o > 1 ? void 0 : o ? Yo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
4528
+ ], R);
4529
+ var Yo = Object.defineProperty, Wo = Object.getOwnPropertyDescriptor, L = (e, t, r, o) => {
4530
+ for (var i = o > 1 ? void 0 : o ? Wo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
4529
4531
  (a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
4530
- return o && i && Vo(t, r, i), i;
4532
+ return o && i && Yo(t, r, i), i;
4531
4533
  };
4532
4534
  let I = class extends U {
4533
4535
  constructor() {
@@ -4809,10 +4811,10 @@ L([
4809
4811
  I = L([
4810
4812
  K("base-datetime-picker")
4811
4813
  ], I);
4812
- var Wo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, ee = (e, t, r, o) => {
4813
- for (var i = o > 1 ? void 0 : o ? Ko(t, r) : t, s = e.length - 1, a; s >= 0; s--)
4814
+ var Ko = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor, ee = (e, t, r, o) => {
4815
+ for (var i = o > 1 ? void 0 : o ? Jo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
4814
4816
  (a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
4815
- return o && i && Wo(t, r, i), i;
4817
+ return o && i && Ko(t, r, i), i;
4816
4818
  };
4817
4819
  let Y = class extends U {
4818
4820
  constructor() {
@@ -4947,7 +4949,7 @@ let Y = class extends U {
4947
4949
  `;
4948
4950
  }
4949
4951
  };
4950
- Y.styles = Cr();
4952
+ Y.styles = _r();
4951
4953
  ee([
4952
4954
  f({ type: Boolean, reflect: !0 })
4953
4955
  ], Y.prototype, "open", 2);
@@ -4984,10 +4986,10 @@ ee([
4984
4986
  Y = ee([
4985
4987
  K("base-drawer")
4986
4988
  ], Y);
4987
- var Jo = Object.defineProperty, Go = Object.getOwnPropertyDescriptor, te = (e, t, r, o) => {
4988
- for (var i = o > 1 ? void 0 : o ? Go(t, r) : t, s = e.length - 1, a; s >= 0; s--)
4989
+ var Go = Object.defineProperty, Qo = Object.getOwnPropertyDescriptor, te = (e, t, r, o) => {
4990
+ for (var i = o > 1 ? void 0 : o ? Qo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
4989
4991
  (a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
4990
- return o && i && Jo(t, r, i), i;
4992
+ return o && i && Go(t, r, i), i;
4991
4993
  };
4992
4994
  let W = class extends U {
4993
4995
  constructor() {
@@ -5246,10 +5248,10 @@ te([
5246
5248
  W = te([
5247
5249
  K("base-input")
5248
5250
  ], W);
5249
- var Qo = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, N = (e, t, r, o) => {
5250
- for (var i = o > 1 ? void 0 : o ? Xo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
5251
+ var Xo = Object.defineProperty, Zo = Object.getOwnPropertyDescriptor, N = (e, t, r, o) => {
5252
+ for (var i = o > 1 ? void 0 : o ? Zo(t, r) : t, s = e.length - 1, a; s >= 0; s--)
5251
5253
  (a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
5252
- return o && i && Qo(t, r, i), i;
5254
+ return o && i && Xo(t, r, i), i;
5253
5255
  };
5254
5256
  let D = class extends U {
5255
5257
  constructor() {
@@ -5728,10 +5730,10 @@ N([
5728
5730
  D = N([
5729
5731
  K("base-select")
5730
5732
  ], D);
5731
- var Zo = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, De = (e, t, r, o) => {
5732
- for (var i = o > 1 ? void 0 : o ? ei(t, r) : t, s = e.length - 1, a; s >= 0; s--)
5733
+ var ei = Object.defineProperty, ti = Object.getOwnPropertyDescriptor, De = (e, t, r, o) => {
5734
+ for (var i = o > 1 ? void 0 : o ? ti(t, r) : t, s = e.length - 1, a; s >= 0; s--)
5733
5735
  (a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
5734
- return o && i && Zo(t, r, i), i;
5736
+ return o && i && ei(t, r, i), i;
5735
5737
  };
5736
5738
  let pe = class extends U {
5737
5739
  constructor() {
@@ -5808,7 +5810,7 @@ De([
5808
5810
  pe = De([
5809
5811
  K("base-tab")
5810
5812
  ], pe);
5811
- class wt extends Tt {
5813
+ class wt extends Rt {
5812
5814
  constructor(t) {
5813
5815
  if (super(t), this.it = k, t.type !== Dt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
5814
5816
  }
@@ -5823,7 +5825,7 @@ class wt extends Tt {
5823
5825
  }
5824
5826
  }
5825
5827
  wt.directiveName = "unsafeHTML", wt.resultType = 1;
5826
- const ti = Rt(wt);
5828
+ const Ar = Tt(wt);
5827
5829
  var ri = Object.defineProperty, oi = Object.getOwnPropertyDescriptor, ae = (e, t, r, o) => {
5828
5830
  for (var i = o > 1 ? void 0 : o ? oi(t, r) : t, s = e.length - 1, a; s >= 0; s--)
5829
5831
  (a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
@@ -5952,7 +5954,7 @@ let Z = class extends U {
5952
5954
  @click=${() => this.handleTabClick(e.id)}
5953
5955
  @keydown=${(s) => this.handleKeyDown(s, t)}
5954
5956
  >
5955
- ${e.icon ? b`<span class="tab-icon">${ti(e.icon)}</span>` : k}
5957
+ ${e.icon ? b`<span class="tab-icon">${Ar(e.icon)}</span>` : k}
5956
5958
  ${o || this.variant !== "sidebar" || this.isMobile ? b`<span class="tab-label">${e.label}</span>` : k}
5957
5959
  ${e.badge !== void 0 && e.badge > 0 && (o || this.variant !== "sidebar" || this.isMobile) ? b`<span class="tab-badge">${e.badge}</span>` : k}
5958
5960
  </button>
@@ -6802,7 +6804,7 @@ G([
6802
6804
  B = G([
6803
6805
  K("base-textarea")
6804
6806
  ], B);
6805
- var ai = Object.defineProperty, ni = Object.getOwnPropertyDescriptor, Re = (e, t, r, o) => {
6807
+ var ai = Object.defineProperty, ni = Object.getOwnPropertyDescriptor, Te = (e, t, r, o) => {
6806
6808
  for (var i = o > 1 ? void 0 : o ? ni(t, r) : t, s = e.length - 1, a; s >= 0; s--)
6807
6809
  (a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
6808
6810
  return o && i && ai(t, r, i), i;
@@ -7031,38 +7033,70 @@ ue.styles = J`
7031
7033
  font-size: var(--font-size-lg);
7032
7034
  }
7033
7035
  `;
7034
- Re([
7036
+ Te([
7035
7037
  f({ type: Number })
7036
7038
  ], ue.prototype, "value", 2);
7037
- Re([
7039
+ Te([
7038
7040
  f({ type: Number })
7039
7041
  ], ue.prototype, "min", 2);
7040
- Re([
7042
+ Te([
7041
7043
  f({ type: Number })
7042
7044
  ], ue.prototype, "max", 2);
7043
- Re([
7045
+ Te([
7044
7046
  f({ type: String })
7045
7047
  ], ue.prototype, "size", 2);
7046
- Re([
7048
+ Te([
7047
7049
  f({ type: Boolean, attribute: "allow-input" })
7048
7050
  ], ue.prototype, "allowInput", 2);
7049
- ue = Re([
7051
+ ue = Te([
7050
7052
  K("quantity-select")
7051
7053
  ], ue);
7052
- var li = Object.defineProperty, ci = Object.getOwnPropertyDescriptor, nt = (e, t, r, o) => {
7054
+ var li = Object.defineProperty, ci = Object.getOwnPropertyDescriptor, Fe = (e, t, r, o) => {
7053
7055
  for (var i = o > 1 ? void 0 : o ? ci(t, r) : t, s = e.length - 1, a; s >= 0; s--)
7054
7056
  (a = e[s]) && (i = (o ? a(t, r, i) : a(i)) || i);
7055
7057
  return o && i && li(t, r, i), i;
7056
7058
  };
7057
- let Ce = class extends U {
7059
+ let ke = class extends U {
7058
7060
  constructor() {
7059
- super(...arguments), this.size = "sm", this.variant = "ghost", this.isDark = !1;
7061
+ super(...arguments), this.size = "sm", this.variant = "ghost", this.themes = [
7062
+ { theme: "light", icon: `
7063
+ <svg
7064
+ viewBox="0 0 20 20"
7065
+ fill="currentColor"
7066
+ class="theme-icon"
7067
+ aria-hidden="true"
7068
+ >
7069
+ <path
7070
+ fill-rule="evenodd"
7071
+ d="M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z"
7072
+ clip-rule="evenodd"
7073
+ />
7074
+ </svg>
7075
+ ` },
7076
+ { theme: "dark", icon: `
7077
+ <svg
7078
+ viewBox="0 0 20 20"
7079
+ fill="currentColor"
7080
+ class="theme-icon"
7081
+ aria-hidden="true"
7082
+ >
7083
+ <path d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z" />
7084
+ </svg>
7085
+ ` }
7086
+ ], this.currentTheme = 0;
7060
7087
  }
7061
7088
  connectedCallback() {
7062
- super.connectedCallback(), this.isDark = this.theme === "dark";
7089
+ super.connectedCallback(), this.syncCurrentTheme();
7090
+ }
7091
+ updated(e) {
7092
+ super.updated(e), (e.has("themes") || e.has("theme")) && this.syncCurrentTheme();
7093
+ }
7094
+ syncCurrentTheme() {
7095
+ const e = this.themes.findIndex((t) => t.theme === this.theme);
7096
+ this.currentTheme = e >= 0 ? e : 0;
7063
7097
  }
7064
7098
  toggleTheme() {
7065
- this.theme = this.isDark ? "light" : "dark", this.isDark = !this.isDark, super.applyTheme();
7099
+ this.currentTheme = (this.currentTheme + 1) % this.themes.length, this.theme = this.themes[this.currentTheme]?.theme ?? "light", super.applyTheme();
7066
7100
  }
7067
7101
  getSizeClass() {
7068
7102
  const e = {
@@ -7081,44 +7115,33 @@ let Ce = class extends U {
7081
7115
  return e[this.variant] || e.ghost;
7082
7116
  }
7083
7117
  render() {
7084
- const e = this.isDark ? "Switch to light mode" : "Switch to dark mode";
7118
+ const e = (this.currentTheme + 1) % this.themes.length, t = this.themes[e], r = `Switch to ${t?.theme ?? "next"} theme`;
7085
7119
  return b`
7086
7120
  <button
7087
7121
  class="theme-toggle ${this.getSizeClass()} ${this.getVariantClass()}"
7088
7122
  @click=${this.toggleTheme}
7089
- aria-label=${e}
7123
+ aria-label=${r}
7090
7124
  type="button"
7091
7125
  >
7092
- ${this.isDark ? b`
7093
- <svg
7094
- viewBox="0 0 20 20"
7095
- fill="currentColor"
7096
- class="theme-icon"
7097
- aria-hidden="true"
7098
- >
7099
- <path
7100
- fill-rule="evenodd"
7101
- d="M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z"
7102
- clip-rule="evenodd"
7103
- />
7104
- </svg>
7105
- ` : b`
7106
- <svg
7107
- viewBox="0 0 20 20"
7108
- fill="currentColor"
7109
- class="theme-icon"
7110
- aria-hidden="true"
7111
- >
7112
- <path d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z" />
7113
- </svg>
7114
- `}
7126
+ ${Ar(t?.icon ?? `<svg
7127
+ viewBox="0 0 20 20"
7128
+ fill="currentColor"
7129
+ class="theme-icon"
7130
+ aria-hidden="true"
7131
+ >
7132
+ <path
7133
+ fill-rule="evenodd"
7134
+ d="M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z"
7135
+ clip-rule="evenodd"
7136
+ />
7137
+ </svg>`)}
7115
7138
 
7116
- <span class="sr-only">${e}</span>
7139
+ <span class="sr-only">${r}</span>
7117
7140
  </button>
7118
7141
  `;
7119
7142
  }
7120
7143
  };
7121
- Ce.styles = J`
7144
+ ke.styles = J`
7122
7145
  :host {
7123
7146
  display: inline-block;
7124
7147
  }
@@ -7268,19 +7291,22 @@ Ce.styles = J`
7268
7291
  }
7269
7292
  }
7270
7293
  `;
7271
- nt([
7294
+ Fe([
7272
7295
  f({ type: String, attribute: "size" })
7273
- ], Ce.prototype, "size", 2);
7274
- nt([
7296
+ ], ke.prototype, "size", 2);
7297
+ Fe([
7275
7298
  f({ type: String, attribute: "variant" })
7276
- ], Ce.prototype, "variant", 2);
7277
- nt([
7299
+ ], ke.prototype, "variant", 2);
7300
+ Fe([
7301
+ f({ type: Object, attribute: "themes" })
7302
+ ], ke.prototype, "themes", 2);
7303
+ Fe([
7278
7304
  w()
7279
- ], Ce.prototype, "isDark", 2);
7280
- Ce = nt([
7305
+ ], ke.prototype, "currentTheme", 2);
7306
+ ke = Fe([
7281
7307
  K("theme-toggle")
7282
- ], Ce);
7283
- function Ar(e, t) {
7308
+ ], ke);
7309
+ function Or(e, t) {
7284
7310
  return function() {
7285
7311
  return e.apply(t, arguments);
7286
7312
  };
@@ -7288,42 +7314,42 @@ function Ar(e, t) {
7288
7314
  const { toString: di } = Object.prototype, { getPrototypeOf: zt } = Object, { iterator: lt, toStringTag: Pr } = Symbol, ct = /* @__PURE__ */ ((e) => (t) => {
7289
7315
  const r = di.call(t);
7290
7316
  return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
7291
- })(/* @__PURE__ */ Object.create(null)), re = (e) => (e = e.toLowerCase(), (t) => ct(t) === e), dt = (e) => (t) => typeof t === e, { isArray: Te } = Array, Ae = dt("undefined");
7292
- function He(e) {
7293
- return e !== null && !Ae(e) && e.constructor !== null && !Ae(e.constructor) && H(e.constructor.isBuffer) && e.constructor.isBuffer(e);
7317
+ })(/* @__PURE__ */ Object.create(null)), re = (e) => (e = e.toLowerCase(), (t) => ct(t) === e), dt = (e) => (t) => typeof t === e, { isArray: Re } = Array, Ae = dt("undefined");
7318
+ function Ve(e) {
7319
+ return e !== null && !Ae(e) && e.constructor !== null && !Ae(e.constructor) && F(e.constructor.isBuffer) && e.constructor.isBuffer(e);
7294
7320
  }
7295
- const Or = re("ArrayBuffer");
7321
+ const Dr = re("ArrayBuffer");
7296
7322
  function hi(e) {
7297
7323
  let t;
7298
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Or(e.buffer), t;
7324
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Dr(e.buffer), t;
7299
7325
  }
7300
- const pi = dt("string"), H = dt("function"), Dr = dt("number"), Ve = (e) => e !== null && typeof e == "object", ui = (e) => e === !0 || e === !1, Ze = (e) => {
7326
+ const pi = dt("string"), F = dt("function"), Tr = dt("number"), Ye = (e) => e !== null && typeof e == "object", ui = (e) => e === !0 || e === !1, et = (e) => {
7301
7327
  if (ct(e) !== "object")
7302
7328
  return !1;
7303
7329
  const t = zt(e);
7304
7330
  return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Pr in e) && !(lt in e);
7305
7331
  }, fi = (e) => {
7306
- if (!Ve(e) || He(e))
7332
+ if (!Ye(e) || Ve(e))
7307
7333
  return !1;
7308
7334
  try {
7309
7335
  return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
7310
7336
  } catch {
7311
7337
  return !1;
7312
7338
  }
7313
- }, bi = re("Date"), gi = re("File"), mi = re("Blob"), vi = re("FileList"), yi = (e) => Ve(e) && H(e.pipe), wi = (e) => {
7339
+ }, bi = re("Date"), gi = re("File"), mi = re("Blob"), vi = re("FileList"), yi = (e) => Ye(e) && F(e.pipe), wi = (e) => {
7314
7340
  let t;
7315
- return e && (typeof FormData == "function" && e instanceof FormData || H(e.append) && ((t = ct(e)) === "formdata" || // detect form-data instance
7316
- t === "object" && H(e.toString) && e.toString() === "[object FormData]"));
7317
- }, xi = re("URLSearchParams"), [$i, ki, Si, Ei] = ["ReadableStream", "Request", "Response", "Headers"].map(re), _i = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
7318
- function Ye(e, t, { allOwnKeys: r = !1 } = {}) {
7341
+ return e && (typeof FormData == "function" && e instanceof FormData || F(e.append) && ((t = ct(e)) === "formdata" || // detect form-data instance
7342
+ t === "object" && F(e.toString) && e.toString() === "[object FormData]"));
7343
+ }, xi = re("URLSearchParams"), [$i, ki, Si, Ei] = ["ReadableStream", "Request", "Response", "Headers"].map(re), Ci = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
7344
+ function We(e, t, { allOwnKeys: r = !1 } = {}) {
7319
7345
  if (e === null || typeof e > "u")
7320
7346
  return;
7321
7347
  let o, i;
7322
- if (typeof e != "object" && (e = [e]), Te(e))
7348
+ if (typeof e != "object" && (e = [e]), Re(e))
7323
7349
  for (o = 0, i = e.length; o < i; o++)
7324
7350
  t.call(null, e[o], o, e);
7325
7351
  else {
7326
- if (He(e))
7352
+ if (Ve(e))
7327
7353
  return;
7328
7354
  const s = r ? Object.getOwnPropertyNames(e) : Object.keys(e), a = s.length;
7329
7355
  let n;
@@ -7332,7 +7358,7 @@ function Ye(e, t, { allOwnKeys: r = !1 } = {}) {
7332
7358
  }
7333
7359
  }
7334
7360
  function Rr(e, t) {
7335
- if (He(e))
7361
+ if (Ve(e))
7336
7362
  return null;
7337
7363
  t = t.toLowerCase();
7338
7364
  const r = Object.keys(e);
@@ -7342,23 +7368,23 @@ function Rr(e, t) {
7342
7368
  return i;
7343
7369
  return null;
7344
7370
  }
7345
- const we = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Tr = (e) => !Ae(e) && e !== we;
7371
+ const we = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, zr = (e) => !Ae(e) && e !== we;
7346
7372
  function xt() {
7347
- const { caseless: e, skipUndefined: t } = Tr(this) && this || {}, r = {}, o = (i, s) => {
7373
+ const { caseless: e, skipUndefined: t } = zr(this) && this || {}, r = {}, o = (i, s) => {
7348
7374
  const a = e && Rr(r, s) || s;
7349
- Ze(r[a]) && Ze(i) ? r[a] = xt(r[a], i) : Ze(i) ? r[a] = xt({}, i) : Te(i) ? r[a] = i.slice() : (!t || !Ae(i)) && (r[a] = i);
7375
+ et(r[a]) && et(i) ? r[a] = xt(r[a], i) : et(i) ? r[a] = xt({}, i) : Re(i) ? r[a] = i.slice() : (!t || !Ae(i)) && (r[a] = i);
7350
7376
  };
7351
7377
  for (let i = 0, s = arguments.length; i < s; i++)
7352
- arguments[i] && Ye(arguments[i], o);
7378
+ arguments[i] && We(arguments[i], o);
7353
7379
  return r;
7354
7380
  }
7355
- const Ci = (e, t, r, { allOwnKeys: o } = {}) => (Ye(t, (i, s) => {
7356
- r && H(i) ? e[s] = Ar(i, r) : e[s] = i;
7357
- }, { allOwnKeys: o }), e), Ai = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Pi = (e, t, r, o) => {
7381
+ const _i = (e, t, r, { allOwnKeys: o } = {}) => (We(t, (i, s) => {
7382
+ r && F(i) ? e[s] = Or(i, r) : e[s] = i;
7383
+ }, { allOwnKeys: o }), e), Ai = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Oi = (e, t, r, o) => {
7358
7384
  e.prototype = Object.create(t.prototype, o), e.prototype.constructor = e, Object.defineProperty(e, "super", {
7359
7385
  value: t.prototype
7360
7386
  }), r && Object.assign(e.prototype, r);
7361
- }, Oi = (e, t, r, o) => {
7387
+ }, Pi = (e, t, r, o) => {
7362
7388
  let i, s, a;
7363
7389
  const n = {};
7364
7390
  if (t = t || {}, e == null) return t;
@@ -7372,16 +7398,16 @@ const Ci = (e, t, r, { allOwnKeys: o } = {}) => (Ye(t, (i, s) => {
7372
7398
  e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
7373
7399
  const o = e.indexOf(t, r);
7374
7400
  return o !== -1 && o === r;
7375
- }, Ri = (e) => {
7401
+ }, Ti = (e) => {
7376
7402
  if (!e) return null;
7377
- if (Te(e)) return e;
7403
+ if (Re(e)) return e;
7378
7404
  let t = e.length;
7379
- if (!Dr(t)) return null;
7405
+ if (!Tr(t)) return null;
7380
7406
  const r = new Array(t);
7381
7407
  for (; t-- > 0; )
7382
7408
  r[t] = e[t];
7383
7409
  return r;
7384
- }, Ti = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && zt(Uint8Array)), zi = (e, t) => {
7410
+ }, Ri = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && zt(Uint8Array)), zi = (e, t) => {
7385
7411
  const o = (e && e[lt]).call(e);
7386
7412
  let i;
7387
7413
  for (; (i = o.next()) && !i.done; ) {
@@ -7399,18 +7425,18 @@ const Ci = (e, t, r, { allOwnKeys: o } = {}) => (Ye(t, (i, s) => {
7399
7425
  function(r, o, i) {
7400
7426
  return o.toUpperCase() + i;
7401
7427
  }
7402
- ), ir = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Li = re("RegExp"), zr = (e, t) => {
7428
+ ), ir = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), Li = re("RegExp"), Ir = (e, t) => {
7403
7429
  const r = Object.getOwnPropertyDescriptors(e), o = {};
7404
- Ye(r, (i, s) => {
7430
+ We(r, (i, s) => {
7405
7431
  let a;
7406
7432
  (a = t(i, s, e)) !== !1 && (o[s] = a || i);
7407
7433
  }), Object.defineProperties(e, o);
7408
7434
  }, qi = (e) => {
7409
- zr(e, (t, r) => {
7410
- if (H(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
7435
+ Ir(e, (t, r) => {
7436
+ if (F(e) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
7411
7437
  return !1;
7412
7438
  const o = e[r];
7413
- if (H(o)) {
7439
+ if (F(o)) {
7414
7440
  if (t.enumerable = !1, "writable" in t) {
7415
7441
  t.writable = !1;
7416
7442
  return;
@@ -7426,23 +7452,23 @@ const Ci = (e, t, r, { allOwnKeys: o } = {}) => (Ye(t, (i, s) => {
7426
7452
  r[s] = !0;
7427
7453
  });
7428
7454
  };
7429
- return Te(e) ? o(e) : o(String(e).split(t)), r;
7455
+ return Re(e) ? o(e) : o(String(e).split(t)), r;
7430
7456
  }, Bi = () => {
7431
7457
  }, ji = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
7432
- function Fi(e) {
7433
- return !!(e && H(e.append) && e[Pr] === "FormData" && e[lt]);
7458
+ function Hi(e) {
7459
+ return !!(e && F(e.append) && e[Pr] === "FormData" && e[lt]);
7434
7460
  }
7435
- const Hi = (e) => {
7461
+ const Fi = (e) => {
7436
7462
  const t = new Array(10), r = (o, i) => {
7437
- if (Ve(o)) {
7463
+ if (Ye(o)) {
7438
7464
  if (t.indexOf(o) >= 0)
7439
7465
  return;
7440
- if (He(o))
7466
+ if (Ve(o))
7441
7467
  return o;
7442
7468
  if (!("toJSON" in o)) {
7443
7469
  t[i] = o;
7444
- const s = Te(o) ? [] : {};
7445
- return Ye(o, (a, n) => {
7470
+ const s = Re(o) ? [] : {};
7471
+ return We(o, (a, n) => {
7446
7472
  const d = r(a, i + 1);
7447
7473
  !Ae(d) && (s[n] = d);
7448
7474
  }), t[i] = void 0, s;
@@ -7451,24 +7477,24 @@ const Hi = (e) => {
7451
7477
  return o;
7452
7478
  };
7453
7479
  return r(e, 0);
7454
- }, Vi = re("AsyncFunction"), Yi = (e) => e && (Ve(e) || H(e)) && H(e.then) && H(e.catch), Ir = ((e, t) => e ? setImmediate : t ? ((r, o) => (we.addEventListener("message", ({ source: i, data: s }) => {
7480
+ }, Vi = re("AsyncFunction"), Yi = (e) => e && (Ye(e) || F(e)) && F(e.then) && F(e.catch), Nr = ((e, t) => e ? setImmediate : t ? ((r, o) => (we.addEventListener("message", ({ source: i, data: s }) => {
7455
7481
  i === we && s === r && o.length && o.shift()();
7456
7482
  }, !1), (i) => {
7457
7483
  o.push(i), we.postMessage(r, "*");
7458
7484
  }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
7459
7485
  typeof setImmediate == "function",
7460
- H(we.postMessage)
7461
- ), Wi = typeof queueMicrotask < "u" ? queueMicrotask.bind(we) : typeof process < "u" && process.nextTick || Ir, Ki = (e) => e != null && H(e[lt]), l = {
7462
- isArray: Te,
7463
- isArrayBuffer: Or,
7464
- isBuffer: He,
7486
+ F(we.postMessage)
7487
+ ), Wi = typeof queueMicrotask < "u" ? queueMicrotask.bind(we) : typeof process < "u" && process.nextTick || Nr, Ki = (e) => e != null && F(e[lt]), l = {
7488
+ isArray: Re,
7489
+ isArrayBuffer: Dr,
7490
+ isBuffer: Ve,
7465
7491
  isFormData: wi,
7466
7492
  isArrayBufferView: hi,
7467
7493
  isString: pi,
7468
- isNumber: Dr,
7494
+ isNumber: Tr,
7469
7495
  isBoolean: ui,
7470
- isObject: Ve,
7471
- isPlainObject: Ze,
7496
+ isObject: Ye,
7497
+ isPlainObject: et,
7472
7498
  isEmptyObject: fi,
7473
7499
  isReadableStream: $i,
7474
7500
  isRequest: ki,
@@ -7479,29 +7505,29 @@ const Hi = (e) => {
7479
7505
  isFile: gi,
7480
7506
  isBlob: mi,
7481
7507
  isRegExp: Li,
7482
- isFunction: H,
7508
+ isFunction: F,
7483
7509
  isStream: yi,
7484
7510
  isURLSearchParams: xi,
7485
- isTypedArray: Ti,
7511
+ isTypedArray: Ri,
7486
7512
  isFileList: vi,
7487
- forEach: Ye,
7513
+ forEach: We,
7488
7514
  merge: xt,
7489
- extend: Ci,
7490
- trim: _i,
7515
+ extend: _i,
7516
+ trim: Ci,
7491
7517
  stripBOM: Ai,
7492
- inherits: Pi,
7493
- toFlatObject: Oi,
7518
+ inherits: Oi,
7519
+ toFlatObject: Pi,
7494
7520
  kindOf: ct,
7495
7521
  kindOfTest: re,
7496
7522
  endsWith: Di,
7497
- toArray: Ri,
7523
+ toArray: Ti,
7498
7524
  forEachEntry: zi,
7499
7525
  matchAll: Ii,
7500
7526
  isHTMLForm: Ni,
7501
7527
  hasOwnProperty: ir,
7502
7528
  hasOwnProp: ir,
7503
7529
  // an alias to avoid ESLint no-prototype-builtins detection
7504
- reduceDescriptors: zr,
7530
+ reduceDescriptors: Ir,
7505
7531
  freezeMethods: qi,
7506
7532
  toObjectSet: Ui,
7507
7533
  toCamelCase: Mi,
@@ -7509,12 +7535,12 @@ const Hi = (e) => {
7509
7535
  toFiniteNumber: ji,
7510
7536
  findKey: Rr,
7511
7537
  global: we,
7512
- isContextDefined: Tr,
7513
- isSpecCompliantForm: Fi,
7514
- toJSONObject: Hi,
7538
+ isContextDefined: zr,
7539
+ isSpecCompliantForm: Hi,
7540
+ toJSONObject: Fi,
7515
7541
  isAsyncFn: Vi,
7516
7542
  isThenable: Yi,
7517
- setImmediate: Ir,
7543
+ setImmediate: Nr,
7518
7544
  asap: Wi,
7519
7545
  isIterable: Ki
7520
7546
  };
@@ -7542,7 +7568,7 @@ l.inherits($, Error, {
7542
7568
  };
7543
7569
  }
7544
7570
  });
7545
- const Nr = $.prototype, Mr = {};
7571
+ const Mr = $.prototype, Lr = {};
7546
7572
  [
7547
7573
  "ERR_BAD_OPTION_VALUE",
7548
7574
  "ERR_BAD_OPTION",
@@ -7558,12 +7584,12 @@ const Nr = $.prototype, Mr = {};
7558
7584
  "ERR_INVALID_URL"
7559
7585
  // eslint-disable-next-line func-names
7560
7586
  ].forEach((e) => {
7561
- Mr[e] = { value: e };
7587
+ Lr[e] = { value: e };
7562
7588
  });
7563
- Object.defineProperties($, Mr);
7564
- Object.defineProperty(Nr, "isAxiosError", { value: !0 });
7589
+ Object.defineProperties($, Lr);
7590
+ Object.defineProperty(Mr, "isAxiosError", { value: !0 });
7565
7591
  $.from = (e, t, r, o, i, s) => {
7566
- const a = Object.create(Nr);
7592
+ const a = Object.create(Mr);
7567
7593
  l.toFlatObject(e, a, function(c) {
7568
7594
  return c !== Error.prototype;
7569
7595
  }, (p) => p !== "isAxiosError");
@@ -7574,12 +7600,12 @@ const Ji = null;
7574
7600
  function $t(e) {
7575
7601
  return l.isPlainObject(e) || l.isArray(e);
7576
7602
  }
7577
- function Lr(e) {
7603
+ function qr(e) {
7578
7604
  return l.endsWith(e, "[]") ? e.slice(0, -2) : e;
7579
7605
  }
7580
7606
  function sr(e, t, r) {
7581
7607
  return e ? e.concat(t).map(function(i, s) {
7582
- return i = Lr(i), !r && s ? "[" + i + "]" : i;
7608
+ return i = qr(i), !r && s ? "[" + i + "]" : i;
7583
7609
  }).join(r ? "." : "") : t;
7584
7610
  }
7585
7611
  function Gi(e) {
@@ -7617,11 +7643,11 @@ function ht(e, t, r) {
7617
7643
  if (l.endsWith(v, "{}"))
7618
7644
  v = o ? v : v.slice(0, -2), u = JSON.stringify(u);
7619
7645
  else if (l.isArray(u) && Gi(u) || (l.isFileList(u) || l.endsWith(v, "[]")) && (x = l.toArray(u)))
7620
- return v = Lr(v), x.forEach(function(_, O) {
7621
- !(l.isUndefined(_) || _ === null) && t.append(
7646
+ return v = qr(v), x.forEach(function(C, P) {
7647
+ !(l.isUndefined(C) || C === null) && t.append(
7622
7648
  // eslint-disable-next-line no-nested-ternary
7623
- a === !0 ? sr([v], O, s) : a === null ? v : v + "[]",
7624
- p(_)
7649
+ a === !0 ? sr([v], P, s) : a === null ? v : v + "[]",
7650
+ p(C)
7625
7651
  );
7626
7652
  }), !1;
7627
7653
  }
@@ -7668,11 +7694,11 @@ function ar(e) {
7668
7694
  function It(e, t) {
7669
7695
  this._pairs = [], e && ht(e, this, t);
7670
7696
  }
7671
- const qr = It.prototype;
7672
- qr.append = function(t, r) {
7697
+ const Ur = It.prototype;
7698
+ Ur.append = function(t, r) {
7673
7699
  this._pairs.push([t, r]);
7674
7700
  };
7675
- qr.toString = function(t) {
7701
+ Ur.toString = function(t) {
7676
7702
  const r = t ? function(o) {
7677
7703
  return t.call(this, o, ar);
7678
7704
  } : ar;
@@ -7683,7 +7709,7 @@ qr.toString = function(t) {
7683
7709
  function Xi(e) {
7684
7710
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
7685
7711
  }
7686
- function Ur(e, t, r) {
7712
+ function Br(e, t, r) {
7687
7713
  if (!t)
7688
7714
  return e;
7689
7715
  const o = r && r.encode || Xi;
@@ -7752,7 +7778,7 @@ class nr {
7752
7778
  });
7753
7779
  }
7754
7780
  }
7755
- const Br = {
7781
+ const jr = {
7756
7782
  silentJSONParsing: !0,
7757
7783
  forcedJSONParsing: !0,
7758
7784
  clarifyTimeoutError: !1
@@ -7796,7 +7822,7 @@ function cs(e) {
7796
7822
  s = r[o], t[s] = e[s];
7797
7823
  return t;
7798
7824
  }
7799
- function jr(e) {
7825
+ function Hr(e) {
7800
7826
  function t(r, o, i, s) {
7801
7827
  let a = r[s++];
7802
7828
  if (a === "__proto__") return !0;
@@ -7821,13 +7847,13 @@ function ds(e, t, r) {
7821
7847
  }
7822
7848
  return (r || JSON.stringify)(e);
7823
7849
  }
7824
- const We = {
7825
- transitional: Br,
7850
+ const Ke = {
7851
+ transitional: jr,
7826
7852
  adapter: ["xhr", "http", "fetch"],
7827
7853
  transformRequest: [function(t, r) {
7828
7854
  const o = r.getContentType() || "", i = o.indexOf("application/json") > -1, s = l.isObject(t);
7829
7855
  if (s && l.isHTMLForm(t) && (t = new FormData(t)), l.isFormData(t))
7830
- return i ? JSON.stringify(jr(t)) : t;
7856
+ return i ? JSON.stringify(Hr(t)) : t;
7831
7857
  if (l.isArrayBuffer(t) || l.isBuffer(t) || l.isStream(t) || l.isFile(t) || l.isBlob(t) || l.isReadableStream(t))
7832
7858
  return t;
7833
7859
  if (l.isArrayBufferView(t))
@@ -7850,7 +7876,7 @@ const We = {
7850
7876
  return s || i ? (r.setContentType("application/json", !1), ds(t)) : t;
7851
7877
  }],
7852
7878
  transformResponse: [function(t) {
7853
- const r = this.transitional || We.transitional, o = r && r.forcedJSONParsing, i = this.responseType === "json";
7879
+ const r = this.transitional || Ke.transitional, o = r && r.forcedJSONParsing, i = this.responseType === "json";
7854
7880
  if (l.isResponse(t) || l.isReadableStream(t))
7855
7881
  return t;
7856
7882
  if (t && l.isString(t) && (o && !this.responseType || i)) {
@@ -7888,7 +7914,7 @@ const We = {
7888
7914
  }
7889
7915
  };
7890
7916
  l.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
7891
- We.headers[e] = {};
7917
+ Ke.headers[e] = {};
7892
7918
  });
7893
7919
  const hs = l.toObjectSet([
7894
7920
  "age",
@@ -7919,8 +7945,8 @@ const hs = l.toObjectSet([
7919
7945
  function Le(e) {
7920
7946
  return e && String(e).trim().toLowerCase();
7921
7947
  }
7922
- function et(e) {
7923
- return e === !1 || e == null ? e : l.isArray(e) ? e.map(et) : String(e);
7948
+ function tt(e) {
7949
+ return e === !1 || e == null ? e : l.isArray(e) ? e.map(tt) : String(e);
7924
7950
  }
7925
7951
  function us(e) {
7926
7952
  const t = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -7965,7 +7991,7 @@ class V {
7965
7991
  if (!c)
7966
7992
  throw new Error("header name must be a non-empty string");
7967
7993
  const h = l.findKey(i, c);
7968
- (!h || i[h] === void 0 || p === !0 || p === void 0 && i[h] !== !1) && (i[h || d] = et(n));
7994
+ (!h || i[h] === void 0 || p === !0 || p === void 0 && i[h] !== !1) && (i[h || d] = tt(n));
7969
7995
  }
7970
7996
  const a = (n, d) => l.forEach(n, (p, c) => s(p, c, d));
7971
7997
  if (l.isPlainObject(t) || t instanceof this.constructor)
@@ -8033,11 +8059,11 @@ class V {
8033
8059
  return l.forEach(this, (i, s) => {
8034
8060
  const a = l.findKey(o, s);
8035
8061
  if (a) {
8036
- r[a] = et(i), delete r[s];
8062
+ r[a] = tt(i), delete r[s];
8037
8063
  return;
8038
8064
  }
8039
8065
  const n = t ? bs(s) : String(s).trim();
8040
- n !== s && delete r[s], r[n] = et(i), o[n] = !0;
8066
+ n !== s && delete r[s], r[n] = tt(i), o[n] = !0;
8041
8067
  }), this;
8042
8068
  }
8043
8069
  concat(...t) {
@@ -8092,7 +8118,7 @@ l.reduceDescriptors(V.prototype, ({ value: e }, t) => {
8092
8118
  });
8093
8119
  l.freezeMethods(V);
8094
8120
  function vt(e, t) {
8095
- const r = this || We, o = t || r, i = V.from(o.headers);
8121
+ const r = this || Ke, o = t || r, i = V.from(o.headers);
8096
8122
  let s = o.data;
8097
8123
  return l.forEach(e, function(n) {
8098
8124
  s = n.call(r, s, i.normalize(), t ? t.status : void 0);
@@ -8107,7 +8133,7 @@ function ze(e, t, r) {
8107
8133
  l.inherits(ze, $, {
8108
8134
  __CANCEL__: !0
8109
8135
  });
8110
- function Hr(e, t, r) {
8136
+ function Vr(e, t, r) {
8111
8137
  const o = r.config.validateStatus;
8112
8138
  !r.status || !o || o(r.status) ? e(r) : t(new $(
8113
8139
  "Request failed with status code " + r.status,
@@ -8149,7 +8175,7 @@ function ys(e, t) {
8149
8175
  }, o - h)));
8150
8176
  }, () => i && a(i)];
8151
8177
  }
8152
- const it = (e, t, r = 3) => {
8178
+ const st = (e, t, r = 3) => {
8153
8179
  let o = 0;
8154
8180
  const i = vs(50, 250);
8155
8181
  return ys((s) => {
@@ -8213,12 +8239,12 @@ function $s(e) {
8213
8239
  function ks(e, t) {
8214
8240
  return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
8215
8241
  }
8216
- function Vr(e, t, r) {
8242
+ function Yr(e, t, r) {
8217
8243
  let o = !$s(t);
8218
8244
  return e && (o || r == !1) ? ks(e, t) : t;
8219
8245
  }
8220
8246
  const hr = (e) => e instanceof V ? { ...e } : e;
8221
- function ke(e, t) {
8247
+ function Se(e, t) {
8222
8248
  t = t || {};
8223
8249
  const r = {};
8224
8250
  function o(p, c, h, m) {
@@ -8282,10 +8308,10 @@ function ke(e, t) {
8282
8308
  l.isUndefined(m) && h !== n || (r[c] = m);
8283
8309
  }), r;
8284
8310
  }
8285
- const Yr = (e) => {
8286
- const t = ke({}, e);
8311
+ const Wr = (e) => {
8312
+ const t = Se({}, e);
8287
8313
  let { data: r, withXSRFToken: o, xsrfHeaderName: i, xsrfCookieName: s, headers: a, auth: n } = t;
8288
- if (t.headers = a = V.from(a), t.url = Ur(Vr(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), n && a.set(
8314
+ if (t.headers = a = V.from(a), t.url = Br(Yr(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), n && a.set(
8289
8315
  "Authorization",
8290
8316
  "Basic " + btoa((n.username || "") + ":" + (n.password ? unescape(encodeURIComponent(n.password)) : ""))
8291
8317
  ), l.isFormData(r)) {
@@ -8305,7 +8331,7 @@ const Yr = (e) => {
8305
8331
  return t;
8306
8332
  }, Ss = typeof XMLHttpRequest < "u", Es = Ss && function(e) {
8307
8333
  return new Promise(function(r, o) {
8308
- const i = Yr(e);
8334
+ const i = Wr(e);
8309
8335
  let s = i.data;
8310
8336
  const a = V.from(i.headers).normalize();
8311
8337
  let { responseType: n, onUploadProgress: d, onDownloadProgress: p } = i, c, h, m, y, u;
@@ -8317,42 +8343,42 @@ const Yr = (e) => {
8317
8343
  function x() {
8318
8344
  if (!g)
8319
8345
  return;
8320
- const _ = V.from(
8346
+ const C = V.from(
8321
8347
  "getAllResponseHeaders" in g && g.getAllResponseHeaders()
8322
- ), F = {
8348
+ ), H = {
8323
8349
  data: !n || n === "text" || n === "json" ? g.responseText : g.response,
8324
8350
  status: g.status,
8325
8351
  statusText: g.statusText,
8326
- headers: _,
8352
+ headers: C,
8327
8353
  config: e,
8328
8354
  request: g
8329
8355
  };
8330
- Hr(function(Q) {
8356
+ Vr(function(Q) {
8331
8357
  r(Q), v();
8332
8358
  }, function(Q) {
8333
8359
  o(Q), v();
8334
- }, F), g = null;
8360
+ }, H), g = null;
8335
8361
  }
8336
8362
  "onloadend" in g ? g.onloadend = x : g.onreadystatechange = function() {
8337
8363
  !g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(x);
8338
8364
  }, g.onabort = function() {
8339
8365
  g && (o(new $("Request aborted", $.ECONNABORTED, e, g)), g = null);
8340
- }, g.onerror = function(O) {
8341
- const F = O && O.message ? O.message : "Network Error", be = new $(F, $.ERR_NETWORK, e, g);
8342
- be.event = O || null, o(be), g = null;
8366
+ }, g.onerror = function(P) {
8367
+ const H = P && P.message ? P.message : "Network Error", be = new $(H, $.ERR_NETWORK, e, g);
8368
+ be.event = P || null, o(be), g = null;
8343
8369
  }, g.ontimeout = function() {
8344
- let O = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
8345
- const F = i.transitional || Br;
8346
- i.timeoutErrorMessage && (O = i.timeoutErrorMessage), o(new $(
8347
- O,
8348
- F.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
8370
+ let P = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
8371
+ const H = i.transitional || jr;
8372
+ i.timeoutErrorMessage && (P = i.timeoutErrorMessage), o(new $(
8373
+ P,
8374
+ H.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
8349
8375
  e,
8350
8376
  g
8351
8377
  )), g = null;
8352
- }, s === void 0 && a.setContentType(null), "setRequestHeader" in g && l.forEach(a.toJSON(), function(O, F) {
8353
- g.setRequestHeader(F, O);
8354
- }), l.isUndefined(i.withCredentials) || (g.withCredentials = !!i.withCredentials), n && n !== "json" && (g.responseType = i.responseType), p && ([m, u] = it(p, !0), g.addEventListener("progress", m)), d && g.upload && ([h, y] = it(d), g.upload.addEventListener("progress", h), g.upload.addEventListener("loadend", y)), (i.cancelToken || i.signal) && (c = (_) => {
8355
- g && (o(!_ || _.type ? new ze(null, e, g) : _), g.abort(), g = null);
8378
+ }, s === void 0 && a.setContentType(null), "setRequestHeader" in g && l.forEach(a.toJSON(), function(P, H) {
8379
+ g.setRequestHeader(H, P);
8380
+ }), l.isUndefined(i.withCredentials) || (g.withCredentials = !!i.withCredentials), n && n !== "json" && (g.responseType = i.responseType), p && ([m, u] = st(p, !0), g.addEventListener("progress", m)), d && g.upload && ([h, y] = st(d), g.upload.addEventListener("progress", h), g.upload.addEventListener("loadend", y)), (i.cancelToken || i.signal) && (c = (C) => {
8381
+ g && (o(!C || C.type ? new ze(null, e, g) : C), g.abort(), g = null);
8356
8382
  }, i.cancelToken && i.cancelToken.subscribe(c), i.signal && (i.signal.aborted ? c() : i.signal.addEventListener("abort", c)));
8357
8383
  const A = ms(i.url);
8358
8384
  if (A && q.protocols.indexOf(A) === -1) {
@@ -8361,7 +8387,7 @@ const Yr = (e) => {
8361
8387
  }
8362
8388
  g.send(s || null);
8363
8389
  });
8364
- }, _s = (e, t) => {
8390
+ }, Cs = (e, t) => {
8365
8391
  const { length: r } = e = e ? e.filter(Boolean) : [];
8366
8392
  if (t || r) {
8367
8393
  let o = new AbortController(), i;
@@ -8384,7 +8410,7 @@ const Yr = (e) => {
8384
8410
  const { signal: d } = o;
8385
8411
  return d.unsubscribe = () => l.asap(n), d;
8386
8412
  }
8387
- }, Cs = function* (e, t) {
8413
+ }, _s = function* (e, t) {
8388
8414
  let r = e.byteLength;
8389
8415
  if (r < t) {
8390
8416
  yield e;
@@ -8394,9 +8420,9 @@ const Yr = (e) => {
8394
8420
  for (; o < r; )
8395
8421
  i = o + t, yield e.slice(o, i), o = i;
8396
8422
  }, As = async function* (e, t) {
8397
- for await (const r of Ps(e))
8398
- yield* Cs(r, t);
8399
- }, Ps = async function* (e) {
8423
+ for await (const r of Os(e))
8424
+ yield* _s(r, t);
8425
+ }, Os = async function* (e) {
8400
8426
  if (e[Symbol.asyncIterator]) {
8401
8427
  yield* e;
8402
8428
  return;
@@ -8441,7 +8467,7 @@ const Yr = (e) => {
8441
8467
  }, {
8442
8468
  highWaterMark: 2
8443
8469
  });
8444
- }, ur = 64 * 1024, { isFunction: Qe } = l, Os = (({ Request: e, Response: t }) => ({
8470
+ }, ur = 64 * 1024, { isFunction: Xe } = l, Ps = (({ Request: e, Response: t }) => ({
8445
8471
  Request: e,
8446
8472
  Response: t
8447
8473
  }))(l.global), {
@@ -8456,11 +8482,11 @@ const Yr = (e) => {
8456
8482
  }, Ds = (e) => {
8457
8483
  e = l.merge.call({
8458
8484
  skipUndefined: !0
8459
- }, Os, e);
8460
- const { fetch: t, Request: r, Response: o } = e, i = t ? Qe(t) : typeof fetch == "function", s = Qe(r), a = Qe(o);
8485
+ }, Ps, e);
8486
+ const { fetch: t, Request: r, Response: o } = e, i = t ? Xe(t) : typeof fetch == "function", s = Xe(r), a = Xe(o);
8461
8487
  if (!i)
8462
8488
  return !1;
8463
- const n = i && Qe(fr), d = i && (typeof br == "function" ? /* @__PURE__ */ ((u) => (v) => u.encode(v))(new br()) : async (u) => new Uint8Array(await new r(u).arrayBuffer())), p = s && n && gr(() => {
8489
+ const n = i && Xe(fr), d = i && (typeof br == "function" ? /* @__PURE__ */ ((u) => (v) => u.encode(v))(new br()) : async (u) => new Uint8Array(await new r(u).arrayBuffer())), p = s && n && gr(() => {
8464
8490
  let u = !1;
8465
8491
  const v = new r(q.origin, {
8466
8492
  body: new fr(),
@@ -8505,19 +8531,19 @@ const Yr = (e) => {
8505
8531
  method: g,
8506
8532
  data: x,
8507
8533
  signal: A,
8508
- cancelToken: _,
8509
- timeout: O,
8510
- onDownloadProgress: F,
8534
+ cancelToken: C,
8535
+ timeout: P,
8536
+ onDownloadProgress: H,
8511
8537
  onUploadProgress: be,
8512
8538
  responseType: Q,
8513
8539
  headers: ut,
8514
- withCredentials: Ke = "same-origin",
8540
+ withCredentials: Je = "same-origin",
8515
8541
  fetchOptions: qt
8516
- } = Yr(u), Ut = t || fetch;
8542
+ } = Wr(u), Ut = t || fetch;
8517
8543
  Q = Q ? (Q + "").toLowerCase() : "text";
8518
- let Je = _s([A, _ && _.toAbortSignal()], O), Ie = null;
8519
- const ge = Je && Je.unsubscribe && (() => {
8520
- Je.unsubscribe();
8544
+ let Ge = Cs([A, C && C.toAbortSignal()], P), Ie = null;
8545
+ const ge = Ge && Ge.unsubscribe && (() => {
8546
+ Ge.unsubscribe();
8521
8547
  });
8522
8548
  let Bt;
8523
8549
  try {
@@ -8526,49 +8552,49 @@ const Yr = (e) => {
8526
8552
  method: "POST",
8527
8553
  body: x,
8528
8554
  duplex: "half"
8529
- }), Se;
8530
- if (l.isFormData(x) && (Se = ce.headers.get("content-type")) && ut.setContentType(Se), ce.body) {
8531
- const [ft, Ge] = cr(
8555
+ }), Ee;
8556
+ if (l.isFormData(x) && (Ee = ce.headers.get("content-type")) && ut.setContentType(Ee), ce.body) {
8557
+ const [ft, Qe] = cr(
8532
8558
  Bt,
8533
- it(dr(be))
8559
+ st(dr(be))
8534
8560
  );
8535
- x = pr(ce.body, ur, ft, Ge);
8561
+ x = pr(ce.body, ur, ft, Qe);
8536
8562
  }
8537
8563
  }
8538
- l.isString(Ke) || (Ke = Ke ? "include" : "omit");
8564
+ l.isString(Je) || (Je = Je ? "include" : "omit");
8539
8565
  const oe = s && "credentials" in r.prototype, jt = {
8540
8566
  ...qt,
8541
- signal: Je,
8567
+ signal: Ge,
8542
8568
  method: g.toUpperCase(),
8543
8569
  headers: ut.normalize().toJSON(),
8544
8570
  body: x,
8545
8571
  duplex: "half",
8546
- credentials: oe ? Ke : void 0
8572
+ credentials: oe ? Je : void 0
8547
8573
  };
8548
8574
  Ie = s && new r(v, jt);
8549
8575
  let le = await (s ? Ut(Ie, qt) : Ut(v, jt));
8550
- const Ft = c && (Q === "stream" || Q === "response");
8551
- if (c && (F || Ft && ge)) {
8576
+ const Ht = c && (Q === "stream" || Q === "response");
8577
+ if (c && (H || Ht && ge)) {
8552
8578
  const ce = {};
8553
- ["status", "statusText", "headers"].forEach((Ht) => {
8554
- ce[Ht] = le[Ht];
8579
+ ["status", "statusText", "headers"].forEach((Ft) => {
8580
+ ce[Ft] = le[Ft];
8555
8581
  });
8556
- const Se = l.toFiniteNumber(le.headers.get("content-length")), [ft, Ge] = F && cr(
8557
- Se,
8558
- it(dr(F), !0)
8582
+ const Ee = l.toFiniteNumber(le.headers.get("content-length")), [ft, Qe] = H && cr(
8583
+ Ee,
8584
+ st(dr(H), !0)
8559
8585
  ) || [];
8560
8586
  le = new o(
8561
8587
  pr(le.body, ur, ft, () => {
8562
- Ge && Ge(), ge && ge();
8588
+ Qe && Qe(), ge && ge();
8563
8589
  }),
8564
8590
  ce
8565
8591
  );
8566
8592
  }
8567
8593
  Q = Q || "text";
8568
- let Qr = await h[l.findKey(h, Q) || "text"](le, u);
8569
- return !Ft && ge && ge(), await new Promise((ce, Se) => {
8570
- Hr(ce, Se, {
8571
- data: Qr,
8594
+ let Xr = await h[l.findKey(h, Q) || "text"](le, u);
8595
+ return !Ht && ge && ge(), await new Promise((ce, Ee) => {
8596
+ Vr(ce, Ee, {
8597
+ data: Xr,
8572
8598
  headers: V.from(le.headers),
8573
8599
  status: le.status,
8574
8600
  statusText: le.statusText,
@@ -8585,24 +8611,24 @@ const Yr = (e) => {
8585
8611
  ) : $.from(oe, oe && oe.code, u, Ie);
8586
8612
  }
8587
8613
  };
8588
- }, Rs = /* @__PURE__ */ new Map(), Wr = (e) => {
8614
+ }, Ts = /* @__PURE__ */ new Map(), Kr = (e) => {
8589
8615
  let t = e && e.env || {};
8590
8616
  const { fetch: r, Request: o, Response: i } = t, s = [
8591
8617
  o,
8592
8618
  i,
8593
8619
  r
8594
8620
  ];
8595
- let a = s.length, n = a, d, p, c = Rs;
8621
+ let a = s.length, n = a, d, p, c = Ts;
8596
8622
  for (; n--; )
8597
8623
  d = s[n], p = c.get(d), p === void 0 && c.set(d, p = n ? /* @__PURE__ */ new Map() : Ds(t)), c = p;
8598
8624
  return p;
8599
8625
  };
8600
- Wr();
8626
+ Kr();
8601
8627
  const Mt = {
8602
8628
  http: Ji,
8603
8629
  xhr: Es,
8604
8630
  fetch: {
8605
- get: Wr
8631
+ get: Kr
8606
8632
  }
8607
8633
  };
8608
8634
  l.forEach(Mt, (e, t) => {
@@ -8614,7 +8640,7 @@ l.forEach(Mt, (e, t) => {
8614
8640
  Object.defineProperty(e, "adapterName", { value: t });
8615
8641
  }
8616
8642
  });
8617
- const mr = (e) => `- ${e}`, Ts = (e) => l.isFunction(e) || e === null || e === !1;
8643
+ const mr = (e) => `- ${e}`, Rs = (e) => l.isFunction(e) || e === null || e === !1;
8618
8644
  function zs(e, t) {
8619
8645
  e = l.isArray(e) ? e : [e];
8620
8646
  const { length: r } = e;
@@ -8623,7 +8649,7 @@ function zs(e, t) {
8623
8649
  for (let a = 0; a < r; a++) {
8624
8650
  o = e[a];
8625
8651
  let n;
8626
- if (i = o, !Ts(o) && (i = Mt[(n = String(o)).toLowerCase()], i === void 0))
8652
+ if (i = o, !Rs(o) && (i = Mt[(n = String(o)).toLowerCase()], i === void 0))
8627
8653
  throw new $(`Unknown adapter '${n}'`);
8628
8654
  if (i && (l.isFunction(i) || (i = i.get(t))))
8629
8655
  break;
@@ -8643,7 +8669,7 @@ function zs(e, t) {
8643
8669
  }
8644
8670
  return i;
8645
8671
  }
8646
- const Kr = {
8672
+ const Jr = {
8647
8673
  /**
8648
8674
  * Resolve an adapter from a list of adapter names or functions.
8649
8675
  * @type {Function}
@@ -8663,7 +8689,7 @@ function vr(e) {
8663
8689
  return yt(e), e.headers = V.from(e.headers), e.data = vt.call(
8664
8690
  e,
8665
8691
  e.transformRequest
8666
- ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Kr.getAdapter(e.adapter || We.adapter, e)(e).then(function(o) {
8692
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Jr.getAdapter(e.adapter || Ke.adapter, e)(e).then(function(o) {
8667
8693
  return yt(e), o.data = vt.call(
8668
8694
  e,
8669
8695
  e.transformResponse,
@@ -8677,7 +8703,7 @@ function vr(e) {
8677
8703
  ), o.response.headers = V.from(o.response.headers))), Promise.reject(o);
8678
8704
  });
8679
8705
  }
8680
- const Jr = "1.13.2", pt = {};
8706
+ const Gr = "1.13.2", pt = {};
8681
8707
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
8682
8708
  pt[e] = function(o) {
8683
8709
  return typeof o === e || "a" + (t < 1 ? "n " : " ") + e;
@@ -8686,7 +8712,7 @@ const Jr = "1.13.2", pt = {};
8686
8712
  const yr = {};
8687
8713
  pt.transitional = function(t, r, o) {
8688
8714
  function i(s, a) {
8689
- return "[Axios v" + Jr + "] Transitional option '" + s + "'" + a + (o ? ". " + o : "");
8715
+ return "[Axios v" + Gr + "] Transitional option '" + s + "'" + a + (o ? ". " + o : "");
8690
8716
  }
8691
8717
  return (s, a, n) => {
8692
8718
  if (t === !1)
@@ -8717,10 +8743,10 @@ function Is(e, t, r) {
8717
8743
  throw new $("Unknown option " + s, $.ERR_BAD_OPTION);
8718
8744
  }
8719
8745
  }
8720
- const tt = {
8746
+ const rt = {
8721
8747
  assertOptions: Is,
8722
8748
  validators: pt
8723
- }, ie = tt.validators;
8749
+ }, ie = rt.validators;
8724
8750
  class xe {
8725
8751
  constructor(t) {
8726
8752
  this.defaults = t || {}, this.interceptors = {
@@ -8754,18 +8780,18 @@ class xe {
8754
8780
  }
8755
8781
  }
8756
8782
  _request(t, r) {
8757
- typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = ke(this.defaults, r);
8783
+ typeof t == "string" ? (r = r || {}, r.url = t) : r = t || {}, r = Se(this.defaults, r);
8758
8784
  const { transitional: o, paramsSerializer: i, headers: s } = r;
8759
- o !== void 0 && tt.assertOptions(o, {
8785
+ o !== void 0 && rt.assertOptions(o, {
8760
8786
  silentJSONParsing: ie.transitional(ie.boolean),
8761
8787
  forcedJSONParsing: ie.transitional(ie.boolean),
8762
8788
  clarifyTimeoutError: ie.transitional(ie.boolean)
8763
8789
  }, !1), i != null && (l.isFunction(i) ? r.paramsSerializer = {
8764
8790
  serialize: i
8765
- } : tt.assertOptions(i, {
8791
+ } : rt.assertOptions(i, {
8766
8792
  encode: ie.function,
8767
8793
  serialize: ie.function
8768
- }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), tt.assertOptions(r, {
8794
+ }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), rt.assertOptions(r, {
8769
8795
  baseUrl: ie.spelling("baseURL"),
8770
8796
  withXsrfToken: ie.spelling("withXSRFToken")
8771
8797
  }, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
@@ -8816,14 +8842,14 @@ class xe {
8816
8842
  return c;
8817
8843
  }
8818
8844
  getUri(t) {
8819
- t = ke(this.defaults, t);
8820
- const r = Vr(t.baseURL, t.url, t.allowAbsoluteUrls);
8821
- return Ur(r, t.params, t.paramsSerializer);
8845
+ t = Se(this.defaults, t);
8846
+ const r = Yr(t.baseURL, t.url, t.allowAbsoluteUrls);
8847
+ return Br(r, t.params, t.paramsSerializer);
8822
8848
  }
8823
8849
  }
8824
8850
  l.forEach(["delete", "get", "head", "options"], function(t) {
8825
8851
  xe.prototype[t] = function(r, o) {
8826
- return this.request(ke(o || {}, {
8852
+ return this.request(Se(o || {}, {
8827
8853
  method: t,
8828
8854
  url: r,
8829
8855
  data: (o || {}).data
@@ -8833,7 +8859,7 @@ l.forEach(["delete", "get", "head", "options"], function(t) {
8833
8859
  l.forEach(["post", "put", "patch"], function(t) {
8834
8860
  function r(o) {
8835
8861
  return function(s, a, n) {
8836
- return this.request(ke(n || {}, {
8862
+ return this.request(Se(n || {}, {
8837
8863
  method: t,
8838
8864
  headers: o ? {
8839
8865
  "Content-Type": "multipart/form-data"
@@ -9000,18 +9026,18 @@ const St = {
9000
9026
  Object.entries(St).forEach(([e, t]) => {
9001
9027
  St[t] = e;
9002
9028
  });
9003
- function Gr(e) {
9004
- const t = new xe(e), r = Ar(xe.prototype.request, t);
9029
+ function Qr(e) {
9030
+ const t = new xe(e), r = Or(xe.prototype.request, t);
9005
9031
  return l.extend(r, xe.prototype, t, { allOwnKeys: !0 }), l.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(i) {
9006
- return Gr(ke(e, i));
9032
+ return Qr(Se(e, i));
9007
9033
  }, r;
9008
9034
  }
9009
- const z = Gr(We);
9035
+ const z = Qr(Ke);
9010
9036
  z.Axios = xe;
9011
9037
  z.CanceledError = ze;
9012
9038
  z.CancelToken = Lt;
9013
9039
  z.isCancel = Fr;
9014
- z.VERSION = Jr;
9040
+ z.VERSION = Gr;
9015
9041
  z.toFormData = ht;
9016
9042
  z.AxiosError = $;
9017
9043
  z.Cancel = z.CanceledError;
@@ -9020,10 +9046,10 @@ z.all = function(t) {
9020
9046
  };
9021
9047
  z.spread = Ns;
9022
9048
  z.isAxiosError = Ms;
9023
- z.mergeConfig = ke;
9049
+ z.mergeConfig = Se;
9024
9050
  z.AxiosHeaders = V;
9025
- z.formToJSON = (e) => jr(l.isHTMLForm(e) ? new FormData(e) : e);
9026
- z.getAdapter = Kr.getAdapter;
9051
+ z.formToJSON = (e) => Hr(l.isHTMLForm(e) ? new FormData(e) : e);
9052
+ z.getAdapter = Jr.getAdapter;
9027
9053
  z.HttpStatusCode = St;
9028
9054
  z.default = z;
9029
9055
  class wr extends Error {
@@ -9056,7 +9082,7 @@ const Ls = ({ baseUrl: e }) => {
9056
9082
  ), Promise.reject(new wr("No refresh token available"));
9057
9083
  window.__authRefreshPromise || (window.__authRefreshPromise = (async () => {
9058
9084
  try {
9059
- const a = `${e.endsWith("/") ? e.slice(0, -1) : e}/api/auth/refresh`, n = await fetch(a, {
9085
+ const a = `${e.endsWith("/") ? e.slice(0, -1) : e}/api/auth/refresh`.replace(/\/api\/api\//, "/api/"), n = await fetch(a, {
9060
9086
  method: "POST",
9061
9087
  headers: {
9062
9088
  "Content-Type": "application/json"
@@ -9093,13 +9119,13 @@ const Ls = ({ baseUrl: e }) => {
9093
9119
  return Promise.reject(o);
9094
9120
  }
9095
9121
  ), t;
9096
- }, Fs = Ls;
9122
+ }, Hs = Ls;
9097
9123
  export {
9098
9124
  E as AuthForm,
9099
9125
  wr as AuthRefreshError,
9100
9126
  se as BaseButton,
9101
9127
  he as BaseCard,
9102
- P as BaseDatePicker,
9128
+ O as BaseDatePicker,
9103
9129
  I as BaseDateTimePicker,
9104
9130
  Y as BaseDrawer,
9105
9131
  W as BaseInput,
@@ -9107,9 +9133,9 @@ export {
9107
9133
  pe as BaseTab,
9108
9134
  Z as BaseTabs,
9109
9135
  B as BaseTextarea,
9110
- T as BaseTimePicker,
9136
+ R as BaseTimePicker,
9111
9137
  ue as QuantitySelect,
9112
- Ce as ThemeToggle,
9113
- Fs as apiClient,
9138
+ ke as ThemeToggle,
9139
+ Hs as apiClient,
9114
9140
  Ls as createApiClient
9115
9141
  };