x-runtime-lib 0.4.13 → 0.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +302 -296
- package/dist/types/data.d.ts +5 -3
- package/dist/utils/node.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48,8 +48,8 @@ const Gi = /* @__PURE__ */ new Set([
|
|
|
48
48
|
function pn(n) {
|
|
49
49
|
let s = "";
|
|
50
50
|
for (let p = 0; p < n; p++) {
|
|
51
|
-
const
|
|
52
|
-
s += Ar[
|
|
51
|
+
const v = Math.floor(Math.random() * Ar.length);
|
|
52
|
+
s += Ar[v];
|
|
53
53
|
}
|
|
54
54
|
return s;
|
|
55
55
|
}
|
|
@@ -87,11 +87,11 @@ function qi(n) {
|
|
|
87
87
|
var s = Hi.call(n, Me), p = n[Me];
|
|
88
88
|
try {
|
|
89
89
|
n[Me] = void 0;
|
|
90
|
-
var
|
|
90
|
+
var v = !0;
|
|
91
91
|
} catch {
|
|
92
92
|
}
|
|
93
|
-
var
|
|
94
|
-
return
|
|
93
|
+
var g = Ki.call(n);
|
|
94
|
+
return v && (s ? n[Me] = p : delete n[Me]), g;
|
|
95
95
|
}
|
|
96
96
|
var Zi = Object.prototype, Qi = Zi.toString;
|
|
97
97
|
function ea(n) {
|
|
@@ -167,8 +167,8 @@ var kt = de(q, "WeakMap"), Dr = Object.create, ga = /* @__PURE__ */ function() {
|
|
|
167
167
|
};
|
|
168
168
|
}();
|
|
169
169
|
function ba(n, s) {
|
|
170
|
-
var p = -1,
|
|
171
|
-
for (s || (s = Array(
|
|
170
|
+
var p = -1, v = n.length;
|
|
171
|
+
for (s || (s = Array(v)); ++p < v; )
|
|
172
172
|
s[p] = n[p];
|
|
173
173
|
return s;
|
|
174
174
|
}
|
|
@@ -180,7 +180,7 @@ var Fr = function() {
|
|
|
180
180
|
}
|
|
181
181
|
}();
|
|
182
182
|
function ma(n, s) {
|
|
183
|
-
for (var p = -1,
|
|
183
|
+
for (var p = -1, v = n == null ? 0 : n.length; ++p < v && s(n[p], p, n) !== !1; )
|
|
184
184
|
;
|
|
185
185
|
return n;
|
|
186
186
|
}
|
|
@@ -202,15 +202,15 @@ function _n(n, s) {
|
|
|
202
202
|
}
|
|
203
203
|
var Ta = Object.prototype, Sa = Ta.hasOwnProperty;
|
|
204
204
|
function En(n, s, p) {
|
|
205
|
-
var
|
|
206
|
-
(!(Sa.call(n, s) && _n(
|
|
205
|
+
var v = n[s];
|
|
206
|
+
(!(Sa.call(n, s) && _n(v, p)) || p === void 0 && !(s in n)) && yn(n, s, p);
|
|
207
207
|
}
|
|
208
|
-
function it(n, s, p,
|
|
209
|
-
var
|
|
208
|
+
function it(n, s, p, v) {
|
|
209
|
+
var g = !p;
|
|
210
210
|
p || (p = {});
|
|
211
211
|
for (var O = -1, m = s.length; ++O < m; ) {
|
|
212
212
|
var N = s[O], R = void 0;
|
|
213
|
-
R === void 0 && (R = n[N]),
|
|
213
|
+
R === void 0 && (R = n[N]), g ? yn(p, N, R) : En(p, N, R);
|
|
214
214
|
}
|
|
215
215
|
return p;
|
|
216
216
|
}
|
|
@@ -227,9 +227,9 @@ function jt(n) {
|
|
|
227
227
|
return n === p;
|
|
228
228
|
}
|
|
229
229
|
function xa(n, s) {
|
|
230
|
-
for (var p = -1,
|
|
231
|
-
|
|
232
|
-
return
|
|
230
|
+
for (var p = -1, v = Array(n); ++p < n; )
|
|
231
|
+
v[p] = s(p);
|
|
232
|
+
return v;
|
|
233
233
|
}
|
|
234
234
|
var Ca = "[object Arguments]";
|
|
235
235
|
function Lr(n) {
|
|
@@ -262,11 +262,11 @@ var Nn = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
262
262
|
}
|
|
263
263
|
}(), jr = Oe && Oe.isTypedArray, co = jr ? Bt(jr) : uo, fo = Object.prototype, lo = fo.hasOwnProperty;
|
|
264
264
|
function Tn(n, s) {
|
|
265
|
-
var p = Ut(n),
|
|
265
|
+
var p = Ut(n), v = !p && ka(n), g = !p && !v && On(n), O = !p && !v && !g && co(n), m = p || v || g || O, N = m ? xa(n.length, String) : [], R = N.length;
|
|
266
266
|
for (var r in n)
|
|
267
267
|
(s || lo.call(n, r)) && !(m && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
268
268
|
(r == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
269
|
-
|
|
269
|
+
g && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
270
270
|
O && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
|
|
271
271
|
Na(r, R))) && N.push(r);
|
|
272
272
|
return N;
|
|
@@ -300,8 +300,8 @@ function bo(n) {
|
|
|
300
300
|
if (!Ye(n))
|
|
301
301
|
return _o(n);
|
|
302
302
|
var s = jt(n), p = [];
|
|
303
|
-
for (var
|
|
304
|
-
|
|
303
|
+
for (var v in n)
|
|
304
|
+
v == "constructor" && (s || !go.call(n, v)) || p.push(v);
|
|
305
305
|
return p;
|
|
306
306
|
}
|
|
307
307
|
function Gt(n) {
|
|
@@ -337,8 +337,8 @@ function Ao(n, s) {
|
|
|
337
337
|
function pe(n) {
|
|
338
338
|
var s = -1, p = n == null ? 0 : n.length;
|
|
339
339
|
for (this.clear(); ++s < p; ) {
|
|
340
|
-
var
|
|
341
|
-
this.set(
|
|
340
|
+
var v = n[s];
|
|
341
|
+
this.set(v[0], v[1]);
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
pe.prototype.clear = mo;
|
|
@@ -360,8 +360,8 @@ function Fo(n) {
|
|
|
360
360
|
var s = this.__data__, p = at(s, n);
|
|
361
361
|
if (p < 0)
|
|
362
362
|
return !1;
|
|
363
|
-
var
|
|
364
|
-
return p ==
|
|
363
|
+
var v = s.length - 1;
|
|
364
|
+
return p == v ? s.pop() : Do.call(s, p, 1), --this.size, !0;
|
|
365
365
|
}
|
|
366
366
|
function Lo(n) {
|
|
367
367
|
var s = this.__data__, p = at(s, n);
|
|
@@ -371,14 +371,14 @@ function Mo(n) {
|
|
|
371
371
|
return at(this.__data__, n) > -1;
|
|
372
372
|
}
|
|
373
373
|
function Uo(n, s) {
|
|
374
|
-
var p = this.__data__,
|
|
375
|
-
return
|
|
374
|
+
var p = this.__data__, v = at(p, n);
|
|
375
|
+
return v < 0 ? (++this.size, p.push([n, s])) : p[v][1] = s, this;
|
|
376
376
|
}
|
|
377
377
|
function re(n) {
|
|
378
378
|
var s = -1, p = n == null ? 0 : n.length;
|
|
379
379
|
for (this.clear(); ++s < p; ) {
|
|
380
|
-
var
|
|
381
|
-
this.set(
|
|
380
|
+
var v = n[s];
|
|
381
|
+
this.set(v[0], v[1]);
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
re.prototype.clear = Io;
|
|
@@ -413,14 +413,14 @@ function Vo(n) {
|
|
|
413
413
|
return ot(this, n).has(n);
|
|
414
414
|
}
|
|
415
415
|
function Yo(n, s) {
|
|
416
|
-
var p = ot(this, n),
|
|
417
|
-
return p.set(n, s), this.size += p.size ==
|
|
416
|
+
var p = ot(this, n), v = p.size;
|
|
417
|
+
return p.set(n, s), this.size += p.size == v ? 0 : 1, this;
|
|
418
418
|
}
|
|
419
419
|
function Te(n) {
|
|
420
420
|
var s = -1, p = n == null ? 0 : n.length;
|
|
421
421
|
for (this.clear(); ++s < p; ) {
|
|
422
|
-
var
|
|
423
|
-
this.set(
|
|
422
|
+
var v = n[s];
|
|
423
|
+
this.set(v[0], v[1]);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
Te.prototype.clear = jo;
|
|
@@ -429,8 +429,8 @@ Te.prototype.get = Go;
|
|
|
429
429
|
Te.prototype.has = Vo;
|
|
430
430
|
Te.prototype.set = Yo;
|
|
431
431
|
function Pn(n, s) {
|
|
432
|
-
for (var p = -1,
|
|
433
|
-
n[
|
|
432
|
+
for (var p = -1, v = s.length, g = n.length; ++p < v; )
|
|
433
|
+
n[g + p] = s[p];
|
|
434
434
|
return n;
|
|
435
435
|
}
|
|
436
436
|
var wn = Sn(Object.getPrototypeOf, Object);
|
|
@@ -451,10 +451,10 @@ var Ho = 200;
|
|
|
451
451
|
function Ko(n, s) {
|
|
452
452
|
var p = this.__data__;
|
|
453
453
|
if (p instanceof re) {
|
|
454
|
-
var
|
|
455
|
-
if (!Be ||
|
|
456
|
-
return
|
|
457
|
-
p = this.__data__ = new Te(
|
|
454
|
+
var v = p.__data__;
|
|
455
|
+
if (!Be || v.length < Ho - 1)
|
|
456
|
+
return v.push([n, s]), this.size = ++p.size, this;
|
|
457
|
+
p = this.__data__ = new Te(v);
|
|
458
458
|
}
|
|
459
459
|
return p.set(n, s), this.size = p.size, this;
|
|
460
460
|
}
|
|
@@ -477,13 +477,13 @@ var xn = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
|
477
477
|
function eu(n, s) {
|
|
478
478
|
if (s)
|
|
479
479
|
return n.slice();
|
|
480
|
-
var p = n.length,
|
|
481
|
-
return n.copy(
|
|
480
|
+
var p = n.length, v = Gr ? Gr(p) : new n.constructor(p);
|
|
481
|
+
return n.copy(v), v;
|
|
482
482
|
}
|
|
483
483
|
function tu(n, s) {
|
|
484
|
-
for (var p = -1,
|
|
484
|
+
for (var p = -1, v = n == null ? 0 : n.length, g = 0, O = []; ++p < v; ) {
|
|
485
485
|
var m = n[p];
|
|
486
|
-
s(m, p, n) && (O[
|
|
486
|
+
s(m, p, n) && (O[g++] = m);
|
|
487
487
|
}
|
|
488
488
|
return O;
|
|
489
489
|
}
|
|
@@ -507,8 +507,8 @@ function ou(n, s) {
|
|
|
507
507
|
return it(n, An(n), s);
|
|
508
508
|
}
|
|
509
509
|
function In(n, s, p) {
|
|
510
|
-
var
|
|
511
|
-
return Ut(n) ?
|
|
510
|
+
var v = s(n);
|
|
511
|
+
return Ut(n) ? v : Pn(v, p(n));
|
|
512
512
|
}
|
|
513
513
|
function uu(n) {
|
|
514
514
|
return In(n, $t, Vt);
|
|
@@ -518,9 +518,9 @@ function su(n) {
|
|
|
518
518
|
}
|
|
519
519
|
var Dt = de(q, "DataView"), Ft = de(q, "Promise"), Lt = de(q, "Set"), Yr = "[object Map]", cu = "[object Object]", Xr = "[object Promise]", Wr = "[object Set]", Jr = "[object WeakMap]", zr = "[object DataView]", fu = he(Dt), lu = he(Be), pu = he(Ft), hu = he(Lt), du = he(kt), te = Ge;
|
|
520
520
|
(Dt && te(new Dt(new ArrayBuffer(1))) != zr || Be && te(new Be()) != Yr || Ft && te(Ft.resolve()) != Xr || Lt && te(new Lt()) != Wr || kt && te(new kt()) != Jr) && (te = function(n) {
|
|
521
|
-
var s = Ge(n), p = s == cu ? n.constructor : void 0,
|
|
522
|
-
if (
|
|
523
|
-
switch (
|
|
521
|
+
var s = Ge(n), p = s == cu ? n.constructor : void 0, v = p ? he(p) : "";
|
|
522
|
+
if (v)
|
|
523
|
+
switch (v) {
|
|
524
524
|
case fu:
|
|
525
525
|
return zr;
|
|
526
526
|
case lu:
|
|
@@ -563,13 +563,13 @@ function Ru(n, s) {
|
|
|
563
563
|
}
|
|
564
564
|
var Ou = "[object Boolean]", Nu = "[object Date]", Tu = "[object Map]", Su = "[object Number]", Pu = "[object RegExp]", wu = "[object Set]", xu = "[object String]", Cu = "[object Symbol]", Au = "[object ArrayBuffer]", Iu = "[object DataView]", ku = "[object Float32Array]", Du = "[object Float64Array]", Fu = "[object Int8Array]", Lu = "[object Int16Array]", Mu = "[object Int32Array]", Uu = "[object Uint8Array]", ju = "[object Uint8ClampedArray]", Bu = "[object Uint16Array]", $u = "[object Uint32Array]";
|
|
565
565
|
function Gu(n, s, p) {
|
|
566
|
-
var
|
|
566
|
+
var v = n.constructor;
|
|
567
567
|
switch (s) {
|
|
568
568
|
case Au:
|
|
569
569
|
return Yt(n);
|
|
570
570
|
case Ou:
|
|
571
571
|
case Nu:
|
|
572
|
-
return new
|
|
572
|
+
return new v(+n);
|
|
573
573
|
case Iu:
|
|
574
574
|
return Eu(n, p);
|
|
575
575
|
case ku:
|
|
@@ -583,14 +583,14 @@ function Gu(n, s, p) {
|
|
|
583
583
|
case $u:
|
|
584
584
|
return Ru(n, p);
|
|
585
585
|
case Tu:
|
|
586
|
-
return new
|
|
586
|
+
return new v();
|
|
587
587
|
case Su:
|
|
588
588
|
case xu:
|
|
589
|
-
return new
|
|
589
|
+
return new v(n);
|
|
590
590
|
case Pu:
|
|
591
591
|
return bu(n);
|
|
592
592
|
case wu:
|
|
593
|
-
return new
|
|
593
|
+
return new v();
|
|
594
594
|
case Cu:
|
|
595
595
|
return mu(n);
|
|
596
596
|
}
|
|
@@ -609,7 +609,7 @@ function zu(n) {
|
|
|
609
609
|
var Qr = Oe && Oe.isSet, Hu = Qr ? Bt(Qr) : zu, Ku = 1, qu = 2, Zu = 4, kn = "[object Arguments]", Qu = "[object Array]", es = "[object Boolean]", ts = "[object Date]", rs = "[object Error]", Dn = "[object Function]", ns = "[object GeneratorFunction]", is = "[object Map]", as = "[object Number]", Fn = "[object Object]", os = "[object RegExp]", us = "[object Set]", ss = "[object String]", cs = "[object Symbol]", fs = "[object WeakMap]", ls = "[object ArrayBuffer]", ps = "[object DataView]", hs = "[object Float32Array]", ds = "[object Float64Array]", vs = "[object Int8Array]", ys = "[object Int16Array]", _s = "[object Int32Array]", Es = "[object Uint8Array]", gs = "[object Uint8ClampedArray]", bs = "[object Uint16Array]", ms = "[object Uint32Array]", F = {};
|
|
610
610
|
F[kn] = F[Qu] = F[ls] = F[ps] = F[es] = F[ts] = F[hs] = F[ds] = F[vs] = F[ys] = F[_s] = F[is] = F[as] = F[Fn] = F[os] = F[us] = F[ss] = F[cs] = F[Es] = F[gs] = F[bs] = F[ms] = !0;
|
|
611
611
|
F[rs] = F[Dn] = F[fs] = !1;
|
|
612
|
-
function rt(n, s, p,
|
|
612
|
+
function rt(n, s, p, v, g, O) {
|
|
613
613
|
var m, N = s & Ku, R = s & qu, r = s & Zu;
|
|
614
614
|
if (m !== void 0)
|
|
615
615
|
return m;
|
|
@@ -623,12 +623,12 @@ function rt(n, s, p, y, E, O) {
|
|
|
623
623
|
var e = te(n), i = e == Dn || e == ns;
|
|
624
624
|
if (On(n))
|
|
625
625
|
return eu(n, N);
|
|
626
|
-
if (e == Fn || e == kn || i && !
|
|
626
|
+
if (e == Fn || e == kn || i && !g) {
|
|
627
627
|
if (m = R || i ? {} : Vu(n), !N)
|
|
628
628
|
return R ? ou(n, Zo(m, n)) : iu(n, qo(m, n));
|
|
629
629
|
} else {
|
|
630
630
|
if (!F[e])
|
|
631
|
-
return
|
|
631
|
+
return g ? n : {};
|
|
632
632
|
m = Gu(n, e, N);
|
|
633
633
|
}
|
|
634
634
|
}
|
|
@@ -681,17 +681,17 @@ function en(n) {
|
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
function tn(n, s) {
|
|
684
|
-
function p(
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
}) :
|
|
684
|
+
function p(v, g) {
|
|
685
|
+
g.static || (g.children ? g.array ? v[g.key] = en(g) : g.children.forEach((O) => {
|
|
686
|
+
v[g.key] = {}, p(v[g.key], O);
|
|
687
|
+
}) : v[g.key] = en(g));
|
|
688
688
|
}
|
|
689
|
-
s.forEach((
|
|
689
|
+
s.forEach((v) => p(n, v));
|
|
690
690
|
}
|
|
691
|
-
function Ts(n, s, p,
|
|
691
|
+
function Ts(n, s, p, v, g) {
|
|
692
692
|
const O = Ns(n, s);
|
|
693
693
|
if (!O) {
|
|
694
|
-
console.error(
|
|
694
|
+
console.error(`prop tag not found type=${n} subtype=${s}`);
|
|
695
695
|
return;
|
|
696
696
|
}
|
|
697
697
|
const m = ln[p];
|
|
@@ -699,66 +699,72 @@ function Ts(n, s, p, y, E) {
|
|
|
699
699
|
console.error(`pkg not found version=${p}`);
|
|
700
700
|
return;
|
|
701
701
|
}
|
|
702
|
-
const N = {
|
|
703
|
-
|
|
704
|
-
|
|
702
|
+
const N = {
|
|
703
|
+
basic: {
|
|
704
|
+
id: "",
|
|
705
|
+
key: ""
|
|
706
|
+
}
|
|
707
|
+
}, R = pn(16);
|
|
708
|
+
if (v) {
|
|
709
|
+
const r = m.refKey, t = g;
|
|
705
710
|
if (!m.elements.has(r)) {
|
|
706
|
-
console.error(`[ref] element not found in pkg key=${
|
|
711
|
+
console.error(`[ref] element not found in pkg key=${r}`);
|
|
707
712
|
return;
|
|
708
713
|
}
|
|
709
|
-
const
|
|
710
|
-
if (!
|
|
711
|
-
console.error(`[ref] element not found in global key=${
|
|
714
|
+
const e = Ne[r];
|
|
715
|
+
if (!e) {
|
|
716
|
+
console.error(`[ref] element not found in global key=${r}`);
|
|
712
717
|
return;
|
|
713
718
|
}
|
|
714
|
-
const
|
|
715
|
-
if (!
|
|
716
|
-
console.error(`[ref] props not found key=${
|
|
719
|
+
const i = e.props[O];
|
|
720
|
+
if (!i) {
|
|
721
|
+
console.error(`[ref] props not found key=${r} tag=${O}`);
|
|
717
722
|
return;
|
|
718
723
|
}
|
|
719
|
-
tn(N,
|
|
720
|
-
id:
|
|
724
|
+
tn(N, i), N.basic.id = R, N.basic.key = r, N.ref = {
|
|
725
|
+
id: t
|
|
721
726
|
};
|
|
722
727
|
} else {
|
|
723
|
-
|
|
724
|
-
|
|
728
|
+
const r = g;
|
|
729
|
+
if (!m.elements.has(r)) {
|
|
730
|
+
console.error(`[key] element not found in pkg key=${r}`);
|
|
725
731
|
return;
|
|
726
732
|
}
|
|
727
|
-
const
|
|
728
|
-
if (!
|
|
729
|
-
console.error(`[key] element not found in global key=${
|
|
733
|
+
const t = Ne[r];
|
|
734
|
+
if (!t) {
|
|
735
|
+
console.error(`[key] element not found in global key=${r}`);
|
|
730
736
|
return;
|
|
731
737
|
}
|
|
732
|
-
const
|
|
733
|
-
if (!
|
|
734
|
-
console.error(`[key] props not found key=${
|
|
738
|
+
const e = t.props[O];
|
|
739
|
+
if (!e) {
|
|
740
|
+
console.error(`[key] props not found key=${r} tag=${O}`);
|
|
735
741
|
return;
|
|
736
742
|
}
|
|
737
|
-
tn(N,
|
|
743
|
+
tn(N, e), N.basic.id = R, N.basic.key = r, t.leaf || (N.children = []);
|
|
738
744
|
}
|
|
739
745
|
return N;
|
|
740
746
|
}
|
|
741
747
|
function dc(n, s) {
|
|
742
|
-
function p(
|
|
743
|
-
if (
|
|
744
|
-
return
|
|
745
|
-
if (
|
|
746
|
-
for (let
|
|
747
|
-
const O = p(
|
|
748
|
+
function p(v) {
|
|
749
|
+
if (v.basic.id === s)
|
|
750
|
+
return v;
|
|
751
|
+
if (v.children)
|
|
752
|
+
for (let g = 0; g < v.children.length; g++) {
|
|
753
|
+
const O = p(v.children[g]);
|
|
748
754
|
if (O)
|
|
749
755
|
return O;
|
|
750
756
|
}
|
|
751
757
|
}
|
|
752
|
-
for (let
|
|
753
|
-
const
|
|
754
|
-
if (
|
|
755
|
-
return
|
|
758
|
+
for (let v = 0; v < n.length; v++) {
|
|
759
|
+
const g = p(n[v]);
|
|
760
|
+
if (g)
|
|
761
|
+
return g;
|
|
756
762
|
}
|
|
757
763
|
}
|
|
758
764
|
function vc(n) {
|
|
759
|
-
function s(
|
|
760
|
-
var
|
|
761
|
-
|
|
765
|
+
function s(v) {
|
|
766
|
+
var g;
|
|
767
|
+
v.basic.id = pn(16), (g = v.children) == null || g.forEach((O) => s(O));
|
|
762
768
|
}
|
|
763
769
|
const p = Mt(n);
|
|
764
770
|
return s(p), p;
|
|
@@ -821,12 +827,12 @@ const Ds = /* @__PURE__ */ un({
|
|
|
821
827
|
outer: { type: Boolean }
|
|
822
828
|
},
|
|
823
829
|
setup(n) {
|
|
824
|
-
const s = xs(), p = n,
|
|
830
|
+
const s = xs(), p = n, v = J(() => p.node.settings.text), g = J(() => p.node.settings.disabled), O = J(() => p.node.settings.variant), m = J(() => p.node.settings.density), N = J(() => p.node.settings.block), R = J(() => s.value ? "dark" : "light");
|
|
825
831
|
return (r, t) => {
|
|
826
832
|
const e = Ai("v-btn");
|
|
827
833
|
return sn(), cn(e, {
|
|
828
|
-
text:
|
|
829
|
-
disabled:
|
|
834
|
+
text: v.value,
|
|
835
|
+
disabled: g.value,
|
|
830
836
|
variant: O.value,
|
|
831
837
|
density: m.value,
|
|
832
838
|
block: N.value,
|
|
@@ -981,7 +987,7 @@ const Ds = /* @__PURE__ */ un({
|
|
|
981
987
|
}
|
|
982
988
|
];
|
|
983
989
|
function js(n) {
|
|
984
|
-
const s = Ps(), p = ws(),
|
|
990
|
+
const s = Ps(), p = ws(), v = J(() => n.node.width), g = J(() => n.node.minWidth), O = J(() => n.node.maxWidth), m = J(() => {
|
|
985
991
|
if (n.outer && s === "editor") {
|
|
986
992
|
const t = Ct(n.node.height);
|
|
987
993
|
if (t)
|
|
@@ -1004,9 +1010,9 @@ function js(n) {
|
|
|
1004
1010
|
return n.node.maxHeight;
|
|
1005
1011
|
});
|
|
1006
1012
|
function r(t) {
|
|
1007
|
-
|
|
1013
|
+
v.value && (t.width = v.value), g.value && (t.minWidth = g.value), O.value && (t.maxWidth = O.value), m.value && (t.height = m.value), N.value && (t.minHeight = N.value), R.value && (t.maxHeight = R.value);
|
|
1008
1014
|
}
|
|
1009
|
-
return { width:
|
|
1015
|
+
return { width: v, minWidth: g, maxWidth: O, height: m, minHeight: N, maxHeight: R, applySize: r };
|
|
1010
1016
|
}
|
|
1011
1017
|
var Bs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1012
1018
|
function $s(n) {
|
|
@@ -1016,17 +1022,17 @@ function Gs(n) {
|
|
|
1016
1022
|
if (n.__esModule) return n;
|
|
1017
1023
|
var s = n.default;
|
|
1018
1024
|
if (typeof s == "function") {
|
|
1019
|
-
var p = function
|
|
1020
|
-
return this instanceof
|
|
1025
|
+
var p = function v() {
|
|
1026
|
+
return this instanceof v ? Reflect.construct(s, arguments, this.constructor) : s.apply(this, arguments);
|
|
1021
1027
|
};
|
|
1022
1028
|
p.prototype = s.prototype;
|
|
1023
1029
|
} else p = {};
|
|
1024
|
-
return Object.defineProperty(p, "__esModule", { value: !0 }), Object.keys(n).forEach(function(
|
|
1025
|
-
var
|
|
1026
|
-
Object.defineProperty(p,
|
|
1030
|
+
return Object.defineProperty(p, "__esModule", { value: !0 }), Object.keys(n).forEach(function(v) {
|
|
1031
|
+
var g = Object.getOwnPropertyDescriptor(n, v);
|
|
1032
|
+
Object.defineProperty(p, v, g.get ? g : {
|
|
1027
1033
|
enumerable: !0,
|
|
1028
1034
|
get: function() {
|
|
1029
|
-
return n[
|
|
1035
|
+
return n[v];
|
|
1030
1036
|
}
|
|
1031
1037
|
});
|
|
1032
1038
|
}), p;
|
|
@@ -1037,8 +1043,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1037
1043
|
default: Vs
|
|
1038
1044
|
}, Symbol.toStringTag, { value: "Module" })), Xs = /* @__PURE__ */ Gs(Ys);
|
|
1039
1045
|
(function(n, s) {
|
|
1040
|
-
(function(
|
|
1041
|
-
n.exports =
|
|
1046
|
+
(function(v, g) {
|
|
1047
|
+
n.exports = g();
|
|
1042
1048
|
})(Bs, () => (
|
|
1043
1049
|
/******/
|
|
1044
1050
|
(() => {
|
|
@@ -1070,8 +1076,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1070
1076
|
typeof this[l] == "function" && (a = l.match(c)) && (this.stepFunctions_[a[1]] = this[l].bind(this));
|
|
1071
1077
|
this.globalScope = this.createScope(this.ast, null), this.globalObject = this.globalScope.object, this.ast = this.parse_(this.polyfills_.join(`
|
|
1072
1078
|
`), "polyfills"), this.polyfills_ = void 0, r.stripLocations_(this.ast, void 0, void 0);
|
|
1073
|
-
var
|
|
1074
|
-
|
|
1079
|
+
var y = new r.State(this.ast, this.globalScope);
|
|
1080
|
+
y.done = !1, this.stateStack = [y], this.run(), this.value = void 0, this.ast = o, y = new r.State(this.ast, this.globalScope), y.done = !1, this.stateStack.length = 0, this.stateStack[0] = y;
|
|
1075
1081
|
};
|
|
1076
1082
|
r.Completion = {
|
|
1077
1083
|
NORMAL: 0,
|
|
@@ -1291,8 +1297,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1291
1297
|
return function(l) {
|
|
1292
1298
|
try {
|
|
1293
1299
|
return a(l);
|
|
1294
|
-
} catch (
|
|
1295
|
-
e.throwException(e.URI_ERROR,
|
|
1300
|
+
} catch (y) {
|
|
1301
|
+
e.throwException(e.URI_ERROR, y.message);
|
|
1296
1302
|
}
|
|
1297
1303
|
};
|
|
1298
1304
|
}(u[c][0]), this.setProperty(
|
|
@@ -1339,14 +1345,14 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1339
1345
|
var a = "";
|
|
1340
1346
|
var l = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1341
1347
|
if (l) {
|
|
1342
|
-
for (var
|
|
1343
|
-
var T =
|
|
1348
|
+
for (var y = l.split(/\s*,\s*/), E = 0; E < y.length; E++) {
|
|
1349
|
+
var T = y[E];
|
|
1344
1350
|
o.test(T) || e.throwException(
|
|
1345
1351
|
e.SYNTAX_ERROR,
|
|
1346
1352
|
"Invalid function argument: " + T
|
|
1347
1353
|
);
|
|
1348
1354
|
}
|
|
1349
|
-
l =
|
|
1355
|
+
l = y.join(", ");
|
|
1350
1356
|
}
|
|
1351
1357
|
try {
|
|
1352
1358
|
var b = e.parse_(
|
|
@@ -1391,11 +1397,11 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1391
1397
|
0,
|
|
1392
1398
|
r.READONLY_NONENUMERABLE_DESCRIPTOR
|
|
1393
1399
|
), this.FUNCTION_PROTO.class = "Function", i = function(c, a, l) {
|
|
1394
|
-
var
|
|
1395
|
-
|
|
1400
|
+
var y = e.stateStack[e.stateStack.length - 1];
|
|
1401
|
+
y.func_ = c, y.funcThis_ = a, y.arguments_ = [], l != null && (l instanceof r.Object ? y.arguments_ = Array.from(l.properties) : e.throwException(
|
|
1396
1402
|
e.TYPE_ERROR,
|
|
1397
1403
|
"CreateListFromArrayLike called on non-object"
|
|
1398
|
-
)),
|
|
1404
|
+
)), y.doneExec_ = !1;
|
|
1399
1405
|
}, this.setNativeFunctionPrototype(this.FUNCTION, "apply", i), this.polyfills_.push(
|
|
1400
1406
|
/* POLYFILL START */
|
|
1401
1407
|
// Flatten the apply args list to remove any inheritance or getter functions.
|
|
@@ -1586,8 +1592,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1586
1592
|
e.TYPE_ERROR,
|
|
1587
1593
|
"Object.getOwnPropertyDescriptor called on non-object: " + c
|
|
1588
1594
|
), a = String(a), a in c.properties) {
|
|
1589
|
-
var l = Object.getOwnPropertyDescriptor(c.properties, a),
|
|
1590
|
-
return
|
|
1595
|
+
var l = Object.getOwnPropertyDescriptor(c.properties, a), y = c.getter[a], E = c.setter[a], T = e.createObjectProto(e.OBJECT_PROTO);
|
|
1596
|
+
return y || E ? (e.setProperty(T, "get", y), e.setProperty(T, "set", E)) : (e.setProperty(
|
|
1591
1597
|
T,
|
|
1592
1598
|
"value",
|
|
1593
1599
|
/** @type {!Interpreter.Value} */
|
|
@@ -2166,106 +2172,106 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2166
2172
|
o[u],
|
|
2167
2173
|
String.prototype[o[u]]
|
|
2168
2174
|
);
|
|
2169
|
-
i = function(a, l,
|
|
2170
|
-
l = e.pseudoToNative(l),
|
|
2175
|
+
i = function(a, l, y) {
|
|
2176
|
+
l = e.pseudoToNative(l), y = e.pseudoToNative(y);
|
|
2171
2177
|
try {
|
|
2172
2178
|
return String(this).localeCompare(
|
|
2173
2179
|
a,
|
|
2174
2180
|
/** @type {?} */
|
|
2175
2181
|
l,
|
|
2176
2182
|
/** @type {?} */
|
|
2177
|
-
|
|
2183
|
+
y
|
|
2178
2184
|
);
|
|
2179
|
-
} catch (
|
|
2185
|
+
} catch (E) {
|
|
2180
2186
|
e.throwException(
|
|
2181
2187
|
e.ERROR,
|
|
2182
|
-
"localeCompare: " +
|
|
2188
|
+
"localeCompare: " + E.message
|
|
2183
2189
|
);
|
|
2184
2190
|
}
|
|
2185
|
-
}, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a, l,
|
|
2186
|
-
var
|
|
2187
|
-
if (l = l ? Number(l) : void 0, e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a,
|
|
2191
|
+
}, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a, l, y) {
|
|
2192
|
+
var E = String(this);
|
|
2193
|
+
if (l = l ? Number(l) : void 0, e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, y), e.REGEXP_MODE === 2)) {
|
|
2188
2194
|
if (r.vm) {
|
|
2189
2195
|
var T = {
|
|
2190
|
-
string:
|
|
2196
|
+
string: E,
|
|
2191
2197
|
separator: a,
|
|
2192
2198
|
limit: l
|
|
2193
|
-
}, b = "string.split(separator, limit)", D = e.vmCall(b, T, a,
|
|
2194
|
-
D !== r.REGEXP_TIMEOUT &&
|
|
2199
|
+
}, b = "string.split(separator, limit)", D = e.vmCall(b, T, a, y);
|
|
2200
|
+
D !== r.REGEXP_TIMEOUT && y(e.nativeToPseudo(D));
|
|
2195
2201
|
} else {
|
|
2196
2202
|
var P = e.createWorker(), I = e.regExpTimeout(
|
|
2197
2203
|
a,
|
|
2198
2204
|
P,
|
|
2199
|
-
|
|
2205
|
+
y
|
|
2200
2206
|
);
|
|
2201
2207
|
P.onmessage = function(X) {
|
|
2202
|
-
clearTimeout(I),
|
|
2203
|
-
}, P.postMessage(["split",
|
|
2208
|
+
clearTimeout(I), y(e.nativeToPseudo(X.data));
|
|
2209
|
+
}, P.postMessage(["split", E, a, l]);
|
|
2204
2210
|
}
|
|
2205
2211
|
return;
|
|
2206
2212
|
}
|
|
2207
|
-
var D =
|
|
2208
|
-
|
|
2213
|
+
var D = E.split(a, l);
|
|
2214
|
+
y(e.nativeToPseudo(D));
|
|
2209
2215
|
}, this.setAsyncFunctionPrototype(this.STRING, "split", i), i = function(a, l) {
|
|
2210
|
-
var
|
|
2216
|
+
var y = String(this);
|
|
2211
2217
|
if (a = e.isa(a, e.REGEXP) ? a.data : new RegExp(a), e.maybeThrowRegExp(a, l), e.REGEXP_MODE === 2) {
|
|
2212
2218
|
if (r.vm) {
|
|
2213
|
-
var
|
|
2214
|
-
string:
|
|
2219
|
+
var E = {
|
|
2220
|
+
string: y,
|
|
2215
2221
|
regexp: a
|
|
2216
|
-
}, T = "string.match(regexp)", I = e.vmCall(T,
|
|
2222
|
+
}, T = "string.match(regexp)", I = e.vmCall(T, E, a, l);
|
|
2217
2223
|
I !== r.REGEXP_TIMEOUT && l(I && e.matchToPseudo_(I));
|
|
2218
2224
|
} else {
|
|
2219
2225
|
var b = e.createWorker(), P = e.regExpTimeout(a, b, l);
|
|
2220
2226
|
b.onmessage = function(D) {
|
|
2221
2227
|
clearTimeout(P), l(D.data && e.matchToPseudo_(D.data));
|
|
2222
|
-
}, b.postMessage(["match",
|
|
2228
|
+
}, b.postMessage(["match", y, a]);
|
|
2223
2229
|
}
|
|
2224
2230
|
return;
|
|
2225
2231
|
}
|
|
2226
|
-
var I =
|
|
2232
|
+
var I = y.match(a);
|
|
2227
2233
|
l(I && e.matchToPseudo_(I));
|
|
2228
2234
|
}, this.setAsyncFunctionPrototype(this.STRING, "match", i), i = function(a, l) {
|
|
2229
|
-
var
|
|
2235
|
+
var y = String(this);
|
|
2230
2236
|
if (e.isa(a, e.REGEXP) ? a = a.data : a = new RegExp(a), e.maybeThrowRegExp(a, l), e.REGEXP_MODE === 2) {
|
|
2231
2237
|
if (r.vm) {
|
|
2232
|
-
var
|
|
2233
|
-
string:
|
|
2238
|
+
var E = {
|
|
2239
|
+
string: y,
|
|
2234
2240
|
regexp: a
|
|
2235
|
-
}, T = "string.search(regexp)", b = e.vmCall(T,
|
|
2241
|
+
}, T = "string.search(regexp)", b = e.vmCall(T, E, a, l);
|
|
2236
2242
|
b !== r.REGEXP_TIMEOUT && l(b);
|
|
2237
2243
|
} else {
|
|
2238
2244
|
var P = e.createWorker(), I = e.regExpTimeout(a, P, l);
|
|
2239
2245
|
P.onmessage = function(D) {
|
|
2240
2246
|
clearTimeout(I), l(D.data);
|
|
2241
|
-
}, P.postMessage(["search",
|
|
2247
|
+
}, P.postMessage(["search", y, a]);
|
|
2242
2248
|
}
|
|
2243
2249
|
return;
|
|
2244
2250
|
}
|
|
2245
|
-
l(
|
|
2246
|
-
}, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a, l,
|
|
2247
|
-
var
|
|
2248
|
-
if (l = String(l), e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a,
|
|
2251
|
+
l(y.search(a));
|
|
2252
|
+
}, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a, l, y) {
|
|
2253
|
+
var E = String(this);
|
|
2254
|
+
if (l = String(l), e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, y), e.REGEXP_MODE === 2)) {
|
|
2249
2255
|
if (r.vm) {
|
|
2250
2256
|
var T = {
|
|
2251
|
-
string:
|
|
2257
|
+
string: E,
|
|
2252
2258
|
substr: a,
|
|
2253
2259
|
newSubstr: l
|
|
2254
|
-
}, b = "string.replace(substr, newSubstr)", P = e.vmCall(b, T, a,
|
|
2255
|
-
P !== r.REGEXP_TIMEOUT &&
|
|
2260
|
+
}, b = "string.replace(substr, newSubstr)", P = e.vmCall(b, T, a, y);
|
|
2261
|
+
P !== r.REGEXP_TIMEOUT && y(P);
|
|
2256
2262
|
} else {
|
|
2257
2263
|
var I = e.createWorker(), D = e.regExpTimeout(
|
|
2258
2264
|
a,
|
|
2259
2265
|
I,
|
|
2260
|
-
|
|
2266
|
+
y
|
|
2261
2267
|
);
|
|
2262
2268
|
I.onmessage = function(X) {
|
|
2263
|
-
clearTimeout(D),
|
|
2264
|
-
}, I.postMessage(["replace",
|
|
2269
|
+
clearTimeout(D), y(X.data);
|
|
2270
|
+
}, I.postMessage(["replace", E, a, l]);
|
|
2265
2271
|
}
|
|
2266
2272
|
return;
|
|
2267
2273
|
}
|
|
2268
|
-
|
|
2274
|
+
y(E.replace(a, l));
|
|
2269
2275
|
}, this.setAsyncFunctionPrototype(this.STRING, "replace", i), this.polyfills_.push(
|
|
2270
2276
|
/* POLYFILL START */
|
|
2271
2277
|
"(function() {",
|
|
@@ -2371,10 +2377,10 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2371
2377
|
/** @type {?} */
|
|
2372
2378
|
l
|
|
2373
2379
|
);
|
|
2374
|
-
} catch (
|
|
2380
|
+
} catch (y) {
|
|
2375
2381
|
e.throwException(
|
|
2376
2382
|
e.ERROR,
|
|
2377
|
-
"toLocaleString: " +
|
|
2383
|
+
"toLocaleString: " + y.message
|
|
2378
2384
|
);
|
|
2379
2385
|
}
|
|
2380
2386
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toLocaleString", i);
|
|
@@ -2383,10 +2389,10 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2383
2389
|
i = function(a, l) {
|
|
2384
2390
|
if (!e.calledWithNew())
|
|
2385
2391
|
return r.nativeGlobal.Date();
|
|
2386
|
-
var
|
|
2392
|
+
var y = [null].concat(Array.from(arguments));
|
|
2387
2393
|
return this.data = new (Function.prototype.bind.apply(
|
|
2388
2394
|
r.nativeGlobal.Date,
|
|
2389
|
-
|
|
2395
|
+
y
|
|
2390
2396
|
))(), this;
|
|
2391
2397
|
}, this.DATE = this.createNativeFunction(i, !0), this.DATE_PROTO = this.DATE.properties.prototype, this.setProperty(
|
|
2392
2398
|
t,
|
|
@@ -2461,9 +2467,9 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2461
2467
|
e.TYPE_ERROR,
|
|
2462
2468
|
c + " not called on a Date"
|
|
2463
2469
|
);
|
|
2464
|
-
for (var
|
|
2465
|
-
|
|
2466
|
-
return l[c].apply(l,
|
|
2470
|
+
for (var y = [], E = 0; E < arguments.length; E++)
|
|
2471
|
+
y[E] = e.pseudoToNative(arguments[E]);
|
|
2472
|
+
return l[c].apply(l, y);
|
|
2467
2473
|
};
|
|
2468
2474
|
}(o[u]), this.setNativeFunctionPrototype(this.DATE, o[u], i);
|
|
2469
2475
|
i = function() {
|
|
@@ -2492,8 +2498,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2492
2498
|
);
|
|
2493
2499
|
try {
|
|
2494
2500
|
var l = new r.nativeGlobal.RegExp(u, c);
|
|
2495
|
-
} catch (
|
|
2496
|
-
e.throwException(e.SYNTAX_ERROR,
|
|
2501
|
+
} catch (y) {
|
|
2502
|
+
e.throwException(e.SYNTAX_ERROR, y.message);
|
|
2497
2503
|
}
|
|
2498
2504
|
return e.populateRegExp(a, l), a;
|
|
2499
2505
|
}, this.REGEXP = this.createNativeFunction(i, !0), this.REGEXP_PROTO = this.REGEXP.properties.prototype, this.setProperty(
|
|
@@ -2537,13 +2543,13 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2537
2543
|
var l = {
|
|
2538
2544
|
string: u,
|
|
2539
2545
|
regexp: a
|
|
2540
|
-
},
|
|
2546
|
+
}, y = "regexp.exec(string)", P = e.vmCall(y, l, a, c);
|
|
2541
2547
|
P !== r.REGEXP_TIMEOUT && (e.setProperty(this, "lastIndex", a.lastIndex), c(e.matchToPseudo_(P)));
|
|
2542
2548
|
} else {
|
|
2543
|
-
var
|
|
2544
|
-
|
|
2549
|
+
var E = e.createWorker(), T = e.regExpTimeout(a, E, c), b = this;
|
|
2550
|
+
E.onmessage = function(I) {
|
|
2545
2551
|
clearTimeout(T), e.setProperty(b, "lastIndex", I.data[1]), c(e.matchToPseudo_(I.data[0]));
|
|
2546
|
-
},
|
|
2552
|
+
}, E.postMessage(["exec", a, a.lastIndex, u]);
|
|
2547
2553
|
}
|
|
2548
2554
|
return;
|
|
2549
2555
|
}
|
|
@@ -2686,13 +2692,13 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2686
2692
|
) : a && a.class === "Array" ? (a = i.pseudoToNative(a), a = a.filter(function(T) {
|
|
2687
2693
|
return typeof T == "string" || typeof T == "number";
|
|
2688
2694
|
})) : a = null, typeof l != "string" && typeof l != "number" && (l = void 0);
|
|
2689
|
-
var
|
|
2695
|
+
var y = i.pseudoToNative(c);
|
|
2690
2696
|
try {
|
|
2691
|
-
var
|
|
2697
|
+
var E = JSON.stringify(y, a, l);
|
|
2692
2698
|
} catch (T) {
|
|
2693
2699
|
i.throwException(i.TYPE_ERROR, T.message);
|
|
2694
2700
|
}
|
|
2695
|
-
return
|
|
2701
|
+
return E;
|
|
2696
2702
|
}, this.setProperty(
|
|
2697
2703
|
o,
|
|
2698
2704
|
"stringify",
|
|
@@ -2752,17 +2758,17 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2752
2758
|
}
|
|
2753
2759
|
c.loc && (!i.length || c.type === "CallExpression") && i.push({ datumLoc: c.loc });
|
|
2754
2760
|
}
|
|
2755
|
-
for (var l = String(this.getProperty(t, "name")),
|
|
2761
|
+
for (var l = String(this.getProperty(t, "name")), y = String(this.getProperty(t, "message")), E = l + ": " + y + `
|
|
2756
2762
|
`, o = 0; o < i.length; o++) {
|
|
2757
2763
|
var T = i[o].datumLoc, b = i[o].datumName, P = T.source + ":" + T.start.line + ":" + T.start.column;
|
|
2758
|
-
b ?
|
|
2759
|
-
` :
|
|
2764
|
+
b ? E += " at " + b + " (" + P + `)
|
|
2765
|
+
` : E += " at " + P + `
|
|
2760
2766
|
`;
|
|
2761
2767
|
}
|
|
2762
2768
|
this.setProperty(
|
|
2763
2769
|
t,
|
|
2764
2770
|
"stack",
|
|
2765
|
-
|
|
2771
|
+
E.trim(),
|
|
2766
2772
|
r.NONENUMERABLE_DESCRIPTOR
|
|
2767
2773
|
);
|
|
2768
2774
|
}, r.prototype.createWorker = function() {
|
|
@@ -2902,8 +2908,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2902
2908
|
return a.pseudoToNative(D);
|
|
2903
2909
|
}), I = t.apply(a, P);
|
|
2904
2910
|
return a.nativeToPseudo(I);
|
|
2905
|
-
},
|
|
2906
|
-
return i.pseudo.push(
|
|
2911
|
+
}, y = Object.getOwnPropertyDescriptor(t, "prototype"), E = this.createNativeFunction(l, !!y);
|
|
2912
|
+
return i.pseudo.push(E), E;
|
|
2907
2913
|
}
|
|
2908
2914
|
var T;
|
|
2909
2915
|
Array.isArray(t) ? T = this.createArray() : T = this.createObjectProto(this.OBJECT_PROTO), i.pseudo.push(T);
|
|
@@ -2936,10 +2942,10 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2936
2942
|
var a = this.isa(t, this.ARRAY) ? [] : {};
|
|
2937
2943
|
i.native.push(a);
|
|
2938
2944
|
var l;
|
|
2939
|
-
for (var
|
|
2940
|
-
l = this.pseudoToNative(t.properties[
|
|
2945
|
+
for (var y in t.properties)
|
|
2946
|
+
l = this.pseudoToNative(t.properties[y], i), Object.defineProperty(
|
|
2941
2947
|
a,
|
|
2942
|
-
|
|
2948
|
+
y,
|
|
2943
2949
|
{
|
|
2944
2950
|
value: l,
|
|
2945
2951
|
writable: !0,
|
|
@@ -3034,10 +3040,10 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3034
3040
|
return;
|
|
3035
3041
|
}
|
|
3036
3042
|
if (o) {
|
|
3037
|
-
var
|
|
3038
|
-
"get" in o && o.get && (t.getter[e] = o.get,
|
|
3043
|
+
var y = {};
|
|
3044
|
+
"get" in o && o.get && (t.getter[e] = o.get, y.get = this.setProperty.placeholderGet_), "set" in o && o.set && (t.setter[e] = o.set, y.set = this.setProperty.placeholderSet_), "configurable" in o && (y.configurable = o.configurable), "enumerable" in o && (y.enumerable = o.enumerable), "writable" in o && (y.writable = o.writable, delete t.getter[e], delete t.setter[e]), "value" in o ? (y.value = o.value, delete t.getter[e], delete t.setter[e]) : i !== r.VALUE_IN_DESCRIPTOR && (y.value = i, delete t.getter[e], delete t.setter[e]);
|
|
3039
3045
|
try {
|
|
3040
|
-
Object.defineProperty(t.properties, e,
|
|
3046
|
+
Object.defineProperty(t.properties, e, y);
|
|
3041
3047
|
} catch {
|
|
3042
3048
|
this.throwException(this.TYPE_ERROR, "Cannot redefine property: " + e);
|
|
3043
3049
|
}
|
|
@@ -3045,14 +3051,14 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3045
3051
|
} else {
|
|
3046
3052
|
if (i === r.VALUE_IN_DESCRIPTOR)
|
|
3047
3053
|
throw ReferenceError("Value not specified");
|
|
3048
|
-
for (var
|
|
3049
|
-
if (
|
|
3050
|
-
|
|
3054
|
+
for (var E = t; !(e in E.properties); )
|
|
3055
|
+
if (E = this.getPrototype(E), !E) {
|
|
3056
|
+
E = t;
|
|
3051
3057
|
break;
|
|
3052
3058
|
}
|
|
3053
|
-
if (
|
|
3054
|
-
return this.setterStep_ = !0,
|
|
3055
|
-
if (
|
|
3059
|
+
if (E.setter && E.setter[e])
|
|
3060
|
+
return this.setterStep_ = !0, E.setter[e];
|
|
3061
|
+
if (E.getter && E.getter[e])
|
|
3056
3062
|
u && this.throwException(this.TYPE_ERROR, "Cannot set property '" + e + "' of object '" + t + "' which only has a getter");
|
|
3057
3063
|
else
|
|
3058
3064
|
try {
|
|
@@ -3245,8 +3251,8 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3245
3251
|
SyntaxError,
|
|
3246
3252
|
TypeError,
|
|
3247
3253
|
URIError
|
|
3248
|
-
}, l = String(this.getProperty(e, "name")),
|
|
3249
|
-
c =
|
|
3254
|
+
}, l = String(this.getProperty(e, "name")), y = this.getProperty(e, "message").valueOf(), E = a[l] || Error;
|
|
3255
|
+
c = E(y), c.stack = String(this.getProperty(e, "stack"));
|
|
3250
3256
|
} else
|
|
3251
3257
|
c = String(e);
|
|
3252
3258
|
throw this.value = c, c;
|
|
@@ -3282,21 +3288,21 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3282
3288
|
}
|
|
3283
3289
|
return "???";
|
|
3284
3290
|
}, r.prototype.createTask_ = function(t, e) {
|
|
3285
|
-
var i = this.stateStack[this.stateStack.length - 1], o = Array.from(e), u = o.shift(), c = Math.max(Number(o.shift() || 0), 0), a = this.newNode(), l,
|
|
3291
|
+
var i = this.stateStack[this.stateStack.length - 1], o = Array.from(e), u = o.shift(), c = Math.max(Number(o.shift() || 0), 0), a = this.newNode(), l, y, E;
|
|
3286
3292
|
if (u instanceof r.Object && u.class === "Function")
|
|
3287
|
-
|
|
3293
|
+
y = u, a.type = "CallExpression", l = i.scope;
|
|
3288
3294
|
else {
|
|
3289
3295
|
try {
|
|
3290
|
-
|
|
3296
|
+
E = this.parse_(String(u), "taskCode" + this.taskCodeNumber_++);
|
|
3291
3297
|
} catch (D) {
|
|
3292
3298
|
this.throwException(this.SYNTAX_ERROR, "Invalid code: " + D.message);
|
|
3293
3299
|
}
|
|
3294
|
-
a.type = "EvalProgram_", a.body =
|
|
3300
|
+
a.type = "EvalProgram_", a.body = E.body;
|
|
3295
3301
|
var T = i.node.arguments[0], b = T ? T.start : void 0, P = T ? T.end : void 0;
|
|
3296
3302
|
r.stripLocations_(a, b, P), l = this.globalScope, o.length = 0;
|
|
3297
3303
|
}
|
|
3298
3304
|
var I = new r.Task(
|
|
3299
|
-
|
|
3305
|
+
y,
|
|
3300
3306
|
o,
|
|
3301
3307
|
l,
|
|
3302
3308
|
a,
|
|
@@ -3389,20 +3395,20 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3389
3395
|
var t = r.toStringCycles_;
|
|
3390
3396
|
if (t.indexOf(this) !== -1)
|
|
3391
3397
|
return "[object Error]";
|
|
3392
|
-
var a, l,
|
|
3398
|
+
var a, l, y = this;
|
|
3393
3399
|
do
|
|
3394
|
-
if ("name" in
|
|
3395
|
-
a =
|
|
3400
|
+
if ("name" in y.properties) {
|
|
3401
|
+
a = y.properties.name;
|
|
3396
3402
|
break;
|
|
3397
3403
|
}
|
|
3398
|
-
while (
|
|
3399
|
-
|
|
3404
|
+
while (y = y.proto);
|
|
3405
|
+
y = this;
|
|
3400
3406
|
do
|
|
3401
|
-
if ("message" in
|
|
3402
|
-
l =
|
|
3407
|
+
if ("message" in y.properties) {
|
|
3408
|
+
l = y.properties.message;
|
|
3403
3409
|
break;
|
|
3404
3410
|
}
|
|
3405
|
-
while (
|
|
3411
|
+
while (y = y.proto);
|
|
3406
3412
|
t.push(this);
|
|
3407
3413
|
try {
|
|
3408
3414
|
a = a && String(a), l = l && String(l);
|
|
@@ -3492,9 +3498,9 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3492
3498
|
default:
|
|
3493
3499
|
throw SyntaxError("Unknown assignment expression: " + i.operator);
|
|
3494
3500
|
}
|
|
3495
|
-
var
|
|
3496
|
-
if (
|
|
3497
|
-
return e.doneSetter_ = !0, e.setterValue_ = a, this.createSetter_(
|
|
3501
|
+
var y = this.setValue(e.leftReference_, a);
|
|
3502
|
+
if (y)
|
|
3503
|
+
return e.doneSetter_ = !0, e.setterValue_ = a, this.createSetter_(y, e.leftReference_, a);
|
|
3498
3504
|
t.pop(), t[t.length - 1].value = a;
|
|
3499
3505
|
}, r.prototype.stepBinaryExpression = function(t, e, i) {
|
|
3500
3506
|
if (!e.doneLeft_)
|
|
@@ -3632,11 +3638,11 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3632
3638
|
);
|
|
3633
3639
|
var a = u.node;
|
|
3634
3640
|
if (a) {
|
|
3635
|
-
for (var l = this.createScope(a.body, u.parentScope),
|
|
3636
|
-
this.setProperty(
|
|
3637
|
-
this.setProperty(l.object, "arguments",
|
|
3638
|
-
for (var
|
|
3639
|
-
var T = a.params[
|
|
3641
|
+
for (var l = this.createScope(a.body, u.parentScope), y = this.createArray(), E = 0; E < e.arguments_.length; E++)
|
|
3642
|
+
this.setProperty(y, E, e.arguments_[E]);
|
|
3643
|
+
this.setProperty(l.object, "arguments", y);
|
|
3644
|
+
for (var E = 0; E < a.params.length; E++) {
|
|
3645
|
+
var T = a.params[E].name, b = e.arguments_.length > E ? e.arguments_[E] : void 0;
|
|
3640
3646
|
this.setProperty(l.object, T, b);
|
|
3641
3647
|
}
|
|
3642
3648
|
return l.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), this.setProperty(
|
|
@@ -3894,7 +3900,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3894
3900
|
for (var a in e.properties_) {
|
|
3895
3901
|
var l = e.properties_[a];
|
|
3896
3902
|
if ("get" in l || "set" in l) {
|
|
3897
|
-
var
|
|
3903
|
+
var y = {
|
|
3898
3904
|
configurable: !0,
|
|
3899
3905
|
enumerable: !0,
|
|
3900
3906
|
get: l.get,
|
|
@@ -3904,7 +3910,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3904
3910
|
e.object_,
|
|
3905
3911
|
a,
|
|
3906
3912
|
r.VALUE_IN_DESCRIPTOR,
|
|
3907
|
-
|
|
3913
|
+
y
|
|
3908
3914
|
);
|
|
3909
3915
|
} else
|
|
3910
3916
|
this.setProperty(e.object_, a, l.init);
|
|
@@ -4043,9 +4049,9 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4043
4049
|
a = c - 1;
|
|
4044
4050
|
else
|
|
4045
4051
|
throw SyntaxError("Unknown update expression: " + i.operator);
|
|
4046
|
-
var l = i.prefix ? a : c,
|
|
4047
|
-
if (
|
|
4048
|
-
return e.doneSetter_ = !0, e.setterValue_ = l, this.createSetter_(
|
|
4052
|
+
var l = i.prefix ? a : c, y = this.setValue(e.leftSide_, a);
|
|
4053
|
+
if (y)
|
|
4054
|
+
return e.doneSetter_ = !0, e.setterValue_ = l, this.createSetter_(y, e.leftSide_, a);
|
|
4049
4055
|
t.pop(), t[t.length - 1].value = l;
|
|
4050
4056
|
}, r.prototype.stepVariableDeclaration = function(t, e, i) {
|
|
4051
4057
|
var o = i.declarations, u = e.n_ || 0, c = o[u];
|
|
@@ -4155,7 +4161,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4155
4161
|
break;
|
|
4156
4162
|
}
|
|
4157
4163
|
return { line: d, column: h - _ };
|
|
4158
|
-
}, a = 0, l = 0,
|
|
4164
|
+
}, a = 0, l = 0, y = 0, E, T, b, P, I, D, X, Pe = 0, z = 0, ve, se, j, W;
|
|
4159
4165
|
function A(f, h) {
|
|
4160
4166
|
var d = c(t, f);
|
|
4161
4167
|
h += " (" + d.line + ":" + d.column + ")";
|
|
@@ -4212,7 +4218,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4212
4218
|
D = 1, a = X = 0, I = !0, Ce();
|
|
4213
4219
|
}
|
|
4214
4220
|
function $(f, h) {
|
|
4215
|
-
|
|
4221
|
+
y = a, r.locations && (T = new fe()), b = f, Ce(), P = h, I = f.beforeExpr;
|
|
4216
4222
|
}
|
|
4217
4223
|
function ci() {
|
|
4218
4224
|
var f = r.onComment && r.locations && new fe(), h = a, d = t.indexOf("*/", a += 2);
|
|
@@ -4381,7 +4387,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4381
4387
|
return !1;
|
|
4382
4388
|
}
|
|
4383
4389
|
function Ee(f) {
|
|
4384
|
-
if (f ? a = l + 1 : l = a, r.locations && (
|
|
4390
|
+
if (f ? a = l + 1 : l = a, r.locations && (E = new fe()), f) return mr();
|
|
4385
4391
|
if (a >= e) return $(st);
|
|
4386
4392
|
var h = t.charCodeAt(a);
|
|
4387
4393
|
if (qe(h) || h === 92)
|
|
@@ -4536,7 +4542,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4536
4542
|
!ge && ii(f) && (h = Jn[f]), $(h, f);
|
|
4537
4543
|
}
|
|
4538
4544
|
function k() {
|
|
4539
|
-
Pe = l, z =
|
|
4545
|
+
Pe = l, z = y, ve = T, Ee();
|
|
4540
4546
|
}
|
|
4541
4547
|
function Et(f) {
|
|
4542
4548
|
if (W = f, a = l, r.locations)
|
|
@@ -4549,7 +4555,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4549
4555
|
this.type = null, this.start = l, this.end = null;
|
|
4550
4556
|
}
|
|
4551
4557
|
function Sr() {
|
|
4552
|
-
this.start =
|
|
4558
|
+
this.start = E, this.end = null, i && (this.source = i);
|
|
4553
4559
|
}
|
|
4554
4560
|
function V() {
|
|
4555
4561
|
var f = new Tr();
|
|
@@ -4757,16 +4763,16 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4757
4763
|
case Xe:
|
|
4758
4764
|
case ut:
|
|
4759
4765
|
case Xt:
|
|
4760
|
-
return f = V(), f.value = P, f.raw = t.slice(l,
|
|
4766
|
+
return f = V(), f.value = P, f.raw = t.slice(l, y), k(), w(f, "Literal");
|
|
4761
4767
|
case ur:
|
|
4762
4768
|
case sr:
|
|
4763
4769
|
case cr:
|
|
4764
4770
|
return f = V(), f.value = b.atomValue, f.raw = b.keyword, k(), w(f, "Literal");
|
|
4765
4771
|
case Z:
|
|
4766
|
-
var h =
|
|
4772
|
+
var h = E, d = l;
|
|
4767
4773
|
k();
|
|
4768
4774
|
var _ = Y();
|
|
4769
|
-
return _.start = d, _.end =
|
|
4775
|
+
return _.start = d, _.end = y, r.locations && (_.loc.start = h, _.loc.end = T), r.ranges && (_.range = [d, y]), B(K), _;
|
|
4770
4776
|
case vt:
|
|
4771
4777
|
return f = V(), k(), f.elements = Pt(yt, !0, !0), w(f, "ArrayExpression");
|
|
4772
4778
|
case we:
|
|
@@ -4832,7 +4838,7 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4832
4838
|
}
|
|
4833
4839
|
function ae(f) {
|
|
4834
4840
|
var h = V();
|
|
4835
|
-
return f && r.forbidReserved === "everywhere" && (f = !1), b === ye ? (!f && (r.forbidReserved && ni(P) || W && _r(P)) && t.slice(l,
|
|
4841
|
+
return f && r.forbidReserved === "everywhere" && (f = !1), b === ye ? (!f && (r.forbidReserved && ni(P) || W && _r(P)) && t.slice(l, y).indexOf("\\") === -1 && A(l, "The keyword '" + P + "' is reserved"), h.name = P) : f && b.keyword ? h.name = b.keyword : ee(), I = !1, k(), w(h, "Identifier");
|
|
4836
4842
|
}
|
|
4837
4843
|
});
|
|
4838
4844
|
}
|
|
@@ -4848,12 +4854,12 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4848
4854
|
}
|
|
4849
4855
|
)
|
|
4850
4856
|
/******/
|
|
4851
|
-
},
|
|
4852
|
-
function
|
|
4853
|
-
var N =
|
|
4857
|
+
}, v = {};
|
|
4858
|
+
function g(m) {
|
|
4859
|
+
var N = v[m];
|
|
4854
4860
|
if (N !== void 0)
|
|
4855
4861
|
return N.exports;
|
|
4856
|
-
var R =
|
|
4862
|
+
var R = v[m] = {
|
|
4857
4863
|
/******/
|
|
4858
4864
|
// no module.id needed
|
|
4859
4865
|
/******/
|
|
@@ -4862,12 +4868,12 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4862
4868
|
exports: {}
|
|
4863
4869
|
/******/
|
|
4864
4870
|
};
|
|
4865
|
-
return p[m].call(R.exports, R, R.exports,
|
|
4871
|
+
return p[m].call(R.exports, R, R.exports, g), R.exports;
|
|
4866
4872
|
}
|
|
4867
|
-
|
|
4873
|
+
g.d = (m, N) => {
|
|
4868
4874
|
for (var R in N)
|
|
4869
|
-
|
|
4870
|
-
},
|
|
4875
|
+
g.o(N, R) && !g.o(m, R) && Object.defineProperty(m, R, { enumerable: !0, get: N[R] });
|
|
4876
|
+
}, g.o = (m, N) => Object.prototype.hasOwnProperty.call(m, N), g.r = (m) => {
|
|
4871
4877
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(m, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(m, "__esModule", { value: !0 });
|
|
4872
4878
|
};
|
|
4873
4879
|
var O = {};
|
|
@@ -4875,17 +4881,17 @@ const Vs = {}, Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4875
4881
|
/*!*******************************!*\
|
|
4876
4882
|
!*** ./src/js-interpreter.js ***!
|
|
4877
4883
|
\*******************************/
|
|
4878
|
-
|
|
4884
|
+
g.r(O), g.d(O, {
|
|
4879
4885
|
/* harmony export */
|
|
4880
4886
|
default: () => R
|
|
4881
4887
|
/* harmony export */
|
|
4882
4888
|
});
|
|
4883
|
-
const m =
|
|
4889
|
+
const m = g(
|
|
4884
4890
|
/*! ../original-repo/acorn */
|
|
4885
4891
|
"./original-repo/acorn.js"
|
|
4886
4892
|
);
|
|
4887
4893
|
globalThis.acorn = m;
|
|
4888
|
-
const { Interpreter: N } =
|
|
4894
|
+
const { Interpreter: N } = g(
|
|
4889
4895
|
/*! ../original-repo/interpreter */
|
|
4890
4896
|
"./original-repo/interpreter.js"
|
|
4891
4897
|
), R = N;
|
|
@@ -4900,12 +4906,12 @@ function zs(n, s) {
|
|
|
4900
4906
|
const R = n.pseudoToNative(N);
|
|
4901
4907
|
console.log(R);
|
|
4902
4908
|
}
|
|
4903
|
-
function
|
|
4909
|
+
function v(N) {
|
|
4904
4910
|
const R = n.pseudoToNative(N);
|
|
4905
4911
|
let r = "";
|
|
4906
4912
|
typeof R == "object" ? r = JSON.stringify(R) : r = String(R), fn.emit("consoleAppend", r);
|
|
4907
4913
|
}
|
|
4908
|
-
function
|
|
4914
|
+
function g(N, R) {
|
|
4909
4915
|
const r = n.pseudoToNative(N), t = n.pseudoToNative(R);
|
|
4910
4916
|
r === "info" ? Li(t) : r === "success" ? Mi(t) : r === "warning" ? Ui(t) : r === "error" && ji(t);
|
|
4911
4917
|
}
|
|
@@ -4928,11 +4934,11 @@ function zs(n, s) {
|
|
|
4928
4934
|
), n.setProperty(
|
|
4929
4935
|
s,
|
|
4930
4936
|
"__debugTraceV1__",
|
|
4931
|
-
n.createNativeFunction(
|
|
4937
|
+
n.createNativeFunction(v)
|
|
4932
4938
|
), n.setProperty(
|
|
4933
4939
|
s,
|
|
4934
4940
|
"__messageV1__",
|
|
4935
|
-
n.createNativeFunction(
|
|
4941
|
+
n.createNativeFunction(g)
|
|
4936
4942
|
), n.setProperty(
|
|
4937
4943
|
s,
|
|
4938
4944
|
"__timeoutV1__",
|
|
@@ -4949,41 +4955,41 @@ class Hs {
|
|
|
4949
4955
|
xt(this, "nodes");
|
|
4950
4956
|
this.context = s, this.nodes = {};
|
|
4951
4957
|
const p = this;
|
|
4952
|
-
function
|
|
4958
|
+
function v(g) {
|
|
4953
4959
|
var O;
|
|
4954
|
-
p.nodes[
|
|
4960
|
+
p.nodes[g.basic.id] = g, (O = g.children) == null || O.forEach((m) => v(m));
|
|
4955
4961
|
}
|
|
4956
|
-
this.context.data.view.nodes.forEach((
|
|
4962
|
+
this.context.data.view.nodes.forEach((g) => v(g));
|
|
4957
4963
|
}
|
|
4958
4964
|
getNode(s) {
|
|
4959
4965
|
return this.nodes[s];
|
|
4960
4966
|
}
|
|
4961
|
-
addNode(s, p,
|
|
4962
|
-
let
|
|
4967
|
+
addNode(s, p, v) {
|
|
4968
|
+
let g;
|
|
4963
4969
|
if (s) {
|
|
4964
4970
|
const m = this.getNode(s);
|
|
4965
4971
|
if (!m)
|
|
4966
4972
|
return console.error(
|
|
4967
|
-
`NodeMgr/addNode parent not found, parent=${s} ref=${p}
|
|
4973
|
+
`NodeMgr/addNode parent not found, parent=${s} ref=${p} keyOrRefid=${v}`
|
|
4968
4974
|
), "";
|
|
4969
4975
|
if (!m.children)
|
|
4970
4976
|
return console.error(
|
|
4971
|
-
`NodeMgr/addNode parent no children, parent=${s} ref=${p}
|
|
4977
|
+
`NodeMgr/addNode parent no children, parent=${s} ref=${p} keyOrRefid=${v}`
|
|
4972
4978
|
), "";
|
|
4973
|
-
|
|
4979
|
+
g = m.children;
|
|
4974
4980
|
} else
|
|
4975
|
-
|
|
4976
|
-
if (!
|
|
4981
|
+
g = this.context.data.view.nodes;
|
|
4982
|
+
if (!g)
|
|
4977
4983
|
return "";
|
|
4978
4984
|
const O = Ts(
|
|
4979
4985
|
this.context.type,
|
|
4980
4986
|
this.context.data.type,
|
|
4981
4987
|
this.context.data.version,
|
|
4982
4988
|
p,
|
|
4983
|
-
|
|
4989
|
+
v
|
|
4984
4990
|
);
|
|
4985
|
-
return O ? (
|
|
4986
|
-
|
|
4991
|
+
return O ? (g.push(O), this.nodes[O.basic.id] = O, O.basic.id) : (console.error(
|
|
4992
|
+
`NodeMgr/addNode spawn node failed, parent=${s} ref=${p} key=${v}`
|
|
4987
4993
|
), "");
|
|
4988
4994
|
}
|
|
4989
4995
|
deleteNode(s) {
|
|
@@ -4991,28 +4997,28 @@ class Hs {
|
|
|
4991
4997
|
}
|
|
4992
4998
|
}
|
|
4993
4999
|
function Ks(n, s, p) {
|
|
4994
|
-
const
|
|
4995
|
-
function
|
|
4996
|
-
const o = s.pseudoToNative(t), u = s.pseudoToNative(e), c = s.pseudoToNative(i), a =
|
|
5000
|
+
const v = new Hs(n);
|
|
5001
|
+
function g(t, e, i) {
|
|
5002
|
+
const o = s.pseudoToNative(t), u = s.pseudoToNative(e), c = s.pseudoToNative(i), a = v.addNode(o, u, c);
|
|
4997
5003
|
return s.nativeToPseudo(a);
|
|
4998
5004
|
}
|
|
4999
5005
|
function O(t) {
|
|
5000
5006
|
const e = s.pseudoToNative(t);
|
|
5001
|
-
|
|
5007
|
+
v.deleteNode(e);
|
|
5002
5008
|
}
|
|
5003
5009
|
function m(t, e) {
|
|
5004
5010
|
const i = s.pseudoToNative(t), o = s.pseudoToNative(e);
|
|
5005
5011
|
let u;
|
|
5006
|
-
if (i === "globality" ? u = n.data.view : u =
|
|
5012
|
+
if (i === "globality" ? u = n.data.view : u = v.getNode(i), !u) {
|
|
5007
5013
|
console.error(`getNodePropV1 node not found, id=${i} keys=${o}`);
|
|
5008
5014
|
return;
|
|
5009
5015
|
}
|
|
5010
5016
|
const c = o.split("."), a = c.length;
|
|
5011
5017
|
for (let l = 0; l < a; l++) {
|
|
5012
|
-
const
|
|
5018
|
+
const y = c[l];
|
|
5013
5019
|
if (l === a - 1)
|
|
5014
|
-
return s.nativeToPseudo(u[
|
|
5015
|
-
if (u = u[
|
|
5020
|
+
return s.nativeToPseudo(u[y]);
|
|
5021
|
+
if (u = u[y], !u) {
|
|
5016
5022
|
console.error(`getNodePropV1 unpkg failed, id=${i} keys=${o}`);
|
|
5017
5023
|
return;
|
|
5018
5024
|
}
|
|
@@ -5021,16 +5027,16 @@ function Ks(n, s, p) {
|
|
|
5021
5027
|
function N(t, e, i) {
|
|
5022
5028
|
const o = s.pseudoToNative(t), u = s.pseudoToNative(e), c = s.pseudoToNative(i);
|
|
5023
5029
|
let a;
|
|
5024
|
-
if (o === "globality" ? a = n.data.view : a =
|
|
5030
|
+
if (o === "globality" ? a = n.data.view : a = v.getNode(o), !a) {
|
|
5025
5031
|
console.error(
|
|
5026
5032
|
`setNodePropV1 node not found, id=${o} keys=${u} value=${c}`
|
|
5027
5033
|
);
|
|
5028
5034
|
return;
|
|
5029
5035
|
}
|
|
5030
|
-
const l = u.split("."),
|
|
5031
|
-
for (let
|
|
5032
|
-
const T = l[
|
|
5033
|
-
if (
|
|
5036
|
+
const l = u.split("."), y = l.length;
|
|
5037
|
+
for (let E = 0; E < y; E++) {
|
|
5038
|
+
const T = l[E];
|
|
5039
|
+
if (E === y - 1)
|
|
5034
5040
|
a[T] = c;
|
|
5035
5041
|
else if (a = a[T], !a) {
|
|
5036
5042
|
console.error(
|
|
@@ -5055,7 +5061,7 @@ function Ks(n, s, p) {
|
|
|
5055
5061
|
s.setProperty(
|
|
5056
5062
|
p,
|
|
5057
5063
|
"__addNodeV1__",
|
|
5058
|
-
s.createNativeFunction(
|
|
5064
|
+
s.createNativeFunction(g)
|
|
5059
5065
|
), s.setProperty(
|
|
5060
5066
|
p,
|
|
5061
5067
|
"__deleteNodeV1__",
|
|
@@ -5204,8 +5210,8 @@ function __timeoutCallbackV1__(timerId) {
|
|
|
5204
5210
|
function rc(n, s) {
|
|
5205
5211
|
const p = new Js(
|
|
5206
5212
|
tc,
|
|
5207
|
-
(
|
|
5208
|
-
qs(n,
|
|
5213
|
+
(v, g) => {
|
|
5214
|
+
qs(n, v, g);
|
|
5209
5215
|
}
|
|
5210
5216
|
);
|
|
5211
5217
|
return p.appendCode(s), p.appendCode(`
|
|
@@ -5225,16 +5231,16 @@ const nc = /* @__PURE__ */ un({
|
|
|
5225
5231
|
outer: { type: Boolean }
|
|
5226
5232
|
},
|
|
5227
5233
|
setup(n) {
|
|
5228
|
-
const { t: s } = Fi(), p = n,
|
|
5234
|
+
const { t: s } = Fi(), p = n, v = Ss(), g = Cs(), O = As(), m = Is(), N = Cr();
|
|
5229
5235
|
Ii(() => {
|
|
5230
|
-
N.value = m[p.refContext.refid];
|
|
5236
|
+
console.log(p, m), N.value = m[p.refContext.refid];
|
|
5231
5237
|
});
|
|
5232
5238
|
const R = Cr();
|
|
5233
5239
|
ks(R), ki(N, (a) => {
|
|
5234
5240
|
a || fn.emit("compNotAvail", p.refContext.refid), R.value && (an(R.value), R.value = void 0), a && (R.value = rc(
|
|
5235
5241
|
{
|
|
5236
|
-
env:
|
|
5237
|
-
type:
|
|
5242
|
+
env: v,
|
|
5243
|
+
type: g,
|
|
5238
5244
|
data: a.data
|
|
5239
5245
|
},
|
|
5240
5246
|
a.data.code.script
|
|
@@ -5243,13 +5249,13 @@ const nc = /* @__PURE__ */ un({
|
|
|
5243
5249
|
R.value && (an(R.value), R.value = void 0);
|
|
5244
5250
|
});
|
|
5245
5251
|
const { applySize: r } = js(p), t = J(() => {
|
|
5246
|
-
const a = {};
|
|
5247
|
-
switch (
|
|
5252
|
+
const a = {}, l = O.type;
|
|
5253
|
+
switch (l) {
|
|
5248
5254
|
case "common":
|
|
5249
5255
|
r(a);
|
|
5250
5256
|
break;
|
|
5251
5257
|
default:
|
|
5252
|
-
console.assert(!1,
|
|
5258
|
+
console.assert(!1, `invalid subtype=${l}`);
|
|
5253
5259
|
}
|
|
5254
5260
|
return a;
|
|
5255
5261
|
});
|
|
@@ -5267,23 +5273,23 @@ const nc = /* @__PURE__ */ un({
|
|
|
5267
5273
|
return a.ref ? l = o(a) : l = u(a), l;
|
|
5268
5274
|
}
|
|
5269
5275
|
function o(a) {
|
|
5270
|
-
const l = ln[O.version].refKey,
|
|
5271
|
-
let
|
|
5272
|
-
return
|
|
5276
|
+
const l = ln[O.version].refKey, y = Ne[l];
|
|
5277
|
+
let E;
|
|
5278
|
+
return y ? E = Le(y.comp, {
|
|
5273
5279
|
refContext: {
|
|
5274
5280
|
parent: p.refContext,
|
|
5275
5281
|
refid: a.ref.id
|
|
5276
5282
|
},
|
|
5277
5283
|
node: a
|
|
5278
|
-
}) : console.assert(!1),
|
|
5284
|
+
}) : console.assert(!1), E;
|
|
5279
5285
|
}
|
|
5280
5286
|
function u(a) {
|
|
5281
|
-
var
|
|
5287
|
+
var E;
|
|
5282
5288
|
let l;
|
|
5283
|
-
const
|
|
5284
|
-
return
|
|
5289
|
+
const y = Ne[a.basic.key];
|
|
5290
|
+
return y ? ((E = a.children) == null || E.forEach((T) => {
|
|
5285
5291
|
i(T);
|
|
5286
|
-
}), l = Le(
|
|
5292
|
+
}), l = Le(y.comp, { node: a })) : console.assert(!1, `invalid element key=${a.basic.key}`), l;
|
|
5287
5293
|
}
|
|
5288
5294
|
const c = () => {
|
|
5289
5295
|
const a = [];
|
|
@@ -5291,10 +5297,10 @@ const nc = /* @__PURE__ */ un({
|
|
|
5291
5297
|
a.push(Le("div", s("x-runtime-lib.circularRef")));
|
|
5292
5298
|
else if (N.value) {
|
|
5293
5299
|
const l = N.value.data.type;
|
|
5294
|
-
l === "common" ? N.value.data.view.nodes.forEach((
|
|
5295
|
-
const
|
|
5296
|
-
a.push(
|
|
5297
|
-
}) : console.assert(!1, `invalid
|
|
5300
|
+
l === "common" ? N.value.data.view.nodes.forEach((y) => {
|
|
5301
|
+
const E = i(y);
|
|
5302
|
+
a.push(E);
|
|
5303
|
+
}) : console.assert(!1, `invalid subtype=${l}`);
|
|
5298
5304
|
} else
|
|
5299
5305
|
a.push(Le("div", s("x-runtime-lib.compNotAvail")));
|
|
5300
5306
|
return Le("div", { id: p.id, style: t.value }, a);
|
|
@@ -5391,8 +5397,8 @@ for (const n in Ne) {
|
|
|
5391
5397
|
s.leaf || s.methods.unshift(uc);
|
|
5392
5398
|
}
|
|
5393
5399
|
const sc = (n, s, p) => {
|
|
5394
|
-
const
|
|
5395
|
-
return
|
|
5400
|
+
const v = n[s];
|
|
5401
|
+
return v ? typeof v == "function" ? v() : Promise.resolve(v) : new Promise((g, O) => {
|
|
5396
5402
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
5397
5403
|
O.bind(
|
|
5398
5404
|
null,
|