reactjs-tiptap-editor 1.0.20 → 1.0.22

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