x-runtime-lib 0.4.7 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,33 +1,56 @@
|
|
|
1
1
|
var wi = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { provide as oe, inject as ue, readonly as $e, isReactive as
|
|
2
|
+
var xi = (n, s, p) => s in n ? wi(n, s, { enumerable: !0, configurable: !0, writable: !0, value: p }) : n[s] = p;
|
|
3
|
+
var xt = (n, s, p) => xi(n, typeof s != "symbol" ? s + "" : s, p);
|
|
4
|
+
import { provide as oe, inject as ue, readonly as $e, isReactive as on, defineComponent as un, computed as J, resolveComponent as Ci, openBlock as sn, createBlock as cn, ref as Cr, watchEffect as Ai, watch as Ii, onBeforeUnmount as ki, h as Le } from "vue";
|
|
5
5
|
import { useI18n as Di } from "vue-i18n";
|
|
6
|
-
import { openConfirmDlg as Fi, openPromptDlg as Li, eventBus as
|
|
7
|
-
const
|
|
6
|
+
import { openConfirmDlg as Fi, openPromptDlg as Li, eventBus as Mi } from "x-essential-lib";
|
|
7
|
+
const Ui = /* @__PURE__ */ new Set([
|
|
8
8
|
"globality_v1",
|
|
9
9
|
"btn_v1",
|
|
10
10
|
"ref_v1"
|
|
11
11
|
]), ji = [
|
|
12
12
|
{
|
|
13
13
|
key: "basic",
|
|
14
|
-
name: "basic",
|
|
14
|
+
name: "x-runtime-lib.basic",
|
|
15
15
|
items: ["globality_v1", "btn_v1"]
|
|
16
16
|
}
|
|
17
17
|
], Bi = {
|
|
18
18
|
version: "v1",
|
|
19
19
|
globalityKey: "globality_v1",
|
|
20
20
|
refKey: "ref_v1",
|
|
21
|
-
elements:
|
|
21
|
+
elements: Ui,
|
|
22
22
|
groups: ji
|
|
23
|
-
},
|
|
23
|
+
}, fn = {
|
|
24
24
|
v1: Bi
|
|
25
|
-
},
|
|
26
|
-
|
|
25
|
+
}, nt = {
|
|
26
|
+
key: "basic",
|
|
27
|
+
keyFlag: !0,
|
|
28
|
+
name: "x-runtime-lib.basic",
|
|
29
|
+
children: [
|
|
30
|
+
{
|
|
31
|
+
key: "id",
|
|
32
|
+
name: "x-runtime-lib.id",
|
|
33
|
+
ui: "strInput",
|
|
34
|
+
readonly: !0
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
key: "name",
|
|
38
|
+
name: "x-runtime-lib.name",
|
|
39
|
+
ui: "strInput",
|
|
40
|
+
static: !0
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
key: "alias",
|
|
44
|
+
name: "x-runtime-lib.alias",
|
|
45
|
+
ui: "strInput"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}, Ar = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
49
|
+
function ln(n) {
|
|
27
50
|
let s = "";
|
|
28
51
|
for (let p = 0; p < n; p++) {
|
|
29
|
-
const v = Math.floor(Math.random() *
|
|
30
|
-
s +=
|
|
52
|
+
const v = Math.floor(Math.random() * Ar.length);
|
|
53
|
+
s += Ar[v];
|
|
31
54
|
}
|
|
32
55
|
return s;
|
|
33
56
|
}
|
|
@@ -46,7 +69,7 @@ function Vi(n) {
|
|
|
46
69
|
const s = n.substring(0, n.length - 1), p = parseFloat(s);
|
|
47
70
|
return !isNaN(p);
|
|
48
71
|
}
|
|
49
|
-
function
|
|
72
|
+
function sc(n) {
|
|
50
73
|
if (typeof n != "string" || !n.endsWith("px"))
|
|
51
74
|
return;
|
|
52
75
|
const s = n.substring(0, n.length - 2), p = parseFloat(s);
|
|
@@ -60,24 +83,24 @@ function Ct(n) {
|
|
|
60
83
|
if (!isNaN(p))
|
|
61
84
|
return p;
|
|
62
85
|
}
|
|
63
|
-
var
|
|
64
|
-
function
|
|
65
|
-
var s = Xi.call(n,
|
|
86
|
+
var pn = typeof global == "object" && global && global.Object === Object && global, Yi = typeof self == "object" && self && self.Object === Object && self, q = pn || Yi || Function("return this")(), Re = q.Symbol, hn = Object.prototype, Xi = hn.hasOwnProperty, Wi = hn.toString, Me = Re ? Re.toStringTag : void 0;
|
|
87
|
+
function Ji(n) {
|
|
88
|
+
var s = Xi.call(n, Me), p = n[Me];
|
|
66
89
|
try {
|
|
67
|
-
n[
|
|
90
|
+
n[Me] = void 0;
|
|
68
91
|
var v = !0;
|
|
69
92
|
} catch {
|
|
70
93
|
}
|
|
71
|
-
var
|
|
72
|
-
return v && (s ? n[
|
|
94
|
+
var _ = Wi.call(n);
|
|
95
|
+
return v && (s ? n[Me] = p : delete n[Me]), _;
|
|
73
96
|
}
|
|
74
|
-
var
|
|
97
|
+
var zi = Object.prototype, Hi = zi.toString;
|
|
75
98
|
function Ki(n) {
|
|
76
99
|
return Hi.call(n);
|
|
77
100
|
}
|
|
78
|
-
var qi = "[object Null]", Zi = "[object Undefined]",
|
|
101
|
+
var qi = "[object Null]", Zi = "[object Undefined]", Ir = Re ? Re.toStringTag : void 0;
|
|
79
102
|
function Ge(n) {
|
|
80
|
-
return n == null ? n === void 0 ? Zi : qi :
|
|
103
|
+
return n == null ? n === void 0 ? Zi : qi : Ir && Ir in Object(n) ? Ji(n) : Ki(n);
|
|
81
104
|
}
|
|
82
105
|
function Ve(n) {
|
|
83
106
|
return n != null && typeof n == "object";
|
|
@@ -88,18 +111,18 @@ function Ye(n) {
|
|
|
88
111
|
return n != null && (s == "object" || s == "function");
|
|
89
112
|
}
|
|
90
113
|
var Qi = "[object AsyncFunction]", ea = "[object Function]", ta = "[object GeneratorFunction]", ra = "[object Proxy]";
|
|
91
|
-
function
|
|
114
|
+
function dn(n) {
|
|
92
115
|
if (!Ye(n))
|
|
93
116
|
return !1;
|
|
94
117
|
var s = Ge(n);
|
|
95
118
|
return s == ea || s == ta || s == Qi || s == ra;
|
|
96
119
|
}
|
|
97
|
-
var
|
|
98
|
-
var n = /[^.]+$/.exec(
|
|
120
|
+
var At = q["__core-js_shared__"], kr = function() {
|
|
121
|
+
var n = /[^.]+$/.exec(At && At.keys && At.keys.IE_PROTO || "");
|
|
99
122
|
return n ? "Symbol(src)_1." + n : "";
|
|
100
123
|
}();
|
|
101
124
|
function na(n) {
|
|
102
|
-
return !!
|
|
125
|
+
return !!kr && kr in n;
|
|
103
126
|
}
|
|
104
127
|
var ia = Function.prototype, aa = ia.toString;
|
|
105
128
|
function he(n) {
|
|
@@ -121,7 +144,7 @@ var oa = /[\\^$.*+?()[\]{}|]/g, ua = /^\[object .+?Constructor\]$/, sa = Functio
|
|
|
121
144
|
function ha(n) {
|
|
122
145
|
if (!Ye(n) || na(n))
|
|
123
146
|
return !1;
|
|
124
|
-
var s =
|
|
147
|
+
var s = dn(n) ? pa : ua;
|
|
125
148
|
return s.test(he(n));
|
|
126
149
|
}
|
|
127
150
|
function da(n, s) {
|
|
@@ -131,14 +154,14 @@ function de(n, s) {
|
|
|
131
154
|
var p = da(n, s);
|
|
132
155
|
return ha(p) ? p : void 0;
|
|
133
156
|
}
|
|
134
|
-
var
|
|
157
|
+
var kt = de(q, "WeakMap"), Dr = Object.create, va = /* @__PURE__ */ function() {
|
|
135
158
|
function n() {
|
|
136
159
|
}
|
|
137
160
|
return function(s) {
|
|
138
161
|
if (!Ye(s))
|
|
139
162
|
return {};
|
|
140
|
-
if (
|
|
141
|
-
return
|
|
163
|
+
if (Dr)
|
|
164
|
+
return Dr(s);
|
|
142
165
|
n.prototype = s;
|
|
143
166
|
var p = new n();
|
|
144
167
|
return n.prototype = void 0, p;
|
|
@@ -150,7 +173,7 @@ function ya(n, s) {
|
|
|
150
173
|
s[p] = n[p];
|
|
151
174
|
return s;
|
|
152
175
|
}
|
|
153
|
-
var
|
|
176
|
+
var Fr = function() {
|
|
154
177
|
try {
|
|
155
178
|
var n = de(Object, "defineProperty");
|
|
156
179
|
return n({}, "", {}), n;
|
|
@@ -162,45 +185,45 @@ function Ea(n, s) {
|
|
|
162
185
|
;
|
|
163
186
|
return n;
|
|
164
187
|
}
|
|
165
|
-
var
|
|
188
|
+
var _a = 9007199254740991, ga = /^(?:0|[1-9]\d*)$/;
|
|
166
189
|
function ba(n, s) {
|
|
167
190
|
var p = typeof n;
|
|
168
|
-
return s = s ??
|
|
191
|
+
return s = s ?? _a, !!s && (p == "number" || p != "symbol" && ga.test(n)) && n > -1 && n % 1 == 0 && n < s;
|
|
169
192
|
}
|
|
170
|
-
function
|
|
171
|
-
s == "__proto__" &&
|
|
193
|
+
function vn(n, s, p) {
|
|
194
|
+
s == "__proto__" && Fr ? Fr(n, s, {
|
|
172
195
|
configurable: !0,
|
|
173
196
|
enumerable: !0,
|
|
174
197
|
value: p,
|
|
175
198
|
writable: !0
|
|
176
199
|
}) : n[s] = p;
|
|
177
200
|
}
|
|
178
|
-
function
|
|
201
|
+
function yn(n, s) {
|
|
179
202
|
return n === s || n !== n && s !== s;
|
|
180
203
|
}
|
|
181
204
|
var ma = Object.prototype, Ra = ma.hasOwnProperty;
|
|
182
|
-
function
|
|
205
|
+
function En(n, s, p) {
|
|
183
206
|
var v = n[s];
|
|
184
|
-
(!(Ra.call(n, s) &&
|
|
207
|
+
(!(Ra.call(n, s) && yn(v, p)) || p === void 0 && !(s in n)) && vn(n, s, p);
|
|
185
208
|
}
|
|
186
|
-
function
|
|
187
|
-
var
|
|
209
|
+
function it(n, s, p, v) {
|
|
210
|
+
var _ = !p;
|
|
188
211
|
p || (p = {});
|
|
189
212
|
for (var R = -1, m = s.length; ++R < m; ) {
|
|
190
213
|
var N = s[R], T = void 0;
|
|
191
|
-
T === void 0 && (T = n[N]),
|
|
214
|
+
T === void 0 && (T = n[N]), _ ? vn(p, N, T) : En(p, N, T);
|
|
192
215
|
}
|
|
193
216
|
return p;
|
|
194
217
|
}
|
|
195
218
|
var Oa = 9007199254740991;
|
|
196
|
-
function
|
|
219
|
+
function _n(n) {
|
|
197
220
|
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= Oa;
|
|
198
221
|
}
|
|
199
222
|
function gn(n) {
|
|
200
|
-
return n != null &&
|
|
223
|
+
return n != null && _n(n.length) && !dn(n);
|
|
201
224
|
}
|
|
202
225
|
var Na = Object.prototype;
|
|
203
|
-
function
|
|
226
|
+
function jt(n) {
|
|
204
227
|
var s = n && n.constructor, p = typeof s == "function" && s.prototype || Na;
|
|
205
228
|
return n === p;
|
|
206
229
|
}
|
|
@@ -210,61 +233,61 @@ function Ta(n, s) {
|
|
|
210
233
|
return v;
|
|
211
234
|
}
|
|
212
235
|
var Sa = "[object Arguments]";
|
|
213
|
-
function
|
|
236
|
+
function Lr(n) {
|
|
214
237
|
return Ve(n) && Ge(n) == Sa;
|
|
215
238
|
}
|
|
216
|
-
var
|
|
239
|
+
var bn = Object.prototype, Pa = bn.hasOwnProperty, wa = bn.propertyIsEnumerable, xa = Lr(/* @__PURE__ */ function() {
|
|
217
240
|
return arguments;
|
|
218
|
-
}()) ?
|
|
241
|
+
}()) ? Lr : function(n) {
|
|
219
242
|
return Ve(n) && Pa.call(n, "callee") && !wa.call(n, "callee");
|
|
220
243
|
};
|
|
221
|
-
function
|
|
244
|
+
function Ca() {
|
|
222
245
|
return !1;
|
|
223
246
|
}
|
|
224
|
-
var
|
|
225
|
-
L[
|
|
226
|
-
L[ka] = L[Da] = L[Wa] = L[Fa] = L[
|
|
247
|
+
var mn = typeof exports == "object" && exports && !exports.nodeType && exports, Mr = mn && typeof module == "object" && module && !module.nodeType && module, Aa = Mr && Mr.exports === mn, Ur = Aa ? q.Buffer : void 0, Ia = Ur ? Ur.isBuffer : void 0, Rn = Ia || Ca, ka = "[object Arguments]", Da = "[object Array]", Fa = "[object Boolean]", La = "[object Date]", Ma = "[object Error]", Ua = "[object Function]", ja = "[object Map]", Ba = "[object Number]", $a = "[object Object]", Ga = "[object RegExp]", Va = "[object Set]", Ya = "[object String]", Xa = "[object WeakMap]", Wa = "[object ArrayBuffer]", Ja = "[object DataView]", za = "[object Float32Array]", Ha = "[object Float64Array]", Ka = "[object Int8Array]", qa = "[object Int16Array]", Za = "[object Int32Array]", Qa = "[object Uint8Array]", eo = "[object Uint8ClampedArray]", to = "[object Uint16Array]", ro = "[object Uint32Array]", L = {};
|
|
248
|
+
L[za] = L[Ha] = L[Ka] = L[qa] = L[Za] = L[Qa] = L[eo] = L[to] = L[ro] = !0;
|
|
249
|
+
L[ka] = L[Da] = L[Wa] = L[Fa] = L[Ja] = L[La] = L[Ma] = L[Ua] = L[ja] = L[Ba] = L[$a] = L[Ga] = L[Va] = L[Ya] = L[Xa] = !1;
|
|
227
250
|
function no(n) {
|
|
228
|
-
return Ve(n) &&
|
|
251
|
+
return Ve(n) && _n(n.length) && !!L[Ge(n)];
|
|
229
252
|
}
|
|
230
|
-
function
|
|
253
|
+
function Bt(n) {
|
|
231
254
|
return function(s) {
|
|
232
255
|
return n(s);
|
|
233
256
|
};
|
|
234
257
|
}
|
|
235
|
-
var
|
|
258
|
+
var On = typeof exports == "object" && exports && !exports.nodeType && exports, Ue = On && typeof module == "object" && module && !module.nodeType && module, io = Ue && Ue.exports === On, It = io && pn.process, Oe = function() {
|
|
236
259
|
try {
|
|
237
|
-
var n =
|
|
238
|
-
return n ||
|
|
260
|
+
var n = Ue && Ue.require && Ue.require("util").types;
|
|
261
|
+
return n || It && It.binding && It.binding("util");
|
|
239
262
|
} catch {
|
|
240
263
|
}
|
|
241
|
-
}(),
|
|
242
|
-
function
|
|
243
|
-
var p = Ut(n), v = !p &&
|
|
264
|
+
}(), jr = Oe && Oe.isTypedArray, ao = jr ? Bt(jr) : no, oo = Object.prototype, uo = oo.hasOwnProperty;
|
|
265
|
+
function Nn(n, s) {
|
|
266
|
+
var p = Ut(n), v = !p && xa(n), _ = !p && !v && Rn(n), R = !p && !v && !_ && ao(n), m = p || v || _ || R, N = m ? Ta(n.length, String) : [], T = N.length;
|
|
244
267
|
for (var r in n)
|
|
245
268
|
(s || uo.call(n, r)) && !(m && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
246
269
|
(r == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
247
|
-
|
|
270
|
+
_ && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
248
271
|
R && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
|
|
249
272
|
ba(r, T))) && N.push(r);
|
|
250
273
|
return N;
|
|
251
274
|
}
|
|
252
|
-
function
|
|
275
|
+
function Tn(n, s) {
|
|
253
276
|
return function(p) {
|
|
254
277
|
return n(s(p));
|
|
255
278
|
};
|
|
256
279
|
}
|
|
257
|
-
var so =
|
|
280
|
+
var so = Tn(Object.keys, Object), co = Object.prototype, fo = co.hasOwnProperty;
|
|
258
281
|
function lo(n) {
|
|
259
|
-
if (!
|
|
282
|
+
if (!jt(n))
|
|
260
283
|
return so(n);
|
|
261
284
|
var s = [];
|
|
262
285
|
for (var p in Object(n))
|
|
263
286
|
fo.call(n, p) && p != "constructor" && s.push(p);
|
|
264
287
|
return s;
|
|
265
288
|
}
|
|
266
|
-
function
|
|
267
|
-
return gn(n) ?
|
|
289
|
+
function $t(n) {
|
|
290
|
+
return gn(n) ? Nn(n) : lo(n);
|
|
268
291
|
}
|
|
269
292
|
function po(n) {
|
|
270
293
|
var s = [];
|
|
@@ -277,28 +300,28 @@ var ho = Object.prototype, vo = ho.hasOwnProperty;
|
|
|
277
300
|
function yo(n) {
|
|
278
301
|
if (!Ye(n))
|
|
279
302
|
return po(n);
|
|
280
|
-
var s =
|
|
303
|
+
var s = jt(n), p = [];
|
|
281
304
|
for (var v in n)
|
|
282
305
|
v == "constructor" && (s || !vo.call(n, v)) || p.push(v);
|
|
283
306
|
return p;
|
|
284
307
|
}
|
|
285
|
-
function
|
|
286
|
-
return gn(n) ?
|
|
308
|
+
function Gt(n) {
|
|
309
|
+
return gn(n) ? Nn(n, !0) : yo(n);
|
|
287
310
|
}
|
|
288
311
|
var je = de(Object, "create");
|
|
289
312
|
function Eo() {
|
|
290
313
|
this.__data__ = je ? je(null) : {}, this.size = 0;
|
|
291
314
|
}
|
|
292
|
-
function
|
|
315
|
+
function _o(n) {
|
|
293
316
|
var s = this.has(n) && delete this.__data__[n];
|
|
294
317
|
return this.size -= s ? 1 : 0, s;
|
|
295
318
|
}
|
|
296
|
-
var
|
|
319
|
+
var go = "__lodash_hash_undefined__", bo = Object.prototype, mo = bo.hasOwnProperty;
|
|
297
320
|
function Ro(n) {
|
|
298
321
|
var s = this.__data__;
|
|
299
322
|
if (je) {
|
|
300
323
|
var p = s[n];
|
|
301
|
-
return p ===
|
|
324
|
+
return p === go ? void 0 : p;
|
|
302
325
|
}
|
|
303
326
|
return mo.call(s, n) ? s[n] : void 0;
|
|
304
327
|
}
|
|
@@ -320,36 +343,36 @@ function pe(n) {
|
|
|
320
343
|
}
|
|
321
344
|
}
|
|
322
345
|
pe.prototype.clear = Eo;
|
|
323
|
-
pe.prototype.delete =
|
|
346
|
+
pe.prototype.delete = _o;
|
|
324
347
|
pe.prototype.get = Ro;
|
|
325
348
|
pe.prototype.has = To;
|
|
326
349
|
pe.prototype.set = Po;
|
|
327
350
|
function wo() {
|
|
328
351
|
this.__data__ = [], this.size = 0;
|
|
329
352
|
}
|
|
330
|
-
function
|
|
353
|
+
function at(n, s) {
|
|
331
354
|
for (var p = n.length; p--; )
|
|
332
|
-
if (
|
|
355
|
+
if (yn(n[p][0], s))
|
|
333
356
|
return p;
|
|
334
357
|
return -1;
|
|
335
358
|
}
|
|
336
|
-
var
|
|
359
|
+
var xo = Array.prototype, Co = xo.splice;
|
|
337
360
|
function Ao(n) {
|
|
338
|
-
var s = this.__data__, p =
|
|
361
|
+
var s = this.__data__, p = at(s, n);
|
|
339
362
|
if (p < 0)
|
|
340
363
|
return !1;
|
|
341
364
|
var v = s.length - 1;
|
|
342
|
-
return p == v ? s.pop() :
|
|
365
|
+
return p == v ? s.pop() : Co.call(s, p, 1), --this.size, !0;
|
|
343
366
|
}
|
|
344
367
|
function Io(n) {
|
|
345
|
-
var s = this.__data__, p =
|
|
368
|
+
var s = this.__data__, p = at(s, n);
|
|
346
369
|
return p < 0 ? void 0 : s[p][1];
|
|
347
370
|
}
|
|
348
371
|
function ko(n) {
|
|
349
|
-
return
|
|
372
|
+
return at(this.__data__, n) > -1;
|
|
350
373
|
}
|
|
351
374
|
function Do(n, s) {
|
|
352
|
-
var p = this.__data__, v =
|
|
375
|
+
var p = this.__data__, v = at(p, n);
|
|
353
376
|
return v < 0 ? (++this.size, p.push([n, s])) : p[v][1] = s, this;
|
|
354
377
|
}
|
|
355
378
|
function re(n) {
|
|
@@ -364,7 +387,7 @@ re.prototype.delete = Ao;
|
|
|
364
387
|
re.prototype.get = Io;
|
|
365
388
|
re.prototype.has = ko;
|
|
366
389
|
re.prototype.set = Do;
|
|
367
|
-
var Be = de(
|
|
390
|
+
var Be = de(q, "Map");
|
|
368
391
|
function Fo() {
|
|
369
392
|
this.size = 0, this.__data__ = {
|
|
370
393
|
hash: new pe(),
|
|
@@ -376,22 +399,22 @@ function Lo(n) {
|
|
|
376
399
|
var s = typeof n;
|
|
377
400
|
return s == "string" || s == "number" || s == "symbol" || s == "boolean" ? n !== "__proto__" : n === null;
|
|
378
401
|
}
|
|
379
|
-
function
|
|
402
|
+
function ot(n, s) {
|
|
380
403
|
var p = n.__data__;
|
|
381
404
|
return Lo(s) ? p[typeof s == "string" ? "string" : "hash"] : p.map;
|
|
382
405
|
}
|
|
383
|
-
function
|
|
384
|
-
var s =
|
|
406
|
+
function Mo(n) {
|
|
407
|
+
var s = ot(this, n).delete(n);
|
|
385
408
|
return this.size -= s ? 1 : 0, s;
|
|
386
409
|
}
|
|
387
|
-
function
|
|
388
|
-
return
|
|
410
|
+
function Uo(n) {
|
|
411
|
+
return ot(this, n).get(n);
|
|
389
412
|
}
|
|
390
413
|
function jo(n) {
|
|
391
|
-
return
|
|
414
|
+
return ot(this, n).has(n);
|
|
392
415
|
}
|
|
393
416
|
function Bo(n, s) {
|
|
394
|
-
var p =
|
|
417
|
+
var p = ot(this, n), v = p.size;
|
|
395
418
|
return p.set(n, s), this.size += p.size == v ? 0 : 1, this;
|
|
396
419
|
}
|
|
397
420
|
function Te(n) {
|
|
@@ -402,16 +425,16 @@ function Te(n) {
|
|
|
402
425
|
}
|
|
403
426
|
}
|
|
404
427
|
Te.prototype.clear = Fo;
|
|
405
|
-
Te.prototype.delete =
|
|
406
|
-
Te.prototype.get =
|
|
428
|
+
Te.prototype.delete = Mo;
|
|
429
|
+
Te.prototype.get = Uo;
|
|
407
430
|
Te.prototype.has = jo;
|
|
408
431
|
Te.prototype.set = Bo;
|
|
409
|
-
function
|
|
410
|
-
for (var p = -1, v = s.length,
|
|
411
|
-
n[
|
|
432
|
+
function Sn(n, s) {
|
|
433
|
+
for (var p = -1, v = s.length, _ = n.length; ++p < v; )
|
|
434
|
+
n[_ + p] = s[p];
|
|
412
435
|
return n;
|
|
413
436
|
}
|
|
414
|
-
var
|
|
437
|
+
var Pn = Tn(Object.getPrototypeOf, Object);
|
|
415
438
|
function $o() {
|
|
416
439
|
this.__data__ = new re(), this.size = 0;
|
|
417
440
|
}
|
|
@@ -445,70 +468,70 @@ Se.prototype.delete = Go;
|
|
|
445
468
|
Se.prototype.get = Vo;
|
|
446
469
|
Se.prototype.has = Yo;
|
|
447
470
|
Se.prototype.set = Wo;
|
|
448
|
-
function zo(n, s) {
|
|
449
|
-
return n && nt(s, Bt(s), n);
|
|
450
|
-
}
|
|
451
471
|
function Jo(n, s) {
|
|
452
|
-
return n &&
|
|
472
|
+
return n && it(s, $t(s), n);
|
|
473
|
+
}
|
|
474
|
+
function zo(n, s) {
|
|
475
|
+
return n && it(s, Gt(s), n);
|
|
453
476
|
}
|
|
454
|
-
var
|
|
477
|
+
var wn = typeof exports == "object" && exports && !exports.nodeType && exports, Br = wn && typeof module == "object" && module && !module.nodeType && module, Ho = Br && Br.exports === wn, $r = Ho ? q.Buffer : void 0, Gr = $r ? $r.allocUnsafe : void 0;
|
|
455
478
|
function Ko(n, s) {
|
|
456
479
|
if (s)
|
|
457
480
|
return n.slice();
|
|
458
|
-
var p = n.length, v =
|
|
481
|
+
var p = n.length, v = Gr ? Gr(p) : new n.constructor(p);
|
|
459
482
|
return n.copy(v), v;
|
|
460
483
|
}
|
|
461
484
|
function qo(n, s) {
|
|
462
|
-
for (var p = -1, v = n == null ? 0 : n.length,
|
|
485
|
+
for (var p = -1, v = n == null ? 0 : n.length, _ = 0, R = []; ++p < v; ) {
|
|
463
486
|
var m = n[p];
|
|
464
|
-
s(m, p, n) && (R[
|
|
487
|
+
s(m, p, n) && (R[_++] = m);
|
|
465
488
|
}
|
|
466
489
|
return R;
|
|
467
490
|
}
|
|
468
|
-
function
|
|
491
|
+
function xn() {
|
|
469
492
|
return [];
|
|
470
493
|
}
|
|
471
|
-
var Zo = Object.prototype, Qo = Zo.propertyIsEnumerable,
|
|
472
|
-
return n == null ? [] : (n = Object(n), qo(
|
|
494
|
+
var Zo = Object.prototype, Qo = Zo.propertyIsEnumerable, Vr = Object.getOwnPropertySymbols, Vt = Vr ? function(n) {
|
|
495
|
+
return n == null ? [] : (n = Object(n), qo(Vr(n), function(s) {
|
|
473
496
|
return Qo.call(n, s);
|
|
474
497
|
}));
|
|
475
|
-
} :
|
|
498
|
+
} : xn;
|
|
476
499
|
function eu(n, s) {
|
|
477
|
-
return
|
|
500
|
+
return it(n, Vt(n), s);
|
|
478
501
|
}
|
|
479
502
|
var tu = Object.getOwnPropertySymbols, Cn = tu ? function(n) {
|
|
480
503
|
for (var s = []; n; )
|
|
481
|
-
|
|
504
|
+
Sn(s, Vt(n)), n = Pn(n);
|
|
482
505
|
return s;
|
|
483
|
-
} :
|
|
506
|
+
} : xn;
|
|
484
507
|
function ru(n, s) {
|
|
485
|
-
return
|
|
508
|
+
return it(n, Cn(n), s);
|
|
486
509
|
}
|
|
487
|
-
function
|
|
510
|
+
function An(n, s, p) {
|
|
488
511
|
var v = s(n);
|
|
489
|
-
return Ut(n) ? v :
|
|
512
|
+
return Ut(n) ? v : Sn(v, p(n));
|
|
490
513
|
}
|
|
491
514
|
function nu(n) {
|
|
492
|
-
return
|
|
515
|
+
return An(n, $t, Vt);
|
|
493
516
|
}
|
|
494
517
|
function iu(n) {
|
|
495
|
-
return
|
|
518
|
+
return An(n, Gt, Cn);
|
|
496
519
|
}
|
|
497
|
-
var
|
|
498
|
-
(
|
|
520
|
+
var Dt = de(q, "DataView"), Ft = de(q, "Promise"), Lt = de(q, "Set"), Yr = "[object Map]", au = "[object Object]", Xr = "[object Promise]", Wr = "[object Set]", Jr = "[object WeakMap]", zr = "[object DataView]", ou = he(Dt), uu = he(Be), su = he(Ft), cu = he(Lt), fu = he(kt), te = Ge;
|
|
521
|
+
(Dt && te(new Dt(new ArrayBuffer(1))) != zr || Be && te(new Be()) != Yr || Ft && te(Ft.resolve()) != Xr || Lt && te(new Lt()) != Wr || kt && te(new kt()) != Jr) && (te = function(n) {
|
|
499
522
|
var s = Ge(n), p = s == au ? n.constructor : void 0, v = p ? he(p) : "";
|
|
500
523
|
if (v)
|
|
501
524
|
switch (v) {
|
|
502
525
|
case ou:
|
|
503
526
|
return zr;
|
|
504
527
|
case uu:
|
|
505
|
-
return Vr;
|
|
506
|
-
case su:
|
|
507
528
|
return Yr;
|
|
508
|
-
case
|
|
529
|
+
case su:
|
|
509
530
|
return Xr;
|
|
510
|
-
case
|
|
531
|
+
case cu:
|
|
511
532
|
return Wr;
|
|
533
|
+
case fu:
|
|
534
|
+
return Jr;
|
|
512
535
|
}
|
|
513
536
|
return s;
|
|
514
537
|
});
|
|
@@ -517,13 +540,13 @@ function hu(n) {
|
|
|
517
540
|
var s = n.length, p = new n.constructor(s);
|
|
518
541
|
return s && typeof n[0] == "string" && pu.call(n, "index") && (p.index = n.index, p.input = n.input), p;
|
|
519
542
|
}
|
|
520
|
-
var
|
|
521
|
-
function
|
|
543
|
+
var Hr = q.Uint8Array;
|
|
544
|
+
function Yt(n) {
|
|
522
545
|
var s = new n.constructor(n.byteLength);
|
|
523
|
-
return new
|
|
546
|
+
return new Hr(s).set(new Hr(n)), s;
|
|
524
547
|
}
|
|
525
548
|
function du(n, s) {
|
|
526
|
-
var p = s ?
|
|
549
|
+
var p = s ? Yt(n.buffer) : n.buffer;
|
|
527
550
|
return new n.constructor(p, n.byteOffset, n.byteLength);
|
|
528
551
|
}
|
|
529
552
|
var vu = /\w*$/;
|
|
@@ -531,35 +554,35 @@ function yu(n) {
|
|
|
531
554
|
var s = new n.constructor(n.source, vu.exec(n));
|
|
532
555
|
return s.lastIndex = n.lastIndex, s;
|
|
533
556
|
}
|
|
534
|
-
var
|
|
557
|
+
var Kr = Re ? Re.prototype : void 0, qr = Kr ? Kr.valueOf : void 0;
|
|
535
558
|
function Eu(n) {
|
|
536
|
-
return
|
|
559
|
+
return qr ? Object(qr.call(n)) : {};
|
|
537
560
|
}
|
|
538
|
-
function
|
|
539
|
-
var p = s ?
|
|
561
|
+
function _u(n, s) {
|
|
562
|
+
var p = s ? Yt(n.buffer) : n.buffer;
|
|
540
563
|
return new n.constructor(p, n.byteOffset, n.length);
|
|
541
564
|
}
|
|
542
|
-
var
|
|
543
|
-
function
|
|
565
|
+
var gu = "[object Boolean]", bu = "[object Date]", mu = "[object Map]", Ru = "[object Number]", Ou = "[object RegExp]", Nu = "[object Set]", Tu = "[object String]", Su = "[object Symbol]", Pu = "[object ArrayBuffer]", wu = "[object DataView]", xu = "[object Float32Array]", Cu = "[object Float64Array]", Au = "[object Int8Array]", Iu = "[object Int16Array]", ku = "[object Int32Array]", Du = "[object Uint8Array]", Fu = "[object Uint8ClampedArray]", Lu = "[object Uint16Array]", Mu = "[object Uint32Array]";
|
|
566
|
+
function Uu(n, s, p) {
|
|
544
567
|
var v = n.constructor;
|
|
545
568
|
switch (s) {
|
|
546
569
|
case Pu:
|
|
547
|
-
return
|
|
548
|
-
case
|
|
570
|
+
return Yt(n);
|
|
571
|
+
case gu:
|
|
549
572
|
case bu:
|
|
550
573
|
return new v(+n);
|
|
551
574
|
case wu:
|
|
552
575
|
return du(n, p);
|
|
553
|
-
case Cu:
|
|
554
576
|
case xu:
|
|
577
|
+
case Cu:
|
|
555
578
|
case Au:
|
|
556
579
|
case Iu:
|
|
557
580
|
case ku:
|
|
558
581
|
case Du:
|
|
559
582
|
case Fu:
|
|
560
583
|
case Lu:
|
|
561
|
-
case
|
|
562
|
-
return
|
|
584
|
+
case Mu:
|
|
585
|
+
return _u(n, p);
|
|
563
586
|
case mu:
|
|
564
587
|
return new v();
|
|
565
588
|
case Ru:
|
|
@@ -574,21 +597,21 @@ function Mu(n, s, p) {
|
|
|
574
597
|
}
|
|
575
598
|
}
|
|
576
599
|
function ju(n) {
|
|
577
|
-
return typeof n.constructor == "function" && !
|
|
600
|
+
return typeof n.constructor == "function" && !jt(n) ? va(Pn(n)) : {};
|
|
578
601
|
}
|
|
579
602
|
var Bu = "[object Map]";
|
|
580
603
|
function $u(n) {
|
|
581
604
|
return Ve(n) && te(n) == Bu;
|
|
582
605
|
}
|
|
583
|
-
var
|
|
606
|
+
var Zr = Oe && Oe.isMap, Gu = Zr ? Bt(Zr) : $u, Vu = "[object Set]";
|
|
584
607
|
function Yu(n) {
|
|
585
608
|
return Ve(n) && te(n) == Vu;
|
|
586
609
|
}
|
|
587
|
-
var
|
|
588
|
-
F[
|
|
589
|
-
F[Zu] = F[
|
|
590
|
-
function rt(n, s, p, v,
|
|
591
|
-
var m, N = s & Wu, T = s &
|
|
610
|
+
var Qr = Oe && Oe.isSet, Xu = Qr ? Bt(Qr) : Yu, Wu = 1, Ju = 2, zu = 4, In = "[object Arguments]", Hu = "[object Array]", Ku = "[object Boolean]", qu = "[object Date]", Zu = "[object Error]", kn = "[object Function]", Qu = "[object GeneratorFunction]", es = "[object Map]", ts = "[object Number]", Dn = "[object Object]", rs = "[object RegExp]", ns = "[object Set]", is = "[object String]", as = "[object Symbol]", os = "[object WeakMap]", us = "[object ArrayBuffer]", ss = "[object DataView]", cs = "[object Float32Array]", fs = "[object Float64Array]", ls = "[object Int8Array]", ps = "[object Int16Array]", hs = "[object Int32Array]", ds = "[object Uint8Array]", vs = "[object Uint8ClampedArray]", ys = "[object Uint16Array]", Es = "[object Uint32Array]", F = {};
|
|
611
|
+
F[In] = F[Hu] = F[us] = F[ss] = F[Ku] = F[qu] = F[cs] = F[fs] = F[ls] = F[ps] = F[hs] = F[es] = F[ts] = F[Dn] = F[rs] = F[ns] = F[is] = F[as] = F[ds] = F[vs] = F[ys] = F[Es] = !0;
|
|
612
|
+
F[Zu] = F[kn] = F[os] = !1;
|
|
613
|
+
function rt(n, s, p, v, _, R) {
|
|
614
|
+
var m, N = s & Wu, T = s & Ju, r = s & zu;
|
|
592
615
|
if (m !== void 0)
|
|
593
616
|
return m;
|
|
594
617
|
if (!Ye(n))
|
|
@@ -598,16 +621,16 @@ function rt(n, s, p, v, g, R) {
|
|
|
598
621
|
if (m = hu(n), !N)
|
|
599
622
|
return ya(n, m);
|
|
600
623
|
} else {
|
|
601
|
-
var e = te(n), i = e ==
|
|
602
|
-
if (
|
|
624
|
+
var e = te(n), i = e == kn || e == Qu;
|
|
625
|
+
if (Rn(n))
|
|
603
626
|
return Ko(n, N);
|
|
604
|
-
if (e ==
|
|
627
|
+
if (e == Dn || e == In || i && !_) {
|
|
605
628
|
if (m = T || i ? {} : ju(n), !N)
|
|
606
|
-
return T ? ru(n,
|
|
629
|
+
return T ? ru(n, zo(m, n)) : eu(n, Jo(m, n));
|
|
607
630
|
} else {
|
|
608
631
|
if (!F[e])
|
|
609
|
-
return
|
|
610
|
-
m =
|
|
632
|
+
return _ ? n : {};
|
|
633
|
+
m = Uu(n, e, N);
|
|
611
634
|
}
|
|
612
635
|
}
|
|
613
636
|
R || (R = new Se());
|
|
@@ -619,14 +642,14 @@ function rt(n, s, p, v, g, R) {
|
|
|
619
642
|
}) : Gu(n) && n.forEach(function(a, l) {
|
|
620
643
|
m.set(l, rt(a, s, p, l, n, R));
|
|
621
644
|
});
|
|
622
|
-
var u = r ? T ? iu : nu : T ?
|
|
645
|
+
var u = r ? T ? iu : nu : T ? Gt : $t, c = t ? void 0 : u(n);
|
|
623
646
|
return Ea(c || n, function(a, l) {
|
|
624
|
-
c && (l = a, a = n[l]),
|
|
647
|
+
c && (l = a, a = n[l]), En(m, l, rt(a, s, p, l, n, R));
|
|
625
648
|
}), m;
|
|
626
649
|
}
|
|
627
|
-
var
|
|
628
|
-
function
|
|
629
|
-
return rt(n,
|
|
650
|
+
var _s = 1, gs = 4;
|
|
651
|
+
function Mt(n) {
|
|
652
|
+
return rt(n, _s | gs);
|
|
630
653
|
}
|
|
631
654
|
function bs(n, s) {
|
|
632
655
|
if (n === "page") {
|
|
@@ -635,12 +658,12 @@ function bs(n, s) {
|
|
|
635
658
|
} else if (n === "comp" && s === "common")
|
|
636
659
|
return "compCommon";
|
|
637
660
|
}
|
|
638
|
-
function
|
|
661
|
+
function en(n) {
|
|
639
662
|
var s;
|
|
640
663
|
if (n.array)
|
|
641
|
-
return n.default instanceof Array ?
|
|
664
|
+
return n.default instanceof Array ? Mt(n.default) : [];
|
|
642
665
|
if (n.default !== void 0)
|
|
643
|
-
return
|
|
666
|
+
return Mt(n.default);
|
|
644
667
|
switch (n.ui) {
|
|
645
668
|
case "void":
|
|
646
669
|
return null;
|
|
@@ -648,183 +671,223 @@ function Qr(n) {
|
|
|
648
671
|
return "";
|
|
649
672
|
case "numInput":
|
|
650
673
|
return 0;
|
|
674
|
+
case "switch":
|
|
675
|
+
return !1;
|
|
651
676
|
case "select":
|
|
652
677
|
return ((s = n.items) == null ? void 0 : s[0].value) ?? "";
|
|
678
|
+
case "colorPicker":
|
|
679
|
+
return "#FFFFFF";
|
|
653
680
|
default:
|
|
654
681
|
console.assert(!1, `not implemented ui=${n.ui}`);
|
|
655
682
|
}
|
|
656
683
|
}
|
|
657
|
-
function
|
|
658
|
-
function p(v,
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
}) : v[
|
|
684
|
+
function tn(n, s) {
|
|
685
|
+
function p(v, _) {
|
|
686
|
+
_.static || (_.children ? _.array ? v[_.key] = en(_) : _.children.forEach((R) => {
|
|
687
|
+
_.keyFlag ? p(v, R) : (v[_.key] = {}, p(v[_.key], R));
|
|
688
|
+
}) : v[_.key] = en(_));
|
|
662
689
|
}
|
|
663
690
|
s.forEach((v) => p(n, v));
|
|
664
691
|
}
|
|
665
|
-
function ms(n, s, p, v,
|
|
692
|
+
function ms(n, s, p, v, _) {
|
|
666
693
|
const R = bs(n, s);
|
|
667
694
|
if (!R) {
|
|
668
695
|
console.error("invalid prop tag");
|
|
669
696
|
return;
|
|
670
697
|
}
|
|
671
|
-
const m =
|
|
698
|
+
const m = fn[p];
|
|
672
699
|
if (!m) {
|
|
673
700
|
console.error(`pkg not found version=${p}`);
|
|
674
701
|
return;
|
|
675
702
|
}
|
|
676
|
-
const N = {}, T =
|
|
703
|
+
const N = {}, T = ln(16);
|
|
677
704
|
if (v) {
|
|
678
705
|
const r = m.refKey;
|
|
679
706
|
if (!m.elements.has(r)) {
|
|
680
|
-
console.error(`[ref] element not found in pkg key=${
|
|
707
|
+
console.error(`[ref] element not found in pkg key=${_}`);
|
|
681
708
|
return;
|
|
682
709
|
}
|
|
683
710
|
const t = Ne[r];
|
|
684
711
|
if (!t) {
|
|
685
|
-
console.error(`[ref] element not found in global key=${
|
|
712
|
+
console.error(`[ref] element not found in global key=${_}`);
|
|
686
713
|
return;
|
|
687
714
|
}
|
|
688
715
|
const e = t.props[R];
|
|
689
716
|
if (!e) {
|
|
690
|
-
console.error(`[ref] props not found key=${
|
|
717
|
+
console.error(`[ref] props not found key=${_} tag=${R}`);
|
|
691
718
|
return;
|
|
692
719
|
}
|
|
693
|
-
|
|
694
|
-
id:
|
|
720
|
+
tn(N, e), N.id = T, N.ref = {
|
|
721
|
+
id: _
|
|
695
722
|
};
|
|
696
723
|
} else {
|
|
697
|
-
if (!m.elements.has(
|
|
698
|
-
console.error(`[key] element not found in pkg key=${
|
|
724
|
+
if (!m.elements.has(_)) {
|
|
725
|
+
console.error(`[key] element not found in pkg key=${_}`);
|
|
699
726
|
return;
|
|
700
727
|
}
|
|
701
|
-
const r = Ne[
|
|
728
|
+
const r = Ne[_];
|
|
702
729
|
if (!r) {
|
|
703
|
-
console.error(`[key] element not found in global key=${
|
|
730
|
+
console.error(`[key] element not found in global key=${_}`);
|
|
704
731
|
return;
|
|
705
732
|
}
|
|
706
733
|
const t = r.props[R];
|
|
707
734
|
if (!t) {
|
|
708
|
-
console.error(`[key] props not found key=${
|
|
735
|
+
console.error(`[key] props not found key=${_} tag=${R}`);
|
|
709
736
|
return;
|
|
710
737
|
}
|
|
711
|
-
|
|
738
|
+
tn(N, t), N.id = T, N.key = _, r.leaf || (N.children = []);
|
|
712
739
|
}
|
|
713
740
|
return N;
|
|
714
741
|
}
|
|
715
|
-
function
|
|
742
|
+
function cc(n, s) {
|
|
716
743
|
function p(v) {
|
|
717
744
|
if (v.id === s)
|
|
718
745
|
return v;
|
|
719
746
|
if (v.children)
|
|
720
|
-
for (let
|
|
721
|
-
const R = p(v.children[
|
|
747
|
+
for (let _ = 0; _ < v.children.length; _++) {
|
|
748
|
+
const R = p(v.children[_]);
|
|
722
749
|
if (R)
|
|
723
750
|
return R;
|
|
724
751
|
}
|
|
725
752
|
}
|
|
726
753
|
for (let v = 0; v < n.length; v++) {
|
|
727
|
-
const
|
|
728
|
-
if (
|
|
729
|
-
return
|
|
754
|
+
const _ = p(n[v]);
|
|
755
|
+
if (_)
|
|
756
|
+
return _;
|
|
730
757
|
}
|
|
731
758
|
}
|
|
732
|
-
function
|
|
759
|
+
function fc(n) {
|
|
733
760
|
function s(v) {
|
|
734
|
-
var
|
|
735
|
-
v.id =
|
|
761
|
+
var _;
|
|
762
|
+
v.id = ln(16), (_ = v.children) == null || _.forEach((R) => s(R));
|
|
736
763
|
}
|
|
737
|
-
const p =
|
|
764
|
+
const p = Mt(n);
|
|
738
765
|
return s(p), p;
|
|
739
766
|
}
|
|
740
|
-
const
|
|
741
|
-
function fc(n) {
|
|
742
|
-
oe(Dn, n);
|
|
743
|
-
}
|
|
744
|
-
function Rs() {
|
|
745
|
-
return ue(Dn);
|
|
746
|
-
}
|
|
767
|
+
const Fn = "runtimeEnv", Ln = "runtimeMode", Mn = "runtimeDevice", Un = "runtimeDark", jn = "runtimeType", Bn = "runtimeData", $n = "runtimeDepends", Gn = "runtimeInterpreter";
|
|
747
768
|
function lc(n) {
|
|
748
769
|
oe(Fn, n);
|
|
749
770
|
}
|
|
750
|
-
function
|
|
771
|
+
function Rs() {
|
|
751
772
|
return ue(Fn);
|
|
752
773
|
}
|
|
753
774
|
function pc(n) {
|
|
754
|
-
oe(Ln,
|
|
775
|
+
oe(Ln, n);
|
|
755
776
|
}
|
|
756
|
-
function
|
|
777
|
+
function Os() {
|
|
757
778
|
return ue(Ln);
|
|
758
779
|
}
|
|
759
780
|
function hc(n) {
|
|
760
|
-
oe(
|
|
781
|
+
oe(Mn, $e(n));
|
|
761
782
|
}
|
|
762
|
-
function
|
|
763
|
-
return ue(
|
|
783
|
+
function Ns() {
|
|
784
|
+
return ue(Mn);
|
|
764
785
|
}
|
|
765
786
|
function dc(n) {
|
|
766
|
-
oe(
|
|
787
|
+
oe(Un, $e(n));
|
|
767
788
|
}
|
|
768
|
-
function
|
|
769
|
-
return ue(
|
|
789
|
+
function Ts() {
|
|
790
|
+
return ue(Un);
|
|
770
791
|
}
|
|
771
792
|
function vc(n) {
|
|
772
|
-
oe(jn,
|
|
793
|
+
oe(jn, n);
|
|
773
794
|
}
|
|
774
|
-
function
|
|
775
|
-
|
|
776
|
-
return console.assert(an(n)), n;
|
|
795
|
+
function Ss() {
|
|
796
|
+
return ue(jn);
|
|
777
797
|
}
|
|
778
798
|
function yc(n) {
|
|
779
799
|
oe(Bn, $e(n));
|
|
780
800
|
}
|
|
781
|
-
function
|
|
801
|
+
function Ps() {
|
|
782
802
|
const n = ue(Bn);
|
|
783
|
-
return console.assert(
|
|
803
|
+
return console.assert(on(n)), n;
|
|
784
804
|
}
|
|
785
|
-
function
|
|
805
|
+
function Ec(n) {
|
|
786
806
|
oe($n, $e(n));
|
|
787
807
|
}
|
|
788
|
-
function
|
|
789
|
-
|
|
808
|
+
function ws() {
|
|
809
|
+
const n = ue($n);
|
|
810
|
+
return console.assert(on(n)), n;
|
|
811
|
+
}
|
|
812
|
+
function xs(n) {
|
|
813
|
+
oe(Gn, $e(n));
|
|
814
|
+
}
|
|
815
|
+
function _c() {
|
|
816
|
+
return ue(Gn);
|
|
790
817
|
}
|
|
791
|
-
const
|
|
818
|
+
const Cs = /* @__PURE__ */ un({
|
|
792
819
|
__name: "index",
|
|
793
820
|
props: {
|
|
794
821
|
node: {},
|
|
795
822
|
outer: { type: Boolean }
|
|
796
823
|
},
|
|
797
824
|
setup(n) {
|
|
798
|
-
const s = Ts(), p = n, v =
|
|
799
|
-
return (
|
|
800
|
-
const
|
|
801
|
-
return
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
825
|
+
const s = Ts(), p = n, v = J(() => p.node.text), _ = J(() => p.node.disabled), R = J(() => p.node.variant), m = J(() => p.node.density), N = J(() => p.node.block), T = J(() => s.value ? "dark" : "light");
|
|
826
|
+
return (r, t) => {
|
|
827
|
+
const e = Ci("v-btn");
|
|
828
|
+
return sn(), cn(e, {
|
|
829
|
+
text: v.value,
|
|
830
|
+
disabled: _.value,
|
|
831
|
+
variant: R.value,
|
|
832
|
+
density: m.value,
|
|
833
|
+
block: N.value,
|
|
834
|
+
theme: T.value
|
|
835
|
+
}, null, 8, ["text", "disabled", "variant", "density", "block", "theme"]);
|
|
805
836
|
};
|
|
806
837
|
}
|
|
807
838
|
}), As = [
|
|
839
|
+
{ title: "x-runtime-lib.elevated", value: "elevated" },
|
|
840
|
+
{ title: "x-runtime-lib.flat", value: "flat" },
|
|
841
|
+
{ title: "x-runtime-lib.tonal", value: "tonal" },
|
|
842
|
+
{ title: "x-runtime-lib.outlined", value: "outlined" },
|
|
843
|
+
{ title: "x-runtime-lib.text", value: "text" },
|
|
844
|
+
{ title: "x-runtime-lib.plain", value: "plain" }
|
|
845
|
+
], Is = [
|
|
808
846
|
{ title: "x-runtime-lib.default", value: "default" },
|
|
809
847
|
{ title: "x-runtime-lib.comfortable", value: "comfortable" },
|
|
810
848
|
{ title: "x-runtime-lib.compact", value: "compact" }
|
|
811
|
-
],
|
|
849
|
+
], rn = {
|
|
812
850
|
key: "settings",
|
|
813
851
|
keyFlag: !0,
|
|
814
852
|
name: "x-runtime-lib.settings",
|
|
815
853
|
children: [
|
|
854
|
+
{
|
|
855
|
+
key: "text",
|
|
856
|
+
name: "x-runtime-lib.text",
|
|
857
|
+
ui: "strInput",
|
|
858
|
+
default: "button"
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
key: "disabled",
|
|
862
|
+
name: "x-runtime-lib.disabled",
|
|
863
|
+
ui: "switch",
|
|
864
|
+
default: !1
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
key: "variant",
|
|
868
|
+
name: "x-runtime-lib.variant",
|
|
869
|
+
ui: "select",
|
|
870
|
+
items: As,
|
|
871
|
+
default: "elevated"
|
|
872
|
+
},
|
|
816
873
|
{
|
|
817
874
|
key: "density",
|
|
818
875
|
name: "x-runtime-lib.density",
|
|
819
876
|
ui: "select",
|
|
820
|
-
items:
|
|
877
|
+
items: Is,
|
|
821
878
|
default: "default"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
key: "block",
|
|
882
|
+
name: "x-runtime-lib.block",
|
|
883
|
+
ui: "switch",
|
|
884
|
+
default: !1
|
|
822
885
|
}
|
|
823
886
|
]
|
|
824
|
-
},
|
|
887
|
+
}, ks = {
|
|
825
888
|
key: "btn_v1",
|
|
826
889
|
name: "x-runtime-lib.button",
|
|
827
|
-
comp:
|
|
890
|
+
comp: Cs,
|
|
828
891
|
leaf: !0,
|
|
829
892
|
events: [
|
|
830
893
|
{
|
|
@@ -834,10 +897,10 @@ const xs = /* @__PURE__ */ on({
|
|
|
834
897
|
],
|
|
835
898
|
methods: [],
|
|
836
899
|
props: {
|
|
837
|
-
pageCommon: [
|
|
838
|
-
compCommon: [
|
|
900
|
+
pageCommon: [nt, rn],
|
|
901
|
+
compCommon: [nt, rn]
|
|
839
902
|
}
|
|
840
|
-
},
|
|
903
|
+
}, nn = {
|
|
841
904
|
key: "globalSettings",
|
|
842
905
|
name: "x-runtime-lib.globalSettings",
|
|
843
906
|
children: [
|
|
@@ -848,7 +911,7 @@ const xs = /* @__PURE__ */ on({
|
|
|
848
911
|
default: "#00000000"
|
|
849
912
|
}
|
|
850
913
|
]
|
|
851
|
-
},
|
|
914
|
+
}, Ds = {
|
|
852
915
|
key: "globality_v1",
|
|
853
916
|
name: "x-runtime-lib.globality",
|
|
854
917
|
comp: "",
|
|
@@ -856,56 +919,83 @@ const xs = /* @__PURE__ */ on({
|
|
|
856
919
|
events: [
|
|
857
920
|
{
|
|
858
921
|
key: "startup",
|
|
859
|
-
name: "
|
|
922
|
+
name: "EVENT_STARTUP"
|
|
860
923
|
},
|
|
861
924
|
{
|
|
862
|
-
key: "
|
|
863
|
-
name: "
|
|
925
|
+
key: "screenSizeChange",
|
|
926
|
+
name: "EVENT_SCREEN_SIZE_CHANGE",
|
|
864
927
|
params: [
|
|
865
928
|
{
|
|
866
929
|
key: "newScreenSize",
|
|
867
|
-
name: "
|
|
930
|
+
name: "PARAM_NEW_SCREEN_SIZE"
|
|
868
931
|
},
|
|
869
932
|
{
|
|
870
933
|
key: "oldScreenSize",
|
|
871
|
-
name: "
|
|
934
|
+
name: "PARAM_OLD_SCREEN_SIZE"
|
|
872
935
|
}
|
|
873
936
|
]
|
|
874
937
|
},
|
|
875
938
|
{
|
|
876
|
-
key: "
|
|
877
|
-
name: "
|
|
939
|
+
key: "darkModeChange",
|
|
940
|
+
name: "EVENT_DARK_MODE_CHANGE",
|
|
878
941
|
params: [
|
|
879
942
|
{
|
|
880
943
|
key: "isDarkMode",
|
|
881
|
-
name: "
|
|
944
|
+
name: "PARAM_IS_DARK_MODE"
|
|
882
945
|
}
|
|
883
946
|
]
|
|
884
947
|
}
|
|
885
948
|
],
|
|
886
949
|
methods: [],
|
|
887
950
|
props: {
|
|
888
|
-
pageCommon: [
|
|
889
|
-
compCommon: [
|
|
951
|
+
pageCommon: [nn],
|
|
952
|
+
compCommon: [nn]
|
|
890
953
|
},
|
|
891
954
|
internal: !0
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
|
|
955
|
+
}, me = [
|
|
956
|
+
{
|
|
957
|
+
name: "default",
|
|
958
|
+
ui: "word",
|
|
959
|
+
validator: $i,
|
|
960
|
+
default: ""
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
name: "pixel",
|
|
964
|
+
ui: "pixelInput",
|
|
965
|
+
validator: Gi,
|
|
966
|
+
default: "0px",
|
|
967
|
+
precision: 0,
|
|
968
|
+
min: 0,
|
|
969
|
+
max: 1 / 0,
|
|
970
|
+
step: 1
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
name: "percent",
|
|
974
|
+
ui: "percentInput",
|
|
975
|
+
validator: Vi,
|
|
976
|
+
default: "0%",
|
|
977
|
+
precision: 4,
|
|
978
|
+
min: 0,
|
|
979
|
+
max: 1 / 0,
|
|
980
|
+
step: 1
|
|
981
|
+
}
|
|
982
|
+
];
|
|
983
|
+
function Fs(n) {
|
|
984
|
+
const s = Os(), p = Ns(), v = J(() => n.node.width), _ = J(() => n.node.minWidth), R = J(() => n.node.maxWidth), m = J(() => {
|
|
895
985
|
if (n.outer && s === "editor") {
|
|
896
986
|
const t = Ct(n.node.height);
|
|
897
987
|
if (t)
|
|
898
988
|
return t / 100 * p.value.height + "px";
|
|
899
989
|
}
|
|
900
990
|
return n.node.height;
|
|
901
|
-
}), N =
|
|
991
|
+
}), N = J(() => {
|
|
902
992
|
if (n.outer && s === "editor") {
|
|
903
993
|
const t = Ct(n.node.minHeight);
|
|
904
994
|
if (t)
|
|
905
995
|
return t / 100 * p.value.height + "px";
|
|
906
996
|
}
|
|
907
997
|
return n.node.minHeight;
|
|
908
|
-
}), T =
|
|
998
|
+
}), T = J(() => {
|
|
909
999
|
if (n.outer && s === "editor") {
|
|
910
1000
|
const t = Ct(n.node.maxHeight);
|
|
911
1001
|
if (t)
|
|
@@ -914,12 +1004,12 @@ function Ds(n) {
|
|
|
914
1004
|
return n.node.maxHeight;
|
|
915
1005
|
});
|
|
916
1006
|
function r(t) {
|
|
917
|
-
v.value && (t.width = v.value),
|
|
1007
|
+
v.value && (t.width = v.value), _.value && (t.minWidth = _.value), R.value && (t.maxWidth = R.value), m.value && (t.height = m.value), N.value && (t.minHeight = N.value), T.value && (t.maxHeight = T.value);
|
|
918
1008
|
}
|
|
919
|
-
return { width: v, minWidth:
|
|
1009
|
+
return { width: v, minWidth: _, maxWidth: R, height: m, minHeight: N, maxHeight: T, applySize: r };
|
|
920
1010
|
}
|
|
921
|
-
var
|
|
922
|
-
function
|
|
1011
|
+
var Ls = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1012
|
+
function Ms(n) {
|
|
923
1013
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
924
1014
|
}
|
|
925
1015
|
function Us(n) {
|
|
@@ -932,8 +1022,8 @@ function Us(n) {
|
|
|
932
1022
|
p.prototype = s.prototype;
|
|
933
1023
|
} else p = {};
|
|
934
1024
|
return Object.defineProperty(p, "__esModule", { value: !0 }), Object.keys(n).forEach(function(v) {
|
|
935
|
-
var
|
|
936
|
-
Object.defineProperty(p, v,
|
|
1025
|
+
var _ = Object.getOwnPropertyDescriptor(n, v);
|
|
1026
|
+
Object.defineProperty(p, v, _.get ? _ : {
|
|
937
1027
|
enumerable: !0,
|
|
938
1028
|
get: function() {
|
|
939
1029
|
return n[v];
|
|
@@ -941,15 +1031,15 @@ function Us(n) {
|
|
|
941
1031
|
});
|
|
942
1032
|
}), p;
|
|
943
1033
|
}
|
|
944
|
-
var
|
|
945
|
-
const
|
|
1034
|
+
var Vn = { exports: {} };
|
|
1035
|
+
const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
946
1036
|
__proto__: null,
|
|
947
|
-
default:
|
|
948
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1037
|
+
default: js
|
|
1038
|
+
}, Symbol.toStringTag, { value: "Module" })), $s = /* @__PURE__ */ Us(Bs);
|
|
949
1039
|
(function(n, s) {
|
|
950
|
-
(function(v,
|
|
951
|
-
n.exports =
|
|
952
|
-
})(
|
|
1040
|
+
(function(v, _) {
|
|
1041
|
+
n.exports = _();
|
|
1042
|
+
})(Ls, () => (
|
|
953
1043
|
/******/
|
|
954
1044
|
(() => {
|
|
955
1045
|
var p = {
|
|
@@ -1249,8 +1339,8 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1249
1339
|
var a = "";
|
|
1250
1340
|
var l = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1251
1341
|
if (l) {
|
|
1252
|
-
for (var y = l.split(/\s*,\s*/),
|
|
1253
|
-
var O = y[
|
|
1342
|
+
for (var y = l.split(/\s*,\s*/), g = 0; g < y.length; g++) {
|
|
1343
|
+
var O = y[g];
|
|
1254
1344
|
o.test(O) || e.throwException(
|
|
1255
1345
|
e.SYNTAX_ERROR,
|
|
1256
1346
|
"Invalid function argument: " + O
|
|
@@ -1496,8 +1586,8 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1496
1586
|
e.TYPE_ERROR,
|
|
1497
1587
|
"Object.getOwnPropertyDescriptor called on non-object: " + c
|
|
1498
1588
|
), a = String(a), a in c.properties) {
|
|
1499
|
-
var l = Object.getOwnPropertyDescriptor(c.properties, a), y = c.getter[a],
|
|
1500
|
-
return y ||
|
|
1589
|
+
var l = Object.getOwnPropertyDescriptor(c.properties, a), y = c.getter[a], g = c.setter[a], O = e.createObjectProto(e.OBJECT_PROTO);
|
|
1590
|
+
return y || g ? (e.setProperty(O, "get", y), e.setProperty(O, "set", g)) : (e.setProperty(
|
|
1501
1591
|
O,
|
|
1502
1592
|
"value",
|
|
1503
1593
|
/** @type {!Interpreter.Value} */
|
|
@@ -2086,18 +2176,18 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2086
2176
|
/** @type {?} */
|
|
2087
2177
|
y
|
|
2088
2178
|
);
|
|
2089
|
-
} catch (
|
|
2179
|
+
} catch (g) {
|
|
2090
2180
|
e.throwException(
|
|
2091
2181
|
e.ERROR,
|
|
2092
|
-
"localeCompare: " +
|
|
2182
|
+
"localeCompare: " + g.message
|
|
2093
2183
|
);
|
|
2094
2184
|
}
|
|
2095
2185
|
}, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a, l, y) {
|
|
2096
|
-
var
|
|
2186
|
+
var g = String(this);
|
|
2097
2187
|
if (l = l ? Number(l) : void 0, e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, y), e.REGEXP_MODE === 2)) {
|
|
2098
2188
|
if (r.vm) {
|
|
2099
2189
|
var O = {
|
|
2100
|
-
string:
|
|
2190
|
+
string: g,
|
|
2101
2191
|
separator: a,
|
|
2102
2192
|
limit: l
|
|
2103
2193
|
}, b = "string.split(separator, limit)", D = e.vmCall(b, O, a, y);
|
|
@@ -2110,20 +2200,20 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2110
2200
|
);
|
|
2111
2201
|
P.onmessage = function(X) {
|
|
2112
2202
|
clearTimeout(I), y(e.nativeToPseudo(X.data));
|
|
2113
|
-
}, P.postMessage(["split",
|
|
2203
|
+
}, P.postMessage(["split", g, a, l]);
|
|
2114
2204
|
}
|
|
2115
2205
|
return;
|
|
2116
2206
|
}
|
|
2117
|
-
var D =
|
|
2207
|
+
var D = g.split(a, l);
|
|
2118
2208
|
y(e.nativeToPseudo(D));
|
|
2119
2209
|
}, this.setAsyncFunctionPrototype(this.STRING, "split", i), i = function(a, l) {
|
|
2120
2210
|
var y = String(this);
|
|
2121
2211
|
if (a = e.isa(a, e.REGEXP) ? a.data : new RegExp(a), e.maybeThrowRegExp(a, l), e.REGEXP_MODE === 2) {
|
|
2122
2212
|
if (r.vm) {
|
|
2123
|
-
var
|
|
2213
|
+
var g = {
|
|
2124
2214
|
string: y,
|
|
2125
2215
|
regexp: a
|
|
2126
|
-
}, O = "string.match(regexp)", I = e.vmCall(O,
|
|
2216
|
+
}, O = "string.match(regexp)", I = e.vmCall(O, g, a, l);
|
|
2127
2217
|
I !== r.REGEXP_TIMEOUT && l(I && e.matchToPseudo_(I));
|
|
2128
2218
|
} else {
|
|
2129
2219
|
var b = e.createWorker(), P = e.regExpTimeout(a, b, l);
|
|
@@ -2139,10 +2229,10 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2139
2229
|
var y = String(this);
|
|
2140
2230
|
if (e.isa(a, e.REGEXP) ? a = a.data : a = new RegExp(a), e.maybeThrowRegExp(a, l), e.REGEXP_MODE === 2) {
|
|
2141
2231
|
if (r.vm) {
|
|
2142
|
-
var
|
|
2232
|
+
var g = {
|
|
2143
2233
|
string: y,
|
|
2144
2234
|
regexp: a
|
|
2145
|
-
}, O = "string.search(regexp)", b = e.vmCall(O,
|
|
2235
|
+
}, O = "string.search(regexp)", b = e.vmCall(O, g, a, l);
|
|
2146
2236
|
b !== r.REGEXP_TIMEOUT && l(b);
|
|
2147
2237
|
} else {
|
|
2148
2238
|
var P = e.createWorker(), I = e.regExpTimeout(a, P, l);
|
|
@@ -2154,11 +2244,11 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2154
2244
|
}
|
|
2155
2245
|
l(y.search(a));
|
|
2156
2246
|
}, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a, l, y) {
|
|
2157
|
-
var
|
|
2247
|
+
var g = String(this);
|
|
2158
2248
|
if (l = String(l), e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, y), e.REGEXP_MODE === 2)) {
|
|
2159
2249
|
if (r.vm) {
|
|
2160
2250
|
var O = {
|
|
2161
|
-
string:
|
|
2251
|
+
string: g,
|
|
2162
2252
|
substr: a,
|
|
2163
2253
|
newSubstr: l
|
|
2164
2254
|
}, b = "string.replace(substr, newSubstr)", P = e.vmCall(b, O, a, y);
|
|
@@ -2171,11 +2261,11 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2171
2261
|
);
|
|
2172
2262
|
I.onmessage = function(X) {
|
|
2173
2263
|
clearTimeout(D), y(X.data);
|
|
2174
|
-
}, I.postMessage(["replace",
|
|
2264
|
+
}, I.postMessage(["replace", g, a, l]);
|
|
2175
2265
|
}
|
|
2176
2266
|
return;
|
|
2177
2267
|
}
|
|
2178
|
-
y(
|
|
2268
|
+
y(g.replace(a, l));
|
|
2179
2269
|
}, this.setAsyncFunctionPrototype(this.STRING, "replace", i), this.polyfills_.push(
|
|
2180
2270
|
/* POLYFILL START */
|
|
2181
2271
|
"(function() {",
|
|
@@ -2371,8 +2461,8 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2371
2461
|
e.TYPE_ERROR,
|
|
2372
2462
|
c + " not called on a Date"
|
|
2373
2463
|
);
|
|
2374
|
-
for (var y = [],
|
|
2375
|
-
y[
|
|
2464
|
+
for (var y = [], g = 0; g < arguments.length; g++)
|
|
2465
|
+
y[g] = e.pseudoToNative(arguments[g]);
|
|
2376
2466
|
return l[c].apply(l, y);
|
|
2377
2467
|
};
|
|
2378
2468
|
}(o[u]), this.setNativeFunctionPrototype(this.DATE, o[u], i);
|
|
@@ -2450,10 +2540,10 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2450
2540
|
}, y = "regexp.exec(string)", P = e.vmCall(y, l, a, c);
|
|
2451
2541
|
P !== r.REGEXP_TIMEOUT && (e.setProperty(this, "lastIndex", a.lastIndex), c(e.matchToPseudo_(P)));
|
|
2452
2542
|
} else {
|
|
2453
|
-
var
|
|
2454
|
-
|
|
2543
|
+
var g = e.createWorker(), O = e.regExpTimeout(a, g, c), b = this;
|
|
2544
|
+
g.onmessage = function(I) {
|
|
2455
2545
|
clearTimeout(O), e.setProperty(b, "lastIndex", I.data[1]), c(e.matchToPseudo_(I.data[0]));
|
|
2456
|
-
},
|
|
2546
|
+
}, g.postMessage(["exec", a, a.lastIndex, u]);
|
|
2457
2547
|
}
|
|
2458
2548
|
return;
|
|
2459
2549
|
}
|
|
@@ -2598,11 +2688,11 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2598
2688
|
})) : a = null, typeof l != "string" && typeof l != "number" && (l = void 0);
|
|
2599
2689
|
var y = i.pseudoToNative(c);
|
|
2600
2690
|
try {
|
|
2601
|
-
var
|
|
2691
|
+
var g = JSON.stringify(y, a, l);
|
|
2602
2692
|
} catch (O) {
|
|
2603
2693
|
i.throwException(i.TYPE_ERROR, O.message);
|
|
2604
2694
|
}
|
|
2605
|
-
return
|
|
2695
|
+
return g;
|
|
2606
2696
|
}, this.setProperty(
|
|
2607
2697
|
o,
|
|
2608
2698
|
"stringify",
|
|
@@ -2662,17 +2752,17 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2662
2752
|
}
|
|
2663
2753
|
c.loc && (!i.length || c.type === "CallExpression") && i.push({ datumLoc: c.loc });
|
|
2664
2754
|
}
|
|
2665
|
-
for (var l = String(this.getProperty(t, "name")), y = String(this.getProperty(t, "message")),
|
|
2755
|
+
for (var l = String(this.getProperty(t, "name")), y = String(this.getProperty(t, "message")), g = l + ": " + y + `
|
|
2666
2756
|
`, o = 0; o < i.length; o++) {
|
|
2667
2757
|
var O = i[o].datumLoc, b = i[o].datumName, P = O.source + ":" + O.start.line + ":" + O.start.column;
|
|
2668
|
-
b ?
|
|
2669
|
-
` :
|
|
2758
|
+
b ? g += " at " + b + " (" + P + `)
|
|
2759
|
+
` : g += " at " + P + `
|
|
2670
2760
|
`;
|
|
2671
2761
|
}
|
|
2672
2762
|
this.setProperty(
|
|
2673
2763
|
t,
|
|
2674
2764
|
"stack",
|
|
2675
|
-
|
|
2765
|
+
g.trim(),
|
|
2676
2766
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2677
2767
|
);
|
|
2678
2768
|
}, r.prototype.createWorker = function() {
|
|
@@ -2812,8 +2902,8 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2812
2902
|
return a.pseudoToNative(D);
|
|
2813
2903
|
}), I = t.apply(a, P);
|
|
2814
2904
|
return a.nativeToPseudo(I);
|
|
2815
|
-
}, y = Object.getOwnPropertyDescriptor(t, "prototype"),
|
|
2816
|
-
return i.pseudo.push(
|
|
2905
|
+
}, y = Object.getOwnPropertyDescriptor(t, "prototype"), g = this.createNativeFunction(l, !!y);
|
|
2906
|
+
return i.pseudo.push(g), g;
|
|
2817
2907
|
}
|
|
2818
2908
|
var O;
|
|
2819
2909
|
Array.isArray(t) ? O = this.createArray() : O = this.createObjectProto(this.OBJECT_PROTO), i.pseudo.push(O);
|
|
@@ -2955,14 +3045,14 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2955
3045
|
} else {
|
|
2956
3046
|
if (i === r.VALUE_IN_DESCRIPTOR)
|
|
2957
3047
|
throw ReferenceError("Value not specified");
|
|
2958
|
-
for (var
|
|
2959
|
-
if (
|
|
2960
|
-
|
|
3048
|
+
for (var g = t; !(e in g.properties); )
|
|
3049
|
+
if (g = this.getPrototype(g), !g) {
|
|
3050
|
+
g = t;
|
|
2961
3051
|
break;
|
|
2962
3052
|
}
|
|
2963
|
-
if (
|
|
2964
|
-
return this.setterStep_ = !0,
|
|
2965
|
-
if (
|
|
3053
|
+
if (g.setter && g.setter[e])
|
|
3054
|
+
return this.setterStep_ = !0, g.setter[e];
|
|
3055
|
+
if (g.getter && g.getter[e])
|
|
2966
3056
|
u && this.throwException(this.TYPE_ERROR, "Cannot set property '" + e + "' of object '" + t + "' which only has a getter");
|
|
2967
3057
|
else
|
|
2968
3058
|
try {
|
|
@@ -3155,8 +3245,8 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3155
3245
|
SyntaxError,
|
|
3156
3246
|
TypeError,
|
|
3157
3247
|
URIError
|
|
3158
|
-
}, l = String(this.getProperty(e, "name")), y = this.getProperty(e, "message").valueOf(),
|
|
3159
|
-
c =
|
|
3248
|
+
}, l = String(this.getProperty(e, "name")), y = this.getProperty(e, "message").valueOf(), g = a[l] || Error;
|
|
3249
|
+
c = g(y), c.stack = String(this.getProperty(e, "stack"));
|
|
3160
3250
|
} else
|
|
3161
3251
|
c = String(e);
|
|
3162
3252
|
throw this.value = c, c;
|
|
@@ -3192,16 +3282,16 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3192
3282
|
}
|
|
3193
3283
|
return "???";
|
|
3194
3284
|
}, r.prototype.createTask_ = function(t, e) {
|
|
3195
|
-
var i = this.stateStack[this.stateStack.length - 1], o = Array.from(e), u = o.shift(), c = Math.max(Number(o.shift() || 0), 0), a = this.newNode(), l, y,
|
|
3285
|
+
var i = this.stateStack[this.stateStack.length - 1], o = Array.from(e), u = o.shift(), c = Math.max(Number(o.shift() || 0), 0), a = this.newNode(), l, y, g;
|
|
3196
3286
|
if (u instanceof r.Object && u.class === "Function")
|
|
3197
3287
|
y = u, a.type = "CallExpression", l = i.scope;
|
|
3198
3288
|
else {
|
|
3199
3289
|
try {
|
|
3200
|
-
|
|
3290
|
+
g = this.parse_(String(u), "taskCode" + this.taskCodeNumber_++);
|
|
3201
3291
|
} catch (D) {
|
|
3202
3292
|
this.throwException(this.SYNTAX_ERROR, "Invalid code: " + D.message);
|
|
3203
3293
|
}
|
|
3204
|
-
a.type = "EvalProgram_", a.body =
|
|
3294
|
+
a.type = "EvalProgram_", a.body = g.body;
|
|
3205
3295
|
var O = i.node.arguments[0], b = O ? O.start : void 0, P = O ? O.end : void 0;
|
|
3206
3296
|
r.stripLocations_(a, b, P), l = this.globalScope, o.length = 0;
|
|
3207
3297
|
}
|
|
@@ -3542,11 +3632,11 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3542
3632
|
);
|
|
3543
3633
|
var a = u.node;
|
|
3544
3634
|
if (a) {
|
|
3545
|
-
for (var l = this.createScope(a.body, u.parentScope), y = this.createArray(),
|
|
3546
|
-
this.setProperty(y,
|
|
3635
|
+
for (var l = this.createScope(a.body, u.parentScope), y = this.createArray(), g = 0; g < e.arguments_.length; g++)
|
|
3636
|
+
this.setProperty(y, g, e.arguments_[g]);
|
|
3547
3637
|
this.setProperty(l.object, "arguments", y);
|
|
3548
|
-
for (var
|
|
3549
|
-
var O = a.params[
|
|
3638
|
+
for (var g = 0; g < a.params.length; g++) {
|
|
3639
|
+
var O = a.params[g].name, b = e.arguments_.length > g ? e.arguments_[g] : void 0;
|
|
3550
3640
|
this.setProperty(l.object, O, b);
|
|
3551
3641
|
}
|
|
3552
3642
|
return l.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), this.setProperty(
|
|
@@ -4058,71 +4148,71 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4058
4148
|
var c = function(f, h) {
|
|
4059
4149
|
for (var d = 1, E = 0; ; ) {
|
|
4060
4150
|
Ke.lastIndex = E;
|
|
4061
|
-
var
|
|
4062
|
-
if (
|
|
4063
|
-
++d, E =
|
|
4151
|
+
var x = Ke.exec(f);
|
|
4152
|
+
if (x && x.index < h)
|
|
4153
|
+
++d, E = x.index + x[0].length;
|
|
4064
4154
|
else
|
|
4065
4155
|
break;
|
|
4066
4156
|
}
|
|
4067
4157
|
return { line: d, column: h - E };
|
|
4068
|
-
}, a = 0, l = 0, y = 0,
|
|
4158
|
+
}, a = 0, l = 0, y = 0, g, O, b, P, I, D, X, Pe = 0, z = 0, ve, se, j, W;
|
|
4069
4159
|
function A(f, h) {
|
|
4070
4160
|
var d = c(t, f);
|
|
4071
4161
|
h += " (" + d.line + ":" + d.column + ")";
|
|
4072
4162
|
var E = new SyntaxError(h);
|
|
4073
4163
|
throw E.pos = f, E.loc = d, E.raisedAt = a, E;
|
|
4074
4164
|
}
|
|
4075
|
-
var Xn = [], Xe = { type: "num" },
|
|
4076
|
-
break:
|
|
4077
|
-
case:
|
|
4078
|
-
catch:
|
|
4079
|
-
continue:
|
|
4165
|
+
var Xn = [], Xe = { type: "num" }, Xt = { type: "regexp" }, ut = { type: "string" }, ye = { type: "name" }, st = { type: "eof" }, ct = { keyword: "break" }, ft = { keyword: "case", beforeExpr: !0 }, Wt = { keyword: "catch" }, Jt = { keyword: "continue" }, zt = { keyword: "debugger" }, Ht = { keyword: "default" }, Kt = { keyword: "do", isLoop: !0 }, qt = { keyword: "else", beforeExpr: !0 }, Zt = { keyword: "finally" }, Qt = { keyword: "for", isLoop: !0 }, lt = { keyword: "function" }, er = { keyword: "if" }, tr = { keyword: "return", beforeExpr: !0 }, pt = { keyword: "switch" }, rr = { keyword: "throw", beforeExpr: !0 }, nr = { keyword: "try" }, ht = { keyword: "var" }, dt = { keyword: "while", isLoop: !0 }, ir = { keyword: "with" }, ar = { keyword: "new", beforeExpr: !0 }, or = { keyword: "this" }, ur = { keyword: "null", atomValue: null }, sr = { keyword: "true", atomValue: !0 }, cr = { keyword: "false", atomValue: !1 }, We = { keyword: "in", binop: 7, beforeExpr: !0 }, Wn = {
|
|
4166
|
+
break: ct,
|
|
4167
|
+
case: ft,
|
|
4168
|
+
catch: Wt,
|
|
4169
|
+
continue: Jt,
|
|
4080
4170
|
debugger: zt,
|
|
4081
|
-
default:
|
|
4082
|
-
do:
|
|
4083
|
-
else:
|
|
4084
|
-
finally:
|
|
4085
|
-
for:
|
|
4086
|
-
function:
|
|
4087
|
-
if:
|
|
4088
|
-
return:
|
|
4089
|
-
switch:
|
|
4090
|
-
throw:
|
|
4091
|
-
try:
|
|
4092
|
-
var:
|
|
4093
|
-
while:
|
|
4094
|
-
with:
|
|
4095
|
-
null:
|
|
4096
|
-
true:
|
|
4097
|
-
false:
|
|
4098
|
-
new:
|
|
4171
|
+
default: Ht,
|
|
4172
|
+
do: Kt,
|
|
4173
|
+
else: qt,
|
|
4174
|
+
finally: Zt,
|
|
4175
|
+
for: Qt,
|
|
4176
|
+
function: lt,
|
|
4177
|
+
if: er,
|
|
4178
|
+
return: tr,
|
|
4179
|
+
switch: pt,
|
|
4180
|
+
throw: rr,
|
|
4181
|
+
try: nr,
|
|
4182
|
+
var: ht,
|
|
4183
|
+
while: dt,
|
|
4184
|
+
with: ir,
|
|
4185
|
+
null: ur,
|
|
4186
|
+
true: sr,
|
|
4187
|
+
false: cr,
|
|
4188
|
+
new: ar,
|
|
4099
4189
|
in: We,
|
|
4100
4190
|
instanceof: { keyword: "instanceof", binop: 7, beforeExpr: !0 },
|
|
4101
|
-
this:
|
|
4191
|
+
this: or,
|
|
4102
4192
|
typeof: { keyword: "typeof", prefix: !0, beforeExpr: !0 },
|
|
4103
4193
|
void: { keyword: "void", prefix: !0, beforeExpr: !0 },
|
|
4104
4194
|
delete: { keyword: "delete", prefix: !0, beforeExpr: !0 }
|
|
4105
|
-
},
|
|
4106
|
-
function
|
|
4195
|
+
}, vt = { type: "[", beforeExpr: !0 }, yt = { type: "]" }, we = { type: "{", beforeExpr: !0 }, Ee = { type: "}" }, Z = { type: "(", beforeExpr: !0 }, K = { type: ")" }, ne = { type: ",", beforeExpr: !0 }, Q = { type: ";", beforeExpr: !0 }, xe = { type: ":", beforeExpr: !0 }, fr = { type: "." }, lr = { type: "?", beforeExpr: !0 }, pr = { binop: 10, beforeExpr: !0 }, hr = { isAssign: !0, beforeExpr: !0 }, ce = { isAssign: !0, beforeExpr: !0 }, Jn = { postfix: !0, prefix: !0, isUpdate: !0 }, dr = { prefix: !0, beforeExpr: !0 }, vr = { binop: 1, beforeExpr: !0 }, yr = { binop: 2, beforeExpr: !0 }, zn = { binop: 3, beforeExpr: !0 }, Hn = { binop: 4, beforeExpr: !0 }, Kn = { binop: 5, beforeExpr: !0 }, qn = { binop: 6, beforeExpr: !0 }, Zn = { binop: 7, beforeExpr: !0 }, Qn = { binop: 8, beforeExpr: !0 }, ei = { binop: 9, prefix: !0, beforeExpr: !0 }, ti = { binop: 10, beforeExpr: !0 };
|
|
4196
|
+
function Je(f) {
|
|
4107
4197
|
for (var h = f.split(" "), d = /* @__PURE__ */ Object.create(null), E = 0; E < h.length; E++)
|
|
4108
4198
|
d[h[E]] = !0;
|
|
4109
|
-
return function(
|
|
4110
|
-
return d[
|
|
4199
|
+
return function(x) {
|
|
4200
|
+
return d[x] || !1;
|
|
4111
4201
|
};
|
|
4112
4202
|
}
|
|
4113
|
-
var ri =
|
|
4203
|
+
var ri = Je("class enum extends super const export import"), Er = Je("implements interface let package private protected public static yield"), ze = Je("eval arguments"), ni = Je("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), ii = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, _r = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", ai = "̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_", gr = new RegExp("[" + _r + "]"), oi = new RegExp("[" + _r + ai + "]"), He = /[\n\r\u2028\u2029]/, Ke = /\r\n|[\n\r\u2028\u2029]/g, qe = function(f) {
|
|
4114
4204
|
return f < 65 ? f === 36 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 && gr.test(String.fromCharCode(f));
|
|
4115
|
-
},
|
|
4205
|
+
}, br = function(f) {
|
|
4116
4206
|
return f < 48 ? f === 36 : f < 58 ? !0 : f < 65 ? !1 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 && oi.test(String.fromCharCode(f));
|
|
4117
4207
|
};
|
|
4118
4208
|
function fe() {
|
|
4119
4209
|
this.line = D, this.column = a - X;
|
|
4120
4210
|
}
|
|
4121
4211
|
function ui() {
|
|
4122
|
-
D = 1, a = X = 0, I = !0,
|
|
4212
|
+
D = 1, a = X = 0, I = !0, Ce();
|
|
4123
4213
|
}
|
|
4124
4214
|
function $(f, h) {
|
|
4125
|
-
y = a, r.locations && (O = new fe()), b = f,
|
|
4215
|
+
y = a, r.locations && (O = new fe()), b = f, Ce(), P = h, I = f.beforeExpr;
|
|
4126
4216
|
}
|
|
4127
4217
|
function si() {
|
|
4128
4218
|
var f = r.onComment && r.locations && new fe(), h = a, d = t.indexOf("*/", a += 2);
|
|
@@ -4140,7 +4230,7 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4140
4230
|
r.locations && new fe()
|
|
4141
4231
|
);
|
|
4142
4232
|
}
|
|
4143
|
-
function
|
|
4233
|
+
function Et() {
|
|
4144
4234
|
for (var f = a, h = r.onComment && r.locations && new fe(), d = t.charCodeAt(a += 2); a < e && d !== 10 && d !== 13 && d !== 8232 && d !== 8233; )
|
|
4145
4235
|
++a, d = t.charCodeAt(a);
|
|
4146
4236
|
r.onComment && r.onComment(
|
|
@@ -4152,7 +4242,7 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4152
4242
|
r.locations && new fe()
|
|
4153
4243
|
);
|
|
4154
4244
|
}
|
|
4155
|
-
function
|
|
4245
|
+
function Ce() {
|
|
4156
4246
|
for (; a < e; ) {
|
|
4157
4247
|
var f = t.charCodeAt(a);
|
|
4158
4248
|
if (f === 32)
|
|
@@ -4170,7 +4260,7 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4170
4260
|
if (h === 42)
|
|
4171
4261
|
si();
|
|
4172
4262
|
else if (h === 47)
|
|
4173
|
-
|
|
4263
|
+
Et();
|
|
4174
4264
|
else break;
|
|
4175
4265
|
} else if (f === 160)
|
|
4176
4266
|
++a;
|
|
@@ -4182,11 +4272,11 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4182
4272
|
}
|
|
4183
4273
|
function ci() {
|
|
4184
4274
|
var f = t.charCodeAt(a + 1);
|
|
4185
|
-
f >= 48 && f <= 57 ?
|
|
4275
|
+
f >= 48 && f <= 57 ? Rr(!0) : (++a, $(fr));
|
|
4186
4276
|
}
|
|
4187
4277
|
function fi() {
|
|
4188
4278
|
var f = t.charCodeAt(a + 1);
|
|
4189
|
-
I ? (++a,
|
|
4279
|
+
I ? (++a, mr()) : f === 61 ? G(ce, 2) : G(pr, 1);
|
|
4190
4280
|
}
|
|
4191
4281
|
function li() {
|
|
4192
4282
|
var f = t.charCodeAt(a + 1);
|
|
@@ -4194,7 +4284,7 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4194
4284
|
}
|
|
4195
4285
|
function pi(f) {
|
|
4196
4286
|
var h = t.charCodeAt(a + 1);
|
|
4197
|
-
h === f ? G(f === 124 ?
|
|
4287
|
+
h === f ? G(f === 124 ? vr : yr, 2) : h === 61 ? G(ce, 2) : G(f === 124 ? zn : Kn, 1);
|
|
4198
4288
|
}
|
|
4199
4289
|
function hi() {
|
|
4200
4290
|
var f = t.charCodeAt(a + 1);
|
|
@@ -4204,10 +4294,10 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4204
4294
|
var h = t.charCodeAt(a + 1);
|
|
4205
4295
|
if (h === f) {
|
|
4206
4296
|
if (h === 45 && t.charCodeAt(a + 2) === 62 && He.test(t.slice(z, a))) {
|
|
4207
|
-
a += 3,
|
|
4297
|
+
a += 3, Et(), Ce(), _e();
|
|
4208
4298
|
return;
|
|
4209
4299
|
}
|
|
4210
|
-
G(
|
|
4300
|
+
G(Jn, 2);
|
|
4211
4301
|
} else h === 61 ? G(ce, 2) : G(ei, 1);
|
|
4212
4302
|
}
|
|
4213
4303
|
function vi(f) {
|
|
@@ -4217,42 +4307,42 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4217
4307
|
return;
|
|
4218
4308
|
}
|
|
4219
4309
|
if (h === 33 && f === 60 && t.charCodeAt(a + 2) === 45 && t.charCodeAt(a + 3) === 45) {
|
|
4220
|
-
a += 4,
|
|
4310
|
+
a += 4, Et(), Ce(), _e();
|
|
4221
4311
|
return;
|
|
4222
4312
|
}
|
|
4223
4313
|
h === 61 && (d = t.charCodeAt(a + 2) === 61 ? 3 : 2), G(Zn, d);
|
|
4224
4314
|
}
|
|
4225
4315
|
function yi(f) {
|
|
4226
4316
|
var h = t.charCodeAt(a + 1);
|
|
4227
|
-
h === 61 ? G(qn, t.charCodeAt(a + 2) === 61 ? 3 : 2) : G(f === 61 ?
|
|
4317
|
+
h === 61 ? G(qn, t.charCodeAt(a + 2) === 61 ? 3 : 2) : G(f === 61 ? hr : dr, 1);
|
|
4228
4318
|
}
|
|
4229
4319
|
function Ei(f) {
|
|
4230
4320
|
switch (f) {
|
|
4231
4321
|
case 46:
|
|
4232
4322
|
return ci();
|
|
4233
4323
|
case 40:
|
|
4234
|
-
return ++a, $(
|
|
4324
|
+
return ++a, $(Z);
|
|
4235
4325
|
case 41:
|
|
4236
|
-
return ++a, $(
|
|
4326
|
+
return ++a, $(K);
|
|
4237
4327
|
case 59:
|
|
4238
|
-
return ++a, $(
|
|
4328
|
+
return ++a, $(Q);
|
|
4239
4329
|
case 44:
|
|
4240
4330
|
return ++a, $(ne);
|
|
4241
4331
|
case 91:
|
|
4242
|
-
return ++a, $(dt);
|
|
4243
|
-
case 93:
|
|
4244
4332
|
return ++a, $(vt);
|
|
4333
|
+
case 93:
|
|
4334
|
+
return ++a, $(yt);
|
|
4245
4335
|
case 123:
|
|
4246
4336
|
return ++a, $(we);
|
|
4247
4337
|
case 125:
|
|
4248
4338
|
return ++a, $(Ee);
|
|
4249
4339
|
case 58:
|
|
4250
|
-
return ++a, $(
|
|
4340
|
+
return ++a, $(xe);
|
|
4251
4341
|
case 63:
|
|
4252
|
-
return ++a, $(
|
|
4342
|
+
return ++a, $(lr);
|
|
4253
4343
|
case 48:
|
|
4254
4344
|
var h = t.charCodeAt(a + 1);
|
|
4255
|
-
if (h === 120 || h === 88) return
|
|
4345
|
+
if (h === 120 || h === 88) return _i();
|
|
4256
4346
|
case 49:
|
|
4257
4347
|
case 50:
|
|
4258
4348
|
case 51:
|
|
@@ -4262,10 +4352,10 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4262
4352
|
case 55:
|
|
4263
4353
|
case 56:
|
|
4264
4354
|
case 57:
|
|
4265
|
-
return
|
|
4355
|
+
return Rr(!1);
|
|
4266
4356
|
case 34:
|
|
4267
4357
|
case 39:
|
|
4268
|
-
return
|
|
4358
|
+
return gi(f);
|
|
4269
4359
|
case 47:
|
|
4270
4360
|
return fi();
|
|
4271
4361
|
case 37:
|
|
@@ -4286,21 +4376,21 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4286
4376
|
case 33:
|
|
4287
4377
|
return yi(f);
|
|
4288
4378
|
case 126:
|
|
4289
|
-
return G(
|
|
4379
|
+
return G(dr, 1);
|
|
4290
4380
|
}
|
|
4291
4381
|
return !1;
|
|
4292
4382
|
}
|
|
4293
|
-
function
|
|
4294
|
-
if (f ? a = l + 1 : l = a, r.locations && (
|
|
4295
|
-
if (a >= e) return $(
|
|
4383
|
+
function _e(f) {
|
|
4384
|
+
if (f ? a = l + 1 : l = a, r.locations && (g = new fe()), f) return mr();
|
|
4385
|
+
if (a >= e) return $(st);
|
|
4296
4386
|
var h = t.charCodeAt(a);
|
|
4297
4387
|
if (qe(h) || h === 92)
|
|
4298
|
-
return
|
|
4388
|
+
return Nr();
|
|
4299
4389
|
var d = Ei(h);
|
|
4300
4390
|
if (d === !1) {
|
|
4301
4391
|
var E = String.fromCharCode(h);
|
|
4302
4392
|
if (E === "\\" || gr.test(E))
|
|
4303
|
-
return
|
|
4393
|
+
return Nr();
|
|
4304
4394
|
A(a, "Unexpected character '" + E + "'");
|
|
4305
4395
|
}
|
|
4306
4396
|
}
|
|
@@ -4308,7 +4398,7 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4308
4398
|
var d = t.slice(a, a + h);
|
|
4309
4399
|
a += h, $(f, d);
|
|
4310
4400
|
}
|
|
4311
|
-
function
|
|
4401
|
+
function mr() {
|
|
4312
4402
|
for (var f, h, d = a; ; ) {
|
|
4313
4403
|
a >= e && A(d, "Unterminated regexp");
|
|
4314
4404
|
var E = t.charAt(a);
|
|
@@ -4325,45 +4415,45 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4325
4415
|
}
|
|
4326
4416
|
++a;
|
|
4327
4417
|
}
|
|
4328
|
-
var
|
|
4418
|
+
var x = t.slice(d, a);
|
|
4329
4419
|
++a;
|
|
4330
|
-
var S =
|
|
4420
|
+
var S = Or();
|
|
4331
4421
|
S && !/^[gmi]*$/.test(S) && A(d, "Invalid regexp flag");
|
|
4332
4422
|
try {
|
|
4333
|
-
var
|
|
4334
|
-
} catch (
|
|
4335
|
-
throw
|
|
4423
|
+
var C = new RegExp(x, S);
|
|
4424
|
+
} catch (M) {
|
|
4425
|
+
throw M instanceof SyntaxError && A(d, M.message), M;
|
|
4336
4426
|
}
|
|
4337
|
-
$(
|
|
4427
|
+
$(Xt, C);
|
|
4338
4428
|
}
|
|
4339
4429
|
function Ae(f, h) {
|
|
4340
|
-
for (var d = a, E = 0,
|
|
4341
|
-
var
|
|
4342
|
-
if (
|
|
4343
|
-
++a, E = E * f +
|
|
4430
|
+
for (var d = a, E = 0, x = h === void 0 ? 1 / 0 : h, S = 0; S < x; ++S) {
|
|
4431
|
+
var C = t.charCodeAt(a), M;
|
|
4432
|
+
if (C >= 97 ? M = C - 97 + 10 : C >= 65 ? M = C - 65 + 10 : C >= 48 && C <= 57 ? M = C - 48 : M = 1 / 0, M >= f) break;
|
|
4433
|
+
++a, E = E * f + M;
|
|
4344
4434
|
}
|
|
4345
4435
|
return a === d || h !== void 0 && a - d !== h ? null : E;
|
|
4346
4436
|
}
|
|
4347
|
-
function
|
|
4437
|
+
function _i() {
|
|
4348
4438
|
a += 2;
|
|
4349
4439
|
var f = Ae(16);
|
|
4350
4440
|
f === null && A(l + 2, "Expected hexadecimal number"), qe(t.charCodeAt(a)) && A(a, "Identifier directly after number"), $(Xe, f);
|
|
4351
4441
|
}
|
|
4352
|
-
function
|
|
4442
|
+
function Rr(f) {
|
|
4353
4443
|
var h = a, d = !1, E = t.charCodeAt(a) === 48;
|
|
4354
4444
|
!f && Ae(10) === null && A(h, "Invalid number"), t.charCodeAt(a) === 46 && (++a, Ae(10), d = !0);
|
|
4355
|
-
var
|
|
4356
|
-
(
|
|
4357
|
-
var S = t.slice(h, a),
|
|
4358
|
-
d ?
|
|
4445
|
+
var x = t.charCodeAt(a);
|
|
4446
|
+
(x === 69 || x === 101) && (x = t.charCodeAt(++a), (x === 43 || x === 45) && ++a, Ae(10) === null && A(h, "Invalid number"), d = !0), qe(t.charCodeAt(a)) && A(a, "Identifier directly after number");
|
|
4447
|
+
var S = t.slice(h, a), C;
|
|
4448
|
+
d ? C = parseFloat(S) : !E || S.length === 1 ? C = parseInt(S, 10) : /[89]/.test(S) || W ? A(h, "Invalid number") : C = parseInt(S, 8), $(Xe, C);
|
|
4359
4449
|
}
|
|
4360
|
-
function
|
|
4450
|
+
function gi(f) {
|
|
4361
4451
|
a++;
|
|
4362
4452
|
for (var h = ""; ; ) {
|
|
4363
4453
|
a >= e && A(l, "Unterminated string constant");
|
|
4364
4454
|
var d = t.charCodeAt(a);
|
|
4365
4455
|
if (d === f) {
|
|
4366
|
-
++a, $(
|
|
4456
|
+
++a, $(ut, h);
|
|
4367
4457
|
return;
|
|
4368
4458
|
}
|
|
4369
4459
|
if (d === 92) {
|
|
@@ -4424,50 +4514,50 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4424
4514
|
return h === null && A(l, "Bad character escape sequence"), /** @type {number} */
|
|
4425
4515
|
h;
|
|
4426
4516
|
}
|
|
4427
|
-
var
|
|
4428
|
-
function
|
|
4429
|
-
|
|
4517
|
+
var ge;
|
|
4518
|
+
function Or() {
|
|
4519
|
+
ge = !1;
|
|
4430
4520
|
for (var f, h = !0, d = a; ; ) {
|
|
4431
4521
|
var E = t.charCodeAt(a);
|
|
4432
|
-
if (
|
|
4433
|
-
|
|
4522
|
+
if (br(E))
|
|
4523
|
+
ge && (f += t.charAt(a)), ++a;
|
|
4434
4524
|
else if (E === 92) {
|
|
4435
|
-
|
|
4436
|
-
var
|
|
4437
|
-
S || A(a - 1, "Invalid Unicode escape"), (h ? qe(
|
|
4525
|
+
ge || (f = t.slice(d, a)), ge = !0, t.charCodeAt(++a) !== 117 && A(a, "Expecting Unicode escape sequence \\uXXXX"), ++a;
|
|
4526
|
+
var x = Ze(4), S = String.fromCharCode(x);
|
|
4527
|
+
S || A(a - 1, "Invalid Unicode escape"), (h ? qe(x) : br(x)) || A(a - 4, "Invalid Unicode escape"), f += S;
|
|
4438
4528
|
} else
|
|
4439
4529
|
break;
|
|
4440
4530
|
h = !1;
|
|
4441
4531
|
}
|
|
4442
|
-
return
|
|
4532
|
+
return ge ? f : t.slice(d, a);
|
|
4443
4533
|
}
|
|
4444
|
-
function
|
|
4445
|
-
var f =
|
|
4446
|
-
!
|
|
4534
|
+
function Nr() {
|
|
4535
|
+
var f = Or(), h = ye;
|
|
4536
|
+
!ge && ni(f) && (h = Wn[f]), $(h, f);
|
|
4447
4537
|
}
|
|
4448
4538
|
function k() {
|
|
4449
|
-
Pe = l, z = y, ve = O,
|
|
4539
|
+
Pe = l, z = y, ve = O, _e();
|
|
4450
4540
|
}
|
|
4451
|
-
function
|
|
4541
|
+
function _t(f) {
|
|
4452
4542
|
if (W = f, a = l, r.locations)
|
|
4453
4543
|
for (; a < X; )
|
|
4454
4544
|
X = t.lastIndexOf(`
|
|
4455
4545
|
`, X - 2) + 1, --D;
|
|
4456
|
-
|
|
4546
|
+
Ce(), _e();
|
|
4457
4547
|
}
|
|
4458
|
-
function
|
|
4548
|
+
function Tr() {
|
|
4459
4549
|
this.type = null, this.start = l, this.end = null;
|
|
4460
4550
|
}
|
|
4461
|
-
function
|
|
4462
|
-
this.start =
|
|
4551
|
+
function Sr() {
|
|
4552
|
+
this.start = g, this.end = null, i && (this.source = i);
|
|
4463
4553
|
}
|
|
4464
4554
|
function V() {
|
|
4465
|
-
var f = new
|
|
4466
|
-
return r.locations && (f.loc = new
|
|
4555
|
+
var f = new Tr();
|
|
4556
|
+
return r.locations && (f.loc = new Sr()), r.directSourceFile && (f.sourceFile = r.directSourceFile), r.ranges && (f.range = [l, 0]), f;
|
|
4467
4557
|
}
|
|
4468
4558
|
function ie(f) {
|
|
4469
|
-
var h = new
|
|
4470
|
-
return h.start = f.start, r.locations && (h.loc = new
|
|
4559
|
+
var h = new Tr();
|
|
4560
|
+
return h.start = f.start, r.locations && (h.loc = new Sr(), h.loc.start = f.loc.start), r.ranges && (h.range = [f.range[0], 0]), h;
|
|
4471
4561
|
}
|
|
4472
4562
|
function w(f, h) {
|
|
4473
4563
|
return f.type = h, f.end = z, r.locations && (f.loc.end = ve), r.ranges && (f.range[1] = z), f;
|
|
@@ -4475,174 +4565,174 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4475
4565
|
function gt(f) {
|
|
4476
4566
|
return f.type === "ExpressionStatement" && f.expression.type === "Literal" && f.expression.value === "use strict";
|
|
4477
4567
|
}
|
|
4478
|
-
function
|
|
4568
|
+
function U(f) {
|
|
4479
4569
|
return b === f ? (k(), !0) : !1;
|
|
4480
4570
|
}
|
|
4481
4571
|
function Qe() {
|
|
4482
|
-
return !r.strictSemicolons && (b ===
|
|
4572
|
+
return !r.strictSemicolons && (b === st || b === Ee || He.test(t.slice(z, l)));
|
|
4483
4573
|
}
|
|
4484
4574
|
function le() {
|
|
4485
|
-
!
|
|
4575
|
+
!U(Q) && !Qe() && ee();
|
|
4486
4576
|
}
|
|
4487
4577
|
function B(f) {
|
|
4488
|
-
b === f ? k() :
|
|
4578
|
+
b === f ? k() : ee();
|
|
4489
4579
|
}
|
|
4490
|
-
function
|
|
4580
|
+
function ee() {
|
|
4491
4581
|
A(l, "Unexpected token");
|
|
4492
4582
|
}
|
|
4493
4583
|
function et(f) {
|
|
4494
|
-
f.type !== "Identifier" && f.type !== "MemberExpression" && A(f.start, "Assigning to rvalue"), W && f.type === "Identifier" &&
|
|
4584
|
+
f.type !== "Identifier" && f.type !== "MemberExpression" && A(f.start, "Assigning to rvalue"), W && f.type === "Identifier" && ze(f.name) && A(f.start, "Assigning to " + f.name + " in strict mode");
|
|
4495
4585
|
}
|
|
4496
4586
|
function bi(f) {
|
|
4497
|
-
Pe = z = a, r.locations && (ve = new fe()), se = W = !1, j = [],
|
|
4587
|
+
Pe = z = a, r.locations && (ve = new fe()), se = W = !1, j = [], _e();
|
|
4498
4588
|
var h = f || V(), d = !0;
|
|
4499
|
-
for (f || (h.body = []); b !==
|
|
4500
|
-
var E =
|
|
4501
|
-
h.body.push(E), d && gt(E) &&
|
|
4589
|
+
for (f || (h.body = []); b !== st; ) {
|
|
4590
|
+
var E = H();
|
|
4591
|
+
h.body.push(E), d && gt(E) && _t(!0), d = !1;
|
|
4502
4592
|
}
|
|
4503
4593
|
return w(h, "Program");
|
|
4504
4594
|
}
|
|
4505
|
-
var
|
|
4506
|
-
function
|
|
4507
|
-
(b ===
|
|
4595
|
+
var bt = { kind: "loop" }, mi = { kind: "switch" };
|
|
4596
|
+
function H() {
|
|
4597
|
+
(b === pr || b === ce && P === "/=") && _e(!0);
|
|
4508
4598
|
var f = b, h = V();
|
|
4509
4599
|
switch (f) {
|
|
4510
|
-
case
|
|
4511
|
-
case
|
|
4600
|
+
case ct:
|
|
4601
|
+
case Jt:
|
|
4512
4602
|
k();
|
|
4513
|
-
var d = f ===
|
|
4514
|
-
|
|
4603
|
+
var d = f === ct;
|
|
4604
|
+
U(Q) || Qe() ? h.label = null : b !== ye ? ee() : (h.label = ae(), le());
|
|
4515
4605
|
for (var E = 0; E < j.length; ++E) {
|
|
4516
|
-
var
|
|
4517
|
-
if ((h.label === null ||
|
|
4606
|
+
var x = j[E];
|
|
4607
|
+
if ((h.label === null || x.name === h.label.name) && (x.kind !== null && (d || x.kind === "loop") || h.label && d))
|
|
4518
4608
|
break;
|
|
4519
4609
|
}
|
|
4520
4610
|
return E === j.length && A(h.start, "Unsyntactic " + f.keyword), w(h, d ? "BreakStatement" : "ContinueStatement");
|
|
4521
4611
|
case zt:
|
|
4522
4612
|
return k(), le(), w(h, "DebuggerStatement");
|
|
4523
|
-
case
|
|
4524
|
-
return k(), j.push(
|
|
4525
|
-
case
|
|
4526
|
-
if (k(), j.push(
|
|
4527
|
-
if (b ===
|
|
4613
|
+
case Kt:
|
|
4614
|
+
return k(), j.push(bt), h.body = H(), j.pop(), B(dt), h.test = Ie(), le(), w(h, "DoWhileStatement");
|
|
4615
|
+
case Qt:
|
|
4616
|
+
if (k(), j.push(bt), B(Z), b === Q) return mt(h, null);
|
|
4617
|
+
if (b === ht) {
|
|
4528
4618
|
var S = V();
|
|
4529
|
-
return k(),
|
|
4619
|
+
return k(), wr(S, !0), w(S, "VariableDeclaration"), S.declarations.length === 1 && U(We) ? Pr(h, S) : mt(h, S);
|
|
4530
4620
|
}
|
|
4531
4621
|
var S = Y(!1, !0);
|
|
4532
|
-
return
|
|
4533
|
-
case ft:
|
|
4534
|
-
return k(), Tt(h, !0);
|
|
4535
|
-
case Qt:
|
|
4536
|
-
return k(), h.test = Ie(), h.consequent = J(), h.alternate = M(Kt) ? J() : null, w(h, "IfStatement");
|
|
4537
|
-
case er:
|
|
4538
|
-
return !se && !r.allowReturnOutsideFunction && A(l, "'return' outside of function"), k(), M(Z) || Qe() ? h.argument = null : (h.argument = Y(), le()), w(h, "ReturnStatement");
|
|
4622
|
+
return U(We) ? (et(S), Pr(h, S)) : mt(h, S);
|
|
4539
4623
|
case lt:
|
|
4624
|
+
return k(), St(h, !0);
|
|
4625
|
+
case er:
|
|
4626
|
+
return k(), h.test = Ie(), h.consequent = H(), h.alternate = U(qt) ? H() : null, w(h, "IfStatement");
|
|
4627
|
+
case tr:
|
|
4628
|
+
return !se && !r.allowReturnOutsideFunction && A(l, "'return' outside of function"), k(), U(Q) || Qe() ? h.argument = null : (h.argument = Y(), le()), w(h, "ReturnStatement");
|
|
4629
|
+
case pt:
|
|
4540
4630
|
k(), h.discriminant = Ie(), h.cases = [], B(we), j.push(mi);
|
|
4541
|
-
for (var
|
|
4542
|
-
if (b ===
|
|
4543
|
-
var Fe = b ===
|
|
4544
|
-
|
|
4631
|
+
for (var C, M; b !== Ee; )
|
|
4632
|
+
if (b === ft || b === Ht) {
|
|
4633
|
+
var Fe = b === ft;
|
|
4634
|
+
C && w(C, "SwitchCase"), h.cases.push(C = V()), C.consequent = [], k(), Fe ? C.test = Y() : (M && A(Pe, "Multiple default clauses"), M = !0, C.test = null), B(xe);
|
|
4545
4635
|
} else
|
|
4546
|
-
|
|
4547
|
-
return
|
|
4548
|
-
case tr:
|
|
4549
|
-
return k(), He.test(t.slice(z, l)) && A(z, "Illegal newline after throw"), h.argument = Y(), le(), w(h, "ThrowStatement");
|
|
4636
|
+
C || ee(), C.consequent.push(H());
|
|
4637
|
+
return C && w(C, "SwitchCase"), k(), j.pop(), w(h, "SwitchStatement");
|
|
4550
4638
|
case rr:
|
|
4551
|
-
|
|
4639
|
+
return k(), He.test(t.slice(z, l)) && A(z, "Illegal newline after throw"), h.argument = Y(), le(), w(h, "ThrowStatement");
|
|
4640
|
+
case nr:
|
|
4641
|
+
if (k(), h.block = ke(), h.handler = null, b === Wt) {
|
|
4552
4642
|
var be = V();
|
|
4553
|
-
k(), B(
|
|
4643
|
+
k(), B(Z), be.param = ae(), W && ze(be.param.name) && A(be.param.start, "Binding " + be.param.name + " in strict mode"), B(K), be.body = ke(), h.handler = w(be, "CatchClause");
|
|
4554
4644
|
}
|
|
4555
|
-
return h.finalizer =
|
|
4556
|
-
case pt:
|
|
4557
|
-
return k(), Pr(h), le(), w(h, "VariableDeclaration");
|
|
4645
|
+
return h.finalizer = U(Zt) ? ke() : null, !h.handler && !h.finalizer && A(h.start, "Missing catch or finally clause"), w(h, "TryStatement");
|
|
4558
4646
|
case ht:
|
|
4559
|
-
return k(),
|
|
4560
|
-
case
|
|
4561
|
-
return
|
|
4647
|
+
return k(), wr(h), le(), w(h, "VariableDeclaration");
|
|
4648
|
+
case dt:
|
|
4649
|
+
return k(), h.test = Ie(), j.push(bt), h.body = H(), j.pop(), w(h, "WhileStatement");
|
|
4650
|
+
case ir:
|
|
4651
|
+
return W && A(l, "'with' in strict mode"), k(), h.object = Ie(), h.body = H(), w(h, "WithStatement");
|
|
4562
4652
|
case we:
|
|
4563
4653
|
return ke();
|
|
4564
|
-
case
|
|
4654
|
+
case Q:
|
|
4565
4655
|
return k(), w(h, "EmptyStatement");
|
|
4566
4656
|
default:
|
|
4567
|
-
var
|
|
4568
|
-
if (f === ye && tt.type === "Identifier" &&
|
|
4657
|
+
var wt = P, tt = Y();
|
|
4658
|
+
if (f === ye && tt.type === "Identifier" && U(xe)) {
|
|
4569
4659
|
for (var E = 0; E < j.length; ++E)
|
|
4570
|
-
j[E].name ===
|
|
4571
|
-
var Pi = b.isLoop ? "loop" : b ===
|
|
4572
|
-
return j.push({ name:
|
|
4660
|
+
j[E].name === wt && A(tt.start, "Label '" + wt + "' is already declared");
|
|
4661
|
+
var Pi = b.isLoop ? "loop" : b === pt ? "switch" : null;
|
|
4662
|
+
return j.push({ name: wt, kind: Pi }), h.body = H(), j.pop(), h.label = tt, w(h, "LabeledStatement");
|
|
4573
4663
|
} else
|
|
4574
4664
|
return h.expression = tt, le(), w(h, "ExpressionStatement");
|
|
4575
4665
|
}
|
|
4576
4666
|
}
|
|
4577
4667
|
function Ie() {
|
|
4578
|
-
B(
|
|
4668
|
+
B(Z);
|
|
4579
4669
|
var f = Y();
|
|
4580
|
-
return B(
|
|
4670
|
+
return B(K), f;
|
|
4581
4671
|
}
|
|
4582
4672
|
function ke(f) {
|
|
4583
|
-
var h = V(), d = !0, E = !1,
|
|
4584
|
-
for (h.body = [], B(we); !
|
|
4585
|
-
var S =
|
|
4586
|
-
h.body.push(S), d && f && gt(S) && (
|
|
4673
|
+
var h = V(), d = !0, E = !1, x;
|
|
4674
|
+
for (h.body = [], B(we); !U(Ee); ) {
|
|
4675
|
+
var S = H();
|
|
4676
|
+
h.body.push(S), d && f && gt(S) && (x = E, _t(E = !0)), d = !1;
|
|
4587
4677
|
}
|
|
4588
|
-
return E && !
|
|
4678
|
+
return E && !x && _t(!1), w(h, "BlockStatement");
|
|
4589
4679
|
}
|
|
4590
|
-
function
|
|
4591
|
-
return f.init = h, B(
|
|
4592
|
-
}
|
|
4593
|
-
function Sr(f, h) {
|
|
4594
|
-
return f.left = h, f.right = Y(), B(H), f.body = J(), j.pop(), w(f, "ForInStatement");
|
|
4680
|
+
function mt(f, h) {
|
|
4681
|
+
return f.init = h, B(Q), f.test = b === Q ? null : Y(), B(Q), f.update = b === K ? null : Y(), B(K), f.body = H(), j.pop(), w(f, "ForStatement");
|
|
4595
4682
|
}
|
|
4596
4683
|
function Pr(f, h) {
|
|
4684
|
+
return f.left = h, f.right = Y(), B(K), f.body = H(), j.pop(), w(f, "ForInStatement");
|
|
4685
|
+
}
|
|
4686
|
+
function wr(f, h) {
|
|
4597
4687
|
for (f.declarations = [], f.kind = "var"; ; ) {
|
|
4598
4688
|
var d = V();
|
|
4599
|
-
if (d.id = ae(), W &&
|
|
4689
|
+
if (d.id = ae(), W && ze(d.id.name) && A(d.id.start, "Binding " + d.id.name + " in strict mode"), d.init = U(hr) ? Y(!0, h) : null, f.declarations.push(w(d, "VariableDeclarator")), !U(ne)) break;
|
|
4600
4690
|
}
|
|
4601
4691
|
}
|
|
4602
4692
|
function Y(f, h) {
|
|
4603
|
-
var d =
|
|
4693
|
+
var d = Rt(h);
|
|
4604
4694
|
if (!f && b === ne) {
|
|
4605
4695
|
var E = ie(d);
|
|
4606
|
-
for (E.expressions = [d];
|
|
4696
|
+
for (E.expressions = [d]; U(ne); ) E.expressions.push(Rt(h));
|
|
4607
4697
|
return w(E, "SequenceExpression");
|
|
4608
4698
|
}
|
|
4609
4699
|
return d;
|
|
4610
4700
|
}
|
|
4611
|
-
function
|
|
4701
|
+
function Rt(f) {
|
|
4612
4702
|
var h = Ri(f);
|
|
4613
4703
|
if (b.isAssign) {
|
|
4614
4704
|
var d = ie(h);
|
|
4615
|
-
return d.operator = P, d.left = h, k(), d.right =
|
|
4705
|
+
return d.operator = P, d.left = h, k(), d.right = Rt(f), et(h), w(d, "AssignmentExpression");
|
|
4616
4706
|
}
|
|
4617
4707
|
return h;
|
|
4618
4708
|
}
|
|
4619
4709
|
function Ri(f) {
|
|
4620
4710
|
var h = Oi(f);
|
|
4621
|
-
if (
|
|
4711
|
+
if (U(lr)) {
|
|
4622
4712
|
var d = ie(h);
|
|
4623
|
-
return d.test = h, d.consequent = Y(!0), B(
|
|
4713
|
+
return d.test = h, d.consequent = Y(!0), B(xe), d.alternate = Y(!0, f), w(d, "ConditionalExpression");
|
|
4624
4714
|
}
|
|
4625
4715
|
return h;
|
|
4626
4716
|
}
|
|
4627
4717
|
function Oi(f) {
|
|
4628
|
-
return
|
|
4718
|
+
return Ot(Nt(), -1, f);
|
|
4629
4719
|
}
|
|
4630
|
-
function
|
|
4720
|
+
function Ot(f, h, d) {
|
|
4631
4721
|
var E = b.binop;
|
|
4632
4722
|
if (E !== null && (!d || b !== We) && E > h) {
|
|
4633
|
-
var
|
|
4634
|
-
|
|
4723
|
+
var x = ie(f);
|
|
4724
|
+
x.left = f, x.operator = P;
|
|
4635
4725
|
var S = b;
|
|
4636
|
-
k(),
|
|
4637
|
-
var
|
|
4638
|
-
return
|
|
4726
|
+
k(), x.right = Ot(Nt(), E, d);
|
|
4727
|
+
var C = w(x, S === vr || S === yr ? "LogicalExpression" : "BinaryExpression");
|
|
4728
|
+
return Ot(C, h, d);
|
|
4639
4729
|
}
|
|
4640
4730
|
return f;
|
|
4641
4731
|
}
|
|
4642
|
-
function
|
|
4732
|
+
function Nt() {
|
|
4643
4733
|
if (b.prefix) {
|
|
4644
4734
|
var f = V(), h = b.isUpdate;
|
|
4645
|
-
return f.operator = P, f.prefix = !0, I = !0, k(), f.argument =
|
|
4735
|
+
return f.operator = P, f.prefix = !0, I = !0, k(), f.argument = Nt(), h ? et(f.argument) : W && f.operator === "delete" && f.argument.type === "Identifier" && A(f.start, "Deleting local variable in strict mode"), w(f, h ? "UpdateExpression" : "UnaryExpression");
|
|
4646
4736
|
}
|
|
4647
4737
|
for (var d = Ni(); b.postfix && !Qe(); ) {
|
|
4648
4738
|
var f = ie(d);
|
|
@@ -4651,90 +4741,90 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4651
4741
|
return d;
|
|
4652
4742
|
}
|
|
4653
4743
|
function Ni() {
|
|
4654
|
-
return De(
|
|
4744
|
+
return De(Tt());
|
|
4655
4745
|
}
|
|
4656
4746
|
function De(f, h) {
|
|
4657
4747
|
var d;
|
|
4658
|
-
return
|
|
4748
|
+
return U(fr) ? (d = ie(f), d.object = f, d.property = ae(!0), d.computed = !1, De(w(d, "MemberExpression"), h)) : U(vt) ? (d = ie(f), d.object = f, d.property = Y(), d.computed = !0, B(yt), De(w(d, "MemberExpression"), h)) : !h && U(Z) ? (d = ie(f), d.callee = f, d.arguments = Pt(K, !1), De(w(d, "CallExpression"), h)) : f;
|
|
4659
4749
|
}
|
|
4660
|
-
function
|
|
4750
|
+
function Tt() {
|
|
4661
4751
|
var f;
|
|
4662
4752
|
switch (b) {
|
|
4663
|
-
case
|
|
4753
|
+
case or:
|
|
4664
4754
|
return f = V(), k(), w(f, "ThisExpression");
|
|
4665
4755
|
case ye:
|
|
4666
4756
|
return ae();
|
|
4667
4757
|
case Xe:
|
|
4668
|
-
case
|
|
4669
|
-
case
|
|
4758
|
+
case ut:
|
|
4759
|
+
case Xt:
|
|
4670
4760
|
return f = V(), f.value = P, f.raw = t.slice(l, y), k(), w(f, "Literal");
|
|
4671
|
-
case or:
|
|
4672
4761
|
case ur:
|
|
4673
4762
|
case sr:
|
|
4763
|
+
case cr:
|
|
4674
4764
|
return f = V(), f.value = b.atomValue, f.raw = b.keyword, k(), w(f, "Literal");
|
|
4675
|
-
case
|
|
4676
|
-
var h =
|
|
4765
|
+
case Z:
|
|
4766
|
+
var h = g, d = l;
|
|
4677
4767
|
k();
|
|
4678
4768
|
var E = Y();
|
|
4679
|
-
return E.start = d, E.end = y, r.locations && (E.loc.start = h, E.loc.end = O), r.ranges && (E.range = [d, y]), B(
|
|
4680
|
-
case
|
|
4681
|
-
return f = V(), k(), f.elements =
|
|
4769
|
+
return E.start = d, E.end = y, r.locations && (E.loc.start = h, E.loc.end = O), r.ranges && (E.range = [d, y]), B(K), E;
|
|
4770
|
+
case vt:
|
|
4771
|
+
return f = V(), k(), f.elements = Pt(yt, !0, !0), w(f, "ArrayExpression");
|
|
4682
4772
|
case we:
|
|
4683
4773
|
return Si();
|
|
4684
|
-
case
|
|
4685
|
-
return f = V(), k(),
|
|
4686
|
-
case
|
|
4774
|
+
case lt:
|
|
4775
|
+
return f = V(), k(), St(f, !1);
|
|
4776
|
+
case ar:
|
|
4687
4777
|
return Ti();
|
|
4688
4778
|
}
|
|
4689
|
-
|
|
4779
|
+
ee();
|
|
4690
4780
|
}
|
|
4691
4781
|
function Ti() {
|
|
4692
4782
|
var f = V();
|
|
4693
|
-
return k(), f.callee = De(
|
|
4783
|
+
return k(), f.callee = De(Tt(), !0), f.arguments = U(Z) ? Pt(K, !1) : Xn, w(f, "NewExpression");
|
|
4694
4784
|
}
|
|
4695
4785
|
function Si() {
|
|
4696
4786
|
var f = V(), h = !0, d = !1;
|
|
4697
|
-
for (f.properties = [], k(); !
|
|
4787
|
+
for (f.properties = [], k(); !U(Ee); ) {
|
|
4698
4788
|
if (h)
|
|
4699
4789
|
h = !1;
|
|
4700
|
-
else if (B(ne), r.allowTrailingCommas &&
|
|
4790
|
+
else if (B(ne), r.allowTrailingCommas && U(Ee))
|
|
4701
4791
|
break;
|
|
4702
|
-
var E = { key:
|
|
4703
|
-
if (
|
|
4704
|
-
for (var
|
|
4705
|
-
var
|
|
4706
|
-
if (
|
|
4707
|
-
var Fe = S ===
|
|
4708
|
-
Fe && !W && S === "init" &&
|
|
4792
|
+
var E = { key: xr() }, x = !1, S;
|
|
4793
|
+
if (U(xe) ? (E.value = Y(!0), S = E.kind = "init") : E.key.type === "Identifier" && (E.key.name === "get" || E.key.name === "set") ? (x = d = !0, S = E.kind = E.key.name, E.key = xr(), b !== Z && ee(), E.value = St(V(), !1)) : ee(), E.key.type === "Identifier" && (W || d))
|
|
4794
|
+
for (var C = 0; C < f.properties.length; ++C) {
|
|
4795
|
+
var M = f.properties[C];
|
|
4796
|
+
if (M.key.name === E.key.name) {
|
|
4797
|
+
var Fe = S === M.kind || x && M.kind === "init" || S === "init" && (M.kind === "get" || M.kind === "set");
|
|
4798
|
+
Fe && !W && S === "init" && M.kind === "init" && (Fe = !1), Fe && A(E.key.start, "Redefinition of property");
|
|
4709
4799
|
}
|
|
4710
4800
|
}
|
|
4711
4801
|
f.properties.push(E);
|
|
4712
4802
|
}
|
|
4713
4803
|
return w(f, "ObjectExpression");
|
|
4714
4804
|
}
|
|
4715
|
-
function
|
|
4716
|
-
return b === Xe || b ===
|
|
4805
|
+
function xr() {
|
|
4806
|
+
return b === Xe || b === ut ? Tt() : ae(!0);
|
|
4717
4807
|
}
|
|
4718
|
-
function
|
|
4719
|
-
b === ye ? f.id = ae() : h ?
|
|
4808
|
+
function St(f, h) {
|
|
4809
|
+
b === ye ? f.id = ae() : h ? ee() : f.id = null, f.params = [];
|
|
4720
4810
|
var d = !0;
|
|
4721
|
-
for (B(
|
|
4811
|
+
for (B(Z); !U(K); )
|
|
4722
4812
|
d ? d = !1 : B(ne), f.params.push(ae());
|
|
4723
|
-
var E = se,
|
|
4724
|
-
if (se = !0, j = [], f.body = ke(!0), se = E, j =
|
|
4813
|
+
var E = se, x = j;
|
|
4814
|
+
if (se = !0, j = [], f.body = ke(!0), se = E, j = x, W || f.body.body.length && gt(f.body.body[0]))
|
|
4725
4815
|
for (var S = f.id ? -1 : 0; S < f.params.length; ++S) {
|
|
4726
|
-
var
|
|
4727
|
-
if ((
|
|
4728
|
-
for (var
|
|
4729
|
-
|
|
4816
|
+
var C = S < 0 ? f.id : f.params[S];
|
|
4817
|
+
if ((Er(C.name) || ze(C.name)) && A(C.start, "Defining '" + C.name + "' in strict mode"), S >= 0)
|
|
4818
|
+
for (var M = 0; M < S; ++M)
|
|
4819
|
+
C.name === f.params[M].name && A(C.start, "Argument name clash in strict mode");
|
|
4730
4820
|
}
|
|
4731
4821
|
return w(f, h ? "FunctionDeclaration" : "FunctionExpression");
|
|
4732
4822
|
}
|
|
4733
|
-
function
|
|
4734
|
-
for (var E = [],
|
|
4735
|
-
if (
|
|
4736
|
-
|
|
4737
|
-
else if (B(ne), h && r.allowTrailingCommas &&
|
|
4823
|
+
function Pt(f, h, d) {
|
|
4824
|
+
for (var E = [], x = !0; !U(f); ) {
|
|
4825
|
+
if (x)
|
|
4826
|
+
x = !1;
|
|
4827
|
+
else if (B(ne), h && r.allowTrailingCommas && U(f))
|
|
4738
4828
|
break;
|
|
4739
4829
|
E.push(d && b === ne ? null : Y(!0));
|
|
4740
4830
|
}
|
|
@@ -4742,7 +4832,7 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4742
4832
|
}
|
|
4743
4833
|
function ae(f) {
|
|
4744
4834
|
var h = V();
|
|
4745
|
-
return f && r.forbidReserved === "everywhere" && (f = !1), b === ye ? (!f && (r.forbidReserved && ri(P) || W &&
|
|
4835
|
+
return f && r.forbidReserved === "everywhere" && (f = !1), b === ye ? (!f && (r.forbidReserved && ri(P) || W && Er(P)) && t.slice(l, y).indexOf("\\") === -1 && A(l, "The keyword '" + P + "' is reserved"), h.name = P) : f && b.keyword ? h.name = b.keyword : ee(), I = !1, k(), w(h, "Identifier");
|
|
4746
4836
|
}
|
|
4747
4837
|
});
|
|
4748
4838
|
}
|
|
@@ -4754,12 +4844,12 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4754
4844
|
\*********************/
|
|
4755
4845
|
/***/
|
|
4756
4846
|
(m) => {
|
|
4757
|
-
m.exports =
|
|
4847
|
+
m.exports = $s;
|
|
4758
4848
|
}
|
|
4759
4849
|
)
|
|
4760
4850
|
/******/
|
|
4761
4851
|
}, v = {};
|
|
4762
|
-
function
|
|
4852
|
+
function _(m) {
|
|
4763
4853
|
var N = v[m];
|
|
4764
4854
|
if (N !== void 0)
|
|
4765
4855
|
return N.exports;
|
|
@@ -4772,12 +4862,12 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4772
4862
|
exports: {}
|
|
4773
4863
|
/******/
|
|
4774
4864
|
};
|
|
4775
|
-
return p[m].call(T.exports, T, T.exports,
|
|
4865
|
+
return p[m].call(T.exports, T, T.exports, _), T.exports;
|
|
4776
4866
|
}
|
|
4777
|
-
|
|
4867
|
+
_.d = (m, N) => {
|
|
4778
4868
|
for (var T in N)
|
|
4779
|
-
|
|
4780
|
-
},
|
|
4869
|
+
_.o(N, T) && !_.o(m, T) && Object.defineProperty(m, T, { enumerable: !0, get: N[T] });
|
|
4870
|
+
}, _.o = (m, N) => Object.prototype.hasOwnProperty.call(m, N), _.r = (m) => {
|
|
4781
4871
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(m, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(m, "__esModule", { value: !0 });
|
|
4782
4872
|
};
|
|
4783
4873
|
var R = {};
|
|
@@ -4785,30 +4875,30 @@ const Ms = {}, js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4785
4875
|
/*!*******************************!*\
|
|
4786
4876
|
!*** ./src/js-interpreter.js ***!
|
|
4787
4877
|
\*******************************/
|
|
4788
|
-
|
|
4878
|
+
_.r(R), _.d(R, {
|
|
4789
4879
|
/* harmony export */
|
|
4790
4880
|
default: () => T
|
|
4791
4881
|
/* harmony export */
|
|
4792
4882
|
});
|
|
4793
|
-
const m =
|
|
4883
|
+
const m = _(
|
|
4794
4884
|
/*! ../original-repo/acorn */
|
|
4795
4885
|
"./original-repo/acorn.js"
|
|
4796
4886
|
);
|
|
4797
4887
|
globalThis.acorn = m;
|
|
4798
|
-
const { Interpreter: N } =
|
|
4888
|
+
const { Interpreter: N } = _(
|
|
4799
4889
|
/*! ../original-repo/interpreter */
|
|
4800
4890
|
"./original-repo/interpreter.js"
|
|
4801
4891
|
), T = N;
|
|
4802
4892
|
})(), R = R.default, R;
|
|
4803
4893
|
})()
|
|
4804
4894
|
));
|
|
4805
|
-
})(
|
|
4806
|
-
var
|
|
4807
|
-
const
|
|
4808
|
-
function
|
|
4895
|
+
})(Vn);
|
|
4896
|
+
var Gs = Vn.exports;
|
|
4897
|
+
const Vs = /* @__PURE__ */ Ms(Gs);
|
|
4898
|
+
function Ys(n, s) {
|
|
4809
4899
|
function p(v) {
|
|
4810
|
-
const
|
|
4811
|
-
console.log(
|
|
4900
|
+
const _ = n.pseudoToNative(v);
|
|
4901
|
+
console.log(_);
|
|
4812
4902
|
}
|
|
4813
4903
|
n.setProperty(
|
|
4814
4904
|
s,
|
|
@@ -4816,23 +4906,23 @@ function Vs(n, s) {
|
|
|
4816
4906
|
n.createNativeFunction(p)
|
|
4817
4907
|
);
|
|
4818
4908
|
}
|
|
4819
|
-
class
|
|
4909
|
+
class Xs {
|
|
4820
4910
|
constructor(s) {
|
|
4821
|
-
|
|
4822
|
-
|
|
4911
|
+
xt(this, "context");
|
|
4912
|
+
xt(this, "nodes");
|
|
4823
4913
|
this.context = s, this.nodes = {};
|
|
4824
4914
|
const p = this;
|
|
4825
|
-
function v(
|
|
4915
|
+
function v(_) {
|
|
4826
4916
|
var R;
|
|
4827
|
-
p.nodes[
|
|
4917
|
+
p.nodes[_.id] = _, (R = _.children) == null || R.forEach((m) => v(m));
|
|
4828
4918
|
}
|
|
4829
|
-
this.context.data.view.nodes.forEach((
|
|
4919
|
+
this.context.data.view.nodes.forEach((_) => v(_));
|
|
4830
4920
|
}
|
|
4831
4921
|
getNode(s) {
|
|
4832
4922
|
return this.nodes[s];
|
|
4833
4923
|
}
|
|
4834
4924
|
addNode(s, p, v) {
|
|
4835
|
-
let
|
|
4925
|
+
let _;
|
|
4836
4926
|
if (s) {
|
|
4837
4927
|
const m = this.getNode(s);
|
|
4838
4928
|
if (!m)
|
|
@@ -4843,10 +4933,10 @@ class Ys {
|
|
|
4843
4933
|
return console.error(
|
|
4844
4934
|
`NodeMgr/addNode parent no children, parent=${s} ref=${p} key=${v}`
|
|
4845
4935
|
), "";
|
|
4846
|
-
|
|
4936
|
+
_ = m.children;
|
|
4847
4937
|
} else
|
|
4848
|
-
|
|
4849
|
-
if (!
|
|
4938
|
+
_ = this.context.data.view.nodes;
|
|
4939
|
+
if (!_)
|
|
4850
4940
|
return "";
|
|
4851
4941
|
const R = ms(
|
|
4852
4942
|
this.context.type,
|
|
@@ -4855,7 +4945,7 @@ class Ys {
|
|
|
4855
4945
|
p,
|
|
4856
4946
|
v
|
|
4857
4947
|
);
|
|
4858
|
-
return R ? (
|
|
4948
|
+
return R ? (_.push(R), this.nodes[R.id] = R, R.id) : (console.error(
|
|
4859
4949
|
"NodeMgr/addNode spawn node failed, parent=${parent} ref=${ref} key=${key}"
|
|
4860
4950
|
), "");
|
|
4861
4951
|
}
|
|
@@ -4863,9 +4953,9 @@ class Ys {
|
|
|
4863
4953
|
this.getNode(s);
|
|
4864
4954
|
}
|
|
4865
4955
|
}
|
|
4866
|
-
function
|
|
4867
|
-
const v = new
|
|
4868
|
-
function
|
|
4956
|
+
function Ws(n, s, p) {
|
|
4957
|
+
const v = new Xs(n);
|
|
4958
|
+
function _(t, e, i) {
|
|
4869
4959
|
const o = s.pseudoToNative(t), u = s.pseudoToNative(e), c = s.pseudoToNative(i), a = v.addNode(o, u, c);
|
|
4870
4960
|
return s.nativeToPseudo(a);
|
|
4871
4961
|
}
|
|
@@ -4901,9 +4991,9 @@ function Xs(n, s, p) {
|
|
|
4901
4991
|
return;
|
|
4902
4992
|
}
|
|
4903
4993
|
const l = u.split("."), y = l.length;
|
|
4904
|
-
for (let
|
|
4905
|
-
const O = l[
|
|
4906
|
-
if (
|
|
4994
|
+
for (let g = 0; g < y; g++) {
|
|
4995
|
+
const O = l[g];
|
|
4996
|
+
if (g === y - 1)
|
|
4907
4997
|
a[O] = c;
|
|
4908
4998
|
else if (a = a[O], !a) {
|
|
4909
4999
|
console.error(
|
|
@@ -4928,7 +5018,7 @@ function Xs(n, s, p) {
|
|
|
4928
5018
|
s.setProperty(
|
|
4929
5019
|
p,
|
|
4930
5020
|
"__addNodeV1__",
|
|
4931
|
-
s.createNativeFunction(
|
|
5021
|
+
s.createNativeFunction(_)
|
|
4932
5022
|
), s.setProperty(
|
|
4933
5023
|
p,
|
|
4934
5024
|
"__deleteNodeV1__",
|
|
@@ -4951,8 +5041,8 @@ function Xs(n, s, p) {
|
|
|
4951
5041
|
s.createAsyncFunction(r)
|
|
4952
5042
|
);
|
|
4953
5043
|
}
|
|
4954
|
-
function
|
|
4955
|
-
|
|
5044
|
+
function Js(n, s, p) {
|
|
5045
|
+
Ys(s, p), Ws(n, s, p);
|
|
4956
5046
|
}
|
|
4957
5047
|
const zs = `
|
|
4958
5048
|
var __env__ = 'dev'
|
|
@@ -4960,7 +5050,7 @@ var __env__ = 'dev'
|
|
|
4960
5050
|
function __getEnv__() {
|
|
4961
5051
|
return __env__
|
|
4962
5052
|
}
|
|
4963
|
-
`,
|
|
5053
|
+
`, Hs = `
|
|
4964
5054
|
var __events__ = {}
|
|
4965
5055
|
|
|
4966
5056
|
function __addEventListenerV1__(id, event, callback) {
|
|
@@ -5031,12 +5121,12 @@ function __triggerEvent__(id, event, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p1
|
|
|
5031
5121
|
callbacks[i](p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16)
|
|
5032
5122
|
}
|
|
5033
5123
|
}
|
|
5034
|
-
`,
|
|
5035
|
-
function
|
|
5036
|
-
const p = new
|
|
5037
|
-
|
|
5038
|
-
(v,
|
|
5039
|
-
|
|
5124
|
+
`, Ks = zs + Hs;
|
|
5125
|
+
function qs(n, s) {
|
|
5126
|
+
const p = new Vs(
|
|
5127
|
+
Ks,
|
|
5128
|
+
(v, _) => {
|
|
5129
|
+
Js(n, v, _);
|
|
5040
5130
|
}
|
|
5041
5131
|
);
|
|
5042
5132
|
return p.appendCode(s), p.appendCode(`
|
|
@@ -5044,10 +5134,10 @@ __env__ = ${n.env};
|
|
|
5044
5134
|
__triggerEvent__('globality', 'startup');
|
|
5045
5135
|
`), p.run(), p;
|
|
5046
5136
|
}
|
|
5047
|
-
function
|
|
5137
|
+
function an(n) {
|
|
5048
5138
|
n.appendCode("__destrory__();"), n.run();
|
|
5049
5139
|
}
|
|
5050
|
-
const
|
|
5140
|
+
const Zs = /* @__PURE__ */ un({
|
|
5051
5141
|
__name: "index",
|
|
5052
5142
|
props: {
|
|
5053
5143
|
id: {},
|
|
@@ -5056,24 +5146,24 @@ const qs = /* @__PURE__ */ on({
|
|
|
5056
5146
|
outer: { type: Boolean }
|
|
5057
5147
|
},
|
|
5058
5148
|
setup(n) {
|
|
5059
|
-
const { t: s } = Di(), p = n, v = Rs(),
|
|
5149
|
+
const { t: s } = Di(), p = n, v = Rs(), _ = Ss(), R = Ps(), m = ws(), N = Cr();
|
|
5060
5150
|
Ai(() => {
|
|
5061
5151
|
N.value = m[p.refContext.refid];
|
|
5062
5152
|
});
|
|
5063
5153
|
const T = Cr();
|
|
5064
|
-
|
|
5065
|
-
a ||
|
|
5154
|
+
xs(T), Ii(N, (a) => {
|
|
5155
|
+
a || Mi.emit("compNotAvail", p.refContext.refid), T.value && (an(T.value), T.value = void 0), a && (T.value = qs(
|
|
5066
5156
|
{
|
|
5067
5157
|
env: v,
|
|
5068
|
-
type:
|
|
5158
|
+
type: _,
|
|
5069
5159
|
data: a.data
|
|
5070
5160
|
},
|
|
5071
5161
|
a.data.code.script
|
|
5072
5162
|
));
|
|
5073
5163
|
}), ki(() => {
|
|
5074
|
-
T.value && (
|
|
5164
|
+
T.value && (an(T.value), T.value = void 0);
|
|
5075
5165
|
});
|
|
5076
|
-
const { applySize: r } =
|
|
5166
|
+
const { applySize: r } = Fs(p), t = J(() => {
|
|
5077
5167
|
const a = {};
|
|
5078
5168
|
switch (R.type) {
|
|
5079
5169
|
case "common":
|
|
@@ -5098,21 +5188,21 @@ const qs = /* @__PURE__ */ on({
|
|
|
5098
5188
|
return a.ref ? l = o(a) : l = u(a), l;
|
|
5099
5189
|
}
|
|
5100
5190
|
function o(a) {
|
|
5101
|
-
const l =
|
|
5102
|
-
let
|
|
5103
|
-
return y ?
|
|
5191
|
+
const l = fn[R.version].refKey, y = Ne[l];
|
|
5192
|
+
let g;
|
|
5193
|
+
return y ? g = Le(y.comp, {
|
|
5104
5194
|
refContext: {
|
|
5105
5195
|
parent: p.refContext,
|
|
5106
5196
|
refid: a.ref.id
|
|
5107
5197
|
},
|
|
5108
5198
|
node: a
|
|
5109
|
-
}) : console.assert(!1),
|
|
5199
|
+
}) : console.assert(!1), g;
|
|
5110
5200
|
}
|
|
5111
5201
|
function u(a) {
|
|
5112
|
-
var
|
|
5202
|
+
var g;
|
|
5113
5203
|
let l;
|
|
5114
5204
|
const y = Ne[a.key];
|
|
5115
|
-
return y ? ((
|
|
5205
|
+
return y ? ((g = a.children) == null || g.forEach((O) => {
|
|
5116
5206
|
i(O);
|
|
5117
5207
|
}), l = Le(y.comp, { node: a })) : console.assert(!1, `invalid element config key=${a.key}`), l;
|
|
5118
5208
|
}
|
|
@@ -5123,66 +5213,16 @@ const qs = /* @__PURE__ */ on({
|
|
|
5123
5213
|
else if (N.value) {
|
|
5124
5214
|
const l = N.value.data.type;
|
|
5125
5215
|
l === "common" ? N.value.data.view.nodes.forEach((y) => {
|
|
5126
|
-
const
|
|
5127
|
-
a.push(
|
|
5216
|
+
const g = i(y);
|
|
5217
|
+
a.push(g);
|
|
5128
5218
|
}) : console.assert(!1, `invalid data type dataType=${l}`);
|
|
5129
5219
|
} else
|
|
5130
5220
|
a.push(Le("div", s("x-runtime-lib.compNotAvail")));
|
|
5131
5221
|
return Le("div", { id: p.id, style: t.value }, a);
|
|
5132
5222
|
};
|
|
5133
|
-
return (a, l) => (
|
|
5134
|
-
}
|
|
5135
|
-
}), Vn = {
|
|
5136
|
-
key: "basic",
|
|
5137
|
-
keyFlag: !0,
|
|
5138
|
-
name: "basic",
|
|
5139
|
-
children: [
|
|
5140
|
-
{
|
|
5141
|
-
key: "id",
|
|
5142
|
-
name: "x-runtime-lib.id",
|
|
5143
|
-
ui: "strInput",
|
|
5144
|
-
readonly: !0
|
|
5145
|
-
},
|
|
5146
|
-
{
|
|
5147
|
-
key: "name",
|
|
5148
|
-
name: "x-runtime-lib.name",
|
|
5149
|
-
ui: "strInput",
|
|
5150
|
-
static: !0
|
|
5151
|
-
},
|
|
5152
|
-
{
|
|
5153
|
-
key: "alias",
|
|
5154
|
-
name: "x-runtime-lib.alias",
|
|
5155
|
-
ui: "strInput"
|
|
5156
|
-
}
|
|
5157
|
-
]
|
|
5158
|
-
}, me = [
|
|
5159
|
-
{
|
|
5160
|
-
name: "default",
|
|
5161
|
-
ui: "word",
|
|
5162
|
-
validator: $i,
|
|
5163
|
-
default: ""
|
|
5164
|
-
},
|
|
5165
|
-
{
|
|
5166
|
-
name: "pixel",
|
|
5167
|
-
ui: "pixelInput",
|
|
5168
|
-
validator: Gi,
|
|
5169
|
-
default: "0px",
|
|
5170
|
-
precision: 0,
|
|
5171
|
-
min: 0,
|
|
5172
|
-
max: 1 / 0,
|
|
5173
|
-
step: 1
|
|
5174
|
-
},
|
|
5175
|
-
{
|
|
5176
|
-
name: "percent",
|
|
5177
|
-
ui: "percentInput",
|
|
5178
|
-
validator: Vi,
|
|
5179
|
-
default: "0%",
|
|
5180
|
-
precision: 4,
|
|
5181
|
-
min: 0,
|
|
5182
|
-
max: 1 / 0,
|
|
5183
|
-
step: 1
|
|
5223
|
+
return (a, l) => (sn(), cn(c));
|
|
5184
5224
|
}
|
|
5185
|
-
|
|
5225
|
+
}), Yn = {
|
|
5186
5226
|
key: "ref",
|
|
5187
5227
|
name: "x-runtime-lib.ref",
|
|
5188
5228
|
children: [
|
|
@@ -5240,23 +5280,23 @@ const qs = /* @__PURE__ */ on({
|
|
|
5240
5280
|
default: ""
|
|
5241
5281
|
}
|
|
5242
5282
|
]
|
|
5243
|
-
},
|
|
5283
|
+
}, Qs = [nt, Yn], ec = [nt, Yn], tc = {
|
|
5244
5284
|
key: "ref_v1",
|
|
5245
5285
|
name: "x-runtime-lib.ref",
|
|
5246
|
-
comp:
|
|
5286
|
+
comp: Zs,
|
|
5247
5287
|
leaf: !0,
|
|
5248
5288
|
events: [],
|
|
5249
5289
|
methods: [],
|
|
5250
5290
|
props: {
|
|
5251
|
-
pageCommon:
|
|
5252
|
-
compCommon:
|
|
5291
|
+
pageCommon: Qs,
|
|
5292
|
+
compCommon: ec
|
|
5253
5293
|
}
|
|
5254
5294
|
}, Ne = {
|
|
5255
5295
|
// basic
|
|
5256
|
-
btn_v1:
|
|
5257
|
-
globality_v1:
|
|
5258
|
-
ref_v1:
|
|
5259
|
-
},
|
|
5296
|
+
btn_v1: ks,
|
|
5297
|
+
globality_v1: Ds,
|
|
5298
|
+
ref_v1: tc
|
|
5299
|
+
}, rc = {
|
|
5260
5300
|
key: "add",
|
|
5261
5301
|
name: "add",
|
|
5262
5302
|
outputs: [
|
|
@@ -5268,11 +5308,11 @@ const qs = /* @__PURE__ */ on({
|
|
|
5268
5308
|
};
|
|
5269
5309
|
for (const n in Ne) {
|
|
5270
5310
|
const s = Ne[n];
|
|
5271
|
-
s.leaf || s.methods.unshift(
|
|
5311
|
+
s.leaf || s.methods.unshift(rc);
|
|
5272
5312
|
}
|
|
5273
|
-
const
|
|
5313
|
+
const nc = (n, s, p) => {
|
|
5274
5314
|
const v = n[s];
|
|
5275
|
-
return v ? typeof v == "function" ? v() : Promise.resolve(v) : new Promise((
|
|
5315
|
+
return v ? typeof v == "function" ? v() : Promise.resolve(v) : new Promise((_, R) => {
|
|
5276
5316
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
5277
5317
|
R.bind(
|
|
5278
5318
|
null,
|
|
@@ -5284,22 +5324,22 @@ const rc = (n, s, p) => {
|
|
|
5284
5324
|
});
|
|
5285
5325
|
};
|
|
5286
5326
|
async function gc(n) {
|
|
5287
|
-
return (await
|
|
5327
|
+
return (await nc(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-nwe0okhu.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-n9fk1na9.js") }), `./locales/${n}/index.ts`, 4)).default;
|
|
5288
5328
|
}
|
|
5289
5329
|
export {
|
|
5290
|
-
|
|
5330
|
+
fc as duplicateNode,
|
|
5291
5331
|
Ne as elements,
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5332
|
+
ln as genId,
|
|
5333
|
+
cc as getNode,
|
|
5334
|
+
en as getPropDefault,
|
|
5295
5335
|
bs as getPropTag,
|
|
5296
|
-
|
|
5336
|
+
tn as initProps,
|
|
5297
5337
|
Ts as injectDark,
|
|
5298
5338
|
Ps as injectData,
|
|
5299
5339
|
ws as injectDepends,
|
|
5300
5340
|
Ns as injectDevice,
|
|
5301
5341
|
Rs as injectEnv,
|
|
5302
|
-
|
|
5342
|
+
_c as injectInterpreter,
|
|
5303
5343
|
Os as injectMode,
|
|
5304
5344
|
Ss as injectType,
|
|
5305
5345
|
$i as isEmptyStr,
|
|
@@ -5307,17 +5347,17 @@ export {
|
|
|
5307
5347
|
Gi as isPixelStr,
|
|
5308
5348
|
gc as loadLocaleMessageRuntime,
|
|
5309
5349
|
Ct as parsePercentStr,
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5350
|
+
sc as parsePixelStr,
|
|
5351
|
+
fn as pkgs,
|
|
5352
|
+
dc as provideDark,
|
|
5353
|
+
yc as provideData,
|
|
5354
|
+
Ec as provideDepends,
|
|
5355
|
+
hc as provideDevice,
|
|
5356
|
+
lc as provideEnv,
|
|
5357
|
+
xs as provideInterpreter,
|
|
5358
|
+
pc as provideMode,
|
|
5359
|
+
vc as provideType,
|
|
5320
5360
|
ms as spawnNode,
|
|
5321
|
-
|
|
5322
|
-
|
|
5361
|
+
qs as startInterpreter,
|
|
5362
|
+
an as stopInterpreter
|
|
5323
5363
|
};
|