@hybridcore/ui 1.5.13 → 1.5.15
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/{DialogContent-CtA2aNum.js → DialogContent-B8pD_s9h.js} +1 -1
- package/dist/{Modal-DzZo-vlm.js → Modal-DpmJpbob.js} +206 -195
- package/dist/{Select-ush_fSWy.js → Select-DuyWoyoF.js} +1 -1
- package/dist/{TextField-BjFXx91l.js → TextField-CdKnj6de.js} +1 -1
- package/dist/assets/index3.css +1 -0
- package/dist/components/confirm/dialog.js +2 -2
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/document-viewer/components/action-buttons/index.js +16 -0
- package/dist/components/document-viewer/components/navigation/index.js +26 -0
- package/dist/components/document-viewer/components/viewer/custom-renders/txt.js +5 -0
- package/dist/components/document-viewer/components/viewer/index.js +35 -0
- package/dist/components/document-viewer/data.js +4 -0
- package/dist/components/document-viewer/index.js +19 -0
- package/dist/components/document-viewer/styled.js +22 -0
- package/dist/components/document-viewer/utils.js +4 -0
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/variable/index.js +7 -7
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/range-selector/components/composite-list-range/index.js +1 -1
- package/dist/components/range-selector/components/date-range/index.js +1 -1
- package/dist/components/range-selector/index.js +1 -1
- package/dist/components/template-form/components/property-list/index.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +3 -3
- package/dist/components/template-form/components/recognition-property-list/index.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +2 -2
- package/dist/components/template-form/index.js +2 -2
- package/dist/components/template-property-filters/property.js +1 -1
- package/dist/components/tree-select/index.js +2 -2
- package/dist/{dialog-BDt1r9fh.js → dialog-C7_6_FBz.js} +1 -1
- package/dist/empty-GlqisfcO-GlqisfcO.js +4 -0
- package/dist/index-4HENfCPg-CwPLzyfw.js +3350 -0
- package/dist/index-BepDdkdq-BilQlvph.js +42 -0
- package/dist/{index-CAaDu0NI.js → index-CNMnXD0q.js} +1349 -1338
- package/dist/{index-D-mTkx9Q.js → index-CdecY907.js} +63 -61
- package/dist/main.d.ts +1 -0
- package/dist/main.js +1 -1
- package/dist/{property-list-form-CLSTkOmv.js → property-list-form-DALcsCp5.js} +92 -104
- package/dist/txt-U0b7DL6j.js +19250 -0
- package/dist/url-DQYFKQ_E-BH63-AZh.js +558 -0
- package/package.json +2 -1
|
@@ -0,0 +1,3350 @@
|
|
|
1
|
+
import { r as V, c as U, A as ce, z as br, q as nn, J as on } from "./txt-U0b7DL6j.js";
|
|
2
|
+
import { u as an } from "./url-DQYFKQ_E-BH63-AZh.js";
|
|
3
|
+
function sn(e, t) {
|
|
4
|
+
for (var r = 0; r < t.length; r++) {
|
|
5
|
+
const o = t[r];
|
|
6
|
+
if (typeof o != "string" && !Array.isArray(o)) {
|
|
7
|
+
for (const a in o)
|
|
8
|
+
if (a !== "default" && !(a in e)) {
|
|
9
|
+
const p = Object.getOwnPropertyDescriptor(o, a);
|
|
10
|
+
p && Object.defineProperty(e, a, p.get ? p : {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: () => o[a]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return Object.freeze(Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }));
|
|
18
|
+
}
|
|
19
|
+
var Rt = {}, gr = { exports: {} }, Ot = {};
|
|
20
|
+
(function(e) {
|
|
21
|
+
e.fetch = a(V.fetch) && a(V.ReadableStream), e.writableStream = a(V.WritableStream), e.abortController = a(V.AbortController);
|
|
22
|
+
var t;
|
|
23
|
+
function r() {
|
|
24
|
+
if (t !== void 0)
|
|
25
|
+
return t;
|
|
26
|
+
if (V.XMLHttpRequest) {
|
|
27
|
+
t = new V.XMLHttpRequest();
|
|
28
|
+
try {
|
|
29
|
+
t.open("GET", V.XDomainRequest ? "/" : "https://example.com");
|
|
30
|
+
} catch {
|
|
31
|
+
t = null;
|
|
32
|
+
}
|
|
33
|
+
} else
|
|
34
|
+
t = null;
|
|
35
|
+
return t;
|
|
36
|
+
}
|
|
37
|
+
function o(p) {
|
|
38
|
+
var f = r();
|
|
39
|
+
if (!f)
|
|
40
|
+
return !1;
|
|
41
|
+
try {
|
|
42
|
+
return f.responseType = p, f.responseType === p;
|
|
43
|
+
} catch {
|
|
44
|
+
}
|
|
45
|
+
return !1;
|
|
46
|
+
}
|
|
47
|
+
e.arraybuffer = e.fetch || o("arraybuffer"), e.msstream = !e.fetch && o("ms-stream"), e.mozchunkedarraybuffer = !e.fetch && o("moz-chunked-arraybuffer"), e.overrideMimeType = e.fetch || (r() ? a(r().overrideMimeType) : !1);
|
|
48
|
+
function a(p) {
|
|
49
|
+
return typeof p == "function";
|
|
50
|
+
}
|
|
51
|
+
t = null;
|
|
52
|
+
})(Ot);
|
|
53
|
+
var bt = { exports: {} };
|
|
54
|
+
typeof Object.create == "function" ? bt.exports = function(e, t) {
|
|
55
|
+
t && (e.super_ = t, e.prototype = Object.create(t.prototype, {
|
|
56
|
+
constructor: {
|
|
57
|
+
value: e,
|
|
58
|
+
enumerable: !1,
|
|
59
|
+
writable: !0,
|
|
60
|
+
configurable: !0
|
|
61
|
+
}
|
|
62
|
+
}));
|
|
63
|
+
} : bt.exports = function(e, t) {
|
|
64
|
+
if (t) {
|
|
65
|
+
e.super_ = t;
|
|
66
|
+
var r = function() {
|
|
67
|
+
};
|
|
68
|
+
r.prototype = t.prototype, e.prototype = new r(), e.prototype.constructor = e;
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
var le = bt.exports, qe = {}, gt = { exports: {} }, Tt = { exports: {} }, Se = typeof Reflect == "object" ? Reflect : null, Ft = Se && typeof Se.apply == "function" ? Se.apply : function(e, t, r) {
|
|
72
|
+
return Function.prototype.apply.call(e, t, r);
|
|
73
|
+
}, Me;
|
|
74
|
+
Se && typeof Se.ownKeys == "function" ? Me = Se.ownKeys : Object.getOwnPropertySymbols ? Me = function(e) {
|
|
75
|
+
return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e));
|
|
76
|
+
} : Me = function(e) {
|
|
77
|
+
return Object.getOwnPropertyNames(e);
|
|
78
|
+
};
|
|
79
|
+
function un(e) {
|
|
80
|
+
console && console.warn && console.warn(e);
|
|
81
|
+
}
|
|
82
|
+
var mr = Number.isNaN || function(e) {
|
|
83
|
+
return e !== e;
|
|
84
|
+
};
|
|
85
|
+
function H() {
|
|
86
|
+
H.init.call(this);
|
|
87
|
+
}
|
|
88
|
+
Tt.exports = H;
|
|
89
|
+
Tt.exports.once = pn;
|
|
90
|
+
H.EventEmitter = H;
|
|
91
|
+
H.prototype._events = void 0;
|
|
92
|
+
H.prototype._eventsCount = 0;
|
|
93
|
+
H.prototype._maxListeners = void 0;
|
|
94
|
+
var Bt = 10;
|
|
95
|
+
function He(e) {
|
|
96
|
+
if (typeof e != "function")
|
|
97
|
+
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof e);
|
|
98
|
+
}
|
|
99
|
+
Object.defineProperty(H, "defaultMaxListeners", {
|
|
100
|
+
enumerable: !0,
|
|
101
|
+
get: function() {
|
|
102
|
+
return Bt;
|
|
103
|
+
},
|
|
104
|
+
set: function(e) {
|
|
105
|
+
if (typeof e != "number" || e < 0 || mr(e))
|
|
106
|
+
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + e + ".");
|
|
107
|
+
Bt = e;
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
H.init = function() {
|
|
111
|
+
(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;
|
|
112
|
+
};
|
|
113
|
+
H.prototype.setMaxListeners = function(e) {
|
|
114
|
+
if (typeof e != "number" || e < 0 || mr(e))
|
|
115
|
+
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + ".");
|
|
116
|
+
return this._maxListeners = e, this;
|
|
117
|
+
};
|
|
118
|
+
function vr(e) {
|
|
119
|
+
return e._maxListeners === void 0 ? H.defaultMaxListeners : e._maxListeners;
|
|
120
|
+
}
|
|
121
|
+
H.prototype.getMaxListeners = function() {
|
|
122
|
+
return vr(this);
|
|
123
|
+
};
|
|
124
|
+
H.prototype.emit = function(e) {
|
|
125
|
+
for (var t = [], r = 1; r < arguments.length; r++)
|
|
126
|
+
t.push(arguments[r]);
|
|
127
|
+
var o = e === "error", a = this._events;
|
|
128
|
+
if (a !== void 0)
|
|
129
|
+
o = o && a.error === void 0;
|
|
130
|
+
else if (!o)
|
|
131
|
+
return !1;
|
|
132
|
+
if (o) {
|
|
133
|
+
var p;
|
|
134
|
+
if (t.length > 0 && (p = t[0]), p instanceof Error)
|
|
135
|
+
throw p;
|
|
136
|
+
var f = new Error("Unhandled error." + (p ? " (" + p.message + ")" : ""));
|
|
137
|
+
throw f.context = p, f;
|
|
138
|
+
}
|
|
139
|
+
var h = a[e];
|
|
140
|
+
if (h === void 0)
|
|
141
|
+
return !1;
|
|
142
|
+
if (typeof h == "function")
|
|
143
|
+
Ft(h, this, t);
|
|
144
|
+
else
|
|
145
|
+
for (var d = h.length, R = Ar(h, d), r = 0; r < d; ++r)
|
|
146
|
+
Ft(R[r], this, t);
|
|
147
|
+
return !0;
|
|
148
|
+
};
|
|
149
|
+
function wr(e, t, r, o) {
|
|
150
|
+
var a, p, f;
|
|
151
|
+
if (He(r), p = e._events, p === void 0 ? (p = e._events = /* @__PURE__ */ Object.create(null), e._eventsCount = 0) : (p.newListener !== void 0 && (e.emit(
|
|
152
|
+
"newListener",
|
|
153
|
+
t,
|
|
154
|
+
r.listener ? r.listener : r
|
|
155
|
+
), p = e._events), f = p[t]), f === void 0)
|
|
156
|
+
f = p[t] = r, ++e._eventsCount;
|
|
157
|
+
else if (typeof f == "function" ? f = p[t] = o ? [r, f] : [f, r] : o ? f.unshift(r) : f.push(r), a = vr(e), a > 0 && f.length > a && !f.warned) {
|
|
158
|
+
f.warned = !0;
|
|
159
|
+
var h = new Error("Possible EventEmitter memory leak detected. " + f.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
160
|
+
h.name = "MaxListenersExceededWarning", h.emitter = e, h.type = t, h.count = f.length, un(h);
|
|
161
|
+
}
|
|
162
|
+
return e;
|
|
163
|
+
}
|
|
164
|
+
H.prototype.addListener = function(e, t) {
|
|
165
|
+
return wr(this, e, t, !1);
|
|
166
|
+
};
|
|
167
|
+
H.prototype.on = H.prototype.addListener;
|
|
168
|
+
H.prototype.prependListener = function(e, t) {
|
|
169
|
+
return wr(this, e, t, !0);
|
|
170
|
+
};
|
|
171
|
+
function ln() {
|
|
172
|
+
if (!this.fired)
|
|
173
|
+
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);
|
|
174
|
+
}
|
|
175
|
+
function _r(e, t, r) {
|
|
176
|
+
var o = { fired: !1, wrapFn: void 0, target: e, type: t, listener: r }, a = ln.bind(o);
|
|
177
|
+
return a.listener = r, o.wrapFn = a, a;
|
|
178
|
+
}
|
|
179
|
+
H.prototype.once = function(e, t) {
|
|
180
|
+
return He(t), this.on(e, _r(this, e, t)), this;
|
|
181
|
+
};
|
|
182
|
+
H.prototype.prependOnceListener = function(e, t) {
|
|
183
|
+
return He(t), this.prependListener(e, _r(this, e, t)), this;
|
|
184
|
+
};
|
|
185
|
+
H.prototype.removeListener = function(e, t) {
|
|
186
|
+
var r, o, a, p, f;
|
|
187
|
+
if (He(t), o = this._events, o === void 0)
|
|
188
|
+
return this;
|
|
189
|
+
if (r = o[e], r === void 0)
|
|
190
|
+
return this;
|
|
191
|
+
if (r === t || r.listener === t)
|
|
192
|
+
--this._eventsCount === 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete o[e], o.removeListener && this.emit("removeListener", e, r.listener || t));
|
|
193
|
+
else if (typeof r != "function") {
|
|
194
|
+
for (a = -1, p = r.length - 1; p >= 0; p--)
|
|
195
|
+
if (r[p] === t || r[p].listener === t) {
|
|
196
|
+
f = r[p].listener, a = p;
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
if (a < 0)
|
|
200
|
+
return this;
|
|
201
|
+
a === 0 ? r.shift() : cn(r, a), r.length === 1 && (o[e] = r[0]), o.removeListener !== void 0 && this.emit("removeListener", e, f || t);
|
|
202
|
+
}
|
|
203
|
+
return this;
|
|
204
|
+
};
|
|
205
|
+
H.prototype.off = H.prototype.removeListener;
|
|
206
|
+
H.prototype.removeAllListeners = function(e) {
|
|
207
|
+
var t, r, o;
|
|
208
|
+
if (r = this._events, r === void 0)
|
|
209
|
+
return this;
|
|
210
|
+
if (r.removeListener === void 0)
|
|
211
|
+
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;
|
|
212
|
+
if (arguments.length === 0) {
|
|
213
|
+
var a = Object.keys(r), p;
|
|
214
|
+
for (o = 0; o < a.length; ++o)
|
|
215
|
+
p = a[o], p !== "removeListener" && this.removeAllListeners(p);
|
|
216
|
+
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
|
217
|
+
}
|
|
218
|
+
if (t = r[e], typeof t == "function")
|
|
219
|
+
this.removeListener(e, t);
|
|
220
|
+
else if (t !== void 0)
|
|
221
|
+
for (o = t.length - 1; o >= 0; o--)
|
|
222
|
+
this.removeListener(e, t[o]);
|
|
223
|
+
return this;
|
|
224
|
+
};
|
|
225
|
+
function Sr(e, t, r) {
|
|
226
|
+
var o = e._events;
|
|
227
|
+
if (o === void 0)
|
|
228
|
+
return [];
|
|
229
|
+
var a = o[t];
|
|
230
|
+
return a === void 0 ? [] : typeof a == "function" ? r ? [a.listener || a] : [a] : r ? fn(a) : Ar(a, a.length);
|
|
231
|
+
}
|
|
232
|
+
H.prototype.listeners = function(e) {
|
|
233
|
+
return Sr(this, e, !0);
|
|
234
|
+
};
|
|
235
|
+
H.prototype.rawListeners = function(e) {
|
|
236
|
+
return Sr(this, e, !1);
|
|
237
|
+
};
|
|
238
|
+
H.listenerCount = function(e, t) {
|
|
239
|
+
return typeof e.listenerCount == "function" ? e.listenerCount(t) : Er.call(e, t);
|
|
240
|
+
};
|
|
241
|
+
H.prototype.listenerCount = Er;
|
|
242
|
+
function Er(e) {
|
|
243
|
+
var t = this._events;
|
|
244
|
+
if (t !== void 0) {
|
|
245
|
+
var r = t[e];
|
|
246
|
+
if (typeof r == "function")
|
|
247
|
+
return 1;
|
|
248
|
+
if (r !== void 0)
|
|
249
|
+
return r.length;
|
|
250
|
+
}
|
|
251
|
+
return 0;
|
|
252
|
+
}
|
|
253
|
+
H.prototype.eventNames = function() {
|
|
254
|
+
return this._eventsCount > 0 ? Me(this._events) : [];
|
|
255
|
+
};
|
|
256
|
+
function Ar(e, t) {
|
|
257
|
+
for (var r = new Array(t), o = 0; o < t; ++o)
|
|
258
|
+
r[o] = e[o];
|
|
259
|
+
return r;
|
|
260
|
+
}
|
|
261
|
+
function cn(e, t) {
|
|
262
|
+
for (; t + 1 < e.length; t++)
|
|
263
|
+
e[t] = e[t + 1];
|
|
264
|
+
e.pop();
|
|
265
|
+
}
|
|
266
|
+
function fn(e) {
|
|
267
|
+
for (var t = new Array(e.length), r = 0; r < t.length; ++r)
|
|
268
|
+
t[r] = e[r].listener || e[r];
|
|
269
|
+
return t;
|
|
270
|
+
}
|
|
271
|
+
function pn(e, t) {
|
|
272
|
+
return new Promise(function(r, o) {
|
|
273
|
+
function a(f) {
|
|
274
|
+
e.removeListener(t, p), o(f);
|
|
275
|
+
}
|
|
276
|
+
function p() {
|
|
277
|
+
typeof e.removeListener == "function" && e.removeListener("error", a), r([].slice.call(arguments));
|
|
278
|
+
}
|
|
279
|
+
Rr(e, t, p, { once: !0 }), t !== "error" && hn(e, a, { once: !0 });
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
function hn(e, t, r) {
|
|
283
|
+
typeof e.on == "function" && Rr(e, "error", t, r);
|
|
284
|
+
}
|
|
285
|
+
function Rr(e, t, r, o) {
|
|
286
|
+
if (typeof e.on == "function")
|
|
287
|
+
o.once ? e.once(t, r) : e.on(t, r);
|
|
288
|
+
else if (typeof e.addEventListener == "function")
|
|
289
|
+
e.addEventListener(t, function a(p) {
|
|
290
|
+
o.once && e.removeEventListener(t, a), r(p);
|
|
291
|
+
});
|
|
292
|
+
else
|
|
293
|
+
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof e);
|
|
294
|
+
}
|
|
295
|
+
var Or = Tt.exports, Tr = Or.EventEmitter;
|
|
296
|
+
const Ge = /* @__PURE__ */ br(nn);
|
|
297
|
+
var jt = {}, jr = {}, Pr = function() {
|
|
298
|
+
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
299
|
+
return !1;
|
|
300
|
+
if (typeof Symbol.iterator == "symbol")
|
|
301
|
+
return !0;
|
|
302
|
+
var e = {}, t = Symbol("test"), r = Object(t);
|
|
303
|
+
if (typeof t == "string" || Object.prototype.toString.call(t) !== "[object Symbol]" || Object.prototype.toString.call(r) !== "[object Symbol]")
|
|
304
|
+
return !1;
|
|
305
|
+
var o = 42;
|
|
306
|
+
e[t] = o;
|
|
307
|
+
for (t in e)
|
|
308
|
+
return !1;
|
|
309
|
+
if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0)
|
|
310
|
+
return !1;
|
|
311
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
312
|
+
if (a.length !== 1 || a[0] !== t || !Object.prototype.propertyIsEnumerable.call(e, t))
|
|
313
|
+
return !1;
|
|
314
|
+
if (typeof Object.getOwnPropertyDescriptor == "function") {
|
|
315
|
+
var p = Object.getOwnPropertyDescriptor(e, t);
|
|
316
|
+
if (p.value !== o || p.enumerable !== !0)
|
|
317
|
+
return !1;
|
|
318
|
+
}
|
|
319
|
+
return !0;
|
|
320
|
+
}, dn = Pr, Pt = function() {
|
|
321
|
+
return dn() && !!Symbol.toStringTag;
|
|
322
|
+
}, yn = Error, bn = EvalError, gn = RangeError, mn = ReferenceError, kr = SyntaxError, ze = TypeError, vn = URIError, Wt = typeof Symbol < "u" && Symbol, wn = Pr, _n = function() {
|
|
323
|
+
return typeof Wt != "function" || typeof Symbol != "function" || typeof Wt("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : wn();
|
|
324
|
+
}, Ze = {
|
|
325
|
+
__proto__: null,
|
|
326
|
+
foo: {}
|
|
327
|
+
}, Sn = Object, En = function() {
|
|
328
|
+
return { __proto__: Ze }.foo === Ze.foo && !(Ze instanceof Sn);
|
|
329
|
+
}, An = "Function.prototype.bind called on incompatible ", Rn = Object.prototype.toString, On = Math.max, Tn = "[object Function]", qt = function(e, t) {
|
|
330
|
+
for (var r = [], o = 0; o < e.length; o += 1)
|
|
331
|
+
r[o] = e[o];
|
|
332
|
+
for (var a = 0; a < t.length; a += 1)
|
|
333
|
+
r[a + e.length] = t[a];
|
|
334
|
+
return r;
|
|
335
|
+
}, jn = function(e, t) {
|
|
336
|
+
for (var r = [], o = t, a = 0; o < e.length; o += 1, a += 1)
|
|
337
|
+
r[a] = e[o];
|
|
338
|
+
return r;
|
|
339
|
+
}, Pn = function(e, t) {
|
|
340
|
+
for (var r = "", o = 0; o < e.length; o += 1)
|
|
341
|
+
r += e[o], o + 1 < e.length && (r += t);
|
|
342
|
+
return r;
|
|
343
|
+
}, kn = function(e) {
|
|
344
|
+
var t = this;
|
|
345
|
+
if (typeof t != "function" || Rn.apply(t) !== Tn)
|
|
346
|
+
throw new TypeError(An + t);
|
|
347
|
+
for (var r = jn(arguments, 1), o, a = function() {
|
|
348
|
+
if (this instanceof o) {
|
|
349
|
+
var R = t.apply(
|
|
350
|
+
this,
|
|
351
|
+
qt(r, arguments)
|
|
352
|
+
);
|
|
353
|
+
return Object(R) === R ? R : this;
|
|
354
|
+
}
|
|
355
|
+
return t.apply(
|
|
356
|
+
e,
|
|
357
|
+
qt(r, arguments)
|
|
358
|
+
);
|
|
359
|
+
}, p = On(0, t.length - r.length), f = [], h = 0; h < p; h++)
|
|
360
|
+
f[h] = "$" + h;
|
|
361
|
+
if (o = Function("binder", "return function (" + Pn(f, ",") + "){ return binder.apply(this,arguments); }")(a), t.prototype) {
|
|
362
|
+
var d = function() {
|
|
363
|
+
};
|
|
364
|
+
d.prototype = t.prototype, o.prototype = new d(), d.prototype = null;
|
|
365
|
+
}
|
|
366
|
+
return o;
|
|
367
|
+
}, xn = kn, kt = Function.prototype.bind || xn, Mn = Function.prototype.call, Ln = Object.prototype.hasOwnProperty, Cn = kt, Nn = Cn.call(Mn, Ln), B, In = yn, Un = bn, Dn = gn, Fn = mn, Ae = kr, Ee = ze, Bn = vn, xr = Function, Qe = function(e) {
|
|
368
|
+
try {
|
|
369
|
+
return xr('"use strict"; return (' + e + ").constructor;")();
|
|
370
|
+
} catch {
|
|
371
|
+
}
|
|
372
|
+
}, pe = Object.getOwnPropertyDescriptor;
|
|
373
|
+
if (pe)
|
|
374
|
+
try {
|
|
375
|
+
pe({}, "");
|
|
376
|
+
} catch {
|
|
377
|
+
pe = null;
|
|
378
|
+
}
|
|
379
|
+
var et = function() {
|
|
380
|
+
throw new Ee();
|
|
381
|
+
}, Wn = pe ? function() {
|
|
382
|
+
try {
|
|
383
|
+
return arguments.callee, et;
|
|
384
|
+
} catch {
|
|
385
|
+
try {
|
|
386
|
+
return pe(arguments, "callee").get;
|
|
387
|
+
} catch {
|
|
388
|
+
return et;
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}() : et, me = _n(), qn = En(), $ = Object.getPrototypeOf || (qn ? function(e) {
|
|
392
|
+
return e.__proto__;
|
|
393
|
+
} : null), we = {}, Hn = typeof Uint8Array > "u" || !$ ? B : $(Uint8Array), he = {
|
|
394
|
+
__proto__: null,
|
|
395
|
+
"%AggregateError%": typeof AggregateError > "u" ? B : AggregateError,
|
|
396
|
+
"%Array%": Array,
|
|
397
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? B : ArrayBuffer,
|
|
398
|
+
"%ArrayIteratorPrototype%": me && $ ? $([][Symbol.iterator]()) : B,
|
|
399
|
+
"%AsyncFromSyncIteratorPrototype%": B,
|
|
400
|
+
"%AsyncFunction%": we,
|
|
401
|
+
"%AsyncGenerator%": we,
|
|
402
|
+
"%AsyncGeneratorFunction%": we,
|
|
403
|
+
"%AsyncIteratorPrototype%": we,
|
|
404
|
+
"%Atomics%": typeof Atomics > "u" ? B : Atomics,
|
|
405
|
+
"%BigInt%": typeof BigInt > "u" ? B : BigInt,
|
|
406
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? B : BigInt64Array,
|
|
407
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? B : BigUint64Array,
|
|
408
|
+
"%Boolean%": Boolean,
|
|
409
|
+
"%DataView%": typeof DataView > "u" ? B : DataView,
|
|
410
|
+
"%Date%": Date,
|
|
411
|
+
"%decodeURI%": decodeURI,
|
|
412
|
+
"%decodeURIComponent%": decodeURIComponent,
|
|
413
|
+
"%encodeURI%": encodeURI,
|
|
414
|
+
"%encodeURIComponent%": encodeURIComponent,
|
|
415
|
+
"%Error%": In,
|
|
416
|
+
"%eval%": eval,
|
|
417
|
+
// eslint-disable-line no-eval
|
|
418
|
+
"%EvalError%": Un,
|
|
419
|
+
"%Float32Array%": typeof Float32Array > "u" ? B : Float32Array,
|
|
420
|
+
"%Float64Array%": typeof Float64Array > "u" ? B : Float64Array,
|
|
421
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? B : FinalizationRegistry,
|
|
422
|
+
"%Function%": xr,
|
|
423
|
+
"%GeneratorFunction%": we,
|
|
424
|
+
"%Int8Array%": typeof Int8Array > "u" ? B : Int8Array,
|
|
425
|
+
"%Int16Array%": typeof Int16Array > "u" ? B : Int16Array,
|
|
426
|
+
"%Int32Array%": typeof Int32Array > "u" ? B : Int32Array,
|
|
427
|
+
"%isFinite%": isFinite,
|
|
428
|
+
"%isNaN%": isNaN,
|
|
429
|
+
"%IteratorPrototype%": me && $ ? $($([][Symbol.iterator]())) : B,
|
|
430
|
+
"%JSON%": typeof JSON == "object" ? JSON : B,
|
|
431
|
+
"%Map%": typeof Map > "u" ? B : Map,
|
|
432
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !me || !$ ? B : $((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
433
|
+
"%Math%": Math,
|
|
434
|
+
"%Number%": Number,
|
|
435
|
+
"%Object%": Object,
|
|
436
|
+
"%parseFloat%": parseFloat,
|
|
437
|
+
"%parseInt%": parseInt,
|
|
438
|
+
"%Promise%": typeof Promise > "u" ? B : Promise,
|
|
439
|
+
"%Proxy%": typeof Proxy > "u" ? B : Proxy,
|
|
440
|
+
"%RangeError%": Dn,
|
|
441
|
+
"%ReferenceError%": Fn,
|
|
442
|
+
"%Reflect%": typeof Reflect > "u" ? B : Reflect,
|
|
443
|
+
"%RegExp%": RegExp,
|
|
444
|
+
"%Set%": typeof Set > "u" ? B : Set,
|
|
445
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !me || !$ ? B : $((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
446
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? B : SharedArrayBuffer,
|
|
447
|
+
"%String%": String,
|
|
448
|
+
"%StringIteratorPrototype%": me && $ ? $(""[Symbol.iterator]()) : B,
|
|
449
|
+
"%Symbol%": me ? Symbol : B,
|
|
450
|
+
"%SyntaxError%": Ae,
|
|
451
|
+
"%ThrowTypeError%": Wn,
|
|
452
|
+
"%TypedArray%": Hn,
|
|
453
|
+
"%TypeError%": Ee,
|
|
454
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? B : Uint8Array,
|
|
455
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? B : Uint8ClampedArray,
|
|
456
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? B : Uint16Array,
|
|
457
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? B : Uint32Array,
|
|
458
|
+
"%URIError%": Bn,
|
|
459
|
+
"%WeakMap%": typeof WeakMap > "u" ? B : WeakMap,
|
|
460
|
+
"%WeakRef%": typeof WeakRef > "u" ? B : WeakRef,
|
|
461
|
+
"%WeakSet%": typeof WeakSet > "u" ? B : WeakSet
|
|
462
|
+
};
|
|
463
|
+
if ($)
|
|
464
|
+
try {
|
|
465
|
+
null.error;
|
|
466
|
+
} catch (e) {
|
|
467
|
+
var Gn = $($(e));
|
|
468
|
+
he["%Error.prototype%"] = Gn;
|
|
469
|
+
}
|
|
470
|
+
var zn = function e(t) {
|
|
471
|
+
var r;
|
|
472
|
+
if (t === "%AsyncFunction%")
|
|
473
|
+
r = Qe("async function () {}");
|
|
474
|
+
else if (t === "%GeneratorFunction%")
|
|
475
|
+
r = Qe("function* () {}");
|
|
476
|
+
else if (t === "%AsyncGeneratorFunction%")
|
|
477
|
+
r = Qe("async function* () {}");
|
|
478
|
+
else if (t === "%AsyncGenerator%") {
|
|
479
|
+
var o = e("%AsyncGeneratorFunction%");
|
|
480
|
+
o && (r = o.prototype);
|
|
481
|
+
} else if (t === "%AsyncIteratorPrototype%") {
|
|
482
|
+
var a = e("%AsyncGenerator%");
|
|
483
|
+
a && $ && (r = $(a.prototype));
|
|
484
|
+
}
|
|
485
|
+
return he[t] = r, r;
|
|
486
|
+
}, Ht = {
|
|
487
|
+
__proto__: null,
|
|
488
|
+
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
489
|
+
"%ArrayPrototype%": ["Array", "prototype"],
|
|
490
|
+
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
491
|
+
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
492
|
+
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
493
|
+
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
494
|
+
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
495
|
+
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
496
|
+
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
497
|
+
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
498
|
+
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
499
|
+
"%DatePrototype%": ["Date", "prototype"],
|
|
500
|
+
"%ErrorPrototype%": ["Error", "prototype"],
|
|
501
|
+
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
502
|
+
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
503
|
+
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
504
|
+
"%FunctionPrototype%": ["Function", "prototype"],
|
|
505
|
+
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
506
|
+
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
507
|
+
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
508
|
+
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
509
|
+
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
510
|
+
"%JSONParse%": ["JSON", "parse"],
|
|
511
|
+
"%JSONStringify%": ["JSON", "stringify"],
|
|
512
|
+
"%MapPrototype%": ["Map", "prototype"],
|
|
513
|
+
"%NumberPrototype%": ["Number", "prototype"],
|
|
514
|
+
"%ObjectPrototype%": ["Object", "prototype"],
|
|
515
|
+
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
516
|
+
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
517
|
+
"%PromisePrototype%": ["Promise", "prototype"],
|
|
518
|
+
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
519
|
+
"%Promise_all%": ["Promise", "all"],
|
|
520
|
+
"%Promise_reject%": ["Promise", "reject"],
|
|
521
|
+
"%Promise_resolve%": ["Promise", "resolve"],
|
|
522
|
+
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
523
|
+
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
524
|
+
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
525
|
+
"%SetPrototype%": ["Set", "prototype"],
|
|
526
|
+
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
527
|
+
"%StringPrototype%": ["String", "prototype"],
|
|
528
|
+
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
529
|
+
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
530
|
+
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
531
|
+
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
532
|
+
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
533
|
+
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
534
|
+
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
535
|
+
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
536
|
+
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
537
|
+
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
538
|
+
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
539
|
+
}, je = kt, De = Nn, Vn = je.call(Function.call, Array.prototype.concat), $n = je.call(Function.apply, Array.prototype.splice), Gt = je.call(Function.call, String.prototype.replace), Fe = je.call(Function.call, String.prototype.slice), Kn = je.call(Function.call, RegExp.prototype.exec), Jn = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Xn = /\\(\\)?/g, Yn = function(e) {
|
|
540
|
+
var t = Fe(e, 0, 1), r = Fe(e, -1);
|
|
541
|
+
if (t === "%" && r !== "%")
|
|
542
|
+
throw new Ae("invalid intrinsic syntax, expected closing `%`");
|
|
543
|
+
if (r === "%" && t !== "%")
|
|
544
|
+
throw new Ae("invalid intrinsic syntax, expected opening `%`");
|
|
545
|
+
var o = [];
|
|
546
|
+
return Gt(e, Jn, function(a, p, f, h) {
|
|
547
|
+
o[o.length] = f ? Gt(h, Xn, "$1") : p || a;
|
|
548
|
+
}), o;
|
|
549
|
+
}, Zn = function(e, t) {
|
|
550
|
+
var r = e, o;
|
|
551
|
+
if (De(Ht, r) && (o = Ht[r], r = "%" + o[0] + "%"), De(he, r)) {
|
|
552
|
+
var a = he[r];
|
|
553
|
+
if (a === we && (a = zn(r)), typeof a > "u" && !t)
|
|
554
|
+
throw new Ee("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
555
|
+
return {
|
|
556
|
+
alias: o,
|
|
557
|
+
name: r,
|
|
558
|
+
value: a
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
throw new Ae("intrinsic " + e + " does not exist!");
|
|
562
|
+
}, Pe = function(e, t) {
|
|
563
|
+
if (typeof e != "string" || e.length === 0)
|
|
564
|
+
throw new Ee("intrinsic name must be a non-empty string");
|
|
565
|
+
if (arguments.length > 1 && typeof t != "boolean")
|
|
566
|
+
throw new Ee('"allowMissing" argument must be a boolean');
|
|
567
|
+
if (Kn(/^%?[^%]*%?$/, e) === null)
|
|
568
|
+
throw new Ae("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
569
|
+
var r = Yn(e), o = r.length > 0 ? r[0] : "", a = Zn("%" + o + "%", t), p = a.name, f = a.value, h = !1, d = a.alias;
|
|
570
|
+
d && (o = d[0], $n(r, Vn([0, 1], d)));
|
|
571
|
+
for (var R = 1, L = !0; R < r.length; R += 1) {
|
|
572
|
+
var S = r[R], M = Fe(S, 0, 1), W = Fe(S, -1);
|
|
573
|
+
if ((M === '"' || M === "'" || M === "`" || W === '"' || W === "'" || W === "`") && M !== W)
|
|
574
|
+
throw new Ae("property names with quotes must have matching quotes");
|
|
575
|
+
if ((S === "constructor" || !L) && (h = !0), o += "." + S, p = "%" + o + "%", De(he, p))
|
|
576
|
+
f = he[p];
|
|
577
|
+
else if (f != null) {
|
|
578
|
+
if (!(S in f)) {
|
|
579
|
+
if (!t)
|
|
580
|
+
throw new Ee("base intrinsic for " + e + " exists, but the property is not available.");
|
|
581
|
+
return;
|
|
582
|
+
}
|
|
583
|
+
if (pe && R + 1 >= r.length) {
|
|
584
|
+
var x = pe(f, S);
|
|
585
|
+
L = !!x, L && "get" in x && !("originalValue" in x.get) ? f = x.get : f = f[S];
|
|
586
|
+
} else
|
|
587
|
+
L = De(f, S), f = f[S];
|
|
588
|
+
L && !h && (he[p] = f);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
return f;
|
|
592
|
+
}, Mr = { exports: {} }, tt, zt;
|
|
593
|
+
function xt() {
|
|
594
|
+
if (zt)
|
|
595
|
+
return tt;
|
|
596
|
+
zt = 1;
|
|
597
|
+
var e = Pe, t = e("%Object.defineProperty%", !0) || !1;
|
|
598
|
+
if (t)
|
|
599
|
+
try {
|
|
600
|
+
t({}, "a", { value: 1 });
|
|
601
|
+
} catch {
|
|
602
|
+
t = !1;
|
|
603
|
+
}
|
|
604
|
+
return tt = t, tt;
|
|
605
|
+
}
|
|
606
|
+
var Qn = Pe, Le = Qn("%Object.getOwnPropertyDescriptor%", !0);
|
|
607
|
+
if (Le)
|
|
608
|
+
try {
|
|
609
|
+
Le([], "length");
|
|
610
|
+
} catch {
|
|
611
|
+
Le = null;
|
|
612
|
+
}
|
|
613
|
+
var Mt = Le, Vt = xt(), eo = kr, ve = ze, $t = Mt, to = function(e, t, r) {
|
|
614
|
+
if (!e || typeof e != "object" && typeof e != "function")
|
|
615
|
+
throw new ve("`obj` must be an object or a function`");
|
|
616
|
+
if (typeof t != "string" && typeof t != "symbol")
|
|
617
|
+
throw new ve("`property` must be a string or a symbol`");
|
|
618
|
+
if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null)
|
|
619
|
+
throw new ve("`nonEnumerable`, if provided, must be a boolean or null");
|
|
620
|
+
if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null)
|
|
621
|
+
throw new ve("`nonWritable`, if provided, must be a boolean or null");
|
|
622
|
+
if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null)
|
|
623
|
+
throw new ve("`nonConfigurable`, if provided, must be a boolean or null");
|
|
624
|
+
if (arguments.length > 6 && typeof arguments[6] != "boolean")
|
|
625
|
+
throw new ve("`loose`, if provided, must be a boolean");
|
|
626
|
+
var o = arguments.length > 3 ? arguments[3] : null, a = arguments.length > 4 ? arguments[4] : null, p = arguments.length > 5 ? arguments[5] : null, f = arguments.length > 6 ? arguments[6] : !1, h = !!$t && $t(e, t);
|
|
627
|
+
if (Vt)
|
|
628
|
+
Vt(e, t, {
|
|
629
|
+
configurable: p === null && h ? h.configurable : !p,
|
|
630
|
+
enumerable: o === null && h ? h.enumerable : !o,
|
|
631
|
+
value: r,
|
|
632
|
+
writable: a === null && h ? h.writable : !a
|
|
633
|
+
});
|
|
634
|
+
else if (f || !o && !a && !p)
|
|
635
|
+
e[t] = r;
|
|
636
|
+
else
|
|
637
|
+
throw new eo("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
638
|
+
}, mt = xt(), Lr = function() {
|
|
639
|
+
return !!mt;
|
|
640
|
+
};
|
|
641
|
+
Lr.hasArrayLengthDefineBug = function() {
|
|
642
|
+
if (!mt)
|
|
643
|
+
return null;
|
|
644
|
+
try {
|
|
645
|
+
return mt([], "length", { value: 1 }).length !== 1;
|
|
646
|
+
} catch {
|
|
647
|
+
return !0;
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
var ro = Lr, no = Pe, Kt = to, oo = ro(), Jt = Mt, Xt = ze, io = no("%Math.floor%"), ao = function(e, t) {
|
|
651
|
+
if (typeof e != "function")
|
|
652
|
+
throw new Xt("`fn` is not a function");
|
|
653
|
+
if (typeof t != "number" || t < 0 || t > 4294967295 || io(t) !== t)
|
|
654
|
+
throw new Xt("`length` must be a positive 32-bit integer");
|
|
655
|
+
var r = arguments.length > 2 && !!arguments[2], o = !0, a = !0;
|
|
656
|
+
if ("length" in e && Jt) {
|
|
657
|
+
var p = Jt(e, "length");
|
|
658
|
+
p && !p.configurable && (o = !1), p && !p.writable && (a = !1);
|
|
659
|
+
}
|
|
660
|
+
return (o || a || !r) && (oo ? Kt(
|
|
661
|
+
/** @type {Parameters<define>[0]} */
|
|
662
|
+
e,
|
|
663
|
+
"length",
|
|
664
|
+
t,
|
|
665
|
+
!0,
|
|
666
|
+
!0
|
|
667
|
+
) : Kt(
|
|
668
|
+
/** @type {Parameters<define>[0]} */
|
|
669
|
+
e,
|
|
670
|
+
"length",
|
|
671
|
+
t
|
|
672
|
+
)), e;
|
|
673
|
+
};
|
|
674
|
+
(function(e) {
|
|
675
|
+
var t = kt, r = Pe, o = ao, a = ze, p = r("%Function.prototype.apply%"), f = r("%Function.prototype.call%"), h = r("%Reflect.apply%", !0) || t.call(f, p), d = xt(), R = r("%Math.max%");
|
|
676
|
+
e.exports = function(S) {
|
|
677
|
+
if (typeof S != "function")
|
|
678
|
+
throw new a("a function is required");
|
|
679
|
+
var M = h(t, f, arguments);
|
|
680
|
+
return o(
|
|
681
|
+
M,
|
|
682
|
+
1 + R(0, S.length - (arguments.length - 1)),
|
|
683
|
+
!0
|
|
684
|
+
);
|
|
685
|
+
};
|
|
686
|
+
var L = function() {
|
|
687
|
+
return h(t, p, arguments);
|
|
688
|
+
};
|
|
689
|
+
d ? d(e.exports, "apply", { value: L }) : e.exports.apply = L;
|
|
690
|
+
})(Mr);
|
|
691
|
+
var Cr = Mr.exports, Nr = Pe, Ir = Cr, so = Ir(Nr("String.prototype.indexOf")), Ur = function(e, t) {
|
|
692
|
+
var r = Nr(e, !!t);
|
|
693
|
+
return typeof r == "function" && so(e, ".prototype.") > -1 ? Ir(r) : r;
|
|
694
|
+
}, uo = Pt(), lo = Ur, vt = lo("Object.prototype.toString"), Ve = function(e) {
|
|
695
|
+
return uo && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : vt(e) === "[object Arguments]";
|
|
696
|
+
}, Dr = function(e) {
|
|
697
|
+
return Ve(e) ? !0 : e !== null && typeof e == "object" && typeof e.length == "number" && e.length >= 0 && vt(e) !== "[object Array]" && vt(e.callee) === "[object Function]";
|
|
698
|
+
}, co = function() {
|
|
699
|
+
return Ve(arguments);
|
|
700
|
+
}();
|
|
701
|
+
Ve.isLegacyArguments = Dr;
|
|
702
|
+
var fo = co ? Ve : Dr, po = Object.prototype.toString, ho = Function.prototype.toString, yo = /^\s*(?:function)?\*/, Fr = Pt(), rt = Object.getPrototypeOf, bo = function() {
|
|
703
|
+
if (!Fr)
|
|
704
|
+
return !1;
|
|
705
|
+
try {
|
|
706
|
+
return Function("return function*() {}")();
|
|
707
|
+
} catch {
|
|
708
|
+
}
|
|
709
|
+
}, nt, go = function(e) {
|
|
710
|
+
if (typeof e != "function")
|
|
711
|
+
return !1;
|
|
712
|
+
if (yo.test(ho.call(e)))
|
|
713
|
+
return !0;
|
|
714
|
+
if (!Fr) {
|
|
715
|
+
var t = po.call(e);
|
|
716
|
+
return t === "[object GeneratorFunction]";
|
|
717
|
+
}
|
|
718
|
+
if (!rt)
|
|
719
|
+
return !1;
|
|
720
|
+
if (typeof nt > "u") {
|
|
721
|
+
var r = bo();
|
|
722
|
+
nt = r ? rt(r) : !1;
|
|
723
|
+
}
|
|
724
|
+
return rt(e) === nt;
|
|
725
|
+
}, Br = Function.prototype.toString, _e = typeof Reflect == "object" && Reflect !== null && Reflect.apply, wt, Ce;
|
|
726
|
+
if (typeof _e == "function" && typeof Object.defineProperty == "function")
|
|
727
|
+
try {
|
|
728
|
+
wt = Object.defineProperty({}, "length", {
|
|
729
|
+
get: function() {
|
|
730
|
+
throw Ce;
|
|
731
|
+
}
|
|
732
|
+
}), Ce = {}, _e(function() {
|
|
733
|
+
throw 42;
|
|
734
|
+
}, null, wt);
|
|
735
|
+
} catch (e) {
|
|
736
|
+
e !== Ce && (_e = null);
|
|
737
|
+
}
|
|
738
|
+
else
|
|
739
|
+
_e = null;
|
|
740
|
+
var mo = /^\s*class\b/, _t = function(e) {
|
|
741
|
+
try {
|
|
742
|
+
var t = Br.call(e);
|
|
743
|
+
return mo.test(t);
|
|
744
|
+
} catch {
|
|
745
|
+
return !1;
|
|
746
|
+
}
|
|
747
|
+
}, ot = function(e) {
|
|
748
|
+
try {
|
|
749
|
+
return _t(e) ? !1 : (Br.call(e), !0);
|
|
750
|
+
} catch {
|
|
751
|
+
return !1;
|
|
752
|
+
}
|
|
753
|
+
}, Ne = Object.prototype.toString, vo = "[object Object]", wo = "[object Function]", _o = "[object GeneratorFunction]", So = "[object HTMLAllCollection]", Eo = "[object HTML document.all class]", Ao = "[object HTMLCollection]", Ro = typeof Symbol == "function" && !!Symbol.toStringTag, Oo = !(0 in [,]), St = function() {
|
|
754
|
+
return !1;
|
|
755
|
+
};
|
|
756
|
+
if (typeof document == "object") {
|
|
757
|
+
var To = document.all;
|
|
758
|
+
Ne.call(To) === Ne.call(document.all) && (St = function(e) {
|
|
759
|
+
if ((Oo || !e) && (typeof e > "u" || typeof e == "object"))
|
|
760
|
+
try {
|
|
761
|
+
var t = Ne.call(e);
|
|
762
|
+
return (t === So || t === Eo || t === Ao || t === vo) && e("") == null;
|
|
763
|
+
} catch {
|
|
764
|
+
}
|
|
765
|
+
return !1;
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
var jo = _e ? function(e) {
|
|
769
|
+
if (St(e))
|
|
770
|
+
return !0;
|
|
771
|
+
if (!e || typeof e != "function" && typeof e != "object")
|
|
772
|
+
return !1;
|
|
773
|
+
try {
|
|
774
|
+
_e(e, null, wt);
|
|
775
|
+
} catch (t) {
|
|
776
|
+
if (t !== Ce)
|
|
777
|
+
return !1;
|
|
778
|
+
}
|
|
779
|
+
return !_t(e) && ot(e);
|
|
780
|
+
} : function(e) {
|
|
781
|
+
if (St(e))
|
|
782
|
+
return !0;
|
|
783
|
+
if (!e || typeof e != "function" && typeof e != "object")
|
|
784
|
+
return !1;
|
|
785
|
+
if (Ro)
|
|
786
|
+
return ot(e);
|
|
787
|
+
if (_t(e))
|
|
788
|
+
return !1;
|
|
789
|
+
var t = Ne.call(e);
|
|
790
|
+
return t !== wo && t !== _o && !/^\[object HTML/.test(t) ? !1 : ot(e);
|
|
791
|
+
}, Po = jo, ko = Object.prototype.toString, Wr = Object.prototype.hasOwnProperty, xo = function(e, t, r) {
|
|
792
|
+
for (var o = 0, a = e.length; o < a; o++)
|
|
793
|
+
Wr.call(e, o) && (r == null ? t(e[o], o, e) : t.call(r, e[o], o, e));
|
|
794
|
+
}, Mo = function(e, t, r) {
|
|
795
|
+
for (var o = 0, a = e.length; o < a; o++)
|
|
796
|
+
r == null ? t(e.charAt(o), o, e) : t.call(r, e.charAt(o), o, e);
|
|
797
|
+
}, Lo = function(e, t, r) {
|
|
798
|
+
for (var o in e)
|
|
799
|
+
Wr.call(e, o) && (r == null ? t(e[o], o, e) : t.call(r, e[o], o, e));
|
|
800
|
+
}, Co = function(e, t, r) {
|
|
801
|
+
if (!Po(t))
|
|
802
|
+
throw new TypeError("iterator must be a function");
|
|
803
|
+
var o;
|
|
804
|
+
arguments.length >= 3 && (o = r), ko.call(e) === "[object Array]" ? xo(e, t, o) : typeof e == "string" ? Mo(e, t, o) : Lo(e, t, o);
|
|
805
|
+
}, No = Co, Io = [
|
|
806
|
+
"Float32Array",
|
|
807
|
+
"Float64Array",
|
|
808
|
+
"Int8Array",
|
|
809
|
+
"Int16Array",
|
|
810
|
+
"Int32Array",
|
|
811
|
+
"Uint8Array",
|
|
812
|
+
"Uint8ClampedArray",
|
|
813
|
+
"Uint16Array",
|
|
814
|
+
"Uint32Array",
|
|
815
|
+
"BigInt64Array",
|
|
816
|
+
"BigUint64Array"
|
|
817
|
+
], it = Io, Uo = typeof globalThis > "u" ? V : globalThis, Do = function() {
|
|
818
|
+
for (var e = [], t = 0; t < it.length; t++)
|
|
819
|
+
typeof Uo[it[t]] == "function" && (e[e.length] = it[t]);
|
|
820
|
+
return e;
|
|
821
|
+
}, Be = No, Fo = Do, Yt = Cr, Lt = Ur, Ie = Mt, Bo = Lt("Object.prototype.toString"), qr = Pt(), Zt = typeof globalThis > "u" ? V : globalThis, Et = Fo(), Ct = Lt("String.prototype.slice"), at = Object.getPrototypeOf, Wo = Lt("Array.prototype.indexOf", !0) || function(e, t) {
|
|
822
|
+
for (var r = 0; r < e.length; r += 1)
|
|
823
|
+
if (e[r] === t)
|
|
824
|
+
return r;
|
|
825
|
+
return -1;
|
|
826
|
+
}, We = { __proto__: null };
|
|
827
|
+
qr && Ie && at ? Be(Et, function(e) {
|
|
828
|
+
var t = new Zt[e]();
|
|
829
|
+
if (Symbol.toStringTag in t) {
|
|
830
|
+
var r = at(t), o = Ie(r, Symbol.toStringTag);
|
|
831
|
+
if (!o) {
|
|
832
|
+
var a = at(r);
|
|
833
|
+
o = Ie(a, Symbol.toStringTag);
|
|
834
|
+
}
|
|
835
|
+
We["$" + e] = Yt(o.get);
|
|
836
|
+
}
|
|
837
|
+
}) : Be(Et, function(e) {
|
|
838
|
+
var t = new Zt[e](), r = t.slice || t.set;
|
|
839
|
+
r && (We["$" + e] = Yt(r));
|
|
840
|
+
});
|
|
841
|
+
var qo = function(e) {
|
|
842
|
+
var t = !1;
|
|
843
|
+
return Be(
|
|
844
|
+
// eslint-disable-next-line no-extra-parens
|
|
845
|
+
/** @type {Record<`\$${TypedArrayName}`, Getter>} */
|
|
846
|
+
/** @type {any} */
|
|
847
|
+
We,
|
|
848
|
+
/** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
849
|
+
function(r, o) {
|
|
850
|
+
if (!t)
|
|
851
|
+
try {
|
|
852
|
+
"$" + r(e) === o && (t = Ct(o, 1));
|
|
853
|
+
} catch {
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
), t;
|
|
857
|
+
}, Ho = function(e) {
|
|
858
|
+
var t = !1;
|
|
859
|
+
return Be(
|
|
860
|
+
// eslint-disable-next-line no-extra-parens
|
|
861
|
+
/** @type {Record<`\$${TypedArrayName}`, Getter>} */
|
|
862
|
+
/** @type {any} */
|
|
863
|
+
We,
|
|
864
|
+
/** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */
|
|
865
|
+
function(r, o) {
|
|
866
|
+
if (!t)
|
|
867
|
+
try {
|
|
868
|
+
r(e), t = Ct(o, 1);
|
|
869
|
+
} catch {
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
), t;
|
|
873
|
+
}, Hr = function(e) {
|
|
874
|
+
if (!e || typeof e != "object")
|
|
875
|
+
return !1;
|
|
876
|
+
if (!qr) {
|
|
877
|
+
var t = Ct(Bo(e), 8, -1);
|
|
878
|
+
return Wo(Et, t) > -1 ? t : t !== "Object" ? !1 : Ho(e);
|
|
879
|
+
}
|
|
880
|
+
return Ie ? qo(e) : null;
|
|
881
|
+
}, Go = Hr, zo = function(e) {
|
|
882
|
+
return !!Go(e);
|
|
883
|
+
};
|
|
884
|
+
(function(e) {
|
|
885
|
+
var t = fo, r = go, o = Hr, a = zo;
|
|
886
|
+
function p(g) {
|
|
887
|
+
return g.call.bind(g);
|
|
888
|
+
}
|
|
889
|
+
var f = typeof BigInt < "u", h = typeof Symbol < "u", d = p(Object.prototype.toString), R = p(Number.prototype.valueOf), L = p(String.prototype.valueOf), S = p(Boolean.prototype.valueOf);
|
|
890
|
+
if (f)
|
|
891
|
+
var M = p(BigInt.prototype.valueOf);
|
|
892
|
+
if (h)
|
|
893
|
+
var W = p(Symbol.prototype.valueOf);
|
|
894
|
+
function x(g, ke) {
|
|
895
|
+
if (typeof g != "object")
|
|
896
|
+
return !1;
|
|
897
|
+
try {
|
|
898
|
+
return ke(g), !0;
|
|
899
|
+
} catch {
|
|
900
|
+
return !1;
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
e.isArgumentsObject = t, e.isGeneratorFunction = r, e.isTypedArray = a;
|
|
904
|
+
function A(g) {
|
|
905
|
+
return typeof Promise < "u" && g instanceof Promise || g !== null && typeof g == "object" && typeof g.then == "function" && typeof g.catch == "function";
|
|
906
|
+
}
|
|
907
|
+
e.isPromise = A;
|
|
908
|
+
function P(g) {
|
|
909
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(g) : a(g) || y(g);
|
|
910
|
+
}
|
|
911
|
+
e.isArrayBufferView = P;
|
|
912
|
+
function u(g) {
|
|
913
|
+
return o(g) === "Uint8Array";
|
|
914
|
+
}
|
|
915
|
+
e.isUint8Array = u;
|
|
916
|
+
function w(g) {
|
|
917
|
+
return o(g) === "Uint8ClampedArray";
|
|
918
|
+
}
|
|
919
|
+
e.isUint8ClampedArray = w;
|
|
920
|
+
function v(g) {
|
|
921
|
+
return o(g) === "Uint16Array";
|
|
922
|
+
}
|
|
923
|
+
e.isUint16Array = v;
|
|
924
|
+
function O(g) {
|
|
925
|
+
return o(g) === "Uint32Array";
|
|
926
|
+
}
|
|
927
|
+
e.isUint32Array = O;
|
|
928
|
+
function j(g) {
|
|
929
|
+
return o(g) === "Int8Array";
|
|
930
|
+
}
|
|
931
|
+
e.isInt8Array = j;
|
|
932
|
+
function F(g) {
|
|
933
|
+
return o(g) === "Int16Array";
|
|
934
|
+
}
|
|
935
|
+
e.isInt16Array = F;
|
|
936
|
+
function z(g) {
|
|
937
|
+
return o(g) === "Int32Array";
|
|
938
|
+
}
|
|
939
|
+
e.isInt32Array = z;
|
|
940
|
+
function I(g) {
|
|
941
|
+
return o(g) === "Float32Array";
|
|
942
|
+
}
|
|
943
|
+
e.isFloat32Array = I;
|
|
944
|
+
function N(g) {
|
|
945
|
+
return o(g) === "Float64Array";
|
|
946
|
+
}
|
|
947
|
+
e.isFloat64Array = N;
|
|
948
|
+
function ee(g) {
|
|
949
|
+
return o(g) === "BigInt64Array";
|
|
950
|
+
}
|
|
951
|
+
e.isBigInt64Array = ee;
|
|
952
|
+
function X(g) {
|
|
953
|
+
return o(g) === "BigUint64Array";
|
|
954
|
+
}
|
|
955
|
+
e.isBigUint64Array = X;
|
|
956
|
+
function Y(g) {
|
|
957
|
+
return d(g) === "[object Map]";
|
|
958
|
+
}
|
|
959
|
+
Y.working = typeof Map < "u" && Y(/* @__PURE__ */ new Map());
|
|
960
|
+
function oe(g) {
|
|
961
|
+
return typeof Map > "u" ? !1 : Y.working ? Y(g) : g instanceof Map;
|
|
962
|
+
}
|
|
963
|
+
e.isMap = oe;
|
|
964
|
+
function Z(g) {
|
|
965
|
+
return d(g) === "[object Set]";
|
|
966
|
+
}
|
|
967
|
+
Z.working = typeof Set < "u" && Z(/* @__PURE__ */ new Set());
|
|
968
|
+
function ie(g) {
|
|
969
|
+
return typeof Set > "u" ? !1 : Z.working ? Z(g) : g instanceof Set;
|
|
970
|
+
}
|
|
971
|
+
e.isSet = ie;
|
|
972
|
+
function ae(g) {
|
|
973
|
+
return d(g) === "[object WeakMap]";
|
|
974
|
+
}
|
|
975
|
+
ae.working = typeof WeakMap < "u" && ae(/* @__PURE__ */ new WeakMap());
|
|
976
|
+
function te(g) {
|
|
977
|
+
return typeof WeakMap > "u" ? !1 : ae.working ? ae(g) : g instanceof WeakMap;
|
|
978
|
+
}
|
|
979
|
+
e.isWeakMap = te;
|
|
980
|
+
function re(g) {
|
|
981
|
+
return d(g) === "[object WeakSet]";
|
|
982
|
+
}
|
|
983
|
+
re.working = typeof WeakSet < "u" && re(/* @__PURE__ */ new WeakSet());
|
|
984
|
+
function K(g) {
|
|
985
|
+
return re(g);
|
|
986
|
+
}
|
|
987
|
+
e.isWeakSet = K;
|
|
988
|
+
function ne(g) {
|
|
989
|
+
return d(g) === "[object ArrayBuffer]";
|
|
990
|
+
}
|
|
991
|
+
ne.working = typeof ArrayBuffer < "u" && ne(new ArrayBuffer());
|
|
992
|
+
function ue(g) {
|
|
993
|
+
return typeof ArrayBuffer > "u" ? !1 : ne.working ? ne(g) : g instanceof ArrayBuffer;
|
|
994
|
+
}
|
|
995
|
+
e.isArrayBuffer = ue;
|
|
996
|
+
function c(g) {
|
|
997
|
+
return d(g) === "[object DataView]";
|
|
998
|
+
}
|
|
999
|
+
c.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && c(new DataView(new ArrayBuffer(1), 0, 1));
|
|
1000
|
+
function y(g) {
|
|
1001
|
+
return typeof DataView > "u" ? !1 : c.working ? c(g) : g instanceof DataView;
|
|
1002
|
+
}
|
|
1003
|
+
e.isDataView = y;
|
|
1004
|
+
var _ = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
|
|
1005
|
+
function C(g) {
|
|
1006
|
+
return d(g) === "[object SharedArrayBuffer]";
|
|
1007
|
+
}
|
|
1008
|
+
function s(g) {
|
|
1009
|
+
return typeof _ > "u" ? !1 : (typeof C.working > "u" && (C.working = C(new _())), C.working ? C(g) : g instanceof _);
|
|
1010
|
+
}
|
|
1011
|
+
e.isSharedArrayBuffer = s;
|
|
1012
|
+
function l(g) {
|
|
1013
|
+
return d(g) === "[object AsyncFunction]";
|
|
1014
|
+
}
|
|
1015
|
+
e.isAsyncFunction = l;
|
|
1016
|
+
function b(g) {
|
|
1017
|
+
return d(g) === "[object Map Iterator]";
|
|
1018
|
+
}
|
|
1019
|
+
e.isMapIterator = b;
|
|
1020
|
+
function E(g) {
|
|
1021
|
+
return d(g) === "[object Set Iterator]";
|
|
1022
|
+
}
|
|
1023
|
+
e.isSetIterator = E;
|
|
1024
|
+
function k(g) {
|
|
1025
|
+
return d(g) === "[object Generator]";
|
|
1026
|
+
}
|
|
1027
|
+
e.isGeneratorObject = k;
|
|
1028
|
+
function n(g) {
|
|
1029
|
+
return d(g) === "[object WebAssembly.Module]";
|
|
1030
|
+
}
|
|
1031
|
+
e.isWebAssemblyCompiledModule = n;
|
|
1032
|
+
function i(g) {
|
|
1033
|
+
return x(g, R);
|
|
1034
|
+
}
|
|
1035
|
+
e.isNumberObject = i;
|
|
1036
|
+
function m(g) {
|
|
1037
|
+
return x(g, L);
|
|
1038
|
+
}
|
|
1039
|
+
e.isStringObject = m;
|
|
1040
|
+
function T(g) {
|
|
1041
|
+
return x(g, S);
|
|
1042
|
+
}
|
|
1043
|
+
e.isBooleanObject = T;
|
|
1044
|
+
function G(g) {
|
|
1045
|
+
return f && x(g, M);
|
|
1046
|
+
}
|
|
1047
|
+
e.isBigIntObject = G;
|
|
1048
|
+
function D(g) {
|
|
1049
|
+
return h && x(g, W);
|
|
1050
|
+
}
|
|
1051
|
+
e.isSymbolObject = D;
|
|
1052
|
+
function q(g) {
|
|
1053
|
+
return i(g) || m(g) || T(g) || G(g) || D(g);
|
|
1054
|
+
}
|
|
1055
|
+
e.isBoxedPrimitive = q;
|
|
1056
|
+
function ye(g) {
|
|
1057
|
+
return typeof Uint8Array < "u" && (ue(g) || s(g));
|
|
1058
|
+
}
|
|
1059
|
+
e.isAnyArrayBuffer = ye, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(g) {
|
|
1060
|
+
Object.defineProperty(e, g, {
|
|
1061
|
+
enumerable: !1,
|
|
1062
|
+
value: function() {
|
|
1063
|
+
throw new Error(g + " is not supported in userland");
|
|
1064
|
+
}
|
|
1065
|
+
});
|
|
1066
|
+
});
|
|
1067
|
+
})(jr);
|
|
1068
|
+
var Vo = function(e) {
|
|
1069
|
+
return e && typeof e == "object" && typeof e.copy == "function" && typeof e.fill == "function" && typeof e.readUInt8 == "function";
|
|
1070
|
+
};
|
|
1071
|
+
(function(e) {
|
|
1072
|
+
var t = Object.getOwnPropertyDescriptors || function(c) {
|
|
1073
|
+
for (var y = Object.keys(c), _ = {}, C = 0; C < y.length; C++)
|
|
1074
|
+
_[y[C]] = Object.getOwnPropertyDescriptor(c, y[C]);
|
|
1075
|
+
return _;
|
|
1076
|
+
}, r = /%[sdj%]/g;
|
|
1077
|
+
e.format = function(c) {
|
|
1078
|
+
if (!j(c)) {
|
|
1079
|
+
for (var y = [], _ = 0; _ < arguments.length; _++)
|
|
1080
|
+
y.push(f(arguments[_]));
|
|
1081
|
+
return y.join(" ");
|
|
1082
|
+
}
|
|
1083
|
+
for (var _ = 1, C = arguments, s = C.length, l = String(c).replace(r, function(k) {
|
|
1084
|
+
if (k === "%%")
|
|
1085
|
+
return "%";
|
|
1086
|
+
if (_ >= s)
|
|
1087
|
+
return k;
|
|
1088
|
+
switch (k) {
|
|
1089
|
+
case "%s":
|
|
1090
|
+
return String(C[_++]);
|
|
1091
|
+
case "%d":
|
|
1092
|
+
return Number(C[_++]);
|
|
1093
|
+
case "%j":
|
|
1094
|
+
try {
|
|
1095
|
+
return JSON.stringify(C[_++]);
|
|
1096
|
+
} catch {
|
|
1097
|
+
return "[Circular]";
|
|
1098
|
+
}
|
|
1099
|
+
default:
|
|
1100
|
+
return k;
|
|
1101
|
+
}
|
|
1102
|
+
}), b = C[_]; _ < s; b = C[++_])
|
|
1103
|
+
w(b) || !N(b) ? l += " " + b : l += " " + f(b);
|
|
1104
|
+
return l;
|
|
1105
|
+
}, e.deprecate = function(c, y) {
|
|
1106
|
+
if (typeof U < "u" && U.noDeprecation === !0)
|
|
1107
|
+
return c;
|
|
1108
|
+
if (typeof U > "u")
|
|
1109
|
+
return function() {
|
|
1110
|
+
return e.deprecate(c, y).apply(this, arguments);
|
|
1111
|
+
};
|
|
1112
|
+
var _ = !1;
|
|
1113
|
+
function C() {
|
|
1114
|
+
if (!_) {
|
|
1115
|
+
if (U.throwDeprecation)
|
|
1116
|
+
throw new Error(y);
|
|
1117
|
+
U.traceDeprecation ? console.trace(y) : console.error(y), _ = !0;
|
|
1118
|
+
}
|
|
1119
|
+
return c.apply(this, arguments);
|
|
1120
|
+
}
|
|
1121
|
+
return C;
|
|
1122
|
+
};
|
|
1123
|
+
var o = {}, a = /^$/;
|
|
1124
|
+
if (U.env.NODE_DEBUG) {
|
|
1125
|
+
var p = U.env.NODE_DEBUG;
|
|
1126
|
+
p = p.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), a = new RegExp("^" + p + "$", "i");
|
|
1127
|
+
}
|
|
1128
|
+
e.debuglog = function(c) {
|
|
1129
|
+
if (c = c.toUpperCase(), !o[c])
|
|
1130
|
+
if (a.test(c)) {
|
|
1131
|
+
var y = U.pid;
|
|
1132
|
+
o[c] = function() {
|
|
1133
|
+
var _ = e.format.apply(e, arguments);
|
|
1134
|
+
console.error("%s %d: %s", c, y, _);
|
|
1135
|
+
};
|
|
1136
|
+
} else
|
|
1137
|
+
o[c] = function() {
|
|
1138
|
+
};
|
|
1139
|
+
return o[c];
|
|
1140
|
+
};
|
|
1141
|
+
function f(c, y) {
|
|
1142
|
+
var _ = {
|
|
1143
|
+
seen: [],
|
|
1144
|
+
stylize: d
|
|
1145
|
+
};
|
|
1146
|
+
return arguments.length >= 3 && (_.depth = arguments[2]), arguments.length >= 4 && (_.colors = arguments[3]), u(y) ? _.showHidden = y : y && e._extend(_, y), z(_.showHidden) && (_.showHidden = !1), z(_.depth) && (_.depth = 2), z(_.colors) && (_.colors = !1), z(_.customInspect) && (_.customInspect = !0), _.colors && (_.stylize = h), L(_, c, _.depth);
|
|
1147
|
+
}
|
|
1148
|
+
e.inspect = f, f.colors = {
|
|
1149
|
+
bold: [1, 22],
|
|
1150
|
+
italic: [3, 23],
|
|
1151
|
+
underline: [4, 24],
|
|
1152
|
+
inverse: [7, 27],
|
|
1153
|
+
white: [37, 39],
|
|
1154
|
+
grey: [90, 39],
|
|
1155
|
+
black: [30, 39],
|
|
1156
|
+
blue: [34, 39],
|
|
1157
|
+
cyan: [36, 39],
|
|
1158
|
+
green: [32, 39],
|
|
1159
|
+
magenta: [35, 39],
|
|
1160
|
+
red: [31, 39],
|
|
1161
|
+
yellow: [33, 39]
|
|
1162
|
+
}, f.styles = {
|
|
1163
|
+
special: "cyan",
|
|
1164
|
+
number: "yellow",
|
|
1165
|
+
boolean: "yellow",
|
|
1166
|
+
undefined: "grey",
|
|
1167
|
+
null: "bold",
|
|
1168
|
+
string: "green",
|
|
1169
|
+
date: "magenta",
|
|
1170
|
+
// "name": intentionally not styling
|
|
1171
|
+
regexp: "red"
|
|
1172
|
+
};
|
|
1173
|
+
function h(c, y) {
|
|
1174
|
+
var _ = f.styles[y];
|
|
1175
|
+
return _ ? "\x1B[" + f.colors[_][0] + "m" + c + "\x1B[" + f.colors[_][1] + "m" : c;
|
|
1176
|
+
}
|
|
1177
|
+
function d(c, y) {
|
|
1178
|
+
return c;
|
|
1179
|
+
}
|
|
1180
|
+
function R(c) {
|
|
1181
|
+
var y = {};
|
|
1182
|
+
return c.forEach(function(_, C) {
|
|
1183
|
+
y[_] = !0;
|
|
1184
|
+
}), y;
|
|
1185
|
+
}
|
|
1186
|
+
function L(c, y, _) {
|
|
1187
|
+
if (c.customInspect && y && Y(y.inspect) && // Filter out the util module, it's inspect function is special
|
|
1188
|
+
y.inspect !== e.inspect && // Also filter out any prototype objects using the circular check.
|
|
1189
|
+
!(y.constructor && y.constructor.prototype === y)) {
|
|
1190
|
+
var C = y.inspect(_, c);
|
|
1191
|
+
return j(C) || (C = L(c, C, _)), C;
|
|
1192
|
+
}
|
|
1193
|
+
var s = S(c, y);
|
|
1194
|
+
if (s)
|
|
1195
|
+
return s;
|
|
1196
|
+
var l = Object.keys(y), b = R(l);
|
|
1197
|
+
if (c.showHidden && (l = Object.getOwnPropertyNames(y)), X(y) && (l.indexOf("message") >= 0 || l.indexOf("description") >= 0))
|
|
1198
|
+
return M(y);
|
|
1199
|
+
if (l.length === 0) {
|
|
1200
|
+
if (Y(y)) {
|
|
1201
|
+
var E = y.name ? ": " + y.name : "";
|
|
1202
|
+
return c.stylize("[Function" + E + "]", "special");
|
|
1203
|
+
}
|
|
1204
|
+
if (I(y))
|
|
1205
|
+
return c.stylize(RegExp.prototype.toString.call(y), "regexp");
|
|
1206
|
+
if (ee(y))
|
|
1207
|
+
return c.stylize(Date.prototype.toString.call(y), "date");
|
|
1208
|
+
if (X(y))
|
|
1209
|
+
return M(y);
|
|
1210
|
+
}
|
|
1211
|
+
var k = "", n = !1, i = ["{", "}"];
|
|
1212
|
+
if (P(y) && (n = !0, i = ["[", "]"]), Y(y)) {
|
|
1213
|
+
var m = y.name ? ": " + y.name : "";
|
|
1214
|
+
k = " [Function" + m + "]";
|
|
1215
|
+
}
|
|
1216
|
+
if (I(y) && (k = " " + RegExp.prototype.toString.call(y)), ee(y) && (k = " " + Date.prototype.toUTCString.call(y)), X(y) && (k = " " + M(y)), l.length === 0 && (!n || y.length == 0))
|
|
1217
|
+
return i[0] + k + i[1];
|
|
1218
|
+
if (_ < 0)
|
|
1219
|
+
return I(y) ? c.stylize(RegExp.prototype.toString.call(y), "regexp") : c.stylize("[Object]", "special");
|
|
1220
|
+
c.seen.push(y);
|
|
1221
|
+
var T;
|
|
1222
|
+
return n ? T = W(c, y, _, b, l) : T = l.map(function(G) {
|
|
1223
|
+
return x(c, y, _, b, G, n);
|
|
1224
|
+
}), c.seen.pop(), A(T, k, i);
|
|
1225
|
+
}
|
|
1226
|
+
function S(c, y) {
|
|
1227
|
+
if (z(y))
|
|
1228
|
+
return c.stylize("undefined", "undefined");
|
|
1229
|
+
if (j(y)) {
|
|
1230
|
+
var _ = "'" + JSON.stringify(y).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
1231
|
+
return c.stylize(_, "string");
|
|
1232
|
+
}
|
|
1233
|
+
if (O(y))
|
|
1234
|
+
return c.stylize("" + y, "number");
|
|
1235
|
+
if (u(y))
|
|
1236
|
+
return c.stylize("" + y, "boolean");
|
|
1237
|
+
if (w(y))
|
|
1238
|
+
return c.stylize("null", "null");
|
|
1239
|
+
}
|
|
1240
|
+
function M(c) {
|
|
1241
|
+
return "[" + Error.prototype.toString.call(c) + "]";
|
|
1242
|
+
}
|
|
1243
|
+
function W(c, y, _, C, s) {
|
|
1244
|
+
for (var l = [], b = 0, E = y.length; b < E; ++b)
|
|
1245
|
+
re(y, String(b)) ? l.push(x(
|
|
1246
|
+
c,
|
|
1247
|
+
y,
|
|
1248
|
+
_,
|
|
1249
|
+
C,
|
|
1250
|
+
String(b),
|
|
1251
|
+
!0
|
|
1252
|
+
)) : l.push("");
|
|
1253
|
+
return s.forEach(function(k) {
|
|
1254
|
+
k.match(/^\d+$/) || l.push(x(
|
|
1255
|
+
c,
|
|
1256
|
+
y,
|
|
1257
|
+
_,
|
|
1258
|
+
C,
|
|
1259
|
+
k,
|
|
1260
|
+
!0
|
|
1261
|
+
));
|
|
1262
|
+
}), l;
|
|
1263
|
+
}
|
|
1264
|
+
function x(c, y, _, C, s, l) {
|
|
1265
|
+
var b, E, k;
|
|
1266
|
+
if (k = Object.getOwnPropertyDescriptor(y, s) || { value: y[s] }, k.get ? k.set ? E = c.stylize("[Getter/Setter]", "special") : E = c.stylize("[Getter]", "special") : k.set && (E = c.stylize("[Setter]", "special")), re(C, s) || (b = "[" + s + "]"), E || (c.seen.indexOf(k.value) < 0 ? (w(_) ? E = L(c, k.value, null) : E = L(c, k.value, _ - 1), E.indexOf(`
|
|
1267
|
+
`) > -1 && (l ? E = E.split(`
|
|
1268
|
+
`).map(function(n) {
|
|
1269
|
+
return " " + n;
|
|
1270
|
+
}).join(`
|
|
1271
|
+
`).slice(2) : E = `
|
|
1272
|
+
` + E.split(`
|
|
1273
|
+
`).map(function(n) {
|
|
1274
|
+
return " " + n;
|
|
1275
|
+
}).join(`
|
|
1276
|
+
`))) : E = c.stylize("[Circular]", "special")), z(b)) {
|
|
1277
|
+
if (l && s.match(/^\d+$/))
|
|
1278
|
+
return E;
|
|
1279
|
+
b = JSON.stringify("" + s), b.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (b = b.slice(1, -1), b = c.stylize(b, "name")) : (b = b.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), b = c.stylize(b, "string"));
|
|
1280
|
+
}
|
|
1281
|
+
return b + ": " + E;
|
|
1282
|
+
}
|
|
1283
|
+
function A(c, y, _) {
|
|
1284
|
+
var C = c.reduce(function(s, l) {
|
|
1285
|
+
return l.indexOf(`
|
|
1286
|
+
`) >= 0, s + l.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
1287
|
+
}, 0);
|
|
1288
|
+
return C > 60 ? _[0] + (y === "" ? "" : y + `
|
|
1289
|
+
`) + " " + c.join(`,
|
|
1290
|
+
`) + " " + _[1] : _[0] + y + " " + c.join(", ") + " " + _[1];
|
|
1291
|
+
}
|
|
1292
|
+
e.types = jr;
|
|
1293
|
+
function P(c) {
|
|
1294
|
+
return Array.isArray(c);
|
|
1295
|
+
}
|
|
1296
|
+
e.isArray = P;
|
|
1297
|
+
function u(c) {
|
|
1298
|
+
return typeof c == "boolean";
|
|
1299
|
+
}
|
|
1300
|
+
e.isBoolean = u;
|
|
1301
|
+
function w(c) {
|
|
1302
|
+
return c === null;
|
|
1303
|
+
}
|
|
1304
|
+
e.isNull = w;
|
|
1305
|
+
function v(c) {
|
|
1306
|
+
return c == null;
|
|
1307
|
+
}
|
|
1308
|
+
e.isNullOrUndefined = v;
|
|
1309
|
+
function O(c) {
|
|
1310
|
+
return typeof c == "number";
|
|
1311
|
+
}
|
|
1312
|
+
e.isNumber = O;
|
|
1313
|
+
function j(c) {
|
|
1314
|
+
return typeof c == "string";
|
|
1315
|
+
}
|
|
1316
|
+
e.isString = j;
|
|
1317
|
+
function F(c) {
|
|
1318
|
+
return typeof c == "symbol";
|
|
1319
|
+
}
|
|
1320
|
+
e.isSymbol = F;
|
|
1321
|
+
function z(c) {
|
|
1322
|
+
return c === void 0;
|
|
1323
|
+
}
|
|
1324
|
+
e.isUndefined = z;
|
|
1325
|
+
function I(c) {
|
|
1326
|
+
return N(c) && Z(c) === "[object RegExp]";
|
|
1327
|
+
}
|
|
1328
|
+
e.isRegExp = I, e.types.isRegExp = I;
|
|
1329
|
+
function N(c) {
|
|
1330
|
+
return typeof c == "object" && c !== null;
|
|
1331
|
+
}
|
|
1332
|
+
e.isObject = N;
|
|
1333
|
+
function ee(c) {
|
|
1334
|
+
return N(c) && Z(c) === "[object Date]";
|
|
1335
|
+
}
|
|
1336
|
+
e.isDate = ee, e.types.isDate = ee;
|
|
1337
|
+
function X(c) {
|
|
1338
|
+
return N(c) && (Z(c) === "[object Error]" || c instanceof Error);
|
|
1339
|
+
}
|
|
1340
|
+
e.isError = X, e.types.isNativeError = X;
|
|
1341
|
+
function Y(c) {
|
|
1342
|
+
return typeof c == "function";
|
|
1343
|
+
}
|
|
1344
|
+
e.isFunction = Y;
|
|
1345
|
+
function oe(c) {
|
|
1346
|
+
return c === null || typeof c == "boolean" || typeof c == "number" || typeof c == "string" || typeof c == "symbol" || // ES6 symbol
|
|
1347
|
+
typeof c > "u";
|
|
1348
|
+
}
|
|
1349
|
+
e.isPrimitive = oe, e.isBuffer = Vo;
|
|
1350
|
+
function Z(c) {
|
|
1351
|
+
return Object.prototype.toString.call(c);
|
|
1352
|
+
}
|
|
1353
|
+
function ie(c) {
|
|
1354
|
+
return c < 10 ? "0" + c.toString(10) : c.toString(10);
|
|
1355
|
+
}
|
|
1356
|
+
var ae = [
|
|
1357
|
+
"Jan",
|
|
1358
|
+
"Feb",
|
|
1359
|
+
"Mar",
|
|
1360
|
+
"Apr",
|
|
1361
|
+
"May",
|
|
1362
|
+
"Jun",
|
|
1363
|
+
"Jul",
|
|
1364
|
+
"Aug",
|
|
1365
|
+
"Sep",
|
|
1366
|
+
"Oct",
|
|
1367
|
+
"Nov",
|
|
1368
|
+
"Dec"
|
|
1369
|
+
];
|
|
1370
|
+
function te() {
|
|
1371
|
+
var c = /* @__PURE__ */ new Date(), y = [
|
|
1372
|
+
ie(c.getHours()),
|
|
1373
|
+
ie(c.getMinutes()),
|
|
1374
|
+
ie(c.getSeconds())
|
|
1375
|
+
].join(":");
|
|
1376
|
+
return [c.getDate(), ae[c.getMonth()], y].join(" ");
|
|
1377
|
+
}
|
|
1378
|
+
e.log = function() {
|
|
1379
|
+
console.log("%s - %s", te(), e.format.apply(e, arguments));
|
|
1380
|
+
}, e.inherits = le, e._extend = function(c, y) {
|
|
1381
|
+
if (!y || !N(y))
|
|
1382
|
+
return c;
|
|
1383
|
+
for (var _ = Object.keys(y), C = _.length; C--; )
|
|
1384
|
+
c[_[C]] = y[_[C]];
|
|
1385
|
+
return c;
|
|
1386
|
+
};
|
|
1387
|
+
function re(c, y) {
|
|
1388
|
+
return Object.prototype.hasOwnProperty.call(c, y);
|
|
1389
|
+
}
|
|
1390
|
+
var K = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
|
|
1391
|
+
e.promisify = function(c) {
|
|
1392
|
+
if (typeof c != "function")
|
|
1393
|
+
throw new TypeError('The "original" argument must be of type Function');
|
|
1394
|
+
if (K && c[K]) {
|
|
1395
|
+
var y = c[K];
|
|
1396
|
+
if (typeof y != "function")
|
|
1397
|
+
throw new TypeError('The "util.promisify.custom" argument must be of type Function');
|
|
1398
|
+
return Object.defineProperty(y, K, {
|
|
1399
|
+
value: y,
|
|
1400
|
+
enumerable: !1,
|
|
1401
|
+
writable: !1,
|
|
1402
|
+
configurable: !0
|
|
1403
|
+
}), y;
|
|
1404
|
+
}
|
|
1405
|
+
function y() {
|
|
1406
|
+
for (var _, C, s = new Promise(function(E, k) {
|
|
1407
|
+
_ = E, C = k;
|
|
1408
|
+
}), l = [], b = 0; b < arguments.length; b++)
|
|
1409
|
+
l.push(arguments[b]);
|
|
1410
|
+
l.push(function(E, k) {
|
|
1411
|
+
E ? C(E) : _(k);
|
|
1412
|
+
});
|
|
1413
|
+
try {
|
|
1414
|
+
c.apply(this, l);
|
|
1415
|
+
} catch (E) {
|
|
1416
|
+
C(E);
|
|
1417
|
+
}
|
|
1418
|
+
return s;
|
|
1419
|
+
}
|
|
1420
|
+
return Object.setPrototypeOf(y, Object.getPrototypeOf(c)), K && Object.defineProperty(y, K, {
|
|
1421
|
+
value: y,
|
|
1422
|
+
enumerable: !1,
|
|
1423
|
+
writable: !1,
|
|
1424
|
+
configurable: !0
|
|
1425
|
+
}), Object.defineProperties(
|
|
1426
|
+
y,
|
|
1427
|
+
t(c)
|
|
1428
|
+
);
|
|
1429
|
+
}, e.promisify.custom = K;
|
|
1430
|
+
function ne(c, y) {
|
|
1431
|
+
if (!c) {
|
|
1432
|
+
var _ = new Error("Promise was rejected with a falsy value");
|
|
1433
|
+
_.reason = c, c = _;
|
|
1434
|
+
}
|
|
1435
|
+
return y(c);
|
|
1436
|
+
}
|
|
1437
|
+
function ue(c) {
|
|
1438
|
+
if (typeof c != "function")
|
|
1439
|
+
throw new TypeError('The "original" argument must be of type Function');
|
|
1440
|
+
function y() {
|
|
1441
|
+
for (var _ = [], C = 0; C < arguments.length; C++)
|
|
1442
|
+
_.push(arguments[C]);
|
|
1443
|
+
var s = _.pop();
|
|
1444
|
+
if (typeof s != "function")
|
|
1445
|
+
throw new TypeError("The last argument must be of type Function");
|
|
1446
|
+
var l = this, b = function() {
|
|
1447
|
+
return s.apply(l, arguments);
|
|
1448
|
+
};
|
|
1449
|
+
c.apply(this, _).then(
|
|
1450
|
+
function(E) {
|
|
1451
|
+
U.nextTick(b.bind(null, null, E));
|
|
1452
|
+
},
|
|
1453
|
+
function(E) {
|
|
1454
|
+
U.nextTick(ne.bind(null, E, b));
|
|
1455
|
+
}
|
|
1456
|
+
);
|
|
1457
|
+
}
|
|
1458
|
+
return Object.setPrototypeOf(y, Object.getPrototypeOf(c)), Object.defineProperties(
|
|
1459
|
+
y,
|
|
1460
|
+
t(c)
|
|
1461
|
+
), y;
|
|
1462
|
+
}
|
|
1463
|
+
e.callbackify = ue;
|
|
1464
|
+
})(jt);
|
|
1465
|
+
var st, Qt;
|
|
1466
|
+
function $o() {
|
|
1467
|
+
if (Qt)
|
|
1468
|
+
return st;
|
|
1469
|
+
Qt = 1;
|
|
1470
|
+
function e(x, A) {
|
|
1471
|
+
var P = Object.keys(x);
|
|
1472
|
+
if (Object.getOwnPropertySymbols) {
|
|
1473
|
+
var u = Object.getOwnPropertySymbols(x);
|
|
1474
|
+
A && (u = u.filter(function(w) {
|
|
1475
|
+
return Object.getOwnPropertyDescriptor(x, w).enumerable;
|
|
1476
|
+
})), P.push.apply(P, u);
|
|
1477
|
+
}
|
|
1478
|
+
return P;
|
|
1479
|
+
}
|
|
1480
|
+
function t(x) {
|
|
1481
|
+
for (var A = 1; A < arguments.length; A++) {
|
|
1482
|
+
var P = arguments[A] != null ? arguments[A] : {};
|
|
1483
|
+
A % 2 ? e(Object(P), !0).forEach(function(u) {
|
|
1484
|
+
r(x, u, P[u]);
|
|
1485
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(x, Object.getOwnPropertyDescriptors(P)) : e(Object(P)).forEach(function(u) {
|
|
1486
|
+
Object.defineProperty(x, u, Object.getOwnPropertyDescriptor(P, u));
|
|
1487
|
+
});
|
|
1488
|
+
}
|
|
1489
|
+
return x;
|
|
1490
|
+
}
|
|
1491
|
+
function r(x, A, P) {
|
|
1492
|
+
return A = f(A), A in x ? Object.defineProperty(x, A, { value: P, enumerable: !0, configurable: !0, writable: !0 }) : x[A] = P, x;
|
|
1493
|
+
}
|
|
1494
|
+
function o(x, A) {
|
|
1495
|
+
if (!(x instanceof A))
|
|
1496
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1497
|
+
}
|
|
1498
|
+
function a(x, A) {
|
|
1499
|
+
for (var P = 0; P < A.length; P++) {
|
|
1500
|
+
var u = A[P];
|
|
1501
|
+
u.enumerable = u.enumerable || !1, u.configurable = !0, "value" in u && (u.writable = !0), Object.defineProperty(x, f(u.key), u);
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
function p(x, A, P) {
|
|
1505
|
+
return A && a(x.prototype, A), Object.defineProperty(x, "prototype", { writable: !1 }), x;
|
|
1506
|
+
}
|
|
1507
|
+
function f(x) {
|
|
1508
|
+
var A = h(x, "string");
|
|
1509
|
+
return typeof A == "symbol" ? A : String(A);
|
|
1510
|
+
}
|
|
1511
|
+
function h(x, A) {
|
|
1512
|
+
if (typeof x != "object" || x === null)
|
|
1513
|
+
return x;
|
|
1514
|
+
var P = x[Symbol.toPrimitive];
|
|
1515
|
+
if (P !== void 0) {
|
|
1516
|
+
var u = P.call(x, A || "default");
|
|
1517
|
+
if (typeof u != "object")
|
|
1518
|
+
return u;
|
|
1519
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1520
|
+
}
|
|
1521
|
+
return (A === "string" ? String : Number)(x);
|
|
1522
|
+
}
|
|
1523
|
+
var d = Ge, R = d.Buffer, L = jt, S = L.inspect, M = S && S.custom || "inspect";
|
|
1524
|
+
function W(x, A, P) {
|
|
1525
|
+
R.prototype.copy.call(x, A, P);
|
|
1526
|
+
}
|
|
1527
|
+
return st = /* @__PURE__ */ function() {
|
|
1528
|
+
function x() {
|
|
1529
|
+
o(this, x), this.head = null, this.tail = null, this.length = 0;
|
|
1530
|
+
}
|
|
1531
|
+
return p(x, [{
|
|
1532
|
+
key: "push",
|
|
1533
|
+
value: function(A) {
|
|
1534
|
+
var P = {
|
|
1535
|
+
data: A,
|
|
1536
|
+
next: null
|
|
1537
|
+
};
|
|
1538
|
+
this.length > 0 ? this.tail.next = P : this.head = P, this.tail = P, ++this.length;
|
|
1539
|
+
}
|
|
1540
|
+
}, {
|
|
1541
|
+
key: "unshift",
|
|
1542
|
+
value: function(A) {
|
|
1543
|
+
var P = {
|
|
1544
|
+
data: A,
|
|
1545
|
+
next: this.head
|
|
1546
|
+
};
|
|
1547
|
+
this.length === 0 && (this.tail = P), this.head = P, ++this.length;
|
|
1548
|
+
}
|
|
1549
|
+
}, {
|
|
1550
|
+
key: "shift",
|
|
1551
|
+
value: function() {
|
|
1552
|
+
if (this.length !== 0) {
|
|
1553
|
+
var A = this.head.data;
|
|
1554
|
+
return this.length === 1 ? this.head = this.tail = null : this.head = this.head.next, --this.length, A;
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
}, {
|
|
1558
|
+
key: "clear",
|
|
1559
|
+
value: function() {
|
|
1560
|
+
this.head = this.tail = null, this.length = 0;
|
|
1561
|
+
}
|
|
1562
|
+
}, {
|
|
1563
|
+
key: "join",
|
|
1564
|
+
value: function(A) {
|
|
1565
|
+
if (this.length === 0)
|
|
1566
|
+
return "";
|
|
1567
|
+
for (var P = this.head, u = "" + P.data; P = P.next; )
|
|
1568
|
+
u += A + P.data;
|
|
1569
|
+
return u;
|
|
1570
|
+
}
|
|
1571
|
+
}, {
|
|
1572
|
+
key: "concat",
|
|
1573
|
+
value: function(A) {
|
|
1574
|
+
if (this.length === 0)
|
|
1575
|
+
return R.alloc(0);
|
|
1576
|
+
for (var P = R.allocUnsafe(A >>> 0), u = this.head, w = 0; u; )
|
|
1577
|
+
W(u.data, P, w), w += u.data.length, u = u.next;
|
|
1578
|
+
return P;
|
|
1579
|
+
}
|
|
1580
|
+
// Consumes a specified amount of bytes or characters from the buffered data.
|
|
1581
|
+
}, {
|
|
1582
|
+
key: "consume",
|
|
1583
|
+
value: function(A, P) {
|
|
1584
|
+
var u;
|
|
1585
|
+
return A < this.head.data.length ? (u = this.head.data.slice(0, A), this.head.data = this.head.data.slice(A)) : A === this.head.data.length ? u = this.shift() : u = P ? this._getString(A) : this._getBuffer(A), u;
|
|
1586
|
+
}
|
|
1587
|
+
}, {
|
|
1588
|
+
key: "first",
|
|
1589
|
+
value: function() {
|
|
1590
|
+
return this.head.data;
|
|
1591
|
+
}
|
|
1592
|
+
// Consumes a specified amount of characters from the buffered data.
|
|
1593
|
+
}, {
|
|
1594
|
+
key: "_getString",
|
|
1595
|
+
value: function(A) {
|
|
1596
|
+
var P = this.head, u = 1, w = P.data;
|
|
1597
|
+
for (A -= w.length; P = P.next; ) {
|
|
1598
|
+
var v = P.data, O = A > v.length ? v.length : A;
|
|
1599
|
+
if (O === v.length ? w += v : w += v.slice(0, A), A -= O, A === 0) {
|
|
1600
|
+
O === v.length ? (++u, P.next ? this.head = P.next : this.head = this.tail = null) : (this.head = P, P.data = v.slice(O));
|
|
1601
|
+
break;
|
|
1602
|
+
}
|
|
1603
|
+
++u;
|
|
1604
|
+
}
|
|
1605
|
+
return this.length -= u, w;
|
|
1606
|
+
}
|
|
1607
|
+
// Consumes a specified amount of bytes from the buffered data.
|
|
1608
|
+
}, {
|
|
1609
|
+
key: "_getBuffer",
|
|
1610
|
+
value: function(A) {
|
|
1611
|
+
var P = R.allocUnsafe(A), u = this.head, w = 1;
|
|
1612
|
+
for (u.data.copy(P), A -= u.data.length; u = u.next; ) {
|
|
1613
|
+
var v = u.data, O = A > v.length ? v.length : A;
|
|
1614
|
+
if (v.copy(P, P.length - A, 0, O), A -= O, A === 0) {
|
|
1615
|
+
O === v.length ? (++w, u.next ? this.head = u.next : this.head = this.tail = null) : (this.head = u, u.data = v.slice(O));
|
|
1616
|
+
break;
|
|
1617
|
+
}
|
|
1618
|
+
++w;
|
|
1619
|
+
}
|
|
1620
|
+
return this.length -= w, P;
|
|
1621
|
+
}
|
|
1622
|
+
// Make sure the linked list only shows the minimal necessary information.
|
|
1623
|
+
}, {
|
|
1624
|
+
key: M,
|
|
1625
|
+
value: function(A, P) {
|
|
1626
|
+
return S(this, t(t({}, P), {}, {
|
|
1627
|
+
// Only inspect one level.
|
|
1628
|
+
depth: 0,
|
|
1629
|
+
// It should not recurse.
|
|
1630
|
+
customInspect: !1
|
|
1631
|
+
}));
|
|
1632
|
+
}
|
|
1633
|
+
}]), x;
|
|
1634
|
+
}(), st;
|
|
1635
|
+
}
|
|
1636
|
+
function Ko(e, t) {
|
|
1637
|
+
var r = this, o = this._readableState && this._readableState.destroyed, a = this._writableState && this._writableState.destroyed;
|
|
1638
|
+
return o || a ? (t ? t(e) : e && (this._writableState ? this._writableState.errorEmitted || (this._writableState.errorEmitted = !0, U.nextTick(At, this, e)) : U.nextTick(At, this, e)), this) : (this._readableState && (this._readableState.destroyed = !0), this._writableState && (this._writableState.destroyed = !0), this._destroy(e || null, function(p) {
|
|
1639
|
+
!t && p ? r._writableState ? r._writableState.errorEmitted ? U.nextTick(Ue, r) : (r._writableState.errorEmitted = !0, U.nextTick(er, r, p)) : U.nextTick(er, r, p) : t ? (U.nextTick(Ue, r), t(p)) : U.nextTick(Ue, r);
|
|
1640
|
+
}), this);
|
|
1641
|
+
}
|
|
1642
|
+
function er(e, t) {
|
|
1643
|
+
At(e, t), Ue(e);
|
|
1644
|
+
}
|
|
1645
|
+
function Ue(e) {
|
|
1646
|
+
e._writableState && !e._writableState.emitClose || e._readableState && !e._readableState.emitClose || e.emit("close");
|
|
1647
|
+
}
|
|
1648
|
+
function Jo() {
|
|
1649
|
+
this._readableState && (this._readableState.destroyed = !1, this._readableState.reading = !1, this._readableState.ended = !1, this._readableState.endEmitted = !1), this._writableState && (this._writableState.destroyed = !1, this._writableState.ended = !1, this._writableState.ending = !1, this._writableState.finalCalled = !1, this._writableState.prefinished = !1, this._writableState.finished = !1, this._writableState.errorEmitted = !1);
|
|
1650
|
+
}
|
|
1651
|
+
function At(e, t) {
|
|
1652
|
+
e.emit("error", t);
|
|
1653
|
+
}
|
|
1654
|
+
function Xo(e, t) {
|
|
1655
|
+
var r = e._readableState, o = e._writableState;
|
|
1656
|
+
r && r.autoDestroy || o && o.autoDestroy ? e.destroy(t) : e.emit("error", t);
|
|
1657
|
+
}
|
|
1658
|
+
var Gr = {
|
|
1659
|
+
destroy: Ko,
|
|
1660
|
+
undestroy: Jo,
|
|
1661
|
+
errorOrDestroy: Xo
|
|
1662
|
+
}, de = {};
|
|
1663
|
+
function Yo(e, t) {
|
|
1664
|
+
e.prototype = Object.create(t.prototype), e.prototype.constructor = e, e.__proto__ = t;
|
|
1665
|
+
}
|
|
1666
|
+
var zr = {};
|
|
1667
|
+
function Q(e, t, r) {
|
|
1668
|
+
r || (r = Error);
|
|
1669
|
+
function o(p, f, h) {
|
|
1670
|
+
return typeof t == "string" ? t : t(p, f, h);
|
|
1671
|
+
}
|
|
1672
|
+
var a = /* @__PURE__ */ function(p) {
|
|
1673
|
+
Yo(f, p);
|
|
1674
|
+
function f(h, d, R) {
|
|
1675
|
+
return p.call(this, o(h, d, R)) || this;
|
|
1676
|
+
}
|
|
1677
|
+
return f;
|
|
1678
|
+
}(r);
|
|
1679
|
+
a.prototype.name = r.name, a.prototype.code = e, zr[e] = a;
|
|
1680
|
+
}
|
|
1681
|
+
function tr(e, t) {
|
|
1682
|
+
if (Array.isArray(e)) {
|
|
1683
|
+
var r = e.length;
|
|
1684
|
+
return e = e.map(function(o) {
|
|
1685
|
+
return String(o);
|
|
1686
|
+
}), r > 2 ? "one of ".concat(t, " ").concat(e.slice(0, r - 1).join(", "), ", or ") + e[r - 1] : r === 2 ? "one of ".concat(t, " ").concat(e[0], " or ").concat(e[1]) : "of ".concat(t, " ").concat(e[0]);
|
|
1687
|
+
} else
|
|
1688
|
+
return "of ".concat(t, " ").concat(String(e));
|
|
1689
|
+
}
|
|
1690
|
+
function Zo(e, t, r) {
|
|
1691
|
+
return e.substr(0, t.length) === t;
|
|
1692
|
+
}
|
|
1693
|
+
function Qo(e, t, r) {
|
|
1694
|
+
return (r === void 0 || r > e.length) && (r = e.length), e.substring(r - t.length, r) === t;
|
|
1695
|
+
}
|
|
1696
|
+
function ei(e, t, r) {
|
|
1697
|
+
return typeof r != "number" && (r = 0), r + t.length > e.length ? !1 : e.indexOf(t, r) !== -1;
|
|
1698
|
+
}
|
|
1699
|
+
Q("ERR_INVALID_OPT_VALUE", function(e, t) {
|
|
1700
|
+
return 'The value "' + t + '" is invalid for option "' + e + '"';
|
|
1701
|
+
}, TypeError);
|
|
1702
|
+
Q("ERR_INVALID_ARG_TYPE", function(e, t, r) {
|
|
1703
|
+
var o;
|
|
1704
|
+
typeof t == "string" && Zo(t, "not ") ? (o = "must not be", t = t.replace(/^not /, "")) : o = "must be";
|
|
1705
|
+
var a;
|
|
1706
|
+
if (Qo(e, " argument"))
|
|
1707
|
+
a = "The ".concat(e, " ").concat(o, " ").concat(tr(t, "type"));
|
|
1708
|
+
else {
|
|
1709
|
+
var p = ei(e, ".") ? "property" : "argument";
|
|
1710
|
+
a = 'The "'.concat(e, '" ').concat(p, " ").concat(o, " ").concat(tr(t, "type"));
|
|
1711
|
+
}
|
|
1712
|
+
return a += ". Received type ".concat(typeof r), a;
|
|
1713
|
+
}, TypeError);
|
|
1714
|
+
Q("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF");
|
|
1715
|
+
Q("ERR_METHOD_NOT_IMPLEMENTED", function(e) {
|
|
1716
|
+
return "The " + e + " method is not implemented";
|
|
1717
|
+
});
|
|
1718
|
+
Q("ERR_STREAM_PREMATURE_CLOSE", "Premature close");
|
|
1719
|
+
Q("ERR_STREAM_DESTROYED", function(e) {
|
|
1720
|
+
return "Cannot call " + e + " after a stream was destroyed";
|
|
1721
|
+
});
|
|
1722
|
+
Q("ERR_MULTIPLE_CALLBACK", "Callback called multiple times");
|
|
1723
|
+
Q("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable");
|
|
1724
|
+
Q("ERR_STREAM_WRITE_AFTER_END", "write after end");
|
|
1725
|
+
Q("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
|
|
1726
|
+
Q("ERR_UNKNOWN_ENCODING", function(e) {
|
|
1727
|
+
return "Unknown encoding: " + e;
|
|
1728
|
+
}, TypeError);
|
|
1729
|
+
Q("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
|
|
1730
|
+
de.codes = zr;
|
|
1731
|
+
var ti = de.codes.ERR_INVALID_OPT_VALUE;
|
|
1732
|
+
function ri(e, t, r) {
|
|
1733
|
+
return e.highWaterMark != null ? e.highWaterMark : t ? e[r] : null;
|
|
1734
|
+
}
|
|
1735
|
+
function ni(e, t, r, o) {
|
|
1736
|
+
var a = ri(t, o, r);
|
|
1737
|
+
if (a != null) {
|
|
1738
|
+
if (!(isFinite(a) && Math.floor(a) === a) || a < 0) {
|
|
1739
|
+
var p = o ? r : "highWaterMark";
|
|
1740
|
+
throw new ti(p, a);
|
|
1741
|
+
}
|
|
1742
|
+
return Math.floor(a);
|
|
1743
|
+
}
|
|
1744
|
+
return e.objectMode ? 16 : 16 * 1024;
|
|
1745
|
+
}
|
|
1746
|
+
var Vr = {
|
|
1747
|
+
getHighWaterMark: ni
|
|
1748
|
+
}, oi = ii;
|
|
1749
|
+
function ii(e, t) {
|
|
1750
|
+
if (ut("noDeprecation"))
|
|
1751
|
+
return e;
|
|
1752
|
+
var r = !1;
|
|
1753
|
+
function o() {
|
|
1754
|
+
if (!r) {
|
|
1755
|
+
if (ut("throwDeprecation"))
|
|
1756
|
+
throw new Error(t);
|
|
1757
|
+
ut("traceDeprecation") ? console.trace(t) : console.warn(t), r = !0;
|
|
1758
|
+
}
|
|
1759
|
+
return e.apply(this, arguments);
|
|
1760
|
+
}
|
|
1761
|
+
return o;
|
|
1762
|
+
}
|
|
1763
|
+
function ut(e) {
|
|
1764
|
+
try {
|
|
1765
|
+
if (!V.localStorage)
|
|
1766
|
+
return !1;
|
|
1767
|
+
} catch {
|
|
1768
|
+
return !1;
|
|
1769
|
+
}
|
|
1770
|
+
var t = V.localStorage[e];
|
|
1771
|
+
return t == null ? !1 : String(t).toLowerCase() === "true";
|
|
1772
|
+
}
|
|
1773
|
+
var lt, rr;
|
|
1774
|
+
function $r() {
|
|
1775
|
+
if (rr)
|
|
1776
|
+
return lt;
|
|
1777
|
+
rr = 1, lt = I;
|
|
1778
|
+
function e(s) {
|
|
1779
|
+
var l = this;
|
|
1780
|
+
this.next = null, this.entry = null, this.finish = function() {
|
|
1781
|
+
C(l, s);
|
|
1782
|
+
};
|
|
1783
|
+
}
|
|
1784
|
+
var t;
|
|
1785
|
+
I.WritableState = F;
|
|
1786
|
+
var r = {
|
|
1787
|
+
deprecate: oi
|
|
1788
|
+
}, o = Tr, a = Ge.Buffer, p = (typeof V < "u" ? V : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
1789
|
+
};
|
|
1790
|
+
function f(s) {
|
|
1791
|
+
return a.from(s);
|
|
1792
|
+
}
|
|
1793
|
+
function h(s) {
|
|
1794
|
+
return a.isBuffer(s) || s instanceof p;
|
|
1795
|
+
}
|
|
1796
|
+
var d = Gr, R = Vr, L = R.getHighWaterMark, S = de.codes, M = S.ERR_INVALID_ARG_TYPE, W = S.ERR_METHOD_NOT_IMPLEMENTED, x = S.ERR_MULTIPLE_CALLBACK, A = S.ERR_STREAM_CANNOT_PIPE, P = S.ERR_STREAM_DESTROYED, u = S.ERR_STREAM_NULL_VALUES, w = S.ERR_STREAM_WRITE_AFTER_END, v = S.ERR_UNKNOWN_ENCODING, O = d.errorOrDestroy;
|
|
1797
|
+
le(I, o);
|
|
1798
|
+
function j() {
|
|
1799
|
+
}
|
|
1800
|
+
function F(s, l, b) {
|
|
1801
|
+
t = t || Re(), s = s || {}, typeof b != "boolean" && (b = l instanceof t), this.objectMode = !!s.objectMode, b && (this.objectMode = this.objectMode || !!s.writableObjectMode), this.highWaterMark = L(this, s, "writableHighWaterMark", b), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
1802
|
+
var E = s.decodeStrings === !1;
|
|
1803
|
+
this.decodeStrings = !E, this.defaultEncoding = s.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(k) {
|
|
1804
|
+
ae(l, k);
|
|
1805
|
+
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = s.emitClose !== !1, this.autoDestroy = !!s.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
|
|
1806
|
+
}
|
|
1807
|
+
F.prototype.getBuffer = function() {
|
|
1808
|
+
for (var s = this.bufferedRequest, l = []; s; )
|
|
1809
|
+
l.push(s), s = s.next;
|
|
1810
|
+
return l;
|
|
1811
|
+
}, function() {
|
|
1812
|
+
try {
|
|
1813
|
+
Object.defineProperty(F.prototype, "buffer", {
|
|
1814
|
+
get: r.deprecate(function() {
|
|
1815
|
+
return this.getBuffer();
|
|
1816
|
+
}, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003")
|
|
1817
|
+
});
|
|
1818
|
+
} catch {
|
|
1819
|
+
}
|
|
1820
|
+
}();
|
|
1821
|
+
var z;
|
|
1822
|
+
typeof Symbol == "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] == "function" ? (z = Function.prototype[Symbol.hasInstance], Object.defineProperty(I, Symbol.hasInstance, {
|
|
1823
|
+
value: function(s) {
|
|
1824
|
+
return z.call(this, s) ? !0 : this !== I ? !1 : s && s._writableState instanceof F;
|
|
1825
|
+
}
|
|
1826
|
+
})) : z = function(s) {
|
|
1827
|
+
return s instanceof this;
|
|
1828
|
+
};
|
|
1829
|
+
function I(s) {
|
|
1830
|
+
t = t || Re();
|
|
1831
|
+
var l = this instanceof t;
|
|
1832
|
+
if (!l && !z.call(I, this))
|
|
1833
|
+
return new I(s);
|
|
1834
|
+
this._writableState = new F(s, this, l), this.writable = !0, s && (typeof s.write == "function" && (this._write = s.write), typeof s.writev == "function" && (this._writev = s.writev), typeof s.destroy == "function" && (this._destroy = s.destroy), typeof s.final == "function" && (this._final = s.final)), o.call(this);
|
|
1835
|
+
}
|
|
1836
|
+
I.prototype.pipe = function() {
|
|
1837
|
+
O(this, new A());
|
|
1838
|
+
};
|
|
1839
|
+
function N(s, l) {
|
|
1840
|
+
var b = new w();
|
|
1841
|
+
O(s, b), U.nextTick(l, b);
|
|
1842
|
+
}
|
|
1843
|
+
function ee(s, l, b, E) {
|
|
1844
|
+
var k;
|
|
1845
|
+
return b === null ? k = new u() : typeof b != "string" && !l.objectMode && (k = new M("chunk", ["string", "Buffer"], b)), k ? (O(s, k), U.nextTick(E, k), !1) : !0;
|
|
1846
|
+
}
|
|
1847
|
+
I.prototype.write = function(s, l, b) {
|
|
1848
|
+
var E = this._writableState, k = !1, n = !E.objectMode && h(s);
|
|
1849
|
+
return n && !a.isBuffer(s) && (s = f(s)), typeof l == "function" && (b = l, l = null), n ? l = "buffer" : l || (l = E.defaultEncoding), typeof b != "function" && (b = j), E.ending ? N(this, b) : (n || ee(this, E, s, b)) && (E.pendingcb++, k = Y(this, E, n, s, l, b)), k;
|
|
1850
|
+
}, I.prototype.cork = function() {
|
|
1851
|
+
this._writableState.corked++;
|
|
1852
|
+
}, I.prototype.uncork = function() {
|
|
1853
|
+
var s = this._writableState;
|
|
1854
|
+
s.corked && (s.corked--, !s.writing && !s.corked && !s.bufferProcessing && s.bufferedRequest && K(this, s));
|
|
1855
|
+
}, I.prototype.setDefaultEncoding = function(s) {
|
|
1856
|
+
if (typeof s == "string" && (s = s.toLowerCase()), !(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((s + "").toLowerCase()) > -1))
|
|
1857
|
+
throw new v(s);
|
|
1858
|
+
return this._writableState.defaultEncoding = s, this;
|
|
1859
|
+
}, Object.defineProperty(I.prototype, "writableBuffer", {
|
|
1860
|
+
// making it explicit this property is not enumerable
|
|
1861
|
+
// because otherwise some prototype manipulation in
|
|
1862
|
+
// userland will fail
|
|
1863
|
+
enumerable: !1,
|
|
1864
|
+
get: function() {
|
|
1865
|
+
return this._writableState && this._writableState.getBuffer();
|
|
1866
|
+
}
|
|
1867
|
+
});
|
|
1868
|
+
function X(s, l, b) {
|
|
1869
|
+
return !s.objectMode && s.decodeStrings !== !1 && typeof l == "string" && (l = a.from(l, b)), l;
|
|
1870
|
+
}
|
|
1871
|
+
Object.defineProperty(I.prototype, "writableHighWaterMark", {
|
|
1872
|
+
// making it explicit this property is not enumerable
|
|
1873
|
+
// because otherwise some prototype manipulation in
|
|
1874
|
+
// userland will fail
|
|
1875
|
+
enumerable: !1,
|
|
1876
|
+
get: function() {
|
|
1877
|
+
return this._writableState.highWaterMark;
|
|
1878
|
+
}
|
|
1879
|
+
});
|
|
1880
|
+
function Y(s, l, b, E, k, n) {
|
|
1881
|
+
if (!b) {
|
|
1882
|
+
var i = X(l, E, k);
|
|
1883
|
+
E !== i && (b = !0, k = "buffer", E = i);
|
|
1884
|
+
}
|
|
1885
|
+
var m = l.objectMode ? 1 : E.length;
|
|
1886
|
+
l.length += m;
|
|
1887
|
+
var T = l.length < l.highWaterMark;
|
|
1888
|
+
if (T || (l.needDrain = !0), l.writing || l.corked) {
|
|
1889
|
+
var G = l.lastBufferedRequest;
|
|
1890
|
+
l.lastBufferedRequest = {
|
|
1891
|
+
chunk: E,
|
|
1892
|
+
encoding: k,
|
|
1893
|
+
isBuf: b,
|
|
1894
|
+
callback: n,
|
|
1895
|
+
next: null
|
|
1896
|
+
}, G ? G.next = l.lastBufferedRequest : l.bufferedRequest = l.lastBufferedRequest, l.bufferedRequestCount += 1;
|
|
1897
|
+
} else
|
|
1898
|
+
oe(s, l, !1, m, E, k, n);
|
|
1899
|
+
return T;
|
|
1900
|
+
}
|
|
1901
|
+
function oe(s, l, b, E, k, n, i) {
|
|
1902
|
+
l.writelen = E, l.writecb = i, l.writing = !0, l.sync = !0, l.destroyed ? l.onwrite(new P("write")) : b ? s._writev(k, l.onwrite) : s._write(k, n, l.onwrite), l.sync = !1;
|
|
1903
|
+
}
|
|
1904
|
+
function Z(s, l, b, E, k) {
|
|
1905
|
+
--l.pendingcb, b ? (U.nextTick(k, E), U.nextTick(y, s, l), s._writableState.errorEmitted = !0, O(s, E)) : (k(E), s._writableState.errorEmitted = !0, O(s, E), y(s, l));
|
|
1906
|
+
}
|
|
1907
|
+
function ie(s) {
|
|
1908
|
+
s.writing = !1, s.writecb = null, s.length -= s.writelen, s.writelen = 0;
|
|
1909
|
+
}
|
|
1910
|
+
function ae(s, l) {
|
|
1911
|
+
var b = s._writableState, E = b.sync, k = b.writecb;
|
|
1912
|
+
if (typeof k != "function")
|
|
1913
|
+
throw new x();
|
|
1914
|
+
if (ie(b), l)
|
|
1915
|
+
Z(s, b, E, l, k);
|
|
1916
|
+
else {
|
|
1917
|
+
var n = ne(b) || s.destroyed;
|
|
1918
|
+
!n && !b.corked && !b.bufferProcessing && b.bufferedRequest && K(s, b), E ? U.nextTick(te, s, b, n, k) : te(s, b, n, k);
|
|
1919
|
+
}
|
|
1920
|
+
}
|
|
1921
|
+
function te(s, l, b, E) {
|
|
1922
|
+
b || re(s, l), l.pendingcb--, E(), y(s, l);
|
|
1923
|
+
}
|
|
1924
|
+
function re(s, l) {
|
|
1925
|
+
l.length === 0 && l.needDrain && (l.needDrain = !1, s.emit("drain"));
|
|
1926
|
+
}
|
|
1927
|
+
function K(s, l) {
|
|
1928
|
+
l.bufferProcessing = !0;
|
|
1929
|
+
var b = l.bufferedRequest;
|
|
1930
|
+
if (s._writev && b && b.next) {
|
|
1931
|
+
var E = l.bufferedRequestCount, k = new Array(E), n = l.corkedRequestsFree;
|
|
1932
|
+
n.entry = b;
|
|
1933
|
+
for (var i = 0, m = !0; b; )
|
|
1934
|
+
k[i] = b, b.isBuf || (m = !1), b = b.next, i += 1;
|
|
1935
|
+
k.allBuffers = m, oe(s, l, !0, l.length, k, "", n.finish), l.pendingcb++, l.lastBufferedRequest = null, n.next ? (l.corkedRequestsFree = n.next, n.next = null) : l.corkedRequestsFree = new e(l), l.bufferedRequestCount = 0;
|
|
1936
|
+
} else {
|
|
1937
|
+
for (; b; ) {
|
|
1938
|
+
var T = b.chunk, G = b.encoding, D = b.callback, q = l.objectMode ? 1 : T.length;
|
|
1939
|
+
if (oe(s, l, !1, q, T, G, D), b = b.next, l.bufferedRequestCount--, l.writing)
|
|
1940
|
+
break;
|
|
1941
|
+
}
|
|
1942
|
+
b === null && (l.lastBufferedRequest = null);
|
|
1943
|
+
}
|
|
1944
|
+
l.bufferedRequest = b, l.bufferProcessing = !1;
|
|
1945
|
+
}
|
|
1946
|
+
I.prototype._write = function(s, l, b) {
|
|
1947
|
+
b(new W("_write()"));
|
|
1948
|
+
}, I.prototype._writev = null, I.prototype.end = function(s, l, b) {
|
|
1949
|
+
var E = this._writableState;
|
|
1950
|
+
return typeof s == "function" ? (b = s, s = null, l = null) : typeof l == "function" && (b = l, l = null), s != null && this.write(s, l), E.corked && (E.corked = 1, this.uncork()), E.ending || _(this, E, b), this;
|
|
1951
|
+
}, Object.defineProperty(I.prototype, "writableLength", {
|
|
1952
|
+
// making it explicit this property is not enumerable
|
|
1953
|
+
// because otherwise some prototype manipulation in
|
|
1954
|
+
// userland will fail
|
|
1955
|
+
enumerable: !1,
|
|
1956
|
+
get: function() {
|
|
1957
|
+
return this._writableState.length;
|
|
1958
|
+
}
|
|
1959
|
+
});
|
|
1960
|
+
function ne(s) {
|
|
1961
|
+
return s.ending && s.length === 0 && s.bufferedRequest === null && !s.finished && !s.writing;
|
|
1962
|
+
}
|
|
1963
|
+
function ue(s, l) {
|
|
1964
|
+
s._final(function(b) {
|
|
1965
|
+
l.pendingcb--, b && O(s, b), l.prefinished = !0, s.emit("prefinish"), y(s, l);
|
|
1966
|
+
});
|
|
1967
|
+
}
|
|
1968
|
+
function c(s, l) {
|
|
1969
|
+
!l.prefinished && !l.finalCalled && (typeof s._final == "function" && !l.destroyed ? (l.pendingcb++, l.finalCalled = !0, U.nextTick(ue, s, l)) : (l.prefinished = !0, s.emit("prefinish")));
|
|
1970
|
+
}
|
|
1971
|
+
function y(s, l) {
|
|
1972
|
+
var b = ne(l);
|
|
1973
|
+
if (b && (c(s, l), l.pendingcb === 0 && (l.finished = !0, s.emit("finish"), l.autoDestroy))) {
|
|
1974
|
+
var E = s._readableState;
|
|
1975
|
+
(!E || E.autoDestroy && E.endEmitted) && s.destroy();
|
|
1976
|
+
}
|
|
1977
|
+
return b;
|
|
1978
|
+
}
|
|
1979
|
+
function _(s, l, b) {
|
|
1980
|
+
l.ending = !0, y(s, l), b && (l.finished ? U.nextTick(b) : s.once("finish", b)), l.ended = !0, s.writable = !1;
|
|
1981
|
+
}
|
|
1982
|
+
function C(s, l, b) {
|
|
1983
|
+
var E = s.entry;
|
|
1984
|
+
for (s.entry = null; E; ) {
|
|
1985
|
+
var k = E.callback;
|
|
1986
|
+
l.pendingcb--, k(b), E = E.next;
|
|
1987
|
+
}
|
|
1988
|
+
l.corkedRequestsFree.next = s;
|
|
1989
|
+
}
|
|
1990
|
+
return Object.defineProperty(I.prototype, "destroyed", {
|
|
1991
|
+
// making it explicit this property is not enumerable
|
|
1992
|
+
// because otherwise some prototype manipulation in
|
|
1993
|
+
// userland will fail
|
|
1994
|
+
enumerable: !1,
|
|
1995
|
+
get: function() {
|
|
1996
|
+
return this._writableState === void 0 ? !1 : this._writableState.destroyed;
|
|
1997
|
+
},
|
|
1998
|
+
set: function(s) {
|
|
1999
|
+
this._writableState && (this._writableState.destroyed = s);
|
|
2000
|
+
}
|
|
2001
|
+
}), I.prototype.destroy = d.destroy, I.prototype._undestroy = d.undestroy, I.prototype._destroy = function(s, l) {
|
|
2002
|
+
l(s);
|
|
2003
|
+
}, lt;
|
|
2004
|
+
}
|
|
2005
|
+
var ct, nr;
|
|
2006
|
+
function Re() {
|
|
2007
|
+
if (nr)
|
|
2008
|
+
return ct;
|
|
2009
|
+
nr = 1;
|
|
2010
|
+
var e = Object.keys || function(R) {
|
|
2011
|
+
var L = [];
|
|
2012
|
+
for (var S in R)
|
|
2013
|
+
L.push(S);
|
|
2014
|
+
return L;
|
|
2015
|
+
};
|
|
2016
|
+
ct = f;
|
|
2017
|
+
var t = Jr(), r = $r();
|
|
2018
|
+
le(f, t);
|
|
2019
|
+
for (var o = e(r.prototype), a = 0; a < o.length; a++) {
|
|
2020
|
+
var p = o[a];
|
|
2021
|
+
f.prototype[p] || (f.prototype[p] = r.prototype[p]);
|
|
2022
|
+
}
|
|
2023
|
+
function f(R) {
|
|
2024
|
+
if (!(this instanceof f))
|
|
2025
|
+
return new f(R);
|
|
2026
|
+
t.call(this, R), r.call(this, R), this.allowHalfOpen = !0, R && (R.readable === !1 && (this.readable = !1), R.writable === !1 && (this.writable = !1), R.allowHalfOpen === !1 && (this.allowHalfOpen = !1, this.once("end", h)));
|
|
2027
|
+
}
|
|
2028
|
+
Object.defineProperty(f.prototype, "writableHighWaterMark", {
|
|
2029
|
+
// making it explicit this property is not enumerable
|
|
2030
|
+
// because otherwise some prototype manipulation in
|
|
2031
|
+
// userland will fail
|
|
2032
|
+
enumerable: !1,
|
|
2033
|
+
get: function() {
|
|
2034
|
+
return this._writableState.highWaterMark;
|
|
2035
|
+
}
|
|
2036
|
+
}), Object.defineProperty(f.prototype, "writableBuffer", {
|
|
2037
|
+
// making it explicit this property is not enumerable
|
|
2038
|
+
// because otherwise some prototype manipulation in
|
|
2039
|
+
// userland will fail
|
|
2040
|
+
enumerable: !1,
|
|
2041
|
+
get: function() {
|
|
2042
|
+
return this._writableState && this._writableState.getBuffer();
|
|
2043
|
+
}
|
|
2044
|
+
}), Object.defineProperty(f.prototype, "writableLength", {
|
|
2045
|
+
// making it explicit this property is not enumerable
|
|
2046
|
+
// because otherwise some prototype manipulation in
|
|
2047
|
+
// userland will fail
|
|
2048
|
+
enumerable: !1,
|
|
2049
|
+
get: function() {
|
|
2050
|
+
return this._writableState.length;
|
|
2051
|
+
}
|
|
2052
|
+
});
|
|
2053
|
+
function h() {
|
|
2054
|
+
this._writableState.ended || U.nextTick(d, this);
|
|
2055
|
+
}
|
|
2056
|
+
function d(R) {
|
|
2057
|
+
R.end();
|
|
2058
|
+
}
|
|
2059
|
+
return Object.defineProperty(f.prototype, "destroyed", {
|
|
2060
|
+
// making it explicit this property is not enumerable
|
|
2061
|
+
// because otherwise some prototype manipulation in
|
|
2062
|
+
// userland will fail
|
|
2063
|
+
enumerable: !1,
|
|
2064
|
+
get: function() {
|
|
2065
|
+
return this._readableState === void 0 || this._writableState === void 0 ? !1 : this._readableState.destroyed && this._writableState.destroyed;
|
|
2066
|
+
},
|
|
2067
|
+
set: function(R) {
|
|
2068
|
+
this._readableState === void 0 || this._writableState === void 0 || (this._readableState.destroyed = R, this._writableState.destroyed = R);
|
|
2069
|
+
}
|
|
2070
|
+
}), ct;
|
|
2071
|
+
}
|
|
2072
|
+
var ft = {}, pt = { exports: {} };
|
|
2073
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
2074
|
+
var or;
|
|
2075
|
+
function ai() {
|
|
2076
|
+
return or || (or = 1, function(e, t) {
|
|
2077
|
+
var r = Ge, o = r.Buffer;
|
|
2078
|
+
function a(f, h) {
|
|
2079
|
+
for (var d in f)
|
|
2080
|
+
h[d] = f[d];
|
|
2081
|
+
}
|
|
2082
|
+
o.from && o.alloc && o.allocUnsafe && o.allocUnsafeSlow ? e.exports = r : (a(r, t), t.Buffer = p);
|
|
2083
|
+
function p(f, h, d) {
|
|
2084
|
+
return o(f, h, d);
|
|
2085
|
+
}
|
|
2086
|
+
p.prototype = Object.create(o.prototype), a(o, p), p.from = function(f, h, d) {
|
|
2087
|
+
if (typeof f == "number")
|
|
2088
|
+
throw new TypeError("Argument must not be a number");
|
|
2089
|
+
return o(f, h, d);
|
|
2090
|
+
}, p.alloc = function(f, h, d) {
|
|
2091
|
+
if (typeof f != "number")
|
|
2092
|
+
throw new TypeError("Argument must be a number");
|
|
2093
|
+
var R = o(f);
|
|
2094
|
+
return h !== void 0 ? typeof d == "string" ? R.fill(h, d) : R.fill(h) : R.fill(0), R;
|
|
2095
|
+
}, p.allocUnsafe = function(f) {
|
|
2096
|
+
if (typeof f != "number")
|
|
2097
|
+
throw new TypeError("Argument must be a number");
|
|
2098
|
+
return o(f);
|
|
2099
|
+
}, p.allocUnsafeSlow = function(f) {
|
|
2100
|
+
if (typeof f != "number")
|
|
2101
|
+
throw new TypeError("Argument must be a number");
|
|
2102
|
+
return r.SlowBuffer(f);
|
|
2103
|
+
};
|
|
2104
|
+
}(pt, pt.exports)), pt.exports;
|
|
2105
|
+
}
|
|
2106
|
+
var ir;
|
|
2107
|
+
function ar() {
|
|
2108
|
+
if (ir)
|
|
2109
|
+
return ft;
|
|
2110
|
+
ir = 1;
|
|
2111
|
+
var e = ai().Buffer, t = e.isEncoding || function(u) {
|
|
2112
|
+
switch (u = "" + u, u && u.toLowerCase()) {
|
|
2113
|
+
case "hex":
|
|
2114
|
+
case "utf8":
|
|
2115
|
+
case "utf-8":
|
|
2116
|
+
case "ascii":
|
|
2117
|
+
case "binary":
|
|
2118
|
+
case "base64":
|
|
2119
|
+
case "ucs2":
|
|
2120
|
+
case "ucs-2":
|
|
2121
|
+
case "utf16le":
|
|
2122
|
+
case "utf-16le":
|
|
2123
|
+
case "raw":
|
|
2124
|
+
return !0;
|
|
2125
|
+
default:
|
|
2126
|
+
return !1;
|
|
2127
|
+
}
|
|
2128
|
+
};
|
|
2129
|
+
function r(u) {
|
|
2130
|
+
if (!u)
|
|
2131
|
+
return "utf8";
|
|
2132
|
+
for (var w; ; )
|
|
2133
|
+
switch (u) {
|
|
2134
|
+
case "utf8":
|
|
2135
|
+
case "utf-8":
|
|
2136
|
+
return "utf8";
|
|
2137
|
+
case "ucs2":
|
|
2138
|
+
case "ucs-2":
|
|
2139
|
+
case "utf16le":
|
|
2140
|
+
case "utf-16le":
|
|
2141
|
+
return "utf16le";
|
|
2142
|
+
case "latin1":
|
|
2143
|
+
case "binary":
|
|
2144
|
+
return "latin1";
|
|
2145
|
+
case "base64":
|
|
2146
|
+
case "ascii":
|
|
2147
|
+
case "hex":
|
|
2148
|
+
return u;
|
|
2149
|
+
default:
|
|
2150
|
+
if (w)
|
|
2151
|
+
return;
|
|
2152
|
+
u = ("" + u).toLowerCase(), w = !0;
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
function o(u) {
|
|
2156
|
+
var w = r(u);
|
|
2157
|
+
if (typeof w != "string" && (e.isEncoding === t || !t(u)))
|
|
2158
|
+
throw new Error("Unknown encoding: " + u);
|
|
2159
|
+
return w || u;
|
|
2160
|
+
}
|
|
2161
|
+
ft.StringDecoder = a;
|
|
2162
|
+
function a(u) {
|
|
2163
|
+
this.encoding = o(u);
|
|
2164
|
+
var w;
|
|
2165
|
+
switch (this.encoding) {
|
|
2166
|
+
case "utf16le":
|
|
2167
|
+
this.text = S, this.end = M, w = 4;
|
|
2168
|
+
break;
|
|
2169
|
+
case "utf8":
|
|
2170
|
+
this.fillLast = d, w = 4;
|
|
2171
|
+
break;
|
|
2172
|
+
case "base64":
|
|
2173
|
+
this.text = W, this.end = x, w = 3;
|
|
2174
|
+
break;
|
|
2175
|
+
default:
|
|
2176
|
+
this.write = A, this.end = P;
|
|
2177
|
+
return;
|
|
2178
|
+
}
|
|
2179
|
+
this.lastNeed = 0, this.lastTotal = 0, this.lastChar = e.allocUnsafe(w);
|
|
2180
|
+
}
|
|
2181
|
+
a.prototype.write = function(u) {
|
|
2182
|
+
if (u.length === 0)
|
|
2183
|
+
return "";
|
|
2184
|
+
var w, v;
|
|
2185
|
+
if (this.lastNeed) {
|
|
2186
|
+
if (w = this.fillLast(u), w === void 0)
|
|
2187
|
+
return "";
|
|
2188
|
+
v = this.lastNeed, this.lastNeed = 0;
|
|
2189
|
+
} else
|
|
2190
|
+
v = 0;
|
|
2191
|
+
return v < u.length ? w ? w + this.text(u, v) : this.text(u, v) : w || "";
|
|
2192
|
+
}, a.prototype.end = L, a.prototype.text = R, a.prototype.fillLast = function(u) {
|
|
2193
|
+
if (this.lastNeed <= u.length)
|
|
2194
|
+
return u.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
2195
|
+
u.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, u.length), this.lastNeed -= u.length;
|
|
2196
|
+
};
|
|
2197
|
+
function p(u) {
|
|
2198
|
+
return u <= 127 ? 0 : u >> 5 === 6 ? 2 : u >> 4 === 14 ? 3 : u >> 3 === 30 ? 4 : u >> 6 === 2 ? -1 : -2;
|
|
2199
|
+
}
|
|
2200
|
+
function f(u, w, v) {
|
|
2201
|
+
var O = w.length - 1;
|
|
2202
|
+
if (O < v)
|
|
2203
|
+
return 0;
|
|
2204
|
+
var j = p(w[O]);
|
|
2205
|
+
return j >= 0 ? (j > 0 && (u.lastNeed = j - 1), j) : --O < v || j === -2 ? 0 : (j = p(w[O]), j >= 0 ? (j > 0 && (u.lastNeed = j - 2), j) : --O < v || j === -2 ? 0 : (j = p(w[O]), j >= 0 ? (j > 0 && (j === 2 ? j = 0 : u.lastNeed = j - 3), j) : 0));
|
|
2206
|
+
}
|
|
2207
|
+
function h(u, w, v) {
|
|
2208
|
+
if ((w[0] & 192) !== 128)
|
|
2209
|
+
return u.lastNeed = 0, "�";
|
|
2210
|
+
if (u.lastNeed > 1 && w.length > 1) {
|
|
2211
|
+
if ((w[1] & 192) !== 128)
|
|
2212
|
+
return u.lastNeed = 1, "�";
|
|
2213
|
+
if (u.lastNeed > 2 && w.length > 2 && (w[2] & 192) !== 128)
|
|
2214
|
+
return u.lastNeed = 2, "�";
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
function d(u) {
|
|
2218
|
+
var w = this.lastTotal - this.lastNeed, v = h(this, u);
|
|
2219
|
+
if (v !== void 0)
|
|
2220
|
+
return v;
|
|
2221
|
+
if (this.lastNeed <= u.length)
|
|
2222
|
+
return u.copy(this.lastChar, w, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
2223
|
+
u.copy(this.lastChar, w, 0, u.length), this.lastNeed -= u.length;
|
|
2224
|
+
}
|
|
2225
|
+
function R(u, w) {
|
|
2226
|
+
var v = f(this, u, w);
|
|
2227
|
+
if (!this.lastNeed)
|
|
2228
|
+
return u.toString("utf8", w);
|
|
2229
|
+
this.lastTotal = v;
|
|
2230
|
+
var O = u.length - (v - this.lastNeed);
|
|
2231
|
+
return u.copy(this.lastChar, 0, O), u.toString("utf8", w, O);
|
|
2232
|
+
}
|
|
2233
|
+
function L(u) {
|
|
2234
|
+
var w = u && u.length ? this.write(u) : "";
|
|
2235
|
+
return this.lastNeed ? w + "�" : w;
|
|
2236
|
+
}
|
|
2237
|
+
function S(u, w) {
|
|
2238
|
+
if ((u.length - w) % 2 === 0) {
|
|
2239
|
+
var v = u.toString("utf16le", w);
|
|
2240
|
+
if (v) {
|
|
2241
|
+
var O = v.charCodeAt(v.length - 1);
|
|
2242
|
+
if (O >= 55296 && O <= 56319)
|
|
2243
|
+
return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = u[u.length - 2], this.lastChar[1] = u[u.length - 1], v.slice(0, -1);
|
|
2244
|
+
}
|
|
2245
|
+
return v;
|
|
2246
|
+
}
|
|
2247
|
+
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = u[u.length - 1], u.toString("utf16le", w, u.length - 1);
|
|
2248
|
+
}
|
|
2249
|
+
function M(u) {
|
|
2250
|
+
var w = u && u.length ? this.write(u) : "";
|
|
2251
|
+
if (this.lastNeed) {
|
|
2252
|
+
var v = this.lastTotal - this.lastNeed;
|
|
2253
|
+
return w + this.lastChar.toString("utf16le", 0, v);
|
|
2254
|
+
}
|
|
2255
|
+
return w;
|
|
2256
|
+
}
|
|
2257
|
+
function W(u, w) {
|
|
2258
|
+
var v = (u.length - w) % 3;
|
|
2259
|
+
return v === 0 ? u.toString("base64", w) : (this.lastNeed = 3 - v, this.lastTotal = 3, v === 1 ? this.lastChar[0] = u[u.length - 1] : (this.lastChar[0] = u[u.length - 2], this.lastChar[1] = u[u.length - 1]), u.toString("base64", w, u.length - v));
|
|
2260
|
+
}
|
|
2261
|
+
function x(u) {
|
|
2262
|
+
var w = u && u.length ? this.write(u) : "";
|
|
2263
|
+
return this.lastNeed ? w + this.lastChar.toString("base64", 0, 3 - this.lastNeed) : w;
|
|
2264
|
+
}
|
|
2265
|
+
function A(u) {
|
|
2266
|
+
return u.toString(this.encoding);
|
|
2267
|
+
}
|
|
2268
|
+
function P(u) {
|
|
2269
|
+
return u && u.length ? this.write(u) : "";
|
|
2270
|
+
}
|
|
2271
|
+
return ft;
|
|
2272
|
+
}
|
|
2273
|
+
var sr = de.codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
2274
|
+
function si(e) {
|
|
2275
|
+
var t = !1;
|
|
2276
|
+
return function() {
|
|
2277
|
+
if (!t) {
|
|
2278
|
+
t = !0;
|
|
2279
|
+
for (var r = arguments.length, o = new Array(r), a = 0; a < r; a++)
|
|
2280
|
+
o[a] = arguments[a];
|
|
2281
|
+
e.apply(this, o);
|
|
2282
|
+
}
|
|
2283
|
+
};
|
|
2284
|
+
}
|
|
2285
|
+
function ui() {
|
|
2286
|
+
}
|
|
2287
|
+
function li(e) {
|
|
2288
|
+
return e.setHeader && typeof e.abort == "function";
|
|
2289
|
+
}
|
|
2290
|
+
function Kr(e, t, r) {
|
|
2291
|
+
if (typeof t == "function")
|
|
2292
|
+
return Kr(e, null, t);
|
|
2293
|
+
t || (t = {}), r = si(r || ui);
|
|
2294
|
+
var o = t.readable || t.readable !== !1 && e.readable, a = t.writable || t.writable !== !1 && e.writable, p = function() {
|
|
2295
|
+
e.writable || h();
|
|
2296
|
+
}, f = e._writableState && e._writableState.finished, h = function() {
|
|
2297
|
+
a = !1, f = !0, o || r.call(e);
|
|
2298
|
+
}, d = e._readableState && e._readableState.endEmitted, R = function() {
|
|
2299
|
+
o = !1, d = !0, a || r.call(e);
|
|
2300
|
+
}, L = function(W) {
|
|
2301
|
+
r.call(e, W);
|
|
2302
|
+
}, S = function() {
|
|
2303
|
+
var W;
|
|
2304
|
+
if (o && !d)
|
|
2305
|
+
return (!e._readableState || !e._readableState.ended) && (W = new sr()), r.call(e, W);
|
|
2306
|
+
if (a && !f)
|
|
2307
|
+
return (!e._writableState || !e._writableState.ended) && (W = new sr()), r.call(e, W);
|
|
2308
|
+
}, M = function() {
|
|
2309
|
+
e.req.on("finish", h);
|
|
2310
|
+
};
|
|
2311
|
+
return li(e) ? (e.on("complete", h), e.on("abort", S), e.req ? M() : e.on("request", M)) : a && !e._writableState && (e.on("end", p), e.on("close", p)), e.on("end", R), e.on("finish", h), t.error !== !1 && e.on("error", L), e.on("close", S), function() {
|
|
2312
|
+
e.removeListener("complete", h), e.removeListener("abort", S), e.removeListener("request", M), e.req && e.req.removeListener("finish", h), e.removeListener("end", p), e.removeListener("close", p), e.removeListener("finish", h), e.removeListener("end", R), e.removeListener("error", L), e.removeListener("close", S);
|
|
2313
|
+
};
|
|
2314
|
+
}
|
|
2315
|
+
var Nt = Kr, ht, ur;
|
|
2316
|
+
function ci() {
|
|
2317
|
+
if (ur)
|
|
2318
|
+
return ht;
|
|
2319
|
+
ur = 1;
|
|
2320
|
+
var e;
|
|
2321
|
+
function t(v, O, j) {
|
|
2322
|
+
return O = r(O), O in v ? Object.defineProperty(v, O, { value: j, enumerable: !0, configurable: !0, writable: !0 }) : v[O] = j, v;
|
|
2323
|
+
}
|
|
2324
|
+
function r(v) {
|
|
2325
|
+
var O = o(v, "string");
|
|
2326
|
+
return typeof O == "symbol" ? O : String(O);
|
|
2327
|
+
}
|
|
2328
|
+
function o(v, O) {
|
|
2329
|
+
if (typeof v != "object" || v === null)
|
|
2330
|
+
return v;
|
|
2331
|
+
var j = v[Symbol.toPrimitive];
|
|
2332
|
+
if (j !== void 0) {
|
|
2333
|
+
var F = j.call(v, O || "default");
|
|
2334
|
+
if (typeof F != "object")
|
|
2335
|
+
return F;
|
|
2336
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2337
|
+
}
|
|
2338
|
+
return (O === "string" ? String : Number)(v);
|
|
2339
|
+
}
|
|
2340
|
+
var a = Nt, p = Symbol("lastResolve"), f = Symbol("lastReject"), h = Symbol("error"), d = Symbol("ended"), R = Symbol("lastPromise"), L = Symbol("handlePromise"), S = Symbol("stream");
|
|
2341
|
+
function M(v, O) {
|
|
2342
|
+
return {
|
|
2343
|
+
value: v,
|
|
2344
|
+
done: O
|
|
2345
|
+
};
|
|
2346
|
+
}
|
|
2347
|
+
function W(v) {
|
|
2348
|
+
var O = v[p];
|
|
2349
|
+
if (O !== null) {
|
|
2350
|
+
var j = v[S].read();
|
|
2351
|
+
j !== null && (v[R] = null, v[p] = null, v[f] = null, O(M(j, !1)));
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2354
|
+
function x(v) {
|
|
2355
|
+
U.nextTick(W, v);
|
|
2356
|
+
}
|
|
2357
|
+
function A(v, O) {
|
|
2358
|
+
return function(j, F) {
|
|
2359
|
+
v.then(function() {
|
|
2360
|
+
if (O[d]) {
|
|
2361
|
+
j(M(void 0, !0));
|
|
2362
|
+
return;
|
|
2363
|
+
}
|
|
2364
|
+
O[L](j, F);
|
|
2365
|
+
}, F);
|
|
2366
|
+
};
|
|
2367
|
+
}
|
|
2368
|
+
var P = Object.getPrototypeOf(function() {
|
|
2369
|
+
}), u = Object.setPrototypeOf((e = {
|
|
2370
|
+
get stream() {
|
|
2371
|
+
return this[S];
|
|
2372
|
+
},
|
|
2373
|
+
next: function() {
|
|
2374
|
+
var v = this, O = this[h];
|
|
2375
|
+
if (O !== null)
|
|
2376
|
+
return Promise.reject(O);
|
|
2377
|
+
if (this[d])
|
|
2378
|
+
return Promise.resolve(M(void 0, !0));
|
|
2379
|
+
if (this[S].destroyed)
|
|
2380
|
+
return new Promise(function(I, N) {
|
|
2381
|
+
U.nextTick(function() {
|
|
2382
|
+
v[h] ? N(v[h]) : I(M(void 0, !0));
|
|
2383
|
+
});
|
|
2384
|
+
});
|
|
2385
|
+
var j = this[R], F;
|
|
2386
|
+
if (j)
|
|
2387
|
+
F = new Promise(A(j, this));
|
|
2388
|
+
else {
|
|
2389
|
+
var z = this[S].read();
|
|
2390
|
+
if (z !== null)
|
|
2391
|
+
return Promise.resolve(M(z, !1));
|
|
2392
|
+
F = new Promise(this[L]);
|
|
2393
|
+
}
|
|
2394
|
+
return this[R] = F, F;
|
|
2395
|
+
}
|
|
2396
|
+
}, t(e, Symbol.asyncIterator, function() {
|
|
2397
|
+
return this;
|
|
2398
|
+
}), t(e, "return", function() {
|
|
2399
|
+
var v = this;
|
|
2400
|
+
return new Promise(function(O, j) {
|
|
2401
|
+
v[S].destroy(null, function(F) {
|
|
2402
|
+
if (F) {
|
|
2403
|
+
j(F);
|
|
2404
|
+
return;
|
|
2405
|
+
}
|
|
2406
|
+
O(M(void 0, !0));
|
|
2407
|
+
});
|
|
2408
|
+
});
|
|
2409
|
+
}), e), P), w = function(v) {
|
|
2410
|
+
var O, j = Object.create(u, (O = {}, t(O, S, {
|
|
2411
|
+
value: v,
|
|
2412
|
+
writable: !0
|
|
2413
|
+
}), t(O, p, {
|
|
2414
|
+
value: null,
|
|
2415
|
+
writable: !0
|
|
2416
|
+
}), t(O, f, {
|
|
2417
|
+
value: null,
|
|
2418
|
+
writable: !0
|
|
2419
|
+
}), t(O, h, {
|
|
2420
|
+
value: null,
|
|
2421
|
+
writable: !0
|
|
2422
|
+
}), t(O, d, {
|
|
2423
|
+
value: v._readableState.endEmitted,
|
|
2424
|
+
writable: !0
|
|
2425
|
+
}), t(O, L, {
|
|
2426
|
+
value: function(F, z) {
|
|
2427
|
+
var I = j[S].read();
|
|
2428
|
+
I ? (j[R] = null, j[p] = null, j[f] = null, F(M(I, !1))) : (j[p] = F, j[f] = z);
|
|
2429
|
+
},
|
|
2430
|
+
writable: !0
|
|
2431
|
+
}), O));
|
|
2432
|
+
return j[R] = null, a(v, function(F) {
|
|
2433
|
+
if (F && F.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
|
2434
|
+
var z = j[f];
|
|
2435
|
+
z !== null && (j[R] = null, j[p] = null, j[f] = null, z(F)), j[h] = F;
|
|
2436
|
+
return;
|
|
2437
|
+
}
|
|
2438
|
+
var I = j[p];
|
|
2439
|
+
I !== null && (j[R] = null, j[p] = null, j[f] = null, I(M(void 0, !0))), j[d] = !0;
|
|
2440
|
+
}), v.on("readable", x.bind(null, j)), j;
|
|
2441
|
+
};
|
|
2442
|
+
return ht = w, ht;
|
|
2443
|
+
}
|
|
2444
|
+
var lr, cr;
|
|
2445
|
+
function fi() {
|
|
2446
|
+
return cr || (cr = 1, lr = function() {
|
|
2447
|
+
throw new Error("Readable.from is not available in the browser");
|
|
2448
|
+
}), lr;
|
|
2449
|
+
}
|
|
2450
|
+
var dt, fr;
|
|
2451
|
+
function Jr() {
|
|
2452
|
+
if (fr)
|
|
2453
|
+
return dt;
|
|
2454
|
+
fr = 1, dt = N;
|
|
2455
|
+
var e;
|
|
2456
|
+
N.ReadableState = I, Or.EventEmitter;
|
|
2457
|
+
var t = function(n, i) {
|
|
2458
|
+
return n.listeners(i).length;
|
|
2459
|
+
}, r = Tr, o = Ge.Buffer, a = (typeof V < "u" ? V : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
|
|
2460
|
+
};
|
|
2461
|
+
function p(n) {
|
|
2462
|
+
return o.from(n);
|
|
2463
|
+
}
|
|
2464
|
+
function f(n) {
|
|
2465
|
+
return o.isBuffer(n) || n instanceof a;
|
|
2466
|
+
}
|
|
2467
|
+
var h = jt, d;
|
|
2468
|
+
h && h.debuglog ? d = h.debuglog("stream") : d = function() {
|
|
2469
|
+
};
|
|
2470
|
+
var R = $o(), L = Gr, S = Vr, M = S.getHighWaterMark, W = de.codes, x = W.ERR_INVALID_ARG_TYPE, A = W.ERR_STREAM_PUSH_AFTER_EOF, P = W.ERR_METHOD_NOT_IMPLEMENTED, u = W.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, w, v, O;
|
|
2471
|
+
le(N, r);
|
|
2472
|
+
var j = L.errorOrDestroy, F = ["error", "close", "destroy", "pause", "resume"];
|
|
2473
|
+
function z(n, i, m) {
|
|
2474
|
+
if (typeof n.prependListener == "function")
|
|
2475
|
+
return n.prependListener(i, m);
|
|
2476
|
+
!n._events || !n._events[i] ? n.on(i, m) : Array.isArray(n._events[i]) ? n._events[i].unshift(m) : n._events[i] = [m, n._events[i]];
|
|
2477
|
+
}
|
|
2478
|
+
function I(n, i, m) {
|
|
2479
|
+
e = e || Re(), n = n || {}, typeof m != "boolean" && (m = i instanceof e), this.objectMode = !!n.objectMode, m && (this.objectMode = this.objectMode || !!n.readableObjectMode), this.highWaterMark = M(this, n, "readableHighWaterMark", m), this.buffer = new R(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = n.emitClose !== !1, this.autoDestroy = !!n.autoDestroy, this.destroyed = !1, this.defaultEncoding = n.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, n.encoding && (w || (w = ar().StringDecoder), this.decoder = new w(n.encoding), this.encoding = n.encoding);
|
|
2480
|
+
}
|
|
2481
|
+
function N(n) {
|
|
2482
|
+
if (e = e || Re(), !(this instanceof N))
|
|
2483
|
+
return new N(n);
|
|
2484
|
+
var i = this instanceof e;
|
|
2485
|
+
this._readableState = new I(n, this, i), this.readable = !0, n && (typeof n.read == "function" && (this._read = n.read), typeof n.destroy == "function" && (this._destroy = n.destroy)), r.call(this);
|
|
2486
|
+
}
|
|
2487
|
+
Object.defineProperty(N.prototype, "destroyed", {
|
|
2488
|
+
// making it explicit this property is not enumerable
|
|
2489
|
+
// because otherwise some prototype manipulation in
|
|
2490
|
+
// userland will fail
|
|
2491
|
+
enumerable: !1,
|
|
2492
|
+
get: function() {
|
|
2493
|
+
return this._readableState === void 0 ? !1 : this._readableState.destroyed;
|
|
2494
|
+
},
|
|
2495
|
+
set: function(n) {
|
|
2496
|
+
this._readableState && (this._readableState.destroyed = n);
|
|
2497
|
+
}
|
|
2498
|
+
}), N.prototype.destroy = L.destroy, N.prototype._undestroy = L.undestroy, N.prototype._destroy = function(n, i) {
|
|
2499
|
+
i(n);
|
|
2500
|
+
}, N.prototype.push = function(n, i) {
|
|
2501
|
+
var m = this._readableState, T;
|
|
2502
|
+
return m.objectMode ? T = !0 : typeof n == "string" && (i = i || m.defaultEncoding, i !== m.encoding && (n = o.from(n, i), i = ""), T = !0), ee(this, n, i, !1, T);
|
|
2503
|
+
}, N.prototype.unshift = function(n) {
|
|
2504
|
+
return ee(this, n, null, !0, !1);
|
|
2505
|
+
};
|
|
2506
|
+
function ee(n, i, m, T, G) {
|
|
2507
|
+
d("readableAddChunk", i);
|
|
2508
|
+
var D = n._readableState;
|
|
2509
|
+
if (i === null)
|
|
2510
|
+
D.reading = !1, ae(n, D);
|
|
2511
|
+
else {
|
|
2512
|
+
var q;
|
|
2513
|
+
if (G || (q = Y(D, i)), q)
|
|
2514
|
+
j(n, q);
|
|
2515
|
+
else if (D.objectMode || i && i.length > 0)
|
|
2516
|
+
if (typeof i != "string" && !D.objectMode && Object.getPrototypeOf(i) !== o.prototype && (i = p(i)), T)
|
|
2517
|
+
D.endEmitted ? j(n, new u()) : X(n, D, i, !0);
|
|
2518
|
+
else if (D.ended)
|
|
2519
|
+
j(n, new A());
|
|
2520
|
+
else {
|
|
2521
|
+
if (D.destroyed)
|
|
2522
|
+
return !1;
|
|
2523
|
+
D.reading = !1, D.decoder && !m ? (i = D.decoder.write(i), D.objectMode || i.length !== 0 ? X(n, D, i, !1) : K(n, D)) : X(n, D, i, !1);
|
|
2524
|
+
}
|
|
2525
|
+
else
|
|
2526
|
+
T || (D.reading = !1, K(n, D));
|
|
2527
|
+
}
|
|
2528
|
+
return !D.ended && (D.length < D.highWaterMark || D.length === 0);
|
|
2529
|
+
}
|
|
2530
|
+
function X(n, i, m, T) {
|
|
2531
|
+
i.flowing && i.length === 0 && !i.sync ? (i.awaitDrain = 0, n.emit("data", m)) : (i.length += i.objectMode ? 1 : m.length, T ? i.buffer.unshift(m) : i.buffer.push(m), i.needReadable && te(n)), K(n, i);
|
|
2532
|
+
}
|
|
2533
|
+
function Y(n, i) {
|
|
2534
|
+
var m;
|
|
2535
|
+
return !f(i) && typeof i != "string" && i !== void 0 && !n.objectMode && (m = new x("chunk", ["string", "Buffer", "Uint8Array"], i)), m;
|
|
2536
|
+
}
|
|
2537
|
+
N.prototype.isPaused = function() {
|
|
2538
|
+
return this._readableState.flowing === !1;
|
|
2539
|
+
}, N.prototype.setEncoding = function(n) {
|
|
2540
|
+
w || (w = ar().StringDecoder);
|
|
2541
|
+
var i = new w(n);
|
|
2542
|
+
this._readableState.decoder = i, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
2543
|
+
for (var m = this._readableState.buffer.head, T = ""; m !== null; )
|
|
2544
|
+
T += i.write(m.data), m = m.next;
|
|
2545
|
+
return this._readableState.buffer.clear(), T !== "" && this._readableState.buffer.push(T), this._readableState.length = T.length, this;
|
|
2546
|
+
};
|
|
2547
|
+
var oe = 1073741824;
|
|
2548
|
+
function Z(n) {
|
|
2549
|
+
return n >= oe ? n = oe : (n--, n |= n >>> 1, n |= n >>> 2, n |= n >>> 4, n |= n >>> 8, n |= n >>> 16, n++), n;
|
|
2550
|
+
}
|
|
2551
|
+
function ie(n, i) {
|
|
2552
|
+
return n <= 0 || i.length === 0 && i.ended ? 0 : i.objectMode ? 1 : n !== n ? i.flowing && i.length ? i.buffer.head.data.length : i.length : (n > i.highWaterMark && (i.highWaterMark = Z(n)), n <= i.length ? n : i.ended ? i.length : (i.needReadable = !0, 0));
|
|
2553
|
+
}
|
|
2554
|
+
N.prototype.read = function(n) {
|
|
2555
|
+
d("read", n), n = parseInt(n, 10);
|
|
2556
|
+
var i = this._readableState, m = n;
|
|
2557
|
+
if (n !== 0 && (i.emittedReadable = !1), n === 0 && i.needReadable && ((i.highWaterMark !== 0 ? i.length >= i.highWaterMark : i.length > 0) || i.ended))
|
|
2558
|
+
return d("read: emitReadable", i.length, i.ended), i.length === 0 && i.ended ? b(this) : te(this), null;
|
|
2559
|
+
if (n = ie(n, i), n === 0 && i.ended)
|
|
2560
|
+
return i.length === 0 && b(this), null;
|
|
2561
|
+
var T = i.needReadable;
|
|
2562
|
+
d("need readable", T), (i.length === 0 || i.length - n < i.highWaterMark) && (T = !0, d("length less than watermark", T)), i.ended || i.reading ? (T = !1, d("reading or ended", T)) : T && (d("do read"), i.reading = !0, i.sync = !0, i.length === 0 && (i.needReadable = !0), this._read(i.highWaterMark), i.sync = !1, i.reading || (n = ie(m, i)));
|
|
2563
|
+
var G;
|
|
2564
|
+
return n > 0 ? G = l(n, i) : G = null, G === null ? (i.needReadable = i.length <= i.highWaterMark, n = 0) : (i.length -= n, i.awaitDrain = 0), i.length === 0 && (i.ended || (i.needReadable = !0), m !== n && i.ended && b(this)), G !== null && this.emit("data", G), G;
|
|
2565
|
+
};
|
|
2566
|
+
function ae(n, i) {
|
|
2567
|
+
if (d("onEofChunk"), !i.ended) {
|
|
2568
|
+
if (i.decoder) {
|
|
2569
|
+
var m = i.decoder.end();
|
|
2570
|
+
m && m.length && (i.buffer.push(m), i.length += i.objectMode ? 1 : m.length);
|
|
2571
|
+
}
|
|
2572
|
+
i.ended = !0, i.sync ? te(n) : (i.needReadable = !1, i.emittedReadable || (i.emittedReadable = !0, re(n)));
|
|
2573
|
+
}
|
|
2574
|
+
}
|
|
2575
|
+
function te(n) {
|
|
2576
|
+
var i = n._readableState;
|
|
2577
|
+
d("emitReadable", i.needReadable, i.emittedReadable), i.needReadable = !1, i.emittedReadable || (d("emitReadable", i.flowing), i.emittedReadable = !0, U.nextTick(re, n));
|
|
2578
|
+
}
|
|
2579
|
+
function re(n) {
|
|
2580
|
+
var i = n._readableState;
|
|
2581
|
+
d("emitReadable_", i.destroyed, i.length, i.ended), !i.destroyed && (i.length || i.ended) && (n.emit("readable"), i.emittedReadable = !1), i.needReadable = !i.flowing && !i.ended && i.length <= i.highWaterMark, s(n);
|
|
2582
|
+
}
|
|
2583
|
+
function K(n, i) {
|
|
2584
|
+
i.readingMore || (i.readingMore = !0, U.nextTick(ne, n, i));
|
|
2585
|
+
}
|
|
2586
|
+
function ne(n, i) {
|
|
2587
|
+
for (; !i.reading && !i.ended && (i.length < i.highWaterMark || i.flowing && i.length === 0); ) {
|
|
2588
|
+
var m = i.length;
|
|
2589
|
+
if (d("maybeReadMore read 0"), n.read(0), m === i.length)
|
|
2590
|
+
break;
|
|
2591
|
+
}
|
|
2592
|
+
i.readingMore = !1;
|
|
2593
|
+
}
|
|
2594
|
+
N.prototype._read = function(n) {
|
|
2595
|
+
j(this, new P("_read()"));
|
|
2596
|
+
}, N.prototype.pipe = function(n, i) {
|
|
2597
|
+
var m = this, T = this._readableState;
|
|
2598
|
+
switch (T.pipesCount) {
|
|
2599
|
+
case 0:
|
|
2600
|
+
T.pipes = n;
|
|
2601
|
+
break;
|
|
2602
|
+
case 1:
|
|
2603
|
+
T.pipes = [T.pipes, n];
|
|
2604
|
+
break;
|
|
2605
|
+
default:
|
|
2606
|
+
T.pipes.push(n);
|
|
2607
|
+
break;
|
|
2608
|
+
}
|
|
2609
|
+
T.pipesCount += 1, d("pipe count=%d opts=%j", T.pipesCount, i);
|
|
2610
|
+
var G = (!i || i.end !== !1) && n !== U.stdout && n !== U.stderr, D = G ? ye : Oe;
|
|
2611
|
+
T.endEmitted ? U.nextTick(D) : m.once("end", D), n.on("unpipe", q);
|
|
2612
|
+
function q(be, ge) {
|
|
2613
|
+
d("onunpipe"), be === m && ge && ge.hasUnpiped === !1 && (ge.hasUnpiped = !0, rn());
|
|
2614
|
+
}
|
|
2615
|
+
function ye() {
|
|
2616
|
+
d("onend"), n.end();
|
|
2617
|
+
}
|
|
2618
|
+
var g = ue(m);
|
|
2619
|
+
n.on("drain", g);
|
|
2620
|
+
var ke = !1;
|
|
2621
|
+
function rn() {
|
|
2622
|
+
d("cleanup"), n.removeListener("close", Xe), n.removeListener("finish", Ye), n.removeListener("drain", g), n.removeListener("error", Je), n.removeListener("unpipe", q), m.removeListener("end", ye), m.removeListener("end", Oe), m.removeListener("data", Dt), ke = !0, T.awaitDrain && (!n._writableState || n._writableState.needDrain) && g();
|
|
2623
|
+
}
|
|
2624
|
+
m.on("data", Dt);
|
|
2625
|
+
function Dt(be) {
|
|
2626
|
+
d("ondata");
|
|
2627
|
+
var ge = n.write(be);
|
|
2628
|
+
d("dest.write", ge), ge === !1 && ((T.pipesCount === 1 && T.pipes === n || T.pipesCount > 1 && k(T.pipes, n) !== -1) && !ke && (d("false write response, pause", T.awaitDrain), T.awaitDrain++), m.pause());
|
|
2629
|
+
}
|
|
2630
|
+
function Je(be) {
|
|
2631
|
+
d("onerror", be), Oe(), n.removeListener("error", Je), t(n, "error") === 0 && j(n, be);
|
|
2632
|
+
}
|
|
2633
|
+
z(n, "error", Je);
|
|
2634
|
+
function Xe() {
|
|
2635
|
+
n.removeListener("finish", Ye), Oe();
|
|
2636
|
+
}
|
|
2637
|
+
n.once("close", Xe);
|
|
2638
|
+
function Ye() {
|
|
2639
|
+
d("onfinish"), n.removeListener("close", Xe), Oe();
|
|
2640
|
+
}
|
|
2641
|
+
n.once("finish", Ye);
|
|
2642
|
+
function Oe() {
|
|
2643
|
+
d("unpipe"), m.unpipe(n);
|
|
2644
|
+
}
|
|
2645
|
+
return n.emit("pipe", m), T.flowing || (d("pipe resume"), m.resume()), n;
|
|
2646
|
+
};
|
|
2647
|
+
function ue(n) {
|
|
2648
|
+
return function() {
|
|
2649
|
+
var i = n._readableState;
|
|
2650
|
+
d("pipeOnDrain", i.awaitDrain), i.awaitDrain && i.awaitDrain--, i.awaitDrain === 0 && t(n, "data") && (i.flowing = !0, s(n));
|
|
2651
|
+
};
|
|
2652
|
+
}
|
|
2653
|
+
N.prototype.unpipe = function(n) {
|
|
2654
|
+
var i = this._readableState, m = {
|
|
2655
|
+
hasUnpiped: !1
|
|
2656
|
+
};
|
|
2657
|
+
if (i.pipesCount === 0)
|
|
2658
|
+
return this;
|
|
2659
|
+
if (i.pipesCount === 1)
|
|
2660
|
+
return n && n !== i.pipes ? this : (n || (n = i.pipes), i.pipes = null, i.pipesCount = 0, i.flowing = !1, n && n.emit("unpipe", this, m), this);
|
|
2661
|
+
if (!n) {
|
|
2662
|
+
var T = i.pipes, G = i.pipesCount;
|
|
2663
|
+
i.pipes = null, i.pipesCount = 0, i.flowing = !1;
|
|
2664
|
+
for (var D = 0; D < G; D++)
|
|
2665
|
+
T[D].emit("unpipe", this, {
|
|
2666
|
+
hasUnpiped: !1
|
|
2667
|
+
});
|
|
2668
|
+
return this;
|
|
2669
|
+
}
|
|
2670
|
+
var q = k(i.pipes, n);
|
|
2671
|
+
return q === -1 ? this : (i.pipes.splice(q, 1), i.pipesCount -= 1, i.pipesCount === 1 && (i.pipes = i.pipes[0]), n.emit("unpipe", this, m), this);
|
|
2672
|
+
}, N.prototype.on = function(n, i) {
|
|
2673
|
+
var m = r.prototype.on.call(this, n, i), T = this._readableState;
|
|
2674
|
+
return n === "data" ? (T.readableListening = this.listenerCount("readable") > 0, T.flowing !== !1 && this.resume()) : n === "readable" && !T.endEmitted && !T.readableListening && (T.readableListening = T.needReadable = !0, T.flowing = !1, T.emittedReadable = !1, d("on readable", T.length, T.reading), T.length ? te(this) : T.reading || U.nextTick(y, this)), m;
|
|
2675
|
+
}, N.prototype.addListener = N.prototype.on, N.prototype.removeListener = function(n, i) {
|
|
2676
|
+
var m = r.prototype.removeListener.call(this, n, i);
|
|
2677
|
+
return n === "readable" && U.nextTick(c, this), m;
|
|
2678
|
+
}, N.prototype.removeAllListeners = function(n) {
|
|
2679
|
+
var i = r.prototype.removeAllListeners.apply(this, arguments);
|
|
2680
|
+
return (n === "readable" || n === void 0) && U.nextTick(c, this), i;
|
|
2681
|
+
};
|
|
2682
|
+
function c(n) {
|
|
2683
|
+
var i = n._readableState;
|
|
2684
|
+
i.readableListening = n.listenerCount("readable") > 0, i.resumeScheduled && !i.paused ? i.flowing = !0 : n.listenerCount("data") > 0 && n.resume();
|
|
2685
|
+
}
|
|
2686
|
+
function y(n) {
|
|
2687
|
+
d("readable nexttick read 0"), n.read(0);
|
|
2688
|
+
}
|
|
2689
|
+
N.prototype.resume = function() {
|
|
2690
|
+
var n = this._readableState;
|
|
2691
|
+
return n.flowing || (d("resume"), n.flowing = !n.readableListening, _(this, n)), n.paused = !1, this;
|
|
2692
|
+
};
|
|
2693
|
+
function _(n, i) {
|
|
2694
|
+
i.resumeScheduled || (i.resumeScheduled = !0, U.nextTick(C, n, i));
|
|
2695
|
+
}
|
|
2696
|
+
function C(n, i) {
|
|
2697
|
+
d("resume", i.reading), i.reading || n.read(0), i.resumeScheduled = !1, n.emit("resume"), s(n), i.flowing && !i.reading && n.read(0);
|
|
2698
|
+
}
|
|
2699
|
+
N.prototype.pause = function() {
|
|
2700
|
+
return d("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (d("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
|
|
2701
|
+
};
|
|
2702
|
+
function s(n) {
|
|
2703
|
+
var i = n._readableState;
|
|
2704
|
+
for (d("flow", i.flowing); i.flowing && n.read() !== null; )
|
|
2705
|
+
;
|
|
2706
|
+
}
|
|
2707
|
+
N.prototype.wrap = function(n) {
|
|
2708
|
+
var i = this, m = this._readableState, T = !1;
|
|
2709
|
+
n.on("end", function() {
|
|
2710
|
+
if (d("wrapped end"), m.decoder && !m.ended) {
|
|
2711
|
+
var q = m.decoder.end();
|
|
2712
|
+
q && q.length && i.push(q);
|
|
2713
|
+
}
|
|
2714
|
+
i.push(null);
|
|
2715
|
+
}), n.on("data", function(q) {
|
|
2716
|
+
if (d("wrapped data"), m.decoder && (q = m.decoder.write(q)), !(m.objectMode && q == null) && !(!m.objectMode && (!q || !q.length))) {
|
|
2717
|
+
var ye = i.push(q);
|
|
2718
|
+
ye || (T = !0, n.pause());
|
|
2719
|
+
}
|
|
2720
|
+
});
|
|
2721
|
+
for (var G in n)
|
|
2722
|
+
this[G] === void 0 && typeof n[G] == "function" && (this[G] = /* @__PURE__ */ function(q) {
|
|
2723
|
+
return function() {
|
|
2724
|
+
return n[q].apply(n, arguments);
|
|
2725
|
+
};
|
|
2726
|
+
}(G));
|
|
2727
|
+
for (var D = 0; D < F.length; D++)
|
|
2728
|
+
n.on(F[D], this.emit.bind(this, F[D]));
|
|
2729
|
+
return this._read = function(q) {
|
|
2730
|
+
d("wrapped _read", q), T && (T = !1, n.resume());
|
|
2731
|
+
}, this;
|
|
2732
|
+
}, typeof Symbol == "function" && (N.prototype[Symbol.asyncIterator] = function() {
|
|
2733
|
+
return v === void 0 && (v = ci()), v(this);
|
|
2734
|
+
}), Object.defineProperty(N.prototype, "readableHighWaterMark", {
|
|
2735
|
+
// making it explicit this property is not enumerable
|
|
2736
|
+
// because otherwise some prototype manipulation in
|
|
2737
|
+
// userland will fail
|
|
2738
|
+
enumerable: !1,
|
|
2739
|
+
get: function() {
|
|
2740
|
+
return this._readableState.highWaterMark;
|
|
2741
|
+
}
|
|
2742
|
+
}), Object.defineProperty(N.prototype, "readableBuffer", {
|
|
2743
|
+
// making it explicit this property is not enumerable
|
|
2744
|
+
// because otherwise some prototype manipulation in
|
|
2745
|
+
// userland will fail
|
|
2746
|
+
enumerable: !1,
|
|
2747
|
+
get: function() {
|
|
2748
|
+
return this._readableState && this._readableState.buffer;
|
|
2749
|
+
}
|
|
2750
|
+
}), Object.defineProperty(N.prototype, "readableFlowing", {
|
|
2751
|
+
// making it explicit this property is not enumerable
|
|
2752
|
+
// because otherwise some prototype manipulation in
|
|
2753
|
+
// userland will fail
|
|
2754
|
+
enumerable: !1,
|
|
2755
|
+
get: function() {
|
|
2756
|
+
return this._readableState.flowing;
|
|
2757
|
+
},
|
|
2758
|
+
set: function(n) {
|
|
2759
|
+
this._readableState && (this._readableState.flowing = n);
|
|
2760
|
+
}
|
|
2761
|
+
}), N._fromList = l, Object.defineProperty(N.prototype, "readableLength", {
|
|
2762
|
+
// making it explicit this property is not enumerable
|
|
2763
|
+
// because otherwise some prototype manipulation in
|
|
2764
|
+
// userland will fail
|
|
2765
|
+
enumerable: !1,
|
|
2766
|
+
get: function() {
|
|
2767
|
+
return this._readableState.length;
|
|
2768
|
+
}
|
|
2769
|
+
});
|
|
2770
|
+
function l(n, i) {
|
|
2771
|
+
if (i.length === 0)
|
|
2772
|
+
return null;
|
|
2773
|
+
var m;
|
|
2774
|
+
return i.objectMode ? m = i.buffer.shift() : !n || n >= i.length ? (i.decoder ? m = i.buffer.join("") : i.buffer.length === 1 ? m = i.buffer.first() : m = i.buffer.concat(i.length), i.buffer.clear()) : m = i.buffer.consume(n, i.decoder), m;
|
|
2775
|
+
}
|
|
2776
|
+
function b(n) {
|
|
2777
|
+
var i = n._readableState;
|
|
2778
|
+
d("endReadable", i.endEmitted), i.endEmitted || (i.ended = !0, U.nextTick(E, i, n));
|
|
2779
|
+
}
|
|
2780
|
+
function E(n, i) {
|
|
2781
|
+
if (d("endReadableNT", n.endEmitted, n.length), !n.endEmitted && n.length === 0 && (n.endEmitted = !0, i.readable = !1, i.emit("end"), n.autoDestroy)) {
|
|
2782
|
+
var m = i._writableState;
|
|
2783
|
+
(!m || m.autoDestroy && m.finished) && i.destroy();
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
typeof Symbol == "function" && (N.from = function(n, i) {
|
|
2787
|
+
return O === void 0 && (O = fi()), O(N, n, i);
|
|
2788
|
+
});
|
|
2789
|
+
function k(n, i) {
|
|
2790
|
+
for (var m = 0, T = n.length; m < T; m++)
|
|
2791
|
+
if (n[m] === i)
|
|
2792
|
+
return m;
|
|
2793
|
+
return -1;
|
|
2794
|
+
}
|
|
2795
|
+
return dt;
|
|
2796
|
+
}
|
|
2797
|
+
var Xr = se, $e = de.codes, pi = $e.ERR_METHOD_NOT_IMPLEMENTED, hi = $e.ERR_MULTIPLE_CALLBACK, di = $e.ERR_TRANSFORM_ALREADY_TRANSFORMING, yi = $e.ERR_TRANSFORM_WITH_LENGTH_0, Ke = Re();
|
|
2798
|
+
le(se, Ke);
|
|
2799
|
+
function bi(e, t) {
|
|
2800
|
+
var r = this._transformState;
|
|
2801
|
+
r.transforming = !1;
|
|
2802
|
+
var o = r.writecb;
|
|
2803
|
+
if (o === null)
|
|
2804
|
+
return this.emit("error", new hi());
|
|
2805
|
+
r.writechunk = null, r.writecb = null, t != null && this.push(t), o(e);
|
|
2806
|
+
var a = this._readableState;
|
|
2807
|
+
a.reading = !1, (a.needReadable || a.length < a.highWaterMark) && this._read(a.highWaterMark);
|
|
2808
|
+
}
|
|
2809
|
+
function se(e) {
|
|
2810
|
+
if (!(this instanceof se))
|
|
2811
|
+
return new se(e);
|
|
2812
|
+
Ke.call(this, e), this._transformState = {
|
|
2813
|
+
afterTransform: bi.bind(this),
|
|
2814
|
+
needTransform: !1,
|
|
2815
|
+
transforming: !1,
|
|
2816
|
+
writecb: null,
|
|
2817
|
+
writechunk: null,
|
|
2818
|
+
writeencoding: null
|
|
2819
|
+
}, this._readableState.needReadable = !0, this._readableState.sync = !1, e && (typeof e.transform == "function" && (this._transform = e.transform), typeof e.flush == "function" && (this._flush = e.flush)), this.on("prefinish", gi);
|
|
2820
|
+
}
|
|
2821
|
+
function gi() {
|
|
2822
|
+
var e = this;
|
|
2823
|
+
typeof this._flush == "function" && !this._readableState.destroyed ? this._flush(function(t, r) {
|
|
2824
|
+
pr(e, t, r);
|
|
2825
|
+
}) : pr(this, null, null);
|
|
2826
|
+
}
|
|
2827
|
+
se.prototype.push = function(e, t) {
|
|
2828
|
+
return this._transformState.needTransform = !1, Ke.prototype.push.call(this, e, t);
|
|
2829
|
+
};
|
|
2830
|
+
se.prototype._transform = function(e, t, r) {
|
|
2831
|
+
r(new pi("_transform()"));
|
|
2832
|
+
};
|
|
2833
|
+
se.prototype._write = function(e, t, r) {
|
|
2834
|
+
var o = this._transformState;
|
|
2835
|
+
if (o.writecb = r, o.writechunk = e, o.writeencoding = t, !o.transforming) {
|
|
2836
|
+
var a = this._readableState;
|
|
2837
|
+
(o.needTransform || a.needReadable || a.length < a.highWaterMark) && this._read(a.highWaterMark);
|
|
2838
|
+
}
|
|
2839
|
+
};
|
|
2840
|
+
se.prototype._read = function(e) {
|
|
2841
|
+
var t = this._transformState;
|
|
2842
|
+
t.writechunk !== null && !t.transforming ? (t.transforming = !0, this._transform(t.writechunk, t.writeencoding, t.afterTransform)) : t.needTransform = !0;
|
|
2843
|
+
};
|
|
2844
|
+
se.prototype._destroy = function(e, t) {
|
|
2845
|
+
Ke.prototype._destroy.call(this, e, function(r) {
|
|
2846
|
+
t(r);
|
|
2847
|
+
});
|
|
2848
|
+
};
|
|
2849
|
+
function pr(e, t, r) {
|
|
2850
|
+
if (t)
|
|
2851
|
+
return e.emit("error", t);
|
|
2852
|
+
if (r != null && e.push(r), e._writableState.length)
|
|
2853
|
+
throw new yi();
|
|
2854
|
+
if (e._transformState.transforming)
|
|
2855
|
+
throw new di();
|
|
2856
|
+
return e.push(null);
|
|
2857
|
+
}
|
|
2858
|
+
var mi = Te, Yr = Xr;
|
|
2859
|
+
le(Te, Yr);
|
|
2860
|
+
function Te(e) {
|
|
2861
|
+
if (!(this instanceof Te))
|
|
2862
|
+
return new Te(e);
|
|
2863
|
+
Yr.call(this, e);
|
|
2864
|
+
}
|
|
2865
|
+
Te.prototype._transform = function(e, t, r) {
|
|
2866
|
+
r(null, e);
|
|
2867
|
+
};
|
|
2868
|
+
var yt;
|
|
2869
|
+
function vi(e) {
|
|
2870
|
+
var t = !1;
|
|
2871
|
+
return function() {
|
|
2872
|
+
t || (t = !0, e.apply(void 0, arguments));
|
|
2873
|
+
};
|
|
2874
|
+
}
|
|
2875
|
+
var Zr = de.codes, wi = Zr.ERR_MISSING_ARGS, _i = Zr.ERR_STREAM_DESTROYED;
|
|
2876
|
+
function Si(e) {
|
|
2877
|
+
if (e)
|
|
2878
|
+
throw e;
|
|
2879
|
+
}
|
|
2880
|
+
function Ei(e) {
|
|
2881
|
+
return e.setHeader && typeof e.abort == "function";
|
|
2882
|
+
}
|
|
2883
|
+
function Ai(e, t, r, o) {
|
|
2884
|
+
o = vi(o);
|
|
2885
|
+
var a = !1;
|
|
2886
|
+
e.on("close", function() {
|
|
2887
|
+
a = !0;
|
|
2888
|
+
}), yt === void 0 && (yt = Nt), yt(e, {
|
|
2889
|
+
readable: t,
|
|
2890
|
+
writable: r
|
|
2891
|
+
}, function(f) {
|
|
2892
|
+
if (f)
|
|
2893
|
+
return o(f);
|
|
2894
|
+
a = !0, o();
|
|
2895
|
+
});
|
|
2896
|
+
var p = !1;
|
|
2897
|
+
return function(f) {
|
|
2898
|
+
if (!a && !p) {
|
|
2899
|
+
if (p = !0, Ei(e))
|
|
2900
|
+
return e.abort();
|
|
2901
|
+
if (typeof e.destroy == "function")
|
|
2902
|
+
return e.destroy();
|
|
2903
|
+
o(f || new _i("pipe"));
|
|
2904
|
+
}
|
|
2905
|
+
};
|
|
2906
|
+
}
|
|
2907
|
+
function hr(e) {
|
|
2908
|
+
e();
|
|
2909
|
+
}
|
|
2910
|
+
function Ri(e, t) {
|
|
2911
|
+
return e.pipe(t);
|
|
2912
|
+
}
|
|
2913
|
+
function Oi(e) {
|
|
2914
|
+
return !e.length || typeof e[e.length - 1] != "function" ? Si : e.pop();
|
|
2915
|
+
}
|
|
2916
|
+
function Ti() {
|
|
2917
|
+
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
|
|
2918
|
+
t[r] = arguments[r];
|
|
2919
|
+
var o = Oi(t);
|
|
2920
|
+
if (Array.isArray(t[0]) && (t = t[0]), t.length < 2)
|
|
2921
|
+
throw new wi("streams");
|
|
2922
|
+
var a, p = t.map(function(f, h) {
|
|
2923
|
+
var d = h < t.length - 1, R = h > 0;
|
|
2924
|
+
return Ai(f, d, R, function(L) {
|
|
2925
|
+
a || (a = L), L && p.forEach(hr), !d && (p.forEach(hr), o(a));
|
|
2926
|
+
});
|
|
2927
|
+
});
|
|
2928
|
+
return t.reduce(Ri);
|
|
2929
|
+
}
|
|
2930
|
+
var ji = Ti;
|
|
2931
|
+
(function(e, t) {
|
|
2932
|
+
t = e.exports = Jr(), t.Stream = t, t.Readable = t, t.Writable = $r(), t.Duplex = Re(), t.Transform = Xr, t.PassThrough = mi, t.finished = Nt, t.pipeline = ji;
|
|
2933
|
+
})(gt, gt.exports);
|
|
2934
|
+
var Qr = gt.exports, dr = Ot, Pi = le, en = Qr, xe = qe.readyStates = {
|
|
2935
|
+
UNSENT: 0,
|
|
2936
|
+
OPENED: 1,
|
|
2937
|
+
HEADERS_RECEIVED: 2,
|
|
2938
|
+
LOADING: 3,
|
|
2939
|
+
DONE: 4
|
|
2940
|
+
}, It = qe.IncomingMessage = function(e, t, r, o) {
|
|
2941
|
+
var a = this;
|
|
2942
|
+
if (en.Readable.call(a), a._mode = r, a.headers = {}, a.rawHeaders = [], a.trailers = {}, a.rawTrailers = [], a.on("end", function() {
|
|
2943
|
+
U.nextTick(function() {
|
|
2944
|
+
a.emit("close");
|
|
2945
|
+
});
|
|
2946
|
+
}), r === "fetch") {
|
|
2947
|
+
let L = function() {
|
|
2948
|
+
f.read().then(function(S) {
|
|
2949
|
+
if (!a._destroyed) {
|
|
2950
|
+
if (o(S.done), S.done) {
|
|
2951
|
+
a.push(null);
|
|
2952
|
+
return;
|
|
2953
|
+
}
|
|
2954
|
+
a.push(ce.from(S.value)), L();
|
|
2955
|
+
}
|
|
2956
|
+
}).catch(function(S) {
|
|
2957
|
+
o(!0), a._destroyed || a.emit("error", S);
|
|
2958
|
+
});
|
|
2959
|
+
};
|
|
2960
|
+
if (a._fetchResponse = t, a.url = t.url, a.statusCode = t.status, a.statusMessage = t.statusText, t.headers.forEach(function(S, M) {
|
|
2961
|
+
a.headers[M.toLowerCase()] = S, a.rawHeaders.push(M, S);
|
|
2962
|
+
}), dr.writableStream) {
|
|
2963
|
+
var p = new WritableStream({
|
|
2964
|
+
write: function(S) {
|
|
2965
|
+
return o(!1), new Promise(function(M, W) {
|
|
2966
|
+
a._destroyed ? W() : a.push(ce.from(S)) ? M() : a._resumeFetch = M;
|
|
2967
|
+
});
|
|
2968
|
+
},
|
|
2969
|
+
close: function() {
|
|
2970
|
+
o(!0), a._destroyed || a.push(null);
|
|
2971
|
+
},
|
|
2972
|
+
abort: function(S) {
|
|
2973
|
+
o(!0), a._destroyed || a.emit("error", S);
|
|
2974
|
+
}
|
|
2975
|
+
});
|
|
2976
|
+
try {
|
|
2977
|
+
t.body.pipeTo(p).catch(function(S) {
|
|
2978
|
+
o(!0), a._destroyed || a.emit("error", S);
|
|
2979
|
+
});
|
|
2980
|
+
return;
|
|
2981
|
+
} catch {
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
var f = t.body.getReader();
|
|
2985
|
+
L();
|
|
2986
|
+
} else {
|
|
2987
|
+
a._xhr = e, a._pos = 0, a.url = e.responseURL, a.statusCode = e.status, a.statusMessage = e.statusText;
|
|
2988
|
+
var h = e.getAllResponseHeaders().split(/\r?\n/);
|
|
2989
|
+
if (h.forEach(function(L) {
|
|
2990
|
+
var S = L.match(/^([^:]+):\s*(.*)/);
|
|
2991
|
+
if (S) {
|
|
2992
|
+
var M = S[1].toLowerCase();
|
|
2993
|
+
M === "set-cookie" ? (a.headers[M] === void 0 && (a.headers[M] = []), a.headers[M].push(S[2])) : a.headers[M] !== void 0 ? a.headers[M] += ", " + S[2] : a.headers[M] = S[2], a.rawHeaders.push(S[1], S[2]);
|
|
2994
|
+
}
|
|
2995
|
+
}), a._charset = "x-user-defined", !dr.overrideMimeType) {
|
|
2996
|
+
var d = a.rawHeaders["mime-type"];
|
|
2997
|
+
if (d) {
|
|
2998
|
+
var R = d.match(/;\s*charset=([^;])(;|$)/);
|
|
2999
|
+
R && (a._charset = R[1].toLowerCase());
|
|
3000
|
+
}
|
|
3001
|
+
a._charset || (a._charset = "utf-8");
|
|
3002
|
+
}
|
|
3003
|
+
}
|
|
3004
|
+
};
|
|
3005
|
+
Pi(It, en.Readable);
|
|
3006
|
+
It.prototype._read = function() {
|
|
3007
|
+
var e = this, t = e._resumeFetch;
|
|
3008
|
+
t && (e._resumeFetch = null, t());
|
|
3009
|
+
};
|
|
3010
|
+
It.prototype._onXHRProgress = function(e) {
|
|
3011
|
+
var t = this, r = t._xhr, o = null;
|
|
3012
|
+
switch (t._mode) {
|
|
3013
|
+
case "text":
|
|
3014
|
+
if (o = r.responseText, o.length > t._pos) {
|
|
3015
|
+
var a = o.substr(t._pos);
|
|
3016
|
+
if (t._charset === "x-user-defined") {
|
|
3017
|
+
for (var p = ce.alloc(a.length), f = 0; f < a.length; f++)
|
|
3018
|
+
p[f] = a.charCodeAt(f) & 255;
|
|
3019
|
+
t.push(p);
|
|
3020
|
+
} else
|
|
3021
|
+
t.push(a, t._charset);
|
|
3022
|
+
t._pos = o.length;
|
|
3023
|
+
}
|
|
3024
|
+
break;
|
|
3025
|
+
case "arraybuffer":
|
|
3026
|
+
if (r.readyState !== xe.DONE || !r.response)
|
|
3027
|
+
break;
|
|
3028
|
+
o = r.response, t.push(ce.from(new Uint8Array(o)));
|
|
3029
|
+
break;
|
|
3030
|
+
case "moz-chunked-arraybuffer":
|
|
3031
|
+
if (o = r.response, r.readyState !== xe.LOADING || !o)
|
|
3032
|
+
break;
|
|
3033
|
+
t.push(ce.from(new Uint8Array(o)));
|
|
3034
|
+
break;
|
|
3035
|
+
case "ms-stream":
|
|
3036
|
+
if (o = r.response, r.readyState !== xe.LOADING)
|
|
3037
|
+
break;
|
|
3038
|
+
var h = new V.MSStreamReader();
|
|
3039
|
+
h.onprogress = function() {
|
|
3040
|
+
h.result.byteLength > t._pos && (t.push(ce.from(new Uint8Array(h.result.slice(t._pos)))), t._pos = h.result.byteLength);
|
|
3041
|
+
}, h.onload = function() {
|
|
3042
|
+
e(!0), t.push(null);
|
|
3043
|
+
}, h.readAsArrayBuffer(o);
|
|
3044
|
+
break;
|
|
3045
|
+
}
|
|
3046
|
+
t._xhr.readyState === xe.DONE && t._mode !== "ms-stream" && (e(!0), t.push(null));
|
|
3047
|
+
};
|
|
3048
|
+
var fe = Ot, ki = le, tn = qe, Ut = Qr, xi = tn.IncomingMessage, yr = tn.readyStates;
|
|
3049
|
+
function Mi(e, t) {
|
|
3050
|
+
return fe.fetch && t ? "fetch" : fe.mozchunkedarraybuffer ? "moz-chunked-arraybuffer" : fe.msstream ? "ms-stream" : fe.arraybuffer && e ? "arraybuffer" : "text";
|
|
3051
|
+
}
|
|
3052
|
+
var J = gr.exports = function(e) {
|
|
3053
|
+
var t = this;
|
|
3054
|
+
Ut.Writable.call(t), t._opts = e, t._body = [], t._headers = {}, e.auth && t.setHeader("Authorization", "Basic " + ce.from(e.auth).toString("base64")), Object.keys(e.headers).forEach(function(a) {
|
|
3055
|
+
t.setHeader(a, e.headers[a]);
|
|
3056
|
+
});
|
|
3057
|
+
var r, o = !0;
|
|
3058
|
+
if (e.mode === "disable-fetch" || "requestTimeout" in e && !fe.abortController)
|
|
3059
|
+
o = !1, r = !0;
|
|
3060
|
+
else if (e.mode === "prefer-streaming")
|
|
3061
|
+
r = !1;
|
|
3062
|
+
else if (e.mode === "allow-wrong-content-type")
|
|
3063
|
+
r = !fe.overrideMimeType;
|
|
3064
|
+
else if (!e.mode || e.mode === "default" || e.mode === "prefer-fast")
|
|
3065
|
+
r = !0;
|
|
3066
|
+
else
|
|
3067
|
+
throw new Error("Invalid value for opts.mode");
|
|
3068
|
+
t._mode = Mi(r, o), t._fetchTimer = null, t._socketTimeout = null, t._socketTimer = null, t.on("finish", function() {
|
|
3069
|
+
t._onFinish();
|
|
3070
|
+
});
|
|
3071
|
+
};
|
|
3072
|
+
ki(J, Ut.Writable);
|
|
3073
|
+
J.prototype.setHeader = function(e, t) {
|
|
3074
|
+
var r = this, o = e.toLowerCase();
|
|
3075
|
+
Ci.indexOf(o) === -1 && (r._headers[o] = {
|
|
3076
|
+
name: e,
|
|
3077
|
+
value: t
|
|
3078
|
+
});
|
|
3079
|
+
};
|
|
3080
|
+
J.prototype.getHeader = function(e) {
|
|
3081
|
+
var t = this._headers[e.toLowerCase()];
|
|
3082
|
+
return t ? t.value : null;
|
|
3083
|
+
};
|
|
3084
|
+
J.prototype.removeHeader = function(e) {
|
|
3085
|
+
var t = this;
|
|
3086
|
+
delete t._headers[e.toLowerCase()];
|
|
3087
|
+
};
|
|
3088
|
+
J.prototype._onFinish = function() {
|
|
3089
|
+
var e = this;
|
|
3090
|
+
if (!e._destroyed) {
|
|
3091
|
+
var t = e._opts;
|
|
3092
|
+
"timeout" in t && t.timeout !== 0 && e.setTimeout(t.timeout);
|
|
3093
|
+
var r = e._headers, o = null;
|
|
3094
|
+
t.method !== "GET" && t.method !== "HEAD" && (o = new Blob(e._body, {
|
|
3095
|
+
type: (r["content-type"] || {}).value || ""
|
|
3096
|
+
}));
|
|
3097
|
+
var a = [];
|
|
3098
|
+
if (Object.keys(r).forEach(function(d) {
|
|
3099
|
+
var R = r[d].name, L = r[d].value;
|
|
3100
|
+
Array.isArray(L) ? L.forEach(function(S) {
|
|
3101
|
+
a.push([R, S]);
|
|
3102
|
+
}) : a.push([R, L]);
|
|
3103
|
+
}), e._mode === "fetch") {
|
|
3104
|
+
var p = null;
|
|
3105
|
+
if (fe.abortController) {
|
|
3106
|
+
var f = new AbortController();
|
|
3107
|
+
p = f.signal, e._fetchAbortController = f, "requestTimeout" in t && t.requestTimeout !== 0 && (e._fetchTimer = V.setTimeout(function() {
|
|
3108
|
+
e.emit("requestTimeout"), e._fetchAbortController && e._fetchAbortController.abort();
|
|
3109
|
+
}, t.requestTimeout));
|
|
3110
|
+
}
|
|
3111
|
+
V.fetch(e._opts.url, {
|
|
3112
|
+
method: e._opts.method,
|
|
3113
|
+
headers: a,
|
|
3114
|
+
body: o || void 0,
|
|
3115
|
+
mode: "cors",
|
|
3116
|
+
credentials: t.withCredentials ? "include" : "same-origin",
|
|
3117
|
+
signal: p
|
|
3118
|
+
}).then(function(d) {
|
|
3119
|
+
e._fetchResponse = d, e._resetTimers(!1), e._connect();
|
|
3120
|
+
}, function(d) {
|
|
3121
|
+
e._resetTimers(!0), e._destroyed || e.emit("error", d);
|
|
3122
|
+
});
|
|
3123
|
+
} else {
|
|
3124
|
+
var h = e._xhr = new V.XMLHttpRequest();
|
|
3125
|
+
try {
|
|
3126
|
+
h.open(e._opts.method, e._opts.url, !0);
|
|
3127
|
+
} catch (d) {
|
|
3128
|
+
U.nextTick(function() {
|
|
3129
|
+
e.emit("error", d);
|
|
3130
|
+
});
|
|
3131
|
+
return;
|
|
3132
|
+
}
|
|
3133
|
+
"responseType" in h && (h.responseType = e._mode), "withCredentials" in h && (h.withCredentials = !!t.withCredentials), e._mode === "text" && "overrideMimeType" in h && h.overrideMimeType("text/plain; charset=x-user-defined"), "requestTimeout" in t && (h.timeout = t.requestTimeout, h.ontimeout = function() {
|
|
3134
|
+
e.emit("requestTimeout");
|
|
3135
|
+
}), a.forEach(function(d) {
|
|
3136
|
+
h.setRequestHeader(d[0], d[1]);
|
|
3137
|
+
}), e._response = null, h.onreadystatechange = function() {
|
|
3138
|
+
switch (h.readyState) {
|
|
3139
|
+
case yr.LOADING:
|
|
3140
|
+
case yr.DONE:
|
|
3141
|
+
e._onXHRProgress();
|
|
3142
|
+
break;
|
|
3143
|
+
}
|
|
3144
|
+
}, e._mode === "moz-chunked-arraybuffer" && (h.onprogress = function() {
|
|
3145
|
+
e._onXHRProgress();
|
|
3146
|
+
}), h.onerror = function() {
|
|
3147
|
+
e._destroyed || (e._resetTimers(!0), e.emit("error", new Error("XHR error")));
|
|
3148
|
+
};
|
|
3149
|
+
try {
|
|
3150
|
+
h.send(o);
|
|
3151
|
+
} catch (d) {
|
|
3152
|
+
U.nextTick(function() {
|
|
3153
|
+
e.emit("error", d);
|
|
3154
|
+
});
|
|
3155
|
+
return;
|
|
3156
|
+
}
|
|
3157
|
+
}
|
|
3158
|
+
}
|
|
3159
|
+
};
|
|
3160
|
+
function Li(e) {
|
|
3161
|
+
try {
|
|
3162
|
+
var t = e.status;
|
|
3163
|
+
return t !== null && t !== 0;
|
|
3164
|
+
} catch {
|
|
3165
|
+
return !1;
|
|
3166
|
+
}
|
|
3167
|
+
}
|
|
3168
|
+
J.prototype._onXHRProgress = function() {
|
|
3169
|
+
var e = this;
|
|
3170
|
+
e._resetTimers(!1), !(!Li(e._xhr) || e._destroyed) && (e._response || e._connect(), e._response._onXHRProgress(e._resetTimers.bind(e)));
|
|
3171
|
+
};
|
|
3172
|
+
J.prototype._connect = function() {
|
|
3173
|
+
var e = this;
|
|
3174
|
+
e._destroyed || (e._response = new xi(e._xhr, e._fetchResponse, e._mode, e._resetTimers.bind(e)), e._response.on("error", function(t) {
|
|
3175
|
+
e.emit("error", t);
|
|
3176
|
+
}), e.emit("response", e._response));
|
|
3177
|
+
};
|
|
3178
|
+
J.prototype._write = function(e, t, r) {
|
|
3179
|
+
var o = this;
|
|
3180
|
+
o._body.push(e), r();
|
|
3181
|
+
};
|
|
3182
|
+
J.prototype._resetTimers = function(e) {
|
|
3183
|
+
var t = this;
|
|
3184
|
+
V.clearTimeout(t._socketTimer), t._socketTimer = null, e ? (V.clearTimeout(t._fetchTimer), t._fetchTimer = null) : t._socketTimeout && (t._socketTimer = V.setTimeout(function() {
|
|
3185
|
+
t.emit("timeout");
|
|
3186
|
+
}, t._socketTimeout));
|
|
3187
|
+
};
|
|
3188
|
+
J.prototype.abort = J.prototype.destroy = function(e) {
|
|
3189
|
+
var t = this;
|
|
3190
|
+
t._destroyed = !0, t._resetTimers(!0), t._response && (t._response._destroyed = !0), t._xhr ? t._xhr.abort() : t._fetchAbortController && t._fetchAbortController.abort(), e && t.emit("error", e);
|
|
3191
|
+
};
|
|
3192
|
+
J.prototype.end = function(e, t, r) {
|
|
3193
|
+
var o = this;
|
|
3194
|
+
typeof e == "function" && (r = e, e = void 0), Ut.Writable.prototype.end.call(o, e, t, r);
|
|
3195
|
+
};
|
|
3196
|
+
J.prototype.setTimeout = function(e, t) {
|
|
3197
|
+
var r = this;
|
|
3198
|
+
t && r.once("timeout", t), r._socketTimeout = e, r._resetTimers(!1);
|
|
3199
|
+
};
|
|
3200
|
+
J.prototype.flushHeaders = function() {
|
|
3201
|
+
};
|
|
3202
|
+
J.prototype.setNoDelay = function() {
|
|
3203
|
+
};
|
|
3204
|
+
J.prototype.setSocketKeepAlive = function() {
|
|
3205
|
+
};
|
|
3206
|
+
var Ci = [
|
|
3207
|
+
"accept-charset",
|
|
3208
|
+
"accept-encoding",
|
|
3209
|
+
"access-control-request-headers",
|
|
3210
|
+
"access-control-request-method",
|
|
3211
|
+
"connection",
|
|
3212
|
+
"content-length",
|
|
3213
|
+
"cookie",
|
|
3214
|
+
"cookie2",
|
|
3215
|
+
"date",
|
|
3216
|
+
"dnt",
|
|
3217
|
+
"expect",
|
|
3218
|
+
"host",
|
|
3219
|
+
"keep-alive",
|
|
3220
|
+
"origin",
|
|
3221
|
+
"referer",
|
|
3222
|
+
"te",
|
|
3223
|
+
"trailer",
|
|
3224
|
+
"transfer-encoding",
|
|
3225
|
+
"upgrade",
|
|
3226
|
+
"via"
|
|
3227
|
+
], Ni = gr.exports, Ii = Di, Ui = Object.prototype.hasOwnProperty;
|
|
3228
|
+
function Di() {
|
|
3229
|
+
for (var e = {}, t = 0; t < arguments.length; t++) {
|
|
3230
|
+
var r = arguments[t];
|
|
3231
|
+
for (var o in r)
|
|
3232
|
+
Ui.call(r, o) && (e[o] = r[o]);
|
|
3233
|
+
}
|
|
3234
|
+
return e;
|
|
3235
|
+
}
|
|
3236
|
+
var Fi = {
|
|
3237
|
+
100: "Continue",
|
|
3238
|
+
101: "Switching Protocols",
|
|
3239
|
+
102: "Processing",
|
|
3240
|
+
200: "OK",
|
|
3241
|
+
201: "Created",
|
|
3242
|
+
202: "Accepted",
|
|
3243
|
+
203: "Non-Authoritative Information",
|
|
3244
|
+
204: "No Content",
|
|
3245
|
+
205: "Reset Content",
|
|
3246
|
+
206: "Partial Content",
|
|
3247
|
+
207: "Multi-Status",
|
|
3248
|
+
208: "Already Reported",
|
|
3249
|
+
226: "IM Used",
|
|
3250
|
+
300: "Multiple Choices",
|
|
3251
|
+
301: "Moved Permanently",
|
|
3252
|
+
302: "Found",
|
|
3253
|
+
303: "See Other",
|
|
3254
|
+
304: "Not Modified",
|
|
3255
|
+
305: "Use Proxy",
|
|
3256
|
+
307: "Temporary Redirect",
|
|
3257
|
+
308: "Permanent Redirect",
|
|
3258
|
+
400: "Bad Request",
|
|
3259
|
+
401: "Unauthorized",
|
|
3260
|
+
402: "Payment Required",
|
|
3261
|
+
403: "Forbidden",
|
|
3262
|
+
404: "Not Found",
|
|
3263
|
+
405: "Method Not Allowed",
|
|
3264
|
+
406: "Not Acceptable",
|
|
3265
|
+
407: "Proxy Authentication Required",
|
|
3266
|
+
408: "Request Timeout",
|
|
3267
|
+
409: "Conflict",
|
|
3268
|
+
410: "Gone",
|
|
3269
|
+
411: "Length Required",
|
|
3270
|
+
412: "Precondition Failed",
|
|
3271
|
+
413: "Payload Too Large",
|
|
3272
|
+
414: "URI Too Long",
|
|
3273
|
+
415: "Unsupported Media Type",
|
|
3274
|
+
416: "Range Not Satisfiable",
|
|
3275
|
+
417: "Expectation Failed",
|
|
3276
|
+
418: "I'm a teapot",
|
|
3277
|
+
421: "Misdirected Request",
|
|
3278
|
+
422: "Unprocessable Entity",
|
|
3279
|
+
423: "Locked",
|
|
3280
|
+
424: "Failed Dependency",
|
|
3281
|
+
425: "Unordered Collection",
|
|
3282
|
+
426: "Upgrade Required",
|
|
3283
|
+
428: "Precondition Required",
|
|
3284
|
+
429: "Too Many Requests",
|
|
3285
|
+
431: "Request Header Fields Too Large",
|
|
3286
|
+
451: "Unavailable For Legal Reasons",
|
|
3287
|
+
500: "Internal Server Error",
|
|
3288
|
+
501: "Not Implemented",
|
|
3289
|
+
502: "Bad Gateway",
|
|
3290
|
+
503: "Service Unavailable",
|
|
3291
|
+
504: "Gateway Timeout",
|
|
3292
|
+
505: "HTTP Version Not Supported",
|
|
3293
|
+
506: "Variant Also Negotiates",
|
|
3294
|
+
507: "Insufficient Storage",
|
|
3295
|
+
508: "Loop Detected",
|
|
3296
|
+
509: "Bandwidth Limit Exceeded",
|
|
3297
|
+
510: "Not Extended",
|
|
3298
|
+
511: "Network Authentication Required"
|
|
3299
|
+
};
|
|
3300
|
+
const Bi = /* @__PURE__ */ br(an);
|
|
3301
|
+
(function(e) {
|
|
3302
|
+
var t = Ni, r = qe, o = Ii, a = Fi, p = Bi, f = e;
|
|
3303
|
+
f.request = function(h, d) {
|
|
3304
|
+
typeof h == "string" ? h = p.parse(h) : h = o(h);
|
|
3305
|
+
var R = V.location.protocol.search(/^https?:$/) === -1 ? "http:" : "", L = h.protocol || R, S = h.hostname || h.host, M = h.port, W = h.path || "/";
|
|
3306
|
+
S && S.indexOf(":") !== -1 && (S = "[" + S + "]"), h.url = (S ? L + "//" + S : "") + (M ? ":" + M : "") + W, h.method = (h.method || "GET").toUpperCase(), h.headers = h.headers || {};
|
|
3307
|
+
var x = new t(h);
|
|
3308
|
+
return d && x.on("response", d), x;
|
|
3309
|
+
}, f.get = function(h, d) {
|
|
3310
|
+
var R = f.request(h, d);
|
|
3311
|
+
return R.end(), R;
|
|
3312
|
+
}, f.ClientRequest = t, f.IncomingMessage = r.IncomingMessage, f.Agent = function() {
|
|
3313
|
+
}, f.Agent.defaultMaxSockets = 4, f.globalAgent = new f.Agent(), f.STATUS_CODES = a, f.METHODS = [
|
|
3314
|
+
"CHECKOUT",
|
|
3315
|
+
"CONNECT",
|
|
3316
|
+
"COPY",
|
|
3317
|
+
"DELETE",
|
|
3318
|
+
"GET",
|
|
3319
|
+
"HEAD",
|
|
3320
|
+
"LOCK",
|
|
3321
|
+
"M-SEARCH",
|
|
3322
|
+
"MERGE",
|
|
3323
|
+
"MKACTIVITY",
|
|
3324
|
+
"MKCOL",
|
|
3325
|
+
"MOVE",
|
|
3326
|
+
"NOTIFY",
|
|
3327
|
+
"OPTIONS",
|
|
3328
|
+
"PATCH",
|
|
3329
|
+
"POST",
|
|
3330
|
+
"PROPFIND",
|
|
3331
|
+
"PROPPATCH",
|
|
3332
|
+
"PURGE",
|
|
3333
|
+
"PUT",
|
|
3334
|
+
"REPORT",
|
|
3335
|
+
"SEARCH",
|
|
3336
|
+
"SUBSCRIBE",
|
|
3337
|
+
"TRACE",
|
|
3338
|
+
"UNLOCK",
|
|
3339
|
+
"UNSUBSCRIBE"
|
|
3340
|
+
];
|
|
3341
|
+
})(Rt);
|
|
3342
|
+
const Wi = /* @__PURE__ */ on(Rt), Gi = /* @__PURE__ */ sn({
|
|
3343
|
+
__proto__: null,
|
|
3344
|
+
default: Wi
|
|
3345
|
+
}, [Rt]);
|
|
3346
|
+
export {
|
|
3347
|
+
Gi as i,
|
|
3348
|
+
Bi as r,
|
|
3349
|
+
Rt as s
|
|
3350
|
+
};
|