@hashgraphonline/standards-sdk 0.0.101 → 0.0.103

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 (107) hide show
  1. package/dist/es/services/mirror-node.d.ts +102 -1
  2. package/dist/es/services/mirror-node.d.ts.map +1 -1
  3. package/dist/es/services/types.d.ts +53 -0
  4. package/dist/es/services/types.d.ts.map +1 -1
  5. package/dist/es/standards-sdk.es19.js.map +1 -1
  6. package/dist/es/standards-sdk.es21.js +508 -47
  7. package/dist/es/standards-sdk.es21.js.map +1 -1
  8. package/dist/es/standards-sdk.es24.js +10 -10
  9. package/dist/es/standards-sdk.es26.js +1 -1
  10. package/dist/es/standards-sdk.es28.js +1 -1
  11. package/dist/es/standards-sdk.es29.js +3 -3
  12. package/dist/es/standards-sdk.es33.js +2 -2
  13. package/dist/es/standards-sdk.es34.js +1 -1
  14. package/dist/es/standards-sdk.es35.js +2 -101
  15. package/dist/es/standards-sdk.es35.js.map +1 -1
  16. package/dist/es/standards-sdk.es36.js +195 -2
  17. package/dist/es/standards-sdk.es36.js.map +1 -1
  18. package/dist/es/standards-sdk.es37.js +437 -15
  19. package/dist/es/standards-sdk.es37.js.map +1 -1
  20. package/dist/es/standards-sdk.es38.js +20 -404
  21. package/dist/es/standards-sdk.es38.js.map +1 -1
  22. package/dist/es/standards-sdk.es39.js +139 -2
  23. package/dist/es/standards-sdk.es39.js.map +1 -1
  24. package/dist/es/standards-sdk.es40.js +18 -2282
  25. package/dist/es/standards-sdk.es40.js.map +1 -1
  26. package/dist/es/standards-sdk.es41.js +21 -156
  27. package/dist/es/standards-sdk.es41.js.map +1 -1
  28. package/dist/es/standards-sdk.es42.js +25 -80
  29. package/dist/es/standards-sdk.es42.js.map +1 -1
  30. package/dist/es/standards-sdk.es43.js +20 -22
  31. package/dist/es/standards-sdk.es43.js.map +1 -1
  32. package/dist/es/standards-sdk.es44.js +38 -142
  33. package/dist/es/standards-sdk.es44.js.map +1 -1
  34. package/dist/es/standards-sdk.es45.js +13 -86
  35. package/dist/es/standards-sdk.es45.js.map +1 -1
  36. package/dist/es/standards-sdk.es46.js +56 -190
  37. package/dist/es/standards-sdk.es46.js.map +1 -1
  38. package/dist/es/standards-sdk.es47.js +1207 -356
  39. package/dist/es/standards-sdk.es47.js.map +1 -1
  40. package/dist/es/standards-sdk.es48.js +144 -21
  41. package/dist/es/standards-sdk.es48.js.map +1 -1
  42. package/dist/es/standards-sdk.es49.js +82 -130
  43. package/dist/es/standards-sdk.es49.js.map +1 -1
  44. package/dist/es/standards-sdk.es50.js +79 -13
  45. package/dist/es/standards-sdk.es50.js.map +1 -1
  46. package/dist/es/standards-sdk.es51.js +28 -25
  47. package/dist/es/standards-sdk.es51.js.map +1 -1
  48. package/dist/es/standards-sdk.es52.js +5 -28
  49. package/dist/es/standards-sdk.es52.js.map +1 -1
  50. package/dist/es/standards-sdk.es53.js +155 -17
  51. package/dist/es/standards-sdk.es53.js.map +1 -1
  52. package/dist/es/standards-sdk.es54.js +22 -43
  53. package/dist/es/standards-sdk.es54.js.map +1 -1
  54. package/dist/es/standards-sdk.es55.js +788 -13
  55. package/dist/es/standards-sdk.es55.js.map +1 -1
  56. package/dist/es/standards-sdk.es56.js +136 -54
  57. package/dist/es/standards-sdk.es56.js.map +1 -1
  58. package/dist/es/standards-sdk.es57.js +174 -1289
  59. package/dist/es/standards-sdk.es57.js.map +1 -1
  60. package/dist/es/standards-sdk.es58.js +97 -28
  61. package/dist/es/standards-sdk.es58.js.map +1 -1
  62. package/dist/es/standards-sdk.es59.js +2 -6
  63. package/dist/es/standards-sdk.es59.js.map +1 -1
  64. package/dist/es/standards-sdk.es60.js +15 -158
  65. package/dist/es/standards-sdk.es60.js.map +1 -1
  66. package/dist/es/standards-sdk.es61.js +402 -786
  67. package/dist/es/standards-sdk.es61.js.map +1 -1
  68. package/dist/es/standards-sdk.es62.js +16 -169
  69. package/dist/es/standards-sdk.es62.js.map +1 -1
  70. package/dist/es/standards-sdk.es63.js +22 -138
  71. package/dist/es/standards-sdk.es63.js.map +1 -1
  72. package/dist/es/standards-sdk.es64.js +24 -19
  73. package/dist/es/standards-sdk.es64.js.map +1 -1
  74. package/dist/es/standards-sdk.es65.js +34 -23
  75. package/dist/es/standards-sdk.es65.js.map +1 -1
  76. package/dist/es/standards-sdk.es66.js +2282 -26
  77. package/dist/es/standards-sdk.es66.js.map +1 -1
  78. package/dist/es/standards-sdk.es67.js +163 -37
  79. package/dist/es/standards-sdk.es67.js.map +1 -1
  80. package/dist/es/standards-sdk.es69.js +7133 -1
  81. package/dist/es/standards-sdk.es69.js.map +1 -1
  82. package/dist/es/standards-sdk.es70.js +9 -7135
  83. package/dist/es/standards-sdk.es70.js.map +1 -1
  84. package/dist/es/standards-sdk.es71.js +10 -9
  85. package/dist/es/standards-sdk.es71.js.map +1 -1
  86. package/dist/es/standards-sdk.es72.js +16 -9
  87. package/dist/es/standards-sdk.es72.js.map +1 -1
  88. package/dist/es/standards-sdk.es73.js +4 -16
  89. package/dist/es/standards-sdk.es73.js.map +1 -1
  90. package/dist/es/standards-sdk.es74.js +8 -5
  91. package/dist/es/standards-sdk.es74.js.map +1 -1
  92. package/dist/es/standards-sdk.es75.js +418 -8
  93. package/dist/es/standards-sdk.es75.js.map +1 -1
  94. package/dist/es/standards-sdk.es76.js +2 -419
  95. package/dist/es/standards-sdk.es76.js.map +1 -1
  96. package/dist/es/standards-sdk.es77.js +120 -2
  97. package/dist/es/standards-sdk.es77.js.map +1 -1
  98. package/dist/es/standards-sdk.es78.js +3 -119
  99. package/dist/es/standards-sdk.es78.js.map +1 -1
  100. package/dist/es/standards-sdk.es79.js +1 -1
  101. package/dist/umd/services/mirror-node.d.ts +102 -1
  102. package/dist/umd/services/mirror-node.d.ts.map +1 -1
  103. package/dist/umd/services/types.d.ts +53 -0
  104. package/dist/umd/services/types.d.ts.map +1 -1
  105. package/dist/umd/standards-sdk.umd.js +12 -12
  106. package/dist/umd/standards-sdk.umd.js.map +1 -1
  107. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es66.js","sources":["../../node_modules/@noble/hashes/esm/_u64.js"],"sourcesContent":["const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);\nconst _32n = /* @__PURE__ */ BigInt(32);\n// We are not using BigUint64Array, because they are extremely slow as per 2022\nfunction fromBig(n, le = false) {\n if (le)\n return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) };\n return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };\n}\nfunction split(lst, le = false) {\n let Ah = new Uint32Array(lst.length);\n let Al = new Uint32Array(lst.length);\n for (let i = 0; i < lst.length; i++) {\n const { h, l } = fromBig(lst[i], le);\n [Ah[i], Al[i]] = [h, l];\n }\n return [Ah, Al];\n}\nconst toBig = (h, l) => (BigInt(h >>> 0) << _32n) | BigInt(l >>> 0);\n// for Shift in [0, 32)\nconst shrSH = (h, _l, s) => h >>> s;\nconst shrSL = (h, l, s) => (h << (32 - s)) | (l >>> s);\n// Right rotate for Shift in [1, 32)\nconst rotrSH = (h, l, s) => (h >>> s) | (l << (32 - s));\nconst rotrSL = (h, l, s) => (h << (32 - s)) | (l >>> s);\n// Right rotate for Shift in (32, 64), NOTE: 32 is special case.\nconst rotrBH = (h, l, s) => (h << (64 - s)) | (l >>> (s - 32));\nconst rotrBL = (h, l, s) => (h >>> (s - 32)) | (l << (64 - s));\n// Right rotate for shift===32 (just swaps l&h)\nconst rotr32H = (_h, l) => l;\nconst rotr32L = (h, _l) => h;\n// Left rotate for Shift in [1, 32)\nconst rotlSH = (h, l, s) => (h << s) | (l >>> (32 - s));\nconst rotlSL = (h, l, s) => (l << s) | (h >>> (32 - s));\n// Left rotate for Shift in (32, 64), NOTE: 32 is special case.\nconst rotlBH = (h, l, s) => (l << (s - 32)) | (h >>> (64 - s));\nconst rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s));\n// JS uses 32-bit signed integers for bitwise operations which means we cannot\n// simple take carry out of low bit sum by shift, we need to use division.\nfunction add(Ah, Al, Bh, Bl) {\n const l = (Al >>> 0) + (Bl >>> 0);\n return { h: (Ah + Bh + ((l / 2 ** 32) | 0)) | 0, l: l | 0 };\n}\n// Addition with more than 2 elements\nconst add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0);\nconst add3H = (low, Ah, Bh, Ch) => (Ah + Bh + Ch + ((low / 2 ** 32) | 0)) | 0;\nconst add4L = (Al, Bl, Cl, Dl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0);\nconst add4H = (low, Ah, Bh, Ch, Dh) => (Ah + Bh + Ch + Dh + ((low / 2 ** 32) | 0)) | 0;\nconst add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);\nconst add5H = (low, Ah, Bh, Ch, Dh, Eh) => (Ah + Bh + Ch + Dh + Eh + ((low / 2 ** 32) | 0)) | 0;\n// prettier-ignore\nexport { fromBig, split, toBig, shrSH, shrSL, rotrSH, rotrSL, rotrBH, rotrBL, rotr32H, rotr32L, rotlSH, rotlSL, rotlBH, rotlBL, add, add3L, add3H, add4L, add4H, add5H, add5L, };\n// prettier-ignore\nconst u64 = {\n fromBig, split, toBig,\n shrSH, shrSL,\n rotrSH, rotrSL, rotrBH, rotrBL,\n rotr32H, rotr32L,\n rotlSH, rotlSL, rotlBH, rotlBL,\n add, add3L, add3H, add4L, add4H, add5H, add5L,\n};\nexport default u64;\n//# sourceMappingURL=_u64.js.map"],"names":[],"mappings":"AAAA,MAAM,aAA6B,uBAAO,KAAK,KAAK,CAAC;AACrD,MAAM,OAAuB,uBAAO,EAAE;AAEtC,SAAS,QAAQ,GAAG,KAAK,OAAO;AAC5B,MAAI;AACA,WAAO,EAAE,GAAG,OAAO,IAAI,UAAU,GAAG,GAAG,OAAQ,KAAK,OAAQ,UAA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new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
4
- const isLE = new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68;
5
- if (!isLE)
6
- throw new Error("Non little-endian hardware is not supported");
7
- function utf8ToBytes(str) {
8
- if (typeof str !== "string")
9
- throw new Error(`utf8ToBytes expected string, got ${typeof str}`);
10
- return new Uint8Array(new TextEncoder().encode(str));
11
- }
12
- function toBytes(data) {
13
- if (typeof data === "string")
14
- data = utf8ToBytes(data);
15
- if (!u8a(data))
16
- throw new Error(`expected Uint8Array, got ${typeof data}`);
17
- return data;
18
- }
19
- class Hash {
20
- // Safe version that clones internal state
21
- clone() {
22
- return this._cloneInto();
23
- }
24
- }
25
- function wrapConstructor(hashCons) {
26
- const hashC = (msg) => hashCons().update(toBytes(msg)).digest();
27
- const tmp = hashCons();
28
- hashC.outputLen = tmp.outputLen;
29
- hashC.blockLen = tmp.blockLen;
30
- hashC.create = () => hashCons();
31
- return hashC;
1
+ function getDefaultExportFromCjs(x) {
2
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
32
3
  }
4
+ var browser = { exports: {} };
5
+ var process = browser.exports = {};
6
+ var cachedSetTimeout;
7
+ var cachedClearTimeout;
8
+ function defaultSetTimout() {
9
+ throw new Error("setTimeout has not been defined");
10
+ }
11
+ function defaultClearTimeout() {
12
+ throw new Error("clearTimeout has not been defined");
13
+ }
14
+ (function() {
15
+ try {
16
+ if (typeof setTimeout === "function") {
17
+ cachedSetTimeout = setTimeout;
18
+ } else {
19
+ cachedSetTimeout = defaultSetTimout;
20
+ }
21
+ } catch (e) {
22
+ cachedSetTimeout = defaultSetTimout;
23
+ }
24
+ try {
25
+ if (typeof clearTimeout === "function") {
26
+ cachedClearTimeout = clearTimeout;
27
+ } else {
28
+ cachedClearTimeout = defaultClearTimeout;
29
+ }
30
+ } catch (e) {
31
+ cachedClearTimeout = defaultClearTimeout;
32
+ }
33
+ })();
34
+ function runTimeout(fun) {
35
+ if (cachedSetTimeout === setTimeout) {
36
+ return setTimeout(fun, 0);
37
+ }
38
+ if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
39
+ cachedSetTimeout = setTimeout;
40
+ return setTimeout(fun, 0);
41
+ }
42
+ try {
43
+ return cachedSetTimeout(fun, 0);
44
+ } catch (e) {
45
+ try {
46
+ return cachedSetTimeout.call(null, fun, 0);
47
+ } catch (e2) {
48
+ return cachedSetTimeout.call(this, fun, 0);
49
+ }
50
+ }
51
+ }
52
+ function runClearTimeout(marker) {
53
+ if (cachedClearTimeout === clearTimeout) {
54
+ return clearTimeout(marker);
55
+ }
56
+ if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
57
+ cachedClearTimeout = clearTimeout;
58
+ return clearTimeout(marker);
59
+ }
60
+ try {
61
+ return cachedClearTimeout(marker);
62
+ } catch (e) {
63
+ try {
64
+ return cachedClearTimeout.call(null, marker);
65
+ } catch (e2) {
66
+ return cachedClearTimeout.call(this, marker);
67
+ }
68
+ }
69
+ }
70
+ var queue = [];
71
+ var draining = false;
72
+ var currentQueue;
73
+ var queueIndex = -1;
74
+ function cleanUpNextTick() {
75
+ if (!draining || !currentQueue) {
76
+ return;
77
+ }
78
+ draining = false;
79
+ if (currentQueue.length) {
80
+ queue = currentQueue.concat(queue);
81
+ } else {
82
+ queueIndex = -1;
83
+ }
84
+ if (queue.length) {
85
+ drainQueue();
86
+ }
87
+ }
88
+ function drainQueue() {
89
+ if (draining) {
90
+ return;
91
+ }
92
+ var timeout = runTimeout(cleanUpNextTick);
93
+ draining = true;
94
+ var len = queue.length;
95
+ while (len) {
96
+ currentQueue = queue;
97
+ queue = [];
98
+ while (++queueIndex < len) {
99
+ if (currentQueue) {
100
+ currentQueue[queueIndex].run();
101
+ }
102
+ }
103
+ queueIndex = -1;
104
+ len = queue.length;
105
+ }
106
+ currentQueue = null;
107
+ draining = false;
108
+ runClearTimeout(timeout);
109
+ }
110
+ process.nextTick = function(fun) {
111
+ var args = new Array(arguments.length - 1);
112
+ if (arguments.length > 1) {
113
+ for (var i = 1; i < arguments.length; i++) {
114
+ args[i - 1] = arguments[i];
115
+ }
116
+ }
117
+ queue.push(new Item(fun, args));
118
+ if (queue.length === 1 && !draining) {
119
+ runTimeout(drainQueue);
120
+ }
121
+ };
122
+ function Item(fun, array) {
123
+ this.fun = fun;
124
+ this.array = array;
125
+ }
126
+ Item.prototype.run = function() {
127
+ this.fun.apply(null, this.array);
128
+ };
129
+ process.title = "browser";
130
+ process.browser = true;
131
+ process.env = {};
132
+ process.argv = [];
133
+ process.version = "";
134
+ process.versions = {};
135
+ function noop() {
136
+ }
137
+ process.on = noop;
138
+ process.addListener = noop;
139
+ process.once = noop;
140
+ process.off = noop;
141
+ process.removeListener = noop;
142
+ process.removeAllListeners = noop;
143
+ process.emit = noop;
144
+ process.prependListener = noop;
145
+ process.prependOnceListener = noop;
146
+ process.listeners = function(name) {
147
+ return [];
148
+ };
149
+ process.binding = function(name) {
150
+ throw new Error("process.binding is not supported");
151
+ };
152
+ process.cwd = function() {
153
+ return "/";
154
+ };
155
+ process.chdir = function(dir) {
156
+ throw new Error("process.chdir is not supported");
157
+ };
158
+ process.umask = function() {
159
+ return 0;
160
+ };
161
+ var browserExports = browser.exports;
162
+ const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
33
163
  export {
34
- Hash,
35
- isLE,
36
- toBytes,
37
- u32,
38
- utf8ToBytes,
39
- wrapConstructor
164
+ process$1 as default,
165
+ process$1 as process
40
166
  };
41
167
  //# sourceMappingURL=standards-sdk.es67.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"standards-sdk.es67.js","sources":["../../node_modules/@noble/hashes/esm/utils.js"],"sourcesContent":["/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */\n// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+.\n// node.js versions earlier than v19 don't declare it in global scope.\n// For node.js, package.json#exports field mapping rewrites import\n// from `crypto` to `cryptoNode`, which imports native module.\n// Makes the utils un-importable in browsers without a bundler.\n// Once node.js 18 is deprecated, we can just drop the import.\nimport { crypto } from '@noble/hashes/crypto';\nconst u8a = (a) => a instanceof Uint8Array;\n// Cast array to different type\nexport const u8 = (arr) => new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);\nexport const u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));\n// Cast array to view\nexport const createView = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength);\n// The rotate right (circular right shift) operation for uint32\nexport const rotr = (word, shift) => (word << (32 - shift)) | (word >>> shift);\n// big-endian hardware is rare. Just in case someone still decides to run hashes:\n// early-throw an error because we don't support BE yet.\nexport const isLE = new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44;\nif (!isLE)\n throw new Error('Non little-endian hardware is not supported');\nconst hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, '0'));\n/**\n * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123'\n */\nexport function bytesToHex(bytes) {\n if (!u8a(bytes))\n throw new Error('Uint8Array expected');\n // pre-caching improves the speed 6x\n let hex = '';\n for (let i = 0; i < bytes.length; i++) {\n hex += hexes[bytes[i]];\n }\n return hex;\n}\n/**\n * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23])\n */\nexport function hexToBytes(hex) {\n if (typeof hex !== 'string')\n throw new Error('hex string expected, got ' + typeof hex);\n const len = hex.length;\n if (len % 2)\n throw new Error('padded hex string expected, got unpadded hex of length ' + len);\n const array = new Uint8Array(len / 2);\n for (let i = 0; i < array.length; i++) {\n const j = i * 2;\n const hexByte = hex.slice(j, j + 2);\n const byte = Number.parseInt(hexByte, 16);\n if (Number.isNaN(byte) || byte < 0)\n throw new Error('Invalid byte sequence');\n array[i] = byte;\n }\n return array;\n}\n// There is no setImmediate in browser and setTimeout is slow.\n// call of async fn will return Promise, which will be fullfiled only on\n// next scheduler queue processing step and this is exactly what we need.\nexport const nextTick = async () => { };\n// Returns control to thread each 'tick' ms to avoid blocking\nexport async function asyncLoop(iters, tick, cb) {\n let ts = Date.now();\n for (let i = 0; i < iters; i++) {\n cb(i);\n // Date.now() is not monotonic, so in case if clock goes backwards we return return control too\n const diff = Date.now() - ts;\n if (diff >= 0 && diff < tick)\n continue;\n await nextTick();\n ts += diff;\n }\n}\n/**\n * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99])\n */\nexport function utf8ToBytes(str) {\n if (typeof str !== 'string')\n throw new Error(`utf8ToBytes expected string, got ${typeof str}`);\n return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809\n}\n/**\n * Normalizes (non-hex) string or Uint8Array to Uint8Array.\n * Warning: when Uint8Array is passed, it would NOT get copied.\n * Keep in mind for future mutable operations.\n */\nexport function toBytes(data) {\n if (typeof data === 'string')\n data = utf8ToBytes(data);\n if (!u8a(data))\n throw new Error(`expected Uint8Array, got ${typeof data}`);\n return data;\n}\n/**\n * Copies several Uint8Arrays into one.\n */\nexport function concatBytes(...arrays) {\n const r = new Uint8Array(arrays.reduce((sum, a) => sum + a.length, 0));\n let pad = 0; // walk through each item, ensure they have proper type\n arrays.forEach((a) => {\n if (!u8a(a))\n throw new Error('Uint8Array expected');\n r.set(a, pad);\n pad += a.length;\n });\n return r;\n}\n// For runtime check if class implements interface\nexport class Hash {\n // Safe version that clones internal state\n clone() {\n return this._cloneInto();\n }\n}\nconst toStr = {}.toString;\nexport function checkOpts(defaults, opts) {\n if (opts !== undefined && toStr.call(opts) !== '[object Object]')\n throw new Error('Options should be object or undefined');\n const merged = Object.assign(defaults, opts);\n return merged;\n}\nexport function wrapConstructor(hashCons) {\n const hashC = (msg) => hashCons().update(toBytes(msg)).digest();\n const tmp = hashCons();\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = () => hashCons();\n return hashC;\n}\nexport function wrapConstructorWithOpts(hashCons) {\n const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest();\n const tmp = hashCons({});\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = (opts) => hashCons(opts);\n return hashC;\n}\nexport function wrapXOFConstructorWithOpts(hashCons) {\n const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest();\n const tmp = hashCons({});\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.create = (opts) => hashCons(opts);\n return hashC;\n}\n/**\n * Secure PRNG. Uses `crypto.getRandomValues`, which defers to OS.\n */\nexport function randomBytes(bytesLength = 32) {\n if (crypto && typeof crypto.getRandomValues === 'function') {\n return crypto.getRandomValues(new Uint8Array(bytesLength));\n }\n throw new Error('crypto.getRandomValues must be defined');\n}\n//# sourceMappingURL=utils.js.map"],"names":[],"mappings":"AAAA;AAQA,MAAM,MAAM,CAAC,MAAM,aAAa;AAGpB,MAAC,MAAM,CAAC,QAAQ,IAAI,YAAY,IAAI,QAAQ,IAAI,YAAY,KAAK,MAAM,IAAI,aAAa,CAAC,CAAC;AAO1F,MAAC,OAAO,IAAI,WAAW,IAAI,YAAY,CAAC,SAAU,CAAC,EAAE,MAAM,EAAE,CAAC,MAAM;AAChF,IAAI,CAAC;AACD,QAAM,IAAI,MAAM,6CAA6C;AAuD1D,SAAS,YAAY,KAAK;AAC7B,MAAI,OAAO,QAAQ;AACf,UAAM,IAAI,MAAM,oCAAoC,OAAO,GAAG,EAAE;AACpE,SAAO,IAAI,WAAW,IAAI,YAAa,EAAC,OAAO,GAAG,CAAC;AACvD;AAMO,SAAS,QAAQ,MAAM;AAC1B,MAAI,OAAO,SAAS;AAChB,WAAO,YAAY,IAAI;AAC3B,MAAI,CAAC,IAAI,IAAI;AACT,UAAM,IAAI,MAAM,4BAA4B,OAAO,IAAI,EAAE;AAC7D,SAAO;AACX;AAgBO,MAAM,KAAK;AAAA;AAAA,EAEd,QAAQ;AACJ,WAAO,KAAK,WAAY;AAAA,EAChC;AACA;AAQO,SAAS,gBAAgB,UAAU;AACtC,QAAM,QAAQ,CAAC,QAAQ,SAAU,EAAC,OAAO,QAAQ,GAAG,CAAC,EAAE,OAAQ;AAC/D,QAAM,MAAM,SAAU;AACtB,QAAM,YAAY,IAAI;AACtB,QAAM,WAAW,IAAI;AACrB,QAAM,SAAS,MAAM,SAAU;AAC/B,SAAO;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"standards-sdk.es67.js","sources":["../../node_modules/vite-plugin-node-polyfills/shims/process/dist/index.js"],"sourcesContent":["function getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nvar browser = {exports: {}};\n\n// shim for using process in browser\nvar process = browser.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ());\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] };\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\nvar browserExports = browser.exports;\nconst process$1 = /*@__PURE__*/getDefaultExportFromCjs(browserExports);\n\nexport { process$1 as default, process$1 as process };\n//# sourceMappingURL=index.js.map\n"],"names":["e"],"mappings":"AAAA,SAAS,wBAAyB,GAAG;AACpC,SAAO,KAAK,EAAE,cAAc,OAAO,UAAU,eAAe,KAAK,GAAG,SAAS,IAAI,EAAE,SAAS,IAAI;AACjG;AAEA,IAAI,UAAU,EAAC,SAAS,GAAE;AAG1B,IAAI,UAAU,QAAQ,UAAU,CAAE;AAOlC,IAAI;AACJ,IAAI;AAEJ,SAAS,mBAAmB;AACxB,QAAM,IAAI,MAAM,iCAAiC;AACrD;AACA,SAAS,sBAAuB;AAC5B,QAAM,IAAI,MAAM,mCAAmC;AACvD;AAAA,CACC,WAAY;AACT,MAAI;AACA,QAAI,OAAO,eAAe,YAAY;AAClC,yBAAmB;AAAA,IAC/B,OAAe;AACH,yBAA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