@getauthui/core 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- const kt = globalThis, hi = kt.ShadowRoot && (kt.ShadyCSS === void 0 || kt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, fi = /* @__PURE__ */ Symbol(), Si = /* @__PURE__ */ new WeakMap();
1
+ const At = globalThis, hi = At.ShadowRoot && (At.ShadyCSS === void 0 || At.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, fi = /* @__PURE__ */ Symbol(), Si = /* @__PURE__ */ new WeakMap();
2
2
  let Qi = class {
3
3
  constructor(e, n, i) {
4
4
  if (this._$cssResult$ = !0, i !== fi) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -27,7 +27,7 @@ const cn = (t) => new Qi(typeof t == "string" ? t : t + "", void 0, fi), We = (t
27
27
  }, dn = (t, e) => {
28
28
  if (hi) t.adoptedStyleSheets = e.map((n) => n instanceof CSSStyleSheet ? n : n.styleSheet);
29
29
  else for (const n of e) {
30
- const i = document.createElement("style"), o = kt.litNonce;
30
+ const i = document.createElement("style"), o = At.litNonce;
31
31
  o !== void 0 && i.setAttribute("nonce", o), i.textContent = n.cssText, t.appendChild(i);
32
32
  }
33
33
  }, $i = hi ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
@@ -35,7 +35,7 @@ const cn = (t) => new Qi(typeof t == "string" ? t : t + "", void 0, fi), We = (t
35
35
  for (const i of e.cssRules) n += i.cssText;
36
36
  return cn(n);
37
37
  })(t) : t;
38
- const { is: ln, defineProperty: un, getOwnPropertyDescriptor: pn, getOwnPropertyNames: hn, getOwnPropertySymbols: fn, getPrototypeOf: gn } = Object, Mt = globalThis, ji = Mt.trustedTypes, yn = ji ? ji.emptyScript : "", mn = Mt.reactiveElementPolyfillSupport, ut = (t, e) => t, jt = { toAttribute(t, e) {
38
+ const { is: ln, defineProperty: un, getOwnPropertyDescriptor: pn, getOwnPropertyNames: hn, getOwnPropertySymbols: fn, getPrototypeOf: gn } = Object, Rt = globalThis, ji = Rt.trustedTypes, yn = ji ? ji.emptyScript : "", mn = Rt.reactiveElementPolyfillSupport, ut = (t, e) => t, $t = { toAttribute(t, e) {
39
39
  switch (e) {
40
40
  case Boolean:
41
41
  t = t ? yn : null;
@@ -63,8 +63,8 @@ const { is: ln, defineProperty: un, getOwnPropertyDescriptor: pn, getOwnProperty
63
63
  }
64
64
  }
65
65
  return n;
66
- } }, gi = (t, e) => !ln(t, e), Pi = { attribute: !0, type: String, converter: jt, reflect: !1, useDefault: !1, hasChanged: gi };
67
- Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), Mt.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
66
+ } }, gi = (t, e) => !ln(t, e), Pi = { attribute: !0, type: String, converter: $t, reflect: !1, useDefault: !1, hasChanged: gi };
67
+ Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), Rt.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
68
68
  let et = class extends HTMLElement {
69
69
  static addInitializer(e) {
70
70
  this._$Ei(), (this.l ??= []).push(e);
@@ -162,14 +162,14 @@ let et = class extends HTMLElement {
162
162
  _$ET(e, n) {
163
163
  const i = this.constructor.elementProperties.get(e), o = this.constructor._$Eu(e, i);
164
164
  if (o !== void 0 && i.reflect === !0) {
165
- const a = (i.converter?.toAttribute !== void 0 ? i.converter : jt).toAttribute(n, i.type);
165
+ const a = (i.converter?.toAttribute !== void 0 ? i.converter : $t).toAttribute(n, i.type);
166
166
  this._$Em = e, a == null ? this.removeAttribute(o) : this.setAttribute(o, a), this._$Em = null;
167
167
  }
168
168
  }
169
169
  _$AK(e, n) {
170
170
  const i = this.constructor, o = i._$Eh.get(e);
171
171
  if (o !== void 0 && this._$Em !== o) {
172
- const a = i.getPropertyOptions(o), s = typeof a.converter == "function" ? { fromAttribute: a.converter } : a.converter?.fromAttribute !== void 0 ? a.converter : jt;
172
+ const a = i.getPropertyOptions(o), s = typeof a.converter == "function" ? { fromAttribute: a.converter } : a.converter?.fromAttribute !== void 0 ? a.converter : $t;
173
173
  this._$Em = o;
174
174
  const r = s.fromAttribute(n, a.type);
175
175
  this[o] = r ?? this._$Ej?.get(o) ?? r, this._$Em = null;
@@ -246,13 +246,13 @@ let et = class extends HTMLElement {
246
246
  firstUpdated(e) {
247
247
  }
248
248
  };
249
- et.elementStyles = [], et.shadowRootOptions = { mode: "open" }, et[ut("elementProperties")] = /* @__PURE__ */ new Map(), et[ut("finalized")] = /* @__PURE__ */ new Map(), mn?.({ ReactiveElement: et }), (Mt.reactiveElementVersions ??= []).push("2.1.2");
250
- const yi = globalThis, Ci = (t) => t, Pt = yi.trustedTypes, xi = Pt ? Pt.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Ti = "$lit$", Xe = `lit$${Math.random().toFixed(9).slice(2)}$`, zi = "?" + Xe, wn = `<${zi}>`, Te = document, ht = () => Te.createComment(""), ft = (t) => t === null || typeof t != "object" && typeof t != "function", mi = Array.isArray, bn = (t) => mi(t) || typeof t?.[Symbol.iterator] == "function", Vt = `[
251
- \f\r]`, ct = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ui = /-->/g, Mi = />/g, Je = RegExp(`>|${Vt}(?:([^\\s"'>=/]+)(${Vt}*=${Vt}*(?:[^
252
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Ri = /'/g, Ei = /"/g, Oi = /^(?:script|style|textarea|title)$/i, Fi = (t) => (e, ...n) => ({ _$litType$: t, strings: e, values: n }), b = Fi(1), G = Fi(2), it = /* @__PURE__ */ Symbol.for("lit-noChange"), M = /* @__PURE__ */ Symbol.for("lit-nothing"), qi = /* @__PURE__ */ new WeakMap(), Ze = Te.createTreeWalker(Te, 129);
249
+ et.elementStyles = [], et.shadowRootOptions = { mode: "open" }, et[ut("elementProperties")] = /* @__PURE__ */ new Map(), et[ut("finalized")] = /* @__PURE__ */ new Map(), mn?.({ ReactiveElement: et }), (Rt.reactiveElementVersions ??= []).push("2.1.2");
250
+ const yi = globalThis, xi = (t) => t, jt = yi.trustedTypes, Ci = jt ? jt.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, Ti = "$lit$", Xe = `lit$${Math.random().toFixed(9).slice(2)}$`, zi = "?" + Xe, bn = `<${zi}>`, Te = document, pt = () => Te.createComment(""), ht = (t) => t === null || typeof t != "object" && typeof t != "function", mi = Array.isArray, wn = (t) => mi(t) || typeof t?.[Symbol.iterator] == "function", Wt = `[
251
+ \f\r]`, ct = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Ui = /-->/g, Mi = />/g, Je = RegExp(`>|${Wt}(?:([^\\s"'>=/]+)(${Wt}*=${Wt}*(?:[^
252
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Ri = /'/g, Ei = /"/g, Oi = /^(?:script|style|textarea|title)$/i, Fi = (t) => (e, ...n) => ({ _$litType$: t, strings: e, values: n }), w = Fi(1), G = Fi(2), it = /* @__PURE__ */ Symbol.for("lit-noChange"), C = /* @__PURE__ */ Symbol.for("lit-nothing"), qi = /* @__PURE__ */ new WeakMap(), Ze = Te.createTreeWalker(Te, 129);
253
253
  function en(t, e) {
254
254
  if (!mi(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
255
- return xi !== void 0 ? xi.createHTML(e) : e;
255
+ return Ci !== void 0 ? Ci.createHTML(e) : e;
256
256
  }
257
257
  const vn = (t, e) => {
258
258
  const n = t.length - 1, i = [];
@@ -262,17 +262,17 @@ const vn = (t, e) => {
262
262
  let c, p, u = -1, m = 0;
263
263
  for (; m < d.length && (s.lastIndex = m, p = s.exec(d), p !== null); ) m = s.lastIndex, s === ct ? p[1] === "!--" ? s = Ui : p[1] !== void 0 ? s = Mi : p[2] !== void 0 ? (Oi.test(p[2]) && (o = RegExp("</" + p[2], "g")), s = Je) : p[3] !== void 0 && (s = Je) : s === Je ? p[0] === ">" ? (s = o ?? ct, u = -1) : p[1] === void 0 ? u = -2 : (u = s.lastIndex - p[2].length, c = p[1], s = p[3] === void 0 ? Je : p[3] === '"' ? Ei : Ri) : s === Ei || s === Ri ? s = Je : s === Ui || s === Mi ? s = ct : (s = Je, o = void 0);
264
264
  const $ = s === Je && t[r + 1].startsWith("/>") ? " " : "";
265
- a += s === ct ? d + wn : u >= 0 ? (i.push(c), d.slice(0, u) + Ti + d.slice(u) + Xe + $) : d + Xe + (u === -2 ? r : $);
265
+ a += s === ct ? d + bn : u >= 0 ? (i.push(c), d.slice(0, u) + Ti + d.slice(u) + Xe + $) : d + Xe + (u === -2 ? r : $);
266
266
  }
267
267
  return [en(t, a + (t[n] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
268
268
  };
269
- class gt {
269
+ class ft {
270
270
  constructor({ strings: e, _$litType$: n }, i) {
271
271
  let o;
272
272
  this.parts = [];
273
273
  let a = 0, s = 0;
274
274
  const r = e.length - 1, d = this.parts, [c, p] = vn(e, n);
275
- if (this.el = gt.createElement(c, i), Ze.currentNode = this.el.content, n === 2 || n === 3) {
275
+ if (this.el = ft.createElement(c, i), Ze.currentNode = this.el.content, n === 2 || n === 3) {
276
276
  const u = this.el.content.firstChild;
277
277
  u.replaceWith(...u.childNodes);
278
278
  }
@@ -280,14 +280,14 @@ class gt {
280
280
  if (o.nodeType === 1) {
281
281
  if (o.hasAttributes()) for (const u of o.getAttributeNames()) if (u.endsWith(Ti)) {
282
282
  const m = p[s++], $ = o.getAttribute(u).split(Xe), E = /([.?@])?(.*)/.exec(m);
283
- d.push({ type: 1, index: a, name: E[2], strings: $, ctor: E[1] === "." ? An : E[1] === "?" ? kn : E[1] === "@" ? Sn : Rt }), o.removeAttribute(u);
283
+ d.push({ type: 1, index: a, name: E[2], strings: $, ctor: E[1] === "." ? An : E[1] === "?" ? kn : E[1] === "@" ? Sn : Et }), o.removeAttribute(u);
284
284
  } else u.startsWith(Xe) && (d.push({ type: 6, index: a }), o.removeAttribute(u));
285
285
  if (Oi.test(o.tagName)) {
286
286
  const u = o.textContent.split(Xe), m = u.length - 1;
287
287
  if (m > 0) {
288
- o.textContent = Pt ? Pt.emptyScript : "";
289
- for (let $ = 0; $ < m; $++) o.append(u[$], ht()), Ze.nextNode(), d.push({ type: 2, index: ++a });
290
- o.append(u[m], ht());
288
+ o.textContent = jt ? jt.emptyScript : "";
289
+ for (let $ = 0; $ < m; $++) o.append(u[$], pt()), Ze.nextNode(), d.push({ type: 2, index: ++a });
290
+ o.append(u[m], pt());
291
291
  }
292
292
  }
293
293
  } else if (o.nodeType === 8) if (o.data === zi) d.push({ type: 2, index: a });
@@ -306,7 +306,7 @@ class gt {
306
306
  function nt(t, e, n = t, i) {
307
307
  if (e === it) return e;
308
308
  let o = i !== void 0 ? n._$Co?.[i] : n._$Cl;
309
- const a = ft(e) ? void 0 : e._$litDirective$;
309
+ const a = ht(e) ? void 0 : e._$litDirective$;
310
310
  return o?.constructor !== a && (o?._$AO?.(!1), a === void 0 ? o = void 0 : (o = new a(t), o._$AT(t, n, i)), i !== void 0 ? (n._$Co ??= [])[i] = o : n._$Cl = o), o !== void 0 && (e = nt(t, o._$AS(t, e.values), o, i)), e;
311
311
  }
312
312
  class In {
@@ -342,7 +342,7 @@ class bt {
342
342
  return this._$AM?._$AU ?? this._$Cv;
343
343
  }
344
344
  constructor(e, n, i, o) {
345
- this.type = 2, this._$AH = M, this._$AN = void 0, this._$AA = e, this._$AB = n, this._$AM = i, this.options = o, this._$Cv = o?.isConnected ?? !0;
345
+ this.type = 2, this._$AH = C, this._$AN = void 0, this._$AA = e, this._$AB = n, this._$AM = i, this.options = o, this._$Cv = o?.isConnected ?? !0;
346
346
  }
347
347
  get parentNode() {
348
348
  let e = this._$AA.parentNode;
@@ -356,7 +356,7 @@ class bt {
356
356
  return this._$AB;
357
357
  }
358
358
  _$AI(e, n = this) {
359
- e = nt(this, e, n), ft(e) ? e === M || e == null || e === "" ? (this._$AH !== M && this._$AR(), this._$AH = M) : e !== this._$AH && e !== it && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : bn(e) ? this.k(e) : this._(e);
359
+ e = nt(this, e, n), ht(e) ? e === C || e == null || e === "" ? (this._$AH !== C && this._$AR(), this._$AH = C) : e !== this._$AH && e !== it && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : wn(e) ? this.k(e) : this._(e);
360
360
  }
361
361
  O(e) {
362
362
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -365,10 +365,10 @@ class bt {
365
365
  this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
366
366
  }
367
367
  _(e) {
368
- this._$AH !== M && ft(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Te.createTextNode(e)), this._$AH = e;
368
+ this._$AH !== C && ht(this._$AH) ? this._$AA.nextSibling.data = e : this.T(Te.createTextNode(e)), this._$AH = e;
369
369
  }
370
370
  $(e) {
371
- const { values: n, _$litType$: i } = e, o = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = gt.createElement(en(i.h, i.h[0]), this.options)), i);
371
+ const { values: n, _$litType$: i } = e, o = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = ft.createElement(en(i.h, i.h[0]), this.options)), i);
372
372
  if (this._$AH?._$AD === o) this._$AH.p(n);
373
373
  else {
374
374
  const a = new In(o, this), s = a.u(this.options);
@@ -377,26 +377,26 @@ class bt {
377
377
  }
378
378
  _$AC(e) {
379
379
  let n = qi.get(e.strings);
380
- return n === void 0 && qi.set(e.strings, n = new gt(e)), n;
380
+ return n === void 0 && qi.set(e.strings, n = new ft(e)), n;
381
381
  }
382
382
  k(e) {
383
383
  mi(this._$AH) || (this._$AH = [], this._$AR());
384
384
  const n = this._$AH;
385
385
  let i, o = 0;
386
- for (const a of e) o === n.length ? n.push(i = new bt(this.O(ht()), this.O(ht()), this, this.options)) : i = n[o], i._$AI(a), o++;
386
+ for (const a of e) o === n.length ? n.push(i = new bt(this.O(pt()), this.O(pt()), this, this.options)) : i = n[o], i._$AI(a), o++;
387
387
  o < n.length && (this._$AR(i && i._$AB.nextSibling, o), n.length = o);
388
388
  }
389
389
  _$AR(e = this._$AA.nextSibling, n) {
390
390
  for (this._$AP?.(!1, !0, n); e !== this._$AB; ) {
391
- const i = Ci(e).nextSibling;
392
- Ci(e).remove(), e = i;
391
+ const i = xi(e).nextSibling;
392
+ xi(e).remove(), e = i;
393
393
  }
394
394
  }
395
395
  setConnected(e) {
396
396
  this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
397
397
  }
398
398
  }
399
- class Rt {
399
+ class Et {
400
400
  get tagName() {
401
401
  return this.element.tagName;
402
402
  }
@@ -404,46 +404,46 @@ class Rt {
404
404
  return this._$AM._$AU;
405
405
  }
406
406
  constructor(e, n, i, o, a) {
407
- this.type = 1, this._$AH = M, this._$AN = void 0, this.element = e, this.name = n, this._$AM = o, this.options = a, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = M;
407
+ this.type = 1, this._$AH = C, this._$AN = void 0, this.element = e, this.name = n, this._$AM = o, this.options = a, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = C;
408
408
  }
409
409
  _$AI(e, n = this, i, o) {
410
410
  const a = this.strings;
411
411
  let s = !1;
412
- if (a === void 0) e = nt(this, e, n, 0), s = !ft(e) || e !== this._$AH && e !== it, s && (this._$AH = e);
412
+ if (a === void 0) e = nt(this, e, n, 0), s = !ht(e) || e !== this._$AH && e !== it, s && (this._$AH = e);
413
413
  else {
414
414
  const r = e;
415
415
  let d, c;
416
- for (e = a[0], d = 0; d < a.length - 1; d++) c = nt(this, r[i + d], n, d), c === it && (c = this._$AH[d]), s ||= !ft(c) || c !== this._$AH[d], c === M ? e = M : e !== M && (e += (c ?? "") + a[d + 1]), this._$AH[d] = c;
416
+ for (e = a[0], d = 0; d < a.length - 1; d++) c = nt(this, r[i + d], n, d), c === it && (c = this._$AH[d]), s ||= !ht(c) || c !== this._$AH[d], c === C ? e = C : e !== C && (e += (c ?? "") + a[d + 1]), this._$AH[d] = c;
417
417
  }
418
418
  s && !o && this.j(e);
419
419
  }
420
420
  j(e) {
421
- e === M ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
421
+ e === C ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
422
422
  }
423
423
  }
424
- class An extends Rt {
424
+ class An extends Et {
425
425
  constructor() {
426
426
  super(...arguments), this.type = 3;
427
427
  }
428
428
  j(e) {
429
- this.element[this.name] = e === M ? void 0 : e;
429
+ this.element[this.name] = e === C ? void 0 : e;
430
430
  }
431
431
  }
432
- class kn extends Rt {
432
+ class kn extends Et {
433
433
  constructor() {
434
434
  super(...arguments), this.type = 4;
435
435
  }
436
436
  j(e) {
437
- this.element.toggleAttribute(this.name, !!e && e !== M);
437
+ this.element.toggleAttribute(this.name, !!e && e !== C);
438
438
  }
439
439
  }
440
- class Sn extends Rt {
440
+ class Sn extends Et {
441
441
  constructor(e, n, i, o, a) {
442
442
  super(e, n, i, o, a), this.type = 5;
443
443
  }
444
444
  _$AI(e, n = this) {
445
- if ((e = nt(this, e, n, 0) ?? M) === it) return;
446
- const i = this._$AH, o = e === M && i !== M || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, a = e !== M && (i === M || o);
445
+ if ((e = nt(this, e, n, 0) ?? C) === it) return;
446
+ const i = this._$AH, o = e === C && i !== C || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, a = e !== C && (i === C || o);
447
447
  o && this.element.removeEventListener(this.name, this, i), a && this.element.addEventListener(this.name, this, e), this._$AH = e;
448
448
  }
449
449
  handleEvent(e) {
@@ -462,17 +462,17 @@ class $n {
462
462
  }
463
463
  }
464
464
  const jn = yi.litHtmlPolyfillSupport;
465
- jn?.(gt, bt), (yi.litHtmlVersions ??= []).push("3.3.3");
465
+ jn?.(ft, bt), (yi.litHtmlVersions ??= []).push("3.3.3");
466
466
  const Pn = (t, e, n) => {
467
467
  const i = n?.renderBefore ?? e;
468
468
  let o = i._$litPart$;
469
469
  if (o === void 0) {
470
470
  const a = n?.renderBefore ?? null;
471
- i._$litPart$ = o = new bt(e.insertBefore(ht(), a), a, void 0, n ?? {});
471
+ i._$litPart$ = o = new bt(e.insertBefore(pt(), a), a, void 0, n ?? {});
472
472
  }
473
473
  return o._$AI(t), o;
474
474
  };
475
- const wi = globalThis;
475
+ const bi = globalThis;
476
476
  class Qe extends et {
477
477
  constructor() {
478
478
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
@@ -495,16 +495,16 @@ class Qe extends et {
495
495
  return it;
496
496
  }
497
497
  }
498
- Qe._$litElement$ = !0, Qe.finalized = !0, wi.litElementHydrateSupport?.({ LitElement: Qe });
499
- const Cn = wi.litElementPolyfillSupport;
500
- Cn?.({ LitElement: Qe });
501
- (wi.litElementVersions ??= []).push("4.2.2");
498
+ Qe._$litElement$ = !0, Qe.finalized = !0, bi.litElementHydrateSupport?.({ LitElement: Qe });
499
+ const xn = bi.litElementPolyfillSupport;
500
+ xn?.({ LitElement: Qe });
501
+ (bi.litElementVersions ??= []).push("4.2.2");
502
502
  const ze = (t) => (e, n) => {
503
503
  n !== void 0 ? n.addInitializer(() => {
504
504
  customElements.define(t, e);
505
505
  }) : customElements.define(t, e);
506
506
  };
507
- const xn = { attribute: !0, type: String, converter: jt, reflect: !1, hasChanged: gi }, Un = (t = xn, e, n) => {
507
+ const Cn = { attribute: !0, type: String, converter: $t, reflect: !1, hasChanged: gi }, Un = (t = Cn, e, n) => {
508
508
  const { kind: i, metadata: o } = n;
509
509
  let a = globalThis.litPropertyMetadata.get(o);
510
510
  if (a === void 0 && globalThis.litPropertyMetadata.set(o, a = /* @__PURE__ */ new Map()), i === "setter" && ((t = Object.create(t)).wrapped = !0), a.set(n.name, t), i === "accessor") {
@@ -535,7 +535,7 @@ function V(t) {
535
535
  return ee({ ...t, state: !0, attribute: !1 });
536
536
  }
537
537
  const Mn = (t, e, n) => (n.configurable = !0, n.enumerable = !0, Reflect.decorate && typeof e != "object" && Object.defineProperty(t, e, n), n);
538
- function bi(t, e) {
538
+ function wi(t, e) {
539
539
  return (n, i, o) => {
540
540
  const a = (s) => s.renderRoot?.querySelector(t) ?? null;
541
541
  return Mn(n, i, { get() {
@@ -546,13 +546,13 @@ function bi(t, e) {
546
546
  function Rn(t) {
547
547
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
548
548
  }
549
- var dt = { exports: {} }, Wt = { exports: {} }, St = { exports: {} }, En = St.exports, _i;
549
+ var dt = { exports: {} }, Gt = { exports: {} }, kt = { exports: {} }, En = kt.exports, _i;
550
550
  function tn() {
551
551
  return _i || (_i = 1, (function(t) {
552
552
  (function(e) {
553
553
  var n, i = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, o = Math.ceil, a = Math.floor, s = "[BigNumber Error] ", r = s + "Number primitive has more than 15 significant digits: ", d = 1e14, c = 14, p = 9007199254740991, u = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], m = 1e7, $ = 1e9;
554
554
  function E(H) {
555
- var L, te, X, U = x.prototype = { constructor: x, toString: null, valueOf: null }, Y = new x(1), Q = 20, ie = 4, ce = -7, de = 21, Ue = -1e7, Ae = 1e7, _e = !1, st = 1, Be = 0, Lt = {
555
+ var L, te, X, M = U.prototype = { constructor: U, toString: null, valueOf: null }, Y = new U(1), Q = 20, ie = 4, ce = -7, de = 21, Ue = -1e7, ke = 1e7, _e = !1, st = 1, Be = 0, Nt = {
556
556
  prefix: "",
557
557
  groupSize: 3,
558
558
  secondaryGroupSize: 0,
@@ -562,19 +562,19 @@ function tn() {
562
562
  fractionGroupSeparator: " ",
563
563
  // non-breaking space
564
564
  suffix: ""
565
- }, Ye = "0123456789abcdefghijklmnopqrstuvwxyz", Nt = !0;
566
- function x(l, f) {
567
- var g, k, w, I, j, y, v, S, A = this;
568
- if (!(A instanceof x)) return new x(l, f);
565
+ }, Ye = "0123456789abcdefghijklmnopqrstuvwxyz", Ht = !0;
566
+ function U(l, f) {
567
+ var g, k, b, I, j, y, v, S, A = this;
568
+ if (!(A instanceof U)) return new U(l, f);
569
569
  if (f == null) {
570
570
  if (l && l._isBigNumber === !0) {
571
- A.s = l.s, !l.c || l.e > Ae ? A.c = A.e = null : l.e < Ue ? A.c = [A.e = 0] : (A.e = l.e, A.c = l.c.slice());
571
+ A.s = l.s, !l.c || l.e > ke ? A.c = A.e = null : l.e < Ue ? A.c = [A.e = 0] : (A.e = l.e, A.c = l.c.slice());
572
572
  return;
573
573
  }
574
574
  if ((y = typeof l == "number") && l * 0 == 0) {
575
575
  if (A.s = 1 / l < 0 ? (l = -l, -1) : 1, l === ~~l) {
576
576
  for (I = 0, j = l; j >= 10; j /= 10, I++) ;
577
- I > Ae ? A.c = A.e = null : (A.e = I, A.c = [l]);
577
+ I > ke ? A.c = A.e = null : (A.e = I, A.c = [l]);
578
578
  return;
579
579
  }
580
580
  S = String(l);
@@ -584,11 +584,11 @@ function tn() {
584
584
  }
585
585
  (I = S.indexOf(".")) > -1 && (S = S.replace(".", "")), (j = S.search(/e/i)) > 0 ? (I < 0 && (I = j), I += +S.slice(j + 1), S = S.substring(0, j)) : I < 0 && (I = S.length);
586
586
  } else {
587
- if (q(f, 2, Ye.length, "Base"), f == 10 && Nt)
588
- return A = new x(l), Se(A, Q + A.e + 1, ie);
587
+ if (_(f, 2, Ye.length, "Base"), f == 10 && Ht)
588
+ return A = new U(l), Se(A, Q + A.e + 1, ie);
589
589
  if (S = String(l), y = typeof l == "number") {
590
590
  if (l * 0 != 0) return X(A, S, y, f);
591
- if (A.s = 1 / l < 0 ? (S = S.slice(1), -1) : 1, x.DEBUG && S.replace(/^0\.0*|\./, "").length > 15)
591
+ if (A.s = 1 / l < 0 ? (S = S.slice(1), -1) : 1, U.DEBUG && S.replace(/^0\.0*|\./, "").length > 15)
592
592
  throw Error(r + l);
593
593
  } else
594
594
  A.s = S.charCodeAt(0) === 45 ? (S = S.slice(1), -1) : 1;
@@ -599,8 +599,8 @@ function tn() {
599
599
  I = v;
600
600
  continue;
601
601
  }
602
- } else if (!w && (S == S.toUpperCase() && (S = S.toLowerCase()) || S == S.toLowerCase() && (S = S.toUpperCase()))) {
603
- w = !0, j = -1, I = 0;
602
+ } else if (!b && (S == S.toUpperCase() && (S = S.toLowerCase()) || S == S.toLowerCase() && (S = S.toUpperCase()))) {
603
+ b = !0, j = -1, I = 0;
604
604
  continue;
605
605
  }
606
606
  return X(A, String(l), y, f);
@@ -610,9 +610,9 @@ function tn() {
610
610
  for (j = 0; S.charCodeAt(j) === 48; j++) ;
611
611
  for (v = S.length; S.charCodeAt(--v) === 48; ) ;
612
612
  if (S = S.slice(j, ++v)) {
613
- if (v -= j, y && x.DEBUG && v > 15 && (l > p || l !== a(l)))
613
+ if (v -= j, y && U.DEBUG && v > 15 && (l > p || l !== a(l)))
614
614
  throw Error(r + A.s * l);
615
- if ((I = I - j - 1) > Ae)
615
+ if ((I = I - j - 1) > ke)
616
616
  A.c = A.e = null;
617
617
  else if (I < Ue)
618
618
  A.c = [A.e = 0];
@@ -629,15 +629,15 @@ function tn() {
629
629
  } else
630
630
  A.c = [A.e = 0];
631
631
  }
632
- x.clone = E, x.ROUND_UP = 0, x.ROUND_DOWN = 1, x.ROUND_CEIL = 2, x.ROUND_FLOOR = 3, x.ROUND_HALF_UP = 4, x.ROUND_HALF_DOWN = 5, x.ROUND_HALF_EVEN = 6, x.ROUND_HALF_CEIL = 7, x.ROUND_HALF_FLOOR = 8, x.EUCLID = 9, x.config = x.set = function(l) {
632
+ U.clone = E, U.ROUND_UP = 0, U.ROUND_DOWN = 1, U.ROUND_CEIL = 2, U.ROUND_FLOOR = 3, U.ROUND_HALF_UP = 4, U.ROUND_HALF_DOWN = 5, U.ROUND_HALF_EVEN = 6, U.ROUND_HALF_CEIL = 7, U.ROUND_HALF_FLOOR = 8, U.EUCLID = 9, U.config = U.set = function(l) {
633
633
  var f, g;
634
634
  if (l != null)
635
635
  if (typeof l == "object") {
636
- if (l.hasOwnProperty(f = "DECIMAL_PLACES") && (g = l[f], q(g, 0, $, f), Q = g), l.hasOwnProperty(f = "ROUNDING_MODE") && (g = l[f], q(g, 0, 8, f), ie = g), l.hasOwnProperty(f = "EXPONENTIAL_AT") && (g = l[f], g && g.pop ? (q(g[0], -$, 0, f), q(g[1], 0, $, f), ce = g[0], de = g[1]) : (q(g, -$, $, f), ce = -(de = g < 0 ? -g : g))), l.hasOwnProperty(f = "RANGE"))
636
+ if (l.hasOwnProperty(f = "DECIMAL_PLACES") && (g = l[f], _(g, 0, $, f), Q = g), l.hasOwnProperty(f = "ROUNDING_MODE") && (g = l[f], _(g, 0, 8, f), ie = g), l.hasOwnProperty(f = "EXPONENTIAL_AT") && (g = l[f], g && g.pop ? (_(g[0], -$, 0, f), _(g[1], 0, $, f), ce = g[0], de = g[1]) : (_(g, -$, $, f), ce = -(de = g < 0 ? -g : g))), l.hasOwnProperty(f = "RANGE"))
637
637
  if (g = l[f], g && g.pop)
638
- q(g[0], -$, -1, f), q(g[1], 1, $, f), Ue = g[0], Ae = g[1];
639
- else if (q(g, -$, $, f), g)
640
- Ue = -(Ae = g < 0 ? -g : g);
638
+ _(g[0], -$, -1, f), _(g[1], 1, $, f), Ue = g[0], ke = g[1];
639
+ else if (_(g, -$, $, f), g)
640
+ Ue = -(ke = g < 0 ? -g : g);
641
641
  else
642
642
  throw Error(s + f + " cannot be zero: " + g);
643
643
  if (l.hasOwnProperty(f = "CRYPTO"))
@@ -651,12 +651,12 @@ function tn() {
651
651
  _e = g;
652
652
  else
653
653
  throw Error(s + f + " not true or false: " + g);
654
- if (l.hasOwnProperty(f = "MODULO_MODE") && (g = l[f], q(g, 0, 9, f), st = g), l.hasOwnProperty(f = "POW_PRECISION") && (g = l[f], q(g, 0, $, f), Be = g), l.hasOwnProperty(f = "FORMAT"))
655
- if (g = l[f], typeof g == "object") Lt = g;
654
+ if (l.hasOwnProperty(f = "MODULO_MODE") && (g = l[f], _(g, 0, 9, f), st = g), l.hasOwnProperty(f = "POW_PRECISION") && (g = l[f], _(g, 0, $, f), Be = g), l.hasOwnProperty(f = "FORMAT"))
655
+ if (g = l[f], typeof g == "object") Nt = g;
656
656
  else throw Error(s + f + " not an object: " + g);
657
657
  if (l.hasOwnProperty(f = "ALPHABET"))
658
658
  if (g = l[f], typeof g == "string" && !/^.?$|[+\-.\s]|(.).*\1/.test(g))
659
- Nt = g.slice(0, 10) == "0123456789", Ye = g;
659
+ Ht = g.slice(0, 10) == "0123456789", Ye = g;
660
660
  else
661
661
  throw Error(s + f + " invalid: " + g);
662
662
  } else
@@ -665,48 +665,48 @@ function tn() {
665
665
  DECIMAL_PLACES: Q,
666
666
  ROUNDING_MODE: ie,
667
667
  EXPONENTIAL_AT: [ce, de],
668
- RANGE: [Ue, Ae],
668
+ RANGE: [Ue, ke],
669
669
  CRYPTO: _e,
670
670
  MODULO_MODE: st,
671
671
  POW_PRECISION: Be,
672
- FORMAT: Lt,
672
+ FORMAT: Nt,
673
673
  ALPHABET: Ye
674
674
  };
675
- }, x.isBigNumber = function(l) {
675
+ }, U.isBigNumber = function(l) {
676
676
  if (!l || l._isBigNumber !== !0) return !1;
677
- if (!x.DEBUG) return !0;
678
- var f, g, k = l.c, w = l.e, I = l.s;
677
+ if (!U.DEBUG) return !0;
678
+ var f, g, k = l.c, b = l.e, I = l.s;
679
679
  e: if ({}.toString.call(k) == "[object Array]") {
680
- if ((I === 1 || I === -1) && w >= -$ && w <= $ && w === a(w)) {
680
+ if ((I === 1 || I === -1) && b >= -$ && b <= $ && b === a(b)) {
681
681
  if (k[0] === 0) {
682
- if (w === 0 && k.length === 1) return !0;
682
+ if (b === 0 && k.length === 1) return !0;
683
683
  break e;
684
684
  }
685
- if (f = (w + 1) % c, f < 1 && (f += c), String(k[0]).length == f) {
685
+ if (f = (b + 1) % c, f < 1 && (f += c), String(k[0]).length == f) {
686
686
  for (f = 0; f < k.length; f++)
687
687
  if (g = k[f], g < 0 || g >= d || g !== a(g)) break e;
688
688
  if (g !== 0) return !0;
689
689
  }
690
690
  }
691
- } else if (k === null && w === null && (I === null || I === 1 || I === -1))
691
+ } else if (k === null && b === null && (I === null || I === 1 || I === -1))
692
692
  return !0;
693
693
  throw Error(s + "Invalid BigNumber: " + l);
694
- }, x.maximum = x.max = function() {
694
+ }, U.maximum = U.max = function() {
695
695
  return ki(arguments, -1);
696
- }, x.minimum = x.min = function() {
696
+ }, U.minimum = U.min = function() {
697
697
  return ki(arguments, 1);
698
- }, x.random = (function() {
698
+ }, U.random = (function() {
699
699
  var l = 9007199254740992, f = Math.random() * l & 2097151 ? function() {
700
700
  return a(Math.random() * l);
701
701
  } : function() {
702
702
  return (Math.random() * 1073741824 | 0) * 8388608 + (Math.random() * 8388608 | 0);
703
703
  };
704
704
  return function(g) {
705
- var k, w, I, j, y, v = 0, S = [], A = new x(Y);
706
- if (g == null ? g = Q : q(g, 0, $), j = o(g / c), _e)
705
+ var k, b, I, j, y, v = 0, S = [], A = new U(Y);
706
+ if (g == null ? g = Q : _(g, 0, $), j = o(g / c), _e)
707
707
  if (crypto.getRandomValues) {
708
708
  for (k = crypto.getRandomValues(new Uint32Array(j *= 2)); v < j; )
709
- y = k[v] * 131072 + (k[v + 1] >>> 11), y >= 9e15 ? (w = crypto.getRandomValues(new Uint32Array(2)), k[v] = w[0], k[v + 1] = w[1]) : (S.push(y % 1e14), v += 2);
709
+ y = k[v] * 131072 + (k[v + 1] >>> 11), y >= 9e15 ? (b = crypto.getRandomValues(new Uint32Array(2)), k[v] = b[0], k[v + 1] = b[1]) : (S.push(y % 1e14), v += 2);
710
710
  v = j / 2;
711
711
  } else if (crypto.randomBytes) {
712
712
  for (k = crypto.randomBytes(j *= 7); v < j; )
@@ -727,33 +727,33 @@ function tn() {
727
727
  }
728
728
  return A.e = I, A.c = S, A;
729
729
  };
730
- })(), x.sum = function() {
731
- for (var l = 1, f = arguments, g = new x(f[0]); l < f.length; ) g = g.plus(f[l++]);
730
+ })(), U.sum = function() {
731
+ for (var l = 1, f = arguments, g = new U(f[0]); l < f.length; ) g = g.plus(f[l++]);
732
732
  return g;
733
733
  }, te = /* @__PURE__ */ (function() {
734
734
  var l = "0123456789";
735
- function f(g, k, w, I) {
735
+ function f(g, k, b, I) {
736
736
  for (var j, y = [0], v, S = 0, A = g.length; S < A; ) {
737
737
  for (v = y.length; v--; y[v] *= k) ;
738
738
  for (y[0] += I.indexOf(g.charAt(S++)), j = 0; j < y.length; j++)
739
- y[j] > w - 1 && (y[j + 1] == null && (y[j + 1] = 0), y[j + 1] += y[j] / w | 0, y[j] %= w);
739
+ y[j] > b - 1 && (y[j + 1] == null && (y[j + 1] = 0), y[j + 1] += y[j] / b | 0, y[j] %= b);
740
740
  }
741
741
  return y.reverse();
742
742
  }
743
- return function(g, k, w, I, j) {
744
- var y, v, S, A, C, D, B, ne, le = g.indexOf("."), he = Q, F = ie;
745
- for (le >= 0 && (A = Be, Be = 0, g = g.replace(".", ""), ne = new x(k), D = ne.pow(g.length - le), Be = A, ne.c = f(
743
+ return function(g, k, b, I, j) {
744
+ var y, v, S, A, x, D, B, ne, le = g.indexOf("."), he = Q, F = ie;
745
+ for (le >= 0 && (A = Be, Be = 0, g = g.replace(".", ""), ne = new U(k), D = ne.pow(g.length - le), Be = A, ne.c = f(
746
746
  ae(W(D.c), D.e, "0"),
747
747
  10,
748
- w,
748
+ b,
749
749
  l
750
- ), ne.e = ne.c.length), B = f(g, k, w, j ? (y = Ye, l) : (y = l, Ye)), S = A = B.length; B[--A] == 0; B.pop()) ;
750
+ ), ne.e = ne.c.length), B = f(g, k, b, j ? (y = Ye, l) : (y = l, Ye)), S = A = B.length; B[--A] == 0; B.pop()) ;
751
751
  if (!B[0]) return y.charAt(0);
752
- if (le < 0 ? --S : (D.c = B, D.e = S, D.s = I, D = L(D, ne, he, F, w), B = D.c, C = D.r, S = D.e), v = S + he + 1, le = B[v], A = w / 2, C = C || v < 0 || B[v + 1] != null, C = F < 4 ? (le != null || C) && (F == 0 || F == (D.s < 0 ? 3 : 2)) : le > A || le == A && (F == 4 || C || F == 6 && B[v - 1] & 1 || F == (D.s < 0 ? 8 : 7)), v < 1 || !B[0])
753
- g = C ? ae(y.charAt(1), -he, y.charAt(0)) : y.charAt(0);
752
+ if (le < 0 ? --S : (D.c = B, D.e = S, D.s = I, D = L(D, ne, he, F, b), B = D.c, x = D.r, S = D.e), v = S + he + 1, le = B[v], A = b / 2, x = x || v < 0 || B[v + 1] != null, x = F < 4 ? (le != null || x) && (F == 0 || F == (D.s < 0 ? 3 : 2)) : le > A || le == A && (F == 4 || x || F == 6 && B[v - 1] & 1 || F == (D.s < 0 ? 8 : 7)), v < 1 || !B[0])
753
+ g = x ? ae(y.charAt(1), -he, y.charAt(0)) : y.charAt(0);
754
754
  else {
755
- if (B.length = v, C)
756
- for (--w; ++B[--v] > w; )
755
+ if (B.length = v, x)
756
+ for (--b; ++B[--v] > b; )
757
757
  B[v] = 0, v || (++S, B = [1].concat(B));
758
758
  for (A = B.length; !B[--A]; ) ;
759
759
  for (le = 0, g = ""; le <= A; g += y.charAt(B[le++])) ;
@@ -762,48 +762,48 @@ function tn() {
762
762
  return g;
763
763
  };
764
764
  })(), L = /* @__PURE__ */ (function() {
765
- function l(k, w, I) {
766
- var j, y, v, S, A = 0, C = k.length, D = w % m, B = w / m | 0;
767
- for (k = k.slice(); C--; )
768
- v = k[C] % m, S = k[C] / m | 0, j = B * v + S * D, y = D * v + j % m * m + A, A = (y / I | 0) + (j / m | 0) + B * S, k[C] = y % I;
765
+ function l(k, b, I) {
766
+ var j, y, v, S, A = 0, x = k.length, D = b % m, B = b / m | 0;
767
+ for (k = k.slice(); x--; )
768
+ v = k[x] % m, S = k[x] / m | 0, j = B * v + S * D, y = D * v + j % m * m + A, A = (y / I | 0) + (j / m | 0) + B * S, k[x] = y % I;
769
769
  return A && (k = [A].concat(k)), k;
770
770
  }
771
- function f(k, w, I, j) {
771
+ function f(k, b, I, j) {
772
772
  var y, v;
773
773
  if (I != j)
774
774
  v = I > j ? 1 : -1;
775
775
  else
776
776
  for (y = v = 0; y < I; y++)
777
- if (k[y] != w[y]) {
778
- v = k[y] > w[y] ? 1 : -1;
777
+ if (k[y] != b[y]) {
778
+ v = k[y] > b[y] ? 1 : -1;
779
779
  break;
780
780
  }
781
781
  return v;
782
782
  }
783
- function g(k, w, I, j) {
783
+ function g(k, b, I, j) {
784
784
  for (var y = 0; I--; )
785
- k[I] -= y, y = k[I] < w[I] ? 1 : 0, k[I] = y * j + k[I] - w[I];
785
+ k[I] -= y, y = k[I] < b[I] ? 1 : 0, k[I] = y * j + k[I] - b[I];
786
786
  for (; !k[0] && k.length > 1; k.splice(0, 1)) ;
787
787
  }
788
- return function(k, w, I, j, y) {
789
- var v, S, A, C, D, B, ne, le, he, F, re, me, vt, Bt, Xt, Me, rt, $e = k.s == w.s ? 1 : -1, be = k.c, ue = w.c;
790
- if (!be || !be[0] || !ue || !ue[0])
791
- return new x(
788
+ return function(k, b, I, j, y) {
789
+ var v, S, A, x, D, B, ne, le, he, F, re, me, wt, Xt, Vt, Me, rt, $e = k.s == b.s ? 1 : -1, ve = k.c, ue = b.c;
790
+ if (!ve || !ve[0] || !ue || !ue[0])
791
+ return new U(
792
792
  // Return NaN if either NaN, or both Infinity or 0.
793
- !k.s || !w.s || (be ? ue && be[0] == ue[0] : !ue) ? NaN : (
793
+ !k.s || !b.s || (ve ? ue && ve[0] == ue[0] : !ue) ? NaN : (
794
794
  // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.
795
- be && be[0] == 0 || !ue ? $e * 0 : $e / 0
795
+ ve && ve[0] == 0 || !ue ? $e * 0 : $e / 0
796
796
  )
797
797
  );
798
- for (le = new x($e), he = le.c = [], S = k.e - w.e, $e = I + S + 1, y || (y = d, S = Z(k.e / c) - Z(w.e / c), $e = $e / c | 0), A = 0; ue[A] == (be[A] || 0); A++) ;
799
- if (ue[A] > (be[A] || 0) && S--, $e < 0)
800
- he.push(1), C = !0;
798
+ for (le = new U($e), he = le.c = [], S = k.e - b.e, $e = I + S + 1, y || (y = d, S = Z(k.e / c) - Z(b.e / c), $e = $e / c | 0), A = 0; ue[A] == (ve[A] || 0); A++) ;
799
+ if (ue[A] > (ve[A] || 0) && S--, $e < 0)
800
+ he.push(1), x = !0;
801
801
  else {
802
- for (Bt = be.length, Me = ue.length, A = 0, $e += 2, D = a(y / (ue[0] + 1)), D > 1 && (ue = l(ue, D, y), be = l(be, D, y), Me = ue.length, Bt = be.length), vt = Me, F = be.slice(0, Me), re = F.length; re < Me; F[re++] = 0) ;
803
- rt = ue.slice(), rt = [0].concat(rt), Xt = ue[0], ue[1] >= y / 2 && Xt++;
802
+ for (Xt = ve.length, Me = ue.length, A = 0, $e += 2, D = a(y / (ue[0] + 1)), D > 1 && (ue = l(ue, D, y), ve = l(ve, D, y), Me = ue.length, Xt = ve.length), wt = Me, F = ve.slice(0, Me), re = F.length; re < Me; F[re++] = 0) ;
803
+ rt = ue.slice(), rt = [0].concat(rt), Vt = ue[0], ue[1] >= y / 2 && Vt++;
804
804
  do {
805
805
  if (D = 0, v = f(ue, F, Me, re), v < 0) {
806
- if (me = F[0], Me != re && (me = me * y + (F[1] || 0)), D = a(me / Xt), D > 1)
806
+ if (me = F[0], Me != re && (me = me * y + (F[1] || 0)), D = a(me / Vt), D > 1)
807
807
  for (D >= y && (D = y - 1), B = l(ue, D, y), ne = B.length, re = F.length; f(B, F, ne, re) == 1; )
808
808
  D--, g(B, Me < ne ? rt : ue, ne, y), ne = B.length, v = 1;
809
809
  else
@@ -812,54 +812,54 @@ function tn() {
812
812
  for (; f(ue, F, Me, re) < 1; )
813
813
  D++, g(F, Me < re ? rt : ue, re, y), re = F.length;
814
814
  } else v === 0 && (D++, F = [0]);
815
- he[A++] = D, F[0] ? F[re++] = be[vt] || 0 : (F = [be[vt]], re = 1);
816
- } while ((vt++ < Bt || F[0] != null) && $e--);
817
- C = F[0] != null, he[0] || he.splice(0, 1);
815
+ he[A++] = D, F[0] ? F[re++] = ve[wt] || 0 : (F = [ve[wt]], re = 1);
816
+ } while ((wt++ < Xt || F[0] != null) && $e--);
817
+ x = F[0] != null, he[0] || he.splice(0, 1);
818
818
  }
819
819
  if (y == d) {
820
820
  for (A = 1, $e = he[0]; $e >= 10; $e /= 10, A++) ;
821
- Se(le, I + (le.e = A + S * c - 1) + 1, j, C);
821
+ Se(le, I + (le.e = A + S * c - 1) + 1, j, x);
822
822
  } else
823
- le.e = S, le.r = +C;
823
+ le.e = S, le.r = +x;
824
824
  return le;
825
825
  };
826
826
  })();
827
- function Ht(l, f, g, k) {
828
- var w, I, j, y, v;
829
- if (g == null ? g = ie : q(g, 0, 8), !l.c) return l.toString();
830
- if (w = l.c[0], j = l.e, f == null)
827
+ function Dt(l, f, g, k) {
828
+ var b, I, j, y, v;
829
+ if (g == null ? g = ie : _(g, 0, 8), !l.c) return l.toString();
830
+ if (b = l.c[0], j = l.e, f == null)
831
831
  v = W(l.c), v = k == 1 || k == 2 && (j <= ce || j >= de) ? J(v, j) : ae(v, j, "0");
832
- else if (l = Se(new x(l), f, g), I = l.e, v = W(l.c), y = v.length, k == 1 || k == 2 && (f <= I || I <= ce)) {
832
+ else if (l = Se(new U(l), f, g), I = l.e, v = W(l.c), y = v.length, k == 1 || k == 2 && (f <= I || I <= ce)) {
833
833
  for (; y < f; v += "0", y++) ;
834
834
  v = J(v, I);
835
835
  } else if (f -= j + (k === 2 && I > j), v = ae(v, I, "0"), I + 1 > y) {
836
836
  if (--f > 0) for (v += "."; f--; v += "0") ;
837
837
  } else if (f += I - y, f > 0)
838
838
  for (I + 1 == y && (v += "."); f--; v += "0") ;
839
- return l.s < 0 && w ? "-" + v : v;
839
+ return l.s < 0 && b ? "-" + v : v;
840
840
  }
841
841
  function ki(l, f) {
842
- for (var g, k, w = 1, I = new x(l[0]); w < l.length; w++)
843
- k = new x(l[w]), (!k.s || (g = K(I, k)) === f || g === 0 && I.s === f) && (I = k);
842
+ for (var g, k, b = 1, I = new U(l[0]); b < l.length; b++)
843
+ k = new U(l[b]), (!k.s || (g = K(I, k)) === f || g === 0 && I.s === f) && (I = k);
844
844
  return I;
845
845
  }
846
- function Dt(l, f, g) {
847
- for (var k = 1, w = f.length; !f[--w]; f.pop()) ;
848
- for (w = f[0]; w >= 10; w /= 10, k++) ;
849
- return (g = k + g * c - 1) > Ae ? l.c = l.e = null : g < Ue ? l.c = [l.e = 0] : (l.e = g, l.c = f), l;
846
+ function Bt(l, f, g) {
847
+ for (var k = 1, b = f.length; !f[--b]; f.pop()) ;
848
+ for (b = f[0]; b >= 10; b /= 10, k++) ;
849
+ return (g = k + g * c - 1) > ke ? l.c = l.e = null : g < Ue ? l.c = [l.e = 0] : (l.e = g, l.c = f), l;
850
850
  }
851
851
  X = /* @__PURE__ */ (function() {
852
- var l = /^(-?)0([xbo])(?=\w[\w.]*$)/i, f = /^([^.]+)\.$/, g = /^\.([^.]+)$/, k = /^-?(Infinity|NaN)$/, w = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
852
+ var l = /^(-?)0([xbo])(?=\w[\w.]*$)/i, f = /^([^.]+)\.$/, g = /^\.([^.]+)$/, k = /^-?(Infinity|NaN)$/, b = /^\s*\+(?=[\w.])|^\s+|\s+$/g;
853
853
  return function(I, j, y, v) {
854
- var S, A = y ? j : j.replace(w, "");
854
+ var S, A = y ? j : j.replace(b, "");
855
855
  if (k.test(A))
856
856
  I.s = isNaN(A) ? null : A < 0 ? -1 : 1;
857
857
  else {
858
- if (!y && (A = A.replace(l, function(C, D, B) {
859
- return S = (B = B.toLowerCase()) == "x" ? 16 : B == "b" ? 2 : 8, !v || v == S ? D : C;
858
+ if (!y && (A = A.replace(l, function(x, D, B) {
859
+ return S = (B = B.toLowerCase()) == "x" ? 16 : B == "b" ? 2 : 8, !v || v == S ? D : x;
860
860
  }), v && (S = v, A = A.replace(f, "$1").replace(g, "0.$1")), j != A))
861
- return new x(A, S);
862
- if (x.DEBUG)
861
+ return new U(A, S);
862
+ if (U.DEBUG)
863
863
  throw Error(s + "Not a" + (v ? " base " + v : "") + " number: " + j);
864
864
  I.s = null;
865
865
  }
@@ -867,42 +867,42 @@ function tn() {
867
867
  };
868
868
  })();
869
869
  function Se(l, f, g, k) {
870
- var w, I, j, y, v, S, A, C = l.c, D = u;
871
- if (C) {
870
+ var b, I, j, y, v, S, A, x = l.c, D = u;
871
+ if (x) {
872
872
  e: {
873
- for (w = 1, y = C[0]; y >= 10; y /= 10, w++) ;
874
- if (I = f - w, I < 0)
875
- I += c, j = f, v = C[S = 0], A = a(v / D[w - j - 1] % 10);
876
- else if (S = o((I + 1) / c), S >= C.length)
873
+ for (b = 1, y = x[0]; y >= 10; y /= 10, b++) ;
874
+ if (I = f - b, I < 0)
875
+ I += c, j = f, v = x[S = 0], A = a(v / D[b - j - 1] % 10);
876
+ else if (S = o((I + 1) / c), S >= x.length)
877
877
  if (k) {
878
- for (; C.length <= S; C.push(0)) ;
879
- v = A = 0, w = 1, I %= c, j = I - c + 1;
878
+ for (; x.length <= S; x.push(0)) ;
879
+ v = A = 0, b = 1, I %= c, j = I - c + 1;
880
880
  } else
881
881
  break e;
882
882
  else {
883
- for (v = y = C[S], w = 1; y >= 10; y /= 10, w++) ;
884
- I %= c, j = I - c + w, A = j < 0 ? 0 : a(v / D[w - j - 1] % 10);
883
+ for (v = y = x[S], b = 1; y >= 10; y /= 10, b++) ;
884
+ I %= c, j = I - c + b, A = j < 0 ? 0 : a(v / D[b - j - 1] % 10);
885
885
  }
886
886
  if (k = k || f < 0 || // Are there any non-zero digits after the rounding digit?
887
887
  // The expression n % pows10[d - j - 1] returns all digits of n to the right
888
888
  // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.
889
- C[S + 1] != null || (j < 0 ? v : v % D[w - j - 1]), k = g < 4 ? (A || k) && (g == 0 || g == (l.s < 0 ? 3 : 2)) : A > 5 || A == 5 && (g == 4 || k || g == 6 && // Check whether the digit to the left of the rounding digit is odd.
890
- (I > 0 ? j > 0 ? v / D[w - j] : 0 : C[S - 1]) % 10 & 1 || g == (l.s < 0 ? 8 : 7)), f < 1 || !C[0])
891
- return C.length = 0, k ? (f -= l.e + 1, C[0] = D[(c - f % c) % c], l.e = -f || 0) : C[0] = l.e = 0, l;
892
- if (I == 0 ? (C.length = S, y = 1, S--) : (C.length = S + 1, y = D[c - I], C[S] = j > 0 ? a(v / D[w - j] % D[j]) * y : 0), k)
889
+ x[S + 1] != null || (j < 0 ? v : v % D[b - j - 1]), k = g < 4 ? (A || k) && (g == 0 || g == (l.s < 0 ? 3 : 2)) : A > 5 || A == 5 && (g == 4 || k || g == 6 && // Check whether the digit to the left of the rounding digit is odd.
890
+ (I > 0 ? j > 0 ? v / D[b - j] : 0 : x[S - 1]) % 10 & 1 || g == (l.s < 0 ? 8 : 7)), f < 1 || !x[0])
891
+ return x.length = 0, k ? (f -= l.e + 1, x[0] = D[(c - f % c) % c], l.e = -f || 0) : x[0] = l.e = 0, l;
892
+ if (I == 0 ? (x.length = S, y = 1, S--) : (x.length = S + 1, y = D[c - I], x[S] = j > 0 ? a(v / D[b - j] % D[j]) * y : 0), k)
893
893
  for (; ; )
894
894
  if (S == 0) {
895
- for (I = 1, j = C[0]; j >= 10; j /= 10, I++) ;
896
- for (j = C[0] += y, y = 1; j >= 10; j /= 10, y++) ;
897
- I != y && (l.e++, C[0] == d && (C[0] = 1));
895
+ for (I = 1, j = x[0]; j >= 10; j /= 10, I++) ;
896
+ for (j = x[0] += y, y = 1; j >= 10; j /= 10, y++) ;
897
+ I != y && (l.e++, x[0] == d && (x[0] = 1));
898
898
  break;
899
899
  } else {
900
- if (C[S] += y, C[S] != d) break;
901
- C[S--] = 0, y = 1;
900
+ if (x[S] += y, x[S] != d) break;
901
+ x[S--] = 0, y = 1;
902
902
  }
903
- for (I = C.length; C[--I] === 0; C.pop()) ;
903
+ for (I = x.length; x[--I] === 0; x.pop()) ;
904
904
  }
905
- l.e > Ae ? l.c = l.e = null : l.e < Ue && (l.c = [l.e = 0]);
905
+ l.e > ke ? l.c = l.e = null : l.e < Ue && (l.c = [l.e = 0]);
906
906
  }
907
907
  return l;
908
908
  }
@@ -910,167 +910,167 @@ function tn() {
910
910
  var f, g = l.e;
911
911
  return g === null ? l.toString() : (f = W(l.c), f = g <= ce || g >= de ? J(f, g) : ae(f, g, "0"), l.s < 0 ? "-" + f : f);
912
912
  }
913
- return U.absoluteValue = U.abs = function() {
914
- var l = new x(this);
913
+ return M.absoluteValue = M.abs = function() {
914
+ var l = new U(this);
915
915
  return l.s < 0 && (l.s = 1), l;
916
- }, U.comparedTo = function(l, f) {
917
- return K(this, new x(l, f));
918
- }, U.decimalPlaces = U.dp = function(l, f) {
919
- var g, k, w, I = this;
916
+ }, M.comparedTo = function(l, f) {
917
+ return K(this, new U(l, f));
918
+ }, M.decimalPlaces = M.dp = function(l, f) {
919
+ var g, k, b, I = this;
920
920
  if (l != null)
921
- return q(l, 0, $), f == null ? f = ie : q(f, 0, 8), Se(new x(I), l + I.e + 1, f);
921
+ return _(l, 0, $), f == null ? f = ie : _(f, 0, 8), Se(new U(I), l + I.e + 1, f);
922
922
  if (!(g = I.c)) return null;
923
- if (k = ((w = g.length - 1) - Z(this.e / c)) * c, w = g[w]) for (; w % 10 == 0; w /= 10, k--) ;
923
+ if (k = ((b = g.length - 1) - Z(this.e / c)) * c, b = g[b]) for (; b % 10 == 0; b /= 10, k--) ;
924
924
  return k < 0 && (k = 0), k;
925
- }, U.dividedBy = U.div = function(l, f) {
926
- return L(this, new x(l, f), Q, ie);
927
- }, U.dividedToIntegerBy = U.idiv = function(l, f) {
928
- return L(this, new x(l, f), 0, 1);
929
- }, U.exponentiatedBy = U.pow = function(l, f) {
930
- var g, k, w, I, j, y, v, S, A, C = this;
931
- if (l = new x(l), l.c && !l.isInteger())
925
+ }, M.dividedBy = M.div = function(l, f) {
926
+ return L(this, new U(l, f), Q, ie);
927
+ }, M.dividedToIntegerBy = M.idiv = function(l, f) {
928
+ return L(this, new U(l, f), 0, 1);
929
+ }, M.exponentiatedBy = M.pow = function(l, f) {
930
+ var g, k, b, I, j, y, v, S, A, x = this;
931
+ if (l = new U(l), l.c && !l.isInteger())
932
932
  throw Error(s + "Exponent not an integer: " + Le(l));
933
- if (f != null && (f = new x(f)), y = l.e > 14, !C.c || !C.c[0] || C.c[0] == 1 && !C.e && C.c.length == 1 || !l.c || !l.c[0])
934
- return A = new x(Math.pow(+Le(C), y ? l.s * (2 - N(l)) : +Le(l))), f ? A.mod(f) : A;
933
+ if (f != null && (f = new U(f)), y = l.e > 14, !x.c || !x.c[0] || x.c[0] == 1 && !x.e && x.c.length == 1 || !l.c || !l.c[0])
934
+ return A = new U(Math.pow(+Le(x), y ? l.s * (2 - N(l)) : +Le(l))), f ? A.mod(f) : A;
935
935
  if (v = l.s < 0, f) {
936
- if (f.c ? !f.c[0] : !f.s) return new x(NaN);
937
- k = !v && C.isInteger() && f.isInteger(), k && (C = C.mod(f));
936
+ if (f.c ? !f.c[0] : !f.s) return new U(NaN);
937
+ k = !v && x.isInteger() && f.isInteger(), k && (x = x.mod(f));
938
938
  } else {
939
- if (l.e > 9 && (C.e > 0 || C.e < -1 || (C.e == 0 ? C.c[0] > 1 || y && C.c[1] >= 24e7 : C.c[0] < 8e13 || y && C.c[0] <= 9999975e7)))
940
- return I = C.s < 0 && N(l) ? -0 : 0, C.e > -1 && (I = 1 / I), new x(v ? 1 / I : I);
939
+ if (l.e > 9 && (x.e > 0 || x.e < -1 || (x.e == 0 ? x.c[0] > 1 || y && x.c[1] >= 24e7 : x.c[0] < 8e13 || y && x.c[0] <= 9999975e7)))
940
+ return I = x.s < 0 && N(l) ? -0 : 0, x.e > -1 && (I = 1 / I), new U(v ? 1 / I : I);
941
941
  Be && (I = o(Be / c + 2));
942
942
  }
943
- for (y ? (g = new x(0.5), v && (l.s = 1), S = N(l)) : (w = Math.abs(+Le(l)), S = w % 2), A = new x(Y); ; ) {
943
+ for (y ? (g = new U(0.5), v && (l.s = 1), S = N(l)) : (b = Math.abs(+Le(l)), S = b % 2), A = new U(Y); ; ) {
944
944
  if (S) {
945
- if (A = A.times(C), !A.c) break;
945
+ if (A = A.times(x), !A.c) break;
946
946
  I ? A.c.length > I && (A.c.length = I) : k && (A = A.mod(f));
947
947
  }
948
- if (w) {
949
- if (w = a(w / 2), w === 0) break;
950
- S = w % 2;
948
+ if (b) {
949
+ if (b = a(b / 2), b === 0) break;
950
+ S = b % 2;
951
951
  } else if (l = l.times(g), Se(l, l.e + 1, 1), l.e > 14)
952
952
  S = N(l);
953
953
  else {
954
- if (w = +Le(l), w === 0) break;
955
- S = w % 2;
954
+ if (b = +Le(l), b === 0) break;
955
+ S = b % 2;
956
956
  }
957
- C = C.times(C), I ? C.c && C.c.length > I && (C.c.length = I) : k && (C = C.mod(f));
957
+ x = x.times(x), I ? x.c && x.c.length > I && (x.c.length = I) : k && (x = x.mod(f));
958
958
  }
959
959
  return k ? A : (v && (A = Y.div(A)), f ? A.mod(f) : I ? Se(A, Be, ie, j) : A);
960
- }, U.integerValue = function(l) {
961
- var f = new x(this);
962
- return l == null ? l = ie : q(l, 0, 8), Se(f, f.e + 1, l);
963
- }, U.isEqualTo = U.eq = function(l, f) {
964
- return K(this, new x(l, f)) === 0;
965
- }, U.isFinite = function() {
960
+ }, M.integerValue = function(l) {
961
+ var f = new U(this);
962
+ return l == null ? l = ie : _(l, 0, 8), Se(f, f.e + 1, l);
963
+ }, M.isEqualTo = M.eq = function(l, f) {
964
+ return K(this, new U(l, f)) === 0;
965
+ }, M.isFinite = function() {
966
966
  return !!this.c;
967
- }, U.isGreaterThan = U.gt = function(l, f) {
968
- return K(this, new x(l, f)) > 0;
969
- }, U.isGreaterThanOrEqualTo = U.gte = function(l, f) {
970
- return (f = K(this, new x(l, f))) === 1 || f === 0;
971
- }, U.isInteger = function() {
967
+ }, M.isGreaterThan = M.gt = function(l, f) {
968
+ return K(this, new U(l, f)) > 0;
969
+ }, M.isGreaterThanOrEqualTo = M.gte = function(l, f) {
970
+ return (f = K(this, new U(l, f))) === 1 || f === 0;
971
+ }, M.isInteger = function() {
972
972
  return !!this.c && Z(this.e / c) > this.c.length - 2;
973
- }, U.isLessThan = U.lt = function(l, f) {
974
- return K(this, new x(l, f)) < 0;
975
- }, U.isLessThanOrEqualTo = U.lte = function(l, f) {
976
- return (f = K(this, new x(l, f))) === -1 || f === 0;
977
- }, U.isNaN = function() {
973
+ }, M.isLessThan = M.lt = function(l, f) {
974
+ return K(this, new U(l, f)) < 0;
975
+ }, M.isLessThanOrEqualTo = M.lte = function(l, f) {
976
+ return (f = K(this, new U(l, f))) === -1 || f === 0;
977
+ }, M.isNaN = function() {
978
978
  return !this.s;
979
- }, U.isNegative = function() {
979
+ }, M.isNegative = function() {
980
980
  return this.s < 0;
981
- }, U.isPositive = function() {
981
+ }, M.isPositive = function() {
982
982
  return this.s > 0;
983
- }, U.isZero = function() {
983
+ }, M.isZero = function() {
984
984
  return !!this.c && this.c[0] == 0;
985
- }, U.minus = function(l, f) {
986
- var g, k, w, I, j = this, y = j.s;
987
- if (l = new x(l, f), f = l.s, !y || !f) return new x(NaN);
985
+ }, M.minus = function(l, f) {
986
+ var g, k, b, I, j = this, y = j.s;
987
+ if (l = new U(l, f), f = l.s, !y || !f) return new U(NaN);
988
988
  if (y != f)
989
989
  return l.s = -f, j.plus(l);
990
- var v = j.e / c, S = l.e / c, A = j.c, C = l.c;
990
+ var v = j.e / c, S = l.e / c, A = j.c, x = l.c;
991
991
  if (!v || !S) {
992
- if (!A || !C) return A ? (l.s = -f, l) : new x(C ? j : NaN);
993
- if (!A[0] || !C[0])
994
- return C[0] ? (l.s = -f, l) : new x(A[0] ? j : (
992
+ if (!A || !x) return A ? (l.s = -f, l) : new U(x ? j : NaN);
993
+ if (!A[0] || !x[0])
994
+ return x[0] ? (l.s = -f, l) : new U(A[0] ? j : (
995
995
  // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity
996
996
  ie == 3 ? -0 : 0
997
997
  ));
998
998
  }
999
999
  if (v = Z(v), S = Z(S), A = A.slice(), y = v - S) {
1000
- for ((I = y < 0) ? (y = -y, w = A) : (S = v, w = C), w.reverse(), f = y; f--; w.push(0)) ;
1001
- w.reverse();
1000
+ for ((I = y < 0) ? (y = -y, b = A) : (S = v, b = x), b.reverse(), f = y; f--; b.push(0)) ;
1001
+ b.reverse();
1002
1002
  } else
1003
- for (k = (I = (y = A.length) < (f = C.length)) ? y : f, y = f = 0; f < k; f++)
1004
- if (A[f] != C[f]) {
1005
- I = A[f] < C[f];
1003
+ for (k = (I = (y = A.length) < (f = x.length)) ? y : f, y = f = 0; f < k; f++)
1004
+ if (A[f] != x[f]) {
1005
+ I = A[f] < x[f];
1006
1006
  break;
1007
1007
  }
1008
- if (I && (w = A, A = C, C = w, l.s = -l.s), f = (k = C.length) - (g = A.length), f > 0) for (; f--; A[g++] = 0) ;
1008
+ if (I && (b = A, A = x, x = b, l.s = -l.s), f = (k = x.length) - (g = A.length), f > 0) for (; f--; A[g++] = 0) ;
1009
1009
  for (f = d - 1; k > y; ) {
1010
- if (A[--k] < C[k]) {
1010
+ if (A[--k] < x[k]) {
1011
1011
  for (g = k; g && !A[--g]; A[g] = f) ;
1012
1012
  --A[g], A[k] += d;
1013
1013
  }
1014
- A[k] -= C[k];
1014
+ A[k] -= x[k];
1015
1015
  }
1016
1016
  for (; A[0] == 0; A.splice(0, 1), --S) ;
1017
- return A[0] ? Dt(l, A, S) : (l.s = ie == 3 ? -1 : 1, l.c = [l.e = 0], l);
1018
- }, U.modulo = U.mod = function(l, f) {
1019
- var g, k, w = this;
1020
- return l = new x(l, f), !w.c || !l.s || l.c && !l.c[0] ? new x(NaN) : !l.c || w.c && !w.c[0] ? new x(w) : (st == 9 ? (k = l.s, l.s = 1, g = L(w, l, 0, 3), l.s = k, g.s *= k) : g = L(w, l, 0, st), l = w.minus(g.times(l)), !l.c[0] && st == 1 && (l.s = w.s), l);
1021
- }, U.multipliedBy = U.times = function(l, f) {
1022
- var g, k, w, I, j, y, v, S, A, C, D, B, ne, le, he, F = this, re = F.c, me = (l = new x(l, f)).c;
1017
+ return A[0] ? Bt(l, A, S) : (l.s = ie == 3 ? -1 : 1, l.c = [l.e = 0], l);
1018
+ }, M.modulo = M.mod = function(l, f) {
1019
+ var g, k, b = this;
1020
+ return l = new U(l, f), !b.c || !l.s || l.c && !l.c[0] ? new U(NaN) : !l.c || b.c && !b.c[0] ? new U(b) : (st == 9 ? (k = l.s, l.s = 1, g = L(b, l, 0, 3), l.s = k, g.s *= k) : g = L(b, l, 0, st), l = b.minus(g.times(l)), !l.c[0] && st == 1 && (l.s = b.s), l);
1021
+ }, M.multipliedBy = M.times = function(l, f) {
1022
+ var g, k, b, I, j, y, v, S, A, x, D, B, ne, le, he, F = this, re = F.c, me = (l = new U(l, f)).c;
1023
1023
  if (!re || !me || !re[0] || !me[0])
1024
1024
  return !F.s || !l.s || re && !re[0] && !me || me && !me[0] && !re ? l.c = l.e = l.s = null : (l.s *= F.s, !re || !me ? l.c = l.e = null : (l.c = [0], l.e = 0)), l;
1025
- for (k = Z(F.e / c) + Z(l.e / c), l.s *= F.s, v = re.length, C = me.length, v < C && (ne = re, re = me, me = ne, w = v, v = C, C = w), w = v + C, ne = []; w--; ne.push(0)) ;
1026
- for (le = d, he = m, w = C; --w >= 0; ) {
1027
- for (g = 0, D = me[w] % he, B = me[w] / he | 0, j = v, I = w + j; I > w; )
1025
+ for (k = Z(F.e / c) + Z(l.e / c), l.s *= F.s, v = re.length, x = me.length, v < x && (ne = re, re = me, me = ne, b = v, v = x, x = b), b = v + x, ne = []; b--; ne.push(0)) ;
1026
+ for (le = d, he = m, b = x; --b >= 0; ) {
1027
+ for (g = 0, D = me[b] % he, B = me[b] / he | 0, j = v, I = b + j; I > b; )
1028
1028
  S = re[--j] % he, A = re[j] / he | 0, y = B * S + A * D, S = D * S + y % he * he + ne[I] + g, g = (S / le | 0) + (y / he | 0) + B * A, ne[I--] = S % le;
1029
1029
  ne[I] = g;
1030
1030
  }
1031
- return g ? ++k : ne.splice(0, 1), Dt(l, ne, k);
1032
- }, U.negated = function() {
1033
- var l = new x(this);
1031
+ return g ? ++k : ne.splice(0, 1), Bt(l, ne, k);
1032
+ }, M.negated = function() {
1033
+ var l = new U(this);
1034
1034
  return l.s = -l.s || null, l;
1035
- }, U.plus = function(l, f) {
1036
- var g, k = this, w = k.s;
1037
- if (l = new x(l, f), f = l.s, !w || !f) return new x(NaN);
1038
- if (w != f)
1035
+ }, M.plus = function(l, f) {
1036
+ var g, k = this, b = k.s;
1037
+ if (l = new U(l, f), f = l.s, !b || !f) return new U(NaN);
1038
+ if (b != f)
1039
1039
  return l.s = -f, k.minus(l);
1040
1040
  var I = k.e / c, j = l.e / c, y = k.c, v = l.c;
1041
1041
  if (!I || !j) {
1042
- if (!y || !v) return new x(w / 0);
1043
- if (!y[0] || !v[0]) return v[0] ? l : new x(y[0] ? k : w * 0);
1042
+ if (!y || !v) return new U(b / 0);
1043
+ if (!y[0] || !v[0]) return v[0] ? l : new U(y[0] ? k : b * 0);
1044
1044
  }
1045
- if (I = Z(I), j = Z(j), y = y.slice(), w = I - j) {
1046
- for (w > 0 ? (j = I, g = v) : (w = -w, g = y), g.reverse(); w--; g.push(0)) ;
1045
+ if (I = Z(I), j = Z(j), y = y.slice(), b = I - j) {
1046
+ for (b > 0 ? (j = I, g = v) : (b = -b, g = y), g.reverse(); b--; g.push(0)) ;
1047
1047
  g.reverse();
1048
1048
  }
1049
- for (w = y.length, f = v.length, w - f < 0 && (g = v, v = y, y = g, f = w), w = 0; f; )
1050
- w = (y[--f] = y[f] + v[f] + w) / d | 0, y[f] = d === y[f] ? 0 : y[f] % d;
1051
- return w && (y = [w].concat(y), ++j), Dt(l, y, j);
1052
- }, U.precision = U.sd = function(l, f) {
1053
- var g, k, w, I = this;
1049
+ for (b = y.length, f = v.length, b - f < 0 && (g = v, v = y, y = g, f = b), b = 0; f; )
1050
+ b = (y[--f] = y[f] + v[f] + b) / d | 0, y[f] = d === y[f] ? 0 : y[f] % d;
1051
+ return b && (y = [b].concat(y), ++j), Bt(l, y, j);
1052
+ }, M.precision = M.sd = function(l, f) {
1053
+ var g, k, b, I = this;
1054
1054
  if (l != null && l !== !!l)
1055
- return q(l, 1, $), f == null ? f = ie : q(f, 0, 8), Se(new x(I), l, f);
1055
+ return _(l, 1, $), f == null ? f = ie : _(f, 0, 8), Se(new U(I), l, f);
1056
1056
  if (!(g = I.c)) return null;
1057
- if (w = g.length - 1, k = w * c + 1, w = g[w]) {
1058
- for (; w % 10 == 0; w /= 10, k--) ;
1059
- for (w = g[0]; w >= 10; w /= 10, k++) ;
1057
+ if (b = g.length - 1, k = b * c + 1, b = g[b]) {
1058
+ for (; b % 10 == 0; b /= 10, k--) ;
1059
+ for (b = g[0]; b >= 10; b /= 10, k++) ;
1060
1060
  }
1061
1061
  return l && I.e + 1 > k && (k = I.e + 1), k;
1062
- }, U.shiftedBy = function(l) {
1063
- return q(l, -p, p), this.times("1e" + l);
1064
- }, U.squareRoot = U.sqrt = function() {
1065
- var l, f, g, k, w, I = this, j = I.c, y = I.s, v = I.e, S = Q + 4, A = new x("0.5");
1062
+ }, M.shiftedBy = function(l) {
1063
+ return _(l, -p, p), this.times("1e" + l);
1064
+ }, M.squareRoot = M.sqrt = function() {
1065
+ var l, f, g, k, b, I = this, j = I.c, y = I.s, v = I.e, S = Q + 4, A = new U("0.5");
1066
1066
  if (y !== 1 || !j || !j[0])
1067
- return new x(!y || y < 0 && (!j || j[0]) ? NaN : j ? I : 1 / 0);
1068
- if (y = Math.sqrt(+Le(I)), y == 0 || y == 1 / 0 ? (f = W(j), (f.length + v) % 2 == 0 && (f += "0"), y = Math.sqrt(+f), v = Z((v + 1) / 2) - (v < 0 || v % 2), y == 1 / 0 ? f = "5e" + v : (f = y.toExponential(), f = f.slice(0, f.indexOf("e") + 1) + v), g = new x(f)) : g = new x(y + ""), g.c[0]) {
1067
+ return new U(!y || y < 0 && (!j || j[0]) ? NaN : j ? I : 1 / 0);
1068
+ if (y = Math.sqrt(+Le(I)), y == 0 || y == 1 / 0 ? (f = W(j), (f.length + v) % 2 == 0 && (f += "0"), y = Math.sqrt(+f), v = Z((v + 1) / 2) - (v < 0 || v % 2), y == 1 / 0 ? f = "5e" + v : (f = y.toExponential(), f = f.slice(0, f.indexOf("e") + 1) + v), g = new U(f)) : g = new U(y + ""), g.c[0]) {
1069
1069
  for (v = g.e, y = v + S, y < 3 && (y = 0); ; )
1070
- if (w = g, g = A.times(w.plus(L(I, w, S, 1))), W(w.c).slice(0, y) === (f = W(g.c)).slice(0, y))
1070
+ if (b = g, g = A.times(b.plus(L(I, b, S, 1))), W(b.c).slice(0, y) === (f = W(g.c)).slice(0, y))
1071
1071
  if (g.e < v && --y, f = f.slice(y - 3, y + 1), f == "9999" || !k && f == "4999") {
1072
- if (!k && (Se(w, w.e + Q + 2, 0), w.times(w).eq(I))) {
1073
- g = w;
1072
+ if (!k && (Se(b, b.e + Q + 2, 0), b.times(b).eq(I))) {
1073
+ g = b;
1074
1074
  break;
1075
1075
  }
1076
1076
  S += 4, y += 4, k = 1;
@@ -1080,72 +1080,72 @@ function tn() {
1080
1080
  }
1081
1081
  }
1082
1082
  return Se(g, g.e + Q + 1, ie, l);
1083
- }, U.toExponential = function(l, f) {
1084
- return l != null && (q(l, 0, $), l++), Ht(this, l, f, 1);
1085
- }, U.toFixed = function(l, f) {
1086
- return l != null && (q(l, 0, $), l = l + this.e + 1), Ht(this, l, f);
1087
- }, U.toFormat = function(l, f, g) {
1088
- var k, w = this;
1083
+ }, M.toExponential = function(l, f) {
1084
+ return l != null && (_(l, 0, $), l++), Dt(this, l, f, 1);
1085
+ }, M.toFixed = function(l, f) {
1086
+ return l != null && (_(l, 0, $), l = l + this.e + 1), Dt(this, l, f);
1087
+ }, M.toFormat = function(l, f, g) {
1088
+ var k, b = this;
1089
1089
  if (g == null)
1090
- l != null && f && typeof f == "object" ? (g = f, f = null) : l && typeof l == "object" ? (g = l, l = f = null) : g = Lt;
1090
+ l != null && f && typeof f == "object" ? (g = f, f = null) : l && typeof l == "object" ? (g = l, l = f = null) : g = Nt;
1091
1091
  else if (typeof g != "object")
1092
1092
  throw Error(s + "Argument not an object: " + g);
1093
- if (k = w.toFixed(l, f), w.c) {
1094
- var I, j = k.split("."), y = +g.groupSize, v = +g.secondaryGroupSize, S = g.groupSeparator || "", A = j[0], C = j[1], D = w.s < 0, B = D ? A.slice(1) : A, ne = B.length;
1093
+ if (k = b.toFixed(l, f), b.c) {
1094
+ var I, j = k.split("."), y = +g.groupSize, v = +g.secondaryGroupSize, S = g.groupSeparator || "", A = j[0], x = j[1], D = b.s < 0, B = D ? A.slice(1) : A, ne = B.length;
1095
1095
  if (v && (I = y, y = v, v = I, ne -= I), y > 0 && ne > 0) {
1096
1096
  for (I = ne % y || y, A = B.substr(0, I); I < ne; I += y) A += S + B.substr(I, y);
1097
1097
  v > 0 && (A += S + B.slice(I)), D && (A = "-" + A);
1098
1098
  }
1099
- k = C ? A + (g.decimalSeparator || "") + ((v = +g.fractionGroupSize) ? C.replace(
1099
+ k = x ? A + (g.decimalSeparator || "") + ((v = +g.fractionGroupSize) ? x.replace(
1100
1100
  new RegExp("\\d{" + v + "}\\B", "g"),
1101
1101
  "$&" + (g.fractionGroupSeparator || "")
1102
- ) : C) : A;
1102
+ ) : x) : A;
1103
1103
  }
1104
1104
  return (g.prefix || "") + k + (g.suffix || "");
1105
- }, U.toFraction = function(l) {
1106
- var f, g, k, w, I, j, y, v, S, A, C, D, B = this, ne = B.c;
1107
- if (l != null && (y = new x(l), !y.isInteger() && (y.c || y.s !== 1) || y.lt(Y)))
1105
+ }, M.toFraction = function(l) {
1106
+ var f, g, k, b, I, j, y, v, S, A, x, D, B = this, ne = B.c;
1107
+ if (l != null && (y = new U(l), !y.isInteger() && (y.c || y.s !== 1) || y.lt(Y)))
1108
1108
  throw Error(s + "Argument " + (y.isInteger() ? "out of range: " : "not an integer: ") + Le(y));
1109
- if (!ne) return new x(B);
1110
- for (f = new x(Y), S = g = new x(Y), k = v = new x(Y), D = W(ne), I = f.e = D.length - B.e - 1, f.c[0] = u[(j = I % c) < 0 ? c + j : j], l = !l || y.comparedTo(f) > 0 ? I > 0 ? f : S : y, j = Ae, Ae = 1 / 0, y = new x(D), v.c[0] = 0; A = L(y, f, 0, 1), w = g.plus(A.times(k)), w.comparedTo(l) != 1; )
1111
- g = k, k = w, S = v.plus(A.times(w = S)), v = w, f = y.minus(A.times(w = f)), y = w;
1112
- return w = L(l.minus(g), k, 0, 1), v = v.plus(w.times(S)), g = g.plus(w.times(k)), v.s = S.s = B.s, I = I * 2, C = L(S, k, I, ie).minus(B).abs().comparedTo(
1109
+ if (!ne) return new U(B);
1110
+ for (f = new U(Y), S = g = new U(Y), k = v = new U(Y), D = W(ne), I = f.e = D.length - B.e - 1, f.c[0] = u[(j = I % c) < 0 ? c + j : j], l = !l || y.comparedTo(f) > 0 ? I > 0 ? f : S : y, j = ke, ke = 1 / 0, y = new U(D), v.c[0] = 0; A = L(y, f, 0, 1), b = g.plus(A.times(k)), b.comparedTo(l) != 1; )
1111
+ g = k, k = b, S = v.plus(A.times(b = S)), v = b, f = y.minus(A.times(b = f)), y = b;
1112
+ return b = L(l.minus(g), k, 0, 1), v = v.plus(b.times(S)), g = g.plus(b.times(k)), v.s = S.s = B.s, I = I * 2, x = L(S, k, I, ie).minus(B).abs().comparedTo(
1113
1113
  L(v, g, I, ie).minus(B).abs()
1114
- ) < 1 ? [S, k] : [v, g], Ae = j, C;
1115
- }, U.toNumber = function() {
1114
+ ) < 1 ? [S, k] : [v, g], ke = j, x;
1115
+ }, M.toNumber = function() {
1116
1116
  return +Le(this);
1117
- }, U.toPrecision = function(l, f) {
1118
- return l != null && q(l, 1, $), Ht(this, l, f, 2);
1119
- }, U.toString = function(l) {
1120
- var f, g = this, k = g.s, w = g.e;
1121
- return w === null ? k ? (f = "Infinity", k < 0 && (f = "-" + f)) : f = "NaN" : (l == null ? f = w <= ce || w >= de ? J(W(g.c), w) : ae(W(g.c), w, "0") : l === 10 && Nt ? (g = Se(new x(g), Q + w + 1, ie), f = ae(W(g.c), g.e, "0")) : (q(l, 2, Ye.length, "Base"), f = te(ae(W(g.c), w, "0"), 10, l, k, !0)), k < 0 && g.c[0] && (f = "-" + f)), f;
1122
- }, U.valueOf = U.toJSON = function() {
1117
+ }, M.toPrecision = function(l, f) {
1118
+ return l != null && _(l, 1, $), Dt(this, l, f, 2);
1119
+ }, M.toString = function(l) {
1120
+ var f, g = this, k = g.s, b = g.e;
1121
+ return b === null ? k ? (f = "Infinity", k < 0 && (f = "-" + f)) : f = "NaN" : (l == null ? f = b <= ce || b >= de ? J(W(g.c), b) : ae(W(g.c), b, "0") : l === 10 && Ht ? (g = Se(new U(g), Q + b + 1, ie), f = ae(W(g.c), g.e, "0")) : (_(l, 2, Ye.length, "Base"), f = te(ae(W(g.c), b, "0"), 10, l, k, !0)), k < 0 && g.c[0] && (f = "-" + f)), f;
1122
+ }, M.valueOf = M.toJSON = function() {
1123
1123
  return Le(this);
1124
- }, U._isBigNumber = !0, H != null && x.set(H), x;
1124
+ }, M._isBigNumber = !0, H != null && U.set(H), U;
1125
1125
  }
1126
1126
  function Z(H) {
1127
1127
  var L = H | 0;
1128
1128
  return H > 0 || H === L ? L : L - 1;
1129
1129
  }
1130
1130
  function W(H) {
1131
- for (var L, te, X = 1, U = H.length, Y = H[0] + ""; X < U; ) {
1131
+ for (var L, te, X = 1, M = H.length, Y = H[0] + ""; X < M; ) {
1132
1132
  for (L = H[X++] + "", te = c - L.length; te--; L = "0" + L) ;
1133
1133
  Y += L;
1134
1134
  }
1135
- for (U = Y.length; Y.charCodeAt(--U) === 48; ) ;
1136
- return Y.slice(0, U + 1 || 1);
1135
+ for (M = Y.length; Y.charCodeAt(--M) === 48; ) ;
1136
+ return Y.slice(0, M + 1 || 1);
1137
1137
  }
1138
1138
  function K(H, L) {
1139
- var te, X, U = H.c, Y = L.c, Q = H.s, ie = L.s, ce = H.e, de = L.e;
1139
+ var te, X, M = H.c, Y = L.c, Q = H.s, ie = L.s, ce = H.e, de = L.e;
1140
1140
  if (!Q || !ie) return null;
1141
- if (te = U && !U[0], X = Y && !Y[0], te || X) return te ? X ? 0 : -ie : Q;
1141
+ if (te = M && !M[0], X = Y && !Y[0], te || X) return te ? X ? 0 : -ie : Q;
1142
1142
  if (Q != ie) return Q;
1143
- if (te = Q < 0, X = ce == de, !U || !Y) return X ? 0 : !U ^ te ? 1 : -1;
1143
+ if (te = Q < 0, X = ce == de, !M || !Y) return X ? 0 : !M ^ te ? 1 : -1;
1144
1144
  if (!X) return ce > de ^ te ? 1 : -1;
1145
- for (ie = (ce = U.length) < (de = Y.length) ? ce : de, Q = 0; Q < ie; Q++) if (U[Q] != Y[Q]) return U[Q] > Y[Q] ^ te ? 1 : -1;
1145
+ for (ie = (ce = M.length) < (de = Y.length) ? ce : de, Q = 0; Q < ie; Q++) if (M[Q] != Y[Q]) return M[Q] > Y[Q] ^ te ? 1 : -1;
1146
1146
  return ce == de ? 0 : ce > de ^ te ? 1 : -1;
1147
1147
  }
1148
- function q(H, L, te, X) {
1148
+ function _(H, L, te, X) {
1149
1149
  if (H < L || H > te || H !== a(H))
1150
1150
  throw Error(s + (X || "Argument") + (typeof H == "number" ? H < L || H > te ? " out of range: " : " not an integer: " : " not a primitive number: ") + String(H));
1151
1151
  }
@@ -1157,19 +1157,19 @@ function tn() {
1157
1157
  return (H.length > 1 ? H.charAt(0) + "." + H.slice(1) : H) + (L < 0 ? "e" : "e+") + L;
1158
1158
  }
1159
1159
  function ae(H, L, te) {
1160
- var X, U;
1160
+ var X, M;
1161
1161
  if (L < 0) {
1162
- for (U = te + "."; ++L; U += te) ;
1163
- H = U + H;
1162
+ for (M = te + "."; ++L; M += te) ;
1163
+ H = M + H;
1164
1164
  } else if (X = H.length, ++L > X) {
1165
- for (U = te, L -= X; --L; U += te) ;
1166
- H += U;
1165
+ for (M = te, L -= X; --L; M += te) ;
1166
+ H += M;
1167
1167
  } else L < X && (H = H.slice(0, L) + "." + H.slice(L));
1168
1168
  return H;
1169
1169
  }
1170
1170
  n = E(), n.default = n.BigNumber = n, t.exports ? t.exports = n : (e || (e = typeof self < "u" && self ? self : window), e.BigNumber = n);
1171
1171
  })(En);
1172
- })(St)), St.exports;
1172
+ })(kt)), kt.exports;
1173
1173
  }
1174
1174
  var Li;
1175
1175
  function qn() {
@@ -1193,24 +1193,24 @@ function qn() {
1193
1193
  }) + '"' : '"' + p + '"';
1194
1194
  }
1195
1195
  function c(p, u) {
1196
- var m, $, E, Z, W = o, K, q = u[p], N = q != null && (q instanceof e || e.isBigNumber(q));
1197
- switch (q && typeof q == "object" && typeof q.toJSON == "function" && (q = q.toJSON(p)), typeof r == "function" && (q = r.call(u, p, q)), typeof q) {
1196
+ var m, $, E, Z, W = o, K, _ = u[p], N = _ != null && (_ instanceof e || e.isBigNumber(_));
1197
+ switch (_ && typeof _ == "object" && typeof _.toJSON == "function" && (_ = _.toJSON(p)), typeof r == "function" && (_ = r.call(u, p, _)), typeof _) {
1198
1198
  case "string":
1199
- return N ? q : d(q);
1199
+ return N ? _ : d(_);
1200
1200
  case "number":
1201
- return isFinite(q) ? String(q) : "null";
1201
+ return isFinite(_) ? String(_) : "null";
1202
1202
  case "boolean":
1203
1203
  case "null":
1204
1204
  case "bigint":
1205
- return String(q);
1205
+ return String(_);
1206
1206
  // If the type is 'object', we might be dealing with an object or an array or
1207
1207
  // null.
1208
1208
  case "object":
1209
- if (!q)
1209
+ if (!_)
1210
1210
  return "null";
1211
- if (o += a, K = [], Object.prototype.toString.apply(q) === "[object Array]") {
1212
- for (Z = q.length, m = 0; m < Z; m += 1)
1213
- K[m] = c(m, q) || "null";
1211
+ if (o += a, K = [], Object.prototype.toString.apply(_) === "[object Array]") {
1212
+ for (Z = _.length, m = 0; m < Z; m += 1)
1213
+ K[m] = c(m, _) || "null";
1214
1214
  return E = K.length === 0 ? "[]" : o ? `[
1215
1215
  ` + o + K.join(`,
1216
1216
  ` + o) + `
@@ -1218,10 +1218,10 @@ function qn() {
1218
1218
  }
1219
1219
  if (r && typeof r == "object")
1220
1220
  for (Z = r.length, m = 0; m < Z; m += 1)
1221
- typeof r[m] == "string" && ($ = r[m], E = c($, q), E && K.push(d($) + (o ? ": " : ":") + E));
1221
+ typeof r[m] == "string" && ($ = r[m], E = c($, _), E && K.push(d($) + (o ? ": " : ":") + E));
1222
1222
  else
1223
- Object.keys(q).forEach(function(J) {
1224
- var ae = c(J, q);
1223
+ Object.keys(_).forEach(function(J) {
1224
+ var ae = c(J, _);
1225
1225
  ae && K.push(d(J) + (o ? ": " : ":") + ae);
1226
1226
  });
1227
1227
  return E = K.length === 0 ? "{}" : o ? `{
@@ -1241,11 +1241,11 @@ function qn() {
1241
1241
  return c("", { "": p });
1242
1242
  });
1243
1243
  })();
1244
- })(Wt)), Wt.exports;
1244
+ })(Gt)), Gt.exports;
1245
1245
  }
1246
- var Gt, Ni;
1246
+ var Kt, Ni;
1247
1247
  function _n() {
1248
- if (Ni) return Gt;
1248
+ if (Ni) return Kt;
1249
1249
  Ni = 1;
1250
1250
  var t = null;
1251
1251
  const e = /(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/, n = /(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;
@@ -1355,7 +1355,7 @@ function _n() {
1355
1355
  }
1356
1356
  }
1357
1357
  p("Bad array");
1358
- }, q = function() {
1358
+ }, _ = function() {
1359
1359
  var N, J = /* @__PURE__ */ Object.create(null);
1360
1360
  if (r === "{") {
1361
1361
  if (u("{"), E(), r === "}")
@@ -1371,7 +1371,7 @@ function _n() {
1371
1371
  return W = function() {
1372
1372
  switch (E(), r) {
1373
1373
  case "{":
1374
- return q();
1374
+ return _();
1375
1375
  case "[":
1376
1376
  return K();
1377
1377
  case '"':
@@ -1384,14 +1384,14 @@ function _n() {
1384
1384
  }, function(N, J) {
1385
1385
  var ae;
1386
1386
  return c = N + "", s = 0, r = " ", ae = W(), E(), r && p("Syntax error"), typeof J == "function" ? (function H(L, te) {
1387
- var X, U = L[te];
1388
- return U && typeof U == "object" && Object.keys(U).forEach(function(Y) {
1389
- X = H(U, Y), X !== void 0 ? U[Y] = X : delete U[Y];
1390
- }), J.call(L, te, U);
1387
+ var X, M = L[te];
1388
+ return M && typeof M == "object" && Object.keys(M).forEach(function(Y) {
1389
+ X = H(M, Y), X !== void 0 ? M[Y] = X : delete M[Y];
1390
+ }), J.call(L, te, M);
1391
1391
  })({ "": ae }, "") : ae;
1392
1392
  };
1393
1393
  };
1394
- return Gt = i, Gt;
1394
+ return Kt = i, Kt;
1395
1395
  }
1396
1396
  var Hi;
1397
1397
  function Ln() {
@@ -1438,7 +1438,7 @@ function Hn(t, e, n, i) {
1438
1438
  if (typeof e == "function" ? t !== e || !i : !e.has(t)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
1439
1439
  return n === "m" ? i : n === "a" ? i.call(t) : i ? i.value : e.get(t);
1440
1440
  }
1441
- var $t, nn;
1441
+ var St, nn;
1442
1442
  class Ve {
1443
1443
  /**
1444
1444
  * Uses the provided ID as the ID for the resource.
@@ -1456,7 +1456,7 @@ class Ve {
1456
1456
  * @returns {string}
1457
1457
  */
1458
1458
  static unique(e = 7) {
1459
- const n = Hn($t, $t, "m", nn).call($t);
1459
+ const n = Hn(St, St, "m", nn).call(St);
1460
1460
  let i = "";
1461
1461
  for (let o = 0; o < e; o++) {
1462
1462
  const a = Math.floor(Math.random() * 16).toString(16);
@@ -1465,11 +1465,11 @@ class Ve {
1465
1465
  return n + i;
1466
1466
  }
1467
1467
  }
1468
- $t = Ve, nn = function() {
1468
+ St = Ve, nn = function() {
1469
1469
  const e = /* @__PURE__ */ new Date(), n = Math.floor(e.getTime() / 1e3), i = e.getMilliseconds();
1470
1470
  return n.toString(16) + i.toString(16).padStart(5, "0");
1471
1471
  };
1472
- const Et = vi({ useNativeBigInt: !0 });
1472
+ const qt = vi({ useNativeBigInt: !0 });
1473
1473
  class P {
1474
1474
  /**
1475
1475
  * Constructor for Query class.
@@ -1487,7 +1487,7 @@ class P {
1487
1487
  * @returns {string}
1488
1488
  */
1489
1489
  toString() {
1490
- return Et.stringify({
1490
+ return qt.stringify({
1491
1491
  method: this.method,
1492
1492
  attribute: this.attribute,
1493
1493
  values: this.values
@@ -1537,9 +1537,9 @@ P.createdBetween = (t, e) => P.between("$createdAt", t, e);
1537
1537
  P.updatedBefore = (t) => P.lessThan("$updatedAt", t);
1538
1538
  P.updatedAfter = (t) => P.greaterThan("$updatedAt", t);
1539
1539
  P.updatedBetween = (t, e) => P.between("$updatedAt", t, e);
1540
- P.or = (t) => new P("or", void 0, t.map((e) => Et.parse(e))).toString();
1541
- P.and = (t) => new P("and", void 0, t.map((e) => Et.parse(e))).toString();
1542
- P.elemMatch = (t, e) => new P("elemMatch", t, e.map((n) => Et.parse(n))).toString();
1540
+ P.or = (t) => new P("or", void 0, t.map((e) => qt.parse(e))).toString();
1541
+ P.and = (t) => new P("and", void 0, t.map((e) => qt.parse(e))).toString();
1542
+ P.elemMatch = (t, e) => new P("elemMatch", t, e.map((n) => qt.parse(n))).toString();
1543
1543
  P.distanceEqual = (t, e, n, i = !0) => new P("distanceEqual", t, [
1544
1544
  [e, n, i]
1545
1545
  ]).toString();
@@ -1583,7 +1583,7 @@ function Yn(t, e) {
1583
1583
  }
1584
1584
  return e;
1585
1585
  }
1586
- const we = {
1586
+ const be = {
1587
1587
  parse: (t) => Dn.parse(t, Yn),
1588
1588
  stringify: Bn.stringify
1589
1589
  };
@@ -1600,7 +1600,7 @@ class h extends Error {
1600
1600
  super(e), this.name = "AppwriteException", this.message = e, this.code = n, this.type = i, this.response = o;
1601
1601
  }
1602
1602
  }
1603
- class Ce {
1603
+ class xe {
1604
1604
  constructor() {
1605
1605
  this.config = {
1606
1606
  endpoint: "https://cloud.appwrite.io/v1",
@@ -1652,7 +1652,7 @@ class Ce {
1652
1652
  createHeartbeat: () => {
1653
1653
  this.realtime.heartbeat && clearTimeout(this.realtime.heartbeat), this.realtime.heartbeat = window?.setInterval(() => {
1654
1654
  var e;
1655
- (e = this.realtime.socket) === null || e === void 0 || e.send(we.stringify({
1655
+ (e = this.realtime.socket) === null || e === void 0 || e.send(be.stringify({
1656
1656
  type: "ping"
1657
1657
  }));
1658
1658
  }, 2e4);
@@ -1687,7 +1687,7 @@ class Ce {
1687
1687
  if (!this.realtime.socket || this.realtime.socket.readyState !== WebSocket.OPEN || this.realtime.pendingSubscribes.size < 1)
1688
1688
  return;
1689
1689
  const e = Array.from(this.realtime.pendingSubscribes.values());
1690
- this.realtime.pendingSubscribes.clear(), this.realtime.socket.send(we.stringify({
1690
+ this.realtime.pendingSubscribes.clear(), this.realtime.socket.send(be.stringify({
1691
1691
  type: "subscribe",
1692
1692
  data: e
1693
1693
  }));
@@ -1695,16 +1695,16 @@ class Ce {
1695
1695
  onMessage: (e) => {
1696
1696
  var n, i;
1697
1697
  try {
1698
- const o = we.parse(e.data);
1698
+ const o = be.parse(e.data);
1699
1699
  switch (this.realtime.lastMessage = o, o.type) {
1700
1700
  case "connected": {
1701
1701
  const a = o.data;
1702
1702
  let s = this.config.session;
1703
1703
  if (!s) {
1704
- const r = we.parse((n = window.localStorage.getItem("cookieFallback")) !== null && n !== void 0 ? n : "{}");
1704
+ const r = be.parse((n = window.localStorage.getItem("cookieFallback")) !== null && n !== void 0 ? n : "{}");
1705
1705
  s = r?.[`a_session_${this.config.project}`];
1706
1706
  }
1707
- s && !a?.user && ((i = this.realtime.socket) === null || i === void 0 || i.send(we.stringify({
1707
+ s && !a?.user && ((i = this.realtime.socket) === null || i === void 0 || i.send(be.stringify({
1708
1708
  type: "authentication",
1709
1709
  data: {
1710
1710
  session: s
@@ -1991,12 +1991,12 @@ class Ce {
1991
1991
  headers: i
1992
1992
  };
1993
1993
  if (i["X-Appwrite-Dev-Key"] === void 0 && (a.credentials = "include"), e === "GET")
1994
- for (const [s, r] of Object.entries(Ce.flatten(o)))
1994
+ for (const [s, r] of Object.entries(xe.flatten(o)))
1995
1995
  n.searchParams.append(s, r);
1996
1996
  else
1997
1997
  switch (i["content-type"]) {
1998
1998
  case "application/json":
1999
- a.body = we.stringify(o);
1999
+ a.body = be.stringify(o);
2000
2000
  break;
2001
2001
  case "multipart/form-data": {
2002
2002
  const s = new FormData();
@@ -2020,9 +2020,9 @@ class Ce {
2020
2020
  const [c, p] = (d = Object.entries(s).find(([Y, Q]) => Q instanceof File)) !== null && d !== void 0 ? d : [];
2021
2021
  if (!p || !c)
2022
2022
  throw new Error("File not found in payload");
2023
- if (p.size <= Ce.CHUNK_SIZE)
2023
+ if (p.size <= xe.CHUNK_SIZE)
2024
2024
  return yield this.call(i, o, a, s);
2025
- const u = Math.ceil(p.size / Ce.CHUNK_SIZE), m = Math.min(Ce.CHUNK_SIZE, p.size), $ = Object.assign(Object.assign({}, a), { "content-range": `bytes 0-${m - 1}/${p.size}` }), E = p.slice(0, m), Z = Object.assign({}, s);
2025
+ const u = Math.ceil(p.size / xe.CHUNK_SIZE), m = Math.min(xe.CHUNK_SIZE, p.size), $ = Object.assign(Object.assign({}, a), { "content-range": `bytes 0-${m - 1}/${p.size}` }), E = p.slice(0, m), Z = Object.assign({}, s);
2026
2026
  Z[c] = new File([E], p.name);
2027
2027
  const W = yield this.call(i, o, $, Z), K = W?.$id;
2028
2028
  if (r && typeof r == "function" && r({
@@ -2033,10 +2033,10 @@ class Ce {
2033
2033
  chunksUploaded: 1
2034
2034
  }), u === 1)
2035
2035
  return W;
2036
- const q = [];
2036
+ const _ = [];
2037
2037
  for (let Y = 1; Y < u; Y++) {
2038
- const Q = Y * Ce.CHUNK_SIZE, ie = Math.min(Q + Ce.CHUNK_SIZE, p.size);
2039
- q.push({ start: Q, end: ie });
2038
+ const Q = Y * xe.CHUNK_SIZE, ie = Math.min(Q + xe.CHUNK_SIZE, p.size);
2039
+ _.push({ start: Q, end: ie });
2040
2040
  }
2041
2041
  const N = 8;
2042
2042
  let J = 1, ae = m, H = W, L = null, te = !1;
@@ -2044,7 +2044,7 @@ class Ce {
2044
2044
  var Q;
2045
2045
  const ie = Y?.chunksUploaded, ce = (Q = Y?.chunksTotal) !== null && Q !== void 0 ? Q : u;
2046
2046
  return typeof ie == "number" && typeof ce == "number" && ie >= ce;
2047
- }, U = (Y) => Ie(this, void 0, void 0, function* () {
2047
+ }, M = (Y) => Ie(this, void 0, void 0, function* () {
2048
2048
  const Q = Object.assign({}, a);
2049
2049
  K && (Q["x-appwrite-id"] = K), Q["content-range"] = `bytes ${Y.start}-${Y.end - 1}/${p.size}`;
2050
2050
  const ie = p.slice(Y.start, Y.end), ce = Object.assign({}, s);
@@ -2062,13 +2062,13 @@ class Ce {
2062
2062
  let ie = 0, ce = 0, de = 0;
2063
2063
  const Ue = () => {
2064
2064
  if (!te) {
2065
- if (de === q.length) {
2065
+ if (de === _.length) {
2066
2066
  Y();
2067
2067
  return;
2068
2068
  }
2069
- for (; ce < N && ie < q.length; ) {
2070
- const Ae = q[ie++];
2071
- ce++, U(Ae).then(() => {
2069
+ for (; ce < N && ie < _.length; ) {
2070
+ const ke = _[ie++];
2071
+ ce++, M(ke).then(() => {
2072
2072
  ce--, de++, Ue();
2073
2073
  }).catch((_e) => {
2074
2074
  te = !0, Q(_e);
@@ -2097,15 +2097,15 @@ class Ce {
2097
2097
  if (E.type === "opaque")
2098
2098
  throw new h(`Invalid Origin. Register your new client (${window.location.host}) as a new Web platform on your project console dashboard`, 403, "forbidden", "");
2099
2099
  const Z = E.headers.get("x-appwrite-warning");
2100
- if (Z && Z.split(";").forEach((K) => console.warn("Warning: " + K)), !((d = E.headers.get("content-type")) === null || d === void 0) && d.includes("application/json") ? $ = we.parse(yield E.text()) : r === "arrayBuffer" ? $ = yield E.arrayBuffer() : $ = {
2100
+ if (Z && Z.split(";").forEach((K) => console.warn("Warning: " + K)), !((d = E.headers.get("content-type")) === null || d === void 0) && d.includes("application/json") ? $ = be.parse(yield E.text()) : r === "arrayBuffer" ? $ = yield E.arrayBuffer() : $ = {
2101
2101
  message: yield E.text()
2102
2102
  }, 400 <= E.status) {
2103
2103
  let K;
2104
- throw !((c = E.headers.get("content-type")) === null || c === void 0) && c.includes("application/json") || r === "arrayBuffer" ? K = we.stringify($) : K = $?.message, new h((p = $?.message) !== null && p !== void 0 ? p : K, E.status, $?.type, K);
2104
+ throw !((c = E.headers.get("content-type")) === null || c === void 0) && c.includes("application/json") || r === "arrayBuffer" ? K = be.stringify($) : K = $?.message, new h((p = $?.message) !== null && p !== void 0 ? p : K, E.status, $?.type, K);
2105
2105
  }
2106
2106
  const W = E.headers.get("X-Fallback-Cookies");
2107
2107
  return typeof window < "u" && window.localStorage && W && (window.console.warn("Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint."), window.localStorage.setItem("cookieFallback", W)), $ && typeof $ == "object" && Object.defineProperty($, "toString", {
2108
- value: () => we.stringify($),
2108
+ value: () => be.stringify($),
2109
2109
  writable: !0,
2110
2110
  enumerable: !1,
2111
2111
  configurable: !0
@@ -2116,12 +2116,12 @@ class Ce {
2116
2116
  let i = {};
2117
2117
  for (const [o, a] of Object.entries(e)) {
2118
2118
  const s = n ? n + "[" + o + "]" : o;
2119
- Array.isArray(a) ? i = Object.assign(Object.assign({}, i), Ce.flatten(a, s)) : i[s] = a;
2119
+ Array.isArray(a) ? i = Object.assign(Object.assign({}, i), xe.flatten(a, s)) : i[s] = a;
2120
2120
  }
2121
2121
  return i;
2122
2122
  }
2123
2123
  }
2124
- Ce.CHUNK_SIZE = 1024 * 1024 * 5;
2124
+ xe.CHUNK_SIZE = 1024 * 1024 * 5;
2125
2125
  class ye {
2126
2126
  constructor(e) {
2127
2127
  this.client = e;
@@ -2136,7 +2136,7 @@ class ye {
2136
2136
  }
2137
2137
  }
2138
2138
  ye.CHUNK_SIZE = 5 * 1024 * 1024;
2139
- class Yt {
2139
+ class Jt {
2140
2140
  constructor(e) {
2141
2141
  this.client = e;
2142
2142
  }
@@ -3402,16 +3402,16 @@ class on {
3402
3402
  quality: n[17],
3403
3403
  output: n[18]
3404
3404
  };
3405
- const o = i.url, a = i.headers, s = i.viewportWidth, r = i.viewportHeight, d = i.scale, c = i.theme, p = i.userAgent, u = i.fullpage, m = i.locale, $ = i.timezone, E = i.latitude, Z = i.longitude, W = i.accuracy, K = i.touch, q = i.permissions, N = i.sleep, J = i.width, ae = i.height, H = i.quality, L = i.output;
3405
+ const o = i.url, a = i.headers, s = i.viewportWidth, r = i.viewportHeight, d = i.scale, c = i.theme, p = i.userAgent, u = i.fullpage, m = i.locale, $ = i.timezone, E = i.latitude, Z = i.longitude, W = i.accuracy, K = i.touch, _ = i.permissions, N = i.sleep, J = i.width, ae = i.height, H = i.quality, L = i.output;
3406
3406
  if (typeof o > "u")
3407
3407
  throw new h('Missing required parameter: "url"');
3408
3408
  const te = "/avatars/screenshots", X = {};
3409
- typeof o < "u" && (X.url = o), typeof a < "u" && (X.headers = a), typeof s < "u" && (X.viewportWidth = s), typeof r < "u" && (X.viewportHeight = r), typeof d < "u" && (X.scale = d), typeof c < "u" && (X.theme = c), typeof p < "u" && (X.userAgent = p), typeof u < "u" && (X.fullpage = u), typeof m < "u" && (X.locale = m), typeof $ < "u" && (X.timezone = $), typeof E < "u" && (X.latitude = E), typeof Z < "u" && (X.longitude = Z), typeof W < "u" && (X.accuracy = W), typeof K < "u" && (X.touch = K), typeof q < "u" && (X.permissions = q), typeof N < "u" && (X.sleep = N), typeof J < "u" && (X.width = J), typeof ae < "u" && (X.height = ae), typeof H < "u" && (X.quality = H), typeof L < "u" && (X.output = L);
3410
- const U = new URL(this.client.config.endpoint + te);
3409
+ typeof o < "u" && (X.url = o), typeof a < "u" && (X.headers = a), typeof s < "u" && (X.viewportWidth = s), typeof r < "u" && (X.viewportHeight = r), typeof d < "u" && (X.scale = d), typeof c < "u" && (X.theme = c), typeof p < "u" && (X.userAgent = p), typeof u < "u" && (X.fullpage = u), typeof m < "u" && (X.locale = m), typeof $ < "u" && (X.timezone = $), typeof E < "u" && (X.latitude = E), typeof Z < "u" && (X.longitude = Z), typeof W < "u" && (X.accuracy = W), typeof K < "u" && (X.touch = K), typeof _ < "u" && (X.permissions = _), typeof N < "u" && (X.sleep = N), typeof J < "u" && (X.width = J), typeof ae < "u" && (X.height = ae), typeof H < "u" && (X.quality = H), typeof L < "u" && (X.output = L);
3410
+ const M = new URL(this.client.config.endpoint + te);
3411
3411
  X.project = this.client.config.project, X.impersonateuserid = this.client.config.impersonateuserid;
3412
3412
  for (const [Y, Q] of Object.entries(ye.flatten(X)))
3413
- U.searchParams.append(Y, Q);
3414
- return U.toString();
3413
+ M.searchParams.append(Y, Q);
3414
+ return M.toString();
3415
3415
  }
3416
3416
  }
3417
3417
  class Jn {
@@ -4632,9 +4632,9 @@ class to {
4632
4632
  throw new h('Missing required parameter: "bucketId"');
4633
4633
  if (typeof a > "u")
4634
4634
  throw new h('Missing required parameter: "fileId"');
4635
- const q = "/storage/buckets/{bucketId}/files/{fileId}/preview".replace("{bucketId}", encodeURIComponent(String(o))).replace("{fileId}", encodeURIComponent(String(a))), N = {};
4635
+ const _ = "/storage/buckets/{bucketId}/files/{fileId}/preview".replace("{bucketId}", encodeURIComponent(String(o))).replace("{fileId}", encodeURIComponent(String(a))), N = {};
4636
4636
  typeof s < "u" && (N.width = s), typeof r < "u" && (N.height = r), typeof d < "u" && (N.gravity = d), typeof c < "u" && (N.quality = c), typeof p < "u" && (N.borderWidth = p), typeof u < "u" && (N.borderColor = u), typeof m < "u" && (N.borderRadius = m), typeof $ < "u" && (N.opacity = $), typeof E < "u" && (N.rotation = E), typeof Z < "u" && (N.background = Z), typeof W < "u" && (N.output = W), typeof K < "u" && (N.token = K);
4637
- const J = new URL(this.client.config.endpoint + q);
4637
+ const J = new URL(this.client.config.endpoint + _);
4638
4638
  N.project = this.client.config.project, N.impersonateuserid = this.client.config.impersonateuserid;
4639
4639
  for (const [ae, H] of Object.entries(ye.flatten(N)))
4640
4640
  J.searchParams.append(ae, H);
@@ -5582,10 +5582,10 @@ class no {
5582
5582
  return this.client.call("delete", p, u, c);
5583
5583
  }
5584
5584
  }
5585
- var Ct;
5585
+ var Pt;
5586
5586
  (function(t) {
5587
5587
  t[t.NORMAL_CLOSURE = 1e3] = "NORMAL_CLOSURE", t[t.POLICY_VIOLATION = 1008] = "POLICY_VIOLATION", t[t.UNKNOWN_ERROR = -1] = "UNKNOWN_ERROR";
5588
- })(Ct || (Ct = {}));
5588
+ })(Pt || (Pt = {}));
5589
5589
  class oo {
5590
5590
  constructor(e) {
5591
5591
  this.TYPE_ERROR = "error", this.TYPE_EVENT = "event", this.TYPE_PONG = "pong", this.TYPE_CONNECTED = "connected", this.DEBOUNCE_MS = 1, this.HEARTBEAT_INTERVAL = 2e4, this.activeSubscriptions = /* @__PURE__ */ new Map(), this.pendingSubscribes = /* @__PURE__ */ new Map(), this.appConnected = !1, this.subCallDepth = 0, this.reconnectAttempts = 0, this.connectionId = 0, this.reconnect = !0, this.onErrorCallbacks = [], this.onCloseCallbacks = [], this.onOpenCallbacks = [], this.client = e;
@@ -5619,7 +5619,7 @@ class oo {
5619
5619
  }
5620
5620
  startHeartbeat() {
5621
5621
  this.stopHeartbeat(), this.heartbeatTimer = window?.setInterval(() => {
5622
- this.socket && this.socket.readyState === WebSocket.OPEN && this.socket.send(we.stringify({ type: "ping" }));
5622
+ this.socket && this.socket.readyState === WebSocket.OPEN && this.socket.send(be.stringify({ type: "ping" }));
5623
5623
  }, this.HEARTBEAT_INTERVAL);
5624
5624
  }
5625
5625
  stopHeartbeat() {
@@ -5666,7 +5666,7 @@ class oo {
5666
5666
  }), p.addEventListener("message", (u) => {
5667
5667
  if (c === this.connectionId)
5668
5668
  try {
5669
- const m = we.parse(u.data);
5669
+ const m = be.parse(u.data);
5670
5670
  this.handleMessage(m);
5671
5671
  } catch (m) {
5672
5672
  console.error("Failed to parse message:", m);
@@ -5674,7 +5674,7 @@ class oo {
5674
5674
  }), p.addEventListener("close", (u) => Ie(this, void 0, void 0, function* () {
5675
5675
  if (c !== this.connectionId || p !== this.socket)
5676
5676
  return;
5677
- if (this.appConnected = !1, this.stopHeartbeat(), this.onCloseCallbacks.forEach(($) => $()), !this.reconnect || u.code === Ct.POLICY_VIOLATION) {
5677
+ if (this.appConnected = !1, this.stopHeartbeat(), this.onCloseCallbacks.forEach(($) => $()), !this.reconnect || u.code === Pt.POLICY_VIOLATION) {
5678
5678
  this.reconnect = !0;
5679
5679
  return;
5680
5680
  }
@@ -5708,7 +5708,7 @@ class oo {
5708
5708
  }
5709
5709
  this.socket.readyState === WebSocket.OPEN || this.socket.readyState === WebSocket.CONNECTING ? (this.socket.addEventListener("close", () => {
5710
5710
  e();
5711
- }, { once: !0 }), this.socket.close(Ct.NORMAL_CLOSURE)) : e();
5711
+ }, { once: !0 }), this.socket.close(Pt.NORMAL_CLOSURE)) : e();
5712
5712
  });
5713
5713
  });
5714
5714
  }
@@ -5720,7 +5720,7 @@ class oo {
5720
5720
  }
5721
5721
  sendUnsubscribeMessage(e) {
5722
5722
  const n = e.filter((i) => typeof i == "string" && i.length > 0);
5723
- n.length !== 0 && (!this.socket || this.socket.readyState !== WebSocket.OPEN || this.socket.send(we.stringify({
5723
+ n.length !== 0 && (!this.socket || this.socket.readyState !== WebSocket.OPEN || this.socket.send(be.stringify({
5724
5724
  type: "unsubscribe",
5725
5725
  data: n.map((i) => ({ subscriptionId: i }))
5726
5726
  })));
@@ -5756,7 +5756,7 @@ class oo {
5756
5756
  if (!this.socket || this.socket.readyState !== WebSocket.OPEN || !this.appConnected || this.pendingSubscribes.size < 1)
5757
5757
  return;
5758
5758
  const e = Array.from(this.pendingSubscribes.values());
5759
- this.pendingSubscribes.clear(), this.socket.send(we.stringify({
5759
+ this.pendingSubscribes.clear(), this.socket.send(be.stringify({
5760
5760
  type: "subscribe",
5761
5761
  data: e
5762
5762
  }));
@@ -5805,8 +5805,8 @@ class oo {
5805
5805
  const W = [];
5806
5806
  for (const K of E.queries)
5807
5807
  if (Array.isArray(K))
5808
- for (const q of K)
5809
- W.push(typeof q == "string" ? q : q.toString());
5808
+ for (const _ of K)
5809
+ W.push(typeof _ == "string" ? _ : _.toString());
5810
5810
  else
5811
5811
  W.push(typeof K == "string" ? K : K.toString());
5812
5812
  Z.queries = W;
@@ -5847,7 +5847,7 @@ class oo {
5847
5847
  });
5848
5848
  }
5849
5849
  flushPendingPresence() {
5850
- this.pendingPresence && (!this.socket || this.socket.readyState !== WebSocket.OPEN || this.appConnected && this.socket.send(we.stringify({
5850
+ this.pendingPresence && (!this.socket || this.socket.readyState !== WebSocket.OPEN || this.appConnected && this.socket.send(be.stringify({
5851
5851
  type: "presence",
5852
5852
  data: this.pendingPresence
5853
5853
  })));
@@ -5876,12 +5876,12 @@ class oo {
5876
5876
  let a = this.client.config.session;
5877
5877
  if (!a)
5878
5878
  try {
5879
- const s = we.parse((n = window.localStorage.getItem("cookieFallback")) !== null && n !== void 0 ? n : "{}");
5879
+ const s = be.parse((n = window.localStorage.getItem("cookieFallback")) !== null && n !== void 0 ? n : "{}");
5880
5880
  a = s?.[`a_session_${this.client.config.project}`];
5881
5881
  } catch (s) {
5882
5882
  console.error("Failed to parse cookie fallback:", s);
5883
5883
  }
5884
- a && !o.user && ((i = this.socket) === null || i === void 0 || i.send(we.stringify({
5884
+ a && !o.user && ((i = this.socket) === null || i === void 0 || i.send(be.stringify({
5885
5885
  type: "authentication",
5886
5886
  data: {
5887
5887
  session: a
@@ -6109,10 +6109,10 @@ class Pe {
6109
6109
  return "presences";
6110
6110
  }
6111
6111
  }
6112
- var Jt;
6112
+ var Zt;
6113
6113
  (function(t) {
6114
6114
  t.Equal = "equal", t.NotEqual = "notEqual", t.GreaterThan = "greaterThan", t.GreaterThanEqual = "greaterThanEqual", t.LessThan = "lessThan", t.LessThanEqual = "lessThanEqual", t.Contains = "contains", t.IsNull = "isNull", t.IsNotNull = "isNotNull";
6115
- })(Jt || (Jt = {}));
6115
+ })(Zt || (Zt = {}));
6116
6116
  class T {
6117
6117
  /**
6118
6118
  * Constructor for Operator class.
@@ -6204,124 +6204,124 @@ T.toggle = () => new T("toggle", []).toString();
6204
6204
  T.dateAddDays = (t) => new T("dateAddDays", [t]).toString();
6205
6205
  T.dateSubDays = (t) => new T("dateSubDays", [t]).toString();
6206
6206
  T.dateSetNow = () => new T("dateSetNow", []).toString();
6207
- var Zt;
6208
- (function(t) {
6209
- t.Totp = "totp";
6210
- })(Zt || (Zt = {}));
6211
6207
  var Qt;
6212
6208
  (function(t) {
6213
- t.Email = "email", t.Phone = "phone", t.Totp = "totp", t.Recoverycode = "recoverycode", t.Custom = "custom";
6209
+ t.Totp = "totp";
6214
6210
  })(Qt || (Qt = {}));
6215
6211
  var Tt;
6216
6212
  (function(t) {
6217
- t.Amazon = "amazon", t.Apple = "apple", t.Appwrite = "appwrite", t.Auth0 = "auth0", t.Authentik = "authentik", t.Autodesk = "autodesk", t.Bitbucket = "bitbucket", t.Bitly = "bitly", t.Box = "box", t.Cloudflare = "cloudflare", t.Dailymotion = "dailymotion", t.Discord = "discord", t.Disqus = "disqus", t.Dropbox = "dropbox", t.Etsy = "etsy", t.Facebook = "facebook", t.Figma = "figma", t.Fusionauth = "fusionauth", t.Github = "github", t.Gitlab = "gitlab", t.Google = "google", t.Huggingface = "huggingface", t.Keycloak = "keycloak", t.Kick = "kick", t.Linkedin = "linkedin", t.Microsoft = "microsoft", t.Notion = "notion", t.Oidc = "oidc", t.Okta = "okta", t.Paypal = "paypal", t.PaypalSandbox = "paypalSandbox", t.Podio = "podio", t.Resend = "resend", t.Salesforce = "salesforce", t.Slack = "slack", t.Spotify = "spotify", t.Stripe = "stripe", t.Tradeshift = "tradeshift", t.TradeshiftBox = "tradeshiftBox", t.Twitch = "twitch", t.Wordpress = "wordpress", t.X = "x", t.Yahoo = "yahoo", t.Yammer = "yammer", t.Yandex = "yandex", t.Zoho = "zoho", t.Zoom = "zoom";
6213
+ t.Email = "email", t.Phone = "phone", t.Totp = "totp", t.Recoverycode = "recoverycode", t.Custom = "custom";
6218
6214
  })(Tt || (Tt = {}));
6219
6215
  var zt;
6220
6216
  (function(t) {
6221
- t.AvantBrowser = "aa", t.AndroidWebViewBeta = "an", t.GoogleChrome = "ch", t.GoogleChromeIOS = "ci", t.GoogleChromeMobile = "cm", t.Chromium = "cr", t.MozillaFirefox = "ff", t.Safari = "sf", t.MobileSafari = "mf", t.MicrosoftEdge = "ps", t.MicrosoftEdgeIOS = "oi", t.OperaMini = "om", t.Opera = "op", t.OperaNext = "on";
6217
+ t.Amazon = "amazon", t.Apple = "apple", t.Appwrite = "appwrite", t.Auth0 = "auth0", t.Authentik = "authentik", t.Autodesk = "autodesk", t.Bitbucket = "bitbucket", t.Bitly = "bitly", t.Box = "box", t.Cloudflare = "cloudflare", t.Dailymotion = "dailymotion", t.Discord = "discord", t.Disqus = "disqus", t.Dropbox = "dropbox", t.Etsy = "etsy", t.Facebook = "facebook", t.Figma = "figma", t.Fusionauth = "fusionauth", t.Github = "github", t.Gitlab = "gitlab", t.Google = "google", t.Huggingface = "huggingface", t.Keycloak = "keycloak", t.Kick = "kick", t.Linkedin = "linkedin", t.Microsoft = "microsoft", t.Notion = "notion", t.Oidc = "oidc", t.Okta = "okta", t.Paypal = "paypal", t.PaypalSandbox = "paypalSandbox", t.Podio = "podio", t.Resend = "resend", t.Salesforce = "salesforce", t.Slack = "slack", t.Spotify = "spotify", t.Stripe = "stripe", t.Tradeshift = "tradeshift", t.TradeshiftBox = "tradeshiftBox", t.Twitch = "twitch", t.Wordpress = "wordpress", t.X = "x", t.Yahoo = "yahoo", t.Yammer = "yammer", t.Yandex = "yandex", t.Zoho = "zoho", t.Zoom = "zoom";
6222
6218
  })(zt || (zt = {}));
6223
6219
  var Ot;
6224
6220
  (function(t) {
6225
- t.AmericanExpress = "amex", t.Argencard = "argencard", t.Cabal = "cabal", t.Cencosud = "cencosud", t.DinersClub = "diners", t.Discover = "discover", t.Elo = "elo", t.Hipercard = "hipercard", t.JCB = "jcb", t.Mastercard = "mastercard", t.Naranja = "naranja", t.TarjetaShopping = "targeta-shopping", t.UnionPay = "unionpay", t.Visa = "visa", t.MIR = "mir", t.Maestro = "maestro", t.Rupay = "rupay";
6221
+ t.AvantBrowser = "aa", t.AndroidWebViewBeta = "an", t.GoogleChrome = "ch", t.GoogleChromeIOS = "ci", t.GoogleChromeMobile = "cm", t.Chromium = "cr", t.MozillaFirefox = "ff", t.Safari = "sf", t.MobileSafari = "mf", t.MicrosoftEdge = "ps", t.MicrosoftEdgeIOS = "oi", t.OperaMini = "om", t.Opera = "op", t.OperaNext = "on";
6226
6222
  })(Ot || (Ot = {}));
6227
6223
  var Ft;
6228
6224
  (function(t) {
6229
- t.Afghanistan = "af", t.Angola = "ao", t.Albania = "al", t.Andorra = "ad", t.UnitedArabEmirates = "ae", t.Argentina = "ar", t.Armenia = "am", t.AntiguaAndBarbuda = "ag", t.Australia = "au", t.Austria = "at", t.Azerbaijan = "az", t.Burundi = "bi", t.Belgium = "be", t.Benin = "bj", t.BurkinaFaso = "bf", t.Bangladesh = "bd", t.Bulgaria = "bg", t.Bahrain = "bh", t.Bahamas = "bs", t.BosniaAndHerzegovina = "ba", t.Belarus = "by", t.Belize = "bz", t.Bolivia = "bo", t.Brazil = "br", t.Barbados = "bb", t.BruneiDarussalam = "bn", t.Bhutan = "bt", t.Botswana = "bw", t.CentralAfricanRepublic = "cf", t.Canada = "ca", t.Switzerland = "ch", t.Chile = "cl", t.China = "cn", t.CoteDIvoire = "ci", t.Cameroon = "cm", t.DemocraticRepublicOfTheCongo = "cd", t.RepublicOfTheCongo = "cg", t.Colombia = "co", t.Comoros = "km", t.CapeVerde = "cv", t.CostaRica = "cr", t.Cuba = "cu", t.Cyprus = "cy", t.CzechRepublic = "cz", t.Germany = "de", t.Djibouti = "dj", t.Dominica = "dm", t.Denmark = "dk", t.DominicanRepublic = "do", t.Algeria = "dz", t.Ecuador = "ec", t.Egypt = "eg", t.Eritrea = "er", t.Spain = "es", t.Estonia = "ee", t.Ethiopia = "et", t.Finland = "fi", t.Fiji = "fj", t.France = "fr", t.MicronesiaFederatedStatesOf = "fm", t.Gabon = "ga", t.UnitedKingdom = "gb", t.Georgia = "ge", t.Ghana = "gh", t.Guinea = "gn", t.Gambia = "gm", t.GuineaBissau = "gw", t.EquatorialGuinea = "gq", t.Greece = "gr", t.Grenada = "gd", t.Guatemala = "gt", t.Guyana = "gy", t.Honduras = "hn", t.Croatia = "hr", t.Haiti = "ht", t.Hungary = "hu", t.Indonesia = "id", t.India = "in", t.Ireland = "ie", t.IranIslamicRepublicOf = "ir", t.Iraq = "iq", t.Iceland = "is", t.Israel = "il", t.Italy = "it", t.Jamaica = "jm", t.Jordan = "jo", t.Japan = "jp", t.Kazakhstan = "kz", t.Kenya = "ke", t.Kyrgyzstan = "kg", t.Cambodia = "kh", t.Kiribati = "ki", t.SaintKittsAndNevis = "kn", t.SouthKorea = "kr", t.Kuwait = "kw", t.LaoPeopleSDemocraticRepublic = "la", t.Lebanon = "lb", t.Liberia = "lr", t.Libya = "ly", t.SaintLucia = "lc", t.Liechtenstein = "li", t.SriLanka = "lk", t.Lesotho = "ls", t.Lithuania = "lt", t.Luxembourg = "lu", t.Latvia = "lv", t.Morocco = "ma", t.Monaco = "mc", t.Moldova = "md", t.Madagascar = "mg", t.Maldives = "mv", t.Mexico = "mx", t.MarshallIslands = "mh", t.NorthMacedonia = "mk", t.Mali = "ml", t.Malta = "mt", t.Myanmar = "mm", t.Montenegro = "me", t.Mongolia = "mn", t.Mozambique = "mz", t.Mauritania = "mr", t.Mauritius = "mu", t.Malawi = "mw", t.Malaysia = "my", t.Namibia = "na", t.Niger = "ne", t.Nigeria = "ng", t.Nicaragua = "ni", t.Netherlands = "nl", t.Norway = "no", t.Nepal = "np", t.Nauru = "nr", t.NewZealand = "nz", t.Oman = "om", t.Pakistan = "pk", t.Panama = "pa", t.Peru = "pe", t.Philippines = "ph", t.Palau = "pw", t.PapuaNewGuinea = "pg", t.Poland = "pl", t.FrenchPolynesia = "pf", t.NorthKorea = "kp", t.Portugal = "pt", t.Paraguay = "py", t.Qatar = "qa", t.Romania = "ro", t.Russia = "ru", t.Rwanda = "rw", t.SaudiArabia = "sa", t.Sudan = "sd", t.Senegal = "sn", t.Singapore = "sg", t.SolomonIslands = "sb", t.SierraLeone = "sl", t.ElSalvador = "sv", t.SanMarino = "sm", t.Somalia = "so", t.Serbia = "rs", t.SouthSudan = "ss", t.SaoTomeAndPrincipe = "st", t.Suriname = "sr", t.Slovakia = "sk", t.Slovenia = "si", t.Sweden = "se", t.Eswatini = "sz", t.Seychelles = "sc", t.Syria = "sy", t.Chad = "td", t.Togo = "tg", t.Thailand = "th", t.Tajikistan = "tj", t.Turkmenistan = "tm", t.TimorLeste = "tl", t.Tonga = "to", t.TrinidadAndTobago = "tt", t.Tunisia = "tn", t.Turkey = "tr", t.Tuvalu = "tv", t.Tanzania = "tz", t.Uganda = "ug", t.Ukraine = "ua", t.Uruguay = "uy", t.UnitedStates = "us", t.Uzbekistan = "uz", t.VaticanCity = "va", t.SaintVincentAndTheGrenadines = "vc", t.Venezuela = "ve", t.Vietnam = "vn", t.Vanuatu = "vu", t.Samoa = "ws", t.Yemen = "ye", t.SouthAfrica = "za", t.Zambia = "zm", t.Zimbabwe = "zw";
6225
+ t.AmericanExpress = "amex", t.Argencard = "argencard", t.Cabal = "cabal", t.Cencosud = "cencosud", t.DinersClub = "diners", t.Discover = "discover", t.Elo = "elo", t.Hipercard = "hipercard", t.JCB = "jcb", t.Mastercard = "mastercard", t.Naranja = "naranja", t.TarjetaShopping = "targeta-shopping", t.UnionPay = "unionpay", t.Visa = "visa", t.MIR = "mir", t.Maestro = "maestro", t.Rupay = "rupay";
6230
6226
  })(Ft || (Ft = {}));
6231
6227
  var ei;
6232
6228
  (function(t) {
6233
- t.Light = "light", t.Dark = "dark";
6229
+ t.Afghanistan = "af", t.Angola = "ao", t.Albania = "al", t.Andorra = "ad", t.UnitedArabEmirates = "ae", t.Argentina = "ar", t.Armenia = "am", t.AntiguaAndBarbuda = "ag", t.Australia = "au", t.Austria = "at", t.Azerbaijan = "az", t.Burundi = "bi", t.Belgium = "be", t.Benin = "bj", t.BurkinaFaso = "bf", t.Bangladesh = "bd", t.Bulgaria = "bg", t.Bahrain = "bh", t.Bahamas = "bs", t.BosniaAndHerzegovina = "ba", t.Belarus = "by", t.Belize = "bz", t.Bolivia = "bo", t.Brazil = "br", t.Barbados = "bb", t.BruneiDarussalam = "bn", t.Bhutan = "bt", t.Botswana = "bw", t.CentralAfricanRepublic = "cf", t.Canada = "ca", t.Switzerland = "ch", t.Chile = "cl", t.China = "cn", t.CoteDIvoire = "ci", t.Cameroon = "cm", t.DemocraticRepublicOfTheCongo = "cd", t.RepublicOfTheCongo = "cg", t.Colombia = "co", t.Comoros = "km", t.CapeVerde = "cv", t.CostaRica = "cr", t.Cuba = "cu", t.Cyprus = "cy", t.CzechRepublic = "cz", t.Germany = "de", t.Djibouti = "dj", t.Dominica = "dm", t.Denmark = "dk", t.DominicanRepublic = "do", t.Algeria = "dz", t.Ecuador = "ec", t.Egypt = "eg", t.Eritrea = "er", t.Spain = "es", t.Estonia = "ee", t.Ethiopia = "et", t.Finland = "fi", t.Fiji = "fj", t.France = "fr", t.MicronesiaFederatedStatesOf = "fm", t.Gabon = "ga", t.UnitedKingdom = "gb", t.Georgia = "ge", t.Ghana = "gh", t.Guinea = "gn", t.Gambia = "gm", t.GuineaBissau = "gw", t.EquatorialGuinea = "gq", t.Greece = "gr", t.Grenada = "gd", t.Guatemala = "gt", t.Guyana = "gy", t.Honduras = "hn", t.Croatia = "hr", t.Haiti = "ht", t.Hungary = "hu", t.Indonesia = "id", t.India = "in", t.Ireland = "ie", t.IranIslamicRepublicOf = "ir", t.Iraq = "iq", t.Iceland = "is", t.Israel = "il", t.Italy = "it", t.Jamaica = "jm", t.Jordan = "jo", t.Japan = "jp", t.Kazakhstan = "kz", t.Kenya = "ke", t.Kyrgyzstan = "kg", t.Cambodia = "kh", t.Kiribati = "ki", t.SaintKittsAndNevis = "kn", t.SouthKorea = "kr", t.Kuwait = "kw", t.LaoPeopleSDemocraticRepublic = "la", t.Lebanon = "lb", t.Liberia = "lr", t.Libya = "ly", t.SaintLucia = "lc", t.Liechtenstein = "li", t.SriLanka = "lk", t.Lesotho = "ls", t.Lithuania = "lt", t.Luxembourg = "lu", t.Latvia = "lv", t.Morocco = "ma", t.Monaco = "mc", t.Moldova = "md", t.Madagascar = "mg", t.Maldives = "mv", t.Mexico = "mx", t.MarshallIslands = "mh", t.NorthMacedonia = "mk", t.Mali = "ml", t.Malta = "mt", t.Myanmar = "mm", t.Montenegro = "me", t.Mongolia = "mn", t.Mozambique = "mz", t.Mauritania = "mr", t.Mauritius = "mu", t.Malawi = "mw", t.Malaysia = "my", t.Namibia = "na", t.Niger = "ne", t.Nigeria = "ng", t.Nicaragua = "ni", t.Netherlands = "nl", t.Norway = "no", t.Nepal = "np", t.Nauru = "nr", t.NewZealand = "nz", t.Oman = "om", t.Pakistan = "pk", t.Panama = "pa", t.Peru = "pe", t.Philippines = "ph", t.Palau = "pw", t.PapuaNewGuinea = "pg", t.Poland = "pl", t.FrenchPolynesia = "pf", t.NorthKorea = "kp", t.Portugal = "pt", t.Paraguay = "py", t.Qatar = "qa", t.Romania = "ro", t.Russia = "ru", t.Rwanda = "rw", t.SaudiArabia = "sa", t.Sudan = "sd", t.Senegal = "sn", t.Singapore = "sg", t.SolomonIslands = "sb", t.SierraLeone = "sl", t.ElSalvador = "sv", t.SanMarino = "sm", t.Somalia = "so", t.Serbia = "rs", t.SouthSudan = "ss", t.SaoTomeAndPrincipe = "st", t.Suriname = "sr", t.Slovakia = "sk", t.Slovenia = "si", t.Sweden = "se", t.Eswatini = "sz", t.Seychelles = "sc", t.Syria = "sy", t.Chad = "td", t.Togo = "tg", t.Thailand = "th", t.Tajikistan = "tj", t.Turkmenistan = "tm", t.TimorLeste = "tl", t.Tonga = "to", t.TrinidadAndTobago = "tt", t.Tunisia = "tn", t.Turkey = "tr", t.Tuvalu = "tv", t.Tanzania = "tz", t.Uganda = "ug", t.Ukraine = "ua", t.Uruguay = "uy", t.UnitedStates = "us", t.Uzbekistan = "uz", t.VaticanCity = "va", t.SaintVincentAndTheGrenadines = "vc", t.Venezuela = "ve", t.Vietnam = "vn", t.Vanuatu = "vu", t.Samoa = "ws", t.Yemen = "ye", t.SouthAfrica = "za", t.Zambia = "zm", t.Zimbabwe = "zw";
6234
6230
  })(ei || (ei = {}));
6235
6231
  var ti;
6236
6232
  (function(t) {
6237
- t.AfricaAbidjan = "africa/abidjan", t.AfricaAccra = "africa/accra", t.AfricaAddisAbaba = "africa/addis_ababa", t.AfricaAlgiers = "africa/algiers", t.AfricaAsmara = "africa/asmara", t.AfricaBamako = "africa/bamako", t.AfricaBangui = "africa/bangui", t.AfricaBanjul = "africa/banjul", t.AfricaBissau = "africa/bissau", t.AfricaBlantyre = "africa/blantyre", t.AfricaBrazzaville = "africa/brazzaville", t.AfricaBujumbura = "africa/bujumbura", t.AfricaCairo = "africa/cairo", t.AfricaCasablanca = "africa/casablanca", t.AfricaCeuta = "africa/ceuta", t.AfricaConakry = "africa/conakry", t.AfricaDakar = "africa/dakar", t.AfricaDarEsSalaam = "africa/dar_es_salaam", t.AfricaDjibouti = "africa/djibouti", t.AfricaDouala = "africa/douala", t.AfricaElAaiun = "africa/el_aaiun", t.AfricaFreetown = "africa/freetown", t.AfricaGaborone = "africa/gaborone", t.AfricaHarare = "africa/harare", t.AfricaJohannesburg = "africa/johannesburg", t.AfricaJuba = "africa/juba", t.AfricaKampala = "africa/kampala", t.AfricaKhartoum = "africa/khartoum", t.AfricaKigali = "africa/kigali", t.AfricaKinshasa = "africa/kinshasa", t.AfricaLagos = "africa/lagos", t.AfricaLibreville = "africa/libreville", t.AfricaLome = "africa/lome", t.AfricaLuanda = "africa/luanda", t.AfricaLubumbashi = "africa/lubumbashi", t.AfricaLusaka = "africa/lusaka", t.AfricaMalabo = "africa/malabo", t.AfricaMaputo = "africa/maputo", t.AfricaMaseru = "africa/maseru", t.AfricaMbabane = "africa/mbabane", t.AfricaMogadishu = "africa/mogadishu", t.AfricaMonrovia = "africa/monrovia", t.AfricaNairobi = "africa/nairobi", t.AfricaNdjamena = "africa/ndjamena", t.AfricaNiamey = "africa/niamey", t.AfricaNouakchott = "africa/nouakchott", t.AfricaOuagadougou = "africa/ouagadougou", t.AfricaPortonovo = "africa/porto-novo", t.AfricaSaoTome = "africa/sao_tome", t.AfricaTripoli = "africa/tripoli", t.AfricaTunis = "africa/tunis", t.AfricaWindhoek = "africa/windhoek", t.AmericaAdak = "america/adak", t.AmericaAnchorage = "america/anchorage", t.AmericaAnguilla = "america/anguilla", t.AmericaAntigua = "america/antigua", t.AmericaAraguaina = "america/araguaina", t.AmericaArgentinaBuenosAires = "america/argentina/buenos_aires", t.AmericaArgentinaCatamarca = "america/argentina/catamarca", t.AmericaArgentinaCordoba = "america/argentina/cordoba", t.AmericaArgentinaJujuy = "america/argentina/jujuy", t.AmericaArgentinaLaRioja = "america/argentina/la_rioja", t.AmericaArgentinaMendoza = "america/argentina/mendoza", t.AmericaArgentinaRioGallegos = "america/argentina/rio_gallegos", t.AmericaArgentinaSalta = "america/argentina/salta", t.AmericaArgentinaSanJuan = "america/argentina/san_juan", t.AmericaArgentinaSanLuis = "america/argentina/san_luis", t.AmericaArgentinaTucuman = "america/argentina/tucuman", t.AmericaArgentinaUshuaia = "america/argentina/ushuaia", t.AmericaAruba = "america/aruba", t.AmericaAsuncion = "america/asuncion", t.AmericaAtikokan = "america/atikokan", t.AmericaBahia = "america/bahia", t.AmericaBahiaBanderas = "america/bahia_banderas", t.AmericaBarbados = "america/barbados", t.AmericaBelem = "america/belem", t.AmericaBelize = "america/belize", t.AmericaBlancsablon = "america/blanc-sablon", t.AmericaBoaVista = "america/boa_vista", t.AmericaBogota = "america/bogota", t.AmericaBoise = "america/boise", t.AmericaCambridgeBay = "america/cambridge_bay", t.AmericaCampoGrande = "america/campo_grande", t.AmericaCancun = "america/cancun", t.AmericaCaracas = "america/caracas", t.AmericaCayenne = "america/cayenne", t.AmericaCayman = "america/cayman", t.AmericaChicago = "america/chicago", t.AmericaChihuahua = "america/chihuahua", t.AmericaCiudadJuarez = "america/ciudad_juarez", t.AmericaCostaRica = "america/costa_rica", t.AmericaCoyhaique = "america/coyhaique", t.AmericaCreston = "america/creston", t.AmericaCuiaba = "america/cuiaba", t.AmericaCuracao = "america/curacao", t.AmericaDanmarkshavn = "america/danmarkshavn", t.AmericaDawson = "america/dawson", t.AmericaDawsonCreek = "america/dawson_creek", t.AmericaDenver = "america/denver", t.AmericaDetroit = "america/detroit", t.AmericaDominica = "america/dominica", t.AmericaEdmonton = "america/edmonton", t.AmericaEirunepe = "america/eirunepe", t.AmericaElSalvador = "america/el_salvador", t.AmericaFortNelson = "america/fort_nelson", t.AmericaFortaleza = "america/fortaleza", t.AmericaGlaceBay = "america/glace_bay", t.AmericaGooseBay = "america/goose_bay", t.AmericaGrandTurk = "america/grand_turk", t.AmericaGrenada = "america/grenada", t.AmericaGuadeloupe = "america/guadeloupe", t.AmericaGuatemala = "america/guatemala", t.AmericaGuayaquil = "america/guayaquil", t.AmericaGuyana = "america/guyana", t.AmericaHalifax = "america/halifax", t.AmericaHavana = "america/havana", t.AmericaHermosillo = "america/hermosillo", t.AmericaIndianaIndianapolis = "america/indiana/indianapolis", t.AmericaIndianaKnox = "america/indiana/knox", t.AmericaIndianaMarengo = "america/indiana/marengo", t.AmericaIndianaPetersburg = "america/indiana/petersburg", t.AmericaIndianaTellCity = "america/indiana/tell_city", t.AmericaIndianaVevay = "america/indiana/vevay", t.AmericaIndianaVincennes = "america/indiana/vincennes", t.AmericaIndianaWinamac = "america/indiana/winamac", t.AmericaInuvik = "america/inuvik", t.AmericaIqaluit = "america/iqaluit", t.AmericaJamaica = "america/jamaica", t.AmericaJuneau = "america/juneau", t.AmericaKentuckyLouisville = "america/kentucky/louisville", t.AmericaKentuckyMonticello = "america/kentucky/monticello", t.AmericaKralendijk = "america/kralendijk", t.AmericaLaPaz = "america/la_paz", t.AmericaLima = "america/lima", t.AmericaLosAngeles = "america/los_angeles", t.AmericaLowerPrinces = "america/lower_princes", t.AmericaMaceio = "america/maceio", t.AmericaManagua = "america/managua", t.AmericaManaus = "america/manaus", t.AmericaMarigot = "america/marigot", t.AmericaMartinique = "america/martinique", t.AmericaMatamoros = "america/matamoros", t.AmericaMazatlan = "america/mazatlan", t.AmericaMenominee = "america/menominee", t.AmericaMerida = "america/merida", t.AmericaMetlakatla = "america/metlakatla", t.AmericaMexicoCity = "america/mexico_city", t.AmericaMiquelon = "america/miquelon", t.AmericaMoncton = "america/moncton", t.AmericaMonterrey = "america/monterrey", t.AmericaMontevideo = "america/montevideo", t.AmericaMontserrat = "america/montserrat", t.AmericaNassau = "america/nassau", t.AmericaNewYork = "america/new_york", t.AmericaNome = "america/nome", t.AmericaNoronha = "america/noronha", t.AmericaNorthDakotaBeulah = "america/north_dakota/beulah", t.AmericaNorthDakotaCenter = "america/north_dakota/center", t.AmericaNorthDakotaNewSalem = "america/north_dakota/new_salem", t.AmericaNuuk = "america/nuuk", t.AmericaOjinaga = "america/ojinaga", t.AmericaPanama = "america/panama", t.AmericaParamaribo = "america/paramaribo", t.AmericaPhoenix = "america/phoenix", t.AmericaPortauprince = "america/port-au-prince", t.AmericaPortOfSpain = "america/port_of_spain", t.AmericaPortoVelho = "america/porto_velho", t.AmericaPuertoRico = "america/puerto_rico", t.AmericaPuntaArenas = "america/punta_arenas", t.AmericaRankinInlet = "america/rankin_inlet", t.AmericaRecife = "america/recife", t.AmericaRegina = "america/regina", t.AmericaResolute = "america/resolute", t.AmericaRioBranco = "america/rio_branco", t.AmericaSantarem = "america/santarem", t.AmericaSantiago = "america/santiago", t.AmericaSantoDomingo = "america/santo_domingo", t.AmericaSaoPaulo = "america/sao_paulo", t.AmericaScoresbysund = "america/scoresbysund", t.AmericaSitka = "america/sitka", t.AmericaStBarthelemy = "america/st_barthelemy", t.AmericaStJohns = "america/st_johns", t.AmericaStKitts = "america/st_kitts", t.AmericaStLucia = "america/st_lucia", t.AmericaStThomas = "america/st_thomas", t.AmericaStVincent = "america/st_vincent", t.AmericaSwiftCurrent = "america/swift_current", t.AmericaTegucigalpa = "america/tegucigalpa", t.AmericaThule = "america/thule", t.AmericaTijuana = "america/tijuana", t.AmericaToronto = "america/toronto", t.AmericaTortola = "america/tortola", t.AmericaVancouver = "america/vancouver", t.AmericaWhitehorse = "america/whitehorse", t.AmericaWinnipeg = "america/winnipeg", t.AmericaYakutat = "america/yakutat", t.AntarcticaCasey = "antarctica/casey", t.AntarcticaDavis = "antarctica/davis", t.AntarcticaDumontdurville = "antarctica/dumontdurville", t.AntarcticaMacquarie = "antarctica/macquarie", t.AntarcticaMawson = "antarctica/mawson", t.AntarcticaMcmurdo = "antarctica/mcmurdo", t.AntarcticaPalmer = "antarctica/palmer", t.AntarcticaRothera = "antarctica/rothera", t.AntarcticaSyowa = "antarctica/syowa", t.AntarcticaTroll = "antarctica/troll", t.AntarcticaVostok = "antarctica/vostok", t.ArcticLongyearbyen = "arctic/longyearbyen", t.AsiaAden = "asia/aden", t.AsiaAlmaty = "asia/almaty", t.AsiaAmman = "asia/amman", t.AsiaAnadyr = "asia/anadyr", t.AsiaAqtau = "asia/aqtau", t.AsiaAqtobe = "asia/aqtobe", t.AsiaAshgabat = "asia/ashgabat", t.AsiaAtyrau = "asia/atyrau", t.AsiaBaghdad = "asia/baghdad", t.AsiaBahrain = "asia/bahrain", t.AsiaBaku = "asia/baku", t.AsiaBangkok = "asia/bangkok", t.AsiaBarnaul = "asia/barnaul", t.AsiaBeirut = "asia/beirut", t.AsiaBishkek = "asia/bishkek", t.AsiaBrunei = "asia/brunei", t.AsiaChita = "asia/chita", t.AsiaColombo = "asia/colombo", t.AsiaDamascus = "asia/damascus", t.AsiaDhaka = "asia/dhaka", t.AsiaDili = "asia/dili", t.AsiaDubai = "asia/dubai", t.AsiaDushanbe = "asia/dushanbe", t.AsiaFamagusta = "asia/famagusta", t.AsiaGaza = "asia/gaza", t.AsiaHebron = "asia/hebron", t.AsiaHoChiMinh = "asia/ho_chi_minh", t.AsiaHongKong = "asia/hong_kong", t.AsiaHovd = "asia/hovd", t.AsiaIrkutsk = "asia/irkutsk", t.AsiaJakarta = "asia/jakarta", t.AsiaJayapura = "asia/jayapura", t.AsiaJerusalem = "asia/jerusalem", t.AsiaKabul = "asia/kabul", t.AsiaKamchatka = "asia/kamchatka", t.AsiaKarachi = "asia/karachi", t.AsiaKathmandu = "asia/kathmandu", t.AsiaKhandyga = "asia/khandyga", t.AsiaKolkata = "asia/kolkata", t.AsiaKrasnoyarsk = "asia/krasnoyarsk", t.AsiaKualaLumpur = "asia/kuala_lumpur", t.AsiaKuching = "asia/kuching", t.AsiaKuwait = "asia/kuwait", t.AsiaMacau = "asia/macau", t.AsiaMagadan = "asia/magadan", t.AsiaMakassar = "asia/makassar", t.AsiaManila = "asia/manila", t.AsiaMuscat = "asia/muscat", t.AsiaNicosia = "asia/nicosia", t.AsiaNovokuznetsk = "asia/novokuznetsk", t.AsiaNovosibirsk = "asia/novosibirsk", t.AsiaOmsk = "asia/omsk", t.AsiaOral = "asia/oral", t.AsiaPhnomPenh = "asia/phnom_penh", t.AsiaPontianak = "asia/pontianak", t.AsiaPyongyang = "asia/pyongyang", t.AsiaQatar = "asia/qatar", t.AsiaQostanay = "asia/qostanay", t.AsiaQyzylorda = "asia/qyzylorda", t.AsiaRiyadh = "asia/riyadh", t.AsiaSakhalin = "asia/sakhalin", t.AsiaSamarkand = "asia/samarkand", t.AsiaSeoul = "asia/seoul", t.AsiaShanghai = "asia/shanghai", t.AsiaSingapore = "asia/singapore", t.AsiaSrednekolymsk = "asia/srednekolymsk", t.AsiaTaipei = "asia/taipei", t.AsiaTashkent = "asia/tashkent", t.AsiaTbilisi = "asia/tbilisi", t.AsiaTehran = "asia/tehran", t.AsiaThimphu = "asia/thimphu", t.AsiaTokyo = "asia/tokyo", t.AsiaTomsk = "asia/tomsk", t.AsiaUlaanbaatar = "asia/ulaanbaatar", t.AsiaUrumqi = "asia/urumqi", t.AsiaUstnera = "asia/ust-nera", t.AsiaVientiane = "asia/vientiane", t.AsiaVladivostok = "asia/vladivostok", t.AsiaYakutsk = "asia/yakutsk", t.AsiaYangon = "asia/yangon", t.AsiaYekaterinburg = "asia/yekaterinburg", t.AsiaYerevan = "asia/yerevan", t.AtlanticAzores = "atlantic/azores", t.AtlanticBermuda = "atlantic/bermuda", t.AtlanticCanary = "atlantic/canary", t.AtlanticCapeVerde = "atlantic/cape_verde", t.AtlanticFaroe = "atlantic/faroe", t.AtlanticMadeira = "atlantic/madeira", t.AtlanticReykjavik = "atlantic/reykjavik", t.AtlanticSouthGeorgia = "atlantic/south_georgia", t.AtlanticStHelena = "atlantic/st_helena", t.AtlanticStanley = "atlantic/stanley", t.AustraliaAdelaide = "australia/adelaide", t.AustraliaBrisbane = "australia/brisbane", t.AustraliaBrokenHill = "australia/broken_hill", t.AustraliaDarwin = "australia/darwin", t.AustraliaEucla = "australia/eucla", t.AustraliaHobart = "australia/hobart", t.AustraliaLindeman = "australia/lindeman", t.AustraliaLordHowe = "australia/lord_howe", t.AustraliaMelbourne = "australia/melbourne", t.AustraliaPerth = "australia/perth", t.AustraliaSydney = "australia/sydney", t.EuropeAmsterdam = "europe/amsterdam", t.EuropeAndorra = "europe/andorra", t.EuropeAstrakhan = "europe/astrakhan", t.EuropeAthens = "europe/athens", t.EuropeBelgrade = "europe/belgrade", t.EuropeBerlin = "europe/berlin", t.EuropeBratislava = "europe/bratislava", t.EuropeBrussels = "europe/brussels", t.EuropeBucharest = "europe/bucharest", t.EuropeBudapest = "europe/budapest", t.EuropeBusingen = "europe/busingen", t.EuropeChisinau = "europe/chisinau", t.EuropeCopenhagen = "europe/copenhagen", t.EuropeDublin = "europe/dublin", t.EuropeGibraltar = "europe/gibraltar", t.EuropeGuernsey = "europe/guernsey", t.EuropeHelsinki = "europe/helsinki", t.EuropeIsleOfMan = "europe/isle_of_man", t.EuropeIstanbul = "europe/istanbul", t.EuropeJersey = "europe/jersey", t.EuropeKaliningrad = "europe/kaliningrad", t.EuropeKirov = "europe/kirov", t.EuropeKyiv = "europe/kyiv", t.EuropeLisbon = "europe/lisbon", t.EuropeLjubljana = "europe/ljubljana", t.EuropeLondon = "europe/london", t.EuropeLuxembourg = "europe/luxembourg", t.EuropeMadrid = "europe/madrid", t.EuropeMalta = "europe/malta", t.EuropeMariehamn = "europe/mariehamn", t.EuropeMinsk = "europe/minsk", t.EuropeMonaco = "europe/monaco", t.EuropeMoscow = "europe/moscow", t.EuropeOslo = "europe/oslo", t.EuropeParis = "europe/paris", t.EuropePodgorica = "europe/podgorica", t.EuropePrague = "europe/prague", t.EuropeRiga = "europe/riga", t.EuropeRome = "europe/rome", t.EuropeSamara = "europe/samara", t.EuropeSanMarino = "europe/san_marino", t.EuropeSarajevo = "europe/sarajevo", t.EuropeSaratov = "europe/saratov", t.EuropeSimferopol = "europe/simferopol", t.EuropeSkopje = "europe/skopje", t.EuropeSofia = "europe/sofia", t.EuropeStockholm = "europe/stockholm", t.EuropeTallinn = "europe/tallinn", t.EuropeTirane = "europe/tirane", t.EuropeUlyanovsk = "europe/ulyanovsk", t.EuropeVaduz = "europe/vaduz", t.EuropeVatican = "europe/vatican", t.EuropeVienna = "europe/vienna", t.EuropeVilnius = "europe/vilnius", t.EuropeVolgograd = "europe/volgograd", t.EuropeWarsaw = "europe/warsaw", t.EuropeZagreb = "europe/zagreb", t.EuropeZurich = "europe/zurich", t.IndianAntananarivo = "indian/antananarivo", t.IndianChagos = "indian/chagos", t.IndianChristmas = "indian/christmas", t.IndianCocos = "indian/cocos", t.IndianComoro = "indian/comoro", t.IndianKerguelen = "indian/kerguelen", t.IndianMahe = "indian/mahe", t.IndianMaldives = "indian/maldives", t.IndianMauritius = "indian/mauritius", t.IndianMayotte = "indian/mayotte", t.IndianReunion = "indian/reunion", t.PacificApia = "pacific/apia", t.PacificAuckland = "pacific/auckland", t.PacificBougainville = "pacific/bougainville", t.PacificChatham = "pacific/chatham", t.PacificChuuk = "pacific/chuuk", t.PacificEaster = "pacific/easter", t.PacificEfate = "pacific/efate", t.PacificFakaofo = "pacific/fakaofo", t.PacificFiji = "pacific/fiji", t.PacificFunafuti = "pacific/funafuti", t.PacificGalapagos = "pacific/galapagos", t.PacificGambier = "pacific/gambier", t.PacificGuadalcanal = "pacific/guadalcanal", t.PacificGuam = "pacific/guam", t.PacificHonolulu = "pacific/honolulu", t.PacificKanton = "pacific/kanton", t.PacificKiritimati = "pacific/kiritimati", t.PacificKosrae = "pacific/kosrae", t.PacificKwajalein = "pacific/kwajalein", t.PacificMajuro = "pacific/majuro", t.PacificMarquesas = "pacific/marquesas", t.PacificMidway = "pacific/midway", t.PacificNauru = "pacific/nauru", t.PacificNiue = "pacific/niue", t.PacificNorfolk = "pacific/norfolk", t.PacificNoumea = "pacific/noumea", t.PacificPagoPago = "pacific/pago_pago", t.PacificPalau = "pacific/palau", t.PacificPitcairn = "pacific/pitcairn", t.PacificPohnpei = "pacific/pohnpei", t.PacificPortMoresby = "pacific/port_moresby", t.PacificRarotonga = "pacific/rarotonga", t.PacificSaipan = "pacific/saipan", t.PacificTahiti = "pacific/tahiti", t.PacificTarawa = "pacific/tarawa", t.PacificTongatapu = "pacific/tongatapu", t.PacificWake = "pacific/wake", t.PacificWallis = "pacific/wallis", t.Utc = "utc";
6233
+ t.Light = "light", t.Dark = "dark";
6238
6234
  })(ti || (ti = {}));
6239
6235
  var ii;
6240
6236
  (function(t) {
6241
- t.Geolocation = "geolocation", t.Camera = "camera", t.Microphone = "microphone", t.Notifications = "notifications", t.Midi = "midi", t.Push = "push", t.Clipboardread = "clipboard-read", t.Clipboardwrite = "clipboard-write", t.Paymenthandler = "payment-handler", t.Usb = "usb", t.Bluetooth = "bluetooth", t.Accelerometer = "accelerometer", t.Gyroscope = "gyroscope", t.Magnetometer = "magnetometer", t.Ambientlightsensor = "ambient-light-sensor", t.Backgroundsync = "background-sync", t.Persistentstorage = "persistent-storage", t.Screenwakelock = "screen-wake-lock", t.Webshare = "web-share", t.Xrspatialtracking = "xr-spatial-tracking";
6237
+ t.AfricaAbidjan = "africa/abidjan", t.AfricaAccra = "africa/accra", t.AfricaAddisAbaba = "africa/addis_ababa", t.AfricaAlgiers = "africa/algiers", t.AfricaAsmara = "africa/asmara", t.AfricaBamako = "africa/bamako", t.AfricaBangui = "africa/bangui", t.AfricaBanjul = "africa/banjul", t.AfricaBissau = "africa/bissau", t.AfricaBlantyre = "africa/blantyre", t.AfricaBrazzaville = "africa/brazzaville", t.AfricaBujumbura = "africa/bujumbura", t.AfricaCairo = "africa/cairo", t.AfricaCasablanca = "africa/casablanca", t.AfricaCeuta = "africa/ceuta", t.AfricaConakry = "africa/conakry", t.AfricaDakar = "africa/dakar", t.AfricaDarEsSalaam = "africa/dar_es_salaam", t.AfricaDjibouti = "africa/djibouti", t.AfricaDouala = "africa/douala", t.AfricaElAaiun = "africa/el_aaiun", t.AfricaFreetown = "africa/freetown", t.AfricaGaborone = "africa/gaborone", t.AfricaHarare = "africa/harare", t.AfricaJohannesburg = "africa/johannesburg", t.AfricaJuba = "africa/juba", t.AfricaKampala = "africa/kampala", t.AfricaKhartoum = "africa/khartoum", t.AfricaKigali = "africa/kigali", t.AfricaKinshasa = "africa/kinshasa", t.AfricaLagos = "africa/lagos", t.AfricaLibreville = "africa/libreville", t.AfricaLome = "africa/lome", t.AfricaLuanda = "africa/luanda", t.AfricaLubumbashi = "africa/lubumbashi", t.AfricaLusaka = "africa/lusaka", t.AfricaMalabo = "africa/malabo", t.AfricaMaputo = "africa/maputo", t.AfricaMaseru = "africa/maseru", t.AfricaMbabane = "africa/mbabane", t.AfricaMogadishu = "africa/mogadishu", t.AfricaMonrovia = "africa/monrovia", t.AfricaNairobi = "africa/nairobi", t.AfricaNdjamena = "africa/ndjamena", t.AfricaNiamey = "africa/niamey", t.AfricaNouakchott = "africa/nouakchott", t.AfricaOuagadougou = "africa/ouagadougou", t.AfricaPortonovo = "africa/porto-novo", t.AfricaSaoTome = "africa/sao_tome", t.AfricaTripoli = "africa/tripoli", t.AfricaTunis = "africa/tunis", t.AfricaWindhoek = "africa/windhoek", t.AmericaAdak = "america/adak", t.AmericaAnchorage = "america/anchorage", t.AmericaAnguilla = "america/anguilla", t.AmericaAntigua = "america/antigua", t.AmericaAraguaina = "america/araguaina", t.AmericaArgentinaBuenosAires = "america/argentina/buenos_aires", t.AmericaArgentinaCatamarca = "america/argentina/catamarca", t.AmericaArgentinaCordoba = "america/argentina/cordoba", t.AmericaArgentinaJujuy = "america/argentina/jujuy", t.AmericaArgentinaLaRioja = "america/argentina/la_rioja", t.AmericaArgentinaMendoza = "america/argentina/mendoza", t.AmericaArgentinaRioGallegos = "america/argentina/rio_gallegos", t.AmericaArgentinaSalta = "america/argentina/salta", t.AmericaArgentinaSanJuan = "america/argentina/san_juan", t.AmericaArgentinaSanLuis = "america/argentina/san_luis", t.AmericaArgentinaTucuman = "america/argentina/tucuman", t.AmericaArgentinaUshuaia = "america/argentina/ushuaia", t.AmericaAruba = "america/aruba", t.AmericaAsuncion = "america/asuncion", t.AmericaAtikokan = "america/atikokan", t.AmericaBahia = "america/bahia", t.AmericaBahiaBanderas = "america/bahia_banderas", t.AmericaBarbados = "america/barbados", t.AmericaBelem = "america/belem", t.AmericaBelize = "america/belize", t.AmericaBlancsablon = "america/blanc-sablon", t.AmericaBoaVista = "america/boa_vista", t.AmericaBogota = "america/bogota", t.AmericaBoise = "america/boise", t.AmericaCambridgeBay = "america/cambridge_bay", t.AmericaCampoGrande = "america/campo_grande", t.AmericaCancun = "america/cancun", t.AmericaCaracas = "america/caracas", t.AmericaCayenne = "america/cayenne", t.AmericaCayman = "america/cayman", t.AmericaChicago = "america/chicago", t.AmericaChihuahua = "america/chihuahua", t.AmericaCiudadJuarez = "america/ciudad_juarez", t.AmericaCostaRica = "america/costa_rica", t.AmericaCoyhaique = "america/coyhaique", t.AmericaCreston = "america/creston", t.AmericaCuiaba = "america/cuiaba", t.AmericaCuracao = "america/curacao", t.AmericaDanmarkshavn = "america/danmarkshavn", t.AmericaDawson = "america/dawson", t.AmericaDawsonCreek = "america/dawson_creek", t.AmericaDenver = "america/denver", t.AmericaDetroit = "america/detroit", t.AmericaDominica = "america/dominica", t.AmericaEdmonton = "america/edmonton", t.AmericaEirunepe = "america/eirunepe", t.AmericaElSalvador = "america/el_salvador", t.AmericaFortNelson = "america/fort_nelson", t.AmericaFortaleza = "america/fortaleza", t.AmericaGlaceBay = "america/glace_bay", t.AmericaGooseBay = "america/goose_bay", t.AmericaGrandTurk = "america/grand_turk", t.AmericaGrenada = "america/grenada", t.AmericaGuadeloupe = "america/guadeloupe", t.AmericaGuatemala = "america/guatemala", t.AmericaGuayaquil = "america/guayaquil", t.AmericaGuyana = "america/guyana", t.AmericaHalifax = "america/halifax", t.AmericaHavana = "america/havana", t.AmericaHermosillo = "america/hermosillo", t.AmericaIndianaIndianapolis = "america/indiana/indianapolis", t.AmericaIndianaKnox = "america/indiana/knox", t.AmericaIndianaMarengo = "america/indiana/marengo", t.AmericaIndianaPetersburg = "america/indiana/petersburg", t.AmericaIndianaTellCity = "america/indiana/tell_city", t.AmericaIndianaVevay = "america/indiana/vevay", t.AmericaIndianaVincennes = "america/indiana/vincennes", t.AmericaIndianaWinamac = "america/indiana/winamac", t.AmericaInuvik = "america/inuvik", t.AmericaIqaluit = "america/iqaluit", t.AmericaJamaica = "america/jamaica", t.AmericaJuneau = "america/juneau", t.AmericaKentuckyLouisville = "america/kentucky/louisville", t.AmericaKentuckyMonticello = "america/kentucky/monticello", t.AmericaKralendijk = "america/kralendijk", t.AmericaLaPaz = "america/la_paz", t.AmericaLima = "america/lima", t.AmericaLosAngeles = "america/los_angeles", t.AmericaLowerPrinces = "america/lower_princes", t.AmericaMaceio = "america/maceio", t.AmericaManagua = "america/managua", t.AmericaManaus = "america/manaus", t.AmericaMarigot = "america/marigot", t.AmericaMartinique = "america/martinique", t.AmericaMatamoros = "america/matamoros", t.AmericaMazatlan = "america/mazatlan", t.AmericaMenominee = "america/menominee", t.AmericaMerida = "america/merida", t.AmericaMetlakatla = "america/metlakatla", t.AmericaMexicoCity = "america/mexico_city", t.AmericaMiquelon = "america/miquelon", t.AmericaMoncton = "america/moncton", t.AmericaMonterrey = "america/monterrey", t.AmericaMontevideo = "america/montevideo", t.AmericaMontserrat = "america/montserrat", t.AmericaNassau = "america/nassau", t.AmericaNewYork = "america/new_york", t.AmericaNome = "america/nome", t.AmericaNoronha = "america/noronha", t.AmericaNorthDakotaBeulah = "america/north_dakota/beulah", t.AmericaNorthDakotaCenter = "america/north_dakota/center", t.AmericaNorthDakotaNewSalem = "america/north_dakota/new_salem", t.AmericaNuuk = "america/nuuk", t.AmericaOjinaga = "america/ojinaga", t.AmericaPanama = "america/panama", t.AmericaParamaribo = "america/paramaribo", t.AmericaPhoenix = "america/phoenix", t.AmericaPortauprince = "america/port-au-prince", t.AmericaPortOfSpain = "america/port_of_spain", t.AmericaPortoVelho = "america/porto_velho", t.AmericaPuertoRico = "america/puerto_rico", t.AmericaPuntaArenas = "america/punta_arenas", t.AmericaRankinInlet = "america/rankin_inlet", t.AmericaRecife = "america/recife", t.AmericaRegina = "america/regina", t.AmericaResolute = "america/resolute", t.AmericaRioBranco = "america/rio_branco", t.AmericaSantarem = "america/santarem", t.AmericaSantiago = "america/santiago", t.AmericaSantoDomingo = "america/santo_domingo", t.AmericaSaoPaulo = "america/sao_paulo", t.AmericaScoresbysund = "america/scoresbysund", t.AmericaSitka = "america/sitka", t.AmericaStBarthelemy = "america/st_barthelemy", t.AmericaStJohns = "america/st_johns", t.AmericaStKitts = "america/st_kitts", t.AmericaStLucia = "america/st_lucia", t.AmericaStThomas = "america/st_thomas", t.AmericaStVincent = "america/st_vincent", t.AmericaSwiftCurrent = "america/swift_current", t.AmericaTegucigalpa = "america/tegucigalpa", t.AmericaThule = "america/thule", t.AmericaTijuana = "america/tijuana", t.AmericaToronto = "america/toronto", t.AmericaTortola = "america/tortola", t.AmericaVancouver = "america/vancouver", t.AmericaWhitehorse = "america/whitehorse", t.AmericaWinnipeg = "america/winnipeg", t.AmericaYakutat = "america/yakutat", t.AntarcticaCasey = "antarctica/casey", t.AntarcticaDavis = "antarctica/davis", t.AntarcticaDumontdurville = "antarctica/dumontdurville", t.AntarcticaMacquarie = "antarctica/macquarie", t.AntarcticaMawson = "antarctica/mawson", t.AntarcticaMcmurdo = "antarctica/mcmurdo", t.AntarcticaPalmer = "antarctica/palmer", t.AntarcticaRothera = "antarctica/rothera", t.AntarcticaSyowa = "antarctica/syowa", t.AntarcticaTroll = "antarctica/troll", t.AntarcticaVostok = "antarctica/vostok", t.ArcticLongyearbyen = "arctic/longyearbyen", t.AsiaAden = "asia/aden", t.AsiaAlmaty = "asia/almaty", t.AsiaAmman = "asia/amman", t.AsiaAnadyr = "asia/anadyr", t.AsiaAqtau = "asia/aqtau", t.AsiaAqtobe = "asia/aqtobe", t.AsiaAshgabat = "asia/ashgabat", t.AsiaAtyrau = "asia/atyrau", t.AsiaBaghdad = "asia/baghdad", t.AsiaBahrain = "asia/bahrain", t.AsiaBaku = "asia/baku", t.AsiaBangkok = "asia/bangkok", t.AsiaBarnaul = "asia/barnaul", t.AsiaBeirut = "asia/beirut", t.AsiaBishkek = "asia/bishkek", t.AsiaBrunei = "asia/brunei", t.AsiaChita = "asia/chita", t.AsiaColombo = "asia/colombo", t.AsiaDamascus = "asia/damascus", t.AsiaDhaka = "asia/dhaka", t.AsiaDili = "asia/dili", t.AsiaDubai = "asia/dubai", t.AsiaDushanbe = "asia/dushanbe", t.AsiaFamagusta = "asia/famagusta", t.AsiaGaza = "asia/gaza", t.AsiaHebron = "asia/hebron", t.AsiaHoChiMinh = "asia/ho_chi_minh", t.AsiaHongKong = "asia/hong_kong", t.AsiaHovd = "asia/hovd", t.AsiaIrkutsk = "asia/irkutsk", t.AsiaJakarta = "asia/jakarta", t.AsiaJayapura = "asia/jayapura", t.AsiaJerusalem = "asia/jerusalem", t.AsiaKabul = "asia/kabul", t.AsiaKamchatka = "asia/kamchatka", t.AsiaKarachi = "asia/karachi", t.AsiaKathmandu = "asia/kathmandu", t.AsiaKhandyga = "asia/khandyga", t.AsiaKolkata = "asia/kolkata", t.AsiaKrasnoyarsk = "asia/krasnoyarsk", t.AsiaKualaLumpur = "asia/kuala_lumpur", t.AsiaKuching = "asia/kuching", t.AsiaKuwait = "asia/kuwait", t.AsiaMacau = "asia/macau", t.AsiaMagadan = "asia/magadan", t.AsiaMakassar = "asia/makassar", t.AsiaManila = "asia/manila", t.AsiaMuscat = "asia/muscat", t.AsiaNicosia = "asia/nicosia", t.AsiaNovokuznetsk = "asia/novokuznetsk", t.AsiaNovosibirsk = "asia/novosibirsk", t.AsiaOmsk = "asia/omsk", t.AsiaOral = "asia/oral", t.AsiaPhnomPenh = "asia/phnom_penh", t.AsiaPontianak = "asia/pontianak", t.AsiaPyongyang = "asia/pyongyang", t.AsiaQatar = "asia/qatar", t.AsiaQostanay = "asia/qostanay", t.AsiaQyzylorda = "asia/qyzylorda", t.AsiaRiyadh = "asia/riyadh", t.AsiaSakhalin = "asia/sakhalin", t.AsiaSamarkand = "asia/samarkand", t.AsiaSeoul = "asia/seoul", t.AsiaShanghai = "asia/shanghai", t.AsiaSingapore = "asia/singapore", t.AsiaSrednekolymsk = "asia/srednekolymsk", t.AsiaTaipei = "asia/taipei", t.AsiaTashkent = "asia/tashkent", t.AsiaTbilisi = "asia/tbilisi", t.AsiaTehran = "asia/tehran", t.AsiaThimphu = "asia/thimphu", t.AsiaTokyo = "asia/tokyo", t.AsiaTomsk = "asia/tomsk", t.AsiaUlaanbaatar = "asia/ulaanbaatar", t.AsiaUrumqi = "asia/urumqi", t.AsiaUstnera = "asia/ust-nera", t.AsiaVientiane = "asia/vientiane", t.AsiaVladivostok = "asia/vladivostok", t.AsiaYakutsk = "asia/yakutsk", t.AsiaYangon = "asia/yangon", t.AsiaYekaterinburg = "asia/yekaterinburg", t.AsiaYerevan = "asia/yerevan", t.AtlanticAzores = "atlantic/azores", t.AtlanticBermuda = "atlantic/bermuda", t.AtlanticCanary = "atlantic/canary", t.AtlanticCapeVerde = "atlantic/cape_verde", t.AtlanticFaroe = "atlantic/faroe", t.AtlanticMadeira = "atlantic/madeira", t.AtlanticReykjavik = "atlantic/reykjavik", t.AtlanticSouthGeorgia = "atlantic/south_georgia", t.AtlanticStHelena = "atlantic/st_helena", t.AtlanticStanley = "atlantic/stanley", t.AustraliaAdelaide = "australia/adelaide", t.AustraliaBrisbane = "australia/brisbane", t.AustraliaBrokenHill = "australia/broken_hill", t.AustraliaDarwin = "australia/darwin", t.AustraliaEucla = "australia/eucla", t.AustraliaHobart = "australia/hobart", t.AustraliaLindeman = "australia/lindeman", t.AustraliaLordHowe = "australia/lord_howe", t.AustraliaMelbourne = "australia/melbourne", t.AustraliaPerth = "australia/perth", t.AustraliaSydney = "australia/sydney", t.EuropeAmsterdam = "europe/amsterdam", t.EuropeAndorra = "europe/andorra", t.EuropeAstrakhan = "europe/astrakhan", t.EuropeAthens = "europe/athens", t.EuropeBelgrade = "europe/belgrade", t.EuropeBerlin = "europe/berlin", t.EuropeBratislava = "europe/bratislava", t.EuropeBrussels = "europe/brussels", t.EuropeBucharest = "europe/bucharest", t.EuropeBudapest = "europe/budapest", t.EuropeBusingen = "europe/busingen", t.EuropeChisinau = "europe/chisinau", t.EuropeCopenhagen = "europe/copenhagen", t.EuropeDublin = "europe/dublin", t.EuropeGibraltar = "europe/gibraltar", t.EuropeGuernsey = "europe/guernsey", t.EuropeHelsinki = "europe/helsinki", t.EuropeIsleOfMan = "europe/isle_of_man", t.EuropeIstanbul = "europe/istanbul", t.EuropeJersey = "europe/jersey", t.EuropeKaliningrad = "europe/kaliningrad", t.EuropeKirov = "europe/kirov", t.EuropeKyiv = "europe/kyiv", t.EuropeLisbon = "europe/lisbon", t.EuropeLjubljana = "europe/ljubljana", t.EuropeLondon = "europe/london", t.EuropeLuxembourg = "europe/luxembourg", t.EuropeMadrid = "europe/madrid", t.EuropeMalta = "europe/malta", t.EuropeMariehamn = "europe/mariehamn", t.EuropeMinsk = "europe/minsk", t.EuropeMonaco = "europe/monaco", t.EuropeMoscow = "europe/moscow", t.EuropeOslo = "europe/oslo", t.EuropeParis = "europe/paris", t.EuropePodgorica = "europe/podgorica", t.EuropePrague = "europe/prague", t.EuropeRiga = "europe/riga", t.EuropeRome = "europe/rome", t.EuropeSamara = "europe/samara", t.EuropeSanMarino = "europe/san_marino", t.EuropeSarajevo = "europe/sarajevo", t.EuropeSaratov = "europe/saratov", t.EuropeSimferopol = "europe/simferopol", t.EuropeSkopje = "europe/skopje", t.EuropeSofia = "europe/sofia", t.EuropeStockholm = "europe/stockholm", t.EuropeTallinn = "europe/tallinn", t.EuropeTirane = "europe/tirane", t.EuropeUlyanovsk = "europe/ulyanovsk", t.EuropeVaduz = "europe/vaduz", t.EuropeVatican = "europe/vatican", t.EuropeVienna = "europe/vienna", t.EuropeVilnius = "europe/vilnius", t.EuropeVolgograd = "europe/volgograd", t.EuropeWarsaw = "europe/warsaw", t.EuropeZagreb = "europe/zagreb", t.EuropeZurich = "europe/zurich", t.IndianAntananarivo = "indian/antananarivo", t.IndianChagos = "indian/chagos", t.IndianChristmas = "indian/christmas", t.IndianCocos = "indian/cocos", t.IndianComoro = "indian/comoro", t.IndianKerguelen = "indian/kerguelen", t.IndianMahe = "indian/mahe", t.IndianMaldives = "indian/maldives", t.IndianMauritius = "indian/mauritius", t.IndianMayotte = "indian/mayotte", t.IndianReunion = "indian/reunion", t.PacificApia = "pacific/apia", t.PacificAuckland = "pacific/auckland", t.PacificBougainville = "pacific/bougainville", t.PacificChatham = "pacific/chatham", t.PacificChuuk = "pacific/chuuk", t.PacificEaster = "pacific/easter", t.PacificEfate = "pacific/efate", t.PacificFakaofo = "pacific/fakaofo", t.PacificFiji = "pacific/fiji", t.PacificFunafuti = "pacific/funafuti", t.PacificGalapagos = "pacific/galapagos", t.PacificGambier = "pacific/gambier", t.PacificGuadalcanal = "pacific/guadalcanal", t.PacificGuam = "pacific/guam", t.PacificHonolulu = "pacific/honolulu", t.PacificKanton = "pacific/kanton", t.PacificKiritimati = "pacific/kiritimati", t.PacificKosrae = "pacific/kosrae", t.PacificKwajalein = "pacific/kwajalein", t.PacificMajuro = "pacific/majuro", t.PacificMarquesas = "pacific/marquesas", t.PacificMidway = "pacific/midway", t.PacificNauru = "pacific/nauru", t.PacificNiue = "pacific/niue", t.PacificNorfolk = "pacific/norfolk", t.PacificNoumea = "pacific/noumea", t.PacificPagoPago = "pacific/pago_pago", t.PacificPalau = "pacific/palau", t.PacificPitcairn = "pacific/pitcairn", t.PacificPohnpei = "pacific/pohnpei", t.PacificPortMoresby = "pacific/port_moresby", t.PacificRarotonga = "pacific/rarotonga", t.PacificSaipan = "pacific/saipan", t.PacificTahiti = "pacific/tahiti", t.PacificTarawa = "pacific/tarawa", t.PacificTongatapu = "pacific/tongatapu", t.PacificWake = "pacific/wake", t.PacificWallis = "pacific/wallis", t.Utc = "utc";
6242
6238
  })(ii || (ii = {}));
6243
6239
  var ni;
6244
6240
  (function(t) {
6245
- t.Jpg = "jpg", t.Jpeg = "jpeg", t.Png = "png", t.Webp = "webp", t.Heic = "heic", t.Avif = "avif", t.Gif = "gif";
6241
+ t.Geolocation = "geolocation", t.Camera = "camera", t.Microphone = "microphone", t.Notifications = "notifications", t.Midi = "midi", t.Push = "push", t.Clipboardread = "clipboard-read", t.Clipboardwrite = "clipboard-write", t.Paymenthandler = "payment-handler", t.Usb = "usb", t.Bluetooth = "bluetooth", t.Accelerometer = "accelerometer", t.Gyroscope = "gyroscope", t.Magnetometer = "magnetometer", t.Ambientlightsensor = "ambient-light-sensor", t.Backgroundsync = "background-sync", t.Persistentstorage = "persistent-storage", t.Screenwakelock = "screen-wake-lock", t.Webshare = "web-share", t.Xrspatialtracking = "xr-spatial-tracking";
6246
6242
  })(ni || (ni = {}));
6247
6243
  var oi;
6248
6244
  (function(t) {
6249
- t.GET = "GET", t.POST = "POST", t.PUT = "PUT", t.PATCH = "PATCH", t.DELETE = "DELETE", t.OPTIONS = "OPTIONS", t.HEAD = "HEAD";
6245
+ t.Jpg = "jpg", t.Jpeg = "jpeg", t.Png = "png", t.Webp = "webp", t.Heic = "heic", t.Avif = "avif", t.Gif = "gif";
6250
6246
  })(oi || (oi = {}));
6251
6247
  var ai;
6252
6248
  (function(t) {
6253
- t.Auto = "auto", t.Center = "center", t.Topleft = "top-left", t.Top = "top", t.Topright = "top-right", t.Left = "left", t.Right = "right", t.Bottomleft = "bottom-left", t.Bottom = "bottom", t.Bottomright = "bottom-right";
6249
+ t.GET = "GET", t.POST = "POST", t.PUT = "PUT", t.PATCH = "PATCH", t.DELETE = "DELETE", t.OPTIONS = "OPTIONS", t.HEAD = "HEAD";
6254
6250
  })(ai || (ai = {}));
6255
6251
  var si;
6256
6252
  (function(t) {
6257
- t.Functions = "functions", t.Sites = "sites";
6253
+ t.Auto = "auto", t.Center = "center", t.Topleft = "top-left", t.Top = "top", t.Topright = "top-right", t.Left = "left", t.Right = "right", t.Bottomleft = "bottom-left", t.Bottom = "bottom", t.Bottomright = "bottom-right";
6258
6254
  })(si || (si = {}));
6259
6255
  var ri;
6260
6256
  (function(t) {
6261
- t.Http = "http", t.Schedule = "schedule", t.Event = "event";
6257
+ t.Functions = "functions", t.Sites = "sites";
6262
6258
  })(ri || (ri = {}));
6263
6259
  var ci;
6264
6260
  (function(t) {
6265
- t.Waiting = "waiting", t.Processing = "processing", t.Completed = "completed", t.Failed = "failed", t.Scheduled = "scheduled";
6261
+ t.Http = "http", t.Schedule = "schedule", t.Event = "event";
6266
6262
  })(ci || (ci = {}));
6263
+ var di;
6264
+ (function(t) {
6265
+ t.Waiting = "waiting", t.Processing = "processing", t.Completed = "completed", t.Failed = "failed", t.Scheduled = "scheduled";
6266
+ })(di || (di = {}));
6267
6267
  const ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6268
6268
  __proto__: null,
6269
- Account: Yt,
6269
+ Account: Jt,
6270
6270
  AppwriteException: h,
6271
6271
  get AuthenticationFactor() {
6272
- return Qt;
6272
+ return Tt;
6273
6273
  },
6274
6274
  get AuthenticatorType() {
6275
- return Zt;
6275
+ return Qt;
6276
6276
  },
6277
6277
  Avatars: on,
6278
6278
  get Browser() {
6279
- return zt;
6279
+ return Ot;
6280
6280
  },
6281
6281
  get BrowserPermission() {
6282
- return ii;
6282
+ return ni;
6283
6283
  },
6284
6284
  get BrowserTheme() {
6285
- return ei;
6285
+ return ti;
6286
6286
  },
6287
6287
  Channel: Pe,
6288
- Client: Ce,
6288
+ Client: xe,
6289
6289
  get Condition() {
6290
- return Jt;
6290
+ return Zt;
6291
6291
  },
6292
6292
  get CreditCard() {
6293
- return Ot;
6293
+ return Ft;
6294
6294
  },
6295
6295
  Databases: Jn,
6296
6296
  DocumentsDB: Zn,
6297
6297
  get ExecutionMethod() {
6298
- return oi;
6298
+ return ai;
6299
6299
  },
6300
6300
  get ExecutionResourceType() {
6301
- return si;
6301
+ return ri;
6302
6302
  },
6303
6303
  get ExecutionStatus() {
6304
- return ci;
6304
+ return di;
6305
6305
  },
6306
6306
  get ExecutionTrigger() {
6307
- return ri;
6307
+ return ci;
6308
6308
  },
6309
6309
  get Flag() {
6310
- return Ft;
6310
+ return ei;
6311
6311
  },
6312
6312
  Functions: Qn,
6313
6313
  Graphql: Tn,
6314
6314
  ID: Ve,
6315
6315
  get ImageFormat() {
6316
- return ni;
6316
+ return oi;
6317
6317
  },
6318
6318
  get ImageGravity() {
6319
- return ai;
6319
+ return si;
6320
6320
  },
6321
6321
  Locale: zn,
6322
6322
  Messaging: On,
6323
6323
  get OAuthProvider() {
6324
- return Tt;
6324
+ return zt;
6325
6325
  },
6326
6326
  Operator: T,
6327
6327
  Organization: Fn,
@@ -6334,7 +6334,7 @@ const ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6334
6334
  TablesDB: io,
6335
6335
  Teams: an,
6336
6336
  get Timezone() {
6337
- return ti;
6337
+ return ii;
6338
6338
  },
6339
6339
  VectorsDB: no
6340
6340
  }, Symbol.toStringTag, { value: "Module" })), so = {
@@ -6437,10 +6437,13 @@ const ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6437
6437
  signOutAllSessions: "Sign out everywhere",
6438
6438
  signOutAllSessionsDescription: "End every session, including this one.",
6439
6439
  noConnections: "No connected accounts.",
6440
+ noConnectionsDescription: "Link an OAuth provider to sign in faster next time.",
6440
6441
  disconnect: "Disconnect",
6441
6442
  connectProvider: "Connect {provider}",
6442
6443
  noActivity: "No recent activity.",
6444
+ noActivityDescription: "Security events for this account will appear here.",
6443
6445
  noSessions: "No active sessions.",
6446
+ noSessionsDescription: "Active sessions will show up here once you sign in on a device.",
6444
6447
  deleteAccount: "Delete account",
6445
6448
  deleteAccountDescription: "Deleting disables your account and signs you out everywhere. An administrator can restore it.",
6446
6449
  deleteAccountConfirm: "Delete my account",
@@ -6563,10 +6566,10 @@ const co = {
6563
6566
  zoho: "Zoho",
6564
6567
  zoom: "Zoom"
6565
6568
  };
6566
- function pt(t) {
6569
+ function xt(t) {
6567
6570
  return co[t] ?? t.charAt(0).toUpperCase() + t.slice(1);
6568
6571
  }
6569
- const It = (t, e, n = 401) => Object.assign(new Error(e), { type: t, code: n }), xe = () => (/* @__PURE__ */ new Date()).toISOString(), He = (t) => new Date(Date.now() - t * 6e4).toISOString(), At = [
6572
+ const vt = (t, e, n = 401) => Object.assign(new Error(e), { type: t, code: n }), Ce = () => (/* @__PURE__ */ new Date()).toISOString(), He = (t) => new Date(Date.now() - t * 6e4).toISOString(), It = [
6570
6573
  "amber",
6571
6574
  "brave",
6572
6575
  "calm",
@@ -6579,7 +6582,7 @@ const It = (t, e, n = 401) => Object.assign(new Error(e), { type: t, code: n }),
6579
6582
  "juniper",
6580
6583
  "kite",
6581
6584
  "lumen"
6582
- ], Di = () => `${At[Math.floor(Math.random() * At.length)]}-${At[Math.floor(Math.random() * At.length)]}`, Oe = () => Math.random().toString(36).slice(2, 12), Bi = () => Array.from({ length: 2 }, () => Math.random().toString(36).slice(2, 7)).join("-"), lo = {
6585
+ ], Di = () => `${It[Math.floor(Math.random() * It.length)]}-${It[Math.floor(Math.random() * It.length)]}`, Oe = () => Math.random().toString(36).slice(2, 12), Bi = () => Array.from({ length: 2 }, () => Math.random().toString(36).slice(2, 7)).join("-"), lo = {
6583
6586
  name: "Ada Lovelace",
6584
6587
  email: "ada@example.com",
6585
6588
  phone: "+15550100"
@@ -6594,7 +6597,7 @@ class uo {
6594
6597
  return this.user = {
6595
6598
  $id: "preview-user",
6596
6599
  $createdAt: He(1440 * 30),
6597
- $updatedAt: xe(),
6600
+ $updatedAt: Ce(),
6598
6601
  name: n ? "" : e.name ?? this.seed.name,
6599
6602
  registration: He(1440 * 30),
6600
6603
  status: !0,
@@ -6607,14 +6610,14 @@ class uo {
6607
6610
  mfa: this.mfaEnabled,
6608
6611
  prefs: {},
6609
6612
  targets: [],
6610
- accessedAt: xe()
6613
+ accessedAt: Ce()
6611
6614
  }, this.seedActivity(n ? "anonymous" : "email"), this.user;
6612
6615
  }
6613
6616
  seedActivity(e) {
6614
6617
  if (this.sessions.length > 0) return;
6615
6618
  const n = {
6616
- $createdAt: xe(),
6617
- $updatedAt: xe(),
6619
+ $createdAt: Ce(),
6620
+ $updatedAt: Ce(),
6618
6621
  userId: "preview-user",
6619
6622
  expire: new Date(Date.now() + 365 * 864e5).toISOString(),
6620
6623
  providerUid: "",
@@ -6695,7 +6698,7 @@ class uo {
6695
6698
  ], this.logs = [
6696
6699
  {
6697
6700
  event: "session.create",
6698
- time: xe(),
6701
+ time: Ce(),
6699
6702
  clientName: "Chrome",
6700
6703
  osName: "macOS",
6701
6704
  countryName: "Germany",
@@ -6721,9 +6724,9 @@ class uo {
6721
6724
  }
6722
6725
  requireUser() {
6723
6726
  if (!this.user)
6724
- throw It("general_unauthorized_scope", "User (role: guests) missing scope (account)");
6727
+ throw vt("general_unauthorized_scope", "User (role: guests) missing scope (account)");
6725
6728
  if (this.mfaPending)
6726
- throw It(
6729
+ throw vt(
6727
6730
  "user_more_factors_required",
6728
6731
  "More factors are required to complete the sign in process."
6729
6732
  );
@@ -6731,7 +6734,7 @@ class uo {
6731
6734
  }
6732
6735
  requireRecentChallenge() {
6733
6736
  if (Date.now() - this.lastChallenge > 30 * 6e4)
6734
- throw It(
6737
+ throw vt(
6735
6738
  "user_challenge_required",
6736
6739
  "A recently successful challenge is required to complete this action."
6737
6740
  );
@@ -6768,7 +6771,7 @@ class uo {
6768
6771
  async createMagicURLToken(e, n) {
6769
6772
  return this.tokens.set(e, { email: n }), this.delay({
6770
6773
  $id: Oe(),
6771
- $createdAt: xe(),
6774
+ $createdAt: Ce(),
6772
6775
  userId: e,
6773
6776
  secret: "",
6774
6777
  expire: "",
@@ -6778,7 +6781,7 @@ class uo {
6778
6781
  async createEmailToken(e, n) {
6779
6782
  return this.tokens.set(e, { email: n }), this.delay({
6780
6783
  $id: Oe(),
6781
- $createdAt: xe(),
6784
+ $createdAt: Ce(),
6782
6785
  userId: e,
6783
6786
  secret: "",
6784
6787
  expire: "",
@@ -6786,7 +6789,7 @@ class uo {
6786
6789
  });
6787
6790
  }
6788
6791
  async createPhoneToken(e, n) {
6789
- return this.tokens.set(e, { phone: n }), this.delay({ $id: Oe(), $createdAt: xe(), userId: e, secret: "", expire: "", phrase: "" });
6792
+ return this.tokens.set(e, { phone: n }), this.delay({ $id: Oe(), $createdAt: Ce(), userId: e, secret: "", expire: "", phrase: "" });
6790
6793
  }
6791
6794
  async createSession(e) {
6792
6795
  return this.delay(() => {
@@ -6827,7 +6830,7 @@ class uo {
6827
6830
  async updateEmail(e) {
6828
6831
  return this.delay(() => {
6829
6832
  const n = this.requireUser();
6830
- return n.email = e, n.emailVerification = !1, n.passwordUpdate = xe(), n;
6833
+ return n.email = e, n.emailVerification = !1, n.passwordUpdate = Ce(), n;
6831
6834
  });
6832
6835
  }
6833
6836
  async updatePhone(e) {
@@ -6839,7 +6842,7 @@ class uo {
6839
6842
  async updatePassword() {
6840
6843
  return this.delay(() => {
6841
6844
  const e = this.requireUser();
6842
- return e.passwordUpdate = xe(), e;
6845
+ return e.passwordUpdate = Ce(), e;
6843
6846
  });
6844
6847
  }
6845
6848
  async updateStatus() {
@@ -6878,7 +6881,7 @@ class uo {
6878
6881
  });
6879
6882
  }
6880
6883
  async createMFAChallenge() {
6881
- return this.delay({ $id: Oe(), $createdAt: xe(), userId: "preview-user", expire: "" });
6884
+ return this.delay({ $id: Oe(), $createdAt: Ce(), userId: "preview-user", expire: "" });
6882
6885
  }
6883
6886
  async updateMFAChallenge() {
6884
6887
  return this.delay(() => (this.mfaPending = !1, this.lastChallenge = Date.now(), this.sessions[0]));
@@ -6907,7 +6910,7 @@ class uo {
6907
6910
  async createMFARecoveryCodes() {
6908
6911
  return this.delay(() => {
6909
6912
  if (this.recoveryCodes.length > 0)
6910
- throw It("user_recovery_codes_already_exists", "Recovery codes already generated.", 409);
6913
+ throw vt("user_recovery_codes_already_exists", "Recovery codes already generated.", 409);
6911
6914
  return this.recoveryCodes = Array.from({ length: 6 }, Bi), { recoveryCodes: this.recoveryCodes };
6912
6915
  });
6913
6916
  }
@@ -6982,10 +6985,10 @@ function tt(t) {
6982
6985
  }
6983
6986
  return { message: String(t), type: "", code: 0 };
6984
6987
  }
6985
- function yt(t, e) {
6988
+ function gt(t, e) {
6986
6989
  return tt(t).type === e;
6987
6990
  }
6988
- function xt(t, e, n = "link") {
6991
+ function Ct(t, e, n = "link") {
6989
6992
  const i = tt(t);
6990
6993
  switch (i.type) {
6991
6994
  case oe.invalidCredentials:
@@ -7032,11 +7035,11 @@ function ho(t) {
7032
7035
  const e = tt(t);
7033
7036
  return !!(e.type === oe.projectNotFound || e.type === oe.unknownOrigin || e.type === oe.routeNotFound || !e.message && e.code === 404 || e.code === 0 && /fetch|network|load failed|failed to fetch/i.test(e.message));
7034
7037
  }
7035
- const di = (t) => `authui:active-team:${t}`;
7038
+ const li = (t) => `authui:active-team:${t}`;
7036
7039
  function Xi(t) {
7037
7040
  if (typeof localStorage > "u" || !t) return null;
7038
7041
  try {
7039
- return localStorage.getItem(di(t));
7042
+ return localStorage.getItem(li(t));
7040
7043
  } catch {
7041
7044
  return null;
7042
7045
  }
@@ -7044,7 +7047,7 @@ function Xi(t) {
7044
7047
  function fo(t, e) {
7045
7048
  if (!(typeof localStorage > "u" || !t))
7046
7049
  try {
7047
- e ? localStorage.setItem(di(t), e) : localStorage.removeItem(di(t));
7050
+ e ? localStorage.setItem(li(t), e) : localStorage.removeItem(li(t));
7048
7051
  } catch {
7049
7052
  }
7050
7053
  }
@@ -7108,7 +7111,7 @@ function je(t, e, n) {
7108
7111
  new Error(`Appwrite SDK is missing ${e[0]}(). Update the appwrite package.`)
7109
7112
  );
7110
7113
  }
7111
- const li = "authui", Wi = ["userId", "secret", "expire", "project", "error", li], Gi = () => ({
7114
+ const ui = "authui", Wi = ["userId", "secret", "expire", "project", "error", ui], Gi = () => ({
7112
7115
  status: "loading",
7113
7116
  user: null,
7114
7117
  mfaFactors: null,
@@ -7126,7 +7129,7 @@ class yo {
7126
7129
  const n = e.endpoint.trim().replace(/\/+$/, "");
7127
7130
  n && !n.endsWith("/v1") && console.warn(
7128
7131
  `[authui] endpoint should end with /v1 (got "${e.endpoint}"). Without it Appwrite returns HTML 404 pages.`
7129
- ), this.config = e, this.client = new Ce().setEndpoint(e.endpoint).setProject(e.project), this.preview = e.preview ? new uo() : null, this.account = this.preview ? this.preview : new Yt(this.client), this.teams = null, this.activeTeamId = Xi(e.project), this.setState({ configured: !0, status: "loading", configError: null }), this.preview ? this.refresh() : typeof window < "u" && this.handleRedirect().then(() => this.refresh());
7132
+ ), this.config = e, this.client = new xe().setEndpoint(e.endpoint).setProject(e.project), this.preview = e.preview ? new uo() : null, this.account = this.preview ? this.preview : new Jt(this.client), this.teams = null, this.activeTeamId = Xi(e.project), this.setState({ configured: !0, status: "loading", configError: null }), this.preview ? this.refresh() : typeof window < "u" && this.handleRedirect().then(() => this.refresh());
7130
7133
  }
7131
7134
  /**
7132
7135
  * Called by <authui-config> when it is on the page but missing endpoint or project.
@@ -7239,7 +7242,7 @@ class yo {
7239
7242
  const n = await this.account.get();
7240
7243
  this.setState({ status: "signed-in", user: n, mfaFactors: null, configError: null }), e || this.emit("signed-in", n);
7241
7244
  } catch (n) {
7242
- if (yt(n, oe.moreFactorsRequired)) {
7245
+ if (gt(n, oe.moreFactorsRequired)) {
7243
7246
  let i = null;
7244
7247
  try {
7245
7248
  i = await je(
@@ -7250,7 +7253,7 @@ class yo {
7250
7253
  } catch {
7251
7254
  }
7252
7255
  this.setState({ status: "mfa-required", user: null, mfaFactors: i });
7253
- } else if (yt(n, oe.userBlocked))
7256
+ } else if (gt(n, oe.userBlocked))
7254
7257
  await this.purgeLocalSession(), this.setState({
7255
7258
  status: "signed-out",
7256
7259
  user: null,
@@ -7262,7 +7265,7 @@ class yo {
7262
7265
  }
7263
7266
  }), e && this.emit("signed-out", void 0);
7264
7267
  else if (!e && ho(n)) {
7265
- const o = xt(n, this.getStrings()) || this.getStrings().errorConfig;
7268
+ const o = Ct(n, this.getStrings()) || this.getStrings().errorConfig;
7266
7269
  console.warn(
7267
7270
  `[authui] ${o} (endpoint=${this.config?.endpoint ?? "?"}, project=${this.config?.project ?? "?"})`
7268
7271
  );
@@ -7311,7 +7314,7 @@ class yo {
7311
7314
  localStorage.removeItem("cookieFallback");
7312
7315
  } catch {
7313
7316
  }
7314
- this.config && !this.preview && (this.client = new Ce().setEndpoint(this.config.endpoint).setProject(this.config.project), this.account = new Yt(this.client));
7317
+ this.config && !this.preview && (this.client = new xe().setEndpoint(this.config.endpoint).setProject(this.config.project), this.account = new Jt(this.client));
7315
7318
  }
7316
7319
  // ─────────────────────────────── sign in ───────────────────────────────
7317
7320
  async signInWithEmailPassword(e, n) {
@@ -7664,7 +7667,7 @@ class yo {
7664
7667
  redirectUrl(e) {
7665
7668
  const n = this.config?.redirectUrl ?? (typeof window < "u" ? window.location.origin + window.location.pathname : ""), i = new URL(n, typeof window < "u" ? window.location.href : void 0);
7666
7669
  for (const o of Wi) i.searchParams.delete(o);
7667
- return i.searchParams.set(li, e), i.toString();
7670
+ return i.searchParams.set(ui, e), i.toString();
7668
7671
  }
7669
7672
  setPending(e) {
7670
7673
  this.setState({ pending: e });
@@ -7675,7 +7678,7 @@ class yo {
7675
7678
  */
7676
7679
  async handleRedirect() {
7677
7680
  if (typeof window > "u") return !1;
7678
- const e = new URLSearchParams(window.location.search), n = e.get(li);
7681
+ const e = new URLSearchParams(window.location.search), n = e.get(ui);
7679
7682
  if (!n) return !1;
7680
7683
  const i = e.get("userId") ?? "", o = e.get("secret") ?? "";
7681
7684
  this.cleanUrl();
@@ -7721,7 +7724,7 @@ class yo {
7721
7724
  break;
7722
7725
  }
7723
7726
  } catch (s) {
7724
- const r = tt(s), d = xt(s, this.getStrings(), "link");
7727
+ const r = tt(s), d = Ct(s, this.getStrings(), "link");
7725
7728
  this.emit("error", r), this.setState({ pending: { type: "notice", message: d, tone: "error" } });
7726
7729
  }
7727
7730
  return !0;
@@ -7772,7 +7775,7 @@ const Ki = new mo(), Yi = {
7772
7775
  lg: "0.875rem",
7773
7776
  xl: "1.125rem",
7774
7777
  full: "1.5rem"
7775
- }, wo = We`
7778
+ }, bo = We`
7776
7779
  :host {
7777
7780
  /* Light theme (matches :root in the console) */
7778
7781
  --authui-background: oklch(1 0 0);
@@ -7850,7 +7853,7 @@ const Ki = new mo(), Yi = {
7850
7853
  --authui-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
7851
7854
  color-scheme: dark;
7852
7855
  }
7853
- `, bo = We`
7856
+ `, wo = We`
7854
7857
  *,
7855
7858
  *::before,
7856
7859
  *::after {
@@ -8565,12 +8568,154 @@ const Ki = new mo(), Yi = {
8565
8568
  width: 18px;
8566
8569
  height: 18px;
8567
8570
  }
8571
+ /* OAuth accordion: last-used (or focused) expands; others stay icon-compact. */
8572
+ .providers.accordion {
8573
+ display: flex;
8574
+ width: 100%;
8575
+ gap: 8px;
8576
+ }
8577
+ .providers.accordion > .provider-slot {
8578
+ position: relative;
8579
+ flex: 0 1 2.25rem;
8580
+ min-width: 2.25rem;
8581
+ overflow: visible;
8582
+ transition: flex-grow 480ms cubic-bezier(0.22, 1, 0.36, 1);
8583
+ }
8584
+ .providers.accordion > .provider-slot.is-expanded {
8585
+ flex-grow: 1;
8586
+ }
8587
+ .providers.accordion .btn {
8588
+ position: relative;
8589
+ width: 100%;
8590
+ min-width: 0;
8591
+ justify-content: center;
8592
+ gap: 0;
8593
+ padding-inline: 0;
8594
+ overflow: hidden;
8595
+ }
8596
+ .providers.accordion .btn svg {
8597
+ width: 16px;
8598
+ height: 16px;
8599
+ flex-shrink: 0;
8600
+ }
8601
+ .provider-label {
8602
+ display: grid;
8603
+ min-width: 0;
8604
+ grid-template-columns: 0fr;
8605
+ transition: grid-template-columns 480ms cubic-bezier(0.22, 1, 0.36, 1) 160ms;
8606
+ }
8607
+ .provider-label > span {
8608
+ min-width: 0;
8609
+ overflow: hidden;
8610
+ }
8611
+ .provider-label-text {
8612
+ display: block;
8613
+ white-space: nowrap;
8614
+ padding-inline-start: 6px;
8615
+ opacity: 0;
8616
+ transition: opacity 160ms ease;
8617
+ }
8618
+ .providers.accordion > .provider-slot.is-expanded .provider-label {
8619
+ grid-template-columns: 1fr;
8620
+ transition: grid-template-columns 480ms cubic-bezier(0.22, 1, 0.36, 1);
8621
+ }
8622
+ .providers.accordion > .provider-slot.is-expanded .provider-label-text {
8623
+ opacity: 1;
8624
+ transition: opacity 240ms ease 320ms;
8625
+ }
8626
+ .oauth-last-used {
8627
+ position: absolute;
8628
+ inset: 0;
8629
+ z-index: 10;
8630
+ pointer-events: none;
8631
+ }
8632
+ .oauth-last-used-dot,
8633
+ .oauth-last-used-pill {
8634
+ position: absolute;
8635
+ transition: opacity 180ms ease;
8636
+ }
8637
+ .oauth-last-used-dot {
8638
+ top: -3px;
8639
+ inset-inline-end: -3px;
8640
+ width: 8px;
8641
+ height: 8px;
8642
+ border-radius: 999px;
8643
+ background: var(--authui-brand);
8644
+ box-shadow: 0 0 0 2px var(--authui-card);
8645
+ opacity: 1;
8646
+ }
8647
+ .oauth-last-used-pill {
8648
+ top: -8px;
8649
+ inset-inline-start: 6px;
8650
+ padding: 2px 6px;
8651
+ border-radius: 4px;
8652
+ border: 1px solid var(--authui-border);
8653
+ background: var(--authui-foreground);
8654
+ color: var(--authui-background);
8655
+ font-size: 10px;
8656
+ font-weight: 500;
8657
+ line-height: 1.2;
8658
+ white-space: nowrap;
8659
+ opacity: 0;
8660
+ }
8661
+ .providers.accordion > .provider-slot.is-expanded .oauth-last-used-dot {
8662
+ opacity: 0;
8663
+ }
8664
+ .providers.accordion > .provider-slot.is-expanded .oauth-last-used-pill {
8665
+ opacity: 1;
8666
+ }
8667
+ @media (prefers-reduced-motion: reduce) {
8668
+ .providers.accordion > .provider-slot,
8669
+ .provider-label,
8670
+ .provider-label-text,
8671
+ .oauth-last-used-dot,
8672
+ .oauth-last-used-pill {
8673
+ transition: none;
8674
+ }
8675
+ }
8568
8676
  .empty {
8569
8677
  padding: 24px 0;
8570
8678
  text-align: center;
8571
8679
  font-size: 13px;
8572
8680
  color: var(--authui-muted-foreground);
8573
8681
  }
8682
+ .empty-well {
8683
+ display: flex;
8684
+ flex-direction: column;
8685
+ align-items: center;
8686
+ text-align: center;
8687
+ padding: 28px 16px;
8688
+ border: 1px dashed var(--authui-border);
8689
+ border-radius: var(--authui-radius-xl);
8690
+ background: color-mix(in oklab, var(--authui-card) 50%, transparent);
8691
+ }
8692
+ .empty-icon {
8693
+ width: 48px;
8694
+ height: 48px;
8695
+ border-radius: 999px;
8696
+ background: var(--authui-muted);
8697
+ color: var(--authui-muted-foreground);
8698
+ display: inline-flex;
8699
+ align-items: center;
8700
+ justify-content: center;
8701
+ margin-bottom: 16px;
8702
+ }
8703
+ .empty-icon svg {
8704
+ width: 20px;
8705
+ height: 20px;
8706
+ }
8707
+ .empty-title {
8708
+ margin: 0 0 4px;
8709
+ font-size: 14px;
8710
+ font-weight: 500;
8711
+ color: var(--authui-foreground);
8712
+ }
8713
+ .empty-desc {
8714
+ margin: 0;
8715
+ font-size: 13px;
8716
+ color: var(--authui-muted-foreground);
8717
+ max-width: 280px;
8718
+ }
8574
8719
  .choice {
8575
8720
  display: flex;
8576
8721
  align-items: center;
@@ -8703,7 +8848,7 @@ const rn = (De = class extends Qe {
8703
8848
  fire(e, n) {
8704
8849
  this.dispatchEvent(new CustomEvent(e, { detail: n, bubbles: !0, composed: !0 }));
8705
8850
  }
8706
- }, De.styles = [wo, bo], De.KEY_EVENTS = ["keydown", "keyup", "keypress"], De);
8851
+ }, De.styles = [bo, wo], De.KEY_EVENTS = ["keydown", "keyup", "keypress"], De);
8707
8852
  Io([
8708
8853
  V()
8709
8854
  ], rn.prototype, "auth");
@@ -8825,7 +8970,7 @@ fe([
8825
8970
  pe = fe([
8826
8971
  ze("authui-config")
8827
8972
  ], pe);
8828
- var So = Object.defineProperty, $o = Object.getOwnPropertyDescriptor, qt = (t, e, n, i) => {
8973
+ var So = Object.defineProperty, $o = Object.getOwnPropertyDescriptor, _t = (t, e, n, i) => {
8829
8974
  for (var o = i > 1 ? void 0 : i ? $o(e, n) : e, a = t.length - 1, s; a >= 0; a--)
8830
8975
  (s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
8831
8976
  return i && o && So(e, n, o), o;
@@ -8851,10 +8996,10 @@ function jo() {
8851
8996
  }
8852
8997
  jo();
8853
8998
  const Po = ["loading", "signed-out", "signed-in", "mfa-required"];
8854
- function Kt(t) {
8999
+ function Yt(t) {
8855
9000
  return t ? t.split(/[\s,]+/).map((e) => e.trim()).filter((e) => Po.includes(e)) : [];
8856
9001
  }
8857
- let mt = class extends Qe {
9002
+ let yt = class extends Qe {
8858
9003
  constructor() {
8859
9004
  super(...arguments), this.when = "", this.unless = "", this.status = R.getState().status, this.unsubscribe = null;
8860
9005
  }
@@ -8866,29 +9011,29 @@ let mt = class extends Qe {
8866
9011
  }
8867
9012
  /** Whether the current status satisfies `when` and `unless`. */
8868
9013
  get visible() {
8869
- const t = Kt(this.when), e = Kt(this.unless);
9014
+ const t = Yt(this.when), e = Yt(this.unless);
8870
9015
  return !(this.status === "loading" && !t.includes("loading") || t.length > 0 && !t.includes(this.status) || e.includes(this.status));
8871
9016
  }
8872
9017
  updated() {
8873
- (this.status !== "loading" || Kt(this.when).includes("loading")) && (this.setAttribute("ready", ""), this.style.display = "contents");
9018
+ (this.status !== "loading" || Yt(this.when).includes("loading")) && (this.setAttribute("ready", ""), this.style.display = "contents");
8874
9019
  }
8875
9020
  render() {
8876
- return this.visible ? b`<slot></slot>` : M;
9021
+ return this.visible ? w`<slot></slot>` : C;
8877
9022
  }
8878
9023
  };
8879
- qt([
9024
+ _t([
8880
9025
  ee({ type: String })
8881
- ], mt.prototype, "when", 2);
8882
- qt([
9026
+ ], yt.prototype, "when", 2);
9027
+ _t([
8883
9028
  ee({ type: String })
8884
- ], mt.prototype, "unless", 2);
8885
- qt([
9029
+ ], yt.prototype, "unless", 2);
9030
+ _t([
8886
9031
  V()
8887
- ], mt.prototype, "status", 2);
8888
- mt = qt([
9032
+ ], yt.prototype, "status", 2);
9033
+ yt = _t([
8889
9034
  ze("authui-show")
8890
- ], mt);
8891
- const Co = We`
9035
+ ], yt);
9036
+ const xo = We`
8892
9037
  :host {
8893
9038
  display: block;
8894
9039
  width: 100%;
@@ -8942,7 +9087,7 @@ const Co = We`
8942
9087
  height: 14px;
8943
9088
  margin: 0;
8944
9089
  }
8945
- `, se = (t) => b`<svg
9090
+ `, se = (t) => w`<svg
8946
9091
  xmlns="http://www.w3.org/2000/svg"
8947
9092
  viewBox="0 0 24 24"
8948
9093
  fill="none"
@@ -8953,7 +9098,7 @@ const Co = We`
8953
9098
  aria-hidden="true"
8954
9099
  >
8955
9100
  ${t}
8956
- </svg>`, _ = {
9101
+ </svg>`, q = {
8957
9102
  mail: se(
8958
9103
  G`<rect width="20" height="16" x="2" y="4" rx="2"/><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/>`
8959
9104
  ),
@@ -9035,7 +9180,7 @@ const Co = We`
9035
9180
  qr: se(
9036
9181
  G`<rect width="5" height="5" x="3" y="3" rx="1"/><rect width="5" height="5" x="16" y="3" rx="1"/><rect width="5" height="5" x="3" y="16" rx="1"/><path d="M21 16h-3a2 2 0 0 0-2 2v3"/><path d="M21 21v.01"/><path d="M12 7v3a2 2 0 0 1-2 2H7"/><path d="M3 12h.01"/><path d="M12 3h.01"/><path d="M12 16v.01"/><path d="M16 12h1"/><path d="M21 12v.01"/><path d="M12 21v-1"/>`
9037
9182
  )
9038
- }, ge = (t, e = "0 0 24 24") => b`<svg xmlns="http://www.w3.org/2000/svg" viewBox=${e} aria-hidden="true">${t}</svg>`, xo = {
9183
+ }, ge = (t, e = "0 0 24 24") => w`<svg xmlns="http://www.w3.org/2000/svg" viewBox=${e} aria-hidden="true">${t}</svg>`, Co = {
9039
9184
  google: ge(
9040
9185
  G`<path fill="#4285F4" d="M23.49 12.27c0-.79-.07-1.54-.19-2.27H12v4.51h6.47a5.57 5.57 0 0 1-2.4 3.58v3h3.86c2.26-2.09 3.56-5.17 3.56-8.82z"/><path fill="#34A853" d="M12 24c3.24 0 5.95-1.08 7.93-2.91l-3.86-3c-1.08.72-2.45 1.16-4.07 1.16-3.13 0-5.78-2.11-6.73-4.96H1.29v3.09A11.99 11.99 0 0 0 12 24z"/><path fill="#FBBC05" d="M5.27 14.29A7.2 7.2 0 0 1 4.89 12c0-.8.14-1.57.38-2.29V6.62H1.29A11.97 11.97 0 0 0 0 12c0 1.94.46 3.77 1.29 5.38l3.98-3.09z"/><path fill="#EA4335" d="M12 4.75c1.77 0 3.35.61 4.6 1.8l3.42-3.42C17.95 1.19 15.24 0 12 0 7.31 0 3.26 2.69 1.29 6.62l3.98 3.09C6.22 6.86 8.87 4.75 12 4.75z"/>`
9041
9186
  ),
@@ -9091,14 +9236,14 @@ const Co = We`
9091
9236
  G`<path fill="#003087" d="M7.076 21.337H2.47a.641.641 0 0 1-.633-.74L4.944.901C5.026.382 5.474 0 5.998 0h7.46c2.57 0 4.578.543 5.69 1.81 1.01 1.15 1.304 2.42 1.012 4.287-.023.143-.047.288-.077.437-.983 5.05-4.349 6.797-8.647 6.797h-2.19c-.524 0-.968.382-1.05.9l-1.12 7.106zm14.146-14.42a3.35 3.35 0 0 0-.607-.541c-.013.076-.026.175-.041.254-.93 4.778-4.005 7.201-9.138 7.201h-2.19a.563.563 0 0 0-.556.479l-1.187 7.527h-.506l-.24 1.516a.56.56 0 0 0 .554.647h3.882c.46 0 .85-.334.922-.788.06-.26.76-4.852.816-5.09a.932.932 0 0 1 .923-.788h.58c3.76 0 6.705-1.528 7.565-5.946.36-1.847.174-3.388-.777-4.471z"/>`
9092
9237
  )
9093
9238
  };
9094
- function ui(t) {
9095
- return xo[t] ?? _.globe;
9239
+ function Mt(t) {
9240
+ return Co[t] ?? q.globe;
9096
9241
  }
9097
9242
  function Ai(t) {
9098
9243
  const e = (t.trim()[0] ?? "?").toUpperCase();
9099
- return /[A-Z0-9]/i.test(e) ? e : _.user;
9244
+ return /[A-Z0-9]/i.test(e) ? e : q.user;
9100
9245
  }
9101
- function wt(t) {
9246
+ function mt(t) {
9102
9247
  typeof document > "u" || (document.querySelector("authui-modal") || document.body.appendChild(document.createElement("authui-modal")), queueMicrotask(() => {
9103
9248
  window.dispatchEvent(new CustomEvent("authui:open", { detail: { view: t } }));
9104
9249
  }));
@@ -9122,14 +9267,14 @@ function pi(t) {
9122
9267
  let i, o;
9123
9268
  return !e.length || n <= 1 ? (i = 1, o = "passwordStrengthTooWeak") : n === 2 ? (i = 2, o = "passwordStrengthWeak") : n === 3 ? (i = 3, o = "passwordStrengthFair") : n >= 5 && e.long && e.lower && e.upper && e.number && e.symbol ? (i = 4, o = "passwordStrengthVeryStrong") : (i = 4, o = "passwordStrengthStrong"), { level: i, percent: i * 25, labelKey: o, checks: e };
9124
9269
  }
9125
- var Mo = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, ke = (t, e, n, i) => {
9270
+ var Mo = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, Ae = (t, e, n, i) => {
9126
9271
  for (var o = i > 1 ? void 0 : i ? Ro(e, n) : e, a = t.length - 1, s; a >= 0; a--)
9127
9272
  (s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
9128
9273
  return i && o && Mo(e, n, o), o;
9129
9274
  };
9130
- let ve = class extends qe {
9275
+ let we = class extends qe {
9131
9276
  constructor() {
9132
- super(...arguments), this.view = "sign-in", this.embedded = !1, this.step = "sign-in", this.busy = !1, this.error = "", this.notice = null, this.showPassword = !1, this.token = null, this.focusOnStep = !1, this.resendCooldownUntil = 0, this.challenge = null, this.recovery = null, this.email = "", this.password = "", this.passwordConfirm = "", this.name = "", this.phone = "", this.code = "", this.onSignIn = (t) => {
9277
+ super(...arguments), this.view = "sign-in", this.embedded = !1, this.step = "sign-in", this.busy = !1, this.error = "", this.notice = null, this.showPassword = !1, this.expandedOAuth = null, this.token = null, this.focusOnStep = !1, this.resendCooldownUntil = 0, this.challenge = null, this.recovery = null, this.email = "", this.password = "", this.passwordConfirm = "", this.name = "", this.phone = "", this.code = "", this.onSignIn = (t) => {
9133
9278
  t.preventDefault(), this.requireValid(t) && this.run(async () => {
9134
9279
  await R.signInWithEmailPassword(this.email, this.password), this.password = "", lt("email-password"), this.fire("authui-success", { method: "email-password" });
9135
9280
  });
@@ -9210,7 +9355,7 @@ let ve = class extends qe {
9210
9355
  try {
9211
9356
  await R.signOut();
9212
9357
  } catch (t) {
9213
- if (!yt(t, oe.sessionNotFound)) throw t;
9358
+ if (!gt(t, oe.sessionNotFound)) throw t;
9214
9359
  }
9215
9360
  this.go("sign-in");
9216
9361
  });
@@ -9251,7 +9396,7 @@ let ve = class extends qe {
9251
9396
  try {
9252
9397
  await t();
9253
9398
  } catch (n) {
9254
- this.error = xt(n, this.strings, e);
9399
+ this.error = Ct(n, this.strings, e);
9255
9400
  } finally {
9256
9401
  this.busy = !1;
9257
9402
  }
@@ -9270,20 +9415,20 @@ let ve = class extends qe {
9270
9415
  // ───────────────────────────── render ─────────────────────────────
9271
9416
  render() {
9272
9417
  const t = this.renderStep();
9273
- return b`
9418
+ return w`
9274
9419
  <div class="panel ${this.embedded ? "embedded" : ""}" part="panel">
9275
9420
  ${this.renderHeader()}
9276
- ${this.notice ? b`<div class="alert alert-${this.notice.tone}" role="status">
9277
- ${this.notice.tone === "success" ? _.checkCircle : this.notice.tone === "error" ? _.alert : _.info}
9421
+ ${this.notice ? w`<div class="alert alert-${this.notice.tone}" role="status">
9422
+ ${this.notice.tone === "success" ? q.checkCircle : this.notice.tone === "error" ? q.alert : q.info}
9278
9423
  <div class="alert-body">${this.notice.message}</div>
9279
9424
  <button
9280
9425
  class="btn btn-ghost btn-icon dismiss"
9281
9426
  @click=${() => this.dismissNotice()}
9282
9427
  aria-label=${this.t("close")}
9283
9428
  >
9284
- ${_.x}
9429
+ ${q.x}
9285
9430
  </button>
9286
- </div>` : M}
9431
+ </div>` : C}
9287
9432
  ${t}
9288
9433
  </div>
9289
9434
  `;
@@ -9316,46 +9461,46 @@ let ve = class extends qe {
9316
9461
  n = this.t("mfaTitle"), i = this.t("mfaDescription");
9317
9462
  break;
9318
9463
  }
9319
- return b`
9464
+ return w`
9320
9465
  <div class="header">
9321
- ${t ? b`<img
9466
+ ${t ? w`<img
9322
9467
  class="logo"
9323
9468
  src=${t}
9324
9469
  alt=""
9325
9470
  @error=${(o) => {
9326
9471
  o.target.hidden = !0;
9327
9472
  }}
9328
- />` : M}
9329
- ${R.isPreview ? b`<span class="badge badge-info preview">${this.t("preview")}</span>` : M}
9473
+ />` : C}
9474
+ ${R.isPreview ? w`<span class="badge badge-info preview">${this.t("preview")}</span>` : C}
9330
9475
  <h2 class="title" id="authui-title">${n}</h2>
9331
- ${i ? b`<p class="description">${i}</p>` : M}
9476
+ ${i ? w`<p class="description">${i}</p>` : C}
9332
9477
  </div>
9333
9478
  `;
9334
9479
  }
9335
9480
  renderError() {
9336
- return this.error ? b`<div class="alert alert-error" role="alert">
9337
- ${_.alert}
9481
+ return this.error ? w`<div class="alert alert-error" role="alert">
9482
+ ${q.alert}
9338
9483
  <div class="alert-body">${this.error}</div>
9339
- </div>` : M;
9484
+ </div>` : C;
9340
9485
  }
9341
9486
  submitButton(t, e = "btn-primary") {
9342
- return b`<button class="btn ${e} btn-block" type="submit" ?disabled=${this.busy}>
9343
- ${this.busy ? b`<span class="spinner" aria-hidden="true"></span>` : M} ${t}
9487
+ return w`<button class="btn ${e} btn-block" type="submit" ?disabled=${this.busy}>
9488
+ ${this.busy ? w`<span class="spinner" aria-hidden="true"></span>` : C} ${t}
9344
9489
  </button>`;
9345
9490
  }
9346
9491
  passwordField(t) {
9347
9492
  const e = this[t.field], n = t.meter ? pi(e) : null;
9348
- return b`
9493
+ return w`
9349
9494
  <div class="field">
9350
9495
  <div class="field-header">
9351
9496
  <label class="label" for=${t.id}>${t.label}</label>
9352
- ${t.forgot ? b`<button
9497
+ ${t.forgot ? w`<button
9353
9498
  type="button"
9354
9499
  class="btn btn-link small"
9355
9500
  @click=${() => this.go("forgot-password")}
9356
9501
  >
9357
9502
  ${this.t("forgotPassword")}
9358
- </button>` : M}
9503
+ </button>` : C}
9359
9504
  </div>
9360
9505
  <div class="input-wrap">
9361
9506
  <input
@@ -9374,10 +9519,10 @@ let ve = class extends qe {
9374
9519
  @click=${() => this.showPassword = !this.showPassword}
9375
9520
  aria-label=${this.showPassword ? this.t("hidePassword") : this.t("showPassword")}
9376
9521
  >
9377
- ${this.showPassword ? _.eyeOff : _.eye}
9522
+ ${this.showPassword ? q.eyeOff : q.eye}
9378
9523
  </button>
9379
9524
  </div>
9380
- ${n && e ? b`<div class="strength" aria-live="polite">
9525
+ ${n && e ? w`<div class="strength" aria-live="polite">
9381
9526
  <div
9382
9527
  class="strength-meter"
9383
9528
  data-level=${String(n.level)}
@@ -9391,12 +9536,12 @@ let ve = class extends qe {
9391
9536
  <span></span><span></span><span></span><span></span>
9392
9537
  </div>
9393
9538
  <p class="strength-label">${this.t(n.labelKey)}</p>
9394
- </div>` : t.hint ? b`<p class="hint">${t.hint}</p>` : M}
9539
+ </div>` : t.hint ? w`<p class="hint">${t.hint}</p>` : C}
9395
9540
  </div>
9396
9541
  `;
9397
9542
  }
9398
9543
  emailField(t = "email") {
9399
- return b`
9544
+ return w`
9400
9545
  <div class="field">
9401
9546
  <label class="label" for="authui-email">${this.t("email")}</label>
9402
9547
  <input
@@ -9413,7 +9558,7 @@ let ve = class extends qe {
9413
9558
  `;
9414
9559
  }
9415
9560
  codeField() {
9416
- return b`
9561
+ return w`
9417
9562
  <div class="field">
9418
9563
  <label class="label" for="authui-code">${this.t("code")}</label>
9419
9564
  <input
@@ -9433,33 +9578,33 @@ let ve = class extends qe {
9433
9578
  }
9434
9579
  legal() {
9435
9580
  const t = this.config?.legal;
9436
- return !t?.termsUrl && !t?.privacyUrl ? M : b`<p class="legal">
9581
+ return !t?.termsUrl && !t?.privacyUrl ? C : w`<p class="legal">
9437
9582
  ${this.t("agreeTo")}
9438
- ${t.termsUrl ? b`<a href=${t.termsUrl} target="_blank" rel="noopener">${this.t("terms")}</a>` : M}
9439
- ${t.termsUrl && t.privacyUrl ? b` ${this.t("and")} ` : M}
9440
- ${t.privacyUrl ? b`<a href=${t.privacyUrl} target="_blank" rel="noopener">${this.t("privacy")}</a>` : M}.
9583
+ ${t.termsUrl ? w`<a href=${t.termsUrl} target="_blank" rel="noopener">${this.t("terms")}</a>` : C}
9584
+ ${t.termsUrl && t.privacyUrl ? w` ${this.t("and")} ` : C}
9585
+ ${t.privacyUrl ? w`<a href=${t.privacyUrl} target="_blank" rel="noopener">${this.t("privacy")}</a>` : C}.
9441
9586
  </p>`;
9442
9587
  }
9443
9588
  backLink(t = "sign-in") {
9444
- return b`<div class="links">
9589
+ return w`<div class="links">
9445
9590
  <button type="button" class="btn btn-link" @click=${() => this.go(t)}>
9446
- ${_.arrowLeft} ${this.t("back")}
9591
+ ${q.arrowLeft} ${this.t("back")}
9447
9592
  </button>
9448
9593
  </div>`;
9449
9594
  }
9450
9595
  renderStep() {
9451
9596
  if (this.auth.configError)
9452
- return b`<div class="alert alert-error" role="alert">
9453
- ${_.alert}
9597
+ return w`<div class="alert alert-error" role="alert">
9598
+ ${q.alert}
9454
9599
  <div class="alert-body">${this.auth.configError}</div>
9455
9600
  </div>`;
9456
9601
  if (!this.auth.configured)
9457
- return b`<div class="alert alert-error" role="alert">
9458
- ${_.alert}
9602
+ return w`<div class="alert alert-error" role="alert">
9603
+ ${q.alert}
9459
9604
  <div class="alert-body">${this.t("errorNotConfigured")}</div>
9460
9605
  </div>`;
9461
9606
  if (this.auth.status === "loading")
9462
- return b`<div class="empty"><span class="spinner"></span></div>`;
9607
+ return w`<div class="empty"><span class="spinner"></span></div>`;
9463
9608
  if (this.auth.status === "signed-in" && this.step !== "mfa") return this.renderSignedIn();
9464
9609
  switch (this.step) {
9465
9610
  case "sign-up":
@@ -9482,32 +9627,32 @@ let ve = class extends qe {
9482
9627
  }
9483
9628
  renderSignedIn() {
9484
9629
  const t = this.auth.user, e = t.name || t.email || t.phone || this.t("guestAccount");
9485
- return b`
9630
+ return w`
9486
9631
  <div class="stack">
9487
9632
  <div class="row">
9488
9633
  <div class="inline">
9489
9634
  <span class="avatar">${Ai(e)}</span>
9490
9635
  <div class="row-main">
9491
9636
  <span class="row-title" title=${e}>${e}</span>
9492
- ${t.email && t.name ? b`<span class="row-sub" title=${t.email}>${t.email}</span>` : M}
9637
+ ${t.email && t.name ? w`<span class="row-sub" title=${t.email}>${t.email}</span>` : C}
9493
9638
  </div>
9494
9639
  </div>
9495
9640
  </div>
9496
9641
  ${this.renderError()}
9497
9642
  <div class="stack-sm">
9498
- ${this.config?.successUrl ? b`<a class="btn btn-primary btn-block" href=${this.config.successUrl}
9643
+ ${this.config?.successUrl ? w`<a class="btn btn-primary btn-block" href=${this.config.successUrl}
9499
9644
  >${this.t("continue")}</a
9500
- >` : M}
9645
+ >` : C}
9501
9646
  <button
9502
9647
  class="btn btn-outline btn-block"
9503
9648
  @click=${() => {
9504
- this.embedded ? this.fire("authui-open", { view: "account" }) : wt("account");
9649
+ this.embedded ? this.fire("authui-open", { view: "account" }) : mt("account");
9505
9650
  }}
9506
9651
  >
9507
- ${_.settings} ${this.t("manageAccount")}
9652
+ ${q.settings} ${this.t("manageAccount")}
9508
9653
  </button>
9509
9654
  <button class="btn btn-ghost btn-block" @click=${this.onSignOut} ?disabled=${this.busy}>
9510
- ${_.logOut} ${this.t("signOut")}
9655
+ ${q.logOut} ${this.t("signOut")}
9511
9656
  </button>
9512
9657
  </div>
9513
9658
  </div>
@@ -9515,95 +9660,133 @@ let ve = class extends qe {
9515
9660
  }
9516
9661
  renderProviders() {
9517
9662
  const t = [...this.config?.methods?.oauth ?? []];
9518
- if (t.length === 0) return M;
9519
- const e = Fe();
9520
- t.sort((i, o) => {
9521
- const a = e === `oauth:${i}` ? 0 : 1, s = e === `oauth:${o}` ? 0 : 1;
9522
- return a - s;
9523
- });
9524
- const n = t.length > 2;
9525
- return b`
9526
- <div class="providers ${n ? "two" : ""}">
9527
- ${t.map((i) => {
9528
- const o = e === `oauth:${i}`;
9529
- return b`<button
9530
- type="button"
9531
- class="btn btn-outline ${o ? "last-used" : ""}"
9532
- @click=${() => this.onOAuth(i)}
9533
- ?disabled=${this.busy}
9534
- aria-label=${this.t("continueWith", { provider: pt(i) })}
9663
+ if (t.length === 0) return C;
9664
+ const e = Fe(), n = t.find((o) => e === `oauth:${o}`) ?? null;
9665
+ if (t.length <= 2) {
9666
+ const o = [...t].sort((a, s) => {
9667
+ const r = e === `oauth:${a}` ? 0 : 1, d = e === `oauth:${s}` ? 0 : 1;
9668
+ return r - d;
9669
+ });
9670
+ return w`
9671
+ <div class="providers">
9672
+ ${o.map((a) => {
9673
+ const s = e === `oauth:${a}`, r = this.t("continueWith", { provider: xt(a) });
9674
+ return w`<button
9675
+ type="button"
9676
+ class="btn btn-outline ${s ? "last-used" : ""}"
9677
+ @click=${() => this.onOAuth(a)}
9678
+ ?disabled=${this.busy}
9679
+ aria-label=${s ? `${r}. ${this.t("lastUsed")}` : r}
9680
+ >
9681
+ ${Mt(a)}
9682
+ <span>${r}</span>
9683
+ ${s ? w`<span class="last-used-badge">${this.t("lastUsed")}</span>` : C}
9684
+ </button>`;
9685
+ })}
9686
+ </div>
9687
+ `;
9688
+ }
9689
+ const i = this.expandedOAuth && t.includes(this.expandedOAuth) ? this.expandedOAuth : n ?? t[0];
9690
+ return w`
9691
+ <div
9692
+ class="providers accordion"
9693
+ @mouseleave=${() => {
9694
+ this.expandedOAuth = n ?? t[0];
9695
+ }}
9696
+ >
9697
+ ${t.map((o) => {
9698
+ const a = e === `oauth:${o}`, s = i === o, r = this.t("continueWith", { provider: xt(o) });
9699
+ return w`<div
9700
+ class="provider-slot ${s ? "is-expanded" : ""}"
9701
+ @mouseenter=${() => {
9702
+ this.expandedOAuth = o;
9703
+ }}
9535
9704
  >
9536
- ${ui(i)}
9537
- <span
9538
- >${n ? pt(i) : this.t("continueWith", { provider: pt(i) })}</span
9705
+ <button
9706
+ type="button"
9707
+ class="btn btn-outline"
9708
+ @click=${() => this.onOAuth(o)}
9709
+ @focus=${() => {
9710
+ this.expandedOAuth = o;
9711
+ }}
9712
+ ?disabled=${this.busy}
9713
+ aria-label=${a ? `${r}. ${this.t("lastUsed")}` : r}
9539
9714
  >
9540
- ${o ? b`<span class="last-used-badge">${this.t("lastUsed")}</span>` : M}
9541
- </button>`;
9715
+ ${Mt(o)}
9716
+ <span class="provider-label"
9717
+ ><span><span class="provider-label-text">${r}</span></span></span
9718
+ >
9719
+ ${a ? w`<span class="oauth-last-used" data-last-used=${o} aria-hidden="true">
9720
+ <span class="oauth-last-used-dot"></span>
9721
+ <span class="oauth-last-used-pill">${this.t("lastUsed")}</span>
9722
+ </span>` : C}
9723
+ </button>
9724
+ </div>`;
9542
9725
  })}
9543
9726
  </div>
9544
9727
  `;
9545
9728
  }
9546
9729
  renderSignIn() {
9547
9730
  const t = this.config?.methods ?? {}, e = t.emailPassword !== !1, n = (t.oauth?.length ?? 0) > 0, i = [
9548
- t.magicUrl ? { step: "magic-url", icon: _.link, label: this.t("sendMagicLink") } : null,
9549
- t.emailOtp ? { step: "email-otp", icon: _.mail, label: this.t("continueWithEmail") } : null,
9550
- t.phone ? { step: "phone", icon: _.smartphone, label: this.t("continueWithPhone") } : null
9731
+ t.magicUrl ? { step: "magic-url", icon: q.link, label: this.t("sendMagicLink") } : null,
9732
+ t.emailOtp ? { step: "email-otp", icon: q.mail, label: this.t("continueWithEmail") } : null,
9733
+ t.phone ? { step: "phone", icon: q.smartphone, label: this.t("continueWithPhone") } : null
9551
9734
  ].filter(Boolean);
9552
- return b`
9735
+ return w`
9553
9736
  <div class="stack">
9554
9737
  ${this.renderProviders()}
9555
- ${n && (e || i.length > 0) ? b`<div class="separator-text">${this.t("or")}</div>` : M}
9556
- ${e ? b`<form
9738
+ ${n && (e || i.length > 0) ? w`<div class="separator-text">${this.t("or")}</div>` : C}
9739
+ ${e ? w`<form
9557
9740
  class="form ${Fe() === "email-password" ? "last-used-form" : ""}"
9558
9741
  @submit=${this.onSignIn}
9559
9742
  novalidate
9560
9743
  >
9561
- ${Fe() === "email-password" ? b`<p class="hint">
9744
+ ${Fe() === "email-password" ? w`<p class="hint">
9562
9745
  <span class="last-used-badge">${this.t("lastUsed")}</span>
9563
- </p>` : M}
9746
+ </p>` : C}
9564
9747
  ${this.emailField()}
9565
9748
  ${this.passwordField({ label: this.t("password"), autocomplete: "current-password", id: "authui-password", field: "password", forgot: !0 })}
9566
9749
  ${this.renderError()} ${this.submitButton(this.t("signIn"))}
9567
9750
  </form>` : this.renderError()}
9568
- ${i.length > 0 ? b`<div class="stack-sm">
9751
+ ${i.length > 0 ? w`<div class="stack-sm">
9569
9752
  ${i.map((o) => {
9570
9753
  const a = Fe() === o.step;
9571
- return b`<button
9754
+ return w`<button
9572
9755
  type="button"
9573
9756
  class="btn btn-secondary btn-block ${a ? "last-used" : ""}"
9574
9757
  @click=${() => this.go(o.step)}
9575
9758
  >
9576
9759
  ${o.icon} ${o.label}
9577
- ${a ? b`<span class="last-used-badge">${this.t("lastUsed")}</span>` : M}
9760
+ ${a ? w`<span class="last-used-badge">${this.t("lastUsed")}</span>` : C}
9578
9761
  </button>`;
9579
9762
  })}
9580
- </div>` : M}
9581
- ${t.anonymous ? b`<button
9763
+ </div>` : C}
9764
+ ${t.anonymous ? w`<button
9582
9765
  type="button"
9583
9766
  class="btn btn-ghost btn-block ${Fe() === "anonymous" ? "last-used" : ""}"
9584
9767
  @click=${this.onGuest}
9585
9768
  ?disabled=${this.busy}
9586
9769
  >
9587
- ${_.ghost} ${this.t("continueAsGuest")}
9588
- ${Fe() === "anonymous" ? b`<span class="last-used-badge">${this.t("lastUsed")}</span>` : M}
9589
- </button>` : M}
9590
- ${e && this.config?.signUp !== !1 ? b`<div class="links">
9770
+ ${q.ghost} ${this.t("continueAsGuest")}
9771
+ ${Fe() === "anonymous" ? w`<span class="last-used-badge">${this.t("lastUsed")}</span>` : C}
9772
+ </button>` : C}
9773
+ ${e && this.config?.signUp !== !1 ? w`<div class="links">
9591
9774
  <span>${this.t("noAccount")}</span>
9592
9775
  <button type="button" class="btn btn-link" @click=${() => this.go("sign-up")}>
9593
9776
  ${this.t("signUp")}
9594
9777
  </button>
9595
- </div>` : M}
9778
+ </div>` : C}
9596
9779
  ${this.legal()}
9597
9780
  </div>
9598
9781
  `;
9599
9782
  }
9600
9783
  renderSignUp() {
9601
- return b`
9784
+ return w`
9602
9785
  <div class="stack">
9603
9786
  ${this.renderProviders()}
9604
- ${(this.config?.methods?.oauth?.length ?? 0) > 0 ? b`<div class="separator-text">${this.t("or")}</div>` : M}
9787
+ ${(this.config?.methods?.oauth?.length ?? 0) > 0 ? w`<div class="separator-text">${this.t("or")}</div>` : C}
9605
9788
  <form class="form" @submit=${this.onSignUp} novalidate>
9606
- ${this.config?.requireName !== !1 ? b`<div class="field">
9789
+ ${this.config?.requireName !== !1 ? w`<div class="field">
9607
9790
  <label class="label" for="authui-name">${this.t("name")}</label>
9608
9791
  <input
9609
9792
  class="input"
@@ -9614,7 +9797,7 @@ let ve = class extends qe {
9614
9797
  .value=${this.name}
9615
9798
  @input=${this.bind("name")}
9616
9799
  />
9617
- </div>` : M}
9800
+ </div>` : C}
9618
9801
  ${this.emailField()}
9619
9802
  ${this.passwordField({ label: this.t("password"), autocomplete: "new-password", id: "authui-password", field: "password", hint: this.t("passwordHint"), meter: !0 })}
9620
9803
  ${this.renderError()} ${this.submitButton(this.t("createAccount"))}
@@ -9630,7 +9813,7 @@ let ve = class extends qe {
9630
9813
  `;
9631
9814
  }
9632
9815
  renderForgot() {
9633
- return b`
9816
+ return w`
9634
9817
  <div class="stack">
9635
9818
  <form class="form" @submit=${this.onForgot} novalidate>
9636
9819
  ${this.emailField()} ${this.renderError()} ${this.submitButton(this.t("sendResetLink"))}
@@ -9640,7 +9823,7 @@ let ve = class extends qe {
9640
9823
  `;
9641
9824
  }
9642
9825
  renderReset() {
9643
- return this.recovery ? b`
9826
+ return this.recovery ? w`
9644
9827
  <div class="stack">
9645
9828
  <form class="form" @submit=${this.onReset} novalidate>
9646
9829
  ${this.passwordField({ label: this.t("newPassword"), autocomplete: "new-password", id: "authui-password", field: "password", hint: this.t("passwordHint"), meter: !0 })}
@@ -9655,13 +9838,13 @@ let ve = class extends qe {
9655
9838
  this.step = "sign-in", this.error = "", this.notice = null, this.focusOnStep = !0, this.fire("authui-view", { view: "sign-in" });
9656
9839
  }}
9657
9840
  >
9658
- ${_.arrowLeft} ${this.t("back")}
9841
+ ${q.arrowLeft} ${this.t("back")}
9659
9842
  </button>
9660
9843
  </div>
9661
9844
  </div>
9662
- ` : b`<div class="stack">
9845
+ ` : w`<div class="stack">
9663
9846
  <div class="alert alert-error" role="alert">
9664
- ${_.alert}
9847
+ ${q.alert}
9665
9848
  <div class="alert-body">${this.t("errorInvalidToken")}</div>
9666
9849
  </div>
9667
9850
  <div class="links">
@@ -9678,22 +9861,22 @@ let ve = class extends qe {
9678
9861
  </div>`;
9679
9862
  }
9680
9863
  phraseBox(t) {
9681
- return t ? b`<div class="alert alert-info">
9682
- ${_.shield}
9864
+ return t ? w`<div class="alert alert-info">
9865
+ ${q.shield}
9683
9866
  <div class="alert-title">
9684
9867
  ${this.t("securityPhrase")}: <span class="code">${t}</span>
9685
9868
  </div>
9686
9869
  <div class="alert-body">${this.t("securityPhraseHint")}</div>
9687
- </div>` : M;
9870
+ </div>` : C;
9688
9871
  }
9689
9872
  renderMagicUrl() {
9690
- return this.token ? b`<div class="stack">
9873
+ return this.token ? w`<div class="stack">
9691
9874
  <div class="alert alert-success" role="status">
9692
- ${_.mail}
9875
+ ${q.mail}
9693
9876
  <div class="alert-body">${this.t("magicLinkSent", { email: this.token.target })}</div>
9694
9877
  </div>
9695
9878
  ${this.phraseBox(this.token.phrase)} ${this.backLink()}
9696
- </div>` : b`
9879
+ </div>` : w`
9697
9880
  <div class="stack">
9698
9881
  <form class="form" @submit=${this.onMagicUrl} novalidate>
9699
9882
  ${this.emailField()} ${this.renderError()} ${this.submitButton(this.t("sendMagicLink"))}
@@ -9722,9 +9905,9 @@ let ve = class extends qe {
9722
9905
  }
9723
9906
  renderCodeEntry() {
9724
9907
  const t = this.token?.kind === "phone", e = Date.now() < this.resendCooldownUntil;
9725
- return b`
9908
+ return w`
9726
9909
  <div class="alert alert-info" role="status">
9727
- ${t ? _.smartphone : _.mail}
9910
+ ${t ? q.smartphone : q.mail}
9728
9911
  <div class="alert-body">${this.t("codeSent", { target: this.token.target })}</div>
9729
9912
  </div>
9730
9913
  ${this.phraseBox(this.token.phrase)}
@@ -9756,7 +9939,7 @@ let ve = class extends qe {
9756
9939
  `;
9757
9940
  }
9758
9941
  renderEmailOtp() {
9759
- return this.token ? b`<div class="stack">${this.renderCodeEntry()}</div>` : b`
9942
+ return this.token ? w`<div class="stack">${this.renderCodeEntry()}</div>` : w`
9760
9943
  <div class="stack">
9761
9944
  <form class="form" @submit=${this.onEmailOtp} novalidate>
9762
9945
  ${this.emailField()} ${this.renderError()} ${this.submitButton(this.t("sendCode"))}
@@ -9766,7 +9949,7 @@ let ve = class extends qe {
9766
9949
  `;
9767
9950
  }
9768
9951
  renderPhone() {
9769
- return this.token ? b`<div class="stack">${this.renderCodeEntry()}</div>` : b`
9952
+ return this.token ? w`<div class="stack">${this.renderCodeEntry()}</div>` : w`
9770
9953
  <div class="stack">
9771
9954
  <form class="form" @submit=${this.onPhoneOtp} novalidate>
9772
9955
  <div class="field">
@@ -9794,34 +9977,34 @@ let ve = class extends qe {
9794
9977
  const n = [
9795
9978
  {
9796
9979
  factor: "totp",
9797
- icon: _.smartphone,
9980
+ icon: q.smartphone,
9798
9981
  label: this.t("mfaUseAuthenticator"),
9799
9982
  available: t?.totp ?? !0
9800
9983
  },
9801
9984
  {
9802
9985
  factor: "email",
9803
- icon: _.mail,
9986
+ icon: q.mail,
9804
9987
  label: this.t("mfaUseEmail"),
9805
9988
  available: t?.email ?? !0
9806
9989
  },
9807
9990
  {
9808
9991
  factor: "phone",
9809
- icon: _.phone,
9992
+ icon: q.phone,
9810
9993
  label: this.t("mfaUsePhone"),
9811
9994
  available: t?.phone ?? !0
9812
9995
  },
9813
9996
  {
9814
9997
  factor: "recoverycode",
9815
- icon: _.key,
9998
+ icon: q.key,
9816
9999
  label: this.t("mfaUseRecoveryCode"),
9817
10000
  available: t?.recoveryCode ?? !0
9818
10001
  }
9819
10002
  ];
9820
- return b`
10003
+ return w`
9821
10004
  <div class="stack">
9822
10005
  <div class="stack-sm">
9823
10006
  ${n.filter((i) => i.available).map(
9824
- (i) => b`<button
10007
+ (i) => w`<button
9825
10008
  type="button"
9826
10009
  class="choice"
9827
10010
  @click=${() => this.onChooseFactor(i.factor)}
@@ -9841,10 +10024,10 @@ let ve = class extends qe {
9841
10024
  `;
9842
10025
  }
9843
10026
  const e = this.challenge.factor === "recoverycode";
9844
- return b`
10027
+ return w`
9845
10028
  <div class="stack">
9846
10029
  <form class="form" @submit=${this.onVerifyFactor} novalidate>
9847
- ${e ? b`<div class="field">
10030
+ ${e ? w`<div class="field">
9848
10031
  <label class="label" for="authui-code">${this.t("recoveryCode")}</label>
9849
10032
  <input
9850
10033
  class="input mono"
@@ -9860,7 +10043,7 @@ let ve = class extends qe {
9860
10043
  </form>
9861
10044
  <div class="links">
9862
10045
  <button type="button" class="btn btn-link" @click=${() => this.challenge = null}>
9863
- ${_.arrowLeft} ${this.t("back")}
10046
+ ${q.arrowLeft} ${this.t("back")}
9864
10047
  </button>
9865
10048
  <span aria-hidden="true">·</span>
9866
10049
  <button type="button" class="btn btn-link" @click=${this.onCancelMfa}>
@@ -9871,46 +10054,49 @@ let ve = class extends qe {
9871
10054
  `;
9872
10055
  }
9873
10056
  };
9874
- ve.styles = [...qe.styles, Co];
9875
- ke([
10057
+ we.styles = [...qe.styles, xo];
10058
+ Ae([
9876
10059
  ee({ type: String })
9877
- ], ve.prototype, "view", 2);
9878
- ke([
10060
+ ], we.prototype, "view", 2);
10061
+ Ae([
9879
10062
  ee({ type: Boolean })
9880
- ], ve.prototype, "embedded", 2);
9881
- ke([
10063
+ ], we.prototype, "embedded", 2);
10064
+ Ae([
10065
+ V()
10066
+ ], we.prototype, "step", 2);
10067
+ Ae([
9882
10068
  V()
9883
- ], ve.prototype, "step", 2);
9884
- ke([
10069
+ ], we.prototype, "busy", 2);
10070
+ Ae([
9885
10071
  V()
9886
- ], ve.prototype, "busy", 2);
9887
- ke([
10072
+ ], we.prototype, "error", 2);
10073
+ Ae([
9888
10074
  V()
9889
- ], ve.prototype, "error", 2);
9890
- ke([
10075
+ ], we.prototype, "notice", 2);
10076
+ Ae([
9891
10077
  V()
9892
- ], ve.prototype, "notice", 2);
9893
- ke([
10078
+ ], we.prototype, "showPassword", 2);
10079
+ Ae([
9894
10080
  V()
9895
- ], ve.prototype, "showPassword", 2);
9896
- ke([
10081
+ ], we.prototype, "expandedOAuth", 2);
10082
+ Ae([
9897
10083
  V()
9898
- ], ve.prototype, "token", 2);
9899
- ke([
10084
+ ], we.prototype, "token", 2);
10085
+ Ae([
9900
10086
  V()
9901
- ], ve.prototype, "resendCooldownUntil", 2);
9902
- ke([
10087
+ ], we.prototype, "resendCooldownUntil", 2);
10088
+ Ae([
9903
10089
  V()
9904
- ], ve.prototype, "challenge", 2);
9905
- ke([
10090
+ ], we.prototype, "challenge", 2);
10091
+ Ae([
9906
10092
  V()
9907
- ], ve.prototype, "recovery", 2);
9908
- ke([
9909
- bi("form input:not([type=hidden])")
9910
- ], ve.prototype, "firstInput", 2);
9911
- ve = ke([
10093
+ ], we.prototype, "recovery", 2);
10094
+ Ae([
10095
+ wi("form input:not([type=hidden])")
10096
+ ], we.prototype, "firstInput", 2);
10097
+ we = Ae([
9912
10098
  ze("authui-sign-in")
9913
- ], ve);
10099
+ ], we);
9914
10100
  var Eo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, O = (t, e, n, i) => {
9915
10101
  for (var o = i > 1 ? void 0 : i ? qo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
9916
10102
  (s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
@@ -10022,7 +10208,7 @@ let z = class extends qe {
10022
10208
  try {
10023
10209
  this.recoveryCodes = await R.createRecoveryCodes();
10024
10210
  } catch (t) {
10025
- if (!yt(t, oe.recoveryCodesExist)) throw t;
10211
+ if (!gt(t, oe.recoveryCodesExist)) throw t;
10026
10212
  this.recoveryCodes = await R.getRecoveryCodes();
10027
10213
  }
10028
10214
  await this.loadFactors();
@@ -10120,10 +10306,14 @@ let z = class extends qe {
10120
10306
  }
10121
10307
  updated(t) {
10122
10308
  t.has("active") && requestAnimationFrame(() => {
10123
- const e = this.renderRoot.querySelector(
10309
+ const n = this.renderRoot.querySelector(
10124
10310
  '.tab[aria-selected="true"]'
10125
10311
  );
10126
- e && typeof e.scrollIntoView == "function" && e.scrollIntoView({ inline: "nearest", block: "nearest", behavior: "smooth" });
10312
+ n && typeof n.scrollIntoView == "function" && n.scrollIntoView({ inline: "nearest", block: "nearest", behavior: "smooth" });
10313
+ }), (t.has("confirmDelete") && this.confirmDelete || t.has("confirmSignOutAll") && this.confirmSignOutAll || t.has("confirmDisconnectId") && this.confirmDisconnectId !== null) && requestAnimationFrame(() => {
10314
+ this.renderRoot.querySelector(
10315
+ ".card-footer [autofocus], .row-actions [autofocus], .inline [autofocus], .card-footer .btn-outline, .row-actions .btn-outline, .inline .btn-outline"
10316
+ )?.focus({ preventScroll: !0 });
10127
10317
  });
10128
10318
  }
10129
10319
  setNotice(t, e) {
@@ -10141,9 +10331,9 @@ let z = class extends qe {
10141
10331
  try {
10142
10332
  await e(), n && this.setNotice("success", n);
10143
10333
  } catch (i) {
10144
- yt(i, oe.challengeRequired) ? this.stepUp = { retry: () => this.run(t, e, n) } : this.errors = {
10334
+ gt(i, oe.challengeRequired) ? this.stepUp = { retry: () => this.run(t, e, n) } : this.errors = {
10145
10335
  ...this.errors,
10146
- [t]: xt(
10336
+ [t]: Ct(
10147
10337
  i,
10148
10338
  this.strings,
10149
10339
  t.includes("code") ? "code" : t === "password" ? "password" : "link"
@@ -10224,16 +10414,16 @@ let z = class extends qe {
10224
10414
  // ─────────────────────────── render ───────────────────────────
10225
10415
  render() {
10226
10416
  if (!this.auth.configured)
10227
- return b`<div class="alert alert-error" role="alert">
10228
- ${_.alert}
10417
+ return w`<div class="alert alert-error" role="alert">
10418
+ ${q.alert}
10229
10419
  <div class="alert-body">${this.t("errorNotConfigured")}</div>
10230
10420
  </div>`;
10231
10421
  if (this.auth.status === "loading")
10232
- return b`<div class="panel ${this.embedded ? "embedded" : ""}" part="panel">
10422
+ return w`<div class="panel ${this.embedded ? "embedded" : ""}" part="panel">
10233
10423
  <div class="empty"><span class="spinner"></span></div>
10234
10424
  </div>`;
10235
10425
  if (!this.user)
10236
- return b`<div class="panel ${this.embedded ? "embedded" : ""}">
10426
+ return w`<div class="panel ${this.embedded ? "embedded" : ""}">
10237
10427
  <authui-sign-in embedded></authui-sign-in>
10238
10428
  </div>`;
10239
10429
  const t = [
@@ -10243,12 +10433,12 @@ let z = class extends qe {
10243
10433
  { id: "connections", label: this.t("connections") },
10244
10434
  ...this.logsSupported ? [{ id: "activity", label: this.t("activity") }] : []
10245
10435
  ];
10246
- return b`
10436
+ return w`
10247
10437
  <div class="panel ${this.embedded ? "embedded" : ""}" part="panel">
10248
10438
  ${this.renderIdentity()}
10249
10439
  <div class="tabs" role="tablist" @keydown=${this.onTabsKeydown}>
10250
10440
  ${t.map(
10251
- (e) => b`<button
10441
+ (e) => w`<button
10252
10442
  class="tab"
10253
10443
  role="tab"
10254
10444
  id=${`authui-tab-${e.id}`}
@@ -10261,8 +10451,8 @@ let z = class extends qe {
10261
10451
  </button>`
10262
10452
  )}
10263
10453
  </div>
10264
- ${this.notice ? b`<div class="alert alert-${this.notice.tone}" role="status">
10265
- ${this.notice.tone === "success" ? _.checkCircle : _.info}
10454
+ ${this.notice ? w`<div class="alert alert-${this.notice.tone}" role="status">
10455
+ ${this.notice.tone === "success" ? q.checkCircle : q.info}
10266
10456
  <div class="alert-body">${this.notice.message}</div>
10267
10457
  <button
10268
10458
  class="btn btn-ghost btn-icon dismiss"
@@ -10271,10 +10461,10 @@ let z = class extends qe {
10271
10461
  }}
10272
10462
  aria-label=${this.t("close")}
10273
10463
  >
10274
- ${_.x}
10464
+ ${q.x}
10275
10465
  </button>
10276
- </div>` : M}
10277
- ${this.stepUp ? this.renderStepUp() : b`<div
10466
+ </div>` : C}
10467
+ ${this.stepUp ? this.renderStepUp() : w`<div
10278
10468
  class="tabpanel"
10279
10469
  role="tabpanel"
10280
10470
  id=${`authui-panel-${this.active}`}
@@ -10287,21 +10477,21 @@ let z = class extends qe {
10287
10477
  }
10288
10478
  renderIdentity() {
10289
10479
  const t = this.user, e = t.name || t.email || t.phone || this.t("guestAccount");
10290
- return b`
10480
+ return w`
10291
10481
  <div class="between">
10292
10482
  <div class="identity">
10293
10483
  <span class="avatar">${Ai(e)}</span>
10294
10484
  <div class="row-main">
10295
10485
  <span class="row-title" title=${e}>
10296
10486
  ${e}
10297
- ${t.mfa ? b`<span class="badge badge-success">${_.shieldCheck} ${this.t("mfaBadge")}</span>` : M}
10298
- ${R.isPreview ? b`<span class="badge badge-info">${this.t("preview")}</span>` : M}
10487
+ ${t.mfa ? w`<span class="badge badge-success">${q.shieldCheck} ${this.t("mfaBadge")}</span>` : C}
10488
+ ${R.isPreview ? w`<span class="badge badge-info">${this.t("preview")}</span>` : C}
10299
10489
  </span>
10300
- ${t.email && t.name ? b`<span class="row-sub" title=${t.email}>${t.email}</span>` : M}
10490
+ ${t.email && t.name ? w`<span class="row-sub" title=${t.email}>${t.email}</span>` : C}
10301
10491
  </div>
10302
10492
  </div>
10303
10493
  <button class="btn btn-outline btn-sm" @click=${() => R.signOut()}>
10304
- ${_.logOut} ${this.t("signOut")}
10494
+ ${q.logOut} ${this.t("signOut")}
10305
10495
  </button>
10306
10496
  </div>
10307
10497
  `;
@@ -10322,35 +10512,64 @@ let z = class extends qe {
10322
10512
  }
10323
10513
  error(t) {
10324
10514
  const e = this.errors[t];
10325
- return e ? b`<div class="alert alert-error" role="alert">
10326
- ${_.alert}
10515
+ return e ? w`<div class="alert alert-error" role="alert">
10516
+ ${q.alert}
10327
10517
  <div class="alert-body">${e}</div>
10328
- </div>` : M;
10518
+ </div>` : C;
10329
10519
  }
10330
10520
  spinner(t) {
10331
- return this.busy === t ? b`<span class="spinner" aria-hidden="true"></span>` : M;
10521
+ return this.busy === t ? w`<span class="spinner" aria-hidden="true"></span>` : C;
10332
10522
  }
10333
10523
  card(t, e, n, i, o = !1) {
10334
- return b`<section class="card ${o ? "card-danger" : ""}">
10524
+ return w`<section class="card ${o ? "card-danger" : ""}">
10335
10525
  <div class="card-header">
10336
10526
  <h3 class="card-title">${t}</h3>
10337
- ${e ? b`<p class="card-description">${e}</p>` : M}
10527
+ ${e ? w`<p class="card-description">${e}</p>` : C}
10338
10528
  </div>
10339
- <div class="card-body">${n}</div>
10340
- ${i ? b`<div class="card-footer">${i}</div>` : M}
10529
+ ${n !== C ? w`<div class="card-body">${n}</div>` : C}
10530
+ ${i ? w`<div class="card-footer">${i}</div>` : C}
10341
10531
  </section>`;
10342
10532
  }
10533
+ /** Vibes-style confirm footer: Cancel first (autofocus), destructive only on confirm. */
10534
+ confirmFooter(t, e, n, i) {
10535
+ return w`
10536
+ <button
10537
+ type="button"
10538
+ class="btn btn-outline btn-sm"
10539
+ autofocus
10540
+ ?disabled=${!!this.busy}
10541
+ @click=${t}
10542
+ >
10543
+ ${this.t("cancel")}
10544
+ </button>
10545
+ <button
10546
+ type="button"
10547
+ class="btn btn-destructive btn-sm"
10548
+ ?disabled=${!!this.busy}
10549
+ @click=${e}
10550
+ >
10551
+ ${i ? this.spinner(i) : C} ${n}
10552
+ </button>
10553
+ `;
10554
+ }
10555
+ emptyState(t, e, n) {
10556
+ return w`<div class="empty empty-well">
10557
+ <div class="empty-icon" aria-hidden="true">${t}</div>
10558
+ <p class="empty-title">${e}</p>
10559
+ <p class="empty-desc">${n}</p>
10560
+ </div>`;
10561
+ }
10343
10562
  verifiedBadge(t) {
10344
- return t ? b`<span class="badge badge-success">${_.check} ${this.t("verified")}</span>` : b`<span class="badge badge-warning">${this.t("unverified")}</span>`;
10563
+ return t ? w`<span class="badge badge-success">${q.check} ${this.t("verified")}</span>` : w`<span class="badge badge-warning">${this.t("unverified")}</span>`;
10345
10564
  }
10346
10565
  // ── Profile ──
10347
10566
  renderProfile() {
10348
10567
  const t = this.user;
10349
- return this.isGuest ? b`<div class="section">
10568
+ return this.isGuest ? w`<div class="section">
10350
10569
  ${this.card(
10351
10570
  this.t("guestAccount"),
10352
10571
  this.t("guestAccountDescription"),
10353
- b`<form class="form" id="guest-form" @submit=${this.onConvertGuest} novalidate>
10572
+ w`<form class="form" id="guest-form" @submit=${this.onConvertGuest} novalidate>
10354
10573
  <div class="field">
10355
10574
  <label class="label" for="guest-name">${this.t("name")}</label>
10356
10575
  <input
@@ -10387,7 +10606,7 @@ let z = class extends qe {
10387
10606
  />
10388
10607
  ${this.emailPassword ? (() => {
10389
10608
  const e = pi(this.emailPassword);
10390
- return b`<div class="strength" aria-live="polite">
10609
+ return w`<div class="strength" aria-live="polite">
10391
10610
  <div
10392
10611
  class="strength-meter"
10393
10612
  data-level=${String(e.level)}
@@ -10402,11 +10621,11 @@ let z = class extends qe {
10402
10621
  </div>
10403
10622
  <p class="strength-label">${this.t(e.labelKey)}</p>
10404
10623
  </div>`;
10405
- })() : b`<p class="hint">${this.t("passwordHint")}</p>`}
10624
+ })() : w`<p class="hint">${this.t("passwordHint")}</p>`}
10406
10625
  </div>
10407
10626
  ${this.error("guest")}
10408
10627
  </form>`,
10409
- b`<button
10628
+ w`<button
10410
10629
  class="btn btn-primary btn-sm"
10411
10630
  type="submit"
10412
10631
  form="guest-form"
@@ -10415,11 +10634,11 @@ let z = class extends qe {
10415
10634
  ${this.spinner("guest")} ${this.t("createAccount")}
10416
10635
  </button>`
10417
10636
  )}
10418
- </div>` : b`<div class="section">
10637
+ </div>` : w`<div class="section">
10419
10638
  ${this.card(
10420
10639
  this.t("name"),
10421
10640
  void 0,
10422
- b`<form class="form" id="name-form" @submit=${this.onUpdateName} novalidate>
10641
+ w`<form class="form" id="name-form" @submit=${this.onUpdateName} novalidate>
10423
10642
  <div class="field">
10424
10643
  <label class="label" for="acc-name">${this.t("name")}</label>
10425
10644
  <input
@@ -10433,7 +10652,7 @@ let z = class extends qe {
10433
10652
  </div>
10434
10653
  ${this.error("name")}
10435
10654
  </form>`,
10436
- b`<button
10655
+ w`<button
10437
10656
  class="btn btn-primary btn-sm"
10438
10657
  type="submit"
10439
10658
  form="name-form"
@@ -10445,11 +10664,11 @@ let z = class extends qe {
10445
10664
  ${this.card(
10446
10665
  this.t("email"),
10447
10666
  void 0,
10448
- b`<form class="form" id="email-form" @submit=${this.onUpdateEmail} novalidate>
10667
+ w`<form class="form" id="email-form" @submit=${this.onUpdateEmail} novalidate>
10449
10668
  <div class="field">
10450
10669
  <label class="label" for="acc-email"
10451
10670
  >${this.t("email")}
10452
- ${t.email ? this.verifiedBadge(t.emailVerification) : M}</label
10671
+ ${t.email ? this.verifiedBadge(t.emailVerification) : C}</label
10453
10672
  >
10454
10673
  <input
10455
10674
  class="input"
@@ -10461,7 +10680,7 @@ let z = class extends qe {
10461
10680
  required
10462
10681
  />
10463
10682
  </div>
10464
- ${this.emailInput !== t.email ? b`<div class="field">
10683
+ ${this.emailInput !== t.email ? w`<div class="field">
10465
10684
  <label class="label" for="acc-email-password"
10466
10685
  >${t.passwordUpdate ? this.t("currentPassword") : this.t("createPassword")}</label
10467
10686
  >
@@ -10474,12 +10693,12 @@ let z = class extends qe {
10474
10693
  autocomplete=${t.passwordUpdate ? "current-password" : "new-password"}
10475
10694
  required
10476
10695
  />
10477
- ${t.passwordUpdate ? M : b`<p class="hint">${this.t("createPasswordHint")}</p>`}
10478
- </div>` : M}
10696
+ ${t.passwordUpdate ? C : w`<p class="hint">${this.t("createPasswordHint")}</p>`}
10697
+ </div>` : C}
10479
10698
  ${this.error("email")} ${this.error("verify")}
10480
10699
  </form>`,
10481
- b`
10482
- ${t.email && !t.emailVerification ? b`<button
10700
+ w`
10701
+ ${t.email && !t.emailVerification ? w`<button
10483
10702
  class="btn btn-outline btn-sm"
10484
10703
  type="button"
10485
10704
  @click=${this.onSendVerification}
@@ -10492,7 +10711,7 @@ let z = class extends qe {
10492
10711
  Math.ceil((this.verifyEmailCooldownUntil - Date.now()) / 1e3)
10493
10712
  )
10494
10713
  }) : this.t("verifyEmail")}
10495
- </button>` : M}
10714
+ </button>` : C}
10496
10715
  <button
10497
10716
  class="btn btn-primary btn-sm"
10498
10717
  type="submit"
@@ -10506,11 +10725,11 @@ let z = class extends qe {
10506
10725
  ${this.card(
10507
10726
  this.t("phone"),
10508
10727
  void 0,
10509
- b`<form class="form" id="phone-form" @submit=${this.onUpdatePhone} novalidate>
10728
+ w`<form class="form" id="phone-form" @submit=${this.onUpdatePhone} novalidate>
10510
10729
  <div class="field">
10511
10730
  <label class="label" for="acc-phone"
10512
10731
  >${this.t("phone")}
10513
- ${t.phone ? this.verifiedBadge(t.phoneVerification) : M}</label
10732
+ ${t.phone ? this.verifiedBadge(t.phoneVerification) : C}</label
10514
10733
  >
10515
10734
  <input
10516
10735
  class="input"
@@ -10522,7 +10741,7 @@ let z = class extends qe {
10522
10741
  autocomplete="tel"
10523
10742
  />
10524
10743
  </div>
10525
- ${this.phoneInput !== t.phone ? b`<div class="field">
10744
+ ${this.phoneInput !== t.phone ? w`<div class="field">
10526
10745
  <label class="label" for="acc-phone-password"
10527
10746
  >${t.passwordUpdate ? this.t("currentPassword") : this.t("createPassword")}</label
10528
10747
  >
@@ -10535,9 +10754,9 @@ let z = class extends qe {
10535
10754
  autocomplete=${t.passwordUpdate ? "current-password" : "new-password"}
10536
10755
  required
10537
10756
  />
10538
- ${t.passwordUpdate ? M : b`<p class="hint">${this.t("createPasswordHint")}</p>`}
10539
- </div>` : M}
10540
- ${this.phoneCodeSent ? b`<div class="field">
10757
+ ${t.passwordUpdate ? C : w`<p class="hint">${this.t("createPasswordHint")}</p>`}
10758
+ </div>` : C}
10759
+ ${this.phoneCodeSent ? w`<div class="field">
10541
10760
  <label class="label" for="acc-phone-code">${this.t("code")}</label>
10542
10761
  <input
10543
10762
  class="input input-otp"
@@ -10553,26 +10772,26 @@ let z = class extends qe {
10553
10772
  e.key === "Enter" && (e.preventDefault(), this.onConfirmPhoneVerification(e));
10554
10773
  }}
10555
10774
  />
10556
- </div>` : M}
10775
+ </div>` : C}
10557
10776
  ${this.error("phone")} ${this.error("verify-phone")} ${this.error("verify-phone-code")}
10558
10777
  </form>`,
10559
- b`
10560
- ${t.phone && !t.phoneVerification && !this.phoneCodeSent ? b`<button
10778
+ w`
10779
+ ${t.phone && !t.phoneVerification && !this.phoneCodeSent ? w`<button
10561
10780
  class="btn btn-outline btn-sm"
10562
10781
  type="button"
10563
10782
  @click=${this.onSendPhoneVerification}
10564
10783
  ?disabled=${!!this.busy}
10565
10784
  >
10566
10785
  ${this.spinner("verify-phone")} ${this.t("sendCode")}
10567
- </button>` : M}
10568
- ${this.phoneCodeSent ? b`<button
10786
+ </button>` : C}
10787
+ ${this.phoneCodeSent ? w`<button
10569
10788
  class="btn btn-outline btn-sm"
10570
10789
  type="button"
10571
10790
  @click=${this.onConfirmPhoneVerification}
10572
10791
  ?disabled=${!!this.busy}
10573
10792
  >
10574
10793
  ${this.spinner("verify-phone-code")} ${this.t("verifyCode")}
10575
- </button>` : M}
10794
+ </button>` : C}
10576
10795
  <button
10577
10796
  class="btn btn-primary btn-sm"
10578
10797
  type="submit"
@@ -10590,42 +10809,37 @@ let z = class extends qe {
10590
10809
  return this.card(
10591
10810
  this.t("deleteAccount"),
10592
10811
  this.t("deleteAccountDescription"),
10593
- b`${this.error("delete")}
10594
- ${this.confirmDelete ? b`<div class="inline">
10595
- <button
10596
- class="btn btn-outline btn-sm warn"
10597
- @click=${this.onDeleteAccount}
10598
- ?disabled=${!!this.busy}
10599
- >
10600
- ${this.spinner("delete")} ${this.t("deleteAccountConfirm")}
10601
- </button>
10602
- <button class="btn btn-ghost btn-sm" @click=${() => this.confirmDelete = !1}>
10603
- ${this.t("cancel")}
10604
- </button>
10605
- </div>` : b`<button
10606
- class="btn btn-outline btn-sm warn"
10607
- @click=${() => this.confirmDelete = !0}
10608
- >
10609
- ${_.userX} ${this.t("deleteAccount")}
10610
- </button>`}`,
10611
- void 0,
10812
+ this.confirmDelete ? this.error("delete") : w`${this.error("delete")}
10813
+ <button class="btn btn-outline btn-sm warn" @click=${() => this.confirmDelete = !0}>
10814
+ ${q.userX} ${this.t("deleteAccount")}
10815
+ </button>`,
10816
+ this.confirmDelete ? this.confirmFooter(
10817
+ () => {
10818
+ this.confirmDelete = !1;
10819
+ },
10820
+ () => {
10821
+ this.onDeleteAccount();
10822
+ },
10823
+ this.t("deleteAccountConfirm"),
10824
+ "delete"
10825
+ ) : void 0,
10612
10826
  !0
10613
10827
  );
10614
10828
  }
10615
10829
  // ── Security ──
10616
10830
  renderSecurity() {
10617
10831
  const t = this.user, e = this.config?.mfa !== !1;
10618
- return b`<div class="section">
10619
- ${this.isGuest ? M : this.card(
10832
+ return w`<div class="section">
10833
+ ${this.isGuest ? C : this.card(
10620
10834
  this.t("changePassword"),
10621
10835
  void 0,
10622
- b`<form
10836
+ w`<form
10623
10837
  class="form"
10624
10838
  id="password-form"
10625
10839
  @submit=${this.onChangePassword}
10626
10840
  novalidate
10627
10841
  >
10628
- ${t.passwordUpdate ? b`<div class="field">
10842
+ ${t.passwordUpdate ? w`<div class="field">
10629
10843
  <label class="label" for="acc-old-password"
10630
10844
  >${this.t("currentPassword")}</label
10631
10845
  >
@@ -10638,7 +10852,7 @@ let z = class extends qe {
10638
10852
  autocomplete="current-password"
10639
10853
  required
10640
10854
  />
10641
- </div>` : M}
10855
+ </div>` : C}
10642
10856
  <div class="field">
10643
10857
  <label class="label" for="acc-new-password">${this.t("newPassword")}</label>
10644
10858
  <input
@@ -10653,7 +10867,7 @@ let z = class extends qe {
10653
10867
  />
10654
10868
  ${this.newPassword ? (() => {
10655
10869
  const n = pi(this.newPassword);
10656
- return b`<div class="strength" aria-live="polite">
10870
+ return w`<div class="strength" aria-live="polite">
10657
10871
  <div
10658
10872
  class="strength-meter"
10659
10873
  data-level=${String(n.level)}
@@ -10668,7 +10882,7 @@ let z = class extends qe {
10668
10882
  </div>
10669
10883
  <p class="strength-label">${this.t(n.labelKey)}</p>
10670
10884
  </div>`;
10671
- })() : b`<p class="hint">${this.t("passwordHint")}</p>`}
10885
+ })() : w`<p class="hint">${this.t("passwordHint")}</p>`}
10672
10886
  </div>
10673
10887
  <div class="field">
10674
10888
  <label class="label" for="acc-new-password-confirm"
@@ -10687,7 +10901,7 @@ let z = class extends qe {
10687
10901
  </div>
10688
10902
  ${this.error("password")}
10689
10903
  </form>`,
10690
- b`<button
10904
+ w`<button
10691
10905
  class="btn btn-primary btn-sm"
10692
10906
  type="submit"
10693
10907
  form="password-form"
@@ -10696,8 +10910,8 @@ let z = class extends qe {
10696
10910
  ${this.spinner("password")} ${this.t("update")}
10697
10911
  </button>`
10698
10912
  )}
10699
- ${e ? this.renderMfaCard() : M}
10700
- ${e ? this.renderRecoveryCard() : M}
10913
+ ${e ? this.renderMfaCard() : C}
10914
+ ${e ? this.renderRecoveryCard() : C}
10701
10915
  </div>`;
10702
10916
  }
10703
10917
  renderMfaCard() {
@@ -10705,7 +10919,7 @@ let z = class extends qe {
10705
10919
  return this.card(
10706
10920
  this.t("twoFactor"),
10707
10921
  this.t("twoFactorDescription"),
10708
- b`<div class="kv">
10922
+ w`<div class="kv">
10709
10923
  <div class="toggle-row">
10710
10924
  <div class="row-main">
10711
10925
  <span class="row-title">${this.t("twoFactor")}</span>
@@ -10720,11 +10934,11 @@ let z = class extends qe {
10720
10934
  aria-label=${this.t("twoFactor")}
10721
10935
  ></button>
10722
10936
  </div>
10723
- ${t.mfa && !(this.factors?.totp || t.emailVerification || t.phoneVerification) ? b`<div class="alert alert-warning" role="status">
10724
- ${_.alert}
10937
+ ${t.mfa && !(this.factors?.totp || t.emailVerification || t.phoneVerification) ? w`<div class="alert alert-warning" role="status">
10938
+ ${q.alert}
10725
10939
  <div class="alert-body">
10726
10940
  ${this.t("mfaNoFactorWarning")}
10727
- ${this.factors?.totp ? M : b`<div class="links">
10941
+ ${this.factors?.totp ? C : w`<div class="links">
10728
10942
  <button
10729
10943
  type="button"
10730
10944
  class="btn btn-link"
@@ -10735,17 +10949,17 @@ let z = class extends qe {
10735
10949
  </button>
10736
10950
  </div>`}
10737
10951
  </div>
10738
- </div>` : M}
10952
+ </div>` : C}
10739
10953
  ${this.error("mfa")}
10740
10954
  <div class="separator"></div>
10741
10955
  <div class="toggle-row">
10742
10956
  <div class="row-main">
10743
10957
  <span class="row-title"
10744
- >${_.smartphone} ${this.t("authenticatorApp")}
10745
- ${e ? this.verifiedBadge(!0) : M}</span
10958
+ >${q.smartphone} ${this.t("authenticatorApp")}
10959
+ ${e ? this.verifiedBadge(!0) : C}</span
10746
10960
  >
10747
10961
  </div>
10748
- ${e ? this.confirmRemoveAuthenticator ? b`<div class="inline">
10962
+ ${e ? this.confirmRemoveAuthenticator ? w`<div class="inline">
10749
10963
  <button
10750
10964
  class="btn btn-outline btn-sm warn"
10751
10965
  @click=${this.onRemoveAuthenticator}
@@ -10759,13 +10973,13 @@ let z = class extends qe {
10759
10973
  >
10760
10974
  ${this.t("cancel")}
10761
10975
  </button>
10762
- </div>` : b`<button
10976
+ </div>` : w`<button
10763
10977
  class="btn btn-outline btn-sm"
10764
10978
  @click=${this.onRemoveAuthenticator}
10765
10979
  ?disabled=${!!this.busy}
10766
10980
  >
10767
10981
  ${this.spinner("remove-authenticator")} ${this.t("remove")}
10768
- </button>` : this.authenticator ? M : b`<button
10982
+ </button>` : this.authenticator ? C : w`<button
10769
10983
  class="btn btn-outline btn-sm"
10770
10984
  @click=${this.onAddAuthenticator}
10771
10985
  ?disabled=${!!this.busy}
@@ -10774,7 +10988,7 @@ let z = class extends qe {
10774
10988
  </button>`}
10775
10989
  </div>
10776
10990
  ${this.error("authenticator")} ${this.error("remove-authenticator")}
10777
- ${this.authenticator ? b`<form class="form" @submit=${this.onVerifyAuthenticator} novalidate>
10991
+ ${this.authenticator ? w`<form class="form" @submit=${this.onVerifyAuthenticator} novalidate>
10778
10992
  <p class="hint">${this.t("authenticatorScan")}</p>
10779
10993
  <img class="qr" src=${n} alt=${this.t("qrCodeAlt")} />
10780
10994
  <p class="hint center">${this.t("authenticatorManual")}</p>
@@ -10789,7 +11003,7 @@ let z = class extends qe {
10789
11003
  this.onCopySecret();
10790
11004
  }}
10791
11005
  >
10792
- ${this.copied ? _.check : _.copy}
11006
+ ${this.copied ? q.check : q.copy}
10793
11007
  ${this.copied ? this.t("copied") : this.t("authenticatorCopyKey")}
10794
11008
  </button>
10795
11009
  </div>
@@ -10820,7 +11034,7 @@ let z = class extends qe {
10820
11034
  ${this.t("cancel")}
10821
11035
  </button>
10822
11036
  </div>
10823
- </form>` : M}
11037
+ </form>` : C}
10824
11038
  </div>`
10825
11039
  );
10826
11040
  }
@@ -10829,38 +11043,38 @@ let z = class extends qe {
10829
11043
  return this.card(
10830
11044
  this.t("recoveryCodes"),
10831
11045
  this.t("recoveryCodesDescription") + " " + this.t("recoveryCodesOnceHint"),
10832
- b`<div class="kv">
10833
- ${this.recoveryCodes ? b`<div class="alert alert-warning">
10834
- ${_.alert}
11046
+ w`<div class="kv">
11047
+ ${this.recoveryCodes ? w`<div class="alert alert-warning">
11048
+ ${q.alert}
10835
11049
  <div class="alert-body">${this.t("recoveryCodesWarning")}</div>
10836
11050
  </div>
10837
11051
  <div class="codes">
10838
- ${this.recoveryCodes.map((e) => b`<span class="code">${e}</span>`)}
11052
+ ${this.recoveryCodes.map((e) => w`<span class="code">${e}</span>`)}
10839
11053
  </div>
10840
11054
  <div class="inline">
10841
11055
  <button class="btn btn-outline btn-sm" @click=${this.onCopyCodes}>
10842
- ${this.copied ? _.check : _.copy}
11056
+ ${this.copied ? q.check : q.copy}
10843
11057
  ${this.copied ? this.t("copied") : this.t("copy")}
10844
11058
  </button>
10845
11059
  <button class="btn btn-ghost btn-sm" @click=${() => this.recoveryCodes = null}>
10846
11060
  ${this.t("done")}
10847
11061
  </button>
10848
- </div>` : b`<div class="inline">
11062
+ </div>` : w`<div class="inline">
10849
11063
  <button
10850
11064
  class="btn btn-outline btn-sm"
10851
11065
  @click=${this.onRecoveryCodes}
10852
11066
  ?disabled=${!!this.busy}
10853
11067
  >
10854
- ${this.spinner("recovery")} ${_.key}
11068
+ ${this.spinner("recovery")} ${q.key}
10855
11069
  ${t ? this.t("viewRecoveryCodes") : this.t("generateRecoveryCodes")}
10856
11070
  </button>
10857
- ${t ? this.confirmRegenerate ? b`<div class="inline">
11071
+ ${t ? this.confirmRegenerate ? w`<div class="inline">
10858
11072
  <button
10859
11073
  class="btn btn-outline btn-sm warn"
10860
11074
  @click=${this.onRegenerateRecoveryCodes}
10861
11075
  ?disabled=${!!this.busy}
10862
11076
  >
10863
- ${_.refresh} ${this.t("regenerateRecoveryCodes")}
11077
+ ${q.refresh} ${this.t("regenerateRecoveryCodes")}
10864
11078
  </button>
10865
11079
  <button
10866
11080
  class="btn btn-ghost btn-sm"
@@ -10868,13 +11082,13 @@ let z = class extends qe {
10868
11082
  >
10869
11083
  ${this.t("cancel")}
10870
11084
  </button>
10871
- </div>` : b`<button
11085
+ </div>` : w`<button
10872
11086
  class="btn btn-ghost btn-sm"
10873
11087
  @click=${this.onRegenerateRecoveryCodes}
10874
11088
  ?disabled=${!!this.busy}
10875
11089
  >
10876
- ${_.refresh} ${this.t("regenerateRecoveryCodes")}
10877
- </button>` : M}
11090
+ ${q.refresh} ${this.t("regenerateRecoveryCodes")}
11091
+ </button>` : C}
10878
11092
  </div>`}
10879
11093
  ${this.error("recovery")}
10880
11094
  </div>`
@@ -10885,25 +11099,25 @@ let z = class extends qe {
10885
11099
  const t = this.stepUp, e = this.factors, n = [
10886
11100
  {
10887
11101
  factor: "totp",
10888
- icon: _.smartphone,
11102
+ icon: q.smartphone,
10889
11103
  label: this.t("mfaUseAuthenticator"),
10890
11104
  available: e?.totp ?? !0
10891
11105
  },
10892
11106
  {
10893
11107
  factor: "email",
10894
- icon: _.mail,
11108
+ icon: q.mail,
10895
11109
  label: this.t("mfaUseEmail"),
10896
11110
  available: e?.email ?? !0
10897
11111
  },
10898
11112
  {
10899
11113
  factor: "phone",
10900
- icon: _.phone,
11114
+ icon: q.phone,
10901
11115
  label: this.t("mfaUsePhone"),
10902
11116
  available: e?.phone ?? !0
10903
11117
  },
10904
11118
  {
10905
11119
  factor: "recoverycode",
10906
- icon: _.key,
11120
+ icon: q.key,
10907
11121
  label: this.t("mfaUseRecoveryCode"),
10908
11122
  available: e?.recoveryCode ?? !0
10909
11123
  }
@@ -10911,8 +11125,8 @@ let z = class extends qe {
10911
11125
  return this.card(
10912
11126
  this.t("mfaTitle"),
10913
11127
  this.t("errorChallengeRequired"),
10914
- b`<div class="kv">
10915
- ${t.challenge ? b`<form class="form" @submit=${this.onStepUpVerify} novalidate>
11128
+ w`<div class="kv">
11129
+ ${t.challenge ? w`<form class="form" @submit=${this.onStepUpVerify} novalidate>
10916
11130
  <div class="field">
10917
11131
  <label class="label" for="acc-stepup"
10918
11132
  >${t.challenge.factor === "recoverycode" ? this.t("recoveryCode") : this.t("code")}</label
@@ -10932,9 +11146,9 @@ let z = class extends qe {
10932
11146
  <button class="btn btn-primary btn-sm" type="submit" ?disabled=${!!this.busy}>
10933
11147
  ${this.spinner("stepup-code")} ${this.t("verifyCode")}
10934
11148
  </button>
10935
- </form>` : b`<div class="stack-sm">
11149
+ </form>` : w`<div class="stack-sm">
10936
11150
  ${n.filter((i) => i.available).map(
10937
- (i) => b`<button
11151
+ (i) => w`<button
10938
11152
  type="button"
10939
11153
  class="choice"
10940
11154
  @click=${() => this.onStepUpFactor(i.factor)}
@@ -10946,7 +11160,7 @@ let z = class extends qe {
10946
11160
  </div>`}
10947
11161
  ${this.error("stepup")} ${this.error("stepup-code")}
10948
11162
  </div>`,
10949
- b`<button class="btn btn-ghost btn-sm" @click=${() => this.stepUp = null}>
11163
+ w`<button class="btn btn-ghost btn-sm" @click=${() => this.stepUp = null}>
10950
11164
  ${this.t("cancel")}
10951
11165
  </button>`
10952
11166
  );
@@ -10954,24 +11168,28 @@ let z = class extends qe {
10954
11168
  // ── Sessions ──
10955
11169
  deviceIcon(t) {
10956
11170
  const e = (t.deviceName || "").toLowerCase(), n = (t.osName || t.osCode || "").toLowerCase();
10957
- return /phone|tablet|mobile/.test(e) || /ios|android|ipados/.test(n) ? _.smartphone : /desktop|browser/.test(e) || /mac|windows|linux|chrome os/.test(n) ? _.monitor : _.globe;
11171
+ return /phone|tablet|mobile/.test(e) || /ios|android|ipados/.test(n) ? q.smartphone : /desktop|browser/.test(e) || /mac|windows|linux|chrome os/.test(n) ? q.monitor : q.globe;
10958
11172
  }
10959
11173
  renderSessions() {
10960
11174
  const t = this.sessions;
10961
- return b`<div class="section">
11175
+ return w`<div class="section">
10962
11176
  ${this.card(
10963
11177
  this.t("sessions"),
10964
11178
  void 0,
10965
- b`${this.error("sessions")}
10966
- ${t === null ? b`<div class="empty"><span class="spinner"></span></div>` : t.length === 0 ? b`<div class="empty">${this.t("noSessions")}</div>` : t.map(
10967
- (e) => b`<div class="row">
11179
+ w`${this.error("sessions")}
11180
+ ${t === null ? w`<div class="empty"><span class="spinner"></span></div>` : t.length === 0 ? this.emptyState(
11181
+ q.monitor,
11182
+ this.t("noSessions"),
11183
+ this.t("noSessionsDescription")
11184
+ ) : t.map(
11185
+ (e) => w`<div class="row">
10968
11186
  <div class="inline">
10969
11187
  <span class="device">${this.deviceIcon(e)}</span>
10970
11188
  <div class="row-main">
10971
11189
  <span class="row-title">
10972
11190
  ${e.clientName || e.provider}
10973
- ${e.clientVersion ? b`<span class="muted small">${e.clientVersion}</span>` : M}
10974
- ${e.current ? b`<span class="badge badge-info">${this.t("currentSession")}</span>` : M}
11191
+ ${e.clientVersion ? w`<span class="muted small">${e.clientVersion}</span>` : C}
11192
+ ${e.current ? w`<span class="badge badge-info">${this.t("currentSession")}</span>` : C}
10975
11193
  </span>
10976
11194
  <span class="row-sub"
10977
11195
  >${[e.osName, e.countryName || e.countryCode, e.ip].filter(Boolean).join(" · ")}</span
@@ -10979,14 +11197,14 @@ let z = class extends qe {
10979
11197
  </div>
10980
11198
  </div>
10981
11199
  <div class="row-actions">
10982
- ${this.busy === `session-${e.$id}` ? b`<span class="spinner"></span>` : M}
11200
+ ${this.busy === `session-${e.$id}` ? w`<span class="spinner"></span>` : C}
10983
11201
  <button
10984
11202
  class="btn btn-ghost btn-sm"
10985
11203
  @click=${() => this.onDeleteSession(e.$id)}
10986
11204
  ?disabled=${!!this.busy}
10987
11205
  aria-label=${this.t("signOutSession")}
10988
11206
  >
10989
- ${_.logOut}
11207
+ ${q.logOut}
10990
11208
  </button>
10991
11209
  </div>
10992
11210
  </div>`
@@ -10995,29 +11213,24 @@ let z = class extends qe {
10995
11213
  ${this.card(
10996
11214
  this.t("signOutAllSessions"),
10997
11215
  this.t("signOutAllSessionsDescription"),
10998
- b`${this.error("sessions-all")}
10999
- ${this.confirmSignOutAll ? b`<div class="inline">
11000
- <button
11001
- class="btn btn-outline btn-sm warn"
11002
- @click=${this.onSignOutAll}
11003
- ?disabled=${!!this.busy}
11004
- >
11005
- ${this.spinner("sessions-all")} ${_.logOut} ${this.t("signOutAllSessions")}
11006
- </button>
11007
- <button
11008
- class="btn btn-ghost btn-sm"
11009
- @click=${() => this.confirmSignOutAll = !1}
11010
- >
11011
- ${this.t("cancel")}
11012
- </button>
11013
- </div>` : b`<button
11216
+ this.confirmSignOutAll ? this.error("sessions-all") : w`${this.error("sessions-all")}
11217
+ <button
11014
11218
  class="btn btn-outline btn-sm warn"
11015
11219
  @click=${this.onSignOutAll}
11016
11220
  ?disabled=${!!this.busy}
11017
11221
  >
11018
- ${this.spinner("sessions-all")} ${_.logOut} ${this.t("signOutAllSessions")}
11019
- </button>`}`,
11020
- void 0,
11222
+ ${this.spinner("sessions-all")} ${q.logOut} ${this.t("signOutAllSessions")}
11223
+ </button>`,
11224
+ this.confirmSignOutAll ? this.confirmFooter(
11225
+ () => {
11226
+ this.confirmSignOutAll = !1;
11227
+ },
11228
+ () => {
11229
+ this.onSignOutAll();
11230
+ },
11231
+ this.t("signOutAllSessions"),
11232
+ "sessions-all"
11233
+ ) : void 0,
11021
11234
  !0
11022
11235
  )}
11023
11236
  </div>`;
@@ -11025,57 +11238,65 @@ let z = class extends qe {
11025
11238
  // ── Connections ──
11026
11239
  renderConnections() {
11027
11240
  const t = this.identities, e = this.config?.methods?.oauth ?? [];
11028
- return b`<div class="section">
11241
+ return w`<div class="section">
11029
11242
  ${this.card(
11030
11243
  this.t("connections"),
11031
11244
  void 0,
11032
- b`${this.error("identities")}
11033
- ${t === null ? b`<div class="empty"><span class="spinner"></span></div>` : t.length === 0 ? b`<div class="empty">${this.t("noConnections")}</div>` : t.map(
11034
- (n) => b`<div class="row">
11245
+ w`${this.error("identities")}
11246
+ ${t === null ? w`<div class="empty"><span class="spinner"></span></div>` : t.length === 0 ? this.emptyState(
11247
+ q.link,
11248
+ this.t("noConnections"),
11249
+ this.t("noConnectionsDescription")
11250
+ ) : t.map(
11251
+ (n) => w`<div class="row">
11035
11252
  <div class="inline">
11036
- <span class="device">${ui(n.provider)}</span>
11253
+ <span class="device">${Mt(n.provider)}</span>
11037
11254
  <div class="row-main">
11038
- <span class="row-title">${pt(n.provider)}</span>
11255
+ <span class="row-title">${xt(n.provider)}</span>
11039
11256
  <span class="row-sub">${n.providerEmail || n.providerUid}</span>
11040
11257
  </div>
11041
11258
  </div>
11042
11259
  <div class="row-actions">
11043
- ${this.confirmDisconnectId === n.$id ? b`<div class="inline">
11260
+ ${this.confirmDisconnectId === n.$id ? w`<div class="inline">
11044
11261
  <button
11045
- class="btn btn-outline btn-sm warn"
11046
- @click=${() => this.onDeleteIdentity(n.$id)}
11262
+ type="button"
11263
+ class="btn btn-outline btn-sm"
11264
+ autofocus
11047
11265
  ?disabled=${!!this.busy}
11266
+ @click=${() => this.confirmDisconnectId = null}
11048
11267
  >
11049
- ${this.busy === `identity-${n.$id}` ? b`<span class="spinner"></span>` : M}
11050
- ${this.t("disconnect")}
11268
+ ${this.t("cancel")}
11051
11269
  </button>
11052
11270
  <button
11053
- class="btn btn-ghost btn-sm"
11054
- @click=${() => this.confirmDisconnectId = null}
11271
+ type="button"
11272
+ class="btn btn-destructive btn-sm"
11273
+ @click=${() => this.onDeleteIdentity(n.$id)}
11274
+ ?disabled=${!!this.busy}
11055
11275
  >
11056
- ${this.t("cancel")}
11276
+ ${this.busy === `identity-${n.$id}` ? w`<span class="spinner"></span>` : C}
11277
+ ${this.t("disconnect")}
11057
11278
  </button>
11058
- </div>` : b`<button
11279
+ </div>` : w`<button
11059
11280
  class="btn btn-ghost btn-sm"
11060
11281
  @click=${() => this.onDeleteIdentity(n.$id)}
11061
11282
  ?disabled=${!!this.busy}
11062
11283
  >
11063
- ${this.busy === `identity-${n.$id}` ? b`<span class="spinner"></span>` : M}
11284
+ ${this.busy === `identity-${n.$id}` ? w`<span class="spinner"></span>` : C}
11064
11285
  ${this.t("disconnect")}
11065
11286
  </button>`}
11066
11287
  </div>
11067
11288
  </div>`
11068
11289
  )}`,
11069
- e.length > 0 ? b`${e.filter((n) => !(t ?? []).some((i) => i.provider === n)).map(
11070
- (n) => b`<button
11290
+ e.length > 0 ? w`${e.filter((n) => !(t ?? []).some((i) => i.provider === n)).map(
11291
+ (n) => w`<button
11071
11292
  class="btn btn-outline btn-sm"
11072
11293
  @click=${() => {
11073
11294
  this.run(`connect-${n}`, () => R.signInWithOAuth(n));
11074
11295
  }}
11075
11296
  ?disabled=${!!this.busy}
11076
11297
  >
11077
- ${this.spinner(`connect-${n}`)} ${ui(n)}
11078
- ${this.t("connectProvider", { provider: pt(n) })}
11298
+ ${this.spinner(`connect-${n}`)} ${Mt(n)}
11299
+ ${this.t("connectProvider", { provider: xt(n) })}
11079
11300
  </button>`
11080
11301
  )}` : void 0
11081
11302
  )}
@@ -11084,12 +11305,16 @@ let z = class extends qe {
11084
11305
  // ── Activity ──
11085
11306
  renderActivity() {
11086
11307
  const t = this.logs;
11087
- return b`<div class="section">
11308
+ return w`<div class="section">
11088
11309
  ${this.card(
11089
11310
  this.t("activity"),
11090
11311
  void 0,
11091
- b`${t === null ? b`<div class="empty"><span class="spinner"></span></div>` : t.length === 0 ? b`<div class="empty">${this.t("noActivity")}</div>` : t.map(
11092
- (e) => b`<div class="row">
11312
+ w`${t === null ? w`<div class="empty"><span class="spinner"></span></div>` : t.length === 0 ? this.emptyState(
11313
+ q.activity,
11314
+ this.t("noActivity"),
11315
+ this.t("noActivityDescription")
11316
+ ) : t.map(
11317
+ (e) => w`<div class="row">
11093
11318
  <div class="row-main">
11094
11319
  <span class="row-title">${e.event}</span>
11095
11320
  <span class="row-sub"
@@ -11373,7 +11598,7 @@ let Re = class extends qe {
11373
11598
  }
11374
11599
  render() {
11375
11600
  const t = this.auth.status === "signed-in", e = this.view === "account" && t;
11376
- return b`
11601
+ return w`
11377
11602
  <dialog
11378
11603
  class=${e ? "wide" : ""}
11379
11604
  aria-label=${e ? this.t("dialogAccount") : this.t("dialogSignIn")}
@@ -11392,14 +11617,14 @@ let Re = class extends qe {
11392
11617
  @click=${this.hide}
11393
11618
  aria-label=${this.t("close")}
11394
11619
  >
11395
- ${_.x}
11620
+ ${q.x}
11396
11621
  </button>
11397
11622
  </div>
11398
11623
  <div class="body" @scroll=${this.syncScrollCue}>
11399
- ${this.open ? e ? b`<authui-account embedded></authui-account>` : b`<authui-sign-in
11624
+ ${this.open ? e ? w`<authui-account embedded></authui-account>` : w`<authui-sign-in
11400
11625
  embedded
11401
11626
  .view=${this.view === "account" ? "sign-in" : this.view}
11402
- ></authui-sign-in>` : M}
11627
+ ></authui-sign-in>` : C}
11403
11628
  </div>
11404
11629
  <div class="scroll-fade ${this.scrollCue ? "show" : ""}" aria-hidden="true"></div>
11405
11630
  </div>
@@ -11513,15 +11738,15 @@ Ge([
11513
11738
  V()
11514
11739
  ], Re.prototype, "scrollCue", 2);
11515
11740
  Ge([
11516
- bi("dialog")
11741
+ wi("dialog")
11517
11742
  ], Re.prototype, "dialog", 2);
11518
11743
  Ge([
11519
- bi(".body")
11744
+ wi(".body")
11520
11745
  ], Re.prototype, "bodyEl", 2);
11521
11746
  Re = Ge([
11522
11747
  ze("authui-modal")
11523
11748
  ], Re);
11524
- var No = Object.defineProperty, Ho = Object.getOwnPropertyDescriptor, _t = (t, e, n, i) => {
11749
+ var No = Object.defineProperty, Ho = Object.getOwnPropertyDescriptor, Lt = (t, e, n, i) => {
11525
11750
  for (var o = i > 1 ? void 0 : i ? Ho(e, n) : e, a = t.length - 1, s; a >= 0; a--)
11526
11751
  (s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
11527
11752
  return i && o && No(e, n, o), o;
@@ -11532,9 +11757,9 @@ let ot = class extends qe {
11532
11757
  }
11533
11758
  render() {
11534
11759
  const t = this.size === "md" ? "" : `btn-${this.size}`;
11535
- return b`<button
11760
+ return w`<button
11536
11761
  class="btn btn-${this.variant} ${t}"
11537
- @click=${() => wt(this.view)}
11762
+ @click=${() => mt(this.view)}
11538
11763
  part="button"
11539
11764
  >
11540
11765
  <slot
@@ -11554,16 +11779,16 @@ ot.styles = [
11554
11779
  }
11555
11780
  `
11556
11781
  ];
11557
- _t([
11782
+ Lt([
11558
11783
  ee({ type: String })
11559
11784
  ], ot.prototype, "view", 2);
11560
- _t([
11785
+ Lt([
11561
11786
  ee({ type: String })
11562
11787
  ], ot.prototype, "variant", 2);
11563
- _t([
11788
+ Lt([
11564
11789
  ee({ type: String })
11565
11790
  ], ot.prototype, "size", 2);
11566
- ot = _t([
11791
+ ot = Lt([
11567
11792
  ze("authui-button")
11568
11793
  ], ot);
11569
11794
  var Do = Object.defineProperty, Bo = Object.getOwnPropertyDescriptor, Ke = (t, e, n, i) => {
@@ -11644,13 +11869,13 @@ let Ee = class extends qe {
11644
11869
  render() {
11645
11870
  const { status: t, user: e, configured: n } = this.auth;
11646
11871
  if (t === "loading" && n)
11647
- return b`<span class="avatar"><span class="spinner"></span></span>`;
11872
+ return w`<span class="avatar"><span class="spinner"></span></span>`;
11648
11873
  if (t !== "signed-in" || !e)
11649
- return b`<button class="btn btn-primary btn-sm" @click=${() => wt("sign-in")}>
11874
+ return w`<button class="btn btn-primary btn-sm" @click=${() => mt("sign-in")}>
11650
11875
  <slot>${this.t("signIn")}</slot>
11651
11876
  </button>`;
11652
11877
  const i = e.name || e.email || e.phone || this.t("guestAccount");
11653
- return b`
11878
+ return w`
11654
11879
  <button
11655
11880
  class="trigger"
11656
11881
  aria-haspopup="menu"
@@ -11659,39 +11884,39 @@ let Ee = class extends qe {
11659
11884
  aria-label=${i}
11660
11885
  >
11661
11886
  <span class="avatar"
11662
- >${this.src ? b`<img src=${this.src} alt="" />` : Ai(i)}</span
11887
+ >${this.src ? w`<img src=${this.src} alt="" />` : Ai(i)}</span
11663
11888
  >
11664
11889
  </button>
11665
- ${this.menuOpen ? b`<div class="menu ${this.menuAbove ? "above" : ""}" role="menu">
11890
+ ${this.menuOpen ? w`<div class="menu ${this.menuAbove ? "above" : ""}" role="menu">
11666
11891
  <div class="menu-header">
11667
11892
  <span class="row-title" title=${i}>${i}</span>
11668
- ${e.email && e.name ? b`<span class="row-sub" title=${e.email}>${e.email}</span>` : M}
11893
+ ${e.email && e.name ? w`<span class="row-sub" title=${e.email}>${e.email}</span>` : C}
11669
11894
  </div>
11670
- ${this.showTeams ? b`<div class="menu-section">
11895
+ ${this.showTeams ? w`<div class="menu-section">
11671
11896
  <div class="menu-section-label">${this.t("teamsLabel")}</div>
11672
- ${this.teamsLoading ? b`<div class="menu-item" aria-busy="true">
11897
+ ${this.teamsLoading ? w`<div class="menu-item" aria-busy="true">
11673
11898
  <span class="spinner"></span>
11674
- </div>` : this.teams.length === 0 ? b`<div class="menu-item" role="note">${this.t("noTeams")}</div>` : this.teams.map(
11675
- (o) => b`<button
11899
+ </div>` : this.teams.length === 0 ? w`<div class="menu-item" role="note">${this.t("noTeams")}</div>` : this.teams.map(
11900
+ (o) => w`<button
11676
11901
  class="menu-item ${o.$id === this.activeTeamId ? "active" : ""}"
11677
11902
  role="menuitemradio"
11678
11903
  aria-checked=${o.$id === this.activeTeamId ? "true" : "false"}
11679
11904
  @click=${() => this.selectTeam(o)}
11680
11905
  >
11681
- ${_.users}
11906
+ ${q.users}
11682
11907
  <span title=${o.name}>${o.name}</span>
11683
- ${o.$id === this.activeTeamId ? b`<span class="check">${_.check}</span>` : M}
11908
+ ${o.$id === this.activeTeamId ? w`<span class="check">${q.check}</span>` : C}
11684
11909
  </button>`
11685
11910
  )}
11686
- </div>` : M}
11911
+ </div>` : C}
11687
11912
  <button
11688
11913
  class="menu-item"
11689
11914
  role="menuitem"
11690
11915
  @click=${() => {
11691
- this.menuOpen = !1, wt("account");
11916
+ this.menuOpen = !1, mt("account");
11692
11917
  }}
11693
11918
  >
11694
- ${_.settings} ${this.t("manageAccount")}
11919
+ ${q.settings} ${this.t("manageAccount")}
11695
11920
  </button>
11696
11921
  <button
11697
11922
  class="menu-item"
@@ -11700,9 +11925,9 @@ let Ee = class extends qe {
11700
11925
  this.menuOpen = !1, R.signOut();
11701
11926
  }}
11702
11927
  >
11703
- ${_.logOut} ${this.t("signOut")}
11928
+ ${q.logOut} ${this.t("signOut")}
11704
11929
  </button>
11705
- </div>` : M}
11930
+ </div>` : C}
11706
11931
  `;
11707
11932
  }
11708
11933
  };
@@ -11852,7 +12077,7 @@ function Xo(t) {
11852
12077
  return R.configure(t), zo;
11853
12078
  }
11854
12079
  function Vo(t) {
11855
- wt(t);
12080
+ mt(t);
11856
12081
  }
11857
12082
  function Wo() {
11858
12083
  Uo();
@@ -11899,8 +12124,8 @@ export {
11899
12124
  pe as AuthUIConfigElement,
11900
12125
  qe as AuthUIElement,
11901
12126
  Re as AuthUIModal,
11902
- mt as AuthUIShow,
11903
- ve as AuthUISignIn,
12127
+ yt as AuthUIShow,
12128
+ we as AuthUISignIn,
11904
12129
  Ee as AuthUIUserButton,
11905
12130
  ia as CRITICAL_FOUC_CSS,
11906
12131
  oe as ErrorTypes,
@@ -11913,7 +12138,7 @@ export {
11913
12138
  Wo as close,
11914
12139
  Uo as closeModal,
11915
12140
  so as defaultStrings,
11916
- xt as describeError,
12141
+ Ct as describeError,
11917
12142
  Zo as getAccount,
11918
12143
  Jo as getClient,
11919
12144
  Fe as getLastMethod,
@@ -11924,9 +12149,9 @@ export {
11924
12149
  ho as isConfigError,
11925
12150
  To as on,
11926
12151
  Vo as open,
11927
- wt as openModal,
12152
+ mt as openModal,
11928
12153
  Qo as previewSignIn,
11929
- pt as providerLabel,
12154
+ xt as providerLabel,
11930
12155
  lt as rememberLastMethod,
11931
12156
  sn as rememberPendingOAuth,
11932
12157
  pi as scorePassword,