reactjs-tiptap-editor 1.0.18 → 1.0.20

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.
Files changed (156) hide show
  1. package/lib/{ActionMenuButton-Df077oOH.cjs → ActionMenuButton-BPgqKDXT.cjs} +1 -1
  2. package/lib/{ActionMenuButton-BOjCHFTA.js → ActionMenuButton-CMXWxvWu.js} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.js +23 -23
  5. package/lib/Blockquote.cjs +3 -3
  6. package/lib/Blockquote.js +33 -28
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +16 -10
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +2 -2
  11. package/lib/Callout.cjs +1 -1
  12. package/lib/Callout.js +21 -22
  13. package/lib/Clear.cjs +1 -1
  14. package/lib/Clear.js +2 -2
  15. package/lib/Code.cjs +1 -1
  16. package/lib/Code.js +2 -2
  17. package/lib/CodeBlock.cjs +20 -44
  18. package/lib/CodeBlock.js +1385 -4012
  19. package/lib/CodeView.cjs +1 -1
  20. package/lib/CodeView.js +2 -2
  21. package/lib/Color.cjs +1 -1
  22. package/lib/Color.js +3 -3
  23. package/lib/Column.cjs +1 -1
  24. package/lib/Column.js +2 -2
  25. package/lib/{Drawer-DwrlY_lY.cjs → Drawer-BivLAzMN.cjs} +1 -1
  26. package/lib/{Drawer-DxOoRiGQ.js → Drawer-BmVmgJsc.js} +3 -3
  27. package/lib/Drawer.cjs +1 -1
  28. package/lib/Drawer.js +4 -4
  29. package/lib/Emoji.cjs +1 -1
  30. package/lib/Emoji.js +12 -12
  31. package/lib/Excalidraw.cjs +1 -1
  32. package/lib/Excalidraw.js +17 -17
  33. package/lib/ExportPdf.cjs +1 -1
  34. package/lib/ExportPdf.js +2 -2
  35. package/lib/ExportWord.cjs +1 -1
  36. package/lib/ExportWord.js +2 -2
  37. package/lib/FontFamily.cjs +1 -1
  38. package/lib/FontFamily.js +4 -4
  39. package/lib/FontSize.cjs +1 -1
  40. package/lib/FontSize.js +4 -4
  41. package/lib/Heading.cjs +1 -1
  42. package/lib/Heading.js +9 -9
  43. package/lib/Highlight.cjs +1 -1
  44. package/lib/Highlight.js +3 -3
  45. package/lib/History.cjs +1 -1
  46. package/lib/History.js +5 -3
  47. package/lib/HorizontalRule.cjs +1 -1
  48. package/lib/HorizontalRule.js +2 -2
  49. package/lib/{Iframe-AhNV5WH5.js → Iframe-CAUrccA0.js} +7 -7
  50. package/lib/{Iframe-C6pBw-AF.cjs → Iframe-hwg9FxhU.cjs} +1 -1
  51. package/lib/Iframe.cjs +1 -1
  52. package/lib/Iframe.js +3 -3
  53. package/lib/Image.cjs +1 -1
  54. package/lib/Image.js +6 -5
  55. package/lib/ImageGif.cjs +1 -1
  56. package/lib/ImageGif.js +36 -36
  57. package/lib/ImportWord.cjs +1 -1
  58. package/lib/ImportWord.js +13 -13
  59. package/lib/{Indent-DZ5PcJA4.js → Indent-3MoIatX1.js} +2 -2
  60. package/lib/{Indent-Do-X0AsY.cjs → Indent-MuSU0kXz.cjs} +1 -1
  61. package/lib/Indent.cjs +1 -1
  62. package/lib/Indent.js +2 -2
  63. package/lib/Italic.cjs +1 -1
  64. package/lib/Italic.js +24 -18
  65. package/lib/Katex-BPQ7_A3w.cjs +4 -0
  66. package/lib/{Katex-bIgoenn_.js → Katex-xS-XZKQc.js} +398 -421
  67. package/lib/Katex.cjs +1 -1
  68. package/lib/Katex.js +3 -3
  69. package/lib/LineHeight.cjs +1 -1
  70. package/lib/LineHeight.js +3 -3
  71. package/lib/Link.cjs +1 -1
  72. package/lib/Link.js +2 -2
  73. package/lib/{LinkEditBlock-B0ZaACZO.cjs → LinkEditBlock-DLDY-8Ax.cjs} +1 -1
  74. package/lib/{LinkEditBlock-D_cF9fnc.js → LinkEditBlock-Dhvz7DCA.js} +26 -26
  75. package/lib/MarkdownPaste.cjs +1 -1
  76. package/lib/MarkdownPaste.js +1 -1
  77. package/lib/Mention.cjs +1 -1
  78. package/lib/Mention.js +4 -4
  79. package/lib/Mermaid.cjs +2 -2
  80. package/lib/Mermaid.js +41 -42
  81. package/lib/MoreMark.cjs +1 -1
  82. package/lib/MoreMark.js +5 -5
  83. package/lib/OrderedList.cjs +1 -1
  84. package/lib/OrderedList.js +2 -2
  85. package/lib/SearchAndReplace.cjs +1 -1
  86. package/lib/SearchAndReplace.js +8 -8
  87. package/lib/SlashCommand.cjs +1 -1
  88. package/lib/SlashCommand.js +6 -6
  89. package/lib/{SlashCommandNodeView-Ba03hlVZ.cjs → SlashCommandNodeView-CavaOSwo.cjs} +1 -1
  90. package/lib/{SlashCommandNodeView-cg0x3NRF.js → SlashCommandNodeView-RnDRm4Z1.js} +6 -6
  91. package/lib/Strike.cjs +1 -1
  92. package/lib/Strike.js +2 -2
  93. package/lib/{Table-KqLiT5wG.js → Table-DN4TuDz1.js} +35 -35
  94. package/lib/{Table-ddU2LSc6.cjs → Table-m32ZhtxF.cjs} +1 -1
  95. package/lib/Table.cjs +1 -1
  96. package/lib/Table.js +1 -1
  97. package/lib/TaskList.cjs +1 -1
  98. package/lib/TaskList.js +2 -2
  99. package/lib/TextAlign.cjs +1 -1
  100. package/lib/TextAlign.js +3 -3
  101. package/lib/TextDirection.cjs +1 -1
  102. package/lib/TextDirection.js +3 -3
  103. package/lib/TextUnderline.cjs +1 -1
  104. package/lib/TextUnderline.js +2 -2
  105. package/lib/{Twitter-C1Lzqc7u.js → Twitter-B2FDarxE.js} +9 -9
  106. package/lib/{Twitter-BIiR78Jh.cjs → Twitter-CJhQLKYS.cjs} +1 -1
  107. package/lib/Twitter.cjs +1 -1
  108. package/lib/Twitter.js +3 -3
  109. package/lib/Video.cjs +1 -1
  110. package/lib/Video.js +4 -4
  111. package/lib/_commonjsHelpers-B4e78b8K.js +28 -0
  112. package/lib/_commonjsHelpers-BTDuMlIz.cjs +1 -0
  113. package/lib/bubble.cjs +6 -6
  114. package/lib/bubble.js +2136 -1822
  115. package/lib/{clsx-eGVyq7ot.js → clsx-Bg-2aTKh.js} +11 -11
  116. package/lib/{clsx-BWE7vnna.cjs → clsx-DSAWW32g.cjs} +1 -1
  117. package/lib/components/Bubble/RichTextBubbleCodeBlock.d.ts +1 -0
  118. package/lib/components/Bubble/index.d.ts +1 -0
  119. package/lib/{dropdown-menu-oSKIntXM.cjs → dropdown-menu-C0VlKIZC.cjs} +1 -1
  120. package/lib/{dropdown-menu-CexIkt_V.js → dropdown-menu-CWd8VVRO.js} +1 -1
  121. package/lib/extensions/CodeBlock/CodeBlock.d.ts +3 -18
  122. package/lib/extensions/Image/Image.d.ts +1 -0
  123. package/lib/{index-DHUN85fV.js → index-B2a7NqnN.js} +1149 -1019
  124. package/lib/{index-D0lc95kr.cjs → index-C3dgmjIF.cjs} +1 -1
  125. package/lib/{index-zig3Dj7A.cjs → index-C4WLt4NA.cjs} +9 -7
  126. package/lib/{index-RIXs7STX.js → index-CbkpBnTX.js} +1 -1
  127. package/lib/{index-BnW6t8z6.js → index-CjLxMm5d.js} +1 -1
  128. package/lib/{index-mfGK4pFo.js → index-D0EmqTpe.js} +167 -153
  129. package/lib/{index-C6xmkxrQ.js → index-DXtVL0al.js} +140 -138
  130. package/lib/{index-CJ9pyCM4.cjs → index-DlxZt4_j.cjs} +1 -1
  131. package/lib/{index-D_8P0LE5.js → index-P5_MyY0i.js} +1 -1
  132. package/lib/{index-DUpSE1Gb.cjs → index-TcJ2UKnv.cjs} +1 -1
  133. package/lib/index-czmcFIW7.cjs +1 -0
  134. package/lib/index-fbGGohBT.cjs +12 -0
  135. package/lib/index.cjs +1 -1
  136. package/lib/index.js +12 -12
  137. package/lib/{popover-BYSZ3zBi.js → popover-BrSDMb_n.js} +1 -1
  138. package/lib/{popover-BcHDZqBt.cjs → popover-UUKfPWue.cjs} +1 -1
  139. package/lib/{renderNodeView-BrM5kUj_.js → renderNodeView-CbxCTni3.js} +2 -2
  140. package/lib/{renderNodeView-D1zydtli.cjs → renderNodeView-DFVrJy0l.cjs} +1 -1
  141. package/lib/{separator-BmixLrnJ.cjs → separator-LH5EzF0T.cjs} +1 -1
  142. package/lib/{separator-CFKVxAea.js → separator-fpWkZkoh.js} +14 -14
  143. package/lib/style.css +1 -1
  144. package/lib/{updatePosition-CBRjbQMH.js → updatePosition-BGD41Hbg.js} +2 -2
  145. package/lib/{updatePosition-CfmY5Trk.cjs → updatePosition-CQE1ct18.cjs} +1 -1
  146. package/package.json +4 -2
  147. package/lib/Katex-CIC9ygbL.cjs +0 -4
  148. package/lib/delete-node-CosiBes5.cjs +0 -1
  149. package/lib/delete-node-eQHsyyhR.js +0 -24
  150. package/lib/extensions/CodeBlock/components/NodeViewCodeBlock/NodeViewCodeBlock.d.ts +0 -1
  151. package/lib/index-BUTn2LY6.cjs +0 -1
  152. package/lib/index-BtxvYLJ1.cjs +0 -12
  153. package/lib/select-C5SHDLFj.js +0 -120
  154. package/lib/select-DHjzKkcu.cjs +0 -1
  155. package/lib/textarea-CasDcv3u.cjs +0 -1
  156. package/lib/textarea-DNLrJoRl.js +0 -20
@@ -1,56 +1,57 @@
1
- import { jsxs as C, jsx as n, Fragment as Y } from "react/jsx-runtime";
2
- import * as U from "react";
3
- import Q, { useState as L, useMemo as B, useCallback as ce, useEffect as ze, useRef as xe } from "react";
4
- import { y as Pt, b as jt, S as _t } from "./index-BG0kQamI.js";
1
+ import { jsxs as v, jsx as n, Fragment as q } from "react/jsx-runtime";
2
+ import * as H from "react";
3
+ import ee, { useState as A, useMemo as $, useCallback as de, useEffect as Se, useRef as be } from "react";
4
+ import { Slot as dt } from "@radix-ui/react-slot";
5
+ import { y as Wt, b as Gt, S as Xt } from "./index-BG0kQamI.js";
5
6
  import "./theme.js";
6
- import * as F from "@radix-ui/react-dialog";
7
- import { NotebookPen as Ut, ExternalLink as Bt, X as st, Loader2 as $t, WrapText as Ft, PencilRuler as Wt, FlipHorizontal as Gt, FlipVertical as Xt, CropIcon as Yt, ChevronUp as qt, Paperclip as Zt, Eye as Kt, Settings as Jt, ZoomOut as Qt, ZoomIn as er, BookMarked as tr, Sigma as rr, SmilePlusIcon as ir, Replace as Ye, SmilePlus as nr, Frame as or, Columns2 as qe, PanelRight as ar, PanelLeft as sr, Clipboard as lr, Copy as cr, GripVertical as dr, Plus as ur, Columns4 as hr, Columns3 as fr, Heading6 as mr, Heading5 as gr, Heading4 as pr, Heading3 as xr, Heading2 as br, Heading1 as vr, Pilcrow as wr, ChevronsUpDown as yr, Trash as Cr, Trash2 as kr, TableCellsSplit as Mr, TableCellsMerge as zr, BetweenVerticalEnd as Tr, BetweenVerticalStart as Ir, BetweenHorizonalStart as Sr, BetweenHorizonalEnd as Nr, Unlink as Ar, Pencil as Lr, Sparkles as Er, Table as Rr, Minimize as Vr, Maximize as Dr, Video as Hr, ImageUp as Or, Link as Pr, ListTodo as jr, ListOrdered as _r, List as Ur, IndentDecrease as Br, IndentIncrease as $r, Type as Fr, CodeXml as Wr, Code as Gr, Superscript as Xr, Subscript as Yr, ChevronDown as qr, Undo2 as Zr, Redo2 as Kr, PaintRoller as Jr, Eraser as Qr, Minus as ei, Strikethrough as ti, Quote as ri, Underline as ii, Italic as ni, LoaderCircle as oi, Bold as ai, Check as si } from "lucide-react";
8
- import { c as lt, N as li, u as ci, b as di, a as ui } from "./clsx-eGVyq7ot.js";
9
- import { N as ct, n as hi, a6 as fi, m as dt } from "./index-mfGK4pFo.js";
10
- import { I as Ze, i as Ke, j as mi, u as ne, V as gi } from "./index-BlXGgvT-.js";
11
- import { Slot as ut } from "@radix-ui/react-slot";
12
- import { TextAlignRightIcon as pi, TextAlignLeftIcon as xi, TextAlignJustifyIcon as bi, TextAlignCenterIcon as vi } from "@radix-ui/react-icons";
13
- import * as be from "@radix-ui/react-tooltip";
14
- import * as ht from "@radix-ui/react-toggle";
15
- import * as re from "@radix-ui/react-tabs";
16
- import wi from "react-image-crop";
7
+ import { c as ut, N as Yt, u as qt, b as Zt, a as Kt } from "./clsx-Bg-2aTKh.js";
8
+ import * as ie from "@radix-ui/react-tabs";
9
+ import * as _ from "@radix-ui/react-select";
10
+ import { NotebookPen as Jt, ExternalLink as Qt, X as ht, Loader2 as er, WrapText as tr, PencilRuler as rr, FlipHorizontal as ir, FlipVertical as nr, CropIcon as or, ChevronUp as ft, Paperclip as ar, Eye as sr, Settings as lr, ZoomOut as cr, ZoomIn as dr, BookMarked as ur, Sigma as hr, SmilePlusIcon as fr, Replace as Ke, SmilePlus as mr, Frame as pr, Columns2 as Je, PanelRight as gr, PanelLeft as xr, Clipboard as br, Copy as vr, GripVertical as wr, Plus as yr, Columns4 as Cr, Columns3 as kr, Heading6 as Nr, Heading5 as Mr, Heading4 as Sr, Heading3 as zr, Heading2 as Tr, Heading1 as Ir, Pilcrow as Lr, ChevronsUpDown as Ar, Trash as Er, Trash2 as Rr, TableCellsSplit as Vr, TableCellsMerge as Dr, BetweenVerticalEnd as Hr, BetweenVerticalStart as jr, BetweenHorizonalStart as Or, BetweenHorizonalEnd as Pr, Unlink as _r, Pencil as Ur, Sparkles as Br, Table as $r, Minimize as Fr, Maximize as Wr, Video as Gr, ImageUp as Xr, Link as Yr, ListTodo as qr, ListOrdered as Zr, List as Kr, IndentDecrease as Jr, IndentIncrease as Qr, Type as ei, CodeXml as ti, Code as ri, Superscript as ii, Subscript as ni, ChevronDown as Ue, Undo2 as oi, Redo2 as ai, PaintRoller as si, Eraser as li, Minus as ci, Strikethrough as di, Quote as ui, Underline as hi, Italic as fi, LoaderCircle as mi, Bold as pi, Check as mt } from "lucide-react";
11
+ import * as W from "@radix-ui/react-dialog";
12
+ import { N as pt, n as gi, a7 as xi, m as gt } from "./index-D0EmqTpe.js";
13
+ import { I as Qe, i as et, j as bi, u as oe, V as vi } from "./index-BlXGgvT-.js";
14
+ import { TextAlignRightIcon as wi, TextAlignLeftIcon as yi, TextAlignJustifyIcon as Ci, TextAlignCenterIcon as ki } from "@radix-ui/react-icons";
15
+ import * as xt from "@radix-ui/react-toggle";
16
+ import * as ve from "@radix-ui/react-tooltip";
17
+ import * as bt from "@radix-ui/react-label";
17
18
  import * as Oe from "@radix-ui/react-checkbox";
18
- import * as ft from "@radix-ui/react-label";
19
- const _e = "-", yi = (e) => {
20
- const t = ki(e), {
19
+ import Ni from "react-image-crop";
20
+ const Be = "-", Mi = (e) => {
21
+ const t = zi(e), {
21
22
  conflictingClassGroups: r,
22
23
  conflictingClassGroupModifiers: i
23
24
  } = e;
24
25
  return {
25
26
  getClassGroupId: (l) => {
26
- const s = l.split(_e);
27
- return s[0] === "" && s.length !== 1 && s.shift(), mt(s, t) || Ci(l);
27
+ const s = l.split(Be);
28
+ return s[0] === "" && s.length !== 1 && s.shift(), vt(s, t) || Si(l);
28
29
  },
29
30
  getConflictingClassGroupIds: (l, s) => {
30
31
  const c = r[l] || [];
31
32
  return s && i[l] ? [...c, ...i[l]] : c;
32
33
  }
33
34
  };
34
- }, mt = (e, t) => {
35
+ }, vt = (e, t) => {
35
36
  var l;
36
37
  if (e.length === 0)
37
38
  return t.classGroupId;
38
- const r = e[0], i = t.nextPart.get(r), o = i ? mt(e.slice(1), i) : void 0;
39
+ const r = e[0], i = t.nextPart.get(r), o = i ? vt(e.slice(1), i) : void 0;
39
40
  if (o)
40
41
  return o;
41
42
  if (t.validators.length === 0)
42
43
  return;
43
- const a = e.join(_e);
44
+ const a = e.join(Be);
44
45
  return (l = t.validators.find(({
45
46
  validator: s
46
47
  }) => s(a))) == null ? void 0 : l.classGroupId;
47
- }, Je = /^\[(.+)\]$/, Ci = (e) => {
48
- if (Je.test(e)) {
49
- const t = Je.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
48
+ }, tt = /^\[(.+)\]$/, Si = (e) => {
49
+ if (tt.test(e)) {
50
+ const t = tt.exec(e)[1], r = t == null ? void 0 : t.substring(0, t.indexOf(":"));
50
51
  if (r)
51
52
  return "arbitrary.." + r;
52
53
  }
53
- }, ki = (e) => {
54
+ }, zi = (e) => {
54
55
  const {
55
56
  theme: t,
56
57
  prefix: r
@@ -58,18 +59,18 @@ const _e = "-", yi = (e) => {
58
59
  nextPart: /* @__PURE__ */ new Map(),
59
60
  validators: []
60
61
  };
61
- return zi(Object.entries(e.classGroups), r).forEach(([a, l]) => {
62
+ return Ii(Object.entries(e.classGroups), r).forEach(([a, l]) => {
62
63
  Pe(l, i, a, t);
63
64
  }), i;
64
65
  }, Pe = (e, t, r, i) => {
65
66
  e.forEach((o) => {
66
67
  if (typeof o == "string") {
67
- const a = o === "" ? t : Qe(t, o);
68
+ const a = o === "" ? t : rt(t, o);
68
69
  a.classGroupId = r;
69
70
  return;
70
71
  }
71
72
  if (typeof o == "function") {
72
- if (Mi(o)) {
73
+ if (Ti(o)) {
73
74
  Pe(o(i), t, r, i);
74
75
  return;
75
76
  }
@@ -80,21 +81,21 @@ const _e = "-", yi = (e) => {
80
81
  return;
81
82
  }
82
83
  Object.entries(o).forEach(([a, l]) => {
83
- Pe(l, Qe(t, a), r, i);
84
+ Pe(l, rt(t, a), r, i);
84
85
  });
85
86
  });
86
- }, Qe = (e, t) => {
87
+ }, rt = (e, t) => {
87
88
  let r = e;
88
- return t.split(_e).forEach((i) => {
89
+ return t.split(Be).forEach((i) => {
89
90
  r.nextPart.has(i) || r.nextPart.set(i, {
90
91
  nextPart: /* @__PURE__ */ new Map(),
91
92
  validators: []
92
93
  }), r = r.nextPart.get(i);
93
94
  }), r;
94
- }, Mi = (e) => e.isThemeGetter, zi = (e, t) => t ? e.map(([r, i]) => {
95
+ }, Ti = (e) => e.isThemeGetter, Ii = (e, t) => t ? e.map(([r, i]) => {
95
96
  const o = i.map((a) => typeof a == "string" ? t + a : typeof a == "object" ? Object.fromEntries(Object.entries(a).map(([l, s]) => [t + l, s])) : a);
96
97
  return [r, o];
97
- }) : e, Ti = (e) => {
98
+ }) : e, Li = (e) => {
98
99
  if (e < 1)
99
100
  return {
100
101
  get: () => {
@@ -118,40 +119,40 @@ const _e = "-", yi = (e) => {
118
119
  r.has(a) ? r.set(a, l) : o(a, l);
119
120
  }
120
121
  };
121
- }, gt = "!", Ii = (e) => {
122
+ }, wt = "!", Ai = (e) => {
122
123
  const {
123
124
  separator: t,
124
125
  experimentalParseClassName: r
125
126
  } = e, i = t.length === 1, o = t[0], a = t.length, l = (s) => {
126
127
  const c = [];
127
- let d = 0, g = 0, p;
128
+ let d = 0, p = 0, g;
128
129
  for (let f = 0; f < s.length; f++) {
129
130
  let x = s[f];
130
131
  if (d === 0) {
131
132
  if (x === o && (i || s.slice(f, f + a) === t)) {
132
- c.push(s.slice(g, f)), g = f + a;
133
+ c.push(s.slice(p, f)), p = f + a;
133
134
  continue;
134
135
  }
135
136
  if (x === "/") {
136
- p = f;
137
+ g = f;
137
138
  continue;
138
139
  }
139
140
  }
140
141
  x === "[" ? d++ : x === "]" && d--;
141
142
  }
142
- const u = c.length === 0 ? s : s.substring(g), k = u.startsWith(gt), b = k ? u.substring(1) : u, z = p && p > g ? p - g : void 0;
143
+ const u = c.length === 0 ? s : s.substring(p), k = u.startsWith(wt), b = k ? u.substring(1) : u, M = g && g > p ? g - p : void 0;
143
144
  return {
144
145
  modifiers: c,
145
146
  hasImportantModifier: k,
146
147
  baseClassName: b,
147
- maybePostfixModifierPosition: z
148
+ maybePostfixModifierPosition: M
148
149
  };
149
150
  };
150
151
  return r ? (s) => r({
151
152
  className: s,
152
153
  parseClassName: l
153
154
  }) : l;
154
- }, Si = (e) => {
155
+ }, Ei = (e) => {
155
156
  if (e.length <= 1)
156
157
  return e;
157
158
  const t = [];
@@ -159,122 +160,122 @@ const _e = "-", yi = (e) => {
159
160
  return e.forEach((i) => {
160
161
  i[0] === "[" ? (t.push(...r.sort(), i), r = []) : r.push(i);
161
162
  }), t.push(...r.sort()), t;
162
- }, Ni = (e) => ({
163
- cache: Ti(e.cacheSize),
164
- parseClassName: Ii(e),
165
- ...yi(e)
166
- }), Ai = /\s+/, Li = (e, t) => {
163
+ }, Ri = (e) => ({
164
+ cache: Li(e.cacheSize),
165
+ parseClassName: Ai(e),
166
+ ...Mi(e)
167
+ }), Vi = /\s+/, Di = (e, t) => {
167
168
  const {
168
169
  parseClassName: r,
169
170
  getClassGroupId: i,
170
171
  getConflictingClassGroupIds: o
171
- } = t, a = [], l = e.trim().split(Ai);
172
+ } = t, a = [], l = e.trim().split(Vi);
172
173
  let s = "";
173
174
  for (let c = l.length - 1; c >= 0; c -= 1) {
174
175
  const d = l[c], {
175
- modifiers: g,
176
- hasImportantModifier: p,
176
+ modifiers: p,
177
+ hasImportantModifier: g,
177
178
  baseClassName: u,
178
179
  maybePostfixModifierPosition: k
179
180
  } = r(d);
180
- let b = !!k, z = i(b ? u.substring(0, k) : u);
181
- if (!z) {
181
+ let b = !!k, M = i(b ? u.substring(0, k) : u);
182
+ if (!M) {
182
183
  if (!b) {
183
184
  s = d + (s.length > 0 ? " " + s : s);
184
185
  continue;
185
186
  }
186
- if (z = i(u), !z) {
187
+ if (M = i(u), !M) {
187
188
  s = d + (s.length > 0 ? " " + s : s);
188
189
  continue;
189
190
  }
190
191
  b = !1;
191
192
  }
192
- const f = Si(g).join(":"), x = p ? f + gt : f, h = x + z;
193
+ const f = Ei(p).join(":"), x = g ? f + wt : f, h = x + M;
193
194
  if (a.includes(h))
194
195
  continue;
195
196
  a.push(h);
196
- const S = o(z, b);
197
- for (let m = 0; m < S.length; ++m) {
198
- const D = S[m];
199
- a.push(x + D);
197
+ const T = o(M, b);
198
+ for (let m = 0; m < T.length; ++m) {
199
+ const j = T[m];
200
+ a.push(x + j);
200
201
  }
201
202
  s = d + (s.length > 0 ? " " + s : s);
202
203
  }
203
204
  return s;
204
205
  };
205
- function Ei() {
206
+ function Hi() {
206
207
  let e = 0, t, r, i = "";
207
208
  for (; e < arguments.length; )
208
- (t = arguments[e++]) && (r = pt(t)) && (i && (i += " "), i += r);
209
+ (t = arguments[e++]) && (r = yt(t)) && (i && (i += " "), i += r);
209
210
  return i;
210
211
  }
211
- const pt = (e) => {
212
+ const yt = (e) => {
212
213
  if (typeof e == "string")
213
214
  return e;
214
215
  let t, r = "";
215
216
  for (let i = 0; i < e.length; i++)
216
- e[i] && (t = pt(e[i])) && (r && (r += " "), r += t);
217
+ e[i] && (t = yt(e[i])) && (r && (r += " "), r += t);
217
218
  return r;
218
219
  };
219
- function Ri(e, ...t) {
220
+ function ji(e, ...t) {
220
221
  let r, i, o, a = l;
221
222
  function l(c) {
222
- const d = t.reduce((g, p) => p(g), e());
223
- return r = Ni(d), i = r.cache.get, o = r.cache.set, a = s, s(c);
223
+ const d = t.reduce((p, g) => g(p), e());
224
+ return r = Ri(d), i = r.cache.get, o = r.cache.set, a = s, s(c);
224
225
  }
225
226
  function s(c) {
226
227
  const d = i(c);
227
228
  if (d)
228
229
  return d;
229
- const g = Li(c, r);
230
- return o(c, g), g;
230
+ const p = Di(c, r);
231
+ return o(c, p), p;
231
232
  }
232
233
  return function() {
233
- return a(Ei.apply(null, arguments));
234
+ return a(Hi.apply(null, arguments));
234
235
  };
235
236
  }
236
- const V = (e) => {
237
+ const D = (e) => {
237
238
  const t = (r) => r[e] || [];
238
239
  return t.isThemeGetter = !0, t;
239
- }, xt = /^\[(?:([a-z-]+):)?(.+)\]$/i, Vi = /^\d+\/\d+$/, Di = /* @__PURE__ */ new Set(["px", "full", "screen"]), Hi = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Oi = /\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$/, Pi = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ji = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, _i = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, X = (e) => ie(e) || Di.has(e) || Vi.test(e), K = (e) => oe(e, "length", Yi), ie = (e) => !!e && !Number.isNaN(Number(e)), Le = (e) => oe(e, "number", ie), de = (e) => !!e && Number.isInteger(Number(e)), Ui = (e) => e.endsWith("%") && ie(e.slice(0, -1)), T = (e) => xt.test(e), J = (e) => Hi.test(e), Bi = /* @__PURE__ */ new Set(["length", "size", "percentage"]), $i = (e) => oe(e, Bi, bt), Fi = (e) => oe(e, "position", bt), Wi = /* @__PURE__ */ new Set(["image", "url"]), Gi = (e) => oe(e, Wi, Zi), Xi = (e) => oe(e, "", qi), ue = () => !0, oe = (e, t, r) => {
240
- const i = xt.exec(e);
240
+ }, Ct = /^\[(?:([a-z-]+):)?(.+)\]$/i, Oi = /^\d+\/\d+$/, Pi = /* @__PURE__ */ new Set(["px", "full", "screen"]), _i = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Ui = /\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$/, Bi = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, $i = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Fi = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Y = (e) => ne(e) || Pi.has(e) || Oi.test(e), J = (e) => ae(e, "length", Ji), ne = (e) => !!e && !Number.isNaN(Number(e)), Ee = (e) => ae(e, "number", ne), ue = (e) => !!e && Number.isInteger(Number(e)), Wi = (e) => e.endsWith("%") && ne(e.slice(0, -1)), S = (e) => Ct.test(e), Q = (e) => _i.test(e), Gi = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Xi = (e) => ae(e, Gi, kt), Yi = (e) => ae(e, "position", kt), qi = /* @__PURE__ */ new Set(["image", "url"]), Zi = (e) => ae(e, qi, en), Ki = (e) => ae(e, "", Qi), he = () => !0, ae = (e, t, r) => {
241
+ const i = Ct.exec(e);
241
242
  return i ? i[1] ? typeof t == "string" ? i[1] === t : t.has(i[1]) : r(i[2]) : !1;
242
- }, Yi = (e) => (
243
+ }, Ji = (e) => (
243
244
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
244
245
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
245
246
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
246
- Oi.test(e) && !Pi.test(e)
247
- ), bt = () => !1, qi = (e) => ji.test(e), Zi = (e) => _i.test(e), Ki = () => {
248
- const e = V("colors"), t = V("spacing"), r = V("blur"), i = V("brightness"), o = V("borderColor"), a = V("borderRadius"), l = V("borderSpacing"), s = V("borderWidth"), c = V("contrast"), d = V("grayscale"), g = V("hueRotate"), p = V("invert"), u = V("gap"), k = V("gradientColorStops"), b = V("gradientColorStopPositions"), z = V("inset"), f = V("margin"), x = V("opacity"), h = V("padding"), S = V("saturate"), m = V("scale"), D = V("sepia"), v = V("skew"), R = V("space"), N = V("translate"), P = () => ["auto", "contain", "none"], H = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", T, t], w = () => [T, t], y = () => ["", X, K], I = () => ["auto", ie, T], E = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], A = () => ["solid", "dashed", "dotted", "double", "none"], j = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], O = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], G = () => ["", "0", T], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], W = () => [ie, T];
247
+ Ui.test(e) && !Bi.test(e)
248
+ ), kt = () => !1, Qi = (e) => $i.test(e), en = (e) => Fi.test(e), tn = () => {
249
+ const e = D("colors"), t = D("spacing"), r = D("blur"), i = D("brightness"), o = D("borderColor"), a = D("borderRadius"), l = D("borderSpacing"), s = D("borderWidth"), c = D("contrast"), d = D("grayscale"), p = D("hueRotate"), g = D("invert"), u = D("gap"), k = D("gradientColorStops"), b = D("gradientColorStopPositions"), M = D("inset"), f = D("margin"), x = D("opacity"), h = D("padding"), T = D("saturate"), m = D("scale"), j = D("sepia"), w = D("skew"), V = D("space"), I = D("translate"), U = () => ["auto", "contain", "none"], O = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", S, t], y = () => [S, t], C = () => ["", Y, J], z = () => ["auto", ne, S], E = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], L = () => ["solid", "dashed", "dotted", "double", "none"], B = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], P = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], X = () => ["", "0", S], Ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], G = () => [ne, S];
249
250
  return {
250
251
  cacheSize: 500,
251
252
  separator: ":",
252
253
  theme: {
253
- colors: [ue],
254
- spacing: [X, K],
255
- blur: ["none", "", J, T],
256
- brightness: W(),
254
+ colors: [he],
255
+ spacing: [Y, J],
256
+ blur: ["none", "", Q, S],
257
+ brightness: G(),
257
258
  borderColor: [e],
258
- borderRadius: ["none", "", "full", J, T],
259
- borderSpacing: w(),
260
- borderWidth: y(),
261
- contrast: W(),
262
- grayscale: G(),
263
- hueRotate: W(),
264
- invert: G(),
265
- gap: w(),
259
+ borderRadius: ["none", "", "full", Q, S],
260
+ borderSpacing: y(),
261
+ borderWidth: C(),
262
+ contrast: G(),
263
+ grayscale: X(),
264
+ hueRotate: G(),
265
+ invert: X(),
266
+ gap: y(),
266
267
  gradientColorStops: [e],
267
- gradientColorStopPositions: [Ui, K],
268
- inset: M(),
269
- margin: M(),
270
- opacity: W(),
271
- padding: w(),
272
- saturate: W(),
273
- scale: W(),
274
- sepia: G(),
275
- skew: W(),
276
- space: w(),
277
- translate: w()
268
+ gradientColorStopPositions: [Wi, J],
269
+ inset: N(),
270
+ margin: N(),
271
+ opacity: G(),
272
+ padding: y(),
273
+ saturate: G(),
274
+ scale: G(),
275
+ sepia: X(),
276
+ skew: G(),
277
+ space: y(),
278
+ translate: y()
278
279
  },
279
280
  classGroups: {
280
281
  // Layout
@@ -283,7 +284,7 @@ const V = (e) => {
283
284
  * @see https://tailwindcss.com/docs/aspect-ratio
284
285
  */
285
286
  aspect: [{
286
- aspect: ["auto", "square", "video", T]
287
+ aspect: ["auto", "square", "video", S]
287
288
  }],
288
289
  /**
289
290
  * Container
@@ -295,21 +296,21 @@ const V = (e) => {
295
296
  * @see https://tailwindcss.com/docs/columns
296
297
  */
297
298
  columns: [{
298
- columns: [J]
299
+ columns: [Q]
299
300
  }],
300
301
  /**
301
302
  * Break After
302
303
  * @see https://tailwindcss.com/docs/break-after
303
304
  */
304
305
  "break-after": [{
305
- "break-after": ye()
306
+ "break-after": Ce()
306
307
  }],
307
308
  /**
308
309
  * Break Before
309
310
  * @see https://tailwindcss.com/docs/break-before
310
311
  */
311
312
  "break-before": [{
312
- "break-before": ye()
313
+ "break-before": Ce()
313
314
  }],
314
315
  /**
315
316
  * Break Inside
@@ -368,49 +369,49 @@ const V = (e) => {
368
369
  * @see https://tailwindcss.com/docs/object-position
369
370
  */
370
371
  "object-position": [{
371
- object: [...E(), T]
372
+ object: [...E(), S]
372
373
  }],
373
374
  /**
374
375
  * Overflow
375
376
  * @see https://tailwindcss.com/docs/overflow
376
377
  */
377
378
  overflow: [{
378
- overflow: H()
379
+ overflow: O()
379
380
  }],
380
381
  /**
381
382
  * Overflow X
382
383
  * @see https://tailwindcss.com/docs/overflow
383
384
  */
384
385
  "overflow-x": [{
385
- "overflow-x": H()
386
+ "overflow-x": O()
386
387
  }],
387
388
  /**
388
389
  * Overflow Y
389
390
  * @see https://tailwindcss.com/docs/overflow
390
391
  */
391
392
  "overflow-y": [{
392
- "overflow-y": H()
393
+ "overflow-y": O()
393
394
  }],
394
395
  /**
395
396
  * Overscroll Behavior
396
397
  * @see https://tailwindcss.com/docs/overscroll-behavior
397
398
  */
398
399
  overscroll: [{
399
- overscroll: P()
400
+ overscroll: U()
400
401
  }],
401
402
  /**
402
403
  * Overscroll Behavior X
403
404
  * @see https://tailwindcss.com/docs/overscroll-behavior
404
405
  */
405
406
  "overscroll-x": [{
406
- "overscroll-x": P()
407
+ "overscroll-x": U()
407
408
  }],
408
409
  /**
409
410
  * Overscroll Behavior Y
410
411
  * @see https://tailwindcss.com/docs/overscroll-behavior
411
412
  */
412
413
  "overscroll-y": [{
413
- "overscroll-y": P()
414
+ "overscroll-y": U()
414
415
  }],
415
416
  /**
416
417
  * Position
@@ -422,63 +423,63 @@ const V = (e) => {
422
423
  * @see https://tailwindcss.com/docs/top-right-bottom-left
423
424
  */
424
425
  inset: [{
425
- inset: [z]
426
+ inset: [M]
426
427
  }],
427
428
  /**
428
429
  * Right / Left
429
430
  * @see https://tailwindcss.com/docs/top-right-bottom-left
430
431
  */
431
432
  "inset-x": [{
432
- "inset-x": [z]
433
+ "inset-x": [M]
433
434
  }],
434
435
  /**
435
436
  * Top / Bottom
436
437
  * @see https://tailwindcss.com/docs/top-right-bottom-left
437
438
  */
438
439
  "inset-y": [{
439
- "inset-y": [z]
440
+ "inset-y": [M]
440
441
  }],
441
442
  /**
442
443
  * Start
443
444
  * @see https://tailwindcss.com/docs/top-right-bottom-left
444
445
  */
445
446
  start: [{
446
- start: [z]
447
+ start: [M]
447
448
  }],
448
449
  /**
449
450
  * End
450
451
  * @see https://tailwindcss.com/docs/top-right-bottom-left
451
452
  */
452
453
  end: [{
453
- end: [z]
454
+ end: [M]
454
455
  }],
455
456
  /**
456
457
  * Top
457
458
  * @see https://tailwindcss.com/docs/top-right-bottom-left
458
459
  */
459
460
  top: [{
460
- top: [z]
461
+ top: [M]
461
462
  }],
462
463
  /**
463
464
  * Right
464
465
  * @see https://tailwindcss.com/docs/top-right-bottom-left
465
466
  */
466
467
  right: [{
467
- right: [z]
468
+ right: [M]
468
469
  }],
469
470
  /**
470
471
  * Bottom
471
472
  * @see https://tailwindcss.com/docs/top-right-bottom-left
472
473
  */
473
474
  bottom: [{
474
- bottom: [z]
475
+ bottom: [M]
475
476
  }],
476
477
  /**
477
478
  * Left
478
479
  * @see https://tailwindcss.com/docs/top-right-bottom-left
479
480
  */
480
481
  left: [{
481
- left: [z]
482
+ left: [M]
482
483
  }],
483
484
  /**
484
485
  * Visibility
@@ -490,7 +491,7 @@ const V = (e) => {
490
491
  * @see https://tailwindcss.com/docs/z-index
491
492
  */
492
493
  z: [{
493
- z: ["auto", de, T]
494
+ z: ["auto", ue, S]
494
495
  }],
495
496
  // Flexbox and Grid
496
497
  /**
@@ -498,7 +499,7 @@ const V = (e) => {
498
499
  * @see https://tailwindcss.com/docs/flex-basis
499
500
  */
500
501
  basis: [{
501
- basis: M()
502
+ basis: N()
502
503
  }],
503
504
  /**
504
505
  * Flex Direction
@@ -519,35 +520,35 @@ const V = (e) => {
519
520
  * @see https://tailwindcss.com/docs/flex
520
521
  */
521
522
  flex: [{
522
- flex: ["1", "auto", "initial", "none", T]
523
+ flex: ["1", "auto", "initial", "none", S]
523
524
  }],
524
525
  /**
525
526
  * Flex Grow
526
527
  * @see https://tailwindcss.com/docs/flex-grow
527
528
  */
528
529
  grow: [{
529
- grow: G()
530
+ grow: X()
530
531
  }],
531
532
  /**
532
533
  * Flex Shrink
533
534
  * @see https://tailwindcss.com/docs/flex-shrink
534
535
  */
535
536
  shrink: [{
536
- shrink: G()
537
+ shrink: X()
537
538
  }],
538
539
  /**
539
540
  * Order
540
541
  * @see https://tailwindcss.com/docs/order
541
542
  */
542
543
  order: [{
543
- order: ["first", "last", "none", de, T]
544
+ order: ["first", "last", "none", ue, S]
544
545
  }],
545
546
  /**
546
547
  * Grid Template Columns
547
548
  * @see https://tailwindcss.com/docs/grid-template-columns
548
549
  */
549
550
  "grid-cols": [{
550
- "grid-cols": [ue]
551
+ "grid-cols": [he]
551
552
  }],
552
553
  /**
553
554
  * Grid Column Start / End
@@ -555,29 +556,29 @@ const V = (e) => {
555
556
  */
556
557
  "col-start-end": [{
557
558
  col: ["auto", {
558
- span: ["full", de, T]
559
- }, T]
559
+ span: ["full", ue, S]
560
+ }, S]
560
561
  }],
561
562
  /**
562
563
  * Grid Column Start
563
564
  * @see https://tailwindcss.com/docs/grid-column
564
565
  */
565
566
  "col-start": [{
566
- "col-start": I()
567
+ "col-start": z()
567
568
  }],
568
569
  /**
569
570
  * Grid Column End
570
571
  * @see https://tailwindcss.com/docs/grid-column
571
572
  */
572
573
  "col-end": [{
573
- "col-end": I()
574
+ "col-end": z()
574
575
  }],
575
576
  /**
576
577
  * Grid Template Rows
577
578
  * @see https://tailwindcss.com/docs/grid-template-rows
578
579
  */
579
580
  "grid-rows": [{
580
- "grid-rows": [ue]
581
+ "grid-rows": [he]
581
582
  }],
582
583
  /**
583
584
  * Grid Row Start / End
@@ -585,22 +586,22 @@ const V = (e) => {
585
586
  */
586
587
  "row-start-end": [{
587
588
  row: ["auto", {
588
- span: [de, T]
589
- }, T]
589
+ span: [ue, S]
590
+ }, S]
590
591
  }],
591
592
  /**
592
593
  * Grid Row Start
593
594
  * @see https://tailwindcss.com/docs/grid-row
594
595
  */
595
596
  "row-start": [{
596
- "row-start": I()
597
+ "row-start": z()
597
598
  }],
598
599
  /**
599
600
  * Grid Row End
600
601
  * @see https://tailwindcss.com/docs/grid-row
601
602
  */
602
603
  "row-end": [{
603
- "row-end": I()
604
+ "row-end": z()
604
605
  }],
605
606
  /**
606
607
  * Grid Auto Flow
@@ -614,14 +615,14 @@ const V = (e) => {
614
615
  * @see https://tailwindcss.com/docs/grid-auto-columns
615
616
  */
616
617
  "auto-cols": [{
617
- "auto-cols": ["auto", "min", "max", "fr", T]
618
+ "auto-cols": ["auto", "min", "max", "fr", S]
618
619
  }],
619
620
  /**
620
621
  * Grid Auto Rows
621
622
  * @see https://tailwindcss.com/docs/grid-auto-rows
622
623
  */
623
624
  "auto-rows": [{
624
- "auto-rows": ["auto", "min", "max", "fr", T]
625
+ "auto-rows": ["auto", "min", "max", "fr", S]
625
626
  }],
626
627
  /**
627
628
  * Gap
@@ -649,7 +650,7 @@ const V = (e) => {
649
650
  * @see https://tailwindcss.com/docs/justify-content
650
651
  */
651
652
  "justify-content": [{
652
- justify: ["normal", ...O()]
653
+ justify: ["normal", ...P()]
653
654
  }],
654
655
  /**
655
656
  * Justify Items
@@ -670,7 +671,7 @@ const V = (e) => {
670
671
  * @see https://tailwindcss.com/docs/align-content
671
672
  */
672
673
  "align-content": [{
673
- content: ["normal", ...O(), "baseline"]
674
+ content: ["normal", ...P(), "baseline"]
674
675
  }],
675
676
  /**
676
677
  * Align Items
@@ -691,7 +692,7 @@ const V = (e) => {
691
692
  * @see https://tailwindcss.com/docs/place-content
692
693
  */
693
694
  "place-content": [{
694
- "place-content": [...O(), "baseline"]
695
+ "place-content": [...P(), "baseline"]
695
696
  }],
696
697
  /**
697
698
  * Place Items
@@ -839,7 +840,7 @@ const V = (e) => {
839
840
  * @see https://tailwindcss.com/docs/space
840
841
  */
841
842
  "space-x": [{
842
- "space-x": [R]
843
+ "space-x": [V]
843
844
  }],
844
845
  /**
845
846
  * Space Between X Reverse
@@ -851,7 +852,7 @@ const V = (e) => {
851
852
  * @see https://tailwindcss.com/docs/space
852
853
  */
853
854
  "space-y": [{
854
- "space-y": [R]
855
+ "space-y": [V]
855
856
  }],
856
857
  /**
857
858
  * Space Between Y Reverse
@@ -864,51 +865,51 @@ const V = (e) => {
864
865
  * @see https://tailwindcss.com/docs/width
865
866
  */
866
867
  w: [{
867
- w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", T, t]
868
+ w: ["auto", "min", "max", "fit", "svw", "lvw", "dvw", S, t]
868
869
  }],
869
870
  /**
870
871
  * Min-Width
871
872
  * @see https://tailwindcss.com/docs/min-width
872
873
  */
873
874
  "min-w": [{
874
- "min-w": [T, t, "min", "max", "fit"]
875
+ "min-w": [S, t, "min", "max", "fit"]
875
876
  }],
876
877
  /**
877
878
  * Max-Width
878
879
  * @see https://tailwindcss.com/docs/max-width
879
880
  */
880
881
  "max-w": [{
881
- "max-w": [T, t, "none", "full", "min", "max", "fit", "prose", {
882
- screen: [J]
883
- }, J]
882
+ "max-w": [S, t, "none", "full", "min", "max", "fit", "prose", {
883
+ screen: [Q]
884
+ }, Q]
884
885
  }],
885
886
  /**
886
887
  * Height
887
888
  * @see https://tailwindcss.com/docs/height
888
889
  */
889
890
  h: [{
890
- h: [T, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
891
+ h: [S, t, "auto", "min", "max", "fit", "svh", "lvh", "dvh"]
891
892
  }],
892
893
  /**
893
894
  * Min-Height
894
895
  * @see https://tailwindcss.com/docs/min-height
895
896
  */
896
897
  "min-h": [{
897
- "min-h": [T, t, "min", "max", "fit", "svh", "lvh", "dvh"]
898
+ "min-h": [S, t, "min", "max", "fit", "svh", "lvh", "dvh"]
898
899
  }],
899
900
  /**
900
901
  * Max-Height
901
902
  * @see https://tailwindcss.com/docs/max-height
902
903
  */
903
904
  "max-h": [{
904
- "max-h": [T, t, "min", "max", "fit", "svh", "lvh", "dvh"]
905
+ "max-h": [S, t, "min", "max", "fit", "svh", "lvh", "dvh"]
905
906
  }],
906
907
  /**
907
908
  * Size
908
909
  * @see https://tailwindcss.com/docs/size
909
910
  */
910
911
  size: [{
911
- size: [T, t, "auto", "min", "max", "fit"]
912
+ size: [S, t, "auto", "min", "max", "fit"]
912
913
  }],
913
914
  // Typography
914
915
  /**
@@ -916,7 +917,7 @@ const V = (e) => {
916
917
  * @see https://tailwindcss.com/docs/font-size
917
918
  */
918
919
  "font-size": [{
919
- text: ["base", J, K]
920
+ text: ["base", Q, J]
920
921
  }],
921
922
  /**
922
923
  * Font Smoothing
@@ -933,14 +934,14 @@ const V = (e) => {
933
934
  * @see https://tailwindcss.com/docs/font-weight
934
935
  */
935
936
  "font-weight": [{
936
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Le]
937
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Ee]
937
938
  }],
938
939
  /**
939
940
  * Font Family
940
941
  * @see https://tailwindcss.com/docs/font-family
941
942
  */
942
943
  "font-family": [{
943
- font: [ue]
944
+ font: [he]
944
945
  }],
945
946
  /**
946
947
  * Font Variant Numeric
@@ -977,35 +978,35 @@ const V = (e) => {
977
978
  * @see https://tailwindcss.com/docs/letter-spacing
978
979
  */
979
980
  tracking: [{
980
- tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", T]
981
+ tracking: ["tighter", "tight", "normal", "wide", "wider", "widest", S]
981
982
  }],
982
983
  /**
983
984
  * Line Clamp
984
985
  * @see https://tailwindcss.com/docs/line-clamp
985
986
  */
986
987
  "line-clamp": [{
987
- "line-clamp": ["none", ie, Le]
988
+ "line-clamp": ["none", ne, Ee]
988
989
  }],
989
990
  /**
990
991
  * Line Height
991
992
  * @see https://tailwindcss.com/docs/line-height
992
993
  */
993
994
  leading: [{
994
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", X, T]
995
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", Y, S]
995
996
  }],
996
997
  /**
997
998
  * List Style Image
998
999
  * @see https://tailwindcss.com/docs/list-style-image
999
1000
  */
1000
1001
  "list-image": [{
1001
- "list-image": ["none", T]
1002
+ "list-image": ["none", S]
1002
1003
  }],
1003
1004
  /**
1004
1005
  * List Style Type
1005
1006
  * @see https://tailwindcss.com/docs/list-style-type
1006
1007
  */
1007
1008
  "list-style-type": [{
1008
- list: ["none", "disc", "decimal", T]
1009
+ list: ["none", "disc", "decimal", S]
1009
1010
  }],
1010
1011
  /**
1011
1012
  * List Style Position
@@ -1060,21 +1061,21 @@ const V = (e) => {
1060
1061
  * @see https://tailwindcss.com/docs/text-decoration-style
1061
1062
  */
1062
1063
  "text-decoration-style": [{
1063
- decoration: [...A(), "wavy"]
1064
+ decoration: [...L(), "wavy"]
1064
1065
  }],
1065
1066
  /**
1066
1067
  * Text Decoration Thickness
1067
1068
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1068
1069
  */
1069
1070
  "text-decoration-thickness": [{
1070
- decoration: ["auto", "from-font", X, K]
1071
+ decoration: ["auto", "from-font", Y, J]
1071
1072
  }],
1072
1073
  /**
1073
1074
  * Text Underline Offset
1074
1075
  * @see https://tailwindcss.com/docs/text-underline-offset
1075
1076
  */
1076
1077
  "underline-offset": [{
1077
- "underline-offset": ["auto", X, T]
1078
+ "underline-offset": ["auto", Y, S]
1078
1079
  }],
1079
1080
  /**
1080
1081
  * Text Decoration Color
@@ -1105,14 +1106,14 @@ const V = (e) => {
1105
1106
  * @see https://tailwindcss.com/docs/text-indent
1106
1107
  */
1107
1108
  indent: [{
1108
- indent: w()
1109
+ indent: y()
1109
1110
  }],
1110
1111
  /**
1111
1112
  * Vertical Alignment
1112
1113
  * @see https://tailwindcss.com/docs/vertical-align
1113
1114
  */
1114
1115
  "vertical-align": [{
1115
- align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", T]
1116
+ align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", S]
1116
1117
  }],
1117
1118
  /**
1118
1119
  * Whitespace
@@ -1140,7 +1141,7 @@ const V = (e) => {
1140
1141
  * @see https://tailwindcss.com/docs/content
1141
1142
  */
1142
1143
  content: [{
1143
- content: ["none", T]
1144
+ content: ["none", S]
1144
1145
  }],
1145
1146
  // Backgrounds
1146
1147
  /**
@@ -1177,7 +1178,7 @@ const V = (e) => {
1177
1178
  * @see https://tailwindcss.com/docs/background-position
1178
1179
  */
1179
1180
  "bg-position": [{
1180
- bg: [...E(), Fi]
1181
+ bg: [...E(), Yi]
1181
1182
  }],
1182
1183
  /**
1183
1184
  * Background Repeat
@@ -1193,7 +1194,7 @@ const V = (e) => {
1193
1194
  * @see https://tailwindcss.com/docs/background-size
1194
1195
  */
1195
1196
  "bg-size": [{
1196
- bg: ["auto", "cover", "contain", $i]
1197
+ bg: ["auto", "cover", "contain", Xi]
1197
1198
  }],
1198
1199
  /**
1199
1200
  * Background Image
@@ -1202,7 +1203,7 @@ const V = (e) => {
1202
1203
  "bg-image": [{
1203
1204
  bg: ["none", {
1204
1205
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1205
- }, Gi]
1206
+ }, Zi]
1206
1207
  }],
1207
1208
  /**
1208
1209
  * Background Color
@@ -1434,7 +1435,7 @@ const V = (e) => {
1434
1435
  * @see https://tailwindcss.com/docs/border-style
1435
1436
  */
1436
1437
  "border-style": [{
1437
- border: [...A(), "hidden"]
1438
+ border: [...L(), "hidden"]
1438
1439
  }],
1439
1440
  /**
1440
1441
  * Divide Width X
@@ -1472,7 +1473,7 @@ const V = (e) => {
1472
1473
  * @see https://tailwindcss.com/docs/divide-style
1473
1474
  */
1474
1475
  "divide-style": [{
1475
- divide: A()
1476
+ divide: L()
1476
1477
  }],
1477
1478
  /**
1478
1479
  * Border Color
@@ -1549,21 +1550,21 @@ const V = (e) => {
1549
1550
  * @see https://tailwindcss.com/docs/outline-style
1550
1551
  */
1551
1552
  "outline-style": [{
1552
- outline: ["", ...A()]
1553
+ outline: ["", ...L()]
1553
1554
  }],
1554
1555
  /**
1555
1556
  * Outline Offset
1556
1557
  * @see https://tailwindcss.com/docs/outline-offset
1557
1558
  */
1558
1559
  "outline-offset": [{
1559
- "outline-offset": [X, T]
1560
+ "outline-offset": [Y, S]
1560
1561
  }],
1561
1562
  /**
1562
1563
  * Outline Width
1563
1564
  * @see https://tailwindcss.com/docs/outline-width
1564
1565
  */
1565
1566
  "outline-w": [{
1566
- outline: [X, K]
1567
+ outline: [Y, J]
1567
1568
  }],
1568
1569
  /**
1569
1570
  * Outline Color
@@ -1577,7 +1578,7 @@ const V = (e) => {
1577
1578
  * @see https://tailwindcss.com/docs/ring-width
1578
1579
  */
1579
1580
  "ring-w": [{
1580
- ring: y()
1581
+ ring: C()
1581
1582
  }],
1582
1583
  /**
1583
1584
  * Ring Width Inset
@@ -1603,7 +1604,7 @@ const V = (e) => {
1603
1604
  * @see https://tailwindcss.com/docs/ring-offset-width
1604
1605
  */
1605
1606
  "ring-offset-w": [{
1606
- "ring-offset": [X, K]
1607
+ "ring-offset": [Y, J]
1607
1608
  }],
1608
1609
  /**
1609
1610
  * Ring Offset Color
@@ -1618,14 +1619,14 @@ const V = (e) => {
1618
1619
  * @see https://tailwindcss.com/docs/box-shadow
1619
1620
  */
1620
1621
  shadow: [{
1621
- shadow: ["", "inner", "none", J, Xi]
1622
+ shadow: ["", "inner", "none", Q, Ki]
1622
1623
  }],
1623
1624
  /**
1624
1625
  * Box Shadow Color
1625
1626
  * @see https://tailwindcss.com/docs/box-shadow-color
1626
1627
  */
1627
1628
  "shadow-color": [{
1628
- shadow: [ue]
1629
+ shadow: [he]
1629
1630
  }],
1630
1631
  /**
1631
1632
  * Opacity
@@ -1639,14 +1640,14 @@ const V = (e) => {
1639
1640
  * @see https://tailwindcss.com/docs/mix-blend-mode
1640
1641
  */
1641
1642
  "mix-blend": [{
1642
- "mix-blend": [...j(), "plus-lighter", "plus-darker"]
1643
+ "mix-blend": [...B(), "plus-lighter", "plus-darker"]
1643
1644
  }],
1644
1645
  /**
1645
1646
  * Background Blend Mode
1646
1647
  * @see https://tailwindcss.com/docs/background-blend-mode
1647
1648
  */
1648
1649
  "bg-blend": [{
1649
- "bg-blend": j()
1650
+ "bg-blend": B()
1650
1651
  }],
1651
1652
  // Filters
1652
1653
  /**
@@ -1683,7 +1684,7 @@ const V = (e) => {
1683
1684
  * @see https://tailwindcss.com/docs/drop-shadow
1684
1685
  */
1685
1686
  "drop-shadow": [{
1686
- "drop-shadow": ["", "none", J, T]
1687
+ "drop-shadow": ["", "none", Q, S]
1687
1688
  }],
1688
1689
  /**
1689
1690
  * Grayscale
@@ -1697,28 +1698,28 @@ const V = (e) => {
1697
1698
  * @see https://tailwindcss.com/docs/hue-rotate
1698
1699
  */
1699
1700
  "hue-rotate": [{
1700
- "hue-rotate": [g]
1701
+ "hue-rotate": [p]
1701
1702
  }],
1702
1703
  /**
1703
1704
  * Invert
1704
1705
  * @see https://tailwindcss.com/docs/invert
1705
1706
  */
1706
1707
  invert: [{
1707
- invert: [p]
1708
+ invert: [g]
1708
1709
  }],
1709
1710
  /**
1710
1711
  * Saturate
1711
1712
  * @see https://tailwindcss.com/docs/saturate
1712
1713
  */
1713
1714
  saturate: [{
1714
- saturate: [S]
1715
+ saturate: [T]
1715
1716
  }],
1716
1717
  /**
1717
1718
  * Sepia
1718
1719
  * @see https://tailwindcss.com/docs/sepia
1719
1720
  */
1720
1721
  sepia: [{
1721
- sepia: [D]
1722
+ sepia: [j]
1722
1723
  }],
1723
1724
  /**
1724
1725
  * Backdrop Filter
@@ -1761,14 +1762,14 @@ const V = (e) => {
1761
1762
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
1762
1763
  */
1763
1764
  "backdrop-hue-rotate": [{
1764
- "backdrop-hue-rotate": [g]
1765
+ "backdrop-hue-rotate": [p]
1765
1766
  }],
1766
1767
  /**
1767
1768
  * Backdrop Invert
1768
1769
  * @see https://tailwindcss.com/docs/backdrop-invert
1769
1770
  */
1770
1771
  "backdrop-invert": [{
1771
- "backdrop-invert": [p]
1772
+ "backdrop-invert": [g]
1772
1773
  }],
1773
1774
  /**
1774
1775
  * Backdrop Opacity
@@ -1782,14 +1783,14 @@ const V = (e) => {
1782
1783
  * @see https://tailwindcss.com/docs/backdrop-saturate
1783
1784
  */
1784
1785
  "backdrop-saturate": [{
1785
- "backdrop-saturate": [S]
1786
+ "backdrop-saturate": [T]
1786
1787
  }],
1787
1788
  /**
1788
1789
  * Backdrop Sepia
1789
1790
  * @see https://tailwindcss.com/docs/backdrop-sepia
1790
1791
  */
1791
1792
  "backdrop-sepia": [{
1792
- "backdrop-sepia": [D]
1793
+ "backdrop-sepia": [j]
1793
1794
  }],
1794
1795
  // Tables
1795
1796
  /**
@@ -1840,35 +1841,35 @@ const V = (e) => {
1840
1841
  * @see https://tailwindcss.com/docs/transition-property
1841
1842
  */
1842
1843
  transition: [{
1843
- transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", T]
1844
+ transition: ["none", "all", "", "colors", "opacity", "shadow", "transform", S]
1844
1845
  }],
1845
1846
  /**
1846
1847
  * Transition Duration
1847
1848
  * @see https://tailwindcss.com/docs/transition-duration
1848
1849
  */
1849
1850
  duration: [{
1850
- duration: W()
1851
+ duration: G()
1851
1852
  }],
1852
1853
  /**
1853
1854
  * Transition Timing Function
1854
1855
  * @see https://tailwindcss.com/docs/transition-timing-function
1855
1856
  */
1856
1857
  ease: [{
1857
- ease: ["linear", "in", "out", "in-out", T]
1858
+ ease: ["linear", "in", "out", "in-out", S]
1858
1859
  }],
1859
1860
  /**
1860
1861
  * Transition Delay
1861
1862
  * @see https://tailwindcss.com/docs/transition-delay
1862
1863
  */
1863
1864
  delay: [{
1864
- delay: W()
1865
+ delay: G()
1865
1866
  }],
1866
1867
  /**
1867
1868
  * Animation
1868
1869
  * @see https://tailwindcss.com/docs/animation
1869
1870
  */
1870
1871
  animate: [{
1871
- animate: ["none", "spin", "ping", "pulse", "bounce", T]
1872
+ animate: ["none", "spin", "ping", "pulse", "bounce", S]
1872
1873
  }],
1873
1874
  // Transforms
1874
1875
  /**
@@ -1904,42 +1905,42 @@ const V = (e) => {
1904
1905
  * @see https://tailwindcss.com/docs/rotate
1905
1906
  */
1906
1907
  rotate: [{
1907
- rotate: [de, T]
1908
+ rotate: [ue, S]
1908
1909
  }],
1909
1910
  /**
1910
1911
  * Translate X
1911
1912
  * @see https://tailwindcss.com/docs/translate
1912
1913
  */
1913
1914
  "translate-x": [{
1914
- "translate-x": [N]
1915
+ "translate-x": [I]
1915
1916
  }],
1916
1917
  /**
1917
1918
  * Translate Y
1918
1919
  * @see https://tailwindcss.com/docs/translate
1919
1920
  */
1920
1921
  "translate-y": [{
1921
- "translate-y": [N]
1922
+ "translate-y": [I]
1922
1923
  }],
1923
1924
  /**
1924
1925
  * Skew X
1925
1926
  * @see https://tailwindcss.com/docs/skew
1926
1927
  */
1927
1928
  "skew-x": [{
1928
- "skew-x": [v]
1929
+ "skew-x": [w]
1929
1930
  }],
1930
1931
  /**
1931
1932
  * Skew Y
1932
1933
  * @see https://tailwindcss.com/docs/skew
1933
1934
  */
1934
1935
  "skew-y": [{
1935
- "skew-y": [v]
1936
+ "skew-y": [w]
1936
1937
  }],
1937
1938
  /**
1938
1939
  * Transform Origin
1939
1940
  * @see https://tailwindcss.com/docs/transform-origin
1940
1941
  */
1941
1942
  "transform-origin": [{
1942
- origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", T]
1943
+ origin: ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", S]
1943
1944
  }],
1944
1945
  // Interactivity
1945
1946
  /**
@@ -1961,7 +1962,7 @@ const V = (e) => {
1961
1962
  * @see https://tailwindcss.com/docs/cursor
1962
1963
  */
1963
1964
  cursor: [{
1964
- cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", T]
1965
+ cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", S]
1965
1966
  }],
1966
1967
  /**
1967
1968
  * Caret Color
@@ -1996,126 +1997,126 @@ const V = (e) => {
1996
1997
  * @see https://tailwindcss.com/docs/scroll-margin
1997
1998
  */
1998
1999
  "scroll-m": [{
1999
- "scroll-m": w()
2000
+ "scroll-m": y()
2000
2001
  }],
2001
2002
  /**
2002
2003
  * Scroll Margin X
2003
2004
  * @see https://tailwindcss.com/docs/scroll-margin
2004
2005
  */
2005
2006
  "scroll-mx": [{
2006
- "scroll-mx": w()
2007
+ "scroll-mx": y()
2007
2008
  }],
2008
2009
  /**
2009
2010
  * Scroll Margin Y
2010
2011
  * @see https://tailwindcss.com/docs/scroll-margin
2011
2012
  */
2012
2013
  "scroll-my": [{
2013
- "scroll-my": w()
2014
+ "scroll-my": y()
2014
2015
  }],
2015
2016
  /**
2016
2017
  * Scroll Margin Start
2017
2018
  * @see https://tailwindcss.com/docs/scroll-margin
2018
2019
  */
2019
2020
  "scroll-ms": [{
2020
- "scroll-ms": w()
2021
+ "scroll-ms": y()
2021
2022
  }],
2022
2023
  /**
2023
2024
  * Scroll Margin End
2024
2025
  * @see https://tailwindcss.com/docs/scroll-margin
2025
2026
  */
2026
2027
  "scroll-me": [{
2027
- "scroll-me": w()
2028
+ "scroll-me": y()
2028
2029
  }],
2029
2030
  /**
2030
2031
  * Scroll Margin Top
2031
2032
  * @see https://tailwindcss.com/docs/scroll-margin
2032
2033
  */
2033
2034
  "scroll-mt": [{
2034
- "scroll-mt": w()
2035
+ "scroll-mt": y()
2035
2036
  }],
2036
2037
  /**
2037
2038
  * Scroll Margin Right
2038
2039
  * @see https://tailwindcss.com/docs/scroll-margin
2039
2040
  */
2040
2041
  "scroll-mr": [{
2041
- "scroll-mr": w()
2042
+ "scroll-mr": y()
2042
2043
  }],
2043
2044
  /**
2044
2045
  * Scroll Margin Bottom
2045
2046
  * @see https://tailwindcss.com/docs/scroll-margin
2046
2047
  */
2047
2048
  "scroll-mb": [{
2048
- "scroll-mb": w()
2049
+ "scroll-mb": y()
2049
2050
  }],
2050
2051
  /**
2051
2052
  * Scroll Margin Left
2052
2053
  * @see https://tailwindcss.com/docs/scroll-margin
2053
2054
  */
2054
2055
  "scroll-ml": [{
2055
- "scroll-ml": w()
2056
+ "scroll-ml": y()
2056
2057
  }],
2057
2058
  /**
2058
2059
  * Scroll Padding
2059
2060
  * @see https://tailwindcss.com/docs/scroll-padding
2060
2061
  */
2061
2062
  "scroll-p": [{
2062
- "scroll-p": w()
2063
+ "scroll-p": y()
2063
2064
  }],
2064
2065
  /**
2065
2066
  * Scroll Padding X
2066
2067
  * @see https://tailwindcss.com/docs/scroll-padding
2067
2068
  */
2068
2069
  "scroll-px": [{
2069
- "scroll-px": w()
2070
+ "scroll-px": y()
2070
2071
  }],
2071
2072
  /**
2072
2073
  * Scroll Padding Y
2073
2074
  * @see https://tailwindcss.com/docs/scroll-padding
2074
2075
  */
2075
2076
  "scroll-py": [{
2076
- "scroll-py": w()
2077
+ "scroll-py": y()
2077
2078
  }],
2078
2079
  /**
2079
2080
  * Scroll Padding Start
2080
2081
  * @see https://tailwindcss.com/docs/scroll-padding
2081
2082
  */
2082
2083
  "scroll-ps": [{
2083
- "scroll-ps": w()
2084
+ "scroll-ps": y()
2084
2085
  }],
2085
2086
  /**
2086
2087
  * Scroll Padding End
2087
2088
  * @see https://tailwindcss.com/docs/scroll-padding
2088
2089
  */
2089
2090
  "scroll-pe": [{
2090
- "scroll-pe": w()
2091
+ "scroll-pe": y()
2091
2092
  }],
2092
2093
  /**
2093
2094
  * Scroll Padding Top
2094
2095
  * @see https://tailwindcss.com/docs/scroll-padding
2095
2096
  */
2096
2097
  "scroll-pt": [{
2097
- "scroll-pt": w()
2098
+ "scroll-pt": y()
2098
2099
  }],
2099
2100
  /**
2100
2101
  * Scroll Padding Right
2101
2102
  * @see https://tailwindcss.com/docs/scroll-padding
2102
2103
  */
2103
2104
  "scroll-pr": [{
2104
- "scroll-pr": w()
2105
+ "scroll-pr": y()
2105
2106
  }],
2106
2107
  /**
2107
2108
  * Scroll Padding Bottom
2108
2109
  * @see https://tailwindcss.com/docs/scroll-padding
2109
2110
  */
2110
2111
  "scroll-pb": [{
2111
- "scroll-pb": w()
2112
+ "scroll-pb": y()
2112
2113
  }],
2113
2114
  /**
2114
2115
  * Scroll Padding Left
2115
2116
  * @see https://tailwindcss.com/docs/scroll-padding
2116
2117
  */
2117
2118
  "scroll-pl": [{
2118
- "scroll-pl": w()
2119
+ "scroll-pl": y()
2119
2120
  }],
2120
2121
  /**
2121
2122
  * Scroll Snap Align
@@ -2183,7 +2184,7 @@ const V = (e) => {
2183
2184
  * @see https://tailwindcss.com/docs/will-change
2184
2185
  */
2185
2186
  "will-change": [{
2186
- "will-change": ["auto", "scroll", "contents", "transform", T]
2187
+ "will-change": ["auto", "scroll", "contents", "transform", S]
2187
2188
  }],
2188
2189
  // SVG
2189
2190
  /**
@@ -2198,7 +2199,7 @@ const V = (e) => {
2198
2199
  * @see https://tailwindcss.com/docs/stroke-width
2199
2200
  */
2200
2201
  "stroke-w": [{
2201
- stroke: [X, K, Le]
2202
+ stroke: [Y, J, Ee]
2202
2203
  }],
2203
2204
  /**
2204
2205
  * Stroke
@@ -2273,21 +2274,21 @@ const V = (e) => {
2273
2274
  "font-size": ["leading"]
2274
2275
  }
2275
2276
  };
2276
- }, Ji = /* @__PURE__ */ Ri(Ki);
2277
- function _(...e) {
2278
- return Ji(lt(e));
2277
+ }, rn = /* @__PURE__ */ ji(tn);
2278
+ function R(...e) {
2279
+ return rn(ut(e));
2279
2280
  }
2280
- let Ee;
2281
- function Re() {
2282
- return Ee === void 0 && (Ee = navigator.platform.includes("Mac")), Ee;
2281
+ let Re;
2282
+ function Ve() {
2283
+ return Re === void 0 && (Re = navigator.platform.includes("Mac")), Re;
2283
2284
  }
2284
- function Qi(e) {
2285
- return `${e}`.toLowerCase() === "mod" ? Re() ? "⌘" : "Ctrl" : `${e}`.toLowerCase() === "alt" ? Re() ? "⌥" : "Alt" : `${e}`.toLowerCase() === "shift" ? Re() ? "⇧" : "Shift" : e;
2285
+ function nn(e) {
2286
+ return `${e}`.toLowerCase() === "mod" ? Ve() ? "⌘" : "Ctrl" : `${e}`.toLowerCase() === "alt" ? Ve() ? "⌥" : "Alt" : `${e}`.toLowerCase() === "shift" ? Ve() ? "⇧" : "Shift" : e;
2286
2287
  }
2287
- function en(e) {
2288
- return e.map(Qi).join(" ");
2288
+ function on(e) {
2289
+ return e.map(nn).join(" ");
2289
2290
  }
2290
- const vt = Q.forwardRef(
2291
+ const Nt = ee.forwardRef(
2291
2292
  (e, t) => {
2292
2293
  const {
2293
2294
  icon: r = void 0,
@@ -2300,45 +2301,45 @@ const vt = Q.forwardRef(
2300
2301
  shortcutKeys: s = void 0,
2301
2302
  tooltipOptions: c = {},
2302
2303
  action: d = void 0,
2303
- isActive: g = void 0,
2304
- children: p,
2304
+ isActive: p = void 0,
2305
+ children: g,
2305
2306
  asChild: u = !1,
2306
2307
  upload: k = !1,
2307
2308
  initialDisplayedColor: b = void 0,
2308
- dataState: z = !1,
2309
+ dataState: M = !1,
2309
2310
  ...f
2310
- } = e, x = wt[r], h = u ? ut : yt, S = (m) => {
2311
+ } = e, x = Mt[r], h = u ? dt : St, T = (m) => {
2311
2312
  if (o) {
2312
2313
  m.preventDefault();
2313
2314
  return;
2314
2315
  }
2315
2316
  d == null || d(m);
2316
2317
  };
2317
- return /* @__PURE__ */ C(Nn, { children: [
2318
- /* @__PURE__ */ n(An, { asChild: !0, children: /* @__PURE__ */ C(
2318
+ return /* @__PURE__ */ v(Vn, { children: [
2319
+ /* @__PURE__ */ n(Dn, { asChild: !0, children: /* @__PURE__ */ v(
2319
2320
  h,
2320
2321
  {
2321
- className: _("richtext-h-[32px] richtext-w-[32px]", a),
2322
- "data-state": z ? "on" : "off",
2322
+ className: R("richtext-h-[32px] richtext-w-[32px]", a),
2323
+ "data-state": M ? "on" : "off",
2323
2324
  disabled: o,
2324
- onClick: S,
2325
+ onClick: T,
2325
2326
  ref: t,
2326
2327
  size: "sm",
2327
2328
  ...f,
2328
2329
  children: [
2329
2330
  x && /* @__PURE__ */ n(x, { className: "richtext-size-4" }),
2330
- p
2331
+ g
2331
2332
  ]
2332
2333
  }
2333
2334
  ) }),
2334
- i && /* @__PURE__ */ n(Ct, { ...c, className: "richtext-tooltip", children: /* @__PURE__ */ C("div", { className: "richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center", children: [
2335
+ i && /* @__PURE__ */ n(zt, { ...c, className: "richtext-tooltip", children: /* @__PURE__ */ v("div", { className: "richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center", children: [
2335
2336
  /* @__PURE__ */ n("div", { children: i }),
2336
- !!(s != null && s.length) && /* @__PURE__ */ n("span", { children: en(s) })
2337
+ !!(s != null && s.length) && /* @__PURE__ */ n("span", { children: on(s) })
2337
2338
  ] }) })
2338
2339
  ] });
2339
2340
  }
2340
2341
  );
2341
- function tn(e) {
2342
+ function an(e) {
2342
2343
  return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
2343
2344
  "path",
2344
2345
  {
@@ -2347,7 +2348,7 @@ function tn(e) {
2347
2348
  }
2348
2349
  ) });
2349
2350
  }
2350
- function rn(e) {
2351
+ function sn(e) {
2351
2352
  return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
2352
2353
  "path",
2353
2354
  {
@@ -2360,7 +2361,7 @@ function rn(e) {
2360
2361
  }
2361
2362
  ) });
2362
2363
  }
2363
- function nn() {
2364
+ function ln() {
2364
2365
  return /* @__PURE__ */ n(
2365
2366
  "svg",
2366
2367
  {
@@ -2387,7 +2388,7 @@ function nn() {
2387
2388
  }
2388
2389
  );
2389
2390
  }
2390
- function on() {
2391
+ function cn() {
2391
2392
  return /* @__PURE__ */ n(
2392
2393
  "svg",
2393
2394
  {
@@ -2414,7 +2415,7 @@ function on() {
2414
2415
  }
2415
2416
  );
2416
2417
  }
2417
- function an(e) {
2418
+ function dn(e) {
2418
2419
  return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
2419
2420
  "path",
2420
2421
  {
@@ -2423,8 +2424,8 @@ function an(e) {
2423
2424
  }
2424
2425
  ) });
2425
2426
  }
2426
- function fe(e) {
2427
- const t = wt[e.name];
2427
+ function me(e) {
2428
+ const t = Mt[e.name];
2428
2429
  return t ? /* @__PURE__ */ n(
2429
2430
  t,
2430
2431
  {
@@ -2433,7 +2434,7 @@ function fe(e) {
2433
2434
  }
2434
2435
  ) : null;
2435
2436
  }
2436
- function sn(e) {
2437
+ function un(e) {
2437
2438
  return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
2438
2439
  "path",
2439
2440
  {
@@ -2442,7 +2443,7 @@ function sn(e) {
2442
2443
  }
2443
2444
  ) });
2444
2445
  }
2445
- function ln(e) {
2446
+ function hn(e) {
2446
2447
  return /* @__PURE__ */ n(
2447
2448
  "svg",
2448
2449
  {
@@ -2467,10 +2468,10 @@ function ln(e) {
2467
2468
  }
2468
2469
  );
2469
2470
  }
2470
- function cn(e) {
2471
+ function fn(e) {
2471
2472
  return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n("path", { fill: "currentColor", d: "M9 7v10h6v-2h-4V7z" }) });
2472
2473
  }
2473
- function dn(e) {
2474
+ function mn(e) {
2474
2475
  return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
2475
2476
  "path",
2476
2477
  {
@@ -2479,7 +2480,7 @@ function dn(e) {
2479
2480
  }
2480
2481
  ) });
2481
2482
  }
2482
- function un(e) {
2483
+ function pn(e) {
2483
2484
  return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ n(
2484
2485
  "path",
2485
2486
  {
@@ -2488,7 +2489,7 @@ function un(e) {
2488
2489
  }
2489
2490
  ) });
2490
2491
  }
2491
- function hn() {
2492
+ function gn() {
2492
2493
  return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
2493
2494
  "path",
2494
2495
  {
@@ -2497,7 +2498,7 @@ function hn() {
2497
2498
  }
2498
2499
  ) });
2499
2500
  }
2500
- function fn() {
2501
+ function xn() {
2501
2502
  return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
2502
2503
  "path",
2503
2504
  {
@@ -2510,7 +2511,7 @@ function fn() {
2510
2511
  }
2511
2512
  ) });
2512
2513
  }
2513
- function mn() {
2514
+ function bn() {
2514
2515
  return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
2515
2516
  "path",
2516
2517
  {
@@ -2523,7 +2524,7 @@ function mn() {
2523
2524
  }
2524
2525
  ) });
2525
2526
  }
2526
- function gn() {
2527
+ function vn() {
2527
2528
  return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
2528
2529
  "path",
2529
2530
  {
@@ -2536,7 +2537,7 @@ function gn() {
2536
2537
  }
2537
2538
  ) });
2538
2539
  }
2539
- function pn() {
2540
+ function wn() {
2540
2541
  return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
2541
2542
  "path",
2542
2543
  {
@@ -2545,8 +2546,8 @@ function pn() {
2545
2546
  }
2546
2547
  ) });
2547
2548
  }
2548
- function xn() {
2549
- return /* @__PURE__ */ C("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 32 32", children: [
2549
+ function yn() {
2550
+ return /* @__PURE__ */ v("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 32 32", children: [
2550
2551
  /* @__PURE__ */ n(
2551
2552
  "path",
2552
2553
  {
@@ -2563,8 +2564,8 @@ function xn() {
2563
2564
  )
2564
2565
  ] });
2565
2566
  }
2566
- function bn() {
2567
- return /* @__PURE__ */ C(
2567
+ function Cn() {
2568
+ return /* @__PURE__ */ v(
2568
2569
  "svg",
2569
2570
  {
2570
2571
  xmlns: "http://www.w3.org/2000/svg",
@@ -2591,7 +2592,7 @@ function bn() {
2591
2592
  }
2592
2593
  );
2593
2594
  }
2594
- function vn() {
2595
+ function kn() {
2595
2596
  return /* @__PURE__ */ n("svg", { height: "1em", viewBox: "0 0 15 15", width: "1em", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n(
2596
2597
  "path",
2597
2598
  {
@@ -2600,8 +2601,8 @@ function vn() {
2600
2601
  }
2601
2602
  ) });
2602
2603
  }
2603
- function wn() {
2604
- return /* @__PURE__ */ n("svg", { height: "1em", viewBox: "0 0 24 24", width: "1em", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C(
2604
+ function Nn() {
2605
+ return /* @__PURE__ */ n("svg", { height: "1em", viewBox: "0 0 24 24", width: "1em", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ v(
2605
2606
  "g",
2606
2607
  {
2607
2608
  fill: "none",
@@ -2616,7 +2617,7 @@ function wn() {
2616
2617
  }
2617
2618
  ) });
2618
2619
  }
2619
- function yn() {
2620
+ function Mn() {
2620
2621
  return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ n(
2621
2622
  "path",
2622
2623
  {
@@ -2625,8 +2626,8 @@ function yn() {
2625
2626
  }
2626
2627
  ) });
2627
2628
  }
2628
- function Cn() {
2629
- return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 48 48", children: /* @__PURE__ */ C("g", { fill: "none", stroke: "currentColor", strokeWidth: "4", children: [
2629
+ function Sn() {
2630
+ return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 48 48", children: /* @__PURE__ */ v("g", { fill: "none", stroke: "currentColor", strokeWidth: "4", children: [
2630
2631
  /* @__PURE__ */ n("circle", { cx: "10", cy: "24", r: "4" }),
2631
2632
  /* @__PURE__ */ n("circle", { cx: "38", cy: "10", r: "4" }),
2632
2633
  /* @__PURE__ */ n("circle", { cx: "38", cy: "24", r: "4" }),
@@ -2634,7 +2635,7 @@ function Cn() {
2634
2635
  /* @__PURE__ */ n("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M34 38H22V10h12M14 24h20" })
2635
2636
  ] }) });
2636
2637
  }
2637
- function kn() {
2638
+ function zn() {
2638
2639
  return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ n(
2639
2640
  "path",
2640
2641
  {
@@ -2643,7 +2644,7 @@ function kn() {
2643
2644
  }
2644
2645
  ) });
2645
2646
  }
2646
- function Mn() {
2647
+ function Tn() {
2647
2648
  return /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ n(
2648
2649
  "path",
2649
2650
  {
@@ -2657,7 +2658,7 @@ function Mn() {
2657
2658
  }
2658
2659
  ) });
2659
2660
  }
2660
- function zn() {
2661
+ function In() {
2661
2662
  return /* @__PURE__ */ n(
2662
2663
  "svg",
2663
2664
  {
@@ -2678,144 +2679,144 @@ function zn() {
2678
2679
  }
2679
2680
  );
2680
2681
  }
2681
- const wt = {
2682
- Bold: ai,
2683
- LoaderCircle: oi,
2684
- Italic: ni,
2685
- Underline: ii,
2686
- Quote: ri,
2687
- TextQuote: rn,
2688
- Strikethrough: ti,
2689
- Minus: ei,
2690
- Eraser: Qr,
2691
- PaintRoller: Jr,
2692
- Redo2: Kr,
2693
- Undo2: Zr,
2694
- AlignCenter: vi,
2695
- AlignJustify: bi,
2696
- AlignLeft: xi,
2697
- AlignRight: pi,
2698
- ChevronDown: qr,
2699
- Subscript: Yr,
2700
- Superscript: Xr,
2701
- Code: Gr,
2702
- Code2: Wr,
2703
- Type: Fr,
2704
- IndentIncrease: $r,
2705
- IndentDecrease: Br,
2706
- List: Ur,
2707
- ListOrdered: _r,
2708
- ListTodo: jr,
2709
- Link: Pr,
2710
- ImageUp: Or,
2711
- Video: Hr,
2712
- Maximize: Dr,
2713
- Minimize: Vr,
2714
- Table: Rr,
2715
- Sparkles: Er,
2716
- Pencil: Lr,
2717
- Unlink: Ar,
2718
- BetweenHorizonalEnd: Nr,
2719
- BetweenHorizonalStart: Sr,
2720
- BetweenVerticalStart: Ir,
2721
- BetweenVerticalEnd: Tr,
2722
- TableCellsMerge: zr,
2723
- TableCellsSplit: Mr,
2724
- Trash2: kr,
2725
- Trash: Cr,
2726
- Replace: Ye,
2727
- ChevronsUpDown: yr,
2728
- LineHeight: sn,
2729
- Word: an,
2730
- HeadingParagraph: wr,
2731
- Heading1: vr,
2732
- Heading2: br,
2733
- Heading3: xr,
2734
- Heading4: pr,
2735
- Heading5: gr,
2736
- Heading6: mr,
2737
- Columns2: qe,
2738
- Columns3: fr,
2739
- Columns4: hr,
2740
- Plus: ur,
2741
- Grip: dr,
2742
- Copy: cr,
2743
- Clipboard: lr,
2744
- PanelLeft: sr,
2745
- PanelRight: ar,
2746
- Columns: qe,
2747
- Iframe: or,
2748
- MenuDown: ln,
2749
- SizeS: un,
2750
- SizeM: dn,
2751
- SizeL: cn,
2752
- AspectRatio: tn,
2753
- Emoji: nr,
2754
- DeleteColumn: nn,
2755
- DeleteRow: on,
2756
- SearchAndReplace: Ye,
2757
- EmojiIcon: ir,
2758
- KatexIcon: rr,
2759
- ExportPdf: xn,
2760
- ExportWord: bn,
2761
- ImportWord: zn,
2762
- ColumnAddLeft: fn,
2763
- ColumnAddRight: mn,
2764
- BookMarked: tr,
2765
- Excalidraw: pn,
2766
- ZoomIn: er,
2767
- ZoomOut: Qt,
2768
- Settings: Jt,
2769
- Eye: Kt,
2770
- TextDirection: gn,
2771
- LeftToRight: yn,
2772
- RightToLeft: kn,
2773
- Attachment: Zt,
2774
- GifIcon: vn,
2775
- ChevronUp: qt,
2776
- Crop: Yt,
2777
- Mermaid: Cn,
2778
- Twitter: Mn,
2779
- CodeView: hn,
2780
- FlipX: Xt,
2781
- FlipY: Gt,
2782
- PencilRuler: Wt,
2783
- WrapText: Ft,
2784
- Loader: $t,
2785
- X: st,
2786
- Html: wn,
2787
- ExternalLink: Bt,
2788
- Callout: Ut
2789
- }, et = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, tt = lt, Ue = (e, t) => (r) => {
2682
+ const Mt = {
2683
+ Bold: pi,
2684
+ LoaderCircle: mi,
2685
+ Italic: fi,
2686
+ Underline: hi,
2687
+ Quote: ui,
2688
+ TextQuote: sn,
2689
+ Strikethrough: di,
2690
+ Minus: ci,
2691
+ Eraser: li,
2692
+ PaintRoller: si,
2693
+ Redo2: ai,
2694
+ Undo2: oi,
2695
+ AlignCenter: ki,
2696
+ AlignJustify: Ci,
2697
+ AlignLeft: yi,
2698
+ AlignRight: wi,
2699
+ ChevronDown: Ue,
2700
+ Subscript: ni,
2701
+ Superscript: ii,
2702
+ Code: ri,
2703
+ Code2: ti,
2704
+ Type: ei,
2705
+ IndentIncrease: Qr,
2706
+ IndentDecrease: Jr,
2707
+ List: Kr,
2708
+ ListOrdered: Zr,
2709
+ ListTodo: qr,
2710
+ Link: Yr,
2711
+ ImageUp: Xr,
2712
+ Video: Gr,
2713
+ Maximize: Wr,
2714
+ Minimize: Fr,
2715
+ Table: $r,
2716
+ Sparkles: Br,
2717
+ Pencil: Ur,
2718
+ Unlink: _r,
2719
+ BetweenHorizonalEnd: Pr,
2720
+ BetweenHorizonalStart: Or,
2721
+ BetweenVerticalStart: jr,
2722
+ BetweenVerticalEnd: Hr,
2723
+ TableCellsMerge: Dr,
2724
+ TableCellsSplit: Vr,
2725
+ Trash2: Rr,
2726
+ Trash: Er,
2727
+ Replace: Ke,
2728
+ ChevronsUpDown: Ar,
2729
+ LineHeight: un,
2730
+ Word: dn,
2731
+ HeadingParagraph: Lr,
2732
+ Heading1: Ir,
2733
+ Heading2: Tr,
2734
+ Heading3: zr,
2735
+ Heading4: Sr,
2736
+ Heading5: Mr,
2737
+ Heading6: Nr,
2738
+ Columns2: Je,
2739
+ Columns3: kr,
2740
+ Columns4: Cr,
2741
+ Plus: yr,
2742
+ Grip: wr,
2743
+ Copy: vr,
2744
+ Clipboard: br,
2745
+ PanelLeft: xr,
2746
+ PanelRight: gr,
2747
+ Columns: Je,
2748
+ Iframe: pr,
2749
+ MenuDown: hn,
2750
+ SizeS: pn,
2751
+ SizeM: mn,
2752
+ SizeL: fn,
2753
+ AspectRatio: an,
2754
+ Emoji: mr,
2755
+ DeleteColumn: ln,
2756
+ DeleteRow: cn,
2757
+ SearchAndReplace: Ke,
2758
+ EmojiIcon: fr,
2759
+ KatexIcon: hr,
2760
+ ExportPdf: yn,
2761
+ ExportWord: Cn,
2762
+ ImportWord: In,
2763
+ ColumnAddLeft: xn,
2764
+ ColumnAddRight: bn,
2765
+ BookMarked: ur,
2766
+ Excalidraw: wn,
2767
+ ZoomIn: dr,
2768
+ ZoomOut: cr,
2769
+ Settings: lr,
2770
+ Eye: sr,
2771
+ TextDirection: vn,
2772
+ LeftToRight: Mn,
2773
+ RightToLeft: zn,
2774
+ Attachment: ar,
2775
+ GifIcon: kn,
2776
+ ChevronUp: ft,
2777
+ Crop: or,
2778
+ Mermaid: Sn,
2779
+ Twitter: Tn,
2780
+ CodeView: gn,
2781
+ FlipX: nr,
2782
+ FlipY: ir,
2783
+ PencilRuler: rr,
2784
+ WrapText: tr,
2785
+ Loader: er,
2786
+ X: ht,
2787
+ Html: Nn,
2788
+ ExternalLink: Qt,
2789
+ Callout: Jt
2790
+ }, it = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, nt = ut, $e = (e, t) => (r) => {
2790
2791
  var i;
2791
- if ((t == null ? void 0 : t.variants) == null) return tt(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
2792
+ if ((t == null ? void 0 : t.variants) == null) return nt(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
2792
2793
  const { variants: o, defaultVariants: a } = t, l = Object.keys(o).map((d) => {
2793
- const g = r == null ? void 0 : r[d], p = a == null ? void 0 : a[d];
2794
- if (g === null) return null;
2795
- const u = et(g) || et(p);
2794
+ const p = r == null ? void 0 : r[d], g = a == null ? void 0 : a[d];
2795
+ if (p === null) return null;
2796
+ const u = it(p) || it(g);
2796
2797
  return o[d][u];
2797
- }), s = r && Object.entries(r).reduce((d, g) => {
2798
- let [p, u] = g;
2799
- return u === void 0 || (d[p] = u), d;
2800
- }, {}), c = t == null || (i = t.compoundVariants) === null || i === void 0 ? void 0 : i.reduce((d, g) => {
2801
- let { class: p, className: u, ...k } = g;
2798
+ }), s = r && Object.entries(r).reduce((d, p) => {
2799
+ let [g, u] = p;
2800
+ return u === void 0 || (d[g] = u), d;
2801
+ }, {}), c = t == null || (i = t.compoundVariants) === null || i === void 0 ? void 0 : i.reduce((d, p) => {
2802
+ let { class: g, className: u, ...k } = p;
2802
2803
  return Object.entries(k).every((b) => {
2803
- let [z, f] = b;
2804
+ let [M, f] = b;
2804
2805
  return Array.isArray(f) ? f.includes({
2805
2806
  ...a,
2806
2807
  ...s
2807
- }[z]) : {
2808
+ }[M]) : {
2808
2809
  ...a,
2809
2810
  ...s
2810
- }[z] === f;
2811
+ }[M] === f;
2811
2812
  }) ? [
2812
2813
  ...d,
2813
- p,
2814
+ g,
2814
2815
  u
2815
2816
  ] : d;
2816
2817
  }, []);
2817
- return tt(e, l, c, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
2818
- }, Tn = Ue(
2818
+ return nt(e, l, c, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
2819
+ }, Ln = $e(
2819
2820
  "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-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50",
2820
2821
  {
2821
2822
  variants: {
@@ -2839,17 +2840,17 @@ const wt = {
2839
2840
  size: "default"
2840
2841
  }
2841
2842
  }
2842
- ), $ = U.forwardRef(
2843
- ({ className: e, variant: t, size: r, asChild: i = !1, ...o }, a) => /* @__PURE__ */ n(i ? ut : "button", { className: _(Tn({ variant: t, size: r, className: e })), ref: a, ...o })
2843
+ ), F = H.forwardRef(
2844
+ ({ className: e, variant: t, size: r, asChild: i = !1, ...o }, a) => /* @__PURE__ */ n(i ? dt : "button", { className: R(Ln({ variant: t, size: r, className: e })), ref: a, ...o })
2844
2845
  );
2845
- $.displayName = "Button";
2846
- const te = U.forwardRef(
2846
+ F.displayName = "Button";
2847
+ const re = H.forwardRef(
2847
2848
  ({ className: e, type: t, ...r }, i) => /* @__PURE__ */ n(
2848
2849
  "input",
2849
2850
  {
2850
2851
  ref: i,
2851
2852
  type: t,
2852
- className: _(
2853
+ className: R(
2853
2854
  "richtext-flex richtext-h-10 richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-transparent richtext-px-3 richtext-py-2 richtext-text-sm richtext-text-foreground richtext-ring-offset-background file:richtext-border-0 file:richtext-bg-transparent file:richtext-text-sm file:richtext-font-medium placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-1 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50",
2854
2855
  e
2855
2856
  ),
@@ -2857,48 +2858,62 @@ const te = U.forwardRef(
2857
2858
  }
2858
2859
  )
2859
2860
  );
2860
- te.displayName = "Input";
2861
- const In = Ue(
2861
+ re.displayName = "Input";
2862
+ const An = $e(
2862
2863
  "richtext-text-sm richtext-font-medium richtext-leading-none richtext-text-foreground peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"
2863
- ), pe = U.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(ft.Root, { className: _(In(), e), ref: r, ...t }));
2864
- pe.displayName = ft.Root.displayName;
2865
- const Ne = re.Root, ve = U.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
2866
- re.List,
2864
+ ), xe = H.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(bt.Root, { className: R(An(), e), ref: r, ...t }));
2865
+ xe.displayName = bt.Root.displayName;
2866
+ const Le = ie.Root, we = H.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
2867
+ ie.List,
2867
2868
  {
2868
2869
  ref: r,
2869
- className: _(
2870
+ className: R(
2870
2871
  "richtext-inline-flex richtext-h-10 richtext-items-center richtext-justify-center richtext-rounded-md richtext-bg-muted richtext-p-1 richtext-text-muted-foreground",
2871
2872
  e
2872
2873
  ),
2873
2874
  ...t
2874
2875
  }
2875
2876
  ));
2876
- ve.displayName = re.List.displayName;
2877
- const q = U.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
2878
- re.Trigger,
2877
+ we.displayName = ie.List.displayName;
2878
+ const Z = H.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
2879
+ ie.Trigger,
2879
2880
  {
2880
2881
  ref: r,
2881
- className: _(
2882
+ className: R(
2882
2883
  "richtext-inline-flex richtext-items-center richtext-justify-center richtext-whitespace-nowrap richtext-rounded-sm richtext-px-3 richtext-py-1.5 richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-all focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=active]:richtext-bg-background data-[state=active]:richtext-text-foreground data-[state=active]:richtext-shadow-sm",
2883
2884
  e
2884
2885
  ),
2885
2886
  ...t
2886
2887
  }
2887
2888
  ));
2888
- q.displayName = re.Trigger.displayName;
2889
- const Z = U.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
2890
- re.Content,
2889
+ Z.displayName = ie.Trigger.displayName;
2890
+ const K = H.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
2891
+ ie.Content,
2891
2892
  {
2892
2893
  ref: r,
2893
- className: _(
2894
+ className: R(
2894
2895
  "richtext-mt-2 richtext-ring-offset-background focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1",
2895
2896
  e
2896
2897
  ),
2897
2898
  ...t
2898
2899
  }
2899
2900
  ));
2900
- Z.displayName = re.Content.displayName;
2901
- const Sn = Ue(
2901
+ K.displayName = ie.Content.displayName;
2902
+ const En = H.forwardRef(
2903
+ ({ className: e, ...t }, r) => /* @__PURE__ */ n(
2904
+ "textarea",
2905
+ {
2906
+ ref: r,
2907
+ className: R(
2908
+ "richtext-flex richtext-min-h-[80px] richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-transparent richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50",
2909
+ e
2910
+ ),
2911
+ ...t
2912
+ }
2913
+ )
2914
+ );
2915
+ En.displayName = "Textarea";
2916
+ const Rn = $e(
2902
2917
  "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-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=on]:richtext-bg-accent data-[state=on]:richtext-text-accent-foreground",
2903
2918
  {
2904
2919
  variants: {
@@ -2917,52 +2932,160 @@ const Sn = Ue(
2917
2932
  size: "default"
2918
2933
  }
2919
2934
  }
2920
- ), yt = U.forwardRef(({ className: e, variant: t, size: r, ...i }, o) => /* @__PURE__ */ n(
2921
- ht.Root,
2935
+ ), St = H.forwardRef(({ className: e, variant: t, size: r, ...i }, o) => /* @__PURE__ */ n(
2936
+ xt.Root,
2922
2937
  {
2923
2938
  ref: o,
2924
- className: _(Sn({ variant: t, size: r, className: e })),
2939
+ className: R(Rn({ variant: t, size: r, className: e })),
2925
2940
  ...i
2926
2941
  }
2927
2942
  ));
2928
- yt.displayName = ht.Root.displayName;
2929
- const Fo = be.Provider, Nn = be.Root, An = be.Trigger, Ct = U.forwardRef(({ className: e, sideOffset: t = 4, ...r }, i) => /* @__PURE__ */ n(
2930
- be.Content,
2943
+ St.displayName = xt.Root.displayName;
2944
+ const Qo = ve.Provider, Vn = ve.Root, Dn = ve.Trigger, zt = H.forwardRef(({ className: e, sideOffset: t = 4, ...r }, i) => /* @__PURE__ */ n(
2945
+ ve.Content,
2931
2946
  {
2932
2947
  "data-richtext-portal": !0,
2933
2948
  ref: i,
2934
2949
  sideOffset: t,
2935
- className: _(
2950
+ className: R(
2936
2951
  "richtext-z-50 richtext-overflow-hidden richtext-rounded-md !richtext-border-none richtext-bg-primary richtext-px-3 richtext-py-1.5 richtext-text-sm richtext-text-primary-foreground richtext-shadow-md richtext-animate-in richtext-fade-in-0 richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",
2937
2952
  e
2938
2953
  ),
2939
2954
  ...r
2940
2955
  }
2941
2956
  ));
2942
- Ct.displayName = be.Content.displayName;
2943
- const Ln = 1, En = 1e6;
2944
- let Ve = 0;
2945
- function Rn() {
2946
- return Ve = (Ve + 1) % Number.MAX_SAFE_INTEGER, Ve.toString();
2957
+ zt.displayName = ve.Content.displayName;
2958
+ const ea = _.Root, ta = _.Value, Hn = H.forwardRef(({ className: e, children: t, ...r }, i) => /* @__PURE__ */ v(
2959
+ _.Trigger,
2960
+ {
2961
+ ref: i,
2962
+ className: R(
2963
+ "richtext-flex richtext-h-10 richtext-w-full richtext-items-center richtext-justify-between richtext-rounded-md richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-text-foreground richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 [&>span]:richtext-line-clamp-1",
2964
+ e
2965
+ ),
2966
+ ...r,
2967
+ children: [
2968
+ t,
2969
+ /* @__PURE__ */ n(_.Icon, { asChild: !0, children: /* @__PURE__ */ n(Ue, { className: "richtext-size-4 richtext-opacity-50" }) })
2970
+ ]
2971
+ }
2972
+ ));
2973
+ Hn.displayName = _.Trigger.displayName;
2974
+ const Tt = H.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
2975
+ _.ScrollUpButton,
2976
+ {
2977
+ ref: r,
2978
+ className: R(
2979
+ "richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
2980
+ e
2981
+ ),
2982
+ ...t,
2983
+ children: /* @__PURE__ */ n(ft, { className: "richtext-size-4" })
2984
+ }
2985
+ ));
2986
+ Tt.displayName = _.ScrollUpButton.displayName;
2987
+ const It = H.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
2988
+ _.ScrollDownButton,
2989
+ {
2990
+ ref: r,
2991
+ className: R(
2992
+ "richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",
2993
+ e
2994
+ ),
2995
+ ...t,
2996
+ children: /* @__PURE__ */ n(Ue, { className: "richtext-size-4" })
2997
+ }
2998
+ ));
2999
+ It.displayName = _.ScrollDownButton.displayName;
3000
+ const jn = H.forwardRef(({ className: e, children: t, position: r = "popper", ...i }, o) => /* @__PURE__ */ n(_.Portal, { children: /* @__PURE__ */ v(
3001
+ _.Content,
3002
+ {
3003
+ "data-richtext-portal": !0,
3004
+ position: r,
3005
+ ref: o,
3006
+ className: R(
3007
+ "richtext-relative richtext-z-50 richtext-max-h-60 richtext-min-w-[8rem] richtext-overflow-hidden richtext-overflow-y-auto richtext-rounded-md richtext-border !richtext-border-border richtext-bg-popover richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",
3008
+ r === "popper" && "data-[side=bottom]:richtext-translate-y-1 data-[side=left]:richtext--translate-x-1 data-[side=right]:richtext-translate-x-1 data-[side=top]:richtext--translate-y-1",
3009
+ e
3010
+ ),
3011
+ ...i,
3012
+ children: [
3013
+ /* @__PURE__ */ n(Tt, {}),
3014
+ /* @__PURE__ */ n(
3015
+ _.Viewport,
3016
+ {
3017
+ className: R(
3018
+ "richtext-p-1",
3019
+ r === "popper" && "richtext-h-[var(--radix-select-trigger-height)] richtext-w-full richtext-min-w-[var(--radix-select-trigger-width)]"
3020
+ ),
3021
+ children: t
3022
+ }
3023
+ ),
3024
+ /* @__PURE__ */ n(It, {})
3025
+ ]
3026
+ }
3027
+ ) }));
3028
+ jn.displayName = _.Content.displayName;
3029
+ const On = H.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
3030
+ _.Label,
3031
+ {
3032
+ className: R(
3033
+ "richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold",
3034
+ e
3035
+ ),
3036
+ ref: r,
3037
+ ...t
3038
+ }
3039
+ ));
3040
+ On.displayName = _.Label.displayName;
3041
+ const Pn = H.forwardRef(({ className: e, children: t, ...r }, i) => /* @__PURE__ */ v(
3042
+ _.Item,
3043
+ {
3044
+ ref: i,
3045
+ className: R(
3046
+ "richtext-relative richtext-flex richtext-w-full richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",
3047
+ e
3048
+ ),
3049
+ ...r,
3050
+ children: [
3051
+ /* @__PURE__ */ n("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ n(_.ItemIndicator, { children: /* @__PURE__ */ n(mt, { className: "richtext-size-4" }) }) }),
3052
+ /* @__PURE__ */ n(_.ItemText, { children: t })
3053
+ ]
3054
+ }
3055
+ ));
3056
+ Pn.displayName = _.Item.displayName;
3057
+ const _n = H.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
3058
+ _.Separator,
3059
+ {
3060
+ className: R("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted", e),
3061
+ ref: r,
3062
+ ...t
3063
+ }
3064
+ ));
3065
+ _n.displayName = _.Separator.displayName;
3066
+ const Un = 1, Bn = 1e6;
3067
+ let De = 0;
3068
+ function $n() {
3069
+ return De = (De + 1) % Number.MAX_SAFE_INTEGER, De.toString();
2947
3070
  }
2948
- const De = /* @__PURE__ */ new Map();
2949
- function rt(e) {
2950
- if (De.has(e))
3071
+ const He = /* @__PURE__ */ new Map();
3072
+ function ot(e) {
3073
+ if (He.has(e))
2951
3074
  return;
2952
3075
  const t = setTimeout(() => {
2953
- De.delete(e), me({
3076
+ He.delete(e), pe({
2954
3077
  type: "REMOVE_TOAST",
2955
3078
  toastId: e
2956
3079
  });
2957
- }, En);
2958
- De.set(e, t);
3080
+ }, Bn);
3081
+ He.set(e, t);
2959
3082
  }
2960
- function Vn(e, t) {
3083
+ function Fn(e, t) {
2961
3084
  switch (t.type) {
2962
3085
  case "ADD_TOAST":
2963
3086
  return {
2964
3087
  ...e,
2965
- toasts: [t.toast, ...e.toasts].slice(0, Ln)
3088
+ toasts: [t.toast, ...e.toasts].slice(0, Un)
2966
3089
  };
2967
3090
  case "UPDATE_TOAST":
2968
3091
  return {
@@ -2971,8 +3094,8 @@ function Vn(e, t) {
2971
3094
  };
2972
3095
  case "DISMISS_TOAST": {
2973
3096
  const { toastId: r } = t;
2974
- return r ? rt(r) : e.toasts.forEach((i) => {
2975
- rt(i.id);
3097
+ return r ? ot(r) : e.toasts.forEach((i) => {
3098
+ ot(i.id);
2976
3099
  }), {
2977
3100
  ...e,
2978
3101
  toasts: e.toasts.map(
@@ -2993,19 +3116,19 @@ function Vn(e, t) {
2993
3116
  };
2994
3117
  }
2995
3118
  }
2996
- const ke = [];
3119
+ const Ne = [];
2997
3120
  let Me = { toasts: [] };
2998
- function me(e) {
2999
- Me = Vn(Me, e), ke.forEach((t) => {
3121
+ function pe(e) {
3122
+ Me = Fn(Me, e), Ne.forEach((t) => {
3000
3123
  t(Me);
3001
3124
  });
3002
3125
  }
3003
- function Dn({ ...e }) {
3004
- const t = Rn(), r = (o) => me({
3126
+ function Wn({ ...e }) {
3127
+ const t = $n(), r = (o) => pe({
3005
3128
  type: "UPDATE_TOAST",
3006
3129
  toast: { ...o, id: t }
3007
- }), i = () => me({ type: "DISMISS_TOAST", toastId: t });
3008
- return me({
3130
+ }), i = () => pe({ type: "DISMISS_TOAST", toastId: t });
3131
+ return pe({
3009
3132
  type: "ADD_TOAST",
3010
3133
  toast: {
3011
3134
  ...e,
@@ -3021,22 +3144,22 @@ function Dn({ ...e }) {
3021
3144
  update: r
3022
3145
  };
3023
3146
  }
3024
- function Be() {
3025
- const [e, t] = U.useState(Me);
3026
- return U.useEffect(() => (ke.push(t), () => {
3027
- const r = ke.indexOf(t);
3028
- r > -1 && ke.splice(r, 1);
3147
+ function Fe() {
3148
+ const [e, t] = H.useState(Me);
3149
+ return H.useEffect(() => (Ne.push(t), () => {
3150
+ const r = Ne.indexOf(t);
3151
+ r > -1 && Ne.splice(r, 1);
3029
3152
  }), [e]), {
3030
3153
  ...e,
3031
- toast: Dn,
3032
- dismiss: (r) => me({ type: "DISMISS_TOAST", toastId: r })
3154
+ toast: Wn,
3155
+ dismiss: (r) => pe({ type: "DISMISS_TOAST", toastId: r })
3033
3156
  };
3034
3157
  }
3035
- const $e = U.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
3158
+ const We = H.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
3036
3159
  Oe.Root,
3037
3160
  {
3038
3161
  ref: r,
3039
- className: _(
3162
+ className: R(
3040
3163
  "!richtext-peer !richtext-h-4 !richtext-w-4 !richtext-shrink-0 !richtext-rounded-sm !richtext-border !richtext-border-primary !richtext-p-0 !richtext-ring-offset-background focus-visible:!richtext-outline-none focus-visible:!richtext-ring-2 focus-visible:!richtext-ring-ring focus-visible:!richtext-ring-offset-1 disabled:!richtext-cursor-not-allowed disabled:!richtext-opacity-50 data-[state=checked]:!richtext-bg-primary data-[state=checked]:!richtext-text-primary-foreground",
3041
3164
  e
3042
3165
  ),
@@ -3044,16 +3167,16 @@ const $e = U.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
3044
3167
  children: /* @__PURE__ */ n(
3045
3168
  Oe.Indicator,
3046
3169
  {
3047
- className: _(
3170
+ className: R(
3048
3171
  "!richtext-flex !richtext-items-center !richtext-justify-center !richtext-p-0 !richtext-text-current"
3049
3172
  ),
3050
- children: /* @__PURE__ */ n(si, { className: "!richtext-h-4 !richtext-w-4" })
3173
+ children: /* @__PURE__ */ n(mt, { className: "!richtext-h-4 !richtext-w-4" })
3051
3174
  }
3052
3175
  )
3053
3176
  }
3054
3177
  ));
3055
- $e.displayName = Oe.Root.displayName;
3056
- function Hn(e) {
3178
+ We.displayName = Oe.Root.displayName;
3179
+ function Gn(e) {
3057
3180
  return e = e || /* @__PURE__ */ new Map(), {
3058
3181
  /**
3059
3182
  * A Map of event names to registered handler functions.
@@ -3100,57 +3223,57 @@ function Hn(e) {
3100
3223
  }
3101
3224
  };
3102
3225
  }
3103
- const Fe = Hn(), kt = Q.createContext(Fe), On = () => Q.useContext(kt);
3104
- function Mt(e, t) {
3105
- const r = On();
3106
- Q.useEffect(() => (t.map((i) => r.on(i, e)), () => {
3226
+ const Ge = Gn(), Lt = ee.createContext(Ge), Xn = () => ee.useContext(Lt);
3227
+ function At(e, t) {
3228
+ const r = Xn();
3229
+ ee.useEffect(() => (t.map((i) => r.on(i, e)), () => {
3107
3230
  t.map((i) => r.off(i, e));
3108
3231
  }), [r, t, e]);
3109
3232
  }
3110
- const Wo = Fe.emit;
3111
- function Go({ children: e }) {
3112
- return /* @__PURE__ */ n(kt.Provider, { value: Fe, children: e });
3233
+ const ra = Ge.emit;
3234
+ function ia({ children: e }) {
3235
+ return /* @__PURE__ */ n(Lt.Provider, { value: Ge, children: e });
3113
3236
  }
3114
- const we = F.Root, We = F.Trigger, Pn = F.Portal, zt = U.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
3115
- F.Overlay,
3237
+ const ye = W.Root, Xe = W.Trigger, Yn = W.Portal, Et = H.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
3238
+ W.Overlay,
3116
3239
  {
3117
3240
  ref: r,
3118
- className: _(
3241
+ className: R(
3119
3242
  "richtext-fixed richtext-inset-0 richtext-z-50 richtext-bg-black/80 data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0",
3120
3243
  e
3121
3244
  ),
3122
3245
  ...t
3123
3246
  }
3124
3247
  ));
3125
- zt.displayName = F.Overlay.displayName;
3126
- const ae = U.forwardRef(({ className: e, children: t, ...r }, i) => /* @__PURE__ */ C(Pn, { "data-richtext-portal": !0, children: [
3127
- /* @__PURE__ */ n(zt, {}),
3128
- /* @__PURE__ */ C(
3129
- F.Content,
3248
+ Et.displayName = W.Overlay.displayName;
3249
+ const se = H.forwardRef(({ className: e, children: t, ...r }, i) => /* @__PURE__ */ v(Yn, { "data-richtext-portal": !0, children: [
3250
+ /* @__PURE__ */ n(Et, {}),
3251
+ /* @__PURE__ */ v(
3252
+ W.Content,
3130
3253
  {
3131
3254
  "data-richtext-portal": !0,
3132
3255
  ref: i,
3133
- className: _(
3256
+ className: R(
3134
3257
  "richtext-fixed richtext-left-[50%] richtext-top-[50%] richtext-z-50 richtext-grid richtext-w-full richtext-max-w-lg richtext-translate-x-[-50%] richtext-translate-y-[-50%] richtext-gap-4 richtext-border !richtext-border-border richtext-bg-background richtext-p-6 richtext-shadow-lg richtext-duration-200 data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[state=closed]:richtext-slide-out-to-left-1/2 data-[state=closed]:richtext-slide-out-to-top-[48%] data-[state=open]:richtext-slide-in-from-left-1/2 data-[state=open]:richtext-slide-in-from-top-[48%] sm:richtext-rounded-lg",
3135
3258
  e
3136
3259
  ),
3137
3260
  ...r,
3138
3261
  children: [
3139
3262
  t,
3140
- /* @__PURE__ */ C(F.Close, { className: "richtext-absolute richtext-right-4 richtext-top-4 richtext-rounded-sm richtext-opacity-70 richtext-ring-offset-background richtext-transition-opacity hover:richtext-opacity-100 focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-pointer-events-none data-[state=open]:richtext-bg-accent data-[state=open]:richtext-text-muted-foreground", children: [
3141
- /* @__PURE__ */ n(st, { className: "richtext-size-4 richtext-text-accent-foreground" }),
3263
+ /* @__PURE__ */ v(W.Close, { className: "richtext-absolute richtext-right-4 richtext-top-4 richtext-rounded-sm richtext-opacity-70 richtext-ring-offset-background richtext-transition-opacity hover:richtext-opacity-100 focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-pointer-events-none data-[state=open]:richtext-bg-accent data-[state=open]:richtext-text-muted-foreground", children: [
3264
+ /* @__PURE__ */ n(ht, { className: "richtext-size-4 richtext-text-accent-foreground" }),
3142
3265
  /* @__PURE__ */ n("span", { className: "richtext-sr-only richtext-text-accent-foreground", children: "Close" })
3143
3266
  ] })
3144
3267
  ]
3145
3268
  }
3146
3269
  )
3147
3270
  ] }));
3148
- ae.displayName = F.Content.displayName;
3149
- function jn({ className: e, ...t }) {
3271
+ se.displayName = W.Content.displayName;
3272
+ function qn({ className: e, ...t }) {
3150
3273
  return /* @__PURE__ */ n(
3151
3274
  "div",
3152
3275
  {
3153
- className: _(
3276
+ className: R(
3154
3277
  "richtext-flex richtext-flex-col richtext-space-y-1.5 richtext-text-center sm:richtext-text-left",
3155
3278
  e
3156
3279
  ),
@@ -3158,12 +3281,12 @@ function jn({ className: e, ...t }) {
3158
3281
  }
3159
3282
  );
3160
3283
  }
3161
- jn.displayName = "DialogHeader";
3162
- function Tt({ className: e, ...t }) {
3284
+ qn.displayName = "DialogHeader";
3285
+ function Rt({ className: e, ...t }) {
3163
3286
  return /* @__PURE__ */ n(
3164
3287
  "div",
3165
3288
  {
3166
- className: _(
3289
+ className: R(
3167
3290
  "richtext-flex richtext-flex-col-reverse sm:richtext-flex-row sm:richtext-justify-end sm:richtext-space-x-2",
3168
3291
  e
3169
3292
  ),
@@ -3171,29 +3294,29 @@ function Tt({ className: e, ...t }) {
3171
3294
  }
3172
3295
  );
3173
3296
  }
3174
- Tt.displayName = "DialogFooter";
3175
- const se = U.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
3176
- F.Title,
3297
+ Rt.displayName = "DialogFooter";
3298
+ const le = H.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
3299
+ W.Title,
3177
3300
  {
3178
3301
  ref: r,
3179
- className: _(
3302
+ className: R(
3180
3303
  "richtext-text-lg richtext-font-semibold richtext-leading-none richtext-tracking-tight richtext-text-foreground",
3181
3304
  e
3182
3305
  ),
3183
3306
  ...t
3184
3307
  }
3185
3308
  ));
3186
- se.displayName = F.Title.displayName;
3187
- const _n = U.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
3188
- F.Description,
3309
+ le.displayName = W.Title.displayName;
3310
+ const Zn = H.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ n(
3311
+ W.Description,
3189
3312
  {
3190
- className: _("richtext-text-sm richtext-text-muted-foreground", e),
3313
+ className: R("richtext-text-sm richtext-text-muted-foreground", e),
3191
3314
  ref: r,
3192
3315
  ...t
3193
3316
  }
3194
3317
  ));
3195
- _n.displayName = F.Description.displayName;
3196
- var Un = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Bn = ct.create({
3318
+ Zn.displayName = W.Description.displayName;
3319
+ var Kn = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Jn = pt.create({
3197
3320
  name: "image",
3198
3321
  addOptions() {
3199
3322
  return {
@@ -3237,7 +3360,7 @@ var Un = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Bn = ct.cre
3237
3360
  ];
3238
3361
  },
3239
3362
  renderHTML({ HTMLAttributes: e }) {
3240
- return ["img", dt(this.options.HTMLAttributes, e)];
3363
+ return ["img", gt(this.options.HTMLAttributes, e)];
3241
3364
  },
3242
3365
  parseMarkdown: (e, t) => t.createNode("image", {
3243
3366
  src: e.href,
@@ -3255,33 +3378,33 @@ var Un = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Bn = ct.cre
3255
3378
  const { directions: e, minWidth: t, minHeight: r, alwaysPreserveAspectRatio: i } = this.options.resize;
3256
3379
  return ({ node: o, getPos: a, HTMLAttributes: l, editor: s }) => {
3257
3380
  const c = document.createElement("img");
3258
- Object.entries(l).forEach(([p, u]) => {
3381
+ Object.entries(l).forEach(([g, u]) => {
3259
3382
  if (u != null)
3260
- switch (p) {
3383
+ switch (g) {
3261
3384
  case "width":
3262
3385
  case "height":
3263
3386
  break;
3264
3387
  default:
3265
- c.setAttribute(p, u);
3388
+ c.setAttribute(g, u);
3266
3389
  break;
3267
3390
  }
3268
3391
  }), c.src = l.src;
3269
- const d = new fi({
3392
+ const d = new xi({
3270
3393
  element: c,
3271
3394
  editor: s,
3272
3395
  node: o,
3273
3396
  getPos: a,
3274
- onResize: (p, u) => {
3275
- c.style.width = `${p}px`, c.style.height = `${u}px`;
3397
+ onResize: (g, u) => {
3398
+ c.style.width = `${g}px`, c.style.height = `${u}px`;
3276
3399
  },
3277
- onCommit: (p, u) => {
3400
+ onCommit: (g, u) => {
3278
3401
  const k = a();
3279
3402
  k !== void 0 && this.editor.chain().setNodeSelection(k).updateAttributes(this.name, {
3280
- width: p,
3403
+ width: g,
3281
3404
  height: u
3282
3405
  }).run();
3283
3406
  },
3284
- onUpdate: (p, u, k) => p.type === o.type,
3407
+ onUpdate: (g, u, k) => g.type === o.type,
3285
3408
  options: {
3286
3409
  directions: e,
3287
3410
  min: {
@@ -3290,9 +3413,9 @@ var Un = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Bn = ct.cre
3290
3413
  },
3291
3414
  preserveAspectRatio: i === !0
3292
3415
  }
3293
- }), g = d.dom;
3294
- return g.style.visibility = "hidden", g.style.pointerEvents = "none", c.onload = () => {
3295
- g.style.visibility = "", g.style.pointerEvents = "";
3416
+ }), p = d.dom;
3417
+ return p.style.visibility = "hidden", p.style.pointerEvents = "none", c.onload = () => {
3418
+ p.style.visibility = "", p.style.pointerEvents = "";
3296
3419
  }, d;
3297
3420
  };
3298
3421
  },
@@ -3306,8 +3429,8 @@ var Un = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Bn = ct.cre
3306
3429
  },
3307
3430
  addInputRules() {
3308
3431
  return [
3309
- hi({
3310
- find: Un,
3432
+ gi({
3433
+ find: Kn,
3311
3434
  type: this.type,
3312
3435
  getAttributes: (e) => {
3313
3436
  const [, , t, r, i] = e;
@@ -3316,226 +3439,226 @@ var Un = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, Bn = ct.cre
3316
3439
  })
3317
3440
  ];
3318
3441
  }
3319
- }), $n = Bn, Fn = typeof global == "object" && global && global.Object === Object && global, Wn = typeof self == "object" && self && self.Object === Object && self, It = Fn || Wn || Function("return this")(), Te = It.Symbol, St = Object.prototype, Gn = St.hasOwnProperty, Xn = St.toString, he = Te ? Te.toStringTag : void 0;
3320
- function Yn(e) {
3321
- var t = Gn.call(e, he), r = e[he];
3442
+ }), Qn = Jn, eo = typeof global == "object" && global && global.Object === Object && global, to = typeof self == "object" && self && self.Object === Object && self, Vt = eo || to || Function("return this")(), ze = Vt.Symbol, Dt = Object.prototype, ro = Dt.hasOwnProperty, io = Dt.toString, fe = ze ? ze.toStringTag : void 0;
3443
+ function no(e) {
3444
+ var t = ro.call(e, fe), r = e[fe];
3322
3445
  try {
3323
- e[he] = void 0;
3446
+ e[fe] = void 0;
3324
3447
  var i = !0;
3325
3448
  } catch {
3326
3449
  }
3327
- var o = Xn.call(e);
3328
- return i && (t ? e[he] = r : delete e[he]), o;
3450
+ var o = io.call(e);
3451
+ return i && (t ? e[fe] = r : delete e[fe]), o;
3329
3452
  }
3330
- var qn = Object.prototype, Zn = qn.toString;
3331
- function Kn(e) {
3332
- return Zn.call(e);
3453
+ var oo = Object.prototype, ao = oo.toString;
3454
+ function so(e) {
3455
+ return ao.call(e);
3333
3456
  }
3334
- var Jn = "[object Null]", Qn = "[object Undefined]", it = Te ? Te.toStringTag : void 0;
3335
- function Nt(e) {
3336
- return e == null ? e === void 0 ? Qn : Jn : it && it in Object(e) ? Yn(e) : Kn(e);
3457
+ var lo = "[object Null]", co = "[object Undefined]", at = ze ? ze.toStringTag : void 0;
3458
+ function Ht(e) {
3459
+ return e == null ? e === void 0 ? co : lo : at && at in Object(e) ? no(e) : so(e);
3337
3460
  }
3338
- function At(e) {
3461
+ function jt(e) {
3339
3462
  return e != null && typeof e == "object";
3340
3463
  }
3341
- var eo = "[object Symbol]";
3342
- function to(e) {
3343
- return typeof e == "symbol" || At(e) && Nt(e) == eo;
3464
+ var uo = "[object Symbol]";
3465
+ function ho(e) {
3466
+ return typeof e == "symbol" || jt(e) && Ht(e) == uo;
3344
3467
  }
3345
- var ro = /\s/;
3346
- function io(e) {
3347
- for (var t = e.length; t-- && ro.test(e.charAt(t)); )
3468
+ var fo = /\s/;
3469
+ function mo(e) {
3470
+ for (var t = e.length; t-- && fo.test(e.charAt(t)); )
3348
3471
  ;
3349
3472
  return t;
3350
3473
  }
3351
- var no = /^\s+/;
3352
- function oo(e) {
3353
- return e && e.slice(0, io(e) + 1).replace(no, "");
3474
+ var po = /^\s+/;
3475
+ function go(e) {
3476
+ return e && e.slice(0, mo(e) + 1).replace(po, "");
3354
3477
  }
3355
- function Ie(e) {
3478
+ function Te(e) {
3356
3479
  var t = typeof e;
3357
3480
  return e != null && (t == "object" || t == "function");
3358
3481
  }
3359
- var nt = NaN, ao = /^[-+]0x[0-9a-f]+$/i, so = /^0b[01]+$/i, lo = /^0o[0-7]+$/i, co = parseInt;
3482
+ var st = NaN, xo = /^[-+]0x[0-9a-f]+$/i, bo = /^0b[01]+$/i, vo = /^0o[0-7]+$/i, wo = parseInt;
3360
3483
  function ge(e) {
3361
3484
  if (typeof e == "number")
3362
3485
  return e;
3363
- if (to(e))
3364
- return nt;
3365
- if (Ie(e)) {
3486
+ if (ho(e))
3487
+ return st;
3488
+ if (Te(e)) {
3366
3489
  var t = typeof e.valueOf == "function" ? e.valueOf() : e;
3367
- e = Ie(t) ? t + "" : t;
3490
+ e = Te(t) ? t + "" : t;
3368
3491
  }
3369
3492
  if (typeof e != "string")
3370
3493
  return e === 0 ? e : +e;
3371
- e = oo(e);
3372
- var r = so.test(e);
3373
- return r || lo.test(e) ? co(e.slice(2), r ? 2 : 8) : ao.test(e) ? nt : +e;
3494
+ e = go(e);
3495
+ var r = bo.test(e);
3496
+ return r || vo.test(e) ? wo(e.slice(2), r ? 2 : 8) : xo.test(e) ? st : +e;
3374
3497
  }
3375
- function uo(e, t, r) {
3498
+ function yo(e, t, r) {
3376
3499
  return e === e && (r !== void 0 && (e = e <= r ? e : r), t !== void 0 && (e = e >= t ? e : t)), e;
3377
3500
  }
3378
- function ho(e, t, r) {
3379
- return r === void 0 && (r = t, t = void 0), r !== void 0 && (r = ge(r), r = r === r ? r : 0), t !== void 0 && (t = ge(t), t = t === t ? t : 0), uo(ge(e), t, r);
3501
+ function Co(e, t, r) {
3502
+ return r === void 0 && (r = t, t = void 0), r !== void 0 && (r = ge(r), r = r === r ? r : 0), t !== void 0 && (t = ge(t), t = t === t ? t : 0), yo(ge(e), t, r);
3380
3503
  }
3381
- var He = function() {
3382
- return It.Date.now();
3383
- }, fo = "Expected a function", mo = Math.max, go = Math.min;
3384
- function po(e, t, r) {
3385
- var i, o, a, l, s, c, d = 0, g = !1, p = !1, u = !0;
3504
+ var je = function() {
3505
+ return Vt.Date.now();
3506
+ }, ko = "Expected a function", No = Math.max, Mo = Math.min;
3507
+ function So(e, t, r) {
3508
+ var i, o, a, l, s, c, d = 0, p = !1, g = !1, u = !0;
3386
3509
  if (typeof e != "function")
3387
- throw new TypeError(fo);
3388
- t = ge(t) || 0, Ie(r) && (g = !!r.leading, p = "maxWait" in r, a = p ? mo(ge(r.maxWait) || 0, t) : a, u = "trailing" in r ? !!r.trailing : u);
3389
- function k(v) {
3390
- var R = i, N = o;
3391
- return i = o = void 0, d = v, l = e.apply(N, R), l;
3510
+ throw new TypeError(ko);
3511
+ t = ge(t) || 0, Te(r) && (p = !!r.leading, g = "maxWait" in r, a = g ? No(ge(r.maxWait) || 0, t) : a, u = "trailing" in r ? !!r.trailing : u);
3512
+ function k(w) {
3513
+ var V = i, I = o;
3514
+ return i = o = void 0, d = w, l = e.apply(I, V), l;
3392
3515
  }
3393
- function b(v) {
3394
- return d = v, s = setTimeout(x, t), g ? k(v) : l;
3516
+ function b(w) {
3517
+ return d = w, s = setTimeout(x, t), p ? k(w) : l;
3395
3518
  }
3396
- function z(v) {
3397
- var R = v - c, N = v - d, P = t - R;
3398
- return p ? go(P, a - N) : P;
3519
+ function M(w) {
3520
+ var V = w - c, I = w - d, U = t - V;
3521
+ return g ? Mo(U, a - I) : U;
3399
3522
  }
3400
- function f(v) {
3401
- var R = v - c, N = v - d;
3402
- return c === void 0 || R >= t || R < 0 || p && N >= a;
3523
+ function f(w) {
3524
+ var V = w - c, I = w - d;
3525
+ return c === void 0 || V >= t || V < 0 || g && I >= a;
3403
3526
  }
3404
3527
  function x() {
3405
- var v = He();
3406
- if (f(v))
3407
- return h(v);
3408
- s = setTimeout(x, z(v));
3528
+ var w = je();
3529
+ if (f(w))
3530
+ return h(w);
3531
+ s = setTimeout(x, M(w));
3409
3532
  }
3410
- function h(v) {
3411
- return s = void 0, u && i ? k(v) : (i = o = void 0, l);
3533
+ function h(w) {
3534
+ return s = void 0, u && i ? k(w) : (i = o = void 0, l);
3412
3535
  }
3413
- function S() {
3536
+ function T() {
3414
3537
  s !== void 0 && clearTimeout(s), d = 0, i = c = o = s = void 0;
3415
3538
  }
3416
3539
  function m() {
3417
- return s === void 0 ? l : h(He());
3540
+ return s === void 0 ? l : h(je());
3418
3541
  }
3419
- function D() {
3420
- var v = He(), R = f(v);
3421
- if (i = arguments, o = this, c = v, R) {
3542
+ function j() {
3543
+ var w = je(), V = f(w);
3544
+ if (i = arguments, o = this, c = w, V) {
3422
3545
  if (s === void 0)
3423
3546
  return b(c);
3424
- if (p)
3547
+ if (g)
3425
3548
  return clearTimeout(s), s = setTimeout(x, t), k(c);
3426
3549
  }
3427
3550
  return s === void 0 && (s = setTimeout(x, t)), l;
3428
3551
  }
3429
- return D.cancel = S, D.flush = m, D;
3552
+ return j.cancel = T, j.flush = m, j;
3430
3553
  }
3431
- var xo = "[object Number]";
3432
- function ot(e) {
3433
- return typeof e == "number" || At(e) && Nt(e) == xo;
3554
+ var zo = "[object Number]";
3555
+ function lt(e) {
3556
+ return typeof e == "number" || jt(e) && Ht(e) == zo;
3434
3557
  }
3435
- var bo = "Expected a function";
3436
- function at(e, t, r) {
3558
+ var To = "Expected a function";
3559
+ function ct(e, t, r) {
3437
3560
  var i = !0, o = !0;
3438
3561
  if (typeof e != "function")
3439
- throw new TypeError(bo);
3440
- return Ie(r) && (i = "leading" in r ? !!r.leading : i, o = "trailing" in r ? !!r.trailing : o), po(e, t, {
3562
+ throw new TypeError(To);
3563
+ return Te(r) && (i = "leading" in r ? !!r.leading : i, o = "trailing" in r ? !!r.trailing : o), So(e, t, {
3441
3564
  leading: i,
3442
3565
  maxWait: t,
3443
3566
  trailing: o
3444
3567
  });
3445
3568
  }
3446
- const Ce = {
3569
+ const ke = {
3447
3570
  TOP_LEFT: "tl",
3448
3571
  TOP_RIGHT: "tr",
3449
3572
  BOTTOM_LEFT: "bl",
3450
3573
  BOTTOM_RIGHT: "br"
3451
3574
  };
3452
- function vo(e) {
3453
- var N, P, H;
3454
- const [t, r] = L({
3455
- width: Ze,
3456
- height: Ze
3457
- }), [i, o] = L({
3575
+ function Io(e) {
3576
+ var I, U, O;
3577
+ const [t, r] = A({
3578
+ width: Qe,
3579
+ height: Qe
3580
+ }), [i, o] = A({
3458
3581
  width: 0,
3459
3582
  height: 0
3460
- }), [a] = L([
3461
- Ce.TOP_LEFT,
3462
- Ce.TOP_RIGHT,
3463
- Ce.BOTTOM_LEFT,
3464
- Ce.BOTTOM_RIGHT
3465
- ]), [l, s] = L(!1), [c, d] = L({
3583
+ }), [a] = A([
3584
+ ke.TOP_LEFT,
3585
+ ke.TOP_RIGHT,
3586
+ ke.BOTTOM_LEFT,
3587
+ ke.BOTTOM_RIGHT
3588
+ ]), [l, s] = A(!1), [c, d] = A({
3466
3589
  x: 0,
3467
3590
  y: 0,
3468
3591
  w: 0,
3469
3592
  h: 0,
3470
3593
  dir: ""
3471
- }), { align: g, inline: p } = (N = e == null ? void 0 : e.node) == null ? void 0 : N.attrs, u = p && (g === "left" || g === "right"), k = B(() => {
3472
- var Xe;
3473
- const { src: M, alt: w, width: y, height: I, flipX: E, flipY: A } = (Xe = e == null ? void 0 : e.node) == null ? void 0 : Xe.attrs, j = ot(y) ? `${y}px` : y, O = ot(I) ? `${I}px` : I, G = [];
3474
- E && G.push("rotateX(180deg)"), A && G.push("rotateY(180deg)");
3475
- const ye = G.join(" ");
3594
+ }), { align: p, inline: g } = (I = e == null ? void 0 : e.node) == null ? void 0 : I.attrs, u = g && (p === "left" || p === "right"), k = $(() => {
3595
+ var Ze;
3596
+ const { src: N, alt: y, width: C, height: z, flipX: E, flipY: L } = (Ze = e == null ? void 0 : e.node) == null ? void 0 : Ze.attrs, B = lt(C) ? `${C}px` : C, P = lt(z) ? `${z}px` : z, X = [];
3597
+ E && X.push("rotateX(180deg)"), L && X.push("rotateY(180deg)");
3598
+ const Ce = X.join(" ");
3476
3599
  return {
3477
- src: M || void 0,
3478
- alt: w || void 0,
3600
+ src: N || void 0,
3601
+ alt: y || void 0,
3479
3602
  style: {
3480
- width: j || void 0,
3481
- height: O || void 0,
3482
- transform: ye || "none",
3483
- ...u ? { float: g } : {}
3603
+ width: B || void 0,
3604
+ height: P || void 0,
3605
+ transform: Ce || "none",
3606
+ ...u ? { float: p } : {}
3484
3607
  }
3485
3608
  };
3486
- }, [(P = e == null ? void 0 : e.node) == null ? void 0 : P.attrs]), b = B(() => {
3609
+ }, [(U = e == null ? void 0 : e.node) == null ? void 0 : U.attrs]), b = $(() => {
3487
3610
  const {
3488
- style: { width: M }
3611
+ style: { width: N }
3489
3612
  } = k;
3490
- return { width: M === "100%" ? M : void 0 };
3613
+ return { width: N === "100%" ? N : void 0 };
3491
3614
  }, [k]);
3492
- function z(M) {
3615
+ function M(N) {
3493
3616
  o({
3494
- width: M.target.width,
3495
- height: M.target.height
3617
+ width: N.target.width,
3618
+ height: N.target.height
3496
3619
  });
3497
3620
  }
3498
3621
  function f() {
3499
- const { editor: M, getPos: w } = e;
3500
- M.commands.setNodeSelection(w());
3622
+ const { editor: N, getPos: y } = e;
3623
+ N.commands.setNodeSelection(y());
3501
3624
  }
3502
- const x = ce(
3503
- at(() => {
3504
- const { editor: M } = e, { width: w } = getComputedStyle(M.view.dom);
3505
- r((y) => ({
3506
- ...y,
3507
- width: Number.parseInt(w, 10)
3625
+ const x = de(
3626
+ ct(() => {
3627
+ const { editor: N } = e, { width: y } = getComputedStyle(N.view.dom);
3628
+ r((C) => ({
3629
+ ...C,
3630
+ width: Number.parseInt(y, 10)
3508
3631
  }));
3509
- }, Ke),
3632
+ }, et),
3510
3633
  [e == null ? void 0 : e.editor]
3511
3634
  );
3512
- function h(M, w) {
3513
- M.preventDefault(), M.stopPropagation();
3514
- const y = i.width, I = i.height, E = y / I;
3515
- let A = Number(e.node.attrs.width), j = Number(e.node.attrs.height);
3516
- const O = t.width;
3517
- A && !j ? (A = A > O ? O : A, j = Math.round(A / E)) : j && !A ? (A = Math.round(j * E), A = A > O ? O : A) : !A && !j ? (A = y > O ? O : y, j = Math.round(A / E)) : A = A > O ? O : A, s(!0), d({
3518
- x: M.clientX,
3519
- y: M.clientY,
3520
- w: A,
3521
- h: j,
3522
- dir: w
3635
+ function h(N, y) {
3636
+ N.preventDefault(), N.stopPropagation();
3637
+ const C = i.width, z = i.height, E = C / z;
3638
+ let L = Number(e.node.attrs.width), B = Number(e.node.attrs.height);
3639
+ const P = t.width;
3640
+ L && !B ? (L = L > P ? P : L, B = Math.round(L / E)) : B && !L ? (L = Math.round(B * E), L = L > P ? P : L) : !L && !B ? (L = C > P ? P : C, B = Math.round(L / E)) : L = L > P ? P : L, s(!0), d({
3641
+ x: N.clientX,
3642
+ y: N.clientY,
3643
+ w: L,
3644
+ h: B,
3645
+ dir: y
3523
3646
  });
3524
3647
  }
3525
- const S = ce(
3526
- at((M) => {
3527
- if (M.preventDefault(), M.stopPropagation(), !l)
3648
+ const T = de(
3649
+ ct((N) => {
3650
+ if (N.preventDefault(), N.stopPropagation(), !l)
3528
3651
  return;
3529
- const { x: w, w: y, dir: I } = c, E = (M.clientX - w) * (/l/.test(I) ? -1 : 1), A = ho(y + E, mi, t.width);
3652
+ const { x: y, w: C, dir: z } = c, E = (N.clientX - y) * (/l/.test(z) ? -1 : 1), L = Co(C + E, bi, t.width);
3530
3653
  e.updateAttributes({
3531
- width: A,
3654
+ width: L,
3532
3655
  height: null
3533
3656
  });
3534
- }, Ke),
3657
+ }, et),
3535
3658
  [l, c, t, e.updateAttributes]
3536
- ), m = ce(
3537
- (M) => {
3538
- M.preventDefault(), M.stopPropagation(), l && (d({
3659
+ ), m = de(
3660
+ (N) => {
3661
+ N.preventDefault(), N.stopPropagation(), l && (d({
3539
3662
  x: 0,
3540
3663
  y: 0,
3541
3664
  w: 0,
@@ -3544,31 +3667,31 @@ function vo(e) {
3544
3667
  }), s(!1), f());
3545
3668
  },
3546
3669
  [l, f]
3547
- ), D = ce(() => {
3548
- document == null || document.addEventListener("mousemove", S, !0), document == null || document.addEventListener("mouseup", m, !0);
3549
- }, [S, m]), v = ce(() => {
3550
- document == null || document.removeEventListener("mousemove", S, !0), document == null || document.removeEventListener("mouseup", m, !0);
3551
- }, [S, m]);
3552
- ze(() => (l ? D() : v(), () => {
3553
- v();
3554
- }), [l, D, v]);
3555
- const R = B(() => new ResizeObserver(() => x()), [x]);
3556
- return ze(() => (R.observe(e.editor.view.dom), () => {
3557
- R.disconnect();
3558
- }), [e.editor.view.dom, R]), /* @__PURE__ */ n(
3559
- li,
3670
+ ), j = de(() => {
3671
+ document == null || document.addEventListener("mousemove", T, !0), document == null || document.addEventListener("mouseup", m, !0);
3672
+ }, [T, m]), w = de(() => {
3673
+ document == null || document.removeEventListener("mousemove", T, !0), document == null || document.removeEventListener("mouseup", m, !0);
3674
+ }, [T, m]);
3675
+ Se(() => (l ? j() : w(), () => {
3676
+ w();
3677
+ }), [l, j, w]);
3678
+ const V = $(() => new ResizeObserver(() => x()), [x]);
3679
+ return Se(() => (V.observe(e.editor.view.dom), () => {
3680
+ V.disconnect();
3681
+ }), [e.editor.view.dom, V]), /* @__PURE__ */ n(
3682
+ Yt,
3560
3683
  {
3561
- as: p ? "span" : "div",
3684
+ as: g ? "span" : "div",
3562
3685
  className: "image-view",
3563
3686
  style: {
3564
- float: u ? g : void 0,
3565
- margin: u ? g === "left" ? "1em 1em 1em 0" : "1em 0 1em 1em" : void 0,
3566
- display: p ? "inline" : "block",
3567
- textAlign: u ? void 0 : g,
3568
- width: ((H = k.style) == null ? void 0 : H.width) ?? "auto",
3687
+ float: u ? p : void 0,
3688
+ margin: u ? p === "left" ? "1em 1em 1em 0" : "1em 0 1em 1em" : void 0,
3689
+ display: g ? "inline" : "block",
3690
+ textAlign: u ? void 0 : p,
3691
+ width: ((O = k.style) == null ? void 0 : O.width) ?? "auto",
3569
3692
  ...u ? {} : b
3570
3693
  },
3571
- children: /* @__PURE__ */ C(
3694
+ children: /* @__PURE__ */ v(
3572
3695
  "div",
3573
3696
  {
3574
3697
  "data-drag-handle": !0,
@@ -3583,18 +3706,18 @@ function vo(e) {
3583
3706
  className: "image-view__body__image block",
3584
3707
  height: "auto",
3585
3708
  onClick: f,
3586
- onLoad: z,
3709
+ onLoad: M,
3587
3710
  src: k.src,
3588
3711
  style: k.style
3589
3712
  }
3590
3713
  ),
3591
- (e == null ? void 0 : e.editor.view.editable) && ((e == null ? void 0 : e.selected) || l) && /* @__PURE__ */ n("div", { className: "image-resizer", children: a == null ? void 0 : a.map((M) => /* @__PURE__ */ n(
3714
+ (e == null ? void 0 : e.editor.view.editable) && ((e == null ? void 0 : e.selected) || l) && /* @__PURE__ */ n("div", { className: "image-resizer", children: a == null ? void 0 : a.map((N) => /* @__PURE__ */ n(
3592
3715
  "span",
3593
3716
  {
3594
- className: `image-resizer__handler image-resizer__handler--${M}`,
3595
- onMouseDown: (w) => h(w, M)
3717
+ className: `image-resizer__handler image-resizer__handler--${N}`,
3718
+ onMouseDown: (y) => h(y, N)
3596
3719
  },
3597
- `image-dir-${M}`
3720
+ `image-dir-${N}`
3598
3721
  )) })
3599
3722
  ]
3600
3723
  }
@@ -3602,12 +3725,12 @@ function vo(e) {
3602
3725
  }
3603
3726
  );
3604
3727
  }
3605
- function wo(e) {
3606
- const { editor: t } = ci(), r = U.useMemo(
3728
+ function Lo(e) {
3729
+ const { editor: t } = qt(), r = H.useMemo(
3607
3730
  () => t,
3608
3731
  [e, t]
3609
3732
  );
3610
- return di({
3733
+ return Zt({
3611
3734
  editor: r,
3612
3735
  selector(o) {
3613
3736
  return o.editor ? {
@@ -3622,23 +3745,23 @@ function wo(e) {
3622
3745
  }
3623
3746
  }) || { editor: null };
3624
3747
  }
3625
- function ee() {
3626
- return wo().editor;
3748
+ function te() {
3749
+ return Lo().editor;
3627
3750
  }
3628
- const Lt = Pt(!1);
3629
- function Et() {
3630
- return jt(Lt);
3751
+ const Ot = Wt(!1);
3752
+ function Pt() {
3753
+ return Gt(Ot);
3631
3754
  }
3632
- function Xo() {
3633
- return _t(Lt);
3755
+ function na() {
3756
+ return Xt(Ot);
3634
3757
  }
3635
- const Rt = () => !1;
3636
- function Yo(e = Rt) {
3637
- const t = Et(), [r, i] = L(() => {
3758
+ const _t = () => !1;
3759
+ function oa(e = _t) {
3760
+ const t = Pt(), [r, i] = A(() => {
3638
3761
  const s = e();
3639
3762
  return typeof s == "boolean" ? !s : s;
3640
- }), o = ee();
3641
- ze(() => {
3763
+ }), o = te();
3764
+ Se(() => {
3642
3765
  if (!o || !e) return;
3643
3766
  const s = () => {
3644
3767
  const c = e();
@@ -3648,7 +3771,7 @@ function Yo(e = Rt) {
3648
3771
  o.off("selectionUpdate", s), o.off("transaction", s);
3649
3772
  };
3650
3773
  }, [o, e]);
3651
- const a = B(() => !t || !o ? !0 : typeof r == "boolean" ? r : !1, [t, o, r]), l = B(() => !t || !o, [t, o]);
3774
+ const a = $(() => !t || !o ? !0 : typeof r == "boolean" ? r : !1, [t, o, r]), l = $(() => !t || !o, [t, o]);
3652
3775
  return {
3653
3776
  disabled: a,
3654
3777
  // can not action, opacity < 1
@@ -3657,9 +3780,9 @@ function Yo(e = Rt) {
3657
3780
  editorDisabled: l
3658
3781
  };
3659
3782
  }
3660
- function Ae(e = Rt) {
3661
- const t = Et(), [r, i] = L({}), [o, a] = L(e()), l = ee();
3662
- ze(() => {
3783
+ function Ae(e = _t) {
3784
+ const t = Pt(), [r, i] = A({}), [o, a] = A(e()), l = te();
3785
+ Se(() => {
3663
3786
  if (!l || !e) return;
3664
3787
  const d = () => {
3665
3788
  a(e());
@@ -3668,7 +3791,7 @@ function Ae(e = Rt) {
3668
3791
  l.off("selectionUpdate", d);
3669
3792
  };
3670
3793
  }, [r, l, e]);
3671
- const s = B(() => !t || !l, [t, l]), c = B(() => !t || !l, [t, l]);
3794
+ const s = $(() => !t || !l, [t, l]), c = $(() => !t || !l, [t, l]);
3672
3795
  return {
3673
3796
  disabled: s,
3674
3797
  // can not action, opacity < 1
@@ -3679,44 +3802,44 @@ function Ae(e = Rt) {
3679
3802
  // force update
3680
3803
  };
3681
3804
  }
3682
- function le(e) {
3683
- const t = ee();
3684
- return B(() => t ? t.extensionManager.extensions.find(
3805
+ function ce(e) {
3806
+ const t = te();
3807
+ return $(() => t ? t.extensionManager.extensions.find(
3685
3808
  (i) => i.name === e
3686
3809
  ) : null, [t, e]);
3687
3810
  }
3688
- function qo(e, t, r) {
3811
+ function aa(e, t, r) {
3689
3812
  return e < t ? t : e > r ? r : e;
3690
3813
  }
3691
- const yo = (e) => typeof e == "number", Co = (e) => typeof e == "string", ko = (e) => typeof e == "function";
3692
- function Mo(e, t = "px") {
3814
+ const Ao = (e) => typeof e == "number", Eo = (e) => typeof e == "string", Ro = (e) => typeof e == "function";
3815
+ function Vo(e, t = "px") {
3693
3816
  if (!e) return e;
3694
- const r = yo(e) ? String(e) : e, i = Number.parseFloat(r), o = r.match(/[%a-z]+$/i), a = o ? o[0] : t;
3817
+ const r = Ao(e) ? String(e) : e, i = Number.parseFloat(r), o = r.match(/[%a-z]+$/i), a = o ? o[0] : t;
3695
3818
  return Number.isNaN(i) ? e : i + a;
3696
3819
  }
3697
- function Zo(e, t) {
3820
+ function sa(e, t) {
3698
3821
  if (!e)
3699
3822
  return !1;
3700
3823
  const { extensions: r = [] } = (e == null ? void 0 : e.extensionManager) ?? {};
3701
3824
  return !!r.find((o) => o.name === t);
3702
3825
  }
3703
- function Ko(e) {
3704
- return e.map((t) => Co(t) ? { value: t, name: t } : t);
3826
+ function la(e) {
3827
+ return e.map((t) => Eo(t) ? { value: t, name: t } : t);
3705
3828
  }
3706
- function Vt(e) {
3707
- const t = ee(), r = le(e), { t: i } = ne();
3708
- return B(() => {
3829
+ function Ut(e) {
3830
+ const t = te(), r = ce(e), { t: i } = oe();
3831
+ return $(() => {
3709
3832
  if (!t || !r || !i)
3710
3833
  return null;
3711
3834
  const { button: o } = r.options;
3712
- return !o || !ko(o) ? null : o({
3835
+ return !o || !Ro(o) ? null : o({
3713
3836
  editor: t,
3714
3837
  extension: r,
3715
3838
  t: i
3716
3839
  });
3717
3840
  }, [t, r, i]);
3718
3841
  }
3719
- function zo(e, t) {
3842
+ function Do(e, t) {
3720
3843
  const r = e.type, i = e.name.toLowerCase(), o = i.split(".").pop();
3721
3844
  if (!o) return !1;
3722
3845
  const l = r || {
@@ -3739,10 +3862,10 @@ function zo(e, t) {
3739
3862
  return l === s;
3740
3863
  });
3741
3864
  }
3742
- function Ge(e, t) {
3865
+ function Ye(e, t) {
3743
3866
  const { acceptMimes: r, maxSize: i, t: o, toast: a } = t, l = [];
3744
3867
  return (Array.isArray(e) ? e : Object.values(e)).forEach((c) => {
3745
- if (!zo(c, r)) {
3868
+ if (!Do(c, r)) {
3746
3869
  t.onError ? t.onError({
3747
3870
  type: "type",
3748
3871
  message: o("editor.upload.fileTypeNotSupported", {
@@ -3778,44 +3901,44 @@ function Ge(e, t) {
3778
3901
  l.push(c);
3779
3902
  }), l;
3780
3903
  }
3781
- function Jo() {
3782
- const { t: e } = ne(), { toast: t } = Be(), r = ee(), i = Vt(Se.name), { icon: o, tooltip: a } = (i == null ? void 0 : i.componentProps) ?? {}, { editorDisabled: l } = Ae(), [s, c] = L(!1), [d, g] = L(!1), p = le(Se.name), [u, k] = L(""), [b, z] = L(""), f = xe(null), x = (p == null ? void 0 : p.options.defaultInline) || !1, [h, S] = L(x), m = B(() => p == null ? void 0 : p.options, [p]);
3783
- async function D(N) {
3784
- var M;
3785
- const P = (M = N == null ? void 0 : N.target) == null ? void 0 : M.files;
3786
- if (!r || r.isDestroyed || P.length === 0 || d) {
3787
- N.target.value = "";
3904
+ function ca() {
3905
+ const { t: e } = oe(), { toast: t } = Fe(), r = te(), i = Ut(Ie.name), { icon: o, tooltip: a } = (i == null ? void 0 : i.componentProps) ?? {}, { editorDisabled: l } = Ae(), [s, c] = A(!1), [d, p] = A(!1), g = ce(Ie.name), [u, k] = A(""), [b, M] = A(""), f = be(null), x = (g == null ? void 0 : g.options.defaultInline) || !1, [h, T] = A(x), m = $(() => (g == null ? void 0 : g.options) || qe, [g]);
3906
+ async function j(I) {
3907
+ var N;
3908
+ const U = (N = I == null ? void 0 : I.target) == null ? void 0 : N.files;
3909
+ if (!r || r.isDestroyed || U.length === 0 || d) {
3910
+ I.target.value = "";
3788
3911
  return;
3789
3912
  }
3790
- const H = Ge(P, {
3913
+ const O = Ye(U, {
3791
3914
  acceptMimes: m == null ? void 0 : m.acceptMimes,
3792
3915
  maxSize: m == null ? void 0 : m.maxSize,
3793
3916
  t: e,
3794
3917
  toast: t,
3795
3918
  onError: m.onError
3796
3919
  });
3797
- if (H.length <= 0) {
3798
- N.target.value = "";
3920
+ if (O.length <= 0) {
3921
+ I.target.value = "";
3799
3922
  return;
3800
3923
  }
3801
- g(!0);
3924
+ p(!0);
3802
3925
  try {
3803
3926
  if (m != null && m.multiple) {
3804
- const w = H.map(async (I) => {
3927
+ const y = O.map(async (z) => {
3805
3928
  let E = "";
3806
- return m.upload ? E = await m.upload(I) : E = URL.createObjectURL(I), E;
3929
+ return m.upload ? E = await m.upload(z) : E = URL.createObjectURL(z), E;
3807
3930
  });
3808
- (await Promise.all(w)).forEach((I) => {
3809
- r.chain().focus().setImageInline({ src: I, inline: h, alt: b }).run();
3931
+ (await Promise.all(y)).forEach((z) => {
3932
+ r.chain().focus().setImageInline({ src: z, inline: h, alt: b }).run();
3810
3933
  });
3811
3934
  } else {
3812
- const w = H[0];
3813
- let y = "";
3814
- m.upload ? y = await m.upload(w) : y = URL.createObjectURL(w), r.chain().focus().setImageInline({ src: y, inline: h, alt: b }).run();
3935
+ const y = O[0];
3936
+ let C = "";
3937
+ m.upload ? C = await m.upload(y) : C = URL.createObjectURL(y), r.chain().focus().setImageInline({ src: C, inline: h, alt: b }).run();
3815
3938
  }
3816
- c(!1), z(""), S(x);
3817
- } catch (w) {
3818
- console.error("Error uploading image", w), m.onError ? m.onError({
3939
+ c(!1), M(""), T(x);
3940
+ } catch (y) {
3941
+ console.error("Error uploading image", y), m.onError ? m.onError({
3819
3942
  type: "upload",
3820
3943
  message: e("editor.upload.error")
3821
3944
  }) : t({
@@ -3823,19 +3946,19 @@ function Jo() {
3823
3946
  title: e("editor.upload.error")
3824
3947
  });
3825
3948
  } finally {
3826
- g(!1), N.target.value = "";
3949
+ p(!1), I.target.value = "";
3827
3950
  }
3828
3951
  }
3829
- function v(N) {
3830
- N.preventDefault(), N.stopPropagation(), r.chain().focus().setImageInline({ src: u, inline: h, alt: b }).run(), c(!1), S(x), k(""), z("");
3952
+ function w(I) {
3953
+ I.preventDefault(), I.stopPropagation(), r.chain().focus().setImageInline({ src: u, inline: h, alt: b }).run(), c(!1), T(x), k(""), M("");
3831
3954
  }
3832
- function R(N) {
3833
- var P;
3834
- N.preventDefault(), (P = f.current) == null || P.click();
3955
+ function V(I) {
3956
+ var U;
3957
+ I.preventDefault(), (U = f.current) == null || U.click();
3835
3958
  }
3836
- return i ? /* @__PURE__ */ C(we, { onOpenChange: c, open: s, children: [
3837
- /* @__PURE__ */ n(We, { asChild: !0, children: /* @__PURE__ */ n(
3838
- vt,
3959
+ return i ? /* @__PURE__ */ v(ye, { onOpenChange: c, open: s, children: [
3960
+ /* @__PURE__ */ n(Xe, { asChild: !0, children: /* @__PURE__ */ n(
3961
+ Nt,
3839
3962
  {
3840
3963
  disabled: l,
3841
3964
  icon: o,
@@ -3845,58 +3968,58 @@ function Jo() {
3845
3968
  }
3846
3969
  }
3847
3970
  ) }),
3848
- /* @__PURE__ */ C(ae, { children: [
3849
- /* @__PURE__ */ n(se, { children: e("editor.image.dialog.title") }),
3850
- /* @__PURE__ */ C(
3851
- Ne,
3971
+ /* @__PURE__ */ v(se, { children: [
3972
+ /* @__PURE__ */ n(le, { children: e("editor.image.dialog.title") }),
3973
+ /* @__PURE__ */ v(
3974
+ Le,
3852
3975
  {
3853
3976
  activationMode: "manual",
3854
3977
  defaultValue: m.resourceImage === "both" || m.resourceImage === "upload" ? "upload" : "link",
3855
3978
  children: [
3856
- m.resourceImage === "both" && /* @__PURE__ */ C(ve, { className: "richtext-grid richtext-w-full richtext-grid-cols-2", children: [
3857
- /* @__PURE__ */ n(q, { value: "upload", children: e("editor.image.dialog.tab.upload") }),
3858
- /* @__PURE__ */ n(q, { value: "link", children: e("editor.image.dialog.tab.url") })
3979
+ m.resourceImage === "both" && /* @__PURE__ */ v(we, { className: "richtext-grid richtext-w-full richtext-grid-cols-2", children: [
3980
+ /* @__PURE__ */ n(Z, { value: "upload", children: e("editor.image.dialog.tab.upload") }),
3981
+ /* @__PURE__ */ n(Z, { value: "link", children: e("editor.image.dialog.tab.url") })
3859
3982
  ] }),
3860
- /* @__PURE__ */ C("div", { className: "richtext-my-[10px] richtext-flex richtext-items-center richtext-gap-[4px]", children: [
3983
+ /* @__PURE__ */ v("div", { className: "richtext-my-[10px] richtext-flex richtext-items-center richtext-gap-[4px]", children: [
3861
3984
  /* @__PURE__ */ n(
3862
- $e,
3985
+ We,
3863
3986
  {
3864
3987
  checked: h,
3865
- onCheckedChange: (N) => {
3866
- S(N);
3988
+ onCheckedChange: (I) => {
3989
+ T(I);
3867
3990
  }
3868
3991
  }
3869
3992
  ),
3870
- /* @__PURE__ */ n(pe, { children: e("editor.link.dialog.inline") })
3993
+ /* @__PURE__ */ n(xe, { children: e("editor.link.dialog.inline") })
3871
3994
  ] }),
3872
- m.enableAlt && /* @__PURE__ */ C("div", { className: "richtext-my-[10px]", children: [
3873
- /* @__PURE__ */ n(pe, { className: "mb-[6px]", children: e("editor.imageUpload.alt") }),
3874
- /* @__PURE__ */ n(te, { onChange: (N) => z(N.target.value), required: !0, type: "text", value: b })
3995
+ m.enableAlt && /* @__PURE__ */ v("div", { className: "richtext-my-[10px]", children: [
3996
+ /* @__PURE__ */ n(xe, { className: "mb-[6px]", children: e("editor.imageUpload.alt") }),
3997
+ /* @__PURE__ */ n(re, { onChange: (I) => M(I.target.value), required: !0, type: "text", value: b })
3875
3998
  ] }),
3876
- /* @__PURE__ */ C(Z, { value: "upload", children: [
3877
- /* @__PURE__ */ C("div", { className: "richtext-flex richtext-items-center richtext-gap-[10px]", children: [
3999
+ /* @__PURE__ */ v(K, { value: "upload", children: [
4000
+ /* @__PURE__ */ v("div", { className: "richtext-flex richtext-items-center richtext-gap-[10px]", children: [
3878
4001
  /* @__PURE__ */ n(
3879
- $,
4002
+ F,
3880
4003
  {
3881
4004
  className: "richtext-mt-1 richtext-w-full",
3882
4005
  disabled: d,
3883
- onClick: R,
4006
+ onClick: V,
3884
4007
  size: "sm",
3885
- children: d ? /* @__PURE__ */ C(Y, { children: [
4008
+ children: d ? /* @__PURE__ */ v(q, { children: [
3886
4009
  e("editor.imageUpload.uploading"),
3887
- /* @__PURE__ */ n(fe, { className: "richtext-ml-1 richtext-animate-spin", name: "Loader" })
4010
+ /* @__PURE__ */ n(me, { className: "richtext-ml-1 richtext-animate-spin", name: "Loader" })
3888
4011
  ] }) : e("editor.image.dialog.tab.upload")
3889
4012
  }
3890
4013
  ),
3891
4014
  /* @__PURE__ */ n(
3892
- Dt,
4015
+ Bt,
3893
4016
  {
3894
4017
  alt: b,
3895
4018
  disabled: d,
3896
4019
  editor: r,
3897
4020
  imageInline: h,
3898
4021
  onClose: () => {
3899
- z("");
4022
+ M("");
3900
4023
  }
3901
4024
  }
3902
4025
  )
@@ -3906,34 +4029,34 @@ function Jo() {
3906
4029
  {
3907
4030
  accept: m.acceptMimes.join(",") || "image/*",
3908
4031
  multiple: m.multiple,
3909
- onChange: D,
4032
+ onChange: j,
3910
4033
  ref: f,
3911
4034
  style: { display: "none" },
3912
4035
  type: "file"
3913
4036
  }
3914
4037
  )
3915
4038
  ] }),
3916
- /* @__PURE__ */ n(Z, { value: "link", children: /* @__PURE__ */ n("form", { onSubmit: v, children: /* @__PURE__ */ C("div", { className: "richtext-flex richtext-items-center richtext-gap-2", children: [
4039
+ /* @__PURE__ */ n(K, { value: "link", children: /* @__PURE__ */ n("form", { onSubmit: w, children: /* @__PURE__ */ v("div", { className: "richtext-flex richtext-items-center richtext-gap-2", children: [
3917
4040
  /* @__PURE__ */ n(
3918
- te,
4041
+ re,
3919
4042
  {
3920
4043
  autoFocus: !0,
3921
- onChange: (N) => k(N.target.value),
4044
+ onChange: (I) => k(I.target.value),
3922
4045
  placeholder: e("editor.image.dialog.placeholder"),
3923
4046
  required: !0,
3924
4047
  type: "url",
3925
4048
  value: u
3926
4049
  }
3927
4050
  ),
3928
- /* @__PURE__ */ n($, { type: "submit", children: e("editor.image.dialog.button.apply") })
4051
+ /* @__PURE__ */ n(F, { type: "submit", children: e("editor.image.dialog.button.apply") })
3929
4052
  ] }) }) })
3930
4053
  ]
3931
4054
  }
3932
4055
  )
3933
4056
  ] })
3934
- ] }) : /* @__PURE__ */ n(Y, {});
4057
+ ] }) : /* @__PURE__ */ n(q, {});
3935
4058
  }
3936
- const To = {
4059
+ const qe = {
3937
4060
  acceptMimes: ["image/jpeg", "image/gif", "image/png", "image/jpg"],
3938
4061
  maxSize: 1024 * 1024 * 5,
3939
4062
  // 5MB
@@ -3941,7 +4064,7 @@ const To = {
3941
4064
  resourceImage: "both",
3942
4065
  defaultInline: !1,
3943
4066
  enableAlt: !0
3944
- }, Se = /* @__PURE__ */ $n.extend({
4067
+ }, Ie = /* @__PURE__ */ Qn.extend({
3945
4068
  group: "inline",
3946
4069
  inline: !0,
3947
4070
  defining: !0,
@@ -3950,7 +4073,7 @@ const To = {
3950
4073
  addOptions() {
3951
4074
  var e;
3952
4075
  return {
3953
- ...To,
4076
+ ...qe,
3954
4077
  ...(e = this.parent) == null ? void 0 : e.call(this),
3955
4078
  upload: () => Promise.reject("Image Upload Function"),
3956
4079
  button: ({
@@ -4016,7 +4139,7 @@ const To = {
4016
4139
  };
4017
4140
  },
4018
4141
  addNodeView() {
4019
- return ui(vo);
4142
+ return Kt(Io);
4020
4143
  },
4021
4144
  addCommands() {
4022
4145
  var e;
@@ -4034,7 +4157,7 @@ const To = {
4034
4157
  };
4035
4158
  },
4036
4159
  renderHTML({ HTMLAttributes: e }) {
4037
- const { flipX: t, flipY: r, align: i, inline: o } = e, a = o && (i === "left" || i === "right"), l = t || r ? `transform: rotateX(${t ? "180" : "0"}deg) rotateY(${r ? "180" : "0"}deg);` : "", s = a ? "" : `text-align: ${i};`, g = `${a ? `float: ${i};` : ""}${a ? i === "left" ? "margin: 1em 1em 1em 0;" : "margin: 1em 0 1em 1em;" : ""}${l}`;
4160
+ const { flipX: t, flipY: r, align: i, inline: o } = e, a = o && (i === "left" || i === "right"), l = t || r ? `transform: rotateX(${t ? "180" : "0"}deg) rotateY(${r ? "180" : "0"}deg);` : "", s = a ? "" : `text-align: ${i};`, p = `${a ? `float: ${i};` : ""}${a ? i === "left" ? "margin: 1em 1em 1em 0;" : "margin: 1em 0 1em 1em;" : ""}${l}`;
4038
4161
  return [
4039
4162
  o ? "span" : "div",
4040
4163
  {
@@ -4043,10 +4166,10 @@ const To = {
4043
4166
  },
4044
4167
  [
4045
4168
  "img",
4046
- dt(
4169
+ gt(
4047
4170
  {
4048
4171
  height: "auto",
4049
- style: g
4172
+ style: p
4050
4173
  },
4051
4174
  this.options.HTMLAttributes,
4052
4175
  e
@@ -4150,19 +4273,19 @@ const To = {
4150
4273
  // ];
4151
4274
  // },
4152
4275
  });
4153
- function Qo(e) {
4276
+ function da(e) {
4154
4277
  return e.replace(/^.*\/|\..+$/g, "");
4155
4278
  }
4156
- function ea(e) {
4279
+ function ua(e) {
4157
4280
  return e.split(".").pop();
4158
4281
  }
4159
- function ta(e) {
4282
+ function ha(e) {
4160
4283
  return e < 1024 ? `${e} Byte` : e < 1024 * 1024 ? `${(e / 1024).toFixed(2)} KB` : `${(e / 1024 / 1024).toFixed(2)} MB`;
4161
4284
  }
4162
- function ra(e) {
4285
+ function fa(e) {
4163
4286
  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";
4164
4287
  }
4165
- function Io(e) {
4288
+ function Ho(e) {
4166
4289
  return new Promise((t) => {
4167
4290
  const r = new FileReader();
4168
4291
  r.addEventListener(
@@ -4177,7 +4300,7 @@ function Io(e) {
4177
4300
  ), r.readAsDataURL(e);
4178
4301
  });
4179
4302
  }
4180
- function So(e, t) {
4303
+ function jo(e, t) {
4181
4304
  const r = e.split(","), i = r[0].match(/:(.*?);/)[1], o = atob(r[r.length - 1]);
4182
4305
  let a = o.length;
4183
4306
  const l = new Uint8Array(a);
@@ -4185,49 +4308,49 @@ function So(e, t) {
4185
4308
  l[a] = o.charCodeAt(a);
4186
4309
  return new File([l], t, { type: i });
4187
4310
  }
4188
- function Dt({ editor: e, imageInline: t, onClose: r, disabled: i, alt: o }) {
4189
- var M, w;
4190
- const { t: a } = ne(), { toast: l } = Be(), [s, c] = L(!1), [d, g] = L(!1), p = Q.useRef(null), [u, k] = Q.useState(), [b, z] = Q.useState(""), f = xe(null), [x, h] = L({
4311
+ function Bt({ editor: e, imageInline: t, onClose: r, disabled: i, alt: o }) {
4312
+ var N, y;
4313
+ const { t: a } = oe(), { toast: l } = Fe(), [s, c] = A(!1), [d, p] = A(!1), g = ee.useRef(null), [u, k] = ee.useState(), [b, M] = ee.useState(""), f = be(null), [x, h] = A({
4191
4314
  src: "",
4192
4315
  file: null
4193
- }), S = le(Se.name), m = B(() => (S == null ? void 0 : S.options) ?? {}, [S]);
4194
- function D(y) {
4195
- if (p.current && y.width && y.height) {
4196
- const I = v(p.current, y);
4197
- z(I);
4316
+ }), T = ce(Ie.name), m = $(() => (T == null ? void 0 : T.options) ?? {}, [T]);
4317
+ function j(C) {
4318
+ if (g.current && C.width && C.height) {
4319
+ const z = w(g.current, C);
4320
+ M(z);
4198
4321
  }
4199
4322
  }
4200
- function v(y, I) {
4201
- const E = document.createElement("canvas"), A = y.naturalWidth / y.width, j = y.naturalHeight / y.height;
4202
- E.width = I.width * A, E.height = I.height * j;
4203
- const O = E.getContext("2d");
4204
- return O && (O.imageSmoothingEnabled = !1, O.drawImage(
4205
- y,
4206
- I.x * A,
4207
- I.y * j,
4208
- I.width * A,
4209
- I.height * j,
4323
+ function w(C, z) {
4324
+ const E = document.createElement("canvas"), L = C.naturalWidth / C.width, B = C.naturalHeight / C.height;
4325
+ E.width = z.width * L, E.height = z.height * B;
4326
+ const P = E.getContext("2d");
4327
+ return P && (P.imageSmoothingEnabled = !1, P.drawImage(
4328
+ C,
4329
+ z.x * L,
4330
+ z.y * B,
4331
+ z.width * L,
4332
+ z.height * B,
4210
4333
  0,
4211
4334
  0,
4212
- I.width * A,
4213
- I.height * j
4335
+ z.width * L,
4336
+ z.height * B
4214
4337
  )), E.toDataURL("image/png", 1);
4215
4338
  }
4216
- const R = Q.useCallback(async () => {
4217
- var y;
4339
+ const V = ee.useCallback(async () => {
4340
+ var C;
4218
4341
  if (!d) {
4219
- g(!0);
4342
+ p(!0);
4220
4343
  try {
4221
- const I = So(b, ((y = x == null ? void 0 : x.file) == null ? void 0 : y.name) || "image.png");
4344
+ const z = jo(b, ((C = x == null ? void 0 : x.file) == null ? void 0 : C.name) || "image.png");
4222
4345
  let E = "";
4223
- m.upload ? E = await m.upload(I) : E = URL.createObjectURL(I), e.chain().focus().setImageInline({ src: E, inline: t, alt: o }).run(), c(!1), h({
4346
+ m.upload ? E = await m.upload(z) : E = URL.createObjectURL(z), e.chain().focus().setImageInline({ src: E, inline: t, alt: o }).run(), c(!1), h({
4224
4347
  src: "",
4225
4348
  file: null
4226
- }), H(), r();
4227
- } catch (I) {
4228
- console.error("Error cropping image", I);
4349
+ }), O(), r();
4350
+ } catch (z) {
4351
+ console.error("Error cropping image", z);
4229
4352
  } finally {
4230
- g(!1);
4353
+ p(!1);
4231
4354
  }
4232
4355
  }
4233
4356
  }, [
@@ -4236,21 +4359,21 @@ function Dt({ editor: e, imageInline: t, onClose: r, disabled: i, alt: o }) {
4236
4359
  t,
4237
4360
  d,
4238
4361
  r,
4239
- (M = x == null ? void 0 : x.file) == null ? void 0 : M.name,
4362
+ (N = x == null ? void 0 : x.file) == null ? void 0 : N.name,
4240
4363
  m
4241
4364
  ]);
4242
- function N(y) {
4243
- var I;
4244
- y.preventDefault(), (I = f.current) == null || I.click();
4365
+ function I(C) {
4366
+ var z;
4367
+ C.preventDefault(), (z = f.current) == null || z.click();
4245
4368
  }
4246
- const P = async (y) => {
4247
- var O;
4248
- const I = (O = y == null ? void 0 : y.target) == null ? void 0 : O.files;
4249
- if (!e || e.isDestroyed || I.length === 0) {
4250
- y.target.value = "";
4369
+ const U = async (C) => {
4370
+ var P;
4371
+ const z = (P = C == null ? void 0 : C.target) == null ? void 0 : P.files;
4372
+ if (!e || e.isDestroyed || z.length === 0) {
4373
+ C.target.value = "";
4251
4374
  return;
4252
4375
  }
4253
- const E = Ge(I, {
4376
+ const E = Ye(z, {
4254
4377
  acceptMimes: m == null ? void 0 : m.acceptMimes,
4255
4378
  maxSize: m == null ? void 0 : m.maxSize,
4256
4379
  t: a,
@@ -4258,72 +4381,72 @@ function Dt({ editor: e, imageInline: t, onClose: r, disabled: i, alt: o }) {
4258
4381
  onError: m.onError
4259
4382
  });
4260
4383
  if (E.length <= 0) {
4261
- y.target.value = "";
4384
+ C.target.value = "";
4262
4385
  return;
4263
4386
  }
4264
- const A = E[0], j = await Io(A);
4387
+ const L = E[0], B = await Ho(L);
4265
4388
  c(!0), h({
4266
- src: j.src,
4267
- file: A
4389
+ src: B.src,
4390
+ file: L
4268
4391
  });
4269
- }, H = () => {
4392
+ }, O = () => {
4270
4393
  f.current && (f.current.value = "");
4271
4394
  };
4272
- return /* @__PURE__ */ C(Y, { children: [
4395
+ return /* @__PURE__ */ v(q, { children: [
4273
4396
  /* @__PURE__ */ n(
4274
- $,
4397
+ F,
4275
4398
  {
4276
4399
  className: "richtext-mt-1 richtext-w-full",
4277
4400
  disabled: i,
4278
- onClick: N,
4401
+ onClick: I,
4279
4402
  size: "sm",
4280
4403
  children: a("editor.image.dialog.tab.uploadCrop")
4281
4404
  }
4282
4405
  ),
4283
- /* @__PURE__ */ C(
4284
- we,
4406
+ /* @__PURE__ */ v(
4407
+ ye,
4285
4408
  {
4286
4409
  open: s,
4287
- onOpenChange: (y) => {
4288
- c(y), y || (h({ src: "", file: null }), H());
4410
+ onOpenChange: (C) => {
4411
+ c(C), C || (h({ src: "", file: null }), O());
4289
4412
  },
4290
4413
  children: [
4291
- /* @__PURE__ */ n(We, {}),
4292
- /* @__PURE__ */ C(ae, { children: [
4293
- /* @__PURE__ */ n(se, { children: a("editor.image.dialog.tab.uploadCrop") }),
4414
+ /* @__PURE__ */ n(Xe, {}),
4415
+ /* @__PURE__ */ v(se, { children: [
4416
+ /* @__PURE__ */ n(le, { children: a("editor.image.dialog.tab.uploadCrop") }),
4294
4417
  /* @__PURE__ */ n("div", { children: x.src && /* @__PURE__ */ n(
4295
- wi,
4418
+ Ni,
4296
4419
  {
4297
4420
  className: "richtext-w-full",
4298
4421
  crop: u,
4299
- onChange: (y) => k(y),
4300
- onComplete: (y) => D(y),
4301
- children: /* @__PURE__ */ n("img", { alt: "Crop me", ref: p, src: x.src })
4422
+ onChange: (C) => k(C),
4423
+ onComplete: (C) => j(C),
4424
+ children: /* @__PURE__ */ n("img", { alt: "Crop me", ref: g, src: x.src })
4302
4425
  }
4303
4426
  ) }),
4304
- /* @__PURE__ */ C(Tt, { children: [
4305
- /* @__PURE__ */ C(
4306
- $,
4427
+ /* @__PURE__ */ v(Rt, { children: [
4428
+ /* @__PURE__ */ v(
4429
+ F,
4307
4430
  {
4308
4431
  disabled: d,
4309
4432
  onClick: () => {
4310
4433
  c(!1), h({
4311
4434
  src: "",
4312
4435
  file: null
4313
- }), H();
4436
+ }), O();
4314
4437
  },
4315
4438
  children: [
4316
4439
  a("editor.imageUpload.cancel"),
4317
- /* @__PURE__ */ n(fe, { className: "richtext-ml-1", name: "Trash2" })
4440
+ /* @__PURE__ */ n(me, { className: "richtext-ml-1", name: "Trash2" })
4318
4441
  ]
4319
4442
  }
4320
4443
  ),
4321
- /* @__PURE__ */ n($, { className: "richtext-w-fit", disabled: d || !u, onClick: R, children: d ? /* @__PURE__ */ C(Y, { children: [
4444
+ /* @__PURE__ */ n(F, { className: "richtext-w-fit", disabled: d || !u, onClick: V, children: d ? /* @__PURE__ */ v(q, { children: [
4322
4445
  a("editor.imageUpload.uploading"),
4323
- /* @__PURE__ */ n(fe, { className: "richtext-ml-1 richtext-animate-spin", name: "Loader" })
4324
- ] }) : /* @__PURE__ */ C(Y, { children: [
4446
+ /* @__PURE__ */ n(me, { className: "richtext-ml-1 richtext-animate-spin", name: "Loader" })
4447
+ ] }) : /* @__PURE__ */ v(q, { children: [
4325
4448
  a("editor.imageUpload.crop"),
4326
- /* @__PURE__ */ n(fe, { className: "richtext-ml-1", name: "Crop" })
4449
+ /* @__PURE__ */ n(me, { className: "richtext-ml-1", name: "Crop" })
4327
4450
  ] }) })
4328
4451
  ] })
4329
4452
  ] })
@@ -4333,9 +4456,9 @@ function Dt({ editor: e, imageInline: t, onClose: r, disabled: i, alt: o }) {
4333
4456
  /* @__PURE__ */ n(
4334
4457
  "input",
4335
4458
  {
4336
- accept: ((w = m == null ? void 0 : m.acceptMimes) == null ? void 0 : w.join(",")) || "image/*",
4459
+ accept: ((y = m == null ? void 0 : m.acceptMimes) == null ? void 0 : y.join(",")) || "image/*",
4337
4460
  multiple: !1,
4338
- onChange: P,
4461
+ onChange: U,
4339
4462
  ref: f,
4340
4463
  style: { display: "none" },
4341
4464
  type: "file"
@@ -4343,51 +4466,51 @@ function Dt({ editor: e, imageInline: t, onClose: r, disabled: i, alt: o }) {
4343
4466
  )
4344
4467
  ] });
4345
4468
  }
4346
- const Ht = {
4469
+ const $t = {
4347
4470
  UPLOAD_IMAGE: (e) => `UPLOAD_IMAGE-${e}`,
4348
4471
  UPLOAD_VIDEO: (e) => `UPLOAD_VIDEO-${e}`,
4349
4472
  EXCALIDRAW: (e) => `EXCALIDRAW-${e}`
4350
4473
  };
4351
- function No() {
4352
- const { t: e } = ne(), { toast: t } = Be(), r = ee(), { editorDisabled: i } = Ae(), [o, a] = L(!1), l = Ht.UPLOAD_IMAGE(r.id);
4353
- Mt(a, [l]);
4354
- const [s, c] = L(!1), d = le(Se.name), [g, p] = L(""), [u, k] = L(""), b = xe(null), z = (d == null ? void 0 : d.options.defaultInline) || !1, [f, x] = L(z), h = B(() => d == null ? void 0 : d.options, [d]);
4355
- async function S(v) {
4356
- var P;
4357
- const R = (P = v == null ? void 0 : v.target) == null ? void 0 : P.files;
4358
- if (!r || r.isDestroyed || R.length === 0 || s) {
4359
- v.target.value = "";
4474
+ function Oo() {
4475
+ const { t: e } = oe(), { toast: t } = Fe(), r = te(), { editorDisabled: i } = Ae(), [o, a] = A(!1), l = $t.UPLOAD_IMAGE(r.id);
4476
+ At(a, [l]);
4477
+ const [s, c] = A(!1), d = ce(Ie.name), [p, g] = A(""), [u, k] = A(""), b = be(null), M = (d == null ? void 0 : d.options.defaultInline) || !1, [f, x] = A(M), h = $(() => (d == null ? void 0 : d.options) || qe, [d]);
4478
+ async function T(w) {
4479
+ var U;
4480
+ const V = (U = w == null ? void 0 : w.target) == null ? void 0 : U.files;
4481
+ if (!r || r.isDestroyed || V.length === 0 || s) {
4482
+ w.target.value = "";
4360
4483
  return;
4361
4484
  }
4362
- const N = Ge(R, {
4485
+ const I = Ye(V, {
4363
4486
  acceptMimes: h == null ? void 0 : h.acceptMimes,
4364
4487
  maxSize: h == null ? void 0 : h.maxSize,
4365
4488
  t: e,
4366
4489
  toast: t,
4367
4490
  onError: h.onError
4368
4491
  });
4369
- if (N.length <= 0) {
4370
- v.target.value = "";
4492
+ if (I.length <= 0) {
4493
+ w.target.value = "";
4371
4494
  return;
4372
4495
  }
4373
4496
  c(!0);
4374
4497
  try {
4375
4498
  if (h != null && h.multiple) {
4376
- const H = N.map(async (w) => {
4377
- let y = "";
4378
- return h.upload ? y = await h.upload(w) : y = URL.createObjectURL(w), y;
4499
+ const O = I.map(async (y) => {
4500
+ let C = "";
4501
+ return h.upload ? C = await h.upload(y) : C = URL.createObjectURL(y), C;
4379
4502
  });
4380
- (await Promise.all(H)).forEach((w) => {
4381
- r.chain().focus().setImageInline({ src: w, inline: f, alt: u }).run();
4503
+ (await Promise.all(O)).forEach((y) => {
4504
+ r.chain().focus().setImageInline({ src: y, inline: f, alt: u }).run();
4382
4505
  });
4383
4506
  } else {
4384
- const H = N[0];
4385
- let M = "";
4386
- h.upload ? M = await h.upload(H) : M = URL.createObjectURL(H), r.chain().focus().setImageInline({ src: M, inline: f, alt: u }).run();
4507
+ const O = I[0];
4508
+ let N = "";
4509
+ h.upload ? N = await h.upload(O) : N = URL.createObjectURL(O), r.chain().focus().setImageInline({ src: N, inline: f, alt: u }).run();
4387
4510
  }
4388
- a(!1), k(""), x(z);
4389
- } catch (H) {
4390
- console.error("Error uploading image", H), h.onError ? h.onError({
4511
+ a(!1), k(""), x(M);
4512
+ } catch (O) {
4513
+ console.error("Error uploading image", O), h.onError ? h.onError({
4391
4514
  type: "upload",
4392
4515
  message: e("editor.upload.error")
4393
4516
  }) : t({
@@ -4395,61 +4518,61 @@ function No() {
4395
4518
  title: e("editor.upload.error")
4396
4519
  });
4397
4520
  } finally {
4398
- c(!1), v.target.value = "";
4521
+ c(!1), w.target.value = "";
4399
4522
  }
4400
4523
  }
4401
- function m(v) {
4402
- v.preventDefault(), v.stopPropagation(), r.chain().focus().setImageInline({ src: g, inline: f, alt: u }).run(), a(!1), x(z), p(""), k("");
4524
+ function m(w) {
4525
+ w.preventDefault(), w.stopPropagation(), r.chain().focus().setImageInline({ src: p, inline: f, alt: u }).run(), a(!1), x(M), g(""), k("");
4403
4526
  }
4404
- function D(v) {
4405
- var R;
4406
- v.preventDefault(), (R = b.current) == null || R.click();
4527
+ function j(w) {
4528
+ var V;
4529
+ w.preventDefault(), (V = b.current) == null || V.click();
4407
4530
  }
4408
- return i ? /* @__PURE__ */ n(Y, {}) : /* @__PURE__ */ n(we, { onOpenChange: a, open: o, children: /* @__PURE__ */ C(ae, { children: [
4409
- /* @__PURE__ */ n(se, { children: e("editor.image.dialog.title") }),
4410
- /* @__PURE__ */ C(
4411
- Ne,
4531
+ return i ? /* @__PURE__ */ n(q, {}) : /* @__PURE__ */ n(ye, { onOpenChange: a, open: o, children: /* @__PURE__ */ v(se, { children: [
4532
+ /* @__PURE__ */ n(le, { children: e("editor.image.dialog.title") }),
4533
+ /* @__PURE__ */ v(
4534
+ Le,
4412
4535
  {
4413
4536
  activationMode: "manual",
4414
4537
  defaultValue: h.resourceImage === "both" || h.resourceImage === "upload" ? "upload" : "link",
4415
4538
  children: [
4416
- h.resourceImage === "both" && /* @__PURE__ */ C(ve, { className: "richtext-grid richtext-w-full richtext-grid-cols-2", children: [
4417
- /* @__PURE__ */ n(q, { value: "upload", children: e("editor.image.dialog.tab.upload") }),
4418
- /* @__PURE__ */ n(q, { value: "link", children: e("editor.image.dialog.tab.url") })
4539
+ h.resourceImage === "both" && /* @__PURE__ */ v(we, { className: "richtext-grid richtext-w-full richtext-grid-cols-2", children: [
4540
+ /* @__PURE__ */ n(Z, { value: "upload", children: e("editor.image.dialog.tab.upload") }),
4541
+ /* @__PURE__ */ n(Z, { value: "link", children: e("editor.image.dialog.tab.url") })
4419
4542
  ] }),
4420
- /* @__PURE__ */ C("div", { className: "richtext-my-[10px] richtext-flex richtext-items-center richtext-gap-[4px]", children: [
4543
+ /* @__PURE__ */ v("div", { className: "richtext-my-[10px] richtext-flex richtext-items-center richtext-gap-[4px]", children: [
4421
4544
  /* @__PURE__ */ n(
4422
- $e,
4545
+ We,
4423
4546
  {
4424
4547
  checked: f,
4425
- onCheckedChange: (v) => {
4426
- x(v);
4548
+ onCheckedChange: (w) => {
4549
+ x(w);
4427
4550
  }
4428
4551
  }
4429
4552
  ),
4430
- /* @__PURE__ */ n(pe, { children: e("editor.link.dialog.inline") })
4553
+ /* @__PURE__ */ n(xe, { children: e("editor.link.dialog.inline") })
4431
4554
  ] }),
4432
- h.enableAlt && /* @__PURE__ */ C("div", { className: "richtext-my-[10px]", children: [
4433
- /* @__PURE__ */ n(pe, { className: "mb-[6px]", children: e("editor.imageUpload.alt") }),
4434
- /* @__PURE__ */ n(te, { onChange: (v) => k(v.target.value), required: !0, type: "text", value: u })
4555
+ h.enableAlt && /* @__PURE__ */ v("div", { className: "richtext-my-[10px]", children: [
4556
+ /* @__PURE__ */ n(xe, { className: "mb-[6px]", children: e("editor.imageUpload.alt") }),
4557
+ /* @__PURE__ */ n(re, { onChange: (w) => k(w.target.value), required: !0, type: "text", value: u })
4435
4558
  ] }),
4436
- /* @__PURE__ */ C(Z, { value: "upload", children: [
4437
- /* @__PURE__ */ C("div", { className: "richtext-flex richtext-items-center richtext-gap-[10px]", children: [
4559
+ /* @__PURE__ */ v(K, { value: "upload", children: [
4560
+ /* @__PURE__ */ v("div", { className: "richtext-flex richtext-items-center richtext-gap-[10px]", children: [
4438
4561
  /* @__PURE__ */ n(
4439
- $,
4562
+ F,
4440
4563
  {
4441
4564
  className: "richtext-mt-1 richtext-w-full",
4442
4565
  disabled: s,
4443
- onClick: D,
4566
+ onClick: j,
4444
4567
  size: "sm",
4445
- children: s ? /* @__PURE__ */ C(Y, { children: [
4568
+ children: s ? /* @__PURE__ */ v(q, { children: [
4446
4569
  e("editor.imageUpload.uploading"),
4447
- /* @__PURE__ */ n(fe, { className: "richtext-ml-1 richtext-animate-spin", name: "Loader" })
4570
+ /* @__PURE__ */ n(me, { className: "richtext-ml-1 richtext-animate-spin", name: "Loader" })
4448
4571
  ] }) : e("editor.image.dialog.tab.upload")
4449
4572
  }
4450
4573
  ),
4451
4574
  /* @__PURE__ */ n(
4452
- Dt,
4575
+ Bt,
4453
4576
  {
4454
4577
  alt: u,
4455
4578
  disabled: s,
@@ -4466,33 +4589,33 @@ function No() {
4466
4589
  {
4467
4590
  accept: h.acceptMimes.join(",") || "image/*",
4468
4591
  multiple: h.multiple,
4469
- onChange: S,
4592
+ onChange: T,
4470
4593
  ref: b,
4471
4594
  style: { display: "none" },
4472
4595
  type: "file"
4473
4596
  }
4474
4597
  )
4475
4598
  ] }),
4476
- /* @__PURE__ */ n(Z, { value: "link", children: /* @__PURE__ */ n("form", { onSubmit: m, children: /* @__PURE__ */ C("div", { className: "richtext-flex richtext-items-center richtext-gap-2", children: [
4599
+ /* @__PURE__ */ n(K, { value: "link", children: /* @__PURE__ */ n("form", { onSubmit: m, children: /* @__PURE__ */ v("div", { className: "richtext-flex richtext-items-center richtext-gap-2", children: [
4477
4600
  /* @__PURE__ */ n(
4478
- te,
4601
+ re,
4479
4602
  {
4480
4603
  autoFocus: !0,
4481
- onChange: (v) => p(v.target.value),
4604
+ onChange: (w) => g(w.target.value),
4482
4605
  placeholder: e("editor.image.dialog.placeholder"),
4483
4606
  required: !0,
4484
4607
  type: "url",
4485
- value: g
4608
+ value: p
4486
4609
  }
4487
4610
  ),
4488
- /* @__PURE__ */ n($, { type: "submit", children: e("editor.image.dialog.button.apply") })
4611
+ /* @__PURE__ */ n(F, { type: "submit", children: e("editor.image.dialog.button.apply") })
4489
4612
  ] }) }) })
4490
4613
  ]
4491
4614
  }
4492
4615
  )
4493
4616
  ] }) });
4494
4617
  }
4495
- function Ot(e, t) {
4618
+ function Ft(e, t) {
4496
4619
  let r;
4497
4620
  try {
4498
4621
  r = new URL(e);
@@ -4507,17 +4630,17 @@ function Ot(e, t) {
4507
4630
  return r.hostname.includes(i);
4508
4631
  });
4509
4632
  }
4510
- function ia() {
4511
- const { t: e } = ne(), t = ee(), r = Vt(je.name), { icon: i, tooltip: o } = (r == null ? void 0 : r.componentProps) ?? {}, { editorDisabled: a } = Ae(), [l, s] = L(""), c = xe(null), [d, g] = L(""), [p, u] = L(!1), k = le(je.name), b = B(() => (k == null ? void 0 : k.options) ?? {}, [k]);
4512
- async function z(h) {
4513
- var v;
4514
- const S = (v = h == null ? void 0 : h.target) == null ? void 0 : v.files;
4515
- if (!t || t.isDestroyed || S.length === 0)
4633
+ function ma() {
4634
+ const { t: e } = oe(), t = te(), r = Ut(_e.name), { icon: i, tooltip: o } = (r == null ? void 0 : r.componentProps) ?? {}, { editorDisabled: a } = Ae(), [l, s] = A(""), c = be(null), [d, p] = A(""), [g, u] = A(!1), k = ce(_e.name), b = $(() => (k == null ? void 0 : k.options) ?? {}, [k]);
4635
+ async function M(h) {
4636
+ var w;
4637
+ const T = (w = h == null ? void 0 : h.target) == null ? void 0 : w.files;
4638
+ if (!t || t.isDestroyed || T.length === 0)
4516
4639
  return;
4517
- const m = S[0];
4518
- let D = "";
4519
- b.upload ? D = await b.upload(m) : D = URL.createObjectURL(m), t.chain().focus().setVideo({
4520
- src: D,
4640
+ const m = T[0];
4641
+ let j = "";
4642
+ b.upload ? j = await b.upload(m) : j = URL.createObjectURL(m), t.chain().focus().setVideo({
4643
+ src: j,
4521
4644
  width: "100%"
4522
4645
  }).run(), u(!1);
4523
4646
  }
@@ -4528,12 +4651,12 @@ function ia() {
4528
4651
  }).run(), u(!1), s(""));
4529
4652
  }
4530
4653
  function x(h) {
4531
- var S;
4532
- h.preventDefault(), (S = c.current) == null || S.click();
4654
+ var T;
4655
+ h.preventDefault(), (T = c.current) == null || T.click();
4533
4656
  }
4534
- return /* @__PURE__ */ C(we, { onOpenChange: u, open: p, children: [
4535
- /* @__PURE__ */ n(We, { asChild: !0, children: /* @__PURE__ */ n(
4536
- vt,
4657
+ return /* @__PURE__ */ v(ye, { onOpenChange: u, open: g, children: [
4658
+ /* @__PURE__ */ n(Xe, { asChild: !0, children: /* @__PURE__ */ n(
4659
+ Nt,
4537
4660
  {
4538
4661
  disabled: a,
4539
4662
  icon: i,
@@ -4543,26 +4666,26 @@ function ia() {
4543
4666
  }
4544
4667
  }
4545
4668
  ) }),
4546
- /* @__PURE__ */ C(ae, { children: [
4547
- /* @__PURE__ */ n(se, { children: e("editor.video.dialog.title") }),
4548
- /* @__PURE__ */ C(
4549
- Ne,
4669
+ /* @__PURE__ */ v(se, { children: [
4670
+ /* @__PURE__ */ n(le, { children: e("editor.video.dialog.title") }),
4671
+ /* @__PURE__ */ v(
4672
+ Le,
4550
4673
  {
4551
4674
  activationMode: "manual",
4552
4675
  defaultValue: (b == null ? void 0 : b.resourceVideo) === "both" || (b == null ? void 0 : b.resourceVideo) === "upload" ? "upload" : "link",
4553
4676
  children: [
4554
- /* @__PURE__ */ C(ve, { className: "richtext-grid richtext-w-full richtext-grid-cols-2", children: [
4555
- ((b == null ? void 0 : b.resourceVideo) === "both" || (b == null ? void 0 : b.resourceVideo) === "upload") && /* @__PURE__ */ n(q, { value: "upload", children: e("editor.video.dialog.tab.upload") }),
4556
- ((b == null ? void 0 : b.resourceVideo) === "both" || (b == null ? void 0 : b.resourceVideo) === "link") && /* @__PURE__ */ n(q, { value: "link", children: e("editor.video.dialog.link") })
4677
+ /* @__PURE__ */ v(we, { className: "richtext-grid richtext-w-full richtext-grid-cols-2", children: [
4678
+ ((b == null ? void 0 : b.resourceVideo) === "both" || (b == null ? void 0 : b.resourceVideo) === "upload") && /* @__PURE__ */ n(Z, { value: "upload", children: e("editor.video.dialog.tab.upload") }),
4679
+ ((b == null ? void 0 : b.resourceVideo) === "both" || (b == null ? void 0 : b.resourceVideo) === "link") && /* @__PURE__ */ n(Z, { value: "link", children: e("editor.video.dialog.link") })
4557
4680
  ] }),
4558
- /* @__PURE__ */ C(Z, { value: "upload", children: [
4559
- /* @__PURE__ */ n("div", { className: "richtext-flex richtext-items-center richtext-gap-[10px]", children: /* @__PURE__ */ n($, { className: "richtext-mt-1 richtext-w-full", onClick: x, size: "sm", children: e("editor.video.dialog.tab.upload") }) }),
4681
+ /* @__PURE__ */ v(K, { value: "upload", children: [
4682
+ /* @__PURE__ */ n("div", { className: "richtext-flex richtext-items-center richtext-gap-[10px]", children: /* @__PURE__ */ n(F, { className: "richtext-mt-1 richtext-w-full", onClick: x, size: "sm", children: e("editor.video.dialog.tab.upload") }) }),
4560
4683
  /* @__PURE__ */ n(
4561
4684
  "input",
4562
4685
  {
4563
4686
  accept: "video/*",
4564
4687
  multiple: !0,
4565
- onChange: z,
4688
+ onChange: M,
4566
4689
  ref: c,
4567
4690
  type: "file",
4568
4691
  style: {
@@ -4571,10 +4694,10 @@ function ia() {
4571
4694
  }
4572
4695
  )
4573
4696
  ] }),
4574
- /* @__PURE__ */ C(Z, { value: "link", children: [
4575
- /* @__PURE__ */ n("div", { children: /* @__PURE__ */ C("div", { className: "richtext-flex richtext-items-center richtext-gap-2", children: [
4697
+ /* @__PURE__ */ v(K, { value: "link", children: [
4698
+ /* @__PURE__ */ n("div", { children: /* @__PURE__ */ v("div", { className: "richtext-flex richtext-items-center richtext-gap-2", children: [
4576
4699
  /* @__PURE__ */ n(
4577
- te,
4700
+ re,
4578
4701
  {
4579
4702
  autoFocus: !0,
4580
4703
  placeholder: e("editor.video.dialog.placeholder"),
@@ -4582,15 +4705,15 @@ function ia() {
4582
4705
  type: "url",
4583
4706
  value: l,
4584
4707
  onBlur: (h) => {
4585
- const S = h.target.value, m = b.videoProviders || ["."];
4586
- S && !Ot(S, m) ? g("Invalid video URL") : g("");
4708
+ const T = h.target.value, m = b.videoProviders || ["."];
4709
+ T && !Ft(T, m) ? p("Invalid video URL") : p("");
4587
4710
  },
4588
4711
  onChange: (h) => {
4589
4712
  s(h.target.value);
4590
4713
  }
4591
4714
  }
4592
4715
  ),
4593
- /* @__PURE__ */ n($, { onClick: f, type: "button", children: e("editor.video.dialog.button.apply") })
4716
+ /* @__PURE__ */ n(F, { onClick: f, type: "button", children: e("editor.video.dialog.button.apply") })
4594
4717
  ] }) }),
4595
4718
  d && /* @__PURE__ */ n("div", { className: "richtext-my-[5px] richtext-text-red-500", children: d })
4596
4719
  ] })
@@ -4600,7 +4723,7 @@ function ia() {
4600
4723
  ] })
4601
4724
  ] });
4602
4725
  }
4603
- function Ao(e) {
4726
+ function Po(e) {
4604
4727
  e = e.replace("https://youtu.be/", "https://www.youtube.com/watch?v=").replace("watch?v=", "embed/");
4605
4728
  const t = e.match(/^https:\/\/www\.youtube\.com\/shorts\/([a-zA-Z0-9_-]+)/);
4606
4729
  t && (e = `https://www.youtube.com/embed/${t[1]}`);
@@ -4611,7 +4734,7 @@ function Ao(e) {
4611
4734
  }
4612
4735
  return /^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;
4613
4736
  }
4614
- const je = /* @__PURE__ */ ct.create({
4737
+ const _e = /* @__PURE__ */ pt.create({
4615
4738
  name: "video",
4616
4739
  group: "block",
4617
4740
  atom: !0,
@@ -4625,7 +4748,7 @@ const je = /* @__PURE__ */ ct.create({
4625
4748
  upload: void 0,
4626
4749
  frameborder: !1,
4627
4750
  resourceVideo: "both",
4628
- width: gi["size-medium"],
4751
+ width: vi["size-medium"],
4629
4752
  HTMLAttributes: {
4630
4753
  class: "iframe-wrapper"
4631
4754
  // style: 'display: flex;justify-content: center;',
@@ -4653,13 +4776,13 @@ const je = /* @__PURE__ */ ct.create({
4653
4776
  src: {
4654
4777
  default: null,
4655
4778
  renderHTML: ({ src: e }) => ({
4656
- src: e ? Ao(e) : null
4779
+ src: e ? Po(e) : null
4657
4780
  })
4658
4781
  },
4659
4782
  width: {
4660
4783
  default: this.options.width,
4661
4784
  renderHTML: ({ width: e }) => ({
4662
- width: Mo(e)
4785
+ width: Vo(e)
4663
4786
  })
4664
4787
  },
4665
4788
  frameborder: {
@@ -4691,12 +4814,12 @@ const je = /* @__PURE__ */ ct.create({
4691
4814
  ...e,
4692
4815
  width: "100%",
4693
4816
  height: "100%"
4694
- }, o = `position: relative;overflow: hidden;display: flex;flex: 1;max-width: ${t};`, a = `flex: 1;padding-bottom: ${9 / 16 * 100}%;`, g = ["div", { style: `display: flex; justify-content: ${r};` }, ["div", { style: o }, ["div", { style: a }], ["iframe", i]]];
4817
+ }, o = `position: relative;overflow: hidden;display: flex;flex: 1;max-width: ${t};`, a = `flex: 1;padding-bottom: ${9 / 16 * 100}%;`, p = ["div", { style: `display: flex; justify-content: ${r};` }, ["div", { style: o }, ["div", { style: a }], ["iframe", i]]];
4695
4818
  return ["div", {
4696
4819
  ...this.options.HTMLAttributes,
4697
4820
  class: "iframe-wrapper",
4698
4821
  "data-video": ""
4699
- }, g];
4822
+ }, p];
4700
4823
  },
4701
4824
  addCommands() {
4702
4825
  return {
@@ -4708,19 +4831,19 @@ const je = /* @__PURE__ */ ct.create({
4708
4831
  };
4709
4832
  }
4710
4833
  });
4711
- function Lo() {
4712
- const { t: e } = ne(), t = ee(), { editorDisabled: r } = Ae(), [i, o] = L(""), a = xe(null), [l, s] = L(""), [c, d] = L(!1), g = le(je.name), p = Ht.UPLOAD_VIDEO(t.id);
4713
- Mt(d, [p]);
4714
- const u = B(() => (g == null ? void 0 : g.options) ?? {}, [g]);
4834
+ function _o() {
4835
+ const { t: e } = oe(), t = te(), { editorDisabled: r } = Ae(), [i, o] = A(""), a = be(null), [l, s] = A(""), [c, d] = A(!1), p = ce(_e.name), g = $t.UPLOAD_VIDEO(t.id);
4836
+ At(d, [g]);
4837
+ const u = $(() => (p == null ? void 0 : p.options) ?? {}, [p]);
4715
4838
  async function k(f) {
4716
4839
  var m;
4717
4840
  const x = (m = f == null ? void 0 : f.target) == null ? void 0 : m.files;
4718
4841
  if (!t || t.isDestroyed || x.length === 0)
4719
4842
  return;
4720
4843
  const h = x[0];
4721
- let S = "";
4722
- u.upload ? S = await u.upload(h) : S = URL.createObjectURL(h), t.chain().focus().setVideo({
4723
- src: S,
4844
+ let T = "";
4845
+ u.upload ? T = await u.upload(h) : T = URL.createObjectURL(h), t.chain().focus().setVideo({
4846
+ src: T,
4724
4847
  width: "100%"
4725
4848
  }).run(), d(!1);
4726
4849
  }
@@ -4730,24 +4853,24 @@ function Lo() {
4730
4853
  width: "100%"
4731
4854
  }).run(), d(!1), o(""));
4732
4855
  }
4733
- function z(f) {
4856
+ function M(f) {
4734
4857
  var x;
4735
4858
  f.preventDefault(), (x = a.current) == null || x.click();
4736
4859
  }
4737
- return r ? /* @__PURE__ */ n(Y, {}) : /* @__PURE__ */ n(we, { onOpenChange: d, open: c, children: /* @__PURE__ */ C(ae, { children: [
4738
- /* @__PURE__ */ n(se, { children: e("editor.video.dialog.title") }),
4739
- /* @__PURE__ */ C(
4740
- Ne,
4860
+ return r ? /* @__PURE__ */ n(q, {}) : /* @__PURE__ */ n(ye, { onOpenChange: d, open: c, children: /* @__PURE__ */ v(se, { children: [
4861
+ /* @__PURE__ */ n(le, { children: e("editor.video.dialog.title") }),
4862
+ /* @__PURE__ */ v(
4863
+ Le,
4741
4864
  {
4742
4865
  activationMode: "manual",
4743
4866
  defaultValue: (u == null ? void 0 : u.resourceVideo) === "both" || (u == null ? void 0 : u.resourceVideo) === "upload" ? "upload" : "link",
4744
4867
  children: [
4745
- /* @__PURE__ */ C(ve, { className: "richtext-grid richtext-w-full richtext-grid-cols-2", children: [
4746
- ((u == null ? void 0 : u.resourceVideo) === "both" || (u == null ? void 0 : u.resourceVideo) === "upload") && /* @__PURE__ */ n(q, { value: "upload", children: e("editor.video.dialog.tab.upload") }),
4747
- ((u == null ? void 0 : u.resourceVideo) === "both" || (u == null ? void 0 : u.resourceVideo) === "link") && /* @__PURE__ */ n(q, { value: "link", children: e("editor.video.dialog.link") })
4868
+ /* @__PURE__ */ v(we, { className: "richtext-grid richtext-w-full richtext-grid-cols-2", children: [
4869
+ ((u == null ? void 0 : u.resourceVideo) === "both" || (u == null ? void 0 : u.resourceVideo) === "upload") && /* @__PURE__ */ n(Z, { value: "upload", children: e("editor.video.dialog.tab.upload") }),
4870
+ ((u == null ? void 0 : u.resourceVideo) === "both" || (u == null ? void 0 : u.resourceVideo) === "link") && /* @__PURE__ */ n(Z, { value: "link", children: e("editor.video.dialog.link") })
4748
4871
  ] }),
4749
- /* @__PURE__ */ C(Z, { value: "upload", children: [
4750
- /* @__PURE__ */ n("div", { className: "richtext-flex richtext-items-center richtext-gap-[10px]", children: /* @__PURE__ */ n($, { className: "richtext-mt-1 richtext-w-full", onClick: z, size: "sm", children: e("editor.video.dialog.tab.upload") }) }),
4872
+ /* @__PURE__ */ v(K, { value: "upload", children: [
4873
+ /* @__PURE__ */ n("div", { className: "richtext-flex richtext-items-center richtext-gap-[10px]", children: /* @__PURE__ */ n(F, { className: "richtext-mt-1 richtext-w-full", onClick: M, size: "sm", children: e("editor.video.dialog.tab.upload") }) }),
4751
4874
  /* @__PURE__ */ n(
4752
4875
  "input",
4753
4876
  {
@@ -4762,10 +4885,10 @@ function Lo() {
4762
4885
  }
4763
4886
  )
4764
4887
  ] }),
4765
- /* @__PURE__ */ C(Z, { value: "link", children: [
4766
- /* @__PURE__ */ n("div", { children: /* @__PURE__ */ C("div", { className: "richtext-flex richtext-items-center richtext-gap-2", children: [
4888
+ /* @__PURE__ */ v(K, { value: "link", children: [
4889
+ /* @__PURE__ */ n("div", { children: /* @__PURE__ */ v("div", { className: "richtext-flex richtext-items-center richtext-gap-2", children: [
4767
4890
  /* @__PURE__ */ n(
4768
- te,
4891
+ re,
4769
4892
  {
4770
4893
  autoFocus: !0,
4771
4894
  placeholder: e("editor.video.dialog.placeholder"),
@@ -4774,14 +4897,14 @@ function Lo() {
4774
4897
  value: i,
4775
4898
  onBlur: (f) => {
4776
4899
  const x = f.target.value, h = u.videoProviders || ["."];
4777
- x && !Ot(x, h) ? s("Invalid video URL") : s("");
4900
+ x && !Ft(x, h) ? s("Invalid video URL") : s("");
4778
4901
  },
4779
4902
  onChange: (f) => {
4780
4903
  o(f.target.value);
4781
4904
  }
4782
4905
  }
4783
4906
  ),
4784
- /* @__PURE__ */ n($, { onClick: b, type: "button", children: e("editor.video.dialog.button.apply") })
4907
+ /* @__PURE__ */ n(F, { onClick: b, type: "button", children: e("editor.video.dialog.button.apply") })
4785
4908
  ] }) }),
4786
4909
  l && /* @__PURE__ */ n("div", { className: "richtext-my-[5px] richtext-text-red-500", children: l })
4787
4910
  ] })
@@ -4790,66 +4913,73 @@ function Lo() {
4790
4913
  )
4791
4914
  ] }) });
4792
4915
  }
4793
- function Eo() {
4794
- return /* @__PURE__ */ C(Y, { children: [
4795
- /* @__PURE__ */ n(No, {}),
4796
- /* @__PURE__ */ n(Lo, {})
4916
+ function Uo() {
4917
+ return /* @__PURE__ */ v(q, { children: [
4918
+ /* @__PURE__ */ n(Oo, {}),
4919
+ /* @__PURE__ */ n(_o, {})
4797
4920
  ] });
4798
4921
  }
4799
- process.env.NODE_ENV !== "production" && (Eo.displayName = "SlashDialogTrigger");
4922
+ process.env.NODE_ENV !== "production" && (Uo.displayName = "SlashDialogTrigger");
4800
4923
  export {
4801
- ia as $,
4802
- vt as A,
4803
- $ as B,
4804
- $e as C,
4805
- we as D,
4806
- Ht as E,
4807
- Et as F,
4808
- Mt as G,
4809
- ot as H,
4810
- fe as I,
4811
- ho as J,
4812
- po as K,
4813
- pe as L,
4814
- ln as M,
4815
- Xo as N,
4816
- Fo as O,
4817
- ra as P,
4818
- bn as Q,
4819
- Go as R,
4820
- Eo as S,
4821
- Nn as T,
4822
- xn as U,
4823
- ea as V,
4924
+ ua as $,
4925
+ Nt as A,
4926
+ F as B,
4927
+ We as C,
4928
+ ye as D,
4929
+ aa as E,
4930
+ En as F,
4931
+ jo as G,
4932
+ Qn as H,
4933
+ me as I,
4934
+ $t as J,
4935
+ ra as K,
4936
+ xe as L,
4937
+ Pt as M,
4938
+ At as N,
4939
+ lt as O,
4940
+ Co as P,
4941
+ So as Q,
4942
+ hn as R,
4943
+ ea as S,
4944
+ Vn as T,
4945
+ na as U,
4946
+ ia as V,
4824
4947
  Qo as W,
4825
- ta as X,
4826
- jn as Y,
4827
- je as Z,
4828
- Jo as _,
4829
- An as a,
4830
- Ct as b,
4831
- _ as c,
4948
+ Uo as X,
4949
+ fa as Y,
4950
+ Cn as Z,
4951
+ yn as _,
4952
+ Dn as a,
4953
+ da as a0,
4954
+ ha as a1,
4955
+ qn as a2,
4956
+ _e as a3,
4957
+ qe as a4,
4958
+ ca as a5,
4959
+ ma as a6,
4960
+ zt as b,
4961
+ R as c,
4832
4962
  Ae as d,
4833
- Yo as e,
4834
- Ko as f,
4835
- en as g,
4836
- ee as h,
4837
- wt as i,
4838
- te as j,
4839
- yt as k,
4840
- Qi as l,
4841
- We as m,
4842
- ae as n,
4843
- se as o,
4844
- Tt as p,
4845
- le as q,
4846
- Be as r,
4847
- Zo as s,
4848
- Se as t,
4849
- Vt as u,
4850
- at as v,
4851
- qo as w,
4852
- So as x,
4853
- $n as y,
4854
- Wo as z
4963
+ oa as e,
4964
+ la as f,
4965
+ on as g,
4966
+ te as h,
4967
+ Mt as i,
4968
+ re as j,
4969
+ St as k,
4970
+ nn as l,
4971
+ Xe as m,
4972
+ se as n,
4973
+ le as o,
4974
+ Hn as p,
4975
+ ta as q,
4976
+ jn as r,
4977
+ Pn as s,
4978
+ Rt as t,
4979
+ Ut as u,
4980
+ ce as v,
4981
+ Fe as w,
4982
+ sa as x,
4983
+ Ie as y,
4984
+ ct as z
4855
4985
  };