yann-useorderfun 0.1.2 → 0.2.1
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/README.md +1 -0
- package/dist/index.js +467 -403
- package/dist/index.umd.js +2 -2
- package/index.d.ts +26 -31
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
/*! yann-useorderfun v0.1
|
|
2
|
-
import { isRef as
|
|
3
|
-
var
|
|
4
|
-
const
|
|
5
|
-
var
|
|
6
|
-
const
|
|
7
|
-
var
|
|
8
|
-
const
|
|
9
|
-
var Ct = Object.prototype,
|
|
10
|
-
function
|
|
11
|
-
var e =
|
|
1
|
+
/*! yann-useorderfun v0.2.1 by Yann */
|
|
2
|
+
import { isRef as te, ref as _, watch as ee, readonly as w } from "vue";
|
|
3
|
+
var re = typeof global == "object" && global && global.Object === Object && global;
|
|
4
|
+
const It = re;
|
|
5
|
+
var ne = typeof self == "object" && self && self.Object === Object && self, ae = It || ne || Function("return this")();
|
|
6
|
+
const y = ae;
|
|
7
|
+
var oe = y.Symbol;
|
|
8
|
+
const x = oe;
|
|
9
|
+
var Ct = Object.prototype, se = Ct.hasOwnProperty, ie = Ct.toString, M = x ? x.toStringTag : void 0;
|
|
10
|
+
function ce(t) {
|
|
11
|
+
var e = se.call(t, M), r = t[M];
|
|
12
12
|
try {
|
|
13
|
-
t[
|
|
13
|
+
t[M] = void 0;
|
|
14
14
|
var n = !0;
|
|
15
15
|
} catch {
|
|
16
16
|
}
|
|
17
|
-
var
|
|
18
|
-
return n && (e ? t[
|
|
17
|
+
var o = ie.call(t);
|
|
18
|
+
return n && (e ? t[M] = r : delete t[M]), o;
|
|
19
19
|
}
|
|
20
|
-
var
|
|
20
|
+
var ue = Object.prototype, le = ue.toString;
|
|
21
21
|
function fe(t) {
|
|
22
|
-
return
|
|
22
|
+
return le.call(t);
|
|
23
23
|
}
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
return t == null ? t === void 0 ?
|
|
24
|
+
var pe = "[object Null]", ge = "[object Undefined]", ct = x ? x.toStringTag : void 0;
|
|
25
|
+
function L(t) {
|
|
26
|
+
return t == null ? t === void 0 ? ge : pe : ct && ct in Object(t) ? ce(t) : fe(t);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function G(t) {
|
|
29
29
|
return t != null && typeof t == "object";
|
|
30
30
|
}
|
|
31
|
-
var
|
|
32
|
-
const
|
|
33
|
-
function
|
|
31
|
+
var de = Array.isArray;
|
|
32
|
+
const N = de;
|
|
33
|
+
function z(t) {
|
|
34
34
|
var e = typeof t;
|
|
35
35
|
return t != null && (e == "object" || e == "function");
|
|
36
36
|
}
|
|
37
|
-
var he = "[object AsyncFunction]", be = "[object Function]",
|
|
38
|
-
function
|
|
39
|
-
if (!
|
|
37
|
+
var he = "[object AsyncFunction]", be = "[object Function]", ve = "[object GeneratorFunction]", ye = "[object Proxy]";
|
|
38
|
+
function Mt(t) {
|
|
39
|
+
if (!z(t))
|
|
40
40
|
return !1;
|
|
41
|
-
var e =
|
|
42
|
-
return e == be || e ==
|
|
41
|
+
var e = L(t);
|
|
42
|
+
return e == be || e == ve || e == he || e == ye;
|
|
43
43
|
}
|
|
44
|
-
var
|
|
45
|
-
const
|
|
46
|
-
var
|
|
47
|
-
var t = /[^.]+$/.exec(
|
|
44
|
+
var _e = y["__core-js_shared__"];
|
|
45
|
+
const q = _e;
|
|
46
|
+
var ut = function() {
|
|
47
|
+
var t = /[^.]+$/.exec(q && q.keys && q.keys.IE_PROTO || "");
|
|
48
48
|
return t ? "Symbol(src)_1." + t : "";
|
|
49
49
|
}();
|
|
50
|
-
function
|
|
51
|
-
return !!
|
|
50
|
+
function je(t) {
|
|
51
|
+
return !!ut && ut in t;
|
|
52
52
|
}
|
|
53
|
-
var
|
|
54
|
-
function
|
|
53
|
+
var $e = Function.prototype, Te = $e.toString;
|
|
54
|
+
function S(t) {
|
|
55
55
|
if (t != null) {
|
|
56
56
|
try {
|
|
57
57
|
return Te.call(t);
|
|
@@ -64,642 +64,706 @@ function _(t) {
|
|
|
64
64
|
}
|
|
65
65
|
return "";
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
"^" +
|
|
67
|
+
var we = /[\\^$.*+?()[\]{}|]/g, me = /^\[object .+?Constructor\]$/, Oe = Function.prototype, Ae = Object.prototype, Se = Oe.toString, Pe = Ae.hasOwnProperty, xe = RegExp(
|
|
68
|
+
"^" + Se.call(Pe).replace(we, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
69
69
|
);
|
|
70
70
|
function Ee(t) {
|
|
71
|
-
if (!
|
|
71
|
+
if (!z(t) || je(t))
|
|
72
72
|
return !1;
|
|
73
|
-
var e =
|
|
74
|
-
return e.test(
|
|
73
|
+
var e = Mt(t) ? xe : me;
|
|
74
|
+
return e.test(S(t));
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Ie(t, e) {
|
|
77
77
|
return t == null ? void 0 : t[e];
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
var r =
|
|
79
|
+
function P(t, e) {
|
|
80
|
+
var r = Ie(t, e);
|
|
81
81
|
return Ee(r) ? r : void 0;
|
|
82
82
|
}
|
|
83
|
-
var
|
|
84
|
-
const
|
|
85
|
-
var
|
|
83
|
+
var Ce = P(y, "WeakMap");
|
|
84
|
+
const J = Ce;
|
|
85
|
+
var lt = Object.create, Me = function() {
|
|
86
86
|
function t() {
|
|
87
87
|
}
|
|
88
88
|
return function(e) {
|
|
89
|
-
if (!
|
|
89
|
+
if (!z(e))
|
|
90
90
|
return {};
|
|
91
|
-
if (
|
|
92
|
-
return
|
|
91
|
+
if (lt)
|
|
92
|
+
return lt(e);
|
|
93
93
|
t.prototype = e;
|
|
94
94
|
var r = new t();
|
|
95
95
|
return t.prototype = void 0, r;
|
|
96
96
|
};
|
|
97
97
|
}();
|
|
98
|
-
const Fe =
|
|
99
|
-
function
|
|
98
|
+
const Fe = Me;
|
|
99
|
+
function De(t, e) {
|
|
100
100
|
var r = -1, n = t.length;
|
|
101
101
|
for (e || (e = Array(n)); ++r < n; )
|
|
102
102
|
e[r] = t[r];
|
|
103
103
|
return e;
|
|
104
104
|
}
|
|
105
|
-
var
|
|
105
|
+
var Ue = function() {
|
|
106
106
|
try {
|
|
107
|
-
var t =
|
|
107
|
+
var t = P(Object, "defineProperty");
|
|
108
108
|
return t({}, "", {}), t;
|
|
109
109
|
} catch {
|
|
110
110
|
}
|
|
111
111
|
}();
|
|
112
|
-
const
|
|
113
|
-
function
|
|
112
|
+
const ft = Ue;
|
|
113
|
+
function Be(t, e) {
|
|
114
114
|
for (var r = -1, n = t == null ? 0 : t.length; ++r < n && e(t[r], r, t) !== !1; )
|
|
115
115
|
;
|
|
116
116
|
return t;
|
|
117
117
|
}
|
|
118
|
-
var
|
|
119
|
-
function
|
|
118
|
+
var Le = 9007199254740991, Ge = /^(?:0|[1-9]\d*)$/;
|
|
119
|
+
function Ne(t, e) {
|
|
120
120
|
var r = typeof t;
|
|
121
|
-
return e = e ??
|
|
121
|
+
return e = e ?? Le, !!e && (r == "number" || r != "symbol" && Ge.test(t)) && t > -1 && t % 1 == 0 && t < e;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
e == "__proto__" &&
|
|
123
|
+
function Ft(t, e, r) {
|
|
124
|
+
e == "__proto__" && ft ? ft(t, e, {
|
|
125
125
|
configurable: !0,
|
|
126
126
|
enumerable: !0,
|
|
127
127
|
value: r,
|
|
128
128
|
writable: !0
|
|
129
129
|
}) : t[e] = r;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function Dt(t, e) {
|
|
132
132
|
return t === e || t !== t && e !== e;
|
|
133
133
|
}
|
|
134
|
-
var
|
|
135
|
-
function
|
|
134
|
+
var ze = Object.prototype, Re = ze.hasOwnProperty;
|
|
135
|
+
function Ut(t, e, r) {
|
|
136
136
|
var n = t[e];
|
|
137
|
-
(!(
|
|
137
|
+
(!(Re.call(t, e) && Dt(n, r)) || r === void 0 && !(e in t)) && Ft(t, e, r);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
var
|
|
139
|
+
function H(t, e, r, n) {
|
|
140
|
+
var o = !r;
|
|
141
141
|
r || (r = {});
|
|
142
|
-
for (var
|
|
143
|
-
var
|
|
144
|
-
|
|
142
|
+
for (var a = -1, s = e.length; ++a < s; ) {
|
|
143
|
+
var u = e[a], f = n ? n(r[u], t[u], u, r, t) : void 0;
|
|
144
|
+
f === void 0 && (f = t[u]), o ? Ft(r, u, f) : Ut(r, u, f);
|
|
145
145
|
}
|
|
146
146
|
return r;
|
|
147
147
|
}
|
|
148
|
-
var
|
|
149
|
-
function
|
|
150
|
-
return typeof t == "number" && t > -1 && t % 1 == 0 && t <=
|
|
148
|
+
var Ke = 9007199254740991;
|
|
149
|
+
function Bt(t) {
|
|
150
|
+
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Ke;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
return t != null &&
|
|
152
|
+
function Lt(t) {
|
|
153
|
+
return t != null && Bt(t.length) && !Mt(t);
|
|
154
154
|
}
|
|
155
|
-
var
|
|
156
|
-
function
|
|
157
|
-
var e = t && t.constructor, r = typeof e == "function" && e.prototype ||
|
|
155
|
+
var He = Object.prototype;
|
|
156
|
+
function k(t) {
|
|
157
|
+
var e = t && t.constructor, r = typeof e == "function" && e.prototype || He;
|
|
158
158
|
return t === r;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Ve(t, e) {
|
|
161
161
|
for (var r = -1, n = Array(t); ++r < t; )
|
|
162
162
|
n[r] = e(r);
|
|
163
163
|
return n;
|
|
164
164
|
}
|
|
165
|
-
var
|
|
166
|
-
function
|
|
167
|
-
return
|
|
165
|
+
var We = "[object Arguments]";
|
|
166
|
+
function pt(t) {
|
|
167
|
+
return G(t) && L(t) == We;
|
|
168
168
|
}
|
|
169
|
-
var
|
|
169
|
+
var Gt = Object.prototype, qe = Gt.hasOwnProperty, Ye = Gt.propertyIsEnumerable, Je = pt(function() {
|
|
170
170
|
return arguments;
|
|
171
|
-
}()) ?
|
|
172
|
-
return
|
|
171
|
+
}()) ? pt : function(t) {
|
|
172
|
+
return G(t) && qe.call(t, "callee") && !Ye.call(t, "callee");
|
|
173
173
|
};
|
|
174
|
-
const
|
|
175
|
-
function
|
|
174
|
+
const Xe = Je;
|
|
175
|
+
function Ze() {
|
|
176
176
|
return !1;
|
|
177
177
|
}
|
|
178
|
-
var
|
|
179
|
-
const
|
|
180
|
-
var
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
function
|
|
184
|
-
return
|
|
178
|
+
var Nt = typeof exports == "object" && exports && !exports.nodeType && exports, gt = Nt && typeof module == "object" && module && !module.nodeType && module, Qe = gt && gt.exports === Nt, dt = Qe ? y.Buffer : void 0, ke = dt ? dt.isBuffer : void 0, tr = ke || Ze;
|
|
179
|
+
const zt = tr;
|
|
180
|
+
var er = "[object Arguments]", rr = "[object Array]", nr = "[object Boolean]", ar = "[object Date]", or = "[object Error]", sr = "[object Function]", ir = "[object Map]", cr = "[object Number]", ur = "[object Object]", lr = "[object RegExp]", fr = "[object Set]", pr = "[object String]", gr = "[object WeakMap]", dr = "[object ArrayBuffer]", hr = "[object DataView]", br = "[object Float32Array]", vr = "[object Float64Array]", yr = "[object Int8Array]", _r = "[object Int16Array]", jr = "[object Int32Array]", $r = "[object Uint8Array]", Tr = "[object Uint8ClampedArray]", wr = "[object Uint16Array]", mr = "[object Uint32Array]", c = {};
|
|
181
|
+
c[br] = c[vr] = c[yr] = c[_r] = c[jr] = c[$r] = c[Tr] = c[wr] = c[mr] = !0;
|
|
182
|
+
c[er] = c[rr] = c[dr] = c[nr] = c[hr] = c[ar] = c[or] = c[sr] = c[ir] = c[cr] = c[ur] = c[lr] = c[fr] = c[pr] = c[gr] = !1;
|
|
183
|
+
function Or(t) {
|
|
184
|
+
return G(t) && Bt(t.length) && !!c[L(t)];
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function tt(t) {
|
|
187
187
|
return function(e) {
|
|
188
188
|
return t(e);
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
|
-
var
|
|
191
|
+
var Rt = typeof exports == "object" && exports && !exports.nodeType && exports, F = Rt && typeof module == "object" && module && !module.nodeType && module, Ar = F && F.exports === Rt, Y = Ar && It.process, Sr = function() {
|
|
192
192
|
try {
|
|
193
|
-
var t =
|
|
194
|
-
return t ||
|
|
193
|
+
var t = F && F.require && F.require("util").types;
|
|
194
|
+
return t || Y && Y.binding && Y.binding("util");
|
|
195
195
|
} catch {
|
|
196
196
|
}
|
|
197
197
|
}();
|
|
198
|
-
const
|
|
199
|
-
var
|
|
200
|
-
const
|
|
201
|
-
var Er = Object.prototype,
|
|
202
|
-
function
|
|
203
|
-
var r =
|
|
204
|
-
for (var
|
|
205
|
-
(e ||
|
|
206
|
-
(
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
return
|
|
211
|
-
}
|
|
212
|
-
function
|
|
198
|
+
const E = Sr;
|
|
199
|
+
var ht = E && E.isTypedArray, Pr = ht ? tt(ht) : Or;
|
|
200
|
+
const xr = Pr;
|
|
201
|
+
var Er = Object.prototype, Ir = Er.hasOwnProperty;
|
|
202
|
+
function Kt(t, e) {
|
|
203
|
+
var r = N(t), n = !r && Xe(t), o = !r && !n && zt(t), a = !r && !n && !o && xr(t), s = r || n || o || a, u = s ? Ve(t.length, String) : [], f = u.length;
|
|
204
|
+
for (var p in t)
|
|
205
|
+
(e || Ir.call(t, p)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
206
|
+
(p == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
207
|
+
o && (p == "offset" || p == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
208
|
+
a && (p == "buffer" || p == "byteLength" || p == "byteOffset") || // Skip index properties.
|
|
209
|
+
Ne(p, f))) && u.push(p);
|
|
210
|
+
return u;
|
|
211
|
+
}
|
|
212
|
+
function Ht(t, e) {
|
|
213
213
|
return function(r) {
|
|
214
214
|
return t(e(r));
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
var
|
|
218
|
-
const
|
|
219
|
-
var Fr = Object.prototype,
|
|
220
|
-
function
|
|
221
|
-
if (!
|
|
222
|
-
return
|
|
217
|
+
var Cr = Ht(Object.keys, Object);
|
|
218
|
+
const Mr = Cr;
|
|
219
|
+
var Fr = Object.prototype, Dr = Fr.hasOwnProperty;
|
|
220
|
+
function Ur(t) {
|
|
221
|
+
if (!k(t))
|
|
222
|
+
return Mr(t);
|
|
223
223
|
var e = [];
|
|
224
224
|
for (var r in Object(t))
|
|
225
|
-
|
|
225
|
+
Dr.call(t, r) && r != "constructor" && e.push(r);
|
|
226
226
|
return e;
|
|
227
227
|
}
|
|
228
|
-
function
|
|
229
|
-
return
|
|
228
|
+
function et(t) {
|
|
229
|
+
return Lt(t) ? Kt(t) : Ur(t);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Br(t) {
|
|
232
232
|
var e = [];
|
|
233
233
|
if (t != null)
|
|
234
234
|
for (var r in Object(t))
|
|
235
235
|
e.push(r);
|
|
236
236
|
return e;
|
|
237
237
|
}
|
|
238
|
-
var
|
|
239
|
-
function
|
|
240
|
-
if (!
|
|
241
|
-
return
|
|
242
|
-
var e =
|
|
238
|
+
var Lr = Object.prototype, Gr = Lr.hasOwnProperty;
|
|
239
|
+
function Nr(t) {
|
|
240
|
+
if (!z(t))
|
|
241
|
+
return Br(t);
|
|
242
|
+
var e = k(t), r = [];
|
|
243
243
|
for (var n in t)
|
|
244
|
-
n == "constructor" && (e || !
|
|
244
|
+
n == "constructor" && (e || !Gr.call(t, n)) || r.push(n);
|
|
245
245
|
return r;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
return
|
|
247
|
+
function rt(t) {
|
|
248
|
+
return Lt(t) ? Kt(t, !0) : Nr(t);
|
|
249
249
|
}
|
|
250
|
-
var
|
|
251
|
-
const
|
|
252
|
-
function
|
|
253
|
-
this.__data__ =
|
|
250
|
+
var zr = P(Object, "create");
|
|
251
|
+
const D = zr;
|
|
252
|
+
function Rr() {
|
|
253
|
+
this.__data__ = D ? D(null) : {}, this.size = 0;
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function Kr(t) {
|
|
256
256
|
var e = this.has(t) && delete this.__data__[t];
|
|
257
257
|
return this.size -= e ? 1 : 0, e;
|
|
258
258
|
}
|
|
259
|
-
var
|
|
260
|
-
function
|
|
259
|
+
var Hr = "__lodash_hash_undefined__", Vr = Object.prototype, Wr = Vr.hasOwnProperty;
|
|
260
|
+
function qr(t) {
|
|
261
261
|
var e = this.__data__;
|
|
262
|
-
if (
|
|
262
|
+
if (D) {
|
|
263
263
|
var r = e[t];
|
|
264
|
-
return r ===
|
|
264
|
+
return r === Hr ? void 0 : r;
|
|
265
265
|
}
|
|
266
|
-
return
|
|
266
|
+
return Wr.call(e, t) ? e[t] : void 0;
|
|
267
267
|
}
|
|
268
|
-
var
|
|
269
|
-
function
|
|
268
|
+
var Yr = Object.prototype, Jr = Yr.hasOwnProperty;
|
|
269
|
+
function Xr(t) {
|
|
270
270
|
var e = this.__data__;
|
|
271
|
-
return
|
|
271
|
+
return D ? e[t] !== void 0 : Jr.call(e, t);
|
|
272
272
|
}
|
|
273
|
-
var
|
|
274
|
-
function
|
|
273
|
+
var Zr = "__lodash_hash_undefined__";
|
|
274
|
+
function Qr(t, e) {
|
|
275
275
|
var r = this.__data__;
|
|
276
|
-
return this.size += this.has(t) ? 0 : 1, r[t] =
|
|
276
|
+
return this.size += this.has(t) ? 0 : 1, r[t] = D && e === void 0 ? Zr : e, this;
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function A(t) {
|
|
279
279
|
var e = -1, r = t == null ? 0 : t.length;
|
|
280
280
|
for (this.clear(); ++e < r; ) {
|
|
281
281
|
var n = t[e];
|
|
282
282
|
this.set(n[0], n[1]);
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
function
|
|
285
|
+
A.prototype.clear = Rr;
|
|
286
|
+
A.prototype.delete = Kr;
|
|
287
|
+
A.prototype.get = qr;
|
|
288
|
+
A.prototype.has = Xr;
|
|
289
|
+
A.prototype.set = Qr;
|
|
290
|
+
function kr() {
|
|
291
291
|
this.__data__ = [], this.size = 0;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function V(t, e) {
|
|
294
294
|
for (var r = t.length; r--; )
|
|
295
|
-
if (
|
|
295
|
+
if (Dt(t[r][0], e))
|
|
296
296
|
return r;
|
|
297
297
|
return -1;
|
|
298
298
|
}
|
|
299
|
-
var
|
|
300
|
-
function
|
|
301
|
-
var e = this.__data__, r =
|
|
299
|
+
var tn = Array.prototype, en = tn.splice;
|
|
300
|
+
function rn(t) {
|
|
301
|
+
var e = this.__data__, r = V(e, t);
|
|
302
302
|
if (r < 0)
|
|
303
303
|
return !1;
|
|
304
304
|
var n = e.length - 1;
|
|
305
|
-
return r == n ? e.pop() :
|
|
305
|
+
return r == n ? e.pop() : en.call(e, r, 1), --this.size, !0;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
308
|
-
var e = this.__data__, r =
|
|
307
|
+
function nn(t) {
|
|
308
|
+
var e = this.__data__, r = V(e, t);
|
|
309
309
|
return r < 0 ? void 0 : e[r][1];
|
|
310
310
|
}
|
|
311
|
-
function
|
|
312
|
-
return
|
|
311
|
+
function an(t) {
|
|
312
|
+
return V(this.__data__, t) > -1;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
315
|
-
var r = this.__data__, n =
|
|
314
|
+
function on(t, e) {
|
|
315
|
+
var r = this.__data__, n = V(r, t);
|
|
316
316
|
return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function $(t) {
|
|
319
319
|
var e = -1, r = t == null ? 0 : t.length;
|
|
320
320
|
for (this.clear(); ++e < r; ) {
|
|
321
321
|
var n = t[e];
|
|
322
322
|
this.set(n[0], n[1]);
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
var
|
|
331
|
-
const
|
|
332
|
-
function
|
|
325
|
+
$.prototype.clear = kr;
|
|
326
|
+
$.prototype.delete = rn;
|
|
327
|
+
$.prototype.get = nn;
|
|
328
|
+
$.prototype.has = an;
|
|
329
|
+
$.prototype.set = on;
|
|
330
|
+
var sn = P(y, "Map");
|
|
331
|
+
const U = sn;
|
|
332
|
+
function cn() {
|
|
333
333
|
this.size = 0, this.__data__ = {
|
|
334
|
-
hash: new
|
|
335
|
-
map: new (
|
|
336
|
-
string: new
|
|
334
|
+
hash: new A(),
|
|
335
|
+
map: new (U || $)(),
|
|
336
|
+
string: new A()
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function un(t) {
|
|
340
340
|
var e = typeof t;
|
|
341
341
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function W(t, e) {
|
|
344
344
|
var r = t.__data__;
|
|
345
|
-
return
|
|
345
|
+
return un(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
var e =
|
|
347
|
+
function ln(t) {
|
|
348
|
+
var e = W(this, t).delete(t);
|
|
349
349
|
return this.size -= e ? 1 : 0, e;
|
|
350
350
|
}
|
|
351
351
|
function fn(t) {
|
|
352
|
-
return
|
|
352
|
+
return W(this, t).get(t);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
355
|
-
return
|
|
354
|
+
function pn(t) {
|
|
355
|
+
return W(this, t).has(t);
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
var r =
|
|
357
|
+
function gn(t, e) {
|
|
358
|
+
var r = W(this, t), n = r.size;
|
|
359
359
|
return r.set(t, e), this.size += r.size == n ? 0 : 1, this;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function I(t) {
|
|
362
362
|
var e = -1, r = t == null ? 0 : t.length;
|
|
363
363
|
for (this.clear(); ++e < r; ) {
|
|
364
364
|
var n = t[e];
|
|
365
365
|
this.set(n[0], n[1]);
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
function
|
|
374
|
-
for (var r = -1, n = e.length,
|
|
375
|
-
t[
|
|
368
|
+
I.prototype.clear = cn;
|
|
369
|
+
I.prototype.delete = ln;
|
|
370
|
+
I.prototype.get = fn;
|
|
371
|
+
I.prototype.has = pn;
|
|
372
|
+
I.prototype.set = gn;
|
|
373
|
+
function Vt(t, e) {
|
|
374
|
+
for (var r = -1, n = e.length, o = t.length; ++r < n; )
|
|
375
|
+
t[o + r] = e[r];
|
|
376
376
|
return t;
|
|
377
377
|
}
|
|
378
|
-
var
|
|
379
|
-
const
|
|
378
|
+
var dn = Ht(Object.getPrototypeOf, Object);
|
|
379
|
+
const Wt = dn;
|
|
380
380
|
function hn() {
|
|
381
|
-
this.__data__ = new
|
|
381
|
+
this.__data__ = new $(), this.size = 0;
|
|
382
382
|
}
|
|
383
383
|
function bn(t) {
|
|
384
384
|
var e = this.__data__, r = e.delete(t);
|
|
385
385
|
return this.size = e.size, r;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function vn(t) {
|
|
388
388
|
return this.__data__.get(t);
|
|
389
389
|
}
|
|
390
390
|
function yn(t) {
|
|
391
391
|
return this.__data__.has(t);
|
|
392
392
|
}
|
|
393
|
-
var
|
|
394
|
-
function
|
|
393
|
+
var _n = 200;
|
|
394
|
+
function jn(t, e) {
|
|
395
395
|
var r = this.__data__;
|
|
396
|
-
if (r instanceof
|
|
396
|
+
if (r instanceof $) {
|
|
397
397
|
var n = r.__data__;
|
|
398
|
-
if (!
|
|
398
|
+
if (!U || n.length < _n - 1)
|
|
399
399
|
return n.push([t, e]), this.size = ++r.size, this;
|
|
400
|
-
r = this.__data__ = new
|
|
400
|
+
r = this.__data__ = new I(n);
|
|
401
401
|
}
|
|
402
402
|
return r.set(t, e), this.size = r.size, this;
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
var e = this.__data__ = new
|
|
404
|
+
function C(t) {
|
|
405
|
+
var e = this.__data__ = new $(t);
|
|
406
406
|
this.size = e.size;
|
|
407
407
|
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
function
|
|
414
|
-
return t &&
|
|
408
|
+
C.prototype.clear = hn;
|
|
409
|
+
C.prototype.delete = bn;
|
|
410
|
+
C.prototype.get = vn;
|
|
411
|
+
C.prototype.has = yn;
|
|
412
|
+
C.prototype.set = jn;
|
|
413
|
+
function $n(t, e) {
|
|
414
|
+
return t && H(e, et(e), t);
|
|
415
415
|
}
|
|
416
416
|
function Tn(t, e) {
|
|
417
|
-
return t &&
|
|
417
|
+
return t && H(e, rt(e), t);
|
|
418
418
|
}
|
|
419
|
-
var
|
|
420
|
-
function
|
|
419
|
+
var qt = typeof exports == "object" && exports && !exports.nodeType && exports, bt = qt && typeof module == "object" && module && !module.nodeType && module, wn = bt && bt.exports === qt, vt = wn ? y.Buffer : void 0, yt = vt ? vt.allocUnsafe : void 0;
|
|
420
|
+
function mn(t, e) {
|
|
421
421
|
if (e)
|
|
422
422
|
return t.slice();
|
|
423
|
-
var r = t.length, n =
|
|
423
|
+
var r = t.length, n = yt ? yt(r) : new t.constructor(r);
|
|
424
424
|
return t.copy(n), n;
|
|
425
425
|
}
|
|
426
|
-
function
|
|
427
|
-
for (var r = -1, n = t == null ? 0 : t.length,
|
|
428
|
-
var
|
|
429
|
-
e(
|
|
426
|
+
function On(t, e) {
|
|
427
|
+
for (var r = -1, n = t == null ? 0 : t.length, o = 0, a = []; ++r < n; ) {
|
|
428
|
+
var s = t[r];
|
|
429
|
+
e(s, r, t) && (a[o++] = s);
|
|
430
430
|
}
|
|
431
|
-
return
|
|
431
|
+
return a;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function Yt() {
|
|
434
434
|
return [];
|
|
435
435
|
}
|
|
436
|
-
var
|
|
437
|
-
return t == null ? [] : (t = Object(t),
|
|
438
|
-
return
|
|
436
|
+
var An = Object.prototype, Sn = An.propertyIsEnumerable, _t = Object.getOwnPropertySymbols, Pn = _t ? function(t) {
|
|
437
|
+
return t == null ? [] : (t = Object(t), On(_t(t), function(e) {
|
|
438
|
+
return Sn.call(t, e);
|
|
439
439
|
}));
|
|
440
|
-
} :
|
|
441
|
-
const
|
|
442
|
-
function
|
|
443
|
-
return
|
|
440
|
+
} : Yt;
|
|
441
|
+
const nt = Pn;
|
|
442
|
+
function xn(t, e) {
|
|
443
|
+
return H(t, nt(t), e);
|
|
444
444
|
}
|
|
445
|
-
var En = Object.getOwnPropertySymbols,
|
|
445
|
+
var En = Object.getOwnPropertySymbols, In = En ? function(t) {
|
|
446
446
|
for (var e = []; t; )
|
|
447
|
-
|
|
447
|
+
Vt(e, nt(t)), t = Wt(t);
|
|
448
448
|
return e;
|
|
449
|
-
} :
|
|
450
|
-
const
|
|
451
|
-
function
|
|
452
|
-
return
|
|
449
|
+
} : Yt;
|
|
450
|
+
const Jt = In;
|
|
451
|
+
function Cn(t, e) {
|
|
452
|
+
return H(t, Jt(t), e);
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function Xt(t, e, r) {
|
|
455
455
|
var n = e(t);
|
|
456
|
-
return
|
|
456
|
+
return N(t) ? n : Vt(n, r(t));
|
|
457
457
|
}
|
|
458
|
-
function
|
|
459
|
-
return
|
|
458
|
+
function Mn(t) {
|
|
459
|
+
return Xt(t, et, nt);
|
|
460
460
|
}
|
|
461
461
|
function Fn(t) {
|
|
462
|
-
return
|
|
463
|
-
}
|
|
464
|
-
var
|
|
465
|
-
const
|
|
466
|
-
var
|
|
467
|
-
const
|
|
468
|
-
var
|
|
469
|
-
const
|
|
470
|
-
var
|
|
471
|
-
(
|
|
472
|
-
var e =
|
|
462
|
+
return Xt(t, rt, Jt);
|
|
463
|
+
}
|
|
464
|
+
var Dn = P(y, "DataView");
|
|
465
|
+
const X = Dn;
|
|
466
|
+
var Un = P(y, "Promise");
|
|
467
|
+
const Z = Un;
|
|
468
|
+
var Bn = P(y, "Set");
|
|
469
|
+
const Q = Bn;
|
|
470
|
+
var jt = "[object Map]", Ln = "[object Object]", $t = "[object Promise]", Tt = "[object Set]", wt = "[object WeakMap]", mt = "[object DataView]", Gn = S(X), Nn = S(U), zn = S(Z), Rn = S(Q), Kn = S(J), O = L;
|
|
471
|
+
(X && O(new X(new ArrayBuffer(1))) != mt || U && O(new U()) != jt || Z && O(Z.resolve()) != $t || Q && O(new Q()) != Tt || J && O(new J()) != wt) && (O = function(t) {
|
|
472
|
+
var e = L(t), r = e == Ln ? t.constructor : void 0, n = r ? S(r) : "";
|
|
473
473
|
if (n)
|
|
474
474
|
switch (n) {
|
|
475
|
-
case Ln:
|
|
476
|
-
return jt;
|
|
477
475
|
case Gn:
|
|
478
|
-
return
|
|
476
|
+
return mt;
|
|
479
477
|
case Nn:
|
|
480
|
-
return
|
|
478
|
+
return jt;
|
|
481
479
|
case zn:
|
|
482
|
-
return
|
|
480
|
+
return $t;
|
|
483
481
|
case Rn:
|
|
484
482
|
return Tt;
|
|
483
|
+
case Kn:
|
|
484
|
+
return wt;
|
|
485
485
|
}
|
|
486
486
|
return e;
|
|
487
487
|
});
|
|
488
|
-
const
|
|
489
|
-
var
|
|
490
|
-
function
|
|
488
|
+
const at = O;
|
|
489
|
+
var Hn = Object.prototype, Vn = Hn.hasOwnProperty;
|
|
490
|
+
function Wn(t) {
|
|
491
491
|
var e = t.length, r = new t.constructor(e);
|
|
492
|
-
return e && typeof t[0] == "string" &&
|
|
492
|
+
return e && typeof t[0] == "string" && Vn.call(t, "index") && (r.index = t.index, r.input = t.input), r;
|
|
493
493
|
}
|
|
494
|
-
var
|
|
495
|
-
const
|
|
496
|
-
function
|
|
494
|
+
var qn = y.Uint8Array;
|
|
495
|
+
const Ot = qn;
|
|
496
|
+
function ot(t) {
|
|
497
497
|
var e = new t.constructor(t.byteLength);
|
|
498
|
-
return new
|
|
498
|
+
return new Ot(e).set(new Ot(t)), e;
|
|
499
499
|
}
|
|
500
|
-
function
|
|
501
|
-
var r = e ?
|
|
500
|
+
function Yn(t, e) {
|
|
501
|
+
var r = e ? ot(t.buffer) : t.buffer;
|
|
502
502
|
return new t.constructor(r, t.byteOffset, t.byteLength);
|
|
503
503
|
}
|
|
504
|
-
var
|
|
505
|
-
function
|
|
506
|
-
var e = new t.constructor(t.source,
|
|
504
|
+
var Jn = /\w*$/;
|
|
505
|
+
function Xn(t) {
|
|
506
|
+
var e = new t.constructor(t.source, Jn.exec(t));
|
|
507
507
|
return e.lastIndex = t.lastIndex, e;
|
|
508
508
|
}
|
|
509
|
-
var
|
|
510
|
-
function
|
|
511
|
-
return
|
|
509
|
+
var At = x ? x.prototype : void 0, St = At ? At.valueOf : void 0;
|
|
510
|
+
function Zn(t) {
|
|
511
|
+
return St ? Object(St.call(t)) : {};
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
var r = e ?
|
|
513
|
+
function Qn(t, e) {
|
|
514
|
+
var r = e ? ot(t.buffer) : t.buffer;
|
|
515
515
|
return new t.constructor(r, t.byteOffset, t.length);
|
|
516
516
|
}
|
|
517
|
-
var
|
|
517
|
+
var kn = "[object Boolean]", ta = "[object Date]", ea = "[object Map]", ra = "[object Number]", na = "[object RegExp]", aa = "[object Set]", oa = "[object String]", sa = "[object Symbol]", ia = "[object ArrayBuffer]", ca = "[object DataView]", ua = "[object Float32Array]", la = "[object Float64Array]", fa = "[object Int8Array]", pa = "[object Int16Array]", ga = "[object Int32Array]", da = "[object Uint8Array]", ha = "[object Uint8ClampedArray]", ba = "[object Uint16Array]", va = "[object Uint32Array]";
|
|
518
518
|
function ya(t, e, r) {
|
|
519
519
|
var n = t.constructor;
|
|
520
520
|
switch (e) {
|
|
521
|
-
case
|
|
522
|
-
return
|
|
523
|
-
case Qn:
|
|
521
|
+
case ia:
|
|
522
|
+
return ot(t);
|
|
524
523
|
case kn:
|
|
524
|
+
case ta:
|
|
525
525
|
return new n(+t);
|
|
526
|
-
case ia:
|
|
527
|
-
return qn(t, r);
|
|
528
526
|
case ca:
|
|
527
|
+
return Yn(t, r);
|
|
529
528
|
case ua:
|
|
530
|
-
case fa:
|
|
531
529
|
case la:
|
|
530
|
+
case fa:
|
|
532
531
|
case pa:
|
|
533
532
|
case ga:
|
|
533
|
+
case da:
|
|
534
534
|
case ha:
|
|
535
535
|
case ba:
|
|
536
|
-
case
|
|
537
|
-
return
|
|
538
|
-
case ta:
|
|
539
|
-
return new n();
|
|
536
|
+
case va:
|
|
537
|
+
return Qn(t, r);
|
|
540
538
|
case ea:
|
|
541
|
-
case aa:
|
|
542
|
-
return new n(t);
|
|
543
|
-
case ra:
|
|
544
|
-
return Jn(t);
|
|
545
|
-
case na:
|
|
546
539
|
return new n();
|
|
540
|
+
case ra:
|
|
547
541
|
case oa:
|
|
542
|
+
return new n(t);
|
|
543
|
+
case na:
|
|
548
544
|
return Xn(t);
|
|
545
|
+
case aa:
|
|
546
|
+
return new n();
|
|
547
|
+
case sa:
|
|
548
|
+
return Zn(t);
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
function va(t) {
|
|
552
|
-
return typeof t.constructor == "function" && !Y(t) ? Fe(Ht(t)) : {};
|
|
553
|
-
}
|
|
554
|
-
var $a = "[object Map]";
|
|
555
551
|
function _a(t) {
|
|
556
|
-
return
|
|
557
|
-
}
|
|
558
|
-
var
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
var
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
552
|
+
return typeof t.constructor == "function" && !k(t) ? Fe(Wt(t)) : {};
|
|
553
|
+
}
|
|
554
|
+
var ja = "[object Map]";
|
|
555
|
+
function $a(t) {
|
|
556
|
+
return G(t) && at(t) == ja;
|
|
557
|
+
}
|
|
558
|
+
var Pt = E && E.isMap, Ta = Pt ? tt(Pt) : $a;
|
|
559
|
+
const wa = Ta;
|
|
560
|
+
var ma = "[object Set]";
|
|
561
|
+
function Oa(t) {
|
|
562
|
+
return G(t) && at(t) == ma;
|
|
563
|
+
}
|
|
564
|
+
var xt = E && E.isSet, Aa = xt ? tt(xt) : Oa;
|
|
565
|
+
const Sa = Aa;
|
|
566
|
+
var Pa = 1, xa = 2, Ea = 4, Zt = "[object Arguments]", Ia = "[object Array]", Ca = "[object Boolean]", Ma = "[object Date]", Fa = "[object Error]", Qt = "[object Function]", Da = "[object GeneratorFunction]", Ua = "[object Map]", Ba = "[object Number]", kt = "[object Object]", La = "[object RegExp]", Ga = "[object Set]", Na = "[object String]", za = "[object Symbol]", Ra = "[object WeakMap]", Ka = "[object ArrayBuffer]", Ha = "[object DataView]", Va = "[object Float32Array]", Wa = "[object Float64Array]", qa = "[object Int8Array]", Ya = "[object Int16Array]", Ja = "[object Int32Array]", Xa = "[object Uint8Array]", Za = "[object Uint8ClampedArray]", Qa = "[object Uint16Array]", ka = "[object Uint32Array]", i = {};
|
|
567
|
+
i[Zt] = i[Ia] = i[Ka] = i[Ha] = i[Ca] = i[Ma] = i[Va] = i[Wa] = i[qa] = i[Ya] = i[Ja] = i[Ua] = i[Ba] = i[kt] = i[La] = i[Ga] = i[Na] = i[za] = i[Xa] = i[Za] = i[Qa] = i[ka] = !0;
|
|
568
|
+
i[Fa] = i[Qt] = i[Ra] = !1;
|
|
569
|
+
function R(t, e, r, n, o, a) {
|
|
570
|
+
var s, u = e & Pa, f = e & xa, p = e & Ea;
|
|
571
|
+
if (r && (s = o ? r(t, n, o, a) : r(t)), s !== void 0)
|
|
572
|
+
return s;
|
|
573
|
+
if (!z(t))
|
|
574
574
|
return t;
|
|
575
|
-
var
|
|
576
|
-
if (
|
|
577
|
-
if (
|
|
578
|
-
return
|
|
575
|
+
var g = N(t);
|
|
576
|
+
if (g) {
|
|
577
|
+
if (s = Wn(t), !u)
|
|
578
|
+
return De(t, s);
|
|
579
579
|
} else {
|
|
580
|
-
var
|
|
581
|
-
if (
|
|
582
|
-
return
|
|
583
|
-
if (
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
580
|
+
var d = at(t), l = d == Qt || d == Da;
|
|
581
|
+
if (zt(t))
|
|
582
|
+
return mn(t, u);
|
|
583
|
+
if (d == kt || d == Zt || l && !o) {
|
|
584
|
+
if (s = f || l ? {} : _a(t), !u)
|
|
585
|
+
return f ? Cn(t, Tn(s, t)) : xn(t, $n(s, t));
|
|
586
586
|
} else {
|
|
587
|
-
if (!
|
|
588
|
-
return
|
|
589
|
-
|
|
587
|
+
if (!i[d])
|
|
588
|
+
return o ? t : {};
|
|
589
|
+
s = ya(t, d, u);
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
|
|
593
|
-
var
|
|
594
|
-
if (
|
|
595
|
-
return
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
}) :
|
|
599
|
-
|
|
592
|
+
a || (a = new C());
|
|
593
|
+
var h = a.get(t);
|
|
594
|
+
if (h)
|
|
595
|
+
return h;
|
|
596
|
+
a.set(t, s), Sa(t) ? t.forEach(function(b) {
|
|
597
|
+
s.add(R(b, e, r, b, t, a));
|
|
598
|
+
}) : wa(t) && t.forEach(function(b, m) {
|
|
599
|
+
s.set(m, R(b, e, r, m, t, a));
|
|
600
600
|
});
|
|
601
|
-
var
|
|
602
|
-
return
|
|
603
|
-
|
|
604
|
-
}),
|
|
601
|
+
var v = p ? f ? Fn : Mn : f ? rt : et, T = g ? void 0 : v(t);
|
|
602
|
+
return Be(T || t, function(b, m) {
|
|
603
|
+
T && (m = b, b = t[m]), Ut(s, m, R(b, e, r, m, t, a));
|
|
604
|
+
}), s;
|
|
605
605
|
}
|
|
606
|
-
var
|
|
607
|
-
function
|
|
608
|
-
return
|
|
606
|
+
var to = 1, eo = 4;
|
|
607
|
+
function B(t) {
|
|
608
|
+
return R(t, to | eo);
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function st(t, e) {
|
|
611
611
|
return t.then(function(r) {
|
|
612
612
|
return [null, r];
|
|
613
613
|
}).catch(function(r) {
|
|
614
614
|
return e && Object.assign(r, e), [r, void 0];
|
|
615
615
|
});
|
|
616
616
|
}
|
|
617
|
-
const
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
617
|
+
const j = void 0, ro = async (t, e) => {
|
|
618
|
+
try {
|
|
619
|
+
const r = typeof e < "u" ? B(e) : e;
|
|
620
|
+
return await Promise.resolve(t(r));
|
|
621
|
+
} catch (r) {
|
|
622
|
+
throw r;
|
|
623
|
+
}
|
|
624
|
+
}, Et = (t, e) => t < e.length, it = async (t, e, r, n, o) => {
|
|
625
|
+
if (!Et(n, t))
|
|
621
626
|
return e.value[t.length - 1].data;
|
|
622
|
-
const
|
|
623
|
-
if (typeof
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
+
const a = t[n];
|
|
628
|
+
if (typeof a != "function")
|
|
629
|
+
throw e.value[n].status = "rejected", new Error(`The parameter at index ${n} is not a function.`);
|
|
630
|
+
try {
|
|
631
|
+
const [s, u] = await st(ro(a, o));
|
|
632
|
+
if (s)
|
|
633
|
+
throw e.value[n].status = "rejected", s;
|
|
627
634
|
{
|
|
628
|
-
e.value[n]
|
|
629
|
-
const
|
|
630
|
-
return
|
|
635
|
+
e.value[n] = { status: "fulfilled", data: u };
|
|
636
|
+
const f = n + 1;
|
|
637
|
+
return Et(f, t) ? r.value ? u : it(
|
|
638
|
+
t,
|
|
639
|
+
e,
|
|
640
|
+
r,
|
|
641
|
+
f,
|
|
642
|
+
u
|
|
643
|
+
) : e.value[t.length - 1].data;
|
|
631
644
|
}
|
|
632
|
-
}
|
|
633
|
-
throw
|
|
634
|
-
}
|
|
645
|
+
} catch (s) {
|
|
646
|
+
throw s;
|
|
647
|
+
}
|
|
648
|
+
}, K = (t) => t.map(() => ({
|
|
635
649
|
status: "unStart",
|
|
636
|
-
data:
|
|
650
|
+
data: j
|
|
637
651
|
}));
|
|
638
|
-
function
|
|
639
|
-
if (!
|
|
652
|
+
function ao(t) {
|
|
653
|
+
if (!te(t))
|
|
640
654
|
throw new Error("Entry must be a ref");
|
|
641
|
-
if (!
|
|
655
|
+
if (!N(t.value))
|
|
642
656
|
throw new Error("Entry must be a list of functions");
|
|
643
|
-
const e =
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
657
|
+
const e = _(null), r = _(), n = _(!1), o = {
|
|
658
|
+
resolve: null,
|
|
659
|
+
reject: null
|
|
660
|
+
}, a = _(
|
|
661
|
+
K(t.value)
|
|
662
|
+
);
|
|
663
|
+
ee(
|
|
647
664
|
t,
|
|
648
665
|
() => {
|
|
649
|
-
|
|
666
|
+
a.value = K(t.value);
|
|
650
667
|
},
|
|
651
668
|
{
|
|
652
669
|
deep: !0
|
|
653
670
|
}
|
|
654
671
|
);
|
|
655
|
-
const
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
672
|
+
const s = async (g, d = 0) => {
|
|
673
|
+
try {
|
|
674
|
+
o.reject = null, o.resolve = null;
|
|
675
|
+
const [l, h] = await st(
|
|
676
|
+
it(t.value, a, n, d, g)
|
|
677
|
+
);
|
|
678
|
+
if (l) {
|
|
679
|
+
e.value = l, r.value = j;
|
|
680
|
+
const v = [l, j];
|
|
681
|
+
return o.reject && o.reject(v), v;
|
|
682
|
+
} else {
|
|
683
|
+
r.value = h, e.value = null;
|
|
684
|
+
const v = [null, B(h)];
|
|
685
|
+
return o.resolve && o.resolve(v), v;
|
|
686
|
+
}
|
|
687
|
+
} catch (l) {
|
|
688
|
+
const h = [l, j];
|
|
689
|
+
return o.reject && o.reject(h), h;
|
|
690
|
+
}
|
|
691
|
+
}, u = async (g) => (n.value = !1, t.value.length === 0 ? (r.value = g, e.value = null, [null, B(r.value)]) : s(g, 0)), f = () => new Promise((g, d) => {
|
|
692
|
+
o.reject = d, o.resolve = g, n.value = !0;
|
|
693
|
+
}), p = () => {
|
|
694
|
+
if (n.value) {
|
|
695
|
+
n.value = !1;
|
|
696
|
+
const g = a.value.findIndex((d) => d.data === j);
|
|
697
|
+
return s(
|
|
698
|
+
a.value[Math.max(g - 1, 0)].data,
|
|
699
|
+
g
|
|
700
|
+
);
|
|
701
|
+
}
|
|
664
702
|
};
|
|
665
703
|
return {
|
|
666
704
|
error: w(e),
|
|
667
705
|
result: w(r),
|
|
668
|
-
statusList: w(
|
|
669
|
-
|
|
670
|
-
|
|
706
|
+
statusList: w(a),
|
|
707
|
+
isSuspend: w(n),
|
|
708
|
+
start: u,
|
|
709
|
+
suspend: f,
|
|
710
|
+
resume: p
|
|
671
711
|
};
|
|
672
712
|
}
|
|
673
|
-
function
|
|
674
|
-
|
|
713
|
+
function oo(t) {
|
|
714
|
+
const e = _(t);
|
|
715
|
+
if (!N(e.value))
|
|
675
716
|
throw new Error("Entry must be a list of functions");
|
|
676
|
-
const
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
717
|
+
const r = _(null), n = _(), o = _(!1), a = {
|
|
718
|
+
resolve: null,
|
|
719
|
+
reject: null
|
|
720
|
+
}, s = _(
|
|
721
|
+
K(e.value)
|
|
722
|
+
), u = (l) => {
|
|
723
|
+
e.value = l, s.value = K(e.value);
|
|
724
|
+
}, f = async (l, h = 0) => {
|
|
725
|
+
try {
|
|
726
|
+
a.reject = null, a.resolve = null;
|
|
727
|
+
const [v, T] = await st(
|
|
728
|
+
it(e.value, s, o, h, l)
|
|
729
|
+
);
|
|
730
|
+
if (v) {
|
|
731
|
+
r.value = v, n.value = j;
|
|
732
|
+
const b = [v, j];
|
|
733
|
+
return a.reject && a.reject(b), b;
|
|
734
|
+
} else {
|
|
735
|
+
n.value = T, r.value = null;
|
|
736
|
+
const b = [null, B(T)];
|
|
737
|
+
return a.resolve && a.resolve(b), b;
|
|
738
|
+
}
|
|
739
|
+
} catch (v) {
|
|
740
|
+
const T = [v, j];
|
|
741
|
+
return a.reject && a.reject(T), T;
|
|
742
|
+
}
|
|
743
|
+
}, p = async (l) => (o.value = !1, e.value.length === 0 ? (n.value = l, r.value = null, [null, B(n.value)]) : f(l, 0)), g = () => new Promise((l, h) => {
|
|
744
|
+
a.reject = h, a.resolve = l, o.value = !0;
|
|
745
|
+
}), d = () => {
|
|
746
|
+
if (o.value) {
|
|
747
|
+
o.value = !1;
|
|
748
|
+
const l = s.value.findIndex((h) => h.data === j);
|
|
749
|
+
return f(
|
|
750
|
+
s.value[Math.max(l - 1, 0)].data,
|
|
751
|
+
l
|
|
752
|
+
);
|
|
681
753
|
}
|
|
682
|
-
s.value = L(t);
|
|
683
|
-
}, a = async (i) => {
|
|
684
|
-
if (n.value = !1, o(), t.length === 0)
|
|
685
|
-
return r.value = i, e.value = null, [null, F(i)];
|
|
686
|
-
const [l, h] = await et(
|
|
687
|
-
rt(t, s, n, 0, i)
|
|
688
|
-
);
|
|
689
|
-
return l ? (e.value = l, r.value = null, [l, void 0]) : (r.value = h, e.value = null, [null, F(h)]);
|
|
690
|
-
}, f = () => {
|
|
691
|
-
n.value = !0;
|
|
692
754
|
};
|
|
693
755
|
return {
|
|
694
|
-
error: w(
|
|
695
|
-
result: w(
|
|
756
|
+
error: w(r),
|
|
757
|
+
result: w(n),
|
|
696
758
|
statusList: w(s),
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
759
|
+
isSuspend: w(o),
|
|
760
|
+
start: p,
|
|
761
|
+
suspend: g,
|
|
762
|
+
resume: d,
|
|
763
|
+
update: u
|
|
700
764
|
};
|
|
701
765
|
}
|
|
702
766
|
export {
|
|
703
|
-
|
|
704
|
-
|
|
767
|
+
oo as useOrderFun,
|
|
768
|
+
ao as useWatchOrderFun
|
|
705
769
|
};
|