reactjs-tiptap-editor 1.0.11 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/lib/ActionMenuButton-DNj0f_A4.cjs +1 -0
  2. package/lib/{ActionMenuButton-DTXFBdGX.js → ActionMenuButton-l5rSmAO_.js} +18 -14
  3. package/lib/Attachment.cjs +2 -2
  4. package/lib/Attachment.js +24 -21
  5. package/lib/Blockquote.cjs +2 -2
  6. package/lib/Blockquote.js +7 -5
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +11 -9
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +14 -12
  11. package/lib/Callout.cjs +1 -0
  12. package/lib/Callout.js +230 -0
  13. package/lib/Clear.cjs +1 -1
  14. package/lib/Clear.js +3 -3
  15. package/lib/Code.cjs +1 -1
  16. package/lib/Code.js +11 -9
  17. package/lib/CodeBlock.cjs +39 -39
  18. package/lib/CodeBlock.js +840 -945
  19. package/lib/CodeView.cjs +1 -1
  20. package/lib/CodeView.js +10 -8
  21. package/lib/Color.cjs +1 -1
  22. package/lib/Color.js +20 -18
  23. package/lib/Column.cjs +1 -1
  24. package/lib/Column.js +7 -5
  25. package/lib/{Drawer-D0yQ0wR7.js → Drawer-Cbi_MURj.js} +10 -9
  26. package/lib/Drawer-DKU32YW_.cjs +1 -0
  27. package/lib/Drawer.cjs +1 -1
  28. package/lib/Drawer.js +3 -3
  29. package/lib/Emoji.cjs +1 -1
  30. package/lib/Emoji.js +11 -9
  31. package/lib/{Excalidraw-CO4IRHmG.js → Excalidraw-CWrVL5hs.js} +28 -27
  32. package/lib/Excalidraw-Kb-TRcWY.cjs +1 -0
  33. package/lib/Excalidraw.cjs +1 -1
  34. package/lib/Excalidraw.js +2 -2
  35. package/lib/ExportPdf.cjs +2 -2
  36. package/lib/ExportPdf.js +7 -5
  37. package/lib/ExportWord.cjs +1 -1
  38. package/lib/ExportWord.js +7 -5
  39. package/lib/FontFamily.cjs +1 -1
  40. package/lib/FontFamily.js +9 -8
  41. package/lib/FontSize.cjs +1 -1
  42. package/lib/FontSize.js +13 -12
  43. package/lib/Heading.cjs +1 -1
  44. package/lib/Heading.js +20 -19
  45. package/lib/Highlight.cjs +1 -1
  46. package/lib/Highlight.js +9 -7
  47. package/lib/History.cjs +1 -1
  48. package/lib/History.js +11 -8
  49. package/lib/HorizontalRule.cjs +1 -1
  50. package/lib/HorizontalRule.js +7 -5
  51. package/lib/Icon-Ctva8VeB.js +12 -0
  52. package/lib/Icon-yqCglrdK.cjs +1 -0
  53. package/lib/Iframe-BczF8Hex.cjs +1 -0
  54. package/lib/{Iframe-BEO28NPs.js → Iframe-C942bNjs.js} +42 -40
  55. package/lib/Iframe.cjs +1 -1
  56. package/lib/Iframe.js +2 -2
  57. package/lib/Image.cjs +1 -1
  58. package/lib/Image.js +25 -23
  59. package/lib/ImageGif.cjs +1 -1
  60. package/lib/ImageGif.js +50 -48
  61. package/lib/ImportWord.cjs +31 -31
  62. package/lib/ImportWord.js +8 -6
  63. package/lib/{Indent-CXurBbOr.js → Indent-C_O5WdyR.js} +26 -24
  64. package/lib/Indent-CkEC7x36.cjs +1 -0
  65. package/lib/Indent.cjs +1 -1
  66. package/lib/Indent.js +2 -2
  67. package/lib/Italic.cjs +1 -1
  68. package/lib/Italic.js +12 -10
  69. package/lib/{Katex-Bvj469K1.js → Katex-D3PEWimM.js} +12 -10
  70. package/lib/Katex-DW_HjgNM.cjs +4 -0
  71. package/lib/Katex.cjs +1 -1
  72. package/lib/Katex.js +2 -2
  73. package/lib/LineHeight.cjs +1 -1
  74. package/lib/LineHeight.js +10 -8
  75. package/lib/Link.cjs +1 -1
  76. package/lib/Link.js +2 -2
  77. package/lib/{LinkEditBlock-8ePAZ-G1.cjs → LinkEditBlock-DL1e2ILk.cjs} +1 -1
  78. package/lib/{LinkEditBlock-DjXUEubR.js → LinkEditBlock-h5054QDo.js} +22 -20
  79. package/lib/Mention.cjs +1 -1
  80. package/lib/Mention.js +3 -3
  81. package/lib/Mermaid.cjs +2 -2
  82. package/lib/Mermaid.js +8 -8
  83. package/lib/MoreMark.cjs +1 -1
  84. package/lib/MoreMark.js +25 -22
  85. package/lib/OrderedList.cjs +1 -1
  86. package/lib/OrderedList.js +10 -8
  87. package/lib/SearchAndReplace.cjs +1 -1
  88. package/lib/SearchAndReplace.js +43 -41
  89. package/lib/SlashCommand.cjs +1 -1
  90. package/lib/SlashCommand.js +6 -6
  91. package/lib/SlashCommandNodeView-BqrmHCpu.cjs +1 -0
  92. package/lib/{SlashCommandNodeView-CcqL8ymb.js → SlashCommandNodeView-DXUqkx82.js} +75 -66
  93. package/lib/Strike.cjs +1 -1
  94. package/lib/Strike.js +7 -5
  95. package/lib/{Table-9Y0Cg8Ab.js → Table-DdrY4jcM.js} +10 -8
  96. package/lib/Table-kY0nbqJo.cjs +9 -0
  97. package/lib/Table.cjs +1 -1
  98. package/lib/Table.js +1 -1
  99. package/lib/TaskList.cjs +1 -1
  100. package/lib/TaskList.js +15 -13
  101. package/lib/TextAlign.cjs +1 -1
  102. package/lib/TextAlign.js +20 -17
  103. package/lib/TextDirection.cjs +1 -1
  104. package/lib/TextDirection.js +20 -17
  105. package/lib/TextUnderline.cjs +1 -1
  106. package/lib/TextUnderline.js +7 -5
  107. package/lib/{Twitter-DWwd0vHR.js → Twitter-B-JQ3ZJ1.js} +51 -49
  108. package/lib/Twitter-DjZcVa3l.cjs +1 -0
  109. package/lib/Twitter.cjs +1 -1
  110. package/lib/Twitter.js +2 -2
  111. package/lib/Video.cjs +1 -1
  112. package/lib/Video.js +13 -11
  113. package/lib/bubble.cjs +4 -4
  114. package/lib/bubble.js +2084 -1949
  115. package/lib/button-BS3n6_Aq.cjs +1 -0
  116. package/lib/{button-RnHbJfd-.js → button-Uv01FNnd.js} +9 -8
  117. package/lib/{checkbox-CTEN0q4y.cjs → checkbox-C8ByRi7-.cjs} +1 -1
  118. package/lib/{checkbox-CLSoR1Qj.js → checkbox-DEFNwGwb.js} +1 -1
  119. package/lib/{index-sVScpCFG.js → clsx-BWSGDJNJ.js} +224 -224
  120. package/lib/{index-BBNITgNi.cjs → clsx-CXbNJWDD.cjs} +13 -13
  121. package/lib/components/Bubble/RichTextBubbleCallout.d.ts +1 -0
  122. package/lib/components/Bubble/index.d.ts +1 -0
  123. package/lib/components/ui/index.d.ts +1 -0
  124. package/lib/{dialog-CMC9hsCo.cjs → dialog-Bt5zwGYB.cjs} +1 -1
  125. package/lib/{dialog-D_HCtKvc.js → dialog-DwTMZSt6.js} +1 -1
  126. package/lib/{dropdown-menu-66q7Ofc5.js → dropdown-menu-BetI14G6.js} +1 -1
  127. package/lib/{dropdown-menu-DKSAS-w_.cjs → dropdown-menu-Bo68IEOT.cjs} +1 -1
  128. package/lib/events.constant-Dq21NPdV.cjs +1 -0
  129. package/lib/events.constant-do95b767.js +21 -0
  130. package/lib/extensions/Callout/Callout.d.ts +18 -0
  131. package/lib/extensions/Callout/components/NodeViewCallout/NodeViewCallout.d.ts +1 -0
  132. package/lib/extensions/Callout/components/RichTextCallout.d.ts +1 -0
  133. package/lib/extensions/Callout/index.d.ts +1 -0
  134. package/lib/{index-CApXPpjF.cjs → index-BCzvbrf5.cjs} +1 -1
  135. package/lib/{index-9A6-kVBM.js → index-BDKHXe7R.js} +1 -1
  136. package/lib/{index-DmPwbBqm.js → index-CHKWG6E8.js} +1 -1
  137. package/lib/index-CcoWj0mF.js +426 -0
  138. package/lib/index-CjhjjJsN.cjs +1 -0
  139. package/lib/index-Cs6cp0Y6.cjs +1 -0
  140. package/lib/index-D3RLYf-J.cjs +1 -0
  141. package/lib/{index-C3zg3DPB.js → index-DF5ZPtWM.js} +371 -1177
  142. package/lib/{index-DRHrDScg.js → index-DJbmnBzK.js} +1 -1
  143. package/lib/index-Doks9cbR.cjs +1 -0
  144. package/lib/{index-0OnGZkVF.js → index-Dujzr6bY.js} +179 -317
  145. package/lib/index-VhKd73hZ.cjs +1 -0
  146. package/lib/{index-DKt5wfAc.js → index-mR8PNv5P.js} +1 -1
  147. package/lib/{index--nUS7Y66.cjs → index-neeeY2o7.cjs} +3 -3
  148. package/lib/index.cjs +9 -2
  149. package/lib/index.js +142 -26
  150. package/lib/{input-CvyMYMZG.js → input-DUBdJD3L.js} +5 -5
  151. package/lib/{input-D555880-.cjs → input-Dt_BA_9B.cjs} +1 -1
  152. package/lib/{isNumber-Bv1Qhmw8.cjs → isNumber-BTYSVlKo.cjs} +1 -1
  153. package/lib/{isNumber-DF0fU3ob.js → isNumber-CIgubz2e.js} +1 -1
  154. package/lib/label-JNOksCA-.cjs +1 -0
  155. package/lib/label-topD46-u.js +19 -0
  156. package/lib/locale-bundle.cjs +1 -1
  157. package/lib/locale-bundle.js +6 -7
  158. package/lib/locales/en.d.ts +16 -0
  159. package/lib/locales/fi.d.ts +16 -0
  160. package/lib/locales/hu.d.ts +16 -0
  161. package/lib/locales/index.d.ts +99 -4316
  162. package/lib/locales/pt-br.d.ts +16 -0
  163. package/lib/locales/vi.d.ts +16 -0
  164. package/lib/locales/zh-cn.d.ts +16 -0
  165. package/lib/{popover-B7ec5-u2.js → popover-LfNBhRyz.js} +1 -1
  166. package/lib/{popover-BSzR_R01.cjs → popover-mL-2sX5r.cjs} +1 -1
  167. package/lib/react-BEoMZB61.cjs +1 -0
  168. package/lib/react-c9FSfB30.js +27 -0
  169. package/lib/select-CwGYPsPq.cjs +1 -0
  170. package/lib/select-DctYuHLH.js +117 -0
  171. package/lib/separator-Ddfrhn4D.js +329 -0
  172. package/lib/separator-NoH_SLRW.cjs +1 -0
  173. package/lib/store/EditorEditableReactive.d.ts +1 -0
  174. package/lib/store/ThemeColorReactive.d.ts +1 -0
  175. package/lib/store/commandList.d.ts +1 -1
  176. package/lib/store/store.d.ts +6 -7
  177. package/lib/store-CkjKIgjQ.cjs +1 -0
  178. package/lib/store-DNpS8vXA.js +10 -0
  179. package/lib/style.css +1 -1
  180. package/lib/{tabs-CWr9HYaM.js → tabs-BT3AeqQQ.js} +1 -1
  181. package/lib/{tabs-BTwiZkWd.cjs → tabs-DRSwUeKP.cjs} +1 -1
  182. package/lib/{textarea-Yetl_PZi.cjs → textarea-BDO6XQoF.cjs} +1 -1
  183. package/lib/{textarea-BdeLXbp8.js → textarea-DZzMEDfZ.js} +1 -1
  184. package/lib/theme/theme.d.ts +5 -0
  185. package/lib/theme.cjs +1 -1
  186. package/lib/theme.js +37 -8
  187. package/lib/{throttle-DsowOft0.js → throttle-IERhwcLa.js} +1 -1
  188. package/lib/throttle-gTTvqDTW.cjs +1 -0
  189. package/lib/toggle-BQHMh_Q-.cjs +1 -0
  190. package/lib/toggle-DKHg5sLm.js +99 -0
  191. package/lib/tooltip-BYtGp6FM.cjs +1 -0
  192. package/lib/tooltip-DNKq7zgN.js +24 -0
  193. package/lib/{updatePosition-Bbd8ETMv.js → updatePosition-Bie75EFq.js} +2 -2
  194. package/lib/updatePosition-Cjuj2E26.cjs +1 -0
  195. package/lib/useButtonProps-DBJkNDS2.cjs +1 -0
  196. package/lib/{useButtonProps-cMoicZgd.js → useButtonProps-DVP4s_ER.js} +48 -36
  197. package/lib/utils/customEvents/events.constant.d.ts +0 -5
  198. package/package.json +3 -3
  199. package/lib/ActionMenuButton-BLlse5KO.cjs +0 -1
  200. package/lib/Drawer-kv6BU_6O.cjs +0 -1
  201. package/lib/Excalidraw-B82ThkJA.cjs +0 -1
  202. package/lib/Icon-DRuJhcHK.js +0 -10
  203. package/lib/Icon-DXePECFW.cjs +0 -1
  204. package/lib/Iframe-03dn9wcM.cjs +0 -1
  205. package/lib/Indent-Cqjdn3Jt.cjs +0 -1
  206. package/lib/Katex-DdWTV5NJ.cjs +0 -4
  207. package/lib/SlashCommandNodeView-Bl_gwZJB.cjs +0 -1
  208. package/lib/Table-DBGjezZK.cjs +0 -9
  209. package/lib/Twitter-Cnvt7GBg.cjs +0 -1
  210. package/lib/button-BW5bDPz_.cjs +0 -1
  211. package/lib/events.constant-DQYeJpu5.cjs +0 -1
  212. package/lib/events.constant-wrlJ_7JZ.js +0 -26
  213. package/lib/index-BZ6DfR2r.cjs +0 -1
  214. package/lib/index-C838s-or.cjs +0 -8
  215. package/lib/index-Cv9Z6dyV.cjs +0 -1
  216. package/lib/index-FSRjMsxW.cjs +0 -1
  217. package/lib/label-DsOYPjAo.js +0 -18
  218. package/lib/label-E6jF3Xud.cjs +0 -1
  219. package/lib/separator-JaTTqb3J.js +0 -241
  220. package/lib/separator-PGnA-6Hr.cjs +0 -1
  221. package/lib/store/ProviderUniqueId.d.ts +0 -6
  222. package/lib/store-Cf7tFiiI.js +0 -10
  223. package/lib/store-oDk-lTPM.cjs +0 -1
  224. package/lib/throttle-BM3Bmbf_.cjs +0 -1
  225. package/lib/updatePosition-M2IyqkI1.cjs +0 -1
  226. package/lib/useButtonProps-DfnJiJLV.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";const Mt=require("@tiptap/pm/state"),Rt=require("@tiptap/pm/view"),Jt=require("./clsx-CXbNJWDD.cjs"),_t=["top","right","bottom","left"],At=["start","end"],Ot=_t.reduce((t,e)=>t.concat(e,e+"-"+At[0],e+"-"+At[1]),[]),j=Math.min,M=Math.max,rt=Math.round,H=t=>({x:t,y:t}),Qt={left:"right",right:"left",bottom:"top",top:"bottom"},Zt={start:"end",end:"start"};function ht(t,e,o){return M(t,j(e,o))}function Y(t,e){return typeof t=="function"?t(e):t}function F(t){return t.split("-")[0]}function q(t){return t.split("-")[1]}function Nt(t){return t==="x"?"y":"x"}function wt(t){return t==="y"?"height":"width"}const te=new Set(["top","bottom"]);function V(t){return te.has(F(t))?"y":"x"}function xt(t){return Nt(V(t))}function Ft(t,e,o){o===void 0&&(o=!1);const n=q(t),i=xt(t),s=wt(i);let r=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=lt(r)),[r,lt(r)]}function ee(t){const e=lt(t);return[ct(t),e,ct(e)]}function ct(t){return t.replace(/start|end/g,e=>Zt[e])}const Ct=["left","right"],Pt=["right","left"],ne=["top","bottom"],oe=["bottom","top"];function ie(t,e,o){switch(t){case"top":case"bottom":return o?e?Pt:Ct:e?Ct:Pt;case"left":case"right":return e?ne:oe;default:return[]}}function se(t,e,o,n){const i=q(t);let s=ie(F(t),o==="start",n);return i&&(s=s.map(r=>r+"-"+i),e&&(s=s.concat(s.map(ct)))),s}function lt(t){return t.replace(/left|right|bottom|top/g,e=>Qt[e])}function re(t){return{top:0,right:0,bottom:0,left:0,...t}}function yt(t){return typeof t!="number"?re(t):{top:t,right:t,bottom:t,left:t}}function Q(t){const{x:e,y:o,width:n,height:i}=t;return{width:n,height:i,top:o,left:e,right:e+n,bottom:o+i,x:e,y:o}}function Et(t,e,o){let{reference:n,floating:i}=t;const s=V(e),r=xt(e),c=wt(r),f=F(e),a=s==="y",u=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2,w=n[c]/2-i[c]/2;let g;switch(f){case"top":g={x:u,y:n.y-i.height};break;case"bottom":g={x:u,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:l};break;case"left":g={x:n.x-i.width,y:l};break;default:g={x:n.x,y:n.y}}switch(q(e)){case"start":g[r]-=w*(o&&a?-1:1);break;case"end":g[r]+=w*(o&&a?-1:1);break}return g}const ce=async(t,e,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:r}=o,c=s.filter(Boolean),f=await(r.isRTL==null?void 0:r.isRTL(e));let a=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:l}=Et(a,n,f),w=n,g={},p=0;for(let v=0;v<c.length;v++){const{name:d,fn:m}=c[v],{x:S,y:A,data:E,reset:O}=await m({x:u,y:l,initialPlacement:n,placement:w,strategy:i,middlewareData:g,rects:a,platform:r,elements:{reference:t,floating:e}});u=S??u,l=A??l,g={...g,[d]:{...g[d],...E}},O&&p<=50&&(p++,typeof O=="object"&&(O.placement&&(w=O.placement),O.rects&&(a=O.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:i}):O.rects),{x:u,y:l}=Et(a,w,f)),v=-1)}return{x:u,y:l,placement:w,strategy:i,middlewareData:g}};async function Z(t,e){var o;e===void 0&&(e={});const{x:n,y:i,platform:s,rects:r,elements:c,strategy:f}=t,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:l="floating",altBoundary:w=!1,padding:g=0}=Y(e,t),p=yt(g),d=c[w?l==="floating"?"reference":"floating":l],m=Q(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(d)))==null||o?d:d.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:a,rootBoundary:u,strategy:f})),S=l==="floating"?{x:n,y:i,width:r.floating.width,height:r.floating.height}:r.reference,A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),E=await(s.isElement==null?void 0:s.isElement(A))?await(s.getScale==null?void 0:s.getScale(A))||{x:1,y:1}:{x:1,y:1},O=Q(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:S,offsetParent:A,strategy:f}):S);return{top:(m.top-O.top+p.top)/E.y,bottom:(O.bottom-m.bottom+p.bottom)/E.y,left:(m.left-O.left+p.left)/E.x,right:(O.right-m.right+p.right)/E.x}}const le=t=>({name:"arrow",options:t,async fn(e){const{x:o,y:n,placement:i,rects:s,platform:r,elements:c,middlewareData:f}=e,{element:a,padding:u=0}=Y(t,e)||{};if(a==null)return{};const l=yt(u),w={x:o,y:n},g=xt(i),p=wt(g),v=await r.getDimensions(a),d=g==="y",m=d?"top":"left",S=d?"bottom":"right",A=d?"clientHeight":"clientWidth",E=s.reference[p]+s.reference[g]-w[g]-s.floating[p],O=w[g]-s.reference[g],y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a));let b=y?y[A]:0;(!b||!await(r.isElement==null?void 0:r.isElement(y)))&&(b=c.floating[A]||s.floating[p]);const C=E/2-O/2,P=b/2-v[p]/2-1,h=j(l[m],P),R=j(l[S],P),D=h,k=b-v[p]-R,L=b/2-v[p]/2+C,x=ht(D,L,k),$=!f.arrow&&q(i)!=null&&L!==x&&s.reference[p]/2-(L<D?h:R)-v[p]/2<0,T=$?L<D?L-D:L-k:0;return{[g]:w[g]+T,data:{[g]:x,centerOffset:L-x-T,...$&&{alignmentOffset:T}},reset:$}}});function ae(t,e,o){return(t?[...o.filter(i=>q(i)===t),...o.filter(i=>q(i)!==t)]:o.filter(i=>F(i)===i)).filter(i=>t?q(i)===t||(e?ct(i)!==i:!1):!0)}const fe=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,n,i;const{rects:s,middlewareData:r,placement:c,platform:f,elements:a}=e,{crossAxis:u=!1,alignment:l,allowedPlacements:w=Ot,autoAlignment:g=!0,...p}=Y(t,e),v=l!==void 0||w===Ot?ae(l||null,g,w):w,d=await Z(e,p),m=((o=r.autoPlacement)==null?void 0:o.index)||0,S=v[m];if(S==null)return{};const A=Ft(S,s,await(f.isRTL==null?void 0:f.isRTL(a.floating)));if(c!==S)return{reset:{placement:v[0]}};const E=[d[F(S)],d[A[0]],d[A[1]]],O=[...((n=r.autoPlacement)==null?void 0:n.overflows)||[],{placement:S,overflows:E}],y=v[m+1];if(y)return{data:{index:m+1,overflows:O},reset:{placement:y}};const b=O.map(h=>{const R=q(h.placement);return[h.placement,R&&u?h.overflows.slice(0,2).reduce((D,k)=>D+k,0):h.overflows[0],h.overflows]}).sort((h,R)=>h[1]-R[1]),P=((i=b.filter(h=>h[2].slice(0,q(h[0])?2:3).every(R=>R<=0))[0])==null?void 0:i[0])||b[0][0];return P!==c?{data:{index:m+1,overflows:O},reset:{placement:P}}:{}}}},ue=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var o,n;const{placement:i,middlewareData:s,rects:r,initialPlacement:c,platform:f,elements:a}=e,{mainAxis:u=!0,crossAxis:l=!0,fallbackPlacements:w,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...d}=Y(t,e);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const m=F(i),S=V(c),A=F(c)===c,E=await(f.isRTL==null?void 0:f.isRTL(a.floating)),O=w||(A||!v?[lt(c)]:ee(c)),y=p!=="none";!w&&y&&O.push(...se(c,v,p,E));const b=[c,...O],C=await Z(e,d),P=[];let h=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&P.push(C[m]),l){const L=Ft(i,r,E);P.push(C[L[0]],C[L[1]])}if(h=[...h,{placement:i,overflows:P}],!P.every(L=>L<=0)){var R,D;const L=(((R=s.flip)==null?void 0:R.index)||0)+1,x=b[L];if(x&&(!(l==="alignment"?S!==V(x):!1)||h.every(B=>V(B.placement)===S?B.overflows[0]>0:!0)))return{data:{index:L,overflows:h},reset:{placement:x}};let $=(D=h.filter(T=>T.overflows[0]<=0).sort((T,B)=>T.overflows[1]-B.overflows[1])[0])==null?void 0:D.placement;if(!$)switch(g){case"bestFit":{var k;const T=(k=h.filter(B=>{if(y){const _=V(B.placement);return _===S||_==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(_=>_>0).reduce((_,U)=>_+U,0)]).sort((B,_)=>B[1]-_[1])[0])==null?void 0:k[0];T&&($=T);break}case"initialPlacement":$=c;break}if(i!==$)return{reset:{placement:$}}}return{}}}};function Dt(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Tt(t){return _t.some(e=>t[e]>=0)}const de=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:o}=e,{strategy:n="referenceHidden",...i}=Y(t,e);switch(n){case"referenceHidden":{const s=await Z(e,{...i,elementContext:"reference"}),r=Dt(s,o.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Tt(r)}}}case"escaped":{const s=await Z(e,{...i,altBoundary:!0}),r=Dt(s,o.floating);return{data:{escapedOffsets:r,escaped:Tt(r)}}}default:return{}}}}};function qt(t){const e=j(...t.map(s=>s.left)),o=j(...t.map(s=>s.top)),n=M(...t.map(s=>s.right)),i=M(...t.map(s=>s.bottom));return{x:e,y:o,width:n-e,height:i-o}}function me(t){const e=t.slice().sort((i,s)=>i.y-s.y),o=[];let n=null;for(let i=0;i<e.length;i++){const s=e[i];!n||s.y-n.y>n.height/2?o.push([s]):o[o.length-1].push(s),n=s}return o.map(i=>Q(qt(i)))}const ge=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){const{placement:o,elements:n,rects:i,platform:s,strategy:r}=e,{padding:c=2,x:f,y:a}=Y(t,e),u=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(n.reference))||[]),l=me(u),w=Q(qt(u)),g=yt(c);function p(){if(l.length===2&&l[0].left>l[1].right&&f!=null&&a!=null)return l.find(d=>f>d.left-g.left&&f<d.right+g.right&&a>d.top-g.top&&a<d.bottom+g.bottom)||w;if(l.length>=2){if(V(o)==="y"){const h=l[0],R=l[l.length-1],D=F(o)==="top",k=h.top,L=R.bottom,x=D?h.left:R.left,$=D?h.right:R.right,T=$-x,B=L-k;return{top:k,bottom:L,left:x,right:$,width:T,height:B,x,y:k}}const d=F(o)==="left",m=M(...l.map(h=>h.right)),S=j(...l.map(h=>h.left)),A=l.filter(h=>d?h.left===S:h.right===m),E=A[0].top,O=A[A.length-1].bottom,y=S,b=m,C=b-y,P=O-E;return{top:E,bottom:O,left:y,right:b,width:C,height:P,x:y,y:E}}return w}const v=await s.getElementRects({reference:{getBoundingClientRect:p},floating:n.floating,strategy:r});return i.reference.x!==v.reference.x||i.reference.y!==v.reference.y||i.reference.width!==v.reference.width||i.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}},he=new Set(["left","top"]);async function pe(t,e){const{placement:o,platform:n,elements:i}=t,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),r=F(o),c=q(o),f=V(o)==="y",a=he.has(r)?-1:1,u=s&&f?-1:1,l=Y(e,t);let{mainAxis:w,crossAxis:g,alignmentAxis:p}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return c&&typeof p=="number"&&(g=c==="end"?p*-1:p),f?{x:g*u,y:w*a}:{x:w*a,y:g*u}}const we=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var o,n;const{x:i,y:s,placement:r,middlewareData:c}=e,f=await pe(e,t);return r===((o=c.offset)==null?void 0:o.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+f.x,y:s+f.y,data:{...f,placement:r}}}}},xe=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:n,placement:i}=e,{mainAxis:s=!0,crossAxis:r=!1,limiter:c={fn:d=>{let{x:m,y:S}=d;return{x:m,y:S}}},...f}=Y(t,e),a={x:o,y:n},u=await Z(e,f),l=V(F(i)),w=Nt(l);let g=a[w],p=a[l];if(s){const d=w==="y"?"top":"left",m=w==="y"?"bottom":"right",S=g+u[d],A=g-u[m];g=ht(S,g,A)}if(r){const d=l==="y"?"top":"left",m=l==="y"?"bottom":"right",S=p+u[d],A=p-u[m];p=ht(S,p,A)}const v=c.fn({...e,[w]:g,[l]:p});return{...v,data:{x:v.x-o,y:v.y-n,enabled:{[w]:s,[l]:r}}}}}},ye=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var o,n;const{placement:i,rects:s,platform:r,elements:c}=e,{apply:f=()=>{},...a}=Y(t,e),u=await Z(e,a),l=F(i),w=q(i),g=V(i)==="y",{width:p,height:v}=s.floating;let d,m;l==="top"||l==="bottom"?(d=l,m=w===(await(r.isRTL==null?void 0:r.isRTL(c.floating))?"start":"end")?"left":"right"):(m=l,d=w==="end"?"top":"bottom");const S=v-u.top-u.bottom,A=p-u.left-u.right,E=j(v-u[d],S),O=j(p-u[m],A),y=!e.middlewareData.shift;let b=E,C=O;if((o=e.middlewareData.shift)!=null&&o.enabled.x&&(C=A),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(b=S),y&&!w){const h=M(u.left,0),R=M(u.right,0),D=M(u.top,0),k=M(u.bottom,0);g?C=p-2*(h!==0||R!==0?h+R:M(u.left,u.right)):b=v-2*(D!==0||k!==0?D+k:M(u.top,u.bottom))}await f({...e,availableWidth:C,availableHeight:b});const P=await r.getDimensions(c.floating);return p!==P.width||v!==P.height?{reset:{rects:!0}}:{}}}};function at(){return typeof window<"u"}function et(t){return It(t)?(t.nodeName||"").toLowerCase():"#document"}function N(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function z(t){var e;return(e=(It(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function It(t){return at()?t instanceof Node||t instanceof N(t).Node:!1}function I(t){return at()?t instanceof Element||t instanceof N(t).Element:!1}function X(t){return at()?t instanceof HTMLElement||t instanceof N(t).HTMLElement:!1}function Lt(t){return!at()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof N(t).ShadowRoot}const ve=new Set(["inline","contents"]);function it(t){const{overflow:e,overflowX:o,overflowY:n,display:i}=W(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!ve.has(i)}const be=new Set(["table","td","th"]);function Se(t){return be.has(et(t))}const Re=[":popover-open",":modal"];function ft(t){return Re.some(e=>{try{return t.matches(e)}catch{return!1}})}const Ae=["transform","translate","scale","rotate","perspective"],Oe=["transform","translate","scale","rotate","perspective","filter"],Ce=["paint","layout","strict","content"];function vt(t){const e=bt(),o=I(t)?W(t):t;return Ae.some(n=>o[n]?o[n]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||Oe.some(n=>(o.willChange||"").includes(n))||Ce.some(n=>(o.contain||"").includes(n))}function Pe(t){let e=K(t);for(;X(e)&&!tt(e);){if(vt(e))return e;if(ft(e))return null;e=K(e)}return null}function bt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ee=new Set(["html","body","#document"]);function tt(t){return Ee.has(et(t))}function W(t){return N(t).getComputedStyle(t)}function ut(t){return I(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if(et(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Lt(t)&&t.host||z(t);return Lt(e)?e.host:e}function Wt(t){const e=K(t);return tt(e)?t.ownerDocument?t.ownerDocument.body:t.body:X(e)&&it(e)?e:Wt(e)}function Vt(t,e,o){var n;e===void 0&&(e=[]);const i=Wt(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),r=N(i);return s?(pt(r),e.concat(r,r.visualViewport||[],it(i)?i:[],[])):e.concat(i,Vt(i,[]))}function pt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ht(t){const e=W(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=X(t),s=i?t.offsetWidth:o,r=i?t.offsetHeight:n,c=rt(o)!==s||rt(n)!==r;return c&&(o=s,n=r),{width:o,height:n,$:c}}function jt(t){return I(t)?t:t.contextElement}function J(t){const e=jt(t);if(!X(e))return H(1);const o=e.getBoundingClientRect(),{width:n,height:i,$:s}=Ht(e);let r=(s?rt(o.width):o.width)/n,c=(s?rt(o.height):o.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!c||!Number.isFinite(c))&&(c=1),{x:r,y:c}}const De=H(0);function Xt(t){const e=N(t);return!bt()||!e.visualViewport?De:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Te(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==N(t)?!1:e}function ot(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);const i=t.getBoundingClientRect(),s=jt(t);let r=H(1);e&&(n?I(n)&&(r=J(n)):r=J(t));const c=Te(s,o,n)?Xt(s):H(0);let f=(i.left+c.x)/r.x,a=(i.top+c.y)/r.y,u=i.width/r.x,l=i.height/r.y;if(s){const w=N(s),g=n&&I(n)?N(n):n;let p=w,v=pt(p);for(;v&&n&&g!==p;){const d=J(v),m=v.getBoundingClientRect(),S=W(v),A=m.left+(v.clientLeft+parseFloat(S.paddingLeft))*d.x,E=m.top+(v.clientTop+parseFloat(S.paddingTop))*d.y;f*=d.x,a*=d.y,u*=d.x,l*=d.y,f+=A,a+=E,p=N(v),v=pt(p)}}return Q({width:u,height:l,x:f,y:a})}function dt(t,e){const o=ut(t).scrollLeft;return e?e.left+o:ot(z(t)).left+o}function Yt(t,e){const o=t.getBoundingClientRect(),n=o.left+e.scrollLeft-dt(t,o),i=o.top+e.scrollTop;return{x:n,y:i}}function Le(t){let{elements:e,rect:o,offsetParent:n,strategy:i}=t;const s=i==="fixed",r=z(n),c=e?ft(e.floating):!1;if(n===r||c&&s)return o;let f={scrollLeft:0,scrollTop:0},a=H(1);const u=H(0),l=X(n);if((l||!l&&!s)&&((et(n)!=="body"||it(r))&&(f=ut(n)),X(n))){const g=ot(n);a=J(n),u.x=g.x+n.clientLeft,u.y=g.y+n.clientTop}const w=r&&!l&&!s?Yt(r,f):H(0);return{width:o.width*a.x,height:o.height*a.y,x:o.x*a.x-f.scrollLeft*a.x+u.x+w.x,y:o.y*a.y-f.scrollTop*a.y+u.y+w.y}}function $e(t){return Array.from(t.getClientRects())}function ke(t){const e=z(t),o=ut(t),n=t.ownerDocument.body,i=M(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=M(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let r=-o.scrollLeft+dt(t);const c=-o.scrollTop;return W(n).direction==="rtl"&&(r+=M(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:r,y:c}}const $t=25;function Be(t,e){const o=N(t),n=z(t),i=o.visualViewport;let s=n.clientWidth,r=n.clientHeight,c=0,f=0;if(i){s=i.width,r=i.height;const u=bt();(!u||u&&e==="fixed")&&(c=i.offsetLeft,f=i.offsetTop)}const a=dt(n);if(a<=0){const u=n.ownerDocument,l=u.body,w=getComputedStyle(l),g=u.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,p=Math.abs(n.clientWidth-l.clientWidth-g);p<=$t&&(s-=p)}else a<=$t&&(s+=a);return{width:s,height:r,x:c,y:f}}const Me=new Set(["absolute","fixed"]);function _e(t,e){const o=ot(t,!0,e==="fixed"),n=o.top+t.clientTop,i=o.left+t.clientLeft,s=X(t)?J(t):H(1),r=t.clientWidth*s.x,c=t.clientHeight*s.y,f=i*s.x,a=n*s.y;return{width:r,height:c,x:f,y:a}}function kt(t,e,o){let n;if(e==="viewport")n=Be(t,o);else if(e==="document")n=ke(z(t));else if(I(e))n=_e(e,o);else{const i=Xt(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Q(n)}function zt(t,e){const o=K(t);return o===e||!I(o)||tt(o)?!1:W(o).position==="fixed"||zt(o,e)}function Ne(t,e){const o=e.get(t);if(o)return o;let n=Vt(t,[]).filter(c=>I(c)&&et(c)!=="body"),i=null;const s=W(t).position==="fixed";let r=s?K(t):t;for(;I(r)&&!tt(r);){const c=W(r),f=vt(r);!f&&c.position==="fixed"&&(i=null),(s?!f&&!i:!f&&c.position==="static"&&!!i&&Me.has(i.position)||it(r)&&!f&&zt(t,r))?n=n.filter(u=>u!==r):i=c,r=K(r)}return e.set(t,n),n}function Fe(t){let{element:e,boundary:o,rootBoundary:n,strategy:i}=t;const r=[...o==="clippingAncestors"?ft(e)?[]:Ne(e,this._c):[].concat(o),n],c=r[0],f=r.reduce((a,u)=>{const l=kt(e,u,i);return a.top=M(l.top,a.top),a.right=j(l.right,a.right),a.bottom=j(l.bottom,a.bottom),a.left=M(l.left,a.left),a},kt(e,c,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function qe(t){const{width:e,height:o}=Ht(t);return{width:e,height:o}}function Ie(t,e,o){const n=X(e),i=z(e),s=o==="fixed",r=ot(t,!0,s,e);let c={scrollLeft:0,scrollTop:0};const f=H(0);function a(){f.x=dt(i)}if(n||!n&&!s)if((et(e)!=="body"||it(i))&&(c=ut(e)),n){const g=ot(e,!0,s,e);f.x=g.x+e.clientLeft,f.y=g.y+e.clientTop}else i&&a();s&&!n&&i&&a();const u=i&&!n&&!s?Yt(i,c):H(0),l=r.left+c.scrollLeft-f.x-u.x,w=r.top+c.scrollTop-f.y-u.y;return{x:l,y:w,width:r.width,height:r.height}}function gt(t){return W(t).position==="static"}function Bt(t,e){if(!X(t)||W(t).position==="fixed")return null;if(e)return e(t);let o=t.offsetParent;return z(t)===o&&(o=o.ownerDocument.body),o}function Kt(t,e){const o=N(t);if(ft(t))return o;if(!X(t)){let i=K(t);for(;i&&!tt(i);){if(I(i)&&!gt(i))return i;i=K(i)}return o}let n=Bt(t,e);for(;n&&Se(n)&&gt(n);)n=Bt(n,e);return n&&tt(n)&&gt(n)&&!vt(n)?o:n||Pe(t)||o}const We=async function(t){const e=this.getOffsetParent||Kt,o=this.getDimensions,n=await o(t.floating);return{reference:Ie(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Ve(t){return W(t).direction==="rtl"}const He={convertOffsetParentRelativeRectToViewportRelativeRect:Le,getDocumentElement:z,getClippingRect:Fe,getOffsetParent:Kt,getElementRects:We,getClientRects:$e,getDimensions:qe,getScale:J,isElement:I,isRTL:Ve},je=we,Xe=fe,Ye=xe,ze=ue,Ke=ye,Ue=de,Ge=le,Je=ge,Qe=(t,e,o)=>{const n=new Map,i={platform:He,...o},s={...i.platform,_c:n};return ce(t,e,{...i,platform:s})};function Ze(t){var e;const{char:o,allowSpaces:n,allowToIncludeChar:i,allowedPrefixes:s,startOfLine:r,$position:c}=t,f=n&&!i,a=Jt.escapeForRegEx(o),u=new RegExp(`\\s${a}$`),l=r?"^":"",w=i?"":a,g=f?new RegExp(`${l}${a}.*?(?=\\s${w}|$)`,"gm"):new RegExp(`${l}(?:^)?${a}[^\\s${w}]*`,"gm"),p=((e=c.nodeBefore)==null?void 0:e.isText)&&c.nodeBefore.text;if(!p)return null;const v=c.pos-p.length,d=Array.from(p.matchAll(g)).pop();if(!d||d.input===void 0||d.index===void 0)return null;const m=d.input.slice(Math.max(0,d.index-1),d.index),S=new RegExp(`^[${s==null?void 0:s.join("")}\0]?$`).test(m);if(s!==null&&!S)return null;const A=v+d.index;let E=A+d[0].length;return f&&u.test(p.slice(E-1,E+1))&&(d[0]+=" ",E+=1),A<c.pos&&E>=c.pos?{range:{from:A,to:E},query:d[0].slice(o.length),text:d[0]}:null}var tn=new Mt.PluginKey("suggestion");function Ut({pluginKey:t=tn,editor:e,char:o="@",allowSpaces:n=!1,allowToIncludeChar:i=!1,allowedPrefixes:s=[" "],startOfLine:r=!1,decorationTag:c="span",decorationClass:f="suggestion",decorationContent:a="",decorationEmptyClass:u="is-empty",command:l=()=>null,items:w=()=>[],render:g=()=>({}),allow:p=()=>!0,findSuggestionMatch:v=Ze}){let d;const m=g==null?void 0:g(),S=()=>{const y=e.state.selection.$anchor.pos,b=e.view.coordsAtPos(y),{top:C,right:P,bottom:h,left:R}=b;try{return new DOMRect(R,C,P-R,h-C)}catch{return null}},A=(y,b)=>b?()=>{const C=t.getState(e.state),P=C==null?void 0:C.decorationId,h=y.dom.querySelector(`[data-decoration-id="${P}"]`);return(h==null?void 0:h.getBoundingClientRect())||null}:S;function E(y,b){var C;try{const h=t.getState(y.state),R=h!=null&&h.decorationId?y.dom.querySelector(`[data-decoration-id="${h.decorationId}"]`):null,D={editor:e,range:(h==null?void 0:h.range)||{from:0,to:0},query:(h==null?void 0:h.query)||null,text:(h==null?void 0:h.text)||null,items:[],command:k=>l({editor:e,range:(h==null?void 0:h.range)||{from:0,to:0},props:k}),decorationNode:R,clientRect:A(y,R)};(C=m==null?void 0:m.onExit)==null||C.call(m,D)}catch{}const P=y.state.tr.setMeta(b,{exit:!0});y.dispatch(P)}const O=new Mt.Plugin({key:t,view(){return{update:async(y,b)=>{var C,P,h,R,D,k,L;const x=(C=this.key)==null?void 0:C.getState(b),$=(P=this.key)==null?void 0:P.getState(y.state),T=x.active&&$.active&&x.range.from!==$.range.from,B=!x.active&&$.active,_=x.active&&!$.active,U=!B&&!_&&x.query!==$.query,nt=B||T&&U,st=U||T,mt=_||T&&U;if(!nt&&!st&&!mt)return;const G=mt&&!nt?x:$,St=y.dom.querySelector(`[data-decoration-id="${G.decorationId}"]`);d={editor:e,range:G.range,query:G.query,text:G.text,items:[],command:Gt=>l({editor:e,range:G.range,props:Gt}),decorationNode:St,clientRect:A(y,St)},nt&&((h=m==null?void 0:m.onBeforeStart)==null||h.call(m,d)),st&&((R=m==null?void 0:m.onBeforeUpdate)==null||R.call(m,d)),(st||nt)&&(d.items=await w({editor:e,query:G.query})),mt&&((D=m==null?void 0:m.onExit)==null||D.call(m,d)),st&&((k=m==null?void 0:m.onUpdate)==null||k.call(m,d)),nt&&((L=m==null?void 0:m.onStart)==null||L.call(m,d))},destroy:()=>{var y;d&&((y=m==null?void 0:m.onExit)==null||y.call(m,d))}}},state:{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}},apply(y,b,C,P){const{isEditable:h}=e,{composing:R}=e.view,{selection:D}=y,{empty:k,from:L}=D,x={...b},$=y.getMeta(t);if($&&$.exit)return x.active=!1,x.decorationId=null,x.range={from:0,to:0},x.query=null,x.text=null,x;if(x.composing=R,h&&(k||e.view.composing)){(L<b.range.from||L>b.range.to)&&!R&&!b.composing&&(x.active=!1);const T=v({char:o,allowSpaces:n,allowToIncludeChar:i,allowedPrefixes:s,startOfLine:r,$position:D.$from}),B=`id_${Math.floor(Math.random()*4294967295)}`;T&&p({editor:e,state:P,range:T.range,isActive:b.active})?(x.active=!0,x.decorationId=b.decorationId?b.decorationId:B,x.range=T.range,x.query=T.query,x.text=T.text):x.active=!1}else x.active=!1;return x.active||(x.decorationId=null,x.range={from:0,to:0},x.query=null,x.text=null),x}},props:{handleKeyDown(y,b){var C,P,h,R;const{active:D,range:k}=O.getState(y.state);if(!D)return!1;if(b.key==="Escape"||b.key==="Esc"){const x=O.getState(y.state),$=(C=d==null?void 0:d.decorationNode)!=null?C:null,T=$??(x!=null&&x.decorationId?y.dom.querySelector(`[data-decoration-id="${x.decorationId}"]`):null);if(((P=m==null?void 0:m.onKeyDown)==null?void 0:P.call(m,{view:y,event:b,range:x.range}))||!1)return!0;const _={editor:e,range:x.range,query:x.query,text:x.text,items:[],command:U=>l({editor:e,range:x.range,props:U}),decorationNode:T,clientRect:T?()=>T.getBoundingClientRect()||null:null};return(h=m==null?void 0:m.onExit)==null||h.call(m,_),E(y,t),!0}return((R=m==null?void 0:m.onKeyDown)==null?void 0:R.call(m,{view:y,event:b,range:k}))||!1},decorations(y){const{active:b,range:C,decorationId:P,query:h}=O.getState(y);if(!b)return null;const R=!(h!=null&&h.length),D=[f];return R&&D.push(u),Rt.DecorationSet.create(y.doc,[Rt.Decoration.inline(C.from,C.to,{nodeName:c,class:D.join(" "),"data-decoration-id":P,"data-decoration-content":a})])}}});return O}var en=Ut;exports.Suggestion=Ut;exports.arrow=Ge;exports.autoPlacement=Xe;exports.computePosition=Qe;exports.flip=ze;exports.hide=Ue;exports.index_default=en;exports.inline=Je;exports.offset=je;exports.shift=Ye;exports.size=Ke;
@@ -0,0 +1 @@
1
+ "use strict";const le=require("./clsx-CXbNJWDD.cjs"),ie=require("react/jsx-runtime"),z=require("react"),ae=require("./react-BEoMZB61.cjs"),B="-",ce=e=>{const r=ue(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:l=>{const s=l.split(B);return s[0]===""&&s.length!==1&&s.shift(),D(s,r)||de(l)},getConflictingClassGroupIds:(l,s)=>{const u=t[l]||[];return s&&n[l]?[...u,...n[l]]:u}}},D=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const t=e[0],n=r.nextPart.get(t),a=n?D(e.slice(1),n):void 0;if(a)return a;if(r.validators.length===0)return;const o=e.join(B);return(l=r.validators.find(({validator:s})=>s(o)))==null?void 0:l.classGroupId},Q=/^\[(.+)\]$/,de=e=>{if(Q.test(e)){const r=Q.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},ue=e=>{const{theme:r,prefix:t}=e,n={nextPart:new Map,validators:[]};return be(Object.entries(e.classGroups),t).forEach(([o,l])=>{q(l,n,o,r)}),n},q=(e,r,t,n)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?r:Y(r,a);o.classGroupId=t;return}if(typeof a=="function"){if(pe(a)){q(a(n),r,t,n);return}r.validators.push({validator:a,classGroupId:t});return}Object.entries(a).forEach(([o,l])=>{q(l,Y(r,o),t,n)})})},Y=(e,r)=>{let t=e;return r.split(B).forEach(n=>{t.nextPart.has(n)||t.nextPart.set(n,{nextPart:new Map,validators:[]}),t=t.nextPart.get(n)}),t},pe=e=>e.isThemeGetter,be=(e,r)=>r?e.map(([t,n])=>{const a=n.map(o=>typeof o=="string"?r+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([l,s])=>[r+l,s])):o);return[t,a]}):e,ge=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,n=new Map;const a=(o,l)=>{t.set(o,l),r++,r>e&&(r=0,n=t,t=new Map)};return{get(o){let l=t.get(o);if(l!==void 0)return l;if((l=n.get(o))!==void 0)return a(o,l),l},set(o,l){t.has(o)?t.set(o,l):a(o,l)}}},ee="!",fe=e=>{const{separator:r,experimentalParseClassName:t}=e,n=r.length===1,a=r[0],o=r.length,l=s=>{const u=[];let g=0,b=0,h;for(let p=0;p<s.length;p++){let m=s[p];if(g===0){if(m===a&&(n||s.slice(p,p+o)===r)){u.push(s.slice(b,p)),b=p+o;continue}if(m==="/"){h=p;continue}}m==="["?g++:m==="]"&&g--}const y=u.length===0?s:s.substring(b),v=y.startsWith(ee),w=v?y.substring(1):y,f=h&&h>b?h-b:void 0;return{modifiers:u,hasImportantModifier:v,baseClassName:w,maybePostfixModifierPosition:f}};return t?s=>t({className:s,parseClassName:l}):l},me=e=>{if(e.length<=1)return e;const r=[];let t=[];return e.forEach(n=>{n[0]==="["?(r.push(...t.sort(),n),t=[]):t.push(n)}),r.push(...t.sort()),r},he=e=>({cache:ge(e.cacheSize),parseClassName:fe(e),...ce(e)}),xe=/\s+/,ye=(e,r)=>{const{parseClassName:t,getClassGroupId:n,getConflictingClassGroupIds:a}=r,o=[],l=e.trim().split(xe);let s="";for(let u=l.length-1;u>=0;u-=1){const g=l[u],{modifiers:b,hasImportantModifier:h,baseClassName:y,maybePostfixModifierPosition:v}=t(g);let w=!!v,f=n(w?y.substring(0,v):y);if(!f){if(!w){s=g+(s.length>0?" "+s:s);continue}if(f=n(y),!f){s=g+(s.length>0?" "+s:s);continue}w=!1}const p=me(b).join(":"),m=h?p+ee:p,x=m+f;if(o.includes(x))continue;o.push(x);const G=a(f,w);for(let A=0;A<G.length;++A){const N=G[A];o.push(m+N)}s=g+(s.length>0?" "+s:s)}return s};function we(){let e=0,r,t,n="";for(;e<arguments.length;)(r=arguments[e++])&&(t=re(r))&&(n&&(n+=" "),n+=t);return n}const re=e=>{if(typeof e=="string")return e;let r,t="";for(let n=0;n<e.length;n++)e[n]&&(r=re(e[n]))&&(t&&(t+=" "),t+=r);return t};function ve(e,...r){let t,n,a,o=l;function l(u){const g=r.reduce((b,h)=>h(b),e());return t=he(g),n=t.cache.get,a=t.cache.set,o=s,s(u)}function s(u){const g=n(u);if(g)return g;const b=ye(u,t);return a(u,b),b}return function(){return o(we.apply(null,arguments))}}const c=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},te=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ce=/^\d+\/\d+$/,ke=new Set(["px","full","screen"]),ze=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Se=/\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$/,Ee=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Me=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k=e=>M(e)||ke.has(e)||Ce.test(e),S=e=>R(e,"length",Le),M=e=>!!e&&!Number.isNaN(Number(e)),$=e=>R(e,"number",M),I=e=>!!e&&Number.isInteger(Number(e)),Re=e=>e.endsWith("%")&&M(e.slice(0,-1)),i=e=>te.test(e),E=e=>ze.test(e),Ge=new Set(["length","size","percentage"]),Pe=e=>R(e,Ge,oe),Ie=e=>R(e,"position",oe),je=new Set(["image","url"]),Ne=e=>R(e,je,Ve),Te=e=>R(e,"",We),j=()=>!0,R=(e,r,t)=>{const n=te.exec(e);return n?n[1]?typeof r=="string"?n[1]===r:r.has(n[1]):t(n[2]):!1},Le=e=>Se.test(e)&&!Ee.test(e),oe=()=>!1,We=e=>Ae.test(e),Ve=e=>Me.test(e),Oe=()=>{const e=c("colors"),r=c("spacing"),t=c("blur"),n=c("brightness"),a=c("borderColor"),o=c("borderRadius"),l=c("borderSpacing"),s=c("borderWidth"),u=c("contrast"),g=c("grayscale"),b=c("hueRotate"),h=c("invert"),y=c("gap"),v=c("gradientColorStops"),w=c("gradientColorStopPositions"),f=c("inset"),p=c("margin"),m=c("opacity"),x=c("padding"),G=c("saturate"),A=c("scale"),N=c("sepia"),F=c("skew"),U=c("space"),J=c("translate"),W=()=>["auto","contain","none"],V=()=>["auto","hidden","clip","visible","scroll"],O=()=>["auto",i,r],d=()=>[i,r],X=()=>["",k,S],T=()=>["auto",M,i],Z=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",i],K=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>[M,i];return{cacheSize:500,separator:":",theme:{colors:[j],spacing:[k,S],blur:["none","",E,i],brightness:C(),borderColor:[e],borderRadius:["none","","full",E,i],borderSpacing:d(),borderWidth:X(),contrast:C(),grayscale:P(),hueRotate:C(),invert:P(),gap:d(),gradientColorStops:[e],gradientColorStopPositions:[Re,S],inset:O(),margin:O(),opacity:C(),padding:d(),saturate:C(),scale:C(),sepia:P(),skew:C(),space:d(),translate:d()},classGroups:{aspect:[{aspect:["auto","square","video",i]}],container:["container"],columns:[{columns:[E]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Z(),i]}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[f]}],"inset-x":[{"inset-x":[f]}],"inset-y":[{"inset-y":[f]}],start:[{start:[f]}],end:[{end:[f]}],top:[{top:[f]}],right:[{right:[f]}],bottom:[{bottom:[f]}],left:[{left:[f]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",I,i]}],basis:[{basis:O()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",i]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",I,i]}],"grid-cols":[{"grid-cols":[j]}],"col-start-end":[{col:["auto",{span:["full",I,i]},i]}],"col-start":[{"col-start":T()}],"col-end":[{"col-end":T()}],"grid-rows":[{"grid-rows":[j]}],"row-start-end":[{row:["auto",{span:[I,i]},i]}],"row-start":[{"row-start":T()}],"row-end":[{"row-end":T()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",i]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",i]}],gap:[{gap:[y]}],"gap-x":[{"gap-x":[y]}],"gap-y":[{"gap-y":[y]}],"justify-content":[{justify:["normal",..._()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",..._(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[..._(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[p]}],mx:[{mx:[p]}],my:[{my:[p]}],ms:[{ms:[p]}],me:[{me:[p]}],mt:[{mt:[p]}],mr:[{mr:[p]}],mb:[{mb:[p]}],ml:[{ml:[p]}],"space-x":[{"space-x":[U]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[U]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",i,r]}],"min-w":[{"min-w":[i,r,"min","max","fit"]}],"max-w":[{"max-w":[i,r,"none","full","min","max","fit","prose",{screen:[E]},E]}],h:[{h:[i,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[i,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[i,r,"auto","min","max","fit"]}],"font-size":[{text:["base",E,S]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$]}],"font-family":[{font:[j]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",i]}],"line-clamp":[{"line-clamp":["none",M,$]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",k,i]}],"list-image":[{"list-image":["none",i]}],"list-style-type":[{list:["none","disc","decimal",i]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",k,S]}],"underline-offset":[{"underline-offset":["auto",k,i]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:d()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Z(),Ie]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Pe]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ne]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:L()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[k,i]}],"outline-w":[{outline:[k,S]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[k,S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",E,Te]}],"shadow-color":[{shadow:[j]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",E,i]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[h]}],saturate:[{saturate:[G]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[G]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",i]}],duration:[{duration:C()}],ease:[{ease:["linear","in","out","in-out",i]}],delay:[{delay:C()}],animate:[{animate:["none","spin","ping","pulse","bounce",i]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[I,i]}],"translate-x":[{"translate-x":[J]}],"translate-y":[{"translate-y":[J]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",i]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{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",i]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":d()}],"scroll-mx":[{"scroll-mx":d()}],"scroll-my":[{"scroll-my":d()}],"scroll-ms":[{"scroll-ms":d()}],"scroll-me":[{"scroll-me":d()}],"scroll-mt":[{"scroll-mt":d()}],"scroll-mr":[{"scroll-mr":d()}],"scroll-mb":[{"scroll-mb":d()}],"scroll-ml":[{"scroll-ml":d()}],"scroll-p":[{"scroll-p":d()}],"scroll-px":[{"scroll-px":d()}],"scroll-py":[{"scroll-py":d()}],"scroll-ps":[{"scroll-ps":d()}],"scroll-pe":[{"scroll-pe":d()}],"scroll-pt":[{"scroll-pt":d()}],"scroll-pr":[{"scroll-pr":d()}],"scroll-pb":[{"scroll-pb":d()}],"scroll-pl":[{"scroll-pl":d()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",i]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[k,S,$]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},_e=ve(Oe);function $e(...e){return _e(le.clsx(e))}function ne(e){function r(){const o=z.useRef(e),l=z.useCallback(()=>o.current,[]),s=z.useRef(new Set),u=z.useCallback(b=>{o.current={...o.current,...b},s.current.forEach(h=>h())},[]),g=z.useCallback(b=>(s.current.add(b),()=>s.current.delete(b)),[]);return{get:l,set:u,subscribe:g}}const t=z.createContext(null);function n({children:o}){return ie.jsx(t.Provider,{value:r(),children:o})}function a(o){const l=z.useContext(t);if(!l)throw new Error("Store not found");return[z.useSyncExternalStore(l.subscribe,()=>o(l.get()),()=>o(e)),l.set]}return{Provider:n,useStore:a}}ne({value:!1});ne({value:!1});const se=ae.create(e=>({value:!1,setEditable:r=>{e(()=>({value:r.value}))}}));function qe(){return se(r=>r.value)}exports.cn=$e;exports.useEditableEditor=qe;exports.useStoreEditableEditor=se;