@ghostlytools/cli 1.10.6 → 1.11.0

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 (108) hide show
  1. package/README.md +27 -22
  2. package/SKILL.md +8 -5
  3. package/dist/assets/api-B-52sVYp.js +3 -0
  4. package/dist/assets/{api-DppWqAP3.js → api-CTqIcdu7.js} +532 -197
  5. package/dist/assets/api-CTqIcdu7.js.map +1 -0
  6. package/dist/assets/{apiKit-DFIho4Ev.js → apiKit-CZq4Lq4f.js} +97 -13
  7. package/dist/assets/apiKit-CZq4Lq4f.js.map +1 -0
  8. package/dist/assets/{apps-yBnbEtfV.js → apps-C_X0zgSG.js} +16 -4
  9. package/dist/assets/apps-C_X0zgSG.js.map +1 -0
  10. package/dist/assets/{apps-1MkGMH8m.js → apps-kRsY9S2S.js} +1 -1
  11. package/dist/assets/{arkade-bFAS6imn.js → arkade-_aaB7VbW.js} +2 -2
  12. package/dist/assets/{arkade-bFAS6imn.js.map → arkade-_aaB7VbW.js.map} +1 -1
  13. package/dist/assets/{backup-ejIX59o7.js → backup-DBg388Ke.js} +1 -1
  14. package/dist/assets/{backup-vj4J7M3e.js → backup-OTvrmk-w.js} +35 -7
  15. package/dist/assets/backup-OTvrmk-w.js.map +1 -0
  16. package/dist/assets/{blobFiles-XZ9PEXYy.js → blobFiles-BmsrvZc3.js} +3 -3
  17. package/dist/assets/{blobFiles-XZ9PEXYy.js.map → blobFiles-BmsrvZc3.js.map} +1 -1
  18. package/dist/assets/buttons-4EKtQl-7.js +2 -0
  19. package/dist/assets/{buttons-BoDMx3Ky.js → buttons-DUu7hxxT.js} +61 -30
  20. package/dist/assets/buttons-DUu7hxxT.js.map +1 -0
  21. package/dist/assets/{client-BQArefYa.js → client-DDpZP1R1.js} +55 -10
  22. package/dist/assets/client-DDpZP1R1.js.map +1 -0
  23. package/dist/assets/{codec-_MwTUz5E.js → codec-DrryGcPT.js} +2 -2
  24. package/dist/assets/{codec-_MwTUz5E.js.map → codec-DrryGcPT.js.map} +1 -1
  25. package/dist/assets/{envelope-CeZBNGX-.js → envelope-Q_rMgoE9.js} +2 -2
  26. package/dist/assets/{envelope-CeZBNGX-.js.map → envelope-Q_rMgoE9.js.map} +1 -1
  27. package/dist/assets/{irohWeb-C_Wnw7Q9.js → fedimintSdk-CqTeMdF0.js} +2 -354
  28. package/dist/assets/fedimintSdk-CqTeMdF0.js.map +1 -0
  29. package/dist/assets/{fileBytes-DqnfKIkj.js → fileBytes-B0z9A6Le.js} +2 -2
  30. package/dist/assets/{fileBytes-DqnfKIkj.js.map → fileBytes-B0z9A6Le.js.map} +1 -1
  31. package/dist/assets/{fileBytes-BABGEF13.js → fileBytes-BLPZq9YU.js} +3 -3
  32. package/dist/assets/{fileBytes-BABGEF13.js.map → fileBytes-BLPZq9YU.js.map} +1 -1
  33. package/dist/assets/{fileBytes-CQQK2uOh.js → fileBytes-BtIyoDF2.js} +1 -1
  34. package/dist/assets/{fileBytesIdb-DrXmDUSy.js → fileBytesIdb-Bmlrl9EO.js} +3 -3
  35. package/dist/assets/{fileBytesIdb-DrXmDUSy.js.map → fileBytesIdb-Bmlrl9EO.js.map} +1 -1
  36. package/dist/assets/fileBytesIdb-D8mAK4pF.js +2 -0
  37. package/dist/assets/{fileBytesOpfs-udKCzcLe.js → fileBytesOpfs-DBS0kbPT.js} +3 -3
  38. package/dist/assets/{fileBytesOpfs-udKCzcLe.js.map → fileBytesOpfs-DBS0kbPT.js.map} +1 -1
  39. package/dist/assets/{fixedHosts-B_2Rvyja.js → fixedHosts-BV5GDiTU.js} +3 -3
  40. package/dist/assets/{fixedHosts-B_2Rvyja.js.map → fixedHosts-BV5GDiTU.js.map} +1 -1
  41. package/dist/assets/{host-DFLzzKNr.js → host-BlUzZgQL.js} +336 -84
  42. package/dist/assets/host-BlUzZgQL.js.map +1 -0
  43. package/dist/assets/{hyperdhtRelay-CV6qMrom.js → hyperdhtRelay-BvI_uNZO.js} +2 -2
  44. package/dist/assets/{hyperdhtRelay-CV6qMrom.js.map → hyperdhtRelay-BvI_uNZO.js.map} +1 -1
  45. package/dist/assets/{idb-BHsAqENE.js → idb-CEuoNsTv.js} +16 -5
  46. package/dist/assets/idb-CEuoNsTv.js.map +1 -0
  47. package/dist/assets/{groupFiles-D-ZUUHrx.js → irohWeb-CqPN8VPY.js} +469 -16
  48. package/dist/assets/irohWeb-CqPN8VPY.js.map +1 -0
  49. package/dist/assets/{main-DxRwajM_.js → main-vQjlgEnt.js} +409 -126
  50. package/dist/assets/main-vQjlgEnt.js.map +1 -0
  51. package/dist/assets/{mainline-Bx184Ixg.js → mainline-p6HOW7sb.js} +2 -2
  52. package/dist/assets/{mainline-Bx184Ixg.js.map → mainline-p6HOW7sb.js.map} +1 -1
  53. package/dist/assets/{networkReason-BlQhTbXk.js → networkReason-DMffkiJ6.js} +4 -4
  54. package/dist/assets/{networkReason-BlQhTbXk.js.map → networkReason-DMffkiJ6.js.map} +1 -1
  55. package/dist/assets/{nwc-B3-PHX0L.js → nwc-2vH18oNy.js} +4 -4
  56. package/dist/assets/nwc-2vH18oNy.js.map +1 -0
  57. package/dist/assets/{nwcProvider-BeQBPB2q.js → nwcProvider-DpeDy0bV.js} +11 -3
  58. package/dist/assets/nwcProvider-DpeDy0bV.js.map +1 -0
  59. package/dist/assets/{ownDid-DAzW-Urb.js → ownDid-iKz8u_fM.js} +2 -2
  60. package/dist/assets/{ownDid-DAzW-Urb.js.map → ownDid-iKz8u_fM.js.map} +1 -1
  61. package/dist/assets/{words-BvdNuw_v.js → ownStatus-BlRKnM5F.js} +56 -4
  62. package/dist/assets/ownStatus-BlRKnM5F.js.map +1 -0
  63. package/dist/assets/{profiles-Bg43mRXu.js → profiles-B5e0TyvS.js} +22 -12
  64. package/dist/assets/profiles-B5e0TyvS.js.map +1 -0
  65. package/dist/assets/{registry-CAk2-5BQ.js → registry-Cc_PQb3k.js} +1 -1
  66. package/dist/assets/{registry-BDnsZJBi.js → registry-CnFO2Pp5.js} +123 -99
  67. package/dist/assets/registry-CnFO2Pp5.js.map +1 -0
  68. package/dist/assets/{resolve-UAfshn6j.js → resolve-DI8uAM_Y.js} +2 -2
  69. package/dist/assets/{resolve-UAfshn6j.js.map → resolve-DI8uAM_Y.js.map} +1 -1
  70. package/dist/assets/{restoredRows-YhlbokEE.js → restoredRows-C3LcxmOw.js} +4 -4
  71. package/dist/assets/{restoredRows-YhlbokEE.js.map → restoredRows-C3LcxmOw.js.map} +1 -1
  72. package/dist/assets/{server-DYdR0_Fj.js → server-DdtPxkqI.js} +2057 -655
  73. package/dist/assets/server-DdtPxkqI.js.map +1 -0
  74. package/dist/assets/{src-BTRPAi5X.js → src-BnpEQqzk.js} +813 -144
  75. package/dist/assets/src-BnpEQqzk.js.map +1 -0
  76. package/dist/assets/{sshForges-KtHK5x1x.js → sshForges-cdIAraDw.js} +2 -2
  77. package/dist/assets/{sshForges-KtHK5x1x.js.map → sshForges-cdIAraDw.js.map} +1 -1
  78. package/dist/assets/{translate-CYuygrvA.js → translate-kNopA04L.js} +2 -2
  79. package/dist/assets/{translate-CYuygrvA.js.map → translate-kNopA04L.js.map} +1 -1
  80. package/dist/assets/{usdt-Dw9IENe_.js → usdt-CDaLhEYh.js} +3 -3
  81. package/dist/assets/{usdt-Dw9IENe_.js.map → usdt-CDaLhEYh.js.map} +1 -1
  82. package/dist/assets/{waitNotice-Ce3YCinu.js → waitNotice-Cn0WJ-He.js} +3 -1
  83. package/dist/assets/waitNotice-Cn0WJ-He.js.map +1 -0
  84. package/dist/ghostly.mjs +1 -1
  85. package/examples/claude-code-agent.sh +5 -0
  86. package/package.json +2 -2
  87. package/dist/assets/api-DppWqAP3.js.map +0 -1
  88. package/dist/assets/api-K-i5MrP-.js +0 -3
  89. package/dist/assets/apiKit-DFIho4Ev.js.map +0 -1
  90. package/dist/assets/apps-yBnbEtfV.js.map +0 -1
  91. package/dist/assets/backup-vj4J7M3e.js.map +0 -1
  92. package/dist/assets/buttons-BoDMx3Ky.js.map +0 -1
  93. package/dist/assets/buttons-DG1CKgAI.js +0 -2
  94. package/dist/assets/client-BQArefYa.js.map +0 -1
  95. package/dist/assets/fileBytesIdb-BtXATa7j.js +0 -2
  96. package/dist/assets/groupFiles-D-ZUUHrx.js.map +0 -1
  97. package/dist/assets/host-DFLzzKNr.js.map +0 -1
  98. package/dist/assets/idb-BHsAqENE.js.map +0 -1
  99. package/dist/assets/irohWeb-C_Wnw7Q9.js.map +0 -1
  100. package/dist/assets/main-DxRwajM_.js.map +0 -1
  101. package/dist/assets/nwc-B3-PHX0L.js.map +0 -1
  102. package/dist/assets/nwcProvider-BeQBPB2q.js.map +0 -1
  103. package/dist/assets/profiles-Bg43mRXu.js.map +0 -1
  104. package/dist/assets/registry-BDnsZJBi.js.map +0 -1
  105. package/dist/assets/server-DYdR0_Fj.js.map +0 -1
  106. package/dist/assets/src-BTRPAi5X.js.map +0 -1
  107. package/dist/assets/waitNotice-Ce3YCinu.js.map +0 -1
  108. package/dist/assets/words-BvdNuw_v.js.map +0 -1
@@ -1,10 +1,11 @@
1
- import { $n as engineError, Ai as IDENTITY_REVOCATION_LABEL, Bi as newIdentityBinding, Dn as requestLnurlInvoice, Fi as emptyIdentityLedger, Gr as transferEnded, Hi as revokesIdentity, Ii as identityRefusal, Iu as budgetRetryMs, J as meshMessageRef, Li as identityRevocationValue, Lu as isDiscoveryBudgetError, Mi as IdentityExchange, Ni as boundIdentityDisplay, On as resolveLightningDestination, Pa as fileMessageText, Ri as identityStatement, Ua as RateWindow, Ur as FileUplink, Vi as receivedIdentityStatus, Vr as ChatFiles, ad as toBase64Url, an as WALLET_NETWORKS, ar as GROUP_WANT_NO_FRAME, cr as isGroupMessageId, dn as walletNetworkOf, dr as readGroupWant, er as engineText, fr as readGroupWantNo, id as randomBytes, ji as IdentityCheckUnavailable, ki as IDENTITY_MAX_VALIDITY, kn as decodeBolt11, lo as replySnippet, nd as fromBase64Url, nr as GROUP_FILE_LIMITS, or as fetchesByItself, rr as GROUP_HAVE_FRAME, sr as groupFileFallback, ur as readGroupHave, zi as isIdentityBinding } from "./src-BTRPAi5X.js";
1
+ import { $n as engineError, Bi as IdentityExchange, Dn as requestLnurlInvoice, Gi as identityRevocationValue, Gr as transferEnded, Ha as fileMessageText, J as meshMessageRef, Ji as newIdentityBinding, Ki as identityStatement, Ku as budgetRetryMs, Li as IDENTITY_MAX_VALIDITY, On as resolveLightningDestination, Ri as IDENTITY_REVOCATION_LABEL, Ui as emptyIdentityLedger, Ur as FileUplink, Vi as boundIdentityDisplay, Vr as ChatFiles, Wi as identityRefusal, Xi as revokesIdentity, Yi as receivedIdentityStatus, Za as RateWindow, _o as replySnippet, aa as irohRelayUrl, an as WALLET_NETWORKS, ar as GROUP_WANT_NO_FRAME, cr as isGroupMessageId, dn as walletNetworkOf, dr as readGroupWant, er as engineText, fd as fromBase64Url, fr as readGroupWantNo, hd as toBase64Url, ia as irohDescriptor, kn as decodeBolt11, md as randomBytes, nr as GROUP_FILE_LIMITS, or as fetchesByItself, qi as isIdentityBinding, qu as isDiscoveryBudgetError, ra as dialableIrohRelay, rr as GROUP_HAVE_FRAME, sr as groupFileFallback, ur as readGroupHave, zi as IdentityCheckUnavailable } from "./src-BnpEQqzk.js";
2
2
  import { a as describeProvider, c as offeredIn, d as sourceProblem, n as PROVIDER_PLATFORMS, o as isNothingSpentError, s as networkMode, t as NothingSpentError, u as redact } from "./types-C4_KafL_.js";
3
- import { g as wrap, h as transact, i as STORES, m as store, s as databaseName, u as fileStore } from "./idb-BHsAqENE.js";
4
- import { a as sealSeed, g as whenDataKeyDropped, h as sealSecret, i as newDeviceKey, m as openSecret, o as unsealSeed, t as networkReason } from "./networkReason-BlQhTbXk.js";
3
+ import { r as nwcWalletName, t as nwc } from "./nwcProvider-DpeDy0bV.js";
4
+ import { b as transact, p as fileStore, s as STORES, u as databaseName, x as wrap, y as store } from "./idb-CEuoNsTv.js";
5
+ import { a as sealSeed, g as whenDataKeyDropped, h as sealSecret, i as newDeviceKey, m as openSecret, o as unsealSeed, t as networkReason } from "./networkReason-DMffkiJ6.js";
6
+ import { f as FILE_BYTES_STEP, o as fileBytes, s as fileBytesOf } from "./fileBytes-BLPZq9YU.js";
5
7
  import { t as BITCOIN_INVOICE_ON_TESTNET, u as mintNetwork } from "./mints-j5XAOk4f.js";
6
- import { c as boundedIdentityFetch, l as verifyIdentity } from "./ownDid-DAzW-Urb.js";
7
- import { f as FILE_BYTES_STEP, o as fileBytes, s as fileBytesOf } from "./fileBytes-BABGEF13.js";
8
+ import { c as boundedIdentityFetch, l as verifyIdentity } from "./ownDid-iKz8u_fM.js";
8
9
  import { sha256 } from "@noble/hashes/sha2.js";
9
10
  import { validateMnemonic } from "@scure/bip39";
10
11
  import { wordlist } from "@scure/bip39/wordlists/english.js";
@@ -578,6 +579,11 @@ var ProviderSources = class {
578
579
  stopped = false;
579
580
  /** When the balance is read next, while reads get no answer (one key: this source). */
580
581
  reads;
582
+ /** Balance reads under way, and whether another call to the source got its answer meanwhile (`answered`). */
583
+ reading = 0;
584
+ answeredMeanwhile = false;
585
+ /** An answer to another call already brought a read since the last read that answered: the next ones wait their turn. */
586
+ answerRead = false;
581
587
  view = {
582
588
  mode: "mainnet",
583
589
  status: "none",
@@ -691,6 +697,23 @@ var ProviderSources = class {
691
697
  }
692
698
  if (this.failures && !this.connecting) this.retryNow();
693
699
  }
700
+ /**
701
+ * The connected source answered another call (a payment, a fee estimate, an invoice made or looked up): it is back.
702
+ * While its balance reads get no answer, the balance is read now rather than when the wait they earned ends; a
703
+ * read that answers forgets that wait, as any does. A read already under way is left to say it (if it gets no
704
+ * answer, the next one is `refreshMs` later). Once per stretch of failed reads, and one that fails keeps doubling
705
+ * the wait: a source that answers everything but its balance keeps the slow pace. A source whose reads answer:
706
+ * nothing changes.
707
+ */
708
+ answered(provider) {
709
+ if (this.stopped || provider !== this.provider || !this.options.refresh || !this.view.error || this.answerRead) return;
710
+ this.answerRead = true;
711
+ if (this.reading) {
712
+ this.answeredMeanwhile = true;
713
+ return;
714
+ }
715
+ this.refresh();
716
+ }
694
717
  async connect(eager = false) {
695
718
  clearTimeout(this.retry);
696
719
  if (this.stopped || this.provider) return;
@@ -1000,6 +1023,7 @@ var ProviderSources = class {
1000
1023
  }
1001
1024
  const before = this.view;
1002
1025
  let wait = this.options.refreshMs ?? REFRESH_MS;
1026
+ this.reading++;
1003
1027
  try {
1004
1028
  const details = await this.options.refresh(provider);
1005
1029
  if (provider !== this.provider) return;
@@ -1012,6 +1036,7 @@ var ProviderSources = class {
1012
1036
  };
1013
1037
  this.remember(details);
1014
1038
  this.reads.forget("balance");
1039
+ this.answerRead = false;
1015
1040
  } catch (error) {
1016
1041
  if (provider !== this.provider) return;
1017
1042
  this.view = {
@@ -1019,6 +1044,10 @@ var ProviderSources = class {
1019
1044
  error: `Could not read the balance: ${redact(error, this.secrets)}`
1020
1045
  };
1021
1046
  wait = this.reads.missed("balance", Date.now());
1047
+ if (this.answeredMeanwhile) wait = this.options.refreshMs ?? REFRESH_MS;
1048
+ } finally {
1049
+ this.reading--;
1050
+ if (!this.reading) this.answeredMeanwhile = false;
1022
1051
  }
1023
1052
  const after = this.view, was = before;
1024
1053
  if (Object.keys({
@@ -1052,6 +1081,7 @@ var ProviderSources = class {
1052
1081
  clearTimeout(this.timer);
1053
1082
  clearTimeout(this.retry);
1054
1083
  this.reads.forget("balance");
1084
+ this.answerRead = false;
1055
1085
  this.controller.abort();
1056
1086
  this.controller = new AbortController();
1057
1087
  const provider = this.provider;
@@ -1264,6 +1294,7 @@ var LightningService = class {
1264
1294
  if (!provider.capabilities.receive) throw new Error(`${descriptor.label} cannot create invoices`);
1265
1295
  if (!provider.capabilities.lookup && !provider.settlesItself) throw new Error(`${descriptor.label} cannot look up its invoices, so a payment to it would never be seen: receive with another Lightning card, or connect it with invoice lookup allowed`);
1266
1296
  const created = await provider.createInvoice(amount, context.memo ?? "Ghostly");
1297
+ this.sources.answered(provider);
1267
1298
  const decoded = decodeBolt11(created.invoice);
1268
1299
  if (!decoded || decoded.amountSat !== amount || decoded.paymentHash && decoded.paymentHash !== created.paymentHash || created.amount !== amount) throw new Error(`${descriptor.label} returned an invoice that does not match the request`);
1269
1300
  this.checkNetwork(decoded.network);
@@ -1393,6 +1424,7 @@ var LightningService = class {
1393
1424
  if (this.mode === "testnet" && decoded.network === "bitcoin" && !(provider instanceof CashuMintLightning)) throw new Error(BITCOIN_INVOICE_ON_TESTNET);
1394
1425
  if (!provider.capabilities.send) throw new Error(`${descriptor.label} cannot pay invoices`);
1395
1426
  const maxFee = provider.estimateFee ? await provider.estimateFee(decoded.invoice, decoded.amountSat) : defaultFeeCap(decoded.amountSat);
1427
+ if (provider.estimateFee) this.sources.answered(provider);
1396
1428
  if (!Number.isSafeInteger(maxFee) || maxFee < 0) throw new Error(`${descriptor.label} returned an invalid fee`);
1397
1429
  const id = crypto.randomUUID();
1398
1430
  this.quotes.set(id, {
@@ -1449,6 +1481,7 @@ var LightningService = class {
1449
1481
  paying += 1;
1450
1482
  try {
1451
1483
  const result = await quote.provider.payInvoice(quote.invoice, quote.maxFee, context.note);
1484
+ this.sources.answered(quote.provider);
1452
1485
  op = result.state === "paid" ? {
1453
1486
  ...op,
1454
1487
  state: "paid",
@@ -1557,6 +1590,7 @@ var LightningService = class {
1557
1590
  paymentHash: op.paymentHash,
1558
1591
  ref: op.ref
1559
1592
  });
1593
+ this.sources.answered(provider);
1560
1594
  if (outcome === "pending") missed(op);
1561
1595
  if (outcome !== "paid" && outcome !== "failed") continue;
1562
1596
  this.outAsk.forget(op.paymentHash);
@@ -1598,6 +1632,7 @@ var LightningService = class {
1598
1632
  ref: op.ref
1599
1633
  });
1600
1634
  this.invoiceAsk.forget(op.paymentHash);
1635
+ this.sources.answered(provider);
1601
1636
  if (!await unchanged()) continue;
1602
1637
  if (status.state === "paid") {
1603
1638
  await this.put({
@@ -1617,6 +1652,7 @@ var LightningService = class {
1617
1652
  paymentHash: op.paymentHash,
1618
1653
  ref: op.ref
1619
1654
  });
1655
+ this.sources.answered(provider);
1620
1656
  if (status.state === "pending") {
1621
1657
  missed(op);
1622
1658
  continue;
@@ -1800,6 +1836,25 @@ var cashuCard = (now) => ({
1800
1836
  createdAt: now
1801
1837
  });
1802
1838
  var shortName = (providerId, label) => SHORT[providerId] ?? label(providerId);
1839
+ /** At most this many characters of the wallet's own name go into a new card's name. */
1840
+ var ALIAS_IN_NAME = 20;
1841
+ /**
1842
+ * A new card's name: the wallet's own name, then its source's short name ("Alby Hub (NWC)"), or the short name alone.
1843
+ * An NWC wallet's name leaves out "via <relay host>" (the card's subtitle shows it). A longer name is cut where a word
1844
+ * ends, with "…", never in the middle of a word.
1845
+ */
1846
+ function defaultCardName(providerId, alias, short) {
1847
+ const own = (alias && providerId === nwc.id ? nwcWalletName(alias) : alias ?? "").replace(/\s+/g, " ").trim();
1848
+ return own ? `${cutAtWord(own, ALIAS_IN_NAME)} (${short})` : short;
1849
+ }
1850
+ /** `text` in at most `max` UTF-16 units (the unit `rename` counts), cut after a whole word with "…" when longer. */
1851
+ function cutAtWord(text, max) {
1852
+ if (text.length <= max) return text;
1853
+ let head = text.slice(0, max - 1);
1854
+ if (/[\uD800-\uDBFF]$/.test(head)) head = head.slice(0, -1);
1855
+ const space = text[head.length] === " " ? head.length : head.lastIndexOf(" ");
1856
+ return `${(space > 0 ? head.slice(0, space) : head).replace(/[\s,;:·–—-]+$/u, "") || head}…`;
1857
+ }
1803
1858
  /**
1804
1859
  * The Lightning cards of one network, each with its own source, balance and journal: "Alby Hub (NWC)", "Home LND",
1805
1860
  * the Cashu mints. A payment goes through the card picked for it; a chat request's invoice and Receive come from the
@@ -1950,7 +2005,7 @@ var LightningCards = class {
1950
2005
  } finally {
1951
2006
  this.adding = void 0;
1952
2007
  }
1953
- card.name = this.freeName(service.view.alias ? `${service.view.alias.slice(0, 20)} (${shortName(providerId, this.label)})` : shortName(providerId, this.label));
2008
+ card.name = this.freeName(defaultCardName(providerId, service.view.alias, shortName(providerId, this.label)));
1954
2009
  const receive = this.receivingId === "cashu" ? id : this.stored.receive;
1955
2010
  const hidden = this.services.has("cashu") && !this.options.hasMints();
1956
2011
  const cards = [...this.stored.cards.filter((c) => !hidden || c.id !== "cashu"), card];
@@ -2145,7 +2200,7 @@ var registry;
2145
2200
  var loading;
2146
2201
  var listeners = /* @__PURE__ */ new Set();
2147
2202
  function loadIdentityProviders() {
2148
- return loading ??= import("./registry-CAk2-5BQ.js").then((m) => {
2203
+ return loading ??= import("./registry-Cc_PQb3k.js").then((m) => {
2149
2204
  registry = m;
2150
2205
  for (const listener of listeners) listener();
2151
2206
  return m;
@@ -2325,6 +2380,7 @@ var IdentityProofs = class {
2325
2380
  const due = Math.min(REVOCATION_CHECK_MS, this.revocationsCheckedAt + REVOCATION_CHECK_MS - Date.now());
2326
2381
  this.lookUpIn(Math.max(6e4, due));
2327
2382
  every(AUTO_RECHECK_TICK_MS, AUTO_RECHECK_FIRST_MS, () => this.recheckDue());
2383
+ every(3e5, 3e5, () => this.expireChallenges());
2328
2384
  this.unlisten ??= whenDataKeyDropped(() => this.forgetSeeds());
2329
2385
  }
2330
2386
  /** The network is back: a revocation lookup that could not run, and a revocation not published offline, go now. */
@@ -2414,7 +2470,7 @@ var IdentityProofs = class {
2414
2470
  let refused;
2415
2471
  let fetch = this.fetch;
2416
2472
  if (this.host.relayOnly?.()) {
2417
- const { fixedIdentityHosts } = await import("./fixedHosts-B_2Rvyja.js");
2473
+ const { fixedIdentityHosts } = await import("./fixedHosts-BV5GDiTU.js");
2418
2474
  const fixed = fixedIdentityHosts();
2419
2475
  fetch = async (url, options) => {
2420
2476
  const host = new URL(url).host;
@@ -2735,6 +2791,13 @@ var IdentityProofs = class {
2735
2791
  };
2736
2792
  });
2737
2793
  }
2794
+ /** Every chat's challenges whose window ended unanswered, and their verifying lines (`IdentityExchange.expire`). */
2795
+ async expireChallenges() {
2796
+ for (const linkId of this.host.linkIds()) {
2797
+ if (this.ended || !this.running) return;
2798
+ if (this.host.ledger(linkId)?.challenges.length) await this.exchange(linkId)?.expire().catch(() => {});
2799
+ }
2800
+ }
2738
2801
  /** The 12 h lookup's wait between two reads, or for the budget: false when `stop` ended it. */
2739
2802
  lookupPause(ms) {
2740
2803
  return new Promise((resolve) => {
@@ -3350,7 +3413,12 @@ var GroupFileDesk = class {
3350
3413
  */
3351
3414
  askedOn = /* @__PURE__ */ new Map();
3352
3415
  edgesById = /* @__PURE__ */ new Map();
3353
- /** My file about to be announced, by `<group>\n<digest>`: the message that announces it takes this local id. */
3416
+ /**
3417
+ * My files about to be announced, by `<group>\n<digest>`, in the order they were handed over: the message that
3418
+ * announces one takes the first one's local id. A list, not one id: the same bytes sent twice at once (two picks, two
3419
+ * CLI sends) are two files, each its own message's. A group's sends are announced one after another in the order they
3420
+ * were made, so the first waiting is this message's (agents#3772).
3421
+ */
3354
3422
  own = /* @__PURE__ */ new Map();
3355
3423
  /** Announcements sent per group, and taken per member of a group (WISP 503 § Rules for both, Pace). */
3356
3424
  sentPace = /* @__PURE__ */ new Map();
@@ -3527,11 +3595,35 @@ var GroupFileDesk = class {
3527
3595
  }
3528
3596
  /** My file, stored under `fileId` with the author's digest, is about to be announced in the group: its message takes it. */
3529
3597
  outgoing(groupId, fileId, meta) {
3530
- this.own.set(`${groupId}\n${meta.d}`, fileId);
3598
+ const key = `${groupId}\n${meta.d}`;
3599
+ this.own.set(key, [...this.own.get(key) ?? [], {
3600
+ fileId,
3601
+ meta
3602
+ }]);
3531
3603
  }
3532
- /** The announcement did not go: the file is not this group's after all. */
3604
+ /**
3605
+ * The announcement did not go: the file is not this group's after all. `meta` is the one handed to `outgoing`, which
3606
+ * tells it from another send of the same bytes still on its way (its caller deletes this one's local id).
3607
+ */
3533
3608
  notSent(groupId, meta) {
3534
- this.own.delete(`${groupId}\n${meta.d}`);
3609
+ const key = `${groupId}\n${meta.d}`, waiting = this.own.get(key) ?? [];
3610
+ const at = waiting.findIndex((entry) => entry.meta === meta);
3611
+ const left = waiting.filter((_, i) => i !== (at < 0 ? 0 : at));
3612
+ if (left.length) this.own.set(key, left);
3613
+ else this.own.delete(key);
3614
+ }
3615
+ /**
3616
+ * The local id of my file a message of mine announces, taken from those waiting: the first whose record is still
3617
+ * here. One whose send failed past its caller's notice (its record deleted) is passed over, not given to this message.
3618
+ */
3619
+ async takeOwn(groupId, digest) {
3620
+ const key = `${groupId}\n${digest}`;
3621
+ for (let waiting = this.own.get(key); waiting?.length; waiting = this.own.get(key)) {
3622
+ const [{ fileId }, ...rest] = waiting;
3623
+ if (rest.length) this.own.set(key, rest);
3624
+ else this.own.delete(key);
3625
+ if (await this.deps.store.get(fileId).then((record) => !!record, () => true)) return fileId;
3626
+ }
3535
3627
  }
3536
3628
  /**
3537
3629
  * A message of the group announces a file (mine, or a member's): the file its row shows. A member's is kept here
@@ -3544,9 +3636,8 @@ var GroupFileDesk = class {
3544
3636
  this.arrivedAgain(groupId, m.id, m.epoch);
3545
3637
  return messageFile(this.kept.get(known));
3546
3638
  }
3547
- const ownId = m.sender === me ? this.own.get(`${groupId}\n${m.file.d}`) : void 0;
3639
+ const ownId = m.sender === me && this.own.has(`${groupId}\n${m.file.d}`) ? await this.takeOwn(groupId, m.file.d) : void 0;
3548
3640
  if (ownId) {
3549
- this.own.delete(`${groupId}\n${m.file.d}`);
3550
3641
  for (const pace of this.sentPaces(groupId)) pace.take();
3551
3642
  const kept = {
3552
3643
  id: ownId,
@@ -4616,6 +4707,368 @@ function messageFile(kept) {
4616
4707
  };
4617
4708
  }
4618
4709
  //#endregion
4619
- export { ModeGate as $, IdentityProofs as A, ProviderSources as B, FileAppender as C, streamStored as D, storedSize as E, normalizePhrase as F, breezDatabase as G, CASHU_MINT_SOURCE as H, journaledPayment as I, dropBreezDatabase as J, breezDatabaseInUse as K, lightningPaying as L, LightningCards as M, cardsKey as N, waitingGroupFile as O, isRecoveryPhrase as P, ModeChanged as Q, INVOICE_PACE as R, WALLET_TYPES as S, removeStored as T, cashuMint as U, sourceKey as V, AskBackoff as W, iceServerSetting as X, iceServerProblem as Y, relayOnlyProblem as Z, crossNetwork as _, storedGroupFiles as a, setAwayWallets as at, walletInstances as b, receivedPairedReply as c, paymentAlias as d, WrongNetworkError as et, paymentWireId as f, createTiming as g, createFailure as h, groupOfFile as i, requireTurn as it, CASHU_CARD as j, IDENTITY_DRAFT_TTL_MS as k, replyRef as l, assertConfirmedReal as m, groupFileId as n, awayFrom as nt, groupReply as o, setSingleWriterGate as ot, WALLET_NAMES as p, breezDatabasesFor as q, groupFileText as r, refuseAway as rt, pairedWireReply as s, GroupFileDesk as t, networkLabel as tt, replyTo as u, paymentNetwork as v, readStored as w, MESSAGE_DETAILS_MAX_BYTES as x, paymentNetworksOf as y, nextInvoiceAsk as z };
4710
+ //#region ../browser/src/platform/irohWeb.ts
4711
+ /**
4712
+ * Iroh (WISP 102) in a browser: the same QUIC/TLS session and binding as the
4713
+ * Desktop's native Iroh, but relay only. A page cannot send UDP, so every
4714
+ * packet goes through an Iroh relay over a WebSocket; the relay sees who talks
4715
+ * to whom and when, never the frames.
4716
+ *
4717
+ * The wasm (about 1 MB gzip) loads on the first chat that starts an endpoint,
4718
+ * never on the app's first load.
4719
+ */
4720
+ /**
4721
+ * n0's public relays, the same ones the Desktop's Iroh homes on by default, then Ghostly's own (`iroh-relay` behind a
4722
+ * Cloudflare tunnel) as one more fallback. Iroh homes on the one with the lowest latency it measures, not the first.
4723
+ * Iroh itself names n0's with the trailing dot of a full domain name (`use1-1.relay.n0.iroh.link.`), and compares relay
4724
+ * URLs as text; here they have none, because WebKit opens no host name that ends in a dot. `BROWSER_SPELLING` is what
4725
+ * keeps the two one relay. Ghostly's stays plain everywhere: the tunnel in front of it answers the dotted name with 404.
4726
+ * At most `MAX_IROH_RELAYS`, the wasm's own limit.
4727
+ */
4728
+ var DEFAULT_IROH_RELAYS = [
4729
+ "https://use1-1.relay.n0.iroh.link/",
4730
+ "https://euc1-1.relay.n0.iroh.link/",
4731
+ "https://aps1-1.relay.n0.iroh.link/",
4732
+ "https://usw1-1.relay.n0.iroh.link/",
4733
+ "https://iroh.miguelmedeiros.dev/"
4734
+ ];
4735
+ /**
4736
+ * Whether one of these relays is n0's public ones (`*.iroh.link`, either spelling): those refused six of sixteen
4737
+ * listeners started at once, so an app that may home on one keeps the listener count they took.
4738
+ */
4739
+ function onPublicIrohRelay(relays) {
4740
+ return relays.some((relay) => {
4741
+ try {
4742
+ return /(^|\.)iroh\.link\.?$/.test(new URL(relay).hostname);
4743
+ } catch {
4744
+ return false;
4745
+ }
4746
+ });
4747
+ }
4748
+ /**
4749
+ * The spelling of every relay URL handed to the wasm Iroh (`irohRelayUrl`): the relays it homes on and a contact's
4750
+ * relay before a dial. One spelling, so a contact on this endpoint's relay is reached over the connection already
4751
+ * open to it; without the dot, so Safari can open it (a Desktop's record names its relay with the dot).
4752
+ */
4753
+ var BROWSER_SPELLING = "plain";
4754
+ /**
4755
+ * Why a relay URL cannot be used, or null. TLS, except on this machine (a local `iroh-relay --dev`): a page
4756
+ * may not open plain WebSockets elsewhere, and the relay's operator would see traffic metadata in the clear.
4757
+ */
4758
+ function irohRelayProblem(value) {
4759
+ let url;
4760
+ try {
4761
+ url = new URL(value);
4762
+ } catch {
4763
+ return `Not a relay address: ${value}`;
4764
+ }
4765
+ const local = [
4766
+ "localhost",
4767
+ "127.0.0.1",
4768
+ "[::1]"
4769
+ ].includes(url.hostname);
4770
+ if (url.protocol !== "https:" && !(url.protocol === "http:" && local)) return `Use an https:// relay address: ${value}`;
4771
+ if (url.username || url.password || url.search || url.hash || value.length > 256) return `Not a relay address: ${value}`;
4772
+ return null;
4773
+ }
4774
+ var loaded = null;
4775
+ /** Loads the wasm once per page. Tests pass their own `load` (Node reads the file). */
4776
+ function loadIrohWasm() {
4777
+ loaded ??= import("./ghostly_iroh_web-BzAXJUYH.js").then(async (module) => {
4778
+ await module.default();
4779
+ return module;
4780
+ }).catch((error) => {
4781
+ loaded = null;
4782
+ throw error;
4783
+ });
4784
+ return loaded;
4785
+ }
4786
+ var SEND_BUDGET = 122880;
4787
+ var MAX_FRAME = 61440;
4788
+ /** How often an endpoint reads which relay it is homed on (`createIrohWebEndpoint`). */
4789
+ var HOME_CHECK_MS = 5e3;
4790
+ /** One paired channel over one QUIC stream. Sends are queued in order. */
4791
+ var IrohWebChannel = class {
4792
+ conn;
4793
+ forget;
4794
+ reader = null;
4795
+ buffered = [];
4796
+ queue = Promise.resolve();
4797
+ closed = false;
4798
+ bufferedAmount = 0;
4799
+ sendBudget = SEND_BUDGET;
4800
+ onClose = null;
4801
+ constructor(conn, forget) {
4802
+ this.conn = conn;
4803
+ this.forget = forget;
4804
+ this.read();
4805
+ }
4806
+ get onMessage() {
4807
+ return this.reader;
4808
+ }
4809
+ set onMessage(reader) {
4810
+ this.reader = reader;
4811
+ if (reader) for (const text of this.buffered.splice(0)) reader(text);
4812
+ }
4813
+ async read() {
4814
+ try {
4815
+ for (;;) {
4816
+ const text = await this.conn.recv();
4817
+ if (text === void 0 || this.closed) break;
4818
+ if (this.reader) this.reader(text);
4819
+ else if (this.buffered.length < 64) this.buffered.push(text);
4820
+ else break;
4821
+ }
4822
+ } catch {}
4823
+ this.close();
4824
+ }
4825
+ send(data) {
4826
+ if (typeof data !== "string" || this.closed || !data.length || data.length > MAX_FRAME || this.bufferedAmount + data.length > SEND_BUDGET) throw new Error("Iroh channel is closed or its send budget is full");
4827
+ this.bufferedAmount += data.length;
4828
+ this.queue = this.queue.then(() => this.closed ? void 0 : this.conn.send(data)).catch(() => this.close()).finally(() => {
4829
+ this.bufferedAmount -= data.length;
4830
+ });
4831
+ }
4832
+ drained() {
4833
+ return this.queue;
4834
+ }
4835
+ get rttMs() {
4836
+ const rtt = this.conn.rtt();
4837
+ return rtt >= 0 ? rtt : void 0;
4838
+ }
4839
+ close() {
4840
+ if (this.closed) return;
4841
+ this.closed = true;
4842
+ this.buffered = [];
4843
+ try {
4844
+ this.conn.close();
4845
+ } catch {}
4846
+ this.forget();
4847
+ this.onClose?.();
4848
+ }
4849
+ };
4850
+ var homes = /* @__PURE__ */ new WeakMap();
4851
+ /** The list's spelling of a relay the wasm names. */
4852
+ function listed(relays, relay) {
4853
+ if (!relay) return null;
4854
+ try {
4855
+ return relays.find((own) => new URL(own).href === new URL(relay).href) ?? null;
4856
+ } catch {
4857
+ return null;
4858
+ }
4859
+ }
4860
+ /**
4861
+ * Starts a node on the home relay the measuring endpoint is on, or on every relay when none measures, it has no home
4862
+ * or that one fails; then this one measures for the list (`whole`).
4863
+ */
4864
+ async function startNode(wasm, homesOfList, me, seed, relays, onlineMs) {
4865
+ const key = relays.join(" ");
4866
+ const homing = relays.length > 1 ? homesOfList.get(key) : void 0;
4867
+ if (homing?.measurer) await homing.found;
4868
+ if (homing?.measurer && homing.home) try {
4869
+ return {
4870
+ node: await wasm.IrohNode.start(seed, [homing.home], onlineMs),
4871
+ whole: false
4872
+ };
4873
+ } catch {
4874
+ if (homesOfList.get(key) === homing) homesOfList.delete(key);
4875
+ }
4876
+ let settle = (_home) => {};
4877
+ const mine = relays.length > 1 && !homesOfList.get(key)?.measurer ? {
4878
+ found: new Promise((resolve) => {
4879
+ settle = resolve;
4880
+ }),
4881
+ home: null,
4882
+ measurer: me
4883
+ } : null;
4884
+ if (mine) homesOfList.set(key, mine);
4885
+ try {
4886
+ const node = await wasm.IrohNode.start(seed, relays, onlineMs);
4887
+ if (mine) settle(mine.home = listed(relays, node.address().relay));
4888
+ return {
4889
+ node,
4890
+ whole: true
4891
+ };
4892
+ } catch (error) {
4893
+ if (mine && homesOfList.get(key) === mine) homesOfList.delete(key);
4894
+ settle(null);
4895
+ throw error;
4896
+ }
4897
+ }
4898
+ /** Whether a descriptor (in `BROWSER_SPELLING`) names one of these relays, whichever way its URL is written. */
4899
+ function onOwnRelay(descriptor, relays) {
4900
+ const relay = descriptor?.relay;
4901
+ if (typeof relay !== "string") return false;
4902
+ try {
4903
+ return relays.some((own) => new URL(own).href === new URL(relay).href);
4904
+ } catch {
4905
+ return false;
4906
+ }
4907
+ }
4908
+ /** A NativeEndpoint for `iroh/1`, as the Desktop's is, for one chat's transport seed. */
4909
+ async function createIrohWebEndpoint(seedB64, options = {}) {
4910
+ const seed = fromBase64Url(seedB64);
4911
+ if (seed.length !== 32) throw new Error("Invalid transport seed");
4912
+ const relays = [...new Set((options.relays?.length ? options.relays : DEFAULT_IROH_RELAYS).map((relay) => irohRelayUrl(relay, BROWSER_SPELLING)))];
4913
+ const load = options.load ?? loadIrohWasm;
4914
+ const wasm = await load();
4915
+ let homesOfList = homes.get(load);
4916
+ if (!homesOfList) homes.set(load, homesOfList = /* @__PURE__ */ new Map());
4917
+ const onlineMs = options.onlineMs ?? 1e4;
4918
+ const key = relays.join(" ");
4919
+ const me = {};
4920
+ let { node, whole } = await startNode(wasm, homesOfList, me, seed, relays, onlineMs);
4921
+ const channels = /* @__PURE__ */ new Set();
4922
+ let stopped = false;
4923
+ /** A node being replaced by one on another relay list (`move`): the old one's end is not the relay going away. */
4924
+ let moving = false;
4925
+ let handler = null;
4926
+ const early = [];
4927
+ const bind = (conn) => {
4928
+ const channel = new IrohWebChannel(conn, () => channels.delete(channel));
4929
+ channels.add(channel);
4930
+ return {
4931
+ channel,
4932
+ binding: conn.binding()
4933
+ };
4934
+ };
4935
+ const endpoint = {
4936
+ transport: "iroh/1",
4937
+ descriptor: {
4938
+ ...node.address(),
4939
+ relayed: true
4940
+ },
4941
+ onDescriptor: null,
4942
+ get onConnection() {
4943
+ return handler;
4944
+ },
4945
+ set onConnection(value) {
4946
+ handler = value;
4947
+ if (value) for (const bound of early.splice(0)) value(bound);
4948
+ },
4949
+ async connect(descriptor) {
4950
+ if (stopped) throw new Error("Iroh endpoint is stopped");
4951
+ if (!dialableIrohRelay(descriptor?.relay, relays)) throw new Error("The contact's Iroh relay is not one this device dials");
4952
+ const dialled = irohDescriptor(descriptor, BROWSER_SPELLING);
4953
+ if (options.ownRelaysOnly && !onOwnRelay(dialled, relays)) throw new Error("The contact is not on one of this profile's Iroh relays");
4954
+ const relay = dialled?.relay;
4955
+ if (options.publicRelay && typeof relay === "string" && !onOwnRelay(dialled, relays) && !await options.publicRelay(relay)) throw new Error("The contact's Iroh relay is not one this device dials");
4956
+ if (stopped) throw new Error("Iroh endpoint is stopped");
4957
+ const conn = await node.connect(dialled, options.connectMs ?? 2e4);
4958
+ if (stopped) {
4959
+ conn.close();
4960
+ throw new Error("Iroh endpoint is stopped");
4961
+ }
4962
+ return bind(conn);
4963
+ },
4964
+ async close() {
4965
+ if (stopped) return;
4966
+ stopped = true;
4967
+ clearInterval(watching);
4968
+ const homing = homesOfList.get(key);
4969
+ if (homing?.measurer === me) homing.measurer = null;
4970
+ for (const channel of [...channels]) channel.close();
4971
+ for (const bound of early.splice(0)) bound.channel.close();
4972
+ await node.close().catch(() => {});
4973
+ }
4974
+ };
4975
+ /** Replaces the node with one on `list` (the whole list if that fails), same seed: same endpoint id. */
4976
+ const move = async (list) => {
4977
+ moving = true;
4978
+ let settle = (_home) => {};
4979
+ const mine = list === relays && !homesOfList.get(key)?.measurer ? {
4980
+ found: new Promise((resolve) => {
4981
+ settle = resolve;
4982
+ }),
4983
+ home: null,
4984
+ measurer: me
4985
+ } : null;
4986
+ if (mine) homesOfList.set(key, mine);
4987
+ try {
4988
+ await node.close().catch(() => {});
4989
+ let fresh;
4990
+ for (const tried of list.length < relays.length ? [list, relays] : [relays]) {
4991
+ if (stopped) return;
4992
+ try {
4993
+ fresh = await wasm.IrohNode.start(seed, tried, onlineMs);
4994
+ whole = tried === relays;
4995
+ break;
4996
+ } catch {}
4997
+ }
4998
+ if (fresh && stopped) {
4999
+ await fresh.close().catch(() => {});
5000
+ return;
5001
+ }
5002
+ if (!fresh) {
5003
+ if (!stopped) {
5004
+ endpoint.onUnavailable?.();
5005
+ await endpoint.close();
5006
+ }
5007
+ return;
5008
+ }
5009
+ node = fresh;
5010
+ serve(fresh);
5011
+ if (mine) settle(mine.home = listed(relays, fresh.address().relay));
5012
+ moving = false;
5013
+ look();
5014
+ } finally {
5015
+ moving = false;
5016
+ if (mine && !mine.home) {
5017
+ if (homesOfList.get(key) === mine) homesOfList.delete(key);
5018
+ settle(null);
5019
+ }
5020
+ }
5021
+ };
5022
+ const look = () => {
5023
+ let now;
5024
+ try {
5025
+ now = node.address();
5026
+ } catch {
5027
+ return;
5028
+ }
5029
+ if (stopped || moving) return;
5030
+ const homing = homesOfList.get(key);
5031
+ if (now.relay && now.relay !== endpoint.descriptor.relay) {
5032
+ endpoint.descriptor = {
5033
+ ...now,
5034
+ relayed: true
5035
+ };
5036
+ endpoint.onDescriptor?.();
5037
+ if (homing?.measurer === me) homing.home = listed(relays, now.relay) ?? homing.home;
5038
+ }
5039
+ if (whole || relays.length < 2 || channels.size) return;
5040
+ if (!homing?.measurer) move(relays);
5041
+ else if (homing.home && now.relay && listed(relays, now.relay) !== homing.home) move([homing.home]);
5042
+ };
5043
+ const watching = setInterval(look, HOME_CHECK_MS);
5044
+ const serve = (current) => void (async () => {
5045
+ while (!stopped && current === node) {
5046
+ let conn;
5047
+ try {
5048
+ conn = await current.accept();
5049
+ } catch {
5050
+ break;
5051
+ }
5052
+ if (!conn) break;
5053
+ if (stopped || current !== node) {
5054
+ conn.close();
5055
+ break;
5056
+ }
5057
+ const bound = bind(conn);
5058
+ const accept = endpoint.onConnection;
5059
+ if (accept) accept(bound);
5060
+ else if (early.length < 4) early.push(bound);
5061
+ else bound.channel.close();
5062
+ }
5063
+ if (!stopped && current === node && !moving) {
5064
+ endpoint.onUnavailable?.();
5065
+ await endpoint.close();
5066
+ }
5067
+ })();
5068
+ serve(node);
5069
+ return endpoint;
5070
+ }
5071
+ //#endregion
5072
+ export { iceServerProblem as $, storedSize as A, journaledPayment as B, paymentNetworksOf as C, FileAppender as D, WALLET_TYPES as E, CASHU_CARD as F, sourceKey as G, INVOICE_PACE as H, LightningCards as I, AskBackoff as J, CASHU_MINT_SOURCE as K, cardsKey as L, waitingGroupFile as M, IDENTITY_DRAFT_TTL_MS as N, readStored as O, IdentityProofs as P, dropBreezDatabase as Q, isRecoveryPhrase as R, paymentNetwork as S, MESSAGE_DETAILS_MAX_BYTES as T, nextInvoiceAsk as U, lightningPaying as V, ProviderSources as W, breezDatabaseInUse as X, breezDatabase as Y, breezDatabasesFor as Z, WALLET_NAMES as _, GroupFileDesk as a, networkLabel as at, createTiming as b, groupOfFile as c, requireTurn as ct, pairedWireReply as d, iceServerSetting as et, receivedPairedReply as f, paymentWireId as g, paymentAlias as h, onPublicIrohRelay as i, WrongNetworkError as it, streamStored as j, removeStored as k, storedGroupFiles as l, setAwayWallets as lt, replyTo as m, createIrohWebEndpoint as n, ModeChanged as nt, groupFileId as o, awayFrom as ot, replyRef as p, cashuMint as q, irohRelayProblem as r, ModeGate as rt, groupFileText as s, refuseAway as st, DEFAULT_IROH_RELAYS as t, relayOnlyProblem as tt, groupReply as u, setSingleWriterGate as ut, assertConfirmedReal as v, walletInstances as w, crossNetwork as x, createFailure as y, normalizePhrase as z };
4620
5073
 
4621
- //# sourceMappingURL=groupFiles-D-ZUUHrx.js.map
5074
+ //# sourceMappingURL=irohWeb-CqPN8VPY.js.map