@remarkablejames/editor 0.0.5 → 0.0.6
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-DBZjUu-F.js → ActionMenuButton-CpmEfz31.js} +1 -1
- package/lib/{ActionMenuButton-C6jGtl3k.cjs → ActionMenuButton-NfiUDE60.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 +1 -1
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +1 -1
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +1 -1
- package/lib/Callout.cjs +1 -1
- package/lib/Callout.js +15 -16
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +1 -1
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +1 -1
- package/lib/CodeBlock.cjs +1 -1
- package/lib/CodeBlock.js +31 -32
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +1 -1
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +2 -2
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +1 -1
- package/lib/{Drawer-DTCwtJEs.js → Drawer-CayP4Ww4.js} +13 -13
- package/lib/{Drawer-B031ezmA.cjs → Drawer-DlgdaO_B.cjs} +1 -1
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +2 -2
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +8 -8
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +36 -36
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.js +1 -1
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +1 -1
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +3 -3
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +3 -3
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +8 -8
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +2 -2
- package/lib/History.cjs +1 -1
- package/lib/History.js +1 -1
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +1 -1
- package/lib/{Iframe-D-UYBxiv.js → Iframe-C6Sb97KS.js} +5 -5
- package/lib/{Iframe-BUK2pkOL.cjs → Iframe-CANdxSpV.cjs} +1 -1
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +2 -2
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +3 -3
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +19 -19
- package/lib/ImportWord.cjs +1 -1
- package/lib/ImportWord.js +12 -12
- package/lib/{Indent-Bvt-Qwar.js → Indent-CcFe8py3.js} +1 -1
- package/lib/{Indent-_y6N8MIQ.cjs → Indent-DuB2U6Cs.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 +1 -1
- package/lib/{Katex-CJDtvu-v.js → Katex-Bp6AnIUF.js} +3 -4
- package/lib/Katex-DFU1unCm.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 +2 -2
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +1 -1
- package/lib/{LinkEditBlock-Cdqwj_NU.js → LinkEditBlock-BiHumIJR.js} +7 -7
- package/lib/{LinkEditBlock-ewTApx0K.cjs → LinkEditBlock-C2zX0WVK.cjs} +1 -1
- package/lib/Mermaid-B8lQSOGn.cjs +2 -0
- package/lib/{Mermaid-CnMYVX1P.js → Mermaid-Dlx0XTJj.js} +23 -24
- package/lib/Mermaid.cjs +1 -1
- package/lib/Mermaid.js +1 -1
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +2 -2
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +1 -1
- package/lib/PaywallSeparator.cjs +1 -0
- package/lib/PaywallSeparator.js +140 -0
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +7 -7
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +2 -2
- package/lib/SlashCommandNodeView-BfWNWGRr.cjs +1 -0
- package/lib/{SlashCommandNodeView-DcoLvt_6.js → SlashCommandNodeView-DzmsYaNc.js} +73 -57
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +1 -1
- package/lib/{Table-B8CHl8jK.cjs → Table-BfM6ywrZ.cjs} +1 -1
- package/lib/{Table-Cu12PvQ_.js → Table-IH34r4jd.js} +2 -2
- package/lib/Table.cjs +1 -1
- package/lib/Table.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.js +1 -1
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +2 -2
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +2 -2
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +1 -1
- package/lib/{Twitter-CrX4XY1j.js → Twitter-FVQKPaq6.js} +7 -7
- package/lib/{Twitter-6HYP_upt.cjs → Twitter-axcoCgD7.cjs} +1 -1
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +1 -1
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +3 -3
- package/lib/bubble.cjs +3 -3
- package/lib/bubble.js +81 -83
- package/lib/{dropdown-menu-CVwXaR3Z.js → dropdown-menu-Ce2TorkG.js} +1 -1
- package/lib/{dropdown-menu-XIrQk3jr.cjs → dropdown-menu-DirUyRAI.cjs} +1 -1
- package/lib/extensions/PaywallSeparator/PaywallSeparator.d.ts +35 -0
- package/lib/extensions/PaywallSeparator/components/PaywallIcon.d.ts +2 -0
- package/lib/extensions/PaywallSeparator/components/PaywallSeparatorView.d.ts +17 -0
- package/lib/extensions/PaywallSeparator/components/RichTextPaywallSeparator.d.ts +1 -0
- package/lib/extensions/PaywallSeparator/components/index.d.ts +2 -0
- package/lib/extensions/PaywallSeparator/index.d.ts +1 -0
- package/lib/index-BynXHtjJ.cjs +28 -0
- package/lib/{index-B0d-u29p.js → index-CnKgiZFQ.js} +1201 -1050
- package/lib/index.cjs +1 -1
- package/lib/index.js +27 -27
- package/lib/{popover-0syCfWYi.cjs → popover-BdLwAlrM.cjs} +1 -1
- package/lib/{popover-DDT8YRht.js → popover-BzJyaFvy.js} +1 -1
- package/lib/{separator-D8lOAf8f.cjs → separator-CoQaQmFK.cjs} +1 -1
- package/lib/{separator-DRGTEiX4.js → separator-D-fyzbfx.js} +14 -14
- package/lib/style.css +1 -1
- package/lib/types.d.ts +5 -5
- package/package.json +14 -1
- package/lib/Katex-bJXkt-VP.cjs +0 -4
- package/lib/Mermaid-Dwz9o-yM.cjs +0 -2
- package/lib/SlashCommandNodeView-BMgQJ4xT.cjs +0 -1
- package/lib/index-De9MZVWQ.cjs +0 -28
- package/lib/select-D9wQw2qB.js +0 -120
- package/lib/select-DTNz0ZeE.cjs +0 -1
- package/lib/textarea-DfVzbMr5.js +0 -20
- package/lib/textarea-DpkwluT0.cjs +0 -1
|
@@ -2,9 +2,8 @@ import { h as Po, N as Io, k as Ro, n as $o, m as Eo } from "./clsx-BUPZHhq3.js"
|
|
|
2
2
|
import { jsx as er, jsxs as Nr } from "react/jsx-runtime";
|
|
3
3
|
import Xa from "katex";
|
|
4
4
|
import { useState as Ur, useRef as xo, useEffect as Bo, useMemo as Hr, useCallback as To } from "react";
|
|
5
|
-
import { u as Mo, d as jo, h as Co, D as Do, m as Fo, A as _o, n as No, o as Wo, L as un,
|
|
5
|
+
import { u as Mo, d as jo, h as Co, D as Do, m as Fo, A as _o, n as No, o as Wo, L as un, U as fn, t as ko, B as Lo } from "./index-CnKgiZFQ.js";
|
|
6
6
|
import "./theme.js";
|
|
7
|
-
import { T as fn } from "./textarea-DfVzbMr5.js";
|
|
8
7
|
import { u as Uo } from "./index-BGd2HiwP.js";
|
|
9
8
|
var Gr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10
9
|
function Ho(r) {
|
|
@@ -2587,7 +2586,7 @@ function Yi({ node: r }) {
|
|
|
2587
2586
|
}
|
|
2588
2587
|
);
|
|
2589
2588
|
}
|
|
2590
|
-
function
|
|
2589
|
+
function au() {
|
|
2591
2590
|
const { t: r } = Uo(), [e, n] = Ur(!1), a = Mo(Ya.name), {
|
|
2592
2591
|
icon: t = void 0,
|
|
2593
2592
|
tooltip: f = void 0,
|
|
@@ -2747,7 +2746,7 @@ const Ya = /* @__PURE__ */ Io.create({
|
|
|
2747
2746
|
});
|
|
2748
2747
|
export {
|
|
2749
2748
|
Ya as K,
|
|
2750
|
-
|
|
2749
|
+
au as R,
|
|
2751
2750
|
Qa as s,
|
|
2752
2751
|
Ji as u
|
|
2753
2752
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";const Dr=require("./clsx-CXbNJWDD.cjs"),Y=require("react/jsx-runtime"),Ya=require("katex"),fr=require("react"),tr=require("./index-BynXHtjJ.cjs");require("./theme.cjs");const qo=require("./index-DgOXAdKt.cjs");var Gr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Po(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Io(r){if(Object.prototype.hasOwnProperty.call(r,"__esModule"))return r;var e=r.default;if(typeof e=="function"){var n=function a(){return this instanceof a?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(r).forEach(function(a){var t=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(n,a,t.get?t:{enumerable:!0,get:function(){return r[a]}})}),n}function kt(r,e={}){if(typeof r=="object")return r;try{return JSON.parse(r)}catch{return e}}var ae,sn;function Xa(){if(sn)return ae;sn=1;var r=Object.prototype.toString;return ae=function(n){var a=r.call(n),t=a==="[object Arguments]";return t||(t=a!=="[object Array]"&&n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&r.call(n.callee)==="[object Function]"),t},ae}var oe,ln;function Ro(){if(ln)return oe;ln=1;var r;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,a=Xa(),t=Object.prototype.propertyIsEnumerable,f=!t.call({toString:null},"toString"),i=t.call(function(){},"prototype"),o=["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 S=h!==null&&typeof h=="object",R=n.call(h)==="[object Function]",w=a(h),q=S&&n.call(h)==="[object String]",O=[];if(!S&&!R&&!w)throw new TypeError("Object.keys called on a non-object");var m=i&&R;if(q&&h.length>0&&!e.call(h,0))for(var j=0;j<h.length;++j)O.push(String(j));if(w&&h.length>0)for(var Q=0;Q<h.length;++Q)O.push(String(Q));else for(var H in h)!(m&&H==="prototype")&&e.call(h,H)&&O.push(String(H));if(f)for(var F=p(h),D=0;D<o.length;++D)!(F&&o[D]==="constructor")&&e.call(h,o[D])&&O.push(o[D]);return O}}return oe=r,oe}var ie,cn;function Lt(){if(cn)return ie;cn=1;var r=Array.prototype.slice,e=Xa(),n=Object.keys,a=n?function(i){return n(i)}:Ro(),t=Object.keys;return a.shim=function(){if(Object.keys){var i=(function(){var o=Object.keys(arguments);return o&&o.length===arguments.length})(1,2);i||(Object.keys=function(u){return e(u)?t(r.call(u)):t(u)})}else Object.keys=a;return Object.keys||a},ie=a,ie}var ue,pn;function zr(){if(pn)return ue;pn=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return ue=r,ue}var fe,yn;function Ut(){return yn||(yn=1,fe=SyntaxError),fe}var se,vn;function ar(){return vn||(vn=1,se=TypeError),se}var le,gn;function $o(){return gn||(gn=1,le=Object.getOwnPropertyDescriptor),le}var ce,hn;function qr(){if(hn)return ce;hn=1;var r=$o();if(r)try{r([],"length")}catch{r=null}return ce=r,ce}var pe,dn;function Ht(){if(dn)return pe;dn=1;var r=zr(),e=Ut(),n=ar(),a=qr();return pe=function(f,i,o){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=!!a&&a(f,i);if(r)r(f,i,{configurable:v===null&&y?y.configurable:!v,enumerable:u===null&&y?y.enumerable:!u,value:o,writable:c===null&&y?y.writable:!c});else if(p||!u&&!c&&!v)f[i]=o;else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},pe}var ye,mn;function Gt(){if(mn)return ye;mn=1;var r=zr(),e=function(){return!!r};return e.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},ye=e,ye}var ve,Sn;function Pr(){if(Sn)return ve;Sn=1;var r=Lt(),e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",n=Object.prototype.toString,a=Array.prototype.concat,t=Ht(),f=function(c){return typeof c=="function"&&n.call(c)==="[object Function]"},i=Gt()(),o=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=a.call(y,Object.getOwnPropertySymbols(v)));for(var h=0;h<y.length;h+=1)o(c,y[h],v[y[h]],p[y[h]])};return u.supportsDescriptors=!!i,ve=u,ve}var ge={exports:{}},he,bn;function zt(){return bn||(bn=1,he=Object),he}var de,An;function Qa(){return An||(An=1,de=Error),de}var me,On;function xo(){return On||(On=1,me=EvalError),me}var Se,wn;function Eo(){return wn||(wn=1,Se=RangeError),Se}var be,qn;function Bo(){return qn||(qn=1,be=ReferenceError),be}var Ae,Pn;function jo(){return Pn||(Pn=1,Ae=URIError),Ae}var Oe,In;function Mo(){return In||(In=1,Oe=Math.abs),Oe}var we,Rn;function To(){return Rn||(Rn=1,we=Math.floor),we}var qe,$n;function Co(){return $n||($n=1,qe=Math.max),qe}var Pe,xn;function Do(){return xn||(xn=1,Pe=Math.min),Pe}var Ie,En;function Fo(){return En||(En=1,Ie=Math.pow),Ie}var Re,Bn;function _o(){return Bn||(Bn=1,Re=Math.round),Re}var $e,jn;function No(){return jn||(jn=1,$e=Number.isNaN||function(e){return e!==e}),$e}var xe,Mn;function Wo(){if(Mn)return xe;Mn=1;var r=No();return xe=function(n){return r(n)||n===0?n:n<0?-1:1},xe}var Ee,Tn;function Vr(){return Tn||(Tn=1,Ee=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[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 o=Object.getOwnPropertyDescriptor(e,n);if(o.value!==t||o.enumerable!==!0)return!1}return!0}),Ee}var Be,Cn;function Vt(){if(Cn)return Be;Cn=1;var r=typeof Symbol<"u"&&Symbol,e=Vr();return Be=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Be}var je,Dn;function Za(){return Dn||(Dn=1,je=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),je}var Me,Fn;function ro(){if(Fn)return Me;Fn=1;var r=zt();return Me=r.getPrototypeOf||null,Me}var Te,_n;function ko(){if(_n)return Te;_n=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,n=Math.max,a="[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(o,u){for(var c="",v=0;v<o.length;v+=1)c+=o[v],v+1<o.length&&(c+=u);return c};return Te=function(u){var c=this;if(typeof c!="function"||e.apply(c)!==a)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),S=[],R=0;R<h;R++)S[R]="$"+R;if(p=Function("binder","return function ("+i(S,",")+"){ return binder.apply(this,arguments); }")(y),c.prototype){var w=function(){};w.prototype=c.prototype,p.prototype=new w,w.prototype=null}return p},Te}var Ce,Nn;function Fr(){if(Nn)return Ce;Nn=1;var r=ko();return Ce=Function.prototype.bind||r,Ce}var De,Wn;function Kt(){return Wn||(Wn=1,De=Function.prototype.call),De}var Fe,kn;function Jt(){return kn||(kn=1,Fe=Function.prototype.apply),Fe}var _e,Ln;function Lo(){return Ln||(Ln=1,_e=typeof Reflect<"u"&&Reflect&&Reflect.apply),_e}var Ne,Un;function eo(){if(Un)return Ne;Un=1;var r=Fr(),e=Jt(),n=Kt(),a=Lo();return Ne=a||r.call(n,e),Ne}var We,Hn;function Yt(){if(Hn)return We;Hn=1;var r=Fr(),e=ar(),n=Kt(),a=eo();return We=function(f){if(f.length<1||typeof f[0]!="function")throw new e("a function is required");return a(r,n,f)},We}var ke,Gn;function Uo(){if(Gn)return ke;Gn=1;var r=Yt(),e=qr(),n;try{n=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var a=!!n&&e&&e(Object.prototype,"__proto__"),t=Object,f=t.getPrototypeOf;return ke=a&&typeof a.get=="function"?r([a.get]):typeof f=="function"?function(o){return f(o==null?o:t(o))}:!1,ke}var Le,zn;function Xt(){if(zn)return Le;zn=1;var r=Za(),e=ro(),n=Uo();return Le=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,Le}var Ue,Vn;function Qt(){if(Vn)return Ue;Vn=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,n=Fr();return Ue=n.call(r,e),Ue}var He,Kn;function vr(){if(Kn)return He;Kn=1;var r,e=zt(),n=Qa(),a=xo(),t=Eo(),f=Bo(),i=Ut(),o=ar(),u=jo(),c=Mo(),v=To(),p=Co(),y=Do(),h=Fo(),S=_o(),R=Wo(),w=Function,q=function(T){try{return w('"use strict"; return ('+T+").constructor;")()}catch{}},O=qr(),m=zr(),j=function(){throw new o},Q=O?(function(){try{return arguments.callee,j}catch{try{return O(arguments,"callee").get}catch{return j}}})():j,H=Vt()(),F=Xt(),D=ro(),P=Za(),_=Jt(),L=Kt(),N={},U=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%":H&&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%":a,"%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%":H&&F?F(F([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!H||!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"||!H||!F?r:F(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":H&&F?F(""[Symbol.iterator]()):r,"%Symbol%":H?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":Q,"%TypedArray%":U,"%TypeError%":o,"%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%":m,"%Object.getPrototypeOf%":D,"%Math.abs%":c,"%Math.floor%":v,"%Math.max%":p,"%Math.min%":y,"%Math.pow%":h,"%Math.round%":S,"%Math.sign%":R,"%Reflect.getPrototypeOf%":P};if(F)try{null.error}catch(T){var sr=F(F(T));V["%Error.prototype%"]=sr}var Rr=function T(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 b=T("%AsyncGeneratorFunction%");b&&(I=b.prototype)}else if(A==="%AsyncIteratorPrototype%"){var E=T("%AsyncGenerator%");E&&F&&(I=F(E.prototype))}return V[A]=I,I},br={__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"]},or=Fr(),G=Qt(),Ar=or.call(L,Array.prototype.concat),$r=or.call(_,Array.prototype.splice),Or=or.call(L,String.prototype.replace),gr=or.call(L,String.prototype.slice),g=or.call(L,RegExp.prototype.exec),d=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,$=function(A){var I=gr(A,0,1),b=gr(A,-1);if(I==="%"&&b!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if(b==="%"&&I!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var E=[];return Or(A,d,function(z,K,J,X){E[E.length]=J?Or(X,x,"$1"):K||z}),E},M=function(A,I){var b=A,E;if(G(br,b)&&(E=br[b],b="%"+E[0]+"%"),G(V,b)){var z=V[b];if(z===N&&(z=Rr(b)),typeof z>"u"&&!I)throw new o("intrinsic "+A+" exists, but is not available. Please file an issue!");return{alias:E,name:b,value:z}}throw new i("intrinsic "+A+" does not exist!")};return He=function(A,I){if(typeof A!="string"||A.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof I!="boolean")throw new o('"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 b=$(A),E=b.length>0?b[0]:"",z=M("%"+E+"%",I),K=z.name,J=z.value,X=!1,rr=z.alias;rr&&(E=rr[0],$r(b,Ar([0,1],rr)));for(var lr=1,ir=!0;lr<b.length;lr+=1){var er=b[lr],cr=gr(er,0,1),pr=gr(er,-1);if((cr==='"'||cr==="'"||cr==="`"||pr==='"'||pr==="'"||pr==="`")&&cr!==pr)throw new i("property names with quotes must have matching quotes");if((er==="constructor"||!ir)&&(X=!0),E+="."+er,K="%"+E+"%",G(V,K))J=V[K];else if(J!=null){if(!(er in J)){if(!I)throw new o("base intrinsic for "+A+" exists, but the property is not available.");return}if(O&&lr+1>=b.length){var yr=O(J,er);ir=!!yr,ir&&"get"in yr&&!("originalValue"in yr.get)?J=yr.get:J=J[er]}else ir=G(J,er),J=J[er];ir&&!X&&(V[K]=J)}}return J},He}var Ge,Jn;function Ho(){if(Jn)return Ge;Jn=1;var r=vr(),e=Ht(),n=Gt()(),a=qr(),t=ar(),f=r("%Math.floor%");return Ge=function(o,u){if(typeof o!="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 o&&a){var y=a(o,"length");y&&!y.configurable&&(v=!1),y&&!y.writable&&(p=!1)}return(v||p||!c)&&(n?e(o,"length",u,!0,!0):e(o,"length",u)),o},Ge}var ze,Yn;function Go(){if(Yn)return ze;Yn=1;var r=Fr(),e=Jt(),n=eo();return ze=function(){return n(r,e,arguments)},ze}var Xn;function jr(){return Xn||(Xn=1,(function(r){var e=Ho(),n=zr(),a=Yt(),t=Go();r.exports=function(i){var o=a(arguments),u=i.length-(arguments.length-1);return e(o,1+(u>0?u:0),!0)},n?n(r.exports,"apply",{value:t}):r.exports.apply=t})(ge)),ge.exports}var Ve,Qn;function Z(){if(Qn)return Ve;Qn=1;var r=vr(),e=Yt(),n=e([r("%String.prototype.indexOf%")]);return Ve=function(t,f){var i=r(t,!!f);return typeof i=="function"&&n(t,".prototype.")>-1?e([i]):i},Ve}var Ke,Zn;function to(){if(Zn)return Ke;Zn=1;var r=Lt(),e=Vr()(),n=Z(),a=zt(),t=n("Array.prototype.push"),f=n("Object.prototype.propertyIsEnumerable"),i=e?a.getOwnPropertySymbols:null;return Ke=function(u,c){if(u==null)throw new TypeError("target must be an object");var v=a(u);if(arguments.length===1)return v;for(var p=1;p<arguments.length;++p){var y=a(arguments[p]),h=r(y),S=e&&(a.getOwnPropertySymbols||i);if(S)for(var R=S(y),w=0;w<R.length;++w){var q=R[w];f(y,q)&&t(h,q)}for(var O=0;O<h.length;++O){var m=h[O];if(f(y,m)){var j=y[m];v[m]=j}}}return v},Ke}var Je,ra;function no(){if(ra)return Je;ra=1;var r=to(),e=function(){if(!Object.assign)return!1;for(var a="abcdefghijklmnopqrst",t=a.split(""),f={},i=0;i<t.length;++i)f[t[i]]=t[i];var o=Object.assign({},f),u="";for(var c in o)u+=c;return a!==u},n=function(){if(!Object.assign||!Object.preventExtensions)return!1;var a=Object.preventExtensions({1:2});try{Object.assign(a,"xy")}catch{return a[1]==="y"}return!1};return Je=function(){return!Object.assign||e()||n()?r:Object.assign},Je}var Ye,ea;function zo(){if(ea)return Ye;ea=1;var r=Pr(),e=no();return Ye=function(){var a=e();return r(Object,{assign:a},{assign:function(){return Object.assign!==a}}),a},Ye}var Xe,ta;function Vo(){if(ta)return Xe;ta=1;var r=Pr(),e=jr(),n=to(),a=no(),t=zo(),f=e.apply(a()),i=function(u,c){return f(Object,arguments)};return r(i,{getPolyfill:a,implementation:n,shim:t}),Xe=i,Xe}var Qe,na;function ao(){if(na)return Qe;na=1;var r=vr(),e=jr(),n=e(r("String.prototype.indexOf"));return Qe=function(t,f){var i=r(t,!!f);return typeof i=="function"&&n(t,".prototype.")>-1?e(i):i},Qe}var Ze,aa;function Ko(){if(aa)return Ze;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!==""},Ze=r,Ze}var rt,oa;function Jo(){if(oa)return rt;oa=1;var r=Ht(),e=Gt()(),n=Ko().functionsHaveConfigurableNames(),a=ar();return rt=function(f,i){if(typeof f!="function")throw new a("`fn` is not a function");var o=arguments.length>2&&!!arguments[2];return(!o||n)&&(e?r(f,"name",i,!0,!0):r(f,"name",i)),f},rt}var et,ia;function oo(){if(ia)return et;ia=1;var r=Jo(),e=ar(),n=Object;return et=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),et}var tt,ua;function io(){if(ua)return tt;ua=1;var r=oo(),e=Pr().supportsDescriptors,n=Object.getOwnPropertyDescriptor;return tt=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},tt}var nt,fa;function Yo(){if(fa)return nt;fa=1;var r=Pr().supportsDescriptors,e=io(),n=qr(),a=Object.defineProperty,t=Qa(),f=Xt(),i=/a/;return nt=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)&&a(c,"flags",{configurable:!0,enumerable:!1,get:u}),u},nt}var at,sa;function Xo(){if(sa)return at;sa=1;var r=Pr(),e=jr(),n=oo(),a=io(),t=Yo(),f=e(a());return r(f,{getPolyfill:a,implementation:n,shim:t}),at=f,at}var Cr={exports:{}},ot,la;function Ir(){if(la)return ot;la=1;var r=Vr();return ot=function(){return r()&&!!Symbol.toStringTag},ot}var it,ca;function uo(){if(ca)return it;ca=1;var r=Ir()(),e=Z(),n=e("Object.prototype.toString"),a=function(o){return r&&o&&typeof o=="object"&&Symbol.toStringTag in o?!1:n(o)==="[object Arguments]"},t=function(o){return a(o)?!0:o!==null&&typeof o=="object"&&"length"in o&&typeof o.length=="number"&&o.length>=0&&n(o)!=="[object Array]"&&"callee"in o&&n(o.callee)==="[object Function]"},f=(function(){return a(arguments)})();return a.isLegacyArguments=t,it=f?a:t,it}const Qo={},Zo=Object.freeze(Object.defineProperty({__proto__:null,default:Qo},Symbol.toStringTag,{value:"Module"})),ri=Io(Zo);var ut,pa;function Kr(){if(pa)return ut;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,a=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,o=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,S=Boolean.prototype.valueOf,R=Object.prototype.toString,w=Function.prototype.toString,q=String.prototype.match,O=String.prototype.slice,m=String.prototype.replace,j=String.prototype.toUpperCase,Q=String.prototype.toLowerCase,H=RegExp.prototype.test,F=Array.prototype.concat,D=Array.prototype.join,P=Array.prototype.slice,_=Math.floor,L=typeof BigInt=="function"?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,V=typeof Symbol=="function"&&typeof Symbol.iterator=="object",sr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===V||!0)?Symbol.toStringTag:null,Rr=Object.prototype.propertyIsEnumerable,br=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(s){return s.__proto__}:null);function or(s,l){if(s===1/0||s===-1/0||s!==s||s&&s>-1e3&&s<1e3||H.call(/e/,l))return l;var C=/[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),B=O.call(l,k.length+1);return m.call(k,C,"$&_")+"."+m.call(m.call(B,/([0-9]{3})/g,"$&_"),/_$/,"")}}return m.call(l,C,"$&_")}var G=ri,Ar=G.custom,$r=z(Ar)?Ar:null,Or={__proto__:null,double:'"',single:"'"},gr={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};ut=function s(l,C,W,k){var B=C||{};if(X(B,"quoteStyle")&&!X(Or,B.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(X(B,"maxStringLength")&&(typeof B.maxStringLength=="number"?B.maxStringLength<0&&B.maxStringLength!==1/0:B.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var mr=X(B,"customInspect")?B.customInspect:!0;if(typeof mr!="boolean"&&mr!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(X(B,"indent")&&B.indent!==null&&B.indent!==" "&&!(parseInt(B.indent,10)===B.indent&&B.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(X(B,"numericSeparator")&&typeof B.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var wr=B.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 xr(l,B);if(typeof l=="number"){if(l===0)return 1/0/l>0?"0":"-0";var nr=String(l);return wr?or(l,nr):nr}if(typeof l=="bigint"){var Sr=String(l)+"n";return wr?or(l,Sr):Sr}var Xr=typeof B.depth>"u"?5:B.depth;if(typeof W>"u"&&(W=0),W>=Xr&&Xr>0&&typeof l=="object")return $(l)?"[Array]":"[Object]";var Er=Ao(B,W);if(typeof k>"u")k=[];else if(ir(k,l)>=0)return"[Circular]";function ur(Br,kr,wo){if(kr&&(k=P.call(k),k.push(kr)),wo){var fn={depth:B.depth};return X(B,"quoteStyle")&&(fn.quoteStyle=B.quoteStyle),s(Br,fn,W+1,k)}return s(Br,B,W+1,k)}if(typeof l=="function"&&!T(l)){var rn=lr(l),en=Nr(l,ur);return"[Function"+(rn?": "+rn:" (anonymous)")+"]"+(en.length>0?" { "+D.call(en,", ")+" }":"")}if(z(l)){var tn=V?m.call(String(l),/^(Symbol\(.*\))_[^)]*$/,"$1"):U.call(l);return typeof l=="object"&&!V?dr(tn):tn}if(hr(l)){for(var Tr="<"+Q.call(String(l.nodeName)),Qr=l.attributes||[],Wr=0;Wr<Qr.length;Wr++)Tr+=" "+Qr[Wr].name+"="+g(d(Qr[Wr].value),"double",B);return Tr+=">",l.childNodes&&l.childNodes.length&&(Tr+="..."),Tr+="</"+Q.call(String(l.nodeName))+">",Tr}if($(l)){if(l.length===0)return"[]";var Zr=Nr(l,ur);return Er&&!bo(Zr)?"["+Yr(Zr,Er)+"]":"[ "+D.call(Zr,", ")+" ]"}if(A(l)){var re=Nr(l,ur);return!("cause"in Error.prototype)&&"cause"in l&&!Rr.call(l,"cause")?"{ ["+String(l)+"] "+D.call(F.call("[cause]: "+ur(l.cause),re),", ")+" }":re.length===0?"["+String(l)+"]":"{ ["+String(l)+"] "+D.call(re,", ")+" }"}if(typeof l=="object"&&mr){if($r&&typeof l[$r]=="function"&&G)return G(l,{depth:Xr-W});if(mr!=="symbol"&&typeof l.inspect=="function")return l.inspect()}if(er(l)){var nn=[];return a&&a.call(l,function(Br,kr){nn.push(ur(kr,l,!0)+" => "+ur(Br,l))}),Zt("Map",n.call(l),nn,Er)}if(yr(l)){var an=[];return o&&o.call(l,function(Br){an.push(ur(Br,l))}),Zt("Set",i.call(l),an,Er)}if(cr(l))return Jr("WeakMap");if(_r(l))return Jr("WeakSet");if(pr(l))return Jr("WeakRef");if(b(l))return dr(ur(Number(l)));if(K(l))return dr(ur(L.call(l)));if(E(l))return dr(S.call(l));if(I(l))return dr(ur(String(l)));if(typeof window<"u"&&l===window)return"{ [object Window] }";if(typeof globalThis<"u"&&l===globalThis||typeof Gr<"u"&&l===Gr)return"{ [object globalThis] }";if(!M(l)&&!T(l)){var ee=Nr(l,ur),on=br?br(l)===Object.prototype:l instanceof Object||l.constructor===Object,te=l instanceof Object?"":"null prototype",un=!on&&sr&&Object(l)===l&&sr in l?O.call(rr(l),8,-1):te?"Object":"",Oo=on||typeof l.constructor!="function"?"":l.constructor.name?l.constructor.name+" ":"",ne=Oo+(un||te?"["+D.call(F.call([],un||[],te||[]),": ")+"] ":"");return ee.length===0?ne+"{}":Er?ne+"{"+Yr(ee,Er)+"}":ne+"{ "+D.call(ee,", ")+" }"}return String(l)};function g(s,l,C){var W=C.quoteStyle||l,k=Or[W];return k+s+k}function d(s){return m.call(String(s),/"/g,""")}function x(s){return!sr||!(typeof s=="object"&&(sr in s||typeof s[sr]<"u"))}function $(s){return rr(s)==="[object Array]"&&x(s)}function M(s){return rr(s)==="[object Date]"&&x(s)}function T(s){return rr(s)==="[object RegExp]"&&x(s)}function A(s){return rr(s)==="[object Error]"&&x(s)}function I(s){return rr(s)==="[object String]"&&x(s)}function b(s){return rr(s)==="[object Number]"&&x(s)}function E(s){return rr(s)==="[object Boolean]"&&x(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"||!U)return!1;try{return U.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 X(s,l){return J.call(s,l)}function rr(s){return R.call(s)}function lr(s){if(s.name)return s.name;var l=q.call(w.call(s),/^function\s*([\w$]+)/);return l?l[1]:null}function ir(s,l){if(s.indexOf)return s.indexOf(l);for(var C=0,W=s.length;C<W;C++)if(s[C]===l)return C;return-1}function er(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 cr(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 pr(s){if(!h||!s||typeof s!="object")return!1;try{return h.call(s),!0}catch{}return!1}function yr(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 _r(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 hr(s){return!s||typeof s!="object"?!1:typeof HTMLElement<"u"&&s instanceof HTMLElement?!0:typeof s.nodeName=="string"&&typeof s.getAttribute=="function"}function xr(s,l){if(s.length>l.maxStringLength){var C=s.length-l.maxStringLength,W="... "+C+" more character"+(C>1?"s":"");return xr(O.call(s,0,l.maxStringLength),l)+W}var k=gr[l.quoteStyle||"single"];k.lastIndex=0;var B=m.call(m.call(s,k,"\\$1"),/[\x00-\x1f]/g,Mr);return g(B,"single",l)}function Mr(s){var l=s.charCodeAt(0),C={8:"b",9:"t",10:"n",12:"f",13:"r"}[l];return C?"\\"+C:"\\x"+(l<16?"0":"")+j.call(l.toString(16))}function dr(s){return"Object("+s+")"}function Jr(s){return s+" { ? }"}function Zt(s,l,C,W){var k=W?Yr(C,W):D.call(C,", ");return s+" ("+l+") {"+k+"}"}function bo(s){for(var l=0;l<s.length;l++)if(ir(s[l],`
|
|
2
|
+
`)>=0)return!1;return!0}function Ao(s,l){var C;if(s.indent===" ")C=" ";else if(typeof s.indent=="number"&&s.indent>0)C=D.call(Array(s.indent+1)," ");else return null;return{base:C,prev:D.call(Array(l+1),C)}}function Yr(s,l){if(s.length===0)return"";var C=`
|
|
3
|
+
`+l.prev+l.base;return C+D.call(s,","+C)+`
|
|
4
|
+
`+l.prev}function Nr(s,l){var C=$(s),W=[];if(C){W.length=s.length;for(var k=0;k<s.length;k++)W[k]=X(s,k)?l(s[k],s):""}var B=typeof N=="function"?N(s):[],mr;if(V){mr={};for(var wr=0;wr<B.length;wr++)mr["$"+B[wr]]=B[wr]}for(var nr in s)X(s,nr)&&(C&&String(Number(nr))===nr&&nr<s.length||V&&mr["$"+nr]instanceof Symbol||(H.call(/[^\w$]/,nr)?W.push(l(nr,s)+": "+l(s[nr],s)):W.push(nr+": "+l(s[nr],s))));if(typeof N=="function")for(var Sr=0;Sr<B.length;Sr++)Rr.call(s,B[Sr])&&W.push("["+l(B[Sr])+"]: "+l(s[B[Sr]],s));return W}return ut}var ft,ya;function ei(){if(ya)return ft;ya=1;var r=Kr(),e=ar(),n=function(o,u,c){for(var v=o,p;(p=v.next)!=null;v=p)if(p.key===u)return v.next=p.next,c||(p.next=o.next,o.next=p),p},a=function(o,u){if(o){var c=n(o,u);return c&&c.value}},t=function(o,u,c){var v=n(o,u);v?v.value=c:o.next={key:u,next:o.next,value:c}},f=function(o,u){return o?!!n(o,u):!1},i=function(o,u){if(o)return n(o,u,!0)};return ft=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 a(u,v)},has:function(v){return f(u,v)},set:function(v,p){u||(u={next:void 0}),t(u,v,p)}};return c},ft}var st,va;function fo(){if(va)return st;va=1;var r=vr(),e=Z(),n=Kr(),a=ar(),t=r("%Map%",!0),f=e("Map.prototype.get",!0),i=e("Map.prototype.set",!0),o=e("Map.prototype.has",!0),u=e("Map.prototype.delete",!0),c=e("Map.prototype.size",!0);return st=!!t&&function(){var p,y={assert:function(h){if(!y.has(h))throw new a("Side channel does not contain "+n(h))},delete:function(h){if(p){var S=u(p,h);return c(p)===0&&(p=void 0),S}return!1},get:function(h){if(p)return f(p,h)},has:function(h){return p?o(p,h):!1},set:function(h,S){p||(p=new t),i(p,h,S)}};return y},st}var lt,ga;function ti(){if(ga)return lt;ga=1;var r=vr(),e=Z(),n=Kr(),a=fo(),t=ar(),f=r("%WeakMap%",!0),i=e("WeakMap.prototype.get",!0),o=e("WeakMap.prototype.set",!0),u=e("WeakMap.prototype.has",!0),c=e("WeakMap.prototype.delete",!0);return lt=f?function(){var p,y,h={assert:function(S){if(!h.has(S))throw new t("Side channel does not contain "+n(S))},delete:function(S){if(f&&S&&(typeof S=="object"||typeof S=="function")){if(p)return c(p,S)}else if(a&&y)return y.delete(S);return!1},get:function(S){return f&&S&&(typeof S=="object"||typeof S=="function")&&p?i(p,S):y&&y.get(S)},has:function(S){return f&&S&&(typeof S=="object"||typeof S=="function")&&p?u(p,S):!!y&&y.has(S)},set:function(S,R){f&&S&&(typeof S=="object"||typeof S=="function")?(p||(p=new f),o(p,S,R)):a&&(y||(y=a()),y.set(S,R))}};return h}:a,lt}var ct,ha;function so(){if(ha)return ct;ha=1;var r=ar(),e=Kr(),n=ei(),a=fo(),t=ti(),f=t||a||n;return ct=function(){var o,u={assert:function(c){if(!u.has(c))throw new r("Side channel does not contain "+e(c))},delete:function(c){return!!o&&o.delete(c)},get:function(c){return o&&o.get(c)},has:function(c){return!!o&&o.has(c)},set:function(c,v){o||(o=f()),o.set(c,v)}};return u},ct}var pt,da;function ni(){if(da)return pt;da=1;var r=Qt(),e=so()(),n=ar(),a={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),!a.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 o=e.get(t);o||(o={},e.set(t,o)),o["$"+f]=i}};return Object.freeze&&Object.freeze(a),pt=a,pt}var yt,ma;function ai(){if(ma)return yt;ma=1;var r=ni(),e=Ut(),n=typeof StopIteration=="object"?StopIteration:null;return yt=function(t){if(!n)throw new e("this environment lacks StopIteration");r.set(t,"[[Done]]",!1);var f={next:function(){var o=r.get(this,"[[Iterator]]"),u=!!r.get(o,"[[Done]]");try{return{done:u,value:u?void 0:o.next()}}catch(c){if(r.set(o,"[[Done]]",!0),c!==n)throw c;return{done:!0,value:void 0}}}};return r.set(f,"[[Iterator]]",t),f},yt}var vt,Sa;function lo(){if(Sa)return vt;Sa=1;var r={}.toString;return vt=Array.isArray||function(e){return r.call(e)=="[object Array]"},vt}var gt,ba;function co(){if(ba)return gt;ba=1;var r=Z(),e=r("String.prototype.valueOf"),n=function(o){try{return e(o),!0}catch{return!1}},a=r("Object.prototype.toString"),t="[object String]",f=Ir()();return gt=function(o){return typeof o=="string"?!0:!o||typeof o!="object"?!1:f?n(o):a(o)===t},gt}var ht,Aa;function po(){if(Aa)return ht;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 a=r?Map.prototype.has:null,t=e?Set.prototype.has:null;return!n&&!a&&(n=function(i){return!1}),ht=n||function(i){if(!i||typeof i!="object")return!1;try{if(a.call(i),t)try{t.call(i)}catch{return!0}return i instanceof r}catch{}return!1},ht}var dt,Oa;function yo(){if(Oa)return dt;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 a=r?Map.prototype.has:null,t=e?Set.prototype.has:null;return!n&&!t&&(n=function(i){return!1}),dt=n||function(i){if(!i||typeof i!="object")return!1;try{if(t.call(i),a)try{a.call(i)}catch{return!0}return i instanceof e}catch{}return!1},dt}var wa;function oi(){if(wa)return Cr.exports;wa=1;var r=uo(),e=ai();if(Vt()()||Vr()()){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 a=lo(),t=co(),f=vr(),i=f("%Map%",!0),o=f("%Set%",!0),u=ao(),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 U=v(P,_+1);return U<56320||U>57343?_+1:_+2},h=function(P){var _=0;return{next:function(){var N=_>=P.length,U;return N||(U=P[_],_+=1),{done:N,value:U}}}},S=function(P,_){if(a(P)||r(P))return h(P);if(t(P)){var L=0;return{next:function(){var U=y(P,L),V=p(P,L,U);return L=U,{done:U>P.length,value:V}}}}if(_&&typeof P["_es6-shim iterator_"]<"u")return P["_es6-shim iterator_"]()};if(!i&&!o)Cr.exports=function(P){if(P!=null)return S(P,!0)};else{var R=po(),w=yo(),q=u("Map.prototype.forEach",!0),O=u("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var m=u("Map.prototype.iterator",!0),j=u("Set.prototype.iterator",!0);var Q=u("Map.prototype.@@iterator",!0)||u("Map.prototype._es6-shim iterator_",!0),H=u("Set.prototype.@@iterator",!0)||u("Set.prototype._es6-shim iterator_",!0),F=function(P){if(R(P)){if(m)return e(m(P));if(Q)return Q(P);if(q){var _=[];return q(P,function(N,U){c(_,[U,N])}),h(_)}}if(w(P)){if(j)return e(j(P));if(H)return H(P);if(O){var L=[];return O(P,function(N){c(L,N)}),h(L)}}};Cr.exports=function(P){return F(P)||S(P)}}}return Cr.exports}var mt,qa;function vo(){if(qa)return mt;qa=1;var r=function(e){return e!==e};return mt=function(n,a){return n===0&&a===0?1/n===1/a:!!(n===a||r(n)&&r(a))},mt}var St,Pa;function go(){if(Pa)return St;Pa=1;var r=vo();return St=function(){return typeof Object.is=="function"?Object.is:r},St}var bt,Ia;function ii(){if(Ia)return bt;Ia=1;var r=go(),e=Pr();return bt=function(){var a=r();return e(Object,{is:a},{is:function(){return Object.is!==a}}),a},bt}var At,Ra;function ui(){if(Ra)return At;Ra=1;var r=Pr(),e=jr(),n=vo(),a=go(),t=ii(),f=e(a(),Object);return r(f,{getPolyfill:a,implementation:n,shim:t}),At=f,At}var Ot,$a;function ho(){if($a)return Ot;$a=1;var r=jr(),e=Z(),n=vr(),a=n("%ArrayBuffer%",!0),t=e("ArrayBuffer.prototype.byteLength",!0),f=e("Object.prototype.toString"),i=!!a&&!t&&new a(0).slice,o=!!i&&r(i);return Ot=t||o?function(c){if(!c||typeof c!="object")return!1;try{return t?t(c):o(c,0),!0}catch{return!1}}:a?function(c){return f(c)==="[object ArrayBuffer]"}:function(c){return!1},Ot}var wt,xa;function fi(){if(xa)return wt;xa=1;var r=Z(),e=r("Date.prototype.getDay"),n=function(o){try{return e(o),!0}catch{return!1}},a=r("Object.prototype.toString"),t="[object Date]",f=Ir()();return wt=function(o){return typeof o!="object"||o===null?!1:f?n(o):a(o)===t},wt}var qt,Ea;function mo(){if(Ea)return qt;Ea=1;var r=Z(),e=Ir()(),n=Qt(),a=qr(),t;if(e){var f=r("RegExp.prototype.exec"),i={},o=function(){throw i},u={toString:o,valueOf:o};typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=o),t=function(y){if(!y||typeof y!="object")return!1;var h=a(y,"lastIndex"),S=h&&n(h,"value");if(!S)return!1;try{f(y,u)}catch(R){return R===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 qt=t,qt}var Pt,Ba;function si(){if(Ba)return Pt;Ba=1;var r=Z(),e=r("SharedArrayBuffer.prototype.byteLength",!0);return Pt=e?function(a){if(!a||typeof a!="object")return!1;try{return e(a),!0}catch{return!1}}:function(a){return!1},Pt}var It,ja;function li(){if(ja)return It;ja=1;var r=Z(),e=r("Number.prototype.toString"),n=function(o){try{return e(o),!0}catch{return!1}},a=r("Object.prototype.toString"),t="[object Number]",f=Ir()();return It=function(o){return typeof o=="number"?!0:!o||typeof o!="object"?!1:f?n(o):a(o)===t},It}var Rt,Ma;function ci(){if(Ma)return Rt;Ma=1;var r=Z(),e=r("Boolean.prototype.toString"),n=r("Object.prototype.toString"),a=function(o){try{return e(o),!0}catch{return!1}},t="[object Boolean]",f=Ir()();return Rt=function(o){return typeof o=="boolean"?!0:o===null||typeof o!="object"?!1:f?a(o):n(o)===t},Rt}var Lr={exports:{}},$t,Ta;function pi(){if(Ta)return $t;Ta=1;var r=Z(),e=mo(),n=r("RegExp.prototype.exec"),a=ar();return $t=function(f){if(!e(f))throw new a("`regex` must be a RegExp");return function(o){return n(f,o)!==null}},$t}var Ca;function yi(){if(Ca)return Lr.exports;Ca=1;var r=Z(),e=r("Object.prototype.toString"),n=Vt()(),a=pi();if(n){var t=r("Symbol.prototype.toString"),f=a(/^Symbol\(.*\)$/),i=function(u){return typeof u.valueOf()!="symbol"?!1:f(t(u))};Lr.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 Lr.exports=function(u){return!1};return Lr.exports}var Ur={exports:{}},xt,Da;function vi(){if(Da)return xt;Da=1;var r=typeof BigInt<"u"&&BigInt;return xt=function(){return typeof r=="function"&&typeof BigInt=="function"&&typeof r(42)=="bigint"&&typeof BigInt(42)=="bigint"},xt}var Fa;function gi(){if(Fa)return Ur.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};Ur.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 Ur.exports=function(t){return!1};return Ur.exports}var Et,_a;function hi(){if(_a)return Et;_a=1;var r=co(),e=li(),n=ci(),a=yi(),t=gi();return Et=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(a(i))return"Symbol";if(t(i))return"BigInt"},Et}var Bt,Na;function di(){if(Na)return Bt;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 a=r?r.prototype.has:null,t=e?e.prototype.has:null;return!n&&!a&&(n=function(i){return!1}),Bt=n||function(i){if(!i||typeof i!="object")return!1;try{if(a.call(i,a),t)try{t.call(i,t)}catch{return!0}return i instanceof r}catch{}return!1},Bt}var Hr={exports:{}},Wa;function mi(){if(Wa)return Hr.exports;Wa=1;var r=vr(),e=Z(),n=r("%WeakSet%",!0),a=e("WeakSet.prototype.has",!0);if(a){var t=e("WeakMap.prototype.has",!0);Hr.exports=function(i){if(!i||typeof i!="object")return!1;try{if(a(i,a),t)try{t(i,t)}catch{return!0}return i instanceof n}catch{}return!1}}else Hr.exports=function(i){return!1};return Hr.exports}var jt,ka;function Si(){if(ka)return jt;ka=1;var r=po(),e=yo(),n=di(),a=mi();return jt=function(f){if(f&&typeof f=="object"){if(r(f))return"Map";if(e(f))return"Set";if(n(f))return"WeakMap";if(a(f))return"WeakSet"}return!1},jt}var Mt,La;function bi(){if(La)return Mt;La=1;var r=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,n,a;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{n=Object.defineProperty({},"length",{get:function(){throw a}}),a={},e(function(){throw 42},null,n)}catch(O){O!==a&&(e=null)}else e=null;var t=/^\s*class\b/,f=function(m){try{var j=r.call(m);return t.test(j)}catch{return!1}},i=function(m){try{return f(m)?!1:(r.call(m),!0)}catch{return!1}},o=Object.prototype.toString,u="[object Object]",c="[object Function]",v="[object GeneratorFunction]",p="[object HTMLAllCollection]",y="[object HTML document.all class]",h="[object HTMLCollection]",S=typeof Symbol=="function"&&!!Symbol.toStringTag,R=!(0 in[,]),w=function(){return!1};if(typeof document=="object"){var q=document.all;o.call(q)===o.call(document.all)&&(w=function(m){if((R||!m)&&(typeof m>"u"||typeof m=="object"))try{var j=o.call(m);return(j===p||j===y||j===h||j===u)&&m("")==null}catch{}return!1})}return Mt=e?function(m){if(w(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;try{e(m,null,n)}catch(j){if(j!==a)return!1}return!f(m)&&i(m)}:function(m){if(w(m))return!0;if(!m||typeof m!="function"&&typeof m!="object")return!1;if(S)return i(m);if(f(m))return!1;var j=o.call(m);return j!==c&&j!==v&&!/^\[object HTML/.test(j)?!1:i(m)},Mt}var Tt,Ua;function Ai(){if(Ua)return Tt;Ua=1;var r=bi(),e=Object.prototype.toString,n=Object.prototype.hasOwnProperty,a=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(o){return e.call(o)==="[object Array]"}return Tt=function(u,c,v){if(!r(c))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=v),i(u)?a(u,c,p):typeof u=="string"?t(u,c,p):f(u,c,p)},Tt}var Ct,Ha;function Oi(){return Ha||(Ha=1,Ct=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Ct}var Dt,Ga;function wi(){if(Ga)return Dt;Ga=1;var r=Oi(),e=typeof globalThis>"u"?Gr:globalThis;return Dt=function(){for(var a=[],t=0;t<r.length;t++)typeof e[r[t]]=="function"&&(a[a.length]=r[t]);return a},Dt}var Ft,za;function qi(){if(za)return Ft;za=1;var r=Ai(),e=wi(),n=jr(),a=Z(),t=qr(),f=Xt(),i=a("Object.prototype.toString"),o=Ir()(),u=typeof globalThis>"u"?Gr:globalThis,c=e(),v=a("String.prototype.slice"),p=a("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};o&&t&&f?r(c,function(R){var w=new u[R];if(Symbol.toStringTag in w&&f){var q=f(w),O=t(q,Symbol.toStringTag);if(!O&&q){var m=f(q);O=t(m,Symbol.toStringTag)}y["$"+R]=n(O.get)}}):r(c,function(R){var w=new u[R],q=w.slice||w.set;q&&(y["$"+R]=n(q))});var h=function(w){var q=!1;return r(y,function(O,m){if(!q)try{"$"+O(w)===m&&(q=v(m,1))}catch{}}),q},S=function(w){var q=!1;return r(y,function(O,m){if(!q)try{O(w),q=v(m,1)}catch{}}),q};return Ft=function(w){if(!w||typeof w!="object")return!1;if(!o){var q=v(i(w),8,-1);return p(c,q)>-1?q:q!=="Object"?!1:S(w)}return t?h(w):null},Ft}var _t,Va;function Pi(){if(Va)return _t;Va=1;var r=Z(),e=r("ArrayBuffer.prototype.byteLength",!0),n=ho();return _t=function(t){return n(t)?e?e(t):t.byteLength:NaN},_t}var Nt,Ka;function Ii(){if(Ka)return Nt;Ka=1;var r=Vo(),e=ao(),n=Xo(),a=vr(),t=oi(),f=so(),i=ui(),o=uo(),u=lo(),c=ho(),v=fi(),p=mo(),y=si(),h=Lt(),S=hi(),R=Si(),w=qi(),q=Pi(),O=e("SharedArrayBuffer.prototype.byteLength",!0),m=e("Date.prototype.getTime"),j=Object.getPrototypeOf,Q=e("Object.prototype.toString"),H=a("%Set%",!0),F=e("Map.prototype.has",!0),D=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),U=e("Set.prototype.size",!0);function V(g,d,x,$){for(var M=t(g),T;(T=M.next())&&!T.done;)if(G(d,T.value,x,$))return L(g,T.value),!0;return!1}function sr(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 Rr(g,d,x,$,M,T){var A=sr(x);if(A!=null)return A;var I=D(d,A),b=r({},M,{strict:!1});return typeof I>"u"&&!F(d,A)||!G($,I,b,T)?!1:!F(g,A)&&G($,I,b,T)}function br(g,d,x){var $=sr(x);return $??(N(d,$)&&!N(g,$))}function or(g,d,x,$,M,T){for(var A=t(g),I,b;(I=A.next())&&!I.done;)if(b=I.value,G(x,b,M,T)&&G($,D(d,b),M,T))return L(g,b),!0;return!1}function G(g,d,x,$){var M=x||{};if(M.strict?i(g,d):g===d)return!0;var T=S(g),A=S(d);if(T!==A)return!1;if(!g||!d||typeof g!="object"&&typeof d!="object")return M.strict?i(g,d):g==d;var I=$.has(g),b=$.has(d),E;if(I&&b){if($.get(g)===$.get(d))return!0}else E={};return I||$.set(g,E),b||$.set(d,E),gr(g,d,M,$)}function Ar(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,x,$){if(U(g)!==U(d))return!1;for(var M=t(g),T=t(d),A,I,b;(A=M.next())&&!A.done;)if(A.value&&typeof A.value=="object")b||(b=new H),_(b,A.value);else if(!N(d,A.value)){if(x.strict||!br(g,d,A.value))return!1;b||(b=new H),_(b,A.value)}if(b){for(;(I=T.next())&&!I.done;)if(I.value&&typeof I.value=="object"){if(!V(b,I.value,x.strict,$))return!1}else if(!x.strict&&!N(g,I.value)&&!V(b,I.value,x.strict,$))return!1;return U(b)===0}return!0}function Or(g,d,x,$){if(P(g)!==P(d))return!1;for(var M=t(g),T=t(d),A,I,b,E,z,K;(A=M.next())&&!A.done;)if(E=A.value[0],z=A.value[1],E&&typeof E=="object")b||(b=new H),_(b,E);else if(K=D(d,E),typeof K>"u"&&!F(d,E)||!G(z,K,x,$)){if(x.strict||!Rr(g,d,E,z,x,$))return!1;b||(b=new H),_(b,E)}if(b){for(;(I=T.next())&&!I.done;)if(E=I.value[0],K=I.value[1],E&&typeof E=="object"){if(!or(b,g,E,K,x,$))return!1}else if(!x.strict&&(!g.has(E)||!G(D(g,E),K,x,$))&&!or(b,g,E,K,r({},x,{strict:!1}),$))return!1;return U(b)===0}return!0}function gr(g,d,x,$){var M,T;if(typeof g!=typeof d||g==null||d==null||Q(g)!==Q(d)||o(g)!==o(d))return!1;var A=u(g),I=u(d);if(A!==I)return!1;var b=g instanceof Error,E=d instanceof Error;if(b!==E||(b||E)&&(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),X=v(d);if(J!==X||(J||X)&&m(g)!==m(d)||x.strict&&j&&j(g)!==j(d))return!1;var rr=w(g),lr=w(d);if(rr!==lr)return!1;if(rr||lr){if(g.length!==d.length)return!1;for(M=0;M<g.length;M++)if(g[M]!==d[M])return!1;return!0}var ir=Ar(g),er=Ar(d);if(ir!==er)return!1;if(ir||er){if(g.length!==d.length)return!1;for(M=0;M<g.length;M++)if(g[M]!==d[M])return!1;return!0}var cr=c(g),pr=c(d);if(cr!==pr)return!1;if(cr||pr)return q(g)!==q(d)?!1:typeof Uint8Array=="function"&&G(new Uint8Array(g),new Uint8Array(d),x,$);var yr=y(g),_r=y(d);if(yr!==_r)return!1;if(yr||_r)return O(g)!==O(d)?!1:typeof Uint8Array=="function"&&G(new Uint8Array(g),new Uint8Array(d),x,$);if(typeof g!=typeof d)return!1;var hr=h(g),xr=h(d);if(hr.length!==xr.length)return!1;for(hr.sort(),xr.sort(),M=hr.length-1;M>=0;M--)if(hr[M]!=xr[M])return!1;for(M=hr.length-1;M>=0;M--)if(T=hr[M],!G(g[T],d[T],x,$))return!1;var Mr=R(g),dr=R(d);return Mr!==dr?!1:Mr==="Set"||dr==="Set"?$r(g,d,x,$):Mr==="Map"?Or(g,d,x,$):!0}return Nt=function(d,x,$){return G(d,x,$,f())},Nt}var Ri=Ii();const $i=Po(Ri);function xi(r){return r}function So(r,e,n,a){const t=xi,[f,i]=fr.useState(t(n)),o=fr.useRef(f);return fr.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);$i(o.current,v)||(i(v),o.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,macros:n}=r.attrs,a=fr.useMemo(()=>{try{return Ya.renderToString(decodeURIComponent(e||""),{macros:kt(decodeURIComponent(n||""))})}catch{return e}},[e,n]),t=fr.useMemo(()=>e.trim()?Y.jsx("span",{contentEditable:!1,dangerouslySetInnerHTML:{__html:a}}):Y.jsx("span",{contentEditable:!1,children:"Not enter a formula"}),[e,a]);return Y.jsx(Dr.NodeViewWrapper,{as:"span",style:{display:"inline-block"},children:t})}function Bi(){const{t:r}=qo.useLocale(),[e,n]=fr.useState(!1),a=tr.useButtonProps(Wt.name),{icon:t=void 0,tooltip:f=void 0,tooltipOptions:i={},isActive:o=void 0}=(a==null?void 0:a.componentProps)??{},{editorDisabled:u}=tr.useToggleActive(o),c=tr.useEditorInstance(),v=So(c,Wt.name,{text:"",macros:""}),{text:p,macros:y}=v,[h,S]=fr.useState(decodeURIComponent(p||"")),[R,w]=fr.useState(decodeURIComponent(y||"")),q=fr.useCallback(()=>{c.chain().focus().setKatex({text:encodeURIComponent(h),macros:encodeURIComponent(R)}).run(),S(""),w(""),n(!1)},[c,h,R]),O=fr.useMemo(()=>{try{return Ya.renderToString(h,{macros:kt(R)})}catch{return h}},[R,h]),m=fr.useMemo(()=>`${h}`.trim()?O:null,[h,O]);return Y.jsxs(tr.Dialog,{onOpenChange:n,open:e,children:[Y.jsx(tr.DialogTrigger,{asChild:!0,disabled:u,children:Y.jsx(tr.ActionButton,{disabled:u,icon:t,tooltip:f,tooltipOptions:i,action:()=>{u||n(!0)}})}),Y.jsxs(tr.DialogContent,{className:"richtext-z-[99999] !richtext-max-w-[1300px]",children:[Y.jsx(tr.DialogTitle,{children:r("editor.formula.dialog.text")}),Y.jsx("div",{style:{height:"100%",border:"1px solid hsl(var(--border))"},children:Y.jsxs("div",{className:"richtext-flex richtext-gap-[10px] richtext-rounded-[10px] richtext-p-[10px]",children:[Y.jsxs("div",{className:"richtext-flex-1",children:[Y.jsx(tr.Label,{className:"mb-[6px]",children:"Expression"}),Y.jsx(tr.Textarea,{autoFocus:!0,className:"richtext-mb-[10px]",onChange:j=>S(j.target.value),placeholder:"Text",required:!0,rows:10,value:h,style:{color:"hsl(var(--foreground))"}}),Y.jsx(tr.Label,{className:"mb-[6px]",children:"Macros"}),Y.jsx(tr.Textarea,{className:"richtext-flex-1",placeholder:"Macros",rows:10,value:R,onChange:j=>{w(j.target.value)},style:{color:"hsl(var(--foreground))"}})]}),Y.jsx("div",{className:"richtext-flex richtext-flex-1 richtext-items-center richtext-justify-center richtext-rounded-[10px] richtext-p-[10px]",dangerouslySetInnerHTML:{__html:m||""},style:{height:"100%",borderWidth:1,minHeight:500,background:"#fff"}})]})}),Y.jsx(tr.DialogFooter,{children:Y.jsx(tr.Button,{onClick:q,type:"button",children:"Save changes"})})]})]})}function Ja(r){return e=>e.getAttribute(r)}const Wt=Dr.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:Ja("text")},macros:{default:"",parseHTML:Ja("macros")}}},parseHTML(){return[{tag:"span.katex"}]},renderHTML({HTMLAttributes:r}){return["span",Dr.mergeAttributes(this.options&&this.options.HTMLAttributes||{},r)]},addCommands(){return{setKatex:r=>({commands:e})=>e.insertContent({type:this.name,attrs:r})}},addInputRules(){return[Dr.nodeInputRule({find:/^\$katex\$$/,type:this.type})]},addNodeView(){return Dr.ReactNodeViewRenderer(Ei)}});exports.Katex=Wt;exports.RichTextKatex=Bi;exports.safeJSONParse=kt;exports.useAttributes=So;
|
package/lib/Katex.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./clsx-CXbNJWDD.cjs");const e=require("./Katex-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./clsx-CXbNJWDD.cjs");const e=require("./Katex-DFU1unCm.cjs");exports.Katex=e.Katex;exports.RichTextKatex=e.RichTextKatex;
|
package/lib/Katex.js
CHANGED
package/lib/LineHeight.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-CjhjjJsN.cjs"),p=require("./index-DgOXAdKt.cjs"),t=require("react/jsx-runtime"),x=require("react"),a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index-CjhjjJsN.cjs"),p=require("./index-DgOXAdKt.cjs"),t=require("react/jsx-runtime"),x=require("react"),a=require("./index-BynXHtjJ.cjs");require("./theme.cjs");const s=require("./dropdown-menu-DirUyRAI.cjs");function D(){const n=a.useButtonProps(f.name),{tooltip:o=void 0,items:i,icon:u,isActive:l=void 0}=(n==null?void 0:n.componentProps)??{},{editorDisabled:c,dataState:r}=a.useActive(l);return n?t.jsxs(s.DropdownMenu,{children:[t.jsx(s.DropdownMenuTrigger,{asChild:!0,disabled:c,children:t.jsx(a.ActionButton,{customClass:"!richtext-w-12 richtext-h-12",disabled:c,icon:u,tooltip:o,children:t.jsx(a.IconComponent,{className:"richtext-ml-1 richtext-size-3 richtext-text-zinc-500",name:"MenuDown"})})}),t.jsx(s.DropdownMenuContent,{className:"richtext-min-w-24",children:i==null?void 0:i.map((e,h)=>t.jsxs(x.Fragment,{children:[t.jsx(s.DropdownMenuCheckboxItem,{checked:e.value===(r==null?void 0:r.value),onClick:()=>e==null?void 0:e.action(),children:e.label}),e.value==="Default"&&t.jsx(s.DropdownMenuSeparator,{})]},`line-height-${h}`))})]}):t.jsx(t.Fragment,{})}const f=g.LineHeight.extend({addOptions(){var n;return{...(n=this.parent)==null?void 0:n.call(this),lineHeights:p.DEFAULT_LINE_HEIGHT_LIST,button({editor:o,extension:i,t:u}){var c,r;const l=(r=(c=i==null?void 0:i.options)==null?void 0:c.lineHeights)==null?void 0:r.map(e=>({label:e==="Default"?u("editor.default"):String(e),value:e,isActive:()=>e==="Default"?!0:o.isActive("textStyle",{lineHeight:e})||!1,action:()=>{if(e==="Default"){o.chain().focus().unsetLineHeight().run();return}o.chain().focus().toggleTextStyle({lineHeight:e}).run()},default:e==="Default"||!1}));return{componentProps:{tooltip:u("editor.lineheight.tooltip"),items:l,icon:"LineHeight",isActive:()=>{const e=(l||[]).find(d=>d.isActive()&&!d.default);return e&&!e.default?e:{value:"Default",isActive:()=>!1}}}}}}}});exports.LineHeight=f;exports.RichTextLineHeight=D;
|
package/lib/LineHeight.js
CHANGED
|
@@ -2,9 +2,9 @@ import { L as d } from "./index-Dl3OjzmR.js";
|
|
|
2
2
|
import { h as f } from "./index-BGd2HiwP.js";
|
|
3
3
|
import { jsx as i, Fragment as p, jsxs as h } from "react/jsx-runtime";
|
|
4
4
|
import { Fragment as g } from "react";
|
|
5
|
-
import { u as m, e as D, A as v, I as x } from "./index-
|
|
5
|
+
import { u as m, e as D, A as v, I as x } from "./index-CnKgiZFQ.js";
|
|
6
6
|
import "./theme.js";
|
|
7
|
-
import { D as H, a as A, b as L, c as w, d as b } from "./dropdown-menu-
|
|
7
|
+
import { D as H, a as A, b as L, c as w, d as b } from "./dropdown-menu-Ce2TorkG.js";
|
|
8
8
|
function _() {
|
|
9
9
|
const t = m(C.name), {
|
|
10
10
|
tooltip: o = void 0,
|
package/lib/Link.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./clsx-CXbNJWDD.cjs");const e=require("./LinkEditBlock-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./clsx-CXbNJWDD.cjs");const e=require("./LinkEditBlock-C2zX0WVK.cjs");exports.Link=e.Link;exports.RichTextLink=e.RichTextLink;
|
package/lib/Link.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as x, Fragment as je, jsxs as G } from "react/jsx-runtime";
|
|
2
2
|
import { useState as Gt, useRef as me, useEffect as Ue } from "react";
|
|
3
|
-
import { h as Be, u as ze, d as We, A as Fe, I as be,
|
|
3
|
+
import { h as Be, u as ze, d as We, A as Fe, I as be, v as Ke, L as Ut, j as ge, C as _e, B as pe } from "./index-CnKgiZFQ.js";
|
|
4
4
|
import "./theme.js";
|
|
5
5
|
import { M as Ge, e as $e, m as $t, B as Qe, C as qe, G as Je, H as Ve, I as Ye } from "./clsx-BUPZHhq3.js";
|
|
6
6
|
import { Plugin as ee, PluginKey as ne } from "@tiptap/pm/state";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { P as Xe, a as Ze, b as tn } from "./popover-BzJyaFvy.js";
|
|
8
|
+
import { u as en } from "./index-BGd2HiwP.js";
|
|
9
9
|
const nn = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", on = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Qt = "numeric", qt = "ascii", Jt = "alpha", Q = "asciinumeric", $ = "alphanumeric", Vt = "domain", Re = "emoji", sn = "scheme", rn = "slashscheme", Bt = "whitespace";
|
|
10
10
|
function an(t, n) {
|
|
11
11
|
return t in n || (n[t] = []), n[t];
|
|
@@ -1003,9 +1003,9 @@ function jn() {
|
|
|
1003
1003
|
function m(p, b, E) {
|
|
1004
1004
|
c || d && (d({ link: p, text: b, openInNewTab: E }), n(!1), u());
|
|
1005
1005
|
}
|
|
1006
|
-
return i ? /* @__PURE__ */ G(
|
|
1006
|
+
return i ? /* @__PURE__ */ G(Xe, { modal: !0, onOpenChange: n, open: t, children: [
|
|
1007
1007
|
/* @__PURE__ */ x(
|
|
1008
|
-
|
|
1008
|
+
Ze,
|
|
1009
1009
|
{
|
|
1010
1010
|
asChild: !0,
|
|
1011
1011
|
"data-state": h ? "on" : "off",
|
|
@@ -1013,7 +1013,7 @@ function jn() {
|
|
|
1013
1013
|
children: /* @__PURE__ */ x(Fe, { dataState: h, disabled: c, tooltip: a, children: /* @__PURE__ */ x(be, { name: s }) })
|
|
1014
1014
|
}
|
|
1015
1015
|
),
|
|
1016
|
-
/* @__PURE__ */ x(
|
|
1016
|
+
/* @__PURE__ */ x(tn, { align: "start", className: "richtext-w-full", hideWhenDetached: !0, side: "bottom", children: /* @__PURE__ */ x(Sn, { editor: e, onSetLink: m, open: t, target: l }) })
|
|
1017
1017
|
] }) : /* @__PURE__ */ x(je, {});
|
|
1018
1018
|
}
|
|
1019
1019
|
const He = /* @__PURE__ */ On.extend({
|
|
@@ -1108,7 +1108,7 @@ const He = /* @__PURE__ */ On.extend({
|
|
|
1108
1108
|
// },
|
|
1109
1109
|
});
|
|
1110
1110
|
function Sn(t) {
|
|
1111
|
-
const { t: n } =
|
|
1111
|
+
const { t: n } = en(), [e, i] = Gt({
|
|
1112
1112
|
text: "",
|
|
1113
1113
|
link: ""
|
|
1114
1114
|
}), [o, s] = Gt(!1), a = me(null), l = me(null), d = Ke(He.name);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const k=require("react/jsx-runtime"),F=require("react"),R=require("./index-
|
|
1
|
+
"use strict";const k=require("react/jsx-runtime"),F=require("react"),R=require("./index-BynXHtjJ.cjs");require("./theme.cjs");const I=require("./clsx-CXbNJWDD.cjs"),_=require("@tiptap/pm/state"),Wt=require("./popover-BdLwAlrM.cjs"),we=require("./index-DgOXAdKt.cjs"),He="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",je="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Qt="numeric",Jt="ascii",Vt="alpha",V="asciinumeric",J="alphanumeric",Yt="domain",xe="emoji",Me="scheme",De="slashscheme",Ft="whitespace";function Ue(t,n){return t in n||(n[t]=[]),n[t]}function z(t,n,e){n[Qt]&&(n[V]=!0,n[J]=!0),n[Jt]&&(n[V]=!0,n[Vt]=!0),n[V]&&(n[J]=!0),n[Vt]&&(n[J]=!0),n[J]&&(n[Yt]=!0),n[xe]&&(n[Yt]=!0);for(const i in n){const s=Ue(i,e);s.indexOf(t)<0&&s.push(t)}}function Be(t,n){const e={};for(const i in n)n[i].indexOf(t)>=0&&(e[i]=!0);return e}function y(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}y.groups={};y.prototype={accepts(){return!!this.t},go(t){const n=this,e=n.j[t];if(e)return e;for(let i=0;i<n.jr.length;i++){const s=n.jr[i][0],o=n.jr[i][1];if(o&&s.test(t))return o}return n.jd},has(t,n=!1){return n?t in this.j:!!this.go(t)},ta(t,n,e,i){for(let s=0;s<t.length;s++)this.tt(t[s],n,e,i)},tr(t,n,e,i){i=i||y.groups;let s;return n&&n.j?s=n:(s=new y(n),e&&i&&z(n,e,i)),this.jr.push([t,s]),s},ts(t,n,e,i){let s=this;const o=t.length;if(!o)return s;for(let a=0;a<o-1;a++)s=s.tt(t[a]);return s.tt(t[o-1],n,e,i)},tt(t,n,e,i){i=i||y.groups;const s=this;if(n&&n.j)return s.j[t]=n,n;const o=n;let a,l=s.go(t);if(l?(a=new y,Object.assign(a.j,l.j),a.jr.push.apply(a.jr,l.jr),a.jd=l.jd,a.t=l.t):a=new y,o){if(i)if(a.t&&typeof a.t=="string"){const d=Object.assign(Be(a.t,i),e);z(o,d,i)}else e&&z(o,e,i);a.t=o}return s.j[t]=a,a}};const f=(t,n,e,i,s)=>t.ta(n,e,i,s),x=(t,n,e,i,s)=>t.tr(n,e,i,s),me=(t,n,e,i,s)=>t.ts(n,e,i,s),r=(t,n,e,i,s)=>t.tt(n,e,i,s),j="WORD",Xt="UWORD",Te="ASCIINUMERICAL",Ce="ALPHANUMERICAL",nt="LOCALHOST",Zt="TLD",te="UTLD",ct="SCHEME",K="SLASH_SCHEME",ne="NUM",ee="WS",ie="NL",Y="OPENBRACE",X="CLOSEBRACE",ut="OPENBRACKET",dt="CLOSEBRACKET",ht="OPENPAREN",ft="CLOSEPAREN",mt="OPENANGLEBRACKET",gt="CLOSEANGLEBRACKET",pt="FULLWIDTHLEFTPAREN",Et="FULLWIDTHRIGHTPAREN",kt="LEFTCORNERBRACKET",At="RIGHTCORNERBRACKET",Lt="LEFTWHITECORNERBRACKET",xt="RIGHTWHITECORNERBRACKET",Tt="FULLWIDTHLESSTHAN",Ct="FULLWIDTHGREATERTHAN",bt="AMPERSAND",Rt="APOSTROPHE",yt="ASTERISK",D="AT",Ot="BACKSLASH",St="BACKTICK",Nt="CARET",U="COLON",se="COMMA",vt="DOLLAR",N="DOT",It="EQUALS",oe="EXCLAMATION",S="HYPHEN",Z="PERCENT",Pt="PIPE",wt="PLUS",Ht="POUND",tt="QUERY",re="QUOTE",be="FULLWIDTHMIDDLEDOT",ae="SEMI",v="SLASH",et="TILDE",jt="UNDERSCORE",Re="EMOJI",Mt="SYM";var ye=Object.freeze({__proto__:null,ALPHANUMERICAL:Ce,AMPERSAND:bt,APOSTROPHE:Rt,ASCIINUMERICAL:Te,ASTERISK:yt,AT:D,BACKSLASH:Ot,BACKTICK:St,CARET:Nt,CLOSEANGLEBRACKET:gt,CLOSEBRACE:X,CLOSEBRACKET:dt,CLOSEPAREN:ft,COLON:U,COMMA:se,DOLLAR:vt,DOT:N,EMOJI:Re,EQUALS:It,EXCLAMATION:oe,FULLWIDTHGREATERTHAN:Ct,FULLWIDTHLEFTPAREN:pt,FULLWIDTHLESSTHAN:Tt,FULLWIDTHMIDDLEDOT:be,FULLWIDTHRIGHTPAREN:Et,HYPHEN:S,LEFTCORNERBRACKET:kt,LEFTWHITECORNERBRACKET:Lt,LOCALHOST:nt,NL:ie,NUM:ne,OPENANGLEBRACKET:mt,OPENBRACE:Y,OPENBRACKET:ut,OPENPAREN:ht,PERCENT:Z,PIPE:Pt,PLUS:wt,POUND:Ht,QUERY:tt,QUOTE:re,RIGHTCORNERBRACKET:At,RIGHTWHITECORNERBRACKET:xt,SCHEME:ct,SEMI:ae,SLASH:v,SLASH_SCHEME:K,SYM:Mt,TILDE:et,TLD:Zt,UNDERSCORE:jt,UTLD:te,UWORD:Xt,WORD:j,WS:ee});const w=/[a-z]/,Q=new RegExp("\\p{L}","u"),Kt=new RegExp("\\p{Emoji}","u"),H=/\d/,_t=/\s/,ge="\r",Gt=`
|
|
2
2
|
`,ze="️",We="",qt="";let rt=null,at=null;function Fe(t=[]){const n={};y.groups=n;const e=new y;rt==null&&(rt=pe(He)),at==null&&(at=pe(je)),r(e,"'",Rt),r(e,"{",Y),r(e,"}",X),r(e,"[",ut),r(e,"]",dt),r(e,"(",ht),r(e,")",ft),r(e,"<",mt),r(e,">",gt),r(e,"(",pt),r(e,")",Et),r(e,"「",kt),r(e,"」",At),r(e,"『",Lt),r(e,"』",xt),r(e,"<",Tt),r(e,">",Ct),r(e,"&",bt),r(e,"*",yt),r(e,"@",D),r(e,"`",St),r(e,"^",Nt),r(e,":",U),r(e,",",se),r(e,"$",vt),r(e,".",N),r(e,"=",It),r(e,"!",oe),r(e,"-",S),r(e,"%",Z),r(e,"|",Pt),r(e,"+",wt),r(e,"#",Ht),r(e,"?",tt),r(e,'"',re),r(e,"/",v),r(e,";",ae),r(e,"~",et),r(e,"_",jt),r(e,"\\",Ot),r(e,"・",be);const i=x(e,H,ne,{[Qt]:!0});x(i,H,i);const s=x(i,w,Te,{[V]:!0}),o=x(i,Q,Ce,{[J]:!0}),a=x(e,w,j,{[Jt]:!0});x(a,H,s),x(a,w,a),x(s,H,s),x(s,w,s);const l=x(e,Q,Xt,{[Vt]:!0});x(l,w),x(l,H,o),x(l,Q,l),x(o,H,o),x(o,w),x(o,Q,o);const d=r(e,Gt,ie,{[Ft]:!0}),h=r(e,ge,ee,{[Ft]:!0}),c=x(e,_t,ee,{[Ft]:!0});r(e,qt,c),r(h,Gt,d),r(h,qt,c),x(h,_t,c),r(c,ge),r(c,Gt),x(c,_t,c),r(c,qt,c);const u=x(e,Kt,Re,{[xe]:!0});r(u,"#"),x(u,Kt,u),r(u,ze,u);const m=r(u,We);r(m,"#"),x(m,Kt,u);const p=[[w,a],[H,s]],b=[[w,null],[Q,l],[H,o]];for(let E=0;E<rt.length;E++)M(e,rt[E],Zt,j,p);for(let E=0;E<at.length;E++)M(e,at[E],te,Xt,b);z(Zt,{tld:!0,ascii:!0},n),z(te,{utld:!0,alpha:!0},n),M(e,"file",ct,j,p),M(e,"mailto",ct,j,p),M(e,"http",K,j,p),M(e,"https",K,j,p),M(e,"ftp",K,j,p),M(e,"ftps",K,j,p),z(ct,{scheme:!0,ascii:!0},n),z(K,{slashscheme:!0,ascii:!0},n),t=t.sort((E,T)=>E[0]>T[0]?1:-1);for(let E=0;E<t.length;E++){const T=t[E][0],L=t[E][1]?{[Me]:!0}:{[De]:!0};T.indexOf("-")>=0?L[Yt]=!0:w.test(T)?H.test(T)?L[V]=!0:L[Jt]=!0:L[Qt]=!0,me(e,T,T,L)}return me(e,"localhost",nt,{ascii:!0}),e.jd=new y(Mt),{start:e,tokens:Object.assign({groups:n},ye)}}function Oe(t,n){const e=Ke(n.replace(/[A-Z]/g,l=>l.toLowerCase())),i=e.length,s=[];let o=0,a=0;for(;a<i;){let l=t,d=null,h=0,c=null,u=-1,m=-1;for(;a<i&&(d=l.go(e[a]));)l=d,l.accepts()?(u=0,m=0,c=l):u>=0&&(u+=e[a].length,m++),h+=e[a].length,o+=e[a].length,a++;o-=u,a-=m,h-=u,s.push({t:c.t,v:n.slice(o-h,o),s:o-h,e:o})}return s}function Ke(t){const n=[],e=t.length;let i=0;for(;i<e;){let s=t.charCodeAt(i),o,a=s<55296||s>56319||i+1===e||(o=t.charCodeAt(i+1))<56320||o>57343?t[i]:t.slice(i,i+2);n.push(a),i+=a.length}return n}function M(t,n,e,i,s){let o;const a=n.length;for(let l=0;l<a-1;l++){const d=n[l];t.j[d]?o=t.j[d]:(o=new y(i),o.jr=s.slice(),t.j[d]=o),t=o}return o=new y(e),o.jr=s.slice(),t.j[n[a-1]]=o,o}function pe(t){const n=[],e=[];let i=0,s="0123456789";for(;i<t.length;){let o=0;for(;s.indexOf(t[i+o])>=0;)o++;if(o>0){n.push(e.join(""));for(let a=parseInt(t.substring(i,i+o),10);a>0;a--)e.pop();i+=o}else e.push(t[i]),i++}return n}const it={defaultProtocol:"http",events:null,format:Ee,formatHref:Ee,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function le(t,n=null){let e=Object.assign({},it);t&&(e=Object.assign(e,t instanceof le?t.o:t));const i=e.ignoreTags,s=[];for(let o=0;o<i.length;o++)s.push(i[o].toUpperCase());this.o=e,n&&(this.defaultRender=n),this.ignoreTags=s}le.prototype={o:it,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,n,e){const i=n!=null;let s=this.o[t];return s&&(typeof s=="object"?(s=e.t in s?s[e.t]:it[t],typeof s=="function"&&i&&(s=s(n,e))):typeof s=="function"&&i&&(s=s(n,e.t,e)),s)},getObj(t,n,e){let i=this.o[t];return typeof i=="function"&&n!=null&&(i=i(n,e.t,e)),i},render(t){const n=t.render(this);return(this.get("render",null,t)||this.defaultRender)(n,t.t,t)}};function Ee(t){return t}function Se(t,n){this.t="token",this.v=t,this.tk=n}Se.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const n=this.toString(),e=t.get("truncate",n,this),i=t.get("format",n,this);return e&&i.length>e?i.substring(0,e)+"…":i},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=it.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const n=this,e=this.toHref(t.get("defaultProtocol")),i=t.get("formatHref",e,this),s=t.get("tagName",e,n),o=this.toFormattedString(t),a={},l=t.get("className",e,n),d=t.get("target",e,n),h=t.get("rel",e,n),c=t.getObj("attributes",e,n),u=t.getObj("events",e,n);return a.href=i,l&&(a.class=l),d&&(a.target=d),h&&(a.rel=h),c&&Object.assign(a,c),{tagName:s,attributes:a,content:o,eventListeners:u}}};function Dt(t,n){class e extends Se{constructor(s,o){super(s,o),this.t=t}}for(const i in n)e.prototype[i]=n[i];return e.t=t,e}const ke=Dt("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Ae=Dt("text"),_e=Dt("nl"),lt=Dt("url",{isLink:!0,toHref(t=it.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==nt&&t[1].t===U}}),O=t=>new y(t);function Ge({groups:t}){const n=t.domain.concat([bt,yt,D,Ot,St,Nt,vt,It,S,ne,Z,Pt,wt,Ht,v,Mt,et,jt]),e=[Rt,U,se,N,oe,Z,tt,re,ae,mt,gt,Y,X,dt,ut,ht,ft,pt,Et,kt,At,Lt,xt,Tt,Ct],i=[bt,Rt,yt,Ot,St,Nt,vt,It,S,Y,X,Z,Pt,wt,Ht,tt,v,Mt,et,jt],s=O(),o=r(s,et);f(o,i,o),f(o,t.domain,o);const a=O(),l=O(),d=O();f(s,t.domain,a),f(s,t.scheme,l),f(s,t.slashscheme,d),f(a,i,o),f(a,t.domain,a);const h=r(a,D);r(o,D,h),r(l,D,h),r(d,D,h);const c=r(o,N);f(c,i,o),f(c,t.domain,o);const u=O();f(h,t.domain,u),f(u,t.domain,u);const m=r(u,N);f(m,t.domain,u);const p=O(ke);f(m,t.tld,p),f(m,t.utld,p),r(h,nt,p);const b=r(u,S);r(b,S,b),f(b,t.domain,u),f(p,t.domain,u),r(p,N,m),r(p,S,b);const E=r(p,U);f(E,t.numeric,ke);const T=r(a,S),g=r(a,N);r(T,S,T),f(T,t.domain,a),f(g,i,o),f(g,t.domain,a);const L=O(lt);f(g,t.tld,L),f(g,t.utld,L),f(L,t.domain,a),f(L,i,o),r(L,N,g),r(L,S,T),r(L,D,h);const st=r(L,U),G=O(lt);f(st,t.numeric,G);const C=O(lt),P=O();f(C,n,C),f(C,e,P),f(P,n,C),f(P,e,P),r(L,v,C),r(G,v,C);const q=r(l,U),Ie=r(d,U),Pe=r(Ie,v),Ut=r(Pe,v);f(l,t.domain,a),r(l,N,g),r(l,S,T),f(d,t.domain,a),r(d,N,g),r(d,S,T),f(q,t.domain,C),r(q,v,C),r(q,tt,C),f(Ut,t.domain,C),f(Ut,n,C),r(Ut,v,C);const he=[[Y,X],[ut,dt],[ht,ft],[mt,gt],[pt,Et],[kt,At],[Lt,xt],[Tt,Ct]];for(let Bt=0;Bt<he.length;Bt++){const[fe,zt]=he[Bt],ot=r(C,fe);r(P,fe,ot),r(ot,zt,C);const W=O(lt);f(ot,n,W);const $=O();f(ot,e),f(W,n,W),f(W,e,$),f($,n,W),f($,e,$),r(W,zt,C),r($,zt,C)}return r(s,nt,L),r(s,ie,_e),{start:s,tokens:ye}}function qe(t,n,e){let i=e.length,s=0,o=[],a=[];for(;s<i;){let l=t,d=null,h=null,c=0,u=null,m=-1;for(;s<i&&!(d=l.go(e[s].t));)a.push(e[s++]);for(;s<i&&(h=d||l.go(e[s].t));)d=null,l=h,l.accepts()?(m=0,u=l):m>=0&&m++,s++,c++;if(m<0)s-=c,s<i&&(a.push(e[s]),s++);else{a.length>0&&(o.push($t(Ae,n,a)),a=[]),s-=m,c-=m;const p=u.t,b=e.slice(s-c,s);o.push($t(p,n,b))}}return a.length>0&&o.push($t(Ae,n,a)),o}function $t(t,n,e){const i=e[0].s,s=e[e.length-1].e,o=n.slice(i,s);return new t(o,e)}const $e=typeof console<"u"&&console&&console.warn||(()=>{}),Qe="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",A={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Je(){return y.groups={},A.scanner=null,A.parser=null,A.tokenQueue=[],A.pluginQueue=[],A.customSchemes=[],A.initialized=!1,A}function Le(t,n=!1){if(A.initialized&&$e(`linkifyjs: already initialized - will not register custom scheme "${t}" ${Qe}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
|
|
3
3
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
4
4
|
2. Cannot start or end with "-"
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var H=Object.create;var A=Object.defineProperty;var O=Object.getOwnPropertyDescriptor;var _=Object.getOwnPropertyNames;var $=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty;var z=(e,i,s,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let l of _(i))!B.call(e,l)&&l!==s&&A(e,l,{get:()=>i[l],enumerable:!(o=O(i,l))||o.enumerable});return e};var T=(e,i,s)=>(s=e!=null?H($(e)):{},z(i||!e||!e.__esModule?A(s,"default",{value:e,enumerable:!0}):s,e));const N=require("./clsx-CXbNJWDD.cjs"),t=require("react/jsx-runtime"),r=require("react"),c=require("./index-BynXHtjJ.cjs"),L=({editor:e,node:i,updateAttributes:s})=>{var n,d;const o=((n=i==null?void 0:i.attrs)==null?void 0:n.code)??v,l=((d=i==null?void 0:i.attrs)==null?void 0:d.align)??"center",[a,M]=r.useState(o),[b,m]=r.useState(""),[y,u]=r.useState(""),[g,f]=r.useState(!1),[h,w]=r.useState(null),[p,S]=r.useState(!0),D=r.useRef(`mermaid-edit-${Math.random().toString(36).slice(2,9)}`),C=r.useCallback(x=>{f(x),x&&M(o)},[o]);r.useEffect(()=>{import("mermaid").then(x=>{const j=x.default;j.initialize({startOnLoad:!1,darkMode:!1,fontSize:12,theme:"base"}),w(j)}).finally(()=>S(!1))},[]),r.useEffect(()=>{if(!h||!g)return;(async()=>{const j=a.trim();if(!j){m(""),u("");return}try{const E=`${D.current}-${Date.now()}`,{svg:k}=await h.render(E,j);m(k),u("")}catch(E){m(""),u((E==null?void 0:E.message)??"Invalid Mermaid syntax")}})()},[a,h,g]);const I=r.useCallback(()=>{a.trim()&&(s?s({code:a}):e==null||e.chain().focus().setMermaid({code:a,align:l}).run(),f(!1))},[e,a,l,s]);return t.jsxs(c.Dialog,{onOpenChange:C,open:g,children:[t.jsx(c.DialogTrigger,{asChild:!0,children:t.jsx(c.ActionButton,{action:()=>f(!0),icon:"Pencil",tooltip:"Edit Mermaid"})}),t.jsxs(c.DialogContent,{className:"richtext-z-[99999] !richtext-max-w-[1300px]",children:[t.jsx(c.DialogTitle,{children:"Edit Mermaid Diagram"}),t.jsx("div",{style:{height:"100%",border:"1px solid hsl(var(--border))"},children:p?t.jsx("div",{className:"richtext-flex richtext-items-center richtext-justify-center richtext-p-10 richtext-text-sm richtext-text-gray-400",children:"Loading Mermaid…"}):t.jsxs("div",{className:"richtext-flex richtext-gap-[10px] richtext-rounded-[10px] richtext-p-[10px]",children:[t.jsx(c.Textarea,{autoFocus:!0,className:"richtext-flex-1 richtext-font-mono richtext-text-sm",onChange:x=>M(x.target.value),placeholder:v,required:!0,rows:18,value:a,style:{color:"hsl(var(--foreground))"}}),t.jsx("div",{className:"richtext-flex richtext-flex-1 richtext-items-center richtext-justify-center richtext-overflow-auto richtext-rounded-[10px] richtext-p-[10px]",style:{minHeight:400,border:"1px solid hsl(var(--border))",background:"#fff"},children:y?t.jsxs("p",{className:"richtext-max-w-xs richtext-break-words richtext-text-sm richtext-text-red-500",children:["⚠ ",y]}):b?t.jsx("div",{dangerouslySetInnerHTML:{__html:b}}):t.jsx("p",{className:"richtext-text-sm richtext-text-gray-400",children:"Start typing to preview…"})})]})}),t.jsx(c.DialogFooter,{children:t.jsx(c.Button,{disabled:p||!h||!a.trim(),onClick:I,type:"button",children:"Save changes"})})]})]})};function q({editor:e,node:i,updateAttributes:s,selected:o,extension:l}){const[a,M]=r.useState(()=>(e==null?void 0:e.isEditable)??!1);r.useEffect(()=>{const n=()=>M((e==null?void 0:e.isEditable)??!1);return n(),e==null||e.on("editableUpdate",n),e==null||e.on("update",n),()=>{e==null||e.off("editableUpdate",n),e==null||e.off("update",n)}},[e]);const{code:b,align:m,width:y}=i.attrs,u=r.useRef(null),[g,f]=r.useState(""),[h,w]=r.useState(""),[p,S]=r.useState(null),D=r.useRef(`mermaid-view-${Math.random().toString(36).slice(2,9)}`);r.useEffect(()=>{import("mermaid").then(n=>{const d=n.default;d.initialize({startOnLoad:!1,darkMode:!1,fontSize:12,theme:"base"}),S(d)})},[]);const C=r.useCallback(async n=>{if(!(!p||!(n!=null&&n.trim())))try{const d=`${D.current}-${Date.now()}`,{svg:x}=await p.render(d,n);f(x),w("")}catch(d){f(""),w((d==null?void 0:d.message)??"Invalid Mermaid syntax")}},[p]);r.useEffect(()=>{C(b)},[b,C]);const I={textAlign:m??"center",width:y??"100%"};return t.jsx(N.NodeViewWrapper,{className:"mermaid-node-view richtext-relative richtext-my-4",style:I,children:t.jsxs("div",{"data-drag-handle":!0,draggable:a?"true":"false",ref:u,className:["richtext-relative richtext-inline-block richtext-rounded-lg richtext-border richtext-bg-white richtext-p-4 richtext-transition-all",a?o?"richtext-border-gray-300":"richtext-border-transparent":"richtext-pointer-events-none richtext-select-none richtext-border-transparent"].join(" "),style:{maxWidth:"100%"},children:[h?t.jsx("div",{className:"richtext-flex richtext-min-h-[120px] richtext-min-w-[200px] richtext-items-center richtext-justify-center richtext-rounded richtext-bg-red-50 richtext-p-4 richtext-text-sm richtext-text-red-500",children:t.jsxs("span",{children:["⚠ ",h]})}):g?t.jsx("div",{className:"mermaid-svg-container",dangerouslySetInnerHTML:{__html:g}}):t.jsx("div",{className:"richtext-flex richtext-min-h-[120px] richtext-min-w-[200px] richtext-items-center richtext-justify-center richtext-rounded richtext-bg-gray-50 richtext-text-sm richtext-text-gray-400",children:"Rendering…"}),a&&t.jsx("div",{className:"richtext-absolute richtext-right-2 richtext-top-2 richtext-opacity-0 richtext-transition-opacity [.mermaid-node-view:hover_&]:richtext-opacity-100",children:t.jsx(L,{editor:e,node:i,updateAttributes:s,extension:l})})]})})}function F(){const e=c.useEditorInstance(),i=c.useButtonProps(R.name),{tooltipOptions:s={},isActive:o=void 0}=(i==null?void 0:i.componentProps)??{},{editorDisabled:l}=c.useToggleActive(o),[a,M]=r.useState(v),[b,m]=r.useState(""),[y,u]=r.useState(""),[g,f]=r.useState(!1),[h,w]=r.useState(null),[p,S]=r.useState(!0),D=r.useRef(`mermaid-toolbar-${Math.random().toString(36).slice(2,9)}`);r.useEffect(()=>{import("mermaid").then(n=>{const d=n.default;d.initialize({startOnLoad:!1,darkMode:!1,fontSize:12,theme:"base"}),w(d)}).finally(()=>S(!1))},[]),r.useEffect(()=>{if(!h||!g)return;(async()=>{const d=a.trim();if(!d){m(""),u("");return}try{const x=`${D.current}-${Date.now()}`,{svg:j}=await h.render(x,d);m(j),u("")}catch(x){m(""),u((x==null?void 0:x.message)??"Invalid Mermaid syntax")}})()},[a,h,g]);const C=r.useCallback(n=>{f(n),n&&(M(v),m(""),u(""))},[]),I=r.useCallback(()=>{a.trim()&&(e==null||e.chain().focus().setMermaid({code:a,align:"center",width:"100%"}).run(),f(!1))},[e,a]);return t.jsxs(c.Dialog,{onOpenChange:C,open:g,children:[t.jsx(c.DialogTrigger,{asChild:!0,children:t.jsx(c.ActionButton,{disabled:l,icon:"Mermaid",tooltip:"Mermaid",tooltipOptions:s,action:()=>{l||f(!0)}})}),t.jsxs(c.DialogContent,{className:"richtext-z-[99999] !richtext-max-w-[1300px]",children:[t.jsx(c.DialogTitle,{children:"Insert Mermaid Diagram"}),t.jsx("div",{style:{height:"100%",border:"1px solid hsl(var(--border))"},children:p?t.jsx("div",{className:"richtext-flex richtext-items-center richtext-justify-center richtext-p-10 richtext-text-sm richtext-text-gray-400",children:"Loading Mermaid…"}):t.jsxs("div",{className:"richtext-flex richtext-gap-[10px] richtext-rounded-[10px] richtext-p-[10px]",children:[t.jsx(c.Textarea,{autoFocus:!0,className:"richtext-flex-1 richtext-font-mono richtext-text-sm",onChange:n=>M(n.target.value),placeholder:v,required:!0,rows:18,value:a,style:{color:"hsl(var(--foreground))"}}),t.jsx("div",{className:"richtext-flex richtext-flex-1 richtext-items-center richtext-justify-center richtext-overflow-auto richtext-rounded-[10px] richtext-p-[10px]",style:{minHeight:400,border:"1px solid hsl(var(--border))",background:"#fff"},children:y?t.jsxs("p",{className:"richtext-max-w-xs richtext-break-words richtext-text-sm richtext-text-red-500",children:["⚠ ",y]}):b?t.jsx("div",{dangerouslySetInnerHTML:{__html:b}}):t.jsx("p",{className:"richtext-text-sm richtext-text-gray-400",children:"Start typing to preview…"})})]})}),t.jsx(c.DialogFooter,{children:t.jsx(c.Button,{disabled:p||!h||!a.trim(),onClick:I,type:"button",children:"Insert diagram"})})]})]})}const v=`graph TB
|
|
2
|
+
A --> B`,R=N.Node3.create({name:"mermaid",group:"block",selectable:!0,atom:!0,draggable:!0,inline:!1,addOptions(){return{divider:!1,spacer:!1,HTMLAttributes:{class:"mermaid-node"},button:({editor:e,t:i,extension:s})=>({componentProps:{action:()=>!0,isActive:()=>e.isActive("mermaid"),disabled:!1,editor:e,icon:"Mermaid",tooltip:i("editor.mermaid.tooltip")}})}},addAttributes(){return{code:{default:v,parseHTML:e=>e.getAttribute("data-code")?decodeURIComponent(e.getAttribute("data-code")):v,renderHTML:e=>({"data-code":encodeURIComponent(e.code??"")})},align:{default:"center",parseHTML:e=>e.getAttribute("data-align")??"center",renderHTML:e=>({"data-align":e.align})},width:{default:"100%",parseHTML:e=>e.getAttribute("data-width")??"100%",renderHTML:e=>({"data-width":e.width})}}},parseHTML(){return[{tag:"div[class=mermaid-node]"}]},renderHTML({HTMLAttributes:e,node:i}){const{align:s}=i.attrs,o=s?`text-align: ${s};`:"";return["div",N.mergeAttributes({class:"mermaid-node"},e,{style:o})]},addCommands(){return{setMermaid:e=>({tr:i,commands:s})=>{var o,l,a;return e={code:v,align:"center",width:"100%",...e},((a=(l=(o=i.selection)==null?void 0:o.node)==null?void 0:l.type)==null?void 0:a.name)===this.name?s.updateAttributes(this.name,e):s.insertContent({type:this.name,attrs:e})},setMermaidAlign:e=>({commands:i})=>i.updateAttributes(this.name,{align:e})}},addNodeView(){return N.ReactNodeViewRenderer(q)}});exports.DEFAULT_MERMAID_CODE=v;exports.EditMermaidBlock=L;exports.Mermaid=R;exports.RichTextMermaid=F;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { h as
|
|
1
|
+
import { h as U, N as V, k as F, m as P } from "./clsx-BUPZHhq3.js";
|
|
2
2
|
import { jsxs as f, jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { useState as s, useRef as E, useCallback as
|
|
4
|
-
import { D as k, m as H, A as R, n as O, o as $,
|
|
5
|
-
import { T as z } from "./textarea-DfVzbMr5.js";
|
|
3
|
+
import { useState as s, useRef as E, useCallback as S, useEffect as C } from "react";
|
|
4
|
+
import { D as k, m as H, A as R, n as O, o as $, U as j, t as _, B as z, h as q, u as W, d as G } from "./index-CnKgiZFQ.js";
|
|
6
5
|
const J = ({
|
|
7
6
|
editor: e,
|
|
8
7
|
node: a,
|
|
@@ -11,7 +10,7 @@ const J = ({
|
|
|
11
10
|
var i, n;
|
|
12
11
|
const l = ((i = a == null ? void 0 : a.attrs) == null ? void 0 : i.code) ?? b, h = ((n = a == null ? void 0 : a.attrs) == null ? void 0 : n.align) ?? "center", [r, y] = s(l), [v, x] = s(""), [M, m] = s(""), [u, g] = s(!1), [o, I] = s(null), [p, D] = s(!0), L = E(
|
|
13
12
|
`mermaid-edit-${Math.random().toString(36).slice(2, 9)}`
|
|
14
|
-
), N =
|
|
13
|
+
), N = S(
|
|
15
14
|
(c) => {
|
|
16
15
|
g(c), c && y(l);
|
|
17
16
|
},
|
|
@@ -36,14 +35,14 @@ const J = ({
|
|
|
36
35
|
return;
|
|
37
36
|
}
|
|
38
37
|
try {
|
|
39
|
-
const
|
|
38
|
+
const A = `${L.current}-${Date.now()}`, { svg: B } = await o.render(A, w);
|
|
40
39
|
x(B), m("");
|
|
41
|
-
} catch (
|
|
42
|
-
x(""), m((
|
|
40
|
+
} catch (A) {
|
|
41
|
+
x(""), m((A == null ? void 0 : A.message) ?? "Invalid Mermaid syntax");
|
|
43
42
|
}
|
|
44
43
|
})();
|
|
45
44
|
}, [r, o, u]);
|
|
46
|
-
const
|
|
45
|
+
const T = S(() => {
|
|
47
46
|
r.trim() && (d ? d({ code: r }) : e == null || e.chain().focus().setMermaid({ code: r, align: h }).run(), g(!1));
|
|
48
47
|
}, [e, r, h, d]);
|
|
49
48
|
return /* @__PURE__ */ f(k, { onOpenChange: N, open: u, children: [
|
|
@@ -59,7 +58,7 @@ const J = ({
|
|
|
59
58
|
/* @__PURE__ */ t($, { children: "Edit Mermaid Diagram" }),
|
|
60
59
|
/* @__PURE__ */ t("div", { style: { height: "100%", border: "1px solid hsl(var(--border))" }, children: p ? /* @__PURE__ */ t("div", { className: "richtext-flex richtext-items-center richtext-justify-center richtext-p-10 richtext-text-sm richtext-text-gray-400", children: "Loading Mermaid…" }) : /* @__PURE__ */ f("div", { className: "richtext-flex richtext-gap-[10px] richtext-rounded-[10px] richtext-p-[10px]", children: [
|
|
61
60
|
/* @__PURE__ */ t(
|
|
62
|
-
|
|
61
|
+
j,
|
|
63
62
|
{
|
|
64
63
|
autoFocus: !0,
|
|
65
64
|
className: "richtext-flex-1 richtext-font-mono richtext-text-sm",
|
|
@@ -90,11 +89,11 @@ const J = ({
|
|
|
90
89
|
}
|
|
91
90
|
)
|
|
92
91
|
] }) }),
|
|
93
|
-
/* @__PURE__ */ t(
|
|
94
|
-
|
|
92
|
+
/* @__PURE__ */ t(_, { children: /* @__PURE__ */ t(
|
|
93
|
+
z,
|
|
95
94
|
{
|
|
96
95
|
disabled: p || !o || !r.trim(),
|
|
97
|
-
onClick:
|
|
96
|
+
onClick: T,
|
|
98
97
|
type: "button",
|
|
99
98
|
children: "Save changes"
|
|
100
99
|
}
|
|
@@ -132,7 +131,7 @@ function K({
|
|
|
132
131
|
}), D(n);
|
|
133
132
|
});
|
|
134
133
|
}, []);
|
|
135
|
-
const N =
|
|
134
|
+
const N = S(
|
|
136
135
|
async (i) => {
|
|
137
136
|
if (!(!p || !(i != null && i.trim())))
|
|
138
137
|
try {
|
|
@@ -147,7 +146,7 @@ function K({
|
|
|
147
146
|
return C(() => {
|
|
148
147
|
N(v);
|
|
149
148
|
}, [v, N]), /* @__PURE__ */ t(
|
|
150
|
-
|
|
149
|
+
U,
|
|
151
150
|
{
|
|
152
151
|
className: "mermaid-node-view richtext-relative richtext-my-4",
|
|
153
152
|
style: {
|
|
@@ -191,7 +190,7 @@ function K({
|
|
|
191
190
|
}
|
|
192
191
|
);
|
|
193
192
|
}
|
|
194
|
-
function
|
|
193
|
+
function te() {
|
|
195
194
|
const e = q(), a = W(Q.name), { tooltipOptions: d = {}, isActive: l = void 0 } = (a == null ? void 0 : a.componentProps) ?? {}, { editorDisabled: h } = G(l), [r, y] = s(b), [v, x] = s(""), [M, m] = s(""), [u, g] = s(!1), [o, I] = s(null), [p, D] = s(!0), L = E(
|
|
196
195
|
`mermaid-toolbar-${Math.random().toString(36).slice(2, 9)}`
|
|
197
196
|
);
|
|
@@ -221,9 +220,9 @@ function re() {
|
|
|
221
220
|
}
|
|
222
221
|
})();
|
|
223
222
|
}, [r, o, u]);
|
|
224
|
-
const N =
|
|
223
|
+
const N = S((i) => {
|
|
225
224
|
g(i), i && (y(b), x(""), m(""));
|
|
226
|
-
}, []),
|
|
225
|
+
}, []), T = S(() => {
|
|
227
226
|
r.trim() && (e == null || e.chain().focus().setMermaid({ code: r, align: "center", width: "100%" }).run(), g(!1));
|
|
228
227
|
}, [e, r]);
|
|
229
228
|
return /* @__PURE__ */ f(k, { onOpenChange: N, open: u, children: [
|
|
@@ -243,7 +242,7 @@ function re() {
|
|
|
243
242
|
/* @__PURE__ */ t($, { children: "Insert Mermaid Diagram" }),
|
|
244
243
|
/* @__PURE__ */ t("div", { style: { height: "100%", border: "1px solid hsl(var(--border))" }, children: p ? /* @__PURE__ */ t("div", { className: "richtext-flex richtext-items-center richtext-justify-center richtext-p-10 richtext-text-sm richtext-text-gray-400", children: "Loading Mermaid…" }) : /* @__PURE__ */ f("div", { className: "richtext-flex richtext-gap-[10px] richtext-rounded-[10px] richtext-p-[10px]", children: [
|
|
245
244
|
/* @__PURE__ */ t(
|
|
246
|
-
|
|
245
|
+
j,
|
|
247
246
|
{
|
|
248
247
|
autoFocus: !0,
|
|
249
248
|
className: "richtext-flex-1 richtext-font-mono richtext-text-sm",
|
|
@@ -274,11 +273,11 @@ function re() {
|
|
|
274
273
|
}
|
|
275
274
|
)
|
|
276
275
|
] }) }),
|
|
277
|
-
/* @__PURE__ */ t(
|
|
278
|
-
|
|
276
|
+
/* @__PURE__ */ t(_, { children: /* @__PURE__ */ t(
|
|
277
|
+
z,
|
|
279
278
|
{
|
|
280
279
|
disabled: p || !o || !r.trim(),
|
|
281
|
-
onClick:
|
|
280
|
+
onClick: T,
|
|
282
281
|
type: "button",
|
|
283
282
|
children: "Insert diagram"
|
|
284
283
|
}
|
|
@@ -287,7 +286,7 @@ function re() {
|
|
|
287
286
|
] });
|
|
288
287
|
}
|
|
289
288
|
const b = `graph TB
|
|
290
|
-
A --> B`, Q = /* @__PURE__ */
|
|
289
|
+
A --> B`, Q = /* @__PURE__ */ V.create({
|
|
291
290
|
name: "mermaid",
|
|
292
291
|
group: "block",
|
|
293
292
|
selectable: !0,
|
|
@@ -377,5 +376,5 @@ export {
|
|
|
377
376
|
b as D,
|
|
378
377
|
J as E,
|
|
379
378
|
Q as M,
|
|
380
|
-
|
|
379
|
+
te as R
|
|
381
380
|
};
|
package/lib/Mermaid.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./clsx-CXbNJWDD.cjs");const e=require("./Mermaid-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./clsx-CXbNJWDD.cjs");const e=require("./Mermaid-B8lQSOGn.cjs");exports.DEFAULT_MERMAID_CODE=e.DEFAULT_MERMAID_CODE;exports.Mermaid=e.Mermaid;exports.RichTextMermaid=e.RichTextMermaid;
|
package/lib/Mermaid.js
CHANGED
package/lib/MoreMark.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./clsx-CXbNJWDD.cjs"),e=require("react/jsx-runtime"),M=require("react"),c=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./clsx-CXbNJWDD.cjs"),e=require("react/jsx-runtime"),M=require("react"),c=require("./index-BynXHtjJ.cjs");require("./theme.cjs");const l=require("./dropdown-menu-DirUyRAI.cjs");var x=u.Mark.create({name:"subscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sub"},{style:"vertical-align",getAttrs(t){return t!=="sub"?!1:null}}]},renderHTML({HTMLAttributes:t}){return["sub",u.mergeAttributes(this.options.HTMLAttributes,t),0]},addCommands(){return{setSubscript:()=>({commands:t})=>t.setMark(this.name),toggleSubscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSubscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}}),f=u.Mark.create({name:"superscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sup"},{style:"vertical-align",getAttrs(t){return t!=="super"?!1:null}}]},renderHTML({HTMLAttributes:t}){return["sup",u.mergeAttributes(this.options.HTMLAttributes,t),0]},addCommands(){return{setSuperscript:()=>({commands:t})=>t.setMark(this.name),toggleSuperscript:()=>({commands:t})=>t.toggleMark(this.name),unsetSuperscript:()=>({commands:t})=>t.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}});function S(){const t=c.useButtonProps(m.name),{icon:s=void 0,tooltip:n=void 0,items:i=[],isActive:d=void 0}=(t==null?void 0:t.componentProps)??{},{disabled:a,dataState:o}=c.useActive(d),h=M.useMemo(()=>(o==null?void 0:o.title)||"",[o]);return t?e.jsxs(l.DropdownMenu,{children:[e.jsx(l.DropdownMenuTrigger,{asChild:!0,disabled:a,children:e.jsx(c.ActionButton,{customClass:"!richtext-w-12 richtext-h-12",disabled:a,icon:s,tooltip:n,children:e.jsx(c.MenuDown,{className:"richtext-size-3 richtext-text-gray-500"})})}),e.jsx(l.DropdownMenuContent,{className:"w-full",children:i==null?void 0:i.map((r,p)=>e.jsxs(l.DropdownMenuCheckboxItem,{checked:h===r.title,className:"richtext-flex richtext-items-center richtext-gap-3",onClick:r.action,children:[e.jsx(c.IconComponent,{name:r==null?void 0:r.icon}),e.jsx("span",{className:"richtext-ml-1",children:r.title}),!!(r!=null&&r.shortcutKeys)&&e.jsx("span",{className:"richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60",children:c.getShortcutKeys(r.shortcutKeys)})]},`more-mark-${p}`))})]}):e.jsx(e.Fragment,{})}const m=u.Extension.create({name:"moreMark",addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button({editor:s,extension:n,t:i}){var p,g;const d=n.options.subscript,a=n.options.superscript,o={action:()=>s.commands.toggleSubscript(),isActive:()=>s.isActive("subscript")||!1,disabled:!s.can().toggleSubscript(),icon:"Subscript",title:i("editor.subscript.tooltip"),shortcutKeys:((p=n.options.shortcutKeys)==null?void 0:p[0])??["mod","."]},h={action:()=>s.commands.toggleSuperscript(),isActive:()=>s.isActive("superscript")||!1,disabled:!s.can().toggleSuperscript(),icon:"Superscript",title:i("editor.superscript.tooltip"),shortcutKeys:((g=n.options.shortcutKeys)==null?void 0:g[1])??["mod",","]},r=[];return d!==!1&&r.push(o),a!==!1&&r.push(h),{componentProps:{icon:"Type",tooltip:i("editor.moremark"),disabled:!s.isEditable,items:r,isActive:()=>r==null?void 0:r.find(b=>b.isActive())}}}}},addExtensions(){const t=[];return this.options.subscript!==!1&&t.push(x.configure(this.options.subscript)),this.options.superscript!==!1&&t.push(f.configure(this.options.superscript)),t}});exports.MoreMark=m;exports.RichTextMoreMark=S;
|
package/lib/MoreMark.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { M as h, m, E as b } from "./clsx-BUPZHhq3.js";
|
|
2
2
|
import { jsx as e, Fragment as M, jsxs as d } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo as f } from "react";
|
|
4
|
-
import { u as x, e as A, A as S,
|
|
4
|
+
import { u as x, e as A, A as S, V as k, I as v, g as y } from "./index-CnKgiZFQ.js";
|
|
5
5
|
import "./theme.js";
|
|
6
|
-
import { D as T, a as K, b as w, c as C } from "./dropdown-menu-
|
|
6
|
+
import { D as T, a as K, b as w, c as C } from "./dropdown-menu-Ce2TorkG.js";
|
|
7
7
|
var H = h.create({
|
|
8
8
|
name: "subscript",
|
|
9
9
|
addOptions() {
|
package/lib/OrderedList.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index-BCzvbrf5.cjs"),r=require("react/jsx-runtime"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index-BCzvbrf5.cjs"),r=require("react/jsx-runtime"),s=require("./index-BynXHtjJ.cjs");require("react");require("./theme.cjs");function O(){const t=s.useButtonProps(c.name),{icon:e=void 0,tooltip:i=void 0,shortcutKeys:o=void 0,tooltipOptions:u={},action:n=void 0,isActive:a=void 0}=(t==null?void 0:t.componentProps)??{},{dataState:p,disabled:d,update:l}=s.useToggleActive(a),m=()=>{d||n&&(n(),l())};return t?r.jsx(s.ActionButton,{action:m,dataState:p,disabled:d,icon:e,shortcutKeys:o,tooltip:i,tooltipOptions:u}):r.jsx(r.Fragment,{})}const c=v.OrderedList.extend({addOptions(){var t;return{...(t=this.parent)==null?void 0:t.call(this),button:({editor:e,t:i,extension:o})=>({componentProps:{action:()=>e.commands.toggleOrderedList(),isActive:()=>e.isActive("orderedList"),disabled:!1,icon:"ListOrdered",shortcutKeys:o.options.shortcutKeys??["mod","shift","7"],tooltip:i("editor.orderedlist.tooltip")}})}}});exports.OrderedList=c;exports.RichTextOrderedList=O;
|