@guihz/trading-vue-editor-tes 0.1.2 → 0.1.3
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.
@@ -59,11 +59,11 @@ var Yr = {};
|
|
59
59
|
var qu;
|
60
60
|
function n_() {
|
61
61
|
return qu || (qu = 1, process.env.NODE_ENV !== "production" && function() {
|
62
|
-
var i = dn, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), f = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), T = Symbol.iterator,
|
62
|
+
var i = dn, n = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), f = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), T = Symbol.iterator, $ = "@@iterator";
|
63
63
|
function U(y) {
|
64
64
|
if (y === null || typeof y != "object")
|
65
65
|
return null;
|
66
|
-
var j = T && y[T] || y[
|
66
|
+
var j = T && y[T] || y[$];
|
67
67
|
return typeof j == "function" ? j : null;
|
68
68
|
}
|
69
69
|
var W = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
@@ -71,10 +71,10 @@ function n_() {
|
|
71
71
|
{
|
72
72
|
for (var j = arguments.length, K = new Array(j > 1 ? j - 1 : 0), ae = 1; ae < j; ae++)
|
73
73
|
K[ae - 1] = arguments[ae];
|
74
|
-
|
74
|
+
Z("error", y, K);
|
75
75
|
}
|
76
76
|
}
|
77
|
-
function
|
77
|
+
function Z(y, j, K) {
|
78
78
|
{
|
79
79
|
var ae = W.ReactDebugCurrentFrame, Oe = ae.getStackAddendum();
|
80
80
|
Oe !== "" && (j += "%s", K = K.concat([Oe]));
|
@@ -84,14 +84,14 @@ function n_() {
|
|
84
84
|
ke.unshift("Warning: " + j), Function.prototype.apply.call(console[y], console, ke);
|
85
85
|
}
|
86
86
|
}
|
87
|
-
var B = !1, H = !1, M = !1, k = !1, Y = !1,
|
88
|
-
|
87
|
+
var B = !1, H = !1, M = !1, k = !1, Y = !1, X;
|
88
|
+
X = Symbol.for("react.module.reference");
|
89
89
|
function J(y) {
|
90
90
|
return !!(typeof y == "string" || typeof y == "function" || y === s || y === l || Y || y === a || y === p || y === v || k || y === A || B || H || M || typeof y == "object" && y !== null && (y.$$typeof === x || y.$$typeof === b || y.$$typeof === c || y.$$typeof === f || y.$$typeof === h || // This needs to include all possible module reference object
|
91
91
|
// types supported by any Flight configuration anywhere since
|
92
92
|
// we don't know which Flight build this will end up being used
|
93
93
|
// with.
|
94
|
-
y.$$typeof ===
|
94
|
+
y.$$typeof === X || y.getModuleId !== void 0));
|
95
95
|
}
|
96
96
|
function ee(y, j, K) {
|
97
97
|
var ae = y.displayName;
|
@@ -1067,8 +1067,8 @@ function eb(i, n, r, s) {
|
|
1067
1067
|
function mf(i, n) {
|
1068
1068
|
return i.Uri.parse(n);
|
1069
1069
|
}
|
1070
|
-
function tb({ original: i, modified: n, language: r, originalLanguage: s, modifiedLanguage: a, originalModelPath: l, modifiedModelPath: c, keepCurrentOriginalModel: f = !1, keepCurrentModifiedModel: h = !1, theme: p = "light", loading: v = "Loading...", options: b = {}, height: x = "100%", width: A = "100%", className: T, wrapperProps:
|
1071
|
-
let [I,
|
1070
|
+
function tb({ original: i, modified: n, language: r, originalLanguage: s, modifiedLanguage: a, originalModelPath: l, modifiedModelPath: c, keepCurrentOriginalModel: f = !1, keepCurrentModifiedModel: h = !1, theme: p = "light", loading: v = "Loading...", options: b = {}, height: x = "100%", width: A = "100%", className: T, wrapperProps: $ = {}, beforeMount: U = ti, onMount: W = ti }) {
|
1071
|
+
let [I, Z] = Re(!1), [B, H] = Re(!0), M = Se(null), k = Se(null), Y = Se(null), X = Se(W), J = Se(U), ee = Se(!1);
|
1072
1072
|
pf(() => {
|
1073
1073
|
let q = fa.init();
|
1074
1074
|
return q.then((ie) => (k.current = ie) && H(!1)).catch((ie) => ie?.type !== "cancelation" && console.error("Monaco initialization: error:", ie)), () => M.current ? te() : q.cancel();
|
@@ -1102,10 +1102,10 @@ function tb({ original: i, modified: n, language: r, originalLanguage: s, modifi
|
|
1102
1102
|
let q = mr(k.current, i || "", s || r || "text", l || ""), ie = mr(k.current, n || "", a || r || "text", c || "");
|
1103
1103
|
M.current?.setModel({ original: q, modified: ie });
|
1104
1104
|
}, [r, n, a, i, s, l, c]), z = On(() => {
|
1105
|
-
!ee.current && Y.current && (M.current = k.current.editor.createDiffEditor(Y.current, { automaticLayout: !0, ...b }), ye(), k.current?.editor.setTheme(p),
|
1105
|
+
!ee.current && Y.current && (M.current = k.current.editor.createDiffEditor(Y.current, { automaticLayout: !0, ...b }), ye(), k.current?.editor.setTheme(p), Z(!0), ee.current = !0);
|
1106
1106
|
}, [b, p, ye]);
|
1107
1107
|
Ee(() => {
|
1108
|
-
I &&
|
1108
|
+
I && X.current(M.current, k.current);
|
1109
1109
|
}, [I]), Ee(() => {
|
1110
1110
|
!B && !I && z();
|
1111
1111
|
}, [B, I, z]);
|
@@ -1113,7 +1113,7 @@ function tb({ original: i, modified: n, language: r, originalLanguage: s, modifi
|
|
1113
1113
|
let q = M.current?.getModel();
|
1114
1114
|
f || q?.original?.dispose(), h || q?.modified?.dispose(), M.current?.dispose();
|
1115
1115
|
}
|
1116
|
-
return dn.createElement(gf, { width: A, height: x, isEditorReady: I, loading: v, _ref: Y, className: T, wrapperProps:
|
1116
|
+
return dn.createElement(gf, { width: A, height: x, isEditorReady: I, loading: v, _ref: Y, className: T, wrapperProps: $ });
|
1117
1117
|
}
|
1118
1118
|
var nb = tb, rb = ca(nb);
|
1119
1119
|
function ib(i) {
|
@@ -1123,47 +1123,47 @@ function ib(i) {
|
|
1123
1123
|
}, [i]), n.current;
|
1124
1124
|
}
|
1125
1125
|
var ob = ib, io = /* @__PURE__ */ new Map();
|
1126
|
-
function sb({ defaultValue: i, defaultLanguage: n, defaultPath: r, value: s, language: a, path: l, theme: c = "light", line: f, loading: h = "Loading...", options: p = {}, overrideServices: v = {}, saveViewState: b = !0, keepCurrentModel: x = !1, width: A = "100%", height: T = "100%", className:
|
1127
|
-
let [H, M] = Re(!1), [k, Y] = Re(!0),
|
1126
|
+
function sb({ defaultValue: i, defaultLanguage: n, defaultPath: r, value: s, language: a, path: l, theme: c = "light", line: f, loading: h = "Loading...", options: p = {}, overrideServices: v = {}, saveViewState: b = !0, keepCurrentModel: x = !1, width: A = "100%", height: T = "100%", className: $, wrapperProps: U = {}, beforeMount: W = ti, onMount: I = ti, onChange: Z, onValidate: B = ti }) {
|
1127
|
+
let [H, M] = Re(!1), [k, Y] = Re(!0), X = Se(null), J = Se(null), ee = Se(null), ye = Se(I), z = Se(W), te = Se(), q = Se(s), ie = ob(l), le = Se(!1), D = Se(!1);
|
1128
1128
|
pf(() => {
|
1129
1129
|
let ue = fa.init();
|
1130
|
-
return ue.then((De) => (
|
1130
|
+
return ue.then((De) => (X.current = De) && Y(!1)).catch((De) => De?.type !== "cancelation" && console.error("Monaco initialization: error:", De)), () => J.current ? me() : ue.cancel();
|
1131
1131
|
}), At(() => {
|
1132
|
-
let ue = mr(
|
1132
|
+
let ue = mr(X.current, i || s || "", n || a || "", l || r || "");
|
1133
1133
|
ue !== J.current?.getModel() && (b && io.set(ie, J.current?.saveViewState()), J.current?.setModel(ue), b && J.current?.restoreViewState(io.get(l)));
|
1134
1134
|
}, [l], H), At(() => {
|
1135
1135
|
J.current?.updateOptions(p);
|
1136
1136
|
}, [p], H), At(() => {
|
1137
|
-
!J.current || s === void 0 || (J.current.getOption(
|
1137
|
+
!J.current || s === void 0 || (J.current.getOption(X.current.editor.EditorOption.readOnly) ? J.current.setValue(s) : s !== J.current.getValue() && (D.current = !0, J.current.executeEdits("", [{ range: J.current.getModel().getFullModelRange(), text: s, forceMoveMarkers: !0 }]), J.current.pushUndoStop(), D.current = !1));
|
1138
1138
|
}, [s], H), At(() => {
|
1139
1139
|
let ue = J.current?.getModel();
|
1140
|
-
ue && a &&
|
1140
|
+
ue && a && X.current?.editor.setModelLanguage(ue, a);
|
1141
1141
|
}, [a], H), At(() => {
|
1142
1142
|
f !== void 0 && J.current?.revealLine(f);
|
1143
1143
|
}, [f], H), At(() => {
|
1144
|
-
|
1144
|
+
X.current?.editor.setTheme(c);
|
1145
1145
|
}, [c], H);
|
1146
1146
|
let ne = On(() => {
|
1147
|
-
if (!(!ee.current || !
|
1148
|
-
z.current(
|
1149
|
-
let ue = l || r, De = mr(
|
1150
|
-
J.current =
|
1147
|
+
if (!(!ee.current || !X.current) && !le.current) {
|
1148
|
+
z.current(X.current);
|
1149
|
+
let ue = l || r, De = mr(X.current, s || i || "", n || a || "", ue || "");
|
1150
|
+
J.current = X.current?.editor.create(ee.current, { model: De, automaticLayout: !0, ...p }, v), b && J.current.restoreViewState(io.get(ue)), X.current.editor.setTheme(c), f !== void 0 && J.current.revealLine(f), M(!0), le.current = !0;
|
1151
1151
|
}
|
1152
1152
|
}, [i, n, r, s, a, l, p, v, b, c, f]);
|
1153
1153
|
Ee(() => {
|
1154
|
-
H && ye.current(J.current,
|
1154
|
+
H && ye.current(J.current, X.current);
|
1155
1155
|
}, [H]), Ee(() => {
|
1156
1156
|
!k && !H && ne();
|
1157
1157
|
}, [k, H, ne]), q.current = s, Ee(() => {
|
1158
|
-
H &&
|
1159
|
-
D.current ||
|
1158
|
+
H && Z && (te.current?.dispose(), te.current = J.current?.onDidChangeModelContent((ue) => {
|
1159
|
+
D.current || Z(J.current.getValue(), ue);
|
1160
1160
|
}));
|
1161
|
-
}, [H,
|
1161
|
+
}, [H, Z]), Ee(() => {
|
1162
1162
|
if (H) {
|
1163
|
-
let ue =
|
1163
|
+
let ue = X.current.editor.onDidChangeMarkers((De) => {
|
1164
1164
|
let Ke = J.current.getModel()?.uri;
|
1165
1165
|
if (Ke && De.find((it) => it.path === Ke.path)) {
|
1166
|
-
let it =
|
1166
|
+
let it = X.current.editor.getModelMarkers({ resource: Ke });
|
1167
1167
|
B?.(it);
|
1168
1168
|
}
|
1169
1169
|
});
|
@@ -1177,7 +1177,7 @@ function sb({ defaultValue: i, defaultLanguage: n, defaultPath: r, value: s, lan
|
|
1177
1177
|
function me() {
|
1178
1178
|
te.current?.dispose(), x ? b && io.set(l, J.current.saveViewState()) : J.current.getModel()?.dispose(), J.current.dispose();
|
1179
1179
|
}
|
1180
|
-
return dn.createElement(gf, { width: A, height: T, isEditorReady: H, loading: h, _ref: ee, className:
|
1180
|
+
return dn.createElement(gf, { width: A, height: T, isEditorReady: H, loading: h, _ref: ee, className: $, wrapperProps: U });
|
1181
1181
|
}
|
1182
1182
|
var ab = sb, lb = ca(ab);
|
1183
1183
|
const Ae = {
|
@@ -1578,8 +1578,8 @@ class mo extends So {
|
|
1578
1578
|
}
|
1579
1579
|
const b = this.resolve(n, r);
|
1580
1580
|
let x = b && b.res;
|
1581
|
-
const A = b && b.usedKey || c, T = b && b.exactUsedKey || c,
|
1582
|
-
if (I && x &&
|
1581
|
+
const A = b && b.usedKey || c, T = b && b.exactUsedKey || c, $ = Object.prototype.toString.apply(x), U = ["[object Number]", "[object Function]", "[object RegExp]"], W = r.joinArrays !== void 0 ? r.joinArrays : this.options.joinArrays, I = !this.i18nFormat || this.i18nFormat.handleAsObject, Z = !ce(x) && typeof x != "boolean" && typeof x != "number";
|
1582
|
+
if (I && x && Z && U.indexOf($) < 0 && !(ce(W) && Array.isArray(x))) {
|
1583
1583
|
if (!r.returnObjects && !this.options.returnObjects) {
|
1584
1584
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
1585
1585
|
const B = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(A, x, {
|
@@ -1605,9 +1605,9 @@ class mo extends So {
|
|
1605
1605
|
x = x.join(W), x && (x = this.extendTranslation(x, n, r, s));
|
1606
1606
|
else {
|
1607
1607
|
let B = !1, H = !1;
|
1608
|
-
const M = r.count !== void 0 && !ce(r.count), k = mo.hasDefaultValue(r), Y = M ? this.pluralResolver.getSuffix(p, r.count, r) : "",
|
1608
|
+
const M = r.count !== void 0 && !ce(r.count), k = mo.hasDefaultValue(r), Y = M ? this.pluralResolver.getSuffix(p, r.count, r) : "", X = r.ordinal && M ? this.pluralResolver.getSuffix(p, r.count, {
|
1609
1609
|
ordinal: !1
|
1610
|
-
}) : "", J = M && !r.ordinal && r.count === 0 && this.pluralResolver.shouldUseIntlApi(), ee = J && r[`defaultValue${this.options.pluralSeparator}zero`] || r[`defaultValue${Y}`] || r[`defaultValue${
|
1610
|
+
}) : "", J = M && !r.ordinal && r.count === 0 && this.pluralResolver.shouldUseIntlApi(), ee = J && r[`defaultValue${this.options.pluralSeparator}zero`] || r[`defaultValue${Y}`] || r[`defaultValue${X}`] || r.defaultValue;
|
1611
1611
|
!this.isValidLookup(x) && k && (B = !0, x = ee), this.isValidLookup(x) || (H = !0, x = c);
|
1612
1612
|
const z = (r.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && H ? void 0 : x, te = k && ee !== x && this.options.updateMissing;
|
1613
1613
|
if (H || B || te) {
|
@@ -1695,9 +1695,9 @@ class mo extends So {
|
|
1695
1695
|
a = v;
|
1696
1696
|
let b = p.namespaces;
|
1697
1697
|
this.options.fallbackNS && (b = b.concat(this.options.fallbackNS));
|
1698
|
-
const x = r.count !== void 0 && !ce(r.count), A = x && !r.ordinal && r.count === 0 && this.pluralResolver.shouldUseIntlApi(), T = r.context !== void 0 && (ce(r.context) || typeof r.context == "number") && r.context !== "",
|
1698
|
+
const x = r.count !== void 0 && !ce(r.count), A = x && !r.ordinal && r.count === 0 && this.pluralResolver.shouldUseIntlApi(), T = r.context !== void 0 && (ce(r.context) || typeof r.context == "number") && r.context !== "", $ = r.lngs ? r.lngs : this.languageUtils.toResolveHierarchy(r.lng || this.language, r.fallbackLng);
|
1699
1699
|
b.forEach((U) => {
|
1700
|
-
this.isValidLookup(s) || (f = U, !oc[`${
|
1700
|
+
this.isValidLookup(s) || (f = U, !oc[`${$[0]}-${U}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(f) && (oc[`${$[0]}-${U}`] = !0, this.logger.warn(`key "${a}" for languages "${$.join(", ")}" won't get resolved as namespace "${f}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), $.forEach((W) => {
|
1701
1701
|
if (this.isValidLookup(s))
|
1702
1702
|
return;
|
1703
1703
|
c = W;
|
@@ -1713,9 +1713,9 @@ class mo extends So {
|
|
1713
1713
|
I.push(k), x && (I.push(k + B), r.ordinal && B.indexOf(M) === 0 && I.push(k + B.replace(M, this.options.pluralSeparator)), A && I.push(k + H));
|
1714
1714
|
}
|
1715
1715
|
}
|
1716
|
-
let
|
1717
|
-
for (;
|
1718
|
-
this.isValidLookup(s) || (l =
|
1716
|
+
let Z;
|
1717
|
+
for (; Z = I.pop(); )
|
1718
|
+
this.isValidLookup(s) || (l = Z, s = this.getResource(W, U, Z, r));
|
1719
1719
|
}));
|
1720
1720
|
});
|
1721
1721
|
}), {
|
@@ -2056,12 +2056,12 @@ class Ab {
|
|
2056
2056
|
nestingPrefix: x,
|
2057
2057
|
nestingPrefixEscaped: A,
|
2058
2058
|
nestingSuffix: T,
|
2059
|
-
nestingSuffixEscaped:
|
2059
|
+
nestingSuffixEscaped: $,
|
2060
2060
|
nestingOptionsSeparator: U,
|
2061
2061
|
maxReplaces: W,
|
2062
2062
|
alwaysFormat: I
|
2063
2063
|
} = n.interpolation;
|
2064
|
-
this.escape = r !== void 0 ? r : mb, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = a !== void 0 ? a : !1, this.prefix = l ? hr(l) : c || "{{", this.suffix = f ? hr(f) : h || "}}", this.formatSeparator = p || ",", this.unescapePrefix = v ? "" : b || "-", this.unescapeSuffix = this.unescapePrefix ? "" : v || "", this.nestingPrefix = x ? hr(x) : A || hr("$t("), this.nestingSuffix = T ? hr(T) :
|
2064
|
+
this.escape = r !== void 0 ? r : mb, this.escapeValue = s !== void 0 ? s : !0, this.useRawValueToEscape = a !== void 0 ? a : !1, this.prefix = l ? hr(l) : c || "{{", this.suffix = f ? hr(f) : h || "}}", this.formatSeparator = p || ",", this.unescapePrefix = v ? "" : b || "-", this.unescapeSuffix = this.unescapePrefix ? "" : v || "", this.nestingPrefix = x ? hr(x) : A || hr("$t("), this.nestingSuffix = T ? hr(T) : $ || hr(")"), this.nestingOptionsSeparator = U || ",", this.maxReplaces = W || 1e3, this.alwaysFormat = I !== void 0 ? I : !1, this.resetRegExp();
|
2065
2065
|
}
|
2066
2066
|
reset() {
|
2067
2067
|
this.options && this.init(this.options);
|
@@ -2081,11 +2081,11 @@ class Ab {
|
|
2081
2081
|
interpolationkey: A
|
2082
2082
|
}) : W;
|
2083
2083
|
}
|
2084
|
-
const T = A.split(this.formatSeparator),
|
2085
|
-
return this.format(lc(r, h,
|
2084
|
+
const T = A.split(this.formatSeparator), $ = T.shift().trim(), U = T.join(this.formatSeparator).trim();
|
2085
|
+
return this.format(lc(r, h, $, this.options.keySeparator, this.options.ignoreJSONStructure), U, s, {
|
2086
2086
|
...a,
|
2087
2087
|
...r,
|
2088
|
-
interpolationkey:
|
2088
|
+
interpolationkey: $
|
2089
2089
|
});
|
2090
2090
|
};
|
2091
2091
|
this.resetRegExp();
|
@@ -2112,8 +2112,8 @@ class Ab {
|
|
2112
2112
|
this.logger.warn(`missed to pass in variable ${T} for interpolating ${n}`), c = "";
|
2113
2113
|
else
|
2114
2114
|
!ce(c) && !this.useRawValueToEscape && (c = ec(c));
|
2115
|
-
const
|
2116
|
-
if (n = n.replace(l[0],
|
2115
|
+
const $ = A.safeValue(c);
|
2116
|
+
if (n = n.replace(l[0], $), b ? (A.regex.lastIndex += c.length, A.regex.lastIndex -= l[0].length) : A.regex.lastIndex = 0, f++, f >= this.maxReplaces)
|
2117
2117
|
break;
|
2118
2118
|
}
|
2119
2119
|
}), n;
|
@@ -2134,8 +2134,8 @@ class Ab {
|
|
2134
2134
|
...p,
|
2135
2135
|
...c
|
2136
2136
|
});
|
2137
|
-
} catch (
|
2138
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${h}`,
|
2137
|
+
} catch ($) {
|
2138
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${h}`, $), `${h}${v}${x}`;
|
2139
2139
|
}
|
2140
2140
|
return c.defaultValue && c.defaultValue.indexOf(this.prefix) > -1 && delete c.defaultValue, h;
|
2141
2141
|
};
|
@@ -2512,13 +2512,13 @@ class ii extends So {
|
|
2512
2512
|
}), v && (!this.options.interpolation.format || this.options.interpolation.format === a.interpolation.format) && (x.formatter = l(v), x.formatter.init(x, this.options), this.options.interpolation.format = x.formatter.format.bind(x.formatter)), x.interpolator = new Ab(this.options), x.utils = {
|
2513
2513
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
2514
2514
|
}, x.backendConnector = new Nb(l(this.modules.backend), x.resourceStore, x, this.options), x.backendConnector.on("*", function(A) {
|
2515
|
-
for (var T = arguments.length,
|
2516
|
-
|
2517
|
-
n.emit(A,
|
2515
|
+
for (var T = arguments.length, $ = new Array(T > 1 ? T - 1 : 0), U = 1; U < T; U++)
|
2516
|
+
$[U - 1] = arguments[U];
|
2517
|
+
n.emit(A, ...$);
|
2518
2518
|
}), this.modules.languageDetector && (x.languageDetector = l(this.modules.languageDetector), x.languageDetector.init && x.languageDetector.init(x, this.options.detection, this.options)), this.modules.i18nFormat && (x.i18nFormat = l(this.modules.i18nFormat), x.i18nFormat.init && x.i18nFormat.init(this)), this.translator = new mo(this.services, this.options), this.translator.on("*", function(A) {
|
2519
|
-
for (var T = arguments.length,
|
2520
|
-
|
2521
|
-
n.emit(A,
|
2519
|
+
for (var T = arguments.length, $ = new Array(T > 1 ? T - 1 : 0), U = 1; U < T; U++)
|
2520
|
+
$[U - 1] = arguments[U];
|
2521
|
+
n.emit(A, ...$);
|
2522
2522
|
}), this.modules.external.forEach((A) => {
|
2523
2523
|
A.init && A.init(this);
|
2524
2524
|
});
|
@@ -2793,24 +2793,24 @@ function Fb(i, n = 0, r = !0) {
|
|
2793
2793
|
return `${pe.bold(s.name)} (${Dt("enum member")})${s.value === void 0 ? "" : ` = ${s.value}`}`;
|
2794
2794
|
const a = /(Mac|iPhone|iPod|iPad)/i.test(window.navigator.userAgent), { name: l, title: c = "", desc: f, type: h, syntax: p, returns: v, remarks: b, fields: x, members: A } = s, T = [`${pe.bold(l)} (${Dt(c)})`];
|
2795
2795
|
if (i.length > 1 && T.push(pe.italic(`+${i.length - 1} ${Dt("overloads")}`)), T.push(pe.delimiter), f && T.push(pe.paragraph(Array.isArray(f) ? f.join(pe.lineBreak) : f || "")), h && T.push(pe.paragraph(pe.bold(Dt(vt.Type)), pe.italic(h))), p && p.length && T.push(pe.paragraph(pe.bold(Dt(vt.Syntax)), pe.pineCode(p.join(pe.lineBreak)))), v && T.push(pe.paragraph(pe.bold(Dt(vt.Returns)), pe.lineBreak, v.join(pe.lineBreak))), b && b.length && i.length <= 1) {
|
2796
|
-
let
|
2797
|
-
typeof b == "string" ?
|
2796
|
+
let $ = "";
|
2797
|
+
typeof b == "string" ? $ = b : $ = b.join(pe.lineBreak) || "", $.length < 200 && T.push(pe.paragraph(pe.bold(Dt(vt.Remarks)), pe.lineBreak, $));
|
2798
2798
|
}
|
2799
2799
|
if (x) {
|
2800
|
-
const
|
2800
|
+
const $ = [];
|
2801
2801
|
for (const U of x) {
|
2802
2802
|
const W = U.desc ? ` - ${U.desc}` : "";
|
2803
|
-
|
2803
|
+
$.push(`${U.name} (${U.type})${W}`);
|
2804
2804
|
}
|
2805
|
-
T.push(pe.paragraph(pe.bold(Dt(vt.Fields)), pe.lineBreak,
|
2805
|
+
T.push(pe.paragraph(pe.bold(Dt(vt.Fields)), pe.lineBreak, $.join(pe.paragraphBreak)));
|
2806
2806
|
}
|
2807
2807
|
if (A) {
|
2808
|
-
const
|
2808
|
+
const $ = [];
|
2809
2809
|
for (const U of A) {
|
2810
2810
|
const W = U.desc ? ` - ${U.desc}` : "";
|
2811
|
-
|
2811
|
+
$.push(`${U.name}${U.value ? ` (${U.value})` : ""}${W}`);
|
2812
2812
|
}
|
2813
|
-
T.push(pe.paragraph(pe.bold(Dt(vt.EnumMembers)), pe.lineBreak,
|
2813
|
+
T.push(pe.paragraph(pe.bold(Dt(vt.EnumMembers)), pe.lineBreak, $.join(pe.paragraphBreak)));
|
2814
2814
|
}
|
2815
2815
|
return r && T.push(pe.italic(`${pe.code(a ? "⌘" : "Ctrl")} + ${Dt(ub.clickOnKeywordForMoreHelp)}`)), T.join(T.length === 2 ? " " : pe.lineBreak);
|
2816
2816
|
}
|
@@ -3824,13 +3824,13 @@ var vo = { exports: {} };
|
|
3824
3824
|
vo.exports;
|
3825
3825
|
(function(i, n) {
|
3826
3826
|
(function() {
|
3827
|
-
var r, s = "4.17.21", a = 200, l = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", c = "Expected a function", f = "Invalid `variable` option passed into `_.template`", h = "__lodash_hash_undefined__", p = 500, v = "__lodash_placeholder__", b = 1, x = 2, A = 4, T = 1,
|
3827
|
+
var r, s = "4.17.21", a = 200, l = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", c = "Expected a function", f = "Invalid `variable` option passed into `_.template`", h = "__lodash_hash_undefined__", p = 500, v = "__lodash_placeholder__", b = 1, x = 2, A = 4, T = 1, $ = 2, U = 1, W = 2, I = 4, Z = 8, B = 16, H = 32, M = 64, k = 128, Y = 256, X = 512, J = 30, ee = "...", ye = 800, z = 16, te = 1, q = 2, ie = 3, le = 1 / 0, D = 9007199254740991, ne = 17976931348623157e292, me = NaN, ue = 4294967295, De = ue - 1, Ke = ue >>> 1, it = [
|
3828
3828
|
["ary", k],
|
3829
3829
|
["bind", U],
|
3830
3830
|
["bindKey", W],
|
3831
|
-
["curry",
|
3831
|
+
["curry", Z],
|
3832
3832
|
["curryRight", B],
|
3833
|
-
["flip",
|
3833
|
+
["flip", X],
|
3834
3834
|
["partial", H],
|
3835
3835
|
["partialRight", M],
|
3836
3836
|
["rearg", Y]
|
@@ -4468,14 +4468,14 @@ vo.exports;
|
|
4468
4468
|
return e;
|
4469
4469
|
}
|
4470
4470
|
function uh() {
|
4471
|
-
var e = this.__wrapped__.value(), t = this.__dir__, o = de(e), u = t < 0, d = o ? e.length : 0, m = xg(0, d, this.__views__), _ = m.start, w = m.end, O = w - _, R = u ? w : _ - 1, P = this.__iteratees__,
|
4471
|
+
var e = this.__wrapped__.value(), t = this.__dir__, o = de(e), u = t < 0, d = o ? e.length : 0, m = xg(0, d, this.__views__), _ = m.start, w = m.end, O = w - _, R = u ? w : _ - 1, P = this.__iteratees__, F = P.length, G = 0, Q = ot(O, this.__takeCount__);
|
4472
4472
|
if (!o || !u && d == O && Q == O)
|
4473
4473
|
return Rl(e, this.__actions__);
|
4474
4474
|
var oe = [];
|
4475
4475
|
e:
|
4476
4476
|
for (; O-- && G < Q; ) {
|
4477
4477
|
R += t;
|
4478
|
-
for (var ge = -1, se = e[R]; ++ge <
|
4478
|
+
for (var ge = -1, se = e[R]; ++ge < F; ) {
|
4479
4479
|
var be = P[ge], Ce = be.iteratee, Et = be.type, ct = Ce(se);
|
4480
4480
|
if (Et == q)
|
4481
4481
|
se = ct;
|
@@ -4690,16 +4690,16 @@ vo.exports;
|
|
4690
4690
|
if (_ = Cg(e), !w)
|
4691
4691
|
return ht(e, _);
|
4692
4692
|
} else {
|
4693
|
-
var
|
4693
|
+
var F = st(e), G = F == Ln || F == ai;
|
4694
4694
|
if (Cn(e))
|
4695
4695
|
return $l(e, w);
|
4696
|
-
if (
|
4696
|
+
if (F == kt || F == et || G && !d) {
|
4697
4697
|
if (_ = O || G ? {} : tu(e), !w)
|
4698
4698
|
return O ? dg(e, Mh(_, e)) : fg(e, dl(_, e));
|
4699
4699
|
} else {
|
4700
|
-
if (!Pe[
|
4700
|
+
if (!Pe[F])
|
4701
4701
|
return d ? e : {};
|
4702
|
-
_ = Sg(e,
|
4702
|
+
_ = Sg(e, F, w);
|
4703
4703
|
}
|
4704
4704
|
}
|
4705
4705
|
m || (m = new Ht());
|
@@ -4747,14 +4747,14 @@ vo.exports;
|
|
4747
4747
|
o && (t = Fe(t, Ct(o))), u ? (m = Uo, _ = !1) : t.length >= a && (m = Tr, _ = !1, t = new $n(t));
|
4748
4748
|
e:
|
4749
4749
|
for (; ++d < w; ) {
|
4750
|
-
var P = e[d],
|
4751
|
-
if (P = u || P !== 0 ? P : 0, _ &&
|
4750
|
+
var P = e[d], F = o == null ? P : o(P);
|
4751
|
+
if (P = u || P !== 0 ? P : 0, _ && F === F) {
|
4752
4752
|
for (var G = R; G--; )
|
4753
|
-
if (t[G] ===
|
4753
|
+
if (t[G] === F)
|
4754
4754
|
continue e;
|
4755
4755
|
O.push(P);
|
4756
4756
|
} else
|
4757
|
-
m(t,
|
4757
|
+
m(t, F, u) || O.push(P);
|
4758
4758
|
}
|
4759
4759
|
return O;
|
4760
4760
|
}
|
@@ -4836,10 +4836,10 @@ vo.exports;
|
|
4836
4836
|
_ && t && (P = Fe(P, Ct(t))), O = ot(P.length, O), w[_] = !o && (t || d >= 120 && P.length >= 120) ? new $n(_ && P) : r;
|
4837
4837
|
}
|
4838
4838
|
P = e[0];
|
4839
|
-
var
|
4839
|
+
var F = -1, G = w[0];
|
4840
4840
|
e:
|
4841
|
-
for (;
|
4842
|
-
var Q = P[
|
4841
|
+
for (; ++F < d && R.length < O; ) {
|
4842
|
+
var Q = P[F], oe = t ? t(Q) : Q;
|
4843
4843
|
if (Q = o || Q !== 0 ? Q : 0, !(G ? Tr(G, oe) : u(R, oe, o))) {
|
4844
4844
|
for (_ = m; --_; ) {
|
4845
4845
|
var ge = w[_];
|
@@ -4876,7 +4876,7 @@ vo.exports;
|
|
4876
4876
|
function Kh(e, t, o, u, d, m) {
|
4877
4877
|
var _ = de(e), w = de(t), O = _ ? Ve : st(e), R = w ? Ve : st(t);
|
4878
4878
|
O = O == et ? kt : O, R = R == et ? kt : R;
|
4879
|
-
var P = O == kt,
|
4879
|
+
var P = O == kt, F = R == kt, G = O == R;
|
4880
4880
|
if (G && Cn(e)) {
|
4881
4881
|
if (!Cn(t))
|
4882
4882
|
return !1;
|
@@ -4885,7 +4885,7 @@ vo.exports;
|
|
4885
4885
|
if (G && !P)
|
4886
4886
|
return m || (m = new Ht()), _ || fr(e) ? Xl(e, t, o, u, d, m) : _g(e, t, O, o, u, d, m);
|
4887
4887
|
if (!(o & T)) {
|
4888
|
-
var Q = P && Te.call(e, "__wrapped__"), oe =
|
4888
|
+
var Q = P && Te.call(e, "__wrapped__"), oe = F && Te.call(t, "__wrapped__");
|
4889
4889
|
if (Q || oe) {
|
4890
4890
|
var ge = Q ? e.value() : e, se = oe ? t.value() : t;
|
4891
4891
|
return m || (m = new Ht()), d(ge, se, o, u, m);
|
@@ -4912,10 +4912,10 @@ vo.exports;
|
|
4912
4912
|
if (R === r && !(O in e))
|
4913
4913
|
return !1;
|
4914
4914
|
} else {
|
4915
|
-
var
|
4915
|
+
var F = new Ht();
|
4916
4916
|
if (u)
|
4917
|
-
var G = u(R, P, O, e, t,
|
4918
|
-
if (!(G === r ? Br(P, R, T |
|
4917
|
+
var G = u(R, P, O, e, t, F);
|
4918
|
+
if (!(G === r ? Br(P, R, T | $, u, F) : G))
|
4919
4919
|
return !1;
|
4920
4920
|
}
|
4921
4921
|
}
|
@@ -4973,7 +4973,7 @@ vo.exports;
|
|
4973
4973
|
function Sl(e, t) {
|
4974
4974
|
return Os(e) && nu(t) ? ru(Vt(e), t) : function(o) {
|
4975
4975
|
var u = Ms(o, e);
|
4976
|
-
return u === r && u === t ? $s(o, e) : Br(t, u, T |
|
4976
|
+
return u === r && u === t ? $s(o, e) : Br(t, u, T | $);
|
4977
4977
|
};
|
4978
4978
|
}
|
4979
4979
|
function Di(e, t, o, u, d) {
|
@@ -4992,12 +4992,12 @@ vo.exports;
|
|
4992
4992
|
es(e, o, R);
|
4993
4993
|
return;
|
4994
4994
|
}
|
4995
|
-
var P = m ? m(w, O, o + "", e, t, _) : r,
|
4996
|
-
if (
|
4995
|
+
var P = m ? m(w, O, o + "", e, t, _) : r, F = P === r;
|
4996
|
+
if (F) {
|
4997
4997
|
var G = de(O), Q = !G && Cn(O), oe = !G && !Q && fr(O);
|
4998
|
-
P = O, G || Q || oe ? de(w) ? P = w : Ge(w) ? P = ht(w) : Q ? (
|
4998
|
+
P = O, G || Q || oe ? de(w) ? P = w : Ge(w) ? P = ht(w) : Q ? (F = !1, P = $l(O, !0)) : oe ? (F = !1, P = Fl(O, !0)) : P = [] : Kr(O) || Un(O) ? (P = w, Un(w) ? P = Ru(w) : (!Be(w) || ln(w)) && (P = tu(O))) : F = !1;
|
4999
4999
|
}
|
5000
|
-
|
5000
|
+
F && (_.set(O, P), d(P, O, u, m, _), _.delete(O)), es(e, o, P);
|
5001
5001
|
}
|
5002
5002
|
function Ol(e, t) {
|
5003
5003
|
var o = e.length;
|
@@ -5142,11 +5142,11 @@ vo.exports;
|
|
5142
5142
|
return 0;
|
5143
5143
|
t = o(t);
|
5144
5144
|
for (var _ = t !== t, w = t === null, O = Ot(t), R = t === r; d < m; ) {
|
5145
|
-
var P = Ti((d + m) / 2),
|
5145
|
+
var P = Ti((d + m) / 2), F = o(e[P]), G = F !== r, Q = F === null, oe = F === F, ge = Ot(F);
|
5146
5146
|
if (_)
|
5147
5147
|
var se = u || oe;
|
5148
5148
|
else
|
5149
|
-
R ? se = oe && (u || G) : w ? se = oe && G && (u || !Q) : O ? se = oe && G && !Q && (u || !ge) : Q || ge ? se = !1 : se = u ?
|
5149
|
+
R ? se = oe && (u || G) : w ? se = oe && G && (u || !Q) : O ? se = oe && G && !Q && (u || !ge) : Q || ge ? se = !1 : se = u ? F <= t : F < t;
|
5150
5150
|
se ? d = P + 1 : m = P;
|
5151
5151
|
}
|
5152
5152
|
return ot(m, De);
|
@@ -5187,14 +5187,14 @@ vo.exports;
|
|
5187
5187
|
O = t ? [] : w;
|
5188
5188
|
e:
|
5189
5189
|
for (; ++u < m; ) {
|
5190
|
-
var P = e[u],
|
5191
|
-
if (P = o || P !== 0 ? P : 0, _ &&
|
5190
|
+
var P = e[u], F = t ? t(P) : P;
|
5191
|
+
if (P = o || P !== 0 ? P : 0, _ && F === F) {
|
5192
5192
|
for (var G = O.length; G--; )
|
5193
|
-
if (O[G] ===
|
5193
|
+
if (O[G] === F)
|
5194
5194
|
continue e;
|
5195
|
-
t && O.push(
|
5195
|
+
t && O.push(F), w.push(P);
|
5196
5196
|
} else
|
5197
|
-
d(O,
|
5197
|
+
d(O, F, o) || (O !== w && O.push(F), w.push(P));
|
5198
5198
|
}
|
5199
5199
|
return w;
|
5200
5200
|
}
|
@@ -5296,22 +5296,22 @@ vo.exports;
|
|
5296
5296
|
return e.index - t.index;
|
5297
5297
|
}
|
5298
5298
|
function jl(e, t, o, u) {
|
5299
|
-
for (var d = -1, m = e.length, _ = o.length, w = -1, O = t.length, R = Ze(m - _, 0), P = E(O + R),
|
5299
|
+
for (var d = -1, m = e.length, _ = o.length, w = -1, O = t.length, R = Ze(m - _, 0), P = E(O + R), F = !u; ++w < O; )
|
5300
5300
|
P[w] = t[w];
|
5301
5301
|
for (; ++d < _; )
|
5302
|
-
(
|
5302
|
+
(F || d < m) && (P[o[d]] = e[d]);
|
5303
5303
|
for (; R--; )
|
5304
5304
|
P[w++] = e[d++];
|
5305
5305
|
return P;
|
5306
5306
|
}
|
5307
5307
|
function Bl(e, t, o, u) {
|
5308
|
-
for (var d = -1, m = e.length, _ = -1, w = o.length, O = -1, R = t.length, P = Ze(m - w, 0),
|
5309
|
-
|
5308
|
+
for (var d = -1, m = e.length, _ = -1, w = o.length, O = -1, R = t.length, P = Ze(m - w, 0), F = E(P + R), G = !u; ++d < P; )
|
5309
|
+
F[d] = e[d];
|
5310
5310
|
for (var Q = d; ++O < R; )
|
5311
|
-
|
5311
|
+
F[Q + O] = t[O];
|
5312
5312
|
for (; ++_ < w; )
|
5313
|
-
(G || d < m) && (
|
5314
|
-
return
|
5313
|
+
(G || d < m) && (F[Q + o[_]] = e[d++]);
|
5314
|
+
return F;
|
5315
5315
|
}
|
5316
5316
|
function ht(e, t) {
|
5317
5317
|
var o = -1, u = e.length;
|
@@ -5466,20 +5466,20 @@ vo.exports;
|
|
5466
5466
|
for (u = _ ? u : o; ++u < o; ) {
|
5467
5467
|
m = t[u];
|
5468
5468
|
var w = Gi(m), O = w == "wrapper" ? ws(m) : r;
|
5469
|
-
O && Es(O[0]) && O[1] == (k |
|
5469
|
+
O && Es(O[0]) && O[1] == (k | Z | H | Y) && !O[4].length && O[9] == 1 ? _ = _[Gi(O[0])].apply(_, O[3]) : _ = m.length == 1 && Es(m) ? _[w]() : _.thru(m);
|
5470
5470
|
}
|
5471
5471
|
return function() {
|
5472
5472
|
var R = arguments, P = R[0];
|
5473
5473
|
if (_ && R.length == 1 && de(P))
|
5474
5474
|
return _.plant(P).value();
|
5475
|
-
for (var
|
5476
|
-
G = t[
|
5475
|
+
for (var F = 0, G = o ? t[F].apply(this, R) : P; ++F < o; )
|
5476
|
+
G = t[F].call(this, G);
|
5477
5477
|
return G;
|
5478
5478
|
};
|
5479
5479
|
});
|
5480
5480
|
}
|
5481
5481
|
function Hi(e, t, o, u, d, m, _, w, O, R) {
|
5482
|
-
var P = t & k,
|
5482
|
+
var P = t & k, F = t & U, G = t & W, Q = t & (Z | B), oe = t & X, ge = G ? r : Hr(e);
|
5483
5483
|
function se() {
|
5484
5484
|
for (var be = arguments.length, Ce = E(be), Et = be; Et--; )
|
5485
5485
|
Ce[Et] = arguments[Et];
|
@@ -5500,7 +5500,7 @@ vo.exports;
|
|
5500
5500
|
R - be
|
5501
5501
|
);
|
5502
5502
|
}
|
5503
|
-
var zt =
|
5503
|
+
var zt = F ? o : this, cn = G ? zt[e] : e;
|
5504
5504
|
return be = Ce.length, w ? Ce = Pg(Ce, w) : oe && be > 1 && Ce.reverse(), P && O < be && (Ce.length = O), this && this !== nt && this instanceof se && (cn = ge || Hr(cn)), cn.apply(zt, Ce);
|
5505
5505
|
}
|
5506
5506
|
return se;
|
@@ -5544,11 +5544,11 @@ vo.exports;
|
|
5544
5544
|
function pg(e, t, o, u) {
|
5545
5545
|
var d = t & U, m = Hr(e);
|
5546
5546
|
function _() {
|
5547
|
-
for (var w = -1, O = arguments.length, R = -1, P = u.length,
|
5548
|
-
|
5547
|
+
for (var w = -1, O = arguments.length, R = -1, P = u.length, F = E(P + O), G = this && this !== nt && this instanceof _ ? m : e; ++R < P; )
|
5548
|
+
F[R] = u[R];
|
5549
5549
|
for (; O--; )
|
5550
|
-
|
5551
|
-
return wt(G, d ? o : this,
|
5550
|
+
F[R++] = arguments[++w];
|
5551
|
+
return wt(G, d ? o : this, F);
|
5552
5552
|
}
|
5553
5553
|
return _;
|
5554
5554
|
}
|
@@ -5563,14 +5563,14 @@ vo.exports;
|
|
5563
5563
|
};
|
5564
5564
|
}
|
5565
5565
|
function Yl(e, t, o, u, d, m, _, w, O, R) {
|
5566
|
-
var P = t &
|
5566
|
+
var P = t & Z, F = P ? _ : r, G = P ? r : _, Q = P ? m : r, oe = P ? r : m;
|
5567
5567
|
t |= P ? H : M, t &= ~(P ? M : H), t & I || (t &= ~(U | W));
|
5568
5568
|
var ge = [
|
5569
5569
|
e,
|
5570
5570
|
t,
|
5571
5571
|
d,
|
5572
5572
|
Q,
|
5573
|
-
|
5573
|
+
F,
|
5574
5574
|
oe,
|
5575
5575
|
G,
|
5576
5576
|
w,
|
@@ -5604,7 +5604,7 @@ vo.exports;
|
|
5604
5604
|
throw new Nt(c);
|
5605
5605
|
var R = u ? u.length : 0;
|
5606
5606
|
if (R || (t &= ~(H | M), u = d = r), _ = _ === r ? _ : Ze(he(_), 0), w = w === r ? w : he(w), R -= d ? d.length : 0, t & M) {
|
5607
|
-
var P = u,
|
5607
|
+
var P = u, F = d;
|
5608
5608
|
u = d = r;
|
5609
5609
|
}
|
5610
5610
|
var G = O ? r : ws(e), Q = [
|
@@ -5614,15 +5614,15 @@ vo.exports;
|
|
5614
5614
|
u,
|
5615
5615
|
d,
|
5616
5616
|
P,
|
5617
|
-
|
5617
|
+
F,
|
5618
5618
|
m,
|
5619
5619
|
_,
|
5620
5620
|
w
|
5621
5621
|
];
|
5622
|
-
if (G && Tg(Q, G), e = Q[0], t = Q[1], o = Q[2], u = Q[3], d = Q[4], w = Q[9] = Q[9] === r ? O ? 0 : e.length : Ze(Q[9] - R, 0), !w && t & (
|
5622
|
+
if (G && Tg(Q, G), e = Q[0], t = Q[1], o = Q[2], u = Q[3], d = Q[4], w = Q[9] = Q[9] === r ? O ? 0 : e.length : Ze(Q[9] - R, 0), !w && t & (Z | B) && (t &= ~(Z | B)), !t || t == U)
|
5623
5623
|
var oe = hg(e, t, o);
|
5624
5624
|
else
|
5625
|
-
t ==
|
5625
|
+
t == Z || t == B ? oe = gg(e, t, w) : (t == H || t == (U | H)) && !d.length ? oe = pg(e, t, o, u) : oe = Hi.apply(r, Q);
|
5626
5626
|
var ge = G ? kl : su;
|
5627
5627
|
return au(ge(oe, Q), e, t);
|
5628
5628
|
}
|
@@ -5642,11 +5642,11 @@ vo.exports;
|
|
5642
5642
|
var R = m.get(e), P = m.get(t);
|
5643
5643
|
if (R && P)
|
5644
5644
|
return R == t && P == e;
|
5645
|
-
var
|
5646
|
-
for (m.set(e, t), m.set(t, e);
|
5647
|
-
var oe = e[
|
5645
|
+
var F = -1, G = !0, Q = o & $ ? new $n() : r;
|
5646
|
+
for (m.set(e, t), m.set(t, e); ++F < w; ) {
|
5647
|
+
var oe = e[F], ge = t[F];
|
5648
5648
|
if (u)
|
5649
|
-
var se = _ ? u(ge, oe,
|
5649
|
+
var se = _ ? u(ge, oe, F, t, e, m) : u(oe, ge, F, e, t, m);
|
5650
5650
|
if (se !== r) {
|
5651
5651
|
if (se)
|
5652
5652
|
continue;
|
@@ -5694,7 +5694,7 @@ vo.exports;
|
|
5694
5694
|
var R = _.get(e);
|
5695
5695
|
if (R)
|
5696
5696
|
return R == t;
|
5697
|
-
u |=
|
5697
|
+
u |= $, _.set(e, t);
|
5698
5698
|
var P = Xl(w(e), w(t), u, d, m, _);
|
5699
5699
|
return _.delete(e), P;
|
5700
5700
|
case Vn:
|
@@ -5707,8 +5707,8 @@ vo.exports;
|
|
5707
5707
|
var _ = o & T, w = ys(e), O = w.length, R = ys(t), P = R.length;
|
5708
5708
|
if (O != P && !_)
|
5709
5709
|
return !1;
|
5710
|
-
for (var
|
5711
|
-
var G = w[
|
5710
|
+
for (var F = O; F--; ) {
|
5711
|
+
var G = w[F];
|
5712
5712
|
if (!(_ ? G in t : Te.call(t, G)))
|
5713
5713
|
return !1;
|
5714
5714
|
}
|
@@ -5717,8 +5717,8 @@ vo.exports;
|
|
5717
5717
|
return Q == t && oe == e;
|
5718
5718
|
var ge = !0;
|
5719
5719
|
m.set(e, t), m.set(t, e);
|
5720
|
-
for (var se = _;
|
5721
|
-
G = w[
|
5720
|
+
for (var se = _; ++F < O; ) {
|
5721
|
+
G = w[F];
|
5722
5722
|
var be = e[G], Ce = t[G];
|
5723
5723
|
if (u)
|
5724
5724
|
var Et = _ ? u(Ce, be, G, t, e, m) : u(be, Ce, G, e, t, m);
|
@@ -5951,7 +5951,7 @@ vo.exports;
|
|
5951
5951
|
return t;
|
5952
5952
|
}
|
5953
5953
|
function Tg(e, t) {
|
5954
|
-
var o = e[1], u = t[1], d = o | u, m = d < (U | W | k), _ = u == k && o ==
|
5954
|
+
var o = e[1], u = t[1], d = o | u, m = d < (U | W | k), _ = u == k && o == Z || u == k && o == Y && e[7].length <= t[8] || u == (k | Y) && t[7].length <= t[8] && o == Z;
|
5955
5955
|
if (!(m || _))
|
5956
5956
|
return e;
|
5957
5957
|
u & U && (e[2] = t[2], d |= o & U ? 0 : I);
|
@@ -6528,7 +6528,7 @@ vo.exports;
|
|
6528
6528
|
});
|
6529
6529
|
function Cu(e, t, o) {
|
6530
6530
|
t = o ? r : t;
|
6531
|
-
var u = on(e,
|
6531
|
+
var u = on(e, Z, r, r, r, r, r, t);
|
6532
6532
|
return u.placeholder = Cu.placeholder, u;
|
6533
6533
|
}
|
6534
6534
|
function Su(e, t, o) {
|
@@ -6537,10 +6537,10 @@ vo.exports;
|
|
6537
6537
|
return u.placeholder = Su.placeholder, u;
|
6538
6538
|
}
|
6539
6539
|
function Ou(e, t, o) {
|
6540
|
-
var u, d, m, _, w, O, R = 0, P = !1,
|
6540
|
+
var u, d, m, _, w, O, R = 0, P = !1, F = !1, G = !0;
|
6541
6541
|
if (typeof e != "function")
|
6542
6542
|
throw new Nt(c);
|
6543
|
-
t = Ft(t) || 0, Be(o) && (P = !!o.leading,
|
6543
|
+
t = Ft(t) || 0, Be(o) && (P = !!o.leading, F = "maxWait" in o, m = F ? Ze(Ft(o.maxWait) || 0, t) : m, G = "trailing" in o ? !!o.trailing : G);
|
6544
6544
|
function Q(qe) {
|
6545
6545
|
var zt = u, cn = d;
|
6546
6546
|
return u = d = r, R = qe, _ = e.apply(cn, zt), _;
|
@@ -6550,11 +6550,11 @@ vo.exports;
|
|
6550
6550
|
}
|
6551
6551
|
function ge(qe) {
|
6552
6552
|
var zt = qe - O, cn = qe - R, zu = t - zt;
|
6553
|
-
return
|
6553
|
+
return F ? ot(zu, m - cn) : zu;
|
6554
6554
|
}
|
6555
6555
|
function se(qe) {
|
6556
6556
|
var zt = qe - O, cn = qe - R;
|
6557
|
-
return O === r || zt >= t || zt < 0 ||
|
6557
|
+
return O === r || zt >= t || zt < 0 || F && cn >= m;
|
6558
6558
|
}
|
6559
6559
|
function be() {
|
6560
6560
|
var qe = Zi();
|
@@ -6576,7 +6576,7 @@ vo.exports;
|
|
6576
6576
|
if (u = arguments, d = this, O = qe, zt) {
|
6577
6577
|
if (w === r)
|
6578
6578
|
return oe(O);
|
6579
|
-
if (
|
6579
|
+
if (F)
|
6580
6580
|
return Ml(w), w = zr(be, t), Q(O);
|
6581
6581
|
}
|
6582
6582
|
return w === r && (w = zr(be, t)), _;
|
@@ -6589,7 +6589,7 @@ vo.exports;
|
|
6589
6589
|
return gl(e, Ft(t) || 0, o);
|
6590
6590
|
});
|
6591
6591
|
function _m(e) {
|
6592
|
-
return on(e,
|
6592
|
+
return on(e, X);
|
6593
6593
|
}
|
6594
6594
|
function Xi(e, t) {
|
6595
6595
|
if (typeof e != "function" || t != null && typeof t != "function")
|
@@ -7120,40 +7120,40 @@ vo.exports;
|
|
7120
7120
|
function ev(e, t, o) {
|
7121
7121
|
var u = g.templateSettings;
|
7122
7122
|
o && ut(e, t, o) && (t = r), e = Le(e), t = no({}, t, u, Jl);
|
7123
|
-
var d = no({}, t.imports, u.imports, Jl), m = Xe(d), _ = Yo(d, m), w, O, R = 0, P = t.interpolate || Bt,
|
7123
|
+
var d = no({}, t.imports, u.imports, Jl), m = Xe(d), _ = Yo(d, m), w, O, R = 0, P = t.interpolate || Bt, F = "__p += '", G = Jo(
|
7124
7124
|
(t.escape || Bt).source + "|" + P.source + "|" + (P === di ? Oe : Bt).source + "|" + (t.evaluate || Bt).source + "|$",
|
7125
7125
|
"g"
|
7126
7126
|
), Q = "//# sourceURL=" + (Te.call(t, "sourceURL") ? (t.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++ud + "]") + `
|
7127
7127
|
`;
|
7128
7128
|
e.replace(G, function(se, be, Ce, Et, ct, It) {
|
7129
|
-
return Ce || (Ce = Et),
|
7129
|
+
return Ce || (Ce = Et), F += e.slice(R, It).replace(mi, kd), be && (w = !0, F += `' +
|
7130
7130
|
__e(` + be + `) +
|
7131
|
-
'`), ct && (O = !0,
|
7131
|
+
'`), ct && (O = !0, F += `';
|
7132
7132
|
` + ct + `;
|
7133
|
-
__p += '`), Ce && (
|
7133
|
+
__p += '`), Ce && (F += `' +
|
7134
7134
|
((__t = (` + Ce + `)) == null ? '' : __t) +
|
7135
7135
|
'`), R = It + se.length, se;
|
7136
|
-
}),
|
7136
|
+
}), F += `';
|
7137
7137
|
`;
|
7138
7138
|
var oe = Te.call(t, "variable") && t.variable;
|
7139
7139
|
if (!oe)
|
7140
|
-
|
7141
|
-
` +
|
7140
|
+
F = `with (obj) {
|
7141
|
+
` + F + `
|
7142
7142
|
}
|
7143
7143
|
`;
|
7144
7144
|
else if (K.test(oe))
|
7145
7145
|
throw new fe(f);
|
7146
|
-
|
7146
|
+
F = (O ? F.replace(Ao, "") : F).replace(Ir, "$1").replace(ui, "$1;"), F = "function(" + (oe || "obj") + `) {
|
7147
7147
|
` + (oe ? "" : `obj || (obj = {});
|
7148
7148
|
`) + "var __t, __p = ''" + (w ? ", __e = _.escape" : "") + (O ? `, __j = Array.prototype.join;
|
7149
7149
|
function print() { __p += __j.call(arguments, '') }
|
7150
7150
|
` : `;
|
7151
|
-
`) +
|
7151
|
+
`) + F + `return __p
|
7152
7152
|
}`;
|
7153
7153
|
var ge = Hu(function() {
|
7154
|
-
return Ie(m, Q + "return " +
|
7154
|
+
return Ie(m, Q + "return " + F).apply(r, _);
|
7155
7155
|
});
|
7156
|
-
if (ge.source =
|
7156
|
+
if (ge.source = F, Rs(ge))
|
7157
7157
|
throw ge;
|
7158
7158
|
return ge;
|
7159
7159
|
}
|
@@ -7211,8 +7211,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
7211
7211
|
if (e.slice(w).search(d)) {
|
7212
7212
|
var R, P = O;
|
7213
7213
|
for (d.global || (d = Jo(d.source, Le(ke.exec(d)) + "g")), d.lastIndex = 0; R = d.exec(P); )
|
7214
|
-
var
|
7215
|
-
O = O.slice(0,
|
7214
|
+
var F = R.index;
|
7215
|
+
O = O.slice(0, F === r ? w : F);
|
7216
7216
|
}
|
7217
7217
|
} else if (e.indexOf(St(d), w) != w) {
|
7218
7218
|
var G = O.lastIndexOf(d);
|
@@ -7296,8 +7296,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
7296
7296
|
e[w] = O, _ && (e.prototype[w] = function() {
|
7297
7297
|
var R = this.__chain__;
|
7298
7298
|
if (m || R) {
|
7299
|
-
var P = e(this.__wrapped__),
|
7300
|
-
return
|
7299
|
+
var P = e(this.__wrapped__), F = P.__actions__ = ht(this.__actions__);
|
7300
|
+
return F.push({ func: O, args: arguments, thisArg: e }), P.__chain__ = R, P;
|
7301
7301
|
}
|
7302
7302
|
return O.apply(e, mn([this.value()], arguments));
|
7303
7303
|
});
|
@@ -7448,7 +7448,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
7448
7448
|
}, qt(we.prototype, function(e, t) {
|
7449
7449
|
var o = /^(?:filter|find|map|reject)|While$/.test(t), u = /^(?:head|last)$/.test(t), d = g[u ? "take" + (t == "last" ? "Right" : "") : t], m = u || /^find/.test(t);
|
7450
7450
|
d && (g.prototype[t] = function() {
|
7451
|
-
var _ = this.__wrapped__, w = u ? [1] : arguments, O = _ instanceof we, R = w[0], P = O || de(_),
|
7451
|
+
var _ = this.__wrapped__, w = u ? [1] : arguments, O = _ instanceof we, R = w[0], P = O || de(_), F = function(be) {
|
7452
7452
|
var Ce = d.apply(g, mn([be], w));
|
7453
7453
|
return u && G ? Ce[0] : Ce;
|
7454
7454
|
};
|
@@ -7457,9 +7457,9 @@ function print() { __p += __j.call(arguments, '') }
|
|
7457
7457
|
if (!m && P) {
|
7458
7458
|
_ = ge ? _ : new we(this);
|
7459
7459
|
var se = e.apply(_, w);
|
7460
|
-
return se.__actions__.push({ func: Vi, args: [
|
7460
|
+
return se.__actions__.push({ func: Vi, args: [F], thisArg: r }), new Rt(se, G);
|
7461
7461
|
}
|
7462
|
-
return oe && ge ? e.apply(this, w) : (se = this.thru(
|
7462
|
+
return oe && ge ? e.apply(this, w) : (se = this.thru(F), oe ? u ? se.value()[0] : se.value() : se);
|
7463
7463
|
});
|
7464
7464
|
}), Tt(["pop", "push", "shift", "sort", "splice", "unshift"], function(e) {
|
7465
7465
|
var t = xi[e], o = /^(?:push|sort|unshift)$/.test(e) ? "tap" : "thru", u = /^(?:pop|shift)$/.test(e);
|
@@ -8321,8 +8321,8 @@ kn.prototype = {
|
|
8321
8321
|
var x = (s = a.timeout) !== null && s !== void 0 ? s : 1 / 0, A = Date.now() + x, T = [{
|
8322
8322
|
oldPos: -1,
|
8323
8323
|
lastComponent: void 0
|
8324
|
-
}],
|
8325
|
-
if (T[0].oldPos + 1 >= p &&
|
8324
|
+
}], $ = this.extractCommon(T[0], r, n, 0);
|
8325
|
+
if (T[0].oldPos + 1 >= p && $ + 1 >= h)
|
8326
8326
|
return f([{
|
8327
8327
|
value: this.join(r),
|
8328
8328
|
count: r.length
|
@@ -8334,17 +8334,17 @@ kn.prototype = {
|
|
8334
8334
|
M && (T[B - 1] = void 0);
|
8335
8335
|
var Y = !1;
|
8336
8336
|
if (k) {
|
8337
|
-
var
|
8338
|
-
Y = k && 0 <=
|
8337
|
+
var X = k.oldPos - B;
|
8338
|
+
Y = k && 0 <= X && X < h;
|
8339
8339
|
}
|
8340
8340
|
var J = M && M.oldPos + 1 < p;
|
8341
8341
|
if (!Y && !J) {
|
8342
8342
|
T[B] = void 0;
|
8343
8343
|
continue;
|
8344
8344
|
}
|
8345
|
-
if (!J || Y && M.oldPos + 1 < k.oldPos ? H = c.addToPath(k, !0, void 0, 0) : H = c.addToPath(M, void 0, !0, 1),
|
8345
|
+
if (!J || Y && M.oldPos + 1 < k.oldPos ? H = c.addToPath(k, !0, void 0, 0) : H = c.addToPath(M, void 0, !0, 1), $ = c.extractCommon(H, r, n, B), H.oldPos + 1 >= p && $ + 1 >= h)
|
8346
8346
|
return f(l1(c, H.lastComponent, r, n, c.useLongestToken));
|
8347
|
-
T[B] = H, H.oldPos + 1 >= p && (W = Math.min(W, B - 1)),
|
8347
|
+
T[B] = H, H.oldPos + 1 >= p && (W = Math.min(W, B - 1)), $ + 1 >= h && (U = Math.max(U, B + 1));
|
8348
8348
|
}
|
8349
8349
|
v++;
|
8350
8350
|
}
|
@@ -8358,9 +8358,9 @@ kn.prototype = {
|
|
8358
8358
|
})();
|
8359
8359
|
else
|
8360
8360
|
for (; v <= b && Date.now() <= A; ) {
|
8361
|
-
var
|
8362
|
-
if (
|
8363
|
-
return
|
8361
|
+
var Z = I();
|
8362
|
+
if (Z)
|
8363
|
+
return Z;
|
8364
8364
|
}
|
8365
8365
|
},
|
8366
8366
|
addToPath: function(n, r, s, a) {
|
@@ -8423,9 +8423,9 @@ function l1(i, n, r, s, a) {
|
|
8423
8423
|
} else {
|
8424
8424
|
if (!b.added && a) {
|
8425
8425
|
var x = r.slice(p, p + b.count);
|
8426
|
-
x = x.map(function(
|
8426
|
+
x = x.map(function($, U) {
|
8427
8427
|
var W = s[v + U];
|
8428
|
-
return W.length >
|
8428
|
+
return W.length > $.length ? W : $;
|
8429
8429
|
}), b.value = i.join(x);
|
8430
8430
|
} else
|
8431
8431
|
b.value = i.join(r.slice(p, p + b.count));
|
@@ -8780,9 +8780,9 @@ class g1 {
|
|
8780
8780
|
openCodeEditor: (p, v, b) => {
|
8781
8781
|
const x = n1(p, b);
|
8782
8782
|
if (x) {
|
8783
|
-
const { index: A, docValue: T } = x, { title:
|
8783
|
+
const { index: A, docValue: T } = x, { title: $, name: U } = T[A];
|
8784
8784
|
let W = "";
|
8785
|
-
switch (
|
8785
|
+
switch ($) {
|
8786
8786
|
case Ae.keywords:
|
8787
8787
|
W = "kw";
|
8788
8788
|
break;
|
@@ -9582,7 +9582,7 @@ const ty = (i, n) => {
|
|
9582
9582
|
} = c;
|
9583
9583
|
let p = i || a || l.options?.defaultNS;
|
9584
9584
|
p = zn(p) ? [p] : p || ["translation"], l.reportNamespaces.addUsedNamespaces?.(p);
|
9585
|
-
const v = (l.isInitialized || l.initializedStoreOnce) && p.every((B) => H1(B, l, c)), b = ny(l, n.lng || null, c.nsMode === "fallback" ? p : p[0], h), x = () => b, A = () => Mf(l, n.lng || null, c.nsMode === "fallback" ? p : p[0], h), [T,
|
9585
|
+
const v = (l.isInitialized || l.initializedStoreOnce) && p.every((B) => H1(B, l, c)), b = ny(l, n.lng || null, c.nsMode === "fallback" ? p : p[0], h), x = () => b, A = () => Mf(l, n.lng || null, c.nsMode === "fallback" ? p : p[0], h), [T, $] = Re(x);
|
9586
9586
|
let U = p.join();
|
9587
9587
|
n.lng && (U = `${n.lng}${U}`);
|
9588
9588
|
const W = ty(U), I = Se(!0);
|
@@ -9592,22 +9592,22 @@ const ty = (i, n) => {
|
|
9592
9592
|
bindI18nStore: H
|
9593
9593
|
} = c;
|
9594
9594
|
I.current = !0, !v && !f && (n.lng ? xc(l, n.lng, p, () => {
|
9595
|
-
I.current &&
|
9595
|
+
I.current && $(A);
|
9596
9596
|
}) : oa(l, p, () => {
|
9597
|
-
I.current &&
|
9598
|
-
})), v && W && W !== U && I.current &&
|
9597
|
+
I.current && $(A);
|
9598
|
+
})), v && W && W !== U && I.current && $(A);
|
9599
9599
|
const M = () => {
|
9600
|
-
I.current &&
|
9600
|
+
I.current && $(A);
|
9601
9601
|
};
|
9602
9602
|
return B && l?.on(B, M), H && l?.store.on(H, M), () => {
|
9603
9603
|
I.current = !1, l && B?.split(" ").forEach((k) => l.off(k, M)), H && l && H.split(" ").forEach((k) => l.store.off(k, M));
|
9604
9604
|
};
|
9605
9605
|
}, [l, U]), Ee(() => {
|
9606
|
-
I.current && v &&
|
9606
|
+
I.current && v && $(x);
|
9607
9607
|
}, [l, h, v]);
|
9608
|
-
const
|
9609
|
-
if (
|
9610
|
-
return
|
9608
|
+
const Z = [T, l, v];
|
9609
|
+
if (Z.t = T, Z.i18n = l, Z.ready = v, v || !v && !f)
|
9610
|
+
return Z;
|
9611
9611
|
throw new Promise((B) => {
|
9612
9612
|
n.lng ? xc(l, n.lng, p, () => B()) : oa(l, p, () => B());
|
9613
9613
|
});
|
@@ -9757,7 +9757,7 @@ fa.config({
|
|
9757
9757
|
"vs/nls": { availableLanguages: { "*": "zh-cn" } }
|
9758
9758
|
});
|
9759
9759
|
const oy = (i, n) => {
|
9760
|
-
const { height: r, width: s, theme: a, options: l, hasDiff: c, readOnly: f, defaultValue: h, language: p, onChange: v, onLinkOpen: b, onCursorPositionChange: x, onActionTrigger: A, onEditorDidMount: T, onVersionChange:
|
9760
|
+
const { height: r, width: s, theme: a, options: l, hasDiff: c, readOnly: f, defaultValue: h, language: p, onChange: v, onLinkOpen: b, onCursorPositionChange: x, onActionTrigger: A, onEditorDidMount: T, onVersionChange: $ } = i, { t: U, i18n: W } = br(), I = Se(null), Z = Se(null), B = Se(!1), H = Se(!1);
|
9761
9761
|
uf(n, () => ({
|
9762
9762
|
setOriginalScript(ee) {
|
9763
9763
|
I.current?.setOriginalScript(ee);
|
@@ -9800,7 +9800,7 @@ const oy = (i, n) => {
|
|
9800
9800
|
}
|
9801
9801
|
const k = On(async (ee) => {
|
9802
9802
|
const ye = I.current?.getVersion();
|
9803
|
-
|
9803
|
+
$ && $(ye || _r), B.current = !1;
|
9804
9804
|
const { errors: z, functions: te, methods: q, types: ie, variables: le, overloadsFuncs: D, imports: ne, enums: me } = await E1(ee, !1, ye), ue = new Map(Object.entries(te)), De = new Map(Object.entries(q)), Ke = new Map(Object.entries(ie)), it = new Map(Object.entries(le)), et = new Map(Object.entries(ne)), Ve = new Map(Object.entries(me));
|
9805
9805
|
An.setUserDefined({
|
9806
9806
|
functions: ue,
|
@@ -9816,7 +9816,7 @@ const oy = (i, n) => {
|
|
9816
9816
|
}));
|
9817
9817
|
f || !B.current && !H.current && _t.length && I.current?.setModelMarkers(_t);
|
9818
9818
|
}, [f]), Y = Jv(() => Wb.debounce(k, 1500), [k]);
|
9819
|
-
function
|
9819
|
+
function X(ee) {
|
9820
9820
|
if (f) {
|
9821
9821
|
k(ee || "");
|
9822
9822
|
return;
|
@@ -9824,17 +9824,17 @@ const oy = (i, n) => {
|
|
9824
9824
|
B.current = !0, _o.clearInlayHints(), I.current?.setModelMarkers([]), ee !== void 0 && (v && v(ee), Y(ee));
|
9825
9825
|
}
|
9826
9826
|
const J = On(() => {
|
9827
|
-
const ee =
|
9827
|
+
const ee = Z.current?.getBoundingClientRect();
|
9828
9828
|
I.current?.setEditorLayout(ee?.height || 0, ee?.width);
|
9829
9829
|
}, []);
|
9830
9830
|
return Ee(() => {
|
9831
9831
|
const ee = () => {
|
9832
9832
|
window.requestAnimationFrame(J);
|
9833
9833
|
}, ye = new ResizeObserver(ee);
|
9834
|
-
return
|
9835
|
-
|
9834
|
+
return Z.current && ye.observe(Z.current), () => {
|
9835
|
+
Z.current && ye.unobserve(Z.current), ye.disconnect(), I.current?.dispose();
|
9836
9836
|
};
|
9837
|
-
}, []), C.jsx("div", { ref:
|
9837
|
+
}, []), C.jsx("div", { ref: Z, children: C.jsx(lb, { height: r, width: s || "100%", defaultLanguage: ze, defaultValue: h || `indicator("我的脚本")
|
9838
9838
|
plot(close)
|
9839
9839
|
`, theme: a || "vs-dark", className: `tvue-script ${a || "vs-dark"}`, options: {
|
9840
9840
|
colorDecorators: !0,
|
@@ -9856,7 +9856,7 @@ plot(close)
|
|
9856
9856
|
value: U("This script is read-only. It cannot be edited.")
|
9857
9857
|
},
|
9858
9858
|
...l
|
9859
|
-
}, onMount: M, onChange:
|
9859
|
+
}, onMount: M, onChange: X }) });
|
9860
9860
|
}, My = lf(oy), $y = (i) => {
|
9861
9861
|
const { theme: n, modified: r, original: s, height: a, width: l, renderSideBySide: c = !0, version: f = 5 } = i, h = On(async (p, v) => {
|
9862
9862
|
v.languages.register({
|
@@ -10129,35 +10129,35 @@ async function ba(i, n = 0) {
|
|
10129
10129
|
name: s,
|
10130
10130
|
orirginalName: s
|
10131
10131
|
};
|
10132
|
-
if (i.length > 1 && (T.overloads = `${i.length} ${Me.t("overloads")}`), l && (T.type = l), a && (T.name = `${s}()`, T.args = a.map((
|
10133
|
-
const { name: U, desc: W, displayType: I } =
|
10132
|
+
if (i.length > 1 && (T.overloads = `${i.length} ${Me.t("overloads")}`), l && (T.type = l), a && (T.name = `${s}()`, T.args = a.map(($) => {
|
10133
|
+
const { name: U, desc: W, displayType: I } = $;
|
10134
10134
|
return {
|
10135
10135
|
label: `${U} (${I})`,
|
10136
10136
|
desc: W && Hn(W)
|
10137
10137
|
};
|
10138
|
-
})), c && (T.desc = c.map((
|
10138
|
+
})), c && (T.desc = c.map(($) => Hn($))), f && (T.originalExample = f.join(`
|
10139
10139
|
`), T.examples = await En.colorize(T.originalExample, ze, {
|
10140
10140
|
tabSize: 4
|
10141
10141
|
})), b) {
|
10142
10142
|
T.detailedDesc = [];
|
10143
|
-
for (const
|
10144
|
-
const { desc: U, examples: W } =
|
10145
|
-
let I = U.map((H) => Hn(H)),
|
10143
|
+
for (const $ of b) {
|
10144
|
+
const { desc: U, examples: W } = $;
|
10145
|
+
let I = U.map((H) => Hn(H)), Z, B;
|
10146
10146
|
W && (B = W.join(`
|
10147
|
-
`),
|
10147
|
+
`), Z = await Sy(B)), T.detailedDesc.push({
|
10148
10148
|
desc: I,
|
10149
|
-
examples:
|
10149
|
+
examples: Z,
|
10150
10150
|
originalExample: B
|
10151
10151
|
});
|
10152
10152
|
}
|
10153
10153
|
}
|
10154
|
-
return A && (T.returns = A.map((
|
10155
|
-
const { name: U, desc: W, type: I } =
|
10154
|
+
return A && (T.returns = A.map(($) => Hn($))), h && (T.remarks = typeof h == "string" ? [Hn(h)] : h.map(($) => Hn($))), v && (T.syntax = i.map(($) => $.syntax?.[0])), x && (T.fields = x.map(($) => {
|
10155
|
+
const { name: U, desc: W, type: I } = $;
|
10156
10156
|
return {
|
10157
10157
|
label: `${U} (${I})`,
|
10158
10158
|
desc: W && Hn(W)
|
10159
10159
|
};
|
10160
|
-
})), p && (T.seeAlso = p.map((
|
10160
|
+
})), p && (T.seeAlso = p.map(($) => Oy($))), T;
|
10161
10161
|
}
|
10162
10162
|
function Oy(i) {
|
10163
10163
|
const r = /\[([^\[\]]+)\]\(([^\(\)]+)\)/g.exec(i);
|
@@ -10203,7 +10203,7 @@ function Bf(i, n, r, s) {
|
|
10203
10203
|
}));
|
10204
10204
|
const b = s[f.key].get(p) || [];
|
10205
10205
|
for (const x of b) {
|
10206
|
-
const { name: A, args: T, type:
|
10206
|
+
const { name: A, args: T, type: $, desc: U, examples: W, remarks: I, seeAlso: Z, syntax: B, detailedDesc: H, fields: M, returns: k } = x, Y = {
|
10207
10207
|
label: A,
|
10208
10208
|
index: h,
|
10209
10209
|
group: f,
|
@@ -10212,39 +10212,39 @@ function Bf(i, n, r, s) {
|
|
10212
10212
|
if (f.prefix === "fun" && (Y.label = `${A}()`), Y.label.includes(i))
|
10213
10213
|
break;
|
10214
10214
|
if (T) {
|
10215
|
-
let
|
10215
|
+
let X = !1;
|
10216
10216
|
for (const J of T) {
|
10217
10217
|
const { name: ee, desc: ye, displayType: z } = J;
|
10218
10218
|
if (ee.includes(i) || ye?.includes(i) || z?.includes(i)) {
|
10219
|
-
c.push(Y),
|
10219
|
+
c.push(Y), X = !0;
|
10220
10220
|
break;
|
10221
10221
|
}
|
10222
10222
|
}
|
10223
|
-
if (
|
10223
|
+
if (X)
|
10224
10224
|
break;
|
10225
10225
|
}
|
10226
|
-
if (
|
10226
|
+
if ($ && $.includes(i)) {
|
10227
10227
|
c.push(Y);
|
10228
10228
|
break;
|
10229
10229
|
}
|
10230
10230
|
if (U) {
|
10231
|
-
let
|
10231
|
+
let X = !1;
|
10232
10232
|
for (const J of U)
|
10233
10233
|
if (J.includes(i)) {
|
10234
|
-
c.push(Y),
|
10234
|
+
c.push(Y), X = !0;
|
10235
10235
|
break;
|
10236
10236
|
}
|
10237
|
-
if (
|
10237
|
+
if (X)
|
10238
10238
|
break;
|
10239
10239
|
}
|
10240
10240
|
if (W) {
|
10241
|
-
let
|
10241
|
+
let X = !1;
|
10242
10242
|
for (const J of W)
|
10243
10243
|
if (J.includes(i)) {
|
10244
|
-
c.push(Y),
|
10244
|
+
c.push(Y), X = !0;
|
10245
10245
|
break;
|
10246
10246
|
}
|
10247
|
-
if (
|
10247
|
+
if (X)
|
10248
10248
|
break;
|
10249
10249
|
}
|
10250
10250
|
if (I && (typeof I == "string" ? I : I.join(`
|
@@ -10253,53 +10253,53 @@ function Bf(i, n, r, s) {
|
|
10253
10253
|
break;
|
10254
10254
|
}
|
10255
10255
|
if (B) {
|
10256
|
-
let
|
10256
|
+
let X = !1;
|
10257
10257
|
for (const J of B)
|
10258
10258
|
if (J.includes(i)) {
|
10259
|
-
c.push(Y),
|
10259
|
+
c.push(Y), X = !0;
|
10260
10260
|
break;
|
10261
10261
|
}
|
10262
|
-
if (
|
10262
|
+
if (X)
|
10263
10263
|
break;
|
10264
10264
|
}
|
10265
10265
|
if (H) {
|
10266
|
-
let
|
10266
|
+
let X = !1;
|
10267
10267
|
for (const J of H) {
|
10268
10268
|
const { desc: ee, examples: ye } = J;
|
10269
10269
|
if (ee.join(`
|
10270
10270
|
`).includes(i)) {
|
10271
|
-
c.push(Y),
|
10271
|
+
c.push(Y), X = !0;
|
10272
10272
|
break;
|
10273
10273
|
}
|
10274
10274
|
if (ye?.join(`
|
10275
10275
|
`)?.includes(i)) {
|
10276
|
-
c.push(Y),
|
10276
|
+
c.push(Y), X = !0;
|
10277
10277
|
break;
|
10278
10278
|
}
|
10279
10279
|
}
|
10280
|
-
if (
|
10280
|
+
if (X)
|
10281
10281
|
break;
|
10282
10282
|
}
|
10283
10283
|
if (M) {
|
10284
|
-
let
|
10284
|
+
let X = !1;
|
10285
10285
|
for (const J of M) {
|
10286
10286
|
const { name: ee, desc: ye, type: z } = J;
|
10287
10287
|
if (ee.includes(i) || ye?.includes(i) || z?.includes(i)) {
|
10288
|
-
c.push(Y),
|
10288
|
+
c.push(Y), X = !0;
|
10289
10289
|
break;
|
10290
10290
|
}
|
10291
10291
|
}
|
10292
|
-
if (
|
10292
|
+
if (X)
|
10293
10293
|
break;
|
10294
10294
|
}
|
10295
10295
|
if (k) {
|
10296
|
-
let
|
10296
|
+
let X = !1;
|
10297
10297
|
for (const J of k)
|
10298
10298
|
if (J.includes(i)) {
|
10299
|
-
c.push(Y),
|
10299
|
+
c.push(Y), X = !0;
|
10300
10300
|
break;
|
10301
10301
|
}
|
10302
|
-
if (
|
10302
|
+
if (X)
|
10303
10303
|
break;
|
10304
10304
|
}
|
10305
10305
|
}
|
@@ -10310,16 +10310,16 @@ function Bf(i, n, r, s) {
|
|
10310
10310
|
};
|
10311
10311
|
}
|
10312
10312
|
const Ey = (i) => {
|
10313
|
-
const { group: n, itemKey: r, onItemClick: s, currentIndex: a, keyMaps: l, version: c } = i, { t: f } = br(), [h, p] = Re(), [v, b] = Re(""), [x, A] = Re(0), [T,
|
10313
|
+
const { group: n, itemKey: r, onItemClick: s, currentIndex: a, keyMaps: l, version: c } = i, { t: f } = br(), [h, p] = Re(), [v, b] = Re(""), [x, A] = Re(0), [T, $] = Re(f("Copy code")), [U, W] = Re(f("Copy link"));
|
10314
10314
|
Ee(() => {
|
10315
10315
|
I(a);
|
10316
10316
|
}, [r, l]);
|
10317
10317
|
const I = (k) => {
|
10318
|
-
const Y = r.replace(`${n?.prefix}_`, ""),
|
10319
|
-
A(k),
|
10318
|
+
const Y = r.replace(`${n?.prefix}_`, ""), X = l?.[n?.key]?.get(Y);
|
10319
|
+
A(k), X && ba(X, k).then((J) => {
|
10320
10320
|
p(J), b(`${window.location.origin}/reference-manual/v${c}/#${n?.prefix}_${J?.orirginalName}`);
|
10321
10321
|
});
|
10322
|
-
},
|
10322
|
+
}, Z = (k) => {
|
10323
10323
|
I(k);
|
10324
10324
|
}, B = (k) => {
|
10325
10325
|
if (k.target.localName === "a" && k.target.hash && k.target?.dataset?.name) {
|
@@ -10328,8 +10328,8 @@ const Ey = (i) => {
|
|
10328
10328
|
s(Y.replace("#", ""));
|
10329
10329
|
}
|
10330
10330
|
}, H = () => {
|
10331
|
-
|
10332
|
-
|
10331
|
+
$(f("Copied")), setTimeout(() => {
|
10332
|
+
$(f("Copy code"));
|
10333
10333
|
}, 1e3);
|
10334
10334
|
}, M = () => {
|
10335
10335
|
W(f("Link copied")), setTimeout(() => {
|
@@ -10338,14 +10338,14 @@ const Ey = (i) => {
|
|
10338
10338
|
};
|
10339
10339
|
return C.jsx("div", { onClick: B, id: `#${r}`, children: C.jsxs("div", { className: "manual-content-wrapper", children: [C.jsxs("div", { className: "manual-content-header", children: [C.jsxs("div", { children: [C.jsx("h3", { className: "manual-content-header-title", children: h?.name }), !!h?.overloads && C.jsx("span", { className: "manual-content-header-overloads", children: h?.overloads })] }), C.jsx(vr, { text: v, onCopy: M, children: C.jsx("div", { "data-tooltip": U, className: "manual-content-btn", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 28 28", width: "28", height: "28", children: C.jsxs("g", { fill: "currentColor", children: [C.jsx("path", { fillRule: "nonzero", d: "M15.039 5.969l-.019-.019-2.828 2.828.707.707 2.474-2.474c1.367-1.367 3.582-1.367 4.949 0s1.367 3.582 0 4.949l-2.474 2.474.707.707 2.828-2.828-.019-.019c1.415-1.767 1.304-4.352-.334-5.99-1.638-1.638-4.224-1.749-5.99-.334zM5.97 15.038l-.019-.019 2.828-2.828.707.707-2.475 2.475c-1.367 1.367-1.367 3.582 0 4.949s3.582 1.367 4.949 0l2.474-2.474.707.707-2.828 2.828-.019-.019c-1.767 1.415-4.352 1.304-5.99-.334-1.638-1.638-1.749-4.224-.334-5.99z" }), C.jsx("path", { d: "M10.485 16.141l5.656-5.656.707.707-5.656 5.656z" })] }) }) }) })] }), h?.desc?.map((k, Y) => C.jsx("div", { dangerouslySetInnerHTML: {
|
10340
10340
|
__html: k
|
10341
|
-
}, className: "manual-content-text" }, Y)), h?.type && C.jsxs(Ye, { children: [C.jsx("div", { className: "manual-content-sub-title", children: f("type") }), C.jsx("div", { className: "manual-content-text", children: h.type })] }), h?.syntax && C.jsxs(Ye, { children: [C.jsxs("div", { className: "manual-content-sub-title", children: [f("syntax"), " ", !!h?.overloads && `& ${f("overloads")}`] }), h.syntax.map((k, Y) => (h.syntax?.length || 0) > 1 ? C.jsx("div", { onClick: () =>
|
10341
|
+
}, className: "manual-content-text" }, Y)), h?.type && C.jsxs(Ye, { children: [C.jsx("div", { className: "manual-content-sub-title", children: f("type") }), C.jsx("div", { className: "manual-content-text", children: h.type })] }), h?.syntax && C.jsxs(Ye, { children: [C.jsxs("div", { className: "manual-content-sub-title", children: [f("syntax"), " ", !!h?.overloads && `& ${f("overloads")}`] }), h.syntax.map((k, Y) => (h.syntax?.length || 0) > 1 ? C.jsx("div", { onClick: () => Z(Y), children: C.jsx("pre", { className: `manual-content-syntax with-overloads ${Y === x ? "selected" : ""}`, children: k }) }, Y) : C.jsx("pre", { className: "manual-content-syntax", children: k }, Y))] }), h?.args && C.jsxs(Ye, { children: [C.jsx("div", { className: "manual-content-sub-title", children: f("arguments") }), h.args.map((k, Y) => C.jsxs("div", { className: "manual-content-text", children: [C.jsx("span", { className: "manual-content-args-label", children: k.label }), " ", C.jsx("span", { dangerouslySetInnerHTML: {
|
10342
10342
|
__html: k.desc || ""
|
10343
10343
|
} })] }, Y))] }), h?.fields && C.jsxs(Ye, { children: [C.jsx("div", { className: "manual-content-sub-title", children: f("fields") }), h.fields.map((k, Y) => C.jsxs("div", { className: "manual-content-text", children: [C.jsx("span", { className: "manual-content-args-label", children: k.label }), " ", C.jsx("span", { dangerouslySetInnerHTML: {
|
10344
10344
|
__html: k.desc || ""
|
10345
10345
|
} })] }, Y))] }), h?.examples && C.jsxs(Ye, { children: [C.jsxs("div", { className: "manual-content-sub-title manual-content-example-header", children: [C.jsx("div", { children: C.jsx("span", { children: f("example") }) }), C.jsx(vr, { text: h.originalExample || "", onCopy: H, children: C.jsx("div", { "data-tooltip": T, className: "manual-content-btn manual-content-example-copy", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", fill: "none", children: C.jsx("path", { stroke: "currentColor", d: "M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z" }) }) }) })] }), C.jsx("pre", { className: "manual-content-example", children: C.jsx("code", { dangerouslySetInnerHTML: {
|
10346
10346
|
__html: h.examples
|
10347
|
-
} }) })] }), h?.detailedDesc && h.detailedDesc.map((k, Y) => C.jsxs(Ye, { children: [k.desc.map((
|
10348
|
-
__html:
|
10347
|
+
} }) })] }), h?.detailedDesc && h.detailedDesc.map((k, Y) => C.jsxs(Ye, { children: [k.desc.map((X, J) => C.jsx("div", { className: "manual-content-text", dangerouslySetInnerHTML: {
|
10348
|
+
__html: X
|
10349
10349
|
} }, J)), C.jsxs("div", { className: "manual-content-sub-title manual-content-example-header", children: [C.jsx("div", { children: C.jsx("span", { children: f("example") }) }), C.jsx(vr, { text: k.originalExample || "", onCopy: H, children: C.jsx("div", { "data-tooltip": T, className: "manual-content-btn manual-content-example-copy", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", fill: "none", children: C.jsx("path", { stroke: "currentColor", d: "M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z" }) }) }) })] }), C.jsx("pre", { className: "manual-content-example", children: C.jsx("code", { dangerouslySetInnerHTML: {
|
10350
10350
|
__html: k.examples || ""
|
10351
10351
|
} }) })] }, Y)), h?.returns && C.jsxs(Ye, { children: [C.jsx("div", { className: "manual-content-sub-title", children: f("returns") }), h.returns.map((k, Y) => C.jsx("div", { className: "manual-content-text", dangerouslySetInnerHTML: {
|
@@ -10360,7 +10360,7 @@ const Ey = (i) => {
|
|
10360
10360
|
prefix: "var",
|
10361
10361
|
index: 0
|
10362
10362
|
}, Fy = ({ theme: i = "vs-dark", language: n, currentValue: r, version: s, onChange: a, onVersionChange: l }) => {
|
10363
|
-
const [c, f] = Re({}), { t: h, i18n: p } = br(), [v, b] = Re(Ic), [x, A] = Re(s || 5), [T,
|
10363
|
+
const [c, f] = Re({}), { t: h, i18n: p } = br(), [v, b] = Re(Ic), [x, A] = Re(s || 5), [T, $] = Re(null), [U, W] = Re(0), [I, Z] = Re(""), [B, H] = Re(s !== 5 ? "var_accdist" : "var_bar_index"), M = Se(null), k = Se(null), Y = Se(null), X = (D) => {
|
10364
10364
|
D.key === v?.key && !v?.isHidden ? b({ ...D, isHidden: !0 }) : b(D), M.current?.focus();
|
10365
10365
|
}, J = (D, ne = !1) => {
|
10366
10366
|
_a(D), In(D).then((me) => {
|
@@ -10394,12 +10394,12 @@ const Ey = (i) => {
|
|
10394
10394
|
if (D.target.value.trim() === "")
|
10395
10395
|
te();
|
10396
10396
|
else {
|
10397
|
-
|
10397
|
+
Z(D.target.value);
|
10398
10398
|
const ne = Bf(D.target.value, c.CONTENT_GROUPS, c.MANUAL_KEYS, c.KEY_MAP_LIST);
|
10399
|
-
|
10399
|
+
$(ne);
|
10400
10400
|
}
|
10401
10401
|
}, te = () => {
|
10402
|
-
|
10402
|
+
Z(""), $(null), setTimeout(() => {
|
10403
10403
|
k.current?.querySelector(`a[data-href="${B}"]`)?.scrollIntoView(!0);
|
10404
10404
|
}, 10), M.current?.focus();
|
10405
10405
|
}, q = (D, ne) => {
|
@@ -10411,20 +10411,20 @@ const Ey = (i) => {
|
|
10411
10411
|
ne && (W(0), q(ne, D), M.current?.focus());
|
10412
10412
|
}, le = (D) => {
|
10413
10413
|
const ne = Number(D);
|
10414
|
-
A(ne), J(ne, !0), l && l(ne);
|
10414
|
+
A(ne), J(ne, !0), l && l(ne), M.current?.value && (Z(""), $(null), M.current?.focus());
|
10415
10415
|
};
|
10416
10416
|
return C.jsxs("div", { className: `${i} manual-warpper`, children: [C.jsxs("div", { className: "manual-left", children: [C.jsxs("div", { className: "manual-search", children: [C.jsx("span", { className: "manual-search-icon", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", width: "18px", height: "18px", children: C.jsx("path", { fillRule: "evenodd", d: "M12.5 11h-.79l-.28-.27A6.47 6.47 0 0 0 13 6.5 6.5 6.5 0 1 0 6.5 13c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L17.49 16l-4.99-5zm-6 0C4.01 11 2 8.99 2 6.5S4.01 2 6.5 2 11 4.01 11 6.5 8.99 11 6.5 11z" }) }) }), C.jsx("input", { onChange: z, ref: M, spellCheck: "false", value: I, className: "manual-search-input", autoComplete: "off", placeholder: h("search"), type: "text" }), C.jsx("span", { onClick: te, className: `manual-search-clear ${I ? "" : "hide"}`, children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 95.939 95.939", width: "9", height: "9", children: C.jsx("path", { d: "M62.82 47.97l32.53-32.534a2 2 0 0 0 0-2.828L83.332.586a2 2 0 0 0-2.827 0L47.97 33.12 15.435.587c-.75-.75-2.078-.75-2.828 0L.587 12.607a2 2 0 0 0 0 2.83L33.12 47.97.588 80.504a2 2 0 0 0 0 2.828l12.02 12.02a1.997 1.997 0 0 0 2.83 0L47.97 62.818l32.535 32.535a2 2 0 0 0 2.827 0l12.02-12.02c.78-.783.78-2.05 0-2.83L62.82 47.97z" }) }) })] }), C.jsx("div", { className: `manual-group-search-list manual-scroll ${I ? "" : "hide"}`, children: C.jsxs("div", { children: [T?.labelList.map((D) => C.jsx("a", { onClick: (ne) => {
|
10417
10417
|
ne.preventDefault(), ye(D.key, D.group);
|
10418
10418
|
}, className: `manual-group-body-item ${D.key === B ? "manual-group-body-item-selected" : ""}`, "data-href": D.key, href: `#${D.key}`, children: D.label }, `search_${D.key}`)), C.jsx("div", { className: "manual-content-separator" }), T?.contentList.map((D) => C.jsx("a", { onClick: (ne) => {
|
10419
10419
|
ne.preventDefault(), ye(D.key, D.group);
|
10420
|
-
}, className: `manual-group-body-item ${D.key === B ? "manual-group-body-item-selected" : ""}`, "data-href": D.key, href: `#${D.key}`, children: D.label }, `search_${D.key}`))] }) }), C.jsx("div", { className: `manual-group-list manual-scroll ${I ? "hide" : ""}`, ref: k, children: c.CONTENT_GROUPS?.map((D) => C.jsxs(Ye, { children: [C.jsx("div", { onClick: () =>
|
10420
|
+
}, className: `manual-group-body-item ${D.key === B ? "manual-group-body-item-selected" : ""}`, "data-href": D.key, href: `#${D.key}`, children: D.label }, `search_${D.key}`))] }) }), C.jsx("div", { className: `manual-group-list manual-scroll ${I ? "hide" : ""}`, ref: k, children: c.CONTENT_GROUPS?.map((D) => C.jsxs(Ye, { children: [C.jsx("div", { onClick: () => X(D), className: `manual-group-title ${D.key === v?.key && !v?.isHidden ? "active" : ""}`, children: h(D.key) }), C.jsx("div", { className: `manual-group-body manual-scroll ${D.key !== v?.key || v?.isHidden ? "hide" : ""}`, children: c.KEY_LIST?.[D.key]?.sort().filter((ne) => !c.NOT_SHOW_KEYWORDS?.includes(ne))?.map((ne) => {
|
10421
10421
|
const me = `${D.prefix}_${ne}`;
|
10422
10422
|
return C.jsx("a", { onClick: (ue) => {
|
10423
10423
|
ue.preventDefault(), ye(me);
|
10424
10424
|
}, className: `manual-group-body-item ${me === B ? "manual-group-body-item-selected" : ""}`, "data-href": me, href: `#${me}`, children: `${ne}${D.prefix === "fun" ? "()" : ""}` }, me);
|
10425
10425
|
}) })] }, D.key)) }), C.jsx("div", { className: "manual-left-bottom", children: C.jsxs("div", { className: "version-switcher-select-box", children: [C.jsx("select", { className: "version-switcher-select", onChange: (D) => le(D.target.value), defaultValue: s, name: "version", id: "", children: jf.map((D) => C.jsx("option", { className: "version-switcher-option", value: D.version, children: D.label }, D.version)) }), C.jsx("div", { className: "reference-icon-caret", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", width: "18", height: "18", children: C.jsx("path", { fill: "currentColor", d: "M3.92 7.83 9 12.29l5.08-4.46-1-1.13L9 10.29l-4.09-3.6-.99 1.14Z" }) }) })] }) })] }), C.jsx("div", { ref: Y, className: "manual-right manual-scroll", children: C.jsx(Ey, { currentIndex: U, version: x, keyMaps: c.KEY_MAP_LIST, group: v, itemKey: B, onItemClick: ie }) })] });
|
10426
10426
|
}, Iy = (i) => {
|
10427
|
-
const { onItemClick: n, item: r, prefix: s, value: a, version: l } = i, { t: c } = br(), [f, h] = Re(), [p, v] = Re(""), [b, x] = Re(0), [A, T] = Re(c("Copy code")), [
|
10427
|
+
const { onItemClick: n, item: r, prefix: s, value: a, version: l } = i, { t: c } = br(), [f, h] = Re(), [p, v] = Re(""), [b, x] = Re(0), [A, T] = Re(c("Copy code")), [$, U] = Re(c("Copy link"));
|
10428
10428
|
Ee(() => {
|
10429
10429
|
a && (h(a), v(`${window.location.origin}/reference-manual/v${l}/#${s}_${a?.orirginalName}`));
|
10430
10430
|
}, [a]);
|
@@ -10434,7 +10434,7 @@ const Ey = (i) => {
|
|
10434
10434
|
});
|
10435
10435
|
}, I = (M) => {
|
10436
10436
|
W(M);
|
10437
|
-
},
|
10437
|
+
}, Z = (M) => {
|
10438
10438
|
if (M.target.localName === "a" && M.target.hash && M.target?.dataset?.name) {
|
10439
10439
|
M.preventDefault();
|
10440
10440
|
const { hash: k } = M.target;
|
@@ -10449,7 +10449,7 @@ const Ey = (i) => {
|
|
10449
10449
|
U(c("Copy link"));
|
10450
10450
|
}, 3e3);
|
10451
10451
|
};
|
10452
|
-
return C.jsx("div", { onClick:
|
10452
|
+
return C.jsx("div", { onClick: Z, id: `${s}_${f?.orirginalName}`, children: C.jsxs("div", { className: "manual-page-content-wrapper", children: [C.jsxs("div", { className: "manual-page-content-header", children: [C.jsxs("div", { children: [C.jsx("h3", { className: "manual-page-content-header-title", children: f?.name }), !!f?.overloads && C.jsx("span", { className: "manual-page-content-header-overloads", children: f?.overloads })] }), C.jsx(vr, { text: p, onCopy: H, children: C.jsx("div", { "data-tooltip": $, className: "manual-page-content-btn", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 28 28", width: "28", height: "28", children: C.jsxs("g", { fill: "currentColor", children: [C.jsx("path", { fillRule: "nonzero", d: "M15.039 5.969l-.019-.019-2.828 2.828.707.707 2.474-2.474c1.367-1.367 3.582-1.367 4.949 0s1.367 3.582 0 4.949l-2.474 2.474.707.707 2.828-2.828-.019-.019c1.415-1.767 1.304-4.352-.334-5.99-1.638-1.638-4.224-1.749-5.99-.334zM5.97 15.038l-.019-.019 2.828-2.828.707.707-2.475 2.475c-1.367 1.367-1.367 3.582 0 4.949s3.582 1.367 4.949 0l2.474-2.474.707.707-2.828 2.828-.019-.019c-1.767 1.415-4.352 1.304-5.99-.334-1.638-1.638-1.749-4.224-.334-5.99z" }), C.jsx("path", { d: "M10.485 16.141l5.656-5.656.707.707-5.656 5.656z" })] }) }) }) })] }), f?.desc?.map((M, k) => C.jsx("div", { dangerouslySetInnerHTML: {
|
10453
10453
|
__html: M
|
10454
10454
|
}, className: "manual-page-content-text" }, k)), f?.type && C.jsxs(Ye, { children: [C.jsx("div", { className: "manual-page-content-sub-title", children: c("type") }), C.jsx("div", { className: "manual-page-content-text", children: f.type })] }), f?.syntax && C.jsxs(Ye, { children: [C.jsxs("div", { className: "manual-page-content-sub-title", children: [c("syntax"), " ", !!f?.overloads && `& ${c("overloads")}`] }), f.syntax.map((M, k) => (f.syntax?.length || 0) > 1 ? C.jsx("div", { onClick: () => I(k), children: C.jsx("pre", { className: `manual-page-content-syntax with-overloads ${k === b ? "selected" : ""}`, children: M }) }, k) : C.jsx("pre", { className: "manual-page-content-syntax", children: M }, k))] }), f?.args && C.jsxs(Ye, { children: [C.jsx("div", { className: "manual-page-content-sub-title", children: c("arguments") }), f.args.map((M, k) => C.jsxs("div", { className: "manual-page-content-text", children: [C.jsx("span", { className: "manual-page-content-args-label", children: M.label }), " ", C.jsx("span", { dangerouslySetInnerHTML: {
|
10455
10455
|
__html: M.desc || ""
|
@@ -10457,9 +10457,9 @@ const Ey = (i) => {
|
|
10457
10457
|
__html: M.desc || ""
|
10458
10458
|
} })] }, k))] }), f?.examples && C.jsxs(Ye, { children: [C.jsxs("div", { className: "manual-page-content-sub-title manual-page-content-example-header", children: [C.jsx("div", { children: C.jsx("span", { children: c("example") }) }), C.jsx(vr, { text: f.originalExample || "", onCopy: B, children: C.jsx("div", { "data-tooltip": A, className: "manual-page-content-btn manual-page-content-example-copy", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", fill: "none", children: C.jsx("path", { stroke: "currentColor", d: "M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z" }) }) }) })] }), C.jsx("pre", { className: "manual-page-content-example", children: C.jsx("code", { dangerouslySetInnerHTML: {
|
10459
10459
|
__html: f.examples
|
10460
|
-
} }) })] }), f?.detailedDesc && f.detailedDesc.map((M, k) => C.jsxs(Ye, { children: [M.desc.map((Y,
|
10460
|
+
} }) })] }), f?.detailedDesc && f.detailedDesc.map((M, k) => C.jsxs(Ye, { children: [M.desc.map((Y, X) => C.jsx("div", { className: "manual-page-content-text", dangerouslySetInnerHTML: {
|
10461
10461
|
__html: Y
|
10462
|
-
} },
|
10462
|
+
} }, X)), C.jsxs("div", { className: "manual-page-content-sub-title manual-page-content-example-header", children: [C.jsx("div", { children: C.jsx("span", { children: c("example") }) }), C.jsx(vr, { text: M.originalExample || "", onCopy: B, children: C.jsx("div", { "data-tooltip": A, className: "manual-page-content-btn manual-page-content-example-copy", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "28", height: "28", fill: "none", children: C.jsx("path", { stroke: "currentColor", d: "M8 9.5H6.5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1V20m-8-1.5h11a1 1 0 0 0 1-1v-11a1 1 0 0 0-1-1h-11a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1z" }) }) }) })] }), C.jsx("pre", { className: "manual-page-content-example", children: C.jsx("code", { dangerouslySetInnerHTML: {
|
10463
10463
|
__html: M.examples || ""
|
10464
10464
|
} }) })] }, k)), f?.returns && C.jsxs(Ye, { children: [C.jsx("div", { className: "manual-page-content-sub-title", children: c("returns") }), f.returns.map((M, k) => C.jsx("div", { className: "manual-page-content-text", dangerouslySetInnerHTML: {
|
10465
10465
|
__html: M
|
@@ -10467,7 +10467,7 @@ const Ey = (i) => {
|
|
10467
10467
|
__html: M
|
10468
10468
|
} }, k))] }), f?.seeAlso && C.jsxs(Ye, { children: [C.jsx("div", { className: "manual-page-content-sub-title", children: c("see also") }), C.jsx("div", { className: "manual-page-content-see_also", children: f.seeAlso.map((M, k) => C.jsx("a", { className: "manual-page-content-see_also-tag", "data-name": M?.name, href: M?.link, children: M?.name }, k)) })] })] }) });
|
10469
10469
|
}, Ay = ({ onItemClick: i, onGroupClick: n, selectedItemChange: r, selectItem: s, manualTabRef: a, searchRef: l, contentGroups: c, manualKeys: f, keyMaps: h, version: p, onVersionChange: v }) => {
|
10470
|
-
const { t: b } = br(), [x, A] = Re(null), [T,
|
10470
|
+
const { t: b } = br(), [x, A] = Re(null), [T, $] = Re("");
|
10471
10471
|
Ee(() => {
|
10472
10472
|
l.current?.focus();
|
10473
10473
|
}, [l.current]);
|
@@ -10475,24 +10475,24 @@ const Ey = (i) => {
|
|
10475
10475
|
if (I.target.value.trim() === "")
|
10476
10476
|
W();
|
10477
10477
|
else {
|
10478
|
-
|
10479
|
-
const
|
10480
|
-
A(
|
10478
|
+
$(I.target.value);
|
10479
|
+
const Z = Bf(I.target.value, c, f, h);
|
10480
|
+
A(Z);
|
10481
10481
|
}
|
10482
10482
|
}, W = () => {
|
10483
|
-
|
10483
|
+
$(""), A(null), setTimeout(() => {
|
10484
10484
|
s.current && r(s.current, !0);
|
10485
10485
|
}, 10), l.current?.focus();
|
10486
10486
|
};
|
10487
|
-
return C.jsxs("div", { className: "manual-page-left", children: [C.jsxs("div", { className: "manual-page-search", children: [C.jsx("span", { className: "manual-page-search-icon", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", width: "18px", height: "18px", children: C.jsx("path", { fillRule: "evenodd", d: "M12.5 11h-.79l-.28-.27A6.47 6.47 0 0 0 13 6.5 6.5 6.5 0 1 0 6.5 13c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L17.49 16l-4.99-5zm-6 0C4.01 11 2 8.99 2 6.5S4.01 2 6.5 2 11 4.01 11 6.5 8.99 11 6.5 11z" }) }) }), C.jsx("input", { onChange: U, ref: l, spellCheck: "false", value: T, className: "manual-page-search-input", autoComplete: "off", placeholder: b("search"), type: "text" }), C.jsx("span", { onClick: W, className: `manual-page-search-clear ${T ? "" : "hide"}`, children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 95.939 95.939", width: "9", height: "9", children: C.jsx("path", { d: "M62.82 47.97l32.53-32.534a2 2 0 0 0 0-2.828L83.332.586a2 2 0 0 0-2.827 0L47.97 33.12 15.435.587c-.75-.75-2.078-.75-2.828 0L.587 12.607a2 2 0 0 0 0 2.83L33.12 47.97.588 80.504a2 2 0 0 0 0 2.828l12.02 12.02a1.997 1.997 0 0 0 2.83 0L47.97 62.818l32.535 32.535a2 2 0 0 0 2.827 0l12.02-12.02c.78-.783.78-2.05 0-2.83L62.82 47.97z" }) }) })] }), C.jsxs("div", { ref: a, className: "manual-page-group-container", children: [C.jsx("div", { className: `manual-page-group-search-list manual-page-scroll ${T ? "" : "hide"}`, children: C.jsxs("div", { children: [x?.labelList.map((I) => C.jsx("a", { onClick: (
|
10488
|
-
|
10489
|
-
}, className: "manual-page-group-body-item", "data-href": I.key, href: `#${I.key}`, children: I.label }, `search_${I.key}`)), C.jsx("div", { className: "manual-page-content-separator" }), x?.contentList.map((I) => C.jsx("a", { onClick: (
|
10490
|
-
|
10491
|
-
}, className: "manual-page-group-body-item", "data-href": I.key, href: `#${I.key}`, children: I.label }, `search_${I.key}`))] }) }), C.jsx("div", { className: `manual-page-group-list manual-page-scroll ${T ? "hide" : ""}`, children: c?.map((I) => C.jsxs(Ye, { children: [C.jsx("div", { onClick: () => n(I), className: "manual-page-group-title manual-page-group-t", children: b(I.key) }), C.jsx("div", { className: "manual-page-group-body manual-page-group-b manual-page-scroll hide", children: f?.[I.key]?.map((
|
10492
|
-
const H = `${I.prefix}_${
|
10487
|
+
return C.jsxs("div", { className: "manual-page-left", children: [C.jsxs("div", { className: "manual-page-search", children: [C.jsx("span", { className: "manual-page-search-icon", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", width: "18px", height: "18px", children: C.jsx("path", { fillRule: "evenodd", d: "M12.5 11h-.79l-.28-.27A6.47 6.47 0 0 0 13 6.5 6.5 6.5 0 1 0 6.5 13c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L17.49 16l-4.99-5zm-6 0C4.01 11 2 8.99 2 6.5S4.01 2 6.5 2 11 4.01 11 6.5 8.99 11 6.5 11z" }) }) }), C.jsx("input", { onChange: U, ref: l, spellCheck: "false", value: T, className: "manual-page-search-input", autoComplete: "off", placeholder: b("search"), type: "text" }), C.jsx("span", { onClick: W, className: `manual-page-search-clear ${T ? "" : "hide"}`, children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 95.939 95.939", width: "9", height: "9", children: C.jsx("path", { d: "M62.82 47.97l32.53-32.534a2 2 0 0 0 0-2.828L83.332.586a2 2 0 0 0-2.827 0L47.97 33.12 15.435.587c-.75-.75-2.078-.75-2.828 0L.587 12.607a2 2 0 0 0 0 2.83L33.12 47.97.588 80.504a2 2 0 0 0 0 2.828l12.02 12.02a1.997 1.997 0 0 0 2.83 0L47.97 62.818l32.535 32.535a2 2 0 0 0 2.827 0l12.02-12.02c.78-.783.78-2.05 0-2.83L62.82 47.97z" }) }) })] }), C.jsxs("div", { ref: a, className: "manual-page-group-container", children: [C.jsx("div", { className: `manual-page-group-search-list manual-page-scroll ${T ? "" : "hide"}`, children: C.jsxs("div", { children: [x?.labelList.map((I) => C.jsx("a", { onClick: (Z) => {
|
10488
|
+
Z.preventDefault(), i(I.key, I.index, I.group);
|
10489
|
+
}, className: "manual-page-group-body-item", "data-href": I.key, href: `#${I.key}`, children: I.label }, `search_${I.key}`)), C.jsx("div", { className: "manual-page-content-separator" }), x?.contentList.map((I) => C.jsx("a", { onClick: (Z) => {
|
10490
|
+
Z.preventDefault(), i(I.key, I.index, I.group);
|
10491
|
+
}, className: "manual-page-group-body-item", "data-href": I.key, href: `#${I.key}`, children: I.label }, `search_${I.key}`))] }) }), C.jsx("div", { className: `manual-page-group-list manual-page-scroll ${T ? "hide" : ""}`, children: c?.map((I) => C.jsxs(Ye, { children: [C.jsx("div", { onClick: () => n(I), className: "manual-page-group-title manual-page-group-t", children: b(I.key) }), C.jsx("div", { className: "manual-page-group-body manual-page-group-b manual-page-scroll hide", children: f?.[I.key]?.map((Z, B) => {
|
10492
|
+
const H = `${I.prefix}_${Z}`;
|
10493
10493
|
return C.jsx("a", { onClick: (M) => {
|
10494
10494
|
M.preventDefault(), i(H, B);
|
10495
|
-
}, className: "manual-page-group-body-item", "data-href": H, href: `#${H}`, children: `${
|
10495
|
+
}, className: "manual-page-group-body-item", "data-href": H, href: `#${H}`, children: `${Z}${I.prefix === "fun" ? "()" : ""}` }, H);
|
10496
10496
|
}) })] }, I.key)) })] }), C.jsx("div", { className: "manual-left-bottom", children: C.jsxs("div", { className: "version-switcher-select-box", children: [C.jsx("select", { className: "version-switcher-select", onChange: (I) => v && v(Number(I.target.value)), defaultValue: p, name: "version", id: "", children: jf.map((I) => C.jsx("option", { className: "version-switcher-option", value: I.version, children: I.label }, I.version)) }), C.jsx("div", { className: "reference-icon-caret", children: C.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", width: "18", height: "18", children: C.jsx("path", { fill: "currentColor", d: "M3.92 7.83 9 12.29l5.08-4.46-1-1.13L9 10.29l-4.09-3.6-.99 1.14Z" }) }) })] }) })] });
|
10497
10497
|
}, Zs = {
|
10498
10498
|
// title: 'Variables',
|
@@ -10501,13 +10501,13 @@ const Ey = (i) => {
|
|
10501
10501
|
prefix: "var",
|
10502
10502
|
index: 0
|
10503
10503
|
}, Dy = ({ theme: i = "vs-dark", language: n, version: r, onVersionChange: s }) => {
|
10504
|
-
const [a, l] = Re({}), { t: c, i18n: f } = br(), [h, p] = Re(), v = Se(""), b = Se(null), x = Se(null), A = Se(null), T = Se(null),
|
10504
|
+
const [a, l] = Re({}), { t: c, i18n: f } = br(), [h, p] = Re(), v = Se(""), b = Se(null), x = Se(null), A = Se(null), T = Se(null), $ = Se(null), U = Se(null), W = Se(0), I = Se({
|
10505
10505
|
startTop: 0,
|
10506
10506
|
endTop: 0,
|
10507
10507
|
key: r !== 5 ? "var_accdist" : "var_bar_index",
|
10508
10508
|
group: Zs,
|
10509
10509
|
index: 0
|
10510
|
-
}),
|
10510
|
+
}), Z = (z) => {
|
10511
10511
|
ee(z), b.current?.focus();
|
10512
10512
|
};
|
10513
10513
|
Ee(() => {
|
@@ -10515,7 +10515,7 @@ const Ey = (i) => {
|
|
10515
10515
|
z && l(z);
|
10516
10516
|
}));
|
10517
10517
|
}, [r]), Ee(() => {
|
10518
|
-
|
10518
|
+
$.current || (B(), W.current = A.current?.offsetTop || 0);
|
10519
10519
|
}, [a]);
|
10520
10520
|
const B = async () => {
|
10521
10521
|
if (!a.CONTENT_GROUPS)
|
@@ -10532,7 +10532,7 @@ const Ey = (i) => {
|
|
10532
10532
|
p(z);
|
10533
10533
|
};
|
10534
10534
|
Ee(() => {
|
10535
|
-
if (
|
10535
|
+
if (!$.current && h) {
|
10536
10536
|
const z = window.location.hash;
|
10537
10537
|
if (z) {
|
10538
10538
|
const te = z.replace(/^#/, ""), [q] = te.split("_"), ie = a.CONTENT_GROUPS?.find((le) => le.prefix === q);
|
@@ -10558,12 +10558,12 @@ const Ey = (i) => {
|
|
10558
10558
|
const H = (z, te, q) => {
|
10559
10559
|
if (z === v.current)
|
10560
10560
|
return;
|
10561
|
-
q && q.key !==
|
10561
|
+
q && q.key !== $.current?.key && ee(q), Y(z), window.location.href = `#${z}`;
|
10562
10562
|
const [ie, le] = M(z, te);
|
10563
10563
|
I.current = {
|
10564
10564
|
startTop: ie,
|
10565
10565
|
endTop: le,
|
10566
|
-
group: q ||
|
10566
|
+
group: q || $.current,
|
10567
10567
|
index: te,
|
10568
10568
|
key: z
|
10569
10569
|
}, T.current?.classList?.remove("manual-page-current-item-bg"), b.current?.focus();
|
@@ -10571,7 +10571,7 @@ const Ey = (i) => {
|
|
10571
10571
|
const q = document.getElementById(z), ie = q?.offsetHeight || 0, le = te ? 0 : 78, D = (q?.offsetTop || 0) - 72 - W.current;
|
10572
10572
|
return [D - le, D + ie];
|
10573
10573
|
}, k = (z, te) => {
|
10574
|
-
z.key !==
|
10574
|
+
z.key !== $.current?.key && ee(z), Y(te, !0);
|
10575
10575
|
}, Y = (z, te = !1) => {
|
10576
10576
|
const q = x.current?.querySelector(`a[data-href="${z}"]`);
|
10577
10577
|
if (te && q?.scrollIntoView({ block: "nearest" }), document.getElementById(v.current)?.classList.remove("reference-item-selected"), document.getElementById(z)?.classList.add("reference-item-selected"), z === v.current) {
|
@@ -10579,7 +10579,7 @@ const Ey = (i) => {
|
|
10579
10579
|
return;
|
10580
10580
|
}
|
10581
10581
|
v.current = z, U.current?.classList.remove("manual-page-group-body-item-selected"), q?.classList.add("manual-page-group-body-item-selected"), U.current = q;
|
10582
|
-
},
|
10582
|
+
}, X = (z) => {
|
10583
10583
|
const te = a.CONTENT_GROUPS?.find((q) => z.startsWith(q.prefix));
|
10584
10584
|
te && (k(te, z), window.location.href = `#${z}`, b.current?.focus());
|
10585
10585
|
}, J = On((z) => {
|
@@ -10591,7 +10591,7 @@ const Ey = (i) => {
|
|
10591
10591
|
group: le,
|
10592
10592
|
index: ie,
|
10593
10593
|
key: D
|
10594
|
-
}), le.key !==
|
10594
|
+
}), le.key !== $.current?.key && ee(le);
|
10595
10595
|
const ue = z.currentTarget.scrollTop;
|
10596
10596
|
if (ue >= me && ue < ne)
|
10597
10597
|
return;
|
@@ -10623,12 +10623,12 @@ const Ey = (i) => {
|
|
10623
10623
|
Ve = a.CONTENT_GROUPS?.[it], ee(Ve), et = a.MANUAL_KEYS?.[Ve?.key], Ke = et.length;
|
10624
10624
|
}
|
10625
10625
|
}, [a]), ee = (z) => {
|
10626
|
-
const te =
|
10626
|
+
const te = $.current?.index, q = x.current?.querySelectorAll(".manual-page-group-t"), ie = x.current?.querySelectorAll(".manual-page-group-b"), le = z.index;
|
10627
10627
|
if (ie?.[te]?.classList?.add("hide"), q?.[te]?.classList?.remove("active"), te === le) {
|
10628
|
-
|
10628
|
+
$.current = null;
|
10629
10629
|
return;
|
10630
10630
|
} else
|
10631
|
-
q?.[le]?.classList?.add("active"), ie?.[le]?.classList?.remove("hide"),
|
10631
|
+
q?.[le]?.classList?.add("active"), ie?.[le]?.classList?.remove("hide"), $.current = z;
|
10632
10632
|
}, ye = (z, te, q, ie) => {
|
10633
10633
|
const le = `${z.prefix}_${te}`, [D, ne] = M(le, q);
|
10634
10634
|
if (D <= ie && ie < ne) {
|
@@ -10644,7 +10644,7 @@ const Ey = (i) => {
|
|
10644
10644
|
}
|
10645
10645
|
return !1;
|
10646
10646
|
};
|
10647
|
-
return C.jsxs("div", { ref: A, className: `${i} manual-page-warpper ${h ? "show-warpper" : ""}`, children: [C.jsx(Ay, { onGroupClick:
|
10647
|
+
return C.jsxs("div", { ref: A, className: `${i} manual-page-warpper ${h ? "show-warpper" : ""}`, children: [C.jsx(Ay, { onGroupClick: Z, onItemClick: H, selectItem: v, manualTabRef: x, searchRef: b, selectedItemChange: Y, manualKeys: a.MANUAL_KEYS, contentGroups: a.CONTENT_GROUPS, keyMaps: a.KEY_MAP_LIST, version: r || 5, onVersionChange: s }), C.jsxs("div", { className: "manual-page-right", children: [C.jsx("div", { children: C.jsx("h1", { className: "manual-page-title", children: c("Mine Script® v1 Reference Manual", { version: r }) }) }), C.jsx("div", { onScroll: J, className: "manual-page-scroll manual-page-scroll-none", children: a.CONTENT_GROUPS?.map((z) => C.jsxs(Ye, { children: [C.jsx("h2", { className: "manual-page-header", children: c(z.key) }), C.jsx("div", { children: a.MANUAL_KEYS?.[z.key]?.map((te) => C.jsx(Iy, { version: r || 5, item: a.KEY_MAP_LIST?.[z.key].get(te) || [], value: h?.[z.key]?.get(te), prefix: z.prefix, onItemClick: X }, te)) })] }, z.key)) })] })] });
|
10648
10648
|
};
|
10649
10649
|
var Ac;
|
10650
10650
|
(function(i) {
|