reactjs-tiptap-editor 0.4.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ActionMenuButton-BKOg7hkq.js +38 -0
- package/lib/ActionMenuButton-DLQyd_gx.cjs +1 -0
- package/lib/Attachment.cjs +2 -2
- package/lib/Attachment.d.cts +43 -55
- package/lib/Attachment.d.ts +43 -55
- package/lib/Attachment.js +129 -99
- package/lib/Blockquote.cjs +3 -3
- package/lib/Blockquote.d.cts +43 -55
- package/lib/Blockquote.d.ts +43 -55
- package/lib/Blockquote.js +50 -22
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.d.cts +43 -55
- package/lib/Bold.d.ts +43 -55
- package/lib/Bold.js +48 -20
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.d.cts +43 -55
- package/lib/BulletList.d.ts +43 -55
- package/lib/BulletList.js +38 -9
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.d.cts +43 -55
- package/lib/Clear.d.ts +43 -55
- package/lib/Clear.js +32 -6
- package/lib/Code.cjs +1 -1
- package/lib/Code.d.cts +43 -55
- package/lib/Code.d.ts +43 -55
- package/lib/Code.js +53 -25
- package/lib/CodeBlock.cjs +35 -35
- package/lib/CodeBlock.d.cts +43 -55
- package/lib/CodeBlock.d.ts +43 -55
- package/lib/CodeBlock.js +605 -590
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.d.cts +44 -56
- package/lib/CodeView.d.ts +44 -56
- package/lib/CodeView.js +49 -21
- package/lib/Color.cjs +1 -1
- package/lib/Color.d.cts +47 -55
- package/lib/Color.d.ts +47 -55
- package/lib/Color.js +123 -79
- package/lib/Column.cjs +1 -0
- package/lib/{Document.d.cts → Column.d.cts} +49 -58
- package/lib/{Document.d.ts → Column.d.ts} +49 -58
- package/lib/Column.js +217 -0
- package/lib/{Drawer-CaAfmqNo.js → Drawer-DZ5jvmrX.js} +404 -394
- package/lib/Drawer-SRhwOc6T.cjs +1 -0
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.d.cts +43 -55
- package/lib/Drawer.d.ts +43 -55
- package/lib/Drawer.js +6 -5
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.d.cts +43 -60
- package/lib/Emoji.d.ts +43 -60
- package/lib/Emoji.js +377 -392
- package/lib/Excalidraw-DwBRXEtC.js +345 -0
- package/lib/Excalidraw-ZN3DQvDC.cjs +1 -0
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.d.cts +43 -55
- package/lib/Excalidraw.d.ts +43 -55
- package/lib/Excalidraw.js +6 -4
- package/lib/ExportPdf.cjs +5 -5
- package/lib/ExportPdf.d.cts +43 -55
- package/lib/ExportPdf.d.ts +43 -55
- package/lib/ExportPdf.js +60 -32
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.d.cts +44 -56
- package/lib/ExportWord.d.ts +44 -56
- package/lib/ExportWord.js +84 -21
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.d.cts +57 -58
- package/lib/FontFamily.d.ts +57 -58
- package/lib/FontFamily.js +72 -74
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.d.cts +54 -58
- package/lib/FontSize.d.ts +54 -58
- package/lib/FontSize.js +72 -64
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.d.cts +57 -55
- package/lib/Heading.d.ts +57 -55
- package/lib/Heading.js +91 -73
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.d.cts +47 -55
- package/lib/Highlight.d.ts +47 -55
- package/lib/Highlight.js +152 -21
- package/lib/History.cjs +1 -1
- package/lib/History.d.cts +45 -55
- package/lib/History.d.ts +45 -55
- package/lib/History.js +976 -53
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.d.cts +43 -55
- package/lib/HorizontalRule.d.ts +43 -55
- package/lib/HorizontalRule.js +97 -17
- package/lib/Icon-DUpv2cI6.cjs +1 -0
- package/lib/Icon-jKs8Hr6p.js +11 -0
- package/lib/Iframe-CmXkEqOd.js +431 -0
- package/lib/Iframe-Cvca2G7X.cjs +1 -0
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.d.cts +42 -61
- package/lib/Iframe.d.ts +42 -61
- package/lib/Iframe.js +6 -4
- package/lib/Image.cjs +1 -1
- package/lib/Image.d.cts +43 -56
- package/lib/Image.d.ts +43 -56
- package/lib/Image.js +848 -5
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.d.cts +44 -58
- package/lib/ImageGif.d.ts +44 -58
- package/lib/ImageGif.js +424 -5
- package/lib/ImportWord.cjs +48 -48
- package/lib/ImportWord.d.cts +44 -56
- package/lib/ImportWord.d.ts +44 -56
- package/lib/ImportWord.js +2596 -2588
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.d.cts +43 -55
- package/lib/Indent.d.ts +43 -55
- package/lib/Indent.js +97 -27
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.d.cts +43 -55
- package/lib/Italic.d.ts +43 -55
- package/lib/Italic.js +47 -19
- package/lib/Katex-DsYXsjSS.js +2740 -0
- package/lib/Katex-XfrNne6U.cjs +4 -0
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.d.cts +43 -55
- package/lib/Katex.d.ts +43 -55
- package/lib/Katex.js +5 -196
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.d.cts +45 -61
- package/lib/LineHeight.d.ts +45 -61
- package/lib/LineHeight.js +71 -112
- package/lib/Link.cjs +1 -1
- package/lib/Link.d.cts +44 -58
- package/lib/Link.d.ts +44 -58
- package/lib/Link.js +3 -3
- package/lib/LinkEditBlock-BZenZq-Z.cjs +5 -0
- package/lib/LinkEditBlock-CB8yIffE.js +1241 -0
- package/lib/Mention.cjs +1 -1
- package/lib/Mention.d.cts +40 -55
- package/lib/Mention.d.ts +40 -55
- package/lib/Mention.js +114 -130
- package/lib/Mermaid.cjs +2 -2
- package/lib/Mermaid.d.cts +43 -55
- package/lib/Mermaid.d.ts +43 -55
- package/lib/Mermaid.js +177 -165
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.d.cts +58 -57
- package/lib/MoreMark.d.ts +58 -57
- package/lib/MoreMark.js +125 -55
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.d.cts +43 -55
- package/lib/OrderedList.d.ts +43 -55
- package/lib/OrderedList.js +37 -9
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.d.cts +43 -58
- package/lib/SearchAndReplace.d.ts +43 -58
- package/lib/SearchAndReplace.js +221 -197
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.d.cts +55 -62
- package/lib/SlashCommand.d.ts +55 -62
- package/lib/SlashCommand.js +235 -249
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.d.cts +43 -55
- package/lib/Strike.d.ts +43 -55
- package/lib/Strike.js +39 -11
- package/lib/Table-B1j1Ebmh.cjs +9 -0
- package/lib/Table-Db8TcQX8.js +1984 -0
- package/lib/Table.cjs +1 -9
- package/lib/Table.d.cts +44 -58
- package/lib/Table.d.ts +44 -58
- package/lib/Table.js +3 -558
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.d.cts +43 -55
- package/lib/TaskList.d.ts +43 -55
- package/lib/TaskList.js +38 -10
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.d.cts +56 -55
- package/lib/TextAlign.d.ts +56 -55
- package/lib/TextAlign.js +108 -101
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.d.cts +72 -55
- package/lib/TextDirection.d.ts +72 -55
- package/lib/TextDirection.js +105 -112
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.d.cts +43 -55
- package/lib/TextUnderline.d.ts +43 -55
- package/lib/TextUnderline.js +46 -18
- package/lib/{Twitter-BFULyqdR.js → Twitter-CXmmjz9R.js} +536 -498
- package/lib/Twitter-CtVTIWJW.cjs +1 -0
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.d.cts +43 -55
- package/lib/Twitter.d.ts +43 -55
- package/lib/Twitter.js +5 -4
- package/lib/Video.cjs +1 -1
- package/lib/Video.d.cts +43 -55
- package/lib/Video.d.ts +43 -55
- package/lib/Video.js +261 -4
- package/lib/_commonjsHelpers-BItOPCY9.js +28 -0
- package/lib/_commonjsHelpers-BTDuMlIz.cjs +1 -0
- package/lib/bubble.cjs +2 -0
- package/lib/{bubble-extra.d.cts → bubble.d.cts} +69 -70
- package/lib/{bubble-extra.d.ts → bubble.d.ts} +69 -70
- package/lib/bubble.js +1925 -0
- package/lib/button-B12K7BJ4.cjs +1 -0
- package/lib/button-DXMsXUEn.js +43 -0
- package/lib/clsx-C11secjj.cjs +1 -0
- package/lib/clsx-OuTLNxxd.js +16 -0
- package/lib/delete-node-CosiBes5.cjs +1 -0
- package/lib/delete-node-IyVmiRbI.js +22 -0
- package/lib/dialog-CaCS-W5S.cjs +1 -0
- package/lib/dialog-PtQivpHS.js +100 -0
- package/lib/dom-dataset-BqoJhJXt.cjs +1 -0
- package/lib/dom-dataset-CIEeltF6.js +47 -0
- package/lib/dropdown-menu-BPp2Z_U-.js +136 -0
- package/lib/dropdown-menu-CdSm4emp.cjs +1 -0
- package/lib/file-BLas99n7.js +43 -0
- package/lib/file-i7e4nQY2.cjs +1 -0
- package/lib/floating-ui.dom-U1vPFQ5f.js +1151 -0
- package/lib/floating-ui.dom-VCrc58uF.cjs +1 -0
- package/lib/icons-Cllpys39.js +362 -0
- package/lib/icons-CqHjeW5T.cjs +1 -0
- package/lib/index-BH4bc3jN.cjs +33 -0
- package/lib/index-BPfVXs5_.js +2380 -0
- package/lib/index-Bnmd0WvY.js +1631 -0
- package/lib/{index-Ch6dBBad.js → index-CBce_TWY.js} +40 -42
- package/lib/{index-5iBZLua9.cjs → index-D-5U8dY8.cjs} +8 -8
- package/lib/{index-ByurDDMv.js → index-D2TUfKkC.js} +2 -2
- package/lib/index-DV5kbgRU.cjs +1 -0
- package/lib/{index-LmrOdnen.js → index-DYkucCoF.js} +396 -495
- package/lib/index-Dfmm6FTT.cjs +1 -0
- package/lib/index-DnWWK9F_.js +6374 -0
- package/lib/index-DzcKxutn.js +632 -0
- package/lib/index-DzvuNTxo.cjs +4 -0
- package/lib/{index-BeCTd5v2.cjs → index-N--9MohJ.cjs} +1 -1
- package/lib/index-RfTlOzIr.cjs +22 -0
- package/lib/index.cjs +132 -1
- package/lib/index.d.cts +45 -296
- package/lib/index.d.ts +45 -296
- package/lib/index.js +243 -2
- package/lib/input-_ECRfn3Y.cjs +1 -0
- package/lib/input-wJ9PDEzZ.js +21 -0
- package/lib/isNumber-ClPupm7P.cjs +1 -0
- package/lib/isNumber-fpLGS0AZ.js +15 -0
- package/lib/label-BkgAe7IY.cjs +1 -0
- package/lib/label-CGdLYWv7.js +19 -0
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +5421 -73
- package/lib/locale-bundle.d.ts +5421 -73
- package/lib/locale-bundle.js +9 -7
- package/lib/popover-BgmUNMHj.cjs +1 -0
- package/lib/popover-CAuEW0Mr.js +23 -0
- package/lib/separator-CuBW_w98.js +328 -0
- package/lib/separator-DRIrVZ2N.cjs +1 -0
- package/lib/store-DX599H5W.js +10 -0
- package/lib/store-WStcMOiW.cjs +1 -0
- package/lib/style.css +1 -1
- package/lib/switch-CnLJ7Y-b.cjs +1 -0
- package/lib/switch-Coix_FA1.js +27 -0
- package/lib/tabs-B5mVSN1I.js +46 -0
- package/lib/tabs-BoLCMcCI.cjs +1 -0
- package/lib/textarea-B-6zTKQz.cjs +1 -0
- package/lib/{textarea-aPtytkDx.js → textarea-DUUM1jZd.js} +1 -1
- package/lib/theme-B7aAsK_T.js +15 -0
- package/lib/theme-D8_cxGqB.cjs +1 -0
- package/lib/throttle-CdwDrFpn.js +249 -0
- package/lib/throttle-qX7Yjtsg.cjs +1 -0
- package/lib/toggle-Cdp4IT2U.js +85 -0
- package/lib/toggle-D41PzQLJ.cjs +1 -0
- package/lib/tooltip-BuEiE96N.cjs +1 -0
- package/lib/tooltip-CopwsU8q.js +23 -0
- package/lib/updatePosition-8Sdem5jb.cjs +1 -0
- package/lib/updatePosition-BPmcE0YD.js +215 -0
- package/lib/use-toast-Bz3QCOtE.cjs +1 -0
- package/lib/use-toast-Crf7-q5H.js +98 -0
- package/lib/useButtonProps-BsEd4zYM.js +141 -0
- package/lib/useButtonProps-C6Vpn190.cjs +1 -0
- package/package.json +22 -105
- package/lib/ActionMenuButton-CYdM1xx5.cjs +0 -1
- package/lib/ActionMenuButton-DKRF6oa0.js +0 -33
- package/lib/BaseKit.cjs +0 -3
- package/lib/BaseKit.d.cts +0 -481
- package/lib/BaseKit.d.ts +0 -481
- package/lib/BaseKit.js +0 -132
- package/lib/Document.cjs +0 -1
- package/lib/Document.js +0 -9
- package/lib/Drawer-CdvCMSzN.cjs +0 -1
- package/lib/Excalidraw-BbMQhNvs.cjs +0 -1
- package/lib/Excalidraw-CVWz2Vyn.js +0 -290
- package/lib/FormatPainter.cjs +0 -1
- package/lib/FormatPainter.d.cts +0 -372
- package/lib/FormatPainter.d.ts +0 -372
- package/lib/FormatPainter.js +0 -76
- package/lib/ListItem.cjs +0 -1
- package/lib/ListItem.d.cts +0 -290
- package/lib/ListItem.d.ts +0 -290
- package/lib/ListItem.js +0 -7
- package/lib/MultiColumn.cjs +0 -1
- package/lib/MultiColumn.d.cts +0 -294
- package/lib/MultiColumn.d.ts +0 -294
- package/lib/MultiColumn.js +0 -8
- package/lib/RichTextEditor-CxvwGvQG.cjs +0 -142
- package/lib/RichTextEditor-DGcKEUGr.js +0 -22166
- package/lib/Selection.cjs +0 -1
- package/lib/Selection.d.cts +0 -289
- package/lib/Selection.d.ts +0 -289
- package/lib/Selection.js +0 -25
- package/lib/SubAndSuperScript.cjs +0 -1
- package/lib/SubAndSuperScript.d.cts +0 -377
- package/lib/SubAndSuperScript.d.ts +0 -377
- package/lib/SubAndSuperScript.js +0 -43
- package/lib/TableOfContent.cjs +0 -1
- package/lib/TableOfContent.d.cts +0 -291
- package/lib/TableOfContent.d.ts +0 -291
- package/lib/TableOfContent.js +0 -185
- package/lib/TextBubble.cjs +0 -1
- package/lib/TextBubble.d.cts +0 -362
- package/lib/TextBubble.d.ts +0 -362
- package/lib/TextBubble.js +0 -133
- package/lib/TrailingNode.cjs +0 -1
- package/lib/TrailingNode.d.cts +0 -297
- package/lib/TrailingNode.d.ts +0 -297
- package/lib/TrailingNode.js +0 -41
- package/lib/Twitter-Cutpkh3h.cjs +0 -1
- package/lib/bubble-extra.cjs +0 -2
- package/lib/bubble-extra.js +0 -631
- package/lib/dom-dataset-_6-diIRQ.cjs +0 -33
- package/lib/dom-dataset-lYeH6gfI.js +0 -2361
- package/lib/index-6D1J-A-o.cjs +0 -1
- package/lib/index-B96Cclrj.cjs +0 -3
- package/lib/index-BBz7Nmv9.js +0 -55
- package/lib/index-CUogRI7j.cjs +0 -1
- package/lib/index-DF2Lp4HZ.cjs +0 -100
- package/lib/index-D_L6n8O8.js +0 -76
- package/lib/index-Dbvi-Bvh.cjs +0 -1
- package/lib/index-DpCrt7xs.cjs +0 -1
- package/lib/index-DsAX1Vq8.cjs +0 -1
- package/lib/index-Dy4DlW9o.js +0 -12
- package/lib/index-J3jHHZ4d.js +0 -200
- package/lib/index-VvXaaKe3.js +0 -898
- package/lib/index-kbO3iWqL.js +0 -13432
- package/lib/textarea-DFo_aXnj.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const Tt=["top","right","bottom","left"],wt=["start","end"],xt=Tt.reduce((t,e)=>t.concat(e,e+"-"+wt[0],e+"-"+wt[1]),[]),I=Math.min,L=Math.max,nt=Math.round,X=t=>({x:t,y:t}),Xt={left:"right",right:"left",bottom:"top",top:"bottom"},It={start:"end",end:"start"};function ft(t,e,o){return L(t,I(e,o))}function j(t,e){return typeof t=="function"?t(e):t}function W(t){return t.split("-")[0]}function N(t){return t.split("-")[1]}function Lt(t){return t==="x"?"y":"x"}function dt(t){return t==="y"?"height":"width"}const Yt=new Set(["top","bottom"]);function _(t){return Yt.has(W(t))?"y":"x"}function mt(t){return Lt(_(t))}function Dt(t,e,o){o===void 0&&(o=!1);const n=N(t),i=mt(t),s=dt(i);let r=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=it(r)),[r,it(r)]}function jt(t){const e=it(t);return[ot(t),e,ot(e)]}function ot(t){return t.replace(/start|end/g,e=>It[e])}const yt=["left","right"],bt=["right","left"],zt=["top","bottom"],Kt=["bottom","top"];function qt(t,e,o){switch(t){case"top":case"bottom":return o?e?bt:yt:e?yt:bt;case"left":case"right":return e?zt:Kt;default:return[]}}function Gt(t,e,o,n){const i=N(t);let s=qt(W(t),o==="start",n);return i&&(s=s.map(r=>r+"-"+i),e&&(s=s.concat(s.map(ot)))),s}function it(t){return t.replace(/left|right|bottom|top/g,e=>Xt[e])}function Jt(t){return{top:0,right:0,bottom:0,left:0,...t}}function ht(t){return typeof t!="number"?Jt(t):{top:t,right:t,bottom:t,left:t}}function J(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 vt(t,e,o){let{reference:n,floating:i}=t;const s=_(e),r=mt(e),c=dt(r),f=W(e),u=s==="y",a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2,m=n[c]/2-i[c]/2;let d;switch(f){case"top":d={x:a,y:n.y-i.height};break;case"bottom":d={x:a,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:l};break;case"left":d={x:n.x-i.width,y:l};break;default:d={x:n.x,y:n.y}}switch(N(e)){case"start":d[r]-=m*(o&&u?-1:1);break;case"end":d[r]+=m*(o&&u?-1:1);break}return d}const Qt=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 u=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:a,y:l}=vt(u,n,f),m=n,d={},h=0;for(let g=0;g<c.length;g++){const{name:p,fn:y}=c[g],{x,y:b,data:A,reset:v}=await y({x:a,y:l,initialPlacement:n,placement:m,strategy:i,middlewareData:d,rects:u,platform:r,elements:{reference:t,floating:e}});a=x??a,l=b??l,d={...d,[p]:{...d[p],...A}},v&&h<=50&&(h++,typeof v=="object"&&(v.placement&&(m=v.placement),v.rects&&(u=v.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:i}):v.rects),{x:a,y:l}=vt(u,m,f)),g=-1)}return{x:a,y:l,placement:m,strategy:i,middlewareData:d}};async function Q(t,e){var o;e===void 0&&(e={});const{x:n,y:i,platform:s,rects:r,elements:c,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:a="viewport",elementContext:l="floating",altBoundary:m=!1,padding:d=0}=j(e,t),h=ht(d),p=c[m?l==="floating"?"reference":"floating":l],y=J(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(p)))==null||o?p:p.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:u,rootBoundary:a,strategy:f})),x=l==="floating"?{x:n,y:i,width:r.floating.width,height:r.floating.height}:r.reference,b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),A=await(s.isElement==null?void 0:s.isElement(b))?await(s.getScale==null?void 0:s.getScale(b))||{x:1,y:1}:{x:1,y:1},v=J(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:b,strategy:f}):x);return{top:(y.top-v.top+h.top)/A.y,bottom:(v.bottom-y.bottom+h.bottom)/A.y,left:(y.left-v.left+h.left)/A.x,right:(v.right-y.right+h.right)/A.x}}const Ut=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:u,padding:a=0}=j(t,e)||{};if(u==null)return{};const l=ht(a),m={x:o,y:n},d=mt(i),h=dt(d),g=await r.getDimensions(u),p=d==="y",y=p?"top":"left",x=p?"bottom":"right",b=p?"clientHeight":"clientWidth",A=s.reference[h]+s.reference[d]-m[d]-s.floating[h],v=m[d]-s.reference[d],C=await(r.getOffsetParent==null?void 0:r.getOffsetParent(u));let S=C?C[b]:0;(!S||!await(r.isElement==null?void 0:r.isElement(C)))&&(S=c.floating[b]||s.floating[h]);const F=A/2-v/2,P=S/2-g[h]/2-1,w=I(l[y],P),O=I(l[x],P),T=w,D=S-g[h]-O,R=S/2-g[h]/2+F,$=ft(T,R,D),M=!f.arrow&&N(i)!=null&&R!==$&&s.reference[h]/2-(R<T?w:O)-g[h]/2<0,E=M?R<T?R-T:R-D:0;return{[d]:m[d]+E,data:{[d]:$,centerOffset:R-$-E,...M&&{alignmentOffset:E}},reset:M}}});function Zt(t,e,o){return(t?[...o.filter(i=>N(i)===t),...o.filter(i=>N(i)!==t)]:o.filter(i=>W(i)===i)).filter(i=>t?N(i)===t||(e?ot(i)!==i:!1):!0)}const te=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:u}=e,{crossAxis:a=!1,alignment:l,allowedPlacements:m=xt,autoAlignment:d=!0,...h}=j(t,e),g=l!==void 0||m===xt?Zt(l||null,d,m):m,p=await Q(e,h),y=((o=r.autoPlacement)==null?void 0:o.index)||0,x=g[y];if(x==null)return{};const b=Dt(x,s,await(f.isRTL==null?void 0:f.isRTL(u.floating)));if(c!==x)return{reset:{placement:g[0]}};const A=[p[W(x)],p[b[0]],p[b[1]]],v=[...((n=r.autoPlacement)==null?void 0:n.overflows)||[],{placement:x,overflows:A}],C=g[y+1];if(C)return{data:{index:y+1,overflows:v},reset:{placement:C}};const S=v.map(w=>{const O=N(w.placement);return[w.placement,O&&a?w.overflows.slice(0,2).reduce((T,D)=>T+D,0):w.overflows[0],w.overflows]}).sort((w,O)=>w[1]-O[1]),P=((i=S.filter(w=>w[2].slice(0,N(w[0])?2:3).every(O=>O<=0))[0])==null?void 0:i[0])||S[0][0];return P!==c?{data:{index:y+1,overflows:v},reset:{placement:P}}:{}}}},ee=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:u}=e,{mainAxis:a=!0,crossAxis:l=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...p}=j(t,e);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const y=W(i),x=_(c),b=W(c)===c,A=await(f.isRTL==null?void 0:f.isRTL(u.floating)),v=m||(b||!g?[it(c)]:jt(c)),C=h!=="none";!m&&C&&v.push(...Gt(c,g,h,A));const S=[c,...v],F=await Q(e,p),P=[];let w=((n=s.flip)==null?void 0:n.overflows)||[];if(a&&P.push(F[y]),l){const R=Dt(i,r,A);P.push(F[R[0]],F[R[1]])}if(w=[...w,{placement:i,overflows:P}],!P.every(R=>R<=0)){var O,T;const R=(((O=s.flip)==null?void 0:O.index)||0)+1,$=S[R];if($&&(!(l==="alignment"?x!==_($):!1)||w.every(k=>_(k.placement)===x?k.overflows[0]>0:!0)))return{data:{index:R,overflows:w},reset:{placement:$}};let M=(T=w.filter(E=>E.overflows[0]<=0).sort((E,k)=>E.overflows[1]-k.overflows[1])[0])==null?void 0:T.placement;if(!M)switch(d){case"bestFit":{var D;const E=(D=w.filter(k=>{if(C){const K=_(k.placement);return K===x||K==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(K=>K>0).reduce((K,_t)=>K+_t,0)]).sort((k,K)=>k[1]-K[1])[0])==null?void 0:D[0];E&&(M=E);break}case"initialPlacement":M=c;break}if(i!==M)return{reset:{placement:M}}}return{}}}};function At(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ot(t){return Tt.some(e=>t[e]>=0)}const ne=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:o}=e,{strategy:n="referenceHidden",...i}=j(t,e);switch(n){case"referenceHidden":{const s=await Q(e,{...i,elementContext:"reference"}),r=At(s,o.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:Ot(r)}}}case"escaped":{const s=await Q(e,{...i,altBoundary:!0}),r=At(s,o.floating);return{data:{escapedOffsets:r,escaped:Ot(r)}}}default:return{}}}}};function Et(t){const e=I(...t.map(s=>s.left)),o=I(...t.map(s=>s.top)),n=L(...t.map(s=>s.right)),i=L(...t.map(s=>s.bottom));return{x:e,y:o,width:n-e,height:i-o}}function oe(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=>J(Et(i)))}const ie=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:u}=j(t,e),a=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(n.reference))||[]),l=oe(a),m=J(Et(a)),d=ht(c);function h(){if(l.length===2&&l[0].left>l[1].right&&f!=null&&u!=null)return l.find(p=>f>p.left-d.left&&f<p.right+d.right&&u>p.top-d.top&&u<p.bottom+d.bottom)||m;if(l.length>=2){if(_(o)==="y"){const w=l[0],O=l[l.length-1],T=W(o)==="top",D=w.top,R=O.bottom,$=T?w.left:O.left,M=T?w.right:O.right,E=M-$,k=R-D;return{top:D,bottom:R,left:$,right:M,width:E,height:k,x:$,y:D}}const p=W(o)==="left",y=L(...l.map(w=>w.right)),x=I(...l.map(w=>w.left)),b=l.filter(w=>p?w.left===x:w.right===y),A=b[0].top,v=b[b.length-1].bottom,C=x,S=y,F=S-C,P=v-A;return{top:A,bottom:v,left:C,right:S,width:F,height:P,x:C,y:A}}return m}const g=await s.getElementRects({reference:{getBoundingClientRect:h},floating:n.floating,strategy:r});return i.reference.x!==g.reference.x||i.reference.y!==g.reference.y||i.reference.width!==g.reference.width||i.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}},se=new Set(["left","top"]);async function re(t,e){const{placement:o,platform:n,elements:i}=t,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),r=W(o),c=N(o),f=_(o)==="y",u=se.has(r)?-1:1,a=s&&f?-1:1,l=j(e,t);let{mainAxis:m,crossAxis:d,alignmentAxis:h}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return c&&typeof h=="number"&&(d=c==="end"?h*-1:h),f?{x:d*a,y:m*u}:{x:m*u,y:d*a}}const ce=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 re(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}}}}},le=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:p=>{let{x:y,y:x}=p;return{x:y,y:x}}},...f}=j(t,e),u={x:o,y:n},a=await Q(e,f),l=_(W(i)),m=Lt(l);let d=u[m],h=u[l];if(s){const p=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=d+a[p],b=d-a[y];d=ft(x,d,b)}if(r){const p=l==="y"?"top":"left",y=l==="y"?"bottom":"right",x=h+a[p],b=h-a[y];h=ft(x,h,b)}const g=c.fn({...e,[m]:d,[l]:h});return{...g,data:{x:g.x-o,y:g.y-n,enabled:{[m]:s,[l]:r}}}}}},ae=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=()=>{},...u}=j(t,e),a=await Q(e,u),l=W(i),m=N(i),d=_(i)==="y",{width:h,height:g}=s.floating;let p,y;l==="top"||l==="bottom"?(p=l,y=m===(await(r.isRTL==null?void 0:r.isRTL(c.floating))?"start":"end")?"left":"right"):(y=l,p=m==="end"?"top":"bottom");const x=g-a.top-a.bottom,b=h-a.left-a.right,A=I(g-a[p],x),v=I(h-a[y],b),C=!e.middlewareData.shift;let S=A,F=v;if((o=e.middlewareData.shift)!=null&&o.enabled.x&&(F=b),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(S=x),C&&!m){const w=L(a.left,0),O=L(a.right,0),T=L(a.top,0),D=L(a.bottom,0);d?F=h-2*(w!==0||O!==0?w+O:L(a.left,a.right)):S=g-2*(T!==0||D!==0?T+D:L(a.top,a.bottom))}await f({...e,availableWidth:F,availableHeight:S});const P=await r.getDimensions(c.floating);return h!==P.width||g!==P.height?{reset:{rects:!0}}:{}}}};function st(){return typeof window<"u"}function Z(t){return kt(t)?(t.nodeName||"").toLowerCase():"#document"}function B(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function z(t){var e;return(e=(kt(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function kt(t){return st()?t instanceof Node||t instanceof B(t).Node:!1}function V(t){return st()?t instanceof Element||t instanceof B(t).Element:!1}function Y(t){return st()?t instanceof HTMLElement||t instanceof B(t).HTMLElement:!1}function Rt(t){return!st()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof B(t).ShadowRoot}const fe=new Set(["inline","contents"]);function et(t){const{overflow:e,overflowX:o,overflowY:n,display:i}=H(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&!fe.has(i)}const ue=new Set(["table","td","th"]);function de(t){return ue.has(Z(t))}const me=[":popover-open",":modal"];function rt(t){return me.some(e=>{try{return t.matches(e)}catch{return!1}})}const he=["transform","translate","scale","rotate","perspective"],ge=["transform","translate","scale","rotate","perspective","filter"],pe=["paint","layout","strict","content"];function gt(t){const e=pt(),o=V(t)?H(t):t;return he.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)||ge.some(n=>(o.willChange||"").includes(n))||pe.some(n=>(o.contain||"").includes(n))}function we(t){let e=q(t);for(;Y(e)&&!U(e);){if(gt(e))return e;if(rt(e))return null;e=q(e)}return null}function pt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const xe=new Set(["html","body","#document"]);function U(t){return xe.has(Z(t))}function H(t){return B(t).getComputedStyle(t)}function ct(t){return V(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function q(t){if(Z(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Rt(t)&&t.host||z(t);return Rt(e)?e.host:e}function Bt(t){const e=q(t);return U(e)?t.ownerDocument?t.ownerDocument.body:t.body:Y(e)&&et(e)?e:Bt(e)}function Ft(t,e,o){var n;e===void 0&&(e=[]);const i=Bt(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),r=B(i);return s?(ut(r),e.concat(r,r.visualViewport||[],et(i)?i:[],[])):e.concat(i,Ft(i,[]))}function ut(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Mt(t){const e=H(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=Y(t),s=i?t.offsetWidth:o,r=i?t.offsetHeight:n,c=nt(o)!==s||nt(n)!==r;return c&&(o=s,n=r),{width:o,height:n,$:c}}function Wt(t){return V(t)?t:t.contextElement}function G(t){const e=Wt(t);if(!Y(e))return X(1);const o=e.getBoundingClientRect(),{width:n,height:i,$:s}=Mt(e);let r=(s?nt(o.width):o.width)/n,c=(s?nt(o.height):o.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!c||!Number.isFinite(c))&&(c=1),{x:r,y:c}}const ye=X(0);function $t(t){const e=B(t);return!pt()||!e.visualViewport?ye:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function be(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==B(t)?!1:e}function tt(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);const i=t.getBoundingClientRect(),s=Wt(t);let r=X(1);e&&(n?V(n)&&(r=G(n)):r=G(t));const c=be(s,o,n)?$t(s):X(0);let f=(i.left+c.x)/r.x,u=(i.top+c.y)/r.y,a=i.width/r.x,l=i.height/r.y;if(s){const m=B(s),d=n&&V(n)?B(n):n;let h=m,g=ut(h);for(;g&&n&&d!==h;){const p=G(g),y=g.getBoundingClientRect(),x=H(g),b=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*p.x,A=y.top+(g.clientTop+parseFloat(x.paddingTop))*p.y;f*=p.x,u*=p.y,a*=p.x,l*=p.y,f+=b,u+=A,h=B(g),g=ut(h)}}return J({width:a,height:l,x:f,y:u})}function lt(t,e){const o=ct(t).scrollLeft;return e?e.left+o:tt(z(t)).left+o}function Nt(t,e){const o=t.getBoundingClientRect(),n=o.left+e.scrollLeft-lt(t,o),i=o.top+e.scrollTop;return{x:n,y:i}}function ve(t){let{elements:e,rect:o,offsetParent:n,strategy:i}=t;const s=i==="fixed",r=z(n),c=e?rt(e.floating):!1;if(n===r||c&&s)return o;let f={scrollLeft:0,scrollTop:0},u=X(1);const a=X(0),l=Y(n);if((l||!l&&!s)&&((Z(n)!=="body"||et(r))&&(f=ct(n)),Y(n))){const d=tt(n);u=G(n),a.x=d.x+n.clientLeft,a.y=d.y+n.clientTop}const m=r&&!l&&!s?Nt(r,f):X(0);return{width:o.width*u.x,height:o.height*u.y,x:o.x*u.x-f.scrollLeft*u.x+a.x+m.x,y:o.y*u.y-f.scrollTop*u.y+a.y+m.y}}function Ae(t){return Array.from(t.getClientRects())}function Oe(t){const e=z(t),o=ct(t),n=t.ownerDocument.body,i=L(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=L(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let r=-o.scrollLeft+lt(t);const c=-o.scrollTop;return H(n).direction==="rtl"&&(r+=L(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:r,y:c}}const St=25;function Re(t,e){const o=B(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 a=pt();(!a||a&&e==="fixed")&&(c=i.offsetLeft,f=i.offsetTop)}const u=lt(n);if(u<=0){const a=n.ownerDocument,l=a.body,m=getComputedStyle(l),d=a.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,h=Math.abs(n.clientWidth-l.clientWidth-d);h<=St&&(s-=h)}else u<=St&&(s+=u);return{width:s,height:r,x:c,y:f}}const Se=new Set(["absolute","fixed"]);function Ce(t,e){const o=tt(t,!0,e==="fixed"),n=o.top+t.clientTop,i=o.left+t.clientLeft,s=Y(t)?G(t):X(1),r=t.clientWidth*s.x,c=t.clientHeight*s.y,f=i*s.x,u=n*s.y;return{width:r,height:c,x:f,y:u}}function Ct(t,e,o){let n;if(e==="viewport")n=Re(t,o);else if(e==="document")n=Oe(z(t));else if(V(e))n=Ce(e,o);else{const i=$t(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return J(n)}function Vt(t,e){const o=q(t);return o===e||!V(o)||U(o)?!1:H(o).position==="fixed"||Vt(o,e)}function Pe(t,e){const o=e.get(t);if(o)return o;let n=Ft(t,[]).filter(c=>V(c)&&Z(c)!=="body"),i=null;const s=H(t).position==="fixed";let r=s?q(t):t;for(;V(r)&&!U(r);){const c=H(r),f=gt(r);!f&&c.position==="fixed"&&(i=null),(s?!f&&!i:!f&&c.position==="static"&&!!i&&Se.has(i.position)||et(r)&&!f&&Vt(t,r))?n=n.filter(a=>a!==r):i=c,r=q(r)}return e.set(t,n),n}function Te(t){let{element:e,boundary:o,rootBoundary:n,strategy:i}=t;const r=[...o==="clippingAncestors"?rt(e)?[]:Pe(e,this._c):[].concat(o),n],c=r[0],f=r.reduce((u,a)=>{const l=Ct(e,a,i);return u.top=L(l.top,u.top),u.right=I(l.right,u.right),u.bottom=I(l.bottom,u.bottom),u.left=L(l.left,u.left),u},Ct(e,c,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Le(t){const{width:e,height:o}=Mt(t);return{width:e,height:o}}function De(t,e,o){const n=Y(e),i=z(e),s=o==="fixed",r=tt(t,!0,s,e);let c={scrollLeft:0,scrollTop:0};const f=X(0);function u(){f.x=lt(i)}if(n||!n&&!s)if((Z(e)!=="body"||et(i))&&(c=ct(e)),n){const d=tt(e,!0,s,e);f.x=d.x+e.clientLeft,f.y=d.y+e.clientTop}else i&&u();s&&!n&&i&&u();const a=i&&!n&&!s?Nt(i,c):X(0),l=r.left+c.scrollLeft-f.x-a.x,m=r.top+c.scrollTop-f.y-a.y;return{x:l,y:m,width:r.width,height:r.height}}function at(t){return H(t).position==="static"}function Pt(t,e){if(!Y(t)||H(t).position==="fixed")return null;if(e)return e(t);let o=t.offsetParent;return z(t)===o&&(o=o.ownerDocument.body),o}function Ht(t,e){const o=B(t);if(rt(t))return o;if(!Y(t)){let i=q(t);for(;i&&!U(i);){if(V(i)&&!at(i))return i;i=q(i)}return o}let n=Pt(t,e);for(;n&&de(n)&&at(n);)n=Pt(n,e);return n&&U(n)&&at(n)&&!gt(n)?o:n||we(t)||o}const Ee=async function(t){const e=this.getOffsetParent||Ht,o=this.getDimensions,n=await o(t.floating);return{reference:De(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ke(t){return H(t).direction==="rtl"}const Be={convertOffsetParentRelativeRectToViewportRelativeRect:ve,getDocumentElement:z,getClippingRect:Te,getOffsetParent:Ht,getElementRects:Ee,getClientRects:Ae,getDimensions:Le,getScale:G,isElement:V,isRTL:ke},Fe=ce,Me=te,We=le,$e=ee,Ne=ae,Ve=ne,He=Ut,_e=ie,Xe=(t,e,o)=>{const n=new Map,i={platform:Be,...o},s={...i.platform,_c:n};return Qt(t,e,{...i,platform:s})};exports.arrow=He;exports.autoPlacement=Me;exports.computePosition=Xe;exports.flip=$e;exports.hide=Ve;exports.inline=_e;exports.offset=Fe;exports.shift=We;exports.size=Ne;
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
import { TextAlignRightIcon as o, TextAlignLeftIcon as l, TextAlignJustifyIcon as i, TextAlignCenterIcon as h } from "@radix-ui/react-icons";
|
|
2
|
+
import { ExternalLink as a, X as m, Loader2 as w, WrapText as s, PencilRuler as d, FlipHorizontal as v, FlipVertical as g, CropIcon as u, ChevronUp as p, Paperclip as x, Eye as C, Settings as f, ZoomOut as k, ZoomIn as M, BookMarked as L, Sigma as z, SmilePlusIcon as H, Replace as n, SmilePlus as V, Frame as B, Columns2 as c, PanelRight as I, PanelLeft as S, Clipboard as T, Copy as A, GripVertical as W, Plus as j, Columns4 as R, Columns3 as E, Heading6 as P, Heading5 as y, Heading4 as D, Heading3 as F, Heading2 as X, Heading1 as U, ChevronsUpDown as b, Trash as Z, Trash2 as G, TableCellsSplit as N, TableCellsMerge as O, BetweenVerticalEnd as q, BetweenVerticalStart as J, BetweenHorizonalStart as Q, BetweenHorizonalEnd as K, Unlink as Y, Pencil as _, Sparkles as $, Table as e1, Minimize as t1, Maximize as r1, Video as n1, ImageUp as c1, Link as o1, ListTodo as l1, ListOrdered as i1, List as h1, IndentDecrease as a1, IndentIncrease as m1, Type as w1, CodeXml as s1, Code as d1, Superscript as v1, Subscript as g1, ChevronDown as u1, Undo2 as p1, Redo2 as x1, PaintRoller as C1, Eraser as f1, Minus as k1, Strikethrough as M1, Quote as L1, Underline as z1, Italic as H1, LoaderCircle as V1, Bold as B1 } from "lucide-react";
|
|
3
|
+
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
4
|
+
function I1(t) {
|
|
5
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
|
|
6
|
+
"path",
|
|
7
|
+
{
|
|
8
|
+
fill: "currentColor",
|
|
9
|
+
d: "M19 12h-2v3h-3v2h5zM7 9h3V7H5v5h2zm14-6H3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m0 16H3V5h18z"
|
|
10
|
+
}
|
|
11
|
+
) });
|
|
12
|
+
}
|
|
13
|
+
function S1(t) {
|
|
14
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
|
|
15
|
+
"path",
|
|
16
|
+
{
|
|
17
|
+
fill: "none",
|
|
18
|
+
stroke: "currentColor",
|
|
19
|
+
strokeLinecap: "round",
|
|
20
|
+
strokeLinejoin: "round",
|
|
21
|
+
strokeWidth: "2",
|
|
22
|
+
d: "M6 15h15m0 4H6m9-8h6m0-4h-6M9 9h1a1 1 0 1 1-1 1V7.5a2 2 0 0 1 2-2M3 9h1a1 1 0 1 1-1 1V7.5a2 2 0 0 1 2-2"
|
|
23
|
+
}
|
|
24
|
+
) });
|
|
25
|
+
}
|
|
26
|
+
function T1() {
|
|
27
|
+
return /* @__PURE__ */ e(
|
|
28
|
+
"svg",
|
|
29
|
+
{
|
|
30
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
31
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
32
|
+
"aria-hidden": "true",
|
|
33
|
+
role: "img",
|
|
34
|
+
className: "richtext-w-4 richtext-h-4",
|
|
35
|
+
width: "1em",
|
|
36
|
+
height: "1em",
|
|
37
|
+
viewBox: "0 0 24 24",
|
|
38
|
+
children: /* @__PURE__ */ e(
|
|
39
|
+
"path",
|
|
40
|
+
{
|
|
41
|
+
fill: "none",
|
|
42
|
+
stroke: "currentColor",
|
|
43
|
+
strokeLinecap: "round",
|
|
44
|
+
strokeLinejoin: "round",
|
|
45
|
+
strokeWidth: "1.5",
|
|
46
|
+
d: "M5.5 3c1.404 0 2.107 0 2.611.38c.219.164.406.375.552.62C9 4.568 9 5.358 9 6.938v10.125c0 1.58 0 2.37-.337 2.937a2.1 2.1 0 0 1-.552.621c-.504.38-1.207.38-2.611.38s-2.107 0-2.611-.38a2.1 2.1 0 0 1-.552-.62C2 19.432 2 18.642 2 17.062V6.938c0-1.58 0-2.37.337-2.938a2.1 2.1 0 0 1 .552-.62C3.393 3 4.096 3 5.5 3M20 11.938v5.124c0 1.58 0 2.37-.337 2.938a2.1 2.1 0 0 1-.552.62c-.504.38-1.207.38-2.611.38s-2.107 0-2.611-.38a2.1 2.1 0 0 1-.552-.62C13 19.433 13 18.642 13 17.063V6.938c0-1.58 0-2.37.337-2.938M22 9l-6-6m6 0l-6 6",
|
|
47
|
+
color: "currentColor"
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
function A1() {
|
|
54
|
+
return /* @__PURE__ */ e(
|
|
55
|
+
"svg",
|
|
56
|
+
{
|
|
57
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
58
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
59
|
+
"aria-hidden": "true",
|
|
60
|
+
role: "img",
|
|
61
|
+
className: "richtext-w-4 richtext-h-4",
|
|
62
|
+
width: "1em",
|
|
63
|
+
height: "1em",
|
|
64
|
+
viewBox: "0 0 24 24",
|
|
65
|
+
children: /* @__PURE__ */ e(
|
|
66
|
+
"path",
|
|
67
|
+
{
|
|
68
|
+
fill: "none",
|
|
69
|
+
stroke: "currentColor",
|
|
70
|
+
strokeLinecap: "round",
|
|
71
|
+
strokeLinejoin: "round",
|
|
72
|
+
strokeWidth: "1.5",
|
|
73
|
+
d: "M21 18.5c0 1.404 0 2.107-.38 2.611a2.1 2.1 0 0 1-.62.552c-.567.337-1.358.337-2.937.337H6.938c-1.58 0-2.37 0-2.938-.337a2.1 2.1 0 0 1-.62-.552C3 20.607 3 19.904 3 18.5s0-2.107.38-2.611c.163-.218.374-.406.62-.552C4.567 15 5.357 15 6.938 15h10.125c1.58 0 2.37 0 2.937.337c.246.146.457.334.62.552c.38.504.38 1.207.38 2.611M12.063 4H6.937C5.358 4 4.568 4 4 4.337a2.1 2.1 0 0 0-.62.552C3 5.393 3 6.096 3 7.5s0 2.107.38 2.611c.163.218.374.406.62.552C4.567 11 5.357 11 6.938 11h10.125c1.58 0 2.37 0 2.937-.337M21 8l-6-6m6 0l-6 6",
|
|
74
|
+
color: "currentColor"
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
function W1(t) {
|
|
81
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
|
|
82
|
+
"path",
|
|
83
|
+
{
|
|
84
|
+
fill: "currentColor",
|
|
85
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 2-2V8zm4 18H6V4h7v5h5zm-.65-10l-2.1 9h-1.4l-1.8-6.79l-1.8 6.79h-1.4l-2.2-9h1.5l1.4 6.81l1.8-6.81h1.3l1.8 6.81l1.4-6.81z"
|
|
86
|
+
}
|
|
87
|
+
) });
|
|
88
|
+
}
|
|
89
|
+
function j1(t) {
|
|
90
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
|
|
91
|
+
"path",
|
|
92
|
+
{
|
|
93
|
+
fill: "currentColor",
|
|
94
|
+
d: "M21 22H3v-2h18zm0-18H3V2h18zm-11 9.7h4l-2-5.4zM11.2 6h1.7l4.7 12h-2l-.9-2.6H9.4L8.5 18h-2z"
|
|
95
|
+
}
|
|
96
|
+
) });
|
|
97
|
+
}
|
|
98
|
+
function R1(t) {
|
|
99
|
+
return /* @__PURE__ */ e(
|
|
100
|
+
"svg",
|
|
101
|
+
{
|
|
102
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
103
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
104
|
+
"aria-hidden": "true",
|
|
105
|
+
role: "img",
|
|
106
|
+
width: "1em",
|
|
107
|
+
height: "1em",
|
|
108
|
+
viewBox: "0 0 48 48",
|
|
109
|
+
...t,
|
|
110
|
+
children: /* @__PURE__ */ e(
|
|
111
|
+
"path",
|
|
112
|
+
{
|
|
113
|
+
fill: "currentColor",
|
|
114
|
+
stroke: "currentColor",
|
|
115
|
+
strokeLinejoin: "round",
|
|
116
|
+
strokeWidth: 4,
|
|
117
|
+
d: "M36 19L24 31L12 19z"
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
function E1(t) {
|
|
124
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M9 7v10h6v-2h-4V7z" }) });
|
|
125
|
+
}
|
|
126
|
+
function P1(t) {
|
|
127
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
|
|
128
|
+
"path",
|
|
129
|
+
{
|
|
130
|
+
fill: "currentColor",
|
|
131
|
+
d: "M9 7c-1.1 0-2 .9-2 2v8h2V9h2v7h2V9h2v8h2V9a2 2 0 0 0-2-2z"
|
|
132
|
+
}
|
|
133
|
+
) });
|
|
134
|
+
}
|
|
135
|
+
function y1(t) {
|
|
136
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
|
|
137
|
+
"path",
|
|
138
|
+
{
|
|
139
|
+
fill: "currentColor",
|
|
140
|
+
d: "M11 7c-1.1 0-2 .9-2 2v2a2 2 0 0 0 2 2h2v2H9v2h4c1.11 0 2-.89 2-2v-2a2 2 0 0 0-2-2h-2V9h4V7z"
|
|
141
|
+
}
|
|
142
|
+
) });
|
|
143
|
+
}
|
|
144
|
+
function D1() {
|
|
145
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e(
|
|
146
|
+
"path",
|
|
147
|
+
{
|
|
148
|
+
fill: "currentColor",
|
|
149
|
+
d: "M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6l1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6l-1.4-1.4z"
|
|
150
|
+
}
|
|
151
|
+
) });
|
|
152
|
+
}
|
|
153
|
+
function F1() {
|
|
154
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M14 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m-9 8h4m-2-2v4" }) });
|
|
155
|
+
}
|
|
156
|
+
function X1() {
|
|
157
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m9 8h4m-2-2v4" }) });
|
|
158
|
+
}
|
|
159
|
+
function U1() {
|
|
160
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M12 21v-4m0-4V9m0-4V3m-2 18h4M8 5v4h11l2-2l-2-2zm6 8v4H6l-2-2l2-2z" }) });
|
|
161
|
+
}
|
|
162
|
+
function b1() {
|
|
163
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M23.943 19.806a.2.2 0 0 0-.168-.034c-1.26-1.855-2.873-3.61-4.419-5.315l-.252-.284c-.001-.073-.067-.12-.134-.15l-.084-.084c-.05-.1-.169-.167-.286-.1c-.47.234-.907.585-1.327.919c-.554.434-1.109.87-1.63 1.354a5 5 0 0 0-.588.618c-.084.117-.017.217.084.267c-.37.368-.74.736-1.109 1.12a.2.2 0 0 0-.05.134c0 .05.033.1.067.117l.655.502v.016c.924.92 2.554 2.173 4.285 3.527c.251.201.52.402.773.602c.117.134.234.285.335.418c.05.066.169.084.236.033c.033.034.084.067.118.1a.24.24 0 0 0 .1.034a.15.15 0 0 0 .135-.066a.24.24 0 0 0 .033-.1c.017 0 .017.016.034.016a.2.2 0 0 0 .134-.05l3.058-3.327c.12-.116.014-.267 0-.267m-7.628-.134l-1.546-1.17l-.15-.1c-.035-.017-.068-.05-.102-.067l-.117-.1c.66-.66 1.33-1.308 2-1.956c-.488.484-1.463 1.906-1.261 2.373c.002 0 .018.042.067.084zm4.1 3.126l-1.277-.97a27 27 0 0 0-1.58-1.504c.69.518 1.277.97 1.361 1.053c.673.585.638.485 1.093.87l.554.4c-.074.103-.151.148-.151.151m.336.25l-.034-.016a1 1 0 0 0 .152-.117zM.588 3.476c.033.217.084.435.117.636c.201 1.103.403 2.106.772 2.858l.152.568c.05.217.134.485.219.552a67 67 0 0 0 3.578 2.942a.18.18 0 0 0 .219 0s0 .016.016.016a.15.15 0 0 0 .118.05a.2.2 0 0 0 .134-.05c1.798-1.989 3.142-3.627 4.1-4.998c.068-.066.084-.167.084-.25c.067-.067.118-.151.185-.201c.067-.067.067-.184 0-.235l-.017-.016c0-.033-.017-.084-.05-.1c-.42-.401-.722-.685-1.042-.986a94 94 0 0 1-2.352-2.273c-.017-.017-.034-.034-.067-.034c-.336-.117-1.025-.234-1.882-.385c-1.277-.216-3.008-.517-4.57-.986c0 0-.101 0-.118.017l-.05.05C.05.714.022.707 0 .718c.017.1.017.167.05.284c0 .033.068.301.068.334zm7.19 4.78l-.033.034a.036.036 0 0 1 .033-.034M6.553 2.238c.101.1.521.502.622.585c-.437-.2-1.529-.702-2.034-.869c.505.1 1.194.201 1.412.284M.79 1.403c.252.434.454 1.939.655 3.41c-.118-.469-.201-.936-.302-1.372C.992 2.673.84 1.988.638 1.386c.124 0 .152.021.152.017m-.286-.369c0-.016 0-.033-.017-.033c.085 0 .135.017.202.05c0 .006-.145-.017-.185-.017m23.17-.217c.017-.066-.336-.367-.219-.384c.253-.017.253-.401 0-.401c-.335.017-.688.1-1.008.15c-.587.117-1.192.234-1.78.367a80 80 0 0 0-3.949.937c-.403.117-.857.2-1.243.401c-.135.067-.118.2-.05.284c-.034.017-.051.017-.085.034c-.117.017-.218.034-.335.05c-.102.017-.152.1-.135.2c0 .017.017.05.017.067c-.706.936-1.496 1.923-2.353 2.976c-.84.969-1.73 1.989-2.62 3.042c-2.84 3.31-6.05 7.07-9.594 10.38a.16.16 0 0 0 0 .234c.016.016.033.033.05.033c-.05.05-.101.085-.152.134q-.05.05-.05.1a.4.4 0 0 0-.067.084c-.067.067-.067.184.017.234c.067.066.185.066.235-.017c.017-.017.017-.033.033-.033a.265.265 0 0 1 .37 0c.202.217.404.435.588.618l-.42-.35c-.067-.067-.184-.05-.234.016c-.068.066-.051.184.016.234l4.469 3.727c.034.034.067.034.118.034a.15.15 0 0 0 .117-.05l.101-.1c.017.016.05.016.067.016c.05 0 .084-.016.118-.05c6.049-6.05 10.922-10.614 16.5-14.693c.05-.033.067-.1.067-.15c.067 0 .118-.05.15-.117c1.026-3.125 1.228-5.9 1.295-7.27c0-.059.016-.038.016-.068c.017-.033.017-.05.017-.05a.98.98 0 0 0-.067-.619m-10.82 4.915c.268-.301.537-.619.806-.903c-1.73 2.273-4.603 5.767-8.67 9.929c2.773-3.059 5.562-6.218 7.864-9.026M5.14 23.466c-.016-.017-.016-.017 0-.017zm2.504-2.156c.135-.15.27-.284.42-.434c0 0 0 .016.017.016c-.224.198-.433.418-.437.418m.69-.668c.099-.1.14-.173.284-.318c.992-1.02 2.017-2.04 3.059-3.076l.016-.016c.252-.2.555-.418.824-.619a228 228 0 0 0-4.184 4.029M14.852 3.91c-.554.719-1.176 1.671-1.697 2.423c-1.646 2.374-6.94 8.174-7.057 8.274a1190 1190 0 0 1-4.839 4.597l-.1.1c-.085-.1-.085-.25.016-.334C8.652 11.966 13.19 6.133 15.021 3.576c-.05.116-.084.216-.168.334zm2.906 3.427c-.671-.386-.99-.987-.806-1.572l.05-.2a.8.8 0 0 1 .085-.167a1.9 1.9 0 0 1 .756-.703c.016 0 .033 0 .05-.016c-.017-.034-.017-.084-.017-.134c.017-.1.085-.167.202-.167c.202 0 .824.184 1.059.384c.067.05.134.117.202.184c.084.1.218.268.285.401c.034.017.067.184.118.268c.033.134.067.284.05.418c-.017.016 0 .116-.017.116a1.6 1.6 0 0 1-.218.619c-.03.03.006.012-.05.067a1.2 1.2 0 0 1-.32.334a1.49 1.49 0 0 1-1.26.234a2 2 0 0 0-.169-.066m4.37 1.403c0 .017-.017.05 0 .067c-.034 0-.05.017-.085.034a110 110 0 0 0-3.915 3.025c1.11-.986 2.218-1.989 3.378-2.975c.336-.301.571-.686.638-1.12l.168-1.003v-.033c.085-.201.404-.118.353.1c-.004-.001-.173.795-.537 1.905" }) });
|
|
164
|
+
}
|
|
165
|
+
function Z1() {
|
|
166
|
+
return /* @__PURE__ */ r("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 32 32", children: [
|
|
167
|
+
/* @__PURE__ */ e("path", { fill: "currentColor", d: "M30 18v-2h-6v10h2v-4h3v-2h-3v-2zm-11 8h-4V16h4a3.003 3.003 0 0 1 3 3v4a3.003 3.003 0 0 1-3 3m-2-2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2zm-6-8H6v10h2v-3h3a2.003 2.003 0 0 0 2-2v-3a2 2 0 0 0-2-2m-3 5v-3h3l.001 3z" }),
|
|
168
|
+
/* @__PURE__ */ e("path", { fill: "currentColor", d: "M22 14v-4a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 14 2H4a2.006 2.006 0 0 0-2 2v24a2 2 0 0 0 2 2h16v-2H4V4h8v6a2.006 2.006 0 0 0 2 2h6v2Zm-8-4V4.4l5.6 5.6Z" })
|
|
169
|
+
] });
|
|
170
|
+
}
|
|
171
|
+
function G1() {
|
|
172
|
+
return /* @__PURE__ */ r(
|
|
173
|
+
"svg",
|
|
174
|
+
{
|
|
175
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
176
|
+
width: "1em",
|
|
177
|
+
height: "1em",
|
|
178
|
+
className: "icon",
|
|
179
|
+
viewBox: "0 0 1024 1024",
|
|
180
|
+
children: [
|
|
181
|
+
/* @__PURE__ */ e(
|
|
182
|
+
"path",
|
|
183
|
+
{
|
|
184
|
+
fill: "currentColor",
|
|
185
|
+
d: "M679.253 402.364 618.77 561.015l-60.348-158.651a30.04 30.04 0 0 0-30.447-18.637 29.76 29.76 0 0 0-30.447 18.637l-60.416 158.651-60.416-158.651a30.515 30.515 0 0 0-38.843-17.272 28.945 28.945 0 0 0-17.954 37.547l88.815 233.267c4.369 11.469 15.7 19.115 28.398 19.115a30.31 30.31 0 0 0 28.468-19.115l62.395-163.908 62.396 163.84c4.437 11.605 15.701 19.183 28.4 19.183a30.31 30.31 0 0 0 28.466-19.115l88.747-233.267a28.945 28.945 0 0 0-17.886-37.547 30.447 30.447 0 0 0-38.912 17.272zm219.478 395.605-51.883-29.218c-28.672-16.18-52.224-3.072-52.224 29.082v.273H643.209a29.833 29.833 0 0 0-30.31 29.354c0 16.18 13.584 29.218 30.31 29.218h151.825c1.092 30.516 24.03 43.077 52.224 27.648l51.063-27.989c29.013-15.906 29.15-42.189.41-58.368"
|
|
186
|
+
}
|
|
187
|
+
),
|
|
188
|
+
/* @__PURE__ */ e(
|
|
189
|
+
"path",
|
|
190
|
+
{
|
|
191
|
+
fill: "currentColor",
|
|
192
|
+
d: "m810.667 913.135-.478.068H201.796c-19.865 0-36.727-11.673-36.727-25.6v-618.36h154.965c51.268 0 92.911-39.39 92.911-87.858v-87.86H810.19c19.797 0 36.522 11.742 36.522 25.669V739.26h61.987V119.262c0-46.421-44.169-84.241-98.51-84.241H328.364l-225.28 194.56v658.09c0 46.285 44.236 84.105 98.713 84.105H810.19c43.759 0 80.554-24.713 93.32-58.573h-92.842zM350.89 94.89v86.562c0 16.11-13.858 29.286-30.925 29.286H216.815L350.959 94.891z"
|
|
193
|
+
}
|
|
194
|
+
)
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
function N1() {
|
|
200
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ r("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", color: "currentColor", children: [
|
|
201
|
+
/* @__PURE__ */ e("path", { d: "M14.86 22h-4.312c-3.291 0-4.937 0-6.08-.798a4.2 4.2 0 0 1-.863-.805c-.855-1.066-.855-2.6-.855-5.67v-2.545c0-2.963 0-4.445.473-5.628c.761-1.903 2.37-3.403 4.41-4.113C8.9 2 10.49 2 13.667 2c1.816 0 2.723 0 3.448.252c1.166.406 2.085 1.263 2.52 2.35c.27.676.27 1.523.27 3.216V10" }),
|
|
202
|
+
/* @__PURE__ */ e("path", { d: "M2.75 12c0-1.84 1.506-3.333 3.364-3.333c.672 0 1.464.116 2.117-.057a1.67 1.67 0 0 0 1.19-1.179c.174-.647.057-1.432.057-2.098C9.478 3.493 10.984 2 12.84 2m.002 16h2.523m-4.949-4.15c-.126-.8-.281-.801-1.61-.85h-1.01c-.557 0-1.009.448-1.009 1v3c0 .552.452 1 1.01 1h1.816c.39 0 .803-.313.803-.7v-1.1c0-.11-.113-.304-.224-.304H9.068M12.842 13h1.261m0 0h1.262m-1.262 0v4.875M21.251 13h-2.523c-.557 0-1.009.448-1.009 1v1.5m0 0V18m0-2.5h2.523" })
|
|
203
|
+
] }) });
|
|
204
|
+
}
|
|
205
|
+
function O1() {
|
|
206
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M6.5 3a.75.75 0 0 1 .697.471l3 7.5a.75.75 0 0 1-1.393.557L7.992 9.5H5.008l-.811 2.028a.75.75 0 0 1-1.393-.556l3-7.5A.75.75 0 0 1 6.5 3m0 2.77L5.608 8h1.784zm8.28-1.55a.75.75 0 1 0-1.06 1.06l.72.72h-3.69a.75.75 0 0 0 0 1.5h3.69l-.72.72a.75.75 0 0 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06zm0 7.5a.75.75 0 1 0-1.06 1.06l.72.72H3.75a.75.75 0 0 0 0 1.5h10.69l-.72.72a.75.75 0 1 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06z" }) });
|
|
207
|
+
}
|
|
208
|
+
function q1() {
|
|
209
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 48 48", children: /* @__PURE__ */ r("g", { fill: "none", stroke: "currentColor", strokeWidth: "4", children: [
|
|
210
|
+
/* @__PURE__ */ e("circle", { cx: "10", cy: "24", r: "4" }),
|
|
211
|
+
/* @__PURE__ */ e("circle", { cx: "38", cy: "10", r: "4" }),
|
|
212
|
+
/* @__PURE__ */ e("circle", { cx: "38", cy: "24", r: "4" }),
|
|
213
|
+
/* @__PURE__ */ e("circle", { cx: "38", cy: "38", r: "4" }),
|
|
214
|
+
/* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M34 38H22V10h12M14 24h20" })
|
|
215
|
+
] }) });
|
|
216
|
+
}
|
|
217
|
+
function J1() {
|
|
218
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M13.5 3a.75.75 0 0 0-.697.471l-3 7.5a.75.75 0 0 0 1.393.557l.812-2.028h2.984l.811 2.028a.75.75 0 0 0 1.393-.556l-3-7.5A.75.75 0 0 0 13.5 3m0 2.77L14.392 8h-1.784zM5.22 4.22a.75.75 0 0 1 1.06 1.06L5.56 6h3.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 0 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06zm0 7.5a.75.75 0 0 1 1.06 1.06l-.72.72h10.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 1 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06z" }) });
|
|
219
|
+
}
|
|
220
|
+
function Q1() {
|
|
221
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "m3 21l7.548-7.548M21 3l-7.548 7.548m0 0L8 3H3l7.548 10.452m2.904-2.904L21 21h-5l-5.452-7.548", color: "currentColor" }) });
|
|
222
|
+
}
|
|
223
|
+
function K1() {
|
|
224
|
+
return /* @__PURE__ */ e(
|
|
225
|
+
"svg",
|
|
226
|
+
{
|
|
227
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
228
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
229
|
+
"aria-hidden": "true",
|
|
230
|
+
role: "img",
|
|
231
|
+
width: "1em",
|
|
232
|
+
height: "1em",
|
|
233
|
+
viewBox: "0 0 24 24",
|
|
234
|
+
children: /* @__PURE__ */ e(
|
|
235
|
+
"path",
|
|
236
|
+
{
|
|
237
|
+
fill: "currentColor",
|
|
238
|
+
d: "M14 2H6a2 2 0 0 0-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 2-2V8zm4 18H6V4h7v5h5zm-.65-10l-2.1 9h-1.4l-1.8-6.79l-1.8 6.79h-1.4l-2.2-9h1.5l1.4 6.81l1.8-6.81h1.3l1.8 6.81l1.4-6.81z"
|
|
239
|
+
}
|
|
240
|
+
)
|
|
241
|
+
}
|
|
242
|
+
);
|
|
243
|
+
}
|
|
244
|
+
function Y1() {
|
|
245
|
+
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ r("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", children: [
|
|
246
|
+
/* @__PURE__ */ e("path", { d: "M18 11c0-.818 0-1.57-.152-1.937s-.441-.657-1.02-1.235l-4.736-4.736c-.499-.499-.748-.748-1.058-.896a2 2 0 0 0-.197-.082C10.514 2 10.161 2 9.456 2c-3.245 0-4.868 0-5.967.886a4 4 0 0 0-.603.603C2 4.59 2 6.211 2 9.456V14c0 3.771 0 5.657 1.172 6.828S6.229 22 10 22h8M11 2.5V3c0 2.828 0 4.243.879 5.121C12.757 9 14.172 9 17 9h.5" }),
|
|
247
|
+
/* @__PURE__ */ e("path", { d: "M5 14v2.5M5 19v-2.5M8 14v2.5M8 19v-2.5m-3 0h3m2-2.5h1.25m1.25 0h-1.25m0 0v5m3.25 0v-5l1.75 2.5L18 14v5m2-5v5h2" })
|
|
248
|
+
] }) });
|
|
249
|
+
}
|
|
250
|
+
const t0 = {
|
|
251
|
+
Bold: B1,
|
|
252
|
+
LoaderCircle: V1,
|
|
253
|
+
Italic: H1,
|
|
254
|
+
Underline: z1,
|
|
255
|
+
Quote: L1,
|
|
256
|
+
TextQuote: S1,
|
|
257
|
+
Strikethrough: M1,
|
|
258
|
+
Minus: k1,
|
|
259
|
+
Eraser: f1,
|
|
260
|
+
PaintRoller: C1,
|
|
261
|
+
Redo2: x1,
|
|
262
|
+
Undo2: p1,
|
|
263
|
+
AlignCenter: h,
|
|
264
|
+
AlignJustify: i,
|
|
265
|
+
AlignLeft: l,
|
|
266
|
+
AlignRight: o,
|
|
267
|
+
ChevronDown: u1,
|
|
268
|
+
Subscript: g1,
|
|
269
|
+
Superscript: v1,
|
|
270
|
+
Code: d1,
|
|
271
|
+
Code2: s1,
|
|
272
|
+
Type: w1,
|
|
273
|
+
IndentIncrease: m1,
|
|
274
|
+
IndentDecrease: a1,
|
|
275
|
+
List: h1,
|
|
276
|
+
ListOrdered: i1,
|
|
277
|
+
ListTodo: l1,
|
|
278
|
+
Link: o1,
|
|
279
|
+
ImageUp: c1,
|
|
280
|
+
Video: n1,
|
|
281
|
+
Maximize: r1,
|
|
282
|
+
Minimize: t1,
|
|
283
|
+
Table: e1,
|
|
284
|
+
Sparkles: $,
|
|
285
|
+
Pencil: _,
|
|
286
|
+
Unlink: Y,
|
|
287
|
+
BetweenHorizonalEnd: K,
|
|
288
|
+
BetweenHorizonalStart: Q,
|
|
289
|
+
BetweenVerticalStart: J,
|
|
290
|
+
BetweenVerticalEnd: q,
|
|
291
|
+
TableCellsMerge: O,
|
|
292
|
+
TableCellsSplit: N,
|
|
293
|
+
Trash2: G,
|
|
294
|
+
Trash: Z,
|
|
295
|
+
Replace: n,
|
|
296
|
+
ChevronsUpDown: b,
|
|
297
|
+
LineHeight: j1,
|
|
298
|
+
Word: W1,
|
|
299
|
+
Heading1: U,
|
|
300
|
+
Heading2: X,
|
|
301
|
+
Heading3: F,
|
|
302
|
+
Heading4: D,
|
|
303
|
+
Heading5: y,
|
|
304
|
+
Heading6: P,
|
|
305
|
+
Columns2: c,
|
|
306
|
+
Columns3: E,
|
|
307
|
+
Columns4: R,
|
|
308
|
+
Plus: j,
|
|
309
|
+
Grip: W,
|
|
310
|
+
Copy: A,
|
|
311
|
+
Clipboard: T,
|
|
312
|
+
PanelLeft: S,
|
|
313
|
+
PanelRight: I,
|
|
314
|
+
Columns: c,
|
|
315
|
+
Iframe: B,
|
|
316
|
+
MenuDown: R1,
|
|
317
|
+
SizeS: y1,
|
|
318
|
+
SizeM: P1,
|
|
319
|
+
SizeL: E1,
|
|
320
|
+
AspectRatio: I1,
|
|
321
|
+
Emoji: V,
|
|
322
|
+
DeleteColumn: T1,
|
|
323
|
+
DeleteRow: A1,
|
|
324
|
+
SearchAndReplace: n,
|
|
325
|
+
EmojiIcon: H,
|
|
326
|
+
KatexIcon: z,
|
|
327
|
+
ExportPdf: Z1,
|
|
328
|
+
ExportWord: G1,
|
|
329
|
+
ImportWord: K1,
|
|
330
|
+
ColumnAddLeft: F1,
|
|
331
|
+
ColumnAddRight: X1,
|
|
332
|
+
BookMarked: L,
|
|
333
|
+
Excalidraw: b1,
|
|
334
|
+
ZoomIn: M,
|
|
335
|
+
ZoomOut: k,
|
|
336
|
+
Settings: f,
|
|
337
|
+
Eye: C,
|
|
338
|
+
TextDirection: U1,
|
|
339
|
+
LeftToRight: O1,
|
|
340
|
+
RightToLeft: J1,
|
|
341
|
+
Attachment: x,
|
|
342
|
+
GifIcon: N1,
|
|
343
|
+
ChevronUp: p,
|
|
344
|
+
Crop: u,
|
|
345
|
+
Mermaid: q1,
|
|
346
|
+
Twitter: Q1,
|
|
347
|
+
CodeView: D1,
|
|
348
|
+
FlipX: g,
|
|
349
|
+
FlipY: v,
|
|
350
|
+
PencilRuler: d,
|
|
351
|
+
WrapText: s,
|
|
352
|
+
Loader: w,
|
|
353
|
+
X: m,
|
|
354
|
+
Html: Y1,
|
|
355
|
+
ExternalLink: a
|
|
356
|
+
};
|
|
357
|
+
export {
|
|
358
|
+
G1 as E,
|
|
359
|
+
R1 as M,
|
|
360
|
+
Z1 as a,
|
|
361
|
+
t0 as i
|
|
362
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("@radix-ui/react-icons"),e=require("lucide-react"),t=require("react/jsx-runtime");function c(r){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:t.jsx("path",{fill:"currentColor",d:"M19 12h-2v3h-3v2h5zM7 9h3V7H5v5h2zm14-6H3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m0 16H3V5h18z"})})}function h(r){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:t.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 15h15m0 4H6m9-8h6m0-4h-6M9 9h1a1 1 0 1 1-1 1V7.5a2 2 0 0 1 2-2M3 9h1a1 1 0 1 1-1 1V7.5a2 2 0 0 1 2-2"})})}function s(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",className:"richtext-w-4 richtext-h-4",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M5.5 3c1.404 0 2.107 0 2.611.38c.219.164.406.375.552.62C9 4.568 9 5.358 9 6.938v10.125c0 1.58 0 2.37-.337 2.937a2.1 2.1 0 0 1-.552.621c-.504.38-1.207.38-2.611.38s-2.107 0-2.611-.38a2.1 2.1 0 0 1-.552-.62C2 19.432 2 18.642 2 17.062V6.938c0-1.58 0-2.37.337-2.938a2.1 2.1 0 0 1 .552-.62C3.393 3 4.096 3 5.5 3M20 11.938v5.124c0 1.58 0 2.37-.337 2.938a2.1 2.1 0 0 1-.552.62c-.504.38-1.207.38-2.611.38s-2.107 0-2.611-.38a2.1 2.1 0 0 1-.552-.62C13 19.433 13 18.642 13 17.063V6.938c0-1.58 0-2.37.337-2.938M22 9l-6-6m6 0l-6 6",color:"currentColor"})})}function a(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",className:"richtext-w-4 richtext-h-4",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M21 18.5c0 1.404 0 2.107-.38 2.611a2.1 2.1 0 0 1-.62.552c-.567.337-1.358.337-2.937.337H6.938c-1.58 0-2.37 0-2.938-.337a2.1 2.1 0 0 1-.62-.552C3 20.607 3 19.904 3 18.5s0-2.107.38-2.611c.163-.218.374-.406.62-.552C4.567 15 5.357 15 6.938 15h10.125c1.58 0 2.37 0 2.937.337c.246.146.457.334.62.552c.38.504.38 1.207.38 2.611M12.063 4H6.937C5.358 4 4.568 4 4 4.337a2.1 2.1 0 0 0-.62.552C3 5.393 3 6.096 3 7.5s0 2.107.38 2.611c.163.218.374.406.62.552C4.567 11 5.357 11 6.938 11h10.125c1.58 0 2.37 0 2.937-.337M21 8l-6-6m6 0l-6 6",color:"currentColor"})})}function d(r){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:t.jsx("path",{fill:"currentColor",d:"M14 2H6a2 2 0 0 0-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 2-2V8zm4 18H6V4h7v5h5zm-.65-10l-2.1 9h-1.4l-1.8-6.79l-1.8 6.79h-1.4l-2.2-9h1.5l1.4 6.81l1.8-6.81h1.3l1.8 6.81l1.4-6.81z"})})}function w(r){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:t.jsx("path",{fill:"currentColor",d:"M21 22H3v-2h18zm0-18H3V2h18zm-11 9.7h4l-2-5.4zM11.2 6h1.7l4.7 12h-2l-.9-2.6H9.4L8.5 18h-2z"})})}function o(r){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 48 48",...r,children:t.jsx("path",{fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M36 19L24 31L12 19z"})})}function m(r){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:t.jsx("path",{fill:"currentColor",d:"M9 7v10h6v-2h-4V7z"})})}function u(r){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:t.jsx("path",{fill:"currentColor",d:"M9 7c-1.1 0-2 .9-2 2v8h2V9h2v7h2V9h2v8h2V9a2 2 0 0 0-2-2z"})})}function g(r){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...r,children:t.jsx("path",{fill:"currentColor",d:"M11 7c-1.1 0-2 .9-2 2v2a2 2 0 0 0 2 2h2v2H9v2h4c1.11 0 2-.89 2-2v-2a2 2 0 0 0-2-2h-2V9h4V7z"})})}function x(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("path",{fill:"currentColor",d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6l1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6l-1.4-1.4z"})})}function v(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m-9 8h4m-2-2v4"})})}function p(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m9 8h4m-2-2v4"})})}function C(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 21v-4m0-4V9m0-4V3m-2 18h4M8 5v4h11l2-2l-2-2zm6 8v4H6l-2-2l2-2z"})})}function j(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("path",{fill:"currentColor",d:"M23.943 19.806a.2.2 0 0 0-.168-.034c-1.26-1.855-2.873-3.61-4.419-5.315l-.252-.284c-.001-.073-.067-.12-.134-.15l-.084-.084c-.05-.1-.169-.167-.286-.1c-.47.234-.907.585-1.327.919c-.554.434-1.109.87-1.63 1.354a5 5 0 0 0-.588.618c-.084.117-.017.217.084.267c-.37.368-.74.736-1.109 1.12a.2.2 0 0 0-.05.134c0 .05.033.1.067.117l.655.502v.016c.924.92 2.554 2.173 4.285 3.527c.251.201.52.402.773.602c.117.134.234.285.335.418c.05.066.169.084.236.033c.033.034.084.067.118.1a.24.24 0 0 0 .1.034a.15.15 0 0 0 .135-.066a.24.24 0 0 0 .033-.1c.017 0 .017.016.034.016a.2.2 0 0 0 .134-.05l3.058-3.327c.12-.116.014-.267 0-.267m-7.628-.134l-1.546-1.17l-.15-.1c-.035-.017-.068-.05-.102-.067l-.117-.1c.66-.66 1.33-1.308 2-1.956c-.488.484-1.463 1.906-1.261 2.373c.002 0 .018.042.067.084zm4.1 3.126l-1.277-.97a27 27 0 0 0-1.58-1.504c.69.518 1.277.97 1.361 1.053c.673.585.638.485 1.093.87l.554.4c-.074.103-.151.148-.151.151m.336.25l-.034-.016a1 1 0 0 0 .152-.117zM.588 3.476c.033.217.084.435.117.636c.201 1.103.403 2.106.772 2.858l.152.568c.05.217.134.485.219.552a67 67 0 0 0 3.578 2.942a.18.18 0 0 0 .219 0s0 .016.016.016a.15.15 0 0 0 .118.05a.2.2 0 0 0 .134-.05c1.798-1.989 3.142-3.627 4.1-4.998c.068-.066.084-.167.084-.25c.067-.067.118-.151.185-.201c.067-.067.067-.184 0-.235l-.017-.016c0-.033-.017-.084-.05-.1c-.42-.401-.722-.685-1.042-.986a94 94 0 0 1-2.352-2.273c-.017-.017-.034-.034-.067-.034c-.336-.117-1.025-.234-1.882-.385c-1.277-.216-3.008-.517-4.57-.986c0 0-.101 0-.118.017l-.05.05C.05.714.022.707 0 .718c.017.1.017.167.05.284c0 .033.068.301.068.334zm7.19 4.78l-.033.034a.036.036 0 0 1 .033-.034M6.553 2.238c.101.1.521.502.622.585c-.437-.2-1.529-.702-2.034-.869c.505.1 1.194.201 1.412.284M.79 1.403c.252.434.454 1.939.655 3.41c-.118-.469-.201-.936-.302-1.372C.992 2.673.84 1.988.638 1.386c.124 0 .152.021.152.017m-.286-.369c0-.016 0-.033-.017-.033c.085 0 .135.017.202.05c0 .006-.145-.017-.185-.017m23.17-.217c.017-.066-.336-.367-.219-.384c.253-.017.253-.401 0-.401c-.335.017-.688.1-1.008.15c-.587.117-1.192.234-1.78.367a80 80 0 0 0-3.949.937c-.403.117-.857.2-1.243.401c-.135.067-.118.2-.05.284c-.034.017-.051.017-.085.034c-.117.017-.218.034-.335.05c-.102.017-.152.1-.135.2c0 .017.017.05.017.067c-.706.936-1.496 1.923-2.353 2.976c-.84.969-1.73 1.989-2.62 3.042c-2.84 3.31-6.05 7.07-9.594 10.38a.16.16 0 0 0 0 .234c.016.016.033.033.05.033c-.05.05-.101.085-.152.134q-.05.05-.05.1a.4.4 0 0 0-.067.084c-.067.067-.067.184.017.234c.067.066.185.066.235-.017c.017-.017.017-.033.033-.033a.265.265 0 0 1 .37 0c.202.217.404.435.588.618l-.42-.35c-.067-.067-.184-.05-.234.016c-.068.066-.051.184.016.234l4.469 3.727c.034.034.067.034.118.034a.15.15 0 0 0 .117-.05l.101-.1c.017.016.05.016.067.016c.05 0 .084-.016.118-.05c6.049-6.05 10.922-10.614 16.5-14.693c.05-.033.067-.1.067-.15c.067 0 .118-.05.15-.117c1.026-3.125 1.228-5.9 1.295-7.27c0-.059.016-.038.016-.068c.017-.033.017-.05.017-.05a.98.98 0 0 0-.067-.619m-10.82 4.915c.268-.301.537-.619.806-.903c-1.73 2.273-4.603 5.767-8.67 9.929c2.773-3.059 5.562-6.218 7.864-9.026M5.14 23.466c-.016-.017-.016-.017 0-.017zm2.504-2.156c.135-.15.27-.284.42-.434c0 0 0 .016.017.016c-.224.198-.433.418-.437.418m.69-.668c.099-.1.14-.173.284-.318c.992-1.02 2.017-2.04 3.059-3.076l.016-.016c.252-.2.555-.418.824-.619a228 228 0 0 0-4.184 4.029M14.852 3.91c-.554.719-1.176 1.671-1.697 2.423c-1.646 2.374-6.94 8.174-7.057 8.274a1190 1190 0 0 1-4.839 4.597l-.1.1c-.085-.1-.085-.25.016-.334C8.652 11.966 13.19 6.133 15.021 3.576c-.05.116-.084.216-.168.334zm2.906 3.427c-.671-.386-.99-.987-.806-1.572l.05-.2a.8.8 0 0 1 .085-.167a1.9 1.9 0 0 1 .756-.703c.016 0 .033 0 .05-.016c-.017-.034-.017-.084-.017-.134c.017-.1.085-.167.202-.167c.202 0 .824.184 1.059.384c.067.05.134.117.202.184c.084.1.218.268.285.401c.034.017.067.184.118.268c.033.134.067.284.05.418c-.017.016 0 .116-.017.116a1.6 1.6 0 0 1-.218.619c-.03.03.006.012-.05.067a1.2 1.2 0 0 1-.32.334a1.49 1.49 0 0 1-1.26.234a2 2 0 0 0-.169-.066m4.37 1.403c0 .017-.017.05 0 .067c-.034 0-.05.017-.085.034a110 110 0 0 0-3.915 3.025c1.11-.986 2.218-1.989 3.378-2.975c.336-.301.571-.686.638-1.12l.168-1.003v-.033c.085-.201.404-.118.353.1c-.004-.001-.173.795-.537 1.905"})})}function i(){return t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:[t.jsx("path",{fill:"currentColor",d:"M30 18v-2h-6v10h2v-4h3v-2h-3v-2zm-11 8h-4V16h4a3.003 3.003 0 0 1 3 3v4a3.003 3.003 0 0 1-3 3m-2-2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2zm-6-8H6v10h2v-3h3a2.003 2.003 0 0 0 2-2v-3a2 2 0 0 0-2-2m-3 5v-3h3l.001 3z"}),t.jsx("path",{fill:"currentColor",d:"M22 14v-4a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 14 2H4a2.006 2.006 0 0 0-2 2v24a2 2 0 0 0 2 2h16v-2H4V4h8v6a2.006 2.006 0 0 0 2 2h6v2Zm-8-4V4.4l5.6 5.6Z"})]})}function l(){return t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",className:"icon",viewBox:"0 0 1024 1024",children:[t.jsx("path",{fill:"currentColor",d:"M679.253 402.364 618.77 561.015l-60.348-158.651a30.04 30.04 0 0 0-30.447-18.637 29.76 29.76 0 0 0-30.447 18.637l-60.416 158.651-60.416-158.651a30.515 30.515 0 0 0-38.843-17.272 28.945 28.945 0 0 0-17.954 37.547l88.815 233.267c4.369 11.469 15.7 19.115 28.398 19.115a30.31 30.31 0 0 0 28.468-19.115l62.395-163.908 62.396 163.84c4.437 11.605 15.701 19.183 28.4 19.183a30.31 30.31 0 0 0 28.466-19.115l88.747-233.267a28.945 28.945 0 0 0-17.886-37.547 30.447 30.447 0 0 0-38.912 17.272zm219.478 395.605-51.883-29.218c-28.672-16.18-52.224-3.072-52.224 29.082v.273H643.209a29.833 29.833 0 0 0-30.31 29.354c0 16.18 13.584 29.218 30.31 29.218h151.825c1.092 30.516 24.03 43.077 52.224 27.648l51.063-27.989c29.013-15.906 29.15-42.189.41-58.368"}),t.jsx("path",{fill:"currentColor",d:"m810.667 913.135-.478.068H201.796c-19.865 0-36.727-11.673-36.727-25.6v-618.36h154.965c51.268 0 92.911-39.39 92.911-87.858v-87.86H810.19c19.797 0 36.522 11.742 36.522 25.669V739.26h61.987V119.262c0-46.421-44.169-84.241-98.51-84.241H328.364l-225.28 194.56v658.09c0 46.285 44.236 84.105 98.713 84.105H810.19c43.759 0 80.554-24.713 93.32-58.573h-92.842zM350.89 94.89v86.562c0 16.11-13.858 29.286-30.925 29.286H216.815L350.959 94.891z"})]})}function k(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",color:"currentColor",children:[t.jsx("path",{d:"M14.86 22h-4.312c-3.291 0-4.937 0-6.08-.798a4.2 4.2 0 0 1-.863-.805c-.855-1.066-.855-2.6-.855-5.67v-2.545c0-2.963 0-4.445.473-5.628c.761-1.903 2.37-3.403 4.41-4.113C8.9 2 10.49 2 13.667 2c1.816 0 2.723 0 3.448.252c1.166.406 2.085 1.263 2.52 2.35c.27.676.27 1.523.27 3.216V10"}),t.jsx("path",{d:"M2.75 12c0-1.84 1.506-3.333 3.364-3.333c.672 0 1.464.116 2.117-.057a1.67 1.67 0 0 0 1.19-1.179c.174-.647.057-1.432.057-2.098C9.478 3.493 10.984 2 12.84 2m.002 16h2.523m-4.949-4.15c-.126-.8-.281-.801-1.61-.85h-1.01c-.557 0-1.009.448-1.009 1v3c0 .552.452 1 1.01 1h1.816c.39 0 .803-.313.803-.7v-1.1c0-.11-.113-.304-.224-.304H9.068M12.842 13h1.261m0 0h1.262m-1.262 0v4.875M21.251 13h-2.523c-.557 0-1.009.448-1.009 1v1.5m0 0V18m0-2.5h2.523"})]})})}function f(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",children:t.jsx("path",{fill:"currentColor",d:"M6.5 3a.75.75 0 0 1 .697.471l3 7.5a.75.75 0 0 1-1.393.557L7.992 9.5H5.008l-.811 2.028a.75.75 0 0 1-1.393-.556l3-7.5A.75.75 0 0 1 6.5 3m0 2.77L5.608 8h1.784zm8.28-1.55a.75.75 0 1 0-1.06 1.06l.72.72h-3.69a.75.75 0 0 0 0 1.5h3.69l-.72.72a.75.75 0 0 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06zm0 7.5a.75.75 0 1 0-1.06 1.06l.72.72H3.75a.75.75 0 0 0 0 1.5h10.69l-.72.72a.75.75 0 1 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06z"})})}function M(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 48 48",children:t.jsxs("g",{fill:"none",stroke:"currentColor",strokeWidth:"4",children:[t.jsx("circle",{cx:"10",cy:"24",r:"4"}),t.jsx("circle",{cx:"38",cy:"10",r:"4"}),t.jsx("circle",{cx:"38",cy:"24",r:"4"}),t.jsx("circle",{cx:"38",cy:"38",r:"4"}),t.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M34 38H22V10h12M14 24h20"})]})})}function L(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",children:t.jsx("path",{fill:"currentColor",d:"M13.5 3a.75.75 0 0 0-.697.471l-3 7.5a.75.75 0 0 0 1.393.557l.812-2.028h2.984l.811 2.028a.75.75 0 0 0 1.393-.556l-3-7.5A.75.75 0 0 0 13.5 3m0 2.77L14.392 8h-1.784zM5.22 4.22a.75.75 0 0 1 1.06 1.06L5.56 6h3.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 0 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06zm0 7.5a.75.75 0 0 1 1.06 1.06l-.72.72h10.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 1 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06z"})})}function H(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"m3 21l7.548-7.548M21 3l-7.548 7.548m0 0L8 3H3l7.548 10.452m2.904-2.904L21 21h-5l-5.452-7.548",color:"currentColor"})})}function z(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsx("path",{fill:"currentColor",d:"M14 2H6a2 2 0 0 0-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 2-2V8zm4 18H6V4h7v5h5zm-.65-10l-2.1 9h-1.4l-1.8-6.79l-1.8 6.79h-1.4l-2.2-9h1.5l1.4 6.81l1.8-6.81h1.3l1.8 6.81l1.4-6.81z"})})}function V(){return t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:t.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[t.jsx("path",{d:"M18 11c0-.818 0-1.57-.152-1.937s-.441-.657-1.02-1.235l-4.736-4.736c-.499-.499-.748-.748-1.058-.896a2 2 0 0 0-.197-.082C10.514 2 10.161 2 9.456 2c-3.245 0-4.868 0-5.967.886a4 4 0 0 0-.603.603C2 4.59 2 6.211 2 9.456V14c0 3.771 0 5.657 1.172 6.828S6.229 22 10 22h8M11 2.5V3c0 2.828 0 4.243.879 5.121C12.757 9 14.172 9 17 9h.5"}),t.jsx("path",{d:"M5 14v2.5M5 19v-2.5M8 14v2.5M8 19v-2.5m-3 0h3m2-2.5h1.25m1.25 0h-1.25m0 0v5m3.25 0v-5l1.75 2.5L18 14v5m2-5v5h2"})]})})}const B={Bold:e.Bold,LoaderCircle:e.LoaderCircle,Italic:e.Italic,Underline:e.Underline,Quote:e.Quote,TextQuote:h,Strikethrough:e.Strikethrough,Minus:e.Minus,Eraser:e.Eraser,PaintRoller:e.PaintRoller,Redo2:e.Redo2,Undo2:e.Undo2,AlignCenter:n.TextAlignCenterIcon,AlignJustify:n.TextAlignJustifyIcon,AlignLeft:n.TextAlignLeftIcon,AlignRight:n.TextAlignRightIcon,ChevronDown:e.ChevronDown,Subscript:e.Subscript,Superscript:e.Superscript,Code:e.Code,Code2:e.CodeXml,Type:e.Type,IndentIncrease:e.IndentIncrease,IndentDecrease:e.IndentDecrease,List:e.List,ListOrdered:e.ListOrdered,ListTodo:e.ListTodo,Link:e.Link,ImageUp:e.ImageUp,Video:e.Video,Maximize:e.Maximize,Minimize:e.Minimize,Table:e.Table,Sparkles:e.Sparkles,Pencil:e.Pencil,Unlink:e.Unlink,BetweenHorizonalEnd:e.BetweenHorizonalEnd,BetweenHorizonalStart:e.BetweenHorizonalStart,BetweenVerticalStart:e.BetweenVerticalStart,BetweenVerticalEnd:e.BetweenVerticalEnd,TableCellsMerge:e.TableCellsMerge,TableCellsSplit:e.TableCellsSplit,Trash2:e.Trash2,Trash:e.Trash,Replace:e.Replace,ChevronsUpDown:e.ChevronsUpDown,LineHeight:w,Word:d,Heading1:e.Heading1,Heading2:e.Heading2,Heading3:e.Heading3,Heading4:e.Heading4,Heading5:e.Heading5,Heading6:e.Heading6,Columns2:e.Columns2,Columns3:e.Columns3,Columns4:e.Columns4,Plus:e.Plus,Grip:e.GripVertical,Copy:e.Copy,Clipboard:e.Clipboard,PanelLeft:e.PanelLeft,PanelRight:e.PanelRight,Columns:e.Columns2,Iframe:e.Frame,MenuDown:o,SizeS:g,SizeM:u,SizeL:m,AspectRatio:c,Emoji:e.SmilePlus,DeleteColumn:s,DeleteRow:a,SearchAndReplace:e.Replace,EmojiIcon:e.SmilePlusIcon,KatexIcon:e.Sigma,ExportPdf:i,ExportWord:l,ImportWord:z,ColumnAddLeft:v,ColumnAddRight:p,BookMarked:e.BookMarked,Excalidraw:j,ZoomIn:e.ZoomIn,ZoomOut:e.ZoomOut,Settings:e.Settings,Eye:e.Eye,TextDirection:C,LeftToRight:f,RightToLeft:L,Attachment:e.Paperclip,GifIcon:k,ChevronUp:e.ChevronUp,Crop:e.CropIcon,Mermaid:M,Twitter:H,CodeView:x,FlipX:e.FlipVertical,FlipY:e.FlipHorizontal,PencilRuler:e.PencilRuler,WrapText:e.WrapText,Loader:e.Loader2,X:e.X,Html:V,ExternalLink:e.ExternalLink};exports.ExportPdf=i;exports.ExportWord=l;exports.MenuDown=o;exports.icons=B;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";const f=require("react"),H=require("react-dom"),w=require("react/jsx-runtime"),I=require("./index-RfTlOzIr.cjs");var V={exports:{}},A={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-shim.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var x;function k(){if(x)return A;x=1;var e=f;function t(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var n=typeof Object.is=="function"?Object.is:t,a=e.useState,s=e.useEffect,_=e.useLayoutEffect,v=e.useDebugValue;function O(u,d){var r=d(),o=a({inst:{value:r,getSnapshot:d}}),i=o[0].inst,p=o[1];return _(function(){i.value=r,i.getSnapshot=d,l(i)&&p({inst:i})},[u,r,d]),s(function(){return l(i)&&p({inst:i}),u(function(){l(i)&&p({inst:i})})},[u]),v(r),r}function l(u){var d=u.getSnapshot;u=u.value;try{var r=d();return!n(u,r)}catch{return!0}}function c(u,d){return d()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:O;return A.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:h,A}var M={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* use-sync-external-store-shim.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var j;function Y(){return j||(j=1,process.env.NODE_ENV!=="production"&&(function(){function e(r,o){return r===o&&(r!==0||1/r===1/o)||r!==r&&o!==o}function t(r,o){h||s.startTransition===void 0||(h=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var i=o();if(!u){var p=o();_(i,p)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),u=!0)}p=v({inst:{value:i,getSnapshot:o}});var E=p[0].inst,R=p[1];return l(function(){E.value=i,E.getSnapshot=o,n(E)&&R({inst:E})},[r,i,o]),O(function(){return n(E)&&R({inst:E}),r(function(){n(E)&&R({inst:E})})},[r]),c(i),i}function n(r){var o=r.getSnapshot;r=r.value;try{var i=o();return!_(r,i)}catch{return!0}}function a(r,o){return o()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=f,_=typeof Object.is=="function"?Object.is:e,v=s.useState,O=s.useEffect,l=s.useLayoutEffect,c=s.useDebugValue,h=!1,u=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a:t;M.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),M}var $;function N(){return $||($=1,process.env.NODE_ENV==="production"?V.exports=k():V.exports=Y()),V.exports}var B=N(),L={exports:{}},g={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var P;function J(){if(P)return g;P=1;var e=f,t=N();function n(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}var a=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,_=e.useRef,v=e.useEffect,O=e.useMemo,l=e.useDebugValue;return g.useSyncExternalStoreWithSelector=function(c,h,u,d,r){var o=_(null);if(o.current===null){var i={hasValue:!1,value:null};o.current=i}else i=o.current;o=O(function(){function E(m){if(!R){if(R=!0,y=m,m=d(m),r!==void 0&&i.hasValue){var S=i.value;if(r(S,m))return C=S}return C=m}if(S=C,a(y,m))return S;var D=d(m);return r!==void 0&&r(S,D)?(y=m,S):(y=m,C=D)}var R=!1,y,C,b=u===void 0?null:u;return[function(){return E(h())},b===null?void 0:function(){return E(b())}]},[h,u,d,r]);var p=s(c,o[0],o[1]);return v(function(){i.hasValue=!0,i.value=p},[p]),l(p),p},g}var T={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var U;function Q(){return U||(U=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=f,n=N(),a=typeof Object.is=="function"?Object.is:e,s=n.useSyncExternalStore,_=t.useRef,v=t.useEffect,O=t.useMemo,l=t.useDebugValue;T.useSyncExternalStoreWithSelector=function(c,h,u,d,r){var o=_(null);if(o.current===null){var i={hasValue:!1,value:null};o.current=i}else i=o.current;o=O(function(){function E(m){if(!R){if(R=!0,y=m,m=d(m),r!==void 0&&i.hasValue){var S=i.value;if(r(S,m))return C=S}return C=m}if(S=C,a(y,m))return S;var D=d(m);return r!==void 0&&r(S,D)?(y=m,S):(y=m,C=D)}var R=!1,y,C,b=u===void 0?null:u;return[function(){return E(h())},b===null?void 0:function(){return E(b())}]},[h,u,d,r]);var p=s(c,o[0],o[1]);return v(function(){i.hasValue=!0,i.value=p},[p]),l(p),p},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),T}var G;function X(){return G||(G=1,process.env.NODE_ENV==="production"?L.exports=J():L.exports=Q()),L.exports}X();var Z=(...e)=>t=>{e.forEach(n=>{typeof n=="function"?n(t):n&&(n.current=t)})},ee=({contentComponent:e})=>{const t=B.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getServerSnapshot);return w.jsx(w.Fragment,{children:Object.values(t)})};function te(){const e=new Set;let t={};return{subscribe(n){return e.add(n),()=>{e.delete(n)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(n,a){t={...t,[n]:H.createPortal(a.reactElement,a.element,n)},e.forEach(s=>s())},removeRenderer(n){const a={...t};delete a[n],t=a,e.forEach(s=>s())}}}var ne=class extends f.Component{constructor(e){var t;super(e),this.editorContentRef=f.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!((t=e.editor)!=null&&t.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){const e=this.props.editor;if(e&&!e.isDestroyed&&e.options.element){if(e.contentComponent)return;const t=this.editorContentRef.current;t.append(e.view.dom),e.setOptions({element:t}),e.contentComponent=te(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(n=>n.hasContentComponentInitialized?n:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){var e;const t=this.props.editor;if(t){this.initialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),t.contentComponent=null;try{if(!((e=t.view.dom)!=null&&e.firstChild))return;const n=document.createElement("div");n.append(t.view.dom),t.setOptions({element:n})}catch{}}}render(){const{editor:e,innerRef:t,...n}=this.props;return w.jsxs(w.Fragment,{children:[w.jsx("div",{ref:Z(t,this.editorContentRef),...n}),(e==null?void 0:e.contentComponent)&&w.jsx(ee,{contentComponent:e.contentComponent})]})}},re=f.forwardRef((e,t)=>{const n=f.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return f.createElement(ne,{key:n,innerRef:t,...e})});f.memo(re);process.env.NODE_ENV;var K=f.createContext({editor:null});K.Consumer;var oe=()=>f.useContext(K),q=f.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),ie=()=>f.useContext(q),se=f.forwardRef((e,t)=>{const{onDragStart:n}=ie(),a=e.as||"div";return w.jsx(a,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...e.style}})});function z(e){return!!(typeof e=="function"&&e.prototype&&e.prototype.isReactComponent)}function W(e){return!!(typeof e=="object"&&e.$$typeof&&(e.$$typeof.toString()==="Symbol(react.forward_ref)"||e.$$typeof.description==="react.forward_ref"))}function ae(e){return!!(typeof e=="object"&&e.$$typeof&&(e.$$typeof.toString()==="Symbol(react.memo)"||e.$$typeof.description==="react.memo"))}function ue(e){if(z(e)||W(e))return!0;if(ae(e)){const t=e.type;if(t)return z(t)||W(t)}return!1}function de(){try{if(f.version)return parseInt(f.version.split(".")[0],10)>=19}catch{}return!1}var F=class{constructor(e,{editor:t,props:n={},as:a="div",className:s=""}){this.ref=null,this.id=Math.floor(Math.random()*4294967295).toString(),this.component=e,this.editor=t,this.props=n,this.element=document.createElement(a),this.element.classList.add("react-renderer"),s&&this.element.classList.add(...s.split(" ")),this.editor.isInitialized?H.flushSync(()=>{this.render()}):queueMicrotask(()=>{this.render()})}render(){var e;const t=this.component,n=this.props,a=this.editor,s=de(),_=ue(t),v={...n};v.ref&&!(s||_)&&delete v.ref,!v.ref&&(s||_)&&(v.ref=O=>{this.ref=O}),this.reactElement=w.jsx(t,{...v}),(e=a==null?void 0:a.contentComponent)==null||e.setRenderer(this.id,this)}updateProps(e={}){this.props={...this.props,...e},this.render()}destroy(){var e;const t=this.editor;(e=t==null?void 0:t.contentComponent)==null||e.removeRenderer(this.id);try{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}catch{}}updateAttributes(e){Object.keys(e).forEach(t=>{this.element.setAttribute(t,e[t])})}};f.createContext({markViewContentRef:()=>{}});var ce=class extends I.NodeView{constructor(e,t,n){if(super(e,t,n),this.selectionRafId=null,!this.node.isLeaf){this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.dataset.nodeViewWrapper="",this.contentDOMElement.style.whiteSpace="inherit";const a=this.dom.querySelector("[data-node-view-content]");if(!a)return;a.appendChild(this.contentDOMElement)}}mount(){const e={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(l={})=>this.updateAttributes(l),deleteNode:()=>this.deleteNode(),ref:f.createRef()};if(!this.component.displayName){const l=c=>c.charAt(0).toUpperCase()+c.substring(1);this.component.displayName=l(this.extension.name)}const a={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:l=>{l&&this.contentDOMElement&&l.firstChild!==this.contentDOMElement&&(l.hasAttribute("data-node-view-wrapper")&&l.removeAttribute("data-node-view-wrapper"),l.appendChild(this.contentDOMElement))}},s=this.component,_=f.memo(l=>w.jsx(q.Provider,{value:a,children:f.createElement(s,l)}));_.displayName="ReactNodeView";let v=this.node.isInline?"span":"div";this.options.as&&(v=this.options.as);const{className:O=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new F(_,{editor:this.editor,props:e,as:v,className:`node-${this.node.type.name} ${O}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes()}get dom(){var e;if(this.renderer.element.firstElementChild&&!((e=this.renderer.element.firstElementChild)!=null&&e.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null),this.selectionRafId=requestAnimationFrame(()=>{this.selectionRafId=null;const{from:e,to:t}=this.editor.state.selection,n=this.getPos();if(typeof n=="number")if(e<=n&&t>=n+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}})}update(e,t,n){const a=s=>{this.renderer.updateProps(s),typeof this.options.attrs=="function"&&this.updateElementAttributes()};if(e.type!==this.node.type)return!1;if(typeof this.options.update=="function"){const s=this.node,_=this.decorations,v=this.innerDecorations;return this.node=e,this.decorations=t,this.innerDecorations=n,this.options.update({oldNode:s,oldDecorations:_,newNode:e,newDecorations:t,oldInnerDecorations:v,innerDecorations:n,updateProps:()=>a({node:e,decorations:t,innerDecorations:n})})}return e===this.node&&this.decorations===t&&this.innerDecorations===n||(this.node=e,this.decorations=t,this.innerDecorations=n,a({node:e,decorations:t,innerDecorations:n})),!0}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.contentDOMElement=null,this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null)}updateElementAttributes(){if(this.options.attrs){let e={};if(typeof this.options.attrs=="function"){const t=this.editor.extensionManager.attributes,n=I.getRenderedAttributes(this.node,t);e=this.options.attrs({node:this.node,HTMLAttributes:n})}else e=this.options.attrs;this.renderer.updateAttributes(e)}}};function le(e,t){return n=>n.editor.contentComponent?new ce(e,n,t):{}}exports.NodeViewWrapper=se;exports.ReactNodeViewRenderer=le;exports.ReactRenderer=F;exports.shimExports=B;exports.useCurrentEditor=oe;
|