@vc-shell/framework 1.1.63 → 1.1.65
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/CHANGELOG.md +8 -0
- package/dist/framework.js +8954 -12459
- package/dist/vendor-intlify-core-base-txnziOTW.js +1130 -0
- package/dist/vendor-intlify-message-compiler-XquMv3aB.js +947 -0
- package/dist/vendor-intlify-shared-CE1Dfvjf.js +144 -0
- package/dist/vendor-vue-i18n-BeXi5L3e.js +1370 -0
- package/package.json +4 -4
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* shared v11.1.11
|
|
3
|
+
* (c) 2025 kazuya kawaguchi
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
function j(e, t) {
|
|
7
|
+
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
8
|
+
}
|
|
9
|
+
const d = {};
|
|
10
|
+
function k(e) {
|
|
11
|
+
d[e] || (d[e] = !0, j(e));
|
|
12
|
+
}
|
|
13
|
+
const P = typeof window < "u";
|
|
14
|
+
let _, N;
|
|
15
|
+
if (process.env.NODE_ENV !== "production") {
|
|
16
|
+
const e = P && window.performance;
|
|
17
|
+
e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
|
|
18
|
+
e.clearMeasures && (_ = (t) => {
|
|
19
|
+
e.mark(t);
|
|
20
|
+
}, N = (t, r, n) => {
|
|
21
|
+
e.measure(t, r, n), e.clearMarks(r), e.clearMarks(n);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
const $ = /\{([0-9a-zA-Z]+)\}/g;
|
|
25
|
+
function C(e, ...t) {
|
|
26
|
+
return t.length === 1 && i(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace($, (r, n) => t.hasOwnProperty(n) ? t[n] : "");
|
|
27
|
+
}
|
|
28
|
+
const F = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), R = (e, t, r) => x({ l: e, k: t, s: r }), x = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), T = (e) => typeof e == "number" && isFinite(e), z = (e) => u(e) === "[object Date]", H = (e) => u(e) === "[object RegExp]", q = (e) => E(e) && Object.keys(e).length === 0, B = Object.assign, M = Object.create, m = (e = null) => M(e);
|
|
29
|
+
let h;
|
|
30
|
+
const G = () => h || (h = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : m());
|
|
31
|
+
function J(e) {
|
|
32
|
+
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
33
|
+
}
|
|
34
|
+
function b(e) {
|
|
35
|
+
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
36
|
+
}
|
|
37
|
+
function V(e) {
|
|
38
|
+
return e = e.replace(/(\w+)\s*=\s*"([^"]*)"/g, (n, s, o) => `${s}="${b(o)}"`), e = e.replace(/(\w+)\s*=\s*'([^']*)'/g, (n, s, o) => `${s}='${b(o)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (process.env.NODE_ENV !== "production" && j("Potentially dangerous event handlers detected in translation. Consider removing onclick, onerror, etc. from your translation messages."), e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), [
|
|
39
|
+
// In href, src, action, formaction attributes
|
|
40
|
+
/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,
|
|
41
|
+
// In style attributes within url()
|
|
42
|
+
/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi
|
|
43
|
+
].forEach((n) => {
|
|
44
|
+
e = e.replace(n, "$1javascript:");
|
|
45
|
+
}), e;
|
|
46
|
+
}
|
|
47
|
+
const D = Object.prototype.hasOwnProperty;
|
|
48
|
+
function v(e, t) {
|
|
49
|
+
return D.call(e, t);
|
|
50
|
+
}
|
|
51
|
+
const O = Array.isArray, y = (e) => typeof e == "function", I = (e) => typeof e == "string", U = (e) => typeof e == "boolean", i = (e) => e !== null && typeof e == "object", Z = (e) => i(e) && y(e.then) && y(e.catch), S = Object.prototype.toString, u = (e) => S.call(e), E = (e) => u(e) === "[object Object]", K = (e) => e == null ? "" : O(e) || E(e) && e.toString === S ? JSON.stringify(e, null, 2) : String(e);
|
|
52
|
+
function L(e, t = "") {
|
|
53
|
+
return e.reduce((r, n, s) => s === 0 ? r + n : r + t + n, "");
|
|
54
|
+
}
|
|
55
|
+
const w = 2;
|
|
56
|
+
function W(e, t = 0, r = e.length) {
|
|
57
|
+
const n = e.split(/\r?\n/);
|
|
58
|
+
let s = 0;
|
|
59
|
+
const o = [];
|
|
60
|
+
for (let c = 0; c < n.length; c++)
|
|
61
|
+
if (s += n[c].length + 1, s >= t) {
|
|
62
|
+
for (let a = c - w; a <= c + w || r > s; a++) {
|
|
63
|
+
if (a < 0 || a >= n.length)
|
|
64
|
+
continue;
|
|
65
|
+
const g = a + 1;
|
|
66
|
+
o.push(`${g}${" ".repeat(3 - String(g).length)}| ${n[a]}`);
|
|
67
|
+
const l = n[a].length;
|
|
68
|
+
if (a === c) {
|
|
69
|
+
const p = t - (s - l) + 1, A = Math.max(1, r > s ? l - p : r - t);
|
|
70
|
+
o.push(" | " + " ".repeat(p) + "^".repeat(A));
|
|
71
|
+
} else if (a > c) {
|
|
72
|
+
if (r > s) {
|
|
73
|
+
const p = Math.max(Math.min(r - s, l), 1);
|
|
74
|
+
o.push(" | " + "^".repeat(p));
|
|
75
|
+
}
|
|
76
|
+
s += l + 1;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
return o.join(`
|
|
82
|
+
`);
|
|
83
|
+
}
|
|
84
|
+
function Q() {
|
|
85
|
+
const e = /* @__PURE__ */ new Map();
|
|
86
|
+
return {
|
|
87
|
+
events: e,
|
|
88
|
+
on(r, n) {
|
|
89
|
+
const s = e.get(r);
|
|
90
|
+
s && s.push(n) || e.set(r, [n]);
|
|
91
|
+
},
|
|
92
|
+
off(r, n) {
|
|
93
|
+
const s = e.get(r);
|
|
94
|
+
s && s.splice(s.indexOf(n) >>> 0, 1);
|
|
95
|
+
},
|
|
96
|
+
emit(r, n) {
|
|
97
|
+
(e.get(r) || []).slice().map((s) => s(n)), (e.get("*") || []).slice().map((s) => s(r, n));
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
const f = (e) => !i(e) || O(e);
|
|
102
|
+
function X(e, t) {
|
|
103
|
+
if (f(e) || f(t))
|
|
104
|
+
throw new Error("Invalid value");
|
|
105
|
+
const r = [{ src: e, des: t }];
|
|
106
|
+
for (; r.length; ) {
|
|
107
|
+
const { src: n, des: s } = r.pop();
|
|
108
|
+
Object.keys(n).forEach((o) => {
|
|
109
|
+
o !== "__proto__" && (i(n[o]) && !i(s[o]) && (s[o] = Array.isArray(n[o]) ? [] : m()), f(s[o]) || f(n[o]) ? s[o] = n[o] : r.push({ src: n[o], des: s[o] }));
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
export {
|
|
114
|
+
W as A,
|
|
115
|
+
F as B,
|
|
116
|
+
Q as C,
|
|
117
|
+
X as D,
|
|
118
|
+
I as a,
|
|
119
|
+
O as b,
|
|
120
|
+
E as c,
|
|
121
|
+
m as d,
|
|
122
|
+
B as e,
|
|
123
|
+
U as f,
|
|
124
|
+
H as g,
|
|
125
|
+
k as h,
|
|
126
|
+
y as i,
|
|
127
|
+
i as j,
|
|
128
|
+
v as k,
|
|
129
|
+
C as l,
|
|
130
|
+
G as m,
|
|
131
|
+
T as n,
|
|
132
|
+
q as o,
|
|
133
|
+
z as p,
|
|
134
|
+
J as q,
|
|
135
|
+
P as r,
|
|
136
|
+
V as s,
|
|
137
|
+
_ as t,
|
|
138
|
+
N as u,
|
|
139
|
+
L as v,
|
|
140
|
+
j as w,
|
|
141
|
+
K as x,
|
|
142
|
+
Z as y,
|
|
143
|
+
R as z
|
|
144
|
+
};
|