reactjs-tiptap-editor 1.0.8 → 1.0.9
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-Cc0vy5hy.js → ActionMenuButton-C4aNFFa8.js} +2 -2
- package/lib/{ActionMenuButton-t7e5GCJp.cjs → ActionMenuButton-CmDopTWt.cjs} +1 -1
- package/lib/Attachment.cjs +1 -1
- package/lib/Attachment.js +2 -2
- package/lib/Blockquote.cjs +1 -1
- package/lib/Blockquote.js +2 -2
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +2 -2
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +2 -2
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +2 -2
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +2 -2
- package/lib/CodeBlock.cjs +39 -39
- package/lib/CodeBlock.js +945 -837
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +2 -2
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +4 -4
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +2 -2
- package/lib/{Drawer-DRdsK4f_.cjs → Drawer-CTr2snNd.cjs} +1 -1
- package/lib/{Drawer-C6WTtcd0.js → Drawer-DG0gPU_U.js} +12 -12
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +13 -13
- package/lib/{Excalidraw-DjO5sCC_.js → Excalidraw-DpgdxOsc.js} +17 -17
- package/lib/{Excalidraw-gJ99kWdS.cjs → Excalidraw-DtezFdjR.cjs} +1 -1
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +1 -1
- package/lib/ExportPdf.cjs +2 -2
- package/lib/ExportPdf.js +25 -25
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +2 -2
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +4 -4
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +4 -4
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +12 -12
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +4 -4
- package/lib/History.cjs +1 -1
- package/lib/History.js +2 -2
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +2 -2
- package/lib/{Icon-prdLEHMN.js → Icon-C_buGjWy.js} +1 -1
- package/lib/{Icon-DHNSWrSX.cjs → Icon-b6HQAURz.cjs} +1 -1
- package/lib/{Iframe-CvymVtpM.cjs → Iframe-CUrXCDxj.cjs} +1 -1
- package/lib/{Iframe-CERKUXQh.js → Iframe-De88TYvj.js} +10 -10
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +1 -1
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +43 -43
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +6 -6
- package/lib/ImportWord.cjs +2 -2
- package/lib/ImportWord.js +7 -7
- package/lib/{Indent-BfEOOT5B.js → Indent-Bensb2nf.js} +2 -2
- package/lib/{Indent-CE6kk62r.cjs → Indent-D_KtZNHW.cjs} +1 -1
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.js +1 -1
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.js +2 -2
- package/lib/{Katex-5KNTSK8T.js → Katex-C0dtqznb.js} +974 -941
- package/lib/Katex-NqelWRoi.cjs +4 -0
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +1 -1
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +11 -11
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +1 -1
- package/lib/{LinkEditBlock-D6z0Yohc.cjs → LinkEditBlock-BSZ-vgNB.cjs} +2 -2
- package/lib/{LinkEditBlock-CFkyS2Ze.js → LinkEditBlock-Bv12sKvW.js} +29 -29
- package/lib/Mermaid.cjs +2 -2
- package/lib/Mermaid.js +18 -18
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +10 -10
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +2 -2
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +15 -15
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +11 -11
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +2 -2
- package/lib/{Table-CWbY_hqo.js → Table-D9ckv6Tb.js} +3 -3
- package/lib/{Table-D9pRzwFU.cjs → Table-cy1mUM2X.cjs} +1 -1
- package/lib/Table.cjs +1 -1
- package/lib/Table.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.js +2 -2
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +9 -9
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +9 -9
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +2 -2
- package/lib/{Twitter-D7NK3MZe.cjs → Twitter-Bvs3sW8F.cjs} +1 -1
- package/lib/{Twitter-BV7HA-MO.js → Twitter-KUvyySA0.js} +16 -16
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +21 -21
- package/lib/bubble.cjs +4 -4
- package/lib/bubble.js +1329 -1313
- package/lib/{button-0963_Pa8.js → button-D8SI-g7p.js} +1 -1
- package/lib/{button-Bxfjx9_Y.cjs → button-U6XpZt2X.cjs} +1 -1
- package/lib/{checkbox-Q6FcMQW5.cjs → checkbox-DaIBNthL.cjs} +1 -1
- package/lib/{checkbox-D4p6-UMt.js → checkbox-xrY2c5yo.js} +1 -1
- package/lib/{dialog-D-oYxagG.cjs → dialog-DgnnVCfv.cjs} +1 -1
- package/lib/{dialog-B-9_Z5j2.js → dialog-DjnkASYP.js} +1 -1
- package/lib/{dropdown-menu-r8XibZQU.cjs → dropdown-menu-BvVMltdB.cjs} +1 -1
- package/lib/{dropdown-menu-par18QL5.js → dropdown-menu-bI14Gyw4.js} +1 -1
- package/lib/extensions/Katex/Katex.d.ts +1 -1
- package/lib/{index-pgx8gyoC.js → index-4pRt5Vqu.js} +647 -758
- package/lib/index-DvvMf6Wu.cjs +7 -0
- package/lib/index.cjs +1 -1
- package/lib/index.js +1 -1
- package/lib/{input-CZUkD6wF.cjs → input-BtDj0NeF.cjs} +1 -1
- package/lib/{input-cclJoUeC.js → input-C5zU49Q1.js} +1 -1
- package/lib/{label-aveW7pdK.js → label-BEUVs-IA.js} +1 -1
- package/lib/{label-CFaBdRGz.cjs → label-C8BonzOY.cjs} +1 -1
- package/lib/{popover-D5YZPv2r.js → popover-CPY5lMCj.js} +1 -1
- package/lib/{popover-BWYZO_fD.cjs → popover-DjL0De8d.cjs} +1 -1
- package/lib/{separator-BHjFVmZr.js → separator-BlIlS7LP.js} +18 -18
- package/lib/{separator-B978cwAm.cjs → separator-BzMkiI_c.cjs} +1 -1
- package/lib/{store-BsBiawfz.cjs → store-BSCjQxMK.cjs} +1 -1
- package/lib/{store-BsMMRKFd.js → store-D_GvIPxo.js} +1 -1
- package/lib/{tabs-CUMyiV80.cjs → tabs-CHy82_rs.cjs} +1 -1
- package/lib/{tabs-Bj8EvAkY.js → tabs-tQpXIzfV.js} +1 -1
- package/lib/{textarea-BKb7LDw1.cjs → textarea-B-qfanCT.cjs} +1 -1
- package/lib/{textarea-CClyW-74.js → textarea-CMDYVXYo.js} +1 -1
- package/lib/{useButtonProps-B0riSJs9.cjs → useButtonProps-BqBGuqoP.cjs} +1 -1
- package/lib/{useButtonProps-StwAz7Ha.js → useButtonProps-DTngjZge.js} +1 -1
- package/package.json +1 -1
- package/lib/Katex-CJ2Fmvut.cjs +0 -4
- package/lib/index-BFXkgG1P.cjs +0 -7
package/lib/Katex-CJ2Fmvut.cjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use strict";const Fr=require("./index-BBNITgNi.cjs"),er=require("react/jsx-runtime"),ur=require("react"),Ja=require("katex"),wo=require("./index-BFXkgG1P.cjs"),qo=require("./button-Bxfjx9_Y.cjs"),Dr=require("./dialog-D-oYxagG.cjs"),Po=require("./textarea-BKb7LDw1.cjs"),oe=require("./useButtonProps-B0riSJs9.cjs"),Br=require("./_commonjsHelpers-BTDuMlIz.cjs"),Io=require("./index-FSRjMsxW.cjs");var ie,sn;function Ya(){if(sn)return ie;sn=1;var r=Object.prototype.toString;return ie=function(n){var o=r.call(n),t=o==="[object Arguments]";return t||(t=o!=="[object Array]"&&n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&r.call(n.callee)==="[object Function]"),t},ie}var ue,ln;function $o(){if(ln)return ue;ln=1;var r;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,o=Ya(),t=Object.prototype.propertyIsEnumerable,f=!t.call({toString:null},"toString"),i=t.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(y){var h=y.constructor;return h&&h.prototype===y},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},v=(function(){if(typeof window>"u")return!1;for(var y in window)try{if(!c["$"+y]&&e.call(window,y)&&window[y]!==null&&typeof window[y]=="object")try{u(window[y])}catch{return!0}}catch{return!0}return!1})(),p=function(y){if(typeof window>"u"||!v)return u(y);try{return u(y)}catch{return!1}};r=function(h){var m=h!==null&&typeof h=="object",B=n.call(h)==="[object Function]",w=o(h),q=m&&n.call(h)==="[object String]",O=[];if(!m&&!B&&!w)throw new TypeError("Object.keys called on a non-object");var b=i&&B;if(q&&h.length>0&&!e.call(h,0))for(var T=0;T<h.length;++T)O.push(String(T));if(w&&h.length>0)for(var X=0;X<h.length;++X)O.push(String(X));else for(var G in h)!(b&&G==="prototype")&&e.call(h,G)&&O.push(String(G));if(f)for(var F=p(h),C=0;C<a.length;++C)!(F&&a[C]==="constructor")&&e.call(h,a[C])&&O.push(a[C]);return O}}return ue=r,ue}var fe,cn;function Lt(){if(cn)return fe;cn=1;var r=Array.prototype.slice,e=Ya(),n=Object.keys,o=n?function(i){return n(i)}:$o(),t=Object.keys;return o.shim=function(){if(Object.keys){var i=(function(){var a=Object.keys(arguments);return a&&a.length===arguments.length})(1,2);i||(Object.keys=function(u){return e(u)?t(r.call(u)):t(u)})}else Object.keys=o;return Object.keys||o},fe=o,fe}var se,pn;function Vr(){if(pn)return se;pn=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return se=r,se}var le,yn;function Ht(){return yn||(yn=1,le=SyntaxError),le}var ce,vn;function nr(){return vn||(vn=1,ce=TypeError),ce}var pe,gn;function Ro(){return gn||(gn=1,pe=Object.getOwnPropertyDescriptor),pe}var ye,hn;function wr(){if(hn)return ye;hn=1;var r=Ro();if(r)try{r([],"length")}catch{r=null}return ye=r,ye}var ve,dn;function Gt(){if(dn)return ve;dn=1;var r=Vr(),e=Ht(),n=nr(),o=wr();return ve=function(f,i,a){if(!f||typeof f!="object"&&typeof f!="function")throw new n("`obj` must be an object or a function`");if(typeof i!="string"&&typeof i!="symbol")throw new n("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new n("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new n("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new n("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new n("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,v=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,y=!!o&&o(f,i);if(r)r(f,i,{configurable:v===null&&y?y.configurable:!v,enumerable:u===null&&y?y.enumerable:!u,value:a,writable:c===null&&y?y.writable:!c});else if(p||!u&&!c&&!v)f[i]=a;else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ve}var ge,mn;function Ut(){if(mn)return ge;mn=1;var r=Vr(),e=function(){return!!r};return e.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},ge=e,ge}var he,Sn;function qr(){if(Sn)return he;Sn=1;var r=Lt(),e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",n=Object.prototype.toString,o=Array.prototype.concat,t=Gt(),f=function(c){return typeof c=="function"&&n.call(c)==="[object Function]"},i=Ut()(),a=function(c,v,p,y){if(v in c){if(y===!0){if(c[v]===p)return}else if(!f(y)||!y())return}i?t(c,v,p,!0):t(c,v,p)},u=function(c,v){var p=arguments.length>2?arguments[2]:{},y=r(v);e&&(y=o.call(y,Object.getOwnPropertySymbols(v)));for(var h=0;h<y.length;h+=1)a(c,y[h],v[y[h]],p[y[h]])};return u.supportsDescriptors=!!i,he=u,he}var de={exports:{}},me,bn;function zt(){return bn||(bn=1,me=Object),me}var Se,An;function Xa(){return An||(An=1,Se=Error),Se}var be,On;function xo(){return On||(On=1,be=EvalError),be}var Ae,wn;function Eo(){return wn||(wn=1,Ae=RangeError),Ae}var Oe,qn;function Bo(){return qn||(qn=1,Oe=ReferenceError),Oe}var we,Pn;function jo(){return Pn||(Pn=1,we=URIError),we}var qe,In;function To(){return In||(In=1,qe=Math.abs),qe}var Pe,$n;function Mo(){return $n||($n=1,Pe=Math.floor),Pe}var Ie,Rn;function Do(){return Rn||(Rn=1,Ie=Math.max),Ie}var $e,xn;function Co(){return xn||(xn=1,$e=Math.min),$e}var Re,En;function Fo(){return En||(En=1,Re=Math.pow),Re}var xe,Bn;function _o(){return Bn||(Bn=1,xe=Math.round),xe}var Ee,jn;function No(){return jn||(jn=1,Ee=Number.isNaN||function(e){return e!==e}),Ee}var Be,Tn;function Wo(){if(Tn)return Be;Tn=1;var r=No();return Be=function(n){return r(n)||n===0?n:n<0?-1:1},Be}var je,Mn;function Kr(){return Mn||(Mn=1,je=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var t=42;e[n]=t;for(var f in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,n);if(a.value!==t||a.enumerable!==!0)return!1}return!0}),je}var Te,Dn;function Vt(){if(Dn)return Te;Dn=1;var r=typeof Symbol<"u"&&Symbol,e=Kr();return Te=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Te}var Me,Cn;function Qa(){return Cn||(Cn=1,Me=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Me}var De,Fn;function Za(){if(Fn)return De;Fn=1;var r=zt();return De=r.getPrototypeOf||null,De}var Ce,_n;function ko(){if(_n)return Ce;_n=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,n=Math.max,o="[object Function]",t=function(u,c){for(var v=[],p=0;p<u.length;p+=1)v[p]=u[p];for(var y=0;y<c.length;y+=1)v[y+u.length]=c[y];return v},f=function(u,c){for(var v=[],p=c,y=0;p<u.length;p+=1,y+=1)v[y]=u[p];return v},i=function(a,u){for(var c="",v=0;v<a.length;v+=1)c+=a[v],v+1<a.length&&(c+=u);return c};return Ce=function(u){var c=this;if(typeof c!="function"||e.apply(c)!==o)throw new TypeError(r+c);for(var v=f(arguments,1),p,y=function(){if(this instanceof p){var q=c.apply(this,t(v,arguments));return Object(q)===q?q:this}return c.apply(u,t(v,arguments))},h=n(0,c.length-v.length),m=[],B=0;B<h;B++)m[B]="$"+B;if(p=Function("binder","return function ("+i(m,",")+"){ return binder.apply(this,arguments); }")(y),c.prototype){var w=function(){};w.prototype=c.prototype,p.prototype=new w,w.prototype=null}return p},Ce}var Fe,Nn;function _r(){if(Nn)return Fe;Nn=1;var r=ko();return Fe=Function.prototype.bind||r,Fe}var _e,Wn;function Kt(){return Wn||(Wn=1,_e=Function.prototype.call),_e}var Ne,kn;function Jt(){return kn||(kn=1,Ne=Function.prototype.apply),Ne}var We,Ln;function Lo(){return Ln||(Ln=1,We=typeof Reflect<"u"&&Reflect&&Reflect.apply),We}var ke,Hn;function ro(){if(Hn)return ke;Hn=1;var r=_r(),e=Jt(),n=Kt(),o=Lo();return ke=o||r.call(n,e),ke}var Le,Gn;function Yt(){if(Gn)return Le;Gn=1;var r=_r(),e=nr(),n=Kt(),o=ro();return Le=function(f){if(f.length<1||typeof f[0]!="function")throw new e("a function is required");return o(r,n,f)},Le}var He,Un;function Ho(){if(Un)return He;Un=1;var r=Yt(),e=wr(),n;try{n=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var o=!!n&&e&&e(Object.prototype,"__proto__"),t=Object,f=t.getPrototypeOf;return He=o&&typeof o.get=="function"?r([o.get]):typeof f=="function"?function(a){return f(a==null?a:t(a))}:!1,He}var Ge,zn;function Xt(){if(zn)return Ge;zn=1;var r=Qa(),e=Za(),n=Ho();return Ge=r?function(t){return r(t)}:e?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return e(t)}:n?function(t){return n(t)}:null,Ge}var Ue,Vn;function Qt(){if(Vn)return Ue;Vn=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,n=_r();return Ue=n.call(r,e),Ue}var ze,Kn;function yr(){if(Kn)return ze;Kn=1;var r,e=zt(),n=Xa(),o=xo(),t=Eo(),f=Bo(),i=Ht(),a=nr(),u=jo(),c=To(),v=Mo(),p=Do(),y=Co(),h=Fo(),m=_o(),B=Wo(),w=Function,q=function(M){try{return w('"use strict"; return ('+M+").constructor;")()}catch{}},O=wr(),b=Vr(),T=function(){throw new a},X=O?(function(){try{return arguments.callee,T}catch{try{return O(arguments,"callee").get}catch{return T}}})():T,G=Vt()(),F=Xt(),C=Za(),P=Qa(),_=Jt(),L=Kt(),N={},H=typeof Uint8Array>"u"||!F?r:F(Uint8Array),V={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":G&&F?F([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":N,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":G&&F?F(F([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!G||!F?r:F(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":O,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":t,"%ReferenceError%":f,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!G||!F?r:F(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":G&&F?F(""[Symbol.iterator]()):r,"%Symbol%":G?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":X,"%TypedArray%":H,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":_,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":C,"%Math.abs%":c,"%Math.floor%":v,"%Math.max%":p,"%Math.min%":y,"%Math.pow%":h,"%Math.round%":m,"%Math.sign%":B,"%Reflect.getPrototypeOf%":P};if(F)try{null.error}catch(M){var fr=F(F(M));V["%Error.prototype%"]=fr}var Ir=function M(A){var I;if(A==="%AsyncFunction%")I=q("async function () {}");else if(A==="%GeneratorFunction%")I=q("function* () {}");else if(A==="%AsyncGeneratorFunction%")I=q("async function* () {}");else if(A==="%AsyncGenerator%"){var S=M("%AsyncGeneratorFunction%");S&&(I=S.prototype)}else if(A==="%AsyncIteratorPrototype%"){var x=M("%AsyncGenerator%");x&&F&&(I=F(x.prototype))}return V[A]=I,I},Sr={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ar=_r(),U=Qt(),br=ar.call(L,Array.prototype.concat),$r=ar.call(_,Array.prototype.splice),Ar=ar.call(L,String.prototype.replace),vr=ar.call(L,String.prototype.slice),g=ar.call(L,RegExp.prototype.exec),d=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,$=function(A){var I=vr(A,0,1),S=vr(A,-1);if(I==="%"&&S!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if(S==="%"&&I!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var x=[];return Ar(A,d,function(z,K,J,Y){x[x.length]=J?Ar(Y,R,"$1"):K||z}),x},j=function(A,I){var S=A,x;if(U(Sr,S)&&(x=Sr[S],S="%"+x[0]+"%"),U(V,S)){var z=V[S];if(z===N&&(z=Ir(S)),typeof z>"u"&&!I)throw new a("intrinsic "+A+" exists, but is not available. Please file an issue!");return{alias:x,name:S,value:z}}throw new i("intrinsic "+A+" does not exist!")};return ze=function(A,I){if(typeof A!="string"||A.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof I!="boolean")throw new a('"allowMissing" argument must be a boolean');if(g(/^%?[^%]*%?$/,A)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var S=$(A),x=S.length>0?S[0]:"",z=j("%"+x+"%",I),K=z.name,J=z.value,Y=!1,Z=z.alias;Z&&(x=Z[0],$r(S,br([0,1],Z)));for(var sr=1,or=!0;sr<S.length;sr+=1){var rr=S[sr],lr=vr(rr,0,1),cr=vr(rr,-1);if((lr==='"'||lr==="'"||lr==="`"||cr==='"'||cr==="'"||cr==="`")&&lr!==cr)throw new i("property names with quotes must have matching quotes");if((rr==="constructor"||!or)&&(Y=!0),x+="."+rr,K="%"+x+"%",U(V,K))J=V[K];else if(J!=null){if(!(rr in J)){if(!I)throw new a("base intrinsic for "+A+" exists, but the property is not available.");return}if(O&&sr+1>=S.length){var pr=O(J,rr);or=!!pr,or&&"get"in pr&&!("originalValue"in pr.get)?J=pr.get:J=J[rr]}else or=U(J,rr),J=J[rr];or&&!Y&&(V[K]=J)}}return J},ze}var Ve,Jn;function Go(){if(Jn)return Ve;Jn=1;var r=yr(),e=Gt(),n=Ut()(),o=wr(),t=nr(),f=r("%Math.floor%");return Ve=function(a,u){if(typeof a!="function")throw new t("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||f(u)!==u)throw new t("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],v=!0,p=!0;if("length"in a&&o){var y=o(a,"length");y&&!y.configurable&&(v=!1),y&&!y.writable&&(p=!1)}return(v||p||!c)&&(n?e(a,"length",u,!0,!0):e(a,"length",u)),a},Ve}var Ke,Yn;function Uo(){if(Yn)return Ke;Yn=1;var r=_r(),e=Jt(),n=ro();return Ke=function(){return n(r,e,arguments)},Ke}var Xn;function jr(){return Xn||(Xn=1,(function(r){var e=Go(),n=Vr(),o=Yt(),t=Uo();r.exports=function(i){var a=o(arguments),u=i.length-(arguments.length-1);return e(a,1+(u>0?u:0),!0)},n?n(r.exports,"apply",{value:t}):r.exports.apply=t})(de)),de.exports}var Je,Qn;function Q(){if(Qn)return Je;Qn=1;var r=yr(),e=Yt(),n=e([r("%String.prototype.indexOf%")]);return Je=function(t,f){var i=r(t,!!f);return typeof i=="function"&&n(t,".prototype.")>-1?e([i]):i},Je}var Ye,Zn;function eo(){if(Zn)return Ye;Zn=1;var r=Lt(),e=Kr()(),n=Q(),o=zt(),t=n("Array.prototype.push"),f=n("Object.prototype.propertyIsEnumerable"),i=e?o.getOwnPropertySymbols:null;return Ye=function(u,c){if(u==null)throw new TypeError("target must be an object");var v=o(u);if(arguments.length===1)return v;for(var p=1;p<arguments.length;++p){var y=o(arguments[p]),h=r(y),m=e&&(o.getOwnPropertySymbols||i);if(m)for(var B=m(y),w=0;w<B.length;++w){var q=B[w];f(y,q)&&t(h,q)}for(var O=0;O<h.length;++O){var b=h[O];if(f(y,b)){var T=y[b];v[b]=T}}}return v},Ye}var Xe,ra;function to(){if(ra)return Xe;ra=1;var r=eo(),e=function(){if(!Object.assign)return!1;for(var o="abcdefghijklmnopqrst",t=o.split(""),f={},i=0;i<t.length;++i)f[t[i]]=t[i];var a=Object.assign({},f),u="";for(var c in a)u+=c;return o!==u},n=function(){if(!Object.assign||!Object.preventExtensions)return!1;var o=Object.preventExtensions({1:2});try{Object.assign(o,"xy")}catch{return o[1]==="y"}return!1};return Xe=function(){return!Object.assign||e()||n()?r:Object.assign},Xe}var Qe,ea;function zo(){if(ea)return Qe;ea=1;var r=qr(),e=to();return Qe=function(){var o=e();return r(Object,{assign:o},{assign:function(){return Object.assign!==o}}),o},Qe}var Ze,ta;function Vo(){if(ta)return Ze;ta=1;var r=qr(),e=jr(),n=eo(),o=to(),t=zo(),f=e.apply(o()),i=function(u,c){return f(Object,arguments)};return r(i,{getPolyfill:o,implementation:n,shim:t}),Ze=i,Ze}var rt,na;function no(){if(na)return rt;na=1;var r=yr(),e=jr(),n=e(r("String.prototype.indexOf"));return rt=function(t,f){var i=r(t,!!f);return typeof i=="function"&&n(t,".prototype.")>-1?e(i):i},rt}var et,aa;function Ko(){if(aa)return et;aa=1;var r=function(){return typeof(function(){}).name=="string"},e=Object.getOwnPropertyDescriptor;if(e)try{e([],"length")}catch{e=null}r.functionsHaveConfigurableNames=function(){if(!r()||!e)return!1;var t=e(function(){},"name");return!!t&&!!t.configurable};var n=Function.prototype.bind;return r.boundFunctionsHaveNames=function(){return r()&&typeof n=="function"&&(function(){}).bind().name!==""},et=r,et}var tt,oa;function Jo(){if(oa)return tt;oa=1;var r=Gt(),e=Ut()(),n=Ko().functionsHaveConfigurableNames(),o=nr();return tt=function(f,i){if(typeof f!="function")throw new o("`fn` is not a function");var a=arguments.length>2&&!!arguments[2];return(!a||n)&&(e?r(f,"name",i,!0,!0):r(f,"name",i)),f},tt}var nt,ia;function ao(){if(ia)return nt;ia=1;var r=Jo(),e=nr(),n=Object;return nt=r(function(){if(this==null||this!==n(this))throw new e("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),nt}var at,ua;function oo(){if(ua)return at;ua=1;var r=ao(),e=qr().supportsDescriptors,n=Object.getOwnPropertyDescriptor;return at=function(){if(e&&/a/mig.flags==="gim"){var t=n(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var f="",i={};if(Object.defineProperty(i,"hasIndices",{get:function(){f+="d"}}),Object.defineProperty(i,"sticky",{get:function(){f+="y"}}),t.get.call(i),f==="dy")return t.get}}return r},at}var ot,fa;function Yo(){if(fa)return ot;fa=1;var r=qr().supportsDescriptors,e=oo(),n=wr(),o=Object.defineProperty,t=Xa(),f=Xt(),i=/a/;return ot=function(){if(!r||!f)throw new t("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var u=e(),c=f(i),v=n(c,"flags");return(!v||v.get!==u)&&o(c,"flags",{configurable:!0,enumerable:!1,get:u}),u},ot}var it,sa;function Xo(){if(sa)return it;sa=1;var r=qr(),e=jr(),n=ao(),o=oo(),t=Yo(),f=e(o());return r(f,{getPolyfill:o,implementation:n,shim:t}),it=f,it}var Cr={exports:{}},ut,la;function Pr(){if(la)return ut;la=1;var r=Kr();return ut=function(){return r()&&!!Symbol.toStringTag},ut}var ft,ca;function io(){if(ca)return ft;ca=1;var r=Pr()(),e=Q(),n=e("Object.prototype.toString"),o=function(a){return r&&a&&typeof a=="object"&&Symbol.toStringTag in a?!1:n(a)==="[object Arguments]"},t=function(a){return o(a)?!0:a!==null&&typeof a=="object"&&"length"in a&&typeof a.length=="number"&&a.length>=0&&n(a)!=="[object Array]"&&"callee"in a&&n(a.callee)==="[object Function]"},f=(function(){return o(arguments)})();return o.isLegacyArguments=t,ft=f?o:t,ft}const Qo={},Zo=Object.freeze(Object.defineProperty({__proto__:null,default:Qo},Symbol.toStringTag,{value:"Module"})),ri=Br.getAugmentedNamespace(Zo);var st,pa;function Jr(){if(pa)return st;pa=1;var r=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=r&&e&&typeof e.get=="function"?e.get:null,o=r&&Map.prototype.forEach,t=typeof Set=="function"&&Set.prototype,f=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i=t&&f&&typeof f.get=="function"?f.get:null,a=t&&Set.prototype.forEach,u=typeof WeakMap=="function"&&WeakMap.prototype,c=u?WeakMap.prototype.has:null,v=typeof WeakSet=="function"&&WeakSet.prototype,p=v?WeakSet.prototype.has:null,y=typeof WeakRef=="function"&&WeakRef.prototype,h=y?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,B=Object.prototype.toString,w=Function.prototype.toString,q=String.prototype.match,O=String.prototype.slice,b=String.prototype.replace,T=String.prototype.toUpperCase,X=String.prototype.toLowerCase,G=RegExp.prototype.test,F=Array.prototype.concat,C=Array.prototype.join,P=Array.prototype.slice,_=Math.floor,L=typeof BigInt=="function"?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,V=typeof Symbol=="function"&&typeof Symbol.iterator=="object",fr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===V||!0)?Symbol.toStringTag:null,Ir=Object.prototype.propertyIsEnumerable,Sr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(s){return s.__proto__}:null);function ar(s,l){if(s===1/0||s===-1/0||s!==s||s&&s>-1e3&&s<1e3||G.call(/e/,l))return l;var D=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof s=="number"){var W=s<0?-_(-s):_(s);if(W!==s){var k=String(W),E=O.call(l,k.length+1);return b.call(k,D,"$&_")+"."+b.call(b.call(E,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(l,D,"$&_")}var U=ri,br=U.custom,$r=z(br)?br:null,Ar={__proto__:null,double:'"',single:"'"},vr={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};st=function s(l,D,W,k){var E=D||{};if(Y(E,"quoteStyle")&&!Y(Ar,E.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Y(E,"maxStringLength")&&(typeof E.maxStringLength=="number"?E.maxStringLength<0&&E.maxStringLength!==1/0:E.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var dr=Y(E,"customInspect")?E.customInspect:!0;if(typeof dr!="boolean"&&dr!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Y(E,"indent")&&E.indent!==null&&E.indent!==" "&&!(parseInt(E.indent,10)===E.indent&&E.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Y(E,"numericSeparator")&&typeof E.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Or=E.numericSeparator;if(typeof l>"u")return"undefined";if(l===null)return"null";if(typeof l=="boolean")return l?"true":"false";if(typeof l=="string")return Rr(l,E);if(typeof l=="number"){if(l===0)return 1/0/l>0?"0":"-0";var tr=String(l);return Or?ar(l,tr):tr}if(typeof l=="bigint"){var mr=String(l)+"n";return Or?ar(l,mr):mr}var Qr=typeof E.depth>"u"?5:E.depth;if(typeof W>"u"&&(W=0),W>=Qr&&Qr>0&&typeof l=="object")return $(l)?"[Array]":"[Object]";var xr=bo(E,W);if(typeof k>"u")k=[];else if(or(k,l)>=0)return"[Circular]";function ir(Er,Lr,Oo){if(Lr&&(k=P.call(k),k.push(Lr)),Oo){var fn={depth:E.depth};return Y(E,"quoteStyle")&&(fn.quoteStyle=E.quoteStyle),s(Er,fn,W+1,k)}return s(Er,E,W+1,k)}if(typeof l=="function"&&!M(l)){var rn=sr(l),en=Wr(l,ir);return"[Function"+(rn?": "+rn:" (anonymous)")+"]"+(en.length>0?" { "+C.call(en,", ")+" }":"")}if(z(l)){var tn=V?b.call(String(l),/^(Symbol\(.*\))_[^)]*$/,"$1"):H.call(l);return typeof l=="object"&&!V?hr(tn):tn}if(gr(l)){for(var Mr="<"+X.call(String(l.nodeName)),Zr=l.attributes||[],kr=0;kr<Zr.length;kr++)Mr+=" "+Zr[kr].name+"="+g(d(Zr[kr].value),"double",E);return Mr+=">",l.childNodes&&l.childNodes.length&&(Mr+="..."),Mr+="</"+X.call(String(l.nodeName))+">",Mr}if($(l)){if(l.length===0)return"[]";var re=Wr(l,ir);return xr&&!So(re)?"["+Xr(re,xr)+"]":"[ "+C.call(re,", ")+" ]"}if(A(l)){var ee=Wr(l,ir);return!("cause"in Error.prototype)&&"cause"in l&&!Ir.call(l,"cause")?"{ ["+String(l)+"] "+C.call(F.call("[cause]: "+ir(l.cause),ee),", ")+" }":ee.length===0?"["+String(l)+"]":"{ ["+String(l)+"] "+C.call(ee,", ")+" }"}if(typeof l=="object"&&dr){if($r&&typeof l[$r]=="function"&&U)return U(l,{depth:Qr-W});if(dr!=="symbol"&&typeof l.inspect=="function")return l.inspect()}if(rr(l)){var nn=[];return o&&o.call(l,function(Er,Lr){nn.push(ir(Lr,l,!0)+" => "+ir(Er,l))}),Zt("Map",n.call(l),nn,xr)}if(pr(l)){var an=[];return a&&a.call(l,function(Er){an.push(ir(Er,l))}),Zt("Set",i.call(l),an,xr)}if(lr(l))return Yr("WeakMap");if(Nr(l))return Yr("WeakSet");if(cr(l))return Yr("WeakRef");if(S(l))return hr(ir(Number(l)));if(K(l))return hr(ir(L.call(l)));if(x(l))return hr(m.call(l));if(I(l))return hr(ir(String(l)));if(typeof window<"u"&&l===window)return"{ [object Window] }";if(typeof globalThis<"u"&&l===globalThis||typeof Br.commonjsGlobal<"u"&&l===Br.commonjsGlobal)return"{ [object globalThis] }";if(!j(l)&&!M(l)){var te=Wr(l,ir),on=Sr?Sr(l)===Object.prototype:l instanceof Object||l.constructor===Object,ne=l instanceof Object?"":"null prototype",un=!on&&fr&&Object(l)===l&&fr in l?O.call(Z(l),8,-1):ne?"Object":"",Ao=on||typeof l.constructor!="function"?"":l.constructor.name?l.constructor.name+" ":"",ae=Ao+(un||ne?"["+C.call(F.call([],un||[],ne||[]),": ")+"] ":"");return te.length===0?ae+"{}":xr?ae+"{"+Xr(te,xr)+"}":ae+"{ "+C.call(te,", ")+" }"}return String(l)};function g(s,l,D){var W=D.quoteStyle||l,k=Ar[W];return k+s+k}function d(s){return b.call(String(s),/"/g,""")}function R(s){return!fr||!(typeof s=="object"&&(fr in s||typeof s[fr]<"u"))}function $(s){return Z(s)==="[object Array]"&&R(s)}function j(s){return Z(s)==="[object Date]"&&R(s)}function M(s){return Z(s)==="[object RegExp]"&&R(s)}function A(s){return Z(s)==="[object Error]"&&R(s)}function I(s){return Z(s)==="[object String]"&&R(s)}function S(s){return Z(s)==="[object Number]"&&R(s)}function x(s){return Z(s)==="[object Boolean]"&&R(s)}function z(s){if(V)return s&&typeof s=="object"&&s instanceof Symbol;if(typeof s=="symbol")return!0;if(!s||typeof s!="object"||!H)return!1;try{return H.call(s),!0}catch{}return!1}function K(s){if(!s||typeof s!="object"||!L)return!1;try{return L.call(s),!0}catch{}return!1}var J=Object.prototype.hasOwnProperty||function(s){return s in this};function Y(s,l){return J.call(s,l)}function Z(s){return B.call(s)}function sr(s){if(s.name)return s.name;var l=q.call(w.call(s),/^function\s*([\w$]+)/);return l?l[1]:null}function or(s,l){if(s.indexOf)return s.indexOf(l);for(var D=0,W=s.length;D<W;D++)if(s[D]===l)return D;return-1}function rr(s){if(!n||!s||typeof s!="object")return!1;try{n.call(s);try{i.call(s)}catch{return!0}return s instanceof Map}catch{}return!1}function lr(s){if(!c||!s||typeof s!="object")return!1;try{c.call(s,c);try{p.call(s,p)}catch{return!0}return s instanceof WeakMap}catch{}return!1}function cr(s){if(!h||!s||typeof s!="object")return!1;try{return h.call(s),!0}catch{}return!1}function pr(s){if(!i||!s||typeof s!="object")return!1;try{i.call(s);try{n.call(s)}catch{return!0}return s instanceof Set}catch{}return!1}function Nr(s){if(!p||!s||typeof s!="object")return!1;try{p.call(s,p);try{c.call(s,c)}catch{return!0}return s instanceof WeakSet}catch{}return!1}function gr(s){return!s||typeof s!="object"?!1:typeof HTMLElement<"u"&&s instanceof HTMLElement?!0:typeof s.nodeName=="string"&&typeof s.getAttribute=="function"}function Rr(s,l){if(s.length>l.maxStringLength){var D=s.length-l.maxStringLength,W="... "+D+" more character"+(D>1?"s":"");return Rr(O.call(s,0,l.maxStringLength),l)+W}var k=vr[l.quoteStyle||"single"];k.lastIndex=0;var E=b.call(b.call(s,k,"\\$1"),/[\x00-\x1f]/g,Tr);return g(E,"single",l)}function Tr(s){var l=s.charCodeAt(0),D={8:"b",9:"t",10:"n",12:"f",13:"r"}[l];return D?"\\"+D:"\\x"+(l<16?"0":"")+T.call(l.toString(16))}function hr(s){return"Object("+s+")"}function Yr(s){return s+" { ? }"}function Zt(s,l,D,W){var k=W?Xr(D,W):C.call(D,", ");return s+" ("+l+") {"+k+"}"}function So(s){for(var l=0;l<s.length;l++)if(or(s[l],`
|
|
2
|
-
`)>=0)return!1;return!0}function bo(s,l){var D;if(s.indent===" ")D=" ";else if(typeof s.indent=="number"&&s.indent>0)D=C.call(Array(s.indent+1)," ");else return null;return{base:D,prev:C.call(Array(l+1),D)}}function Xr(s,l){if(s.length===0)return"";var D=`
|
|
3
|
-
`+l.prev+l.base;return D+C.call(s,","+D)+`
|
|
4
|
-
`+l.prev}function Wr(s,l){var D=$(s),W=[];if(D){W.length=s.length;for(var k=0;k<s.length;k++)W[k]=Y(s,k)?l(s[k],s):""}var E=typeof N=="function"?N(s):[],dr;if(V){dr={};for(var Or=0;Or<E.length;Or++)dr["$"+E[Or]]=E[Or]}for(var tr in s)Y(s,tr)&&(D&&String(Number(tr))===tr&&tr<s.length||V&&dr["$"+tr]instanceof Symbol||(G.call(/[^\w$]/,tr)?W.push(l(tr,s)+": "+l(s[tr],s)):W.push(tr+": "+l(s[tr],s))));if(typeof N=="function")for(var mr=0;mr<E.length;mr++)Ir.call(s,E[mr])&&W.push("["+l(E[mr])+"]: "+l(s[E[mr]],s));return W}return st}var lt,ya;function ei(){if(ya)return lt;ya=1;var r=Jr(),e=nr(),n=function(a,u,c){for(var v=a,p;(p=v.next)!=null;v=p)if(p.key===u)return v.next=p.next,c||(p.next=a.next,a.next=p),p},o=function(a,u){if(a){var c=n(a,u);return c&&c.value}},t=function(a,u,c){var v=n(a,u);v?v.value=c:a.next={key:u,next:a.next,value:c}},f=function(a,u){return a?!!n(a,u):!1},i=function(a,u){if(a)return n(a,u,!0)};return lt=function(){var u,c={assert:function(v){if(!c.has(v))throw new e("Side channel does not contain "+r(v))},delete:function(v){var p=u&&u.next,y=i(u,v);return y&&p&&p===y&&(u=void 0),!!y},get:function(v){return o(u,v)},has:function(v){return f(u,v)},set:function(v,p){u||(u={next:void 0}),t(u,v,p)}};return c},lt}var ct,va;function uo(){if(va)return ct;va=1;var r=yr(),e=Q(),n=Jr(),o=nr(),t=r("%Map%",!0),f=e("Map.prototype.get",!0),i=e("Map.prototype.set",!0),a=e("Map.prototype.has",!0),u=e("Map.prototype.delete",!0),c=e("Map.prototype.size",!0);return ct=!!t&&function(){var p,y={assert:function(h){if(!y.has(h))throw new o("Side channel does not contain "+n(h))},delete:function(h){if(p){var m=u(p,h);return c(p)===0&&(p=void 0),m}return!1},get:function(h){if(p)return f(p,h)},has:function(h){return p?a(p,h):!1},set:function(h,m){p||(p=new t),i(p,h,m)}};return y},ct}var pt,ga;function ti(){if(ga)return pt;ga=1;var r=yr(),e=Q(),n=Jr(),o=uo(),t=nr(),f=r("%WeakMap%",!0),i=e("WeakMap.prototype.get",!0),a=e("WeakMap.prototype.set",!0),u=e("WeakMap.prototype.has",!0),c=e("WeakMap.prototype.delete",!0);return pt=f?function(){var p,y,h={assert:function(m){if(!h.has(m))throw new t("Side channel does not contain "+n(m))},delete:function(m){if(f&&m&&(typeof m=="object"||typeof m=="function")){if(p)return c(p,m)}else if(o&&y)return y.delete(m);return!1},get:function(m){return f&&m&&(typeof m=="object"||typeof m=="function")&&p?i(p,m):y&&y.get(m)},has:function(m){return f&&m&&(typeof m=="object"||typeof m=="function")&&p?u(p,m):!!y&&y.has(m)},set:function(m,B){f&&m&&(typeof m=="object"||typeof m=="function")?(p||(p=new f),a(p,m,B)):o&&(y||(y=o()),y.set(m,B))}};return h}:o,pt}var yt,ha;function fo(){if(ha)return yt;ha=1;var r=nr(),e=Jr(),n=ei(),o=uo(),t=ti(),f=t||o||n;return yt=function(){var a,u={assert:function(c){if(!u.has(c))throw new r("Side channel does not contain "+e(c))},delete:function(c){return!!a&&a.delete(c)},get:function(c){return a&&a.get(c)},has:function(c){return!!a&&a.has(c)},set:function(c,v){a||(a=f()),a.set(c,v)}};return u},yt}var vt,da;function ni(){if(da)return vt;da=1;var r=Qt(),e=fo()(),n=nr(),o={assert:function(t,f){if(!t||typeof t!="object"&&typeof t!="function")throw new n("`O` is not an object");if(typeof f!="string")throw new n("`slot` must be a string");if(e.assert(t),!o.has(t,f))throw new n("`"+f+"` is not present on `O`")},get:function(t,f){if(!t||typeof t!="object"&&typeof t!="function")throw new n("`O` is not an object");if(typeof f!="string")throw new n("`slot` must be a string");var i=e.get(t);return i&&i["$"+f]},has:function(t,f){if(!t||typeof t!="object"&&typeof t!="function")throw new n("`O` is not an object");if(typeof f!="string")throw new n("`slot` must be a string");var i=e.get(t);return!!i&&r(i,"$"+f)},set:function(t,f,i){if(!t||typeof t!="object"&&typeof t!="function")throw new n("`O` is not an object");if(typeof f!="string")throw new n("`slot` must be a string");var a=e.get(t);a||(a={},e.set(t,a)),a["$"+f]=i}};return Object.freeze&&Object.freeze(o),vt=o,vt}var gt,ma;function ai(){if(ma)return gt;ma=1;var r=ni(),e=Ht(),n=typeof StopIteration=="object"?StopIteration:null;return gt=function(t){if(!n)throw new e("this environment lacks StopIteration");r.set(t,"[[Done]]",!1);var f={next:function(){var a=r.get(this,"[[Iterator]]"),u=!!r.get(a,"[[Done]]");try{return{done:u,value:u?void 0:a.next()}}catch(c){if(r.set(a,"[[Done]]",!0),c!==n)throw c;return{done:!0,value:void 0}}}};return r.set(f,"[[Iterator]]",t),f},gt}var ht,Sa;function so(){if(Sa)return ht;Sa=1;var r={}.toString;return ht=Array.isArray||function(e){return r.call(e)=="[object Array]"},ht}var dt,ba;function lo(){if(ba)return dt;ba=1;var r=Q(),e=r("String.prototype.valueOf"),n=function(a){try{return e(a),!0}catch{return!1}},o=r("Object.prototype.toString"),t="[object String]",f=Pr()();return dt=function(a){return typeof a=="string"?!0:!a||typeof a!="object"?!1:f?n(a):o(a)===t},dt}var mt,Aa;function co(){if(Aa)return mt;Aa=1;var r=typeof Map=="function"&&Map.prototype?Map:null,e=typeof Set=="function"&&Set.prototype?Set:null,n;r||(n=function(i){return!1});var o=r?Map.prototype.has:null,t=e?Set.prototype.has:null;return!n&&!o&&(n=function(i){return!1}),mt=n||function(i){if(!i||typeof i!="object")return!1;try{if(o.call(i),t)try{t.call(i)}catch{return!0}return i instanceof r}catch{}return!1},mt}var St,Oa;function po(){if(Oa)return St;Oa=1;var r=typeof Map=="function"&&Map.prototype?Map:null,e=typeof Set=="function"&&Set.prototype?Set:null,n;e||(n=function(i){return!1});var o=r?Map.prototype.has:null,t=e?Set.prototype.has:null;return!n&&!t&&(n=function(i){return!1}),St=n||function(i){if(!i||typeof i!="object")return!1;try{if(t.call(i),o)try{o.call(i)}catch{return!0}return i instanceof e}catch{}return!1},St}var wa;function oi(){if(wa)return Cr.exports;wa=1;var r=io(),e=ai();if(Vt()()||Kr()()){var n=Symbol.iterator;Cr.exports=function(P){if(P!=null&&typeof P[n]<"u")return P[n]();if(r(P))return Array.prototype[n].call(P)}}else{var o=so(),t=lo(),f=yr(),i=f("%Map%",!0),a=f("%Set%",!0),u=no(),c=u("Array.prototype.push"),v=u("String.prototype.charCodeAt"),p=u("String.prototype.slice"),y=function(P,_){var L=P.length;if(_+1>=L)return _+1;var N=v(P,_);if(N<55296||N>56319)return _+1;var H=v(P,_+1);return H<56320||H>57343?_+1:_+2},h=function(P){var _=0;return{next:function(){var N=_>=P.length,H;return N||(H=P[_],_+=1),{done:N,value:H}}}},m=function(P,_){if(o(P)||r(P))return h(P);if(t(P)){var L=0;return{next:function(){var H=y(P,L),V=p(P,L,H);return L=H,{done:H>P.length,value:V}}}}if(_&&typeof P["_es6-shim iterator_"]<"u")return P["_es6-shim iterator_"]()};if(!i&&!a)Cr.exports=function(P){if(P!=null)return m(P,!0)};else{var B=co(),w=po(),q=u("Map.prototype.forEach",!0),O=u("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var b=u("Map.prototype.iterator",!0),T=u("Set.prototype.iterator",!0);var X=u("Map.prototype.@@iterator",!0)||u("Map.prototype._es6-shim iterator_",!0),G=u("Set.prototype.@@iterator",!0)||u("Set.prototype._es6-shim iterator_",!0),F=function(P){if(B(P)){if(b)return e(b(P));if(X)return X(P);if(q){var _=[];return q(P,function(N,H){c(_,[H,N])}),h(_)}}if(w(P)){if(T)return e(T(P));if(G)return G(P);if(O){var L=[];return O(P,function(N){c(L,N)}),h(L)}}};Cr.exports=function(P){return F(P)||m(P)}}}return Cr.exports}var bt,qa;function yo(){if(qa)return bt;qa=1;var r=function(e){return e!==e};return bt=function(n,o){return n===0&&o===0?1/n===1/o:!!(n===o||r(n)&&r(o))},bt}var At,Pa;function vo(){if(Pa)return At;Pa=1;var r=yo();return At=function(){return typeof Object.is=="function"?Object.is:r},At}var Ot,Ia;function ii(){if(Ia)return Ot;Ia=1;var r=vo(),e=qr();return Ot=function(){var o=r();return e(Object,{is:o},{is:function(){return Object.is!==o}}),o},Ot}var wt,$a;function ui(){if($a)return wt;$a=1;var r=qr(),e=jr(),n=yo(),o=vo(),t=ii(),f=e(o(),Object);return r(f,{getPolyfill:o,implementation:n,shim:t}),wt=f,wt}var qt,Ra;function go(){if(Ra)return qt;Ra=1;var r=jr(),e=Q(),n=yr(),o=n("%ArrayBuffer%",!0),t=e("ArrayBuffer.prototype.byteLength",!0),f=e("Object.prototype.toString"),i=!!o&&!t&&new o(0).slice,a=!!i&&r(i);return qt=t||a?function(c){if(!c||typeof c!="object")return!1;try{return t?t(c):a(c,0),!0}catch{return!1}}:o?function(c){return f(c)==="[object ArrayBuffer]"}:function(c){return!1},qt}var Pt,xa;function fi(){if(xa)return Pt;xa=1;var r=Q(),e=r("Date.prototype.getDay"),n=function(a){try{return e(a),!0}catch{return!1}},o=r("Object.prototype.toString"),t="[object Date]",f=Pr()();return Pt=function(a){return typeof a!="object"||a===null?!1:f?n(a):o(a)===t},Pt}var It,Ea;function ho(){if(Ea)return It;Ea=1;var r=Q(),e=Pr()(),n=Qt(),o=wr(),t;if(e){var f=r("RegExp.prototype.exec"),i={},a=function(){throw i},u={toString:a,valueOf:a};typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=a),t=function(y){if(!y||typeof y!="object")return!1;var h=o(y,"lastIndex"),m=h&&n(h,"value");if(!m)return!1;try{f(y,u)}catch(B){return B===i}}}else{var c=r("Object.prototype.toString"),v="[object RegExp]";t=function(y){return!y||typeof y!="object"&&typeof y!="function"?!1:c(y)===v}}return It=t,It}var $t,Ba;function si(){if(Ba)return $t;Ba=1;var r=Q(),e=r("SharedArrayBuffer.prototype.byteLength",!0);return $t=e?function(o){if(!o||typeof o!="object")return!1;try{return e(o),!0}catch{return!1}}:function(o){return!1},$t}var Rt,ja;function li(){if(ja)return Rt;ja=1;var r=Q(),e=r("Number.prototype.toString"),n=function(a){try{return e(a),!0}catch{return!1}},o=r("Object.prototype.toString"),t="[object Number]",f=Pr()();return Rt=function(a){return typeof a=="number"?!0:!a||typeof a!="object"?!1:f?n(a):o(a)===t},Rt}var xt,Ta;function ci(){if(Ta)return xt;Ta=1;var r=Q(),e=r("Boolean.prototype.toString"),n=r("Object.prototype.toString"),o=function(a){try{return e(a),!0}catch{return!1}},t="[object Boolean]",f=Pr()();return xt=function(a){return typeof a=="boolean"?!0:a===null||typeof a!="object"?!1:f?o(a):n(a)===t},xt}var Hr={exports:{}},Et,Ma;function pi(){if(Ma)return Et;Ma=1;var r=Q(),e=ho(),n=r("RegExp.prototype.exec"),o=nr();return Et=function(f){if(!e(f))throw new o("`regex` must be a RegExp");return function(a){return n(f,a)!==null}},Et}var Da;function yi(){if(Da)return Hr.exports;Da=1;var r=Q(),e=r("Object.prototype.toString"),n=Vt()(),o=pi();if(n){var t=r("Symbol.prototype.toString"),f=o(/^Symbol\(.*\)$/),i=function(u){return typeof u.valueOf()!="symbol"?!1:f(t(u))};Hr.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||e(u)!=="[object Symbol]")return!1;try{return i(u)}catch{return!1}}}else Hr.exports=function(u){return!1};return Hr.exports}var Gr={exports:{}},Bt,Ca;function vi(){if(Ca)return Bt;Ca=1;var r=typeof BigInt<"u"&&BigInt;return Bt=function(){return typeof r=="function"&&typeof BigInt=="function"&&typeof r(42)=="bigint"&&typeof BigInt(42)=="bigint"},Bt}var Fa;function gi(){if(Fa)return Gr.exports;Fa=1;var r=vi()();if(r){var e=BigInt.prototype.valueOf,n=function(t){try{return e.call(t),!0}catch{}return!1};Gr.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:n(t)}}else Gr.exports=function(t){return!1};return Gr.exports}var jt,_a;function hi(){if(_a)return jt;_a=1;var r=lo(),e=li(),n=ci(),o=yi(),t=gi();return jt=function(i){if(i==null||typeof i!="object"&&typeof i!="function")return null;if(r(i))return"String";if(e(i))return"Number";if(n(i))return"Boolean";if(o(i))return"Symbol";if(t(i))return"BigInt"},jt}var Tt,Na;function di(){if(Na)return Tt;Na=1;var r=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,e=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,n;r||(n=function(i){return!1});var o=r?r.prototype.has:null,t=e?e.prototype.has:null;return!n&&!o&&(n=function(i){return!1}),Tt=n||function(i){if(!i||typeof i!="object")return!1;try{if(o.call(i,o),t)try{t.call(i,t)}catch{return!0}return i instanceof r}catch{}return!1},Tt}var Ur={exports:{}},Wa;function mi(){if(Wa)return Ur.exports;Wa=1;var r=yr(),e=Q(),n=r("%WeakSet%",!0),o=e("WeakSet.prototype.has",!0);if(o){var t=e("WeakMap.prototype.has",!0);Ur.exports=function(i){if(!i||typeof i!="object")return!1;try{if(o(i,o),t)try{t(i,t)}catch{return!0}return i instanceof n}catch{}return!1}}else Ur.exports=function(i){return!1};return Ur.exports}var Mt,ka;function Si(){if(ka)return Mt;ka=1;var r=co(),e=po(),n=di(),o=mi();return Mt=function(f){if(f&&typeof f=="object"){if(r(f))return"Map";if(e(f))return"Set";if(n(f))return"WeakMap";if(o(f))return"WeakSet"}return!1},Mt}var Dt,La;function bi(){if(La)return Dt;La=1;var r=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,n,o;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{n=Object.defineProperty({},"length",{get:function(){throw o}}),o={},e(function(){throw 42},null,n)}catch(O){O!==o&&(e=null)}else e=null;var t=/^\s*class\b/,f=function(b){try{var T=r.call(b);return t.test(T)}catch{return!1}},i=function(b){try{return f(b)?!1:(r.call(b),!0)}catch{return!1}},a=Object.prototype.toString,u="[object Object]",c="[object Function]",v="[object GeneratorFunction]",p="[object HTMLAllCollection]",y="[object HTML document.all class]",h="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,B=!(0 in[,]),w=function(){return!1};if(typeof document=="object"){var q=document.all;a.call(q)===a.call(document.all)&&(w=function(b){if((B||!b)&&(typeof b>"u"||typeof b=="object"))try{var T=a.call(b);return(T===p||T===y||T===h||T===u)&&b("")==null}catch{}return!1})}return Dt=e?function(b){if(w(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;try{e(b,null,n)}catch(T){if(T!==o)return!1}return!f(b)&&i(b)}:function(b){if(w(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;if(m)return i(b);if(f(b))return!1;var T=a.call(b);return T!==c&&T!==v&&!/^\[object HTML/.test(T)?!1:i(b)},Dt}var Ct,Ha;function Ai(){if(Ha)return Ct;Ha=1;var r=bi(),e=Object.prototype.toString,n=Object.prototype.hasOwnProperty,o=function(u,c,v){for(var p=0,y=u.length;p<y;p++)n.call(u,p)&&(v==null?c(u[p],p,u):c.call(v,u[p],p,u))},t=function(u,c,v){for(var p=0,y=u.length;p<y;p++)v==null?c(u.charAt(p),p,u):c.call(v,u.charAt(p),p,u)},f=function(u,c,v){for(var p in u)n.call(u,p)&&(v==null?c(u[p],p,u):c.call(v,u[p],p,u))};function i(a){return e.call(a)==="[object Array]"}return Ct=function(u,c,v){if(!r(c))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=v),i(u)?o(u,c,p):typeof u=="string"?t(u,c,p):f(u,c,p)},Ct}var Ft,Ga;function Oi(){return Ga||(Ga=1,Ft=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Ft}var _t,Ua;function wi(){if(Ua)return _t;Ua=1;var r=Oi(),e=typeof globalThis>"u"?Br.commonjsGlobal:globalThis;return _t=function(){for(var o=[],t=0;t<r.length;t++)typeof e[r[t]]=="function"&&(o[o.length]=r[t]);return o},_t}var Nt,za;function qi(){if(za)return Nt;za=1;var r=Ai(),e=wi(),n=jr(),o=Q(),t=wr(),f=Xt(),i=o("Object.prototype.toString"),a=Pr()(),u=typeof globalThis>"u"?Br.commonjsGlobal:globalThis,c=e(),v=o("String.prototype.slice"),p=o("Array.prototype.indexOf",!0)||function(w,q){for(var O=0;O<w.length;O+=1)if(w[O]===q)return O;return-1},y={__proto__:null};a&&t&&f?r(c,function(B){var w=new u[B];if(Symbol.toStringTag in w&&f){var q=f(w),O=t(q,Symbol.toStringTag);if(!O&&q){var b=f(q);O=t(b,Symbol.toStringTag)}y["$"+B]=n(O.get)}}):r(c,function(B){var w=new u[B],q=w.slice||w.set;q&&(y["$"+B]=n(q))});var h=function(w){var q=!1;return r(y,function(O,b){if(!q)try{"$"+O(w)===b&&(q=v(b,1))}catch{}}),q},m=function(w){var q=!1;return r(y,function(O,b){if(!q)try{O(w),q=v(b,1)}catch{}}),q};return Nt=function(w){if(!w||typeof w!="object")return!1;if(!a){var q=v(i(w),8,-1);return p(c,q)>-1?q:q!=="Object"?!1:m(w)}return t?h(w):null},Nt}var Wt,Va;function Pi(){if(Va)return Wt;Va=1;var r=Q(),e=r("ArrayBuffer.prototype.byteLength",!0),n=go();return Wt=function(t){return n(t)?e?e(t):t.byteLength:NaN},Wt}var kt,Ka;function Ii(){if(Ka)return kt;Ka=1;var r=Vo(),e=no(),n=Xo(),o=yr(),t=oi(),f=fo(),i=ui(),a=io(),u=so(),c=go(),v=fi(),p=ho(),y=si(),h=Lt(),m=hi(),B=Si(),w=qi(),q=Pi(),O=e("SharedArrayBuffer.prototype.byteLength",!0),b=e("Date.prototype.getTime"),T=Object.getPrototypeOf,X=e("Object.prototype.toString"),G=o("%Set%",!0),F=e("Map.prototype.has",!0),C=e("Map.prototype.get",!0),P=e("Map.prototype.size",!0),_=e("Set.prototype.add",!0),L=e("Set.prototype.delete",!0),N=e("Set.prototype.has",!0),H=e("Set.prototype.size",!0);function V(g,d,R,$){for(var j=t(g),M;(M=j.next())&&!M.done;)if(U(d,M.value,R,$))return L(g,M.value),!0;return!1}function fr(g){if(typeof g>"u")return null;if(typeof g!="object")return typeof g=="symbol"?!1:typeof g=="string"||typeof g=="number"?+g==+g:!0}function Ir(g,d,R,$,j,M){var A=fr(R);if(A!=null)return A;var I=C(d,A),S=r({},j,{strict:!1});return typeof I>"u"&&!F(d,A)||!U($,I,S,M)?!1:!F(g,A)&&U($,I,S,M)}function Sr(g,d,R){var $=fr(R);return $??(N(d,$)&&!N(g,$))}function ar(g,d,R,$,j,M){for(var A=t(g),I,S;(I=A.next())&&!I.done;)if(S=I.value,U(R,S,j,M)&&U($,C(d,S),j,M))return L(g,S),!0;return!1}function U(g,d,R,$){var j=R||{};if(j.strict?i(g,d):g===d)return!0;var M=m(g),A=m(d);if(M!==A)return!1;if(!g||!d||typeof g!="object"&&typeof d!="object")return j.strict?i(g,d):g==d;var I=$.has(g),S=$.has(d),x;if(I&&S){if($.get(g)===$.get(d))return!0}else x={};return I||$.set(g,x),S||$.set(d,x),vr(g,d,j,$)}function br(g){return!g||typeof g!="object"||typeof g.length!="number"||typeof g.copy!="function"||typeof g.slice!="function"||g.length>0&&typeof g[0]!="number"?!1:!!(g.constructor&&g.constructor.isBuffer&&g.constructor.isBuffer(g))}function $r(g,d,R,$){if(H(g)!==H(d))return!1;for(var j=t(g),M=t(d),A,I,S;(A=j.next())&&!A.done;)if(A.value&&typeof A.value=="object")S||(S=new G),_(S,A.value);else if(!N(d,A.value)){if(R.strict||!Sr(g,d,A.value))return!1;S||(S=new G),_(S,A.value)}if(S){for(;(I=M.next())&&!I.done;)if(I.value&&typeof I.value=="object"){if(!V(S,I.value,R.strict,$))return!1}else if(!R.strict&&!N(g,I.value)&&!V(S,I.value,R.strict,$))return!1;return H(S)===0}return!0}function Ar(g,d,R,$){if(P(g)!==P(d))return!1;for(var j=t(g),M=t(d),A,I,S,x,z,K;(A=j.next())&&!A.done;)if(x=A.value[0],z=A.value[1],x&&typeof x=="object")S||(S=new G),_(S,x);else if(K=C(d,x),typeof K>"u"&&!F(d,x)||!U(z,K,R,$)){if(R.strict||!Ir(g,d,x,z,R,$))return!1;S||(S=new G),_(S,x)}if(S){for(;(I=M.next())&&!I.done;)if(x=I.value[0],K=I.value[1],x&&typeof x=="object"){if(!ar(S,g,x,K,R,$))return!1}else if(!R.strict&&(!g.has(x)||!U(C(g,x),K,R,$))&&!ar(S,g,x,K,r({},R,{strict:!1}),$))return!1;return H(S)===0}return!0}function vr(g,d,R,$){var j,M;if(typeof g!=typeof d||g==null||d==null||X(g)!==X(d)||a(g)!==a(d))return!1;var A=u(g),I=u(d);if(A!==I)return!1;var S=g instanceof Error,x=d instanceof Error;if(S!==x||(S||x)&&(g.name!==d.name||g.message!==d.message))return!1;var z=p(g),K=p(d);if(z!==K||(z||K)&&(g.source!==d.source||n(g)!==n(d)))return!1;var J=v(g),Y=v(d);if(J!==Y||(J||Y)&&b(g)!==b(d)||R.strict&&T&&T(g)!==T(d))return!1;var Z=w(g),sr=w(d);if(Z!==sr)return!1;if(Z||sr){if(g.length!==d.length)return!1;for(j=0;j<g.length;j++)if(g[j]!==d[j])return!1;return!0}var or=br(g),rr=br(d);if(or!==rr)return!1;if(or||rr){if(g.length!==d.length)return!1;for(j=0;j<g.length;j++)if(g[j]!==d[j])return!1;return!0}var lr=c(g),cr=c(d);if(lr!==cr)return!1;if(lr||cr)return q(g)!==q(d)?!1:typeof Uint8Array=="function"&&U(new Uint8Array(g),new Uint8Array(d),R,$);var pr=y(g),Nr=y(d);if(pr!==Nr)return!1;if(pr||Nr)return O(g)!==O(d)?!1:typeof Uint8Array=="function"&&U(new Uint8Array(g),new Uint8Array(d),R,$);if(typeof g!=typeof d)return!1;var gr=h(g),Rr=h(d);if(gr.length!==Rr.length)return!1;for(gr.sort(),Rr.sort(),j=gr.length-1;j>=0;j--)if(gr[j]!=Rr[j])return!1;for(j=gr.length-1;j>=0;j--)if(M=gr[j],!U(g[M],d[M],R,$))return!1;var Tr=B(g),hr=B(d);return Tr!==hr?!1:Tr==="Set"||hr==="Set"?$r(g,d,R,$):Tr==="Map"?Ar(g,d,R,$):!0}return kt=function(d,R,$){return U(d,R,$,f())},kt}var $i=Ii();const Ri=Br.getDefaultExportFromCjs($i);function xi(r){return r}function mo(r,e,n,o){const t=xi,[f,i]=ur.useState(t(n)),a=ur.useRef(f);return ur.useEffect(()=>{const u=()=>{const c={...n,...r.getAttributes(e)};Object.keys(c).forEach(p=>{(c[p]===null||c[p]===void 0)&&(c[p]=n?n[p]:null)});const v=t(c);Ri(a.current,v)||(i(v),a.current=v)};return r.on("selectionUpdate",u),r.on("transaction",u),()=>{r.off("selectionUpdate",u),r.off("transaction",u)}},[r,n,e,t]),f}function Ei({node:r}){const{text:e}=r.attrs,n=ur.useMemo(()=>{try{return Ja.renderToString(`${e}`)}catch{return e}},[e]),o=ur.useMemo(()=>e.trim()?er.jsx("span",{contentEditable:!1,dangerouslySetInnerHTML:{__html:n}}):er.jsx("span",{contentEditable:!1,children:"Not enter a formula"}),[e,n]);return er.jsx(Fr.NodeViewWrapper,{as:"span",style:{display:"inline-block"},children:o})}function Bi(){const{t:r}=Io.useLocale(),[e,n]=ur.useState(!1),o=oe.useButtonProps(zr.name),{icon:t=void 0,tooltip:f=void 0,tooltipOptions:i={},isActive:a=void 0}=(o==null?void 0:o.componentProps)??{},{editorDisabled:u}=oe.useToggleActive(a),c=oe.useEditorInstance(),v=mo(c,zr.name,{text:"",defaultShowPicker:!1}),{text:p,defaultShowPicker:y}=v,[h,m]=ur.useState(p||""),B=ur.useCallback(()=>{c.chain().focus().setKatex({text:h}).run(),m(""),n(!1)},[c,h]);ur.useEffect(()=>{y&&c.chain().updateAttributes(zr.name,{defaultShowPicker:!1}).focus().run()},[c,y]);const w=ur.useMemo(()=>{try{return Ja.renderToString(`${h}`)}catch{return h}},[h]),q=ur.useMemo(()=>`${h}`.trim()?w:null,[h,w]);return er.jsxs(Dr.Dialog,{onOpenChange:n,open:e,children:[er.jsx(Dr.DialogTrigger,{asChild:!0,disabled:u,children:er.jsx(wo.ActionButton,{disabled:u,icon:t,tooltip:f,tooltipOptions:i,action:()=>{u||n(!0)}})}),er.jsxs(Dr.DialogContent,{className:"richtext-z-[99999] !richtext-max-w-[1300px]",children:[er.jsx(Dr.DialogTitle,{children:r("editor.formula.dialog.text")}),er.jsx("div",{style:{height:"100%",border:"1px solid hsl(var(--border))"},children:er.jsxs("div",{className:"richtext-flex richtext-gap-[10px] richtext-rounded-[10px] richtext-p-[10px]",children:[er.jsx(Po.Textarea,{autoFocus:!0,className:"richtext-flex-1",onChange:O=>m(O.target.value),placeholder:"Text",required:!0,rows:10,value:h,style:{color:"hsl(var(--foreground))"}}),er.jsx("div",{className:"richtext-flex richtext-flex-1 richtext-items-center richtext-justify-center richtext-rounded-[10px] richtext-p-[10px]",dangerouslySetInnerHTML:{__html:q||""},style:{height:"100%",borderWidth:1,minHeight:500,background:"#fff"}})]})}),er.jsx(Dr.DialogFooter,{children:er.jsx(qo.Button,{onClick:B,type:"button",children:"Save changes"})})]})]})}function ji(r){return e=>e.getAttribute(r)}const zr=Fr.Node3.create({name:"katex",group:"inline",inline:!0,defining:!0,draggable:!0,selectable:!0,addOptions(){return{HTMLAttributes:{class:"katex"},button:({t:r})=>({componentProps:{action:()=>!0,isActive:()=>!1,disabled:!1,icon:"KatexIcon",tooltip:r("editor.katex.tooltip")}})}},addAttributes(){return{text:{default:"",parseHTML:ji("text")},defaultShowPicker:{default:!1}}},parseHTML(){return[{tag:"span.katex"}]},renderHTML({HTMLAttributes:r}){return["span",Fr.mergeAttributes(this.options&&this.options.HTMLAttributes||{},r)]},addCommands(){return{setKatex:r=>({commands:e})=>e.insertContent({type:this.name,attrs:r})}},addInputRules(){return[Fr.nodeInputRule({find:/^\$katex\$$/,type:this.type,getAttributes:()=>({defaultShowPicker:!0})})]},addNodeView(){return Fr.ReactNodeViewRenderer(Ei)}});exports.Katex=zr;exports.RichTextKatex=Bi;exports.useAttributes=mo;
|
package/lib/index-BFXkgG1P.cjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),x=require("react"),Je=require("@radix-ui/react-slot"),ge=require("./index-FSRjMsxW.cjs"),fe=require("./theme.cjs"),E=require("./events.constant-DQYeJpu5.cjs"),Ye=require("@radix-ui/react-toggle"),et=require("@radix-ui/react-tooltip"),tt=require("@radix-ui/react-select"),s=require("lucide-react"),$=require("@radix-ui/react-icons"),Se=require("./index-BBNITgNi.cjs");function q(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const N=q(x),ke=q(Ye),O=q(et),C=q(tt),oe="-",rt=e=>{const r=nt(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{const a=l.split(oe);return a[0]===""&&a.length!==1&&a.shift(),ze(a,r)||ot(l)},getConflictingClassGroupIds:(l,a)=>{const h=t[l]||[];return a&&o[l]?[...h,...o[l]]:h}}},ze=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const t=e[0],o=r.nextPart.get(t),c=o?ze(e.slice(1),o):void 0;if(c)return c;if(r.validators.length===0)return;const i=e.join(oe);return(l=r.validators.find(({validator:a})=>a(i)))==null?void 0:l.classGroupId},xe=/^\[(.+)\]$/,ot=e=>{if(xe.test(e)){const r=xe.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},nt=e=>{const{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return st(Object.entries(e.classGroups),t).forEach(([i,l])=>{te(l,o,i,r)}),o},te=(e,r,t,o)=>{e.forEach(c=>{if(typeof c=="string"){const i=c===""?r:be(r,c);i.classGroupId=t;return}if(typeof c=="function"){if(it(c)){te(c(o),r,t,o);return}r.validators.push({validator:c,classGroupId:t});return}Object.entries(c).forEach(([i,l])=>{te(l,be(r,i),t,o)})})},be=(e,r)=>{let t=e;return r.split(oe).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},it=e=>e.isThemeGetter,st=(e,r)=>r?e.map(([t,o])=>{const c=o.map(i=>typeof i=="string"?r+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,a])=>[r+l,a])):i);return[t,c]}):e,ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;const c=(i,l)=>{t.set(i,l),r++,r>e&&(r=0,o=t,t=new Map)};return{get(i){let l=t.get(i);if(l!==void 0)return l;if((l=o.get(i))!==void 0)return c(i,l),l},set(i,l){t.has(i)?t.set(i,l):c(i,l)}}},Ee="!",at=e=>{const{separator:r,experimentalParseClassName:t}=e,o=r.length===1,c=r[0],i=r.length,l=a=>{const h=[];let u=0,m=0,g;for(let f=0;f<a.length;f++){let j=a[f];if(u===0){if(j===c&&(o||a.slice(f,f+i)===r)){h.push(a.slice(m,f)),m=f+i;continue}if(j==="/"){g=f;continue}}j==="["?u++:j==="]"&&u--}const d=h.length===0?a:a.substring(m),b=d.startsWith(Ee),S=b?d.substring(1):d,v=g&&g>m?g-m:void 0;return{modifiers:h,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:v}};return t?a=>t({className:a,parseClassName:l}):l},lt=e=>{if(e.length<=1)return e;const r=[];let t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},dt=e=>({cache:ct(e.cacheSize),parseClassName:at(e),...rt(e)}),ut=/\s+/,ht=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:c}=r,i=[],l=e.trim().split(ut);let a="";for(let h=l.length-1;h>=0;h-=1){const u=l[h],{modifiers:m,hasImportantModifier:g,baseClassName:d,maybePostfixModifierPosition:b}=t(u);let S=!!b,v=o(S?d.substring(0,b):d);if(!v){if(!S){a=u+(a.length>0?" "+a:a);continue}if(v=o(d),!v){a=u+(a.length>0?" "+a:a);continue}S=!1}const f=lt(m).join(":"),j=g?f+Ee:f,k=j+v;if(i.includes(k))continue;i.push(k);const I=c(v,S);for(let A=0;A<I.length;++A){const W=I[A];i.push(j+W)}a=u+(a.length>0?" "+a:a)}return a};function pt(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=Me(r))&&(o&&(o+=" "),o+=t);return o}const Me=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=Me(e[o]))&&(t&&(t+=" "),t+=r);return t};function mt(e,...r){let t,o,c,i=l;function l(h){const u=r.reduce((m,g)=>g(m),e());return t=dt(u),o=t.cache.get,c=t.cache.set,i=a,a(h)}function a(h){const u=o(h);if(u)return u;const m=ht(h,t);return c(h,m),m}return function(){return i(pt.apply(null,arguments))}}const w=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},Le=/^\[(?:([a-z-]+):)?(.+)\]$/i,gt=/^\d+\/\d+$/,ft=new Set(["px","full","screen"]),xt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bt=/\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$/,wt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=e=>P(e)||ft.has(e)||gt.test(e),T=e=>V(e,"length",Lt),P=e=>!!e&&!Number.isNaN(Number(e)),Z=e=>V(e,"number",P),B=e=>!!e&&Number.isInteger(Number(e)),Ct=e=>e.endsWith("%")&&P(e.slice(0,-1)),p=e=>Le.test(e),R=e=>xt.test(e),jt=new Set(["length","size","percentage"]),St=e=>V(e,jt,Ne),kt=e=>V(e,"position",Ne),zt=new Set(["image","url"]),Et=e=>V(e,zt,Tt),Mt=e=>V(e,"",Nt),G=()=>!0,V=(e,r,t)=>{const o=Le.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},Lt=e=>bt.test(e)&&!wt.test(e),Ne=()=>!1,Nt=e=>vt.test(e),Tt=e=>yt.test(e),Rt=()=>{const e=w("colors"),r=w("spacing"),t=w("blur"),o=w("brightness"),c=w("borderColor"),i=w("borderRadius"),l=w("borderSpacing"),a=w("borderWidth"),h=w("contrast"),u=w("grayscale"),m=w("hueRotate"),g=w("invert"),d=w("gap"),b=w("gradientColorStops"),S=w("gradientColorStopPositions"),v=w("inset"),f=w("margin"),j=w("opacity"),k=w("padding"),I=w("saturate"),A=w("scale"),W=w("sepia"),ae=w("skew"),le=w("space"),de=w("translate"),D=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",p,r],y=()=>[p,r],ue=()=>["",L,T],_=()=>["auto",P,p],he=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",p],me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[P,p];return{cacheSize:500,separator:":",theme:{colors:[G],spacing:[L,T],blur:["none","",R,p],brightness:M(),borderColor:[e],borderRadius:["none","","full",R,p],borderSpacing:y(),borderWidth:ue(),contrast:M(),grayscale:H(),hueRotate:M(),invert:H(),gap:y(),gradientColorStops:[e],gradientColorStopPositions:[Ct,T],inset:K(),margin:K(),opacity:M(),padding:y(),saturate:M(),scale:M(),sepia:H(),skew:M(),space:y(),translate:y()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[R]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"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:[...he(),p]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",B,p]}],basis:[{basis:K()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",B,p]}],"grid-cols":[{"grid-cols":[G]}],"col-start-end":[{col:["auto",{span:["full",B,p]},p]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[G]}],"row-start-end":[{row:["auto",{span:[B,p]},p]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[le]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[le]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,r]}],"min-w":[{"min-w":[p,r,"min","max","fit"]}],"max-w":[{"max-w":[p,r,"none","full","min","max","fit","prose",{screen:[R]},R]}],h:[{h:[p,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[p,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[p,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,r,"auto","min","max","fit"]}],"font-size":[{text:["base",R,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Z]}],"font-family":[{font:[G]}],"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",p]}],"line-clamp":[{"line-clamp":["none",P,Z]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",L,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[j]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",L,T]}],"underline-offset":[{"underline-offset":["auto",L,p]}],"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:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],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",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[j]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...he(),kt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",St]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Et]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[j]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[j]}],"divide-style":[{divide:U()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[L,p]}],"outline-w":[{outline:[L,T]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[j]}],"ring-offset-w":[{"ring-offset":[L,T]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",R,Mt]}],"shadow-color":[{shadow:[G]}],opacity:[{opacity:[j]}],"mix-blend":[{"mix-blend":[...pe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":pe()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",R,p]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[g]}],saturate:[{saturate:[I]}],sepia:[{sepia:[W]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[j]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[W]}],"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",p]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[B,p]}],"translate-x":[{"translate-x":[de]}],"translate-y":[{"translate-y":[de]}],"skew-x":[{"skew-x":[ae]}],"skew-y":[{"skew-y":[ae]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],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",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"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",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[L,T,Z]}],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"]}}},At=mt(Rt);function z(...e){return At(Se.clsx(e))}let J;function Y(){return J===void 0&&(J=navigator.platform.includes("Mac")),J}function Te(e){return`${e}`.toLowerCase()==="mod"?Y()?"⌘":"Ctrl":`${e}`.toLowerCase()==="alt"?Y()?"⌥":"Alt":`${e}`.toLowerCase()==="shift"?Y()?"⇧":"Shift":e}function Re(e){return e.map(Te).join(" ")}const Pt=x.forwardRef((e,r)=>{const{icon:t=void 0,tooltip:o=void 0,disabled:c=!1,customClass:i="",loading:l=void 0,shortcutKeys:a=void 0,tooltipOptions:h={},action:u=void 0,isActive:m=void 0,children:g,asChild:d=!1,upload:b=!1,initialDisplayedColor:S=void 0,dataState:v=!1,...f}=e,j=Ie[t],k=d?Je.Slot:ne;return n.jsxs(Be,{children:[n.jsx(Ge,{asChild:!0,children:n.jsxs(k,{className:z("richtext-w-[32px] richtext-h-[32px]",i),"data-state":v?"on":"off",disabled:c,onClick:u,ref:r,size:"sm",...f,children:[j&&n.jsx(j,{className:"richtext-size-4"}),g]})}),o&&n.jsx(ie,{...h,className:"richtext-tooltip",children:n.jsxs("div",{className:"richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center",children:[n.jsx("div",{children:o}),!!(a!=null&&a.length)&&n.jsx("span",{children:Re(a)})]})})]})}),ee=typeof window>"u";function we(e,r,t=window){const o=x.useRef(void 0);x.useEffect(()=>{o.current=r},[r]),x.useEffect(()=>{if(!(t&&t.addEventListener))return;const i=l=>{o.current&&o.current(l)};return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}},[e,t])}function F(e,r,t={}){const{initializeWithValue:o=!0}=t,c=x.useCallback(d=>t.serializer?t.serializer(d):JSON.stringify(d),[t]),i=x.useCallback(d=>{if(t.deserializer)return t.deserializer(d);if(d==="undefined")return;const b=r instanceof Function?r():r;let S;try{S=JSON.parse(d)}catch(v){return console.error("Error parsing JSON:",v),b}return S},[t,r]),l=x.useCallback(()=>{const d=r instanceof Function?r():r;if(ee)return d;try{const b=window.localStorage.getItem(e);return b?i(b):d}catch(b){return console.warn(`Error reading localStorage key “${e}”:`,b),d}},[r,e,i]),[a,h]=x.useState(()=>o?l():r instanceof Function?r():r),u=x.useCallback(d=>{ee&&console.warn(`Tried setting localStorage key “${e}” even though environment is not a client`);try{const b=d instanceof Function?d(l()):d;window.localStorage.setItem(e,c(b)),h(b),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))}catch(b){console.warn(`Error setting localStorage key “${e}”:`,b)}},[e,c,l]),m=x.useCallback(()=>{ee&&console.warn(`Tried removing localStorage key “${e}” even though environment is not a client`);const d=r instanceof Function?r():r;window.localStorage.removeItem(e),h(d),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))},[e,r]);x.useEffect(()=>{h(l())},[e]);const g=x.useCallback(d=>{d.key&&d.key!==e||h(l())},[e,l]);return we("storage",g),we("local-storage",g),[a,u,m]}function Vt(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.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 It(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.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 Ht(){return n.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:n.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 Bt(){return n.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:n.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 Gt(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.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 Ot(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.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 Ae(e){return n.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",...e,children:n.jsx("path",{fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M36 19L24 31L12 19z"})})}function Wt(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M9 7v10h6v-2h-4V7z"})})}function _t(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M9 7c-1.1 0-2 .9-2 2v8h2V9h2v7h2V9h2v8h2V9a2 2 0 0 0-2-2z"})})}function Ut(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.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 $t(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.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 Ft(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.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 qt(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.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 Dt(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.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 Xt(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.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 Pe(){return n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:[n.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"}),n.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 Ve(){return n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",className:"icon",viewBox:"0 0 1024 1024",children:[n.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"}),n.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 Kt(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",color:"currentColor",children:[n.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"}),n.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 Qt(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",children:n.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 Zt(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 48 48",children:n.jsxs("g",{fill:"none",stroke:"currentColor",strokeWidth:"4",children:[n.jsx("circle",{cx:"10",cy:"24",r:"4"}),n.jsx("circle",{cx:"38",cy:"10",r:"4"}),n.jsx("circle",{cx:"38",cy:"24",r:"4"}),n.jsx("circle",{cx:"38",cy:"38",r:"4"}),n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M34 38H22V10h12M14 24h20"})]})})}function Jt(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",children:n.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 Yt(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.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 er(){return n.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:n.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 tr(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[n.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"}),n.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 Ie={Bold:s.Bold,LoaderCircle:s.LoaderCircle,Italic:s.Italic,Underline:s.Underline,Quote:s.Quote,TextQuote:It,Strikethrough:s.Strikethrough,Minus:s.Minus,Eraser:s.Eraser,PaintRoller:s.PaintRoller,Redo2:s.Redo2,Undo2:s.Undo2,AlignCenter:$.TextAlignCenterIcon,AlignJustify:$.TextAlignJustifyIcon,AlignLeft:$.TextAlignLeftIcon,AlignRight:$.TextAlignRightIcon,ChevronDown:s.ChevronDown,Subscript:s.Subscript,Superscript:s.Superscript,Code:s.Code,Code2:s.CodeXml,Type:s.Type,IndentIncrease:s.IndentIncrease,IndentDecrease:s.IndentDecrease,List:s.List,ListOrdered:s.ListOrdered,ListTodo:s.ListTodo,Link:s.Link,ImageUp:s.ImageUp,Video:s.Video,Maximize:s.Maximize,Minimize:s.Minimize,Table:s.Table,Sparkles:s.Sparkles,Pencil:s.Pencil,Unlink:s.Unlink,BetweenHorizonalEnd:s.BetweenHorizonalEnd,BetweenHorizonalStart:s.BetweenHorizonalStart,BetweenVerticalStart:s.BetweenVerticalStart,BetweenVerticalEnd:s.BetweenVerticalEnd,TableCellsMerge:s.TableCellsMerge,TableCellsSplit:s.TableCellsSplit,Trash2:s.Trash2,Trash:s.Trash,Replace:s.Replace,ChevronsUpDown:s.ChevronsUpDown,LineHeight:Ot,Word:Gt,Heading1:s.Heading1,Heading2:s.Heading2,Heading3:s.Heading3,Heading4:s.Heading4,Heading5:s.Heading5,Heading6:s.Heading6,Columns2:s.Columns2,Columns3:s.Columns3,Columns4:s.Columns4,Plus:s.Plus,Grip:s.GripVertical,Copy:s.Copy,Clipboard:s.Clipboard,PanelLeft:s.PanelLeft,PanelRight:s.PanelRight,Columns:s.Columns2,Iframe:s.Frame,MenuDown:Ae,SizeS:Ut,SizeM:_t,SizeL:Wt,AspectRatio:Vt,Emoji:s.SmilePlus,DeleteColumn:Ht,DeleteRow:Bt,SearchAndReplace:s.Replace,EmojiIcon:s.SmilePlusIcon,KatexIcon:s.Sigma,ExportPdf:Pe,ExportWord:Ve,ImportWord:er,ColumnAddLeft:Ft,ColumnAddRight:qt,BookMarked:s.BookMarked,Excalidraw:Xt,ZoomIn:s.ZoomIn,ZoomOut:s.ZoomOut,Settings:s.Settings,Eye:s.Eye,TextDirection:Dt,LeftToRight:Qt,RightToLeft:Jt,Attachment:s.Paperclip,GifIcon:Kt,ChevronUp:s.ChevronUp,Crop:s.CropIcon,Mermaid:Zt,Twitter:Yt,CodeView:$t,FlipX:s.FlipVertical,FlipY:s.FlipHorizontal,PencilRuler:s.PencilRuler,WrapText:s.WrapText,Loader:s.Loader2,X:s.X,Html:tr,ExternalLink:s.ExternalLink},ve=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ye=Se.clsx,He=(e,r)=>t=>{var o;if((r==null?void 0:r.variants)==null)return ye(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:c,defaultVariants:i}=r,l=Object.keys(c).map(u=>{const m=t==null?void 0:t[u],g=i==null?void 0:i[u];if(m===null)return null;const d=ve(m)||ve(g);return c[u][d]}),a=t&&Object.entries(t).reduce((u,m)=>{let[g,d]=m;return d===void 0||(u[g]=d),u},{}),h=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((u,m)=>{let{class:g,className:d,...b}=m;return Object.entries(b).every(S=>{let[v,f]=S;return Array.isArray(f)?f.includes({...i,...a}[v]):{...i,...a}[v]===f})?[...u,g,d]:u},[]);return ye(e,l,h,t==null?void 0:t.class,t==null?void 0:t.className)},rr=He("richtext-inline-flex richtext-items-center richtext-justify-center richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors hover:richtext-bg-muted hover:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=on]:richtext-bg-accent data-[state=on]:richtext-text-accent-foreground",{variants:{variant:{default:"richtext-bg-transparent",outline:"richtext-border richtext-border-input richtext-bg-transparent hover:richtext-bg-accent hover:richtext-text-accent-foreground"},size:{default:"richtext-h-10 richtext-px-3",sm:"richtext-h-9 richtext-px-2",lg:"richtext-h-11 richtext-px-5"}},defaultVariants:{variant:"default",size:"default"}}),ne=N.forwardRef(({className:e,variant:r,size:t,...o},c)=>n.jsx(ke.Root,{ref:c,className:z(rr({variant:r,size:t,className:e})),...o}));ne.displayName=ke.Root.displayName;const or=O.Provider,Be=O.Root,Ge=O.Trigger,ie=N.forwardRef(({className:e,sideOffset:r=4,...t},o)=>n.jsx(O.Content,{"data-richtext-portal":!0,ref:o,sideOffset:r,className:z("richtext-z-50 richtext-overflow-hidden richtext-rounded-md richtext-bg-primary richtext-px-3 richtext-py-1.5 richtext-text-sm richtext-text-primary-foreground richtext-shadow-md richtext-animate-in richtext-fade-in-0 richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2 !richtext-border-none",e),...t}));ie.displayName=O.Content.displayName;const nr=C.Root,ir=C.Value,Oe=N.forwardRef(({className:e,children:r,...t},o)=>n.jsxs(C.Trigger,{ref:o,className:z("richtext-flex richtext-h-10 richtext-w-full richtext-items-center richtext-justify-between richtext-rounded-md richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 [&>span]:richtext-line-clamp-1",e),...t,children:[r,n.jsx(C.Icon,{asChild:!0,children:n.jsx(s.ChevronDown,{className:"richtext-size-4 richtext-opacity-50"})})]}));Oe.displayName=C.Trigger.displayName;const We=N.forwardRef(({className:e,...r},t)=>n.jsx(C.ScrollUpButton,{ref:t,className:z("richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",e),...r,children:n.jsx(s.ChevronUp,{className:"richtext-size-4"})}));We.displayName=C.ScrollUpButton.displayName;const _e=N.forwardRef(({className:e,...r},t)=>n.jsx(C.ScrollDownButton,{ref:t,className:z("richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",e),...r,children:n.jsx(s.ChevronDown,{className:"richtext-size-4"})}));_e.displayName=C.ScrollDownButton.displayName;const Ue=N.forwardRef(({className:e,children:r,position:t="popper",...o},c)=>n.jsx(C.Portal,{children:n.jsxs(C.Content,{"data-richtext-portal":!0,position:t,ref:c,className:z("richtext-relative richtext-z-50 richtext-max-h-60 richtext-overflow-y-auto richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md richtext-border !richtext-border-border richtext-bg-popover richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:richtext-translate-y-1 data-[side=left]:richtext--translate-x-1 data-[side=right]:richtext-translate-x-1 data-[side=top]:richtext--translate-y-1",e),...o,children:[n.jsx(We,{}),n.jsx(C.Viewport,{className:z("richtext-p-1",t==="popper"&&"richtext-h-[var(--radix-select-trigger-height)] richtext-w-full richtext-min-w-[var(--radix-select-trigger-width)]"),children:r}),n.jsx(_e,{})]})}));Ue.displayName=C.Content.displayName;const sr=N.forwardRef(({className:e,...r},t)=>n.jsx(C.Label,{className:z("richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold",e),ref:t,...r}));sr.displayName=C.Label.displayName;const $e=N.forwardRef(({className:e,children:r,...t},o)=>n.jsxs(C.Item,{ref:o,className:z("richtext-relative richtext-flex richtext-w-full richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",e),...t,children:[n.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:n.jsx(C.ItemIndicator,{children:n.jsx(s.Check,{className:"richtext-size-4"})})}),n.jsx(C.ItemText,{children:r})]}));$e.displayName=C.Item.displayName;const cr=N.forwardRef(({className:e,...r},t)=>n.jsx(C.Separator,{className:z("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted",e),ref:t,...r}));cr.displayName=C.Separator.displayName;function se(e){function r(){const i=x.useRef(e),l=x.useCallback(()=>i.current,[]),a=x.useRef(new Set),h=x.useCallback(m=>{i.current={...i.current,...m},a.current.forEach(g=>g())},[]),u=x.useCallback(m=>(a.current.add(m),()=>a.current.delete(m)),[]);return{get:l,set:h,subscribe:u}}const t=x.createContext(null);function o({children:i}){return n.jsx(t.Provider,{value:r(),children:i})}function c(i){const l=x.useContext(t);if(!l)throw new Error("Store not found");return[x.useSyncExternalStore(l.subscribe,()=>i(l.get()),()=>i(e)),l.set]}return{Provider:o,useStore:c}}se({value:!1});se({value:!1});const{Provider:ar,useStore:Fe}=se({value:!1});function lr(){const[e]=Fe(r=>r.value);return e}const Ce="data-rc-order",je="data-rc-priority",dr="rc-util-key",re=new Map;function ur(e,r){if(!e)return!1;if(e.contains)return e.contains(r);let t=r;for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function qe({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:dr}function ce(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function hr(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function De(e){return[...(re.get(e)||e).children].filter(r=>r.tagName==="STYLE")}function Xe(e,r={}){const{csp:t,prepend:o,priority:c=0}=r,i=hr(o),l=i==="prependQueue",a=document.createElement("style");a.setAttribute(Ce,i),l&&c&&a.setAttribute(je,`${c}`),t!=null&&t.nonce&&(a.nonce=t==null?void 0:t.nonce),a.innerHTML=e;const h=ce(r),{firstChild:u}=h;if(o){if(l){const m=De(h).filter(g=>{if(!["prepend","prependQueue"].includes(g.getAttribute(Ce)))return!1;const d=Number(g.getAttribute(je)||0);return c>=d});if(m.length>0)return h.insertBefore(a,m.at(-1).nextSibling),a}u.before(a)}else h.append(a);return a}function Ke(e,r={}){const t=ce(r);return De(t).find(o=>o.getAttribute(qe(r))===e)}function Qe(e,r={}){const t=Ke(e,r);t&&t.remove()}function pr(e,r){const t=re.get(e);if(!t||!ur(document,t)){const o=Xe("",r),{parentNode:c}=o;re.set(e,c),o.remove()}}function Ze(e,r,t={}){var l,a,h;const o=ce(t);pr(o,t);const c=Ke(r,t);if(c)return(l=t.csp)!=null&&l.nonce&&c.nonce!==((a=t.csp)==null?void 0:a.nonce)&&(c.nonce=(h=t.csp)==null?void 0:h.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;const i=Xe(e,t);return i.setAttribute(qe(t),r),i}const mr=x.memo(({editor:e,children:r})=>{const[,t]=Fe(c=>c.value);x.useEffect(()=>{t({value:e==null?void 0:e.isEditable})},[e==null?void 0:e.isEditable]);const o=()=>{t({value:e==null?void 0:e.isEditable})};return x.useEffect(()=>(e&&e.on("update",o),()=>{e&&e.off("update",o)}),[e]),n.jsx(n.Fragment,{children:r})});function gr(){const[,e]=ge.x(ge.atomLang),r=o=>{e(c=>({...c,currentLang:o.detail}))},t=o=>{const{lang:c,messages:i}=o.detail;e(l=>{if(l.message[c]){const a={...l.message[c],...i};return{currentLang:l.currentLang,message:{...l.message,[c]:a}}}else return{currentLang:l.currentLang,message:{...l.message,[c]:i}}})};return x.useEffect(()=>{const o=E.listenEvent(E.EVENTS.CHANGE_LANGUAGE,r),c=E.listenEvent(E.EVENTS.MODIFY_LANGUAGE,t);return()=>{o(),c()}},[]),n.jsx(n.Fragment,{})}function fr(){const[e,r]=F("richtext-theme","light"),[t,o]=F("richtext-color","default"),[c,i]=F("richtext-border-radius","0.65rem");x.useEffect(()=>{const u=e||"light",m=t||"default";let g=fe.THEME[u][m];if(!g){g=fe.THEME.light.default;return}return Ze(`
|
|
2
|
-
.reactjs-tiptap-editor, .reactjs-tiptap-editor *,
|
|
3
|
-
div[data-richtext-portal], div[data-richtext-portal] * {
|
|
4
|
-
${Object.entries(g).map(([d,b])=>typeof c=="string"&&d==="radius"?`--${d}: ${c};`:`--${d}: ${b};`).join(`
|
|
5
|
-
`)}
|
|
6
|
-
}
|
|
7
|
-
`,"richtext-theme",{priority:50}),()=>{Qe("richtext-theme")}},[e,t,c]);const l=u=>{r(u.detail)},a=u=>{o(u.detail)},h=u=>{i(u.detail)};return x.useEffect(()=>{const u=E.listenEvent(E.EVENTS.CHANGE_THEME,l),m=E.listenEvent(E.EVENTS.CHANGE_COLOR,a),g=E.listenEvent(E.EVENTS.CHANGE_BORDER_RADIUS,h);return()=>{u(),m(),g()}},[]),n.jsx(n.Fragment,{})}function xr({editor:e,children:r,id:t}){return n.jsxs(ar,{children:[n.jsx(mr,{editor:e,id:t,children:r}),n.jsx(gr,{}),n.jsx(fr,{})]})}exports.ActionButton=Pt;exports.ExportPdf=Pe;exports.ExportWord=Ve;exports.MenuDown=Ae;exports.ProviderUniqueId=xr;exports.Select=nr;exports.SelectContent=Ue;exports.SelectItem=$e;exports.SelectTrigger=Oe;exports.SelectValue=ir;exports.Toggle=ne;exports.Tooltip=Be;exports.TooltipContent=ie;exports.TooltipProvider=or;exports.TooltipTrigger=Ge;exports.cn=z;exports.cva=He;exports.getShortcutKey=Te;exports.getShortcutKeys=Re;exports.icons=Ie;exports.removeCSS=Qe;exports.updateCSS=Ze;exports.useEditableEditor=lr;exports.useLocalStorage=F;
|