reactjs-tiptap-editor 0.3.3 → 0.3.4
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/lib/{ActionMenuButton-D5CqiauP.cjs → ActionMenuButton-DWudb-EA.cjs} +1 -1
- package/lib/{ActionMenuButton-DJQVpcjj.js → ActionMenuButton-_fmUfylg.js} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.d.cts +17 -5
- package/lib/Attachment.d.ts +17 -5
- package/lib/Attachment.js +2 -2
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.d.cts +17 -5
- package/lib/Blockquote.d.ts +17 -5
- package/lib/Blockquote.js +1 -1
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.d.cts +17 -5
- package/lib/Bold.d.ts +17 -5
- package/lib/Bold.js +1 -1
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.d.cts +17 -5
- package/lib/BulletList.d.ts +17 -5
- package/lib/BulletList.js +1 -1
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.d.cts +17 -5
- package/lib/Clear.d.ts +17 -5
- package/lib/Clear.js +1 -1
- package/lib/Code.cjs +1 -1
- package/lib/Code.d.cts +17 -5
- package/lib/Code.d.ts +17 -5
- package/lib/Code.js +1 -1
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.d.cts +17 -5
- package/lib/CodeBlock.d.ts +17 -5
- package/lib/CodeBlock.js +1 -1
- package/lib/CodeView.cjs +1 -0
- package/lib/CodeView.d.cts +354 -0
- package/lib/CodeView.d.ts +354 -0
- package/lib/CodeView.js +53 -0
- package/lib/Color.cjs +1 -1
- package/lib/Color.d.cts +17 -5
- package/lib/Color.d.ts +17 -5
- package/lib/Color.js +2 -2
- package/lib/Document.d.cts +17 -5
- package/lib/Document.d.ts +17 -5
- package/lib/{Drawer-82lBASmO.js → Drawer-C9nzP3w1.js} +18 -18
- package/lib/{Drawer-DLV1rOAE.cjs → Drawer-y2uXLloa.cjs} +1 -1
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.d.cts +17 -5
- package/lib/Drawer.d.ts +17 -5
- package/lib/Drawer.js +2 -2
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +17 -5
- package/lib/Emoji.d.ts +17 -5
- package/lib/Emoji.js +2 -2
- package/lib/{Excalidraw-CsD-4eCA.js → Excalidraw-BihHDjEo.js} +2 -2
- package/lib/{Excalidraw-BuGGHrVK.cjs → Excalidraw-DMKzooX1.cjs} +1 -1
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.d.cts +17 -5
- package/lib/Excalidraw.d.ts +17 -5
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.d.cts +17 -5
- package/lib/ExportPdf.d.ts +17 -5
- package/lib/ExportPdf.js +1 -1
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.d.cts +17 -5
- package/lib/ExportWord.d.ts +17 -5
- package/lib/ExportWord.js +1 -1
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.d.cts +17 -5
- package/lib/FontFamily.d.ts +17 -5
- package/lib/FontFamily.js +3 -3
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.d.cts +17 -5
- package/lib/FontSize.d.ts +17 -5
- package/lib/FontSize.js +3 -3
- package/lib/FormatPainter.cjs +1 -1
- package/lib/FormatPainter.d.cts +17 -5
- package/lib/FormatPainter.d.ts +17 -5
- package/lib/FormatPainter.js +1 -1
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.d.cts +17 -5
- package/lib/Heading.d.ts +17 -5
- package/lib/Heading.js +2 -2
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.d.cts +17 -5
- package/lib/Highlight.d.ts +17 -5
- package/lib/Highlight.js +1 -1
- package/lib/History.cjs +1 -1
- package/lib/History.d.cts +17 -5
- package/lib/History.d.ts +17 -5
- package/lib/History.js +1 -1
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.d.cts +17 -5
- package/lib/HorizontalRule.d.ts +17 -5
- package/lib/HorizontalRule.js +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.d.cts +17 -5
- package/lib/Iframe.d.ts +17 -5
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.d.cts +17 -5
- package/lib/Image.d.ts +17 -5
- package/lib/Image.js +1 -1
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.d.cts +17 -5
- package/lib/ImageGif.d.ts +17 -5
- package/lib/ImageGif.js +1 -1
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.d.cts +17 -5
- package/lib/ImportWord.d.ts +17 -5
- package/lib/ImportWord.js +2 -2
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.d.cts +17 -5
- package/lib/Indent.d.ts +17 -5
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.d.cts +17 -5
- package/lib/Italic.d.ts +17 -5
- package/lib/Italic.js +1 -1
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.d.cts +17 -5
- package/lib/Katex.d.ts +17 -5
- package/lib/Katex.js +3 -3
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.d.cts +17 -5
- package/lib/LineHeight.d.ts +17 -5
- package/lib/LineHeight.js +8 -8
- package/lib/Link.cjs +1 -1
- package/lib/Link.d.cts +17 -5
- package/lib/Link.d.ts +17 -5
- package/lib/Link.js +1 -1
- package/lib/ListItem.d.cts +17 -5
- package/lib/ListItem.d.ts +17 -5
- package/lib/Mention.d.cts +17 -5
- package/lib/Mention.d.ts +17 -5
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.d.cts +17 -5
- package/lib/Mermaid.d.ts +17 -5
- package/lib/Mermaid.js +14 -14
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.d.cts +17 -5
- package/lib/MoreMark.d.ts +17 -5
- package/lib/MoreMark.js +1 -1
- package/lib/MultiColumn.cjs +1 -1
- package/lib/MultiColumn.d.cts +17 -5
- package/lib/MultiColumn.d.ts +17 -5
- package/lib/MultiColumn.js +1 -1
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.d.cts +17 -5
- package/lib/OrderedList.d.ts +17 -5
- package/lib/OrderedList.js +1 -1
- package/lib/{RichTextEditor-BwuyWeH3.js → RichTextEditor-D5VO1y1d.js} +727 -716
- package/lib/RichTextEditor-qp9T7xuG.cjs +137 -0
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.d.cts +17 -5
- package/lib/SearchAndReplace.d.ts +17 -5
- package/lib/SearchAndReplace.js +2 -2
- package/lib/Selection.d.cts +17 -5
- package/lib/Selection.d.ts +17 -5
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +17 -5
- package/lib/SlashCommand.d.ts +17 -5
- package/lib/SlashCommand.js +2 -2
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.d.cts +17 -5
- package/lib/Strike.d.ts +17 -5
- package/lib/Strike.js +1 -1
- package/lib/SubAndSuperScript.cjs +1 -1
- package/lib/SubAndSuperScript.d.cts +17 -5
- package/lib/SubAndSuperScript.d.ts +17 -5
- package/lib/SubAndSuperScript.js +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.d.cts +17 -5
- package/lib/Table.d.ts +17 -5
- package/lib/Table.js +2 -2
- package/lib/TableOfContent.cjs +1 -1
- package/lib/TableOfContent.d.cts +17 -5
- package/lib/TableOfContent.d.ts +17 -5
- package/lib/TableOfContent.js +4 -4
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.d.cts +17 -5
- package/lib/TaskList.d.ts +17 -5
- package/lib/TaskList.js +1 -1
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.d.cts +17 -5
- package/lib/TextAlign.d.ts +17 -5
- package/lib/TextAlign.js +1 -1
- package/lib/TextBubble.cjs +1 -1
- package/lib/TextBubble.d.cts +17 -5
- package/lib/TextBubble.d.ts +17 -5
- package/lib/TextBubble.js +2 -2
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.d.cts +17 -5
- package/lib/TextDirection.d.ts +17 -5
- package/lib/TextDirection.js +1 -1
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.d.cts +17 -5
- package/lib/TextUnderline.d.ts +17 -5
- package/lib/TextUnderline.js +1 -1
- package/lib/TrailingNode.d.cts +17 -5
- package/lib/TrailingNode.d.ts +17 -5
- package/lib/{Twitter-Bstfoi9X.js → Twitter-CH7Z4Iof.js} +2 -2
- package/lib/{Twitter-D41ISCsH.cjs → Twitter-CgVy5oQW.cjs} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.d.cts +17 -5
- package/lib/Twitter.d.ts +17 -5
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.d.cts +17 -5
- package/lib/Video.d.ts +17 -5
- package/lib/Video.js +2 -2
- package/lib/bubble-extra.cjs +1 -1
- package/lib/bubble-extra.d.cts +17 -5
- package/lib/bubble-extra.d.ts +17 -5
- package/lib/bubble-extra.js +6 -6
- package/lib/{index-D9llIWB5.js → index-D-DR0FPY.js} +18 -13
- package/lib/index-Dz3YxLE7.cjs +1 -0
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +18 -5
- package/lib/index.d.ts +18 -5
- package/lib/index.js +3 -3
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +22 -5
- package/lib/locale-bundle.d.ts +22 -5
- package/lib/locale-bundle.js +1 -1
- package/lib/{textarea-CfH4-Iyy.js → textarea-CDp8O87y.js} +1 -1
- package/lib/{textarea-ZGJkH6ji.cjs → textarea-CqMUEJEj.cjs} +1 -1
- package/package.json +14 -1
- package/lib/RichTextEditor-NfX6yV6A.cjs +0 -137
- package/lib/index-LbrE7K9i.cjs +0 -1
|
@@ -4,17 +4,17 @@ var rr = (e, t, r) => wu(e, typeof t != "symbol" ? t + "" : t, r);
|
|
|
4
4
|
import { jsxs as T, jsx as s, Fragment as de } from "react/jsx-runtime";
|
|
5
5
|
import * as Z from "react";
|
|
6
6
|
import ur, { useState as Y, useRef as We, useEffect as le, useMemo as ye, useCallback as te, createContext as Su, useContext as Au, useSyncExternalStore as Cu, Fragment as Iu, memo as Tu, forwardRef as Ou, useId as Ru, useImperativeHandle as Pu, useLayoutEffect as Nu } from "react";
|
|
7
|
-
import { c as ao, B as at, N as co, R as so, g as Gr, u as
|
|
7
|
+
import { c as ao, B as at, N as co, R as so, g as Gr, u as Mu, E as Eu } from "./dom-dataset-CJ7GyQ2E.js";
|
|
8
8
|
import { Slot as Is } from "@radix-ui/react-slot";
|
|
9
|
-
import { m as we, B as $u, q as hr, V as qi, u as me, r as ku, I as pr,
|
|
9
|
+
import { m as we, B as $u, q as hr, V as qi, u as me, r as ku, I as pr, i as mr, h as Ts, C as _u, E as Lu } from "./index-D-DR0FPY.js";
|
|
10
10
|
import * as Os from "@radix-ui/react-separator";
|
|
11
11
|
import * as Te from "@radix-ui/react-toast";
|
|
12
|
-
import { WrapText as Du, PencilRuler as Bu, FlipHorizontal as zu, FlipVertical as ju, CropIcon as qu, ChevronUp as Fu, Paperclip as Hu, Eye as Uu, Settings as Wu, ZoomOut as Gu, ZoomIn as Vu, BookMarked as Xu, Sigma as Yu, SmilePlusIcon as Ku, Replace as Yo, SmilePlus as Ju, Frame as Zu, Columns2 as Ko, PanelRight as Qu, PanelLeft as ed, Clipboard as td, Copy as rd, GripVertical as nd, Plus as Rs, Columns4 as id, Columns3 as od, Heading6 as ad, Heading5 as cd, Heading4 as sd, Heading3 as ld, Heading2 as ud, Heading1 as dd, ChevronsUpDown as fd, Trash as hd, Trash2 as pd, TableCellsSplit as md, TableCellsMerge as gd, BetweenVerticalEnd as vd, BetweenVerticalStart as xd, BetweenHorizonalStart as yd, BetweenHorizonalEnd as bd, Unlink as wd, Pencil as Sd, Sparkles as Ad, Table as Cd, Minimize as Id, Maximize as Td, Video as Od, ImageUp as Rd, Link as Pd, ListTodo as Nd, ListOrdered as
|
|
12
|
+
import { WrapText as Du, PencilRuler as Bu, FlipHorizontal as zu, FlipVertical as ju, CropIcon as qu, ChevronUp as Fu, Paperclip as Hu, Eye as Uu, Settings as Wu, ZoomOut as Gu, ZoomIn as Vu, BookMarked as Xu, Sigma as Yu, SmilePlusIcon as Ku, Replace as Yo, SmilePlus as Ju, Frame as Zu, Columns2 as Ko, PanelRight as Qu, PanelLeft as ed, Clipboard as td, Copy as rd, GripVertical as nd, Plus as Rs, Columns4 as id, Columns3 as od, Heading6 as ad, Heading5 as cd, Heading4 as sd, Heading3 as ld, Heading2 as ud, Heading1 as dd, ChevronsUpDown as fd, Trash as hd, Trash2 as pd, TableCellsSplit as md, TableCellsMerge as gd, BetweenVerticalEnd as vd, BetweenVerticalStart as xd, BetweenHorizonalStart as yd, BetweenHorizonalEnd as bd, Unlink as wd, Pencil as Sd, Sparkles as Ad, Table as Cd, Minimize as Id, Maximize as Td, Video as Od, ImageUp as Rd, Link as Pd, ListTodo as Nd, ListOrdered as Md, List as Ed, IndentDecrease as $d, IndentIncrease as kd, Type as _d, CodeXml as Ld, Code as Dd, Superscript as Bd, Subscript as zd, ChevronDown as jd, Undo2 as qd, Redo2 as Fd, PaintRoller as Hd, Eraser as Ud, Minus as Wd, Strikethrough as Gd, Quote as Vd, Underline as Xd, Italic as Yd, LoaderCircle as Kd, Bold as Jd, X as Ps, ChevronRight as Zd, Check as Ns, Circle as Qd } from "lucide-react";
|
|
13
13
|
import * as Ut from "@radix-ui/react-tooltip";
|
|
14
|
-
import * as
|
|
14
|
+
import * as Ms from "@radix-ui/react-toggle";
|
|
15
15
|
import { TextAlignRightIcon as ef, TextAlignLeftIcon as tf, TextAlignJustifyIcon as rf, TextAlignCenterIcon as nf } from "@radix-ui/react-icons";
|
|
16
16
|
import * as Lt from "@radix-ui/react-popover";
|
|
17
|
-
import * as
|
|
17
|
+
import * as Es from "@radix-ui/react-label";
|
|
18
18
|
import * as Re from "@radix-ui/react-dialog";
|
|
19
19
|
import { O as Wt, Q as of, z as af, S as cf, a as lo, P as uo, T as Gt, A as sf, R as lf, U as uf, N as Vt, n as $s, m as Ct, b as df, D as ff, V as gr, W as hf, E as pf } from "./index-Drmyqk9P.js";
|
|
20
20
|
import { Resizable as mf } from "re-resizable";
|
|
@@ -68,14 +68,14 @@ function vr(e) {
|
|
|
68
68
|
return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
|
|
69
69
|
}
|
|
70
70
|
var Nf = /\s/;
|
|
71
|
-
function
|
|
71
|
+
function Mf(e) {
|
|
72
72
|
for (var t = e.length; t-- && Nf.test(e.charAt(t)); )
|
|
73
73
|
;
|
|
74
74
|
return t;
|
|
75
75
|
}
|
|
76
|
-
var
|
|
76
|
+
var Ef = /^\s+/;
|
|
77
77
|
function $f(e) {
|
|
78
|
-
return e && e.slice(0,
|
|
78
|
+
return e && e.slice(0, Mf(e) + 1).replace(Ef, "");
|
|
79
79
|
}
|
|
80
80
|
function ot(e) {
|
|
81
81
|
var t = typeof e;
|
|
@@ -277,9 +277,9 @@ var qs = Object.prototype, Th = qs.hasOwnProperty, Oh = qs.propertyIsEnumerable,
|
|
|
277
277
|
function Rh() {
|
|
278
278
|
return !1;
|
|
279
279
|
}
|
|
280
|
-
var Fs = typeof exports == "object" && exports && !exports.nodeType && exports, oa = Fs && typeof module == "object" && module && !module.nodeType && module, Ph = oa && oa.exports === Fs, aa = Ph ? Be.Buffer : void 0, Nh = aa ? aa.isBuffer : void 0, Wi = Nh || Rh,
|
|
280
|
+
var Fs = typeof exports == "object" && exports && !exports.nodeType && exports, oa = Fs && typeof module == "object" && module && !module.nodeType && module, Ph = oa && oa.exports === Fs, aa = Ph ? Be.Buffer : void 0, Nh = aa ? aa.isBuffer : void 0, Wi = Nh || Rh, Mh = "[object Arguments]", Eh = "[object Array]", $h = "[object Boolean]", kh = "[object Date]", _h = "[object Error]", Lh = "[object Function]", Dh = "[object Map]", Bh = "[object Number]", zh = "[object Object]", jh = "[object RegExp]", qh = "[object Set]", Fh = "[object String]", Hh = "[object WeakMap]", Uh = "[object ArrayBuffer]", Wh = "[object DataView]", Gh = "[object Float32Array]", Vh = "[object Float64Array]", Xh = "[object Int8Array]", Yh = "[object Int16Array]", Kh = "[object Int32Array]", Jh = "[object Uint8Array]", Zh = "[object Uint8ClampedArray]", Qh = "[object Uint16Array]", ep = "[object Uint32Array]", ae = {};
|
|
281
281
|
ae[Gh] = ae[Vh] = ae[Xh] = ae[Yh] = ae[Kh] = ae[Jh] = ae[Zh] = ae[Qh] = ae[ep] = !0;
|
|
282
|
-
ae[
|
|
282
|
+
ae[Mh] = ae[Eh] = ae[Uh] = ae[$h] = ae[Wh] = ae[kh] = ae[_h] = ae[Lh] = ae[Dh] = ae[Bh] = ae[zh] = ae[jh] = ae[qh] = ae[Fh] = ae[Hh] = !1;
|
|
283
283
|
function tp(e) {
|
|
284
284
|
return Ge(e) && ho(e.length) && !!ae[ct(e)];
|
|
285
285
|
}
|
|
@@ -409,20 +409,20 @@ Ve.prototype.get = Rp;
|
|
|
409
409
|
Ve.prototype.has = Pp;
|
|
410
410
|
Ve.prototype.set = Np;
|
|
411
411
|
var Bt = ht(Be, "Map");
|
|
412
|
-
function
|
|
412
|
+
function Mp() {
|
|
413
413
|
this.size = 0, this.__data__ = {
|
|
414
414
|
hash: new lt(),
|
|
415
415
|
map: new (Bt || Ve)(),
|
|
416
416
|
string: new lt()
|
|
417
417
|
};
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Ep(e) {
|
|
420
420
|
var t = typeof e;
|
|
421
421
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
422
422
|
}
|
|
423
423
|
function Ir(e, t) {
|
|
424
424
|
var r = e.__data__;
|
|
425
|
-
return
|
|
425
|
+
return Ep(t) ? r[typeof t == "string" ? "string" : "hash"] : r.map;
|
|
426
426
|
}
|
|
427
427
|
function $p(e) {
|
|
428
428
|
var t = Ir(this, e).delete(e);
|
|
@@ -445,7 +445,7 @@ function Xe(e) {
|
|
|
445
445
|
this.set(n[0], n[1]);
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
Xe.prototype.clear =
|
|
448
|
+
Xe.prototype.clear = Mp;
|
|
449
449
|
Xe.prototype.delete = $p;
|
|
450
450
|
Xe.prototype.get = kp;
|
|
451
451
|
Xe.prototype.has = _p;
|
|
@@ -602,14 +602,14 @@ function Pm(e, t, r) {
|
|
|
602
602
|
function ua(e) {
|
|
603
603
|
return Pm(e, Ws, Rm);
|
|
604
604
|
}
|
|
605
|
-
var Yi = ht(Be, "DataView"), Ki = ht(Be, "Promise"), Ji = ht(Be, "Set"), da = "[object Map]", Nm = "[object Object]", fa = "[object Promise]", ha = "[object Set]", pa = "[object WeakMap]", ma = "[object DataView]",
|
|
605
|
+
var Yi = ht(Be, "DataView"), Ki = ht(Be, "Promise"), Ji = ht(Be, "Set"), da = "[object Map]", Nm = "[object Object]", fa = "[object Promise]", ha = "[object Set]", pa = "[object WeakMap]", ma = "[object DataView]", Mm = ft(Yi), Em = ft(Bt), $m = ft(Ki), km = ft(Ji), _m = ft(Ui), nt = ct;
|
|
606
606
|
(Yi && nt(new Yi(new ArrayBuffer(1))) != ma || Bt && nt(new Bt()) != da || Ki && nt(Ki.resolve()) != fa || Ji && nt(new Ji()) != ha || Ui && nt(new Ui()) != pa) && (nt = function(e) {
|
|
607
607
|
var t = ct(e), r = t == Nm ? e.constructor : void 0, n = r ? ft(r) : "";
|
|
608
608
|
if (n)
|
|
609
609
|
switch (n) {
|
|
610
|
-
case Em:
|
|
611
|
-
return ma;
|
|
612
610
|
case Mm:
|
|
611
|
+
return ma;
|
|
612
|
+
case Em:
|
|
613
613
|
return da;
|
|
614
614
|
case $m:
|
|
615
615
|
return fa;
|
|
@@ -655,9 +655,9 @@ function nl(e, t, r, n, i, o) {
|
|
|
655
655
|
for (o.set(e, t), o.set(t, e); ++d < c; ) {
|
|
656
656
|
var m = e[d], g = t[d];
|
|
657
657
|
if (n)
|
|
658
|
-
var
|
|
659
|
-
if (
|
|
660
|
-
if (
|
|
658
|
+
var x = a ? n(g, m, d, t, e, o) : n(m, g, d, e, t, o);
|
|
659
|
+
if (x !== void 0) {
|
|
660
|
+
if (x)
|
|
661
661
|
continue;
|
|
662
662
|
h = !1;
|
|
663
663
|
break;
|
|
@@ -740,7 +740,7 @@ function cg(e, t, r, n, i, o) {
|
|
|
740
740
|
return p == t && m == e;
|
|
741
741
|
var g = !0;
|
|
742
742
|
o.set(e, t), o.set(t, e);
|
|
743
|
-
for (var
|
|
743
|
+
for (var x = a; ++d < l; ) {
|
|
744
744
|
h = c[d];
|
|
745
745
|
var w = e[h], S = t[h];
|
|
746
746
|
if (n)
|
|
@@ -749,9 +749,9 @@ function cg(e, t, r, n, i, o) {
|
|
|
749
749
|
g = !1;
|
|
750
750
|
break;
|
|
751
751
|
}
|
|
752
|
-
|
|
752
|
+
x || (x = h == "constructor");
|
|
753
753
|
}
|
|
754
|
-
if (g && !
|
|
754
|
+
if (g && !x) {
|
|
755
755
|
var A = e.constructor, P = t.constructor;
|
|
756
756
|
A != P && "constructor" in e && "constructor" in t && !(typeof A == "function" && A instanceof A && typeof P == "function" && P instanceof P) && (g = !1);
|
|
757
757
|
}
|
|
@@ -772,8 +772,8 @@ function ug(e, t, r, n, i, o) {
|
|
|
772
772
|
if (!(r & sg)) {
|
|
773
773
|
var p = f && ba.call(e, "__wrapped__"), m = d && ba.call(t, "__wrapped__");
|
|
774
774
|
if (p || m) {
|
|
775
|
-
var g = p ? e.value() : e,
|
|
776
|
-
return o || (o = new Ue()), i(g,
|
|
775
|
+
var g = p ? e.value() : e, x = m ? t.value() : t;
|
|
776
|
+
return o || (o = new Ue()), i(g, x, r, n, o);
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
779
|
return h ? (o || (o = new Ue()), cg(e, t, r, n, i, o)) : !1;
|
|
@@ -873,29 +873,29 @@ function Or(e, t, r) {
|
|
|
873
873
|
if (typeof e != "function")
|
|
874
874
|
throw new TypeError(Ig);
|
|
875
875
|
t = wt(t) || 0, ot(r) && (f = !!r.leading, d = "maxWait" in r, o = d ? Tg(wt(r.maxWait) || 0, t) : o, h = "trailing" in r ? !!r.trailing : h);
|
|
876
|
-
function p(
|
|
877
|
-
var
|
|
878
|
-
return n = i = void 0, u =
|
|
876
|
+
function p(M) {
|
|
877
|
+
var E = n, O = i;
|
|
878
|
+
return n = i = void 0, u = M, a = e.apply(O, E), a;
|
|
879
879
|
}
|
|
880
|
-
function m(
|
|
881
|
-
return u =
|
|
880
|
+
function m(M) {
|
|
881
|
+
return u = M, c = setTimeout(w, t), f ? p(M) : a;
|
|
882
882
|
}
|
|
883
|
-
function g(
|
|
884
|
-
var
|
|
883
|
+
function g(M) {
|
|
884
|
+
var E = M - l, O = M - u, C = t - E;
|
|
885
885
|
return d ? Og(C, o - O) : C;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
888
|
-
var
|
|
889
|
-
return l === void 0 ||
|
|
887
|
+
function x(M) {
|
|
888
|
+
var E = M - l, O = M - u;
|
|
889
|
+
return l === void 0 || E >= t || E < 0 || d && O >= o;
|
|
890
890
|
}
|
|
891
891
|
function w() {
|
|
892
|
-
var
|
|
893
|
-
if (
|
|
894
|
-
return S(
|
|
895
|
-
c = setTimeout(w, g(
|
|
892
|
+
var M = Kr();
|
|
893
|
+
if (x(M))
|
|
894
|
+
return S(M);
|
|
895
|
+
c = setTimeout(w, g(M));
|
|
896
896
|
}
|
|
897
|
-
function S(
|
|
898
|
-
return c = void 0, h && n ? p(
|
|
897
|
+
function S(M) {
|
|
898
|
+
return c = void 0, h && n ? p(M) : (n = i = void 0, a);
|
|
899
899
|
}
|
|
900
900
|
function b() {
|
|
901
901
|
c !== void 0 && clearTimeout(c), u = 0, n = l = i = c = void 0;
|
|
@@ -904,8 +904,8 @@ function Or(e, t, r) {
|
|
|
904
904
|
return c === void 0 ? a : S(Kr());
|
|
905
905
|
}
|
|
906
906
|
function P() {
|
|
907
|
-
var
|
|
908
|
-
if (n = arguments, i = this, l =
|
|
907
|
+
var M = Kr(), E = x(M);
|
|
908
|
+
if (n = arguments, i = this, l = M, E) {
|
|
909
909
|
if (c === void 0)
|
|
910
910
|
return m(l);
|
|
911
911
|
if (d)
|
|
@@ -940,12 +940,12 @@ function Ng(e) {
|
|
|
940
940
|
var t = e == null ? 0 : e.length;
|
|
941
941
|
return t ? e[t - 1] : void 0;
|
|
942
942
|
}
|
|
943
|
-
var
|
|
943
|
+
var Mg = bh(function(e, t) {
|
|
944
944
|
var r = Ng(t);
|
|
945
945
|
return Jr(r) && (r = void 0), Jr(e) ? Pg(e, Wp(t, 1, Jr), Cg(r)) : [];
|
|
946
|
-
}),
|
|
946
|
+
}), Eg = "[object Number]";
|
|
947
947
|
function yr(e) {
|
|
948
|
-
return typeof e == "number" || Ge(e) && ct(e) ==
|
|
948
|
+
return typeof e == "number" || Ge(e) && ct(e) == Eg;
|
|
949
949
|
}
|
|
950
950
|
var $g = "[object RegExp]";
|
|
951
951
|
function kg(e) {
|
|
@@ -1114,15 +1114,15 @@ const bo = "-", tv = (e) => {
|
|
|
1114
1114
|
} = e, n = t.length === 1, i = t[0], o = t.length, a = (c) => {
|
|
1115
1115
|
const l = [];
|
|
1116
1116
|
let u = 0, f = 0, d;
|
|
1117
|
-
for (let
|
|
1118
|
-
let w = c[
|
|
1117
|
+
for (let x = 0; x < c.length; x++) {
|
|
1118
|
+
let w = c[x];
|
|
1119
1119
|
if (u === 0) {
|
|
1120
|
-
if (w === i && (n || c.slice(
|
|
1121
|
-
l.push(c.slice(f,
|
|
1120
|
+
if (w === i && (n || c.slice(x, x + o) === t)) {
|
|
1121
|
+
l.push(c.slice(f, x)), f = x + o;
|
|
1122
1122
|
continue;
|
|
1123
1123
|
}
|
|
1124
1124
|
if (w === "/") {
|
|
1125
|
-
d =
|
|
1125
|
+
d = x;
|
|
1126
1126
|
continue;
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
@@ -1178,7 +1178,7 @@ const bo = "-", tv = (e) => {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
m = !1;
|
|
1180
1180
|
}
|
|
1181
|
-
const
|
|
1181
|
+
const x = sv(f).join(":"), w = d ? x + pl : x, S = w + g;
|
|
1182
1182
|
if (o.includes(S))
|
|
1183
1183
|
continue;
|
|
1184
1184
|
o.push(S);
|
|
@@ -1225,7 +1225,7 @@ function hv(e, ...t) {
|
|
|
1225
1225
|
const oe = (e) => {
|
|
1226
1226
|
const t = (r) => r[e] || [];
|
|
1227
1227
|
return t.isThemeGetter = !0, t;
|
|
1228
|
-
}, gl = /^\[(?:([a-z-]+):)?(.+)\]$/i, pv = /^\d+\/\d+$/, mv = /* @__PURE__ */ new Set(["px", "full", "screen"]), gv = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, vv = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, xv = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, yv = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, bv = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, He = (e) => St(e) || mv.has(e) || pv.test(e), tt = (e) => It(e, "length", Rv), St = (e) => !!e && !Number.isNaN(Number(e)), Zr = (e) => It(e, "number", St),
|
|
1228
|
+
}, gl = /^\[(?:([a-z-]+):)?(.+)\]$/i, pv = /^\d+\/\d+$/, mv = /* @__PURE__ */ new Set(["px", "full", "screen"]), gv = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, vv = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, xv = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, yv = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, bv = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, He = (e) => St(e) || mv.has(e) || pv.test(e), tt = (e) => It(e, "length", Rv), St = (e) => !!e && !Number.isNaN(Number(e)), Zr = (e) => It(e, "number", St), Mt = (e) => !!e && Number.isInteger(Number(e)), wv = (e) => e.endsWith("%") && St(e.slice(0, -1)), H = (e) => gl.test(e), rt = (e) => gv.test(e), Sv = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Av = (e) => It(e, Sv, vl), Cv = (e) => It(e, "position", vl), Iv = /* @__PURE__ */ new Set(["image", "url"]), Tv = (e) => It(e, Iv, Nv), Ov = (e) => It(e, "", Pv), Et = () => !0, It = (e, t, r) => {
|
|
1229
1229
|
const n = gl.exec(e);
|
|
1230
1230
|
return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : r(n[2]) : !1;
|
|
1231
1231
|
}, Rv = (e) => (
|
|
@@ -1233,13 +1233,13 @@ const oe = (e) => {
|
|
|
1233
1233
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1234
1234
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1235
1235
|
vv.test(e) && !xv.test(e)
|
|
1236
|
-
), vl = () => !1, Pv = (e) => yv.test(e), Nv = (e) => bv.test(e),
|
|
1237
|
-
const e = oe("colors"), t = oe("spacing"), r = oe("blur"), n = oe("brightness"), i = oe("borderColor"), o = oe("borderRadius"), a = oe("borderSpacing"), c = oe("borderWidth"), l = oe("contrast"), u = oe("grayscale"), f = oe("hueRotate"), d = oe("invert"), h = oe("gap"), p = oe("gradientColorStops"), m = oe("gradientColorStopPositions"), g = oe("inset"),
|
|
1236
|
+
), vl = () => !1, Pv = (e) => yv.test(e), Nv = (e) => bv.test(e), Mv = () => {
|
|
1237
|
+
const e = oe("colors"), t = oe("spacing"), r = oe("blur"), n = oe("brightness"), i = oe("borderColor"), o = oe("borderRadius"), a = oe("borderSpacing"), c = oe("borderWidth"), l = oe("contrast"), u = oe("grayscale"), f = oe("hueRotate"), d = oe("invert"), h = oe("gap"), p = oe("gradientColorStops"), m = oe("gradientColorStopPositions"), g = oe("inset"), x = oe("margin"), w = oe("opacity"), S = oe("padding"), b = oe("saturate"), A = oe("scale"), P = oe("sepia"), M = oe("skew"), E = oe("space"), O = oe("translate"), C = () => ["auto", "contain", "none"], k = () => ["auto", "hidden", "clip", "visible", "scroll"], R = () => ["auto", H, t], N = () => [H, t], L = () => ["", He, tt], _ = () => ["auto", St, H], G = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], ee = () => ["solid", "dashed", "dotted", "double", "none"], se = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], re = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], J = () => ["", "0", H], ge = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], fe = () => [St, H];
|
|
1238
1238
|
return {
|
|
1239
1239
|
cacheSize: 500,
|
|
1240
1240
|
separator: ":",
|
|
1241
1241
|
theme: {
|
|
1242
|
-
colors: [
|
|
1242
|
+
colors: [Et],
|
|
1243
1243
|
spacing: [He, tt],
|
|
1244
1244
|
blur: ["none", "", rt, H],
|
|
1245
1245
|
brightness: fe(),
|
|
@@ -1479,7 +1479,7 @@ const oe = (e) => {
|
|
|
1479
1479
|
* @see https://tailwindcss.com/docs/z-index
|
|
1480
1480
|
*/
|
|
1481
1481
|
z: [{
|
|
1482
|
-
z: ["auto",
|
|
1482
|
+
z: ["auto", Mt, H]
|
|
1483
1483
|
}],
|
|
1484
1484
|
// Flexbox and Grid
|
|
1485
1485
|
/**
|
|
@@ -1529,14 +1529,14 @@ const oe = (e) => {
|
|
|
1529
1529
|
* @see https://tailwindcss.com/docs/order
|
|
1530
1530
|
*/
|
|
1531
1531
|
order: [{
|
|
1532
|
-
order: ["first", "last", "none",
|
|
1532
|
+
order: ["first", "last", "none", Mt, H]
|
|
1533
1533
|
}],
|
|
1534
1534
|
/**
|
|
1535
1535
|
* Grid Template Columns
|
|
1536
1536
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1537
1537
|
*/
|
|
1538
1538
|
"grid-cols": [{
|
|
1539
|
-
"grid-cols": [
|
|
1539
|
+
"grid-cols": [Et]
|
|
1540
1540
|
}],
|
|
1541
1541
|
/**
|
|
1542
1542
|
* Grid Column Start / End
|
|
@@ -1544,7 +1544,7 @@ const oe = (e) => {
|
|
|
1544
1544
|
*/
|
|
1545
1545
|
"col-start-end": [{
|
|
1546
1546
|
col: ["auto", {
|
|
1547
|
-
span: ["full",
|
|
1547
|
+
span: ["full", Mt, H]
|
|
1548
1548
|
}, H]
|
|
1549
1549
|
}],
|
|
1550
1550
|
/**
|
|
@@ -1566,7 +1566,7 @@ const oe = (e) => {
|
|
|
1566
1566
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1567
1567
|
*/
|
|
1568
1568
|
"grid-rows": [{
|
|
1569
|
-
"grid-rows": [
|
|
1569
|
+
"grid-rows": [Et]
|
|
1570
1570
|
}],
|
|
1571
1571
|
/**
|
|
1572
1572
|
* Grid Row Start / End
|
|
@@ -1574,7 +1574,7 @@ const oe = (e) => {
|
|
|
1574
1574
|
*/
|
|
1575
1575
|
"row-start-end": [{
|
|
1576
1576
|
row: ["auto", {
|
|
1577
|
-
span: [
|
|
1577
|
+
span: [Mt, H]
|
|
1578
1578
|
}, H]
|
|
1579
1579
|
}],
|
|
1580
1580
|
/**
|
|
@@ -1765,70 +1765,70 @@ const oe = (e) => {
|
|
|
1765
1765
|
* @see https://tailwindcss.com/docs/margin
|
|
1766
1766
|
*/
|
|
1767
1767
|
m: [{
|
|
1768
|
-
m: [
|
|
1768
|
+
m: [x]
|
|
1769
1769
|
}],
|
|
1770
1770
|
/**
|
|
1771
1771
|
* Margin X
|
|
1772
1772
|
* @see https://tailwindcss.com/docs/margin
|
|
1773
1773
|
*/
|
|
1774
1774
|
mx: [{
|
|
1775
|
-
mx: [
|
|
1775
|
+
mx: [x]
|
|
1776
1776
|
}],
|
|
1777
1777
|
/**
|
|
1778
1778
|
* Margin Y
|
|
1779
1779
|
* @see https://tailwindcss.com/docs/margin
|
|
1780
1780
|
*/
|
|
1781
1781
|
my: [{
|
|
1782
|
-
my: [
|
|
1782
|
+
my: [x]
|
|
1783
1783
|
}],
|
|
1784
1784
|
/**
|
|
1785
1785
|
* Margin Start
|
|
1786
1786
|
* @see https://tailwindcss.com/docs/margin
|
|
1787
1787
|
*/
|
|
1788
1788
|
ms: [{
|
|
1789
|
-
ms: [
|
|
1789
|
+
ms: [x]
|
|
1790
1790
|
}],
|
|
1791
1791
|
/**
|
|
1792
1792
|
* Margin End
|
|
1793
1793
|
* @see https://tailwindcss.com/docs/margin
|
|
1794
1794
|
*/
|
|
1795
1795
|
me: [{
|
|
1796
|
-
me: [
|
|
1796
|
+
me: [x]
|
|
1797
1797
|
}],
|
|
1798
1798
|
/**
|
|
1799
1799
|
* Margin Top
|
|
1800
1800
|
* @see https://tailwindcss.com/docs/margin
|
|
1801
1801
|
*/
|
|
1802
1802
|
mt: [{
|
|
1803
|
-
mt: [
|
|
1803
|
+
mt: [x]
|
|
1804
1804
|
}],
|
|
1805
1805
|
/**
|
|
1806
1806
|
* Margin Right
|
|
1807
1807
|
* @see https://tailwindcss.com/docs/margin
|
|
1808
1808
|
*/
|
|
1809
1809
|
mr: [{
|
|
1810
|
-
mr: [
|
|
1810
|
+
mr: [x]
|
|
1811
1811
|
}],
|
|
1812
1812
|
/**
|
|
1813
1813
|
* Margin Bottom
|
|
1814
1814
|
* @see https://tailwindcss.com/docs/margin
|
|
1815
1815
|
*/
|
|
1816
1816
|
mb: [{
|
|
1817
|
-
mb: [
|
|
1817
|
+
mb: [x]
|
|
1818
1818
|
}],
|
|
1819
1819
|
/**
|
|
1820
1820
|
* Margin Left
|
|
1821
1821
|
* @see https://tailwindcss.com/docs/margin
|
|
1822
1822
|
*/
|
|
1823
1823
|
ml: [{
|
|
1824
|
-
ml: [
|
|
1824
|
+
ml: [x]
|
|
1825
1825
|
}],
|
|
1826
1826
|
/**
|
|
1827
1827
|
* Space Between X
|
|
1828
1828
|
* @see https://tailwindcss.com/docs/space
|
|
1829
1829
|
*/
|
|
1830
1830
|
"space-x": [{
|
|
1831
|
-
"space-x": [
|
|
1831
|
+
"space-x": [E]
|
|
1832
1832
|
}],
|
|
1833
1833
|
/**
|
|
1834
1834
|
* Space Between X Reverse
|
|
@@ -1840,7 +1840,7 @@ const oe = (e) => {
|
|
|
1840
1840
|
* @see https://tailwindcss.com/docs/space
|
|
1841
1841
|
*/
|
|
1842
1842
|
"space-y": [{
|
|
1843
|
-
"space-y": [
|
|
1843
|
+
"space-y": [E]
|
|
1844
1844
|
}],
|
|
1845
1845
|
/**
|
|
1846
1846
|
* Space Between Y Reverse
|
|
@@ -1929,7 +1929,7 @@ const oe = (e) => {
|
|
|
1929
1929
|
* @see https://tailwindcss.com/docs/font-family
|
|
1930
1930
|
*/
|
|
1931
1931
|
"font-family": [{
|
|
1932
|
-
font: [
|
|
1932
|
+
font: [Et]
|
|
1933
1933
|
}],
|
|
1934
1934
|
/**
|
|
1935
1935
|
* Font Variant Numeric
|
|
@@ -2614,7 +2614,7 @@ const oe = (e) => {
|
|
|
2614
2614
|
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
2615
2615
|
*/
|
|
2616
2616
|
"shadow-color": [{
|
|
2617
|
-
shadow: [
|
|
2617
|
+
shadow: [Et]
|
|
2618
2618
|
}],
|
|
2619
2619
|
/**
|
|
2620
2620
|
* Opacity
|
|
@@ -2893,7 +2893,7 @@ const oe = (e) => {
|
|
|
2893
2893
|
* @see https://tailwindcss.com/docs/rotate
|
|
2894
2894
|
*/
|
|
2895
2895
|
rotate: [{
|
|
2896
|
-
rotate: [
|
|
2896
|
+
rotate: [Mt, H]
|
|
2897
2897
|
}],
|
|
2898
2898
|
/**
|
|
2899
2899
|
* Translate X
|
|
@@ -2914,14 +2914,14 @@ const oe = (e) => {
|
|
|
2914
2914
|
* @see https://tailwindcss.com/docs/skew
|
|
2915
2915
|
*/
|
|
2916
2916
|
"skew-x": [{
|
|
2917
|
-
"skew-x": [
|
|
2917
|
+
"skew-x": [M]
|
|
2918
2918
|
}],
|
|
2919
2919
|
/**
|
|
2920
2920
|
* Skew Y
|
|
2921
2921
|
* @see https://tailwindcss.com/docs/skew
|
|
2922
2922
|
*/
|
|
2923
2923
|
"skew-y": [{
|
|
2924
|
-
"skew-y": [
|
|
2924
|
+
"skew-y": [M]
|
|
2925
2925
|
}],
|
|
2926
2926
|
/**
|
|
2927
2927
|
* Transform Origin
|
|
@@ -3262,9 +3262,9 @@ const oe = (e) => {
|
|
|
3262
3262
|
"font-size": ["leading"]
|
|
3263
3263
|
}
|
|
3264
3264
|
};
|
|
3265
|
-
},
|
|
3265
|
+
}, Ev = /* @__PURE__ */ hv(Mv);
|
|
3266
3266
|
function X(...e) {
|
|
3267
|
-
return
|
|
3267
|
+
return Ev(ao(e));
|
|
3268
3268
|
}
|
|
3269
3269
|
let Qr;
|
|
3270
3270
|
function en() {
|
|
@@ -3293,8 +3293,9 @@ const q = ur.forwardRef(
|
|
|
3293
3293
|
children: d,
|
|
3294
3294
|
asChild: h = !1,
|
|
3295
3295
|
upload: p = !1,
|
|
3296
|
-
|
|
3297
|
-
|
|
3296
|
+
initialDisplayedColor: m = void 0,
|
|
3297
|
+
...g
|
|
3298
|
+
} = e, x = bl[r];
|
|
3298
3299
|
return /* @__PURE__ */ T(jl, { children: [
|
|
3299
3300
|
/* @__PURE__ */ s(ql, { asChild: !0, children: /* @__PURE__ */ T(
|
|
3300
3301
|
h ? Is : zl,
|
|
@@ -3305,9 +3306,9 @@ const q = ur.forwardRef(
|
|
|
3305
3306
|
size: "sm",
|
|
3306
3307
|
className: X("richtext-w-[32px] richtext-h-[32px]", o),
|
|
3307
3308
|
disabled: i,
|
|
3308
|
-
...
|
|
3309
|
+
...g,
|
|
3309
3310
|
children: [
|
|
3310
|
-
|
|
3311
|
+
x && /* @__PURE__ */ s(x, { className: "richtext-size-4" }),
|
|
3311
3312
|
d
|
|
3312
3313
|
]
|
|
3313
3314
|
}
|
|
@@ -3522,7 +3523,7 @@ function Hv(e) {
|
|
|
3522
3523
|
}
|
|
3523
3524
|
];
|
|
3524
3525
|
}
|
|
3525
|
-
function
|
|
3526
|
+
function H0(e) {
|
|
3526
3527
|
return [
|
|
3527
3528
|
...zv(e),
|
|
3528
3529
|
{
|
|
@@ -3550,7 +3551,7 @@ function F0(e) {
|
|
|
3550
3551
|
}
|
|
3551
3552
|
];
|
|
3552
3553
|
}
|
|
3553
|
-
function
|
|
3554
|
+
function U0(e) {
|
|
3554
3555
|
return [
|
|
3555
3556
|
...jv(e),
|
|
3556
3557
|
{
|
|
@@ -3736,12 +3737,12 @@ function Xv(e, t) {
|
|
|
3736
3737
|
const { doc: r } = t.view.state, n = xl({ editor: t, x: e.clientX, y: e.clientY, direction: "right" });
|
|
3737
3738
|
if (!n.resultNode || n.pos === null) return [];
|
|
3738
3739
|
const i = e.clientX, o = function(f, d, h) {
|
|
3739
|
-
const p = Number.parseInt(ir(f.dom, "paddingLeft"), 10), m = Number.parseInt(ir(f.dom, "paddingRight"), 10), g = Number.parseInt(ir(f.dom, "borderLeftWidth"), 10),
|
|
3740
|
+
const p = Number.parseInt(ir(f.dom, "paddingLeft"), 10), m = Number.parseInt(ir(f.dom, "paddingRight"), 10), g = Number.parseInt(ir(f.dom, "borderLeftWidth"), 10), x = Number.parseInt(ir(f.dom, "borderLeftWidth"), 10), w = f.dom.getBoundingClientRect();
|
|
3740
3741
|
return {
|
|
3741
3742
|
left: Vv(
|
|
3742
3743
|
d,
|
|
3743
3744
|
w.left + p + g,
|
|
3744
|
-
w.right - m -
|
|
3745
|
+
w.right - m - x
|
|
3745
3746
|
),
|
|
3746
3747
|
top: h
|
|
3747
3748
|
};
|
|
@@ -3783,13 +3784,13 @@ function Yv({
|
|
|
3783
3784
|
return t.addEventListener("dragstart", (f) => {
|
|
3784
3785
|
const { view: d } = r;
|
|
3785
3786
|
if (!f.dataTransfer) return;
|
|
3786
|
-
const { empty: h, $from: p, $to: m } = d.state.selection, g = Xv(f, r),
|
|
3787
|
+
const { empty: h, $from: p, $to: m } = d.state.selection, g = Xv(f, r), x = wo(p, m, 0), w = x.some((C) => g.find((k) => k.$from === C.$from && k.$to === C.$to)), S = h || !w ? g : x;
|
|
3787
3788
|
if (S.length === 0) return;
|
|
3788
|
-
const { tr: b } = d.state, A = document.createElement("div"), P = S[0].$from.pos,
|
|
3789
|
+
const { tr: b } = d.state, A = document.createElement("div"), P = S[0].$from.pos, M = S[S.length - 1].$to.pos, E = ke.create(d.state.doc, P, M), O = E.content();
|
|
3789
3790
|
S.forEach((C) => {
|
|
3790
3791
|
const k = Gv(d.nodeDOM(C.$from.pos));
|
|
3791
3792
|
A.append(k);
|
|
3792
|
-
}), A.style.position = "absolute", A.style.top = "-10000px", document.body.append(A), f.dataTransfer.clearData(), f.dataTransfer.setDragImage(A, 0, 0), d.dragging = { slice: O, move: !0 }, b.setSelection(
|
|
3793
|
+
}), A.style.position = "absolute", A.style.top = "-10000px", document.body.append(A), f.dataTransfer.clearData(), f.dataTransfer.setDragImage(A, 0, 0), d.dragging = { slice: O, move: !0 }, b.setSelection(E), d.dispatch(b), document.addEventListener("drop", () => Ia(A), { once: !0 }), setTimeout(() => {
|
|
3793
3794
|
t && (t.style.pointerEvents = "none");
|
|
3794
3795
|
}, 0);
|
|
3795
3796
|
}), t.addEventListener("dragend", () => {
|
|
@@ -3817,8 +3818,8 @@ function Yv({
|
|
|
3817
3818
|
update(A, P) {
|
|
3818
3819
|
if (!m(t, a) || (t.draggable = !c, !g(A, P)))
|
|
3819
3820
|
return;
|
|
3820
|
-
const
|
|
3821
|
-
|
|
3821
|
+
const M = x(A);
|
|
3822
|
+
M && w(A, M);
|
|
3822
3823
|
},
|
|
3823
3824
|
destroy() {
|
|
3824
3825
|
b();
|
|
@@ -3867,16 +3868,16 @@ function Yv({
|
|
|
3867
3868
|
function g(A, P) {
|
|
3868
3869
|
return !A.state.doc.eq(P.doc) && u !== -1;
|
|
3869
3870
|
}
|
|
3870
|
-
function
|
|
3871
|
+
function x(A) {
|
|
3871
3872
|
let P = A.nodeDOM(u);
|
|
3872
3873
|
return P = Ra(A, P), P === A.dom || (P == null ? void 0 : P.nodeType) !== 1 ? null : P;
|
|
3873
3874
|
}
|
|
3874
3875
|
function w(A, P) {
|
|
3875
|
-
const
|
|
3876
|
-
if (
|
|
3876
|
+
const M = A.posAtDOM(P, 0), E = Oa(r.state.doc, M);
|
|
3877
|
+
if (E === l)
|
|
3877
3878
|
return;
|
|
3878
|
-
const O = Ta(r.state.doc,
|
|
3879
|
-
l =
|
|
3879
|
+
const O = Ta(r.state.doc, M);
|
|
3880
|
+
l = E, u = O, i == null || i({
|
|
3880
3881
|
editor: r,
|
|
3881
3882
|
node: l,
|
|
3882
3883
|
pos: u
|
|
@@ -3927,8 +3928,8 @@ function Yv({
|
|
|
3927
3928
|
const m = f.posAtDOM(p, 0), g = Oa(r.state.doc, m);
|
|
3928
3929
|
if (g === l)
|
|
3929
3930
|
return !1;
|
|
3930
|
-
const
|
|
3931
|
-
return l = g, u =
|
|
3931
|
+
const x = Ta(r.state.doc, m);
|
|
3932
|
+
return l = g, u = x, i == null || i({
|
|
3932
3933
|
editor: r,
|
|
3933
3934
|
node: l,
|
|
3934
3935
|
pos: u
|
|
@@ -3969,7 +3970,7 @@ function ro(e, t, r) {
|
|
|
3969
3970
|
};
|
|
3970
3971
|
return e.setNodeMarkup(t, n.type, c, n.marks);
|
|
3971
3972
|
}
|
|
3972
|
-
function
|
|
3973
|
+
function W0({ delta: e, types: t }) {
|
|
3973
3974
|
return ({ state: r, dispatch: n, editor: i }) => {
|
|
3974
3975
|
const { selection: o } = r;
|
|
3975
3976
|
let { tr: a } = r;
|
|
@@ -3999,7 +4000,7 @@ function Zv(e) {
|
|
|
3999
4000
|
function g() {
|
|
4000
4001
|
e.editor.chain().focus().setNodeSelection(o).run(), document.execCommand("copy");
|
|
4001
4002
|
}
|
|
4002
|
-
function
|
|
4003
|
+
function x() {
|
|
4003
4004
|
e.editor.commands.setNodeSelection(o);
|
|
4004
4005
|
const { $anchor: R } = e.editor.state.selection, N = R.node(1) || e.editor.state.selection.node;
|
|
4005
4006
|
e.editor.chain().setMeta("hideDragHandle", !0).insertContentAt(o + ((n == null ? void 0 : n.nodeSize) || 0), N.toJSON()).run();
|
|
@@ -4021,7 +4022,7 @@ function Zv(e) {
|
|
|
4021
4022
|
function P(R) {
|
|
4022
4023
|
R.node && i(R.node), a(R.pos);
|
|
4023
4024
|
}
|
|
4024
|
-
function
|
|
4025
|
+
function M() {
|
|
4025
4026
|
var R;
|
|
4026
4027
|
if (o !== -1) {
|
|
4027
4028
|
const N = (n == null ? void 0 : n.nodeSize) || 0, L = o + N, _ = (n == null ? void 0 : n.type.name) === "paragraph" && ((R = n == null ? void 0 : n.content) == null ? void 0 : R.size) === 0, G = _ ? o + 2 : L + 2;
|
|
@@ -4039,7 +4040,7 @@ function Zv(e) {
|
|
|
4039
4040
|
var R;
|
|
4040
4041
|
(R = e.editor) != null && R.isDestroyed && l.current && (e.editor.unregisterPlugin(t), l.current = null);
|
|
4041
4042
|
}, [(O = e.editor) == null ? void 0 : O.isDestroyed]);
|
|
4042
|
-
const
|
|
4043
|
+
const E = (R) => {
|
|
4043
4044
|
e != null && e.disabled || f(R);
|
|
4044
4045
|
};
|
|
4045
4046
|
return /* @__PURE__ */ s(
|
|
@@ -4056,7 +4057,7 @@ function Zv(e) {
|
|
|
4056
4057
|
{
|
|
4057
4058
|
className: "!richtext-size-7 richtext-cursor-grab",
|
|
4058
4059
|
disabled: e == null ? void 0 : e.disabled,
|
|
4059
|
-
onClick:
|
|
4060
|
+
onClick: M,
|
|
4060
4061
|
size: "icon",
|
|
4061
4062
|
type: "button",
|
|
4062
4063
|
variant: "ghost",
|
|
@@ -4070,9 +4071,9 @@ function Zv(e) {
|
|
|
4070
4071
|
}
|
|
4071
4072
|
),
|
|
4072
4073
|
/* @__PURE__ */ T(
|
|
4073
|
-
|
|
4074
|
+
x1,
|
|
4074
4075
|
{
|
|
4075
|
-
onOpenChange:
|
|
4076
|
+
onOpenChange: E,
|
|
4076
4077
|
open: u,
|
|
4077
4078
|
children: [
|
|
4078
4079
|
/* @__PURE__ */ T("div", { className: "richtext-relative richtext-flex richtext-flex-col", children: [
|
|
@@ -4106,7 +4107,7 @@ function Zv(e) {
|
|
|
4106
4107
|
),
|
|
4107
4108
|
/* @__PURE__ */ s(Ro, { children: r("editor.draghandle.tooltip") })
|
|
4108
4109
|
] }),
|
|
4109
|
-
/* @__PURE__ */ s(
|
|
4110
|
+
/* @__PURE__ */ s(y1, { className: "richtext-absolute richtext-left-0 richtext-top-0 richtext-z-0 richtext-size-[28px]" })
|
|
4110
4111
|
] }),
|
|
4111
4112
|
/* @__PURE__ */ T(
|
|
4112
4113
|
Nl,
|
|
@@ -4153,20 +4154,20 @@ function Zv(e) {
|
|
|
4153
4154
|
$e,
|
|
4154
4155
|
{
|
|
4155
4156
|
className: "richtext-flex richtext-gap-3",
|
|
4156
|
-
onClick:
|
|
4157
|
+
onClick: x,
|
|
4157
4158
|
children: [
|
|
4158
4159
|
/* @__PURE__ */ s(xe, { name: "Copy" }),
|
|
4159
4160
|
/* @__PURE__ */ s("span", { children: r("editor.copy") })
|
|
4160
4161
|
]
|
|
4161
4162
|
}
|
|
4162
4163
|
),
|
|
4163
|
-
d || h ? /* @__PURE__ */ s(
|
|
4164
|
+
d || h ? /* @__PURE__ */ s(Ml, {}) : null,
|
|
4164
4165
|
d ? /* @__PURE__ */ T($a, { children: [
|
|
4165
4166
|
/* @__PURE__ */ T(no, { className: "richtext-flex richtext-gap-3", children: [
|
|
4166
4167
|
/* @__PURE__ */ s(xe, { name: "AlignCenter" }),
|
|
4167
4168
|
/* @__PURE__ */ s("span", { children: r("editor.textalign.tooltip") })
|
|
4168
4169
|
] }),
|
|
4169
|
-
/* @__PURE__ */ s(
|
|
4170
|
+
/* @__PURE__ */ s(Ea, { children: /* @__PURE__ */ T(io, { children: [
|
|
4170
4171
|
/* @__PURE__ */ T(
|
|
4171
4172
|
$e,
|
|
4172
4173
|
{
|
|
@@ -4207,7 +4208,7 @@ function Zv(e) {
|
|
|
4207
4208
|
/* @__PURE__ */ s(xe, { name: "IndentIncrease" }),
|
|
4208
4209
|
/* @__PURE__ */ s("span", { children: r("editor.indent") })
|
|
4209
4210
|
] }),
|
|
4210
|
-
/* @__PURE__ */ s(
|
|
4211
|
+
/* @__PURE__ */ s(Ea, { children: /* @__PURE__ */ T(io, { children: [
|
|
4211
4212
|
/* @__PURE__ */ T(
|
|
4212
4213
|
$e,
|
|
4213
4214
|
{
|
|
@@ -4507,6 +4508,15 @@ function Sx() {
|
|
|
4507
4508
|
return /* @__PURE__ */ s("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ s("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "m3 21l7.548-7.548M21 3l-7.548 7.548m0 0L8 3H3l7.548 10.452m2.904-2.904L21 21h-5l-5.452-7.548", color: "currentColor" }) });
|
|
4508
4509
|
}
|
|
4509
4510
|
function Ax() {
|
|
4511
|
+
return /* @__PURE__ */ s("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ s(
|
|
4512
|
+
"path",
|
|
4513
|
+
{
|
|
4514
|
+
fill: "currentColor",
|
|
4515
|
+
d: "M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6l1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6l-1.4-1.4z"
|
|
4516
|
+
}
|
|
4517
|
+
) });
|
|
4518
|
+
}
|
|
4519
|
+
function Cx() {
|
|
4510
4520
|
return /* @__PURE__ */ s(
|
|
4511
4521
|
"svg",
|
|
4512
4522
|
{
|
|
@@ -4552,8 +4562,8 @@ const bl = {
|
|
|
4552
4562
|
Type: _d,
|
|
4553
4563
|
IndentIncrease: kd,
|
|
4554
4564
|
IndentDecrease: $d,
|
|
4555
|
-
List:
|
|
4556
|
-
ListOrdered:
|
|
4565
|
+
List: Ed,
|
|
4566
|
+
ListOrdered: Md,
|
|
4557
4567
|
ListTodo: Nd,
|
|
4558
4568
|
Link: Pd,
|
|
4559
4569
|
ImageUp: Rd,
|
|
@@ -4606,7 +4616,7 @@ const bl = {
|
|
|
4606
4616
|
KatexIcon: Yu,
|
|
4607
4617
|
ExportPdf: gx,
|
|
4608
4618
|
ExportWord: vx,
|
|
4609
|
-
ImportWord:
|
|
4619
|
+
ImportWord: Cx,
|
|
4610
4620
|
ColumnAddLeft: fx,
|
|
4611
4621
|
ColumnAddRight: hx,
|
|
4612
4622
|
BookMarked: Xu,
|
|
@@ -4624,12 +4634,13 @@ const bl = {
|
|
|
4624
4634
|
Crop: qu,
|
|
4625
4635
|
Mermaid: bx,
|
|
4626
4636
|
Twitter: Sx,
|
|
4637
|
+
CodeView: Ax,
|
|
4627
4638
|
FlipX: ju,
|
|
4628
4639
|
FlipY: zu,
|
|
4629
4640
|
PencilRuler: Bu,
|
|
4630
4641
|
WrapText: Du
|
|
4631
4642
|
};
|
|
4632
|
-
function
|
|
4643
|
+
function Ix({ fill: e }) {
|
|
4633
4644
|
return /* @__PURE__ */ s(
|
|
4634
4645
|
"svg",
|
|
4635
4646
|
{
|
|
@@ -4681,7 +4692,7 @@ function Cx({ fill: e }) {
|
|
|
4681
4692
|
}
|
|
4682
4693
|
);
|
|
4683
4694
|
}
|
|
4684
|
-
function
|
|
4695
|
+
function Tx(e) {
|
|
4685
4696
|
const [t, r] = Y(void 0);
|
|
4686
4697
|
function n(a) {
|
|
4687
4698
|
var c;
|
|
@@ -4706,11 +4717,11 @@ function Ix(e) {
|
|
|
4706
4717
|
action: i,
|
|
4707
4718
|
tooltipOptions: e == null ? void 0 : e.tooltipOptions,
|
|
4708
4719
|
shortcutKeys: e == null ? void 0 : e.shortcutKeys,
|
|
4709
|
-
children: /* @__PURE__ */ s("span", { className: "richtext-flex richtext-items-center richtext-justify-center richtext-text-sm", children: /* @__PURE__ */ s(
|
|
4720
|
+
children: /* @__PURE__ */ s("span", { className: "richtext-flex richtext-items-center richtext-justify-center richtext-text-sm", children: /* @__PURE__ */ s(Ix, { fill: t }) })
|
|
4710
4721
|
}
|
|
4711
4722
|
),
|
|
4712
4723
|
/* @__PURE__ */ s(
|
|
4713
|
-
|
|
4724
|
+
p0,
|
|
4714
4725
|
{
|
|
4715
4726
|
selectedColor: t,
|
|
4716
4727
|
setSelectedColor: o,
|
|
@@ -4722,8 +4733,8 @@ function Ix(e) {
|
|
|
4722
4733
|
)
|
|
4723
4734
|
] });
|
|
4724
4735
|
}
|
|
4725
|
-
function
|
|
4726
|
-
var
|
|
4736
|
+
function Ox({ editor: e, disabled: t, actions: r }) {
|
|
4737
|
+
var x, w, S, b, A, P, M, E, O, C, k, R, N, L, _, G, ee, se;
|
|
4727
4738
|
const n = ({ editor: re }) => uf(re.view.state, "table"), { t: i } = me();
|
|
4728
4739
|
function o() {
|
|
4729
4740
|
e.chain().focus().addColumnBefore().run();
|
|
@@ -4789,7 +4800,7 @@ function Tx({ editor: e, disabled: t, actions: r }) {
|
|
|
4789
4800
|
q,
|
|
4790
4801
|
{
|
|
4791
4802
|
action: o,
|
|
4792
|
-
disabled: !((w = (
|
|
4803
|
+
disabled: !((w = (x = e == null ? void 0 : e.can()) == null ? void 0 : x.addColumnBefore) != null && w.call(x)),
|
|
4793
4804
|
icon: "BetweenHorizonalEnd",
|
|
4794
4805
|
tooltip: i("editor.table.menu.insertColumnBefore"),
|
|
4795
4806
|
"tooltip-options": {
|
|
@@ -4832,7 +4843,7 @@ function Tx({ editor: e, disabled: t, actions: r }) {
|
|
|
4832
4843
|
q,
|
|
4833
4844
|
{
|
|
4834
4845
|
action: l,
|
|
4835
|
-
disabled: !((
|
|
4846
|
+
disabled: !((E = e == null ? void 0 : (M = e.can()).addRowBefore) != null && E.call(M)),
|
|
4836
4847
|
icon: "BetweenVerticalEnd",
|
|
4837
4848
|
tooltip: i("editor.table.menu.insertRowAbove"),
|
|
4838
4849
|
"tooltip-options": {
|
|
@@ -4903,7 +4914,7 @@ function Tx({ editor: e, disabled: t, actions: r }) {
|
|
|
4903
4914
|
}
|
|
4904
4915
|
),
|
|
4905
4916
|
/* @__PURE__ */ s(
|
|
4906
|
-
|
|
4917
|
+
Tx,
|
|
4907
4918
|
{
|
|
4908
4919
|
action: m,
|
|
4909
4920
|
editor: e,
|
|
@@ -4936,7 +4947,7 @@ function Tx({ editor: e, disabled: t, actions: r }) {
|
|
|
4936
4947
|
}
|
|
4937
4948
|
);
|
|
4938
4949
|
}
|
|
4939
|
-
function
|
|
4950
|
+
function Rx(e) {
|
|
4940
4951
|
const { t } = me(), [r, n] = Y({
|
|
4941
4952
|
text: "",
|
|
4942
4953
|
link: ""
|
|
@@ -4995,7 +5006,7 @@ function Ox(e) {
|
|
|
4995
5006
|
/* @__PURE__ */ T("div", { className: "richtext-flex richtext-items-center richtext-space-x-2", children: [
|
|
4996
5007
|
/* @__PURE__ */ s(it, { children: t("editor.link.dialog.openInNewTab") }),
|
|
4997
5008
|
/* @__PURE__ */ s(
|
|
4998
|
-
|
|
5009
|
+
El,
|
|
4999
5010
|
{
|
|
5000
5011
|
checked: i,
|
|
5001
5012
|
onCheckedChange: (c) => {
|
|
@@ -5016,7 +5027,7 @@ function Ox(e) {
|
|
|
5016
5027
|
}
|
|
5017
5028
|
) });
|
|
5018
5029
|
}
|
|
5019
|
-
function
|
|
5030
|
+
function Px(e) {
|
|
5020
5031
|
const { t } = me();
|
|
5021
5032
|
return /* @__PURE__ */ T("div", { className: "richtext-flex richtext-items-center richtext-gap-2 richtext-p-2 richtext-bg-white !richtext-border richtext-rounded-lg richtext-shadow-sm dark:richtext-bg-black richtext-border-neutral-200 dark:richtext-border-neutral-800", children: [
|
|
5022
5033
|
/* @__PURE__ */ s(
|
|
@@ -5059,7 +5070,7 @@ function Rx(e) {
|
|
|
5059
5070
|
] })
|
|
5060
5071
|
] });
|
|
5061
5072
|
}
|
|
5062
|
-
function
|
|
5073
|
+
function Nx({ editor: e, disabled: t }) {
|
|
5063
5074
|
const [r, n] = Y(!1), i = ye(() => {
|
|
5064
5075
|
const { href: l } = e.getAttributes("link");
|
|
5065
5076
|
return l;
|
|
@@ -5096,8 +5107,8 @@ function Px({ editor: e, disabled: t }) {
|
|
|
5096
5107
|
n(!1);
|
|
5097
5108
|
}
|
|
5098
5109
|
},
|
|
5099
|
-
children: t ? /* @__PURE__ */ s(de, {}) : /* @__PURE__ */ s(de, { children: r ? /* @__PURE__ */ s(
|
|
5100
|
-
|
|
5110
|
+
children: t ? /* @__PURE__ */ s(de, {}) : /* @__PURE__ */ s(de, { children: r ? /* @__PURE__ */ s(Rx, { onSetLink: a, editor: e }) : /* @__PURE__ */ s(
|
|
5111
|
+
Px,
|
|
5101
5112
|
{
|
|
5102
5113
|
editor: e,
|
|
5103
5114
|
onClear: c,
|
|
@@ -5110,7 +5121,7 @@ function Px({ editor: e, disabled: t }) {
|
|
|
5110
5121
|
}
|
|
5111
5122
|
) });
|
|
5112
5123
|
}
|
|
5113
|
-
const
|
|
5124
|
+
const Mx = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, wl = Vt.create({
|
|
5114
5125
|
name: "image",
|
|
5115
5126
|
addOptions() {
|
|
5116
5127
|
return {
|
|
@@ -5160,7 +5171,7 @@ const Nx = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, wl = Vt.c
|
|
|
5160
5171
|
addInputRules() {
|
|
5161
5172
|
return [
|
|
5162
5173
|
$s({
|
|
5163
|
-
find:
|
|
5174
|
+
find: Mx,
|
|
5164
5175
|
type: this.type,
|
|
5165
5176
|
getAttributes: (e) => {
|
|
5166
5177
|
const [, , t, r, n] = e;
|
|
@@ -5247,7 +5258,7 @@ const Yt = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
|
5247
5258
|
}
|
|
5248
5259
|
));
|
|
5249
5260
|
Yt.displayName = Re.Title.displayName;
|
|
5250
|
-
const
|
|
5261
|
+
const $x = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
5251
5262
|
Re.Description,
|
|
5252
5263
|
{
|
|
5253
5264
|
ref: r,
|
|
@@ -5255,7 +5266,7 @@ const Mx = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
|
5255
5266
|
...t
|
|
5256
5267
|
}
|
|
5257
5268
|
));
|
|
5258
|
-
|
|
5269
|
+
$x.displayName = Re.Description.displayName;
|
|
5259
5270
|
const Pa = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Na = ao, Nr = (e, t) => (r) => {
|
|
5260
5271
|
var n;
|
|
5261
5272
|
if ((t == null ? void 0 : t.variants) == null) return Na(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
@@ -5270,14 +5281,14 @@ const Pa = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Na = ao, N
|
|
|
5270
5281
|
}, {}), l = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((u, f) => {
|
|
5271
5282
|
let { class: d, className: h, ...p } = f;
|
|
5272
5283
|
return Object.entries(p).every((m) => {
|
|
5273
|
-
let [g,
|
|
5274
|
-
return Array.isArray(
|
|
5284
|
+
let [g, x] = m;
|
|
5285
|
+
return Array.isArray(x) ? x.includes({
|
|
5275
5286
|
...o,
|
|
5276
5287
|
...c
|
|
5277
5288
|
}[g]) : {
|
|
5278
5289
|
...o,
|
|
5279
5290
|
...c
|
|
5280
|
-
}[g] ===
|
|
5291
|
+
}[g] === x;
|
|
5281
5292
|
}) ? [
|
|
5282
5293
|
...u,
|
|
5283
5294
|
d,
|
|
@@ -5285,7 +5296,7 @@ const Pa = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Na = ao, N
|
|
|
5285
5296
|
] : u;
|
|
5286
5297
|
}, []);
|
|
5287
5298
|
return Na(e, a, l, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
5288
|
-
},
|
|
5299
|
+
}, kx = Nr(
|
|
5289
5300
|
"richtext-inline-flex richtext-items-center richtext-justify-center richtext-whitespace-nowrap richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-2 disabled:richtext-pointer-events-none disabled:richtext-opacity-50",
|
|
5290
5301
|
{
|
|
5291
5302
|
variants: {
|
|
@@ -5313,26 +5324,26 @@ const Pa = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Na = ao, N
|
|
|
5313
5324
|
({ className: e, variant: t, size: r, asChild: n = !1, ...i }, o) => /* @__PURE__ */ s(
|
|
5314
5325
|
n ? Is : "button",
|
|
5315
5326
|
{
|
|
5316
|
-
className: X(
|
|
5327
|
+
className: X(kx({ variant: t, size: r, className: e })),
|
|
5317
5328
|
ref: o,
|
|
5318
5329
|
...i
|
|
5319
5330
|
}
|
|
5320
5331
|
)
|
|
5321
5332
|
);
|
|
5322
5333
|
be.displayName = "Button";
|
|
5323
|
-
function
|
|
5334
|
+
function G0(e) {
|
|
5324
5335
|
return e.replace(/^.*\/|\..+$/g, "");
|
|
5325
5336
|
}
|
|
5326
|
-
function
|
|
5337
|
+
function V0(e) {
|
|
5327
5338
|
return e.split(".").pop();
|
|
5328
5339
|
}
|
|
5329
|
-
function
|
|
5340
|
+
function X0(e) {
|
|
5330
5341
|
return e < 1024 ? `${e} Byte` : e < 1024 * 1024 ? `${(e / 1024).toFixed(2)} KB` : `${(e / 1024 / 1024).toFixed(2)} MB`;
|
|
5331
5342
|
}
|
|
5332
|
-
function
|
|
5343
|
+
function Y0(e) {
|
|
5333
5344
|
return e ? e === "application/pdf" ? "pdf" : e.startsWith("application/") && [".document", "word"].some((t) => e.includes(t)) ? "word" : e.startsWith("application/") && ["presentation"].some((t) => e.includes(t)) ? "excel" : e.startsWith("application/") && ["sheet"].some((t) => e.includes(t)) ? "ppt" : e.startsWith("image") ? "image" : e.startsWith("audio") ? "audio" : e.startsWith("video") ? "video" : "file" : "file";
|
|
5334
5345
|
}
|
|
5335
|
-
function
|
|
5346
|
+
function _x(e) {
|
|
5336
5347
|
return new Promise((t) => {
|
|
5337
5348
|
const r = new FileReader();
|
|
5338
5349
|
r.addEventListener(
|
|
@@ -5347,7 +5358,7 @@ function kx(e) {
|
|
|
5347
5358
|
), r.readAsDataURL(e);
|
|
5348
5359
|
});
|
|
5349
5360
|
}
|
|
5350
|
-
function
|
|
5361
|
+
function Lx(e, t) {
|
|
5351
5362
|
const r = e.split(","), n = r[0].match(/:(.*?);/)[1], i = atob(r[r.length - 1]);
|
|
5352
5363
|
let o = i.length;
|
|
5353
5364
|
const a = new Uint8Array(o);
|
|
@@ -5355,7 +5366,7 @@ function _x(e, t) {
|
|
|
5355
5366
|
a[o] = i.charCodeAt(o);
|
|
5356
5367
|
return new File([a], t, { type: n });
|
|
5357
5368
|
}
|
|
5358
|
-
function
|
|
5369
|
+
function Dx({ editor: e, imageInline: t, onClose: r }) {
|
|
5359
5370
|
const { t: n } = me(), [i, o] = Y(!1), a = ur.useRef(null), [c, l] = ur.useState(), [u, f] = ur.useState(""), d = We(null), [h, p] = Y({
|
|
5360
5371
|
src: "",
|
|
5361
5372
|
file: null
|
|
@@ -5367,29 +5378,29 @@ function Lx({ editor: e, imageInline: t, onClose: r }) {
|
|
|
5367
5378
|
}
|
|
5368
5379
|
}
|
|
5369
5380
|
function g(b, A) {
|
|
5370
|
-
const P = document.createElement("canvas"),
|
|
5371
|
-
P.width = A.width *
|
|
5381
|
+
const P = document.createElement("canvas"), M = b.naturalWidth / b.width, E = b.naturalHeight / b.height;
|
|
5382
|
+
P.width = A.width * M, P.height = A.height * E;
|
|
5372
5383
|
const O = P.getContext("2d");
|
|
5373
5384
|
return O && (O.imageSmoothingEnabled = !1, O.drawImage(
|
|
5374
5385
|
b,
|
|
5375
|
-
A.x *
|
|
5376
|
-
A.y *
|
|
5377
|
-
A.width *
|
|
5378
|
-
A.height *
|
|
5386
|
+
A.x * M,
|
|
5387
|
+
A.y * E,
|
|
5388
|
+
A.width * M,
|
|
5389
|
+
A.height * E,
|
|
5379
5390
|
0,
|
|
5380
5391
|
0,
|
|
5381
|
-
A.width *
|
|
5382
|
-
A.height *
|
|
5392
|
+
A.width * M,
|
|
5393
|
+
A.height * E
|
|
5383
5394
|
)), P.toDataURL("image/png", 1);
|
|
5384
5395
|
}
|
|
5385
|
-
async function
|
|
5396
|
+
async function x() {
|
|
5386
5397
|
var b, A;
|
|
5387
5398
|
try {
|
|
5388
|
-
const P =
|
|
5399
|
+
const P = Lx(u, ((b = h == null ? void 0 : h.file) == null ? void 0 : b.name) || "image.png"), M = (A = e.extensionManager.extensions.find(
|
|
5389
5400
|
(O) => O.name === qt.name
|
|
5390
5401
|
)) == null ? void 0 : A.options;
|
|
5391
|
-
let
|
|
5392
|
-
|
|
5402
|
+
let E = "";
|
|
5403
|
+
M.upload ? E = await M.upload(P) : E = URL.createObjectURL(P), e.chain().focus().setImageInline({ src: E, inline: t }).run(), o(!1), p({
|
|
5393
5404
|
src: "",
|
|
5394
5405
|
file: null
|
|
5395
5406
|
}), r();
|
|
@@ -5402,13 +5413,13 @@ function Lx({ editor: e, imageInline: t, onClose: r }) {
|
|
|
5402
5413
|
b.preventDefault(), (A = d.current) == null || A.click();
|
|
5403
5414
|
}
|
|
5404
5415
|
const S = async (b) => {
|
|
5405
|
-
var
|
|
5406
|
-
const A = (
|
|
5416
|
+
var E;
|
|
5417
|
+
const A = (E = b == null ? void 0 : b.target) == null ? void 0 : E.files;
|
|
5407
5418
|
if (!e || e.isDestroyed || A.length === 0)
|
|
5408
5419
|
return;
|
|
5409
|
-
const P = A[0],
|
|
5420
|
+
const P = A[0], M = await _x(P);
|
|
5410
5421
|
o(!0), p({
|
|
5411
|
-
src:
|
|
5422
|
+
src: M.src,
|
|
5412
5423
|
file: P
|
|
5413
5424
|
});
|
|
5414
5425
|
};
|
|
@@ -5469,7 +5480,7 @@ function Lx({ editor: e, imageInline: t, onClose: r }) {
|
|
|
5469
5480
|
be,
|
|
5470
5481
|
{
|
|
5471
5482
|
className: "richtext-w-fit",
|
|
5472
|
-
onClick:
|
|
5483
|
+
onClick: x,
|
|
5473
5484
|
children: [
|
|
5474
5485
|
n("editor.imageUpload.crop"),
|
|
5475
5486
|
/* @__PURE__ */ s(
|
|
@@ -5500,7 +5511,7 @@ function Lx({ editor: e, imageInline: t, onClose: r }) {
|
|
|
5500
5511
|
)
|
|
5501
5512
|
] });
|
|
5502
5513
|
}
|
|
5503
|
-
function
|
|
5514
|
+
function Mr(e) {
|
|
5504
5515
|
function t() {
|
|
5505
5516
|
const o = We(e), a = te(() => o.current, []), c = We(/* @__PURE__ */ new Set()), l = te((f) => {
|
|
5506
5517
|
o.current = { ...o.current, ...f }, c.current.forEach((d) => d());
|
|
@@ -5530,15 +5541,15 @@ function Er(e) {
|
|
|
5530
5541
|
useStore: i
|
|
5531
5542
|
};
|
|
5532
5543
|
}
|
|
5533
|
-
|
|
5544
|
+
Mr({
|
|
5534
5545
|
value: !1
|
|
5535
5546
|
});
|
|
5536
|
-
|
|
5547
|
+
Mr({
|
|
5537
5548
|
value: !1
|
|
5538
5549
|
});
|
|
5539
|
-
const { Provider:
|
|
5550
|
+
const { Provider: Bx, useStore: Cl } = Mr({
|
|
5540
5551
|
value: !1
|
|
5541
|
-
}), { Provider:
|
|
5552
|
+
}), { Provider: zx, useStore: Il } = Mr({
|
|
5542
5553
|
value: "light"
|
|
5543
5554
|
});
|
|
5544
5555
|
ku("0");
|
|
@@ -5560,22 +5571,22 @@ const ut = {
|
|
|
5560
5571
|
EDIT: (e) => `EDIT-${e}`,
|
|
5561
5572
|
UPDATE_THEME: (e) => `UPDATE_THEME-${e}`,
|
|
5562
5573
|
SEARCH_REPLCE: "SEARCH_REPLACE"
|
|
5563
|
-
},
|
|
5574
|
+
}, jx = {
|
|
5564
5575
|
setOpen: (e, t) => {
|
|
5565
5576
|
Co(ut.UPLOAD_IMAGE(e), t);
|
|
5566
5577
|
}
|
|
5567
5578
|
};
|
|
5568
|
-
function
|
|
5579
|
+
function qx(e) {
|
|
5569
5580
|
var m;
|
|
5570
5581
|
const { t } = me(), [r, n] = Y(!1), i = (g) => {
|
|
5571
5582
|
n(g.detail);
|
|
5572
5583
|
}, [o, a] = Y(""), c = We(null), [l, u] = Y(((m = e.editor.extensionManager.extensions.find(
|
|
5573
5584
|
(g) => g.name === qt.name
|
|
5574
5585
|
)) == null ? void 0 : m.options.defaultInline) || !1), f = ye(() => {
|
|
5575
|
-
var
|
|
5576
|
-
return (
|
|
5586
|
+
var x;
|
|
5587
|
+
return (x = e.editor.extensionManager.extensions.find(
|
|
5577
5588
|
(w) => w.name === qt.name
|
|
5578
|
-
)) == null ? void 0 :
|
|
5589
|
+
)) == null ? void 0 : x.options;
|
|
5579
5590
|
}, [e.editor]);
|
|
5580
5591
|
le(() => {
|
|
5581
5592
|
const g = br(ut.UPLOAD_IMAGE(e.editor.id), i);
|
|
@@ -5585,10 +5596,10 @@ function jx(e) {
|
|
|
5585
5596
|
}, []);
|
|
5586
5597
|
async function d(g) {
|
|
5587
5598
|
var b;
|
|
5588
|
-
const
|
|
5589
|
-
if (!e.editor || e.editor.isDestroyed ||
|
|
5599
|
+
const x = (b = g == null ? void 0 : g.target) == null ? void 0 : b.files;
|
|
5600
|
+
if (!e.editor || e.editor.isDestroyed || x.length === 0)
|
|
5590
5601
|
return;
|
|
5591
|
-
const w =
|
|
5602
|
+
const w = x[0];
|
|
5592
5603
|
let S = "";
|
|
5593
5604
|
f.upload ? S = await f.upload(w) : S = URL.createObjectURL(w), e.editor.chain().focus().setImageInline({ src: S, inline: l }).run(), n(!1), u(!1);
|
|
5594
5605
|
}
|
|
@@ -5596,8 +5607,8 @@ function jx(e) {
|
|
|
5596
5607
|
g.preventDefault(), g.stopPropagation(), e.editor.chain().focus().setImageInline({ src: o, inline: l }).run(), n(!1), u(!1), a("");
|
|
5597
5608
|
}
|
|
5598
5609
|
function p(g) {
|
|
5599
|
-
var
|
|
5600
|
-
g.preventDefault(), (
|
|
5610
|
+
var x;
|
|
5611
|
+
g.preventDefault(), (x = c.current) == null || x.click();
|
|
5601
5612
|
}
|
|
5602
5613
|
return /* @__PURE__ */ T(
|
|
5603
5614
|
Rr,
|
|
@@ -5649,11 +5660,11 @@ function jx(e) {
|
|
|
5649
5660
|
}
|
|
5650
5661
|
),
|
|
5651
5662
|
/* @__PURE__ */ s(
|
|
5652
|
-
|
|
5663
|
+
Dx,
|
|
5653
5664
|
{
|
|
5654
5665
|
editor: e.editor,
|
|
5655
5666
|
imageInline: l,
|
|
5656
|
-
onClose: () =>
|
|
5667
|
+
onClose: () => jx.setOpen(e.editor.id, !1)
|
|
5657
5668
|
}
|
|
5658
5669
|
)
|
|
5659
5670
|
] }),
|
|
@@ -5699,8 +5710,8 @@ const or = {
|
|
|
5699
5710
|
BOTTOM_LEFT: "bl",
|
|
5700
5711
|
BOTTOM_RIGHT: "br"
|
|
5701
5712
|
};
|
|
5702
|
-
function
|
|
5703
|
-
var
|
|
5713
|
+
function Fx(e) {
|
|
5714
|
+
var E, O;
|
|
5704
5715
|
const [t, r] = Y({
|
|
5705
5716
|
width: pr,
|
|
5706
5717
|
height: pr
|
|
@@ -5718,7 +5729,7 @@ function qx(e) {
|
|
|
5718
5729
|
w: 0,
|
|
5719
5730
|
h: 0,
|
|
5720
5731
|
dir: ""
|
|
5721
|
-
}), { align: f, inline: d } = (
|
|
5732
|
+
}), { align: f, inline: d } = (E = e == null ? void 0 : e.node) == null ? void 0 : E.attrs, h = ye(() => {
|
|
5722
5733
|
var J;
|
|
5723
5734
|
const { src: C, alt: k, width: R, height: N, flipX: L, flipY: _ } = (J = e == null ? void 0 : e.node) == null ? void 0 : J.attrs, G = yr(R) ? `${R}px` : R, ee = yr(N) ? `${N}px` : N, se = [];
|
|
5724
5735
|
L && se.push("rotateX(180deg)"), _ && se.push("rotateY(180deg)");
|
|
@@ -5748,7 +5759,7 @@ function qx(e) {
|
|
|
5748
5759
|
const { editor: C, getPos: k } = e;
|
|
5749
5760
|
C.commands.setNodeSelection(k());
|
|
5750
5761
|
}
|
|
5751
|
-
const
|
|
5762
|
+
const x = te(
|
|
5752
5763
|
jt(() => {
|
|
5753
5764
|
const { editor: C } = e, { width: k } = getComputedStyle(C.view.dom);
|
|
5754
5765
|
r((R) => ({
|
|
@@ -5801,10 +5812,10 @@ function qx(e) {
|
|
|
5801
5812
|
le(() => (a ? A() : P(), () => {
|
|
5802
5813
|
P();
|
|
5803
5814
|
}), [a, A, P]);
|
|
5804
|
-
const
|
|
5805
|
-
return le(() => (
|
|
5806
|
-
|
|
5807
|
-
}), [e.editor.view.dom,
|
|
5815
|
+
const M = ye(() => new ResizeObserver(() => x()), [x]);
|
|
5816
|
+
return le(() => (M.observe(e.editor.view.dom), () => {
|
|
5817
|
+
M.disconnect();
|
|
5818
|
+
}), [e.editor.view.dom, M]), /* @__PURE__ */ s(
|
|
5808
5819
|
co,
|
|
5809
5820
|
{
|
|
5810
5821
|
as: d ? "span" : "div",
|
|
@@ -5845,7 +5856,7 @@ function qx(e) {
|
|
|
5845
5856
|
);
|
|
5846
5857
|
}
|
|
5847
5858
|
const At = new lo("upload-image");
|
|
5848
|
-
function
|
|
5859
|
+
function Hx() {
|
|
5849
5860
|
return new uo({
|
|
5850
5861
|
key: At,
|
|
5851
5862
|
state: {
|
|
@@ -5857,7 +5868,7 @@ function Fx() {
|
|
|
5857
5868
|
const r = e.getMeta(At);
|
|
5858
5869
|
if (r != null && r.add)
|
|
5859
5870
|
for (const { id: n, pos: i, src: o } of r.add) {
|
|
5860
|
-
const a =
|
|
5871
|
+
const a = Ux(o), c = df.widget(i, a, { id: n });
|
|
5861
5872
|
t = t.add(e.doc, [c]);
|
|
5862
5873
|
}
|
|
5863
5874
|
else if (r != null && r.remove)
|
|
@@ -5873,18 +5884,18 @@ function Fx() {
|
|
|
5873
5884
|
}
|
|
5874
5885
|
});
|
|
5875
5886
|
}
|
|
5876
|
-
function
|
|
5887
|
+
function Ux(e) {
|
|
5877
5888
|
const t = document.createElement("div"), r = document.createElement("img");
|
|
5878
5889
|
return r.setAttribute("class", "opacity-50"), r.src = e, r.addEventListener("load", () => {
|
|
5879
5890
|
t.setAttribute("class", "img-placeholder");
|
|
5880
5891
|
}), t.append(r), t;
|
|
5881
5892
|
}
|
|
5882
|
-
function
|
|
5893
|
+
function Wx(e, t) {
|
|
5883
5894
|
var i;
|
|
5884
5895
|
const n = At.getState(e).find(void 0, void 0, (o) => o.id === t);
|
|
5885
5896
|
return n.length > 0 ? (i = n[0]) == null ? void 0 : i.from : null;
|
|
5886
5897
|
}
|
|
5887
|
-
function
|
|
5898
|
+
function Gx({ validateFn: e, onUpload: t, postUpload: r, defaultInline: n = !1 }) {
|
|
5888
5899
|
return (i, o, a) => {
|
|
5889
5900
|
for (const c of i) {
|
|
5890
5901
|
if (e && !e(c))
|
|
@@ -5899,7 +5910,7 @@ function Wx({ validateFn: e, onUpload: t, postUpload: r, defaultInline: n = !1 }
|
|
|
5899
5910
|
var S;
|
|
5900
5911
|
r && typeof d == "string" && (d = await r(d));
|
|
5901
5912
|
const { schema: h } = o.state;
|
|
5902
|
-
let p =
|
|
5913
|
+
let p = Wx(o.state, l);
|
|
5903
5914
|
if (p === null)
|
|
5904
5915
|
return;
|
|
5905
5916
|
const m = typeof d == "object" ? f : d, g = (S = h.nodes.image) == null ? void 0 : S.create({
|
|
@@ -5908,8 +5919,8 @@ function Wx({ validateFn: e, onUpload: t, postUpload: r, defaultInline: n = !1 }
|
|
|
5908
5919
|
});
|
|
5909
5920
|
if (!g)
|
|
5910
5921
|
return;
|
|
5911
|
-
const { doc:
|
|
5912
|
-
p >
|
|
5922
|
+
const { doc: x } = o.state;
|
|
5923
|
+
p > x.content.size && (p = x.content.size - 1);
|
|
5913
5924
|
const w = o.state.tr.replaceWith(p, p, g).setMeta(At, { remove: [l] });
|
|
5914
5925
|
o.dispatch(w);
|
|
5915
5926
|
},
|
|
@@ -5921,7 +5932,7 @@ function Wx({ validateFn: e, onUpload: t, postUpload: r, defaultInline: n = !1 }
|
|
|
5921
5932
|
}
|
|
5922
5933
|
};
|
|
5923
5934
|
}
|
|
5924
|
-
function
|
|
5935
|
+
function Vx(e, t, r) {
|
|
5925
5936
|
var i;
|
|
5926
5937
|
const n = [...((i = t.clipboardData) == null ? void 0 : i.files) || []];
|
|
5927
5938
|
if (n.length > 0) {
|
|
@@ -5931,7 +5942,7 @@ function Gx(e, t, r) {
|
|
|
5931
5942
|
}
|
|
5932
5943
|
return !1;
|
|
5933
5944
|
}
|
|
5934
|
-
function
|
|
5945
|
+
function Xx(e, t, r, n) {
|
|
5935
5946
|
var o;
|
|
5936
5947
|
const i = [...((o = t.dataTransfer) == null ? void 0 : o.files) || []];
|
|
5937
5948
|
if (!r && i.length > 0) {
|
|
@@ -5945,7 +5956,7 @@ function Vx(e, t, r, n) {
|
|
|
5945
5956
|
}
|
|
5946
5957
|
return !1;
|
|
5947
5958
|
}
|
|
5948
|
-
const
|
|
5959
|
+
const Yx = {
|
|
5949
5960
|
acceptMimes: ["image/jpeg", "image/gif", "image/png", "image/jpg"],
|
|
5950
5961
|
maxSize: 1024 * 1024 * 5,
|
|
5951
5962
|
// 5MB
|
|
@@ -5960,7 +5971,7 @@ const Xx = {
|
|
|
5960
5971
|
addOptions() {
|
|
5961
5972
|
var e;
|
|
5962
5973
|
return {
|
|
5963
|
-
...
|
|
5974
|
+
...Yx,
|
|
5964
5975
|
...(e = this.parent) == null ? void 0 : e.call(this),
|
|
5965
5976
|
upload: () => Promise.reject("Image Upload Function"),
|
|
5966
5977
|
button: ({
|
|
@@ -5970,7 +5981,7 @@ const Xx = {
|
|
|
5970
5981
|
}) => {
|
|
5971
5982
|
var i, o;
|
|
5972
5983
|
return {
|
|
5973
|
-
component:
|
|
5984
|
+
component: qx,
|
|
5974
5985
|
componentProps: {
|
|
5975
5986
|
action: () => !0,
|
|
5976
5987
|
upload: r.options.upload,
|
|
@@ -6021,7 +6032,7 @@ const Xx = {
|
|
|
6021
6032
|
};
|
|
6022
6033
|
},
|
|
6023
6034
|
addNodeView() {
|
|
6024
|
-
return so(
|
|
6035
|
+
return so(Fx);
|
|
6025
6036
|
},
|
|
6026
6037
|
addCommands() {
|
|
6027
6038
|
var e;
|
|
@@ -6097,7 +6108,7 @@ const Xx = {
|
|
|
6097
6108
|
];
|
|
6098
6109
|
},
|
|
6099
6110
|
addProseMirrorPlugins() {
|
|
6100
|
-
const t =
|
|
6111
|
+
const t = Gx({
|
|
6101
6112
|
validateFn: (r) => !(!this.options.acceptMimes.includes(r.type) || r.size > this.options.maxSize),
|
|
6102
6113
|
onUpload: this.options.upload,
|
|
6103
6114
|
// postUpload: this.options.postUpload,
|
|
@@ -6106,15 +6117,15 @@ const Xx = {
|
|
|
6106
6117
|
return [
|
|
6107
6118
|
new uo({
|
|
6108
6119
|
props: {
|
|
6109
|
-
handlePaste: (r, n) => !n.clipboardData || [...n.clipboardData.files || []].some((o) => o.type === "text/html") ? !1 :
|
|
6110
|
-
handleDrop: (r, n, i, o) => (!(n instanceof DragEvent) || !n.dataTransfer ||
|
|
6120
|
+
handlePaste: (r, n) => !n.clipboardData || [...n.clipboardData.files || []].some((o) => o.type === "text/html") ? !1 : Vx(r, n, t),
|
|
6121
|
+
handleDrop: (r, n, i, o) => (!(n instanceof DragEvent) || !n.dataTransfer || Xx(r, n, o, t), !1)
|
|
6111
6122
|
}
|
|
6112
6123
|
}),
|
|
6113
|
-
|
|
6124
|
+
Hx()
|
|
6114
6125
|
];
|
|
6115
6126
|
}
|
|
6116
6127
|
});
|
|
6117
|
-
function
|
|
6128
|
+
function Kx({ selectImage: e, giphyApiKey: t, children: r }) {
|
|
6118
6129
|
const [n, i] = Y([]), [o] = Y(15), a = We(null), c = (u, f = "search") => {
|
|
6119
6130
|
if (!t)
|
|
6120
6131
|
return;
|
|
@@ -6139,7 +6150,7 @@ function Yx({ selectImage: e, giphyApiKey: t, children: r }) {
|
|
|
6139
6150
|
// Adjust the debounce delay as needed
|
|
6140
6151
|
[]
|
|
6141
6152
|
);
|
|
6142
|
-
return /* @__PURE__ */ T(
|
|
6153
|
+
return /* @__PURE__ */ T(Er, { modal: !0, children: [
|
|
6143
6154
|
/* @__PURE__ */ s($r, { asChild: !0, children: r }),
|
|
6144
6155
|
/* @__PURE__ */ s(
|
|
6145
6156
|
Kt,
|
|
@@ -6175,9 +6186,9 @@ function Yx({ selectImage: e, giphyApiKey: t, children: r }) {
|
|
|
6175
6186
|
)
|
|
6176
6187
|
] });
|
|
6177
6188
|
}
|
|
6178
|
-
function
|
|
6189
|
+
function Jx({ editor: e, icon: t, giphyApiKey: r, ...n }) {
|
|
6179
6190
|
return /* @__PURE__ */ s(
|
|
6180
|
-
|
|
6191
|
+
Kx,
|
|
6181
6192
|
{
|
|
6182
6193
|
giphyApiKey: r,
|
|
6183
6194
|
selectImage: (o) => {
|
|
@@ -6200,8 +6211,8 @@ const ar = {
|
|
|
6200
6211
|
BOTTOM_LEFT: "bl",
|
|
6201
6212
|
BOTTOM_RIGHT: "br"
|
|
6202
6213
|
};
|
|
6203
|
-
function
|
|
6204
|
-
var
|
|
6214
|
+
function Zx(e) {
|
|
6215
|
+
var M, E;
|
|
6205
6216
|
const [t, r] = Y({
|
|
6206
6217
|
width: pr,
|
|
6207
6218
|
height: pr
|
|
@@ -6219,7 +6230,7 @@ function Jx(e) {
|
|
|
6219
6230
|
w: 0,
|
|
6220
6231
|
h: 0,
|
|
6221
6232
|
dir: ""
|
|
6222
|
-
}), { align: f } = (
|
|
6233
|
+
}), { align: f } = (M = e == null ? void 0 : e.node) == null ? void 0 : M.attrs, d = ye(() => {
|
|
6223
6234
|
var _;
|
|
6224
6235
|
const { src: O, alt: C, width: k, height: R } = (_ = e == null ? void 0 : e.node) == null ? void 0 : _.attrs, N = yr(k) ? `${k}px` : k, L = yr(R) ? `${R}px` : R;
|
|
6225
6236
|
return {
|
|
@@ -6230,7 +6241,7 @@ function Jx(e) {
|
|
|
6230
6241
|
height: L || void 0
|
|
6231
6242
|
}
|
|
6232
6243
|
};
|
|
6233
|
-
}, [(
|
|
6244
|
+
}, [(E = e == null ? void 0 : e.node) == null ? void 0 : E.attrs]), h = ye(() => {
|
|
6234
6245
|
const {
|
|
6235
6246
|
style: { width: O }
|
|
6236
6247
|
} = d;
|
|
@@ -6256,7 +6267,7 @@ function Jx(e) {
|
|
|
6256
6267
|
}, mr),
|
|
6257
6268
|
[e == null ? void 0 : e.editor]
|
|
6258
6269
|
);
|
|
6259
|
-
function
|
|
6270
|
+
function x(O, C) {
|
|
6260
6271
|
O.preventDefault(), O.stopPropagation();
|
|
6261
6272
|
const k = n.width, R = n.height, N = k / R;
|
|
6262
6273
|
let L = Number(e.node.attrs.width), _ = Number(e.node.attrs.height);
|
|
@@ -6331,7 +6342,7 @@ function Jx(e) {
|
|
|
6331
6342
|
"span",
|
|
6332
6343
|
{
|
|
6333
6344
|
className: `image-resizer__handler image-resizer__handler--${O}`,
|
|
6334
|
-
onMouseDown: (C) =>
|
|
6345
|
+
onMouseDown: (C) => x(C, O)
|
|
6335
6346
|
},
|
|
6336
6347
|
`image-dir-${O}`
|
|
6337
6348
|
)) })
|
|
@@ -6359,7 +6370,7 @@ const Tl = /* @__PURE__ */ wl.extend({
|
|
|
6359
6370
|
var o;
|
|
6360
6371
|
const i = ((o = r == null ? void 0 : r.options) == null ? void 0 : o.GIPHY_API_KEY) || "";
|
|
6361
6372
|
return {
|
|
6362
|
-
component:
|
|
6373
|
+
component: Jx,
|
|
6363
6374
|
componentProps: {
|
|
6364
6375
|
editor: t,
|
|
6365
6376
|
action: () => {
|
|
@@ -6398,7 +6409,7 @@ const Tl = /* @__PURE__ */ wl.extend({
|
|
|
6398
6409
|
};
|
|
6399
6410
|
},
|
|
6400
6411
|
addNodeView() {
|
|
6401
|
-
return so(
|
|
6412
|
+
return so(Zx);
|
|
6402
6413
|
},
|
|
6403
6414
|
addCommands() {
|
|
6404
6415
|
var e;
|
|
@@ -6452,7 +6463,7 @@ const Tl = /* @__PURE__ */ wl.extend({
|
|
|
6452
6463
|
];
|
|
6453
6464
|
}
|
|
6454
6465
|
});
|
|
6455
|
-
function
|
|
6466
|
+
function Qx(e, t) {
|
|
6456
6467
|
let r;
|
|
6457
6468
|
try {
|
|
6458
6469
|
r = new URL(e);
|
|
@@ -6467,7 +6478,7 @@ function Zx(e, t) {
|
|
|
6467
6478
|
return r.hostname.includes(n);
|
|
6468
6479
|
});
|
|
6469
6480
|
}
|
|
6470
|
-
function
|
|
6481
|
+
function e1(e) {
|
|
6471
6482
|
const { t } = me(), [r, n] = Y(""), i = We(null), [o, a] = Y(""), [c, l] = Y(!1), u = (m) => {
|
|
6472
6483
|
l(m.detail);
|
|
6473
6484
|
};
|
|
@@ -6480,7 +6491,7 @@ function Qx(e) {
|
|
|
6480
6491
|
const f = ye(() => {
|
|
6481
6492
|
var g;
|
|
6482
6493
|
return (g = e.editor.extensionManager.extensions.find(
|
|
6483
|
-
(
|
|
6494
|
+
(x) => x.name === Ol.name
|
|
6484
6495
|
)) == null ? void 0 : g.options;
|
|
6485
6496
|
}, [e.editor]);
|
|
6486
6497
|
async function d(m) {
|
|
@@ -6488,9 +6499,9 @@ function Qx(e) {
|
|
|
6488
6499
|
const g = (S = m == null ? void 0 : m.target) == null ? void 0 : S.files;
|
|
6489
6500
|
if (!e.editor || e.editor.isDestroyed || g.length === 0)
|
|
6490
6501
|
return;
|
|
6491
|
-
const
|
|
6502
|
+
const x = g[0];
|
|
6492
6503
|
let w = "";
|
|
6493
|
-
f.upload ? w = await f.upload(
|
|
6504
|
+
f.upload ? w = await f.upload(x) : w = URL.createObjectURL(x), e.editor.chain().focus().setVideo({
|
|
6494
6505
|
src: w,
|
|
6495
6506
|
width: "100%"
|
|
6496
6507
|
}).run(), l(!1);
|
|
@@ -6569,8 +6580,8 @@ function Qx(e) {
|
|
|
6569
6580
|
n(m.target.value);
|
|
6570
6581
|
},
|
|
6571
6582
|
onBlur: (m) => {
|
|
6572
|
-
const g = m.target.value,
|
|
6573
|
-
g && !
|
|
6583
|
+
const g = m.target.value, x = f.videoProviders || ["."];
|
|
6584
|
+
g && !Qx(g, x) ? a("Invalid video URL") : a("");
|
|
6574
6585
|
}
|
|
6575
6586
|
}
|
|
6576
6587
|
),
|
|
@@ -6586,26 +6597,26 @@ function Qx(e) {
|
|
|
6586
6597
|
}
|
|
6587
6598
|
);
|
|
6588
6599
|
}
|
|
6589
|
-
function
|
|
6600
|
+
function K0(e, t, r) {
|
|
6590
6601
|
return e < t ? t : e > r ? r : e;
|
|
6591
6602
|
}
|
|
6592
|
-
const
|
|
6593
|
-
function
|
|
6603
|
+
const t1 = (e) => typeof e == "number", r1 = (e) => typeof e == "string", n1 = (e) => typeof e == "function";
|
|
6604
|
+
function i1(e, t = "px") {
|
|
6594
6605
|
if (!e)
|
|
6595
6606
|
return e;
|
|
6596
|
-
const r =
|
|
6607
|
+
const r = t1(e) ? String(e) : e, n = Number.parseFloat(r), i = r.match(/[%a-z]+$/i), o = i ? i[0] : t;
|
|
6597
6608
|
return Number.isNaN(n) ? e : n + o;
|
|
6598
6609
|
}
|
|
6599
|
-
function
|
|
6610
|
+
function o1(e, t) {
|
|
6600
6611
|
if (!e)
|
|
6601
6612
|
return !1;
|
|
6602
6613
|
const { extensions: r = [] } = (e == null ? void 0 : e.extensionManager) ?? {};
|
|
6603
6614
|
return !!r.find((i) => i.name === t);
|
|
6604
6615
|
}
|
|
6605
|
-
function
|
|
6606
|
-
return e.map((t) =>
|
|
6616
|
+
function J0(e) {
|
|
6617
|
+
return e.map((t) => r1(t) ? { value: t, name: t } : t);
|
|
6607
6618
|
}
|
|
6608
|
-
function
|
|
6619
|
+
function a1(e) {
|
|
6609
6620
|
return e = e.replace("https://youtu.be/", "https://www.youtube.com/watch?v=").replace("watch?v=", "embed/"), e = e.replace("https://vimeo.com/", "https://player.vimeo.com/video/"), /^https?:\/\/www.bilibili.com\/video\/.*/i.test(e) && (e = e.replace(/\?.*$/, "").replace("https://www.bilibili.com/video/", "https://player.bilibili.com/player.html?bvid=")), e.includes("drive.google.com") && (e = e.replace("/view", "/preview")), e;
|
|
6610
6621
|
}
|
|
6611
6622
|
const Ol = /* @__PURE__ */ Vt.create({
|
|
@@ -6629,7 +6640,7 @@ const Ol = /* @__PURE__ */ Vt.create({
|
|
|
6629
6640
|
button: ({ editor: e, t }) => {
|
|
6630
6641
|
var r, n;
|
|
6631
6642
|
return {
|
|
6632
|
-
component:
|
|
6643
|
+
component: e1,
|
|
6633
6644
|
componentProps: {
|
|
6634
6645
|
action: () => {
|
|
6635
6646
|
},
|
|
@@ -6650,13 +6661,13 @@ const Ol = /* @__PURE__ */ Vt.create({
|
|
|
6650
6661
|
src: {
|
|
6651
6662
|
default: null,
|
|
6652
6663
|
renderHTML: ({ src: e }) => ({
|
|
6653
|
-
src: e ?
|
|
6664
|
+
src: e ? a1(e) : null
|
|
6654
6665
|
})
|
|
6655
6666
|
},
|
|
6656
6667
|
width: {
|
|
6657
6668
|
default: this.options.width,
|
|
6658
6669
|
renderHTML: ({ width: e }) => ({
|
|
6659
|
-
width:
|
|
6670
|
+
width: i1(e)
|
|
6660
6671
|
})
|
|
6661
6672
|
},
|
|
6662
6673
|
frameborder: {
|
|
@@ -6720,21 +6731,21 @@ function To({ item: e, disabled: t, editor: r }) {
|
|
|
6720
6731
|
}
|
|
6721
6732
|
) }) : /* @__PURE__ */ s(de, {});
|
|
6722
6733
|
}
|
|
6723
|
-
function
|
|
6734
|
+
function c1(e) {
|
|
6724
6735
|
return e.type.name === qt.name;
|
|
6725
6736
|
}
|
|
6726
|
-
function
|
|
6737
|
+
function s1(e) {
|
|
6727
6738
|
return e.type.name === Tl.name;
|
|
6728
6739
|
}
|
|
6729
|
-
function
|
|
6740
|
+
function l1(e) {
|
|
6730
6741
|
return e.type.name === Ol.name;
|
|
6731
6742
|
}
|
|
6732
|
-
function
|
|
6743
|
+
function u1(e) {
|
|
6733
6744
|
const { lang: t } = me(), r = ({ editor: i }) => {
|
|
6734
6745
|
const { selection: o } = i.view.state, { $from: a, to: c } = o;
|
|
6735
6746
|
let l = !1;
|
|
6736
6747
|
return i.view.state.doc.nodesBetween(a.pos, c, (u) => {
|
|
6737
|
-
if (
|
|
6748
|
+
if (c1(u))
|
|
6738
6749
|
return l = !0, !1;
|
|
6739
6750
|
}), l;
|
|
6740
6751
|
}, n = ye(() => e.disabled ? [] : Fv(e.editor), [e.disabled, e.editor, t]);
|
|
@@ -6756,12 +6767,12 @@ function ly(e) {
|
|
|
6756
6767
|
}
|
|
6757
6768
|
) });
|
|
6758
6769
|
}
|
|
6759
|
-
function
|
|
6770
|
+
function d1(e) {
|
|
6760
6771
|
const { lang: t } = me(), r = ({ editor: i }) => {
|
|
6761
6772
|
const { selection: o } = i.view.state, { $from: a, to: c } = o;
|
|
6762
6773
|
let l = !1;
|
|
6763
6774
|
return i.view.state.doc.nodesBetween(a.pos, c, (u) => {
|
|
6764
|
-
if (
|
|
6775
|
+
if (s1(u))
|
|
6765
6776
|
return l = !0, !1;
|
|
6766
6777
|
}), l;
|
|
6767
6778
|
}, n = ye(() => e.disabled ? [] : Hv(e.editor), [e.disabled, e.editor, t]);
|
|
@@ -6783,12 +6794,12 @@ function uy(e) {
|
|
|
6783
6794
|
}
|
|
6784
6795
|
) });
|
|
6785
6796
|
}
|
|
6786
|
-
function
|
|
6797
|
+
function f1(e) {
|
|
6787
6798
|
const { lang: t } = me(), r = ({ editor: i }) => {
|
|
6788
6799
|
const { selection: o } = i.view.state, { $from: a, to: c } = o;
|
|
6789
6800
|
let l = !1;
|
|
6790
6801
|
return i.view.state.doc.nodesBetween(a.pos, c, (u) => {
|
|
6791
|
-
if (
|
|
6802
|
+
if (l1(u))
|
|
6792
6803
|
return l = !0, !1;
|
|
6793
6804
|
}), l;
|
|
6794
6805
|
}, n = ye(() => e.disabled ? [] : Uv(e.editor), [e.editor, e.disabled, t]);
|
|
@@ -6810,10 +6821,10 @@ function dy(e) {
|
|
|
6810
6821
|
}
|
|
6811
6822
|
) });
|
|
6812
6823
|
}
|
|
6813
|
-
function
|
|
6824
|
+
function h1(e, t, r = null) {
|
|
6814
6825
|
return r ? e.createChecked({ index: t }, r) : e.createAndFill({ index: t });
|
|
6815
6826
|
}
|
|
6816
|
-
function
|
|
6827
|
+
function p1(e) {
|
|
6817
6828
|
if (e.cached.columnsNodeTypes)
|
|
6818
6829
|
return e.cached.columnsNodeTypes;
|
|
6819
6830
|
const t = {
|
|
@@ -6822,10 +6833,10 @@ function hy(e) {
|
|
|
6822
6833
|
};
|
|
6823
6834
|
return e.cached.columnsNodeTypes = t, t;
|
|
6824
6835
|
}
|
|
6825
|
-
function
|
|
6826
|
-
const n =
|
|
6836
|
+
function m1(e, t, r = null) {
|
|
6837
|
+
const n = p1(e), i = [];
|
|
6827
6838
|
for (let o = 0; o < t; o += 1) {
|
|
6828
|
-
const a =
|
|
6839
|
+
const a = h1(n.column, o, r);
|
|
6829
6840
|
a && i.push(a);
|
|
6830
6841
|
}
|
|
6831
6842
|
return n.columns.createChecked({ cols: t }, i);
|
|
@@ -6864,7 +6875,7 @@ function tn({
|
|
|
6864
6875
|
}
|
|
6865
6876
|
return !0;
|
|
6866
6877
|
}
|
|
6867
|
-
function
|
|
6878
|
+
function Ma({ state: e, dispatch: t, type: r }) {
|
|
6868
6879
|
const n = gr((o) => o.type.name === wr.name)(e.selection), i = gr((o) => o.type.name === Rl.name)(e.selection);
|
|
6869
6880
|
if (t && n && i) {
|
|
6870
6881
|
const o = n.node, a = i.node.attrs.index;
|
|
@@ -6908,7 +6919,7 @@ const Rl = /* @__PURE__ */ Vt.create({
|
|
|
6908
6919
|
renderHTML({ HTMLAttributes: e }) {
|
|
6909
6920
|
return ["div", Ct(this.options.HTMLAttributes, e), 0];
|
|
6910
6921
|
}
|
|
6911
|
-
}),
|
|
6922
|
+
}), Z0 = pf.create({
|
|
6912
6923
|
name: "columnActionButton",
|
|
6913
6924
|
addOptions() {
|
|
6914
6925
|
var e;
|
|
@@ -6926,14 +6937,14 @@ const Rl = /* @__PURE__ */ Vt.create({
|
|
|
6926
6937
|
})
|
|
6927
6938
|
};
|
|
6928
6939
|
}
|
|
6929
|
-
}),
|
|
6940
|
+
}), g1 = 200, wr = /* @__PURE__ */ Vt.create({
|
|
6930
6941
|
name: "columns",
|
|
6931
6942
|
group: "block",
|
|
6932
6943
|
defining: !0,
|
|
6933
6944
|
isolating: !0,
|
|
6934
6945
|
allowGapCursor: !1,
|
|
6935
6946
|
content: "column{1,}",
|
|
6936
|
-
priority:
|
|
6947
|
+
priority: g1,
|
|
6937
6948
|
addOptions() {
|
|
6938
6949
|
return {
|
|
6939
6950
|
HTMLAttributes: {
|
|
@@ -6962,7 +6973,7 @@ const Rl = /* @__PURE__ */ Vt.create({
|
|
|
6962
6973
|
addCommands() {
|
|
6963
6974
|
return {
|
|
6964
6975
|
insertColumns: (e) => ({ tr: t, dispatch: r, editor: n }) => {
|
|
6965
|
-
const i =
|
|
6976
|
+
const i = m1(n.schema, e && e.cols || 3);
|
|
6966
6977
|
if (r) {
|
|
6967
6978
|
const o = t.selection.anchor + 1;
|
|
6968
6979
|
t.replaceSelectionWith(i).scrollIntoView().setSelection(Gt.near(t.doc.resolve(o)));
|
|
@@ -6977,12 +6988,12 @@ const Rl = /* @__PURE__ */ Vt.create({
|
|
|
6977
6988
|
addKeyboardShortcuts() {
|
|
6978
6989
|
return {
|
|
6979
6990
|
"Mod-Alt-G": () => this.editor.commands.insertColumns(),
|
|
6980
|
-
Tab: () =>
|
|
6991
|
+
Tab: () => Ma({
|
|
6981
6992
|
state: this.editor.state,
|
|
6982
6993
|
dispatch: this.editor.view.dispatch,
|
|
6983
6994
|
type: "after"
|
|
6984
6995
|
}),
|
|
6985
|
-
"Shift-Tab": () =>
|
|
6996
|
+
"Shift-Tab": () => Ma({
|
|
6986
6997
|
state: this.editor.state,
|
|
6987
6998
|
dispatch: this.editor.view.dispatch,
|
|
6988
6999
|
type: "before"
|
|
@@ -7009,7 +7020,7 @@ function Pl(e, t) {
|
|
|
7009
7020
|
}
|
|
7010
7021
|
return i;
|
|
7011
7022
|
}
|
|
7012
|
-
function
|
|
7023
|
+
function v1({ editor: e }) {
|
|
7013
7024
|
const { t } = me(), r = te(() => e.isActive(wr.name), [e]), n = te(() => Pl(wr.name, e), [e]), i = te(() => e.chain().focus().addColBefore().run(), [e]), o = te(() => e.chain().focus().addColAfter().run(), [e]), a = te(() => e.chain().focus().deleteCol().run(), [e]);
|
|
7014
7025
|
return /* @__PURE__ */ s(
|
|
7015
7026
|
at,
|
|
@@ -7065,7 +7076,7 @@ function gy({ editor: e }) {
|
|
|
7065
7076
|
}
|
|
7066
7077
|
);
|
|
7067
7078
|
}
|
|
7068
|
-
const
|
|
7079
|
+
const x1 = ce.Root, y1 = ce.Trigger, Ea = ce.Portal, $a = ce.Sub, no = Z.forwardRef(({ className: e, inset: t, children: r, ...n }, i) => /* @__PURE__ */ T(
|
|
7069
7080
|
ce.SubTrigger,
|
|
7070
7081
|
{
|
|
7071
7082
|
ref: i,
|
|
@@ -7120,7 +7131,7 @@ const $e = Z.forwardRef(({ className: e, inset: t, ...r }, n) => /* @__PURE__ */
|
|
|
7120
7131
|
}
|
|
7121
7132
|
));
|
|
7122
7133
|
$e.displayName = ce.Item.displayName;
|
|
7123
|
-
const
|
|
7134
|
+
const b1 = Z.forwardRef(({ className: e, children: t, checked: r, ...n }, i) => /* @__PURE__ */ T(
|
|
7124
7135
|
ce.CheckboxItem,
|
|
7125
7136
|
{
|
|
7126
7137
|
ref: i,
|
|
@@ -7136,8 +7147,8 @@ const yy = Z.forwardRef(({ className: e, children: t, checked: r, ...n }, i) =>
|
|
|
7136
7147
|
]
|
|
7137
7148
|
}
|
|
7138
7149
|
));
|
|
7139
|
-
|
|
7140
|
-
const
|
|
7150
|
+
b1.displayName = ce.CheckboxItem.displayName;
|
|
7151
|
+
const w1 = Z.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ T(
|
|
7141
7152
|
ce.RadioItem,
|
|
7142
7153
|
{
|
|
7143
7154
|
ref: n,
|
|
@@ -7152,8 +7163,8 @@ const by = Z.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__
|
|
|
7152
7163
|
]
|
|
7153
7164
|
}
|
|
7154
7165
|
));
|
|
7155
|
-
|
|
7156
|
-
const
|
|
7166
|
+
w1.displayName = ce.RadioItem.displayName;
|
|
7167
|
+
const S1 = Z.forwardRef(({ className: e, inset: t, ...r }, n) => /* @__PURE__ */ s(
|
|
7157
7168
|
ce.Label,
|
|
7158
7169
|
{
|
|
7159
7170
|
ref: n,
|
|
@@ -7165,8 +7176,8 @@ const wy = Z.forwardRef(({ className: e, inset: t, ...r }, n) => /* @__PURE__ */
|
|
|
7165
7176
|
...r
|
|
7166
7177
|
}
|
|
7167
7178
|
));
|
|
7168
|
-
|
|
7169
|
-
const
|
|
7179
|
+
S1.displayName = ce.Label.displayName;
|
|
7180
|
+
const Ml = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
7170
7181
|
ce.Separator,
|
|
7171
7182
|
{
|
|
7172
7183
|
ref: r,
|
|
@@ -7174,8 +7185,8 @@ const El = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
|
7174
7185
|
...t
|
|
7175
7186
|
}
|
|
7176
7187
|
));
|
|
7177
|
-
|
|
7178
|
-
function
|
|
7188
|
+
Ml.displayName = ce.Separator.displayName;
|
|
7189
|
+
function A1({
|
|
7179
7190
|
className: e,
|
|
7180
7191
|
...t
|
|
7181
7192
|
}) {
|
|
@@ -7187,7 +7198,7 @@ function Sy({
|
|
|
7187
7198
|
}
|
|
7188
7199
|
);
|
|
7189
7200
|
}
|
|
7190
|
-
|
|
7201
|
+
A1.displayName = "DropdownMenuShortcut";
|
|
7191
7202
|
const Oe = Z.forwardRef(
|
|
7192
7203
|
({ className: e, type: t, ...r }, n) => /* @__PURE__ */ s(
|
|
7193
7204
|
"input",
|
|
@@ -7203,18 +7214,18 @@ const Oe = Z.forwardRef(
|
|
|
7203
7214
|
)
|
|
7204
7215
|
);
|
|
7205
7216
|
Oe.displayName = "Input";
|
|
7206
|
-
const
|
|
7217
|
+
const C1 = Nr(
|
|
7207
7218
|
"richtext-text-sm richtext-font-medium richtext-leading-none peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"
|
|
7208
7219
|
), it = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
7209
|
-
|
|
7220
|
+
Es.Root,
|
|
7210
7221
|
{
|
|
7211
7222
|
ref: r,
|
|
7212
|
-
className: X(
|
|
7223
|
+
className: X(C1(), e),
|
|
7213
7224
|
...t
|
|
7214
7225
|
}
|
|
7215
7226
|
));
|
|
7216
|
-
it.displayName =
|
|
7217
|
-
const
|
|
7227
|
+
it.displayName = Es.Root.displayName;
|
|
7228
|
+
const Er = Lt.Root, $r = Lt.Trigger, Kt = Z.forwardRef(({ className: e, align: t = "center", sideOffset: r = 4, ...n }, i) => /* @__PURE__ */ s(Lt.Portal, { children: /* @__PURE__ */ s(
|
|
7218
7229
|
Lt.Content,
|
|
7219
7230
|
{
|
|
7220
7231
|
ref: i,
|
|
@@ -7245,7 +7256,7 @@ const _e = Z.forwardRef(
|
|
|
7245
7256
|
)
|
|
7246
7257
|
);
|
|
7247
7258
|
_e.displayName = Os.Root.displayName;
|
|
7248
|
-
const
|
|
7259
|
+
const El = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
7249
7260
|
Hi.Root,
|
|
7250
7261
|
{
|
|
7251
7262
|
className: X(
|
|
@@ -7264,7 +7275,7 @@ const Ml = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
|
7264
7275
|
)
|
|
7265
7276
|
}
|
|
7266
7277
|
));
|
|
7267
|
-
|
|
7278
|
+
El.displayName = Hi.Root.displayName;
|
|
7268
7279
|
const $l = dt.Root, Oo = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
7269
7280
|
dt.List,
|
|
7270
7281
|
{
|
|
@@ -7301,7 +7312,7 @@ const Ht = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
|
7301
7312
|
}
|
|
7302
7313
|
));
|
|
7303
7314
|
Ht.displayName = dt.Content.displayName;
|
|
7304
|
-
const
|
|
7315
|
+
const I1 = Te.Provider, kl = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
7305
7316
|
Te.Viewport,
|
|
7306
7317
|
{
|
|
7307
7318
|
ref: r,
|
|
@@ -7313,7 +7324,7 @@ const Cy = Te.Provider, kl = Z.forwardRef(({ className: e, ...t }, r) => /* @__P
|
|
|
7313
7324
|
}
|
|
7314
7325
|
));
|
|
7315
7326
|
kl.displayName = Te.Viewport.displayName;
|
|
7316
|
-
const
|
|
7327
|
+
const T1 = Nr(
|
|
7317
7328
|
"richtext-group richtext-pointer-events-auto richtext-relative richtext-flex richtext-w-full richtext-items-center richtext-justify-between richtext-space-x-4 richtext-overflow-hidden richtext-rounded-md !richtext-border richtext-p-6 richtext-pr-8 richtext-shadow-lg richtext-transition-all data-[swipe=cancel]:richtext-translate-x-0 data-[swipe=end]:richtext-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:richtext-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:richtext-transition-none data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[swipe=end]:richtext-animate-out data-[state=closed]:richtext-fade-out-80 data-[state=closed]:richtext-slide-out-to-right-full data-[state=open]:richtext-slide-in-from-top-full data-[state=open]:sm:richtext-slide-in-from-bottom-full",
|
|
7318
7329
|
{
|
|
7319
7330
|
variants: {
|
|
@@ -7330,12 +7341,12 @@ const Iy = Nr(
|
|
|
7330
7341
|
Te.Root,
|
|
7331
7342
|
{
|
|
7332
7343
|
ref: n,
|
|
7333
|
-
className: X(
|
|
7344
|
+
className: X(T1({ variant: t }), e),
|
|
7334
7345
|
...r
|
|
7335
7346
|
}
|
|
7336
7347
|
));
|
|
7337
7348
|
_l.displayName = Te.Root.displayName;
|
|
7338
|
-
const
|
|
7349
|
+
const O1 = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
7339
7350
|
Te.Action,
|
|
7340
7351
|
{
|
|
7341
7352
|
ref: r,
|
|
@@ -7346,7 +7357,7 @@ const Ty = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
|
7346
7357
|
...t
|
|
7347
7358
|
}
|
|
7348
7359
|
));
|
|
7349
|
-
|
|
7360
|
+
O1.displayName = Te.Action.displayName;
|
|
7350
7361
|
const Ll = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
7351
7362
|
Te.Close,
|
|
7352
7363
|
{
|
|
@@ -7379,7 +7390,7 @@ const Bl = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
|
7379
7390
|
}
|
|
7380
7391
|
));
|
|
7381
7392
|
Bl.displayName = Te.Description.displayName;
|
|
7382
|
-
const
|
|
7393
|
+
const R1 = Nr(
|
|
7383
7394
|
"richtext-inline-flex richtext-items-center richtext-justify-center richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors hover:richtext-bg-muted hover:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-2 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=on]:richtext-bg-accent data-[state=on]:richtext-text-accent-foreground",
|
|
7384
7395
|
{
|
|
7385
7396
|
variants: {
|
|
@@ -7399,15 +7410,15 @@ const Oy = Nr(
|
|
|
7399
7410
|
}
|
|
7400
7411
|
}
|
|
7401
7412
|
), zl = Z.forwardRef(({ className: e, variant: t, size: r, ...n }, i) => /* @__PURE__ */ s(
|
|
7402
|
-
|
|
7413
|
+
Ms.Root,
|
|
7403
7414
|
{
|
|
7404
7415
|
ref: i,
|
|
7405
|
-
className: X(
|
|
7416
|
+
className: X(R1({ variant: t, size: r, className: e })),
|
|
7406
7417
|
...n
|
|
7407
7418
|
}
|
|
7408
7419
|
));
|
|
7409
|
-
zl.displayName =
|
|
7410
|
-
const
|
|
7420
|
+
zl.displayName = Ms.Root.displayName;
|
|
7421
|
+
const P1 = Ut.Provider, jl = Ut.Root, ql = Ut.Trigger, Ro = Z.forwardRef(({ className: e, sideOffset: t = 4, ...r }, n) => /* @__PURE__ */ s(
|
|
7411
7422
|
Ut.Content,
|
|
7412
7423
|
{
|
|
7413
7424
|
ref: n,
|
|
@@ -7420,9 +7431,9 @@ const Ry = Ut.Provider, jl = Ut.Root, ql = Ut.Trigger, Ro = Z.forwardRef(({ clas
|
|
|
7420
7431
|
}
|
|
7421
7432
|
));
|
|
7422
7433
|
Ro.displayName = Ut.Content.displayName;
|
|
7423
|
-
const
|
|
7434
|
+
const N1 = 1, M1 = 1e6;
|
|
7424
7435
|
let rn = 0;
|
|
7425
|
-
function
|
|
7436
|
+
function E1() {
|
|
7426
7437
|
return rn = (rn + 1) % Number.MAX_SAFE_INTEGER, rn.toString();
|
|
7427
7438
|
}
|
|
7428
7439
|
const nn = /* @__PURE__ */ new Map();
|
|
@@ -7434,15 +7445,15 @@ function ka(e) {
|
|
|
7434
7445
|
type: "REMOVE_TOAST",
|
|
7435
7446
|
toastId: e
|
|
7436
7447
|
});
|
|
7437
|
-
},
|
|
7448
|
+
}, M1);
|
|
7438
7449
|
nn.set(e, t);
|
|
7439
7450
|
}
|
|
7440
|
-
function
|
|
7451
|
+
function $1(e, t) {
|
|
7441
7452
|
switch (t.type) {
|
|
7442
7453
|
case "ADD_TOAST":
|
|
7443
7454
|
return {
|
|
7444
7455
|
...e,
|
|
7445
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
7456
|
+
toasts: [t.toast, ...e.toasts].slice(0, N1)
|
|
7446
7457
|
};
|
|
7447
7458
|
case "UPDATE_TOAST":
|
|
7448
7459
|
return {
|
|
@@ -7478,12 +7489,12 @@ function My(e, t) {
|
|
|
7478
7489
|
const dr = [];
|
|
7479
7490
|
let fr = { toasts: [] };
|
|
7480
7491
|
function _t(e) {
|
|
7481
|
-
fr =
|
|
7492
|
+
fr = $1(fr, e), dr.forEach((t) => {
|
|
7482
7493
|
t(fr);
|
|
7483
7494
|
});
|
|
7484
7495
|
}
|
|
7485
|
-
function
|
|
7486
|
-
const t =
|
|
7496
|
+
function k1({ ...e }) {
|
|
7497
|
+
const t = E1(), r = (i) => _t({
|
|
7487
7498
|
type: "UPDATE_TOAST",
|
|
7488
7499
|
toast: { ...i, id: t }
|
|
7489
7500
|
}), n = () => _t({ type: "DISMISS_TOAST", toastId: t });
|
|
@@ -7503,14 +7514,14 @@ function $y({ ...e }) {
|
|
|
7503
7514
|
update: r
|
|
7504
7515
|
};
|
|
7505
7516
|
}
|
|
7506
|
-
function
|
|
7517
|
+
function _1() {
|
|
7507
7518
|
const [e, t] = Z.useState(fr);
|
|
7508
7519
|
return Z.useEffect(() => (dr.push(t), () => {
|
|
7509
7520
|
const r = dr.indexOf(t);
|
|
7510
7521
|
r > -1 && dr.splice(r, 1);
|
|
7511
7522
|
}), [e]), {
|
|
7512
7523
|
...e,
|
|
7513
|
-
toast:
|
|
7524
|
+
toast: k1,
|
|
7514
7525
|
dismiss: (r) => _t({ type: "DISMISS_TOAST", toastId: r })
|
|
7515
7526
|
};
|
|
7516
7527
|
}
|
|
@@ -7533,7 +7544,7 @@ const Fl = Z.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s(
|
|
|
7533
7544
|
}
|
|
7534
7545
|
));
|
|
7535
7546
|
Fl.displayName = Fi.Root.displayName;
|
|
7536
|
-
const
|
|
7547
|
+
const L1 = { padding: "0 12px 12px" }, D1 = ({ width: e, maxWidth: t, height: r, onOk: n, children: i }) => {
|
|
7537
7548
|
const { t: o } = me(), [a, c] = Y({
|
|
7538
7549
|
width: "",
|
|
7539
7550
|
height: "",
|
|
@@ -7549,9 +7560,9 @@ const _y = { padding: "0 12px 12px" }, Ly = ({ width: e, maxWidth: t, height: r,
|
|
|
7549
7560
|
function l(u) {
|
|
7550
7561
|
u.preventDefault(), u.stopPropagation(), n(a);
|
|
7551
7562
|
}
|
|
7552
|
-
return /* @__PURE__ */ T(
|
|
7563
|
+
return /* @__PURE__ */ T(Er, { modal: !0, children: [
|
|
7553
7564
|
/* @__PURE__ */ s($r, { asChild: !0, children: i }),
|
|
7554
|
-
/* @__PURE__ */ s(Kt, { children: /* @__PURE__ */ s("div", { style:
|
|
7565
|
+
/* @__PURE__ */ s(Kt, { children: /* @__PURE__ */ s("div", { style: L1, children: /* @__PURE__ */ T("form", { className: "richtext-flex richtext-flex-col richtext-gap-2", onSubmit: l, children: [
|
|
7555
7566
|
/* @__PURE__ */ s(it, { className: "mb-[6px]", children: "Width" }),
|
|
7556
7567
|
/* @__PURE__ */ s("div", { className: "richtext-flex richtext-w-full richtext-max-w-sm richtext-items-center richtext-gap-1.5", children: /* @__PURE__ */ s("div", { className: "richtext-relative richtext-items-center richtext-w-full richtext-max-w-sm", children: /* @__PURE__ */ s(
|
|
7557
7568
|
Oe,
|
|
@@ -7682,7 +7693,7 @@ const _y = { padding: "0 12px 12px" }, Ly = ({ width: e, maxWidth: t, height: r,
|
|
|
7682
7693
|
linkRule: [String.raw`https:\/\/goo.gl\/maps\/\w+`]
|
|
7683
7694
|
}
|
|
7684
7695
|
};
|
|
7685
|
-
function
|
|
7696
|
+
function B1(e) {
|
|
7686
7697
|
const t = Tt.youtube, r = e.matchedUrl;
|
|
7687
7698
|
e.validLink = !0;
|
|
7688
7699
|
const n = r.split("="), i = n.length;
|
|
@@ -7692,7 +7703,7 @@ function Dy(e) {
|
|
|
7692
7703
|
}
|
|
7693
7704
|
return e;
|
|
7694
7705
|
}
|
|
7695
|
-
function
|
|
7706
|
+
function z1(e) {
|
|
7696
7707
|
const t = Tt.youku, r = e.matchedUrl, n = t.idRule, i = new RegExp(n), o = r.match(i);
|
|
7697
7708
|
if (o && o.length > 0) {
|
|
7698
7709
|
const a = o[0].slice(3);
|
|
@@ -7701,7 +7712,7 @@ function By(e) {
|
|
|
7701
7712
|
e.validId = !1;
|
|
7702
7713
|
return e;
|
|
7703
7714
|
}
|
|
7704
|
-
function
|
|
7715
|
+
function j1(e) {
|
|
7705
7716
|
const t = Tt.bilibili, n = e.matchedUrl.split("/"), i = n.length;
|
|
7706
7717
|
if (i > 0) {
|
|
7707
7718
|
const o = n[i - 1];
|
|
@@ -7709,7 +7720,7 @@ function zy(e) {
|
|
|
7709
7720
|
}
|
|
7710
7721
|
return e;
|
|
7711
7722
|
}
|
|
7712
|
-
function
|
|
7723
|
+
function q1(e) {
|
|
7713
7724
|
const t = Tt.qqvideo, n = e.matchedUrl.split("/"), i = n.length;
|
|
7714
7725
|
if (i > 0) {
|
|
7715
7726
|
const o = n[i - 1];
|
|
@@ -7717,41 +7728,41 @@ function jy(e) {
|
|
|
7717
7728
|
}
|
|
7718
7729
|
return e;
|
|
7719
7730
|
}
|
|
7720
|
-
function
|
|
7731
|
+
function F1(e, t) {
|
|
7721
7732
|
return t.src = e, t.validId = !0, t;
|
|
7722
7733
|
}
|
|
7723
|
-
function
|
|
7734
|
+
function H1(e, t) {
|
|
7724
7735
|
return t.src = e, t.validId = !0, t;
|
|
7725
7736
|
}
|
|
7726
|
-
function
|
|
7737
|
+
function U1(e, t) {
|
|
7727
7738
|
return t.src = e, t.validId = !0, t.originalLink = e, t;
|
|
7728
7739
|
}
|
|
7729
|
-
function
|
|
7740
|
+
function W1(e) {
|
|
7730
7741
|
return e.src = e.matchedUrl, e.validId = !0, e.originalLink = e.src, e;
|
|
7731
7742
|
}
|
|
7732
|
-
function
|
|
7743
|
+
function G1(e) {
|
|
7733
7744
|
return e.src = e.matchedUrl, e.validId = !0, e.originalLink = e.src, e;
|
|
7734
7745
|
}
|
|
7735
|
-
function
|
|
7746
|
+
function V1(e) {
|
|
7736
7747
|
const t = Tt.figma;
|
|
7737
7748
|
return e.src = `${t.srcPrefix}=${encodeURIComponent(e.matchedUrl)}`, e.validId = !0, e.originalLink = e.matchedUrl, e;
|
|
7738
7749
|
}
|
|
7739
|
-
function
|
|
7750
|
+
function X1(e, t) {
|
|
7740
7751
|
return t.src = `${t.matchedUrl}?embed`, t.validId = !0, t.originalLink = e, t;
|
|
7741
7752
|
}
|
|
7742
|
-
function
|
|
7753
|
+
function Y1(e, t) {
|
|
7743
7754
|
return t.src = `${t.matchedUrl}`, t.validId = !0, t.originalLink = e, t;
|
|
7744
7755
|
}
|
|
7745
|
-
function
|
|
7756
|
+
function K1(e) {
|
|
7746
7757
|
return e.src = `${e.matchedUrl}`, e.validId = !0, e.originalLink = e.src, e;
|
|
7747
7758
|
}
|
|
7748
|
-
function
|
|
7759
|
+
function J1(e, t) {
|
|
7749
7760
|
return t.src = `${t.matchedUrl}?background=white&banner=show&embedded=true`, t.validId = !0, t.originalLink = e, t;
|
|
7750
7761
|
}
|
|
7751
|
-
function
|
|
7762
|
+
function Z1(e, t) {
|
|
7752
7763
|
return t.src = `${t.matchedUrl}`, t.validId = !0, t.originalLink = e, t;
|
|
7753
7764
|
}
|
|
7754
|
-
function
|
|
7765
|
+
function Q1(e, t, r) {
|
|
7755
7766
|
if (e === "googlemaps")
|
|
7756
7767
|
return r.validLink = !0, r.matchedUrl = t, r;
|
|
7757
7768
|
const i = Tt[e].linkRule;
|
|
@@ -7762,7 +7773,7 @@ function Zy(e, t, r) {
|
|
|
7762
7773
|
}
|
|
7763
7774
|
return r;
|
|
7764
7775
|
}
|
|
7765
|
-
function
|
|
7776
|
+
function ey(e) {
|
|
7766
7777
|
var r, n;
|
|
7767
7778
|
let t = "iframe";
|
|
7768
7779
|
return ((r = e.includes) != null && r.call(e, "youtube") || (n = e.includes) != null && n.call(e, "youtu.be")) && (t = "youtube"), e.includes("youku") && (t = "youku"), e.includes("bilibili") && (t = "bilibili"), e.includes("qq") && (t = "qqvideo"), e.includes("amap") && (t = "amap"), e.includes("map.baidu") && (t = "baidu_map"), (e.includes("google.com/maps") || e.includes("maps.app.goo.gl")) && (t = "googlemaps"), e.includes("modao") && (t = "modao"), e.includes("lanhuapp") && (t = "lanhu"), e.includes("figma") && (t = "figma"), e.includes("canva") && (t = "canva"), e.includes("processon") && (t = "processon"), e.includes("codepen") && (t = "codepen"), e.includes("jinshuju") && (t = "jinshuju"), e.includes("iframe") && (t = "iframe"), t;
|
|
@@ -7775,58 +7786,58 @@ function Hl(e) {
|
|
|
7775
7786
|
originalLink: e,
|
|
7776
7787
|
src: ""
|
|
7777
7788
|
};
|
|
7778
|
-
const r =
|
|
7779
|
-
if (t =
|
|
7789
|
+
const r = ey(e);
|
|
7790
|
+
if (t = Q1(r, e, t), !t.validLink)
|
|
7780
7791
|
return t;
|
|
7781
7792
|
switch (r) {
|
|
7782
7793
|
case "youtube":
|
|
7783
|
-
return
|
|
7794
|
+
return B1(t);
|
|
7784
7795
|
case "youku":
|
|
7785
|
-
return
|
|
7796
|
+
return z1(t);
|
|
7786
7797
|
case "bilibili":
|
|
7787
|
-
return
|
|
7798
|
+
return j1(t);
|
|
7788
7799
|
case "qqvideo":
|
|
7789
|
-
return
|
|
7800
|
+
return q1(t);
|
|
7790
7801
|
case "amap":
|
|
7791
|
-
return
|
|
7802
|
+
return F1(e, t);
|
|
7792
7803
|
case "baidu_map":
|
|
7793
|
-
return
|
|
7804
|
+
return H1(e, t);
|
|
7794
7805
|
case "googlemaps":
|
|
7795
|
-
return
|
|
7806
|
+
return U1(e, t);
|
|
7796
7807
|
case "modao":
|
|
7797
|
-
return
|
|
7808
|
+
return W1(t);
|
|
7798
7809
|
case "lanhu":
|
|
7799
|
-
return
|
|
7810
|
+
return G1(t);
|
|
7800
7811
|
case "figma":
|
|
7801
|
-
return
|
|
7812
|
+
return V1(t);
|
|
7802
7813
|
case "canva":
|
|
7803
|
-
return
|
|
7814
|
+
return X1(e, t);
|
|
7804
7815
|
case "processon":
|
|
7805
|
-
return
|
|
7816
|
+
return Y1(e, t);
|
|
7806
7817
|
case "codepen":
|
|
7807
|
-
return
|
|
7818
|
+
return K1(t);
|
|
7808
7819
|
case "jinshuju":
|
|
7809
|
-
return
|
|
7820
|
+
return J1(e, t);
|
|
7810
7821
|
case "iframe":
|
|
7811
|
-
return
|
|
7822
|
+
return Z1(e, t);
|
|
7812
7823
|
default:
|
|
7813
7824
|
return e;
|
|
7814
7825
|
}
|
|
7815
7826
|
}
|
|
7816
|
-
function
|
|
7827
|
+
function ty() {
|
|
7817
7828
|
const [e] = Cl((t) => t.value);
|
|
7818
7829
|
return e;
|
|
7819
7830
|
}
|
|
7820
|
-
const
|
|
7831
|
+
const ry = {
|
|
7821
7832
|
setDisable: (e, t) => {
|
|
7822
7833
|
Co(ut.EDIT(e), t);
|
|
7823
7834
|
}
|
|
7824
|
-
},
|
|
7825
|
-
wrap:
|
|
7826
|
-
innerWrap:
|
|
7835
|
+
}, ny = "_wrap_5y04w_1", iy = "_innerWrap_5y04w_15", _a = {
|
|
7836
|
+
wrap: ny,
|
|
7837
|
+
innerWrap: iy
|
|
7827
7838
|
};
|
|
7828
|
-
function
|
|
7829
|
-
const n =
|
|
7839
|
+
function oy({ editor: e, node: t, updateAttributes: r }) {
|
|
7840
|
+
const n = ty(), { src: i, width: o, height: a } = t.attrs, [c, l] = Y("");
|
|
7830
7841
|
function u() {
|
|
7831
7842
|
if (!c)
|
|
7832
7843
|
return;
|
|
@@ -7982,14 +7993,14 @@ const bt = /* @__PURE__ */ Vt.create({
|
|
|
7982
7993
|
];
|
|
7983
7994
|
},
|
|
7984
7995
|
addNodeView() {
|
|
7985
|
-
return so(
|
|
7996
|
+
return so(oy);
|
|
7986
7997
|
}
|
|
7987
7998
|
});
|
|
7988
7999
|
var Sr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
7989
|
-
function
|
|
8000
|
+
function ay(e) {
|
|
7990
8001
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7991
8002
|
}
|
|
7992
|
-
function
|
|
8003
|
+
function cy(e) {
|
|
7993
8004
|
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
7994
8005
|
var t = e.default;
|
|
7995
8006
|
if (typeof t == "function") {
|
|
@@ -8019,7 +8030,7 @@ function Ul() {
|
|
|
8019
8030
|
}, on;
|
|
8020
8031
|
}
|
|
8021
8032
|
var an, Da;
|
|
8022
|
-
function
|
|
8033
|
+
function sy() {
|
|
8023
8034
|
if (Da) return an;
|
|
8024
8035
|
Da = 1;
|
|
8025
8036
|
var e;
|
|
@@ -8085,22 +8096,22 @@ function c1() {
|
|
|
8085
8096
|
}
|
|
8086
8097
|
};
|
|
8087
8098
|
e = function(p) {
|
|
8088
|
-
var m = p !== null && typeof p == "object", g = r.call(p) === "[object Function]",
|
|
8089
|
-
if (!m && !g && !
|
|
8099
|
+
var m = p !== null && typeof p == "object", g = r.call(p) === "[object Function]", x = n(p), w = m && r.call(p) === "[object String]", S = [];
|
|
8100
|
+
if (!m && !g && !x)
|
|
8090
8101
|
throw new TypeError("Object.keys called on a non-object");
|
|
8091
8102
|
var b = a && g;
|
|
8092
8103
|
if (w && p.length > 0 && !t.call(p, 0))
|
|
8093
8104
|
for (var A = 0; A < p.length; ++A)
|
|
8094
8105
|
S.push(String(A));
|
|
8095
|
-
if (
|
|
8106
|
+
if (x && p.length > 0)
|
|
8096
8107
|
for (var P = 0; P < p.length; ++P)
|
|
8097
8108
|
S.push(String(P));
|
|
8098
8109
|
else
|
|
8099
|
-
for (var
|
|
8100
|
-
!(b &&
|
|
8110
|
+
for (var M in p)
|
|
8111
|
+
!(b && M === "prototype") && t.call(p, M) && S.push(String(M));
|
|
8101
8112
|
if (o)
|
|
8102
|
-
for (var
|
|
8103
|
-
!(
|
|
8113
|
+
for (var E = d(p), O = 0; O < c.length; ++O)
|
|
8114
|
+
!(E && c[O] === "constructor") && t.call(p, c[O]) && S.push(c[O]);
|
|
8104
8115
|
return S;
|
|
8105
8116
|
};
|
|
8106
8117
|
}
|
|
@@ -8112,7 +8123,7 @@ function Po() {
|
|
|
8112
8123
|
Ba = 1;
|
|
8113
8124
|
var e = Array.prototype.slice, t = Ul(), r = Object.keys, n = r ? function(a) {
|
|
8114
8125
|
return r(a);
|
|
8115
|
-
} :
|
|
8126
|
+
} : sy(), i = Object.keys;
|
|
8116
8127
|
return n.shim = function() {
|
|
8117
8128
|
if (Object.keys) {
|
|
8118
8129
|
var a = function() {
|
|
@@ -8149,14 +8160,14 @@ function Pe() {
|
|
|
8149
8160
|
return qa || (qa = 1, un = TypeError), un;
|
|
8150
8161
|
}
|
|
8151
8162
|
var dn, Fa;
|
|
8152
|
-
function
|
|
8163
|
+
function ly() {
|
|
8153
8164
|
return Fa || (Fa = 1, dn = Object.getOwnPropertyDescriptor), dn;
|
|
8154
8165
|
}
|
|
8155
8166
|
var fn, Ha;
|
|
8156
8167
|
function pt() {
|
|
8157
8168
|
if (Ha) return fn;
|
|
8158
8169
|
Ha = 1;
|
|
8159
|
-
var e = /* @__PURE__ */
|
|
8170
|
+
var e = /* @__PURE__ */ ly();
|
|
8160
8171
|
if (e)
|
|
8161
8172
|
try {
|
|
8162
8173
|
e([], "length");
|
|
@@ -8166,7 +8177,7 @@ function pt() {
|
|
|
8166
8177
|
return fn = e, fn;
|
|
8167
8178
|
}
|
|
8168
8179
|
var hn, Ua;
|
|
8169
|
-
function
|
|
8180
|
+
function Mo() {
|
|
8170
8181
|
if (Ua) return hn;
|
|
8171
8182
|
Ua = 1;
|
|
8172
8183
|
var e = /* @__PURE__ */ kr(), t = /* @__PURE__ */ No(), r = /* @__PURE__ */ Pe(), n = /* @__PURE__ */ pt();
|
|
@@ -8198,7 +8209,7 @@ function Eo() {
|
|
|
8198
8209
|
}, hn;
|
|
8199
8210
|
}
|
|
8200
8211
|
var pn, Wa;
|
|
8201
|
-
function
|
|
8212
|
+
function Eo() {
|
|
8202
8213
|
if (Wa) return pn;
|
|
8203
8214
|
Wa = 1;
|
|
8204
8215
|
var e = /* @__PURE__ */ kr(), t = function() {
|
|
@@ -8218,9 +8229,9 @@ var mn, Ga;
|
|
|
8218
8229
|
function mt() {
|
|
8219
8230
|
if (Ga) return mn;
|
|
8220
8231
|
Ga = 1;
|
|
8221
|
-
var e = Po(), t = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", r = Object.prototype.toString, n = Array.prototype.concat, i = /* @__PURE__ */
|
|
8232
|
+
var e = Po(), t = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", r = Object.prototype.toString, n = Array.prototype.concat, i = /* @__PURE__ */ Mo(), o = function(u) {
|
|
8222
8233
|
return typeof u == "function" && r.call(u) === "[object Function]";
|
|
8223
|
-
}, a = /* @__PURE__ */
|
|
8234
|
+
}, a = /* @__PURE__ */ Eo()(), c = function(u, f, d, h) {
|
|
8224
8235
|
if (f in u) {
|
|
8225
8236
|
if (h === !0) {
|
|
8226
8237
|
if (u[f] === d)
|
|
@@ -8246,63 +8257,63 @@ function Wl() {
|
|
|
8246
8257
|
return Xa || (Xa = 1, xn = Error), xn;
|
|
8247
8258
|
}
|
|
8248
8259
|
var yn, Ya;
|
|
8249
|
-
function
|
|
8260
|
+
function uy() {
|
|
8250
8261
|
return Ya || (Ya = 1, yn = EvalError), yn;
|
|
8251
8262
|
}
|
|
8252
8263
|
var bn, Ka;
|
|
8253
|
-
function
|
|
8264
|
+
function dy() {
|
|
8254
8265
|
return Ka || (Ka = 1, bn = RangeError), bn;
|
|
8255
8266
|
}
|
|
8256
8267
|
var wn, Ja;
|
|
8257
|
-
function
|
|
8268
|
+
function fy() {
|
|
8258
8269
|
return Ja || (Ja = 1, wn = ReferenceError), wn;
|
|
8259
8270
|
}
|
|
8260
8271
|
var Sn, Za;
|
|
8261
|
-
function
|
|
8272
|
+
function hy() {
|
|
8262
8273
|
return Za || (Za = 1, Sn = URIError), Sn;
|
|
8263
8274
|
}
|
|
8264
8275
|
var An, Qa;
|
|
8265
|
-
function
|
|
8276
|
+
function py() {
|
|
8266
8277
|
return Qa || (Qa = 1, An = Math.abs), An;
|
|
8267
8278
|
}
|
|
8268
8279
|
var Cn, ec;
|
|
8269
|
-
function
|
|
8280
|
+
function my() {
|
|
8270
8281
|
return ec || (ec = 1, Cn = Math.floor), Cn;
|
|
8271
8282
|
}
|
|
8272
8283
|
var In, tc;
|
|
8273
|
-
function
|
|
8284
|
+
function gy() {
|
|
8274
8285
|
return tc || (tc = 1, In = Math.max), In;
|
|
8275
8286
|
}
|
|
8276
8287
|
var Tn, rc;
|
|
8277
|
-
function
|
|
8288
|
+
function vy() {
|
|
8278
8289
|
return rc || (rc = 1, Tn = Math.min), Tn;
|
|
8279
8290
|
}
|
|
8280
8291
|
var On, nc;
|
|
8281
|
-
function
|
|
8292
|
+
function xy() {
|
|
8282
8293
|
return nc || (nc = 1, On = Math.pow), On;
|
|
8283
8294
|
}
|
|
8284
8295
|
var Rn, ic;
|
|
8285
|
-
function
|
|
8296
|
+
function yy() {
|
|
8286
8297
|
return ic || (ic = 1, Rn = Math.round), Rn;
|
|
8287
8298
|
}
|
|
8288
8299
|
var Pn, oc;
|
|
8289
|
-
function
|
|
8300
|
+
function by() {
|
|
8290
8301
|
return oc || (oc = 1, Pn = Number.isNaN || function(t) {
|
|
8291
8302
|
return t !== t;
|
|
8292
8303
|
}), Pn;
|
|
8293
8304
|
}
|
|
8294
8305
|
var Nn, ac;
|
|
8295
|
-
function
|
|
8306
|
+
function wy() {
|
|
8296
8307
|
if (ac) return Nn;
|
|
8297
8308
|
ac = 1;
|
|
8298
|
-
var e = /* @__PURE__ */
|
|
8309
|
+
var e = /* @__PURE__ */ by();
|
|
8299
8310
|
return Nn = function(r) {
|
|
8300
8311
|
return e(r) || r === 0 ? r : r < 0 ? -1 : 1;
|
|
8301
8312
|
}, Nn;
|
|
8302
8313
|
}
|
|
8303
|
-
var
|
|
8314
|
+
var Mn, cc;
|
|
8304
8315
|
function _r() {
|
|
8305
|
-
return cc || (cc = 1,
|
|
8316
|
+
return cc || (cc = 1, Mn = function() {
|
|
8306
8317
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
8307
8318
|
return !1;
|
|
8308
8319
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -8328,16 +8339,16 @@ function _r() {
|
|
|
8328
8339
|
return !1;
|
|
8329
8340
|
}
|
|
8330
8341
|
return !0;
|
|
8331
|
-
}),
|
|
8342
|
+
}), Mn;
|
|
8332
8343
|
}
|
|
8333
|
-
var
|
|
8344
|
+
var En, sc;
|
|
8334
8345
|
function ko() {
|
|
8335
|
-
if (sc) return
|
|
8346
|
+
if (sc) return En;
|
|
8336
8347
|
sc = 1;
|
|
8337
8348
|
var e = typeof Symbol < "u" && Symbol, t = _r();
|
|
8338
|
-
return
|
|
8349
|
+
return En = function() {
|
|
8339
8350
|
return typeof e != "function" || typeof Symbol != "function" || typeof e("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : t();
|
|
8340
|
-
},
|
|
8351
|
+
}, En;
|
|
8341
8352
|
}
|
|
8342
8353
|
var $n, lc;
|
|
8343
8354
|
function Gl() {
|
|
@@ -8351,7 +8362,7 @@ function Vl() {
|
|
|
8351
8362
|
return kn = e.getPrototypeOf || null, kn;
|
|
8352
8363
|
}
|
|
8353
8364
|
var _n, dc;
|
|
8354
|
-
function
|
|
8365
|
+
function Sy() {
|
|
8355
8366
|
if (dc) return _n;
|
|
8356
8367
|
dc = 1;
|
|
8357
8368
|
var e = "Function.prototype.bind called on incompatible ", t = Object.prototype.toString, r = Math.max, n = "[object Function]", i = function(l, u) {
|
|
@@ -8388,9 +8399,9 @@ function w1() {
|
|
|
8388
8399
|
}, p = r(0, u.length - f.length), m = [], g = 0; g < p; g++)
|
|
8389
8400
|
m[g] = "$" + g;
|
|
8390
8401
|
if (d = Function("binder", "return function (" + a(m, ",") + "){ return binder.apply(this,arguments); }")(h), u.prototype) {
|
|
8391
|
-
var
|
|
8402
|
+
var x = function() {
|
|
8392
8403
|
};
|
|
8393
|
-
|
|
8404
|
+
x.prototype = u.prototype, d.prototype = new x(), x.prototype = null;
|
|
8394
8405
|
}
|
|
8395
8406
|
return d;
|
|
8396
8407
|
}, _n;
|
|
@@ -8399,7 +8410,7 @@ var Ln, fc;
|
|
|
8399
8410
|
function Jt() {
|
|
8400
8411
|
if (fc) return Ln;
|
|
8401
8412
|
fc = 1;
|
|
8402
|
-
var e =
|
|
8413
|
+
var e = Sy();
|
|
8403
8414
|
return Ln = Function.prototype.bind || e, Ln;
|
|
8404
8415
|
}
|
|
8405
8416
|
var Dn, hc;
|
|
@@ -8411,14 +8422,14 @@ function Lo() {
|
|
|
8411
8422
|
return pc || (pc = 1, Bn = Function.prototype.apply), Bn;
|
|
8412
8423
|
}
|
|
8413
8424
|
var zn, mc;
|
|
8414
|
-
function
|
|
8425
|
+
function Ay() {
|
|
8415
8426
|
return mc || (mc = 1, zn = typeof Reflect < "u" && Reflect && Reflect.apply), zn;
|
|
8416
8427
|
}
|
|
8417
8428
|
var jn, gc;
|
|
8418
8429
|
function Xl() {
|
|
8419
8430
|
if (gc) return jn;
|
|
8420
8431
|
gc = 1;
|
|
8421
|
-
var e = Jt(), t = Lo(), r = _o(), n =
|
|
8432
|
+
var e = Jt(), t = Lo(), r = _o(), n = Ay();
|
|
8422
8433
|
return jn = n || e.call(r, t), jn;
|
|
8423
8434
|
}
|
|
8424
8435
|
var qn, vc;
|
|
@@ -8433,7 +8444,7 @@ function Do() {
|
|
|
8433
8444
|
}, qn;
|
|
8434
8445
|
}
|
|
8435
8446
|
var Fn, xc;
|
|
8436
|
-
function
|
|
8447
|
+
function Cy() {
|
|
8437
8448
|
if (xc) return Fn;
|
|
8438
8449
|
xc = 1;
|
|
8439
8450
|
var e = Do(), t = /* @__PURE__ */ pt(), r;
|
|
@@ -8460,7 +8471,7 @@ var Hn, yc;
|
|
|
8460
8471
|
function Yl() {
|
|
8461
8472
|
if (yc) return Hn;
|
|
8462
8473
|
yc = 1;
|
|
8463
|
-
var e = Gl(), t = Vl(), r = /* @__PURE__ */
|
|
8474
|
+
var e = Gl(), t = Vl(), r = /* @__PURE__ */ Cy();
|
|
8464
8475
|
return Hn = e ? function(i) {
|
|
8465
8476
|
return e(i);
|
|
8466
8477
|
} : t ? function(i) {
|
|
@@ -8482,9 +8493,9 @@ var Wn, wc;
|
|
|
8482
8493
|
function Ye() {
|
|
8483
8494
|
if (wc) return Wn;
|
|
8484
8495
|
wc = 1;
|
|
8485
|
-
var e, t = /* @__PURE__ */ $o(), r = /* @__PURE__ */ Wl(), n = /* @__PURE__ */
|
|
8496
|
+
var e, t = /* @__PURE__ */ $o(), r = /* @__PURE__ */ Wl(), n = /* @__PURE__ */ uy(), i = /* @__PURE__ */ dy(), o = /* @__PURE__ */ fy(), a = /* @__PURE__ */ No(), c = /* @__PURE__ */ Pe(), l = /* @__PURE__ */ hy(), u = /* @__PURE__ */ py(), f = /* @__PURE__ */ my(), d = /* @__PURE__ */ gy(), h = /* @__PURE__ */ vy(), p = /* @__PURE__ */ xy(), m = /* @__PURE__ */ yy(), g = /* @__PURE__ */ wy(), x = Function, w = function(K) {
|
|
8486
8497
|
try {
|
|
8487
|
-
return
|
|
8498
|
+
return x('"use strict"; return (' + K + ").constructor;")();
|
|
8488
8499
|
} catch {
|
|
8489
8500
|
}
|
|
8490
8501
|
}, S = /* @__PURE__ */ pt(), b = /* @__PURE__ */ kr(), A = function() {
|
|
@@ -8499,12 +8510,12 @@ function Ye() {
|
|
|
8499
8510
|
return A;
|
|
8500
8511
|
}
|
|
8501
8512
|
}
|
|
8502
|
-
}() : A,
|
|
8513
|
+
}() : A, M = ko()(), E = Yl(), O = Vl(), C = Gl(), k = Lo(), R = _o(), N = {}, L = typeof Uint8Array > "u" || !E ? e : E(Uint8Array), _ = {
|
|
8503
8514
|
__proto__: null,
|
|
8504
8515
|
"%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
|
|
8505
8516
|
"%Array%": Array,
|
|
8506
8517
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer,
|
|
8507
|
-
"%ArrayIteratorPrototype%":
|
|
8518
|
+
"%ArrayIteratorPrototype%": M && E ? E([][Symbol.iterator]()) : e,
|
|
8508
8519
|
"%AsyncFromSyncIteratorPrototype%": e,
|
|
8509
8520
|
"%AsyncFunction%": N,
|
|
8510
8521
|
"%AsyncGenerator%": N,
|
|
@@ -8528,17 +8539,17 @@ function Ye() {
|
|
|
8528
8539
|
"%Float32Array%": typeof Float32Array > "u" ? e : Float32Array,
|
|
8529
8540
|
"%Float64Array%": typeof Float64Array > "u" ? e : Float64Array,
|
|
8530
8541
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? e : FinalizationRegistry,
|
|
8531
|
-
"%Function%":
|
|
8542
|
+
"%Function%": x,
|
|
8532
8543
|
"%GeneratorFunction%": N,
|
|
8533
8544
|
"%Int8Array%": typeof Int8Array > "u" ? e : Int8Array,
|
|
8534
8545
|
"%Int16Array%": typeof Int16Array > "u" ? e : Int16Array,
|
|
8535
8546
|
"%Int32Array%": typeof Int32Array > "u" ? e : Int32Array,
|
|
8536
8547
|
"%isFinite%": isFinite,
|
|
8537
8548
|
"%isNaN%": isNaN,
|
|
8538
|
-
"%IteratorPrototype%":
|
|
8549
|
+
"%IteratorPrototype%": M && E ? E(E([][Symbol.iterator]())) : e,
|
|
8539
8550
|
"%JSON%": typeof JSON == "object" ? JSON : e,
|
|
8540
8551
|
"%Map%": typeof Map > "u" ? e : Map,
|
|
8541
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !
|
|
8552
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !M || !E ? e : E((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
8542
8553
|
"%Math%": Math,
|
|
8543
8554
|
"%Number%": Number,
|
|
8544
8555
|
"%Object%": t,
|
|
@@ -8552,11 +8563,11 @@ function Ye() {
|
|
|
8552
8563
|
"%Reflect%": typeof Reflect > "u" ? e : Reflect,
|
|
8553
8564
|
"%RegExp%": RegExp,
|
|
8554
8565
|
"%Set%": typeof Set > "u" ? e : Set,
|
|
8555
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !
|
|
8566
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !M || !E ? e : E((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
8556
8567
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? e : SharedArrayBuffer,
|
|
8557
8568
|
"%String%": String,
|
|
8558
|
-
"%StringIteratorPrototype%":
|
|
8559
|
-
"%Symbol%":
|
|
8569
|
+
"%StringIteratorPrototype%": M && E ? E(""[Symbol.iterator]()) : e,
|
|
8570
|
+
"%Symbol%": M ? Symbol : e,
|
|
8560
8571
|
"%SyntaxError%": a,
|
|
8561
8572
|
"%ThrowTypeError%": P,
|
|
8562
8573
|
"%TypedArray%": L,
|
|
@@ -8582,11 +8593,11 @@ function Ye() {
|
|
|
8582
8593
|
"%Math.sign%": g,
|
|
8583
8594
|
"%Reflect.getPrototypeOf%": C
|
|
8584
8595
|
};
|
|
8585
|
-
if (
|
|
8596
|
+
if (E)
|
|
8586
8597
|
try {
|
|
8587
8598
|
null.error;
|
|
8588
8599
|
} catch (K) {
|
|
8589
|
-
var G =
|
|
8600
|
+
var G = E(E(K));
|
|
8590
8601
|
_["%Error.prototype%"] = G;
|
|
8591
8602
|
}
|
|
8592
8603
|
var ee = function K(B) {
|
|
@@ -8602,7 +8613,7 @@ function Ye() {
|
|
|
8602
8613
|
D && (z = D.prototype);
|
|
8603
8614
|
} else if (B === "%AsyncIteratorPrototype%") {
|
|
8604
8615
|
var U = K("%AsyncGenerator%");
|
|
8605
|
-
U &&
|
|
8616
|
+
U && E && (z = E(U.prototype));
|
|
8606
8617
|
}
|
|
8607
8618
|
return _[B] = z, z;
|
|
8608
8619
|
}, se = {
|
|
@@ -8691,11 +8702,11 @@ function Ye() {
|
|
|
8691
8702
|
throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
8692
8703
|
var D = j(B), U = D.length > 0 ? D[0] : "", ue = V("%" + U + "%", z), he = ue.name, pe = ue.value, ve = !1, Ae = ue.alias;
|
|
8693
8704
|
Ae && (U = Ae[0], fe(D, ge([0, 1], Ae)));
|
|
8694
|
-
for (var ze = 1,
|
|
8705
|
+
for (var ze = 1, Me = !0; ze < D.length; ze += 1) {
|
|
8695
8706
|
var Ce = D[ze], je = Ne(Ce, 0, 1), qe = Ne(Ce, -1);
|
|
8696
8707
|
if ((je === '"' || je === "'" || je === "`" || qe === '"' || qe === "'" || qe === "`") && je !== qe)
|
|
8697
8708
|
throw new a("property names with quotes must have matching quotes");
|
|
8698
|
-
if ((Ce === "constructor" || !
|
|
8709
|
+
if ((Ce === "constructor" || !Me) && (ve = !0), U += "." + Ce, he = "%" + U + "%", J(_, he))
|
|
8699
8710
|
pe = _[he];
|
|
8700
8711
|
else if (pe != null) {
|
|
8701
8712
|
if (!(Ce in pe)) {
|
|
@@ -8705,20 +8716,20 @@ function Ye() {
|
|
|
8705
8716
|
}
|
|
8706
8717
|
if (S && ze + 1 >= D.length) {
|
|
8707
8718
|
var Fe = S(pe, Ce);
|
|
8708
|
-
|
|
8719
|
+
Me = !!Fe, Me && "get" in Fe && !("originalValue" in Fe.get) ? pe = Fe.get : pe = pe[Ce];
|
|
8709
8720
|
} else
|
|
8710
|
-
|
|
8711
|
-
|
|
8721
|
+
Me = J(pe, Ce), pe = pe[Ce];
|
|
8722
|
+
Me && !ve && (_[he] = pe);
|
|
8712
8723
|
}
|
|
8713
8724
|
}
|
|
8714
8725
|
return pe;
|
|
8715
8726
|
}, Wn;
|
|
8716
8727
|
}
|
|
8717
8728
|
var Gn, Sc;
|
|
8718
|
-
function
|
|
8729
|
+
function Iy() {
|
|
8719
8730
|
if (Sc) return Gn;
|
|
8720
8731
|
Sc = 1;
|
|
8721
|
-
var e = /* @__PURE__ */ Ye(), t = /* @__PURE__ */
|
|
8732
|
+
var e = /* @__PURE__ */ Ye(), t = /* @__PURE__ */ Mo(), r = /* @__PURE__ */ Eo()(), n = /* @__PURE__ */ pt(), i = /* @__PURE__ */ Pe(), o = e("%Math.floor%");
|
|
8722
8733
|
return Gn = function(c, l) {
|
|
8723
8734
|
if (typeof c != "function")
|
|
8724
8735
|
throw new i("`fn` is not a function");
|
|
@@ -8745,7 +8756,7 @@ function C1() {
|
|
|
8745
8756
|
}, Gn;
|
|
8746
8757
|
}
|
|
8747
8758
|
var Vn, Ac;
|
|
8748
|
-
function
|
|
8759
|
+
function Ty() {
|
|
8749
8760
|
if (Ac) return Vn;
|
|
8750
8761
|
Ac = 1;
|
|
8751
8762
|
var e = Jt(), t = Lo(), r = Xl();
|
|
@@ -8756,7 +8767,7 @@ function I1() {
|
|
|
8756
8767
|
var Cc;
|
|
8757
8768
|
function Ot() {
|
|
8758
8769
|
return Cc || (Cc = 1, function(e) {
|
|
8759
|
-
var t = /* @__PURE__ */
|
|
8770
|
+
var t = /* @__PURE__ */ Iy(), r = /* @__PURE__ */ kr(), n = Do(), i = Ty();
|
|
8760
8771
|
e.exports = function(a) {
|
|
8761
8772
|
var c = n(arguments), l = a.length - (arguments.length - 1);
|
|
8762
8773
|
return t(
|
|
@@ -8794,8 +8805,8 @@ function Kl() {
|
|
|
8794
8805
|
for (var d = 1; d < arguments.length; ++d) {
|
|
8795
8806
|
var h = n(arguments[d]), p = e(h), m = t && (n.getOwnPropertySymbols || a);
|
|
8796
8807
|
if (m)
|
|
8797
|
-
for (var g = m(h),
|
|
8798
|
-
var w = g[
|
|
8808
|
+
for (var g = m(h), x = 0; x < g.length; ++x) {
|
|
8809
|
+
var w = g[x];
|
|
8799
8810
|
o(h, w) && i(p, w);
|
|
8800
8811
|
}
|
|
8801
8812
|
for (var S = 0; S < p.length; ++S) {
|
|
@@ -8838,7 +8849,7 @@ function Jl() {
|
|
|
8838
8849
|
}, Kn;
|
|
8839
8850
|
}
|
|
8840
8851
|
var Jn, Rc;
|
|
8841
|
-
function
|
|
8852
|
+
function Oy() {
|
|
8842
8853
|
if (Rc) return Jn;
|
|
8843
8854
|
Rc = 1;
|
|
8844
8855
|
var e = mt(), t = Jl();
|
|
@@ -8854,10 +8865,10 @@ function T1() {
|
|
|
8854
8865
|
}, Jn;
|
|
8855
8866
|
}
|
|
8856
8867
|
var Zn, Pc;
|
|
8857
|
-
function
|
|
8868
|
+
function Ry() {
|
|
8858
8869
|
if (Pc) return Zn;
|
|
8859
8870
|
Pc = 1;
|
|
8860
|
-
var e = mt(), t = Ot(), r = Kl(), n = Jl(), i =
|
|
8871
|
+
var e = mt(), t = Ot(), r = Kl(), n = Jl(), i = Oy(), o = t.apply(n()), a = function(l, u) {
|
|
8861
8872
|
return o(Object, arguments);
|
|
8862
8873
|
};
|
|
8863
8874
|
return e(a, {
|
|
@@ -8876,10 +8887,10 @@ function Zl() {
|
|
|
8876
8887
|
return typeof a == "function" && r(i, ".prototype.") > -1 ? t(a) : a;
|
|
8877
8888
|
}, Qn;
|
|
8878
8889
|
}
|
|
8879
|
-
var ei,
|
|
8880
|
-
function
|
|
8881
|
-
if (
|
|
8882
|
-
|
|
8890
|
+
var ei, Mc;
|
|
8891
|
+
function Py() {
|
|
8892
|
+
if (Mc) return ei;
|
|
8893
|
+
Mc = 1;
|
|
8883
8894
|
var e = function() {
|
|
8884
8895
|
return typeof (function() {
|
|
8885
8896
|
}).name == "string";
|
|
@@ -8903,11 +8914,11 @@ function R1() {
|
|
|
8903
8914
|
}).bind().name !== "";
|
|
8904
8915
|
}, ei = e, ei;
|
|
8905
8916
|
}
|
|
8906
|
-
var ti,
|
|
8907
|
-
function
|
|
8908
|
-
if (
|
|
8909
|
-
|
|
8910
|
-
var e = /* @__PURE__ */
|
|
8917
|
+
var ti, Ec;
|
|
8918
|
+
function Ny() {
|
|
8919
|
+
if (Ec) return ti;
|
|
8920
|
+
Ec = 1;
|
|
8921
|
+
var e = /* @__PURE__ */ Mo(), t = /* @__PURE__ */ Eo()(), r = Py().functionsHaveConfigurableNames(), n = /* @__PURE__ */ Pe();
|
|
8911
8922
|
return ti = function(o, a) {
|
|
8912
8923
|
if (typeof o != "function")
|
|
8913
8924
|
throw new n("`fn` is not a function");
|
|
@@ -8931,7 +8942,7 @@ var ri, $c;
|
|
|
8931
8942
|
function Ql() {
|
|
8932
8943
|
if ($c) return ri;
|
|
8933
8944
|
$c = 1;
|
|
8934
|
-
var e =
|
|
8945
|
+
var e = Ny(), t = /* @__PURE__ */ Pe(), r = Object;
|
|
8935
8946
|
return ri = e(function() {
|
|
8936
8947
|
if (this == null || this !== r(this))
|
|
8937
8948
|
throw new t("RegExp.prototype.flags getter called on non-object");
|
|
@@ -8965,7 +8976,7 @@ function eu() {
|
|
|
8965
8976
|
}, ni;
|
|
8966
8977
|
}
|
|
8967
8978
|
var ii, _c;
|
|
8968
|
-
function
|
|
8979
|
+
function My() {
|
|
8969
8980
|
if (_c) return ii;
|
|
8970
8981
|
_c = 1;
|
|
8971
8982
|
var e = mt().supportsDescriptors, t = eu(), r = /* @__PURE__ */ pt(), n = Object.defineProperty, i = /* @__PURE__ */ Wl(), o = Yl(), a = /a/;
|
|
@@ -8981,10 +8992,10 @@ function N1() {
|
|
|
8981
8992
|
}, ii;
|
|
8982
8993
|
}
|
|
8983
8994
|
var oi, Lc;
|
|
8984
|
-
function
|
|
8995
|
+
function Ey() {
|
|
8985
8996
|
if (Lc) return oi;
|
|
8986
8997
|
Lc = 1;
|
|
8987
|
-
var e = mt(), t = Ot(), r = Ql(), n = eu(), i =
|
|
8998
|
+
var e = mt(), t = Ot(), r = Ql(), n = eu(), i = My(), o = t(n());
|
|
8988
8999
|
return e(o, {
|
|
8989
9000
|
getPolyfill: n,
|
|
8990
9001
|
implementation: r,
|
|
@@ -9013,31 +9024,31 @@ function tu() {
|
|
|
9013
9024
|
}();
|
|
9014
9025
|
return n.isLegacyArguments = i, ci = o ? n : i, ci;
|
|
9015
9026
|
}
|
|
9016
|
-
const
|
|
9027
|
+
const $y = {}, ky = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9017
9028
|
__proto__: null,
|
|
9018
|
-
default:
|
|
9019
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
9029
|
+
default: $y
|
|
9030
|
+
}, Symbol.toStringTag, { value: "Module" })), _y = /* @__PURE__ */ cy(ky);
|
|
9020
9031
|
var si, zc;
|
|
9021
9032
|
function Lr() {
|
|
9022
9033
|
if (zc) return si;
|
|
9023
9034
|
zc = 1;
|
|
9024
|
-
var e = typeof Map == "function" && Map.prototype, t = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, r = e && t && typeof t.get == "function" ? t.get : null, n = e && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, o = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, a = i && o && typeof o.get == "function" ? o.get : null, c = i && Set.prototype.forEach, l = typeof WeakMap == "function" && WeakMap.prototype, u = l ? WeakMap.prototype.has : null, f = typeof WeakSet == "function" && WeakSet.prototype, d = f ? WeakSet.prototype.has : null, h = typeof WeakRef == "function" && WeakRef.prototype, p = h ? WeakRef.prototype.deref : null, m = Boolean.prototype.valueOf, g = Object.prototype.toString,
|
|
9035
|
+
var e = typeof Map == "function" && Map.prototype, t = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, r = e && t && typeof t.get == "function" ? t.get : null, n = e && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, o = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, a = i && o && typeof o.get == "function" ? o.get : null, c = i && Set.prototype.forEach, l = typeof WeakMap == "function" && WeakMap.prototype, u = l ? WeakMap.prototype.has : null, f = typeof WeakSet == "function" && WeakSet.prototype, d = f ? WeakSet.prototype.has : null, h = typeof WeakRef == "function" && WeakRef.prototype, p = h ? WeakRef.prototype.deref : null, m = Boolean.prototype.valueOf, g = Object.prototype.toString, x = Function.prototype.toString, w = String.prototype.match, S = String.prototype.slice, b = String.prototype.replace, A = String.prototype.toUpperCase, P = String.prototype.toLowerCase, M = RegExp.prototype.test, E = Array.prototype.concat, O = Array.prototype.join, C = Array.prototype.slice, k = Math.floor, R = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, N = Object.getOwnPropertySymbols, L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, _ = typeof Symbol == "function" && typeof Symbol.iterator == "object", G = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === _ || !0) ? Symbol.toStringTag : null, ee = Object.prototype.propertyIsEnumerable, se = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(v) {
|
|
9025
9036
|
return v.__proto__;
|
|
9026
9037
|
} : null);
|
|
9027
|
-
function re(v,
|
|
9028
|
-
if (v === 1 / 0 || v === -1 / 0 || v !== v || v && v > -1e3 && v < 1e3 ||
|
|
9029
|
-
return
|
|
9038
|
+
function re(v, y) {
|
|
9039
|
+
if (v === 1 / 0 || v === -1 / 0 || v !== v || v && v > -1e3 && v < 1e3 || M.call(/e/, y))
|
|
9040
|
+
return y;
|
|
9030
9041
|
var Q = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
9031
9042
|
if (typeof v == "number") {
|
|
9032
9043
|
var ne = v < 0 ? -k(-v) : k(v);
|
|
9033
9044
|
if (ne !== v) {
|
|
9034
|
-
var ie = String(ne), W = S.call(
|
|
9045
|
+
var ie = String(ne), W = S.call(y, ie.length + 1);
|
|
9035
9046
|
return b.call(ie, Q, "$&_") + "." + b.call(b.call(W, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
9036
9047
|
}
|
|
9037
9048
|
}
|
|
9038
|
-
return b.call(
|
|
9049
|
+
return b.call(y, Q, "$&_");
|
|
9039
9050
|
}
|
|
9040
|
-
var J =
|
|
9051
|
+
var J = _y, ge = J.custom, fe = ue(ge) ? ge : null, Ke = {
|
|
9041
9052
|
__proto__: null,
|
|
9042
9053
|
double: '"',
|
|
9043
9054
|
single: "'"
|
|
@@ -9046,7 +9057,7 @@ function Lr() {
|
|
|
9046
9057
|
double: /(["\\])/g,
|
|
9047
9058
|
single: /(['\\])/g
|
|
9048
9059
|
};
|
|
9049
|
-
si = function v(
|
|
9060
|
+
si = function v(y, Q, ne, ie) {
|
|
9050
9061
|
var W = Q || {};
|
|
9051
9062
|
if (ve(W, "quoteStyle") && !ve(Ke, W.quoteStyle))
|
|
9052
9063
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -9060,33 +9071,33 @@ function Lr() {
|
|
|
9060
9071
|
if (ve(W, "numericSeparator") && typeof W.numericSeparator != "boolean")
|
|
9061
9072
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
9062
9073
|
var st = W.numericSeparator;
|
|
9063
|
-
if (typeof
|
|
9074
|
+
if (typeof y > "u")
|
|
9064
9075
|
return "undefined";
|
|
9065
|
-
if (
|
|
9076
|
+
if (y === null)
|
|
9066
9077
|
return "null";
|
|
9067
|
-
if (typeof
|
|
9068
|
-
return
|
|
9069
|
-
if (typeof
|
|
9070
|
-
return vt(
|
|
9071
|
-
if (typeof
|
|
9072
|
-
if (
|
|
9073
|
-
return 1 / 0 /
|
|
9074
|
-
var Ie = String(
|
|
9075
|
-
return st ? re(
|
|
9076
|
-
}
|
|
9077
|
-
if (typeof
|
|
9078
|
-
var et = String(
|
|
9079
|
-
return st ? re(
|
|
9078
|
+
if (typeof y == "boolean")
|
|
9079
|
+
return y ? "true" : "false";
|
|
9080
|
+
if (typeof y == "string")
|
|
9081
|
+
return vt(y, W);
|
|
9082
|
+
if (typeof y == "number") {
|
|
9083
|
+
if (y === 0)
|
|
9084
|
+
return 1 / 0 / y > 0 ? "0" : "-0";
|
|
9085
|
+
var Ie = String(y);
|
|
9086
|
+
return st ? re(y, Ie) : Ie;
|
|
9087
|
+
}
|
|
9088
|
+
if (typeof y == "bigint") {
|
|
9089
|
+
var et = String(y) + "n";
|
|
9090
|
+
return st ? re(y, et) : et;
|
|
9080
9091
|
}
|
|
9081
9092
|
var zr = typeof W.depth > "u" ? 5 : W.depth;
|
|
9082
|
-
if (typeof ne > "u" && (ne = 0), ne >= zr && zr > 0 && typeof
|
|
9083
|
-
return j(
|
|
9093
|
+
if (typeof ne > "u" && (ne = 0), ne >= zr && zr > 0 && typeof y == "object")
|
|
9094
|
+
return j(y) ? "[Array]" : "[Object]";
|
|
9084
9095
|
var xt = vu(W, ne);
|
|
9085
9096
|
if (typeof ie > "u")
|
|
9086
9097
|
ie = [];
|
|
9087
|
-
else if (
|
|
9098
|
+
else if (Me(ie, y) >= 0)
|
|
9088
9099
|
return "[Circular]";
|
|
9089
|
-
function
|
|
9100
|
+
function Ee(yt, tr, yu) {
|
|
9090
9101
|
if (tr && (ie = C.call(ie), ie.push(tr)), yu) {
|
|
9091
9102
|
var Xo = {
|
|
9092
9103
|
depth: W.depth
|
|
@@ -9095,73 +9106,73 @@ function Lr() {
|
|
|
9095
9106
|
}
|
|
9096
9107
|
return v(yt, W, ne + 1, ie);
|
|
9097
9108
|
}
|
|
9098
|
-
if (typeof
|
|
9099
|
-
var qo = ze(
|
|
9109
|
+
if (typeof y == "function" && !K(y)) {
|
|
9110
|
+
var qo = ze(y), Fo = Qt(y, Ee);
|
|
9100
9111
|
return "[Function" + (qo ? ": " + qo : " (anonymous)") + "]" + (Fo.length > 0 ? " { " + O.call(Fo, ", ") + " }" : "");
|
|
9101
9112
|
}
|
|
9102
|
-
if (ue(
|
|
9103
|
-
var Ho = _ ? b.call(String(
|
|
9104
|
-
return typeof
|
|
9113
|
+
if (ue(y)) {
|
|
9114
|
+
var Ho = _ ? b.call(String(y), /^(Symbol\(.*\))_[^)]*$/, "$1") : L.call(y);
|
|
9115
|
+
return typeof y == "object" && !_ ? Ze(Ho) : Ho;
|
|
9105
9116
|
}
|
|
9106
|
-
if (Je(
|
|
9107
|
-
for (var Pt = "<" + P.call(String(
|
|
9117
|
+
if (Je(y)) {
|
|
9118
|
+
for (var Pt = "<" + P.call(String(y.nodeName)), jr = y.attributes || [], er = 0; er < jr.length; er++)
|
|
9108
9119
|
Pt += " " + jr[er].name + "=" + I($(jr[er].value), "double", W);
|
|
9109
|
-
return Pt += ">",
|
|
9120
|
+
return Pt += ">", y.childNodes && y.childNodes.length && (Pt += "..."), Pt += "</" + P.call(String(y.nodeName)) + ">", Pt;
|
|
9110
9121
|
}
|
|
9111
|
-
if (j(
|
|
9112
|
-
if (
|
|
9122
|
+
if (j(y)) {
|
|
9123
|
+
if (y.length === 0)
|
|
9113
9124
|
return "[]";
|
|
9114
|
-
var qr = Qt(
|
|
9125
|
+
var qr = Qt(y, Ee);
|
|
9115
9126
|
return xt && !gu(qr) ? "[" + Br(qr, xt) + "]" : "[ " + O.call(qr, ", ") + " ]";
|
|
9116
9127
|
}
|
|
9117
|
-
if (B(
|
|
9118
|
-
var Fr = Qt(
|
|
9119
|
-
return !("cause" in Error.prototype) && "cause" in
|
|
9128
|
+
if (B(y)) {
|
|
9129
|
+
var Fr = Qt(y, Ee);
|
|
9130
|
+
return !("cause" in Error.prototype) && "cause" in y && !ee.call(y, "cause") ? "{ [" + String(y) + "] " + O.call(E.call("[cause]: " + Ee(y.cause), Fr), ", ") + " }" : Fr.length === 0 ? "[" + String(y) + "]" : "{ [" + String(y) + "] " + O.call(Fr, ", ") + " }";
|
|
9120
9131
|
}
|
|
9121
|
-
if (typeof
|
|
9122
|
-
if (fe && typeof
|
|
9123
|
-
return J(
|
|
9124
|
-
if (Qe !== "symbol" && typeof
|
|
9125
|
-
return
|
|
9132
|
+
if (typeof y == "object" && Qe) {
|
|
9133
|
+
if (fe && typeof y[fe] == "function" && J)
|
|
9134
|
+
return J(y, { depth: zr - ne });
|
|
9135
|
+
if (Qe !== "symbol" && typeof y.inspect == "function")
|
|
9136
|
+
return y.inspect();
|
|
9126
9137
|
}
|
|
9127
|
-
if (Ce(
|
|
9138
|
+
if (Ce(y)) {
|
|
9128
9139
|
var Uo = [];
|
|
9129
|
-
return n && n.call(
|
|
9130
|
-
Uo.push(
|
|
9131
|
-
}), jo("Map", r.call(
|
|
9140
|
+
return n && n.call(y, function(yt, tr) {
|
|
9141
|
+
Uo.push(Ee(tr, y, !0) + " => " + Ee(yt, y));
|
|
9142
|
+
}), jo("Map", r.call(y), Uo, xt);
|
|
9132
9143
|
}
|
|
9133
|
-
if (Fe(
|
|
9144
|
+
if (Fe(y)) {
|
|
9134
9145
|
var Wo = [];
|
|
9135
|
-
return c && c.call(
|
|
9136
|
-
Wo.push(
|
|
9137
|
-
}), jo("Set", a.call(
|
|
9146
|
+
return c && c.call(y, function(yt) {
|
|
9147
|
+
Wo.push(Ee(yt, y));
|
|
9148
|
+
}), jo("Set", a.call(y), Wo, xt);
|
|
9138
9149
|
}
|
|
9139
|
-
if (je(
|
|
9150
|
+
if (je(y))
|
|
9140
9151
|
return Dr("WeakMap");
|
|
9141
|
-
if (Zt(
|
|
9152
|
+
if (Zt(y))
|
|
9142
9153
|
return Dr("WeakSet");
|
|
9143
|
-
if (qe(
|
|
9154
|
+
if (qe(y))
|
|
9144
9155
|
return Dr("WeakRef");
|
|
9145
|
-
if (D(
|
|
9146
|
-
return Ze(
|
|
9147
|
-
if (he(
|
|
9148
|
-
return Ze(
|
|
9149
|
-
if (U(
|
|
9150
|
-
return Ze(m.call(
|
|
9151
|
-
if (z(
|
|
9152
|
-
return Ze(
|
|
9153
|
-
if (typeof window < "u" &&
|
|
9156
|
+
if (D(y))
|
|
9157
|
+
return Ze(Ee(Number(y)));
|
|
9158
|
+
if (he(y))
|
|
9159
|
+
return Ze(Ee(R.call(y)));
|
|
9160
|
+
if (U(y))
|
|
9161
|
+
return Ze(m.call(y));
|
|
9162
|
+
if (z(y))
|
|
9163
|
+
return Ze(Ee(String(y)));
|
|
9164
|
+
if (typeof window < "u" && y === window)
|
|
9154
9165
|
return "{ [object Window] }";
|
|
9155
|
-
if (typeof globalThis < "u" &&
|
|
9166
|
+
if (typeof globalThis < "u" && y === globalThis || typeof Sr < "u" && y === Sr)
|
|
9156
9167
|
return "{ [object globalThis] }";
|
|
9157
|
-
if (!V(
|
|
9158
|
-
var Hr = Qt(
|
|
9168
|
+
if (!V(y) && !K(y)) {
|
|
9169
|
+
var Hr = Qt(y, Ee), Go = se ? se(y) === Object.prototype : y instanceof Object || y.constructor === Object, Ur = y instanceof Object ? "" : "null prototype", Vo = !Go && G && Object(y) === y && G in y ? S.call(Ae(y), 8, -1) : Ur ? "Object" : "", xu = Go || typeof y.constructor != "function" ? "" : y.constructor.name ? y.constructor.name + " " : "", Wr = xu + (Vo || Ur ? "[" + O.call(E.call([], Vo || [], Ur || []), ": ") + "] " : "");
|
|
9159
9170
|
return Hr.length === 0 ? Wr + "{}" : xt ? Wr + "{" + Br(Hr, xt) + "}" : Wr + "{ " + O.call(Hr, ", ") + " }";
|
|
9160
9171
|
}
|
|
9161
|
-
return String(
|
|
9172
|
+
return String(y);
|
|
9162
9173
|
};
|
|
9163
|
-
function I(v,
|
|
9164
|
-
var ne = Q.quoteStyle ||
|
|
9174
|
+
function I(v, y, Q) {
|
|
9175
|
+
var ne = Q.quoteStyle || y, ie = Ke[ne];
|
|
9165
9176
|
return ie + v + ie;
|
|
9166
9177
|
}
|
|
9167
9178
|
function $(v) {
|
|
@@ -9216,8 +9227,8 @@ function Lr() {
|
|
|
9216
9227
|
var pe = Object.prototype.hasOwnProperty || function(v) {
|
|
9217
9228
|
return v in this;
|
|
9218
9229
|
};
|
|
9219
|
-
function ve(v,
|
|
9220
|
-
return pe.call(v,
|
|
9230
|
+
function ve(v, y) {
|
|
9231
|
+
return pe.call(v, y);
|
|
9221
9232
|
}
|
|
9222
9233
|
function Ae(v) {
|
|
9223
9234
|
return g.call(v);
|
|
@@ -9225,14 +9236,14 @@ function Lr() {
|
|
|
9225
9236
|
function ze(v) {
|
|
9226
9237
|
if (v.name)
|
|
9227
9238
|
return v.name;
|
|
9228
|
-
var
|
|
9229
|
-
return
|
|
9239
|
+
var y = w.call(x.call(v), /^function\s*([\w$]+)/);
|
|
9240
|
+
return y ? y[1] : null;
|
|
9230
9241
|
}
|
|
9231
|
-
function
|
|
9242
|
+
function Me(v, y) {
|
|
9232
9243
|
if (v.indexOf)
|
|
9233
|
-
return v.indexOf(
|
|
9244
|
+
return v.indexOf(y);
|
|
9234
9245
|
for (var Q = 0, ne = v.length; Q < ne; Q++)
|
|
9235
|
-
if (v[Q] ===
|
|
9246
|
+
if (v[Q] === y)
|
|
9236
9247
|
return Q;
|
|
9237
9248
|
return -1;
|
|
9238
9249
|
}
|
|
@@ -9308,25 +9319,25 @@ function Lr() {
|
|
|
9308
9319
|
function Je(v) {
|
|
9309
9320
|
return !v || typeof v != "object" ? !1 : typeof HTMLElement < "u" && v instanceof HTMLElement ? !0 : typeof v.nodeName == "string" && typeof v.getAttribute == "function";
|
|
9310
9321
|
}
|
|
9311
|
-
function vt(v,
|
|
9312
|
-
if (v.length >
|
|
9313
|
-
var Q = v.length -
|
|
9314
|
-
return vt(S.call(v, 0,
|
|
9322
|
+
function vt(v, y) {
|
|
9323
|
+
if (v.length > y.maxStringLength) {
|
|
9324
|
+
var Q = v.length - y.maxStringLength, ne = "... " + Q + " more character" + (Q > 1 ? "s" : "");
|
|
9325
|
+
return vt(S.call(v, 0, y.maxStringLength), y) + ne;
|
|
9315
9326
|
}
|
|
9316
|
-
var ie = Ne[
|
|
9327
|
+
var ie = Ne[y.quoteStyle || "single"];
|
|
9317
9328
|
ie.lastIndex = 0;
|
|
9318
9329
|
var W = b.call(b.call(v, ie, "\\$1"), /[\x00-\x1f]/g, Rt);
|
|
9319
|
-
return I(W, "single",
|
|
9330
|
+
return I(W, "single", y);
|
|
9320
9331
|
}
|
|
9321
9332
|
function Rt(v) {
|
|
9322
|
-
var
|
|
9333
|
+
var y = v.charCodeAt(0), Q = {
|
|
9323
9334
|
8: "b",
|
|
9324
9335
|
9: "t",
|
|
9325
9336
|
10: "n",
|
|
9326
9337
|
12: "f",
|
|
9327
9338
|
13: "r"
|
|
9328
|
-
}[
|
|
9329
|
-
return Q ? "\\" + Q : "\\x" + (
|
|
9339
|
+
}[y];
|
|
9340
|
+
return Q ? "\\" + Q : "\\x" + (y < 16 ? "0" : "") + A.call(y.toString(16));
|
|
9330
9341
|
}
|
|
9331
9342
|
function Ze(v) {
|
|
9332
9343
|
return "Object(" + v + ")";
|
|
@@ -9334,18 +9345,18 @@ function Lr() {
|
|
|
9334
9345
|
function Dr(v) {
|
|
9335
9346
|
return v + " { ? }";
|
|
9336
9347
|
}
|
|
9337
|
-
function jo(v,
|
|
9348
|
+
function jo(v, y, Q, ne) {
|
|
9338
9349
|
var ie = ne ? Br(Q, ne) : O.call(Q, ", ");
|
|
9339
|
-
return v + " (" +
|
|
9350
|
+
return v + " (" + y + ") {" + ie + "}";
|
|
9340
9351
|
}
|
|
9341
9352
|
function gu(v) {
|
|
9342
|
-
for (var
|
|
9343
|
-
if (
|
|
9353
|
+
for (var y = 0; y < v.length; y++)
|
|
9354
|
+
if (Me(v[y], `
|
|
9344
9355
|
`) >= 0)
|
|
9345
9356
|
return !1;
|
|
9346
9357
|
return !0;
|
|
9347
9358
|
}
|
|
9348
|
-
function vu(v,
|
|
9359
|
+
function vu(v, y) {
|
|
9349
9360
|
var Q;
|
|
9350
9361
|
if (v.indent === " ")
|
|
9351
9362
|
Q = " ";
|
|
@@ -9355,23 +9366,23 @@ function Lr() {
|
|
|
9355
9366
|
return null;
|
|
9356
9367
|
return {
|
|
9357
9368
|
base: Q,
|
|
9358
|
-
prev: O.call(Array(
|
|
9369
|
+
prev: O.call(Array(y + 1), Q)
|
|
9359
9370
|
};
|
|
9360
9371
|
}
|
|
9361
|
-
function Br(v,
|
|
9372
|
+
function Br(v, y) {
|
|
9362
9373
|
if (v.length === 0)
|
|
9363
9374
|
return "";
|
|
9364
9375
|
var Q = `
|
|
9365
|
-
` +
|
|
9376
|
+
` + y.prev + y.base;
|
|
9366
9377
|
return Q + O.call(v, "," + Q) + `
|
|
9367
|
-
` +
|
|
9378
|
+
` + y.prev;
|
|
9368
9379
|
}
|
|
9369
|
-
function Qt(v,
|
|
9380
|
+
function Qt(v, y) {
|
|
9370
9381
|
var Q = j(v), ne = [];
|
|
9371
9382
|
if (Q) {
|
|
9372
9383
|
ne.length = v.length;
|
|
9373
9384
|
for (var ie = 0; ie < v.length; ie++)
|
|
9374
|
-
ne[ie] = ve(v, ie) ?
|
|
9385
|
+
ne[ie] = ve(v, ie) ? y(v[ie], v) : "";
|
|
9375
9386
|
}
|
|
9376
9387
|
var W = typeof N == "function" ? N(v) : [], Qe;
|
|
9377
9388
|
if (_) {
|
|
@@ -9380,16 +9391,16 @@ function Lr() {
|
|
|
9380
9391
|
Qe["$" + W[st]] = W[st];
|
|
9381
9392
|
}
|
|
9382
9393
|
for (var Ie in v)
|
|
9383
|
-
ve(v, Ie) && (Q && String(Number(Ie)) === Ie && Ie < v.length || _ && Qe["$" + Ie] instanceof Symbol || (
|
|
9394
|
+
ve(v, Ie) && (Q && String(Number(Ie)) === Ie && Ie < v.length || _ && Qe["$" + Ie] instanceof Symbol || (M.call(/[^\w$]/, Ie) ? ne.push(y(Ie, v) + ": " + y(v[Ie], v)) : ne.push(Ie + ": " + y(v[Ie], v))));
|
|
9384
9395
|
if (typeof N == "function")
|
|
9385
9396
|
for (var et = 0; et < W.length; et++)
|
|
9386
|
-
ee.call(v, W[et]) && ne.push("[" +
|
|
9397
|
+
ee.call(v, W[et]) && ne.push("[" + y(W[et]) + "]: " + y(v[W[et]], v));
|
|
9387
9398
|
return ne;
|
|
9388
9399
|
}
|
|
9389
9400
|
return si;
|
|
9390
9401
|
}
|
|
9391
9402
|
var li, jc;
|
|
9392
|
-
function
|
|
9403
|
+
function Ly() {
|
|
9393
9404
|
if (jc) return li;
|
|
9394
9405
|
jc = 1;
|
|
9395
9406
|
var e = /* @__PURE__ */ Lr(), t = /* @__PURE__ */ Pe(), r = function(c, l, u) {
|
|
@@ -9481,7 +9492,7 @@ function ru() {
|
|
|
9481
9492
|
}, ui;
|
|
9482
9493
|
}
|
|
9483
9494
|
var di, Fc;
|
|
9484
|
-
function
|
|
9495
|
+
function Dy() {
|
|
9485
9496
|
if (Fc) return di;
|
|
9486
9497
|
Fc = 1;
|
|
9487
9498
|
var e = /* @__PURE__ */ Ye(), t = /* @__PURE__ */ Se(), r = /* @__PURE__ */ Lr(), n = ru(), i = /* @__PURE__ */ Pe(), o = e("%WeakMap%", !0), a = t("WeakMap.prototype.get", !0), c = t("WeakMap.prototype.set", !0), l = t("WeakMap.prototype.has", !0), u = t("WeakMap.prototype.delete", !0);
|
|
@@ -9519,7 +9530,7 @@ var fi, Hc;
|
|
|
9519
9530
|
function nu() {
|
|
9520
9531
|
if (Hc) return fi;
|
|
9521
9532
|
Hc = 1;
|
|
9522
|
-
var e = /* @__PURE__ */ Pe(), t = /* @__PURE__ */ Lr(), r =
|
|
9533
|
+
var e = /* @__PURE__ */ Pe(), t = /* @__PURE__ */ Lr(), r = Ly(), n = ru(), i = Dy(), o = i || n || r;
|
|
9523
9534
|
return fi = function() {
|
|
9524
9535
|
var c, l = {
|
|
9525
9536
|
assert: function(u) {
|
|
@@ -9543,7 +9554,7 @@ function nu() {
|
|
|
9543
9554
|
}, fi;
|
|
9544
9555
|
}
|
|
9545
9556
|
var hi, Uc;
|
|
9546
|
-
function
|
|
9557
|
+
function By() {
|
|
9547
9558
|
if (Uc) return hi;
|
|
9548
9559
|
Uc = 1;
|
|
9549
9560
|
var e = /* @__PURE__ */ Bo(), t = nu()(), r = /* @__PURE__ */ Pe(), n = {
|
|
@@ -9593,10 +9604,10 @@ function D1() {
|
|
|
9593
9604
|
return Object.freeze && Object.freeze(n), hi = n, hi;
|
|
9594
9605
|
}
|
|
9595
9606
|
var pi, Wc;
|
|
9596
|
-
function
|
|
9607
|
+
function zy() {
|
|
9597
9608
|
if (Wc) return pi;
|
|
9598
9609
|
Wc = 1;
|
|
9599
|
-
var e =
|
|
9610
|
+
var e = By(), t = /* @__PURE__ */ No(), r = typeof StopIteration == "object" ? StopIteration : null;
|
|
9600
9611
|
return pi = function(i) {
|
|
9601
9612
|
if (!r)
|
|
9602
9613
|
throw new t("this environment lacks StopIteration");
|
|
@@ -9711,10 +9722,10 @@ function cu() {
|
|
|
9711
9722
|
}, xi;
|
|
9712
9723
|
}
|
|
9713
9724
|
var Kc;
|
|
9714
|
-
function
|
|
9725
|
+
function jy() {
|
|
9715
9726
|
if (Kc) return $t.exports;
|
|
9716
9727
|
Kc = 1;
|
|
9717
|
-
var e = /* @__PURE__ */ tu(), t = /* @__PURE__ */
|
|
9728
|
+
var e = /* @__PURE__ */ tu(), t = /* @__PURE__ */ zy();
|
|
9718
9729
|
if (ko()() || _r()()) {
|
|
9719
9730
|
var r = Symbol.iterator;
|
|
9720
9731
|
$t.exports = function(C) {
|
|
@@ -9768,10 +9779,10 @@ function z1() {
|
|
|
9768
9779
|
return m(C, !0);
|
|
9769
9780
|
};
|
|
9770
9781
|
else {
|
|
9771
|
-
var g = /* @__PURE__ */ au(),
|
|
9782
|
+
var g = /* @__PURE__ */ au(), x = /* @__PURE__ */ cu(), w = l("Map.prototype.forEach", !0), S = l("Set.prototype.forEach", !0);
|
|
9772
9783
|
if (typeof process > "u" || !process.versions || !process.versions.node)
|
|
9773
9784
|
var b = l("Map.prototype.iterator", !0), A = l("Set.prototype.iterator", !0);
|
|
9774
|
-
var P = l("Map.prototype.@@iterator", !0) || l("Map.prototype._es6-shim iterator_", !0),
|
|
9785
|
+
var P = l("Map.prototype.@@iterator", !0) || l("Map.prototype._es6-shim iterator_", !0), M = l("Set.prototype.@@iterator", !0) || l("Set.prototype._es6-shim iterator_", !0), E = function(C) {
|
|
9775
9786
|
if (g(C)) {
|
|
9776
9787
|
if (b)
|
|
9777
9788
|
return t(b(C));
|
|
@@ -9784,11 +9795,11 @@ function z1() {
|
|
|
9784
9795
|
}), p(k);
|
|
9785
9796
|
}
|
|
9786
9797
|
}
|
|
9787
|
-
if (
|
|
9798
|
+
if (x(C)) {
|
|
9788
9799
|
if (A)
|
|
9789
9800
|
return t(A(C));
|
|
9790
|
-
if (
|
|
9791
|
-
return
|
|
9801
|
+
if (M)
|
|
9802
|
+
return M(C);
|
|
9792
9803
|
if (S) {
|
|
9793
9804
|
var R = [];
|
|
9794
9805
|
return S(C, function(N) {
|
|
@@ -9798,7 +9809,7 @@ function z1() {
|
|
|
9798
9809
|
}
|
|
9799
9810
|
};
|
|
9800
9811
|
$t.exports = function(C) {
|
|
9801
|
-
return
|
|
9812
|
+
return E(C) || m(C);
|
|
9802
9813
|
};
|
|
9803
9814
|
}
|
|
9804
9815
|
}
|
|
@@ -9825,7 +9836,7 @@ function lu() {
|
|
|
9825
9836
|
}, bi;
|
|
9826
9837
|
}
|
|
9827
9838
|
var wi, Qc;
|
|
9828
|
-
function
|
|
9839
|
+
function qy() {
|
|
9829
9840
|
if (Qc) return wi;
|
|
9830
9841
|
Qc = 1;
|
|
9831
9842
|
var e = lu(), t = mt();
|
|
@@ -9839,10 +9850,10 @@ function j1() {
|
|
|
9839
9850
|
}, wi;
|
|
9840
9851
|
}
|
|
9841
9852
|
var Si, es;
|
|
9842
|
-
function
|
|
9853
|
+
function Fy() {
|
|
9843
9854
|
if (es) return Si;
|
|
9844
9855
|
es = 1;
|
|
9845
|
-
var e = mt(), t = Ot(), r = su(), n = lu(), i =
|
|
9856
|
+
var e = mt(), t = Ot(), r = su(), n = lu(), i = qy(), o = t(n(), Object);
|
|
9846
9857
|
return e(o, {
|
|
9847
9858
|
getPolyfill: n,
|
|
9848
9859
|
implementation: r,
|
|
@@ -9869,7 +9880,7 @@ function uu() {
|
|
|
9869
9880
|
}, Ai;
|
|
9870
9881
|
}
|
|
9871
9882
|
var Ci, rs;
|
|
9872
|
-
function
|
|
9883
|
+
function Hy() {
|
|
9873
9884
|
if (rs) return Ci;
|
|
9874
9885
|
rs = 1;
|
|
9875
9886
|
var e = /* @__PURE__ */ Se(), t = e("Date.prototype.getDay"), r = function(c) {
|
|
@@ -9928,7 +9939,7 @@ function du() {
|
|
|
9928
9939
|
return Ii = i, Ii;
|
|
9929
9940
|
}
|
|
9930
9941
|
var Ti, is;
|
|
9931
|
-
function
|
|
9942
|
+
function Uy() {
|
|
9932
9943
|
if (is) return Ti;
|
|
9933
9944
|
is = 1;
|
|
9934
9945
|
var e = /* @__PURE__ */ Se(), t = e("SharedArrayBuffer.prototype.byteLength", !0);
|
|
@@ -9945,7 +9956,7 @@ function H1() {
|
|
|
9945
9956
|
}, Ti;
|
|
9946
9957
|
}
|
|
9947
9958
|
var Oi, os;
|
|
9948
|
-
function
|
|
9959
|
+
function Wy() {
|
|
9949
9960
|
if (os) return Oi;
|
|
9950
9961
|
os = 1;
|
|
9951
9962
|
var e = /* @__PURE__ */ Se(), t = e("Number.prototype.toString"), r = function(c) {
|
|
@@ -9960,7 +9971,7 @@ function U1() {
|
|
|
9960
9971
|
}, Oi;
|
|
9961
9972
|
}
|
|
9962
9973
|
var Ri, as;
|
|
9963
|
-
function
|
|
9974
|
+
function Gy() {
|
|
9964
9975
|
if (as) return Ri;
|
|
9965
9976
|
as = 1;
|
|
9966
9977
|
var e = /* @__PURE__ */ Se(), t = e("Boolean.prototype.toString"), r = e("Object.prototype.toString"), n = function(c) {
|
|
@@ -9975,7 +9986,7 @@ function W1() {
|
|
|
9975
9986
|
}, Ri;
|
|
9976
9987
|
}
|
|
9977
9988
|
var cr = { exports: {} }, Pi, cs;
|
|
9978
|
-
function
|
|
9989
|
+
function Vy() {
|
|
9979
9990
|
if (cs) return Pi;
|
|
9980
9991
|
cs = 1;
|
|
9981
9992
|
var e = /* @__PURE__ */ Se(), t = du(), r = e("RegExp.prototype.exec"), n = /* @__PURE__ */ Pe();
|
|
@@ -9988,10 +9999,10 @@ function G1() {
|
|
|
9988
9999
|
}, Pi;
|
|
9989
10000
|
}
|
|
9990
10001
|
var ss;
|
|
9991
|
-
function
|
|
10002
|
+
function Xy() {
|
|
9992
10003
|
if (ss) return cr.exports;
|
|
9993
10004
|
ss = 1;
|
|
9994
|
-
var e = /* @__PURE__ */ Se(), t = e("Object.prototype.toString"), r = ko()(), n = /* @__PURE__ */
|
|
10005
|
+
var e = /* @__PURE__ */ Se(), t = e("Object.prototype.toString"), r = ko()(), n = /* @__PURE__ */ Vy();
|
|
9995
10006
|
if (r) {
|
|
9996
10007
|
var i = e("Symbol.prototype.toString"), o = n(/^Symbol\(.*\)$/), a = function(l) {
|
|
9997
10008
|
return typeof l.valueOf() != "symbol" ? !1 : o(i(l));
|
|
@@ -10014,7 +10025,7 @@ function V1() {
|
|
|
10014
10025
|
return cr.exports;
|
|
10015
10026
|
}
|
|
10016
10027
|
var sr = { exports: {} }, Ni, ls;
|
|
10017
|
-
function
|
|
10028
|
+
function Yy() {
|
|
10018
10029
|
if (ls) return Ni;
|
|
10019
10030
|
ls = 1;
|
|
10020
10031
|
var e = typeof BigInt < "u" && BigInt;
|
|
@@ -10023,10 +10034,10 @@ function X1() {
|
|
|
10023
10034
|
}, Ni;
|
|
10024
10035
|
}
|
|
10025
10036
|
var us;
|
|
10026
|
-
function
|
|
10037
|
+
function Ky() {
|
|
10027
10038
|
if (us) return sr.exports;
|
|
10028
10039
|
us = 1;
|
|
10029
|
-
var e =
|
|
10040
|
+
var e = Yy()();
|
|
10030
10041
|
if (e) {
|
|
10031
10042
|
var t = BigInt.prototype.valueOf, r = function(i) {
|
|
10032
10043
|
try {
|
|
@@ -10044,12 +10055,12 @@ function Y1() {
|
|
|
10044
10055
|
};
|
|
10045
10056
|
return sr.exports;
|
|
10046
10057
|
}
|
|
10047
|
-
var
|
|
10048
|
-
function
|
|
10049
|
-
if (ds) return
|
|
10058
|
+
var Mi, ds;
|
|
10059
|
+
function Jy() {
|
|
10060
|
+
if (ds) return Mi;
|
|
10050
10061
|
ds = 1;
|
|
10051
|
-
var e = ou(), t =
|
|
10052
|
-
return
|
|
10062
|
+
var e = ou(), t = Wy(), r = Gy(), n = Xy(), i = Ky();
|
|
10063
|
+
return Mi = function(a) {
|
|
10053
10064
|
if (a == null || typeof a != "object" && typeof a != "function")
|
|
10054
10065
|
return null;
|
|
10055
10066
|
if (e(a))
|
|
@@ -10062,11 +10073,11 @@ function K1() {
|
|
|
10062
10073
|
return "Symbol";
|
|
10063
10074
|
if (i(a))
|
|
10064
10075
|
return "BigInt";
|
|
10065
|
-
},
|
|
10076
|
+
}, Mi;
|
|
10066
10077
|
}
|
|
10067
|
-
var
|
|
10068
|
-
function
|
|
10069
|
-
if (fs) return
|
|
10078
|
+
var Ei, fs;
|
|
10079
|
+
function Zy() {
|
|
10080
|
+
if (fs) return Ei;
|
|
10070
10081
|
fs = 1;
|
|
10071
10082
|
var e = typeof WeakMap == "function" && WeakMap.prototype ? WeakMap : null, t = typeof WeakSet == "function" && WeakSet.prototype ? WeakSet : null, r;
|
|
10072
10083
|
e || (r = function(a) {
|
|
@@ -10075,7 +10086,7 @@ function J1() {
|
|
|
10075
10086
|
var n = e ? e.prototype.has : null, i = t ? t.prototype.has : null;
|
|
10076
10087
|
return !r && !n && (r = function(a) {
|
|
10077
10088
|
return !1;
|
|
10078
|
-
}),
|
|
10089
|
+
}), Ei = r || function(a) {
|
|
10079
10090
|
if (!a || typeof a != "object")
|
|
10080
10091
|
return !1;
|
|
10081
10092
|
try {
|
|
@@ -10089,10 +10100,10 @@ function J1() {
|
|
|
10089
10100
|
} catch {
|
|
10090
10101
|
}
|
|
10091
10102
|
return !1;
|
|
10092
|
-
},
|
|
10103
|
+
}, Ei;
|
|
10093
10104
|
}
|
|
10094
10105
|
var lr = { exports: {} }, hs;
|
|
10095
|
-
function
|
|
10106
|
+
function Qy() {
|
|
10096
10107
|
if (hs) return lr.exports;
|
|
10097
10108
|
hs = 1;
|
|
10098
10109
|
var e = /* @__PURE__ */ Ye(), t = /* @__PURE__ */ Se(), r = e("%WeakSet%", !0), n = t("WeakSet.prototype.has", !0);
|
|
@@ -10120,10 +10131,10 @@ function Z1() {
|
|
|
10120
10131
|
return lr.exports;
|
|
10121
10132
|
}
|
|
10122
10133
|
var $i, ps;
|
|
10123
|
-
function
|
|
10134
|
+
function e0() {
|
|
10124
10135
|
if (ps) return $i;
|
|
10125
10136
|
ps = 1;
|
|
10126
|
-
var e = /* @__PURE__ */ au(), t = /* @__PURE__ */ cu(), r =
|
|
10137
|
+
var e = /* @__PURE__ */ au(), t = /* @__PURE__ */ cu(), r = Zy(), n = /* @__PURE__ */ Qy();
|
|
10127
10138
|
return $i = function(o) {
|
|
10128
10139
|
if (o && typeof o == "object") {
|
|
10129
10140
|
if (e(o))
|
|
@@ -10139,7 +10150,7 @@ function Q1() {
|
|
|
10139
10150
|
}, $i;
|
|
10140
10151
|
}
|
|
10141
10152
|
var ki, ms;
|
|
10142
|
-
function
|
|
10153
|
+
function t0() {
|
|
10143
10154
|
if (ms) return ki;
|
|
10144
10155
|
ms = 1;
|
|
10145
10156
|
var e = Function.prototype.toString, t = typeof Reflect == "object" && Reflect !== null && Reflect.apply, r, n;
|
|
@@ -10170,12 +10181,12 @@ function e0() {
|
|
|
10170
10181
|
} catch {
|
|
10171
10182
|
return !1;
|
|
10172
10183
|
}
|
|
10173
|
-
}, c = Object.prototype.toString, l = "[object Object]", u = "[object Function]", f = "[object GeneratorFunction]", d = "[object HTMLAllCollection]", h = "[object HTML document.all class]", p = "[object HTMLCollection]", m = typeof Symbol == "function" && !!Symbol.toStringTag, g = !(0 in [,]),
|
|
10184
|
+
}, c = Object.prototype.toString, l = "[object Object]", u = "[object Function]", f = "[object GeneratorFunction]", d = "[object HTMLAllCollection]", h = "[object HTML document.all class]", p = "[object HTMLCollection]", m = typeof Symbol == "function" && !!Symbol.toStringTag, g = !(0 in [,]), x = function() {
|
|
10174
10185
|
return !1;
|
|
10175
10186
|
};
|
|
10176
10187
|
if (typeof document == "object") {
|
|
10177
10188
|
var w = document.all;
|
|
10178
|
-
c.call(w) === c.call(document.all) && (
|
|
10189
|
+
c.call(w) === c.call(document.all) && (x = function(b) {
|
|
10179
10190
|
if ((g || !b) && (typeof b > "u" || typeof b == "object"))
|
|
10180
10191
|
try {
|
|
10181
10192
|
var A = c.call(b);
|
|
@@ -10186,7 +10197,7 @@ function e0() {
|
|
|
10186
10197
|
});
|
|
10187
10198
|
}
|
|
10188
10199
|
return ki = t ? function(b) {
|
|
10189
|
-
if (
|
|
10200
|
+
if (x(b))
|
|
10190
10201
|
return !0;
|
|
10191
10202
|
if (!b || typeof b != "function" && typeof b != "object")
|
|
10192
10203
|
return !1;
|
|
@@ -10198,7 +10209,7 @@ function e0() {
|
|
|
10198
10209
|
}
|
|
10199
10210
|
return !o(b) && a(b);
|
|
10200
10211
|
} : function(b) {
|
|
10201
|
-
if (
|
|
10212
|
+
if (x(b))
|
|
10202
10213
|
return !0;
|
|
10203
10214
|
if (!b || typeof b != "function" && typeof b != "object")
|
|
10204
10215
|
return !1;
|
|
@@ -10211,10 +10222,10 @@ function e0() {
|
|
|
10211
10222
|
}, ki;
|
|
10212
10223
|
}
|
|
10213
10224
|
var _i, gs;
|
|
10214
|
-
function
|
|
10225
|
+
function r0() {
|
|
10215
10226
|
if (gs) return _i;
|
|
10216
10227
|
gs = 1;
|
|
10217
|
-
var e =
|
|
10228
|
+
var e = t0(), t = Object.prototype.toString, r = Object.prototype.hasOwnProperty, n = function(l, u, f) {
|
|
10218
10229
|
for (var d = 0, h = l.length; d < h; d++)
|
|
10219
10230
|
r.call(l, d) && (f == null ? u(l[d], d, l) : u.call(f, l[d], d, l));
|
|
10220
10231
|
}, i = function(l, u, f) {
|
|
@@ -10235,7 +10246,7 @@ function t0() {
|
|
|
10235
10246
|
}, _i;
|
|
10236
10247
|
}
|
|
10237
10248
|
var Li, vs;
|
|
10238
|
-
function
|
|
10249
|
+
function n0() {
|
|
10239
10250
|
return vs || (vs = 1, Li = [
|
|
10240
10251
|
"Float16Array",
|
|
10241
10252
|
"Float32Array",
|
|
@@ -10252,10 +10263,10 @@ function r0() {
|
|
|
10252
10263
|
]), Li;
|
|
10253
10264
|
}
|
|
10254
10265
|
var Di, xs;
|
|
10255
|
-
function
|
|
10266
|
+
function i0() {
|
|
10256
10267
|
if (xs) return Di;
|
|
10257
10268
|
xs = 1;
|
|
10258
|
-
var e = /* @__PURE__ */
|
|
10269
|
+
var e = /* @__PURE__ */ n0(), t = typeof globalThis > "u" ? Sr : globalThis;
|
|
10259
10270
|
return Di = function() {
|
|
10260
10271
|
for (var n = [], i = 0; i < e.length; i++)
|
|
10261
10272
|
typeof t[e[i]] == "function" && (n[n.length] = e[i]);
|
|
@@ -10263,19 +10274,19 @@ function n0() {
|
|
|
10263
10274
|
}, Di;
|
|
10264
10275
|
}
|
|
10265
10276
|
var Bi, ys;
|
|
10266
|
-
function
|
|
10277
|
+
function o0() {
|
|
10267
10278
|
if (ys) return Bi;
|
|
10268
10279
|
ys = 1;
|
|
10269
|
-
var e =
|
|
10270
|
-
for (var S = 0; S <
|
|
10271
|
-
if (
|
|
10280
|
+
var e = r0(), t = /* @__PURE__ */ i0(), r = Ot(), n = /* @__PURE__ */ Se(), i = /* @__PURE__ */ pt(), o = n("Object.prototype.toString"), a = gt()(), c = typeof globalThis > "u" ? Sr : globalThis, l = t(), u = n("String.prototype.slice"), f = Object.getPrototypeOf, d = n("Array.prototype.indexOf", !0) || function(x, w) {
|
|
10281
|
+
for (var S = 0; S < x.length; S += 1)
|
|
10282
|
+
if (x[S] === w)
|
|
10272
10283
|
return S;
|
|
10273
10284
|
return -1;
|
|
10274
10285
|
}, h = { __proto__: null };
|
|
10275
10286
|
a && i && f ? e(l, function(g) {
|
|
10276
|
-
var
|
|
10277
|
-
if (Symbol.toStringTag in
|
|
10278
|
-
var w = f(
|
|
10287
|
+
var x = new c[g]();
|
|
10288
|
+
if (Symbol.toStringTag in x) {
|
|
10289
|
+
var w = f(x), S = i(w, Symbol.toStringTag);
|
|
10279
10290
|
if (!S) {
|
|
10280
10291
|
var b = f(w);
|
|
10281
10292
|
S = i(b, Symbol.toStringTag);
|
|
@@ -10283,10 +10294,10 @@ function i0() {
|
|
|
10283
10294
|
h["$" + g] = r(S.get);
|
|
10284
10295
|
}
|
|
10285
10296
|
}) : e(l, function(g) {
|
|
10286
|
-
var
|
|
10297
|
+
var x = new c[g](), w = x.slice || x.set;
|
|
10287
10298
|
w && (h["$" + g] = r(w));
|
|
10288
10299
|
});
|
|
10289
|
-
var p = function(
|
|
10300
|
+
var p = function(x) {
|
|
10290
10301
|
var w = !1;
|
|
10291
10302
|
return e(
|
|
10292
10303
|
// eslint-disable-next-line no-extra-parens
|
|
@@ -10297,12 +10308,12 @@ function i0() {
|
|
|
10297
10308
|
function(S, b) {
|
|
10298
10309
|
if (!w)
|
|
10299
10310
|
try {
|
|
10300
|
-
"$" + S(
|
|
10311
|
+
"$" + S(x) === b && (w = u(b, 1));
|
|
10301
10312
|
} catch {
|
|
10302
10313
|
}
|
|
10303
10314
|
}
|
|
10304
10315
|
), w;
|
|
10305
|
-
}, m = function(
|
|
10316
|
+
}, m = function(x) {
|
|
10306
10317
|
var w = !1;
|
|
10307
10318
|
return e(
|
|
10308
10319
|
// eslint-disable-next-line no-extra-parens
|
|
@@ -10313,24 +10324,24 @@ function i0() {
|
|
|
10313
10324
|
function(S, b) {
|
|
10314
10325
|
if (!w)
|
|
10315
10326
|
try {
|
|
10316
|
-
S(
|
|
10327
|
+
S(x), w = u(b, 1);
|
|
10317
10328
|
} catch {
|
|
10318
10329
|
}
|
|
10319
10330
|
}
|
|
10320
10331
|
), w;
|
|
10321
10332
|
};
|
|
10322
|
-
return Bi = function(
|
|
10323
|
-
if (!
|
|
10333
|
+
return Bi = function(x) {
|
|
10334
|
+
if (!x || typeof x != "object")
|
|
10324
10335
|
return !1;
|
|
10325
10336
|
if (!a) {
|
|
10326
|
-
var w = u(o(
|
|
10327
|
-
return d(l, w) > -1 ? w : w !== "Object" ? !1 : m(
|
|
10337
|
+
var w = u(o(x), 8, -1);
|
|
10338
|
+
return d(l, w) > -1 ? w : w !== "Object" ? !1 : m(x);
|
|
10328
10339
|
}
|
|
10329
|
-
return i ? p(
|
|
10340
|
+
return i ? p(x) : null;
|
|
10330
10341
|
}, Bi;
|
|
10331
10342
|
}
|
|
10332
10343
|
var zi, bs;
|
|
10333
|
-
function
|
|
10344
|
+
function a0() {
|
|
10334
10345
|
if (bs) return zi;
|
|
10335
10346
|
bs = 1;
|
|
10336
10347
|
var e = /* @__PURE__ */ Se(), t = e("ArrayBuffer.prototype.byteLength", !0), r = /* @__PURE__ */ uu();
|
|
@@ -10339,10 +10350,10 @@ function o0() {
|
|
|
10339
10350
|
}, zi;
|
|
10340
10351
|
}
|
|
10341
10352
|
var ji, ws;
|
|
10342
|
-
function
|
|
10353
|
+
function c0() {
|
|
10343
10354
|
if (ws) return ji;
|
|
10344
10355
|
ws = 1;
|
|
10345
|
-
var e =
|
|
10356
|
+
var e = Ry(), t = Zl(), r = Ey(), n = /* @__PURE__ */ Ye(), i = jy(), o = nu(), a = Fy(), c = /* @__PURE__ */ tu(), l = iu(), u = /* @__PURE__ */ uu(), f = /* @__PURE__ */ Hy(), d = du(), h = /* @__PURE__ */ Uy(), p = Po(), m = Jy(), g = /* @__PURE__ */ e0(), x = /* @__PURE__ */ o0(), w = /* @__PURE__ */ a0(), S = t("SharedArrayBuffer.prototype.byteLength", !0), b = t("Date.prototype.getTime"), A = Object.getPrototypeOf, P = t("Object.prototype.toString"), M = n("%Set%", !0), E = t("Map.prototype.has", !0), O = t("Map.prototype.get", !0), C = t("Map.prototype.size", !0), k = t("Set.prototype.add", !0), R = t("Set.prototype.delete", !0), N = t("Set.prototype.has", !0), L = t("Set.prototype.size", !0);
|
|
10346
10357
|
function _(I, $, F, j) {
|
|
10347
10358
|
for (var V = i(I), K; (K = V.next()) && !K.done; )
|
|
10348
10359
|
if (J($, K.value, F, j))
|
|
@@ -10360,7 +10371,7 @@ function a0() {
|
|
|
10360
10371
|
if (B != null)
|
|
10361
10372
|
return B;
|
|
10362
10373
|
var z = O($, B), D = e({}, V, { strict: !1 });
|
|
10363
|
-
return typeof z > "u" && !
|
|
10374
|
+
return typeof z > "u" && !E($, B) || !J(j, z, D, K) ? !1 : !E(I, B) && J(j, z, D, K);
|
|
10364
10375
|
}
|
|
10365
10376
|
function se(I, $, F) {
|
|
10366
10377
|
var j = G(F);
|
|
@@ -10398,11 +10409,11 @@ function a0() {
|
|
|
10398
10409
|
return !1;
|
|
10399
10410
|
for (var V = i(I), K = i($), B, z, D; (B = V.next()) && !B.done; )
|
|
10400
10411
|
if (B.value && typeof B.value == "object")
|
|
10401
|
-
D || (D = new
|
|
10412
|
+
D || (D = new M()), k(D, B.value);
|
|
10402
10413
|
else if (!N($, B.value)) {
|
|
10403
10414
|
if (F.strict || !se(I, $, B.value))
|
|
10404
10415
|
return !1;
|
|
10405
|
-
D || (D = new
|
|
10416
|
+
D || (D = new M()), k(D, B.value);
|
|
10406
10417
|
}
|
|
10407
10418
|
if (D) {
|
|
10408
10419
|
for (; (z = K.next()) && !z.done; )
|
|
@@ -10420,11 +10431,11 @@ function a0() {
|
|
|
10420
10431
|
return !1;
|
|
10421
10432
|
for (var V = i(I), K = i($), B, z, D, U, ue, he; (B = V.next()) && !B.done; )
|
|
10422
10433
|
if (U = B.value[0], ue = B.value[1], U && typeof U == "object")
|
|
10423
|
-
D || (D = new
|
|
10424
|
-
else if (he = O($, U), typeof he > "u" && !
|
|
10434
|
+
D || (D = new M()), k(D, U);
|
|
10435
|
+
else if (he = O($, U), typeof he > "u" && !E($, U) || !J(ue, he, F, j)) {
|
|
10425
10436
|
if (F.strict || !ee(I, $, U, ue, F, j))
|
|
10426
10437
|
return !1;
|
|
10427
|
-
D || (D = new
|
|
10438
|
+
D || (D = new M()), k(D, U);
|
|
10428
10439
|
}
|
|
10429
10440
|
if (D) {
|
|
10430
10441
|
for (; (z = K.next()) && !z.done; )
|
|
@@ -10453,7 +10464,7 @@ function a0() {
|
|
|
10453
10464
|
var pe = f(I), ve = f($);
|
|
10454
10465
|
if (pe !== ve || (pe || ve) && b(I) !== b($) || F.strict && A && A(I) !== A($))
|
|
10455
10466
|
return !1;
|
|
10456
|
-
var Ae =
|
|
10467
|
+
var Ae = x(I), ze = x($);
|
|
10457
10468
|
if (Ae !== ze)
|
|
10458
10469
|
return !1;
|
|
10459
10470
|
if (Ae || ze) {
|
|
@@ -10464,10 +10475,10 @@ function a0() {
|
|
|
10464
10475
|
return !1;
|
|
10465
10476
|
return !0;
|
|
10466
10477
|
}
|
|
10467
|
-
var
|
|
10468
|
-
if (
|
|
10478
|
+
var Me = ge(I), Ce = ge($);
|
|
10479
|
+
if (Me !== Ce)
|
|
10469
10480
|
return !1;
|
|
10470
|
-
if (
|
|
10481
|
+
if (Me || Ce) {
|
|
10471
10482
|
if (I.length !== $.length)
|
|
10472
10483
|
return !1;
|
|
10473
10484
|
for (V = 0; V < I.length; V++)
|
|
@@ -10503,13 +10514,13 @@ function a0() {
|
|
|
10503
10514
|
return J($, F, j, o());
|
|
10504
10515
|
}, ji;
|
|
10505
10516
|
}
|
|
10506
|
-
var
|
|
10507
|
-
const
|
|
10508
|
-
function
|
|
10517
|
+
var s0 = c0();
|
|
10518
|
+
const l0 = /* @__PURE__ */ ay(s0);
|
|
10519
|
+
function u0(e) {
|
|
10509
10520
|
return e;
|
|
10510
10521
|
}
|
|
10511
|
-
function
|
|
10512
|
-
const i =
|
|
10522
|
+
function d0(e, t, r, n) {
|
|
10523
|
+
const i = u0, [o, a] = Y(i(r)), c = We(o);
|
|
10513
10524
|
return le(() => {
|
|
10514
10525
|
const l = () => {
|
|
10515
10526
|
const u = { ...r, ...e.getAttributes(t) };
|
|
@@ -10517,15 +10528,15 @@ function u0(e, t, r, n) {
|
|
|
10517
10528
|
(u[d] === null || u[d] === void 0) && (u[d] = r ? r[d] : null);
|
|
10518
10529
|
});
|
|
10519
10530
|
const f = i(u);
|
|
10520
|
-
|
|
10531
|
+
l0(c.current, f) || (a(f), c.current = f);
|
|
10521
10532
|
};
|
|
10522
10533
|
return e.on("selectionUpdate", l), e.on("transaction", l), () => {
|
|
10523
10534
|
e.off("selectionUpdate", l), e.off("transaction", l);
|
|
10524
10535
|
};
|
|
10525
10536
|
}, [e, r, t, i]), o;
|
|
10526
10537
|
}
|
|
10527
|
-
function
|
|
10528
|
-
const { t } = me(), { width: r, height: n, src: i } =
|
|
10538
|
+
function f0({ editor: e }) {
|
|
10539
|
+
const { t } = me(), { width: r, height: n, src: i } = d0(e, bt.name, {
|
|
10529
10540
|
width: 0,
|
|
10530
10541
|
height: 0,
|
|
10531
10542
|
src: "",
|
|
@@ -10537,17 +10548,17 @@ function d0({ editor: e }) {
|
|
|
10537
10548
|
o && l(i);
|
|
10538
10549
|
}, [o, i]);
|
|
10539
10550
|
const f = te(() => {
|
|
10540
|
-
const
|
|
10551
|
+
const x = Hl(c);
|
|
10541
10552
|
e.chain().updateAttributes(bt.name, {
|
|
10542
|
-
src: (
|
|
10553
|
+
src: (x == null ? void 0 : x.src) || c
|
|
10543
10554
|
}).setNodeSelection(e.state.selection.from).focus().run(), a(!1);
|
|
10544
10555
|
}, [e, c, a]), d = te(() => {
|
|
10545
10556
|
window.open(i, "_blank");
|
|
10546
10557
|
}, [i]), h = te(() => {
|
|
10547
10558
|
a(!0);
|
|
10548
10559
|
}, [a]), p = te(
|
|
10549
|
-
(
|
|
10550
|
-
e.chain().updateAttributes(bt.name,
|
|
10560
|
+
(x) => {
|
|
10561
|
+
e.chain().updateAttributes(bt.name, x).setNodeSelection(e.state.selection.from).focus().run();
|
|
10551
10562
|
},
|
|
10552
10563
|
[e]
|
|
10553
10564
|
), m = te(() => e.isActive(bt.name) && !i, [e, i]), g = te(() => Pl(bt.name, e), [e]);
|
|
@@ -10588,7 +10599,7 @@ function d0({ editor: e }) {
|
|
|
10588
10599
|
}
|
|
10589
10600
|
),
|
|
10590
10601
|
/* @__PURE__ */ s(
|
|
10591
|
-
|
|
10602
|
+
D1,
|
|
10592
10603
|
{
|
|
10593
10604
|
height: n,
|
|
10594
10605
|
onOk: p,
|
|
@@ -10626,7 +10637,7 @@ function d0({ editor: e }) {
|
|
|
10626
10637
|
Oe,
|
|
10627
10638
|
{
|
|
10628
10639
|
autoFocus: !0,
|
|
10629
|
-
onInput: (
|
|
10640
|
+
onInput: (x) => l(x.target.value),
|
|
10630
10641
|
placeholder: "Enter link",
|
|
10631
10642
|
type: "url",
|
|
10632
10643
|
value: c
|
|
@@ -10642,19 +10653,19 @@ function d0({ editor: e }) {
|
|
|
10642
10653
|
)
|
|
10643
10654
|
] });
|
|
10644
10655
|
}
|
|
10645
|
-
function
|
|
10656
|
+
function h0({ editor: e, disabled: t, bubbleMenu: r }) {
|
|
10646
10657
|
const n = e.extensionManager.extensions.map((o) => o.name), i = () => {
|
|
10647
10658
|
var o, a, c, l, u, f, d, h, p, m;
|
|
10648
10659
|
return [
|
|
10649
10660
|
n.includes("columns") && !((o = r == null ? void 0 : r.columnConfig) != null && o.hidden) ? /* @__PURE__ */ s(
|
|
10650
|
-
|
|
10661
|
+
v1,
|
|
10651
10662
|
{
|
|
10652
10663
|
editor: e
|
|
10653
10664
|
},
|
|
10654
10665
|
"columns"
|
|
10655
10666
|
) : null,
|
|
10656
10667
|
n.includes("table") && !((a = r == null ? void 0 : r.tableConfig) != null && a.hidden) ? /* @__PURE__ */ s(
|
|
10657
|
-
|
|
10668
|
+
Ox,
|
|
10658
10669
|
{
|
|
10659
10670
|
actions: (c = r == null ? void 0 : r.tableConfig) == null ? void 0 : c.actions,
|
|
10660
10671
|
editor: e
|
|
@@ -10662,7 +10673,7 @@ function f0({ editor: e, disabled: t, bubbleMenu: r }) {
|
|
|
10662
10673
|
"table"
|
|
10663
10674
|
) : null,
|
|
10664
10675
|
n.includes("link") && !((l = r == null ? void 0 : r.linkConfig) != null && l.hidden) ? /* @__PURE__ */ s(
|
|
10665
|
-
|
|
10676
|
+
Nx,
|
|
10666
10677
|
{
|
|
10667
10678
|
disabled: t,
|
|
10668
10679
|
editor: e
|
|
@@ -10670,7 +10681,7 @@ function f0({ editor: e, disabled: t, bubbleMenu: r }) {
|
|
|
10670
10681
|
"link"
|
|
10671
10682
|
) : null,
|
|
10672
10683
|
n.includes(qt.name) && !((u = r == null ? void 0 : r.imageConfig) != null && u.hidden) ? /* @__PURE__ */ s(
|
|
10673
|
-
|
|
10684
|
+
u1,
|
|
10674
10685
|
{
|
|
10675
10686
|
disabled: t,
|
|
10676
10687
|
editor: e
|
|
@@ -10678,7 +10689,7 @@ function f0({ editor: e, disabled: t, bubbleMenu: r }) {
|
|
|
10678
10689
|
"image"
|
|
10679
10690
|
) : null,
|
|
10680
10691
|
n.includes(Tl.name) && !((f = r == null ? void 0 : r.imageGifConfig) != null && f.hidden) ? /* @__PURE__ */ s(
|
|
10681
|
-
|
|
10692
|
+
d1,
|
|
10682
10693
|
{
|
|
10683
10694
|
disabled: t,
|
|
10684
10695
|
editor: e
|
|
@@ -10686,7 +10697,7 @@ function f0({ editor: e, disabled: t, bubbleMenu: r }) {
|
|
|
10686
10697
|
"imageGif"
|
|
10687
10698
|
) : null,
|
|
10688
10699
|
n.includes("video") && !((d = r == null ? void 0 : r.videoConfig) != null && d.hidden) ? /* @__PURE__ */ s(
|
|
10689
|
-
|
|
10700
|
+
f1,
|
|
10690
10701
|
{
|
|
10691
10702
|
disabled: t,
|
|
10692
10703
|
editor: e
|
|
@@ -10694,7 +10705,7 @@ function f0({ editor: e, disabled: t, bubbleMenu: r }) {
|
|
|
10694
10705
|
"video"
|
|
10695
10706
|
) : null,
|
|
10696
10707
|
n.includes("iframe") && !((h = r == null ? void 0 : r.iframeConfig) != null && h.hidden) ? /* @__PURE__ */ s(
|
|
10697
|
-
|
|
10708
|
+
f0,
|
|
10698
10709
|
{
|
|
10699
10710
|
disabled: t,
|
|
10700
10711
|
editor: e
|
|
@@ -10724,7 +10735,7 @@ function f0({ editor: e, disabled: t, bubbleMenu: r }) {
|
|
|
10724
10735
|
function Ss() {
|
|
10725
10736
|
return /* @__PURE__ */ s("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ s("path", { fill: "currentColor", d: "M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31m-.88 3.12L12.5 12.5L5.27 5.27L4 6.55l3.32 3.32C6.55 11.32 6 12.79 6 14c0 3.31 2.69 6 6 6c1.52 0 2.9-.57 3.96-1.5l2.63 2.63l1.27-1.27z" }) });
|
|
10726
10737
|
}
|
|
10727
|
-
function
|
|
10738
|
+
function p0(e) {
|
|
10728
10739
|
const { t } = me(), {
|
|
10729
10740
|
highlight: r = !1,
|
|
10730
10741
|
disabled: n = !1,
|
|
@@ -10748,7 +10759,7 @@ function h0(e) {
|
|
|
10748
10759
|
}
|
|
10749
10760
|
/^#([\da-f]{3}){1,2}$/i.test(p) && (o == null || o(p), a == null || a(p), d(p));
|
|
10750
10761
|
}
|
|
10751
|
-
return /* @__PURE__ */ T(
|
|
10762
|
+
return /* @__PURE__ */ T(Er, { modal: !0, children: [
|
|
10752
10763
|
/* @__PURE__ */ s(
|
|
10753
10764
|
$r,
|
|
10754
10765
|
{
|
|
@@ -10793,7 +10804,7 @@ function h0(e) {
|
|
|
10793
10804
|
"span",
|
|
10794
10805
|
{
|
|
10795
10806
|
className: "richtext-relative richtext-flex richtext-h-auto richtext-w-full richtext-p-0 last:richtext-pb-2",
|
|
10796
|
-
children: p.map((g,
|
|
10807
|
+
children: p.map((g, x) => /* @__PURE__ */ s(
|
|
10797
10808
|
"span",
|
|
10798
10809
|
{
|
|
10799
10810
|
className: "richtext-inline-block richtext-size-6 richtext-flex-[0_0_auto] richtext-cursor-pointer richtext-rounded-sm !richtext-border richtext-border-transparent richtext-p-0.5 hover:richtext-border-border hover:richtext-shadow-sm",
|
|
@@ -10829,7 +10840,7 @@ function h0(e) {
|
|
|
10829
10840
|
}
|
|
10830
10841
|
)
|
|
10831
10842
|
},
|
|
10832
|
-
`sub-color-${
|
|
10843
|
+
`sub-color-${x}`
|
|
10833
10844
|
))
|
|
10834
10845
|
},
|
|
10835
10846
|
m
|
|
@@ -10865,17 +10876,17 @@ function h0(e) {
|
|
|
10865
10876
|
`sub-color-recent-${m}`
|
|
10866
10877
|
)) })
|
|
10867
10878
|
] }),
|
|
10868
|
-
/* @__PURE__ */ s(
|
|
10879
|
+
/* @__PURE__ */ s(m0, { setColor: h })
|
|
10869
10880
|
] })
|
|
10870
10881
|
}
|
|
10871
10882
|
)
|
|
10872
10883
|
] });
|
|
10873
10884
|
}
|
|
10874
|
-
function
|
|
10885
|
+
function m0({ setColor: e }) {
|
|
10875
10886
|
const [t, r] = Y("#000000"), [n, i] = Y(!1), { t: o } = me();
|
|
10876
10887
|
return le(() => () => {
|
|
10877
10888
|
i(!1);
|
|
10878
|
-
}, []), /* @__PURE__ */ T(
|
|
10889
|
+
}, []), /* @__PURE__ */ T(Er, { open: n, children: [
|
|
10879
10890
|
/* @__PURE__ */ s($r, { asChild: !0, children: /* @__PURE__ */ T(
|
|
10880
10891
|
"div",
|
|
10881
10892
|
{
|
|
@@ -10924,7 +10935,7 @@ function p0({ setColor: e }) {
|
|
|
10924
10935
|
] })
|
|
10925
10936
|
] });
|
|
10926
10937
|
}
|
|
10927
|
-
function
|
|
10938
|
+
function g0({ editor: e, disabled: t, toolbar: r }) {
|
|
10928
10939
|
const { t: n, lang: i } = me(), o = ye(() => {
|
|
10929
10940
|
const u = [...e.extensionManager.extensions].sort((d, h) => {
|
|
10930
10941
|
const p = d.options.sort ?? -1, m = h.options.sort ?? -1;
|
|
@@ -10938,17 +10949,17 @@ function m0({ editor: e, disabled: t, toolbar: r }) {
|
|
|
10938
10949
|
spacer: m = !1,
|
|
10939
10950
|
toolbar: g = !0
|
|
10940
10951
|
} = d.options;
|
|
10941
|
-
if (!h || !
|
|
10952
|
+
if (!h || !n1(h) || !g)
|
|
10942
10953
|
continue;
|
|
10943
|
-
const
|
|
10954
|
+
const x = h({
|
|
10944
10955
|
editor: e,
|
|
10945
10956
|
extension: d,
|
|
10946
10957
|
t: n
|
|
10947
10958
|
});
|
|
10948
|
-
if (Array.isArray(
|
|
10949
|
-
const w =
|
|
10959
|
+
if (Array.isArray(x)) {
|
|
10960
|
+
const w = x.map((S, b) => ({
|
|
10950
10961
|
button: S,
|
|
10951
|
-
divider: b ===
|
|
10962
|
+
divider: b === x.length - 1 ? p : !1,
|
|
10952
10963
|
spacer: b === 0 ? m : !1,
|
|
10953
10964
|
type: d.type,
|
|
10954
10965
|
name: d.name
|
|
@@ -10957,7 +10968,7 @@ function m0({ editor: e, disabled: t, toolbar: r }) {
|
|
|
10957
10968
|
continue;
|
|
10958
10969
|
}
|
|
10959
10970
|
f.push({
|
|
10960
|
-
button:
|
|
10971
|
+
button: x,
|
|
10961
10972
|
divider: p,
|
|
10962
10973
|
spacer: m,
|
|
10963
10974
|
type: d.type,
|
|
@@ -10992,7 +11003,7 @@ function m0({ editor: e, disabled: t, toolbar: r }) {
|
|
|
10992
11003
|
});
|
|
10993
11004
|
return r && (r != null && r.render) ? r.render({ editor: e, disabled: t || !1 }, o, c, a) : a(c);
|
|
10994
11005
|
}
|
|
10995
|
-
function
|
|
11006
|
+
function v0({ editor: e, extensions: t }) {
|
|
10996
11007
|
const { t: r } = me(), n = ye(() => {
|
|
10997
11008
|
var i, o, a;
|
|
10998
11009
|
return (a = (o = (i = t == null ? void 0 : t.find((c) => c.name === "base-kit")) == null ? void 0 : i.options) == null ? void 0 : o.characterCount) == null ? void 0 : a.limit;
|
|
@@ -11009,9 +11020,9 @@ function g0({ editor: e, extensions: t }) {
|
|
|
11009
11020
|
r("editor.characters")
|
|
11010
11021
|
] }) }) }) });
|
|
11011
11022
|
}
|
|
11012
|
-
function
|
|
11013
|
-
const { toasts: e } =
|
|
11014
|
-
return /* @__PURE__ */ T(
|
|
11023
|
+
function x0() {
|
|
11024
|
+
const { toasts: e } = _1();
|
|
11025
|
+
return /* @__PURE__ */ T(I1, { children: [
|
|
11015
11026
|
e.map(({ id: t, title: r, description: n, action: i, ...o }) => /* @__PURE__ */ T(
|
|
11016
11027
|
_l,
|
|
11017
11028
|
{
|
|
@@ -11030,7 +11041,7 @@ function v0() {
|
|
|
11030
11041
|
/* @__PURE__ */ s(kl, {})
|
|
11031
11042
|
] });
|
|
11032
11043
|
}
|
|
11033
|
-
const
|
|
11044
|
+
const y0 = `
|
|
11034
11045
|
.reactjs-tiptap-editor,
|
|
11035
11046
|
.richtext-dialog-content {
|
|
11036
11047
|
button,
|
|
@@ -11163,7 +11174,7 @@ div[data-tippy-root] {
|
|
|
11163
11174
|
color: inherit;
|
|
11164
11175
|
}
|
|
11165
11176
|
}
|
|
11166
|
-
`,
|
|
11177
|
+
`, b0 = Tu(({ children: e, id: t }) => {
|
|
11167
11178
|
const [, r] = Cl((a) => a.value), [, n] = Il((a) => a.value), i = (a) => {
|
|
11168
11179
|
r({
|
|
11169
11180
|
value: a.detail
|
|
@@ -11180,19 +11191,19 @@ div[data-tippy-root] {
|
|
|
11180
11191
|
};
|
|
11181
11192
|
}, []), /* @__PURE__ */ s(de, { children: e });
|
|
11182
11193
|
});
|
|
11183
|
-
function
|
|
11184
|
-
return /* @__PURE__ */ s(
|
|
11194
|
+
function w0({ children: e, id: t }) {
|
|
11195
|
+
return /* @__PURE__ */ s(Bx, { children: /* @__PURE__ */ s(zx, { children: /* @__PURE__ */ s(b0, { id: t, children: e }) }) });
|
|
11185
11196
|
}
|
|
11186
|
-
function
|
|
11197
|
+
function Q0() {
|
|
11187
11198
|
const [e] = Il((t) => t.value);
|
|
11188
11199
|
return e;
|
|
11189
11200
|
}
|
|
11190
|
-
const
|
|
11201
|
+
const S0 = {
|
|
11191
11202
|
setTheme: (e, t) => {
|
|
11192
11203
|
Co(ut.UPDATE_THEME(e), t);
|
|
11193
11204
|
}
|
|
11194
|
-
}, As = "data-rc-order", Cs = "data-rc-priority",
|
|
11195
|
-
function
|
|
11205
|
+
}, As = "data-rc-order", Cs = "data-rc-priority", A0 = "rc-util-key", oo = /* @__PURE__ */ new Map();
|
|
11206
|
+
function C0(e, t) {
|
|
11196
11207
|
if (!e)
|
|
11197
11208
|
return !1;
|
|
11198
11209
|
if (e.contains)
|
|
@@ -11206,12 +11217,12 @@ function A0(e, t) {
|
|
|
11206
11217
|
return !1;
|
|
11207
11218
|
}
|
|
11208
11219
|
function fu({ mark: e } = {}) {
|
|
11209
|
-
return e ? e.startsWith("data-") ? e : `data-${e}` :
|
|
11220
|
+
return e ? e.startsWith("data-") ? e : `data-${e}` : A0;
|
|
11210
11221
|
}
|
|
11211
11222
|
function zo(e) {
|
|
11212
11223
|
return e.attachTo ? e.attachTo : document.querySelector("head") || document.body;
|
|
11213
11224
|
}
|
|
11214
|
-
function
|
|
11225
|
+
function I0(e) {
|
|
11215
11226
|
return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
|
|
11216
11227
|
}
|
|
11217
11228
|
function hu(e) {
|
|
@@ -11220,7 +11231,7 @@ function hu(e) {
|
|
|
11220
11231
|
);
|
|
11221
11232
|
}
|
|
11222
11233
|
function pu(e, t = {}) {
|
|
11223
|
-
const { csp: r, prepend: n, priority: i = 0 } = t, o =
|
|
11234
|
+
const { csp: r, prepend: n, priority: i = 0 } = t, o = I0(n), a = o === "prependQueue", c = document.createElement("style");
|
|
11224
11235
|
c.setAttribute(As, o), a && i && c.setAttribute(Cs, `${i}`), r != null && r.nonce && (c.nonce = r == null ? void 0 : r.nonce), c.innerHTML = e;
|
|
11225
11236
|
const l = zo(t), { firstChild: u } = l;
|
|
11226
11237
|
if (n) {
|
|
@@ -11243,30 +11254,30 @@ function mu(e, t = {}) {
|
|
|
11243
11254
|
const r = zo(t);
|
|
11244
11255
|
return hu(r).find((n) => n.getAttribute(fu(t)) === e);
|
|
11245
11256
|
}
|
|
11246
|
-
function
|
|
11257
|
+
function T0(e, t = {}) {
|
|
11247
11258
|
const r = mu(e, t);
|
|
11248
11259
|
r && r.remove();
|
|
11249
11260
|
}
|
|
11250
|
-
function
|
|
11261
|
+
function O0(e, t) {
|
|
11251
11262
|
const r = oo.get(e);
|
|
11252
|
-
if (!r || !
|
|
11263
|
+
if (!r || !C0(document, r)) {
|
|
11253
11264
|
const n = pu("", t), { parentNode: i } = n;
|
|
11254
11265
|
oo.set(e, i), n.remove();
|
|
11255
11266
|
}
|
|
11256
11267
|
}
|
|
11257
|
-
function
|
|
11268
|
+
function R0(e, t, r = {}) {
|
|
11258
11269
|
var a, c, l;
|
|
11259
11270
|
const n = zo(r);
|
|
11260
|
-
|
|
11271
|
+
O0(n, r);
|
|
11261
11272
|
const i = mu(t, r);
|
|
11262
11273
|
if (i)
|
|
11263
11274
|
return (a = r.csp) != null && a.nonce && i.nonce !== ((c = r.csp) == null ? void 0 : c.nonce) && (i.nonce = (l = r.csp) == null ? void 0 : l.nonce), i.innerHTML !== e && (i.innerHTML = e), i;
|
|
11264
11275
|
const o = pu(e, r);
|
|
11265
11276
|
return o.setAttribute(fu(r), t), o;
|
|
11266
11277
|
}
|
|
11267
|
-
function
|
|
11278
|
+
function P0(e, t) {
|
|
11268
11279
|
const { content: r, extensions: n, useEditorOptions: i = {} } = e, o = Ru(), a = ye(() => {
|
|
11269
|
-
const d =
|
|
11280
|
+
const d = Mg(n, n, "name");
|
|
11270
11281
|
return [...n.map((p) => {
|
|
11271
11282
|
const m = n.find((g) => g.name === p.name);
|
|
11272
11283
|
return m ? p.configure(m.options) : p;
|
|
@@ -11275,7 +11286,7 @@ function R0(e, t) {
|
|
|
11275
11286
|
var p;
|
|
11276
11287
|
const h = u(d, e.output);
|
|
11277
11288
|
(p = e == null ? void 0 : e.onChangeContent) == null || p.call(e, h);
|
|
11278
|
-
}, Lu), l =
|
|
11289
|
+
}, Lu), l = Mu({
|
|
11279
11290
|
extensions: a,
|
|
11280
11291
|
content: r,
|
|
11281
11292
|
onUpdate: ({ editor: d }) => {
|
|
@@ -11286,11 +11297,11 @@ function R0(e, t) {
|
|
|
11286
11297
|
Pu(t, () => ({
|
|
11287
11298
|
editor: l
|
|
11288
11299
|
})), le(() => {
|
|
11289
|
-
document.documentElement.classList.toggle("dark", e.dark),
|
|
11300
|
+
document.documentElement.classList.toggle("dark", e.dark), S0.setTheme(o, e.dark ? "dark" : "light");
|
|
11290
11301
|
}, [e.dark]), le(() => {
|
|
11291
|
-
l == null || l.setEditable(!(e != null && e.disabled)),
|
|
11292
|
-
}, [l, e == null ? void 0 : e.disabled]), le(() => ((e == null ? void 0 : e.resetCSS) !== !1 &&
|
|
11293
|
-
|
|
11302
|
+
l == null || l.setEditable(!(e != null && e.disabled)), ry.setDisable(o, !(e != null && e.disabled));
|
|
11303
|
+
}, [l, e == null ? void 0 : e.disabled]), le(() => ((e == null ? void 0 : e.resetCSS) !== !1 && R0(y0, "react-tiptap-reset"), () => {
|
|
11304
|
+
T0("react-tiptap-reset");
|
|
11294
11305
|
}), [e == null ? void 0 : e.resetCSS]);
|
|
11295
11306
|
function u(d, h) {
|
|
11296
11307
|
return e != null && e.removeDefaultWrapper ? h === "html" ? d.isEmpty ? "" : d.getHTML() : h === "json" ? d.isEmpty ? {} : d.getJSON() : h === "text" ? d.isEmpty ? "" : d.getText() : "" : h === "html" ? d.getHTML() : h === "json" ? d.getJSON() : h === "text" ? d.getText() : "";
|
|
@@ -11301,20 +11312,20 @@ function R0(e, t) {
|
|
|
11301
11312
|
var d;
|
|
11302
11313
|
(d = l == null ? void 0 : l.destroy) == null || d.call(l);
|
|
11303
11314
|
}, []);
|
|
11304
|
-
const f =
|
|
11315
|
+
const f = o1(l, "characterCount");
|
|
11305
11316
|
return l ? /* @__PURE__ */ T("div", { className: "reactjs-tiptap-editor", children: [
|
|
11306
11317
|
/* @__PURE__ */ s(
|
|
11307
|
-
|
|
11318
|
+
w0,
|
|
11308
11319
|
{
|
|
11309
11320
|
id: o,
|
|
11310
11321
|
children: /* @__PURE__ */ s(
|
|
11311
|
-
|
|
11322
|
+
P1,
|
|
11312
11323
|
{
|
|
11313
11324
|
delayDuration: 0,
|
|
11314
11325
|
disableHoverableContent: !0,
|
|
11315
11326
|
children: /* @__PURE__ */ s("div", { className: "richtext-overflow-hidden richtext-rounded-[0.5rem] richtext-bg-background richtext-shadow richtext-outline richtext-outline-1", children: /* @__PURE__ */ T("div", { className: "richtext-flex richtext-max-h-full richtext-w-full richtext-flex-col", children: [
|
|
11316
11327
|
!(e != null && e.hideToolbar) && /* @__PURE__ */ s(
|
|
11317
|
-
|
|
11328
|
+
g0,
|
|
11318
11329
|
{
|
|
11319
11330
|
disabled: !!(e != null && e.disabled),
|
|
11320
11331
|
editor: l,
|
|
@@ -11322,21 +11333,21 @@ function R0(e, t) {
|
|
|
11322
11333
|
}
|
|
11323
11334
|
),
|
|
11324
11335
|
/* @__PURE__ */ s(
|
|
11325
|
-
|
|
11336
|
+
Eu,
|
|
11326
11337
|
{
|
|
11327
11338
|
className: `richtext-relative ${(e == null ? void 0 : e.contentClass) || ""}`,
|
|
11328
11339
|
editor: l
|
|
11329
11340
|
}
|
|
11330
11341
|
),
|
|
11331
11342
|
f && /* @__PURE__ */ s(
|
|
11332
|
-
|
|
11343
|
+
v0,
|
|
11333
11344
|
{
|
|
11334
11345
|
editor: l,
|
|
11335
11346
|
extensions: n
|
|
11336
11347
|
}
|
|
11337
11348
|
),
|
|
11338
11349
|
!(e != null && e.hideBubble) && /* @__PURE__ */ s(
|
|
11339
|
-
|
|
11350
|
+
h0,
|
|
11340
11351
|
{
|
|
11341
11352
|
bubbleMenu: e == null ? void 0 : e.bubbleMenu,
|
|
11342
11353
|
disabled: e == null ? void 0 : e.disabled,
|
|
@@ -11348,80 +11359,80 @@ function R0(e, t) {
|
|
|
11348
11359
|
)
|
|
11349
11360
|
}
|
|
11350
11361
|
),
|
|
11351
|
-
/* @__PURE__ */ s(
|
|
11362
|
+
/* @__PURE__ */ s(x0, {})
|
|
11352
11363
|
] }) : /* @__PURE__ */ s(de, {});
|
|
11353
11364
|
}
|
|
11354
|
-
const
|
|
11365
|
+
const eb = Ou(P0);
|
|
11355
11366
|
export {
|
|
11356
|
-
|
|
11367
|
+
V0 as $,
|
|
11357
11368
|
q as A,
|
|
11358
11369
|
be as B,
|
|
11359
|
-
|
|
11360
|
-
|
|
11370
|
+
p0 as C,
|
|
11371
|
+
x1 as D,
|
|
11361
11372
|
ut as E,
|
|
11362
11373
|
Ao as F,
|
|
11363
|
-
|
|
11364
|
-
|
|
11374
|
+
Lx as G,
|
|
11375
|
+
Tx as H,
|
|
11365
11376
|
to as I,
|
|
11366
11377
|
jt as J,
|
|
11367
|
-
|
|
11378
|
+
K0 as K,
|
|
11368
11379
|
it as L,
|
|
11369
11380
|
sx as M,
|
|
11370
11381
|
wl as N,
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
|
|
11374
|
-
|
|
11375
|
-
|
|
11382
|
+
d0 as O,
|
|
11383
|
+
Er as P,
|
|
11384
|
+
Q0 as Q,
|
|
11385
|
+
Rx as R,
|
|
11386
|
+
El as S,
|
|
11376
11387
|
jl as T,
|
|
11377
11388
|
qt as U,
|
|
11378
|
-
|
|
11389
|
+
jx as V,
|
|
11379
11390
|
Ol as W,
|
|
11380
|
-
|
|
11391
|
+
Y0 as X,
|
|
11381
11392
|
vx as Y,
|
|
11382
11393
|
gx as Z,
|
|
11383
|
-
|
|
11394
|
+
ty as _,
|
|
11384
11395
|
ql as a,
|
|
11385
|
-
|
|
11386
|
-
|
|
11387
|
-
|
|
11388
|
-
|
|
11396
|
+
G0 as a0,
|
|
11397
|
+
X0 as a1,
|
|
11398
|
+
ay as a2,
|
|
11399
|
+
H0 as a3,
|
|
11389
11400
|
_e as a4,
|
|
11390
11401
|
Pl as a5,
|
|
11391
|
-
|
|
11392
|
-
|
|
11402
|
+
D1 as a6,
|
|
11403
|
+
U0 as a7,
|
|
11393
11404
|
Rl as a8,
|
|
11394
11405
|
wr as a9,
|
|
11395
|
-
|
|
11396
|
-
|
|
11406
|
+
eb as aa,
|
|
11407
|
+
cy as ab,
|
|
11397
11408
|
Sr as ac,
|
|
11398
|
-
|
|
11399
|
-
|
|
11409
|
+
_1 as ad,
|
|
11410
|
+
o1 as ae,
|
|
11400
11411
|
Tl as af,
|
|
11401
|
-
|
|
11402
|
-
|
|
11412
|
+
g1 as ag,
|
|
11413
|
+
Z0 as ah,
|
|
11403
11414
|
bt as ai,
|
|
11404
11415
|
Ro as b,
|
|
11405
|
-
|
|
11416
|
+
W0 as c,
|
|
11406
11417
|
X as d,
|
|
11407
|
-
|
|
11418
|
+
y1 as e,
|
|
11408
11419
|
Nl as f,
|
|
11409
11420
|
kv as g,
|
|
11410
|
-
|
|
11421
|
+
b1 as h,
|
|
11411
11422
|
bl as i,
|
|
11412
|
-
|
|
11423
|
+
J0 as j,
|
|
11413
11424
|
xe as k,
|
|
11414
11425
|
br as l,
|
|
11415
11426
|
$r as m,
|
|
11416
11427
|
Kt as n,
|
|
11417
11428
|
Oe as o,
|
|
11418
|
-
|
|
11429
|
+
l0 as p,
|
|
11419
11430
|
Co as q,
|
|
11420
11431
|
zl as r,
|
|
11421
11432
|
$v as s,
|
|
11422
11433
|
Or as t,
|
|
11423
|
-
|
|
11424
|
-
|
|
11434
|
+
Ml as u,
|
|
11435
|
+
A1 as v,
|
|
11425
11436
|
Rr as w,
|
|
11426
11437
|
Pr as x,
|
|
11427
11438
|
Xt as y,
|