@aswin.dev/editor 0.7.0 → 0.7.1

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 (169) hide show
  1. package/README.md +3 -3
  2. package/dist/{AccessibilityPanel-CvQGLdu6.js → AccessibilityPanel-COL6Wm7p.js} +37 -37
  3. package/dist/{AiChatSidebar-B3SJIKG_.js → AiChatSidebar-DWGPVtvC.js} +68 -68
  4. package/dist/{AiFeatureMenu-BLLKoOos.js → AiFeatureMenu-duUFSfDf.js} +22 -22
  5. package/dist/{BlockA11yBadge-CXDLqkcJ.js → BlockA11yBadge-Qs6HtXid.js} +12 -12
  6. package/dist/CloudEditor-CFldoCOb.js +1207 -0
  7. package/dist/{CollaboratorBar-DuPYW5iF.js → CollaboratorBar-Bw-lbt61.js} +21 -21
  8. package/dist/CommentsSidebar-BaD5F53-.js +436 -0
  9. package/dist/CountdownBlock-DaYGxKqo.js +92 -0
  10. package/dist/CountdownToolbar-Dg4F8MTk.js +210 -0
  11. package/dist/{DesignReferenceSidebar-B8V_F2yF.js → DesignReferenceSidebar-BSH7uNP_.js} +58 -58
  12. package/dist/{LoadingTrack-B0CWFHXQ.js → LoadingTrack-Ba2pfF57.js} +2 -2
  13. package/dist/{ModuleBrowserModal-DrUFMTDx.js → ModuleBrowserModal-6phxZSKI.js} +80 -80
  14. package/dist/ModulePreviewCanvas-BW8L3eQX.js +108 -0
  15. package/dist/{NumberWithSuffix-DkXUez9t.js → NumberWithSuffix-BpUzQOJt.js} +87 -87
  16. package/dist/{ParagraphEditor-D75wl3BX.js → ParagraphEditor-DNSzAB-I.js} +182 -182
  17. package/dist/{RichTextEditorContent-DYkIauIk.js → RichTextEditorContent-CrqPQdnk.js} +38 -38
  18. package/dist/{SaveModuleDialog-FZ9lxY7_.js → SaveModuleDialog-zMQTpez7.js} +28 -28
  19. package/dist/{SnapshotHistory-BR3eV120.js → SnapshotHistory-Do-A5rYU.js} +45 -50
  20. package/dist/{TemplateScoringPanel-4GTNHej5.js → TemplateScoringPanel-CS7o62zS.js} +75 -75
  21. package/dist/{TestEmailModal--ue5w9fT.js → TestEmailModal-DGj_9V1u.js} +28 -28
  22. package/dist/{TitleEditor-fStSADI-.js → TitleEditor-C7IDnAoS.js} +68 -68
  23. package/dist/{TplModal-BwSfxIHf.js → TplModal-BAsVzcTb.js} +14 -14
  24. package/dist/{accessibility-e8JYu_zd.js → accessibility-BU09xZrQ.js} +1 -1
  25. package/dist/{blockTypeIcons-BcTrDjmH.js → blockTypeIcons-C6LDKvmd.js} +19 -5
  26. package/dist/bundle-stats.json +7 -7
  27. package/dist/{check-Da05j8yl.js → check-DJrpDKO_.js} +1 -1
  28. package/dist/{chevron-down-R2uY34iD.js → chevron-down-C5oBUhT8.js} +1 -1
  29. package/dist/chevron-right-BqCptpdp.js +10 -0
  30. package/dist/{circle-alert-DZuGWPX-.js → circle-alert-ZQQc98HC.js} +1 -1
  31. package/dist/{clock-CRp2sIub.js → clock-ik2pRJKG.js} +1 -1
  32. package/dist/{cloud-DEk_b4CR.js → cloud-6ZmAvF0j.js} +485 -427
  33. package/dist/{createLucideIcon-C3pa2siy.js → createLucideIcon-ClREiSx3.js} +6 -6
  34. package/dist/{de-Brqvgr43.js → de-DWcgp-7T.js} +209 -1
  35. package/dist/{dist-BaQIYPsn.js → dist-BUzw1buG.js} +1 -1
  36. package/dist/{dist-DjviJBCi.js → dist-BZyY-SS4.js} +1 -1
  37. package/dist/{dist-D6uC2xhi.js → dist-BadNx4qo.js} +1 -1
  38. package/dist/{dist-aRzjfSRN.js → dist-BesOh2mk.js} +1 -1
  39. package/dist/{dist-D90y8dvT.js → dist-Bz3M4RXG.js} +3 -3
  40. package/dist/dist-C04s_fLA.js +563 -0
  41. package/dist/{dist-DDJIWTRY.js → dist-C3T2AKtB.js} +1 -1
  42. package/dist/{dist-BFawx6IS.js → dist-C9ckKEZL.js} +51 -51
  43. package/dist/{dist-us-RpCWN.js → dist-CBItRG-Z.js} +1 -1
  44. package/dist/{dist-wzMIGj-D.js → dist-COSzWQUs.js} +1 -1
  45. package/dist/dist-CivF9P8b.js +382 -0
  46. package/dist/{dist-Cp0zXPAD.js → dist-DtiDUrX-.js} +1 -1
  47. package/dist/{dist-KoBJjK1G.js → dist-Dzt5foyL.js} +1 -1
  48. package/dist/{en-WDVp87TE.js → en-Cxd4fhNm.js} +209 -1
  49. package/dist/{extensions-CUcl9Ok4.js → extensions-D__hOlV1.js} +106 -106
  50. package/dist/{image-up-MBZKKg9p.js → image-up-DT7gcJLN.js} +1 -1
  51. package/dist/index.d.ts +88 -11
  52. package/dist/{info-CJEC7piy.js → info-BSPGcsSM.js} +1 -1
  53. package/dist/keys-CvX8D-8C.js +10 -0
  54. package/dist/{loader-circle-DsY5Yg33.js → loader-circle-Balo8p3d.js} +1 -1
  55. package/dist/{message-circle-yElBbR2C.js → message-circle-B39qAHxs.js} +1 -1
  56. package/dist/pencil-BZJPNYWR.js +10 -0
  57. package/dist/{refresh-cw-CE_AGtn8.js → refresh-cw-DwDqGUM0.js} +1 -1
  58. package/dist/{scan-line-D0vcUekt.js → scan-line-CzfFJO1o.js} +1 -1
  59. package/dist/{send-DH4oDQqC.js → send-D2eSo4GH.js} +1 -1
  60. package/dist/{shield-check-CfJgs2Hd.js → shield-check-jkpgcC0-.js} +1 -1
  61. package/dist/{sparkles-CvRXGqFs.js → sparkles-Chm5CZfb.js} +1 -1
  62. package/dist/style.css +1 -1
  63. package/dist/styleConstants-34eUKPOZ.js +55 -0
  64. package/dist/styles-B4tjX5SP.js +5224 -0
  65. package/dist/templatical-editor.js +189 -126
  66. package/dist/{text-align-start-BT9VUDxK.js → text-align-start-CzBnJsW8.js} +1 -1
  67. package/dist/{trash-2-DbP2Y6t2.js → trash-2-CtK2apEH.js} +1 -1
  68. package/dist/{triangle-alert-aOXceTSe.js → triangle-alert-KpDVNbpn.js} +1 -1
  69. package/dist/{useCloudI18n-BuIwR6OE.js → useCloudI18n-DOKSZql1.js} +2 -2
  70. package/dist/{useEditorCore-C6ost42Q.js → useEditorCore-wslttMH-.js} +2425 -2250
  71. package/dist/{useI18n-lb2DHDiu.js → useI18n-C2xQZ6K9.js} +2 -2
  72. package/dist/{useMergeTag-CBwKnnNB.js → useMergeTag-DX0XG5V9.js} +5 -5
  73. package/dist/{vue.runtime.esm-bundler-DpvJL-nX.js → vue.runtime.esm-bundler-CjauPXjj.js} +1 -1
  74. package/dist/{x-u2oVmjN_.js → x-BkaOMosX.js} +1 -1
  75. package/package.json +10 -10
  76. package/dist/CloudEditor-BCz1ZTYC.js +0 -1172
  77. package/dist/CommentsSidebar-B1pvJdqF.js +0 -441
  78. package/dist/CountdownBlock-BNSj1jvJ.js +0 -92
  79. package/dist/CountdownToolbar-ClJr2GzL.js +0 -210
  80. package/dist/ModulePreviewCanvas-CHdOwV_4.js +0 -106
  81. package/dist/cdn/chunks/AccessibilityPanel-B6DOjojm.js +0 -97
  82. package/dist/cdn/chunks/AccessibilityPanel-B6DOjojm.js.map +0 -1
  83. package/dist/cdn/chunks/AiFeatureMenu-qEdB2fZJ.js +0 -59
  84. package/dist/cdn/chunks/AiFeatureMenu-qEdB2fZJ.js.map +0 -1
  85. package/dist/cdn/chunks/BlockA11yBadge-DcEZftf6.js +0 -33
  86. package/dist/cdn/chunks/BlockA11yBadge-DcEZftf6.js.map +0 -1
  87. package/dist/cdn/chunks/CloudEditor-D2GsEC_n.js +0 -1143
  88. package/dist/cdn/chunks/CloudEditor-D2GsEC_n.js.map +0 -1
  89. package/dist/cdn/chunks/CollaboratorBar--nO7TX6b.js +0 -51
  90. package/dist/cdn/chunks/CollaboratorBar--nO7TX6b.js.map +0 -1
  91. package/dist/cdn/chunks/CountdownBlock-5YdT1uUu.js +0 -93
  92. package/dist/cdn/chunks/CountdownBlock-5YdT1uUu.js.map +0 -1
  93. package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js +0 -212
  94. package/dist/cdn/chunks/CountdownToolbar-DXPXrbAA.js.map +0 -1
  95. package/dist/cdn/chunks/ModuleBrowserModal-DxoPp81s.js +0 -195
  96. package/dist/cdn/chunks/ModuleBrowserModal-DxoPp81s.js.map +0 -1
  97. package/dist/cdn/chunks/ModulePreviewCanvas-CoLdb4ar.js +0 -107
  98. package/dist/cdn/chunks/ModulePreviewCanvas-CoLdb4ar.js.map +0 -1
  99. package/dist/cdn/chunks/NumberWithSuffix-CE3NrZhH.js +0 -423
  100. package/dist/cdn/chunks/NumberWithSuffix-CE3NrZhH.js.map +0 -1
  101. package/dist/cdn/chunks/ParagraphEditor-B6Ygu-Mq.js +0 -544
  102. package/dist/cdn/chunks/ParagraphEditor-B6Ygu-Mq.js.map +0 -1
  103. package/dist/cdn/chunks/RichTextEditorContent-DL_y2SrR.js +0 -106
  104. package/dist/cdn/chunks/RichTextEditorContent-DL_y2SrR.js.map +0 -1
  105. package/dist/cdn/chunks/SaveModuleDialog-B0TnO_o9.js +0 -119
  106. package/dist/cdn/chunks/SaveModuleDialog-B0TnO_o9.js.map +0 -1
  107. package/dist/cdn/chunks/TitleEditor-BHpfxvwy.js +0 -171
  108. package/dist/cdn/chunks/TitleEditor-BHpfxvwy.js.map +0 -1
  109. package/dist/cdn/chunks/blockTypeIcons-BzzY9_kA.js +0 -22
  110. package/dist/cdn/chunks/blockTypeIcons-BzzY9_kA.js.map +0 -1
  111. package/dist/cdn/chunks/de-Ce-LbJ2J.js +0 -89
  112. package/dist/cdn/chunks/de-Ce-LbJ2J.js.map +0 -1
  113. package/dist/cdn/chunks/de-D8CnZxV9.js +0 -523
  114. package/dist/cdn/chunks/de-D8CnZxV9.js.map +0 -1
  115. package/dist/cdn/chunks/de-RQrZR56a.js +0 -209
  116. package/dist/cdn/chunks/de-RQrZR56a.js.map +0 -1
  117. package/dist/cdn/chunks/draggable-Bcb86AsV.js +0 -11572
  118. package/dist/cdn/chunks/draggable-Bcb86AsV.js.map +0 -1
  119. package/dist/cdn/chunks/emojiData-EMFlj6FJ.js +0 -19
  120. package/dist/cdn/chunks/emojiData-EMFlj6FJ.js.map +0 -1
  121. package/dist/cdn/chunks/en-8FHaQv4V.js +0 -523
  122. package/dist/cdn/chunks/en-8FHaQv4V.js.map +0 -1
  123. package/dist/cdn/chunks/en-Bl1ecfRF.js +0 -209
  124. package/dist/cdn/chunks/en-Bl1ecfRF.js.map +0 -1
  125. package/dist/cdn/chunks/en-DiCWK5fG.js +0 -89
  126. package/dist/cdn/chunks/en-DiCWK5fG.js.map +0 -1
  127. package/dist/cdn/chunks/extensions-DIxF31tA.js +0 -598
  128. package/dist/cdn/chunks/extensions-DIxF31tA.js.map +0 -1
  129. package/dist/cdn/chunks/features-DEMb13KS.js +0 -6814
  130. package/dist/cdn/chunks/features-DEMb13KS.js.map +0 -1
  131. package/dist/cdn/chunks/icons-CsLTcirh.js +0 -700
  132. package/dist/cdn/chunks/icons-CsLTcirh.js.map +0 -1
  133. package/dist/cdn/chunks/liquid.browser-lQbkge2E.js +0 -3279
  134. package/dist/cdn/chunks/liquid.browser-lQbkge2E.js.map +0 -1
  135. package/dist/cdn/chunks/media-library-CVaNvhpM.js +0 -6014
  136. package/dist/cdn/chunks/media-library-CVaNvhpM.js.map +0 -1
  137. package/dist/cdn/chunks/pusher-CDbNlZBE.js +0 -2508
  138. package/dist/cdn/chunks/pusher-CDbNlZBE.js.map +0 -1
  139. package/dist/cdn/chunks/quality-BaBfc54_.js +0 -1456
  140. package/dist/cdn/chunks/quality-BaBfc54_.js.map +0 -1
  141. package/dist/cdn/chunks/readableTextColor-DhoK4XiZ.js +0 -32
  142. package/dist/cdn/chunks/readableTextColor-DhoK4XiZ.js.map +0 -1
  143. package/dist/cdn/chunks/renderer-CUxvx7ro.js +0 -548
  144. package/dist/cdn/chunks/renderer-CUxvx7ro.js.map +0 -1
  145. package/dist/cdn/chunks/rolldown-runtime-BNuo_Jkg.js +0 -20
  146. package/dist/cdn/chunks/src-CRaqN-p8.js +0 -497
  147. package/dist/cdn/chunks/src-CRaqN-p8.js.map +0 -1
  148. package/dist/cdn/chunks/styleConstants-DP1VOca8.js +0 -57
  149. package/dist/cdn/chunks/styleConstants-DP1VOca8.js.map +0 -1
  150. package/dist/cdn/chunks/styles-BHJULjNR.js +0 -2947
  151. package/dist/cdn/chunks/styles-BHJULjNR.js.map +0 -1
  152. package/dist/cdn/chunks/tiptap-ZhwKyFp7.js +0 -14654
  153. package/dist/cdn/chunks/tiptap-ZhwKyFp7.js.map +0 -1
  154. package/dist/cdn/editor.css +0 -2
  155. package/dist/cdn/editor.js +0 -250
  156. package/dist/cdn/editor.js.map +0 -1
  157. package/dist/dist-B1IR0bpH.js +0 -326
  158. package/dist/dist-DJmnUmW9.js +0 -362
  159. package/dist/keys-ciNfSSGj.js +0 -10
  160. package/dist/styleConstants-fWzlIIwN.js +0 -55
  161. package/dist/styles-DEXEkBvg.js +0 -3176
  162. /package/dist/{_plugin-vue_export-helper-B0hnzhyu.js → _plugin-vue_export-helper-BVAJ4lgT.js} +0 -0
  163. /package/dist/{de-DCaaCE5s.js → de-GOtR9DwW.js} +0 -0
  164. /package/dist/{dist-iLBdeBDR.js → dist-DXa1uAMh.js} +0 -0
  165. /package/dist/{emojiData-PQyVa4bU.js → emojiData-DrBuvEoP.js} +0 -0
  166. /package/dist/{en-DXCyK4-X.js → en-dFFQVzNn.js} +0 -0
  167. /package/dist/{formatRelativeTime-BOEf47hq.js → formatRelativeTime-BhhO8yCl.js} +0 -0
  168. /package/dist/{liquid.browser-CdMv1BTn.js → liquid.browser-BvCyLQII.js} +0 -0
  169. /package/dist/{readableTextColor-CY3SiRnt.js → readableTextColor-DVuzNX1y.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { r as e } from "./rolldown-runtime-BZGGJVDF.js";
2
- import { A as t, B as n, C as r, J as i, N as a, O as o, Q as s, S as c, W as ee, X as te, et as ne, i as l, it as re, k as u, tt as d, w as f } from "./vue.runtime.esm-bundler-DpvJL-nX.js";
3
- import { $ as ie, $t as ae, A as oe, At as se, B as ce, Bt as le, C as ue, Ct as de, D as fe, Dt as p, E as m, Et as h, F as g, Ft as _, G as v, Gt as y, H as b, Ht as x, I as S, It as C, J as w, Jt as T, K as E, Kt as D, L as O, Lt as k, M as A, Mt as j, N as M, Nt as N, O as P, Ot as F, P as I, Pt as L, Q as R, Qt as z, R as B, Rt as V, S as pe, St as me, T as he, Tt as ge, U as _e, Ut as ve, V as ye, Vt as be, W as xe, Wt as Se, X as Ce, Xt as we, Y as Te, Yt as Ee, Z as De, Zt as Oe, _ as ke, _t as H, a as Ae, an as je, at as Me, b as Ne, bt as Pe, c as Fe, cn as Ie, ct as Le, d as Re, dn as ze, dt as Be, en as Ve, et as He, f as U, fn as Ue, ft as We, g as Ge, gt as W, h as Ke, hn as qe, ht as Je, i as Ye, in as Xe, it as Ze, j as Qe, jt as $e, k as et, kt as tt, l as G, ln as nt, lt as rt, m as it, mn as at, mt as ot, n as st, nn as ct, nt as lt, o as ut, on as K, ot as dt, p as ft, pn as pt, pt as mt, q as ht, qt as gt, r as _t, rn as vt, rt as yt, s as bt, sn as xt, st as St, t as Ct, tn as wt, tt as Tt, u as Et, un as Dt, ut as Ot, v as kt, vt as At, w as jt, wt as Mt, x as Nt, xt as Pt, y as q, yt as Ft, z as It, zt as Lt } from "./dist-iLBdeBDR.js";
2
+ import { A as t, C as n, H as r, K as i, P as a, Q as o, T as s, X as c, et as l, i as u, j as d, k as ee, nt as te, rt as ne, st as re, w as ie } from "./vue.runtime.esm-bundler-CjauPXjj.js";
3
+ import { $ as ae, $t as oe, A as se, At as ce, B as le, Bt as ue, C as de, Ct as fe, D as f, Dt as p, E as m, Et as h, F as g, Ft as _, G as v, Gt as y, H as b, Ht as x, I as S, It as C, J as w, Jt as T, K as E, Kt as D, L as O, Lt as k, M as A, Mt as j, N as M, Nt as N, O as P, Ot as F, P as I, Pt as L, Q as R, Qt as z, R as B, Rt as V, S as pe, St as me, T as he, Tt as ge, U as _e, Ut as ve, V as ye, Vt as be, W as xe, Wt as Se, X as Ce, Xt as we, Y as Te, Yt as Ee, Z as De, Zt as Oe, _ as ke, _t as H, a as Ae, an as je, at as Me, b as Ne, bt as Pe, c as Fe, cn as Ie, ct as Le, d as Re, dn as ze, dt as Be, en as Ve, et as He, f as U, fn as Ue, ft as We, g as W, gt as Ge, h as Ke, hn as qe, ht as Je, i as Ye, in as Xe, it as Ze, j as Qe, jt as $e, k as et, kt as tt, l as G, ln as nt, lt as rt, m as it, mn as at, mt as ot, n as st, nn as ct, nt as lt, o as ut, on as K, ot as dt, p as ft, pn as pt, pt as mt, q as ht, qt as gt, r as _t, rn as vt, rt as yt, s as bt, sn as xt, st as St, t as Ct, tn as wt, tt as Tt, u as Et, un as Dt, ut as Ot, v as kt, vt as At, w as jt, wt as Mt, x as Nt, xt as Pt, y as q, yt as Ft, z as It, zt as Lt } from "./dist-DXa1uAMh.js";
4
4
  //#region ../../node_modules/.pnpm/@tiptap+vue-3@3.22.5_@floating-ui+dom@1.7.6_@tiptap+core@3.22.5_@tiptap+pm@3.22.5__@tip_7097ea972d8e6e4e31801879e2c3d1b4/node_modules/@tiptap/vue-3/dist/index.js
5
5
  var Rt = /* @__PURE__ */ e({
6
6
  CommandManager: () => Ct,
@@ -22,7 +22,7 @@ var Rt = /* @__PURE__ */ e({
22
22
  PasteRule: () => ft,
23
23
  ResizableNodeView: () => it,
24
24
  ResizableNodeview: () => Ke,
25
- Tracker: () => Ge,
25
+ Tracker: () => W,
26
26
  VueMarkView: () => Q,
27
27
  VueMarkViewRenderer: () => Wt,
28
28
  VueNodeViewRenderer: () => $,
@@ -33,15 +33,15 @@ var Rt = /* @__PURE__ */ e({
33
33
  combineTransactionSteps: () => Ne,
34
34
  commands: () => Nt,
35
35
  createAtomBlockMarkdownSpec: () => pe,
36
- createBlockMarkdownSpec: () => ue,
36
+ createBlockMarkdownSpec: () => de,
37
37
  createChainableState: () => jt,
38
38
  createDocument: () => he,
39
39
  createElement: () => H,
40
40
  createInlineMarkdownSpec: () => m,
41
- createMappablePosition: () => fe,
41
+ createMappablePosition: () => f,
42
42
  createNodeFromContent: () => P,
43
43
  createStyleTag: () => et,
44
- decodeHtmlEntities: () => oe,
44
+ decodeHtmlEntities: () => se,
45
45
  defaultBlockAt: () => Qe,
46
46
  deleteProps: () => A,
47
47
  elementFromString: () => M,
@@ -51,7 +51,7 @@ var Rt = /* @__PURE__ */ e({
51
51
  findChildren: () => O,
52
52
  findChildrenInRange: () => B,
53
53
  findDuplicates: () => It,
54
- findParentNode: () => ce,
54
+ findParentNode: () => le,
55
55
  findParentNodeClosestToPos: () => ye,
56
56
  flattenExtensions: () => b,
57
57
  fromString: () => _e,
@@ -64,7 +64,7 @@ var Rt = /* @__PURE__ */ e({
64
64
  getDebugJSON: () => Ce,
65
65
  getExtensionField: () => De,
66
66
  getHTMLFromFragment: () => R,
67
- getMarkAttributes: () => ie,
67
+ getMarkAttributes: () => ae,
68
68
  getMarkRange: () => He,
69
69
  getMarkType: () => Tt,
70
70
  getMarksBetween: () => lt,
@@ -81,21 +81,21 @@ var Rt = /* @__PURE__ */ e({
81
81
  getTextBetween: () => mt,
82
82
  getTextContentFromNodes: () => ot,
83
83
  getTextSerializersFromSchema: () => Je,
84
- getUpdatedPosition: () => W,
84
+ getUpdatedPosition: () => Ge,
85
85
  h: () => H,
86
86
  injectExtensionAttributesToParseRule: () => At,
87
87
  inputRulesPlugin: () => Ft,
88
88
  isActive: () => Pe,
89
89
  isAndroid: () => Pt,
90
90
  isAtEndOfNode: () => me,
91
- isAtStartOfNode: () => de,
91
+ isAtStartOfNode: () => fe,
92
92
  isEmptyObject: () => Mt,
93
93
  isExtensionRulesEnabled: () => ge,
94
94
  isFirefox: () => h,
95
95
  isFunction: () => p,
96
96
  isList: () => F,
97
97
  isMacOS: () => tt,
98
- isMarkActive: () => se,
98
+ isMarkActive: () => ce,
99
99
  isNodeActive: () => $e,
100
100
  isNodeEmpty: () => j,
101
101
  isNodeSelection: () => N,
@@ -105,7 +105,7 @@ var Rt = /* @__PURE__ */ e({
105
105
  isRegExp: () => k,
106
106
  isSafari: () => V,
107
107
  isString: () => Lt,
108
- isTextSelection: () => le,
108
+ isTextSelection: () => ue,
109
109
  isiOS: () => be,
110
110
  markInputRule: () => x,
111
111
  markPasteRule: () => ve,
@@ -120,7 +120,7 @@ var Rt = /* @__PURE__ */ e({
120
120
  objectIncludes: () => we,
121
121
  parseAttributes: () => Oe,
122
122
  parseIndentedBlocks: () => z,
123
- pasteRulesPlugin: () => ae,
123
+ pasteRulesPlugin: () => oe,
124
124
  posToDOMRect: () => Ve,
125
125
  removeDuplicates: () => wt,
126
126
  renderNestedMarkdownContent: () => ct,
@@ -140,7 +140,7 @@ var Rt = /* @__PURE__ */ e({
140
140
  wrappingInputRule: () => qe
141
141
  });
142
142
  function J(e) {
143
- return ee((t, n) => ({
143
+ return i((t, n) => ({
144
144
  get() {
145
145
  return t(), e;
146
146
  },
@@ -157,7 +157,7 @@ var Y = class extends st {
157
157
  constructor(e = {}) {
158
158
  return super(e), this.contentComponent = null, this.appContext = null, this.reactiveState = J(this.view.state), this.reactiveExtensionStorage = J(this.extensionStorage), this.on("beforeTransaction", ({ nextState: e }) => {
159
159
  this.reactiveState.value = e, this.reactiveExtensionStorage.value = this.extensionStorage;
160
- }), i(this);
160
+ }), c(this);
161
161
  }
162
162
  get state() {
163
163
  return this.reactiveState ? this.reactiveState.value : this.view.state;
@@ -173,47 +173,47 @@ var Y = class extends st {
173
173
  let t = super.unregisterPlugin(e);
174
174
  return this.reactiveState && t && (this.reactiveState.value = t), t;
175
175
  }
176
- }, zt = c({
176
+ }, zt = n({
177
177
  name: "EditorContent",
178
178
  props: { editor: {
179
179
  default: null,
180
180
  type: Object
181
181
  } },
182
182
  setup(e) {
183
- let t = s(), i = r();
184
- return n(() => {
185
- let n = e.editor;
186
- n && n.options.element && t.value && o(() => {
187
- if (!t.value || !n.view.dom?.parentNode) return;
188
- let e = re(t.value);
189
- t.value.append(...n.view.dom.parentNode.childNodes), n.contentComponent = i.ctx._, i && (n.appContext = {
183
+ let n = l(), i = ie();
184
+ return r(() => {
185
+ let t = e.editor;
186
+ t && t.options.element && n.value && ee(() => {
187
+ if (!n.value || !t.view.dom?.parentNode) return;
188
+ let e = re(n.value);
189
+ n.value.append(...t.view.dom.parentNode.childNodes), t.contentComponent = i.ctx._, i && (t.appContext = {
190
190
  ...i.appContext,
191
191
  provides: i.provides
192
- }), n.setOptions({ element: e }), n.createNodeViews();
192
+ }), t.setOptions({ element: e }), t.createNodeViews();
193
193
  });
194
- }), u(() => {
194
+ }), t(() => {
195
195
  let t = e.editor;
196
196
  t && (t.contentComponent = null, t.appContext = null);
197
- }), { rootEl: t };
197
+ }), { rootEl: n };
198
198
  },
199
199
  render() {
200
- return f("div", { ref: (e) => {
200
+ return s("div", { ref: (e) => {
201
201
  this.rootEl = e;
202
202
  } });
203
203
  }
204
- }), Bt = c({
204
+ }), Bt = n({
205
205
  name: "NodeViewContent",
206
206
  props: { as: {
207
207
  type: String,
208
208
  default: "div"
209
209
  } },
210
210
  render() {
211
- return f(this.as, {
211
+ return s(this.as, {
212
212
  style: { whiteSpace: "pre-wrap" },
213
213
  "data-node-view-content": ""
214
214
  });
215
215
  }
216
- }), X = c({
216
+ }), X = n({
217
217
  name: "NodeViewWrapper",
218
218
  props: { as: {
219
219
  type: String,
@@ -222,7 +222,7 @@ var Y = class extends st {
222
222
  inject: ["onDragStart", "decorationClasses"],
223
223
  render() {
224
224
  var e;
225
- return f(this.as, {
225
+ return s(this.as, {
226
226
  class: this.decorationClasses,
227
227
  style: { whiteSpace: "normal" },
228
228
  "data-node-view-wrapper": "",
@@ -230,17 +230,17 @@ var Y = class extends st {
230
230
  }, (e = this.$slots).default?.call(e));
231
231
  }
232
232
  }), Vt = (e = {}) => {
233
- let n = ne();
234
- return t(() => {
233
+ let n = te();
234
+ return d(() => {
235
235
  n.value = new Y(e);
236
- }), u(() => {
236
+ }), t(() => {
237
237
  var e, t;
238
238
  let r = n.value?.view.dom?.parentNode, i = r?.cloneNode(!0);
239
239
  (e = r?.parentNode) == null || e.replaceChild(i, r), (t = n.value) == null || t.destroy();
240
240
  }), n;
241
241
  }, Z = class {
242
242
  constructor(e, { props: t = {}, editor: n }) {
243
- this.destroyed = !1, this.editor = n, this.component = i(e), this.el = document.createElement("div"), this.props = te(t), this.renderedComponent = this.renderComponent();
243
+ this.destroyed = !1, this.editor = n, this.component = c(e), this.el = document.createElement("div"), this.props = o(t), this.renderedComponent = this.renderComponent();
244
244
  }
245
245
  get element() {
246
246
  return this.renderedComponent.el;
@@ -250,11 +250,11 @@ var Y = class extends st {
250
250
  }
251
251
  renderComponent() {
252
252
  if (this.destroyed) return this.renderedComponent;
253
- let e = f(this.component, this.props);
254
- return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el && l(e, this.el), {
253
+ let e = s(this.component, this.props);
254
+ return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el && u(e, this.el), {
255
255
  vNode: e,
256
256
  destroy: () => {
257
- this.el && l(null, this.el), this.el = null, e = null;
257
+ this.el && u(null, this.el), this.el = null, e = null;
258
258
  },
259
259
  el: this.el ? this.el.firstElementChild : null
260
260
  };
@@ -296,27 +296,27 @@ var Y = class extends st {
296
296
  type: Object,
297
297
  required: !0
298
298
  }
299
- }, Ut = c({
299
+ }, Ut = n({
300
300
  name: "MarkViewContent",
301
301
  props: { as: {
302
302
  type: String,
303
303
  default: "span"
304
304
  } },
305
305
  render() {
306
- return f(this.as, {
306
+ return s(this.as, {
307
307
  style: { whiteSpace: "inherit" },
308
308
  "data-mark-view-content": ""
309
309
  });
310
310
  }
311
311
  }), Q = class extends G {
312
- constructor(e, t, n) {
313
- super(e, t, n);
314
- let r = {
312
+ constructor(e, t, r) {
313
+ super(e, t, r);
314
+ let i = {
315
315
  ...t,
316
316
  updateAttributes: this.updateAttributes.bind(this)
317
- }, i = c({
317
+ }, a = n({
318
318
  extends: { ...e },
319
- props: Object.keys(r),
319
+ props: Object.keys(i),
320
320
  template: this.component.template,
321
321
  setup: (t) => e.setup?.call(e, t, { expose: () => void 0 }),
322
322
  __scopeId: e.__scopeId,
@@ -324,9 +324,9 @@ var Y = class extends st {
324
324
  __name: e.__name,
325
325
  __file: e.__file
326
326
  });
327
- this.renderer = new Z(i, {
327
+ this.renderer = new Z(a, {
328
328
  editor: this.editor,
329
- props: r
329
+ props: i
330
330
  });
331
331
  }
332
332
  get dom() {
@@ -336,7 +336,7 @@ var Y = class extends st {
336
336
  return this.dom.querySelector("[data-mark-view-content]");
337
337
  }
338
338
  updateAttributes(e) {
339
- let t = d(this.mark);
339
+ let t = ne(this.mark);
340
340
  super.updateAttributes(e, t);
341
341
  }
342
342
  destroy() {
@@ -418,8 +418,8 @@ var Gt = {
418
418
  updateAttributes: (e = {}) => this.updateAttributes(e),
419
419
  deleteNode: () => this.deleteNode()
420
420
  }, t = this.onDragStart.bind(this);
421
- this.decorationClasses = s(this.getDecorationClasses());
422
- let n = c({
421
+ this.decorationClasses = l(this.getDecorationClasses());
422
+ let r = n({
423
423
  extends: { ...this.component },
424
424
  props: Object.keys(e),
425
425
  template: this.component.template,
@@ -436,7 +436,7 @@ var Gt = {
436
436
  if (!this.renderer) return;
437
437
  let e = this.getPos();
438
438
  typeof e != "number" || e === this.currentPos || (this.currentPos = e, this.renderer.updateProps({ getPos: () => this.getPos() }));
439
- }, K(this.editor, this.positionCheckCallback), this.renderer = new Z(n, {
439
+ }, K(this.editor, this.positionCheckCallback), this.renderer = new Z(r, {
440
440
  editor: this.editor,
441
441
  props: e
442
442
  });
@@ -1,4 +1,4 @@
1
- import { i as e } from "./dist-iLBdeBDR.js";
1
+ import { i as e } from "./dist-DXa1uAMh.js";
2
2
  //#region ../../node_modules/.pnpm/@tiptap+extension-text-align@3.22.5_@tiptap+core@3.22.5_@tiptap+pm@3.22.5_/node_modules/@tiptap/extension-text-align/dist/index.js
3
3
  var t = e.create({
4
4
  name: "textAlign",
@@ -1,4 +1,4 @@
1
- import { FontFamily as e } from "./dist-Cp0zXPAD.js";
1
+ import { FontFamily as e } from "./dist-DtiDUrX-.js";
2
2
  //#region ../../node_modules/.pnpm/@tiptap+extension-font-family@3.22.5_@tiptap+extension-text-style@3.22.5_@tiptap+core@3.22.5_@tiptap+pm@3.22.5__/node_modules/@tiptap/extension-font-family/dist/index.js
3
3
  var t = e;
4
4
  //#endregion
@@ -0,0 +1,382 @@
1
+ import { $ as e, D as t, E as n, H as r, K as i, V as a, Y as o, Z as s, at as c, et as l, it as u, j as d, k as f, m as p, nt as m, q as h, st as g, tt as _, w as v } from "./vue.runtime.esm-bundler-CjauPXjj.js";
2
+ //#region ../../node_modules/.pnpm/@vueuse+shared@14.2.1_vue@3.5.33_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
3
+ function y(e, t) {
4
+ return h() ? (s(e, t), !0) : !1;
5
+ }
6
+ var b = /* @__PURE__ */ new WeakMap(), x = (...e) => {
7
+ let r = e[0], i = v()?.proxy ?? h();
8
+ if (i == null && !n()) throw Error("injectLocal must be called in setup");
9
+ return i && b.has(i) && r in b.get(i) ? b.get(i)[r] : t(...e);
10
+ }, S = typeof window < "u" && typeof document < "u";
11
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
12
+ var ee = (e) => e != null, C = Object.prototype.toString, w = (e) => C.call(e) === "[object Object]", T = () => {}, E = /* @__PURE__ */ D();
13
+ function D() {
14
+ var e, t;
15
+ return S && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
16
+ }
17
+ function O(...t) {
18
+ if (t.length !== 1) return u(...t);
19
+ let n = t[0];
20
+ return typeof n == "function" ? e(i(() => ({
21
+ get: n,
22
+ set: T
23
+ }))) : l(n);
24
+ }
25
+ function k(e, t) {
26
+ function n(...n) {
27
+ return new Promise((r, i) => {
28
+ Promise.resolve(e(() => t.apply(this, n), {
29
+ fn: t,
30
+ thisArg: this,
31
+ args: n
32
+ })).then(r).catch(i);
33
+ });
34
+ }
35
+ return n;
36
+ }
37
+ var A = (e) => e();
38
+ function j(e, t = {}) {
39
+ let n, r, i = T, a = (e) => {
40
+ clearTimeout(e), i(), i = T;
41
+ }, o;
42
+ return (s) => {
43
+ let l = c(e), u = c(t.maxWait);
44
+ return n && a(n), l <= 0 || u !== void 0 && u <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, c) => {
45
+ i = t.rejectOnCancel ? c : e, o = s, u && !r && (r = setTimeout(() => {
46
+ n && a(n), r = void 0, e(o());
47
+ }, u)), n = setTimeout(() => {
48
+ r && a(r), r = void 0, e(s());
49
+ }, l);
50
+ });
51
+ };
52
+ }
53
+ function M(e) {
54
+ return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
55
+ }
56
+ function N(e) {
57
+ return Array.isArray(e) ? e : [e];
58
+ }
59
+ function te(e) {
60
+ return e || v();
61
+ }
62
+ function ne(e, t = 200, n = {}) {
63
+ return k(j(t, n), e);
64
+ }
65
+ function re(e, t, n = {}) {
66
+ let { eventFilter: r = A, ...i } = n;
67
+ return a(e, k(r, t), i);
68
+ }
69
+ function P(e, t = !0, n) {
70
+ te(n) ? d(e, n) : t ? e() : f(e);
71
+ }
72
+ function F(e, t = 1e3, n = {}) {
73
+ let { immediate: r = !0, immediateCallback: i = !1 } = n, s = null, l = m(!1);
74
+ function u() {
75
+ s &&= (clearInterval(s), null);
76
+ }
77
+ function d() {
78
+ l.value = !1, u();
79
+ }
80
+ function f() {
81
+ let n = c(t);
82
+ n <= 0 || (l.value = !0, i && e(), u(), l.value && (s = setInterval(e, n)));
83
+ }
84
+ return r && S && f(), (o(t) || typeof t == "function") && y(a(t, () => {
85
+ l.value && S && f();
86
+ })), y(d), {
87
+ isActive: _(l),
88
+ pause: d,
89
+ resume: f
90
+ };
91
+ }
92
+ function I(e, t, n = {}) {
93
+ let { immediate: r = !0, immediateCallback: i = !1 } = n, a = m(!1), o;
94
+ function s() {
95
+ o &&= (clearTimeout(o), void 0);
96
+ }
97
+ function l() {
98
+ a.value = !1, s();
99
+ }
100
+ function u(...n) {
101
+ i && e(), s(), a.value = !0, o = setTimeout(() => {
102
+ a.value = !1, o = void 0, e(...n);
103
+ }, c(t));
104
+ }
105
+ return r && (a.value = !0, S && u()), y(l), {
106
+ isPending: _(a),
107
+ start: u,
108
+ stop: l
109
+ };
110
+ }
111
+ function L(e = !1, t = {}) {
112
+ let { truthyValue: n = !0, falsyValue: r = !1 } = t, i = o(e), a = m(e);
113
+ function s(e) {
114
+ if (arguments.length) return a.value = e, a.value;
115
+ {
116
+ let e = c(n);
117
+ return a.value = a.value === e ? c(r) : e, a.value;
118
+ }
119
+ }
120
+ return i ? s : [a, s];
121
+ }
122
+ function R(e, t, n = {}) {
123
+ let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
124
+ return re(e, t, {
125
+ ...a,
126
+ eventFilter: j(r, { maxWait: i })
127
+ });
128
+ }
129
+ function z(e, t, n) {
130
+ return a(e, t, {
131
+ ...n,
132
+ immediate: !0
133
+ });
134
+ }
135
+ //#endregion
136
+ //#region ../../node_modules/.pnpm/@vueuse+core@14.2.1_vue@3.5.33_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
137
+ var B = S ? window : void 0;
138
+ S && window.document, S && window.navigator, S && window.location;
139
+ function V(e) {
140
+ let t = c(e);
141
+ return t?.$el ?? t;
142
+ }
143
+ function H(...e) {
144
+ let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = p(() => {
145
+ let t = N(c(e[0])).filter((e) => e != null);
146
+ return t.every((e) => typeof e != "string") ? t : void 0;
147
+ });
148
+ return z(() => [
149
+ n.value?.map((e) => V(e)) ?? [B].filter((e) => e != null),
150
+ N(c(n.value ? e[1] : e[0])),
151
+ N(g(n.value ? e[2] : e[1])),
152
+ c(n.value ? e[3] : e[2])
153
+ ], ([e, n, r, i], a, o) => {
154
+ if (!e?.length || !n?.length || !r?.length) return;
155
+ let s = w(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
156
+ o(() => {
157
+ c.forEach((e) => e());
158
+ });
159
+ }, { flush: "post" });
160
+ }
161
+ var U = !1;
162
+ function W(e, t, n = {}) {
163
+ let { window: r = B, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
164
+ if (!r) return s ? {
165
+ stop: T,
166
+ cancel: T,
167
+ trigger: T
168
+ } : T;
169
+ if (E && !U) {
170
+ U = !0;
171
+ let e = { passive: !0 };
172
+ Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", T, e)), r.document.documentElement.addEventListener("click", T, e);
173
+ }
174
+ let l = !0, u = (e) => c(i).some((t) => {
175
+ if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
176
+ {
177
+ let n = V(t);
178
+ return n && (e.target === n || e.composedPath().includes(n));
179
+ }
180
+ });
181
+ function d(e) {
182
+ let t = c(e);
183
+ return t && t.$.subTree.shapeFlag === 16;
184
+ }
185
+ function f(e, t) {
186
+ let n = c(e), r = n.$.subTree && n.$.subTree.children;
187
+ return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
188
+ }
189
+ let p = (n) => {
190
+ let r = V(e);
191
+ if (n.target != null && !(!(r instanceof Element) && d(e) && f(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
192
+ if ("detail" in n && n.detail === 0 && (l = !u(n)), !l) {
193
+ l = !0;
194
+ return;
195
+ }
196
+ t(n);
197
+ }
198
+ }, m = !1, h = [
199
+ H(r, "click", (e) => {
200
+ m || (m = !0, setTimeout(() => {
201
+ m = !1;
202
+ }, 0), p(e));
203
+ }, {
204
+ passive: !0,
205
+ capture: a
206
+ }),
207
+ H(r, "pointerdown", (t) => {
208
+ let n = V(e);
209
+ l = !u(t) && !!(n && !t.composedPath().includes(n));
210
+ }, { passive: !0 }),
211
+ o && H(r, "blur", (n) => {
212
+ setTimeout(() => {
213
+ let i = V(e);
214
+ r.document.activeElement?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
215
+ }, 0);
216
+ }, { passive: !0 })
217
+ ].filter(Boolean), g = () => h.forEach((e) => e());
218
+ return s ? {
219
+ stop: g,
220
+ cancel: () => {
221
+ l = !1;
222
+ },
223
+ trigger: (e) => {
224
+ l = !0, p(e), l = !1;
225
+ }
226
+ } : g;
227
+ }
228
+ function G() {
229
+ let e = m(!1), t = v();
230
+ return t && d(() => {
231
+ e.value = !0;
232
+ }, t), e;
233
+ }
234
+ /* @__NO_SIDE_EFFECTS__ */
235
+ function K(e) {
236
+ let t = G();
237
+ return p(() => (t.value, !!e()));
238
+ }
239
+ function q(e, t, n = {}) {
240
+ let { window: r = B, ...i } = n, o, s = /* @__PURE__ */ K(() => r && "MutationObserver" in r), l = () => {
241
+ o &&= (o.disconnect(), void 0);
242
+ }, u = a(p(() => {
243
+ let t = N(c(e)).map(V).filter(ee);
244
+ return new Set(t);
245
+ }), (e) => {
246
+ l(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, i)));
247
+ }, {
248
+ immediate: !0,
249
+ flush: "post"
250
+ }), d = () => o?.takeRecords(), f = () => {
251
+ u(), l();
252
+ };
253
+ return y(f), {
254
+ isSupported: s,
255
+ stop: f,
256
+ takeRecords: d
257
+ };
258
+ }
259
+ var J = Symbol("vueuse-ssr-width");
260
+ /* @__NO_SIDE_EFFECTS__ */
261
+ function Y() {
262
+ let e = n() ? x(J, null) : null;
263
+ return typeof e == "number" ? e : void 0;
264
+ }
265
+ function X(e, t = {}) {
266
+ let { window: n = B, ssrWidth: i = /* @__PURE__ */ Y() } = t, a = /* @__PURE__ */ K(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), o = m(typeof i == "number"), s = m(), l = m(!1);
267
+ return r(() => {
268
+ if (o.value) {
269
+ o.value = !a.value, l.value = c(e).split(",").some((e) => {
270
+ let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), r = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || r);
271
+ return n && a && (a = i >= M(n[1])), r && a && (a = i <= M(r[1])), t ? !a : a;
272
+ });
273
+ return;
274
+ }
275
+ a.value && (s.value = n.matchMedia(c(e)), l.value = s.value.matches);
276
+ }), H(s, "change", (e) => {
277
+ l.value = e.matches;
278
+ }, { passive: !0 }), p(() => l.value);
279
+ }
280
+ function ie(e, t, n = {}) {
281
+ let { window: r = B, ...i } = n, o, s = /* @__PURE__ */ K(() => r && "ResizeObserver" in r), l = () => {
282
+ o &&= (o.disconnect(), void 0);
283
+ }, u = a(p(() => {
284
+ let t = c(e);
285
+ return Array.isArray(t) ? t.map((e) => V(e)) : [V(t)];
286
+ }), (e) => {
287
+ if (l(), s.value && r) {
288
+ o = new ResizeObserver(t);
289
+ for (let t of e) t && o.observe(t, i);
290
+ }
291
+ }, {
292
+ immediate: !0,
293
+ flush: "post"
294
+ }), d = () => {
295
+ l(), u();
296
+ };
297
+ return y(d), {
298
+ isSupported: s,
299
+ stop: d
300
+ };
301
+ }
302
+ function ae(e, t = {}) {
303
+ let { reset: n = !0, windowResize: r = !0, windowScroll: i = !0, immediate: o = !0, updateTiming: s = "sync" } = t, c = m(0), l = m(0), u = m(0), d = m(0), f = m(0), p = m(0), h = m(0), g = m(0);
304
+ function _() {
305
+ let t = V(e);
306
+ if (!t) {
307
+ n && (c.value = 0, l.value = 0, u.value = 0, d.value = 0, f.value = 0, p.value = 0, h.value = 0, g.value = 0);
308
+ return;
309
+ }
310
+ let r = t.getBoundingClientRect();
311
+ c.value = r.height, l.value = r.bottom, u.value = r.left, d.value = r.right, f.value = r.top, p.value = r.width, h.value = r.x, g.value = r.y;
312
+ }
313
+ function v() {
314
+ s === "sync" ? _() : s === "next-frame" && requestAnimationFrame(() => _());
315
+ }
316
+ return ie(e, v), a(() => V(e), (e) => !e && v()), q(e, v, { attributeFilter: ["style", "class"] }), i && H("scroll", v, {
317
+ capture: !0,
318
+ passive: !0
319
+ }), r && H("resize", v, { passive: !0 }), P(() => {
320
+ o && v();
321
+ }), {
322
+ height: c,
323
+ bottom: l,
324
+ left: u,
325
+ right: d,
326
+ top: f,
327
+ width: p,
328
+ x: h,
329
+ y: g,
330
+ update: v
331
+ };
332
+ }
333
+ function Z(e) {
334
+ return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
335
+ }
336
+ function oe(e) {
337
+ let t = X("(prefers-reduced-motion: reduce)", e);
338
+ return p(() => t.value ? "reduce" : "no-preference");
339
+ }
340
+ function Q(e) {
341
+ let t = window.getComputedStyle(e);
342
+ if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight) return !0;
343
+ {
344
+ let t = e.parentNode;
345
+ return !t || t.tagName === "BODY" ? !1 : Q(t);
346
+ }
347
+ }
348
+ function se(e) {
349
+ let t = e || window.event, n = t.target;
350
+ return Q(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
351
+ }
352
+ var $ = /* @__PURE__ */ new WeakMap();
353
+ function ce(e, t = !1) {
354
+ let n = m(t), r = null, i = "";
355
+ a(O(e), (e) => {
356
+ let t = Z(c(e));
357
+ if (t) {
358
+ let e = t;
359
+ if ($.get(e) || $.set(e, e.style.overflow), e.style.overflow !== "hidden" && (i = e.style.overflow), e.style.overflow === "hidden") return n.value = !0;
360
+ if (n.value) return e.style.overflow = "hidden";
361
+ }
362
+ }, { immediate: !0 });
363
+ let o = () => {
364
+ let t = Z(c(e));
365
+ !t || n.value || (E && (r = H(t, "touchmove", (e) => {
366
+ se(e);
367
+ }, { passive: !1 })), t.style.overflow = "hidden", n.value = !0);
368
+ }, s = () => {
369
+ let t = Z(c(e));
370
+ !t || !n.value || (E && r?.(), t.style.overflow = i, $.delete(t), n.value = !1);
371
+ };
372
+ return y(s), p({
373
+ get() {
374
+ return n.value;
375
+ },
376
+ set(e) {
377
+ e ? o() : s();
378
+ }
379
+ });
380
+ }
381
+ //#endregion
382
+ export { oe as a, F as c, R as d, X as i, I as l, ae as n, ce as o, H as r, ne as s, W as t, L as u };