@gardenfi/core 0.2.0-beta.70 → 0.2.0-beta.71
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.
- package/dist/index.cjs +1 -31
- package/dist/index.js +27 -7808
- package/dist/index10.cjs +1 -0
- package/dist/index10.js +101 -0
- package/dist/index100.cjs +1 -0
- package/dist/index100.js +37 -0
- package/dist/index101.cjs +1 -0
- package/dist/index101.js +369 -0
- package/dist/index102.cjs +1 -0
- package/dist/index102.js +23 -0
- package/dist/index103.cjs +1 -0
- package/dist/index103.js +58 -0
- package/dist/index104.cjs +1 -0
- package/dist/index104.js +5 -0
- package/dist/index105.cjs +1 -0
- package/dist/index105.js +51 -0
- package/dist/index106.cjs +1 -0
- package/dist/index106.js +28 -0
- package/dist/index107.cjs +1 -0
- package/dist/index107.js +4 -0
- package/dist/index108.cjs +1 -0
- package/dist/index108.js +4 -0
- package/dist/index109.cjs +1 -0
- package/dist/index109.js +64 -0
- package/dist/index11.cjs +20 -0
- package/dist/index11.js +380 -0
- package/dist/index110.cjs +1 -0
- package/dist/index110.js +37 -0
- package/dist/index111.cjs +1 -0
- package/dist/index111.js +4 -0
- package/dist/index112.cjs +1 -0
- package/dist/index112.js +60 -0
- package/dist/index113.cjs +1 -0
- package/dist/index113.js +4 -0
- package/dist/index114.cjs +1 -0
- package/dist/index114.js +42 -0
- package/dist/index115.cjs +1 -0
- package/dist/index115.js +45 -0
- package/dist/index116.cjs +1 -0
- package/dist/index116.js +20 -0
- package/dist/index117.cjs +1 -0
- package/dist/index117.js +111 -0
- package/dist/index118.cjs +1 -0
- package/dist/index118.js +23 -0
- package/dist/index119.cjs +1 -0
- package/dist/index119.js +228 -0
- package/dist/index12.cjs +1 -0
- package/dist/index12.js +22 -0
- package/dist/index120.cjs +1 -0
- package/dist/index120.js +6 -0
- package/dist/index121.cjs +1 -0
- package/dist/index121.js +160 -0
- package/dist/index122.cjs +1 -0
- package/dist/index122.js +4 -0
- package/dist/index123.cjs +1 -0
- package/dist/index123.js +75 -0
- package/dist/index124.cjs +1 -0
- package/dist/index124.js +7 -0
- package/dist/index125.cjs +1 -0
- package/dist/index125.js +107 -0
- package/dist/index126.cjs +1 -0
- package/dist/index126.js +15 -0
- package/dist/index127.cjs +1 -0
- package/dist/index127.js +35 -0
- package/dist/index128.cjs +1 -0
- package/dist/index128.js +32 -0
- package/dist/index129.cjs +1 -0
- package/dist/index129.js +4 -0
- package/dist/index13.cjs +1 -0
- package/dist/index13.js +396 -0
- package/dist/index130.cjs +1 -0
- package/dist/index130.js +21 -0
- package/dist/index131.cjs +1 -0
- package/dist/index131.js +4 -0
- package/dist/index132.cjs +1 -0
- package/dist/index132.js +358 -0
- package/dist/index133.cjs +1 -0
- package/dist/index133.js +241 -0
- package/dist/index134.cjs +1 -0
- package/dist/index134.js +70 -0
- package/dist/index135.cjs +1 -0
- package/dist/index135.js +64 -0
- package/dist/index136.cjs +1 -0
- package/dist/index136.js +14 -0
- package/dist/index137.cjs +1 -0
- package/dist/index137.js +47 -0
- package/dist/index138.cjs +1 -0
- package/dist/index138.js +65 -0
- package/dist/index139.cjs +1 -0
- package/dist/index139.js +228 -0
- package/dist/index14.cjs +1 -0
- package/dist/index14.js +23 -0
- package/dist/index140.cjs +1 -0
- package/dist/index140.js +5 -0
- package/dist/index141.cjs +1 -0
- package/dist/index141.js +171 -0
- package/dist/index142.cjs +1 -0
- package/dist/index142.js +30 -0
- package/dist/index143.cjs +1 -0
- package/dist/index143.js +23 -0
- package/dist/index144.cjs +1 -0
- package/dist/index144.js +72 -0
- package/dist/index145.cjs +1 -0
- package/dist/index145.js +130 -0
- package/dist/index146.cjs +1 -0
- package/dist/index146.js +9 -0
- package/dist/index147.cjs +1 -0
- package/dist/index147.js +4 -0
- package/dist/index148.cjs +1 -0
- package/dist/index148.js +28 -0
- package/dist/index149.cjs +1 -0
- package/dist/index149.js +4 -0
- package/dist/index15.cjs +1 -0
- package/dist/index15.js +4 -0
- package/dist/index16.cjs +1 -0
- package/dist/index16.js +34 -0
- package/dist/index17.cjs +1 -0
- package/dist/index17.js +27 -0
- package/dist/index18.cjs +1 -0
- package/dist/index18.js +33 -0
- package/dist/index19.cjs +1 -0
- package/dist/index19.js +32 -0
- package/dist/index2.cjs +1 -0
- package/dist/index2.js +412 -0
- package/dist/index20.cjs +1 -0
- package/dist/index20.js +55 -0
- package/dist/index21.cjs +1 -0
- package/dist/index21.js +30 -0
- package/dist/index22.cjs +1 -0
- package/dist/index22.js +17 -0
- package/dist/index23.cjs +1 -0
- package/dist/index23.js +11 -0
- package/dist/index24.cjs +1 -0
- package/dist/index24.js +11 -0
- package/dist/index25.cjs +1 -0
- package/dist/index25.js +140 -0
- package/dist/index26.cjs +1 -0
- package/dist/index26.js +4 -0
- package/dist/index27.cjs +1 -0
- package/dist/index27.js +15 -0
- package/dist/index28.cjs +1 -0
- package/dist/index28.js +39 -0
- package/dist/index29.cjs +1 -0
- package/dist/index29.js +44 -0
- package/dist/index3.cjs +1 -0
- package/dist/index3.js +5 -0
- package/dist/index30.cjs +1 -0
- package/dist/index30.js +26 -0
- package/dist/index31.cjs +1 -0
- package/dist/index31.js +28 -0
- package/dist/index32.cjs +1 -0
- package/dist/index32.js +57 -0
- package/dist/index33.cjs +1 -0
- package/dist/index33.js +30 -0
- package/dist/index34.cjs +3 -0
- package/dist/index34.js +30 -0
- package/dist/index35.cjs +1 -0
- package/dist/index35.js +17 -0
- package/dist/index36.cjs +2 -0
- package/dist/index36.js +27 -0
- package/dist/index37.cjs +1 -0
- package/dist/index37.js +43 -0
- package/dist/index38.cjs +1 -0
- package/dist/index38.js +201 -0
- package/dist/index39.cjs +1 -0
- package/dist/index39.js +4 -0
- package/dist/index4.cjs +1 -0
- package/dist/index4.js +18 -0
- package/dist/index40.cjs +1 -0
- package/dist/index40.js +4 -0
- package/dist/index41.cjs +1 -0
- package/dist/index41.js +4 -0
- package/dist/index42.cjs +1 -0
- package/dist/index42.js +15 -0
- package/dist/index43.cjs +1 -0
- package/dist/index43.js +14 -0
- package/dist/index44.cjs +1 -0
- package/dist/index44.js +6 -0
- package/dist/index45.cjs +1 -0
- package/dist/index45.js +48 -0
- package/dist/index46.cjs +1 -0
- package/dist/index46.js +45 -0
- package/dist/index47.cjs +1 -0
- package/dist/index47.js +174 -0
- package/dist/index48.cjs +1 -0
- package/dist/index48.js +15 -0
- package/dist/index49.cjs +1 -0
- package/dist/index49.js +7 -0
- package/dist/index5.cjs +1 -0
- package/dist/index5.js +110 -0
- package/dist/index50.cjs +1 -0
- package/dist/index50.js +19 -0
- package/dist/index51.cjs +1 -0
- package/dist/index51.js +14 -0
- package/dist/index52.cjs +1 -0
- package/dist/index52.js +177 -0
- package/dist/index53.cjs +1 -0
- package/dist/index53.js +24 -0
- package/dist/index54.cjs +1 -0
- package/dist/index54.js +4 -0
- package/dist/index55.cjs +1 -0
- package/dist/index55.js +37 -0
- package/dist/index56.cjs +1 -0
- package/dist/index56.js +11 -0
- package/dist/index57.cjs +1 -0
- package/dist/index57.js +37 -0
- package/dist/index58.cjs +1 -0
- package/dist/index58.js +58 -0
- package/dist/index59.cjs +2 -0
- package/dist/index59.js +62 -0
- package/dist/index6.cjs +1 -0
- package/dist/index6.js +5 -0
- package/dist/index60.cjs +1 -0
- package/dist/index60.js +6 -0
- package/dist/index61.cjs +1 -0
- package/dist/index61.js +130 -0
- package/dist/index62.cjs +2 -0
- package/dist/index62.js +45 -0
- package/dist/index63.cjs +1 -0
- package/dist/index63.js +11 -0
- package/dist/index64.cjs +1 -0
- package/dist/index64.js +13 -0
- package/dist/index65.cjs +1 -0
- package/dist/index65.js +14 -0
- package/dist/index66.cjs +1 -0
- package/dist/index66.js +16 -0
- package/dist/index67.cjs +1 -0
- package/dist/index67.js +9 -0
- package/dist/index68.cjs +1 -0
- package/dist/index68.js +20 -0
- package/dist/index69.cjs +1 -0
- package/dist/index69.js +81 -0
- package/dist/index7.cjs +1 -0
- package/dist/index7.js +76 -0
- package/dist/index70.cjs +1 -0
- package/dist/index70.js +17 -0
- package/dist/index71.cjs +1 -0
- package/dist/index71.js +21 -0
- package/dist/index72.cjs +1 -0
- package/dist/index72.js +24 -0
- package/dist/index73.cjs +1 -0
- package/dist/index73.js +16 -0
- package/dist/index74.cjs +1 -0
- package/dist/index74.js +4 -0
- package/dist/index75.cjs +1 -0
- package/dist/index75.js +4 -0
- package/dist/index76.cjs +1 -0
- package/dist/index76.js +9 -0
- package/dist/index77.cjs +2 -0
- package/dist/index77.js +37 -0
- package/dist/index78.cjs +1 -0
- package/dist/index78.js +8 -0
- package/dist/index79.cjs +1 -0
- package/dist/index79.js +22 -0
- package/dist/index8.cjs +1 -0
- package/dist/index8.js +62 -0
- package/dist/index80.cjs +1 -0
- package/dist/index80.js +34 -0
- package/dist/index81.cjs +1 -0
- package/dist/index81.js +4 -0
- package/dist/index82.cjs +6 -0
- package/dist/index82.js +949 -0
- package/dist/index83.cjs +1 -0
- package/dist/index83.js +4 -0
- package/dist/index84.cjs +1 -0
- package/dist/index84.js +64 -0
- package/dist/index85.cjs +1 -0
- package/dist/index85.js +35 -0
- package/dist/index86.cjs +1 -0
- package/dist/index86.js +89 -0
- package/dist/index87.cjs +1 -0
- package/dist/index87.js +15 -0
- package/dist/index88.cjs +1 -0
- package/dist/index88.js +9 -0
- package/dist/index89.cjs +1 -0
- package/dist/index89.js +115 -0
- package/dist/index9.cjs +1 -0
- package/dist/index9.js +63 -0
- package/dist/index90.cjs +1 -0
- package/dist/index90.js +9 -0
- package/dist/index91.cjs +1 -0
- package/dist/index91.js +35 -0
- package/dist/index92.cjs +1 -0
- package/dist/index92.js +4 -0
- package/dist/index93.cjs +1 -0
- package/dist/index93.js +40 -0
- package/dist/index94.cjs +1 -0
- package/dist/index94.js +31 -0
- package/dist/index95.cjs +1 -0
- package/dist/index95.js +23 -0
- package/dist/index96.cjs +1 -0
- package/dist/index96.js +9 -0
- package/dist/index97.cjs +1 -0
- package/dist/index97.js +7 -0
- package/dist/index98.cjs +1 -0
- package/dist/index98.js +13 -0
- package/dist/index99.cjs +1 -0
- package/dist/index99.js +22 -0
- package/package.json +2 -2
package/dist/index134.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { __require as h } from "./index132.js";
|
|
2
|
+
import { __require as p } from "./index133.js";
|
|
3
|
+
import { i as c } from "./index99.js";
|
|
4
|
+
var l, u;
|
|
5
|
+
function m() {
|
|
6
|
+
if (u) return l;
|
|
7
|
+
u = 1;
|
|
8
|
+
var o = Object.keys || function(e) {
|
|
9
|
+
var r = [];
|
|
10
|
+
for (var _ in e) r.push(_);
|
|
11
|
+
return r;
|
|
12
|
+
};
|
|
13
|
+
l = t;
|
|
14
|
+
var s = h(), a = p();
|
|
15
|
+
c(t, s);
|
|
16
|
+
for (var f = o(a.prototype), i = 0; i < f.length; i++) {
|
|
17
|
+
var n = f[i];
|
|
18
|
+
t.prototype[n] || (t.prototype[n] = a.prototype[n]);
|
|
19
|
+
}
|
|
20
|
+
function t(e) {
|
|
21
|
+
if (!(this instanceof t)) return new t(e);
|
|
22
|
+
s.call(this, e), a.call(this, e), this.allowHalfOpen = !0, e && (e.readable === !1 && (this.readable = !1), e.writable === !1 && (this.writable = !1), e.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", d)));
|
|
23
|
+
}
|
|
24
|
+
Object.defineProperty(t.prototype, "writableHighWaterMark", {
|
|
25
|
+
// making it explicit this property is not enumerable
|
|
26
|
+
// because otherwise some prototype manipulation in
|
|
27
|
+
// userland will fail
|
|
28
|
+
enumerable: !1,
|
|
29
|
+
get: function() {
|
|
30
|
+
return this._writableState.highWaterMark;
|
|
31
|
+
}
|
|
32
|
+
}), Object.defineProperty(t.prototype, "writableBuffer", {
|
|
33
|
+
// making it explicit this property is not enumerable
|
|
34
|
+
// because otherwise some prototype manipulation in
|
|
35
|
+
// userland will fail
|
|
36
|
+
enumerable: !1,
|
|
37
|
+
get: function() {
|
|
38
|
+
return this._writableState && this._writableState.getBuffer();
|
|
39
|
+
}
|
|
40
|
+
}), Object.defineProperty(t.prototype, "writableLength", {
|
|
41
|
+
// making it explicit this property is not enumerable
|
|
42
|
+
// because otherwise some prototype manipulation in
|
|
43
|
+
// userland will fail
|
|
44
|
+
enumerable: !1,
|
|
45
|
+
get: function() {
|
|
46
|
+
return this._writableState.length;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
function d() {
|
|
50
|
+
this._writableState.ended || process.nextTick(b, this);
|
|
51
|
+
}
|
|
52
|
+
function b(e) {
|
|
53
|
+
e.end();
|
|
54
|
+
}
|
|
55
|
+
return Object.defineProperty(t.prototype, "destroyed", {
|
|
56
|
+
// making it explicit this property is not enumerable
|
|
57
|
+
// because otherwise some prototype manipulation in
|
|
58
|
+
// userland will fail
|
|
59
|
+
enumerable: !1,
|
|
60
|
+
get: function() {
|
|
61
|
+
return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed;
|
|
62
|
+
},
|
|
63
|
+
set: function(r) {
|
|
64
|
+
this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = r, this._writableState.destroyed = r);
|
|
65
|
+
}
|
|
66
|
+
}), l;
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
m as __require
|
|
70
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index144.cjs");const _=require("./index134.cjs"),h=require("./index99.cjs"),u=require("./index147.cjs");var l=i,a=u.__exports.codes,c=a.ERR_METHOD_NOT_IMPLEMENTED,R=a.ERR_MULTIPLE_CALLBACK,d=a.ERR_TRANSFORM_ALREADY_TRANSFORMING,m=a.ERR_TRANSFORM_WITH_LENGTH_0,f=_.__require();h.inherits_browserExports(i,f);function T(r,t){var e=this._transformState;e.transforming=!1;var s=e.writecb;if(s===null)return this.emit("error",new R);e.writechunk=null,e.writecb=null,t!=null&&this.push(t),s(r);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function i(r){if(!(this instanceof i))return new i(r);f.call(this,r),this._transformState={afterTransform:T.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",w)}function w(){var r=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,e){o(r,t,e)}):o(this,null,null)}i.prototype.push=function(r,t){return this._transformState.needTransform=!1,f.prototype.push.call(this,r,t)};i.prototype._transform=function(r,t,e){e(new c("_transform()"))};i.prototype._write=function(r,t,e){var s=this._transformState;if(s.writecb=e,s.writechunk=r,s.writeencoding=t,!s.transforming){var n=this._readableState;(s.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};i.prototype._read=function(r){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};i.prototype._destroy=function(r,t){f.prototype._destroy.call(this,r,function(e){t(e)})};function o(r,t,e){if(t)return r.emit("error",t);if(e!=null&&r.push(e),r._writableState.length)throw new m;if(r._transformState.transforming)throw new d;return r.push(null)}exports._stream_transform=l;
|
package/dist/index135.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import "./index144.js";
|
|
2
|
+
import { __require as _ } from "./index134.js";
|
|
3
|
+
import { i as h } from "./index99.js";
|
|
4
|
+
import { __exports as l } from "./index147.js";
|
|
5
|
+
var M = i, s = l.codes, u = s.ERR_METHOD_NOT_IMPLEMENTED, c = s.ERR_MULTIPLE_CALLBACK, m = s.ERR_TRANSFORM_ALREADY_TRANSFORMING, R = s.ERR_TRANSFORM_WITH_LENGTH_0, f = _();
|
|
6
|
+
h(i, f);
|
|
7
|
+
function d(r, t) {
|
|
8
|
+
var e = this._transformState;
|
|
9
|
+
e.transforming = !1;
|
|
10
|
+
var a = e.writecb;
|
|
11
|
+
if (a === null)
|
|
12
|
+
return this.emit("error", new c());
|
|
13
|
+
e.writechunk = null, e.writecb = null, t != null && this.push(t), a(r);
|
|
14
|
+
var n = this._readableState;
|
|
15
|
+
n.reading = !1, (n.needReadable || n.length < n.highWaterMark) && this._read(n.highWaterMark);
|
|
16
|
+
}
|
|
17
|
+
function i(r) {
|
|
18
|
+
if (!(this instanceof i)) return new i(r);
|
|
19
|
+
f.call(this, r), this._transformState = {
|
|
20
|
+
afterTransform: d.bind(this),
|
|
21
|
+
needTransform: !1,
|
|
22
|
+
transforming: !1,
|
|
23
|
+
writecb: null,
|
|
24
|
+
writechunk: null,
|
|
25
|
+
writeencoding: null
|
|
26
|
+
}, this._readableState.needReadable = !0, this._readableState.sync = !1, r && (typeof r.transform == "function" && (this._transform = r.transform), typeof r.flush == "function" && (this._flush = r.flush)), this.on("prefinish", p);
|
|
27
|
+
}
|
|
28
|
+
function p() {
|
|
29
|
+
var r = this;
|
|
30
|
+
typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(t, e) {
|
|
31
|
+
o(r, t, e);
|
|
32
|
+
}) : o(this, null, null);
|
|
33
|
+
}
|
|
34
|
+
i.prototype.push = function(r, t) {
|
|
35
|
+
return this._transformState.needTransform = !1, f.prototype.push.call(this, r, t);
|
|
36
|
+
};
|
|
37
|
+
i.prototype._transform = function(r, t, e) {
|
|
38
|
+
e(new u("_transform()"));
|
|
39
|
+
};
|
|
40
|
+
i.prototype._write = function(r, t, e) {
|
|
41
|
+
var a = this._transformState;
|
|
42
|
+
if (a.writecb = e, a.writechunk = r, a.writeencoding = t, !a.transforming) {
|
|
43
|
+
var n = this._readableState;
|
|
44
|
+
(a.needTransform || n.needReadable || n.length < n.highWaterMark) && this._read(n.highWaterMark);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
i.prototype._read = function(r) {
|
|
48
|
+
var t = this._transformState;
|
|
49
|
+
t.writechunk !== null && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0;
|
|
50
|
+
};
|
|
51
|
+
i.prototype._destroy = function(r, t) {
|
|
52
|
+
f.prototype._destroy.call(this, r, function(e) {
|
|
53
|
+
t(e);
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
function o(r, t, e) {
|
|
57
|
+
if (t) return r.emit("error", t);
|
|
58
|
+
if (e != null && r.push(e), r._writableState.length) throw new R();
|
|
59
|
+
if (r._transformState.transforming) throw new m();
|
|
60
|
+
return r.push(null);
|
|
61
|
+
}
|
|
62
|
+
export {
|
|
63
|
+
M as _
|
|
64
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index135.cjs"),o=require("./index99.cjs");var a=r,s=n._stream_transform;o.inherits_browserExports(r,s);function r(t){if(!(this instanceof r))return new r(t);s.call(this,t)}r.prototype._transform=function(t,i,e){e(null,t)};exports._stream_passthrough=a;
|
package/dist/index136.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { _ as a } from "./index135.js";
|
|
2
|
+
import { i as n } from "./index99.js";
|
|
3
|
+
var m = r, t = a;
|
|
4
|
+
n(r, t);
|
|
5
|
+
function r(s) {
|
|
6
|
+
if (!(this instanceof r)) return new r(s);
|
|
7
|
+
t.call(this, s);
|
|
8
|
+
}
|
|
9
|
+
r.prototype._transform = function(s, i, o) {
|
|
10
|
+
o(null, s);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
m as _
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index144.cjs");const _=require("./index147.cjs");var w=_.__exports.codes.ERR_STREAM_PREMATURE_CLOSE;function L(e){var n=!1;return function(){if(!n){n=!0;for(var r=arguments.length,f=new Array(r),i=0;i<r;i++)f[i]=arguments[i];e.apply(this,f)}}}function h(){}function q(e){return e.setHeader&&typeof e.abort=="function"}function E(e,n,r){if(typeof n=="function")return E(e,null,n);n||(n={}),r=L(r||h);var f=n.readable||n.readable!==!1&&e.readable,i=n.writable||n.writable!==!1&&e.writable,u=function(){e.writable||o()},a=e._writableState&&e._writableState.finished,o=function(){i=!1,a=!0,f||r.call(e)},c=e._readableState&&e._readableState.endEmitted,b=function(){f=!1,c=!0,i||r.call(e)},S=function(l){r.call(e,l)},d=function(){var l;if(f&&!c)return(!e._readableState||!e._readableState.ended)&&(l=new w),r.call(e,l);if(i&&!a)return(!e._writableState||!e._writableState.ended)&&(l=new w),r.call(e,l)},v=function(){e.req.on("finish",o)};return q(e)?(e.on("complete",o),e.on("abort",d),e.req?v():e.on("request",v)):i&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",b),e.on("finish",o),n.error!==!1&&e.on("error",S),e.on("close",d),function(){e.removeListener("complete",o),e.removeListener("abort",d),e.removeListener("request",v),e.req&&e.req.removeListener("finish",o),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",o),e.removeListener("end",b),e.removeListener("error",S),e.removeListener("close",d)}}var R=E;exports.endOfStream=R;
|
package/dist/index137.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import "./index144.js";
|
|
2
|
+
import { __exports as _ } from "./index147.js";
|
|
3
|
+
var S = _.codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
4
|
+
function L(e) {
|
|
5
|
+
var n = !1;
|
|
6
|
+
return function() {
|
|
7
|
+
if (!n) {
|
|
8
|
+
n = !0;
|
|
9
|
+
for (var r = arguments.length, f = new Array(r), i = 0; i < r; i++)
|
|
10
|
+
f[i] = arguments[i];
|
|
11
|
+
e.apply(this, f);
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function h() {
|
|
16
|
+
}
|
|
17
|
+
function R(e) {
|
|
18
|
+
return e.setHeader && typeof e.abort == "function";
|
|
19
|
+
}
|
|
20
|
+
function E(e, n, r) {
|
|
21
|
+
if (typeof n == "function") return E(e, null, n);
|
|
22
|
+
n || (n = {}), r = L(r || h);
|
|
23
|
+
var f = n.readable || n.readable !== !1 && e.readable, i = n.writable || n.writable !== !1 && e.writable, u = function() {
|
|
24
|
+
e.writable || o();
|
|
25
|
+
}, a = e._writableState && e._writableState.finished, o = function() {
|
|
26
|
+
i = !1, a = !0, f || r.call(e);
|
|
27
|
+
}, c = e._readableState && e._readableState.endEmitted, b = function() {
|
|
28
|
+
f = !1, c = !0, i || r.call(e);
|
|
29
|
+
}, w = function(l) {
|
|
30
|
+
r.call(e, l);
|
|
31
|
+
}, d = function() {
|
|
32
|
+
var l;
|
|
33
|
+
if (f && !c)
|
|
34
|
+
return (!e._readableState || !e._readableState.ended) && (l = new S()), r.call(e, l);
|
|
35
|
+
if (i && !a)
|
|
36
|
+
return (!e._writableState || !e._writableState.ended) && (l = new S()), r.call(e, l);
|
|
37
|
+
}, v = function() {
|
|
38
|
+
e.req.on("finish", o);
|
|
39
|
+
};
|
|
40
|
+
return R(e) ? (e.on("complete", o), e.on("abort", d), e.req ? v() : e.on("request", v)) : i && !e._writableState && (e.on("end", u), e.on("close", u)), e.on("end", b), e.on("finish", o), n.error !== !1 && e.on("error", w), e.on("close", d), function() {
|
|
41
|
+
e.removeListener("complete", o), e.removeListener("abort", d), e.removeListener("request", v), e.req && e.req.removeListener("finish", o), e.removeListener("end", u), e.removeListener("close", u), e.removeListener("finish", o), e.removeListener("end", b), e.removeListener("error", w), e.removeListener("close", d);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
var g = E;
|
|
45
|
+
export {
|
|
46
|
+
g as e
|
|
47
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index144.cjs");const S=require("./index137.cjs"),g=require("./index147.cjs");var f;function E(r){var n=!1;return function(){n||(n=!0,r.apply(void 0,arguments))}}var R=g.__exports.codes,y=R.ERR_MISSING_ARGS,h=R.ERR_STREAM_DESTROYED;function a(r){if(r)throw r}function _(r){return r.setHeader&&typeof r.abort=="function"}function w(r,n,i,e){e=E(e);var t=!1;r.on("close",function(){t=!0}),f===void 0&&(f=S.endOfStream),f(r,{readable:n,writable:i},function(o){if(o)return e(o);t=!0,e()});var u=!1;return function(o){if(!t&&!u){if(u=!0,_(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();e(o||new h("pipe"))}}}function l(r){r()}function A(r,n){return r.pipe(n)}function q(r){return!r.length||typeof r[r.length-1]!="function"?a:r.pop()}function M(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var e=q(n);if(Array.isArray(n[0])&&(n=n[0]),n.length<2)throw new y("streams");var t,u=n.map(function(o,c){var p=c<n.length-1,v=c>0;return w(o,p,v,function(d){t||(t=d),d&&u.forEach(l),!p&&(u.forEach(l),e(t))})});return n.reduce(A)}var O=M;exports.pipeline_1=O;
|
package/dist/index138.js
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import "./index144.js";
|
|
2
|
+
import { e as E } from "./index137.js";
|
|
3
|
+
import { __exports as S } from "./index147.js";
|
|
4
|
+
var u;
|
|
5
|
+
function g(r) {
|
|
6
|
+
var n = !1;
|
|
7
|
+
return function() {
|
|
8
|
+
n || (n = !0, r.apply(void 0, arguments));
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
var l = S.codes, h = l.ERR_MISSING_ARGS, y = l.ERR_STREAM_DESTROYED;
|
|
12
|
+
function d(r) {
|
|
13
|
+
if (r) throw r;
|
|
14
|
+
}
|
|
15
|
+
function w(r) {
|
|
16
|
+
return r.setHeader && typeof r.abort == "function";
|
|
17
|
+
}
|
|
18
|
+
function _(r, n, t, e) {
|
|
19
|
+
e = g(e);
|
|
20
|
+
var o = !1;
|
|
21
|
+
r.on("close", function() {
|
|
22
|
+
o = !0;
|
|
23
|
+
}), u === void 0 && (u = E), u(r, {
|
|
24
|
+
readable: n,
|
|
25
|
+
writable: t
|
|
26
|
+
}, function(i) {
|
|
27
|
+
if (i) return e(i);
|
|
28
|
+
o = !0, e();
|
|
29
|
+
});
|
|
30
|
+
var f = !1;
|
|
31
|
+
return function(i) {
|
|
32
|
+
if (!o && !f) {
|
|
33
|
+
if (f = !0, w(r)) return r.abort();
|
|
34
|
+
if (typeof r.destroy == "function") return r.destroy();
|
|
35
|
+
e(i || new y("pipe"));
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function R(r) {
|
|
40
|
+
r();
|
|
41
|
+
}
|
|
42
|
+
function A(r, n) {
|
|
43
|
+
return r.pipe(n);
|
|
44
|
+
}
|
|
45
|
+
function D(r) {
|
|
46
|
+
return !r.length || typeof r[r.length - 1] != "function" ? d : r.pop();
|
|
47
|
+
}
|
|
48
|
+
function G() {
|
|
49
|
+
for (var r = arguments.length, n = new Array(r), t = 0; t < r; t++)
|
|
50
|
+
n[t] = arguments[t];
|
|
51
|
+
var e = D(n);
|
|
52
|
+
if (Array.isArray(n[0]) && (n = n[0]), n.length < 2)
|
|
53
|
+
throw new h("streams");
|
|
54
|
+
var o, f = n.map(function(i, p) {
|
|
55
|
+
var c = p < n.length - 1, v = p > 0;
|
|
56
|
+
return _(i, c, v, function(a) {
|
|
57
|
+
o || (o = a), a && f.forEach(R), !c && (f.forEach(R), e(o));
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
return n.reduce(A);
|
|
61
|
+
}
|
|
62
|
+
var O = G;
|
|
63
|
+
export {
|
|
64
|
+
O as p
|
|
65
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index149.cjs");var a=typeof Reflect=="object"?Reflect:null,h=a&&typeof a.apply=="function"?a.apply:function(e,n,r){return Function.prototype.apply.call(e,n,r)},l;a&&typeof a.ownKeys=="function"?l=a.ownKeys:Object.getOwnPropertySymbols?l=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:l=function(e){return Object.getOwnPropertyNames(e)};function j(t){console&&console.warn&&console.warn(t)}var L=Number.isNaN||function(e){return e!==e};function o(){o.init.call(this)}p.__module.exports=o;p.__module.exports.once=M;o.EventEmitter=o;o.prototype._events=void 0;o.prototype._eventsCount=0;o.prototype._maxListeners=void 0;var m=10;function v(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return m},set:function(t){if(typeof t!="number"||t<0||L(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");m=t}});o.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};o.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||L(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function y(t){return t._maxListeners===void 0?o.defaultMaxListeners:t._maxListeners}o.prototype.getMaxListeners=function(){return y(this)};o.prototype.emit=function(e){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var i=e==="error",f=this._events;if(f!==void 0)i=i&&f.error===void 0;else if(!i)return!1;if(i){var s;if(n.length>0&&(s=n[0]),s instanceof Error)throw s;var u=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw u.context=s,u}var c=f[e];if(c===void 0)return!1;if(typeof c=="function")h(c,this,n);else for(var d=c.length,x=E(c,d),r=0;r<d;++r)h(x[r],this,n);return!0};function g(t,e,n,r){var i,f,s;if(v(n),f=t._events,f===void 0?(f=t._events=Object.create(null),t._eventsCount=0):(f.newListener!==void 0&&(t.emit("newListener",e,n.listener?n.listener:n),f=t._events),s=f[e]),s===void 0)s=f[e]=n,++t._eventsCount;else if(typeof s=="function"?s=f[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=y(t),i>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=s.length,j(u)}return t}o.prototype.addListener=function(e,n){return g(this,e,n,!1)};o.prototype.on=o.prototype.addListener;o.prototype.prependListener=function(e,n){return g(this,e,n,!0)};function C(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=C.bind(r);return i.listener=n,r.wrapFn=i,i}o.prototype.once=function(e,n){return v(n),this.on(e,_(this,e,n)),this};o.prototype.prependOnceListener=function(e,n){return v(n),this.prependListener(e,_(this,e,n)),this};o.prototype.removeListener=function(e,n){var r,i,f,s,u;if(v(n),i=this._events,i===void 0)return this;if(r=i[e],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||n));else if(typeof r!="function"){for(f=-1,s=r.length-1;s>=0;s--)if(r[s]===n||r[s].listener===n){u=r[s].listener,f=s;break}if(f<0)return this;f===0?r.shift():R(r,f),r.length===1&&(i[e]=r[0]),i.removeListener!==void 0&&this.emit("removeListener",e,u||n)}return this};o.prototype.off=o.prototype.removeListener;o.prototype.removeAllListeners=function(e){var n,r,i;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[e]),this;if(arguments.length===0){var f=Object.keys(r),s;for(i=0;i<f.length;++i)s=f[i],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[e],typeof n=="function")this.removeListener(e,n);else if(n!==void 0)for(i=n.length-1;i>=0;i--)this.removeListener(e,n[i]);return this};function b(t,e,n){var r=t._events;if(r===void 0)return[];var i=r[e];return i===void 0?[]:typeof i=="function"?n?[i.listener||i]:[i]:n?N(i):E(i,i.length)}o.prototype.listeners=function(e){return b(this,e,!0)};o.prototype.rawListeners=function(e){return b(this,e,!1)};o.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):w.call(t,e)};o.prototype.listenerCount=w;function w(t){var e=this._events;if(e!==void 0){var n=e[t];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]};function E(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function R(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function N(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function M(t,e){return new Promise(function(n,r){function i(s){t.removeListener(e,f),r(s)}function f(){typeof t.removeListener=="function"&&t.removeListener("error",i),n([].slice.call(arguments))}O(t,e,f,{once:!0}),e!=="error"&&A(t,i,{once:!0})})}function A(t,e,n){typeof t.on=="function"&&O(t,"error",e,n)}function O(t,e,n,r){if(typeof t.on=="function")r.once?t.once(e,n):t.on(e,n);else if(typeof t.addEventListener=="function")t.addEventListener(e,function i(f){r.once&&t.removeEventListener(e,i),n(f)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}var P=p.__module.exports;exports.eventsExports=P;
|
package/dist/index139.js
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { __module as p } from "./index149.js";
|
|
2
|
+
var a = typeof Reflect == "object" ? Reflect : null, h = a && typeof a.apply == "function" ? a.apply : function(e, n, r) {
|
|
3
|
+
return Function.prototype.apply.call(e, n, r);
|
|
4
|
+
}, l;
|
|
5
|
+
a && typeof a.ownKeys == "function" ? l = a.ownKeys : Object.getOwnPropertySymbols ? l = function(e) {
|
|
6
|
+
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
7
|
+
} : l = function(e) {
|
|
8
|
+
return Object.getOwnPropertyNames(e);
|
|
9
|
+
};
|
|
10
|
+
function C(t) {
|
|
11
|
+
console && console.warn && console.warn(t);
|
|
12
|
+
}
|
|
13
|
+
var L = Number.isNaN || function(e) {
|
|
14
|
+
return e !== e;
|
|
15
|
+
};
|
|
16
|
+
function o() {
|
|
17
|
+
o.init.call(this);
|
|
18
|
+
}
|
|
19
|
+
p.exports = o;
|
|
20
|
+
p.exports.once = M;
|
|
21
|
+
o.EventEmitter = o;
|
|
22
|
+
o.prototype._events = void 0;
|
|
23
|
+
o.prototype._eventsCount = 0;
|
|
24
|
+
o.prototype._maxListeners = void 0;
|
|
25
|
+
var m = 10;
|
|
26
|
+
function v(t) {
|
|
27
|
+
if (typeof t != "function")
|
|
28
|
+
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof t);
|
|
29
|
+
}
|
|
30
|
+
Object.defineProperty(o, "defaultMaxListeners", {
|
|
31
|
+
enumerable: !0,
|
|
32
|
+
get: function() {
|
|
33
|
+
return m;
|
|
34
|
+
},
|
|
35
|
+
set: function(t) {
|
|
36
|
+
if (typeof t != "number" || t < 0 || L(t))
|
|
37
|
+
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + t + ".");
|
|
38
|
+
m = t;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
o.init = function() {
|
|
42
|
+
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
|
43
|
+
};
|
|
44
|
+
o.prototype.setMaxListeners = function(e) {
|
|
45
|
+
if (typeof e != "number" || e < 0 || L(e))
|
|
46
|
+
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
|
|
47
|
+
return this._maxListeners = e, this;
|
|
48
|
+
};
|
|
49
|
+
function y(t) {
|
|
50
|
+
return t._maxListeners === void 0 ? o.defaultMaxListeners : t._maxListeners;
|
|
51
|
+
}
|
|
52
|
+
o.prototype.getMaxListeners = function() {
|
|
53
|
+
return y(this);
|
|
54
|
+
};
|
|
55
|
+
o.prototype.emit = function(e) {
|
|
56
|
+
for (var n = [], r = 1; r < arguments.length; r++) n.push(arguments[r]);
|
|
57
|
+
var i = e === "error", f = this._events;
|
|
58
|
+
if (f !== void 0)
|
|
59
|
+
i = i && f.error === void 0;
|
|
60
|
+
else if (!i)
|
|
61
|
+
return !1;
|
|
62
|
+
if (i) {
|
|
63
|
+
var s;
|
|
64
|
+
if (n.length > 0 && (s = n[0]), s instanceof Error)
|
|
65
|
+
throw s;
|
|
66
|
+
var u = new Error("Unhandled error." + (s ? " (" + s.message + ")" : ""));
|
|
67
|
+
throw u.context = s, u;
|
|
68
|
+
}
|
|
69
|
+
var c = f[e];
|
|
70
|
+
if (c === void 0)
|
|
71
|
+
return !1;
|
|
72
|
+
if (typeof c == "function")
|
|
73
|
+
h(c, this, n);
|
|
74
|
+
else
|
|
75
|
+
for (var d = c.length, x = E(c, d), r = 0; r < d; ++r)
|
|
76
|
+
h(x[r], this, n);
|
|
77
|
+
return !0;
|
|
78
|
+
};
|
|
79
|
+
function g(t, e, n, r) {
|
|
80
|
+
var i, f, s;
|
|
81
|
+
if (v(n), f = t._events, f === void 0 ? (f = t._events = /* @__PURE__ */ Object.create(null), t._eventsCount = 0) : (f.newListener !== void 0 && (t.emit(
|
|
82
|
+
"newListener",
|
|
83
|
+
e,
|
|
84
|
+
n.listener ? n.listener : n
|
|
85
|
+
), f = t._events), s = f[e]), s === void 0)
|
|
86
|
+
s = f[e] = n, ++t._eventsCount;
|
|
87
|
+
else if (typeof s == "function" ? s = f[e] = r ? [n, s] : [s, n] : r ? s.unshift(n) : s.push(n), i = y(t), i > 0 && s.length > i && !s.warned) {
|
|
88
|
+
s.warned = !0;
|
|
89
|
+
var u = new Error("Possible EventEmitter memory leak detected. " + s.length + " " + String(e) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
90
|
+
u.name = "MaxListenersExceededWarning", u.emitter = t, u.type = e, u.count = s.length, C(u);
|
|
91
|
+
}
|
|
92
|
+
return t;
|
|
93
|
+
}
|
|
94
|
+
o.prototype.addListener = function(e, n) {
|
|
95
|
+
return g(this, e, n, !1);
|
|
96
|
+
};
|
|
97
|
+
o.prototype.on = o.prototype.addListener;
|
|
98
|
+
o.prototype.prependListener = function(e, n) {
|
|
99
|
+
return g(this, e, n, !0);
|
|
100
|
+
};
|
|
101
|
+
function j() {
|
|
102
|
+
if (!this.fired)
|
|
103
|
+
return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
104
|
+
}
|
|
105
|
+
function _(t, e, n) {
|
|
106
|
+
var r = { fired: !1, wrapFn: void 0, target: t, type: e, listener: n }, i = j.bind(r);
|
|
107
|
+
return i.listener = n, r.wrapFn = i, i;
|
|
108
|
+
}
|
|
109
|
+
o.prototype.once = function(e, n) {
|
|
110
|
+
return v(n), this.on(e, _(this, e, n)), this;
|
|
111
|
+
};
|
|
112
|
+
o.prototype.prependOnceListener = function(e, n) {
|
|
113
|
+
return v(n), this.prependListener(e, _(this, e, n)), this;
|
|
114
|
+
};
|
|
115
|
+
o.prototype.removeListener = function(e, n) {
|
|
116
|
+
var r, i, f, s, u;
|
|
117
|
+
if (v(n), i = this._events, i === void 0)
|
|
118
|
+
return this;
|
|
119
|
+
if (r = i[e], r === void 0)
|
|
120
|
+
return this;
|
|
121
|
+
if (r === n || r.listener === n)
|
|
122
|
+
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete i[e], i.removeListener && this.emit("removeListener", e, r.listener || n));
|
|
123
|
+
else if (typeof r != "function") {
|
|
124
|
+
for (f = -1, s = r.length - 1; s >= 0; s--)
|
|
125
|
+
if (r[s] === n || r[s].listener === n) {
|
|
126
|
+
u = r[s].listener, f = s;
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
if (f < 0)
|
|
130
|
+
return this;
|
|
131
|
+
f === 0 ? r.shift() : R(r, f), r.length === 1 && (i[e] = r[0]), i.removeListener !== void 0 && this.emit("removeListener", e, u || n);
|
|
132
|
+
}
|
|
133
|
+
return this;
|
|
134
|
+
};
|
|
135
|
+
o.prototype.off = o.prototype.removeListener;
|
|
136
|
+
o.prototype.removeAllListeners = function(e) {
|
|
137
|
+
var n, r, i;
|
|
138
|
+
if (r = this._events, r === void 0)
|
|
139
|
+
return this;
|
|
140
|
+
if (r.removeListener === void 0)
|
|
141
|
+
return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : r[e] !== void 0 && (--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete r[e]), this;
|
|
142
|
+
if (arguments.length === 0) {
|
|
143
|
+
var f = Object.keys(r), s;
|
|
144
|
+
for (i = 0; i < f.length; ++i)
|
|
145
|
+
s = f[i], s !== "removeListener" && this.removeAllListeners(s);
|
|
146
|
+
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
147
|
+
}
|
|
148
|
+
if (n = r[e], typeof n == "function")
|
|
149
|
+
this.removeListener(e, n);
|
|
150
|
+
else if (n !== void 0)
|
|
151
|
+
for (i = n.length - 1; i >= 0; i--)
|
|
152
|
+
this.removeListener(e, n[i]);
|
|
153
|
+
return this;
|
|
154
|
+
};
|
|
155
|
+
function w(t, e, n) {
|
|
156
|
+
var r = t._events;
|
|
157
|
+
if (r === void 0)
|
|
158
|
+
return [];
|
|
159
|
+
var i = r[e];
|
|
160
|
+
return i === void 0 ? [] : typeof i == "function" ? n ? [i.listener || i] : [i] : n ? N(i) : E(i, i.length);
|
|
161
|
+
}
|
|
162
|
+
o.prototype.listeners = function(e) {
|
|
163
|
+
return w(this, e, !0);
|
|
164
|
+
};
|
|
165
|
+
o.prototype.rawListeners = function(e) {
|
|
166
|
+
return w(this, e, !1);
|
|
167
|
+
};
|
|
168
|
+
o.listenerCount = function(t, e) {
|
|
169
|
+
return typeof t.listenerCount == "function" ? t.listenerCount(e) : b.call(t, e);
|
|
170
|
+
};
|
|
171
|
+
o.prototype.listenerCount = b;
|
|
172
|
+
function b(t) {
|
|
173
|
+
var e = this._events;
|
|
174
|
+
if (e !== void 0) {
|
|
175
|
+
var n = e[t];
|
|
176
|
+
if (typeof n == "function")
|
|
177
|
+
return 1;
|
|
178
|
+
if (n !== void 0)
|
|
179
|
+
return n.length;
|
|
180
|
+
}
|
|
181
|
+
return 0;
|
|
182
|
+
}
|
|
183
|
+
o.prototype.eventNames = function() {
|
|
184
|
+
return this._eventsCount > 0 ? l(this._events) : [];
|
|
185
|
+
};
|
|
186
|
+
function E(t, e) {
|
|
187
|
+
for (var n = new Array(e), r = 0; r < e; ++r)
|
|
188
|
+
n[r] = t[r];
|
|
189
|
+
return n;
|
|
190
|
+
}
|
|
191
|
+
function R(t, e) {
|
|
192
|
+
for (; e + 1 < t.length; e++)
|
|
193
|
+
t[e] = t[e + 1];
|
|
194
|
+
t.pop();
|
|
195
|
+
}
|
|
196
|
+
function N(t) {
|
|
197
|
+
for (var e = new Array(t.length), n = 0; n < e.length; ++n)
|
|
198
|
+
e[n] = t[n].listener || t[n];
|
|
199
|
+
return e;
|
|
200
|
+
}
|
|
201
|
+
function M(t, e) {
|
|
202
|
+
return new Promise(function(n, r) {
|
|
203
|
+
function i(s) {
|
|
204
|
+
t.removeListener(e, f), r(s);
|
|
205
|
+
}
|
|
206
|
+
function f() {
|
|
207
|
+
typeof t.removeListener == "function" && t.removeListener("error", i), n([].slice.call(arguments));
|
|
208
|
+
}
|
|
209
|
+
O(t, e, f, { once: !0 }), e !== "error" && A(t, i, { once: !0 });
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
function A(t, e, n) {
|
|
213
|
+
typeof t.on == "function" && O(t, "error", e, n);
|
|
214
|
+
}
|
|
215
|
+
function O(t, e, n, r) {
|
|
216
|
+
if (typeof t.on == "function")
|
|
217
|
+
r.once ? t.once(e, n) : t.on(e, n);
|
|
218
|
+
else if (typeof t.addEventListener == "function")
|
|
219
|
+
t.addEventListener(e, function i(f) {
|
|
220
|
+
r.once && t.removeEventListener(e, i), n(f);
|
|
221
|
+
});
|
|
222
|
+
else
|
|
223
|
+
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof t);
|
|
224
|
+
}
|
|
225
|
+
var T = p.exports;
|
|
226
|
+
export {
|
|
227
|
+
T as e
|
|
228
|
+
};
|
package/dist/index14.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./index15.cjs");require("./index25.cjs");const n=require("./index26.cjs");(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.networks=e.ECPairFactory=e.default=void 0;var r=n.__exports;Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.ECPairFactory}}),Object.defineProperty(e,"ECPairFactory",{enumerable:!0,get:function(){return r.ECPairFactory}}),Object.defineProperty(e,"networks",{enumerable:!0,get:function(){return r.networks}})})(t.__exports);
|
package/dist/index14.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __exports as t } from "./index15.js";
|
|
2
|
+
import "./index25.js";
|
|
3
|
+
import { __exports as n } from "./index26.js";
|
|
4
|
+
(function(e) {
|
|
5
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.networks = e.ECPairFactory = e.default = void 0;
|
|
6
|
+
var r = n;
|
|
7
|
+
Object.defineProperty(e, "default", {
|
|
8
|
+
enumerable: !0,
|
|
9
|
+
get: function() {
|
|
10
|
+
return r.ECPairFactory;
|
|
11
|
+
}
|
|
12
|
+
}), Object.defineProperty(e, "ECPairFactory", {
|
|
13
|
+
enumerable: !0,
|
|
14
|
+
get: function() {
|
|
15
|
+
return r.ECPairFactory;
|
|
16
|
+
}
|
|
17
|
+
}), Object.defineProperty(e, "networks", {
|
|
18
|
+
enumerable: !0,
|
|
19
|
+
get: function() {
|
|
20
|
+
return r.networks;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
})(t);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index139.cjs");var r=e.eventsExports.EventEmitter;exports.streamBrowser=r;
|
package/dist/index140.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index82.cjs");const j=require("./index120.cjs"),x=require("./index83.cjs");var f,v;function k(){if(v)return f;v=1;function c(i,r){var e=Object.keys(i);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(i);r&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),e.push.apply(e,t)}return e}function o(i){for(var r=1;r<arguments.length;r++){var e=arguments[r]!=null?arguments[r]:{};r%2?c(Object(e),!0).forEach(function(t){g(i,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(e,t))})}return i}function g(i,r,e){return r=d(r),r in i?Object.defineProperty(i,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):i[r]=e,i}function y(i,r){if(!(i instanceof r))throw new TypeError("Cannot call a class as a function")}function p(i,r){for(var e=0;e<r.length;e++){var t=r[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(i,d(t.key),t)}}function _(i,r,e){return r&&p(i.prototype,r),Object.defineProperty(i,"prototype",{writable:!1}),i}function d(i){var r=m(i,"string");return typeof r=="symbol"?r:String(r)}function m(i,r){if(typeof i!="object"||i===null)return i;var e=i[Symbol.toPrimitive];if(e!==void 0){var t=e.call(i,r||"default");if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(i)}var O=x.__exports,u=O.Buffer,b=j,s=b.inspect,w=s&&s.custom||"inspect";function P(i,r,e){u.prototype.copy.call(i,r,e)}return f=function(){function i(){y(this,i),this.head=null,this.tail=null,this.length=0}return _(i,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(this.length!==0){var e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(this.length===0)return"";for(var t=this.head,a=""+t.data;t=t.next;)a+=e+t.data;return a}},{key:"concat",value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),a=this.head,l=0;a;)P(a.data,t,l),l+=a.data.length,a=a.next;return t}},{key:"consume",value:function(e,t){var a;return e<this.head.data.length?(a=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):e===this.head.data.length?a=this.shift():a=t?this._getString(e):this._getBuffer(e),a}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,a=1,l=t.data;for(e-=l.length;t=t.next;){var n=t.data,h=e>n.length?n.length:e;if(h===n.length?l+=n:l+=n.slice(0,e),e-=h,e===0){h===n.length?(++a,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=n.slice(h));break}++a}return this.length-=a,l}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),a=this.head,l=1;for(a.data.copy(t),e-=a.data.length;a=a.next;){var n=a.data,h=e>n.length?n.length:e;if(n.copy(t,t.length-e,0,h),e-=h,e===0){h===n.length?(++l,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=n.slice(h));break}++l}return this.length-=l,t}},{key:w,value:function(e,t){return s(this,o(o({},t),{},{depth:0,customInspect:!1}))}}]),i}(),f}exports.__require=k;
|