@canton-network/core-wallet-ui-components 1.11.0 → 1.12.1

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.
Files changed (37) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +3 -3
  3. package/dist/components/api-key-card.d.ts +1 -1
  4. package/dist/components/api-key-form.d.ts +1 -1
  5. package/dist/components/app-header.d.ts +1 -1
  6. package/dist/components/app-layout.d.ts +1 -1
  7. package/dist/components/auth-editor.d.ts +3 -3
  8. package/dist/components/back-link.d.ts +1 -1
  9. package/dist/components/copy-button.d.ts +1 -1
  10. package/dist/components/custom-toast.d.ts +1 -1
  11. package/dist/components/error-page.d.ts +1 -1
  12. package/dist/components/form-input.d.ts +1 -1
  13. package/dist/components/idp-card.d.ts +1 -1
  14. package/dist/components/idp-form.d.ts +1 -1
  15. package/dist/components/idps.d.ts +1 -1
  16. package/dist/components/loading-state.d.ts +1 -1
  17. package/dist/components/login-form.d.ts +1 -1
  18. package/dist/components/network-card.d.ts +1 -1
  19. package/dist/components/network-form.d.ts +1 -1
  20. package/dist/components/network-table.d.ts +1 -1
  21. package/dist/components/network-table.d.ts.map +1 -1
  22. package/dist/components/networks.d.ts +1 -1
  23. package/dist/components/not-found.d.ts +1 -1
  24. package/dist/components/pagination.d.ts +1 -1
  25. package/dist/components/sessions.d.ts +1 -1
  26. package/dist/components/transaction-detail.d.ts +1 -1
  27. package/dist/components/wallet-card.d.ts +1 -1
  28. package/dist/components/wallet-create-form.d.ts +1 -1
  29. package/dist/components/wallets-sync.d.ts +1 -1
  30. package/dist/icons/index.d.ts +14 -14
  31. package/dist/icons/index.d.ts.map +1 -1
  32. package/dist/index.cjs +62 -62
  33. package/dist/index.cjs.map +1 -1
  34. package/dist/index.js +214 -210
  35. package/dist/index.js.map +1 -1
  36. package/dist/windows/popup.d.ts.map +1 -1
  37. package/package.json +17 -17
package/dist/index.js CHANGED
@@ -64,7 +64,7 @@ const { is: bi, defineProperty: mi, getOwnPropertyDescriptor: gi, getOwnProperty
64
64
  return r;
65
65
  } }, Nr = (t, e) => !bi(t, e), ro = { attribute: !0, type: String, converter: Qe, reflect: !1, useDefault: !1, hasChanged: Nr };
66
66
  Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), br.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
67
- class Ut extends HTMLElement {
67
+ class Yt extends HTMLElement {
68
68
  static addInitializer(e) {
69
69
  this._$Ei(), (this.l ??= []).push(e);
70
70
  }
@@ -245,7 +245,7 @@ class Ut extends HTMLElement {
245
245
  firstUpdated(e) {
246
246
  }
247
247
  }
248
- Ut.elementStyles = [], Ut.shadowRootOptions = { mode: "open" }, Ut[Wt("elementProperties")] = /* @__PURE__ */ new Map(), Ut[Wt("finalized")] = /* @__PURE__ */ new Map(), wi?.({ ReactiveElement: Ut }), (br.reactiveElementVersions ??= []).push("2.1.2");
248
+ Yt.elementStyles = [], Yt.shadowRootOptions = { mode: "open" }, Yt[Wt("elementProperties")] = /* @__PURE__ */ new Map(), Yt[Wt("finalized")] = /* @__PURE__ */ new Map(), wi?.({ ReactiveElement: Yt }), (br.reactiveElementVersions ??= []).push("2.1.2");
249
249
  const xi = { attribute: !0, type: String, converter: Qe, reflect: !1, hasChanged: Nr }, yi = (t = xi, e, r) => {
250
250
  const { kind: o, metadata: a } = r;
251
251
  let n = globalThis.litPropertyMetadata.get(a);
@@ -352,7 +352,7 @@ Fr.styles = [
352
352
  }
353
353
  `
354
354
  ];
355
- let h = Fr;
355
+ let v = Fr;
356
356
  const Rt = y`
357
357
  .wg-card {
358
358
  background: var(--wg-surface);
@@ -407,7 +407,7 @@ class Ei extends Event {
407
407
  super("revoke", { bubbles: !0, composed: !0 }), this.apiKey = e;
408
408
  }
409
409
  }
410
- let tr = class extends h {
410
+ let tr = class extends v {
411
411
  constructor() {
412
412
  super(...arguments), this.apiKey = null;
413
413
  }
@@ -444,7 +444,7 @@ let tr = class extends h {
444
444
  }
445
445
  };
446
446
  tr.styles = [
447
- h.styles,
447
+ v.styles,
448
448
  Rt,
449
449
  y`
450
450
  :host {
@@ -563,7 +563,7 @@ class Di extends Event {
563
563
  super("api-key-generate", { bubbles: !0, composed: !0 }), this.apiKeyParams = e;
564
564
  }
565
565
  }
566
- let Jt = class extends h {
566
+ let Jt = class extends v {
567
567
  constructor() {
568
568
  super(...arguments), ji(this, ve, {
569
569
  name: ""
@@ -614,7 +614,7 @@ let Jt = class extends h {
614
614
  };
615
615
  ve = /* @__PURE__ */ new WeakMap();
616
616
  Jt.styles = [
617
- h.styles,
617
+ v.styles,
618
618
  y`
619
619
  :host {
620
620
  display: block;
@@ -953,7 +953,7 @@ c`
953
953
  />
954
954
  </svg>
955
955
  `;
956
- const Yo = c`
956
+ const Uo = c`
957
957
  <svg
958
958
  xmlns="http://www.w3.org/2000/svg"
959
959
  width="16"
@@ -996,19 +996,19 @@ const Yo = c`
996
996
  />
997
997
  </svg>
998
998
  `;
999
- var Li = Object.defineProperty, Yi = Object.getOwnPropertyDescriptor, Uo = (t) => {
999
+ var Li = Object.defineProperty, Ui = Object.getOwnPropertyDescriptor, Yo = (t) => {
1000
1000
  throw TypeError(t);
1001
1001
  }, at = (t, e, r, o) => {
1002
- for (var a = o > 1 ? void 0 : o ? Yi(e, r) : e, n = t.length - 1, i; n >= 0; n--)
1002
+ for (var a = o > 1 ? void 0 : o ? Ui(e, r) : e, n = t.length - 1, i; n >= 0; n--)
1003
1003
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
1004
1004
  return o && a && Li(e, r, a), a;
1005
- }, Go = (t, e, r) => e.has(t) || Uo("Cannot " + r), Gt = (t, e, r) => (Go(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Ht = (t, e, r) => e.has(t) ? Uo("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), Xt = (t, e, r, o) => (Go(t, e, "write to private field"), e.set(t, r), r), we, xe, ye, ke, ze;
1006
- class Ui extends Event {
1005
+ }, Go = (t, e, r) => e.has(t) || Yo("Cannot " + r), Gt = (t, e, r) => (Go(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Ht = (t, e, r) => e.has(t) ? Yo("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), Xt = (t, e, r, o) => (Go(t, e, "write to private field"), e.set(t, r), r), we, xe, ye, ke, ze;
1006
+ class Yi extends Event {
1007
1007
  constructor(e) {
1008
1008
  super("auth-change", { bubbles: !0, composed: !0 }), this.auth = e;
1009
1009
  }
1010
1010
  }
1011
- let U = class extends h {
1011
+ let Y = class extends v {
1012
1012
  constructor() {
1013
1013
  super(...arguments), Ht(this, we), Ht(this, xe, [
1014
1014
  "authorization_code",
@@ -1059,7 +1059,7 @@ let U = class extends h {
1059
1059
  return this.optional ? this._hasConfiguredAuth(this.auth) ? "view" : "none" : "edit";
1060
1060
  }
1061
1061
  _emit(t) {
1062
- this.dispatchEvent(new Ui(structuredClone(t)));
1062
+ this.dispatchEvent(new Yi(structuredClone(t)));
1063
1063
  }
1064
1064
  _defaultAuth(t) {
1065
1065
  return t === "authorization_code" ? {
@@ -1430,8 +1430,8 @@ xe = /* @__PURE__ */ new WeakMap();
1430
1430
  ye = /* @__PURE__ */ new WeakMap();
1431
1431
  ke = /* @__PURE__ */ new WeakMap();
1432
1432
  ze = /* @__PURE__ */ new WeakMap();
1433
- U.styles = [
1434
- h.styles,
1433
+ Y.styles = [
1434
+ v.styles,
1435
1435
  y`
1436
1436
  :host {
1437
1437
  display: block;
@@ -1558,31 +1558,31 @@ U.styles = [
1558
1558
  ];
1559
1559
  at([
1560
1560
  b({ type: Object })
1561
- ], U.prototype, "auth", 1);
1561
+ ], Y.prototype, "auth", 1);
1562
1562
  at([
1563
1563
  b({ type: Array })
1564
- ], U.prototype, "allowedMethods", 1);
1564
+ ], Y.prototype, "allowedMethods", 1);
1565
1565
  at([
1566
1566
  b({ type: Boolean })
1567
- ], U.prototype, "optional", 1);
1567
+ ], Y.prototype, "optional", 1);
1568
1568
  at([
1569
1569
  b({ type: String })
1570
- ], U.prototype, "emptyText", 1);
1570
+ ], Y.prototype, "emptyText", 1);
1571
1571
  at([
1572
1572
  b({ type: String })
1573
- ], U.prototype, "pendingRemoveText", 1);
1573
+ ], Y.prototype, "pendingRemoveText", 1);
1574
1574
  at([
1575
1575
  C()
1576
- ], U.prototype, "_mode", 2);
1576
+ ], Y.prototype, "_mode", 2);
1577
1577
  at([
1578
1578
  C()
1579
- ], U.prototype, "_backup", 2);
1579
+ ], Y.prototype, "_backup", 2);
1580
1580
  at([
1581
1581
  C()
1582
- ], U.prototype, "_secretReplacement", 2);
1583
- U = at([
1582
+ ], Y.prototype, "_secretReplacement", 2);
1583
+ Y = at([
1584
1584
  A("auth-editor")
1585
- ], U);
1585
+ ], Y);
1586
1586
  const Ho = [
1587
1587
  "/api-keys/add",
1588
1588
  "/api-keys",
@@ -1654,7 +1654,7 @@ class Ki extends Event {
1654
1654
  super("copy-dapp-api-url", { bubbles: !0, composed: !0 });
1655
1655
  }
1656
1656
  }
1657
- let J = class extends h {
1657
+ let J = class extends v {
1658
1658
  constructor() {
1659
1659
  super(...arguments), this.iconSrc = "images/icon.png", this.networkName = "No network connected", this.networkConnected = !1, this.dappApiUrl = "", this.menuOpen = !1, this.darkMode = localStorage.getItem("theme") === "dark", this.handleOutsideClick = (t) => {
1660
1660
  if (!this.menuOpen) return;
@@ -1781,7 +1781,7 @@ let J = class extends h {
1781
1781
  }
1782
1782
  };
1783
1783
  J.styles = [
1784
- h.styles,
1784
+ v.styles,
1785
1785
  y`
1786
1786
  :host {
1787
1787
  display: block;
@@ -1985,7 +1985,7 @@ var Wi = Object.defineProperty, Ji = Object.getOwnPropertyDescriptor, ht = (t, e
1985
1985
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
1986
1986
  return o && a && Wi(e, r, a), a;
1987
1987
  };
1988
- let Q = class extends h {
1988
+ let Q = class extends v {
1989
1989
  constructor() {
1990
1990
  super(...arguments), this.iconSrc = "/images/icon.png", this.networkName = "No network connected", this.networkConnected = !1, this.currentPage = "", this.dappApiUrl = "", this.customThemeCss = null;
1991
1991
  }
@@ -2029,7 +2029,7 @@ let Q = class extends h {
2029
2029
  }
2030
2030
  };
2031
2031
  Q.styles = [
2032
- h.styles,
2032
+ v.styles,
2033
2033
  y`
2034
2034
  :host {
2035
2035
  display: block;
@@ -2063,7 +2063,7 @@ var Qi = Object.defineProperty, tn = Object.getOwnPropertyDescriptor, Rr = (t, e
2063
2063
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
2064
2064
  return o && a && Qi(e, r, a), a;
2065
2065
  };
2066
- let Qt = class extends h {
2066
+ let Qt = class extends v {
2067
2067
  constructor() {
2068
2068
  super(...arguments), this.href = "", this.label = "Back";
2069
2069
  }
@@ -2090,7 +2090,7 @@ let Qt = class extends h {
2090
2090
  }
2091
2091
  };
2092
2092
  Qt.styles = [
2093
- h.styles,
2093
+ v.styles,
2094
2094
  y`
2095
2095
  :host {
2096
2096
  display: inline-flex;
@@ -2125,7 +2125,7 @@ var en = Object.defineProperty, rn = Object.getOwnPropertyDescriptor, Mt = (t, e
2125
2125
  return o && a && en(e, r, a), a;
2126
2126
  };
2127
2127
  const on = 5e3, Or = 250;
2128
- let tt = class extends h {
2128
+ let tt = class extends v {
2129
2129
  constructor() {
2130
2130
  super(...arguments), this.title = "", this.message = "", this.buttonText = "Dismiss notification", this.type = "error", this.closing = !1, this.closeToast = () => {
2131
2131
  this.closing || (this.dismissTimeout && (window.clearTimeout(this.dismissTimeout), this.dismissTimeout = void 0), this.closing = !0, this.removeTimeout = window.setTimeout(() => {
@@ -2168,7 +2168,7 @@ let tt = class extends h {
2168
2168
  }
2169
2169
  };
2170
2170
  tt.styles = [
2171
- h.styles,
2171
+ v.styles,
2172
2172
  y`
2173
2173
  :host {
2174
2174
  position: fixed;
@@ -2334,7 +2334,7 @@ class sn extends Event {
2334
2334
  super("copy-success", { bubbles: !0, composed: !0 }), this.value = e;
2335
2335
  }
2336
2336
  }
2337
- let Ct = class extends h {
2337
+ let Ct = class extends v {
2338
2338
  constructor() {
2339
2339
  super(...arguments), this.value = "", this.label = "Copy to clipboard", this.copied = !1;
2340
2340
  }
@@ -2367,7 +2367,7 @@ let Ct = class extends h {
2367
2367
  }
2368
2368
  };
2369
2369
  Ct.styles = [
2370
- h.styles,
2370
+ v.styles,
2371
2371
  y`
2372
2372
  :host {
2373
2373
  display: inline-flex;
@@ -2456,7 +2456,7 @@ class pn extends Event {
2456
2456
  super("error-refresh", { bubbles: !0, composed: !0 });
2457
2457
  }
2458
2458
  }
2459
- let st = class extends h {
2459
+ let st = class extends v {
2460
2460
  constructor() {
2461
2461
  super(...arguments), this.mode = "back", this.title = "Something went wrong", this.message = "An unexpected error occurred while loading this page.", this.backHref = "/", this.performDefaultAction = !0;
2462
2462
  }
@@ -2484,7 +2484,7 @@ let st = class extends h {
2484
2484
  class="action-btn"
2485
2485
  @click=${this.onBack}
2486
2486
  >
2487
- ${Yo} Back
2487
+ ${Uo} Back
2488
2488
  </button>`}
2489
2489
  </article>
2490
2490
  </section>
@@ -2492,7 +2492,7 @@ let st = class extends h {
2492
2492
  }
2493
2493
  };
2494
2494
  st.styles = [
2495
- h.styles,
2495
+ v.styles,
2496
2496
  y`
2497
2497
  :host {
2498
2498
  display: block;
@@ -2578,7 +2578,7 @@ var bn = Object.defineProperty, mn = Object.getOwnPropertyDescriptor, qo = (t, e
2578
2578
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
2579
2579
  return o && a && bn(e, r, a), a;
2580
2580
  };
2581
- let rr = class extends h {
2581
+ let rr = class extends v {
2582
2582
  constructor() {
2583
2583
  super(...arguments), this.text = "Loading";
2584
2584
  }
@@ -2596,7 +2596,7 @@ let rr = class extends h {
2596
2596
  }
2597
2597
  };
2598
2598
  rr.styles = [
2599
- h.styles,
2599
+ v.styles,
2600
2600
  y`
2601
2601
  :host {
2602
2602
  display: block;
@@ -2681,7 +2681,7 @@ class fn extends CustomEvent {
2681
2681
  return this.detail.page;
2682
2682
  }
2683
2683
  }
2684
- let Pt = class extends h {
2684
+ let Pt = class extends v {
2685
2685
  constructor() {
2686
2686
  super(...arguments), this.total = 0, this.pageSize = 5, this.page = 1;
2687
2687
  }
@@ -2711,7 +2711,7 @@ let Pt = class extends h {
2711
2711
  @click=${() => this.updatePage(this.page - 1)}
2712
2712
  aria-label="Previous page"
2713
2713
  >
2714
- ${Yo}
2714
+ ${Uo}
2715
2715
  </button>
2716
2716
  <span>${t}-${e} of ${this.total}</span>
2717
2717
  <button
@@ -2727,7 +2727,7 @@ let Pt = class extends h {
2727
2727
  }
2728
2728
  };
2729
2729
  Pt.styles = [
2730
- h.styles,
2730
+ v.styles,
2731
2731
  y`
2732
2732
  :host {
2733
2733
  display: inline-flex;
@@ -2788,7 +2788,7 @@ function Fo(t) {
2788
2788
  return Array.isArray(t) ? t.reduce((e, r) => e + Fo(r), "") : t instanceof li ? t.cssText : "";
2789
2789
  }
2790
2790
  const hn = Fo([
2791
- h.styles,
2791
+ v.styles,
2792
2792
  y`
2793
2793
  * {
2794
2794
  box-sizing: border-box;
@@ -3486,17 +3486,17 @@ const hn = Fo([
3486
3486
  }
3487
3487
  ), m = this.el("span", "", { class: "info-wrap" });
3488
3488
  m.append(l, d), s.append(m), i.appendChild(s);
3489
- const g = this.el("div", "", { class: "custom-url-row" }), v = this.el("input", "", {
3489
+ const g = this.el("div", "", { class: "custom-url-row" }), f = this.el("input", "", {
3490
3490
  class: "custom-url-input",
3491
3491
  type: "text",
3492
3492
  placeholder: "Wallet API URL"
3493
- }), f = this.el("button", "Connect", { class: "btn-add" }), x = () => {
3494
- const B = v.value;
3493
+ }), h = this.el("button", "Connect", { class: "btn-add" }), x = () => {
3494
+ const B = f.value;
3495
3495
  B.trim() && this.connectCustomUrl(B);
3496
3496
  };
3497
- return f.addEventListener("click", x), v.addEventListener("keydown", (B) => {
3497
+ return h.addEventListener("click", x), f.addEventListener("keydown", (B) => {
3498
3498
  B.key === "Enter" && x();
3499
- }), g.append(v, f), i.appendChild(g), e.appendChild(i), e;
3499
+ }), g.append(f, h), i.appendChild(g), e.appendChild(i), e;
3500
3500
  }
3501
3501
  renderConnecting() {
3502
3502
  const e = this.el("div", "", {
@@ -3632,7 +3632,7 @@ class xn extends Event {
3632
3632
  super("form-input-change", { bubbles: !0, composed: !0 }), this.value = e;
3633
3633
  }
3634
3634
  }
3635
- let F = class extends h {
3635
+ let F = class extends v {
3636
3636
  constructor() {
3637
3637
  super(...arguments), this.label = "", this.value = "", this.text = "", this.required = !1, this.hideable = !1, this.hidden = !0;
3638
3638
  }
@@ -3674,7 +3674,7 @@ let F = class extends h {
3674
3674
  }
3675
3675
  };
3676
3676
  F.styles = [
3677
- h.styles,
3677
+ v.styles,
3678
3678
  y`
3679
3679
  .field {
3680
3680
  margin-bottom: var(--wg-space-4);
@@ -3800,7 +3800,7 @@ class Pb extends Event {
3800
3800
  super("update", { bubbles: !0, composed: !0 });
3801
3801
  }
3802
3802
  }
3803
- let te = class extends h {
3803
+ let te = class extends v {
3804
3804
  constructor() {
3805
3805
  super(...arguments), this.idp = null, this.readonly = !1;
3806
3806
  }
@@ -3852,7 +3852,7 @@ let te = class extends h {
3852
3852
  }
3853
3853
  };
3854
3854
  te.styles = [
3855
- h.styles,
3855
+ v.styles,
3856
3856
  Rt,
3857
3857
  y`
3858
3858
  :host {
@@ -3967,7 +3967,7 @@ class jb extends Event {
3967
3967
  super("idp-form-back", { bubbles: !0, composed: !0 });
3968
3968
  }
3969
3969
  }
3970
- let X = class extends h {
3970
+ let X = class extends v {
3971
3971
  constructor() {
3972
3972
  super(...arguments), yt(this, Ae, "add"), yt(this, _e, {
3973
3973
  id: "",
@@ -4167,7 +4167,7 @@ Ie = /* @__PURE__ */ new WeakMap();
4167
4167
  Ee = /* @__PURE__ */ new WeakMap();
4168
4168
  Oe = /* @__PURE__ */ new WeakMap();
4169
4169
  X.styles = [
4170
- h.styles,
4170
+ v.styles,
4171
4171
  y`
4172
4172
  :host {
4173
4173
  display: block;
@@ -4403,7 +4403,7 @@ class Pn extends Event {
4403
4403
  super("idp-add", { bubbles: !0, composed: !0 }), this.idp = e;
4404
4404
  }
4405
4405
  }
4406
- let bt = class extends h {
4406
+ let bt = class extends v {
4407
4407
  constructor() {
4408
4408
  super(...arguments), le(this, Ce, []), le(this, Pe, !1), le(this, je, !1), le(this, Te, {
4409
4409
  id: "",
@@ -4564,7 +4564,7 @@ Ce = /* @__PURE__ */ new WeakMap();
4564
4564
  Pe = /* @__PURE__ */ new WeakMap();
4565
4565
  je = /* @__PURE__ */ new WeakMap();
4566
4566
  Te = /* @__PURE__ */ new WeakMap();
4567
- bt.styles = [h.styles, Jo];
4567
+ bt.styles = [v.styles, Jo];
4568
4568
  ae([
4569
4569
  b({ type: Array })
4570
4570
  ], bt.prototype, "idps", 1);
@@ -4585,7 +4585,7 @@ var jn = Object.defineProperty, Tn = Object.getOwnPropertyDescriptor, ur = (t, e
4585
4585
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
4586
4586
  return o && a && jn(e, r, a), a;
4587
4587
  };
4588
- let jt = class extends h {
4588
+ let jt = class extends v {
4589
4589
  constructor() {
4590
4590
  super(...arguments), this.networks = [], this.activeSessions = [], this.readonly = !1;
4591
4591
  }
@@ -4602,7 +4602,7 @@ let jt = class extends h {
4602
4602
  return c`
4603
4603
  <network-card
4604
4604
  .network=${t}
4605
- .activeSession=${!!e}
4605
+ .activeSession=${e?.status === "connected"}
4606
4606
  .accessToken=${e?.accessToken ?? ""}
4607
4607
  .readonly=${this.readonly}
4608
4608
  ></network-card>
@@ -4613,7 +4613,7 @@ let jt = class extends h {
4613
4613
  `;
4614
4614
  }
4615
4615
  };
4616
- jt.styles = [h.styles];
4616
+ jt.styles = [v.styles];
4617
4617
  ur([
4618
4618
  b({ type: Array })
4619
4619
  ], jt.prototype, "networks", 2);
@@ -4646,7 +4646,7 @@ class Db extends Event {
4646
4646
  super("update", { bubbles: !0, composed: !0 });
4647
4647
  }
4648
4648
  }
4649
- let mt = class extends h {
4649
+ let mt = class extends v {
4650
4650
  constructor() {
4651
4651
  super(...arguments), this.network = null, this.activeSession = !1, this.accessToken = "", this.readonly = !1;
4652
4652
  }
@@ -4728,7 +4728,7 @@ let mt = class extends h {
4728
4728
  }
4729
4729
  };
4730
4730
  mt.styles = [
4731
- h.styles,
4731
+ v.styles,
4732
4732
  Rt,
4733
4733
  y`
4734
4734
  :host {
@@ -4862,8 +4862,8 @@ function p(t, e, r) {
4862
4862
  s._zod.traits.add(t), e(s, l);
4863
4863
  const d = i.prototype, m = Object.keys(d);
4864
4864
  for (let g = 0; g < m.length; g++) {
4865
- const v = m[g];
4866
- v in s || (s[v] = d[v].bind(s));
4865
+ const f = m[g];
4866
+ f in s || (s[f] = d[f].bind(s));
4867
4867
  }
4868
4868
  }
4869
4869
  const a = r?.Parent ?? Object;
@@ -4917,7 +4917,7 @@ function fr(t) {
4917
4917
  function Lr(t) {
4918
4918
  return t == null;
4919
4919
  }
4920
- function Yr(t) {
4920
+ function Ur(t) {
4921
4921
  const e = t.startsWith("^") ? 1 : 0, r = t.endsWith("$") ? t.length - 1 : t.length;
4922
4922
  return t.slice(e, r);
4923
4923
  }
@@ -5015,14 +5015,14 @@ function u(t) {
5015
5015
  function Ln(t) {
5016
5016
  return Object.keys(t).filter((e) => t[e]._zod.optin === "optional" && t[e]._zod.optout === "optional");
5017
5017
  }
5018
- const Yn = {
5018
+ const Un = {
5019
5019
  safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
5020
5020
  int32: [-2147483648, 2147483647],
5021
5021
  uint32: [0, 4294967295],
5022
5022
  float32: [-34028234663852886e22, 34028234663852886e22],
5023
5023
  float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
5024
5024
  };
5025
- function Un(t, e) {
5025
+ function Yn(t, e) {
5026
5026
  const r = t._zod.def, o = r.checks;
5027
5027
  if (o && o.length > 0)
5028
5028
  throw new Error(".pick() cannot be used on object schemas containing refinements");
@@ -5183,7 +5183,7 @@ function rt(t, e, r) {
5183
5183
  const o = t.message ? t.message : ce(t.inst?._zod.def?.error?.(t)) ?? ce(e?.error?.(t)) ?? ce(r.customError?.(t)) ?? ce(r.localeError?.(t)) ?? "Invalid input", { inst: a, continue: n, input: i, ...s } = t;
5184
5184
  return s.path ?? (s.path = []), s.message = o, e?.reportInput && (s.input = i), s;
5185
5185
  }
5186
- function Ur(t) {
5186
+ function Yr(t) {
5187
5187
  return Array.isArray(t) ? "array" : typeof t == "string" ? "string" : "unknown";
5188
5188
  }
5189
5189
  function re(...t) {
@@ -5302,7 +5302,7 @@ function Os(t) {
5302
5302
  const Cs = (t) => {
5303
5303
  const e = t ? `[\\s\\S]{${t?.minimum ?? 0},${t?.maximum ?? ""}}` : "[\\s\\S]*";
5304
5304
  return new RegExp(`^${e}$`);
5305
- }, Ps = /^-?\d+$/, pa = /^-?\d+(?:\.\d+)?$/, js = /^(?:true|false)$/i, Ts = /^null$/i, Ds = /^undefined$/i, Bs = /^[^A-Z]*$/, Ns = /^[^a-z]*$/, Y = /* @__PURE__ */ p("$ZodCheck", (t, e) => {
5305
+ }, Ps = /^-?\d+$/, pa = /^-?\d+(?:\.\d+)?$/, js = /^(?:true|false)$/i, Ts = /^null$/i, Ds = /^undefined$/i, Bs = /^[^A-Z]*$/, Ns = /^[^a-z]*$/, U = /* @__PURE__ */ p("$ZodCheck", (t, e) => {
5306
5306
  var r;
5307
5307
  t._zod ?? (t._zod = {}), t._zod.def = e, (r = t._zod).onattach ?? (r.onattach = []);
5308
5308
  }), ba = {
@@ -5310,7 +5310,7 @@ const Cs = (t) => {
5310
5310
  bigint: "bigint",
5311
5311
  object: "date"
5312
5312
  }, ma = /* @__PURE__ */ p("$ZodCheckLessThan", (t, e) => {
5313
- Y.init(t, e);
5313
+ U.init(t, e);
5314
5314
  const r = ba[typeof e.value];
5315
5315
  t._zod.onattach.push((o) => {
5316
5316
  const a = o._zod.bag, n = (e.inclusive ? a.maximum : a.exclusiveMaximum) ?? Number.POSITIVE_INFINITY;
@@ -5327,7 +5327,7 @@ const Cs = (t) => {
5327
5327
  });
5328
5328
  };
5329
5329
  }), ga = /* @__PURE__ */ p("$ZodCheckGreaterThan", (t, e) => {
5330
- Y.init(t, e);
5330
+ U.init(t, e);
5331
5331
  const r = ba[typeof e.value];
5332
5332
  t._zod.onattach.push((o) => {
5333
5333
  const a = o._zod.bag, n = (e.inclusive ? a.minimum : a.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY;
@@ -5344,7 +5344,7 @@ const Cs = (t) => {
5344
5344
  });
5345
5345
  };
5346
5346
  }), $s = /* @__PURE__ */ p("$ZodCheckMultipleOf", (t, e) => {
5347
- Y.init(t, e), t._zod.onattach.push((r) => {
5347
+ U.init(t, e), t._zod.onattach.push((r) => {
5348
5348
  var o;
5349
5349
  (o = r._zod.bag).multipleOf ?? (o.multipleOf = e.value);
5350
5350
  }), t._zod.check = (r) => {
@@ -5360,8 +5360,8 @@ const Cs = (t) => {
5360
5360
  });
5361
5361
  };
5362
5362
  }), Rs = /* @__PURE__ */ p("$ZodCheckNumberFormat", (t, e) => {
5363
- Y.init(t, e), e.format = e.format || "float64";
5364
- const r = e.format?.includes("int"), o = r ? "int" : "number", [a, n] = Yn[e.format];
5363
+ U.init(t, e), e.format = e.format || "float64";
5364
+ const r = e.format?.includes("int"), o = r ? "int" : "number", [a, n] = Un[e.format];
5365
5365
  t._zod.onattach.push((i) => {
5366
5366
  const s = i._zod.bag;
5367
5367
  s.format = e.format, s.minimum = a, s.maximum = n, r && (s.pattern = Ps);
@@ -5422,7 +5422,7 @@ const Cs = (t) => {
5422
5422
  };
5423
5423
  }), Ms = /* @__PURE__ */ p("$ZodCheckMaxLength", (t, e) => {
5424
5424
  var r;
5425
- Y.init(t, e), (r = t._zod.def).when ?? (r.when = (o) => {
5425
+ U.init(t, e), (r = t._zod.def).when ?? (r.when = (o) => {
5426
5426
  const a = o.value;
5427
5427
  return !Lr(a) && a.length !== void 0;
5428
5428
  }), t._zod.onattach.push((o) => {
@@ -5432,7 +5432,7 @@ const Cs = (t) => {
5432
5432
  const a = o.value;
5433
5433
  if (a.length <= e.maximum)
5434
5434
  return;
5435
- const i = Ur(a);
5435
+ const i = Yr(a);
5436
5436
  o.issues.push({
5437
5437
  origin: i,
5438
5438
  code: "too_big",
@@ -5445,7 +5445,7 @@ const Cs = (t) => {
5445
5445
  };
5446
5446
  }), Zs = /* @__PURE__ */ p("$ZodCheckMinLength", (t, e) => {
5447
5447
  var r;
5448
- Y.init(t, e), (r = t._zod.def).when ?? (r.when = (o) => {
5448
+ U.init(t, e), (r = t._zod.def).when ?? (r.when = (o) => {
5449
5449
  const a = o.value;
5450
5450
  return !Lr(a) && a.length !== void 0;
5451
5451
  }), t._zod.onattach.push((o) => {
@@ -5455,7 +5455,7 @@ const Cs = (t) => {
5455
5455
  const a = o.value;
5456
5456
  if (a.length >= e.minimum)
5457
5457
  return;
5458
- const i = Ur(a);
5458
+ const i = Yr(a);
5459
5459
  o.issues.push({
5460
5460
  origin: i,
5461
5461
  code: "too_small",
@@ -5468,7 +5468,7 @@ const Cs = (t) => {
5468
5468
  };
5469
5469
  }), Ls = /* @__PURE__ */ p("$ZodCheckLengthEquals", (t, e) => {
5470
5470
  var r;
5471
- Y.init(t, e), (r = t._zod.def).when ?? (r.when = (o) => {
5471
+ U.init(t, e), (r = t._zod.def).when ?? (r.when = (o) => {
5472
5472
  const a = o.value;
5473
5473
  return !Lr(a) && a.length !== void 0;
5474
5474
  }), t._zod.onattach.push((o) => {
@@ -5478,7 +5478,7 @@ const Cs = (t) => {
5478
5478
  const a = o.value, n = a.length;
5479
5479
  if (n === e.length)
5480
5480
  return;
5481
- const i = Ur(a), s = n > e.length;
5481
+ const i = Yr(a), s = n > e.length;
5482
5482
  o.issues.push({
5483
5483
  origin: i,
5484
5484
  ...s ? { code: "too_big", maximum: e.length } : { code: "too_small", minimum: e.length },
@@ -5491,7 +5491,7 @@ const Cs = (t) => {
5491
5491
  };
5492
5492
  }), wr = /* @__PURE__ */ p("$ZodCheckStringFormat", (t, e) => {
5493
5493
  var r, o;
5494
- Y.init(t, e), t._zod.onattach.push((a) => {
5494
+ U.init(t, e), t._zod.onattach.push((a) => {
5495
5495
  const n = a._zod.bag;
5496
5496
  n.format = e.format, e.pattern && (n.patterns ?? (n.patterns = /* @__PURE__ */ new Set()), n.patterns.add(e.pattern));
5497
5497
  }), e.pattern ? (r = t._zod).check ?? (r.check = (a) => {
@@ -5506,7 +5506,7 @@ const Cs = (t) => {
5506
5506
  });
5507
5507
  }) : (o = t._zod).check ?? (o.check = () => {
5508
5508
  });
5509
- }), Ys = /* @__PURE__ */ p("$ZodCheckRegex", (t, e) => {
5509
+ }), Us = /* @__PURE__ */ p("$ZodCheckRegex", (t, e) => {
5510
5510
  wr.init(t, e), t._zod.check = (r) => {
5511
5511
  e.pattern.lastIndex = 0, !e.pattern.test(r.value) && r.issues.push({
5512
5512
  origin: "string",
@@ -5518,12 +5518,12 @@ const Cs = (t) => {
5518
5518
  continue: !e.abort
5519
5519
  });
5520
5520
  };
5521
- }), Us = /* @__PURE__ */ p("$ZodCheckLowerCase", (t, e) => {
5521
+ }), Ys = /* @__PURE__ */ p("$ZodCheckLowerCase", (t, e) => {
5522
5522
  e.pattern ?? (e.pattern = Bs), wr.init(t, e);
5523
5523
  }), Gs = /* @__PURE__ */ p("$ZodCheckUpperCase", (t, e) => {
5524
5524
  e.pattern ?? (e.pattern = Ns), wr.init(t, e);
5525
5525
  }), Hs = /* @__PURE__ */ p("$ZodCheckIncludes", (t, e) => {
5526
- Y.init(t, e);
5526
+ U.init(t, e);
5527
5527
  const r = Dt(e.includes), o = new RegExp(typeof e.position == "number" ? `^.{${e.position}}${r}` : r);
5528
5528
  e.pattern = o, t._zod.onattach.push((a) => {
5529
5529
  const n = a._zod.bag;
@@ -5540,7 +5540,7 @@ const Cs = (t) => {
5540
5540
  });
5541
5541
  };
5542
5542
  }), Xs = /* @__PURE__ */ p("$ZodCheckStartsWith", (t, e) => {
5543
- Y.init(t, e);
5543
+ U.init(t, e);
5544
5544
  const r = new RegExp(`^${Dt(e.prefix)}.*`);
5545
5545
  e.pattern ?? (e.pattern = r), t._zod.onattach.push((o) => {
5546
5546
  const a = o._zod.bag;
@@ -5557,7 +5557,7 @@ const Cs = (t) => {
5557
5557
  });
5558
5558
  };
5559
5559
  }), Vs = /* @__PURE__ */ p("$ZodCheckEndsWith", (t, e) => {
5560
- Y.init(t, e);
5560
+ U.init(t, e);
5561
5561
  const r = new RegExp(`.*${Dt(e.suffix)}$`);
5562
5562
  e.pattern ?? (e.pattern = r), t._zod.onattach.push((o) => {
5563
5563
  const a = o._zod.bag;
@@ -5574,7 +5574,7 @@ const Cs = (t) => {
5574
5574
  });
5575
5575
  };
5576
5576
  }), qs = /* @__PURE__ */ p("$ZodCheckOverwrite", (t, e) => {
5577
- Y.init(t, e), t._zod.check = (r) => {
5577
+ U.init(t, e), t._zod.check = (r) => {
5578
5578
  r.value = e.tx(r.value);
5579
5579
  };
5580
5580
  });
@@ -5626,17 +5626,17 @@ const Ks = {
5626
5626
  continue;
5627
5627
  } else if (d)
5628
5628
  continue;
5629
- const v = i.issues.length, f = g._zod.check(i);
5630
- if (f instanceof Promise && l?.async === !1)
5629
+ const f = i.issues.length, h = g._zod.check(i);
5630
+ if (h instanceof Promise && l?.async === !1)
5631
5631
  throw new Et();
5632
- if (m || f instanceof Promise)
5632
+ if (m || h instanceof Promise)
5633
5633
  m = (m ?? Promise.resolve()).then(async () => {
5634
- await f, i.issues.length !== v && (d || (d = St(i, v)));
5634
+ await h, i.issues.length !== f && (d || (d = St(i, f)));
5635
5635
  });
5636
5636
  else {
5637
- if (i.issues.length === v)
5637
+ if (i.issues.length === f)
5638
5638
  continue;
5639
- d || (d = St(i, v));
5639
+ d || (d = St(i, f));
5640
5640
  }
5641
5641
  }
5642
5642
  return m ? m.then(() => i) : i;
@@ -6017,15 +6017,15 @@ function ha(t) {
6017
6017
  }
6018
6018
  function va(t, e, r, o, a, n) {
6019
6019
  const i = [], s = a.keySet, l = a.catchall._zod, d = l.def.type, m = l.optin === "optional", g = l.optout === "optional";
6020
- for (const v in e) {
6021
- if (v === "__proto__" || s.has(v))
6020
+ for (const f in e) {
6021
+ if (f === "__proto__" || s.has(f))
6022
6022
  continue;
6023
6023
  if (d === "never") {
6024
- i.push(v);
6024
+ i.push(f);
6025
6025
  continue;
6026
6026
  }
6027
- const f = l.run({ value: e[v], issues: [] }, o);
6028
- f instanceof Promise ? t.push(f.then((x) => ar(x, r, v, e, m, g))) : ar(f, r, v, e, m, g);
6027
+ const h = l.run({ value: e[f], issues: [] }, o);
6028
+ h instanceof Promise ? t.push(h.then((x) => ar(x, r, f, e, m, g))) : ar(h, r, f, e, m, g);
6029
6029
  }
6030
6030
  return i.length && r.issues.push({
6031
6031
  code: "unrecognized_keys",
@@ -6073,28 +6073,28 @@ const Ol = /* @__PURE__ */ p("$ZodObject", (t, e) => {
6073
6073
  }), s;
6074
6074
  s.value = {};
6075
6075
  const m = [], g = i.shape;
6076
- for (const v of i.keys) {
6077
- const f = g[v], x = f._zod.optin === "optional", B = f._zod.optout === "optional", j = f._zod.run({ value: d[v], issues: [] }, l);
6078
- j instanceof Promise ? m.push(j.then((zr) => ar(zr, s, v, d, x, B))) : ar(j, s, v, d, x, B);
6076
+ for (const f of i.keys) {
6077
+ const h = g[f], x = h._zod.optin === "optional", B = h._zod.optout === "optional", j = h._zod.run({ value: d[f], issues: [] }, l);
6078
+ j instanceof Promise ? m.push(j.then((zr) => ar(zr, s, f, d, x, B))) : ar(j, s, f, d, x, B);
6079
6079
  }
6080
6080
  return n ? va(m, d, s, l, o.value, t) : m.length ? Promise.all(m).then(() => s) : s;
6081
6081
  };
6082
6082
  }), Cl = /* @__PURE__ */ p("$ZodObjectJIT", (t, e) => {
6083
6083
  Ol.init(t, e);
6084
- const r = t._zod.parse, o = fr(() => ha(e)), a = (v) => {
6085
- const f = new Fs(["shape", "payload", "ctx"]), x = o.value, B = (q) => {
6084
+ const r = t._zod.parse, o = fr(() => ha(e)), a = (f) => {
6085
+ const h = new Fs(["shape", "payload", "ctx"]), x = o.value, B = (q) => {
6086
6086
  const O = no(q);
6087
6087
  return `shape[${O}]._zod.run({ value: input[${O}], issues: [] }, ctx)`;
6088
6088
  };
6089
- f.write("const input = payload.value;");
6089
+ h.write("const input = payload.value;");
6090
6090
  const j = /* @__PURE__ */ Object.create(null);
6091
6091
  let zr = 0;
6092
6092
  for (const q of x.keys)
6093
6093
  j[q] = `key_${zr++}`;
6094
- f.write("const newResult = {};");
6094
+ h.write("const newResult = {};");
6095
6095
  for (const q of x.keys) {
6096
- const O = j[q], $ = no(q), Wr = v[q], Jr = Wr?._zod?.optin === "optional", ni = Wr?._zod?.optout === "optional";
6097
- f.write(`const ${O} = ${B(q)};`), Jr && ni ? f.write(`
6096
+ const O = j[q], $ = no(q), Wr = f[q], Jr = Wr?._zod?.optin === "optional", ni = Wr?._zod?.optout === "optional";
6097
+ h.write(`const ${O} = ${B(q)};`), Jr && ni ? h.write(`
6098
6098
  if (${O}.issues.length) {
6099
6099
  if (${$} in input) {
6100
6100
  payload.issues = payload.issues.concat(${O}.issues.map(iss => ({
@@ -6112,7 +6112,7 @@ const Ol = /* @__PURE__ */ p("$ZodObject", (t, e) => {
6112
6112
  newResult[${$}] = ${O}.value;
6113
6113
  }
6114
6114
 
6115
- `) : Jr ? f.write(`
6115
+ `) : Jr ? h.write(`
6116
6116
  if (${O}.issues.length) {
6117
6117
  payload.issues = payload.issues.concat(${O}.issues.map(iss => ({
6118
6118
  ...iss,
@@ -6128,7 +6128,7 @@ const Ol = /* @__PURE__ */ p("$ZodObject", (t, e) => {
6128
6128
  newResult[${$}] = ${O}.value;
6129
6129
  }
6130
6130
 
6131
- `) : f.write(`
6131
+ `) : h.write(`
6132
6132
  const ${O}_present = ${$} in input;
6133
6133
  if (${O}.issues.length) {
6134
6134
  payload.issues = payload.issues.concat(${O}.issues.map(iss => ({
@@ -6155,22 +6155,22 @@ const Ol = /* @__PURE__ */ p("$ZodObject", (t, e) => {
6155
6155
 
6156
6156
  `);
6157
6157
  }
6158
- f.write("payload.value = newResult;"), f.write("return payload;");
6159
- const ii = f.compile();
6160
- return (q, O) => ii(v, q, O);
6158
+ h.write("payload.value = newResult;"), h.write("return payload;");
6159
+ const ii = h.compile();
6160
+ return (q, O) => ii(f, q, O);
6161
6161
  };
6162
6162
  let n;
6163
6163
  const i = ee, s = !Zr.jitless, d = s && Mn.value, m = e.catchall;
6164
6164
  let g;
6165
- t._zod.parse = (v, f) => {
6165
+ t._zod.parse = (f, h) => {
6166
6166
  g ?? (g = o.value);
6167
- const x = v.value;
6168
- return i(x) ? s && d && f?.async === !1 && f.jitless !== !0 ? (n || (n = a(e.shape)), v = n(v, f), m ? va([], x, v, f, g, t) : v) : r(v, f) : (v.issues.push({
6167
+ const x = f.value;
6168
+ return i(x) ? s && d && h?.async === !1 && h.jitless !== !0 ? (n || (n = a(e.shape)), f = n(f, h), m ? va([], x, f, h, g, t) : f) : r(f, h) : (f.issues.push({
6169
6169
  expected: "object",
6170
6170
  code: "invalid_type",
6171
6171
  input: x,
6172
6172
  inst: t
6173
- }), v);
6173
+ }), f);
6174
6174
  };
6175
6175
  });
6176
6176
  function co(t, e, r, o) {
@@ -6192,7 +6192,7 @@ const wa = /* @__PURE__ */ p("$ZodUnion", (t, e) => {
6192
6192
  }), z(t._zod, "pattern", () => {
6193
6193
  if (e.options.every((o) => o._zod.pattern)) {
6194
6194
  const o = e.options.map((a) => a._zod.pattern);
6195
- return new RegExp(`^(${o.map((a) => Yr(a.source)).join("|")})$`);
6195
+ return new RegExp(`^(${o.map((a) => Ur(a.source)).join("|")})$`);
6196
6196
  }
6197
6197
  });
6198
6198
  const r = e.options.length === 1 ? e.options[0]._zod.run : null;
@@ -6357,17 +6357,17 @@ const Tl = /* @__PURE__ */ p("$ZodRecord", (t, e) => {
6357
6357
  r.issues.push({
6358
6358
  code: "invalid_key",
6359
6359
  origin: "record",
6360
- issues: m.issues.map((f) => rt(f, o, et())),
6360
+ issues: m.issues.map((h) => rt(h, o, et())),
6361
6361
  input: d,
6362
6362
  path: [d],
6363
6363
  inst: t
6364
6364
  });
6365
6365
  continue;
6366
6366
  }
6367
- const g = m.value, v = e.valueType._zod.run({ value: a[d], issues: [] }, o);
6368
- v instanceof Promise ? n.push(v.then((f) => {
6369
- f.issues.length && r.issues.push(...It(d, f.issues)), r.value[g] = f.value;
6370
- })) : (v.issues.length && r.issues.push(...It(d, v.issues)), r.value[g] = v.value);
6367
+ const g = m.value, f = e.valueType._zod.run({ value: a[d], issues: [] }, o);
6368
+ f instanceof Promise ? n.push(f.then((h) => {
6369
+ h.issues.length && r.issues.push(...It(d, h.issues)), r.value[g] = h.value;
6370
+ })) : (f.issues.length && r.issues.push(...It(d, f.issues)), r.value[g] = f.value);
6371
6371
  }
6372
6372
  let l;
6373
6373
  for (const d in a)
@@ -6454,7 +6454,7 @@ function bo(t, e) {
6454
6454
  const xa = /* @__PURE__ */ p("$ZodOptional", (t, e) => {
6455
6455
  _.init(t, e), t._zod.optin = "optional", t._zod.optout = "optional", z(t._zod, "values", () => e.innerType._zod.values ? /* @__PURE__ */ new Set([...e.innerType._zod.values, void 0]) : void 0), z(t._zod, "pattern", () => {
6456
6456
  const r = e.innerType._zod.pattern;
6457
- return r ? new RegExp(`^(${Yr(r.source)})?$`) : void 0;
6457
+ return r ? new RegExp(`^(${Ur(r.source)})?$`) : void 0;
6458
6458
  }), t._zod.parse = (r, o) => {
6459
6459
  if (e.innerType._zod.optin === "optional") {
6460
6460
  const a = r.value, n = e.innerType._zod.run(r, o);
@@ -6467,7 +6467,7 @@ const xa = /* @__PURE__ */ p("$ZodOptional", (t, e) => {
6467
6467
  }), Rl = /* @__PURE__ */ p("$ZodNullable", (t, e) => {
6468
6468
  _.init(t, e), z(t._zod, "optin", () => e.innerType._zod.optin), z(t._zod, "optout", () => e.innerType._zod.optout), z(t._zod, "pattern", () => {
6469
6469
  const r = e.innerType._zod.pattern;
6470
- return r ? new RegExp(`^(${Yr(r.source)}|null)$`) : void 0;
6470
+ return r ? new RegExp(`^(${Ur(r.source)}|null)$`) : void 0;
6471
6471
  }), z(t._zod, "values", () => e.innerType._zod.values ? /* @__PURE__ */ new Set([...e.innerType._zod.values, null]) : void 0), t._zod.parse = (r, o) => r.value === null ? r : e.innerType._zod.run(r, o);
6472
6472
  }), Ml = /* @__PURE__ */ p("$ZodDefault", (t, e) => {
6473
6473
  _.init(t, e), t._zod.optin = "optional", z(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, o) => {
@@ -6501,7 +6501,7 @@ function go(t, e) {
6501
6501
  inst: e
6502
6502
  }), t;
6503
6503
  }
6504
- const Yl = /* @__PURE__ */ p("$ZodCatch", (t, e) => {
6504
+ const Ul = /* @__PURE__ */ p("$ZodCatch", (t, e) => {
6505
6505
  _.init(t, e), t._zod.optin = "optional", z(t._zod, "optout", () => e.innerType._zod.optout), z(t._zod, "values", () => e.innerType._zod.values), t._zod.parse = (r, o) => {
6506
6506
  if (o.direction === "backward")
6507
6507
  return e.innerType._zod.run(r, o);
@@ -6520,7 +6520,7 @@ const Yl = /* @__PURE__ */ p("$ZodCatch", (t, e) => {
6520
6520
  input: r.value
6521
6521
  }), r.issues = [], r.fallback = !0), r);
6522
6522
  };
6523
- }), Ul = /* @__PURE__ */ p("$ZodPipe", (t, e) => {
6523
+ }), Yl = /* @__PURE__ */ p("$ZodPipe", (t, e) => {
6524
6524
  _.init(t, e), z(t._zod, "values", () => e.in._zod.values), z(t._zod, "optin", () => e.in._zod.optin), z(t._zod, "optout", () => e.out._zod.optout), z(t._zod, "propValues", () => e.in._zod.propValues), t._zod.parse = (r, o) => {
6525
6525
  if (o.direction === "backward") {
6526
6526
  const n = e.out._zod.run(r, o);
@@ -6545,7 +6545,7 @@ function uo(t) {
6545
6545
  return t.value = Object.freeze(t.value), t;
6546
6546
  }
6547
6547
  const Hl = /* @__PURE__ */ p("$ZodCustom", (t, e) => {
6548
- Y.init(t, e), _.init(t, e), t._zod.parse = (r, o) => r, t._zod.check = (r) => {
6548
+ U.init(t, e), _.init(t, e), t._zod.parse = (r, o) => r, t._zod.check = (r) => {
6549
6549
  const o = r.value, a = e.fn(o);
6550
6550
  if (a instanceof Promise)
6551
6551
  return a.then((n) => fo(n, r, o, t));
@@ -6994,7 +6994,7 @@ function za(t, e) {
6994
6994
  }
6995
6995
  // @__NO_SIDE_EFFECTS__
6996
6996
  function Sd(t, e) {
6997
- return new Ys({
6997
+ return new Us({
6998
6998
  check: "string_format",
6999
6999
  format: "regex",
7000
7000
  ...u(e),
@@ -7003,7 +7003,7 @@ function Sd(t, e) {
7003
7003
  }
7004
7004
  // @__NO_SIDE_EFFECTS__
7005
7005
  function Id(t) {
7006
- return new Us({
7006
+ return new Ys({
7007
7007
  check: "string_format",
7008
7008
  format: "lowercase",
7009
7009
  ...u(t)
@@ -7105,7 +7105,7 @@ function Md(t, e) {
7105
7105
  }
7106
7106
  // @__NO_SIDE_EFFECTS__
7107
7107
  function Zd(t, e) {
7108
- const r = new Y({
7108
+ const r = new U({
7109
7109
  check: "custom",
7110
7110
  ...u(e)
7111
7111
  });
@@ -7147,10 +7147,10 @@ function D(t, e, r = { path: [], schemaPath: [] }) {
7147
7147
  if (t._zod.processJSONSchema)
7148
7148
  t._zod.processJSONSchema(e, i.schema, m);
7149
7149
  else {
7150
- const v = i.schema, f = e.processors[a.type];
7151
- if (!f)
7150
+ const f = i.schema, h = e.processors[a.type];
7151
+ if (!h)
7152
7152
  throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);
7153
- f(t, e, v, m);
7153
+ h(t, e, f, m);
7154
7154
  }
7155
7155
  const g = t._zod.parent;
7156
7156
  g && (i.ref || (i.ref = g), D(g, e, m), e.seen.get(g).isParent = !0);
@@ -7175,11 +7175,11 @@ function _a(t, e) {
7175
7175
  const a = (i) => {
7176
7176
  const s = t.target === "draft-2020-12" ? "$defs" : "definitions";
7177
7177
  if (t.external) {
7178
- const g = t.external.registry.get(i[0])?.id, v = t.external.uri ?? ((x) => x);
7178
+ const g = t.external.registry.get(i[0])?.id, f = t.external.uri ?? ((x) => x);
7179
7179
  if (g)
7180
- return { ref: v(g) };
7181
- const f = i[1].defId ?? i[1].schema.id ?? `schema${t.counter++}`;
7182
- return i[1].defId = f, { defId: f, ref: `${v("__shared")}#/${s}/${f}` };
7180
+ return { ref: f(g) };
7181
+ const h = i[1].defId ?? i[1].schema.id ?? `schema${t.counter++}`;
7182
+ return i[1].defId = h, { defId: h, ref: `${f("__shared")}#/${s}/${h}` };
7183
7183
  }
7184
7184
  if (i[1] === r)
7185
7185
  return { ref: "#" };
@@ -7241,21 +7241,21 @@ function Sa(t, e) {
7241
7241
  const d = l.def ?? l.schema, m = { ...d }, g = l.ref;
7242
7242
  if (l.ref = null, g) {
7243
7243
  o(g);
7244
- const f = t.seen.get(g), x = f.schema;
7244
+ const h = t.seen.get(g), x = h.schema;
7245
7245
  if (x.$ref && (t.target === "draft-07" || t.target === "draft-04" || t.target === "openapi-3.0") ? (d.allOf = d.allOf ?? [], d.allOf.push(x)) : Object.assign(d, x), Object.assign(d, m), s._zod.parent === g)
7246
7246
  for (const j in d)
7247
7247
  j === "$ref" || j === "allOf" || j in m || delete d[j];
7248
- if (x.$ref && f.def)
7248
+ if (x.$ref && h.def)
7249
7249
  for (const j in d)
7250
- j === "$ref" || j === "allOf" || j in f.def && JSON.stringify(d[j]) === JSON.stringify(f.def[j]) && delete d[j];
7250
+ j === "$ref" || j === "allOf" || j in h.def && JSON.stringify(d[j]) === JSON.stringify(h.def[j]) && delete d[j];
7251
7251
  }
7252
- const v = s._zod.parent;
7253
- if (v && v !== g) {
7254
- o(v);
7255
- const f = t.seen.get(v);
7256
- if (f?.schema.$ref && (d.$ref = f.schema.$ref, f.def))
7252
+ const f = s._zod.parent;
7253
+ if (f && f !== g) {
7254
+ o(f);
7255
+ const h = t.seen.get(f);
7256
+ if (h?.schema.$ref && (d.$ref = h.schema.$ref, h.def))
7257
7257
  for (const x in d)
7258
- x === "$ref" || x === "allOf" || x in f.def && JSON.stringify(d[x]) === JSON.stringify(f.def[x]) && delete d[x];
7258
+ x === "$ref" || x === "allOf" || x in h.def && JSON.stringify(d[x]) === JSON.stringify(h.def[x]) && delete d[x];
7259
7259
  }
7260
7260
  t.override({
7261
7261
  zodSchema: s,
@@ -7346,18 +7346,18 @@ const Ld = (t, e = {}) => (r) => {
7346
7346
  }, nr = (t, e, r = {}) => (o) => {
7347
7347
  const { libraryOptions: a, target: n } = o ?? {}, i = Aa({ ...a ?? {}, target: n, io: e, processors: r });
7348
7348
  return D(t, i), _a(i, t), Sa(i, t);
7349
- }, Yd = {
7349
+ }, Ud = {
7350
7350
  guid: "uuid",
7351
7351
  url: "uri",
7352
7352
  datetime: "date-time",
7353
7353
  json_string: "json-string",
7354
7354
  regex: ""
7355
7355
  // do not set
7356
- }, Ud = (t, e, r, o) => {
7356
+ }, Yd = (t, e, r, o) => {
7357
7357
  const a = r;
7358
7358
  a.type = "string";
7359
7359
  const { minimum: n, maximum: i, format: s, patterns: l, contentEncoding: d } = t._zod.bag;
7360
- if (typeof n == "number" && (a.minLength = n), typeof i == "number" && (a.maxLength = i), s && (a.format = Yd[s] ?? s, a.format === "" && delete a.format, s === "time" && delete a.format), d && (a.contentEncoding = d), l && l.size > 0) {
7360
+ if (typeof n == "number" && (a.minLength = n), typeof i == "number" && (a.maxLength = i), s && (a.format = Ud[s] ?? s, a.format === "" && delete a.format, s === "time" && delete a.format), d && (a.contentEncoding = d), l && l.size > 0) {
7361
7361
  const m = [...l];
7362
7362
  m.length === 1 ? a.pattern = m[0].source : m.length > 1 && (a.allOf = [
7363
7363
  ...m.map((g) => ({
@@ -7369,8 +7369,8 @@ const Ld = (t, e = {}) => (r) => {
7369
7369
  }, Gd = (t, e, r, o) => {
7370
7370
  const a = r, { minimum: n, maximum: i, format: s, multipleOf: l, exclusiveMaximum: d, exclusiveMinimum: m } = t._zod.bag;
7371
7371
  typeof s == "string" && s.includes("int") ? a.type = "integer" : a.type = "number";
7372
- const g = typeof m == "number" && m >= (n ?? Number.NEGATIVE_INFINITY), v = typeof d == "number" && d <= (i ?? Number.POSITIVE_INFINITY), f = e.target === "draft-04" || e.target === "openapi-3.0";
7373
- g ? f ? (a.minimum = m, a.exclusiveMinimum = !0) : a.exclusiveMinimum = m : typeof n == "number" && (a.minimum = n), v ? f ? (a.maximum = d, a.exclusiveMaximum = !0) : a.exclusiveMaximum = d : typeof i == "number" && (a.maximum = i), typeof l == "number" && (a.multipleOf = l);
7372
+ const g = typeof m == "number" && m >= (n ?? Number.NEGATIVE_INFINITY), f = typeof d == "number" && d <= (i ?? Number.POSITIVE_INFINITY), h = e.target === "draft-04" || e.target === "openapi-3.0";
7373
+ g ? h ? (a.minimum = m, a.exclusiveMinimum = !0) : a.exclusiveMinimum = m : typeof n == "number" && (a.minimum = n), f ? h ? (a.maximum = d, a.exclusiveMaximum = !0) : a.exclusiveMaximum = d : typeof i == "number" && (a.maximum = i), typeof l == "number" && (a.multipleOf = l);
7374
7374
  }, Hd = (t, e, r, o) => {
7375
7375
  r.type = "boolean";
7376
7376
  }, Xd = (t, e, r, o) => {
@@ -7708,7 +7708,7 @@ const S = /* @__PURE__ */ p("ZodType", (t, e) => (_.init(t, e), Object.assign(t[
7708
7708
  },
7709
7709
  configurable: !0
7710
7710
  }), t)), Ea = /* @__PURE__ */ p("_ZodString", (t, e) => {
7711
- Xr.init(t, e), S.init(t, e), t._zod.processJSONSchema = (o, a, n) => Ud(t, o, a);
7711
+ Xr.init(t, e), S.init(t, e), t._zod.processJSONSchema = (o, a, n) => Yd(t, o, a);
7712
7712
  const r = t._zod.bag;
7713
7713
  t.format = r.format ?? null, t.minLength = r.minimum ?? null, t.maxLength = r.maximum ?? null, ne(t, "_ZodString", {
7714
7714
  regex(...o) {
@@ -7758,7 +7758,7 @@ const S = /* @__PURE__ */ p("ZodType", (t, e) => (_.init(t, e), Object.assign(t[
7758
7758
  }
7759
7759
  });
7760
7760
  }), Tc = /* @__PURE__ */ p("ZodString", (t, e) => {
7761
- Xr.init(t, e), Ea.init(t, e), t.email = (r) => t.check(/* @__PURE__ */ Fl(Dc, r)), t.url = (r) => t.check(/* @__PURE__ */ ya(Oa, r)), t.jwt = (r) => t.check(/* @__PURE__ */ gd(Fc, r)), t.emoji = (r) => t.check(/* @__PURE__ */ td(Bc, r)), t.guid = (r) => t.check(/* @__PURE__ */ vo(zo, r)), t.uuid = (r) => t.check(/* @__PURE__ */ Kl(be, r)), t.uuidv4 = (r) => t.check(/* @__PURE__ */ Wl(be, r)), t.uuidv6 = (r) => t.check(/* @__PURE__ */ Jl(be, r)), t.uuidv7 = (r) => t.check(/* @__PURE__ */ Ql(be, r)), t.nanoid = (r) => t.check(/* @__PURE__ */ ed(Nc, r)), t.guid = (r) => t.check(/* @__PURE__ */ vo(zo, r)), t.cuid = (r) => t.check(/* @__PURE__ */ rd($c, r)), t.cuid2 = (r) => t.check(/* @__PURE__ */ od(Rc, r)), t.ulid = (r) => t.check(/* @__PURE__ */ ad(Mc, r)), t.base64 = (r) => t.check(/* @__PURE__ */ pd(Xc, r)), t.base64url = (r) => t.check(/* @__PURE__ */ bd(Vc, r)), t.xid = (r) => t.check(/* @__PURE__ */ id(Zc, r)), t.ksuid = (r) => t.check(/* @__PURE__ */ nd(Lc, r)), t.ipv4 = (r) => t.check(/* @__PURE__ */ sd(Yc, r)), t.ipv6 = (r) => t.check(/* @__PURE__ */ ld(Uc, r)), t.cidrv4 = (r) => t.check(/* @__PURE__ */ dd(Gc, r)), t.cidrv6 = (r) => t.check(/* @__PURE__ */ cd(Hc, r)), t.e164 = (r) => t.check(/* @__PURE__ */ md(qc, r)), t.datetime = (r) => t.check(mc(r)), t.date = (r) => t.check(uc(r)), t.time = (r) => t.check(hc(r)), t.duration = (r) => t.check(wc(r));
7761
+ Xr.init(t, e), Ea.init(t, e), t.email = (r) => t.check(/* @__PURE__ */ Fl(Dc, r)), t.url = (r) => t.check(/* @__PURE__ */ ya(Oa, r)), t.jwt = (r) => t.check(/* @__PURE__ */ gd(Fc, r)), t.emoji = (r) => t.check(/* @__PURE__ */ td(Bc, r)), t.guid = (r) => t.check(/* @__PURE__ */ vo(zo, r)), t.uuid = (r) => t.check(/* @__PURE__ */ Kl(be, r)), t.uuidv4 = (r) => t.check(/* @__PURE__ */ Wl(be, r)), t.uuidv6 = (r) => t.check(/* @__PURE__ */ Jl(be, r)), t.uuidv7 = (r) => t.check(/* @__PURE__ */ Ql(be, r)), t.nanoid = (r) => t.check(/* @__PURE__ */ ed(Nc, r)), t.guid = (r) => t.check(/* @__PURE__ */ vo(zo, r)), t.cuid = (r) => t.check(/* @__PURE__ */ rd($c, r)), t.cuid2 = (r) => t.check(/* @__PURE__ */ od(Rc, r)), t.ulid = (r) => t.check(/* @__PURE__ */ ad(Mc, r)), t.base64 = (r) => t.check(/* @__PURE__ */ pd(Xc, r)), t.base64url = (r) => t.check(/* @__PURE__ */ bd(Vc, r)), t.xid = (r) => t.check(/* @__PURE__ */ id(Zc, r)), t.ksuid = (r) => t.check(/* @__PURE__ */ nd(Lc, r)), t.ipv4 = (r) => t.check(/* @__PURE__ */ sd(Uc, r)), t.ipv6 = (r) => t.check(/* @__PURE__ */ ld(Yc, r)), t.cidrv4 = (r) => t.check(/* @__PURE__ */ dd(Gc, r)), t.cidrv6 = (r) => t.check(/* @__PURE__ */ cd(Hc, r)), t.e164 = (r) => t.check(/* @__PURE__ */ md(qc, r)), t.datetime = (r) => t.check(mc(r)), t.date = (r) => t.check(uc(r)), t.time = (r) => t.check(hc(r)), t.duration = (r) => t.check(wc(r));
7762
7762
  });
7763
7763
  function w(t) {
7764
7764
  return /* @__PURE__ */ ql(Tc, t);
@@ -7791,9 +7791,9 @@ const Bc = /* @__PURE__ */ p("ZodEmoji", (t, e) => {
7791
7791
  nl.init(t, e), E.init(t, e);
7792
7792
  }), Lc = /* @__PURE__ */ p("ZodKSUID", (t, e) => {
7793
7793
  sl.init(t, e), E.init(t, e);
7794
- }), Yc = /* @__PURE__ */ p("ZodIPv4", (t, e) => {
7794
+ }), Uc = /* @__PURE__ */ p("ZodIPv4", (t, e) => {
7795
7795
  bl.init(t, e), E.init(t, e);
7796
- }), Uc = /* @__PURE__ */ p("ZodIPv6", (t, e) => {
7796
+ }), Yc = /* @__PURE__ */ p("ZodIPv6", (t, e) => {
7797
7797
  ml.init(t, e), E.init(t, e);
7798
7798
  }), Gc = /* @__PURE__ */ p("ZodCIDRv4", (t, e) => {
7799
7799
  gl.init(t, e), E.init(t, e);
@@ -7949,7 +7949,7 @@ const Ta = /* @__PURE__ */ p("ZodObject", (t, e) => {
7949
7949
  return Vn(this, r);
7950
7950
  },
7951
7951
  pick(r) {
7952
- return Un(this, r);
7952
+ return Yn(this, r);
7953
7953
  },
7954
7954
  omit(r) {
7955
7955
  return Gn(this, r);
@@ -7991,7 +7991,7 @@ function Vr(t, e) {
7991
7991
  const np = /* @__PURE__ */ p("ZodDiscriminatedUnion", (t, e) => {
7992
7992
  Da.init(t, e), Pl.init(t, e);
7993
7993
  });
7994
- function Yt(t, e, r) {
7994
+ function Ut(t, e, r) {
7995
7995
  return new np({
7996
7996
  type: "union",
7997
7997
  options: e,
@@ -8164,7 +8164,7 @@ function xp(t, e) {
8164
8164
  });
8165
8165
  }
8166
8166
  const yp = /* @__PURE__ */ p("ZodCatch", (t, e) => {
8167
- Yl.init(t, e), S.init(t, e), t._zod.processJSONSchema = (r, o, a) => dc(t, r, o, a), t.unwrap = () => t._zod.def.innerType, t.removeCatch = t.unwrap;
8167
+ Ul.init(t, e), S.init(t, e), t._zod.processJSONSchema = (r, o, a) => dc(t, r, o, a), t.unwrap = () => t._zod.def.innerType, t.removeCatch = t.unwrap;
8168
8168
  });
8169
8169
  function kp(t, e) {
8170
8170
  return new yp({
@@ -8174,7 +8174,7 @@ function kp(t, e) {
8174
8174
  });
8175
8175
  }
8176
8176
  const zp = /* @__PURE__ */ p("ZodPipe", (t, e) => {
8177
- Ul.init(t, e), S.init(t, e), t._zod.processJSONSchema = (r, o, a) => cc(t, r, o, a), t.in = e.in, t.out = e.out;
8177
+ Yl.init(t, e), S.init(t, e), t._zod.processJSONSchema = (r, o, a) => cc(t, r, o, a), t.in = e.in, t.out = e.out;
8178
8178
  });
8179
8179
  function Io(t, e) {
8180
8180
  return new zp({
@@ -8233,17 +8233,17 @@ const $a = k({
8233
8233
  scope: w(),
8234
8234
  clientId: w(),
8235
8235
  clientSecretEnv: w()
8236
- }), Sr = Yt("method", [
8236
+ }), Sr = Ut("method", [
8237
8237
  $a,
8238
8238
  Op,
8239
8239
  Cp
8240
8240
  ]);
8241
- Yt("method", [
8241
+ Ut("method", [
8242
8242
  $a,
8243
8243
  Pp,
8244
8244
  jp
8245
8245
  ]);
8246
- const Tp = Yt("type", [k({
8246
+ const Tp = Ut("type", [k({
8247
8247
  id: w(),
8248
8248
  type: P("self_signed"),
8249
8249
  issuer: w()
@@ -8267,7 +8267,7 @@ const Dp = k({ baseUrl: w().url() }), Ra = k({
8267
8267
  adminAuth: Sr.optional(),
8268
8268
  serviceAccountAuth: Sr.optional()
8269
8269
  });
8270
- k({ connection: Yt("type", [
8270
+ k({ connection: Ut("type", [
8271
8271
  k({ type: P("memory") }),
8272
8272
  k({
8273
8273
  type: P("sqlite"),
@@ -8308,7 +8308,7 @@ class Mp extends Event {
8308
8308
  super("network-delete", { bubbles: !0, composed: !0 }), this.network = e;
8309
8309
  }
8310
8310
  }
8311
- let Bt = class extends h {
8311
+ let Bt = class extends v {
8312
8312
  constructor() {
8313
8313
  super(...arguments), Oo(this, De, "add"), Oo(this, Be, {
8314
8314
  id: "",
@@ -8559,7 +8559,7 @@ let Bt = class extends h {
8559
8559
  De = /* @__PURE__ */ new WeakMap();
8560
8560
  Be = /* @__PURE__ */ new WeakMap();
8561
8561
  Bt.styles = [
8562
- h.styles,
8562
+ v.styles,
8563
8563
  y`
8564
8564
  :host {
8565
8565
  display: block;
@@ -8719,7 +8719,7 @@ Bt.styles = [
8719
8719
  border-width: 1px;
8720
8720
  }
8721
8721
  `,
8722
- U.styles
8722
+ Y.styles
8723
8723
  ];
8724
8724
  xr([
8725
8725
  b({ type: String })
@@ -8739,8 +8739,8 @@ var Zp = Object.defineProperty, Lp = Object.getOwnPropertyDescriptor, La = (t) =
8739
8739
  for (var a = o > 1 ? void 0 : o ? Lp(e, r) : e, n = t.length - 1, i; n >= 0; n--)
8740
8740
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
8741
8741
  return o && a && Zp(e, r, a), a;
8742
- }, Ya = (t, e, r) => e.has(t) || La("Cannot " + r), zt = (t, e, r) => (Ya(t, e, "read from private field"), r ? r.call(t) : e.get(t)), At = (t, e, r) => e.has(t) ? La("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), _t = (t, e, r, o) => (Ya(t, e, "write to private field"), e.set(t, r), r), Ne, $e, Re, Me, Ze, Le;
8743
- let ot = class extends h {
8742
+ }, Ua = (t, e, r) => e.has(t) || La("Cannot " + r), zt = (t, e, r) => (Ua(t, e, "read from private field"), r ? r.call(t) : e.get(t)), At = (t, e, r) => e.has(t) ? La("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), _t = (t, e, r, o) => (Ua(t, e, "write to private field"), e.set(t, r), r), Ne, $e, Re, Me, Ze, Le;
8743
+ let ot = class extends v {
8744
8744
  constructor() {
8745
8745
  super(...arguments), At(this, Ne, []), At(this, $e, []), At(this, Re, !1), At(this, Me, !1), At(this, Ze, null), At(this, Le, this.editingNetwork?.authMethod ?? "authorization_code"), this.openAddModal = () => {
8746
8746
  this.isModalOpen = !0, this.editingNetwork = null;
@@ -8838,7 +8838,7 @@ Me = /* @__PURE__ */ new WeakMap();
8838
8838
  Ze = /* @__PURE__ */ new WeakMap();
8839
8839
  Le = /* @__PURE__ */ new WeakMap();
8840
8840
  ot.styles = [
8841
- h.styles,
8841
+ v.styles,
8842
8842
  Jo,
8843
8843
  y`
8844
8844
  @media (max-width: 600px) {
@@ -8872,12 +8872,12 @@ wt([
8872
8872
  ot = wt([
8873
8873
  A("wg-networks")
8874
8874
  ], ot);
8875
- var Yp = Object.defineProperty, Up = Object.getOwnPropertyDescriptor, Ua = (t, e, r, o) => {
8876
- for (var a = o > 1 ? void 0 : o ? Up(e, r) : e, n = t.length - 1, i; n >= 0; n--)
8875
+ var Up = Object.defineProperty, Yp = Object.getOwnPropertyDescriptor, Ya = (t, e, r, o) => {
8876
+ for (var a = o > 1 ? void 0 : o ? Yp(e, r) : e, n = t.length - 1, i; n >= 0; n--)
8877
8877
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
8878
- return o && a && Yp(e, r, a), a;
8878
+ return o && a && Up(e, r, a), a;
8879
8879
  };
8880
- let dr = class extends h {
8880
+ let dr = class extends v {
8881
8881
  constructor() {
8882
8882
  super(...arguments), this.href = "/";
8883
8883
  }
@@ -8893,17 +8893,17 @@ let dr = class extends h {
8893
8893
  }
8894
8894
  };
8895
8895
  dr.styles = [
8896
- h.styles,
8896
+ v.styles,
8897
8897
  y`
8898
8898
  :host {
8899
8899
  display: block;
8900
8900
  }
8901
8901
  `
8902
8902
  ];
8903
- Ua([
8903
+ Ya([
8904
8904
  b({ type: String })
8905
8905
  ], dr.prototype, "href", 2);
8906
- dr = Ua([
8906
+ dr = Ya([
8907
8907
  A("not-found")
8908
8908
  ], dr);
8909
8909
  var Gp = Object.defineProperty, Hp = Object.getOwnPropertyDescriptor, Ga = (t, e, r, o) => {
@@ -8911,7 +8911,7 @@ var Gp = Object.defineProperty, Hp = Object.getOwnPropertyDescriptor, Ga = (t, e
8911
8911
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
8912
8912
  return o && a && Gp(e, r, a), a;
8913
8913
  };
8914
- let cr = class extends h {
8914
+ let cr = class extends v {
8915
8915
  constructor() {
8916
8916
  super(...arguments), this.sessions = [];
8917
8917
  }
@@ -8985,7 +8985,7 @@ let cr = class extends h {
8985
8985
  }
8986
8986
  };
8987
8987
  cr.styles = [
8988
- h.styles,
8988
+ v.styles,
8989
8989
  Rt,
8990
8990
  y`
8991
8991
  :host {
@@ -9111,7 +9111,7 @@ const Fp = k({
9111
9111
  let Po = /* @__PURE__ */ (function(t) {
9112
9112
  return t.SPLICE_WALLET_REQUEST = "SPLICE_WALLET_REQUEST", t.SPLICE_WALLET_RESPONSE = "SPLICE_WALLET_RESPONSE", t.SPLICE_WALLET_EXT_READY = "SPLICE_WALLET_EXT_READY", t.SPLICE_WALLET_EXT_ACK = "SPLICE_WALLET_EXT_ACK", t.SPLICE_WALLET_EXT_OPEN = "SPLICE_WALLET_EXT_OPEN", t.SPLICE_WALLET_IDP_AUTH_SUCCESS = "SPLICE_WALLET_IDP_AUTH_SUCCESS", t.SPLICE_WALLET_LOGOUT = "SPLICE_WALLET_LOGOUT", t.SPLICE_WALLET_BROADCAST_ORIGIN = "SPLICE_WALLET_BROADCAST_ORIGIN", t.SPLICE_WALLET_BROADCAST_ORIGIN_ACK = "SPLICE_WALLET_BROADCAST_ORIGIN_ACK", t;
9113
9113
  })({});
9114
- const me = w().min(1).describe("Optional routing key for browser-extension messaging. When present, only the matching extension should handle the message."), tb = Yt("type", [
9114
+ const me = w().min(1).describe("Optional routing key for browser-extension messaging. When present, only the matching extension should handle the message."), tb = Ut("type", [
9115
9115
  k({
9116
9116
  type: P("SPLICE_WALLET_REQUEST"),
9117
9117
  request: Jp,
@@ -9145,7 +9145,7 @@ const me = w().min(1).describe("Optional routing key for browser-extension messa
9145
9145
  }),
9146
9146
  k({ type: P("SPLICE_WALLET_BROADCAST_ORIGIN_ACK") })
9147
9147
  ]), eb = (t) => typeof t == "object" && t !== null && "data" in t ? rb(t.data) : !1, rb = (t) => tb.safeParse(t).success;
9148
- Yt("walletType", [k({
9148
+ Ut("walletType", [k({
9149
9149
  walletType: P("extension"),
9150
9150
  /** Matches {@link ProviderId} from discovery (e.g. `browser:canton`) for session restore. */
9151
9151
  providerId: w().optional(),
@@ -9193,10 +9193,10 @@ var ab = Object.defineProperty, ib = Object.getOwnPropertyDescriptor, Xa = (t) =
9193
9193
  for (var a = o > 1 ? void 0 : o ? ib(e, r) : e, n = t.length - 1, i; n >= 0; n--)
9194
9194
  (i = t[n]) && (a = (o ? i(e, r, a) : i(a)) || a);
9195
9195
  return o && a && ab(e, r, a), a;
9196
- }, Va = (t, e, r) => e.has(t) || Xa("Cannot " + r), jo = (t, e, r) => (Va(t, e, "read from private field"), r ? r.call(t) : e.get(t)), To = (t, e, r) => e.has(t) ? Xa("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), Do = (t, e, r, o) => (Va(t, e, "write to private field"), e.set(t, r), r), Ye, Ue;
9197
- let Nt = class extends h {
9196
+ }, Va = (t, e, r) => e.has(t) || Xa("Cannot " + r), jo = (t, e, r) => (Va(t, e, "read from private field"), r ? r.call(t) : e.get(t)), To = (t, e, r) => e.has(t) ? Xa("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), Do = (t, e, r, o) => (Va(t, e, "write to private field"), e.set(t, r), r), Ue, Ye;
9197
+ let Nt = class extends v {
9198
9198
  constructor() {
9199
- super(...arguments), this.client = null, To(this, Ye, !1), To(this, Ue, !1), this.syncWallets = async () => {
9199
+ super(...arguments), this.client = null, To(this, Ue, !1), To(this, Ye, !1), this.syncWallets = async () => {
9200
9200
  if (!(!this.client || this.isSyncing)) {
9201
9201
  this.isSyncing = !0;
9202
9202
  try {
@@ -9217,16 +9217,16 @@ let Nt = class extends h {
9217
9217
  };
9218
9218
  }
9219
9219
  get isSyncNeeded() {
9220
- return jo(this, Ye);
9220
+ return jo(this, Ue);
9221
9221
  }
9222
9222
  set isSyncNeeded(t) {
9223
- Do(this, Ye, t);
9223
+ Do(this, Ue, t);
9224
9224
  }
9225
9225
  get isSyncing() {
9226
- return jo(this, Ue);
9226
+ return jo(this, Ye);
9227
9227
  }
9228
9228
  set isSyncing(t) {
9229
- Do(this, Ue, t);
9229
+ Do(this, Ye, t);
9230
9230
  }
9231
9231
  connectedCallback() {
9232
9232
  super.connectedCallback(), this.checkWalletSyncNeeded();
@@ -9259,10 +9259,10 @@ let Nt = class extends h {
9259
9259
  `;
9260
9260
  }
9261
9261
  };
9262
- Ye = /* @__PURE__ */ new WeakMap();
9263
9262
  Ue = /* @__PURE__ */ new WeakMap();
9263
+ Ye = /* @__PURE__ */ new WeakMap();
9264
9264
  Nt.styles = [
9265
- h.styles,
9265
+ v.styles,
9266
9266
  y`
9267
9267
  :host {
9268
9268
  display: inline-flex;
@@ -9353,7 +9353,7 @@ class db extends Event {
9353
9353
  super("signing-provider-change", { bubbles: !0, composed: !0 }), this.signingProviderId = e;
9354
9354
  }
9355
9355
  }
9356
- let N = class extends h {
9356
+ let N = class extends v {
9357
9357
  constructor() {
9358
9358
  super(...arguments), this.signingProviders = [], this.networkIds = [], this.vaultSigningProviders = [], this.vaults = [], this.submitting = !1, this.vaultsLoading = !1, this.submitLabel = "Add", this.submittingLabel = "Adding...", this.submittingMessage = "Creating party, please wait...", this.vaultsLoadingLabel = "Loading vaults...", qt(this, Ge, null), qt(this, He, null), qt(this, Xe, null), qt(this, Ve, null), qt(this, qe, null);
9359
9359
  }
@@ -9551,7 +9551,7 @@ Xe = /* @__PURE__ */ new WeakMap();
9551
9551
  Ve = /* @__PURE__ */ new WeakMap();
9552
9552
  qe = /* @__PURE__ */ new WeakMap();
9553
9553
  N.styles = [
9554
- h.styles,
9554
+ v.styles,
9555
9555
  y`
9556
9556
  :host {
9557
9557
  display: block;
@@ -9730,7 +9730,7 @@ class mb extends Event {
9730
9730
  super("wallet-allocate", { bubbles: !0, composed: !0 }), this.wallet = e;
9731
9731
  }
9732
9732
  }
9733
- let $t = class extends h {
9733
+ let $t = class extends v {
9734
9734
  constructor() {
9735
9735
  super(...arguments), this.wallet = null, this.verified = !1, this.loading = !1;
9736
9736
  }
@@ -9872,7 +9872,7 @@ let $t = class extends h {
9872
9872
  }
9873
9873
  };
9874
9874
  $t.styles = [
9875
- h.styles,
9875
+ v.styles,
9876
9876
  Rt,
9877
9877
  y`
9878
9878
  .party-card {
@@ -10039,7 +10039,7 @@ class Bb extends Event {
10039
10039
  });
10040
10040
  }
10041
10041
  }
10042
- let V = class extends h {
10042
+ let V = class extends v {
10043
10043
  constructor() {
10044
10044
  super(...arguments), this.networks = [], this.idps = [], this.connecting = !1, this.backHref = "/", ue(this, Fe, null), ue(this, Ke, null), ue(this, We, null), ue(this, Je, null);
10045
10045
  }
@@ -10206,7 +10206,7 @@ Ke = /* @__PURE__ */ new WeakMap();
10206
10206
  We = /* @__PURE__ */ new WeakMap();
10207
10207
  Je = /* @__PURE__ */ new WeakMap();
10208
10208
  V.styles = [
10209
- h.styles,
10209
+ v.styles,
10210
10210
  y`
10211
10211
  :host {
10212
10212
  display: block;
@@ -10363,7 +10363,7 @@ class xb extends Event {
10363
10363
  super("transaction-review", { bubbles: !0, composed: !0 }), this.transactionId = e, this.commandId = r;
10364
10364
  }
10365
10365
  }
10366
- let G = class extends h {
10366
+ let G = class extends v {
10367
10367
  constructor() {
10368
10368
  super(...arguments), this.transactionId = "", this.commandId = "", this.externalTxId = null, this.status = "", this.parsed = null, this.createdAt = null, this.signedAt = null, this.origin = null, this.loading = !1;
10369
10369
  }
@@ -10442,7 +10442,7 @@ let G = class extends h {
10442
10442
  }
10443
10443
  };
10444
10444
  G.styles = [
10445
- h.styles,
10445
+ v.styles,
10446
10446
  Rt,
10447
10447
  y`
10448
10448
  .activity-card {
@@ -10557,7 +10557,7 @@ class Ab extends Event {
10557
10557
  super("transaction-delete", { bubbles: !0, composed: !0 }), this.commandId = e;
10558
10558
  }
10559
10559
  }
10560
- let R = class extends h {
10560
+ let R = class extends v {
10561
10561
  constructor() {
10562
10562
  super(...arguments), this.commandId = "", this.externalTxId = null, this.status = "", this.txHash = "", this.tx = "", this.parsed = null, this.createdAt = null, this.signedAt = null, this.origin = null, this.backHref = "", this.isApproving = !1, this.isDeleting = !1, this.disabled = !1, this.decodedExpanded = !1;
10563
10563
  }
@@ -10765,7 +10765,7 @@ let R = class extends h {
10765
10765
  }
10766
10766
  };
10767
10767
  R.styles = [
10768
- h.styles,
10768
+ v.styles,
10769
10769
  y`
10770
10770
  :host {
10771
10771
  display: block;
@@ -11035,14 +11035,18 @@ class pr {
11035
11035
  const i = {
11036
11036
  type: Po.SPLICE_WALLET_BROADCAST_ORIGIN,
11037
11037
  origin: window.location.origin
11038
- }, s = (d) => {
11039
- eb(d) && d.data.type === Po.SPLICE_WALLET_BROADCAST_ORIGIN_ACK && n === d.origin && (clearInterval(l), window.removeEventListener("message", s));
11040
- };
11041
- window.addEventListener("message", s);
11042
- const l = setInterval(() => {
11038
+ }, s = 1e4;
11039
+ let l = !1;
11040
+ const d = setInterval(() => {
11043
11041
  o.postMessage(i, n);
11044
- }, 500);
11045
- return o.focus(), o;
11042
+ }, 500), m = setTimeout(() => {
11043
+ clearInterval(d), l || console.error(
11044
+ "Connection timed out waiting for child window."
11045
+ );
11046
+ }, s), g = (f) => {
11047
+ eb(f) && f.data.type === Po.SPLICE_WALLET_BROADCAST_ORIGIN_ACK && n === f.origin && (l = !0, clearInterval(d), clearTimeout(m), window.removeEventListener("message", g));
11048
+ };
11049
+ return window.addEventListener("message", g), o.focus(), o;
11046
11050
  } else {
11047
11051
  const o = this.getComponentUrl(e, r), a = pr.getInstance();
11048
11052
  return a.location.href = o, a.focus(), a;
@@ -11170,9 +11174,9 @@ export {
11170
11174
  Di as ApiKeyGenerateEvent,
11171
11175
  J as AppHeader,
11172
11176
  Q as AppLayout,
11173
- U as AuthEditor,
11174
- Ui as AuthEditorChangeEvent,
11175
- h as BaseElement,
11177
+ Y as AuthEditor,
11178
+ Yi as AuthEditorChangeEvent,
11179
+ v as BaseElement,
11176
11180
  Ki as CopyDappApiUrlEvent,
11177
11181
  sn as CopySuccessEvent,
11178
11182
  cn as ErrorPageBackEvent,