x-runtime-lib 0.3.7 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var wi = Object.defineProperty;
|
|
2
2
|
var Ci = (n, s, p) => s in n ? wi(n, s, { enumerable: !0, configurable: !0, writable: !0, value: p }) : n[s] = p;
|
|
3
|
-
var wt = (n, s, p) =>
|
|
3
|
+
var wt = (n, s, p) => Ci(n, typeof s != "symbol" ? s + "" : s, p);
|
|
4
4
|
import { provide as ae, inject as oe, readonly as Be, isReactive as an, defineComponent as on, resolveComponent as Ai, openBlock as un, createBlock as sn, unref as xi, computed as le, ref as Cr, watchEffect as Ii, watch as ki, onBeforeUnmount as Di, h as Fe } from "vue";
|
|
5
5
|
import { useI18n as Fi } from "vue-i18n";
|
|
6
6
|
import { openConfirmDlg as Li, openPromptDlg as Ui, eventBus as Mi } from "x-essential-lib";
|
|
@@ -610,7 +610,7 @@ function tt(n, s, p, y, g, R) {
|
|
|
610
610
|
m = ju(n, e, N);
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
R = new Te();
|
|
613
|
+
R || (R = new Te());
|
|
614
614
|
var o = R.get(n);
|
|
615
615
|
if (o)
|
|
616
616
|
return o;
|
|
@@ -918,16 +918,14 @@ function Us(n) {
|
|
|
918
918
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
919
919
|
}
|
|
920
920
|
function Ms(n) {
|
|
921
|
-
if (n.__esModule)
|
|
922
|
-
return n;
|
|
921
|
+
if (n.__esModule) return n;
|
|
923
922
|
var s = n.default;
|
|
924
923
|
if (typeof s == "function") {
|
|
925
924
|
var p = function y() {
|
|
926
925
|
return this instanceof y ? Reflect.construct(s, arguments, this.constructor) : s.apply(this, arguments);
|
|
927
926
|
};
|
|
928
927
|
p.prototype = s.prototype;
|
|
929
|
-
} else
|
|
930
|
-
p = {};
|
|
928
|
+
} else p = {};
|
|
931
929
|
return Object.defineProperty(p, "__esModule", { value: !0 }), Object.keys(n).forEach(function(y) {
|
|
932
930
|
var g = Object.getOwnPropertyDescriptor(n, y);
|
|
933
931
|
Object.defineProperty(p, y, g.get ? g : {
|
|
@@ -2934,8 +2932,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2934
2932
|
if (i = r.legalArrayLength(i), isNaN(i) && this.throwException(this.RANGE_ERROR, "Invalid array length"), i < a)
|
|
2935
2933
|
for (l in t.properties)
|
|
2936
2934
|
l = r.legalArrayIndex(l), !isNaN(l) && i <= l && delete t.properties[l];
|
|
2937
|
-
} else
|
|
2938
|
-
isNaN(l = r.legalArrayIndex(e)) || (t.properties.length = Math.max(a, l + 1));
|
|
2935
|
+
} else isNaN(l = r.legalArrayIndex(e)) || (t.properties.length = Math.max(a, l + 1));
|
|
2939
2936
|
}
|
|
2940
2937
|
if (t.preventExtensions && !(e in t.properties)) {
|
|
2941
2938
|
u && this.throwException(this.TYPE_ERROR, "Can't add property '" + e + "', object is not extensible");
|
|
@@ -3116,35 +3113,34 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3116
3113
|
}, r.prototype.unwind = function(t, e, i) {
|
|
3117
3114
|
if (t === r.Completion.NORMAL)
|
|
3118
3115
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
3119
|
-
e:
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3116
|
+
e: for (var o = this.stateStack; o.length > 0; o.pop()) {
|
|
3117
|
+
var u = o[o.length - 1];
|
|
3118
|
+
switch (u.node.type) {
|
|
3119
|
+
case "TryStatement":
|
|
3120
|
+
u.cv = { type: t, value: e, label: i };
|
|
3121
|
+
return;
|
|
3122
|
+
case "CallExpression":
|
|
3123
|
+
case "NewExpression":
|
|
3124
|
+
if (t === r.Completion.RETURN) {
|
|
3125
|
+
u.value = e;
|
|
3125
3126
|
return;
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
} else if (t === r.Completion.BREAK || t === r.Completion.CONTINUE)
|
|
3132
|
-
throw Error("Unsyntactic break/continue not rejected by Acorn");
|
|
3133
|
-
break;
|
|
3134
|
-
case "Program":
|
|
3135
|
-
if (t === r.Completion.RETURN)
|
|
3136
|
-
return;
|
|
3137
|
-
u.done = !0;
|
|
3138
|
-
break e;
|
|
3139
|
-
}
|
|
3140
|
-
if (t === r.Completion.BREAK) {
|
|
3141
|
-
if (i ? u.labels && u.labels.indexOf(i) !== -1 : u.isLoop || u.isSwitch) {
|
|
3142
|
-
o.pop();
|
|
3127
|
+
} else if (t === r.Completion.BREAK || t === r.Completion.CONTINUE)
|
|
3128
|
+
throw Error("Unsyntactic break/continue not rejected by Acorn");
|
|
3129
|
+
break;
|
|
3130
|
+
case "Program":
|
|
3131
|
+
if (t === r.Completion.RETURN)
|
|
3143
3132
|
return;
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
return;
|
|
3133
|
+
u.done = !0;
|
|
3134
|
+
break e;
|
|
3147
3135
|
}
|
|
3136
|
+
if (t === r.Completion.BREAK) {
|
|
3137
|
+
if (i ? u.labels && u.labels.indexOf(i) !== -1 : u.isLoop || u.isSwitch) {
|
|
3138
|
+
o.pop();
|
|
3139
|
+
return;
|
|
3140
|
+
}
|
|
3141
|
+
} else if (t === r.Completion.CONTINUE && (i ? u.labels && u.labels.indexOf(i) !== -1 : u.isLoop))
|
|
3142
|
+
return;
|
|
3143
|
+
}
|
|
3148
3144
|
var c;
|
|
3149
3145
|
if (this.isa(e, this.ERROR)) {
|
|
3150
3146
|
var a = {
|
|
@@ -3632,42 +3628,41 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3632
3628
|
if (!e.doneObject_)
|
|
3633
3629
|
return e.doneObject_ = !0, e.variable_ || (e.variable_ = e.value), new r.State(i.right, e.scope);
|
|
3634
3630
|
if (e.isLoop || (e.isLoop = !0, e.object_ = e.value, e.visited_ = /* @__PURE__ */ Object.create(null)), e.name_ === void 0)
|
|
3635
|
-
e:
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
break e;
|
|
3651
|
-
}
|
|
3631
|
+
e: for (; ; ) {
|
|
3632
|
+
if (e.object_ instanceof r.Object)
|
|
3633
|
+
for (e.props_ || (e.props_ = Object.getOwnPropertyNames(e.object_.properties)); ; ) {
|
|
3634
|
+
var o = e.props_.shift();
|
|
3635
|
+
if (o === void 0)
|
|
3636
|
+
break;
|
|
3637
|
+
if (Object.prototype.hasOwnProperty.call(
|
|
3638
|
+
e.object_.properties,
|
|
3639
|
+
o
|
|
3640
|
+
) && !e.visited_[o] && (e.visited_[o] = !0, !!Object.prototype.propertyIsEnumerable.call(
|
|
3641
|
+
e.object_.properties,
|
|
3642
|
+
o
|
|
3643
|
+
))) {
|
|
3644
|
+
e.name_ = o;
|
|
3645
|
+
break e;
|
|
3652
3646
|
}
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3647
|
+
}
|
|
3648
|
+
else if (e.object_ !== null && e.object_ !== void 0)
|
|
3649
|
+
for (e.props_ || (e.props_ = Object.getOwnPropertyNames(e.object_)); ; ) {
|
|
3650
|
+
var o = e.props_.shift();
|
|
3651
|
+
if (o === void 0)
|
|
3652
|
+
break;
|
|
3653
|
+
if (e.visited_[o] = !0, !!Object.prototype.propertyIsEnumerable.call(
|
|
3654
|
+
e.object_,
|
|
3655
|
+
o
|
|
3656
|
+
)) {
|
|
3657
|
+
e.name_ = o;
|
|
3658
|
+
break e;
|
|
3665
3659
|
}
|
|
3666
|
-
if (e.object_ = this.getPrototype(e.object_), e.props_ = null, e.object_ === null) {
|
|
3667
|
-
t.pop();
|
|
3668
|
-
return;
|
|
3669
3660
|
}
|
|
3661
|
+
if (e.object_ = this.getPrototype(e.object_), e.props_ = null, e.object_ === null) {
|
|
3662
|
+
t.pop();
|
|
3663
|
+
return;
|
|
3670
3664
|
}
|
|
3665
|
+
}
|
|
3671
3666
|
if (!e.doneVariable_) {
|
|
3672
3667
|
e.doneVariable_ = !0;
|
|
3673
3668
|
var u = i.left;
|
|
@@ -4169,8 +4164,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4169
4164
|
si();
|
|
4170
4165
|
else if (h === 47)
|
|
4171
4166
|
yt();
|
|
4172
|
-
else
|
|
4173
|
-
break;
|
|
4167
|
+
else break;
|
|
4174
4168
|
} else if (f === 160)
|
|
4175
4169
|
++a;
|
|
4176
4170
|
else if (f >= 5760 && ii.test(String.fromCharCode(f)))
|
|
@@ -4207,8 +4201,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4207
4201
|
return;
|
|
4208
4202
|
}
|
|
4209
4203
|
G(zn, 2);
|
|
4210
|
-
} else
|
|
4211
|
-
h === 61 ? G(se, 2) : G(ei, 1);
|
|
4204
|
+
} else h === 61 ? G(se, 2) : G(ei, 1);
|
|
4212
4205
|
}
|
|
4213
4206
|
function vi(f) {
|
|
4214
4207
|
var h = t.charCodeAt(a + 1), d = 1;
|
|
@@ -4252,8 +4245,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4252
4245
|
return ++a, $(fr);
|
|
4253
4246
|
case 48:
|
|
4254
4247
|
var h = t.charCodeAt(a + 1);
|
|
4255
|
-
if (h === 120 || h === 88)
|
|
4256
|
-
return gi();
|
|
4248
|
+
if (h === 120 || h === 88) return gi();
|
|
4257
4249
|
case 49:
|
|
4258
4250
|
case 50:
|
|
4259
4251
|
case 51:
|
|
@@ -4292,10 +4284,8 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4292
4284
|
return !1;
|
|
4293
4285
|
}
|
|
4294
4286
|
function ge(f) {
|
|
4295
|
-
if (f ? a = l + 1 : l = a, r.locations && (_ = new ce()), f)
|
|
4296
|
-
|
|
4297
|
-
if (a >= e)
|
|
4298
|
-
return $(ut);
|
|
4287
|
+
if (f ? a = l + 1 : l = a, r.locations && (_ = new ce()), f) return br();
|
|
4288
|
+
if (a >= e) return $(ut);
|
|
4299
4289
|
var h = t.charCodeAt(a);
|
|
4300
4290
|
if (Ke(h) || h === 92)
|
|
4301
4291
|
return Or();
|
|
@@ -4342,8 +4332,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4342
4332
|
function Ae(f, h) {
|
|
4343
4333
|
for (var d = a, E = 0, C = h === void 0 ? 1 / 0 : h, S = 0; S < C; ++S) {
|
|
4344
4334
|
var A = t.charCodeAt(a), U;
|
|
4345
|
-
if (A >= 97 ? U = A - 97 + 10 : A >= 65 ? U = A - 65 + 10 : A >= 48 && A <= 57 ? U = A - 48 : U = 1 / 0, U >= f)
|
|
4346
|
-
break;
|
|
4335
|
+
if (A >= 97 ? U = A - 97 + 10 : A >= 65 ? U = A - 65 + 10 : A >= 48 && A <= 57 ? U = A - 48 : U = 1 / 0, U >= f) break;
|
|
4347
4336
|
++a, E = E * f + U;
|
|
4348
4337
|
}
|
|
4349
4338
|
return a === d || h !== void 0 && a - d !== h ? null : E;
|
|
@@ -4527,8 +4516,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4527
4516
|
case Ht:
|
|
4528
4517
|
return k(), j.push(_t), h.body = J(), j.pop(), B(ht), h.test = xe(), fe(), w(h, "DoWhileStatement");
|
|
4529
4518
|
case Zt:
|
|
4530
|
-
if (k(), j.push(_t), B(q), b === Z)
|
|
4531
|
-
return bt(h, null);
|
|
4519
|
+
if (k(), j.push(_t), B(q), b === Z) return bt(h, null);
|
|
4532
4520
|
if (b === pt) {
|
|
4533
4521
|
var S = V();
|
|
4534
4522
|
return k(), Pr(S, !0), w(S, "VariableDeclaration"), S.declarations.length === 1 && M(Xe) ? Sr(h, S) : bt(h, S);
|
|
@@ -4601,16 +4589,14 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
4601
4589
|
function Pr(f, h) {
|
|
4602
4590
|
for (f.declarations = [], f.kind = "var"; ; ) {
|
|
4603
4591
|
var d = V();
|
|
4604
|
-
if (d.id = ie(), W && ze(d.id.name) && x(d.id.start, "Binding " + d.id.name + " in strict mode"), d.init = M(pr) ? Y(!0, h) : null, f.declarations.push(w(d, "VariableDeclarator")), !M(re))
|
|
4605
|
-
break;
|
|
4592
|
+
if (d.id = ie(), W && ze(d.id.name) && x(d.id.start, "Binding " + d.id.name + " in strict mode"), d.init = M(pr) ? Y(!0, h) : null, f.declarations.push(w(d, "VariableDeclarator")), !M(re)) break;
|
|
4606
4593
|
}
|
|
4607
4594
|
}
|
|
4608
4595
|
function Y(f, h) {
|
|
4609
4596
|
var d = mt(h);
|
|
4610
4597
|
if (!f && b === re) {
|
|
4611
4598
|
var E = ne(d);
|
|
4612
|
-
for (E.expressions = [d]; M(re); )
|
|
4613
|
-
E.expressions.push(mt(h));
|
|
4599
|
+
for (E.expressions = [d]; M(re); ) E.expressions.push(mt(h));
|
|
4614
4600
|
return w(E, "SequenceExpression");
|
|
4615
4601
|
}
|
|
4616
4602
|
return d;
|
|
@@ -5263,14 +5249,21 @@ const Zs = /* @__PURE__ */ on({
|
|
|
5263
5249
|
btn_v1: ks,
|
|
5264
5250
|
globality_v1: Ds,
|
|
5265
5251
|
ref_v1: tc
|
|
5266
|
-
}, rc = (n, s) => {
|
|
5267
|
-
const
|
|
5268
|
-
return
|
|
5269
|
-
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
5252
|
+
}, rc = (n, s, p) => {
|
|
5253
|
+
const y = n[s];
|
|
5254
|
+
return y ? typeof y == "function" ? y() : Promise.resolve(y) : new Promise((g, R) => {
|
|
5255
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
5256
|
+
R.bind(
|
|
5257
|
+
null,
|
|
5258
|
+
new Error(
|
|
5259
|
+
"Unknown variable dynamic import: " + s + (s.split("/").length !== p ? ". Note that variables only represent file names one level deep." : "")
|
|
5260
|
+
)
|
|
5261
|
+
)
|
|
5262
|
+
);
|
|
5270
5263
|
});
|
|
5271
5264
|
};
|
|
5272
5265
|
async function gc(n) {
|
|
5273
|
-
return (await rc(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./en-kzjkkzqt.js"), "./locales/zhHans/index.ts": () => import("./zhHans-gscwf2xh.js") }), `./locales/${n}/index.ts
|
|
5266
|
+
return (await rc(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./en-kzjkkzqt.js"), "./locales/zhHans/index.ts": () => import("./zhHans-gscwf2xh.js") }), `./locales/${n}/index.ts`, 4)).default;
|
|
5274
5267
|
}
|
|
5275
5268
|
export {
|
|
5276
5269
|
cc as duplicateNode,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-runtime-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -24,31 +24,31 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"js-interpreter": "^5.1.2",
|
|
26
26
|
"lodash-es": "^4.17.21",
|
|
27
|
-
"x-essential-lib": "^0.
|
|
27
|
+
"x-essential-lib": "^0.6.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"vue": "^3.4.
|
|
30
|
+
"vue": "^3.4.31",
|
|
31
31
|
"vue-i18n": "^9.13.1",
|
|
32
|
-
"vuetify": "^3.6.
|
|
32
|
+
"vuetify": "^3.6.12"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@rushstack/eslint-patch": "^1.
|
|
35
|
+
"@rushstack/eslint-patch": "^1.10.3",
|
|
36
36
|
"@types/lodash-es": "^4.17.12",
|
|
37
|
-
"@types/node": "^20.
|
|
38
|
-
"@vitejs/plugin-vue": "^5.0.
|
|
37
|
+
"@types/node": "^20.14.10",
|
|
38
|
+
"@vitejs/plugin-vue": "^5.0.5",
|
|
39
39
|
"@vue/eslint-config-prettier": "^9.0.0",
|
|
40
40
|
"@vue/eslint-config-typescript": "^13.0.0",
|
|
41
41
|
"eslint": "^8.57.0",
|
|
42
|
-
"eslint-plugin-vue": "^9.
|
|
42
|
+
"eslint-plugin-vue": "^9.27.0",
|
|
43
43
|
"husky": "^9.0.11",
|
|
44
|
-
"lint-staged": "^15.2.
|
|
45
|
-
"prettier": "3.2
|
|
46
|
-
"sass": "^1.
|
|
47
|
-
"typescript": "^5.
|
|
48
|
-
"vite": "^5.
|
|
49
|
-
"vite-plugin-css-injected-by-js": "^3.5.
|
|
44
|
+
"lint-staged": "^15.2.7",
|
|
45
|
+
"prettier": "3.3.2",
|
|
46
|
+
"sass": "^1.77.7",
|
|
47
|
+
"typescript": "^5.5.3",
|
|
48
|
+
"vite": "^5.3.3",
|
|
49
|
+
"vite-plugin-css-injected-by-js": "^3.5.1",
|
|
50
50
|
"vite-plugin-vuetify": "^2.0.3",
|
|
51
51
|
"vue-router": "^4.4.0",
|
|
52
|
-
"vue-tsc": "^2.0.
|
|
52
|
+
"vue-tsc": "^2.0.26"
|
|
53
53
|
}
|
|
54
54
|
}
|