@gardenfi/core 0.2.0-beta.71 → 0.2.0-beta.72

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 (277) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +14 -15
  3. package/dist/index10.cjs +1 -1
  4. package/dist/index10.js +41 -55
  5. package/dist/index11.cjs +1 -1
  6. package/dist/index11.js +2 -2
  7. package/dist/index14.cjs +1 -1
  8. package/dist/index14.js +2 -2
  9. package/dist/index16.cjs +1 -1
  10. package/dist/index16.js +136 -30
  11. package/dist/index17.cjs +1 -1
  12. package/dist/index17.js +2 -25
  13. package/dist/index18.cjs +3 -1
  14. package/dist/index18.js +26 -29
  15. package/dist/index19.cjs +1 -1
  16. package/dist/index19.js +17 -32
  17. package/dist/index20.cjs +2 -1
  18. package/dist/index20.js +25 -53
  19. package/dist/index21.cjs +1 -1
  20. package/dist/index21.js +39 -26
  21. package/dist/index22.cjs +1 -1
  22. package/dist/index22.js +199 -15
  23. package/dist/index23.cjs +1 -1
  24. package/dist/index23.js +2 -9
  25. package/dist/index24.cjs +1 -1
  26. package/dist/index24.js +2 -9
  27. package/dist/index25.cjs +1 -1
  28. package/dist/index25.js +2 -138
  29. package/dist/index26.cjs +1 -1
  30. package/dist/index26.js +28 -2
  31. package/dist/index27.cjs +1 -1
  32. package/dist/index27.js +14 -12
  33. package/dist/index28.cjs +1 -1
  34. package/dist/index28.js +174 -36
  35. package/dist/index29.cjs +1 -1
  36. package/dist/index29.js +21 -41
  37. package/dist/index30.cjs +1 -1
  38. package/dist/index30.js +2 -24
  39. package/dist/index31.cjs +1 -1
  40. package/dist/index31.js +34 -25
  41. package/dist/index32.cjs +1 -1
  42. package/dist/index32.js +8 -54
  43. package/dist/index33.cjs +1 -1
  44. package/dist/index33.js +2 -28
  45. package/dist/index34.cjs +6 -3
  46. package/dist/index34.js +949 -30
  47. package/dist/index35.cjs +1 -1
  48. package/dist/index35.js +4 -17
  49. package/dist/index36.cjs +1 -2
  50. package/dist/index36.js +18 -23
  51. package/dist/index37.cjs +1 -1
  52. package/dist/index37.js +29 -38
  53. package/dist/index38.cjs +1 -1
  54. package/dist/index38.js +60 -197
  55. package/dist/index39.cjs +1 -1
  56. package/dist/index39.js +33 -2
  57. package/dist/index40.cjs +1 -1
  58. package/dist/index40.js +87 -2
  59. package/dist/index41.cjs +1 -1
  60. package/dist/index41.js +49 -2
  61. package/dist/index42.cjs +1 -1
  62. package/dist/index42.js +25 -12
  63. package/dist/index43.cjs +1 -1
  64. package/dist/index43.js +2 -12
  65. package/dist/index44.cjs +1 -1
  66. package/dist/index44.js +2 -4
  67. package/dist/index45.cjs +1 -1
  68. package/dist/index45.js +19 -45
  69. package/dist/index46.cjs +1 -1
  70. package/dist/index46.js +30 -38
  71. package/dist/index47.cjs +1 -1
  72. package/dist/index47.js +360 -165
  73. package/dist/index48.cjs +1 -1
  74. package/dist/index48.js +21 -13
  75. package/dist/index49.cjs +1 -1
  76. package/dist/index49.js +54 -3
  77. package/dist/index50.cjs +1 -1
  78. package/dist/index50.js +3 -17
  79. package/dist/index51.cjs +1 -1
  80. package/dist/index51.js +70 -9
  81. package/dist/index52.cjs +1 -1
  82. package/dist/index52.js +2 -175
  83. package/dist/index53.cjs +1 -1
  84. package/dist/index53.js +57 -21
  85. package/dist/index54.js +2 -2
  86. package/dist/index55.cjs +1 -1
  87. package/dist/index55.js +39 -34
  88. package/dist/index56.cjs +1 -1
  89. package/dist/index56.js +43 -9
  90. package/dist/index57.cjs +1 -1
  91. package/dist/index57.js +17 -34
  92. package/dist/index58.cjs +1 -1
  93. package/dist/index58.js +103 -50
  94. package/dist/index59.cjs +1 -2
  95. package/dist/index59.js +19 -58
  96. package/dist/index60.cjs +1 -1
  97. package/dist/index60.js +225 -3
  98. package/dist/index61.cjs +1 -1
  99. package/dist/index61.js +4 -128
  100. package/dist/index62.cjs +1 -2
  101. package/dist/index62.js +152 -37
  102. package/dist/index63.cjs +1 -1
  103. package/dist/index63.js +2 -9
  104. package/dist/index64.cjs +1 -1
  105. package/dist/index64.js +13 -11
  106. package/dist/index65.cjs +1 -1
  107. package/dist/index65.js +2 -12
  108. package/dist/index66.cjs +1 -1
  109. package/dist/index66.js +32 -13
  110. package/dist/index67.cjs +1 -1
  111. package/dist/index67.js +2 -7
  112. package/dist/index68.cjs +1 -1
  113. package/dist/index68.js +355 -17
  114. package/dist/index69.cjs +1 -1
  115. package/dist/index69.js +235 -75
  116. package/dist/index70.cjs +1 -1
  117. package/dist/index70.js +67 -14
  118. package/dist/index71.cjs +1 -1
  119. package/dist/index71.js +60 -17
  120. package/dist/index72.cjs +1 -1
  121. package/dist/index72.js +11 -21
  122. package/dist/index73.cjs +1 -1
  123. package/dist/index73.js +44 -13
  124. package/dist/index74.cjs +1 -1
  125. package/dist/index74.js +63 -2
  126. package/dist/index75.cjs +1 -1
  127. package/dist/index75.js +226 -2
  128. package/dist/index76.cjs +1 -1
  129. package/dist/index76.js +3 -7
  130. package/dist/index77.cjs +1 -2
  131. package/dist/index77.js +166 -32
  132. package/dist/index78.cjs +1 -1
  133. package/dist/index78.js +27 -5
  134. package/dist/index79.cjs +1 -1
  135. package/dist/index79.js +19 -18
  136. package/dist/index80.cjs +1 -1
  137. package/dist/index80.js +68 -30
  138. package/dist/index81.cjs +1 -1
  139. package/dist/index81.js +128 -2
  140. package/dist/index82.cjs +1 -6
  141. package/dist/index82.js +9 -949
  142. package/dist/index83.cjs +1 -1
  143. package/dist/index84.cjs +1 -1
  144. package/dist/index84.js +25 -61
  145. package/dist/index85.cjs +1 -1
  146. package/dist/index85.js +2 -33
  147. package/dist/src/index.d.ts +1 -1
  148. package/dist/src/lib/utils.d.ts +1 -3
  149. package/package.json +2 -2
  150. package/dist/index100.cjs +0 -1
  151. package/dist/index100.js +0 -37
  152. package/dist/index101.cjs +0 -1
  153. package/dist/index101.js +0 -369
  154. package/dist/index102.cjs +0 -1
  155. package/dist/index102.js +0 -23
  156. package/dist/index103.cjs +0 -1
  157. package/dist/index103.js +0 -58
  158. package/dist/index104.cjs +0 -1
  159. package/dist/index104.js +0 -5
  160. package/dist/index105.cjs +0 -1
  161. package/dist/index105.js +0 -51
  162. package/dist/index106.cjs +0 -1
  163. package/dist/index106.js +0 -28
  164. package/dist/index107.cjs +0 -1
  165. package/dist/index107.js +0 -4
  166. package/dist/index108.cjs +0 -1
  167. package/dist/index108.js +0 -4
  168. package/dist/index109.cjs +0 -1
  169. package/dist/index109.js +0 -64
  170. package/dist/index110.cjs +0 -1
  171. package/dist/index110.js +0 -37
  172. package/dist/index111.cjs +0 -1
  173. package/dist/index111.js +0 -4
  174. package/dist/index112.cjs +0 -1
  175. package/dist/index112.js +0 -60
  176. package/dist/index113.cjs +0 -1
  177. package/dist/index113.js +0 -4
  178. package/dist/index114.cjs +0 -1
  179. package/dist/index114.js +0 -42
  180. package/dist/index115.cjs +0 -1
  181. package/dist/index115.js +0 -45
  182. package/dist/index116.cjs +0 -1
  183. package/dist/index116.js +0 -20
  184. package/dist/index117.cjs +0 -1
  185. package/dist/index117.js +0 -111
  186. package/dist/index118.cjs +0 -1
  187. package/dist/index118.js +0 -23
  188. package/dist/index119.cjs +0 -1
  189. package/dist/index119.js +0 -228
  190. package/dist/index120.cjs +0 -1
  191. package/dist/index120.js +0 -6
  192. package/dist/index121.cjs +0 -1
  193. package/dist/index121.js +0 -160
  194. package/dist/index122.cjs +0 -1
  195. package/dist/index122.js +0 -4
  196. package/dist/index123.cjs +0 -1
  197. package/dist/index123.js +0 -75
  198. package/dist/index124.cjs +0 -1
  199. package/dist/index124.js +0 -7
  200. package/dist/index125.cjs +0 -1
  201. package/dist/index125.js +0 -107
  202. package/dist/index126.cjs +0 -1
  203. package/dist/index126.js +0 -15
  204. package/dist/index127.cjs +0 -1
  205. package/dist/index127.js +0 -35
  206. package/dist/index128.cjs +0 -1
  207. package/dist/index128.js +0 -32
  208. package/dist/index129.cjs +0 -1
  209. package/dist/index129.js +0 -4
  210. package/dist/index130.cjs +0 -1
  211. package/dist/index130.js +0 -21
  212. package/dist/index131.cjs +0 -1
  213. package/dist/index131.js +0 -4
  214. package/dist/index132.cjs +0 -1
  215. package/dist/index132.js +0 -358
  216. package/dist/index133.cjs +0 -1
  217. package/dist/index133.js +0 -241
  218. package/dist/index134.cjs +0 -1
  219. package/dist/index134.js +0 -70
  220. package/dist/index135.cjs +0 -1
  221. package/dist/index135.js +0 -64
  222. package/dist/index136.cjs +0 -1
  223. package/dist/index136.js +0 -14
  224. package/dist/index137.cjs +0 -1
  225. package/dist/index137.js +0 -47
  226. package/dist/index138.cjs +0 -1
  227. package/dist/index138.js +0 -65
  228. package/dist/index139.cjs +0 -1
  229. package/dist/index139.js +0 -228
  230. package/dist/index140.cjs +0 -1
  231. package/dist/index140.js +0 -5
  232. package/dist/index141.cjs +0 -1
  233. package/dist/index141.js +0 -171
  234. package/dist/index142.cjs +0 -1
  235. package/dist/index142.js +0 -30
  236. package/dist/index143.cjs +0 -1
  237. package/dist/index143.js +0 -23
  238. package/dist/index144.cjs +0 -1
  239. package/dist/index144.js +0 -72
  240. package/dist/index145.cjs +0 -1
  241. package/dist/index145.js +0 -130
  242. package/dist/index146.cjs +0 -1
  243. package/dist/index146.js +0 -9
  244. package/dist/index147.cjs +0 -1
  245. package/dist/index147.js +0 -4
  246. package/dist/index148.cjs +0 -1
  247. package/dist/index148.js +0 -28
  248. package/dist/index149.cjs +0 -1
  249. package/dist/index149.js +0 -4
  250. package/dist/index86.cjs +0 -1
  251. package/dist/index86.js +0 -89
  252. package/dist/index87.cjs +0 -1
  253. package/dist/index87.js +0 -15
  254. package/dist/index88.cjs +0 -1
  255. package/dist/index88.js +0 -9
  256. package/dist/index89.cjs +0 -1
  257. package/dist/index89.js +0 -115
  258. package/dist/index90.cjs +0 -1
  259. package/dist/index90.js +0 -9
  260. package/dist/index91.cjs +0 -1
  261. package/dist/index91.js +0 -35
  262. package/dist/index92.cjs +0 -1
  263. package/dist/index92.js +0 -4
  264. package/dist/index93.cjs +0 -1
  265. package/dist/index93.js +0 -40
  266. package/dist/index94.cjs +0 -1
  267. package/dist/index94.js +0 -31
  268. package/dist/index95.cjs +0 -1
  269. package/dist/index95.js +0 -23
  270. package/dist/index96.cjs +0 -1
  271. package/dist/index96.js +0 -9
  272. package/dist/index97.cjs +0 -1
  273. package/dist/index97.js +0 -7
  274. package/dist/index98.cjs +0 -1
  275. package/dist/index98.js +0 -13
  276. package/dist/index99.cjs +0 -1
  277. package/dist/index99.js +0 -22
package/dist/index83.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var r={};exports.__exports=r;
package/dist/index84.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index85.cjs");var i=g.native;function p(r){return r.name||r.toString().match(/function (.*?)\s*\(/)[1]}function s(r){return i.Nil(r)?"":p(r.constructor)}function h(r){return i.Function(r)?"":i.String(r)?JSON.stringify(r):r&&i.Object(r)?"":r}function _(r,t){Error.captureStackTrace&&Error.captureStackTrace(r,t)}function u(r){return i.Function(r)?r.toJSON?r.toJSON():p(r):i.Array(r)?"Array":r&&i.Object(r)?"Object":r!==void 0?r:""}function S(r,t,n){var e=h(t);return"Expected "+u(r)+", got"+(n!==""?" "+n:"")+(e!==""?" "+e:"")}function o(r,t,n){n=n||s(t),this.message=S(r,t,n),_(this,o),this.__type=r,this.__value=t,this.__valueTypeName=n}o.prototype=Object.create(Error.prototype);o.prototype.constructor=o;function E(r,t,n,e,c){var a='" of type ';return t==="key"&&(a='" with key type '),S('property "'+u(n)+a+u(r),e,c)}function f(r,t,n,e,c){r?(c=c||s(e),this.message=E(r,n,t,e,c)):this.message='Unexpected property "'+t+'"',_(this,o),this.__label=n,this.__property=t,this.__type=r,this.__value=e,this.__valueTypeName=c}f.prototype=Object.create(Error.prototype);f.prototype.constructor=o;function y(r,t){return new o(r,{},t)}function T(r,t,n){return r instanceof f?(t=t+"."+r.__property,r=new f(r.__type,t,r.__label,r.__value,r.__valueTypeName)):r instanceof o&&(r=new f(r.__type,t,n,r.__value,r.__valueTypeName)),_(r),r}var O={TfTypeError:o,TfPropertyTypeError:f,tfCustomError:y,tfSubError:T,tfJSON:u,getValueTypeName:s};exports.errors=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index29.cjs");var l=c;function c(r,e){if(t("noDeprecation"))return r;var o=!1;function a(){if(!o){if(t("throwDeprecation"))throw new Error(e);t("traceDeprecation")?console.trace(e):console.warn(e),o=!0}return r.apply(this,arguments)}return a}function t(r){try{if(!n.commonjsGlobal.localStorage)return!1}catch{return!1}var e=n.commonjsGlobal.localStorage[r];return e==null?!1:String(e).toLowerCase()==="true"}exports.browser=l;
package/dist/index84.js CHANGED
@@ -1,64 +1,28 @@
1
- import { n as E } from "./index85.js";
2
- var i = E;
3
- function p(r) {
4
- return r.name || r.toString().match(/function (.*?)\s*\(/)[1];
1
+ import { commonjsGlobal as a } from "./index29.js";
2
+ var i = c;
3
+ function c(e, r) {
4
+ if (o("noDeprecation"))
5
+ return e;
6
+ var t = !1;
7
+ function n() {
8
+ if (!t) {
9
+ if (o("throwDeprecation"))
10
+ throw new Error(r);
11
+ o("traceDeprecation") ? console.trace(r) : console.warn(r), t = !0;
12
+ }
13
+ return e.apply(this, arguments);
14
+ }
15
+ return n;
16
+ }
17
+ function o(e) {
18
+ try {
19
+ if (!a.localStorage) return !1;
20
+ } catch {
21
+ return !1;
22
+ }
23
+ var r = a.localStorage[e];
24
+ return r == null ? !1 : String(r).toLowerCase() === "true";
5
25
  }
6
- function u(r) {
7
- return i.Nil(r) ? "" : p(r.constructor);
8
- }
9
- function S(r) {
10
- return i.Function(r) ? "" : i.String(r) ? JSON.stringify(r) : r && i.Object(r) ? "" : r;
11
- }
12
- function _(r, t) {
13
- Error.captureStackTrace && Error.captureStackTrace(r, t);
14
- }
15
- function s(r) {
16
- return i.Function(r) ? r.toJSON ? r.toJSON() : p(r) : i.Array(r) ? "Array" : r && i.Object(r) ? "Object" : r !== void 0 ? r : "";
17
- }
18
- function h(r, t, n) {
19
- var e = S(t);
20
- return "Expected " + s(r) + ", got" + (n !== "" ? " " + n : "") + (e !== "" ? " " + e : "");
21
- }
22
- function o(r, t, n) {
23
- n = n || u(t), this.message = h(r, t, n), _(this, o), this.__type = r, this.__value = t, this.__valueTypeName = n;
24
- }
25
- o.prototype = Object.create(Error.prototype);
26
- o.prototype.constructor = o;
27
- function g(r, t, n, e, c) {
28
- var a = '" of type ';
29
- return t === "key" && (a = '" with key type '), h('property "' + s(n) + a + s(r), e, c);
30
- }
31
- function f(r, t, n, e, c) {
32
- r ? (c = c || u(e), this.message = g(r, n, t, e, c)) : this.message = 'Unexpected property "' + t + '"', _(this, o), this.__label = n, this.__property = t, this.__type = r, this.__value = e, this.__valueTypeName = c;
33
- }
34
- f.prototype = Object.create(Error.prototype);
35
- f.prototype.constructor = o;
36
- function y(r, t) {
37
- return new o(r, {}, t);
38
- }
39
- function T(r, t, n) {
40
- return r instanceof f ? (t = t + "." + r.__property, r = new f(
41
- r.__type,
42
- t,
43
- r.__label,
44
- r.__value,
45
- r.__valueTypeName
46
- )) : r instanceof o && (r = new f(
47
- r.__type,
48
- t,
49
- n,
50
- r.__value,
51
- r.__valueTypeName
52
- )), _(r), r;
53
- }
54
- var m = {
55
- TfTypeError: o,
56
- TfPropertyTypeError: f,
57
- tfCustomError: y,
58
- tfSubError: T,
59
- tfJSON: s,
60
- getValueTypeName: u
61
- };
62
26
  export {
63
- m as e
27
+ i as b
64
28
  };
package/dist/index85.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var t={Array:function(n){return n!=null&&n.constructor===Array},Boolean:function(n){return typeof n=="boolean"},Function:function(n){return typeof n=="function"},Nil:function(n){return n==null},Number:function(n){return typeof n=="number"},Object:function(n){return typeof n=="object"},String:function(n){return typeof n=="string"},"":function(){return!0}};t.Null=t.Nil;for(var r in t)t[r].toJSON=(function(n){return n}).bind(null,r);var e=t;exports.native=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
package/dist/index85.js CHANGED
@@ -1,35 +1,4 @@
1
- var t = {
2
- Array: function(n) {
3
- return n != null && n.constructor === Array;
4
- },
5
- Boolean: function(n) {
6
- return typeof n == "boolean";
7
- },
8
- Function: function(n) {
9
- return typeof n == "function";
10
- },
11
- Nil: function(n) {
12
- return n == null;
13
- },
14
- Number: function(n) {
15
- return typeof n == "number";
16
- },
17
- Object: function(n) {
18
- return typeof n == "object";
19
- },
20
- String: function(n) {
21
- return typeof n == "string";
22
- },
23
- "": function() {
24
- return !0;
25
- }
26
- };
27
- t.Null = t.Nil;
28
- for (var r in t)
29
- t[r].toJSON = (function(n) {
30
- return n;
31
- }).bind(null, r);
32
- var u = t;
1
+ var e = { exports: {} };
33
2
  export {
34
- u as n
3
+ e as __module
35
4
  };
@@ -11,4 +11,4 @@ export { SecretManager } from './lib/secretManager/secretManager';
11
11
  export type { ISecretManager, Secret, } from './lib/secretManager/secretManager.types';
12
12
  export { Quote } from './lib/quote/quote';
13
13
  export type { IQuote, QuoteResponse, Strategies, } from './lib/quote/quote.types';
14
- export { switchOrAddNetwork, constructOrderPair, evmToViemChainMap, } from './lib/utils';
14
+ export { switchOrAddNetwork, constructOrderPair } from './lib/utils';
@@ -1,6 +1,5 @@
1
- import { Chain as viemChain } from 'viem/chains';
2
1
  import { IBaseWallet } from '@catalogfi/wallets';
3
- import { Chain, EvmChain } from '@gardenfi/orderbook';
2
+ import { Chain } from '@gardenfi/orderbook';
4
3
  import { WalletClient } from 'viem';
5
4
  import { AsyncResult } from '@catalogfi/utils';
6
5
 
@@ -22,7 +21,6 @@ export declare function prefixScriptLength(s: Buffer): Buffer;
22
21
  export declare function sortLeaves(leaf1: Buffer, leaf2: Buffer): Buffer[];
23
22
  export declare const toXOnly: (pubKey: string) => string;
24
23
  export declare const isValidBitcoinPubKey: (pubKey: string) => boolean;
25
- export declare const evmToViemChainMap: Record<EvmChain, viemChain>;
26
24
  /**
27
25
  * Switches or adds a network to the wallet
28
26
  * @param chain Garden supported chain
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gardenfi/core",
3
- "version": "0.2.0-beta.71",
3
+ "version": "0.2.0-beta.72",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -28,7 +28,7 @@
28
28
  "dependencies": {
29
29
  "@catalogfi/utils": "^0.1.6",
30
30
  "@catalogfi/wallets": "^0.2.51",
31
- "@gardenfi/orderbook": "^0.2.0-beta.17",
31
+ "@gardenfi/orderbook": "^0.2.0-beta.18",
32
32
  "@gardenfi/utils": "^0.0.1-beta.18",
33
33
  "bignumber.js": "^9.1.2",
34
34
  "bitcoinjs-lib": "^6.1.6",
package/dist/index100.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index99.cjs"),u=require("./index112.cjs"),l=require("./index55.cjs");var v=o.inherits_browserExports,_=u.hashBase,k=l.safeBufferExports.Buffer,p=new Array(16);function n(){_.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}v(n,_);n.prototype._update=function(){for(var a=p,i=0;i<16;++i)a[i]=this._block.readInt32LE(i*4);var e=this._a,t=this._b,f=this._c,x=this._d;e=s(e,t,f,x,a[0],3614090360,7),x=s(x,e,t,f,a[1],3905402710,12),f=s(f,x,e,t,a[2],606105819,17),t=s(t,f,x,e,a[3],3250441966,22),e=s(e,t,f,x,a[4],4118548399,7),x=s(x,e,t,f,a[5],1200080426,12),f=s(f,x,e,t,a[6],2821735955,17),t=s(t,f,x,e,a[7],4249261313,22),e=s(e,t,f,x,a[8],1770035416,7),x=s(x,e,t,f,a[9],2336552879,12),f=s(f,x,e,t,a[10],4294925233,17),t=s(t,f,x,e,a[11],2304563134,22),e=s(e,t,f,x,a[12],1804603682,7),x=s(x,e,t,f,a[13],4254626195,12),f=s(f,x,e,t,a[14],2792965006,17),t=s(t,f,x,e,a[15],1236535329,22),e=c(e,t,f,x,a[1],4129170786,5),x=c(x,e,t,f,a[6],3225465664,9),f=c(f,x,e,t,a[11],643717713,14),t=c(t,f,x,e,a[0],3921069994,20),e=c(e,t,f,x,a[5],3593408605,5),x=c(x,e,t,f,a[10],38016083,9),f=c(f,x,e,t,a[15],3634488961,14),t=c(t,f,x,e,a[4],3889429448,20),e=c(e,t,f,x,a[9],568446438,5),x=c(x,e,t,f,a[14],3275163606,9),f=c(f,x,e,t,a[3],4107603335,14),t=c(t,f,x,e,a[8],1163531501,20),e=c(e,t,f,x,a[13],2850285829,5),x=c(x,e,t,f,a[2],4243563512,9),f=c(f,x,e,t,a[7],1735328473,14),t=c(t,f,x,e,a[12],2368359562,20),e=r(e,t,f,x,a[5],4294588738,4),x=r(x,e,t,f,a[8],2272392833,11),f=r(f,x,e,t,a[11],1839030562,16),t=r(t,f,x,e,a[14],4259657740,23),e=r(e,t,f,x,a[1],2763975236,4),x=r(x,e,t,f,a[4],1272893353,11),f=r(f,x,e,t,a[7],4139469664,16),t=r(t,f,x,e,a[10],3200236656,23),e=r(e,t,f,x,a[13],681279174,4),x=r(x,e,t,f,a[0],3936430074,11),f=r(f,x,e,t,a[3],3572445317,16),t=r(t,f,x,e,a[6],76029189,23),e=r(e,t,f,x,a[9],3654602809,4),x=r(x,e,t,f,a[12],3873151461,11),f=r(f,x,e,t,a[15],530742520,16),t=r(t,f,x,e,a[2],3299628645,23),e=d(e,t,f,x,a[0],4096336452,6),x=d(x,e,t,f,a[7],1126891415,10),f=d(f,x,e,t,a[14],2878612391,15),t=d(t,f,x,e,a[5],4237533241,21),e=d(e,t,f,x,a[12],1700485571,6),x=d(x,e,t,f,a[3],2399980690,10),f=d(f,x,e,t,a[10],4293915773,15),t=d(t,f,x,e,a[1],2240044497,21),e=d(e,t,f,x,a[8],1873313359,6),x=d(x,e,t,f,a[15],4264355552,10),f=d(f,x,e,t,a[6],2734768916,15),t=d(t,f,x,e,a[13],1309151649,21),e=d(e,t,f,x,a[4],4149444226,6),x=d(x,e,t,f,a[11],3174756917,10),f=d(f,x,e,t,a[2],718787259,15),t=d(t,f,x,e,a[9],3951481745,21),this._a=this._a+e|0,this._b=this._b+t|0,this._c=this._c+f|0,this._d=this._d+x|0};n.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var a=k.allocUnsafe(16);return a.writeInt32LE(this._a,0),a.writeInt32LE(this._b,4),a.writeInt32LE(this._c,8),a.writeInt32LE(this._d,12),a};function h(a,i){return a<<i|a>>>32-i}function s(a,i,e,t,f,x,b){return h(a+(i&e|~i&t)+f+x|0,b)+i|0}function c(a,i,e,t,f,x,b){return h(a+(i&t|e&~t)+f+x|0,b)+i|0}function r(a,i,e,t,f,x,b){return h(a+(i^e^t)+f+x|0,b)+i|0}function d(a,i,e,t,f,x,b){return h(a+(e^(i|~t))+f+x|0,b)+i|0}var w=n;exports.md5_js=w;
package/dist/index100.js DELETED
@@ -1,37 +0,0 @@
1
- import { i as o } from "./index99.js";
2
- import { h as l } from "./index112.js";
3
- import { s as u } from "./index55.js";
4
- var p = o, n = l, v = u.Buffer, k = new Array(16);
5
- function h() {
6
- n.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878;
7
- }
8
- p(h, n);
9
- h.prototype._update = function() {
10
- for (var x = k, i = 0; i < 16; ++i) x[i] = this._block.readInt32LE(i * 4);
11
- var f = this._a, t = this._b, e = this._c, a = this._d;
12
- f = s(f, t, e, a, x[0], 3614090360, 7), a = s(a, f, t, e, x[1], 3905402710, 12), e = s(e, a, f, t, x[2], 606105819, 17), t = s(t, e, a, f, x[3], 3250441966, 22), f = s(f, t, e, a, x[4], 4118548399, 7), a = s(a, f, t, e, x[5], 1200080426, 12), e = s(e, a, f, t, x[6], 2821735955, 17), t = s(t, e, a, f, x[7], 4249261313, 22), f = s(f, t, e, a, x[8], 1770035416, 7), a = s(a, f, t, e, x[9], 2336552879, 12), e = s(e, a, f, t, x[10], 4294925233, 17), t = s(t, e, a, f, x[11], 2304563134, 22), f = s(f, t, e, a, x[12], 1804603682, 7), a = s(a, f, t, e, x[13], 4254626195, 12), e = s(e, a, f, t, x[14], 2792965006, 17), t = s(t, e, a, f, x[15], 1236535329, 22), f = c(f, t, e, a, x[1], 4129170786, 5), a = c(a, f, t, e, x[6], 3225465664, 9), e = c(e, a, f, t, x[11], 643717713, 14), t = c(t, e, a, f, x[0], 3921069994, 20), f = c(f, t, e, a, x[5], 3593408605, 5), a = c(a, f, t, e, x[10], 38016083, 9), e = c(e, a, f, t, x[15], 3634488961, 14), t = c(t, e, a, f, x[4], 3889429448, 20), f = c(f, t, e, a, x[9], 568446438, 5), a = c(a, f, t, e, x[14], 3275163606, 9), e = c(e, a, f, t, x[3], 4107603335, 14), t = c(t, e, a, f, x[8], 1163531501, 20), f = c(f, t, e, a, x[13], 2850285829, 5), a = c(a, f, t, e, x[2], 4243563512, 9), e = c(e, a, f, t, x[7], 1735328473, 14), t = c(t, e, a, f, x[12], 2368359562, 20), f = r(f, t, e, a, x[5], 4294588738, 4), a = r(a, f, t, e, x[8], 2272392833, 11), e = r(e, a, f, t, x[11], 1839030562, 16), t = r(t, e, a, f, x[14], 4259657740, 23), f = r(f, t, e, a, x[1], 2763975236, 4), a = r(a, f, t, e, x[4], 1272893353, 11), e = r(e, a, f, t, x[7], 4139469664, 16), t = r(t, e, a, f, x[10], 3200236656, 23), f = r(f, t, e, a, x[13], 681279174, 4), a = r(a, f, t, e, x[0], 3936430074, 11), e = r(e, a, f, t, x[3], 3572445317, 16), t = r(t, e, a, f, x[6], 76029189, 23), f = r(f, t, e, a, x[9], 3654602809, 4), a = r(a, f, t, e, x[12], 3873151461, 11), e = r(e, a, f, t, x[15], 530742520, 16), t = r(t, e, a, f, x[2], 3299628645, 23), f = d(f, t, e, a, x[0], 4096336452, 6), a = d(a, f, t, e, x[7], 1126891415, 10), e = d(e, a, f, t, x[14], 2878612391, 15), t = d(t, e, a, f, x[5], 4237533241, 21), f = d(f, t, e, a, x[12], 1700485571, 6), a = d(a, f, t, e, x[3], 2399980690, 10), e = d(e, a, f, t, x[10], 4293915773, 15), t = d(t, e, a, f, x[1], 2240044497, 21), f = d(f, t, e, a, x[8], 1873313359, 6), a = d(a, f, t, e, x[15], 4264355552, 10), e = d(e, a, f, t, x[6], 2734768916, 15), t = d(t, e, a, f, x[13], 1309151649, 21), f = d(f, t, e, a, x[4], 4149444226, 6), a = d(a, f, t, e, x[11], 3174756917, 10), e = d(e, a, f, t, x[2], 718787259, 15), t = d(t, e, a, f, x[9], 3951481745, 21), this._a = this._a + f | 0, this._b = this._b + t | 0, this._c = this._c + e | 0, this._d = this._d + a | 0;
13
- };
14
- h.prototype._digest = function() {
15
- this._block[this._blockOffset++] = 128, this._blockOffset > 56 && (this._block.fill(0, this._blockOffset, 64), this._update(), this._blockOffset = 0), this._block.fill(0, this._blockOffset, 56), this._block.writeUInt32LE(this._length[0], 56), this._block.writeUInt32LE(this._length[1], 60), this._update();
16
- var x = v.allocUnsafe(16);
17
- return x.writeInt32LE(this._a, 0), x.writeInt32LE(this._b, 4), x.writeInt32LE(this._c, 8), x.writeInt32LE(this._d, 12), x;
18
- };
19
- function _(x, i) {
20
- return x << i | x >>> 32 - i;
21
- }
22
- function s(x, i, f, t, e, a, b) {
23
- return _(x + (i & f | ~i & t) + e + a | 0, b) + i | 0;
24
- }
25
- function c(x, i, f, t, e, a, b) {
26
- return _(x + (i & t | f & ~t) + e + a | 0, b) + i | 0;
27
- }
28
- function r(x, i, f, t, e, a, b) {
29
- return _(x + (i ^ f ^ t) + e + a | 0, b) + i | 0;
30
- }
31
- function d(x, i, f, t, e, a, b) {
32
- return _(x + (f ^ (i | ~t)) + e + a | 0, b) + i | 0;
33
- }
34
- var I = h;
35
- export {
36
- I as m
37
- };
package/dist/index101.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index82.cjs");const R=require("./index99.cjs"),z=require("./index112.cjs"),M=require("./index83.cjs");var L=M.__exports.Buffer,P=R.inherits_browserExports,m=z.hashBase,S=new Array(16),v=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],x=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],p=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],w=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],k=[0,1518500249,1859775393,2400959708,2840853838],E=[1352829926,1548603684,1836072691,2053994217,0];function I(){m.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}P(I,m);I.prototype._update=function(){for(var t=S,s=0;s<16;++s)t[s]=this._block.readInt32LE(s*4);for(var n=this._a|0,e=this._b|0,i=this._c|0,a=this._d|0,h=this._e|0,_=this._a|0,f=this._b|0,c=this._c|0,o=this._d|0,l=this._e|0,r=0;r<80;r+=1){var d,u;r<16?(d=O(n,e,i,a,h,t[v[r]],k[0],p[r]),u=B(_,f,c,o,l,t[x[r]],E[0],w[r])):r<32?(d=g(n,e,i,a,h,t[v[r]],k[1],p[r]),u=q(_,f,c,o,l,t[x[r]],E[1],w[r])):r<48?(d=y(n,e,i,a,h,t[v[r]],k[2],p[r]),u=y(_,f,c,o,l,t[x[r]],E[2],w[r])):r<64?(d=q(n,e,i,a,h,t[v[r]],k[3],p[r]),u=g(_,f,c,o,l,t[x[r]],E[3],w[r])):(d=B(n,e,i,a,h,t[v[r]],k[4],p[r]),u=O(_,f,c,o,l,t[x[r]],E[4],w[r])),n=h,h=a,a=b(i,10),i=e,e=d,_=l,l=o,o=b(c,10),c=f,f=u}var A=this._b+i+o|0;this._b=this._c+a+l|0,this._c=this._d+h+_|0,this._d=this._e+n+f|0,this._e=this._a+e+c|0,this._a=A};I.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=L.alloc?L.alloc(20):new L(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t};function b(t,s){return t<<s|t>>>32-s}function O(t,s,n,e,i,a,h,_){return b(t+(s^n^e)+a+h|0,_)+i|0}function g(t,s,n,e,i,a,h,_){return b(t+(s&n|~s&e)+a+h|0,_)+i|0}function y(t,s,n,e,i,a,h,_){return b(t+((s|~n)^e)+a+h|0,_)+i|0}function q(t,s,n,e,i,a,h,_){return b(t+(s&e|n&~e)+a+h|0,_)+i|0}function B(t,s,n,e,i,a,h,_){return b(t+(s^(n|~e))+a+h|0,_)+i|0}var U=I;exports.ripemd160=U;
package/dist/index101.js DELETED
@@ -1,369 +0,0 @@
1
- import "./index82.js";
2
- import { i as z } from "./index99.js";
3
- import { h as U } from "./index112.js";
4
- import { __exports as D } from "./index83.js";
5
- var m = D.Buffer, H = z, A = U, M = new Array(16), u = [
6
- 0,
7
- 1,
8
- 2,
9
- 3,
10
- 4,
11
- 5,
12
- 6,
13
- 7,
14
- 8,
15
- 9,
16
- 10,
17
- 11,
18
- 12,
19
- 13,
20
- 14,
21
- 15,
22
- 7,
23
- 4,
24
- 13,
25
- 1,
26
- 10,
27
- 6,
28
- 15,
29
- 3,
30
- 12,
31
- 0,
32
- 9,
33
- 5,
34
- 2,
35
- 14,
36
- 11,
37
- 8,
38
- 3,
39
- 10,
40
- 14,
41
- 4,
42
- 9,
43
- 15,
44
- 8,
45
- 1,
46
- 2,
47
- 7,
48
- 0,
49
- 6,
50
- 13,
51
- 11,
52
- 5,
53
- 12,
54
- 1,
55
- 9,
56
- 11,
57
- 10,
58
- 0,
59
- 8,
60
- 12,
61
- 4,
62
- 13,
63
- 3,
64
- 7,
65
- 15,
66
- 14,
67
- 5,
68
- 6,
69
- 2,
70
- 4,
71
- 0,
72
- 5,
73
- 9,
74
- 7,
75
- 12,
76
- 2,
77
- 10,
78
- 14,
79
- 1,
80
- 3,
81
- 8,
82
- 11,
83
- 6,
84
- 15,
85
- 13
86
- ], x = [
87
- 5,
88
- 14,
89
- 7,
90
- 0,
91
- 9,
92
- 2,
93
- 11,
94
- 4,
95
- 13,
96
- 6,
97
- 15,
98
- 8,
99
- 1,
100
- 10,
101
- 3,
102
- 12,
103
- 6,
104
- 11,
105
- 3,
106
- 7,
107
- 0,
108
- 13,
109
- 5,
110
- 10,
111
- 14,
112
- 15,
113
- 8,
114
- 12,
115
- 4,
116
- 9,
117
- 1,
118
- 2,
119
- 15,
120
- 5,
121
- 1,
122
- 3,
123
- 7,
124
- 14,
125
- 6,
126
- 9,
127
- 11,
128
- 8,
129
- 12,
130
- 2,
131
- 10,
132
- 0,
133
- 4,
134
- 13,
135
- 8,
136
- 6,
137
- 4,
138
- 1,
139
- 3,
140
- 11,
141
- 15,
142
- 0,
143
- 5,
144
- 12,
145
- 2,
146
- 13,
147
- 9,
148
- 7,
149
- 10,
150
- 14,
151
- 12,
152
- 15,
153
- 10,
154
- 4,
155
- 1,
156
- 5,
157
- 8,
158
- 7,
159
- 6,
160
- 2,
161
- 13,
162
- 14,
163
- 0,
164
- 3,
165
- 9,
166
- 11
167
- ], p = [
168
- 11,
169
- 14,
170
- 15,
171
- 12,
172
- 5,
173
- 8,
174
- 7,
175
- 9,
176
- 11,
177
- 13,
178
- 14,
179
- 15,
180
- 6,
181
- 7,
182
- 9,
183
- 8,
184
- 7,
185
- 6,
186
- 8,
187
- 13,
188
- 11,
189
- 9,
190
- 7,
191
- 15,
192
- 7,
193
- 12,
194
- 15,
195
- 9,
196
- 11,
197
- 7,
198
- 13,
199
- 12,
200
- 11,
201
- 13,
202
- 6,
203
- 7,
204
- 14,
205
- 9,
206
- 13,
207
- 15,
208
- 14,
209
- 8,
210
- 13,
211
- 6,
212
- 5,
213
- 12,
214
- 7,
215
- 5,
216
- 11,
217
- 12,
218
- 14,
219
- 15,
220
- 14,
221
- 15,
222
- 9,
223
- 8,
224
- 9,
225
- 14,
226
- 5,
227
- 6,
228
- 8,
229
- 6,
230
- 5,
231
- 12,
232
- 9,
233
- 15,
234
- 5,
235
- 11,
236
- 6,
237
- 8,
238
- 13,
239
- 12,
240
- 5,
241
- 12,
242
- 13,
243
- 14,
244
- 11,
245
- 8,
246
- 5,
247
- 6
248
- ], k = [
249
- 8,
250
- 9,
251
- 9,
252
- 11,
253
- 13,
254
- 15,
255
- 15,
256
- 5,
257
- 7,
258
- 7,
259
- 8,
260
- 11,
261
- 14,
262
- 14,
263
- 12,
264
- 6,
265
- 9,
266
- 13,
267
- 15,
268
- 7,
269
- 12,
270
- 8,
271
- 9,
272
- 11,
273
- 7,
274
- 7,
275
- 12,
276
- 7,
277
- 6,
278
- 15,
279
- 13,
280
- 11,
281
- 9,
282
- 7,
283
- 15,
284
- 11,
285
- 8,
286
- 6,
287
- 6,
288
- 14,
289
- 12,
290
- 13,
291
- 5,
292
- 14,
293
- 13,
294
- 13,
295
- 7,
296
- 5,
297
- 15,
298
- 5,
299
- 8,
300
- 11,
301
- 14,
302
- 14,
303
- 6,
304
- 14,
305
- 6,
306
- 9,
307
- 12,
308
- 9,
309
- 12,
310
- 5,
311
- 15,
312
- 8,
313
- 8,
314
- 5,
315
- 12,
316
- 9,
317
- 12,
318
- 5,
319
- 14,
320
- 6,
321
- 8,
322
- 13,
323
- 6,
324
- 5,
325
- 15,
326
- 13,
327
- 11,
328
- 11
329
- ], w = [0, 1518500249, 1859775393, 2400959708, 2840853838], E = [1352829926, 1548603684, 1836072691, 2053994217, 0];
330
- function I() {
331
- A.call(this, 64), this._a = 1732584193, this._b = 4023233417, this._c = 2562383102, this._d = 271733878, this._e = 3285377520;
332
- }
333
- H(I, A);
334
- I.prototype._update = function() {
335
- for (var t = M, e = 0; e < 16; ++e) t[e] = this._block.readInt32LE(e * 4);
336
- for (var f = this._a | 0, s = this._b | 0, a = this._c | 0, h = this._d | 0, i = this._e | 0, _ = this._a | 0, n = this._b | 0, o = this._c | 0, c = this._d | 0, l = this._e | 0, r = 0; r < 80; r += 1) {
337
- var b, d;
338
- r < 16 ? (b = L(f, s, a, h, i, t[u[r]], w[0], p[r]), d = y(_, n, o, c, l, t[x[r]], E[0], k[r])) : r < 32 ? (b = O(f, s, a, h, i, t[u[r]], w[1], p[r]), d = g(_, n, o, c, l, t[x[r]], E[1], k[r])) : r < 48 ? (b = B(f, s, a, h, i, t[u[r]], w[2], p[r]), d = B(_, n, o, c, l, t[x[r]], E[2], k[r])) : r < 64 ? (b = g(f, s, a, h, i, t[u[r]], w[3], p[r]), d = O(_, n, o, c, l, t[x[r]], E[3], k[r])) : (b = y(f, s, a, h, i, t[u[r]], w[4], p[r]), d = L(_, n, o, c, l, t[x[r]], E[4], k[r])), f = i, i = h, h = v(a, 10), a = s, s = b, _ = l, l = c, c = v(o, 10), o = n, n = d;
339
- }
340
- var R = this._b + a + c | 0;
341
- this._b = this._c + h + l | 0, this._c = this._d + i + _ | 0, this._d = this._e + f + n | 0, this._e = this._a + s + o | 0, this._a = R;
342
- };
343
- I.prototype._digest = function() {
344
- this._block[this._blockOffset++] = 128, this._blockOffset > 56 && (this._block.fill(0, this._blockOffset, 64), this._update(), this._blockOffset = 0), this._block.fill(0, this._blockOffset, 56), this._block.writeUInt32LE(this._length[0], 56), this._block.writeUInt32LE(this._length[1], 60), this._update();
345
- var t = m.alloc ? m.alloc(20) : new m(20);
346
- return t.writeInt32LE(this._a, 0), t.writeInt32LE(this._b, 4), t.writeInt32LE(this._c, 8), t.writeInt32LE(this._d, 12), t.writeInt32LE(this._e, 16), t;
347
- };
348
- function v(t, e) {
349
- return t << e | t >>> 32 - e;
350
- }
351
- function L(t, e, f, s, a, h, i, _) {
352
- return v(t + (e ^ f ^ s) + h + i | 0, _) + a | 0;
353
- }
354
- function O(t, e, f, s, a, h, i, _) {
355
- return v(t + (e & f | ~e & s) + h + i | 0, _) + a | 0;
356
- }
357
- function B(t, e, f, s, a, h, i, _) {
358
- return v(t + ((e | ~f) ^ s) + h + i | 0, _) + a | 0;
359
- }
360
- function g(t, e, f, s, a, h, i, _) {
361
- return v(t + (e & s | f & ~s) + h + i | 0, _) + a | 0;
362
- }
363
- function y(t, e, f, s, a, h, i, _) {
364
- return v(t + (e ^ (f | ~s)) + h + i | 0, _) + a | 0;
365
- }
366
- var F = I;
367
- export {
368
- F as r
369
- };
package/dist/index102.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index113.cjs"),t=require("./index114.cjs"),o=require("./index115.cjs"),h=require("./index116.cjs"),u=require("./index117.cjs"),n=require("./index118.cjs"),c=require("./index119.cjs");var s=a.__module.exports=function(e){e=e.toLowerCase();var r=s[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r};s.sha=t.sha;s.sha1=o.sha1;s.sha224=h.sha224;s.sha256=u.sha256;s.sha384=n.sha384;s.sha512=c.sha512;var i=a.__module.exports;exports.sha_jsExports=i;
package/dist/index102.js DELETED
@@ -1,23 +0,0 @@
1
- import { __module as a } from "./index113.js";
2
- import { s as t } from "./index114.js";
3
- import { s as p } from "./index115.js";
4
- import { s as e } from "./index116.js";
5
- import { s as h } from "./index117.js";
6
- import { s as m } from "./index118.js";
7
- import { s as f } from "./index119.js";
8
- var s = a.exports = function(r) {
9
- r = r.toLowerCase();
10
- var o = s[r];
11
- if (!o) throw new Error(r + " is not supported (we accept pull requests)");
12
- return new o();
13
- };
14
- s.sha = t;
15
- s.sha1 = p;
16
- s.sha224 = e;
17
- s.sha256 = h;
18
- s.sha384 = m;
19
- s.sha512 = f;
20
- var d = a.exports;
21
- export {
22
- d as s
23
- };
package/dist/index103.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index55.cjs"),f=require("./index120.cjs");require("./index121.cjs");const u=require("./index99.cjs"),_=require("./index122.cjs");var n=a.safeBufferExports.Buffer,s=f.Transform,p=_.__exports.StringDecoder,c=u.inherits_browserExports;function e(t){s.call(this),this.hashMode=typeof t=="string",this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}c(e,s);e.prototype.update=function(t,r,o){typeof t=="string"&&(t=n.from(t,r));var i=this._update(t);return this.hashMode?this:(o&&(i=this._toString(i,o)),i)};e.prototype.setAutoPadding=function(){};e.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};e.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};e.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};e.prototype._transform=function(t,r,o){var i;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(h){i=h}finally{o(i)}};e.prototype._flush=function(t){var r;try{this.push(this.__final())}catch(o){r=o}t(r)};e.prototype._finalOrDigest=function(t){var r=this.__final()||n.alloc(0);return t&&(r=this._toString(r,t,!0)),r};e.prototype._toString=function(t,r,o){if(this._decoder||(this._decoder=new p(r),this._encoding=r),this._encoding!==r)throw new Error("can't switch encodings");var i=this._decoder.write(t);return o&&(i+=this._decoder.end()),i};var d=e;exports.cipherBase=d;