rme 0.0.2
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/.gitattributes +3 -0
- package/.prettierrc.json +10 -0
- package/.stylelintrc.json +19 -0
- package/CODE_OF_CONDUCT.md +53 -0
- package/LICENSE +21 -0
- package/README.md +0 -0
- package/dist/index.cjs +22902 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +87 -0
- package/dist/index.d.ts +234 -0
- package/dist/index.min.cjs +180 -0
- package/dist/index.min.cjs.map +1 -0
- package/dist/index.min.css +1 -0
- package/dist/index.min.mjs +180 -0
- package/dist/index.min.mjs.map +1 -0
- package/dist/index.mjs +22854 -0
- package/dist/index.mjs.map +1 -0
- package/dist/index.umd.js +22862 -0
- package/dist/index.umd.js.map +1 -0
- package/dist/index.umd.min.js +180 -0
- package/dist/index.umd.min.js.map +1 -0
- package/package.json +218 -0
- package/tsconfig.json +111 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import e,{useState as t,memo as r,useRef as n,useCallback as o,useEffect as i,useContext as a,forwardRef as s,useImperativeHandle as l,useMemo as c,createContext as O}from"react";import{useRemirrorContext as p,createReactManager as u,useCommands as d,PositionerPortal as f,useMultiPositioner as h,Remirror as m,ReactComponentExtension as g}from"@remirror/react";export{useCommands,useHelpers,useKeymap,useRemirrorContext}from"@remirror/react";import{createContextState as y}from"create-context-state";import S,{css as b,ThemeProvider as Q}from"styled-components";import{ProsemirrorDevTools as w}from"@remirror/dev";import $ from"markdown-it";import P from"html-parse-stringify";import{TableExtension as v,TableRowExtension as x,TableHeaderCellExtension as k,TableCellExtension as Z}from"@remirror/extension-tables";import{NodeExtension as T,ExtensionTag as R,toggleWrap as X,command as E,keyBinding as C,object as j,isPlainObject as Y,entries as _,isDefaultDocNode as A,helper as W,extension as V,ExtensionPriority as q,PlainExtension as I,isEmptyBlockNode as z,nodeInputRule as N,isNodeSelection as M,invariant as U,ErrorConstant as G,NamedShortcut as D,convertCommand as B,isTextSelection as L,MarkExtension as F,findParentNodeOfType as J,isString as K,chainCommands as H,isPromise as ee,assertGet as te,replaceNodeAtPosition as re,isElementDomNode as ne,omitExtraAttributes as oe,getTextSelection as ie,isNumber as ae,cx as se,findSelectedNodeOfType as le,ManagerPhase as ce,isExtension as Oe,setBlockType as pe,isEqual as ue}from"@remirror/core";import{fromMarkdown as de}from"mdast-util-from-markdown";import{gfmAutolinkLiteralFromMarkdown as fe}from"mdast-util-gfm-autolink-literal";import{gfmStrikethroughFromMarkdown as he}from"mdast-util-gfm-strikethrough";import{gfmAutolinkLiteral as me}from"micromark-extension-gfm-autolink-literal";import{gfmStrikethrough as ge}from"micromark-extension-gfm-strikethrough";import{nanoid as ye}from"nanoid";import Se from"void-elements";import{cloneDeep as be}from"lodash";import{extension as Qe,MarkExtension as we,PlainExtension as $e,isElementDomNode as Pe,findParentNodeOfType as ve}from"remirror";import{ListExtension as xe}from"remirror-extension-flat-list";import{corePreset as ke}from"@remirror/preset-core";import{CountExtension as Ze}from"@remirror/extension-count";import{Compartment as Te,EditorState as Re,EditorSelection as Xe}from"@codemirror/state";import{keymap as Ee,EditorView as Ce,lineNumbers as je,highlightActiveLineGutter as Ye,highlightSpecialChars as _e,dropCursor as Ae,crosshairCursor as We,highlightActiveLine as Ve,drawSelection as qe,rectangularSelection as Ie}from"@codemirror/view";import{lightTheme as ze,darken as Ne}from"@markflowy/theme";import{languages as Me}from"@codemirror/language-data";import{createTheme as Ue}from"@uiw/codemirror-themes";export{createTheme}from"@uiw/codemirror-themes";import{foldGutter as Ge,indentOnInput as De,syntaxHighlighting as Be,defaultHighlightStyle as Le,bracketMatching as Fe,foldKeymap as Je,LRLanguage as Ke,indentNodeProp as He,continuedIndent as et,foldNodeProp as tt,foldInside as rt,LanguageSupport as nt,syntaxTree as ot,flatIndent as it,delimitedIndent as at,sublanguageProp as st,defineLanguageFacet as lt,bracketMatchingHandle as ct}from"@codemirror/language";import{history as Ot,defaultKeymap as pt,historyKeymap as ut}from"@codemirror/commands";import{highlightSelectionMatches as dt,searchKeymap as ft}from"@codemirror/search";import{closeBrackets as ht,autocompletion as mt,closeBracketsKeymap as gt,completionKeymap as yt,ifNotIn as St,completeFromList as bt,snippetCompletion as Qt}from"@codemirror/autocomplete";import{lintKeymap as wt}from"@codemirror/lint";import{ExtensionImageTheme as $t,ExtensionPlaceholderTheme as Pt}from"@remirror/theme";import{Space as vt,Tooltip as xt,Input as kt,Popover as Zt,Image as Tt}from"@markflowy/components";import{HeadingExtension as Rt,HardBreakExtension as Xt}from"@remirror/extension-hard-break";import Et from"util";import{ContextTracker as Ct,ExternalTokenizer as jt,LRParser as Yt,LocalTokenGroup as _t}from"@lezer/lr";import{styleTags as At,tags as Wt}from"@lezer/highlight";import{parseMixed as Vt,IterMode as qt,NodeWeakMap as It}from"@lezer/common";import{Popper as zt,Grow as Nt,Paper as Mt,ClickAwayListener as Ut,MenuList as Gt,MenuItem as Dt,ListItemText as Bt}from"@mui/material";import{Positioner as Lt,hasStateChanged as Ft,isPositionVisible as Jt}from"@remirror/extension-positioner";import{useRemirrorContext as Kt,useExtension as Ht}from"@remirror/react-core";import{usePopper as er}from"react-popper";import tr from"tether-drop";import rr from"fuse.js";import{markdown as nr}from"@codemirror/lang-markdown";var or={exports:{}},ir={};!function(){var t=e,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),h=Symbol.iterator,m="@@iterator";var g=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];!function(e,t,r){var n=g.ReactDebugCurrentFrame,o=n.getStackAddendum();""!==o&&(t+="%s",r=r.concat([o]));var i=r.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,r)}var S,b=!1,Q=!1,w=!1,$=!1,P=!1;function v(e){return e.displayName||"Context"}function x(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case o:return"Fragment";case n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case O:return"Suspense";case p:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return v(e)+".Consumer";case s:return v(e._context)+".Provider";case c:return function(e,t,r){var n=e.displayName;if(n)return n;var o=t.displayName||t.name||"";return""!==o?r+"("+o+")":r}(e,e.render,"ForwardRef");case u:var t=e.displayName||null;return null!==t?t:x(e.type)||"Memo";case d:var r=e,f=r._payload,h=r._init;try{return x(h(f))}catch(e){return null}}return null}S=Symbol.for("react.module.reference");var k,Z,T,R,X,E,C,j=Object.assign,Y=0;function _(){}_.__reactDisabledLog=!0;var A,W=g.ReactCurrentDispatcher;function V(e,t,r){if(void 0===A)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);A=n&&n[1]||""}return"\n"+A+e}var q,I=!1,z="function"==typeof WeakMap?WeakMap:Map;function N(e,t){if(!e||I)return"";var r,n=q.get(e);if(void 0!==n)return n;I=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=W.current,W.current=null,function(){if(0===Y){k=console.log,Z=console.info,T=console.warn,R=console.error,X=console.group,E=console.groupCollapsed,C=console.groupEnd;var e={configurable:!0,enumerable:!0,value:_,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){r=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){r=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=r.stack.split("\n"),c=s.length-1,O=l.length-1;c>=1&&O>=0&&s[c]!==l[O];)O--;for(;c>=1&&O>=0;c--,O--)if(s[c]!==l[O]){if(1!==c||1!==O)do{if(c--,--O<0||s[c]!==l[O]){var p="\n"+s[c].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),"function"==typeof e&&q.set(e,p),p}}while(c>=1&&O>=0);break}}}finally{I=!1,W.current=o,function(){if(0==--Y){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:k}),info:j({},e,{value:Z}),warn:j({},e,{value:T}),error:j({},e,{value:R}),group:j({},e,{value:X}),groupCollapsed:j({},e,{value:E}),groupEnd:j({},e,{value:C})})}Y<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var u=e?e.displayName||e.name:"",d=u?V(u):"";return"function"==typeof e&&q.set(e,d),d}function M(e,t,r){if(null==e)return"";if("function"==typeof e)return N(e,!(!(n=e.prototype)||!n.isReactComponent));var n;if("string"==typeof e)return V(e);switch(e){case O:return V("Suspense");case p:return V("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return N(e.render,!1);case u:return M(e.type,t,r);case d:var o=e,i=o._payload,a=o._init;try{return M(a(i),t,r)}catch(e){}}return""}q=new z;var U=Object.prototype.hasOwnProperty,G={},D=g.ReactDebugCurrentFrame;function B(e){if(e){var t=e._owner,r=M(e.type,e._source,t?t.type:null);D.setExtraStackFrame(r)}else D.setExtraStackFrame(null)}var L=Array.isArray;function F(e){return L(e)}function J(e){return""+e}function K(e){if(function(e){try{return J(e),!1}catch(e){return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),J(e)}var H,ee,te,re=g.ReactCurrentOwner,ne={key:!0,ref:!0,__self:!0,__source:!0};te={};var oe=function(e,t,n,o,i,a,s){var l={$$typeof:r,type:e,key:t,ref:n,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ie(e,t,r,n,o){var i,a={},s=null,l=null;for(i in void 0!==r&&(K(r),s=""+r),function(e){if(U.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(K(t.key),s=""+t.key),function(e){if(U.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(l=t.ref,function(e,t){if("string"==typeof e.ref&&re.current&&t&&re.current.stateNode!==t){var r=x(re.current.type);te[r]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',x(re.current.type),e.ref),te[r]=!0)}}(t,o)),t)U.call(t,i)&&!ne.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var c=e.defaultProps;for(i in c)void 0===a[i]&&(a[i]=c[i])}if(s||l){var O="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var r=function(){H||(H=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(a,O),l&&function(e,t){var r=function(){ee||(ee=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}(a,O)}return oe(e,s,l,o,n,re.current,a)}var ae,se=g.ReactCurrentOwner,le=g.ReactDebugCurrentFrame;function ce(e){if(e){var t=e._owner,r=M(e.type,e._source,t?t.type:null);le.setExtraStackFrame(r)}else le.setExtraStackFrame(null)}function Oe(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}function pe(){if(se.current){var e=x(se.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}ae=!1;var ue={};function de(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=pe();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!ue[r]){ue[r]=!0;var n="";e&&e._owner&&e._owner!==se.current&&(n=" It was passed a child from "+x(e._owner.type)+"."),ce(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),ce(null)}}}function fe(e,t){if("object"==typeof e)if(F(e))for(var r=0;r<e.length;r++){var n=e[r];Oe(n)&&de(n,t)}else if(Oe(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=h&&e[h]||e[m];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)Oe(i.value)&&de(i.value,t)}}function he(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==c&&r.$$typeof!==u)return;t=r.propTypes}if(t){var n=x(r);!function(e,t,r,n,o){var i=Function.call.bind(U);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(B(o),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,a,typeof s),B(null)),s instanceof Error&&!(s.message in G)&&(G[s.message]=!0,B(o),y("Failed %s type: %s",r,s.message),B(null))}}(t,e.props,"prop",n,e)}else if(void 0!==r.PropTypes&&!ae){ae=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x(r)||"Unknown")}"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function me(e,t,n,h,m,g){var v=function(e){return"string"==typeof e||"function"==typeof e||!!(e===o||e===a||P||e===i||e===O||e===p||$||e===f||b||Q||w)||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===S||void 0!==e.getModuleId)}(e);if(!v){var k="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(k+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Z,T=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(m);k+=T||pe(),null===e?Z="null":F(e)?Z="array":void 0!==e&&e.$$typeof===r?(Z="<"+(x(e.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):Z=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Z,k)}var R=ie(e,t,n,m,g);if(null==R)return R;if(v){var X=t.children;if(void 0!==X)if(h)if(F(X)){for(var E=0;E<X.length;E++)fe(X[E],e);Object.freeze&&Object.freeze(X)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else fe(X,e)}return e===o?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){ce(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),ce(null);break}}null!==e.ref&&(ce(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ce(null))}(R):he(R),R}var ge=function(e,t,r){return me(e,t,r,!1)},ye=function(e,t,r){return me(e,t,r,!0)};ir.Fragment=o,ir.jsx=ge,ir.jsxs=ye}(),or.exports=ir;const ar=S.div`
|
|
2
|
+
position: relative;
|
|
3
|
+
padding: 0.5em 1em 1em;
|
|
4
|
+
white-space: pre-wrap;
|
|
5
|
+
min-height: 100px;
|
|
6
|
+
flex: 1;
|
|
7
|
+
|
|
8
|
+
.remirror-is-empty::before {
|
|
9
|
+
position: absolute;
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
height: 0;
|
|
12
|
+
font-style: italic;
|
|
13
|
+
content: attr(data-placeholder);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.remirror-editor {
|
|
17
|
+
/* height: 100%; */
|
|
18
|
+
outline: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.cm-editor {
|
|
22
|
+
height: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.remirror-floating-popover {
|
|
26
|
+
/* padding: var(--rmr-space-2); */
|
|
27
|
+
padding: 0;
|
|
28
|
+
border: none;
|
|
29
|
+
max-height: calc(100vh - 56px);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.remirror-positioner {
|
|
33
|
+
position: absolute;
|
|
34
|
+
min-width: 1px;
|
|
35
|
+
min-height: 1px;
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
-webkit-user-select: none;
|
|
38
|
+
-moz-user-select: none;
|
|
39
|
+
-ms-user-select: none;
|
|
40
|
+
user-select: none;
|
|
41
|
+
cursor: none;
|
|
42
|
+
z-index: -1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.remirror-positioner-widget {
|
|
46
|
+
width: 0;
|
|
47
|
+
height: 0;
|
|
48
|
+
position: absolute;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.remirror-emoji-wrapper img {
|
|
52
|
+
width: 1em;
|
|
53
|
+
vertical-align: middle;
|
|
54
|
+
background-color: transparent;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
${e=>e.codeEditor&&b`
|
|
58
|
+
padding: 0;
|
|
59
|
+
min-height: unset;
|
|
60
|
+
`}
|
|
61
|
+
`,sr=({children:e,...t})=>{const{getRootProps:r}=p();return or.exports.jsx(ar,{...t,...r(),children:e})};function lr(e,t,r){for(let n=0;;n++){if(n==e.childCount||n==t.childCount)return e.childCount==t.childCount?null:r;let o=e.child(n),i=t.child(n);if(o!=i){if(!o.sameMarkup(i))return r;if(o.isText&&o.text!=i.text){for(let e=0;o.text[e]==i.text[e];e++)r++;return r}if(o.content.size||i.content.size){let e=lr(o.content,i.content,r+1);if(null!=e)return e}r+=o.nodeSize}else r+=o.nodeSize}}function cr(e,t,r,n){for(let o=e.childCount,i=t.childCount;;){if(0==o||0==i)return o==i?null:{a:r,b:n};let a=e.child(--o),s=t.child(--i),l=a.nodeSize;if(a!=s){if(!a.sameMarkup(s))return{a:r,b:n};if(a.isText&&a.text!=s.text){let e=0,t=Math.min(a.text.length,s.text.length);for(;e<t&&a.text[a.text.length-e-1]==s.text[s.text.length-e-1];)e++,r--,n--;return{a:r,b:n}}if(a.content.size||s.content.size){let e=cr(a.content,s.content,r-1,n-1);if(e)return e}r-=l,n-=l}else r-=l,n-=l}}class Or{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,r,n=0,o){for(let i=0,a=0;a<t;i++){let s=this.content[i],l=a+s.nodeSize;if(l>e&&!1!==r(s,n+a,o||null,i)&&s.content.size){let o=a+1;s.nodesBetween(Math.max(0,e-o),Math.min(s.content.size,t-o),r,n+o)}a=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,n){let o="",i=!0;return this.nodesBetween(e,t,((a,s)=>{let l=a.isText?a.text.slice(Math.max(e,s)-s,t-s):a.isLeaf?n?"function"==typeof n?n(a):n:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&l||a.isTextblock)&&r&&(i?i=!1:o+=r),o+=l}),0),o}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,n=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(r)&&(n[n.length-1]=t.withText(t.text+r.text),o=1);o<e.content.length;o++)n.push(e.content[o]);return new Or(n,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let r=[],n=0;if(t>e)for(let o=0,i=0;i<t;o++){let a=this.content[o],s=i+a.nodeSize;s>e&&((i<e||s>t)&&(a=a.isText?a.cut(Math.max(0,e-i),Math.min(a.text.length,t-i)):a.cut(Math.max(0,e-i-1),Math.min(a.content.size,t-i-1))),r.push(a),n+=a.nodeSize),i=s}return new Or(r,n)}cutByIndex(e,t){return e==t?Or.empty:0==e&&t==this.content.length?this:new Or(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let n=this.content.slice(),o=this.size+t.nodeSize-r.nodeSize;return n[e]=t,new Or(n,o)}addToStart(e){return new Or([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Or(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let n=this.content[t];e(n,r,t),r+=n.nodeSize}}findDiffStart(e,t=0){return lr(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return cr(this,e,t,r)}findIndex(e,t=-1){if(0==e)return ur(0,e);if(e==this.size)return ur(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,n=0;;r++){let o=n+this.child(r).nodeSize;if(o>=e)return o==e||t>0?ur(r+1,o):ur(r,n);n=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map((e=>e.toJSON())):null}static fromJSON(e,t){if(!t)return Or.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new Or(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Or.empty;let t,r=0;for(let n=0;n<e.length;n++){let o=e[n];r+=o.nodeSize,n&&o.isText&&e[n-1].sameMarkup(o)?(t||(t=e.slice(0,n)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new Or(t||e,r)}static from(e){if(!e)return Or.empty;if(e instanceof Or)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Or([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Or.empty=new Or([],0);const pr={index:0,offset:0};function ur(e,t){return pr.index=e,pr.offset=t,pr}function dr(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;let r=Array.isArray(e);if(Array.isArray(t)!=r)return!1;if(r){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!dr(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!dr(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}class fr{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let n=0;n<e.length;n++){let o=e[n];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,n));else{if(o.type.excludes(this.type))return e;!r&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,n)),t.push(this),r=!0),t&&t.push(o)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&dr(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);return r.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return fr.none;if(e instanceof fr)return[e];let t=e.slice();return t.sort(((e,t)=>e.type.rank-t.type.rank)),t}}fr.none=[];class hr extends Error{}class mr{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=yr(this.content,e+this.openStart,t);return r&&new mr(r,this.openStart,this.openEnd)}removeBetween(e,t){return new mr(gr(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return mr.empty;let r=t.openStart||0,n=t.openEnd||0;if("number"!=typeof r||"number"!=typeof n)throw new RangeError("Invalid input for Slice.fromJSON");return new mr(Or.fromJSON(e,t.content),r,n)}static maxOpen(e,t=!0){let r=0,n=0;for(let n=e.firstChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.firstChild)r++;for(let r=e.lastChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.lastChild)n++;return new mr(e,r,n)}}function gr(e,t,r){let{index:n,offset:o}=e.findIndex(t),i=e.maybeChild(n),{index:a,offset:s}=e.findIndex(r);if(o==t||i.isText){if(s!=r&&!e.child(a).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(r))}if(n!=a)throw new RangeError("Removing non-flat range");return e.replaceChild(n,i.copy(gr(i.content,t-o-1,r-o-1)))}function yr(e,t,r,n){let{index:o,offset:i}=e.findIndex(t),a=e.maybeChild(o);if(i==t||a.isText)return n&&!n.canReplace(o,o,r)?null:e.cut(0,t).append(r).append(e.cut(t));let s=yr(a.content,t-i-1,r);return s&&e.replaceChild(o,a.copy(s))}mr.empty=new mr(Or.empty,0,0);class Sr{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}class br{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class Qr{constructor(e,t,r,n){this.name=e,this.rank=t,this.schema=r,this.spec=n,this.attrs=function(e){let t=Object.create(null);if(e)for(let r in e)t[r]=new br(e[r]);return t}(n.attrs),this.excluded=null;let o=function(e){let t=Object.create(null);for(let r in e){let n=e[r];if(!n.hasDefault)return null;t[r]=n.default}return t}(this.attrs);this.instance=o?new fr(this,o):null}create(e=null){return!e&&this.instance?this.instance:new fr(this,function(e,t){let r=Object.create(null);for(let n in e){let o=t&&t[n];if(void 0===o){let t=e[n];if(!t.hasDefault)throw new RangeError("No value supplied for attribute "+n);o=t.default}r[n]=o}return r}(this.attrs,e))}static compile(e,t){let r=Object.create(null),n=0;return e.forEach(((e,o)=>r[e]=new Qr(e,n++,t,o))),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}}class wr{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((e=>{e.tag?this.tags.push(e):e.style&&this.styles.push(e)})),this.normalizeLists=!this.tags.some((t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let r=e.nodes[t.node];return r.contentMatch.matchType(r)}))}parse(e,t={}){let r=new Zr(this,t,!1);return r.addAll(e,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new Zr(this,t,!0);return r.addAll(e,t.from,t.to),mr.maxOpen(r.finish())}matchTag(e,t,r){for(let n=r?this.tags.indexOf(r)+1:0;n<this.tags.length;n++){let r=this.tags[n];if(Tr(e,r.tag)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||t.matchesContext(r.context))){if(r.getAttrs){let t=r.getAttrs(e);if(!1===t)continue;r.attrs=t||void 0}return r}}}matchStyle(e,t,r,n){for(let o=n?this.styles.indexOf(n)+1:0;o<this.styles.length;o++){let n=this.styles[o],i=n.style;if(!(0!=i.indexOf(e)||n.context&&!r.matchesContext(n.context)||i.length>e.length&&(61!=i.charCodeAt(e.length)||i.slice(e.length+1)!=t))){if(n.getAttrs){let e=n.getAttrs(t);if(!1===e)continue;n.attrs=e||void 0}return n}}}static schemaRules(e){let t=[];function r(e){let r=null==e.priority?50:e.priority,n=0;for(;n<t.length;n++){let e=t[n];if((null==e.priority?50:e.priority)<r)break}t.splice(n,0,e)}for(let t in e.marks){let n=e.marks[t].spec.parseDOM;n&&n.forEach((e=>{r(e=Rr(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)}))}for(let t in e.nodes){let n=e.nodes[t].spec.parseDOM;n&&n.forEach((e=>{r(e=Rr(e)),e.node||e.ignore||e.mark||(e.node=t)}))}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new wr(e,wr.schemaRules(e)))}}const $r={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Pr={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},vr={ol:!0,ul:!0};function xr(e,t,r){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&r}class kr{constructor(e,t,r,n,o,i,a){this.type=e,this.attrs=t,this.marks=r,this.pendingMarks=n,this.solid=o,this.options=a,this.content=[],this.activeMarks=fr.none,this.stashMarks=[],this.match=i||(4&a?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(Or.from(e));if(!t){let t,r=this.type.contentMatch;return(t=r.findWrapping(e.type))?(this.match=r,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let r=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=r.withText(r.text.slice(0,r.text.length-e[0].length))}}let t=Or.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(Or.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,r=this.pendingMarks;t<r.length;t++){let n=r[t];(this.type?this.type.allowsMarkType(n.type):Xr(n.type,e))&&!n.isInSet(this.activeMarks)&&(this.activeMarks=n.addToSet(this.activeMarks),this.pendingMarks=n.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!$r.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Zr{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0;let n,o=t.topNode,i=xr(null,t.preserveWhitespace,0)|(r?4:0);n=o?new kr(o.type,o.attrs,fr.none,fr.none,!0,t.topMatch||o.type.contentMatch,i):new kr(r?null:e.schema.topNodeType,null,fr.none,fr.none,!0,null,i),this.nodes=[n],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){3==e.nodeType?this.addTextNode(e):1==e.nodeType&&this.addElement(e)}withStyleRules(e,t){let r=e.getAttribute("style");if(!r)return t();let n=this.readStyles(function(e){let t,r=/\s*([\w-]+)\s*:\s*([^;]+)/g,n=[];for(;t=r.exec(e);)n.push(t[1],t[2].trim());return n}(r));if(!n)return;let[o,i]=n,a=this.top;for(let e=0;e<i.length;e++)this.removePendingMark(i[e],a);for(let e=0;e<o.length;e++)this.addPendingMark(o[e]);t();for(let e=0;e<o.length;e++)this.removePendingMark(o[e],a);for(let e=0;e<i.length;e++)this.addPendingMark(i[e])}addTextNode(e){let t=e.nodeValue,r=this.top;if(2&r.options||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(1&r.options)t=2&r.options?t.replace(/\r\n?/g,"\n"):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){let n=r.content[r.content.length-1],o=e.previousSibling;(!n||o&&"BR"==o.nodeName||n.isText&&/[ \t\r\n\u000c]$/.test(n.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,t){let r,n=e.nodeName.toLowerCase();vr.hasOwnProperty(n)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,r=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&vr.hasOwnProperty(e)&&r?(r.appendChild(t),t=r):"li"==e?r=t:e&&(r=null)}}(e);let o=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(r=this.parser.matchTag(e,this,t));if(o?o.ignore:Pr.hasOwnProperty(n))this.findInside(e),this.ignoreFallback(e);else if(!o||o.skip||o.closeParent){o&&o.closeParent?this.open=Math.max(0,this.open-1):o&&o.skip.nodeType&&(e=o.skip);let t,r=this.top,i=this.needsBlock;if($r.hasOwnProperty(n))r.content.length&&r.content[0].isInline&&this.open&&(this.open--,r=this.top),t=!0,r.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);o&&o.skip?this.addAll(e):this.withStyleRules(e,(()=>this.addAll(e))),t&&this.sync(r),this.needsBlock=i}else this.withStyleRules(e,(()=>{this.addElementByRule(e,o,!1===o.consuming?r:void 0)}))}leafFallback(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))}ignoreFallback(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=fr.none,r=fr.none;for(let n=0;n<e.length;n+=2)for(let o;;){let i=this.parser.matchStyle(e[n],e[n+1],this,o);if(!i)break;if(i.ignore)return null;if(i.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach((e=>{i.clearMark(e)&&(r=e.addToSet(r))})):t=this.parser.schema.marks[i.mark].create(i.attrs).addToSet(t),!1!==i.consuming)break;o=i}return[t,r]}addElementByRule(e,t,r){let n,o,i;if(t.node)o=this.parser.schema.nodes[t.node],o.isLeaf?this.insertNode(o.create(t.attrs))||this.leafFallback(e):n=this.enter(o,t.attrs||null,t.preserveWhitespace);else{i=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(i)}let a=this.top;if(o&&o.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((e=>this.insertNode(e)));else{let r=e;"string"==typeof t.contentElement?r=e.querySelector(t.contentElement):"function"==typeof t.contentElement?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r)}n&&this.sync(a)&&this.open--,i&&this.removePendingMark(i,a)}addAll(e,t,r){let n=t||0;for(let o=t?e.childNodes[t]:e.firstChild,i=null==r?null:e.childNodes[r];o!=i;o=o.nextSibling,++n)this.findAtPoint(e,n),this.addDOM(o);this.findAtPoint(e,n)}findPlace(e){let t,r;for(let n=this.open;n>=0;n--){let o=this.nodes[n],i=o.findWrapping(e);if(i&&(!t||t.length>i.length)&&(t=i,r=o,!i.length))break;if(o.solid)break}if(!t)return!1;this.sync(r);for(let e=0;e<t.length;e++)this.enterInner(t[e],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&this.enterInner(e)}if(this.findPlace(e)){this.closeExtra();let t=this.top;t.applyPending(e.type),t.match&&(t.match=t.match.matchType(e.type));let r=t.activeMarks;for(let n=0;n<e.marks.length;n++)t.type&&!t.type.allowsMarkType(e.marks[n].type)||(r=e.marks[n].addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,r){let n=this.findPlace(e.create(t));return n&&this.enterInner(e,t,!0,r),n}enterInner(e,t=null,r=!1,n){this.closeExtra();let o=this.top;o.applyPending(e),o.match=o.match&&o.match.matchType(e);let i=xr(e,n,o.options);4&o.options&&0==o.content.length&&(i|=4),this.nodes.push(new kr(e,t,o.activeMarks,o.pendingMarks,r,null,i)),this.open++}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let t=r.length-1;t>=0;t--)e+=r[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let n=0;n<this.find.length;n++)if(null==this.find[n].pos&&1==e.nodeType&&e.contains(this.find[n].node)){t.compareDocumentPosition(this.find[n].node)&(r?2:4)&&(this.find[n].pos=this.currentPos)}}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,n=!(this.isOpen||r&&r.parent.type!=this.nodes[0].type),o=-(r?r.depth+1:0)+(n?0:1),i=(e,a)=>{for(;e>=0;e--){let s=t[e];if(""==s){if(e==t.length-1||0==e)continue;for(;a>=o;a--)if(i(e-1,a))return!0;return!1}{let e=a>0||0==a&&n?this.nodes[a].type:r&&a>=o?r.node(a-o).type:null;if(!e||e.name!=s&&-1==e.groups.indexOf(s))return!1;a--}}return!0};return i(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}addPendingMark(e){let t=function(e,t){for(let r=0;r<t.length;r++)if(e.eq(t[r]))return t[r]}(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let r=this.open;r>=0;r--){let n=this.nodes[r];if(n.pendingMarks.lastIndexOf(e)>-1)n.pendingMarks=e.removeFromSet(n.pendingMarks);else{n.activeMarks=e.removeFromSet(n.activeMarks);let t=n.popFromStashMark(e);t&&n.type&&n.type.allowsMarkType(t.type)&&(n.activeMarks=t.addToSet(n.activeMarks))}if(n==t)break}}}function Tr(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Rr(e){let t={};for(let r in e)t[r]=e[r];return t}function Xr(e,t){let r=t.schema.nodes;for(let n in r){let o=r[n];if(!o.allowsMarkType(e))continue;let i=[],a=e=>{i.push(e);for(let r=0;r<e.edgeCount;r++){let{type:n,next:o}=e.edge(r);if(n==t)return!0;if(i.indexOf(o)<0&&a(o))return!0}};if(a(o.contentMatch))return!0}}class Er{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=jr(t).createDocumentFragment());let n=r,o=[];return e.forEach((e=>{if(o.length||e.marks.length){let r=0,i=0;for(;r<o.length&&i<e.marks.length;){let t=e.marks[i];if(this.marks[t.type.name]){if(!t.eq(o[r][0])||!1===t.type.spec.spanning)break;r++,i++}else i++}for(;r<o.length;)n=o.pop()[1];for(;i<e.marks.length;){let r=e.marks[i++],a=this.serializeMark(r,e.isInline,t);a&&(o.push([r,n]),n.appendChild(a.dom),n=a.contentDOM||a.dom)}}n.appendChild(this.serializeNodeInner(e,t))})),r}serializeNodeInner(e,t){let{dom:r,contentDOM:n}=Er.renderSpec(jr(t),this.nodes[e.type.name](e));if(n){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,n)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let n=e.marks.length-1;n>=0;n--){let o=this.serializeMark(e.marks[n],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(e,t,r={}){let n=this.marks[e.type.name];return n&&Er.renderSpec(jr(r),n(e,t))}static renderSpec(e,t,r=null){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let n,o=t[0],i=o.indexOf(" ");i>0&&(r=o.slice(0,i),o=o.slice(i+1));let a=r?e.createElementNS(r,o):e.createElement(o),s=t[1],l=1;if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s)){l=2;for(let e in s)if(null!=s[e]){let t=e.indexOf(" ");t>0?a.setAttributeNS(e.slice(0,t),e.slice(t+1),s[e]):a.setAttribute(e,s[e])}}for(let o=l;o<t.length;o++){let i=t[o];if(0===i){if(o<t.length-1||o>l)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}{let{dom:t,contentDOM:o}=Er.renderSpec(e,i,r);if(a.appendChild(t),o){if(n)throw new RangeError("Multiple content holes");n=o}}}return{dom:a,contentDOM:n}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Er(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Cr(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return Cr(e.marks)}}function Cr(e){let t={};for(let r in e){let n=e[r].spec.toDOM;n&&(t[r]=n)}return t}function jr(e){return e.document||window.document}const Yr=Math.pow(2,16);function _r(e){return 65535&e}class Ar{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class Wr{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&Wr.empty)return Wr.empty}recover(e){let t=0,r=_r(e);if(!this.inverted)for(let e=0;e<r;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*r]+t+function(e){return(e-(65535&e))/Yr}(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let n=0,o=this.inverted?2:1,i=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let s=this.ranges[a]-(this.inverted?n:0);if(s>e)break;let l=this.ranges[a+o],c=this.ranges[a+i],O=s+l;if(e<=O){let o=s+n+((l?e==s?-1:e==O?1:t:t)<0?0:c);if(r)return o;let i=e==(t<0?s:O)?null:a/3+(e-s)*Yr,p=e==s?2:e==O?1:4;return(t<0?e!=s:e!=O)&&(p|=8),new Ar(o,p,i)}n+=c-l}return r?e+n:new Ar(e+n,0,null)}touches(e,t){let r=0,n=_r(t),o=this.inverted?2:1,i=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let a=this.ranges[t]-(this.inverted?r:0);if(a>e)break;let s=this.ranges[t+o];if(e<=a+s&&t==3*n)return!0;r+=this.ranges[t+i]-s}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,o=0;n<this.ranges.length;n+=3){let i=this.ranges[n],a=i-(this.inverted?o:0),s=i+(this.inverted?0:o),l=this.ranges[n+t],c=this.ranges[n+r];e(a,a+l,s,s+c),o+=c-l}}invert(){return new Wr(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?Wr.empty:new Wr(e<0?[0,-e,0]:[0,0,e])}}Wr.empty=new Wr([]);class Vr{constructor(e=[],t,r=0,n=e.length){this.maps=e,this.mirror=t,this.from=r,this.to=n}slice(e=0,t=this.maps.length){return new Vr(this.maps,this.mirror,e,t)}copy(){return new Vr(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,r=this.maps.length;t<e.maps.length;t++){let n=e.getMirror(t);this.appendMap(e.maps[t],null!=n&&n<t?r+n:void 0)}}getMirror(e){if(this.mirror)for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this.maps.length+e.maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=n&&n>t?r-n-1:void 0)}}invert(){let e=new Vr;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this.maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let n=0;for(let r=this.from;r<this.to;r++){let o=this.maps[r].mapResult(e,t);if(null!=o.recover){let t=this.getMirror(r);if(null!=t&&t>r&&t<this.to){r=t,e=this.maps[t].recover(o.recover);continue}}n|=o.delInfo,e=o.pos}return r?e:new Ar(e,n,null)}}const qr=Object.create(null);class Ir{getMap(){return Wr.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=qr[t.stepType];if(!r)throw new RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in qr)throw new RangeError("Duplicate use of step JSON ID "+e);return qr[e]=t,t.prototype.jsonID=e,t}}class zr{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new zr(e,null)}static fail(e){return new zr(null,e)}static fromReplace(e,t,r,n){try{return zr.ok(e.replace(t,r,n))}catch(e){if(e instanceof hr)return zr.fail(e.message);throw e}}}function Nr(e,t,r){let n=[];for(let o=0;o<e.childCount;o++){let i=e.child(o);i.content.size&&(i=i.copy(Nr(i.content,t,i))),i.isInline&&(i=t(i,r,o)),n.push(i)}return Or.fromArray(n)}class Mr extends Ir{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),n=r.node(r.sharedDepth(this.to)),o=new mr(Nr(t.content,((e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e),n),t.openStart,t.openEnd);return zr.fromReplace(e,this.from,this.to,o)}invert(){return new Ur(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Mr(t.pos,r.pos,this.mark)}merge(e){return e instanceof Mr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Mr(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Mr(t.from,t.to,e.markFromJSON(t.mark))}}Ir.jsonID("addMark",Mr);class Ur extends Ir{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new mr(Nr(t.content,(e=>e.mark(this.mark.removeFromSet(e.marks))),e),t.openStart,t.openEnd);return zr.fromReplace(e,this.from,this.to,r)}invert(){return new Mr(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Ur(t.pos,r.pos,this.mark)}merge(e){return e instanceof Ur&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ur(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Ur(t.from,t.to,e.markFromJSON(t.mark))}}Ir.jsonID("removeMark",Ur);class Gr extends Ir{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return zr.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return zr.fromReplace(e,this.pos,this.pos+1,new mr(Or.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let r=0;r<t.marks.length;r++)if(!t.marks[r].isInSet(e))return new Gr(this.pos,t.marks[r]);return new Gr(this.pos,this.mark)}}return new Dr(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Gr(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Gr(t.pos,e.markFromJSON(t.mark))}}Ir.jsonID("addNodeMark",Gr);class Dr extends Ir{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return zr.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return zr.fromReplace(e,this.pos,this.pos+1,new mr(Or.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new Gr(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Dr(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Dr(t.pos,e.markFromJSON(t.mark))}}Ir.jsonID("removeNodeMark",Dr);class Br extends Ir{constructor(e,t,r,n=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=n}apply(e){return this.structure&&Fr(e,this.from,this.to)?zr.fail("Structure replace would overwrite content"):zr.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Wr([this.from,this.to-this.from,this.slice.size])}invert(e){return new Br(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deletedAcross&&r.deletedAcross?null:new Br(t.pos,Math.max(t.pos,r.pos),this.slice)}merge(e){if(!(e instanceof Br)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?mr.empty:new mr(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Br(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?mr.empty:new mr(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Br(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Br(t.from,t.to,mr.fromJSON(e,t.slice),!!t.structure)}}Ir.jsonID("replace",Br);class Lr extends Ir{constructor(e,t,r,n,o,i,a=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=n,this.slice=o,this.insert=i,this.structure=a}apply(e){if(this.structure&&(Fr(e,this.from,this.gapFrom)||Fr(e,this.gapTo,this.to)))return zr.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return zr.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?zr.fromReplace(e,this.from,this.to,r):zr.fail("Content does not fit in gap")}getMap(){return new Wr([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new Lr(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),n=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||n<t.pos||o>r.pos?null:new Lr(t.pos,r.pos,n,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Lr(t.from,t.to,t.gapFrom,t.gapTo,mr.fromJSON(e,t.slice),t.insert,!!t.structure)}}function Fr(e,t,r){let n=e.resolve(t),o=r-t,i=n.depth;for(;o>0&&i>0&&n.indexAfter(i)==n.node(i).childCount;)i--,o--;if(o>0){let e=n.node(i).maybeChild(n.indexAfter(i));for(;o>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,o--}}return!1}function Jr(e,t,r){return(0==t||e.canReplace(t,e.childCount))&&(r==e.childCount||e.canReplace(0,r))}function Kr(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let n=e.$from.node(r),o=e.$from.index(r),i=e.$to.indexAfter(r);if(r<e.depth&&n.canReplace(o,i,t))return r;if(0==r||n.type.spec.isolating||!Jr(n,o,i))break}return null}function Hr(e){return{type:e,attrs:null}}function en(e,t,r=1,n){let o=e.resolve(t),i=o.depth-r,a=n&&n[n.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let e=o.depth-1,t=r-2;e>i;e--,t--){let r=o.node(e),i=o.index(e);if(r.type.spec.isolating)return!1;let a=r.content.cutByIndex(i,r.childCount),s=n&&n[t+1];s&&(a=a.replaceChild(0,s.type.create(s.attrs)));let l=n&&n[t]||r;if(!r.canReplace(i+1,r.childCount)||!l.type.validContent(a))return!1}let s=o.indexAfter(i),l=n&&n[0];return o.node(i).canReplaceWith(s,s,l?l.type:o.node(i+1).type)}function tn(e,t){let r=e.resolve(t),n=r.index();return o=r.nodeBefore,i=r.nodeAfter,!(!o||!i||o.isLeaf||!o.canAppend(i))&&r.parent.canReplace(n,n+1);var o,i}function rn(e,t,r){let n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(0==n.parentOffset)for(let e=n.depth-1;e>=0;e--){let t=n.index(e);if(n.node(e).canReplaceWith(t,t,r))return n.before(e+1);if(t>0)return null}if(n.parentOffset==n.parent.content.size)for(let e=n.depth-1;e>=0;e--){let t=n.indexAfter(e);if(n.node(e).canReplaceWith(t,t,r))return n.after(e+1);if(t<n.node(e).childCount)return null}return null}function nn(e,t,r){let n=e.resolve(t);if(!r.content.size)return t;let o=r.content;for(let e=0;e<r.openStart;e++)o=o.firstChild.content;for(let e=1;e<=(0==r.openStart&&r.size?2:1);e++)for(let t=n.depth;t>=0;t--){let r=t==n.depth?0:n.pos<=(n.start(t+1)+n.end(t+1))/2?-1:1,i=n.index(t)+(r>0?1:0),a=n.node(t),s=!1;if(1==e)s=a.canReplace(i,i,o);else{let e=a.contentMatchAt(i).findWrapping(o.firstChild.type);s=e&&a.canReplaceWith(i,i,e[0])}if(s)return 0==r?n.pos:r<0?n.before(t+1):n.after(t+1)}return null}function on(e,t,r=t,n=mr.empty){if(t==r&&!n.size)return null;let o=e.resolve(t),i=e.resolve(r);return an(o,i,n)?new Br(t,r,n):new sn(o,i,n).fit()}function an(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}Ir.jsonID("replaceAround",Lr);class sn{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=Or.empty;for(let t=0;t<=e.depth;t++){let r=e.node(t);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=Or.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,n=this.close(e<0?this.$to:r.doc.resolve(e));if(!n)return null;let o=this.placed,i=r.depth,a=n.depth;for(;i&&a&&1==o.childCount;)o=o.firstChild.content,i--,a--;let s=new mr(o,i,a);return e>-1?new Lr(r.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||r.pos!=this.$to.pos?new Br(r.pos,n.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<e;r++){let o=t.firstChild;if(t.childCount>1&&(n=0),o.type.spec.isolating&&n<=r){e=r;break}t=o.content}for(let t=1;t<=2;t++)for(let r=1==t?e:this.unplaced.openStart;r>=0;r--){let e,n=null;r?(n=On(this.unplaced.content,r-1).firstChild,e=n.content):e=this.unplaced.content;let o=e.firstChild;for(let e=this.depth;e>=0;e--){let i,{type:a,match:s}=this.frontier[e],l=null;if(1==t&&(o?s.matchType(o.type)||(l=s.fillBefore(Or.from(o),!1)):n&&a.compatibleContent(n.type)))return{sliceDepth:r,frontierDepth:e,parent:n,inject:l};if(2==t&&o&&(i=s.findWrapping(o.type)))return{sliceDepth:r,frontierDepth:e,parent:n,wrap:i};if(n&&s.matchType(n.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,n=On(e,t);return!(!n.childCount||n.firstChild.isLeaf)&&(this.unplaced=new mr(e,t+1,Math.max(r,n.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,n=On(e,t);if(n.childCount<=1&&t>0){let o=e.size-t<=t+n.size;this.unplaced=new mr(ln(e,t-1,1),t-1,o?t-1:r)}else this.unplaced=new mr(ln(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:n,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let e=0;e<o.length;e++)this.openFrontierNode(o[e]);let i=this.unplaced,a=r?r.content:i.content,s=i.openStart-e,l=0,c=[],{match:O,type:p}=this.frontier[t];if(n){for(let e=0;e<n.childCount;e++)c.push(n.child(e));O=O.matchFragment(n)}let u=a.size+e-(i.content.size-i.openEnd);for(;l<a.childCount;){let e=a.child(l),t=O.matchType(e.type);if(!t)break;l++,(l>1||0==s||e.content.size)&&(O=t,c.push(pn(e.mark(p.allowedMarks(e.marks)),1==l?s:0,l==a.childCount?u:-1)))}let d=l==a.childCount;d||(u=-1),this.placed=cn(this.placed,t,Or.from(c)),this.frontier[t].match=O,d&&u<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=a;e<u;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=d?0==e?mr.empty:new mr(ln(i.content,e-1,1),e-1,u<0?i.openEnd:e-1):new mr(ln(i.content,e,l),i.openStart,i.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,t=this.frontier[this.depth];if(!t.type.isTextblock||!un(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:n}=this.frontier[t],o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),i=un(e,t,n,r,o);if(i){for(let r=t-1;r>=0;r--){let{match:t,type:n}=this.frontier[r],o=un(e,r,n,t,!0);if(!o||o.childCount)continue e}return{depth:t,fit:i,move:o?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=cn(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let t=e.node(r),n=t.type.contentMatch.fillBefore(t.content,!0,e.index(r));this.openFrontierNode(t.type,t.attrs,n)}return e}openFrontierNode(e,t=null,r){let n=this.frontier[this.depth];n.match=n.match.matchType(e),this.placed=cn(this.placed,this.depth,Or.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(Or.empty,!0);e.childCount&&(this.placed=cn(this.placed,this.frontier.length,e))}}function ln(e,t,r){return 0==t?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(ln(e.firstChild.content,t-1,r)))}function cn(e,t,r){return 0==t?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(cn(e.lastChild.content,t-1,r)))}function On(e,t){for(let r=0;r<t;r++)e=e.firstChild.content;return e}function pn(e,t,r){if(t<=0)return e;let n=e.content;return t>1&&(n=n.replaceChild(0,pn(n.firstChild,t-1,1==n.childCount?r-1:0))),t>0&&(n=e.type.contentMatch.fillBefore(n).append(n),r<=0&&(n=n.append(e.type.contentMatch.matchFragment(n).fillBefore(Or.empty,!0)))),e.copy(n)}function un(e,t,r,n,o){let i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!r.compatibleContent(i.type))return null;let s=n.fillBefore(i.content,!0,a);return s&&!function(e,t,r){for(let n=r;n<t.childCount;n++)if(!e.allowsMarks(t.child(n).marks))return!0;return!1}(r,i.content,a)?s:null}function dn(e,t,r,n,o){if(t<r){let o=e.firstChild;e=e.replaceChild(0,o.copy(dn(o.content,t+1,r,n,o)))}if(t>n){let t=o.contentMatchAt(0),r=t.fillBefore(e).append(e);e=r.append(t.matchFragment(r).fillBefore(Or.empty,!0))}return e}function fn(e,t){let r=[];for(let n=Math.min(e.depth,t.depth);n>=0;n--){let o=e.start(n);if(o<e.pos-(e.depth-n)||t.end(n)>t.pos+(t.depth-n)||e.node(n).type.spec.isolating||t.node(n).type.spec.isolating)break;(o==t.start(n)||n==e.depth&&n==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&n&&t.start(n-1)==o-1)&&r.push(n)}return r}class hn extends Ir{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return zr.fail("No node at attribute step's position");let r=Object.create(null);for(let e in t.attrs)r[e]=t.attrs[e];r[this.attr]=this.value;let n=t.type.create(r,null,t.marks);return zr.fromReplace(e,this.pos,this.pos+1,new mr(Or.from(n),0,t.isLeaf?0:1))}getMap(){return Wr.empty}invert(e){return new hn(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new hn(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new hn(t.pos,t.attr,t.value)}}Ir.jsonID("attr",hn);class mn extends Ir{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return zr.ok(r)}getMap(){return Wr.empty}invert(e){return new mn(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new mn(t.attr,t.value)}}Ir.jsonID("docAttr",mn);let gn=class extends Error{};gn=function e(t){let r=Error.call(this,t);return r.__proto__=e.prototype,r},(gn.prototype=Object.create(Error.prototype)).constructor=gn,gn.prototype.name="TransformError";class yn{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Vr}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new gn(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=mr.empty){let n=on(this.doc,e,t,r);return n&&this.step(n),this}replaceWith(e,t,r){return this.replace(e,t,new mr(Or.from(r),0,0))}delete(e,t){return this.replace(e,t,mr.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return function(e,t,r,n){if(!n.size)return e.deleteRange(t,r);let o=e.doc.resolve(t),i=e.doc.resolve(r);if(an(o,i,n))return e.step(new Br(t,r,n));let a=fn(o,e.doc.resolve(r));0==a[a.length-1]&&a.pop();let s=-(o.depth+1);a.unshift(s);for(let e=o.depth,t=o.pos-1;e>0;e--,t--){let r=o.node(e).type.spec;if(r.defining||r.definingAsContext||r.isolating)break;a.indexOf(e)>-1?s=e:o.before(e)==t&&a.splice(1,0,-e)}let l=a.indexOf(s),c=[],O=n.openStart;for(let e=n.content,t=0;;t++){let r=e.firstChild;if(c.push(r),t==n.openStart)break;e=r.content}for(let e=O-1;e>=0;e--){let t=c[e],r=(p=t.type).spec.defining||p.spec.definingForContent;if(r&&!t.sameMarkup(o.node(Math.abs(s)-1)))O=e;else if(r||!t.type.isTextblock)break}var p;for(let t=n.openStart;t>=0;t--){let s=(t+O+1)%(n.openStart+1),p=c[s];if(p)for(let t=0;t<a.length;t++){let c=a[(t+l)%a.length],O=!0;c<0&&(O=!1,c=-c);let u=o.node(c-1),d=o.index(c-1);if(u.canReplaceWith(d,d,p.type,p.marks))return e.replace(o.before(c),O?i.after(c):r,new mr(dn(n.content,0,n.openStart,s),s,n.openEnd))}}let u=e.steps.length;for(let s=a.length-1;s>=0&&(e.replace(t,r,n),!(e.steps.length>u));s--){let e=a[s];e<0||(t=o.before(e),r=i.after(e))}}(this,e,t,r),this}replaceRangeWith(e,t,r){return function(e,t,r,n){if(!n.isInline&&t==r&&e.doc.resolve(t).parent.content.size){let o=rn(e.doc,t,n.type);null!=o&&(t=r=o)}e.replaceRange(t,r,new mr(Or.from(n),0,0))}(this,e,t,r),this}deleteRange(e,t){return function(e,t,r){let n=e.doc.resolve(t),o=e.doc.resolve(r),i=fn(n,o);for(let t=0;t<i.length;t++){let r=i[t],a=t==i.length-1;if(a&&0==r||n.node(r).type.contentMatch.validEnd)return e.delete(n.start(r),o.end(r));if(r>0&&(a||n.node(r-1).canReplace(n.index(r-1),o.indexAfter(r-1))))return e.delete(n.before(r),o.after(r))}for(let i=1;i<=n.depth&&i<=o.depth;i++)if(t-n.start(i)==n.depth-i&&r>n.end(i)&&o.end(i)-r!=o.depth-i)return e.delete(n.before(i),r);e.delete(t,r)}(this,e,t),this}lift(e,t){return function(e,t,r){let{$from:n,$to:o,depth:i}=t,a=n.before(i+1),s=o.after(i+1),l=a,c=s,O=Or.empty,p=0;for(let e=i,t=!1;e>r;e--)t||n.index(e)>0?(t=!0,O=Or.from(n.node(e).copy(O)),p++):l--;let u=Or.empty,d=0;for(let e=i,t=!1;e>r;e--)t||o.after(e+1)<o.end(e)?(t=!0,u=Or.from(o.node(e).copy(u)),d++):c++;e.step(new Lr(l,c,a,s,new mr(O.append(u),p,d),O.size-p,!0))}(this,e,t),this}join(e,t=1){return function(e,t,r){let n=new Br(t-r,t+r,mr.empty,!0);e.step(n)}(this,e,t),this}wrap(e,t){return function(e,t,r){let n=Or.empty;for(let e=r.length-1;e>=0;e--){if(n.size){let t=r[e].type.contentMatch.matchFragment(n);if(!t||!t.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=Or.from(r[e].type.create(r[e].attrs,n))}let o=t.start,i=t.end;e.step(new Lr(o,i,o,i,new mr(n,0,0),r.length,!0))}(this,e,t),this}setBlockType(e,t=e,r,n=null){return function(e,t,r,n,o){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=e.steps.length;e.doc.nodesBetween(t,r,((t,r)=>{if(t.isTextblock&&!t.hasMarkup(n,o)&&function(e,t,r){let n=e.resolve(t),o=n.index();return n.parent.canReplaceWith(o,o+1,r)}(e.doc,e.mapping.slice(i).map(r),n)){e.clearIncompatible(e.mapping.slice(i).map(r,1),n);let a=e.mapping.slice(i),s=a.map(r,1),l=a.map(r+t.nodeSize,1);return e.step(new Lr(s,l,s+1,l-1,new mr(Or.from(n.create(o,null,t.marks)),0,0),1,!0)),!1}}))}(this,e,t,r,n),this}setNodeMarkup(e,t,r=null,n){return function(e,t,r,n,o){let i=e.doc.nodeAt(t);if(!i)throw new RangeError("No node at given position");r||(r=i.type);let a=r.create(n,null,o||i.marks);if(i.isLeaf)return e.replaceWith(t,t+i.nodeSize,a);if(!r.validContent(i.content))throw new RangeError("Invalid content for node type "+r.name);e.step(new Lr(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new mr(Or.from(a),0,0),1,!0))}(this,e,t,r,n),this}setNodeAttribute(e,t,r){return this.step(new hn(e,t,r)),this}setDocAttribute(e,t){return this.step(new mn(e,t)),this}addNodeMark(e,t){return this.step(new Gr(e,t)),this}removeNodeMark(e,t){if(!(t instanceof fr)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(!(t=t.isInSet(r.marks)))return this}return this.step(new Dr(e,t)),this}split(e,t=1,r){return function(e,t,r=1,n){let o=e.doc.resolve(t),i=Or.empty,a=Or.empty;for(let e=o.depth,t=o.depth-r,s=r-1;e>t;e--,s--){i=Or.from(o.node(e).copy(i));let t=n&&n[s];a=Or.from(t?t.type.create(t.attrs,a):o.node(e).copy(a))}e.step(new Br(t,t,new mr(i.append(a),r,r),!0))}(this,e,t,r),this}addMark(e,t,r){return function(e,t,r,n){let o,i,a=[],s=[];e.doc.nodesBetween(t,r,((e,l,c)=>{if(!e.isInline)return;let O=e.marks;if(!n.isInSet(O)&&c.type.allowsMarkType(n.type)){let c=Math.max(l,t),p=Math.min(l+e.nodeSize,r),u=n.addToSet(O);for(let e=0;e<O.length;e++)O[e].isInSet(u)||(o&&o.to==c&&o.mark.eq(O[e])?o.to=p:a.push(o=new Ur(c,p,O[e])));i&&i.to==c?i.to=p:s.push(i=new Mr(c,p,n))}})),a.forEach((t=>e.step(t))),s.forEach((t=>e.step(t)))}(this,e,t,r),this}removeMark(e,t,r){return function(e,t,r,n){let o=[],i=0;e.doc.nodesBetween(t,r,((e,a)=>{if(!e.isInline)return;i++;let s=null;if(n instanceof Qr){let t,r=e.marks;for(;t=n.isInSet(r);)(s||(s=[])).push(t),r=t.removeFromSet(r)}else n?n.isInSet(e.marks)&&(s=[n]):s=e.marks;if(s&&s.length){let n=Math.min(a+e.nodeSize,r);for(let e=0;e<s.length;e++){let r,l=s[e];for(let e=0;e<o.length;e++){let t=o[e];t.step==i-1&&l.eq(o[e].style)&&(r=t)}r?(r.to=n,r.step=i):o.push({style:l,from:Math.max(a,t),to:n,step:i})}}})),o.forEach((t=>e.step(new Ur(t.from,t.to,t.style))))}(this,e,t,r),this}clearIncompatible(e,t,r){return function(e,t,r,n=r.contentMatch){let o=e.doc.nodeAt(t),i=[],a=t+1;for(let t=0;t<o.childCount;t++){let s=o.child(t),l=a+s.nodeSize,c=n.matchType(s.type);if(c){n=c;for(let t=0;t<s.marks.length;t++)r.allowsMarkType(s.marks[t].type)||e.step(new Ur(a,l,s.marks[t]));if(s.isText&&!r.spec.code){let e,t,n=/\r?\n|\r/g;for(;e=n.exec(s.text);)t||(t=new mr(Or.from(r.schema.text(" ",r.allowedMarks(s.marks))),0,0)),i.push(new Br(a+e.index,a+e.index+e[0].length,t))}}else i.push(new Br(a,l,mr.empty));a=l}if(!n.validEnd){let t=n.fillBefore(Or.empty,!0);e.replace(a,a,new mr(t,0,0))}for(let t=i.length-1;t>=0;t--)e.step(i[t])}(this,e,t,r),this}}const Sn=Object.create(null);class bn{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new Qn(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=mr.empty){let r=t.content.lastChild,n=null;for(let e=0;e<t.openEnd;e++)n=r,r=r.lastChild;let o=e.steps.length,i=this.ranges;for(let a=0;a<i.length;a++){let{$from:s,$to:l}=i[a],c=e.mapping.slice(o);e.replaceRange(c.map(s.pos),c.map(l.pos),a?mr.empty:t),0==a&&Xn(e,o,(r?r.isInline:n&&n.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,n=this.ranges;for(let o=0;o<n.length;o++){let{$from:i,$to:a}=n[o],s=e.mapping.slice(r),l=s.map(i.pos),c=s.map(a.pos);o?e.deleteRange(l,c):(e.replaceRangeWith(l,c,t),Xn(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let n=e.parent.inlineContent?new Pn(e):Rn(e.node(0),e.parent,e.pos,e.index(),t,r);if(n)return n;for(let n=e.depth-1;n>=0;n--){let o=t<0?Rn(e.node(0),e.node(n),e.before(n+1),e.index(n),t,r):Rn(e.node(0),e.node(n),e.after(n+1),e.index(n)+1,t,r);if(o)return o}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Zn(e.node(0))}static atStart(e){return Rn(e,e,0,0,1)||new Zn(e)}static atEnd(e){return Rn(e,e,e.content.size,e.childCount,-1)||new Zn(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Sn[t.type];if(!r)throw new RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in Sn)throw new RangeError("Duplicate use of selection JSON ID "+e);return Sn[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Pn.between(this.$anchor,this.$head).getBookmark()}}bn.prototype.visible=!0;class Qn{constructor(e,t){this.$from=e,this.$to=t}}let wn=!1;function $n(e){wn||e.parent.inlineContent||(wn=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Pn extends bn{constructor(e,t=e){$n(e),$n(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return bn.near(r);let n=e.resolve(t.map(this.anchor));return new Pn(n.parent.inlineContent?n:r,r)}replace(e,t=mr.empty){if(super.replace(e,t),t==mr.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof Pn&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new vn(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new Pn(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let n=e.resolve(t);return new this(n,r==t?n:e.resolve(r))}static between(e,t,r){let n=e.pos-t.pos;if(r&&!n||(r=n>=0?1:-1),!t.parent.inlineContent){let e=bn.findFrom(t,r,!0)||bn.findFrom(t,-r,!0);if(!e)return bn.near(t,r);t=e.$head}return e.parent.inlineContent||(0==n||(e=(bn.findFrom(e,-r,!0)||bn.findFrom(e,r,!0)).$anchor).pos<t.pos!=n<0)&&(e=t),new Pn(e,t)}}bn.jsonID("text",Pn);class vn{constructor(e,t){this.anchor=e,this.head=t}map(e){return new vn(e.map(this.anchor),e.map(this.head))}resolve(e){return Pn.between(e.resolve(this.anchor),e.resolve(this.head))}}class xn extends bn{constructor(e){let t=e.nodeAfter,r=e.node(0).resolve(e.pos+t.nodeSize);super(e,r),this.node=t}map(e,t){let{deleted:r,pos:n}=t.mapResult(this.anchor),o=e.resolve(n);return r?bn.near(o):new xn(o)}content(){return new mr(Or.from(this.node),0,0)}eq(e){return e instanceof xn&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new kn(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new xn(e.resolve(t.anchor))}static create(e,t){return new xn(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}xn.prototype.visible=!1,bn.jsonID("node",xn);class kn{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new vn(r,r):new kn(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&xn.isSelectable(r)?new xn(t):bn.near(t)}}class Zn extends bn{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=mr.empty){if(t==mr.empty){e.delete(0,e.doc.content.size);let t=bn.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new Zn(e)}map(e){return new Zn(e)}eq(e){return e instanceof Zn}getBookmark(){return Tn}}bn.jsonID("all",Zn);const Tn={map(){return this},resolve:e=>new Zn(e)};function Rn(e,t,r,n,o,i=!1){if(t.inlineContent)return Pn.create(e,r);for(let a=n-(o>0?0:1);o>0?a<t.childCount:a>=0;a+=o){let n=t.child(a);if(n.isAtom){if(!i&&xn.isSelectable(n))return xn.create(e,r-(o<0?n.nodeSize:0))}else{let t=Rn(e,n,r+o,o<0?n.childCount:0,o,i);if(t)return t}r+=n.nodeSize*o}return null}function Xn(e,t,r){let n=e.steps.length-1;if(n<t)return;let o,i=e.steps[n];(i instanceof Br||i instanceof Lr)&&(e.mapping.maps[n].forEach(((e,t,r,n)=>{null==o&&(o=n)})),e.setSelection(bn.near(e.doc.resolve(o),r)))}function En(e,t){return t&&e?e.bind(t):e}class Cn{constructor(e,t,r){this.name=e,this.init=En(t.init,r),this.apply=En(t.apply,r)}}function jn(e,t,r){for(let n in e){let o=e[n];o instanceof Function?o=o.bind(t):"handleDOMEvents"==n&&(o=jn(o,t,{})),r[n]=o}return r}new Cn("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new Cn("selection",{init:(e,t)=>e.selection||bn.atStart(t.doc),apply:e=>e.selection}),new Cn("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,r,n)=>n.selection.$cursor?e.storedMarks:null}),new Cn("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t});class Yn{constructor(e){this.spec=e,this.props={},e.props&&jn(e.props,this,this.props),this.key=e.key?e.key.key:An("plugin")}getState(e){return e[this.key]}}const _n=Object.create(null);function An(e){return e in _n?e+"$"+ ++_n[e]:(_n[e]=0,e+"$")}class Wn{constructor(e="key"){this.key=An(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Vn=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},qn=function(e,t,r,n){return r&&(zn(e,t,r,n,-1)||zn(e,t,r,n,1))},In=/^(img|br|input|textarea|hr)$/i;function zn(e,t,r,n,o){for(;;){if(e==r&&t==n)return!0;if(t==(o<0?0:Nn(e))){let r=e.parentNode;if(!r||1!=r.nodeType||Mn(e)||In.test(e.nodeName)||"false"==e.contentEditable)return!1;t=Vn(e)+(o<0?0:1),e=r}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(o<0?-1:0)]).contentEditable)return!1;t=o<0?Nn(e):0}}}function Nn(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Mn(e){let t;for(let r=e;r&&!(t=r.pmViewDesc);r=r.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const Un=function(e){return e.focusNode&&qn(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function Gn(e,t){let r=document.createEvent("Event");return r.initEvent("keydown",!0,!0),r.keyCode=e,r.key=r.code=t,r}const Dn="undefined"!=typeof navigator?navigator:null,Bn="undefined"!=typeof document?document:null,Ln=Dn&&Dn.userAgent||"",Fn=/Edge\/(\d+)/.exec(Ln),Jn=/MSIE \d/.exec(Ln),Kn=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ln),Hn=!!(Jn||Kn||Fn),eo=Jn?document.documentMode:Kn?+Kn[1]:Fn?+Fn[1]:0,to=!Hn&&/gecko\/(\d+)/i.test(Ln);to&&(/Firefox\/(\d+)/.exec(Ln)||[0,0])[1];const ro=!Hn&&/Chrome\/(\d+)/.exec(Ln),no=!!ro,oo=ro?+ro[1]:0,io=!Hn&&!!Dn&&/Apple Computer/.test(Dn.vendor),ao=io&&(/Mobile\/\w+/.test(Ln)||!!Dn&&Dn.maxTouchPoints>2),so=ao||!!Dn&&/Mac/.test(Dn.platform),lo=!!Dn&&/Win/.test(Dn.platform),co=/Android \d/.test(Ln),Oo=!!Bn&&"webkitFontSmoothing"in Bn.documentElement.style,po=Oo?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function uo(e,t=null){let r=e.domSelectionRange(),n=e.state.doc;if(!r.focusNode)return null;let o=e.docView.nearestDesc(r.focusNode),i=o&&0==o.size,a=e.docView.posFromDOM(r.focusNode,r.focusOffset,1);if(a<0)return null;let s,l,c=n.resolve(a);if(Un(r)){for(s=c;o&&!o.node;)o=o.parent;let e=o.node;if(o&&e.isAtom&&xn.isSelectable(e)&&o.parent&&(!e.isInline||!function(e,t,r){for(let n=0==t,o=t==Nn(e);n||o;){if(e==r)return!0;let t=Vn(e);if(!(e=e.parentNode))return!1;n=n&&0==t,o=o&&t==Nn(e)}}(r.focusNode,r.focusOffset,o.dom))){let e=o.posBefore;l=new xn(a==e?c:n.resolve(e))}}else{let t=e.docView.posFromDOM(r.anchorNode,r.anchorOffset,1);if(t<0)return null;s=n.resolve(t)}if(!l){l=Qo(e,s,c,"pointer"==t||e.state.selection.head<c.pos&&!i?1:-1)}return l}function fo(e){return e.editable?e.hasFocus():function(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function ho(e,t=!1){let r=e.state.selection;if(function(e,t){if(t instanceof xn){let r=e.docView.descAt(t.from);r!=e.lastSelectedViewDesc&&(bo(e),r&&r.selectNode(),e.lastSelectedViewDesc=r)}else bo(e)}(e,r),fo(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&no){let t=e.domSelectionRange(),r=e.domObserver.currentSelection;if(t.anchorNode&&r.anchorNode&&qn(t.anchorNode,t.anchorOffset,r.anchorNode,r.anchorOffset))return e.input.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let t=e.domSelection(),r=document.createRange(),n=e.cursorWrapper.dom,o="IMG"==n.nodeName;o?r.setEnd(n.parentNode,Vn(n)+1):r.setEnd(n,0);r.collapse(!1),t.removeAllRanges(),t.addRange(r),!o&&!e.state.selection.visible&&Hn&&eo<=11&&(n.disabled=!0,n.disabled=!1)}(e);else{let n,o,{anchor:i,head:a}=r;!mo||r instanceof Pn||(r.$from.parent.inlineContent||(n=go(e,r.from)),r.empty||r.$from.parent.inlineContent||(o=go(e,r.to))),e.docView.setSelection(i,a,e.root,t),mo&&(n&&So(n),o&&So(o)),r.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let r=e.domSelectionRange(),n=r.anchorNode,o=r.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{r.anchorNode==n&&r.anchorOffset==o||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout((()=>{fo(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const mo=io||no&&oo<63;function go(e,t){let{node:r,offset:n}=e.docView.domFromPos(t,0),o=n<r.childNodes.length?r.childNodes[n]:null,i=n?r.childNodes[n-1]:null;if(io&&o&&"false"==o.contentEditable)return yo(o);if(!(o&&"false"!=o.contentEditable||i&&"false"!=i.contentEditable)){if(o)return yo(o);if(i)return yo(i)}}function yo(e){return e.contentEditable="true",io&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function So(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function bo(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Qo(e,t,r,n){return e.someProp("createSelectionBetween",(n=>n(e,t,r)))||Pn.between(t,r,n)}function wo(e,t){let{$anchor:r,$head:n}=e.selection,o=t>0?r.max(n):r.min(n),i=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return i&&bn.findFrom(i,t)}function $o(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Po(e,t,r){let n=e.state.selection;if(!(n instanceof Pn)){if(n instanceof xn&&n.node.isInline)return $o(e,new Pn(t>0?n.$to:n.$from));{let r=wo(e.state,t);return!!r&&$o(e,r)}}if(r.indexOf("s")>-1){let{$head:r}=n,o=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let i=e.state.doc.resolve(r.pos+o.nodeSize*(t<0?-1:1));return $o(e,new Pn(n.$anchor,i))}if(!n.empty)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let r=wo(e.state,t);return!!(r&&r instanceof xn)&&$o(e,r)}if(!(so&&r.indexOf("m")>-1)){let r,o=n.$head,i=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText)return!1;let a=t<0?o.pos-i.nodeSize:o.pos;return!!(i.isAtom||(r=e.docView.descAt(a))&&!r.contentDOM)&&(xn.isSelectable(i)?$o(e,new xn(t<0?e.state.doc.resolve(o.pos-i.nodeSize):o)):!!Oo&&$o(e,new Pn(e.state.doc.resolve(t<0?a:a+i.nodeSize))))}}function vo(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function xo(e,t){let r=e.pmViewDesc;return r&&0==r.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function ko(e,t){return t<0?function(e){let t=e.domSelectionRange(),r=t.focusNode,n=t.focusOffset;if(!r)return;let o,i,a=!1;to&&1==r.nodeType&&n<vo(r)&&xo(r.childNodes[n],-1)&&(a=!0);for(;;)if(n>0){if(1!=r.nodeType)break;{let e=r.childNodes[n-1];if(xo(e,-1))o=r,i=--n;else{if(3!=e.nodeType)break;r=e,n=r.nodeValue.length}}}else{if(Zo(r))break;{let t=r.previousSibling;for(;t&&xo(t,-1);)o=r.parentNode,i=Vn(t),t=t.previousSibling;if(t)r=t,n=vo(r);else{if(r=r.parentNode,r==e.dom)break;n=0}}}a?To(e,r,n):o&&To(e,o,i)}(e):function(e){let t=e.domSelectionRange(),r=t.focusNode,n=t.focusOffset;if(!r)return;let o,i,a=vo(r);for(;;)if(n<a){if(1!=r.nodeType)break;if(!xo(r.childNodes[n],1))break;o=r,i=++n}else{if(Zo(r))break;{let t=r.nextSibling;for(;t&&xo(t,1);)o=t.parentNode,i=Vn(t)+1,t=t.nextSibling;if(t)r=t,n=0,a=vo(r);else{if(r=r.parentNode,r==e.dom)break;n=a=0}}}o&&To(e,o,i)}(e)}function Zo(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function To(e,t,r){if(3!=t.nodeType){let e,n;(n=function(e,t){for(;e&&t==e.childNodes.length&&!Mn(e);)t=Vn(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let r=e.childNodes[t];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;e=r,t=0}}(t,r))?(t=n,r=0):(e=function(e,t){for(;e&&!t&&!Mn(e);)t=Vn(e),e=e.parentNode;for(;e&&t;){let r=e.childNodes[t-1];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;t=(e=r).childNodes.length}}(t,r))&&(t=e,r=e.nodeValue.length)}let n=e.domSelection();if(Un(n)){let e=document.createRange();e.setEnd(t,r),e.setStart(t,r),n.removeAllRanges(),n.addRange(e)}else n.extend&&n.extend(t,r);e.domObserver.setCurSelection();let{state:o}=e;setTimeout((()=>{e.state==o&&ho(e)}),50)}function Ro(e,t){let r=e.state.doc.resolve(t);if(!no&&!lo&&r.parent.inlineContent){let n=e.coordsAtPos(t);if(t>r.start()){let r=e.coordsAtPos(t-1),o=(r.top+r.bottom)/2;if(o>n.top&&o<n.bottom&&Math.abs(r.left-n.left)>1)return r.left<n.left?"ltr":"rtl"}if(t<r.end()){let r=e.coordsAtPos(t+1),o=(r.top+r.bottom)/2;if(o>n.top&&o<n.bottom&&Math.abs(r.left-n.left)>1)return r.left>n.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function Xo(e,t,r){let n=e.state.selection;if(n instanceof Pn&&!n.empty||r.indexOf("s")>-1)return!1;if(so&&r.indexOf("m")>-1)return!1;let{$from:o,$to:i}=n;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let r=wo(e.state,t);if(r&&r instanceof xn)return $o(e,r)}if(!o.parent.inlineContent){let r=t<0?o:i,a=n instanceof Zn?bn.near(r,t):bn.findFrom(r,t);return!!a&&$o(e,a)}return!1}function Eo(e,t){if(!(e.state.selection instanceof Pn))return!0;let{$head:r,$anchor:n,empty:o}=e.state.selection;if(!r.sameParent(n))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let i=!r.textOffset&&(t<0?r.nodeBefore:r.nodeAfter);if(i&&!i.isText){let n=e.state.tr;return t<0?n.delete(r.pos-i.nodeSize,r.pos):n.delete(r.pos,r.pos+i.nodeSize),e.dispatch(n),!0}return!1}function Co(e,t,r){e.domObserver.stop(),t.contentEditable=r,e.domObserver.start()}function jo(e,t){let r=t.keyCode,n=function(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);if(8==r||so&&72==r&&"c"==n)return Eo(e,-1)||ko(e,-1);if(46==r&&!t.shiftKey||so&&68==r&&"c"==n)return Eo(e,1)||ko(e,1);if(13==r||27==r)return!0;if(37==r||so&&66==r&&"c"==n){let t=37==r?"ltr"==Ro(e,e.state.selection.from)?-1:1:-1;return Po(e,t,n)||ko(e,t)}if(39==r||so&&70==r&&"c"==n){let t=39==r?"ltr"==Ro(e,e.state.selection.from)?1:-1:1;return Po(e,t,n)||ko(e,t)}return 38==r||so&&80==r&&"c"==n?Xo(e,-1,n)||ko(e,-1):40==r||so&&78==r&&"c"==n?function(e){if(!io||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:r}=e.domSelectionRange();if(t&&1==t.nodeType&&0==r&&t.firstChild&&"false"==t.firstChild.contentEditable){let r=t.firstChild;Co(e,r,"true"),setTimeout((()=>Co(e,r,"false")),20)}return!1}(e)||Xo(e,1,n)||ko(e,1):n==(so?"m":"c")&&(66==r||73==r||89==r||90==r)}function Yo(e,t){e.someProp("transformCopied",(r=>{t=r(t,e)}));let r=[],{content:n,openStart:o,openEnd:i}=t;for(;o>1&&i>1&&1==n.childCount&&1==n.firstChild.childCount;){o--,i--;let e=n.firstChild;r.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),n=e.content}let a=e.someProp("clipboardSerializer")||Er.fromSchema(e.state.schema),s=Uo(),l=s.createElement("div");l.appendChild(a.serializeFragment(n,{document:s}));let c,O=l.firstChild,p=0;for(;O&&1==O.nodeType&&(c=No[O.nodeName.toLowerCase()]);){for(let e=c.length-1;e>=0;e--){let t=s.createElement(c[e]);for(;l.firstChild;)t.appendChild(l.firstChild);l.appendChild(t),p++}O=l.firstChild}return O&&1==O.nodeType&&O.setAttribute("data-pm-slice",`${o} ${i}${p?` -${p}`:""} ${JSON.stringify(r)}`),{dom:l,text:e.someProp("clipboardTextSerializer",(r=>r(t,e)))||t.content.textBetween(0,t.content.size,"\n\n")}}function _o(e,t,r,n,o){let i,a,s=o.parent.type.spec.code;if(!r&&!t)return null;let l=t&&(n||s||!r);if(l){if(e.someProp("transformPastedText",(r=>{t=r(t,s||n,e)})),s)return t?new mr(Or.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):mr.empty;let r=e.someProp("clipboardTextParser",(r=>r(t,o,n,e)));if(r)a=r;else{let r=o.marks(),{schema:n}=e.state,a=Er.fromSchema(n);i=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach((e=>{let t=i.appendChild(document.createElement("p"));e&&t.appendChild(a.serializeNode(n.text(e,r)))}))}}else e.someProp("transformPastedHTML",(t=>{r=t(r,e)})),i=function(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let r,n=Uo().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e);(r=o&&No[o[1].toLowerCase()])&&(e=r.map((e=>"<"+e+">")).join("")+e+r.map((e=>"</"+e+">")).reverse().join(""));if(n.innerHTML=e,r)for(let e=0;e<r.length;e++)n=n.querySelector(r[e])||n;return n}(r),Oo&&function(e){let t=e.querySelectorAll(no?"span:not([class]):not([style])":"span.Apple-converted-space");for(let r=0;r<t.length;r++){let n=t[r];1==n.childNodes.length&&" "==n.textContent&&n.parentNode&&n.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),n)}}(i);let c=i&&i.querySelector("[data-pm-slice]"),O=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(O&&O[3])for(let e=+O[3];e>0;e--){let e=i.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;i=e}if(!a){let t=e.someProp("clipboardParser")||e.someProp("domParser")||wr.fromSchema(e.state.schema);a=t.parseSlice(i,{preserveWhitespace:!(!l&&!O),context:o,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||Ao.test(e.parentNode.nodeName)?null:{ignore:!0}})}if(O)a=function(e,t){if(!e.size)return e;let r,n=e.content.firstChild.type.schema;try{r=JSON.parse(t)}catch(t){return e}let{content:o,openStart:i,openEnd:a}=e;for(let e=r.length-2;e>=0;e-=2){let t=n.nodes[r[e]];if(!t||t.hasRequiredAttrs())break;o=Or.from(t.create(r[e+1],o)),i++,a++}return new mr(o,i,a)}(zo(a,+O[1],+O[2]),O[4]);else if(a=mr.maxOpen(function(e,t){if(e.childCount<2)return e;for(let r=t.depth;r>=0;r--){let n,o=t.node(r).contentMatchAt(t.index(r)),i=[];if(e.forEach((e=>{if(!i)return;let t,r=o.findWrapping(e.type);if(!r)return i=null;if(t=i.length&&n.length&&Vo(r,n,e,i[i.length-1],0))i[i.length-1]=t;else{i.length&&(i[i.length-1]=qo(i[i.length-1],n.length));let t=Wo(e,r);i.push(t),o=o.matchType(t.type),n=r}})),i)return Or.from(i)}return e}(a.content,o),!0),a.openStart||a.openEnd){let e=0,t=0;for(let t=a.content.firstChild;e<a.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=a.content.lastChild;t<a.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);a=zo(a,e,t)}return e.someProp("transformPasted",(t=>{a=t(a,e)})),a}const Ao=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Wo(e,t,r=0){for(let n=t.length-1;n>=r;n--)e=t[n].create(null,Or.from(e));return e}function Vo(e,t,r,n,o){if(o<e.length&&o<t.length&&e[o]==t[o]){let i=Vo(e,t,r,n.lastChild,o+1);if(i)return n.copy(n.content.replaceChild(n.childCount-1,i));if(n.contentMatchAt(n.childCount).matchType(o==e.length-1?r.type:e[o+1]))return n.copy(n.content.append(Or.from(Wo(r,e,o+1))))}}function qo(e,t){if(0==t)return e;let r=e.content.replaceChild(e.childCount-1,qo(e.lastChild,t-1)),n=e.contentMatchAt(e.childCount).fillBefore(Or.empty,!0);return e.copy(r.append(n))}function Io(e,t,r,n,o,i){let a=t<0?e.firstChild:e.lastChild,s=a.content;return e.childCount>1&&(i=0),o<n-1&&(s=Io(s,t,r,n,o+1,i)),o>=r&&(s=t<0?a.contentMatchAt(0).fillBefore(s,i<=o).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(Or.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function zo(e,t,r){return t<e.openStart&&(e=new mr(Io(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),r<e.openEnd&&(e=new mr(Io(e.content,1,r,e.openEnd,0,0),e.openStart,r)),e}const No={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Mo=null;function Uo(){return Mo||(Mo=document.implementation.createHTMLDocument("title"))}const Go={},Do={};function Bo(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function Lo(e){return{left:e.clientX,top:e.clientY}}function Fo(e,t,r,n,o){if(-1==n)return!1;let i=e.state.doc.resolve(n);for(let n=i.depth+1;n>0;n--)if(e.someProp(t,(t=>n>i.depth?t(e,r,i.nodeAfter,i.before(n),o,!0):t(e,r,i.node(n),i.before(n),o,!1))))return!0;return!1}function Jo(e,t,r){e.focused||e.focus();let n=e.state.tr.setSelection(t);"pointer"==r&&n.setMeta("pointer",!0),e.dispatch(n)}function Ko(e,t,r,n,o){return Fo(e,"handleClickOn",t,r,n)||e.someProp("handleClick",(r=>r(e,t,n)))||(o?function(e,t){if(-1==t)return!1;let r,n,o=e.state.selection;o instanceof xn&&(r=o.node);let i=e.state.doc.resolve(t);for(let e=i.depth+1;e>0;e--){let t=e>i.depth?i.nodeAfter:i.node(e);if(xn.isSelectable(t)){n=r&&o.$from.depth>0&&e>=o.$from.depth&&i.before(o.$from.depth+1)==o.$from.pos?i.before(o.$from.depth):i.before(e);break}}return null!=n&&(Jo(e,xn.create(e.state.doc,n),"pointer"),!0)}(e,r):function(e,t){if(-1==t)return!1;let r=e.state.doc.resolve(t),n=r.nodeAfter;return!!(n&&n.isAtom&&xn.isSelectable(n))&&(Jo(e,new xn(r),"pointer"),!0)}(e,r))}function Ho(e,t,r,n){return Fo(e,"handleDoubleClickOn",t,r,n)||e.someProp("handleDoubleClick",(r=>r(e,t,n)))}function ei(e,t,r,n){return Fo(e,"handleTripleClickOn",t,r,n)||e.someProp("handleTripleClick",(r=>r(e,t,n)))||function(e,t,r){if(0!=r.button)return!1;let n=e.state.doc;if(-1==t)return!!n.inlineContent&&(Jo(e,Pn.create(n,0,n.content.size),"pointer"),!0);let o=n.resolve(t);for(let t=o.depth+1;t>0;t--){let r=t>o.depth?o.nodeAfter:o.node(t),i=o.before(t);if(r.inlineContent)Jo(e,Pn.create(n,i+1,i+1+r.content.size),"pointer");else{if(!xn.isSelectable(r))continue;Jo(e,xn.create(n,i),"pointer")}return!0}}(e,r,n)}function ti(e){return li(e)}Do.keydown=(e,t)=>{let r=t;if(e.input.shiftKey=16==r.keyCode||r.shiftKey,!oi(e,r)&&(e.input.lastKeyCode=r.keyCode,e.input.lastKeyCodeTime=Date.now(),!co||!no||13!=r.keyCode))if(229!=r.keyCode&&e.domObserver.forceFlush(),!ao||13!=r.keyCode||r.ctrlKey||r.altKey||r.metaKey)e.someProp("handleKeyDown",(t=>t(e,r)))||jo(e,r)?r.preventDefault():Bo(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout((()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",(t=>t(e,Gn(13,"Enter")))),e.input.lastIOSEnter=0)}),200)}},Do.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},Do.keypress=(e,t)=>{let r=t;if(oi(e,r)||!r.charCode||r.ctrlKey&&!r.altKey||so&&r.metaKey)return;if(e.someProp("handleKeyPress",(t=>t(e,r))))return void r.preventDefault();let n=e.state.selection;if(!(n instanceof Pn&&n.$from.sameParent(n.$to))){let t=String.fromCharCode(r.charCode);/[\r\n]/.test(t)||e.someProp("handleTextInput",(r=>r(e,n.$from.pos,n.$to.pos,t)))||e.dispatch(e.state.tr.insertText(t).scrollIntoView()),r.preventDefault()}};const ri=so?"metaKey":"ctrlKey";Go.mousedown=(e,t)=>{let r=t;e.input.shiftKey=r.shiftKey;let n=ti(e),o=Date.now(),i="singleClick";o-e.input.lastClick.time<500&&function(e,t){let r=t.x-e.clientX,n=t.y-e.clientY;return r*r+n*n<100}(r,e.input.lastClick)&&!r[ri]&&("singleClick"==e.input.lastClick.type?i="doubleClick":"doubleClick"==e.input.lastClick.type&&(i="tripleClick")),e.input.lastClick={time:o,x:r.clientX,y:r.clientY,type:i};let a=e.posAtCoords(Lo(r));a&&("singleClick"==i?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new ni(e,a,r,!!n)):("doubleClick"==i?Ho:ei)(e,a.pos,a.inside,r)?r.preventDefault():Bo(e,"pointer"))};class ni{constructor(e,t,r,n){let o,i;if(this.view=e,this.pos=t,this.event=r,this.flushed=n,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[ri],this.allowDefault=r.shiftKey,t.inside>-1)o=e.state.doc.nodeAt(t.inside),i=t.inside;else{let r=e.state.doc.resolve(t.pos);o=r.parent,i=r.depth?r.before():0}const a=n?null:r.target,s=a?e.docView.nearestDesc(a,!0):null;this.target=s?s.dom:null;let{selection:l}=e.state;(0==r.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||l instanceof xn&&l.from<=i&&l.to>i)&&(this.mightDrag={node:o,pos:i,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!to||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Bo(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((()=>ho(this.view))),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Lo(e))),this.updateAllowDefault(e),this.allowDefault||!t?Bo(this.view,"pointer"):Ko(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||io&&this.mightDrag&&!this.mightDrag.node.isAtom||no&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Jo(this.view,bn.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):Bo(this.view,"pointer")}move(e){this.updateAllowDefault(e),Bo(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function oi(e,t){return!!e.composing||!!(io&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}Go.touchstart=e=>{e.input.lastTouch=Date.now(),ti(e),Bo(e,"pointer")},Go.touchmove=e=>{e.input.lastTouch=Date.now(),Bo(e,"pointer")},Go.contextmenu=e=>ti(e);const ii=co?5e3:-1;function ai(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout((()=>li(e)),t))}function si(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=function(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function li(e,t=!1){if(!(co&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),si(e),t||e.docView&&e.docView.dirty){let t=uo(e);return t&&!t.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(t)):e.updateState(e.state),!0}return!1}}Do.compositionstart=Do.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,r=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!r.textOffset&&r.parentOffset&&r.nodeBefore.marks.some((e=>!1===e.type.spec.inclusive))))e.markCursor=e.state.storedMarks||r.marks(),li(e,!0),e.markCursor=null;else if(li(e),to&&t.selection.empty&&r.parentOffset&&!r.textOffset&&r.nodeBefore.marks.length){let t=e.domSelectionRange();for(let r=t.focusNode,n=t.focusOffset;r&&1==r.nodeType&&0!=n;){let t=n<0?r.lastChild:r.childNodes[n-1];if(!t)break;if(3==t.nodeType){e.domSelection().collapse(t,t.nodeValue.length);break}r=t,n=-1}}e.input.composing=!0}ai(e,ii)},Do.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionPendingChanges&&Promise.resolve().then((()=>e.domObserver.flush())),e.input.compositionID++,ai(e,20))};const ci=Hn&&eo<15||ao&&po<604;function Oi(e,t,r,n,o){let i=_o(e,t,r,n,e.state.selection.$from);if(e.someProp("handlePaste",(t=>t(e,o,i||mr.empty))))return!0;if(!i)return!1;let a=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(i),s=a?e.state.tr.replaceSelectionWith(a,n):e.state.tr.replaceSelection(i);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function pi(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let r=e.getData("text/uri-list");return r?r.replace(/\r?\n/g," "):""}Go.copy=Do.cut=(e,t)=>{let r=t,n=e.state.selection,o="cut"==r.type;if(n.empty)return;let i=ci?null:r.clipboardData,a=n.content(),{dom:s,text:l}=Yo(e,a);i?(r.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",l)):function(e,t){if(!e.dom.parentNode)return;let r=e.dom.parentNode.appendChild(document.createElement("div"));r.appendChild(t),r.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),n.removeAllRanges(),n.addRange(o),setTimeout((()=>{r.parentNode&&r.parentNode.removeChild(r),e.focus()}),50)}(e,s),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},Do.paste=(e,t)=>{let r=t;if(e.composing&&!co)return;let n=ci?null:r.clipboardData,o=e.input.shiftKey&&45!=e.input.lastKeyCode;n&&Oi(e,pi(n),n.getData("text/html"),o,r)?r.preventDefault():function(e,t){if(!e.dom.parentNode)return;let r=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,n=e.dom.parentNode.appendChild(document.createElement(r?"textarea":"div"));r||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus();let o=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout((()=>{e.focus(),n.parentNode&&n.parentNode.removeChild(n),r?Oi(e,n.value,null,o,t):Oi(e,n.textContent,n.innerHTML,o,t)}),50)}(e,r)};class ui{constructor(e,t,r){this.slice=e,this.move=t,this.node=r}}const di=so?"altKey":"ctrlKey";Go.dragstart=(e,t)=>{let r=t,n=e.input.mouseDown;if(n&&n.done(),!r.dataTransfer)return;let o,i=e.state.selection,a=i.empty?null:e.posAtCoords(Lo(r));if(a&&a.pos>=i.from&&a.pos<=(i instanceof xn?i.to-1:i.to));else if(n&&n.mightDrag)o=xn.create(e.state.doc,n.mightDrag.pos);else if(r.target&&1==r.target.nodeType){let t=e.docView.nearestDesc(r.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(o=xn.create(e.state.doc,t.posBefore))}let s=(o||e.state.selection).content(),{dom:l,text:c}=Yo(e,s);r.dataTransfer.clearData(),r.dataTransfer.setData(ci?"Text":"text/html",l.innerHTML),r.dataTransfer.effectAllowed="copyMove",ci||r.dataTransfer.setData("text/plain",c),e.dragging=new ui(s,!r[di],o)},Go.dragend=e=>{let t=e.dragging;window.setTimeout((()=>{e.dragging==t&&(e.dragging=null)}),50)},Do.dragover=Do.dragenter=(e,t)=>t.preventDefault(),Do.drop=(e,t)=>{let r=t,n=e.dragging;if(e.dragging=null,!r.dataTransfer)return;let o=e.posAtCoords(Lo(r));if(!o)return;let i=e.state.doc.resolve(o.pos),a=n&&n.slice;a?e.someProp("transformPasted",(t=>{a=t(a,e)})):a=_o(e,pi(r.dataTransfer),ci?null:r.dataTransfer.getData("text/html"),!1,i);let s=!(!n||r[di]);if(e.someProp("handleDrop",(t=>t(e,r,a||mr.empty,s))))return void r.preventDefault();if(!a)return;r.preventDefault();let l=a?nn(e.state.doc,i.pos,a):i.pos;null==l&&(l=i.pos);let c=e.state.tr;if(s){let{node:e}=n;e?e.replace(c):c.deleteSelection()}let O=c.mapping.map(l),p=0==a.openStart&&0==a.openEnd&&1==a.content.childCount,u=c.doc;if(p?c.replaceRangeWith(O,O,a.content.firstChild):c.replaceRange(O,O,a),c.doc.eq(u))return;let d=c.doc.resolve(O);if(p&&xn.isSelectable(a.content.firstChild)&&d.nodeAfter&&d.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new xn(d));else{let t=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach(((e,r,n,o)=>t=o)),c.setSelection(Qo(e,d,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))},Go.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&ho(e)}),20))},Go.blur=(e,t)=>{let r=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),r.relatedTarget&&e.dom.contains(r.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},Go.beforeinput=(e,t)=>{if(no&&co&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout((()=>{if(e.input.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",(t=>t(e,Gn(8,"Backspace")))))return;let{$cursor:r}=e.state.selection;r&&r.pos>0&&e.dispatch(e.state.tr.delete(r.pos-1,r.pos).scrollIntoView())}),50)}};for(let e in Do)Go[e]=Do[e];function fi(e,t){if(e==t)return!0;for(let r in e)if(e[r]!==t[r])return!1;for(let r in t)if(!(r in e))return!1;return!0}class hi{constructor(e,t){this.toDOM=e,this.spec=t||bi,this.side=this.spec.side||0}map(e,t,r,n){let{pos:o,deleted:i}=e.mapResult(t.from+n,this.side<0?-1:1);return i?null:new yi(o-r,o-r,this)}valid(){return!0}eq(e){return this==e||e instanceof hi&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&fi(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class mi{constructor(e,t){this.attrs=e,this.spec=t||bi}map(e,t,r,n){let o=e.map(t.from+n,this.spec.inclusiveStart?-1:1)-r,i=e.map(t.to+n,this.spec.inclusiveEnd?1:-1)-r;return o>=i?null:new yi(o,i,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof mi&&fi(this.attrs,e.attrs)&&fi(this.spec,e.spec)}static is(e){return e.type instanceof mi}destroy(){}}class gi{constructor(e,t){this.attrs=e,this.spec=t||bi}map(e,t,r,n){let o=e.mapResult(t.from+n,1);if(o.deleted)return null;let i=e.mapResult(t.to+n,-1);return i.deleted||i.pos<=o.pos?null:new yi(o.pos-r,i.pos-r,this)}valid(e,t){let r,{index:n,offset:o}=e.content.findIndex(t.from);return o==t.from&&!(r=e.child(n)).isText&&o+r.nodeSize==t.to}eq(e){return this==e||e instanceof gi&&fi(this.attrs,e.attrs)&&fi(this.spec,e.spec)}destroy(){}}class yi{constructor(e,t,r){this.from=e,this.to=t,this.type=r}copy(e,t){return new yi(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,r){return this.type.map(e,this,t,r)}static widget(e,t,r){return new yi(e,e,new hi(t,r))}static inline(e,t,r,n){return new yi(e,t,new mi(r,n))}static node(e,t,r,n){return new yi(e,t,new gi(r,n))}get spec(){return this.type.spec}get inline(){return this.type instanceof mi}get widget(){return this.type instanceof hi}}const Si=[],bi={};class Qi{constructor(e,t){this.local=e.length?e:Si,this.children=t.length?t:Si}static create(e,t){return t.length?ki(t,e,0,bi):wi}find(e,t,r){let n=[];return this.findInner(null==e?0:e,null==t?1e9:t,n,0,r),n}findInner(e,t,r,n,o){for(let i=0;i<this.local.length;i++){let a=this.local[i];a.from<=t&&a.to>=e&&(!o||o(a.spec))&&r.push(a.copy(a.from+n,a.to+n))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<t&&this.children[i+1]>e){let a=this.children[i]+1;this.children[i+2].findInner(e-a,t-a,r,n+a,o)}}map(e,t,r){return this==wi||0==e.maps.length?this:this.mapInner(e,t,0,0,r||bi)}mapInner(e,t,r,n,o){let i;for(let a=0;a<this.local.length;a++){let s=this.local[a].map(e,r,n);s&&s.type.valid(t,s)?(i||(i=[])).push(s):o.onRemove&&o.onRemove(this.local[a].spec)}return this.children.length?function(e,t,r,n,o,i,a){let s=e.slice();for(let e=0,t=i;e<r.maps.length;e++){let n=0;r.maps[e].forEach(((e,r,o,i)=>{let a=i-o-(r-e);for(let o=0;o<s.length;o+=3){let i=s[o+1];if(i<0||e>i+t-n)continue;let l=s[o]+t-n;r>=l?s[o+1]=e<=l?-2:-1:e>=t&&a&&(s[o]+=a,s[o+1]+=a)}n+=a})),t=r.maps[e].map(t,-1)}let l=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(-2==s[t+1]){l=!0,s[t+1]=-1;continue}let c=r.map(e[t]+i),O=c-o;if(O<0||O>=n.content.size){l=!0;continue}let p=r.map(e[t+1]+i,-1)-o,{index:u,offset:d}=n.content.findIndex(O),f=n.maybeChild(u);if(f&&d==O&&d+f.nodeSize==p){let n=s[t+2].mapInner(r,f,c+1,e[t]+i+1,a);n!=wi?(s[t]=O,s[t+1]=p,s[t+2]=n):(s[t+1]=-2,l=!0)}else l=!0}if(l){let l=function(e,t,r,n,o,i,a){function s(e,t){for(let i=0;i<e.local.length;i++){let s=e.local[i].map(n,o,t);s?r.push(s):a.onRemove&&a.onRemove(e.local[i].spec)}for(let r=0;r<e.children.length;r+=3)s(e.children[r+2],e.children[r]+t+1)}for(let r=0;r<e.length;r+=3)-1==e[r+1]&&s(e[r+2],t[r]+i+1);return r}(s,e,t,r,o,i,a),c=ki(l,n,0,a);t=c.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let r=c.children[e];for(;t<s.length&&s[t]<r;)t+=3;s.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new Qi(t.sort(Zi),s)}(this.children,i||[],e,t,r,n,o):i?new Qi(i.sort(Zi),Si):wi}add(e,t){return t.length?this==wi?Qi.create(e,t):this.addInner(e,t,0):this}addInner(e,t,r){let n,o=0;e.forEach(((e,i)=>{let a,s=i+r;if(a=vi(t,e,s)){for(n||(n=this.children.slice());o<n.length&&n[o]<i;)o+=3;n[o]==i?n[o+2]=n[o+2].addInner(e,a,s+1):n.splice(o,0,i,i+e.nodeSize,ki(a,e,s+1,bi)),o+=3}}));let i=Pi(o?xi(t):t,-r);for(let t=0;t<i.length;t++)i[t].type.valid(e,i[t])||i.splice(t--,1);return new Qi(i.length?this.local.concat(i).sort(Zi):this.local,n||this.children)}remove(e){return 0==e.length||this==wi?this:this.removeInner(e,0)}removeInner(e,t){let r=this.children,n=this.local;for(let n=0;n<r.length;n+=3){let o,i=r[n]+t,a=r[n+1]+t;for(let t,r=0;r<e.length;r++)(t=e[r])&&t.from>i&&t.to<a&&(e[r]=null,(o||(o=[])).push(t));if(!o)continue;r==this.children&&(r=this.children.slice());let s=r[n+2].removeInner(o,i+1);s!=wi?r[n+2]=s:(r.splice(n,3),n-=3)}if(n.length)for(let r,o=0;o<e.length;o++)if(r=e[o])for(let e=0;e<n.length;e++)n[e].eq(r,t)&&(n==this.local&&(n=this.local.slice()),n.splice(e--,1));return r==this.children&&n==this.local?this:n.length||r.length?new Qi(n,r):wi}forChild(e,t){if(this==wi)return this;if(t.isLeaf)return Qi.empty;let r,n;for(let t=0;t<this.children.length;t+=3)if(this.children[t]>=e){this.children[t]==e&&(r=this.children[t+2]);break}let o=e+1,i=o+t.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<i&&t.to>o&&t.type instanceof mi){let e=Math.max(o,t.from)-o,r=Math.min(i,t.to)-o;e<r&&(n||(n=[])).push(t.copy(e,r))}}if(n){let e=new Qi(n.sort(Zi),Si);return r?new $i([e,r]):e}return r||wi}eq(e){if(this==e)return!0;if(!(e instanceof Qi)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return Ti(this.localsInner(e))}localsInner(e){if(this==wi)return Si;if(e.inlineContent||!this.local.some(mi.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof mi||t.push(this.local[e]);return t}}Qi.empty=new Qi([],[]),Qi.removeOverlap=Ti;const wi=Qi.empty;class $i{constructor(e){this.members=e}map(e,t){const r=this.members.map((r=>r.map(e,t,bi)));return $i.from(r)}forChild(e,t){if(t.isLeaf)return Qi.empty;let r=[];for(let n=0;n<this.members.length;n++){let o=this.members[n].forChild(e,t);o!=wi&&(o instanceof $i?r=r.concat(o.members):r.push(o))}return $i.from(r)}eq(e){if(!(e instanceof $i)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,r=!0;for(let n=0;n<this.members.length;n++){let o=this.members[n].localsInner(e);if(o.length)if(t){r&&(t=t.slice(),r=!1);for(let e=0;e<o.length;e++)t.push(o[e])}else t=o}return t?Ti(r?t:t.sort(Zi)):Si}static from(e){switch(e.length){case 0:return wi;case 1:return e[0];default:return new $i(e.every((e=>e instanceof Qi))?e:e.reduce(((e,t)=>e.concat(t instanceof Qi?t:t.members)),[]))}}}function Pi(e,t){if(!t||!e.length)return e;let r=[];for(let n=0;n<e.length;n++){let o=e[n];r.push(new yi(o.from+t,o.to+t,o.type))}return r}function vi(e,t,r){if(t.isLeaf)return null;let n=r+t.nodeSize,o=null;for(let t,i=0;i<e.length;i++)(t=e[i])&&t.from>r&&t.to<n&&((o||(o=[])).push(t),e[i]=null);return o}function xi(e){let t=[];for(let r=0;r<e.length;r++)null!=e[r]&&t.push(e[r]);return t}function ki(e,t,r,n){let o=[],i=!1;t.forEach(((t,a)=>{let s=vi(e,t,a+r);if(s){i=!0;let e=ki(s,t,r+a+1,n);e!=wi&&o.push(a,a+t.nodeSize,e)}}));let a=Pi(i?xi(e):e,-r).sort(Zi);for(let e=0;e<a.length;e++)a[e].type.valid(t,a[e])||(n.onRemove&&n.onRemove(a[e].spec),a.splice(e--,1));return a.length||o.length?new Qi(a,o):wi}function Zi(e,t){return e.from-t.from||e.to-t.to}function Ti(e){let t=e;for(let r=0;r<t.length-1;r++){let n=t[r];if(n.from!=n.to)for(let o=r+1;o<t.length;o++){let i=t[o];if(i.from!=n.from){i.from<n.to&&(t==e&&(t=e.slice()),t[r]=n.copy(n.from,i.from),Ri(t,o,n.copy(i.from,n.to)));break}i.to!=n.to&&(t==e&&(t=e.slice()),t[o]=i.copy(i.from,n.to),Ri(t,o+1,i.copy(n.to,i.to)))}}return t}function Ri(e,t,r){for(;t<e.length&&Zi(r,e[t])>0;)t++;e.splice(t,0,r)}var Xi=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.toggle-blockquote.description",message:"Add blockquote formatting to the selected text",comment:"Description for blockquote formatting command."},LABEL:{id:"extension.command.toggle-blockquote.label",message:"Blockquote",comment:"Label for blockquote formatting command."}});var Ei=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.insert-horizontal-rule.description",message:"Separate content with a diving horizontal line",comment:"Description for inserting a horizontal rule (divider) command."},LABEL:{id:"extension.command.insert-horizontal-rule.label",message:"Divider",comment:"Label for inserting a horizontal rule (divider) command."}});var Ci=Object.freeze({__proto__:null,CONVERT_DESCRIPTION:{id:"extension.command.convert-paragraph.description",message:"Convert current block into a paragraph block.",comment:"Description for converting a paragraph."},CONVERT_LABEL:{id:"extension.command.convert-paragraph.label",message:"Convert Paragraph",comment:"Label for converting the current node into a paragraph."},INSERT_DESCRIPTION:{id:"extension.command.insert-paragraph.description",message:"Insert a new paragraph",comment:"Description for inserting a paragraph."},INSERT_LABEL:{id:"extension.command.insert-paragraph.label",message:"Insert Paragraph",comment:"Label for inserting a paragraph."}});class ji{constructor(e,t,r={}){var n;this.match=e,this.match=e,this.handler="string"==typeof t?(n=t,function(e,t,r,o){let i=n;if(t[1]){let e=t[0].lastIndexOf(t[1]);i+=t[0].slice(e+t[1].length);let n=(r+=e)-o;n>0&&(i=t[0].slice(e-n,e)+i,r=o)}return e.tr.insertText(i,r,o)}):t,this.undoable=!1!==r.undoable,this.inCode=r.inCode||!1}}function Yi(e,t,r=null,n){return new ji(e,((e,o,i,a)=>{let s=r instanceof Function?r(o):r,l=e.tr.delete(i,a),c=l.doc.resolve(i).blockRange(),O=c&&function(e,t,r=null,n=e){let o=function(e,t){let{parent:r,startIndex:n,endIndex:o}=e,i=r.contentMatchAt(n).findWrapping(t);if(!i)return null;let a=i.length?i[0]:t;return r.canReplaceWith(n,o,a)?i:null}(e,t),i=o&&function(e,t){let{parent:r,startIndex:n,endIndex:o}=e,i=r.child(n),a=t.contentMatch.findWrapping(i.type);if(!a)return null;let s=(a.length?a[a.length-1]:t).contentMatch;for(let e=n;s&&e<o;e++)s=s.matchType(r.child(e).type);return s&&s.validEnd?a:null}(n,t);return i?o.map(Hr).concat({type:t,attrs:r}).concat(i.map(Hr)):null}(c,t,s);if(!O)return null;l.wrap(c,O);let p=l.doc.resolve(i-1).nodeBefore;return p&&p.type==t&&tn(l.doc,i-1)&&(!n||n(o,p))&&l.join(i-1),l}))}new ji(/--$/,"—"),new ji(/\.\.\.$/,"…"),new ji(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),new ji(/"$/,"”"),new ji(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),new ji(/'$/,"’");var _i=Object.defineProperty,Ai=Object.getOwnPropertyDescriptor,Wi=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?Ai(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&_i(t,r,i),i},Vi=class extends T{get name(){return"blockquote"}createTags(){return[R.Block,R.FormattingNode]}createNodeSpec(e,t){return{content:"block+",defining:!0,draggable:!1,...t,attrs:e.defaults(),parseDOM:[{tag:"blockquote",getAttrs:e.parse,priority:100},...t.parseDOM??[]],toDOM:t=>["blockquote",e.dom(t),0]}}toggleBlockquote(){return X(this.type)}shortcut(e){return this.toggleBlockquote()(e)}createInputRules(){return[Yi(/^\s*>\s$/,this.type)]}createPasteRules(){return{type:"node",nodeType:this.type,regexp:/^\s*>\s$/,startOfTextBlock:!0}}};Wi([E({icon:"doubleQuotesL",description:({t:e})=>e(Xi.DESCRIPTION),label:({t:e})=>e(Xi.LABEL)})],Vi.prototype,"toggleBlockquote",1),Wi([C({shortcut:"Ctrl->",command:"toggleBlockquote"})],Vi.prototype,"shortcut",1);for(var qi={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Ii={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},zi=("undefined"!=typeof navigator&&/Mac/.test(navigator.platform),"undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),0);zi<10;zi++)qi[48+zi]=qi[96+zi]=String(zi);for(zi=1;zi<=24;zi++)qi[zi+111]="F"+zi;for(zi=65;zi<=90;zi++)qi[zi]=String.fromCharCode(zi+32),Ii[zi]=String.fromCharCode(zi);for(var Ni in qi)Ii.hasOwnProperty(Ni)||(Ii[Ni]=qi[Ni]);const Mi="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function Ui(e){let t,r,n,o,i=e.split(/-(?!$)/),a=i[i.length-1];"Space"==a&&(a=" ");for(let e=0;e<i.length-1;e++){let a=i[e];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))t=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))n=!0;else{if(!/^mod$/i.test(a))throw new Error("Unrecognized modifier name: "+a);Mi?o=!0:r=!0}}return t&&(a="Alt-"+a),r&&(a="Ctrl-"+a),o&&(a="Meta-"+a),n&&(a="Shift-"+a),a}const Gi=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function Di(e,t,r=!1){for(let n=e;n;n="start"==t?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&1!=n.childCount)return!1}return!1}function Bi(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function Li(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let r=e.node(t);if(e.index(t)+1<r.childCount)return e.doc.resolve(e.after(t+1));if(r.type.spec.isolating)break}return null}function Fi(e){for(let t=0;t<e.edgeCount;t++){let{type:r}=e.edge(t);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}const Ji=(e,t)=>{let{$head:r,$anchor:n}=e.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let o=r.node(-1),i=r.indexAfter(-1),a=Fi(o.contentMatchAt(i));if(!a||!o.canReplaceWith(i,i,a))return!1;if(t){let n=r.after(),o=e.tr.replaceWith(n,n,a.createAndFill());o.setSelection(bn.near(o.doc.resolve(n),1)),t(o.scrollIntoView())}return!0};const Ki=(e,t)=>{let{$from:r,$to:n}=e.selection;if(e.selection instanceof xn&&e.selection.node.isBlock)return!(!r.parentOffset||!en(e.doc,r.pos)||(t&&t(e.tr.split(r.pos).scrollIntoView()),0));if(!r.parent.isBlock)return!1;if(t){let o=n.parentOffset==n.parent.content.size,i=e.tr;(e.selection instanceof Pn||e.selection instanceof Zn)&&i.deleteSelection();let a=0==r.depth?null:Fi(r.node(-1).contentMatchAt(r.indexAfter(-1))),s=Hi&&Hi(n.parent,o),l=s?[s]:o&&a?[{type:a}]:void 0,c=en(i.doc,i.mapping.map(r.pos),1,l);if(l||c||!en(i.doc,i.mapping.map(r.pos),1,a?[{type:a}]:void 0)||(a&&(l=[{type:a}]),c=!0),c&&(i.split(i.mapping.map(r.pos),1,l),!o&&!r.parentOffset&&r.parent.type!=a)){let e=i.mapping.map(r.before()),t=i.doc.resolve(e);a&&r.node(-1).canReplaceWith(t.index(),t.index()+1,a)&&i.setNodeMarkup(i.mapping.map(r.before()),a)}t(i.scrollIntoView())}return!0};var Hi;function ea(e,t,r){let n,o,i=t.nodeBefore,a=t.nodeAfter;if(i.type.spec.isolating||a.type.spec.isolating)return!1;if(function(e,t,r){let n=t.nodeBefore,o=t.nodeAfter,i=t.index();return!(!(n&&o&&n.type.compatibleContent(o.type))||(!n.content.size&&t.parent.canReplace(i-1,i)?(r&&r(e.tr.delete(t.pos-n.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(i,i+1)||!o.isTextblock&&!tn(e.doc,t.pos)||(r&&r(e.tr.clearIncompatible(t.pos,n.type,n.contentMatchAt(n.childCount)).join(t.pos).scrollIntoView()),0)))}(e,t,r))return!0;let s=t.parent.canReplace(t.index(),t.index()+1);if(s&&(n=(o=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&o.matchType(n[0]||a.type).validEnd){if(r){let o=t.pos+a.nodeSize,s=Or.empty;for(let e=n.length-1;e>=0;e--)s=Or.from(n[e].create(null,s));s=Or.from(i.copy(s));let l=e.tr.step(new Lr(t.pos-1,o,t.pos,o,new mr(s,1,0),n.length,!0)),c=o+2*n.length;tn(l.doc,c)&&l.join(c),r(l.scrollIntoView())}return!0}let l=bn.findFrom(t,1),c=l&&l.$from.blockRange(l.$to),O=c&&Kr(c);if(null!=O&&O>=t.depth)return r&&r(e.tr.lift(c,O).scrollIntoView()),!0;if(s&&Di(a,"start",!0)&&Di(i,"end")){let n=i,o=[];for(;o.push(n),!n.isTextblock;)n=n.lastChild;let s=a,l=1;for(;!s.isTextblock;s=s.firstChild)l++;if(n.canReplace(n.childCount,n.childCount,s.content)){if(r){let n=Or.empty;for(let e=o.length-1;e>=0;e--)n=Or.from(o[e].copy(n));r(e.tr.step(new Lr(t.pos-o.length,t.pos+a.nodeSize,t.pos+l,t.pos+a.nodeSize-l,new mr(n,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function ta(e){return function(t,r){let n=t.selection,o=e<0?n.$from:n.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return!!o.node(i).isTextblock&&(r&&r(t.tr.setSelection(Pn.create(t.doc,e<0?o.start(i):o.end(i)))),!0)}}const ra=ta(-1),na=ta(1);function oa(...e){return function(t,r,n){for(let o=0;o<e.length;o++)if(e[o](t,r,n))return!0;return!1}}let ia=oa(Gi,((e,t,r)=>{let n=function(e,t){let{$cursor:r}=e.selection;return!r||(t?!t.endOfTextblock("backward",e):r.parentOffset>0)?null:r}(e,r);if(!n)return!1;let o=Bi(n);if(!o){let r=n.blockRange(),o=r&&Kr(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)}let i=o.nodeBefore;if(!i.type.spec.isolating&&ea(e,o,t))return!0;if(0==n.parent.content.size&&(Di(i,"end")||xn.isSelectable(i))){let r=on(e.doc,n.before(),n.after(),mr.empty);if(r&&r.slice.size<r.to-r.from){if(t){let n=e.tr.step(r);n.setSelection(Di(i,"end")?bn.findFrom(n.doc.resolve(n.mapping.map(o.pos,-1)),-1):xn.create(n.doc,o.pos-i.nodeSize)),t(n.scrollIntoView())}return!0}}return!(!i.isAtom||o.depth!=n.depth-1)&&(t&&t(e.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0)}),((e,t,r)=>{let{$head:n,empty:o}=e.selection,i=n;if(!o)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):n.parentOffset>0)return!1;i=Bi(n)}let a=i&&i.nodeBefore;return!(!a||!xn.isSelectable(a))&&(t&&t(e.tr.setSelection(xn.create(e.doc,i.pos-a.nodeSize)).scrollIntoView()),!0)})),aa=oa(Gi,((e,t,r)=>{let n=function(e,t){let{$cursor:r}=e.selection;return!r||(t?!t.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)?null:r}(e,r);if(!n)return!1;let o=Li(n);if(!o)return!1;let i=o.nodeAfter;if(ea(e,o,t))return!0;if(0==n.parent.content.size&&(Di(i,"start")||xn.isSelectable(i))){let r=on(e.doc,n.before(),n.after(),mr.empty);if(r&&r.slice.size<r.to-r.from){if(t){let n=e.tr.step(r);n.setSelection(Di(i,"start")?bn.findFrom(n.doc.resolve(n.mapping.map(o.pos)),1):xn.create(n.doc,n.mapping.map(o.pos))),t(n.scrollIntoView())}return!0}}return!(!i.isAtom||o.depth!=n.depth-1)&&(t&&t(e.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0)}),((e,t,r)=>{let{$head:n,empty:o}=e.selection,i=n;if(!o)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)return!1;i=Li(n)}let a=i&&i.nodeAfter;return!(!a||!xn.isSelectable(a))&&(t&&t(e.tr.setSelection(xn.create(e.doc,i.pos)).scrollIntoView()),!0)}));const sa={Enter:oa(((e,t)=>{let{$head:r,$anchor:n}=e.selection;return!(!r.parent.type.spec.code||!r.sameParent(n))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)}),((e,t)=>{let r=e.selection,{$from:n,$to:o}=r;if(r instanceof Zn||n.parent.inlineContent||o.parent.inlineContent)return!1;let i=Fi(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){let r=(!n.parentOffset&&o.index()<o.parent.childCount?n:o).pos,a=e.tr.insert(r,i.createAndFill());a.setSelection(Pn.create(a.doc,r+1)),t(a.scrollIntoView())}return!0}),((e,t)=>{let{$cursor:r}=e.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let n=r.before();if(en(e.doc,n))return t&&t(e.tr.split(n).scrollIntoView()),!0}let n=r.blockRange(),o=n&&Kr(n);return null!=o&&(t&&t(e.tr.lift(n,o).scrollIntoView()),!0)}),Ki),"Mod-Enter":Ji,Backspace:ia,"Mod-Backspace":ia,"Shift-Backspace":ia,Delete:aa,"Mod-Delete":aa,"Mod-a":(e,t)=>(t&&t(e.tr.setSelection(new Zn(e.doc))),!0)},la={"Ctrl-h":sa.Backspace,"Alt-Backspace":sa["Mod-Backspace"],"Ctrl-d":sa.Delete,"Ctrl-Alt-Backspace":sa["Mod-Delete"],"Alt-Delete":sa["Mod-Delete"],"Alt-d":sa["Mod-Delete"],"Ctrl-a":ra,"Ctrl-e":na};for(let e in sa)la[e]=sa[e];const ca=("undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!("undefined"==typeof os||!os.platform)&&"darwin"==os.platform())?la:sa;var Oa=Object.defineProperty,pa=Object.getOwnPropertyDescriptor,ua=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?pa(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Oa(t,r,i),i},da=class extends T{get name(){return"doc"}createNodeSpec(e,t){const{docAttributes:r,content:n}=this.options,o=j();if(Y(r))for(const[e,t]of _(r))o[e]={default:t};else for(const e of r)o[e]={default:null};return{attrs:o,content:n,...t}}setDocAttributes(e){return({tr:t,dispatch:r})=>{if(r){for(const[r,n]of Object.entries(e))t.step(new ma(r,n));r(t)}return!0}}isDefaultDocNode({state:e=this.store.getState(),options:t}={}){return A(e.doc,t)}};ua([E()],da.prototype,"setDocAttributes",1),ua([W()],da.prototype,"isDefaultDocNode",1),da=ua([V({defaultOptions:{content:"block+",docAttributes:[]},defaultPriority:q.Medium,staticKeys:["content","docAttributes"],disableExtraAttributes:!0})],da);var fa="SetDocAttribute",ha="RevertSetDocAttribute",ma=class extends Ir{constructor(e,t,r=fa){super(),this.stepType=r,this.key=e,this.value=t}static fromJSON(e,t){return new ma(t.key,t.value,t.stepType)}apply(e){this.previous=e.attrs[this.key];const t={...e.attrs,[this.key]:this.value};return zr.ok(e.type.create(t,e.content,e.marks))}invert(){return new ma(this.key,this.previous,ha)}map(){return this}toJSON(){return{stepType:this.stepType,key:this.key,value:this.value}}};try{Ir.jsonID(fa,ma),Ir.jsonID(ha,ma)}catch(e){if(!e.message.startsWith("Duplicate use of step JSON ID"))throw e}function ga(e={}){return new Yn({view:t=>new ya(t,e)})}class ya{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(r=t.width)&&void 0!==r?r:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map((t=>{let r=e=>{this[t](e)};return e.dom.addEventListener(t,r),{name:t,handler:r}}))}destroy(){this.handlers.forEach((({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t)))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t=this.editorView.state.doc.resolve(this.cursorPos),r=!t.parent.inlineContent;if(r){let r=t.nodeBefore,n=t.nodeAfter;if(r||n){let t=this.editorView.nodeDOM(this.cursorPos-(r?r.nodeSize:0));if(t){let o=t.getBoundingClientRect(),i=r?o.bottom:o.top;r&&n&&(i=(i+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:o.left,right:o.right,top:i-this.width/2,bottom:i+this.width/2}}}}if(!e){let t=this.editorView.coordsAtPos(this.cursorPos);e={left:t.left-this.width/2,right:t.left+this.width/2,top:t.top,bottom:t.bottom}}let n,o,i=this.editorView.dom.offsetParent;if(this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r),!i||i==document.body&&"static"==getComputedStyle(i).position)n=-pageXOffset,o=-pageYOffset;else{let e=i.getBoundingClientRect();n=e.left-i.scrollLeft,o=e.top-i.scrollTop}this.element.style.left=e.left-n+"px",this.element.style.top=e.top-o+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout((()=>this.setCursor(null)),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),n=r&&r.type.spec.disableDropCursor,o="function"==typeof n?n(this.editorView,t,e):n;if(t&&!o){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=nn(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}var Sa=Object.defineProperty,ba=Object.getOwnPropertyDescriptor,Qa=class extends I{get name(){return"dropCursor"}createExternalPlugins(){const{color:e,width:t}=this.options;return[ga({color:e,width:t})]}};Qa=((e,t,r,n)=>{for(var o,i=n>1?void 0:n?ba(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Sa(t,r,i),i})([V({defaultOptions:{color:"black",width:1}})],Qa);var wa=Object.prototype.hasOwnProperty;function $a(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function Pa(e){try{return encodeURIComponent(e)}catch(e){return null}}var va=function(e,t){t=t||"";var r,n,o=[];for(n in"string"!=typeof t&&(t="?"),e)if(wa.call(e,n)){if((r=e[n])||null!=r&&!isNaN(r)||(r=""),n=Pa(n),r=Pa(r),null===n||null===r)continue;o.push(n+"="+r)}return o.length?t+o.join("&"):""},xa=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var o=$a(t[1]),i=$a(t[2]);null===o||null===i||o in n||(n[o]=i)}return n},ka={exports:{}};!function(e,t){var r="undefined"!=typeof Reflect?Reflect.construct:void 0,n=Object.defineProperty,o=Error.captureStackTrace;function i(e){void 0!==e&&n(this,"message",{configurable:!0,value:e,writable:!0});var t=this.constructor.name;void 0!==t&&t!==this.name&&n(this,"name",{configurable:!0,value:t,writable:!0}),o(this,this.constructor)}void 0===o&&(o=function(e){var t=new Error;n(e,"stack",{configurable:!0,get:function(){var e=t.stack;return n(this,"stack",{configurable:!0,value:e,writable:!0}),e},set:function(t){n(e,"stack",{configurable:!0,value:t,writable:!0})}})}),i.prototype=Object.create(Error.prototype,{constructor:{configurable:!0,value:i,writable:!0}});var a=function(){function e(e,t){return n(e,"name",{configurable:!0,value:t})}try{var t=function(){};if(e(t,"foo"),"foo"===t.name)return e}catch(e){}}();t=e.exports=function(e,t){if(null==t||t===Error)t=i;else if("function"!=typeof t)throw new TypeError("super_ should be a function");var n;if("string"==typeof e)n=e,e=void 0!==r?function(){return r(t,arguments,this.constructor)}:function(){t.apply(this,arguments)},void 0!==a&&(a(e,n),n=void 0);else if("function"!=typeof e)throw new TypeError("constructor should be either a string or a function");e.super_=e.super=t;var o={constructor:{configurable:!0,value:e,writable:!0}};return void 0!==n&&(o.name={configurable:!0,value:n,writable:!0}),e.prototype=Object.create(t.prototype,o),e},t.BaseError=i}(ka,ka.exports);var Za=(e=>(e.PROD="RMR0000",e.UNKNOWN="RMR0001",e.INVALID_COMMAND_ARGUMENTS="RMR0002",e.CUSTOM="RMR0003",e.CORE_HELPERS="RMR0004",e.MUTATION="RMR0005",e.INTERNAL="RMR0006",e.MISSING_REQUIRED_EXTENSION="RMR0007",e.MANAGER_PHASE_ERROR="RMR0008",e.INVALID_GET_EXTENSION="RMR0010",e.INVALID_MANAGER_ARGUMENTS="RMR0011",e.SCHEMA="RMR0012",e.HELPERS_CALLED_IN_OUTER_SCOPE="RMR0013",e.INVALID_MANAGER_EXTENSION="RMR0014",e.DUPLICATE_COMMAND_NAMES="RMR0016",e.DUPLICATE_HELPER_NAMES="RMR0017",e.NON_CHAINABLE_COMMAND="RMR0018",e.INVALID_EXTENSION="RMR0019",e.INVALID_CONTENT="RMR0021",e.INVALID_NAME="RMR0050",e.EXTENSION="RMR0100",e.EXTENSION_SPEC="RMR0101",e.EXTENSION_EXTRA_ATTRIBUTES="RMR0102",e.INVALID_SET_EXTENSION_OPTIONS="RMR0103",e.REACT_PROVIDER_CONTEXT="RMR0200",e.REACT_GET_ROOT_PROPS="RMR0201",e.REACT_EDITOR_VIEW="RMR0202",e.REACT_CONTROLLED="RMR0203",e.REACT_NODE_VIEW="RMR0204",e.REACT_GET_CONTEXT="RMR0205",e.REACT_COMPONENTS="RMR0206",e.REACT_HOOKS="RMR0207",e.I18N_CONTEXT="RMR0300",e))(Za||{});Za.UNKNOWN,Za.INVALID_COMMAND_ARGUMENTS,Za.CUSTOM,Za.CORE_HELPERS,Za.MUTATION,Za.INTERNAL,Za.MISSING_REQUIRED_EXTENSION,Za.MANAGER_PHASE_ERROR,Za.INVALID_GET_EXTENSION,Za.INVALID_MANAGER_ARGUMENTS,Za.SCHEMA,Za.HELPERS_CALLED_IN_OUTER_SCOPE,Za.INVALID_MANAGER_EXTENSION,Za.DUPLICATE_COMMAND_NAMES,Za.DUPLICATE_HELPER_NAMES,Za.NON_CHAINABLE_COMMAND,Za.INVALID_EXTENSION,Za.INVALID_CONTENT,Za.INVALID_NAME,Za.EXTENSION,Za.EXTENSION_SPEC,Za.EXTENSION_EXTRA_ATTRIBUTES,Za.INVALID_SET_EXTENSION_OPTIONS,Za.REACT_PROVIDER_CONTEXT,Za.REACT_GET_ROOT_PROPS,Za.REACT_EDITOR_VIEW,Za.REACT_CONTROLLED,Za.REACT_NODE_VIEW,Za.REACT_GET_CONTEXT,Za.REACT_COMPONENTS,Za.REACT_HOOKS,Za.I18N_CONTEXT;var Ta=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,Xa=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?Ra(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Ta(t,r,i),i},Ea={icon:"separator",label:({t:e})=>e(Ei.LABEL),description:({t:e})=>e(Ei.DESCRIPTION)},Ca=class extends T{get name(){return"horizontalRule"}createTags(){return[R.Block]}createNodeSpec(e,t){return{...t,attrs:e.defaults(),parseDOM:[{tag:"hr",getAttrs:e.parse},...t.parseDOM??[]],toDOM:t=>["hr",e.dom(t)]}}insertHorizontalRule(){return e=>{const{tr:t,dispatch:r}=e,n=t.selection.$anchor,o=n.parent;if("doc"===o.type.name||o.isAtom||o.isLeaf)return!1;if(!r)return!0;return t.selection.empty&&z(o)&&t.insert(n.pos+1,o),t.replaceSelectionWith(this.type.create()),this.updateFromNodeSelection(t),r(t.scrollIntoView()),!0}}createInputRules(){return[N({regexp:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type,beforeDispatch:({tr:e})=>{this.updateFromNodeSelection(e)}})]}updateFromNodeSelection(e){if(!M(e.selection)||e.selection.node.type.name!==this.name)return;const t=e.selection.$from.pos+1,{insertionNode:r}=this.options;if(!r)return;const n=this.store.schema.nodes[r];U(n,{code:G.EXTENSION,message:`'${r}' node provided as the insertionNode to the '${this.constructorName}' does not exist.`});const o=n.create();e.insert(t,o),e.setSelection(Pn.near(e.doc.resolve(t+1)))}};Xa([E(Ea)],Ca.prototype,"insertHorizontalRule",1),Ca=Xa([V({defaultOptions:{insertionNode:"paragraph"}})],Ca);var ja=Object.defineProperty,Ya=Object.getOwnPropertyDescriptor,_a=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?Ya(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&ja(t,r,i),i},Aa={icon:"paragraph",label:({t:e})=>e(Ci.INSERT_LABEL),description:({t:e})=>e(Ci.INSERT_DESCRIPTION)},Wa={icon:"paragraph",label:({t:e})=>e(Ci.CONVERT_LABEL),description:({t:e})=>e(Ci.CONVERT_DESCRIPTION)},Va=class extends T{get name(){return"paragraph"}createTags(){return[R.LastNodeCompatible,R.TextBlock,R.Block,R.FormattingNode]}createNodeSpec(e,t){return{content:"inline*",draggable:!1,...t,attrs:{...e.defaults()},parseDOM:[{tag:"p",getAttrs:t=>({...e.parse(t)})},...t.parseDOM??[]],toDOM:t=>["p",e.dom(t),0]}}convertParagraph(e={}){const{attrs:t,selection:r,preserveAttrs:n}=e;return this.store.commands.setBlockNodeType.original(this.type,t,r,n)}insertParagraph(e,t={}){const{selection:r,attrs:n}=t;return this.store.commands.insertNode.original(this.type,{content:e,selection:r,attrs:n})}shortcut(e){return this.convertParagraph()(e)}};_a([E(Wa)],Va.prototype,"convertParagraph",1),_a([E(Aa)],Va.prototype,"insertParagraph",1),_a([C({shortcut:D.Paragraph,command:"convertParagraph"})],Va.prototype,"shortcut",1),Va=_a([V({defaultPriority:q.Medium})],Va);var qa=Object.defineProperty,Ia=Object.getOwnPropertyDescriptor,za=class extends T{get name(){return"text"}createTags(){return[R.InlineNode]}createNodeSpec(){return{}}};function Na(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=n.kind,c="getter"===l?"get":"setter"===l?"set":"value",O=!t&&e?n.static?e:e.prototype:null,p=t||(O?Object.getOwnPropertyDescriptor(O,n.name):{}),u=!1,d=r.length-1;d>=0;d--){var f={};for(var h in n)f[h]="access"===h?{}:n[h];for(var h in n.access)f.access[h]=n.access[h];f.addInitializer=function(e){if(u)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var m=(0,r[d])("accessor"===l?{get:p.get,set:p.set}:p[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=a(m.get))&&(p.get=s),(s=a(m.set))&&(p.set=s),(s=a(m.init))&&o.unshift(s)}else(s=a(m))&&("field"===l?o.unshift(s):p[c]=s)}O&&Object.defineProperty(O,n.name,p),u=!0}function Ma(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function Ua(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function Ga(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}za=((e,t,r,n)=>{for(var o,i=n>1?void 0:n?Ia(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&qa(t,r,i),i})([V({disableExtraAttributes:!0,defaultPriority:q.Medium})],za),"function"==typeof SuppressedError&&SuppressedError,Ga.prototype.attrIndex=function(e){var t,r,n;if(!this.attrs)return-1;for(r=0,n=(t=this.attrs).length;r<n;r++)if(t[r][0]===e)return r;return-1},Ga.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Ga.prototype.attrSet=function(e,t){var r=this.attrIndex(e),n=[e,t];r<0?this.attrPush(n):this.attrs[r]=n},Ga.prototype.attrGet=function(e){var t=this.attrIndex(e),r=null;return t>=0&&(r=this.attrs[t][1]),r},Ga.prototype.attrJoin=function(e,t){var r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t};var Da=Ga;function Ba(e){return"paragraph_open"===e.type}function La(e){return"inline"===e.type}const Fa=e=>{let t=!1;const r=e.tokens;for(let e=r.length-3;e>=0;e--)if("list_item_open"===(n=r[e]).type&&["*","-"].includes(n.markup)&&Ba(r[e+1])&&La(r[e+2])){const n=r[e+2],o=/^\[([ |x])\]\s?/.exec(n.content);if(o){const i="x"===o[1];n.content=n.content.slice(o[0].length);const a=new Da("list_checkbox","input",0);a.attrPush(["type","checkbox"]),i&&a.attrPush(["checked",""]),r.splice(e+1,0,a),t=!0}}var n;return t};function Ja(e){e.core.ruler.push("markdown-it-list-checkbox",Fa)}var Ka;function Ha(e){return/^<\/[a-zA-Z0-9]+\s*>$/.test(e)}function es(e){const t=P.parse(e);return t&&1===t.length}!function(e){e[e.text=1]="text",e[e.block=2]="block",e[e.ignore=3]="ignore",e[e.free=4]="free",e[e.context=5]="context",e[e.inline=6]="inline"}(Ka||(Ka={}));const ts=e=>{var t;return(null===(t=P.parse(e)[0])||void 0===t?void 0:t.attrs)||{}};function rs(e){const t=/<\/?([a-zA-Z0-9]+)\b[^>]*>/.exec(e);return t&&t.length>1?t[1].toLowerCase():""}function ns(e){let t="";if(e.attrs){const r=Object.entries(e.attrs).filter((([,e])=>e));r.length&&(t=`${r.map((([e,t])=>`${e}="${t}"`)).join(" ")}`)}return e.voidElement?`<${e.tag} ${t} />`:`<${e.tag} ${t}></${e.tag}>`}const is=["img","iframe"],as=["html_image","iframe_inline"],ss={img:"html_image",iframe:"iframe_inline"};function ls(e){return e.children?e.children.map((e=>{if(cs(e)&&is.includes(e.tag)&&!Ha(e.content)){const t=new Da(ss[e.tag],"",0);return t.content=e.content,t.attrs=ts(e.content),t}{const t=new Da("text","",0);return t.content=e.content,t}})):[]}function cs(e){return"html_inline"===e.type}function Os(e){return"html_block"===e.type}function ps(e){var t;let r=!1;return null===(t=e.children)||void 0===t||t.forEach((e=>{if(cs(e)){const t=rs(e.content);e.tag=t,is.includes(e.tag)&&(r=!0)}})),r}const us=e=>{const t=e.tokens;for(let e=t.length-1;e>=0;e--){const r=t[e];if("inline"===r.type)ps(r)&&t.splice(e,1,...ls(r));else if(Os(r)){const n=rs(r.content);if(es(r.content)&&is.includes(n)){const o=new Da(ss[n],"",0);o.content=r.content,o.attrs=ts(r.content),t.splice(e,1,new Da("paragraph_open","",0),o,new Da("paragraph_close","",0))}}}return!1};function ds(e){e.core.ruler.push("markdown-it-html-inline",us)}class fs extends Error{constructor(e,t){super(`MarkdownIt token type '${e}' not supported. `),this.tokenType=e,this.supportedTokenTypes=t,this.tokenType=e}}class hs{constructor(e,t){this.schema=e,this.stack=[{type:e.topNodeType,content:[]}],this.contextStack=[],this.marks=fr.none,this.tokenHandlers=t}top(){return this.stack[this.stack.length-1]}push(e){this.stack.length&&this.top().content.push(e)}addText(e){if(!e)return;const t=this.top().content,r=t[t.length-1],n=this.schema.text(e,this.marks);let o;r&&(o=this.mergeTextNode(r,n))?t[t.length-1]=o:t.push(n)}mergeTextNode(e,t){if(e.isText&&t.isText&&fr.sameSet(e.marks,t.marks)){const r=(e.text||"")+(t.text||"");return e.type.schema.text(r,e.marks)}}openMark(e){this.marks=e.addToSet(this.marks)}closeMark(e){this.marks=e.removeFromSet(this.marks)}parseTokens(e){for(const t of e){const e=this.tokenHandlers[t.type];if(!e)return;if(!e)throw new fs(t.type,Object.keys(this.tokenHandlers));e(this,t)}}addNode(e,t,r){const n=e.createAndFill(t,r,this.marks);if(!n)throw new Error(`unexpected error: node is empty while creating ${e.name} node`);return this.push(n),n}openNode(e,t){this.stack.push({type:e,attrs:t,content:[]})}closeNode(){this.marks.length&&(this.marks=fr.none);const e=this.stack.pop();if(!e)throw new Error("unexpected error: info is empty");return this.addNode(e.type,e.attrs,e.content)}openContext(e){this.contextStack.push(e)}closeContext(){this.contextStack.pop()}topContext(){return this.contextStack[this.contextStack.length-1]}}function ms(e,t,r){const n=r.nodes[e.node];if(void 0===n)throw new RangeError(`Can't find block type '${e.node}'`);e.hasOpenClose?(t[e.token+"_open"]=(t,r)=>{const o=e.getAttrs?e.getAttrs(r):void 0;t.openNode(n,o)},t[e.token+"_close"]=e=>{e.closeNode()}):t[e.token]=(t,r)=>{const o=e.getAttrs?e.getAttrs(r):void 0;var i;t.openNode(n,o),t.addText((i=r.content).endsWith("\n")?i.slice(0,i.length-1):i),t.closeNode()}}function gs(e,t){t[e.token+"_open"]=t=>{t.openContext(e.context)},t[e.token+"_close"]=e=>{e.closeContext()}}function ys(e,t,r){if(void 0===r.nodes[e.token])throw new RangeError(`Can't find inline type '${e.token}'`);t[e.token]=(e,t)=>{var n;const o=t.attrs||null,i=null===(n=r.nodes[t.type])||void 0===n?void 0:n.createAndFill(o);i&&e.push(i)}}function Ss(e,t){t[e.token]=(t,r)=>{t.addText(e.getText(r))}}class bs{constructor(e,t){this.schema=e,this.tokenizer=$("commonmark",{html:!0}).disable(["emphasis","autolink","backticks","entity"]).enable(["table"]).use(Ja).use(ds),this.tokenHandlers=function(e,t){const r={};for(const n of t)switch(n.type){case Ka.text:Ss(n,r);break;case Ka.block:ms(n,r,e);break;case Ka.context:gs(n,r);break;case Ka.ignore:r[n.token]=()=>{};break;case Ka.inline:ys(n,r,e);break;case Ka.free:r[n.token]=n.handler;break;default:throw new Error("unknown parser rule type")}return r}(e,t)}parse(e){const t=new hs(this.schema,this.tokenHandlers);let r;const n=this.tokenizer.parse(e,{});console.log("tokens",n),t.parseTokens(n);do{r=t.closeNode()}while(t.stack.length);return r}}var Qs,ws;if("undefined"!=typeof WeakMap){let e=new WeakMap;Qs=t=>e.get(t),ws=(t,r)=>(e.set(t,r),r)}else{const e=[],t=10;let r=0;Qs=t=>{for(let r=0;r<e.length;r+=2)if(e[r]==t)return e[r+1]},ws=(n,o)=>(r==t&&(r=0),e[r++]=n,e[r++]=o)}var $s=class{constructor(e,t,r,n){this.width=e,this.height=t,this.map=r,this.problems=n}findCell(e){for(let t=0;t<this.map.length;t++){const r=this.map[t];if(r!=e)continue;const n=t%this.width,o=t/this.width|0;let i=n+1,a=o+1;for(let e=1;i<this.width&&this.map[t+e]==r;e++)i++;for(let e=1;a<this.height&&this.map[t+this.width*e]==r;e++)a++;return{left:n,top:o,right:i,bottom:a}}throw new RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError(`No cell with offset ${e} found`)}nextCell(e,t,r){const{left:n,right:o,top:i,bottom:a}=this.findCell(e);return"horiz"==t?(r<0?0==n:o==this.width)?null:this.map[i*this.width+(r<0?n-1:o)]:(r<0?0==i:a==this.height)?null:this.map[n+this.width*(r<0?i-1:a)]}rectBetween(e,t){const{left:r,right:n,top:o,bottom:i}=this.findCell(e),{left:a,right:s,top:l,bottom:c}=this.findCell(t);return{left:Math.min(r,a),top:Math.min(o,l),right:Math.max(n,s),bottom:Math.max(i,c)}}cellsInRect(e){const t=[],r={};for(let n=e.top;n<e.bottom;n++)for(let o=e.left;o<e.right;o++){const i=n*this.width+o,a=this.map[i];r[a]||(r[a]=!0,o==e.left&&o&&this.map[i-1]==a||n==e.top&&n&&this.map[i-this.width]==a||t.push(a))}return t}positionAt(e,t,r){for(let n=0,o=0;;n++){const i=o+r.child(n).nodeSize;if(n==e){let r=t+e*this.width;const n=(e+1)*this.width;for(;r<n&&this.map[r]<o;)r++;return r==n?i-1:this.map[r]}o=i}}static get(e){return Qs(e)||ws(e,function(e){if("table"!=e.type.spec.tableRole)throw new RangeError("Not a table node: "+e.type.name);const t=function(e){let t=-1,r=!1;for(let n=0;n<e.childCount;n++){const o=e.child(n);let i=0;if(r)for(let t=0;t<n;t++){const r=e.child(t);for(let e=0;e<r.childCount;e++){const o=r.child(e);t+o.attrs.rowspan>n&&(i+=o.attrs.colspan)}}for(let e=0;e<o.childCount;e++){const t=o.child(e);i+=t.attrs.colspan,t.attrs.rowspan>1&&(r=!0)}-1==t?t=i:t!=i&&(t=Math.max(t,i))}return t}(e),r=e.childCount,n=[];let o=0,i=null;const a=[];for(let e=0,o=t*r;e<o;e++)n[e]=0;for(let s=0,l=0;s<r;s++){const c=e.child(s);l++;for(let e=0;;e++){for(;o<n.length&&0!=n[o];)o++;if(e==c.childCount)break;const O=c.child(e),{colspan:p,rowspan:u,colwidth:d}=O.attrs;for(let e=0;e<u;e++){if(e+s>=r){(i||(i=[])).push({type:"overlong_rowspan",pos:l,n:u-e});break}const c=o+e*t;for(let e=0;e<p;e++){0==n[c+e]?n[c+e]=l:(i||(i=[])).push({type:"collision",row:s,pos:l,n:p-e});const r=d&&d[e];if(r){const n=(c+e)%t*2,o=a[n];null==o||o!=r&&1==a[n+1]?(a[n]=r,a[n+1]=1):o==r&&a[n+1]++}}}o+=p,l+=O.nodeSize}const O=(s+1)*t;let p=0;for(;o<O;)0==n[o++]&&p++;p&&(i||(i=[])).push({type:"missing",row:s,n:p}),l++}const s=new $s(t,r,n,i);let l=!1;for(let e=0;!l&&e<a.length;e+=2)null!=a[e]&&a[e+1]<r&&(l=!0);l&&function(e,t,r){e.problems||(e.problems=[]);const n={};for(let o=0;o<e.map.length;o++){const i=e.map[o];if(n[i])continue;n[i]=!0;const a=r.nodeAt(i);if(!a)throw new RangeError(`No cell with offset ${i} found`);let s=null;const l=a.attrs;for(let r=0;r<l.colspan;r++){const n=t[2*((o+r)%e.width)];null==n||l.colwidth&&l.colwidth[r]==n||((s||(s=Ps(l)))[r]=n)}s&&e.problems.unshift({type:"colwidth mismatch",pos:i,colwidth:s})}}(s,a,e);return s}(e))}};function Ps(e){if(e.colwidth)return e.colwidth.slice();const t=[];for(let r=0;r<e.colspan;r++)t.push(0);return t}function vs(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(const r in e.nodes){const n=e.nodes[r],o=n.spec.tableRole;o&&(t[o]=n)}}return t}function xs(e){const t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function ks(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function Zs(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function Ts(e,t,r){const n=e.node(-1),o=$s.get(n),i=e.start(-1),a=o.nextCell(e.pos-i,t,r);return null==a?null:e.node(0).resolve(i+a)}function Rs(e,t,r=1){const n={...e,colspan:e.colspan-r};return n.colwidth&&(n.colwidth=n.colwidth.slice(),n.colwidth.splice(t,r),n.colwidth.some((e=>e>0))||(n.colwidth=null)),n}new Wn("selectingCells");var Xs=class e extends bn{constructor(e,t=e){const r=e.node(-1),n=$s.get(r),o=e.start(-1),i=n.rectBetween(e.pos-o,t.pos-o),a=e.node(0),s=n.cellsInRect(i).filter((e=>e!=t.pos-o));s.unshift(t.pos-o);const l=s.map((e=>{const t=r.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);const n=o+e+1;return new Qn(a.resolve(n),a.resolve(n+t.content.size))}));super(l[0].$from,l[0].$to,l),this.$anchorCell=e,this.$headCell=t}map(t,r){const n=t.resolve(r.map(this.$anchorCell.pos)),o=t.resolve(r.map(this.$headCell.pos));if(ks(n)&&ks(o)&&Zs(n,o)){const t=this.$anchorCell.node(-1)!=n.node(-1);return t&&this.isRowSelection()?e.rowSelection(n,o):t&&this.isColSelection()?e.colSelection(n,o):new e(n,o)}return Pn.between(n,o)}content(){const e=this.$anchorCell.node(-1),t=$s.get(e),r=this.$anchorCell.start(-1),n=t.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),o={},i=[];for(let r=n.top;r<n.bottom;r++){const a=[];for(let i=r*t.width+n.left,s=n.left;s<n.right;s++,i++){const r=t.map[i];if(o[r])continue;o[r]=!0;const s=t.findCell(r);let l=e.nodeAt(r);if(!l)throw RangeError(`No cell with offset ${r} found`);const c=n.left-s.left,O=s.right-n.right;if(c>0||O>0){let e=l.attrs;if(c>0&&(e=Rs(e,0,c)),O>0&&(e=Rs(e,e.colspan-O,O)),s.left<n.left){if(l=l.type.createAndFill(e),!l)throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else l=l.type.create(e,l.content)}if(s.top<n.top||s.bottom>n.bottom){const e={...l.attrs,rowspan:Math.min(s.bottom,n.bottom)-Math.max(s.top,n.top)};l=s.top<n.top?l.type.createAndFill(e):l.type.create(e,l.content)}a.push(l)}i.push(e.child(r).copy(Or.from(a)))}const a=this.isColSelection()&&this.isRowSelection()?e:i;return new mr(Or.from(a),1,1)}replace(e,t=mr.empty){const r=e.steps.length,n=this.ranges;for(let o=0;o<n.length;o++){const{$from:i,$to:a}=n[o],s=e.mapping.slice(r);e.replace(s.map(i.pos),s.map(a.pos),o?mr.empty:t)}const o=bn.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);o&&e.setSelection(o)}replaceWith(e,t){this.replace(e,new mr(Or.from(t),0,0))}forEachCell(e){const t=this.$anchorCell.node(-1),r=$s.get(t),n=this.$anchorCell.start(-1),o=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n));for(let r=0;r<o.length;r++)e(t.nodeAt(o[r]),n+o[r])}isColSelection(){const e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;const r=e+this.$anchorCell.nodeAfter.attrs.rowspan,n=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(r,n)==this.$headCell.node(-1).childCount}static colSelection(t,r=t){const n=t.node(-1),o=$s.get(n),i=t.start(-1),a=o.findCell(t.pos-i),s=o.findCell(r.pos-i),l=t.node(0);return a.top<=s.top?(a.top>0&&(t=l.resolve(i+o.map[a.left])),s.bottom<o.height&&(r=l.resolve(i+o.map[o.width*(o.height-1)+s.right-1]))):(s.top>0&&(r=l.resolve(i+o.map[s.left])),a.bottom<o.height&&(t=l.resolve(i+o.map[o.width*(o.height-1)+a.right-1]))),new e(t,r)}isRowSelection(){const e=this.$anchorCell.node(-1),t=$s.get(e),r=this.$anchorCell.start(-1),n=t.colCount(this.$anchorCell.pos-r),o=t.colCount(this.$headCell.pos-r);if(Math.min(n,o)>0)return!1;const i=n+this.$anchorCell.nodeAfter.attrs.colspan,a=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(i,a)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,r=t){const n=t.node(-1),o=$s.get(n),i=t.start(-1),a=o.findCell(t.pos-i),s=o.findCell(r.pos-i),l=t.node(0);return a.left<=s.left?(a.left>0&&(t=l.resolve(i+o.map[a.top*o.width])),s.right<o.width&&(r=l.resolve(i+o.map[o.width*(s.top+1)-1]))):(s.left>0&&(r=l.resolve(i+o.map[s.top*o.width])),a.right<o.width&&(t=l.resolve(i+o.map[o.width*(a.top+1)-1]))),new e(t,r)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,r){return new e(t.resolve(r.anchor),t.resolve(r.head))}static create(t,r,n=r){return new e(t.resolve(r),t.resolve(n))}getBookmark(){return new Cs(this.$anchorCell.pos,this.$headCell.pos)}};Xs.prototype.visible=!1,bn.jsonID("cell",Xs);var Es,Cs=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){const t=e.resolve(this.anchor),r=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==r.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&r.index()<r.parent.childCount&&Zs(t,r)?new Xs(t,r):bn.near(r,1)}};function js(e,t,r){return!r.eq(e.selection)&&(t&&t(e.tr.setSelection(r).scrollIntoView()),!0)}function Ys(e,t){return(r,n,o)=>{if(!o)return!1;const i=r.selection;if(i instanceof Xs)return js(r,n,bn.near(i.$headCell,t));if("horiz"!=e&&!i.empty)return!1;const a=Ws(o,e,t);if(null==a)return!1;if("horiz"==e)return js(r,n,bn.near(r.doc.resolve(i.head+t),t));{const o=r.doc.resolve(a),i=Ts(o,e,t);let s;return s=i?bn.near(i,1):t<0?bn.near(r.doc.resolve(o.before(-1)),-1):bn.near(r.doc.resolve(o.after(-1)),1),js(r,n,s)}}}function _s(e,t){return(r,n,o)=>{if(!o)return!1;const i=r.selection;let a;if(i instanceof Xs)a=i;else{const n=Ws(o,e,t);if(null==n)return!1;a=new Xs(r.doc.resolve(n))}const s=Ts(a.$headCell,e,t);return!!s&&js(r,n,new Xs(a.$anchorCell,s))}}function As(e,t){const r=e.selection;if(!(r instanceof Xs))return!1;if(t){const n=e.tr,o=vs(e.schema).cell.createAndFill().content;r.forEachCell(((e,t)=>{e.content.eq(o)||n.replace(n.mapping.map(t+1),n.mapping.map(t+e.nodeSize-1),new mr(o,0,0))})),n.docChanged&&t(n)}return!0}function Ws(e,t,r){if(!(e.state.selection instanceof Pn))return null;const{$head:n}=e.state.selection;for(let o=n.depth-1;o>=0;o--){const i=n.node(o);if((r<0?n.index(o):n.indexAfter(o))!=(r<0?0:i.childCount))return null;if("cell"==i.type.spec.tableRole||"header_cell"==i.type.spec.tableRole){const i=n.before(o),a="vert"==t?r>0?"down":"up":r>0?"right":"left";return e.endOfTextblock(a)?i:null}}return null}function Vs(e){const t=e.selection,r=function(e){const t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;const r=function(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}(t.$head)||function(e){for(let t=e.nodeAfter,r=e.pos;t;t=t.firstChild,r++){const n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r)}for(let t=e.nodeBefore,r=e.pos;t;t=t.lastChild,r--){const n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r-t.nodeSize)}}(t.$head);if(r)return r;throw new RangeError(`No cell found around position ${t.head}`)}(e),n=r.node(-1),o=r.start(-1),i=$s.get(n);return{...t instanceof Xs?i.rectBetween(t.$anchorCell.pos-o,t.$headCell.pos-o):i.findCell(r.pos-o),tableStart:o,map:i,table:n}}function qs(e,t,r){const n=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<n.length;e++){const o=t.table.nodeAt(n[e]);if(o&&o.type!==r.header_cell)return!1}return!0}function Is(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,r){if(!xs(t))return!1;if(r){const n=vs(t.schema),o=Vs(t),i=t.tr,a=o.map.cellsInRect("column"==e?{left:o.left,top:0,right:o.right,bottom:o.map.height}:"row"==e?{left:0,top:o.top,right:o.map.width,bottom:o.bottom}:o),s=a.map((e=>o.table.nodeAt(e)));for(let e=0;e<a.length;e++)s[e].type==n.header_cell&&i.setNodeMarkup(o.tableStart+a[e],n.cell,s[e].attrs);if(0==i.steps.length)for(let e=0;e<a.length;e++)i.setNodeMarkup(o.tableStart+a[e],n.header_cell,s[e].attrs);r(i)}return!0}}(e):function(t,r){if(!xs(t))return!1;if(r){const n=vs(t.schema),o=Vs(t),i=t.tr,a=qs("row",o,n),s=qs("column",o,n),l=("column"===e?a:"row"===e&&s)?1:0,c="column"==e?{left:0,top:l,right:1,bottom:o.map.height}:"row"==e?{left:l,top:0,right:o.map.width,bottom:1}:o,O="column"==e?s?n.cell:n.header_cell:"row"==e?a?n.cell:n.header_cell:n.cell;o.map.cellsInRect(c).forEach((e=>{const t=e+o.tableStart,r=i.doc.nodeAt(t);r&&i.setNodeMarkup(t,O,r.attrs)})),r(i)}return!0}}new Wn("fix-tables"),function(e){let t=function(e){let t=Object.create(null);for(let r in e)t[Ui(r)]=e[r];return t}(e)}({ArrowLeft:Ys("horiz",-1),ArrowRight:Ys("horiz",1),ArrowUp:Ys("vert",-1),ArrowDown:Ys("vert",1),"Shift-ArrowLeft":_s("horiz",-1),"Shift-ArrowRight":_s("horiz",1),"Shift-ArrowUp":_s("vert",-1),"Shift-ArrowDown":_s("vert",1),Backspace:As,"Mod-Backspace":As,Delete:As,"Mod-Delete":As}),new Wn("tableColumnResizing"),Is("row",{useDeprecatedLogic:!0}),Is("column",{useDeprecatedLogic:!0}),Is("cell",{useDeprecatedLogic:!0}),function(e){e[e.DEFAULT=1]="DEFAULT",e[e.CENTER=2]="CENTER",e[e.RIGHT=3]="RIGHT",e[e.LEFT=4]="LEFT"}(Es||(Es={}));class zs extends v{constructor(){super(...arguments),this.createKeymap=()=>{const e=this.store.schema;return function(e,t,r){return{Enter:B(((n,o)=>{if(!L(n.selection))return!1;const i=n.selection.$cursor;if(!i)return!1;const{nodeBefore:a}=n.selection.$from,s=a&&a.isText&&a.text;if(!s)return!1;const l=e.exec(s);if(!l)return!1;const[c,O]=[i.pos-l[0].length,i.pos],p=n.doc.resolve(c),u=t({match:l,start:c,end:O}),d=p.node(-1),f=p.index(-1),h=p.indexAfter(-1);if(!d.canReplace(f,h,Or.from(u)))return!1;let m=n.tr;return m=m.replaceRangeWith(c,O,u),r&&(m=r({tr:m})),o&&o(m),!0}))}}(/^\|((?:[^\|]+\|){2,})\s*$/,(({match:t})=>{const r=t[1].split("|").slice(0,-1).map((t=>((t=t.trim())||(t=" "),e.text(t)))),n=r.map((t=>e.nodes.tableCell.create(null,t))),o=r.map((()=>e.nodes.tableCell.create(null))),i=e.nodes.tableRow.create(null,n),a=e.nodes.tableRow.create(null,o);return e.nodes.table.create(null,[i,a])}),(({tr:e})=>{var t;const r=null===(t=e.selection)||void 0===t?void 0:t.$cursor;if(r){const t=r.depth-1,n=r.posAtIndex(r.index(t)-1,t),o=e.doc.resolve(n);return e.setSelection(Pn.near(o))}return e}))}}get name(){return"table"}fromMarkdown(){return[{type:Ka.block,token:"table",node:this.name,hasOpenClose:!0},{type:Ka.ignore,token:"thead_open"},{type:Ka.ignore,token:"thead_close"},{type:Ka.ignore,token:"tbody_open"},{type:Ka.ignore,token:"tbody_close"}]}toMarkdown({state:e,node:t}){const r=[],n=[];t.forEach(((e,t,o)=>{const i=[];e.forEach(((e,t,r)=>{i.push(e.textContent.trim().replace(/\n/g,"")),0===o&&(n[r]=Es.DEFAULT)})),r.push(i)}));const o=n.length,i=new Array(o);r.forEach((e=>{e.forEach(((e,t)=>{i[t]||(i[t]=3),i[t]=Math.max(e.length,i[t])}))}));const a=new Array(o);i.forEach(((e,t)=>{switch(n[t]){case Es.LEFT:a[t]=":"+"-".repeat(e-1);break;case Es.RIGHT:a[t]="-".repeat(e-1)+":";break;case Es.CENTER:a[t]=":"+"-".repeat(e-2)+":";break;default:a[t]="-".repeat(e)}})),r.splice(1,0,a);let s="";r.forEach((e=>{e.forEach(((e,t)=>{s+="| ";const r=i[t];if(n[t]===Es.CENTER){const t=" ".repeat(Math.round((r-e.length)/2));s+=(t+e+t).padEnd(r)}else n[t]===Es.RIGHT?s+=e.padStart(r):s+=e.padEnd(r);s+=" "})),s+="|\n"})),s+="\n",e.text(s,!1)}createExtensions(){return[]}}class Ns extends x{get name(){return"tableRow"}createNodeSpec(e,t){return{...super.createNodeSpec(e,t),allowGapCursor:!1}}fromMarkdown(){return[{type:Ka.block,token:"tr",node:this.name,hasOpenClose:!0}]}toMarkdown(){}createExtensions(){return[]}}class Ms extends k{get name(){return"tableHeaderCell"}fromMarkdown(){return[]}toMarkdown(){}createExtensions(){return[]}}class Us extends Z{get name(){return"tableCell"}createNodeSpec(e,t){return{...super.createNodeSpec(e,t),content:"inline*"}}createExtensions(){return[]}createCommands(){return{selectTableCell:({pos:e})=>({tr:t,dispatch:r})=>!!t.setSelection(Xs.create(t.doc,e))&&(null==r||r(t),!0)}}fromMarkdown(){return[{type:Ka.block,token:"th",node:this.name,hasOpenClose:!0},{type:Ka.block,token:"td",node:this.name,hasOpenClose:!0}]}toMarkdown(){}}function Gs(e){return function(e){return e.startsWith("/")}(e)||function(e){return e.startsWith("\\")||/^[A-Z]{1,2}:/.test(e)}(e)?function(e){let t=e;t=t.replace(/\\/g,"/"),"/"!==t[0]&&(t=`/${t}`);return encodeURI(`file://${t}`).replace(/[?#]/g,encodeURIComponent)}(e):e}class Ds extends Ir{constructor(e){super(),this.doc=e}apply(e){return zr.ok(e)}getMap(){return Wr.empty}invert(e){return new Ds(e)}map(){return null}merge(e){return null}toJSON(){return{stepType:"replaceDoc",doc:this.doc.toJSON()}}static fromJSON(e,t){const r=e.nodeFromJSON(t.doc);return new Ds(r)}}try{Ir.jsonID("replaceDoc",Ds)}catch(e){}class Bs extends Ir{constructor(e){if(0===e.length)throw new RangeError("BatchSetMarkStep: at least one chunk is required");let t=0;for(const[r,n]of e){if(t>r||r>n)throw new RangeError("BatchSetMarkStep: chunks must be sorted");t=n}super(),this.chunks=e}apply(e){const t=this.chunks,r=t[0][0],n=t[t.length-1][1],o=e.resolve(r),i=e.resolve(n),a=o.sharedDepth(n),{start:s,parent:l}=new Sr(o,i,a),c=e.slice(s,n);let O,p,u,d,f,h,m,g,y,S,b=0;const Q=Ls(c.content,s,l,((e,r,n)=>{y=e;const o=[];for(;y&&b<t.length;)if(O=n+y.nodeSize,[p,u,m]=t[b],p>=u)b++;else{if(p>=O){o.push(y);break}if(n>=u)b++;else{for(h of(d=Math.max(p,n),f=Math.min(u,O),d>n&&(o.push(y.cut(0,d-n)),y=y.cut(d-n),n=d),f<O&&([y,S]=[y.cut(0,f-n),y.cut(f-n)],O=f),g=y.marks,g))h.isInSet(m)||(g=h.removeFromSet(g));for(h of m)!h.isInSet(g)&&(null==r?void 0:r.type.allowsMarkType(h.type))&&(g=h.addToSet(g));y=y.mark(g),o.push(y),n+=y.nodeSize,y=S,S=null}}return o}));return zr.fromReplace(e,s,n,new mr(Q,c.openStart,c.openEnd))}invert(e){return new Ds(e)}map(){return null}merge(){return null}toJSON(){return{stepType:"batchSetMark",chunks:this.chunks.map((e=>[e[0],e[1],e[2].map((e=>e.toJSON()))]))}}static fromJSON(e,t){return new Bs(t.chunks.map((t=>[t[0],t[1],t[2].map((t=>fr.fromJSON(e,t)))])))}}try{Ir.jsonID("batchSetMark",Bs)}catch(e){}function Ls(e,t,r,n){const o=[];let i=t;for(let t=0;t<e.childCount;t++){let a=e.child(t);a.content.size&&(a=a.copy(Ls(a.content,i+(a.isLeaf?0:1),a,n))),a.isInline?o.push(...n(a,r,i)):o.push(a),i+=as.includes(a.type.name)?0:a.nodeSize}return Or.fromArray(o)}function*Fs(e){const t=e.content;for(let e=0,r=0;e<t.childCount;e++){const n=t.child(e);yield[n,r,e],r+=n.nodeSize}}function Js(e,t){switch(e.type){case"text":return function(e,t){return[{marks:["mdText"],attrs:{depth:t,first:!0,last:!0},start:e.position.start.offset,end:e.position.end.offset}]}(e,t);case"strong":return function(e,t){const r=[{marks:["mdMark"],attrs:{depth:t,first:!0},start:e.position.start.offset,end:e.position.start.offset+2}];for(const n of e.children)for(const e of Js(n,t+1))e.marks.push("mdStrong"),r.push(e);return r.push({marks:["mdMark"],attrs:{depth:t,last:!0},start:e.position.end.offset-2,end:e.position.end.offset}),r}(e,t);case"emphasis":return function(e,t){const r=[{marks:["mdMark"],attrs:{depth:t,first:!0},start:e.position.start.offset,end:e.position.start.offset+1}];for(const n of e.children)for(const e of Js(n,t+1))e.marks.push("mdEm"),r.push(e);return r.push({marks:["mdMark"],attrs:{depth:t,last:!0},start:e.position.end.offset-1,end:e.position.end.offset}),r}(e,t);case"delete":return function(e,t){const r=[{marks:["mdMark"],attrs:{depth:t,first:!0},start:e.position.start.offset,end:e.position.start.offset+2}];for(const n of e.children)for(const e of Js(n,t+1))e.marks.push("mdDel"),r.push(e);return r.push({marks:["mdMark"],attrs:{depth:t,last:!0},start:e.position.end.offset-2,end:e.position.end.offset}),r}(e,t);case"inlineCode":return function(e,t){return[{marks:["mdMark"],attrs:{depth:t,first:!0},start:e.position.start.offset,end:e.position.start.offset+1},{marks:["mdCodeText"],attrs:{depth:t},start:e.position.start.offset+1,end:e.position.end.offset-1},{marks:["mdMark"],attrs:{depth:t,last:!0},start:e.position.end.offset-1,end:e.position.end.offset}]}(e,t);case"html":case"break":case"imageReference":case"footnote":case"footnoteReference":case"linkReference":return[];case"image":return function(e,t){return[{marks:["mdImgUri"],attrs:{depth:t,first:!0,last:!0,href:e.url,key:ye()},start:e.position.start.offset,end:e.position.end.offset}]}(e,t);case"link":return function(e,t){const r=e.position.start.offset,n=e.position.end.offset;if(0===e.children.length)return[{marks:["mdText"],attrs:{depth:t,first:!0,last:!0},start:e.position.start.offset,end:e.position.start.offset+2},{marks:["mdMark"],attrs:{depth:t},start:e.position.start.offset+2,end:n}];const o=e.children[0].position.start.offset,i=e.children[e.children.length-1].position.end.offset;if(r===o&&n===i)return function(e,t){return[{marks:["mdLinkText"],attrs:{depth:t,first:!0,last:!0,href:e.url},start:e.position.start.offset,end:e.position.end.offset}]}(e,t);const a=[{marks:["mdMark"],attrs:{depth:t,first:!0},start:e.position.start.offset,end:e.position.start.offset+1}];for(const r of e.children)for(const n of Js(r,t+1))n.marks.push("mdLinkText"),n.attrs.href=e.url,a.push(n);return i+2<n&&a.push({marks:["mdMark"],attrs:{depth:t},start:i,end:i+2},{marks:["mdLinkUri"],attrs:{depth:t},start:i+2,end:n-1}),a.push({marks:["mdMark"],attrs:{depth:t,last:!0},start:n-1,end:n}),a}(e,t);default:return console.warn("unknow mdast token:",e),[]}}fe.transforms=[];const Ks={delete:!0,text:!0,emphasis:!0,strong:!0,html:!0,inlineCode:!0,break:!0,image:!0,imageReference:!0,footnote:!0,footnoteReference:!0,link:!0,linkReference:!0},Hs={extensions:[{disable:{null:["blockQuote","characterEscape","characterReference","codeFenced","codeIndented","definition","headingAtx","htmlFlow","list","thematicBreak"]}},ge({singleTilde:!1}),me],mdastExtensions:[he,fe]};function el(e){for(const r of e)r.end-r.start!=0&&(r.marks=(t=r.marks).length<=1?t:t.includes("mdMark")?["mdMark"]:t.includes("mdCodeText")?["mdCodeText"]:t.includes("mdText")?t.filter((e=>"mdText"!==e)):t);var t;return e}function tl(e){const t=function(e){var t;const r=[],n=[];for(let o=0;o<e.length;o++){const i=e[o];if("html"===i.type){const e=rs(i.value),a={tag:e,voidElement:!!Se[e],isClosingTag:Ha(i.value),index:o};a.voidElement?i.complete=!0:a.isClosingTag?(null===(t=r[r.length-1])||void 0===t?void 0:t.tag)===a.tag&&r.length>=1&&(n.push([r.pop(),a]),i.complete=!0):r.push(a)}}for(let e=0;e<n.length;e++){const t=n[e],r=t[0].index,o=t[1].index;n.findIndex((e=>e[0].index<r&&e[1].index>o))>=0&&(n.splice(e,1),e--)}return n}(e);let r=0;t.forEach((t=>{const n=t[0].index+r,o=t[1].index+r;!function(e,t,r){const n=be(e[t]);for(let o=t+1;o<=r;o++)n.value+=e[o].value||"",n.position.end=e[o].position.end,n.complete=!0;e.splice(t,r-t+1,n)}(e,n,o),r+=n-o}))}function rl(e){const t=function(e){try{const t=de(e,Hs);if(0===t.children.length)return[];if(1!==t.children.length)throw Error(`root.children has ${t.children.length} children`);const r=t.children[0];if("paragraph"!==r.type)throw Error(`unknow child type ${r.type}`);for(const e of r.children)if(!Ks[e.type])throw Error(`got unknow phrasingContent token: ${JSON.stringify(e)}`);return r.children}catch(t){console.warn(`failed to parse inline markdown text ${JSON.stringify(e)}: ${t}`)}return[]}(e);return function(e){for(const t of e)if("html"===t.type&&!is.includes(rs(t.value)))return!0;return!1}(t)?function(e,t=1){tl(e);const r=[];return e.forEach((e=>{if("html"===e.type)e.complete?r.push({marks:["mdHtmlInline"],attrs:{depth:1,htmlText:e.value,key:ye(),first:!0,last:!0},start:e.position.start.offset,end:e.position.end.offset}):r.push({marks:["mdText"],attrs:{depth:t,first:!0,last:!0},start:e.position.start.offset,end:e.position.end.offset});else{const n=Js(e,t);r.push(...el(n))}})),r}(t):function(e,t=1){const r=[];for(const n of e){const e=Js(n,t);r.push(...el(e))}return r}(t)}var nl;function ol(e,t,r,n){t.attrs.inlineDecorateType!==nl.Ignore&&(t.isTextblock?function(e,t,r,n){if(!t.textContent)return;const o=rl(t.textContent);for(const t of o){const o=t.marks.map((r=>e.marks[r].create(t.attrs)));n.push([r+t.start,r+t.end,o])}}(e,t,r,n):t.forEach(((t,o)=>{ol(e,t,r+o+1,n)})))}function il(e,t,r,n){if(t.isTextblock){ol(e.doc.type.schema,t,r,n)}else for(const[o,i]of Fs(t))il(e,o,r+i+1,n)}function al(e,t){e.setMeta("APPLY_MARKS",!0);const{$from:r,$to:n}=e.selection,o=r.blockRange(n),i=[];if(!o||t)il(e,e.doc,0,i);else for(const[t,r]of function*(e){let t=e.start+1;for(const[r,,n]of Fs(e.parent))if(!(n<e.startIndex)){if(n>=e.endIndex)break;yield[r,t],t+=r.nodeSize}}(o))il(e,t,r,i);return i.length&&e.step(new Bs(i)),!!e.docChanged}function sl({left:e,right:t,mark:r}){return n=>{const{tr:o,dispatch:i,state:a}=n,{$from:s,$to:l,empty:c}=a.selection,O=s.parent,p=s.start();let u=s.index(),d=l.index();0===l.textOffset&&(c?u=Math.max(u-1,0):d>u&&d--);const f=function(e,t,r,n,o){for(let o=r;o<=n;o++)if(Ol(e.maybeChild(o),t))return o;if(o||r===n){if(Ol(e.maybeChild(r),"mdMark")&&Ol(e.maybeChild(r-1),t))return r-1;if(Ol(e.maybeChild(n),"mdMark")&&Ol(e.maybeChild(n+1),t))return n+1}return!1}(O,r,u,d,c);if(!1!==f){let r=!1;for(let e=f;e<O.childCount;e++){const n=O.child(e);Ol(n,"mdMark")&&n.text===t&&(pl(o,O,p,e),r=!0)}for(let t=f;t>=0;t--){const n=O.child(t);Ol(n,"mdMark")&&n.text===e&&(pl(o,O,p,t),r=!0)}if(r)return i&&(al(o),i(o)),!0}return!1}}function ll({left:e,right:t,mark:r}){return n=>{const{$from:o,$to:i}=n.state.selection;return!(!o.sameParent(i)||!o.parent.type.isTextblock)&&(!!sl({left:e,right:t,mark:r})(n)||(!!function({left:e,right:t}){return r=>{const{tr:n,dispatch:o,state:i}=r,{$from:a,$to:s,anchor:l,head:c}=i.selection;if(o){n.insertText(t,s.pos),n.insertText(e,a.pos);const r=e.length;n.setSelection(Pn.create(n.doc,l+r,c+r)),al(n),o(n)}return!0}}({left:e,right:t,mark:r})(n)||void 0))}}function cl(e){switch(e){case"mdStrong":return ll({mark:e,left:"**",right:"**"});case"mdEm":return ll({mark:e,left:"*",right:"*"});case"mdCodeText":return ll({mark:e,left:"`",right:"`"});case"mdDel":return ll({mark:e,left:"~~",right:"~~"});default:!function(e){throw new Error(`Unknown mark to toggle: ${e}`)}(e)}}function Ol(e,t){return!!e&&e.marks.some((e=>e.type.name===t))}function pl(e,t,r,n){let o=r;for(let e=0;e<n;e++)o+=t.child(e).nodeSize;return e.delete(o,o+t.child(n).nodeSize)}!function(e){e.Ignore="IGNORE"}(nl||(nl={}));let ul=(()=>{let e,t,r=[Qe({defaultOptions:{handleViewImgSrcUrl:async e=>e}})],n=[],o=we;return t=class extends o{get name(){return"mdHtmlInline"}createMarkSpec(){return{attrs:{depth:{default:0},key:{default:""},htmlText:{default:""}},toDOM:e=>["span",{...e.attrs},0]}}createNodeViews(){return e=>{const t=document.createElement("span");(new DOMParser).parseFromString(e.attrs.htmlText||"","text/html").body.childNodes.forEach((e=>{if((r=e)&&"IMG"===(null===(n=r.tagName)||void 0===n?void 0:n.toLocaleUpperCase())&&e.src&&this.options.handleViewImgSrcUrl){let t=e.src;e.src.includes(location.origin)&&(t=e.src.split(location.origin)[1]),this.options.handleViewImgSrcUrl(t).then((t=>{e.src=t}))}var r,n;t.appendChild(e)}));const r=document.createElement("span");return t.appendChild(r),t.setAttribute("key",e.attrs.key),r.setAttribute("class","md-html-inline"),{dom:t,contentDOM:r}}}},Ua(t,"LineHtmlInlineExtension"),(()=>{var i;const a="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(i=o[Symbol.metadata])&&void 0!==i?i:null):void 0;Na(null,e={value:t},r,{kind:"class",name:t.name,metadata:a},null,n),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a})})(),t.disableExtraAttributes=!0,Ma(t,n),t})();const dl={depth:{default:0}},fl={depth:{default:0},first:{default:!1},last:{default:!1}};class hl extends F{get name(){return"mdMark"}createMarkSpec(){return{inclusive:!1,attrs:fl,toDOM:()=>["span",{class:"md-mark"},0]}}createCommands(){return{toggleInlineMark:cl}}}hl.disableExtraAttributes=!0;class ml extends F{get name(){return"mdText"}createMarkSpec(){return{attrs:fl,toDOM:()=>["span",0]}}}ml.disableExtraAttributes=!0;let gl=(()=>{var e;let t,r=F,n=[];return e=class extends r{get name(){return"mdEm"}createMarkSpec(){return{attrs:dl,toDOM:()=>["em",0]}}shortcut(e){return cl(this.name)(e)}constructor(){super(...arguments),Ma(this,n)}},(()=>{var o;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(o=r[Symbol.metadata])&&void 0!==o?o:null):void 0;t=[C({shortcut:"mod-i",command:"toggleEmphasis"})],Na(e,null,t,{kind:"method",name:"shortcut",static:!1,private:!1,access:{has:e=>"shortcut"in e,get:e=>e.shortcut},metadata:i},null,n),i&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),e.disableExtraAttributes=!0,e})(),yl=(()=>{var e;let t,r=F,n=[];return e=class extends r{get name(){return"mdStrong"}createMarkSpec(){return{attrs:dl,toDOM:()=>["strong",0]}}shortcut(e){return cl(this.name)(e)}constructor(){super(...arguments),Ma(this,n)}},(()=>{var o;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(o=r[Symbol.metadata])&&void 0!==o?o:null):void 0;t=[C({shortcut:"mod-b",command:"toggleStrong"})],Na(e,null,t,{kind:"method",name:"shortcut",static:!1,private:!1,access:{has:e=>"shortcut"in e,get:e=>e.shortcut},metadata:i},null,n),i&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),e.disableExtraAttributes=!0,e})(),Sl=(()=>{var e;let t,r=F,n=[];return e=class extends r{get name(){return"mdCodeText"}createMarkSpec(){return{attrs:dl,toDOM:()=>["code",0]}}shortcut(e){return cl(this.name)(e)}constructor(){super(...arguments),Ma(this,n)}},(()=>{var o;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(o=r[Symbol.metadata])&&void 0!==o?o:null):void 0;t=[C({shortcut:"mod-e",command:"toggleCodeText"})],Na(e,null,t,{kind:"method",name:"shortcut",static:!1,private:!1,access:{has:e=>"shortcut"in e,get:e=>e.shortcut},metadata:i},null,n),i&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),e.disableExtraAttributes=!0,e})();class bl extends F{get name(){return"mdCodeSpace"}createMarkSpec(){return{attrs:dl,toDOM:()=>["span",0]}}}bl.disableExtraAttributes=!0;let Ql=(()=>{var e;let t,r=F,n=[];return e=class extends r{get name(){return"mdDel"}createMarkSpec(){return{attrs:dl,toDOM:()=>["del",0]}}shortcut(e){return cl(this.name)(e)}constructor(){super(...arguments),Ma(this,n)}},(()=>{var o;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(o=r[Symbol.metadata])&&void 0!==o?o:null):void 0;t=[C({shortcut:"mod-shift-s",command:"toggleDelete"})],Na(e,null,t,{kind:"method",name:"shortcut",static:!1,private:!1,access:{has:e=>"shortcut"in e,get:e=>e.shortcut},metadata:i},null,n),i&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),e.disableExtraAttributes=!0,e})();class wl extends F{get name(){return"mdLinkText"}createMarkSpec(){return{attrs:{...dl,href:{default:""}},toDOM:e=>["a",{href:e.attrs.href},0]}}}wl.disableExtraAttributes=!0;class $l extends F{get name(){return"mdLinkUri"}createMarkSpec(){return{spanning:!1,attrs:dl,toDOM:()=>["a",{class:"md-link"},0]}}}$l.disableExtraAttributes=!0;class Pl extends F{get name(){return"mdImgText"}createMarkSpec(){return{spanning:!1,attrs:dl,toDOM:()=>["span",{class:"md-img-text"},0]}}}Pl.disableExtraAttributes=!0;let vl=(()=>{let e,t,r=[V({defaultOptions:{handleViewImgSrcUrl:async e=>e}})],n=[],o=F;return t=class extends o{constructor(){super(...arguments),this.createNodeViews=()=>e=>{const t=document.createElement("span"),r=document.createElement("img");this.options.handleViewImgSrcUrl?this.options.handleViewImgSrcUrl(e.attrs.href).then((e=>{r.setAttribute("src",Gs(e))})):r.setAttribute("src",Gs(e.attrs.href));const n=document.createElement("span");return n.appendChild(r),n.appendChild(t),n.setAttribute("class","md-img-uri"),{dom:n,contentDOM:t}}}get name(){return"mdImgUri"}createMarkSpec(){return{spanning:!1,attrs:{...dl,key:{default:""},href:{default:""}}}}},Ua(t,"ImgUri"),(()=>{var i;const a="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(i=o[Symbol.metadata])&&void 0!==i?i:null):void 0;Na(null,e={value:t},r,{kind:"class",name:t.name,metadata:a},null,n),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a})})(),t.disableExtraAttributes=!0,Ma(t,n),t})();const xl={mdMark:!0,mdLinkUri:!0,mdImgText:!0,mdImgUri:!0,mdHtmlInline:!0};const kl=(e={})=>[new hl,new ml,new gl,new yl,new Sl,new bl,new Ql,new wl,new $l,new Pl,new vl({handleViewImgSrcUrl:e.handleViewImgSrcUrl}),new ul({handleViewImgSrcUrl:e.handleViewImgSrcUrl})];function Zl(e){const t={};for(const n of(null==e?void 0:e.marks)||[])r=n.type.name,xl[r]&&(t.isAutoHideMark=!0),Object.assign(t,n.attrs);var r;return t}function Tl(e,t,r,n){const o=[];let i=t;for(let t=r;t<e.content.childCount;t++){const r=e.content.child(t),n=Zl(r);if(n.isAutoHideMark&&o.push([i,i+r.nodeSize]),i+=r.nodeSize,1===n.depth&&n.last)break}const a=Zl(e.maybeChild(r));if(1===a.depth&&a.first&&!n)return o;let s=t;for(let t=r-1;t>=0;t--){const r=e.content.child(t),n=Zl(r);if(n.isAutoHideMark&&o.push([s-r.nodeSize,s]),s-=r.nodeSize,1===n.depth&&n.first)break}return o}class Rl extends I{get name(){return"inlineDecoration"}createPlugin(){return{props:{decorations:e=>{if(!L(e.selection))return null;const t=e.selection.$anchor,r=t.parent;if(!r.isTextblock)return null;let n;if(0===t.textOffset)n=Tl(r,t.pos,t.index(t.depth),!0);else{const e=t.index(t.depth),o=r.content.maybeChild(e);if(!o)return null;if(!Zl(o).depth)return null;n=Tl(r,t.pos-t.textOffset,t.index(t.depth),!1)}return Qi.create(e.doc,n.map((([e,t])=>yi.inline(e,t,{class:"show"}))))}}}}}class Xl extends $e{get name(){return"inlineMark"}createPlugin(){let e=null;const t=t=>{e&&clearTimeout(e),e=setTimeout((()=>{!function(e){if(e.isDestroyed)return;const t=e.state.tr;t.setMeta("addToHistory",!1),al(t)&&e.dispatch(t)}(t),e=null}),100)};let r=null;return{appendTransaction:e=>{let n=!1;for(const t of e)if(t.docChanged&&!t.getMeta("APPLY_MARKS")){n=!0;break}n&&r&&!r.isDestroyed&&t(r)},view:e=>(r=e,{})}}}class El extends Rt{createNodeSpec(e,t){return{...super.createNodeSpec(e,t),content:"text*"}}createKeymap(){const e={Backspace:({state:e,dispatch:t})=>{const{selection:r}=e;if(!r.empty)return!1;const n=J({types:this.type,selection:r});if((null==n?void 0:n.start)!==r.from)return!1;const o=e.tr.setBlockType(n.start,n.start,e.schema.nodes.paragraph);return t&&t(o),!0}};return this.options.levels.forEach((t=>{e[`mod-${t}`]=B(function(e,t=null){return function(r,n){let o=!1;for(let n=0;n<r.selection.ranges.length&&!o;n++){let{$from:{pos:i},$to:{pos:a}}=r.selection.ranges[n];r.doc.nodesBetween(i,a,((n,i)=>{if(o)return!1;if(n.isTextblock&&!n.hasMarkup(e,t))if(n.type==e)o=!0;else{let t=r.doc.resolve(i),n=t.index();o=t.parent.canReplaceWith(n,n+1,e)}}))}if(!o)return!1;if(n){let o=r.tr;for(let n=0;n<r.selection.ranges.length;n++){let{$from:{pos:i},$to:{pos:a}}=r.selection.ranges[n];o.setBlockType(i,a,e,t)}n(o.scrollIntoView())}return!0}}(this.type,{level:t}))})),e}fromMarkdown(){return[{type:Ka.block,token:"heading",node:this.name,hasOpenClose:!0,getAttrs:e=>({level:+e.tag.slice(1)})}]}toMarkdown({state:e,node:t}){e.write(e.repeat("#",t.attrs.level)+" "),e.renderInline(t),e.closeBlock(t)}}class Cl extends Va{createNodeSpec(e,t){return{...super.createNodeSpec(e,t),whitespace:"pre"}}fromMarkdown(){return[{type:Ka.block,token:"paragraph",node:this.name,hasOpenClose:!0}]}toMarkdown({state:e,node:t}){e.renderInline(t),e.closeBlock(t)}}class jl extends za{fromMarkdown(){return[{type:Ka.text,token:"text",getText:e=>e.content},{type:Ka.text,token:"inline",getText:e=>e.content},{type:Ka.text,token:"softbreak",getText:e=>"\n"}]}toMarkdown({state:e,node:t}){e.text(t.text||"")}}class Yl extends xe{fromMarkdown(){return[{type:Ka.free,token:"list_item_open",handler:e=>{switch(e.topContext()){case"ordered_list":e.openNode(this.type,{kind:"ordered"});break;case"bullet_list":e.openNode(this.type,{kind:"bullet"});break;default:throw new Error("unknown context")}}},{type:Ka.free,token:"list_checkbox",handler:(e,t)=>{const r=e.stack[e.stack.length-1];if("list"===(null==r?void 0:r.type.name)){const e=t.attrGet("checked"),n={kind:"task",checked:K(e)||!!e};r.attrs=n}else console.warn(`expect list but got ${null==r?void 0:r.type.name}`)}},{type:Ka.free,token:"list_item_close",handler:e=>{e.closeNode()}},{type:Ka.context,token:"bullet_list",context:"bullet_list"},{type:Ka.context,token:"ordered_list",context:"ordered_list"}]}toMarkdown({state:e,node:t,counter:r}){const n=t.attrs;let o="";"ordered"===n.kind?o=`${r}. `:"task"===n.kind?o=n.checked?"- [x] ":"- [ ] ":"bullet"===n.kind&&(o="- "),e.wrapBlock(" ".repeat(o.length),o,t,(()=>e.renderContent(t)))}}class _l extends Vi{fromMarkdown(){return[{type:Ka.block,token:"blockquote",node:this.name,hasOpenClose:!0}]}toMarkdown({state:e,node:t}){e.wrapBlock("> ",null,t,(()=>e.renderContent(t)))}}const Al=["tableCell"];class Wl extends Xt{fromMarkdown(){return[]}toMarkdown({state:e,node:t,parent:r,index:n}){for(let o=n+1;o<r.childCount;o++)if(r.child(o).type!=t.type)return void e.write("\n")}createKeymap(){const e=new Set(["heading"]),t=B(ca.Enter),r=H(B(Ji),(r=>{const{state:n,tr:o,dispatch:i}=r,{$from:a,$to:s,from:l,to:c}=n.selection,O=!e.has(a.parent.type.name)&&!e.has(s.parent.type.name),p=a.parent.type.name;if(O){const e=n.schema;return Al.includes(p)?null==i||i(o.replaceRangeWith(l,c,e.text("<br/>\n"))):null==i||i(o.replaceRangeWith(l,c,e.text("\n"))),!0}return t(r)}));return{"Mod-Enter":r,"Shift-Enter":r}}}class Vl extends Ca{fromMarkdown(){return[{type:Ka.block,token:"hr",node:this.name,hasOpenClose:!1}]}toMarkdown({state:e,node:t}){e.write("---"),e.closeBlock(t)}}var ql,Il={exports:{}},zl=Array.prototype.slice,Nl=Object.prototype.toString,Ml=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==Nl.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,n=zl.call(arguments,1),o=Math.max(0,t.length-n.length),i=[],a=0;a<o;a++)i.push("$"+a);if(r=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var o=t.apply(this,n.concat(zl.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(zl.call(arguments)))})),t.prototype){var s=function(){};s.prototype=t.prototype,r.prototype=new s,s.prototype=null}return r},Ul=Function.prototype.bind||Ml,Gl=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0},Dl="undefined"!=typeof Symbol&&Symbol,Bl=Gl,Ll=function(){return"function"==typeof Dl&&("function"==typeof Symbol&&("symbol"==typeof Dl("foo")&&("symbol"==typeof Symbol("bar")&&Bl())))},Fl={foo:{}},Jl=Object,Kl=function(){return{__proto__:Fl}.foo===Fl.foo&&!({__proto__:null}instanceof Jl)},Hl=Ul.call(Function.call,Object.prototype.hasOwnProperty),ec=SyntaxError,tc=Function,rc=TypeError,nc=function(e){try{return tc('"use strict"; return ('+e+").constructor;")()}catch(e){}},oc=Object.getOwnPropertyDescriptor;if(oc)try{oc({},"")}catch(e){oc=null}var ic=function(){throw new rc},ac=oc?function(){try{return ic}catch(e){try{return oc(arguments,"callee").get}catch(e){return ic}}}():ic,sc=Ll(),lc=Kl(),cc=Object.getPrototypeOf||(lc?function(e){return e.__proto__}:null),Oc={},pc="undefined"!=typeof Uint8Array&&cc?cc(Uint8Array):ql,uc={"%AggregateError%":"undefined"==typeof AggregateError?ql:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?ql:ArrayBuffer,"%ArrayIteratorPrototype%":sc&&cc?cc([][Symbol.iterator]()):ql,"%AsyncFromSyncIteratorPrototype%":ql,"%AsyncFunction%":Oc,"%AsyncGenerator%":Oc,"%AsyncGeneratorFunction%":Oc,"%AsyncIteratorPrototype%":Oc,"%Atomics%":"undefined"==typeof Atomics?ql:Atomics,"%BigInt%":"undefined"==typeof BigInt?ql:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?ql:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?ql:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?ql:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?ql:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?ql:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?ql:FinalizationRegistry,"%Function%":tc,"%GeneratorFunction%":Oc,"%Int8Array%":"undefined"==typeof Int8Array?ql:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?ql:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?ql:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":sc&&cc?cc(cc([][Symbol.iterator]())):ql,"%JSON%":"object"==typeof JSON?JSON:ql,"%Map%":"undefined"==typeof Map?ql:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&sc&&cc?cc((new Map)[Symbol.iterator]()):ql,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?ql:Promise,"%Proxy%":"undefined"==typeof Proxy?ql:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?ql:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?ql:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&sc&&cc?cc((new Set)[Symbol.iterator]()):ql,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?ql:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":sc&&cc?cc(""[Symbol.iterator]()):ql,"%Symbol%":sc?Symbol:ql,"%SyntaxError%":ec,"%ThrowTypeError%":ac,"%TypedArray%":pc,"%TypeError%":rc,"%Uint8Array%":"undefined"==typeof Uint8Array?ql:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?ql:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?ql:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?ql:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?ql:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?ql:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?ql:WeakSet};if(cc)try{null.error}catch(e){var dc=cc(cc(e));uc["%Error.prototype%"]=dc}var fc=function e(t){var r;if("%AsyncFunction%"===t)r=nc("async function () {}");else if("%GeneratorFunction%"===t)r=nc("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=nc("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&cc&&(r=cc(o.prototype))}return uc[t]=r,r},hc={"%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"]},mc=Ul,gc=Hl,yc=mc.call(Function.call,Array.prototype.concat),Sc=mc.call(Function.apply,Array.prototype.splice),bc=mc.call(Function.call,String.prototype.replace),Qc=mc.call(Function.call,String.prototype.slice),wc=mc.call(Function.call,RegExp.prototype.exec),$c=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Pc=/\\(\\)?/g,vc=function(e,t){var r,n=e;if(gc(hc,n)&&(n="%"+(r=hc[n])[0]+"%"),gc(uc,n)){var o=uc[n];if(o===Oc&&(o=fc(n)),void 0===o&&!t)throw new rc("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new ec("intrinsic "+e+" does not exist!")},xc=function(e,t){if("string"!=typeof e||0===e.length)throw new rc("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new rc('"allowMissing" argument must be a boolean');if(null===wc(/^%?[^%]*%?$/,e))throw new ec("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=Qc(e,0,1),r=Qc(e,-1);if("%"===t&&"%"!==r)throw new ec("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new ec("invalid intrinsic syntax, expected opening `%`");var n=[];return bc(e,$c,(function(e,t,r,o){n[n.length]=r?bc(o,Pc,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=vc("%"+n+"%",t),i=o.name,a=o.value,s=!1,l=o.alias;l&&(n=l[0],Sc(r,yc([0,1],l)));for(var c=1,O=!0;c<r.length;c+=1){var p=r[c],u=Qc(p,0,1),d=Qc(p,-1);if(('"'===u||"'"===u||"`"===u||'"'===d||"'"===d||"`"===d)&&u!==d)throw new ec("property names with quotes must have matching quotes");if("constructor"!==p&&O||(s=!0),gc(uc,i="%"+(n+="."+p)+"%"))a=uc[i];else if(null!=a){if(!(p in a)){if(!t)throw new rc("base intrinsic for "+e+" exists, but the property is not available.");return}if(oc&&c+1>=r.length){var f=oc(a,p);a=(O=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:a[p]}else O=gc(a,p),a=a[p];O&&!s&&(uc[i]=a)}}return a};!function(e){var t=Ul,r=xc,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||t.call(o,n),a=r("%Object.getOwnPropertyDescriptor%",!0),s=r("%Object.defineProperty%",!0),l=r("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var r=i(t,o,arguments);a&&s&&(a(r,"length").configurable&&s(r,"length",{value:1+l(0,e.length-(arguments.length-1))}));return r};var c=function(){return i(t,n,arguments)};s?s(e.exports,"apply",{value:c}):e.exports.apply=c}(Il);var kc,Zc,Tc=Object.prototype.toString,Rc=function(e){var t=Tc.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===Tc.call(e.callee)),r};var Xc=Array.prototype.slice,Ec=Rc,Cc=Object.keys,jc=Cc?function(e){return Cc(e)}:function(){if(Zc)return kc;var e;if(Zc=1,!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Rc,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),a=o.call((function(){}),"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(e){var t=e.constructor;return t&&t.prototype===e},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},O=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!c["$"+e]&&t.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{l(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();e=function(e){var o=null!==e&&"object"==typeof e,c="[object Function]"===r.call(e),p=n(e),u=o&&"[object String]"===r.call(e),d=[];if(!o&&!c&&!p)throw new TypeError("Object.keys called on a non-object");var f=a&&c;if(u&&e.length>0&&!t.call(e,0))for(var h=0;h<e.length;++h)d.push(String(h));if(p&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var g in e)f&&"prototype"===g||!t.call(e,g)||d.push(String(g));if(i)for(var y=function(e){if("undefined"==typeof window||!O)return l(e);try{return l(e)}catch(e){return!1}}(e),S=0;S<s.length;++S)y&&"constructor"===s[S]||!t.call(e,s[S])||d.push(s[S]);return d}}return kc=e}(),Yc=Object.keys;jc.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return Ec(e)?Yc(Xc.call(e)):Yc(e)})}else Object.keys=jc;return Object.keys||jc};var _c=jc,Ac=xc("%Object.defineProperty%",!0),Wc=function(){if(Ac)try{return Ac({},"a",{value:1}),!0}catch(e){return!1}return!1};Wc.hasArrayLengthDefineBug=function(){if(!Wc())return null;try{return 1!==Ac([],"length",{value:1}).length}catch(e){return!0}};var Vc=Wc,qc=_c,Ic="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),zc=Object.prototype.toString,Nc=Array.prototype.concat,Mc=Object.defineProperty,Uc=Vc(),Gc=Mc&&Uc,Dc=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(o=n)||"[object Function]"!==zc.call(o)||!n())return;var o;Gc?Mc(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},Bc=function(e,t){var r=arguments.length>2?arguments[2]:{},n=qc(t);Ic&&(n=Nc.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o<n.length;o+=1)Dc(e,n[o],t[n[o]],r[n[o]])};Bc.supportsDescriptors=!!Gc;var Lc,Fc,Jc,Kc=Bc,Hc=xc,eO=Il.exports,tO=eO(Hc("String.prototype.indexOf")),rO=function(e,t){var r=Hc(e,!!t);return"function"==typeof r&&tO(e,".prototype.")>-1?eO(r):r},nO={exports:{}};function oO(){if(Fc)return Lc;Fc=1;var e=xc("%Array%"),t=!e.isArray&&rO("Object.prototype.toString");return Lc=e.isArray||function(e){return"[object Array]"===t(e)}}function iO(){return Jc||(Jc=1,nO.exports=oO()),nO.exports}var aO,sO,lO,cO,OO,pO,uO,dO,fO,hO,mO=xc,gO=rO,yO=mO("%TypeError%"),SO=iO(),bO=mO("%Reflect.apply%",!0)||gO("Function.prototype.apply"),QO=function(e,t){var r=arguments.length>2?arguments[2]:[];if(!SO(r))throw new yO("Assertion failed: optional `argumentsList`, if provided, must be a List");return bO(e,t,r)};function wO(){if(cO)return lO;cO=1;var e="function"==typeof Map&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&"function"==typeof t.get?t.get:null,n=e&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&"function"==typeof i.get?i.get:null,s=o&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,c="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,O="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,u=Object.prototype.toString,d=Function.prototype.toString,f=String.prototype.match,h=String.prototype.slice,m=String.prototype.replace,g=String.prototype.toUpperCase,y=String.prototype.toLowerCase,S=RegExp.prototype.test,b=Array.prototype.concat,Q=Array.prototype.join,w=Array.prototype.slice,$=Math.floor,P="function"==typeof BigInt?BigInt.prototype.valueOf:null,v=Object.getOwnPropertySymbols,x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Z="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||"symbol")?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function X(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-$(-e):$(e);if(n!==e){var o=String(n),i=h.call(t,o.length+1);return m.call(o,r,"$&_")+"."+m.call(m.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return m.call(t,r,"$&_")}var E=sO?aO:(sO=1,aO=Et.inspect),C=E.custom,j=V(C)?C:null;function Y(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function _(e){return m.call(String(e),/"/g,""")}function A(e){return!("[object Array]"!==z(e)||Z&&"object"==typeof e&&Z in e)}function W(e){return!("[object RegExp]"!==z(e)||Z&&"object"==typeof e&&Z in e)}function V(e){if(k)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}lO=function e(t,o,i,u){var g=o||{};if(I(g,"quoteStyle")&&"single"!==g.quoteStyle&&"double"!==g.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(I(g,"maxStringLength")&&("number"==typeof g.maxStringLength?g.maxStringLength<0&&g.maxStringLength!==1/0:null!==g.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var S=!I(g,"customInspect")||g.customInspect;if("boolean"!=typeof S&&"symbol"!==S)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(I(g,"indent")&&null!==g.indent&&"\t"!==g.indent&&!(parseInt(g.indent,10)===g.indent&&g.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(I(g,"numericSeparator")&&"boolean"!=typeof g.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var $=g.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return M(t,g);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var v=String(t);return $?X(t,v):v}if("bigint"==typeof t){var C=String(t)+"n";return $?X(t,C):C}var q=void 0===g.depth?5:g.depth;if(void 0===i&&(i=0),i>=q&&q>0&&"object"==typeof t)return A(t)?"[Array]":"[Object]";var U=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Q.call(Array(e.indent+1)," ")}return{base:r,prev:Q.call(Array(t+1),r)}}(g,i);if(void 0===u)u=[];else if(N(u,t)>=0)return"[Circular]";function J(t,r,n){if(r&&(u=w.call(u)).push(r),n){var o={depth:g.depth};return I(g,"quoteStyle")&&(o.quoteStyle=g.quoteStyle),e(t,o,i+1,u)}return e(t,g,i+1,u)}if("function"==typeof t&&!W(t)){var K=function(e){if(e.name)return e.name;var t=f.call(d.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),H=F(t,J);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(H.length>0?" { "+Q.call(H,", ")+" }":"")}if(V(t)){var ee=k?m.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):x.call(t);return"object"!=typeof t||k?ee:G(ee)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var te="<"+y.call(String(t.nodeName)),re=t.attributes||[],ne=0;ne<re.length;ne++)te+=" "+re[ne].name+"="+Y(_(re[ne].value),"double",g);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+="</"+y.call(String(t.nodeName))+">"}if(A(t)){if(0===t.length)return"[]";var oe=F(t,J);return U&&!function(e){for(var t=0;t<e.length;t++)if(N(e[t],"\n")>=0)return!1;return!0}(oe)?"["+L(oe,U)+"]":"[ "+Q.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==z(e)||Z&&"object"==typeof e&&Z in e)}(t)){var ie=F(t,J);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Q.call(ie,", ")+" }":"{ ["+String(t)+"] "+Q.call(b.call("[cause]: "+J(t.cause),ie),", ")+" }"}if("object"==typeof t&&S){if(j&&"function"==typeof t[j]&&E)return E(t,{depth:q-i});if("symbol"!==S&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!r||!e||"object"!=typeof e)return!1;try{r.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return n&&n.call(t,(function(e,r){ae.push(J(r,t,!0)+" => "+J(e,t))})),B("Map",r.call(t),ae,U)}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{r.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return s&&s.call(t,(function(e){se.push(J(e,t))})),B("Set",a.call(t),se,U)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e,l);try{c.call(e,c)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return D("WeakMap");if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e,c);try{l.call(e,l)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return D("WeakSet");if(function(e){if(!O||!e||"object"!=typeof e)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return D("WeakRef");if(function(e){return!("[object Number]"!==z(e)||Z&&"object"==typeof e&&Z in e)}(t))return G(J(Number(t)));if(function(e){if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}(t))return G(J(P.call(t)));if(function(e){return!("[object Boolean]"!==z(e)||Z&&"object"==typeof e&&Z in e)}(t))return G(p.call(t));if(function(e){return!("[object String]"!==z(e)||Z&&"object"==typeof e&&Z in e)}(t))return G(J(String(t)));if(!function(e){return!("[object Date]"!==z(e)||Z&&"object"==typeof e&&Z in e)}(t)&&!W(t)){var le=F(t,J),ce=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,Oe=t instanceof Object?"":"null prototype",pe=!ce&&Z&&Object(t)===t&&Z in t?h.call(z(t),8,-1):Oe?"Object":"",ue=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||Oe?"["+Q.call(b.call([],pe||[],Oe||[]),": ")+"] ":"");return 0===le.length?ue+"{}":U?ue+"{"+L(le,U)+"}":ue+"{ "+Q.call(le,", ")+" }"}return String(t)};var q=Object.prototype.hasOwnProperty||function(e){return e in this};function I(e,t){return q.call(e,t)}function z(e){return u.call(e)}function N(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function M(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return M(h.call(e,0,t.maxStringLength),t)+n}return Y(m.call(m.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,U),"single",t)}function U(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+g.call(t.toString(16))}function G(e){return"Object("+e+")"}function D(e){return e+" { ? }"}function B(e,t,r,n){return e+" ("+t+") {"+(n?L(r,n):Q.call(r,", "))+"}"}function L(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+Q.call(e,","+r)+"\n"+t.prev}function F(e,t){var r=A(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=I(e,o)?t(e[o],e):""}var i,a="function"==typeof v?v(e):[];if(k){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)I(e,l)&&(r&&String(Number(l))===l&&l<e.length||k&&i["$"+l]instanceof Symbol||(S.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"==typeof v)for(var c=0;c<a.length;c++)T.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}return lO}function $O(){return pO?OO:(pO=1,OO=function(e){return"string"==typeof e||"symbol"==typeof e})}function PO(){if(hO)return fO;hO=1;var e=dO?uO:(dO=1,uO=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0});return fO=function(t){return"symbol"==typeof t?"Symbol":"bigint"==typeof t?"BigInt":e(t)}}var vO,xO,kO=xc("%TypeError%"),ZO=wO(),TO=$O(),RO=PO(),XO=function(e,t){if("Object"!==RO(e))throw new kO("Assertion failed: Type(O) is not Object");if(!TO(t))throw new kO("Assertion failed: IsPropertyKey(P) is not true, got "+ZO(t));return e[t]};var EO,CO,jO,YO={exports:{}};function _O(){if(CO)return EO;CO=1;var e,t,r=Function.prototype.toString,n="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof n&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw t}}),t={},n((function(){throw 42}),null,e)}catch(e){e!==t&&(n=null)}else n=null;var o=/^\s*class\b/,i=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},a=function(e){try{return!i(e)&&(r.call(e),!0)}catch(e){return!1}},s=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),O=function(){return!1};if("object"==typeof document){var p=document.all;s.call(p)===s.call(document.all)&&(O=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=s.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}return EO=n?function(r){if(O(r))return!0;if(!r)return!1;if("function"!=typeof r&&"object"!=typeof r)return!1;try{n(r,null,e)}catch(e){if(e!==t)return!1}return!i(r)&&a(r)}:function(e){if(O(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(l)return a(e);if(i(e))return!1;var t=s.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&a(e)}}function AO(){return jO||(jO=1,YO.exports=_O()),YO.exports}var WO,VO,qO,IO,zO,NO,MO=xc("%TypeError%"),UO=function(){if(xO)return vO;xO=1;var e=xc("%TypeError%"),t=wO(),r=$O();return vO=function(n,o){if(!r(o))throw new e("Assertion failed: IsPropertyKey(P) is not true, got "+t(o));return n[o]}}(),GO=AO(),DO=$O(),BO=wO();function LO(){if(VO)return WO;VO=1;var e=Gl;return WO=function(){return e()&&!!Symbol.toStringTag}}function FO(){if(IO)return qO;IO=1;var e,t,r,n,o=rO,i=LO()();if(i){e=o("Object.prototype.hasOwnProperty"),t=o("RegExp.prototype.exec"),r={};var a=function(){throw r};n={toString:a,valueOf:a},"symbol"==typeof Symbol.toPrimitive&&(n[Symbol.toPrimitive]=a)}var s=o("Object.prototype.toString"),l=Object.getOwnPropertyDescriptor;return qO=i?function(o){if(!o||"object"!=typeof o)return!1;var i=l(o,"lastIndex");if(!(i&&e(i,"value")))return!1;try{t(o,n)}catch(e){return e===r}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===s(e)}}function JO(){return NO?zO:(NO=1,zO=function(e){return!!e})}var KO=xc("%Symbol.match%",!0),HO=FO(),ep=JO(),tp=xc,rp=tp("%String%"),np=tp("%TypeError%"),op=function(e){if("symbol"==typeof e)throw new np("Cannot convert a Symbol value to a string");return rp(e)},ip={exports:{}},ap=xc("%TypeError%"),sp=function(e,t){if(null==e)throw new ap(t||"Cannot call method on "+e);return e};ip.exports=sp;var lp={exports:{}},cp=function(){return"string"==typeof function(){}.name},Op=Object.getOwnPropertyDescriptor;if(Op)try{Op([],"length")}catch(e){Op=null}cp.functionsHaveConfigurableNames=function(){if(!cp()||!Op)return!1;var e=Op((function(){}),"name");return!!e&&!!e.configurable};var pp=Function.prototype.bind;cp.boundFunctionsHaveNames=function(){return cp()&&"function"==typeof pp&&""!==function(){}.bind().name};var up=cp;!function(e){var t=up.functionsHaveConfigurableNames(),r=Object,n=TypeError;e.exports=function(){if(null!=this&&this!==r(this))throw new n("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},t&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})}(lp);var dp=lp.exports,fp=Kc.supportsDescriptors,hp=Object.getOwnPropertyDescriptor,mp=function(){if(fp&&"gim"===/a/gim.flags){var e=hp(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var t="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(r,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return dp},gp=Kc.supportsDescriptors,yp=mp,Sp=Object.getOwnPropertyDescriptor,bp=Object.defineProperty,Qp=TypeError,wp=Object.getPrototypeOf,$p=/a/,Pp=Kc,vp=Il.exports,xp=lp.exports,kp=mp,Zp=function(){if(!gp||!wp)throw new Qp("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=yp(),t=wp($p),r=Sp(t,"flags");return r&&r.get===e||bp(t,"flags",{configurable:!0,enumerable:!1,get:e}),e},Tp=vp(kp());Pp(Tp,{getPolyfill:kp,implementation:xp,shim:Zp});var Rp,Xp,Ep,Cp,jp,Yp,_p,Ap,Wp=Tp;function Vp(){return Xp?Rp:(Xp=1,Rp=function(e){return"number"==typeof e&&e>=55296&&e<=56319})}function qp(){return Cp?Ep:(Cp=1,Ep=function(e){return"number"==typeof e&&e>=56320&&e<=57343})}function Ip(){if(Yp)return jp;Yp=1;var e=xc,t=e("%TypeError%"),r=e("%String.fromCharCode%"),n=Vp(),o=qp();return jp=function(e,i){if(!n(e)||!o(i))throw new t("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return r(e)+r(i)}}function zp(){if(Ap)return _p;Ap=1;var e=xc("%TypeError%"),t=rO,r=Vp(),n=qp(),o=PO(),i=Ip(),a=t("String.prototype.charAt"),s=t("String.prototype.charCodeAt");return _p=function(t,l){if("String"!==o(t))throw new e("Assertion failed: `string` must be a String");var c=t.length;if(l<0||l>=c)throw new e("Assertion failed: `position` must be >= 0, and < the length of `string`");var O=s(t,l),p=a(t,l),u=r(O),d=n(O);if(!u&&!d)return{"[[CodePoint]]":p,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(d||l+1===c)return{"[[CodePoint]]":p,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var f=s(t,l+1);return n(f)?{"[[CodePoint]]":i(O,f),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":p,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}}}var Np,Mp,Up=Number.isNaN||function(e){return e!=e},Gp=Up,Dp=function(e){return("number"==typeof e||"bigint"==typeof e)&&!Gp(e)&&e!==1/0&&e!==-1/0};function Bp(){if(Mp)return Np;Mp=1;var e=xc,t=e("%Math.abs%"),r=e("%Math.floor%"),n=Up,o=Dp;return Np=function(e){if("number"!=typeof e||n(e)||!o(e))return!1;var i=t(e);return r(i)===i}}var Lp,Fp,Jp,Kp,Hp,eu,tu,ru,nu,ou,iu,au,su,lu,cu,Ou,pu,uu,du,fu,hu,mu,gu,yu,Su,bu,Qu,wu,$u,Pu,vu=xc,xu=vu("%Math%"),ku=vu("%Number%").MAX_SAFE_INTEGER||xu.pow(2,53)-1;function Zu(){if(eu)return Hp;eu=1;var e=Vc,t=xc,r=e()&&t("%Object.defineProperty%",!0),n=e.hasArrayLengthDefineBug(),o=n&&oO(),i=rO("Object.prototype.propertyIsEnumerable");return Hp=function(e,t,a,s,l,c){if(!r){if(!e(c))return!1;if(!c["[[Configurable]]"]||!c["[[Writable]]"])return!1;if(l in s&&i(s,l)!==!!c["[[Enumerable]]"])return!1;var O=c["[[Value]]"];return s[l]=O,t(s[l],O)}return n&&"length"===l&&"[[Value]]"in c&&o(s)&&s.length!==c["[[Value]]"]?(s.length=c["[[Value]]"],s.length===c["[[Value]]"]):(r(s,l,a(c)),!0)},Hp}function Tu(){if(ru)return tu;ru=1;var e=Hl;return tu=function(t){return e(t,"[[StartIndex]]")&&e(t,"[[EndIndex]]")&&t["[[StartIndex]]"]>=0&&t["[[EndIndex]]"]>=t["[[StartIndex]]"]&&String(parseInt(t["[[StartIndex]]"],10))===String(t["[[StartIndex]]"])&&String(parseInt(t["[[EndIndex]]"],10))===String(t["[[EndIndex]]"])}}function Ru(){if(ou)return nu;ou=1;var e=xc,t=e("%TypeError%"),r=e("%SyntaxError%"),n=Hl,o=Bp(),i={"Property Descriptor":function(e){var r={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};if(!e)return!1;for(var o in e)if(n(e,o)&&!r[o])return!1;var i=n(e,"[[Value]]"),a=n(e,"[[Get]]")||n(e,"[[Set]]");if(i&&a)throw new t("Property Descriptors may not be both accessor and data descriptors");return!0},"Match Record":Tu(),"Iterator Record":function(e){return n(e,"[[Iterator]]")&&n(e,"[[NextMethod]]")&&n(e,"[[Done]]")},"PromiseCapability Record":function(e){return!!e&&n(e,"[[Resolve]]")&&"function"==typeof e["[[Resolve]]"]&&n(e,"[[Reject]]")&&"function"==typeof e["[[Reject]]"]&&n(e,"[[Promise]]")&&e["[[Promise]]"]&&"function"==typeof e["[[Promise]]"].then},"AsyncGeneratorRequest Record":function(e){return!!e&&n(e,"[[Completion]]")&&n(e,"[[Capability]]")&&i["PromiseCapability Record"](e["[[Capability]]"])},"RegExp Record":function(e){return e&&n(e,"[[IgnoreCase]]")&&"boolean"==typeof e["[[IgnoreCase]]"]&&n(e,"[[Multiline]]")&&"boolean"==typeof e["[[Multiline]]"]&&n(e,"[[DotAll]]")&&"boolean"==typeof e["[[DotAll]]"]&&n(e,"[[Unicode]]")&&"boolean"==typeof e["[[Unicode]]"]&&n(e,"[[CapturingGroupsCount]]")&&"number"==typeof e["[[CapturingGroupsCount]]"]&&o(e["[[CapturingGroupsCount]]"])&&e["[[CapturingGroupsCount]]"]>=0}};return nu=function(e,n,o,a){var s=i[n];if("function"!=typeof s)throw new r("unknown record type: "+n);if("Object"!==e(a)||!s(a))throw new t(o+" must be a "+n)},nu}function Xu(){return au?iu:(au=1,iu=function(e){if(void 0===e)return e;var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=!!e["[[Configurable]]"]),t})}function Eu(){if(lu)return su;lu=1;var e=Ru(),t=Xu(),r=PO();return su=function(n){return void 0!==n&&e(r,"Property Descriptor","Desc",n),t(n)}}function Cu(){if(Ou)return cu;Ou=1;var e=Hl,t=PO(),r=Ru();return cu=function(n){return void 0!==n&&(r(t,"Property Descriptor","Desc",n),!(!e(n,"[[Value]]")&&!e(n,"[[Writable]]")))}}function ju(){if(uu)return pu;uu=1;var e=Up;return pu=function(t,r){return t===r?0!==t||1/t==1/r:e(t)&&e(r)}}function Yu(){return mu||(mu=1,hu=function(e,t){for(var r=0;r<e.length;r+=1)t(e[r],r,e)}),hu}function _u(){if(yu)return gu;yu=1;var e=xc,t=rO,r=wO(),n=e("%TypeError%"),o=e("%WeakMap%",!0),i=e("%Map%",!0),a=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),l=t("WeakMap.prototype.has",!0),c=t("Map.prototype.get",!0),O=t("Map.prototype.set",!0),p=t("Map.prototype.has",!0),u=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};return gu=function(){var e,t,d,f={assert:function(e){if(!f.has(e))throw new n("Side channel does not contain "+r(e))},get:function(r){if(o&&r&&("object"==typeof r||"function"==typeof r)){if(e)return a(e,r)}else if(i){if(t)return c(t,r)}else if(d)return function(e,t){var r=u(e,t);return r&&r.value}(d,r)},has:function(r){if(o&&r&&("object"==typeof r||"function"==typeof r)){if(e)return l(e,r)}else if(i){if(t)return p(t,r)}else if(d)return function(e,t){return!!u(e,t)}(d,r);return!1},set:function(r,n){o&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new o),s(e,r,n)):i?(t||(t=new i),O(t,r,n)):(d||(d={key:{},next:null}),function(e,t,r){var n=u(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(d,r,n))}};return f}}function Au(){if(bu)return Su;bu=1;var e=xc,t=Hl,r=_u()(),n=e("%TypeError%"),o={assert:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new n("`O` is not an object");if("string"!=typeof t)throw new n("`slot` must be a string");if(r.assert(e),!o.has(e,t))throw new n("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new n("`O` is not an object");if("string"!=typeof t)throw new n("`slot` must be a string");var o=r.get(e);return o&&o["$"+t]},has:function(e,o){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new n("`O` is not an object");if("string"!=typeof o)throw new n("`slot` must be a string");var i=r.get(e);return!!i&&t(i,"$"+o)},set:function(e,t,o){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new n("`O` is not an object");if("string"!=typeof t)throw new n("`slot` must be a string");var i=r.get(e);i||(i={},r.set(e,i)),i["$"+t]=o}};return Object.freeze&&Object.freeze(o),Su=o}var Wu,Vu,qu,Iu,zu,Nu,Mu=xc("%TypeError%"),Uu=$O(),Gu=ju(),Du=PO(),Bu=function(){try{return delete[].length,!0}catch(e){return!1}}(),Lu=function(e,t,r,n){if("Object"!==Du(e))throw new Mu("Assertion failed: `O` must be an Object");if(!Uu(t))throw new Mu("Assertion failed: `P` must be a Property Key");if("Boolean"!==Du(n))throw new Mu("Assertion failed: `Throw` must be a Boolean");if(n){if(e[t]=r,Bu&&!Gu(e[t],r))throw new Mu("Attempted to assign to readonly property.");return!0}try{return e[t]=r,!Bu||Gu(e[t],r)}catch(e){return!1}},Fu=xc("%Math.abs%"),Ju=PO(),Ku=Math.floor;function Hu(){if(Nu)return zu;Nu=1;var e=Date.prototype.getDay,t=Object.prototype.toString,r=LO()();return zu=function(n){return"object"==typeof n&&null!==n&&(r?function(t){try{return e.call(t),!0}catch(e){return!1}}(n):"[object Date]"===t.call(n))}}var ed,td,rd,nd,od,id,ad,sd,ld,cd,Od,pd,ud,dd,fd,hd,md,gd={exports:{}};function yd(){if(ed)return gd.exports;ed=1;var e=Object.prototype.toString;if(Ll()){var t=Symbol.prototype.toString,r=/^Symbol\(.*\)$/;gd.exports=function(n){if("symbol"==typeof n)return!0;if("[object Symbol]"!==e.call(n))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&r.test(t.call(e))}(n)}catch(e){return!1}}}else gd.exports=function(e){return!1};return gd.exports}function Sd(){if(rd)return td;rd=1;var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,t=Iu?qu:(Iu=1,qu=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}),r=_O(),n=Hu(),o=yd();return td=function(i){if(t(i))return i;var a,s="default";if(arguments.length>1&&(arguments[1]===String?s="string":arguments[1]===Number&&(s="number")),e&&(Symbol.toPrimitive?a=function(e,t){var n=e[t];if(null!=n){if(!r(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}}(i,Symbol.toPrimitive):o(i)&&(a=Symbol.prototype.valueOf)),void 0!==a){var l=a.call(i,s);if(t(l))return l;throw new TypeError("unable to convert exotic object to primitive")}return"default"===s&&(n(i)||o(i))&&(s="string"),function(e,n){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof n||"number"!==n&&"string"!==n)throw new TypeError('hint must be "string" or "number"');var o,i,a,s="string"===n?["toString","valueOf"]:["valueOf","toString"];for(a=0;a<s.length;++a)if(o=e[s[a]],r(o)&&(i=o.call(e),t(i)))return i;throw new TypeError("No default value")}(i,"default"===s?"number":s)},td}function bd(){if(ld)return sd;ld=1;var e=ip.exports,t=op,r=rO("String.prototype.replace"),n=/^\s$/.test(""),o=n?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,i=n?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;return sd=function(){var n=t(e(this));return r(r(n,o,""),i,"")},sd}function Qd(){if(Od)return cd;Od=1;var e=bd(),t="";return cd=function(){return String.prototype.trim&&""==="".trim()&&t.trim()===t&&"_"==="_".trim()&&"_"==="_".trim()?String.prototype.trim:e}}function wd(){if(fd)return dd;fd=1;var e=Il.exports,t=Kc,r=ip.exports,n=bd(),o=Qd(),i=function(){if(ud)return pd;ud=1;var e=Kc,t=Qd();return pd=function(){var r=t();return e(String.prototype,{trim:r},{trim:function(){return String.prototype.trim!==r}}),r},pd}(),a=e(o()),s=function(e){return r(e),a(e)};return t(s,{getPolyfill:o,implementation:n,shim:i}),dd=s}var $d,Pd,vd=xc,xd=vd("%TypeError%"),kd=vd("%Number%"),Zd=Vu?Wu:(Vu=1,Wu=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}),Td=function(){if(od)return nd;od=1;var e=Sd();return nd=function(t){return arguments.length>1?e(t,arguments[1]):e(t)}}(),Rd=function(){if(md)return hd;md=1;var e=xc,t=e("%Number%"),r=e("%RegExp%"),n=e("%TypeError%"),o=e("%parseInt%"),i=rO,a=function(){if(ad)return id;ad=1;var e=rO,t=xc,r=FO(),n=e("RegExp.prototype.exec"),o=t("%TypeError%");return id=function(e){if(!r(e))throw new o("`regex` must be a RegExp");return function(t){return null!==n(e,t)}},id}(),s=i("String.prototype.slice"),l=a(/^0b[01]+$/i),c=a(/^0o[0-7]+$/i),O=a(/^[-+]0x[0-9a-f]+$/i),p=a(new r("["+["
","",""].join("")+"]","g")),u=wd(),d=PO();return hd=function e(r){if("String"!==d(r))throw new n("Assertion failed: `argument` is not a String");if(l(r))return t(o(s(r,2),2));if(c(r))return t(o(s(r,2),8));if(p(r)||O(r))return NaN;var i=u(r);return i!==r?e(i):t(r)},hd}(),Xd=function(e){return Fu(e)},Ed=function(e){return"BigInt"===Ju(e)?e:Ku(e)},Cd=function(e){var t=Zd(e)?e:Td(e,kd);if("symbol"==typeof t)throw new xd("Cannot convert a Symbol value to a number");if("bigint"==typeof t)throw new xd("Conversion from 'BigInt' to 'number' is not allowed.");return"string"==typeof t?Rd(t):kd(t)},jd=Up,Yd=Dp,_d=function(e){return e>=0?1:-1},Ad=ku,Wd=function(e){var t=Cd(e);if(jd(t)||0===t)return 0;if(!Yd(t))return t;var r=Ed(Xd(t));return 0===r?0:_d(t)*r},Vd=function(e){var t=Wd(e);return t<=0?0:t>Ad?Ad:t};var qd=xc,Id=Ll(),zd=qd("%TypeError%"),Nd=qd("%IteratorPrototype%",!0),Md=function(){if(Fp)return Lp;Fp=1;var e=xc,t=zp(),r=PO(),n=Bp(),o=ku,i=e("%TypeError%");return Lp=function(e,a,s){if("String"!==r(e))throw new i("Assertion failed: `S` must be a String");if(!n(a)||a<0||a>o)throw new i("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if("Boolean"!==r(s))throw new i("Assertion failed: `unicode` must be a Boolean");return s?a+1>=e.length?a+1:a+t(e,a)["[[CodeUnitCount]]"]:a+1},Lp}(),Ud=function(){if(Kp)return Jp;Kp=1;var e=xc("%TypeError%"),t=PO();return Jp=function(r,n){if("Boolean"!==t(n))throw new e("Assertion failed: Type(done) is not Boolean");return{value:r,done:n}}}(),Gd=function(){if(fu)return du;fu=1;var e=xc("%TypeError%"),t=Zu(),r=Eu(),n=Cu(),o=$O(),i=ju(),a=PO();return du=function(s,l,c){if("Object"!==a(s))throw new e("Assertion failed: Type(O) is not Object");if(!o(l))throw new e("Assertion failed: IsPropertyKey(P) is not true");return t(n,i,r,s,l,{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":c,"[[Writable]]":!0})}}(),Dd=XO,Bd=function(){if(wu)return Qu;wu=1;var e=xc,t=e("%Object.create%",!0),r=e("%TypeError%"),n=e("%SyntaxError%"),o=iO(),i=PO(),a=Yu(),s=Au(),l=Kl();return Qu=function(e){if(null!==e&&"Object"!==i(e))throw new r("Assertion failed: `proto` must be null or an object");var c,O=arguments.length<2?[]:arguments[1];if(!o(O))throw new r("Assertion failed: `additionalInternalSlotsList` must be an Array");if(t)c=t(e);else if(l)c={__proto__:e};else{if(null===e)throw new n("native Object.create support is required to create null objects");var p=function(){};p.prototype=e,c=new p}return O.length>0&&a(O,(function(e){s.set(c,e,void 0)})),c},Qu}(),Ld=function(){if(Pu)return $u;Pu=1;var e=xc("%TypeError%"),t=rO("RegExp.prototype.exec"),r=QO,n=XO,o=AO(),i=PO();return $u=function(a,s){if("Object"!==i(a))throw new e("Assertion failed: `R` must be an Object");if("String"!==i(s))throw new e("Assertion failed: `S` must be a String");var l=n(a,"exec");if(o(l)){var c=r(l,a,[s]);if(null===c||"Object"===i(c))return c;throw new e('"exec" method must return `null` or an Object')}return t(a,s)},$u}(),Fd=Lu,Jd=Vd,Kd=op,Hd=PO(),ef=Au(),tf=function(){if(Pd)return $d;Pd=1;var e=xc("%Object.defineProperty%",!0),t=LO()(),r=Hl,n=t?Symbol.toStringTag:null;return $d=function(t,o){var i=arguments.length>2&&arguments[2]&&arguments[2].force;!n||!i&&r(t,n)||(e?e(t,n,{configurable:!0,enumerable:!1,value:o,writable:!1}):t[n]=o)},$d}(),rf=function(e,t,r,n){if("String"!==Hd(t))throw new zd("`S` must be a string");if("Boolean"!==Hd(r))throw new zd("`global` must be a boolean");if("Boolean"!==Hd(n))throw new zd("`fullUnicode` must be a boolean");ef.set(this,"[[IteratingRegExp]]",e),ef.set(this,"[[IteratedString]]",t),ef.set(this,"[[Global]]",r),ef.set(this,"[[Unicode]]",n),ef.set(this,"[[Done]]",!1)};Nd&&(rf.prototype=Bd(Nd));if(Gd(rf.prototype,"next",(function(){var e=this;if("Object"!==Hd(e))throw new zd("receiver must be an object");if(!(e instanceof rf&&ef.has(e,"[[IteratingRegExp]]")&&ef.has(e,"[[IteratedString]]")&&ef.has(e,"[[Global]]")&&ef.has(e,"[[Unicode]]")&&ef.has(e,"[[Done]]")))throw new zd('"this" value must be a RegExpStringIterator instance');if(ef.get(e,"[[Done]]"))return Ud(void 0,!0);var t=ef.get(e,"[[IteratingRegExp]]"),r=ef.get(e,"[[IteratedString]]"),n=ef.get(e,"[[Global]]"),o=ef.get(e,"[[Unicode]]"),i=Ld(t,r);if(null===i)return ef.set(e,"[[Done]]",!0),Ud(void 0,!0);if(n){if(""===Kd(Dd(i,"0"))){var a=Jd(Dd(t,"lastIndex")),s=Md(r,a,o);Fd(t,"lastIndex",s,!0)}return Ud(i,!1)}return ef.set(e,"[[Done]]",!0),Ud(i,!1)})),Id&&(tf(rf.prototype,"RegExp String Iterator"),Symbol.iterator&&"function"!=typeof rf.prototype[Symbol.iterator])){Gd(rf.prototype,Symbol.iterator,(function(){return this}))}var nf,of,af,sf,lf,cf,Of,pf,uf,df,ff={exports:{}},hf={exports:{}};function mf(){if(af)return of;af=1;var e=Hl,t=xc("%TypeError%");return of=function(r,n){if("Object"!==r.Type(n))return!1;var o={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var i in n)if(e(n,i)&&!o[i])return!1;if(r.IsDataDescriptor(n)&&r.IsAccessorDescriptor(n))throw new t("Property Descriptors may not be both accessor and data descriptors");return!0}}function gf(){if(lf)return sf;lf=1;var e=Hl,t=PO(),r=Ru();return sf=function(n){return void 0!==n&&(r(t,"Property Descriptor","Desc",n),!(!e(n,"[[Get]]")&&!e(n,"[[Set]]")))}}function yf(){if(Of)return cf;Of=1;var e=Hl,t=xc("%TypeError%"),r=PO(),n=JO(),o=AO();return cf=function(i){if("Object"!==r(i))throw new t("ToPropertyDescriptor requires an object");var a={};if(e(i,"enumerable")&&(a["[[Enumerable]]"]=n(i.enumerable)),e(i,"configurable")&&(a["[[Configurable]]"]=n(i.configurable)),e(i,"value")&&(a["[[Value]]"]=i.value),e(i,"writable")&&(a["[[Writable]]"]=n(i.writable)),e(i,"get")){var s=i.get;if(void 0!==s&&!o(s))throw new t("getter must be a function");a["[[Get]]"]=s}if(e(i,"set")){var l=i.set;if(void 0!==l&&!o(l))throw new t("setter must be a function");a["[[Set]]"]=l}if((e(a,"[[Get]]")||e(a,"[[Set]]"))&&(e(a,"[[Value]]")||e(a,"[[Writable]]")))throw new t("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return a},cf}function Sf(){if(uf)return pf;uf=1;var e=xc("%TypeError%"),t=mf(),r=Zu(),n=Eu(),o=gf(),i=Cu(),a=$O(),s=ju(),l=yf(),c=PO();return pf=function(O,p,u){if("Object"!==c(O))throw new e("Assertion failed: Type(O) is not Object");if(!a(p))throw new e("Assertion failed: IsPropertyKey(P) is not true");var d=t({Type:c,IsDataDescriptor:i,IsAccessorDescriptor:o},u)?u:l(u);if(!t({Type:c,IsDataDescriptor:i,IsAccessorDescriptor:o},d))throw new e("Assertion failed: Desc is not a valid Property Descriptor");return r(i,s,n,O,p,d)},pf}var bf=xc,Qf=bf("%Symbol.species%",!0),wf=bf("%TypeError%"),$f=function(){if(df)return ff.exports;df=1;var e=(nf||(nf=1,hf.exports=xc),hf.exports)("%Reflect.construct%",!0),t=Sf();try{t({},"",{"[[Get]]":function(){}})}catch(e){t=null}if(t&&e){var r={},n={};t(n,"length",{"[[Get]]":function(){throw r},"[[Enumerable]]":!0}),ff.exports=function(t){try{e(t,n)}catch(e){return e===r}}}else ff.exports=function(e){return"function"==typeof e&&!!e.prototype};return ff.exports}(),Pf=PO(),vf=function(e,t,r,n){return new rf(e,t,r,n)},xf=XO,kf=Lu,Zf=function(e,t){if("Object"!==Pf(e))throw new wf("Assertion failed: Type(O) is not Object");var r=e.constructor;if(void 0===r)return t;if("Object"!==Pf(r))throw new wf("O.constructor is not an Object");var n=Qf?r[Qf]:void 0;if(null==n)return t;if($f(n))return n;throw new wf("no constructor found")},Tf=Vd,Rf=op,Xf=PO(),Ef=Wp,Cf=rO("String.prototype.indexOf"),jf=RegExp,Yf="flags"in RegExp.prototype,_f=function(e){var t=this;if("Object"!==Xf(t))throw new TypeError('"this" value must be an Object');var r=Rf(e),n=function(e,t){var r="flags"in t?xf(t,"flags"):Rf(Ef(t));return{flags:r,matcher:new e(Yf&&"string"==typeof r?t:e===jf?t.source:t,r)}}(Zf(t,jf),t),o=n.flags,i=n.matcher,a=Tf(xf(t,"lastIndex"));kf(i,"lastIndex",a,!0);var s=Cf(o,"g")>-1,l=Cf(o,"u")>-1;return vf(i,r,s,l)},Af=Object.defineProperty,Wf=Object.getOwnPropertyDescriptor;if(Af&&Wf){var Vf=Wf(_f,"name");Vf&&Vf.configurable&&Af(_f,"name",{value:"[Symbol.matchAll]"})}var qf=_f,If=Ll(),zf=qf,Nf=function(){return If&&"symbol"==typeof Symbol.matchAll&&"function"==typeof RegExp.prototype[Symbol.matchAll]?RegExp.prototype[Symbol.matchAll]:zf},Mf=QO,Uf=XO,Gf=function(e,t){if(!DO(t))throw new MO("Assertion failed: IsPropertyKey(P) is not true");var r=UO(e,t);if(null!=r){if(!GO(r))throw new MO(BO(t)+" is not a function: "+BO(r));return r}},Df=function(e){if(!e||"object"!=typeof e)return!1;if(KO){var t=e[KO];if(void 0!==t)return ep(t)}return HO(e)},Bf=op,Lf=ip.exports,Ff=rO,Jf=Ll(),Kf=Wp,Hf=Ff("String.prototype.indexOf"),eh=Nf,th=function(e){var t=eh();if(Jf&&"symbol"==typeof Symbol.matchAll){var r=Gf(e,Symbol.matchAll);return r===RegExp.prototype[Symbol.matchAll]&&r!==t?t:r}if(Df(e))return t},rh=function(e){var t=Lf(this);if(null!=e){if(Df(e)){var r="flags"in e?Uf(e,"flags"):Kf(e);if(Lf(r),Hf(Bf(r),"g")<0)throw new TypeError("matchAll requires a global regular expression")}var n=th(e);if(void 0!==n)return Mf(n,e,[t])}var o=Bf(t),i=new RegExp(e,"g");return Mf(th(i),i,[o])},nh=rh,oh=function(){if(String.prototype.matchAll)try{"".matchAll(RegExp.prototype)}catch(e){return String.prototype.matchAll}return nh},ih=Kc,ah=Ll(),sh=oh,lh=Nf,ch=Object.defineProperty,Oh=Object.getOwnPropertyDescriptor,ph=Il.exports,uh=Kc,dh=rh,fh=oh,hh=function(){var e=sh();if(ih(String.prototype,{matchAll:e},{matchAll:function(){return String.prototype.matchAll!==e}}),ah){var t=Symbol.matchAll||(Symbol.for?Symbol.for("Symbol.matchAll"):Symbol("Symbol.matchAll"));if(ih(Symbol,{matchAll:t},{matchAll:function(){return Symbol.matchAll!==t}}),ch&&Oh){var r=Oh(Symbol,t);r&&!r.configurable||ch(Symbol,t,{configurable:!1,enumerable:!1,value:t,writable:!1})}var n=lh(),o={};o[t]=n;var i={};i[t]=function(){return RegExp.prototype[t]!==n},ih(RegExp.prototype,o,i)}return e},mh=ph(dh);uh(mh,{getPolyfill:fh,implementation:dh,shim:hh});var gh=mh,yh=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,bh=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?Sh(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&yh(t,r,i),i};function Qh(e,t){return t<=0?0:(e%t+t)%t}var wh=class extends I{constructor(){super(...arguments),this._updating=!1,this._query="",this._caseSensitive=!0,this._ranges=[],this._activeIndex=void 0}get name(){return"find"}find({query:e,activeIndex:t,caseSensitive:r}){return e?(this.setProps({query:e,activeIndex:t,caseSensitive:r}),({tr:e,dispatch:t})=>this.updateView(e,t)):this.stopFind()}stopFind(){return({tr:e,dispatch:t})=>(this._query="",this._activeIndex=void 0,this.updateView(e,t))}findAndReplace({query:e,caseSensitive:t,replacement:r,index:n}){return o=>{this.setProps({query:e,caseSensitive:t});const{tr:i,dispatch:a}=o,s=this.gatherFindResults(i.doc),l=s[n=Qh(n??this._activeIndex??0,s.length)];return!!l&&(!a||(i.insertText(r,l.from,l.to),this.updateView(i,a)))}}findAndReplaceAll({query:e,caseSensitive:t,replacement:r}){return n=>{this.setProps({query:e,caseSensitive:t});const{tr:o}=n,i=this.gatherFindResults(o.doc);for(let e=i.length-1;e>=0;e--){const{from:t,to:n}=i[e];o.insertText(r,t,n)}return this.stopFind()(n)}}findRanges(e){return this.store.commands.find(e),{activeIndex:this._activeIndex,ranges:this._ranges}}createPlugin(){return{state:{init:()=>Qi.empty,apply:(e,t)=>{if(this._updating||e.docChanged&&this.options.alwaysFind){const t=e.doc;return this._ranges=this.gatherFindResults(t),this.normalizeActiveIndex(),this.scrollToActiveResult(),this.createDecorationSet(t)}return e.docChanged?t.map(e.mapping,e.doc):t}},props:{decorations:e=>this.getPluginState(e)}}}setProps({query:e,activeIndex:t,caseSensitive:r}){this._query=(e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})(e),this._activeIndex=t,this._caseSensitive=r??!1}gatherFindResults(e){if(!this._query)return[];const t=new RegExp(this._query,this._caseSensitive?"gu":"gui"),r=[];return e.descendants(((e,n)=>{if(!e.isTextblock)return!0;const o=n+1;for(const n of gh(e.textContent,t)){const e=o+(n.index??0),t=e+n[0].length;r.push({from:e,to:t})}return!1})),r}normalizeActiveIndex(){null!=this._activeIndex&&(this._activeIndex=Qh(this._activeIndex,this._ranges.length))}createDecorationSet(e){const t=this._ranges.map(((e,t)=>yi.inline(e.from,e.to,t===this._activeIndex?this.options.activeDecoration:this.options.decoration)));return Qi.create(e,t)}updateView(e,t){return this._updating=!0,t&&t(e),this._updating=!1,!0}scrollToActiveResult(){var e;if(null==this._activeIndex)return;const t=this._ranges[this._activeIndex];if(!t)return;const r=this.store.view,n=r.state.doc.content.size,o=t.from;if(o>n)return;const i=r.domAtPos(o).node;null==(e=null==i?void 0:i.scrollIntoView)||e.call(i,{block:"nearest",behavior:"smooth"})}};bh([E()],wh.prototype,"find",1),bh([E()],wh.prototype,"stopFind",1),bh([E()],wh.prototype,"findAndReplace",1),bh([E()],wh.prototype,"findAndReplaceAll",1),bh([W()],wh.prototype,"findRanges",1),wh=bh([V({defaultOptions:{decoration:{style:"background-color: yellow;"},activeDecoration:{style:"background-color: orange;"},alwaysFind:!1}})],wh);const $h=new Map,Ph={current:Ue(ze.codemirorTheme)},vh=e=>{Ph.current=Ue(e),$h.forEach((e=>{e.cm.dispatch({effects:e.editorTheme.reconfigure(Ph.current)})}))};class xh{constructor({view:e,getPos:t,node:r,extensions:n=[],languageName:o,createParams:i={}}){this.toggleName="paragraph",this.id=ye(),this.content="",this.updating=!1,this.view=e,this.getPos=t,this.node=r,this.languageConf=new Te,this.editorTheme=new Te,this.schema=r.type.schema,this.languageName=o,this.loadLanguage=Zh,this.content=this.node.textContent;const a=Re.changeFilter.of((e=>(e.docChanged||this.forwardSelection(),!0))),s=Re.create({doc:this.node.textContent,extensions:[Ee.of(this.codeMirrorKeymap()),a,this.languageConf.of([]),this.editorTheme.of(Ph.current),...null!=n?n:[]]});this.cm=new Ce({state:s,dispatch:this.valueChanged.bind(this),...i}),$h.set(this.id,this),this.updateLanguage()}update(e){if(e.type!==this.node.type)return!1;this.node=e,this.content=e.textContent,this.updateLanguage();const t=Th(this.cm.state.doc.toString(),e.textContent);return t&&(this.updating=!0,this.cm.dispatch({changes:{from:t.from,to:t.to,insert:t.text}}),this.updating=!1),!0}setSelection(e,t){this.cm.focus(),this.updating=!0,this.cm.dispatch({selection:{anchor:e,head:t}}),this.updating=!1}updateLanguage(){const e=this.node.attrs.language;if(e===this.languageName)return;const t=this.loadLanguage(e);t&&(ee(t)?t.then((t=>{this.setLanguage(t),this.languageName=e})):(this.setLanguage(t),this.languageName=e))}destroy(){this.cm.destroy(),$h.delete(this.id)}forwardSelection(){if(!this.cm.hasFocus)return;const{state:e}=this.view,t=this.asProseMirrorSelection(e.doc);t.eq(e.selection)||this.view.dispatch(e.tr.setSelection(t))}setLanguage(e){this.cm.dispatch({effects:this.languageConf.reconfigure(e)})}valueChanged(e){if(!this.cm)return;if(this.cm.update([e]),!e.docChanged||this.updating)return;const t=Th(this.node.textContent,e.state.doc.toString());if(t){const e=this.getPos()+1,r=this.view.state.tr.replaceWith(e+t.from,e+t.to,t.text?this.schema.text(t.text):[]);this.view.dispatch(r)}}asProseMirrorSelection(e){const t=this.getPos()+1,{anchor:r,head:n}=this.cm.state.selection.main;return Pn.between(e.resolve(r+t),e.resolve(n+t))}codeMirrorKeymap(){return[{key:"ArrowUp",run:this.maybeEscape("line",-1)},{key:"ArrowLeft",run:this.maybeEscape("char",-1)},{key:"ArrowDown",run:this.maybeEscape("line",1)},{key:"ArrowRight",run:this.maybeEscape("char",1)},{key:"Ctrl-Enter",run:()=>!!Ji(this.view.state,this.view.dispatch)&&(this.view.focus(),!0)},{key:"Backspace",run:()=>{const{ranges:e}=this.cm.state.selection;if(!this.cm||!e||e.length>1)return!1;const t=e[0];if(t&&(!t.empty||t.anchor>0))return!1;if(this.cm.state.doc.lines>=2)return!1;const{state:r}=this.view,n=te(r.schema.nodes,this.toggleName),o=this.getPos(),i=re({pos:o,tr:r.tr,content:n.createChecked({},this.node.content)});return i.setSelection(Pn.near(i.doc.resolve(o))),this.view.dispatch(i),this.view.focus(),!0}}]}maybeEscape(e,t){return r=>{const{state:n}=r;if(n.selection.ranges.some((e=>!e.empty)))return!1;const{anchor:o}=n.selection.main,i=n.doc.lineAt(o),a=o-i.from;if(i.number!==(t<0?1:n.doc.lines)||"char"===e&&a!==(t<0?0:i.length))return!1;const s=this.getPos()+(t<0?0:this.node.nodeSize),l=bn.near(this.view.state.doc.resolve(s),t);return this.view.dispatch(this.view.state.tr.setSelection(l).scrollIntoView()),this.view.focus(),!0}}}const kh=()=>{const e={};for(const t of null!=Me?Me:[])for(const r of t.alias)e[r]=t;return e},Zh=e=>{if("string"!=typeof e)return;const t=kh()[e.toLowerCase()];return t?t.support||t.load():void 0};function Th(e,t){if(e===t)return null;let r=0,n=e.length,o=t.length;for(;r<n&&e.charCodeAt(r)===t.charCodeAt(r);)++r;for(;n>r&&o>r&&e.charCodeAt(n-1)===t.charCodeAt(o-1);)n--,o--;return{from:r,to:n,text:t.slice(r,o)}}const Rh=[Ce.lineWrapping,je({formatNumber:e=>e%10==0||1===e?`${e}`:""}),Ye(),_e(),Ot(),Ge(),Ae(),Re.allowMultipleSelections.of(!0),De(),Be(Le,{fallback:!0}),Fe(),ht(),mt(),We(),Ve(),dt(),Ee.of([...gt,...pt,...ft,...ut,...Je,...yt,...wt])],Xh=[Ae(),_e(),Ot(),qe(),Ie(),Be(Le,{fallback:!0}),Ee.of([...gt,...pt,...ft,...ut,...Je,...yt,...wt])],Eh=20,Ch=22,jh=23,Yh=24,_h=26,Ah=27,Wh=28,Vh=31,qh=34,Ih=37,zh={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},Nh={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Mh={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function Uh(e){return 9==e||10==e||13==e||32==e}let Gh=null,Dh=null,Bh=0;function Lh(e,t){let r=e.pos+t;if(Bh==r&&Dh==e)return Gh;let n=e.peek(t);for(;Uh(n);)n=e.peek(++t);let o="";for(;45==(i=n)||46==i||58==i||i>=65&&i<=90||95==i||i>=97&&i<=122||i>=161;)o+=String.fromCharCode(n),n=e.peek(++t);var i;return Dh=e,Bh=r,Gh=o?o.toLowerCase():n==Fh||n==Jh?void 0:null}const Fh=63,Jh=33;function Kh(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let t=0;t<e.length;t++)this.hash+=(this.hash<<4)+e.charCodeAt(t)+(e.charCodeAt(t)<<8)}const Hh=[6,10,7,8,9],em=new Ct({start:null,shift:(e,t,r,n)=>Hh.indexOf(t)>-1?new Kh(Lh(n,1)||"",e):e,reduce:(e,t)=>t==Eh&&e?e.parent:e,reuse(e,t,r,n){let o=t.type.id;return 6==o||36==o?new Kh(Lh(n,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),tm=new jt(((e,t)=>{if(60!=e.next)return void(e.next<0&&t.context&&e.acceptToken(57));e.advance();let r=47==e.next;r&&e.advance();let n=Lh(e,0);if(void 0===n)return;if(!n)return e.acceptToken(r?14:6);let o=t.context?t.context.name:null;if(r){if(n==o)return e.acceptToken(11);if(o&&Nh[o])return e.acceptToken(57,-2);if(t.dialectEnabled(0))return e.acceptToken(12);for(let e=t.context;e;e=e.parent)if(e.name==n)return;e.acceptToken(13)}else{if("script"==n)return e.acceptToken(7);if("style"==n)return e.acceptToken(8);if("textarea"==n)return e.acceptToken(9);if(zh.hasOwnProperty(n))return e.acceptToken(10);o&&Mh[o]&&Mh[o][n]?e.acceptToken(57,-1):e.acceptToken(6)}}),{contextual:!0}),rm=new jt((e=>{for(let t=0,r=0;;r++){if(e.next<0){r&&e.acceptToken(58);break}if(45==e.next)t++;else{if(62==e.next&&t>=2){r>=3&&e.acceptToken(58,-2);break}t=0}e.advance()}}));const nm=new jt(((e,t)=>{if(47==e.next&&62==e.peek(1)){let r=t.dialectEnabled(1)||function(e){for(;e;e=e.parent)if("svg"==e.name||"math"==e.name)return!0;return!1}(t.context);e.acceptToken(r?5:4,2)}else 62==e.next&&e.acceptToken(4,1)}));function om(e,t,r){let n=2+e.length;return new jt((o=>{for(let i=0,a=0,s=0;;s++){if(o.next<0){s&&o.acceptToken(t);break}if(0==i&&60==o.next||1==i&&47==o.next||i>=2&&i<n&&o.next==e.charCodeAt(i-2))i++,a++;else if(2!=i&&i!=n||!Uh(o.next)){if(i==n&&62==o.next){s>a?o.acceptToken(t,-a):o.acceptToken(r,-(a-2));break}if((10==o.next||13==o.next)&&s){o.acceptToken(t,1);break}i=a=0}else a++;o.advance()}}))}const im=om("script",54,1),am=om("style",55,2),sm=om("textarea",56,3),lm=At({"Text RawText":Wt.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Wt.angleBracket,TagName:Wt.tagName,"MismatchedCloseTag/TagName":[Wt.tagName,Wt.invalid],AttributeName:Wt.attributeName,"AttributeValue UnquotedAttributeValue":Wt.attributeValue,Is:Wt.definitionOperator,"Ent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ag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:em,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[lm],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X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?t.read(o.from+1,o.to-1):t.read(o.from,o.to):"")}return r}function pm(e,t){let r=e.getChild(Ch);return r?t.read(r.from,r.to):" "}function um(e,t,r){let n;for(let o of r)if(!o.attrs||o.attrs(n||(n=Om(e.node.parent.firstChild,t))))return{parser:o.parser};return null}function dm(e=[],t=[]){let r=[],n=[],o=[],i=[];for(let t of e){("script"==t.tag?r:"style"==t.tag?n:"textarea"==t.tag?o:i).push(t)}let a=t.length?Object.create(null):null;for(let e of t)(a[e.name]||(a[e.name]=[])).push(e);return Vt(((e,t)=>{let s=e.type.id;if(s==Wh)return um(e,t,r);if(s==Vh)return um(e,t,n);if(s==qh)return um(e,t,o);if(s==Eh&&i.length){let r,n=e.node,o=n.firstChild,a=o&&pm(o,t);if(a)for(let e of i)if(e.tag==a&&(!e.attrs||e.attrs(r||(r=Om(n,t))))){let t=n.lastChild,r=t.type.id==Ih?t.from:n.to;if(r>o.to)return{parser:e.parser,overlay:[{from:o.to,to:r}]}}}if(a&&s==jh){let r,n=e.node;if(r=n.firstChild){let e=a[t.read(r.from,r.to)];if(e)for(let r of e){if(r.tagName&&r.tagName!=pm(n.parent,t))continue;let e=n.lastChild;if(e.type.id==_h){let t=e.from+1,n=e.lastChild,o=e.to-(n&&n.isError?0:1);if(o>t)return{parser:r.parser,overlay:[{from:t,to:o}]}}else if(e.type.id==Ah)return{parser:r.parser,overlay:[{from:e.from,to:e.to}]}}}}return null}))}const fm=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function hm(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}const mm=new jt(((e,t)=>{for(let n=!1,o=0,i=0;;i++){let{next:a}=e;if(hm(a)||45==a||95==a||n&&((r=a)>=48&&r<=57))!n&&(45!=a||i>0)&&(n=!0),o===i&&45==a&&o++,e.advance();else{if(92!=a||10==e.peek(1)){n&&e.acceptToken(40==a?100:2==o&&t.canShift(2)?2:101);break}e.advance(),e.next>-1&&e.advance(),n=!0}}var r})),gm=new jt((e=>{if(fm.includes(e.peek(-1))){let{next:t}=e;(hm(t)||95==t||35==t||46==t||91==t||58==t&&hm(e.peek(1))||45==t||38==t)&&e.acceptToken(99)}})),ym=new jt((e=>{if(!fm.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),hm(t)){do{e.advance()}while(hm(e.next));e.acceptToken(1)}}})),Sm=At({"AtKeyword import charset namespace keyframes media supports":Wt.definitionKeyword,"from to selector":Wt.keyword,NamespaceName:Wt.namespace,KeyframeName:Wt.labelName,KeyframeRangeName:Wt.operatorKeyword,TagName:Wt.tagName,ClassName:Wt.className,PseudoClassName:Wt.constant(Wt.className),IdName:Wt.labelName,"FeatureName PropertyName":Wt.propertyName,AttributeName:Wt.attributeName,NumberLiteral:Wt.number,KeywordQuery:Wt.keyword,UnaryQueryOp:Wt.operatorKeyword,"CallTag ValueName":Wt.atom,VariableName:Wt.variableName,Callee:Wt.operatorKeyword,Unit:Wt.unit,"UniversalSelector NestingSelector":Wt.definitionOperator,MatchOp:Wt.compareOperator,"ChildOp SiblingOp, LogicOp":Wt.logicOperator,BinOp:Wt.arithmeticOperator,Important:Wt.modifier,Comment:Wt.blockComment,ColorLiteral:Wt.color,"ParenthesizedContent StringLiteral":Wt.string,":":Wt.punctuation,"PseudoOp #":Wt.derefOperator,"; ,":Wt.separator,"( )":Wt.paren,"[ ]":Wt.squareBracket,"{ }":Wt.brace}),bm={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},Qm={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},wm={__proto__:null,not:132,only:132},$m=Yt.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO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f$yR$x$cq!XZ]!T!m#S#U#X#q#z$P$Y$i$j$q$v%Sp![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%SQ!f^R#l!gT#^!Z#_Q|VR!yqQ!x|R#x!yQ!PWR!{rQ!RXR!|sQxUQ!wpQ#i!cQ#o!jQ#p!kQ${$eR%X$zSgPwQ!phQ#r!nR$l#sZfPhw!n#sa!b[`a!V!^!`#d#eR#b!^R!g^R!i_R#n!iS$e#m$fR%V$yV$c#m$f$yQ!rjR#v!rQdOShPwU!ldh#sR#s!nQ$P#SU$p$P$v%SQ$v$YR%S$qQ#_!ZR$W#_Q$r$PR%T$rQpUS!vp$nR$n#|Q$j#qR%P$jQ!ogS#t!o#uR#u!pQ#f!_R$^#fQ$f#mR$|$fQ$z$eR%W$z_cOPdhw!n#s^UOPdhw!n#sQ!uoQ!}tQ#OuQ#PvQ#|#RR$_#hR$Q#SQ!VZQ!d]Q#V!TQ#q!m[$O#S$P$Y$q$v%SQ$R#UQ$T#XS$h#q$jQ$m#zR%O$iR#}#RQiPR#QwQ!c[Q!kaR#Y!VU!_[a!VQ!j`Q#c!^Q#g!`Q$[#dR$]#e",nodeNames:"⚠ Unit VariableName Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName , PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtR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^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Y^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS|SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!OQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[gm,ym,mm,1,2,3,4,new _t("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>bm[e]||-1},{term:58,get:e=>Qm[e]||-1},{term:101,get:e=>wm[e]||-1}],tokenPrec:1200});let Pm=null;function vm(){if(!Pm&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],r=new Set;for(let n in e)"cssText"!=n&&"cssFloat"!=n&&"string"==typeof e[n]&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))),r.has(n)||(t.push(n),r.add(n)));Pm=t.sort().map((e=>({type:"property",label:e})))}return Pm||[]}const xm=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map((e=>({type:"class",label:e}))),km=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map((e=>({type:"keyword",label:e}))).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map((e=>({type:"constant",label:e})))),Zm=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((e=>({type:"type",label:e}))),Tm=/^(\w[\w-]*|-\w[\w-]*|)$/,Rm=/^-(-[\w-]*)?$/;const Xm=new It,Em=["Declaration"];function Cm(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function jm(e,t,r){if(t.to-t.from>4096){let n=Xm.get(t);if(n)return n;let o=[],i=new Set,a=t.cursor(qt.IncludeAnonymous);if(a.firstChild())do{for(let t of jm(e,a.node,r))i.has(t.label)||(i.add(t.label),o.push(t))}while(a.nextSibling());return Xm.set(t,o),o}{let n=[],o=new Set;return t.cursor().iterate((t=>{var i;if(r(t)&&t.matchContext(Em)&&":"==(null===(i=t.node.nextSibling)||void 0===i?void 0:i.name)){let r=e.sliceString(t.from,t.to);o.has(r)||(o.add(r),n.push({label:r,type:"variable"}))}})),n}}const Ym=e=>t=>{let{state:r,pos:n}=t,o=ot(r).resolveInner(n,-1),i=o.type.isError&&o.from==o.to-1&&"-"==r.doc.sliceString(o.from,o.to);if("PropertyName"==o.name||(i||"TagName"==o.name)&&/^(Block|Styles)$/.test(o.resolve(o.to).name))return{from:o.from,options:vm(),validFor:Tm};if("ValueName"==o.name)return{from:o.from,options:km,validFor:Tm};if("PseudoClassName"==o.name)return{from:o.from,options:xm,validFor:Tm};if(e(o)||(t.explicit||i)&&function(e,t){var r;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let n=null===(r=e.parent)||void 0===r?void 0:r.firstChild;return"Callee"==(null==n?void 0:n.name)&&"var"==t.sliceString(n.from,n.to)}(o,r.doc))return{from:e(o)||i?o.from:n,options:jm(r.doc,Cm(o),e),validFor:Rm};if("TagName"==o.name){for(let{parent:e}=o;e;e=e.parent)if("Block"==e.name)return{from:o.from,options:vm(),validFor:Tm};return{from:o.from,options:Zm,validFor:Tm}}if(!t.explicit)return null;let a=o.resolve(n),s=a.childBefore(n);return s&&":"==s.name&&"PseudoClassSelector"==a.name?{from:n,options:xm,validFor:Tm}:s&&":"==s.name&&"Declaration"==a.name||"ArgList"==a.name?{from:n,options:km,validFor:Tm}:"Block"==a.name||"Styles"==a.name?{from:n,options:vm(),validFor:Tm}:null},_m=Ym((e=>"VariableName"==e.name)),Am=Ke.define({name:"css",parser:$m.configure({props:[He.add({Declaration:et()}),tt.add({"Block KeyframeList":rt})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});const Wm=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Vm=new Ct({start:!1,shift:(e,t)=>4==t||5==t||312==t?e:313==t,strict:!1}),qm=new jt(((e,t)=>{let{next:r}=e;(125==r||-1==r||t.context)&&e.acceptToken(310)}),{contextual:!0,fallback:!0}),Im=new jt(((e,t)=>{let r,{next:n}=e;Wm.indexOf(n)>-1||(47!=n||47!=(r=e.peek(1))&&42!=r)&&(125==n||59==n||-1==n||t.context||e.acceptToken(309))}),{contextual:!0}),zm=new jt(((e,t)=>{let{next:r}=e;if((43==r||45==r)&&(e.advance(),r==e.next)){e.advance();let r=!t.context&&t.canShift(1);e.acceptToken(r?1:2)}}),{contextual:!0});function Nm(e,t){return e>=65&&e<=90||e>=97&&e<=122||95==e||e>=192||!t&&e>=48&&e<=57}const Mm=new jt(((e,t)=>{if(60!=e.next||!t.dialectEnabled(0))return;if(e.advance(),47==e.next)return;let r=0;for(;Wm.indexOf(e.next)>-1;)e.advance(),r++;if(Nm(e.next,!0)){for(e.advance(),r++;Nm(e.next,!1);)e.advance(),r++;for(;Wm.indexOf(e.next)>-1;)e.advance(),r++;if(44==e.next)return;for(let t=0;;t++){if(7==t){if(!Nm(e.next,!0))return;break}if(e.next!="extends".charCodeAt(t))break;e.advance(),r++}}e.acceptToken(3,-r)})),Um=At({"get set async static":Wt.modifier,"for while do if else switch try catch finally return throw break continue default case":Wt.controlKeyword,"in of await yield void typeof delete instanceof":Wt.operatorKeyword,"let var const using function class extends":Wt.definitionKeyword,"import export from":Wt.moduleKeyword,"with debugger as new":Wt.keyword,TemplateString:Wt.special(Wt.string),super:Wt.atom,BooleanLiteral:Wt.bool,this:Wt.self,null:Wt.null,Star:Wt.modifier,VariableName:Wt.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Wt.function(Wt.variableName),VariableDefinition:Wt.definition(Wt.variableName),Label:Wt.labelName,PropertyName:Wt.propertyName,PrivatePropertyName:Wt.special(Wt.propertyName),"CallExpression/MemberExpression/PropertyName":Wt.function(Wt.propertyName),"FunctionDeclaration/VariableDefinition":Wt.function(Wt.definition(Wt.variableName)),"ClassDeclaration/VariableDefinition":Wt.definition(Wt.className),PropertyDefinition:Wt.definition(Wt.propertyName),PrivatePropertyDefinition:Wt.definition(Wt.special(Wt.propertyName)),UpdateOp:Wt.updateOperator,"LineComment Hashbang":Wt.lineComment,BlockComment:Wt.blockComment,Number:Wt.number,String:Wt.string,Escape:Wt.escape,ArithOp:Wt.arithmeticOperator,LogicOp:Wt.logicOperator,BitOp:Wt.bitwiseOperator,CompareOp:Wt.compareOperator,RegExp:Wt.regexp,Equals:Wt.definitionOperator,Arrow:Wt.function(Wt.punctuation),": Spread":Wt.punctuation,"( )":Wt.paren,"[ ]":Wt.squareBracket,"{ }":Wt.brace,"InterpolationStart InterpolationEnd":Wt.special(Wt.brace),".":Wt.derefOperator,", ;":Wt.separator,"@":Wt.meta,TypeName:Wt.typeName,TypeDefinition:Wt.definition(Wt.typeName),"type enum interface implements namespace module declare":Wt.definitionKeyword,"abstract global Privacy readonly override":Wt.modifier,"is keyof unique infer":Wt.operatorKeyword,JSXAttributeValue:Wt.attributeValue,JSXText:Wt.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Wt.angleBracket,"JSXIdentifier JSXNameSpacedName":Wt.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Wt.attributeName,"JSXBuiltin/JSXIdentifier":Wt.standard(Wt.tagName)}),Gm={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},Dm={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},Bm={__proto__:null,"<":143},Lm=Yt.deserialize({version:14,states:"$<UO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ08SO'#ChO+RO!bO'#CiO+aO#tO'#CiO+oO?MpO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DyO0fQ^O'#EROOQ07b'#EZ'#EZO1PQWO'#EWOOQO'#El'#ElOOQO'#Ie'#IeO1XQWO'#GmO1dQWO'#EkO1iQWO'#EkO3kQ08SO'#JiO6[Q08SO'#JjO6xQWO'#FZO6}Q&jO'#FqOOQ07b'#Fc'#FcO7YO,YO'#FcO7hQ7[O'#FxO9UQWO'#FwOOQ07b'#Jj'#JjOOQ07`'#Ji'#JiO9ZQWO'#GqOOQU'#KU'#KUO9fQWO'#IRO9kQ07hO'#ISOOQU'#JW'#JWOOQU'#IW'#IWQ`Q^OOO`Q^OOO%[Q^O'#DqO9sQ^O'#D}O9zQ^O'#EPO9aQWO'#GmO:RQ7[O'#CnO:aQWO'#EjO:lQWO'#Eu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async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:Vm,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[Um],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$<k#p#q$=a#q#r$>q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!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,7,8,9,10,11,12,13,qm,new _t("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOt~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(Z~~",141,332),new _t("j~RQYZXz{^~^O'x~~aP!P!Qd~iO'y~~",25,315)],topRules:{Script:[0,6],SingleExpression:[1,269],SingleClassItem:[2,270]},dialects:{jsx:0,ts:14614},dynamicPrecedences:{69:1,79:1,81:1,165:1,193:1},specialized:[{term:319,get:e=>Gm[e]||-1},{term:334,get:e=>Dm[e]||-1},{term:70,get:e=>Bm[e]||-1}],tokenPrec:14638}),Fm=[Qt("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),Qt("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),Qt("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Qt("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Qt("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),Qt("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),Qt("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),Qt("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),Qt("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),Qt('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Qt('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Jm=Fm.concat([Qt("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Qt("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Qt("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Km=new It,Hm=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function eg(e){return(t,r)=>{let n=t.node.getChild("VariableDefinition");return n&&r(n,e),!0}}const tg=["FunctionDeclaration"],rg={FunctionDeclaration:eg("function"),ClassDeclaration:eg("class"),ClassExpression:()=>!0,EnumDeclaration:eg("constant"),TypeAliasDeclaration:eg("type"),NamespaceDeclaration:eg("namespace"),VariableDefinition(e,t){e.matchContext(tg)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function ng(e,t){let r=Km.get(t);if(r)return r;let n=[],o=!0;function i(t,r){let o=e.sliceString(t.from,t.to);n.push({label:o,type:r})}return t.cursor(qt.IncludeAnonymous).iterate((t=>{if(o)o=!1;else if(t.name){let e=rg[t.name];if(e&&e(t,i)||Hm.has(t.name))return!1}else if(t.to-t.from>8192){for(let r of ng(e,t.node))n.push(r);return!1}})),Km.set(t,n),n}const og=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,ig=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function ag(e){let t=ot(e.state).resolveInner(e.pos,-1);if(ig.indexOf(t.name)>-1)return null;let r="VariableName"==t.name||t.to-t.from<20&&og.test(e.state.sliceDoc(t.from,t.to));if(!r&&!e.explicit)return null;let n=[];for(let r=t;r;r=r.parent)Hm.has(r.name)&&(n=n.concat(ng(e.state.doc,r)));return{options:n,from:r?t.from:e.pos,validFor:og}}const sg=Ke.define({name:"javascript",parser:Lm.configure({props:[He.add({IfStatement:et({except:/^\s*({|else\b)/}),TryStatement:et({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:it,SwitchBody:e=>{let t=e.textAfter,r=/^\s*\}/.test(t),n=/^\s*(case|default)\b/.test(t);return e.baseIndent+(r?0:n?1:2)*e.unit},Block:at({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":et({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),tt.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":rt,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),lg={test:e=>/^JSX/.test(e.name),facet:lt({commentTokens:{block:{open:"{/*",close:"*/}"}}})},cg=sg.configure({dialect:"ts"},"typescript"),Og=sg.configure({dialect:"jsx",props:[st.add((e=>e.isTop?[lg]:void 0))]}),pg=sg.configure({dialect:"jsx ts",props:[st.add((e=>e.isTop?[lg]:void 0))]},"typescript");let ug=e=>({label:e,type:"keyword"});const dg="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(ug),fg=dg.concat(["declare","implements","private","protected","public"].map(ug));function hg(e={}){let t=e.jsx?e.typescript?pg:Og:e.typescript?cg:sg,r=e.typescript?Jm.concat(fg):Fm.concat(dg);return new nt(t,[sg.data.of({autocomplete:St(ig,bt(r))}),sg.data.of({autocomplete:ag}),e.jsx?yg:[]])}function mg(e,t,r=e.length){for(let n=null==t?void 0:t.firstChild;n;n=n.nextSibling)if("JSXIdentifier"==n.name||"JSXBuiltin"==n.name||"JSXNamespacedName"==n.name||"JSXMemberExpression"==n.name)return e.sliceString(n.from,Math.min(n.to,r));return""}const gg="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),yg=Ce.inputHandler.of(((e,t,r,n,o)=>{if((gg?e.composing:e.compositionStarted)||e.state.readOnly||t!=r||">"!=n&&"/"!=n||!sg.isActiveAt(e.state,t,-1))return!1;let i=o(),{state:a}=i,s=a.changeByRange((e=>{var t;let r,{head:o}=e,i=ot(a).resolveInner(o-1,-1);if("JSXStartTag"==i.name&&(i=i.parent),a.doc.sliceString(o-1,o)!=n||"JSXAttributeValue"==i.name&&i.to>o);else{if(">"==n&&"JSXFragmentTag"==i.name)return{range:e,changes:{from:o,insert:"</>"}};if("/"==n&&"JSXStartCloseTag"==i.name){let e=i.parent,n=e.parent;if(n&&e.from==o-2&&((r=mg(a.doc,n.firstChild,o))||"JSXFragmentTag"==(null===(t=n.firstChild)||void 0===t?void 0:t.name))){let e=`${r}>`;return{range:Xe.cursor(o+e.length,-1),changes:{from:o,insert:e}}}}else if(">"==n){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(i);if(t&&!/^\/?>|^<\//.test(a.doc.sliceString(o,o+2))&&(r=mg(a.doc,t,o)))return{range:e,changes:{from:o,insert:`</${r}>`}}}}return{range:e}}));return!s.changes.empty&&(e.dispatch([i,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})),Sg=["_blank","_self","_top","_parent"],bg=["ascii","utf-8","utf-16","latin1","latin1"],Qg=["get","post","put","delete"],wg=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],$g=["true","false"],Pg={},vg={a:{attrs:{href:null,ping:null,type:null,media:null,target:Sg,hreflang:null}},abbr:Pg,address:Pg,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Pg,aside:Pg,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Pg,base:{attrs:{href:null,target:Sg}},bdi:Pg,bdo:Pg,blockquote:{attrs:{cite:null}},body:Pg,br:Pg,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:wg,formmethod:Qg,formnovalidate:["novalidate"],formtarget:Sg,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Pg,center:Pg,cite:Pg,code:Pg,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Pg,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Pg,div:Pg,dl:Pg,dt:Pg,em:Pg,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Pg,figure:Pg,footer:Pg,form:{attrs:{action:null,name:null,"accept-charset":bg,autocomplete:["on","off"],enctype:wg,method:Qg,novalidate:["novalidate"],target:Sg}},h1:Pg,h2:Pg,h3:Pg,h4:Pg,h5:Pg,h6:Pg,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Pg,hgroup:Pg,hr:Pg,html:{attrs:{manifest:null}},i:Pg,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:wg,formmethod:Qg,formnovalidate:["novalidate"],formtarget:Sg,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Pg,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Pg,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Pg,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:bg,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Pg,noscript:Pg,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Pg,param:{attrs:{name:null,value:null}},pre:Pg,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Pg,rt:Pg,ruby:Pg,samp:Pg,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:bg}},section:Pg,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Pg,source:{attrs:{src:null,type:null,media:null}},span:Pg,strong:Pg,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Pg,summary:Pg,sup:Pg,table:Pg,tbody:Pg,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Pg,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Pg,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Pg,time:{attrs:{datetime:null}},title:Pg,tr:Pg,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Pg,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Pg},xg={accesskey:null,class:null,contenteditable:$g,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:$g,autocorrect:$g,autocapitalize:$g,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":$g,"aria-autocomplete":["inline","list","both","none"],"aria-busy":$g,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":$g,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":$g,"aria-hidden":$g,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":$g,"aria-multiselectable":$g,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":$g,"aria-relevant":null,"aria-required":$g,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},kg="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((e=>"on"+e));for(let e of kg)xg[e]=null;class Zg{constructor(e,t){this.tags=Object.assign(Object.assign({},vg),e),this.globalAttrs=Object.assign(Object.assign({},xg),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function Tg(e,t,r=e.length){if(!t)return"";let n=t.firstChild,o=n&&n.getChild("TagName");return o?e.sliceString(o.from,Math.min(o.to,r)):""}function Rg(e,t=!1){for(;e;e=e.parent)if("Element"==e.name){if(!t)return e;t=!1}return null}function Xg(e,t,r){let n=r.tags[Tg(e,Rg(t))];return(null==n?void 0:n.children)||r.allTags}function Eg(e,t){let r=[];for(let n=Rg(t);n&&!n.type.isTop;n=Rg(n.parent)){let o=Tg(e,n);if(o&&"CloseTag"==n.lastChild.name)break;o&&r.indexOf(o)<0&&("EndTag"==t.name||t.from>=n.firstChild.to)&&r.push(o)}return r}Zg.default=new Zg;const Cg=/^[:\-\.\w\u00b7-\uffff]*$/;function jg(e,t,r,n,o){let i=/\s*>/.test(e.sliceDoc(o,o+5))?"":">",a=Rg(r,!0);return{from:n,to:o,options:Xg(e.doc,a,t).map((e=>({label:e,type:"type"}))).concat(Eg(e.doc,r).map(((e,t)=>({label:"/"+e,apply:"/"+e+i,type:"type",boost:99-t})))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Yg(e,t,r,n){let o=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:r,to:n,options:Eg(e.doc,t).map(((e,t)=>({label:e,apply:e+o,type:"type",boost:99-t}))),validFor:Cg}}function _g(e,t){let{state:r,pos:n}=t,o=ot(r).resolveInner(n,-1),i=o.resolve(n);for(let e,t=n;i==o&&(e=o.childBefore(t));){let r=e.lastChild;if(!r||!r.type.isError||r.from<r.to)break;i=o=e,t=r.from}return"TagName"==o.name?o.parent&&/CloseTag$/.test(o.parent.name)?Yg(r,o,o.from,n):jg(r,e,o,o.from,n):"StartTag"==o.name?jg(r,e,o,n,n):"StartCloseTag"==o.name||"IncompleteCloseTag"==o.name?Yg(r,o,n,n):"OpenTag"==o.name||"SelfClosingTag"==o.name||"AttributeName"==o.name?function(e,t,r,n,o){let i=Rg(r),a=i?t.tags[Tg(e.doc,i)]:null,s=a&&a.attrs?Object.keys(a.attrs):[];return{from:n,to:o,options:(a&&!1===a.globalAttrs?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames).map((e=>({label:e,type:"property"}))),validFor:Cg}}(r,e,o,"AttributeName"==o.name?o.from:n,n):"Is"==o.name||"AttributeValue"==o.name||"UnquotedAttributeValue"==o.name?function(e,t,r,n,o){var i;let a,s=null===(i=r.parent)||void 0===i?void 0:i.getChild("AttributeName"),l=[];if(s){let i=e.sliceDoc(s.from,s.to),c=t.globalAttrs[i];if(!c){let n=Rg(r),o=n?t.tags[Tg(e.doc,n)]:null;c=(null==o?void 0:o.attrs)&&o.attrs[i]}if(c){let t=e.sliceDoc(n,o).toLowerCase(),r='"',i='"';/^['"]/.test(t)?(a='"'==t[0]?/^[^"]*$/:/^[^']*$/,r="",i=e.sliceDoc(o,o+1)==t[0]?"":t[0],t=t.slice(1),n++):a=/^[^\s<>='"]*$/;for(let e of c)l.push({label:e,apply:r+e+i,type:"constant"})}}return{from:n,to:o,options:l,validFor:a}}(r,e,o,"Is"==o.name?n:o.from,n):!t.explicit||"Element"!=i.name&&"Text"!=i.name&&"Document"!=i.name?null:function(e,t,r,n){let o=[],i=0;for(let n of Xg(e.doc,r,t))o.push({label:"<"+n,type:"type"});for(let t of Eg(e.doc,r))o.push({label:"</"+t+">",type:"type",boost:99-i++});return{from:n,to:n,options:o,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(r,e,o,n)}function Ag(e){let{extraTags:t,extraGlobalAttributes:r}=e,n=r||t?new Zg(t,r):Zg.default;return e=>_g(n,e)}const Wg=sg.parser.configure({top:"SingleExpression"}),Vg=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:cg.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:Og.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:pg.parser},{tag:"script",attrs:e=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type),parser:Wg},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:sg.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:Am.parser}],qg=[{name:"style",parser:Am.parser.configure({top:"Styles"})}].concat(kg.map((e=>({name:e,parser:sg.parser})))),Ig=Ke.define({name:"html",parser:cm.configure({props:[He.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t,r=null;for(let t=e.node;;){let e=t.lastChild;if(!e||"Element"!=e.name||e.to!=t.to)break;r=t=e}return r&&(!(t=r.lastChild)||"CloseTag"!=t.name&&"SelfClosingTag"!=t.name)?e.lineIndent(r.from)+e.unit:null}}),tt.add({Element(e){let t=e.firstChild,r=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==r.name?r.from:e.to}:null}}),ct.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),zg=Ig.configure({wrap:dm(Vg,qg)});const Ng=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Mg=Ce.inputHandler.of(((e,t,r,n,o)=>{if(e.composing||e.state.readOnly||t!=r||">"!=n&&"/"!=n||!zg.isActiveAt(e.state,t,-1))return!1;let i=o(),{state:a}=i,s=a.changeByRange((e=>{var t,r,o;let i,s=a.doc.sliceString(e.from-1,e.to)==n,{head:l}=e,c=ot(a).resolveInner(l-1,-1);if("TagName"!=c.name&&"StartTag"!=c.name||(c=c.parent),s&&">"==n&&"OpenTag"==c.name){if("CloseTag"!=(null===(r=null===(t=c.parent)||void 0===t?void 0:t.lastChild)||void 0===r?void 0:r.name)&&(i=Tg(a.doc,c.parent,l))&&!Ng.has(i)){return{range:e,changes:{from:l,to:l+(">"===a.doc.sliceString(l,l+1)?1:0),insert:`</${i}>`}}}}else if(s&&"/"==n&&"IncompleteCloseTag"==c.name){let e=c.parent;if(c.from==l-2&&"CloseTag"!=(null===(o=e.lastChild)||void 0===o?void 0:o.name)&&(i=Tg(a.doc,e,l))&&!Ng.has(i)){let e=l+(">"===a.doc.sliceString(l,l+1)?1:0),t=`${i}>`;return{range:Xe.cursor(l+t.length,-1),changes:{from:l,to:e,insert:t}}}}return{range:e}}));return!s.changes.empty&&(e.dispatch([i,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}));class Ug{constructor(e,t,r){this._htmlSrcElt=null,this.ignoreMutation=()=>!0,this.handleMouseEnter=()=>{this.dom.classList.add("node-enter")},this.handleMouseLeave=()=>{this.dom.classList.remove("node-enter")},this._node=e,this._outerView=t,this._getPos=r,this.schema=e.type.schema,this.dom=document.createElement("div"),this.dom.classList.add("html-node"),this._htmlRenderElt=document.createElement("p"),this._htmlRenderElt.textContent="",this._htmlRenderElt.classList.add("html-node-render");const n=document.createElement("span");n.innerHTML='<i class="ri-expand-left-right-line"></i> HTML',n.classList.add("html-node-label"),this.dom.appendChild(n),this.dom.appendChild(this._htmlRenderElt),this._htmlSrcElt=document.createElement("span"),this._htmlSrcElt.classList.add("html-src","node-hide"),this.languageConf=new Te,this.dom.appendChild(this._htmlSrcElt),this.dom.addEventListener("click",(()=>this.ensureFocus())),n.addEventListener("click",(()=>this.ensureFocus())),this.dom.addEventListener("mouseenter",this.handleMouseEnter),this.dom.addEventListener("mouseleave",this.handleMouseLeave),this.renderHtml()}ensureFocus(){this._outerView.hasFocus()&&(this._innerView?this._innerView.focus():this.openEditor())}update(e){var t;return this._node=e,!!(null===(t=this.mfCodemirrorView)||void 0===t?void 0:t.update(e))}selectNode(){var e;(null===(e=this.mfCodemirrorView)||void 0===e?void 0:e.updating)||this.openEditor()}deselectNode(){var e;(null===(e=this.mfCodemirrorView)||void 0===e?void 0:e.updating)&&this.closeEditor()}stopEvent(){return!0}renderHtml(){var e;if(!this._htmlRenderElt)return;const t=((null===(e=this.mfCodemirrorView)||void 0===e?void 0:e.content)||this._node.textContent).replace(/\n+|\t/g,"").trim();if(t.length<1)for(;this._htmlRenderElt.firstChild;)this._htmlRenderElt.firstChild.remove();else try{for(;this._htmlRenderElt.firstChild;)this._htmlRenderElt.firstChild.remove();this._htmlRenderElt.classList.remove("node-hide"),this._htmlRenderElt.classList.add("node-show"),this._htmlRenderElt.innerHTML=t}catch(e){}}setSelection(e,t){var r;this._innerView?null===(r=this.mfCodemirrorView)||void 0===r||r.setSelection(e,t):(this.openEditor(),this.mfCodemirrorView.setSelection(e,t))}openEditor(){var e;if(this._innerView)throw Error("inner view should not exist!");const t=function(e={}){let t,r="";!1===e.matchClosingTags&&(r="noMatch"),!0===e.selfClosingTags&&(r=(r?r+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(t=dm((e.nestedLanguages||[]).concat(Vg),(e.nestedAttributes||[]).concat(qg)));let n=t?Ig.configure({wrap:t,dialect:r}):r?zg.configure({dialect:r}):zg;return new nt(n,[zg.data.of({autocomplete:Ag(e)}),!1!==e.autoCloseTags?Mg:[],hg().support,new nt(Am,Am.data.of({autocomplete:_m})).support])}();this.mfCodemirrorView=new xh({view:this._outerView,node:this._node,getPos:this._getPos,languageName:"html",createParams:{parent:this._htmlSrcElt},extensions:[Xh,t]}),this._htmlSrcElt.classList.remove("node-hide"),this._innerView=this.mfCodemirrorView.cm,null===(e=this._htmlRenderElt)||void 0===e||e.classList.add("node-hide");const r=this._node.textContent.length||0;this.setSelection(r,r),this._innerView.focus(),this._innerView.contentDOM.addEventListener("blur",(()=>{this.closeEditor(!0)})),this.mfCodemirrorView.forwardSelection()}destroy(){this.closeEditor(!1),this._htmlRenderElt&&(this._htmlRenderElt.remove(),delete this._htmlRenderElt),this._htmlSrcElt&&(this._htmlSrcElt.remove(),this._htmlSrcElt=null),this.dom.removeEventListener("mouseenter",this.handleMouseEnter),this.dom.removeEventListener("mouseleave",this.handleMouseLeave),this.dom.remove()}closeEditor(e=!0){this._innerView&&(this._innerView.destroy(),this._innerView=void 0),this.mfCodemirrorView&&(this.mfCodemirrorView.destroy(),this.mfCodemirrorView=void 0),e&&this.renderHtml()}}var Gg=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];function Dg(e){return({dispatch:t,view:r,tr:n})=>{if(!r)return!1;if(!n.selection.empty||!r.endOfTextblock(e))return!1;const o="left"===e||"up"===e?-1:1,i=n.selection.$head,a=bn.near(n.doc.resolve(o>0?i.after():i.before()),o);return!(!a.$head||"codeMirror"!==a.$head.parent.type.name&&"html_block"!==a.$head.parent.type.name)&&(null==t||t(n.setSelection(a)),!0)}}class Bg extends T{get name(){return"html_block"}createNodeSpec(e,t){var r;return{group:"block",content:"text*",defining:!0,...t,code:!0,marks:"",attrs:{language:{default:"html"},...e.defaults()},parseDOM:[{tag:"pre",getAttrs:t=>!!ne(t)&&e.parse(t)},...null!==(r=t.parseDOM)&&void 0!==r?r:[]],toDOM:()=>["pre",["code",0]],isolating:!0}}createNodeViews(){return(e,t,r)=>new Ug(e,t,r)}createInputRules(){var e,t;return[N({regexp:new RegExp("^</?("+(e=Gg,t=is,e.filter((e=>!t.includes(e)))).join("|")+")(?=(\\s|/?>|$))","i"),type:this.type,beforeDispatch:({tr:e,start:t,match:r})=>{const n=e.doc.resolve(t);e.setSelection(Pn.near(n)),e.insertText(r[0])}})]}createKeymap(){return{ArrowLeft:Dg("left"),ArrowRight:Dg("right"),ArrowUp:Dg("up"),ArrowDown:Dg("down")}}fromMarkdown(){return[{type:Ka.block,token:"html_block",node:this.name,hasOpenClose:!1}]}toMarkdown({state:e,node:t}){e.write("\n"),e.text(t.textContent,!1),e.text("\n"),e.closeBlock(t),e.ensureNewLine()}}const Lg=e=>{const{node:r}=e,{src:n}=r.attrs,[o,i]=t(n);return or.exports.jsx(vt,{children:or.exports.jsx(xt,{title:"Image URL [Enter]",placement:"top",children:or.exports.jsx(kt,{placeholder:"Image URL",value:o,style:{fontSize:"14px"},onInput:e=>{i(e.currentTarget.value)},onPressEnter:()=>{e.updateAttributes&&e.updateAttributes({...r.attrs,src:o})}})})})};var Fg;!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left",e[e.Top=2]="Top",e[e.Bottom=3]="Bottom",e[e.TopRight=4]="TopRight",e[e.TopLeft=5]="TopLeft",e[e.BottomRight=6]="BottomRight",e[e.BottomLeft=7]="BottomLeft"}(Fg||(Fg={}));const Jg=S.span`
|
|
62
|
+
position: absolute;
|
|
63
|
+
border-radius: 12px;
|
|
64
|
+
border: 2px solid #fff;
|
|
65
|
+
background: rgba(0, 0, 0, 0.65);
|
|
66
|
+
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
67
|
+
border-radius: 6px;
|
|
68
|
+
transition: opacity 300ms ease-in 0s;
|
|
69
|
+
z-index: 99;
|
|
70
|
+
|
|
71
|
+
${e=>e.visible?b`
|
|
72
|
+
opacity: 1;
|
|
73
|
+
`:b`
|
|
74
|
+
opacity: 0;
|
|
75
|
+
`}
|
|
76
|
+
|
|
77
|
+
${e=>{switch(e.handleType){case Fg.BottomLeft:return b`
|
|
78
|
+
left: -6px;
|
|
79
|
+
bottom: -10px;
|
|
80
|
+
cursor: sw-resize;
|
|
81
|
+
`;case Fg.BottomRight:return b`
|
|
82
|
+
right: -6px;
|
|
83
|
+
bottom: -10px;
|
|
84
|
+
cursor: se-resize;
|
|
85
|
+
`;case Fg.TopLeft:return b`
|
|
86
|
+
left: -6px;
|
|
87
|
+
top: -6px;
|
|
88
|
+
cursor: nw-resize;
|
|
89
|
+
`;case Fg.TopRight:return b`
|
|
90
|
+
right: -6px;
|
|
91
|
+
top: -6px;
|
|
92
|
+
cursor: ne-resize;
|
|
93
|
+
`;case Fg.Left:return b`
|
|
94
|
+
left: 6px;
|
|
95
|
+
top: calc(50% - 20px);
|
|
96
|
+
height: 30px;
|
|
97
|
+
width: 6px;
|
|
98
|
+
cursor: col-resize;
|
|
99
|
+
`;case Fg.Right:return b`
|
|
100
|
+
right: 6px;
|
|
101
|
+
top: calc(50% - 20px);
|
|
102
|
+
height: 30px;
|
|
103
|
+
width: 6px;
|
|
104
|
+
cursor: col-resize;
|
|
105
|
+
`;case Fg.Top:return b`
|
|
106
|
+
left: calc(50% - 20px);
|
|
107
|
+
top: 6px;
|
|
108
|
+
height: 6px;
|
|
109
|
+
width: 30px;
|
|
110
|
+
cursor: row-resize;
|
|
111
|
+
`;case Fg.Bottom:return b`
|
|
112
|
+
right: calc(50% - 20px);
|
|
113
|
+
bottom: 6px;
|
|
114
|
+
height: 6px;
|
|
115
|
+
width: 30px;
|
|
116
|
+
cursor: row-resize;
|
|
117
|
+
`}}}
|
|
118
|
+
`,Kg=e=>or.exports.jsx(Jg,{className:"resizeable-handle",visible:e.visible,handleType:e.handleType,onMouseDown:t=>{e.onResizing&&e.onResizing(t,e.handleType)}});var Hg;!function(e){e[e.Fixed=0]="Fixed",e[e.Flexible=1]="Flexible"}(Hg||(Hg={}));const ey=S.div`
|
|
119
|
+
display: inline-block;
|
|
120
|
+
position: relative;
|
|
121
|
+
max-width: 100%;
|
|
122
|
+
line-height: 0;
|
|
123
|
+
user-select: none;
|
|
124
|
+
border-radius: 2px;
|
|
125
|
+
transition: all 0.15s ease-out;
|
|
126
|
+
`,ty=r((e=>{const{node:r,aspectRatio:a=Hg.Fixed,updateAttributes:s,selected:l,controlInit:c}=e,[O,p]=t({}),[u,d]=t(!1),[f,h]=t(!1),m=n([]),g=n(null),y=n(0),S=n(0),b=o(((e,t)=>{e.preventDefault();const n=e.pageX,o=e.pageY,i=y.current||0,l=S.current||0,c=function(e,t,r,n){var o,i=!1,a=0;function s(){o&&clearTimeout(o)}function l(){for(var l=arguments.length,c=new Array(l),O=0;O<l;O++)c[O]=arguments[O];var p=this,u=Date.now()-a;function d(){a=Date.now(),r.apply(p,c)}i||(n&&!o&&d(),s(),void 0===n&&u>e?d():!0!==t&&(o=setTimeout(n?function(){o=void 0}:d,void 0===n?e-u:e)))}return"boolean"!=typeof t&&(n=r,r=t,t=void 0),l.cancel=function(){s(),i=!0},l}(100,!1,(e=>{const r=e.pageX,s=e.pageY,c=r-n,O=s-o;let u=null,d=null;if(a===Hg.Fixed&&i&&l)switch(t){case Fg.Right:case Fg.TopRight:case Fg.BottomRight:u=i+c,d=l/i*u;break;case Fg.Left:case Fg.TopLeft:case Fg.BottomLeft:u=i-c,d=l/i*u;break;case Fg.Bottom:d=l+O,u=i/l*d;break;case Fg.Top:d=l-O,u=i/l*d}else if(a===Hg.Flexible)switch(t){case Fg.Right:u=i+c;break;case Fg.Left:u=i-c;break;case Fg.Bottom:d=l+O;break;case Fg.Top:d=l-O;break;case Fg.BottomRight:case Fg.TopRight:u=i+c,d=l+O;break;case Fg.BottomLeft:case Fg.TopLeft:u=i-c,d=l+O}"number"==typeof u&&u<20&&(a===Hg.Fixed&&i&&l?(u=20,d=l/i*u):a===Hg.Flexible&&(u=20)),u&&g.current&&p((e=>({...e,width:Math.round(u)}))),d&&p((e=>({...e,height:Math.round(d)})))})),O=e=>{if(e.preventDefault(),document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",O),g.current){const{width:e,height:t}=g.current.getBoundingClientRect();y.current=e,S.current=t,p({width:e,height:t}),s({...r.attrs,width:y.current,height:S.current})}};document.addEventListener("mousemove",c),document.addEventListener("mouseup",O),m.current.push((()=>document.removeEventListener("mousemove",c))),m.current.push((()=>document.removeEventListener("mouseup",O)))}),[a,r.attrs,s]),Q=o(((e,t)=>{b(e,t)}),[b]);i((()=>{const e=()=>{if(g.current){const{width:e,height:t}=g.current.getBoundingClientRect();y.current=e,S.current=t,h(!0),p({width:e,height:t})}};return c?c(e):e(),()=>{m.current.forEach((e=>e())),m.current=[]}}),[c]);const w=l||u;return or.exports.jsxs(ey,{ref:g,style:f?{width:`${O.width}px`,height:`${O.height}px`,aspectRatio:`${O.width} / ${O.height}`}:void 0,onMouseOver:()=>d(!0),onMouseOut:()=>d(!1),children:[or.exports.jsx(Kg,{visible:w,onResizing:Q,handleType:Fg.Top}),or.exports.jsx(Kg,{visible:w,onResizing:Q,handleType:Fg.Bottom}),or.exports.jsx(Kg,{visible:w,onResizing:Q,handleType:Fg.Left}),or.exports.jsx(Kg,{visible:w,onResizing:Q,handleType:Fg.Right}),e.children]})}));function ry(e){const{node:r,selected:o,updateAttributes:a,handleViewImgSrcUrl:s}=e,[l,c]=t(""),O=n();return i((()=>{s?s(r.attrs.src).then((e=>{c(e)})):c(r.attrs.src)}),[s,r.attrs.src]),or.exports.jsx(Zt,{customContent:or.exports.jsx(Lg,{node:r,updateAttributes:a}),placement:"top-start",open:o,arrow:!1,children:or.exports.jsx(ty,{controlInit:e=>O.current=e,...e,children:l?or.exports.jsx(Tt,{fallback:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAAAAACIM/FCAAAChElEQVR4Ae3aMW/TQBxAcb70k91AAiGuGlZAtOlQApWaDiSdklZq2RPUTm1xUWL3PgqSpygkXlh88N54nn7S2Trd3y/CP5IQIUKECBEiRIgQIUKECBEiRIgQIUKECBEiRIgQIUKECBEiRIgQIUKECBEiRIgQIUKECBEiRIgQIUKECPmPIEKECBEiRIgQIeX82+FBO0naB4eTRRkt5P7sNWt1Rw9RQvKThI2SYR4f5OoVW2rfRAYpT6hqHc8WeVHki9mgRdWwiAmyfA9AdrlaW5tlAHxcxQMpK8feRbGxPEkrSREN5ARg/y780V0GMIwFcgXwLg9byvsAN3FA8lfAfr7jYQZ0nqKAfAb21vYVwNruSoEvMUDuE+Ai7IKECZA+RAA5A7JiN6TMgFHzIeUb4DLshoQZ0H1uPGQOvFzVQZYtYNF4yBg4DnWQMAAmjYccArN6yBQ4ajzkAFjUQ+ZAv/GQNpDXQ3Kg03hIAhT1kAJIhLi1/vJl39Ic6Mf3+a2K8PM7BgahtgEwjuKI0lqGjSI8opRdYFb3sk/jODSGEZCVuyFFDzgPzYc8JMBkN2QMpI8RQMIQ2LvdBblNgdM4Lh/aQJaHrf3sAe2nKCDhGqCfb3VEcx1UNQTItlzQ3fYAvoZYIMUHgHRSbiyPU4BPZUSX2JWEbLZcW5v2qByrmMYKxZCq1mA6z4sin08HLapOy8gGPddtttT5HuHobZiwUXr6K85h6KjLWm/PH+MdTy/GR/12knb6g8mPZ38YECJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAh0fUb5q7oCGreEVEAAAAASUVORK5CYII=",onLoad:()=>{var e;return null===(e=O.current)||void 0===e?void 0:e.call(O)},...r.attrs,src:l}):null})})}let ny=(()=>{let e,t,r,n,o=[V({defaultOptions:{createPlaceholder:oy,handleViewImgSrcUrl:async e=>e,updatePlaceholder:()=>{},destroyPlaceholder:()=>{},uploadHandler:iy,preferPastedTextContent:!0}})],i=[],a=T,s=[];return t=class extends a{constructor(){super(...arguments),this.ReactComponent=(Ma(this,s),e=>{const{handleViewImgSrcUrl:t}=this.options;return or.exports.jsx(ry,{handleViewImgSrcUrl:t,...e})})}get name(){return"html_image"}createTags(){return[R.InlineNode,R.Media]}createNodeSpec(e,t){var r;const{preferPastedTextContent:n}=this.options;return{inline:!0,selectable:!0,atom:!0,...t,attrs:{...e.defaults(),alt:{default:""},crop:{default:null},height:{default:null},width:{default:null},rotate:{default:null},src:{default:null},title:{default:""},fileName:{default:null}},parseDOM:[{tag:"img[src]",getAttrs:t=>{var r;if(ne(t)){const o=function({element:e,parse:t}){var r,n,o,i;const{width:a,height:s}=function(e){let{width:t,height:r}=e.style;return t=t||e.getAttribute("width")||"",r=r||e.getAttribute("height")||"",{width:t,height:r}}(e);return{...t(e),alt:null!==(r=e.getAttribute("alt"))&&void 0!==r?r:"",height:Number.parseInt(s||"0",10)||null,src:null!==(n=e.getAttribute("src"))&&void 0!==n?n:null,title:null!==(o=e.getAttribute("title"))&&void 0!==o?o:"",width:Number.parseInt(a||"0",10)||null,fileName:null!==(i=e.getAttribute("data-file-name"))&&void 0!==i?i:null}}({element:t,parse:e.parse});return(!n||!(null===(r=o.src)||void 0===r?void 0:r.startsWith("file:///")))&&o}return{}}},...null!==(r=t.parseDOM)&&void 0!==r?r:[]],toDOM:t=>{const r=oe(t.attrs,e);return["img",{...e.dom(t),...r}]}}}insertImage(e,t){return({tr:r,dispatch:n})=>{const{from:o,to:i}=ie(null!=t?t:r.selection,r.doc),a=this.type.create(e);return null==n||n(r.replaceRangeWith(o,i,a)),!0}}uploadImage(e,t){const{updatePlaceholder:r,destroyPlaceholder:n,createPlaceholder:o}=this.options;return i=>{const{tr:a}=i;let s=a.selection.from;return this.store.createPlaceholderCommand({promise:e,placeholder:{type:"widget",get pos(){return s},createElement:(e,r)=>{const n=o(e,r);return null==t||t(n),n},onUpdate:(e,t,n,o)=>{r(e,t,n,o)},onDestroy:(e,t)=>{n(e,t)}},onSuccess:(e,t,r)=>this.insertImage(e,t)(r)}).validate((({tr:e,dispatch:t})=>{const r=rn(e.doc,s,this.type);return null!=r&&(s=r,e.selection.empty||null==t||t(e.deleteSelection()),!0)}),"unshift").generateCommand()(i)}}fileUploadFileHandler(e,t,r){var n;const{preferPastedTextContent:o,uploadHandler:i}=this.options;if(o&&function(e){return void 0!==e.clipboardData}(t)&&(null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text/plain")))return!1;const{commands:a,chain:s}=this.store,l=i(e.map(((e,t)=>({file:e,progress:e=>{a.updatePlaceholder(l[t],e)}}))));ae(r)&&s.selectText(r);for(const e of l)s.uploadImage(e);return s.run(),!0}createPasteRules(){return[{type:"file",regexp:/image/i,fileHandler:e=>{const t="drop"===e.type?e.pos:void 0;return this.fileUploadFileHandler(e.files,e.event,t)}}]}createInputRules(){return[N({regexp:new RegExp("<img[^>]*>"),type:this.type,getAttributes:e=>ts(e[0])})]}fromMarkdown(){return[{type:Ka.inline,token:"html_image",node:this.name}]}toMarkdown({state:e,node:t}){e.text(ns({tag:"img",attrs:t.attrs,voidElement:!0}),!1)}},Ua(t,"HtmlImageExtension"),(()=>{var l;const c="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(l=a[Symbol.metadata])&&void 0!==l?l:null):void 0;r=[E()],n=[E()],Na(t,null,r,{kind:"method",name:"insertImage",static:!1,private:!1,access:{has:e=>"insertImage"in e,get:e=>e.insertImage},metadata:c},null,s),Na(t,null,n,{kind:"method",name:"uploadImage",static:!1,private:!1,access:{has:e=>"uploadImage"in e,get:e=>e.uploadImage},metadata:c},null,s),Na(null,e={value:t},o,{kind:"class",name:t.name,metadata:c},null,i),t=e.value,c&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:c}),Ma(t,i)})(),t})();function oy(){const e=document.createElement("div");return e.classList.add($t.IMAGE_LOADER),e}function iy(e){U(e.length>0,{code:G.EXTENSION,message:"The upload handler was applied for the image extension without any valid files"});let t=0;const r=[];for(const{file:n,progress:o}of e)r.push((()=>new Promise((r=>{const i=new FileReader;i.addEventListener("load",(i=>{var a;t+=1,o(t/e.length),r({src:null===(a=i.target)||void 0===a?void 0:a.result,fileName:n.name})}),{once:!0}),i.readAsDataURL(n)}))));return r}function ay(e){const{node:t,selected:r}=e,o=n();return or.exports.jsx(Zt,{placement:"top-start",open:r,arrow:!1,children:or.exports.jsx(ty,{controlInit:e=>o.current=e,...e,children:or.exports.jsx("iframe",{onLoad:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.call(o)},...t.attrs})})})}let sy=(()=>{let e,t,r,n,o,i,a=[V({defaultOptions:{defaultSource:"",class:"remirror-iframe",enableResizing:!1},staticKeys:["defaultSource","class"]})],s=[],l=T,c=[];return t=class extends l{constructor(){super(...arguments),this.ReactComponent=(Ma(this,c),e=>or.exports.jsx(ay,{...e}))}get name(){return"iframe_inline"}createTags(){return[R.InlineNode,R.Media]}createNodeSpec(e,t){var r;const{defaultSource:n}=this.options;return{inline:!0,selectable:!0,atom:!0,...t,attrs:{...e.defaults(),src:n?{default:n}:{},allowFullScreen:{default:!0},frameBorder:{default:0},type:{default:"custom"},width:{default:null},height:{default:null}},parseDOM:[{tag:"iframe",getAttrs:t=>{var r,n;const o=t.getAttribute("frameborder"),i=t.getAttribute("width"),a=t.getAttribute("height");return{...e.parse(t),type:null!==(r=t.getAttribute("data-embed-type"))&&void 0!==r?r:void 0,height:a&&Number.parseInt(a,10)||void 0,width:i&&Number.parseInt(i,10)||void 0,allowFullScreen:"false"!==t.getAttribute("allowfullscreen"),frameBorder:o?Number.parseInt(o,10):0,src:null!==(n=t.getAttribute("src"))&&void 0!==n?n:""}}},...null!==(r=t.parseDOM)&&void 0!==r?r:[]],toDOM:t=>{const{frameBorder:r,allowFullScreen:n,src:o,type:i,...a}=oe(t.attrs,e),{class:s}=this.options;return["iframe",{...e.dom(t),...a,class:se(s,`${s}-${i}`),src:o,"data-embed-type":i,allowfullscreen:n?"true":"false",frameBorder:null==r?void 0:r.toString()}]}}}addIframe(e){return({tr:t,dispatch:r})=>(null==r||r(t.replaceSelectionWith(this.type.create(e))),!0)}addYouTubeVideo(e){return this.addIframe({src:ly(e),frameBorder:0,type:"youtube",allowFullScreen:"true"})}updateIframeSource(e){return({tr:t,dispatch:r})=>{const n=le({selection:t.selection,types:this.type});return!!n&&(null==r||r(t.setNodeMarkup(n.pos,void 0,{...n.node.attrs,src:e})),!0)}}updateYouTubeVideo(e){return this.updateIframeSource(ly(e))}createInputRules(){return[N({regexp:new RegExp("<iframe[^>]*>"),type:this.type,getAttributes:e=>ts(e[0])})]}fromMarkdown(){return[{type:Ka.inline,token:"iframe_inline",node:this.name}]}toMarkdown({state:e,node:t}){e.text(ns({tag:"iframe",attrs:t.attrs,voidElement:!0}),!1)}},Ua(t,"IframeExtension"),(()=>{var O;const p="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(O=l[Symbol.metadata])&&void 0!==O?O:null):void 0;r=[E()],n=[E()],o=[E()],i=[E()],Na(t,null,r,{kind:"method",name:"addIframe",static:!1,private:!1,access:{has:e=>"addIframe"in e,get:e=>e.addIframe},metadata:p},null,c),Na(t,null,n,{kind:"method",name:"addYouTubeVideo",static:!1,private:!1,access:{has:e=>"addYouTubeVideo"in e,get:e=>e.addYouTubeVideo},metadata:p},null,c),Na(t,null,o,{kind:"method",name:"updateIframeSource",static:!1,private:!1,access:{has:e=>"updateIframeSource"in e,get:e=>e.updateIframeSource},metadata:p},null,c),Na(t,null,i,{kind:"method",name:"updateYouTubeVideo",static:!1,private:!1,access:{has:e=>"updateYouTubeVideo"in e,get:e=>e.updateYouTubeVideo},metadata:p},null,c),Na(null,e={value:t},a,{kind:"class",name:t.name,metadata:p},null,s),t=e.value,p&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:p}),Ma(t,s)})(),t})();function ly(e){var t,r,n;const{video:o,enhancedPrivacy:i=!0,showControls:a=!0,startAt:s=0}=e,l=null!==(n=null===(r=null===(t=function(e){const t=document.createElement("a");t.href=e;const r=xa(t.search);return{protocol:t.protocol,host:t.host,hostname:t.hostname,port:t.port,pathname:t.pathname,search:t.search,searchObject:r,hash:t.hash}}(o))||void 0===t?void 0:t.searchObject)||void 0===r?void 0:r.v)&&void 0!==n?n:o,c=i?"https://www.youtube-nocookie.com":"https://www.youtube.com",O=j();return a||(O.controls="0"),s&&(O["amp;start"]=s),`${c}/embed/${l}?${va(O)}`}var cy;!function(e){e.open="open",e.close="close",e.execute="execute",e.nextItem="nextItem",e.prevItem="prevItem",e.inputChange="inputChange"}(cy||(cy={}));const Oy=(e,t,r)=>e.dispatch(e.state.tr.setMeta(t,r)),py=["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","F13","F14","F15","F16","F17","F18","F19","F20","F21","F22","F23","F24","Hyper","Meta","NumLock","PageDown","PageUp","Pause","PrintScreen","Redo","ScrollLock","Shift","Super","Symbol","SymbolLock","Enter","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Backspace","Clear","Copy","CrSel","Cut","Delete","EraseEof","ExSel","Insert","Paste","Redo","Undo","Accept","Again","Attn","Cancel","ContextMenu","Escape","Execute","Find","Finish","Help","Pause","Play","Props","Select","ZoomIn","ZoomOut","BrightnessDown","BrightnessUp","Eject","LogOff","Power","PowerOff","PrintScreen","Hibernate","Standby","WakeUp","AllCandidates","Alphanumeric","CodeInput","Compose","Convert","Dead","FinalMode","GroupFirst","GroupLast","GroupNext","GroupPrevious","ModeChange","NextCandidate","NonConvert","PreviousCandidate","Process","SingleCandidate","HangulMode","HanjaMode","JunjaMode","Eisu","Hankaku","Hiragana","HiraganaKatakana","KanaMode","KanjiMode","Katakana","Romaji","Zenkaku","ZenkakuHanaku"];var uy;!function(e){e.OpenMenu="openMenu",e.CloseMenu="closeMenu",e.Execute="Execute",e.NextItem="NextItem",e.PrevItem="PrevItem",e.inputChange="InputChange",e.addChar="addChar",e.removeChar="removeChar",e.Ignore="Ignore",e.Catch="Catch"}(uy||(uy={}));let dy=(()=>{let e,t,r=[Qe({defaultOptions:{}})],n=[],o=$e;return t=class extends o{get name(){return"slash-menu"}createPlugin(){const e={open:!1,filter:"",ignoredKeys:py};return{props:{handleKeyDown(t,r){const n=t.state,o=this.getState(n);if(!o)return!1;const i=((e,t,r,n,o,i)=>{const a=o||((e=!1)=>({shouldOpen:(t,r,n)=>{const o=n.state,i=o.selection.from<0||o.selection.from>o.doc.content.size?null:o.doc.resolve(o.selection.from),a=null==i?void 0:i.parent,s="paragraph"===(null==a?void 0:a.type.name),l=s&&2===(null==a?void 0:a.nodeSize),c=o.selection.$head.parentOffset,O=o.selection.$head.parent.textContent.slice(c-1,c),p=" "===O||""===O||" "===O;return!t.open&&"/"===r.key&&s&&(l||p||o.selection.from!==o.selection.to&&e)},shouldClose:(e,t)=>e.open&&("/"===t.key||"Escape"===t.key||"Backspace"===t.key)&&0===e.filter.length}))(i);if(a.shouldOpen(e,t,r))return uy.OpenMenu;if(a.shouldClose(e,t,r))return uy.CloseMenu;if(e.open){if("ArrowDown"===t.key)return uy.NextItem;if("ArrowUp"===t.key)return uy.PrevItem;if("Enter"===t.key||"Tab"===t.key)return uy.Execute;if("Escape"===t.key||"Backspace"===t.key&&0===e.filter.length)return uy.CloseMenu;if(e.filter.length>0&&"Backspace"===t.key)return uy.removeChar;if(!n.includes(t.key))return uy.addChar;if("ArrowLeft"===t.key||"ArrowRight"===t.key)return uy.Catch}return uy.Ignore})(o,r,t,e.ignoredKeys);switch(i){case uy.OpenMenu:return Oy(t,this.spec.key,{type:cy.open}),!0;case uy.CloseMenu:return"/"===r.key?t.dispatch(n.tr.insertText("/").setMeta(this.spec.key,{type:cy.close})):Oy(t,this.spec.key,{type:cy.close}),!0;case uy.Execute:case uy.NextItem:case uy.PrevItem:case uy.addChar:case uy.removeChar:case uy.Catch:return!0;default:return!1}}},state:{init:()=>e,apply(t,r){const n=t.getMeta(this.spec.key);switch(null==n?void 0:n.type){case cy.open:return{...e,open:!0};case cy.close:return e;case cy.execute:return{...e,open:!0};default:return r}}},initialState:e}}},Ua(t,"SlashMenuExtension"),(()=>{var i;const a="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(i=o[Symbol.metadata])&&void 0!==i?i:null):void 0;Na(null,e={value:t},r,{kind:"class",name:t.name,metadata:a},null,n),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),Ma(t,n)})(),t})(),fy=(()=>{let e,t,r=[V({defaultOptions:{emptyNodeClass:Pt.IS_EMPTY,placeholder:""},staticKeys:[],handlerKeys:[],customHandlerKeys:[]})],n=[],o=I;return t=class extends o{get name(){return"placeholder"}createAttributes(){return{"aria-placeholder":this.options.placeholder}}createPlugin(){return{props:{decorations:e=>function(e){const{extension:t,state:r}=e,{emptyNodeClass:n,placeholder:o}=t.options,i=[];return r.doc.descendants(((e,t)=>{if("paragraph"===e.type.name&&0===e.content.size&&o&&r.selection.from-1===t){const r=yi.node(t,t+e.nodeSize,{class:n,"data-placeholder":o});i.push(r)}})),Qi.create(r.doc,i)}({state:e,extension:this})}}}onSetOptions(e){const{changes:t}=e;t.placeholder.changed&&this.store.phase>=ce.EditorView&&this.store.updateAttributes()}},Ua(t,"PlaceholderExtension"),(()=>{var i;const a="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(i=o[Symbol.metadata])&&void 0!==i?i:null):void 0;Na(null,e={value:t},r,{kind:"class",name:t.name,metadata:a},null,n),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),Ma(t,n)})(),t})();var hy=S.div`
|
|
127
|
+
width: 100%;
|
|
128
|
+
`;function my(e){return!!(Oe(e)&&e.fromMarkdown&&e.toMarkdown)}function gy(e){const t=[];for(const r of e.extensions)my(r)&&t.push(...r.fromMarkdown());return new bs(e.schema,t)}function yy(e){const t={};for(const r of e.extensions)my(r)&&(t[r.name]=r.toMarkdown);return new Dy(t)}const Sy=({handleViewImgSrcUrl:e}={})=>{const t=u((()=>[...Uy({handleViewImgSrcUrl:e})])),r=gy(t),n=yy(t);return{view:"Wysiwyg",manager:t,stringToDoc:e=>function(e){const t=new yn(e),r=[];return il(t,e,0,r),r.length&&t.step(new Bs(r)),t.doc}(r.parse(e)),docToString:e=>n.serialize(e)}},by=S.div`
|
|
129
|
+
position: absolute;
|
|
130
|
+
|
|
131
|
+
.MuiList-padding {
|
|
132
|
+
padding: 0;
|
|
133
|
+
}
|
|
134
|
+
`,Qy=e=>{const{positioner:r}=e,o=d(),[i,s]=t(!1),l=n(null),c=a(Vy),O=[{label:"insert column after",handler:o.addTableColumnAfter},{label:"insert column before",handler:o.addTableColumnBefore},{label:"insert row after",handler:o.addTableRowAfter},{label:"insert row before",handler:o.addTableRowBefore},{label:"delete column",handler:o.deleteTableColumn},{label:"delete row",handler:o.deleteTableRow}],p=e=>{l.current&&l.current.contains(e.target)||s(!1)},{ref:u,key:f,x:h,y:m}=r;return or.exports.jsxs(by,{ref:u,style:{left:h+c.left,top:m+c.top,width:20,height:20},onMouseDown:e=>{e.preventDefault(),s(!0)},children:[or.exports.jsx("div",{ref:l,children:or.exports.jsx("i",{className:"ri-equalizer-line"})}),or.exports.jsx(zt,{sx:{zIndex:1},open:i,anchorEl:l.current,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:e,placement:t})=>or.exports.jsx(Nt,{...e,style:{transformOrigin:"bottom"===t?"center top":"center bottom"},children:or.exports.jsx(Mt,{children:or.exports.jsx(Ut,{onClickAway:p,children:or.exports.jsx(Gt,{dense:!0,autoFocusItem:!0,children:O.map((e=>or.exports.jsx(Dt,{onClick:()=>{e.handler(),s(!1)},children:or.exports.jsx(Bt,{children:e.label})},e.label)))})})})})})]},f)},wy=S.div`
|
|
135
|
+
position: absolute;
|
|
136
|
+
color: ${e=>e.theme.dangerColor};
|
|
137
|
+
`;function $y(e){const{positioner:t}=e,r=d(),n=a(Vy),{ref:o,key:i,x:s,y:l}=t;return or.exports.jsx(wy,{ref:o,style:{left:s+n.left,top:l+n.top-26,width:20,height:20},onMouseDown:e=>{e.preventDefault(),r.deleteTable()},children:or.exports.jsx("i",{className:"ri-delete-bin-line"})},i)}const Py={y:-999999,x:-999999,width:0,height:0},vy={...Py,left:-999999,top:-999999,bottom:-999999,right:-999999},xy={...Py,rect:{...vy,toJSON:()=>vy},visible:!1},ky=Lt.create({hasChanged:Ft,getActive(e){const{state:t,view:r}=e,{selection:n}=t,o=function(e){return ve({selection:e,types:"table"})}(n);if(!o)return Lt.EMPTY;const i=function(e){return ve({selection:e,types:["tableHeaderCell","tableCell"]})}(n);if(!i)return Lt.EMPTY;const{pos:a}=i,s=r.nodeDOM(o.pos),l=r.nodeDOM(a);if(!Pe(s)||!Pe(l))return Lt.EMPTY;const c=s.getBoundingClientRect(),O=l.getBoundingClientRect();return[{pos:o.pos,rect:new DOMRect(c.x,c.y,c.width,c.height)},{pos:a,rect:new DOMRect(O.x,c.y,O.width,c.height)}]},getID:e=>`${e.pos}`,getPosition(e){const{view:t,data:r}=e,n=t.nodeDOM(r.pos);if(!Pe(n))return xy;const o=n.getBoundingClientRect(),i=t.dom.getBoundingClientRect(),a=o.width,s=t.dom.scrollLeft+o.left-i.left,l=t.dom.scrollTop+o.top-i.top,c=o.height,O=new DOMRect(o.x,o.y,a,c);return{x:s,y:l,width:a,height:c,rect:O,visible:Jt(O,t.dom)}}}),Zy=({positioner:e})=>{const t=h(e,[]),{forceUpdatePositioners:r}=d();if(i((()=>{r()}),[r]),0===t.length)return null;const n=[$y,Qy];return or.exports.jsx(or.exports.Fragment,{children:t.map(((e,t)=>{const r=n[t];return or.exports.jsx(r,{positioner:e},e.key)}))})},Ty=()=>or.exports.jsx(or.exports.Fragment,{children:or.exports.jsx(f,{children:or.exports.jsx(Zy,{positioner:ky})})}),Ry=S.h1`
|
|
138
|
+
color: ${({theme:e})=>e.dangerColor};
|
|
139
|
+
`;class Xy extends e.Component{constructor(e){var t;super(e),this.state={hasError:null!==(t=this.props.hasError)&&void 0!==t&&t}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("[ErrorBoundary]",e,t)}render(){return this.state.hasError?or.exports.jsxs(or.exports.Fragment,{children:[or.exports.jsx(Ry,{"data-testid":"editor_error",children:"Sorry, something went wrong!"}),or.exports.jsx("p",{children:String(this.props.error)}),or.exports.jsx("a",{href:"https://github.com/drl990114/MarkFlowy/issues/new/choose",target:"_blank",rel:"noreferrer",children:"Please tell us about it and we will fix it in less time"})]}):this.props.children}}const Ey=S.div.attrs((e=>e))`
|
|
140
|
+
border: 1px solid ${e=>e.theme.borderColor};
|
|
141
|
+
margin-right: 1px;
|
|
142
|
+
margin-bottom: 1px;
|
|
143
|
+
width: 10px;
|
|
144
|
+
height: 10px;
|
|
145
|
+
background-color: ${e=>e.inScope?e.theme.blue:e.theme.contextMenuBgColor};
|
|
146
|
+
`,Cy=r(s(((e,r)=>{const{commands:n,closeMenu:o}=e,[i,a]=t(3),[s,c]=t(3);l(r,(()=>({createTable:()=>{n.createTable({rowsCount:i,columnsCount:s,withHeaderRow:!1})},handleKeyDown:e=>{if("ArrowRight"!==e.key){if("ArrowLeft"===e.key)return!(!e.metaKey&&!e.ctrlKey&&(c((e=>e-1<1?1:e-1)),1));if("ArrowUp"!==e.key){if("ArrowDown"!==e.key)return"Enter"===e.key?(n.createTable({rowsCount:i,columnsCount:s}),!1):void 0;a((e=>e+1))}else a((e=>e-1<1?1:e-1))}else c((e=>e+1))}})));return or.exports.jsxs("div",{children:[or.exports.jsxs("span",{children:["Rows: ",i," Cols: ",s]}),Array.from({length:10}).map(((e,t)=>or.exports.jsx("div",{style:{display:"flex"},children:Array.from({length:6}).map(((e,r)=>{const a=t<i&&r<s;return or.exports.jsx(Ey,{inScope:a,onClick:()=>{n.createTable({rowsCount:t,columnsCount:r,withHeaderRow:!1}),o()}},r)}))},t)))]})}))),jy=r((({rootRef:e,commands:r,closeMenu:a})=>{var s;const l=n({}),O=c((()=>{const e=Array.from({length:6}).map(((e,t)=>({title:`heading ${t+1}`,id:`heading${t+1}`,handler:()=>{r.toggleHeading({level:t+1})}})));return[{title:"Text",id:"text",children:e},{title:"Table",id:"table",handler:()=>{var e;null===(e=l.current.table)||void 0===e||e.createTable()},Renderer:{id:"table",Component:or.exports.jsx(Cy,{ref:e=>l.current.table=e,commands:r,closeMenu:a})}}]}),[a,r]),[p,u]=t(O[0].id),[d,f]=t(),h=O.findIndex((e=>e.id===p)),m=O[h],g=o((()=>{if(d)if(null==m?void 0:m.children){const e=m.children.findIndex((e=>e.id===d))+1;e<m.children.length&&f(m.children[e].id)}else m.Renderer&&f(m.Renderer.id);else{const e=h+1;e<O.length&&u(O[e].id)}}),[d,h,m.Renderer,m.children,O]),y=o((()=>{if(d)if(null==m?void 0:m.children){const e=m.children.findIndex((e=>e.id===d))-1;e>=0&&f(m.children[e].id)}else m.Renderer&&f(m.Renderer.id);else{const e=h-1;e>=0&&u(O[e].id)}}),[d,h,m.Renderer,m.children,O]),S=o((()=>{(null==m?void 0:m.children)?f(m.children[0].id):(null==m?void 0:m.Renderer)&&f(m.Renderer.id)}),[m]),b=o((()=>{f(void 0)}),[]);return i((()=>{const e=e=>{var t;if(d){const t=l.current[d];if(null==t?void 0:t.handleKeyDown){if(!1===t.handleKeyDown(e))return void a()}}if("ArrowDown"===e.key)g();else if("ArrowUp"===e.key)y();else if("ArrowRight"===e.key)S();else if("ArrowLeft"===e.key)b();else if("Enter"===e.key){if(d){const e=null===(t=null==m?void 0:m.children)||void 0===t?void 0:t.find((e=>e.id===d));(null==e?void 0:e.handler)&&e.handler()}(null==m?void 0:m.handler)&&m.handler(),a()}};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[d,g,b,S,y,a,O,m]),or.exports.jsxs("div",{ref:e,style:{display:"flex"},children:[or.exports.jsx(Yy,{active:!0,location:"left",children:O.map((e=>{const t=e.id===p;return or.exports.jsx(_y,{onClick:()=>u(e.id),selected:t,children:e.title},e.id)}))}),or.exports.jsx(Yy,{active:!!d,location:"right",children:(null==m?void 0:m.Renderer)?m.Renderer.Component:null===(s=null==m?void 0:m.children)||void 0===s?void 0:s.map((e=>{const t=e.id===d;return or.exports.jsx(_y,{selected:t,onClick:()=>{var t;f(e.id),null===(t=e.handler)||void 0===t||t.call(e),a()},children:e.title},e.id)}))})]})})),Yy=S.div.attrs((e=>e))`
|
|
147
|
+
display: flex;
|
|
148
|
+
min-width: 130px;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
overscroll-behavior: contain;
|
|
151
|
+
border-radius: ${e=>"left"===e.location?`${e.theme.smallBorderRadius} 0 0\n ${e.theme.smallBorderRadius}`:`0 ${e.theme.smallBorderRadius} ${e.theme.smallBorderRadius} 0`};
|
|
152
|
+
border-width: 1px;
|
|
153
|
+
border-style: solid;
|
|
154
|
+
border-right: none;
|
|
155
|
+
border-color: ${e=>e.theme.borderColor};
|
|
156
|
+
background-color: ${e=>e.active?Ne(e.theme.contextMenuBgColor,.2):e.theme.contextMenuBgColor};
|
|
157
|
+
padding: ${e=>e.theme.spaceXs};
|
|
158
|
+
color: ${e=>e.theme.primaryFontColor};
|
|
159
|
+
font-size: ${e=>e.theme.fontXs};
|
|
160
|
+
outline: none;
|
|
161
|
+
overflow: visible;
|
|
162
|
+
`,_y=S.li.attrs((e=>({...e})))`
|
|
163
|
+
display: flex;
|
|
164
|
+
cursor: default;
|
|
165
|
+
align-items: center;
|
|
166
|
+
border-radius: ${e=>e.theme.smallBorderRadius};
|
|
167
|
+
padding: ${e=>e.theme.spaceXs};
|
|
168
|
+
outline: none !important;
|
|
169
|
+
|
|
170
|
+
&:hover {
|
|
171
|
+
background-color: ${e=>e.theme.blue};
|
|
172
|
+
color: hsl(204 20% 100%);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
${e=>{if(e.selected)return b`
|
|
176
|
+
background-color: ${e=>e.theme.blue};
|
|
177
|
+
color: hsl(204 20% 100%);
|
|
178
|
+
`}}
|
|
179
|
+
`;var Ay;!function(e){e.auto="auto",e.autoStart="auto-start",e.autoEnd="auto-end",e.top="top",e.topStart="top-start",e.topEnd="top-end",e.bottom="bottom",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.right="right",e.rightStart="right-start",e.rightEnd="right-end",e.left="left",e.leftStart="left-start",e.leftEnd="left-end"}(Ay||(Ay={}));const Wy=()=>{const{view:e,getState:r,commands:a}=Kt({autoUpdate:!0}),s=r(),l=Ht(dy),O=l.getPluginState(),p=n(null);i((()=>{if(!p)return;const t=t=>{!p.current||t.target&&t.target instanceof Node&&p.current.contains(null==t?void 0:t.target)||Oy(e,l.pluginKey,{type:cy.close})};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}}),[e,p,l.pluginKey]);const[u,d]=t(null),f=c((()=>{var t;const r=null===(t=e.domAtPos(s.selection.to))||void 0===t?void 0:t.node,n=e.state.selection.to,o=e.coordsAtPos(n).left;if(!(r instanceof HTMLElement))return;const{top:i,height:a}=r.getBoundingClientRect();return{getBoundingClientRect:()=>({top:i,right:o,bottom:i,left:o,width:0,height:a,x:o,y:i,toJSON:()=>JSON.stringify({top:i,right:o,bottom:i,left:o,width:0,height:a,x:o,y:i})})}}),[e,s]),{styles:h,attributes:m}=er(f,u,{placement:Ay.bottomStart,modifiers:[{name:"flip",enabled:!0},{name:"preventOverflow"}]}),g=o((()=>{O.open&&Oy(e,l.pluginKey,{type:cy.close})}),[e,O.open,l.pluginKey]);return i((()=>{e.focus()}),[null==O?void 0:O.open]),or.exports.jsx(or.exports.Fragment,{children:O.open?or.exports.jsx("div",{ref:d,style:{...h.popper,backgroundColor:"#1e1e1e",zIndex:1e3},...m.popper,children:or.exports.jsx(jy,{rootRef:p,commands:a,closeMenu:g})}):null})},Vy=O({top:0,left:0}),qy={stringToDoc:null,docToString:null},Iy=e=>{const{content:t,hooks:r,delegate:n,offset:i,wysiwygToolBar:a,isTesting:s,editable:l}=e,O=c((()=>null!=n?n:Sy()),[n]),p=o((t=>{var r;try{const n=O.docToString(t.state.doc);null===(r=e.onChange)||void 0===r||r.call(e,t,n)}catch(e){console.error(e)}}),[O,e]);let u;null===qy.stringToDoc&&(qy.stringToDoc=O.stringToDoc,qy.docToString=O.docToString);try{u=O.stringToDoc(t)}catch(e){return or.exports.jsx(Xy,{hasError:!0,error:e})}return or.exports.jsx(Xy,{children:or.exports.jsx(hy,{children:or.exports.jsx(Vy.Provider,{value:i||{top:0,left:0},children:or.exports.jsxs(m,{manager:O.manager,initialContent:u,hooks:r,editable:l,onChange:p,children:[or.exports.jsx(Ty,{}),or.exports.jsx(Wy,{}),a||null,or.exports.jsx(sr,{className:"w-full markdown-body"}),s?or.exports.jsx(w,{}):null]})})})})};Iy.defaultProps={editable:!0};var zy=r(Iy);function Ny(e){if(!e)return!1;if(Array.isArray(e))return!(e.length>1)&&Ny(e[0]);const t=e.content;return t?Ny(t):"text"===e.type}class My extends I{get name(){return"clipboard"}createPlugin(){return{props:{handlePaste:(e,t)=>{var r,n;const o=qy.stringToDoc,i=e.state.schema,a=null===(n=(r=e.props).editable)||void 0===n?void 0:n.call(r,e.state),{clipboardData:s}=t;if(!a||!s)return!1;if(e.state.selection.$from.node().type.spec.code)return!1;const l=s.getData("text/plain"),c=s.getData("text/html");if(0===c.length&&0===l.length)return!1;const O=wr.fromSchema(i);let p;if(0===c.length){const e=null==o?void 0:o(l);if(!e||"string"==typeof e)return!1;p=Er.fromSchema(i).serializeFragment(e.content)}else{const e=document.createElement("template");e.innerHTML=c,p=e.content.cloneNode(!0),e.remove()}const u=O.parseSlice(p),d=function(e){if(1===e.content.childCount){const t=e.content.firstChild;if("text"===(null==t?void 0:t.type.name)&&0===t.marks.length)return t;if("paragraph"===(null==t?void 0:t.type.name)&&1===t.childCount){const e=t.firstChild;if("text"===(null==e?void 0:e.type.name)&&0===e.marks.length)return e}}return!1}(u);return d?(e.dispatch(e.state.tr.replaceSelectionWith(d,!0)),!0):(e.dispatch(e.state.tr.replaceSelection(u)),!0)},clipboardTextSerializer:(e,t)=>{const r=t.state.schema,n=qy.docToString;if(Ny(e.content.toJSON()))return e.content.textBetween(0,e.content.size,"\n\n");const o=r.topNodeType.createAndFill(void 0,e.content);if(!o)return"";return(null==n?void 0:n(o))||""}}}}}function Uy({handleViewImgSrcUrl:e}){return[...ke({excludeExtensions:["paragraph","text"]}),...kl({handleViewImgSrcUrl:e}),new Ze({}),new ny({handleViewImgSrcUrl:e}),new sy({enableResizing:!0}),new fy({placeholder:"Type '/' for commands"}),new Vl({}),new Cl,new jl,new Wl,new _l,new El({}),new Yl,new Ky({}),new zs({resizable:!1}),new Ns,new Us,new Ms,new wh({decoration:{style:"background-color: yellow; color: black"},activeDecoration:{style:"background-color: orange; color: black"}}),new Bg,new My,new g({}),new Qa({}),new dy,new Xl,new Rl]}class Gy{constructor(e){this.nodes=e,this.delimiter="",this.out="",this.closed=null,this.inTightList=!1}flushClose(e=2){if(this.closed){if(this.ensureNewLine(),e>1){let t=this.delimiter;const r=/\s+$/.exec(t);r&&(t=t.slice(0,t.length-r[0].length));for(let r=1;r<e;r++)this.out+=t+"\n"}this.closed=null}}wrapBlock(e,t,r,n){const o=this.delimiter;this.write(t||e),this.delimiter=this.delimiter+e,n(),this.delimiter=o,this.closeBlock(r)}atBlank(){return/(^|\n)$/.test(this.out)}ensureNewLine(){this.atBlank()||(this.out+="\n")}write(e){this.flushClose(),this.delimiter&&this.atBlank()&&(this.out+=this.delimiter),e&&(this.out+=e)}closeBlock(e){this.closed=e}text(e,t=!0){const r=e.split("\n");for(let e=0;e<r.length;e++){const n=this.atBlank()||this.closed;this.write(),this.out+=t?this.esc(r[e],Boolean(n)):r[e],e!=r.length-1&&(this.out+="\n")}}render(e,t,r,n=0){const o=this.nodes[e.type.name];if(o){if(!o)throw new Error(`Can't find node spec for type '${e.type.name}'`);o({state:this,node:e,parent:t,index:r,counter:n})}}renderContent(e){let t=0;e.forEach(((r,n,o)=>{!function(e){return"list"===e.type.name&&"ordered"===e.attrs.kind}(r)?t=0:t+=1,this.render(r,e,o,t)}))}renderInline(e){e.forEach(((t,r,n)=>{t.isText?this.text(t.text||"",!1):this.render(t,e,n)}))}renderList(e,t,r){this.closed&&this.closed.type===e.type?this.flushClose(3):this.inTightList?this.flushClose(1):this.flushClose(2);const n=this.inTightList;this.inTightList=!0,e.forEach(((n,o,i)=>{i&&this.flushClose(1),this.wrapBlock(t,r(i),e,(()=>this.render(n,e,i)))})),this.inTightList=n}esc(e,t){return e=e.replace(/[`*\\~\[\]]/g,"\\$&"),t&&(e=e.replace(/^[:#\-*+]/,"\\$&").replace(/^(\d+)\./,"$1\\.")),e}quote(e){const t=e.includes('"')?e.includes("'")?"()":"''":'""';return t[0]+e+t[1]}repeat(e,t){let r="";for(let n=0;n<t;n++)r+=e;return r}getEnclosingWhitespace(e){return{leading:(/^(\s+)/.exec(e)||[])[0],trailing:(/(\s+)$/.exec(e)||[])[0]}}}class Dy{constructor(e){this.nodes=e}serialize(e){const t=new Gy(this.nodes);return t.renderContent(e),t.out}}const By=({keyword:e,languagesList:t,currentLanguage:r})=>{let n=Me;e&&(n=new rr(Me,{keys:["name"]}).search(e).map((e=>e.item))),t.innerHTML="",n.forEach((e=>{const n=document.createElement("li");n.classList.add("code-block__language"),n.classList.toggle("code-block__language--active",e.name===r),n.innerText=e.name,t.append(n)}))},Ly=e=>{let t;const r=e=>{e.target.classList.contains("code-block__languages__input")||n()},n=()=>{null==t||t.destroy(),t=void 0,document.removeEventListener("click",r)};return{create:(n,o)=>{let i=e.node.attrs.language||"";i===Jy&&(i="");const a=(e=>{const t=document.createElement("ul");return t.classList.add("code-block__languages"),Me.forEach((r=>{const n=document.createElement("li");n.classList.add("code-block__language"),n.classList.toggle("code-block__language--active",r.name===e),n.innerText=r.name,t.append(n)})),t})(i),s=e=>{const t=o();t&&n.dispatch(n.state.tr.setNodeMarkup(t,void 0,{language:e}))},l=document.createElement("div"),c=document.createElement("input");return l.classList.add("code-block__reference","code-block__reference--active"),c.classList.add("code-block__languages__input"),l.appendChild(c),c.value=i,c.addEventListener("focus",(()=>{t=new tr({target:c,content:a,position:"bottom left"})})),document.addEventListener("click",r,!0),c.addEventListener("input",(e=>{if(e.target){const t=e.target.value;By({keyword:t,currentLanguage:i,languagesList:a}),s(t)}})),null==a||a.addEventListener("click",(e=>{i=e.target.innerText,s(i),c.value=i})),By({keyword:i,currentLanguage:i,languagesList:a}),l},destroy:n}};class Fy{constructor({node:e,view:t,getPos:r,extensions:n}){this.node=e,this.view=t,this.getPos=r,this.languageName="",this.mfCodemirrorView=new xh({view:this.view,getPos:this.getPos,node:this.node,extensions:n,languageName:this.languageName}),this.cm=this.mfCodemirrorView.cm,this.dom=this.cm.dom}update(e){return this.node=e,this.mfCodemirrorView.update(e)}setSelection(e,t){this.mfCodemirrorView.setSelection(e,t)}selectNode(){this.focus()}focus(){this.cm.focus(),this.mfCodemirrorView.forwardSelection()}stopEvent(){return!0}destroy(){this.mfCodemirrorView.destroy()}}const Jy="indent-code";let Ky=(()=>{let e,t,r,n,o,i,a=[V({defaultOptions:{hideDecoration:!1,extensions:null,toggleName:"paragraph"}})],s=[],l=T,c=[];return t=class extends l{constructor(){super(...arguments),this.nodeview=void Ma(this,c)}get name(){return"codeMirror"}createNodeSpec(e,t){var r;return{group:"block",content:"text*",marks:"",defining:!0,...t,code:!0,attrs:{...e.defaults(),language:{default:""}},parseDOM:[{tag:"pre",getAttrs:t=>!!ne(t)&&e.parse(t)},...null!==(r=t.parseDOM)&&void 0!==r?r:[]],toDOM:()=>["pre",["code",0]],isolating:!0}}createNodeViews(){return(e,t,r)=>(this.nodeview=new Fy({node:e,view:t,getPos:r,extensions:this.options.extensions,toggleName:this.options.toggleName}),this.nodeview)}createKeymap(){return{ArrowLeft:Dg("left"),ArrowRight:Dg("right"),ArrowUp:Dg("up"),ArrowDown:Dg("down")}}createInputRules(){return[N({regexp:/^```(\S+) $/,type:this.type,beforeDispatch:({tr:e,start:t})=>{const r=e.doc.resolve(t);e.setSelection(Pn.near(r))},getAttributes:e=>{var t;return{language:null!==(t=e[1])&&void 0!==t?t:""}}})]}enterKey({dispatch:e,tr:t}){var r;if(!L(t.selection)||!t.selection.empty)return!1;const{nodeBefore:n,parent:o}=t.selection.$anchor;if(!(null==n?void 0:n.isText)||!o.type.isTextblock)return!1;const i=/^```(\S*)?$/,{text:a,nodeSize:s}=n,{textContent:l}=o;if(!a)return!1;const c=a.match(i),O=l.match(i);if(!c||!O)return!1;const p=null!==(r=c[1])&&void 0!==r?r:"",u=t.selection.$from.before(),d=u+s+1;return t.replaceWith(u,d,this.type.create({language:p})),t.setSelection(Pn.near(t.doc.resolve(u+1))),e&&e(t),!0}createCodeMirror(e){return pe(this.type,e)}updateCodeMirror(e){const t=this.type;return({state:r,dispatch:n,tr:o})=>{const i=J({types:t,selection:r.selection});return!(!i||ue(e,i.node.attrs))&&(o.setNodeMarkup(i.pos,t,{...i.node.attrs,...e}),n&&n(o),!0)}}changeCodeMirrorTheme(e){return()=>(vh(e),!0)}fromMarkdown(){return[{type:Ka.block,token:"fence",node:this.name,hasOpenClose:!1,getAttrs:e=>({language:e.info})},{type:Ka.block,token:"code_block",node:this.name,hasOpenClose:!1,getAttrs:()=>({language:Jy})}]}toMarkdown({state:e,node:t}){t.attrs.language!==Jy?(e.write("```"+(t.attrs.language||"")+"\n"),e.text(t.textContent,!1),e.text("\n"),e.write("```"),e.closeBlock(t)):(e.wrapBlock(" "," ",t,(()=>e.renderContent(t))),e.closeBlock(t)),e.ensureNewLine()}createDecorations(e){if(this.options.hideDecoration)return Qi.empty;const t=J({types:this.type,selection:e.selection});if(!t)return Qi.empty;if(!Me||Me.length<=1)return Qi.empty;const{create:r,destroy:n}=Ly(t),o=yi.widget(t.pos,r,{ignoreSelection:!0,stopEvent:()=>!0,key:"language-menu",destroy:n});return Qi.create(e.doc,[o])}},Ua(t,"LineCodeMirrorExtension"),(()=>{var O;const p="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(O=l[Symbol.metadata])&&void 0!==O?O:null):void 0;r=[C({shortcut:"Enter"})],n=[E()],o=[E()],i=[E()],Na(t,null,r,{kind:"method",name:"enterKey",static:!1,private:!1,access:{has:e=>"enterKey"in e,get:e=>e.enterKey},metadata:p},null,c),Na(t,null,n,{kind:"method",name:"createCodeMirror",static:!1,private:!1,access:{has:e=>"createCodeMirror"in e,get:e=>e.createCodeMirror},metadata:p},null,c),Na(t,null,o,{kind:"method",name:"updateCodeMirror",static:!1,private:!1,access:{has:e=>"updateCodeMirror"in e,get:e=>e.updateCodeMirror},metadata:p},null,c),Na(t,null,i,{kind:"method",name:"changeCodeMirrorTheme",static:!1,private:!1,access:{has:e=>"changeCodeMirrorTheme"in e,get:e=>e.changeCodeMirrorTheme},metadata:p},null,c),Na(null,e={value:t},a,{kind:"class",name:t.name,metadata:p},null,s),t=e.value,p&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:p}),Ma(t,s)})(),t})();function Hy(){return u((()=>[new Ze({}),new da({content:"codeMirror"}),new Ky({hideDecoration:!0,extensions:[Rh,nr()]})]))}const eS=()=>{const e=Hy();return{manager:e,stringToDoc:t=>{const r=e.schema,n=t?r.text(t):void 0;return r.nodes.doc.create({},r.nodes.codeMirror.create({language:"markdown"},n))},docToString:e=>e.textContent,view:"SourceCode"}},[tS,rS]=y((({props:e})=>({...e}))),nS=r((e=>{const{markdownToolBar:t}=e,{content:r,markText:n,hooks:o,isTesting:i,editable:a}=rS();let s;try{s=n.stringToDoc(r)}catch(e){return or.exports.jsx(Xy,{hasError:!0,error:e})}return or.exports.jsx(Xy,{children:or.exports.jsxs(m,{manager:n.manager,initialContent:s,hooks:o,editable:a,onChange:e.onChange,children:[or.exports.jsx(sr,{className:"h-full w-full overflow-auto px-0",style:{padding:0}}),t||null,i?or.exports.jsx(w,{}):null]})})}));var oS=r((e=>{const{content:t,delegate:r,isTesting:n,hooks:i,markdownToolBar:a}=e,s=c((()=>null!=r?r:eS()),[r]),l=o((t=>{var r;try{const n=s.docToString(t.state.doc);null===(r=e.onChange)||void 0===r||r.call(e,t,n)}catch(e){console.error(e)}}),[s,e]);return or.exports.jsx(tS,{content:t,isTesting:n,markText:s,hooks:i,children:or.exports.jsx(nS,{markdownToolBar:a,onChange:l})})}));const iS=r(s(((e,r)=>{const{hooks:n=[],onContextMounted:o,...a}=e,[s,O]=t("wysiwyg");l(r,(()=>({getType:()=>s,toggleType:e=>{O(e)}})));const p=c((()=>[()=>(e=>{const t=Kt();i((()=>{e&&e(t)}),[e,t])})(o),...n]),[n,o]);return"sourceCode"===s?or.exports.jsx(oS,{...a,hooks:p}):or.exports.jsx(zy,{...a,hooks:p})}))),aS=({theme:e,children:t})=>or.exports.jsx(Q,{theme:e,children:t});export{iS as Editor,Uy as EditorExtensions,aS as EditorProvider,Vy as OffsetContext,oS as SourceEditor,zy as WysiwygEditor,gy as buildMarkdownParser,yy as buildMarkdownSerializer,vh as changeTheme,Th as computeChange,eS as createSourceCodeDelegate,Hy as createSourceCodeManager,Sy as createWysiwygDelegate,kh as getLanguageMap,Zh as loadLanguage,qy as wysiwygTransformer};
|
|
180
|
+
//# sourceMappingURL=index.min.mjs.map
|