@coinbase/cdp-core 0.0.65 → 0.0.66

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 (290) hide show
  1. package/README.md +1 -1
  2. package/dist/esm/index.native100.js +364 -28
  3. package/dist/esm/index.native101.js +4 -2
  4. package/dist/esm/index.native102.js +28 -65
  5. package/dist/esm/index.native103.js +28 -364
  6. package/dist/esm/index.native111.js +1 -1
  7. package/dist/esm/index.native12.js +22 -20
  8. package/dist/esm/index.native124.js +16 -12
  9. package/dist/esm/index.native136.js +19 -16
  10. package/dist/esm/index.native148.js +38 -7
  11. package/dist/esm/index.native150.js +67 -375
  12. package/dist/esm/index.native151.js +34 -832
  13. package/dist/esm/index.native152.js +20 -38
  14. package/dist/esm/index.native153.js +8 -2
  15. package/dist/esm/index.native154.js +2 -70
  16. package/dist/esm/index.native155.js +373 -30
  17. package/dist/esm/index.native156.js +832 -20
  18. package/dist/esm/index.native169.js +1 -1
  19. package/dist/esm/index.native171.js +2 -2
  20. package/dist/esm/index.native172.js +2 -2
  21. package/dist/esm/index.native173.js +2 -2
  22. package/dist/esm/index.native28.js +1 -1
  23. package/dist/esm/index.native47.js +1 -1
  24. package/dist/esm/index.native48.js +3 -3
  25. package/dist/esm/index.native97.js +377 -2
  26. package/dist/esm/index.native98.js +2 -379
  27. package/dist/esm/index.native99.js +65 -28
  28. package/dist/esm/index.web100.js +4 -2
  29. package/dist/esm/index.web101.js +28 -65
  30. package/dist/esm/index.web102.js +28 -364
  31. package/dist/esm/index.web103.js +6 -6
  32. package/dist/esm/index.web109.js +20 -4
  33. package/dist/esm/index.web11.js +22 -20
  34. package/dist/esm/index.web110.js +5 -19
  35. package/dist/esm/index.web111.js +47 -7
  36. package/dist/esm/index.web112.js +19 -3
  37. package/dist/esm/index.web113.js +79 -19
  38. package/dist/esm/index.web114.js +103 -8
  39. package/dist/esm/index.web115.js +32 -7
  40. package/dist/esm/index.web116.js +6 -71
  41. package/dist/esm/index.web117.js +4 -18
  42. package/dist/esm/index.web118.js +78 -3
  43. package/dist/esm/index.web119.js +4 -4
  44. package/dist/esm/index.web120.js +18 -4
  45. package/dist/esm/index.web121.js +7 -4
  46. package/dist/esm/index.web122.js +3 -19
  47. package/dist/esm/index.web123.js +17 -46
  48. package/dist/esm/index.web124.js +8 -17
  49. package/dist/esm/index.web125.js +7 -20
  50. package/dist/esm/index.web126.js +71 -8
  51. package/dist/esm/index.web127.js +14 -26
  52. package/dist/esm/index.web128.js +3 -7
  53. package/dist/esm/index.web129.js +4 -20
  54. package/dist/esm/index.web130.js +4 -20
  55. package/dist/esm/index.web131.js +5 -5
  56. package/dist/esm/index.web132.js +16 -44
  57. package/dist/esm/index.web133.js +50 -17
  58. package/dist/esm/index.web134.js +17 -79
  59. package/dist/esm/index.web135.js +22 -102
  60. package/dist/esm/index.web136.js +8 -32
  61. package/dist/esm/index.web137.js +30 -6
  62. package/dist/esm/index.web138.js +7 -4
  63. package/dist/esm/index.web139.js +18 -18
  64. package/dist/esm/index.web140.js +4 -10
  65. package/dist/esm/index.web141.js +20 -19
  66. package/dist/esm/index.web142.js +9 -93
  67. package/dist/esm/index.web143.js +18 -19
  68. package/dist/esm/index.web144.js +81 -105
  69. package/dist/esm/index.web145.js +20 -78
  70. package/dist/esm/index.web146.js +118 -4
  71. package/dist/esm/index.web147.js +7 -46
  72. package/dist/esm/index.web148.js +2 -8
  73. package/dist/esm/index.web149.js +378 -2
  74. package/dist/esm/index.web150.js +809 -354
  75. package/dist/esm/index.web151.js +38 -832
  76. package/dist/esm/index.web152.js +2 -39
  77. package/dist/esm/index.web153.js +70 -2
  78. package/dist/esm/index.web154.js +31 -66
  79. package/dist/esm/index.web155.js +19 -33
  80. package/dist/esm/index.web156.js +5 -21
  81. package/dist/esm/index.web157.js +2 -5
  82. package/dist/esm/index.web158.js +109 -2
  83. package/dist/esm/index.web159.js +2 -109
  84. package/dist/esm/index.web160.js +18 -2
  85. package/dist/esm/index.web161.js +28 -18
  86. package/dist/esm/index.web162.js +6 -26
  87. package/dist/esm/index.web163.js +9 -6
  88. package/dist/esm/index.web164.js +13 -11
  89. package/dist/esm/index.web165.js +8 -11
  90. package/dist/esm/index.web166.js +14 -7
  91. package/dist/esm/index.web167.js +80 -16
  92. package/dist/esm/index.web168.js +45 -79
  93. package/dist/esm/index.web169.js +1 -1
  94. package/dist/esm/index.web25.js +2 -2
  95. package/dist/esm/index.web26.js +1 -1
  96. package/dist/esm/index.web37.js +12 -12
  97. package/dist/esm/index.web43.js +2 -2
  98. package/dist/esm/index.web46.js +1 -1
  99. package/dist/esm/index.web47.js +3 -3
  100. package/dist/esm/index.web57.js +18 -2
  101. package/dist/esm/index.web58.js +45 -376
  102. package/dist/esm/index.web59.js +13 -28
  103. package/dist/esm/index.web60.js +55 -28
  104. package/dist/esm/index.web61.js +6 -17
  105. package/dist/esm/index.web62.js +20 -44
  106. package/dist/esm/index.web63.js +11 -13
  107. package/dist/esm/index.web64.js +3 -55
  108. package/dist/esm/index.web65.js +3 -6
  109. package/dist/esm/index.web66.js +33 -20
  110. package/dist/esm/index.web67.js +12 -11
  111. package/dist/esm/index.web68.js +4 -3
  112. package/dist/esm/index.web69.js +28 -3
  113. package/dist/esm/index.web70.js +6 -34
  114. package/dist/esm/index.web71.js +41 -11
  115. package/dist/esm/index.web72.js +55 -4
  116. package/dist/esm/index.web73.js +127 -28
  117. package/dist/esm/index.web74.js +23 -6
  118. package/dist/esm/index.web75.js +11 -41
  119. package/dist/esm/index.web76.js +102 -53
  120. package/dist/esm/index.web77.js +6 -127
  121. package/dist/esm/index.web78.js +3 -24
  122. package/dist/esm/index.web79.js +14 -12
  123. package/dist/esm/index.web80.js +30 -100
  124. package/dist/esm/index.web81.js +78 -6
  125. package/dist/esm/index.web82.js +2 -3
  126. package/dist/esm/index.web83.js +2 -15
  127. package/dist/esm/index.web84.js +8 -30
  128. package/dist/esm/index.web85.js +33 -74
  129. package/dist/esm/index.web86.js +7 -2
  130. package/dist/esm/index.web87.js +35 -2
  131. package/dist/esm/index.web88.js +8 -12
  132. package/dist/esm/index.web89.js +9 -36
  133. package/dist/esm/index.web90.js +11 -6
  134. package/dist/esm/index.web91.js +12 -33
  135. package/dist/esm/index.web92.js +18 -8
  136. package/dist/esm/index.web93.js +5 -10
  137. package/dist/esm/index.web94.js +5 -12
  138. package/dist/esm/index.web95.js +10 -13
  139. package/dist/esm/index.web96.js +376 -18
  140. package/dist/esm/index.web97.js +2 -8
  141. package/dist/esm/index.web98.js +66 -5
  142. package/dist/esm/index.web99.js +364 -10
  143. package/dist/native/index.native100.js +364 -28
  144. package/dist/native/index.native101.js +4 -2
  145. package/dist/native/index.native102.js +28 -65
  146. package/dist/native/index.native103.js +28 -364
  147. package/dist/native/index.native111.js +1 -1
  148. package/dist/native/index.native12.js +22 -20
  149. package/dist/native/index.native124.js +16 -12
  150. package/dist/native/index.native136.js +19 -16
  151. package/dist/native/index.native148.js +38 -7
  152. package/dist/native/index.native150.js +67 -375
  153. package/dist/native/index.native151.js +34 -832
  154. package/dist/native/index.native152.js +20 -38
  155. package/dist/native/index.native153.js +8 -2
  156. package/dist/native/index.native154.js +2 -70
  157. package/dist/native/index.native155.js +373 -30
  158. package/dist/native/index.native156.js +832 -20
  159. package/dist/native/index.native169.js +1 -1
  160. package/dist/native/index.native171.js +2 -2
  161. package/dist/native/index.native172.js +2 -2
  162. package/dist/native/index.native173.js +2 -2
  163. package/dist/native/index.native28.js +1 -1
  164. package/dist/native/index.native47.js +1 -1
  165. package/dist/native/index.native48.js +3 -3
  166. package/dist/native/index.native97.js +377 -2
  167. package/dist/native/index.native98.js +2 -379
  168. package/dist/native/index.native99.js +65 -28
  169. package/dist/native-types/eip1193/types.d.ts +4 -1
  170. package/dist/native-types/version.d.ts +1 -1
  171. package/dist/types/eip1193/types.d.ts +4 -1
  172. package/dist/types/version.d.ts +1 -1
  173. package/dist/web/index.web100.js +4 -2
  174. package/dist/web/index.web101.js +28 -65
  175. package/dist/web/index.web102.js +28 -364
  176. package/dist/web/index.web103.js +6 -6
  177. package/dist/web/index.web109.js +20 -4
  178. package/dist/web/index.web11.js +22 -20
  179. package/dist/web/index.web110.js +5 -19
  180. package/dist/web/index.web111.js +47 -7
  181. package/dist/web/index.web112.js +19 -3
  182. package/dist/web/index.web113.js +79 -19
  183. package/dist/web/index.web114.js +103 -8
  184. package/dist/web/index.web115.js +32 -7
  185. package/dist/web/index.web116.js +6 -71
  186. package/dist/web/index.web117.js +4 -18
  187. package/dist/web/index.web118.js +78 -3
  188. package/dist/web/index.web119.js +4 -4
  189. package/dist/web/index.web120.js +18 -4
  190. package/dist/web/index.web121.js +7 -4
  191. package/dist/web/index.web122.js +3 -19
  192. package/dist/web/index.web123.js +17 -46
  193. package/dist/web/index.web124.js +8 -17
  194. package/dist/web/index.web125.js +7 -20
  195. package/dist/web/index.web126.js +71 -8
  196. package/dist/web/index.web127.js +14 -26
  197. package/dist/web/index.web128.js +3 -7
  198. package/dist/web/index.web129.js +4 -20
  199. package/dist/web/index.web130.js +4 -20
  200. package/dist/web/index.web131.js +5 -5
  201. package/dist/web/index.web132.js +16 -44
  202. package/dist/web/index.web133.js +50 -17
  203. package/dist/web/index.web134.js +17 -79
  204. package/dist/web/index.web135.js +22 -102
  205. package/dist/web/index.web136.js +8 -32
  206. package/dist/web/index.web137.js +30 -6
  207. package/dist/web/index.web138.js +7 -4
  208. package/dist/web/index.web139.js +18 -18
  209. package/dist/web/index.web140.js +4 -10
  210. package/dist/web/index.web141.js +20 -19
  211. package/dist/web/index.web142.js +9 -93
  212. package/dist/web/index.web143.js +18 -19
  213. package/dist/web/index.web144.js +81 -105
  214. package/dist/web/index.web145.js +20 -78
  215. package/dist/web/index.web146.js +118 -4
  216. package/dist/web/index.web147.js +7 -46
  217. package/dist/web/index.web148.js +2 -8
  218. package/dist/web/index.web149.js +378 -2
  219. package/dist/web/index.web150.js +809 -354
  220. package/dist/web/index.web151.js +38 -832
  221. package/dist/web/index.web152.js +2 -39
  222. package/dist/web/index.web153.js +70 -2
  223. package/dist/web/index.web154.js +31 -66
  224. package/dist/web/index.web155.js +19 -33
  225. package/dist/web/index.web156.js +5 -21
  226. package/dist/web/index.web157.js +2 -5
  227. package/dist/web/index.web158.js +109 -2
  228. package/dist/web/index.web159.js +2 -109
  229. package/dist/web/index.web160.js +18 -2
  230. package/dist/web/index.web161.js +28 -18
  231. package/dist/web/index.web162.js +6 -26
  232. package/dist/web/index.web163.js +9 -6
  233. package/dist/web/index.web164.js +13 -11
  234. package/dist/web/index.web165.js +8 -11
  235. package/dist/web/index.web166.js +14 -7
  236. package/dist/web/index.web167.js +80 -16
  237. package/dist/web/index.web168.js +45 -79
  238. package/dist/web/index.web169.js +1 -1
  239. package/dist/web/index.web25.js +2 -2
  240. package/dist/web/index.web26.js +1 -1
  241. package/dist/web/index.web37.js +12 -12
  242. package/dist/web/index.web43.js +2 -2
  243. package/dist/web/index.web46.js +1 -1
  244. package/dist/web/index.web47.js +3 -3
  245. package/dist/web/index.web57.js +18 -2
  246. package/dist/web/index.web58.js +45 -376
  247. package/dist/web/index.web59.js +13 -28
  248. package/dist/web/index.web60.js +55 -28
  249. package/dist/web/index.web61.js +6 -17
  250. package/dist/web/index.web62.js +20 -44
  251. package/dist/web/index.web63.js +11 -13
  252. package/dist/web/index.web64.js +3 -55
  253. package/dist/web/index.web65.js +3 -6
  254. package/dist/web/index.web66.js +33 -20
  255. package/dist/web/index.web67.js +12 -11
  256. package/dist/web/index.web68.js +4 -3
  257. package/dist/web/index.web69.js +28 -3
  258. package/dist/web/index.web70.js +6 -34
  259. package/dist/web/index.web71.js +41 -11
  260. package/dist/web/index.web72.js +55 -4
  261. package/dist/web/index.web73.js +127 -28
  262. package/dist/web/index.web74.js +23 -6
  263. package/dist/web/index.web75.js +11 -41
  264. package/dist/web/index.web76.js +102 -53
  265. package/dist/web/index.web77.js +6 -127
  266. package/dist/web/index.web78.js +3 -24
  267. package/dist/web/index.web79.js +14 -12
  268. package/dist/web/index.web80.js +30 -100
  269. package/dist/web/index.web81.js +78 -6
  270. package/dist/web/index.web82.js +2 -3
  271. package/dist/web/index.web83.js +2 -15
  272. package/dist/web/index.web84.js +8 -30
  273. package/dist/web/index.web85.js +33 -74
  274. package/dist/web/index.web86.js +7 -2
  275. package/dist/web/index.web87.js +35 -2
  276. package/dist/web/index.web88.js +8 -12
  277. package/dist/web/index.web89.js +9 -36
  278. package/dist/web/index.web90.js +11 -6
  279. package/dist/web/index.web91.js +12 -33
  280. package/dist/web/index.web92.js +18 -8
  281. package/dist/web/index.web93.js +5 -10
  282. package/dist/web/index.web94.js +5 -12
  283. package/dist/web/index.web95.js +10 -13
  284. package/dist/web/index.web96.js +376 -18
  285. package/dist/web/index.web97.js +2 -8
  286. package/dist/web/index.web98.js +66 -5
  287. package/dist/web/index.web99.js +364 -10
  288. package/dist/web-types/eip1193/types.d.ts +4 -1
  289. package/dist/web-types/version.d.ts +1 -1
  290. package/package.json +2 -2
@@ -1,6 +1,120 @@
1
- function e(t) {
2
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3
- }
1
+ import { isJWK as p } from "./index.web166.js";
2
+ import { decode as m } from "./index.web141.js";
3
+ import y from "./index.web167.js";
4
+ import { isCryptoKey as S, isKeyObject as K } from "./index.web165.js";
5
+ let c;
6
+ const f = async (e, r, s, i = !1) => {
7
+ c ||= /* @__PURE__ */ new WeakMap();
8
+ let n = c.get(e);
9
+ if (n?.[s])
10
+ return n[s];
11
+ const t = await y({ ...r, alg: s });
12
+ return i && Object.freeze(e), n ? n[s] = t : c.set(e, { [s]: t }), t;
13
+ }, E = (e, r) => {
14
+ c ||= /* @__PURE__ */ new WeakMap();
15
+ let s = c.get(e);
16
+ if (s?.[r])
17
+ return s[r];
18
+ const i = e.type === "public", n = !!i;
19
+ let t;
20
+ if (e.asymmetricKeyType === "x25519") {
21
+ switch (r) {
22
+ case "ECDH-ES":
23
+ case "ECDH-ES+A128KW":
24
+ case "ECDH-ES+A192KW":
25
+ case "ECDH-ES+A256KW":
26
+ break;
27
+ default:
28
+ throw new TypeError("given KeyObject instance cannot be used for this algorithm");
29
+ }
30
+ t = e.toCryptoKey(e.asymmetricKeyType, n, i ? [] : ["deriveBits"]);
31
+ }
32
+ if (e.asymmetricKeyType === "ed25519") {
33
+ if (r !== "EdDSA" && r !== "Ed25519")
34
+ throw new TypeError("given KeyObject instance cannot be used for this algorithm");
35
+ t = e.toCryptoKey(e.asymmetricKeyType, n, [
36
+ i ? "verify" : "sign"
37
+ ]);
38
+ }
39
+ if (e.asymmetricKeyType === "rsa") {
40
+ let a;
41
+ switch (r) {
42
+ case "RSA-OAEP":
43
+ a = "SHA-1";
44
+ break;
45
+ case "RS256":
46
+ case "PS256":
47
+ case "RSA-OAEP-256":
48
+ a = "SHA-256";
49
+ break;
50
+ case "RS384":
51
+ case "PS384":
52
+ case "RSA-OAEP-384":
53
+ a = "SHA-384";
54
+ break;
55
+ case "RS512":
56
+ case "PS512":
57
+ case "RSA-OAEP-512":
58
+ a = "SHA-512";
59
+ break;
60
+ default:
61
+ throw new TypeError("given KeyObject instance cannot be used for this algorithm");
62
+ }
63
+ if (r.startsWith("RSA-OAEP"))
64
+ return e.toCryptoKey({
65
+ name: "RSA-OAEP",
66
+ hash: a
67
+ }, n, i ? ["encrypt"] : ["decrypt"]);
68
+ t = e.toCryptoKey({
69
+ name: r.startsWith("PS") ? "RSA-PSS" : "RSASSA-PKCS1-v1_5",
70
+ hash: a
71
+ }, n, [i ? "verify" : "sign"]);
72
+ }
73
+ if (e.asymmetricKeyType === "ec") {
74
+ const o = (/* @__PURE__ */ new Map([
75
+ ["prime256v1", "P-256"],
76
+ ["secp384r1", "P-384"],
77
+ ["secp521r1", "P-521"]
78
+ ])).get(e.asymmetricKeyDetails?.namedCurve);
79
+ if (!o)
80
+ throw new TypeError("given KeyObject instance cannot be used for this algorithm");
81
+ r === "ES256" && o === "P-256" && (t = e.toCryptoKey({
82
+ name: "ECDSA",
83
+ namedCurve: o
84
+ }, n, [i ? "verify" : "sign"])), r === "ES384" && o === "P-384" && (t = e.toCryptoKey({
85
+ name: "ECDSA",
86
+ namedCurve: o
87
+ }, n, [i ? "verify" : "sign"])), r === "ES512" && o === "P-521" && (t = e.toCryptoKey({
88
+ name: "ECDSA",
89
+ namedCurve: o
90
+ }, n, [i ? "verify" : "sign"])), r.startsWith("ECDH-ES") && (t = e.toCryptoKey({
91
+ name: "ECDH",
92
+ namedCurve: o
93
+ }, n, i ? [] : ["deriveBits"]));
94
+ }
95
+ if (!t)
96
+ throw new TypeError("given KeyObject instance cannot be used for this algorithm");
97
+ return s ? s[r] = t : c.set(e, { [r]: t }), t;
98
+ }, d = async (e, r) => {
99
+ if (e instanceof Uint8Array || S(e))
100
+ return e;
101
+ if (K(e)) {
102
+ if (e.type === "secret")
103
+ return e.export();
104
+ if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
105
+ try {
106
+ return E(e, r);
107
+ } catch (i) {
108
+ if (i instanceof TypeError)
109
+ throw i;
110
+ }
111
+ let s = e.export({ format: "jwk" });
112
+ return f(e, s, r);
113
+ }
114
+ if (p(e))
115
+ return e.k ? m(e.k) : f(e, e, r, !0);
116
+ throw new Error("unreachable");
117
+ };
4
118
  export {
5
- e as getDefaultExportFromCjs
119
+ d as default
6
120
  };
@@ -1,49 +1,10 @@
1
- import { BaseError as f } from "./index.web101.js";
2
- import { pad as g } from "./index.web169.js";
3
- function m(t, i = {}) {
4
- const { signed: r, size: e } = i, o = BigInt(t);
5
- let n;
6
- e ? r ? n = (1n << BigInt(e) * 8n - 1n) - 1n : n = 2n ** (BigInt(e) * 8n) - 1n : typeof t == "number" && (n = BigInt(Number.MAX_SAFE_INTEGER));
7
- const u = typeof n == "bigint" && r ? -n - 1n : 0;
8
- if (n && o > n || o < u) {
9
- const s = typeof t == "bigint" ? "n" : "";
10
- throw new d({
11
- max: n ? `${n}${s}` : void 0,
12
- min: `${u}${s}`,
13
- signed: r,
14
- size: e,
15
- value: `${t}${s}`
16
- });
17
- }
18
- const a = `0x${(r && o < 0 ? (1n << BigInt(e * 8)) + BigInt(o) : o).toString(16)}`;
19
- return e ? c(a, e) : a;
20
- }
21
- function c(t, i) {
22
- return g(t, { dir: "left", size: i });
23
- }
24
- class d extends f {
25
- constructor({ max: i, min: r, signed: e, size: o, value: n }) {
26
- super(`Number \`${n}\` is not in safe${o ? ` ${o * 8}-bit` : ""}${e ? " signed" : " unsigned"} integer range ${i ? `(\`${r}\` to \`${i}\`)` : `(above \`${r}\`)`}`), Object.defineProperty(this, "name", {
27
- enumerable: !0,
28
- configurable: !0,
29
- writable: !0,
30
- value: "Hex.IntegerOutOfRangeError"
31
- });
32
- }
33
- }
34
- class p extends f {
35
- constructor({ size: i, targetSize: r, type: e }) {
36
- super(`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()} size (\`${i}\`) exceeds padding size (\`${r}\`).`), Object.defineProperty(this, "name", {
37
- enumerable: !0,
38
- configurable: !0,
39
- writable: !0,
40
- value: "Hex.SizeExceedsPaddingSizeError"
41
- });
42
- }
1
+ import { __module as e } from "./index.web148.js";
2
+ import { __require as o } from "./index.web149.js";
3
+ import { __require as t } from "./index.web150.js";
4
+ var r;
5
+ function s() {
6
+ return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
43
7
  }
44
8
  export {
45
- d as IntegerOutOfRangeError,
46
- p as SizeExceedsPaddingSizeError,
47
- m as fromNumber,
48
- c as padLeft
9
+ s as __require
49
10
  };
@@ -1,10 +1,4 @@
1
- import { __module as e } from "./index.web149.js";
2
- import { __require as o } from "./index.web150.js";
3
- import { __require as t } from "./index.web151.js";
4
- var r;
5
- function s() {
6
- return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
7
- }
1
+ var e = { exports: {} };
8
2
  export {
9
- s as __require
3
+ e as __module
10
4
  };
@@ -1,4 +1,380 @@
1
- var e = { exports: {} };
1
+ import { __exports as o } from "./index.web170.js";
2
+ /**
3
+ * @license React
4
+ * react.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+ var $;
12
+ function X() {
13
+ if ($) return o;
14
+ $ = 1;
15
+ var E = Symbol.for("react.transitional.element"), N = Symbol.for("react.portal"), M = Symbol.for("react.fragment"), Y = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), L = Symbol.for("react.consumer"), U = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), b = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), C = Symbol.iterator;
16
+ function D(t) {
17
+ return t === null || typeof t != "object" ? null : (t = C && t[C] || t["@@iterator"], typeof t == "function" ? t : null);
18
+ }
19
+ var w = {
20
+ isMounted: function() {
21
+ return !1;
22
+ },
23
+ enqueueForceUpdate: function() {
24
+ },
25
+ enqueueReplaceState: function() {
26
+ },
27
+ enqueueSetState: function() {
28
+ }
29
+ }, A = Object.assign, S = {};
30
+ function _(t, e, n) {
31
+ this.props = t, this.context = e, this.refs = S, this.updater = n || w;
32
+ }
33
+ _.prototype.isReactComponent = {}, _.prototype.setState = function(t, e) {
34
+ if (typeof t != "object" && typeof t != "function" && t != null)
35
+ throw Error(
36
+ "takes an object of state variables to update or a function which returns an object of state variables."
37
+ );
38
+ this.updater.enqueueSetState(this, t, e, "setState");
39
+ }, _.prototype.forceUpdate = function(t) {
40
+ this.updater.enqueueForceUpdate(this, t, "forceUpdate");
41
+ };
42
+ function h() {
43
+ }
44
+ h.prototype = _.prototype;
45
+ function y(t, e, n) {
46
+ this.props = t, this.context = e, this.refs = S, this.updater = n || w;
47
+ }
48
+ var v = y.prototype = new h();
49
+ v.constructor = y, A(v, _.prototype), v.isPureReactComponent = !0;
50
+ var g = Array.isArray, i = { H: null, A: null, T: null, S: null, V: null }, O = Object.prototype.hasOwnProperty;
51
+ function R(t, e, n, r, s, f) {
52
+ return n = f.ref, {
53
+ $$typeof: E,
54
+ type: t,
55
+ key: e,
56
+ ref: n !== void 0 ? n : null,
57
+ props: f
58
+ };
59
+ }
60
+ function q(t, e) {
61
+ return R(
62
+ t.type,
63
+ e,
64
+ void 0,
65
+ void 0,
66
+ void 0,
67
+ t.props
68
+ );
69
+ }
70
+ function T(t) {
71
+ return typeof t == "object" && t !== null && t.$$typeof === E;
72
+ }
73
+ function z(t) {
74
+ var e = { "=": "=0", ":": "=2" };
75
+ return "$" + t.replace(/[=:]/g, function(n) {
76
+ return e[n];
77
+ });
78
+ }
79
+ var H = /\/+/g;
80
+ function m(t, e) {
81
+ return typeof t == "object" && t !== null && t.key != null ? z("" + t.key) : e.toString(36);
82
+ }
83
+ function j() {
84
+ }
85
+ function G(t) {
86
+ switch (t.status) {
87
+ case "fulfilled":
88
+ return t.value;
89
+ case "rejected":
90
+ throw t.reason;
91
+ default:
92
+ switch (typeof t.status == "string" ? t.then(j, j) : (t.status = "pending", t.then(
93
+ function(e) {
94
+ t.status === "pending" && (t.status = "fulfilled", t.value = e);
95
+ },
96
+ function(e) {
97
+ t.status === "pending" && (t.status = "rejected", t.reason = e);
98
+ }
99
+ )), t.status) {
100
+ case "fulfilled":
101
+ return t.value;
102
+ case "rejected":
103
+ throw t.reason;
104
+ }
105
+ }
106
+ throw t;
107
+ }
108
+ function a(t, e, n, r, s) {
109
+ var f = typeof t;
110
+ (f === "undefined" || f === "boolean") && (t = null);
111
+ var u = !1;
112
+ if (t === null) u = !0;
113
+ else
114
+ switch (f) {
115
+ case "bigint":
116
+ case "string":
117
+ case "number":
118
+ u = !0;
119
+ break;
120
+ case "object":
121
+ switch (t.$$typeof) {
122
+ case E:
123
+ case N:
124
+ u = !0;
125
+ break;
126
+ case d:
127
+ return u = t._init, a(
128
+ u(t._payload),
129
+ e,
130
+ n,
131
+ r,
132
+ s
133
+ );
134
+ }
135
+ }
136
+ if (u)
137
+ return s = s(t), u = r === "" ? "." + m(t, 0) : r, g(s) ? (n = "", u != null && (n = u.replace(H, "$&/") + "/"), a(s, e, n, "", function(W) {
138
+ return W;
139
+ })) : s != null && (T(s) && (s = q(
140
+ s,
141
+ n + (s.key == null || t && t.key === s.key ? "" : ("" + s.key).replace(
142
+ H,
143
+ "$&/"
144
+ ) + "/") + u
145
+ )), e.push(s)), 1;
146
+ u = 0;
147
+ var p = r === "" ? "." : r + ":";
148
+ if (g(t))
149
+ for (var c = 0; c < t.length; c++)
150
+ r = t[c], f = p + m(r, c), u += a(
151
+ r,
152
+ e,
153
+ n,
154
+ f,
155
+ s
156
+ );
157
+ else if (c = D(t), typeof c == "function")
158
+ for (t = c.call(t), c = 0; !(r = t.next()).done; )
159
+ r = r.value, f = p + m(r, c++), u += a(
160
+ r,
161
+ e,
162
+ n,
163
+ f,
164
+ s
165
+ );
166
+ else if (f === "object") {
167
+ if (typeof t.then == "function")
168
+ return a(
169
+ G(t),
170
+ e,
171
+ n,
172
+ r,
173
+ s
174
+ );
175
+ throw e = String(t), Error(
176
+ "Objects are not valid as a React child (found: " + (e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e) + "). If you meant to render a collection of children, use an array instead."
177
+ );
178
+ }
179
+ return u;
180
+ }
181
+ function l(t, e, n) {
182
+ if (t == null) return t;
183
+ var r = [], s = 0;
184
+ return a(t, r, "", "", function(f) {
185
+ return e.call(n, f, s++);
186
+ }), r;
187
+ }
188
+ function K(t) {
189
+ if (t._status === -1) {
190
+ var e = t._result;
191
+ e = e(), e.then(
192
+ function(n) {
193
+ (t._status === 0 || t._status === -1) && (t._status = 1, t._result = n);
194
+ },
195
+ function(n) {
196
+ (t._status === 0 || t._status === -1) && (t._status = 2, t._result = n);
197
+ }
198
+ ), t._status === -1 && (t._status = 0, t._result = e);
199
+ }
200
+ if (t._status === 1) return t._result.default;
201
+ throw t._result;
202
+ }
203
+ var P = typeof reportError == "function" ? reportError : function(t) {
204
+ if (typeof window == "object" && typeof window.ErrorEvent == "function") {
205
+ var e = new window.ErrorEvent("error", {
206
+ bubbles: !0,
207
+ cancelable: !0,
208
+ message: typeof t == "object" && t !== null && typeof t.message == "string" ? String(t.message) : String(t),
209
+ error: t
210
+ });
211
+ if (!window.dispatchEvent(e)) return;
212
+ } else if (typeof process == "object" && typeof process.emit == "function") {
213
+ process.emit("uncaughtException", t);
214
+ return;
215
+ }
216
+ console.error(t);
217
+ };
218
+ function B() {
219
+ }
220
+ return o.Children = {
221
+ map: l,
222
+ forEach: function(t, e, n) {
223
+ l(
224
+ t,
225
+ function() {
226
+ e.apply(this, arguments);
227
+ },
228
+ n
229
+ );
230
+ },
231
+ count: function(t) {
232
+ var e = 0;
233
+ return l(t, function() {
234
+ e++;
235
+ }), e;
236
+ },
237
+ toArray: function(t) {
238
+ return l(t, function(e) {
239
+ return e;
240
+ }) || [];
241
+ },
242
+ only: function(t) {
243
+ if (!T(t))
244
+ throw Error(
245
+ "React.Children.only expected to receive a single React element child."
246
+ );
247
+ return t;
248
+ }
249
+ }, o.Component = _, o.Fragment = M, o.Profiler = I, o.PureComponent = y, o.StrictMode = Y, o.Suspense = x, o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = i, o.__COMPILER_RUNTIME = {
250
+ __proto__: null,
251
+ c: function(t) {
252
+ return i.H.useMemoCache(t);
253
+ }
254
+ }, o.cache = function(t) {
255
+ return function() {
256
+ return t.apply(null, arguments);
257
+ };
258
+ }, o.cloneElement = function(t, e, n) {
259
+ if (t == null)
260
+ throw Error(
261
+ "The argument must be a React element, but you passed " + t + "."
262
+ );
263
+ var r = A({}, t.props), s = t.key, f = void 0;
264
+ if (e != null)
265
+ for (u in e.ref !== void 0 && (f = void 0), e.key !== void 0 && (s = "" + e.key), e)
266
+ !O.call(e, u) || u === "key" || u === "__self" || u === "__source" || u === "ref" && e.ref === void 0 || (r[u] = e[u]);
267
+ var u = arguments.length - 2;
268
+ if (u === 1) r.children = n;
269
+ else if (1 < u) {
270
+ for (var p = Array(u), c = 0; c < u; c++)
271
+ p[c] = arguments[c + 2];
272
+ r.children = p;
273
+ }
274
+ return R(t.type, s, void 0, void 0, f, r);
275
+ }, o.createContext = function(t) {
276
+ return t = {
277
+ $$typeof: U,
278
+ _currentValue: t,
279
+ _currentValue2: t,
280
+ _threadCount: 0,
281
+ Provider: null,
282
+ Consumer: null
283
+ }, t.Provider = t, t.Consumer = {
284
+ $$typeof: L,
285
+ _context: t
286
+ }, t;
287
+ }, o.createElement = function(t, e, n) {
288
+ var r, s = {}, f = null;
289
+ if (e != null)
290
+ for (r in e.key !== void 0 && (f = "" + e.key), e)
291
+ O.call(e, r) && r !== "key" && r !== "__self" && r !== "__source" && (s[r] = e[r]);
292
+ var u = arguments.length - 2;
293
+ if (u === 1) s.children = n;
294
+ else if (1 < u) {
295
+ for (var p = Array(u), c = 0; c < u; c++)
296
+ p[c] = arguments[c + 2];
297
+ s.children = p;
298
+ }
299
+ if (t && t.defaultProps)
300
+ for (r in u = t.defaultProps, u)
301
+ s[r] === void 0 && (s[r] = u[r]);
302
+ return R(t, f, void 0, void 0, null, s);
303
+ }, o.createRef = function() {
304
+ return { current: null };
305
+ }, o.forwardRef = function(t) {
306
+ return { $$typeof: k, render: t };
307
+ }, o.isValidElement = T, o.lazy = function(t) {
308
+ return {
309
+ $$typeof: d,
310
+ _payload: { _status: -1, _result: t },
311
+ _init: K
312
+ };
313
+ }, o.memo = function(t, e) {
314
+ return {
315
+ $$typeof: b,
316
+ type: t,
317
+ compare: e === void 0 ? null : e
318
+ };
319
+ }, o.startTransition = function(t) {
320
+ var e = i.T, n = {};
321
+ i.T = n;
322
+ try {
323
+ var r = t(), s = i.S;
324
+ s !== null && s(n, r), typeof r == "object" && r !== null && typeof r.then == "function" && r.then(B, P);
325
+ } catch (f) {
326
+ P(f);
327
+ } finally {
328
+ i.T = e;
329
+ }
330
+ }, o.unstable_useCacheRefresh = function() {
331
+ return i.H.useCacheRefresh();
332
+ }, o.use = function(t) {
333
+ return i.H.use(t);
334
+ }, o.useActionState = function(t, e, n) {
335
+ return i.H.useActionState(t, e, n);
336
+ }, o.useCallback = function(t, e) {
337
+ return i.H.useCallback(t, e);
338
+ }, o.useContext = function(t) {
339
+ return i.H.useContext(t);
340
+ }, o.useDebugValue = function() {
341
+ }, o.useDeferredValue = function(t, e) {
342
+ return i.H.useDeferredValue(t, e);
343
+ }, o.useEffect = function(t, e, n) {
344
+ var r = i.H;
345
+ if (typeof n == "function")
346
+ throw Error(
347
+ "useEffect CRUD overload is not enabled in this build of React."
348
+ );
349
+ return r.useEffect(t, e);
350
+ }, o.useId = function() {
351
+ return i.H.useId();
352
+ }, o.useImperativeHandle = function(t, e, n) {
353
+ return i.H.useImperativeHandle(t, e, n);
354
+ }, o.useInsertionEffect = function(t, e) {
355
+ return i.H.useInsertionEffect(t, e);
356
+ }, o.useLayoutEffect = function(t, e) {
357
+ return i.H.useLayoutEffect(t, e);
358
+ }, o.useMemo = function(t, e) {
359
+ return i.H.useMemo(t, e);
360
+ }, o.useOptimistic = function(t, e) {
361
+ return i.H.useOptimistic(t, e);
362
+ }, o.useReducer = function(t, e, n) {
363
+ return i.H.useReducer(t, e, n);
364
+ }, o.useRef = function(t) {
365
+ return i.H.useRef(t);
366
+ }, o.useState = function(t) {
367
+ return i.H.useState(t);
368
+ }, o.useSyncExternalStore = function(t, e, n) {
369
+ return i.H.useSyncExternalStore(
370
+ t,
371
+ e,
372
+ n
373
+ );
374
+ }, o.useTransition = function() {
375
+ return i.H.useTransition();
376
+ }, o.version = "19.1.0", o;
377
+ }
2
378
  export {
3
- e as __module
379
+ X as __require
4
380
  };