@getauthui/core 0.1.7 → 0.1.9

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;
@@ -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
@@ -6264,7 +6264,7 @@ var ci;
6264
6264
  (function(t) {
6265
6265
  t.Waiting = "waiting", t.Processing = "processing", t.Completed = "completed", t.Failed = "failed", t.Scheduled = "scheduled";
6266
6266
  })(ci || (ci = {}));
6267
- const ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6267
+ const ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6268
6268
  __proto__: null,
6269
6269
  Account: Yt,
6270
6270
  AppwriteException: h,
@@ -6285,7 +6285,7 @@ const ea = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6285
6285
  return ei;
6286
6286
  },
6287
6287
  Channel: Pe,
6288
- Client: Ce,
6288
+ Client: xe,
6289
6289
  get Condition() {
6290
6290
  return Jt;
6291
6291
  },
@@ -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:
@@ -7068,7 +7071,7 @@ function Fe() {
7068
7071
  return null;
7069
7072
  }
7070
7073
  }
7071
- function ta() {
7074
+ function ia() {
7072
7075
  if (!(typeof localStorage > "u"))
7073
7076
  try {
7074
7077
  localStorage.removeItem(Ii);
@@ -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 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());
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 Yt(this.client));
7315
7318
  }
7316
7319
  // ─────────────────────────────── sign in ───────────────────────────────
7317
7320
  async signInWithEmailPassword(e, n) {
@@ -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,12 +8970,12 @@ 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;
8832
8977
  };
8833
- const Ji = "authui-show:not([ready]){display:none}", ia = "authui-show:not([ready]){display:none}authui-button:not(:defined),authui-user-button:not(:defined){visibility:hidden}";
8978
+ const Ji = "authui-show:not([ready]){display:none}", na = "authui-show:not([ready]){display:none}authui-button:not(:defined),authui-user-button:not(:defined){visibility:hidden}";
8834
8979
  let Zi = !1;
8835
8980
  function jo() {
8836
8981
  if (!(typeof document > "u" || Zi)) {
@@ -8851,10 +8996,14 @@ function jo() {
8851
8996
  }
8852
8997
  jo();
8853
8998
  const Po = ["loading", "signed-out", "signed-in", "mfa-required"];
8854
- function Kt(t) {
8999
+ function ui(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
+ function xo(t, e, n) {
9003
+ const i = ui(e), o = ui(n);
9004
+ return !(t === "loading" && !i.includes("loading") || i.length > 0 && !i.includes(t) || o.includes(t));
9005
+ }
9006
+ let yt = class extends Qe {
8858
9007
  constructor() {
8859
9008
  super(...arguments), this.when = "", this.unless = "", this.status = R.getState().status, this.unsubscribe = null;
8860
9009
  }
@@ -8866,28 +9015,27 @@ let mt = class extends Qe {
8866
9015
  }
8867
9016
  /** Whether the current status satisfies `when` and `unless`. */
8868
9017
  get visible() {
8869
- const t = Kt(this.when), e = Kt(this.unless);
8870
- return !(this.status === "loading" && !t.includes("loading") || t.length > 0 && !t.includes(this.status) || e.includes(this.status));
9018
+ return xo(this.status, this.when, this.unless);
8871
9019
  }
8872
9020
  updated() {
8873
- (this.status !== "loading" || Kt(this.when).includes("loading")) && (this.setAttribute("ready", ""), this.style.display = "contents");
9021
+ (this.status !== "loading" || ui(this.when).includes("loading")) && (this.setAttribute("ready", ""), this.style.display = "contents");
8874
9022
  }
8875
9023
  render() {
8876
- return this.visible ? b`<slot></slot>` : M;
9024
+ return this.visible ? w`<slot></slot>` : C;
8877
9025
  }
8878
9026
  };
8879
- qt([
9027
+ _t([
8880
9028
  ee({ type: String })
8881
- ], mt.prototype, "when", 2);
8882
- qt([
9029
+ ], yt.prototype, "when", 2);
9030
+ _t([
8883
9031
  ee({ type: String })
8884
- ], mt.prototype, "unless", 2);
8885
- qt([
9032
+ ], yt.prototype, "unless", 2);
9033
+ _t([
8886
9034
  V()
8887
- ], mt.prototype, "status", 2);
8888
- mt = qt([
9035
+ ], yt.prototype, "status", 2);
9036
+ yt = _t([
8889
9037
  ze("authui-show")
8890
- ], mt);
9038
+ ], yt);
8891
9039
  const Co = We`
8892
9040
  :host {
8893
9041
  display: block;
@@ -8942,7 +9090,7 @@ const Co = We`
8942
9090
  height: 14px;
8943
9091
  margin: 0;
8944
9092
  }
8945
- `, se = (t) => b`<svg
9093
+ `, se = (t) => w`<svg
8946
9094
  xmlns="http://www.w3.org/2000/svg"
8947
9095
  viewBox="0 0 24 24"
8948
9096
  fill="none"
@@ -8953,7 +9101,7 @@ const Co = We`
8953
9101
  aria-hidden="true"
8954
9102
  >
8955
9103
  ${t}
8956
- </svg>`, _ = {
9104
+ </svg>`, q = {
8957
9105
  mail: se(
8958
9106
  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
9107
  ),
@@ -9035,7 +9183,7 @@ const Co = We`
9035
9183
  qr: se(
9036
9184
  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
9185
  )
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 = {
9186
+ }, ge = (t, e = "0 0 24 24") => w`<svg xmlns="http://www.w3.org/2000/svg" viewBox=${e} aria-hidden="true">${t}</svg>`, Uo = {
9039
9187
  google: ge(
9040
9188
  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
9189
  ),
@@ -9091,19 +9239,19 @@ const Co = We`
9091
9239
  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
9240
  )
9093
9241
  };
9094
- function ui(t) {
9095
- return xo[t] ?? _.globe;
9242
+ function Mt(t) {
9243
+ return Uo[t] ?? q.globe;
9096
9244
  }
9097
9245
  function Ai(t) {
9098
9246
  const e = (t.trim()[0] ?? "?").toUpperCase();
9099
- return /[A-Z0-9]/i.test(e) ? e : _.user;
9247
+ return /[A-Z0-9]/i.test(e) ? e : q.user;
9100
9248
  }
9101
- function wt(t) {
9249
+ function mt(t) {
9102
9250
  typeof document > "u" || (document.querySelector("authui-modal") || document.body.appendChild(document.createElement("authui-modal")), queueMicrotask(() => {
9103
9251
  window.dispatchEvent(new CustomEvent("authui:open", { detail: { view: t } }));
9104
9252
  }));
9105
9253
  }
9106
- function Uo() {
9254
+ function Mo() {
9107
9255
  typeof window > "u" || window.dispatchEvent(new CustomEvent("authui:close"));
9108
9256
  }
9109
9257
  function pi(t) {
@@ -9122,14 +9270,14 @@ function pi(t) {
9122
9270
  let i, o;
9123
9271
  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
9272
  }
9125
- var Mo = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, ke = (t, e, n, i) => {
9126
- for (var o = i > 1 ? void 0 : i ? Ro(e, n) : e, a = t.length - 1, s; a >= 0; a--)
9273
+ var Ro = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, Ae = (t, e, n, i) => {
9274
+ for (var o = i > 1 ? void 0 : i ? Eo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
9127
9275
  (s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
9128
- return i && o && Mo(e, n, o), o;
9276
+ return i && o && Ro(e, n, o), o;
9129
9277
  };
9130
- let ve = class extends qe {
9278
+ let we = class extends qe {
9131
9279
  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) => {
9280
+ 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
9281
  t.preventDefault(), this.requireValid(t) && this.run(async () => {
9134
9282
  await R.signInWithEmailPassword(this.email, this.password), this.password = "", lt("email-password"), this.fire("authui-success", { method: "email-password" });
9135
9283
  });
@@ -9210,7 +9358,7 @@ let ve = class extends qe {
9210
9358
  try {
9211
9359
  await R.signOut();
9212
9360
  } catch (t) {
9213
- if (!yt(t, oe.sessionNotFound)) throw t;
9361
+ if (!gt(t, oe.sessionNotFound)) throw t;
9214
9362
  }
9215
9363
  this.go("sign-in");
9216
9364
  });
@@ -9251,7 +9399,7 @@ let ve = class extends qe {
9251
9399
  try {
9252
9400
  await t();
9253
9401
  } catch (n) {
9254
- this.error = xt(n, this.strings, e);
9402
+ this.error = Ct(n, this.strings, e);
9255
9403
  } finally {
9256
9404
  this.busy = !1;
9257
9405
  }
@@ -9270,20 +9418,20 @@ let ve = class extends qe {
9270
9418
  // ───────────────────────────── render ─────────────────────────────
9271
9419
  render() {
9272
9420
  const t = this.renderStep();
9273
- return b`
9421
+ return w`
9274
9422
  <div class="panel ${this.embedded ? "embedded" : ""}" part="panel">
9275
9423
  ${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}
9424
+ ${this.notice ? w`<div class="alert alert-${this.notice.tone}" role="status">
9425
+ ${this.notice.tone === "success" ? q.checkCircle : this.notice.tone === "error" ? q.alert : q.info}
9278
9426
  <div class="alert-body">${this.notice.message}</div>
9279
9427
  <button
9280
9428
  class="btn btn-ghost btn-icon dismiss"
9281
9429
  @click=${() => this.dismissNotice()}
9282
9430
  aria-label=${this.t("close")}
9283
9431
  >
9284
- ${_.x}
9432
+ ${q.x}
9285
9433
  </button>
9286
- </div>` : M}
9434
+ </div>` : C}
9287
9435
  ${t}
9288
9436
  </div>
9289
9437
  `;
@@ -9316,46 +9464,46 @@ let ve = class extends qe {
9316
9464
  n = this.t("mfaTitle"), i = this.t("mfaDescription");
9317
9465
  break;
9318
9466
  }
9319
- return b`
9467
+ return w`
9320
9468
  <div class="header">
9321
- ${t ? b`<img
9469
+ ${t ? w`<img
9322
9470
  class="logo"
9323
9471
  src=${t}
9324
9472
  alt=""
9325
9473
  @error=${(o) => {
9326
9474
  o.target.hidden = !0;
9327
9475
  }}
9328
- />` : M}
9329
- ${R.isPreview ? b`<span class="badge badge-info preview">${this.t("preview")}</span>` : M}
9476
+ />` : C}
9477
+ ${R.isPreview ? w`<span class="badge badge-info preview">${this.t("preview")}</span>` : C}
9330
9478
  <h2 class="title" id="authui-title">${n}</h2>
9331
- ${i ? b`<p class="description">${i}</p>` : M}
9479
+ ${i ? w`<p class="description">${i}</p>` : C}
9332
9480
  </div>
9333
9481
  `;
9334
9482
  }
9335
9483
  renderError() {
9336
- return this.error ? b`<div class="alert alert-error" role="alert">
9337
- ${_.alert}
9484
+ return this.error ? w`<div class="alert alert-error" role="alert">
9485
+ ${q.alert}
9338
9486
  <div class="alert-body">${this.error}</div>
9339
- </div>` : M;
9487
+ </div>` : C;
9340
9488
  }
9341
9489
  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}
9490
+ return w`<button class="btn ${e} btn-block" type="submit" ?disabled=${this.busy}>
9491
+ ${this.busy ? w`<span class="spinner" aria-hidden="true"></span>` : C} ${t}
9344
9492
  </button>`;
9345
9493
  }
9346
9494
  passwordField(t) {
9347
9495
  const e = this[t.field], n = t.meter ? pi(e) : null;
9348
- return b`
9496
+ return w`
9349
9497
  <div class="field">
9350
9498
  <div class="field-header">
9351
9499
  <label class="label" for=${t.id}>${t.label}</label>
9352
- ${t.forgot ? b`<button
9500
+ ${t.forgot ? w`<button
9353
9501
  type="button"
9354
9502
  class="btn btn-link small"
9355
9503
  @click=${() => this.go("forgot-password")}
9356
9504
  >
9357
9505
  ${this.t("forgotPassword")}
9358
- </button>` : M}
9506
+ </button>` : C}
9359
9507
  </div>
9360
9508
  <div class="input-wrap">
9361
9509
  <input
@@ -9374,10 +9522,10 @@ let ve = class extends qe {
9374
9522
  @click=${() => this.showPassword = !this.showPassword}
9375
9523
  aria-label=${this.showPassword ? this.t("hidePassword") : this.t("showPassword")}
9376
9524
  >
9377
- ${this.showPassword ? _.eyeOff : _.eye}
9525
+ ${this.showPassword ? q.eyeOff : q.eye}
9378
9526
  </button>
9379
9527
  </div>
9380
- ${n && e ? b`<div class="strength" aria-live="polite">
9528
+ ${n && e ? w`<div class="strength" aria-live="polite">
9381
9529
  <div
9382
9530
  class="strength-meter"
9383
9531
  data-level=${String(n.level)}
@@ -9391,12 +9539,12 @@ let ve = class extends qe {
9391
9539
  <span></span><span></span><span></span><span></span>
9392
9540
  </div>
9393
9541
  <p class="strength-label">${this.t(n.labelKey)}</p>
9394
- </div>` : t.hint ? b`<p class="hint">${t.hint}</p>` : M}
9542
+ </div>` : t.hint ? w`<p class="hint">${t.hint}</p>` : C}
9395
9543
  </div>
9396
9544
  `;
9397
9545
  }
9398
9546
  emailField(t = "email") {
9399
- return b`
9547
+ return w`
9400
9548
  <div class="field">
9401
9549
  <label class="label" for="authui-email">${this.t("email")}</label>
9402
9550
  <input
@@ -9413,7 +9561,7 @@ let ve = class extends qe {
9413
9561
  `;
9414
9562
  }
9415
9563
  codeField() {
9416
- return b`
9564
+ return w`
9417
9565
  <div class="field">
9418
9566
  <label class="label" for="authui-code">${this.t("code")}</label>
9419
9567
  <input
@@ -9433,33 +9581,33 @@ let ve = class extends qe {
9433
9581
  }
9434
9582
  legal() {
9435
9583
  const t = this.config?.legal;
9436
- return !t?.termsUrl && !t?.privacyUrl ? M : b`<p class="legal">
9584
+ return !t?.termsUrl && !t?.privacyUrl ? C : w`<p class="legal">
9437
9585
  ${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}.
9586
+ ${t.termsUrl ? w`<a href=${t.termsUrl} target="_blank" rel="noopener">${this.t("terms")}</a>` : C}
9587
+ ${t.termsUrl && t.privacyUrl ? w` ${this.t("and")} ` : C}
9588
+ ${t.privacyUrl ? w`<a href=${t.privacyUrl} target="_blank" rel="noopener">${this.t("privacy")}</a>` : C}.
9441
9589
  </p>`;
9442
9590
  }
9443
9591
  backLink(t = "sign-in") {
9444
- return b`<div class="links">
9592
+ return w`<div class="links">
9445
9593
  <button type="button" class="btn btn-link" @click=${() => this.go(t)}>
9446
- ${_.arrowLeft} ${this.t("back")}
9594
+ ${q.arrowLeft} ${this.t("back")}
9447
9595
  </button>
9448
9596
  </div>`;
9449
9597
  }
9450
9598
  renderStep() {
9451
9599
  if (this.auth.configError)
9452
- return b`<div class="alert alert-error" role="alert">
9453
- ${_.alert}
9600
+ return w`<div class="alert alert-error" role="alert">
9601
+ ${q.alert}
9454
9602
  <div class="alert-body">${this.auth.configError}</div>
9455
9603
  </div>`;
9456
9604
  if (!this.auth.configured)
9457
- return b`<div class="alert alert-error" role="alert">
9458
- ${_.alert}
9605
+ return w`<div class="alert alert-error" role="alert">
9606
+ ${q.alert}
9459
9607
  <div class="alert-body">${this.t("errorNotConfigured")}</div>
9460
9608
  </div>`;
9461
9609
  if (this.auth.status === "loading")
9462
- return b`<div class="empty"><span class="spinner"></span></div>`;
9610
+ return w`<div class="empty"><span class="spinner"></span></div>`;
9463
9611
  if (this.auth.status === "signed-in" && this.step !== "mfa") return this.renderSignedIn();
9464
9612
  switch (this.step) {
9465
9613
  case "sign-up":
@@ -9482,32 +9630,32 @@ let ve = class extends qe {
9482
9630
  }
9483
9631
  renderSignedIn() {
9484
9632
  const t = this.auth.user, e = t.name || t.email || t.phone || this.t("guestAccount");
9485
- return b`
9633
+ return w`
9486
9634
  <div class="stack">
9487
9635
  <div class="row">
9488
9636
  <div class="inline">
9489
9637
  <span class="avatar">${Ai(e)}</span>
9490
9638
  <div class="row-main">
9491
9639
  <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}
9640
+ ${t.email && t.name ? w`<span class="row-sub" title=${t.email}>${t.email}</span>` : C}
9493
9641
  </div>
9494
9642
  </div>
9495
9643
  </div>
9496
9644
  ${this.renderError()}
9497
9645
  <div class="stack-sm">
9498
- ${this.config?.successUrl ? b`<a class="btn btn-primary btn-block" href=${this.config.successUrl}
9646
+ ${this.config?.successUrl ? w`<a class="btn btn-primary btn-block" href=${this.config.successUrl}
9499
9647
  >${this.t("continue")}</a
9500
- >` : M}
9648
+ >` : C}
9501
9649
  <button
9502
9650
  class="btn btn-outline btn-block"
9503
9651
  @click=${() => {
9504
- this.embedded ? this.fire("authui-open", { view: "account" }) : wt("account");
9652
+ this.embedded ? this.fire("authui-open", { view: "account" }) : mt("account");
9505
9653
  }}
9506
9654
  >
9507
- ${_.settings} ${this.t("manageAccount")}
9655
+ ${q.settings} ${this.t("manageAccount")}
9508
9656
  </button>
9509
9657
  <button class="btn btn-ghost btn-block" @click=${this.onSignOut} ?disabled=${this.busy}>
9510
- ${_.logOut} ${this.t("signOut")}
9658
+ ${q.logOut} ${this.t("signOut")}
9511
9659
  </button>
9512
9660
  </div>
9513
9661
  </div>
@@ -9515,95 +9663,133 @@ let ve = class extends qe {
9515
9663
  }
9516
9664
  renderProviders() {
9517
9665
  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) })}
9666
+ if (t.length === 0) return C;
9667
+ const e = Fe(), n = t.find((o) => e === `oauth:${o}`) ?? null;
9668
+ if (t.length <= 2) {
9669
+ const o = [...t].sort((a, s) => {
9670
+ const r = e === `oauth:${a}` ? 0 : 1, d = e === `oauth:${s}` ? 0 : 1;
9671
+ return r - d;
9672
+ });
9673
+ return w`
9674
+ <div class="providers">
9675
+ ${o.map((a) => {
9676
+ const s = e === `oauth:${a}`, r = this.t("continueWith", { provider: xt(a) });
9677
+ return w`<button
9678
+ type="button"
9679
+ class="btn btn-outline ${s ? "last-used" : ""}"
9680
+ @click=${() => this.onOAuth(a)}
9681
+ ?disabled=${this.busy}
9682
+ aria-label=${s ? `${r}. ${this.t("lastUsed")}` : r}
9683
+ >
9684
+ ${Mt(a)}
9685
+ <span>${r}</span>
9686
+ ${s ? w`<span class="last-used-badge">${this.t("lastUsed")}</span>` : C}
9687
+ </button>`;
9688
+ })}
9689
+ </div>
9690
+ `;
9691
+ }
9692
+ const i = this.expandedOAuth && t.includes(this.expandedOAuth) ? this.expandedOAuth : n ?? t[0];
9693
+ return w`
9694
+ <div
9695
+ class="providers accordion"
9696
+ @mouseleave=${() => {
9697
+ this.expandedOAuth = n ?? t[0];
9698
+ }}
9699
+ >
9700
+ ${t.map((o) => {
9701
+ const a = e === `oauth:${o}`, s = i === o, r = this.t("continueWith", { provider: xt(o) });
9702
+ return w`<div
9703
+ class="provider-slot ${s ? "is-expanded" : ""}"
9704
+ @mouseenter=${() => {
9705
+ this.expandedOAuth = o;
9706
+ }}
9535
9707
  >
9536
- ${ui(i)}
9537
- <span
9538
- >${n ? pt(i) : this.t("continueWith", { provider: pt(i) })}</span
9708
+ <button
9709
+ type="button"
9710
+ class="btn btn-outline"
9711
+ @click=${() => this.onOAuth(o)}
9712
+ @focus=${() => {
9713
+ this.expandedOAuth = o;
9714
+ }}
9715
+ ?disabled=${this.busy}
9716
+ aria-label=${a ? `${r}. ${this.t("lastUsed")}` : r}
9539
9717
  >
9540
- ${o ? b`<span class="last-used-badge">${this.t("lastUsed")}</span>` : M}
9541
- </button>`;
9718
+ ${Mt(o)}
9719
+ <span class="provider-label"
9720
+ ><span><span class="provider-label-text">${r}</span></span></span
9721
+ >
9722
+ ${a ? w`<span class="oauth-last-used" data-last-used=${o} aria-hidden="true">
9723
+ <span class="oauth-last-used-dot"></span>
9724
+ <span class="oauth-last-used-pill">${this.t("lastUsed")}</span>
9725
+ </span>` : C}
9726
+ </button>
9727
+ </div>`;
9542
9728
  })}
9543
9729
  </div>
9544
9730
  `;
9545
9731
  }
9546
9732
  renderSignIn() {
9547
9733
  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
9734
+ t.magicUrl ? { step: "magic-url", icon: q.link, label: this.t("sendMagicLink") } : null,
9735
+ t.emailOtp ? { step: "email-otp", icon: q.mail, label: this.t("continueWithEmail") } : null,
9736
+ t.phone ? { step: "phone", icon: q.smartphone, label: this.t("continueWithPhone") } : null
9551
9737
  ].filter(Boolean);
9552
- return b`
9738
+ return w`
9553
9739
  <div class="stack">
9554
9740
  ${this.renderProviders()}
9555
- ${n && (e || i.length > 0) ? b`<div class="separator-text">${this.t("or")}</div>` : M}
9556
- ${e ? b`<form
9741
+ ${n && (e || i.length > 0) ? w`<div class="separator-text">${this.t("or")}</div>` : C}
9742
+ ${e ? w`<form
9557
9743
  class="form ${Fe() === "email-password" ? "last-used-form" : ""}"
9558
9744
  @submit=${this.onSignIn}
9559
9745
  novalidate
9560
9746
  >
9561
- ${Fe() === "email-password" ? b`<p class="hint">
9747
+ ${Fe() === "email-password" ? w`<p class="hint">
9562
9748
  <span class="last-used-badge">${this.t("lastUsed")}</span>
9563
- </p>` : M}
9749
+ </p>` : C}
9564
9750
  ${this.emailField()}
9565
9751
  ${this.passwordField({ label: this.t("password"), autocomplete: "current-password", id: "authui-password", field: "password", forgot: !0 })}
9566
9752
  ${this.renderError()} ${this.submitButton(this.t("signIn"))}
9567
9753
  </form>` : this.renderError()}
9568
- ${i.length > 0 ? b`<div class="stack-sm">
9754
+ ${i.length > 0 ? w`<div class="stack-sm">
9569
9755
  ${i.map((o) => {
9570
9756
  const a = Fe() === o.step;
9571
- return b`<button
9757
+ return w`<button
9572
9758
  type="button"
9573
9759
  class="btn btn-secondary btn-block ${a ? "last-used" : ""}"
9574
9760
  @click=${() => this.go(o.step)}
9575
9761
  >
9576
9762
  ${o.icon} ${o.label}
9577
- ${a ? b`<span class="last-used-badge">${this.t("lastUsed")}</span>` : M}
9763
+ ${a ? w`<span class="last-used-badge">${this.t("lastUsed")}</span>` : C}
9578
9764
  </button>`;
9579
9765
  })}
9580
- </div>` : M}
9581
- ${t.anonymous ? b`<button
9766
+ </div>` : C}
9767
+ ${t.anonymous ? w`<button
9582
9768
  type="button"
9583
9769
  class="btn btn-ghost btn-block ${Fe() === "anonymous" ? "last-used" : ""}"
9584
9770
  @click=${this.onGuest}
9585
9771
  ?disabled=${this.busy}
9586
9772
  >
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">
9773
+ ${q.ghost} ${this.t("continueAsGuest")}
9774
+ ${Fe() === "anonymous" ? w`<span class="last-used-badge">${this.t("lastUsed")}</span>` : C}
9775
+ </button>` : C}
9776
+ ${e && this.config?.signUp !== !1 ? w`<div class="links">
9591
9777
  <span>${this.t("noAccount")}</span>
9592
9778
  <button type="button" class="btn btn-link" @click=${() => this.go("sign-up")}>
9593
9779
  ${this.t("signUp")}
9594
9780
  </button>
9595
- </div>` : M}
9781
+ </div>` : C}
9596
9782
  ${this.legal()}
9597
9783
  </div>
9598
9784
  `;
9599
9785
  }
9600
9786
  renderSignUp() {
9601
- return b`
9787
+ return w`
9602
9788
  <div class="stack">
9603
9789
  ${this.renderProviders()}
9604
- ${(this.config?.methods?.oauth?.length ?? 0) > 0 ? b`<div class="separator-text">${this.t("or")}</div>` : M}
9790
+ ${(this.config?.methods?.oauth?.length ?? 0) > 0 ? w`<div class="separator-text">${this.t("or")}</div>` : C}
9605
9791
  <form class="form" @submit=${this.onSignUp} novalidate>
9606
- ${this.config?.requireName !== !1 ? b`<div class="field">
9792
+ ${this.config?.requireName !== !1 ? w`<div class="field">
9607
9793
  <label class="label" for="authui-name">${this.t("name")}</label>
9608
9794
  <input
9609
9795
  class="input"
@@ -9614,7 +9800,7 @@ let ve = class extends qe {
9614
9800
  .value=${this.name}
9615
9801
  @input=${this.bind("name")}
9616
9802
  />
9617
- </div>` : M}
9803
+ </div>` : C}
9618
9804
  ${this.emailField()}
9619
9805
  ${this.passwordField({ label: this.t("password"), autocomplete: "new-password", id: "authui-password", field: "password", hint: this.t("passwordHint"), meter: !0 })}
9620
9806
  ${this.renderError()} ${this.submitButton(this.t("createAccount"))}
@@ -9630,7 +9816,7 @@ let ve = class extends qe {
9630
9816
  `;
9631
9817
  }
9632
9818
  renderForgot() {
9633
- return b`
9819
+ return w`
9634
9820
  <div class="stack">
9635
9821
  <form class="form" @submit=${this.onForgot} novalidate>
9636
9822
  ${this.emailField()} ${this.renderError()} ${this.submitButton(this.t("sendResetLink"))}
@@ -9640,7 +9826,7 @@ let ve = class extends qe {
9640
9826
  `;
9641
9827
  }
9642
9828
  renderReset() {
9643
- return this.recovery ? b`
9829
+ return this.recovery ? w`
9644
9830
  <div class="stack">
9645
9831
  <form class="form" @submit=${this.onReset} novalidate>
9646
9832
  ${this.passwordField({ label: this.t("newPassword"), autocomplete: "new-password", id: "authui-password", field: "password", hint: this.t("passwordHint"), meter: !0 })}
@@ -9655,13 +9841,13 @@ let ve = class extends qe {
9655
9841
  this.step = "sign-in", this.error = "", this.notice = null, this.focusOnStep = !0, this.fire("authui-view", { view: "sign-in" });
9656
9842
  }}
9657
9843
  >
9658
- ${_.arrowLeft} ${this.t("back")}
9844
+ ${q.arrowLeft} ${this.t("back")}
9659
9845
  </button>
9660
9846
  </div>
9661
9847
  </div>
9662
- ` : b`<div class="stack">
9848
+ ` : w`<div class="stack">
9663
9849
  <div class="alert alert-error" role="alert">
9664
- ${_.alert}
9850
+ ${q.alert}
9665
9851
  <div class="alert-body">${this.t("errorInvalidToken")}</div>
9666
9852
  </div>
9667
9853
  <div class="links">
@@ -9678,22 +9864,22 @@ let ve = class extends qe {
9678
9864
  </div>`;
9679
9865
  }
9680
9866
  phraseBox(t) {
9681
- return t ? b`<div class="alert alert-info">
9682
- ${_.shield}
9867
+ return t ? w`<div class="alert alert-info">
9868
+ ${q.shield}
9683
9869
  <div class="alert-title">
9684
9870
  ${this.t("securityPhrase")}: <span class="code">${t}</span>
9685
9871
  </div>
9686
9872
  <div class="alert-body">${this.t("securityPhraseHint")}</div>
9687
- </div>` : M;
9873
+ </div>` : C;
9688
9874
  }
9689
9875
  renderMagicUrl() {
9690
- return this.token ? b`<div class="stack">
9876
+ return this.token ? w`<div class="stack">
9691
9877
  <div class="alert alert-success" role="status">
9692
- ${_.mail}
9878
+ ${q.mail}
9693
9879
  <div class="alert-body">${this.t("magicLinkSent", { email: this.token.target })}</div>
9694
9880
  </div>
9695
9881
  ${this.phraseBox(this.token.phrase)} ${this.backLink()}
9696
- </div>` : b`
9882
+ </div>` : w`
9697
9883
  <div class="stack">
9698
9884
  <form class="form" @submit=${this.onMagicUrl} novalidate>
9699
9885
  ${this.emailField()} ${this.renderError()} ${this.submitButton(this.t("sendMagicLink"))}
@@ -9722,9 +9908,9 @@ let ve = class extends qe {
9722
9908
  }
9723
9909
  renderCodeEntry() {
9724
9910
  const t = this.token?.kind === "phone", e = Date.now() < this.resendCooldownUntil;
9725
- return b`
9911
+ return w`
9726
9912
  <div class="alert alert-info" role="status">
9727
- ${t ? _.smartphone : _.mail}
9913
+ ${t ? q.smartphone : q.mail}
9728
9914
  <div class="alert-body">${this.t("codeSent", { target: this.token.target })}</div>
9729
9915
  </div>
9730
9916
  ${this.phraseBox(this.token.phrase)}
@@ -9756,7 +9942,7 @@ let ve = class extends qe {
9756
9942
  `;
9757
9943
  }
9758
9944
  renderEmailOtp() {
9759
- return this.token ? b`<div class="stack">${this.renderCodeEntry()}</div>` : b`
9945
+ return this.token ? w`<div class="stack">${this.renderCodeEntry()}</div>` : w`
9760
9946
  <div class="stack">
9761
9947
  <form class="form" @submit=${this.onEmailOtp} novalidate>
9762
9948
  ${this.emailField()} ${this.renderError()} ${this.submitButton(this.t("sendCode"))}
@@ -9766,7 +9952,7 @@ let ve = class extends qe {
9766
9952
  `;
9767
9953
  }
9768
9954
  renderPhone() {
9769
- return this.token ? b`<div class="stack">${this.renderCodeEntry()}</div>` : b`
9955
+ return this.token ? w`<div class="stack">${this.renderCodeEntry()}</div>` : w`
9770
9956
  <div class="stack">
9771
9957
  <form class="form" @submit=${this.onPhoneOtp} novalidate>
9772
9958
  <div class="field">
@@ -9794,34 +9980,34 @@ let ve = class extends qe {
9794
9980
  const n = [
9795
9981
  {
9796
9982
  factor: "totp",
9797
- icon: _.smartphone,
9983
+ icon: q.smartphone,
9798
9984
  label: this.t("mfaUseAuthenticator"),
9799
9985
  available: t?.totp ?? !0
9800
9986
  },
9801
9987
  {
9802
9988
  factor: "email",
9803
- icon: _.mail,
9989
+ icon: q.mail,
9804
9990
  label: this.t("mfaUseEmail"),
9805
9991
  available: t?.email ?? !0
9806
9992
  },
9807
9993
  {
9808
9994
  factor: "phone",
9809
- icon: _.phone,
9995
+ icon: q.phone,
9810
9996
  label: this.t("mfaUsePhone"),
9811
9997
  available: t?.phone ?? !0
9812
9998
  },
9813
9999
  {
9814
10000
  factor: "recoverycode",
9815
- icon: _.key,
10001
+ icon: q.key,
9816
10002
  label: this.t("mfaUseRecoveryCode"),
9817
10003
  available: t?.recoveryCode ?? !0
9818
10004
  }
9819
10005
  ];
9820
- return b`
10006
+ return w`
9821
10007
  <div class="stack">
9822
10008
  <div class="stack-sm">
9823
10009
  ${n.filter((i) => i.available).map(
9824
- (i) => b`<button
10010
+ (i) => w`<button
9825
10011
  type="button"
9826
10012
  class="choice"
9827
10013
  @click=${() => this.onChooseFactor(i.factor)}
@@ -9841,10 +10027,10 @@ let ve = class extends qe {
9841
10027
  `;
9842
10028
  }
9843
10029
  const e = this.challenge.factor === "recoverycode";
9844
- return b`
10030
+ return w`
9845
10031
  <div class="stack">
9846
10032
  <form class="form" @submit=${this.onVerifyFactor} novalidate>
9847
- ${e ? b`<div class="field">
10033
+ ${e ? w`<div class="field">
9848
10034
  <label class="label" for="authui-code">${this.t("recoveryCode")}</label>
9849
10035
  <input
9850
10036
  class="input mono"
@@ -9860,7 +10046,7 @@ let ve = class extends qe {
9860
10046
  </form>
9861
10047
  <div class="links">
9862
10048
  <button type="button" class="btn btn-link" @click=${() => this.challenge = null}>
9863
- ${_.arrowLeft} ${this.t("back")}
10049
+ ${q.arrowLeft} ${this.t("back")}
9864
10050
  </button>
9865
10051
  <span aria-hidden="true">·</span>
9866
10052
  <button type="button" class="btn btn-link" @click=${this.onCancelMfa}>
@@ -9871,50 +10057,53 @@ let ve = class extends qe {
9871
10057
  `;
9872
10058
  }
9873
10059
  };
9874
- ve.styles = [...qe.styles, Co];
9875
- ke([
10060
+ we.styles = [...qe.styles, Co];
10061
+ Ae([
9876
10062
  ee({ type: String })
9877
- ], ve.prototype, "view", 2);
9878
- ke([
10063
+ ], we.prototype, "view", 2);
10064
+ Ae([
9879
10065
  ee({ type: Boolean })
9880
- ], ve.prototype, "embedded", 2);
9881
- ke([
10066
+ ], we.prototype, "embedded", 2);
10067
+ Ae([
10068
+ V()
10069
+ ], we.prototype, "step", 2);
10070
+ Ae([
9882
10071
  V()
9883
- ], ve.prototype, "step", 2);
9884
- ke([
10072
+ ], we.prototype, "busy", 2);
10073
+ Ae([
9885
10074
  V()
9886
- ], ve.prototype, "busy", 2);
9887
- ke([
10075
+ ], we.prototype, "error", 2);
10076
+ Ae([
9888
10077
  V()
9889
- ], ve.prototype, "error", 2);
9890
- ke([
10078
+ ], we.prototype, "notice", 2);
10079
+ Ae([
9891
10080
  V()
9892
- ], ve.prototype, "notice", 2);
9893
- ke([
10081
+ ], we.prototype, "showPassword", 2);
10082
+ Ae([
9894
10083
  V()
9895
- ], ve.prototype, "showPassword", 2);
9896
- ke([
10084
+ ], we.prototype, "expandedOAuth", 2);
10085
+ Ae([
9897
10086
  V()
9898
- ], ve.prototype, "token", 2);
9899
- ke([
10087
+ ], we.prototype, "token", 2);
10088
+ Ae([
9900
10089
  V()
9901
- ], ve.prototype, "resendCooldownUntil", 2);
9902
- ke([
10090
+ ], we.prototype, "resendCooldownUntil", 2);
10091
+ Ae([
9903
10092
  V()
9904
- ], ve.prototype, "challenge", 2);
9905
- ke([
10093
+ ], we.prototype, "challenge", 2);
10094
+ Ae([
9906
10095
  V()
9907
- ], ve.prototype, "recovery", 2);
9908
- ke([
9909
- bi("form input:not([type=hidden])")
9910
- ], ve.prototype, "firstInput", 2);
9911
- ve = ke([
10096
+ ], we.prototype, "recovery", 2);
10097
+ Ae([
10098
+ wi("form input:not([type=hidden])")
10099
+ ], we.prototype, "firstInput", 2);
10100
+ we = Ae([
9912
10101
  ze("authui-sign-in")
9913
- ], ve);
9914
- var Eo = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, O = (t, e, n, i) => {
9915
- for (var o = i > 1 ? void 0 : i ? qo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
10102
+ ], we);
10103
+ var qo = Object.defineProperty, _o = Object.getOwnPropertyDescriptor, O = (t, e, n, i) => {
10104
+ for (var o = i > 1 ? void 0 : i ? _o(e, n) : e, a = t.length - 1, s; a >= 0; a--)
9916
10105
  (s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
9917
- return i && o && Eo(e, n, o), o;
10106
+ return i && o && qo(e, n, o), o;
9918
10107
  };
9919
10108
  let z = class extends qe {
9920
10109
  constructor() {
@@ -10022,7 +10211,7 @@ let z = class extends qe {
10022
10211
  try {
10023
10212
  this.recoveryCodes = await R.createRecoveryCodes();
10024
10213
  } catch (t) {
10025
- if (!yt(t, oe.recoveryCodesExist)) throw t;
10214
+ if (!gt(t, oe.recoveryCodesExist)) throw t;
10026
10215
  this.recoveryCodes = await R.getRecoveryCodes();
10027
10216
  }
10028
10217
  await this.loadFactors();
@@ -10120,10 +10309,14 @@ let z = class extends qe {
10120
10309
  }
10121
10310
  updated(t) {
10122
10311
  t.has("active") && requestAnimationFrame(() => {
10123
- const e = this.renderRoot.querySelector(
10312
+ const n = this.renderRoot.querySelector(
10124
10313
  '.tab[aria-selected="true"]'
10125
10314
  );
10126
- e && typeof e.scrollIntoView == "function" && e.scrollIntoView({ inline: "nearest", block: "nearest", behavior: "smooth" });
10315
+ n && typeof n.scrollIntoView == "function" && n.scrollIntoView({ inline: "nearest", block: "nearest", behavior: "smooth" });
10316
+ }), (t.has("confirmDelete") && this.confirmDelete || t.has("confirmSignOutAll") && this.confirmSignOutAll || t.has("confirmDisconnectId") && this.confirmDisconnectId !== null) && requestAnimationFrame(() => {
10317
+ this.renderRoot.querySelector(
10318
+ ".card-footer [autofocus], .row-actions [autofocus], .inline [autofocus], .card-footer .btn-outline, .row-actions .btn-outline, .inline .btn-outline"
10319
+ )?.focus({ preventScroll: !0 });
10127
10320
  });
10128
10321
  }
10129
10322
  setNotice(t, e) {
@@ -10141,9 +10334,9 @@ let z = class extends qe {
10141
10334
  try {
10142
10335
  await e(), n && this.setNotice("success", n);
10143
10336
  } catch (i) {
10144
- yt(i, oe.challengeRequired) ? this.stepUp = { retry: () => this.run(t, e, n) } : this.errors = {
10337
+ gt(i, oe.challengeRequired) ? this.stepUp = { retry: () => this.run(t, e, n) } : this.errors = {
10145
10338
  ...this.errors,
10146
- [t]: xt(
10339
+ [t]: Ct(
10147
10340
  i,
10148
10341
  this.strings,
10149
10342
  t.includes("code") ? "code" : t === "password" ? "password" : "link"
@@ -10224,16 +10417,16 @@ let z = class extends qe {
10224
10417
  // ─────────────────────────── render ───────────────────────────
10225
10418
  render() {
10226
10419
  if (!this.auth.configured)
10227
- return b`<div class="alert alert-error" role="alert">
10228
- ${_.alert}
10420
+ return w`<div class="alert alert-error" role="alert">
10421
+ ${q.alert}
10229
10422
  <div class="alert-body">${this.t("errorNotConfigured")}</div>
10230
10423
  </div>`;
10231
10424
  if (this.auth.status === "loading")
10232
- return b`<div class="panel ${this.embedded ? "embedded" : ""}" part="panel">
10425
+ return w`<div class="panel ${this.embedded ? "embedded" : ""}" part="panel">
10233
10426
  <div class="empty"><span class="spinner"></span></div>
10234
10427
  </div>`;
10235
10428
  if (!this.user)
10236
- return b`<div class="panel ${this.embedded ? "embedded" : ""}">
10429
+ return w`<div class="panel ${this.embedded ? "embedded" : ""}">
10237
10430
  <authui-sign-in embedded></authui-sign-in>
10238
10431
  </div>`;
10239
10432
  const t = [
@@ -10243,12 +10436,12 @@ let z = class extends qe {
10243
10436
  { id: "connections", label: this.t("connections") },
10244
10437
  ...this.logsSupported ? [{ id: "activity", label: this.t("activity") }] : []
10245
10438
  ];
10246
- return b`
10439
+ return w`
10247
10440
  <div class="panel ${this.embedded ? "embedded" : ""}" part="panel">
10248
10441
  ${this.renderIdentity()}
10249
10442
  <div class="tabs" role="tablist" @keydown=${this.onTabsKeydown}>
10250
10443
  ${t.map(
10251
- (e) => b`<button
10444
+ (e) => w`<button
10252
10445
  class="tab"
10253
10446
  role="tab"
10254
10447
  id=${`authui-tab-${e.id}`}
@@ -10261,8 +10454,8 @@ let z = class extends qe {
10261
10454
  </button>`
10262
10455
  )}
10263
10456
  </div>
10264
- ${this.notice ? b`<div class="alert alert-${this.notice.tone}" role="status">
10265
- ${this.notice.tone === "success" ? _.checkCircle : _.info}
10457
+ ${this.notice ? w`<div class="alert alert-${this.notice.tone}" role="status">
10458
+ ${this.notice.tone === "success" ? q.checkCircle : q.info}
10266
10459
  <div class="alert-body">${this.notice.message}</div>
10267
10460
  <button
10268
10461
  class="btn btn-ghost btn-icon dismiss"
@@ -10271,10 +10464,10 @@ let z = class extends qe {
10271
10464
  }}
10272
10465
  aria-label=${this.t("close")}
10273
10466
  >
10274
- ${_.x}
10467
+ ${q.x}
10275
10468
  </button>
10276
- </div>` : M}
10277
- ${this.stepUp ? this.renderStepUp() : b`<div
10469
+ </div>` : C}
10470
+ ${this.stepUp ? this.renderStepUp() : w`<div
10278
10471
  class="tabpanel"
10279
10472
  role="tabpanel"
10280
10473
  id=${`authui-panel-${this.active}`}
@@ -10287,21 +10480,21 @@ let z = class extends qe {
10287
10480
  }
10288
10481
  renderIdentity() {
10289
10482
  const t = this.user, e = t.name || t.email || t.phone || this.t("guestAccount");
10290
- return b`
10483
+ return w`
10291
10484
  <div class="between">
10292
10485
  <div class="identity">
10293
10486
  <span class="avatar">${Ai(e)}</span>
10294
10487
  <div class="row-main">
10295
10488
  <span class="row-title" title=${e}>
10296
10489
  ${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}
10490
+ ${t.mfa ? w`<span class="badge badge-success">${q.shieldCheck} ${this.t("mfaBadge")}</span>` : C}
10491
+ ${R.isPreview ? w`<span class="badge badge-info">${this.t("preview")}</span>` : C}
10299
10492
  </span>
10300
- ${t.email && t.name ? b`<span class="row-sub" title=${t.email}>${t.email}</span>` : M}
10493
+ ${t.email && t.name ? w`<span class="row-sub" title=${t.email}>${t.email}</span>` : C}
10301
10494
  </div>
10302
10495
  </div>
10303
10496
  <button class="btn btn-outline btn-sm" @click=${() => R.signOut()}>
10304
- ${_.logOut} ${this.t("signOut")}
10497
+ ${q.logOut} ${this.t("signOut")}
10305
10498
  </button>
10306
10499
  </div>
10307
10500
  `;
@@ -10322,35 +10515,64 @@ let z = class extends qe {
10322
10515
  }
10323
10516
  error(t) {
10324
10517
  const e = this.errors[t];
10325
- return e ? b`<div class="alert alert-error" role="alert">
10326
- ${_.alert}
10518
+ return e ? w`<div class="alert alert-error" role="alert">
10519
+ ${q.alert}
10327
10520
  <div class="alert-body">${e}</div>
10328
- </div>` : M;
10521
+ </div>` : C;
10329
10522
  }
10330
10523
  spinner(t) {
10331
- return this.busy === t ? b`<span class="spinner" aria-hidden="true"></span>` : M;
10524
+ return this.busy === t ? w`<span class="spinner" aria-hidden="true"></span>` : C;
10332
10525
  }
10333
10526
  card(t, e, n, i, o = !1) {
10334
- return b`<section class="card ${o ? "card-danger" : ""}">
10527
+ return w`<section class="card ${o ? "card-danger" : ""}">
10335
10528
  <div class="card-header">
10336
10529
  <h3 class="card-title">${t}</h3>
10337
- ${e ? b`<p class="card-description">${e}</p>` : M}
10530
+ ${e ? w`<p class="card-description">${e}</p>` : C}
10338
10531
  </div>
10339
- <div class="card-body">${n}</div>
10340
- ${i ? b`<div class="card-footer">${i}</div>` : M}
10532
+ ${n !== C ? w`<div class="card-body">${n}</div>` : C}
10533
+ ${i ? w`<div class="card-footer">${i}</div>` : C}
10341
10534
  </section>`;
10342
10535
  }
10536
+ /** Vibes-style confirm footer: Cancel first (autofocus), destructive only on confirm. */
10537
+ confirmFooter(t, e, n, i) {
10538
+ return w`
10539
+ <button
10540
+ type="button"
10541
+ class="btn btn-outline btn-sm"
10542
+ autofocus
10543
+ ?disabled=${!!this.busy}
10544
+ @click=${t}
10545
+ >
10546
+ ${this.t("cancel")}
10547
+ </button>
10548
+ <button
10549
+ type="button"
10550
+ class="btn btn-destructive btn-sm"
10551
+ ?disabled=${!!this.busy}
10552
+ @click=${e}
10553
+ >
10554
+ ${i ? this.spinner(i) : C} ${n}
10555
+ </button>
10556
+ `;
10557
+ }
10558
+ emptyState(t, e, n) {
10559
+ return w`<div class="empty empty-well">
10560
+ <div class="empty-icon" aria-hidden="true">${t}</div>
10561
+ <p class="empty-title">${e}</p>
10562
+ <p class="empty-desc">${n}</p>
10563
+ </div>`;
10564
+ }
10343
10565
  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>`;
10566
+ 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
10567
  }
10346
10568
  // ── Profile ──
10347
10569
  renderProfile() {
10348
10570
  const t = this.user;
10349
- return this.isGuest ? b`<div class="section">
10571
+ return this.isGuest ? w`<div class="section">
10350
10572
  ${this.card(
10351
10573
  this.t("guestAccount"),
10352
10574
  this.t("guestAccountDescription"),
10353
- b`<form class="form" id="guest-form" @submit=${this.onConvertGuest} novalidate>
10575
+ w`<form class="form" id="guest-form" @submit=${this.onConvertGuest} novalidate>
10354
10576
  <div class="field">
10355
10577
  <label class="label" for="guest-name">${this.t("name")}</label>
10356
10578
  <input
@@ -10387,7 +10609,7 @@ let z = class extends qe {
10387
10609
  />
10388
10610
  ${this.emailPassword ? (() => {
10389
10611
  const e = pi(this.emailPassword);
10390
- return b`<div class="strength" aria-live="polite">
10612
+ return w`<div class="strength" aria-live="polite">
10391
10613
  <div
10392
10614
  class="strength-meter"
10393
10615
  data-level=${String(e.level)}
@@ -10402,11 +10624,11 @@ let z = class extends qe {
10402
10624
  </div>
10403
10625
  <p class="strength-label">${this.t(e.labelKey)}</p>
10404
10626
  </div>`;
10405
- })() : b`<p class="hint">${this.t("passwordHint")}</p>`}
10627
+ })() : w`<p class="hint">${this.t("passwordHint")}</p>`}
10406
10628
  </div>
10407
10629
  ${this.error("guest")}
10408
10630
  </form>`,
10409
- b`<button
10631
+ w`<button
10410
10632
  class="btn btn-primary btn-sm"
10411
10633
  type="submit"
10412
10634
  form="guest-form"
@@ -10415,11 +10637,11 @@ let z = class extends qe {
10415
10637
  ${this.spinner("guest")} ${this.t("createAccount")}
10416
10638
  </button>`
10417
10639
  )}
10418
- </div>` : b`<div class="section">
10640
+ </div>` : w`<div class="section">
10419
10641
  ${this.card(
10420
10642
  this.t("name"),
10421
10643
  void 0,
10422
- b`<form class="form" id="name-form" @submit=${this.onUpdateName} novalidate>
10644
+ w`<form class="form" id="name-form" @submit=${this.onUpdateName} novalidate>
10423
10645
  <div class="field">
10424
10646
  <label class="label" for="acc-name">${this.t("name")}</label>
10425
10647
  <input
@@ -10433,7 +10655,7 @@ let z = class extends qe {
10433
10655
  </div>
10434
10656
  ${this.error("name")}
10435
10657
  </form>`,
10436
- b`<button
10658
+ w`<button
10437
10659
  class="btn btn-primary btn-sm"
10438
10660
  type="submit"
10439
10661
  form="name-form"
@@ -10445,11 +10667,11 @@ let z = class extends qe {
10445
10667
  ${this.card(
10446
10668
  this.t("email"),
10447
10669
  void 0,
10448
- b`<form class="form" id="email-form" @submit=${this.onUpdateEmail} novalidate>
10670
+ w`<form class="form" id="email-form" @submit=${this.onUpdateEmail} novalidate>
10449
10671
  <div class="field">
10450
10672
  <label class="label" for="acc-email"
10451
10673
  >${this.t("email")}
10452
- ${t.email ? this.verifiedBadge(t.emailVerification) : M}</label
10674
+ ${t.email ? this.verifiedBadge(t.emailVerification) : C}</label
10453
10675
  >
10454
10676
  <input
10455
10677
  class="input"
@@ -10461,7 +10683,7 @@ let z = class extends qe {
10461
10683
  required
10462
10684
  />
10463
10685
  </div>
10464
- ${this.emailInput !== t.email ? b`<div class="field">
10686
+ ${this.emailInput !== t.email ? w`<div class="field">
10465
10687
  <label class="label" for="acc-email-password"
10466
10688
  >${t.passwordUpdate ? this.t("currentPassword") : this.t("createPassword")}</label
10467
10689
  >
@@ -10474,12 +10696,12 @@ let z = class extends qe {
10474
10696
  autocomplete=${t.passwordUpdate ? "current-password" : "new-password"}
10475
10697
  required
10476
10698
  />
10477
- ${t.passwordUpdate ? M : b`<p class="hint">${this.t("createPasswordHint")}</p>`}
10478
- </div>` : M}
10699
+ ${t.passwordUpdate ? C : w`<p class="hint">${this.t("createPasswordHint")}</p>`}
10700
+ </div>` : C}
10479
10701
  ${this.error("email")} ${this.error("verify")}
10480
10702
  </form>`,
10481
- b`
10482
- ${t.email && !t.emailVerification ? b`<button
10703
+ w`
10704
+ ${t.email && !t.emailVerification ? w`<button
10483
10705
  class="btn btn-outline btn-sm"
10484
10706
  type="button"
10485
10707
  @click=${this.onSendVerification}
@@ -10492,7 +10714,7 @@ let z = class extends qe {
10492
10714
  Math.ceil((this.verifyEmailCooldownUntil - Date.now()) / 1e3)
10493
10715
  )
10494
10716
  }) : this.t("verifyEmail")}
10495
- </button>` : M}
10717
+ </button>` : C}
10496
10718
  <button
10497
10719
  class="btn btn-primary btn-sm"
10498
10720
  type="submit"
@@ -10506,11 +10728,11 @@ let z = class extends qe {
10506
10728
  ${this.card(
10507
10729
  this.t("phone"),
10508
10730
  void 0,
10509
- b`<form class="form" id="phone-form" @submit=${this.onUpdatePhone} novalidate>
10731
+ w`<form class="form" id="phone-form" @submit=${this.onUpdatePhone} novalidate>
10510
10732
  <div class="field">
10511
10733
  <label class="label" for="acc-phone"
10512
10734
  >${this.t("phone")}
10513
- ${t.phone ? this.verifiedBadge(t.phoneVerification) : M}</label
10735
+ ${t.phone ? this.verifiedBadge(t.phoneVerification) : C}</label
10514
10736
  >
10515
10737
  <input
10516
10738
  class="input"
@@ -10522,7 +10744,7 @@ let z = class extends qe {
10522
10744
  autocomplete="tel"
10523
10745
  />
10524
10746
  </div>
10525
- ${this.phoneInput !== t.phone ? b`<div class="field">
10747
+ ${this.phoneInput !== t.phone ? w`<div class="field">
10526
10748
  <label class="label" for="acc-phone-password"
10527
10749
  >${t.passwordUpdate ? this.t("currentPassword") : this.t("createPassword")}</label
10528
10750
  >
@@ -10535,9 +10757,9 @@ let z = class extends qe {
10535
10757
  autocomplete=${t.passwordUpdate ? "current-password" : "new-password"}
10536
10758
  required
10537
10759
  />
10538
- ${t.passwordUpdate ? M : b`<p class="hint">${this.t("createPasswordHint")}</p>`}
10539
- </div>` : M}
10540
- ${this.phoneCodeSent ? b`<div class="field">
10760
+ ${t.passwordUpdate ? C : w`<p class="hint">${this.t("createPasswordHint")}</p>`}
10761
+ </div>` : C}
10762
+ ${this.phoneCodeSent ? w`<div class="field">
10541
10763
  <label class="label" for="acc-phone-code">${this.t("code")}</label>
10542
10764
  <input
10543
10765
  class="input input-otp"
@@ -10553,26 +10775,26 @@ let z = class extends qe {
10553
10775
  e.key === "Enter" && (e.preventDefault(), this.onConfirmPhoneVerification(e));
10554
10776
  }}
10555
10777
  />
10556
- </div>` : M}
10778
+ </div>` : C}
10557
10779
  ${this.error("phone")} ${this.error("verify-phone")} ${this.error("verify-phone-code")}
10558
10780
  </form>`,
10559
- b`
10560
- ${t.phone && !t.phoneVerification && !this.phoneCodeSent ? b`<button
10781
+ w`
10782
+ ${t.phone && !t.phoneVerification && !this.phoneCodeSent ? w`<button
10561
10783
  class="btn btn-outline btn-sm"
10562
10784
  type="button"
10563
10785
  @click=${this.onSendPhoneVerification}
10564
10786
  ?disabled=${!!this.busy}
10565
10787
  >
10566
10788
  ${this.spinner("verify-phone")} ${this.t("sendCode")}
10567
- </button>` : M}
10568
- ${this.phoneCodeSent ? b`<button
10789
+ </button>` : C}
10790
+ ${this.phoneCodeSent ? w`<button
10569
10791
  class="btn btn-outline btn-sm"
10570
10792
  type="button"
10571
10793
  @click=${this.onConfirmPhoneVerification}
10572
10794
  ?disabled=${!!this.busy}
10573
10795
  >
10574
10796
  ${this.spinner("verify-phone-code")} ${this.t("verifyCode")}
10575
- </button>` : M}
10797
+ </button>` : C}
10576
10798
  <button
10577
10799
  class="btn btn-primary btn-sm"
10578
10800
  type="submit"
@@ -10590,42 +10812,37 @@ let z = class extends qe {
10590
10812
  return this.card(
10591
10813
  this.t("deleteAccount"),
10592
10814
  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,
10815
+ this.confirmDelete ? this.error("delete") : w`${this.error("delete")}
10816
+ <button class="btn btn-outline btn-sm warn" @click=${() => this.confirmDelete = !0}>
10817
+ ${q.userX} ${this.t("deleteAccount")}
10818
+ </button>`,
10819
+ this.confirmDelete ? this.confirmFooter(
10820
+ () => {
10821
+ this.confirmDelete = !1;
10822
+ },
10823
+ () => {
10824
+ this.onDeleteAccount();
10825
+ },
10826
+ this.t("deleteAccountConfirm"),
10827
+ "delete"
10828
+ ) : void 0,
10612
10829
  !0
10613
10830
  );
10614
10831
  }
10615
10832
  // ── Security ──
10616
10833
  renderSecurity() {
10617
10834
  const t = this.user, e = this.config?.mfa !== !1;
10618
- return b`<div class="section">
10619
- ${this.isGuest ? M : this.card(
10835
+ return w`<div class="section">
10836
+ ${this.isGuest ? C : this.card(
10620
10837
  this.t("changePassword"),
10621
10838
  void 0,
10622
- b`<form
10839
+ w`<form
10623
10840
  class="form"
10624
10841
  id="password-form"
10625
10842
  @submit=${this.onChangePassword}
10626
10843
  novalidate
10627
10844
  >
10628
- ${t.passwordUpdate ? b`<div class="field">
10845
+ ${t.passwordUpdate ? w`<div class="field">
10629
10846
  <label class="label" for="acc-old-password"
10630
10847
  >${this.t("currentPassword")}</label
10631
10848
  >
@@ -10638,7 +10855,7 @@ let z = class extends qe {
10638
10855
  autocomplete="current-password"
10639
10856
  required
10640
10857
  />
10641
- </div>` : M}
10858
+ </div>` : C}
10642
10859
  <div class="field">
10643
10860
  <label class="label" for="acc-new-password">${this.t("newPassword")}</label>
10644
10861
  <input
@@ -10653,7 +10870,7 @@ let z = class extends qe {
10653
10870
  />
10654
10871
  ${this.newPassword ? (() => {
10655
10872
  const n = pi(this.newPassword);
10656
- return b`<div class="strength" aria-live="polite">
10873
+ return w`<div class="strength" aria-live="polite">
10657
10874
  <div
10658
10875
  class="strength-meter"
10659
10876
  data-level=${String(n.level)}
@@ -10668,7 +10885,7 @@ let z = class extends qe {
10668
10885
  </div>
10669
10886
  <p class="strength-label">${this.t(n.labelKey)}</p>
10670
10887
  </div>`;
10671
- })() : b`<p class="hint">${this.t("passwordHint")}</p>`}
10888
+ })() : w`<p class="hint">${this.t("passwordHint")}</p>`}
10672
10889
  </div>
10673
10890
  <div class="field">
10674
10891
  <label class="label" for="acc-new-password-confirm"
@@ -10687,7 +10904,7 @@ let z = class extends qe {
10687
10904
  </div>
10688
10905
  ${this.error("password")}
10689
10906
  </form>`,
10690
- b`<button
10907
+ w`<button
10691
10908
  class="btn btn-primary btn-sm"
10692
10909
  type="submit"
10693
10910
  form="password-form"
@@ -10696,8 +10913,8 @@ let z = class extends qe {
10696
10913
  ${this.spinner("password")} ${this.t("update")}
10697
10914
  </button>`
10698
10915
  )}
10699
- ${e ? this.renderMfaCard() : M}
10700
- ${e ? this.renderRecoveryCard() : M}
10916
+ ${e ? this.renderMfaCard() : C}
10917
+ ${e ? this.renderRecoveryCard() : C}
10701
10918
  </div>`;
10702
10919
  }
10703
10920
  renderMfaCard() {
@@ -10705,7 +10922,7 @@ let z = class extends qe {
10705
10922
  return this.card(
10706
10923
  this.t("twoFactor"),
10707
10924
  this.t("twoFactorDescription"),
10708
- b`<div class="kv">
10925
+ w`<div class="kv">
10709
10926
  <div class="toggle-row">
10710
10927
  <div class="row-main">
10711
10928
  <span class="row-title">${this.t("twoFactor")}</span>
@@ -10720,11 +10937,11 @@ let z = class extends qe {
10720
10937
  aria-label=${this.t("twoFactor")}
10721
10938
  ></button>
10722
10939
  </div>
10723
- ${t.mfa && !(this.factors?.totp || t.emailVerification || t.phoneVerification) ? b`<div class="alert alert-warning" role="status">
10724
- ${_.alert}
10940
+ ${t.mfa && !(this.factors?.totp || t.emailVerification || t.phoneVerification) ? w`<div class="alert alert-warning" role="status">
10941
+ ${q.alert}
10725
10942
  <div class="alert-body">
10726
10943
  ${this.t("mfaNoFactorWarning")}
10727
- ${this.factors?.totp ? M : b`<div class="links">
10944
+ ${this.factors?.totp ? C : w`<div class="links">
10728
10945
  <button
10729
10946
  type="button"
10730
10947
  class="btn btn-link"
@@ -10735,17 +10952,17 @@ let z = class extends qe {
10735
10952
  </button>
10736
10953
  </div>`}
10737
10954
  </div>
10738
- </div>` : M}
10955
+ </div>` : C}
10739
10956
  ${this.error("mfa")}
10740
10957
  <div class="separator"></div>
10741
10958
  <div class="toggle-row">
10742
10959
  <div class="row-main">
10743
10960
  <span class="row-title"
10744
- >${_.smartphone} ${this.t("authenticatorApp")}
10745
- ${e ? this.verifiedBadge(!0) : M}</span
10961
+ >${q.smartphone} ${this.t("authenticatorApp")}
10962
+ ${e ? this.verifiedBadge(!0) : C}</span
10746
10963
  >
10747
10964
  </div>
10748
- ${e ? this.confirmRemoveAuthenticator ? b`<div class="inline">
10965
+ ${e ? this.confirmRemoveAuthenticator ? w`<div class="inline">
10749
10966
  <button
10750
10967
  class="btn btn-outline btn-sm warn"
10751
10968
  @click=${this.onRemoveAuthenticator}
@@ -10759,13 +10976,13 @@ let z = class extends qe {
10759
10976
  >
10760
10977
  ${this.t("cancel")}
10761
10978
  </button>
10762
- </div>` : b`<button
10979
+ </div>` : w`<button
10763
10980
  class="btn btn-outline btn-sm"
10764
10981
  @click=${this.onRemoveAuthenticator}
10765
10982
  ?disabled=${!!this.busy}
10766
10983
  >
10767
10984
  ${this.spinner("remove-authenticator")} ${this.t("remove")}
10768
- </button>` : this.authenticator ? M : b`<button
10985
+ </button>` : this.authenticator ? C : w`<button
10769
10986
  class="btn btn-outline btn-sm"
10770
10987
  @click=${this.onAddAuthenticator}
10771
10988
  ?disabled=${!!this.busy}
@@ -10774,7 +10991,7 @@ let z = class extends qe {
10774
10991
  </button>`}
10775
10992
  </div>
10776
10993
  ${this.error("authenticator")} ${this.error("remove-authenticator")}
10777
- ${this.authenticator ? b`<form class="form" @submit=${this.onVerifyAuthenticator} novalidate>
10994
+ ${this.authenticator ? w`<form class="form" @submit=${this.onVerifyAuthenticator} novalidate>
10778
10995
  <p class="hint">${this.t("authenticatorScan")}</p>
10779
10996
  <img class="qr" src=${n} alt=${this.t("qrCodeAlt")} />
10780
10997
  <p class="hint center">${this.t("authenticatorManual")}</p>
@@ -10789,7 +11006,7 @@ let z = class extends qe {
10789
11006
  this.onCopySecret();
10790
11007
  }}
10791
11008
  >
10792
- ${this.copied ? _.check : _.copy}
11009
+ ${this.copied ? q.check : q.copy}
10793
11010
  ${this.copied ? this.t("copied") : this.t("authenticatorCopyKey")}
10794
11011
  </button>
10795
11012
  </div>
@@ -10820,7 +11037,7 @@ let z = class extends qe {
10820
11037
  ${this.t("cancel")}
10821
11038
  </button>
10822
11039
  </div>
10823
- </form>` : M}
11040
+ </form>` : C}
10824
11041
  </div>`
10825
11042
  );
10826
11043
  }
@@ -10829,38 +11046,38 @@ let z = class extends qe {
10829
11046
  return this.card(
10830
11047
  this.t("recoveryCodes"),
10831
11048
  this.t("recoveryCodesDescription") + " " + this.t("recoveryCodesOnceHint"),
10832
- b`<div class="kv">
10833
- ${this.recoveryCodes ? b`<div class="alert alert-warning">
10834
- ${_.alert}
11049
+ w`<div class="kv">
11050
+ ${this.recoveryCodes ? w`<div class="alert alert-warning">
11051
+ ${q.alert}
10835
11052
  <div class="alert-body">${this.t("recoveryCodesWarning")}</div>
10836
11053
  </div>
10837
11054
  <div class="codes">
10838
- ${this.recoveryCodes.map((e) => b`<span class="code">${e}</span>`)}
11055
+ ${this.recoveryCodes.map((e) => w`<span class="code">${e}</span>`)}
10839
11056
  </div>
10840
11057
  <div class="inline">
10841
11058
  <button class="btn btn-outline btn-sm" @click=${this.onCopyCodes}>
10842
- ${this.copied ? _.check : _.copy}
11059
+ ${this.copied ? q.check : q.copy}
10843
11060
  ${this.copied ? this.t("copied") : this.t("copy")}
10844
11061
  </button>
10845
11062
  <button class="btn btn-ghost btn-sm" @click=${() => this.recoveryCodes = null}>
10846
11063
  ${this.t("done")}
10847
11064
  </button>
10848
- </div>` : b`<div class="inline">
11065
+ </div>` : w`<div class="inline">
10849
11066
  <button
10850
11067
  class="btn btn-outline btn-sm"
10851
11068
  @click=${this.onRecoveryCodes}
10852
11069
  ?disabled=${!!this.busy}
10853
11070
  >
10854
- ${this.spinner("recovery")} ${_.key}
11071
+ ${this.spinner("recovery")} ${q.key}
10855
11072
  ${t ? this.t("viewRecoveryCodes") : this.t("generateRecoveryCodes")}
10856
11073
  </button>
10857
- ${t ? this.confirmRegenerate ? b`<div class="inline">
11074
+ ${t ? this.confirmRegenerate ? w`<div class="inline">
10858
11075
  <button
10859
11076
  class="btn btn-outline btn-sm warn"
10860
11077
  @click=${this.onRegenerateRecoveryCodes}
10861
11078
  ?disabled=${!!this.busy}
10862
11079
  >
10863
- ${_.refresh} ${this.t("regenerateRecoveryCodes")}
11080
+ ${q.refresh} ${this.t("regenerateRecoveryCodes")}
10864
11081
  </button>
10865
11082
  <button
10866
11083
  class="btn btn-ghost btn-sm"
@@ -10868,13 +11085,13 @@ let z = class extends qe {
10868
11085
  >
10869
11086
  ${this.t("cancel")}
10870
11087
  </button>
10871
- </div>` : b`<button
11088
+ </div>` : w`<button
10872
11089
  class="btn btn-ghost btn-sm"
10873
11090
  @click=${this.onRegenerateRecoveryCodes}
10874
11091
  ?disabled=${!!this.busy}
10875
11092
  >
10876
- ${_.refresh} ${this.t("regenerateRecoveryCodes")}
10877
- </button>` : M}
11093
+ ${q.refresh} ${this.t("regenerateRecoveryCodes")}
11094
+ </button>` : C}
10878
11095
  </div>`}
10879
11096
  ${this.error("recovery")}
10880
11097
  </div>`
@@ -10885,25 +11102,25 @@ let z = class extends qe {
10885
11102
  const t = this.stepUp, e = this.factors, n = [
10886
11103
  {
10887
11104
  factor: "totp",
10888
- icon: _.smartphone,
11105
+ icon: q.smartphone,
10889
11106
  label: this.t("mfaUseAuthenticator"),
10890
11107
  available: e?.totp ?? !0
10891
11108
  },
10892
11109
  {
10893
11110
  factor: "email",
10894
- icon: _.mail,
11111
+ icon: q.mail,
10895
11112
  label: this.t("mfaUseEmail"),
10896
11113
  available: e?.email ?? !0
10897
11114
  },
10898
11115
  {
10899
11116
  factor: "phone",
10900
- icon: _.phone,
11117
+ icon: q.phone,
10901
11118
  label: this.t("mfaUsePhone"),
10902
11119
  available: e?.phone ?? !0
10903
11120
  },
10904
11121
  {
10905
11122
  factor: "recoverycode",
10906
- icon: _.key,
11123
+ icon: q.key,
10907
11124
  label: this.t("mfaUseRecoveryCode"),
10908
11125
  available: e?.recoveryCode ?? !0
10909
11126
  }
@@ -10911,8 +11128,8 @@ let z = class extends qe {
10911
11128
  return this.card(
10912
11129
  this.t("mfaTitle"),
10913
11130
  this.t("errorChallengeRequired"),
10914
- b`<div class="kv">
10915
- ${t.challenge ? b`<form class="form" @submit=${this.onStepUpVerify} novalidate>
11131
+ w`<div class="kv">
11132
+ ${t.challenge ? w`<form class="form" @submit=${this.onStepUpVerify} novalidate>
10916
11133
  <div class="field">
10917
11134
  <label class="label" for="acc-stepup"
10918
11135
  >${t.challenge.factor === "recoverycode" ? this.t("recoveryCode") : this.t("code")}</label
@@ -10932,9 +11149,9 @@ let z = class extends qe {
10932
11149
  <button class="btn btn-primary btn-sm" type="submit" ?disabled=${!!this.busy}>
10933
11150
  ${this.spinner("stepup-code")} ${this.t("verifyCode")}
10934
11151
  </button>
10935
- </form>` : b`<div class="stack-sm">
11152
+ </form>` : w`<div class="stack-sm">
10936
11153
  ${n.filter((i) => i.available).map(
10937
- (i) => b`<button
11154
+ (i) => w`<button
10938
11155
  type="button"
10939
11156
  class="choice"
10940
11157
  @click=${() => this.onStepUpFactor(i.factor)}
@@ -10946,7 +11163,7 @@ let z = class extends qe {
10946
11163
  </div>`}
10947
11164
  ${this.error("stepup")} ${this.error("stepup-code")}
10948
11165
  </div>`,
10949
- b`<button class="btn btn-ghost btn-sm" @click=${() => this.stepUp = null}>
11166
+ w`<button class="btn btn-ghost btn-sm" @click=${() => this.stepUp = null}>
10950
11167
  ${this.t("cancel")}
10951
11168
  </button>`
10952
11169
  );
@@ -10954,24 +11171,28 @@ let z = class extends qe {
10954
11171
  // ── Sessions ──
10955
11172
  deviceIcon(t) {
10956
11173
  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;
11174
+ 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
11175
  }
10959
11176
  renderSessions() {
10960
11177
  const t = this.sessions;
10961
- return b`<div class="section">
11178
+ return w`<div class="section">
10962
11179
  ${this.card(
10963
11180
  this.t("sessions"),
10964
11181
  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">
11182
+ w`${this.error("sessions")}
11183
+ ${t === null ? w`<div class="empty"><span class="spinner"></span></div>` : t.length === 0 ? this.emptyState(
11184
+ q.monitor,
11185
+ this.t("noSessions"),
11186
+ this.t("noSessionsDescription")
11187
+ ) : t.map(
11188
+ (e) => w`<div class="row">
10968
11189
  <div class="inline">
10969
11190
  <span class="device">${this.deviceIcon(e)}</span>
10970
11191
  <div class="row-main">
10971
11192
  <span class="row-title">
10972
11193
  ${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}
11194
+ ${e.clientVersion ? w`<span class="muted small">${e.clientVersion}</span>` : C}
11195
+ ${e.current ? w`<span class="badge badge-info">${this.t("currentSession")}</span>` : C}
10975
11196
  </span>
10976
11197
  <span class="row-sub"
10977
11198
  >${[e.osName, e.countryName || e.countryCode, e.ip].filter(Boolean).join(" · ")}</span
@@ -10979,14 +11200,14 @@ let z = class extends qe {
10979
11200
  </div>
10980
11201
  </div>
10981
11202
  <div class="row-actions">
10982
- ${this.busy === `session-${e.$id}` ? b`<span class="spinner"></span>` : M}
11203
+ ${this.busy === `session-${e.$id}` ? w`<span class="spinner"></span>` : C}
10983
11204
  <button
10984
11205
  class="btn btn-ghost btn-sm"
10985
11206
  @click=${() => this.onDeleteSession(e.$id)}
10986
11207
  ?disabled=${!!this.busy}
10987
11208
  aria-label=${this.t("signOutSession")}
10988
11209
  >
10989
- ${_.logOut}
11210
+ ${q.logOut}
10990
11211
  </button>
10991
11212
  </div>
10992
11213
  </div>`
@@ -10995,29 +11216,24 @@ let z = class extends qe {
10995
11216
  ${this.card(
10996
11217
  this.t("signOutAllSessions"),
10997
11218
  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
11219
+ this.confirmSignOutAll ? this.error("sessions-all") : w`${this.error("sessions-all")}
11220
+ <button
11014
11221
  class="btn btn-outline btn-sm warn"
11015
11222
  @click=${this.onSignOutAll}
11016
11223
  ?disabled=${!!this.busy}
11017
11224
  >
11018
- ${this.spinner("sessions-all")} ${_.logOut} ${this.t("signOutAllSessions")}
11019
- </button>`}`,
11020
- void 0,
11225
+ ${this.spinner("sessions-all")} ${q.logOut} ${this.t("signOutAllSessions")}
11226
+ </button>`,
11227
+ this.confirmSignOutAll ? this.confirmFooter(
11228
+ () => {
11229
+ this.confirmSignOutAll = !1;
11230
+ },
11231
+ () => {
11232
+ this.onSignOutAll();
11233
+ },
11234
+ this.t("signOutAllSessions"),
11235
+ "sessions-all"
11236
+ ) : void 0,
11021
11237
  !0
11022
11238
  )}
11023
11239
  </div>`;
@@ -11025,57 +11241,65 @@ let z = class extends qe {
11025
11241
  // ── Connections ──
11026
11242
  renderConnections() {
11027
11243
  const t = this.identities, e = this.config?.methods?.oauth ?? [];
11028
- return b`<div class="section">
11244
+ return w`<div class="section">
11029
11245
  ${this.card(
11030
11246
  this.t("connections"),
11031
11247
  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">
11248
+ w`${this.error("identities")}
11249
+ ${t === null ? w`<div class="empty"><span class="spinner"></span></div>` : t.length === 0 ? this.emptyState(
11250
+ q.link,
11251
+ this.t("noConnections"),
11252
+ this.t("noConnectionsDescription")
11253
+ ) : t.map(
11254
+ (n) => w`<div class="row">
11035
11255
  <div class="inline">
11036
- <span class="device">${ui(n.provider)}</span>
11256
+ <span class="device">${Mt(n.provider)}</span>
11037
11257
  <div class="row-main">
11038
- <span class="row-title">${pt(n.provider)}</span>
11258
+ <span class="row-title">${xt(n.provider)}</span>
11039
11259
  <span class="row-sub">${n.providerEmail || n.providerUid}</span>
11040
11260
  </div>
11041
11261
  </div>
11042
11262
  <div class="row-actions">
11043
- ${this.confirmDisconnectId === n.$id ? b`<div class="inline">
11263
+ ${this.confirmDisconnectId === n.$id ? w`<div class="inline">
11044
11264
  <button
11045
- class="btn btn-outline btn-sm warn"
11046
- @click=${() => this.onDeleteIdentity(n.$id)}
11265
+ type="button"
11266
+ class="btn btn-outline btn-sm"
11267
+ autofocus
11047
11268
  ?disabled=${!!this.busy}
11269
+ @click=${() => this.confirmDisconnectId = null}
11048
11270
  >
11049
- ${this.busy === `identity-${n.$id}` ? b`<span class="spinner"></span>` : M}
11050
- ${this.t("disconnect")}
11271
+ ${this.t("cancel")}
11051
11272
  </button>
11052
11273
  <button
11053
- class="btn btn-ghost btn-sm"
11054
- @click=${() => this.confirmDisconnectId = null}
11274
+ type="button"
11275
+ class="btn btn-destructive btn-sm"
11276
+ @click=${() => this.onDeleteIdentity(n.$id)}
11277
+ ?disabled=${!!this.busy}
11055
11278
  >
11056
- ${this.t("cancel")}
11279
+ ${this.busy === `identity-${n.$id}` ? w`<span class="spinner"></span>` : C}
11280
+ ${this.t("disconnect")}
11057
11281
  </button>
11058
- </div>` : b`<button
11282
+ </div>` : w`<button
11059
11283
  class="btn btn-ghost btn-sm"
11060
11284
  @click=${() => this.onDeleteIdentity(n.$id)}
11061
11285
  ?disabled=${!!this.busy}
11062
11286
  >
11063
- ${this.busy === `identity-${n.$id}` ? b`<span class="spinner"></span>` : M}
11287
+ ${this.busy === `identity-${n.$id}` ? w`<span class="spinner"></span>` : C}
11064
11288
  ${this.t("disconnect")}
11065
11289
  </button>`}
11066
11290
  </div>
11067
11291
  </div>`
11068
11292
  )}`,
11069
- e.length > 0 ? b`${e.filter((n) => !(t ?? []).some((i) => i.provider === n)).map(
11070
- (n) => b`<button
11293
+ e.length > 0 ? w`${e.filter((n) => !(t ?? []).some((i) => i.provider === n)).map(
11294
+ (n) => w`<button
11071
11295
  class="btn btn-outline btn-sm"
11072
11296
  @click=${() => {
11073
11297
  this.run(`connect-${n}`, () => R.signInWithOAuth(n));
11074
11298
  }}
11075
11299
  ?disabled=${!!this.busy}
11076
11300
  >
11077
- ${this.spinner(`connect-${n}`)} ${ui(n)}
11078
- ${this.t("connectProvider", { provider: pt(n) })}
11301
+ ${this.spinner(`connect-${n}`)} ${Mt(n)}
11302
+ ${this.t("connectProvider", { provider: xt(n) })}
11079
11303
  </button>`
11080
11304
  )}` : void 0
11081
11305
  )}
@@ -11084,12 +11308,16 @@ let z = class extends qe {
11084
11308
  // ── Activity ──
11085
11309
  renderActivity() {
11086
11310
  const t = this.logs;
11087
- return b`<div class="section">
11311
+ return w`<div class="section">
11088
11312
  ${this.card(
11089
11313
  this.t("activity"),
11090
11314
  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">
11315
+ w`${t === null ? w`<div class="empty"><span class="spinner"></span></div>` : t.length === 0 ? this.emptyState(
11316
+ q.activity,
11317
+ this.t("noActivity"),
11318
+ this.t("noActivityDescription")
11319
+ ) : t.map(
11320
+ (e) => w`<div class="row">
11093
11321
  <div class="row-main">
11094
11322
  <span class="row-title">${e.event}</span>
11095
11323
  <span class="row-sub"
@@ -11306,10 +11534,10 @@ O([
11306
11534
  z = O([
11307
11535
  ze("authui-account")
11308
11536
  ], z);
11309
- var _o = Object.defineProperty, Lo = Object.getOwnPropertyDescriptor, Ge = (t, e, n, i) => {
11310
- for (var o = i > 1 ? void 0 : i ? Lo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
11537
+ var Lo = Object.defineProperty, No = Object.getOwnPropertyDescriptor, Ge = (t, e, n, i) => {
11538
+ for (var o = i > 1 ? void 0 : i ? No(e, n) : e, a = t.length - 1, s; a >= 0; a--)
11311
11539
  (s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
11312
- return i && o && _o(e, n, o), o;
11540
+ return i && o && Lo(e, n, o), o;
11313
11541
  };
11314
11542
  let Re = class extends qe {
11315
11543
  constructor() {
@@ -11373,7 +11601,7 @@ let Re = class extends qe {
11373
11601
  }
11374
11602
  render() {
11375
11603
  const t = this.auth.status === "signed-in", e = this.view === "account" && t;
11376
- return b`
11604
+ return w`
11377
11605
  <dialog
11378
11606
  class=${e ? "wide" : ""}
11379
11607
  aria-label=${e ? this.t("dialogAccount") : this.t("dialogSignIn")}
@@ -11392,14 +11620,14 @@ let Re = class extends qe {
11392
11620
  @click=${this.hide}
11393
11621
  aria-label=${this.t("close")}
11394
11622
  >
11395
- ${_.x}
11623
+ ${q.x}
11396
11624
  </button>
11397
11625
  </div>
11398
11626
  <div class="body" @scroll=${this.syncScrollCue}>
11399
- ${this.open ? e ? b`<authui-account embedded></authui-account>` : b`<authui-sign-in
11627
+ ${this.open ? e ? w`<authui-account embedded></authui-account>` : w`<authui-sign-in
11400
11628
  embedded
11401
11629
  .view=${this.view === "account" ? "sign-in" : this.view}
11402
- ></authui-sign-in>` : M}
11630
+ ></authui-sign-in>` : C}
11403
11631
  </div>
11404
11632
  <div class="scroll-fade ${this.scrollCue ? "show" : ""}" aria-hidden="true"></div>
11405
11633
  </div>
@@ -11504,7 +11732,20 @@ Ge([
11504
11732
  ee({ type: String })
11505
11733
  ], Re.prototype, "view", 2);
11506
11734
  Ge([
11507
- ee({ type: Boolean, attribute: "close-on-success" })
11735
+ ee({
11736
+ attribute: "close-on-success",
11737
+ reflect: !0,
11738
+ converter: {
11739
+ fromAttribute(t) {
11740
+ if (t === null) return !0;
11741
+ const e = t.trim().toLowerCase();
11742
+ return !(e === "false" || e === "0" || e === "off" || e === "no");
11743
+ },
11744
+ toAttribute(t) {
11745
+ return t ? null : "false";
11746
+ }
11747
+ }
11748
+ })
11508
11749
  ], Re.prototype, "closeOnSuccess", 2);
11509
11750
  Ge([
11510
11751
  V()
@@ -11513,18 +11754,18 @@ Ge([
11513
11754
  V()
11514
11755
  ], Re.prototype, "scrollCue", 2);
11515
11756
  Ge([
11516
- bi("dialog")
11757
+ wi("dialog")
11517
11758
  ], Re.prototype, "dialog", 2);
11518
11759
  Ge([
11519
- bi(".body")
11760
+ wi(".body")
11520
11761
  ], Re.prototype, "bodyEl", 2);
11521
11762
  Re = Ge([
11522
11763
  ze("authui-modal")
11523
11764
  ], Re);
11524
- var No = Object.defineProperty, Ho = Object.getOwnPropertyDescriptor, _t = (t, e, n, i) => {
11525
- for (var o = i > 1 ? void 0 : i ? Ho(e, n) : e, a = t.length - 1, s; a >= 0; a--)
11765
+ var Ho = Object.defineProperty, Do = Object.getOwnPropertyDescriptor, Lt = (t, e, n, i) => {
11766
+ for (var o = i > 1 ? void 0 : i ? Do(e, n) : e, a = t.length - 1, s; a >= 0; a--)
11526
11767
  (s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
11527
- return i && o && No(e, n, o), o;
11768
+ return i && o && Ho(e, n, o), o;
11528
11769
  };
11529
11770
  let ot = class extends qe {
11530
11771
  constructor() {
@@ -11532,9 +11773,9 @@ let ot = class extends qe {
11532
11773
  }
11533
11774
  render() {
11534
11775
  const t = this.size === "md" ? "" : `btn-${this.size}`;
11535
- return b`<button
11776
+ return w`<button
11536
11777
  class="btn btn-${this.variant} ${t}"
11537
- @click=${() => wt(this.view)}
11778
+ @click=${() => mt(this.view)}
11538
11779
  part="button"
11539
11780
  >
11540
11781
  <slot
@@ -11554,22 +11795,22 @@ ot.styles = [
11554
11795
  }
11555
11796
  `
11556
11797
  ];
11557
- _t([
11798
+ Lt([
11558
11799
  ee({ type: String })
11559
11800
  ], ot.prototype, "view", 2);
11560
- _t([
11801
+ Lt([
11561
11802
  ee({ type: String })
11562
11803
  ], ot.prototype, "variant", 2);
11563
- _t([
11804
+ Lt([
11564
11805
  ee({ type: String })
11565
11806
  ], ot.prototype, "size", 2);
11566
- ot = _t([
11807
+ ot = Lt([
11567
11808
  ze("authui-button")
11568
11809
  ], ot);
11569
- var Do = Object.defineProperty, Bo = Object.getOwnPropertyDescriptor, Ke = (t, e, n, i) => {
11570
- for (var o = i > 1 ? void 0 : i ? Bo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
11810
+ var Bo = Object.defineProperty, Xo = Object.getOwnPropertyDescriptor, Ke = (t, e, n, i) => {
11811
+ for (var o = i > 1 ? void 0 : i ? Xo(e, n) : e, a = t.length - 1, s; a >= 0; a--)
11571
11812
  (s = t[a]) && (o = (i ? s(e, n, o) : s(o)) || o);
11572
- return i && o && Do(e, n, o), o;
11813
+ return i && o && Bo(e, n, o), o;
11573
11814
  };
11574
11815
  let Ee = class extends qe {
11575
11816
  constructor() {
@@ -11644,13 +11885,13 @@ let Ee = class extends qe {
11644
11885
  render() {
11645
11886
  const { status: t, user: e, configured: n } = this.auth;
11646
11887
  if (t === "loading" && n)
11647
- return b`<span class="avatar"><span class="spinner"></span></span>`;
11888
+ return w`<span class="avatar"><span class="spinner"></span></span>`;
11648
11889
  if (t !== "signed-in" || !e)
11649
- return b`<button class="btn btn-primary btn-sm" @click=${() => wt("sign-in")}>
11890
+ return w`<button class="btn btn-primary btn-sm" @click=${() => mt("sign-in")}>
11650
11891
  <slot>${this.t("signIn")}</slot>
11651
11892
  </button>`;
11652
11893
  const i = e.name || e.email || e.phone || this.t("guestAccount");
11653
- return b`
11894
+ return w`
11654
11895
  <button
11655
11896
  class="trigger"
11656
11897
  aria-haspopup="menu"
@@ -11659,39 +11900,39 @@ let Ee = class extends qe {
11659
11900
  aria-label=${i}
11660
11901
  >
11661
11902
  <span class="avatar"
11662
- >${this.src ? b`<img src=${this.src} alt="" />` : Ai(i)}</span
11903
+ >${this.src ? w`<img src=${this.src} alt="" />` : Ai(i)}</span
11663
11904
  >
11664
11905
  </button>
11665
- ${this.menuOpen ? b`<div class="menu ${this.menuAbove ? "above" : ""}" role="menu">
11906
+ ${this.menuOpen ? w`<div class="menu ${this.menuAbove ? "above" : ""}" role="menu">
11666
11907
  <div class="menu-header">
11667
11908
  <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}
11909
+ ${e.email && e.name ? w`<span class="row-sub" title=${e.email}>${e.email}</span>` : C}
11669
11910
  </div>
11670
- ${this.showTeams ? b`<div class="menu-section">
11911
+ ${this.showTeams ? w`<div class="menu-section">
11671
11912
  <div class="menu-section-label">${this.t("teamsLabel")}</div>
11672
- ${this.teamsLoading ? b`<div class="menu-item" aria-busy="true">
11913
+ ${this.teamsLoading ? w`<div class="menu-item" aria-busy="true">
11673
11914
  <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
11915
+ </div>` : this.teams.length === 0 ? w`<div class="menu-item" role="note">${this.t("noTeams")}</div>` : this.teams.map(
11916
+ (o) => w`<button
11676
11917
  class="menu-item ${o.$id === this.activeTeamId ? "active" : ""}"
11677
11918
  role="menuitemradio"
11678
11919
  aria-checked=${o.$id === this.activeTeamId ? "true" : "false"}
11679
11920
  @click=${() => this.selectTeam(o)}
11680
11921
  >
11681
- ${_.users}
11922
+ ${q.users}
11682
11923
  <span title=${o.name}>${o.name}</span>
11683
- ${o.$id === this.activeTeamId ? b`<span class="check">${_.check}</span>` : M}
11924
+ ${o.$id === this.activeTeamId ? w`<span class="check">${q.check}</span>` : C}
11684
11925
  </button>`
11685
11926
  )}
11686
- </div>` : M}
11927
+ </div>` : C}
11687
11928
  <button
11688
11929
  class="menu-item"
11689
11930
  role="menuitem"
11690
11931
  @click=${() => {
11691
- this.menuOpen = !1, wt("account");
11932
+ this.menuOpen = !1, mt("account");
11692
11933
  }}
11693
11934
  >
11694
- ${_.settings} ${this.t("manageAccount")}
11935
+ ${q.settings} ${this.t("manageAccount")}
11695
11936
  </button>
11696
11937
  <button
11697
11938
  class="menu-item"
@@ -11700,9 +11941,9 @@ let Ee = class extends qe {
11700
11941
  this.menuOpen = !1, R.signOut();
11701
11942
  }}
11702
11943
  >
11703
- ${_.logOut} ${this.t("signOut")}
11944
+ ${q.logOut} ${this.t("signOut")}
11704
11945
  </button>
11705
- </div>` : M}
11946
+ </div>` : C}
11706
11947
  `;
11707
11948
  }
11708
11949
  };
@@ -11848,90 +12089,90 @@ Ke([
11848
12089
  Ee = Ke([
11849
12090
  ze("authui-user-button")
11850
12091
  ], Ee);
11851
- function Xo(t) {
11852
- return R.configure(t), zo;
11853
- }
11854
12092
  function Vo(t) {
11855
- wt(t);
12093
+ return R.configure(t), Oo;
11856
12094
  }
11857
- function Wo() {
11858
- Uo();
12095
+ function Wo(t) {
12096
+ mt(t);
11859
12097
  }
11860
12098
  function Go() {
11861
- return R.signOut();
12099
+ Mo();
11862
12100
  }
11863
12101
  function Ko() {
11864
- return R.user;
12102
+ return R.signOut();
11865
12103
  }
11866
12104
  function Yo() {
11867
- return R.getState();
12105
+ return R.user;
11868
12106
  }
11869
12107
  function Jo() {
11870
- return R.getClient();
12108
+ return R.getState();
11871
12109
  }
11872
12110
  function Zo() {
11873
- return R.getAccount();
12111
+ return R.getClient();
11874
12112
  }
11875
12113
  function Qo() {
12114
+ return R.getAccount();
12115
+ }
12116
+ function To() {
11876
12117
  return R.previewSignIn();
11877
12118
  }
11878
- function To(t, e) {
12119
+ function zo(t, e) {
11879
12120
  return R.on(t, e);
11880
12121
  }
11881
- const zo = {
11882
- init: Xo,
11883
- open: Vo,
11884
- close: Wo,
11885
- signOut: Go,
11886
- getUser: Ko,
11887
- getState: Yo,
11888
- getClient: Jo,
11889
- getAccount: Zo,
11890
- on: To,
11891
- previewSignIn: Qo,
12122
+ const Oo = {
12123
+ init: Vo,
12124
+ open: Wo,
12125
+ close: Go,
12126
+ signOut: Ko,
12127
+ getUser: Yo,
12128
+ getState: Jo,
12129
+ getClient: Zo,
12130
+ getAccount: Qo,
12131
+ on: zo,
12132
+ previewSignIn: To,
11892
12133
  store: R
11893
12134
  };
11894
12135
  export {
11895
12136
  yo as AuthStore,
11896
- zo as AuthUI,
12137
+ Oo as AuthUI,
11897
12138
  z as AuthUIAccount,
11898
12139
  ot as AuthUIButton,
11899
12140
  pe as AuthUIConfigElement,
11900
12141
  qe as AuthUIElement,
11901
12142
  Re as AuthUIModal,
11902
- mt as AuthUIShow,
11903
- ve as AuthUISignIn,
12143
+ yt as AuthUIShow,
12144
+ we as AuthUISignIn,
11904
12145
  Ee as AuthUIUserButton,
11905
- ia as CRITICAL_FOUC_CSS,
12146
+ na as CRITICAL_FOUC_CSS,
11906
12147
  oe as ErrorTypes,
11907
12148
  Ji as FOUC_CSS,
11908
12149
  uo as PreviewAccount,
11909
- ea as appwrite,
12150
+ ta as appwrite,
11910
12151
  R as authStore,
11911
- ta as clearLastMethod,
12152
+ ia as clearLastMethod,
11912
12153
  Vi as clearPendingOAuth,
11913
- Wo as close,
11914
- Uo as closeModal,
12154
+ Go as close,
12155
+ Mo as closeModal,
11915
12156
  so as defaultStrings,
11916
- xt as describeError,
11917
- Zo as getAccount,
11918
- Jo as getClient,
12157
+ Ct as describeError,
12158
+ Qo as getAccount,
12159
+ Zo as getClient,
11919
12160
  Fe as getLastMethod,
11920
- Yo as getState,
12161
+ Jo as getState,
11921
12162
  Xi as getStoredActiveTeamId,
11922
- Ko as getUser,
11923
- Xo as init,
12163
+ Yo as getUser,
12164
+ Vo as init,
11924
12165
  ho as isConfigError,
11925
- To as on,
11926
- Vo as open,
11927
- wt as openModal,
11928
- Qo as previewSignIn,
11929
- pt as providerLabel,
12166
+ zo as on,
12167
+ Wo as open,
12168
+ mt as openModal,
12169
+ To as previewSignIn,
12170
+ xt as providerLabel,
11930
12171
  lt as rememberLastMethod,
11931
12172
  sn as rememberPendingOAuth,
11932
12173
  pi as scorePassword,
11933
12174
  fo as setStoredActiveTeamId,
11934
- Go as signOut,
12175
+ Ko as signOut,
11935
12176
  go as stashPendingOAuth,
11936
12177
  tt as toAuthUIError
11937
12178
  };