x-runtime-lib 0.5.35 → 0.5.37
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 +749 -728
- package/dist/types/context.d.ts +10 -0
- package/dist/types/depend.d.ts +2 -2
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var ka = Object.defineProperty;
|
|
2
2
|
var Aa = (n, o, l) => o in n ? ka(n, o, { enumerable: !0, configurable: !0, writable: !0, value: l }) : n[o] = l;
|
|
3
3
|
var Wt = (n, o, l) => Aa(n, typeof o != "symbol" ? o + "" : o, l);
|
|
4
|
-
import { provide as
|
|
4
|
+
import { provide as be, inject as ge, readonly as vr, isReactive as ni, defineComponent as oe, computed as N, resolveComponent as ie, openBlock as G, createBlock as Q, withCtx as ee, renderSlot as mr, unref as Le, createElementBlock as je, createVNode as Z, normalizeStyle as Ia, ref as ii, watchEffect as ai, onUnmounted as yr, watch as Da, h as J, createSlots as qt, renderList as La, onBeforeMount as Ma, isRef as Fa, createCommentVNode as Ua } from "vue";
|
|
5
5
|
import { useI18n as oi } from "vue-i18n";
|
|
6
6
|
import { eventBus as Me, messageInfo as ja, messageSuccess as Ba, messageWarning as $a, messageError as Va, openConfirmDlg as Ga, openPromptDlg as Ya, useViewStack as za } from "x-essential-lib";
|
|
7
|
-
const
|
|
7
|
+
const yn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
8
8
|
function ui(n) {
|
|
9
9
|
let o = "";
|
|
10
10
|
for (let l = 0; l < n; l++) {
|
|
11
|
-
const
|
|
12
|
-
o +=
|
|
11
|
+
const h = Math.floor(Math.random() * yn.length);
|
|
12
|
+
o += yn[h];
|
|
13
13
|
}
|
|
14
14
|
return o;
|
|
15
15
|
}
|
|
@@ -47,11 +47,11 @@ function Ja(n) {
|
|
|
47
47
|
var o = Wa.call(n, Ze), l = n[Ze];
|
|
48
48
|
try {
|
|
49
49
|
n[Ze] = void 0;
|
|
50
|
-
var
|
|
50
|
+
var h = !0;
|
|
51
51
|
} catch {
|
|
52
52
|
}
|
|
53
|
-
var
|
|
54
|
-
return
|
|
53
|
+
var y = Ha.call(n);
|
|
54
|
+
return h && (o ? n[Ze] = l : delete n[Ze]), y;
|
|
55
55
|
}
|
|
56
56
|
var Ka = Object.prototype, qa = Ka.toString;
|
|
57
57
|
function Za(n) {
|
|
@@ -84,7 +84,7 @@ function ao(n) {
|
|
|
84
84
|
return !!bn && bn in n;
|
|
85
85
|
}
|
|
86
86
|
var oo = Function.prototype, uo = oo.toString;
|
|
87
|
-
function
|
|
87
|
+
function Se(n) {
|
|
88
88
|
if (n != null) {
|
|
89
89
|
try {
|
|
90
90
|
return uo.call(n);
|
|
@@ -100,20 +100,20 @@ function xe(n) {
|
|
|
100
100
|
var so = /[\\^$.*+?()[\]{}|]/g, lo = /^\[object .+?Constructor\]$/, co = Function.prototype, fo = Object.prototype, po = co.toString, ho = fo.hasOwnProperty, vo = RegExp(
|
|
101
101
|
"^" + po.call(ho).replace(so, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
102
102
|
);
|
|
103
|
-
function
|
|
103
|
+
function mo(n) {
|
|
104
104
|
if (!it(n) || ao(n))
|
|
105
105
|
return !1;
|
|
106
106
|
var o = ci(n) ? vo : lo;
|
|
107
|
-
return o.test(
|
|
107
|
+
return o.test(Se(n));
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function yo(n, o) {
|
|
110
110
|
return n == null ? void 0 : n[o];
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
var l =
|
|
114
|
-
return
|
|
112
|
+
function we(n, o) {
|
|
113
|
+
var l = yo(n, o);
|
|
114
|
+
return mo(l) ? l : void 0;
|
|
115
115
|
}
|
|
116
|
-
var Zt =
|
|
116
|
+
var Zt = we(ue, "WeakMap"), gn = Object.create, _o = /* @__PURE__ */ function() {
|
|
117
117
|
function n() {
|
|
118
118
|
}
|
|
119
119
|
return function(o) {
|
|
@@ -127,20 +127,20 @@ var Zt = Se(ue, "WeakMap"), gn = Object.create, _o = /* @__PURE__ */ function()
|
|
|
127
127
|
};
|
|
128
128
|
}();
|
|
129
129
|
function bo(n, o) {
|
|
130
|
-
var l = -1,
|
|
131
|
-
for (o || (o = Array(
|
|
130
|
+
var l = -1, h = n.length;
|
|
131
|
+
for (o || (o = Array(h)); ++l < h; )
|
|
132
132
|
o[l] = n[l];
|
|
133
133
|
return o;
|
|
134
134
|
}
|
|
135
135
|
var En = function() {
|
|
136
136
|
try {
|
|
137
|
-
var n =
|
|
137
|
+
var n = we(Object, "defineProperty");
|
|
138
138
|
return n({}, "", {}), n;
|
|
139
139
|
} catch {
|
|
140
140
|
}
|
|
141
141
|
}();
|
|
142
142
|
function go(n, o) {
|
|
143
|
-
for (var l = -1,
|
|
143
|
+
for (var l = -1, h = n == null ? 0 : n.length; ++l < h && o(n[l], l, n) !== !1; )
|
|
144
144
|
;
|
|
145
145
|
return n;
|
|
146
146
|
}
|
|
@@ -162,15 +162,15 @@ function pi(n, o) {
|
|
|
162
162
|
}
|
|
163
163
|
var To = Object.prototype, No = To.hasOwnProperty;
|
|
164
164
|
function di(n, o, l) {
|
|
165
|
-
var
|
|
166
|
-
(!(No.call(n, o) && pi(
|
|
165
|
+
var h = n[o];
|
|
166
|
+
(!(No.call(n, o) && pi(h, l)) || l === void 0 && !(o in n)) && fi(n, o, l);
|
|
167
167
|
}
|
|
168
|
-
function Et(n, o, l,
|
|
169
|
-
var
|
|
168
|
+
function Et(n, o, l, h) {
|
|
169
|
+
var y = !l;
|
|
170
170
|
l || (l = {});
|
|
171
|
-
for (var
|
|
172
|
-
var O = o[
|
|
173
|
-
R === void 0 && (R = n[O]),
|
|
171
|
+
for (var b = -1, m = o.length; ++b < m; ) {
|
|
172
|
+
var O = o[b], R = void 0;
|
|
173
|
+
R === void 0 && (R = n[O]), y ? fi(l, O, R) : di(l, O, R);
|
|
174
174
|
}
|
|
175
175
|
return l;
|
|
176
176
|
}
|
|
@@ -187,15 +187,15 @@ function Rr(n) {
|
|
|
187
187
|
return n === l;
|
|
188
188
|
}
|
|
189
189
|
function wo(n, o) {
|
|
190
|
-
for (var l = -1,
|
|
191
|
-
|
|
192
|
-
return
|
|
190
|
+
for (var l = -1, h = Array(n); ++l < n; )
|
|
191
|
+
h[l] = o(l);
|
|
192
|
+
return h;
|
|
193
193
|
}
|
|
194
194
|
var Po = "[object Arguments]";
|
|
195
195
|
function Rn(n) {
|
|
196
196
|
return nt(n) && rt(n) == Po;
|
|
197
197
|
}
|
|
198
|
-
var
|
|
198
|
+
var mi = Object.prototype, Co = mi.hasOwnProperty, ko = mi.propertyIsEnumerable, Ao = Rn(/* @__PURE__ */ function() {
|
|
199
199
|
return arguments;
|
|
200
200
|
}()) ? Rn : function(n) {
|
|
201
201
|
return nt(n) && Co.call(n, "callee") && !ko.call(n, "callee");
|
|
@@ -203,7 +203,7 @@ var yi = Object.prototype, Co = yi.hasOwnProperty, ko = yi.propertyIsEnumerable,
|
|
|
203
203
|
function Io() {
|
|
204
204
|
return !1;
|
|
205
205
|
}
|
|
206
|
-
var
|
|
206
|
+
var yi = typeof exports == "object" && exports && !exports.nodeType && exports, On = yi && typeof module == "object" && module && !module.nodeType && module, Do = On && On.exports === yi, Tn = Do ? ue.Buffer : void 0, Lo = Tn ? Tn.isBuffer : void 0, _i = Lo || Io, Mo = "[object Arguments]", Fo = "[object Array]", Uo = "[object Boolean]", jo = "[object Date]", Bo = "[object Error]", $o = "[object Function]", Vo = "[object Map]", Go = "[object Number]", Yo = "[object Object]", zo = "[object RegExp]", Xo = "[object Set]", Wo = "[object String]", Ho = "[object WeakMap]", Jo = "[object ArrayBuffer]", Ko = "[object DataView]", qo = "[object Float32Array]", Zo = "[object Float64Array]", Qo = "[object Int8Array]", eu = "[object Int16Array]", tu = "[object Int32Array]", ru = "[object Uint8Array]", nu = "[object Uint8ClampedArray]", iu = "[object Uint16Array]", au = "[object Uint32Array]", U = {};
|
|
207
207
|
U[qo] = U[Zo] = U[Qo] = U[eu] = U[tu] = U[ru] = U[nu] = U[iu] = U[au] = !0;
|
|
208
208
|
U[Mo] = U[Fo] = U[Jo] = U[Uo] = U[Ko] = U[jo] = U[Bo] = U[$o] = U[Vo] = U[Go] = U[Yo] = U[zo] = U[Xo] = U[Wo] = U[Ho] = !1;
|
|
209
209
|
function ou(n) {
|
|
@@ -222,12 +222,12 @@ var bi = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
222
222
|
}
|
|
223
223
|
}(), Nn = Ue && Ue.isTypedArray, su = Nn ? Or(Nn) : ou, lu = Object.prototype, cu = lu.hasOwnProperty;
|
|
224
224
|
function gi(n, o) {
|
|
225
|
-
var l = Er(n),
|
|
225
|
+
var l = Er(n), h = !l && Ao(n), y = !l && !h && _i(n), b = !l && !h && !y && su(n), m = l || h || y || b, O = m ? wo(n.length, String) : [], R = O.length;
|
|
226
226
|
for (var r in n)
|
|
227
|
-
(o || cu.call(n, r)) && !(
|
|
227
|
+
(o || cu.call(n, r)) && !(m && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
228
228
|
(r == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
y && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
230
|
+
b && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
|
|
231
231
|
Oo(r, R))) && O.push(r);
|
|
232
232
|
return O;
|
|
233
233
|
}
|
|
@@ -255,19 +255,19 @@ function vu(n) {
|
|
|
255
255
|
o.push(l);
|
|
256
256
|
return o;
|
|
257
257
|
}
|
|
258
|
-
var
|
|
258
|
+
var mu = Object.prototype, yu = mu.hasOwnProperty;
|
|
259
259
|
function _u(n) {
|
|
260
260
|
if (!it(n))
|
|
261
261
|
return vu(n);
|
|
262
262
|
var o = Rr(n), l = [];
|
|
263
|
-
for (var
|
|
264
|
-
|
|
263
|
+
for (var h in n)
|
|
264
|
+
h == "constructor" && (o || !yu.call(n, h)) || l.push(h);
|
|
265
265
|
return l;
|
|
266
266
|
}
|
|
267
267
|
function Nr(n) {
|
|
268
268
|
return vi(n) ? gi(n, !0) : _u(n);
|
|
269
269
|
}
|
|
270
|
-
var et =
|
|
270
|
+
var et = we(Object, "create");
|
|
271
271
|
function bu() {
|
|
272
272
|
this.__data__ = et ? et(null) : {}, this.size = 0;
|
|
273
273
|
}
|
|
@@ -294,18 +294,18 @@ function Pu(n, o) {
|
|
|
294
294
|
var l = this.__data__;
|
|
295
295
|
return this.size += this.has(n) ? 0 : 1, l[n] = et && o === void 0 ? wu : o, this;
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function Ne(n) {
|
|
298
298
|
var o = -1, l = n == null ? 0 : n.length;
|
|
299
299
|
for (this.clear(); ++o < l; ) {
|
|
300
|
-
var
|
|
301
|
-
this.set(
|
|
300
|
+
var h = n[o];
|
|
301
|
+
this.set(h[0], h[1]);
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
304
|
+
Ne.prototype.clear = bu;
|
|
305
|
+
Ne.prototype.delete = gu;
|
|
306
|
+
Ne.prototype.get = Tu;
|
|
307
|
+
Ne.prototype.has = Su;
|
|
308
|
+
Ne.prototype.set = Pu;
|
|
309
309
|
function Cu() {
|
|
310
310
|
this.__data__ = [], this.size = 0;
|
|
311
311
|
}
|
|
@@ -320,8 +320,8 @@ function Iu(n) {
|
|
|
320
320
|
var o = this.__data__, l = Rt(o, n);
|
|
321
321
|
if (l < 0)
|
|
322
322
|
return !1;
|
|
323
|
-
var
|
|
324
|
-
return l ==
|
|
323
|
+
var h = o.length - 1;
|
|
324
|
+
return l == h ? o.pop() : Au.call(o, l, 1), --this.size, !0;
|
|
325
325
|
}
|
|
326
326
|
function Du(n) {
|
|
327
327
|
var o = this.__data__, l = Rt(o, n);
|
|
@@ -331,14 +331,14 @@ function Lu(n) {
|
|
|
331
331
|
return Rt(this.__data__, n) > -1;
|
|
332
332
|
}
|
|
333
333
|
function Mu(n, o) {
|
|
334
|
-
var l = this.__data__,
|
|
335
|
-
return
|
|
334
|
+
var l = this.__data__, h = Rt(l, n);
|
|
335
|
+
return h < 0 ? (++this.size, l.push([n, o])) : l[h][1] = o, this;
|
|
336
336
|
}
|
|
337
337
|
function de(n) {
|
|
338
338
|
var o = -1, l = n == null ? 0 : n.length;
|
|
339
339
|
for (this.clear(); ++o < l; ) {
|
|
340
|
-
var
|
|
341
|
-
this.set(
|
|
340
|
+
var h = n[o];
|
|
341
|
+
this.set(h[0], h[1]);
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
de.prototype.clear = Cu;
|
|
@@ -346,12 +346,12 @@ de.prototype.delete = Iu;
|
|
|
346
346
|
de.prototype.get = Du;
|
|
347
347
|
de.prototype.has = Lu;
|
|
348
348
|
de.prototype.set = Mu;
|
|
349
|
-
var tt =
|
|
349
|
+
var tt = we(ue, "Map");
|
|
350
350
|
function Fu() {
|
|
351
351
|
this.size = 0, this.__data__ = {
|
|
352
|
-
hash: new
|
|
352
|
+
hash: new Ne(),
|
|
353
353
|
map: new (tt || de)(),
|
|
354
|
-
string: new
|
|
354
|
+
string: new Ne()
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
357
|
function Uu(n) {
|
|
@@ -373,14 +373,14 @@ function $u(n) {
|
|
|
373
373
|
return Ot(this, n).has(n);
|
|
374
374
|
}
|
|
375
375
|
function Vu(n, o) {
|
|
376
|
-
var l = Ot(this, n),
|
|
377
|
-
return l.set(n, o), this.size += l.size ==
|
|
376
|
+
var l = Ot(this, n), h = l.size;
|
|
377
|
+
return l.set(n, o), this.size += l.size == h ? 0 : 1, this;
|
|
378
378
|
}
|
|
379
379
|
function Be(n) {
|
|
380
380
|
var o = -1, l = n == null ? 0 : n.length;
|
|
381
381
|
for (this.clear(); ++o < l; ) {
|
|
382
|
-
var
|
|
383
|
-
this.set(
|
|
382
|
+
var h = n[o];
|
|
383
|
+
this.set(h[0], h[1]);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
Be.prototype.clear = Fu;
|
|
@@ -389,8 +389,8 @@ Be.prototype.get = Bu;
|
|
|
389
389
|
Be.prototype.has = $u;
|
|
390
390
|
Be.prototype.set = Vu;
|
|
391
391
|
function Ri(n, o) {
|
|
392
|
-
for (var l = -1,
|
|
393
|
-
n[
|
|
392
|
+
for (var l = -1, h = o.length, y = n.length; ++l < h; )
|
|
393
|
+
n[y + l] = o[l];
|
|
394
394
|
return n;
|
|
395
395
|
}
|
|
396
396
|
var Oi = Ei(Object.getPrototypeOf, Object);
|
|
@@ -411,10 +411,10 @@ var Wu = 200;
|
|
|
411
411
|
function Hu(n, o) {
|
|
412
412
|
var l = this.__data__;
|
|
413
413
|
if (l instanceof de) {
|
|
414
|
-
var
|
|
415
|
-
if (!tt ||
|
|
416
|
-
return
|
|
417
|
-
l = this.__data__ = new Be(
|
|
414
|
+
var h = l.__data__;
|
|
415
|
+
if (!tt || h.length < Wu - 1)
|
|
416
|
+
return h.push([n, o]), this.size = ++l.size, this;
|
|
417
|
+
l = this.__data__ = new Be(h);
|
|
418
418
|
}
|
|
419
419
|
return l.set(n, o), this.size = l.size, this;
|
|
420
420
|
}
|
|
@@ -437,15 +437,15 @@ var Ti = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
437
437
|
function Zu(n, o) {
|
|
438
438
|
if (o)
|
|
439
439
|
return n.slice();
|
|
440
|
-
var l = n.length,
|
|
441
|
-
return n.copy(
|
|
440
|
+
var l = n.length, h = wn ? wn(l) : new n.constructor(l);
|
|
441
|
+
return n.copy(h), h;
|
|
442
442
|
}
|
|
443
443
|
function Qu(n, o) {
|
|
444
|
-
for (var l = -1,
|
|
445
|
-
var
|
|
446
|
-
o(
|
|
444
|
+
for (var l = -1, h = n == null ? 0 : n.length, y = 0, b = []; ++l < h; ) {
|
|
445
|
+
var m = n[l];
|
|
446
|
+
o(m, l, n) && (b[y++] = m);
|
|
447
447
|
}
|
|
448
|
-
return
|
|
448
|
+
return b;
|
|
449
449
|
}
|
|
450
450
|
function Ni() {
|
|
451
451
|
return [];
|
|
@@ -467,8 +467,8 @@ function is(n, o) {
|
|
|
467
467
|
return Et(n, xi(n), o);
|
|
468
468
|
}
|
|
469
469
|
function Si(n, o, l) {
|
|
470
|
-
var
|
|
471
|
-
return Er(n) ?
|
|
470
|
+
var h = o(n);
|
|
471
|
+
return Er(n) ? h : Ri(h, l(n));
|
|
472
472
|
}
|
|
473
473
|
function as(n) {
|
|
474
474
|
return Si(n, Tr, xr);
|
|
@@ -476,11 +476,11 @@ function as(n) {
|
|
|
476
476
|
function os(n) {
|
|
477
477
|
return Si(n, Nr, xi);
|
|
478
478
|
}
|
|
479
|
-
var Qt =
|
|
479
|
+
var Qt = we(ue, "DataView"), er = we(ue, "Promise"), tr = we(ue, "Set"), Cn = "[object Map]", us = "[object Object]", kn = "[object Promise]", An = "[object Set]", In = "[object WeakMap]", Dn = "[object DataView]", ss = Se(Qt), ls = Se(tt), cs = Se(er), fs = Se(tr), ps = Se(Zt), pe = rt;
|
|
480
480
|
(Qt && pe(new Qt(new ArrayBuffer(1))) != Dn || tt && pe(new tt()) != Cn || er && pe(er.resolve()) != kn || tr && pe(new tr()) != An || Zt && pe(new Zt()) != In) && (pe = function(n) {
|
|
481
|
-
var o = rt(n), l = o == us ? n.constructor : void 0,
|
|
482
|
-
if (
|
|
483
|
-
switch (
|
|
481
|
+
var o = rt(n), l = o == us ? n.constructor : void 0, h = l ? Se(l) : "";
|
|
482
|
+
if (h)
|
|
483
|
+
switch (h) {
|
|
484
484
|
case ss:
|
|
485
485
|
return Dn;
|
|
486
486
|
case ls:
|
|
@@ -504,13 +504,13 @@ function Sr(n) {
|
|
|
504
504
|
var o = new n.constructor(n.byteLength);
|
|
505
505
|
return new Ln(o).set(new Ln(n)), o;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function ms(n, o) {
|
|
508
508
|
var l = o ? Sr(n.buffer) : n.buffer;
|
|
509
509
|
return new n.constructor(l, n.byteOffset, n.byteLength);
|
|
510
510
|
}
|
|
511
|
-
var
|
|
511
|
+
var ys = /\w*$/;
|
|
512
512
|
function _s(n) {
|
|
513
|
-
var o = new n.constructor(n.source,
|
|
513
|
+
var o = new n.constructor(n.source, ys.exec(n));
|
|
514
514
|
return o.lastIndex = n.lastIndex, o;
|
|
515
515
|
}
|
|
516
516
|
var Mn = Fe ? Fe.prototype : void 0, Fn = Mn ? Mn.valueOf : void 0;
|
|
@@ -523,15 +523,15 @@ function gs(n, o) {
|
|
|
523
523
|
}
|
|
524
524
|
var Es = "[object Boolean]", Rs = "[object Date]", Os = "[object Map]", Ts = "[object Number]", Ns = "[object RegExp]", xs = "[object Set]", Ss = "[object String]", ws = "[object Symbol]", Ps = "[object ArrayBuffer]", Cs = "[object DataView]", ks = "[object Float32Array]", As = "[object Float64Array]", Is = "[object Int8Array]", Ds = "[object Int16Array]", Ls = "[object Int32Array]", Ms = "[object Uint8Array]", Fs = "[object Uint8ClampedArray]", Us = "[object Uint16Array]", js = "[object Uint32Array]";
|
|
525
525
|
function Bs(n, o, l) {
|
|
526
|
-
var
|
|
526
|
+
var h = n.constructor;
|
|
527
527
|
switch (o) {
|
|
528
528
|
case Ps:
|
|
529
529
|
return Sr(n);
|
|
530
530
|
case Es:
|
|
531
531
|
case Rs:
|
|
532
|
-
return new
|
|
532
|
+
return new h(+n);
|
|
533
533
|
case Cs:
|
|
534
|
-
return
|
|
534
|
+
return ms(n, l);
|
|
535
535
|
case ks:
|
|
536
536
|
case As:
|
|
537
537
|
case Is:
|
|
@@ -543,14 +543,14 @@ function Bs(n, o, l) {
|
|
|
543
543
|
case js:
|
|
544
544
|
return gs(n, l);
|
|
545
545
|
case Os:
|
|
546
|
-
return new
|
|
546
|
+
return new h();
|
|
547
547
|
case Ts:
|
|
548
548
|
case Ss:
|
|
549
|
-
return new
|
|
549
|
+
return new h(n);
|
|
550
550
|
case Ns:
|
|
551
551
|
return _s(n);
|
|
552
552
|
case xs:
|
|
553
|
-
return new
|
|
553
|
+
return new h();
|
|
554
554
|
case ws:
|
|
555
555
|
return bs(n);
|
|
556
556
|
}
|
|
@@ -566,48 +566,48 @@ var Un = Ue && Ue.isMap, Ys = Un ? Or(Un) : Gs, zs = "[object Set]";
|
|
|
566
566
|
function Xs(n) {
|
|
567
567
|
return nt(n) && pe(n) == zs;
|
|
568
568
|
}
|
|
569
|
-
var jn = Ue && Ue.isSet, Ws = jn ? Or(jn) : Xs, Hs = 1, Js = 2, Ks = 4, wi = "[object Arguments]", qs = "[object Array]", Zs = "[object Boolean]", Qs = "[object Date]", el = "[object Error]", Pi = "[object Function]", tl = "[object GeneratorFunction]", rl = "[object Map]", nl = "[object Number]", Ci = "[object Object]", il = "[object RegExp]", al = "[object Set]", ol = "[object String]", ul = "[object Symbol]", sl = "[object WeakMap]", ll = "[object ArrayBuffer]", cl = "[object DataView]", fl = "[object Float32Array]", pl = "[object Float64Array]", dl = "[object Int8Array]", hl = "[object Int16Array]", vl = "[object Int32Array]",
|
|
570
|
-
M[wi] = M[qs] = M[ll] = M[cl] = M[Zs] = M[Qs] = M[fl] = M[pl] = M[dl] = M[hl] = M[vl] = M[rl] = M[nl] = M[Ci] = M[il] = M[al] = M[ol] = M[ul] = M[
|
|
569
|
+
var jn = Ue && Ue.isSet, Ws = jn ? Or(jn) : Xs, Hs = 1, Js = 2, Ks = 4, wi = "[object Arguments]", qs = "[object Array]", Zs = "[object Boolean]", Qs = "[object Date]", el = "[object Error]", Pi = "[object Function]", tl = "[object GeneratorFunction]", rl = "[object Map]", nl = "[object Number]", Ci = "[object Object]", il = "[object RegExp]", al = "[object Set]", ol = "[object String]", ul = "[object Symbol]", sl = "[object WeakMap]", ll = "[object ArrayBuffer]", cl = "[object DataView]", fl = "[object Float32Array]", pl = "[object Float64Array]", dl = "[object Int8Array]", hl = "[object Int16Array]", vl = "[object Int32Array]", ml = "[object Uint8Array]", yl = "[object Uint8ClampedArray]", _l = "[object Uint16Array]", bl = "[object Uint32Array]", M = {};
|
|
570
|
+
M[wi] = M[qs] = M[ll] = M[cl] = M[Zs] = M[Qs] = M[fl] = M[pl] = M[dl] = M[hl] = M[vl] = M[rl] = M[nl] = M[Ci] = M[il] = M[al] = M[ol] = M[ul] = M[ml] = M[yl] = M[_l] = M[bl] = !0;
|
|
571
571
|
M[el] = M[Pi] = M[sl] = !1;
|
|
572
|
-
function _t(n, o, l,
|
|
573
|
-
var
|
|
574
|
-
if (
|
|
575
|
-
return
|
|
572
|
+
function _t(n, o, l, h, y, b) {
|
|
573
|
+
var m, O = o & Hs, R = o & Js, r = o & Ks;
|
|
574
|
+
if (m !== void 0)
|
|
575
|
+
return m;
|
|
576
576
|
if (!it(n))
|
|
577
577
|
return n;
|
|
578
578
|
var t = Er(n);
|
|
579
579
|
if (t) {
|
|
580
|
-
if (
|
|
581
|
-
return bo(n,
|
|
580
|
+
if (m = vs(n), !O)
|
|
581
|
+
return bo(n, m);
|
|
582
582
|
} else {
|
|
583
583
|
var e = pe(n), i = e == Pi || e == tl;
|
|
584
584
|
if (_i(n))
|
|
585
585
|
return Zu(n, O);
|
|
586
|
-
if (e == Ci || e == wi || i && !
|
|
587
|
-
if (
|
|
588
|
-
return R ? is(n, Ku(
|
|
586
|
+
if (e == Ci || e == wi || i && !y) {
|
|
587
|
+
if (m = R || i ? {} : $s(n), !O)
|
|
588
|
+
return R ? is(n, Ku(m, n)) : rs(n, Ju(m, n));
|
|
589
589
|
} else {
|
|
590
590
|
if (!M[e])
|
|
591
|
-
return
|
|
592
|
-
|
|
591
|
+
return y ? n : {};
|
|
592
|
+
m = Bs(n, e, O);
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
|
|
596
|
-
var s =
|
|
595
|
+
b || (b = new $e());
|
|
596
|
+
var s = b.get(n);
|
|
597
597
|
if (s)
|
|
598
598
|
return s;
|
|
599
|
-
|
|
600
|
-
|
|
599
|
+
b.set(n, m), Ws(n) ? n.forEach(function(a) {
|
|
600
|
+
m.add(_t(a, o, l, a, n, b));
|
|
601
601
|
}) : Ys(n) && n.forEach(function(a, p) {
|
|
602
|
-
|
|
602
|
+
m.set(p, _t(a, o, l, p, n, b));
|
|
603
603
|
});
|
|
604
604
|
var u = r ? R ? os : as : R ? Nr : Tr, c = t ? void 0 : u(n);
|
|
605
605
|
return go(c || n, function(a, p) {
|
|
606
|
-
c && (p = a, a = n[p]), di(
|
|
607
|
-
}),
|
|
606
|
+
c && (p = a, a = n[p]), di(m, p, _t(a, o, l, p, n, b));
|
|
607
|
+
}), m;
|
|
608
608
|
}
|
|
609
609
|
var gl = 1, El = 4;
|
|
610
|
-
function
|
|
610
|
+
function _e(n) {
|
|
611
611
|
return _t(n, gl | El);
|
|
612
612
|
}
|
|
613
613
|
function Rl(n, o) {
|
|
@@ -623,30 +623,30 @@ function Rl(n, o) {
|
|
|
623
623
|
console.assert(!1);
|
|
624
624
|
}
|
|
625
625
|
function Bn(n, o) {
|
|
626
|
-
return n.array ?
|
|
626
|
+
return n.array ? _e(o ? n.default : n.defaultArray) : _e(n.default);
|
|
627
627
|
}
|
|
628
628
|
function $n(n, o) {
|
|
629
|
-
function l(
|
|
630
|
-
if (
|
|
631
|
-
if (
|
|
629
|
+
function l(h, y) {
|
|
630
|
+
if (y.ui) {
|
|
631
|
+
if (y.ui === "strInput" && y.static)
|
|
632
632
|
return;
|
|
633
|
-
|
|
633
|
+
h[y.key] = Bn(y);
|
|
634
634
|
} else
|
|
635
|
-
|
|
636
|
-
|
|
635
|
+
y.array ? h[y.key] = Bn(y) : y.children.forEach((b) => {
|
|
636
|
+
h[y.key] || (h[y.key] = {}), l(h[y.key], b);
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
|
-
o.forEach((
|
|
639
|
+
o.forEach((h) => l(n, h));
|
|
640
640
|
}
|
|
641
|
-
function Ol(n, o, l,
|
|
642
|
-
const
|
|
643
|
-
if (!
|
|
644
|
-
console.error(`spawnNode prop tag not found, ${
|
|
641
|
+
function Ol(n, o, l, h, y) {
|
|
642
|
+
const b = `type=${n} subtype=${o} version=${l} ref=${h} keyOrRefid=${y}`, m = Rl(n, o);
|
|
643
|
+
if (!m) {
|
|
644
|
+
console.error(`spawnNode prop tag not found, ${b}`);
|
|
645
645
|
return;
|
|
646
646
|
}
|
|
647
647
|
const O = Cr[l];
|
|
648
648
|
if (!O) {
|
|
649
|
-
console.error(`spawnNode pkg not found version, ${
|
|
649
|
+
console.error(`spawnNode pkg not found version, ${b}`);
|
|
650
650
|
return;
|
|
651
651
|
}
|
|
652
652
|
const R = {
|
|
@@ -655,39 +655,39 @@ function Ol(n, o, l, v, _) {
|
|
|
655
655
|
key: ""
|
|
656
656
|
}
|
|
657
657
|
}, r = ui(16);
|
|
658
|
-
if (
|
|
659
|
-
const t = O.refKey, e =
|
|
658
|
+
if (h) {
|
|
659
|
+
const t = O.refKey, e = y;
|
|
660
660
|
if (!O.elements.has(t)) {
|
|
661
|
-
console.error(`spawnNode [ref] element not found in pkg, ${
|
|
661
|
+
console.error(`spawnNode [ref] element not found in pkg, ${b}`);
|
|
662
662
|
return;
|
|
663
663
|
}
|
|
664
|
-
const i =
|
|
664
|
+
const i = xe[t];
|
|
665
665
|
if (!i) {
|
|
666
|
-
console.error(`spawnNode [ref] element not found in global, ${
|
|
666
|
+
console.error(`spawnNode [ref] element not found in global, ${b}`);
|
|
667
667
|
return;
|
|
668
668
|
}
|
|
669
|
-
const s = i.props[
|
|
669
|
+
const s = i.props[m];
|
|
670
670
|
if (!s) {
|
|
671
|
-
console.error(`spawnNode [ref] props not found, ${
|
|
671
|
+
console.error(`spawnNode [ref] props not found, ${b}`);
|
|
672
672
|
return;
|
|
673
673
|
}
|
|
674
674
|
$n(R, s), R.basic.id = r, R.basic.key = t, R.ref = {
|
|
675
675
|
id: e
|
|
676
676
|
};
|
|
677
677
|
} else {
|
|
678
|
-
const t =
|
|
678
|
+
const t = y;
|
|
679
679
|
if (!O.elements.has(t)) {
|
|
680
|
-
console.error(`spawnNode [key] element not found in pkg, ${
|
|
680
|
+
console.error(`spawnNode [key] element not found in pkg, ${b}`);
|
|
681
681
|
return;
|
|
682
682
|
}
|
|
683
|
-
const e =
|
|
683
|
+
const e = xe[t];
|
|
684
684
|
if (!e) {
|
|
685
|
-
console.error(`spawnNode [key] element not found in global, ${
|
|
685
|
+
console.error(`spawnNode [key] element not found in global, ${b}`);
|
|
686
686
|
return;
|
|
687
687
|
}
|
|
688
|
-
const i = e.props[
|
|
688
|
+
const i = e.props[m];
|
|
689
689
|
if (!i) {
|
|
690
|
-
console.error(`spawnNode [key] props not found, ${
|
|
690
|
+
console.error(`spawnNode [key] props not found, ${b}`);
|
|
691
691
|
return;
|
|
692
692
|
}
|
|
693
693
|
$n(R, i), R.basic.id = r, R.basic.key = t, e.slots.some((s) => s.key === "default") && (R.children = []);
|
|
@@ -695,28 +695,28 @@ function Ol(n, o, l, v, _) {
|
|
|
695
695
|
return R;
|
|
696
696
|
}
|
|
697
697
|
function Yc(n, o) {
|
|
698
|
-
function l(
|
|
699
|
-
if (
|
|
700
|
-
return
|
|
701
|
-
if (
|
|
702
|
-
for (let
|
|
703
|
-
const
|
|
704
|
-
if (
|
|
705
|
-
return
|
|
698
|
+
function l(h) {
|
|
699
|
+
if (h.basic.id === o)
|
|
700
|
+
return h;
|
|
701
|
+
if (h.children)
|
|
702
|
+
for (let y = 0; y < h.children.length; y++) {
|
|
703
|
+
const b = l(h.children[y]);
|
|
704
|
+
if (b)
|
|
705
|
+
return b;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
for (let
|
|
709
|
-
const
|
|
710
|
-
if (
|
|
711
|
-
return
|
|
708
|
+
for (let h = 0; h < n.length; h++) {
|
|
709
|
+
const y = l(n[h]);
|
|
710
|
+
if (y)
|
|
711
|
+
return y;
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
function Tl(n) {
|
|
715
|
-
function o(
|
|
716
|
-
var
|
|
717
|
-
|
|
715
|
+
function o(h) {
|
|
716
|
+
var y;
|
|
717
|
+
h.basic.id = ui(16), (y = h.children) == null || y.forEach((b) => o(b));
|
|
718
718
|
}
|
|
719
|
-
const l =
|
|
719
|
+
const l = _e(n);
|
|
720
720
|
return o(l), l;
|
|
721
721
|
}
|
|
722
722
|
function zc(n) {
|
|
@@ -727,52 +727,52 @@ function zc(n) {
|
|
|
727
727
|
}
|
|
728
728
|
const ki = "runtimeEnv", Ai = "runtimeMode", Ii = "runtimeDevice", Di = "runtimeDark", Li = "runtimeType", Mi = "runtimeData", Fi = "runtimeDepends", Ui = "runtimeInterpreter";
|
|
729
729
|
function Xc(n) {
|
|
730
|
-
|
|
730
|
+
be(ki, n);
|
|
731
731
|
}
|
|
732
732
|
function ji() {
|
|
733
|
-
return
|
|
733
|
+
return ge(ki);
|
|
734
734
|
}
|
|
735
735
|
function Wc(n) {
|
|
736
|
-
|
|
736
|
+
be(Ai, n);
|
|
737
737
|
}
|
|
738
738
|
function he() {
|
|
739
|
-
return
|
|
739
|
+
return ge(Ai);
|
|
740
740
|
}
|
|
741
741
|
function Hc(n) {
|
|
742
|
-
|
|
742
|
+
be(Ii, vr(n));
|
|
743
743
|
}
|
|
744
744
|
function Bi() {
|
|
745
|
-
return
|
|
745
|
+
return ge(Ii);
|
|
746
746
|
}
|
|
747
747
|
function Jc(n) {
|
|
748
|
-
|
|
748
|
+
be(Di, vr(n));
|
|
749
749
|
}
|
|
750
750
|
function Ve() {
|
|
751
|
-
return
|
|
751
|
+
return ge(Di);
|
|
752
752
|
}
|
|
753
753
|
function Kc(n) {
|
|
754
|
-
|
|
754
|
+
be(Li, n);
|
|
755
755
|
}
|
|
756
756
|
function wr() {
|
|
757
|
-
return
|
|
757
|
+
return ge(Li);
|
|
758
758
|
}
|
|
759
759
|
function qc(n) {
|
|
760
|
-
console.assert(ni(n)),
|
|
760
|
+
console.assert(ni(n)), be(Mi, n);
|
|
761
761
|
}
|
|
762
762
|
function Pr() {
|
|
763
|
-
return
|
|
763
|
+
return ge(Mi);
|
|
764
764
|
}
|
|
765
765
|
function Zc(n) {
|
|
766
|
-
console.assert(ni(n)),
|
|
766
|
+
console.assert(ni(n)), be(Fi, vr(n));
|
|
767
767
|
}
|
|
768
768
|
function $i() {
|
|
769
|
-
return
|
|
769
|
+
return ge(Fi);
|
|
770
770
|
}
|
|
771
771
|
function Vi(n) {
|
|
772
|
-
|
|
772
|
+
be(Ui, n);
|
|
773
773
|
}
|
|
774
774
|
function Nl() {
|
|
775
|
-
return
|
|
775
|
+
return ge(Ui);
|
|
776
776
|
}
|
|
777
777
|
const xl = /* @__PURE__ */ oe({
|
|
778
778
|
__name: "index",
|
|
@@ -781,10 +781,10 @@ const xl = /* @__PURE__ */ oe({
|
|
|
781
781
|
outer: { type: Boolean }
|
|
782
782
|
},
|
|
783
783
|
setup(n) {
|
|
784
|
-
const o = n, l = he(),
|
|
784
|
+
const o = n, l = he(), h = Ve(), y = Nl(), b = N(() => {
|
|
785
785
|
var i;
|
|
786
786
|
return (i = o.node.settings) == null ? void 0 : i.text;
|
|
787
|
-
}),
|
|
787
|
+
}), m = N(() => {
|
|
788
788
|
var i;
|
|
789
789
|
return (i = o.node.settings) == null ? void 0 : i.disabled;
|
|
790
790
|
}), O = N(() => {
|
|
@@ -796,17 +796,17 @@ const xl = /* @__PURE__ */ oe({
|
|
|
796
796
|
}), r = N(() => {
|
|
797
797
|
var i;
|
|
798
798
|
return (i = o.node.settings) == null ? void 0 : i.block;
|
|
799
|
-
}), t = N(() =>
|
|
800
|
-
if (l !== "runtime" || !
|
|
799
|
+
}), t = N(() => h.value ? "dark" : "light"), e = () => {
|
|
800
|
+
if (l !== "runtime" || !y)
|
|
801
801
|
return;
|
|
802
|
-
const i =
|
|
803
|
-
|
|
802
|
+
const i = y.nativeToPseudo(o.node.basic.id);
|
|
803
|
+
y.appendCode(`__triggerEvent__('${i}', 'click');`), y.run();
|
|
804
804
|
};
|
|
805
805
|
return (i, s) => {
|
|
806
806
|
const u = ie("v-btn");
|
|
807
807
|
return G(), Q(u, {
|
|
808
|
-
text:
|
|
809
|
-
disabled:
|
|
808
|
+
text: b.value,
|
|
809
|
+
disabled: m.value,
|
|
810
810
|
variant: O.value,
|
|
811
811
|
density: R.value,
|
|
812
812
|
block: r.value,
|
|
@@ -907,15 +907,15 @@ const xl = /* @__PURE__ */ oe({
|
|
|
907
907
|
}
|
|
908
908
|
}, Tt = (n, o) => {
|
|
909
909
|
const l = n.__vccOpts || n;
|
|
910
|
-
for (const [
|
|
911
|
-
l[
|
|
910
|
+
for (const [h, y] of o)
|
|
911
|
+
l[h] = y;
|
|
912
912
|
return l;
|
|
913
913
|
}, Pl = {};
|
|
914
914
|
function Cl(n, o) {
|
|
915
915
|
const l = ie("v-card");
|
|
916
916
|
return G(), Q(l, null, {
|
|
917
917
|
default: ee(() => [
|
|
918
|
-
|
|
918
|
+
mr(n.$slots, "default")
|
|
919
919
|
]),
|
|
920
920
|
_: 3
|
|
921
921
|
});
|
|
@@ -959,13 +959,13 @@ const Ll = /* @__PURE__ */ Tt(Il, [["render", Dl]]), Ml = {
|
|
|
959
959
|
outer: { type: Boolean }
|
|
960
960
|
},
|
|
961
961
|
setup(n) {
|
|
962
|
-
const o = n, l = he(),
|
|
962
|
+
const o = n, l = he(), h = Ve(), y = N(() => {
|
|
963
963
|
var e;
|
|
964
964
|
return (e = o.node.settings) == null ? void 0 : e.value;
|
|
965
|
-
}),
|
|
965
|
+
}), b = N(() => {
|
|
966
966
|
var e;
|
|
967
967
|
return (e = o.node.settings) == null ? void 0 : e.label;
|
|
968
|
-
}),
|
|
968
|
+
}), m = N(() => {
|
|
969
969
|
var e;
|
|
970
970
|
return (e = o.node.settings) == null ? void 0 : e.placeholder;
|
|
971
971
|
}), O = N(() => {
|
|
@@ -977,14 +977,14 @@ const Ll = /* @__PURE__ */ Tt(Il, [["render", Dl]]), Ml = {
|
|
|
977
977
|
}), r = N(() => {
|
|
978
978
|
var e;
|
|
979
979
|
return l !== "runtime" ? !0 : (e = o.node.settings) == null ? void 0 : e.readonly;
|
|
980
|
-
}), t = N(() =>
|
|
980
|
+
}), t = N(() => h.value ? "dark" : "light");
|
|
981
981
|
return (e, i) => {
|
|
982
982
|
const s = ie("v-combobox");
|
|
983
983
|
return Le(l) === "editor" ? (G(), je("div", Fl, [
|
|
984
984
|
Z(s, {
|
|
985
|
-
"model-value":
|
|
986
|
-
label:
|
|
987
|
-
placeholder:
|
|
985
|
+
"model-value": y.value,
|
|
986
|
+
label: b.value,
|
|
987
|
+
placeholder: m.value,
|
|
988
988
|
"hide-details": O.value,
|
|
989
989
|
"single-line": R.value,
|
|
990
990
|
readonly: r.value,
|
|
@@ -992,9 +992,9 @@ const Ll = /* @__PURE__ */ Tt(Il, [["render", Dl]]), Ml = {
|
|
|
992
992
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
993
993
|
])) : (G(), Q(s, {
|
|
994
994
|
key: 1,
|
|
995
|
-
"model-value":
|
|
996
|
-
label:
|
|
997
|
-
placeholder:
|
|
995
|
+
"model-value": y.value,
|
|
996
|
+
label: b.value,
|
|
997
|
+
placeholder: m.value,
|
|
998
998
|
"hide-details": O.value,
|
|
999
999
|
"single-line": R.value,
|
|
1000
1000
|
readonly: r.value,
|
|
@@ -1056,16 +1056,16 @@ const Ll = /* @__PURE__ */ Tt(Il, [["render", Dl]]), Ml = {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
};
|
|
1058
1058
|
function Yi(n, o, l) {
|
|
1059
|
-
const
|
|
1059
|
+
const h = N(() => {
|
|
1060
1060
|
var t;
|
|
1061
1061
|
return (t = l.node.size) == null ? void 0 : t.width;
|
|
1062
|
-
}),
|
|
1062
|
+
}), y = N(() => {
|
|
1063
1063
|
var t;
|
|
1064
1064
|
return (t = l.node.size) == null ? void 0 : t.minWidth;
|
|
1065
|
-
}),
|
|
1065
|
+
}), b = N(() => {
|
|
1066
1066
|
var t;
|
|
1067
1067
|
return (t = l.node.size) == null ? void 0 : t.maxWidth;
|
|
1068
|
-
}),
|
|
1068
|
+
}), m = N(() => {
|
|
1069
1069
|
var t, e;
|
|
1070
1070
|
if (l.outer && n === "editor") {
|
|
1071
1071
|
const i = Ht((t = l.node.size) == null ? void 0 : t.height);
|
|
@@ -1091,63 +1091,63 @@ function Yi(n, o, l) {
|
|
|
1091
1091
|
return (e = l.node.size) == null ? void 0 : e.maxHeight;
|
|
1092
1092
|
});
|
|
1093
1093
|
function r(t) {
|
|
1094
|
-
|
|
1094
|
+
h.value && (t.width = h.value), y.value && (t.minWidth = y.value), b.value && (t.maxWidth = b.value), m.value && (t.height = m.value), O.value && (t.minHeight = O.value), R.value && (t.maxHeight = R.value);
|
|
1095
1095
|
}
|
|
1096
|
-
return { width:
|
|
1096
|
+
return { width: h, minWidth: y, maxWidth: b, height: m, minHeight: O, maxHeight: R, applySize: r };
|
|
1097
1097
|
}
|
|
1098
1098
|
function Bl(n) {
|
|
1099
1099
|
const o = N(() => {
|
|
1100
|
-
var
|
|
1101
|
-
return (
|
|
1100
|
+
var m;
|
|
1101
|
+
return (m = n.node.margin) == null ? void 0 : m.top;
|
|
1102
1102
|
}), l = N(() => {
|
|
1103
|
-
var
|
|
1104
|
-
return (
|
|
1105
|
-
}),
|
|
1106
|
-
var
|
|
1107
|
-
return (
|
|
1108
|
-
}),
|
|
1109
|
-
var
|
|
1110
|
-
return (
|
|
1103
|
+
var m;
|
|
1104
|
+
return (m = n.node.margin) == null ? void 0 : m.left;
|
|
1105
|
+
}), h = N(() => {
|
|
1106
|
+
var m;
|
|
1107
|
+
return (m = n.node.margin) == null ? void 0 : m.bottom;
|
|
1108
|
+
}), y = N(() => {
|
|
1109
|
+
var m;
|
|
1110
|
+
return (m = n.node.margin) == null ? void 0 : m.right;
|
|
1111
1111
|
});
|
|
1112
|
-
function
|
|
1113
|
-
o.value && (
|
|
1112
|
+
function b(m) {
|
|
1113
|
+
o.value && (m.marginTop = o.value), l.value && (m.marginLeft = l.value), h.value && (m.marginBottom = h.value), y.value && (m.marginRight = y.value);
|
|
1114
1114
|
}
|
|
1115
|
-
return { marginTop: o, marginLeft: l, marginBottom:
|
|
1115
|
+
return { marginTop: o, marginLeft: l, marginBottom: h, marginRight: y, applyMargin: b };
|
|
1116
1116
|
}
|
|
1117
1117
|
function $l(n) {
|
|
1118
1118
|
const o = N(() => {
|
|
1119
|
-
var
|
|
1120
|
-
return (
|
|
1119
|
+
var m;
|
|
1120
|
+
return (m = n.node.padding) == null ? void 0 : m.top;
|
|
1121
1121
|
}), l = N(() => {
|
|
1122
|
-
var
|
|
1123
|
-
return (
|
|
1124
|
-
}),
|
|
1125
|
-
var
|
|
1126
|
-
return (
|
|
1127
|
-
}),
|
|
1128
|
-
var
|
|
1129
|
-
return (
|
|
1122
|
+
var m;
|
|
1123
|
+
return (m = n.node.padding) == null ? void 0 : m.left;
|
|
1124
|
+
}), h = N(() => {
|
|
1125
|
+
var m;
|
|
1126
|
+
return (m = n.node.padding) == null ? void 0 : m.bottom;
|
|
1127
|
+
}), y = N(() => {
|
|
1128
|
+
var m;
|
|
1129
|
+
return (m = n.node.padding) == null ? void 0 : m.right;
|
|
1130
1130
|
});
|
|
1131
|
-
function
|
|
1132
|
-
o.value && (
|
|
1131
|
+
function b(m) {
|
|
1132
|
+
o.value && (m.paddingTop = o.value), l.value && (m.paddingLeft = l.value), h.value && (m.paddingBottom = h.value), y.value && (m.paddingRight = y.value);
|
|
1133
1133
|
}
|
|
1134
|
-
return { paddingTop: o, paddingLeft: l, paddingBottom:
|
|
1134
|
+
return { paddingTop: o, paddingLeft: l, paddingBottom: h, paddingRight: y, applyPadding: b };
|
|
1135
1135
|
}
|
|
1136
1136
|
function Vl(n) {
|
|
1137
1137
|
const o = N(() => {
|
|
1138
|
-
var
|
|
1139
|
-
return (
|
|
1138
|
+
var b;
|
|
1139
|
+
return (b = n.node.border) == null ? void 0 : b.style;
|
|
1140
1140
|
}), l = N(() => {
|
|
1141
|
-
var
|
|
1142
|
-
return (
|
|
1143
|
-
}),
|
|
1144
|
-
var
|
|
1145
|
-
return (
|
|
1141
|
+
var b;
|
|
1142
|
+
return (b = n.node.border) == null ? void 0 : b.width;
|
|
1143
|
+
}), h = N(() => {
|
|
1144
|
+
var b;
|
|
1145
|
+
return (b = n.node.border) == null ? void 0 : b.color;
|
|
1146
1146
|
});
|
|
1147
|
-
function
|
|
1148
|
-
o.value && (
|
|
1147
|
+
function y(b) {
|
|
1148
|
+
o.value && (b.borderStyle = o.value), l.value && (b.borderWidth = l.value), h.value && (b.borderColor = h.value);
|
|
1149
1149
|
}
|
|
1150
|
-
return { borderStyle: o, borderWidth: l, borderColor:
|
|
1150
|
+
return { borderStyle: o, borderWidth: l, borderColor: h, applyBorder: y };
|
|
1151
1151
|
}
|
|
1152
1152
|
const Gl = /* @__PURE__ */ oe({
|
|
1153
1153
|
__name: "index",
|
|
@@ -1156,14 +1156,14 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1156
1156
|
outer: { type: Boolean }
|
|
1157
1157
|
},
|
|
1158
1158
|
setup(n) {
|
|
1159
|
-
const o = n, l = he(),
|
|
1160
|
-
const e = {}, i =
|
|
1161
|
-
return
|
|
1159
|
+
const o = n, l = he(), h = Bi(), y = wr(), b = Pr(), { applySize: m } = Yi(l, h, o), { applyMargin: O } = Bl(o), { applyPadding: R } = $l(o), { applyBorder: r } = Vl(o), t = N(() => {
|
|
1160
|
+
const e = {}, i = b.type;
|
|
1161
|
+
return y === "page" ? i === "common" ? (m(e), O(e), R(e), r(e)) : console.assert(!1) : y === "comp" && i === "common" ? (m(e), O(e), R(e), r(e)) : console.assert(!1), e;
|
|
1162
1162
|
});
|
|
1163
1163
|
return (e, i) => (G(), je("div", {
|
|
1164
1164
|
style: Ia(t.value)
|
|
1165
1165
|
}, [
|
|
1166
|
-
|
|
1166
|
+
mr(e.$slots, "default")
|
|
1167
1167
|
], 4));
|
|
1168
1168
|
}
|
|
1169
1169
|
}), Yl = [
|
|
@@ -1263,7 +1263,7 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1263
1263
|
]
|
|
1264
1264
|
}
|
|
1265
1265
|
]
|
|
1266
|
-
},
|
|
1266
|
+
}, mt = [
|
|
1267
1267
|
{
|
|
1268
1268
|
name: "x-runtime-lib.default",
|
|
1269
1269
|
ui: "word",
|
|
@@ -1304,32 +1304,32 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1304
1304
|
key: "top",
|
|
1305
1305
|
name: "x-runtime-lib.top",
|
|
1306
1306
|
ui: "multiTypes",
|
|
1307
|
-
types:
|
|
1307
|
+
types: mt,
|
|
1308
1308
|
default: ""
|
|
1309
1309
|
},
|
|
1310
1310
|
{
|
|
1311
1311
|
key: "left",
|
|
1312
1312
|
name: "x-runtime-lib.left",
|
|
1313
1313
|
ui: "multiTypes",
|
|
1314
|
-
types:
|
|
1314
|
+
types: mt,
|
|
1315
1315
|
default: ""
|
|
1316
1316
|
},
|
|
1317
1317
|
{
|
|
1318
1318
|
key: "bottom",
|
|
1319
1319
|
name: "x-runtime-lib.bottom",
|
|
1320
1320
|
ui: "multiTypes",
|
|
1321
|
-
types:
|
|
1321
|
+
types: mt,
|
|
1322
1322
|
default: ""
|
|
1323
1323
|
},
|
|
1324
1324
|
{
|
|
1325
1325
|
key: "right",
|
|
1326
1326
|
name: "x-runtime-lib.right",
|
|
1327
1327
|
ui: "multiTypes",
|
|
1328
|
-
types:
|
|
1328
|
+
types: mt,
|
|
1329
1329
|
default: ""
|
|
1330
1330
|
}
|
|
1331
1331
|
]
|
|
1332
|
-
},
|
|
1332
|
+
}, yt = [
|
|
1333
1333
|
{
|
|
1334
1334
|
name: "x-runtime-lib.default",
|
|
1335
1335
|
ui: "word",
|
|
@@ -1364,28 +1364,28 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1364
1364
|
key: "top",
|
|
1365
1365
|
name: "x-runtime-lib.top",
|
|
1366
1366
|
ui: "multiTypes",
|
|
1367
|
-
types:
|
|
1367
|
+
types: yt,
|
|
1368
1368
|
default: ""
|
|
1369
1369
|
},
|
|
1370
1370
|
{
|
|
1371
1371
|
key: "left",
|
|
1372
1372
|
name: "x-runtime-lib.left",
|
|
1373
1373
|
ui: "multiTypes",
|
|
1374
|
-
types:
|
|
1374
|
+
types: yt,
|
|
1375
1375
|
default: ""
|
|
1376
1376
|
},
|
|
1377
1377
|
{
|
|
1378
1378
|
key: "bottom",
|
|
1379
1379
|
name: "x-runtime-lib.bottom",
|
|
1380
1380
|
ui: "multiTypes",
|
|
1381
|
-
types:
|
|
1381
|
+
types: yt,
|
|
1382
1382
|
default: ""
|
|
1383
1383
|
},
|
|
1384
1384
|
{
|
|
1385
1385
|
key: "right",
|
|
1386
1386
|
name: "x-runtime-lib.right",
|
|
1387
1387
|
ui: "multiTypes",
|
|
1388
|
-
types:
|
|
1388
|
+
types: yt,
|
|
1389
1389
|
default: ""
|
|
1390
1390
|
}
|
|
1391
1391
|
]
|
|
@@ -1471,17 +1471,17 @@ function Hl(n) {
|
|
|
1471
1471
|
if (n.__esModule) return n;
|
|
1472
1472
|
var o = n.default;
|
|
1473
1473
|
if (typeof o == "function") {
|
|
1474
|
-
var l = function
|
|
1475
|
-
return this instanceof
|
|
1474
|
+
var l = function h() {
|
|
1475
|
+
return this instanceof h ? Reflect.construct(o, arguments, this.constructor) : o.apply(this, arguments);
|
|
1476
1476
|
};
|
|
1477
1477
|
l.prototype = o.prototype;
|
|
1478
1478
|
} else l = {};
|
|
1479
|
-
return Object.defineProperty(l, "__esModule", { value: !0 }), Object.keys(n).forEach(function(
|
|
1480
|
-
var
|
|
1481
|
-
Object.defineProperty(l,
|
|
1479
|
+
return Object.defineProperty(l, "__esModule", { value: !0 }), Object.keys(n).forEach(function(h) {
|
|
1480
|
+
var y = Object.getOwnPropertyDescriptor(n, h);
|
|
1481
|
+
Object.defineProperty(l, h, y.get ? y : {
|
|
1482
1482
|
enumerable: !0,
|
|
1483
1483
|
get: function() {
|
|
1484
|
-
return n[
|
|
1484
|
+
return n[h];
|
|
1485
1485
|
}
|
|
1486
1486
|
});
|
|
1487
1487
|
}), l;
|
|
@@ -1492,8 +1492,8 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1492
1492
|
default: Jl
|
|
1493
1493
|
}, Symbol.toStringTag, { value: "Module" })), ql = /* @__PURE__ */ Hl(Kl);
|
|
1494
1494
|
(function(n, o) {
|
|
1495
|
-
(function(
|
|
1496
|
-
n.exports =
|
|
1495
|
+
(function(h, y) {
|
|
1496
|
+
n.exports = y();
|
|
1497
1497
|
})(Xl, () => (
|
|
1498
1498
|
/******/
|
|
1499
1499
|
(() => {
|
|
@@ -1504,7 +1504,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1504
1504
|
!*** ./original-repo/interpreter.js ***!
|
|
1505
1505
|
\**************************************/
|
|
1506
1506
|
/***/
|
|
1507
|
-
function(
|
|
1507
|
+
function(m, O, R) {
|
|
1508
1508
|
/**
|
|
1509
1509
|
* @license
|
|
1510
1510
|
* Copyright 2013 Neil Fraser
|
|
@@ -1525,8 +1525,8 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1525
1525
|
typeof this[p] == "function" && (a = p.match(c)) && (this.stepFunctions_[a[1]] = this[p].bind(this));
|
|
1526
1526
|
this.globalScope = this.createScope(this.ast, null), this.globalObject = this.globalScope.object, this.ast = this.parse_(this.polyfills_.join(`
|
|
1527
1527
|
`), "polyfills"), this.polyfills_ = void 0, r.stripLocations_(this.ast, void 0, void 0);
|
|
1528
|
-
var
|
|
1529
|
-
|
|
1528
|
+
var v = new r.State(this.ast, this.globalScope);
|
|
1529
|
+
v.done = !1, this.stateStack = [v], this.run(), this.value = void 0, this.ast = s, v = new r.State(this.ast, this.globalScope), v.done = !1, this.stateStack.length = 0, this.stateStack[0] = v;
|
|
1530
1530
|
};
|
|
1531
1531
|
r.Completion = {
|
|
1532
1532
|
NORMAL: 0,
|
|
@@ -1746,8 +1746,8 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1746
1746
|
return function(p) {
|
|
1747
1747
|
try {
|
|
1748
1748
|
return a(p);
|
|
1749
|
-
} catch (
|
|
1750
|
-
e.throwException(e.URI_ERROR,
|
|
1749
|
+
} catch (v) {
|
|
1750
|
+
e.throwException(e.URI_ERROR, v.message);
|
|
1751
1751
|
}
|
|
1752
1752
|
};
|
|
1753
1753
|
}(u[c][0]), this.setProperty(
|
|
@@ -1794,14 +1794,14 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1794
1794
|
var a = "";
|
|
1795
1795
|
var p = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1796
1796
|
if (p) {
|
|
1797
|
-
for (var
|
|
1798
|
-
var x =
|
|
1797
|
+
for (var v = p.split(/\s*,\s*/), g = 0; g < v.length; g++) {
|
|
1798
|
+
var x = v[g];
|
|
1799
1799
|
s.test(x) || e.throwException(
|
|
1800
1800
|
e.SYNTAX_ERROR,
|
|
1801
1801
|
"Invalid function argument: " + x
|
|
1802
1802
|
);
|
|
1803
1803
|
}
|
|
1804
|
-
p =
|
|
1804
|
+
p = v.join(", ");
|
|
1805
1805
|
}
|
|
1806
1806
|
try {
|
|
1807
1807
|
var T = e.parse_(
|
|
@@ -1846,11 +1846,11 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1846
1846
|
0,
|
|
1847
1847
|
r.READONLY_NONENUMERABLE_DESCRIPTOR
|
|
1848
1848
|
), this.FUNCTION_PROTO.class = "Function", i = function(c, a, p) {
|
|
1849
|
-
var
|
|
1850
|
-
|
|
1849
|
+
var v = e.stateStack[e.stateStack.length - 1];
|
|
1850
|
+
v.func_ = c, v.funcThis_ = a, v.arguments_ = [], p != null && (p instanceof r.Object ? v.arguments_ = Array.from(p.properties) : e.throwException(
|
|
1851
1851
|
e.TYPE_ERROR,
|
|
1852
1852
|
"CreateListFromArrayLike called on non-object"
|
|
1853
|
-
)),
|
|
1853
|
+
)), v.doneExec_ = !1;
|
|
1854
1854
|
}, this.setNativeFunctionPrototype(this.FUNCTION, "apply", i), this.polyfills_.push(
|
|
1855
1855
|
/* POLYFILL START */
|
|
1856
1856
|
// Flatten the apply args list to remove any inheritance or getter functions.
|
|
@@ -2041,8 +2041,8 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2041
2041
|
e.TYPE_ERROR,
|
|
2042
2042
|
"Object.getOwnPropertyDescriptor called on non-object: " + c
|
|
2043
2043
|
), a = String(a), a in c.properties) {
|
|
2044
|
-
var p = Object.getOwnPropertyDescriptor(c.properties, a),
|
|
2045
|
-
return
|
|
2044
|
+
var p = Object.getOwnPropertyDescriptor(c.properties, a), v = c.getter[a], g = c.setter[a], x = e.createObjectProto(e.OBJECT_PROTO);
|
|
2045
|
+
return v || g ? (e.setProperty(x, "get", v), e.setProperty(x, "set", g)) : (e.setProperty(
|
|
2046
2046
|
x,
|
|
2047
2047
|
"value",
|
|
2048
2048
|
/** @type {!Interpreter.Value} */
|
|
@@ -2621,106 +2621,106 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2621
2621
|
s[u],
|
|
2622
2622
|
String.prototype[s[u]]
|
|
2623
2623
|
);
|
|
2624
|
-
i = function(a, p,
|
|
2625
|
-
p = e.pseudoToNative(p),
|
|
2624
|
+
i = function(a, p, v) {
|
|
2625
|
+
p = e.pseudoToNative(p), v = e.pseudoToNative(v);
|
|
2626
2626
|
try {
|
|
2627
2627
|
return String(this).localeCompare(
|
|
2628
2628
|
a,
|
|
2629
2629
|
/** @type {?} */
|
|
2630
2630
|
p,
|
|
2631
2631
|
/** @type {?} */
|
|
2632
|
-
|
|
2632
|
+
v
|
|
2633
2633
|
);
|
|
2634
|
-
} catch (
|
|
2634
|
+
} catch (g) {
|
|
2635
2635
|
e.throwException(
|
|
2636
2636
|
e.ERROR,
|
|
2637
|
-
"localeCompare: " +
|
|
2637
|
+
"localeCompare: " + g.message
|
|
2638
2638
|
);
|
|
2639
2639
|
}
|
|
2640
|
-
}, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a, p,
|
|
2641
|
-
var
|
|
2642
|
-
if (p = p ? Number(p) : void 0, e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a,
|
|
2640
|
+
}, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a, p, v) {
|
|
2641
|
+
var g = String(this);
|
|
2642
|
+
if (p = p ? Number(p) : void 0, e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, v), e.REGEXP_MODE === 2)) {
|
|
2643
2643
|
if (r.vm) {
|
|
2644
2644
|
var x = {
|
|
2645
|
-
string:
|
|
2645
|
+
string: g,
|
|
2646
2646
|
separator: a,
|
|
2647
2647
|
limit: p
|
|
2648
|
-
}, T = "string.split(separator, limit)", L = e.vmCall(T, x, a,
|
|
2649
|
-
L !== r.REGEXP_TIMEOUT &&
|
|
2648
|
+
}, T = "string.split(separator, limit)", L = e.vmCall(T, x, a, v);
|
|
2649
|
+
L !== r.REGEXP_TIMEOUT && v(e.nativeToPseudo(L));
|
|
2650
2650
|
} else {
|
|
2651
2651
|
var S = e.createWorker(), A = e.regExpTimeout(
|
|
2652
2652
|
a,
|
|
2653
2653
|
S,
|
|
2654
|
-
|
|
2654
|
+
v
|
|
2655
2655
|
);
|
|
2656
2656
|
S.onmessage = function(H) {
|
|
2657
|
-
clearTimeout(A),
|
|
2658
|
-
}, S.postMessage(["split",
|
|
2657
|
+
clearTimeout(A), v(e.nativeToPseudo(H.data));
|
|
2658
|
+
}, S.postMessage(["split", g, a, p]);
|
|
2659
2659
|
}
|
|
2660
2660
|
return;
|
|
2661
2661
|
}
|
|
2662
|
-
var L =
|
|
2663
|
-
|
|
2662
|
+
var L = g.split(a, p);
|
|
2663
|
+
v(e.nativeToPseudo(L));
|
|
2664
2664
|
}, this.setAsyncFunctionPrototype(this.STRING, "split", i), i = function(a, p) {
|
|
2665
|
-
var
|
|
2665
|
+
var v = String(this);
|
|
2666
2666
|
if (a = e.isa(a, e.REGEXP) ? a.data : new RegExp(a), e.maybeThrowRegExp(a, p), e.REGEXP_MODE === 2) {
|
|
2667
2667
|
if (r.vm) {
|
|
2668
|
-
var
|
|
2669
|
-
string:
|
|
2668
|
+
var g = {
|
|
2669
|
+
string: v,
|
|
2670
2670
|
regexp: a
|
|
2671
|
-
}, x = "string.match(regexp)", A = e.vmCall(x,
|
|
2671
|
+
}, x = "string.match(regexp)", A = e.vmCall(x, g, a, p);
|
|
2672
2672
|
A !== r.REGEXP_TIMEOUT && p(A && e.matchToPseudo_(A));
|
|
2673
2673
|
} else {
|
|
2674
2674
|
var T = e.createWorker(), S = e.regExpTimeout(a, T, p);
|
|
2675
2675
|
T.onmessage = function(L) {
|
|
2676
2676
|
clearTimeout(S), p(L.data && e.matchToPseudo_(L.data));
|
|
2677
|
-
}, T.postMessage(["match",
|
|
2677
|
+
}, T.postMessage(["match", v, a]);
|
|
2678
2678
|
}
|
|
2679
2679
|
return;
|
|
2680
2680
|
}
|
|
2681
|
-
var A =
|
|
2681
|
+
var A = v.match(a);
|
|
2682
2682
|
p(A && e.matchToPseudo_(A));
|
|
2683
2683
|
}, this.setAsyncFunctionPrototype(this.STRING, "match", i), i = function(a, p) {
|
|
2684
|
-
var
|
|
2684
|
+
var v = String(this);
|
|
2685
2685
|
if (e.isa(a, e.REGEXP) ? a = a.data : a = new RegExp(a), e.maybeThrowRegExp(a, p), e.REGEXP_MODE === 2) {
|
|
2686
2686
|
if (r.vm) {
|
|
2687
|
-
var
|
|
2688
|
-
string:
|
|
2687
|
+
var g = {
|
|
2688
|
+
string: v,
|
|
2689
2689
|
regexp: a
|
|
2690
|
-
}, x = "string.search(regexp)", T = e.vmCall(x,
|
|
2690
|
+
}, x = "string.search(regexp)", T = e.vmCall(x, g, a, p);
|
|
2691
2691
|
T !== r.REGEXP_TIMEOUT && p(T);
|
|
2692
2692
|
} else {
|
|
2693
2693
|
var S = e.createWorker(), A = e.regExpTimeout(a, S, p);
|
|
2694
2694
|
S.onmessage = function(L) {
|
|
2695
2695
|
clearTimeout(A), p(L.data);
|
|
2696
|
-
}, S.postMessage(["search",
|
|
2696
|
+
}, S.postMessage(["search", v, a]);
|
|
2697
2697
|
}
|
|
2698
2698
|
return;
|
|
2699
2699
|
}
|
|
2700
|
-
p(
|
|
2701
|
-
}, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a, p,
|
|
2702
|
-
var
|
|
2703
|
-
if (p = String(p), e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a,
|
|
2700
|
+
p(v.search(a));
|
|
2701
|
+
}, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a, p, v) {
|
|
2702
|
+
var g = String(this);
|
|
2703
|
+
if (p = String(p), e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, v), e.REGEXP_MODE === 2)) {
|
|
2704
2704
|
if (r.vm) {
|
|
2705
2705
|
var x = {
|
|
2706
|
-
string:
|
|
2706
|
+
string: g,
|
|
2707
2707
|
substr: a,
|
|
2708
2708
|
newSubstr: p
|
|
2709
|
-
}, T = "string.replace(substr, newSubstr)", S = e.vmCall(T, x, a,
|
|
2710
|
-
S !== r.REGEXP_TIMEOUT &&
|
|
2709
|
+
}, T = "string.replace(substr, newSubstr)", S = e.vmCall(T, x, a, v);
|
|
2710
|
+
S !== r.REGEXP_TIMEOUT && v(S);
|
|
2711
2711
|
} else {
|
|
2712
2712
|
var A = e.createWorker(), L = e.regExpTimeout(
|
|
2713
2713
|
a,
|
|
2714
2714
|
A,
|
|
2715
|
-
|
|
2715
|
+
v
|
|
2716
2716
|
);
|
|
2717
2717
|
A.onmessage = function(H) {
|
|
2718
|
-
clearTimeout(L),
|
|
2719
|
-
}, A.postMessage(["replace",
|
|
2718
|
+
clearTimeout(L), v(H.data);
|
|
2719
|
+
}, A.postMessage(["replace", g, a, p]);
|
|
2720
2720
|
}
|
|
2721
2721
|
return;
|
|
2722
2722
|
}
|
|
2723
|
-
|
|
2723
|
+
v(g.replace(a, p));
|
|
2724
2724
|
}, this.setAsyncFunctionPrototype(this.STRING, "replace", i), this.polyfills_.push(
|
|
2725
2725
|
/* POLYFILL START */
|
|
2726
2726
|
"(function() {",
|
|
@@ -2826,10 +2826,10 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2826
2826
|
/** @type {?} */
|
|
2827
2827
|
p
|
|
2828
2828
|
);
|
|
2829
|
-
} catch (
|
|
2829
|
+
} catch (v) {
|
|
2830
2830
|
e.throwException(
|
|
2831
2831
|
e.ERROR,
|
|
2832
|
-
"toLocaleString: " +
|
|
2832
|
+
"toLocaleString: " + v.message
|
|
2833
2833
|
);
|
|
2834
2834
|
}
|
|
2835
2835
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toLocaleString", i);
|
|
@@ -2838,10 +2838,10 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2838
2838
|
i = function(a, p) {
|
|
2839
2839
|
if (!e.calledWithNew())
|
|
2840
2840
|
return r.nativeGlobal.Date();
|
|
2841
|
-
var
|
|
2841
|
+
var v = [null].concat(Array.from(arguments));
|
|
2842
2842
|
return this.data = new (Function.prototype.bind.apply(
|
|
2843
2843
|
r.nativeGlobal.Date,
|
|
2844
|
-
|
|
2844
|
+
v
|
|
2845
2845
|
))(), this;
|
|
2846
2846
|
}, this.DATE = this.createNativeFunction(i, !0), this.DATE_PROTO = this.DATE.properties.prototype, this.setProperty(
|
|
2847
2847
|
t,
|
|
@@ -2916,9 +2916,9 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2916
2916
|
e.TYPE_ERROR,
|
|
2917
2917
|
c + " not called on a Date"
|
|
2918
2918
|
);
|
|
2919
|
-
for (var
|
|
2920
|
-
|
|
2921
|
-
return p[c].apply(p,
|
|
2919
|
+
for (var v = [], g = 0; g < arguments.length; g++)
|
|
2920
|
+
v[g] = e.pseudoToNative(arguments[g]);
|
|
2921
|
+
return p[c].apply(p, v);
|
|
2922
2922
|
};
|
|
2923
2923
|
}(s[u]), this.setNativeFunctionPrototype(this.DATE, s[u], i);
|
|
2924
2924
|
i = function() {
|
|
@@ -2947,8 +2947,8 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2947
2947
|
);
|
|
2948
2948
|
try {
|
|
2949
2949
|
var p = new r.nativeGlobal.RegExp(u, c);
|
|
2950
|
-
} catch (
|
|
2951
|
-
e.throwException(e.SYNTAX_ERROR,
|
|
2950
|
+
} catch (v) {
|
|
2951
|
+
e.throwException(e.SYNTAX_ERROR, v.message);
|
|
2952
2952
|
}
|
|
2953
2953
|
return e.populateRegExp(a, p), a;
|
|
2954
2954
|
}, this.REGEXP = this.createNativeFunction(i, !0), this.REGEXP_PROTO = this.REGEXP.properties.prototype, this.setProperty(
|
|
@@ -2992,13 +2992,13 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2992
2992
|
var p = {
|
|
2993
2993
|
string: u,
|
|
2994
2994
|
regexp: a
|
|
2995
|
-
},
|
|
2995
|
+
}, v = "regexp.exec(string)", S = e.vmCall(v, p, a, c);
|
|
2996
2996
|
S !== r.REGEXP_TIMEOUT && (e.setProperty(this, "lastIndex", a.lastIndex), c(e.matchToPseudo_(S)));
|
|
2997
2997
|
} else {
|
|
2998
|
-
var
|
|
2999
|
-
|
|
2998
|
+
var g = e.createWorker(), x = e.regExpTimeout(a, g, c), T = this;
|
|
2999
|
+
g.onmessage = function(A) {
|
|
3000
3000
|
clearTimeout(x), e.setProperty(T, "lastIndex", A.data[1]), c(e.matchToPseudo_(A.data[0]));
|
|
3001
|
-
},
|
|
3001
|
+
}, g.postMessage(["exec", a, a.lastIndex, u]);
|
|
3002
3002
|
}
|
|
3003
3003
|
return;
|
|
3004
3004
|
}
|
|
@@ -3141,13 +3141,13 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3141
3141
|
) : a && a.class === "Array" ? (a = i.pseudoToNative(a), a = a.filter(function(x) {
|
|
3142
3142
|
return typeof x == "string" || typeof x == "number";
|
|
3143
3143
|
})) : a = null, typeof p != "string" && typeof p != "number" && (p = void 0);
|
|
3144
|
-
var
|
|
3144
|
+
var v = i.pseudoToNative(c);
|
|
3145
3145
|
try {
|
|
3146
|
-
var
|
|
3146
|
+
var g = JSON.stringify(v, a, p);
|
|
3147
3147
|
} catch (x) {
|
|
3148
3148
|
i.throwException(i.TYPE_ERROR, x.message);
|
|
3149
3149
|
}
|
|
3150
|
-
return
|
|
3150
|
+
return g;
|
|
3151
3151
|
}, this.setProperty(
|
|
3152
3152
|
s,
|
|
3153
3153
|
"stringify",
|
|
@@ -3207,17 +3207,17 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3207
3207
|
}
|
|
3208
3208
|
c.loc && (!i.length || c.type === "CallExpression") && i.push({ datumLoc: c.loc });
|
|
3209
3209
|
}
|
|
3210
|
-
for (var p = String(this.getProperty(t, "name")),
|
|
3210
|
+
for (var p = String(this.getProperty(t, "name")), v = String(this.getProperty(t, "message")), g = p + ": " + v + `
|
|
3211
3211
|
`, s = 0; s < i.length; s++) {
|
|
3212
3212
|
var x = i[s].datumLoc, T = i[s].datumName, S = x.source + ":" + x.start.line + ":" + x.start.column;
|
|
3213
|
-
T ?
|
|
3214
|
-
` :
|
|
3213
|
+
T ? g += " at " + T + " (" + S + `)
|
|
3214
|
+
` : g += " at " + S + `
|
|
3215
3215
|
`;
|
|
3216
3216
|
}
|
|
3217
3217
|
this.setProperty(
|
|
3218
3218
|
t,
|
|
3219
3219
|
"stack",
|
|
3220
|
-
|
|
3220
|
+
g.trim(),
|
|
3221
3221
|
r.NONENUMERABLE_DESCRIPTOR
|
|
3222
3222
|
);
|
|
3223
3223
|
}, r.prototype.createWorker = function() {
|
|
@@ -3357,8 +3357,8 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3357
3357
|
return a.pseudoToNative(L);
|
|
3358
3358
|
}), A = t.apply(a, S);
|
|
3359
3359
|
return a.nativeToPseudo(A);
|
|
3360
|
-
},
|
|
3361
|
-
return i.pseudo.push(
|
|
3360
|
+
}, v = Object.getOwnPropertyDescriptor(t, "prototype"), g = this.createNativeFunction(p, !!v);
|
|
3361
|
+
return i.pseudo.push(g), g;
|
|
3362
3362
|
}
|
|
3363
3363
|
var x;
|
|
3364
3364
|
Array.isArray(t) ? x = this.createArray() : x = this.createObjectProto(this.OBJECT_PROTO), i.pseudo.push(x);
|
|
@@ -3391,10 +3391,10 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3391
3391
|
var a = this.isa(t, this.ARRAY) ? [] : {};
|
|
3392
3392
|
i.native.push(a);
|
|
3393
3393
|
var p;
|
|
3394
|
-
for (var
|
|
3395
|
-
p = this.pseudoToNative(t.properties[
|
|
3394
|
+
for (var v in t.properties)
|
|
3395
|
+
p = this.pseudoToNative(t.properties[v], i), Object.defineProperty(
|
|
3396
3396
|
a,
|
|
3397
|
-
|
|
3397
|
+
v,
|
|
3398
3398
|
{
|
|
3399
3399
|
value: p,
|
|
3400
3400
|
writable: !0,
|
|
@@ -3489,10 +3489,10 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3489
3489
|
return;
|
|
3490
3490
|
}
|
|
3491
3491
|
if (s) {
|
|
3492
|
-
var
|
|
3493
|
-
"get" in s && s.get && (t.getter[e] = s.get,
|
|
3492
|
+
var v = {};
|
|
3493
|
+
"get" in s && s.get && (t.getter[e] = s.get, v.get = this.setProperty.placeholderGet_), "set" in s && s.set && (t.setter[e] = s.set, v.set = this.setProperty.placeholderSet_), "configurable" in s && (v.configurable = s.configurable), "enumerable" in s && (v.enumerable = s.enumerable), "writable" in s && (v.writable = s.writable, delete t.getter[e], delete t.setter[e]), "value" in s ? (v.value = s.value, delete t.getter[e], delete t.setter[e]) : i !== r.VALUE_IN_DESCRIPTOR && (v.value = i, delete t.getter[e], delete t.setter[e]);
|
|
3494
3494
|
try {
|
|
3495
|
-
Object.defineProperty(t.properties, e,
|
|
3495
|
+
Object.defineProperty(t.properties, e, v);
|
|
3496
3496
|
} catch {
|
|
3497
3497
|
this.throwException(this.TYPE_ERROR, "Cannot redefine property: " + e);
|
|
3498
3498
|
}
|
|
@@ -3500,14 +3500,14 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3500
3500
|
} else {
|
|
3501
3501
|
if (i === r.VALUE_IN_DESCRIPTOR)
|
|
3502
3502
|
throw ReferenceError("Value not specified");
|
|
3503
|
-
for (var
|
|
3504
|
-
if (
|
|
3505
|
-
|
|
3503
|
+
for (var g = t; !(e in g.properties); )
|
|
3504
|
+
if (g = this.getPrototype(g), !g) {
|
|
3505
|
+
g = t;
|
|
3506
3506
|
break;
|
|
3507
3507
|
}
|
|
3508
|
-
if (
|
|
3509
|
-
return this.setterStep_ = !0,
|
|
3510
|
-
if (
|
|
3508
|
+
if (g.setter && g.setter[e])
|
|
3509
|
+
return this.setterStep_ = !0, g.setter[e];
|
|
3510
|
+
if (g.getter && g.getter[e])
|
|
3511
3511
|
u && this.throwException(this.TYPE_ERROR, "Cannot set property '" + e + "' of object '" + t + "' which only has a getter");
|
|
3512
3512
|
else
|
|
3513
3513
|
try {
|
|
@@ -3700,8 +3700,8 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3700
3700
|
SyntaxError,
|
|
3701
3701
|
TypeError,
|
|
3702
3702
|
URIError
|
|
3703
|
-
}, p = String(this.getProperty(e, "name")),
|
|
3704
|
-
c =
|
|
3703
|
+
}, p = String(this.getProperty(e, "name")), v = this.getProperty(e, "message").valueOf(), g = a[p] || Error;
|
|
3704
|
+
c = g(v), c.stack = String(this.getProperty(e, "stack"));
|
|
3705
3705
|
} else
|
|
3706
3706
|
c = String(e);
|
|
3707
3707
|
throw this.value = c, c;
|
|
@@ -3737,21 +3737,21 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3737
3737
|
}
|
|
3738
3738
|
return "???";
|
|
3739
3739
|
}, r.prototype.createTask_ = function(t, e) {
|
|
3740
|
-
var i = this.stateStack[this.stateStack.length - 1], s = Array.from(e), u = s.shift(), c = Math.max(Number(s.shift() || 0), 0), a = this.newNode(), p,
|
|
3740
|
+
var i = this.stateStack[this.stateStack.length - 1], s = Array.from(e), u = s.shift(), c = Math.max(Number(s.shift() || 0), 0), a = this.newNode(), p, v, g;
|
|
3741
3741
|
if (u instanceof r.Object && u.class === "Function")
|
|
3742
|
-
|
|
3742
|
+
v = u, a.type = "CallExpression", p = i.scope;
|
|
3743
3743
|
else {
|
|
3744
3744
|
try {
|
|
3745
|
-
|
|
3745
|
+
g = this.parse_(String(u), "taskCode" + this.taskCodeNumber_++);
|
|
3746
3746
|
} catch (L) {
|
|
3747
3747
|
this.throwException(this.SYNTAX_ERROR, "Invalid code: " + L.message);
|
|
3748
3748
|
}
|
|
3749
|
-
a.type = "EvalProgram_", a.body =
|
|
3749
|
+
a.type = "EvalProgram_", a.body = g.body;
|
|
3750
3750
|
var x = i.node.arguments[0], T = x ? x.start : void 0, S = x ? x.end : void 0;
|
|
3751
3751
|
r.stripLocations_(a, T, S), p = this.globalScope, s.length = 0;
|
|
3752
3752
|
}
|
|
3753
3753
|
var A = new r.Task(
|
|
3754
|
-
|
|
3754
|
+
v,
|
|
3755
3755
|
s,
|
|
3756
3756
|
p,
|
|
3757
3757
|
a,
|
|
@@ -3844,20 +3844,20 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3844
3844
|
var t = r.toStringCycles_;
|
|
3845
3845
|
if (t.indexOf(this) !== -1)
|
|
3846
3846
|
return "[object Error]";
|
|
3847
|
-
var a, p,
|
|
3847
|
+
var a, p, v = this;
|
|
3848
3848
|
do
|
|
3849
|
-
if ("name" in
|
|
3850
|
-
a =
|
|
3849
|
+
if ("name" in v.properties) {
|
|
3850
|
+
a = v.properties.name;
|
|
3851
3851
|
break;
|
|
3852
3852
|
}
|
|
3853
|
-
while (
|
|
3854
|
-
|
|
3853
|
+
while (v = v.proto);
|
|
3854
|
+
v = this;
|
|
3855
3855
|
do
|
|
3856
|
-
if ("message" in
|
|
3857
|
-
p =
|
|
3856
|
+
if ("message" in v.properties) {
|
|
3857
|
+
p = v.properties.message;
|
|
3858
3858
|
break;
|
|
3859
3859
|
}
|
|
3860
|
-
while (
|
|
3860
|
+
while (v = v.proto);
|
|
3861
3861
|
t.push(this);
|
|
3862
3862
|
try {
|
|
3863
3863
|
a = a && String(a), p = p && String(p);
|
|
@@ -3947,9 +3947,9 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3947
3947
|
default:
|
|
3948
3948
|
throw SyntaxError("Unknown assignment expression: " + i.operator);
|
|
3949
3949
|
}
|
|
3950
|
-
var
|
|
3951
|
-
if (
|
|
3952
|
-
return e.doneSetter_ = !0, e.setterValue_ = a, this.createSetter_(
|
|
3950
|
+
var v = this.setValue(e.leftReference_, a);
|
|
3951
|
+
if (v)
|
|
3952
|
+
return e.doneSetter_ = !0, e.setterValue_ = a, this.createSetter_(v, e.leftReference_, a);
|
|
3953
3953
|
t.pop(), t[t.length - 1].value = a;
|
|
3954
3954
|
}, r.prototype.stepBinaryExpression = function(t, e, i) {
|
|
3955
3955
|
if (!e.doneLeft_)
|
|
@@ -4087,11 +4087,11 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4087
4087
|
);
|
|
4088
4088
|
var a = u.node;
|
|
4089
4089
|
if (a) {
|
|
4090
|
-
for (var p = this.createScope(a.body, u.parentScope),
|
|
4091
|
-
this.setProperty(
|
|
4092
|
-
this.setProperty(p.object, "arguments",
|
|
4093
|
-
for (var
|
|
4094
|
-
var x = a.params[
|
|
4090
|
+
for (var p = this.createScope(a.body, u.parentScope), v = this.createArray(), g = 0; g < e.arguments_.length; g++)
|
|
4091
|
+
this.setProperty(v, g, e.arguments_[g]);
|
|
4092
|
+
this.setProperty(p.object, "arguments", v);
|
|
4093
|
+
for (var g = 0; g < a.params.length; g++) {
|
|
4094
|
+
var x = a.params[g].name, T = e.arguments_.length > g ? e.arguments_[g] : void 0;
|
|
4095
4095
|
this.setProperty(p.object, x, T);
|
|
4096
4096
|
}
|
|
4097
4097
|
return p.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), this.setProperty(
|
|
@@ -4121,12 +4121,12 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4121
4121
|
} else if (u.nativeFunc)
|
|
4122
4122
|
e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), e.value = u.nativeFunc.apply(e.funcThis_, e.arguments_);
|
|
4123
4123
|
else if (u.asyncFunc) {
|
|
4124
|
-
var H = this, Ge = function(
|
|
4125
|
-
e.value =
|
|
4126
|
-
}, re = u.asyncFunc.length - 1,
|
|
4124
|
+
var H = this, Ge = function(Ee) {
|
|
4125
|
+
e.value = Ee, H.paused_ = !1;
|
|
4126
|
+
}, re = u.asyncFunc.length - 1, Pe = e.arguments_.concat(
|
|
4127
4127
|
new Array(re)
|
|
4128
4128
|
).slice(0, re);
|
|
4129
|
-
|
|
4129
|
+
Pe.push(Ge), this.paused_ = !0, e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), u.asyncFunc.apply(e.funcThis_, Pe);
|
|
4130
4130
|
return;
|
|
4131
4131
|
} else
|
|
4132
4132
|
this.throwException(
|
|
@@ -4349,7 +4349,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4349
4349
|
for (var a in e.properties_) {
|
|
4350
4350
|
var p = e.properties_[a];
|
|
4351
4351
|
if ("get" in p || "set" in p) {
|
|
4352
|
-
var
|
|
4352
|
+
var v = {
|
|
4353
4353
|
configurable: !0,
|
|
4354
4354
|
enumerable: !0,
|
|
4355
4355
|
get: p.get,
|
|
@@ -4359,7 +4359,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4359
4359
|
e.object_,
|
|
4360
4360
|
a,
|
|
4361
4361
|
r.VALUE_IN_DESCRIPTOR,
|
|
4362
|
-
|
|
4362
|
+
v
|
|
4363
4363
|
);
|
|
4364
4364
|
} else
|
|
4365
4365
|
this.setProperty(e.object_, a, p.init);
|
|
@@ -4498,9 +4498,9 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4498
4498
|
a = c - 1;
|
|
4499
4499
|
else
|
|
4500
4500
|
throw SyntaxError("Unknown update expression: " + i.operator);
|
|
4501
|
-
var p = i.prefix ? a : c,
|
|
4502
|
-
if (
|
|
4503
|
-
return e.doneSetter_ = !0, e.setterValue_ = p, this.createSetter_(
|
|
4501
|
+
var p = i.prefix ? a : c, v = this.setValue(e.leftSide_, a);
|
|
4502
|
+
if (v)
|
|
4503
|
+
return e.doneSetter_ = !0, e.setterValue_ = p, this.createSetter_(v, e.leftSide_, a);
|
|
4504
4504
|
t.pop(), t[t.length - 1].value = p;
|
|
4505
4505
|
}, r.prototype.stepVariableDeclaration = function(t, e, i) {
|
|
4506
4506
|
var s = i.declarations, u = e.n_ || 0, c = s[u];
|
|
@@ -4516,7 +4516,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4516
4516
|
t.pop();
|
|
4517
4517
|
var s = this.createSpecialScope(e.scope, e.value);
|
|
4518
4518
|
return new r.State(i.body, s);
|
|
4519
|
-
}, r.prototype.stepWhileStatement = r.prototype.stepDoWhileStatement, r.nativeGlobal.Interpreter = r, r.prototype.step = r.prototype.step, r.prototype.run = r.prototype.run, r.prototype.appendCode = r.prototype.appendCode, r.prototype.createObject = r.prototype.createObject, r.prototype.createObjectProto = r.prototype.createObjectProto, r.prototype.createAsyncFunction = r.prototype.createAsyncFunction, r.prototype.createNativeFunction = r.prototype.createNativeFunction, r.prototype.getProperty = r.prototype.getProperty, r.prototype.setProperty = r.prototype.setProperty, r.prototype.getStatus = r.prototype.getStatus, r.prototype.nativeToPseudo = r.prototype.nativeToPseudo, r.prototype.pseudoToNative = r.prototype.pseudoToNative, r.prototype.getGlobalScope = r.prototype.getGlobalScope, r.prototype.setGlobalScope = r.prototype.setGlobalScope, r.prototype.getStateStack = r.prototype.getStateStack, r.prototype.setStateStack = r.prototype.setStateStack, r.VALUE_IN_DESCRIPTOR = r.VALUE_IN_DESCRIPTOR, r.Status = r.Status,
|
|
4519
|
+
}, r.prototype.stepWhileStatement = r.prototype.stepDoWhileStatement, r.nativeGlobal.Interpreter = r, r.prototype.step = r.prototype.step, r.prototype.run = r.prototype.run, r.prototype.appendCode = r.prototype.appendCode, r.prototype.createObject = r.prototype.createObject, r.prototype.createObjectProto = r.prototype.createObjectProto, r.prototype.createAsyncFunction = r.prototype.createAsyncFunction, r.prototype.createNativeFunction = r.prototype.createNativeFunction, r.prototype.getProperty = r.prototype.getProperty, r.prototype.setProperty = r.prototype.setProperty, r.prototype.getStatus = r.prototype.getStatus, r.prototype.nativeToPseudo = r.prototype.nativeToPseudo, r.prototype.pseudoToNative = r.prototype.pseudoToNative, r.prototype.getGlobalScope = r.prototype.getGlobalScope, r.prototype.setGlobalScope = r.prototype.setGlobalScope, r.prototype.getStateStack = r.prototype.getStateStack, r.prototype.setStateStack = r.prototype.setStateStack, r.VALUE_IN_DESCRIPTOR = r.VALUE_IN_DESCRIPTOR, r.Status = r.Status, m.exports = {
|
|
4520
4520
|
Interpreter: r
|
|
4521
4521
|
};
|
|
4522
4522
|
}
|
|
@@ -4527,7 +4527,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4527
4527
|
!*** ./original-repo/acorn.js ***!
|
|
4528
4528
|
\********************************/
|
|
4529
4529
|
/***/
|
|
4530
|
-
function(
|
|
4530
|
+
function(m, O) {
|
|
4531
4531
|
(function(R, r) {
|
|
4532
4532
|
return r(O);
|
|
4533
4533
|
})(typeof globalThis > "u" ? this || window : globalThis, function(R) {
|
|
@@ -4601,23 +4601,23 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4601
4601
|
i = r.sourceFile;
|
|
4602
4602
|
}
|
|
4603
4603
|
var c = function(f, d) {
|
|
4604
|
-
for (var
|
|
4605
|
-
ct.lastIndex =
|
|
4604
|
+
for (var _ = 1, E = 0; ; ) {
|
|
4605
|
+
ct.lastIndex = E;
|
|
4606
4606
|
var C = ct.exec(f);
|
|
4607
4607
|
if (C && C.index < d)
|
|
4608
|
-
++
|
|
4608
|
+
++_, E = C.index + C[0].length;
|
|
4609
4609
|
else
|
|
4610
4610
|
break;
|
|
4611
4611
|
}
|
|
4612
|
-
return { line:
|
|
4613
|
-
}, a = 0, p = 0,
|
|
4612
|
+
return { line: _, column: d - E };
|
|
4613
|
+
}, a = 0, p = 0, v = 0, g, x, T, S, A, L, H, Ge = 0, re = 0, Pe, Ee, $, q;
|
|
4614
4614
|
function I(f, d) {
|
|
4615
|
-
var
|
|
4616
|
-
d += " (" +
|
|
4617
|
-
var
|
|
4618
|
-
throw
|
|
4615
|
+
var _ = c(t, f);
|
|
4616
|
+
d += " (" + _.line + ":" + _.column + ")";
|
|
4617
|
+
var E = new SyntaxError(d);
|
|
4618
|
+
throw E.pos = f, E.loc = _, E.raisedAt = a, E;
|
|
4619
4619
|
}
|
|
4620
|
-
var Hi = [], at = { type: "num" }, kr = { type: "regexp" }, Nt = { type: "string" },
|
|
4620
|
+
var Hi = [], at = { type: "num" }, kr = { type: "regexp" }, Nt = { type: "string" }, Ce = { type: "name" }, xt = { type: "eof" }, St = { keyword: "break" }, wt = { keyword: "case", beforeExpr: !0 }, Ar = { keyword: "catch" }, Ir = { keyword: "continue" }, Dr = { keyword: "debugger" }, Lr = { keyword: "default" }, Mr = { keyword: "do", isLoop: !0 }, Fr = { keyword: "else", beforeExpr: !0 }, Ur = { keyword: "finally" }, jr = { keyword: "for", isLoop: !0 }, Pt = { keyword: "function" }, Br = { keyword: "if" }, $r = { keyword: "return", beforeExpr: !0 }, Ct = { keyword: "switch" }, Vr = { keyword: "throw", beforeExpr: !0 }, Gr = { keyword: "try" }, kt = { keyword: "var" }, At = { keyword: "while", isLoop: !0 }, Yr = { keyword: "with" }, zr = { keyword: "new", beforeExpr: !0 }, Xr = { keyword: "this" }, Wr = { keyword: "null", atomValue: null }, Hr = { keyword: "true", atomValue: !0 }, Jr = { keyword: "false", atomValue: !1 }, ot = { keyword: "in", binop: 7, beforeExpr: !0 }, Ji = {
|
|
4621
4621
|
break: St,
|
|
4622
4622
|
case: wt,
|
|
4623
4623
|
catch: Ar,
|
|
@@ -4647,12 +4647,12 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4647
4647
|
typeof: { keyword: "typeof", prefix: !0, beforeExpr: !0 },
|
|
4648
4648
|
void: { keyword: "void", prefix: !0, beforeExpr: !0 },
|
|
4649
4649
|
delete: { keyword: "delete", prefix: !0, beforeExpr: !0 }
|
|
4650
|
-
}, It = { type: "[", beforeExpr: !0 }, Dt = { type: "]" }, Ye = { type: "{", beforeExpr: !0 },
|
|
4650
|
+
}, It = { type: "[", beforeExpr: !0 }, Dt = { type: "]" }, Ye = { type: "{", beforeExpr: !0 }, ke = { type: "}" }, se = { type: "(", beforeExpr: !0 }, ae = { type: ")" }, ve = { type: ",", beforeExpr: !0 }, le = { type: ";", beforeExpr: !0 }, ze = { type: ":", beforeExpr: !0 }, Kr = { type: "." }, qr = { type: "?", beforeExpr: !0 }, Zr = { binop: 10, beforeExpr: !0 }, Qr = { isAssign: !0, beforeExpr: !0 }, Re = { isAssign: !0, beforeExpr: !0 }, Ki = { postfix: !0, prefix: !0, isUpdate: !0 }, en = { prefix: !0, beforeExpr: !0 }, tn = { binop: 1, beforeExpr: !0 }, rn = { binop: 2, beforeExpr: !0 }, qi = { binop: 3, beforeExpr: !0 }, Zi = { binop: 4, beforeExpr: !0 }, Qi = { binop: 5, beforeExpr: !0 }, ea = { binop: 6, beforeExpr: !0 }, ta = { binop: 7, beforeExpr: !0 }, ra = { binop: 8, beforeExpr: !0 }, na = { binop: 9, prefix: !0, beforeExpr: !0 }, ia = { binop: 10, beforeExpr: !0 };
|
|
4651
4651
|
function ut(f) {
|
|
4652
|
-
for (var d = f.split(" "),
|
|
4653
|
-
|
|
4652
|
+
for (var d = f.split(" "), _ = /* @__PURE__ */ Object.create(null), E = 0; E < d.length; E++)
|
|
4653
|
+
_[d[E]] = !0;
|
|
4654
4654
|
return function(C) {
|
|
4655
|
-
return
|
|
4655
|
+
return _[C] || !1;
|
|
4656
4656
|
};
|
|
4657
4657
|
}
|
|
4658
4658
|
var aa = ut("class enum extends super const export import"), nn = ut("implements interface let package private protected public static yield"), st = ut("eval arguments"), oa = ut("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"), ua = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, an = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", sa = "̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_", on = new RegExp("[" + an + "]"), la = new RegExp("[" + an + sa + "]"), lt = /[\n\r\u2028\u2029]/, ct = /\r\n|[\n\r\u2028\u2029]/g, ft = function(f) {
|
|
@@ -4660,41 +4660,41 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4660
4660
|
}, un = function(f) {
|
|
4661
4661
|
return f < 48 ? f === 36 : f < 58 ? !0 : f < 65 ? !1 : f < 91 ? !0 : f < 97 ? f === 95 : f < 123 ? !0 : f >= 170 && la.test(String.fromCharCode(f));
|
|
4662
4662
|
};
|
|
4663
|
-
function
|
|
4663
|
+
function Oe() {
|
|
4664
4664
|
this.line = L, this.column = a - H;
|
|
4665
4665
|
}
|
|
4666
4666
|
function ca() {
|
|
4667
4667
|
L = 1, a = H = 0, A = !0, Xe();
|
|
4668
4668
|
}
|
|
4669
4669
|
function Y(f, d) {
|
|
4670
|
-
|
|
4670
|
+
v = a, r.locations && (x = new Oe()), T = f, Xe(), S = d, A = f.beforeExpr;
|
|
4671
4671
|
}
|
|
4672
4672
|
function fa() {
|
|
4673
|
-
var f = r.onComment && r.locations && new
|
|
4674
|
-
if (
|
|
4673
|
+
var f = r.onComment && r.locations && new Oe(), d = a, _ = t.indexOf("*/", a += 2);
|
|
4674
|
+
if (_ === -1 && I(a - 2, "Unterminated comment"), a = _ + 2, r.locations) {
|
|
4675
4675
|
ct.lastIndex = d;
|
|
4676
|
-
for (var
|
|
4677
|
-
++L, H =
|
|
4676
|
+
for (var E; (E = ct.exec(t)) && E.index < a; )
|
|
4677
|
+
++L, H = E.index + E[0].length;
|
|
4678
4678
|
}
|
|
4679
4679
|
r.onComment && r.onComment(
|
|
4680
4680
|
!0,
|
|
4681
|
-
t.slice(d + 2,
|
|
4681
|
+
t.slice(d + 2, _),
|
|
4682
4682
|
d,
|
|
4683
4683
|
a,
|
|
4684
4684
|
f,
|
|
4685
|
-
r.locations && new
|
|
4685
|
+
r.locations && new Oe()
|
|
4686
4686
|
);
|
|
4687
4687
|
}
|
|
4688
4688
|
function Lt() {
|
|
4689
|
-
for (var f = a, d = r.onComment && r.locations && new
|
|
4690
|
-
++a,
|
|
4689
|
+
for (var f = a, d = r.onComment && r.locations && new Oe(), _ = t.charCodeAt(a += 2); a < e && _ !== 10 && _ !== 13 && _ !== 8232 && _ !== 8233; )
|
|
4690
|
+
++a, _ = t.charCodeAt(a);
|
|
4691
4691
|
r.onComment && r.onComment(
|
|
4692
4692
|
!1,
|
|
4693
4693
|
t.slice(f + 2, a),
|
|
4694
4694
|
f,
|
|
4695
4695
|
a,
|
|
4696
4696
|
d,
|
|
4697
|
-
r.locations && new
|
|
4697
|
+
r.locations && new Oe()
|
|
4698
4698
|
);
|
|
4699
4699
|
}
|
|
4700
4700
|
function Xe() {
|
|
@@ -4731,41 +4731,41 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4731
4731
|
}
|
|
4732
4732
|
function da() {
|
|
4733
4733
|
var f = t.charCodeAt(a + 1);
|
|
4734
|
-
A ? (++a, sn()) : f === 61 ? z(
|
|
4734
|
+
A ? (++a, sn()) : f === 61 ? z(Re, 2) : z(Zr, 1);
|
|
4735
4735
|
}
|
|
4736
4736
|
function ha() {
|
|
4737
4737
|
var f = t.charCodeAt(a + 1);
|
|
4738
|
-
f === 61 ? z(
|
|
4738
|
+
f === 61 ? z(Re, 2) : z(ia, 1);
|
|
4739
4739
|
}
|
|
4740
4740
|
function va(f) {
|
|
4741
4741
|
var d = t.charCodeAt(a + 1);
|
|
4742
|
-
d === f ? z(f === 124 ? tn : rn, 2) : d === 61 ? z(
|
|
4742
|
+
d === f ? z(f === 124 ? tn : rn, 2) : d === 61 ? z(Re, 2) : z(f === 124 ? qi : Qi, 1);
|
|
4743
4743
|
}
|
|
4744
|
-
function
|
|
4744
|
+
function ma() {
|
|
4745
4745
|
var f = t.charCodeAt(a + 1);
|
|
4746
|
-
f === 61 ? z(
|
|
4746
|
+
f === 61 ? z(Re, 2) : z(Zi, 1);
|
|
4747
4747
|
}
|
|
4748
|
-
function
|
|
4748
|
+
function ya(f) {
|
|
4749
4749
|
var d = t.charCodeAt(a + 1);
|
|
4750
4750
|
if (d === f) {
|
|
4751
4751
|
if (d === 45 && t.charCodeAt(a + 2) === 62 && lt.test(t.slice(re, a))) {
|
|
4752
|
-
a += 3, Lt(), Xe(),
|
|
4752
|
+
a += 3, Lt(), Xe(), Ae();
|
|
4753
4753
|
return;
|
|
4754
4754
|
}
|
|
4755
4755
|
z(Ki, 2);
|
|
4756
|
-
} else d === 61 ? z(
|
|
4756
|
+
} else d === 61 ? z(Re, 2) : z(na, 1);
|
|
4757
4757
|
}
|
|
4758
4758
|
function _a(f) {
|
|
4759
|
-
var d = t.charCodeAt(a + 1),
|
|
4759
|
+
var d = t.charCodeAt(a + 1), _ = 1;
|
|
4760
4760
|
if (d === f) {
|
|
4761
|
-
|
|
4761
|
+
_ = f === 62 && t.charCodeAt(a + 2) === 62 ? 3 : 2, t.charCodeAt(a + _) === 61 ? z(Re, _ + 1) : z(ra, _);
|
|
4762
4762
|
return;
|
|
4763
4763
|
}
|
|
4764
4764
|
if (d === 33 && f === 60 && t.charCodeAt(a + 2) === 45 && t.charCodeAt(a + 3) === 45) {
|
|
4765
|
-
a += 4, Lt(), Xe(),
|
|
4765
|
+
a += 4, Lt(), Xe(), Ae();
|
|
4766
4766
|
return;
|
|
4767
4767
|
}
|
|
4768
|
-
d === 61 && (
|
|
4768
|
+
d === 61 && (_ = t.charCodeAt(a + 2) === 61 ? 3 : 2), z(ta, _);
|
|
4769
4769
|
}
|
|
4770
4770
|
function ba(f) {
|
|
4771
4771
|
var d = t.charCodeAt(a + 1);
|
|
@@ -4790,7 +4790,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4790
4790
|
case 123:
|
|
4791
4791
|
return ++a, Y(Ye);
|
|
4792
4792
|
case 125:
|
|
4793
|
-
return ++a, Y(
|
|
4793
|
+
return ++a, Y(ke);
|
|
4794
4794
|
case 58:
|
|
4795
4795
|
return ++a, Y(ze);
|
|
4796
4796
|
case 63:
|
|
@@ -4820,10 +4820,10 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4820
4820
|
case 38:
|
|
4821
4821
|
return va(f);
|
|
4822
4822
|
case 94:
|
|
4823
|
-
return
|
|
4823
|
+
return ma();
|
|
4824
4824
|
case 43:
|
|
4825
4825
|
case 45:
|
|
4826
|
-
return
|
|
4826
|
+
return ya(f);
|
|
4827
4827
|
case 60:
|
|
4828
4828
|
case 62:
|
|
4829
4829
|
return _a(f);
|
|
@@ -4835,59 +4835,59 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4835
4835
|
}
|
|
4836
4836
|
return !1;
|
|
4837
4837
|
}
|
|
4838
|
-
function
|
|
4839
|
-
if (f ? a = p + 1 : p = a, r.locations && (
|
|
4838
|
+
function Ae(f) {
|
|
4839
|
+
if (f ? a = p + 1 : p = a, r.locations && (g = new Oe()), f) return sn();
|
|
4840
4840
|
if (a >= e) return Y(xt);
|
|
4841
4841
|
var d = t.charCodeAt(a);
|
|
4842
4842
|
if (ft(d) || d === 92)
|
|
4843
4843
|
return fn();
|
|
4844
|
-
var
|
|
4845
|
-
if (
|
|
4846
|
-
var
|
|
4847
|
-
if (
|
|
4844
|
+
var _ = ga(d);
|
|
4845
|
+
if (_ === !1) {
|
|
4846
|
+
var E = String.fromCharCode(d);
|
|
4847
|
+
if (E === "\\" || on.test(E))
|
|
4848
4848
|
return fn();
|
|
4849
|
-
I(a, "Unexpected character '" +
|
|
4849
|
+
I(a, "Unexpected character '" + E + "'");
|
|
4850
4850
|
}
|
|
4851
4851
|
}
|
|
4852
4852
|
function z(f, d) {
|
|
4853
|
-
var
|
|
4854
|
-
a += d, Y(f,
|
|
4853
|
+
var _ = t.slice(a, a + d);
|
|
4854
|
+
a += d, Y(f, _);
|
|
4855
4855
|
}
|
|
4856
4856
|
function sn() {
|
|
4857
|
-
for (var f, d,
|
|
4858
|
-
a >= e && I(
|
|
4859
|
-
var
|
|
4860
|
-
if (lt.test(
|
|
4857
|
+
for (var f, d, _ = a; ; ) {
|
|
4858
|
+
a >= e && I(_, "Unterminated regexp");
|
|
4859
|
+
var E = t.charAt(a);
|
|
4860
|
+
if (lt.test(E) && I(_, "Unterminated regexp"), f)
|
|
4861
4861
|
f = !1;
|
|
4862
4862
|
else {
|
|
4863
|
-
if (
|
|
4863
|
+
if (E === "[")
|
|
4864
4864
|
d = !0;
|
|
4865
|
-
else if (
|
|
4865
|
+
else if (E === "]" && d)
|
|
4866
4866
|
d = !1;
|
|
4867
|
-
else if (
|
|
4867
|
+
else if (E === "/" && !d)
|
|
4868
4868
|
break;
|
|
4869
|
-
f =
|
|
4869
|
+
f = E === "\\";
|
|
4870
4870
|
}
|
|
4871
4871
|
++a;
|
|
4872
4872
|
}
|
|
4873
|
-
var C = t.slice(
|
|
4873
|
+
var C = t.slice(_, a);
|
|
4874
4874
|
++a;
|
|
4875
4875
|
var w = cn();
|
|
4876
|
-
w && !/^[gmi]*$/.test(w) && I(
|
|
4876
|
+
w && !/^[gmi]*$/.test(w) && I(_, "Invalid regexp flag");
|
|
4877
4877
|
try {
|
|
4878
4878
|
var k = new RegExp(C, w);
|
|
4879
4879
|
} catch (j) {
|
|
4880
|
-
throw j instanceof SyntaxError && I(
|
|
4880
|
+
throw j instanceof SyntaxError && I(_, j.message), j;
|
|
4881
4881
|
}
|
|
4882
4882
|
Y(kr, k);
|
|
4883
4883
|
}
|
|
4884
4884
|
function We(f, d) {
|
|
4885
|
-
for (var
|
|
4885
|
+
for (var _ = a, E = 0, C = d === void 0 ? 1 / 0 : d, w = 0; w < C; ++w) {
|
|
4886
4886
|
var k = t.charCodeAt(a), j;
|
|
4887
4887
|
if (k >= 97 ? j = k - 97 + 10 : k >= 65 ? j = k - 65 + 10 : k >= 48 && k <= 57 ? j = k - 48 : j = 1 / 0, j >= f) break;
|
|
4888
|
-
++a,
|
|
4888
|
+
++a, E = E * f + j;
|
|
4889
4889
|
}
|
|
4890
|
-
return a ===
|
|
4890
|
+
return a === _ || d !== void 0 && a - _ !== d ? null : E;
|
|
4891
4891
|
}
|
|
4892
4892
|
function Ea() {
|
|
4893
4893
|
a += 2;
|
|
@@ -4895,31 +4895,31 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4895
4895
|
f === null && I(p + 2, "Expected hexadecimal number"), ft(t.charCodeAt(a)) && I(a, "Identifier directly after number"), Y(at, f);
|
|
4896
4896
|
}
|
|
4897
4897
|
function ln(f) {
|
|
4898
|
-
var d = a,
|
|
4899
|
-
!f && We(10) === null && I(d, "Invalid number"), t.charCodeAt(a) === 46 && (++a, We(10),
|
|
4898
|
+
var d = a, _ = !1, E = t.charCodeAt(a) === 48;
|
|
4899
|
+
!f && We(10) === null && I(d, "Invalid number"), t.charCodeAt(a) === 46 && (++a, We(10), _ = !0);
|
|
4900
4900
|
var C = t.charCodeAt(a);
|
|
4901
|
-
(C === 69 || C === 101) && (C = t.charCodeAt(++a), (C === 43 || C === 45) && ++a, We(10) === null && I(d, "Invalid number"),
|
|
4901
|
+
(C === 69 || C === 101) && (C = t.charCodeAt(++a), (C === 43 || C === 45) && ++a, We(10) === null && I(d, "Invalid number"), _ = !0), ft(t.charCodeAt(a)) && I(a, "Identifier directly after number");
|
|
4902
4902
|
var w = t.slice(d, a), k;
|
|
4903
|
-
|
|
4903
|
+
_ ? k = parseFloat(w) : !E || w.length === 1 ? k = parseInt(w, 10) : /[89]/.test(w) || q ? I(d, "Invalid number") : k = parseInt(w, 8), Y(at, k);
|
|
4904
4904
|
}
|
|
4905
4905
|
function Ra(f) {
|
|
4906
4906
|
a++;
|
|
4907
4907
|
for (var d = ""; ; ) {
|
|
4908
4908
|
a >= e && I(p, "Unterminated string constant");
|
|
4909
|
-
var
|
|
4910
|
-
if (
|
|
4909
|
+
var _ = t.charCodeAt(a);
|
|
4910
|
+
if (_ === f) {
|
|
4911
4911
|
++a, Y(Nt, d);
|
|
4912
4912
|
return;
|
|
4913
4913
|
}
|
|
4914
|
-
if (
|
|
4915
|
-
|
|
4916
|
-
var
|
|
4917
|
-
for (
|
|
4918
|
-
|
|
4919
|
-
if (
|
|
4920
|
-
q && I(a - 2, "Octal literal in strict mode"), d += String.fromCharCode(parseInt(
|
|
4914
|
+
if (_ === 92) {
|
|
4915
|
+
_ = t.charCodeAt(++a);
|
|
4916
|
+
var E = /^[0-7]+/.exec(t.slice(a, a + 3));
|
|
4917
|
+
for (E && (E = E[0]); E && parseInt(E, 8) > 255; )
|
|
4918
|
+
E = E.slice(0, -1);
|
|
4919
|
+
if (E === "0" && (E = null), ++a, E)
|
|
4920
|
+
q && I(a - 2, "Octal literal in strict mode"), d += String.fromCharCode(parseInt(E, 8)), a += E.length - 1;
|
|
4921
4921
|
else
|
|
4922
|
-
switch (
|
|
4922
|
+
switch (_) {
|
|
4923
4923
|
case 110:
|
|
4924
4924
|
d += `
|
|
4925
4925
|
`;
|
|
@@ -4957,11 +4957,11 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4957
4957
|
r.locations && (H = a, ++L);
|
|
4958
4958
|
break;
|
|
4959
4959
|
default:
|
|
4960
|
-
d += String.fromCharCode(
|
|
4960
|
+
d += String.fromCharCode(_);
|
|
4961
4961
|
break;
|
|
4962
4962
|
}
|
|
4963
4963
|
} else
|
|
4964
|
-
(
|
|
4964
|
+
(_ === 13 || _ === 10 || _ === 8232 || _ === 8233) && I(p, "Unterminated string constant"), d += String.fromCharCode(_), ++a;
|
|
4965
4965
|
}
|
|
4966
4966
|
}
|
|
4967
4967
|
function pt(f) {
|
|
@@ -4969,53 +4969,53 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4969
4969
|
return d === null && I(p, "Bad character escape sequence"), /** @type {number} */
|
|
4970
4970
|
d;
|
|
4971
4971
|
}
|
|
4972
|
-
var
|
|
4972
|
+
var Ie;
|
|
4973
4973
|
function cn() {
|
|
4974
|
-
|
|
4975
|
-
for (var f, d = !0,
|
|
4976
|
-
var
|
|
4977
|
-
if (un(
|
|
4978
|
-
|
|
4979
|
-
else if (
|
|
4980
|
-
|
|
4974
|
+
Ie = !1;
|
|
4975
|
+
for (var f, d = !0, _ = a; ; ) {
|
|
4976
|
+
var E = t.charCodeAt(a);
|
|
4977
|
+
if (un(E))
|
|
4978
|
+
Ie && (f += t.charAt(a)), ++a;
|
|
4979
|
+
else if (E === 92) {
|
|
4980
|
+
Ie || (f = t.slice(_, a)), Ie = !0, t.charCodeAt(++a) !== 117 && I(a, "Expecting Unicode escape sequence \\uXXXX"), ++a;
|
|
4981
4981
|
var C = pt(4), w = String.fromCharCode(C);
|
|
4982
4982
|
w || I(a - 1, "Invalid Unicode escape"), (d ? ft(C) : un(C)) || I(a - 4, "Invalid Unicode escape"), f += w;
|
|
4983
4983
|
} else
|
|
4984
4984
|
break;
|
|
4985
4985
|
d = !1;
|
|
4986
4986
|
}
|
|
4987
|
-
return
|
|
4987
|
+
return Ie ? f : t.slice(_, a);
|
|
4988
4988
|
}
|
|
4989
4989
|
function fn() {
|
|
4990
|
-
var f = cn(), d =
|
|
4991
|
-
!
|
|
4990
|
+
var f = cn(), d = Ce;
|
|
4991
|
+
!Ie && oa(f) && (d = Ji[f]), Y(d, f);
|
|
4992
4992
|
}
|
|
4993
4993
|
function D() {
|
|
4994
|
-
Ge = p, re =
|
|
4994
|
+
Ge = p, re = v, Pe = x, Ae();
|
|
4995
4995
|
}
|
|
4996
4996
|
function Mt(f) {
|
|
4997
4997
|
if (q = f, a = p, r.locations)
|
|
4998
4998
|
for (; a < H; )
|
|
4999
4999
|
H = t.lastIndexOf(`
|
|
5000
5000
|
`, H - 2) + 1, --L;
|
|
5001
|
-
Xe(),
|
|
5001
|
+
Xe(), Ae();
|
|
5002
5002
|
}
|
|
5003
5003
|
function pn() {
|
|
5004
5004
|
this.type = null, this.start = p, this.end = null;
|
|
5005
5005
|
}
|
|
5006
5006
|
function dn() {
|
|
5007
|
-
this.start =
|
|
5007
|
+
this.start = g, this.end = null, i && (this.source = i);
|
|
5008
5008
|
}
|
|
5009
5009
|
function X() {
|
|
5010
5010
|
var f = new pn();
|
|
5011
5011
|
return r.locations && (f.loc = new dn()), r.directSourceFile && (f.sourceFile = r.directSourceFile), r.ranges && (f.range = [p, 0]), f;
|
|
5012
5012
|
}
|
|
5013
|
-
function
|
|
5013
|
+
function me(f) {
|
|
5014
5014
|
var d = new pn();
|
|
5015
5015
|
return d.start = f.start, r.locations && (d.loc = new dn(), d.loc.start = f.loc.start), r.ranges && (d.range = [f.range[0], 0]), d;
|
|
5016
5016
|
}
|
|
5017
5017
|
function P(f, d) {
|
|
5018
|
-
return f.type = d, f.end = re, r.locations && (f.loc.end =
|
|
5018
|
+
return f.type = d, f.end = re, r.locations && (f.loc.end = Pe), r.ranges && (f.range[1] = re), f;
|
|
5019
5019
|
}
|
|
5020
5020
|
function Ft(f) {
|
|
5021
5021
|
return f.type === "ExpressionStatement" && f.expression.type === "Literal" && f.expression.value === "use strict";
|
|
@@ -5024,9 +5024,9 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5024
5024
|
return T === f ? (D(), !0) : !1;
|
|
5025
5025
|
}
|
|
5026
5026
|
function dt() {
|
|
5027
|
-
return !r.strictSemicolons && (T === xt || T ===
|
|
5027
|
+
return !r.strictSemicolons && (T === xt || T === ke || lt.test(t.slice(re, p)));
|
|
5028
5028
|
}
|
|
5029
|
-
function
|
|
5029
|
+
function Te() {
|
|
5030
5030
|
!B(le) && !dt() && ce();
|
|
5031
5031
|
}
|
|
5032
5032
|
function V(f) {
|
|
@@ -5039,34 +5039,34 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5039
5039
|
f.type !== "Identifier" && f.type !== "MemberExpression" && I(f.start, "Assigning to rvalue"), q && f.type === "Identifier" && st(f.name) && I(f.start, "Assigning to " + f.name + " in strict mode");
|
|
5040
5040
|
}
|
|
5041
5041
|
function Oa(f) {
|
|
5042
|
-
Ge = re = a, r.locations && (
|
|
5043
|
-
var d = f || X(),
|
|
5042
|
+
Ge = re = a, r.locations && (Pe = new Oe()), Ee = q = !1, $ = [], Ae();
|
|
5043
|
+
var d = f || X(), _ = !0;
|
|
5044
5044
|
for (f || (d.body = []); T !== xt; ) {
|
|
5045
|
-
var
|
|
5046
|
-
d.body.push(
|
|
5045
|
+
var E = ne();
|
|
5046
|
+
d.body.push(E), _ && Ft(E) && Mt(!0), _ = !1;
|
|
5047
5047
|
}
|
|
5048
5048
|
return P(d, "Program");
|
|
5049
5049
|
}
|
|
5050
5050
|
var Ut = { kind: "loop" }, Ta = { kind: "switch" };
|
|
5051
5051
|
function ne() {
|
|
5052
|
-
(T === Zr || T ===
|
|
5052
|
+
(T === Zr || T === Re && S === "/=") && Ae(!0);
|
|
5053
5053
|
var f = T, d = X();
|
|
5054
5054
|
switch (f) {
|
|
5055
5055
|
case St:
|
|
5056
5056
|
case Ir:
|
|
5057
5057
|
D();
|
|
5058
|
-
var
|
|
5059
|
-
B(le) || dt() ? d.label = null : T !==
|
|
5060
|
-
for (var
|
|
5061
|
-
var C = $[
|
|
5062
|
-
if ((d.label === null || C.name === d.label.name) && (C.kind !== null && (
|
|
5058
|
+
var _ = f === St;
|
|
5059
|
+
B(le) || dt() ? d.label = null : T !== Ce ? ce() : (d.label = ye(), Te());
|
|
5060
|
+
for (var E = 0; E < $.length; ++E) {
|
|
5061
|
+
var C = $[E];
|
|
5062
|
+
if ((d.label === null || C.name === d.label.name) && (C.kind !== null && (_ || C.kind === "loop") || d.label && _))
|
|
5063
5063
|
break;
|
|
5064
5064
|
}
|
|
5065
|
-
return
|
|
5065
|
+
return E === $.length && I(d.start, "Unsyntactic " + f.keyword), P(d, _ ? "BreakStatement" : "ContinueStatement");
|
|
5066
5066
|
case Dr:
|
|
5067
|
-
return D(),
|
|
5067
|
+
return D(), Te(), P(d, "DebuggerStatement");
|
|
5068
5068
|
case Mr:
|
|
5069
|
-
return D(), $.push(Ut), d.body = ne(), $.pop(), V(At), d.test = He(),
|
|
5069
|
+
return D(), $.push(Ut), d.body = ne(), $.pop(), V(At), d.test = He(), Te(), P(d, "DoWhileStatement");
|
|
5070
5070
|
case jr:
|
|
5071
5071
|
if (D(), $.push(Ut), V(se), T === le) return jt(d, null);
|
|
5072
5072
|
if (T === kt) {
|
|
@@ -5080,10 +5080,10 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5080
5080
|
case Br:
|
|
5081
5081
|
return D(), d.test = He(), d.consequent = ne(), d.alternate = B(Fr) ? ne() : null, P(d, "IfStatement");
|
|
5082
5082
|
case $r:
|
|
5083
|
-
return !
|
|
5083
|
+
return !Ee && !r.allowReturnOutsideFunction && I(p, "'return' outside of function"), D(), B(le) || dt() ? d.argument = null : (d.argument = W(), Te()), P(d, "ReturnStatement");
|
|
5084
5084
|
case Ct:
|
|
5085
5085
|
D(), d.discriminant = He(), d.cases = [], V(Ye), $.push(Ta);
|
|
5086
|
-
for (var k, j; T !==
|
|
5086
|
+
for (var k, j; T !== ke; )
|
|
5087
5087
|
if (T === wt || T === Lr) {
|
|
5088
5088
|
var qe = T === wt;
|
|
5089
5089
|
k && P(k, "SwitchCase"), d.cases.push(k = X()), k.consequent = [], D(), qe ? k.test = W() : (j && I(Ge, "Multiple default clauses"), j = !0, k.test = null), V(ze);
|
|
@@ -5091,15 +5091,15 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5091
5091
|
k || ce(), k.consequent.push(ne());
|
|
5092
5092
|
return k && P(k, "SwitchCase"), D(), $.pop(), P(d, "SwitchStatement");
|
|
5093
5093
|
case Vr:
|
|
5094
|
-
return D(), lt.test(t.slice(re, p)) && I(re, "Illegal newline after throw"), d.argument = W(),
|
|
5094
|
+
return D(), lt.test(t.slice(re, p)) && I(re, "Illegal newline after throw"), d.argument = W(), Te(), P(d, "ThrowStatement");
|
|
5095
5095
|
case Gr:
|
|
5096
5096
|
if (D(), d.block = Je(), d.handler = null, T === Ar) {
|
|
5097
|
-
var
|
|
5098
|
-
D(), V(se),
|
|
5097
|
+
var De = X();
|
|
5098
|
+
D(), V(se), De.param = ye(), q && st(De.param.name) && I(De.param.start, "Binding " + De.param.name + " in strict mode"), V(ae), De.body = Je(), d.handler = P(De, "CatchClause");
|
|
5099
5099
|
}
|
|
5100
5100
|
return d.finalizer = B(Ur) ? Je() : null, !d.handler && !d.finalizer && I(d.start, "Missing catch or finally clause"), P(d, "TryStatement");
|
|
5101
5101
|
case kt:
|
|
5102
|
-
return D(), vn(d),
|
|
5102
|
+
return D(), vn(d), Te(), P(d, "VariableDeclaration");
|
|
5103
5103
|
case At:
|
|
5104
5104
|
return D(), d.test = He(), $.push(Ut), d.body = ne(), $.pop(), P(d, "WhileStatement");
|
|
5105
5105
|
case Yr:
|
|
@@ -5110,13 +5110,13 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5110
5110
|
return D(), P(d, "EmptyStatement");
|
|
5111
5111
|
default:
|
|
5112
5112
|
var Xt = S, vt = W();
|
|
5113
|
-
if (f ===
|
|
5114
|
-
for (var
|
|
5115
|
-
$[
|
|
5113
|
+
if (f === Ce && vt.type === "Identifier" && B(ze)) {
|
|
5114
|
+
for (var E = 0; E < $.length; ++E)
|
|
5115
|
+
$[E].name === Xt && I(vt.start, "Label '" + Xt + "' is already declared");
|
|
5116
5116
|
var Ca = T.isLoop ? "loop" : T === Ct ? "switch" : null;
|
|
5117
5117
|
return $.push({ name: Xt, kind: Ca }), d.body = ne(), $.pop(), d.label = vt, P(d, "LabeledStatement");
|
|
5118
5118
|
} else
|
|
5119
|
-
return d.expression = vt,
|
|
5119
|
+
return d.expression = vt, Te(), P(d, "ExpressionStatement");
|
|
5120
5120
|
}
|
|
5121
5121
|
}
|
|
5122
5122
|
function He() {
|
|
@@ -5125,12 +5125,12 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5125
5125
|
return V(ae), f;
|
|
5126
5126
|
}
|
|
5127
5127
|
function Je(f) {
|
|
5128
|
-
var d = X(),
|
|
5129
|
-
for (d.body = [], V(Ye); !B(
|
|
5128
|
+
var d = X(), _ = !0, E = !1, C;
|
|
5129
|
+
for (d.body = [], V(Ye); !B(ke); ) {
|
|
5130
5130
|
var w = ne();
|
|
5131
|
-
d.body.push(w),
|
|
5131
|
+
d.body.push(w), _ && f && Ft(w) && (C = E, Mt(E = !0)), _ = !1;
|
|
5132
5132
|
}
|
|
5133
|
-
return
|
|
5133
|
+
return E && !C && Mt(!1), P(d, "BlockStatement");
|
|
5134
5134
|
}
|
|
5135
5135
|
function jt(f, d) {
|
|
5136
5136
|
return f.init = d, V(le), f.test = T === le ? null : W(), V(le), f.update = T === ae ? null : W(), V(ae), f.body = ne(), $.pop(), P(f, "ForStatement");
|
|
@@ -5140,47 +5140,47 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5140
5140
|
}
|
|
5141
5141
|
function vn(f, d) {
|
|
5142
5142
|
for (f.declarations = [], f.kind = "var"; ; ) {
|
|
5143
|
-
var
|
|
5144
|
-
if (
|
|
5143
|
+
var _ = X();
|
|
5144
|
+
if (_.id = ye(), q && st(_.id.name) && I(_.id.start, "Binding " + _.id.name + " in strict mode"), _.init = B(Qr) ? W(!0, d) : null, f.declarations.push(P(_, "VariableDeclarator")), !B(ve)) break;
|
|
5145
5145
|
}
|
|
5146
5146
|
}
|
|
5147
5147
|
function W(f, d) {
|
|
5148
|
-
var
|
|
5148
|
+
var _ = Bt(d);
|
|
5149
5149
|
if (!f && T === ve) {
|
|
5150
|
-
var
|
|
5151
|
-
for (
|
|
5152
|
-
return P(
|
|
5150
|
+
var E = me(_);
|
|
5151
|
+
for (E.expressions = [_]; B(ve); ) E.expressions.push(Bt(d));
|
|
5152
|
+
return P(E, "SequenceExpression");
|
|
5153
5153
|
}
|
|
5154
|
-
return
|
|
5154
|
+
return _;
|
|
5155
5155
|
}
|
|
5156
5156
|
function Bt(f) {
|
|
5157
5157
|
var d = Na(f);
|
|
5158
5158
|
if (T.isAssign) {
|
|
5159
|
-
var
|
|
5160
|
-
return
|
|
5159
|
+
var _ = me(d);
|
|
5160
|
+
return _.operator = S, _.left = d, D(), _.right = Bt(f), ht(d), P(_, "AssignmentExpression");
|
|
5161
5161
|
}
|
|
5162
5162
|
return d;
|
|
5163
5163
|
}
|
|
5164
5164
|
function Na(f) {
|
|
5165
5165
|
var d = xa(f);
|
|
5166
5166
|
if (B(qr)) {
|
|
5167
|
-
var
|
|
5168
|
-
return
|
|
5167
|
+
var _ = me(d);
|
|
5168
|
+
return _.test = d, _.consequent = W(!0), V(ze), _.alternate = W(!0, f), P(_, "ConditionalExpression");
|
|
5169
5169
|
}
|
|
5170
5170
|
return d;
|
|
5171
5171
|
}
|
|
5172
5172
|
function xa(f) {
|
|
5173
5173
|
return $t(Vt(), -1, f);
|
|
5174
5174
|
}
|
|
5175
|
-
function $t(f, d,
|
|
5176
|
-
var
|
|
5177
|
-
if (
|
|
5178
|
-
var C =
|
|
5175
|
+
function $t(f, d, _) {
|
|
5176
|
+
var E = T.binop;
|
|
5177
|
+
if (E !== null && (!_ || T !== ot) && E > d) {
|
|
5178
|
+
var C = me(f);
|
|
5179
5179
|
C.left = f, C.operator = S;
|
|
5180
5180
|
var w = T;
|
|
5181
|
-
D(), C.right = $t(Vt(),
|
|
5181
|
+
D(), C.right = $t(Vt(), E, _);
|
|
5182
5182
|
var k = P(C, w === tn || w === rn ? "LogicalExpression" : "BinaryExpression");
|
|
5183
|
-
return $t(k, d,
|
|
5183
|
+
return $t(k, d, _);
|
|
5184
5184
|
}
|
|
5185
5185
|
return f;
|
|
5186
5186
|
}
|
|
@@ -5189,39 +5189,39 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5189
5189
|
var f = X(), d = T.isUpdate;
|
|
5190
5190
|
return f.operator = S, f.prefix = !0, A = !0, D(), f.argument = Vt(), d ? ht(f.argument) : q && f.operator === "delete" && f.argument.type === "Identifier" && I(f.start, "Deleting local variable in strict mode"), P(f, d ? "UpdateExpression" : "UnaryExpression");
|
|
5191
5191
|
}
|
|
5192
|
-
for (var
|
|
5193
|
-
var f =
|
|
5194
|
-
f.operator = S, f.prefix = !1, f.argument =
|
|
5192
|
+
for (var _ = Sa(); T.postfix && !dt(); ) {
|
|
5193
|
+
var f = me(_);
|
|
5194
|
+
f.operator = S, f.prefix = !1, f.argument = _, ht(_), D(), _ = P(f, "UpdateExpression");
|
|
5195
5195
|
}
|
|
5196
|
-
return
|
|
5196
|
+
return _;
|
|
5197
5197
|
}
|
|
5198
5198
|
function Sa() {
|
|
5199
5199
|
return Ke(Gt());
|
|
5200
5200
|
}
|
|
5201
5201
|
function Ke(f, d) {
|
|
5202
|
-
var
|
|
5203
|
-
return B(Kr) ? (
|
|
5202
|
+
var _;
|
|
5203
|
+
return B(Kr) ? (_ = me(f), _.object = f, _.property = ye(!0), _.computed = !1, Ke(P(_, "MemberExpression"), d)) : B(It) ? (_ = me(f), _.object = f, _.property = W(), _.computed = !0, V(Dt), Ke(P(_, "MemberExpression"), d)) : !d && B(se) ? (_ = me(f), _.callee = f, _.arguments = zt(ae, !1), Ke(P(_, "CallExpression"), d)) : f;
|
|
5204
5204
|
}
|
|
5205
5205
|
function Gt() {
|
|
5206
5206
|
var f;
|
|
5207
5207
|
switch (T) {
|
|
5208
5208
|
case Xr:
|
|
5209
5209
|
return f = X(), D(), P(f, "ThisExpression");
|
|
5210
|
-
case
|
|
5211
|
-
return
|
|
5210
|
+
case Ce:
|
|
5211
|
+
return ye();
|
|
5212
5212
|
case at:
|
|
5213
5213
|
case Nt:
|
|
5214
5214
|
case kr:
|
|
5215
|
-
return f = X(), f.value = S, f.raw = t.slice(p,
|
|
5215
|
+
return f = X(), f.value = S, f.raw = t.slice(p, v), D(), P(f, "Literal");
|
|
5216
5216
|
case Wr:
|
|
5217
5217
|
case Hr:
|
|
5218
5218
|
case Jr:
|
|
5219
5219
|
return f = X(), f.value = T.atomValue, f.raw = T.keyword, D(), P(f, "Literal");
|
|
5220
5220
|
case se:
|
|
5221
|
-
var d =
|
|
5221
|
+
var d = g, _ = p;
|
|
5222
5222
|
D();
|
|
5223
|
-
var
|
|
5224
|
-
return
|
|
5223
|
+
var E = W();
|
|
5224
|
+
return E.start = _, E.end = v, r.locations && (E.loc.start = d, E.loc.end = x), r.ranges && (E.range = [_, v]), V(ae), E;
|
|
5225
5225
|
case It:
|
|
5226
5226
|
return f = X(), D(), f.elements = zt(Dt, !0, !0), P(f, "ArrayExpression");
|
|
5227
5227
|
case Ye:
|
|
@@ -5238,35 +5238,35 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5238
5238
|
return D(), f.callee = Ke(Gt(), !0), f.arguments = B(se) ? zt(ae, !1) : Hi, P(f, "NewExpression");
|
|
5239
5239
|
}
|
|
5240
5240
|
function Pa() {
|
|
5241
|
-
var f = X(), d = !0,
|
|
5242
|
-
for (f.properties = [], D(); !B(
|
|
5241
|
+
var f = X(), d = !0, _ = !1;
|
|
5242
|
+
for (f.properties = [], D(); !B(ke); ) {
|
|
5243
5243
|
if (d)
|
|
5244
5244
|
d = !1;
|
|
5245
|
-
else if (V(ve), r.allowTrailingCommas && B(
|
|
5245
|
+
else if (V(ve), r.allowTrailingCommas && B(ke))
|
|
5246
5246
|
break;
|
|
5247
|
-
var
|
|
5248
|
-
if (B(ze) ? (
|
|
5247
|
+
var E = { key: mn() }, C = !1, w;
|
|
5248
|
+
if (B(ze) ? (E.value = W(!0), w = E.kind = "init") : E.key.type === "Identifier" && (E.key.name === "get" || E.key.name === "set") ? (C = _ = !0, w = E.kind = E.key.name, E.key = mn(), T !== se && ce(), E.value = Yt(X(), !1)) : ce(), E.key.type === "Identifier" && (q || _))
|
|
5249
5249
|
for (var k = 0; k < f.properties.length; ++k) {
|
|
5250
5250
|
var j = f.properties[k];
|
|
5251
|
-
if (j.key.name ===
|
|
5251
|
+
if (j.key.name === E.key.name) {
|
|
5252
5252
|
var qe = w === j.kind || C && j.kind === "init" || w === "init" && (j.kind === "get" || j.kind === "set");
|
|
5253
|
-
qe && !q && w === "init" && j.kind === "init" && (qe = !1), qe && I(
|
|
5253
|
+
qe && !q && w === "init" && j.kind === "init" && (qe = !1), qe && I(E.key.start, "Redefinition of property");
|
|
5254
5254
|
}
|
|
5255
5255
|
}
|
|
5256
|
-
f.properties.push(
|
|
5256
|
+
f.properties.push(E);
|
|
5257
5257
|
}
|
|
5258
5258
|
return P(f, "ObjectExpression");
|
|
5259
5259
|
}
|
|
5260
|
-
function
|
|
5261
|
-
return T === at || T === Nt ? Gt() :
|
|
5260
|
+
function mn() {
|
|
5261
|
+
return T === at || T === Nt ? Gt() : ye(!0);
|
|
5262
5262
|
}
|
|
5263
5263
|
function Yt(f, d) {
|
|
5264
|
-
T ===
|
|
5265
|
-
var
|
|
5264
|
+
T === Ce ? f.id = ye() : d ? ce() : f.id = null, f.params = [];
|
|
5265
|
+
var _ = !0;
|
|
5266
5266
|
for (V(se); !B(ae); )
|
|
5267
|
-
|
|
5268
|
-
var
|
|
5269
|
-
if (
|
|
5267
|
+
_ ? _ = !1 : V(ve), f.params.push(ye());
|
|
5268
|
+
var E = Ee, C = $;
|
|
5269
|
+
if (Ee = !0, $ = [], f.body = Je(!0), Ee = E, $ = C, q || f.body.body.length && Ft(f.body.body[0]))
|
|
5270
5270
|
for (var w = f.id ? -1 : 0; w < f.params.length; ++w) {
|
|
5271
5271
|
var k = w < 0 ? f.id : f.params[w];
|
|
5272
5272
|
if ((nn(k.name) || st(k.name)) && I(k.start, "Defining '" + k.name + "' in strict mode"), w >= 0)
|
|
@@ -5275,19 +5275,19 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5275
5275
|
}
|
|
5276
5276
|
return P(f, d ? "FunctionDeclaration" : "FunctionExpression");
|
|
5277
5277
|
}
|
|
5278
|
-
function zt(f, d,
|
|
5279
|
-
for (var
|
|
5278
|
+
function zt(f, d, _) {
|
|
5279
|
+
for (var E = [], C = !0; !B(f); ) {
|
|
5280
5280
|
if (C)
|
|
5281
5281
|
C = !1;
|
|
5282
5282
|
else if (V(ve), d && r.allowTrailingCommas && B(f))
|
|
5283
5283
|
break;
|
|
5284
|
-
|
|
5284
|
+
E.push(_ && T === ve ? null : W(!0));
|
|
5285
5285
|
}
|
|
5286
|
-
return
|
|
5286
|
+
return E;
|
|
5287
5287
|
}
|
|
5288
|
-
function
|
|
5288
|
+
function ye(f) {
|
|
5289
5289
|
var d = X();
|
|
5290
|
-
return f && r.forbidReserved === "everywhere" && (f = !1), T ===
|
|
5290
|
+
return f && r.forbidReserved === "everywhere" && (f = !1), T === Ce ? (!f && (r.forbidReserved && aa(S) || q && nn(S)) && t.slice(p, v).indexOf("\\") === -1 && I(p, "The keyword '" + S + "' is reserved"), d.name = S) : f && T.keyword ? d.name = T.keyword : ce(), A = !1, D(), P(d, "Identifier");
|
|
5291
5291
|
}
|
|
5292
5292
|
});
|
|
5293
5293
|
}
|
|
@@ -5298,17 +5298,17 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5298
5298
|
!*** external "vm" ***!
|
|
5299
5299
|
\*********************/
|
|
5300
5300
|
/***/
|
|
5301
|
-
(
|
|
5302
|
-
|
|
5301
|
+
(m) => {
|
|
5302
|
+
m.exports = ql;
|
|
5303
5303
|
}
|
|
5304
5304
|
)
|
|
5305
5305
|
/******/
|
|
5306
|
-
},
|
|
5307
|
-
function
|
|
5308
|
-
var O =
|
|
5306
|
+
}, h = {};
|
|
5307
|
+
function y(m) {
|
|
5308
|
+
var O = h[m];
|
|
5309
5309
|
if (O !== void 0)
|
|
5310
5310
|
return O.exports;
|
|
5311
|
-
var R =
|
|
5311
|
+
var R = h[m] = {
|
|
5312
5312
|
/******/
|
|
5313
5313
|
// no module.id needed
|
|
5314
5314
|
/******/
|
|
@@ -5317,34 +5317,34 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5317
5317
|
exports: {}
|
|
5318
5318
|
/******/
|
|
5319
5319
|
};
|
|
5320
|
-
return l[
|
|
5320
|
+
return l[m].call(R.exports, R, R.exports, y), R.exports;
|
|
5321
5321
|
}
|
|
5322
|
-
|
|
5322
|
+
y.d = (m, O) => {
|
|
5323
5323
|
for (var R in O)
|
|
5324
|
-
|
|
5325
|
-
},
|
|
5326
|
-
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(
|
|
5324
|
+
y.o(O, R) && !y.o(m, R) && Object.defineProperty(m, R, { enumerable: !0, get: O[R] });
|
|
5325
|
+
}, y.o = (m, O) => Object.prototype.hasOwnProperty.call(m, O), y.r = (m) => {
|
|
5326
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(m, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(m, "__esModule", { value: !0 });
|
|
5327
5327
|
};
|
|
5328
|
-
var
|
|
5328
|
+
var b = {};
|
|
5329
5329
|
return (() => {
|
|
5330
5330
|
/*!*******************************!*\
|
|
5331
5331
|
!*** ./src/js-interpreter.js ***!
|
|
5332
5332
|
\*******************************/
|
|
5333
|
-
|
|
5333
|
+
y.r(b), y.d(b, {
|
|
5334
5334
|
/* harmony export */
|
|
5335
5335
|
default: () => R
|
|
5336
5336
|
/* harmony export */
|
|
5337
5337
|
});
|
|
5338
|
-
const
|
|
5338
|
+
const m = y(
|
|
5339
5339
|
/*! ../original-repo/acorn */
|
|
5340
5340
|
"./original-repo/acorn.js"
|
|
5341
5341
|
);
|
|
5342
|
-
globalThis.acorn =
|
|
5343
|
-
const { Interpreter: O } =
|
|
5342
|
+
globalThis.acorn = m;
|
|
5343
|
+
const { Interpreter: O } = y(
|
|
5344
5344
|
/*! ../original-repo/interpreter */
|
|
5345
5345
|
"./original-repo/interpreter.js"
|
|
5346
5346
|
), R = O;
|
|
5347
|
-
})(),
|
|
5347
|
+
})(), b = b.default, b;
|
|
5348
5348
|
})()
|
|
5349
5349
|
));
|
|
5350
5350
|
})(zi);
|
|
@@ -5355,22 +5355,22 @@ function ec(n, o) {
|
|
|
5355
5355
|
const R = n.pseudoToNative(O);
|
|
5356
5356
|
console.log(R);
|
|
5357
5357
|
}
|
|
5358
|
-
function
|
|
5358
|
+
function h(O) {
|
|
5359
5359
|
const R = n.pseudoToNative(O);
|
|
5360
5360
|
let r = "";
|
|
5361
5361
|
typeof R == "object" ? r = JSON.stringify(R) : r = String(R), Me.emit("consoleAppend", r);
|
|
5362
5362
|
}
|
|
5363
|
-
function
|
|
5363
|
+
function y(O, R) {
|
|
5364
5364
|
const r = n.pseudoToNative(O), t = n.pseudoToNative(R);
|
|
5365
5365
|
r === "info" ? ja(t) : r === "success" ? Ba(t) : r === "warning" ? $a(t) : r === "error" && Va(t);
|
|
5366
5366
|
}
|
|
5367
|
-
function
|
|
5367
|
+
function b(O, R) {
|
|
5368
5368
|
const r = n.pseudoToNative(O), t = n.pseudoToNative(R);
|
|
5369
5369
|
setTimeout(() => {
|
|
5370
5370
|
n.appendCode(`__timeoutCallbackV1__(${r})`), n.run();
|
|
5371
5371
|
}, t);
|
|
5372
5372
|
}
|
|
5373
|
-
function
|
|
5373
|
+
function m(O, R) {
|
|
5374
5374
|
const r = n.pseudoToNative(O);
|
|
5375
5375
|
setTimeout(() => {
|
|
5376
5376
|
R(), n.run();
|
|
@@ -5383,19 +5383,19 @@ function ec(n, o) {
|
|
|
5383
5383
|
), n.setProperty(
|
|
5384
5384
|
o,
|
|
5385
5385
|
"__debugTraceV1__",
|
|
5386
|
-
n.createNativeFunction(
|
|
5386
|
+
n.createNativeFunction(h)
|
|
5387
5387
|
), n.setProperty(
|
|
5388
5388
|
o,
|
|
5389
5389
|
"__messageV1__",
|
|
5390
|
-
n.createNativeFunction(
|
|
5390
|
+
n.createNativeFunction(y)
|
|
5391
5391
|
), n.setProperty(
|
|
5392
5392
|
o,
|
|
5393
5393
|
"__timeoutV1__",
|
|
5394
|
-
n.createNativeFunction(
|
|
5394
|
+
n.createNativeFunction(b)
|
|
5395
5395
|
), n.setProperty(
|
|
5396
5396
|
o,
|
|
5397
5397
|
"__delayV1__",
|
|
5398
|
-
n.createAsyncFunction(
|
|
5398
|
+
n.createAsyncFunction(m)
|
|
5399
5399
|
);
|
|
5400
5400
|
}
|
|
5401
5401
|
class tc {
|
|
@@ -5403,63 +5403,63 @@ class tc {
|
|
|
5403
5403
|
Wt(this, "context");
|
|
5404
5404
|
Wt(this, "nodes");
|
|
5405
5405
|
this.context = o, this.nodes = {};
|
|
5406
|
-
const l = (
|
|
5407
|
-
var
|
|
5408
|
-
this.nodes[
|
|
5406
|
+
const l = (h) => {
|
|
5407
|
+
var y;
|
|
5408
|
+
this.nodes[h.basic.id] = h, (y = h.children) == null || y.forEach((b) => l(b));
|
|
5409
5409
|
};
|
|
5410
|
-
this.context.data.view.nodes.forEach((
|
|
5410
|
+
this.context.data.view.nodes.forEach((h) => l(h));
|
|
5411
5411
|
}
|
|
5412
5412
|
getNode(o) {
|
|
5413
5413
|
return this.nodes[o];
|
|
5414
5414
|
}
|
|
5415
|
-
addNode(o, l,
|
|
5416
|
-
const
|
|
5417
|
-
let
|
|
5415
|
+
addNode(o, l, h) {
|
|
5416
|
+
const y = `parent=${o} ref=${l} keyOrRefid=${h}`;
|
|
5417
|
+
let b;
|
|
5418
5418
|
if (o) {
|
|
5419
5419
|
const O = this.getNode(o);
|
|
5420
5420
|
if (!O)
|
|
5421
|
-
return console.error(`NodeMgr/addNode parent not found, ${
|
|
5421
|
+
return console.error(`NodeMgr/addNode parent not found, ${y}`), "";
|
|
5422
5422
|
if (!O.children)
|
|
5423
|
-
return console.error(`NodeMgr/addNode parent no children, ${
|
|
5424
|
-
|
|
5423
|
+
return console.error(`NodeMgr/addNode parent no children, ${y}`), "";
|
|
5424
|
+
b = O.children;
|
|
5425
5425
|
} else
|
|
5426
|
-
|
|
5427
|
-
if (!
|
|
5426
|
+
b = this.context.data.view.nodes;
|
|
5427
|
+
if (!b)
|
|
5428
5428
|
return "";
|
|
5429
|
-
const
|
|
5429
|
+
const m = Ol(
|
|
5430
5430
|
this.context.type,
|
|
5431
5431
|
this.context.data.type,
|
|
5432
5432
|
this.context.data.version,
|
|
5433
5433
|
l,
|
|
5434
|
-
|
|
5434
|
+
h
|
|
5435
5435
|
);
|
|
5436
|
-
return
|
|
5436
|
+
return m ? (b.push(m), this.nodes[m.basic.id] = m, m.basic.id) : (console.error(`NodeMgr/addNode spawn node failed, ${y}`), "");
|
|
5437
5437
|
}
|
|
5438
5438
|
deleteNode(o) {
|
|
5439
5439
|
this.getNode(o);
|
|
5440
5440
|
}
|
|
5441
5441
|
}
|
|
5442
5442
|
function rc(n, o, l) {
|
|
5443
|
-
const
|
|
5444
|
-
function
|
|
5445
|
-
const u = o.pseudoToNative(e), c = o.pseudoToNative(i), a = o.pseudoToNative(s), p =
|
|
5443
|
+
const h = new tc(n);
|
|
5444
|
+
function y(e, i, s) {
|
|
5445
|
+
const u = o.pseudoToNative(e), c = o.pseudoToNative(i), a = o.pseudoToNative(s), p = h.addNode(u, c, a);
|
|
5446
5446
|
return o.nativeToPseudo(p);
|
|
5447
5447
|
}
|
|
5448
|
-
function
|
|
5448
|
+
function b(e) {
|
|
5449
5449
|
const i = o.pseudoToNative(e);
|
|
5450
|
-
|
|
5450
|
+
h.deleteNode(i);
|
|
5451
5451
|
}
|
|
5452
|
-
function
|
|
5452
|
+
function m(e, i) {
|
|
5453
5453
|
const s = o.pseudoToNative(e), u = o.pseudoToNative(i), c = `id=${s} keys=${u}`;
|
|
5454
5454
|
let a;
|
|
5455
|
-
if (s === "globality" ? a = n.data.view : a =
|
|
5455
|
+
if (s === "globality" ? a = n.data.view : a = h.getNode(s), !a) {
|
|
5456
5456
|
console.error(`getNodePropV1 node not found, ${c}`);
|
|
5457
5457
|
return;
|
|
5458
5458
|
}
|
|
5459
|
-
const p = u.split("."),
|
|
5460
|
-
for (let
|
|
5461
|
-
const x = p[
|
|
5462
|
-
if (
|
|
5459
|
+
const p = u.split("."), v = p.length;
|
|
5460
|
+
for (let g = 0; g < v; g++) {
|
|
5461
|
+
const x = p[g];
|
|
5462
|
+
if (g === v - 1)
|
|
5463
5463
|
return o.nativeToPseudo(a[x]);
|
|
5464
5464
|
if (!a) {
|
|
5465
5465
|
console.error(`getNodePropV1 unpkg failed, ${c}`);
|
|
@@ -5470,28 +5470,28 @@ function rc(n, o, l) {
|
|
|
5470
5470
|
}
|
|
5471
5471
|
function O(e, i, s) {
|
|
5472
5472
|
const u = o.pseudoToNative(e), c = o.pseudoToNative(i), a = o.pseudoToNative(s), p = `id=${u} keys=${c} value=${a}`;
|
|
5473
|
-
let
|
|
5474
|
-
if (u === "globality" ?
|
|
5473
|
+
let v;
|
|
5474
|
+
if (u === "globality" ? v = n.data.view : v = h.getNode(u), !v) {
|
|
5475
5475
|
console.error(`setNodePropV1 node not found, ${p}`);
|
|
5476
5476
|
return;
|
|
5477
5477
|
}
|
|
5478
|
-
const
|
|
5478
|
+
const g = c.split("."), x = g.length;
|
|
5479
5479
|
for (let T = 0; T < x; T++) {
|
|
5480
|
-
const S =
|
|
5480
|
+
const S = g[T];
|
|
5481
5481
|
if (T === x - 1)
|
|
5482
|
-
|
|
5482
|
+
v[S] = a;
|
|
5483
5483
|
else {
|
|
5484
|
-
if (!
|
|
5484
|
+
if (!v) {
|
|
5485
5485
|
console.error(`setNodePropV1 unpkg failed, ${p}`);
|
|
5486
5486
|
return;
|
|
5487
5487
|
}
|
|
5488
|
-
|
|
5488
|
+
v = v[S];
|
|
5489
5489
|
}
|
|
5490
5490
|
}
|
|
5491
5491
|
}
|
|
5492
5492
|
function R(e, i, s, u) {
|
|
5493
|
-
const c = o.pseudoToNative(e), a = o.pseudoToNative(i), p = o.pseudoToNative(s),
|
|
5494
|
-
Me.emit(`callMethod@${c}`, { name: a, inputs: p, result:
|
|
5493
|
+
const c = o.pseudoToNative(e), a = o.pseudoToNative(i), p = o.pseudoToNative(s), v = { outputs: [] };
|
|
5494
|
+
Me.emit(`callMethod@${c}`, { name: a, inputs: p, result: v }), u(o.nativeToPseudo(v.outputs)), o.run();
|
|
5495
5495
|
}
|
|
5496
5496
|
function r(e, i, s) {
|
|
5497
5497
|
const u = o.pseudoToNative(e), c = o.pseudoToNative(i);
|
|
@@ -5501,22 +5501,22 @@ function rc(n, o, l) {
|
|
|
5501
5501
|
}
|
|
5502
5502
|
function t(e, i, s, u) {
|
|
5503
5503
|
const c = o.pseudoToNative(e), a = o.pseudoToNative(i), p = o.pseudoToNative(s);
|
|
5504
|
-
Ya({ title: c, label: a, value: p }).then((
|
|
5505
|
-
u(o.nativeToPseudo(
|
|
5504
|
+
Ya({ title: c, label: a, value: p }).then((v) => {
|
|
5505
|
+
u(o.nativeToPseudo(v)), o.run();
|
|
5506
5506
|
});
|
|
5507
5507
|
}
|
|
5508
5508
|
o.setProperty(
|
|
5509
5509
|
l,
|
|
5510
5510
|
"__addNodeV1__",
|
|
5511
|
-
o.createNativeFunction(
|
|
5511
|
+
o.createNativeFunction(y)
|
|
5512
5512
|
), o.setProperty(
|
|
5513
5513
|
l,
|
|
5514
5514
|
"__deleteNodeV1__",
|
|
5515
|
-
o.createNativeFunction(
|
|
5515
|
+
o.createNativeFunction(b)
|
|
5516
5516
|
), o.setProperty(
|
|
5517
5517
|
l,
|
|
5518
5518
|
"__getNodePropV1__",
|
|
5519
|
-
o.createNativeFunction(
|
|
5519
|
+
o.createNativeFunction(m)
|
|
5520
5520
|
), o.setProperty(
|
|
5521
5521
|
l,
|
|
5522
5522
|
"__setNodePropV1__",
|
|
@@ -5664,8 +5664,8 @@ function __destroy__() {
|
|
|
5664
5664
|
function Xi(n, o) {
|
|
5665
5665
|
const l = new Ql(
|
|
5666
5666
|
sc,
|
|
5667
|
-
(
|
|
5668
|
-
nc(n,
|
|
5667
|
+
(h, y) => {
|
|
5668
|
+
nc(n, h, y);
|
|
5669
5669
|
}
|
|
5670
5670
|
);
|
|
5671
5671
|
return l.appendCode(o), l.appendCode(`
|
|
@@ -5683,16 +5683,16 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5683
5683
|
state: {}
|
|
5684
5684
|
},
|
|
5685
5685
|
setup(n) {
|
|
5686
|
-
const { t: o } = oi(), l = n,
|
|
5686
|
+
const { t: o } = oi(), l = n, h = ji(), y = he(), b = wr(), m = Pr(), O = $i(), R = ii();
|
|
5687
5687
|
ai(() => {
|
|
5688
|
-
R.value =
|
|
5688
|
+
R.value = _e(O[l.refContext.refid]);
|
|
5689
5689
|
}), R.value || Me.emit("compNotAvail", l.refContext.refid);
|
|
5690
5690
|
let r;
|
|
5691
|
-
if (R.value &&
|
|
5691
|
+
if (R.value && y === "runtime") {
|
|
5692
5692
|
const a = R.value.data, p = R.value.data.code.script;
|
|
5693
|
-
p && (r = Xi({ env:
|
|
5693
|
+
p && (r = Xi({ env: h, type: b, data: a }, p));
|
|
5694
5694
|
}
|
|
5695
|
-
Vi(r),
|
|
5695
|
+
Vi(r), yr(() => {
|
|
5696
5696
|
r && Wi(r);
|
|
5697
5697
|
});
|
|
5698
5698
|
const t = () => {
|
|
@@ -5706,8 +5706,8 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5706
5706
|
{ deep: !0, immediate: !0 }
|
|
5707
5707
|
);
|
|
5708
5708
|
function e(a) {
|
|
5709
|
-
const p = Cr[
|
|
5710
|
-
return
|
|
5709
|
+
const p = Cr[m.version].refKey, v = xe[p];
|
|
5710
|
+
return v ? J(v.comp, {
|
|
5711
5711
|
refContext: {
|
|
5712
5712
|
parent: l.refContext,
|
|
5713
5713
|
refid: a.ref.id
|
|
@@ -5716,14 +5716,14 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5716
5716
|
}) : (console.assert(!1, `ref element not found key=${p}`), J("div", `ref element not found key=${p}`));
|
|
5717
5717
|
}
|
|
5718
5718
|
function i(a) {
|
|
5719
|
-
var
|
|
5720
|
-
const p =
|
|
5719
|
+
var g;
|
|
5720
|
+
const p = xe[a.basic.key];
|
|
5721
5721
|
if (!p)
|
|
5722
5722
|
return console.assert(!1, `element not found key=${a.basic.key}`), J("div", `element not found key=${a.basic.key}`);
|
|
5723
|
-
const
|
|
5724
|
-
return p.slots.some((x) => x.key === "default") && ((
|
|
5725
|
-
|
|
5726
|
-
})), J(p.comp, { node: a }, { default: () =>
|
|
5723
|
+
const v = [];
|
|
5724
|
+
return p.slots.some((x) => x.key === "default") && ((g = a.children) == null || g.forEach((x) => {
|
|
5725
|
+
v.push(s(x));
|
|
5726
|
+
})), J(p.comp, { node: a }, { default: () => v });
|
|
5727
5727
|
}
|
|
5728
5728
|
function s(a) {
|
|
5729
5729
|
return a.ref ? e(a) : i(a);
|
|
@@ -5745,8 +5745,8 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5745
5745
|
const a = R.value.data.type;
|
|
5746
5746
|
if (a === "common") {
|
|
5747
5747
|
const p = [];
|
|
5748
|
-
return R.value.data.view.nodes.forEach((
|
|
5749
|
-
p.push(s(
|
|
5748
|
+
return R.value.data.view.nodes.forEach((v) => {
|
|
5749
|
+
p.push(s(v));
|
|
5750
5750
|
}), p;
|
|
5751
5751
|
} else
|
|
5752
5752
|
return console.assert(!1, `invalid subtype=${a}`), J("div", `invalid subtype=${a}`);
|
|
@@ -5760,16 +5760,16 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5760
5760
|
outer: { type: Boolean }
|
|
5761
5761
|
},
|
|
5762
5762
|
setup(n) {
|
|
5763
|
-
const o = n, l = Ve(),
|
|
5763
|
+
const o = n, l = Ve(), h = N(() => {
|
|
5764
5764
|
var u;
|
|
5765
5765
|
return (u = o.node.size) == null ? void 0 : u.width;
|
|
5766
|
-
}),
|
|
5766
|
+
}), y = N(() => {
|
|
5767
5767
|
var u;
|
|
5768
5768
|
return (u = o.node.size) == null ? void 0 : u.height;
|
|
5769
|
-
}),
|
|
5769
|
+
}), b = N(() => {
|
|
5770
5770
|
var u;
|
|
5771
5771
|
return (u = o.node.settings) == null ? void 0 : u.headers;
|
|
5772
|
-
}),
|
|
5772
|
+
}), m = N(() => {
|
|
5773
5773
|
var u;
|
|
5774
5774
|
return (u = o.node.settings) == null ? void 0 : u.items;
|
|
5775
5775
|
}), O = N(() => {
|
|
@@ -5797,10 +5797,10 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5797
5797
|
return (u, c) => {
|
|
5798
5798
|
const a = ie("v-data-table");
|
|
5799
5799
|
return G(), Q(a, {
|
|
5800
|
-
width:
|
|
5801
|
-
height:
|
|
5802
|
-
headers:
|
|
5803
|
-
items:
|
|
5800
|
+
width: h.value,
|
|
5801
|
+
height: y.value,
|
|
5802
|
+
headers: b.value,
|
|
5803
|
+
items: m.value,
|
|
5804
5804
|
density: O.value,
|
|
5805
5805
|
"fixed-header": R.value,
|
|
5806
5806
|
"fixed-footer": r.value,
|
|
@@ -5808,12 +5808,12 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5808
5808
|
"multi-sort": e.value,
|
|
5809
5809
|
theme: i.value
|
|
5810
5810
|
}, qt({ _: 2 }, [
|
|
5811
|
-
La(s.value, (p,
|
|
5811
|
+
La(s.value, (p, v) => ({
|
|
5812
5812
|
name: `item.${p.column}`,
|
|
5813
|
-
fn: ee(({ value:
|
|
5813
|
+
fn: ee(({ value: g }) => [
|
|
5814
5814
|
Z(fe, {
|
|
5815
5815
|
"ref-context": { refid: p.comp },
|
|
5816
|
-
state: { value:
|
|
5816
|
+
state: { value: g }
|
|
5817
5817
|
}, null, 8, ["ref-context", "state"])
|
|
5818
5818
|
])
|
|
5819
5819
|
}))
|
|
@@ -5998,11 +5998,11 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5998
5998
|
}
|
|
5999
5999
|
};
|
|
6000
6000
|
function pc(n, o) {
|
|
6001
|
-
const l = N(() => n.node.basic.id),
|
|
6001
|
+
const l = N(() => n.node.basic.id), h = N(() => `callMethod@${l.value}`);
|
|
6002
6002
|
Ma(() => {
|
|
6003
|
-
Me.on(
|
|
6004
|
-
}),
|
|
6005
|
-
Me.off(
|
|
6003
|
+
Me.on(h.value, o);
|
|
6004
|
+
}), yr(() => {
|
|
6005
|
+
Me.off(h.value, o);
|
|
6006
6006
|
});
|
|
6007
6007
|
}
|
|
6008
6008
|
const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
@@ -6012,27 +6012,27 @@ const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
|
6012
6012
|
outer: { type: Boolean }
|
|
6013
6013
|
},
|
|
6014
6014
|
setup(n) {
|
|
6015
|
-
const o = n, l = he(),
|
|
6016
|
-
var
|
|
6017
|
-
return (
|
|
6018
|
-
}), { open:
|
|
6019
|
-
return pc(o, (
|
|
6020
|
-
const { name: O } =
|
|
6021
|
-
O === "open" ?
|
|
6022
|
-
}), (
|
|
6015
|
+
const o = n, l = he(), h = N(() => {
|
|
6016
|
+
var m;
|
|
6017
|
+
return (m = o.node.basic) == null ? void 0 : m.id;
|
|
6018
|
+
}), { open: y } = za(`runtimeDlg/${h.value}`);
|
|
6019
|
+
return pc(o, (m) => {
|
|
6020
|
+
const { name: O } = m;
|
|
6021
|
+
O === "open" ? y.value = !0 : O === "close" && (y.value = !1);
|
|
6022
|
+
}), (m, O) => {
|
|
6023
6023
|
const R = ie("v-dialog");
|
|
6024
6024
|
return G(), Q(R, {
|
|
6025
|
-
modelValue: Le(
|
|
6026
|
-
"onUpdate:modelValue": O[0] || (O[0] = (r) => Fa(
|
|
6025
|
+
modelValue: Le(y),
|
|
6026
|
+
"onUpdate:modelValue": O[0] || (O[0] = (r) => Fa(y) ? y.value = r : null)
|
|
6027
6027
|
}, {
|
|
6028
6028
|
activator: ee(() => [
|
|
6029
6029
|
Le(l) === "editor" ? (G(), je("div", {
|
|
6030
6030
|
key: 0,
|
|
6031
|
-
id: `__node__@${
|
|
6031
|
+
id: `__node__@${h.value}`
|
|
6032
6032
|
}, null, 8, dc)) : Ua("", !0)
|
|
6033
6033
|
]),
|
|
6034
6034
|
default: ee(() => [
|
|
6035
|
-
|
|
6035
|
+
mr(m.$slots, "default")
|
|
6036
6036
|
]),
|
|
6037
6037
|
_: 3
|
|
6038
6038
|
}, 8, ["modelValue"]);
|
|
@@ -6079,7 +6079,7 @@ const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
|
6079
6079
|
default: "#00000000"
|
|
6080
6080
|
}
|
|
6081
6081
|
]
|
|
6082
|
-
},
|
|
6082
|
+
}, mc = {
|
|
6083
6083
|
key: lr,
|
|
6084
6084
|
name: "x-runtime-lib.globality",
|
|
6085
6085
|
comp: null,
|
|
@@ -6126,20 +6126,20 @@ const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
|
6126
6126
|
compCommon: [qn]
|
|
6127
6127
|
},
|
|
6128
6128
|
internal: !0
|
|
6129
|
-
},
|
|
6129
|
+
}, yc = { key: 0 }, _c = /* @__PURE__ */ oe({
|
|
6130
6130
|
__name: "index",
|
|
6131
6131
|
props: {
|
|
6132
6132
|
node: {},
|
|
6133
6133
|
outer: { type: Boolean }
|
|
6134
6134
|
},
|
|
6135
6135
|
setup(n) {
|
|
6136
|
-
const o = n, l = he(),
|
|
6136
|
+
const o = n, l = he(), h = Ve(), y = N(() => {
|
|
6137
6137
|
var e;
|
|
6138
6138
|
return (e = o.node.settings) == null ? void 0 : e.value;
|
|
6139
|
-
}),
|
|
6139
|
+
}), b = N(() => {
|
|
6140
6140
|
var e;
|
|
6141
6141
|
return (e = o.node.settings) == null ? void 0 : e.label;
|
|
6142
|
-
}),
|
|
6142
|
+
}), m = N(() => {
|
|
6143
6143
|
var e;
|
|
6144
6144
|
return (e = o.node.settings) == null ? void 0 : e.placeholder;
|
|
6145
6145
|
}), O = N(() => {
|
|
@@ -6151,14 +6151,14 @@ const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
|
6151
6151
|
}), r = N(() => {
|
|
6152
6152
|
var e;
|
|
6153
6153
|
return l !== "runtime" ? !0 : (e = o.node.settings) == null ? void 0 : e.readonly;
|
|
6154
|
-
}), t = N(() =>
|
|
6154
|
+
}), t = N(() => h.value ? "dark" : "light");
|
|
6155
6155
|
return (e, i) => {
|
|
6156
6156
|
const s = ie("v-number-input");
|
|
6157
|
-
return Le(l) === "editor" ? (G(), je("div",
|
|
6157
|
+
return Le(l) === "editor" ? (G(), je("div", yc, [
|
|
6158
6158
|
Z(s, {
|
|
6159
|
-
"model-value":
|
|
6160
|
-
label:
|
|
6161
|
-
placeholder:
|
|
6159
|
+
"model-value": y.value,
|
|
6160
|
+
label: b.value,
|
|
6161
|
+
placeholder: m.value,
|
|
6162
6162
|
"hide-details": O.value,
|
|
6163
6163
|
"single-line": R.value,
|
|
6164
6164
|
readonly: r.value,
|
|
@@ -6166,9 +6166,9 @@ const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
|
6166
6166
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
6167
6167
|
])) : (G(), Q(s, {
|
|
6168
6168
|
key: 1,
|
|
6169
|
-
"model-value":
|
|
6170
|
-
label:
|
|
6171
|
-
placeholder:
|
|
6169
|
+
"model-value": y.value,
|
|
6170
|
+
label: b.value,
|
|
6171
|
+
placeholder: m.value,
|
|
6172
6172
|
"hide-details": O.value,
|
|
6173
6173
|
"single-line": R.value,
|
|
6174
6174
|
readonly: r.value,
|
|
@@ -6257,52 +6257,54 @@ const Rc = /* @__PURE__ */ Tt(gc, [["render", Ec]]), Oc = {
|
|
|
6257
6257
|
outer: { type: Boolean }
|
|
6258
6258
|
},
|
|
6259
6259
|
setup(n) {
|
|
6260
|
-
const { t: o } = oi(), l = n,
|
|
6260
|
+
const { t: o } = oi(), l = n, h = ji(), y = he(), b = Bi(), m = wr(), O = Pr(), R = $i();
|
|
6261
|
+
console.log("ref_v1 setup");
|
|
6262
|
+
const r = ii();
|
|
6261
6263
|
ai(() => {
|
|
6262
|
-
r.value =
|
|
6264
|
+
console.log("ref_v1 depend changed"), r.value = _e(R[l.refContext.refid]);
|
|
6263
6265
|
}), r.value || Me.emit("compNotAvail", l.refContext.refid);
|
|
6264
6266
|
let t;
|
|
6265
|
-
if (r.value &&
|
|
6266
|
-
const
|
|
6267
|
-
|
|
6267
|
+
if (r.value && y === "runtime") {
|
|
6268
|
+
const v = r.value.data, g = r.value.data.code.script;
|
|
6269
|
+
g && (t = Xi({ env: h, type: m, data: v }, g));
|
|
6268
6270
|
}
|
|
6269
|
-
Vi(t),
|
|
6271
|
+
Vi(t), yr(() => {
|
|
6270
6272
|
t && Wi(t);
|
|
6271
6273
|
});
|
|
6272
|
-
const { applySize: e } = Yi(
|
|
6273
|
-
const
|
|
6274
|
-
return
|
|
6274
|
+
const { applySize: e } = Yi(y, b, l), i = N(() => {
|
|
6275
|
+
const v = {}, g = O.type;
|
|
6276
|
+
return m === "page" ? g === "common" ? e(v) : console.assert(!1) : m === "comp" && g === "common" ? e(v) : console.assert(!1), v;
|
|
6275
6277
|
});
|
|
6276
|
-
function s(
|
|
6277
|
-
const
|
|
6278
|
+
function s(v) {
|
|
6279
|
+
const g = Cr[O.version].refKey, x = xe[g];
|
|
6278
6280
|
return x ? J(x.comp, {
|
|
6279
6281
|
refContext: {
|
|
6280
6282
|
parent: l.refContext,
|
|
6281
|
-
refid:
|
|
6283
|
+
refid: v.ref.id
|
|
6282
6284
|
},
|
|
6283
|
-
node:
|
|
6284
|
-
}) : (console.assert(!1, `ref element not found key=${
|
|
6285
|
+
node: v
|
|
6286
|
+
}) : (console.assert(!1, `ref element not found key=${g}`), J("div", `ref element not found key=${g}`));
|
|
6285
6287
|
}
|
|
6286
|
-
function u(
|
|
6288
|
+
function u(v) {
|
|
6287
6289
|
var T;
|
|
6288
|
-
const
|
|
6289
|
-
if (!
|
|
6290
|
-
return console.assert(!1, `element not found key=${
|
|
6290
|
+
const g = xe[v.basic.key];
|
|
6291
|
+
if (!g)
|
|
6292
|
+
return console.assert(!1, `element not found key=${v.basic.key}`), J("div", `element not found key=${v.basic.key}`);
|
|
6291
6293
|
const x = [];
|
|
6292
|
-
return
|
|
6294
|
+
return g.slots.some((S) => S.key === "default") && ((T = v.children) == null || T.forEach((S) => {
|
|
6293
6295
|
const A = c(S);
|
|
6294
6296
|
x.push(A);
|
|
6295
|
-
})), J(
|
|
6297
|
+
})), J(g.comp, { node: v }, { default: () => x });
|
|
6296
6298
|
}
|
|
6297
|
-
function c(
|
|
6298
|
-
return
|
|
6299
|
+
function c(v) {
|
|
6300
|
+
return v.ref ? s(v) : u(v);
|
|
6299
6301
|
}
|
|
6300
6302
|
function a() {
|
|
6301
|
-
let
|
|
6302
|
-
for (;
|
|
6303
|
-
if (
|
|
6303
|
+
let v = l.refContext.parent;
|
|
6304
|
+
for (; v; ) {
|
|
6305
|
+
if (v.refid === l.refContext.refid)
|
|
6304
6306
|
return !0;
|
|
6305
|
-
|
|
6307
|
+
v = v.parent;
|
|
6306
6308
|
}
|
|
6307
6309
|
return !1;
|
|
6308
6310
|
}
|
|
@@ -6311,16 +6313,16 @@ const Rc = /* @__PURE__ */ Tt(gc, [["render", Ec]]), Oc = {
|
|
|
6311
6313
|
return J("div", { id: l.id }, o("x-runtime-lib.circularRef"));
|
|
6312
6314
|
if (!r.value)
|
|
6313
6315
|
return J("div", { id: l.id }, o("x-runtime-lib.compNotAvail"));
|
|
6314
|
-
const
|
|
6315
|
-
if (
|
|
6316
|
-
const
|
|
6316
|
+
const v = r.value.data.type;
|
|
6317
|
+
if (v === "common") {
|
|
6318
|
+
const g = [];
|
|
6317
6319
|
return r.value.data.view.nodes.forEach((x) => {
|
|
6318
|
-
|
|
6319
|
-
}), J("div", { id: l.id, style: i.value },
|
|
6320
|
+
g.push(c(x));
|
|
6321
|
+
}), J("div", { id: l.id, style: i.value }, g);
|
|
6320
6322
|
} else
|
|
6321
|
-
return console.assert(!1, `invalid subtype=${
|
|
6323
|
+
return console.assert(!1, `invalid subtype=${v}`), J("div", { id: l.id }, `invalid subtype=${v}`);
|
|
6322
6324
|
};
|
|
6323
|
-
return (
|
|
6325
|
+
return (v, g) => (G(), Q(p));
|
|
6324
6326
|
}
|
|
6325
6327
|
}), Qn = {
|
|
6326
6328
|
key: "ref",
|
|
@@ -6351,13 +6353,13 @@ const Rc = /* @__PURE__ */ Tt(gc, [["render", Ec]]), Oc = {
|
|
|
6351
6353
|
outer: { type: Boolean }
|
|
6352
6354
|
},
|
|
6353
6355
|
setup(n) {
|
|
6354
|
-
const o = n, l = he(),
|
|
6356
|
+
const o = n, l = he(), h = Ve(), y = N(() => {
|
|
6355
6357
|
var e;
|
|
6356
6358
|
return (e = o.node.settings) == null ? void 0 : e.value;
|
|
6357
|
-
}),
|
|
6359
|
+
}), b = N(() => {
|
|
6358
6360
|
var e;
|
|
6359
6361
|
return (e = o.node.settings) == null ? void 0 : e.label;
|
|
6360
|
-
}),
|
|
6362
|
+
}), m = N(() => {
|
|
6361
6363
|
var e;
|
|
6362
6364
|
return (e = o.node.settings) == null ? void 0 : e.placeholder;
|
|
6363
6365
|
}), O = N(() => {
|
|
@@ -6369,14 +6371,14 @@ const Rc = /* @__PURE__ */ Tt(gc, [["render", Ec]]), Oc = {
|
|
|
6369
6371
|
}), r = N(() => {
|
|
6370
6372
|
var e;
|
|
6371
6373
|
return l !== "runtime" ? !0 : (e = o.node.settings) == null ? void 0 : e.readonly;
|
|
6372
|
-
}), t = N(() =>
|
|
6374
|
+
}), t = N(() => h.value ? "dark" : "light");
|
|
6373
6375
|
return (e, i) => {
|
|
6374
6376
|
const s = ie("v-select");
|
|
6375
6377
|
return Le(l) === "editor" ? (G(), je("div", xc, [
|
|
6376
6378
|
Z(s, {
|
|
6377
|
-
"model-value":
|
|
6378
|
-
label:
|
|
6379
|
-
placeholder:
|
|
6379
|
+
"model-value": y.value,
|
|
6380
|
+
label: b.value,
|
|
6381
|
+
placeholder: m.value,
|
|
6380
6382
|
"hide-details": O.value,
|
|
6381
6383
|
"single-line": R.value,
|
|
6382
6384
|
readonly: r.value,
|
|
@@ -6384,9 +6386,9 @@ const Rc = /* @__PURE__ */ Tt(gc, [["render", Ec]]), Oc = {
|
|
|
6384
6386
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
6385
6387
|
])) : (G(), Q(s, {
|
|
6386
6388
|
key: 1,
|
|
6387
|
-
"model-value":
|
|
6388
|
-
label:
|
|
6389
|
-
placeholder:
|
|
6389
|
+
"model-value": y.value,
|
|
6390
|
+
label: b.value,
|
|
6391
|
+
placeholder: m.value,
|
|
6390
6392
|
"hide-details": O.value,
|
|
6391
6393
|
"single-line": R.value,
|
|
6392
6394
|
readonly: r.value,
|
|
@@ -6469,13 +6471,13 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6469
6471
|
outer: { type: Boolean }
|
|
6470
6472
|
},
|
|
6471
6473
|
setup(n) {
|
|
6472
|
-
const o = n, l = he(),
|
|
6474
|
+
const o = n, l = he(), h = Ve(), y = N(() => {
|
|
6473
6475
|
var u;
|
|
6474
6476
|
return (u = o.node.settings) == null ? void 0 : u.label;
|
|
6475
|
-
}),
|
|
6477
|
+
}), b = N(() => {
|
|
6476
6478
|
var u;
|
|
6477
6479
|
return (u = o.node.settings) == null ? void 0 : u.placeholder;
|
|
6478
|
-
}),
|
|
6480
|
+
}), m = N(() => {
|
|
6479
6481
|
var u;
|
|
6480
6482
|
return (u = o.node.settings) == null ? void 0 : u.hideDetails;
|
|
6481
6483
|
}), O = N(() => {
|
|
@@ -6484,7 +6486,7 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6484
6486
|
}), R = N(() => {
|
|
6485
6487
|
var u;
|
|
6486
6488
|
return l !== "runtime" ? !0 : (u = o.node.settings) == null ? void 0 : u.readonly;
|
|
6487
|
-
}), r = N(() =>
|
|
6489
|
+
}), r = N(() => h.value ? "dark" : "light"), t = N(() => {
|
|
6488
6490
|
var u;
|
|
6489
6491
|
return (u = o.node.slots) == null ? void 0 : u.append;
|
|
6490
6492
|
}), e = N(() => {
|
|
@@ -6501,9 +6503,9 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6501
6503
|
const a = ie("v-text-field");
|
|
6502
6504
|
return Le(l) === "editor" ? (G(), je("div", Ic, [
|
|
6503
6505
|
Z(a, {
|
|
6504
|
-
label:
|
|
6505
|
-
placeholder:
|
|
6506
|
-
"hide-details":
|
|
6506
|
+
label: y.value,
|
|
6507
|
+
placeholder: b.value,
|
|
6508
|
+
"hide-details": m.value,
|
|
6507
6509
|
"single-line": O.value,
|
|
6508
6510
|
readonly: R.value,
|
|
6509
6511
|
theme: r.value
|
|
@@ -6551,9 +6553,9 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6551
6553
|
]), 1032, ["label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
6552
6554
|
])) : (G(), Q(a, {
|
|
6553
6555
|
key: 1,
|
|
6554
|
-
label:
|
|
6555
|
-
placeholder:
|
|
6556
|
-
"hide-details":
|
|
6556
|
+
label: y.value,
|
|
6557
|
+
placeholder: b.value,
|
|
6558
|
+
"hide-details": m.value,
|
|
6557
6559
|
"single-line": O.value,
|
|
6558
6560
|
readonly: R.value,
|
|
6559
6561
|
theme: r.value
|
|
@@ -6736,7 +6738,7 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6736
6738
|
]
|
|
6737
6739
|
}, Cr = {
|
|
6738
6740
|
v1: Mc
|
|
6739
|
-
},
|
|
6741
|
+
}, xe = {}, Fc = {
|
|
6740
6742
|
key: "add",
|
|
6741
6743
|
name: "METHOD_ADD",
|
|
6742
6744
|
inputs: [],
|
|
@@ -6747,7 +6749,7 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6747
6749
|
}
|
|
6748
6750
|
]
|
|
6749
6751
|
}, K = (n) => {
|
|
6750
|
-
n.slots.some((o) => o.key === "default") && n.methods.unshift(Fc),
|
|
6752
|
+
n.slots.some((o) => o.key === "default") && n.methods.unshift(Fc), xe[n.key] = n;
|
|
6751
6753
|
};
|
|
6752
6754
|
K(wl);
|
|
6753
6755
|
K(Al);
|
|
@@ -6756,7 +6758,7 @@ K(jl);
|
|
|
6756
6758
|
K(zl);
|
|
6757
6759
|
K(fc);
|
|
6758
6760
|
K(vc);
|
|
6759
|
-
K(
|
|
6761
|
+
K(mc);
|
|
6760
6762
|
K(bc);
|
|
6761
6763
|
K(Oc);
|
|
6762
6764
|
K(Nc);
|
|
@@ -6764,10 +6766,10 @@ K(wc);
|
|
|
6764
6766
|
K(Ac);
|
|
6765
6767
|
K(Lc);
|
|
6766
6768
|
const Uc = (n, o, l) => {
|
|
6767
|
-
const
|
|
6768
|
-
return
|
|
6769
|
+
const h = n[o];
|
|
6770
|
+
return h ? typeof h == "function" ? h() : Promise.resolve(h) : new Promise((y, b) => {
|
|
6769
6771
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
6770
|
-
|
|
6772
|
+
b.bind(
|
|
6771
6773
|
null,
|
|
6772
6774
|
new Error(
|
|
6773
6775
|
"Unknown variable dynamic import: " + o + (o.split("/").length !== l ? ". Note that variables only represent file names one level deep." : "")
|
|
@@ -6779,7 +6781,25 @@ const Uc = (n, o, l) => {
|
|
|
6779
6781
|
async function Qc(n) {
|
|
6780
6782
|
return (await Uc(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en-ell9fdk3.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans-eeguv06v.js") }), `./locales/${n}/index.ts`, 4)).default;
|
|
6781
6783
|
}
|
|
6782
|
-
|
|
6784
|
+
function ef(n, o, l, h, y) {
|
|
6785
|
+
let b = n;
|
|
6786
|
+
for (let O = 0; O < o.length; O++)
|
|
6787
|
+
if (b = b.children[o[O]], !b) {
|
|
6788
|
+
console.assert(!1, `unpkg context failed parentKeys=${o}`);
|
|
6789
|
+
return;
|
|
6790
|
+
}
|
|
6791
|
+
let m = b.children[l];
|
|
6792
|
+
m ? m.dataSeq !== h && (m = {
|
|
6793
|
+
dataSeq: h,
|
|
6794
|
+
data: _e(y),
|
|
6795
|
+
children: {}
|
|
6796
|
+
}) : (m = {
|
|
6797
|
+
dataSeq: h,
|
|
6798
|
+
data: _e(y),
|
|
6799
|
+
children: {}
|
|
6800
|
+
}, b.children[l] = m);
|
|
6801
|
+
}
|
|
6802
|
+
const tf = [
|
|
6783
6803
|
"string",
|
|
6784
6804
|
"number",
|
|
6785
6805
|
"boolean",
|
|
@@ -6789,8 +6809,9 @@ const ef = [
|
|
|
6789
6809
|
export {
|
|
6790
6810
|
Tl as duplicateNode,
|
|
6791
6811
|
zc as duplicateNodes,
|
|
6792
|
-
|
|
6793
|
-
ef as
|
|
6812
|
+
xe as elements,
|
|
6813
|
+
ef as ensureContext,
|
|
6814
|
+
tf as fieldTypes,
|
|
6794
6815
|
ui as genId,
|
|
6795
6816
|
Yc as getNode,
|
|
6796
6817
|
Bn as getPropDefault,
|