smart-editor-v3 1.16.12 → 1.16.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/smart-editor-package.js +282 -282
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -2,9 +2,9 @@ var m8 = Object.defineProperty;
|
|
|
2
2
|
var g8 = (t, e, n) => e in t ? m8(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var Cn = (t, e, n) => g8(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import "./style.css";
|
|
5
|
-
import { NCard as b8, NInput as dg, NButton as ai, NCheckbox as v8, NTooltip as gl, NDropdown as eh, NSelect as
|
|
6
|
-
import { effectScope as R8, ref as ae, shallowRef as I8, computed as it, watch as Ut, isRef as Bi, defineComponent as wi, getCurrentInstance as Ka, h as Wt, Fragment as rt, inject as D8, onMounted as Nn, onUnmounted as tu, createVNode as J, Text as L8, createBlock as te, createCommentVNode as qe, unref as v, openBlock as F, withCtx as le, createElementVNode as G, createTextVNode as Gt, toDisplayString as Oe, createElementBlock as fe, renderList as rn, normalizeClass as ut, resolveDynamicComponent as un, provide as Id, markRaw as
|
|
7
|
-
import { useStorage as nv, createGlobalState as F8, useWindowSize as nh, onClickOutside as nu, useElementBounding as z8, useThrottleFn as rh, useClipboard as H8, useEventBus as U8, useResizeObserver as
|
|
5
|
+
import { NCard as b8, NInput as dg, NButton as ai, NCheckbox as v8, NTooltip as gl, NDropdown as eh, NSelect as U2, NDrawer as y8, NDrawerContent as _8, NEmpty as w8, NColorPicker as V2, NTree as x8, NEllipsis as k8, NFlex as E8, NPopover as S8, NModal as W2, NFormItem as C8, NInputNumber as q2, useNotification as T8, useMessage as A8, NConfigProvider as fg, dateZhCN as K2, dateEnUS as G2, zhCN as j2, enUS as Y2, NMessageProvider as M8, NNotificationProvider as N8, darkTheme as O8 } from "naive-ui";
|
|
6
|
+
import { effectScope as R8, ref as ae, shallowRef as I8, computed as it, watch as Ut, isRef as Bi, defineComponent as wi, getCurrentInstance as Ka, h as Wt, Fragment as rt, inject as D8, onMounted as Nn, onUnmounted as tu, createVNode as J, Text as L8, createBlock as te, createCommentVNode as qe, unref as v, openBlock as F, withCtx as le, createElementVNode as G, createTextVNode as Gt, toDisplayString as Oe, createElementBlock as fe, renderList as rn, normalizeClass as ut, resolveDynamicComponent as un, provide as Id, markRaw as X2, reactive as B8, render as ev, watchEffect as J2, nextTick as th, onBeforeUnmount as Wn, customRef as P8, withDirectives as dc, normalizeStyle as on, vShow as Dd, useAttrs as hg, mergeProps as Xn, renderSlot as Rn, onBeforeMount as pg, mergeModels as tv, useModel as $8 } from "vue";
|
|
7
|
+
import { useStorage as nv, createGlobalState as F8, useWindowSize as nh, onClickOutside as nu, useElementBounding as z8, useThrottleFn as rh, useClipboard as H8, useEventBus as U8, useResizeObserver as Z2, useFileDialog as mg, useTimestamp as V8, createInjectionState as W8 } from "@vueuse/core";
|
|
8
8
|
import { UseDraggable as q8, vElementHover as K8 } from "@vueuse/components";
|
|
9
9
|
import { createEditor as G8 } from "prism-code-editor";
|
|
10
10
|
import { defaultCommands as j8, editHistory as Y8 } from "prism-code-editor/commands";
|
|
@@ -62,7 +62,7 @@ function So(t, e) {
|
|
|
62
62
|
typeof console < "u" && (console.warn("[intlify] " + t), e && console.warn(e.stack));
|
|
63
63
|
}
|
|
64
64
|
const rv = {};
|
|
65
|
-
function
|
|
65
|
+
function Q2(t) {
|
|
66
66
|
rv[t] || (rv[t] = !0, So(t));
|
|
67
67
|
}
|
|
68
68
|
const mi = typeof window < "u";
|
|
@@ -103,7 +103,7 @@ const a7 = Object.prototype.hasOwnProperty;
|
|
|
103
103
|
function ui(t, e) {
|
|
104
104
|
return a7.call(t, e);
|
|
105
105
|
}
|
|
106
|
-
const gn = Array.isArray, Jt = (t) => typeof t == "function", De = (t) => typeof t == "string", Lt = (t) => typeof t == "boolean", Rt = (t) => t !== null && typeof t == "object", l7 = (t) => Rt(t) && Jt(t.then) && Jt(t.catch),
|
|
106
|
+
const gn = Array.isArray, Jt = (t) => typeof t == "function", De = (t) => typeof t == "string", Lt = (t) => typeof t == "boolean", Rt = (t) => t !== null && typeof t == "object", l7 = (t) => Rt(t) && Jt(t.then) && Jt(t.catch), ew = Object.prototype.toString, gg = (t) => ew.call(t), Et = (t) => gg(t) === "[object Object]", c7 = (t) => t == null ? "" : gn(t) || Et(t) && t.toString === ew ? JSON.stringify(t, null, 2) : String(t);
|
|
107
107
|
function bg(t, e = "") {
|
|
108
108
|
return t.reduce((n, r, i) => i === 0 ? n + r : n + e + r, "");
|
|
109
109
|
}
|
|
@@ -1114,40 +1114,40 @@ function z7() {
|
|
|
1114
1114
|
function Qr(t) {
|
|
1115
1115
|
return Rt(t) && _g(t) === 0 && (ui(t, "b") || ui(t, "body"));
|
|
1116
1116
|
}
|
|
1117
|
-
const
|
|
1117
|
+
const tw = ["b", "body"];
|
|
1118
1118
|
function H7(t) {
|
|
1119
|
-
return gs(t,
|
|
1119
|
+
return gs(t, tw);
|
|
1120
1120
|
}
|
|
1121
|
-
const
|
|
1121
|
+
const nw = ["c", "cases"];
|
|
1122
1122
|
function U7(t) {
|
|
1123
|
-
return gs(t,
|
|
1123
|
+
return gs(t, nw, []);
|
|
1124
1124
|
}
|
|
1125
|
-
const
|
|
1125
|
+
const rw = ["s", "static"];
|
|
1126
1126
|
function V7(t) {
|
|
1127
|
-
return gs(t,
|
|
1127
|
+
return gs(t, rw);
|
|
1128
1128
|
}
|
|
1129
|
-
const
|
|
1129
|
+
const iw = ["i", "items"];
|
|
1130
1130
|
function W7(t) {
|
|
1131
|
-
return gs(t,
|
|
1131
|
+
return gs(t, iw, []);
|
|
1132
1132
|
}
|
|
1133
|
-
const
|
|
1133
|
+
const ow = ["t", "type"];
|
|
1134
1134
|
function _g(t) {
|
|
1135
|
-
return gs(t,
|
|
1135
|
+
return gs(t, ow);
|
|
1136
1136
|
}
|
|
1137
|
-
const
|
|
1137
|
+
const sw = ["v", "value"];
|
|
1138
1138
|
function xu(t, e) {
|
|
1139
|
-
const n = gs(t,
|
|
1139
|
+
const n = gs(t, sw);
|
|
1140
1140
|
if (n != null)
|
|
1141
1141
|
return n;
|
|
1142
1142
|
throw fc(e);
|
|
1143
1143
|
}
|
|
1144
|
-
const
|
|
1144
|
+
const aw = ["m", "modifier"];
|
|
1145
1145
|
function q7(t) {
|
|
1146
|
-
return gs(t,
|
|
1146
|
+
return gs(t, aw);
|
|
1147
1147
|
}
|
|
1148
|
-
const
|
|
1148
|
+
const lw = ["k", "key"];
|
|
1149
1149
|
function K7(t) {
|
|
1150
|
-
const e = gs(t,
|
|
1150
|
+
const e = gs(t, lw);
|
|
1151
1151
|
if (e)
|
|
1152
1152
|
return e;
|
|
1153
1153
|
throw fc(
|
|
@@ -1163,15 +1163,15 @@ function gs(t, e, n) {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
return n;
|
|
1165
1165
|
}
|
|
1166
|
-
const
|
|
1167
|
-
...
|
|
1168
|
-
...
|
|
1169
|
-
...
|
|
1170
|
-
...
|
|
1171
|
-
...
|
|
1172
|
-
...
|
|
1173
|
-
...
|
|
1174
|
-
...
|
|
1166
|
+
const cw = [
|
|
1167
|
+
...tw,
|
|
1168
|
+
...nw,
|
|
1169
|
+
...rw,
|
|
1170
|
+
...iw,
|
|
1171
|
+
...lw,
|
|
1172
|
+
...aw,
|
|
1173
|
+
...sw,
|
|
1174
|
+
...ow
|
|
1175
1175
|
];
|
|
1176
1176
|
function fc(t) {
|
|
1177
1177
|
return new Error(`unhandled node type: ${t}`);
|
|
@@ -1341,7 +1341,7 @@ function oC(t, e, n) {
|
|
|
1341
1341
|
...gn(e) ? e : Rt(e) ? Object.keys(e) : De(e) ? [e] : [n]
|
|
1342
1342
|
])];
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function uw(t, e, n) {
|
|
1345
1345
|
const r = De(n) ? n : pc, i = t;
|
|
1346
1346
|
i.__localeChainCache || (i.__localeChainCache = /* @__PURE__ */ new Map());
|
|
1347
1347
|
let o = i.__localeChainCache.get(r);
|
|
@@ -1649,7 +1649,7 @@ function mC(t, e) {
|
|
|
1649
1649
|
let i = t, o = 0;
|
|
1650
1650
|
for (; o < r; ) {
|
|
1651
1651
|
const s = n[o];
|
|
1652
|
-
if (
|
|
1652
|
+
if (cw.includes(s) && Qr(i))
|
|
1653
1653
|
return null;
|
|
1654
1654
|
const a = i[s];
|
|
1655
1655
|
if (a === void 0 || Jt(i))
|
|
@@ -1686,31 +1686,31 @@ function yC() {
|
|
|
1686
1686
|
capitalize: (t, e) => e === "text" && De(t) ? mv(t) : e === "vnode" && Rt(t) && "__v_isVNode" in t ? mv(t.children) : t
|
|
1687
1687
|
};
|
|
1688
1688
|
}
|
|
1689
|
-
let
|
|
1689
|
+
let dw;
|
|
1690
1690
|
function _C(t) {
|
|
1691
|
-
|
|
1691
|
+
dw = t;
|
|
1692
1692
|
}
|
|
1693
|
-
let
|
|
1693
|
+
let fw;
|
|
1694
1694
|
function wC(t) {
|
|
1695
|
-
|
|
1695
|
+
fw = t;
|
|
1696
1696
|
}
|
|
1697
|
-
let
|
|
1697
|
+
let hw;
|
|
1698
1698
|
function xC(t) {
|
|
1699
|
-
|
|
1699
|
+
hw = t;
|
|
1700
1700
|
}
|
|
1701
|
-
let
|
|
1701
|
+
let pw = null;
|
|
1702
1702
|
const kC = /* @__NO_SIDE_EFFECTS__ */ (t) => {
|
|
1703
|
-
|
|
1704
|
-
}, EC = /* @__NO_SIDE_EFFECTS__ */ () =>
|
|
1705
|
-
let
|
|
1703
|
+
pw = t;
|
|
1704
|
+
}, EC = /* @__NO_SIDE_EFFECTS__ */ () => pw;
|
|
1705
|
+
let mw = null;
|
|
1706
1706
|
const gv = (t) => {
|
|
1707
|
-
|
|
1708
|
-
}, SC = () =>
|
|
1707
|
+
mw = t;
|
|
1708
|
+
}, SC = () => mw;
|
|
1709
1709
|
let bv = 0;
|
|
1710
1710
|
function CC(t = {}) {
|
|
1711
|
-
const e = Jt(t.onWarn) ? t.onWarn : So, n = De(t.version) ? t.version : vC, r = De(t.locale) || Jt(t.locale) ? t.locale : pc, i = Jt(r) ? pc : r, o = gn(t.fallbackLocale) || Et(t.fallbackLocale) || De(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : i, s = Et(t.messages) ? t.messages : cp(i), a = Et(t.datetimeFormats) ? t.datetimeFormats : cp(i), l = Et(t.numberFormats) ? t.numberFormats : cp(i), c = Pn(jt(), t.modifiers, yC()), u = t.pluralRules || jt(), d = Jt(t.missing) ? t.missing : null, f = Lt(t.missingWarn) || Ga(t.missingWarn) ? t.missingWarn : !0, h = Lt(t.fallbackWarn) || Ga(t.fallbackWarn) ? t.fallbackWarn : !0, p = !!t.fallbackFormat, m = !!t.unresolving, g = Jt(t.postTranslation) ? t.postTranslation : null, b = Et(t.processor) ? t.processor : null, _ = Lt(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, E = !!t.escapeParameter, w = Jt(t.messageCompiler) ? t.messageCompiler :
|
|
1712
|
-
process.env.NODE_ENV !== "production" && Jt(t.messageCompiler) &&
|
|
1713
|
-
const k = Jt(t.messageResolver) ? t.messageResolver :
|
|
1711
|
+
const e = Jt(t.onWarn) ? t.onWarn : So, n = De(t.version) ? t.version : vC, r = De(t.locale) || Jt(t.locale) ? t.locale : pc, i = Jt(r) ? pc : r, o = gn(t.fallbackLocale) || Et(t.fallbackLocale) || De(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : i, s = Et(t.messages) ? t.messages : cp(i), a = Et(t.datetimeFormats) ? t.datetimeFormats : cp(i), l = Et(t.numberFormats) ? t.numberFormats : cp(i), c = Pn(jt(), t.modifiers, yC()), u = t.pluralRules || jt(), d = Jt(t.missing) ? t.missing : null, f = Lt(t.missingWarn) || Ga(t.missingWarn) ? t.missingWarn : !0, h = Lt(t.fallbackWarn) || Ga(t.fallbackWarn) ? t.fallbackWarn : !0, p = !!t.fallbackFormat, m = !!t.unresolving, g = Jt(t.postTranslation) ? t.postTranslation : null, b = Et(t.processor) ? t.processor : null, _ = Lt(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, E = !!t.escapeParameter, w = Jt(t.messageCompiler) ? t.messageCompiler : dw;
|
|
1712
|
+
process.env.NODE_ENV !== "production" && Jt(t.messageCompiler) && Q2(Xs(_r.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
1713
|
+
const k = Jt(t.messageResolver) ? t.messageResolver : fw || pC, M = Jt(t.localeFallbacker) ? t.localeFallbacker : hw || oC, I = Rt(t.fallbackContext) ? t.fallbackContext : void 0, z = t, L = Rt(z.__datetimeFormatters) ? z.__datetimeFormatters : /* @__PURE__ */ new Map(), Y = Rt(z.__numberFormatters) ? z.__numberFormatters : /* @__PURE__ */ new Map(), Q = Rt(z.__meta) ? z.__meta : {};
|
|
1714
1714
|
bv++;
|
|
1715
1715
|
const T = {
|
|
1716
1716
|
version: n,
|
|
@@ -1742,7 +1742,7 @@ const cp = (t) => ({ [t]: jt() });
|
|
|
1742
1742
|
function ah(t, e) {
|
|
1743
1743
|
return t instanceof RegExp ? t.test(e) : t;
|
|
1744
1744
|
}
|
|
1745
|
-
function
|
|
1745
|
+
function gw(t, e) {
|
|
1746
1746
|
return t instanceof RegExp ? t.test(e) : t;
|
|
1747
1747
|
}
|
|
1748
1748
|
function xg(t, e, n, r, i) {
|
|
@@ -1760,13 +1760,13 @@ function xg(t, e, n, r, i) {
|
|
|
1760
1760
|
const a = o(t, n, e, i);
|
|
1761
1761
|
return De(a) ? a : e;
|
|
1762
1762
|
} else
|
|
1763
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1763
|
+
return process.env.NODE_ENV !== "production" && gw(r, e) && s(Xs(_r.NOT_FOUND_KEY, { key: e, locale: n })), e;
|
|
1764
1764
|
}
|
|
1765
1765
|
function Il(t, e, n) {
|
|
1766
1766
|
const r = t;
|
|
1767
1767
|
r.__localeChainCache = /* @__PURE__ */ new Map(), t.localeFallbacker(t, n, e);
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1769
|
+
function bw(t, e) {
|
|
1770
1770
|
return t === e ? !1 : t.split("-")[0] === e.split("-")[0];
|
|
1771
1771
|
}
|
|
1772
1772
|
function TC(t, e) {
|
|
@@ -1774,17 +1774,17 @@ function TC(t, e) {
|
|
|
1774
1774
|
if (n === -1)
|
|
1775
1775
|
return !1;
|
|
1776
1776
|
for (let r = n + 1; r < e.length; r++)
|
|
1777
|
-
if (
|
|
1777
|
+
if (bw(t, e[r]))
|
|
1778
1778
|
return !0;
|
|
1779
1779
|
return !1;
|
|
1780
1780
|
}
|
|
1781
|
-
const vv = typeof Intl < "u",
|
|
1781
|
+
const vv = typeof Intl < "u", vw = {
|
|
1782
1782
|
dateTimeFormat: vv && typeof Intl.DateTimeFormat < "u",
|
|
1783
1783
|
numberFormat: vv && typeof Intl.NumberFormat < "u"
|
|
1784
1784
|
};
|
|
1785
1785
|
function yv(t, ...e) {
|
|
1786
1786
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: i, onWarn: o, localeFallbacker: s } = t, { __datetimeFormatters: a } = t;
|
|
1787
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1787
|
+
if (process.env.NODE_ENV !== "production" && !vw.dateTimeFormat)
|
|
1788
1788
|
return o(Xs(_r.CANNOT_FORMAT_DATE)), Ld;
|
|
1789
1789
|
const [l, c, u, d] = I0(...e), f = Lt(u.missingWarn) ? u.missingWarn : t.missingWarn, h = Lt(u.fallbackWarn) ? u.fallbackWarn : t.fallbackWarn, p = !!u.part, m = wg(t, u), g = s(
|
|
1790
1790
|
t,
|
|
@@ -1821,7 +1821,7 @@ function yv(t, ...e) {
|
|
|
1821
1821
|
let z = a.get(I);
|
|
1822
1822
|
return z || (z = new Intl.DateTimeFormat(_, Pn({}, E, d)), a.set(I, z)), p ? z.formatToParts(c) : z.format(c);
|
|
1823
1823
|
}
|
|
1824
|
-
const
|
|
1824
|
+
const yw = [
|
|
1825
1825
|
"localeMatcher",
|
|
1826
1826
|
"weekday",
|
|
1827
1827
|
"era",
|
|
@@ -1866,7 +1866,7 @@ function I0(...t) {
|
|
|
1866
1866
|
else
|
|
1867
1867
|
throw lo(er.INVALID_ARGUMENT);
|
|
1868
1868
|
return De(n) ? o.key = n : Et(n) && Object.keys(n).forEach((l) => {
|
|
1869
|
-
|
|
1869
|
+
yw.includes(l) ? s[l] = n[l] : o[l] = n[l];
|
|
1870
1870
|
}), De(r) ? o.locale = r : Et(r) && (s = r), Et(i) && (s = i), [o.key || "", a, o, s];
|
|
1871
1871
|
}
|
|
1872
1872
|
function _v(t, e, n) {
|
|
@@ -1878,7 +1878,7 @@ function _v(t, e, n) {
|
|
|
1878
1878
|
}
|
|
1879
1879
|
function wv(t, ...e) {
|
|
1880
1880
|
const { numberFormats: n, unresolving: r, fallbackLocale: i, onWarn: o, localeFallbacker: s } = t, { __numberFormatters: a } = t;
|
|
1881
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
1881
|
+
if (process.env.NODE_ENV !== "production" && !vw.numberFormat)
|
|
1882
1882
|
return o(Xs(_r.CANNOT_FORMAT_NUMBER)), Ld;
|
|
1883
1883
|
const [l, c, u, d] = D0(...e), f = Lt(u.missingWarn) ? u.missingWarn : t.missingWarn, h = Lt(u.fallbackWarn) ? u.fallbackWarn : t.fallbackWarn, p = !!u.part, m = wg(t, u), g = s(
|
|
1884
1884
|
t,
|
|
@@ -1915,7 +1915,7 @@ function wv(t, ...e) {
|
|
|
1915
1915
|
let z = a.get(I);
|
|
1916
1916
|
return z || (z = new Intl.NumberFormat(_, Pn({}, E, d)), a.set(I, z)), p ? z.formatToParts(c) : z.format(c);
|
|
1917
1917
|
}
|
|
1918
|
-
const
|
|
1918
|
+
const _w = [
|
|
1919
1919
|
"localeMatcher",
|
|
1920
1920
|
"style",
|
|
1921
1921
|
"currency",
|
|
@@ -1944,7 +1944,7 @@ function D0(...t) {
|
|
|
1944
1944
|
throw lo(er.INVALID_ARGUMENT);
|
|
1945
1945
|
const a = e;
|
|
1946
1946
|
return De(n) ? o.key = n : Et(n) && Object.keys(n).forEach((l) => {
|
|
1947
|
-
|
|
1947
|
+
_w.includes(l) ? s[l] = n[l] : o[l] = n[l];
|
|
1948
1948
|
}), De(r) ? o.locale = r : Et(r) && (s = r), Et(i) && (s = i), [o.key || "", a, o, s];
|
|
1949
1949
|
}
|
|
1950
1950
|
function xv(t, e, n) {
|
|
@@ -2003,7 +2003,7 @@ function Sv(t, ...e) {
|
|
|
2003
2003
|
l,
|
|
2004
2004
|
g,
|
|
2005
2005
|
a[g] || jt()
|
|
2006
|
-
] :
|
|
2006
|
+
] : ww(t, l, g, s, d, u), w = b, k = l;
|
|
2007
2007
|
if (!h && !(De(w) || Qr(w) || Gr(w)) && m && (w = p, k = w), !h && (!(De(w) || Qr(w) || Gr(w)) || !De(_)))
|
|
2008
2008
|
return i ? sh : l;
|
|
2009
2009
|
if (process.env.NODE_ENV !== "production" && De(w) && t.messageCompiler == null)
|
|
@@ -2011,7 +2011,7 @@ function Sv(t, ...e) {
|
|
|
2011
2011
|
let M = !1;
|
|
2012
2012
|
const I = () => {
|
|
2013
2013
|
M = !0;
|
|
2014
|
-
}, z = Gr(w) ? w :
|
|
2014
|
+
}, z = Gr(w) ? w : xw(t, l, _, w, k, I);
|
|
2015
2015
|
if (M)
|
|
2016
2016
|
return w;
|
|
2017
2017
|
const L = zC(t, _, E, c), Y = LC(L), Q = PC(t, z, Y);
|
|
@@ -2033,12 +2033,12 @@ function BC(t) {
|
|
|
2033
2033
|
De(t.named[e]) && (t.named[e] = ov(t.named[e]));
|
|
2034
2034
|
});
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function ww(t, e, n, r, i, o) {
|
|
2037
2037
|
const { messages: s, onWarn: a, messageResolver: l, localeFallbacker: c } = t, u = c(t, r, n);
|
|
2038
2038
|
let d = jt(), f, h = null, p = n, m = null;
|
|
2039
2039
|
const g = "translate";
|
|
2040
2040
|
for (let b = 0; b < u.length; b++) {
|
|
2041
|
-
if (f = m = u[b], process.env.NODE_ENV !== "production" && n !== f && !
|
|
2041
|
+
if (f = m = u[b], process.env.NODE_ENV !== "production" && n !== f && !bw(n, f) && ah(i, e) && a(Xs(_r.FALLBACK_TO_TRANSLATE, {
|
|
2042
2042
|
key: e,
|
|
2043
2043
|
target: f
|
|
2044
2044
|
})), process.env.NODE_ENV !== "production" && n !== f) {
|
|
@@ -2080,7 +2080,7 @@ function w2(t, e, n, r, i, o) {
|
|
|
2080
2080
|
}
|
|
2081
2081
|
return [h, f, d];
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function xw(t, e, n, r, i, o) {
|
|
2084
2084
|
const { messageCompiler: s, warnHtmlMessage: a } = t;
|
|
2085
2085
|
if (Gr(r)) {
|
|
2086
2086
|
const f = r;
|
|
@@ -2162,7 +2162,7 @@ function zC(t, e, n, r) {
|
|
|
2162
2162
|
messages: (h, p) => {
|
|
2163
2163
|
let m = s(n, h);
|
|
2164
2164
|
if (m == null && (u || p)) {
|
|
2165
|
-
const [, , g] =
|
|
2165
|
+
const [, , g] = ww(
|
|
2166
2166
|
u || t,
|
|
2167
2167
|
// NOTE: if has fallbackContext, fallback to root, else if use linked, fallback to local context
|
|
2168
2168
|
h,
|
|
@@ -2175,7 +2175,7 @@ function zC(t, e, n, r) {
|
|
|
2175
2175
|
}
|
|
2176
2176
|
if (De(m) || Qr(m)) {
|
|
2177
2177
|
let g = !1;
|
|
2178
|
-
const _ =
|
|
2178
|
+
const _ = xw(t, h, e, m, h, () => {
|
|
2179
2179
|
g = !0;
|
|
2180
2180
|
});
|
|
2181
2181
|
return g ? Ev : _;
|
|
@@ -2186,9 +2186,9 @@ function zC(t, e, n, r) {
|
|
|
2186
2186
|
}
|
|
2187
2187
|
z7();
|
|
2188
2188
|
function HC() {
|
|
2189
|
-
return
|
|
2189
|
+
return kw().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
2190
2190
|
}
|
|
2191
|
-
function
|
|
2191
|
+
function kw() {
|
|
2192
2192
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
2193
2193
|
}
|
|
2194
2194
|
const UC = typeof Proxy == "function", VC = "devtools-plugin:setup", WC = "plugin:settings:set";
|
|
@@ -2263,7 +2263,7 @@ class GC {
|
|
|
2263
2263
|
}
|
|
2264
2264
|
}
|
|
2265
2265
|
function jC(t, e) {
|
|
2266
|
-
const n = t, r =
|
|
2266
|
+
const n = t, r = kw(), i = HC(), o = UC && n.enableEarlyProxy;
|
|
2267
2267
|
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !o))
|
|
2268
2268
|
i.emit(VC, t, e);
|
|
2269
2269
|
else {
|
|
@@ -2336,7 +2336,7 @@ const ZC = {
|
|
|
2336
2336
|
[Xt.NOT_INSTALLED_WITH_PROVIDE]: "Need to install with `provide` function",
|
|
2337
2337
|
[Xt.NOT_COMPATIBLE_LEGACY_VUE_I18N]: "Not compatible legacy VueI18n.",
|
|
2338
2338
|
[Xt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]: "Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"
|
|
2339
|
-
}, P0 = /* @__PURE__ */ Wi("__translateVNode"), $0 = /* @__PURE__ */ Wi("__datetimeParts"), F0 = /* @__PURE__ */ Wi("__numberParts"), Js = /* @__PURE__ */ Wi("__enableEmitter"), mc = /* @__PURE__ */ Wi("__disableEmitter"),
|
|
2339
|
+
}, P0 = /* @__PURE__ */ Wi("__translateVNode"), $0 = /* @__PURE__ */ Wi("__datetimeParts"), F0 = /* @__PURE__ */ Wi("__numberParts"), Js = /* @__PURE__ */ Wi("__enableEmitter"), mc = /* @__PURE__ */ Wi("__disableEmitter"), Ew = Wi("__setPluralRules"), Sw = /* @__PURE__ */ Wi("__injectWithOption"), z0 = /* @__PURE__ */ Wi("__dispose");
|
|
2340
2340
|
function gc(t) {
|
|
2341
2341
|
if (!Rt(t) || Qr(t))
|
|
2342
2342
|
return t;
|
|
@@ -2358,7 +2358,7 @@ function gc(t) {
|
|
|
2358
2358
|
}
|
|
2359
2359
|
i = i[n[s]];
|
|
2360
2360
|
}
|
|
2361
|
-
if (o || (Qr(i) ?
|
|
2361
|
+
if (o || (Qr(i) ? cw.includes(n[r]) || delete t[e] : (i[n[r]] = t[e], delete t[e])), !Qr(i)) {
|
|
2362
2362
|
const s = i[n[r]];
|
|
2363
2363
|
Rt(s) && gc(s);
|
|
2364
2364
|
}
|
|
@@ -2378,10 +2378,10 @@ function kg(t, e) {
|
|
|
2378
2378
|
ui(s, a) && gc(s[a]);
|
|
2379
2379
|
return s;
|
|
2380
2380
|
}
|
|
2381
|
-
function
|
|
2381
|
+
function Cw(t) {
|
|
2382
2382
|
return t.type;
|
|
2383
2383
|
}
|
|
2384
|
-
function
|
|
2384
|
+
function Tw(t, e, n) {
|
|
2385
2385
|
let r = Rt(e.messages) ? e.messages : jt();
|
|
2386
2386
|
"__i18nGlobal" in n && (r = kg(t.locale.value, {
|
|
2387
2387
|
messages: r,
|
|
@@ -2417,7 +2417,7 @@ function Nv(t) {
|
|
|
2417
2417
|
const eT = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
2418
2418
|
const t = Ka();
|
|
2419
2419
|
let e = null;
|
|
2420
|
-
return t && (e =
|
|
2420
|
+
return t && (e = Cw(t)[Tv]) ? { [Tv]: e } : null;
|
|
2421
2421
|
};
|
|
2422
2422
|
function Eg(t = {}) {
|
|
2423
2423
|
const { __root: e, __injectWithOption: n } = t, r = e === void 0, i = t.flatJson, o = mi ? ae : I8;
|
|
@@ -2503,7 +2503,7 @@ function Eg(t = {}) {
|
|
|
2503
2503
|
if (oe !== "translate exists" && // for not `te` (e.g `t`)
|
|
2504
2504
|
Tn(St) && St === sh || oe === "translate exists" && !St) {
|
|
2505
2505
|
const [sn, Ei] = re();
|
|
2506
|
-
if (process.env.NODE_ENV !== "production" && e && De(sn) && V(oe, Ei) && (p && (ah(h, sn) ||
|
|
2506
|
+
if (process.env.NODE_ENV !== "production" && e && De(sn) && V(oe, Ei) && (p && (ah(h, sn) || gw(f, sn)) && So(lh(Wo.FALLBACK_TO_ROOT, {
|
|
2507
2507
|
key: sn,
|
|
2508
2508
|
type: oe
|
|
2509
2509
|
})), process.env.NODE_ENV !== "production")) {
|
|
@@ -2576,7 +2576,7 @@ function Eg(t = {}) {
|
|
|
2576
2576
|
}
|
|
2577
2577
|
function Pt(ue) {
|
|
2578
2578
|
let re = null;
|
|
2579
|
-
const oe =
|
|
2579
|
+
const oe = uw(I, l.value, a.value);
|
|
2580
2580
|
for (let pe = 0; pe < oe.length; pe++) {
|
|
2581
2581
|
const Ne = c.value[oe[pe]] || {}, je = I.messageResolver(Ne, ue);
|
|
2582
2582
|
if (je != null) {
|
|
@@ -2700,15 +2700,15 @@ function Eg(t = {}) {
|
|
|
2700
2700
|
setPostTranslationHandler: R,
|
|
2701
2701
|
getMissingHandler: S,
|
|
2702
2702
|
setMissingHandler: O,
|
|
2703
|
-
[
|
|
2703
|
+
[Ew]: Ot
|
|
2704
2704
|
};
|
|
2705
|
-
return Je.datetimeFormats = B, Je.numberFormats = D, Je.rt = ye, Je.te = Ft, Je.tm = zt, Je.d = Re, Je.n = Pe, Je.getDateTimeFormat = U, Je.setDateTimeFormat = W, Je.mergeDateTimeFormat = de, Je.getNumberFormat = be, Je.setNumberFormat = ze, Je.mergeNumberFormat = ft, Je[
|
|
2705
|
+
return Je.datetimeFormats = B, Je.numberFormats = D, Je.rt = ye, Je.te = Ft, Je.tm = zt, Je.d = Re, Je.n = Pe, Je.getDateTimeFormat = U, Je.setDateTimeFormat = W, Je.mergeDateTimeFormat = de, Je.getNumberFormat = be, Je.setNumberFormat = ze, Je.mergeNumberFormat = ft, Je[Sw] = n, Je[P0] = Ze, Je[$0] = st, Je[F0] = gt, process.env.NODE_ENV !== "production" && (Je[Js] = (ue) => {
|
|
2706
2706
|
I.__v_emitter = ue;
|
|
2707
2707
|
}, Je[mc] = () => {
|
|
2708
2708
|
I.__v_emitter = void 0;
|
|
2709
2709
|
}), Je;
|
|
2710
2710
|
}
|
|
2711
|
-
const
|
|
2711
|
+
const Aw = "vue-i18n: composer properties", up = {
|
|
2712
2712
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
2713
2713
|
"vue-i18n-resource-inspector": "Vue I18n DevTools",
|
|
2714
2714
|
"vue-i18n-timeline": "Vue I18n"
|
|
@@ -2727,7 +2727,7 @@ async function rT(t, e) {
|
|
|
2727
2727
|
packageName: "vue-i18n",
|
|
2728
2728
|
homepage: "https://vue-i18n.intlify.dev",
|
|
2729
2729
|
logo: "https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",
|
|
2730
|
-
componentStateTypes: [
|
|
2730
|
+
componentStateTypes: [Aw],
|
|
2731
2731
|
app: t
|
|
2732
2732
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
2733
2733
|
}, (i) => {
|
|
@@ -2769,14 +2769,14 @@ async function rT(t, e) {
|
|
|
2769
2769
|
}
|
|
2770
2770
|
});
|
|
2771
2771
|
}
|
|
2772
|
-
function
|
|
2772
|
+
function Mw(t) {
|
|
2773
2773
|
return t.type.name || t.type.displayName || t.type.__file || "Anonymous";
|
|
2774
2774
|
}
|
|
2775
2775
|
function iT(t, e, n) {
|
|
2776
2776
|
const r = n.mode === "composition" ? n.global : n.global.__composer;
|
|
2777
2777
|
if (t && t.vnode.el && t.vnode.el.__VUE_I18N__ && t.vnode.el.__VUE_I18N__ !== r) {
|
|
2778
2778
|
const i = {
|
|
2779
|
-
label: `i18n (${
|
|
2779
|
+
label: `i18n (${Mw(t)} Scope)`,
|
|
2780
2780
|
textColor: 0,
|
|
2781
2781
|
backgroundColor: 16764185
|
|
2782
2782
|
};
|
|
@@ -2784,7 +2784,7 @@ function iT(t, e, n) {
|
|
|
2784
2784
|
}
|
|
2785
2785
|
}
|
|
2786
2786
|
function Ov(t, e) {
|
|
2787
|
-
const n =
|
|
2787
|
+
const n = Aw;
|
|
2788
2788
|
t.state.push({
|
|
2789
2789
|
type: n,
|
|
2790
2790
|
key: "locale",
|
|
@@ -2859,7 +2859,7 @@ function cT(t, e) {
|
|
|
2859
2859
|
const o = e.mode === "composition" ? i : i.__composer;
|
|
2860
2860
|
n !== o && t.rootNodes.push({
|
|
2861
2861
|
id: o.id.toString(),
|
|
2862
|
-
label: `${
|
|
2862
|
+
label: `${Mw(r)} Scope`
|
|
2863
2863
|
});
|
|
2864
2864
|
}
|
|
2865
2865
|
}
|
|
@@ -2874,7 +2874,7 @@ function uT(t, e) {
|
|
|
2874
2874
|
}
|
|
2875
2875
|
return n;
|
|
2876
2876
|
}
|
|
2877
|
-
function
|
|
2877
|
+
function Nw(t, e) {
|
|
2878
2878
|
if (t === "global")
|
|
2879
2879
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
2880
2880
|
{
|
|
@@ -2883,7 +2883,7 @@ function N2(t, e) {
|
|
|
2883
2883
|
}
|
|
2884
2884
|
}
|
|
2885
2885
|
function dT(t, e) {
|
|
2886
|
-
const n =
|
|
2886
|
+
const n = Nw(t.nodeId, e);
|
|
2887
2887
|
return n && (t.state = fT(n)), null;
|
|
2888
2888
|
}
|
|
2889
2889
|
function fT(t) {
|
|
@@ -2962,7 +2962,7 @@ function bc(t, e) {
|
|
|
2962
2962
|
}
|
|
2963
2963
|
}
|
|
2964
2964
|
function hT(t, e) {
|
|
2965
|
-
const n =
|
|
2965
|
+
const n = Nw(t.nodeId, e);
|
|
2966
2966
|
if (n) {
|
|
2967
2967
|
const [r] = t.path;
|
|
2968
2968
|
r === "locale" && De(t.state.value) ? n.locale.value = t.state.value : r === "fallbackLocale" && (De(t.state.value) || gn(t.state.value) || Rt(t.state.value)) ? n.fallbackLocale.value = t.state.value : r === "inheritLocale" && Lt(t.state.value) && (n.inheritLocale = t.state.value);
|
|
@@ -3115,7 +3115,7 @@ function U0(t = {}) {
|
|
|
3115
3115
|
tc(...i) {
|
|
3116
3116
|
const [o, s, a] = i, l = { plural: 1 };
|
|
3117
3117
|
let c = null, u = null;
|
|
3118
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
3118
|
+
if (process.env.NODE_ENV !== "production" && Q2(lh(Wo.DEPRECATE_TC)), !De(o))
|
|
3119
3119
|
throw hr(Xt.INVALID_ARGUMENT);
|
|
3120
3120
|
const d = o;
|
|
3121
3121
|
return De(s) ? l.locale = s : Tn(s) ? l.plural = s : gn(s) ? c = s : Et(s) && (u = s), De(a) ? l.locale = a : gn(a) ? c = a : Et(a) && (u = a), Reflect.apply(e.t, e, [
|
|
@@ -3216,7 +3216,7 @@ function mT(t, e, n) {
|
|
|
3216
3216
|
}
|
|
3217
3217
|
else
|
|
3218
3218
|
this.$i18n = t;
|
|
3219
|
-
i.__i18nGlobal &&
|
|
3219
|
+
i.__i18nGlobal && Tw(e, i, i), this.$t = (...o) => this.$i18n.t(...o), this.$rt = (...o) => this.$i18n.rt(...o), this.$tc = (...o) => this.$i18n.tc(...o), this.$te = (o, s) => this.$i18n.te(o, s), this.$d = (...o) => this.$i18n.d(...o), this.$n = (...o) => this.$i18n.n(...o), this.$tm = (o) => this.$i18n.tm(o), n.__setInstance(r, this.$i18n);
|
|
3220
3220
|
},
|
|
3221
3221
|
mounted() {
|
|
3222
3222
|
if (process.env.NODE_ENV !== "production" && this.$el && this.$i18n) {
|
|
@@ -3236,7 +3236,7 @@ function mT(t, e, n) {
|
|
|
3236
3236
|
};
|
|
3237
3237
|
}
|
|
3238
3238
|
function Rv(t, e) {
|
|
3239
|
-
t.locale = e.locale || t.locale, t.fallbackLocale = e.fallbackLocale || t.fallbackLocale, t.missing = e.missing || t.missing, t.silentTranslationWarn = e.silentTranslationWarn || t.silentFallbackWarn, t.silentFallbackWarn = e.silentFallbackWarn || t.silentFallbackWarn, t.formatFallbackMessages = e.formatFallbackMessages || t.formatFallbackMessages, t.postTranslation = e.postTranslation || t.postTranslation, t.warnHtmlInMessage = e.warnHtmlInMessage || t.warnHtmlInMessage, t.escapeParameterHtml = e.escapeParameterHtml || t.escapeParameterHtml, t.sync = e.sync || t.sync, t.__composer[
|
|
3239
|
+
t.locale = e.locale || t.locale, t.fallbackLocale = e.fallbackLocale || t.fallbackLocale, t.missing = e.missing || t.missing, t.silentTranslationWarn = e.silentTranslationWarn || t.silentFallbackWarn, t.silentFallbackWarn = e.silentFallbackWarn || t.silentFallbackWarn, t.formatFallbackMessages = e.formatFallbackMessages || t.formatFallbackMessages, t.postTranslation = e.postTranslation || t.postTranslation, t.warnHtmlInMessage = e.warnHtmlInMessage || t.warnHtmlInMessage, t.escapeParameterHtml = e.escapeParameterHtml || t.escapeParameterHtml, t.sync = e.sync || t.sync, t.__composer[Ew](e.pluralizationRules || t.pluralizationRules);
|
|
3240
3240
|
const n = kg(t.locale, {
|
|
3241
3241
|
messages: e.messages,
|
|
3242
3242
|
__i18n: e.__i18n
|
|
@@ -3271,7 +3271,7 @@ function gT({ slots: t }, e) {
|
|
|
3271
3271
|
return i && (n[r] = i()), n;
|
|
3272
3272
|
}, jt());
|
|
3273
3273
|
}
|
|
3274
|
-
function
|
|
3274
|
+
function Ow() {
|
|
3275
3275
|
return rt;
|
|
3276
3276
|
}
|
|
3277
3277
|
const bT = /* @__PURE__ */ wi({
|
|
@@ -3297,7 +3297,7 @@ const bT = /* @__PURE__ */ wi({
|
|
|
3297
3297
|
return () => {
|
|
3298
3298
|
const o = Object.keys(n).filter((d) => d !== "_"), s = jt();
|
|
3299
3299
|
t.locale && (s.locale = t.locale), t.plural !== void 0 && (s.plural = De(t.plural) ? +t.plural : t.plural);
|
|
3300
|
-
const a = gT(e, o), l = i[P0](t.keypath, a, s), c = Pn(jt(), r), u = De(t.tag) || Rt(t.tag) ? t.tag :
|
|
3300
|
+
const a = gT(e, o), l = i[P0](t.keypath, a, s), c = Pn(jt(), r), u = De(t.tag) || Rt(t.tag) ? t.tag : Ow();
|
|
3301
3301
|
return Wt(u, c, l);
|
|
3302
3302
|
};
|
|
3303
3303
|
}
|
|
@@ -3305,7 +3305,7 @@ const bT = /* @__PURE__ */ wi({
|
|
|
3305
3305
|
function vT(t) {
|
|
3306
3306
|
return gn(t) && !De(t[0]);
|
|
3307
3307
|
}
|
|
3308
|
-
function
|
|
3308
|
+
function Rw(t, e, n, r) {
|
|
3309
3309
|
const { slots: i, attrs: o } = e;
|
|
3310
3310
|
return () => {
|
|
3311
3311
|
const s = { part: !0 };
|
|
@@ -3317,7 +3317,7 @@ function R2(t, e, n, r) {
|
|
|
3317
3317
|
const p = i[f.type], m = p ? p({ [f.type]: f.value, index: h, parts: l }) : [f.value];
|
|
3318
3318
|
return vT(m) && (m[0].key = `${f.type}-${h}`), m;
|
|
3319
3319
|
}) : De(l) && (c = [l]);
|
|
3320
|
-
const u = Pn(jt(), o), d = De(t.tag) || Rt(t.tag) ? t.tag :
|
|
3320
|
+
const u = Pn(jt(), o), d = De(t.tag) || Rt(t.tag) ? t.tag : Ow();
|
|
3321
3321
|
return Wt(d, u, c);
|
|
3322
3322
|
};
|
|
3323
3323
|
}
|
|
@@ -3340,7 +3340,7 @@ const yT = /* @__PURE__ */ wi({
|
|
|
3340
3340
|
useScope: t.scope,
|
|
3341
3341
|
__useComponent: !0
|
|
3342
3342
|
});
|
|
3343
|
-
return
|
|
3343
|
+
return Rw(t, e, _w, (...r) => (
|
|
3344
3344
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3345
3345
|
n[F0](...r)
|
|
3346
3346
|
));
|
|
@@ -3364,7 +3364,7 @@ const yT = /* @__PURE__ */ wi({
|
|
|
3364
3364
|
useScope: t.scope,
|
|
3365
3365
|
__useComponent: !0
|
|
3366
3366
|
});
|
|
3367
|
-
return
|
|
3367
|
+
return Rw(t, e, yw, (...r) => (
|
|
3368
3368
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3369
3369
|
n[$0](...r)
|
|
3370
3370
|
));
|
|
@@ -3498,9 +3498,9 @@ function Tg(t = {}) {
|
|
|
3498
3498
|
throw hr(Xt.MUST_BE_CALL_SETUP_TOP);
|
|
3499
3499
|
if (!e.isCE && e.appContext.app != null && !e.appContext.app.__VUE_I18N_SYMBOL__)
|
|
3500
3500
|
throw hr(Xt.NOT_INSTALLED);
|
|
3501
|
-
const n = TT(e), r = MT(n), i =
|
|
3501
|
+
const n = TT(e), r = MT(n), i = Cw(e), o = AT(t, i);
|
|
3502
3502
|
if (o === "global")
|
|
3503
|
-
return
|
|
3503
|
+
return Tw(r, t, i), r;
|
|
3504
3504
|
if (o === "parent") {
|
|
3505
3505
|
let l = NT(n, e, t.__useComponent);
|
|
3506
3506
|
return l == null && (process.env.NODE_ENV !== "production" && So(lh(Wo.NOT_FOUND_PARENT_SCOPE)), l = r), l;
|
|
@@ -3541,7 +3541,7 @@ function NT(t, e, n = !1) {
|
|
|
3541
3541
|
r = s.__getInstance(o);
|
|
3542
3542
|
else if (__VUE_I18N_LEGACY_API__) {
|
|
3543
3543
|
const a = s.__getInstance(o);
|
|
3544
|
-
a != null && (r = a.__composer, n && r && !r[
|
|
3544
|
+
a != null && (r = a.__composer, n && r && !r[Sw] && (r = null));
|
|
3545
3545
|
}
|
|
3546
3546
|
if (r != null || i === o)
|
|
3547
3547
|
break;
|
|
@@ -3606,7 +3606,7 @@ function DT(t, e) {
|
|
|
3606
3606
|
XC();
|
|
3607
3607
|
_C(Z7);
|
|
3608
3608
|
wC(mC);
|
|
3609
|
-
xC(
|
|
3609
|
+
xC(uw);
|
|
3610
3610
|
if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
|
|
3611
3611
|
const t = Ds();
|
|
3612
3612
|
t.__INTLIFY__ = !0, Q7(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
@@ -4673,7 +4673,7 @@ const LT = {
|
|
|
4673
4673
|
// superCourse
|
|
4674
4674
|
// superCourse:{
|
|
4675
4675
|
// }
|
|
4676
|
-
},
|
|
4676
|
+
}, Iw = Object.keys(V0), Ag = {
|
|
4677
4677
|
// common: {
|
|
4678
4678
|
// primaryColor: '#3A76EF',
|
|
4679
4679
|
// primaryColorHover: '#3A76EF',
|
|
@@ -4792,7 +4792,7 @@ const ve = F8(() => {
|
|
|
4792
4792
|
en_US: LT,
|
|
4793
4793
|
zh_CN: BT
|
|
4794
4794
|
}
|
|
4795
|
-
}), { global: Mg } = $T, { t: A } = Mg,
|
|
4795
|
+
}), { global: Mg } = $T, { t: A } = Mg, Dw = () => Mg;
|
|
4796
4796
|
function Xa(t) {
|
|
4797
4797
|
if (typeof t == "string")
|
|
4798
4798
|
return t;
|
|
@@ -4899,7 +4899,7 @@ jn.from = function(t) {
|
|
|
4899
4899
|
if (t) for (var n in t) e.push(n, t[n]);
|
|
4900
4900
|
return new jn(e);
|
|
4901
4901
|
};
|
|
4902
|
-
function
|
|
4902
|
+
function Lw(t, e, n) {
|
|
4903
4903
|
for (let r = 0; ; r++) {
|
|
4904
4904
|
if (r == t.childCount || r == e.childCount)
|
|
4905
4905
|
return t.childCount == e.childCount ? null : n;
|
|
@@ -4916,14 +4916,14 @@ function L2(t, e, n) {
|
|
|
4916
4916
|
return n;
|
|
4917
4917
|
}
|
|
4918
4918
|
if (i.content.size || o.content.size) {
|
|
4919
|
-
let s =
|
|
4919
|
+
let s = Lw(i.content, o.content, n + 1);
|
|
4920
4920
|
if (s != null)
|
|
4921
4921
|
return s;
|
|
4922
4922
|
}
|
|
4923
4923
|
n += i.nodeSize;
|
|
4924
4924
|
}
|
|
4925
4925
|
}
|
|
4926
|
-
function
|
|
4926
|
+
function Bw(t, e, n, r) {
|
|
4927
4927
|
for (let i = t.childCount, o = e.childCount; ; ) {
|
|
4928
4928
|
if (i == 0 || o == 0)
|
|
4929
4929
|
return i == o ? null : { a: n, b: r };
|
|
@@ -4941,7 +4941,7 @@ function B2(t, e, n, r) {
|
|
|
4941
4941
|
return { a: n, b: r };
|
|
4942
4942
|
}
|
|
4943
4943
|
if (s.content.size || a.content.size) {
|
|
4944
|
-
let c =
|
|
4944
|
+
let c = Bw(s.content, a.content, n - 1, r - 1);
|
|
4945
4945
|
if (c)
|
|
4946
4946
|
return c;
|
|
4947
4947
|
}
|
|
@@ -5110,7 +5110,7 @@ class me {
|
|
|
5110
5110
|
fragment differ, or `null` if they are the same.
|
|
5111
5111
|
*/
|
|
5112
5112
|
findDiffStart(e, n = 0) {
|
|
5113
|
-
return
|
|
5113
|
+
return Lw(this, e, n);
|
|
5114
5114
|
}
|
|
5115
5115
|
/**
|
|
5116
5116
|
Find the first position, searching from the end, at which this
|
|
@@ -5119,7 +5119,7 @@ class me {
|
|
|
5119
5119
|
nodes, an object with two separate positions is returned.
|
|
5120
5120
|
*/
|
|
5121
5121
|
findDiffEnd(e, n = this.size, r = e.size) {
|
|
5122
|
-
return
|
|
5122
|
+
return Bw(this, e, n, r);
|
|
5123
5123
|
}
|
|
5124
5124
|
/**
|
|
5125
5125
|
Find the index and inner offset corresponding to a given relative
|
|
@@ -5363,14 +5363,14 @@ class Te {
|
|
|
5363
5363
|
@internal
|
|
5364
5364
|
*/
|
|
5365
5365
|
insertAt(e, n) {
|
|
5366
|
-
let r = $
|
|
5366
|
+
let r = $w(this.content, e + this.openStart, n);
|
|
5367
5367
|
return r && new Te(r, this.openStart, this.openEnd);
|
|
5368
5368
|
}
|
|
5369
5369
|
/**
|
|
5370
5370
|
@internal
|
|
5371
5371
|
*/
|
|
5372
5372
|
removeBetween(e, n) {
|
|
5373
|
-
return new Te(
|
|
5373
|
+
return new Te(Pw(this.content, e + this.openStart, n + this.openStart), this.openStart, this.openEnd);
|
|
5374
5374
|
}
|
|
5375
5375
|
/**
|
|
5376
5376
|
Tests whether this slice is equal to another slice.
|
|
@@ -5418,7 +5418,7 @@ class Te {
|
|
|
5418
5418
|
}
|
|
5419
5419
|
}
|
|
5420
5420
|
Te.empty = new Te(me.empty, 0, 0);
|
|
5421
|
-
function
|
|
5421
|
+
function Pw(t, e, n) {
|
|
5422
5422
|
let { index: r, offset: i } = t.findIndex(e), o = t.maybeChild(r), { index: s, offset: a } = t.findIndex(n);
|
|
5423
5423
|
if (i == e || o.isText) {
|
|
5424
5424
|
if (a != n && !t.child(s).isText)
|
|
@@ -5427,13 +5427,13 @@ function P2(t, e, n) {
|
|
|
5427
5427
|
}
|
|
5428
5428
|
if (r != s)
|
|
5429
5429
|
throw new RangeError("Removing non-flat range");
|
|
5430
|
-
return t.replaceChild(r, o.copy(
|
|
5430
|
+
return t.replaceChild(r, o.copy(Pw(o.content, e - i - 1, n - i - 1)));
|
|
5431
5431
|
}
|
|
5432
|
-
function $
|
|
5432
|
+
function $w(t, e, n, r) {
|
|
5433
5433
|
let { index: i, offset: o } = t.findIndex(e), s = t.maybeChild(i);
|
|
5434
5434
|
if (o == e || s.isText)
|
|
5435
5435
|
return r && !r.canReplace(i, i, n) ? null : t.cut(0, e).append(n).append(t.cut(e));
|
|
5436
|
-
let a = $
|
|
5436
|
+
let a = $w(s.content, e - o - 1, n, s);
|
|
5437
5437
|
return a && t.replaceChild(i, s.copy(a));
|
|
5438
5438
|
}
|
|
5439
5439
|
function FT(t, e, n) {
|
|
@@ -5441,12 +5441,12 @@ function FT(t, e, n) {
|
|
|
5441
5441
|
throw new Pd("Inserted content deeper than insertion position");
|
|
5442
5442
|
if (t.depth - n.openStart != e.depth - n.openEnd)
|
|
5443
5443
|
throw new Pd("Inconsistent open depths");
|
|
5444
|
-
return
|
|
5444
|
+
return Fw(t, e, n, 0);
|
|
5445
5445
|
}
|
|
5446
|
-
function
|
|
5446
|
+
function Fw(t, e, n, r) {
|
|
5447
5447
|
let i = t.index(r), o = t.node(r);
|
|
5448
5448
|
if (i == e.index(r) && r < t.depth - n.openStart) {
|
|
5449
|
-
let s =
|
|
5449
|
+
let s = Fw(t, e, n, r + 1);
|
|
5450
5450
|
return o.copy(o.content.replaceChild(i, s));
|
|
5451
5451
|
} else if (n.content.size)
|
|
5452
5452
|
if (!n.openStart && !n.openEnd && t.depth == r && e.depth == r) {
|
|
@@ -5454,17 +5454,17 @@ function F2(t, e, n, r) {
|
|
|
5454
5454
|
return Fs(s, a.cut(0, t.parentOffset).append(n.content).append(a.cut(e.parentOffset)));
|
|
5455
5455
|
} else {
|
|
5456
5456
|
let { start: s, end: a } = zT(n, t);
|
|
5457
|
-
return Fs(o,
|
|
5457
|
+
return Fs(o, Hw(t, s, a, e, r));
|
|
5458
5458
|
}
|
|
5459
5459
|
else return Fs(o, $d(t, e, r));
|
|
5460
5460
|
}
|
|
5461
|
-
function
|
|
5461
|
+
function zw(t, e) {
|
|
5462
5462
|
if (!e.type.compatibleContent(t.type))
|
|
5463
5463
|
throw new Pd("Cannot join " + e.type.name + " onto " + t.type.name);
|
|
5464
5464
|
}
|
|
5465
5465
|
function q0(t, e, n) {
|
|
5466
5466
|
let r = t.node(n);
|
|
5467
|
-
return
|
|
5467
|
+
return zw(r, e.node(n)), r;
|
|
5468
5468
|
}
|
|
5469
5469
|
function $s(t, e) {
|
|
5470
5470
|
let n = e.length - 1;
|
|
@@ -5480,9 +5480,9 @@ function Gl(t, e, n, r) {
|
|
|
5480
5480
|
function Fs(t, e) {
|
|
5481
5481
|
return t.type.checkContent(e), t.copy(e);
|
|
5482
5482
|
}
|
|
5483
|
-
function
|
|
5483
|
+
function Hw(t, e, n, r, i) {
|
|
5484
5484
|
let o = t.depth > i && q0(t, e, i + 1), s = r.depth > i && q0(n, r, i + 1), a = [];
|
|
5485
|
-
return Gl(null, t, i, a), o && s && e.index(i) == n.index(i) ? (
|
|
5485
|
+
return Gl(null, t, i, a), o && s && e.index(i) == n.index(i) ? (zw(o, s), $s(Fs(o, Hw(t, e, n, r, i + 1)), a)) : (o && $s(Fs(o, $d(t, e, i + 1)), a), Gl(e, n, i, a), s && $s(Fs(s, $d(n, r, i + 1)), a)), Gl(r, null, i, a), new me(a);
|
|
5486
5486
|
}
|
|
5487
5487
|
function $d(t, e, n) {
|
|
5488
5488
|
let r = [];
|
|
@@ -6071,7 +6071,7 @@ let es = class K0 {
|
|
|
6071
6071
|
if (this.type.spec.toDebugString)
|
|
6072
6072
|
return this.type.spec.toDebugString(this);
|
|
6073
6073
|
let e = this.type.name;
|
|
6074
|
-
return this.content.size && (e += "(" + this.content.toStringInner() + ")"),
|
|
6074
|
+
return this.content.size && (e += "(" + this.content.toStringInner() + ")"), Uw(this.marks, e);
|
|
6075
6075
|
}
|
|
6076
6076
|
/**
|
|
6077
6077
|
Get the content match in this node at the given index.
|
|
@@ -6175,7 +6175,7 @@ let WT = class G0 extends es {
|
|
|
6175
6175
|
this.text = r;
|
|
6176
6176
|
}
|
|
6177
6177
|
toString() {
|
|
6178
|
-
return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) :
|
|
6178
|
+
return this.type.spec.toDebugString ? this.type.spec.toDebugString(this) : Uw(this.marks, JSON.stringify(this.text));
|
|
6179
6179
|
}
|
|
6180
6180
|
get textContent() {
|
|
6181
6181
|
return this.text;
|
|
@@ -6203,7 +6203,7 @@ let WT = class G0 extends es {
|
|
|
6203
6203
|
return e.text = this.text, e;
|
|
6204
6204
|
}
|
|
6205
6205
|
};
|
|
6206
|
-
function
|
|
6206
|
+
function Uw(t, e) {
|
|
6207
6207
|
for (let n = t.length - 1; n >= 0; n--)
|
|
6208
6208
|
e = t[n].type.name + "(" + e + ")";
|
|
6209
6209
|
return e;
|
|
@@ -6222,7 +6222,7 @@ class Zs {
|
|
|
6222
6222
|
let r = new qT(e, n);
|
|
6223
6223
|
if (r.next == null)
|
|
6224
6224
|
return Zs.empty;
|
|
6225
|
-
let i =
|
|
6225
|
+
let i = Vw(r);
|
|
6226
6226
|
r.next && r.err("Unexpected trailing text");
|
|
6227
6227
|
let o = ZT(JT(i));
|
|
6228
6228
|
return QT(o, r), o;
|
|
@@ -6385,7 +6385,7 @@ class qT {
|
|
|
6385
6385
|
throw new SyntaxError(e + " (in content expression '" + this.string + "')");
|
|
6386
6386
|
}
|
|
6387
6387
|
}
|
|
6388
|
-
function
|
|
6388
|
+
function Vw(t) {
|
|
6389
6389
|
let e = [];
|
|
6390
6390
|
do
|
|
6391
6391
|
e.push(KT(t));
|
|
@@ -6436,7 +6436,7 @@ function YT(t, e) {
|
|
|
6436
6436
|
}
|
|
6437
6437
|
function XT(t) {
|
|
6438
6438
|
if (t.eat("(")) {
|
|
6439
|
-
let e =
|
|
6439
|
+
let e = Vw(t);
|
|
6440
6440
|
return t.eat(")") || t.err("Missing closing paren"), e;
|
|
6441
6441
|
} else if (/\W/.test(t.next))
|
|
6442
6442
|
t.err("Unexpected token '" + t.next + "'");
|
|
@@ -6499,12 +6499,12 @@ function JT(t) {
|
|
|
6499
6499
|
}
|
|
6500
6500
|
}
|
|
6501
6501
|
}
|
|
6502
|
-
function
|
|
6502
|
+
function Ww(t, e) {
|
|
6503
6503
|
return e - t;
|
|
6504
6504
|
}
|
|
6505
6505
|
function Hv(t, e) {
|
|
6506
6506
|
let n = [];
|
|
6507
|
-
return r(e), n.sort(
|
|
6507
|
+
return r(e), n.sort(Ww);
|
|
6508
6508
|
function r(i) {
|
|
6509
6509
|
let o = t[i];
|
|
6510
6510
|
if (o.length == 1 && !o[0].term)
|
|
@@ -6535,7 +6535,7 @@ function ZT(t) {
|
|
|
6535
6535
|
});
|
|
6536
6536
|
let o = e[r.join(",")] = new Zs(r.indexOf(t.length - 1) > -1);
|
|
6537
6537
|
for (let s = 0; s < i.length; s++) {
|
|
6538
|
-
let a = i[s][1].sort(
|
|
6538
|
+
let a = i[s][1].sort(Ww);
|
|
6539
6539
|
o.next.push({ type: i[s][0], next: e[a.join(",")] || n(a) });
|
|
6540
6540
|
}
|
|
6541
6541
|
return o;
|
|
@@ -6551,7 +6551,7 @@ function QT(t, e) {
|
|
|
6551
6551
|
o && e.err("Only non-generatable nodes (" + s.join(", ") + ") in a required position (see https://prosemirror.net/docs/guide/#generatable)");
|
|
6552
6552
|
}
|
|
6553
6553
|
}
|
|
6554
|
-
function
|
|
6554
|
+
function qw(t) {
|
|
6555
6555
|
let e = /* @__PURE__ */ Object.create(null);
|
|
6556
6556
|
for (let n in t) {
|
|
6557
6557
|
let r = t[n];
|
|
@@ -6561,7 +6561,7 @@ function q2(t) {
|
|
|
6561
6561
|
}
|
|
6562
6562
|
return e;
|
|
6563
6563
|
}
|
|
6564
|
-
function
|
|
6564
|
+
function Kw(t, e) {
|
|
6565
6565
|
let n = /* @__PURE__ */ Object.create(null);
|
|
6566
6566
|
for (let r in t) {
|
|
6567
6567
|
let i = e && e[r];
|
|
@@ -6576,7 +6576,7 @@ function K2(t, e) {
|
|
|
6576
6576
|
}
|
|
6577
6577
|
return n;
|
|
6578
6578
|
}
|
|
6579
|
-
function
|
|
6579
|
+
function Gw(t, e, n, r) {
|
|
6580
6580
|
for (let i in e)
|
|
6581
6581
|
if (!(i in t))
|
|
6582
6582
|
throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${i}`);
|
|
@@ -6585,19 +6585,19 @@ function G2(t, e, n, r) {
|
|
|
6585
6585
|
o.validate && o.validate(e[i]);
|
|
6586
6586
|
}
|
|
6587
6587
|
}
|
|
6588
|
-
function
|
|
6588
|
+
function jw(t, e) {
|
|
6589
6589
|
let n = /* @__PURE__ */ Object.create(null);
|
|
6590
6590
|
if (e)
|
|
6591
6591
|
for (let r in e)
|
|
6592
6592
|
n[r] = new tA(t, r, e[r]);
|
|
6593
6593
|
return n;
|
|
6594
6594
|
}
|
|
6595
|
-
let Uv = class
|
|
6595
|
+
let Uv = class Yw {
|
|
6596
6596
|
/**
|
|
6597
6597
|
@internal
|
|
6598
6598
|
*/
|
|
6599
6599
|
constructor(e, n, r) {
|
|
6600
|
-
this.name = e, this.schema = n, this.spec = r, this.markSet = null, this.groups = r.group ? r.group.split(" ") : [], this.attrs =
|
|
6600
|
+
this.name = e, this.schema = n, this.spec = r, this.markSet = null, this.groups = r.group ? r.group.split(" ") : [], this.attrs = jw(e, r.attrs), this.defaultAttrs = qw(this.attrs), this.contentMatch = null, this.inlineContent = null, this.isBlock = !(r.inline || e == "text"), this.isText = e == "text";
|
|
6601
6601
|
}
|
|
6602
6602
|
/**
|
|
6603
6603
|
True if this is an inline type.
|
|
@@ -6658,7 +6658,7 @@ let Uv = class Y2 {
|
|
|
6658
6658
|
@internal
|
|
6659
6659
|
*/
|
|
6660
6660
|
computeAttrs(e) {
|
|
6661
|
-
return !e && this.defaultAttrs ? this.defaultAttrs :
|
|
6661
|
+
return !e && this.defaultAttrs ? this.defaultAttrs : Kw(this.attrs, e);
|
|
6662
6662
|
}
|
|
6663
6663
|
/**
|
|
6664
6664
|
Create a `Node` of this type. The given attributes are
|
|
@@ -6725,7 +6725,7 @@ let Uv = class Y2 {
|
|
|
6725
6725
|
@internal
|
|
6726
6726
|
*/
|
|
6727
6727
|
checkAttrs(e) {
|
|
6728
|
-
|
|
6728
|
+
Gw(this.attrs, e, "node", this.name);
|
|
6729
6729
|
}
|
|
6730
6730
|
/**
|
|
6731
6731
|
Check whether the given mark type is allowed in this node.
|
|
@@ -6760,7 +6760,7 @@ let Uv = class Y2 {
|
|
|
6760
6760
|
*/
|
|
6761
6761
|
static compile(e, n) {
|
|
6762
6762
|
let r = /* @__PURE__ */ Object.create(null);
|
|
6763
|
-
e.forEach((o, s) => r[o] = new
|
|
6763
|
+
e.forEach((o, s) => r[o] = new Yw(o, n, s));
|
|
6764
6764
|
let i = n.spec.topNode || "doc";
|
|
6765
6765
|
if (!r[i])
|
|
6766
6766
|
throw new RangeError("Schema is missing its top node type ('" + i + "')");
|
|
@@ -6792,8 +6792,8 @@ class ch {
|
|
|
6792
6792
|
@internal
|
|
6793
6793
|
*/
|
|
6794
6794
|
constructor(e, n, r, i) {
|
|
6795
|
-
this.name = e, this.rank = n, this.schema = r, this.spec = i, this.attrs =
|
|
6796
|
-
let o =
|
|
6795
|
+
this.name = e, this.rank = n, this.schema = r, this.spec = i, this.attrs = jw(e, i.attrs), this.excluded = null;
|
|
6796
|
+
let o = qw(this.attrs);
|
|
6797
6797
|
this.instance = o ? new Zt(this, o) : null;
|
|
6798
6798
|
}
|
|
6799
6799
|
/**
|
|
@@ -6802,7 +6802,7 @@ class ch {
|
|
|
6802
6802
|
they have defaults, will be added.
|
|
6803
6803
|
*/
|
|
6804
6804
|
create(e = null) {
|
|
6805
|
-
return !e && this.instance ? this.instance : new Zt(this,
|
|
6805
|
+
return !e && this.instance ? this.instance : new Zt(this, Kw(this.attrs, e));
|
|
6806
6806
|
}
|
|
6807
6807
|
/**
|
|
6808
6808
|
@internal
|
|
@@ -6832,7 +6832,7 @@ class ch {
|
|
|
6832
6832
|
@internal
|
|
6833
6833
|
*/
|
|
6834
6834
|
checkAttrs(e) {
|
|
6835
|
-
|
|
6835
|
+
Gw(this.attrs, e, "mark", this.name);
|
|
6836
6836
|
}
|
|
6837
6837
|
/**
|
|
6838
6838
|
Queries whether a given mark type is
|
|
@@ -6842,7 +6842,7 @@ class ch {
|
|
|
6842
6842
|
return this.excluded.indexOf(e) > -1;
|
|
6843
6843
|
}
|
|
6844
6844
|
}
|
|
6845
|
-
class
|
|
6845
|
+
class Xw {
|
|
6846
6846
|
/**
|
|
6847
6847
|
Construct a schema from a schema [specification](https://prosemirror.net/docs/ref/#model.SchemaSpec).
|
|
6848
6848
|
*/
|
|
@@ -7048,7 +7048,7 @@ let jl = class j0 {
|
|
|
7048
7048
|
return e.cached.domParser || (e.cached.domParser = new j0(e, j0.schemaRules(e)));
|
|
7049
7049
|
}
|
|
7050
7050
|
};
|
|
7051
|
-
const
|
|
7051
|
+
const Jw = {
|
|
7052
7052
|
address: !0,
|
|
7053
7053
|
article: !0,
|
|
7054
7054
|
aside: !0,
|
|
@@ -7088,7 +7088,7 @@ const J2 = {
|
|
|
7088
7088
|
script: !0,
|
|
7089
7089
|
style: !0,
|
|
7090
7090
|
title: !0
|
|
7091
|
-
},
|
|
7091
|
+
}, Zw = { ol: !0, ul: !0 }, _c = 1, Y0 = 2, Yl = 4;
|
|
7092
7092
|
function Wv(t, e, n) {
|
|
7093
7093
|
return e != null ? (e ? _c : 0) | (e === "full" ? Y0 : 0) : t && t.whitespace == "pre" ? _c | Y0 : n & ~Yl;
|
|
7094
7094
|
}
|
|
@@ -7122,7 +7122,7 @@ class Su {
|
|
|
7122
7122
|
return !e && this.match && (n = n.append(this.match.fillBefore(me.empty, !0))), this.type ? this.type.create(this.attrs, n, this.marks) : n;
|
|
7123
7123
|
}
|
|
7124
7124
|
inlineContext(e) {
|
|
7125
|
-
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !
|
|
7125
|
+
return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Jw.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
|
|
7126
7126
|
}
|
|
7127
7127
|
}
|
|
7128
7128
|
class qv {
|
|
@@ -7160,14 +7160,14 @@ class qv {
|
|
|
7160
7160
|
let i = this.localPreserveWS, o = this.top;
|
|
7161
7161
|
(e.tagName == "PRE" || /pre/.test(e.style && e.style.whiteSpace)) && (this.localPreserveWS = !0);
|
|
7162
7162
|
let s = e.nodeName.toLowerCase(), a;
|
|
7163
|
-
|
|
7163
|
+
Zw.hasOwnProperty(s) && this.parser.normalizeLists && oA(e);
|
|
7164
7164
|
let l = this.options.ruleFromNode && this.options.ruleFromNode(e) || (a = this.parser.matchTag(e, this, r));
|
|
7165
7165
|
e: if (l ? l.ignore : iA.hasOwnProperty(s))
|
|
7166
7166
|
this.findInside(e), this.ignoreFallback(e, n);
|
|
7167
7167
|
else if (!l || l.skip || l.closeParent) {
|
|
7168
7168
|
l && l.closeParent ? this.open = Math.max(0, this.open - 1) : l && l.skip.nodeType && (e = l.skip);
|
|
7169
7169
|
let c, u = this.needsBlock;
|
|
7170
|
-
if (
|
|
7170
|
+
if (Jw.hasOwnProperty(s))
|
|
7171
7171
|
o.content.length && o.content[0].isInline && this.open && (this.open--, o = this.top), c = !0, o.type || (this.needsBlock = !0);
|
|
7172
7172
|
else if (!e.firstChild) {
|
|
7173
7173
|
this.leafFallback(e, n);
|
|
@@ -7402,7 +7402,7 @@ class qv {
|
|
|
7402
7402
|
function oA(t) {
|
|
7403
7403
|
for (let e = t.firstChild, n = null; e; e = e.nextSibling) {
|
|
7404
7404
|
let r = e.nodeType == 1 ? e.nodeName.toLowerCase() : null;
|
|
7405
|
-
r &&
|
|
7405
|
+
r && Zw.hasOwnProperty(r) && n ? (n.appendChild(e), e = n) : r == "li" ? n = e : r && (n = null);
|
|
7406
7406
|
}
|
|
7407
7407
|
}
|
|
7408
7408
|
function sA(t, e) {
|
|
@@ -7608,15 +7608,15 @@ function gd(t, e, n, r) {
|
|
|
7608
7608
|
}
|
|
7609
7609
|
return { dom: l, contentDOM: a };
|
|
7610
7610
|
}
|
|
7611
|
-
const
|
|
7611
|
+
const Qw = 65535, e3 = Math.pow(2, 16);
|
|
7612
7612
|
function cA(t, e) {
|
|
7613
7613
|
return t + e * e3;
|
|
7614
7614
|
}
|
|
7615
7615
|
function Xv(t) {
|
|
7616
|
-
return t &
|
|
7616
|
+
return t & Qw;
|
|
7617
7617
|
}
|
|
7618
7618
|
function uA(t) {
|
|
7619
|
-
return (t - (t &
|
|
7619
|
+
return (t - (t & Qw)) / e3;
|
|
7620
7620
|
}
|
|
7621
7621
|
const t3 = 1, n3 = 2, bd = 4, r3 = 8;
|
|
7622
7622
|
class X0 {
|
|
@@ -14559,7 +14559,7 @@ function q9(t, e) {
|
|
|
14559
14559
|
HTMLAttributes: lm(g, u)
|
|
14560
14560
|
})), [c.name, h];
|
|
14561
14561
|
}));
|
|
14562
|
-
return new
|
|
14562
|
+
return new Xw({
|
|
14563
14563
|
topNode: s,
|
|
14564
14564
|
nodes: a,
|
|
14565
14565
|
marks: l
|
|
@@ -15366,7 +15366,7 @@ function Cc(t, e, n) {
|
|
|
15366
15366
|
if (i) {
|
|
15367
15367
|
if (n.errorOnInvalidContent) {
|
|
15368
15368
|
let s = !1, a = "";
|
|
15369
|
-
const l = new
|
|
15369
|
+
const l = new Xw({
|
|
15370
15370
|
topNode: e.spec.topNode,
|
|
15371
15371
|
marks: e.spec.marks,
|
|
15372
15372
|
// Prosemirror's schemas are executed such that: the last to execute, matches last
|
|
@@ -20024,7 +20024,7 @@ class Th extends MO {
|
|
|
20024
20024
|
constructor(e = {}) {
|
|
20025
20025
|
return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = h4(this.view.state), this.reactiveExtensionStorage = h4(this.extensionStorage), this.on("beforeTransaction", ({ nextState: n }) => {
|
|
20026
20026
|
this.reactiveState.value = n, this.reactiveExtensionStorage.value = this.extensionStorage;
|
|
20027
|
-
}),
|
|
20027
|
+
}), X2(this);
|
|
20028
20028
|
}
|
|
20029
20029
|
get state() {
|
|
20030
20030
|
return this.reactiveState ? this.reactiveState.value : this.view.state;
|
|
@@ -20057,7 +20057,7 @@ const Ah = wi({
|
|
|
20057
20057
|
},
|
|
20058
20058
|
setup(t) {
|
|
20059
20059
|
const e = ae(), n = Ka();
|
|
20060
|
-
return
|
|
20060
|
+
return J2(() => {
|
|
20061
20061
|
const r = t.editor;
|
|
20062
20062
|
r && r.options.element && e.value && th(() => {
|
|
20063
20063
|
if (!e.value || !r.options.element.firstChild)
|
|
@@ -20169,7 +20169,7 @@ const Dc = wi({
|
|
|
20169
20169
|
});
|
|
20170
20170
|
class Yx {
|
|
20171
20171
|
constructor(e, { props: n = {}, editor: r }) {
|
|
20172
|
-
this.editor = r, this.component =
|
|
20172
|
+
this.editor = r, this.component = X2(e), this.el = document.createElement("div"), this.props = B8(n), this.renderedComponent = this.renderComponent();
|
|
20173
20173
|
}
|
|
20174
20174
|
get element() {
|
|
20175
20175
|
return this.renderedComponent.el;
|
|
@@ -53621,7 +53621,7 @@ const GU = { class: "smart-button-content" }, jU = { class: "smart-button-text"
|
|
|
53621
53621
|
ignore: [p, ".smart-popup"]
|
|
53622
53622
|
}
|
|
53623
53623
|
), (b, _) => {
|
|
53624
|
-
const E = ai, w = eh, k =
|
|
53624
|
+
const E = ai, w = eh, k = U2, M = gl;
|
|
53625
53625
|
return F(), te(M, {
|
|
53626
53626
|
show: v(l) && !v(c) && t.showTooltip,
|
|
53627
53627
|
placement: "bottom",
|
|
@@ -57402,7 +57402,7 @@ function mq(t, e, n, r, i, o, s) {
|
|
|
57402
57402
|
}
|
|
57403
57403
|
return !!(c || u);
|
|
57404
57404
|
}
|
|
57405
|
-
function
|
|
57405
|
+
function e2(t, e, n, r, i, o, s, a) {
|
|
57406
57406
|
if (s == 0 || s == e.height) return !1;
|
|
57407
57407
|
let l = !1;
|
|
57408
57408
|
for (let c = i; c < o; c++) {
|
|
@@ -57424,7 +57424,7 @@ function ew(t, e, n, r, i, o, s, a) {
|
|
|
57424
57424
|
}
|
|
57425
57425
|
return l;
|
|
57426
57426
|
}
|
|
57427
|
-
function
|
|
57427
|
+
function t2(t, e, n, r, i, o, s, a) {
|
|
57428
57428
|
if (s == 0 || s == e.width) return !1;
|
|
57429
57429
|
let l = !1;
|
|
57430
57430
|
for (let c = i; c < o; c++) {
|
|
@@ -57450,7 +57450,7 @@ function tw(t, e, n, r, i, o, s, a) {
|
|
|
57450
57450
|
}
|
|
57451
57451
|
return l;
|
|
57452
57452
|
}
|
|
57453
|
-
function
|
|
57453
|
+
function n2(t, e, n, r, i) {
|
|
57454
57454
|
let o = n ? t.doc.nodeAt(n - 1) : t.doc;
|
|
57455
57455
|
if (!o)
|
|
57456
57456
|
throw new Error("No table found");
|
|
@@ -57462,7 +57462,7 @@ function nw(t, e, n, r, i) {
|
|
|
57462
57462
|
throw new Error("No table found");
|
|
57463
57463
|
s = wn.get(o), f = d.mapping.maps.length;
|
|
57464
57464
|
}
|
|
57465
|
-
mq(d, s, o, n, c, u, f) && h(),
|
|
57465
|
+
mq(d, s, o, n, c, u, f) && h(), e2(d, s, o, n, l, c, a, f) && h(), e2(d, s, o, n, l, c, u, f) && h(), t2(d, s, o, n, a, u, l, f) && h(), t2(d, s, o, n, a, u, c, f) && h();
|
|
57466
57466
|
for (let p = a; p < u; p++) {
|
|
57467
57467
|
const m = s.positionAt(p, l, o), g = s.positionAt(p, c, o);
|
|
57468
57468
|
d.replace(
|
|
@@ -57563,10 +57563,10 @@ function vq(t, e, n) {
|
|
|
57563
57563
|
i.$anchorCell.pos - s,
|
|
57564
57564
|
i.$headCell.pos - s
|
|
57565
57565
|
);
|
|
57566
|
-
return r = pq(r, a.right - a.left, a.bottom - a.top),
|
|
57566
|
+
return r = pq(r, a.right - a.left, a.bottom - a.top), n2(t.state, t.dispatch, s, a, r), !0;
|
|
57567
57567
|
} else if (r) {
|
|
57568
57568
|
const o = Kh(t.state), s = o.start(-1);
|
|
57569
|
-
return
|
|
57569
|
+
return n2(
|
|
57570
57570
|
t.state,
|
|
57571
57571
|
t.dispatch,
|
|
57572
57572
|
s,
|
|
@@ -57579,7 +57579,7 @@ function vq(t, e, n) {
|
|
|
57579
57579
|
function yq(t, e) {
|
|
57580
57580
|
var n;
|
|
57581
57581
|
if (e.ctrlKey || e.metaKey) return;
|
|
57582
|
-
const r =
|
|
57582
|
+
const r = r2(t, e.target);
|
|
57583
57583
|
let i;
|
|
57584
57584
|
if (e.shiftKey && t.state.selection instanceof tn)
|
|
57585
57585
|
o(t.state.selection.$anchorCell, e), e.preventDefault();
|
|
@@ -57607,7 +57607,7 @@ function yq(t, e) {
|
|
|
57607
57607
|
let d;
|
|
57608
57608
|
if (u != null)
|
|
57609
57609
|
d = t.state.doc.resolve(u);
|
|
57610
|
-
else if (
|
|
57610
|
+
else if (r2(t, c.target) != r && (d = g0(t, e), !d))
|
|
57611
57611
|
return s();
|
|
57612
57612
|
d && o(d, c);
|
|
57613
57613
|
}
|
|
@@ -57626,7 +57626,7 @@ function mE(t, e, n) {
|
|
|
57626
57626
|
}
|
|
57627
57627
|
return null;
|
|
57628
57628
|
}
|
|
57629
|
-
function
|
|
57629
|
+
function r2(t, e) {
|
|
57630
57630
|
for (; e && e != t.dom; e = e.parentNode)
|
|
57631
57631
|
if (e.nodeName == "TD" || e.nodeName == "TH")
|
|
57632
57632
|
return e;
|
|
@@ -57755,7 +57755,7 @@ function kq(t, e, n, r) {
|
|
|
57755
57755
|
let s = -1;
|
|
57756
57756
|
if (o) {
|
|
57757
57757
|
const { left: a, right: l } = o.getBoundingClientRect();
|
|
57758
|
-
e.clientX - a <= n ? s =
|
|
57758
|
+
e.clientX - a <= n ? s = i2(t, e, "left", n) : l - e.clientX <= n && (s = i2(t, e, "right", n));
|
|
57759
57759
|
}
|
|
57760
57760
|
if (s != i.activeHandle) {
|
|
57761
57761
|
if (!r && s !== -1) {
|
|
@@ -57790,7 +57790,7 @@ function Sq(t, e, n, r) {
|
|
|
57790
57790
|
f != null && f.dragging && (Aq(
|
|
57791
57791
|
t,
|
|
57792
57792
|
f.activeHandle,
|
|
57793
|
-
|
|
57793
|
+
o2(f.dragging, d, n)
|
|
57794
57794
|
), t.dispatch(
|
|
57795
57795
|
t.state.tr.setMeta($r, { setDragging: null })
|
|
57796
57796
|
));
|
|
@@ -57799,8 +57799,8 @@ function Sq(t, e, n, r) {
|
|
|
57799
57799
|
if (!d.which) return c(d);
|
|
57800
57800
|
const f = $r.getState(t.state);
|
|
57801
57801
|
if (f && f.dragging) {
|
|
57802
|
-
const h =
|
|
57803
|
-
|
|
57802
|
+
const h = o2(f.dragging, d, n);
|
|
57803
|
+
s2(
|
|
57804
57804
|
t,
|
|
57805
57805
|
f.activeHandle,
|
|
57806
57806
|
h,
|
|
@@ -57808,7 +57808,7 @@ function Sq(t, e, n, r) {
|
|
|
57808
57808
|
);
|
|
57809
57809
|
}
|
|
57810
57810
|
}
|
|
57811
|
-
return
|
|
57811
|
+
return s2(
|
|
57812
57812
|
t,
|
|
57813
57813
|
s.activeHandle,
|
|
57814
57814
|
l,
|
|
@@ -57830,7 +57830,7 @@ function Tq(t) {
|
|
|
57830
57830
|
t = t.classList && t.classList.contains("ProseMirror") ? null : t.parentNode;
|
|
57831
57831
|
return t;
|
|
57832
57832
|
}
|
|
57833
|
-
function
|
|
57833
|
+
function i2(t, e, n, r) {
|
|
57834
57834
|
const i = n == "right" ? -r : r, o = t.posAtCoords({
|
|
57835
57835
|
left: e.clientX + i,
|
|
57836
57836
|
top: e.clientY
|
|
@@ -57842,7 +57842,7 @@ function iw(t, e, n, r) {
|
|
|
57842
57842
|
const l = wn.get(a.node(-1)), c = a.start(-1), u = l.map.indexOf(a.pos - c);
|
|
57843
57843
|
return u % l.width == 0 ? -1 : c + l.map[u - 1];
|
|
57844
57844
|
}
|
|
57845
|
-
function
|
|
57845
|
+
function o2(t, e, n) {
|
|
57846
57846
|
const r = e.clientX - t.startX;
|
|
57847
57847
|
return Math.max(n, t.startWidth + r);
|
|
57848
57848
|
}
|
|
@@ -57863,7 +57863,7 @@ function Aq(t, e, n) {
|
|
|
57863
57863
|
}
|
|
57864
57864
|
l.docChanged && t.dispatch(l);
|
|
57865
57865
|
}
|
|
57866
|
-
function
|
|
57866
|
+
function s2(t, e, n, r) {
|
|
57867
57867
|
const i = t.state.doc.resolve(e), o = i.node(-1), s = i.start(-1), a = wn.get(o).colCount(i.pos - s) + i.nodeAfter.attrs.colspan - 1;
|
|
57868
57868
|
let l = t.domAtPos(i.start(-1)).node;
|
|
57869
57869
|
for (; l && l.nodeName != "TABLE"; )
|
|
@@ -57944,7 +57944,7 @@ function Oq({
|
|
|
57944
57944
|
}
|
|
57945
57945
|
});
|
|
57946
57946
|
}
|
|
57947
|
-
function
|
|
57947
|
+
function a2(t, e, n, r, i, o) {
|
|
57948
57948
|
let s = 0, a = !0, l = e.firstChild;
|
|
57949
57949
|
const c = t.firstChild, { tableBorder: u, widthAuto: d, tableAuto: f } = t.attrs;
|
|
57950
57950
|
for (let h = 0, p = 0; h < c.childCount; h += 1) {
|
|
@@ -57976,10 +57976,10 @@ function aw(t, e, n, r, i, o) {
|
|
|
57976
57976
|
}
|
|
57977
57977
|
class Rq {
|
|
57978
57978
|
constructor(e, n) {
|
|
57979
|
-
this.node = e, this.cellMinWidth = n, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", e.attrs["smart-id"] && this.dom.setAttribute("data-smart-id", e.attrs["smart-id"]), this.table = this.dom.appendChild(document.createElement("table")), this.colgroup = this.table.appendChild(document.createElement("colgroup")),
|
|
57979
|
+
this.node = e, this.cellMinWidth = n, this.dom = document.createElement("div"), this.dom.className = "tableWrapper", e.attrs["smart-id"] && this.dom.setAttribute("data-smart-id", e.attrs["smart-id"]), this.table = this.dom.appendChild(document.createElement("table")), this.colgroup = this.table.appendChild(document.createElement("colgroup")), a2(e, this.colgroup, this.table, n), this.contentDOM = this.table.appendChild(document.createElement("tbody"));
|
|
57980
57980
|
}
|
|
57981
57981
|
update(e) {
|
|
57982
|
-
return e.type !== this.node.type ? !1 : (this.node = e,
|
|
57982
|
+
return e.type !== this.node.type ? !1 : (this.node = e, a2(e, this.colgroup, this.table, this.cellMinWidth), !0);
|
|
57983
57983
|
}
|
|
57984
57984
|
ignoreMutation(e) {
|
|
57985
57985
|
return e.type === "attributes" && (e.target === this.table || this.colgroup.contains(e.target));
|
|
@@ -58402,11 +58402,11 @@ function $q() {
|
|
|
58402
58402
|
}
|
|
58403
58403
|
return v0(Pq);
|
|
58404
58404
|
}
|
|
58405
|
-
const Fq = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
58405
|
+
const Fq = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), l2 = { randomUUID: Fq };
|
|
58406
58406
|
function zq(t, e, n) {
|
|
58407
58407
|
var i;
|
|
58408
|
-
if (
|
|
58409
|
-
return
|
|
58408
|
+
if (l2.randomUUID && !t)
|
|
58409
|
+
return l2.randomUUID();
|
|
58410
58410
|
t = t || {};
|
|
58411
58411
|
const r = t.random ?? ((i = t.rng) == null ? void 0 : i.call(t)) ?? $q();
|
|
58412
58412
|
if (r.length < 16)
|
|
@@ -58642,7 +58642,7 @@ const Hq = () => `se-${zq()}`, bE = vt.create({
|
|
|
58642
58642
|
addNodeView() {
|
|
58643
58643
|
return kn(Vq);
|
|
58644
58644
|
}
|
|
58645
|
-
}), { options: Km, container: Wq } = ve(), { document:
|
|
58645
|
+
}), { options: Km, container: Wq } = ve(), { document: c2 } = Km.value, u2 = Ya("locale");
|
|
58646
58646
|
function Gm() {
|
|
58647
58647
|
return [
|
|
58648
58648
|
bE,
|
|
@@ -58671,9 +58671,9 @@ function Gm() {
|
|
|
58671
58671
|
}),
|
|
58672
58672
|
tP.configure({
|
|
58673
58673
|
showOnlyCurrent: !0,
|
|
58674
|
-
emptyEditorClass:
|
|
58674
|
+
emptyEditorClass: u2.value === "zh_CN" ? "is-editor-empty" : "is-editor-empty-en",
|
|
58675
58675
|
// 空编辑器
|
|
58676
|
-
emptyNodeClass:
|
|
58676
|
+
emptyNodeClass: u2.value === "zh_CN" ? "is-node-empty" : "is-node-empty-en"
|
|
58677
58677
|
// 空节点
|
|
58678
58678
|
}),
|
|
58679
58679
|
nb.configure({
|
|
@@ -58700,7 +58700,7 @@ function Gm() {
|
|
|
58700
58700
|
mode: "all"
|
|
58701
58701
|
}),
|
|
58702
58702
|
_B.configure({
|
|
58703
|
-
limit:
|
|
58703
|
+
limit: c2.characterLimit !== 0 ? c2.characterLimit : void 0
|
|
58704
58704
|
}),
|
|
58705
58705
|
Q5.configure({
|
|
58706
58706
|
getIndex: J5,
|
|
@@ -60467,7 +60467,7 @@ function nK(t, e = {}) {
|
|
|
60467
60467
|
const b = h < o.value, _ = o.value - h;
|
|
60468
60468
|
o.value = h, b ? (s.value += _, s.value >= r && (a.value = !1, s.value = 0)) : (s.value = 0, a.value && (a.value = !0));
|
|
60469
60469
|
};
|
|
60470
|
-
return
|
|
60470
|
+
return J2(() => {
|
|
60471
60471
|
th(() => {
|
|
60472
60472
|
t.value && u();
|
|
60473
60473
|
});
|
|
@@ -60699,7 +60699,7 @@ const rK = {
|
|
|
60699
60699
|
], 64)) : (F(), fe("div", iK, [
|
|
60700
60700
|
Gt(Oe(v(A)("assistant.ask")) + " ", 1),
|
|
60701
60701
|
G("div", oK, [
|
|
60702
|
-
G("span", sK, Oe(v(e).assistant.point) + "
|
|
60702
|
+
G("span", sK, Oe(v(e).assistant.point) + "ACC/次", 1),
|
|
60703
60703
|
V[2] || (V[2] = G("span", { class: "ml-8 h-20 f-c-c rounded-full bg-[#497FED]/10 px-8 text-12 text-[#497FED]/60" }, "智荟课件应用", -1))
|
|
60704
60704
|
])
|
|
60705
60705
|
]))
|
|
@@ -60753,7 +60753,7 @@ const rK = {
|
|
|
60753
60753
|
])) : qe("", !0)
|
|
60754
60754
|
], 4));
|
|
60755
60755
|
}
|
|
60756
|
-
}, bK = /* @__PURE__ */ ot(gK, [["__scopeId", "data-v-
|
|
60756
|
+
}, bK = /* @__PURE__ */ ot(gK, [["__scopeId", "data-v-fbbb42e6"]]), vK = {
|
|
60757
60757
|
__name: "common",
|
|
60758
60758
|
props: {
|
|
60759
60759
|
node: {
|
|
@@ -60997,7 +60997,7 @@ class EK {
|
|
|
60997
60997
|
this._observers = Tr();
|
|
60998
60998
|
}
|
|
60999
60999
|
}
|
|
61000
|
-
const xo = Math.floor, Td = Math.abs, cl = (t, e) => t < e ? t : e, ko = (t, e) => t > e ? t : e, xE = (t) => t !== 0 ? t < 0 : 1 / t < 0,
|
|
61000
|
+
const xo = Math.floor, Td = Math.abs, cl = (t, e) => t < e ? t : e, ko = (t, e) => t > e ? t : e, xE = (t) => t !== 0 ? t < 0 : 1 / t < 0, d2 = 1, f2 = 2, _0 = 4, w0 = 8, qc = 32, go = 64, fr = 128, SK = 1 << 29, Gh = 31, Xm = 63, js = 127, CK = 2147483647, kE = Number.MAX_SAFE_INTEGER, TK = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && xo(t) === t), AK = String.fromCharCode, MK = (t) => t.toLowerCase(), NK = /^\s*/g, OK = (t) => t.replace(NK, ""), RK = /([A-Z])/g, h2 = (t, e) => OK(t.replace(RK, (n) => `${e}${MK(n)}`)), IK = (t) => {
|
|
61001
61001
|
const e = unescape(encodeURIComponent(t)), n = e.length, r = new Uint8Array(n);
|
|
61002
61002
|
for (let i = 0; i < n; i++)
|
|
61003
61003
|
r[i] = /** @type {number} */
|
|
@@ -61074,7 +61074,7 @@ Kc.encodeInto ? zK : HK, jh = (t, e) => {
|
|
|
61074
61074
|
}, UK = (t, e) => Mb(t, 4).setFloat32(0, e, !1), VK = (t, e) => Mb(t, 8).setFloat64(0, e, !1), WK = (t, e) => (
|
|
61075
61075
|
/** @type {any} */
|
|
61076
61076
|
Mb(t, 8).setBigInt64(0, e, !1)
|
|
61077
|
-
),
|
|
61077
|
+
), p2 = new DataView(new ArrayBuffer(4)), qK = (t) => (p2.setFloat32(0, t), p2.getFloat32(0) === t), ul = (t, e) => {
|
|
61078
61078
|
switch (typeof e) {
|
|
61079
61079
|
case "string":
|
|
61080
61080
|
Fn(t, 119), Ha(t, e);
|
|
@@ -61111,7 +61111,7 @@ Kc.encodeInto ? zK : HK, jh = (t, e) => {
|
|
|
61111
61111
|
Fn(t, 127);
|
|
61112
61112
|
}
|
|
61113
61113
|
};
|
|
61114
|
-
class
|
|
61114
|
+
class m2 extends hu {
|
|
61115
61115
|
/**
|
|
61116
61116
|
* @param {function(Encoder, T):void} writer
|
|
61117
61117
|
*/
|
|
@@ -61125,7 +61125,7 @@ class mw extends hu {
|
|
|
61125
61125
|
this.s === e ? this.count++ : (this.count > 0 && Dt(this, this.count - 1), this.count = 1, this.w(this, e), this.s = e);
|
|
61126
61126
|
}
|
|
61127
61127
|
}
|
|
61128
|
-
const
|
|
61128
|
+
const g2 = (t) => {
|
|
61129
61129
|
t.count > 0 && (Ab(t.encoder, t.count === 1 ? t.s : -t.s), t.count > 1 && Dt(t.encoder, t.count - 2));
|
|
61130
61130
|
};
|
|
61131
61131
|
class Ad {
|
|
@@ -61136,7 +61136,7 @@ class Ad {
|
|
|
61136
61136
|
* @param {number} v
|
|
61137
61137
|
*/
|
|
61138
61138
|
write(e) {
|
|
61139
|
-
this.s === e ? this.count++ : (
|
|
61139
|
+
this.s === e ? this.count++ : (g2(this), this.count = 1, this.s = e);
|
|
61140
61140
|
}
|
|
61141
61141
|
/**
|
|
61142
61142
|
* Flush the encoded state and transform this to a Uint8Array.
|
|
@@ -61144,10 +61144,10 @@ class Ad {
|
|
|
61144
61144
|
* Note that this should only be called once.
|
|
61145
61145
|
*/
|
|
61146
61146
|
toUint8Array() {
|
|
61147
|
-
return
|
|
61147
|
+
return g2(this), di(this.encoder);
|
|
61148
61148
|
}
|
|
61149
61149
|
}
|
|
61150
|
-
const
|
|
61150
|
+
const b2 = (t) => {
|
|
61151
61151
|
if (t.count > 0) {
|
|
61152
61152
|
const e = t.diff * 2 + (t.count === 1 ? 0 : 1);
|
|
61153
61153
|
Ab(t.encoder, e), t.count > 1 && Dt(t.encoder, t.count - 2);
|
|
@@ -61161,7 +61161,7 @@ class x0 {
|
|
|
61161
61161
|
* @param {number} v
|
|
61162
61162
|
*/
|
|
61163
61163
|
write(e) {
|
|
61164
|
-
this.diff === e - this.s ? (this.s = e, this.count++) : (
|
|
61164
|
+
this.diff === e - this.s ? (this.s = e, this.count++) : (b2(this), this.count = 1, this.diff = e - this.s, this.s = e);
|
|
61165
61165
|
}
|
|
61166
61166
|
/**
|
|
61167
61167
|
* Flush the encoded state and transform this to a Uint8Array.
|
|
@@ -61169,7 +61169,7 @@ class x0 {
|
|
|
61169
61169
|
* Note that this should only be called once.
|
|
61170
61170
|
*/
|
|
61171
61171
|
toUint8Array() {
|
|
61172
|
-
return
|
|
61172
|
+
return b2(this), di(this.encoder);
|
|
61173
61173
|
}
|
|
61174
61174
|
}
|
|
61175
61175
|
class KK {
|
|
@@ -61293,7 +61293,7 @@ const El = (t) => new Yh(t), GK = (t) => t.pos !== t.arr.length, jK = (t, e) =>
|
|
|
61293
61293
|
Ir
|
|
61294
61294
|
// CASE 116: Uint8Array
|
|
61295
61295
|
], Gc = (t) => eG[127 - dl(t)](t);
|
|
61296
|
-
class
|
|
61296
|
+
class v2 extends Yh {
|
|
61297
61297
|
/**
|
|
61298
61298
|
* @param {Uint8Array} uint8Array
|
|
61299
61299
|
* @param {function(Decoder):T} reader
|
|
@@ -61365,7 +61365,7 @@ const nG = crypto.getRandomValues.bind(crypto), rG = Math.random, CE = () => nG(
|
|
|
61365
61365
|
new Promise(t)
|
|
61366
61366
|
);
|
|
61367
61367
|
Promise.all.bind(Promise);
|
|
61368
|
-
const
|
|
61368
|
+
const y2 = (t) => t === void 0 ? null : t;
|
|
61369
61369
|
class lG {
|
|
61370
61370
|
constructor() {
|
|
61371
61371
|
this.map = /* @__PURE__ */ new Map();
|
|
@@ -61392,7 +61392,7 @@ try {
|
|
|
61392
61392
|
const uG = TE, dG = Object.assign, AE = Object.keys, fG = (t, e) => {
|
|
61393
61393
|
for (const n in t)
|
|
61394
61394
|
e(t[n], n);
|
|
61395
|
-
},
|
|
61395
|
+
}, _2 = (t) => AE(t).length, hG = (t) => {
|
|
61396
61396
|
for (const e in t)
|
|
61397
61397
|
return !1;
|
|
61398
61398
|
return !0;
|
|
@@ -61401,7 +61401,7 @@ const uG = TE, dG = Object.assign, AE = Object.keys, fG = (t, e) => {
|
|
|
61401
61401
|
if (!e(t[n], n))
|
|
61402
61402
|
return !1;
|
|
61403
61403
|
return !0;
|
|
61404
|
-
}, pG = (t, e) => Object.prototype.hasOwnProperty.call(t, e), mG = (t, e) => t === e ||
|
|
61404
|
+
}, pG = (t, e) => Object.prototype.hasOwnProperty.call(t, e), mG = (t, e) => t === e || _2(t) === _2(e) && ME(t, (n, r) => (n !== void 0 || pG(e, r)) && e[r] === n), gG = Object.freeze, NE = (t) => {
|
|
61405
61405
|
for (const e in t) {
|
|
61406
61406
|
const n = t[e];
|
|
61407
61407
|
(typeof n == "object" || typeof n == "function") && NE(t[e]);
|
|
@@ -61430,11 +61430,11 @@ const yG = () => {
|
|
|
61430
61430
|
} else typeof location == "object" ? (Ti = Tr(), (location.search || "?").slice(1).split("&").forEach((t) => {
|
|
61431
61431
|
if (t.length !== 0) {
|
|
61432
61432
|
const [e, n] = t.split("=");
|
|
61433
|
-
Ti.set(`--${
|
|
61433
|
+
Ti.set(`--${h2(e, "-")}`, n), Ti.set(`-${h2(e, "-")}`, n);
|
|
61434
61434
|
}
|
|
61435
61435
|
})) : Ti = Tr();
|
|
61436
61436
|
return Ti;
|
|
61437
|
-
}, Qm = (t) => yG().has(t), Vf = (t) =>
|
|
61437
|
+
}, Qm = (t) => yG().has(t), Vf = (t) => y2(hl ? process.env[t.toUpperCase().replaceAll("-", "_")] : uG.getItem(t)), RE = (t) => Qm("--" + t) || Vf(t) !== null;
|
|
61438
61438
|
RE("production");
|
|
61439
61439
|
const _G = hl && vG(process.env.FORCE_COLOR, ["true", "1", "2"]), wG = _G || !Qm("--no-colors") && // @todo deprecate --no-colors
|
|
61440
61440
|
!RE("no-color") && (!hl || process.stdout.isTTY) && (!hl || Qm("--color") || Vf("COLORTERM") !== null || (Vf("TERM") || "").includes("color")), xG = (t) => new Uint8Array(t), kG = (t) => {
|
|
@@ -61659,7 +61659,7 @@ const ps = (t, e, n) => e.clients.forEach((r, i) => {
|
|
|
61659
61659
|
}
|
|
61660
61660
|
}
|
|
61661
61661
|
return e;
|
|
61662
|
-
},
|
|
61662
|
+
}, w2 = (t, e, n) => {
|
|
61663
61663
|
const r = new Sl(), i = Tt(t.restDecoder);
|
|
61664
61664
|
for (let o = 0; o < i; o++) {
|
|
61665
61665
|
t.resetDsCurVal();
|
|
@@ -62024,7 +62024,7 @@ class pl extends WG {
|
|
|
62024
62024
|
* @param {decoding.Decoder} decoder
|
|
62025
62025
|
*/
|
|
62026
62026
|
constructor(e) {
|
|
62027
|
-
super(e), this.keys = [], Tt(e), this.keyClockDecoder = new k0(Ir(e)), this.clientDecoder = new Md(Ir(e)), this.leftClockDecoder = new k0(Ir(e)), this.rightClockDecoder = new k0(Ir(e)), this.infoDecoder = new
|
|
62027
|
+
super(e), this.keys = [], Tt(e), this.keyClockDecoder = new k0(Ir(e)), this.clientDecoder = new Md(Ir(e)), this.leftClockDecoder = new k0(Ir(e)), this.rightClockDecoder = new k0(Ir(e)), this.infoDecoder = new v2(Ir(e), dl), this.stringDecoder = new tG(Ir(e)), this.parentInfoDecoder = new v2(Ir(e), dl), this.typeRefDecoder = new Md(Ir(e)), this.lenDecoder = new Md(Ir(e));
|
|
62028
62028
|
}
|
|
62029
62029
|
/**
|
|
62030
62030
|
* @return {ID}
|
|
@@ -62240,7 +62240,7 @@ class KG {
|
|
|
62240
62240
|
}
|
|
62241
62241
|
class aa extends KG {
|
|
62242
62242
|
constructor() {
|
|
62243
|
-
super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new x0(), this.clientEncoder = new Ad(), this.leftClockEncoder = new x0(), this.rightClockEncoder = new x0(), this.infoEncoder = new
|
|
62243
|
+
super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new x0(), this.clientEncoder = new Ad(), this.leftClockEncoder = new x0(), this.rightClockEncoder = new x0(), this.infoEncoder = new m2(Jm), this.stringEncoder = new KK(), this.parentInfoEncoder = new m2(Jm), this.typeRefEncoder = new Ad(), this.lenEncoder = new Ad();
|
|
62244
62244
|
}
|
|
62245
62245
|
toUint8Array() {
|
|
62246
62246
|
const e = pu();
|
|
@@ -62501,11 +62501,11 @@ const GG = (t, e, n, r) => {
|
|
|
62501
62501
|
}
|
|
62502
62502
|
} else
|
|
62503
62503
|
a.pendingStructs = c;
|
|
62504
|
-
const d =
|
|
62504
|
+
const d = w2(r, i, a);
|
|
62505
62505
|
if (a.pendingDs) {
|
|
62506
62506
|
const f = new pl(El(a.pendingDs));
|
|
62507
62507
|
Tt(f.restDecoder);
|
|
62508
|
-
const h =
|
|
62508
|
+
const h = w2(f, i, a);
|
|
62509
62509
|
d && h ? a.pendingDs = Kf([d, h]) : a.pendingDs = d || h;
|
|
62510
62510
|
} else
|
|
62511
62511
|
a.pendingDs = d;
|
|
@@ -62545,7 +62545,7 @@ class nj {
|
|
|
62545
62545
|
this.l = [];
|
|
62546
62546
|
}
|
|
62547
62547
|
}
|
|
62548
|
-
const
|
|
62548
|
+
const x2 = () => new nj(), k2 = (t, e) => t.l.push(e), E2 = (t, e) => {
|
|
62549
62549
|
const n = t.l, r = n.length;
|
|
62550
62550
|
t.l = n.filter((i) => e !== i), r === t.l.length && console.error("[yjs] Tried to remove event handler that doesn't exist.");
|
|
62551
62551
|
}, jE = (t, e, n) => Rb(t.l, [e, n]);
|
|
@@ -62726,7 +62726,7 @@ const Xh = (t) => {
|
|
|
62726
62726
|
t.doc.store.clients.get(e.client)
|
|
62727
62727
|
);
|
|
62728
62728
|
return n[ng(t, n, e.clock)];
|
|
62729
|
-
},
|
|
62729
|
+
}, S2 = (t, e, n) => {
|
|
62730
62730
|
const r = e.clients.get(n.client), i = yi(r, n.clock), o = r[i];
|
|
62731
62731
|
return n.clock !== o.id.clock + o.length - 1 && o.constructor !== Yr && r.splice(i + 1, 0, Jf(t, o, n.clock - o.id.clock + 1)), o;
|
|
62732
62732
|
}, lj = (t, e, n) => {
|
|
@@ -62754,7 +62754,7 @@ class cj {
|
|
|
62754
62754
|
this.doc = e, this.deleteSet = new Sl(), this.beforeState = Xh(e.store), this.afterState = /* @__PURE__ */ new Map(), this.changed = /* @__PURE__ */ new Map(), this.changedParentTypes = /* @__PURE__ */ new Map(), this._mergeStructs = [], this.origin = n, this.meta = /* @__PURE__ */ new Map(), this.local = r, this.subdocsAdded = /* @__PURE__ */ new Set(), this.subdocsRemoved = /* @__PURE__ */ new Set(), this.subdocsLoaded = /* @__PURE__ */ new Set(), this._needFormattingCleanup = !1;
|
|
62755
62755
|
}
|
|
62756
62756
|
}
|
|
62757
|
-
const
|
|
62757
|
+
const C2 = (t, e) => e.deleteSet.clients.size === 0 && !wK(e.afterState, (n, r) => e.beforeState.get(r) !== n) ? !1 : (Lb(e.deleteSet), XG(t, e), Tl(t, e.deleteSet), !0), T2 = (t, e, n) => {
|
|
62758
62758
|
const r = e._item;
|
|
62759
62759
|
(r === null || r.id.clock < (t.beforeState.get(r.id.client) || 0) && !r.deleted) && Xi(t.changed, e, fs).add(n);
|
|
62760
62760
|
}, Nd = (t, e) => {
|
|
@@ -62841,11 +62841,11 @@ const Cw = (t, e) => e.deleteSet.clients.size === 0 && !wK(e.afterState, (n, r)
|
|
|
62841
62841
|
}
|
|
62842
62842
|
if (!n.local && n.afterState.get(r.clientID) !== n.beforeState.get(r.clientID) && (HG(Ib, DE, "[yjs] ", LE, BE, "Changed the client-id because another client seems to be using it."), r.clientID = VE()), r.emit("afterTransactionCleanup", [n, r]), r._observers.has("update")) {
|
|
62843
62843
|
const u = new mu();
|
|
62844
|
-
|
|
62844
|
+
C2(u, n) && r.emit("update", [u.toUint8Array(), n.origin, r, n]);
|
|
62845
62845
|
}
|
|
62846
62846
|
if (r._observers.has("updateV2")) {
|
|
62847
62847
|
const u = new aa();
|
|
62848
|
-
|
|
62848
|
+
C2(u, n) && r.emit("updateV2", [u.toUint8Array(), n.origin, r, n]);
|
|
62849
62849
|
}
|
|
62850
62850
|
const { subdocsAdded: a, subdocsLoaded: l, subdocsRemoved: c } = n;
|
|
62851
62851
|
(a.size > 0 || c.size > 0 || l.size > 0) && (a.forEach((u) => {
|
|
@@ -62876,7 +62876,7 @@ class fj {
|
|
|
62876
62876
|
this.insertions = n, this.deletions = e, this.meta = /* @__PURE__ */ new Map();
|
|
62877
62877
|
}
|
|
62878
62878
|
}
|
|
62879
|
-
const
|
|
62879
|
+
const A2 = (t, e, n) => {
|
|
62880
62880
|
ps(t, n.deletions, (r) => {
|
|
62881
62881
|
r instanceof Vt && e.scope.some((i) => i === t.doc || Xc(
|
|
62882
62882
|
/** @type {AbstractType<any>} */
|
|
@@ -62884,7 +62884,7 @@ const Aw = (t, e, n) => {
|
|
|
62884
62884
|
r
|
|
62885
62885
|
)) && Kb(r, !1);
|
|
62886
62886
|
});
|
|
62887
|
-
},
|
|
62887
|
+
}, M2 = (t, e, n) => {
|
|
62888
62888
|
let r = null;
|
|
62889
62889
|
const i = t.doc, o = t.scope;
|
|
62890
62890
|
Kt(i, (a) => {
|
|
@@ -63013,7 +63013,7 @@ class eS extends wE {
|
|
|
63013
63013
|
}
|
|
63014
63014
|
clear(e = !0, n = !0) {
|
|
63015
63015
|
(e && this.canUndo() || n && this.canRedo()) && this.doc.transact((r) => {
|
|
63016
|
-
e && (this.undoStack.forEach((i) =>
|
|
63016
|
+
e && (this.undoStack.forEach((i) => A2(r, this, i)), this.undoStack = []), n && (this.redoStack.forEach((i) => A2(r, this, i)), this.redoStack = []), this.emit("stack-cleared", [{ undoStackCleared: e, redoStackCleared: n }]);
|
|
63017
63017
|
});
|
|
63018
63018
|
}
|
|
63019
63019
|
/**
|
|
@@ -63048,7 +63048,7 @@ class eS extends wE {
|
|
|
63048
63048
|
this.undoing = !0;
|
|
63049
63049
|
let e;
|
|
63050
63050
|
try {
|
|
63051
|
-
e =
|
|
63051
|
+
e = M2(this, this.undoStack, "undo");
|
|
63052
63052
|
} finally {
|
|
63053
63053
|
this.undoing = !1;
|
|
63054
63054
|
}
|
|
@@ -63063,7 +63063,7 @@ class eS extends wE {
|
|
|
63063
63063
|
this.redoing = !0;
|
|
63064
63064
|
let e;
|
|
63065
63065
|
try {
|
|
63066
|
-
e =
|
|
63066
|
+
e = M2(this, this.redoStack, "redo");
|
|
63067
63067
|
} finally {
|
|
63068
63068
|
this.redoing = !1;
|
|
63069
63069
|
}
|
|
@@ -63271,7 +63271,7 @@ const pj = (t) => Kf(t, qE, mu), mj = (t, e) => {
|
|
|
63271
63271
|
Hb(a);
|
|
63272
63272
|
const l = Bb(i);
|
|
63273
63273
|
return Tl(s, l), s.toUint8Array();
|
|
63274
|
-
}, vj = (t) => bj(t, bG, pl, mu),
|
|
63274
|
+
}, vj = (t) => bj(t, bG, pl, mu), N2 = "You must not compute changes after the event-handler fired.";
|
|
63275
63275
|
class Jh {
|
|
63276
63276
|
/**
|
|
63277
63277
|
* @param {T} target The changed type.
|
|
@@ -63313,7 +63313,7 @@ class Jh {
|
|
|
63313
63313
|
get keys() {
|
|
63314
63314
|
if (this._keys === null) {
|
|
63315
63315
|
if (this.transaction.doc._transactionCleanups.length === 0)
|
|
63316
|
-
throw Eo(
|
|
63316
|
+
throw Eo(N2);
|
|
63317
63317
|
const e = /* @__PURE__ */ new Map(), n = this.target;
|
|
63318
63318
|
/** @type Set<string|null> */
|
|
63319
63319
|
this.transaction.changed.get(n).forEach((i) => {
|
|
@@ -63381,7 +63381,7 @@ class Jh {
|
|
|
63381
63381
|
let e = this._changes;
|
|
63382
63382
|
if (e === null) {
|
|
63383
63383
|
if (this.transaction.doc._transactionCleanups.length === 0)
|
|
63384
|
-
throw Eo(
|
|
63384
|
+
throw Eo(N2);
|
|
63385
63385
|
const n = this.target, r = fs(), i = fs(), o = [];
|
|
63386
63386
|
if (e = {
|
|
63387
63387
|
added: r,
|
|
@@ -63492,7 +63492,7 @@ const wj = (t) => {
|
|
|
63492
63492
|
};
|
|
63493
63493
|
class Vn {
|
|
63494
63494
|
constructor() {
|
|
63495
|
-
this._item = null, this._map = /* @__PURE__ */ new Map(), this._start = null, this.doc = null, this._length = 0, this._eH =
|
|
63495
|
+
this._item = null, this._map = /* @__PURE__ */ new Map(), this._start = null, this.doc = null, this._length = 0, this._eH = x2(), this._dEH = x2(), this._searchMarker = null;
|
|
63496
63496
|
}
|
|
63497
63497
|
/**
|
|
63498
63498
|
* @return {AbstractType<any>|null}
|
|
@@ -63562,7 +63562,7 @@ class Vn {
|
|
|
63562
63562
|
* @param {function(EventType, Transaction):void} f Observer function
|
|
63563
63563
|
*/
|
|
63564
63564
|
observe(e) {
|
|
63565
|
-
|
|
63565
|
+
k2(this._eH, e);
|
|
63566
63566
|
}
|
|
63567
63567
|
/**
|
|
63568
63568
|
* Observe all events that are created by this type and its children.
|
|
@@ -63570,7 +63570,7 @@ class Vn {
|
|
|
63570
63570
|
* @param {function(Array<YEvent<any>>,Transaction):void} f Observer function
|
|
63571
63571
|
*/
|
|
63572
63572
|
observeDeep(e) {
|
|
63573
|
-
|
|
63573
|
+
k2(this._dEH, e);
|
|
63574
63574
|
}
|
|
63575
63575
|
/**
|
|
63576
63576
|
* Unregister an observer function.
|
|
@@ -63578,7 +63578,7 @@ class Vn {
|
|
|
63578
63578
|
* @param {function(EventType,Transaction):void} f Observer function
|
|
63579
63579
|
*/
|
|
63580
63580
|
unobserve(e) {
|
|
63581
|
-
|
|
63581
|
+
E2(this._eH, e);
|
|
63582
63582
|
}
|
|
63583
63583
|
/**
|
|
63584
63584
|
* Unregister an observer function.
|
|
@@ -63586,7 +63586,7 @@ class Vn {
|
|
|
63586
63586
|
* @param {function(Array<YEvent<any>>,Transaction):void} f Observer function
|
|
63587
63587
|
*/
|
|
63588
63588
|
unobserveDeep(e) {
|
|
63589
|
-
|
|
63589
|
+
E2(this._dEH, e);
|
|
63590
63590
|
}
|
|
63591
63591
|
/**
|
|
63592
63592
|
* @abstract
|
|
@@ -64278,7 +64278,7 @@ class rg {
|
|
|
64278
64278
|
this.left = this.right, this.right = this.right.right;
|
|
64279
64279
|
}
|
|
64280
64280
|
}
|
|
64281
|
-
const
|
|
64281
|
+
const O2 = (t, e, n) => {
|
|
64282
64282
|
for (; e.right !== null && n > 0; ) {
|
|
64283
64283
|
switch (e.right.content.constructor) {
|
|
64284
64284
|
case Ln:
|
|
@@ -64299,10 +64299,10 @@ const Ow = (t, e, n) => {
|
|
|
64299
64299
|
const i = /* @__PURE__ */ new Map(), o = r ? Zh(e, n) : null;
|
|
64300
64300
|
if (o) {
|
|
64301
64301
|
const s = new rg(o.p.left, o.p, o.index, i);
|
|
64302
|
-
return
|
|
64302
|
+
return O2(t, s, n - o.index);
|
|
64303
64303
|
} else {
|
|
64304
64304
|
const s = new rg(null, e._start, 0, i);
|
|
64305
|
-
return
|
|
64305
|
+
return O2(t, s, n);
|
|
64306
64306
|
}
|
|
64307
64307
|
}, pS = (t, e, n, r) => {
|
|
64308
64308
|
for (; n.right !== null && (n.right.deleted === !0 || n.right.content.constructor === Ln && Zo(
|
|
@@ -64360,7 +64360,7 @@ const Ow = (t, e, n) => {
|
|
|
64360
64360
|
) : r instanceof Vn ? new ki(r) : new pa(r);
|
|
64361
64361
|
let { left: c, right: u, index: d } = n;
|
|
64362
64362
|
e._searchMarker && Jc(e._searchMarker, n.index, l.getLength()), u = new Vt(yt(s, Mn(o.store, s)), c, c && c.lastId, u, u && u.id, e, null, l), u.integrate(t, 0), n.right = u, n.index = d, n.forward(), pS(t, e, n, a);
|
|
64363
|
-
},
|
|
64363
|
+
}, R2 = (t, e, n, r, i) => {
|
|
64364
64364
|
const o = t.doc, s = o.clientID;
|
|
64365
64365
|
mS(n, i);
|
|
64366
64366
|
const a = gS(t, e, n, i);
|
|
@@ -64514,7 +64514,7 @@ const Ow = (t, e, n) => {
|
|
|
64514
64514
|
for (const i of e)
|
|
64515
64515
|
Oj(i);
|
|
64516
64516
|
});
|
|
64517
|
-
},
|
|
64517
|
+
}, I2 = (t, e, n) => {
|
|
64518
64518
|
const r = n, i = jm(e.currentAttributes), o = e.right;
|
|
64519
64519
|
for (; n > 0 && e.right !== null; ) {
|
|
64520
64520
|
if (e.right.deleted === !1)
|
|
@@ -64750,7 +64750,7 @@ class ms extends Vn {
|
|
|
64750
64750
|
const a = !n && typeof s.insert == "string" && o === e.length - 1 && i.right === null && s.insert.slice(-1) === `
|
|
64751
64751
|
` ? s.insert.slice(0, -1) : s.insert;
|
|
64752
64752
|
(typeof a != "string" || a.length > 0) && T0(r, this, i, a, s.attributes || {});
|
|
64753
|
-
} else s.retain !== void 0 ?
|
|
64753
|
+
} else s.retain !== void 0 ? R2(r, this, i, s.retain, s.attributes || {}) : s.delete !== void 0 && I2(r, i, s.delete);
|
|
64754
64754
|
}
|
|
64755
64755
|
}) : this._pending.push(() => this.applyDelta(e));
|
|
64756
64756
|
}
|
|
@@ -64877,7 +64877,7 @@ class ms extends Vn {
|
|
|
64877
64877
|
return;
|
|
64878
64878
|
const r = this.doc;
|
|
64879
64879
|
r !== null ? Kt(r, (i) => {
|
|
64880
|
-
|
|
64880
|
+
I2(i, fd(i, this, e, !0), n);
|
|
64881
64881
|
}) : this._pending.push(() => this.delete(e, n));
|
|
64882
64882
|
}
|
|
64883
64883
|
/**
|
|
@@ -64896,7 +64896,7 @@ class ms extends Vn {
|
|
|
64896
64896
|
const i = this.doc;
|
|
64897
64897
|
i !== null ? Kt(i, (o) => {
|
|
64898
64898
|
const s = fd(o, this, e, !1);
|
|
64899
|
-
s.right !== null &&
|
|
64899
|
+
s.right !== null && R2(o, this, s, n, r);
|
|
64900
64900
|
}) : this._pending.push(() => this.format(e, n, r));
|
|
64901
64901
|
}
|
|
64902
64902
|
/**
|
|
@@ -66484,7 +66484,7 @@ const iY = (t) => new ki(Xj[t.readTypeRef()](t)), ig = (t, e) => {
|
|
|
66484
66484
|
e.content.splice(n)
|
|
66485
66485
|
);
|
|
66486
66486
|
return e.deleted && o.markDeleted(), e.keep && (o.keep = !0), e.redone !== null && (o.redone = yt(e.redone.client, e.redone.clock + n)), e.right = o, o.right !== null && (o.right.left = o), t._mergeStructs.push(o), o.parentSub !== null && o.right === null && o.parent._map.set(o.parentSub, o), e.length = n, o;
|
|
66487
|
-
},
|
|
66487
|
+
}, D2 = (t, e) => kK(
|
|
66488
66488
|
t,
|
|
66489
66489
|
/** @param {StackItem} s */
|
|
66490
66490
|
(n) => Cl(n.deletions, e)
|
|
@@ -66535,7 +66535,7 @@ const iY = (t) => new ki(Xj[t.readTypeRef()](t)), ig = (t, e) => {
|
|
|
66535
66535
|
f = f.right;
|
|
66536
66536
|
}
|
|
66537
66537
|
} else if (f = null, e.right && !i) {
|
|
66538
|
-
for (d = e; d !== null && d.right !== null && (d.right.redone || Cl(r, d.right.id) ||
|
|
66538
|
+
for (d = e; d !== null && d.right !== null && (d.right.redone || Cl(r, d.right.id) || D2(o.undoStack, d.right.id) || D2(o.redoStack, d.right.id)); )
|
|
66539
66539
|
for (d = d.right; d.redone; ) d = xr(t, d.redone);
|
|
66540
66540
|
if (d && d.right !== null)
|
|
66541
66541
|
return null;
|
|
@@ -66565,7 +66565,7 @@ class Vt extends qb {
|
|
|
66565
66565
|
* @param {AbstractContent} content
|
|
66566
66566
|
*/
|
|
66567
66567
|
constructor(e, n, r, i, o, s, a, l) {
|
|
66568
|
-
super(e, l.getLength()), this.origin = r, this.left = n, this.right = i, this.rightOrigin = o, this.parent = s, this.parentSub = a, this.redone = null, this.content = l, this.info = this.content.isCountable() ?
|
|
66568
|
+
super(e, l.getLength()), this.origin = r, this.left = n, this.right = i, this.rightOrigin = o, this.parent = s, this.parentSub = a, this.redone = null, this.content = l, this.info = this.content.isCountable() ? f2 : 0;
|
|
66569
66569
|
}
|
|
66570
66570
|
/**
|
|
66571
66571
|
* This is used to mark the item as an indexed fast-search marker
|
|
@@ -66582,13 +66582,13 @@ class Vt extends qb {
|
|
|
66582
66582
|
* If true, do not garbage collect this Item.
|
|
66583
66583
|
*/
|
|
66584
66584
|
get keep() {
|
|
66585
|
-
return (this.info &
|
|
66585
|
+
return (this.info & d2) > 0;
|
|
66586
66586
|
}
|
|
66587
66587
|
set keep(e) {
|
|
66588
|
-
this.keep !== e && (this.info ^=
|
|
66588
|
+
this.keep !== e && (this.info ^= d2);
|
|
66589
66589
|
}
|
|
66590
66590
|
get countable() {
|
|
66591
|
-
return (this.info &
|
|
66591
|
+
return (this.info & f2) > 0;
|
|
66592
66592
|
}
|
|
66593
66593
|
/**
|
|
66594
66594
|
* Whether this item was deleted or not.
|
|
@@ -66617,7 +66617,7 @@ class Vt extends qb {
|
|
|
66617
66617
|
return this.rightOrigin.client;
|
|
66618
66618
|
if (this.parent && this.parent.constructor === Va && this.id.client !== this.parent.client && this.parent.clock >= Mn(n, this.parent.client))
|
|
66619
66619
|
return this.parent.client;
|
|
66620
|
-
if (this.origin && (this.left =
|
|
66620
|
+
if (this.origin && (this.left = S2(e, n, this.origin), this.origin = this.left.lastId), this.rightOrigin && (this.right = xr(e, this.rightOrigin), this.rightOrigin = this.right.id), this.left && this.left.constructor === Yr || this.right && this.right.constructor === Yr)
|
|
66621
66621
|
this.parent = null;
|
|
66622
66622
|
else if (!this.parent)
|
|
66623
66623
|
this.left && this.left.constructor === Vt ? (this.parent = this.left.parent, this.parentSub = this.left.parentSub) : this.right && this.right.constructor === Vt && (this.parent = this.right.parent, this.parentSub = this.right.parentSub);
|
|
@@ -66633,7 +66633,7 @@ class Vt extends qb {
|
|
|
66633
66633
|
* @param {number} offset
|
|
66634
66634
|
*/
|
|
66635
66635
|
integrate(e, n) {
|
|
66636
|
-
if (n > 0 && (this.id.clock += n, this.left =
|
|
66636
|
+
if (n > 0 && (this.id.clock += n, this.left = S2(e, e.doc.store, yt(this.id.client, this.id.clock - 1)), this.origin = this.left.lastId, this.content = this.content.splice(n), this.length -= n), this.parent) {
|
|
66637
66637
|
if (!this.left && (!this.right || this.right.left !== null) || this.left && this.left.right !== this.right) {
|
|
66638
66638
|
let r = this.left, i;
|
|
66639
66639
|
if (r !== null)
|
|
@@ -66674,7 +66674,7 @@ class Vt extends qb {
|
|
|
66674
66674
|
this.parent._start, this.parent._start = this;
|
|
66675
66675
|
this.right = r;
|
|
66676
66676
|
}
|
|
66677
|
-
this.right !== null ? this.right.left = this : this.parentSub !== null && (this.parent._map.set(this.parentSub, this), this.left !== null && this.left.delete(e)), this.parentSub === null && this.countable && !this.deleted && (this.parent._length += this.length), JE(e.doc.store, this), this.content.integrate(e, this),
|
|
66677
|
+
this.right !== null ? this.right.left = this : this.parentSub !== null && (this.parent._map.set(this.parentSub, this), this.left !== null && this.left.delete(e)), this.parentSub === null && this.countable && !this.deleted && (this.parent._length += this.length), JE(e.doc.store, this), this.content.integrate(e, this), T2(
|
|
66678
66678
|
e,
|
|
66679
66679
|
/** @type {AbstractType<any>} */
|
|
66680
66680
|
this.parent,
|
|
@@ -66738,7 +66738,7 @@ class Vt extends qb {
|
|
|
66738
66738
|
/** @type {AbstractType<any>} */
|
|
66739
66739
|
this.parent
|
|
66740
66740
|
);
|
|
66741
|
-
this.countable && this.parentSub === null && (n._length -= this.length), this.markDeleted(), jc(e.deleteSet, this.id.client, this.id.clock, this.length),
|
|
66741
|
+
this.countable && this.parentSub === null && (n._length -= this.length), this.markDeleted(), jc(e.deleteSet, this.id.client, this.id.clock, this.length), T2(e, n, this.parentSub), this.content.delete(e);
|
|
66742
66742
|
}
|
|
66743
66743
|
}
|
|
66744
66744
|
/**
|
|
@@ -67469,12 +67469,12 @@ const kS = (t, e, n, r, i, o) => {
|
|
|
67469
67469
|
(r) => sg(r, e)
|
|
67470
67470
|
)
|
|
67471
67471
|
), e.mapping.set(n, t), n;
|
|
67472
|
-
}, sg = (t, e) => t instanceof Array ? AY(t, e) : MY(t, e),
|
|
67472
|
+
}, sg = (t, e) => t instanceof Array ? AY(t, e) : MY(t, e), L2 = (t) => typeof t == "object" && t !== null, Gb = (t, e) => {
|
|
67473
67473
|
const n = Object.keys(t).filter((i) => t[i] !== null);
|
|
67474
67474
|
let r = n.length === (e == null ? 0 : Object.keys(e).filter((i) => e[i] !== null).length);
|
|
67475
67475
|
for (let i = 0; i < n.length && r; i++) {
|
|
67476
67476
|
const o = n[i], s = t[o], a = e[o];
|
|
67477
|
-
r = o === "ychange" || s === a ||
|
|
67477
|
+
r = o === "ychange" || s === a || L2(s) && L2(a) && Gb(s, a);
|
|
67478
67478
|
}
|
|
67479
67479
|
return r;
|
|
67480
67480
|
}, ep = (t) => {
|
|
@@ -67514,7 +67514,7 @@ const kS = (t, e, n, r, i, o) => {
|
|
|
67514
67514
|
return t instanceof Ar && e instanceof Array && ES(t, e);
|
|
67515
67515
|
}, Qf = (t, e) => t === e || t instanceof Array && e instanceof Array && t.length === e.length && t.every(
|
|
67516
67516
|
(n, r) => e[r] === n
|
|
67517
|
-
),
|
|
67517
|
+
), B2 = (t, e, n) => {
|
|
67518
67518
|
const r = t.toArray(), i = ep(e), o = i.length, s = r.length, a = cl(s, o);
|
|
67519
67519
|
let l = 0, c = 0, u = !1;
|
|
67520
67520
|
for (; l < a; l++) {
|
|
@@ -67611,13 +67611,13 @@ const kS = (t, e, n, r, i, o) => {
|
|
|
67611
67611
|
else {
|
|
67612
67612
|
let g = f instanceof nr && lg(f, h), b = p instanceof nr && lg(p, m);
|
|
67613
67613
|
if (g && b) {
|
|
67614
|
-
const _ =
|
|
67614
|
+
const _ = B2(
|
|
67615
67615
|
/** @type {Y.XmlElement} */
|
|
67616
67616
|
f,
|
|
67617
67617
|
/** @type {PModel.Node} */
|
|
67618
67618
|
h,
|
|
67619
67619
|
r
|
|
67620
|
-
), E =
|
|
67620
|
+
), E = B2(
|
|
67621
67621
|
/** @type {Y.XmlElement} */
|
|
67622
67622
|
p,
|
|
67623
67623
|
/** @type {PModel.Node} */
|
|
@@ -67932,7 +67932,7 @@ const BY = (t) => {
|
|
|
67932
67932
|
function UY(t) {
|
|
67933
67933
|
return !!t.getMeta(_n);
|
|
67934
67934
|
}
|
|
67935
|
-
function
|
|
67935
|
+
function P2(t) {
|
|
67936
67936
|
if (!t.length) return Mt.empty;
|
|
67937
67937
|
const e = [], n = t[0].$from.node(0);
|
|
67938
67938
|
return t.forEach((r) => {
|
|
@@ -68056,11 +68056,11 @@ vt.create({ name: "nodeRange", addOptions: () => ({ depth: void 0, key: "Mod" })
|
|
|
68056
68056
|
}, { once: !0 }), !1);
|
|
68057
68057
|
} }, decorations: (n) => {
|
|
68058
68058
|
const { selection: r } = n, i = hd(r);
|
|
68059
|
-
if (t = !1, !e) return i ? (t = !0,
|
|
68059
|
+
if (t = !1, !e) return i ? (t = !0, P2(r.ranges)) : null;
|
|
68060
68060
|
const { $from: o, $to: s } = r;
|
|
68061
68061
|
if (!i && o.sameParent(s)) return null;
|
|
68062
68062
|
const a = tp(o, s, this.options.depth);
|
|
68063
|
-
return a.length ? (t = !0,
|
|
68063
|
+
return a.length ? (t = !0, P2(a)) : null;
|
|
68064
68064
|
} } })];
|
|
68065
68065
|
} });
|
|
68066
68066
|
function VY(t) {
|
|
@@ -68096,7 +68096,7 @@ function pd(t, e) {
|
|
|
68096
68096
|
function WY(t = 0, e = 0, n = 0) {
|
|
68097
68097
|
return Math.min(Math.max(t, e), n);
|
|
68098
68098
|
}
|
|
68099
|
-
function $
|
|
68099
|
+
function $2(t) {
|
|
68100
68100
|
var e;
|
|
68101
68101
|
(e = t.parentNode) === null || e === void 0 || e.removeChild(t);
|
|
68102
68102
|
}
|
|
@@ -68113,10 +68113,10 @@ function qY(t, e) {
|
|
|
68113
68113
|
const l = n.resolve(r.pos), c = n.resolve(r.pos + 1);
|
|
68114
68114
|
return tp(l, c, 0);
|
|
68115
68115
|
}
|
|
68116
|
-
const
|
|
68116
|
+
const F2 = (t, e) => {
|
|
68117
68117
|
const n = t.resolve(e), { depth: r } = n;
|
|
68118
68118
|
return r === 0 ? e : n.pos - n.parentOffset - 1;
|
|
68119
|
-
},
|
|
68119
|
+
}, z2 = (t, e) => {
|
|
68120
68120
|
const n = t.nodeAt(e), r = t.resolve(e);
|
|
68121
68121
|
let { depth: i } = r, o = n;
|
|
68122
68122
|
for (; i > 0; ) {
|
|
@@ -68127,7 +68127,7 @@ const Fw = (t, e) => {
|
|
|
68127
68127
|
}, M0 = (t, e) => {
|
|
68128
68128
|
const n = _n.getState(t);
|
|
68129
68129
|
return n ? cg(e, n.type, n.binding.mapping) : null;
|
|
68130
|
-
},
|
|
68130
|
+
}, H2 = (t, e) => {
|
|
68131
68131
|
let n = e;
|
|
68132
68132
|
for (; n && n.parentNode && n.parentNode !== t.dom; ) n = n.parentNode;
|
|
68133
68133
|
return n;
|
|
@@ -68144,7 +68144,7 @@ const Fw = (t, e) => {
|
|
|
68144
68144
|
k.forEach((T) => {
|
|
68145
68145
|
const B = VY(p.nodeDOM(T.$from.pos));
|
|
68146
68146
|
I.append(B);
|
|
68147
|
-
}), I.style.position = "absolute", I.style.top = "-10000px", document.body.append(I), f.dataTransfer.clearData(), f.dataTransfer.setDragImage(I, 0, 0), p.dragging = { slice: Q, move: !0 }, M.setSelection(Y), p.dispatch(M), document.addEventListener("drop", () => $
|
|
68147
|
+
}), I.style.position = "absolute", I.style.top = "-10000px", document.body.append(I), f.dataTransfer.clearData(), f.dataTransfer.setDragImage(I, 0, 0), p.dragging = { slice: Q, move: !0 }, M.setSelection(Y), p.dispatch(M), document.addEventListener("drop", () => $2(I), { once: !0 });
|
|
68148
68148
|
})(d, n), setTimeout(() => {
|
|
68149
68149
|
e && (e.style.pointerEvents = "none");
|
|
68150
68150
|
}, 0);
|
|
@@ -68171,21 +68171,21 @@ const Fw = (t, e) => {
|
|
|
68171
68171
|
if (!n.isEditable) return a == null || a.destroy(), void (a = null);
|
|
68172
68172
|
if (a || (a = ks(d.dom, { getReferenceClientRect: null, interactive: !0, trigger: "manual", placement: "left-start", hideOnClick: !1, duration: 100, popperOptions: { modifiers: [{ name: "flip", enabled: !1 }, { name: "preventOverflow", options: { rootBoundary: "document", mainAxis: !1 } }] }, ...r, appendTo: o, content: e })), e.draggable = !l, d.state.doc.eq(p.doc) || u === -1) return;
|
|
68173
68173
|
let m = d.nodeDOM(u);
|
|
68174
|
-
if (m =
|
|
68175
|
-
const g = d.posAtDOM(m, 0), b =
|
|
68174
|
+
if (m = H2(d, m), m === d.dom || (m == null ? void 0 : m.nodeType) !== 1) return;
|
|
68175
|
+
const g = d.posAtDOM(m, 0), b = z2(n.state.doc, g), _ = F2(n.state.doc, g);
|
|
68176
68176
|
c = b, u = _, s = M0(d.state, u), i == null || i({ editor: n, node: c, pos: u }), a.setProps({ getReferenceClientRect: () => m.getBoundingClientRect() });
|
|
68177
68177
|
}, destroy() {
|
|
68178
|
-
a == null || a.destroy(), e && $
|
|
68178
|
+
a == null || a.destroy(), e && $2(o);
|
|
68179
68179
|
} };
|
|
68180
68180
|
}, props: { handleDOMEvents: { mouseleave: (d, f) => (l || f.target && !o.contains(f.relatedTarget) && (a == null || a.hide(), c = null, u = -1, i == null || i({ editor: n, node: null, pos: -1 })), !1), mousemove(d, f) {
|
|
68181
68181
|
if (!e || !a || l) return !1;
|
|
68182
68182
|
const h = CS({ x: f.clientX, y: f.clientY, direction: "right", editor: n });
|
|
68183
68183
|
if (!h.resultElement) return !1;
|
|
68184
68184
|
let p = h.resultElement;
|
|
68185
|
-
if (p =
|
|
68186
|
-
const m = d.posAtDOM(p, 0), g =
|
|
68185
|
+
if (p = H2(d, p), p === d.dom || (p == null ? void 0 : p.nodeType) !== 1) return !1;
|
|
68186
|
+
const m = d.posAtDOM(p, 0), g = z2(n.state.doc, m);
|
|
68187
68187
|
if (g !== c) {
|
|
68188
|
-
const b =
|
|
68188
|
+
const b = F2(n.state.doc, m);
|
|
68189
68189
|
c = g, u = b, s = M0(d.state, u), i == null || i({ editor: n, node: c, pos: u }), a.setProps({ getReferenceClientRect: () => p.getBoundingClientRect() }), a.show();
|
|
68190
68190
|
}
|
|
68191
68191
|
return !1;
|
|
@@ -68252,7 +68252,7 @@ const KY = wi({ name: "DragHandleVue", props: { pluginKey: { type: [String, Obje
|
|
|
68252
68252
|
}
|
|
68253
68253
|
function d({ node: h, pos: p }) {
|
|
68254
68254
|
var m;
|
|
68255
|
-
o.value = h ?? null, p !== null && (s.value = p), n.value = h, i.value = u(p), r.value = "", ((m = h == null ? void 0 : h.type) == null ? void 0 : m.name) === "table" && i.value &&
|
|
68255
|
+
o.value = h ?? null, p !== null && (s.value = p), n.value = h, i.value = u(p), r.value = "", ((m = h == null ? void 0 : h.type) == null ? void 0 : m.name) === "table" && i.value && Z2(i.value.children[0], (g) => {
|
|
68256
68256
|
const b = g[0], { style: _ } = b.target;
|
|
68257
68257
|
_.width === "100%" ? r.value = _.width : Number.isNaN(Number.parseInt(_.width)) ? r.value = "" : r.value = `w:${Number.parseInt(_.width) + 2}px`;
|
|
68258
68258
|
});
|
|
@@ -68384,7 +68384,7 @@ const KY = wi({ name: "DragHandleVue", props: { pluginKey: { type: [String, Obje
|
|
|
68384
68384
|
onPopupClose: h
|
|
68385
68385
|
}), (g, b) => {
|
|
68386
68386
|
var w;
|
|
68387
|
-
const _ = ai, E =
|
|
68387
|
+
const _ = ai, E = V2;
|
|
68388
68388
|
return F(), fe("div", {
|
|
68389
68389
|
id: c.substr(1),
|
|
68390
68390
|
class: "smart-color-picker-container"
|
|
@@ -70874,7 +70874,7 @@ const dJ = {
|
|
|
70874
70874
|
i.value = d === 0, o.value = d + h + 1 >= f;
|
|
70875
70875
|
}
|
|
70876
70876
|
const a = () => r.value.scrollLeft -= 100, l = () => r.value.scrollLeft += 100;
|
|
70877
|
-
|
|
70877
|
+
Z2(n.value, () => {
|
|
70878
70878
|
s();
|
|
70879
70879
|
});
|
|
70880
70880
|
const { width: c } = nh();
|
|
@@ -70985,7 +70985,7 @@ const dJ = {
|
|
|
70985
70985
|
});
|
|
70986
70986
|
}
|
|
70987
70987
|
return (s, a) => {
|
|
70988
|
-
const l = Ve, c = ai, u =
|
|
70988
|
+
const l = Ve, c = ai, u = W2;
|
|
70989
70989
|
return F(), fe(rt, null, [
|
|
70990
70990
|
J(l, {
|
|
70991
70991
|
ico: "i-sed:import-word",
|
|
@@ -71016,7 +71016,7 @@ const dJ = {
|
|
|
71016
71016
|
default: le(() => [
|
|
71017
71017
|
G("div", MJ, [
|
|
71018
71018
|
a[3] || (a[3] = Gt(" 上传文件 ", -1)),
|
|
71019
|
-
G("span", NJ, "(" + Oe(v(n).wordPoint) + "
|
|
71019
|
+
G("span", NJ, "(" + Oe(v(n).wordPoint) + "ACC/次)", 1)
|
|
71020
71020
|
])
|
|
71021
71021
|
]),
|
|
71022
71022
|
_: 1
|
|
@@ -71060,7 +71060,7 @@ const dJ = {
|
|
|
71060
71060
|
width: r.width
|
|
71061
71061
|
};
|
|
71062
71062
|
return (s, a) => {
|
|
71063
|
-
const l =
|
|
71063
|
+
const l = W2;
|
|
71064
71064
|
return F(), te(l, Xn({
|
|
71065
71065
|
show: t.visible,
|
|
71066
71066
|
to: v(i),
|
|
@@ -71206,7 +71206,7 @@ const dJ = {
|
|
|
71206
71206
|
u === 0 || u > 1e3 || d === 0 || d > 30 || ((f = r.value) == null || f.chain().focus().insertTable({ rows: u, cols: d, withHeaderRow: !1 }).run(), e.value = !1);
|
|
71207
71207
|
}
|
|
71208
71208
|
return (u, d) => {
|
|
71209
|
-
const f =
|
|
71209
|
+
const f = q2, h = ai, p = Ve;
|
|
71210
71210
|
return F(), te(p, {
|
|
71211
71211
|
ico: "i-sed:table",
|
|
71212
71212
|
text: ("t" in u ? u.t : v(A))("table.insert.text"),
|
|
@@ -72385,7 +72385,7 @@ const kZ = /* @__PURE__ */ ot(_Z, [["render", xZ], ["__scopeId", "data-v-3d91acb
|
|
|
72385
72385
|
class: "smart-toolbar"
|
|
72386
72386
|
}, AZ = { class: "smart-main" }, zte = /* @__PURE__ */ Object.assign({ name: "SmartEditor" }, {
|
|
72387
72387
|
__name: "index",
|
|
72388
|
-
props:
|
|
72388
|
+
props: Iw,
|
|
72389
72389
|
emits: [
|
|
72390
72390
|
"beforeCreate",
|
|
72391
72391
|
"created",
|
|
@@ -72483,7 +72483,7 @@ const kZ = /* @__PURE__ */ ot(_Z, [["render", xZ], ["__scopeId", "data-v-3d91acb
|
|
|
72483
72483
|
i("changed:pageShowToc", L);
|
|
72484
72484
|
}
|
|
72485
72485
|
);
|
|
72486
|
-
const { locale: w } =
|
|
72486
|
+
const { locale: w } = Dw();
|
|
72487
72487
|
w.value = b.value;
|
|
72488
72488
|
function k(L) {
|
|
72489
72489
|
if (!["zh_CN", "en_US"].includes(L))
|
|
@@ -72562,8 +72562,8 @@ const kZ = /* @__PURE__ */ ot(_Z, [["render", xZ], ["__scopeId", "data-v-3d91acb
|
|
|
72562
72562
|
return F(), te(S, {
|
|
72563
72563
|
"cls-prefix": "se",
|
|
72564
72564
|
"theme-overrides": v(Ag),
|
|
72565
|
-
locale: v(b) !== "en_US" ? v(
|
|
72566
|
-
"date-locale": v(b) !== "en_US" ? v(
|
|
72565
|
+
locale: v(b) !== "en_US" ? v(j2) : v(Y2),
|
|
72566
|
+
"date-locale": v(b) !== "en_US" ? v(K2) : v(G2)
|
|
72567
72567
|
}, {
|
|
72568
72568
|
default: le(() => [
|
|
72569
72569
|
J(T, { to: ".smart-editor-container" }, {
|
|
@@ -72951,7 +72951,7 @@ const zZ = {
|
|
|
72951
72951
|
}
|
|
72952
72952
|
}, HZ = /* @__PURE__ */ ot(zZ, [["__scopeId", "data-v-9ce00dd6"]]), UZ = ["id"], VZ = { class: "smart-main smart-scrollbar" }, Hte = /* @__PURE__ */ Object.assign({ name: "SmartReader" }, {
|
|
72953
72953
|
__name: "index",
|
|
72954
|
-
props:
|
|
72954
|
+
props: Iw,
|
|
72955
72955
|
setup(t, { expose: e }) {
|
|
72956
72956
|
const n = t, {
|
|
72957
72957
|
container: r,
|
|
@@ -73098,7 +73098,7 @@ const zZ = {
|
|
|
73098
73098
|
n.value = c;
|
|
73099
73099
|
}, i = ae(null), o = (c) => {
|
|
73100
73100
|
i.value = c;
|
|
73101
|
-
}, { locale: s } =
|
|
73101
|
+
}, { locale: s } = Dw();
|
|
73102
73102
|
s.value = "zh_CN";
|
|
73103
73103
|
const a = (c) => {
|
|
73104
73104
|
if (!["zh_CN", "en_US"].includes(c))
|
|
@@ -73241,7 +73241,7 @@ const zZ = {
|
|
|
73241
73241
|
ignore: [m, ".smart-popup"]
|
|
73242
73242
|
}
|
|
73243
73243
|
), (_, E) => {
|
|
73244
|
-
const w = ai, k = eh, M =
|
|
73244
|
+
const w = ai, k = eh, M = U2, I = gl;
|
|
73245
73245
|
return F(), te(I, {
|
|
73246
73246
|
show: v(l) && !v(c) && t.showTooltip,
|
|
73247
73247
|
placement: "bottom",
|
|
@@ -74060,7 +74060,7 @@ const zZ = {
|
|
|
74060
74060
|
onPopupClose: h
|
|
74061
74061
|
}), (g, b) => {
|
|
74062
74062
|
var w;
|
|
74063
|
-
const _ = ai, E =
|
|
74063
|
+
const _ = ai, E = V2;
|
|
74064
74064
|
return F(), fe("div", {
|
|
74065
74065
|
id: c.substr(1),
|
|
74066
74066
|
class: "smart-color-picker-container"
|
|
@@ -74810,7 +74810,7 @@ const HQ = {
|
|
|
74810
74810
|
u === 0 || u > 1e3 || d === 0 || d > 30 || ((f = r.value) == null || f.chain().focus().insertTable({ rows: u, cols: d, withHeaderRow: !1 }).run(), e.value = !1);
|
|
74811
74811
|
}
|
|
74812
74812
|
return (u, d) => {
|
|
74813
|
-
const f =
|
|
74813
|
+
const f = q2, h = ai, p = ht;
|
|
74814
74814
|
return F(), te(p, {
|
|
74815
74815
|
ico: "i-sed:table",
|
|
74816
74816
|
text: ("t" in u ? u.t : v(A))("table.insert.text"),
|
|
@@ -75634,8 +75634,8 @@ const HQ = {
|
|
|
75634
75634
|
return F(), te(_, {
|
|
75635
75635
|
"cls-prefix": "se",
|
|
75636
75636
|
"theme-overrides": v(Ag),
|
|
75637
|
-
locale: v(o) !== "en_US" ? v(
|
|
75638
|
-
"date-locale": v(o) !== "en_US" ? v(
|
|
75637
|
+
locale: v(o) !== "en_US" ? v(j2) : v(Y2),
|
|
75638
|
+
"date-locale": v(o) !== "en_US" ? v(K2) : v(G2),
|
|
75639
75639
|
theme: p.isDark ? v(O8) : null
|
|
75640
75640
|
}, {
|
|
75641
75641
|
default: le(() => [
|