@goodpeanuts/dsh-sui 0.0.0-stage → 0.1.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 (823) hide show
  1. package/README.md +102 -3
  2. package/THIRD_PARTY_NOTICES.txt +1064 -0
  3. package/apps/cli/dist/_virtual/_rolldown/runtime.mjs +35 -0
  4. package/apps/cli/dist/args.mjs +204 -0
  5. package/apps/cli/dist/cli.mjs +392 -0
  6. package/apps/cli/dist/errors.mjs +32 -0
  7. package/apps/cli/dist/help.mjs +73 -0
  8. package/apps/cli/dist/io.mjs +37 -0
  9. package/apps/cli/dist/main.mjs +10 -0
  10. package/apps/cli/dist/node_modules/.pnpm/@keyv_serialize@1.1.1/node_modules/@keyv/serialize/dist/index.mjs +37 -0
  11. package/apps/cli/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.mjs +81 -0
  12. package/apps/cli/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.mjs +1 -0
  13. package/apps/cli/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/index.mjs +1015 -0
  14. package/apps/cli/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/utilities.mjs +6 -0
  15. package/apps/cli/dist/node_modules/.pnpm/boolbase@1.0.0/node_modules/boolbase/index.mjs +15 -0
  16. package/apps/cli/dist/node_modules/.pnpm/byte-counter@0.1.0/node_modules/byte-counter/utilities.mjs +9 -0
  17. package/apps/cli/dist/node_modules/.pnpm/cacheable-lookup@7.0.0/node_modules/cacheable-lookup/source/index.mjs +279 -0
  18. package/apps/cli/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/index.mjs +274 -0
  19. package/apps/cli/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/types.mjs +15 -0
  20. package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/helpers.mjs +15 -0
  21. package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/index.mjs +159 -0
  22. package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/positionals.mjs +33 -0
  23. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/attributes.mjs +465 -0
  24. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/css.mjs +94 -0
  25. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/extract.mjs +39 -0
  26. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/forms.mjs +63 -0
  27. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/manipulation.mjs +731 -0
  28. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/traversing.mjs +828 -0
  29. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/cheerio.mjs +53 -0
  30. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/index.mjs +11 -0
  31. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load-parse.mjs +25 -0
  32. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load.mjs +73 -0
  33. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/options.mjs +27 -0
  34. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parse.mjs +53 -0
  35. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parsers/parse5-adapter.mjs +42 -0
  36. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/static.mjs +165 -0
  37. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/utils.mjs +78 -0
  38. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/attributes.mjs +187 -0
  39. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/compile.mjs +77 -0
  40. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/general.mjs +89 -0
  41. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/index.mjs +43 -0
  42. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/aliases.mjs +32 -0
  43. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/filters.mjs +114 -0
  44. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/index.mjs +35 -0
  45. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.mjs +53 -0
  46. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/subselects.mjs +68 -0
  47. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/sort.mjs +60 -0
  48. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/index.mjs +50 -0
  49. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/parse.mjs +320 -0
  50. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/stringify.mjs +102 -0
  51. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/types.mjs +45 -0
  52. package/apps/cli/dist/node_modules/.pnpm/decompress-response@10.0.0/node_modules/decompress-response/index.mjs +59 -0
  53. package/apps/cli/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/foreignNames.mjs +103 -0
  54. package/apps/cli/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/index.mjs +144 -0
  55. package/apps/cli/dist/node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/esm/index.mjs +51 -0
  56. package/apps/cli/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/index.mjs +128 -0
  57. package/apps/cli/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/node.mjs +312 -0
  58. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/feeds.mjs +161 -0
  59. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/helpers.mjs +113 -0
  60. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/index.mjs +56 -0
  61. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/legacy.mjs +141 -0
  62. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/manipulation.mjs +117 -0
  63. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/querying.mjs +124 -0
  64. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/stringify.mjs +69 -0
  65. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/traversal.mjs +109 -0
  66. package/apps/cli/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/index.mjs +7 -0
  67. package/apps/cli/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/sniffer.mjs +112 -0
  68. package/apps/cli/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/escape.mjs +83 -0
  69. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +43 -0
  70. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +330 -0
  71. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/escape.mjs +49 -0
  72. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +4 -0
  73. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +57 -0
  74. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode.mjs +351 -0
  75. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +5 -0
  76. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-xml.mjs +5 -0
  77. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/bin-trie-flags.mjs +20 -0
  78. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/decode-shared.mjs +14 -0
  79. package/apps/cli/dist/node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/index.mjs +871 -0
  80. package/apps/cli/dist/node_modules/.pnpm/form-data-encoder@4.1.0/node_modules/form-data-encoder/lib/index.mjs +279 -0
  81. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.mjs +54 -0
  82. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/buffer.mjs +14 -0
  83. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.mjs +80 -0
  84. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.mjs +41 -0
  85. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.mjs +8 -0
  86. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/index.mjs +154 -0
  87. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/types.mjs +20 -0
  88. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/calculate-retry-delay.mjs +20 -0
  89. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/diagnostics-channel.mjs +38 -0
  90. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/errors.mjs +132 -0
  91. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/index.mjs +923 -0
  92. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/options.mjs +1622 -0
  93. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/parse-link-header.mjs +27 -0
  94. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/response.mjs +36 -0
  95. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/timed-out.mjs +107 -0
  96. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/defer-to-connect.mjs +28 -0
  97. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/get-body-size.mjs +23 -0
  98. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-client-request.mjs +6 -0
  99. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-form-data.mjs +7 -0
  100. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-unix-socket-url.mjs +25 -0
  101. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/proxy-events.mjs +16 -0
  102. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/timer.mjs +114 -0
  103. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/unhandle.mjs +23 -0
  104. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/url-to-options.mjs +20 -0
  105. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/weakable-map.mjs +19 -0
  106. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/create.mjs +166 -0
  107. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/index.mjs +17 -0
  108. package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Parser.mjs +441 -0
  109. package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Tokenizer.mjs +661 -0
  110. package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/index.mjs +19 -0
  111. package/apps/cli/dist/node_modules/.pnpm/http-cache-semantics@4.3.0/node_modules/http-cache-semantics/index.mjs +608 -0
  112. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/agent.mjs +441 -0
  113. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/auto.mjs +145 -0
  114. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/client-request.mjs +318 -0
  115. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/incoming-message.mjs +58 -0
  116. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/index.mjs +51 -0
  117. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/get-auth-headers.mjs +19 -0
  118. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h1-over-h2.mjs +84 -0
  119. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h1.mjs +49 -0
  120. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h2.mjs +38 -0
  121. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-hx.mjs +39 -0
  122. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/initialize.mjs +23 -0
  123. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/unexpected-status-code-error.mjs +15 -0
  124. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/calculate-server-name.mjs +24 -0
  125. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/check-type.mjs +17 -0
  126. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/delay-async-destroy.mjs +28 -0
  127. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/errors.mjs +30 -0
  128. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.mjs +16 -0
  129. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/js-stream-socket.mjs +9 -0
  130. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-events.mjs +10 -0
  131. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-socket-handler.mjs +77 -0
  132. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-name.mjs +15 -0
  133. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-value.mjs +14 -0
  134. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.mjs +355 -0
  135. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.mjs +191 -0
  136. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.mjs +31 -0
  137. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.mjs +140 -0
  138. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.mjs +50 -0
  139. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.mjs +455 -0
  140. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.mjs +151 -0
  141. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.mjs +169 -0
  142. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.mjs +2584 -0
  143. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.mjs +2220 -0
  144. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.mjs +227 -0
  145. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.mjs +425 -0
  146. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.mjs +427 -0
  147. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.mjs +230 -0
  148. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.mjs +292 -0
  149. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.mjs +123 -0
  150. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.mjs +197 -0
  151. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.mjs +182 -0
  152. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.mjs +42 -0
  153. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.mjs +108 -0
  154. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.mjs +90 -0
  155. package/apps/cli/dist/node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.mjs +9 -0
  156. package/apps/cli/dist/node_modules/.pnpm/js-sha256@0.11.1/node_modules/js-sha256/src/sha256.mjs +495 -0
  157. package/apps/cli/dist/node_modules/.pnpm/keyv@5.6.0/node_modules/keyv/dist/index.mjs +740 -0
  158. package/apps/cli/dist/node_modules/.pnpm/lowercase-keys@3.0.0/node_modules/lowercase-keys/index.mjs +6 -0
  159. package/apps/cli/dist/node_modules/.pnpm/mimic-response@4.0.0/node_modules/mimic-response/index.mjs +53 -0
  160. package/apps/cli/dist/node_modules/.pnpm/normalize-url@8.1.1/node_modules/normalize-url/index.mjs +145 -0
  161. package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/compile.mjs +37 -0
  162. package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/index.mjs +31 -0
  163. package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/parse.mjs +60 -0
  164. package/apps/cli/dist/node_modules/.pnpm/p-cancelable@4.0.1/node_modules/p-cancelable/index.mjs +86 -0
  165. package/apps/cli/dist/node_modules/.pnpm/parse5-htmlparser2-tree-adapter@7.1.0/node_modules/parse5-htmlparser2-tree-adapter/dist/index.mjs +187 -0
  166. package/apps/cli/dist/node_modules/.pnpm/parse5-parser-stream@7.1.2/node_modules/parse5-parser-stream/dist/index.mjs +2 -0
  167. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.mjs +101 -0
  168. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.mjs +66 -0
  169. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.mjs +259 -0
  170. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.mjs +544 -0
  171. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.mjs +19 -0
  172. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.mjs +91 -0
  173. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/index.mjs +41 -0
  174. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
  175. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.mjs +2492 -0
  176. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.mjs +292 -0
  177. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.mjs +111 -0
  178. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.mjs +2067 -0
  179. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +154 -0
  180. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.mjs +164 -0
  181. package/apps/cli/dist/node_modules/.pnpm/quick-lru@5.1.1/node_modules/quick-lru/index.mjs +77 -0
  182. package/apps/cli/dist/node_modules/.pnpm/resolve-alpn@1.2.1/node_modules/resolve-alpn/index.mjs +47 -0
  183. package/apps/cli/dist/node_modules/.pnpm/responselike@4.0.2/node_modules/responselike/index.mjs +32 -0
  184. package/apps/cli/dist/node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.mjs +45 -0
  185. package/apps/cli/dist/node_modules/.pnpm/tldts@7.4.18/node_modules/tldts/dist/cjs/index.mjs +22542 -0
  186. package/apps/cli/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.mjs +1761 -0
  187. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/index.mjs +221 -0
  188. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/abort-signal.mjs +44 -0
  189. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-connect.mjs +85 -0
  190. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-pipeline.mjs +174 -0
  191. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-request.mjs +155 -0
  192. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-stream.mjs +136 -0
  193. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-upgrade.mjs +88 -0
  194. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/index.mjs +17 -0
  195. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/readable.mjs +418 -0
  196. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/memory-cache-store.mjs +190 -0
  197. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/sqlite-cache-store.mjs +324 -0
  198. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/connect.mjs +115 -0
  199. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/constants.mjs +134 -0
  200. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/diagnostics.mjs +114 -0
  201. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/errors.mjs +412 -0
  202. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/request.mjs +282 -0
  203. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-client.mjs +288 -0
  204. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-utils.mjs +166 -0
  205. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/symbols.mjs +80 -0
  206. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/tree.mjs +124 -0
  207. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/util.mjs +940 -0
  208. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/agent.mjs +119 -0
  209. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/balanced-pool.mjs +129 -0
  210. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h1.mjs +1091 -0
  211. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h2.mjs +588 -0
  212. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client.mjs +385 -0
  213. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher-base.mjs +121 -0
  214. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher.mjs +35 -0
  215. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/env-http-proxy-agent.mjs +105 -0
  216. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/fixed-queue.mjs +75 -0
  217. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/h2c-client.mjs +31 -0
  218. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool-base.mjs +155 -0
  219. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool.mjs +76 -0
  220. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/proxy-agent.mjs +233 -0
  221. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/retry-agent.mjs +37 -0
  222. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/round-robin-pool.mjs +94 -0
  223. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/socks5-proxy-agent.mjs +194 -0
  224. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/encoding/index.mjs +18 -0
  225. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/global.mjs +48 -0
  226. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-handler.mjs +457 -0
  227. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-revalidation-handler.mjs +82 -0
  228. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/decorator-handler.mjs +57 -0
  229. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/deduplication-handler.mjs +341 -0
  230. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/redirect-handler.mjs +131 -0
  231. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/retry-handler.mjs +332 -0
  232. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/unwrap-handler.mjs +88 -0
  233. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/wrap-handler.mjs +68 -0
  234. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/cache.mjs +350 -0
  235. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/decompress.mjs +416 -0
  236. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/deduplicate.mjs +69 -0
  237. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dns.mjs +323 -0
  238. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dump.mjs +65 -0
  239. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/redirect.mjs +20 -0
  240. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/response-error.mjs +73 -0
  241. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/retry.mjs +25 -0
  242. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/constants.mjs +590 -0
  243. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp-wasm.mjs +13 -0
  244. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.mjs +13 -0
  245. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/utils.mjs +16 -0
  246. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-agent.mjs +154 -0
  247. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-call-history.mjs +159 -0
  248. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-client.mjs +59 -0
  249. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-errors.mjs +28 -0
  250. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-interceptor.mjs +150 -0
  251. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-pool.mjs +59 -0
  252. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-symbols.mjs +37 -0
  253. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-utils.mjs +302 -0
  254. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/pending-interceptors-formatter.mjs +38 -0
  255. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-agent.mjs +268 -0
  256. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-recorder.mjs +424 -0
  257. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-utils.mjs +121 -0
  258. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/cache.mjs +440 -0
  259. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/date.mjs +332 -0
  260. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/promise.mjs +31 -0
  261. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/runtime-features.mjs +101 -0
  262. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/stats.mjs +31 -0
  263. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/timers.mjs +341 -0
  264. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cache.mjs +462 -0
  265. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cachestorage.mjs +103 -0
  266. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/util.mjs +39 -0
  267. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/constants.mjs +11 -0
  268. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/index.mjs +169 -0
  269. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/parse.mjs +108 -0
  270. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/util.mjs +239 -0
  271. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource-stream.mjs +317 -0
  272. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource.mjs +345 -0
  273. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/util.mjs +29 -0
  274. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/body.mjs +271 -0
  275. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/constants.mjs +224 -0
  276. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/data-url.mjs +247 -0
  277. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata-parser.mjs +255 -0
  278. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata.mjs +153 -0
  279. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/global.mjs +34 -0
  280. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/headers.mjs +400 -0
  281. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/index.mjs +776 -0
  282. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/request.mjs +602 -0
  283. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/response.mjs +358 -0
  284. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/util.mjs +795 -0
  285. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/infra/index.mjs +154 -0
  286. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.mjs +170 -0
  287. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/webidl/index.mjs +505 -0
  288. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/connection.mjs +166 -0
  289. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/constants.mjs +47 -0
  290. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/events.mjs +268 -0
  291. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/frame.mjs +105 -0
  292. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/permessage-deflate.mjs +85 -0
  293. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/receiver.mjs +323 -0
  294. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/sender.mjs +90 -0
  295. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketerror.mjs +78 -0
  296. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketstream.mjs +270 -0
  297. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/util.mjs +212 -0
  298. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/websocket.mjs +432 -0
  299. package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/labels-to-names.mjs +224 -0
  300. package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/supported-names.mjs +45 -0
  301. package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/whatwg-encoding.mjs +40 -0
  302. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type-parameters.mjs +54 -0
  303. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type.mjs +92 -0
  304. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/parser.mjs +62 -0
  305. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/serializer.mjs +24 -0
  306. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/utils.mjs +47 -0
  307. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.mjs +26 -0
  308. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.mjs +35 -0
  309. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.mjs +17 -0
  310. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.mjs +800 -0
  311. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.mjs +508 -0
  312. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.mjs +366 -0
  313. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.mjs +60 -0
  314. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.mjs +32 -0
  315. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.mjs +63 -0
  316. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.mjs +253 -0
  317. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.mjs +118 -0
  318. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.mjs +65 -0
  319. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.mjs +48 -0
  320. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.mjs +1235 -0
  321. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.mjs +297 -0
  322. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.mjs +316 -0
  323. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.mjs +8 -0
  324. package/apps/cli/dist/packages/data-maintenance/src/archive.mjs +143 -0
  325. package/apps/cli/dist/packages/data-maintenance/src/contracts.mjs +17 -0
  326. package/apps/cli/dist/packages/data-maintenance/src/files.mjs +121 -0
  327. package/apps/cli/dist/packages/data-maintenance/src/index.mjs +494 -0
  328. package/apps/cli/dist/packages/data-maintenance/src/lease.mjs +53 -0
  329. package/apps/cli/dist/packages/data-maintenance/src/migration-backup.mjs +57 -0
  330. package/apps/cli/dist/packages/data-maintenance/src/paths.mjs +15 -0
  331. package/apps/cli/dist/packages/feidee/src/client.mjs +635 -0
  332. package/apps/cli/dist/packages/feidee/src/hash.mjs +10 -0
  333. package/apps/cli/dist/packages/feidee/src/index.mjs +8 -0
  334. package/apps/cli/dist/packages/feidee/src/mutation-gateway.mjs +165 -0
  335. package/apps/cli/dist/packages/feidee/src/parsers.mjs +634 -0
  336. package/apps/cli/dist/packages/feidee/src/transaction-text.mjs +39 -0
  337. package/apps/cli/dist/packages/feidee/src/write-contract.mjs +273 -0
  338. package/apps/cli/dist/packages/finance/src/date-range.mjs +74 -0
  339. package/apps/cli/dist/packages/finance/src/domain.mjs +18 -0
  340. package/apps/cli/dist/packages/finance/src/errors.mjs +221 -0
  341. package/apps/cli/dist/packages/finance/src/index.mjs +16 -0
  342. package/apps/cli/dist/packages/finance/src/metadata-query.mjs +32 -0
  343. package/apps/cli/dist/packages/finance/src/sync/progress.mjs +27 -0
  344. package/apps/cli/dist/packages/finance/src/sync/service.mjs +282 -0
  345. package/apps/cli/dist/packages/finance/src/transactions/audit.mjs +104 -0
  346. package/apps/cli/dist/packages/finance/src/transactions/canary.mjs +85 -0
  347. package/apps/cli/dist/packages/finance/src/transactions/compare.mjs +76 -0
  348. package/apps/cli/dist/packages/finance/src/transactions/contracts.mjs +92 -0
  349. package/apps/cli/dist/packages/finance/src/transactions/memo-policy.mjs +79 -0
  350. package/apps/cli/dist/packages/finance/src/transactions/mutation.mjs +656 -0
  351. package/apps/cli/dist/packages/finance/src/transactions/query.mjs +59 -0
  352. package/apps/cli/dist/packages/finance/src/transactions/statistics.mjs +67 -0
  353. package/apps/cli/dist/packages/finance/src/write-policy.mjs +4 -0
  354. package/apps/cli/dist/packages/finance-module/src/balance-preview.mjs +4 -0
  355. package/apps/cli/dist/packages/finance-module/src/contracts.mjs +13 -0
  356. package/apps/cli/dist/packages/finance-module/src/database.mjs +1292 -0
  357. package/apps/cli/dist/packages/finance-module/src/draft-entries.mjs +89 -0
  358. package/apps/cli/dist/packages/finance-module/src/draft-receipts.mjs +8 -0
  359. package/apps/cli/dist/packages/finance-module/src/historical-task-archives.mjs +24 -0
  360. package/apps/cli/dist/packages/finance-module/src/node.mjs +76 -0
  361. package/apps/cli/dist/packages/finance-module/src/personal-preferences.mjs +29 -0
  362. package/apps/cli/dist/packages/finance-module/src/route-contracts.mjs +11 -0
  363. package/apps/cli/dist/packages/finance-module/src/schema-compatibility.mjs +142 -0
  364. package/apps/cli/dist/packages/finance-module/src/service-record-domain.mjs +16 -0
  365. package/apps/cli/dist/packages/finance-module/src/service-record-store.mjs +119 -0
  366. package/apps/cli/dist/packages/finance-module/src/shared-draft-migration.mjs +39 -0
  367. package/apps/cli/dist/packages/finance-module/src/single-draft-migration.mjs +70 -0
  368. package/apps/cli/dist/packages/finance-module/src/storage.mjs +282 -0
  369. package/apps/cli/dist/packages/finance-module/src/web-contracts.mjs +38 -0
  370. package/apps/cli/dist/packages/local-store/src/checkpoint-backup.mjs +40 -0
  371. package/apps/cli/dist/packages/local-store/src/checkpoint-history.mjs +77 -0
  372. package/apps/cli/dist/packages/local-store/src/database.mjs +1523 -0
  373. package/apps/cli/dist/packages/local-store/src/exchange-rates.mjs +169 -0
  374. package/apps/cli/dist/packages/local-store/src/node.mjs +71 -0
  375. package/apps/cli/dist/packages/sdk/src/account-snapshot-service.mjs +582 -0
  376. package/apps/cli/dist/packages/sdk/src/auth.mjs +89 -0
  377. package/apps/cli/dist/packages/sdk/src/cache-analysis.mjs +393 -0
  378. package/apps/cli/dist/packages/sdk/src/config.mjs +64 -0
  379. package/apps/cli/dist/packages/sdk/src/credential-identity.mjs +8 -0
  380. package/apps/cli/dist/packages/sdk/src/credentials.mjs +86 -0
  381. package/apps/cli/dist/packages/sdk/src/exchange-rate-service.mjs +253 -0
  382. package/apps/cli/dist/packages/sdk/src/finance-cookie-cache.mjs +93 -0
  383. package/apps/cli/dist/packages/sdk/src/finance-session.mjs +215 -0
  384. package/apps/cli/dist/packages/sdk/src/frankfurter.mjs +125 -0
  385. package/apps/cli/dist/packages/sdk/src/node.mjs +53 -0
  386. package/apps/cli/dist/packages/sdk/src/probe.mjs +65 -0
  387. package/apps/cli/dist/packages/sdk/src/resource-lease-node.mjs +27 -0
  388. package/apps/cli/dist/packages/sdk/src/resource-lease-owner-node.mjs +68 -0
  389. package/apps/cli/dist/packages/sdk/src/resource-lease.mjs +143 -0
  390. package/apps/cli/dist/packages/sdk/src/runtime.mjs +643 -0
  391. package/apps/cli/dist/storage.mjs +11 -0
  392. package/bundles/sui-ledger/dist/_virtual/_rolldown/runtime.mjs +35 -0
  393. package/bundles/sui-ledger/dist/capabilities/tools.mjs +32 -0
  394. package/bundles/sui-ledger/dist/client.js +23756 -0
  395. package/bundles/sui-ledger/dist/finance-prompt.mjs +30 -0
  396. package/bundles/sui-ledger/dist/finance-state-context.mjs +38 -0
  397. package/bundles/sui-ledger/dist/index.mjs +198 -0
  398. package/bundles/sui-ledger/dist/maintenance-cli.mjs +76 -0
  399. package/bundles/sui-ledger/dist/node_modules/.pnpm/@deepseek-ai_dsh-home-paths_159c15e70066431314381a350c2ee56a/node_modules/@deepseek-ai/dsh-home-paths/lib/index.mjs +67 -0
  400. package/bundles/sui-ledger/dist/node_modules/.pnpm/@keyv_serialize@1.1.1/node_modules/@keyv/serialize/dist/index.mjs +37 -0
  401. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.mjs +81 -0
  402. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.mjs +1 -0
  403. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/index.mjs +1015 -0
  404. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/utilities.mjs +6 -0
  405. package/bundles/sui-ledger/dist/node_modules/.pnpm/boolbase@1.0.0/node_modules/boolbase/index.mjs +15 -0
  406. package/bundles/sui-ledger/dist/node_modules/.pnpm/byte-counter@0.1.0/node_modules/byte-counter/utilities.mjs +9 -0
  407. package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-lookup@7.0.0/node_modules/cacheable-lookup/source/index.mjs +279 -0
  408. package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/index.mjs +274 -0
  409. package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/types.mjs +15 -0
  410. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/helpers.mjs +15 -0
  411. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/index.mjs +159 -0
  412. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/positionals.mjs +33 -0
  413. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/attributes.mjs +465 -0
  414. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/css.mjs +94 -0
  415. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/extract.mjs +39 -0
  416. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/forms.mjs +63 -0
  417. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/manipulation.mjs +731 -0
  418. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/traversing.mjs +828 -0
  419. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/cheerio.mjs +53 -0
  420. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/index.mjs +11 -0
  421. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load-parse.mjs +25 -0
  422. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load.mjs +73 -0
  423. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/options.mjs +27 -0
  424. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parse.mjs +53 -0
  425. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parsers/parse5-adapter.mjs +42 -0
  426. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/static.mjs +165 -0
  427. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/utils.mjs +78 -0
  428. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/attributes.mjs +187 -0
  429. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/compile.mjs +77 -0
  430. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/general.mjs +89 -0
  431. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/index.mjs +43 -0
  432. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/aliases.mjs +32 -0
  433. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/filters.mjs +114 -0
  434. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/index.mjs +35 -0
  435. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.mjs +53 -0
  436. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/subselects.mjs +68 -0
  437. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/sort.mjs +60 -0
  438. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/index.mjs +50 -0
  439. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/parse.mjs +320 -0
  440. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/stringify.mjs +102 -0
  441. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/types.mjs +45 -0
  442. package/bundles/sui-ledger/dist/node_modules/.pnpm/decompress-response@10.0.0/node_modules/decompress-response/index.mjs +59 -0
  443. package/bundles/sui-ledger/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/foreignNames.mjs +103 -0
  444. package/bundles/sui-ledger/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/index.mjs +144 -0
  445. package/bundles/sui-ledger/dist/node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/esm/index.mjs +51 -0
  446. package/bundles/sui-ledger/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/index.mjs +128 -0
  447. package/bundles/sui-ledger/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/node.mjs +312 -0
  448. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/feeds.mjs +161 -0
  449. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/helpers.mjs +113 -0
  450. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/index.mjs +56 -0
  451. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/legacy.mjs +141 -0
  452. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/manipulation.mjs +117 -0
  453. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/querying.mjs +124 -0
  454. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/stringify.mjs +69 -0
  455. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/traversal.mjs +109 -0
  456. package/bundles/sui-ledger/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/index.mjs +7 -0
  457. package/bundles/sui-ledger/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/sniffer.mjs +112 -0
  458. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/escape.mjs +83 -0
  459. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +43 -0
  460. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +330 -0
  461. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/escape.mjs +49 -0
  462. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +4 -0
  463. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +57 -0
  464. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode.mjs +351 -0
  465. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +5 -0
  466. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-xml.mjs +5 -0
  467. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/bin-trie-flags.mjs +20 -0
  468. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/decode-shared.mjs +14 -0
  469. package/bundles/sui-ledger/dist/node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/index.mjs +871 -0
  470. package/bundles/sui-ledger/dist/node_modules/.pnpm/form-data-encoder@4.1.0/node_modules/form-data-encoder/lib/index.mjs +279 -0
  471. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.mjs +54 -0
  472. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/buffer.mjs +14 -0
  473. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.mjs +80 -0
  474. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.mjs +41 -0
  475. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.mjs +8 -0
  476. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/index.mjs +154 -0
  477. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/types.mjs +20 -0
  478. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/calculate-retry-delay.mjs +20 -0
  479. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/diagnostics-channel.mjs +38 -0
  480. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/errors.mjs +132 -0
  481. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/index.mjs +923 -0
  482. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/options.mjs +1622 -0
  483. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/parse-link-header.mjs +27 -0
  484. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/response.mjs +36 -0
  485. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/timed-out.mjs +107 -0
  486. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/defer-to-connect.mjs +28 -0
  487. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/get-body-size.mjs +23 -0
  488. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-client-request.mjs +6 -0
  489. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-form-data.mjs +7 -0
  490. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-unix-socket-url.mjs +25 -0
  491. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/proxy-events.mjs +16 -0
  492. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/timer.mjs +114 -0
  493. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/unhandle.mjs +23 -0
  494. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/url-to-options.mjs +20 -0
  495. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/weakable-map.mjs +19 -0
  496. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/create.mjs +166 -0
  497. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/index.mjs +17 -0
  498. package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Parser.mjs +441 -0
  499. package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Tokenizer.mjs +661 -0
  500. package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/index.mjs +19 -0
  501. package/bundles/sui-ledger/dist/node_modules/.pnpm/http-cache-semantics@4.3.0/node_modules/http-cache-semantics/index.mjs +608 -0
  502. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/agent.mjs +441 -0
  503. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/auto.mjs +145 -0
  504. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/client-request.mjs +318 -0
  505. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/incoming-message.mjs +58 -0
  506. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/index.mjs +51 -0
  507. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/get-auth-headers.mjs +19 -0
  508. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h1-over-h2.mjs +84 -0
  509. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h1.mjs +49 -0
  510. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h2.mjs +38 -0
  511. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-hx.mjs +39 -0
  512. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/initialize.mjs +23 -0
  513. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/unexpected-status-code-error.mjs +15 -0
  514. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/calculate-server-name.mjs +24 -0
  515. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/check-type.mjs +17 -0
  516. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/delay-async-destroy.mjs +28 -0
  517. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/errors.mjs +30 -0
  518. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.mjs +16 -0
  519. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/js-stream-socket.mjs +9 -0
  520. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-events.mjs +10 -0
  521. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-socket-handler.mjs +77 -0
  522. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-name.mjs +15 -0
  523. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-value.mjs +14 -0
  524. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.mjs +355 -0
  525. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.mjs +191 -0
  526. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.mjs +31 -0
  527. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.mjs +140 -0
  528. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.mjs +50 -0
  529. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.mjs +455 -0
  530. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.mjs +151 -0
  531. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.mjs +169 -0
  532. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.mjs +2584 -0
  533. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.mjs +2220 -0
  534. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.mjs +227 -0
  535. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.mjs +425 -0
  536. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.mjs +427 -0
  537. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.mjs +230 -0
  538. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.mjs +292 -0
  539. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.mjs +123 -0
  540. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.mjs +197 -0
  541. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.mjs +182 -0
  542. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.mjs +42 -0
  543. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.mjs +108 -0
  544. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.mjs +90 -0
  545. package/bundles/sui-ledger/dist/node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.mjs +9 -0
  546. package/bundles/sui-ledger/dist/node_modules/.pnpm/js-sha256@0.11.1/node_modules/js-sha256/src/sha256.mjs +495 -0
  547. package/bundles/sui-ledger/dist/node_modules/.pnpm/keyv@5.6.0/node_modules/keyv/dist/index.mjs +740 -0
  548. package/bundles/sui-ledger/dist/node_modules/.pnpm/lowercase-keys@3.0.0/node_modules/lowercase-keys/index.mjs +6 -0
  549. package/bundles/sui-ledger/dist/node_modules/.pnpm/mimic-response@4.0.0/node_modules/mimic-response/index.mjs +53 -0
  550. package/bundles/sui-ledger/dist/node_modules/.pnpm/normalize-url@8.1.1/node_modules/normalize-url/index.mjs +145 -0
  551. package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/compile.mjs +37 -0
  552. package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/index.mjs +31 -0
  553. package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/parse.mjs +60 -0
  554. package/bundles/sui-ledger/dist/node_modules/.pnpm/p-cancelable@4.0.1/node_modules/p-cancelable/index.mjs +86 -0
  555. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5-htmlparser2-tree-adapter@7.1.0/node_modules/parse5-htmlparser2-tree-adapter/dist/index.mjs +187 -0
  556. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5-parser-stream@7.1.2/node_modules/parse5-parser-stream/dist/index.mjs +2 -0
  557. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.mjs +101 -0
  558. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.mjs +66 -0
  559. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.mjs +259 -0
  560. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.mjs +544 -0
  561. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.mjs +19 -0
  562. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.mjs +91 -0
  563. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/index.mjs +41 -0
  564. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
  565. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.mjs +2492 -0
  566. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.mjs +292 -0
  567. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.mjs +111 -0
  568. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.mjs +2067 -0
  569. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +154 -0
  570. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.mjs +164 -0
  571. package/bundles/sui-ledger/dist/node_modules/.pnpm/quick-lru@5.1.1/node_modules/quick-lru/index.mjs +77 -0
  572. package/bundles/sui-ledger/dist/node_modules/.pnpm/resolve-alpn@1.2.1/node_modules/resolve-alpn/index.mjs +47 -0
  573. package/bundles/sui-ledger/dist/node_modules/.pnpm/responselike@4.0.2/node_modules/responselike/index.mjs +32 -0
  574. package/bundles/sui-ledger/dist/node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.mjs +45 -0
  575. package/bundles/sui-ledger/dist/node_modules/.pnpm/tldts@7.4.18/node_modules/tldts/dist/cjs/index.mjs +22542 -0
  576. package/bundles/sui-ledger/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.mjs +1761 -0
  577. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/index.mjs +221 -0
  578. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/abort-signal.mjs +44 -0
  579. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-connect.mjs +85 -0
  580. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-pipeline.mjs +174 -0
  581. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-request.mjs +155 -0
  582. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-stream.mjs +136 -0
  583. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-upgrade.mjs +88 -0
  584. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/index.mjs +17 -0
  585. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/readable.mjs +418 -0
  586. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/memory-cache-store.mjs +190 -0
  587. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/sqlite-cache-store.mjs +324 -0
  588. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/connect.mjs +115 -0
  589. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/constants.mjs +134 -0
  590. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/diagnostics.mjs +114 -0
  591. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/errors.mjs +412 -0
  592. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/request.mjs +282 -0
  593. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-client.mjs +288 -0
  594. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-utils.mjs +166 -0
  595. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/symbols.mjs +80 -0
  596. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/tree.mjs +124 -0
  597. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/util.mjs +940 -0
  598. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/agent.mjs +119 -0
  599. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/balanced-pool.mjs +129 -0
  600. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h1.mjs +1091 -0
  601. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h2.mjs +588 -0
  602. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client.mjs +385 -0
  603. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher-base.mjs +121 -0
  604. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher.mjs +35 -0
  605. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/env-http-proxy-agent.mjs +105 -0
  606. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/fixed-queue.mjs +75 -0
  607. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/h2c-client.mjs +31 -0
  608. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool-base.mjs +155 -0
  609. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool.mjs +76 -0
  610. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/proxy-agent.mjs +233 -0
  611. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/retry-agent.mjs +37 -0
  612. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/round-robin-pool.mjs +94 -0
  613. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/socks5-proxy-agent.mjs +194 -0
  614. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/encoding/index.mjs +18 -0
  615. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/global.mjs +48 -0
  616. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-handler.mjs +457 -0
  617. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-revalidation-handler.mjs +82 -0
  618. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/decorator-handler.mjs +57 -0
  619. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/deduplication-handler.mjs +341 -0
  620. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/redirect-handler.mjs +131 -0
  621. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/retry-handler.mjs +332 -0
  622. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/unwrap-handler.mjs +88 -0
  623. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/wrap-handler.mjs +68 -0
  624. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/cache.mjs +350 -0
  625. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/decompress.mjs +416 -0
  626. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/deduplicate.mjs +69 -0
  627. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dns.mjs +323 -0
  628. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dump.mjs +65 -0
  629. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/redirect.mjs +20 -0
  630. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/response-error.mjs +73 -0
  631. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/retry.mjs +25 -0
  632. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/constants.mjs +590 -0
  633. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp-wasm.mjs +13 -0
  634. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.mjs +13 -0
  635. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/utils.mjs +16 -0
  636. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-agent.mjs +154 -0
  637. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-call-history.mjs +159 -0
  638. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-client.mjs +59 -0
  639. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-errors.mjs +28 -0
  640. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-interceptor.mjs +150 -0
  641. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-pool.mjs +59 -0
  642. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-symbols.mjs +37 -0
  643. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-utils.mjs +302 -0
  644. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/pending-interceptors-formatter.mjs +38 -0
  645. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-agent.mjs +268 -0
  646. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-recorder.mjs +424 -0
  647. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-utils.mjs +121 -0
  648. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/cache.mjs +440 -0
  649. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/date.mjs +332 -0
  650. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/promise.mjs +31 -0
  651. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/runtime-features.mjs +101 -0
  652. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/stats.mjs +31 -0
  653. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/timers.mjs +341 -0
  654. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cache.mjs +462 -0
  655. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cachestorage.mjs +103 -0
  656. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/util.mjs +39 -0
  657. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/constants.mjs +11 -0
  658. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/index.mjs +169 -0
  659. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/parse.mjs +108 -0
  660. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/util.mjs +239 -0
  661. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource-stream.mjs +317 -0
  662. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource.mjs +345 -0
  663. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/util.mjs +29 -0
  664. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/body.mjs +271 -0
  665. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/constants.mjs +224 -0
  666. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/data-url.mjs +247 -0
  667. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata-parser.mjs +255 -0
  668. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata.mjs +153 -0
  669. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/global.mjs +34 -0
  670. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/headers.mjs +400 -0
  671. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/index.mjs +776 -0
  672. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/request.mjs +602 -0
  673. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/response.mjs +358 -0
  674. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/util.mjs +795 -0
  675. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/infra/index.mjs +154 -0
  676. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.mjs +170 -0
  677. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/webidl/index.mjs +505 -0
  678. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/connection.mjs +166 -0
  679. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/constants.mjs +47 -0
  680. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/events.mjs +268 -0
  681. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/frame.mjs +105 -0
  682. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/permessage-deflate.mjs +85 -0
  683. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/receiver.mjs +323 -0
  684. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/sender.mjs +90 -0
  685. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketerror.mjs +78 -0
  686. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketstream.mjs +270 -0
  687. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/util.mjs +212 -0
  688. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/websocket.mjs +432 -0
  689. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/labels-to-names.mjs +224 -0
  690. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/supported-names.mjs +45 -0
  691. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/whatwg-encoding.mjs +40 -0
  692. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type-parameters.mjs +54 -0
  693. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type.mjs +92 -0
  694. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/parser.mjs +62 -0
  695. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/serializer.mjs +24 -0
  696. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/utils.mjs +47 -0
  697. package/bundles/sui-ledger/dist/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/dist/cpexcel.mjs +3348 -0
  698. package/bundles/sui-ledger/dist/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/xlsx.mjs +26473 -0
  699. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.mjs +26 -0
  700. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.mjs +35 -0
  701. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.mjs +17 -0
  702. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.mjs +800 -0
  703. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.mjs +508 -0
  704. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.mjs +366 -0
  705. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.mjs +60 -0
  706. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.mjs +32 -0
  707. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.mjs +63 -0
  708. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.mjs +253 -0
  709. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.mjs +118 -0
  710. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.mjs +65 -0
  711. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.mjs +48 -0
  712. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.mjs +1235 -0
  713. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.mjs +297 -0
  714. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.mjs +316 -0
  715. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.mjs +8 -0
  716. package/bundles/sui-ledger/dist/packages/data-maintenance/src/archive.mjs +143 -0
  717. package/bundles/sui-ledger/dist/packages/data-maintenance/src/contracts.mjs +17 -0
  718. package/bundles/sui-ledger/dist/packages/data-maintenance/src/files.mjs +158 -0
  719. package/bundles/sui-ledger/dist/packages/data-maintenance/src/index.mjs +494 -0
  720. package/bundles/sui-ledger/dist/packages/data-maintenance/src/lease.mjs +53 -0
  721. package/bundles/sui-ledger/dist/packages/data-maintenance/src/migration-backup.mjs +57 -0
  722. package/bundles/sui-ledger/dist/packages/data-maintenance/src/paths.mjs +15 -0
  723. package/bundles/sui-ledger/dist/packages/data-maintenance/src/runtime.mjs +132 -0
  724. package/bundles/sui-ledger/dist/packages/feidee/src/client.mjs +635 -0
  725. package/bundles/sui-ledger/dist/packages/feidee/src/hash.mjs +10 -0
  726. package/bundles/sui-ledger/dist/packages/feidee/src/index.mjs +8 -0
  727. package/bundles/sui-ledger/dist/packages/feidee/src/mutation-gateway.mjs +165 -0
  728. package/bundles/sui-ledger/dist/packages/feidee/src/parsers.mjs +634 -0
  729. package/bundles/sui-ledger/dist/packages/feidee/src/transaction-text.mjs +39 -0
  730. package/bundles/sui-ledger/dist/packages/feidee/src/write-contract.mjs +273 -0
  731. package/bundles/sui-ledger/dist/packages/finance/src/date-range.mjs +74 -0
  732. package/bundles/sui-ledger/dist/packages/finance/src/domain.mjs +18 -0
  733. package/bundles/sui-ledger/dist/packages/finance/src/errors.mjs +221 -0
  734. package/bundles/sui-ledger/dist/packages/finance/src/index.mjs +17 -0
  735. package/bundles/sui-ledger/dist/packages/finance/src/json-schema.mjs +212 -0
  736. package/bundles/sui-ledger/dist/packages/finance/src/metadata-query.mjs +32 -0
  737. package/bundles/sui-ledger/dist/packages/finance/src/money.mjs +39 -0
  738. package/bundles/sui-ledger/dist/packages/finance/src/public-error.mjs +10 -0
  739. package/bundles/sui-ledger/dist/packages/finance/src/sync/progress.mjs +27 -0
  740. package/bundles/sui-ledger/dist/packages/finance/src/sync/service.mjs +282 -0
  741. package/bundles/sui-ledger/dist/packages/finance/src/transactions/audit.mjs +104 -0
  742. package/bundles/sui-ledger/dist/packages/finance/src/transactions/canary.mjs +85 -0
  743. package/bundles/sui-ledger/dist/packages/finance/src/transactions/compare.mjs +76 -0
  744. package/bundles/sui-ledger/dist/packages/finance/src/transactions/contracts.mjs +83 -0
  745. package/bundles/sui-ledger/dist/packages/finance/src/transactions/memo-policy.mjs +79 -0
  746. package/bundles/sui-ledger/dist/packages/finance/src/transactions/mutation.mjs +656 -0
  747. package/bundles/sui-ledger/dist/packages/finance/src/transactions/query.mjs +59 -0
  748. package/bundles/sui-ledger/dist/packages/finance/src/transactions/statistics.mjs +67 -0
  749. package/bundles/sui-ledger/dist/packages/finance/src/write-policy.mjs +4 -0
  750. package/bundles/sui-ledger/dist/packages/finance-module/src/balance-preview.mjs +119 -0
  751. package/bundles/sui-ledger/dist/packages/finance-module/src/capabilities.mjs +1306 -0
  752. package/bundles/sui-ledger/dist/packages/finance-module/src/checkpoint-review.mjs +75 -0
  753. package/bundles/sui-ledger/dist/packages/finance-module/src/commit-failure.mjs +161 -0
  754. package/bundles/sui-ledger/dist/packages/finance-module/src/commit-recovery.mjs +41 -0
  755. package/bundles/sui-ledger/dist/packages/finance-module/src/contracts.mjs +13 -0
  756. package/bundles/sui-ledger/dist/packages/finance-module/src/data-version.mjs +8 -0
  757. package/bundles/sui-ledger/dist/packages/finance-module/src/database.mjs +1292 -0
  758. package/bundles/sui-ledger/dist/packages/finance-module/src/draft-entries.mjs +216 -0
  759. package/bundles/sui-ledger/dist/packages/finance-module/src/draft-receipts.mjs +16 -0
  760. package/bundles/sui-ledger/dist/packages/finance-module/src/finance-guidance.mjs +23 -0
  761. package/bundles/sui-ledger/dist/packages/finance-module/src/historical-task-archives.mjs +24 -0
  762. package/bundles/sui-ledger/dist/packages/finance-module/src/index.mjs +17 -0
  763. package/bundles/sui-ledger/dist/packages/finance-module/src/interactions.mjs +229 -0
  764. package/bundles/sui-ledger/dist/packages/finance-module/src/model-pages.mjs +61 -0
  765. package/bundles/sui-ledger/dist/packages/finance-module/src/model-views.mjs +206 -0
  766. package/bundles/sui-ledger/dist/packages/finance-module/src/node.mjs +76 -0
  767. package/bundles/sui-ledger/dist/packages/finance-module/src/personal-preferences.mjs +103 -0
  768. package/bundles/sui-ledger/dist/packages/finance-module/src/route-contracts.mjs +11 -0
  769. package/bundles/sui-ledger/dist/packages/finance-module/src/routes.mjs +431 -0
  770. package/bundles/sui-ledger/dist/packages/finance-module/src/schema-compatibility.mjs +142 -0
  771. package/bundles/sui-ledger/dist/packages/finance-module/src/sdk-adapter.mjs +101 -0
  772. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-domain.mjs +207 -0
  773. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-routes.mjs +91 -0
  774. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-store.mjs +119 -0
  775. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-tools.mjs +283 -0
  776. package/bundles/sui-ledger/dist/packages/finance-module/src/service-records.mjs +626 -0
  777. package/bundles/sui-ledger/dist/packages/finance-module/src/service.mjs +2529 -0
  778. package/bundles/sui-ledger/dist/packages/finance-module/src/shared-draft-migration.mjs +39 -0
  779. package/bundles/sui-ledger/dist/packages/finance-module/src/single-draft-migration.mjs +70 -0
  780. package/bundles/sui-ledger/dist/packages/finance-module/src/source-reader.mjs +354 -0
  781. package/bundles/sui-ledger/dist/packages/finance-module/src/storage.mjs +282 -0
  782. package/bundles/sui-ledger/dist/packages/finance-module/src/tool-contracts.mjs +42 -0
  783. package/bundles/sui-ledger/dist/packages/finance-module/src/web-contracts.mjs +74 -0
  784. package/bundles/sui-ledger/dist/packages/interaction/src/registry.mjs +36 -0
  785. package/bundles/sui-ledger/dist/packages/interaction/src/service.mjs +424 -0
  786. package/bundles/sui-ledger/dist/packages/local-store/src/checkpoint-backup.mjs +40 -0
  787. package/bundles/sui-ledger/dist/packages/local-store/src/checkpoint-history.mjs +77 -0
  788. package/bundles/sui-ledger/dist/packages/local-store/src/database.mjs +1523 -0
  789. package/bundles/sui-ledger/dist/packages/local-store/src/exchange-rates.mjs +169 -0
  790. package/bundles/sui-ledger/dist/packages/local-store/src/node.mjs +71 -0
  791. package/bundles/sui-ledger/dist/packages/local-store/src/readonly-node.mjs +486 -0
  792. package/bundles/sui-ledger/dist/packages/sdk/src/account-snapshot-service.mjs +582 -0
  793. package/bundles/sui-ledger/dist/packages/sdk/src/cache-analysis.mjs +597 -0
  794. package/bundles/sui-ledger/dist/packages/sdk/src/config.mjs +64 -0
  795. package/bundles/sui-ledger/dist/packages/sdk/src/credential-identity.mjs +7 -0
  796. package/bundles/sui-ledger/dist/packages/sdk/src/credentials.mjs +86 -0
  797. package/bundles/sui-ledger/dist/packages/sdk/src/exchange-rate-service.mjs +253 -0
  798. package/bundles/sui-ledger/dist/packages/sdk/src/finance-cookie-cache.mjs +93 -0
  799. package/bundles/sui-ledger/dist/packages/sdk/src/finance-session.mjs +215 -0
  800. package/bundles/sui-ledger/dist/packages/sdk/src/frankfurter.mjs +125 -0
  801. package/bundles/sui-ledger/dist/packages/sdk/src/ledger-money.mjs +183 -0
  802. package/bundles/sui-ledger/dist/packages/sdk/src/node-readonly.mjs +381 -0
  803. package/bundles/sui-ledger/dist/packages/sdk/src/node.mjs +53 -0
  804. package/bundles/sui-ledger/dist/packages/sdk/src/probe.mjs +65 -0
  805. package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease-node.mjs +27 -0
  806. package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease-owner-node.mjs +68 -0
  807. package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease.mjs +143 -0
  808. package/bundles/sui-ledger/dist/packages/sdk/src/runtime.mjs +643 -0
  809. package/bundles/sui-ledger/dist/preferences-context.mjs +21 -0
  810. package/bundles/sui-ledger/dist/remote-write-policy.mjs +51 -0
  811. package/bundles/sui-ledger/dist/routes/finance-api.mjs +380 -0
  812. package/bundles/sui-ledger/dist/session/attachment-ownership.mjs +53 -0
  813. package/bundles/sui-ledger/dist/session/call-context.mjs +14 -0
  814. package/bundles/sui-ledger/dist/session/source-ports.mjs +74 -0
  815. package/bundles/sui-ledger/dist/storage/business-runtime.mjs +116 -0
  816. package/bundles/sui-ledger/dist/storage/maintenance-http.mjs +159 -0
  817. package/bundles/sui-ledger/dist/storage/paths.mjs +15 -0
  818. package/bundles/sui-ledger/dist/style.css +15448 -0
  819. package/bundles/sui-ledger/icon.svg +1 -0
  820. package/bundles/sui-ledger/locale/en.json +6 -0
  821. package/bundles/sui-ledger/locale/zh-CN.json +6 -0
  822. package/cordis.patch.yml +4 -0
  823. package/package.json +111 -3
@@ -0,0 +1,253 @@
1
+ import { fetchFrankfurterRateSnapshot, normalizeRateCurrencies } from "./frankfurter.mjs";
2
+ import { createHash, randomUUID } from "node:crypto";
3
+ //#region ../../packages/sdk/src/exchange-rate-service.ts
4
+ const QUOTE_RECHECK_MS = 216e5;
5
+ var ExchangeRateCoordinator = class {
6
+ options;
7
+ currencies;
8
+ timeZone;
9
+ refreshHour;
10
+ retryMilliseconds;
11
+ fetchImpl;
12
+ now;
13
+ pending;
14
+ pendingCurrencies = /* @__PURE__ */ new Set();
15
+ pendingForce = false;
16
+ checkedAt = /* @__PURE__ */ new Map();
17
+ timer;
18
+ stopped = false;
19
+ abortController = new AbortController();
20
+ constructor(options) {
21
+ this.options = options;
22
+ this.currencies = normalizeRateCurrencies(options.currencies ?? []);
23
+ this.timeZone = options.timeZone ?? "Asia/Shanghai";
24
+ this.refreshHour = options.refreshHour ?? 8;
25
+ this.retryMilliseconds = options.retryMilliseconds ?? 18e5;
26
+ this.fetchImpl = options.fetchImpl ?? fetch;
27
+ this.now = options.now ?? (() => /* @__PURE__ */ new Date());
28
+ if (!Number.isInteger(this.refreshHour) || this.refreshHour < 0 || this.refreshHour > 23) throw new Error("refreshHour must be between 0 and 23");
29
+ }
30
+ today() {
31
+ return dateInTimeZone(this.now(), this.timeZone);
32
+ }
33
+ ensureTodayRates(input = {}) {
34
+ for (const currency of this.requestedCurrencies(input.currencies)) this.pendingCurrencies.add(currency);
35
+ this.pendingForce ||= Boolean(input.force);
36
+ if (this.pending) return this.pending;
37
+ const operation = (async () => {
38
+ let result;
39
+ do {
40
+ const currencies = [...this.pendingCurrencies].sort();
41
+ const force = this.pendingForce;
42
+ this.pendingForce = false;
43
+ result = await this.refreshDate(this.today(), {
44
+ currencies,
45
+ force
46
+ });
47
+ if (!this.pendingForce && [...this.pendingCurrencies].every((currency) => currencies.includes(currency))) break;
48
+ } while (true);
49
+ return result;
50
+ })().finally(() => {
51
+ if (this.pending === operation) {
52
+ this.pending = void 0;
53
+ this.pendingCurrencies.clear();
54
+ }
55
+ });
56
+ this.pending = operation;
57
+ return operation;
58
+ }
59
+ async refreshDate(rateDate, input = {}) {
60
+ const capturedAt = this.now().toISOString();
61
+ const ownerId = randomUUID();
62
+ const expiresAt = new Date(this.now().getTime() + 12e4).toISOString();
63
+ let acquired = false;
64
+ let slotKey = "";
65
+ try {
66
+ const currencies = this.requestedCurrencies(input.currencies);
67
+ const checkKey = `${rateDate}:${currencies.join(",")}`;
68
+ if (!input.force) {
69
+ const current = this.withStore((store) => store.getExchangeRateSnapshotForDate("frankfurter", rateDate));
70
+ if (current && snapshotCovers(current, currencies)) {
71
+ const lastCheckedAt = Math.max(Date.parse(current.capturedAt), this.checkedAt.get(checkKey) ?? 0);
72
+ if (this.now().getTime() - lastCheckedAt < QUOTE_RECHECK_MS) return {
73
+ status: "already-current",
74
+ rateDate,
75
+ snapshot: current
76
+ };
77
+ }
78
+ }
79
+ const requestedSlotKey = input.force ? `manual-${capturedAt}-${randomUUID()}` : automaticSlotKey(currencies);
80
+ slotKey = requestedSlotKey;
81
+ acquired = this.withStore((store) => store.acquireExchangeRateRefreshLease({
82
+ provider: "frankfurter",
83
+ rateDate,
84
+ slotKey: requestedSlotKey,
85
+ ownerId,
86
+ expiresAt
87
+ }, capturedAt));
88
+ if (!acquired) return {
89
+ status: "busy",
90
+ rateDate,
91
+ warning: "另一个进程正在刷新当天汇率"
92
+ };
93
+ const result = await fetchFrankfurterRateSnapshot(currencies, rateDate, {
94
+ slotKey: requestedSlotKey,
95
+ capturedAt,
96
+ fetchImpl: this.fetchImpl,
97
+ signal: this.abortController.signal
98
+ });
99
+ this.checkedAt.set(checkKey, this.now().getTime());
100
+ if (this.checkedAt.size > 64) this.checkedAt.delete(this.checkedAt.keys().next().value);
101
+ const previous = this.withStore((store) => store.getExchangeRateSnapshotForDate("frankfurter", rateDate));
102
+ if (!input.force && previous && equivalentQuotes(previous, result.snapshot)) {
103
+ const missing = currencies.filter((currency) => !previous.payload.quotes[currency]);
104
+ return {
105
+ status: missing.length ? "partial" : "already-current",
106
+ rateDate,
107
+ snapshot: previous,
108
+ ...missing.length ? { warning: `部分币种报价不可用:${missing.join("、")}` } : {}
109
+ };
110
+ }
111
+ const snapshot = this.withStore((store) => store.appendExchangeRateSnapshot({
112
+ ...result.snapshot,
113
+ slotKey: input.force ? requestedSlotKey : `${requestedSlotKey}-${capturedAt}-${randomUUID()}`
114
+ }));
115
+ const failures = snapshot.payload.schemaVersion === 2 ? Object.keys(snapshot.payload.failures) : [];
116
+ return {
117
+ status: failures.length ? "partial" : "stored",
118
+ rateDate,
119
+ snapshot,
120
+ ...failures.length ? { warning: `部分币种报价不可用:${failures.join("、")}` } : {}
121
+ };
122
+ } catch (error) {
123
+ return {
124
+ status: "failed",
125
+ rateDate,
126
+ warning: error instanceof Error ? error.message : String(error)
127
+ };
128
+ } finally {
129
+ if (acquired && slotKey) try {
130
+ this.withStore((store) => store.releaseExchangeRateRefreshLease("frankfurter", rateDate, slotKey, ownerId));
131
+ } catch {}
132
+ }
133
+ }
134
+ start(onStatus) {
135
+ if (this.timer || this.pending) return;
136
+ this.stopped = false;
137
+ if (this.abortController.signal.aborted) this.abortController = new AbortController();
138
+ const run = async () => {
139
+ const status = await this.ensureTodayRates();
140
+ onStatus?.(status);
141
+ if (this.stopped) return;
142
+ if ([
143
+ "failed",
144
+ "busy",
145
+ "partial"
146
+ ].includes(status.status)) this.schedule(run, this.retryMilliseconds);
147
+ else {
148
+ const dailyCheck = millisecondsUntilNextHour(this.now(), this.timeZone, this.refreshHour);
149
+ this.schedule(run, Math.min(dailyCheck, QUOTE_RECHECK_MS));
150
+ }
151
+ };
152
+ run();
153
+ }
154
+ stop() {
155
+ this.stopped = true;
156
+ this.abortController.abort();
157
+ if (this.timer) clearTimeout(this.timer);
158
+ this.timer = void 0;
159
+ }
160
+ async settle() {
161
+ await this.pending;
162
+ }
163
+ schedule(operation, delay) {
164
+ if (this.timer) clearTimeout(this.timer);
165
+ this.timer = setTimeout(operation, Math.max(1e3, delay));
166
+ this.timer.unref?.();
167
+ }
168
+ withStore(operation) {
169
+ const store = this.options.openStore();
170
+ try {
171
+ return operation(store);
172
+ } finally {
173
+ this.options.closeStore?.(store);
174
+ }
175
+ }
176
+ requestedCurrencies(explicit) {
177
+ if (explicit) return normalizeRateCurrencies(explicit);
178
+ const dynamic = this.options.resolveCurrencies?.() ?? [];
179
+ return normalizeRateCurrencies([...this.currencies, ...dynamic]);
180
+ }
181
+ };
182
+ function configuredRateCurrencies(env = process.env) {
183
+ return normalizeRateCurrencies((env.SUI_LEDGER_RATE_CURRENCIES ?? "").split(","));
184
+ }
185
+ function accountRateCurrencies(accounts) {
186
+ return normalizeRateCurrencies([...accounts].flatMap((account) => account.currency?.trim() ? [account.currency] : []));
187
+ }
188
+ function automaticSlotKey(currencies) {
189
+ return `daily-${createHash("sha256").update(currencies.join(",")).digest("hex").slice(0, 16)}`;
190
+ }
191
+ function snapshotCovers(snapshot, currencies) {
192
+ return currencies.every((currency) => Boolean(snapshot.payload.quotes[currency]));
193
+ }
194
+ function dateInTimeZone(date, timeZone = "Asia/Shanghai") {
195
+ const parts = new Intl.DateTimeFormat("en-CA", {
196
+ timeZone,
197
+ year: "numeric",
198
+ month: "2-digit",
199
+ day: "2-digit"
200
+ }).formatToParts(date);
201
+ const value = Object.fromEntries(parts.map((part) => [part.type, part.value]));
202
+ return `${value.year}-${value.month}-${value.day}`;
203
+ }
204
+ function millisecondsUntilNextHour(date, timeZone, hour) {
205
+ const local = zonedParts(date, timeZone);
206
+ const todayAtHour = zonedLocalToUtc(local.year, local.month, local.day, hour, timeZone);
207
+ if (todayAtHour.getTime() > date.getTime()) return todayAtHour.getTime() - date.getTime();
208
+ const tomorrow = zonedParts(new Date(Date.UTC(local.year, local.month - 1, local.day + 1, 12)), timeZone);
209
+ return zonedLocalToUtc(tomorrow.year, tomorrow.month, tomorrow.day, hour, timeZone).getTime() - date.getTime();
210
+ }
211
+ function zonedParts(date, timeZone) {
212
+ const parts = new Intl.DateTimeFormat("en-US", {
213
+ timeZone,
214
+ year: "numeric",
215
+ month: "2-digit",
216
+ day: "2-digit",
217
+ hour: "2-digit",
218
+ hourCycle: "h23"
219
+ }).formatToParts(date);
220
+ const value = Object.fromEntries(parts.map((part) => [part.type, part.value]));
221
+ return {
222
+ year: Number(value.year),
223
+ month: Number(value.month),
224
+ day: Number(value.day),
225
+ hour: Number(value.hour)
226
+ };
227
+ }
228
+ function zonedLocalToUtc(year, month, day, hour, timeZone) {
229
+ const desired = Date.UTC(year, month - 1, day, hour);
230
+ let candidate = desired;
231
+ for (let attempt = 0; attempt < 3; attempt += 1) {
232
+ const actual = zonedParts(new Date(candidate), timeZone);
233
+ const represented = Date.UTC(actual.year, actual.month - 1, actual.day, actual.hour);
234
+ candidate -= represented - desired;
235
+ }
236
+ return new Date(candidate);
237
+ }
238
+ function equivalentQuotes(left, right) {
239
+ const key = (snapshot) => JSON.stringify({
240
+ quotes: Object.entries(snapshot.payload.quotes).sort(([a], [b]) => a.localeCompare(b)).map(([currency, quote]) => [
241
+ currency,
242
+ quote.providerRate,
243
+ quote.rateToCny.numerator,
244
+ quote.rateToCny.denominator,
245
+ "providerDate" in quote ? quote.providerDate : snapshot.providerDate,
246
+ "sources" in quote ? quote.sources : []
247
+ ]),
248
+ failures: snapshot.payload.schemaVersion === 2 ? Object.entries(snapshot.payload.failures).sort(([a], [b]) => a.localeCompare(b)) : []
249
+ });
250
+ return key(left) === key(right) && JSON.stringify(left.payload.requestedCurrencies) === JSON.stringify(right.payload.requestedCurrencies);
251
+ }
252
+ //#endregion
253
+ export { ExchangeRateCoordinator, accountRateCurrencies, configuredRateCurrencies, dateInTimeZone, millisecondsUntilNextHour };
@@ -0,0 +1,93 @@
1
+ import { atomicWrite } from "../../data-maintenance/src/files.mjs";
2
+ import { FeideeError } from "../../finance/src/errors.mjs";
3
+ import "../../finance/src/index.mjs";
4
+ import { join } from "node:path";
5
+ import { createHash } from "node:crypto";
6
+ import { chmodSync, lstatSync, mkdirSync, readFileSync, unlinkSync } from "node:fs";
7
+ import { AsyncLocalStorage } from "node:async_hooks";
8
+ //#region ../../packages/sdk/src/finance-cookie-cache.ts
9
+ /** Owned by the SDK; never included in the Profile resource/snapshot catalog. */
10
+ var FinanceCookieCache = class {
11
+ identity;
12
+ directory;
13
+ path;
14
+ active = new AsyncLocalStorage();
15
+ failure;
16
+ constructor(dataDirectory, identity) {
17
+ this.identity = identity;
18
+ this.directory = join(dataDirectory, ".sessions");
19
+ this.path = join(this.directory, `feidee-${createHash("sha256").update(identity).digest("hex").slice(0, 24)}.json`);
20
+ }
21
+ clear() {
22
+ try {
23
+ unlinkSync(this.path);
24
+ } catch (error) {
25
+ if (error.code !== "ENOENT") throw new FeideeError("Saved remote session is unavailable", "SESSION_CACHE_UNAVAILABLE");
26
+ }
27
+ }
28
+ /** The caller must hold the Profile's finance/ledger cross-process lease. */
29
+ async run(client, operation, recoverInvalidCache = false) {
30
+ if (this.active.getStore()) return operation();
31
+ return this.active.run(true, async () => {
32
+ this.load(client, recoverInvalidCache);
33
+ try {
34
+ return await operation();
35
+ } finally {
36
+ try {
37
+ this.save(client);
38
+ delete this.failure;
39
+ } catch {
40
+ this.failure = "SESSION_CACHE_UNAVAILABLE";
41
+ }
42
+ }
43
+ });
44
+ }
45
+ prepareDirectory() {
46
+ mkdirSync(this.directory, {
47
+ recursive: true,
48
+ mode: 448
49
+ });
50
+ this.assertOwned(this.directory, true);
51
+ chmodSync(this.directory, 448);
52
+ }
53
+ assertOwned(path, directory = false) {
54
+ const stat = lstatSync(path);
55
+ if (stat.isSymbolicLink() || (directory ? !stat.isDirectory() : !stat.isFile()) || process.getuid && stat.uid !== process.getuid()) throw new Error("Unsafe session cache");
56
+ }
57
+ load(client, recoverInvalidCache) {
58
+ try {
59
+ this.prepareDirectory();
60
+ try {
61
+ lstatSync(this.path);
62
+ } catch (error) {
63
+ if (error.code !== "ENOENT") throw error;
64
+ client.restoreCookies();
65
+ return;
66
+ }
67
+ this.assertOwned(this.path);
68
+ chmodSync(this.path, 384);
69
+ const serialized = readFileSync(this.path, "utf8");
70
+ try {
71
+ const value = JSON.parse(serialized);
72
+ if (value.version !== 1 || value.identity !== this.identity || typeof value.cookies !== "string") throw new Error("Invalid session cache");
73
+ client.restoreCookies(value.cookies);
74
+ } catch (error) {
75
+ if (!recoverInvalidCache) throw error;
76
+ client.restoreCookies();
77
+ }
78
+ } catch {
79
+ this.failure = "SESSION_CACHE_UNAVAILABLE";
80
+ throw new FeideeError("Saved remote session is unavailable", "SESSION_CACHE_UNAVAILABLE");
81
+ }
82
+ }
83
+ save(client) {
84
+ this.prepareDirectory();
85
+ atomicWrite(this.path, JSON.stringify({
86
+ version: 1,
87
+ identity: this.identity,
88
+ cookies: client.serializeCookies()
89
+ }));
90
+ }
91
+ };
92
+ //#endregion
93
+ export { FinanceCookieCache };
@@ -0,0 +1,215 @@
1
+ import { AuthenticationError, FeideeError, isTemporaryRemoteError, remoteTransportCode, sanitizeRemoteDiagnostic } from "../../finance/src/errors.mjs";
2
+ import "../../finance/src/index.mjs";
3
+ import { AsyncLocalStorage } from "node:async_hooks";
4
+ //#region ../../packages/sdk/src/finance-session.ts
5
+ /** All cookie access uses the runtime's existing exclusive session lock. */
6
+ var FinanceSession = class {
7
+ client;
8
+ credentials;
9
+ exclusive;
10
+ queueTimeoutMs;
11
+ cacheFailure;
12
+ state;
13
+ remoteStatus = "unchecked";
14
+ checking;
15
+ loggingIn;
16
+ loginWork;
17
+ reads = new AsyncLocalStorage();
18
+ constructor(client, credentials, capabilities, exclusive, queueTimeoutMs = 3e4, cacheFailure = () => void 0) {
19
+ this.client = client;
20
+ this.credentials = credentials;
21
+ this.exclusive = exclusive;
22
+ this.queueTimeoutMs = queueTimeoutMs;
23
+ this.cacheFailure = cacheFailure;
24
+ this.state = {
25
+ status: "unchecked",
26
+ credentialSource: capabilities.source,
27
+ credentialConfigured: null,
28
+ canSaveCredentials: capabilities.canSave
29
+ };
30
+ }
31
+ async snapshot() {
32
+ const cacheFailure = this.cacheFailure();
33
+ return {
34
+ ...this.state,
35
+ ...cacheFailure ? { cacheFailure } : {}
36
+ };
37
+ }
38
+ check() {
39
+ if (this.loggingIn) return this.loggingIn;
40
+ if (this.loginWork) return this.loginWork.catch((error) => this.recordFailure(error)).then(() => this.snapshot());
41
+ if (this.checking) return this.checking;
42
+ const run = this.withSessionLock(async () => {
43
+ try {
44
+ await this.readInsideLock(async () => void 0);
45
+ } catch {}
46
+ return this.snapshot();
47
+ }).catch((error) => {
48
+ this.recordFailure(error);
49
+ return this.snapshot();
50
+ });
51
+ this.checking = run.finally(() => {
52
+ this.checking = void 0;
53
+ });
54
+ return this.checking;
55
+ }
56
+ login(credential) {
57
+ if (this.loggingIn) return this.loggingIn;
58
+ if (this.loginWork) return this.loginWork.catch((error) => this.recordFailure(error)).then(() => this.snapshot());
59
+ this.state.status = "reauthenticating";
60
+ const run = this.withSessionLock(async () => {
61
+ try {
62
+ if (credential && !this.state.canSaveCredentials) throw new AuthenticationError("Credential provider is read-only", void 0, "restricted");
63
+ delete this.state.loginFailure;
64
+ await this.loginInsideLock(credential);
65
+ if (credential) try {
66
+ await this.credentials.set(credential);
67
+ this.state.credentialConfigured = true;
68
+ this.state.saveFailed = false;
69
+ } catch {
70
+ this.state.saveFailed = true;
71
+ this.state.loginFailure = "credential_unavailable";
72
+ }
73
+ } catch (error) {
74
+ this.recordFailure(error);
75
+ }
76
+ return this.snapshot();
77
+ }, true).catch((error) => {
78
+ this.recordFailure(error);
79
+ return this.snapshot();
80
+ });
81
+ this.loggingIn = run.finally(() => {
82
+ this.loggingIn = void 0;
83
+ });
84
+ return this.loggingIn;
85
+ }
86
+ read(operation, attempt) {
87
+ return this.withSessionLock(() => this.readInsideLock(operation, attempt));
88
+ }
89
+ /** Call only while holding the shared lock, and only with read-only work. */
90
+ async readInsideLock(operation, attempt) {
91
+ const booksInScope = this.reads.getStore();
92
+ if (booksInScope) return operation(booksInScope);
93
+ let verified = false;
94
+ try {
95
+ const retryAttempt = attempt ?? { autoLoginUsed: true };
96
+ let loginBooks;
97
+ for (;;) try {
98
+ verified = false;
99
+ this.state.status = "checking";
100
+ attempt?.onProgress?.({ stage: "session" });
101
+ const books = loginBooks ?? await this.client.withDeadline(() => this.retryReadonly(() => this.client.listBooks(), retryAttempt));
102
+ loginBooks = void 0;
103
+ verified = true;
104
+ this.markVerified();
105
+ return await this.reads.run(books, () => operation(books));
106
+ } catch (error) {
107
+ if (error instanceof AuthenticationError && error.reason === "expired") {
108
+ this.setRemoteStatus("expired");
109
+ if (attempt && !attempt.autoLoginUsed) {
110
+ if (this.state.loginFailure) throw new AuthenticationError("Manual login recovery is required", void 0, this.state.loginFailure);
111
+ attempt.autoLoginUsed = true;
112
+ attempt.onAutoLogin?.();
113
+ attempt.onProgress?.({ stage: "login" });
114
+ loginBooks = await this.loginInsideLock();
115
+ verified = true;
116
+ attempt.afterAutoLogin?.();
117
+ continue;
118
+ }
119
+ }
120
+ throw error;
121
+ }
122
+ } catch (error) {
123
+ this.recordFailure(error, verified);
124
+ if (error instanceof AuthenticationError || isTemporaryRemoteError(error)) {
125
+ const safe = error instanceof AuthenticationError ? new AuthenticationError("Remote login is unavailable", void 0, error.reason) : new FeideeError("Remote request failed", error instanceof FeideeError ? error.code : remoteTransportCode(error) ?? "NETWORK_UNAVAILABLE");
126
+ if (error instanceof FeideeError && error.diagnostic) safe.diagnostic = sanitizeRemoteDiagnostic(error.diagnostic);
127
+ throw safe;
128
+ }
129
+ throw error;
130
+ } finally {
131
+ this.state.lastCheckedAt = (/* @__PURE__ */ new Date()).toISOString();
132
+ }
133
+ }
134
+ /** The caller owns the deadline; never use this around a mutation or its callback. */
135
+ async retryReadonly(read, attempt) {
136
+ try {
137
+ return await read();
138
+ } catch (error) {
139
+ if (!isTemporaryRemoteError(error) || attempt.networkRetryUsed) throw error;
140
+ attempt.networkRetryUsed = true;
141
+ return read();
142
+ }
143
+ }
144
+ loginInsideLock(input) {
145
+ if (this.loginWork) return this.loginWork;
146
+ this.loginWork = this.performLogin(input).finally(() => {
147
+ this.loginWork = void 0;
148
+ });
149
+ return this.loginWork;
150
+ }
151
+ async performLogin(input) {
152
+ this.state.status = "reauthenticating";
153
+ let credential = input;
154
+ if (!credential) try {
155
+ credential = await this.credentials.get() ?? void 0;
156
+ this.state.credentialConfigured = Boolean(credential);
157
+ } catch (error) {
158
+ this.state.credentialConfigured = null;
159
+ throw new AuthenticationError("Unable to read saved credentials", void 0, error instanceof AuthenticationError && error.reason === "invalid_credentials" ? "invalid_credentials" : "credential_unavailable");
160
+ }
161
+ if (!credential) throw new AuthenticationError("No saved credentials", void 0, "missing_credentials");
162
+ this.remoteStatus = "unchecked";
163
+ const books = await this.client.withDeadline(async () => {
164
+ if (this.client.loginAndListBooks) return this.client.loginAndListBooks(credential.username, credential.password);
165
+ await this.client.login(credential.username, credential.password);
166
+ return this.client.listBooks();
167
+ });
168
+ delete this.state.loginFailure;
169
+ this.markVerified();
170
+ return books;
171
+ }
172
+ markVerified() {
173
+ delete this.state.checkFailure;
174
+ this.setRemoteStatus("authenticated");
175
+ this.state.lastVerifiedAt = (/* @__PURE__ */ new Date()).toISOString();
176
+ this.state.lastCheckedAt = this.state.lastVerifiedAt;
177
+ }
178
+ setRemoteStatus(status) {
179
+ this.remoteStatus = status;
180
+ this.state.status = status;
181
+ }
182
+ recordFailure(error, verified = false) {
183
+ if (error instanceof FeideeError && error.code === "SESSION_BUSY") {
184
+ this.state.status = this.remoteStatus;
185
+ this.state.checkFailure = "SESSION_BUSY";
186
+ this.state.lastCheckedAt = (/* @__PURE__ */ new Date()).toISOString();
187
+ } else if (error instanceof AuthenticationError) {
188
+ if (error.reason === "expired") this.setRemoteStatus("expired");
189
+ else {
190
+ this.state.loginFailure = error.reason;
191
+ this.state.status = this.remoteStatus;
192
+ }
193
+ } else if (verified) this.setRemoteStatus("authenticated");
194
+ else if (isTemporaryRemoteError(error)) this.setRemoteStatus("network_unavailable");
195
+ else this.setRemoteStatus("unavailable");
196
+ }
197
+ withSessionLock(operation, recoverInvalidCache = false) {
198
+ let expired = false;
199
+ let timer;
200
+ const timeout = new Promise((_, reject) => {
201
+ timer = setTimeout(() => {
202
+ expired = true;
203
+ reject(new FeideeError("Remote session is busy", "SESSION_BUSY"));
204
+ }, this.queueTimeoutMs);
205
+ });
206
+ const work = this.exclusive(() => {
207
+ clearTimeout(timer);
208
+ if (expired) throw new FeideeError("Remote session is busy", "SESSION_BUSY");
209
+ return operation();
210
+ }, recoverInvalidCache);
211
+ return Promise.race([work, timeout]).finally(() => clearTimeout(timer));
212
+ }
213
+ };
214
+ //#endregion
215
+ export { FinanceSession };
@@ -0,0 +1,125 @@
1
+ //#region ../../packages/sdk/src/frankfurter.ts
2
+ async function fetchFrankfurterRateSnapshot(currencies, rateDate, input = {}) {
3
+ if (!validDate(rateDate)) throw new Error("rateDate must use a valid YYYY-MM-DD");
4
+ const requestedCurrencies = normalizeRateCurrencies(currencies);
5
+ const targets = requestedCurrencies.filter((currency) => currency !== "CNY");
6
+ const capturedAt = input.capturedAt ?? (/* @__PURE__ */ new Date()).toISOString();
7
+ const quotes = { CNY: {
8
+ providerRate: "1",
9
+ rateToCny: {
10
+ numerator: "1",
11
+ denominator: "1"
12
+ },
13
+ providerDate: rateDate,
14
+ capturedAt,
15
+ sources: []
16
+ } };
17
+ const failures = {};
18
+ const fetchImpl = input.fetchImpl ?? fetch;
19
+ async function request(selected, split) {
20
+ if (!selected.length) return;
21
+ const url = new URL("https://api.frankfurter.dev/v2/rates");
22
+ url.searchParams.set("base", "CNY");
23
+ url.searchParams.set("quotes", selected.join(","));
24
+ url.searchParams.set("date", rateDate);
25
+ url.searchParams.set("expand", "providers");
26
+ const response = await fetchImpl(url, {
27
+ headers: { accept: "application/json" },
28
+ signal: input.signal ? AbortSignal.any([input.signal, AbortSignal.timeout(3e4)]) : AbortSignal.timeout(3e4)
29
+ });
30
+ if (!response.ok) {
31
+ if (split && selected.length > 1 && [404, 422].includes(response.status)) {
32
+ for (const currency of selected) await request([currency], false);
33
+ return;
34
+ }
35
+ if (![404, 422].includes(response.status)) throw new Error(`Frankfurter HTTP ${response.status}`);
36
+ for (const currency of selected) failures[currency] = `Frankfurter HTTP ${response.status}`;
37
+ return;
38
+ }
39
+ const source = await response.text();
40
+ const rows = JSON.parse(source.replace(/("rate"\s*:\s*)(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)/g, "$1\"$2\""));
41
+ if (!Array.isArray(rows)) throw new Error("Frankfurter returned an unexpected response contract");
42
+ for (const currency of selected) {
43
+ const row = rows.find((item) => item.quote === currency && item.base === "CNY");
44
+ try {
45
+ if (!row || typeof row.rate !== "string" || !validDate(row.date) || row.date > rateDate) throw new Error(`Missing or future ${currency} quote`);
46
+ const ratio = decimalRatio(row.rate);
47
+ quotes[currency] = {
48
+ providerRate: row.rate,
49
+ rateToCny: {
50
+ numerator: ratio.denominator.toString(),
51
+ denominator: ratio.numerator.toString()
52
+ },
53
+ providerDate: row.date,
54
+ capturedAt,
55
+ sources: Array.isArray(row.providers) ? row.providers.filter((value) => typeof value === "string") : []
56
+ };
57
+ delete failures[currency];
58
+ } catch (error) {
59
+ failures[currency] = error instanceof Error ? error.message : String(error);
60
+ }
61
+ }
62
+ if (split && selected.length > 1) for (const currency of selected.filter((value) => !quotes[value])) await request([currency], false);
63
+ }
64
+ await request(targets, true);
65
+ if (targets.length && !targets.some((currency) => quotes[currency])) throw new Error(`Frankfurter did not return a usable ${targets.join(",")} quote`);
66
+ const providerDate = targets.flatMap((currency) => quotes[currency] ? [quotes[currency].providerDate] : []).sort()[0] ?? rateDate;
67
+ const snapshot = {
68
+ provider: "frankfurter",
69
+ rateDate,
70
+ slotKey: input.slotKey ?? "daily",
71
+ capturedAt,
72
+ providerDate,
73
+ payload: {
74
+ schemaVersion: 2,
75
+ base: "CNY",
76
+ requestedCurrencies,
77
+ quotes,
78
+ failures
79
+ }
80
+ };
81
+ return {
82
+ snapshot,
83
+ rates: ratesFromSnapshot(snapshot)
84
+ };
85
+ }
86
+ function ratesFromSnapshot(snapshot) {
87
+ return snapshot.payload.requestedCurrencies.flatMap((currency) => {
88
+ const quote = snapshot.payload.quotes[currency];
89
+ if (currency === "CNY" || !quote) return [];
90
+ return [{
91
+ from: currency,
92
+ to: "CNY",
93
+ ...quote.rateToCny,
94
+ observedAt: "providerDate" in quote ? String(quote.providerDate) : snapshot.providerDate,
95
+ path: [currency, "CNY"],
96
+ source: "frankfurter"
97
+ }];
98
+ });
99
+ }
100
+ function normalizeRateCurrencies(currencies) {
101
+ return ["CNY", ...[...new Set(currencies.map((currency) => currency.trim().toUpperCase()))].filter((currency) => /^[A-Z]{3}$/.test(currency) && currency !== "CNY").sort()];
102
+ }
103
+ function validDate(value) {
104
+ return typeof value === "string" && /^\d{4}-\d{2}-\d{2}$/.test(value) && Number.isFinite(Date.parse(value)) && new Date(value).toISOString().slice(0, 10) === value;
105
+ }
106
+ function decimalRatio(value) {
107
+ const match = value.trim().match(/^(-?)(\d+)(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
108
+ if (!match || match[1] === "-" || Math.abs(Number(match[4] ?? 0)) > 100) throw new Error("invalid positive decimal rate");
109
+ const fraction = match[3] ?? "";
110
+ const exponent = Number(match[4] ?? 0);
111
+ let numerator = BigInt(`${match[2]}${fraction}`);
112
+ let denominator = 10n ** BigInt(fraction.length);
113
+ if (exponent > 0) numerator *= 10n ** BigInt(exponent);
114
+ if (exponent < 0) denominator *= 10n ** BigInt(-exponent);
115
+ if (numerator <= 0n) throw new Error("rate must be positive");
116
+ let a = numerator;
117
+ let b = denominator;
118
+ while (b) [a, b] = [b, a % b];
119
+ return {
120
+ numerator: numerator / a,
121
+ denominator: denominator / a
122
+ };
123
+ }
124
+ //#endregion
125
+ export { fetchFrankfurterRateSnapshot, normalizeRateCurrencies, ratesFromSnapshot };