x-runtime-lib 0.5.37 → 0.5.39
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 +1334 -1327
- package/dist/types/index.d.ts +1 -1
- package/dist/types/sandbox.d.ts +11 -0
- package/dist/utils/provideInject.d.ts +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
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
|
-
var
|
|
4
|
-
import { provide as be, inject as ge, readonly as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { eventBus as
|
|
7
|
-
const
|
|
8
|
-
function
|
|
3
|
+
var Jt = (n, o, l) => Aa(n, typeof o != "symbol" ? o + "" : o, l);
|
|
4
|
+
import { provide as be, inject as ge, readonly as mr, isReactive as ai, defineComponent as oe, computed as x, resolveComponent as ie, openBlock as G, createBlock as Q, withCtx as ee, renderSlot as _r, unref as Me, createElementBlock as Be, createVNode as Z, normalizeStyle as Ia, ref as Et, watchEffect as oi, onUnmounted as br, watch as Da, h as J, createSlots as Qt, renderList as La, onBeforeMount as Ma, isRef as Fa, createCommentVNode as Ua } from "vue";
|
|
5
|
+
import { useI18n as ui } from "vue-i18n";
|
|
6
|
+
import { eventBus as Fe, 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 bn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
8
|
+
function si(n) {
|
|
9
9
|
let o = "";
|
|
10
10
|
for (let l = 0; l < n; l++) {
|
|
11
|
-
const h = Math.floor(Math.random() *
|
|
12
|
-
o +=
|
|
11
|
+
const h = Math.floor(Math.random() * bn.length);
|
|
12
|
+
o += bn[h];
|
|
13
13
|
}
|
|
14
14
|
return o;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function gr(n) {
|
|
17
17
|
return n === "";
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function Er(n) {
|
|
20
20
|
if (typeof n != "string" || !n.endsWith("px"))
|
|
21
21
|
return !1;
|
|
22
22
|
const o = n.substring(0, n.length - 2), l = parseFloat(o);
|
|
23
23
|
return !(isNaN(l) || l % 1 !== 0);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Rr(n) {
|
|
26
26
|
if (typeof n != "string" || !n.endsWith("%"))
|
|
27
27
|
return !1;
|
|
28
28
|
const o = n.substring(0, n.length - 1), l = parseFloat(o);
|
|
@@ -35,53 +35,53 @@ function Gc(n) {
|
|
|
35
35
|
if (!isNaN(l) && l % 1 === 0)
|
|
36
36
|
return l;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Kt(n) {
|
|
39
39
|
if (typeof n != "string" || !n.endsWith("%"))
|
|
40
40
|
return;
|
|
41
41
|
const o = n.substring(0, n.length - 1), l = parseFloat(o);
|
|
42
42
|
if (!isNaN(l))
|
|
43
43
|
return l;
|
|
44
44
|
}
|
|
45
|
-
var
|
|
45
|
+
var li = typeof global == "object" && global && global.Object === Object && global, Xa = typeof self == "object" && self && self.Object === Object && self, ue = li || Xa || Function("return this")(), Ue = ue.Symbol, ci = Object.prototype, Wa = ci.hasOwnProperty, Ha = ci.toString, Qe = Ue ? Ue.toStringTag : void 0;
|
|
46
46
|
function Ja(n) {
|
|
47
|
-
var o = Wa.call(n,
|
|
47
|
+
var o = Wa.call(n, Qe), l = n[Qe];
|
|
48
48
|
try {
|
|
49
|
-
n[
|
|
49
|
+
n[Qe] = void 0;
|
|
50
50
|
var h = !0;
|
|
51
51
|
} catch {
|
|
52
52
|
}
|
|
53
|
-
var
|
|
54
|
-
return h && (o ? n[
|
|
53
|
+
var b = Ha.call(n);
|
|
54
|
+
return h && (o ? n[Qe] = l : delete n[Qe]), b;
|
|
55
55
|
}
|
|
56
56
|
var Ka = Object.prototype, qa = Ka.toString;
|
|
57
57
|
function Za(n) {
|
|
58
58
|
return qa.call(n);
|
|
59
59
|
}
|
|
60
|
-
var Qa = "[object Null]", eo = "[object Undefined]",
|
|
61
|
-
function rt(n) {
|
|
62
|
-
return n == null ? n === void 0 ? eo : Qa : _n && _n in Object(n) ? Ja(n) : Za(n);
|
|
63
|
-
}
|
|
60
|
+
var Qa = "[object Null]", eo = "[object Undefined]", gn = Ue ? Ue.toStringTag : void 0;
|
|
64
61
|
function nt(n) {
|
|
65
|
-
return n
|
|
62
|
+
return n == null ? n === void 0 ? eo : Qa : gn && gn in Object(n) ? Ja(n) : Za(n);
|
|
66
63
|
}
|
|
67
|
-
var Er = Array.isArray;
|
|
68
64
|
function it(n) {
|
|
65
|
+
return n != null && typeof n == "object";
|
|
66
|
+
}
|
|
67
|
+
var Or = Array.isArray;
|
|
68
|
+
function at(n) {
|
|
69
69
|
var o = typeof n;
|
|
70
70
|
return n != null && (o == "object" || o == "function");
|
|
71
71
|
}
|
|
72
72
|
var to = "[object AsyncFunction]", ro = "[object Function]", no = "[object GeneratorFunction]", io = "[object Proxy]";
|
|
73
|
-
function
|
|
74
|
-
if (!
|
|
73
|
+
function fi(n) {
|
|
74
|
+
if (!at(n))
|
|
75
75
|
return !1;
|
|
76
|
-
var o =
|
|
76
|
+
var o = nt(n);
|
|
77
77
|
return o == ro || o == no || o == to || o == io;
|
|
78
78
|
}
|
|
79
|
-
var
|
|
80
|
-
var n = /[^.]+$/.exec(
|
|
79
|
+
var qt = ue["__core-js_shared__"], En = function() {
|
|
80
|
+
var n = /[^.]+$/.exec(qt && qt.keys && qt.keys.IE_PROTO || "");
|
|
81
81
|
return n ? "Symbol(src)_1." + n : "";
|
|
82
82
|
}();
|
|
83
83
|
function ao(n) {
|
|
84
|
-
return !!
|
|
84
|
+
return !!En && En in n;
|
|
85
85
|
}
|
|
86
86
|
var oo = Function.prototype, uo = oo.toString;
|
|
87
87
|
function Se(n) {
|
|
@@ -100,27 +100,27 @@ function Se(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
|
|
104
|
-
if (!
|
|
103
|
+
function yo(n) {
|
|
104
|
+
if (!at(n) || ao(n))
|
|
105
105
|
return !1;
|
|
106
|
-
var o =
|
|
106
|
+
var o = fi(n) ? vo : lo;
|
|
107
107
|
return o.test(Se(n));
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function mo(n, o) {
|
|
110
110
|
return n == null ? void 0 : n[o];
|
|
111
111
|
}
|
|
112
112
|
function we(n, o) {
|
|
113
|
-
var l =
|
|
114
|
-
return
|
|
113
|
+
var l = mo(n, o);
|
|
114
|
+
return yo(l) ? l : void 0;
|
|
115
115
|
}
|
|
116
|
-
var
|
|
116
|
+
var er = we(ue, "WeakMap"), Rn = Object.create, _o = /* @__PURE__ */ function() {
|
|
117
117
|
function n() {
|
|
118
118
|
}
|
|
119
119
|
return function(o) {
|
|
120
|
-
if (!
|
|
120
|
+
if (!at(o))
|
|
121
121
|
return {};
|
|
122
|
-
if (
|
|
123
|
-
return
|
|
122
|
+
if (Rn)
|
|
123
|
+
return Rn(o);
|
|
124
124
|
n.prototype = o;
|
|
125
125
|
var l = new n();
|
|
126
126
|
return n.prototype = void 0, l;
|
|
@@ -132,7 +132,7 @@ function bo(n, o) {
|
|
|
132
132
|
o[l] = n[l];
|
|
133
133
|
return o;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
135
|
+
var On = function() {
|
|
136
136
|
try {
|
|
137
137
|
var n = we(Object, "defineProperty");
|
|
138
138
|
return n({}, "", {}), n;
|
|
@@ -149,40 +149,40 @@ function Oo(n, o) {
|
|
|
149
149
|
var l = typeof n;
|
|
150
150
|
return o = o ?? Eo, !!o && (l == "number" || l != "symbol" && Ro.test(n)) && n > -1 && n % 1 == 0 && n < o;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
o == "__proto__" &&
|
|
152
|
+
function pi(n, o, l) {
|
|
153
|
+
o == "__proto__" && On ? On(n, o, {
|
|
154
154
|
configurable: !0,
|
|
155
155
|
enumerable: !0,
|
|
156
156
|
value: l,
|
|
157
157
|
writable: !0
|
|
158
158
|
}) : n[o] = l;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function di(n, o) {
|
|
161
161
|
return n === o || n !== n && o !== o;
|
|
162
162
|
}
|
|
163
163
|
var To = Object.prototype, No = To.hasOwnProperty;
|
|
164
|
-
function
|
|
164
|
+
function hi(n, o, l) {
|
|
165
165
|
var h = n[o];
|
|
166
|
-
(!(No.call(n, o) &&
|
|
166
|
+
(!(No.call(n, o) && di(h, l)) || l === void 0 && !(o in n)) && pi(n, o, l);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
var
|
|
168
|
+
function Ot(n, o, l, h) {
|
|
169
|
+
var b = !l;
|
|
170
170
|
l || (l = {});
|
|
171
|
-
for (var
|
|
172
|
-
var O = o[
|
|
173
|
-
|
|
171
|
+
for (var g = -1, y = o.length; ++g < y; ) {
|
|
172
|
+
var O = o[g], T = void 0;
|
|
173
|
+
T === void 0 && (T = n[O]), b ? pi(l, O, T) : hi(l, O, T);
|
|
174
174
|
}
|
|
175
175
|
return l;
|
|
176
176
|
}
|
|
177
177
|
var xo = 9007199254740991;
|
|
178
|
-
function
|
|
178
|
+
function vi(n) {
|
|
179
179
|
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= xo;
|
|
180
180
|
}
|
|
181
|
-
function
|
|
182
|
-
return n != null &&
|
|
181
|
+
function yi(n) {
|
|
182
|
+
return n != null && vi(n.length) && !fi(n);
|
|
183
183
|
}
|
|
184
184
|
var So = Object.prototype;
|
|
185
|
-
function
|
|
185
|
+
function Tr(n) {
|
|
186
186
|
var o = n && n.constructor, l = typeof o == "function" && o.prototype || So;
|
|
187
187
|
return n === l;
|
|
188
188
|
}
|
|
@@ -192,61 +192,61 @@ function wo(n, o) {
|
|
|
192
192
|
return h;
|
|
193
193
|
}
|
|
194
194
|
var Po = "[object Arguments]";
|
|
195
|
-
function
|
|
196
|
-
return
|
|
195
|
+
function Tn(n) {
|
|
196
|
+
return it(n) && nt(n) == Po;
|
|
197
197
|
}
|
|
198
|
-
var mi = Object.prototype, Co = mi.hasOwnProperty, ko = mi.propertyIsEnumerable, Ao =
|
|
198
|
+
var mi = Object.prototype, Co = mi.hasOwnProperty, ko = mi.propertyIsEnumerable, Ao = Tn(/* @__PURE__ */ function() {
|
|
199
199
|
return arguments;
|
|
200
|
-
}()) ?
|
|
201
|
-
return
|
|
200
|
+
}()) ? Tn : function(n) {
|
|
201
|
+
return it(n) && Co.call(n, "callee") && !ko.call(n, "callee");
|
|
202
202
|
};
|
|
203
203
|
function Io() {
|
|
204
204
|
return !1;
|
|
205
205
|
}
|
|
206
|
-
var
|
|
206
|
+
var _i = typeof exports == "object" && exports && !exports.nodeType && exports, Nn = _i && typeof module == "object" && module && !module.nodeType && module, Do = Nn && Nn.exports === _i, xn = Do ? ue.Buffer : void 0, Lo = xn ? xn.isBuffer : void 0, bi = 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) {
|
|
210
|
-
return
|
|
210
|
+
return it(n) && vi(n.length) && !!U[nt(n)];
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Nr(n) {
|
|
213
213
|
return function(o) {
|
|
214
214
|
return n(o);
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
var
|
|
217
|
+
var gi = typeof exports == "object" && exports && !exports.nodeType && exports, et = gi && typeof module == "object" && module && !module.nodeType && module, uu = et && et.exports === gi, Zt = uu && li.process, je = function() {
|
|
218
218
|
try {
|
|
219
|
-
var n =
|
|
220
|
-
return n ||
|
|
219
|
+
var n = et && et.require && et.require("util").types;
|
|
220
|
+
return n || Zt && Zt.binding && Zt.binding("util");
|
|
221
221
|
} catch {
|
|
222
222
|
}
|
|
223
|
-
}(),
|
|
224
|
-
function
|
|
225
|
-
var l =
|
|
223
|
+
}(), Sn = je && je.isTypedArray, su = Sn ? Nr(Sn) : ou, lu = Object.prototype, cu = lu.hasOwnProperty;
|
|
224
|
+
function Ei(n, o) {
|
|
225
|
+
var l = Or(n), h = !l && Ao(n), b = !l && !h && bi(n), g = !l && !h && !b && su(n), y = l || h || b || g, O = y ? wo(n.length, String) : [], T = O.length;
|
|
226
226
|
for (var r in n)
|
|
227
|
-
(o || cu.call(n, r)) && !(
|
|
227
|
+
(o || cu.call(n, r)) && !(y && // 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
|
-
|
|
231
|
-
Oo(r,
|
|
229
|
+
b && (r == "offset" || r == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
230
|
+
g && (r == "buffer" || r == "byteLength" || r == "byteOffset") || // Skip index properties.
|
|
231
|
+
Oo(r, T))) && O.push(r);
|
|
232
232
|
return O;
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function Ri(n, o) {
|
|
235
235
|
return function(l) {
|
|
236
236
|
return n(o(l));
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
var fu =
|
|
239
|
+
var fu = Ri(Object.keys, Object), pu = Object.prototype, du = pu.hasOwnProperty;
|
|
240
240
|
function hu(n) {
|
|
241
|
-
if (!
|
|
241
|
+
if (!Tr(n))
|
|
242
242
|
return fu(n);
|
|
243
243
|
var o = [];
|
|
244
244
|
for (var l in Object(n))
|
|
245
245
|
du.call(n, l) && l != "constructor" && o.push(l);
|
|
246
246
|
return o;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
return
|
|
248
|
+
function xr(n) {
|
|
249
|
+
return yi(n) ? Ei(n) : hu(n);
|
|
250
250
|
}
|
|
251
251
|
function vu(n) {
|
|
252
252
|
var o = [];
|
|
@@ -255,21 +255,21 @@ function vu(n) {
|
|
|
255
255
|
o.push(l);
|
|
256
256
|
return o;
|
|
257
257
|
}
|
|
258
|
-
var
|
|
258
|
+
var yu = Object.prototype, mu = yu.hasOwnProperty;
|
|
259
259
|
function _u(n) {
|
|
260
|
-
if (!
|
|
260
|
+
if (!at(n))
|
|
261
261
|
return vu(n);
|
|
262
|
-
var o =
|
|
262
|
+
var o = Tr(n), l = [];
|
|
263
263
|
for (var h in n)
|
|
264
|
-
h == "constructor" && (o || !
|
|
264
|
+
h == "constructor" && (o || !mu.call(n, h)) || l.push(h);
|
|
265
265
|
return l;
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
return
|
|
267
|
+
function Sr(n) {
|
|
268
|
+
return yi(n) ? Ei(n, !0) : _u(n);
|
|
269
269
|
}
|
|
270
|
-
var
|
|
270
|
+
var tt = we(Object, "create");
|
|
271
271
|
function bu() {
|
|
272
|
-
this.__data__ =
|
|
272
|
+
this.__data__ = tt ? tt(null) : {}, this.size = 0;
|
|
273
273
|
}
|
|
274
274
|
function gu(n) {
|
|
275
275
|
var o = this.has(n) && delete this.__data__[n];
|
|
@@ -278,7 +278,7 @@ function gu(n) {
|
|
|
278
278
|
var Eu = "__lodash_hash_undefined__", Ru = Object.prototype, Ou = Ru.hasOwnProperty;
|
|
279
279
|
function Tu(n) {
|
|
280
280
|
var o = this.__data__;
|
|
281
|
-
if (
|
|
281
|
+
if (tt) {
|
|
282
282
|
var l = o[n];
|
|
283
283
|
return l === Eu ? void 0 : l;
|
|
284
284
|
}
|
|
@@ -287,12 +287,12 @@ function Tu(n) {
|
|
|
287
287
|
var Nu = Object.prototype, xu = Nu.hasOwnProperty;
|
|
288
288
|
function Su(n) {
|
|
289
289
|
var o = this.__data__;
|
|
290
|
-
return
|
|
290
|
+
return tt ? o[n] !== void 0 : xu.call(o, n);
|
|
291
291
|
}
|
|
292
292
|
var wu = "__lodash_hash_undefined__";
|
|
293
293
|
function Pu(n, o) {
|
|
294
294
|
var l = this.__data__;
|
|
295
|
-
return this.size += this.has(n) ? 0 : 1, l[n] =
|
|
295
|
+
return this.size += this.has(n) ? 0 : 1, l[n] = tt && o === void 0 ? wu : o, this;
|
|
296
296
|
}
|
|
297
297
|
function Ne(n) {
|
|
298
298
|
var o = -1, l = n == null ? 0 : n.length;
|
|
@@ -309,29 +309,29 @@ Ne.prototype.set = Pu;
|
|
|
309
309
|
function Cu() {
|
|
310
310
|
this.__data__ = [], this.size = 0;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function Tt(n, o) {
|
|
313
313
|
for (var l = n.length; l--; )
|
|
314
|
-
if (
|
|
314
|
+
if (di(n[l][0], o))
|
|
315
315
|
return l;
|
|
316
316
|
return -1;
|
|
317
317
|
}
|
|
318
318
|
var ku = Array.prototype, Au = ku.splice;
|
|
319
319
|
function Iu(n) {
|
|
320
|
-
var o = this.__data__, l =
|
|
320
|
+
var o = this.__data__, l = Tt(o, n);
|
|
321
321
|
if (l < 0)
|
|
322
322
|
return !1;
|
|
323
323
|
var h = o.length - 1;
|
|
324
324
|
return l == h ? o.pop() : Au.call(o, l, 1), --this.size, !0;
|
|
325
325
|
}
|
|
326
326
|
function Du(n) {
|
|
327
|
-
var o = this.__data__, l =
|
|
327
|
+
var o = this.__data__, l = Tt(o, n);
|
|
328
328
|
return l < 0 ? void 0 : o[l][1];
|
|
329
329
|
}
|
|
330
330
|
function Lu(n) {
|
|
331
|
-
return
|
|
331
|
+
return Tt(this.__data__, n) > -1;
|
|
332
332
|
}
|
|
333
333
|
function Mu(n, o) {
|
|
334
|
-
var l = this.__data__, h =
|
|
334
|
+
var l = this.__data__, h = Tt(l, n);
|
|
335
335
|
return h < 0 ? (++this.size, l.push([n, o])) : l[h][1] = o, this;
|
|
336
336
|
}
|
|
337
337
|
function de(n) {
|
|
@@ -346,11 +346,11 @@ de.prototype.delete = Iu;
|
|
|
346
346
|
de.prototype.get = Du;
|
|
347
347
|
de.prototype.has = Lu;
|
|
348
348
|
de.prototype.set = Mu;
|
|
349
|
-
var
|
|
349
|
+
var rt = we(ue, "Map");
|
|
350
350
|
function Fu() {
|
|
351
351
|
this.size = 0, this.__data__ = {
|
|
352
352
|
hash: new Ne(),
|
|
353
|
-
map: new (
|
|
353
|
+
map: new (rt || de)(),
|
|
354
354
|
string: new Ne()
|
|
355
355
|
};
|
|
356
356
|
}
|
|
@@ -358,42 +358,42 @@ function Uu(n) {
|
|
|
358
358
|
var o = typeof n;
|
|
359
359
|
return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? n !== "__proto__" : n === null;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Nt(n, o) {
|
|
362
362
|
var l = n.__data__;
|
|
363
363
|
return Uu(o) ? l[typeof o == "string" ? "string" : "hash"] : l.map;
|
|
364
364
|
}
|
|
365
365
|
function ju(n) {
|
|
366
|
-
var o =
|
|
366
|
+
var o = Nt(this, n).delete(n);
|
|
367
367
|
return this.size -= o ? 1 : 0, o;
|
|
368
368
|
}
|
|
369
369
|
function Bu(n) {
|
|
370
|
-
return
|
|
370
|
+
return Nt(this, n).get(n);
|
|
371
371
|
}
|
|
372
372
|
function $u(n) {
|
|
373
|
-
return
|
|
373
|
+
return Nt(this, n).has(n);
|
|
374
374
|
}
|
|
375
375
|
function Vu(n, o) {
|
|
376
|
-
var l =
|
|
376
|
+
var l = Nt(this, n), h = l.size;
|
|
377
377
|
return l.set(n, o), this.size += l.size == h ? 0 : 1, this;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function $e(n) {
|
|
380
380
|
var o = -1, l = n == null ? 0 : n.length;
|
|
381
381
|
for (this.clear(); ++o < l; ) {
|
|
382
382
|
var h = n[o];
|
|
383
383
|
this.set(h[0], h[1]);
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
function
|
|
392
|
-
for (var l = -1, h = o.length,
|
|
393
|
-
n[
|
|
386
|
+
$e.prototype.clear = Fu;
|
|
387
|
+
$e.prototype.delete = ju;
|
|
388
|
+
$e.prototype.get = Bu;
|
|
389
|
+
$e.prototype.has = $u;
|
|
390
|
+
$e.prototype.set = Vu;
|
|
391
|
+
function Oi(n, o) {
|
|
392
|
+
for (var l = -1, h = o.length, b = n.length; ++l < h; )
|
|
393
|
+
n[b + l] = o[l];
|
|
394
394
|
return n;
|
|
395
395
|
}
|
|
396
|
-
var
|
|
396
|
+
var Ti = Ri(Object.getPrototypeOf, Object);
|
|
397
397
|
function Gu() {
|
|
398
398
|
this.__data__ = new de(), this.size = 0;
|
|
399
399
|
}
|
|
@@ -412,85 +412,85 @@ function Hu(n, o) {
|
|
|
412
412
|
var l = this.__data__;
|
|
413
413
|
if (l instanceof de) {
|
|
414
414
|
var h = l.__data__;
|
|
415
|
-
if (!
|
|
415
|
+
if (!rt || h.length < Wu - 1)
|
|
416
416
|
return h.push([n, o]), this.size = ++l.size, this;
|
|
417
|
-
l = this.__data__ = new
|
|
417
|
+
l = this.__data__ = new $e(h);
|
|
418
418
|
}
|
|
419
419
|
return l.set(n, o), this.size = l.size, this;
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Ve(n) {
|
|
422
422
|
var o = this.__data__ = new de(n);
|
|
423
423
|
this.size = o.size;
|
|
424
424
|
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
425
|
+
Ve.prototype.clear = Gu;
|
|
426
|
+
Ve.prototype.delete = Yu;
|
|
427
|
+
Ve.prototype.get = zu;
|
|
428
|
+
Ve.prototype.has = Xu;
|
|
429
|
+
Ve.prototype.set = Hu;
|
|
430
430
|
function Ju(n, o) {
|
|
431
|
-
return n &&
|
|
431
|
+
return n && Ot(o, xr(o), n);
|
|
432
432
|
}
|
|
433
433
|
function Ku(n, o) {
|
|
434
|
-
return n &&
|
|
434
|
+
return n && Ot(o, Sr(o), n);
|
|
435
435
|
}
|
|
436
|
-
var
|
|
436
|
+
var Ni = typeof exports == "object" && exports && !exports.nodeType && exports, wn = Ni && typeof module == "object" && module && !module.nodeType && module, qu = wn && wn.exports === Ni, Pn = qu ? ue.Buffer : void 0, Cn = Pn ? Pn.allocUnsafe : void 0;
|
|
437
437
|
function Zu(n, o) {
|
|
438
438
|
if (o)
|
|
439
439
|
return n.slice();
|
|
440
|
-
var l = n.length, h =
|
|
440
|
+
var l = n.length, h = Cn ? Cn(l) : new n.constructor(l);
|
|
441
441
|
return n.copy(h), h;
|
|
442
442
|
}
|
|
443
443
|
function Qu(n, o) {
|
|
444
|
-
for (var l = -1, h = n == null ? 0 : n.length,
|
|
445
|
-
var
|
|
446
|
-
o(
|
|
444
|
+
for (var l = -1, h = n == null ? 0 : n.length, b = 0, g = []; ++l < h; ) {
|
|
445
|
+
var y = n[l];
|
|
446
|
+
o(y, l, n) && (g[b++] = y);
|
|
447
447
|
}
|
|
448
|
-
return
|
|
448
|
+
return g;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function xi() {
|
|
451
451
|
return [];
|
|
452
452
|
}
|
|
453
|
-
var es = Object.prototype, ts = es.propertyIsEnumerable,
|
|
454
|
-
return n == null ? [] : (n = Object(n), Qu(
|
|
453
|
+
var es = Object.prototype, ts = es.propertyIsEnumerable, kn = Object.getOwnPropertySymbols, wr = kn ? function(n) {
|
|
454
|
+
return n == null ? [] : (n = Object(n), Qu(kn(n), function(o) {
|
|
455
455
|
return ts.call(n, o);
|
|
456
456
|
}));
|
|
457
|
-
} :
|
|
457
|
+
} : xi;
|
|
458
458
|
function rs(n, o) {
|
|
459
|
-
return
|
|
459
|
+
return Ot(n, wr(n), o);
|
|
460
460
|
}
|
|
461
|
-
var ns = Object.getOwnPropertySymbols,
|
|
461
|
+
var ns = Object.getOwnPropertySymbols, Si = ns ? function(n) {
|
|
462
462
|
for (var o = []; n; )
|
|
463
|
-
|
|
463
|
+
Oi(o, wr(n)), n = Ti(n);
|
|
464
464
|
return o;
|
|
465
|
-
} :
|
|
465
|
+
} : xi;
|
|
466
466
|
function is(n, o) {
|
|
467
|
-
return
|
|
467
|
+
return Ot(n, Si(n), o);
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function wi(n, o, l) {
|
|
470
470
|
var h = o(n);
|
|
471
|
-
return
|
|
471
|
+
return Or(n) ? h : Oi(h, l(n));
|
|
472
472
|
}
|
|
473
473
|
function as(n) {
|
|
474
|
-
return
|
|
474
|
+
return wi(n, xr, wr);
|
|
475
475
|
}
|
|
476
476
|
function os(n) {
|
|
477
|
-
return
|
|
477
|
+
return wi(n, Sr, Si);
|
|
478
478
|
}
|
|
479
|
-
var
|
|
480
|
-
(
|
|
481
|
-
var o =
|
|
479
|
+
var tr = we(ue, "DataView"), rr = we(ue, "Promise"), nr = we(ue, "Set"), An = "[object Map]", us = "[object Object]", In = "[object Promise]", Dn = "[object Set]", Ln = "[object WeakMap]", Mn = "[object DataView]", ss = Se(tr), ls = Se(rt), cs = Se(rr), fs = Se(nr), ps = Se(er), pe = nt;
|
|
480
|
+
(tr && pe(new tr(new ArrayBuffer(1))) != Mn || rt && pe(new rt()) != An || rr && pe(rr.resolve()) != In || nr && pe(new nr()) != Dn || er && pe(new er()) != Ln) && (pe = function(n) {
|
|
481
|
+
var o = nt(n), l = o == us ? n.constructor : void 0, h = l ? Se(l) : "";
|
|
482
482
|
if (h)
|
|
483
483
|
switch (h) {
|
|
484
484
|
case ss:
|
|
485
|
-
return
|
|
485
|
+
return Mn;
|
|
486
486
|
case ls:
|
|
487
|
-
return
|
|
487
|
+
return An;
|
|
488
488
|
case cs:
|
|
489
|
-
return
|
|
489
|
+
return In;
|
|
490
490
|
case fs:
|
|
491
|
-
return
|
|
491
|
+
return Dn;
|
|
492
492
|
case ps:
|
|
493
|
-
return
|
|
493
|
+
return Ln;
|
|
494
494
|
}
|
|
495
495
|
return o;
|
|
496
496
|
});
|
|
@@ -499,26 +499,26 @@ function vs(n) {
|
|
|
499
499
|
var o = n.length, l = new n.constructor(o);
|
|
500
500
|
return o && typeof n[0] == "string" && hs.call(n, "index") && (l.index = n.index, l.input = n.input), l;
|
|
501
501
|
}
|
|
502
|
-
var
|
|
503
|
-
function
|
|
502
|
+
var Fn = ue.Uint8Array;
|
|
503
|
+
function Pr(n) {
|
|
504
504
|
var o = new n.constructor(n.byteLength);
|
|
505
|
-
return new
|
|
505
|
+
return new Fn(o).set(new Fn(n)), o;
|
|
506
506
|
}
|
|
507
|
-
function
|
|
508
|
-
var l = o ?
|
|
507
|
+
function ys(n, o) {
|
|
508
|
+
var l = o ? Pr(n.buffer) : n.buffer;
|
|
509
509
|
return new n.constructor(l, n.byteOffset, n.byteLength);
|
|
510
510
|
}
|
|
511
|
-
var
|
|
511
|
+
var ms = /\w*$/;
|
|
512
512
|
function _s(n) {
|
|
513
|
-
var o = new n.constructor(n.source,
|
|
513
|
+
var o = new n.constructor(n.source, ms.exec(n));
|
|
514
514
|
return o.lastIndex = n.lastIndex, o;
|
|
515
515
|
}
|
|
516
|
-
var
|
|
516
|
+
var Un = Ue ? Ue.prototype : void 0, jn = Un ? Un.valueOf : void 0;
|
|
517
517
|
function bs(n) {
|
|
518
|
-
return
|
|
518
|
+
return jn ? Object(jn.call(n)) : {};
|
|
519
519
|
}
|
|
520
520
|
function gs(n, o) {
|
|
521
|
-
var l = o ?
|
|
521
|
+
var l = o ? Pr(n.buffer) : n.buffer;
|
|
522
522
|
return new n.constructor(l, n.byteOffset, n.length);
|
|
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]";
|
|
@@ -526,12 +526,12 @@ function Bs(n, o, l) {
|
|
|
526
526
|
var h = n.constructor;
|
|
527
527
|
switch (o) {
|
|
528
528
|
case Ps:
|
|
529
|
-
return
|
|
529
|
+
return Pr(n);
|
|
530
530
|
case Es:
|
|
531
531
|
case Rs:
|
|
532
532
|
return new h(+n);
|
|
533
533
|
case Cs:
|
|
534
|
-
return
|
|
534
|
+
return ys(n, l);
|
|
535
535
|
case ks:
|
|
536
536
|
case As:
|
|
537
537
|
case Is:
|
|
@@ -556,59 +556,59 @@ function Bs(n, o, l) {
|
|
|
556
556
|
}
|
|
557
557
|
}
|
|
558
558
|
function $s(n) {
|
|
559
|
-
return typeof n.constructor == "function" && !
|
|
559
|
+
return typeof n.constructor == "function" && !Tr(n) ? _o(Ti(n)) : {};
|
|
560
560
|
}
|
|
561
561
|
var Vs = "[object Map]";
|
|
562
562
|
function Gs(n) {
|
|
563
|
-
return
|
|
563
|
+
return it(n) && pe(n) == Vs;
|
|
564
564
|
}
|
|
565
|
-
var
|
|
565
|
+
var Bn = je && je.isMap, Ys = Bn ? Nr(Bn) : Gs, zs = "[object Set]";
|
|
566
566
|
function Xs(n) {
|
|
567
|
-
return
|
|
568
|
-
}
|
|
569
|
-
var
|
|
570
|
-
M[
|
|
571
|
-
M[el] = M[
|
|
572
|
-
function
|
|
573
|
-
var
|
|
574
|
-
if (
|
|
575
|
-
return
|
|
576
|
-
if (!
|
|
567
|
+
return it(n) && pe(n) == zs;
|
|
568
|
+
}
|
|
569
|
+
var $n = je && je.isSet, Ws = $n ? Nr($n) : Xs, Hs = 1, Js = 2, Ks = 4, Pi = "[object Arguments]", qs = "[object Array]", Zs = "[object Boolean]", Qs = "[object Date]", el = "[object Error]", Ci = "[object Function]", tl = "[object GeneratorFunction]", rl = "[object Map]", nl = "[object Number]", ki = "[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]", yl = "[object Uint8Array]", ml = "[object Uint8ClampedArray]", _l = "[object Uint16Array]", bl = "[object Uint32Array]", M = {};
|
|
570
|
+
M[Pi] = 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[ki] = M[il] = M[al] = M[ol] = M[ul] = M[yl] = M[ml] = M[_l] = M[bl] = !0;
|
|
571
|
+
M[el] = M[Ci] = M[sl] = !1;
|
|
572
|
+
function bt(n, o, l, h, b, g) {
|
|
573
|
+
var y, O = o & Hs, T = o & Js, r = o & Ks;
|
|
574
|
+
if (y !== void 0)
|
|
575
|
+
return y;
|
|
576
|
+
if (!at(n))
|
|
577
577
|
return n;
|
|
578
|
-
var t =
|
|
578
|
+
var t = Or(n);
|
|
579
579
|
if (t) {
|
|
580
|
-
if (
|
|
581
|
-
return bo(n,
|
|
580
|
+
if (y = vs(n), !O)
|
|
581
|
+
return bo(n, y);
|
|
582
582
|
} else {
|
|
583
|
-
var e = pe(n), i = e ==
|
|
584
|
-
if (
|
|
583
|
+
var e = pe(n), i = e == Ci || e == tl;
|
|
584
|
+
if (bi(n))
|
|
585
585
|
return Zu(n, O);
|
|
586
|
-
if (e ==
|
|
587
|
-
if (
|
|
588
|
-
return
|
|
586
|
+
if (e == ki || e == Pi || i && !b) {
|
|
587
|
+
if (y = T || i ? {} : $s(n), !O)
|
|
588
|
+
return T ? is(n, Ku(y, n)) : rs(n, Ju(y, n));
|
|
589
589
|
} else {
|
|
590
590
|
if (!M[e])
|
|
591
|
-
return
|
|
592
|
-
|
|
591
|
+
return b ? n : {};
|
|
592
|
+
y = Bs(n, e, O);
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
|
|
596
|
-
var s =
|
|
595
|
+
g || (g = new Ve());
|
|
596
|
+
var s = g.get(n);
|
|
597
597
|
if (s)
|
|
598
598
|
return s;
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
}) : Ys(n) && n.forEach(function(a,
|
|
602
|
-
|
|
599
|
+
g.set(n, y), Ws(n) ? n.forEach(function(a) {
|
|
600
|
+
y.add(bt(a, o, l, a, n, g));
|
|
601
|
+
}) : Ys(n) && n.forEach(function(a, f) {
|
|
602
|
+
y.set(f, bt(a, o, l, f, n, g));
|
|
603
603
|
});
|
|
604
|
-
var u = r ?
|
|
605
|
-
return go(c || n, function(a,
|
|
606
|
-
c && (
|
|
607
|
-
}),
|
|
604
|
+
var u = r ? T ? os : as : T ? Sr : xr, c = t ? void 0 : u(n);
|
|
605
|
+
return go(c || n, function(a, f) {
|
|
606
|
+
c && (f = a, a = n[f]), hi(y, f, bt(a, o, l, f, n, g));
|
|
607
|
+
}), y;
|
|
608
608
|
}
|
|
609
609
|
var gl = 1, El = 4;
|
|
610
610
|
function _e(n) {
|
|
611
|
-
return
|
|
611
|
+
return bt(n, gl | El);
|
|
612
612
|
}
|
|
613
613
|
function Rl(n, o) {
|
|
614
614
|
if (n === "page") {
|
|
@@ -622,99 +622,99 @@ function Rl(n, o) {
|
|
|
622
622
|
} else
|
|
623
623
|
console.assert(!1);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Vn(n, o) {
|
|
626
626
|
return n.array ? _e(o ? n.default : n.defaultArray) : _e(n.default);
|
|
627
627
|
}
|
|
628
|
-
function
|
|
629
|
-
function l(h,
|
|
630
|
-
if (
|
|
631
|
-
if (
|
|
628
|
+
function Gn(n, o) {
|
|
629
|
+
function l(h, b) {
|
|
630
|
+
if (b.ui) {
|
|
631
|
+
if (b.ui === "strInput" && b.static)
|
|
632
632
|
return;
|
|
633
|
-
h[
|
|
633
|
+
h[b.key] = Vn(b);
|
|
634
634
|
} else
|
|
635
|
-
|
|
636
|
-
h[
|
|
635
|
+
b.array ? h[b.key] = Vn(b) : b.children.forEach((g) => {
|
|
636
|
+
h[b.key] || (h[b.key] = {}), l(h[b.key], g);
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
639
|
o.forEach((h) => l(n, h));
|
|
640
640
|
}
|
|
641
|
-
function Ol(n, o, l, h,
|
|
642
|
-
const
|
|
643
|
-
if (!
|
|
644
|
-
console.error(`spawnNode prop tag not found, ${
|
|
641
|
+
function Ol(n, o, l, h, b) {
|
|
642
|
+
const g = `type=${n} subtype=${o} version=${l} ref=${h} keyOrRefid=${b}`, y = Rl(n, o);
|
|
643
|
+
if (!y) {
|
|
644
|
+
console.error(`spawnNode prop tag not found, ${g}`);
|
|
645
645
|
return;
|
|
646
646
|
}
|
|
647
|
-
const O =
|
|
647
|
+
const O = Ar[l];
|
|
648
648
|
if (!O) {
|
|
649
|
-
console.error(`spawnNode pkg not found version, ${
|
|
649
|
+
console.error(`spawnNode pkg not found version, ${g}`);
|
|
650
650
|
return;
|
|
651
651
|
}
|
|
652
|
-
const
|
|
652
|
+
const T = {
|
|
653
653
|
basic: {
|
|
654
654
|
id: "",
|
|
655
655
|
key: ""
|
|
656
656
|
}
|
|
657
|
-
}, r =
|
|
657
|
+
}, r = si(16);
|
|
658
658
|
if (h) {
|
|
659
|
-
const t = O.refKey, e =
|
|
659
|
+
const t = O.refKey, e = b;
|
|
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, ${g}`);
|
|
662
662
|
return;
|
|
663
663
|
}
|
|
664
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, ${g}`);
|
|
667
667
|
return;
|
|
668
668
|
}
|
|
669
|
-
const s = i.props[
|
|
669
|
+
const s = i.props[y];
|
|
670
670
|
if (!s) {
|
|
671
|
-
console.error(`spawnNode [ref] props not found, ${
|
|
671
|
+
console.error(`spawnNode [ref] props not found, ${g}`);
|
|
672
672
|
return;
|
|
673
673
|
}
|
|
674
|
-
|
|
674
|
+
Gn(T, s), T.basic.id = r, T.basic.key = t, T.ref = {
|
|
675
675
|
id: e
|
|
676
676
|
};
|
|
677
677
|
} else {
|
|
678
|
-
const t =
|
|
678
|
+
const t = b;
|
|
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, ${g}`);
|
|
681
681
|
return;
|
|
682
682
|
}
|
|
683
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, ${g}`);
|
|
686
686
|
return;
|
|
687
687
|
}
|
|
688
|
-
const i = e.props[
|
|
688
|
+
const i = e.props[y];
|
|
689
689
|
if (!i) {
|
|
690
|
-
console.error(`spawnNode [key] props not found, ${
|
|
690
|
+
console.error(`spawnNode [key] props not found, ${g}`);
|
|
691
691
|
return;
|
|
692
692
|
}
|
|
693
|
-
|
|
693
|
+
Gn(T, i), T.basic.id = r, T.basic.key = t, e.slots.some((s) => s.key === "default") && (T.children = []);
|
|
694
694
|
}
|
|
695
|
-
return
|
|
695
|
+
return T;
|
|
696
696
|
}
|
|
697
697
|
function Yc(n, o) {
|
|
698
698
|
function l(h) {
|
|
699
699
|
if (h.basic.id === o)
|
|
700
700
|
return h;
|
|
701
701
|
if (h.children)
|
|
702
|
-
for (let
|
|
703
|
-
const
|
|
704
|
-
if (
|
|
705
|
-
return
|
|
702
|
+
for (let b = 0; b < h.children.length; b++) {
|
|
703
|
+
const g = l(h.children[b]);
|
|
704
|
+
if (g)
|
|
705
|
+
return g;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
for (let h = 0; h < n.length; h++) {
|
|
709
|
-
const
|
|
710
|
-
if (
|
|
711
|
-
return
|
|
709
|
+
const b = l(n[h]);
|
|
710
|
+
if (b)
|
|
711
|
+
return b;
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
function Tl(n) {
|
|
715
715
|
function o(h) {
|
|
716
|
-
var
|
|
717
|
-
h.basic.id =
|
|
716
|
+
var b;
|
|
717
|
+
h.basic.id = si(16), (b = h.children) == null || b.forEach((g) => o(g));
|
|
718
718
|
}
|
|
719
719
|
const l = _e(n);
|
|
720
720
|
return o(l), l;
|
|
@@ -725,54 +725,54 @@ function zc(n) {
|
|
|
725
725
|
o.push(Tl(l));
|
|
726
726
|
}), o;
|
|
727
727
|
}
|
|
728
|
-
const
|
|
728
|
+
const Ai = "runtimeEnv", Ii = "runtimeMode", Di = "runtimeDevice", Li = "runtimeDark", Mi = "runtimeType", Fi = "runtimeData", Ui = "runtimeDepends", ji = "runtimeSandbox";
|
|
729
729
|
function Xc(n) {
|
|
730
|
-
be(
|
|
730
|
+
be(Ai, n);
|
|
731
731
|
}
|
|
732
|
-
function
|
|
733
|
-
return ge(
|
|
732
|
+
function Bi() {
|
|
733
|
+
return ge(Ai);
|
|
734
734
|
}
|
|
735
735
|
function Wc(n) {
|
|
736
|
-
be(
|
|
736
|
+
be(Ii, n);
|
|
737
737
|
}
|
|
738
738
|
function he() {
|
|
739
|
-
return ge(
|
|
739
|
+
return ge(Ii);
|
|
740
740
|
}
|
|
741
741
|
function Hc(n) {
|
|
742
|
-
be(
|
|
742
|
+
be(Di, mr(n));
|
|
743
743
|
}
|
|
744
|
-
function
|
|
745
|
-
return ge(
|
|
744
|
+
function $i() {
|
|
745
|
+
return ge(Di);
|
|
746
746
|
}
|
|
747
747
|
function Jc(n) {
|
|
748
|
-
be(
|
|
748
|
+
be(Li, mr(n));
|
|
749
749
|
}
|
|
750
|
-
function
|
|
751
|
-
return ge(
|
|
750
|
+
function Ge() {
|
|
751
|
+
return ge(Li);
|
|
752
752
|
}
|
|
753
753
|
function Kc(n) {
|
|
754
|
-
be(
|
|
754
|
+
be(Mi, n);
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
return ge(
|
|
756
|
+
function Cr() {
|
|
757
|
+
return ge(Mi);
|
|
758
758
|
}
|
|
759
759
|
function qc(n) {
|
|
760
|
-
console.assert(
|
|
760
|
+
console.assert(ai(n)), be(Fi, n);
|
|
761
761
|
}
|
|
762
|
-
function
|
|
763
|
-
return ge(
|
|
762
|
+
function kr() {
|
|
763
|
+
return ge(Fi);
|
|
764
764
|
}
|
|
765
765
|
function Zc(n) {
|
|
766
|
-
console.assert(
|
|
766
|
+
console.assert(ai(n)), be(Ui, mr(n));
|
|
767
767
|
}
|
|
768
|
-
function
|
|
769
|
-
return ge(
|
|
768
|
+
function Vi() {
|
|
769
|
+
return ge(Ui);
|
|
770
770
|
}
|
|
771
|
-
function
|
|
772
|
-
be(
|
|
771
|
+
function Gi(n) {
|
|
772
|
+
be(ji, n);
|
|
773
773
|
}
|
|
774
774
|
function Nl() {
|
|
775
|
-
return ge(
|
|
775
|
+
return ge(ji);
|
|
776
776
|
}
|
|
777
777
|
const xl = /* @__PURE__ */ oe({
|
|
778
778
|
__name: "index",
|
|
@@ -781,34 +781,37 @@ const xl = /* @__PURE__ */ oe({
|
|
|
781
781
|
outer: { type: Boolean }
|
|
782
782
|
},
|
|
783
783
|
setup(n) {
|
|
784
|
-
const o = n, l = he(), h =
|
|
784
|
+
const o = n, l = he(), h = Ge(), b = Nl(), g = x(() => {
|
|
785
785
|
var i;
|
|
786
786
|
return (i = o.node.settings) == null ? void 0 : i.text;
|
|
787
|
-
}),
|
|
787
|
+
}), y = x(() => {
|
|
788
788
|
var i;
|
|
789
789
|
return (i = o.node.settings) == null ? void 0 : i.disabled;
|
|
790
|
-
}), O =
|
|
790
|
+
}), O = x(() => {
|
|
791
791
|
var i;
|
|
792
792
|
return (i = o.node.settings) == null ? void 0 : i.variant;
|
|
793
|
-
}),
|
|
793
|
+
}), T = x(() => {
|
|
794
794
|
var i;
|
|
795
795
|
return (i = o.node.settings) == null ? void 0 : i.density;
|
|
796
|
-
}), r =
|
|
796
|
+
}), r = x(() => {
|
|
797
797
|
var i;
|
|
798
798
|
return (i = o.node.settings) == null ? void 0 : i.block;
|
|
799
|
-
}), t =
|
|
800
|
-
if (l !== "runtime"
|
|
799
|
+
}), t = x(() => h.value ? "dark" : "light"), e = () => {
|
|
800
|
+
if (l !== "runtime")
|
|
801
801
|
return;
|
|
802
|
-
const i =
|
|
803
|
-
|
|
802
|
+
const i = b.interpreter;
|
|
803
|
+
if (!i)
|
|
804
|
+
return;
|
|
805
|
+
const s = i.nativeToPseudo(o.node.basic.id);
|
|
806
|
+
i.appendCode(`__triggerEvent__('${s}', 'click');`), i.run();
|
|
804
807
|
};
|
|
805
808
|
return (i, s) => {
|
|
806
809
|
const u = ie("v-btn");
|
|
807
810
|
return G(), Q(u, {
|
|
808
|
-
text:
|
|
809
|
-
disabled:
|
|
811
|
+
text: g.value,
|
|
812
|
+
disabled: y.value,
|
|
810
813
|
variant: O.value,
|
|
811
|
-
density:
|
|
814
|
+
density: T.value,
|
|
812
815
|
block: r.value,
|
|
813
816
|
theme: t.value,
|
|
814
817
|
onClick: e
|
|
@@ -822,11 +825,11 @@ const xl = /* @__PURE__ */ oe({
|
|
|
822
825
|
{ title: "x-runtime-lib.outlined", value: "outlined" },
|
|
823
826
|
{ title: "x-runtime-lib.text", value: "text" },
|
|
824
827
|
{ title: "x-runtime-lib.plain", value: "plain" }
|
|
825
|
-
],
|
|
828
|
+
], Yi = [
|
|
826
829
|
{ title: "x-runtime-lib.default", value: "default" },
|
|
827
830
|
{ title: "x-runtime-lib.comfortable", value: "comfortable" },
|
|
828
831
|
{ title: "x-runtime-lib.compact", value: "compact" }
|
|
829
|
-
],
|
|
832
|
+
], ir = "btn_v1", ar = "card_v1", or = "chip_v1", ur = "combobox_v1", sr = "container_v1", lr = "data_table_v1", cr = "dialog_v1", fr = "globality_v1", pr = "number_input_v1", dr = "rating_v1", gt = "ref_v1", hr = "select_v1", vr = "text_area_v1", yr = "text_field_v1", F = {
|
|
830
833
|
key: "basic",
|
|
831
834
|
name: "x-runtime-lib.basic",
|
|
832
835
|
children: [
|
|
@@ -851,7 +854,7 @@ const xl = /* @__PURE__ */ oe({
|
|
|
851
854
|
default: ""
|
|
852
855
|
}
|
|
853
856
|
]
|
|
854
|
-
},
|
|
857
|
+
}, Yn = {
|
|
855
858
|
key: "settings",
|
|
856
859
|
name: "x-runtime-lib.settings",
|
|
857
860
|
children: [
|
|
@@ -878,7 +881,7 @@ const xl = /* @__PURE__ */ oe({
|
|
|
878
881
|
key: "density",
|
|
879
882
|
name: "x-runtime-lib.density",
|
|
880
883
|
ui: "select",
|
|
881
|
-
items:
|
|
884
|
+
items: Yi,
|
|
882
885
|
default: "default"
|
|
883
886
|
},
|
|
884
887
|
{
|
|
@@ -889,7 +892,7 @@ const xl = /* @__PURE__ */ oe({
|
|
|
889
892
|
}
|
|
890
893
|
]
|
|
891
894
|
}, wl = {
|
|
892
|
-
key:
|
|
895
|
+
key: ir,
|
|
893
896
|
name: "x-runtime-lib.button",
|
|
894
897
|
comp: xl,
|
|
895
898
|
slots: [],
|
|
@@ -902,26 +905,26 @@ const xl = /* @__PURE__ */ oe({
|
|
|
902
905
|
],
|
|
903
906
|
methods: [],
|
|
904
907
|
props: {
|
|
905
|
-
pageCommon: [F,
|
|
906
|
-
compCommon: [F,
|
|
908
|
+
pageCommon: [F, Yn],
|
|
909
|
+
compCommon: [F, Yn]
|
|
907
910
|
}
|
|
908
|
-
},
|
|
911
|
+
}, xt = (n, o) => {
|
|
909
912
|
const l = n.__vccOpts || n;
|
|
910
|
-
for (const [h,
|
|
911
|
-
l[h] =
|
|
913
|
+
for (const [h, b] of o)
|
|
914
|
+
l[h] = b;
|
|
912
915
|
return l;
|
|
913
916
|
}, Pl = {};
|
|
914
917
|
function Cl(n, o) {
|
|
915
918
|
const l = ie("v-card");
|
|
916
919
|
return G(), Q(l, null, {
|
|
917
920
|
default: ee(() => [
|
|
918
|
-
|
|
921
|
+
_r(n.$slots, "default")
|
|
919
922
|
]),
|
|
920
923
|
_: 3
|
|
921
924
|
});
|
|
922
925
|
}
|
|
923
|
-
const kl = /* @__PURE__ */
|
|
924
|
-
key:
|
|
926
|
+
const kl = /* @__PURE__ */ xt(Pl, [["render", Cl]]), Al = {
|
|
927
|
+
key: ar,
|
|
925
928
|
name: "x-runtime-lib.card",
|
|
926
929
|
comp: kl,
|
|
927
930
|
slots: [
|
|
@@ -941,8 +944,8 @@ function Dl(n, o) {
|
|
|
941
944
|
const l = ie("v-chip");
|
|
942
945
|
return G(), Q(l);
|
|
943
946
|
}
|
|
944
|
-
const Ll = /* @__PURE__ */
|
|
945
|
-
key:
|
|
947
|
+
const Ll = /* @__PURE__ */ xt(Il, [["render", Dl]]), Ml = {
|
|
948
|
+
key: or,
|
|
946
949
|
name: "x-runtime-lib.chip",
|
|
947
950
|
comp: Ll,
|
|
948
951
|
slots: [],
|
|
@@ -959,50 +962,50 @@ const Ll = /* @__PURE__ */ Tt(Il, [["render", Dl]]), Ml = {
|
|
|
959
962
|
outer: { type: Boolean }
|
|
960
963
|
},
|
|
961
964
|
setup(n) {
|
|
962
|
-
const o = n, l = he(), h =
|
|
965
|
+
const o = n, l = he(), h = Ge(), b = x(() => {
|
|
963
966
|
var e;
|
|
964
967
|
return (e = o.node.settings) == null ? void 0 : e.value;
|
|
965
|
-
}),
|
|
968
|
+
}), g = x(() => {
|
|
966
969
|
var e;
|
|
967
970
|
return (e = o.node.settings) == null ? void 0 : e.label;
|
|
968
|
-
}),
|
|
971
|
+
}), y = x(() => {
|
|
969
972
|
var e;
|
|
970
973
|
return (e = o.node.settings) == null ? void 0 : e.placeholder;
|
|
971
|
-
}), O =
|
|
974
|
+
}), O = x(() => {
|
|
972
975
|
var e;
|
|
973
976
|
return (e = o.node.settings) == null ? void 0 : e.hideDetails;
|
|
974
|
-
}),
|
|
977
|
+
}), T = x(() => {
|
|
975
978
|
var e;
|
|
976
979
|
return (e = o.node.settings) == null ? void 0 : e.singleLine;
|
|
977
|
-
}), r =
|
|
980
|
+
}), r = x(() => {
|
|
978
981
|
var e;
|
|
979
982
|
return l !== "runtime" ? !0 : (e = o.node.settings) == null ? void 0 : e.readonly;
|
|
980
|
-
}), t =
|
|
983
|
+
}), t = x(() => h.value ? "dark" : "light");
|
|
981
984
|
return (e, i) => {
|
|
982
985
|
const s = ie("v-combobox");
|
|
983
|
-
return
|
|
986
|
+
return Me(l) === "editor" ? (G(), Be("div", Fl, [
|
|
984
987
|
Z(s, {
|
|
985
|
-
"model-value":
|
|
986
|
-
label:
|
|
987
|
-
placeholder:
|
|
988
|
+
"model-value": b.value,
|
|
989
|
+
label: g.value,
|
|
990
|
+
placeholder: y.value,
|
|
988
991
|
"hide-details": O.value,
|
|
989
|
-
"single-line":
|
|
992
|
+
"single-line": T.value,
|
|
990
993
|
readonly: r.value,
|
|
991
994
|
theme: t.value
|
|
992
995
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
993
996
|
])) : (G(), Q(s, {
|
|
994
997
|
key: 1,
|
|
995
|
-
"model-value":
|
|
996
|
-
label:
|
|
997
|
-
placeholder:
|
|
998
|
+
"model-value": b.value,
|
|
999
|
+
label: g.value,
|
|
1000
|
+
placeholder: y.value,
|
|
998
1001
|
"hide-details": O.value,
|
|
999
|
-
"single-line":
|
|
1002
|
+
"single-line": T.value,
|
|
1000
1003
|
readonly: r.value,
|
|
1001
1004
|
theme: t.value
|
|
1002
1005
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"]));
|
|
1003
1006
|
};
|
|
1004
1007
|
}
|
|
1005
|
-
}),
|
|
1008
|
+
}), zn = {
|
|
1006
1009
|
key: "settings",
|
|
1007
1010
|
name: "x-runtime-lib.settings",
|
|
1008
1011
|
children: [
|
|
@@ -1044,110 +1047,110 @@ const Ll = /* @__PURE__ */ Tt(Il, [["render", Dl]]), Ml = {
|
|
|
1044
1047
|
}
|
|
1045
1048
|
]
|
|
1046
1049
|
}, jl = {
|
|
1047
|
-
key:
|
|
1050
|
+
key: ur,
|
|
1048
1051
|
name: "x-runtime-lib.combobox",
|
|
1049
1052
|
comp: Ul,
|
|
1050
1053
|
slots: [],
|
|
1051
1054
|
events: [],
|
|
1052
1055
|
methods: [],
|
|
1053
1056
|
props: {
|
|
1054
|
-
pageCommon: [F,
|
|
1055
|
-
compCommon: [F,
|
|
1057
|
+
pageCommon: [F, zn],
|
|
1058
|
+
compCommon: [F, zn]
|
|
1056
1059
|
}
|
|
1057
1060
|
};
|
|
1058
|
-
function
|
|
1059
|
-
const h =
|
|
1061
|
+
function zi(n, o, l) {
|
|
1062
|
+
const h = x(() => {
|
|
1060
1063
|
var t;
|
|
1061
1064
|
return (t = l.node.size) == null ? void 0 : t.width;
|
|
1062
|
-
}),
|
|
1065
|
+
}), b = x(() => {
|
|
1063
1066
|
var t;
|
|
1064
1067
|
return (t = l.node.size) == null ? void 0 : t.minWidth;
|
|
1065
|
-
}),
|
|
1068
|
+
}), g = x(() => {
|
|
1066
1069
|
var t;
|
|
1067
1070
|
return (t = l.node.size) == null ? void 0 : t.maxWidth;
|
|
1068
|
-
}),
|
|
1071
|
+
}), y = x(() => {
|
|
1069
1072
|
var t, e;
|
|
1070
1073
|
if (l.outer && n === "editor") {
|
|
1071
|
-
const i =
|
|
1074
|
+
const i = Kt((t = l.node.size) == null ? void 0 : t.height);
|
|
1072
1075
|
if (i)
|
|
1073
1076
|
return i / 100 * o.value.height + "px";
|
|
1074
1077
|
}
|
|
1075
1078
|
return (e = l.node.size) == null ? void 0 : e.height;
|
|
1076
|
-
}), O =
|
|
1079
|
+
}), O = x(() => {
|
|
1077
1080
|
var t, e;
|
|
1078
1081
|
if (l.outer && n === "editor") {
|
|
1079
|
-
const i =
|
|
1082
|
+
const i = Kt((t = l.node.size) == null ? void 0 : t.minHeight);
|
|
1080
1083
|
if (i)
|
|
1081
1084
|
return i / 100 * o.value.height + "px";
|
|
1082
1085
|
}
|
|
1083
1086
|
return (e = l.node.size) == null ? void 0 : e.minHeight;
|
|
1084
|
-
}),
|
|
1087
|
+
}), T = x(() => {
|
|
1085
1088
|
var t, e;
|
|
1086
1089
|
if (l.outer && n === "editor") {
|
|
1087
|
-
const i =
|
|
1090
|
+
const i = Kt((t = l.node.size) == null ? void 0 : t.maxHeight);
|
|
1088
1091
|
if (i)
|
|
1089
1092
|
return i / 100 * o.value.height + "px";
|
|
1090
1093
|
}
|
|
1091
1094
|
return (e = l.node.size) == null ? void 0 : e.maxHeight;
|
|
1092
1095
|
});
|
|
1093
1096
|
function r(t) {
|
|
1094
|
-
h.value && (t.width = h.value),
|
|
1097
|
+
h.value && (t.width = h.value), b.value && (t.minWidth = b.value), g.value && (t.maxWidth = g.value), y.value && (t.height = y.value), O.value && (t.minHeight = O.value), T.value && (t.maxHeight = T.value);
|
|
1095
1098
|
}
|
|
1096
|
-
return { width: h, minWidth:
|
|
1099
|
+
return { width: h, minWidth: b, maxWidth: g, height: y, minHeight: O, maxHeight: T, applySize: r };
|
|
1097
1100
|
}
|
|
1098
1101
|
function Bl(n) {
|
|
1099
|
-
const o =
|
|
1100
|
-
var
|
|
1101
|
-
return (
|
|
1102
|
-
}), l =
|
|
1103
|
-
var
|
|
1104
|
-
return (
|
|
1105
|
-
}), h =
|
|
1106
|
-
var
|
|
1107
|
-
return (
|
|
1108
|
-
}),
|
|
1109
|
-
var
|
|
1110
|
-
return (
|
|
1102
|
+
const o = x(() => {
|
|
1103
|
+
var y;
|
|
1104
|
+
return (y = n.node.margin) == null ? void 0 : y.top;
|
|
1105
|
+
}), l = x(() => {
|
|
1106
|
+
var y;
|
|
1107
|
+
return (y = n.node.margin) == null ? void 0 : y.left;
|
|
1108
|
+
}), h = x(() => {
|
|
1109
|
+
var y;
|
|
1110
|
+
return (y = n.node.margin) == null ? void 0 : y.bottom;
|
|
1111
|
+
}), b = x(() => {
|
|
1112
|
+
var y;
|
|
1113
|
+
return (y = n.node.margin) == null ? void 0 : y.right;
|
|
1111
1114
|
});
|
|
1112
|
-
function
|
|
1113
|
-
o.value && (
|
|
1115
|
+
function g(y) {
|
|
1116
|
+
o.value && (y.marginTop = o.value), l.value && (y.marginLeft = l.value), h.value && (y.marginBottom = h.value), b.value && (y.marginRight = b.value);
|
|
1114
1117
|
}
|
|
1115
|
-
return { marginTop: o, marginLeft: l, marginBottom: h, marginRight:
|
|
1118
|
+
return { marginTop: o, marginLeft: l, marginBottom: h, marginRight: b, applyMargin: g };
|
|
1116
1119
|
}
|
|
1117
1120
|
function $l(n) {
|
|
1118
|
-
const o =
|
|
1119
|
-
var
|
|
1120
|
-
return (
|
|
1121
|
-
}), l =
|
|
1122
|
-
var
|
|
1123
|
-
return (
|
|
1124
|
-
}), h =
|
|
1125
|
-
var
|
|
1126
|
-
return (
|
|
1127
|
-
}),
|
|
1128
|
-
var
|
|
1129
|
-
return (
|
|
1121
|
+
const o = x(() => {
|
|
1122
|
+
var y;
|
|
1123
|
+
return (y = n.node.padding) == null ? void 0 : y.top;
|
|
1124
|
+
}), l = x(() => {
|
|
1125
|
+
var y;
|
|
1126
|
+
return (y = n.node.padding) == null ? void 0 : y.left;
|
|
1127
|
+
}), h = x(() => {
|
|
1128
|
+
var y;
|
|
1129
|
+
return (y = n.node.padding) == null ? void 0 : y.bottom;
|
|
1130
|
+
}), b = x(() => {
|
|
1131
|
+
var y;
|
|
1132
|
+
return (y = n.node.padding) == null ? void 0 : y.right;
|
|
1130
1133
|
});
|
|
1131
|
-
function
|
|
1132
|
-
o.value && (
|
|
1134
|
+
function g(y) {
|
|
1135
|
+
o.value && (y.paddingTop = o.value), l.value && (y.paddingLeft = l.value), h.value && (y.paddingBottom = h.value), b.value && (y.paddingRight = b.value);
|
|
1133
1136
|
}
|
|
1134
|
-
return { paddingTop: o, paddingLeft: l, paddingBottom: h, paddingRight:
|
|
1137
|
+
return { paddingTop: o, paddingLeft: l, paddingBottom: h, paddingRight: b, applyPadding: g };
|
|
1135
1138
|
}
|
|
1136
1139
|
function Vl(n) {
|
|
1137
|
-
const o =
|
|
1138
|
-
var
|
|
1139
|
-
return (
|
|
1140
|
-
}), l =
|
|
1141
|
-
var
|
|
1142
|
-
return (
|
|
1143
|
-
}), h =
|
|
1144
|
-
var
|
|
1145
|
-
return (
|
|
1140
|
+
const o = x(() => {
|
|
1141
|
+
var g;
|
|
1142
|
+
return (g = n.node.border) == null ? void 0 : g.style;
|
|
1143
|
+
}), l = x(() => {
|
|
1144
|
+
var g;
|
|
1145
|
+
return (g = n.node.border) == null ? void 0 : g.width;
|
|
1146
|
+
}), h = x(() => {
|
|
1147
|
+
var g;
|
|
1148
|
+
return (g = n.node.border) == null ? void 0 : g.color;
|
|
1146
1149
|
});
|
|
1147
|
-
function
|
|
1148
|
-
o.value && (
|
|
1150
|
+
function b(g) {
|
|
1151
|
+
o.value && (g.borderStyle = o.value), l.value && (g.borderWidth = l.value), h.value && (g.borderColor = h.value);
|
|
1149
1152
|
}
|
|
1150
|
-
return { borderStyle: o, borderWidth: l, borderColor: h, applyBorder:
|
|
1153
|
+
return { borderStyle: o, borderWidth: l, borderColor: h, applyBorder: b };
|
|
1151
1154
|
}
|
|
1152
1155
|
const Gl = /* @__PURE__ */ oe({
|
|
1153
1156
|
__name: "index",
|
|
@@ -1156,14 +1159,14 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1156
1159
|
outer: { type: Boolean }
|
|
1157
1160
|
},
|
|
1158
1161
|
setup(n) {
|
|
1159
|
-
const o = n, l = he(), h =
|
|
1160
|
-
const e = {}, i =
|
|
1161
|
-
return
|
|
1162
|
+
const o = n, l = he(), h = $i(), b = Cr(), g = kr(), { applySize: y } = zi(l, h, o), { applyMargin: O } = Bl(o), { applyPadding: T } = $l(o), { applyBorder: r } = Vl(o), t = x(() => {
|
|
1163
|
+
const e = {}, i = g.type;
|
|
1164
|
+
return b === "page" ? i === "common" ? (y(e), O(e), T(e), r(e)) : console.assert(!1) : b === "comp" && i === "common" ? (y(e), O(e), T(e), r(e)) : console.assert(!1), e;
|
|
1162
1165
|
});
|
|
1163
|
-
return (e, i) => (G(),
|
|
1166
|
+
return (e, i) => (G(), Be("div", {
|
|
1164
1167
|
style: Ia(t.value)
|
|
1165
1168
|
}, [
|
|
1166
|
-
|
|
1169
|
+
_r(e.$slots, "default")
|
|
1167
1170
|
], 4));
|
|
1168
1171
|
}
|
|
1169
1172
|
}), Yl = [
|
|
@@ -1175,13 +1178,13 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1175
1178
|
{
|
|
1176
1179
|
name: "x-runtime-lib.default",
|
|
1177
1180
|
ui: "word",
|
|
1178
|
-
validator:
|
|
1181
|
+
validator: gr,
|
|
1179
1182
|
default: ""
|
|
1180
1183
|
},
|
|
1181
1184
|
{
|
|
1182
1185
|
name: "x-runtime-lib.pixel",
|
|
1183
1186
|
ui: "pixelInput",
|
|
1184
|
-
validator:
|
|
1187
|
+
validator: Er,
|
|
1185
1188
|
default: "0px",
|
|
1186
1189
|
precision: 0,
|
|
1187
1190
|
min: 0,
|
|
@@ -1191,14 +1194,14 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1191
1194
|
{
|
|
1192
1195
|
name: "x-runtime-lib.percent",
|
|
1193
1196
|
ui: "percentInput",
|
|
1194
|
-
validator:
|
|
1197
|
+
validator: Rr,
|
|
1195
1198
|
default: "0%",
|
|
1196
1199
|
precision: 4,
|
|
1197
1200
|
min: 0,
|
|
1198
1201
|
max: 1 / 0,
|
|
1199
1202
|
step: 1
|
|
1200
1203
|
}
|
|
1201
|
-
],
|
|
1204
|
+
], Xn = {
|
|
1202
1205
|
key: "border",
|
|
1203
1206
|
name: "x-runtime-lib.border",
|
|
1204
1207
|
children: [
|
|
@@ -1267,7 +1270,7 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1267
1270
|
{
|
|
1268
1271
|
name: "x-runtime-lib.default",
|
|
1269
1272
|
ui: "word",
|
|
1270
|
-
validator:
|
|
1273
|
+
validator: gr,
|
|
1271
1274
|
default: ""
|
|
1272
1275
|
},
|
|
1273
1276
|
{
|
|
@@ -1279,7 +1282,7 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1279
1282
|
{
|
|
1280
1283
|
name: "x-runtime-lib.pixel",
|
|
1281
1284
|
ui: "pixelInput",
|
|
1282
|
-
validator:
|
|
1285
|
+
validator: Er,
|
|
1283
1286
|
default: "0px",
|
|
1284
1287
|
precision: 0,
|
|
1285
1288
|
min: 0,
|
|
@@ -1289,14 +1292,14 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1289
1292
|
{
|
|
1290
1293
|
name: "x-runtime-lib.percent",
|
|
1291
1294
|
ui: "percentInput",
|
|
1292
|
-
validator:
|
|
1295
|
+
validator: Rr,
|
|
1293
1296
|
default: "0%",
|
|
1294
1297
|
precision: 4,
|
|
1295
1298
|
min: 0,
|
|
1296
1299
|
max: 1 / 0,
|
|
1297
1300
|
step: 1
|
|
1298
1301
|
}
|
|
1299
|
-
],
|
|
1302
|
+
], Wn = {
|
|
1300
1303
|
key: "margin",
|
|
1301
1304
|
name: "x-runtime-lib.margin",
|
|
1302
1305
|
children: [
|
|
@@ -1329,17 +1332,17 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1329
1332
|
default: ""
|
|
1330
1333
|
}
|
|
1331
1334
|
]
|
|
1332
|
-
},
|
|
1335
|
+
}, _t = [
|
|
1333
1336
|
{
|
|
1334
1337
|
name: "x-runtime-lib.default",
|
|
1335
1338
|
ui: "word",
|
|
1336
|
-
validator:
|
|
1339
|
+
validator: gr,
|
|
1337
1340
|
default: ""
|
|
1338
1341
|
},
|
|
1339
1342
|
{
|
|
1340
1343
|
name: "x-runtime-lib.pixel",
|
|
1341
1344
|
ui: "pixelInput",
|
|
1342
|
-
validator:
|
|
1345
|
+
validator: Er,
|
|
1343
1346
|
default: "0px",
|
|
1344
1347
|
precision: 0,
|
|
1345
1348
|
min: 0,
|
|
@@ -1349,14 +1352,14 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1349
1352
|
{
|
|
1350
1353
|
name: "x-runtime-lib.percent",
|
|
1351
1354
|
ui: "percentInput",
|
|
1352
|
-
validator:
|
|
1355
|
+
validator: Rr,
|
|
1353
1356
|
default: "0%",
|
|
1354
1357
|
precision: 4,
|
|
1355
1358
|
min: 0,
|
|
1356
1359
|
max: 1 / 0,
|
|
1357
1360
|
step: 1
|
|
1358
1361
|
}
|
|
1359
|
-
],
|
|
1362
|
+
], Hn = {
|
|
1360
1363
|
key: "padding",
|
|
1361
1364
|
name: "x-runtime-lib.padding",
|
|
1362
1365
|
children: [
|
|
@@ -1364,32 +1367,32 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1364
1367
|
key: "top",
|
|
1365
1368
|
name: "x-runtime-lib.top",
|
|
1366
1369
|
ui: "multiTypes",
|
|
1367
|
-
types:
|
|
1370
|
+
types: _t,
|
|
1368
1371
|
default: ""
|
|
1369
1372
|
},
|
|
1370
1373
|
{
|
|
1371
1374
|
key: "left",
|
|
1372
1375
|
name: "x-runtime-lib.left",
|
|
1373
1376
|
ui: "multiTypes",
|
|
1374
|
-
types:
|
|
1377
|
+
types: _t,
|
|
1375
1378
|
default: ""
|
|
1376
1379
|
},
|
|
1377
1380
|
{
|
|
1378
1381
|
key: "bottom",
|
|
1379
1382
|
name: "x-runtime-lib.bottom",
|
|
1380
1383
|
ui: "multiTypes",
|
|
1381
|
-
types:
|
|
1384
|
+
types: _t,
|
|
1382
1385
|
default: ""
|
|
1383
1386
|
},
|
|
1384
1387
|
{
|
|
1385
1388
|
key: "right",
|
|
1386
1389
|
name: "x-runtime-lib.right",
|
|
1387
1390
|
ui: "multiTypes",
|
|
1388
|
-
types:
|
|
1391
|
+
types: _t,
|
|
1389
1392
|
default: ""
|
|
1390
1393
|
}
|
|
1391
1394
|
]
|
|
1392
|
-
},
|
|
1395
|
+
}, Rt = {
|
|
1393
1396
|
key: "size",
|
|
1394
1397
|
name: "x-runtime-lib.size",
|
|
1395
1398
|
children: [
|
|
@@ -1436,12 +1439,12 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1436
1439
|
default: ""
|
|
1437
1440
|
}
|
|
1438
1441
|
]
|
|
1439
|
-
},
|
|
1442
|
+
}, Jn = {
|
|
1440
1443
|
key: "settings",
|
|
1441
1444
|
name: "x-runtime-lib.settings",
|
|
1442
1445
|
children: []
|
|
1443
1446
|
}, zl = {
|
|
1444
|
-
key:
|
|
1447
|
+
key: sr,
|
|
1445
1448
|
name: "x-runtime-lib.container",
|
|
1446
1449
|
comp: Gl,
|
|
1447
1450
|
slots: [
|
|
@@ -1459,8 +1462,8 @@ const Gl = /* @__PURE__ */ oe({
|
|
|
1459
1462
|
],
|
|
1460
1463
|
methods: [],
|
|
1461
1464
|
props: {
|
|
1462
|
-
pageCommon: [F,
|
|
1463
|
-
compCommon: [F,
|
|
1465
|
+
pageCommon: [F, Rt, Xn, Wn, Hn, Jn],
|
|
1466
|
+
compCommon: [F, Rt, Xn, Wn, Hn, Jn]
|
|
1464
1467
|
}
|
|
1465
1468
|
};
|
|
1466
1469
|
var Xl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -1477,8 +1480,8 @@ function Hl(n) {
|
|
|
1477
1480
|
l.prototype = o.prototype;
|
|
1478
1481
|
} else l = {};
|
|
1479
1482
|
return Object.defineProperty(l, "__esModule", { value: !0 }), Object.keys(n).forEach(function(h) {
|
|
1480
|
-
var
|
|
1481
|
-
Object.defineProperty(l, h,
|
|
1483
|
+
var b = Object.getOwnPropertyDescriptor(n, h);
|
|
1484
|
+
Object.defineProperty(l, h, b.get ? b : {
|
|
1482
1485
|
enumerable: !0,
|
|
1483
1486
|
get: function() {
|
|
1484
1487
|
return n[h];
|
|
@@ -1486,14 +1489,14 @@ function Hl(n) {
|
|
|
1486
1489
|
});
|
|
1487
1490
|
}), l;
|
|
1488
1491
|
}
|
|
1489
|
-
var
|
|
1492
|
+
var Xi = { exports: {} };
|
|
1490
1493
|
const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1491
1494
|
__proto__: null,
|
|
1492
1495
|
default: Jl
|
|
1493
1496
|
}, Symbol.toStringTag, { value: "Module" })), ql = /* @__PURE__ */ Hl(Kl);
|
|
1494
1497
|
(function(n, o) {
|
|
1495
|
-
(function(h,
|
|
1496
|
-
n.exports =
|
|
1498
|
+
(function(h, b) {
|
|
1499
|
+
n.exports = b();
|
|
1497
1500
|
})(Xl, () => (
|
|
1498
1501
|
/******/
|
|
1499
1502
|
(() => {
|
|
@@ -1504,7 +1507,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1504
1507
|
!*** ./original-repo/interpreter.js ***!
|
|
1505
1508
|
\**************************************/
|
|
1506
1509
|
/***/
|
|
1507
|
-
function(
|
|
1510
|
+
function(y, O, T) {
|
|
1508
1511
|
/**
|
|
1509
1512
|
* @license
|
|
1510
1513
|
* Copyright 2013 Neil Fraser
|
|
@@ -1521,8 +1524,8 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1521
1524
|
s[u] = u === "body" ? t[u].slice() : t[u];
|
|
1522
1525
|
this.ast = s, this.tasks = [], this.initFunc_ = e, this.paused_ = !1, this.polyfills_ = [], this.functionCounter_ = 0, this.stepFunctions_ = /* @__PURE__ */ Object.create(null);
|
|
1523
1526
|
var c = /^step([A-Z]\w*)$/, a;
|
|
1524
|
-
for (var
|
|
1525
|
-
typeof this[
|
|
1527
|
+
for (var f in this)
|
|
1528
|
+
typeof this[f] == "function" && (a = f.match(c)) && (this.stepFunctions_[a[1]] = this[f].bind(this));
|
|
1526
1529
|
this.globalScope = this.createScope(this.ast, null), this.globalObject = this.globalScope.object, this.ast = this.parse_(this.polyfills_.join(`
|
|
1527
1530
|
`), "polyfills"), this.polyfills_ = void 0, r.stripLocations_(this.ast, void 0, void 0);
|
|
1528
1531
|
var v = new r.State(this.ast, this.globalScope);
|
|
@@ -1743,9 +1746,9 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1743
1746
|
[encodeURIComponent, "encodeURIComponent"]
|
|
1744
1747
|
], c = 0; c < u.length; c++)
|
|
1745
1748
|
i = /* @__PURE__ */ function(a) {
|
|
1746
|
-
return function(
|
|
1749
|
+
return function(f) {
|
|
1747
1750
|
try {
|
|
1748
|
-
return a(
|
|
1751
|
+
return a(f);
|
|
1749
1752
|
} catch (v) {
|
|
1750
1753
|
e.throwException(e.URI_ERROR, v.message);
|
|
1751
1754
|
}
|
|
@@ -1756,29 +1759,29 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1756
1759
|
this.createNativeFunction(i, !1),
|
|
1757
1760
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1758
1761
|
);
|
|
1759
|
-
i = function(
|
|
1762
|
+
i = function(f) {
|
|
1760
1763
|
return e.createTask_(!1, arguments);
|
|
1761
1764
|
}, this.setProperty(
|
|
1762
1765
|
t,
|
|
1763
1766
|
"setTimeout",
|
|
1764
1767
|
this.createNativeFunction(i, !1),
|
|
1765
1768
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1766
|
-
), i = function(
|
|
1769
|
+
), i = function(f) {
|
|
1767
1770
|
return e.createTask_(!0, arguments);
|
|
1768
1771
|
}, this.setProperty(
|
|
1769
1772
|
t,
|
|
1770
1773
|
"setInterval",
|
|
1771
1774
|
this.createNativeFunction(i, !1),
|
|
1772
1775
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1773
|
-
), i = function(
|
|
1774
|
-
e.deleteTask_(
|
|
1776
|
+
), i = function(f) {
|
|
1777
|
+
e.deleteTask_(f);
|
|
1775
1778
|
}, this.setProperty(
|
|
1776
1779
|
t,
|
|
1777
1780
|
"clearTimeout",
|
|
1778
1781
|
this.createNativeFunction(i, !1),
|
|
1779
1782
|
r.NONENUMERABLE_DESCRIPTOR
|
|
1780
|
-
), i = function(
|
|
1781
|
-
e.deleteTask_(
|
|
1783
|
+
), i = function(f) {
|
|
1784
|
+
e.deleteTask_(f);
|
|
1782
1785
|
}, this.setProperty(
|
|
1783
1786
|
t,
|
|
1784
1787
|
"clearInterval",
|
|
@@ -1792,33 +1795,33 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1792
1795
|
var a = String(arguments[arguments.length - 1]);
|
|
1793
1796
|
else
|
|
1794
1797
|
var a = "";
|
|
1795
|
-
var
|
|
1796
|
-
if (
|
|
1797
|
-
for (var v =
|
|
1798
|
-
var
|
|
1799
|
-
s.test(
|
|
1798
|
+
var f = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1799
|
+
if (f) {
|
|
1800
|
+
for (var v = f.split(/\s*,\s*/), _ = 0; _ < v.length; _++) {
|
|
1801
|
+
var N = v[_];
|
|
1802
|
+
s.test(N) || e.throwException(
|
|
1800
1803
|
e.SYNTAX_ERROR,
|
|
1801
|
-
"Invalid function argument: " +
|
|
1804
|
+
"Invalid function argument: " + N
|
|
1802
1805
|
);
|
|
1803
1806
|
}
|
|
1804
|
-
|
|
1807
|
+
f = v.join(", ");
|
|
1805
1808
|
}
|
|
1806
1809
|
try {
|
|
1807
|
-
var
|
|
1808
|
-
"(function(" +
|
|
1810
|
+
var R = e.parse_(
|
|
1811
|
+
"(function(" + f + ") {" + a + "})",
|
|
1809
1812
|
"function" + e.functionCodeNumber_++
|
|
1810
1813
|
);
|
|
1811
|
-
} catch (
|
|
1814
|
+
} catch (k) {
|
|
1812
1815
|
e.throwException(
|
|
1813
1816
|
e.SYNTAX_ERROR,
|
|
1814
|
-
"Invalid code: " +
|
|
1817
|
+
"Invalid code: " + k.message
|
|
1815
1818
|
);
|
|
1816
1819
|
}
|
|
1817
|
-
|
|
1820
|
+
R.body.length !== 1 && e.throwException(
|
|
1818
1821
|
e.SYNTAX_ERROR,
|
|
1819
1822
|
"Invalid code in function body"
|
|
1820
1823
|
);
|
|
1821
|
-
var S =
|
|
1824
|
+
var S = R.body[0].expression;
|
|
1822
1825
|
return e.createFunction(
|
|
1823
1826
|
S,
|
|
1824
1827
|
e.globalScope,
|
|
@@ -1845,9 +1848,9 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1845
1848
|
"length",
|
|
1846
1849
|
0,
|
|
1847
1850
|
r.READONLY_NONENUMERABLE_DESCRIPTOR
|
|
1848
|
-
), this.FUNCTION_PROTO.class = "Function", i = function(c, a,
|
|
1851
|
+
), this.FUNCTION_PROTO.class = "Function", i = function(c, a, f) {
|
|
1849
1852
|
var v = e.stateStack[e.stateStack.length - 1];
|
|
1850
|
-
v.func_ = c, v.funcThis_ = a, v.arguments_ = [],
|
|
1853
|
+
v.func_ = c, v.funcThis_ = a, v.arguments_ = [], f != null && (f instanceof r.Object ? v.arguments_ = Array.from(f.properties) : e.throwException(
|
|
1851
1854
|
e.TYPE_ERROR,
|
|
1852
1855
|
"CreateListFromArrayLike called on non-object"
|
|
1853
1856
|
)), v.doneExec_ = !1;
|
|
@@ -1869,8 +1872,8 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1869
1872
|
), i = function(c) {
|
|
1870
1873
|
var a = e.stateStack[e.stateStack.length - 1];
|
|
1871
1874
|
a.func_ = this, a.funcThis_ = c, a.arguments_ = [];
|
|
1872
|
-
for (var
|
|
1873
|
-
a.arguments_.push(arguments[
|
|
1875
|
+
for (var f = 1; f < arguments.length; f++)
|
|
1876
|
+
a.arguments_.push(arguments[f]);
|
|
1874
1877
|
a.doneExec_ = !1;
|
|
1875
1878
|
}, this.setNativeFunctionPrototype(this.FUNCTION, "call", i), this.polyfills_.push(
|
|
1876
1879
|
/* POLYFILL START */
|
|
@@ -1987,11 +1990,11 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1987
1990
|
"})();",
|
|
1988
1991
|
""
|
|
1989
1992
|
/* POLYFILL END */
|
|
1990
|
-
), i = function(c, a,
|
|
1993
|
+
), i = function(c, a, f) {
|
|
1991
1994
|
return a = String(a), c instanceof r.Object || e.throwException(
|
|
1992
1995
|
e.TYPE_ERROR,
|
|
1993
1996
|
"Object.defineProperty called on non-object: " + c
|
|
1994
|
-
),
|
|
1997
|
+
), f instanceof r.Object || e.throwException(
|
|
1995
1998
|
e.TYPE_ERROR,
|
|
1996
1999
|
"Property description must be an object"
|
|
1997
2000
|
), c.preventExtensions && !(a in c.properties) && e.throwException(
|
|
@@ -2001,7 +2004,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2001
2004
|
c,
|
|
2002
2005
|
a,
|
|
2003
2006
|
r.VALUE_IN_DESCRIPTOR,
|
|
2004
|
-
|
|
2007
|
+
f.properties
|
|
2005
2008
|
), c;
|
|
2006
2009
|
}, this.setProperty(
|
|
2007
2010
|
this.OBJECT,
|
|
@@ -2041,25 +2044,25 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2041
2044
|
e.TYPE_ERROR,
|
|
2042
2045
|
"Object.getOwnPropertyDescriptor called on non-object: " + c
|
|
2043
2046
|
), a = String(a), a in c.properties) {
|
|
2044
|
-
var
|
|
2045
|
-
return v ||
|
|
2046
|
-
|
|
2047
|
+
var f = Object.getOwnPropertyDescriptor(c.properties, a), v = c.getter[a], _ = c.setter[a], N = e.createObjectProto(e.OBJECT_PROTO);
|
|
2048
|
+
return v || _ ? (e.setProperty(N, "get", v), e.setProperty(N, "set", _)) : (e.setProperty(
|
|
2049
|
+
N,
|
|
2047
2050
|
"value",
|
|
2048
2051
|
/** @type {!Interpreter.Value} */
|
|
2049
|
-
|
|
2052
|
+
f.value
|
|
2050
2053
|
), e.setProperty(
|
|
2051
|
-
|
|
2054
|
+
N,
|
|
2052
2055
|
"writable",
|
|
2053
|
-
|
|
2056
|
+
f.writable
|
|
2054
2057
|
)), e.setProperty(
|
|
2055
|
-
|
|
2058
|
+
N,
|
|
2056
2059
|
"configurable",
|
|
2057
|
-
|
|
2060
|
+
f.configurable
|
|
2058
2061
|
), e.setProperty(
|
|
2059
|
-
|
|
2062
|
+
N,
|
|
2060
2063
|
"enumerable",
|
|
2061
|
-
|
|
2062
|
-
),
|
|
2064
|
+
f.enumerable
|
|
2065
|
+
), N;
|
|
2063
2066
|
}
|
|
2064
2067
|
}, this.setProperty(
|
|
2065
2068
|
this.OBJECT,
|
|
@@ -2125,9 +2128,9 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2125
2128
|
"Invalid array length: " + a
|
|
2126
2129
|
), c.properties.length = a;
|
|
2127
2130
|
else {
|
|
2128
|
-
for (var
|
|
2129
|
-
c.properties[
|
|
2130
|
-
c.properties.length =
|
|
2131
|
+
for (var f = 0; f < arguments.length; f++)
|
|
2132
|
+
c.properties[f] = arguments[f];
|
|
2133
|
+
c.properties.length = f;
|
|
2131
2134
|
}
|
|
2132
2135
|
return c;
|
|
2133
2136
|
}, this.ARRAY = this.createNativeFunction(i, !0), this.ARRAY_PROTO = this.ARRAY.properties.prototype, this.setProperty(
|
|
@@ -2621,106 +2624,106 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2621
2624
|
s[u],
|
|
2622
2625
|
String.prototype[s[u]]
|
|
2623
2626
|
);
|
|
2624
|
-
i = function(a,
|
|
2625
|
-
|
|
2627
|
+
i = function(a, f, v) {
|
|
2628
|
+
f = e.pseudoToNative(f), v = e.pseudoToNative(v);
|
|
2626
2629
|
try {
|
|
2627
2630
|
return String(this).localeCompare(
|
|
2628
2631
|
a,
|
|
2629
2632
|
/** @type {?} */
|
|
2630
|
-
|
|
2633
|
+
f,
|
|
2631
2634
|
/** @type {?} */
|
|
2632
2635
|
v
|
|
2633
2636
|
);
|
|
2634
|
-
} catch (
|
|
2637
|
+
} catch (_) {
|
|
2635
2638
|
e.throwException(
|
|
2636
2639
|
e.ERROR,
|
|
2637
|
-
"localeCompare: " +
|
|
2640
|
+
"localeCompare: " + _.message
|
|
2638
2641
|
);
|
|
2639
2642
|
}
|
|
2640
|
-
}, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a,
|
|
2641
|
-
var
|
|
2642
|
-
if (
|
|
2643
|
+
}, this.setNativeFunctionPrototype(this.STRING, "localeCompare", i), i = function(a, f, v) {
|
|
2644
|
+
var _ = String(this);
|
|
2645
|
+
if (f = f ? Number(f) : void 0, e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, v), e.REGEXP_MODE === 2)) {
|
|
2643
2646
|
if (r.vm) {
|
|
2644
|
-
var
|
|
2645
|
-
string:
|
|
2647
|
+
var N = {
|
|
2648
|
+
string: _,
|
|
2646
2649
|
separator: a,
|
|
2647
|
-
limit:
|
|
2648
|
-
},
|
|
2650
|
+
limit: f
|
|
2651
|
+
}, R = "string.split(separator, limit)", L = e.vmCall(R, N, a, v);
|
|
2649
2652
|
L !== r.REGEXP_TIMEOUT && v(e.nativeToPseudo(L));
|
|
2650
2653
|
} else {
|
|
2651
|
-
var S = e.createWorker(),
|
|
2654
|
+
var S = e.createWorker(), k = e.regExpTimeout(
|
|
2652
2655
|
a,
|
|
2653
2656
|
S,
|
|
2654
2657
|
v
|
|
2655
2658
|
);
|
|
2656
2659
|
S.onmessage = function(H) {
|
|
2657
|
-
clearTimeout(
|
|
2658
|
-
}, S.postMessage(["split",
|
|
2660
|
+
clearTimeout(k), v(e.nativeToPseudo(H.data));
|
|
2661
|
+
}, S.postMessage(["split", _, a, f]);
|
|
2659
2662
|
}
|
|
2660
2663
|
return;
|
|
2661
2664
|
}
|
|
2662
|
-
var L =
|
|
2665
|
+
var L = _.split(a, f);
|
|
2663
2666
|
v(e.nativeToPseudo(L));
|
|
2664
|
-
}, this.setAsyncFunctionPrototype(this.STRING, "split", i), i = function(a,
|
|
2667
|
+
}, this.setAsyncFunctionPrototype(this.STRING, "split", i), i = function(a, f) {
|
|
2665
2668
|
var v = String(this);
|
|
2666
|
-
if (a = e.isa(a, e.REGEXP) ? a.data : new RegExp(a), e.maybeThrowRegExp(a,
|
|
2669
|
+
if (a = e.isa(a, e.REGEXP) ? a.data : new RegExp(a), e.maybeThrowRegExp(a, f), e.REGEXP_MODE === 2) {
|
|
2667
2670
|
if (r.vm) {
|
|
2668
|
-
var
|
|
2671
|
+
var _ = {
|
|
2669
2672
|
string: v,
|
|
2670
2673
|
regexp: a
|
|
2671
|
-
},
|
|
2672
|
-
|
|
2674
|
+
}, N = "string.match(regexp)", k = e.vmCall(N, _, a, f);
|
|
2675
|
+
k !== r.REGEXP_TIMEOUT && f(k && e.matchToPseudo_(k));
|
|
2673
2676
|
} else {
|
|
2674
|
-
var
|
|
2675
|
-
|
|
2676
|
-
clearTimeout(S),
|
|
2677
|
-
},
|
|
2677
|
+
var R = e.createWorker(), S = e.regExpTimeout(a, R, f);
|
|
2678
|
+
R.onmessage = function(L) {
|
|
2679
|
+
clearTimeout(S), f(L.data && e.matchToPseudo_(L.data));
|
|
2680
|
+
}, R.postMessage(["match", v, a]);
|
|
2678
2681
|
}
|
|
2679
2682
|
return;
|
|
2680
2683
|
}
|
|
2681
|
-
var
|
|
2682
|
-
|
|
2683
|
-
}, this.setAsyncFunctionPrototype(this.STRING, "match", i), i = function(a,
|
|
2684
|
+
var k = v.match(a);
|
|
2685
|
+
f(k && e.matchToPseudo_(k));
|
|
2686
|
+
}, this.setAsyncFunctionPrototype(this.STRING, "match", i), i = function(a, f) {
|
|
2684
2687
|
var v = String(this);
|
|
2685
|
-
if (e.isa(a, e.REGEXP) ? a = a.data : a = new RegExp(a), e.maybeThrowRegExp(a,
|
|
2688
|
+
if (e.isa(a, e.REGEXP) ? a = a.data : a = new RegExp(a), e.maybeThrowRegExp(a, f), e.REGEXP_MODE === 2) {
|
|
2686
2689
|
if (r.vm) {
|
|
2687
|
-
var
|
|
2690
|
+
var _ = {
|
|
2688
2691
|
string: v,
|
|
2689
2692
|
regexp: a
|
|
2690
|
-
},
|
|
2691
|
-
|
|
2693
|
+
}, N = "string.search(regexp)", R = e.vmCall(N, _, a, f);
|
|
2694
|
+
R !== r.REGEXP_TIMEOUT && f(R);
|
|
2692
2695
|
} else {
|
|
2693
|
-
var S = e.createWorker(),
|
|
2696
|
+
var S = e.createWorker(), k = e.regExpTimeout(a, S, f);
|
|
2694
2697
|
S.onmessage = function(L) {
|
|
2695
|
-
clearTimeout(
|
|
2698
|
+
clearTimeout(k), f(L.data);
|
|
2696
2699
|
}, S.postMessage(["search", v, a]);
|
|
2697
2700
|
}
|
|
2698
2701
|
return;
|
|
2699
2702
|
}
|
|
2700
|
-
|
|
2701
|
-
}, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a,
|
|
2702
|
-
var
|
|
2703
|
-
if (
|
|
2703
|
+
f(v.search(a));
|
|
2704
|
+
}, this.setAsyncFunctionPrototype(this.STRING, "search", i), i = function(a, f, v) {
|
|
2705
|
+
var _ = String(this);
|
|
2706
|
+
if (f = String(f), e.isa(a, e.REGEXP) && (a = a.data, e.maybeThrowRegExp(a, v), e.REGEXP_MODE === 2)) {
|
|
2704
2707
|
if (r.vm) {
|
|
2705
|
-
var
|
|
2706
|
-
string:
|
|
2708
|
+
var N = {
|
|
2709
|
+
string: _,
|
|
2707
2710
|
substr: a,
|
|
2708
|
-
newSubstr:
|
|
2709
|
-
},
|
|
2711
|
+
newSubstr: f
|
|
2712
|
+
}, R = "string.replace(substr, newSubstr)", S = e.vmCall(R, N, a, v);
|
|
2710
2713
|
S !== r.REGEXP_TIMEOUT && v(S);
|
|
2711
2714
|
} else {
|
|
2712
|
-
var
|
|
2715
|
+
var k = e.createWorker(), L = e.regExpTimeout(
|
|
2713
2716
|
a,
|
|
2714
|
-
|
|
2717
|
+
k,
|
|
2715
2718
|
v
|
|
2716
2719
|
);
|
|
2717
|
-
|
|
2720
|
+
k.onmessage = function(H) {
|
|
2718
2721
|
clearTimeout(L), v(H.data);
|
|
2719
|
-
},
|
|
2722
|
+
}, k.postMessage(["replace", _, a, f]);
|
|
2720
2723
|
}
|
|
2721
2724
|
return;
|
|
2722
2725
|
}
|
|
2723
|
-
v(
|
|
2726
|
+
v(_.replace(a, f));
|
|
2724
2727
|
}, this.setAsyncFunctionPrototype(this.STRING, "replace", i), this.polyfills_.push(
|
|
2725
2728
|
/* POLYFILL START */
|
|
2726
2729
|
"(function() {",
|
|
@@ -2796,35 +2799,35 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2796
2799
|
i = function(a) {
|
|
2797
2800
|
try {
|
|
2798
2801
|
return Number(this).toExponential(a);
|
|
2799
|
-
} catch (
|
|
2800
|
-
e.throwException(e.ERROR,
|
|
2802
|
+
} catch (f) {
|
|
2803
|
+
e.throwException(e.ERROR, f.message);
|
|
2801
2804
|
}
|
|
2802
2805
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toExponential", i), i = function(a) {
|
|
2803
2806
|
try {
|
|
2804
2807
|
return Number(this).toFixed(a);
|
|
2805
|
-
} catch (
|
|
2806
|
-
e.throwException(e.ERROR,
|
|
2808
|
+
} catch (f) {
|
|
2809
|
+
e.throwException(e.ERROR, f.message);
|
|
2807
2810
|
}
|
|
2808
2811
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toFixed", i), i = function(a) {
|
|
2809
2812
|
try {
|
|
2810
2813
|
return Number(this).toPrecision(a);
|
|
2811
|
-
} catch (
|
|
2812
|
-
e.throwException(e.ERROR,
|
|
2814
|
+
} catch (f) {
|
|
2815
|
+
e.throwException(e.ERROR, f.message);
|
|
2813
2816
|
}
|
|
2814
2817
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toPrecision", i), i = function(a) {
|
|
2815
2818
|
try {
|
|
2816
2819
|
return Number(this).toString(a);
|
|
2817
|
-
} catch (
|
|
2818
|
-
e.throwException(e.ERROR,
|
|
2820
|
+
} catch (f) {
|
|
2821
|
+
e.throwException(e.ERROR, f.message);
|
|
2819
2822
|
}
|
|
2820
|
-
}, this.setNativeFunctionPrototype(this.NUMBER, "toString", i), i = function(a,
|
|
2821
|
-
a = a ? e.pseudoToNative(a) : void 0,
|
|
2823
|
+
}, this.setNativeFunctionPrototype(this.NUMBER, "toString", i), i = function(a, f) {
|
|
2824
|
+
a = a ? e.pseudoToNative(a) : void 0, f = f ? e.pseudoToNative(f) : void 0;
|
|
2822
2825
|
try {
|
|
2823
2826
|
return Number(this).toLocaleString(
|
|
2824
2827
|
/** @type {?} */
|
|
2825
2828
|
a,
|
|
2826
2829
|
/** @type {?} */
|
|
2827
|
-
|
|
2830
|
+
f
|
|
2828
2831
|
);
|
|
2829
2832
|
} catch (v) {
|
|
2830
2833
|
e.throwException(
|
|
@@ -2835,7 +2838,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2835
2838
|
}, this.setNativeFunctionPrototype(this.NUMBER, "toLocaleString", i);
|
|
2836
2839
|
}, r.prototype.initDate = function(t) {
|
|
2837
2840
|
var e = this, i;
|
|
2838
|
-
i = function(a,
|
|
2841
|
+
i = function(a, f) {
|
|
2839
2842
|
if (!e.calledWithNew())
|
|
2840
2843
|
return r.nativeGlobal.Date();
|
|
2841
2844
|
var v = [null].concat(Array.from(arguments));
|
|
@@ -2911,14 +2914,14 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2911
2914
|
], u = 0; u < s.length; u++)
|
|
2912
2915
|
i = /* @__PURE__ */ function(c) {
|
|
2913
2916
|
return function(a) {
|
|
2914
|
-
var
|
|
2915
|
-
|
|
2917
|
+
var f = this.data;
|
|
2918
|
+
f instanceof Date || e.throwException(
|
|
2916
2919
|
e.TYPE_ERROR,
|
|
2917
2920
|
c + " not called on a Date"
|
|
2918
2921
|
);
|
|
2919
|
-
for (var v = [],
|
|
2920
|
-
v[
|
|
2921
|
-
return
|
|
2922
|
+
for (var v = [], _ = 0; _ < arguments.length; _++)
|
|
2923
|
+
v[_] = e.pseudoToNative(arguments[_]);
|
|
2924
|
+
return f[c].apply(f, v);
|
|
2922
2925
|
};
|
|
2923
2926
|
}(s[u]), this.setNativeFunctionPrototype(this.DATE, s[u], i);
|
|
2924
2927
|
i = function() {
|
|
@@ -2946,11 +2949,11 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2946
2949
|
"Invalid regexp flag: " + c
|
|
2947
2950
|
);
|
|
2948
2951
|
try {
|
|
2949
|
-
var
|
|
2952
|
+
var f = new r.nativeGlobal.RegExp(u, c);
|
|
2950
2953
|
} catch (v) {
|
|
2951
2954
|
e.throwException(e.SYNTAX_ERROR, v.message);
|
|
2952
2955
|
}
|
|
2953
|
-
return e.populateRegExp(a,
|
|
2956
|
+
return e.populateRegExp(a, f), a;
|
|
2954
2957
|
}, this.REGEXP = this.createNativeFunction(i, !0), this.REGEXP_PROTO = this.REGEXP.properties.prototype, this.setProperty(
|
|
2955
2958
|
t,
|
|
2956
2959
|
"RegExp",
|
|
@@ -2989,16 +2992,16 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2989
2992
|
var a = this.data;
|
|
2990
2993
|
if (u = String(u), a.lastIndex = Number(e.getProperty(this, "lastIndex")), e.maybeThrowRegExp(a, c), e.REGEXP_MODE === 2) {
|
|
2991
2994
|
if (r.vm) {
|
|
2992
|
-
var
|
|
2995
|
+
var f = {
|
|
2993
2996
|
string: u,
|
|
2994
2997
|
regexp: a
|
|
2995
|
-
}, v = "regexp.exec(string)", S = e.vmCall(v,
|
|
2998
|
+
}, v = "regexp.exec(string)", S = e.vmCall(v, f, a, c);
|
|
2996
2999
|
S !== r.REGEXP_TIMEOUT && (e.setProperty(this, "lastIndex", a.lastIndex), c(e.matchToPseudo_(S)));
|
|
2997
3000
|
} else {
|
|
2998
|
-
var
|
|
2999
|
-
|
|
3000
|
-
clearTimeout(
|
|
3001
|
-
},
|
|
3001
|
+
var _ = e.createWorker(), N = e.regExpTimeout(a, _, c), R = this;
|
|
3002
|
+
_.onmessage = function(k) {
|
|
3003
|
+
clearTimeout(N), e.setProperty(R, "lastIndex", k.data[1]), c(e.matchToPseudo_(k.data[0]));
|
|
3004
|
+
}, _.postMessage(["exec", a, a.lastIndex, u]);
|
|
3002
3005
|
}
|
|
3003
3006
|
return;
|
|
3004
3007
|
}
|
|
@@ -3130,24 +3133,24 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3130
3133
|
), e = function(c) {
|
|
3131
3134
|
try {
|
|
3132
3135
|
var a = JSON.parse(String(c));
|
|
3133
|
-
} catch (
|
|
3134
|
-
i.throwException(i.SYNTAX_ERROR,
|
|
3136
|
+
} catch (f) {
|
|
3137
|
+
i.throwException(i.SYNTAX_ERROR, f.message);
|
|
3135
3138
|
}
|
|
3136
3139
|
return i.nativeToPseudo(a);
|
|
3137
|
-
}, this.setProperty(s, "parse", this.createNativeFunction(e, !1)), e = function(c, a,
|
|
3140
|
+
}, this.setProperty(s, "parse", this.createNativeFunction(e, !1)), e = function(c, a, f) {
|
|
3138
3141
|
a && a.class === "Function" ? i.throwException(
|
|
3139
3142
|
i.TYPE_ERROR,
|
|
3140
3143
|
"Function replacer on JSON.stringify not supported"
|
|
3141
|
-
) : a && a.class === "Array" ? (a = i.pseudoToNative(a), a = a.filter(function(
|
|
3142
|
-
return typeof
|
|
3143
|
-
})) : a = null, typeof
|
|
3144
|
+
) : a && a.class === "Array" ? (a = i.pseudoToNative(a), a = a.filter(function(N) {
|
|
3145
|
+
return typeof N == "string" || typeof N == "number";
|
|
3146
|
+
})) : a = null, typeof f != "string" && typeof f != "number" && (f = void 0);
|
|
3144
3147
|
var v = i.pseudoToNative(c);
|
|
3145
3148
|
try {
|
|
3146
|
-
var
|
|
3147
|
-
} catch (
|
|
3148
|
-
i.throwException(i.TYPE_ERROR,
|
|
3149
|
+
var _ = JSON.stringify(v, a, f);
|
|
3150
|
+
} catch (N) {
|
|
3151
|
+
i.throwException(i.TYPE_ERROR, N.message);
|
|
3149
3152
|
}
|
|
3150
|
-
return
|
|
3153
|
+
return _;
|
|
3151
3154
|
}, this.setProperty(
|
|
3152
3155
|
s,
|
|
3153
3156
|
"stringify",
|
|
@@ -3207,17 +3210,17 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3207
3210
|
}
|
|
3208
3211
|
c.loc && (!i.length || c.type === "CallExpression") && i.push({ datumLoc: c.loc });
|
|
3209
3212
|
}
|
|
3210
|
-
for (var
|
|
3213
|
+
for (var f = String(this.getProperty(t, "name")), v = String(this.getProperty(t, "message")), _ = f + ": " + v + `
|
|
3211
3214
|
`, s = 0; s < i.length; s++) {
|
|
3212
|
-
var
|
|
3213
|
-
|
|
3214
|
-
` :
|
|
3215
|
+
var N = i[s].datumLoc, R = i[s].datumName, S = N.source + ":" + N.start.line + ":" + N.start.column;
|
|
3216
|
+
R ? _ += " at " + R + " (" + S + `)
|
|
3217
|
+
` : _ += " at " + S + `
|
|
3215
3218
|
`;
|
|
3216
3219
|
}
|
|
3217
3220
|
this.setProperty(
|
|
3218
3221
|
t,
|
|
3219
3222
|
"stack",
|
|
3220
|
-
|
|
3223
|
+
_.trim(),
|
|
3221
3224
|
r.NONENUMERABLE_DESCRIPTOR
|
|
3222
3225
|
);
|
|
3223
3226
|
}, r.prototype.createWorker = function() {
|
|
@@ -3247,7 +3250,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3247
3250
|
i = !0;
|
|
3248
3251
|
else {
|
|
3249
3252
|
try {
|
|
3250
|
-
r.vm =
|
|
3253
|
+
r.vm = T(
|
|
3251
3254
|
/*! vm */
|
|
3252
3255
|
"vm"
|
|
3253
3256
|
);
|
|
@@ -3352,23 +3355,23 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3352
3355
|
return c.data = new Date(t.valueOf()), i.pseudo.push(c), c;
|
|
3353
3356
|
}
|
|
3354
3357
|
if (typeof t == "function") {
|
|
3355
|
-
var a = this,
|
|
3358
|
+
var a = this, f = function() {
|
|
3356
3359
|
var S = Array.prototype.slice.call(arguments).map(function(L) {
|
|
3357
3360
|
return a.pseudoToNative(L);
|
|
3358
|
-
}),
|
|
3359
|
-
return a.nativeToPseudo(
|
|
3360
|
-
}, v = Object.getOwnPropertyDescriptor(t, "prototype"),
|
|
3361
|
-
return i.pseudo.push(
|
|
3361
|
+
}), k = t.apply(a, S);
|
|
3362
|
+
return a.nativeToPseudo(k);
|
|
3363
|
+
}, v = Object.getOwnPropertyDescriptor(t, "prototype"), _ = this.createNativeFunction(f, !!v);
|
|
3364
|
+
return i.pseudo.push(_), _;
|
|
3362
3365
|
}
|
|
3363
|
-
var
|
|
3364
|
-
Array.isArray(t) ?
|
|
3365
|
-
for (var
|
|
3366
|
+
var N;
|
|
3367
|
+
Array.isArray(t) ? N = this.createArray() : N = this.createObjectProto(this.OBJECT_PROTO), i.pseudo.push(N);
|
|
3368
|
+
for (var R in t)
|
|
3366
3369
|
this.setProperty(
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
this.nativeToPseudo(t[
|
|
3370
|
+
N,
|
|
3371
|
+
R,
|
|
3372
|
+
this.nativeToPseudo(t[R], i)
|
|
3370
3373
|
);
|
|
3371
|
-
return
|
|
3374
|
+
return N;
|
|
3372
3375
|
}, r.prototype.pseudoToNative = function(t, e) {
|
|
3373
3376
|
if (t == null || t === !0 || t === !1 || typeof t == "string" || typeof t == "number")
|
|
3374
3377
|
return t;
|
|
@@ -3390,13 +3393,13 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3390
3393
|
}
|
|
3391
3394
|
var a = this.isa(t, this.ARRAY) ? [] : {};
|
|
3392
3395
|
i.native.push(a);
|
|
3393
|
-
var
|
|
3396
|
+
var f;
|
|
3394
3397
|
for (var v in t.properties)
|
|
3395
|
-
|
|
3398
|
+
f = this.pseudoToNative(t.properties[v], i), Object.defineProperty(
|
|
3396
3399
|
a,
|
|
3397
3400
|
v,
|
|
3398
3401
|
{
|
|
3399
|
-
value:
|
|
3402
|
+
value: f,
|
|
3400
3403
|
writable: !0,
|
|
3401
3404
|
enumerable: !0,
|
|
3402
3405
|
configurable: !0
|
|
@@ -3472,7 +3475,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3472
3475
|
}
|
|
3473
3476
|
}
|
|
3474
3477
|
if (t.class === "Array") {
|
|
3475
|
-
var a = t.properties.length,
|
|
3478
|
+
var a = t.properties.length, f;
|
|
3476
3479
|
if (e === "length") {
|
|
3477
3480
|
if (s) {
|
|
3478
3481
|
if (!("value" in s))
|
|
@@ -3480,9 +3483,9 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3480
3483
|
i = s.value;
|
|
3481
3484
|
}
|
|
3482
3485
|
if (i = r.legalArrayLength(i), isNaN(i) && this.throwException(this.RANGE_ERROR, "Invalid array length"), i < a)
|
|
3483
|
-
for (
|
|
3484
|
-
|
|
3485
|
-
} else isNaN(
|
|
3486
|
+
for (f in t.properties)
|
|
3487
|
+
f = r.legalArrayIndex(f), !isNaN(f) && i <= f && delete t.properties[f];
|
|
3488
|
+
} else isNaN(f = r.legalArrayIndex(e)) || (t.properties.length = Math.max(a, f + 1));
|
|
3486
3489
|
}
|
|
3487
3490
|
if (t.preventExtensions && !(e in t.properties)) {
|
|
3488
3491
|
u && this.throwException(this.TYPE_ERROR, "Can't add property '" + e + "', object is not extensible");
|
|
@@ -3500,14 +3503,14 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3500
3503
|
} else {
|
|
3501
3504
|
if (i === r.VALUE_IN_DESCRIPTOR)
|
|
3502
3505
|
throw ReferenceError("Value not specified");
|
|
3503
|
-
for (var
|
|
3504
|
-
if (
|
|
3505
|
-
|
|
3506
|
+
for (var _ = t; !(e in _.properties); )
|
|
3507
|
+
if (_ = this.getPrototype(_), !_) {
|
|
3508
|
+
_ = t;
|
|
3506
3509
|
break;
|
|
3507
3510
|
}
|
|
3508
|
-
if (
|
|
3509
|
-
return this.setterStep_ = !0,
|
|
3510
|
-
if (
|
|
3511
|
+
if (_.setter && _.setter[e])
|
|
3512
|
+
return this.setterStep_ = !0, _.setter[e];
|
|
3513
|
+
if (_.getter && _.getter[e])
|
|
3511
3514
|
u && this.throwException(this.TYPE_ERROR, "Cannot set property '" + e + "' of object '" + t + "' which only has a getter");
|
|
3512
3515
|
else
|
|
3513
3516
|
try {
|
|
@@ -3613,18 +3616,18 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3613
3616
|
if (c !== "loc") {
|
|
3614
3617
|
var a = t[c];
|
|
3615
3618
|
if (a && typeof a == "object") {
|
|
3616
|
-
var
|
|
3619
|
+
var f;
|
|
3617
3620
|
if (Array.isArray(a)) {
|
|
3618
3621
|
for (var s = 0; s < a.length; s++)
|
|
3619
3622
|
if (a[s] && a[s].constructor === u) {
|
|
3620
|
-
|
|
3621
|
-
for (var c in
|
|
3622
|
-
i[c] =
|
|
3623
|
+
f = this.populateScope_(a[s], e);
|
|
3624
|
+
for (var c in f)
|
|
3625
|
+
i[c] = f[c];
|
|
3623
3626
|
}
|
|
3624
3627
|
} else if (a.constructor === u) {
|
|
3625
|
-
|
|
3626
|
-
for (var c in
|
|
3627
|
-
i[c] =
|
|
3628
|
+
f = this.populateScope_(a, e);
|
|
3629
|
+
for (var c in f)
|
|
3630
|
+
i[c] = f[c];
|
|
3628
3631
|
}
|
|
3629
3632
|
}
|
|
3630
3633
|
}
|
|
@@ -3700,8 +3703,8 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3700
3703
|
SyntaxError,
|
|
3701
3704
|
TypeError,
|
|
3702
3705
|
URIError
|
|
3703
|
-
},
|
|
3704
|
-
c =
|
|
3706
|
+
}, f = String(this.getProperty(e, "name")), v = this.getProperty(e, "message").valueOf(), _ = a[f] || Error;
|
|
3707
|
+
c = _(v), c.stack = String(this.getProperty(e, "stack"));
|
|
3705
3708
|
} else
|
|
3706
3709
|
c = String(e);
|
|
3707
3710
|
throw this.value = c, c;
|
|
@@ -3737,27 +3740,27 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3737
3740
|
}
|
|
3738
3741
|
return "???";
|
|
3739
3742
|
}, 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(),
|
|
3743
|
+
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(), f, v, _;
|
|
3741
3744
|
if (u instanceof r.Object && u.class === "Function")
|
|
3742
|
-
v = u, a.type = "CallExpression",
|
|
3745
|
+
v = u, a.type = "CallExpression", f = i.scope;
|
|
3743
3746
|
else {
|
|
3744
3747
|
try {
|
|
3745
|
-
|
|
3748
|
+
_ = this.parse_(String(u), "taskCode" + this.taskCodeNumber_++);
|
|
3746
3749
|
} catch (L) {
|
|
3747
3750
|
this.throwException(this.SYNTAX_ERROR, "Invalid code: " + L.message);
|
|
3748
3751
|
}
|
|
3749
|
-
a.type = "EvalProgram_", a.body =
|
|
3750
|
-
var
|
|
3751
|
-
r.stripLocations_(a,
|
|
3752
|
+
a.type = "EvalProgram_", a.body = _.body;
|
|
3753
|
+
var N = i.node.arguments[0], R = N ? N.start : void 0, S = N ? N.end : void 0;
|
|
3754
|
+
r.stripLocations_(a, R, S), f = this.globalScope, s.length = 0;
|
|
3752
3755
|
}
|
|
3753
|
-
var
|
|
3756
|
+
var k = new r.Task(
|
|
3754
3757
|
v,
|
|
3755
3758
|
s,
|
|
3756
|
-
|
|
3759
|
+
f,
|
|
3757
3760
|
a,
|
|
3758
3761
|
t ? c : -1
|
|
3759
3762
|
);
|
|
3760
|
-
return this.scheduleTask_(
|
|
3763
|
+
return this.scheduleTask_(k, c), k.pid;
|
|
3761
3764
|
}, r.prototype.scheduleTask_ = function(t, e) {
|
|
3762
3765
|
t.time = Date.now() + e, this.tasks.push(t), this.tasks.sort(function(i, s) {
|
|
3763
3766
|
return i.time - s.time;
|
|
@@ -3844,7 +3847,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3844
3847
|
var t = r.toStringCycles_;
|
|
3845
3848
|
if (t.indexOf(this) !== -1)
|
|
3846
3849
|
return "[object Error]";
|
|
3847
|
-
var a,
|
|
3850
|
+
var a, f, v = this;
|
|
3848
3851
|
do
|
|
3849
3852
|
if ("name" in v.properties) {
|
|
3850
3853
|
a = v.properties.name;
|
|
@@ -3854,17 +3857,17 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3854
3857
|
v = this;
|
|
3855
3858
|
do
|
|
3856
3859
|
if ("message" in v.properties) {
|
|
3857
|
-
|
|
3860
|
+
f = v.properties.message;
|
|
3858
3861
|
break;
|
|
3859
3862
|
}
|
|
3860
3863
|
while (v = v.proto);
|
|
3861
3864
|
t.push(this);
|
|
3862
3865
|
try {
|
|
3863
|
-
a = a && String(a),
|
|
3866
|
+
a = a && String(a), f = f && String(f);
|
|
3864
3867
|
} finally {
|
|
3865
3868
|
t.pop();
|
|
3866
3869
|
}
|
|
3867
|
-
return
|
|
3870
|
+
return f ? a + ": " + f : String(a);
|
|
3868
3871
|
}
|
|
3869
3872
|
return this.data !== null ? String(this.data) : "[object " + this.class + "]";
|
|
3870
3873
|
}, r.Object.prototype.valueOf = function() {
|
|
@@ -3906,43 +3909,43 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3906
3909
|
t.pop(), t[t.length - 1].value = e.setterValue_;
|
|
3907
3910
|
return;
|
|
3908
3911
|
}
|
|
3909
|
-
var a = e.leftValue_,
|
|
3912
|
+
var a = e.leftValue_, f = e.value;
|
|
3910
3913
|
switch (i.operator) {
|
|
3911
3914
|
case "=":
|
|
3912
|
-
a =
|
|
3915
|
+
a = f;
|
|
3913
3916
|
break;
|
|
3914
3917
|
case "+=":
|
|
3915
|
-
a +=
|
|
3918
|
+
a += f;
|
|
3916
3919
|
break;
|
|
3917
3920
|
case "-=":
|
|
3918
|
-
a -=
|
|
3921
|
+
a -= f;
|
|
3919
3922
|
break;
|
|
3920
3923
|
case "*=":
|
|
3921
|
-
a *=
|
|
3924
|
+
a *= f;
|
|
3922
3925
|
break;
|
|
3923
3926
|
case "/=":
|
|
3924
|
-
a /=
|
|
3927
|
+
a /= f;
|
|
3925
3928
|
break;
|
|
3926
3929
|
case "%=":
|
|
3927
|
-
a %=
|
|
3930
|
+
a %= f;
|
|
3928
3931
|
break;
|
|
3929
3932
|
case "<<=":
|
|
3930
|
-
a <<=
|
|
3933
|
+
a <<= f;
|
|
3931
3934
|
break;
|
|
3932
3935
|
case ">>=":
|
|
3933
|
-
a >>=
|
|
3936
|
+
a >>= f;
|
|
3934
3937
|
break;
|
|
3935
3938
|
case ">>>=":
|
|
3936
|
-
a >>>=
|
|
3939
|
+
a >>>= f;
|
|
3937
3940
|
break;
|
|
3938
3941
|
case "&=":
|
|
3939
|
-
a &=
|
|
3942
|
+
a &= f;
|
|
3940
3943
|
break;
|
|
3941
3944
|
case "^=":
|
|
3942
|
-
a ^=
|
|
3945
|
+
a ^= f;
|
|
3943
3946
|
break;
|
|
3944
3947
|
case "|=":
|
|
3945
|
-
a |=
|
|
3948
|
+
a |= f;
|
|
3946
3949
|
break;
|
|
3947
3950
|
default:
|
|
3948
3951
|
throw SyntaxError("Unknown assignment expression: " + i.operator);
|
|
@@ -4087,26 +4090,26 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4087
4090
|
);
|
|
4088
4091
|
var a = u.node;
|
|
4089
4092
|
if (a) {
|
|
4090
|
-
for (var
|
|
4091
|
-
this.setProperty(v,
|
|
4092
|
-
this.setProperty(
|
|
4093
|
-
for (var
|
|
4094
|
-
var
|
|
4095
|
-
this.setProperty(
|
|
4093
|
+
for (var f = this.createScope(a.body, u.parentScope), v = this.createArray(), _ = 0; _ < e.arguments_.length; _++)
|
|
4094
|
+
this.setProperty(v, _, e.arguments_[_]);
|
|
4095
|
+
this.setProperty(f.object, "arguments", v);
|
|
4096
|
+
for (var _ = 0; _ < a.params.length; _++) {
|
|
4097
|
+
var N = a.params[_].name, R = e.arguments_.length > _ ? e.arguments_[_] : void 0;
|
|
4098
|
+
this.setProperty(f.object, N, R);
|
|
4096
4099
|
}
|
|
4097
|
-
return
|
|
4098
|
-
|
|
4100
|
+
return f.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), this.setProperty(
|
|
4101
|
+
f.object,
|
|
4099
4102
|
"this",
|
|
4100
4103
|
e.funcThis_,
|
|
4101
4104
|
r.READONLY_DESCRIPTOR
|
|
4102
|
-
), e.value = void 0, new r.State(a.body,
|
|
4105
|
+
), e.value = void 0, new r.State(a.body, f);
|
|
4103
4106
|
} else if (u.eval) {
|
|
4104
4107
|
var S = e.arguments_[0];
|
|
4105
4108
|
if (typeof S != "string")
|
|
4106
4109
|
e.value = S;
|
|
4107
4110
|
else {
|
|
4108
4111
|
try {
|
|
4109
|
-
var
|
|
4112
|
+
var k = this.parse_(
|
|
4110
4113
|
String(S),
|
|
4111
4114
|
"eval" + this.evalCodeNumber_++
|
|
4112
4115
|
);
|
|
@@ -4114,19 +4117,19 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4114
4117
|
this.throwException(this.SYNTAX_ERROR, "Invalid code: " + $.message);
|
|
4115
4118
|
}
|
|
4116
4119
|
var L = this.newNode();
|
|
4117
|
-
L.type = "EvalProgram_", L.body =
|
|
4118
|
-
var
|
|
4119
|
-
return
|
|
4120
|
+
L.type = "EvalProgram_", L.body = k.body, r.stripLocations_(L, i.start, i.end);
|
|
4121
|
+
var f = e.directEval_ ? e.scope : this.globalScope;
|
|
4122
|
+
return f.strict ? f = this.createScope(k, f) : this.populateScope_(k, f), this.value = void 0, new r.State(L, f);
|
|
4120
4123
|
}
|
|
4121
4124
|
} else if (u.nativeFunc)
|
|
4122
4125
|
e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), e.value = u.nativeFunc.apply(e.funcThis_, e.arguments_);
|
|
4123
4126
|
else if (u.asyncFunc) {
|
|
4124
|
-
var H = this,
|
|
4127
|
+
var H = this, Ye = function(Ee) {
|
|
4125
4128
|
e.value = Ee, H.paused_ = !1;
|
|
4126
4129
|
}, re = u.asyncFunc.length - 1, Pe = e.arguments_.concat(
|
|
4127
4130
|
new Array(re)
|
|
4128
4131
|
).slice(0, re);
|
|
4129
|
-
Pe.push(
|
|
4132
|
+
Pe.push(Ye), this.paused_ = !0, e.scope.strict || (e.funcThis_ = this.boxThis_(e.funcThis_)), u.asyncFunc.apply(e.funcThis_, Pe);
|
|
4130
4133
|
return;
|
|
4131
4134
|
} else
|
|
4132
4135
|
this.throwException(
|
|
@@ -4228,9 +4231,9 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4228
4231
|
}
|
|
4229
4232
|
if (e.variable_ || (e.variable_ = e.value), !e.doneSetter_) {
|
|
4230
4233
|
e.doneSetter_ = !0;
|
|
4231
|
-
var a = e.name_,
|
|
4232
|
-
if (
|
|
4233
|
-
return this.createSetter_(
|
|
4234
|
+
var a = e.name_, f = this.setValue(e.variable_, a);
|
|
4235
|
+
if (f)
|
|
4236
|
+
return this.createSetter_(f, e.variable_, a);
|
|
4234
4237
|
}
|
|
4235
4238
|
if (e.name_ = void 0, e.doneVariable_ = !1, e.doneSetter_ = !1, i.body)
|
|
4236
4239
|
return new r.State(i.body, e.scope);
|
|
@@ -4347,13 +4350,13 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4347
4350
|
return e.destinationName = c, new r.State(u.value, e.scope);
|
|
4348
4351
|
}
|
|
4349
4352
|
for (var a in e.properties_) {
|
|
4350
|
-
var
|
|
4351
|
-
if ("get" in
|
|
4353
|
+
var f = e.properties_[a];
|
|
4354
|
+
if ("get" in f || "set" in f) {
|
|
4352
4355
|
var v = {
|
|
4353
4356
|
configurable: !0,
|
|
4354
4357
|
enumerable: !0,
|
|
4355
|
-
get:
|
|
4356
|
-
set:
|
|
4358
|
+
get: f.get,
|
|
4359
|
+
set: f.set
|
|
4357
4360
|
};
|
|
4358
4361
|
this.setProperty(
|
|
4359
4362
|
e.object_,
|
|
@@ -4362,7 +4365,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4362
4365
|
v
|
|
4363
4366
|
);
|
|
4364
4367
|
} else
|
|
4365
|
-
this.setProperty(e.object_, a,
|
|
4368
|
+
this.setProperty(e.object_, a, f.init);
|
|
4366
4369
|
}
|
|
4367
4370
|
t.pop(), t[t.length - 1].value = e.object_;
|
|
4368
4371
|
}, r.prototype.stepProgram = function(t, e, i) {
|
|
@@ -4451,11 +4454,11 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4451
4454
|
if (Array.isArray(u)) {
|
|
4452
4455
|
var a = u[0];
|
|
4453
4456
|
a === r.SCOPE_REFERENCE && (a = e.scope);
|
|
4454
|
-
var
|
|
4457
|
+
var f = String(u[1]);
|
|
4455
4458
|
try {
|
|
4456
|
-
delete a.properties[
|
|
4459
|
+
delete a.properties[f];
|
|
4457
4460
|
} catch {
|
|
4458
|
-
e.scope.strict ? this.throwException(this.TYPE_ERROR, "Cannot delete property '" +
|
|
4461
|
+
e.scope.strict ? this.throwException(this.TYPE_ERROR, "Cannot delete property '" + f + "' of '" + a + "'") : c = !1;
|
|
4459
4462
|
}
|
|
4460
4463
|
}
|
|
4461
4464
|
u = c;
|
|
@@ -4498,10 +4501,10 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4498
4501
|
a = c - 1;
|
|
4499
4502
|
else
|
|
4500
4503
|
throw SyntaxError("Unknown update expression: " + i.operator);
|
|
4501
|
-
var
|
|
4504
|
+
var f = i.prefix ? a : c, v = this.setValue(e.leftSide_, a);
|
|
4502
4505
|
if (v)
|
|
4503
|
-
return e.doneSetter_ = !0, e.setterValue_ =
|
|
4504
|
-
t.pop(), t[t.length - 1].value =
|
|
4506
|
+
return e.doneSetter_ = !0, e.setterValue_ = f, this.createSetter_(v, e.leftSide_, a);
|
|
4507
|
+
t.pop(), t[t.length - 1].value = f;
|
|
4505
4508
|
}, r.prototype.stepVariableDeclaration = function(t, e, i) {
|
|
4506
4509
|
var s = i.declarations, u = e.n_ || 0, c = s[u];
|
|
4507
4510
|
for (e.init_ && c && (this.setValueToScope(c.id.name, e.value), e.init_ = !1, c = s[++u]); c; ) {
|
|
@@ -4516,7 +4519,7 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4516
4519
|
t.pop();
|
|
4517
4520
|
var s = this.createSpecialScope(e.scope, e.value);
|
|
4518
4521
|
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,
|
|
4522
|
+
}, 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, y.exports = {
|
|
4520
4523
|
Interpreter: r
|
|
4521
4524
|
};
|
|
4522
4525
|
}
|
|
@@ -4527,14 +4530,14 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4527
4530
|
!*** ./original-repo/acorn.js ***!
|
|
4528
4531
|
\********************************/
|
|
4529
4532
|
/***/
|
|
4530
|
-
function(
|
|
4531
|
-
(function(
|
|
4533
|
+
function(y, O) {
|
|
4534
|
+
(function(T, r) {
|
|
4532
4535
|
return r(O);
|
|
4533
|
-
})(typeof globalThis > "u" ? this || window : globalThis, function(
|
|
4534
|
-
|
|
4536
|
+
})(typeof globalThis > "u" ? this || window : globalThis, function(T) {
|
|
4537
|
+
T.version = "0.5.0";
|
|
4535
4538
|
var r, t = "", e, i;
|
|
4536
|
-
|
|
4537
|
-
return t = String(
|
|
4539
|
+
T.parse = function(p, d) {
|
|
4540
|
+
return t = String(p), e = t.length, u(d), ca(), Oa(r.program);
|
|
4538
4541
|
};
|
|
4539
4542
|
var s = {
|
|
4540
4543
|
// JS-Interpreter change:
|
|
@@ -4594,185 +4597,185 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4594
4597
|
// `locations` is on or off.
|
|
4595
4598
|
directSourceFile: null
|
|
4596
4599
|
};
|
|
4597
|
-
function u(
|
|
4598
|
-
r =
|
|
4600
|
+
function u(p) {
|
|
4601
|
+
r = p || {};
|
|
4599
4602
|
for (var d in s)
|
|
4600
4603
|
Object.prototype.hasOwnProperty.call(r, d) || (r[d] = s[d]);
|
|
4601
4604
|
i = r.sourceFile;
|
|
4602
4605
|
}
|
|
4603
|
-
var c = function(
|
|
4604
|
-
for (var
|
|
4605
|
-
|
|
4606
|
-
var C =
|
|
4606
|
+
var c = function(p, d) {
|
|
4607
|
+
for (var m = 1, E = 0; ; ) {
|
|
4608
|
+
ft.lastIndex = E;
|
|
4609
|
+
var C = ft.exec(p);
|
|
4607
4610
|
if (C && C.index < d)
|
|
4608
|
-
++
|
|
4611
|
+
++m, E = C.index + C[0].length;
|
|
4609
4612
|
else
|
|
4610
4613
|
break;
|
|
4611
4614
|
}
|
|
4612
|
-
return { line:
|
|
4613
|
-
}, a = 0,
|
|
4614
|
-
function I(
|
|
4615
|
-
var
|
|
4616
|
-
d += " (" +
|
|
4615
|
+
return { line: m, column: d - E };
|
|
4616
|
+
}, a = 0, f = 0, v = 0, _, N, R, S, k, L, H, Ye = 0, re = 0, Pe, Ee, $, q;
|
|
4617
|
+
function I(p, d) {
|
|
4618
|
+
var m = c(t, p);
|
|
4619
|
+
d += " (" + m.line + ":" + m.column + ")";
|
|
4617
4620
|
var E = new SyntaxError(d);
|
|
4618
|
-
throw E.pos =
|
|
4621
|
+
throw E.pos = p, E.loc = m, E.raisedAt = a, E;
|
|
4619
4622
|
}
|
|
4620
|
-
var Hi = [],
|
|
4621
|
-
break:
|
|
4622
|
-
case:
|
|
4623
|
-
catch:
|
|
4624
|
-
continue:
|
|
4625
|
-
debugger:
|
|
4626
|
-
default:
|
|
4627
|
-
do:
|
|
4628
|
-
else:
|
|
4629
|
-
finally:
|
|
4630
|
-
for:
|
|
4631
|
-
function:
|
|
4632
|
-
if:
|
|
4633
|
-
return:
|
|
4634
|
-
switch:
|
|
4635
|
-
throw:
|
|
4636
|
-
try:
|
|
4637
|
-
var:
|
|
4638
|
-
while:
|
|
4639
|
-
with:
|
|
4640
|
-
null:
|
|
4641
|
-
true:
|
|
4642
|
-
false:
|
|
4643
|
-
new:
|
|
4644
|
-
in:
|
|
4623
|
+
var Hi = [], ot = { type: "num" }, Ir = { type: "regexp" }, St = { type: "string" }, Ce = { type: "name" }, wt = { type: "eof" }, Pt = { keyword: "break" }, Ct = { keyword: "case", beforeExpr: !0 }, Dr = { keyword: "catch" }, Lr = { keyword: "continue" }, Mr = { keyword: "debugger" }, Fr = { keyword: "default" }, Ur = { keyword: "do", isLoop: !0 }, jr = { keyword: "else", beforeExpr: !0 }, Br = { keyword: "finally" }, $r = { keyword: "for", isLoop: !0 }, kt = { keyword: "function" }, Vr = { keyword: "if" }, Gr = { keyword: "return", beforeExpr: !0 }, At = { keyword: "switch" }, Yr = { keyword: "throw", beforeExpr: !0 }, zr = { keyword: "try" }, It = { keyword: "var" }, Dt = { keyword: "while", isLoop: !0 }, Xr = { keyword: "with" }, Wr = { keyword: "new", beforeExpr: !0 }, Hr = { keyword: "this" }, Jr = { keyword: "null", atomValue: null }, Kr = { keyword: "true", atomValue: !0 }, qr = { keyword: "false", atomValue: !1 }, ut = { keyword: "in", binop: 7, beforeExpr: !0 }, Ji = {
|
|
4624
|
+
break: Pt,
|
|
4625
|
+
case: Ct,
|
|
4626
|
+
catch: Dr,
|
|
4627
|
+
continue: Lr,
|
|
4628
|
+
debugger: Mr,
|
|
4629
|
+
default: Fr,
|
|
4630
|
+
do: Ur,
|
|
4631
|
+
else: jr,
|
|
4632
|
+
finally: Br,
|
|
4633
|
+
for: $r,
|
|
4634
|
+
function: kt,
|
|
4635
|
+
if: Vr,
|
|
4636
|
+
return: Gr,
|
|
4637
|
+
switch: At,
|
|
4638
|
+
throw: Yr,
|
|
4639
|
+
try: zr,
|
|
4640
|
+
var: It,
|
|
4641
|
+
while: Dt,
|
|
4642
|
+
with: Xr,
|
|
4643
|
+
null: Jr,
|
|
4644
|
+
true: Kr,
|
|
4645
|
+
false: qr,
|
|
4646
|
+
new: Wr,
|
|
4647
|
+
in: ut,
|
|
4645
4648
|
instanceof: { keyword: "instanceof", binop: 7, beforeExpr: !0 },
|
|
4646
|
-
this:
|
|
4649
|
+
this: Hr,
|
|
4647
4650
|
typeof: { keyword: "typeof", prefix: !0, beforeExpr: !0 },
|
|
4648
4651
|
void: { keyword: "void", prefix: !0, beforeExpr: !0 },
|
|
4649
4652
|
delete: { keyword: "delete", prefix: !0, beforeExpr: !0 }
|
|
4650
|
-
},
|
|
4651
|
-
function
|
|
4652
|
-
for (var d =
|
|
4653
|
-
|
|
4653
|
+
}, Lt = { type: "[", beforeExpr: !0 }, Mt = { type: "]" }, ze = { type: "{", beforeExpr: !0 }, ke = { type: "}" }, se = { type: "(", beforeExpr: !0 }, ae = { type: ")" }, ve = { type: ",", beforeExpr: !0 }, le = { type: ";", beforeExpr: !0 }, Xe = { type: ":", beforeExpr: !0 }, Zr = { type: "." }, Qr = { type: "?", beforeExpr: !0 }, en = { binop: 10, beforeExpr: !0 }, tn = { isAssign: !0, beforeExpr: !0 }, Re = { isAssign: !0, beforeExpr: !0 }, Ki = { postfix: !0, prefix: !0, isUpdate: !0 }, rn = { prefix: !0, beforeExpr: !0 }, nn = { binop: 1, beforeExpr: !0 }, an = { 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 };
|
|
4654
|
+
function st(p) {
|
|
4655
|
+
for (var d = p.split(" "), m = /* @__PURE__ */ Object.create(null), E = 0; E < d.length; E++)
|
|
4656
|
+
m[d[E]] = !0;
|
|
4654
4657
|
return function(C) {
|
|
4655
|
-
return
|
|
4658
|
+
return m[C] || !1;
|
|
4656
4659
|
};
|
|
4657
4660
|
}
|
|
4658
|
-
var aa =
|
|
4659
|
-
return
|
|
4660
|
-
},
|
|
4661
|
-
return
|
|
4661
|
+
var aa = st("class enum extends super const export import"), on = st("implements interface let package private protected public static yield"), lt = st("eval arguments"), oa = st("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]/, un = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", sa = "̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_", sn = new RegExp("[" + un + "]"), la = new RegExp("[" + un + sa + "]"), ct = /[\n\r\u2028\u2029]/, ft = /\r\n|[\n\r\u2028\u2029]/g, pt = function(p) {
|
|
4662
|
+
return p < 65 ? p === 36 : p < 91 ? !0 : p < 97 ? p === 95 : p < 123 ? !0 : p >= 170 && sn.test(String.fromCharCode(p));
|
|
4663
|
+
}, ln = function(p) {
|
|
4664
|
+
return p < 48 ? p === 36 : p < 58 ? !0 : p < 65 ? !1 : p < 91 ? !0 : p < 97 ? p === 95 : p < 123 ? !0 : p >= 170 && la.test(String.fromCharCode(p));
|
|
4662
4665
|
};
|
|
4663
4666
|
function Oe() {
|
|
4664
4667
|
this.line = L, this.column = a - H;
|
|
4665
4668
|
}
|
|
4666
4669
|
function ca() {
|
|
4667
|
-
L = 1, a = H = 0,
|
|
4670
|
+
L = 1, a = H = 0, k = !0, We();
|
|
4668
4671
|
}
|
|
4669
|
-
function Y(
|
|
4670
|
-
v = a, r.locations && (
|
|
4672
|
+
function Y(p, d) {
|
|
4673
|
+
v = a, r.locations && (N = new Oe()), R = p, We(), S = d, k = p.beforeExpr;
|
|
4671
4674
|
}
|
|
4672
4675
|
function fa() {
|
|
4673
|
-
var
|
|
4674
|
-
if (
|
|
4675
|
-
|
|
4676
|
-
for (var E; (E =
|
|
4676
|
+
var p = r.onComment && r.locations && new Oe(), d = a, m = t.indexOf("*/", a += 2);
|
|
4677
|
+
if (m === -1 && I(a - 2, "Unterminated comment"), a = m + 2, r.locations) {
|
|
4678
|
+
ft.lastIndex = d;
|
|
4679
|
+
for (var E; (E = ft.exec(t)) && E.index < a; )
|
|
4677
4680
|
++L, H = E.index + E[0].length;
|
|
4678
4681
|
}
|
|
4679
4682
|
r.onComment && r.onComment(
|
|
4680
4683
|
!0,
|
|
4681
|
-
t.slice(d + 2,
|
|
4684
|
+
t.slice(d + 2, m),
|
|
4682
4685
|
d,
|
|
4683
4686
|
a,
|
|
4684
|
-
|
|
4687
|
+
p,
|
|
4685
4688
|
r.locations && new Oe()
|
|
4686
4689
|
);
|
|
4687
4690
|
}
|
|
4688
|
-
function
|
|
4689
|
-
for (var
|
|
4690
|
-
++a,
|
|
4691
|
+
function Ft() {
|
|
4692
|
+
for (var p = a, d = r.onComment && r.locations && new Oe(), m = t.charCodeAt(a += 2); a < e && m !== 10 && m !== 13 && m !== 8232 && m !== 8233; )
|
|
4693
|
+
++a, m = t.charCodeAt(a);
|
|
4691
4694
|
r.onComment && r.onComment(
|
|
4692
4695
|
!1,
|
|
4693
|
-
t.slice(
|
|
4694
|
-
|
|
4696
|
+
t.slice(p + 2, a),
|
|
4697
|
+
p,
|
|
4695
4698
|
a,
|
|
4696
4699
|
d,
|
|
4697
4700
|
r.locations && new Oe()
|
|
4698
4701
|
);
|
|
4699
4702
|
}
|
|
4700
|
-
function
|
|
4703
|
+
function We() {
|
|
4701
4704
|
for (; a < e; ) {
|
|
4702
|
-
var
|
|
4703
|
-
if (
|
|
4705
|
+
var p = t.charCodeAt(a);
|
|
4706
|
+
if (p === 32)
|
|
4704
4707
|
++a;
|
|
4705
|
-
else if (
|
|
4708
|
+
else if (p === 13) {
|
|
4706
4709
|
++a;
|
|
4707
4710
|
var d = t.charCodeAt(a);
|
|
4708
4711
|
d === 10 && ++a, r.locations && (++L, H = a);
|
|
4709
|
-
} else if (
|
|
4712
|
+
} else if (p === 10 || p === 8232 || p === 8233)
|
|
4710
4713
|
++a, r.locations && (++L, H = a);
|
|
4711
|
-
else if (
|
|
4714
|
+
else if (p > 8 && p < 14)
|
|
4712
4715
|
++a;
|
|
4713
|
-
else if (
|
|
4716
|
+
else if (p === 47) {
|
|
4714
4717
|
var d = t.charCodeAt(a + 1);
|
|
4715
4718
|
if (d === 42)
|
|
4716
4719
|
fa();
|
|
4717
4720
|
else if (d === 47)
|
|
4718
|
-
|
|
4721
|
+
Ft();
|
|
4719
4722
|
else break;
|
|
4720
|
-
} else if (
|
|
4723
|
+
} else if (p === 160)
|
|
4721
4724
|
++a;
|
|
4722
|
-
else if (
|
|
4725
|
+
else if (p >= 5760 && ua.test(String.fromCharCode(p)))
|
|
4723
4726
|
++a;
|
|
4724
4727
|
else
|
|
4725
4728
|
break;
|
|
4726
4729
|
}
|
|
4727
4730
|
}
|
|
4728
4731
|
function pa() {
|
|
4729
|
-
var
|
|
4730
|
-
|
|
4732
|
+
var p = t.charCodeAt(a + 1);
|
|
4733
|
+
p >= 48 && p <= 57 ? fn(!0) : (++a, Y(Zr));
|
|
4731
4734
|
}
|
|
4732
4735
|
function da() {
|
|
4733
|
-
var
|
|
4734
|
-
|
|
4736
|
+
var p = t.charCodeAt(a + 1);
|
|
4737
|
+
k ? (++a, cn()) : p === 61 ? z(Re, 2) : z(en, 1);
|
|
4735
4738
|
}
|
|
4736
4739
|
function ha() {
|
|
4737
|
-
var
|
|
4738
|
-
|
|
4740
|
+
var p = t.charCodeAt(a + 1);
|
|
4741
|
+
p === 61 ? z(Re, 2) : z(ia, 1);
|
|
4739
4742
|
}
|
|
4740
|
-
function va(
|
|
4743
|
+
function va(p) {
|
|
4741
4744
|
var d = t.charCodeAt(a + 1);
|
|
4742
|
-
d ===
|
|
4745
|
+
d === p ? z(p === 124 ? nn : an, 2) : d === 61 ? z(Re, 2) : z(p === 124 ? qi : Qi, 1);
|
|
4743
4746
|
}
|
|
4744
|
-
function
|
|
4745
|
-
var
|
|
4746
|
-
|
|
4747
|
+
function ya() {
|
|
4748
|
+
var p = t.charCodeAt(a + 1);
|
|
4749
|
+
p === 61 ? z(Re, 2) : z(Zi, 1);
|
|
4747
4750
|
}
|
|
4748
|
-
function
|
|
4751
|
+
function ma(p) {
|
|
4749
4752
|
var d = t.charCodeAt(a + 1);
|
|
4750
|
-
if (d ===
|
|
4751
|
-
if (d === 45 && t.charCodeAt(a + 2) === 62 &&
|
|
4752
|
-
a += 3,
|
|
4753
|
+
if (d === p) {
|
|
4754
|
+
if (d === 45 && t.charCodeAt(a + 2) === 62 && ct.test(t.slice(re, a))) {
|
|
4755
|
+
a += 3, Ft(), We(), Ae();
|
|
4753
4756
|
return;
|
|
4754
4757
|
}
|
|
4755
4758
|
z(Ki, 2);
|
|
4756
4759
|
} else d === 61 ? z(Re, 2) : z(na, 1);
|
|
4757
4760
|
}
|
|
4758
|
-
function _a(
|
|
4759
|
-
var d = t.charCodeAt(a + 1),
|
|
4760
|
-
if (d ===
|
|
4761
|
-
|
|
4761
|
+
function _a(p) {
|
|
4762
|
+
var d = t.charCodeAt(a + 1), m = 1;
|
|
4763
|
+
if (d === p) {
|
|
4764
|
+
m = p === 62 && t.charCodeAt(a + 2) === 62 ? 3 : 2, t.charCodeAt(a + m) === 61 ? z(Re, m + 1) : z(ra, m);
|
|
4762
4765
|
return;
|
|
4763
4766
|
}
|
|
4764
|
-
if (d === 33 &&
|
|
4765
|
-
a += 4,
|
|
4767
|
+
if (d === 33 && p === 60 && t.charCodeAt(a + 2) === 45 && t.charCodeAt(a + 3) === 45) {
|
|
4768
|
+
a += 4, Ft(), We(), Ae();
|
|
4766
4769
|
return;
|
|
4767
4770
|
}
|
|
4768
|
-
d === 61 && (
|
|
4771
|
+
d === 61 && (m = t.charCodeAt(a + 2) === 61 ? 3 : 2), z(ta, m);
|
|
4769
4772
|
}
|
|
4770
|
-
function ba(
|
|
4773
|
+
function ba(p) {
|
|
4771
4774
|
var d = t.charCodeAt(a + 1);
|
|
4772
|
-
d === 61 ? z(ea, t.charCodeAt(a + 2) === 61 ? 3 : 2) : z(
|
|
4775
|
+
d === 61 ? z(ea, t.charCodeAt(a + 2) === 61 ? 3 : 2) : z(p === 61 ? tn : rn, 1);
|
|
4773
4776
|
}
|
|
4774
|
-
function ga(
|
|
4775
|
-
switch (
|
|
4777
|
+
function ga(p) {
|
|
4778
|
+
switch (p) {
|
|
4776
4779
|
case 46:
|
|
4777
4780
|
return pa();
|
|
4778
4781
|
case 40:
|
|
@@ -4784,17 +4787,17 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4784
4787
|
case 44:
|
|
4785
4788
|
return ++a, Y(ve);
|
|
4786
4789
|
case 91:
|
|
4787
|
-
return ++a, Y(
|
|
4790
|
+
return ++a, Y(Lt);
|
|
4788
4791
|
case 93:
|
|
4789
|
-
return ++a, Y(
|
|
4792
|
+
return ++a, Y(Mt);
|
|
4790
4793
|
case 123:
|
|
4791
|
-
return ++a, Y(
|
|
4794
|
+
return ++a, Y(ze);
|
|
4792
4795
|
case 125:
|
|
4793
4796
|
return ++a, Y(ke);
|
|
4794
4797
|
case 58:
|
|
4795
|
-
return ++a, Y(
|
|
4798
|
+
return ++a, Y(Xe);
|
|
4796
4799
|
case 63:
|
|
4797
|
-
return ++a, Y(
|
|
4800
|
+
return ++a, Y(Qr);
|
|
4798
4801
|
case 48:
|
|
4799
4802
|
var d = t.charCodeAt(a + 1);
|
|
4800
4803
|
if (d === 120 || d === 88) return Ea();
|
|
@@ -4807,10 +4810,10 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4807
4810
|
case 55:
|
|
4808
4811
|
case 56:
|
|
4809
4812
|
case 57:
|
|
4810
|
-
return
|
|
4813
|
+
return fn(!1);
|
|
4811
4814
|
case 34:
|
|
4812
4815
|
case 39:
|
|
4813
|
-
return Ra(
|
|
4816
|
+
return Ra(p);
|
|
4814
4817
|
case 47:
|
|
4815
4818
|
return da();
|
|
4816
4819
|
case 37:
|
|
@@ -4818,47 +4821,47 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4818
4821
|
return ha();
|
|
4819
4822
|
case 124:
|
|
4820
4823
|
case 38:
|
|
4821
|
-
return va(
|
|
4824
|
+
return va(p);
|
|
4822
4825
|
case 94:
|
|
4823
|
-
return
|
|
4826
|
+
return ya();
|
|
4824
4827
|
case 43:
|
|
4825
4828
|
case 45:
|
|
4826
|
-
return
|
|
4829
|
+
return ma(p);
|
|
4827
4830
|
case 60:
|
|
4828
4831
|
case 62:
|
|
4829
|
-
return _a(
|
|
4832
|
+
return _a(p);
|
|
4830
4833
|
case 61:
|
|
4831
4834
|
case 33:
|
|
4832
|
-
return ba(
|
|
4835
|
+
return ba(p);
|
|
4833
4836
|
case 126:
|
|
4834
|
-
return z(
|
|
4837
|
+
return z(rn, 1);
|
|
4835
4838
|
}
|
|
4836
4839
|
return !1;
|
|
4837
4840
|
}
|
|
4838
|
-
function Ae(
|
|
4839
|
-
if (
|
|
4840
|
-
if (a >= e) return Y(
|
|
4841
|
+
function Ae(p) {
|
|
4842
|
+
if (p ? a = f + 1 : f = a, r.locations && (_ = new Oe()), p) return cn();
|
|
4843
|
+
if (a >= e) return Y(wt);
|
|
4841
4844
|
var d = t.charCodeAt(a);
|
|
4842
|
-
if (
|
|
4843
|
-
return
|
|
4844
|
-
var
|
|
4845
|
-
if (
|
|
4845
|
+
if (pt(d) || d === 92)
|
|
4846
|
+
return dn();
|
|
4847
|
+
var m = ga(d);
|
|
4848
|
+
if (m === !1) {
|
|
4846
4849
|
var E = String.fromCharCode(d);
|
|
4847
|
-
if (E === "\\" ||
|
|
4848
|
-
return
|
|
4850
|
+
if (E === "\\" || sn.test(E))
|
|
4851
|
+
return dn();
|
|
4849
4852
|
I(a, "Unexpected character '" + E + "'");
|
|
4850
4853
|
}
|
|
4851
4854
|
}
|
|
4852
|
-
function z(
|
|
4853
|
-
var
|
|
4854
|
-
a += d, Y(
|
|
4855
|
+
function z(p, d) {
|
|
4856
|
+
var m = t.slice(a, a + d);
|
|
4857
|
+
a += d, Y(p, m);
|
|
4855
4858
|
}
|
|
4856
|
-
function
|
|
4857
|
-
for (var
|
|
4858
|
-
a >= e && I(
|
|
4859
|
+
function cn() {
|
|
4860
|
+
for (var p, d, m = a; ; ) {
|
|
4861
|
+
a >= e && I(m, "Unterminated regexp");
|
|
4859
4862
|
var E = t.charAt(a);
|
|
4860
|
-
if (
|
|
4861
|
-
|
|
4863
|
+
if (ct.test(E) && I(m, "Unterminated regexp"), p)
|
|
4864
|
+
p = !1;
|
|
4862
4865
|
else {
|
|
4863
4866
|
if (E === "[")
|
|
4864
4867
|
d = !0;
|
|
@@ -4866,60 +4869,60 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4866
4869
|
d = !1;
|
|
4867
4870
|
else if (E === "/" && !d)
|
|
4868
4871
|
break;
|
|
4869
|
-
|
|
4872
|
+
p = E === "\\";
|
|
4870
4873
|
}
|
|
4871
4874
|
++a;
|
|
4872
4875
|
}
|
|
4873
|
-
var C = t.slice(
|
|
4876
|
+
var C = t.slice(m, a);
|
|
4874
4877
|
++a;
|
|
4875
|
-
var w =
|
|
4876
|
-
w && !/^[gmi]*$/.test(w) && I(
|
|
4878
|
+
var w = pn();
|
|
4879
|
+
w && !/^[gmi]*$/.test(w) && I(m, "Invalid regexp flag");
|
|
4877
4880
|
try {
|
|
4878
|
-
var
|
|
4881
|
+
var A = new RegExp(C, w);
|
|
4879
4882
|
} catch (j) {
|
|
4880
|
-
throw j instanceof SyntaxError && I(
|
|
4883
|
+
throw j instanceof SyntaxError && I(m, j.message), j;
|
|
4881
4884
|
}
|
|
4882
|
-
Y(
|
|
4885
|
+
Y(Ir, A);
|
|
4883
4886
|
}
|
|
4884
|
-
function
|
|
4885
|
-
for (var
|
|
4886
|
-
var
|
|
4887
|
-
if (
|
|
4888
|
-
++a, E = E *
|
|
4887
|
+
function He(p, d) {
|
|
4888
|
+
for (var m = a, E = 0, C = d === void 0 ? 1 / 0 : d, w = 0; w < C; ++w) {
|
|
4889
|
+
var A = t.charCodeAt(a), j;
|
|
4890
|
+
if (A >= 97 ? j = A - 97 + 10 : A >= 65 ? j = A - 65 + 10 : A >= 48 && A <= 57 ? j = A - 48 : j = 1 / 0, j >= p) break;
|
|
4891
|
+
++a, E = E * p + j;
|
|
4889
4892
|
}
|
|
4890
|
-
return a ===
|
|
4893
|
+
return a === m || d !== void 0 && a - m !== d ? null : E;
|
|
4891
4894
|
}
|
|
4892
4895
|
function Ea() {
|
|
4893
4896
|
a += 2;
|
|
4894
|
-
var
|
|
4895
|
-
|
|
4897
|
+
var p = He(16);
|
|
4898
|
+
p === null && I(f + 2, "Expected hexadecimal number"), pt(t.charCodeAt(a)) && I(a, "Identifier directly after number"), Y(ot, p);
|
|
4896
4899
|
}
|
|
4897
|
-
function
|
|
4898
|
-
var d = a,
|
|
4899
|
-
!
|
|
4900
|
+
function fn(p) {
|
|
4901
|
+
var d = a, m = !1, E = t.charCodeAt(a) === 48;
|
|
4902
|
+
!p && He(10) === null && I(d, "Invalid number"), t.charCodeAt(a) === 46 && (++a, He(10), m = !0);
|
|
4900
4903
|
var C = t.charCodeAt(a);
|
|
4901
|
-
(C === 69 || C === 101) && (C = t.charCodeAt(++a), (C === 43 || C === 45) && ++a,
|
|
4902
|
-
var w = t.slice(d, a),
|
|
4903
|
-
|
|
4904
|
+
(C === 69 || C === 101) && (C = t.charCodeAt(++a), (C === 43 || C === 45) && ++a, He(10) === null && I(d, "Invalid number"), m = !0), pt(t.charCodeAt(a)) && I(a, "Identifier directly after number");
|
|
4905
|
+
var w = t.slice(d, a), A;
|
|
4906
|
+
m ? A = parseFloat(w) : !E || w.length === 1 ? A = parseInt(w, 10) : /[89]/.test(w) || q ? I(d, "Invalid number") : A = parseInt(w, 8), Y(ot, A);
|
|
4904
4907
|
}
|
|
4905
|
-
function Ra(
|
|
4908
|
+
function Ra(p) {
|
|
4906
4909
|
a++;
|
|
4907
4910
|
for (var d = ""; ; ) {
|
|
4908
|
-
a >= e && I(
|
|
4909
|
-
var
|
|
4910
|
-
if (
|
|
4911
|
-
++a, Y(
|
|
4911
|
+
a >= e && I(f, "Unterminated string constant");
|
|
4912
|
+
var m = t.charCodeAt(a);
|
|
4913
|
+
if (m === p) {
|
|
4914
|
+
++a, Y(St, d);
|
|
4912
4915
|
return;
|
|
4913
4916
|
}
|
|
4914
|
-
if (
|
|
4915
|
-
|
|
4917
|
+
if (m === 92) {
|
|
4918
|
+
m = t.charCodeAt(++a);
|
|
4916
4919
|
var E = /^[0-7]+/.exec(t.slice(a, a + 3));
|
|
4917
4920
|
for (E && (E = E[0]); E && parseInt(E, 8) > 255; )
|
|
4918
4921
|
E = E.slice(0, -1);
|
|
4919
4922
|
if (E === "0" && (E = null), ++a, E)
|
|
4920
4923
|
q && I(a - 2, "Octal literal in strict mode"), d += String.fromCharCode(parseInt(E, 8)), a += E.length - 1;
|
|
4921
4924
|
else
|
|
4922
|
-
switch (
|
|
4925
|
+
switch (m) {
|
|
4923
4926
|
case 110:
|
|
4924
4927
|
d += `
|
|
4925
4928
|
`;
|
|
@@ -4928,13 +4931,13 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4928
4931
|
d += "\r";
|
|
4929
4932
|
break;
|
|
4930
4933
|
case 120:
|
|
4931
|
-
d += String.fromCharCode(
|
|
4934
|
+
d += String.fromCharCode(dt(2));
|
|
4932
4935
|
break;
|
|
4933
4936
|
case 117:
|
|
4934
|
-
d += String.fromCharCode(
|
|
4937
|
+
d += String.fromCharCode(dt(4));
|
|
4935
4938
|
break;
|
|
4936
4939
|
case 85:
|
|
4937
|
-
d += String.fromCharCode(
|
|
4940
|
+
d += String.fromCharCode(dt(8));
|
|
4938
4941
|
break;
|
|
4939
4942
|
case 116:
|
|
4940
4943
|
d += " ";
|
|
@@ -4957,337 +4960,337 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4957
4960
|
r.locations && (H = a, ++L);
|
|
4958
4961
|
break;
|
|
4959
4962
|
default:
|
|
4960
|
-
d += String.fromCharCode(
|
|
4963
|
+
d += String.fromCharCode(m);
|
|
4961
4964
|
break;
|
|
4962
4965
|
}
|
|
4963
4966
|
} else
|
|
4964
|
-
(
|
|
4967
|
+
(m === 13 || m === 10 || m === 8232 || m === 8233) && I(f, "Unterminated string constant"), d += String.fromCharCode(m), ++a;
|
|
4965
4968
|
}
|
|
4966
4969
|
}
|
|
4967
|
-
function
|
|
4968
|
-
var d =
|
|
4969
|
-
return d === null && I(
|
|
4970
|
+
function dt(p) {
|
|
4971
|
+
var d = He(16, p);
|
|
4972
|
+
return d === null && I(f, "Bad character escape sequence"), /** @type {number} */
|
|
4970
4973
|
d;
|
|
4971
4974
|
}
|
|
4972
4975
|
var Ie;
|
|
4973
|
-
function
|
|
4976
|
+
function pn() {
|
|
4974
4977
|
Ie = !1;
|
|
4975
|
-
for (var
|
|
4978
|
+
for (var p, d = !0, m = a; ; ) {
|
|
4976
4979
|
var E = t.charCodeAt(a);
|
|
4977
|
-
if (
|
|
4978
|
-
Ie && (
|
|
4980
|
+
if (ln(E))
|
|
4981
|
+
Ie && (p += t.charAt(a)), ++a;
|
|
4979
4982
|
else if (E === 92) {
|
|
4980
|
-
Ie || (
|
|
4981
|
-
var C =
|
|
4982
|
-
w || I(a - 1, "Invalid Unicode escape"), (d ?
|
|
4983
|
+
Ie || (p = t.slice(m, a)), Ie = !0, t.charCodeAt(++a) !== 117 && I(a, "Expecting Unicode escape sequence \\uXXXX"), ++a;
|
|
4984
|
+
var C = dt(4), w = String.fromCharCode(C);
|
|
4985
|
+
w || I(a - 1, "Invalid Unicode escape"), (d ? pt(C) : ln(C)) || I(a - 4, "Invalid Unicode escape"), p += w;
|
|
4983
4986
|
} else
|
|
4984
4987
|
break;
|
|
4985
4988
|
d = !1;
|
|
4986
4989
|
}
|
|
4987
|
-
return Ie ?
|
|
4990
|
+
return Ie ? p : t.slice(m, a);
|
|
4988
4991
|
}
|
|
4989
|
-
function
|
|
4990
|
-
var
|
|
4991
|
-
!Ie && oa(
|
|
4992
|
+
function dn() {
|
|
4993
|
+
var p = pn(), d = Ce;
|
|
4994
|
+
!Ie && oa(p) && (d = Ji[p]), Y(d, p);
|
|
4992
4995
|
}
|
|
4993
4996
|
function D() {
|
|
4994
|
-
|
|
4997
|
+
Ye = f, re = v, Pe = N, Ae();
|
|
4995
4998
|
}
|
|
4996
|
-
function
|
|
4997
|
-
if (q =
|
|
4999
|
+
function Ut(p) {
|
|
5000
|
+
if (q = p, a = f, r.locations)
|
|
4998
5001
|
for (; a < H; )
|
|
4999
5002
|
H = t.lastIndexOf(`
|
|
5000
5003
|
`, H - 2) + 1, --L;
|
|
5001
|
-
|
|
5004
|
+
We(), Ae();
|
|
5002
5005
|
}
|
|
5003
|
-
function
|
|
5004
|
-
this.type = null, this.start =
|
|
5006
|
+
function hn() {
|
|
5007
|
+
this.type = null, this.start = f, this.end = null;
|
|
5005
5008
|
}
|
|
5006
|
-
function
|
|
5007
|
-
this.start =
|
|
5009
|
+
function vn() {
|
|
5010
|
+
this.start = _, this.end = null, i && (this.source = i);
|
|
5008
5011
|
}
|
|
5009
5012
|
function X() {
|
|
5010
|
-
var
|
|
5011
|
-
return r.locations && (
|
|
5013
|
+
var p = new hn();
|
|
5014
|
+
return r.locations && (p.loc = new vn()), r.directSourceFile && (p.sourceFile = r.directSourceFile), r.ranges && (p.range = [f, 0]), p;
|
|
5012
5015
|
}
|
|
5013
|
-
function
|
|
5014
|
-
var d = new
|
|
5015
|
-
return d.start =
|
|
5016
|
+
function ye(p) {
|
|
5017
|
+
var d = new hn();
|
|
5018
|
+
return d.start = p.start, r.locations && (d.loc = new vn(), d.loc.start = p.loc.start), r.ranges && (d.range = [p.range[0], 0]), d;
|
|
5016
5019
|
}
|
|
5017
|
-
function P(
|
|
5018
|
-
return
|
|
5020
|
+
function P(p, d) {
|
|
5021
|
+
return p.type = d, p.end = re, r.locations && (p.loc.end = Pe), r.ranges && (p.range[1] = re), p;
|
|
5019
5022
|
}
|
|
5020
|
-
function
|
|
5021
|
-
return
|
|
5023
|
+
function jt(p) {
|
|
5024
|
+
return p.type === "ExpressionStatement" && p.expression.type === "Literal" && p.expression.value === "use strict";
|
|
5022
5025
|
}
|
|
5023
|
-
function B(
|
|
5024
|
-
return
|
|
5026
|
+
function B(p) {
|
|
5027
|
+
return R === p ? (D(), !0) : !1;
|
|
5025
5028
|
}
|
|
5026
|
-
function
|
|
5027
|
-
return !r.strictSemicolons && (
|
|
5029
|
+
function ht() {
|
|
5030
|
+
return !r.strictSemicolons && (R === wt || R === ke || ct.test(t.slice(re, f)));
|
|
5028
5031
|
}
|
|
5029
5032
|
function Te() {
|
|
5030
|
-
!B(le) && !
|
|
5033
|
+
!B(le) && !ht() && ce();
|
|
5031
5034
|
}
|
|
5032
|
-
function V(
|
|
5033
|
-
|
|
5035
|
+
function V(p) {
|
|
5036
|
+
R === p ? D() : ce();
|
|
5034
5037
|
}
|
|
5035
5038
|
function ce() {
|
|
5036
|
-
I(
|
|
5039
|
+
I(f, "Unexpected token");
|
|
5037
5040
|
}
|
|
5038
|
-
function
|
|
5039
|
-
|
|
5041
|
+
function vt(p) {
|
|
5042
|
+
p.type !== "Identifier" && p.type !== "MemberExpression" && I(p.start, "Assigning to rvalue"), q && p.type === "Identifier" && lt(p.name) && I(p.start, "Assigning to " + p.name + " in strict mode");
|
|
5040
5043
|
}
|
|
5041
|
-
function Oa(
|
|
5042
|
-
|
|
5043
|
-
var d =
|
|
5044
|
-
for (
|
|
5044
|
+
function Oa(p) {
|
|
5045
|
+
Ye = re = a, r.locations && (Pe = new Oe()), Ee = q = !1, $ = [], Ae();
|
|
5046
|
+
var d = p || X(), m = !0;
|
|
5047
|
+
for (p || (d.body = []); R !== wt; ) {
|
|
5045
5048
|
var E = ne();
|
|
5046
|
-
d.body.push(E),
|
|
5049
|
+
d.body.push(E), m && jt(E) && Ut(!0), m = !1;
|
|
5047
5050
|
}
|
|
5048
5051
|
return P(d, "Program");
|
|
5049
5052
|
}
|
|
5050
|
-
var
|
|
5053
|
+
var Bt = { kind: "loop" }, Ta = { kind: "switch" };
|
|
5051
5054
|
function ne() {
|
|
5052
|
-
(
|
|
5053
|
-
var
|
|
5054
|
-
switch (
|
|
5055
|
-
case
|
|
5056
|
-
case
|
|
5055
|
+
(R === en || R === Re && S === "/=") && Ae(!0);
|
|
5056
|
+
var p = R, d = X();
|
|
5057
|
+
switch (p) {
|
|
5058
|
+
case Pt:
|
|
5059
|
+
case Lr:
|
|
5057
5060
|
D();
|
|
5058
|
-
var
|
|
5059
|
-
B(le) ||
|
|
5061
|
+
var m = p === Pt;
|
|
5062
|
+
B(le) || ht() ? d.label = null : R !== Ce ? ce() : (d.label = me(), Te());
|
|
5060
5063
|
for (var E = 0; E < $.length; ++E) {
|
|
5061
5064
|
var C = $[E];
|
|
5062
|
-
if ((d.label === null || C.name === d.label.name) && (C.kind !== null && (
|
|
5065
|
+
if ((d.label === null || C.name === d.label.name) && (C.kind !== null && (m || C.kind === "loop") || d.label && m))
|
|
5063
5066
|
break;
|
|
5064
5067
|
}
|
|
5065
|
-
return E === $.length && I(d.start, "Unsyntactic " +
|
|
5066
|
-
case Dr:
|
|
5067
|
-
return D(), Te(), P(d, "DebuggerStatement");
|
|
5068
|
+
return E === $.length && I(d.start, "Unsyntactic " + p.keyword), P(d, m ? "BreakStatement" : "ContinueStatement");
|
|
5068
5069
|
case Mr:
|
|
5069
|
-
return D(),
|
|
5070
|
-
case
|
|
5071
|
-
|
|
5072
|
-
|
|
5070
|
+
return D(), Te(), P(d, "DebuggerStatement");
|
|
5071
|
+
case Ur:
|
|
5072
|
+
return D(), $.push(Bt), d.body = ne(), $.pop(), V(Dt), d.test = Je(), Te(), P(d, "DoWhileStatement");
|
|
5073
|
+
case $r:
|
|
5074
|
+
if (D(), $.push(Bt), V(se), R === le) return $t(d, null);
|
|
5075
|
+
if (R === It) {
|
|
5073
5076
|
var w = X();
|
|
5074
|
-
return D(),
|
|
5077
|
+
return D(), mn(w, !0), P(w, "VariableDeclaration"), w.declarations.length === 1 && B(ut) ? yn(d, w) : $t(d, w);
|
|
5075
5078
|
}
|
|
5076
5079
|
var w = W(!1, !0);
|
|
5077
|
-
return B(
|
|
5078
|
-
case
|
|
5079
|
-
return D(),
|
|
5080
|
-
case Br:
|
|
5081
|
-
return D(), d.test = He(), d.consequent = ne(), d.alternate = B(Fr) ? ne() : null, P(d, "IfStatement");
|
|
5082
|
-
case $r:
|
|
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
|
-
case Ct:
|
|
5085
|
-
D(), d.discriminant = He(), d.cases = [], V(Ye), $.push(Ta);
|
|
5086
|
-
for (var k, j; T !== ke; )
|
|
5087
|
-
if (T === wt || T === Lr) {
|
|
5088
|
-
var qe = T === wt;
|
|
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);
|
|
5090
|
-
} else
|
|
5091
|
-
k || ce(), k.consequent.push(ne());
|
|
5092
|
-
return k && P(k, "SwitchCase"), D(), $.pop(), P(d, "SwitchStatement");
|
|
5080
|
+
return B(ut) ? (vt(w), yn(d, w)) : $t(d, w);
|
|
5081
|
+
case kt:
|
|
5082
|
+
return D(), Xt(d, !0);
|
|
5093
5083
|
case Vr:
|
|
5094
|
-
return D(),
|
|
5084
|
+
return D(), d.test = Je(), d.consequent = ne(), d.alternate = B(jr) ? ne() : null, P(d, "IfStatement");
|
|
5095
5085
|
case Gr:
|
|
5096
|
-
|
|
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
|
-
}
|
|
5100
|
-
return d.finalizer = B(Ur) ? Je() : null, !d.handler && !d.finalizer && I(d.start, "Missing catch or finally clause"), P(d, "TryStatement");
|
|
5101
|
-
case kt:
|
|
5102
|
-
return D(), vn(d), Te(), P(d, "VariableDeclaration");
|
|
5086
|
+
return !Ee && !r.allowReturnOutsideFunction && I(f, "'return' outside of function"), D(), B(le) || ht() ? d.argument = null : (d.argument = W(), Te()), P(d, "ReturnStatement");
|
|
5103
5087
|
case At:
|
|
5104
|
-
|
|
5088
|
+
D(), d.discriminant = Je(), d.cases = [], V(ze), $.push(Ta);
|
|
5089
|
+
for (var A, j; R !== ke; )
|
|
5090
|
+
if (R === Ct || R === Fr) {
|
|
5091
|
+
var Ze = R === Ct;
|
|
5092
|
+
A && P(A, "SwitchCase"), d.cases.push(A = X()), A.consequent = [], D(), Ze ? A.test = W() : (j && I(Ye, "Multiple default clauses"), j = !0, A.test = null), V(Xe);
|
|
5093
|
+
} else
|
|
5094
|
+
A || ce(), A.consequent.push(ne());
|
|
5095
|
+
return A && P(A, "SwitchCase"), D(), $.pop(), P(d, "SwitchStatement");
|
|
5105
5096
|
case Yr:
|
|
5106
|
-
return
|
|
5107
|
-
case
|
|
5108
|
-
|
|
5097
|
+
return D(), ct.test(t.slice(re, f)) && I(re, "Illegal newline after throw"), d.argument = W(), Te(), P(d, "ThrowStatement");
|
|
5098
|
+
case zr:
|
|
5099
|
+
if (D(), d.block = Ke(), d.handler = null, R === Dr) {
|
|
5100
|
+
var De = X();
|
|
5101
|
+
D(), V(se), De.param = me(), q && lt(De.param.name) && I(De.param.start, "Binding " + De.param.name + " in strict mode"), V(ae), De.body = Ke(), d.handler = P(De, "CatchClause");
|
|
5102
|
+
}
|
|
5103
|
+
return d.finalizer = B(Br) ? Ke() : null, !d.handler && !d.finalizer && I(d.start, "Missing catch or finally clause"), P(d, "TryStatement");
|
|
5104
|
+
case It:
|
|
5105
|
+
return D(), mn(d), Te(), P(d, "VariableDeclaration");
|
|
5106
|
+
case Dt:
|
|
5107
|
+
return D(), d.test = Je(), $.push(Bt), d.body = ne(), $.pop(), P(d, "WhileStatement");
|
|
5108
|
+
case Xr:
|
|
5109
|
+
return q && I(f, "'with' in strict mode"), D(), d.object = Je(), d.body = ne(), P(d, "WithStatement");
|
|
5110
|
+
case ze:
|
|
5111
|
+
return Ke();
|
|
5109
5112
|
case le:
|
|
5110
5113
|
return D(), P(d, "EmptyStatement");
|
|
5111
5114
|
default:
|
|
5112
|
-
var
|
|
5113
|
-
if (
|
|
5115
|
+
var Ht = S, yt = W();
|
|
5116
|
+
if (p === Ce && yt.type === "Identifier" && B(Xe)) {
|
|
5114
5117
|
for (var E = 0; E < $.length; ++E)
|
|
5115
|
-
$[E].name ===
|
|
5116
|
-
var Ca =
|
|
5117
|
-
return $.push({ name:
|
|
5118
|
+
$[E].name === Ht && I(yt.start, "Label '" + Ht + "' is already declared");
|
|
5119
|
+
var Ca = R.isLoop ? "loop" : R === At ? "switch" : null;
|
|
5120
|
+
return $.push({ name: Ht, kind: Ca }), d.body = ne(), $.pop(), d.label = yt, P(d, "LabeledStatement");
|
|
5118
5121
|
} else
|
|
5119
|
-
return d.expression =
|
|
5122
|
+
return d.expression = yt, Te(), P(d, "ExpressionStatement");
|
|
5120
5123
|
}
|
|
5121
5124
|
}
|
|
5122
|
-
function
|
|
5125
|
+
function Je() {
|
|
5123
5126
|
V(se);
|
|
5124
|
-
var
|
|
5125
|
-
return V(ae),
|
|
5127
|
+
var p = W();
|
|
5128
|
+
return V(ae), p;
|
|
5126
5129
|
}
|
|
5127
|
-
function
|
|
5128
|
-
var d = X(),
|
|
5129
|
-
for (d.body = [], V(
|
|
5130
|
+
function Ke(p) {
|
|
5131
|
+
var d = X(), m = !0, E = !1, C;
|
|
5132
|
+
for (d.body = [], V(ze); !B(ke); ) {
|
|
5130
5133
|
var w = ne();
|
|
5131
|
-
d.body.push(w),
|
|
5134
|
+
d.body.push(w), m && p && jt(w) && (C = E, Ut(E = !0)), m = !1;
|
|
5132
5135
|
}
|
|
5133
|
-
return E && !C &&
|
|
5136
|
+
return E && !C && Ut(!1), P(d, "BlockStatement");
|
|
5134
5137
|
}
|
|
5135
|
-
function
|
|
5136
|
-
return
|
|
5138
|
+
function $t(p, d) {
|
|
5139
|
+
return p.init = d, V(le), p.test = R === le ? null : W(), V(le), p.update = R === ae ? null : W(), V(ae), p.body = ne(), $.pop(), P(p, "ForStatement");
|
|
5137
5140
|
}
|
|
5138
|
-
function
|
|
5139
|
-
return
|
|
5141
|
+
function yn(p, d) {
|
|
5142
|
+
return p.left = d, p.right = W(), V(ae), p.body = ne(), $.pop(), P(p, "ForInStatement");
|
|
5140
5143
|
}
|
|
5141
|
-
function
|
|
5142
|
-
for (
|
|
5143
|
-
var
|
|
5144
|
-
if (
|
|
5144
|
+
function mn(p, d) {
|
|
5145
|
+
for (p.declarations = [], p.kind = "var"; ; ) {
|
|
5146
|
+
var m = X();
|
|
5147
|
+
if (m.id = me(), q && lt(m.id.name) && I(m.id.start, "Binding " + m.id.name + " in strict mode"), m.init = B(tn) ? W(!0, d) : null, p.declarations.push(P(m, "VariableDeclarator")), !B(ve)) break;
|
|
5145
5148
|
}
|
|
5146
5149
|
}
|
|
5147
|
-
function W(
|
|
5148
|
-
var
|
|
5149
|
-
if (!
|
|
5150
|
-
var E =
|
|
5151
|
-
for (E.expressions = [
|
|
5150
|
+
function W(p, d) {
|
|
5151
|
+
var m = Vt(d);
|
|
5152
|
+
if (!p && R === ve) {
|
|
5153
|
+
var E = ye(m);
|
|
5154
|
+
for (E.expressions = [m]; B(ve); ) E.expressions.push(Vt(d));
|
|
5152
5155
|
return P(E, "SequenceExpression");
|
|
5153
5156
|
}
|
|
5154
|
-
return
|
|
5157
|
+
return m;
|
|
5155
5158
|
}
|
|
5156
|
-
function
|
|
5157
|
-
var d = Na(
|
|
5158
|
-
if (
|
|
5159
|
-
var
|
|
5160
|
-
return
|
|
5159
|
+
function Vt(p) {
|
|
5160
|
+
var d = Na(p);
|
|
5161
|
+
if (R.isAssign) {
|
|
5162
|
+
var m = ye(d);
|
|
5163
|
+
return m.operator = S, m.left = d, D(), m.right = Vt(p), vt(d), P(m, "AssignmentExpression");
|
|
5161
5164
|
}
|
|
5162
5165
|
return d;
|
|
5163
5166
|
}
|
|
5164
|
-
function Na(
|
|
5165
|
-
var d = xa(
|
|
5166
|
-
if (B(
|
|
5167
|
-
var
|
|
5168
|
-
return
|
|
5167
|
+
function Na(p) {
|
|
5168
|
+
var d = xa(p);
|
|
5169
|
+
if (B(Qr)) {
|
|
5170
|
+
var m = ye(d);
|
|
5171
|
+
return m.test = d, m.consequent = W(!0), V(Xe), m.alternate = W(!0, p), P(m, "ConditionalExpression");
|
|
5169
5172
|
}
|
|
5170
5173
|
return d;
|
|
5171
5174
|
}
|
|
5172
|
-
function xa(
|
|
5173
|
-
return
|
|
5175
|
+
function xa(p) {
|
|
5176
|
+
return Gt(Yt(), -1, p);
|
|
5174
5177
|
}
|
|
5175
|
-
function
|
|
5176
|
-
var E =
|
|
5177
|
-
if (E !== null && (!
|
|
5178
|
-
var C =
|
|
5179
|
-
C.left =
|
|
5180
|
-
var w =
|
|
5181
|
-
D(), C.right =
|
|
5182
|
-
var
|
|
5183
|
-
return
|
|
5178
|
+
function Gt(p, d, m) {
|
|
5179
|
+
var E = R.binop;
|
|
5180
|
+
if (E !== null && (!m || R !== ut) && E > d) {
|
|
5181
|
+
var C = ye(p);
|
|
5182
|
+
C.left = p, C.operator = S;
|
|
5183
|
+
var w = R;
|
|
5184
|
+
D(), C.right = Gt(Yt(), E, m);
|
|
5185
|
+
var A = P(C, w === nn || w === an ? "LogicalExpression" : "BinaryExpression");
|
|
5186
|
+
return Gt(A, d, m);
|
|
5184
5187
|
}
|
|
5185
|
-
return
|
|
5188
|
+
return p;
|
|
5186
5189
|
}
|
|
5187
|
-
function
|
|
5188
|
-
if (
|
|
5189
|
-
var
|
|
5190
|
-
return
|
|
5190
|
+
function Yt() {
|
|
5191
|
+
if (R.prefix) {
|
|
5192
|
+
var p = X(), d = R.isUpdate;
|
|
5193
|
+
return p.operator = S, p.prefix = !0, k = !0, D(), p.argument = Yt(), d ? vt(p.argument) : q && p.operator === "delete" && p.argument.type === "Identifier" && I(p.start, "Deleting local variable in strict mode"), P(p, d ? "UpdateExpression" : "UnaryExpression");
|
|
5191
5194
|
}
|
|
5192
|
-
for (var
|
|
5193
|
-
var
|
|
5194
|
-
|
|
5195
|
+
for (var m = Sa(); R.postfix && !ht(); ) {
|
|
5196
|
+
var p = ye(m);
|
|
5197
|
+
p.operator = S, p.prefix = !1, p.argument = m, vt(m), D(), m = P(p, "UpdateExpression");
|
|
5195
5198
|
}
|
|
5196
|
-
return
|
|
5199
|
+
return m;
|
|
5197
5200
|
}
|
|
5198
5201
|
function Sa() {
|
|
5199
|
-
return
|
|
5202
|
+
return qe(zt());
|
|
5200
5203
|
}
|
|
5201
|
-
function
|
|
5202
|
-
var
|
|
5203
|
-
return B(
|
|
5204
|
+
function qe(p, d) {
|
|
5205
|
+
var m;
|
|
5206
|
+
return B(Zr) ? (m = ye(p), m.object = p, m.property = me(!0), m.computed = !1, qe(P(m, "MemberExpression"), d)) : B(Lt) ? (m = ye(p), m.object = p, m.property = W(), m.computed = !0, V(Mt), qe(P(m, "MemberExpression"), d)) : !d && B(se) ? (m = ye(p), m.callee = p, m.arguments = Wt(ae, !1), qe(P(m, "CallExpression"), d)) : p;
|
|
5204
5207
|
}
|
|
5205
|
-
function
|
|
5206
|
-
var
|
|
5207
|
-
switch (
|
|
5208
|
-
case Xr:
|
|
5209
|
-
return f = X(), D(), P(f, "ThisExpression");
|
|
5210
|
-
case Ce:
|
|
5211
|
-
return ye();
|
|
5212
|
-
case at:
|
|
5213
|
-
case Nt:
|
|
5214
|
-
case kr:
|
|
5215
|
-
return f = X(), f.value = S, f.raw = t.slice(p, v), D(), P(f, "Literal");
|
|
5216
|
-
case Wr:
|
|
5208
|
+
function zt() {
|
|
5209
|
+
var p;
|
|
5210
|
+
switch (R) {
|
|
5217
5211
|
case Hr:
|
|
5212
|
+
return p = X(), D(), P(p, "ThisExpression");
|
|
5213
|
+
case Ce:
|
|
5214
|
+
return me();
|
|
5215
|
+
case ot:
|
|
5216
|
+
case St:
|
|
5217
|
+
case Ir:
|
|
5218
|
+
return p = X(), p.value = S, p.raw = t.slice(f, v), D(), P(p, "Literal");
|
|
5218
5219
|
case Jr:
|
|
5219
|
-
|
|
5220
|
+
case Kr:
|
|
5221
|
+
case qr:
|
|
5222
|
+
return p = X(), p.value = R.atomValue, p.raw = R.keyword, D(), P(p, "Literal");
|
|
5220
5223
|
case se:
|
|
5221
|
-
var d =
|
|
5224
|
+
var d = _, m = f;
|
|
5222
5225
|
D();
|
|
5223
5226
|
var E = W();
|
|
5224
|
-
return E.start =
|
|
5225
|
-
case
|
|
5226
|
-
return
|
|
5227
|
-
case
|
|
5227
|
+
return E.start = m, E.end = v, r.locations && (E.loc.start = d, E.loc.end = N), r.ranges && (E.range = [m, v]), V(ae), E;
|
|
5228
|
+
case Lt:
|
|
5229
|
+
return p = X(), D(), p.elements = Wt(Mt, !0, !0), P(p, "ArrayExpression");
|
|
5230
|
+
case ze:
|
|
5228
5231
|
return Pa();
|
|
5229
|
-
case
|
|
5230
|
-
return
|
|
5231
|
-
case
|
|
5232
|
+
case kt:
|
|
5233
|
+
return p = X(), D(), Xt(p, !1);
|
|
5234
|
+
case Wr:
|
|
5232
5235
|
return wa();
|
|
5233
5236
|
}
|
|
5234
5237
|
ce();
|
|
5235
5238
|
}
|
|
5236
5239
|
function wa() {
|
|
5237
|
-
var
|
|
5238
|
-
return D(),
|
|
5240
|
+
var p = X();
|
|
5241
|
+
return D(), p.callee = qe(zt(), !0), p.arguments = B(se) ? Wt(ae, !1) : Hi, P(p, "NewExpression");
|
|
5239
5242
|
}
|
|
5240
5243
|
function Pa() {
|
|
5241
|
-
var
|
|
5242
|
-
for (
|
|
5244
|
+
var p = X(), d = !0, m = !1;
|
|
5245
|
+
for (p.properties = [], D(); !B(ke); ) {
|
|
5243
5246
|
if (d)
|
|
5244
5247
|
d = !1;
|
|
5245
5248
|
else if (V(ve), r.allowTrailingCommas && B(ke))
|
|
5246
5249
|
break;
|
|
5247
|
-
var E = { key:
|
|
5248
|
-
if (B(
|
|
5249
|
-
for (var
|
|
5250
|
-
var j =
|
|
5250
|
+
var E = { key: _n() }, C = !1, w;
|
|
5251
|
+
if (B(Xe) ? (E.value = W(!0), w = E.kind = "init") : E.key.type === "Identifier" && (E.key.name === "get" || E.key.name === "set") ? (C = m = !0, w = E.kind = E.key.name, E.key = _n(), R !== se && ce(), E.value = Xt(X(), !1)) : ce(), E.key.type === "Identifier" && (q || m))
|
|
5252
|
+
for (var A = 0; A < p.properties.length; ++A) {
|
|
5253
|
+
var j = p.properties[A];
|
|
5251
5254
|
if (j.key.name === E.key.name) {
|
|
5252
|
-
var
|
|
5253
|
-
|
|
5255
|
+
var Ze = w === j.kind || C && j.kind === "init" || w === "init" && (j.kind === "get" || j.kind === "set");
|
|
5256
|
+
Ze && !q && w === "init" && j.kind === "init" && (Ze = !1), Ze && I(E.key.start, "Redefinition of property");
|
|
5254
5257
|
}
|
|
5255
5258
|
}
|
|
5256
|
-
|
|
5259
|
+
p.properties.push(E);
|
|
5257
5260
|
}
|
|
5258
|
-
return P(
|
|
5261
|
+
return P(p, "ObjectExpression");
|
|
5259
5262
|
}
|
|
5260
|
-
function
|
|
5261
|
-
return
|
|
5263
|
+
function _n() {
|
|
5264
|
+
return R === ot || R === St ? zt() : me(!0);
|
|
5262
5265
|
}
|
|
5263
|
-
function
|
|
5264
|
-
|
|
5265
|
-
var
|
|
5266
|
+
function Xt(p, d) {
|
|
5267
|
+
R === Ce ? p.id = me() : d ? ce() : p.id = null, p.params = [];
|
|
5268
|
+
var m = !0;
|
|
5266
5269
|
for (V(se); !B(ae); )
|
|
5267
|
-
|
|
5270
|
+
m ? m = !1 : V(ve), p.params.push(me());
|
|
5268
5271
|
var E = Ee, C = $;
|
|
5269
|
-
if (Ee = !0, $ = [],
|
|
5270
|
-
for (var w =
|
|
5271
|
-
var
|
|
5272
|
-
if ((
|
|
5272
|
+
if (Ee = !0, $ = [], p.body = Ke(!0), Ee = E, $ = C, q || p.body.body.length && jt(p.body.body[0]))
|
|
5273
|
+
for (var w = p.id ? -1 : 0; w < p.params.length; ++w) {
|
|
5274
|
+
var A = w < 0 ? p.id : p.params[w];
|
|
5275
|
+
if ((on(A.name) || lt(A.name)) && I(A.start, "Defining '" + A.name + "' in strict mode"), w >= 0)
|
|
5273
5276
|
for (var j = 0; j < w; ++j)
|
|
5274
|
-
|
|
5277
|
+
A.name === p.params[j].name && I(A.start, "Argument name clash in strict mode");
|
|
5275
5278
|
}
|
|
5276
|
-
return P(
|
|
5279
|
+
return P(p, d ? "FunctionDeclaration" : "FunctionExpression");
|
|
5277
5280
|
}
|
|
5278
|
-
function
|
|
5279
|
-
for (var E = [], C = !0; !B(
|
|
5281
|
+
function Wt(p, d, m) {
|
|
5282
|
+
for (var E = [], C = !0; !B(p); ) {
|
|
5280
5283
|
if (C)
|
|
5281
5284
|
C = !1;
|
|
5282
|
-
else if (V(ve), d && r.allowTrailingCommas && B(
|
|
5285
|
+
else if (V(ve), d && r.allowTrailingCommas && B(p))
|
|
5283
5286
|
break;
|
|
5284
|
-
E.push(
|
|
5287
|
+
E.push(m && R === ve ? null : W(!0));
|
|
5285
5288
|
}
|
|
5286
5289
|
return E;
|
|
5287
5290
|
}
|
|
5288
|
-
function
|
|
5291
|
+
function me(p) {
|
|
5289
5292
|
var d = X();
|
|
5290
|
-
return
|
|
5293
|
+
return p && r.forbidReserved === "everywhere" && (p = !1), R === Ce ? (!p && (r.forbidReserved && aa(S) || q && on(S)) && t.slice(f, v).indexOf("\\") === -1 && I(f, "The keyword '" + S + "' is reserved"), d.name = S) : p && R.keyword ? d.name = R.keyword : ce(), k = !1, D(), P(d, "Identifier");
|
|
5291
5294
|
}
|
|
5292
5295
|
});
|
|
5293
5296
|
}
|
|
@@ -5298,17 +5301,17 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5298
5301
|
!*** external "vm" ***!
|
|
5299
5302
|
\*********************/
|
|
5300
5303
|
/***/
|
|
5301
|
-
(
|
|
5302
|
-
|
|
5304
|
+
(y) => {
|
|
5305
|
+
y.exports = ql;
|
|
5303
5306
|
}
|
|
5304
5307
|
)
|
|
5305
5308
|
/******/
|
|
5306
5309
|
}, h = {};
|
|
5307
|
-
function y
|
|
5308
|
-
var O = h[
|
|
5310
|
+
function b(y) {
|
|
5311
|
+
var O = h[y];
|
|
5309
5312
|
if (O !== void 0)
|
|
5310
5313
|
return O.exports;
|
|
5311
|
-
var
|
|
5314
|
+
var T = h[y] = {
|
|
5312
5315
|
/******/
|
|
5313
5316
|
// no module.id needed
|
|
5314
5317
|
/******/
|
|
@@ -5317,63 +5320,63 @@ const Jl = {}, Kl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
5317
5320
|
exports: {}
|
|
5318
5321
|
/******/
|
|
5319
5322
|
};
|
|
5320
|
-
return l[
|
|
5323
|
+
return l[y].call(T.exports, T, T.exports, b), T.exports;
|
|
5321
5324
|
}
|
|
5322
|
-
|
|
5323
|
-
for (var
|
|
5324
|
-
|
|
5325
|
-
},
|
|
5326
|
-
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(
|
|
5325
|
+
b.d = (y, O) => {
|
|
5326
|
+
for (var T in O)
|
|
5327
|
+
b.o(O, T) && !b.o(y, T) && Object.defineProperty(y, T, { enumerable: !0, get: O[T] });
|
|
5328
|
+
}, b.o = (y, O) => Object.prototype.hasOwnProperty.call(y, O), b.r = (y) => {
|
|
5329
|
+
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(y, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(y, "__esModule", { value: !0 });
|
|
5327
5330
|
};
|
|
5328
|
-
var
|
|
5331
|
+
var g = {};
|
|
5329
5332
|
return (() => {
|
|
5330
5333
|
/*!*******************************!*\
|
|
5331
5334
|
!*** ./src/js-interpreter.js ***!
|
|
5332
5335
|
\*******************************/
|
|
5333
|
-
|
|
5336
|
+
b.r(g), b.d(g, {
|
|
5334
5337
|
/* harmony export */
|
|
5335
|
-
default: () =>
|
|
5338
|
+
default: () => T
|
|
5336
5339
|
/* harmony export */
|
|
5337
5340
|
});
|
|
5338
|
-
const
|
|
5341
|
+
const y = b(
|
|
5339
5342
|
/*! ../original-repo/acorn */
|
|
5340
5343
|
"./original-repo/acorn.js"
|
|
5341
5344
|
);
|
|
5342
|
-
globalThis.acorn =
|
|
5343
|
-
const { Interpreter: O } =
|
|
5345
|
+
globalThis.acorn = y;
|
|
5346
|
+
const { Interpreter: O } = b(
|
|
5344
5347
|
/*! ../original-repo/interpreter */
|
|
5345
5348
|
"./original-repo/interpreter.js"
|
|
5346
|
-
),
|
|
5347
|
-
})(),
|
|
5349
|
+
), T = O;
|
|
5350
|
+
})(), g = g.default, g;
|
|
5348
5351
|
})()
|
|
5349
5352
|
));
|
|
5350
|
-
})(
|
|
5351
|
-
var Zl =
|
|
5353
|
+
})(Xi);
|
|
5354
|
+
var Zl = Xi.exports;
|
|
5352
5355
|
const Ql = /* @__PURE__ */ Wl(Zl);
|
|
5353
5356
|
function ec(n, o) {
|
|
5354
5357
|
function l(O) {
|
|
5355
|
-
const
|
|
5356
|
-
console.log(
|
|
5358
|
+
const T = n.pseudoToNative(O);
|
|
5359
|
+
console.log(T);
|
|
5357
5360
|
}
|
|
5358
5361
|
function h(O) {
|
|
5359
|
-
const
|
|
5362
|
+
const T = n.pseudoToNative(O);
|
|
5360
5363
|
let r = "";
|
|
5361
|
-
typeof
|
|
5364
|
+
typeof T == "object" ? r = JSON.stringify(T) : r = String(T), Fe.emit("consoleAppend", r);
|
|
5362
5365
|
}
|
|
5363
|
-
function
|
|
5364
|
-
const r = n.pseudoToNative(O), t = n.pseudoToNative(
|
|
5366
|
+
function b(O, T) {
|
|
5367
|
+
const r = n.pseudoToNative(O), t = n.pseudoToNative(T);
|
|
5365
5368
|
r === "info" ? ja(t) : r === "success" ? Ba(t) : r === "warning" ? $a(t) : r === "error" && Va(t);
|
|
5366
5369
|
}
|
|
5367
|
-
function
|
|
5368
|
-
const r = n.pseudoToNative(O), t = n.pseudoToNative(
|
|
5370
|
+
function g(O, T) {
|
|
5371
|
+
const r = n.pseudoToNative(O), t = n.pseudoToNative(T);
|
|
5369
5372
|
setTimeout(() => {
|
|
5370
5373
|
n.appendCode(`__timeoutCallbackV1__(${r})`), n.run();
|
|
5371
5374
|
}, t);
|
|
5372
5375
|
}
|
|
5373
|
-
function
|
|
5376
|
+
function y(O, T) {
|
|
5374
5377
|
const r = n.pseudoToNative(O);
|
|
5375
5378
|
setTimeout(() => {
|
|
5376
|
-
|
|
5379
|
+
T(), n.run();
|
|
5377
5380
|
}, r);
|
|
5378
5381
|
}
|
|
5379
5382
|
n.setProperty(
|
|
@@ -5387,25 +5390,25 @@ function ec(n, o) {
|
|
|
5387
5390
|
), n.setProperty(
|
|
5388
5391
|
o,
|
|
5389
5392
|
"__messageV1__",
|
|
5390
|
-
n.createNativeFunction(
|
|
5393
|
+
n.createNativeFunction(b)
|
|
5391
5394
|
), n.setProperty(
|
|
5392
5395
|
o,
|
|
5393
5396
|
"__timeoutV1__",
|
|
5394
|
-
n.createNativeFunction(
|
|
5397
|
+
n.createNativeFunction(g)
|
|
5395
5398
|
), n.setProperty(
|
|
5396
5399
|
o,
|
|
5397
5400
|
"__delayV1__",
|
|
5398
|
-
n.createAsyncFunction(
|
|
5401
|
+
n.createAsyncFunction(y)
|
|
5399
5402
|
);
|
|
5400
5403
|
}
|
|
5401
5404
|
class tc {
|
|
5402
5405
|
constructor(o) {
|
|
5403
|
-
|
|
5404
|
-
|
|
5406
|
+
Jt(this, "context");
|
|
5407
|
+
Jt(this, "nodes");
|
|
5405
5408
|
this.context = o, this.nodes = {};
|
|
5406
5409
|
const l = (h) => {
|
|
5407
|
-
var
|
|
5408
|
-
this.nodes[h.basic.id] = h, (
|
|
5410
|
+
var b;
|
|
5411
|
+
this.nodes[h.basic.id] = h, (b = h.children) == null || b.forEach((g) => l(g));
|
|
5409
5412
|
};
|
|
5410
5413
|
this.context.data.view.nodes.forEach((h) => l(h));
|
|
5411
5414
|
}
|
|
@@ -5413,27 +5416,27 @@ class tc {
|
|
|
5413
5416
|
return this.nodes[o];
|
|
5414
5417
|
}
|
|
5415
5418
|
addNode(o, l, h) {
|
|
5416
|
-
const
|
|
5417
|
-
let
|
|
5419
|
+
const b = `parent=${o} ref=${l} keyOrRefid=${h}`;
|
|
5420
|
+
let g;
|
|
5418
5421
|
if (o) {
|
|
5419
5422
|
const O = this.getNode(o);
|
|
5420
5423
|
if (!O)
|
|
5421
|
-
return console.error(`NodeMgr/addNode parent not found, ${
|
|
5424
|
+
return console.error(`NodeMgr/addNode parent not found, ${b}`), "";
|
|
5422
5425
|
if (!O.children)
|
|
5423
|
-
return console.error(`NodeMgr/addNode parent no children, ${
|
|
5424
|
-
|
|
5426
|
+
return console.error(`NodeMgr/addNode parent no children, ${b}`), "";
|
|
5427
|
+
g = O.children;
|
|
5425
5428
|
} else
|
|
5426
|
-
|
|
5427
|
-
if (!
|
|
5429
|
+
g = this.context.data.view.nodes;
|
|
5430
|
+
if (!g)
|
|
5428
5431
|
return "";
|
|
5429
|
-
const
|
|
5432
|
+
const y = Ol(
|
|
5430
5433
|
this.context.type,
|
|
5431
5434
|
this.context.data.type,
|
|
5432
5435
|
this.context.data.version,
|
|
5433
5436
|
l,
|
|
5434
5437
|
h
|
|
5435
5438
|
);
|
|
5436
|
-
return
|
|
5439
|
+
return y ? (g.push(y), this.nodes[y.basic.id] = y, y.basic.id) : (console.error(`NodeMgr/addNode spawn node failed, ${b}`), "");
|
|
5437
5440
|
}
|
|
5438
5441
|
deleteNode(o) {
|
|
5439
5442
|
this.getNode(o);
|
|
@@ -5441,57 +5444,57 @@ class tc {
|
|
|
5441
5444
|
}
|
|
5442
5445
|
function rc(n, o, l) {
|
|
5443
5446
|
const h = new tc(n);
|
|
5444
|
-
function
|
|
5445
|
-
const u = o.pseudoToNative(e), c = o.pseudoToNative(i), a = o.pseudoToNative(s),
|
|
5446
|
-
return o.nativeToPseudo(
|
|
5447
|
+
function b(e, i, s) {
|
|
5448
|
+
const u = o.pseudoToNative(e), c = o.pseudoToNative(i), a = o.pseudoToNative(s), f = h.addNode(u, c, a);
|
|
5449
|
+
return o.nativeToPseudo(f);
|
|
5447
5450
|
}
|
|
5448
|
-
function
|
|
5451
|
+
function g(e) {
|
|
5449
5452
|
const i = o.pseudoToNative(e);
|
|
5450
5453
|
h.deleteNode(i);
|
|
5451
5454
|
}
|
|
5452
|
-
function
|
|
5455
|
+
function y(e, i) {
|
|
5453
5456
|
const s = o.pseudoToNative(e), u = o.pseudoToNative(i), c = `id=${s} keys=${u}`;
|
|
5454
5457
|
let a;
|
|
5455
5458
|
if (s === "globality" ? a = n.data.view : a = h.getNode(s), !a) {
|
|
5456
5459
|
console.error(`getNodePropV1 node not found, ${c}`);
|
|
5457
5460
|
return;
|
|
5458
5461
|
}
|
|
5459
|
-
const
|
|
5460
|
-
for (let
|
|
5461
|
-
const
|
|
5462
|
-
if (
|
|
5463
|
-
return o.nativeToPseudo(a[
|
|
5462
|
+
const f = u.split("."), v = f.length;
|
|
5463
|
+
for (let _ = 0; _ < v; _++) {
|
|
5464
|
+
const N = f[_];
|
|
5465
|
+
if (_ === v - 1)
|
|
5466
|
+
return o.nativeToPseudo(a[N]);
|
|
5464
5467
|
if (!a) {
|
|
5465
5468
|
console.error(`getNodePropV1 unpkg failed, ${c}`);
|
|
5466
5469
|
return;
|
|
5467
5470
|
}
|
|
5468
|
-
a = a[
|
|
5471
|
+
a = a[N];
|
|
5469
5472
|
}
|
|
5470
5473
|
}
|
|
5471
5474
|
function O(e, i, s) {
|
|
5472
|
-
const u = o.pseudoToNative(e), c = o.pseudoToNative(i), a = o.pseudoToNative(s),
|
|
5475
|
+
const u = o.pseudoToNative(e), c = o.pseudoToNative(i), a = o.pseudoToNative(s), f = `id=${u} keys=${c} value=${a}`;
|
|
5473
5476
|
let v;
|
|
5474
5477
|
if (u === "globality" ? v = n.data.view : v = h.getNode(u), !v) {
|
|
5475
|
-
console.error(`setNodePropV1 node not found, ${
|
|
5478
|
+
console.error(`setNodePropV1 node not found, ${f}`);
|
|
5476
5479
|
return;
|
|
5477
5480
|
}
|
|
5478
|
-
const
|
|
5479
|
-
for (let
|
|
5480
|
-
const S =
|
|
5481
|
-
if (
|
|
5481
|
+
const _ = c.split("."), N = _.length;
|
|
5482
|
+
for (let R = 0; R < N; R++) {
|
|
5483
|
+
const S = _[R];
|
|
5484
|
+
if (R === N - 1)
|
|
5482
5485
|
v[S] = a;
|
|
5483
5486
|
else {
|
|
5484
5487
|
if (!v) {
|
|
5485
|
-
console.error(`setNodePropV1 unpkg failed, ${
|
|
5488
|
+
console.error(`setNodePropV1 unpkg failed, ${f}`);
|
|
5486
5489
|
return;
|
|
5487
5490
|
}
|
|
5488
5491
|
v = v[S];
|
|
5489
5492
|
}
|
|
5490
5493
|
}
|
|
5491
5494
|
}
|
|
5492
|
-
function
|
|
5493
|
-
const c = o.pseudoToNative(e), a = o.pseudoToNative(i),
|
|
5494
|
-
|
|
5495
|
+
function T(e, i, s, u) {
|
|
5496
|
+
const c = o.pseudoToNative(e), a = o.pseudoToNative(i), f = o.pseudoToNative(s), v = { outputs: [] };
|
|
5497
|
+
Fe.emit(`callMethod@${c}`, { name: a, inputs: f, result: v }), u(o.nativeToPseudo(v.outputs)), o.run();
|
|
5495
5498
|
}
|
|
5496
5499
|
function r(e, i, s) {
|
|
5497
5500
|
const u = o.pseudoToNative(e), c = o.pseudoToNative(i);
|
|
@@ -5500,23 +5503,23 @@ function rc(n, o, l) {
|
|
|
5500
5503
|
});
|
|
5501
5504
|
}
|
|
5502
5505
|
function t(e, i, s, u) {
|
|
5503
|
-
const c = o.pseudoToNative(e), a = o.pseudoToNative(i),
|
|
5504
|
-
Ya({ title: c, label: a, value:
|
|
5506
|
+
const c = o.pseudoToNative(e), a = o.pseudoToNative(i), f = o.pseudoToNative(s);
|
|
5507
|
+
Ya({ title: c, label: a, value: f }).then((v) => {
|
|
5505
5508
|
u(o.nativeToPseudo(v)), o.run();
|
|
5506
5509
|
});
|
|
5507
5510
|
}
|
|
5508
5511
|
o.setProperty(
|
|
5509
5512
|
l,
|
|
5510
5513
|
"__addNodeV1__",
|
|
5511
|
-
o.createNativeFunction(
|
|
5514
|
+
o.createNativeFunction(b)
|
|
5512
5515
|
), o.setProperty(
|
|
5513
5516
|
l,
|
|
5514
5517
|
"__deleteNodeV1__",
|
|
5515
|
-
o.createNativeFunction(
|
|
5518
|
+
o.createNativeFunction(g)
|
|
5516
5519
|
), o.setProperty(
|
|
5517
5520
|
l,
|
|
5518
5521
|
"__getNodePropV1__",
|
|
5519
|
-
o.createNativeFunction(
|
|
5522
|
+
o.createNativeFunction(y)
|
|
5520
5523
|
), o.setProperty(
|
|
5521
5524
|
l,
|
|
5522
5525
|
"__setNodePropV1__",
|
|
@@ -5524,7 +5527,7 @@ function rc(n, o, l) {
|
|
|
5524
5527
|
), o.setProperty(
|
|
5525
5528
|
l,
|
|
5526
5529
|
"__callNodeMethodV1__",
|
|
5527
|
-
o.createAsyncFunction(
|
|
5530
|
+
o.createAsyncFunction(T)
|
|
5528
5531
|
), o.setProperty(
|
|
5529
5532
|
l,
|
|
5530
5533
|
"__openConfirmDlgV1__",
|
|
@@ -5661,11 +5664,11 @@ function __timeoutCallbackV1__(timerId) {
|
|
|
5661
5664
|
function __destroy__() {
|
|
5662
5665
|
}
|
|
5663
5666
|
`, sc = ic + ac + oc + uc;
|
|
5664
|
-
function
|
|
5667
|
+
function Wi(n, o) {
|
|
5665
5668
|
const l = new Ql(
|
|
5666
5669
|
sc,
|
|
5667
|
-
(h,
|
|
5668
|
-
nc(n, h,
|
|
5670
|
+
(h, b) => {
|
|
5671
|
+
nc(n, h, b);
|
|
5669
5672
|
}
|
|
5670
5673
|
);
|
|
5671
5674
|
return l.appendCode(o), l.appendCode(`
|
|
@@ -5673,7 +5676,7 @@ __env__ = '${n.env}';
|
|
|
5673
5676
|
__triggerEvent__('globality', 'startup');
|
|
5674
5677
|
`), l.run(), l;
|
|
5675
5678
|
}
|
|
5676
|
-
function
|
|
5679
|
+
function Le(n) {
|
|
5677
5680
|
n.appendCode("__destroy__();"), n.run();
|
|
5678
5681
|
}
|
|
5679
5682
|
const fe = /* @__PURE__ */ oe({
|
|
@@ -5683,75 +5686,78 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5683
5686
|
state: {}
|
|
5684
5687
|
},
|
|
5685
5688
|
setup(n) {
|
|
5686
|
-
const { t: o } =
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
r
|
|
5689
|
+
const { t: o } = ui(), l = n, h = Bi(), b = he(), g = Cr(), y = kr(), O = Vi(), T = Et(-1), r = Et(), t = {};
|
|
5690
|
+
Gi(t), oi(() => {
|
|
5691
|
+
const f = O[l.refContext.refid];
|
|
5692
|
+
if (!f) {
|
|
5693
|
+
T.value = -1, r.value = void 0, t.interpreter && (Le(t.interpreter), t.interpreter = void 0), Fe.emit("compNotAvail", l.refContext.refid);
|
|
5694
|
+
return;
|
|
5695
|
+
}
|
|
5696
|
+
if (T.value === f.dataSeq)
|
|
5697
|
+
return;
|
|
5698
|
+
T.value = f.dataSeq, r.value = _e(f.data), t.interpreter && Le(t.interpreter);
|
|
5699
|
+
const v = r.value, _ = v.code.script;
|
|
5700
|
+
_ && (t.interpreter = Wi({ env: h, type: g, data: v }, _));
|
|
5701
|
+
}), br(() => {
|
|
5702
|
+
t.interpreter && (Le(t.interpreter), t.interpreter = void 0);
|
|
5697
5703
|
});
|
|
5698
|
-
const
|
|
5704
|
+
const e = () => {
|
|
5699
5705
|
console.log("triggerUpdate");
|
|
5700
5706
|
};
|
|
5701
5707
|
Da(
|
|
5702
5708
|
() => l.state,
|
|
5703
5709
|
() => {
|
|
5704
|
-
|
|
5710
|
+
e();
|
|
5705
5711
|
},
|
|
5706
5712
|
{ deep: !0, immediate: !0 }
|
|
5707
5713
|
);
|
|
5708
|
-
function
|
|
5709
|
-
const
|
|
5710
|
-
return
|
|
5714
|
+
function i(f) {
|
|
5715
|
+
const v = Ar[y.version].refKey, _ = xe[v];
|
|
5716
|
+
return _ ? J(_.comp, {
|
|
5711
5717
|
refContext: {
|
|
5712
5718
|
parent: l.refContext,
|
|
5713
|
-
refid:
|
|
5719
|
+
refid: f.ref.id
|
|
5714
5720
|
},
|
|
5715
|
-
node:
|
|
5716
|
-
}) : (console.assert(!1, `ref element not found key=${
|
|
5721
|
+
node: f
|
|
5722
|
+
}) : (console.assert(!1, `ref element not found key=${v}`), J("div", `ref element not found key=${v}`));
|
|
5717
5723
|
}
|
|
5718
|
-
function
|
|
5719
|
-
var
|
|
5720
|
-
const
|
|
5721
|
-
if (!
|
|
5722
|
-
return console.assert(!1, `element not found key=${
|
|
5723
|
-
const
|
|
5724
|
-
return
|
|
5725
|
-
|
|
5726
|
-
})), J(
|
|
5724
|
+
function s(f) {
|
|
5725
|
+
var N;
|
|
5726
|
+
const v = xe[f.basic.key];
|
|
5727
|
+
if (!v)
|
|
5728
|
+
return console.assert(!1, `element not found key=${f.basic.key}`), J("div", `element not found key=${f.basic.key}`);
|
|
5729
|
+
const _ = [];
|
|
5730
|
+
return v.slots.some((R) => R.key === "default") && ((N = f.children) == null || N.forEach((R) => {
|
|
5731
|
+
_.push(u(R));
|
|
5732
|
+
})), J(v.comp, { node: f }, { default: () => _ });
|
|
5727
5733
|
}
|
|
5728
|
-
function
|
|
5729
|
-
return
|
|
5734
|
+
function u(f) {
|
|
5735
|
+
return f.ref ? i(f) : s(f);
|
|
5730
5736
|
}
|
|
5731
|
-
function
|
|
5732
|
-
let
|
|
5733
|
-
for (;
|
|
5734
|
-
if (
|
|
5737
|
+
function c() {
|
|
5738
|
+
let f = l.refContext.parent;
|
|
5739
|
+
for (; f; ) {
|
|
5740
|
+
if (f.refid === l.refContext.refid)
|
|
5735
5741
|
return !0;
|
|
5736
|
-
|
|
5742
|
+
f = f.parent;
|
|
5737
5743
|
}
|
|
5738
5744
|
return !1;
|
|
5739
5745
|
}
|
|
5740
|
-
const
|
|
5741
|
-
if (
|
|
5746
|
+
const a = () => {
|
|
5747
|
+
if (c())
|
|
5742
5748
|
return J("div", o("x-runtime-lib.circularRef"));
|
|
5743
|
-
if (!
|
|
5749
|
+
if (!r.value)
|
|
5744
5750
|
return J("div", o("x-runtime-lib.compNotAvail"));
|
|
5745
|
-
const
|
|
5746
|
-
if (
|
|
5747
|
-
const
|
|
5748
|
-
return
|
|
5749
|
-
|
|
5750
|
-
}),
|
|
5751
|
+
const f = r.value.type;
|
|
5752
|
+
if (f === "common") {
|
|
5753
|
+
const v = [];
|
|
5754
|
+
return r.value.view.nodes.forEach((_) => {
|
|
5755
|
+
v.push(u(_));
|
|
5756
|
+
}), v;
|
|
5751
5757
|
} else
|
|
5752
|
-
return console.assert(!1, `invalid subtype=${
|
|
5758
|
+
return console.assert(!1, `invalid subtype=${f}`), J("div", `invalid subtype=${f}`);
|
|
5753
5759
|
};
|
|
5754
|
-
return (
|
|
5760
|
+
return (f, v) => (G(), Q(a));
|
|
5755
5761
|
}
|
|
5756
5762
|
}), lc = /* @__PURE__ */ oe({
|
|
5757
5763
|
__name: "index",
|
|
@@ -5760,60 +5766,60 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5760
5766
|
outer: { type: Boolean }
|
|
5761
5767
|
},
|
|
5762
5768
|
setup(n) {
|
|
5763
|
-
const o = n, l =
|
|
5769
|
+
const o = n, l = Ge(), h = x(() => {
|
|
5764
5770
|
var u;
|
|
5765
5771
|
return (u = o.node.size) == null ? void 0 : u.width;
|
|
5766
|
-
}),
|
|
5772
|
+
}), b = x(() => {
|
|
5767
5773
|
var u;
|
|
5768
5774
|
return (u = o.node.size) == null ? void 0 : u.height;
|
|
5769
|
-
}),
|
|
5775
|
+
}), g = x(() => {
|
|
5770
5776
|
var u;
|
|
5771
5777
|
return (u = o.node.settings) == null ? void 0 : u.headers;
|
|
5772
|
-
}),
|
|
5778
|
+
}), y = x(() => {
|
|
5773
5779
|
var u;
|
|
5774
5780
|
return (u = o.node.settings) == null ? void 0 : u.items;
|
|
5775
|
-
}), O =
|
|
5781
|
+
}), O = x(() => {
|
|
5776
5782
|
var u;
|
|
5777
5783
|
return (u = o.node.settings) == null ? void 0 : u.density;
|
|
5778
|
-
}),
|
|
5784
|
+
}), T = x(() => {
|
|
5779
5785
|
var u;
|
|
5780
5786
|
return (u = o.node.settings) == null ? void 0 : u.fixedHeader;
|
|
5781
|
-
}), r =
|
|
5787
|
+
}), r = x(() => {
|
|
5782
5788
|
var u;
|
|
5783
5789
|
return (u = o.node.settings) == null ? void 0 : u.fixedFooter;
|
|
5784
|
-
}), t =
|
|
5790
|
+
}), t = x(() => {
|
|
5785
5791
|
var u;
|
|
5786
5792
|
return (u = o.node.settings) == null ? void 0 : u.loading;
|
|
5787
|
-
}), e =
|
|
5793
|
+
}), e = x(() => {
|
|
5788
5794
|
var u;
|
|
5789
5795
|
return (u = o.node.settings) == null ? void 0 : u.multiSort;
|
|
5790
|
-
}), i =
|
|
5796
|
+
}), i = x(() => l.value ? "dark" : "light"), s = x(() => {
|
|
5791
5797
|
var a;
|
|
5792
5798
|
const u = [];
|
|
5793
|
-
return (((a = o.node.slots) == null ? void 0 : a.items) ?? []).forEach((
|
|
5794
|
-
|
|
5799
|
+
return (((a = o.node.slots) == null ? void 0 : a.items) ?? []).forEach((f) => {
|
|
5800
|
+
f.column && f.comp && u.push(f);
|
|
5795
5801
|
}), u;
|
|
5796
5802
|
});
|
|
5797
5803
|
return (u, c) => {
|
|
5798
5804
|
const a = ie("v-data-table");
|
|
5799
5805
|
return G(), Q(a, {
|
|
5800
5806
|
width: h.value,
|
|
5801
|
-
height:
|
|
5802
|
-
headers:
|
|
5803
|
-
items:
|
|
5807
|
+
height: b.value,
|
|
5808
|
+
headers: g.value,
|
|
5809
|
+
items: y.value,
|
|
5804
5810
|
density: O.value,
|
|
5805
|
-
"fixed-header":
|
|
5811
|
+
"fixed-header": T.value,
|
|
5806
5812
|
"fixed-footer": r.value,
|
|
5807
5813
|
loading: t.value,
|
|
5808
5814
|
"multi-sort": e.value,
|
|
5809
5815
|
theme: i.value
|
|
5810
|
-
},
|
|
5811
|
-
La(s.value, (
|
|
5812
|
-
name: `item.${
|
|
5813
|
-
fn: ee(({ value:
|
|
5816
|
+
}, Qt({ _: 2 }, [
|
|
5817
|
+
La(s.value, (f, v) => ({
|
|
5818
|
+
name: `item.${f.column}`,
|
|
5819
|
+
fn: ee(({ value: _ }) => [
|
|
5814
5820
|
Z(fe, {
|
|
5815
|
-
"ref-context": { refid:
|
|
5816
|
-
state: { value:
|
|
5821
|
+
"ref-context": { refid: f.comp },
|
|
5822
|
+
state: { value: _ }
|
|
5817
5823
|
}, null, 8, ["ref-context", "state"])
|
|
5818
5824
|
])
|
|
5819
5825
|
}))
|
|
@@ -5839,7 +5845,7 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5839
5845
|
validator: (n) => n === "end",
|
|
5840
5846
|
default: "end"
|
|
5841
5847
|
}
|
|
5842
|
-
],
|
|
5848
|
+
], Kn = {
|
|
5843
5849
|
key: "size",
|
|
5844
5850
|
name: "x-runtime-lib.size",
|
|
5845
5851
|
children: [
|
|
@@ -5858,7 +5864,7 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5858
5864
|
default: ""
|
|
5859
5865
|
}
|
|
5860
5866
|
]
|
|
5861
|
-
},
|
|
5867
|
+
}, qn = {
|
|
5862
5868
|
key: "settings",
|
|
5863
5869
|
name: "x-runtime-lib.settings",
|
|
5864
5870
|
children: [
|
|
@@ -5932,7 +5938,7 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5932
5938
|
key: "density",
|
|
5933
5939
|
name: "x-runtime-lib.density",
|
|
5934
5940
|
ui: "select",
|
|
5935
|
-
items:
|
|
5941
|
+
items: Yi,
|
|
5936
5942
|
default: "default"
|
|
5937
5943
|
},
|
|
5938
5944
|
{
|
|
@@ -5960,7 +5966,7 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5960
5966
|
default: !1
|
|
5961
5967
|
}
|
|
5962
5968
|
]
|
|
5963
|
-
},
|
|
5969
|
+
}, Zn = {
|
|
5964
5970
|
key: "slots",
|
|
5965
5971
|
name: "x-runtime-lib.slots",
|
|
5966
5972
|
children: [
|
|
@@ -5986,23 +5992,23 @@ const fe = /* @__PURE__ */ oe({
|
|
|
5986
5992
|
}
|
|
5987
5993
|
]
|
|
5988
5994
|
}, fc = {
|
|
5989
|
-
key:
|
|
5995
|
+
key: lr,
|
|
5990
5996
|
name: "x-runtime-lib.dataTable",
|
|
5991
5997
|
comp: lc,
|
|
5992
5998
|
slots: [],
|
|
5993
5999
|
events: [],
|
|
5994
6000
|
methods: [],
|
|
5995
6001
|
props: {
|
|
5996
|
-
pageCommon: [F,
|
|
5997
|
-
compCommon: [F,
|
|
6002
|
+
pageCommon: [F, Kn, qn, Zn],
|
|
6003
|
+
compCommon: [F, Kn, qn, Zn]
|
|
5998
6004
|
}
|
|
5999
6005
|
};
|
|
6000
6006
|
function pc(n, o) {
|
|
6001
|
-
const l =
|
|
6007
|
+
const l = x(() => n.node.basic.id), h = x(() => `callMethod@${l.value}`);
|
|
6002
6008
|
Ma(() => {
|
|
6003
|
-
|
|
6004
|
-
}),
|
|
6005
|
-
|
|
6009
|
+
Fe.on(h.value, o);
|
|
6010
|
+
}), br(() => {
|
|
6011
|
+
Fe.off(h.value, o);
|
|
6006
6012
|
});
|
|
6007
6013
|
}
|
|
6008
6014
|
const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
@@ -6012,34 +6018,34 @@ const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
|
6012
6018
|
outer: { type: Boolean }
|
|
6013
6019
|
},
|
|
6014
6020
|
setup(n) {
|
|
6015
|
-
const o = n, l = he(), h =
|
|
6016
|
-
var
|
|
6017
|
-
return (
|
|
6018
|
-
}), { open:
|
|
6019
|
-
return pc(o, (
|
|
6020
|
-
const { name: O } =
|
|
6021
|
-
O === "open" ?
|
|
6022
|
-
}), (
|
|
6023
|
-
const
|
|
6024
|
-
return G(), Q(
|
|
6025
|
-
modelValue:
|
|
6026
|
-
"onUpdate:modelValue": O[0] || (O[0] = (r) => Fa(
|
|
6021
|
+
const o = n, l = he(), h = x(() => {
|
|
6022
|
+
var y;
|
|
6023
|
+
return (y = o.node.basic) == null ? void 0 : y.id;
|
|
6024
|
+
}), { open: b } = za(`runtimeDlg/${h.value}`);
|
|
6025
|
+
return pc(o, (y) => {
|
|
6026
|
+
const { name: O } = y;
|
|
6027
|
+
O === "open" ? b.value = !0 : O === "close" && (b.value = !1);
|
|
6028
|
+
}), (y, O) => {
|
|
6029
|
+
const T = ie("v-dialog");
|
|
6030
|
+
return G(), Q(T, {
|
|
6031
|
+
modelValue: Me(b),
|
|
6032
|
+
"onUpdate:modelValue": O[0] || (O[0] = (r) => Fa(b) ? b.value = r : null)
|
|
6027
6033
|
}, {
|
|
6028
6034
|
activator: ee(() => [
|
|
6029
|
-
|
|
6035
|
+
Me(l) === "editor" ? (G(), Be("div", {
|
|
6030
6036
|
key: 0,
|
|
6031
6037
|
id: `__node__@${h.value}`
|
|
6032
6038
|
}, null, 8, dc)) : Ua("", !0)
|
|
6033
6039
|
]),
|
|
6034
6040
|
default: ee(() => [
|
|
6035
|
-
|
|
6041
|
+
_r(y.$slots, "default")
|
|
6036
6042
|
]),
|
|
6037
6043
|
_: 3
|
|
6038
6044
|
}, 8, ["modelValue"]);
|
|
6039
6045
|
};
|
|
6040
6046
|
}
|
|
6041
6047
|
}), vc = {
|
|
6042
|
-
key:
|
|
6048
|
+
key: cr,
|
|
6043
6049
|
name: "x-runtime-lib.dialog",
|
|
6044
6050
|
comp: hc,
|
|
6045
6051
|
slots: [
|
|
@@ -6068,7 +6074,7 @@ const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
|
6068
6074
|
compCommon: [F]
|
|
6069
6075
|
},
|
|
6070
6076
|
teleport: !0
|
|
6071
|
-
},
|
|
6077
|
+
}, Qn = {
|
|
6072
6078
|
key: "globalSettings",
|
|
6073
6079
|
name: "x-runtime-lib.globalSettings",
|
|
6074
6080
|
children: [
|
|
@@ -6079,8 +6085,8 @@ const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
|
6079
6085
|
default: "#00000000"
|
|
6080
6086
|
}
|
|
6081
6087
|
]
|
|
6082
|
-
},
|
|
6083
|
-
key:
|
|
6088
|
+
}, yc = {
|
|
6089
|
+
key: fr,
|
|
6084
6090
|
name: "x-runtime-lib.globality",
|
|
6085
6091
|
comp: null,
|
|
6086
6092
|
slots: [
|
|
@@ -6122,61 +6128,61 @@ const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
|
6122
6128
|
],
|
|
6123
6129
|
methods: [],
|
|
6124
6130
|
props: {
|
|
6125
|
-
pageCommon: [
|
|
6126
|
-
compCommon: [
|
|
6131
|
+
pageCommon: [Qn],
|
|
6132
|
+
compCommon: [Qn]
|
|
6127
6133
|
},
|
|
6128
6134
|
internal: !0
|
|
6129
|
-
},
|
|
6135
|
+
}, mc = { key: 0 }, _c = /* @__PURE__ */ oe({
|
|
6130
6136
|
__name: "index",
|
|
6131
6137
|
props: {
|
|
6132
6138
|
node: {},
|
|
6133
6139
|
outer: { type: Boolean }
|
|
6134
6140
|
},
|
|
6135
6141
|
setup(n) {
|
|
6136
|
-
const o = n, l = he(), h =
|
|
6142
|
+
const o = n, l = he(), h = Ge(), b = x(() => {
|
|
6137
6143
|
var e;
|
|
6138
6144
|
return (e = o.node.settings) == null ? void 0 : e.value;
|
|
6139
|
-
}),
|
|
6145
|
+
}), g = x(() => {
|
|
6140
6146
|
var e;
|
|
6141
6147
|
return (e = o.node.settings) == null ? void 0 : e.label;
|
|
6142
|
-
}),
|
|
6148
|
+
}), y = x(() => {
|
|
6143
6149
|
var e;
|
|
6144
6150
|
return (e = o.node.settings) == null ? void 0 : e.placeholder;
|
|
6145
|
-
}), O =
|
|
6151
|
+
}), O = x(() => {
|
|
6146
6152
|
var e;
|
|
6147
6153
|
return (e = o.node.settings) == null ? void 0 : e.hideDetails;
|
|
6148
|
-
}),
|
|
6154
|
+
}), T = x(() => {
|
|
6149
6155
|
var e;
|
|
6150
6156
|
return (e = o.node.settings) == null ? void 0 : e.singleLine;
|
|
6151
|
-
}), r =
|
|
6157
|
+
}), r = x(() => {
|
|
6152
6158
|
var e;
|
|
6153
6159
|
return l !== "runtime" ? !0 : (e = o.node.settings) == null ? void 0 : e.readonly;
|
|
6154
|
-
}), t =
|
|
6160
|
+
}), t = x(() => h.value ? "dark" : "light");
|
|
6155
6161
|
return (e, i) => {
|
|
6156
6162
|
const s = ie("v-number-input");
|
|
6157
|
-
return
|
|
6163
|
+
return Me(l) === "editor" ? (G(), Be("div", mc, [
|
|
6158
6164
|
Z(s, {
|
|
6159
|
-
"model-value":
|
|
6160
|
-
label:
|
|
6161
|
-
placeholder:
|
|
6165
|
+
"model-value": b.value,
|
|
6166
|
+
label: g.value,
|
|
6167
|
+
placeholder: y.value,
|
|
6162
6168
|
"hide-details": O.value,
|
|
6163
|
-
"single-line":
|
|
6169
|
+
"single-line": T.value,
|
|
6164
6170
|
readonly: r.value,
|
|
6165
6171
|
theme: t.value
|
|
6166
6172
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
6167
6173
|
])) : (G(), Q(s, {
|
|
6168
6174
|
key: 1,
|
|
6169
|
-
"model-value":
|
|
6170
|
-
label:
|
|
6171
|
-
placeholder:
|
|
6175
|
+
"model-value": b.value,
|
|
6176
|
+
label: g.value,
|
|
6177
|
+
placeholder: y.value,
|
|
6172
6178
|
"hide-details": O.value,
|
|
6173
|
-
"single-line":
|
|
6179
|
+
"single-line": T.value,
|
|
6174
6180
|
readonly: r.value,
|
|
6175
6181
|
theme: t.value
|
|
6176
6182
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"]));
|
|
6177
6183
|
};
|
|
6178
6184
|
}
|
|
6179
|
-
}),
|
|
6185
|
+
}), ei = {
|
|
6180
6186
|
key: "settings",
|
|
6181
6187
|
name: "x-runtime-lib.settings",
|
|
6182
6188
|
children: [
|
|
@@ -6222,23 +6228,23 @@ const dc = ["id"], hc = /* @__PURE__ */ oe({
|
|
|
6222
6228
|
}
|
|
6223
6229
|
]
|
|
6224
6230
|
}, bc = {
|
|
6225
|
-
key:
|
|
6231
|
+
key: pr,
|
|
6226
6232
|
name: "x-runtime-lib.numberInput",
|
|
6227
6233
|
comp: _c,
|
|
6228
6234
|
slots: [],
|
|
6229
6235
|
events: [],
|
|
6230
6236
|
methods: [],
|
|
6231
6237
|
props: {
|
|
6232
|
-
pageCommon: [F,
|
|
6233
|
-
compCommon: [F,
|
|
6238
|
+
pageCommon: [F, ei],
|
|
6239
|
+
compCommon: [F, ei]
|
|
6234
6240
|
}
|
|
6235
6241
|
}, gc = {};
|
|
6236
6242
|
function Ec(n, o) {
|
|
6237
6243
|
const l = ie("v-rating");
|
|
6238
6244
|
return G(), Q(l);
|
|
6239
6245
|
}
|
|
6240
|
-
const Rc = /* @__PURE__ */
|
|
6241
|
-
key:
|
|
6246
|
+
const Rc = /* @__PURE__ */ xt(gc, [["render", Ec]]), Oc = {
|
|
6247
|
+
key: dr,
|
|
6242
6248
|
name: "x-runtime-lib.rating",
|
|
6243
6249
|
comp: Rc,
|
|
6244
6250
|
slots: [],
|
|
@@ -6257,74 +6263,75 @@ const Rc = /* @__PURE__ */ Tt(gc, [["render", Ec]]), Oc = {
|
|
|
6257
6263
|
outer: { type: Boolean }
|
|
6258
6264
|
},
|
|
6259
6265
|
setup(n) {
|
|
6260
|
-
const { t: o } =
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6266
|
+
const { t: o } = ui(), l = n, h = Bi(), b = he(), g = $i(), y = Cr(), O = kr(), T = Vi(), r = Et(-1), t = Et(), e = {};
|
|
6267
|
+
Gi(e), oi(() => {
|
|
6268
|
+
const _ = T[l.refContext.refid];
|
|
6269
|
+
if (!_) {
|
|
6270
|
+
r.value = -1, t.value = void 0, e.interpreter && (Le(e.interpreter), e.interpreter = void 0), Fe.emit("compNotAvail", l.refContext.refid);
|
|
6271
|
+
return;
|
|
6272
|
+
}
|
|
6273
|
+
if (r.value === _.dataSeq)
|
|
6274
|
+
return;
|
|
6275
|
+
r.value = _.dataSeq, t.value = _e(_.data), e.interpreter && Le(e.interpreter);
|
|
6276
|
+
const N = t.value, R = N.code.script;
|
|
6277
|
+
R && (e.interpreter = Wi({ env: h, type: y, data: N }, R));
|
|
6278
|
+
}), br(() => {
|
|
6279
|
+
e.interpreter && (Le(e.interpreter), e.interpreter = void 0);
|
|
6273
6280
|
});
|
|
6274
|
-
const { applySize:
|
|
6275
|
-
const
|
|
6276
|
-
return
|
|
6281
|
+
const { applySize: i } = zi(b, g, l), s = x(() => {
|
|
6282
|
+
const _ = {}, N = O.type;
|
|
6283
|
+
return y === "page" ? N === "common" ? i(_) : console.assert(!1) : y === "comp" && N === "common" ? i(_) : console.assert(!1), _;
|
|
6277
6284
|
});
|
|
6278
|
-
function
|
|
6279
|
-
const
|
|
6280
|
-
return
|
|
6285
|
+
function u(_) {
|
|
6286
|
+
const N = Ar[O.version].refKey, R = xe[N];
|
|
6287
|
+
return R ? J(R.comp, {
|
|
6281
6288
|
refContext: {
|
|
6282
6289
|
parent: l.refContext,
|
|
6283
|
-
refid:
|
|
6290
|
+
refid: _.ref.id
|
|
6284
6291
|
},
|
|
6285
|
-
node:
|
|
6286
|
-
}) : (console.assert(!1, `ref element not found key=${
|
|
6292
|
+
node: _
|
|
6293
|
+
}) : (console.assert(!1, `ref element not found key=${N}`), J("div", `ref element not found key=${N}`));
|
|
6287
6294
|
}
|
|
6288
|
-
function
|
|
6289
|
-
var
|
|
6290
|
-
const
|
|
6291
|
-
if (!
|
|
6292
|
-
return console.assert(!1, `element not found key=${
|
|
6293
|
-
const
|
|
6294
|
-
return
|
|
6295
|
-
const
|
|
6296
|
-
|
|
6297
|
-
})), J(
|
|
6295
|
+
function c(_) {
|
|
6296
|
+
var S;
|
|
6297
|
+
const N = xe[_.basic.key];
|
|
6298
|
+
if (!N)
|
|
6299
|
+
return console.assert(!1, `element not found key=${_.basic.key}`), J("div", `element not found key=${_.basic.key}`);
|
|
6300
|
+
const R = [];
|
|
6301
|
+
return N.slots.some((k) => k.key === "default") && ((S = _.children) == null || S.forEach((k) => {
|
|
6302
|
+
const L = a(k);
|
|
6303
|
+
R.push(L);
|
|
6304
|
+
})), J(N.comp, { node: _ }, { default: () => R });
|
|
6298
6305
|
}
|
|
6299
|
-
function
|
|
6300
|
-
return
|
|
6306
|
+
function a(_) {
|
|
6307
|
+
return _.ref ? u(_) : c(_);
|
|
6301
6308
|
}
|
|
6302
|
-
function
|
|
6303
|
-
let
|
|
6304
|
-
for (;
|
|
6305
|
-
if (
|
|
6309
|
+
function f() {
|
|
6310
|
+
let _ = l.refContext.parent;
|
|
6311
|
+
for (; _; ) {
|
|
6312
|
+
if (_.refid === l.refContext.refid)
|
|
6306
6313
|
return !0;
|
|
6307
|
-
|
|
6314
|
+
_ = _.parent;
|
|
6308
6315
|
}
|
|
6309
6316
|
return !1;
|
|
6310
6317
|
}
|
|
6311
|
-
const
|
|
6312
|
-
if (
|
|
6318
|
+
const v = () => {
|
|
6319
|
+
if (f())
|
|
6313
6320
|
return J("div", { id: l.id }, o("x-runtime-lib.circularRef"));
|
|
6314
|
-
if (!
|
|
6321
|
+
if (!t.value)
|
|
6315
6322
|
return J("div", { id: l.id }, o("x-runtime-lib.compNotAvail"));
|
|
6316
|
-
const
|
|
6317
|
-
if (
|
|
6318
|
-
const
|
|
6319
|
-
return
|
|
6320
|
-
|
|
6321
|
-
}), J("div", { id: l.id, style:
|
|
6323
|
+
const _ = t.value.type;
|
|
6324
|
+
if (_ === "common") {
|
|
6325
|
+
const N = [];
|
|
6326
|
+
return t.value.view.nodes.forEach((R) => {
|
|
6327
|
+
N.push(a(R));
|
|
6328
|
+
}), J("div", { id: l.id, style: s.value }, N);
|
|
6322
6329
|
} else
|
|
6323
|
-
return console.assert(!1, `invalid subtype=${
|
|
6330
|
+
return console.assert(!1, `invalid subtype=${_}`), J("div", { id: l.id }, `invalid subtype=${_}`);
|
|
6324
6331
|
};
|
|
6325
|
-
return (
|
|
6332
|
+
return (_, N) => (G(), Q(v));
|
|
6326
6333
|
}
|
|
6327
|
-
}),
|
|
6334
|
+
}), ti = {
|
|
6328
6335
|
key: "ref",
|
|
6329
6336
|
name: "x-runtime-lib.ref",
|
|
6330
6337
|
children: [
|
|
@@ -6336,15 +6343,15 @@ const Rc = /* @__PURE__ */ Tt(gc, [["render", Ec]]), Oc = {
|
|
|
6336
6343
|
}
|
|
6337
6344
|
]
|
|
6338
6345
|
}, Nc = {
|
|
6339
|
-
key:
|
|
6346
|
+
key: gt,
|
|
6340
6347
|
name: "x-runtime-lib.ref",
|
|
6341
6348
|
comp: Tc,
|
|
6342
6349
|
slots: [],
|
|
6343
6350
|
events: [],
|
|
6344
6351
|
methods: [],
|
|
6345
6352
|
props: {
|
|
6346
|
-
pageCommon: [F,
|
|
6347
|
-
compCommon: [F,
|
|
6353
|
+
pageCommon: [F, Rt, ti],
|
|
6354
|
+
compCommon: [F, Rt, ti]
|
|
6348
6355
|
}
|
|
6349
6356
|
}, xc = { key: 0 }, Sc = /* @__PURE__ */ oe({
|
|
6350
6357
|
__name: "index",
|
|
@@ -6353,50 +6360,50 @@ const Rc = /* @__PURE__ */ Tt(gc, [["render", Ec]]), Oc = {
|
|
|
6353
6360
|
outer: { type: Boolean }
|
|
6354
6361
|
},
|
|
6355
6362
|
setup(n) {
|
|
6356
|
-
const o = n, l = he(), h =
|
|
6363
|
+
const o = n, l = he(), h = Ge(), b = x(() => {
|
|
6357
6364
|
var e;
|
|
6358
6365
|
return (e = o.node.settings) == null ? void 0 : e.value;
|
|
6359
|
-
}),
|
|
6366
|
+
}), g = x(() => {
|
|
6360
6367
|
var e;
|
|
6361
6368
|
return (e = o.node.settings) == null ? void 0 : e.label;
|
|
6362
|
-
}),
|
|
6369
|
+
}), y = x(() => {
|
|
6363
6370
|
var e;
|
|
6364
6371
|
return (e = o.node.settings) == null ? void 0 : e.placeholder;
|
|
6365
|
-
}), O =
|
|
6372
|
+
}), O = x(() => {
|
|
6366
6373
|
var e;
|
|
6367
6374
|
return (e = o.node.settings) == null ? void 0 : e.hideDetails;
|
|
6368
|
-
}),
|
|
6375
|
+
}), T = x(() => {
|
|
6369
6376
|
var e;
|
|
6370
6377
|
return (e = o.node.settings) == null ? void 0 : e.singleLine;
|
|
6371
|
-
}), r =
|
|
6378
|
+
}), r = x(() => {
|
|
6372
6379
|
var e;
|
|
6373
6380
|
return l !== "runtime" ? !0 : (e = o.node.settings) == null ? void 0 : e.readonly;
|
|
6374
|
-
}), t =
|
|
6381
|
+
}), t = x(() => h.value ? "dark" : "light");
|
|
6375
6382
|
return (e, i) => {
|
|
6376
6383
|
const s = ie("v-select");
|
|
6377
|
-
return
|
|
6384
|
+
return Me(l) === "editor" ? (G(), Be("div", xc, [
|
|
6378
6385
|
Z(s, {
|
|
6379
|
-
"model-value":
|
|
6380
|
-
label:
|
|
6381
|
-
placeholder:
|
|
6386
|
+
"model-value": b.value,
|
|
6387
|
+
label: g.value,
|
|
6388
|
+
placeholder: y.value,
|
|
6382
6389
|
"hide-details": O.value,
|
|
6383
|
-
"single-line":
|
|
6390
|
+
"single-line": T.value,
|
|
6384
6391
|
readonly: r.value,
|
|
6385
6392
|
theme: t.value
|
|
6386
6393
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
6387
6394
|
])) : (G(), Q(s, {
|
|
6388
6395
|
key: 1,
|
|
6389
|
-
"model-value":
|
|
6390
|
-
label:
|
|
6391
|
-
placeholder:
|
|
6396
|
+
"model-value": b.value,
|
|
6397
|
+
label: g.value,
|
|
6398
|
+
placeholder: y.value,
|
|
6392
6399
|
"hide-details": O.value,
|
|
6393
|
-
"single-line":
|
|
6400
|
+
"single-line": T.value,
|
|
6394
6401
|
readonly: r.value,
|
|
6395
6402
|
theme: t.value
|
|
6396
6403
|
}, null, 8, ["model-value", "label", "placeholder", "hide-details", "single-line", "readonly", "theme"]));
|
|
6397
6404
|
};
|
|
6398
6405
|
}
|
|
6399
|
-
}),
|
|
6406
|
+
}), ri = {
|
|
6400
6407
|
key: "settings",
|
|
6401
6408
|
name: "x-runtime-lib.settings",
|
|
6402
6409
|
children: [
|
|
@@ -6438,23 +6445,23 @@ const Rc = /* @__PURE__ */ Tt(gc, [["render", Ec]]), Oc = {
|
|
|
6438
6445
|
}
|
|
6439
6446
|
]
|
|
6440
6447
|
}, wc = {
|
|
6441
|
-
key:
|
|
6448
|
+
key: hr,
|
|
6442
6449
|
name: "x-runtime-lib.select",
|
|
6443
6450
|
comp: Sc,
|
|
6444
6451
|
slots: [],
|
|
6445
6452
|
events: [],
|
|
6446
6453
|
methods: [],
|
|
6447
6454
|
props: {
|
|
6448
|
-
pageCommon: [F,
|
|
6449
|
-
compCommon: [F,
|
|
6455
|
+
pageCommon: [F, ri],
|
|
6456
|
+
compCommon: [F, ri]
|
|
6450
6457
|
}
|
|
6451
6458
|
}, Pc = {};
|
|
6452
6459
|
function Cc(n, o) {
|
|
6453
6460
|
const l = ie("v-text-area");
|
|
6454
6461
|
return G(), Q(l);
|
|
6455
6462
|
}
|
|
6456
|
-
const kc = /* @__PURE__ */
|
|
6457
|
-
key:
|
|
6463
|
+
const kc = /* @__PURE__ */ xt(Pc, [["render", Cc]]), Ac = {
|
|
6464
|
+
key: vr,
|
|
6458
6465
|
name: "x-runtime-lib.textArea",
|
|
6459
6466
|
comp: kc,
|
|
6460
6467
|
slots: [],
|
|
@@ -6471,45 +6478,45 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6471
6478
|
outer: { type: Boolean }
|
|
6472
6479
|
},
|
|
6473
6480
|
setup(n) {
|
|
6474
|
-
const o = n, l = he(), h =
|
|
6481
|
+
const o = n, l = he(), h = Ge(), b = x(() => {
|
|
6475
6482
|
var u;
|
|
6476
6483
|
return (u = o.node.settings) == null ? void 0 : u.label;
|
|
6477
|
-
}),
|
|
6484
|
+
}), g = x(() => {
|
|
6478
6485
|
var u;
|
|
6479
6486
|
return (u = o.node.settings) == null ? void 0 : u.placeholder;
|
|
6480
|
-
}),
|
|
6487
|
+
}), y = x(() => {
|
|
6481
6488
|
var u;
|
|
6482
6489
|
return (u = o.node.settings) == null ? void 0 : u.hideDetails;
|
|
6483
|
-
}), O =
|
|
6490
|
+
}), O = x(() => {
|
|
6484
6491
|
var u;
|
|
6485
6492
|
return (u = o.node.settings) == null ? void 0 : u.singleLine;
|
|
6486
|
-
}),
|
|
6493
|
+
}), T = x(() => {
|
|
6487
6494
|
var u;
|
|
6488
6495
|
return l !== "runtime" ? !0 : (u = o.node.settings) == null ? void 0 : u.readonly;
|
|
6489
|
-
}), r =
|
|
6496
|
+
}), r = x(() => h.value ? "dark" : "light"), t = x(() => {
|
|
6490
6497
|
var u;
|
|
6491
6498
|
return (u = o.node.slots) == null ? void 0 : u.append;
|
|
6492
|
-
}), e =
|
|
6499
|
+
}), e = x(() => {
|
|
6493
6500
|
var u;
|
|
6494
6501
|
return (u = o.node.slots) == null ? void 0 : u.appendInner;
|
|
6495
|
-
}), i =
|
|
6502
|
+
}), i = x(() => {
|
|
6496
6503
|
var u;
|
|
6497
6504
|
return (u = o.node.slots) == null ? void 0 : u.prepend;
|
|
6498
|
-
}), s =
|
|
6505
|
+
}), s = x(() => {
|
|
6499
6506
|
var u;
|
|
6500
6507
|
return (u = o.node.slots) == null ? void 0 : u.prependInner;
|
|
6501
6508
|
});
|
|
6502
6509
|
return (u, c) => {
|
|
6503
6510
|
const a = ie("v-text-field");
|
|
6504
|
-
return
|
|
6511
|
+
return Me(l) === "editor" ? (G(), Be("div", Ic, [
|
|
6505
6512
|
Z(a, {
|
|
6506
|
-
label:
|
|
6507
|
-
placeholder:
|
|
6508
|
-
"hide-details":
|
|
6513
|
+
label: b.value,
|
|
6514
|
+
placeholder: g.value,
|
|
6515
|
+
"hide-details": y.value,
|
|
6509
6516
|
"single-line": O.value,
|
|
6510
|
-
readonly:
|
|
6517
|
+
readonly: T.value,
|
|
6511
6518
|
theme: r.value
|
|
6512
|
-
},
|
|
6519
|
+
}, Qt({ _: 2 }, [
|
|
6513
6520
|
t.value ? {
|
|
6514
6521
|
name: "append",
|
|
6515
6522
|
fn: ee(() => [
|
|
@@ -6553,13 +6560,13 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6553
6560
|
]), 1032, ["label", "placeholder", "hide-details", "single-line", "readonly", "theme"])
|
|
6554
6561
|
])) : (G(), Q(a, {
|
|
6555
6562
|
key: 1,
|
|
6556
|
-
label:
|
|
6557
|
-
placeholder:
|
|
6558
|
-
"hide-details":
|
|
6563
|
+
label: b.value,
|
|
6564
|
+
placeholder: g.value,
|
|
6565
|
+
"hide-details": y.value,
|
|
6559
6566
|
"single-line": O.value,
|
|
6560
|
-
readonly:
|
|
6567
|
+
readonly: T.value,
|
|
6561
6568
|
theme: r.value
|
|
6562
|
-
},
|
|
6569
|
+
}, Qt({ _: 2 }, [
|
|
6563
6570
|
t.value ? {
|
|
6564
6571
|
name: "append",
|
|
6565
6572
|
fn: ee(() => [
|
|
@@ -6603,7 +6610,7 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6603
6610
|
]), 1032, ["label", "placeholder", "hide-details", "single-line", "readonly", "theme"]));
|
|
6604
6611
|
};
|
|
6605
6612
|
}
|
|
6606
|
-
}),
|
|
6613
|
+
}), ni = {
|
|
6607
6614
|
key: "settings",
|
|
6608
6615
|
name: "x-runtime-lib.settings",
|
|
6609
6616
|
children: [
|
|
@@ -6638,7 +6645,7 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6638
6645
|
default: !1
|
|
6639
6646
|
}
|
|
6640
6647
|
]
|
|
6641
|
-
},
|
|
6648
|
+
}, ii = {
|
|
6642
6649
|
key: "slots",
|
|
6643
6650
|
name: "x-runtime-lib.slots",
|
|
6644
6651
|
children: [
|
|
@@ -6668,7 +6675,7 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6668
6675
|
}
|
|
6669
6676
|
]
|
|
6670
6677
|
}, Lc = {
|
|
6671
|
-
key:
|
|
6678
|
+
key: yr,
|
|
6672
6679
|
name: "x-runtime-lib.textField",
|
|
6673
6680
|
comp: Dc,
|
|
6674
6681
|
slots: [
|
|
@@ -6692,16 +6699,14 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6692
6699
|
events: [],
|
|
6693
6700
|
methods: [],
|
|
6694
6701
|
props: {
|
|
6695
|
-
pageCommon: [F,
|
|
6696
|
-
compCommon: [F,
|
|
6702
|
+
pageCommon: [F, ni, ii],
|
|
6703
|
+
compCommon: [F, ni, ii]
|
|
6697
6704
|
}
|
|
6698
6705
|
}, Mc = {
|
|
6699
6706
|
version: "v1",
|
|
6700
|
-
globalityKey:
|
|
6701
|
-
refKey:
|
|
6707
|
+
globalityKey: fr,
|
|
6708
|
+
refKey: gt,
|
|
6702
6709
|
elements: /* @__PURE__ */ new Set([
|
|
6703
|
-
rr,
|
|
6704
|
-
nr,
|
|
6705
6710
|
ir,
|
|
6706
6711
|
ar,
|
|
6707
6712
|
or,
|
|
@@ -6710,33 +6715,35 @@ const kc = /* @__PURE__ */ Tt(Pc, [["render", Cc]]), Ac = {
|
|
|
6710
6715
|
lr,
|
|
6711
6716
|
cr,
|
|
6712
6717
|
fr,
|
|
6713
|
-
bt,
|
|
6714
6718
|
pr,
|
|
6715
6719
|
dr,
|
|
6716
|
-
|
|
6720
|
+
gt,
|
|
6721
|
+
hr,
|
|
6722
|
+
vr,
|
|
6723
|
+
yr
|
|
6717
6724
|
]),
|
|
6718
6725
|
groups: [
|
|
6719
6726
|
{
|
|
6720
6727
|
key: "basic",
|
|
6721
6728
|
name: "x-runtime-lib.basic",
|
|
6722
6729
|
items: [
|
|
6723
|
-
rr,
|
|
6724
|
-
nr,
|
|
6725
6730
|
ir,
|
|
6726
6731
|
ar,
|
|
6727
6732
|
or,
|
|
6728
6733
|
ur,
|
|
6729
6734
|
sr,
|
|
6735
|
+
lr,
|
|
6730
6736
|
cr,
|
|
6731
|
-
fr,
|
|
6732
|
-
bt,
|
|
6733
6737
|
pr,
|
|
6734
6738
|
dr,
|
|
6735
|
-
|
|
6739
|
+
gt,
|
|
6740
|
+
hr,
|
|
6741
|
+
vr,
|
|
6742
|
+
yr
|
|
6736
6743
|
]
|
|
6737
6744
|
}
|
|
6738
6745
|
]
|
|
6739
|
-
},
|
|
6746
|
+
}, Ar = {
|
|
6740
6747
|
v1: Mc
|
|
6741
6748
|
}, xe = {}, Fc = {
|
|
6742
6749
|
key: "add",
|
|
@@ -6758,7 +6765,7 @@ K(jl);
|
|
|
6758
6765
|
K(zl);
|
|
6759
6766
|
K(fc);
|
|
6760
6767
|
K(vc);
|
|
6761
|
-
K(
|
|
6768
|
+
K(yc);
|
|
6762
6769
|
K(bc);
|
|
6763
6770
|
K(Oc);
|
|
6764
6771
|
K(Nc);
|
|
@@ -6767,9 +6774,9 @@ K(Ac);
|
|
|
6767
6774
|
K(Lc);
|
|
6768
6775
|
const Uc = (n, o, l) => {
|
|
6769
6776
|
const h = n[o];
|
|
6770
|
-
return h ? typeof h == "function" ? h() : Promise.resolve(h) : new Promise((
|
|
6777
|
+
return h ? typeof h == "function" ? h() : Promise.resolve(h) : new Promise((b, g) => {
|
|
6771
6778
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
6772
|
-
|
|
6779
|
+
g.bind(
|
|
6773
6780
|
null,
|
|
6774
6781
|
new Error(
|
|
6775
6782
|
"Unknown variable dynamic import: " + o + (o.split("/").length !== l ? ". Note that variables only represent file names one level deep." : "")
|
|
@@ -6781,23 +6788,23 @@ const Uc = (n, o, l) => {
|
|
|
6781
6788
|
async function Qc(n) {
|
|
6782
6789
|
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;
|
|
6783
6790
|
}
|
|
6784
|
-
function ef(n, o, l, h,
|
|
6785
|
-
let
|
|
6791
|
+
function ef(n, o, l, h, b) {
|
|
6792
|
+
let g = n;
|
|
6786
6793
|
for (let O = 0; O < o.length; O++)
|
|
6787
|
-
if (
|
|
6794
|
+
if (g = g.children[o[O]], !g) {
|
|
6788
6795
|
console.assert(!1, `unpkg context failed parentKeys=${o}`);
|
|
6789
6796
|
return;
|
|
6790
6797
|
}
|
|
6791
|
-
let
|
|
6792
|
-
|
|
6798
|
+
let y = g.children[l];
|
|
6799
|
+
y ? y.dataSeq !== h && (y = {
|
|
6793
6800
|
dataSeq: h,
|
|
6794
|
-
data: _e(
|
|
6801
|
+
data: _e(b),
|
|
6795
6802
|
children: {}
|
|
6796
|
-
}) : (
|
|
6803
|
+
}) : (y = {
|
|
6797
6804
|
dataSeq: h,
|
|
6798
|
-
data: _e(
|
|
6805
|
+
data: _e(b),
|
|
6799
6806
|
children: {}
|
|
6800
|
-
},
|
|
6807
|
+
}, g.children[l] = y);
|
|
6801
6808
|
}
|
|
6802
6809
|
const tf = [
|
|
6803
6810
|
"string",
|
|
@@ -6812,35 +6819,35 @@ export {
|
|
|
6812
6819
|
xe as elements,
|
|
6813
6820
|
ef as ensureContext,
|
|
6814
6821
|
tf as fieldTypes,
|
|
6815
|
-
|
|
6822
|
+
si as genId,
|
|
6816
6823
|
Yc as getNode,
|
|
6817
|
-
|
|
6824
|
+
Vn as getPropDefault,
|
|
6818
6825
|
Rl as getPropTag,
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
Nl as injectInterpreter,
|
|
6826
|
+
Gn as initProps,
|
|
6827
|
+
Ge as injectDark,
|
|
6828
|
+
kr as injectData,
|
|
6829
|
+
Vi as injectDepends,
|
|
6830
|
+
$i as injectDevice,
|
|
6831
|
+
Bi as injectEnv,
|
|
6826
6832
|
he as injectMode,
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
gr as
|
|
6830
|
-
|
|
6833
|
+
Nl as injectSandbox,
|
|
6834
|
+
Cr as injectType,
|
|
6835
|
+
gr as isEmptyStr,
|
|
6836
|
+
Rr as isPercentStr,
|
|
6837
|
+
Er as isPixelStr,
|
|
6831
6838
|
Qc as loadLocaleMessageRuntime,
|
|
6832
|
-
|
|
6839
|
+
Kt as parsePercentStr,
|
|
6833
6840
|
Gc as parsePixelStr,
|
|
6834
|
-
|
|
6841
|
+
Ar as pkgs,
|
|
6835
6842
|
Jc as provideDark,
|
|
6836
6843
|
qc as provideData,
|
|
6837
6844
|
Zc as provideDepends,
|
|
6838
6845
|
Hc as provideDevice,
|
|
6839
6846
|
Xc as provideEnv,
|
|
6840
|
-
Vi as provideInterpreter,
|
|
6841
6847
|
Wc as provideMode,
|
|
6848
|
+
Gi as provideSandbox,
|
|
6842
6849
|
Kc as provideType,
|
|
6843
6850
|
Ol as spawnNode,
|
|
6844
|
-
|
|
6845
|
-
|
|
6851
|
+
Wi as startInterpreter,
|
|
6852
|
+
Le as stopInterpreter
|
|
6846
6853
|
};
|