diff --git a/ui/vuetifyx/vuetifyxjs/dist/vuetifyx.min.js b/ui/vuetifyx/vuetifyxjs/dist/vuetifyx.min.js index eeb2d416..beb39b62 100644 --- a/ui/vuetifyx/vuetifyxjs/dist/vuetifyx.min.js +++ b/ui/vuetifyx/vuetifyxjs/dist/vuetifyx.min.js @@ -39,7 +39,7 @@ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function `);return{dom:l,text:h,slice:t}}function _K(e,t,n,r,a){let o=a.parent.type.spec.code,i,s;if(!n&&!t)return null;let l=!!t&&(r||o||!n);if(l){if(e.someProp("transformPastedText",h=>{t=h(t,o||r,e)}),o)return s=new nt(Oe.from(e.state.schema.text(t.replace(/\r\n?/g,` `))),0,0),e.someProp("transformPasted",h=>{s=h(s,e,!0)}),s;let d=e.someProp("clipboardTextParser",h=>h(t,a,r,e));if(d)s=d;else{let h=a.marks(),{schema:p}=e.state,v=ad.fromSchema(p);i=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(m=>{let g=i.appendChild(document.createElement("p"));m&&g.appendChild(v.serializeNode(p.text(m,h)))})}}else e.someProp("transformPastedHTML",d=>{n=d(n,e)}),i=LVe(n),cb&&NVe(i);let u=i&&i.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let h=i.firstChild;for(;h&&h.nodeType!=1;)h=h.nextSibling;if(!h)break;i=h}if(s||(s=(e.someProp("clipboardParser")||e.someProp("domParser")||rd.fromSchema(e.state.schema)).parseSlice(i,{preserveWhitespace:!!(l||c),context:a,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!DVe.test(d.parentNode.nodeName)?{ignore:!0}:null}})),c)s=OVe(AK(s,+c[1],+c[2]),c[4]);else if(s=nt.maxOpen(VVe(s.content,a),!0),s.openStart||s.openEnd){let d=0,h=0;for(let p=s.content.firstChild;d{s=d(s,e,l)}),s}const DVe=/^(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 VVe(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),a,o=[];if(e.forEach(i=>{if(!o)return;let s=r.findWrapping(i.type),l;if(!s)return o=null;if(l=o.length&&a.length&&TK(s,a,i,o[o.length-1],0))o[o.length-1]=l;else{o.length&&(o[o.length-1]=kK(o[o.length-1],a.length));let u=CK(i,s);o.push(u),r=r.matchType(u.type),a=s}}),o)return Oe.from(o)}return e}function CK(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,Oe.from(e));return e}function TK(e,t,n,r,a){if(a1&&(o=0),a=n&&(s=t<0?i.contentMatchAt(0).fillBefore(s,o<=a).append(s):s.append(i.contentMatchAt(i.childCount).fillBefore(Oe.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,i.copy(s))}function AK(e,t,n){return tn})),dV.createHTML(e)):e}function LVe(e){let t=/^(\s*]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=IK().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e),a;if((a=r&&EK[r[1].toLowerCase()])&&(e=a.map(o=>"<"+o+">").join("")+e+a.map(o=>"").reverse().join("")),n.innerHTML=PVe(e),a)for(let o=0;o=0;s-=2){let l=n.nodes[r[s]];if(!l||l.hasRequiredAttrs())break;a=Oe.from(l.create(r[s+1],a)),o++,i++}return new nt(a,o,i)}const Vo={},Po={},RVe={touchstart:!0,touchmove:!0};class BVe{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function FVe(e){for(let t in Vo){let n=Vo[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=r=>{HVe(e,r)&&!hV(e,r)&&(e.editable||!(r.type in Po))&&n(e,r)},RVe[t]?{passive:!0}:void 0)}Do&&e.dom.addEventListener("input",()=>null),fV(e)}function hd(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function zVe(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function fV(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=r=>hV(e,r))})}function hV(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function HVe(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function WVe(e,t){!hV(e,t)&&Vo[t.type]&&(e.editable||!(t.type in Po))&&Vo[t.type](e,t)}Po.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!VK(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(Xu&&fo&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),cm&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();e.input.lastIOSEnter=r,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==r&&(e.someProp("handleKeyDown",a=>a(e,vh(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",r=>r(e,n))||IVe(e,n)?n.preventDefault():hd(e,"key")},Po.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},Po.keypress=(e,t)=>{let n=t;if(VK(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||as&&n.metaKey)return;if(e.someProp("handleKeyPress",a=>a(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof At)||!r.$from.sameParent(r.$to)){let a=String.fromCharCode(n.charCode),o=()=>e.state.tr.insertText(a).scrollIntoView();!/[\r\n]/.test(a)&&!e.someProp("handleTextInput",i=>i(e,r.$from.pos,r.$to.pos,a,o))&&e.dispatch(o()),n.preventDefault()}};function Mx(e){return{left:e.clientX,top:e.clientY}}function GVe(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function pV(e,t,n,r,a){if(r==-1)return!1;let o=e.state.doc.resolve(r);for(let i=o.depth+1;i>0;i--)if(e.someProp(t,s=>i>o.depth?s(e,n,o.nodeAfter,o.before(i),a,!0):s(e,n,o.node(i),o.before(i),a,!1)))return!0;return!1}function hm(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);r.setMeta("pointer",!0),e.dispatch(r)}function UVe(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&Ct.isSelectable(r)?(hm(e,new Ct(n)),!0):!1}function jVe(e,t){if(t==-1)return!1;let n=e.state.selection,r,a;n instanceof Ct&&(r=n.node);let o=e.state.doc.resolve(t);for(let i=o.depth+1;i>0;i--){let s=i>o.depth?o.nodeAfter:o.node(i);if(Ct.isSelectable(s)){r&&n.$from.depth>0&&i>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?a=o.before(n.$from.depth):a=o.before(i);break}}return a!=null?(hm(e,Ct.create(e.state.doc,a)),!0):!1}function YVe(e,t,n,r,a){return pV(e,"handleClickOn",t,n,r)||e.someProp("handleClick",o=>o(e,t,r))||(a?jVe(e,n):UVe(e,n))}function KVe(e,t,n,r){return pV(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",a=>a(e,t,r))}function XVe(e,t,n,r){return pV(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",a=>a(e,t,r))||ZVe(e,n,r)}function ZVe(e,t,n){if(n.button!=0)return!1;let r=e.state.doc;if(t==-1)return r.inlineContent?(hm(e,At.create(r,0,r.content.size)),!0):!1;let a=r.resolve(t);for(let o=a.depth+1;o>0;o--){let i=o>a.depth?a.nodeAfter:a.node(o),s=a.before(o);if(i.inlineContent)hm(e,At.create(r,s+1,s+1+i.content.size));else if(Ct.isSelectable(i))hm(e,Ct.create(r,s));else continue;return!0}}function vV(e){return Ix(e)}const DK=as?"metaKey":"ctrlKey";Vo.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=vV(e),a=Date.now(),o="singleClick";a-e.input.lastClick.time<500&&GVe(n,e.input.lastClick)&&!n[DK]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type=="singleClick"?o="doubleClick":e.input.lastClick.type=="doubleClick"&&(o="tripleClick")),e.input.lastClick={time:a,x:n.clientX,y:n.clientY,type:o,button:n.button};let i=e.posAtCoords(Mx(n));i&&(o=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new JVe(e,i,n,!!r)):(o=="doubleClick"?KVe:XVe)(e,i.pos,i.inside,n)?n.preventDefault():hd(e,"pointer"))};class JVe{constructor(t,n,r,a){this.view=t,this.pos=n,this.event=r,this.flushed=a,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!r[DK],this.allowDefault=r.shiftKey;let o,i;if(n.inside>-1)o=t.state.doc.nodeAt(n.inside),i=n.inside;else{let c=t.state.doc.resolve(n.pos);o=c.parent,i=c.depth?c.before():0}const s=a?null:r.target,l=s?t.docView.nearestDesc(s,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:u}=t.state;(r.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||u instanceof Ct&&u.from<=i&&u.to>i)&&(this.mightDrag={node:o,pos:i,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&rs&&!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()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),hd(t,"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(()=>Ju(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Mx(t))),this.updateAllowDefault(t),this.allowDefault||!n?hd(this.view,"pointer"):YVe(this.view,n.pos,n.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||Do&&this.mightDrag&&!this.mightDrag.node.isAtom||fo&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(hm(this.view,Rt.near(this.view.state.doc.resolve(n.pos))),t.preventDefault()):hd(this.view,"pointer")}move(t){this.updateAllowDefault(t),hd(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}Vo.touchstart=e=>{e.input.lastTouch=Date.now(),vV(e),hd(e,"pointer")},Vo.touchmove=e=>{e.input.lastTouch=Date.now(),hd(e,"pointer")},Vo.contextmenu=e=>vV(e);function VK(e,t){return e.composing?!0:Do&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const QVe=Xu?5e3:-1;Po.compositionstart=Po.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof At&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),Ix(e,!0),e.markCursor=null;else if(Ix(e,!t.selection.empty),rs&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=e.domSelectionRange();for(let a=r.focusNode,o=r.focusOffset;a&&a.nodeType==1&&o!=0;){let i=o<0?a.lastChild:a.childNodes[o-1];if(!i)break;if(i.nodeType==3){let s=e.domSelection();s&&s.collapse(i,i.nodeValue.length);break}else a=i,o=-1}}e.input.composing=!0}PK(e,QVe)},Po.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.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,PK(e,20))};function PK(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Ix(e),t))}function LK(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=$Ve());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function qVe(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=UDe(t.focusNode,t.focusOffset),r=jDe(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let a=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!a||!a.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let i=n.pmViewDesc;if(!(!i||!i.isText(n.nodeValue)))return r}}return n||r}function $Ve(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function Ix(e,t=!1){if(!(Xu&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),LK(e),t||e.docView&&e.docView.dirty){let n=aV(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function ePe(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),a=document.createRange();a.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(a),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const vb=ii&&ud<15||cm&&JDe<604;Vo.copy=Po.cut=(e,t)=>{let n=t,r=e.state.selection,a=n.type=="cut";if(r.empty)return;let o=vb?null:n.clipboardData,i=r.content(),{dom:s,text:l}=uV(e,i);o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):ePe(e,s),a&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function tPe(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function nPe(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let a=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?mb(e,r.value,null,a,t):mb(e,r.textContent,r.innerHTML,a,t)},50)}function mb(e,t,n,r,a){let o=_K(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",l=>l(e,a,o||nt.empty)))return!0;if(!o)return!1;let i=tPe(o),s=i?e.state.tr.replaceSelectionWith(i,r):e.state.tr.replaceSelection(o);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function NK(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Po.paste=(e,t)=>{let n=t;if(e.composing&&!Xu)return;let r=vb?null:n.clipboardData,a=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&mb(e,NK(r),r.getData("text/html"),a,n)?n.preventDefault():nPe(e,n)};class OK{constructor(t,n,r){this.slice=t,this.move=n,this.node=r}}const rPe=as?"altKey":"ctrlKey";function RK(e,t){return e.someProp("dragCopies",r=>!r(t))??!t[rPe]}Vo.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let a=e.state.selection,o=a.empty?null:e.posAtCoords(Mx(n)),i;if(!(o&&o.pos>=a.from&&o.pos<=(a instanceof Ct?a.to-1:a.to))){if(r&&r.mightDrag)i=Ct.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=e.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=e.docView&&(i=Ct.create(e.state.doc,d.posBefore))}}let s=(i||e.state.selection).content(),{dom:l,text:u,slice:c}=uV(e,s);(!n.dataTransfer.files.length||!fo||GY>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(vb?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",vb||n.dataTransfer.setData("text/plain",u),e.dragging=new OK(c,RK(e,n),i)},Vo.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},Po.dragover=Po.dragenter=(e,t)=>t.preventDefault(),Po.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let a=e.posAtCoords(Mx(n));if(!a)return;let o=e.state.doc.resolve(a.pos),i=r&&r.slice;i?e.someProp("transformPasted",v=>{i=v(i,e,!1)}):i=_K(e,NK(n.dataTransfer),vb?null:n.dataTransfer.getData("text/html"),!1,o);let s=!!(r&&RK(e,n));if(e.someProp("handleDrop",v=>v(e,n,i||nt.empty,s))){n.preventDefault();return}if(!i)return;n.preventDefault();let l=i?kY(e.state.doc,o.pos,i):o.pos;l==null&&(l=o.pos);let u=e.state.tr;if(s){let{node:v}=r;v?v.replace(u):u.deleteSelection()}let c=u.mapping.map(l),d=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,h=u.doc;if(d?u.replaceRangeWith(c,c,i.content.firstChild):u.replaceRange(c,c,i),u.doc.eq(h))return;let p=u.doc.resolve(c);if(d&&Ct.isSelectable(i.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(i.content.firstChild))u.setSelection(new Ct(p));else{let v=u.mapping.map(l);u.mapping.maps[u.mapping.maps.length-1].forEach((m,g,y,b)=>v=b),u.setSelection(iV(e,p,u.doc.resolve(v)))}e.focus(),e.dispatch(u.setMeta("uiEvent","drop"))},Vo.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())&&Ju(e)},20))},Vo.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},Vo.beforeinput=(e,t)=>{if(fo&&Xu&&t.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:n}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=n||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",a=>a(e,vh(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 Po)Vo[e]=Po[e];function gb(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class Dx{constructor(t,n){this.toDOM=t,this.spec=n||bh,this.side=this.spec.side||0}map(t,n,r,a){let{pos:o,deleted:i}=t.mapResult(n.from+a,this.side<0?-1:1);return i?null:new Xa(o-r,o-r,this)}valid(){return!0}eq(t){return this==t||t instanceof Dx&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&gb(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class pd{constructor(t,n){this.attrs=t,this.spec=n||bh}map(t,n,r,a){let o=t.map(n.from+a,this.spec.inclusiveStart?-1:1)-r,i=t.map(n.to+a,this.spec.inclusiveEnd?1:-1)-r;return o>=i?null:new Xa(o,i,this)}valid(t,n){return n.from=t&&(!o||o(s.spec))&&r.push(s.copy(s.from+a,s.to+a))}for(let i=0;it){let s=this.children[i]+1;this.children[i+2].findInner(t-s,n-s,r,a+s,o)}}map(t,n,r){return this==ho||t.maps.length==0?this:this.mapInner(t,n,0,0,r||bh)}mapInner(t,n,r,a,o){let i;for(let s=0;s{let u=l+r,c;if(c=FK(n,s,u)){for(a||(a=this.children.slice());os&&d.to=t){this.children[s]==t&&(r=this.children[s+2]);break}let o=t+1,i=o+n.content.size;for(let s=0;so&&l.type instanceof pd){let u=Math.max(o,l.from)-o,c=Math.min(i,l.to)-o;ua.map(t,n,bh));return vd.from(r)}forChild(t,n){if(n.isLeaf)return vr.empty;let r=[];for(let a=0;an instanceof vr)?t:t.reduce((n,r)=>n.concat(r instanceof vr?r:r.members),[]))}}forEachSet(t){for(let n=0;n{let g=m-v-(p-h);for(let y=0;yb+c-d)continue;let w=s[y]+c-d;p>=w?s[y+1]=h<=w?-2:-1:h>=c&&g&&(s[y]+=g,s[y+1]+=g)}d+=g}),c=n.maps[u].map(c,-1)}let l=!1;for(let u=0;u=r.content.size){l=!0;continue}let h=n.map(e[u+1]+o,-1),p=h-a,{index:v,offset:m}=r.content.findIndex(d),g=r.maybeChild(v);if(g&&m==d&&m+g.nodeSize==p){let y=s[u+2].mapInner(n,g,c+1,e[u]+o+1,i);y!=ho?(s[u]=d,s[u+1]=p,s[u+2]=y):(s[u+1]=-2,l=!0)}else l=!0}if(l){let u=oPe(s,e,t,n,a,o,i),c=Vx(u,r,0,i);t=c.local;for(let d=0;dn&&i.to{let u=FK(e,s,l+n);if(u){o=!0;let c=Vx(u,s,n+l+1,r);c!=ho&&a.push(l,l+s.nodeSize,c)}});let i=BK(o?zK(e):e,-n).sort(wh);for(let s=0;s0;)t++;e.splice(t,0,n)}function yV(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=ho&&t.push(r)}),e.cursorWrapper&&t.push(vr.create(e.state.doc,[e.cursorWrapper.deco])),vd.from(t)}const iPe={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},sPe=ii&&ud<=11;class lPe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class uPe{constructor(t,n){this.view=t,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new lPe,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let a=0;aa.type=="childList"&&a.removedNodes.length||a.type=="characterData"&&a.oldValue.length>a.target.nodeValue.length)?this.flushSoon():this.flush()}),sPe&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,iPe)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let n=0;nthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(vK(this.view)){if(this.suppressingSelectionUpdates)return Ju(this.view);if(ii&&ud<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&ph(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let n=new Set,r;for(let o=t.focusNode;o;o=um(o))n.add(o);for(let o=t.anchorNode;o;o=um(o))if(n.has(o)){r=o;break}let a=r&&this.view.docView.nearestDesc(r);if(a&&a.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=t.domSelectionRange(),a=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&vK(t)&&!this.ignoreSelectionChange(r),o=-1,i=-1,s=!1,l=[];if(t.editable)for(let c=0;cd.nodeName=="BR");if(c.length==2){let[d,h]=c;d.parentNode&&d.parentNode.parentNode==h.parentNode?h.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let h of c){let p=h.parentNode;p&&p.nodeName=="LI"&&(!d||fPe(t,d)!=p)&&h.remove()}}}let u=null;o<0&&a&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||a)&&(o>-1&&(t.docView.markDirty(o,i),cPe(t)),this.handleDOMChange(o,i,s,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(r)||Ju(t),this.currentSelection.set(r))}registerMutation(t,n){if(n.indexOf(t.target)>-1)return null;let r=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(r==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!r||r.ignoreMutation(t))return null;if(t.type=="childList"){for(let c=0;ca;g--){let y=r.childNodes[g-1],b=y.pmViewDesc;if(y.nodeName=="BR"&&!b){o=g;break}if(!b||b.size)break}let d=e.state.doc,h=e.someProp("domParser")||rd.fromSchema(e.state.schema),p=d.resolve(i),v=null,m=h.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:a,to:o,preserveWhitespace:p.parent.type.whitespace=="pre"?"full":!0,findPositions:u,ruleFromNode:pPe,context:p});if(u&&u[0].pos!=null){let g=u[0].pos,y=u[1]&&u[1].pos;y==null&&(y=g),v={anchor:g+i,head:y+i}}return{doc:m,sel:v,from:i,to:s}}function pPe(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(Do&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||Do&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const vPe=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function mPe(e,t,n,r,a){let o=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let A=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,E=aV(e,A);if(E&&!e.state.selection.eq(E)){if(fo&&Xu&&e.input.lastKeyCode===13&&Date.now()-100D(e,vh(13,"Enter"))))return;let M=e.state.tr.setSelection(E);A=="pointer"?M.setMeta("pointer",!0):A=="key"&&M.scrollIntoView(),o&&M.setMeta("composition",o),e.dispatch(M)}return}let i=e.state.doc.resolve(t),s=i.sharedDepth(n);t=i.before(s+1),n=e.state.doc.resolve(n).after(s+1);let l=e.state.selection,u=hPe(e,t,n),c=e.state.doc,d=c.slice(u.from,u.to),h,p;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||Xu)&&a.some(A=>A.nodeType==1&&!vPe.test(A.nodeName))&&(!v||v.endA>=v.endB)&&e.someProp("handleKeyDown",A=>A(e,vh(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!v)if(r&&l instanceof At&&!l.empty&&l.$head.sameParent(l.$anchor)&&!e.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))v={start:l.from,endA:l.to,endB:l.to};else{if(u.sel){let A=jK(e,e.state.doc,u.sel);if(A&&!A.eq(e.state.selection)){let E=e.state.tr.setSelection(A);o&&E.setMeta("composition",o),e.dispatch(E)}}return}e.state.selection.frome.state.selection.from&&v.start<=e.state.selection.from+2&&e.state.selection.from>=u.from?v.start=e.state.selection.from:v.endA=e.state.selection.to-2&&e.state.selection.to<=u.to&&(v.endB+=e.state.selection.to-v.endA,v.endA=e.state.selection.to)),ii&&ud<=11&&v.endB==v.start+1&&v.endA==v.start&&v.start>u.from&&u.doc.textBetween(v.start-u.from-1,v.start-u.from+1)=="  "&&(v.start--,v.endA--,v.endB--);let m=u.doc.resolveNoCache(v.start-u.from),g=u.doc.resolveNoCache(v.endB-u.from),y=c.resolve(v.start),b=m.sameParent(g)&&m.parent.inlineContent&&y.end()>=v.endA,w;if((cm&&e.input.lastIOSEnter>Date.now()-225&&(!b||a.some(A=>A.nodeName=="DIV"||A.nodeName=="P"))||!b&&m.posm.pos)&&e.someProp("handleKeyDown",A=>A(e,vh(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>v.start&&yPe(c,v.start,v.endA,m,g)&&e.someProp("handleKeyDown",A=>A(e,vh(8,"Backspace")))){Xu&&fo&&e.domObserver.suppressSelectionUpdates();return}fo&&v.endB==v.start&&(e.input.lastChromeDelete=Date.now()),Xu&&!b&&m.start()!=g.start()&&g.parentOffset==0&&m.depth==g.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==v.endA&&(v.endB-=2,g=u.doc.resolveNoCache(v.endB-u.from),setTimeout(()=>{e.someProp("handleKeyDown",function(A){return A(e,vh(13,"Enter"))})},20));let x=v.start,C=v.endA,_=A=>{let E=A||e.state.tr.replace(x,C,u.doc.slice(v.start-u.from,v.endB-u.from));if(u.sel){let M=jK(e,E.doc,u.sel);M&&!(fo&&e.composing&&M.empty&&(v.start!=v.endB||e.input.lastChromeDeleteJu(e),20));let A=_(e.state.tr.delete(x,C)),E=c.resolve(v.start).marksAcross(c.resolve(v.endA));E&&A.ensureMarks(E),e.dispatch(A)}else if(v.endA==v.endB&&(k=gPe(m.parent.content.cut(m.parentOffset,g.parentOffset),y.parent.content.cut(y.parentOffset,v.endA-y.start())))){let A=_(e.state.tr);k.type=="add"?A.addMark(x,C,k.mark):A.removeMark(x,C,k.mark),e.dispatch(A)}else if(m.parent.child(m.index()).isText&&m.index()==g.index()-(g.textOffset?0:1)){let A=m.parent.textBetween(m.parentOffset,g.parentOffset),E=()=>_(e.state.tr.insertText(A,x,C));e.someProp("handleTextInput",M=>M(e,x,C,A,E))||e.dispatch(E())}}else e.dispatch(_())}function jK(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:iV(e,t.resolve(n.anchor),t.resolve(n.head))}function gPe(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,a=n,o=r,i,s,l;for(let c=0;cc.mark(s.addToSet(c.marks));else if(a.length==0&&o.length==1)s=o[0],i="remove",l=c=>c.mark(s.removeFromSet(c.marks));else return null;let u=[];for(let c=0;cn||bV(i,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,a++,t=!1;if(n){let o=e.node(r).maybeChild(e.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,a++}return a}function bPe(e,t,n,r,a){let o=e.findDiffStart(t,n);if(o==null)return null;let{a:i,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if(a=="end"){let l=Math.max(0,o-Math.min(i,s));r-=i+l-o}if(i=i?o-r:0;o-=l,o&&o=s?o-r:0;o-=l,o&&o=56320&&t<=57343&&n>=55296&&n<=56319}class KK{constructor(t,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new BVe,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(qK),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=JK(this),ZK(this),this.nodeViews=QK(this),this.docView=rK(this.state.doc,XK(this),yV(this),this.dom,this),this.domObserver=new uPe(this,(r,a,o,i)=>mPe(this,r,a,o,i)),this.domObserver.start(),FVe(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let n in t)this._props[n]=t[n];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&fV(this);let n=this._props;this._props=t,t.plugins&&(t.plugins.forEach(qK),this.directPlugins=t.plugins),this.updateStateInner(t.state,n)}setProps(t){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in t)n[r]=t[r];this.update(n)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,n){var r;let a=this.state,o=!1,i=!1;t.storedMarks&&this.composing&&(LK(this),i=!0),this.state=t;let s=a.plugins!=t.plugins||this._props.plugins!=n.plugins;if(s||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let p=QK(this);SPe(p,this.nodeViews)&&(this.nodeViews=p,o=!0)}(s||n.handleDOMEvents!=this._props.handleDOMEvents)&&fV(this),this.editable=JK(this),ZK(this);let l=yV(this),u=XK(this),c=a.plugins!=t.plugins&&!a.doc.eq(t.doc)?"reset":t.scrollToSelection>a.scrollToSelection?"to selection":"preserve",d=o||!this.docView.matchesNode(t.doc,u,l);(d||!t.selection.eq(a.selection))&&(i=!0);let h=c=="preserve"&&i&&this.dom.style.overflowAnchor==null&&$De(this);if(i){this.domObserver.stop();let p=d&&(ii||fo)&&!this.composing&&!a.selection.empty&&!t.selection.empty&&wPe(a.selection,t.selection);if(d){let v=fo?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=qVe(this)),(o||!this.docView.update(t.doc,u,l,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=rK(t.doc,u,l,this.dom,this)),v&&!this.trackWrites&&(p=!0)}p||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&_Ve(this))?Ju(this,p):(hK(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(a),!((r=this.dragging)===null||r===void 0)&&r.node&&!a.doc.eq(t.doc)&&this.updateDraggedNode(this.dragging,a),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():h&&eVe(h)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!(!t||!this.dom.contains(t.nodeType==1?t:t.parentNode))&&!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Ct){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&UY(this,n.getBoundingClientRect(),t)}else UY(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(o))==r.node&&(a=o)}this.dragging=new OK(t.slice,t.move,a<0?void 0:Ct.create(this.state.doc,a))}someProp(t,n){let r=this._props&&this._props[t],a;if(r!=null&&(a=n?n(r):r))return a;for(let i=0;in.ownerDocument.getSelection()),this._root=n}return t||document}updateRoot(){this._root=null}posAtCoords(t){return iVe(this,t)}coordsAtPos(t,n=1){return JY(this,t,n)}domAtPos(t,n=0){return this.docView.domFromPos(t,n)}nodeDOM(t){let n=this.docView.descAt(t);return n?n.nodeDOM:null}posAtDOM(t,n,r=-1){let a=this.docView.posFromDOM(t,n,r);if(a==null)throw new RangeError("DOM position not inside the editor");return a}endOfTextblock(t,n){return dVe(this,n||this.state,t)}pasteHTML(t,n){return mb(this,"",t,!1,n||new ClipboardEvent("paste"))}pasteText(t,n){return mb(this,t,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(t){return uV(this,t)}destroy(){this.docView&&(zVe(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],yV(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,WDe())}get isDestroyed(){return this.docView==null}dispatchEvent(t){return WVe(this,t)}domSelectionRange(){let t=this.domSelection();return t?Do&&this.root.nodeType===11&&KDe(this.dom.ownerDocument)==this.dom&&dPe(this,t)||t:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}KK.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function XK(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let r in n)r=="class"?t.class+=" "+n[r]:r=="style"?t.style=(t.style?t.style+";":"")+n[r]:!t[r]&&r!="contenteditable"&&r!="nodeName"&&(t[r]=String(n[r]))}),t.translate||(t.translate="no"),[Xa.node(0,e.state.doc.content.size,t)]}function ZK(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:Xa.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function JK(e){return!e.someProp("editable",t=>t(e.state)===!1)}function wPe(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function QK(e){let t=Object.create(null);function n(r){for(let a in r)Object.prototype.hasOwnProperty.call(t,a)||(t[a]=r[a])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function SPe(e,t){let n=0,r=0;for(let a in e){if(e[a]!=t[a])return!0;n++}for(let a in t)r++;return n!=r}function qK(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var md={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:"'"},Px={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},xPe=typeof navigator<"u"&&/Mac/.test(navigator.platform),_Pe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Za=0;Za<10;Za++)md[48+Za]=md[96+Za]=String(Za);for(var Za=1;Za<=24;Za++)md[Za+111]="F"+Za;for(var Za=65;Za<=90;Za++)md[Za]=String.fromCharCode(Za+32),Px[Za]=String.fromCharCode(Za);for(var wV in md)Px.hasOwnProperty(wV)||(Px[wV]=md[wV]);function CPe(e){var t=xPe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||_Pe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Px:md)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const TPe=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),kPe=typeof navigator<"u"&&/Win/.test(navigator.platform);function APe(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n=="Space"&&(n=" ");let r,a,o,i;for(let s=0;se.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function $K(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const eX=(e,t,n)=>{let r=$K(e,n);if(!r)return!1;let a=_V(r);if(!a){let i=r.blockRange(),s=i&&am(i);return s==null?!1:(t&&t(e.tr.lift(i,s).scrollIntoView()),!0)}let o=a.nodeBefore;if(uX(e,a,t,-1))return!0;if(r.parent.content.size==0&&(vm(o,"end")||Ct.isSelectable(o)))for(let i=r.depth;;i--){let s=xx(e.doc,r.before(i),r.after(i),nt.empty);if(s&&s.slice.size1)break}return o.isAtom&&a.depth==r.depth-1?(t&&t(e.tr.delete(a.pos-o.nodeSize,a.pos).scrollIntoView()),!0):!1},IPe=(e,t,n)=>{let r=$K(e,n);if(!r)return!1;let a=_V(r);return a?tX(e,a,t):!1},DPe=(e,t,n)=>{let r=rX(e,n);if(!r)return!1;let a=CV(r);return a?tX(e,a,t):!1};function tX(e,t,n){let r=t.nodeBefore,a=r,o=t.pos-1;for(;!a.isTextblock;o--){if(a.type.spec.isolating)return!1;let c=a.lastChild;if(!c)return!1;a=c}let i=t.nodeAfter,s=i,l=t.pos+1;for(;!s.isTextblock;l++){if(s.type.spec.isolating)return!1;let c=s.firstChild;if(!c)return!1;s=c}let u=xx(e.doc,o,l,nt.empty);if(!u||u.from!=o||u instanceof Va&&u.slice.size>=l-o)return!1;if(n){let c=e.tr.step(u);c.setSelection(At.create(c.doc,o)),n(c.scrollIntoView())}return!0}function vm(e,t,n=!1){for(let r=e;r;r=t=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}const nX=(e,t,n)=>{let{$head:r,empty:a}=e.selection,o=r;if(!a)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;o=_V(r)}let i=o&&o.nodeBefore;return!i||!Ct.isSelectable(i)?!1:(t&&t(e.tr.setSelection(Ct.create(e.doc,o.pos-i.nodeSize)).scrollIntoView()),!0)};function _V(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 rX(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset{let r=rX(e,n);if(!r)return!1;let a=CV(r);if(!a)return!1;let o=a.nodeAfter;if(uX(e,a,t,1))return!0;if(r.parent.content.size==0&&(vm(o,"start")||Ct.isSelectable(o))){let i=xx(e.doc,r.before(),r.after(),nt.empty);if(i&&i.slice.size{let{$head:r,empty:a}=e.selection,o=r;if(!a)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset=0;t--){let n=e.node(t);if(e.index(t)+1{let n=e.selection,r=n instanceof Ct,a;if(r){if(n.node.isTextblock||!sd(e.doc,n.from))return!1;a=n.from}else if(a=Sx(e.doc,n.from,-1),a==null)return!1;if(t){let o=e.tr.join(a);r&&o.setSelection(Ct.create(o.doc,a-e.doc.resolve(a).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0},PPe=(e,t)=>{let n=e.selection,r;if(n instanceof Ct){if(n.node.isTextblock||!sd(e.doc,n.to))return!1;r=n.to}else if(r=Sx(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},LPe=(e,t)=>{let{$from:n,$to:r}=e.selection,a=n.blockRange(r),o=a&&am(a);return o==null?!1:(t&&t(e.tr.lift(a,o).scrollIntoView()),!0)},iX=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(` -`).scrollIntoView()),!0)};function TV(e){for(let t=0;t{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let a=n.node(-1),o=n.indexAfter(-1),i=TV(a.contentMatchAt(o));if(!i||!a.canReplaceWith(o,o,i))return!1;if(t){let s=n.after(),l=e.tr.replaceWith(s,s,i.createAndFill());l.setSelection(Rt.near(l.doc.resolve(s),1)),t(l.scrollIntoView())}return!0},sX=(e,t)=>{let n=e.selection,{$from:r,$to:a}=n;if(n instanceof Pi||r.parent.inlineContent||a.parent.inlineContent)return!1;let o=TV(a.parent.contentMatchAt(a.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let i=(!r.parentOffset&&a.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(Yu(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}let r=n.blockRange(),a=r&&am(r);return a==null?!1:(t&&t(e.tr.lift(r,a).scrollIntoView()),!0)};function OPe(e){return(t,n)=>{let{$from:r,$to:a}=t.selection;if(t.selection instanceof Ct&&t.selection.node.isBlock)return!r.parentOffset||!Yu(t.doc,r.pos)?!1:(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let o=[],i,s,l=!1,u=!1;for(let p=r.depth;;p--)if(r.node(p).isBlock){l=r.end(p)==r.pos+(r.depth-p),u=r.start(p)==r.pos-(r.depth-p),s=TV(r.node(p-1).contentMatchAt(r.indexAfter(p-1))),o.unshift(l&&s?{type:s}:null),i=p;break}else{if(p==1)return!1;o.unshift(null)}let c=t.tr;(t.selection instanceof At||t.selection instanceof Pi)&&c.deleteSelection();let d=c.mapping.map(r.pos),h=Yu(c.doc,d,o.length,o);if(h||(o[0]=s?{type:s}:null,h=Yu(c.doc,d,o.length,o)),!h)return!1;if(c.split(d,o.length,o),!l&&u&&r.node(i).type!=s){let p=c.mapping.map(r.before(i)),v=c.doc.resolve(p);s&&r.node(i-1).canReplaceWith(v.index(),v.index()+1,s)&&c.setNodeMarkup(c.mapping.map(r.before(i)),s)}return n&&n(c.scrollIntoView()),!0}}const RPe=OPe(),BPe=(e,t)=>{let{$from:n,to:r}=e.selection,a,o=n.sharedDepth(r);return o==0?!1:(a=n.before(o),t&&t(e.tr.setSelection(Ct.create(e.doc,a))),!0)};function FPe(e,t,n){let r=t.nodeBefore,a=t.nodeAfter,o=t.index();return!r||!a||!r.type.compatibleContent(a.type)?!1:!r.content.size&&t.parent.canReplace(o-1,o)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(o,o+1)||!(a.isTextblock||sd(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function uX(e,t,n,r){let a=t.nodeBefore,o=t.nodeAfter,i,s,l=a.type.spec.isolating||o.type.spec.isolating;if(!l&&FPe(e,t,n))return!0;let u=!l&&t.parent.canReplace(t.index(),t.index()+1);if(u&&(i=(s=a.contentMatchAt(a.childCount)).findWrapping(o.type))&&s.matchType(i[0]||o.type).validEnd){if(n){let p=t.pos+o.nodeSize,v=Oe.empty;for(let y=i.length-1;y>=0;y--)v=Oe.from(i[y].create(null,v));v=Oe.from(a.copy(v));let m=e.tr.step(new Pa(t.pos-1,p,t.pos,p,new nt(v,1,0),i.length,!0)),g=m.doc.resolve(p+2*i.length);g.nodeAfter&&g.nodeAfter.type==a.type&&sd(m.doc,g.pos)&&m.join(g.pos),n(m.scrollIntoView())}return!0}let c=o.type.spec.isolating||r>0&&l?null:Rt.findFrom(t,1),d=c&&c.$from.blockRange(c.$to),h=d&&am(d);if(h!=null&&h>=t.depth)return n&&n(e.tr.lift(d,h).scrollIntoView()),!0;if(u&&vm(o,"start",!0)&&vm(a,"end")){let p=a,v=[];for(;v.push(p),!p.isTextblock;)p=p.lastChild;let m=o,g=1;for(;!m.isTextblock;m=m.firstChild)g++;if(p.canReplace(p.childCount,p.childCount,m.content)){if(n){let y=Oe.empty;for(let w=v.length-1;w>=0;w--)y=Oe.from(v[w].copy(y));let b=e.tr.step(new Pa(t.pos-v.length,t.pos+o.nodeSize,t.pos+g,t.pos+o.nodeSize-g,new nt(y,v.length,0),0,!0));n(b.scrollIntoView())}return!0}}return!1}function cX(e){return function(t,n){let r=t.selection,a=e<0?r.$from:r.$to,o=a.depth;for(;a.node(o).isInline;){if(!o)return!1;o--}return a.node(o).isTextblock?(n&&n(t.tr.setSelection(At.create(t.doc,e<0?a.start(o):a.end(o)))),!0):!1}}const zPe=cX(-1),HPe=cX(1);function WPe(e,t=null){return function(n,r){let{$from:a,$to:o}=n.selection,i=a.blockRange(o),s=i&&WD(i,e,t);return s?(r&&r(n.tr.wrap(i,s).scrollIntoView()),!0):!1}}function dX(e,t=null){return function(n,r){let a=!1;for(let o=0;o{if(a)return!1;if(!(!l.isTextblock||l.hasMarkup(e,t)))if(l.type==e)a=!0;else{let c=n.doc.resolve(u),d=c.index();a=c.parent.canReplaceWith(d,d+1,e)}})}if(!a)return!1;if(r){let o=n.tr;for(let i=0;i=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let l=i.resolve(t.start-2);o=new px(l,l,t.depth),t.endIndex=0;c--)o=Oe.from(n[c].type.create(n[c].attrs,o));e.step(new Pa(t.start-(r?2:0),t.end,t.start,t.end,new nt(o,0,0),n.length,!0));let i=0;for(let c=0;ci.childCount>0&&i.firstChild.type==e);return o?n?r.node(o.depth-1).type==e?KPe(t,n,e,o):XPe(t,n,o):!0:!1}}function KPe(e,t,n,r){let a=e.tr,o=r.end,i=r.$to.end(r.depth);om;v--)p-=a.child(v).nodeSize,r.delete(p-1,p+1);let o=r.doc.resolve(n.start),i=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==a.childCount,u=o.node(-1),c=o.index(-1);if(!u.canReplace(c+(s?0:1),c+1,i.content.append(l?Oe.empty:Oe.from(a))))return!1;let d=o.pos,h=d+i.nodeSize;return r.step(new Pa(d-(s?1:0),h+(l?1:0),d+1,h-1,new nt((s?Oe.empty:Oe.from(a.copy(Oe.empty))).append(l?Oe.empty:Oe.from(a.copy(Oe.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}function ZPe(e){return function(t,n){let{$from:r,$to:a}=t.selection,o=r.blockRange(a,u=>u.childCount>0&&u.firstChild.type==e);if(!o)return!1;let i=o.startIndex;if(i==0)return!1;let s=o.parent,l=s.child(i-1);if(l.type!=e)return!1;if(n){let u=l.lastChild&&l.lastChild.type==s.type,c=Oe.from(u?e.create():null),d=new nt(Oe.from(e.create(null,Oe.from(s.type.create(null,c)))),u?3:1,0),h=o.start,p=o.end;n(t.tr.step(new Pa(h-(u?3:1),p,h,p,d,1,!0)).scrollIntoView())}return!0}}function Nx(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:a}=n,{storedMarks:o}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return r},get doc(){return a},get tr(){return r=n.selection,a=n.doc,o=n.storedMarks,n}}}class Ox{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:n,state:r}=this,{view:a}=n,{tr:o}=r,i=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([s,l])=>[s,(...u)=>{const c=l(...u)(i);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(o),c}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,n=!0){const{rawCommands:r,editor:a,state:o}=this,{view:i}=a,s=[],l=!!t,u=t||o.tr,c=()=>(!l&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(u),s.every(h=>h===!0)),d={...Object.fromEntries(Object.entries(r).map(([h,p])=>[h,(...v)=>{const m=this.buildProps(u,n),g=p(...v)(m);return s.push(g),d}])),run:c};return d}createCan(t){const{rawCommands:n,state:r}=this,a=!1,o=t||r.tr,i=this.buildProps(o,a);return{...Object.fromEntries(Object.entries(n).map(([s,l])=>[s,(...u)=>l(...u)({...i,dispatch:void 0})])),chain:()=>this.createChain(o,a)}}buildProps(t,n=!0){const{rawCommands:r,editor:a,state:o}=this,{view:i}=a,s={tr:t,editor:a,view:i,state:Nx({state:o,transaction:t}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(t,n),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(r).map(([l,u])=>[l,(...c)=>u(...c)(s)]))}};return s}}class JPe{constructor(){this.callbacks={}}on(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),this}emit(t,...n){const r=this.callbacks[t];return r&&r.forEach(a=>a.apply(this,n)),this}off(t,n){const r=this.callbacks[t];return r&&(n?this.callbacks[t]=r.filter(a=>a!==n):delete this.callbacks[t]),this}once(t,n){const r=(...a)=>{this.off(t,r),n.apply(this,a)};return this.on(t,r)}removeAllListeners(){this.callbacks={}}}function mt(e,t,n){return e.config[t]===void 0&&e.parent?mt(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?mt(e.parent,t,n):null}):e.config[t]}function Rx(e){const t=e.filter(a=>a.type==="extension"),n=e.filter(a=>a.type==="node"),r=e.filter(a=>a.type==="mark");return{baseExtensions:t,nodeExtensions:n,markExtensions:r}}function fX(e){const t=[],{nodeExtensions:n,markExtensions:r}=Rx(e),a=[...n,...r],o={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(i=>{const s={name:i.name,options:i.options,storage:i.storage,extensions:a},l=mt(i,"addGlobalAttributes",s);l&&l().forEach(u=>{u.types.forEach(c=>{Object.entries(u.attributes).forEach(([d,h])=>{t.push({type:c,name:d,attribute:{...o,...h}})})})})}),a.forEach(i=>{const s={name:i.name,options:i.options,storage:i.storage},l=mt(i,"addAttributes",s);if(!l)return;const u=l();Object.entries(u).forEach(([c,d])=>{const h={...o,...d};typeof h?.default=="function"&&(h.default=h.default()),h?.isRequired&&h?.default===void 0&&delete h.default,t.push({type:i.name,name:c,attribute:h})})}),t}function La(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function Fn(...e){return e.filter(t=>!!t).reduce((t,n)=>{const r={...t};return Object.entries(n).forEach(([a,o])=>{if(!r[a]){r[a]=o;return}if(a==="class"){const i=o?String(o).split(" "):[],s=r[a]?r[a].split(" "):[],l=i.filter(u=>!s.includes(u));r[a]=[...s,...l].join(" ")}else if(a==="style"){const i=o?o.split(";").map(u=>u.trim()).filter(Boolean):[],s=r[a]?r[a].split(";").map(u=>u.trim()).filter(Boolean):[],l=new Map;s.forEach(u=>{const[c,d]=u.split(":").map(h=>h.trim());l.set(c,d)}),i.forEach(u=>{const[c,d]=u.split(":").map(h=>h.trim());l.set(c,d)}),r[a]=Array.from(l.entries()).map(([u,c])=>`${u}: ${c}`).join("; ")}else r[a]=o}),r},{})}function AV(e,t){return t.filter(n=>n.type===e.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,r)=>Fn(n,r),{})}function hX(e){return typeof e=="function"}function on(e,t=void 0,...n){return hX(e)?t?e.bind(t)(...n):e(...n):e}function QPe(e={}){return Object.keys(e).length===0&&e.constructor===Object}function qPe(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function pX(e,t){return"style"in e?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;const a=t.reduce((o,i)=>{const s=i.attribute.parseHTML?i.attribute.parseHTML(n):qPe(n.getAttribute(i.name));return s==null?o:{...o,[i.name]:s}},{});return{...r,...a}}}}function vX(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&QPe(n)?!1:n!=null))}function mX(e,t){var n;const r=fX(e),{nodeExtensions:a,markExtensions:o}=Rx(e),i=(n=a.find(u=>mt(u,"topNode")))===null||n===void 0?void 0:n.name,s=Object.fromEntries(a.map(u=>{const c=r.filter(y=>y.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},h=e.reduce((y,b)=>{const w=mt(b,"extendNodeSchema",d);return{...y,...w?w(u):{}}},{}),p=vX({...h,content:on(mt(u,"content",d)),marks:on(mt(u,"marks",d)),group:on(mt(u,"group",d)),inline:on(mt(u,"inline",d)),atom:on(mt(u,"atom",d)),selectable:on(mt(u,"selectable",d)),draggable:on(mt(u,"draggable",d)),code:on(mt(u,"code",d)),whitespace:on(mt(u,"whitespace",d)),linebreakReplacement:on(mt(u,"linebreakReplacement",d)),defining:on(mt(u,"defining",d)),isolating:on(mt(u,"isolating",d)),attrs:Object.fromEntries(c.map(y=>{var b;return[y.name,{default:(b=y?.attribute)===null||b===void 0?void 0:b.default}]}))}),v=on(mt(u,"parseHTML",d));v&&(p.parseDOM=v.map(y=>pX(y,c)));const m=mt(u,"renderHTML",d);m&&(p.toDOM=y=>m({node:y,HTMLAttributes:AV(y,c)}));const g=mt(u,"renderText",d);return g&&(p.toText=g),[u.name,p]})),l=Object.fromEntries(o.map(u=>{const c=r.filter(g=>g.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},h=e.reduce((g,y)=>{const b=mt(y,"extendMarkSchema",d);return{...g,...b?b(u):{}}},{}),p=vX({...h,inclusive:on(mt(u,"inclusive",d)),excludes:on(mt(u,"excludes",d)),group:on(mt(u,"group",d)),spanning:on(mt(u,"spanning",d)),code:on(mt(u,"code",d)),attrs:Object.fromEntries(c.map(g=>{var y;return[g.name,{default:(y=g?.attribute)===null||y===void 0?void 0:y.default}]}))}),v=on(mt(u,"parseHTML",d));v&&(p.parseDOM=v.map(g=>pX(g,c)));const m=mt(u,"renderHTML",d);return m&&(p.toDOM=g=>m({mark:g,HTMLAttributes:AV(g,c)})),[u.name,p]}));return new iY({topNode:i,nodes:s,marks:l})}function EV(e,t){return t.nodes[e]||t.marks[e]||null}function gX(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}function MV(e,t){const n=ad.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}const $Pe=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(a,o,i,s)=>{var l,u;const c=((u=(l=a.type.spec).toText)===null||u===void 0?void 0:u.call(l,{node:a,pos:o,parent:i,index:s}))||a.textContent||"%leaf%";n+=a.isAtom&&!a.isText?c:c.slice(0,Math.max(0,r-o))}),n};function IV(e){return Object.prototype.toString.call(e)==="[object RegExp]"}class Bx{constructor(t){this.find=t.find,this.handler=t.handler}}const e2e=(e,t)=>{if(IV(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function Fx(e){var t;const{editor:n,from:r,to:a,text:o,rules:i,plugin:s}=e,{view:l}=n;if(l.composing)return!1;const u=l.state.doc.resolve(r);if(u.parent.type.spec.code||!((t=u.nodeBefore||u.nodeAfter)===null||t===void 0)&&t.marks.find(h=>h.type.spec.code))return!1;let c=!1;const d=$Pe(u)+o;return i.forEach(h=>{if(c)return;const p=e2e(d,h.find);if(!p)return;const v=l.state.tr,m=Nx({state:l.state,transaction:v}),g={from:r-(p[0].length-o.length),to:a},{commands:y,chain:b,can:w}=new Ox({editor:n,state:m});h.handler({state:m,range:g,match:p,commands:y,chain:b,can:w})===null||!v.steps.length||(v.setMeta(s,{transform:v,from:r,to:a,text:o}),l.dispatch(v),c=!0)}),c}function t2e(e){const{editor:t,rules:n}=e,r=new pr({state:{init(){return null},apply(a,o,i){const s=a.getMeta(r);if(s)return s;const l=a.getMeta("applyInputRules");return l&&setTimeout(()=>{let{text:u}=l;typeof u=="string"?u=u:u=MV(Oe.from(u),i.schema);const{from:c}=l,d=c+u.length;Fx({editor:t,from:c,to:d,text:u,rules:n,plugin:r})}),a.selectionSet||a.docChanged?null:o}},props:{handleTextInput(a,o,i,s){return Fx({editor:t,from:o,to:i,text:s,rules:n,plugin:r})},handleDOMEvents:{compositionend:a=>(setTimeout(()=>{const{$cursor:o}=a.state.selection;o&&Fx({editor:t,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(a,o){if(o.key!=="Enter")return!1;const{$cursor:i}=a.state.selection;return i?Fx({editor:t,from:i.pos,to:i.pos,text:` +`).scrollIntoView()),!0)};function TV(e){for(let t=0;t{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let a=n.node(-1),o=n.indexAfter(-1),i=TV(a.contentMatchAt(o));if(!i||!a.canReplaceWith(o,o,i))return!1;if(t){let s=n.after(),l=e.tr.replaceWith(s,s,i.createAndFill());l.setSelection(Rt.near(l.doc.resolve(s),1)),t(l.scrollIntoView())}return!0},sX=(e,t)=>{let n=e.selection,{$from:r,$to:a}=n;if(n instanceof Pi||r.parent.inlineContent||a.parent.inlineContent)return!1;let o=TV(a.parent.contentMatchAt(a.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let i=(!r.parentOffset&&a.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(Yu(e.doc,o))return t&&t(e.tr.split(o).scrollIntoView()),!0}let r=n.blockRange(),a=r&&am(r);return a==null?!1:(t&&t(e.tr.lift(r,a).scrollIntoView()),!0)};function OPe(e){return(t,n)=>{let{$from:r,$to:a}=t.selection;if(t.selection instanceof Ct&&t.selection.node.isBlock)return!r.parentOffset||!Yu(t.doc,r.pos)?!1:(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let o=[],i,s,l=!1,u=!1;for(let p=r.depth;;p--)if(r.node(p).isBlock){l=r.end(p)==r.pos+(r.depth-p),u=r.start(p)==r.pos-(r.depth-p),s=TV(r.node(p-1).contentMatchAt(r.indexAfter(p-1))),o.unshift(l&&s?{type:s}:null),i=p;break}else{if(p==1)return!1;o.unshift(null)}let c=t.tr;(t.selection instanceof At||t.selection instanceof Pi)&&c.deleteSelection();let d=c.mapping.map(r.pos),h=Yu(c.doc,d,o.length,o);if(h||(o[0]=s?{type:s}:null,h=Yu(c.doc,d,o.length,o)),!h)return!1;if(c.split(d,o.length,o),!l&&u&&r.node(i).type!=s){let p=c.mapping.map(r.before(i)),v=c.doc.resolve(p);s&&r.node(i-1).canReplaceWith(v.index(),v.index()+1,s)&&c.setNodeMarkup(c.mapping.map(r.before(i)),s)}return n&&n(c.scrollIntoView()),!0}}const RPe=OPe(),BPe=(e,t)=>{let{$from:n,to:r}=e.selection,a,o=n.sharedDepth(r);return o==0?!1:(a=n.before(o),t&&t(e.tr.setSelection(Ct.create(e.doc,a))),!0)};function FPe(e,t,n){let r=t.nodeBefore,a=t.nodeAfter,o=t.index();return!r||!a||!r.type.compatibleContent(a.type)?!1:!r.content.size&&t.parent.canReplace(o-1,o)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(o,o+1)||!(a.isTextblock||sd(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function uX(e,t,n,r){let a=t.nodeBefore,o=t.nodeAfter,i,s,l=a.type.spec.isolating||o.type.spec.isolating;if(!l&&FPe(e,t,n))return!0;let u=!l&&t.parent.canReplace(t.index(),t.index()+1);if(u&&(i=(s=a.contentMatchAt(a.childCount)).findWrapping(o.type))&&s.matchType(i[0]||o.type).validEnd){if(n){let p=t.pos+o.nodeSize,v=Oe.empty;for(let y=i.length-1;y>=0;y--)v=Oe.from(i[y].create(null,v));v=Oe.from(a.copy(v));let m=e.tr.step(new Pa(t.pos-1,p,t.pos,p,new nt(v,1,0),i.length,!0)),g=m.doc.resolve(p+2*i.length);g.nodeAfter&&g.nodeAfter.type==a.type&&sd(m.doc,g.pos)&&m.join(g.pos),n(m.scrollIntoView())}return!0}let c=o.type.spec.isolating||r>0&&l?null:Rt.findFrom(t,1),d=c&&c.$from.blockRange(c.$to),h=d&&am(d);if(h!=null&&h>=t.depth)return n&&n(e.tr.lift(d,h).scrollIntoView()),!0;if(u&&vm(o,"start",!0)&&vm(a,"end")){let p=a,v=[];for(;v.push(p),!p.isTextblock;)p=p.lastChild;let m=o,g=1;for(;!m.isTextblock;m=m.firstChild)g++;if(p.canReplace(p.childCount,p.childCount,m.content)){if(n){let y=Oe.empty;for(let w=v.length-1;w>=0;w--)y=Oe.from(v[w].copy(y));let b=e.tr.step(new Pa(t.pos-v.length,t.pos+o.nodeSize,t.pos+g,t.pos+o.nodeSize-g,new nt(y,v.length,0),0,!0));n(b.scrollIntoView())}return!0}}return!1}function cX(e){return function(t,n){let r=t.selection,a=e<0?r.$from:r.$to,o=a.depth;for(;a.node(o).isInline;){if(!o)return!1;o--}return a.node(o).isTextblock?(n&&n(t.tr.setSelection(At.create(t.doc,e<0?a.start(o):a.end(o)))),!0):!1}}const zPe=cX(-1),HPe=cX(1);function WPe(e,t=null){return function(n,r){let{$from:a,$to:o}=n.selection,i=a.blockRange(o),s=i&&WD(i,e,t);return s?(r&&r(n.tr.wrap(i,s).scrollIntoView()),!0):!1}}function dX(e,t=null){return function(n,r){let a=!1;for(let o=0;o{if(a)return!1;if(!(!l.isTextblock||l.hasMarkup(e,t)))if(l.type==e)a=!0;else{let c=n.doc.resolve(u),d=c.index();a=c.parent.canReplaceWith(d,d+1,e)}})}if(!a)return!1;if(r){let o=n.tr;for(let i=0;i=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let l=i.resolve(t.start-2);o=new px(l,l,t.depth),t.endIndex=0;c--)o=Oe.from(n[c].type.create(n[c].attrs,o));e.step(new Pa(t.start-(r?2:0),t.end,t.start,t.end,new nt(o,0,0),n.length,!0));let i=0;for(let c=0;ci.childCount>0&&i.firstChild.type==e);return o?n?r.node(o.depth-1).type==e?KPe(t,n,e,o):XPe(t,n,o):!0:!1}}function KPe(e,t,n,r){let a=e.tr,o=r.end,i=r.$to.end(r.depth);om;v--)p-=a.child(v).nodeSize,r.delete(p-1,p+1);let o=r.doc.resolve(n.start),i=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,l=n.endIndex==a.childCount,u=o.node(-1),c=o.index(-1);if(!u.canReplace(c+(s?0:1),c+1,i.content.append(l?Oe.empty:Oe.from(a))))return!1;let d=o.pos,h=d+i.nodeSize;return r.step(new Pa(d-(s?1:0),h+(l?1:0),d+1,h-1,new nt((s?Oe.empty:Oe.from(a.copy(Oe.empty))).append(l?Oe.empty:Oe.from(a.copy(Oe.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}function ZPe(e){return function(t,n){let{$from:r,$to:a}=t.selection,o=r.blockRange(a,u=>u.childCount>0&&u.firstChild.type==e);if(!o)return!1;let i=o.startIndex;if(i==0)return!1;let s=o.parent,l=s.child(i-1);if(l.type!=e)return!1;if(n){let u=l.lastChild&&l.lastChild.type==s.type,c=Oe.from(u?e.create():null),d=new nt(Oe.from(e.create(null,Oe.from(s.type.create(null,c)))),u?3:1,0),h=o.start,p=o.end;n(t.tr.step(new Pa(h-(u?3:1),p,h,p,d,1,!0)).scrollIntoView())}return!0}}function Nx(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:a}=n,{storedMarks:o}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return r},get doc(){return a},get tr(){return r=n.selection,a=n.doc,o=n.storedMarks,n}}}class Ox{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:n,state:r}=this,{view:a}=n,{tr:o}=r,i=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([s,l])=>[s,(...u)=>{const c=l(...u)(i);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(o),c}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,n=!0){const{rawCommands:r,editor:a,state:o}=this,{view:i}=a,s=[],l=!!t,u=t||o.tr,c=()=>(!l&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(u),s.every(h=>h===!0)),d={...Object.fromEntries(Object.entries(r).map(([h,p])=>[h,(...v)=>{const m=this.buildProps(u,n),g=p(...v)(m);return s.push(g),d}])),run:c};return d}createCan(t){const{rawCommands:n,state:r}=this,a=!1,o=t||r.tr,i=this.buildProps(o,a);return{...Object.fromEntries(Object.entries(n).map(([s,l])=>[s,(...u)=>l(...u)({...i,dispatch:void 0})])),chain:()=>this.createChain(o,a)}}buildProps(t,n=!0){const{rawCommands:r,editor:a,state:o}=this,{view:i}=a,s={tr:t,editor:a,view:i,state:Nx({state:o,transaction:t}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(t,n),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(r).map(([l,u])=>[l,(...c)=>u(...c)(s)]))}};return s}}class JPe{constructor(){this.callbacks={}}on(t,n){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(n),this}emit(t,...n){const r=this.callbacks[t];return r&&r.forEach(a=>a.apply(this,n)),this}off(t,n){const r=this.callbacks[t];return r&&(n?this.callbacks[t]=r.filter(a=>a!==n):delete this.callbacks[t]),this}once(t,n){const r=(...a)=>{this.off(t,r),n.apply(this,a)};return this.on(t,r)}removeAllListeners(){this.callbacks={}}}function mt(e,t,n){return e.config[t]===void 0&&e.parent?mt(e.parent,t,n):typeof e.config[t]=="function"?e.config[t].bind({...n,parent:e.parent?mt(e.parent,t,n):null}):e.config[t]}function Rx(e){const t=e.filter(a=>a.type==="extension"),n=e.filter(a=>a.type==="node"),r=e.filter(a=>a.type==="mark");return{baseExtensions:t,nodeExtensions:n,markExtensions:r}}function fX(e){const t=[],{nodeExtensions:n,markExtensions:r}=Rx(e),a=[...n,...r],o={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(i=>{const s={name:i.name,options:i.options,storage:i.storage,extensions:a},l=mt(i,"addGlobalAttributes",s);l&&l().forEach(u=>{u.types.forEach(c=>{Object.entries(u.attributes).forEach(([d,h])=>{t.push({type:c,name:d,attribute:{...o,...h}})})})})}),a.forEach(i=>{const s={name:i.name,options:i.options,storage:i.storage},l=mt(i,"addAttributes",s);if(!l)return;const u=l();Object.entries(u).forEach(([c,d])=>{const h={...o,...d};typeof h?.default=="function"&&(h.default=h.default()),h?.isRequired&&h?.default===void 0&&delete h.default,t.push({type:i.name,name:c,attribute:h})})}),t}function La(e,t){if(typeof e=="string"){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function zn(...e){return e.filter(t=>!!t).reduce((t,n)=>{const r={...t};return Object.entries(n).forEach(([a,o])=>{if(!r[a]){r[a]=o;return}if(a==="class"){const i=o?String(o).split(" "):[],s=r[a]?r[a].split(" "):[],l=i.filter(u=>!s.includes(u));r[a]=[...s,...l].join(" ")}else if(a==="style"){const i=o?o.split(";").map(u=>u.trim()).filter(Boolean):[],s=r[a]?r[a].split(";").map(u=>u.trim()).filter(Boolean):[],l=new Map;s.forEach(u=>{const[c,d]=u.split(":").map(h=>h.trim());l.set(c,d)}),i.forEach(u=>{const[c,d]=u.split(":").map(h=>h.trim());l.set(c,d)}),r[a]=Array.from(l.entries()).map(([u,c])=>`${u}: ${c}`).join("; ")}else r[a]=o}),r},{})}function AV(e,t){return t.filter(n=>n.type===e.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,r)=>zn(n,r),{})}function hX(e){return typeof e=="function"}function on(e,t=void 0,...n){return hX(e)?t?e.bind(t)(...n):e(...n):e}function QPe(e={}){return Object.keys(e).length===0&&e.constructor===Object}function qPe(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function pX(e,t){return"style"in e?e:{...e,getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;const a=t.reduce((o,i)=>{const s=i.attribute.parseHTML?i.attribute.parseHTML(n):qPe(n.getAttribute(i.name));return s==null?o:{...o,[i.name]:s}},{});return{...r,...a}}}}function vX(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>t==="attrs"&&QPe(n)?!1:n!=null))}function mX(e,t){var n;const r=fX(e),{nodeExtensions:a,markExtensions:o}=Rx(e),i=(n=a.find(u=>mt(u,"topNode")))===null||n===void 0?void 0:n.name,s=Object.fromEntries(a.map(u=>{const c=r.filter(y=>y.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},h=e.reduce((y,b)=>{const w=mt(b,"extendNodeSchema",d);return{...y,...w?w(u):{}}},{}),p=vX({...h,content:on(mt(u,"content",d)),marks:on(mt(u,"marks",d)),group:on(mt(u,"group",d)),inline:on(mt(u,"inline",d)),atom:on(mt(u,"atom",d)),selectable:on(mt(u,"selectable",d)),draggable:on(mt(u,"draggable",d)),code:on(mt(u,"code",d)),whitespace:on(mt(u,"whitespace",d)),linebreakReplacement:on(mt(u,"linebreakReplacement",d)),defining:on(mt(u,"defining",d)),isolating:on(mt(u,"isolating",d)),attrs:Object.fromEntries(c.map(y=>{var b;return[y.name,{default:(b=y?.attribute)===null||b===void 0?void 0:b.default}]}))}),v=on(mt(u,"parseHTML",d));v&&(p.parseDOM=v.map(y=>pX(y,c)));const m=mt(u,"renderHTML",d);m&&(p.toDOM=y=>m({node:y,HTMLAttributes:AV(y,c)}));const g=mt(u,"renderText",d);return g&&(p.toText=g),[u.name,p]})),l=Object.fromEntries(o.map(u=>{const c=r.filter(g=>g.type===u.name),d={name:u.name,options:u.options,storage:u.storage,editor:t},h=e.reduce((g,y)=>{const b=mt(y,"extendMarkSchema",d);return{...g,...b?b(u):{}}},{}),p=vX({...h,inclusive:on(mt(u,"inclusive",d)),excludes:on(mt(u,"excludes",d)),group:on(mt(u,"group",d)),spanning:on(mt(u,"spanning",d)),code:on(mt(u,"code",d)),attrs:Object.fromEntries(c.map(g=>{var y;return[g.name,{default:(y=g?.attribute)===null||y===void 0?void 0:y.default}]}))}),v=on(mt(u,"parseHTML",d));v&&(p.parseDOM=v.map(g=>pX(g,c)));const m=mt(u,"renderHTML",d);return m&&(p.toDOM=g=>m({mark:g,HTMLAttributes:AV(g,c)})),[u.name,p]}));return new iY({topNode:i,nodes:s,marks:l})}function EV(e,t){return t.nodes[e]||t.marks[e]||null}function gX(e,t){return Array.isArray(t)?t.some(n=>(typeof n=="string"?n:n.name)===e.name):t}function MV(e,t){const n=ad.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}const $Pe=(e,t=500)=>{let n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(a,o,i,s)=>{var l,u;const c=((u=(l=a.type.spec).toText)===null||u===void 0?void 0:u.call(l,{node:a,pos:o,parent:i,index:s}))||a.textContent||"%leaf%";n+=a.isAtom&&!a.isText?c:c.slice(0,Math.max(0,r-o))}),n};function IV(e){return Object.prototype.toString.call(e)==="[object RegExp]"}class Bx{constructor(t){this.find=t.find,this.handler=t.handler}}const e2e=(e,t)=>{if(IV(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function Fx(e){var t;const{editor:n,from:r,to:a,text:o,rules:i,plugin:s}=e,{view:l}=n;if(l.composing)return!1;const u=l.state.doc.resolve(r);if(u.parent.type.spec.code||!((t=u.nodeBefore||u.nodeAfter)===null||t===void 0)&&t.marks.find(h=>h.type.spec.code))return!1;let c=!1;const d=$Pe(u)+o;return i.forEach(h=>{if(c)return;const p=e2e(d,h.find);if(!p)return;const v=l.state.tr,m=Nx({state:l.state,transaction:v}),g={from:r-(p[0].length-o.length),to:a},{commands:y,chain:b,can:w}=new Ox({editor:n,state:m});h.handler({state:m,range:g,match:p,commands:y,chain:b,can:w})===null||!v.steps.length||(v.setMeta(s,{transform:v,from:r,to:a,text:o}),l.dispatch(v),c=!0)}),c}function t2e(e){const{editor:t,rules:n}=e,r=new pr({state:{init(){return null},apply(a,o,i){const s=a.getMeta(r);if(s)return s;const l=a.getMeta("applyInputRules");return l&&setTimeout(()=>{let{text:u}=l;typeof u=="string"?u=u:u=MV(Oe.from(u),i.schema);const{from:c}=l,d=c+u.length;Fx({editor:t,from:c,to:d,text:u,rules:n,plugin:r})}),a.selectionSet||a.docChanged?null:o}},props:{handleTextInput(a,o,i,s){return Fx({editor:t,from:o,to:i,text:s,rules:n,plugin:r})},handleDOMEvents:{compositionend:a=>(setTimeout(()=>{const{$cursor:o}=a.state.selection;o&&Fx({editor:t,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(a,o){if(o.key!=="Enter")return!1;const{$cursor:i}=a.state.selection;return i?Fx({editor:t,from:i.pos,to:i.pos,text:` `,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function n2e(e){return Object.prototype.toString.call(e).slice(8,-1)}function zx(e){return n2e(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function Hx(e,t){const n={...e};return zx(e)&&zx(t)&&Object.keys(t).forEach(r=>{zx(t[r])&&zx(e[r])?n[r]=Hx(e[r],t[r]):n[r]=t[r]}),n}class si{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=on(mt(this,"addOptions",{name:this.name}))),this.storage=on(mt(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new si(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>Hx(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new si(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=on(mt(n,"addOptions",{name:n.name})),n.storage=on(mt(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:t,mark:n}){const{tr:r}=t.state,a=t.state.selection.$from;if(a.pos===a.end()){const o=a.marks();if(!o.find(s=>s?.type.name===n.name))return!1;const i=o.find(s=>s?.type.name===n.name);return i&&r.removeStoredMark(i),r.insertText(" ",a.pos),t.view.dispatch(r),!0}return!1}}function r2e(e){return typeof e=="number"}class a2e{constructor(t){this.find=t.find,this.handler=t.handler}}const o2e=(e,t,n)=>{if(IV(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map(a=>{const o=[a.text];return o.index=a.index,o.input=e,o.data=a.data,a.replaceWith&&(a.text.includes(a.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(a.replaceWith)),o}):[]};function i2e(e){const{editor:t,state:n,from:r,to:a,rule:o,pasteEvent:i,dropEvent:s}=e,{commands:l,chain:u,can:c}=new Ox({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,a,(h,p)=>{if(!h.isTextblock||h.type.spec.code)return;const v=Math.max(r,p),m=Math.min(a,p+h.content.size),g=h.textBetween(v-p,m-p,void 0,"");o2e(g,o.find,i).forEach(y=>{if(y.index===void 0)return;const b=v+y.index+1,w=b+y[0].length,x={from:n.tr.mapping.map(b),to:n.tr.mapping.map(w)},C=o.handler({state:n,range:x,match:y,commands:l,chain:u,can:c,pasteEvent:i,dropEvent:s});d.push(C)})}),d.every(h=>h!==null)}let Wx=null;const s2e=e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(t=n.clipboardData)===null||t===void 0||t.setData("text/html",e),n};function l2e(e){const{editor:t,rules:n}=e;let r=null,a=!1,o=!1,i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,s;try{s=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{s=null}const l=({state:u,from:c,to:d,rule:h,pasteEvt:p})=>{const v=u.tr,m=Nx({state:u,transaction:v});if(!(!i2e({editor:t,state:m,from:Math.max(c-1,0),to:d.b-1,rule:h,pasteEvent:p,dropEvent:s})||!v.steps.length)){try{s=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{s=null}return i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,v}};return n.map(u=>new pr({view(c){const d=p=>{var v;r=!((v=c.dom.parentElement)===null||v===void 0)&&v.contains(p.target)?c.dom.parentElement:null,r&&(Wx=t)},h=()=>{Wx&&(Wx=null)};return window.addEventListener("dragstart",d),window.addEventListener("dragend",h),{destroy(){window.removeEventListener("dragstart",d),window.removeEventListener("dragend",h)}}},props:{handleDOMEvents:{drop:(c,d)=>{if(o=r===c.dom.parentElement,s=d,!o){const h=Wx;h?.isEditable&&setTimeout(()=>{const p=h.state.selection;p&&h.commands.deleteRange({from:p.from,to:p.to})},10)}return!1},paste:(c,d)=>{var h;const p=(h=d.clipboardData)===null||h===void 0?void 0:h.getData("text/html");return i=d,a=!!p?.includes("data-pm-slice"),!1}}},appendTransaction:(c,d,h)=>{const p=c[0],v=p.getMeta("uiEvent")==="paste"&&!a,m=p.getMeta("uiEvent")==="drop"&&!o,g=p.getMeta("applyPasteRules"),y=!!g;if(!v&&!m&&!y)return;if(y){let{text:x}=g;typeof x=="string"?x=x:x=MV(Oe.from(x),h.schema);const{from:C}=g,_=C+x.length,k=s2e(x);return l({rule:u,state:h,from:C,to:{b:_},pasteEvt:k})}const b=d.doc.content.findDiffStart(h.doc.content),w=d.doc.content.findDiffEnd(h.doc.content);if(!(!r2e(b)||!w||b===w.b))return l({rule:u,state:h,from:b,to:w,pasteEvt:i})}}))}function u2e(e){const t=e.filter((n,r)=>e.indexOf(n)!==r);return Array.from(new Set(t))}class Sh{constructor(t,n){this.splittableMarks=[],this.editor=n,this.extensions=Sh.resolve(t),this.schema=mX(this.extensions,n),this.setupExtensions()}static resolve(t){const n=Sh.sort(Sh.flatten(t)),r=u2e(n.map(a=>a.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(a=>`'${a}'`).join(", ")}]. This can lead to issues.`),n}static flatten(t){return t.map(n=>{const r={name:n.name,options:n.options,storage:n.storage},a=mt(n,"addExtensions",r);return a?[n,...this.flatten(a())]:n}).flat(10)}static sort(t){return t.sort((n,r)=>{const a=mt(n,"priority")||100,o=mt(r,"priority")||100;return a>o?-1:a{const r={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:EV(n.name,this.schema)},a=mt(n,"addCommands",r);return a?{...t,...a()}:t},{})}get plugins(){const{editor:t}=this,n=Sh.sort([...this.extensions].reverse()),r=[],a=[],o=n.map(i=>{const s={name:i.name,options:i.options,storage:i.storage,editor:t,type:EV(i.name,this.schema)},l=[],u=mt(i,"addKeyboardShortcuts",s);let c={};if(i.type==="mark"&&mt(i,"exitable",s)&&(c.ArrowRight=()=>si.handleExit({editor:t,mark:i})),u){const m=Object.fromEntries(Object.entries(u()).map(([g,y])=>[g,()=>y({editor:t})]));c={...c,...m}}const d=MPe(c);l.push(d);const h=mt(i,"addInputRules",s);gX(i,t.options.enableInputRules)&&h&&r.push(...h());const p=mt(i,"addPasteRules",s);gX(i,t.options.enablePasteRules)&&p&&a.push(...p());const v=mt(i,"addProseMirrorPlugins",s);if(v){const m=v();l.push(...m)}return l}).flat();return[t2e({editor:t,rules:r}),...l2e({editor:t,rules:a}),...o]}get attributes(){return fX(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:n}=Rx(this.extensions);return Object.fromEntries(n.filter(r=>!!mt(r,"addNodeView")).map(r=>{const a=this.attributes.filter(l=>l.type===r.name),o={name:r.name,options:r.options,storage:r.storage,editor:t,type:La(r.name,this.schema)},i=mt(r,"addNodeView",o);if(!i)return[];const s=(l,u,c,d,h)=>{const p=AV(l,a);return i()({node:l,view:u,getPos:c,decorations:d,innerDecorations:h,editor:t,extension:r,HTMLAttributes:p})};return[r.name,s]}))}setupExtensions(){this.extensions.forEach(t=>{var n;this.editor.extensionStorage[t.name]=t.storage;const r={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:EV(t.name,this.schema)};t.type==="mark"&&(!((n=on(mt(t,"keepOnSplit",r)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(t.name);const a=mt(t,"onBeforeCreate",r),o=mt(t,"onCreate",r),i=mt(t,"onUpdate",r),s=mt(t,"onSelectionUpdate",r),l=mt(t,"onTransaction",r),u=mt(t,"onFocus",r),c=mt(t,"onBlur",r),d=mt(t,"onDestroy",r);a&&this.editor.on("beforeCreate",a),o&&this.editor.on("create",o),i&&this.editor.on("update",i),s&&this.editor.on("selectionUpdate",s),l&&this.editor.on("transaction",l),u&&this.editor.on("focus",u),c&&this.editor.on("blur",c),d&&this.editor.on("destroy",d)})}}class Zn{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=on(mt(this,"addOptions",{name:this.name}))),this.storage=on(mt(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Zn(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>Hx(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new Zn({...this.config,...t});return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=on(mt(n,"addOptions",{name:n.name})),n.storage=on(mt(n,"addStorage",{name:n.name,options:n.options})),n}}function yX(e,t,n){const{from:r,to:a}=t,{blockSeparator:o=` `,textSerializers:i={}}=n||{};let s="";return e.nodesBetween(r,a,(l,u,c,d)=>{var h;l.isBlock&&u>r&&(s+=o);const p=i?.[l.type.name];if(p)return c&&(s+=p({node:l,pos:u,parent:c,index:d,range:t})),!1;l.isText&&(s+=(h=l?.text)===null||h===void 0?void 0:h.slice(Math.max(r,u)-u,a-u))}),s}function DV(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,t])=>t.spec.toText).map(([t,n])=>[t,n.spec.toText]))}const c2e=Zn.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new pr({key:new qr("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:a}=t,{ranges:o}=a,i=Math.min(...o.map(u=>u.$from.pos)),s=Math.max(...o.map(u=>u.$to.pos)),l=DV(n);return yX(r,{from:i,to:s},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),d2e=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window?.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),f2e=(e=!1)=>({commands:t})=>t.setContent("",e),h2e=()=>({state:e,tr:t,dispatch:n})=>{const{selection:r}=t,{ranges:a}=r;return n&&a.forEach(({$from:o,$to:i})=>{e.doc.nodesBetween(o.pos,i.pos,(s,l)=>{if(s.type.isText)return;const{doc:u,mapping:c}=t,d=u.resolve(c.map(l)),h=u.resolve(c.map(l+s.nodeSize)),p=d.blockRange(h);if(!p)return;const v=am(p);if(s.type.isTextblock){const{defaultType:m}=d.parent.contentMatchAt(d.index());t.setNodeMarkup(p.start,m)}(v||v===0)&&t.lift(p,v)})}),!0},p2e=e=>t=>e(t),v2e=()=>({state:e,dispatch:t})=>sX(e,t),m2e=(e,t)=>({editor:n,tr:r})=>{const{state:a}=n,o=a.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);const i=r.mapping.map(t);return r.insert(i,o.content),r.setSelection(new At(r.doc.resolve(Math.max(i-1,0)))),!0},g2e=()=>({tr:e,dispatch:t})=>{const{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;const a=e.selection.$anchor;for(let o=a.depth;o>0;o-=1)if(a.node(o).type===r.type){if(t){const i=a.before(o),s=a.after(o);e.delete(i,s).scrollIntoView()}return!0}return!1},y2e=e=>({tr:t,state:n,dispatch:r})=>{const a=La(e,n.schema),o=t.selection.$anchor;for(let i=o.depth;i>0;i-=1)if(o.node(i).type===a){if(r){const s=o.before(i),l=o.after(i);t.delete(s,l).scrollIntoView()}return!0}return!1},b2e=e=>({tr:t,dispatch:n})=>{const{from:r,to:a}=e;return n&&t.delete(r,a),!0},w2e=()=>({state:e,dispatch:t})=>Lx(e,t),S2e=()=>({commands:e})=>e.keyboardShortcut("Enter"),x2e=()=>({state:e,dispatch:t})=>NPe(e,t);function Gx(e,t,n={strict:!0}){const r=Object.keys(t);return r.length?r.every(a=>n.strict?t[a]===e[a]:IV(t[a])?t[a].test(e[a]):t[a]===e[a]):!0}function bX(e,t,n={}){return e.find(r=>r.type===t&&Gx(Object.fromEntries(Object.keys(n).map(a=>[a,r.attrs[a]])),n))}function wX(e,t,n={}){return!!bX(e,t,n)}function Ux(e,t,n){var r;if(!e||!t)return;let a=e.parent.childAfter(e.parentOffset);if((!a.node||!a.node.marks.some(u=>u.type===t))&&(a=e.parent.childBefore(e.parentOffset)),!a.node||!a.node.marks.some(u=>u.type===t)||(n=n||((r=a.node.marks[0])===null||r===void 0?void 0:r.attrs),!bX([...a.node.marks],t,n)))return;let o=a.index,i=e.start()+a.offset,s=o+1,l=i+a.node.nodeSize;for(;o>0&&wX([...e.parent.child(o-1).marks],t,n);)o-=1,i-=e.parent.child(o).nodeSize;for(;s({tr:n,state:r,dispatch:a})=>{const o=gd(e,r.schema),{doc:i,selection:s}=n,{$from:l,from:u,to:c}=s;if(a){const d=Ux(l,o,t);if(d&&d.from<=u&&d.to>=c){const h=At.create(i,d.from,d.to);n.setSelection(h)}}return!0},C2e=e=>t=>{const n=typeof e=="function"?e(t):e;for(let r=0;r({editor:n,view:r,tr:a,dispatch:o})=>{t={scrollIntoView:!0,...t};const i=()=>{(jx()||xX())&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t?.scrollIntoView&&n.commands.scrollIntoView())})};if(r.hasFocus()&&e===null||e===!1)return!0;if(o&&e===null&&!VV(n.state.selection))return i(),!0;const s=SX(a.doc,e)||n.state.selection,l=n.state.selection.eq(s);return o&&(l||a.setSelection(s),l&&a.storedMarks&&a.setStoredMarks(a.storedMarks),i()),!0},k2e=(e,t)=>n=>e.every((r,a)=>t(r,{...n,index:a})),A2e=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),_X=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&_X(r)}return e};function Yx(e){const t=`${e}`,n=new window.DOMParser().parseFromString(t,"text/html").body;return _X(n)}function yb(e,t,n){if(e instanceof ju||e instanceof Oe)return e;n={slice:!0,parseOptions:{},...n};const r=typeof e=="object"&&e!==null,a=typeof e=="string";if(r)try{if(Array.isArray(e)&&e.length>0)return Oe.fromArray(e.map(i=>t.nodeFromJSON(i)));const o=t.nodeFromJSON(e);return n.errorOnInvalidContent&&o.check(),o}catch(o){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:o});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",o),yb("",t,n)}if(a){if(n.errorOnInvalidContent){let i=!1,s="";const l=new iY({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:u=>(i=!0,s=typeof u=="string"?u:u.outerHTML,null)}]}})});if(n.slice?rd.fromSchema(l).parseSlice(Yx(e),n.parseOptions):rd.fromSchema(l).parse(Yx(e),n.parseOptions),n.errorOnInvalidContent&&i)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${s}`)})}const o=rd.fromSchema(t);return n.slice?o.parseSlice(Yx(e),n.parseOptions).content:o.parse(Yx(e),n.parseOptions)}return yb("",t,n)}function E2e(e,t,n){const r=e.steps.length-1;if(r{i===0&&(i=c)}),e.setSelection(Rt.near(e.doc.resolve(i),n))}const M2e=e=>!("type"in e),I2e=(e,t,n)=>({tr:r,dispatch:a,editor:o})=>{var i;if(a){n={parseOptions:o.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let s;const l=m=>{o.emit("contentError",{editor:o,error:m,disableCollaboration:()=>{o.storage.collaboration&&(o.storage.collaboration.isDisabled=!0)}})},u={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!o.options.enableContentCheck&&o.options.emitContentError)try{yb(t,o.schema,{parseOptions:u,errorOnInvalidContent:!0})}catch(m){l(m)}try{s=yb(t,o.schema,{parseOptions:u,errorOnInvalidContent:(i=n.errorOnInvalidContent)!==null&&i!==void 0?i:o.options.enableContentCheck})}catch(m){return l(m),!1}let{from:c,to:d}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},h=!0,p=!0;if((M2e(s)?s:[s]).forEach(m=>{m.check(),h=h?m.isText&&m.marks.length===0:!1,p=p?m.isBlock:!1}),c===d&&p){const{parent:m}=r.doc.resolve(c);m.isTextblock&&!m.type.spec.code&&!m.childCount&&(c-=1,d+=1)}let v;if(h){if(Array.isArray(t))v=t.map(m=>m.text||"").join("");else if(t instanceof Oe){let m="";t.forEach(g=>{g.text&&(m+=g.text)}),v=m}else typeof t=="object"&&t&&t.text?v=t.text:v=t;r.insertText(v,c,d)}else v=s,r.replaceWith(c,d,v);n.updateSelection&&E2e(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:c,text:v}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:c,text:v})}return!0},D2e=()=>({state:e,dispatch:t})=>VPe(e,t),V2e=()=>({state:e,dispatch:t})=>PPe(e,t),P2e=()=>({state:e,dispatch:t})=>eX(e,t),L2e=()=>({state:e,dispatch:t})=>aX(e,t),N2e=()=>({state:e,dispatch:t,tr:n})=>{try{const r=Sx(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},O2e=()=>({state:e,dispatch:t,tr:n})=>{try{const r=Sx(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},R2e=()=>({state:e,dispatch:t})=>IPe(e,t),B2e=()=>({state:e,dispatch:t})=>DPe(e,t);function CX(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function F2e(e){const t=e.split(/-(?!$)/);let n=t[t.length-1];n==="Space"&&(n=" ");let r,a,o,i;for(let s=0;s({editor:t,view:n,tr:r,dispatch:a})=>{const o=F2e(e).split(/-(?!$)/),i=o.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),s=new KeyboardEvent("keydown",{key:i==="Space"?" ":i,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{n.someProp("handleKeyDown",u=>u(n,s))})?.steps.forEach(u=>{const c=u.map(r.mapping);c&&a&&r.maybeStep(c)}),!0};function bb(e,t,n={}){const{from:r,to:a,empty:o}=e.selection,i=t?La(t,e.schema):null,s=[];e.doc.nodesBetween(r,a,(c,d)=>{if(c.isText)return;const h=Math.max(r,d),p=Math.min(a,d+c.nodeSize);s.push({node:c,from:h,to:p})});const l=a-r,u=s.filter(c=>i?i.name===c.node.type.name:!0).filter(c=>Gx(c.node.attrs,n,{strict:!1}));return o?!!u.length:u.reduce((c,d)=>c+d.to-d.from,0)>=l}const H2e=(e,t={})=>({state:n,dispatch:r})=>{const a=La(e,n.schema);return bb(n,a,t)?LPe(n,r):!1},W2e=()=>({state:e,dispatch:t})=>lX(e,t),G2e=e=>({state:t,dispatch:n})=>{const r=La(e,t.schema);return YPe(r)(t,n)},U2e=()=>({state:e,dispatch:t})=>iX(e,t);function Kx(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function TX(e,t){const n=typeof t=="string"?[t]:t;return Object.keys(e).reduce((r,a)=>(n.includes(a)||(r[a]=e[a]),r),{})}const j2e=(e,t)=>({tr:n,state:r,dispatch:a})=>{let o=null,i=null;const s=Kx(typeof e=="string"?e:e.name,r.schema);return s?(s==="node"&&(o=La(e,r.schema)),s==="mark"&&(i=gd(e,r.schema)),a&&n.selection.ranges.forEach(l=>{r.doc.nodesBetween(l.$from.pos,l.$to.pos,(u,c)=>{o&&o===u.type&&n.setNodeMarkup(c,void 0,TX(u.attrs,t)),i&&u.marks.length&&u.marks.forEach(d=>{i===d.type&&n.addMark(c,c+u.nodeSize,i.create(TX(d.attrs,t)))})})}),!0):!1},Y2e=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),K2e=()=>({tr:e,dispatch:t})=>{if(t){const n=new Pi(e.doc);e.setSelection(n)}return!0},X2e=()=>({state:e,dispatch:t})=>nX(e,t),Z2e=()=>({state:e,dispatch:t})=>oX(e,t),J2e=()=>({state:e,dispatch:t})=>BPe(e,t),Q2e=()=>({state:e,dispatch:t})=>HPe(e,t),q2e=()=>({state:e,dispatch:t})=>zPe(e,t);function PV(e,t,n={},r={}){return yb(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}const $2e=(e,t=!1,n={},r={})=>({editor:a,tr:o,dispatch:i,commands:s})=>{var l,u;const{doc:c}=o;if(n.preserveWhitespace!=="full"){const d=PV(e,a.schema,n,{errorOnInvalidContent:(l=r.errorOnInvalidContent)!==null&&l!==void 0?l:a.options.enableContentCheck});return i&&o.replaceWith(0,c.content.size,d).setMeta("preventUpdate",!t),!0}return i&&o.setMeta("preventUpdate",!t),s.insertContentAt({from:0,to:c.content.size},e,{parseOptions:n,errorOnInvalidContent:(u=r.errorOnInvalidContent)!==null&&u!==void 0?u:a.options.enableContentCheck})};function kX(e,t){const n=gd(t,e.schema),{from:r,to:a,empty:o}=e.selection,i=[];o?(e.storedMarks&&i.push(...e.storedMarks),i.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,a,l=>{i.push(...l.marks)});const s=i.find(l=>l.type.name===n.name);return s?{...s.attrs}:{}}function eLe(e,t){const n=new jD(e);return t.forEach(r=>{r.steps.forEach(a=>{n.step(a)})}),n}function tLe(e){for(let t=0;t{n(a)&&r.push({node:a,pos:o})}),r}function AX(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function LV(e){return t=>AX(t.$from,e)}function rLe(e,t){const n=Sh.resolve(e);return mX(n,t)}function EX(e,t){const n={from:0,to:e.content.size};return yX(e,n,t)}function aLe(e,t){const n=La(t,e.schema),{from:r,to:a}=e.selection,o=[];e.doc.nodesBetween(r,a,s=>{o.push(s)});const i=o.reverse().find(s=>s.type.name===n.name);return i?{...i.attrs}:{}}function MX(e,t){const n=Kx(typeof t=="string"?t:t.name,e.schema);return n==="node"?aLe(e,t):n==="mark"?kX(e,t):{}}function oLe(e,t=JSON.stringify){const n={};return e.filter(r=>{const a=t(r);return Object.prototype.hasOwnProperty.call(n,a)?!1:n[a]=!0})}function iLe(e){const t=oLe(e);return t.length===1?t:t.filter((n,r)=>!t.filter((a,o)=>o!==r).some(a=>n.oldRange.from>=a.oldRange.from&&n.oldRange.to<=a.oldRange.to&&n.newRange.from>=a.newRange.from&&n.newRange.to<=a.newRange.to))}function sLe(e){const{mapping:t,steps:n}=e,r=[];return t.maps.forEach((a,o)=>{const i=[];if(a.ranges.length)a.forEach((s,l)=>{i.push({from:s,to:l})});else{const{from:s,to:l}=n[o];if(s===void 0||l===void 0)return;i.push({from:s,to:l})}i.forEach(({from:s,to:l})=>{const u=t.slice(o).map(s,-1),c=t.slice(o).map(l),d=t.invert().map(u,-1),h=t.invert().map(c);r.push({oldRange:{from:d,to:h},newRange:{from:u,to:c}})})}),iLe(r)}function NV(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach(a=>{const o=n.resolve(e),i=Ux(o,a.type);i&&r.push({mark:a,...i})}):n.nodesBetween(e,t,(a,o)=>{!a||a?.nodeSize===void 0||r.push(...a.marks.map(i=>({from:o,to:o+a.nodeSize,mark:i})))}),r}function Xx(e,t,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const a=e.find(o=>o.type===t&&o.name===r);return a?a.attribute.keepOnSplit:!1}))}function OV(e,t,n={}){const{empty:r,ranges:a}=e.selection,o=t?gd(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(c=>o?o.name===c.type.name:!0).find(c=>Gx(c.attrs,n,{strict:!1}));let i=0;const s=[];if(a.forEach(({$from:c,$to:d})=>{const h=c.pos,p=d.pos;e.doc.nodesBetween(h,p,(v,m)=>{if(!v.isText&&!v.marks.length)return;const g=Math.max(h,m),y=Math.min(p,m+v.nodeSize),b=y-g;i+=b,s.push(...v.marks.map(w=>({mark:w,from:g,to:y})))})}),i===0)return!1;const l=s.filter(c=>o?o.name===c.mark.type.name:!0).filter(c=>Gx(c.mark.attrs,n,{strict:!1})).reduce((c,d)=>c+d.to-d.from,0),u=s.filter(c=>o?c.mark.type!==o&&c.mark.type.excludes(o):!0).reduce((c,d)=>c+d.to-d.from,0);return(l>0?l+u:l)>=i}function lLe(e,t,n={}){if(!t)return bb(e,null,n)||OV(e,null,n);const r=Kx(t,e.schema);return r==="node"?bb(e,t,n):r==="mark"?OV(e,t,n):!1}function IX(e,t){const{nodeExtensions:n}=Rx(t),r=n.find(i=>i.name===e);if(!r)return!1;const a={name:r.name,options:r.options,storage:r.storage},o=on(mt(r,"group",a));return typeof o!="string"?!1:o.split(" ").includes("list")}function Zx(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(e.type.name==="hardBreak")return!0;if(e.isText)return/^\s*$/m.test((r=e.text)!==null&&r!==void 0?r:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let a=!0;return e.content.forEach(o=>{a!==!1&&(Zx(o,{ignoreWhitespace:n,checkChildren:t})||(a=!1))}),a}return!1}function DX(e){return e instanceof Ct}function VX(e,t,n){const r=e.state.doc.content.size,a=Qu(t,0,r),o=Qu(n,0,r),i=e.coordsAtPos(a),s=e.coordsAtPos(o,-1),l=Math.min(i.top,s.top),u=Math.max(i.bottom,s.bottom),c=Math.min(i.left,s.left),d=Math.max(i.right,s.right),h=d-c,p=u-l,v={top:l,bottom:u,left:c,right:d,width:h,height:p,x:c,y:l};return{...v,toJSON:()=>v}}function uLe(e,t,n){var r;const{selection:a}=t;let o=null;if(VV(a)&&(o=a.$cursor),o){const s=(r=e.storedMarks)!==null&&r!==void 0?r:o.marks();return!!n.isInSet(s)||!s.some(l=>l.type.excludes(n))}const{ranges:i}=a;return i.some(({$from:s,$to:l})=>{let u=s.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(s.pos,l.pos,(c,d,h)=>{if(u)return!1;if(c.isInline){const p=!h||h.type.allowsMarkType(n),v=!!n.isInSet(c.marks)||!c.marks.some(m=>m.type.excludes(n));u=p&&v}return!u}),u})}const cLe=(e,t={})=>({tr:n,state:r,dispatch:a})=>{const{selection:o}=n,{empty:i,ranges:s}=o,l=gd(e,r.schema);if(a)if(i){const u=kX(r,l);n.addStoredMark(l.create({...u,...t}))}else s.forEach(u=>{const c=u.$from.pos,d=u.$to.pos;r.doc.nodesBetween(c,d,(h,p)=>{const v=Math.max(p,c),m=Math.min(p+h.nodeSize,d);h.marks.find(g=>g.type===l)?h.marks.forEach(g=>{l===g.type&&n.addMark(v,m,l.create({...g.attrs,...t}))}):n.addMark(v,m,l.create(t))})});return uLe(r,n,l)},dLe=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),fLe=(e,t={})=>({state:n,dispatch:r,chain:a})=>{const o=La(e,n.schema);let i;return n.selection.$anchor.sameParent(n.selection.$head)&&(i=n.selection.$anchor.parent.attrs),o.isTextblock?a().command(({commands:s})=>dX(o,{...i,...t})(n)?!0:s.clearNodes()).command(({state:s})=>dX(o,{...i,...t})(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},hLe=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,a=Qu(e,0,r.content.size),o=Ct.create(r,a);t.setSelection(o)}return!0},pLe=e=>({tr:t,dispatch:n})=>{if(n){const{doc:r}=t,{from:a,to:o}=typeof e=="number"?{from:e,to:e}:e,i=At.atStart(r).from,s=At.atEnd(r).to,l=Qu(a,i,s),u=Qu(o,i,s),c=At.create(r,l,u);t.setSelection(c)}return!0},vLe=e=>({state:t,dispatch:n})=>{const r=La(e,t.schema);return ZPe(r)(t,n)};function PX(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter(a=>t?.includes(a.type.name));e.tr.ensureMarks(r)}}const mLe=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:a})=>{const{selection:o,doc:i}=t,{$from:s,$to:l}=o,u=a.extensionManager.attributes,c=Xx(u,s.node().type.name,s.node().attrs);if(o instanceof Ct&&o.node.isBlock)return!s.parentOffset||!Yu(i,s.pos)?!1:(r&&(e&&PX(n,a.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,h=s.depth===0?void 0:tLe(s.node(-1).contentMatchAt(s.indexAfter(-1)));let p=d&&h?[{type:h,attrs:c}]:void 0,v=Yu(t.doc,t.mapping.map(s.pos),1,p);if(!p&&!v&&Yu(t.doc,t.mapping.map(s.pos),1,h?[{type:h}]:void 0)&&(v=!0,p=h?[{type:h,attrs:c}]:void 0),r){if(v&&(o instanceof At&&t.deleteSelection(),t.split(t.mapping.map(s.pos),1,p),h&&!d&&!s.parentOffset&&s.parent.type!==h)){const m=t.mapping.map(s.before()),g=t.doc.resolve(m);s.node(-1).canReplaceWith(g.index(),g.index()+1,h)&&t.setNodeMarkup(t.mapping.map(s.before()),h)}e&&PX(n,a.extensionManager.splittableMarks),t.scrollIntoView()}return v},gLe=(e,t={})=>({tr:n,state:r,dispatch:a,editor:o})=>{var i;const s=La(e,r.schema),{$from:l,$to:u}=r.selection,c=r.selection.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(u))return!1;const d=l.node(-1);if(d.type!==s)return!1;const h=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==s||l.index(-2)!==l.node(-2).childCount-1)return!1;if(a){let y=Oe.empty;const b=l.index(-1)?1:l.index(-2)?2:3;for(let A=l.depth-b;A>=l.depth-3;A-=1)y=Oe.from(l.node(A).copy(y));const w=l.indexAfter(-1){if(k>-1)return!1;A.isTextblock&&A.content.size===0&&(k=E+1)}),k>-1&&n.setSelection(At.near(n.doc.resolve(k))),n.scrollIntoView()}return!0}const p=u.pos===l.end()?d.contentMatchAt(0).defaultType:null,v={...Xx(h,d.type.name,d.attrs),...t},m={...Xx(h,l.node().type.name,l.node().attrs),...t};n.delete(l.pos,u.pos);const g=p?[{type:s,attrs:v},{type:p,attrs:m}]:[{type:s,attrs:v}];if(!Yu(n.doc,l.pos,2))return!1;if(a){const{selection:y,storedMarks:b}=r,{splittableMarks:w}=o.extensionManager,x=b||y.$to.parentOffset&&y.$from.marks();if(n.split(l.pos,2,g).scrollIntoView(),!x||!a)return!0;const C=x.filter(_=>w.includes(_.type.name));n.ensureMarks(C)}return!0},RV=(e,t)=>{const n=LV(o=>o.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const a=e.doc.nodeAt(r);return n.node.type===a?.type&&sd(e.doc,n.pos)&&e.join(n.pos),!0},BV=(e,t)=>{const n=LV(o=>o.type===t)(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const a=e.doc.nodeAt(r);return n.node.type===a?.type&&sd(e.doc,r)&&e.join(r),!0};var yLe=Object.freeze({__proto__:null,blur:d2e,clearContent:f2e,clearNodes:h2e,command:p2e,createParagraphNear:v2e,cut:m2e,deleteCurrentNode:g2e,deleteNode:y2e,deleteRange:b2e,deleteSelection:w2e,enter:S2e,exitCode:x2e,extendMarkRange:_2e,first:C2e,focus:T2e,forEach:k2e,insertContent:A2e,insertContentAt:I2e,joinBackward:P2e,joinDown:V2e,joinForward:L2e,joinItemBackward:N2e,joinItemForward:O2e,joinTextblockBackward:R2e,joinTextblockForward:B2e,joinUp:D2e,keyboardShortcut:z2e,lift:H2e,liftEmptyBlock:W2e,liftListItem:G2e,newlineInCode:U2e,resetAttributes:j2e,scrollIntoView:Y2e,selectAll:K2e,selectNodeBackward:X2e,selectNodeForward:Z2e,selectParentNode:J2e,selectTextblockEnd:Q2e,selectTextblockStart:q2e,setContent:$2e,setMark:cLe,setMeta:dLe,setNode:fLe,setNodeSelection:hLe,setTextSelection:pLe,sinkListItem:vLe,splitBlock:mLe,splitListItem:gLe,toggleList:(e,t,n,r={})=>({editor:a,tr:o,state:i,dispatch:s,chain:l,commands:u,can:c})=>{const{extensions:d,splittableMarks:h}=a.extensionManager,p=La(e,i.schema),v=La(t,i.schema),{selection:m,storedMarks:g}=i,{$from:y,$to:b}=m,w=y.blockRange(b),x=g||m.$to.parentOffset&&m.$from.marks();if(!w)return!1;const C=LV(_=>IX(_.type.name,d))(m);if(w.depth>=1&&C&&w.depth-C.depth<=1){if(C.node.type===p)return u.liftListItem(v);if(IX(C.node.type.name,d)&&p.validContent(C.node.content)&&s)return l().command(()=>(o.setNodeMarkup(C.pos,p),!0)).command(()=>RV(o,p)).command(()=>BV(o,p)).run()}return!n||!x||!s?l().command(()=>c().wrapInList(p,r)?!0:u.clearNodes()).wrapInList(p,r).command(()=>RV(o,p)).command(()=>BV(o,p)).run():l().command(()=>{const _=c().wrapInList(p,r),k=x.filter(A=>h.includes(A.type.name));return o.ensureMarks(k),_?!0:u.clearNodes()}).wrapInList(p,r).command(()=>RV(o,p)).command(()=>BV(o,p)).run()},toggleMark:(e,t={},n={})=>({state:r,commands:a})=>{const{extendEmptyMarkRange:o=!1}=n,i=gd(e,r.schema);return OV(r,i,t)?a.unsetMark(i,{extendEmptyMarkRange:o}):a.setMark(i,t)},toggleNode:(e,t,n={})=>({state:r,commands:a})=>{const o=La(e,r.schema),i=La(t,r.schema),s=bb(r,o,n);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),s?a.setNode(i,l):a.setNode(o,{...l,...n})},toggleWrap:(e,t={})=>({state:n,commands:r})=>{const a=La(e,n.schema);return bb(n,a,t)?r.lift(a):r.wrapIn(a,t)},undoInputRule:()=>({state:e,dispatch:t})=>{const n=e.plugins;for(let r=0;r=0;l-=1)i.step(s.steps[l].invert(s.docs[l]));if(o.text){const l=i.doc.resolve(o.from).marks();i.replaceWith(o.from,o.to,e.schema.text(o.text,l))}else i.delete(o.from,o.to)}return!0}}return!1},unsetAllMarks:()=>({tr:e,dispatch:t})=>{const{selection:n}=e,{empty:r,ranges:a}=n;return r||t&&a.forEach(o=>{e.removeMark(o.$from.pos,o.$to.pos)}),!0},unsetMark:(e,t={})=>({tr:n,state:r,dispatch:a})=>{var o;const{extendEmptyMarkRange:i=!1}=t,{selection:s}=n,l=gd(e,r.schema),{$from:u,empty:c,ranges:d}=s;if(!a)return!0;if(c&&i){let{from:h,to:p}=s;const v=(o=u.marks().find(g=>g.type===l))===null||o===void 0?void 0:o.attrs,m=Ux(u,l,v);m&&(h=m.from,p=m.to),n.removeMark(h,p,l)}else d.forEach(h=>{n.removeMark(h.$from.pos,h.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(e,t={})=>({tr:n,state:r,dispatch:a})=>{let o=null,i=null;const s=Kx(typeof e=="string"?e:e.name,r.schema);return s?(s==="node"&&(o=La(e,r.schema)),s==="mark"&&(i=gd(e,r.schema)),a&&n.selection.ranges.forEach(l=>{const u=l.$from.pos,c=l.$to.pos;let d,h,p,v;n.selection.empty?r.doc.nodesBetween(u,c,(m,g)=>{o&&o===m.type&&(p=Math.max(g,u),v=Math.min(g+m.nodeSize,c),d=g,h=m)}):r.doc.nodesBetween(u,c,(m,g)=>{g=u&&g<=c&&(o&&o===m.type&&n.setNodeMarkup(g,void 0,{...m.attrs,...t}),i&&m.marks.length&&m.marks.forEach(y=>{if(i===y.type){const b=Math.max(g,u),w=Math.min(g+m.nodeSize,c);n.addMark(b,w,i.create({...y.attrs,...t}))}}))}),h&&(d!==void 0&&n.setNodeMarkup(d,void 0,{...h.attrs,...t}),i&&h.marks.length&&h.marks.forEach(m=>{i===m.type&&n.addMark(p,v,i.create({...m.attrs,...t}))}))}),!0):!1},wrapIn:(e,t={})=>({state:n,dispatch:r})=>{const a=La(e,n.schema);return WPe(a,t)(n,r)},wrapInList:(e,t={})=>({state:n,dispatch:r})=>{const a=La(e,n.schema);return GPe(a,t)(n,r)}});const bLe=Zn.create({name:"commands",addCommands(){return{...yLe}}}),wLe=Zn.create({name:"drop",addProseMirrorPlugins(){return[new pr({key:new qr("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),SLe=Zn.create({name:"editable",addProseMirrorPlugins(){return[new pr({key:new qr("editable"),props:{editable:()=>this.editor.options.editable}})]}}),xLe=new qr("focusEvents"),_Le=Zn.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new pr({key:xLe,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),CLe=Zn.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:i})=>{const{selection:s,doc:l}=i,{empty:u,$anchor:c}=s,{pos:d,parent:h}=c,p=c.parent.isTextblock&&d>0?i.doc.resolve(d-1):c,v=p.parent.type.spec.isolating,m=c.pos-c.parentOffset,g=v&&p.parent.childCount===1?m===c.pos:Rt.atStart(l).from===d;return!u||!h.type.isTextblock||h.textContent.length||!g||g&&c.parent.type.name==="paragraph"?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},a={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return jx()||CX()?a:r},addProseMirrorPlugins(){return[new pr({key:new qr("clearDocument"),appendTransaction:(e,t,n)=>{if(e.some(p=>p.getMeta("composition")))return;const r=e.some(p=>p.docChanged)&&!t.doc.eq(n.doc),a=e.some(p=>p.getMeta("preventClearDocument"));if(!r||a)return;const{empty:o,from:i,to:s}=t.selection,l=Rt.atStart(t.doc).from,u=Rt.atEnd(t.doc).to;if(o||!(i===l&&s===u)||!Zx(n.doc))return;const c=n.tr,d=Nx({state:n,transaction:c}),{commands:h}=new Ox({editor:this.editor,state:d});if(h.clearNodes(),!!c.steps.length)return c}})]}}),TLe=Zn.create({name:"paste",addProseMirrorPlugins(){return[new pr({key:new qr("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),kLe=Zn.create({name:"tabindex",addProseMirrorPlugins(){return[new pr({key:new qr("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class xh{get name(){return this.node.type.name}constructor(t,n,r=!1,a=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=t,this.editor=n,this.currentNode=a}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var t;return(t=this.actualDepth)!==null&&t!==void 0?t:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(t){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},t)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(t);return new xh(n,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new xh(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new xh(t,this.editor)}get children(){const t=[];return this.node.content.forEach((n,r)=>{const a=n.isBlock&&!n.isTextblock,o=n.isAtom&&!n.isText,i=this.pos+r+(o?0:1);if(i<0||i>this.resolvedPos.doc.nodeSize-2)return;const s=this.resolvedPos.doc.resolve(i);if(!a&&s.depth<=this.depth)return;const l=new xh(s,this.editor,a,a?n:null);a&&(l.actualDepth=this.depth+1),t.push(new xh(s,this.editor,a,a?n:null))}),t}get firstChild(){return this.children[0]||null}get lastChild(){const t=this.children;return t[t.length-1]||null}closest(t,n={}){let r=null,a=this.parent;for(;a&&!r;){if(a.node.type.name===t)if(Object.keys(n).length>0){const o=a.node.attrs,i=Object.keys(n);for(let s=0;s{r&&a.length>0||(i.node.type.name===t&&o.every(s=>n[s]===i.node.attrs[s])&&a.push(i),!(r&&a.length>0)&&(a=a.concat(i.querySelectorAll(t,n,r))))}),a}setAttribute(t){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...t}),this.editor.view.dispatch(n)}}const ALe=`.ProseMirror { @@ -118,12 +118,12 @@ img.ProseMirror-separator { opacity: 0 }`;function ELe(e,t,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const a=document.createElement("style");return t&&a.setAttribute("nonce",t),a.setAttribute("data-tiptap-style",""),a.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(a),a}let MLe=class extends JPe{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:t})=>{throw t},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:t,slice:n,moved:r})=>this.options.onDrop(t,n,r)),this.on("paste",({event:t,slice:n})=>this.options.onPaste(t,n)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=ELe(ALe,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const n=hX(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const t=this.state.plugins;let n=t;if([].concat(e).forEach(a=>{const o=typeof a=="string"?`${a}$`:a.key;n=n.filter(i=>!i.key.startsWith(o))}),t.length===n.length)return;const r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;const n=[...this.options.enableCoreExtensions?[SLe,c2e.configure({blockSeparator:(t=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||t===void 0?void 0:t.blockSeparator}),bLe,_Le,CLe,kLe,wLe,TLe].filter(r=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[r.name]!==!1:!0):[],...this.options.extensions].filter(r=>["extension","node","mark"].includes(r?.type));this.extensionManager=new Sh(n,this)}createCommandManager(){this.commandManager=new Ox({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let t;try{t=PV(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(o){if(!(o instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(o.message))throw o;this.emit("contentError",{editor:this,error:o,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(i=>i.name!=="collaboration"),this.createExtensionManager()}}),t=PV(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=SX(t,this.options.autofocus);this.view=new KK(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(e=this.options.editorProps)===null||e===void 0?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:lm.create({doc:t,selection:n||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const a=this.view.dom;a.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(o=>{var i;return(i=this.capturedTransaction)===null||i===void 0?void 0:i.step(o)});return}const t=this.state.apply(e),n=!this.state.selection.eq(t.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),a=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),a&&this.emit("blur",{editor:this,event:a.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return MX(this.state,e)}isActive(e,t){const n=typeof e=="string"?e:null,r=typeof e=="string"?t:e;return lLe(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return MV(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=` -`,textSerializers:n={}}=e||{};return EX(this.state.doc,{blockSeparator:t,textSerializers:{...DV(this.schema),...n}})}get isEmpty(){return Zx(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,t){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelector(e,t))||null}$nodes(e,t){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new xh(t,this)}get $doc(){return this.$pos(0)}};function _h(e){return new Bx({find:e.find,handler:({state:t,range:n,match:r})=>{const a=on(e.getAttributes,void 0,r);if(a===!1||a===null)return null;const{tr:o}=t,i=r[r.length-1],s=r[0];if(i){const l=s.search(/\S/),u=n.from+s.indexOf(i),c=u+i.length;if(NV(n.from,n.to,t.doc).filter(h=>h.mark.type.excluded.find(p=>p===e.type&&p!==h.mark.type)).filter(h=>h.to>u).length)return null;cn.from&&o.delete(n.from+l,u);const d=n.from+l+i.length;o.addMark(n.from+l,d,e.type.create(a||{})),o.removeStoredMark(e.type)}}})}function LX(e){return new Bx({find:e.find,handler:({state:t,range:n,match:r})=>{const a=on(e.getAttributes,void 0,r)||{},{tr:o}=t,i=n.from;let s=n.to;const l=e.type.create(a);if(r[1]){const u=r[0].lastIndexOf(r[1]);let c=i+u;c>s?c=s:s=c+r[1].length;const d=r[0][r[0].length-1];o.insertText(d,i+r[0].length-1),o.replaceWith(c,s,l)}else if(r[0]){const u=e.type.isInline?i:i-1;o.insert(u,e.type.create(a)).delete(o.mapping.map(i),o.mapping.map(s))}o.scrollIntoView()}})}function FV(e){return new Bx({find:e.find,handler:({state:t,range:n,match:r})=>{const a=t.doc.resolve(n.from),o=on(e.getAttributes,void 0,r)||{};if(!a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,o)}})}function mm(e){return new Bx({find:e.find,handler:({state:t,range:n,match:r,chain:a})=>{const o=on(e.getAttributes,void 0,r)||{},i=t.tr.delete(n.from,n.to),s=i.doc.resolve(n.from).blockRange(),l=s&&WD(s,e.type,o);if(!l)return null;if(i.wrap(s,l),e.keepMarks&&e.editor){const{selection:c,storedMarks:d}=t,{splittableMarks:h}=e.editor.extensionManager,p=d||c.$to.parentOffset&&c.$from.marks();if(p){const v=p.filter(m=>h.includes(m.type.name));i.ensureMarks(v)}}if(e.keepAttributes){const c=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";a().updateAttributes(c,o).run()}const u=i.doc.resolve(n.from-1).nodeBefore;u&&u.type===e.type&&sd(i.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,u))&&i.join(n.from-1)}})}class Ar{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=on(mt(this,"addOptions",{name:this.name}))),this.storage=on(mt(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Ar(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>Hx(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new Ar(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=on(mt(n,"addOptions",{name:n.name})),n.storage=on(mt(n,"addStorage",{name:n.name,options:n.options})),n}}class ILe{constructor(t,n,r){this.isDragging=!1,this.component=t,this.editor=n.editor,this.options={stopEvent:null,ignoreMutation:null,...r},this.extension=n.extension,this.node=n.node,this.decorations=n.decorations,this.innerDecorations=n.innerDecorations,this.view=n.view,this.HTMLAttributes=n.HTMLAttributes,this.getPos=n.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var n,r,a,o,i,s,l;const{view:u}=this.editor,c=t.target,d=c.nodeType===3?(n=c.parentElement)===null||n===void 0?void 0:n.closest("[data-drag-handle]"):c.closest("[data-drag-handle]");if(!this.dom||!((r=this.contentDOM)===null||r===void 0)&&r.contains(c)||!d)return;let h=0,p=0;if(this.dom!==d){const b=this.dom.getBoundingClientRect(),w=d.getBoundingClientRect(),x=(a=t.offsetX)!==null&&a!==void 0?a:(o=t.nativeEvent)===null||o===void 0?void 0:o.offsetX,C=(i=t.offsetY)!==null&&i!==void 0?i:(s=t.nativeEvent)===null||s===void 0?void 0:s.offsetY;h=w.x-b.x+x,p=w.y-b.y+C}const v=this.dom.cloneNode(!0);(l=t.dataTransfer)===null||l===void 0||l.setDragImage(v,h,p);const m=this.getPos();if(typeof m!="number")return;const g=Ct.create(u.state.doc,m),y=u.state.tr.setSelection(g);u.dispatch(y)}stopEvent(t){var n;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:t});const r=t.target;if(!(this.dom.contains(r)&&!(!((n=this.contentDOM)===null||n===void 0)&&n.contains(r))))return!1;const a=t.type.startsWith("drag"),o=t.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(r.tagName)||r.isContentEditable)&&!o&&!a)return!0;const{isEditable:i}=this.editor,{isDragging:s}=this,l=!!this.node.type.spec.draggable,u=Ct.isSelectable(this.node),c=t.type==="copy",d=t.type==="paste",h=t.type==="cut",p=t.type==="mousedown";if(!l&&u&&a&&t.target===this.dom&&t.preventDefault(),l&&a&&!s&&t.target===this.dom)return t.preventDefault(),!1;if(l&&i&&!s&&p){const v=r.closest("[data-drag-handle]");v&&(this.dom===v||this.dom.contains(v))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(s||o||c||d||h||p&&u)}ignoreMutation(t){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:t}):this.node.isLeaf||this.node.isAtom?!0:t.type==="selection"||this.dom.contains(t.target)&&t.type==="childList"&&(jx()||xX())&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every(n=>n.isContentEditable)?!1:this.contentDOM===t.target&&t.type==="attributes"?!0:!this.contentDOM.contains(t.target)}updateAttributes(t){this.editor.commands.command(({tr:n})=>{const r=this.getPos();return typeof r!="number"?!1:(n.setNodeMarkup(r,void 0,{...this.node.attrs,...t}),!0)})}deleteNode(){const t=this.getPos();if(typeof t!="number")return;const n=t+this.node.nodeSize;this.editor.commands.deleteRange({from:t,to:n})}}function yd(e){return new a2e({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:a})=>{const o=on(e.getAttributes,void 0,r,a);if(o===!1||o===null)return null;const{tr:i}=t,s=r[r.length-1],l=r[0];let u=n.to;if(s){const c=l.search(/\S/),d=n.from+l.indexOf(s),h=d+s.length;if(NV(n.from,n.to,t.doc).filter(p=>p.mark.type.excluded.find(v=>v===e.type&&v!==p.mark.type)).filter(p=>p.to>d).length)return null;hn.from&&i.delete(n.from+c,d),u=n.from+c+s.length,i.addMark(n.from+c,u,e.type.create(o||{})),i.removeStoredMark(e.type)}}})}function DLe(e,t){const{selection:n}=e,{$from:r}=n;if(n instanceof Ct){const o=r.index();return r.parent.canReplaceWith(o,o+1,t)}let a=r.depth;for(;a>=0;){const o=r.index(a);if(r.node(a).contentMatchAt(o).matchType(t))return!0;a-=1}return!1}var li="top",ss="bottom",ls="right",ui="left",zV="auto",wb=[li,ss,ls,ui],gm="start",Sb="end",VLe="clippingParents",NX="viewport",xb="popper",PLe="reference",OX=wb.reduce(function(e,t){return e.concat([t+"-"+gm,t+"-"+Sb])},[]),RX=[].concat(wb,[zV]).reduce(function(e,t){return e.concat([t,t+"-"+gm,t+"-"+Sb])},[]),LLe="beforeRead",NLe="read",OLe="afterRead",RLe="beforeMain",BLe="main",FLe="afterMain",zLe="beforeWrite",HLe="write",WLe="afterWrite",GLe=[LLe,NLe,OLe,RLe,BLe,FLe,zLe,HLe,WLe];function Ul(e){return e?(e.nodeName||"").toLowerCase():null}function Li(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ch(e){var t=Li(e).Element;return e instanceof t||e instanceof Element}function us(e){var t=Li(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function HV(e){if(typeof ShadowRoot>"u")return!1;var t=Li(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ULe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!us(o)||!Ul(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function jLe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],o=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=i.reduce(function(l,u){return l[u]="",l},{});!us(a)||!Ul(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}const BX={name:"applyStyles",enabled:!0,phase:"write",fn:ULe,effect:jLe,requires:["computeStyles"]};function jl(e){return e.split("-")[0]}var Th=Math.max,Jx=Math.min,ym=Math.round;function WV(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function FX(){return!/^((?!chrome|android).)*safari/i.test(WV())}function bm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,o=1;t&&us(e)&&(a=e.offsetWidth>0&&ym(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ym(r.height)/e.offsetHeight||1);var i=Ch(e)?Li(e):window,s=i.visualViewport,l=!FX()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/a,c=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/a,h=r.height/o;return{width:d,height:h,top:c,right:u+d,bottom:c+h,left:u,x:u,y:c}}function GV(e){var t=bm(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zX(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&HV(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qu(e){return Li(e).getComputedStyle(e)}function YLe(e){return["table","td","th"].indexOf(Ul(e))>=0}function bd(e){return((Ch(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qx(e){return Ul(e)==="html"?e:e.assignedSlot||e.parentNode||(HV(e)?e.host:null)||bd(e)}function HX(e){return!us(e)||qu(e).position==="fixed"?null:e.offsetParent}function KLe(e){var t=/firefox/i.test(WV()),n=/Trident/i.test(WV());if(n&&us(e)){var r=qu(e);if(r.position==="fixed")return null}var a=Qx(e);for(HV(a)&&(a=a.host);us(a)&&["html","body"].indexOf(Ul(a))<0;){var o=qu(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function _b(e){for(var t=Li(e),n=HX(e);n&&YLe(n)&&qu(n).position==="static";)n=HX(n);return n&&(Ul(n)==="html"||Ul(n)==="body"&&qu(n).position==="static")?t:n||KLe(e)||t}function UV(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Cb(e,t,n){return Th(e,Jx(t,n))}function XLe(e,t,n){var r=Cb(e,t,n);return r>n?n:r}function WX(){return{top:0,right:0,bottom:0,left:0}}function GX(e){return Object.assign({},WX(),e)}function UX(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ZLe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,GX(typeof e!="number"?e:UX(e,wb))};function JLe(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,s=jl(n.placement),l=UV(s),u=[ui,ls].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!i)){var d=ZLe(a.padding,n),h=GV(o),p=l==="y"?li:ui,v=l==="y"?ss:ls,m=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],g=i[l]-n.rects.reference[l],y=_b(o),b=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,w=m/2-g/2,x=d[p],C=b-h[c]-d[v],_=b/2-h[c]/2+w,k=Cb(x,_,C),A=l;n.modifiersData[r]=(t={},t[A]=k,t.centerOffset=k-_,t)}}function QLe(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||zX(t.elements.popper,a)&&(t.elements.arrow=a))}const qLe={name:"arrow",enabled:!0,phase:"main",fn:JLe,effect:QLe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wm(e){return e.split("-")[1]}var $Le={top:"auto",right:"auto",bottom:"auto",left:"auto"};function eNe(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:ym(n*a)/a||0,y:ym(r*a)/a||0}}function jX(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,h=i.x,p=h===void 0?0:h,v=i.y,m=v===void 0?0:v,g=typeof c=="function"?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var y=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),w=ui,x=li,C=window;if(u){var _=_b(n),k="clientHeight",A="clientWidth";if(_===Li(n)&&(_=bd(n),qu(_).position!=="static"&&s==="absolute"&&(k="scrollHeight",A="scrollWidth")),_=_,a===li||(a===ui||a===ls)&&o===Sb){x=ss;var E=d&&_===C&&C.visualViewport?C.visualViewport.height:_[k];m-=E-r.height,m*=l?1:-1}if(a===ui||(a===li||a===ss)&&o===Sb){w=ls;var M=d&&_===C&&C.visualViewport?C.visualViewport.width:_[A];p-=M-r.width,p*=l?1:-1}}var D=Object.assign({position:s},u&&$Le),V=c===!0?eNe({x:p,y:m},Li(n)):{x:p,y:m};if(p=V.x,m=V.y,l){var P;return Object.assign({},D,(P={},P[x]=b?"0":"",P[w]=y?"0":"",P.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",P))}return Object.assign({},D,(t={},t[x]=b?m+"px":"",t[w]=y?p+"px":"",t.transform="",t))}function tNe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,i=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:jl(t.placement),variation:wm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,jX(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,jX(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const nNe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:tNe,data:{}};var qx={passive:!0};function rNe(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=a===void 0?!0:a,i=r.resize,s=i===void 0?!0:i,l=Li(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,qx)}),s&&l.addEventListener("resize",n.update,qx),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,qx)}),s&&l.removeEventListener("resize",n.update,qx)}}const aNe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rNe,data:{}};var oNe={left:"right",right:"left",bottom:"top",top:"bottom"};function $x(e){return e.replace(/left|right|bottom|top/g,function(t){return oNe[t]})}var iNe={start:"end",end:"start"};function YX(e){return e.replace(/start|end/g,function(t){return iNe[t]})}function jV(e){var t=Li(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function YV(e){return bm(bd(e)).left+jV(e).scrollLeft}function sNe(e,t){var n=Li(e),r=bd(e),a=n.visualViewport,o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;var u=FX();(u||!u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s+YV(e),y:l}}function lNe(e){var t,n=bd(e),r=jV(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Th(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Th(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+YV(e),l=-r.scrollTop;return qu(a||n).direction==="rtl"&&(s+=Th(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:l}}function KV(e){var t=qu(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function KX(e){return["html","body","#document"].indexOf(Ul(e))>=0?e.ownerDocument.body:us(e)&&KV(e)?e:KX(Qx(e))}function Tb(e,t){var n;t===void 0&&(t=[]);var r=KX(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),o=Li(r),i=a?[o].concat(o.visualViewport||[],KV(r)?r:[]):r,s=t.concat(i);return a?s:s.concat(Tb(Qx(i)))}function XV(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function uNe(e,t){var n=bm(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function XX(e,t,n){return t===NX?XV(sNe(e,n)):Ch(t)?uNe(t,n):XV(lNe(bd(e)))}function cNe(e){var t=Tb(Qx(e)),n=["absolute","fixed"].indexOf(qu(e).position)>=0,r=n&&us(e)?_b(e):e;return Ch(r)?t.filter(function(a){return Ch(a)&&zX(a,r)&&Ul(a)!=="body"}):[]}function dNe(e,t,n,r){var a=t==="clippingParents"?cNe(e):[].concat(t),o=[].concat(a,[n]),i=o[0],s=o.reduce(function(l,u){var c=XX(e,u,r);return l.top=Th(c.top,l.top),l.right=Jx(c.right,l.right),l.bottom=Jx(c.bottom,l.bottom),l.left=Th(c.left,l.left),l},XX(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ZX(e){var t=e.reference,n=e.element,r=e.placement,a=r?jl(r):null,o=r?wm(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(a){case li:l={x:i,y:t.y-n.height};break;case ss:l={x:i,y:t.y+t.height};break;case ls:l={x:t.x+t.width,y:s};break;case ui:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?UV(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case gm:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Sb:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function kb(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,o=n.strategy,i=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?VLe:s,u=n.rootBoundary,c=u===void 0?NX:u,d=n.elementContext,h=d===void 0?xb:d,p=n.altBoundary,v=p===void 0?!1:p,m=n.padding,g=m===void 0?0:m,y=GX(typeof g!="number"?g:UX(g,wb)),b=h===xb?PLe:xb,w=e.rects.popper,x=e.elements[v?b:h],C=dNe(Ch(x)?x:x.contextElement||bd(e.elements.popper),l,c,i),_=bm(e.elements.reference),k=ZX({reference:_,element:w,placement:a}),A=XV(Object.assign({},w,k)),E=h===xb?A:_,M={top:C.top-E.top+y.top,bottom:E.bottom-C.bottom+y.bottom,left:C.left-E.left+y.left,right:E.right-C.right+y.right},D=e.modifiersData.offset;if(h===xb&&D){var V=D[a];Object.keys(M).forEach(function(P){var L=[ls,ss].indexOf(P)>=0?1:-1,O=[li,ss].indexOf(P)>=0?"y":"x";M[P]+=V[O]*L})}return M}function fNe(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?RX:l,c=wm(r),d=c?s?OX:OX.filter(function(v){return wm(v)===c}):wb,h=d.filter(function(v){return u.indexOf(v)>=0});h.length===0&&(h=d);var p=h.reduce(function(v,m){return v[m]=kb(e,{placement:m,boundary:a,rootBoundary:o,padding:i})[jl(m)],v},{});return Object.keys(p).sort(function(v,m){return p[v]-p[m]})}function hNe(e){if(jl(e)===zV)return[];var t=$x(e);return[YX(e),t,YX(t)]}function pNe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,s=i===void 0?!0:i,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,v=p===void 0?!0:p,m=n.allowedAutoPlacements,g=t.options.placement,y=jl(g),b=y===g,w=l||(b||!v?[$x(g)]:hNe(g)),x=[g].concat(w).reduce(function(K,J){return K.concat(jl(J)===zV?fNe(t,{placement:J,boundary:c,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:m}):J)},[]),C=t.rects.reference,_=t.rects.popper,k=new Map,A=!0,E=x[0],M=0;M=0,O=L?"width":"height",N=kb(t,{placement:D,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),z=L?P?ls:ui:P?ss:li;C[O]>_[O]&&(z=$x(z));var B=$x(z),F=[];if(o&&F.push(N[V]<=0),s&&F.push(N[z]<=0,N[B]<=0),F.every(function(K){return K})){E=D,A=!1;break}k.set(D,F)}if(A)for(var G=v?3:1,H=function(K){var J=x.find(function(te){var q=k.get(te);if(q)return q.slice(0,K).every(function(ne){return ne})});if(J)return E=J,"break"},Y=G;Y>0;Y--){var U=H(Y);if(U==="break")break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}}const vNe={name:"flip",enabled:!0,phase:"main",fn:pNe,requiresIfExists:["offset"],data:{_skip:!1}};function JX(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function QX(e){return[li,ls,ss,ui].some(function(t){return e[t]>=0})}function mNe(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=kb(t,{elementContext:"reference"}),s=kb(t,{altBoundary:!0}),l=JX(i,r),u=JX(s,a,o),c=QX(l),d=QX(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const gNe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mNe};function yNe(e,t,n){var r=jl(e),a=[ui,li].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[ui,ls].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function bNe(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,i=RX.reduce(function(c,d){return c[d]=yNe(d,t.rects,o),c},{}),s=i[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}const wNe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bNe};function SNe(e){var t=e.state,n=e.name;t.modifiersData[n]=ZX({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const xNe={name:"popperOffsets",enabled:!0,phase:"read",fn:SNe,data:{}};function _Ne(e){return e==="x"?"y":"x"}function CNe(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,s=i===void 0?!1:i,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,p=h===void 0?!0:h,v=n.tetherOffset,m=v===void 0?0:v,g=kb(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=jl(t.placement),b=wm(t.placement),w=!b,x=UV(y),C=_Ne(x),_=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,E=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,M=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(_){if(o){var P,L=x==="y"?li:ui,O=x==="y"?ss:ls,N=x==="y"?"height":"width",z=_[x],B=z+g[L],F=z-g[O],G=p?-A[N]/2:0,H=b===gm?k[N]:A[N],Y=b===gm?-A[N]:-k[N],U=t.elements.arrow,K=p&&U?GV(U):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:WX(),te=J[L],q=J[O],ne=Cb(0,k[N],K[N]),se=w?k[N]/2-G-ne-te-M.mainAxis:H-ne-te-M.mainAxis,we=w?-k[N]/2+G+ne+q+M.mainAxis:Y+ne+q+M.mainAxis,ge=t.elements.arrow&&_b(t.elements.arrow),me=ge?x==="y"?ge.clientTop||0:ge.clientLeft||0:0,ce=(P=D?.[x])!=null?P:0,re=z+se-ce-me,xe=z+we-ce,fe=Cb(p?Jx(B,re):B,z,p?Th(F,xe):F);_[x]=fe,V[x]=fe-z}if(s){var ye,Ye=x==="x"?li:ui,ze=x==="x"?ss:ls,Q=_[C],$=C==="y"?"height":"width",Se=Q+g[Ye],Re=Q-g[ze],Mt=[li,ui].indexOf(y)!==-1,Ke=(ye=D?.[C])!=null?ye:0,Ce=Mt?Se:Q-k[$]-A[$]-Ke+M.altAxis,De=Mt?Q+k[$]+A[$]-Ke-M.altAxis:Re,It=p&&Mt?XLe(Ce,Q,De):Cb(p?Ce:Se,Q,p?De:Re);_[C]=It,V[C]=It-Q}t.modifiersData[r]=V}}const TNe={name:"preventOverflow",enabled:!0,phase:"main",fn:CNe,requiresIfExists:["offset"]};function kNe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ANe(e){return e===Li(e)||!us(e)?jV(e):kNe(e)}function ENe(e){var t=e.getBoundingClientRect(),n=ym(t.width)/e.offsetWidth||1,r=ym(t.height)/e.offsetHeight||1;return n!==1||r!==1}function MNe(e,t,n){n===void 0&&(n=!1);var r=us(t),a=us(t)&&ENe(t),o=bd(t),i=bm(e,a,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ul(t)!=="body"||KV(o))&&(s=ANe(t)),us(t)?(l=bm(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=YV(o))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function INe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&a(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),r}function DNe(e){var t=INe(e);return GLe.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function VNe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function PNe(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var qX={placement:"bottom",modifiers:[],strategy:"absolute"};function $X(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function aZ(e,t){return typeof e=="function"?e.apply(void 0,t):e}function oZ(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function FNe(e){return e.split(/\s+/).filter(Boolean)}function Sm(e){return[].concat(e)}function iZ(e,t){e.indexOf(t)===-1&&e.push(t)}function zNe(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function HNe(e){return e.split("-")[0]}function e_(e){return[].slice.call(e)}function sZ(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Ab(){return document.createElement("div")}function t_(e){return["Element","Fragment"].some(function(t){return JV(e,t)})}function WNe(e){return JV(e,"NodeList")}function GNe(e){return JV(e,"MouseEvent")}function UNe(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function jNe(e){return t_(e)?[e]:WNe(e)?e_(e):Array.isArray(e)?e:e_(document.querySelectorAll(e))}function QV(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function lZ(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function YNe(e){var t,n=Sm(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function KNe(e,t){var n=t.clientX,r=t.clientY;return e.every(function(a){var o=a.popperRect,i=a.popperState,s=a.props,l=s.interactiveBorder,u=HNe(i.placement),c=i.modifiersData.offset;if(!c)return!0;var d=u==="bottom"?c.top.y:0,h=u==="top"?c.bottom.y:0,p=u==="right"?c.left.x:0,v=u==="left"?c.right.x:0,m=o.top-r+d>l,g=r-o.bottom-h>l,y=o.left-n+p>l,b=n-o.right-v>l;return m||g||y||b})}function qV(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[r](a,n)})}function uZ(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Yl={isTouch:!1},cZ=0;function XNe(){Yl.isTouch||(Yl.isTouch=!0,window.performance&&document.addEventListener("mousemove",dZ))}function dZ(){var e=performance.now();e-cZ<20&&(Yl.isTouch=!1,document.removeEventListener("mousemove",dZ)),cZ=e}function ZNe(){var e=document.activeElement;if(UNe(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function JNe(){document.addEventListener("touchstart",XNe,kh),window.addEventListener("blur",ZNe)}var QNe=typeof window<"u"&&typeof document<"u",qNe=QNe?!!window.msCrypto:!1,$Ne={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},eOe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},$s=Object.assign({appendTo:rZ,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},$Ne,eOe),tOe=Object.keys($s),nOe=function(e){var t=Object.keys(e);t.forEach(function(n){$s[n]=e[n]})};function fZ(e){var t=e.plugins||[],n=t.reduce(function(r,a){var o=a.name,i=a.defaultValue;if(o){var s;r[o]=e[o]!==void 0?e[o]:(s=$s[o])!=null?s:i}return r},{});return Object.assign({},e,n)}function rOe(e,t){var n=t?Object.keys(fZ(Object.assign({},$s,{plugins:t}))):tOe,r=n.reduce(function(a,o){var i=(e.getAttribute("data-tippy-"+o)||"").trim();if(!i)return a;if(o==="content")a[o]=i;else try{a[o]=JSON.parse(i)}catch{a[o]=i}return a},{});return r}function hZ(e,t){var n=Object.assign({},t,{content:aZ(t.content,[e])},t.ignoreAttributes?{}:rOe(e,t.plugins));return n.aria=Object.assign({},$s.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var aOe=function(){return"innerHTML"};function $V(e,t){e[aOe()]=t}function pZ(e){var t=Ab();return e===!0?t.className=tZ:(t.className=nZ,t_(e)?t.appendChild(e):$V(t,e)),t}function vZ(e,t){t_(t.content)?($V(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?$V(e,t.content):e.textContent=t.content)}function eP(e){var t=e.firstElementChild,n=e_(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(eZ)}),arrow:n.find(function(r){return r.classList.contains(tZ)||r.classList.contains(nZ)}),backdrop:n.find(function(r){return r.classList.contains(BNe)})}}function mZ(e){var t=Ab(),n=Ab();n.className=RNe,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ab();r.className=eZ,r.setAttribute("data-state","hidden"),vZ(r,e.props),t.appendChild(n),n.appendChild(r),a(e.props,e.props);function a(o,i){var s=eP(t),l=s.box,u=s.content,c=s.arrow;i.theme?l.setAttribute("data-theme",i.theme):l.removeAttribute("data-theme"),typeof i.animation=="string"?l.setAttribute("data-animation",i.animation):l.removeAttribute("data-animation"),i.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof i.maxWidth=="number"?i.maxWidth+"px":i.maxWidth,i.role?l.setAttribute("role",i.role):l.removeAttribute("role"),(o.content!==i.content||o.allowHTML!==i.allowHTML)&&vZ(u,e.props),i.arrow?c?o.arrow!==i.arrow&&(l.removeChild(c),l.appendChild(pZ(i.arrow))):l.appendChild(pZ(i.arrow)):c&&l.removeChild(c)}return{popper:t,onUpdate:a}}mZ.$$tippy=!0;var oOe=1,n_=[],tP=[];function iOe(e,t){var n=hZ(e,Object.assign({},$s,fZ(sZ(t)))),r,a,o,i=!1,s=!1,l=!1,u=!1,c,d,h,p=[],v=oZ(re,n.interactiveDebounce),m,g=oOe++,y=null,b=zNe(n.plugins),w={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},x={id:g,reference:e,popper:Ab(),popperInstance:y,props:n,state:w,plugins:b,clearDelayTimeouts:Ce,setProps:De,setContent:It,show:de,hide:ve,hideWithInteractivity:Te,enable:Mt,disable:Ke,unmount:Ve,destroy:Qe};if(!n.render)return x;var C=n.render(x),_=C.popper,k=C.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+x.id,x.popper=_,e._tippy=x,_._tippy=x;var A=b.map(function(ue){return ue.fn(x)}),E=e.hasAttribute("aria-expanded");return ge(),G(),z(),B("onCreate",[x]),n.showOnCreate&&Se(),_.addEventListener("mouseenter",function(){x.props.interactive&&x.state.isVisible&&x.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){x.props.interactive&&x.props.trigger.indexOf("mouseenter")>=0&&L().addEventListener("mousemove",v)}),x;function M(){var ue=x.props.touch;return Array.isArray(ue)?ue:[ue,0]}function D(){return M()[0]==="hold"}function V(){var ue;return!!((ue=x.props.render)!=null&&ue.$$tippy)}function P(){return m||e}function L(){var ue=P().parentNode;return ue?YNe(ue):document}function O(){return eP(_)}function N(ue){return x.state.isMounted&&!x.state.isVisible||Yl.isTouch||c&&c.type==="focus"?0:ZV(x.props.delay,ue?0:1,$s.delay)}function z(ue){ue===void 0&&(ue=!1),_.style.pointerEvents=x.props.interactive&&!ue?"":"none",_.style.zIndex=""+x.props.zIndex}function B(ue,Ne,Ze){if(Ze===void 0&&(Ze=!0),A.forEach(function(qe){qe[ue]&&qe[ue].apply(qe,Ne)}),Ze){var _t;(_t=x.props)[ue].apply(_t,Ne)}}function F(){var ue=x.props.aria;if(ue.content){var Ne="aria-"+ue.content,Ze=_.id,_t=Sm(x.props.triggerTarget||e);_t.forEach(function(qe){var $e=qe.getAttribute(Ne);if(x.state.isVisible)qe.setAttribute(Ne,$e?$e+" "+Ze:Ze);else{var ut=$e&&$e.replace(Ze,"").trim();ut?qe.setAttribute(Ne,ut):qe.removeAttribute(Ne)}})}}function G(){if(!(E||!x.props.aria.expanded)){var ue=Sm(x.props.triggerTarget||e);ue.forEach(function(Ne){x.props.interactive?Ne.setAttribute("aria-expanded",x.state.isVisible&&Ne===P()?"true":"false"):Ne.removeAttribute("aria-expanded")})}}function H(){L().removeEventListener("mousemove",v),n_=n_.filter(function(ue){return ue!==v})}function Y(ue){if(!(Yl.isTouch&&(l||ue.type==="mousedown"))){var Ne=ue.composedPath&&ue.composedPath()[0]||ue.target;if(!(x.props.interactive&&uZ(_,Ne))){if(Sm(x.props.triggerTarget||e).some(function(Ze){return uZ(Ze,Ne)})){if(Yl.isTouch||x.state.isVisible&&x.props.trigger.indexOf("click")>=0)return}else B("onClickOutside",[x,ue]);x.props.hideOnClick===!0&&(x.clearDelayTimeouts(),x.hide(),s=!0,setTimeout(function(){s=!1}),x.state.isMounted||te())}}}function U(){l=!0}function K(){l=!1}function J(){var ue=L();ue.addEventListener("mousedown",Y,!0),ue.addEventListener("touchend",Y,kh),ue.addEventListener("touchstart",K,kh),ue.addEventListener("touchmove",U,kh)}function te(){var ue=L();ue.removeEventListener("mousedown",Y,!0),ue.removeEventListener("touchend",Y,kh),ue.removeEventListener("touchstart",K,kh),ue.removeEventListener("touchmove",U,kh)}function q(ue,Ne){se(ue,function(){!x.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&Ne()})}function ne(ue,Ne){se(ue,Ne)}function se(ue,Ne){var Ze=O().box;function _t(qe){qe.target===Ze&&(qV(Ze,"remove",_t),Ne())}if(ue===0)return Ne();qV(Ze,"remove",d),qV(Ze,"add",_t),d=_t}function we(ue,Ne,Ze){Ze===void 0&&(Ze=!1);var _t=Sm(x.props.triggerTarget||e);_t.forEach(function(qe){qe.addEventListener(ue,Ne,Ze),p.push({node:qe,eventType:ue,handler:Ne,options:Ze})})}function ge(){D()&&(we("touchstart",ce,{passive:!0}),we("touchend",xe,{passive:!0})),FNe(x.props.trigger).forEach(function(ue){if(ue!=="manual")switch(we(ue,ce),ue){case"mouseenter":we("mouseleave",xe);break;case"focus":we(qNe?"focusout":"blur",fe);break;case"focusin":we("focusout",fe);break}})}function me(){p.forEach(function(ue){var Ne=ue.node,Ze=ue.eventType,_t=ue.handler,qe=ue.options;Ne.removeEventListener(Ze,_t,qe)}),p=[]}function ce(ue){var Ne,Ze=!1;if(!(!x.state.isEnabled||ye(ue)||s)){var _t=((Ne=c)==null?void 0:Ne.type)==="focus";c=ue,m=ue.currentTarget,G(),!x.state.isVisible&&GNe(ue)&&n_.forEach(function(qe){return qe(ue)}),ue.type==="click"&&(x.props.trigger.indexOf("mouseenter")<0||i)&&x.props.hideOnClick!==!1&&x.state.isVisible?Ze=!0:Se(ue),ue.type==="click"&&(i=!Ze),Ze&&!_t&&Re(ue)}}function re(ue){var Ne=ue.target,Ze=P().contains(Ne)||_.contains(Ne);if(!(ue.type==="mousemove"&&Ze)){var _t=$().concat(_).map(function(qe){var $e,ut=qe._tippy,Yt=($e=ut.popperInstance)==null?void 0:$e.state;return Yt?{popperRect:qe.getBoundingClientRect(),popperState:Yt,props:n}:null}).filter(Boolean);KNe(_t,ue)&&(H(),Re(ue))}}function xe(ue){var Ne=ye(ue)||x.props.trigger.indexOf("click")>=0&&i;if(!Ne){if(x.props.interactive){x.hideWithInteractivity(ue);return}Re(ue)}}function fe(ue){x.props.trigger.indexOf("focusin")<0&&ue.target!==P()||x.props.interactive&&ue.relatedTarget&&_.contains(ue.relatedTarget)||Re(ue)}function ye(ue){return Yl.isTouch?D()!==ue.type.indexOf("touch")>=0:!1}function Ye(){ze();var ue=x.props,Ne=ue.popperOptions,Ze=ue.placement,_t=ue.offset,qe=ue.getReferenceClientRect,$e=ue.moveTransition,ut=V()?eP(_).arrow:null,Yt=qe?{getBoundingClientRect:qe,contextElement:qe.contextElement||P()}:e,Kt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Fs){var jn=Fs.state;if(V()){var Qo=O(),yf=Qo.box;["placement","reference-hidden","escaped"].forEach(function(Dc){Dc==="placement"?yf.setAttribute("data-placement",jn.placement):jn.attributes.popper["data-popper-"+Dc]?yf.setAttribute("data-"+Dc,""):yf.removeAttribute("data-"+Dc)}),jn.attributes.popper={}}}},sr=[{name:"offset",options:{offset:_t}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!$e}},Kt];V()&&ut&&sr.push({name:"arrow",options:{element:ut,padding:3}}),sr.push.apply(sr,Ne?.modifiers||[]),x.popperInstance=ONe(Yt,_,Object.assign({},Ne,{placement:Ze,onFirstUpdate:h,modifiers:sr}))}function ze(){x.popperInstance&&(x.popperInstance.destroy(),x.popperInstance=null)}function Q(){var ue=x.props.appendTo,Ne,Ze=P();x.props.interactive&&ue===rZ||ue==="parent"?Ne=Ze.parentNode:Ne=aZ(ue,[Ze]),Ne.contains(_)||Ne.appendChild(_),x.state.isMounted=!0,Ye()}function $(){return e_(_.querySelectorAll("[data-tippy-root]"))}function Se(ue){x.clearDelayTimeouts(),ue&&B("onTrigger",[x,ue]),J();var Ne=N(!0),Ze=M(),_t=Ze[0],qe=Ze[1];Yl.isTouch&&_t==="hold"&&qe&&(Ne=qe),Ne?r=setTimeout(function(){x.show()},Ne):x.show()}function Re(ue){if(x.clearDelayTimeouts(),B("onUntrigger",[x,ue]),!x.state.isVisible){te();return}if(!(x.props.trigger.indexOf("mouseenter")>=0&&x.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ue.type)>=0&&i)){var Ne=N(!1);Ne?a=setTimeout(function(){x.state.isVisible&&x.hide()},Ne):o=requestAnimationFrame(function(){x.hide()})}}function Mt(){x.state.isEnabled=!0}function Ke(){x.hide(),x.state.isEnabled=!1}function Ce(){clearTimeout(r),clearTimeout(a),cancelAnimationFrame(o)}function De(ue){if(!x.state.isDestroyed){B("onBeforeUpdate",[x,ue]),me();var Ne=x.props,Ze=hZ(e,Object.assign({},Ne,sZ(ue),{ignoreAttributes:!0}));x.props=Ze,ge(),Ne.interactiveDebounce!==Ze.interactiveDebounce&&(H(),v=oZ(re,Ze.interactiveDebounce)),Ne.triggerTarget&&!Ze.triggerTarget?Sm(Ne.triggerTarget).forEach(function(_t){_t.removeAttribute("aria-expanded")}):Ze.triggerTarget&&e.removeAttribute("aria-expanded"),G(),z(),k&&k(Ne,Ze),x.popperInstance&&(Ye(),$().forEach(function(_t){requestAnimationFrame(_t._tippy.popperInstance.forceUpdate)})),B("onAfterUpdate",[x,ue])}}function It(ue){x.setProps({content:ue})}function de(){var ue=x.state.isVisible,Ne=x.state.isDestroyed,Ze=!x.state.isEnabled,_t=Yl.isTouch&&!x.props.touch,qe=ZV(x.props.duration,0,$s.duration);if(!(ue||Ne||Ze||_t)&&!P().hasAttribute("disabled")&&(B("onShow",[x],!1),x.props.onShow(x)!==!1)){if(x.state.isVisible=!0,V()&&(_.style.visibility="visible"),z(),J(),x.state.isMounted||(_.style.transition="none"),V()){var $e=O(),ut=$e.box,Yt=$e.content;QV([ut,Yt],0)}h=function(){var Kt;if(!(!x.state.isVisible||u)){if(u=!0,_.offsetHeight,_.style.transition=x.props.moveTransition,V()&&x.props.animation){var sr=O(),Fs=sr.box,jn=sr.content;QV([Fs,jn],qe),lZ([Fs,jn],"visible")}F(),G(),iZ(tP,x),(Kt=x.popperInstance)==null||Kt.forceUpdate(),B("onMount",[x]),x.props.animation&&V()&&ne(qe,function(){x.state.isShown=!0,B("onShown",[x])})}},Q()}}function ve(){var ue=!x.state.isVisible,Ne=x.state.isDestroyed,Ze=!x.state.isEnabled,_t=ZV(x.props.duration,1,$s.duration);if(!(ue||Ne||Ze)&&(B("onHide",[x],!1),x.props.onHide(x)!==!1)){if(x.state.isVisible=!1,x.state.isShown=!1,u=!1,i=!1,V()&&(_.style.visibility="hidden"),H(),te(),z(!0),V()){var qe=O(),$e=qe.box,ut=qe.content;x.props.animation&&(QV([$e,ut],_t),lZ([$e,ut],"hidden"))}F(),G(),x.props.animation?V()&&q(_t,x.unmount):x.unmount()}}function Te(ue){L().addEventListener("mousemove",v),iZ(n_,v),v(ue)}function Ve(){x.state.isVisible&&x.hide(),x.state.isMounted&&(ze(),$().forEach(function(ue){ue._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_),tP=tP.filter(function(ue){return ue!==x}),x.state.isMounted=!1,B("onHidden",[x]))}function Qe(){!x.state.isDestroyed&&(x.clearDelayTimeouts(),x.unmount(),me(),delete e._tippy,x.state.isDestroyed=!0,B("onDestroy",[x]))}}function xm(e,t){t===void 0&&(t={});var n=$s.plugins.concat(t.plugins||[]);JNe();var r=Object.assign({},t,{plugins:n}),a=jNe(e),o=a.reduce(function(i,s){var l=s&&iOe(s,r);return l&&i.push(l),i},[]);return t_(e)?o[0]:o}xm.defaultProps=$s,xm.setDefaultProps=nOe,xm.currentInput=Yl,Object.assign({},BX,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),xm.setDefaultProps({render:mZ});class sOe{constructor({editor:t,element:n,view:r,tippyOptions:a={},updateDelay:o=250,shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:s,state:l,from:u,to:c})=>{const{doc:d,selection:h}=l,{empty:p}=h,v=!d.textBetween(u,c).length&&VV(l.selection),m=this.element.contains(document.activeElement);return!(!(s.hasFocus()||m)||p||v||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var l;if(this.preventHide){this.preventHide=!1;return}s?.relatedTarget&&!((l=this.element.parentNode)===null||l===void 0)&&l.contains(s.relatedTarget)||s?.relatedTarget!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.handleDebouncedUpdate=(s,l)=>{const u=!l?.selection.eq(s.state.selection),c=!l?.doc.eq(s.state.doc);!u&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(s,u,c,l)},this.updateDelay))},this.updateHandler=(s,l,u,c)=>{var d,h,p;const{state:v,composing:m}=s,{selection:g}=v;if(m||!l&&!u)return;this.createTooltip();const{ranges:y}=g,b=Math.min(...y.map(x=>x.$from.pos)),w=Math.max(...y.map(x=>x.$to.pos));if(!(!((d=this.shouldShow)===null||d===void 0)&&d.call(this,{editor:this.editor,element:this.element,view:s,state:v,oldState:c,from:b,to:w}))){this.hide();return}(h=this.tippy)===null||h===void 0||h.setProps({getReferenceClientRect:((p=this.tippyOptions)===null||p===void 0?void 0:p.getReferenceClientRect)||(()=>{if(DX(v.selection)){let x=s.nodeDOM(b);if(x){const C=x.dataset.nodeViewWrapper?x:x.querySelector("[data-node-view-wrapper]");if(C&&(x=C.firstChild),x)return x.getBoundingClientRect()}}return VX(s,b,w)})}),this.show()},this.editor=t,this.element=n,this.view=r,this.updateDelay=o,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=a,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options,n=!!t.parentElement;this.element.tabIndex=0,!(this.tippy||!n)&&(this.tippy=xm(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,n){const{state:r}=t,a=r.selection.from!==r.selection.to;if(this.updateDelay>0&&a){this.handleDebouncedUpdate(t,n);return}const o=!n?.selection.eq(t.state.selection),i=!n?.doc.eq(t.state.doc);this.updateHandler(t,o,i,n)}show(){var t;(t=this.tippy)===null||t===void 0||t.show()}hide(){var t;(t=this.tippy)===null||t===void 0||t.hide()}destroy(){var t,n;!((t=this.tippy)===null||t===void 0)&&t.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const gZ=e=>new pr({key:typeof e.pluginKey=="string"?new qr(e.pluginKey):e.pluginKey,view:t=>new sOe({view:t,...e})});Zn.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[gZ({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class lOe{getTextContent(t){return EX(t,{textSerializers:DV(this.editor.schema)})}constructor({editor:t,element:n,view:r,tippyOptions:a={},shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:i,state:s})=>{const{selection:l}=s,{$anchor:u,empty:c}=l,d=u.depth===1,h=u.parent.isTextblock&&!u.parent.type.spec.code&&!u.parent.textContent&&u.parent.childCount===0&&!this.getTextContent(u.parent);return!(!i.hasFocus()||!c||!d||!h||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:i})=>{var s;if(this.preventHide){this.preventHide=!1;return}i?.relatedTarget&&!((s=this.element.parentNode)===null||s===void 0)&&s.contains(i.relatedTarget)||i?.relatedTarget!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=i=>{this.blurHandler({event:i})},this.editor=t,this.element=n,this.view=r,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=a,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options,n=!!t.parentElement;this.element.tabIndex=0,!(this.tippy||!n)&&(this.tippy=xm(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,n){var r,a,o;const{state:i}=t,{doc:s,selection:l}=i,{from:u,to:c}=l;if(!(n&&n.doc.eq(s)&&n.selection.eq(l))){if(this.createTooltip(),!(!((r=this.shouldShow)===null||r===void 0)&&r.call(this,{editor:this.editor,view:t,state:i,oldState:n}))){this.hide();return}(a=this.tippy)===null||a===void 0||a.setProps({getReferenceClientRect:((o=this.tippyOptions)===null||o===void 0?void 0:o.getReferenceClientRect)||(()=>VX(t,u,c))}),this.show()}}show(){var t;(t=this.tippy)===null||t===void 0||t.show()}hide(){var t;(t=this.tippy)===null||t===void 0||t.hide()}destroy(){var t,n;!((t=this.tippy)===null||t===void 0)&&t.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const yZ=e=>new pr({key:typeof e.pluginKey=="string"?new qr(e.pluginKey):e.pluginKey,view:t=>new lOe({view:t,...e})});Zn.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[yZ({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});const uOe=f.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(e,{slots:t}){const n=f.ref(null);return f.onMounted(()=>{const{updateDelay:r,editor:a,pluginKey:o,shouldShow:i,tippyOptions:s}=e;a.registerPlugin(gZ({updateDelay:r,editor:a,element:n.value,pluginKey:o,shouldShow:i,tippyOptions:s}))}),f.onBeforeUnmount(()=>{const{pluginKey:r,editor:a}=e;a.unregisterPlugin(r)}),()=>{var r;return f.h("div",{ref:n},(r=t.default)===null||r===void 0?void 0:r.call(t))}}});function bZ(e){return f.customRef((t,n)=>({get(){return t(),e},set(r){e=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}class cOe extends MLe{constructor(t={}){return super(t),this.contentComponent=null,this.appContext=null,this.reactiveState=bZ(this.view.state),this.reactiveExtensionStorage=bZ(this.extensionStorage),this.on("beforeTransaction",({nextState:n})=>{this.reactiveState.value=n,this.reactiveExtensionStorage.value=this.extensionStorage}),f.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(t,n){const r=super.registerPlugin(t,n);return this.reactiveState&&(this.reactiveState.value=r),r}unregisterPlugin(t){const n=super.unregisterPlugin(t);return this.reactiveState&&n&&(this.reactiveState.value=n),n}}const dOe=f.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(e){const t=f.ref(),n=f.getCurrentInstance();return f.watchEffect(()=>{const r=e.editor;r&&r.options.element&&t.value&&f.nextTick(()=>{if(!t.value||!r.options.element.firstChild)return;const a=f.unref(t.value);t.value.append(...r.options.element.childNodes),r.contentComponent=n.ctx._,n&&(r.appContext={...n.appContext,provides:n.provides}),r.setOptions({element:a}),r.createNodeViews()})}),f.onBeforeUnmount(()=>{const r=e.editor;r&&(r.contentComponent=null,r.appContext=null)}),{rootEl:t}},render(){return f.h("div",{ref:e=>{this.rootEl=e}})}});f.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(e,{slots:t}){const n=f.ref(null);return f.onMounted(()=>{const{pluginKey:r,editor:a,tippyOptions:o,shouldShow:i}=e;a.registerPlugin(yZ({pluginKey:r,editor:a,element:n.value,tippyOptions:o,shouldShow:i}))}),f.onBeforeUnmount(()=>{const{pluginKey:r,editor:a}=e;a.unregisterPlugin(r)}),()=>{var r;return f.h("div",{ref:n},(r=t.default)===null||r===void 0?void 0:r.call(t))}}}),f.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return f.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}});const wZ=f.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var e,t;return f.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});class fOe{constructor(t,{props:n={},editor:r}){this.editor=r,this.component=f.markRaw(t),this.el=document.createElement("div"),this.props=f.reactive(n),this.renderedComponent=this.renderComponent()}get element(){return this.renderedComponent.el}get ref(){var t,n,r,a;return!((n=(t=this.renderedComponent.vNode)===null||t===void 0?void 0:t.component)===null||n===void 0)&&n.exposed?this.renderedComponent.vNode.component.exposed:(a=(r=this.renderedComponent.vNode)===null||r===void 0?void 0:r.component)===null||a===void 0?void 0:a.proxy}renderComponent(){let t=f.h(this.component,this.props);return this.editor.appContext&&(t.appContext=this.editor.appContext),typeof document<"u"&&this.el&&f.render(t,this.el),{vNode:t,destroy:()=>{this.el&&f.render(null,this.el),this.el=null,t=null},el:this.el?this.el.firstElementChild:null}}updateProps(t={}){Object.entries(t).forEach(([n,r])=>{this.props[n]=r}),this.renderComponent()}destroy(){this.renderedComponent.destroy()}}const SZ={editor:{type:Object,required:!0},node:{type:Object,required:!0},decorations:{type:Object,required:!0},selected:{type:Boolean,required:!0},extension:{type:Object,required:!0},getPos:{type:Function,required:!0},updateAttributes:{type:Function,required:!0},deleteNode:{type:Function,required:!0},view:{type:Object,required:!0},innerDecorations:{type:Object,required:!0},HTMLAttributes:{type:Object,required:!0}};class hOe extends ILe{mount(){const t={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(a={})=>this.updateAttributes(a),deleteNode:()=>this.deleteNode()},n=this.onDragStart.bind(this);this.decorationClasses=f.ref(this.getDecorationClasses());const r=f.defineComponent({extends:{...this.component},props:Object.keys(t),template:this.component.template,setup:a=>{var o,i;return f.provide("onDragStart",n),f.provide("decorationClasses",this.decorationClasses),(i=(o=this.component).setup)===null||i===void 0?void 0:i.call(o,a,{expose:()=>{}})},__scopeId:this.component.__scopeId,__cssModules:this.component.__cssModules,__name:this.component.__name,__file:this.component.__file});this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.renderer=new fOe(r,{editor:this.editor,props:t})}get dom(){if(!this.renderer.element||!this.renderer.element.hasAttribute("data-node-view-wrapper"))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.dom.querySelector("[data-node-view-content]")}handleSelectionUpdate(){const{from:t,to:n}=this.editor.state.selection,r=this.getPos();if(typeof r=="number")if(t<=r&&n>=r+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}}update(t,n,r){const a=o=>{this.decorationClasses.value=this.getDecorationClasses(),this.renderer.updateProps(o)};if(typeof this.options.update=="function"){const o=this.node,i=this.decorations,s=this.innerDecorations;return this.node=t,this.decorations=n,this.innerDecorations=r,this.options.update({oldNode:o,oldDecorations:i,newNode:t,newDecorations:n,oldInnerDecorations:s,innerDecorations:r,updateProps:()=>a({node:t,decorations:n,innerDecorations:r})})}return t.type!==this.node.type?!1:(t===this.node&&this.decorations===n&&this.innerDecorations===r||(this.node=t,this.decorations=n,this.innerDecorations=r,a({node:t,decorations:n,innerDecorations:r})),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element&&this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element&&this.renderer.element.classList.remove("ProseMirror-selectednode")}getDecorationClasses(){return this.decorations.map(t=>t.type.attrs.class).flat().join(" ")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate)}}function xZ(e,t){return n=>{if(!n.editor.contentComponent)return{};const r=typeof e=="function"&&"__vccOpts"in e?e.__vccOpts:e;return new hOe(r,n,t)}}const pOe=f.defineComponent({__name:"BubbleMenu",props:{editor:{},disabled:{type:Boolean,default:!1}},setup(e){const t=e,{t:n}=Uu(),r=f.reactive({maxWidth:"auto",zIndex:20,appendTo:"parent"}),a=f.computed(()=>{const l=t.editor.state.selection,u=s(),c=l.node?.type.name==="image",d=l.node?.type.name==="video",h=l instanceof At;if(u)return"link";if(c)return"image";if(d)return"video";if(h)return"text"}),o=f.computed(()=>{const{extensions:l=[]}=t.editor.extensionManager,u=l.find(d=>d.name==="base-kit");if(!u)return{};const{button:c}=u.options?.bubble??{};return c?c({editor:t.editor,extension:u,t:f.unref(n)}):{}}),i=f.computed(()=>a.value?f.unref(o)?.[a.value]??[]:[]);function s(){const{schema:l}=t.editor,u=l.marks.link;return u?t.editor.isActive(u.name):!1}return(l,u)=>{const c=la,d=Lu,h=Ll,p=Vi;return f.withDirectives((f.openBlock(),f.createBlock(f.unref(uOe),{editor:l.editor,"tippy-options":r},{default:f.withCtx(()=>[f.createVNode(p,{class:"vuetify-pro-tiptap-editor__menu-bubble"},{default:f.withCtx(()=>[f.createVNode(h,{class:"d-flex pa-0"},{default:f.withCtx(()=>[f.createVNode(d,{density:"compact",flat:"",height:"auto",class:"py-1 ps-1"},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.value,(v,m)=>(f.openBlock(),f.createElementBlock(f.Fragment,{key:m},[v.type==="divider"?(f.openBlock(),f.createBlock(c,{key:0,vertical:"",class:"mx-1 me-2"})):(f.openBlock(),f.createBlock(f.resolveDynamicComponent(v.component),f.mergeProps({key:1,ref_for:!0},v.componentProps,{editor:l.editor,disabled:l.disabled||v.componentProps?.disabled}),f.createSlots({_:2},[f.renderList(v.componentSlots,(g,y,b)=>({name:`${y}`,fn:f.withCtx(w=>[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(g),f.mergeProps({ref_for:!0},w?.props),null,16))])}))]),1040,["editor","disabled"]))],64))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,["editor","tippy-options"])),[[f.vShow,i.value.length>0]])}}}),vOe=f.defineComponent({__name:"TiptapToolbar",props:{editor:{},disabled:{type:Boolean,default:!1}},setup(e){const t=e,{t:n}=Uu(),r=f.computed(()=>{const a=[...t.editor.extensionManager.extensions].sort((i,s)=>{const l=i.options.sort??-1,u=s.options.sort??-1;return l-u});let o=[];for(const i of a){const{button:s,divider:l=!1,spacer:u=!1}=i.options;if(!s||!kIe(s))continue;const c=s({editor:t.editor,extension:i,t:f.unref(n)});if(Array.isArray(c)){const d=c.map((h,p)=>({button:h,divider:p===c.length-1?l:!1,spacer:p===0?u:!1}));o=[...o,...d];continue}o.push({button:c,divider:l,spacer:u})}return o});return(a,o)=>{const i=Nl,s=la,l=Lu;return f.openBlock(),f.createBlock(l,f.mergeProps(a.$attrs,{density:"compact",flat:"",height:"auto",class:"py-1 ps-1"}),{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.value,(u,c)=>(f.openBlock(),f.createElementBlock(f.Fragment,{key:c},[u.spacer?(f.openBlock(),f.createBlock(i,{key:0})):f.createCommentVNode("",!0),(f.openBlock(),f.createBlock(f.resolveDynamicComponent(u.button.component),f.mergeProps({ref_for:!0},u.button.componentProps,{editor:a.editor,disabled:a.disabled||u.button.componentProps?.disabled}),f.createSlots({_:2},[f.renderList(u.button.componentSlots,(d,h,p)=>({name:`${h}`,fn:f.withCtx(v=>[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(d),f.mergeProps({ref_for:!0},v?.props),null,16))])}))]),1040,["editor","disabled"])),u.divider?(f.openBlock(),f.createBlock(s,{key:1,vertical:"",class:"mx-1 me-2"})):f.createCommentVNode("",!0)],64))),128))]),_:1},16)}}}),mOe={class:"text-overline me-4"},gOe={class:"text-overline"},_Z=f.defineComponent({__name:"VuetifyTiptap",props:{modelValue:{default:""},markdownTheme:{type:[String,Boolean],default:void 0},output:{default:"html"},dark:{type:Boolean,default:void 0},dense:{type:Boolean,default:!1},outlined:{type:Boolean,default:!0},flat:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},label:{default:void 0},hideToolbar:{type:Boolean,default:!1},disableToolbar:{type:Boolean,default:!1},hideBubble:{type:Boolean,default:!1},removeDefaultWrapper:{type:Boolean,default:!1},maxWidth:{default:void 0},minHeight:{default:void 0},maxHeight:{default:void 0},extensions:{default:()=>[]},editorClass:{default:void 0},errorMessages:{default:()=>[]}},emits:["enter","change","update:modelValue","update:markdownTheme"],setup(e,{expose:t,emit:n}){const r=e,a=n,o=f.useAttrs(),i=Vv(),{state:s,isFullscreen:l}=FIe(),{markdownThemeStyle:u}=Lj(f.computed(()=>r.markdownTheme),w=>{a("update:markdownTheme",w)}),c=f.computed(()=>{const w=xIe(r.extensions,s.extensions,"name");return[...s.extensions.map((x,C)=>{const _=r.extensions.find(k=>k.name===x.name);return _?x.configure(_.options):x}),...w].map((x,C)=>x.configure({sort:C}))}),d=new cOe({content:r.modelValue,editorProps:{handleKeyDown:Qy(function(w,x){return x.key==="Enter"&&o.enter&&!x.shiftKey?(a("enter"),!0):!1},fD)},onUpdate:Qy(({editor:w})=>{const x=g(w,r.output);a("update:modelValue",x),a("change",{editor:w,output:x})},fD),extensions:f.unref(c),autofocus:!1,editable:!r.disabled,injectCSS:!0}),{t:h}=Uu(),p=f.computed(()=>tm(r.dark)?r.dark:tm(i.current.value.dark)?i.current.value.dark:!1),v=f.computed(()=>[{__dark:f.unref(p),...f.unref(u)},r.editorClass]),m=f.computed(()=>{const w=$y(r.maxWidth),x={maxWidth:w,width:w?"100%":void 0,margin:w?"0 auto":void 0,backgroundColor:f.unref(p)?"#1E1E1E":"#FFFFFF"};if(f.unref(l))return{height:"100%",overflowY:"auto",...x};const C=$y(r.minHeight),_=$y(r.maxHeight);return{minHeight:C,maxHeight:_,overflowY:"auto",...x}});function g(w,x){return r.removeDefaultWrapper?x==="html"?w.isEmpty?"":w.getHTML():x==="json"?w.isEmpty?{}:w.getJSON():x==="text"?w.isEmpty?"":w.getText():"":x==="html"?w.getHTML():x==="json"?w.getJSON():x==="text"?w.getText():""}const y=Qy(w=>{if(!d)return;const x=g(d,r.output);if(_Ie(x,w))return;const{from:C,to:_}=d.state.selection;d.commands.setContent(w,!1),d.commands.setTextSelection({from:C,to:_})},Vke),b=w=>d?.setEditable(!w);return f.watch(()=>r.modelValue,y),f.watch(()=>r.disabled,b),f.onUnmounted(()=>d?.destroy()),t({editor:d}),(w,x)=>{const C=aI,_=la,k=Nl,A=Lu,E=Vi,M=Ia,D=HI;return f.unref(d)?(f.openBlock(),f.createElementBlock("div",{key:0,class:f.normalizeClass(["vuetify-pro-tiptap",{dense:w.dense}])},[f.createVNode(D,{theme:p.value?"dark":"light"},{default:f.withCtx(()=>[w.hideBubble?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(pOe,{key:0,editor:f.unref(d),disabled:w.disableToolbar},null,8,["editor","disabled"])),f.createVNode(M,{class:"pt-0","hide-details":"auto","error-messages":w.errorMessages},{default:f.withCtx(()=>[f.createVNode(E,f.mergeProps({flat:w.flat,outlined:w.outlined,color:p.value?"grey-darken-4":"grey-lighten-4"},w.$attrs,{style:{borderColor:w.$attrs["error-messages"]?"#ff5252":void 0,width:"100%"},class:["vuetify-pro-tiptap-editor",{"vuetify-pro-tiptap-editor--fullscreen":f.unref(l)}]}),{default:f.withCtx(()=>[w.label&&!f.unref(l)?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createVNode(C,{class:f.normalizeClass(p.value?"bg-grey-darken-3":"bg-grey-lighten-3")},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(w.label),1)]),_:1},8,["class"]),f.createVNode(_)],64)):f.createCommentVNode("",!0),w.hideToolbar?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(vOe,{key:1,class:"vuetify-pro-tiptap-editor__toolbar",editor:f.unref(d),disabled:w.disableToolbar},null,8,["editor","disabled"])),f.renderSlot(w.$slots,"editor",f.normalizeProps(f.guardReactiveProps({editor:f.unref(d),props:{class:"vuetify-pro-tiptap-editor__content","data-testid":"value"}})),()=>[f.createVNode(f.unref(dOe),{class:f.normalizeClass(["vuetify-pro-tiptap-editor__content",v.value]),style:f.normalizeStyle(m.value),editor:f.unref(d),"data-testid":"value"},null,8,["class","style","editor"])]),f.renderSlot(w.$slots,"bottom",f.normalizeProps(f.guardReactiveProps({editor:f.unref(d)})),()=>[f.createVNode(A,{class:"px-4",density:"compact",flat:""},{default:f.withCtx(()=>[f.createVNode(k),f.unref(AIe)(f.unref(d),"characterCount")?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createElementVNode("span",mOe,f.toDisplayString(f.unref(d).storage.characterCount.words())+" "+f.toDisplayString(f.unref(h)("editor.words")),1),f.createElementVNode("span",gOe,f.toDisplayString(f.unref(d).storage.characterCount.characters())+" "+f.toDisplayString(f.unref(h)("editor.characters")),1)],64)):f.createCommentVNode("",!0)]),_:1})])]),_:3},16,["flat","outlined","color","style","class"])]),_:3},8,["error-messages"])]),_:3},8,["theme"])],2)):f.createCommentVNode("",!0)}}}),yOe={a:["href","title","target"],span:["style"],blockquote:["class","style"],p:["class","style"],hr:[],pre:[],code:[],strong:[],img:["src","alt","title","width","height","style","data-display"],label:["contenteditable"],input:["type","value","checked"],div:["class","style"],iframe:["src","allowfullscreen","frameborder","width","height"],em:[],s:[],mark:[],h1:["class","style"],h2:["class","style"],h3:["class","style"],h4:["class","style"],h5:["class","style"],h6:["class","style"],ul:["class","data-type"],li:["class","data-checked","itemtypename"],ol:[],u:[],table:["class","style"],colgroup:[],col:["style"],tbody:["class","style"],tr:["class","style"],th:["class","style","colspan","rowspan"],td:["class","style","colspan","rowspan"],br:[]},bOe=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),wOe=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var nP;const SOe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),xOe=(nP=String.fromCodePoint)!==null&&nP!==void 0?nP:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function _Oe(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=SOe.get(e))!==null&&t!==void 0?t:e}var Na;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Na||(Na={}));const COe=32;var wd;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(wd||(wd={}));function rP(e){return e>=Na.ZERO&&e<=Na.NINE}function TOe(e){return e>=Na.UPPER_A&&e<=Na.UPPER_F||e>=Na.LOWER_A&&e<=Na.LOWER_F}function kOe(e){return e>=Na.UPPER_A&&e<=Na.UPPER_Z||e>=Na.LOWER_A&&e<=Na.LOWER_Z||rP(e)}function AOe(e){return e===Na.EQUALS||kOe(e)}var Oa;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Oa||(Oa={}));var Sd;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Sd||(Sd={}));class EOe{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Oa.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Sd.Strict}startEntity(t){this.decodeMode=t,this.state=Oa.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Oa.EntityStart:return t.charCodeAt(n)===Na.NUM?(this.state=Oa.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Oa.NamedEntity,this.stateNamedEntity(t,n));case Oa.NumericStart:return this.stateNumericStart(t,n);case Oa.NumericDecimal:return this.stateNumericDecimal(t,n);case Oa.NumericHex:return this.stateNumericHex(t,n);case Oa.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|COe)===Na.LOWER_X?(this.state=Oa.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Oa.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const o=r-n;this.result=this.result*Math.pow(a,o)+Number.parseInt(t.substr(n,o),a),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,o!==0){if(i===Na.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Sd.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&wd.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~wd.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Oa.NamedEntity:return this.result!==0&&(this.decodeMode!==Sd.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Oa.NumericDecimal:return this.emitNumericEntity(0,2);case Oa.NumericHex:return this.emitNumericEntity(0,3);case Oa.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Oa.EntityStart:return 0}}}function CZ(e){let t="";const n=new EOe(e,r=>t+=xOe(r));return function(r,a){let o=0,i=0;for(;(i=r.indexOf("&",i))>=0;){t+=r.slice(o,i),n.startEntity(a);const l=n.write(r,i+1);if(l<0){o=i+n.end();break}o=i+l,i=l===0?o+1:o}const s=t+r.slice(o);return t="",s}}function MOe(e,t,n,r){const a=(t&wd.BRANCH_LENGTH)>>7,o=t&wd.JUMP_TABLE;if(a===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=a?-1:e[n+l]-1}let i=n,s=i+a-1;for(;i<=s;){const l=i+s>>>1,u=e[l];if(ur)s=l-1;else return e[l+a]}return-1}const IOe=CZ(bOe);CZ(wOe);function DOe(e,t=Sd.Legacy){return IOe(e,t)}var Er;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(Er||(Er={}));var cs;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(cs||(cs={}));const TZ=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,VOe=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,POe=new Map([[126,cs.Element],[94,cs.Start],[36,cs.End],[42,cs.Any],[33,cs.Not],[124,cs.Hyphen]]),LOe=new Set(["has","not","matches","is","where","host","host-context"]);function NOe(e){switch(e.type){case Er.Adjacent:case Er.Child:case Er.Descendant:case Er.Parent:case Er.Sibling:case Er.ColumnCombinator:return!0;default:return!1}}const OOe=new Set(["contains","icontains"]);function ROe(e,t,n){const r=parseInt(t,16)-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function Eb(e){return e.replace(VOe,ROe)}function aP(e){return e===39||e===34}function kZ(e){return e===32||e===9||e===10||e===12||e===13}function BOe(e){const t=[],n=AZ(t,`${e}`,0);if(n0&&n0&&NOe(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function u(h){if(r.length>0&&r[r.length-1].type===Er.Descendant){r[r.length-1].type=h;return}l(),r.push({type:h})}function c(h,p){r.push({type:Er.Attribute,name:h,action:p,value:a(1),namespace:null,ignoreCase:"quirks"})}function d(){if(r.length&&r[r.length-1].type===Er.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");e.push(r)}if(o(0),t.length===n)return n;e:for(;n/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\xA0/g," ").replace(/\xAD/g,"­")}var EZ=e=>DOe(e);function FOe(e,t,n,r){if(typeof t=="function")return t({props:{...n,children:r},attrs:n,children:r,h:e.h,context:e});{let a=!0,o;if(t?t.toLowerCase()==="fragment"?(o=e.document.createDocumentFragment(),a=!1):o=e.document.createElement(t):o=e.document.createElement("div"),n&&a){const i=o;for(let[s,l]of Object.entries(n)){s=s.toString();const u=s.toLowerCase();u==="classname"?i.className=l:u==="on"?Object.entries(l).forEach(([c,d])=>{i.setAttribute(`on${c}`,String(d))}):l!==!1&&l!=null&&(l===!0?i.setAttribute(s,s):i.setAttribute(s,l.toString()))}}if(r)for(const i of r){const s=Array.isArray(i)?[...i]:[i];for(const l of s)l&&l!==!1&&l!=null&&(typeof l!="object"?o.appendChild(e.document.createTextNode(l.toString())):o.appendChild(l))}return o}}function MZ(e,t,...n){return typeof e=="object"&&(e="fragment",n=e.children,t=e.attrs),Array.isArray(t)?(n=[t],t={}):t?t.attrs&&(t={...t.attrs,...t},delete t.attrs):t={},{tag:e,attrs:t,children:typeof n[0]=="string"?n:n.flat(Number.POSITIVE_INFINITY)}}function zOe(e){return e.h=function(t,n,...r){const{tag:a,attrs:o,children:i}=MZ(t,n,r);return FOe(e,a,o,i)},e.h}var IZ={};function HOe(e){let t=IZ[e];return t==null&&(t=BOe(e),IZ[e]=t),t}function WOe(e,t,{debug:n=!1}={}){for(const r of HOe(e)){const a=(o,i)=>{let s=!1;for(const l of i){const{type:u,name:c,action:d,value:h,_ignoreCase:p=!0,data:v}=l;if(u==="attribute")d==="equals"?s=o.getAttribute(c)===h:d==="start"?s=!!o.getAttribute(c)?.startsWith(h):d==="end"?s=!!o.getAttribute(c)?.endsWith(h):d==="element"?c==="class"?s=o.classList.contains(h):s=!!o.getAttribute(c)?.includes(h):d==="exists"?s=o.hasAttribute(c):d==="any"?s=!!o.getAttribute(c)?.includes(h):console.warn("Unknown CSS selector action",d);else if(u==="tag")s=o.tagName===c.toUpperCase();else if(u==="universal")s=!0;else if(u==="pseudo"){if(c==="not"){let m=!0;v.forEach(g=>{a(o,g)||(m=!1)}),s=!m}}else console.warn("Unknown CSS selector type",u,e,i);if(!s)break}return s};if(a(t,r))return!0}return!1}var GOe=Symbol.for("nodejs.util.inspect.custom"),DZ={fontWeight:"bold"},VZ={fontStyle:"italic"},PZ={backgroundColor:"rgb(255, 250, 165)"},LZ={textDecorations:"underline"},iP={textDecorations:"line-through"},UOe={b:DZ,strong:DZ,em:VZ,i:VZ,mark:PZ,u:LZ,a:LZ,s:iP,del:iP,ins:PZ,strike:iP};function NZ(e){return e.toLowerCase().replace(/[^a-z0-9]+(.)/gi,(t,n)=>n.toUpperCase())}var $u=class GE{constructor(){this.append=this.appendChild,this._parentNode=null,this._childNodes=[]}get nodeType(){return console.error("Subclasses should define nodeType!"),0}get nodeName(){return console.error("Subclasses should define nodeName!"),""}get nodeValue(){return null}cloneNode(t=!1){const n=new this.constructor;return t&&(n._childNodes=this._childNodes.map(r=>r.cloneNode(!0)),n._fixChildNodesParent()),n}_fixChildNodesParent(){this._childNodes.forEach(t=>t._parentNode=this)}insertBefore(t,n){if(t!==n){let r=n?this._childNodes.indexOf(n):0;r<0&&(r=0),this._childNodes.splice(r,0,t),this._fixChildNodesParent()}}appendChild(t){if(t!=null){if(t===this){console.warn("Cannot appendChild to self");return}if(t instanceof lP&&console.warn("No defined how to append a document to a node!",t),t instanceof sP)for(const n of[...t._childNodes])this.appendChild(n);else if(Array.isArray(t))for(const n of[...t])this.appendChild(n);else if(t instanceof GE)t.remove(),this._childNodes.push(t);else try{const n=typeof t=="string"?t:JSON.stringify(t,null,2);this._childNodes.push(new _m(n))}catch(n){console.error(`The data ${t} to be added to ${this.render()} is problematic: ${n}`)}this._fixChildNodesParent()}}removeChild(t){const n=this._childNodes.indexOf(t);n>=0&&(t._parentNode=null,this._childNodes.splice(n,1),this._fixChildNodesParent())}remove(){return this?.parentNode?.removeChild(this),this}replaceChildren(...t){this._childNodes=t.map(n=>typeof n=="string"?new _m(n):n.remove()),this._fixChildNodesParent()}replaceWith(...t){const n=this._parentNode;if(n){const r=this._indexInParent();r>=0&&(t=t.map(a=>typeof a=="string"?new _m(a):a.remove()),n._childNodes.splice(r,1,...t),this._parentNode=null,n._fixChildNodesParent())}}_indexInParent(){return this._parentNode?this._parentNode.childNodes.indexOf(this):-1}get parentNode(){return this._parentNode}get childNodes(){return this._childNodes||[]}get children(){return this._childNodes||[]}get firstChild(){return this._childNodes[0]}get lastChild(){return this._childNodes[this._childNodes.length-1]}get nextSibling(){const t=this._indexInParent();return t!=null&&this.parentNode.childNodes[t+1]||null}get previousSibling(){const t=this._indexInParent();return t>0&&this.parentNode.childNodes[t-1]||null}flatten(){const t=[];this instanceof el&&t.push(this);for(const n of this._childNodes)t.push(...n.flatten());return t}flattenNodes(){const t=[];t.push(this);for(const n of this._childNodes)t.push(...n.flattenNodes());return t}render(){return""}get textContent(){return this._childNodes.map(t=>t.textContent).join("")}set textContent(t){this._childNodes=[],t&&this.appendChild(new _m(t.toString()))}contains(t){return t===this?!0:this._childNodes.some(n=>n.contains(t))}get ownerDocument(){return this.nodeType===GE.DOCUMENT_NODE||this.nodeType===GE.DOCUMENT_FRAGMENT_NODE?this:this?._parentNode?.ownerDocument}toString(){return`${this.nodeName}`}[GOe](){return`${this.constructor.name} "${this.render()}"`}};$u.ELEMENT_NODE=1,$u.TEXT_NODE=3,$u.CDATA_SECTION_NODE=4,$u.PROCESSING_INSTRUCTION_NODE=7,$u.COMMENT_NODE=8,$u.DOCUMENT_NODE=9,$u.DOCUMENT_TYPE_NODE=10,$u.DOCUMENT_FRAGMENT_NODE=11;var xd=$u,_m=class extends xd{get nodeType(){return xd.TEXT_NODE}get nodeName(){return"#text"}get nodeValue(){return this._text||""}get textContent(){return this.nodeValue}constructor(e=""){super(),this._text=e}render(){const e=this.parentNode?.tagName;return e==="SCRIPT"||e==="STYLE"?this._text:oP(this._text)}cloneNode(e=!1){const t=super.cloneNode(e);return t._text=this._text,t}},OZ=class extends xd{getElementById(e){return this.flatten().find(t=>t._attributes.id===e)}getElementsByClassName(e){return this.flatten().filter(t=>t.classList.contains(e))}matches(e){return WOe(e,this)}querySelectorAll(e){return this.flatten().filter(t=>t.matches(e))}querySelector(e){return this.flatten().find(t=>t.matches(e))}parent(e){return this.matches(e)?this:this.parentNode==null?null:this.parentNode?.parent(e)}handle(e,t){let n=0;for(const r of this.querySelectorAll(e))t(r,n++)}},el=class extends OZ{get nodeType(){return xd.ELEMENT_NODE}get nodeName(){return this._nodeName}constructor(e="div",t={}){super(),this._originalTagName=e,this._nodeName=(e||"").toUpperCase(),this._attributes=t||{}}cloneNode(e=!1){const t=super.cloneNode(e);return t._originalTagName=this._originalTagName,t._nodeName=this._nodeName,t._attributes=Object.assign({},this._attributes),t}get attributes(){return Object.entries(this._attributes).map(([e,t])=>({name:e,value:t}))}get attributesObject(){return{...this._attributes}}_findAttributeName(e){const t=e.toLowerCase();return Object.keys(this._attributes).find(n=>t===n.toLowerCase())||null}setAttribute(e,t){this.removeAttribute(e),this._attributes[e]=t,this._styles=void 0,this._dataset=void 0}getAttribute(e){const t=this._findAttributeName(e),n=t?this._attributes[t]:null;return n==null?null:typeof n=="string"?n:""}removeAttribute(e){this._findAttributeName(String(e))&&delete this._attributes[e]}hasAttribute(e){const t=this._findAttributeName(e);return t?this._attributes[t]!=null:!1}get style(){if(this._styles==null){const e={};let t=0;const n=this.getAttribute("style");if(n){let r;const a=/\s*([\w-]+)\s*:\s*((url\(.*?\)[^;]*|[^;]+))/gi;for(;r=a.exec(n);){++t;const o=r[1],i=r[2].trim();e[o]=i,e[NZ(o)]=i}}this._styles={get length(){return t},getPropertyValue(r){return e[r]},...UOe[this.tagName.toLowerCase()],...e}}return this._styles}get dataset(){if(this._dataset==null){const e={};for(const[t,n]of Object.entries(this._attributes))t.startsWith("data-")&&(e[t.slice(5)]=n,e[NZ(t.slice(5))]=n);this._dataset=e}return this._dataset}get tagName(){return this._nodeName}setTagName(e){this._nodeName=e.toUpperCase()}get id(){return this._attributes.id||null}set id(e){e==null?delete this._attributes.id:this._attributes.id=e}get src(){return this._attributes.src}set src(e){e==null?delete this._attributes.src:this._attributes.src=e}getElementsByTagName(e){e=e.toUpperCase();const t=this.flatten();return e!=="*"?t.filter(n=>n.tagName===e):t}setInnerHTML(e){}get innerHTML(){return this._childNodes.map(e=>e.render(r_)).join("")}set innerHTML(e){this.setInnerHTML(e)}get outerHTML(){return this.render(a_)}get className(){return this._attributes.class||""}set className(e){Array.isArray(e)?e=e.filter(t=>!!t).join(" "):typeof e=="object"&&(e=Object.entries(e).filter(([t,n])=>!!n).map(([t,n])=>t).join(" ")),this._attributes.class=e}get classList(){const e=String(this.className??"").trim().split(/\s+/g)||[];return{contains(t){return e.includes(t)},add:t=>{e.includes(t)||(e.push(t),this.className=e)},remove:t=>{const n=e.indexOf(t);n>=0&&(e.splice(n,1),this.className=e)}}}render(e=a_){return e(this._originalTagName||this.tagName,this._attributes,this._childNodes.map(t=>t.render(e)).join(""))}},RZ=class Zge extends xd{get nodeName(){return super.nodeName}get nodeValue(){return super.nodeValue}get nodeType(){return Zge.DOCUMENT_TYPE_NODE}render(){return""}},sP=class Jge extends OZ{get nodeType(){return xd.DOCUMENT_FRAGMENT_NODE}get nodeName(){return"#document-fragment"}render(t=a_){return this._childNodes.map(n=>n.render(t)||[]).join("")}get innerHTML(){return this._childNodes.map(t=>t.render(r_)).join("")}createElement(t,n={}){return new el(t,n)}createDocumentFragment(){return new Jge}createTextNode(t){return new _m(t)}},lP=class extends sP{get nodeType(){return xd.DOCUMENT_NODE}get nodeName(){return"#document"}get documentElement(){return this.firstChild}render(e=a_){let t=super.render(e);return this.docType&&(t=this.docType.render()+t),t}},BZ=class extends lP{constructor(e=!1){if(super(),this.docType=new RZ,!e){const t=new el("html"),n=new el("body"),r=new el("head"),a=new el("title");t.appendChild(r),r.appendChild(a),t.appendChild(n),this.appendChild(t)}}get body(){let e=this.querySelector("body");if(!e){let t=this.querySelector("html");t||(t=new el("html"),this.appendChild(t)),e=new el("body"),t.appendChild(t)}return e}get title(){return this.querySelector("title")?.textContent||""}set title(e){const t=this.querySelector("title");t&&(t.textContent=e)}get head(){let e=this.querySelector("head");if(!e){let t=this.querySelector("html");t||(t=new el("html"),this.appendChild(t)),e=new el("head"),t.insertBefore(t)}return e}};function jOe(){return new lP}function YOe(){return new BZ}var FZ=jOe();zOe({document:FZ});var KOe={},XOe=KOe.hasOwnProperty;function zZ(e,t){return XOe.call(e,t)}var HZ=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","command"];function WZ(e,t,n={},r){const a=!(typeof r=="string"&&r===""||Array.isArray(r)&&(r.length===0||r.length===1&&r[0]==="")||r==null),o=[];if(t=t.replace(/__/g,":"),t!=="noop"&&t!==""){t!=="cdata"?o.push(`<${t}`):o.push("s[l]!=null).map(l=>{let u=s[l];return u=typeof u=="number"?`${u}px`:u,`${l.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${u}`}).join(";")}"`):s!==!1&&s!=null&&o.push(` ${i}="${oP(s.toString())}"`)}if(t!=="cdata"){if(e&&!a)return o.push(" />"),o.join("");o.push(">")}if(!e&&HZ.includes(t))return o.join("")}if(a){if(typeof r=="string")o.push(r);else if(r&&r.length>0){for(let i of r)if(i!=null&&i!==!1){Array.isArray(i)||(i=[i]);for(const s of i)s.startsWith("<")&&s.endsWith(">")||t==="script"||t==="style"?o.push(s):o.push(oP(s.toString()))}}}return n.html&&o.push(n.html),t!=="noop"&&t!==""&&(t!=="cdata"?o.push(``):o.push("]]>")),o.join("")}function r_(e,t,...n){const{tag:r,attrs:a,children:o}=MZ(e,t,n);return WZ(!1,r,a,o)}var a_=WZ.bind(null,!1);r_.firstLine="",r_.html=!0;var ZOe=/([^=\s]+)(\s*=\s*(("([^"]*)")|('([^']*)')|[^>\s]+))?/g,JOe=/^<\/([^>\s]+)[^>]*>/m,QOe=/^<([^>\s/]+)((\s+[^=>\s]+(\s*=\s*(("[^"]*")|('[^']*')|[^>\s]+))?)*)\s*(?:\/\s*)?>/m,qOe=/\s*\/\s*>\s*$/m,$Oe=class{constructor(e={}){this.attrRe=ZOe,this.endTagRe=JOe,this.startTagRe=QOe,this.defaults={ignoreWhitespaceText:!1},e.scanner&&(this.scanner=e.scanner),this.options=Object.assign({},this.defaults,e)}parse(e){let t=!1,n,r,a;for(;e.length;){if(e.substring(0,4)===""),n!==-1?(this.scanner.comment(e.substring(4,n)),e=e.substring(n+3),t=!1):t=!0;else if(e.substring(0,2)==="{const[a,o,i,s,l,u,c,d]=r;n[o]=d??u??s??!0}),n}};function eRe(e){if(typeof e!="string")throw console.error("parseHTML requires string, found",e),new Error("parseHTML requires string");const t=e.indexOf("/g,p=/"/g,v=/"/g,m=/&#([a-zA-Z0-9]*);?/gim,g=/:?/gim,y=/&newline;?/gim,b=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,w=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,x=/u\s*r\s*l\s*\(.*/gi;function C(N){return N.replace(p,""")}function _(N){return N.replace(v,'"')}function k(N){return N.replace(m,function(z,B){return B[0]==="x"||B[0]==="X"?String.fromCharCode(parseInt(B.substr(1),16)):String.fromCharCode(parseInt(B,10))})}function A(N){return N.replace(g,":").replace(y," ")}function E(N){for(var z="",B=0,F=N.length;B",F);if(G===-1)break;B=G+3}return z}function O(N){var z=N.split("");return z=z.filter(function(B){var F=B.charCodeAt(0);return F===127?!1:F<=31?F===10||F===13:!0}),z.join("")}return br.whiteList=r(),br.getDefaultWhiteList=r,br.onTag=o,br.onIgnoreTag=i,br.onTagAttr=s,br.onIgnoreTagAttr=l,br.safeAttrValue=c,br.escapeHtml=u,br.escapeQuote=C,br.unescapeQuote=_,br.escapeHtmlEntities=k,br.escapeDangerHtml5Entities=A,br.clearNonPrintableCharacter=E,br.friendlyAttrValue=M,br.escapeAttrValue=D,br.onIgnoreTagStripAll=V,br.StripTagBody=P,br.stripCommentTag=L,br.stripBlankChar=O,br.attributeWrapSign='"',br.cssFilter=a,br.getDefaultCSSWhiteList=t,br}var o_={},tJ;function nJ(){if(tJ)return o_;tJ=1;var e=pP();function t(d){var h=e.spaceIndex(d),p;return h===-1?p=d.slice(1,-1):p=d.slice(1,h+1),p=e.trim(p).toLowerCase(),p.slice(0,1)==="/"&&(p=p.slice(1)),p.slice(-1)==="/"&&(p=p.slice(0,-1)),p}function n(d){return d.slice(0,2)===""||b===w-1){v+=p(d.slice(m,g)),C=d.slice(g,b+1),x=t(C),v+=h(g,v.length,x,C,n(C)),m=b+1,g=!1;continue}if(_==='"'||_==="'")for(var k=1,A=d.charAt(b-k);A.trim()===""||A==="=";){if(A==="="){y=_;continue e}A=d.charAt(b-++k)}}else if(_===y){y=!1;continue}}return m0;h--){var p=d[h];if(p!==" ")return p==="="?h:-1}}function u(d){return d[0]==='"'&&d[d.length-1]==='"'||d[0]==="'"&&d[d.length-1]==="'"}function c(d){return u(d)?d.substr(1,d.length-2):d}return o_.parseTag=r,o_.parseAttr=o,o_}var vP,rJ;function iRe(){if(rJ)return vP;rJ=1;var e=hP().FilterCSS,t=eJ(),n=nJ(),r=n.parseTag,a=n.parseAttr,o=pP();function i(d){return d==null}function s(d){var h=o.spaceIndex(d);if(h===-1)return{html:"",closing:d[d.length-2]==="/"};d=o.trim(d.slice(h+1,-1));var p=d[d.length-1]==="/";return p&&(d=o.trim(d.slice(0,-1))),{html:d,closing:p}}function l(d){var h={};for(var p in d)h[p]=d[p];return h}function u(d){var h={};for(var p in d)Array.isArray(d[p])?h[p.toLowerCase()]=d[p].map(function(v){return v.toLowerCase()}):h[p.toLowerCase()]=d[p];return h}function c(d){d=l(d||{}),d.stripIgnoreTag&&(d.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),d.onIgnoreTag=t.onIgnoreTagStripAll),d.whiteList||d.allowList?d.whiteList=u(d.whiteList||d.allowList):d.whiteList=t.whiteList,this.attributeWrapSign=d.singleQuotedAttributeValue===!0?"'":t.attributeWrapSign,d.onTag=d.onTag||t.onTag,d.onTagAttr=d.onTagAttr||t.onTagAttr,d.onIgnoreTag=d.onIgnoreTag||t.onIgnoreTag,d.onIgnoreTagAttr=d.onIgnoreTagAttr||t.onIgnoreTagAttr,d.safeAttrValue=d.safeAttrValue||t.safeAttrValue,d.escapeHtml=d.escapeHtml||t.escapeHtml,this.options=d,d.css===!1?this.cssFilter=!1:(d.css=d.css||{},this.cssFilter=new e(d.css))}return c.prototype.process=function(d){if(d=d||"",d=d.toString(),!d)return"";var h=this,p=h.options,v=p.whiteList,m=p.onTag,g=p.onIgnoreTag,y=p.onTagAttr,b=p.onIgnoreTagAttr,w=p.safeAttrValue,x=p.escapeHtml,C=h.attributeWrapSign,_=h.cssFilter;p.stripBlankChar&&(d=t.stripBlankChar(d)),p.allowCommentTag||(d=t.stripCommentTag(d));var k=!1;p.stripIgnoreTagBody&&(k=t.StripTagBody(p.stripIgnoreTagBody,g),g=k.onIgnoreTag);var A=r(d,function(E,M,D,V,P){var L={sourcePosition:E,position:M,isClosing:P,isWhite:Object.prototype.hasOwnProperty.call(v,D)},O=m(D,V,L);if(!i(O))return O;if(L.isWhite){if(L.isClosing)return"";var N=s(V),z=v[D],B=a(N.html,function(F,G){var H=o.indexOf(z,F)!==-1,Y=y(D,F,G,H);return i(Y)?H?(G=w(D,F,G,_),G?F+"="+C+G+C:F):(Y=b(D,F,G,H),i(Y)?void 0:Y):Y});return V="<"+D,B&&(V+=" "+B),N.closing&&(V+=" /"),V+=">",V}else return O=g(D,V,L),i(O)?x(V):O},x);return k&&(A=k.remove(A)),A},vP=c,vP}var aJ;function sRe(){return aJ||(aJ=1,function(e,t){var n=eJ(),r=nJ(),a=iRe();function o(s,l){var u=new a(l);return u.process(s)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=a,function(){for(var s in n)t[s]=n[s];for(var l in r)t[l]=r[l]}(),typeof window<"u"&&(window.filterXSS=e.exports);function i(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}i()&&(self.filterXSS=e.exports)}(uP,uP.exports)),uP.exports}var lRe=sRe();const uRe=rRe(lRe),cRe=["innerHTML"],dRe=f.defineComponent({__name:"VuetifyViewer",props:{value:{default:""},dark:{type:Boolean,default:void 0},dense:{type:Boolean,default:!1},markdownTheme:{type:[String,Boolean],default:void 0},xss:{type:[Boolean,Array],default:!0},xssOptions:{default:()=>yOe},extensions:{default:()=>[]}},setup(e){const t=e,{state:n}=nx(),r=Vv(),{markdownThemeStyle:a}=Lj(f.computed(()=>t.markdownTheme)),o=f.computed(()=>[...n.extensions,...t.extensions]),i=f.computed(()=>tm(t.dark)?t.dark:tm(r.current.value.dark)?r.current.value.dark:!1),s=f.computed(()=>({__dark:f.unref(i),dense:t.dense,view:!0,...f.unref(a)})),l=f.computed(()=>qy(t.value)?t.value:nRe(t.value,f.unref(o))),u=f.computed(()=>{if(t.xss===!1)return f.unref(l);const c=f.unref(l).replace("https://youtu.be/","https://www.youtube.com/watch?v=").replace("watch?v=","embed/").replace("https://vimeo.com/","https://player.vimeo.com/video/"),d=t.xssOptions;return uRe(c,{whiteList:d,css:!1})});return(c,d)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["vuetify-pro-tiptap-editor__content",s.value]),style:{width:"100%"}},[f.renderSlot(c.$slots,"before"),f.createElementVNode("div",{class:"content",innerHTML:u.value},null,8,cRe),f.renderSlot(c.$slots,"after")],2))}}),fRe=Zn.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(t=>t!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const t=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)==="textSize"){const n=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(n)}return t.nodeSize},this.storage.words=e=>{const t=e?.node||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new pr({key:new qr("characterCount"),appendTransaction:(t,n,r)=>{if(e)return;const a=this.options.limit;if(a==null||a===0){e=!0;return}const o=this.storage.characters({node:r.doc});if(o>a){const i=o-a,s=0,l=i;console.warn(`[CharacterCount] Initial content exceeded limit of ${a} characters. Content was automatically trimmed.`);const u=r.tr.deleteRange(s,l);return e=!0,u}e=!0},filterTransaction:(t,n)=>{const r=this.options.limit;if(!t.docChanged||r===0||r===null||r===void 0)return!0;const a=this.storage.characters({node:n.doc}),o=this.storage.characters({node:t.doc});if(o<=r||a>r&&o>r&&o<=a)return!0;if(a>r&&o>r&&o>a||!t.getMeta("paste"))return!1;const i=t.selection.$head.pos,s=o-r,l=i-s,u=i;return t.deleteRange(l,u),!(this.storage.characters({node:t.doc})>r)}})]}}),hRe=Ar.create({name:"doc",topNode:!0,content:"block+"});function pRe(e={}){return new pr({view(t){return new vRe(t,e)}})}class vRe{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(a=>{let o=i=>{this[a](i)};return t.dom.addEventListener(a,o),{name:a,handler:o}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r,a=this.editorView.dom,o=a.getBoundingClientRect(),i=o.width/a.offsetWidth,s=o.height/a.offsetHeight;if(n){let d=t.nodeBefore,h=t.nodeAfter;if(d||h){let p=this.editorView.nodeDOM(this.cursorPos-(d?d.nodeSize:0));if(p){let v=p.getBoundingClientRect(),m=d?v.bottom:v.top;d&&h&&(m=(m+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let g=this.width/2*s;r={left:v.left,right:v.right,top:m-g,bottom:m+g}}}}if(!r){let d=this.editorView.coordsAtPos(this.cursorPos),h=this.width/2*i;r={left:d.left-h,right:d.left+h,top:d.top,bottom:d.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.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",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let u,c;if(!l||l==document.body&&getComputedStyle(l).position=="static")u=-pageXOffset,c=-pageYOffset;else{let d=l.getBoundingClientRect(),h=d.width/l.offsetWidth,p=d.height/l.offsetHeight;u=d.left-l.scrollLeft*h,c=d.top-l.scrollTop*p}this.element.style.left=(r.left-u)/i+"px",this.element.style.top=(r.top-c)/s+"px",this.element.style.width=(r.right-r.left)/i+"px",this.element.style.height=(r.bottom-r.top)/s+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),a=r&&r.type.spec.disableDropCursor,o=typeof a=="function"?a(this.editorView,n,t):a;if(n&&!o){let i=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=kY(this.editorView.state.doc,i,this.editorView.dragging.slice);s!=null&&(i=s)}this.setCursor(i),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}const mRe=Zn.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[pRe(this.options)]}}),gRe=Zn.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new pr({key:new qr("focus"),props:{decorations:({doc:e,selection:t})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:a}=t,o=[];if(!n||!r)return vr.create(e,[]);let i=0;this.options.mode==="deepest"&&e.descendants((l,u)=>{if(!l.isText){if(!(a>=u&&a<=u+l.nodeSize-1))return!1;i+=1}});let s=0;return e.descendants((l,u)=>{if(l.isText||!(a>=u&&a<=u+l.nodeSize-1))return!1;if(s+=1,this.options.mode==="deepest"&&i-s>0||this.options.mode==="shallowest"&&s>1)return this.options.mode==="deepest";o.push(Xa.node(u,u+l.nodeSize,{class:this.options.className}))}),vr.create(e,o)}}})]}});class Rr extends Rt{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return Rr.valid(r)?new Rr(r):Rt.near(r)}content(){return nt.empty}eq(t){return t instanceof Rr&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Rr(t.resolve(n.pos))}getBookmark(){return new mP(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!yRe(t)||!bRe(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let a=n.contentMatchAt(t.index()).defaultType;return a&&a.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&Rr.valid(t))return t;let a=t.pos,o=null;for(let i=t.depth;;i--){let s=t.node(i);if(n>0?t.indexAfter(i)0){o=s.child(n>0?t.indexAfter(i):t.index(i)-1);break}else if(i==0)return null;a+=n;let l=t.doc.resolve(a);if(Rr.valid(l))return l}for(;;){let i=n>0?o.firstChild:o.lastChild;if(!i){if(o.isAtom&&!o.isText&&!Ct.isSelectable(o)){t=t.doc.resolve(a+o.nodeSize*n),r=!1;continue e}break}o=i,a+=n;let s=t.doc.resolve(a);if(Rr.valid(s))return s}return null}}}Rr.prototype.visible=!1,Rr.findFrom=Rr.findGapCursorFrom,Rt.jsonID("gapcursor",Rr);class mP{constructor(t){this.pos=t}map(t){return new mP(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return Rr.valid(n)?new Rr(n):Rt.near(n)}}function yRe(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let a=r.child(n-1);;a=a.lastChild){if(a.childCount==0&&!a.inlineContent||a.isAtom||a.type.spec.isolating)return!0;if(a.inlineContent)return!1}}return!0}function bRe(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let a=r.child(n);;a=a.firstChild){if(a.childCount==0&&!a.inlineContent||a.isAtom||a.type.spec.isolating)return!0;if(a.inlineContent)return!1}}return!0}function wRe(){return new pr({props:{decorations:CRe,createSelectionBetween(e,t,n){return t.pos==n.pos&&Rr.valid(n)?new Rr(n):null},handleClick:xRe,handleKeyDown:SRe,handleDOMEvents:{beforeinput:_Re}}})}const SRe=xV({ArrowLeft:i_("horiz",-1),ArrowRight:i_("horiz",1),ArrowUp:i_("vert",-1),ArrowDown:i_("vert",1)});function i_(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,a,o){let i=r.selection,s=t>0?i.$to:i.$from,l=i.empty;if(i instanceof At){if(!o.endOfTextblock(n)||s.depth==0)return!1;l=!1,s=r.doc.resolve(t>0?s.after():s.before())}let u=Rr.findGapCursorFrom(s,t,l);return u?(a&&a(r.tr.setSelection(new Rr(u))),!0):!1}}function xRe(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!Rr.valid(r))return!1;let a=e.posAtCoords({left:n.clientX,top:n.clientY});return a&&a.inside>-1&&Ct.isSelectable(e.state.doc.nodeAt(a.inside))?!1:(e.dispatch(e.state.tr.setSelection(new Rr(r))),!0)}function _Re(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof Rr))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let a=Oe.empty;for(let i=r.length-1;i>=0;i--)a=Oe.from(r[i].createAndFill(null,a));let o=e.state.tr.replace(n.pos,n.pos,new nt(a,0,0));return o.setSelection(At.near(o.doc.resolve(n.pos+1))),e.dispatch(o),!1}function CRe(e){if(!(e.selection instanceof Rr))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",vr.create(e.doc,[Xa.widget(e.selection.head,t,{key:"gapcursor"})])}const TRe=Zn.create({name:"gapCursor",addProseMirrorPlugins(){return[wRe()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=on(mt(e,"allowGapCursor",n)))!==null&&t!==void 0?t:null}}}),kRe=Ar.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",Fn(this.options.HTMLAttributes,e)]},renderText(){return` -`},addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:a,storedMarks:o}=n;if(a.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:s}=r.extensionManager,l=o||a.$to.parentOffset&&a.$from.marks();return t().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&l&&i){const d=l.filter(h=>s.includes(h.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),ARe=Ar.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",Fn(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),ERe=Zn.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new pr({key:new qr("placeholder"),props:{decorations:({doc:e,selection:t})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=t,a=[];if(!n)return null;const o=this.editor.isEmpty;return e.descendants((i,s)=>{const l=r>=s&&r<=s+i.nodeSize,u=!i.isLeaf&&Zx(i);if((l||!this.options.showOnlyCurrent)&&u){const c=[this.options.emptyNodeClass];o&&c.push(this.options.emptyEditorClass);const d=Xa.node(s,s+i.nodeSize,{class:c.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:i,pos:s,hasAnchor:l}):this.options.placeholder});a.push(d)}return this.options.includeChildren}),vr.create(e,a)}}})]}}),MRe=Ar.create({name:"text",group:"inline"}),IRe=e=>{if(!e.children.length)return;const t=e.querySelectorAll("span");t&&t.forEach(n=>{var r,a;const o=n.getAttribute("style"),i=(a=(r=n.parentElement)===null||r===void 0?void 0:r.closest("span"))===null||a===void 0?void 0:a.getAttribute("style");n.setAttribute("style",`${i};${o}`)})},DRe=si.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!1}},parseHTML(){return[{tag:"span",getAttrs:e=>e.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&IRe(e),{}):!1}]},renderHTML({HTMLAttributes:e}){return["span",Fn(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({tr:e})=>{const{selection:t}=e;return e.doc.nodesBetween(t.from,t.to,(n,r)=>{if(n.isTextblock)return!0;n.marks.filter(a=>a.type===this.type).some(a=>Object.values(a.attrs).some(o=>!!o))||e.removeMark(r,r+n.nodeSize,this.type)}),!0}}}});var VRe="M19,12H17V15H14V17H19V12M7,9H10V7H5V12H7V9M21,3H3A2,2 0 0,0 1,5V19A2,2 0 0,0 3,21H21A2,2 0 0,0 23,19V5A2,2 0 0,0 21,3M21,19H3V5H21V19Z",PRe="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",LRe="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",NRe="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",ORe="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3M11 8H9V10C9 11.1 8.1 12 7 12C8.1 12 9 12.9 9 14V16H11V18H9C7.9 18 7 17.1 7 16V15C7 13.9 6.1 13 5 13V11C6.1 11 7 10.1 7 9V8C7 6.9 7.9 6 9 6H11V8M19 13C17.9 13 17 13.9 17 15V16C17 17.1 16.1 18 15 18H13V16H15V14C15 12.9 15.9 12 17 12C15.9 12 15 11.1 15 10V8H13V6H15C16.1 6 17 6.9 17 8V9C17 10.1 17.9 11 19 11V13Z",RRe="M14.6,16.6L19.2,12L14.6,7.4L16,6L22,12L16,18L14.6,16.6M9.4,16.6L4.8,12L9.4,7.4L8,6L2,12L8,18L9.4,16.6Z",BRe="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",FRe="M13.09 20H6L12 14L13.88 15.88C14.5 14.9 15.36 14.1 16.4 13.6L18 12V13.09C18.33 13.04 18.66 13 19 13C19.34 13 19.67 13.04 20 13.09V8L14 2H6C4.89 2 4 2.89 4 4V20C4 21.1 4.89 22 6 22H13.81C13.46 21.39 13.21 20.72 13.09 20M13 3.5L18.5 9H13V3.5M8 9C9.11 9 10 9.9 10 11S9.11 13 8 13 6 12.11 6 11 6.9 9 8 9M20 15V18H23V20H20V23H18V20H15V18H18V15H20Z",oJ="M3,3H21V5H3V3M7,7H17V9H7V7M3,11H21V13H3V11M7,15H17V17H7V15M3,19H21V21H3V19Z",zRe="M3,3H21V5H3V3M3,7H21V9H3V7M3,11H21V13H3V11M3,15H21V17H3V15M3,19H21V21H3V19Z",HRe="M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z",WRe="M3,3H21V5H3V3M9,7H21V9H9V7M3,11H21V13H3V11M9,15H21V17H9V15M3,19H21V21H3V19Z",GRe="M13.5,15.5H10V12.5H13.5A1.5,1.5 0 0,1 15,14A1.5,1.5 0 0,1 13.5,15.5M10,6.5H13A1.5,1.5 0 0,1 14.5,8A1.5,1.5 0 0,1 13,9.5H10M15.6,10.79C16.57,10.11 17.25,9 17.25,8C17.25,5.74 15.5,4 13.25,4H7V18H14.04C16.14,18 17.75,16.3 17.75,14.21C17.75,12.69 16.89,11.39 15.6,10.79Z",URe="M6,5V5.18L8.82,8H11.22L10.5,9.68L12.6,11.78L14.21,8H20V5H6M3.27,5L2,6.27L8.97,13.24L6.5,19H9.5L11.07,15.34L16.73,21L18,19.73L3.55,5.27L3.27,5Z",jRe="M4,17L6.75,14.25L6.72,14.23C6.14,13.64 6.14,12.69 6.72,12.11L11.46,7.37L15.7,11.61L10.96,16.35C10.39,16.93 9.46,16.93 8.87,16.37L8.24,17H4M15.91,2.91C16.5,2.33 17.45,2.33 18.03,2.91L20.16,5.03C20.74,5.62 20.74,6.57 20.16,7.16L16.86,10.45L12.62,6.21L15.91,2.91Z",YRe="M3,7H9V13H3V7M3,3H21V5H3V3M21,7V9H11V7H21M21,11V13H11V11H21M3,15H17V17H3V15M3,19H21V21H3V19Z",KRe="M3,7H9V13H3V7M3,3H21V5H3V3M21,11V13H11V11H21M3,15H17V17H3V15M3,19H21V21H3V19Z",XRe="M15,7H21V13H15V7M3,3H21V5H3V3M13,7V9H3V7H13M9,11V13H3V11H9M3,15H17V17H3V15M3,19H21V21H3V19Z",ZRe="M17,8H20V20H21V21H17V20H18V17H14L12.5,20H14V21H10V20H11L17,8M18,9L14.5,16H18V9M5,3H10C11.11,3 12,3.89 12,5V16H9V11H6V16H3V5C3,3.89 3.89,3 5,3M6,5V9H9V5H6Z",JRe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M14,18V16H16V6.31L13.5,7.75V5.44L16,4H18V16H20V18H14Z",QRe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M21,18H15A2,2 0 0,1 13,16C13,15.47 13.2,15 13.54,14.64L18.41,9.41C18.78,9.05 19,8.55 19,8A2,2 0 0,0 17,6A2,2 0 0,0 15,8H13A4,4 0 0,1 17,4A4,4 0 0,1 21,8C21,9.1 20.55,10.1 19.83,10.83L15,16H21V18Z",qRe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V15H15V16H19V12H15V10H19V6H15V7H13V6A2,2 0 0,1 15,4Z",$Re="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M18,18V13H13V11L18,4H20V11H21V13H20V18H18M18,11V7.42L15.45,11H18Z",eBe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H20V6H15V10H17A4,4 0 0,1 21,14A4,4 0 0,1 17,18H15A2,2 0 0,1 13,16V15H15V16H17A2,2 0 0,0 19,14A2,2 0 0,0 17,12H15A2,2 0 0,1 13,10V6A2,2 0 0,1 15,4Z",tBe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V7H19V6H15V10H19A2,2 0 0,1 21,12V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V6A2,2 0 0,1 15,4M15,12V16H19V12H15Z",nBe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M13,8H15.31L15.63,5H17.63L17.31,8H19.31L19.63,5H21.63L21.31,8H23V10H21.1L20.9,12H23V14H20.69L20.37,17H18.37L18.69,14H16.69L16.37,17H14.37L14.69,14H13V12H14.9L15.1,10H13V8M17.1,10L16.9,12H18.9L19.1,10H17.1Z",rBe="M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M3,21H21V19H3M3,12L7,16V8M11,17H21V15H11V17Z",aBe="M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M11,17H21V15H11M3,8V16L7,12M3,21H21V19H3V21Z",oBe="M10,4V7H12.21L8.79,15H6V18H14V15H11.79L15.21,7H18V4H10Z",iBe="M7,5H21V7H7V5M7,13V11H21V13H7M4,4.5A1.5,1.5 0 0,1 5.5,6A1.5,1.5 0 0,1 4,7.5A1.5,1.5 0 0,1 2.5,6A1.5,1.5 0 0,1 4,4.5M4,10.5A1.5,1.5 0 0,1 5.5,12A1.5,1.5 0 0,1 4,13.5A1.5,1.5 0 0,1 2.5,12A1.5,1.5 0 0,1 4,10.5M7,19V17H21V19H7M4,16.5A1.5,1.5 0 0,1 5.5,18A1.5,1.5 0 0,1 4,19.5A1.5,1.5 0 0,1 2.5,18A1.5,1.5 0 0,1 4,16.5Z",sBe="M21,19V17H8V19H21M21,13V11H8V13H21M8,7H21V5H8V7M4,5V7H6V5H4M3,5A1,1 0 0,1 4,4H6A1,1 0 0,1 7,5V7A1,1 0 0,1 6,8H4A1,1 0 0,1 3,7V5M4,11V13H6V11H4M3,11A1,1 0 0,1 4,10H6A1,1 0 0,1 7,11V13A1,1 0 0,1 6,14H4A1,1 0 0,1 3,13V11M4,17V19H6V17H4M3,17A1,1 0 0,1 4,16H6A1,1 0 0,1 7,17V19A1,1 0 0,1 6,20H4A1,1 0 0,1 3,19V17Z",lBe="M7,13V11H21V13H7M7,19V17H21V19H7M7,7V5H21V7H7M3,8V5H2V4H4V8H3M2,17V16H5V20H2V19H4V18.5H3V17.5H4V17H2M4.25,10A0.75,0.75 0 0,1 5,10.75C5,10.95 4.92,11.14 4.79,11.27L3.12,13H5V14H2V13.08L4,11H2V10H4.25Z",uBe="M13,4A4,4 0 0,1 17,8A4,4 0 0,1 13,12H11V18H9V4H13M13,10A2,2 0 0,0 15,8A2,2 0 0,0 13,6H11V10H13Z",cBe="M10,7L8,11H11V17H5V11L7,7H10M18,7L16,11H19V17H13V11L15,7H18Z",dBe="M2 4V7H7V19H10V7H15V4H2M21 9H12V12H15V19H18V12H21V9Z",fBe="M3,14H21V12H3M5,4V7H10V10H14V7H19V4M10,19H14V16H10V19Z",hBe="M16,7.41L11.41,12L16,16.59L14.59,18L10,13.41L5.41,18L4,16.59L8.59,12L4,7.41L5.41,6L10,10.59L14.59,6L16,7.41M21.85,21.03H16.97V20.03L17.86,19.23C18.62,18.58 19.18,18.04 19.56,17.6C19.93,17.16 20.12,16.75 20.13,16.36C20.14,16.08 20.05,15.85 19.86,15.66C19.68,15.5 19.39,15.38 19,15.38C18.69,15.38 18.42,15.44 18.16,15.56L17.5,15.94L17.05,14.77C17.32,14.56 17.64,14.38 18.03,14.24C18.42,14.1 18.85,14 19.32,14C20.1,14.04 20.7,14.25 21.1,14.66C21.5,15.07 21.72,15.59 21.72,16.23C21.71,16.79 21.53,17.31 21.18,17.78C20.84,18.25 20.42,18.7 19.91,19.14L19.27,19.66V19.68H21.85V21.03Z",pBe="M16,7.41L11.41,12L16,16.59L14.59,18L10,13.41L5.41,18L4,16.59L8.59,12L4,7.41L5.41,6L10,10.59L14.59,6L16,7.41M21.85,9H16.97V8L17.86,7.18C18.62,6.54 19.18,6 19.56,5.55C19.93,5.11 20.12,4.7 20.13,4.32C20.14,4.04 20.05,3.8 19.86,3.62C19.68,3.43 19.39,3.34 19,3.33C18.69,3.34 18.42,3.4 18.16,3.5L17.5,3.89L17.05,2.72C17.32,2.5 17.64,2.33 18.03,2.19C18.42,2.05 18.85,2 19.32,2C20.1,2 20.7,2.2 21.1,2.61C21.5,3 21.72,3.54 21.72,4.18C21.71,4.74 21.53,5.26 21.18,5.73C20.84,6.21 20.42,6.66 19.91,7.09L19.27,7.61V7.63H21.85V9Z",vBe="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z",mBe="M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z",gBe="M14,14H19V16H16V19H14V14M5,14H10V19H8V16H5V14M8,5H10V10H5V8H8V5M19,8V10H14V5H16V8H19Z",yBe="M18 15V18H15V20H18V23H20V20H23V18H20V15H18M13.3 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3H19C20.1 3 21 3.9 21 5V13.3C20.4 13.1 19.7 13 19 13C17.9 13 16.8 13.3 15.9 13.9L14.5 12L11 16.5L8.5 13.5L5 18H13.1C13 18.3 13 18.7 13 19C13 19.7 13.1 20.4 13.3 21Z",bBe="M12,17.56L16.07,16.43L16.62,10.33H9.38L9.2,8.3H16.8L17,6.31H7L7.56,12.32H14.45L14.22,14.9L12,15.5L9.78,14.9L9.64,13.24H7.64L7.93,16.43L12,17.56M4.07,3H19.93L18.5,19.2L12,21L5.5,19.2L4.07,3Z",wBe="M2,5.27L3.28,4L20,20.72L18.73,22L13.9,17.17L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L12.5,15.76L10.88,14.15C10.87,14.39 10.77,14.64 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C8.12,13.77 7.63,12.37 7.72,11L2,5.27M12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.79,8.97L9.38,7.55L12.71,4.22M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.2,10.54 16.61,12.5 16.06,14.23L14.28,12.46C14.23,11.78 13.94,11.11 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z",iJ="M10.6 13.4A1 1 0 0 1 9.2 14.8A4.8 4.8 0 0 1 9.2 7.8L12.7 4.2A5.1 5.1 0 0 1 19.8 4.2A5.1 5.1 0 0 1 19.8 11.3L18.3 12.8A6.4 6.4 0 0 0 17.9 10.4L18.4 9.9A3.2 3.2 0 0 0 18.4 5.6A3.2 3.2 0 0 0 14.1 5.6L10.6 9.2A2.9 2.9 0 0 0 10.6 13.4M23 18V20H20V23H18V20H15V18H18V15H20V18M16.2 13.7A4.8 4.8 0 0 0 14.8 9.2A1 1 0 0 0 13.4 10.6A2.9 2.9 0 0 1 13.4 14.8L9.9 18.4A3.2 3.2 0 0 1 5.6 18.4A3.2 3.2 0 0 1 5.6 14.1L6.1 13.7A7.3 7.3 0 0 1 5.7 11.2L4.2 12.7A5.1 5.1 0 0 0 4.2 19.8A5.1 5.1 0 0 0 11.3 19.8L13.1 18A6 6 0 0 1 16.2 13.7Z",SBe="M19,13H5V11H19V13Z",xBe="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",_Be="M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z",CBe="M18.4,10.6C16.55,9 14.15,8 11.5,8C6.85,8 2.92,11.03 1.54,15.22L3.9,16C4.95,12.81 7.95,10.5 11.5,10.5C13.45,10.5 15.23,11.22 16.62,12.38L13,16H22V7L18.4,10.6Z",TBe="M9 7V17H15V15H11V7H9Z",kBe="M9 7C7.9 7 7 7.9 7 9V17H9V9H11V16H13V9H15V17H17V9C17 7.9 16.11 7 15 7H9Z",ABe="M11 7C9.9 7 9 7.9 9 9V11C9 12.11 9.9 13 11 13H13V15H9V17H13C14.11 17 15 16.11 15 15V13C15 11.9 14.11 11 13 11H11V9H15V7H11Z",EBe="M5,4H19A2,2 0 0,1 21,6V18A2,2 0 0,1 19,20H5A2,2 0 0,1 3,18V6A2,2 0 0,1 5,4M5,8V12H11V8H5M13,8V12H19V8H13M5,14V18H11V14H5M13,14V18H19V14H13Z",MBe="M11,2A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H2V2H11M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M15,11H18V8H20V11H23V13H20V16H18V13H15V11Z",IBe="M13,2A2,2 0 0,0 11,4V20A2,2 0 0,0 13,22H22V2H13M20,10V14H13V10H20M20,16V20H13V16H20M20,4V8H13V4H20M9,11H6V8H4V11H1V13H4V16H6V13H9V11Z",DBe="M4,2H11A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H4A2,2 0 0,1 2,20V4A2,2 0 0,1 4,2M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M17.59,12L15,9.41L16.41,8L19,10.59L21.59,8L23,9.41L20.41,12L23,14.59L21.59,16L19,13.41L16.41,16L15,14.59L17.59,12Z",VBe="M5,10H3V4H11V6H5V10M19,18H13V20H21V14H19V18M5,18V14H3V20H11V18H5M21,4H13V6H19V10H21V4M8,13V15L11,12L8,9V11H3V13H8M16,11V9L13,12L16,15V13H21V11H16Z",PBe="M18,14H20V17H23V19H20V22H18V19H15V17H18V14M4,3H18A2,2 0 0,1 20,5V12.08C18.45,11.82 16.92,12.18 15.68,13H12V17H13.08C12.97,17.68 12.97,18.35 13.08,19H4A2,2 0 0,1 2,17V5A2,2 0 0,1 4,3M4,7V11H10V7H4M12,7V11H18V7H12M4,13V17H10V13H4Z",LBe="M15.46,15.88L16.88,14.46L19,16.59L21.12,14.46L22.54,15.88L20.41,18L22.54,20.12L21.12,21.54L19,19.41L16.88,21.54L15.46,20.12L17.59,18L15.46,15.88M4,3H18A2,2 0 0,1 20,5V12.08C18.45,11.82 16.92,12.18 15.68,13H12V17H13.08C12.97,17.68 12.97,18.35 13.08,19H4A2,2 0 0,1 2,17V5A2,2 0 0,1 4,3M4,7V11H10V7H4M12,7V11H18V7H12M4,13V17H10V13H4Z",NBe="M22,10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V3H4V5H8V3H10V5H14V3H16V5H20V3H22V10M4,10H8V7H4V10M10,10H14V7H10V10M20,10V7H16V10H20M11,14H13V17H16V19H13V22H11V19H8V17H11V14Z",OBe="M22,14A2,2 0 0,0 20,12H4A2,2 0 0,0 2,14V21H4V19H8V21H10V19H14V21H16V19H20V21H22V14M4,14H8V17H4V14M10,14H14V17H10V14M20,14V17H16V14H20M11,10H13V7H16V5H13V2H11V5H8V7H11V10Z",RBe="M9.41,13L12,15.59L14.59,13L16,14.41L13.41,17L16,19.59L14.59,21L12,18.41L9.41,21L8,19.59L10.59,17L8,14.41L9.41,13M22,9A2,2 0 0,1 20,11H4A2,2 0 0,1 2,9V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V9M4,9H8V6H4V9M10,9H14V6H10V9M16,9H20V6H16V9Z",BBe="M21,6V8H3V6H21M3,18H12V16H3V18M3,13H21V11H3V13Z",FBe="M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z",zBe="M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5M14,13H11V16H9V13H6V11H9V8H11V11H14V13Z",HBe="M12,20A6,6 0 0,1 6,14C6,10 12,3.25 12,3.25C12,3.25 18,10 18,14A6,6 0 0,1 12,20Z";const WBe={bold:GRe,italic:oBe,underline:vBe,strike:fBe,color:HBe,highlight:jRe,heading:nBe,textAlign:oJ,fontFamily:ZRe,fontSize:dBe,subscript:hBe,superscript:pBe,bulletList:iBe,orderedList:lBe,taskList:sBe,indent:aBe,outdent:rBe,link:iJ,fileImagePlus:FRe,image:yBe,video:zBe,table:EBe,blockquote:cBe,horizontalRule:SBe,code:RRe,codeBlock:ORe,clear:URe,undo:FBe,redo:CBe,markdownTheme:_Be,fullscreen:mBe,h1:JRe,h2:QRe,h3:qRe,h4:$Re,h5:eBe,h6:tBe,p:uBe,left:HRe,center:oJ,right:WRe,justify:zRe,circle:LRe,close:NRe,fullscreenExit:gBe,linkVariant:iJ,linkVariantOff:wBe,openInNew:xBe,formatFloatLeft:YRe,formatFloatNone:KRe,formatFloatRight:XRe,sizeS:ABe,sizeM:kBe,sizeL:TBe,aspectRatio:VRe,delete:BRe,text:BBe,htmlView:bBe,tablePlus:PBe,tableRemove:LBe,tableColumnPlusAfter:MBe,tableColumnPlusBefore:IBe,tableColumnRemove:DBe,tableRowPlusAfter:NBe,tableRowPlusBefore:OBe,tableRowRemove:RBe,tableMergeCells:VBe,check:PRe};function Mr(e){if(e)return`svg:${WBe[e]}`}const Dn=f.defineComponent({__name:"ActionButton",props:{icon:{default:void 0},tooltip:{default:void 0},disabled:{type:Boolean,default:!1},color:{default:void 0},action:{type:Function,default:void 0},isActive:{type:Function,default:void 0}},setup(e){const t=e,n=f.computed(()=>Mr(t.icon));return(r,a)=>{const o=dt,i=th,s=ft;return f.openBlock(),f.createBlock(s,{class:f.normalizeClass(["rounded me-1 ms-0",{"v-btn--active":r.isActive?.()}]),density:"comfortable",size:"small",disabled:r.disabled,color:r.color,icon:"",onClick:r.action},{default:f.withCtx(()=>[n.value?(f.openBlock(),f.createBlock(o,{key:0,icon:n.value},null,8,["icon"])):f.createCommentVNode("",!0),f.createVNode(i,{eager:!1,activator:"parent",location:"top",text:t.tooltip},null,8,["text"]),f.renderSlot(r.$slots,"default")]),_:3},8,["disabled","color","class","onClick"])}}}),GBe=e=>{const t=["float-left","float-none","float-right"],n=["formatFloatLeft","formatFloatNone","formatFloatRight"],r=["left","inline","right"];return t.map((a,o)=>({type:a,component:Dn,componentProps:{tooltip:`editor.image.${a.replace("-",".")}.tooltip`,icon:n[o],action:()=>e.chain().focus().updateImage({display:r[o]}).run(),isActive:()=>e.isActive("image",{display:r[o]})}}))},UBe=e=>{const t=["size-small","size-medium","size-large"],n=["sizeS","sizeM","sizeL"];return t.map((r,a)=>({type:`image-${r}`,component:Dn,componentProps:{tooltip:`editor.${r.replace("-",".")}.tooltip`,icon:n[a],action:()=>e.chain().focus().updateImage({width:$0[r],height:null}).run(),isActive:()=>e.isActive("image",{width:$0[r]})}}))},jBe=e=>{const t=["size-small","size-medium","size-large"],n=["sizeS","sizeM","sizeL"];return t.map((r,a)=>({type:`video-${r}`,component:Dn,componentProps:{tooltip:`editor.${r.replace("-",".")}.tooltip`,icon:n[a],action:()=>e.chain().focus().updateVideo({width:ex[r]}).run(),isActive:()=>e.isActive("video",{width:ex[r]})}}))},YBe=e=>[...GBe(e),...UBe(e),...jBe(e),{type:"image-aspect-ratio",component:Dn,componentProps:{tooltip:"editor.image.dialog.form.aspectRatio",icon:"aspectRatio",action:()=>{const t=e.isActive("image",{lockAspectRatio:!0});e.chain().focus().updateImage({lockAspectRatio:!t,height:t?void 0:null}).run()},isActive:()=>e.isActive("image",{lockAspectRatio:!0})}},{type:"unlink",component:Dn,componentProps:{tooltip:"editor.link.unlink.tooltip",icon:"linkVariantOff",action:()=>{const{href:t}=e.getAttributes("link");e.chain().extendMarkRange("link",{href:t}).unsetLink().focus().run()}}},{type:"link-open",component:Dn,componentProps:{tooltip:"editor.link.open",icon:"openInNew",action:()=>{const{href:t}=e.getAttributes("link");qy(t)&&t&&window.open(t,"_blank")}}},{type:"remove",component:Dn,componentProps:{tooltip:"editor.remove",icon:"delete",action:()=>{const{state:t,dispatch:n}=e.view;Lx(t,n)}}}],KBe=(e,t,{editor:n,extension:r,t:a})=>{const{extensions:o=[]}=n.extensionManager,i={};for(const s of Object.keys(e)){const l=e[s];if(!l)continue;const u=[];for(const h of l){if(h==="divider"){if(u[u.length-1]?.type==="divider")continue;u.push({type:"divider",component:void 0,componentProps:{}});continue}const p=t.find(m=>m.type===h);if(p){u.push({...p,componentProps:{...p.componentProps,tooltip:p.componentProps.tooltip?a(p.componentProps.tooltip):void 0},componentSlots:p.componentSlots});continue}const v=o.find(m=>m.name===h);if(v){const{button:m}=v.options,g=m({editor:n,extension:v,t:a});u.push({type:h,component:g.component,componentProps:g.componentProps,componentSlots:g.componentSlots});continue}}const c=u[u.length-1],d=u[0];c?.type==="divider"&&u.pop(),d?.type==="divider"&&u.shift(),i[s]=u}return i},XBe=Ar.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",Fn(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}});class ZBe{globalAttributes=["class","style","id","data-*"];isInitialized=!1;registerGlobalAttributes(t){t&&t.length>0&&(this.globalAttributes=[...t],this.isInitialized=!0,console.log("Global allowedAttributes registered:",this.globalAttributes))}getGlobalAttributes(){return[...this.globalAttributes]}isGlobalInitialized(){return this.isInitialized}reset(){this.globalAttributes=["class","style","id"],this.isInitialized=!1}}const gP=new ZBe;function JBe(e){gP.registerGlobalAttributes(e)}function sJ(){return gP.getGlobalAttributes()}function QBe(){return gP.isGlobalInitialized()}function Ja(e,t,n){let r;n&&n.length>0?r=n:r=sJ(),console.log(`Adding common attributes to ${t}:`,{local:n,global:sJ(),final:r,globalInitialized:QBe()});const a=e?{...e}:{};return r.forEach(o=>{a[o]||(a[o]={default:null,parseHTML:i=>i.getAttribute(o)||null,renderHTML:i=>i[o]?{[o]:i[o]}:{}})}),a}const lJ=XBe.extend({addAttributes(){return Ja(this.parent?.(),"paragraph",this.options.allowedAttributes)}}),qBe=Zn.create({name:"base-kit",addOptions(){return{...this.parent?.(),bubble:{list:Oke,defaultBubbleList:YBe,button:({editor:e,extension:t,t:n})=>{const{list:r={},defaultBubbleList:a}=t.options?.bubble??{},o=a?.(e)??[];return KBe(r,o,{editor:e,extension:t,t:n})}}}},addExtensions(){const e=[];return this.options.placeholder!==!1&&e.push(ERe.configure({placeholder:"",...this.options.placeholder})),this.options.focus!==!1&&e.push(gRe.configure({className:"focus",...this.options.focus})),this.options.document!==!1&&e.push(hRe.configure()),this.options.text!==!1&&e.push(MRe.configure()),this.options.gapcursor!==!1&&e.push(TRe.configure()),this.options.dropcursor!==!1&&e.push(mRe.configure(this.options.dropcursor)),this.options.characterCount!==!1&&e.push(fRe.configure(this.options.characterCount)),this.options.paragraph!==!1&&e.push(lJ.configure(this.options.paragraph)),this.options.hardBreak!==!1&&e.push(kRe.configure(this.options.hardBreak)),this.options.listItem!==!1&&e.push(ARe.configure(this.options.listItem)),this.options.textStyle!==!1&&e.push(DRe.configure(this.options.textStyle)),e}}),$Be=/^\s*>\s$/,eFe=Ar.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return["blockquote",Fn(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[mm({find:$Be,type:this.type})]}}),tFe=eFe.extend({addAttributes(){return Ja(this.parent?.(),"blockquote",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),HTMLAttributes:{class:"blockquote"},button:({editor:e,t})=>({component:Dn,componentProps:{action:()=>e.chain().focus().toggleBlockquote().run(),isActive:()=>e.isActive("blockquote")||!1,disabled:!e.can().toggleBlockquote(),icon:"blockquote",tooltip:t("editor.blockquote.tooltip")}})}}}),nFe=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,rFe=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,aFe=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,oFe=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,iFe=si.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",Fn(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[_h({find:nFe,type:this.type}),_h({find:aFe,type:this.type})]},addPasteRules(){return[yd({find:rFe,type:this.type}),yd({find:oFe,type:this.type})]}}),sFe=iFe.extend({addAttributes(){return Ja(this.parent?.(),"bold",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:Dn,componentProps:{action:()=>e.chain().focus().toggleBold().run(),isActive:()=>e.isActive("bold")||!1,disabled:!e.can().toggleBold(),icon:"bold",tooltip:t("editor.bold.tooltip")}})}}}),lFe="listItem",uJ="textStyle",cJ=/^\s*([-+*])\s$/,uFe=Ar.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",Fn(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(lFe,this.editor.getAttributes(uJ)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=mm({find:cJ,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=mm({find:cJ,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(uJ),editor:this.editor})),[e]}}),cFe=uFe.extend({addAttributes(){return Ja(this.parent?.(),"bulletList",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:Dn,componentProps:{action:()=>e.chain().focus().toggleBulletList().run(),isActive:()=>e.isActive("bulletList")||!1,disabled:!e.can().toggleBulletList(),icon:"bulletList",tooltip:t("editor.bulletlist.tooltip")}})}}}),dFe=Ar.create({name:"clear",addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:Dn,componentProps:{action:()=>e.chain().focus().clearNodes().unsetAllMarks().run(),disabled:!e.can().chain().focus().clearNodes().unsetAllMarks().run(),icon:"clear",tooltip:t("editor.clear.tooltip")}})}}}),fFe=/(^|[^`])`([^`]+)`(?!`)/,hFe=/(^|[^`])`([^`]+)`(?!`)/g,pFe=si.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",Fn(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[_h({find:fFe,type:this.type})]},addPasteRules(){return[yd({find:hFe,type:this.type})]}}),vFe=pFe.extend({addAttributes(){return Ja(this.parent?.(),"code",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:Dn,componentProps:{action:()=>e.chain().focus().toggleCode().run(),isActive:()=>e.isActive("code")||!1,disabled:!e.can().toggleCode(),icon:"code",tooltip:t("editor.code.tooltip")}})}}}),mFe=/^```([a-z]+)?[\s\n]$/,gFe=/^~~~([a-z]+)?[\s\n]$/,yFe=Ar.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options;return[...((t=e.firstElementChild)===null||t===void 0?void 0:t.classList)||[]].filter(a=>a.startsWith(n)).map(a=>a.replace(n,""))[0]||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:t}){return["pre",Fn(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:a}=n;if(!a||r.parent.type!==this.type)return!1;const o=r.parentOffset===r.parent.nodeSize-2,i=r.parent.textContent.endsWith(` +`,textSerializers:n={}}=e||{};return EX(this.state.doc,{blockSeparator:t,textSerializers:{...DV(this.schema),...n}})}get isEmpty(){return Zx(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,t){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelector(e,t))||null}$nodes(e,t){var n;return((n=this.$doc)===null||n===void 0?void 0:n.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new xh(t,this)}get $doc(){return this.$pos(0)}};function _h(e){return new Bx({find:e.find,handler:({state:t,range:n,match:r})=>{const a=on(e.getAttributes,void 0,r);if(a===!1||a===null)return null;const{tr:o}=t,i=r[r.length-1],s=r[0];if(i){const l=s.search(/\S/),u=n.from+s.indexOf(i),c=u+i.length;if(NV(n.from,n.to,t.doc).filter(h=>h.mark.type.excluded.find(p=>p===e.type&&p!==h.mark.type)).filter(h=>h.to>u).length)return null;cn.from&&o.delete(n.from+l,u);const d=n.from+l+i.length;o.addMark(n.from+l,d,e.type.create(a||{})),o.removeStoredMark(e.type)}}})}function LX(e){return new Bx({find:e.find,handler:({state:t,range:n,match:r})=>{const a=on(e.getAttributes,void 0,r)||{},{tr:o}=t,i=n.from;let s=n.to;const l=e.type.create(a);if(r[1]){const u=r[0].lastIndexOf(r[1]);let c=i+u;c>s?c=s:s=c+r[1].length;const d=r[0][r[0].length-1];o.insertText(d,i+r[0].length-1),o.replaceWith(c,s,l)}else if(r[0]){const u=e.type.isInline?i:i-1;o.insert(u,e.type.create(a)).delete(o.mapping.map(i),o.mapping.map(s))}o.scrollIntoView()}})}function FV(e){return new Bx({find:e.find,handler:({state:t,range:n,match:r})=>{const a=t.doc.resolve(n.from),o=on(e.getAttributes,void 0,r)||{};if(!a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,o)}})}function mm(e){return new Bx({find:e.find,handler:({state:t,range:n,match:r,chain:a})=>{const o=on(e.getAttributes,void 0,r)||{},i=t.tr.delete(n.from,n.to),s=i.doc.resolve(n.from).blockRange(),l=s&&WD(s,e.type,o);if(!l)return null;if(i.wrap(s,l),e.keepMarks&&e.editor){const{selection:c,storedMarks:d}=t,{splittableMarks:h}=e.editor.extensionManager,p=d||c.$to.parentOffset&&c.$from.marks();if(p){const v=p.filter(m=>h.includes(m.type.name));i.ensureMarks(v)}}if(e.keepAttributes){const c=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";a().updateAttributes(c,o).run()}const u=i.doc.resolve(n.from-1).nodeBefore;u&&u.type===e.type&&sd(i.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,u))&&i.join(n.from-1)}})}class Ar{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=on(mt(this,"addOptions",{name:this.name}))),this.storage=on(mt(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Ar(t)}configure(t={}){const n=this.extend({...this.config,addOptions:()=>Hx(this.options,t)});return n.name=this.name,n.parent=this.parent,n}extend(t={}){const n=new Ar(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=on(mt(n,"addOptions",{name:n.name})),n.storage=on(mt(n,"addStorage",{name:n.name,options:n.options})),n}}class ILe{constructor(t,n,r){this.isDragging=!1,this.component=t,this.editor=n.editor,this.options={stopEvent:null,ignoreMutation:null,...r},this.extension=n.extension,this.node=n.node,this.decorations=n.decorations,this.innerDecorations=n.innerDecorations,this.view=n.view,this.HTMLAttributes=n.HTMLAttributes,this.getPos=n.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var n,r,a,o,i,s,l;const{view:u}=this.editor,c=t.target,d=c.nodeType===3?(n=c.parentElement)===null||n===void 0?void 0:n.closest("[data-drag-handle]"):c.closest("[data-drag-handle]");if(!this.dom||!((r=this.contentDOM)===null||r===void 0)&&r.contains(c)||!d)return;let h=0,p=0;if(this.dom!==d){const b=this.dom.getBoundingClientRect(),w=d.getBoundingClientRect(),x=(a=t.offsetX)!==null&&a!==void 0?a:(o=t.nativeEvent)===null||o===void 0?void 0:o.offsetX,C=(i=t.offsetY)!==null&&i!==void 0?i:(s=t.nativeEvent)===null||s===void 0?void 0:s.offsetY;h=w.x-b.x+x,p=w.y-b.y+C}const v=this.dom.cloneNode(!0);(l=t.dataTransfer)===null||l===void 0||l.setDragImage(v,h,p);const m=this.getPos();if(typeof m!="number")return;const g=Ct.create(u.state.doc,m),y=u.state.tr.setSelection(g);u.dispatch(y)}stopEvent(t){var n;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:t});const r=t.target;if(!(this.dom.contains(r)&&!(!((n=this.contentDOM)===null||n===void 0)&&n.contains(r))))return!1;const a=t.type.startsWith("drag"),o=t.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(r.tagName)||r.isContentEditable)&&!o&&!a)return!0;const{isEditable:i}=this.editor,{isDragging:s}=this,l=!!this.node.type.spec.draggable,u=Ct.isSelectable(this.node),c=t.type==="copy",d=t.type==="paste",h=t.type==="cut",p=t.type==="mousedown";if(!l&&u&&a&&t.target===this.dom&&t.preventDefault(),l&&a&&!s&&t.target===this.dom)return t.preventDefault(),!1;if(l&&i&&!s&&p){const v=r.closest("[data-drag-handle]");v&&(this.dom===v||this.dom.contains(v))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(s||o||c||d||h||p&&u)}ignoreMutation(t){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:t}):this.node.isLeaf||this.node.isAtom?!0:t.type==="selection"||this.dom.contains(t.target)&&t.type==="childList"&&(jx()||xX())&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every(n=>n.isContentEditable)?!1:this.contentDOM===t.target&&t.type==="attributes"?!0:!this.contentDOM.contains(t.target)}updateAttributes(t){this.editor.commands.command(({tr:n})=>{const r=this.getPos();return typeof r!="number"?!1:(n.setNodeMarkup(r,void 0,{...this.node.attrs,...t}),!0)})}deleteNode(){const t=this.getPos();if(typeof t!="number")return;const n=t+this.node.nodeSize;this.editor.commands.deleteRange({from:t,to:n})}}function yd(e){return new a2e({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:a})=>{const o=on(e.getAttributes,void 0,r,a);if(o===!1||o===null)return null;const{tr:i}=t,s=r[r.length-1],l=r[0];let u=n.to;if(s){const c=l.search(/\S/),d=n.from+l.indexOf(s),h=d+s.length;if(NV(n.from,n.to,t.doc).filter(p=>p.mark.type.excluded.find(v=>v===e.type&&v!==p.mark.type)).filter(p=>p.to>d).length)return null;hn.from&&i.delete(n.from+c,d),u=n.from+c+s.length,i.addMark(n.from+c,u,e.type.create(o||{})),i.removeStoredMark(e.type)}}})}function DLe(e,t){const{selection:n}=e,{$from:r}=n;if(n instanceof Ct){const o=r.index();return r.parent.canReplaceWith(o,o+1,t)}let a=r.depth;for(;a>=0;){const o=r.index(a);if(r.node(a).contentMatchAt(o).matchType(t))return!0;a-=1}return!1}var li="top",ss="bottom",ls="right",ui="left",zV="auto",wb=[li,ss,ls,ui],gm="start",Sb="end",VLe="clippingParents",NX="viewport",xb="popper",PLe="reference",OX=wb.reduce(function(e,t){return e.concat([t+"-"+gm,t+"-"+Sb])},[]),RX=[].concat(wb,[zV]).reduce(function(e,t){return e.concat([t,t+"-"+gm,t+"-"+Sb])},[]),LLe="beforeRead",NLe="read",OLe="afterRead",RLe="beforeMain",BLe="main",FLe="afterMain",zLe="beforeWrite",HLe="write",WLe="afterWrite",GLe=[LLe,NLe,OLe,RLe,BLe,FLe,zLe,HLe,WLe];function Ul(e){return e?(e.nodeName||"").toLowerCase():null}function Li(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ch(e){var t=Li(e).Element;return e instanceof t||e instanceof Element}function us(e){var t=Li(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function HV(e){if(typeof ShadowRoot>"u")return!1;var t=Li(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ULe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!us(o)||!Ul(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(i){var s=a[i];s===!1?o.removeAttribute(i):o.setAttribute(i,s===!0?"":s)}))})}function jLe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],o=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=i.reduce(function(l,u){return l[u]="",l},{});!us(a)||!Ul(a)||(Object.assign(a.style,s),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}const BX={name:"applyStyles",enabled:!0,phase:"write",fn:ULe,effect:jLe,requires:["computeStyles"]};function jl(e){return e.split("-")[0]}var Th=Math.max,Jx=Math.min,ym=Math.round;function WV(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function FX(){return!/^((?!chrome|android).)*safari/i.test(WV())}function bm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,o=1;t&&us(e)&&(a=e.offsetWidth>0&&ym(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ym(r.height)/e.offsetHeight||1);var i=Ch(e)?Li(e):window,s=i.visualViewport,l=!FX()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/a,c=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/a,h=r.height/o;return{width:d,height:h,top:c,right:u+d,bottom:c+h,left:u,x:u,y:c}}function GV(e){var t=bm(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function zX(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&HV(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function qu(e){return Li(e).getComputedStyle(e)}function YLe(e){return["table","td","th"].indexOf(Ul(e))>=0}function bd(e){return((Ch(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qx(e){return Ul(e)==="html"?e:e.assignedSlot||e.parentNode||(HV(e)?e.host:null)||bd(e)}function HX(e){return!us(e)||qu(e).position==="fixed"?null:e.offsetParent}function KLe(e){var t=/firefox/i.test(WV()),n=/Trident/i.test(WV());if(n&&us(e)){var r=qu(e);if(r.position==="fixed")return null}var a=Qx(e);for(HV(a)&&(a=a.host);us(a)&&["html","body"].indexOf(Ul(a))<0;){var o=qu(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function _b(e){for(var t=Li(e),n=HX(e);n&&YLe(n)&&qu(n).position==="static";)n=HX(n);return n&&(Ul(n)==="html"||Ul(n)==="body"&&qu(n).position==="static")?t:n||KLe(e)||t}function UV(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Cb(e,t,n){return Th(e,Jx(t,n))}function XLe(e,t,n){var r=Cb(e,t,n);return r>n?n:r}function WX(){return{top:0,right:0,bottom:0,left:0}}function GX(e){return Object.assign({},WX(),e)}function UX(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ZLe=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,GX(typeof e!="number"?e:UX(e,wb))};function JLe(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,i=n.modifiersData.popperOffsets,s=jl(n.placement),l=UV(s),u=[ui,ls].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!i)){var d=ZLe(a.padding,n),h=GV(o),p=l==="y"?li:ui,v=l==="y"?ss:ls,m=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],g=i[l]-n.rects.reference[l],y=_b(o),b=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,w=m/2-g/2,x=d[p],C=b-h[c]-d[v],_=b/2-h[c]/2+w,k=Cb(x,_,C),A=l;n.modifiersData[r]=(t={},t[A]=k,t.centerOffset=k-_,t)}}function QLe(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||zX(t.elements.popper,a)&&(t.elements.arrow=a))}const qLe={name:"arrow",enabled:!0,phase:"main",fn:JLe,effect:QLe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wm(e){return e.split("-")[1]}var $Le={top:"auto",right:"auto",bottom:"auto",left:"auto"};function eNe(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:ym(n*a)/a||0,y:ym(r*a)/a||0}}function jX(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,h=i.x,p=h===void 0?0:h,v=i.y,m=v===void 0?0:v,g=typeof c=="function"?c({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var y=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),w=ui,x=li,C=window;if(u){var _=_b(n),k="clientHeight",A="clientWidth";if(_===Li(n)&&(_=bd(n),qu(_).position!=="static"&&s==="absolute"&&(k="scrollHeight",A="scrollWidth")),_=_,a===li||(a===ui||a===ls)&&o===Sb){x=ss;var E=d&&_===C&&C.visualViewport?C.visualViewport.height:_[k];m-=E-r.height,m*=l?1:-1}if(a===ui||(a===li||a===ss)&&o===Sb){w=ls;var M=d&&_===C&&C.visualViewport?C.visualViewport.width:_[A];p-=M-r.width,p*=l?1:-1}}var D=Object.assign({position:s},u&&$Le),V=c===!0?eNe({x:p,y:m},Li(n)):{x:p,y:m};if(p=V.x,m=V.y,l){var P;return Object.assign({},D,(P={},P[x]=b?"0":"",P[w]=y?"0":"",P.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",P))}return Object.assign({},D,(t={},t[x]=b?m+"px":"",t[w]=y?p+"px":"",t.transform="",t))}function tNe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,i=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:jl(t.placement),variation:wm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,jX(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,jX(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const nNe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:tNe,data:{}};var qx={passive:!0};function rNe(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=a===void 0?!0:a,i=r.resize,s=i===void 0?!0:i,l=Li(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,qx)}),s&&l.addEventListener("resize",n.update,qx),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,qx)}),s&&l.removeEventListener("resize",n.update,qx)}}const aNe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rNe,data:{}};var oNe={left:"right",right:"left",bottom:"top",top:"bottom"};function $x(e){return e.replace(/left|right|bottom|top/g,function(t){return oNe[t]})}var iNe={start:"end",end:"start"};function YX(e){return e.replace(/start|end/g,function(t){return iNe[t]})}function jV(e){var t=Li(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function YV(e){return bm(bd(e)).left+jV(e).scrollLeft}function sNe(e,t){var n=Li(e),r=bd(e),a=n.visualViewport,o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;var u=FX();(u||!u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s+YV(e),y:l}}function lNe(e){var t,n=bd(e),r=jV(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Th(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),i=Th(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+YV(e),l=-r.scrollTop;return qu(a||n).direction==="rtl"&&(s+=Th(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:i,x:s,y:l}}function KV(e){var t=qu(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function KX(e){return["html","body","#document"].indexOf(Ul(e))>=0?e.ownerDocument.body:us(e)&&KV(e)?e:KX(Qx(e))}function Tb(e,t){var n;t===void 0&&(t=[]);var r=KX(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),o=Li(r),i=a?[o].concat(o.visualViewport||[],KV(r)?r:[]):r,s=t.concat(i);return a?s:s.concat(Tb(Qx(i)))}function XV(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function uNe(e,t){var n=bm(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function XX(e,t,n){return t===NX?XV(sNe(e,n)):Ch(t)?uNe(t,n):XV(lNe(bd(e)))}function cNe(e){var t=Tb(Qx(e)),n=["absolute","fixed"].indexOf(qu(e).position)>=0,r=n&&us(e)?_b(e):e;return Ch(r)?t.filter(function(a){return Ch(a)&&zX(a,r)&&Ul(a)!=="body"}):[]}function dNe(e,t,n,r){var a=t==="clippingParents"?cNe(e):[].concat(t),o=[].concat(a,[n]),i=o[0],s=o.reduce(function(l,u){var c=XX(e,u,r);return l.top=Th(c.top,l.top),l.right=Jx(c.right,l.right),l.bottom=Jx(c.bottom,l.bottom),l.left=Th(c.left,l.left),l},XX(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ZX(e){var t=e.reference,n=e.element,r=e.placement,a=r?jl(r):null,o=r?wm(r):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(a){case li:l={x:i,y:t.y-n.height};break;case ss:l={x:i,y:t.y+t.height};break;case ls:l={x:t.x+t.width,y:s};break;case ui:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?UV(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case gm:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Sb:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function kb(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,o=n.strategy,i=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?VLe:s,u=n.rootBoundary,c=u===void 0?NX:u,d=n.elementContext,h=d===void 0?xb:d,p=n.altBoundary,v=p===void 0?!1:p,m=n.padding,g=m===void 0?0:m,y=GX(typeof g!="number"?g:UX(g,wb)),b=h===xb?PLe:xb,w=e.rects.popper,x=e.elements[v?b:h],C=dNe(Ch(x)?x:x.contextElement||bd(e.elements.popper),l,c,i),_=bm(e.elements.reference),k=ZX({reference:_,element:w,placement:a}),A=XV(Object.assign({},w,k)),E=h===xb?A:_,M={top:C.top-E.top+y.top,bottom:E.bottom-C.bottom+y.bottom,left:C.left-E.left+y.left,right:E.right-C.right+y.right},D=e.modifiersData.offset;if(h===xb&&D){var V=D[a];Object.keys(M).forEach(function(P){var L=[ls,ss].indexOf(P)>=0?1:-1,O=[li,ss].indexOf(P)>=0?"y":"x";M[P]+=V[O]*L})}return M}function fNe(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?RX:l,c=wm(r),d=c?s?OX:OX.filter(function(v){return wm(v)===c}):wb,h=d.filter(function(v){return u.indexOf(v)>=0});h.length===0&&(h=d);var p=h.reduce(function(v,m){return v[m]=kb(e,{placement:m,boundary:a,rootBoundary:o,padding:i})[jl(m)],v},{});return Object.keys(p).sort(function(v,m){return p[v]-p[m]})}function hNe(e){if(jl(e)===zV)return[];var t=$x(e);return[YX(e),t,YX(t)]}function pNe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,s=i===void 0?!0:i,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,v=p===void 0?!0:p,m=n.allowedAutoPlacements,g=t.options.placement,y=jl(g),b=y===g,w=l||(b||!v?[$x(g)]:hNe(g)),x=[g].concat(w).reduce(function(K,J){return K.concat(jl(J)===zV?fNe(t,{placement:J,boundary:c,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:m}):J)},[]),C=t.rects.reference,_=t.rects.popper,k=new Map,A=!0,E=x[0],M=0;M=0,O=L?"width":"height",N=kb(t,{placement:D,boundary:c,rootBoundary:d,altBoundary:h,padding:u}),z=L?P?ls:ui:P?ss:li;C[O]>_[O]&&(z=$x(z));var B=$x(z),F=[];if(o&&F.push(N[V]<=0),s&&F.push(N[z]<=0,N[B]<=0),F.every(function(K){return K})){E=D,A=!1;break}k.set(D,F)}if(A)for(var G=v?3:1,H=function(K){var J=x.find(function(te){var q=k.get(te);if(q)return q.slice(0,K).every(function(ne){return ne})});if(J)return E=J,"break"},Y=G;Y>0;Y--){var U=H(Y);if(U==="break")break}t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}}const vNe={name:"flip",enabled:!0,phase:"main",fn:pNe,requiresIfExists:["offset"],data:{_skip:!1}};function JX(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function QX(e){return[li,ls,ss,ui].some(function(t){return e[t]>=0})}function mNe(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,i=kb(t,{elementContext:"reference"}),s=kb(t,{altBoundary:!0}),l=JX(i,r),u=JX(s,a,o),c=QX(l),d=QX(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const gNe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mNe};function yNe(e,t,n){var r=jl(e),a=[ui,li].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=o[0],s=o[1];return i=i||0,s=(s||0)*a,[ui,ls].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}function bNe(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,i=RX.reduce(function(c,d){return c[d]=yNe(d,t.rects,o),c},{}),s=i[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=i}const wNe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:bNe};function SNe(e){var t=e.state,n=e.name;t.modifiersData[n]=ZX({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const xNe={name:"popperOffsets",enabled:!0,phase:"read",fn:SNe,data:{}};function _Ne(e){return e==="x"?"y":"x"}function CNe(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=a===void 0?!0:a,i=n.altAxis,s=i===void 0?!1:i,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,h=n.tether,p=h===void 0?!0:h,v=n.tetherOffset,m=v===void 0?0:v,g=kb(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),y=jl(t.placement),b=wm(t.placement),w=!b,x=UV(y),C=_Ne(x),_=t.modifiersData.popperOffsets,k=t.rects.reference,A=t.rects.popper,E=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,M=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(_){if(o){var P,L=x==="y"?li:ui,O=x==="y"?ss:ls,N=x==="y"?"height":"width",z=_[x],B=z+g[L],F=z-g[O],G=p?-A[N]/2:0,H=b===gm?k[N]:A[N],Y=b===gm?-A[N]:-k[N],U=t.elements.arrow,K=p&&U?GV(U):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:WX(),te=J[L],q=J[O],ne=Cb(0,k[N],K[N]),se=w?k[N]/2-G-ne-te-M.mainAxis:H-ne-te-M.mainAxis,we=w?-k[N]/2+G+ne+q+M.mainAxis:Y+ne+q+M.mainAxis,ge=t.elements.arrow&&_b(t.elements.arrow),me=ge?x==="y"?ge.clientTop||0:ge.clientLeft||0:0,ce=(P=D?.[x])!=null?P:0,re=z+se-ce-me,xe=z+we-ce,fe=Cb(p?Jx(B,re):B,z,p?Th(F,xe):F);_[x]=fe,V[x]=fe-z}if(s){var ye,Ye=x==="x"?li:ui,ze=x==="x"?ss:ls,Q=_[C],$=C==="y"?"height":"width",Se=Q+g[Ye],Re=Q-g[ze],Mt=[li,ui].indexOf(y)!==-1,Ke=(ye=D?.[C])!=null?ye:0,Ce=Mt?Se:Q-k[$]-A[$]-Ke+M.altAxis,De=Mt?Q+k[$]+A[$]-Ke-M.altAxis:Re,It=p&&Mt?XLe(Ce,Q,De):Cb(p?Ce:Se,Q,p?De:Re);_[C]=It,V[C]=It-Q}t.modifiersData[r]=V}}const TNe={name:"preventOverflow",enabled:!0,phase:"main",fn:CNe,requiresIfExists:["offset"]};function kNe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ANe(e){return e===Li(e)||!us(e)?jV(e):kNe(e)}function ENe(e){var t=e.getBoundingClientRect(),n=ym(t.width)/e.offsetWidth||1,r=ym(t.height)/e.offsetHeight||1;return n!==1||r!==1}function MNe(e,t,n){n===void 0&&(n=!1);var r=us(t),a=us(t)&&ENe(t),o=bd(t),i=bm(e,a,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ul(t)!=="body"||KV(o))&&(s=ANe(t)),us(t)?(l=bm(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=YV(o))),{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function INe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var i=[].concat(o.requires||[],o.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&a(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),r}function DNe(e){var t=INe(e);return GLe.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function VNe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function PNe(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var qX={placement:"bottom",modifiers:[],strategy:"absolute"};function $X(){for(var e=arguments.length,t=new Array(e),n=0;n-1}function aZ(e,t){return typeof e=="function"?e.apply(void 0,t):e}function oZ(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function FNe(e){return e.split(/\s+/).filter(Boolean)}function Sm(e){return[].concat(e)}function iZ(e,t){e.indexOf(t)===-1&&e.push(t)}function zNe(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function HNe(e){return e.split("-")[0]}function e_(e){return[].slice.call(e)}function sZ(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Ab(){return document.createElement("div")}function t_(e){return["Element","Fragment"].some(function(t){return JV(e,t)})}function WNe(e){return JV(e,"NodeList")}function GNe(e){return JV(e,"MouseEvent")}function UNe(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function jNe(e){return t_(e)?[e]:WNe(e)?e_(e):Array.isArray(e)?e:e_(document.querySelectorAll(e))}function QV(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function lZ(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function YNe(e){var t,n=Sm(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function KNe(e,t){var n=t.clientX,r=t.clientY;return e.every(function(a){var o=a.popperRect,i=a.popperState,s=a.props,l=s.interactiveBorder,u=HNe(i.placement),c=i.modifiersData.offset;if(!c)return!0;var d=u==="bottom"?c.top.y:0,h=u==="top"?c.bottom.y:0,p=u==="right"?c.left.x:0,v=u==="left"?c.right.x:0,m=o.top-r+d>l,g=r-o.bottom-h>l,y=o.left-n+p>l,b=n-o.right-v>l;return m||g||y||b})}function qV(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[r](a,n)})}function uZ(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var Yl={isTouch:!1},cZ=0;function XNe(){Yl.isTouch||(Yl.isTouch=!0,window.performance&&document.addEventListener("mousemove",dZ))}function dZ(){var e=performance.now();e-cZ<20&&(Yl.isTouch=!1,document.removeEventListener("mousemove",dZ)),cZ=e}function ZNe(){var e=document.activeElement;if(UNe(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function JNe(){document.addEventListener("touchstart",XNe,kh),window.addEventListener("blur",ZNe)}var QNe=typeof window<"u"&&typeof document<"u",qNe=QNe?!!window.msCrypto:!1,$Ne={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},eOe={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},$s=Object.assign({appendTo:rZ,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},$Ne,eOe),tOe=Object.keys($s),nOe=function(e){var t=Object.keys(e);t.forEach(function(n){$s[n]=e[n]})};function fZ(e){var t=e.plugins||[],n=t.reduce(function(r,a){var o=a.name,i=a.defaultValue;if(o){var s;r[o]=e[o]!==void 0?e[o]:(s=$s[o])!=null?s:i}return r},{});return Object.assign({},e,n)}function rOe(e,t){var n=t?Object.keys(fZ(Object.assign({},$s,{plugins:t}))):tOe,r=n.reduce(function(a,o){var i=(e.getAttribute("data-tippy-"+o)||"").trim();if(!i)return a;if(o==="content")a[o]=i;else try{a[o]=JSON.parse(i)}catch{a[o]=i}return a},{});return r}function hZ(e,t){var n=Object.assign({},t,{content:aZ(t.content,[e])},t.ignoreAttributes?{}:rOe(e,t.plugins));return n.aria=Object.assign({},$s.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?t.interactive:n.aria.expanded,content:n.aria.content==="auto"?t.interactive?null:"describedby":n.aria.content},n}var aOe=function(){return"innerHTML"};function $V(e,t){e[aOe()]=t}function pZ(e){var t=Ab();return e===!0?t.className=tZ:(t.className=nZ,t_(e)?t.appendChild(e):$V(t,e)),t}function vZ(e,t){t_(t.content)?($V(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?$V(e,t.content):e.textContent=t.content)}function eP(e){var t=e.firstElementChild,n=e_(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(eZ)}),arrow:n.find(function(r){return r.classList.contains(tZ)||r.classList.contains(nZ)}),backdrop:n.find(function(r){return r.classList.contains(BNe)})}}function mZ(e){var t=Ab(),n=Ab();n.className=RNe,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ab();r.className=eZ,r.setAttribute("data-state","hidden"),vZ(r,e.props),t.appendChild(n),n.appendChild(r),a(e.props,e.props);function a(o,i){var s=eP(t),l=s.box,u=s.content,c=s.arrow;i.theme?l.setAttribute("data-theme",i.theme):l.removeAttribute("data-theme"),typeof i.animation=="string"?l.setAttribute("data-animation",i.animation):l.removeAttribute("data-animation"),i.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof i.maxWidth=="number"?i.maxWidth+"px":i.maxWidth,i.role?l.setAttribute("role",i.role):l.removeAttribute("role"),(o.content!==i.content||o.allowHTML!==i.allowHTML)&&vZ(u,e.props),i.arrow?c?o.arrow!==i.arrow&&(l.removeChild(c),l.appendChild(pZ(i.arrow))):l.appendChild(pZ(i.arrow)):c&&l.removeChild(c)}return{popper:t,onUpdate:a}}mZ.$$tippy=!0;var oOe=1,n_=[],tP=[];function iOe(e,t){var n=hZ(e,Object.assign({},$s,fZ(sZ(t)))),r,a,o,i=!1,s=!1,l=!1,u=!1,c,d,h,p=[],v=oZ(re,n.interactiveDebounce),m,g=oOe++,y=null,b=zNe(n.plugins),w={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},x={id:g,reference:e,popper:Ab(),popperInstance:y,props:n,state:w,plugins:b,clearDelayTimeouts:Ce,setProps:De,setContent:It,show:de,hide:ve,hideWithInteractivity:Te,enable:Mt,disable:Ke,unmount:Ve,destroy:Qe};if(!n.render)return x;var C=n.render(x),_=C.popper,k=C.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+x.id,x.popper=_,e._tippy=x,_._tippy=x;var A=b.map(function(ue){return ue.fn(x)}),E=e.hasAttribute("aria-expanded");return ge(),G(),z(),B("onCreate",[x]),n.showOnCreate&&Se(),_.addEventListener("mouseenter",function(){x.props.interactive&&x.state.isVisible&&x.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){x.props.interactive&&x.props.trigger.indexOf("mouseenter")>=0&&L().addEventListener("mousemove",v)}),x;function M(){var ue=x.props.touch;return Array.isArray(ue)?ue:[ue,0]}function D(){return M()[0]==="hold"}function V(){var ue;return!!((ue=x.props.render)!=null&&ue.$$tippy)}function P(){return m||e}function L(){var ue=P().parentNode;return ue?YNe(ue):document}function O(){return eP(_)}function N(ue){return x.state.isMounted&&!x.state.isVisible||Yl.isTouch||c&&c.type==="focus"?0:ZV(x.props.delay,ue?0:1,$s.delay)}function z(ue){ue===void 0&&(ue=!1),_.style.pointerEvents=x.props.interactive&&!ue?"":"none",_.style.zIndex=""+x.props.zIndex}function B(ue,Ne,Ze){if(Ze===void 0&&(Ze=!0),A.forEach(function(qe){qe[ue]&&qe[ue].apply(qe,Ne)}),Ze){var _t;(_t=x.props)[ue].apply(_t,Ne)}}function F(){var ue=x.props.aria;if(ue.content){var Ne="aria-"+ue.content,Ze=_.id,_t=Sm(x.props.triggerTarget||e);_t.forEach(function(qe){var $e=qe.getAttribute(Ne);if(x.state.isVisible)qe.setAttribute(Ne,$e?$e+" "+Ze:Ze);else{var ut=$e&&$e.replace(Ze,"").trim();ut?qe.setAttribute(Ne,ut):qe.removeAttribute(Ne)}})}}function G(){if(!(E||!x.props.aria.expanded)){var ue=Sm(x.props.triggerTarget||e);ue.forEach(function(Ne){x.props.interactive?Ne.setAttribute("aria-expanded",x.state.isVisible&&Ne===P()?"true":"false"):Ne.removeAttribute("aria-expanded")})}}function H(){L().removeEventListener("mousemove",v),n_=n_.filter(function(ue){return ue!==v})}function Y(ue){if(!(Yl.isTouch&&(l||ue.type==="mousedown"))){var Ne=ue.composedPath&&ue.composedPath()[0]||ue.target;if(!(x.props.interactive&&uZ(_,Ne))){if(Sm(x.props.triggerTarget||e).some(function(Ze){return uZ(Ze,Ne)})){if(Yl.isTouch||x.state.isVisible&&x.props.trigger.indexOf("click")>=0)return}else B("onClickOutside",[x,ue]);x.props.hideOnClick===!0&&(x.clearDelayTimeouts(),x.hide(),s=!0,setTimeout(function(){s=!1}),x.state.isMounted||te())}}}function U(){l=!0}function K(){l=!1}function J(){var ue=L();ue.addEventListener("mousedown",Y,!0),ue.addEventListener("touchend",Y,kh),ue.addEventListener("touchstart",K,kh),ue.addEventListener("touchmove",U,kh)}function te(){var ue=L();ue.removeEventListener("mousedown",Y,!0),ue.removeEventListener("touchend",Y,kh),ue.removeEventListener("touchstart",K,kh),ue.removeEventListener("touchmove",U,kh)}function q(ue,Ne){se(ue,function(){!x.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&Ne()})}function ne(ue,Ne){se(ue,Ne)}function se(ue,Ne){var Ze=O().box;function _t(qe){qe.target===Ze&&(qV(Ze,"remove",_t),Ne())}if(ue===0)return Ne();qV(Ze,"remove",d),qV(Ze,"add",_t),d=_t}function we(ue,Ne,Ze){Ze===void 0&&(Ze=!1);var _t=Sm(x.props.triggerTarget||e);_t.forEach(function(qe){qe.addEventListener(ue,Ne,Ze),p.push({node:qe,eventType:ue,handler:Ne,options:Ze})})}function ge(){D()&&(we("touchstart",ce,{passive:!0}),we("touchend",xe,{passive:!0})),FNe(x.props.trigger).forEach(function(ue){if(ue!=="manual")switch(we(ue,ce),ue){case"mouseenter":we("mouseleave",xe);break;case"focus":we(qNe?"focusout":"blur",fe);break;case"focusin":we("focusout",fe);break}})}function me(){p.forEach(function(ue){var Ne=ue.node,Ze=ue.eventType,_t=ue.handler,qe=ue.options;Ne.removeEventListener(Ze,_t,qe)}),p=[]}function ce(ue){var Ne,Ze=!1;if(!(!x.state.isEnabled||ye(ue)||s)){var _t=((Ne=c)==null?void 0:Ne.type)==="focus";c=ue,m=ue.currentTarget,G(),!x.state.isVisible&&GNe(ue)&&n_.forEach(function(qe){return qe(ue)}),ue.type==="click"&&(x.props.trigger.indexOf("mouseenter")<0||i)&&x.props.hideOnClick!==!1&&x.state.isVisible?Ze=!0:Se(ue),ue.type==="click"&&(i=!Ze),Ze&&!_t&&Re(ue)}}function re(ue){var Ne=ue.target,Ze=P().contains(Ne)||_.contains(Ne);if(!(ue.type==="mousemove"&&Ze)){var _t=$().concat(_).map(function(qe){var $e,ut=qe._tippy,Yt=($e=ut.popperInstance)==null?void 0:$e.state;return Yt?{popperRect:qe.getBoundingClientRect(),popperState:Yt,props:n}:null}).filter(Boolean);KNe(_t,ue)&&(H(),Re(ue))}}function xe(ue){var Ne=ye(ue)||x.props.trigger.indexOf("click")>=0&&i;if(!Ne){if(x.props.interactive){x.hideWithInteractivity(ue);return}Re(ue)}}function fe(ue){x.props.trigger.indexOf("focusin")<0&&ue.target!==P()||x.props.interactive&&ue.relatedTarget&&_.contains(ue.relatedTarget)||Re(ue)}function ye(ue){return Yl.isTouch?D()!==ue.type.indexOf("touch")>=0:!1}function Ye(){ze();var ue=x.props,Ne=ue.popperOptions,Ze=ue.placement,_t=ue.offset,qe=ue.getReferenceClientRect,$e=ue.moveTransition,ut=V()?eP(_).arrow:null,Yt=qe?{getBoundingClientRect:qe,contextElement:qe.contextElement||P()}:e,Kt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Fs){var Yn=Fs.state;if(V()){var Qo=O(),yf=Qo.box;["placement","reference-hidden","escaped"].forEach(function(Dc){Dc==="placement"?yf.setAttribute("data-placement",Yn.placement):Yn.attributes.popper["data-popper-"+Dc]?yf.setAttribute("data-"+Dc,""):yf.removeAttribute("data-"+Dc)}),Yn.attributes.popper={}}}},sr=[{name:"offset",options:{offset:_t}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!$e}},Kt];V()&&ut&&sr.push({name:"arrow",options:{element:ut,padding:3}}),sr.push.apply(sr,Ne?.modifiers||[]),x.popperInstance=ONe(Yt,_,Object.assign({},Ne,{placement:Ze,onFirstUpdate:h,modifiers:sr}))}function ze(){x.popperInstance&&(x.popperInstance.destroy(),x.popperInstance=null)}function Q(){var ue=x.props.appendTo,Ne,Ze=P();x.props.interactive&&ue===rZ||ue==="parent"?Ne=Ze.parentNode:Ne=aZ(ue,[Ze]),Ne.contains(_)||Ne.appendChild(_),x.state.isMounted=!0,Ye()}function $(){return e_(_.querySelectorAll("[data-tippy-root]"))}function Se(ue){x.clearDelayTimeouts(),ue&&B("onTrigger",[x,ue]),J();var Ne=N(!0),Ze=M(),_t=Ze[0],qe=Ze[1];Yl.isTouch&&_t==="hold"&&qe&&(Ne=qe),Ne?r=setTimeout(function(){x.show()},Ne):x.show()}function Re(ue){if(x.clearDelayTimeouts(),B("onUntrigger",[x,ue]),!x.state.isVisible){te();return}if(!(x.props.trigger.indexOf("mouseenter")>=0&&x.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ue.type)>=0&&i)){var Ne=N(!1);Ne?a=setTimeout(function(){x.state.isVisible&&x.hide()},Ne):o=requestAnimationFrame(function(){x.hide()})}}function Mt(){x.state.isEnabled=!0}function Ke(){x.hide(),x.state.isEnabled=!1}function Ce(){clearTimeout(r),clearTimeout(a),cancelAnimationFrame(o)}function De(ue){if(!x.state.isDestroyed){B("onBeforeUpdate",[x,ue]),me();var Ne=x.props,Ze=hZ(e,Object.assign({},Ne,sZ(ue),{ignoreAttributes:!0}));x.props=Ze,ge(),Ne.interactiveDebounce!==Ze.interactiveDebounce&&(H(),v=oZ(re,Ze.interactiveDebounce)),Ne.triggerTarget&&!Ze.triggerTarget?Sm(Ne.triggerTarget).forEach(function(_t){_t.removeAttribute("aria-expanded")}):Ze.triggerTarget&&e.removeAttribute("aria-expanded"),G(),z(),k&&k(Ne,Ze),x.popperInstance&&(Ye(),$().forEach(function(_t){requestAnimationFrame(_t._tippy.popperInstance.forceUpdate)})),B("onAfterUpdate",[x,ue])}}function It(ue){x.setProps({content:ue})}function de(){var ue=x.state.isVisible,Ne=x.state.isDestroyed,Ze=!x.state.isEnabled,_t=Yl.isTouch&&!x.props.touch,qe=ZV(x.props.duration,0,$s.duration);if(!(ue||Ne||Ze||_t)&&!P().hasAttribute("disabled")&&(B("onShow",[x],!1),x.props.onShow(x)!==!1)){if(x.state.isVisible=!0,V()&&(_.style.visibility="visible"),z(),J(),x.state.isMounted||(_.style.transition="none"),V()){var $e=O(),ut=$e.box,Yt=$e.content;QV([ut,Yt],0)}h=function(){var Kt;if(!(!x.state.isVisible||u)){if(u=!0,_.offsetHeight,_.style.transition=x.props.moveTransition,V()&&x.props.animation){var sr=O(),Fs=sr.box,Yn=sr.content;QV([Fs,Yn],qe),lZ([Fs,Yn],"visible")}F(),G(),iZ(tP,x),(Kt=x.popperInstance)==null||Kt.forceUpdate(),B("onMount",[x]),x.props.animation&&V()&&ne(qe,function(){x.state.isShown=!0,B("onShown",[x])})}},Q()}}function ve(){var ue=!x.state.isVisible,Ne=x.state.isDestroyed,Ze=!x.state.isEnabled,_t=ZV(x.props.duration,1,$s.duration);if(!(ue||Ne||Ze)&&(B("onHide",[x],!1),x.props.onHide(x)!==!1)){if(x.state.isVisible=!1,x.state.isShown=!1,u=!1,i=!1,V()&&(_.style.visibility="hidden"),H(),te(),z(!0),V()){var qe=O(),$e=qe.box,ut=qe.content;x.props.animation&&(QV([$e,ut],_t),lZ([$e,ut],"hidden"))}F(),G(),x.props.animation?V()&&q(_t,x.unmount):x.unmount()}}function Te(ue){L().addEventListener("mousemove",v),iZ(n_,v),v(ue)}function Ve(){x.state.isVisible&&x.hide(),x.state.isMounted&&(ze(),$().forEach(function(ue){ue._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_),tP=tP.filter(function(ue){return ue!==x}),x.state.isMounted=!1,B("onHidden",[x]))}function Qe(){!x.state.isDestroyed&&(x.clearDelayTimeouts(),x.unmount(),me(),delete e._tippy,x.state.isDestroyed=!0,B("onDestroy",[x]))}}function xm(e,t){t===void 0&&(t={});var n=$s.plugins.concat(t.plugins||[]);JNe();var r=Object.assign({},t,{plugins:n}),a=jNe(e),o=a.reduce(function(i,s){var l=s&&iOe(s,r);return l&&i.push(l),i},[]);return t_(e)?o[0]:o}xm.defaultProps=$s,xm.setDefaultProps=nOe,xm.currentInput=Yl,Object.assign({},BX,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),xm.setDefaultProps({render:mZ});class sOe{constructor({editor:t,element:n,view:r,tippyOptions:a={},updateDelay:o=250,shouldShow:i}){this.preventHide=!1,this.shouldShow=({view:s,state:l,from:u,to:c})=>{const{doc:d,selection:h}=l,{empty:p}=h,v=!d.textBetween(u,c).length&&VV(l.selection),m=this.element.contains(document.activeElement);return!(!(s.hasFocus()||m)||p||v||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var l;if(this.preventHide){this.preventHide=!1;return}s?.relatedTarget&&!((l=this.element.parentNode)===null||l===void 0)&&l.contains(s.relatedTarget)||s?.relatedTarget!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.handleDebouncedUpdate=(s,l)=>{const u=!l?.selection.eq(s.state.selection),c=!l?.doc.eq(s.state.doc);!u&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(s,u,c,l)},this.updateDelay))},this.updateHandler=(s,l,u,c)=>{var d,h,p;const{state:v,composing:m}=s,{selection:g}=v;if(m||!l&&!u)return;this.createTooltip();const{ranges:y}=g,b=Math.min(...y.map(x=>x.$from.pos)),w=Math.max(...y.map(x=>x.$to.pos));if(!(!((d=this.shouldShow)===null||d===void 0)&&d.call(this,{editor:this.editor,element:this.element,view:s,state:v,oldState:c,from:b,to:w}))){this.hide();return}(h=this.tippy)===null||h===void 0||h.setProps({getReferenceClientRect:((p=this.tippyOptions)===null||p===void 0?void 0:p.getReferenceClientRect)||(()=>{if(DX(v.selection)){let x=s.nodeDOM(b);if(x){const C=x.dataset.nodeViewWrapper?x:x.querySelector("[data-node-view-wrapper]");if(C&&(x=C.firstChild),x)return x.getBoundingClientRect()}}return VX(s,b,w)})}),this.show()},this.editor=t,this.element=n,this.view=r,this.updateDelay=o,i&&(this.shouldShow=i),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=a,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options,n=!!t.parentElement;this.element.tabIndex=0,!(this.tippy||!n)&&(this.tippy=xm(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,n){const{state:r}=t,a=r.selection.from!==r.selection.to;if(this.updateDelay>0&&a){this.handleDebouncedUpdate(t,n);return}const o=!n?.selection.eq(t.state.selection),i=!n?.doc.eq(t.state.doc);this.updateHandler(t,o,i,n)}show(){var t;(t=this.tippy)===null||t===void 0||t.show()}hide(){var t;(t=this.tippy)===null||t===void 0||t.hide()}destroy(){var t,n;!((t=this.tippy)===null||t===void 0)&&t.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const gZ=e=>new pr({key:typeof e.pluginKey=="string"?new qr(e.pluginKey):e.pluginKey,view:t=>new sOe({view:t,...e})});Zn.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[gZ({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class lOe{getTextContent(t){return EX(t,{textSerializers:DV(this.editor.schema)})}constructor({editor:t,element:n,view:r,tippyOptions:a={},shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:i,state:s})=>{const{selection:l}=s,{$anchor:u,empty:c}=l,d=u.depth===1,h=u.parent.isTextblock&&!u.parent.type.spec.code&&!u.parent.textContent&&u.parent.childCount===0&&!this.getTextContent(u.parent);return!(!i.hasFocus()||!c||!d||!h||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:i})=>{var s;if(this.preventHide){this.preventHide=!1;return}i?.relatedTarget&&!((s=this.element.parentNode)===null||s===void 0)&&s.contains(i.relatedTarget)||i?.relatedTarget!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=i=>{this.blurHandler({event:i})},this.editor=t,this.element=n,this.view=r,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=a,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options,n=!!t.parentElement;this.element.tabIndex=0,!(this.tippy||!n)&&(this.tippy=xm(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,n){var r,a,o;const{state:i}=t,{doc:s,selection:l}=i,{from:u,to:c}=l;if(!(n&&n.doc.eq(s)&&n.selection.eq(l))){if(this.createTooltip(),!(!((r=this.shouldShow)===null||r===void 0)&&r.call(this,{editor:this.editor,view:t,state:i,oldState:n}))){this.hide();return}(a=this.tippy)===null||a===void 0||a.setProps({getReferenceClientRect:((o=this.tippyOptions)===null||o===void 0?void 0:o.getReferenceClientRect)||(()=>VX(t,u,c))}),this.show()}}show(){var t;(t=this.tippy)===null||t===void 0||t.show()}hide(){var t;(t=this.tippy)===null||t===void 0||t.hide()}destroy(){var t,n;!((t=this.tippy)===null||t===void 0)&&t.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(n=this.tippy)===null||n===void 0||n.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const yZ=e=>new pr({key:typeof e.pluginKey=="string"?new qr(e.pluginKey):e.pluginKey,view:t=>new lOe({view:t,...e})});Zn.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[yZ({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});const uOe=f.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(e,{slots:t}){const n=f.ref(null);return f.onMounted(()=>{const{updateDelay:r,editor:a,pluginKey:o,shouldShow:i,tippyOptions:s}=e;a.registerPlugin(gZ({updateDelay:r,editor:a,element:n.value,pluginKey:o,shouldShow:i,tippyOptions:s}))}),f.onBeforeUnmount(()=>{const{pluginKey:r,editor:a}=e;a.unregisterPlugin(r)}),()=>{var r;return f.h("div",{ref:n},(r=t.default)===null||r===void 0?void 0:r.call(t))}}});function bZ(e){return f.customRef((t,n)=>({get(){return t(),e},set(r){e=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{n()})})}}))}class cOe extends MLe{constructor(t={}){return super(t),this.contentComponent=null,this.appContext=null,this.reactiveState=bZ(this.view.state),this.reactiveExtensionStorage=bZ(this.extensionStorage),this.on("beforeTransaction",({nextState:n})=>{this.reactiveState.value=n,this.reactiveExtensionStorage.value=this.extensionStorage}),f.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(t,n){const r=super.registerPlugin(t,n);return this.reactiveState&&(this.reactiveState.value=r),r}unregisterPlugin(t){const n=super.unregisterPlugin(t);return this.reactiveState&&n&&(this.reactiveState.value=n),n}}const dOe=f.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(e){const t=f.ref(),n=f.getCurrentInstance();return f.watchEffect(()=>{const r=e.editor;r&&r.options.element&&t.value&&f.nextTick(()=>{if(!t.value||!r.options.element.firstChild)return;const a=f.unref(t.value);t.value.append(...r.options.element.childNodes),r.contentComponent=n.ctx._,n&&(r.appContext={...n.appContext,provides:n.provides}),r.setOptions({element:a}),r.createNodeViews()})}),f.onBeforeUnmount(()=>{const r=e.editor;r&&(r.contentComponent=null,r.appContext=null)}),{rootEl:t}},render(){return f.h("div",{ref:e=>{this.rootEl=e}})}});f.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(e,{slots:t}){const n=f.ref(null);return f.onMounted(()=>{const{pluginKey:r,editor:a,tippyOptions:o,shouldShow:i}=e;a.registerPlugin(yZ({pluginKey:r,editor:a,element:n.value,tippyOptions:o,shouldShow:i}))}),f.onBeforeUnmount(()=>{const{pluginKey:r,editor:a}=e;a.unregisterPlugin(r)}),()=>{var r;return f.h("div",{ref:n},(r=t.default)===null||r===void 0?void 0:r.call(t))}}}),f.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return f.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}});const wZ=f.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var e,t;return f.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});class fOe{constructor(t,{props:n={},editor:r}){this.editor=r,this.component=f.markRaw(t),this.el=document.createElement("div"),this.props=f.reactive(n),this.renderedComponent=this.renderComponent()}get element(){return this.renderedComponent.el}get ref(){var t,n,r,a;return!((n=(t=this.renderedComponent.vNode)===null||t===void 0?void 0:t.component)===null||n===void 0)&&n.exposed?this.renderedComponent.vNode.component.exposed:(a=(r=this.renderedComponent.vNode)===null||r===void 0?void 0:r.component)===null||a===void 0?void 0:a.proxy}renderComponent(){let t=f.h(this.component,this.props);return this.editor.appContext&&(t.appContext=this.editor.appContext),typeof document<"u"&&this.el&&f.render(t,this.el),{vNode:t,destroy:()=>{this.el&&f.render(null,this.el),this.el=null,t=null},el:this.el?this.el.firstElementChild:null}}updateProps(t={}){Object.entries(t).forEach(([n,r])=>{this.props[n]=r}),this.renderComponent()}destroy(){this.renderedComponent.destroy()}}const SZ={editor:{type:Object,required:!0},node:{type:Object,required:!0},decorations:{type:Object,required:!0},selected:{type:Boolean,required:!0},extension:{type:Object,required:!0},getPos:{type:Function,required:!0},updateAttributes:{type:Function,required:!0},deleteNode:{type:Function,required:!0},view:{type:Object,required:!0},innerDecorations:{type:Object,required:!0},HTMLAttributes:{type:Object,required:!0}};class hOe extends ILe{mount(){const t={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extension,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(a={})=>this.updateAttributes(a),deleteNode:()=>this.deleteNode()},n=this.onDragStart.bind(this);this.decorationClasses=f.ref(this.getDecorationClasses());const r=f.defineComponent({extends:{...this.component},props:Object.keys(t),template:this.component.template,setup:a=>{var o,i;return f.provide("onDragStart",n),f.provide("decorationClasses",this.decorationClasses),(i=(o=this.component).setup)===null||i===void 0?void 0:i.call(o,a,{expose:()=>{}})},__scopeId:this.component.__scopeId,__cssModules:this.component.__cssModules,__name:this.component.__name,__file:this.component.__file});this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.renderer=new fOe(r,{editor:this.editor,props:t})}get dom(){if(!this.renderer.element||!this.renderer.element.hasAttribute("data-node-view-wrapper"))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.dom.querySelector("[data-node-view-content]")}handleSelectionUpdate(){const{from:t,to:n}=this.editor.state.selection,r=this.getPos();if(typeof r=="number")if(t<=r&&n>=r+this.node.nodeSize){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}}update(t,n,r){const a=o=>{this.decorationClasses.value=this.getDecorationClasses(),this.renderer.updateProps(o)};if(typeof this.options.update=="function"){const o=this.node,i=this.decorations,s=this.innerDecorations;return this.node=t,this.decorations=n,this.innerDecorations=r,this.options.update({oldNode:o,oldDecorations:i,newNode:t,newDecorations:n,oldInnerDecorations:s,innerDecorations:r,updateProps:()=>a({node:t,decorations:n,innerDecorations:r})})}return t.type!==this.node.type?!1:(t===this.node&&this.decorations===n&&this.innerDecorations===r||(this.node=t,this.decorations=n,this.innerDecorations=r,a({node:t,decorations:n,innerDecorations:r})),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element&&this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element&&this.renderer.element.classList.remove("ProseMirror-selectednode")}getDecorationClasses(){return this.decorations.map(t=>t.type.attrs.class).flat().join(" ")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate)}}function xZ(e,t){return n=>{if(!n.editor.contentComponent)return{};const r=typeof e=="function"&&"__vccOpts"in e?e.__vccOpts:e;return new hOe(r,n,t)}}const pOe=f.defineComponent({__name:"BubbleMenu",props:{editor:{},disabled:{type:Boolean,default:!1}},setup(e){const t=e,{t:n}=Uu(),r=f.reactive({maxWidth:"auto",zIndex:20,appendTo:"parent"}),a=f.computed(()=>{const l=t.editor.state.selection,u=s(),c=l.node?.type.name==="image",d=l.node?.type.name==="video",h=l instanceof At;if(u)return"link";if(c)return"image";if(d)return"video";if(h)return"text"}),o=f.computed(()=>{const{extensions:l=[]}=t.editor.extensionManager,u=l.find(d=>d.name==="base-kit");if(!u)return{};const{button:c}=u.options?.bubble??{};return c?c({editor:t.editor,extension:u,t:f.unref(n)}):{}}),i=f.computed(()=>a.value?f.unref(o)?.[a.value]??[]:[]);function s(){const{schema:l}=t.editor,u=l.marks.link;return u?t.editor.isActive(u.name):!1}return(l,u)=>{const c=la,d=Lu,h=Ll,p=Vi;return f.withDirectives((f.openBlock(),f.createBlock(f.unref(uOe),{editor:l.editor,"tippy-options":r},{default:f.withCtx(()=>[f.createVNode(p,{class:"vuetify-pro-tiptap-editor__menu-bubble"},{default:f.withCtx(()=>[f.createVNode(h,{class:"d-flex pa-0"},{default:f.withCtx(()=>[f.createVNode(d,{density:"compact",flat:"",height:"auto",class:"py-1 ps-1"},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.value,(v,m)=>(f.openBlock(),f.createElementBlock(f.Fragment,{key:m},[v.type==="divider"?(f.openBlock(),f.createBlock(c,{key:0,vertical:"",class:"mx-1 me-2"})):(f.openBlock(),f.createBlock(f.resolveDynamicComponent(v.component),f.mergeProps({key:1,ref_for:!0},v.componentProps,{editor:l.editor,disabled:l.disabled||v.componentProps?.disabled}),f.createSlots({_:2},[f.renderList(v.componentSlots,(g,y,b)=>({name:`${y}`,fn:f.withCtx(w=>[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(g),f.mergeProps({ref_for:!0},w?.props),null,16))])}))]),1040,["editor","disabled"]))],64))),128))]),_:1})]),_:1})]),_:1})]),_:1},8,["editor","tippy-options"])),[[f.vShow,i.value.length>0]])}}}),vOe=f.defineComponent({__name:"TiptapToolbar",props:{editor:{},disabled:{type:Boolean,default:!1}},setup(e){const t=e,{t:n}=Uu(),r=f.computed(()=>{const a=[...t.editor.extensionManager.extensions].sort((i,s)=>{const l=i.options.sort??-1,u=s.options.sort??-1;return l-u});let o=[];for(const i of a){const{button:s,divider:l=!1,spacer:u=!1}=i.options;if(!s||!kIe(s))continue;const c=s({editor:t.editor,extension:i,t:f.unref(n)});if(Array.isArray(c)){const d=c.map((h,p)=>({button:h,divider:p===c.length-1?l:!1,spacer:p===0?u:!1}));o=[...o,...d];continue}o.push({button:c,divider:l,spacer:u})}return o});return(a,o)=>{const i=Nl,s=la,l=Lu;return f.openBlock(),f.createBlock(l,f.mergeProps(a.$attrs,{density:"compact",flat:"",height:"auto",class:"py-1 ps-1"}),{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(r.value,(u,c)=>(f.openBlock(),f.createElementBlock(f.Fragment,{key:c},[u.spacer?(f.openBlock(),f.createBlock(i,{key:0})):f.createCommentVNode("",!0),(f.openBlock(),f.createBlock(f.resolveDynamicComponent(u.button.component),f.mergeProps({ref_for:!0},u.button.componentProps,{editor:a.editor,disabled:a.disabled||u.button.componentProps?.disabled}),f.createSlots({_:2},[f.renderList(u.button.componentSlots,(d,h,p)=>({name:`${h}`,fn:f.withCtx(v=>[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(d),f.mergeProps({ref_for:!0},v?.props),null,16))])}))]),1040,["editor","disabled"])),u.divider?(f.openBlock(),f.createBlock(s,{key:1,vertical:"",class:"mx-1 me-2"})):f.createCommentVNode("",!0)],64))),128))]),_:1},16)}}}),mOe={class:"text-overline me-4"},gOe={class:"text-overline"},_Z=f.defineComponent({__name:"VuetifyTiptap",props:{modelValue:{default:""},markdownTheme:{type:[String,Boolean],default:void 0},output:{default:"html"},dark:{type:Boolean,default:void 0},dense:{type:Boolean,default:!1},outlined:{type:Boolean,default:!0},flat:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},label:{default:void 0},hideToolbar:{type:Boolean,default:!1},disableToolbar:{type:Boolean,default:!1},hideBubble:{type:Boolean,default:!1},removeDefaultWrapper:{type:Boolean,default:!1},maxWidth:{default:void 0},minHeight:{default:void 0},maxHeight:{default:void 0},extensions:{default:()=>[]},editorClass:{default:void 0},errorMessages:{default:()=>[]}},emits:["enter","change","update:modelValue","update:markdownTheme"],setup(e,{expose:t,emit:n}){const r=e,a=n,o=f.useAttrs(),i=Vv(),{state:s,isFullscreen:l}=FIe(),{markdownThemeStyle:u}=Lj(f.computed(()=>r.markdownTheme),w=>{a("update:markdownTheme",w)}),c=f.computed(()=>{const w=xIe(r.extensions,s.extensions,"name");return[...s.extensions.map((x,C)=>{const _=r.extensions.find(k=>k.name===x.name);return _?x.configure(_.options):x}),...w].map((x,C)=>x.configure({sort:C}))}),d=new cOe({content:r.modelValue,editorProps:{handleKeyDown:Qy(function(w,x){return x.key==="Enter"&&o.enter&&!x.shiftKey?(a("enter"),!0):!1},fD)},onUpdate:Qy(({editor:w})=>{const x=g(w,r.output);a("update:modelValue",x),a("change",{editor:w,output:x})},fD),extensions:f.unref(c),autofocus:!1,editable:!r.disabled,injectCSS:!0}),{t:h}=Uu(),p=f.computed(()=>tm(r.dark)?r.dark:tm(i.current.value.dark)?i.current.value.dark:!1),v=f.computed(()=>[{__dark:f.unref(p),...f.unref(u)},r.editorClass]),m=f.computed(()=>{const w=$y(r.maxWidth),x={maxWidth:w,width:w?"100%":void 0,margin:w?"0 auto":void 0,backgroundColor:f.unref(p)?"#1E1E1E":"#FFFFFF"};if(f.unref(l))return{height:"100%",overflowY:"auto",...x};const C=$y(r.minHeight),_=$y(r.maxHeight);return{minHeight:C,maxHeight:_,overflowY:"auto",...x}});function g(w,x){return r.removeDefaultWrapper?x==="html"?w.isEmpty?"":w.getHTML():x==="json"?w.isEmpty?{}:w.getJSON():x==="text"?w.isEmpty?"":w.getText():"":x==="html"?w.getHTML():x==="json"?w.getJSON():x==="text"?w.getText():""}const y=Qy(w=>{if(!d)return;const x=g(d,r.output);if(_Ie(x,w))return;const{from:C,to:_}=d.state.selection;d.commands.setContent(w,!1),d.commands.setTextSelection({from:C,to:_})},Vke),b=w=>d?.setEditable(!w);return f.watch(()=>r.modelValue,y),f.watch(()=>r.disabled,b),f.onUnmounted(()=>d?.destroy()),t({editor:d}),(w,x)=>{const C=aI,_=la,k=Nl,A=Lu,E=Vi,M=Ia,D=HI;return f.unref(d)?(f.openBlock(),f.createElementBlock("div",{key:0,class:f.normalizeClass(["vuetify-pro-tiptap",{dense:w.dense}])},[f.createVNode(D,{theme:p.value?"dark":"light"},{default:f.withCtx(()=>[w.hideBubble?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(pOe,{key:0,editor:f.unref(d),disabled:w.disableToolbar},null,8,["editor","disabled"])),f.createVNode(M,{class:"pt-0","hide-details":"auto","error-messages":w.errorMessages},{default:f.withCtx(()=>[f.createVNode(E,f.mergeProps({flat:w.flat,outlined:w.outlined,color:p.value?"grey-darken-4":"grey-lighten-4"},w.$attrs,{style:{borderColor:w.$attrs["error-messages"]?"#ff5252":void 0,width:"100%"},class:["vuetify-pro-tiptap-editor",{"vuetify-pro-tiptap-editor--fullscreen":f.unref(l)}]}),{default:f.withCtx(()=>[w.label&&!f.unref(l)?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createVNode(C,{class:f.normalizeClass(p.value?"bg-grey-darken-3":"bg-grey-lighten-3")},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(w.label),1)]),_:1},8,["class"]),f.createVNode(_)],64)):f.createCommentVNode("",!0),w.hideToolbar?f.createCommentVNode("",!0):(f.openBlock(),f.createBlock(vOe,{key:1,class:"vuetify-pro-tiptap-editor__toolbar",editor:f.unref(d),disabled:w.disableToolbar},null,8,["editor","disabled"])),f.renderSlot(w.$slots,"editor",f.normalizeProps(f.guardReactiveProps({editor:f.unref(d),props:{class:"vuetify-pro-tiptap-editor__content","data-testid":"value"}})),()=>[f.createVNode(f.unref(dOe),{class:f.normalizeClass(["vuetify-pro-tiptap-editor__content",v.value]),style:f.normalizeStyle(m.value),editor:f.unref(d),"data-testid":"value"},null,8,["class","style","editor"])]),f.renderSlot(w.$slots,"bottom",f.normalizeProps(f.guardReactiveProps({editor:f.unref(d)})),()=>[f.createVNode(A,{class:"px-4",density:"compact",flat:""},{default:f.withCtx(()=>[f.createVNode(k),f.unref(AIe)(f.unref(d),"characterCount")?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createElementVNode("span",mOe,f.toDisplayString(f.unref(d).storage.characterCount.words())+" "+f.toDisplayString(f.unref(h)("editor.words")),1),f.createElementVNode("span",gOe,f.toDisplayString(f.unref(d).storage.characterCount.characters())+" "+f.toDisplayString(f.unref(h)("editor.characters")),1)],64)):f.createCommentVNode("",!0)]),_:1})])]),_:3},16,["flat","outlined","color","style","class"])]),_:3},8,["error-messages"])]),_:3},8,["theme"])],2)):f.createCommentVNode("",!0)}}}),yOe={a:["href","title","target"],span:["style"],blockquote:["class","style"],p:["class","style"],hr:[],pre:[],code:[],strong:[],img:["src","alt","title","width","height","style","data-display"],label:["contenteditable"],input:["type","value","checked"],div:["class","style"],iframe:["src","allowfullscreen","frameborder","width","height"],em:[],s:[],mark:[],h1:["class","style"],h2:["class","style"],h3:["class","style"],h4:["class","style"],h5:["class","style"],h6:["class","style"],ul:["class","data-type"],li:["class","data-checked","itemtypename"],ol:[],u:[],table:["class","style"],colgroup:[],col:["style"],tbody:["class","style"],tr:["class","style"],th:["class","style","colspan","rowspan"],td:["class","style","colspan","rowspan"],br:[]},bOe=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),wOe=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var nP;const SOe=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),xOe=(nP=String.fromCodePoint)!==null&&nP!==void 0?nP:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function _Oe(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=SOe.get(e))!==null&&t!==void 0?t:e}var Na;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Na||(Na={}));const COe=32;var wd;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(wd||(wd={}));function rP(e){return e>=Na.ZERO&&e<=Na.NINE}function TOe(e){return e>=Na.UPPER_A&&e<=Na.UPPER_F||e>=Na.LOWER_A&&e<=Na.LOWER_F}function kOe(e){return e>=Na.UPPER_A&&e<=Na.UPPER_Z||e>=Na.LOWER_A&&e<=Na.LOWER_Z||rP(e)}function AOe(e){return e===Na.EQUALS||kOe(e)}var Oa;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Oa||(Oa={}));var Sd;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Sd||(Sd={}));class EOe{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Oa.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Sd.Strict}startEntity(t){this.decodeMode=t,this.state=Oa.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Oa.EntityStart:return t.charCodeAt(n)===Na.NUM?(this.state=Oa.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Oa.NamedEntity,this.stateNamedEntity(t,n));case Oa.NumericStart:return this.stateNumericStart(t,n);case Oa.NumericDecimal:return this.stateNumericDecimal(t,n);case Oa.NumericHex:return this.stateNumericHex(t,n);case Oa.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|COe)===Na.LOWER_X?(this.state=Oa.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Oa.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const o=r-n;this.result=this.result*Math.pow(a,o)+Number.parseInt(t.substr(n,o),a),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,o!==0){if(i===Na.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Sd.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&wd.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~wd.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Oa.NamedEntity:return this.result!==0&&(this.decodeMode!==Sd.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Oa.NumericDecimal:return this.emitNumericEntity(0,2);case Oa.NumericHex:return this.emitNumericEntity(0,3);case Oa.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Oa.EntityStart:return 0}}}function CZ(e){let t="";const n=new EOe(e,r=>t+=xOe(r));return function(r,a){let o=0,i=0;for(;(i=r.indexOf("&",i))>=0;){t+=r.slice(o,i),n.startEntity(a);const l=n.write(r,i+1);if(l<0){o=i+n.end();break}o=i+l,i=l===0?o+1:o}const s=t+r.slice(o);return t="",s}}function MOe(e,t,n,r){const a=(t&wd.BRANCH_LENGTH)>>7,o=t&wd.JUMP_TABLE;if(a===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=a?-1:e[n+l]-1}let i=n,s=i+a-1;for(;i<=s;){const l=i+s>>>1,u=e[l];if(ur)s=l-1;else return e[l+a]}return-1}const IOe=CZ(bOe);CZ(wOe);function DOe(e,t=Sd.Legacy){return IOe(e,t)}var Er;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(Er||(Er={}));var cs;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(cs||(cs={}));const TZ=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,VOe=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,POe=new Map([[126,cs.Element],[94,cs.Start],[36,cs.End],[42,cs.Any],[33,cs.Not],[124,cs.Hyphen]]),LOe=new Set(["has","not","matches","is","where","host","host-context"]);function NOe(e){switch(e.type){case Er.Adjacent:case Er.Child:case Er.Descendant:case Er.Parent:case Er.Sibling:case Er.ColumnCombinator:return!0;default:return!1}}const OOe=new Set(["contains","icontains"]);function ROe(e,t,n){const r=parseInt(t,16)-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function Eb(e){return e.replace(VOe,ROe)}function aP(e){return e===39||e===34}function kZ(e){return e===32||e===9||e===10||e===12||e===13}function BOe(e){const t=[],n=AZ(t,`${e}`,0);if(n0&&n0&&NOe(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function u(h){if(r.length>0&&r[r.length-1].type===Er.Descendant){r[r.length-1].type=h;return}l(),r.push({type:h})}function c(h,p){r.push({type:Er.Attribute,name:h,action:p,value:a(1),namespace:null,ignoreCase:"quirks"})}function d(){if(r.length&&r[r.length-1].type===Er.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");e.push(r)}if(o(0),t.length===n)return n;e:for(;n/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\xA0/g," ").replace(/\xAD/g,"­")}var EZ=e=>DOe(e);function FOe(e,t,n,r){if(typeof t=="function")return t({props:{...n,children:r},attrs:n,children:r,h:e.h,context:e});{let a=!0,o;if(t?t.toLowerCase()==="fragment"?(o=e.document.createDocumentFragment(),a=!1):o=e.document.createElement(t):o=e.document.createElement("div"),n&&a){const i=o;for(let[s,l]of Object.entries(n)){s=s.toString();const u=s.toLowerCase();u==="classname"?i.className=l:u==="on"?Object.entries(l).forEach(([c,d])=>{i.setAttribute(`on${c}`,String(d))}):l!==!1&&l!=null&&(l===!0?i.setAttribute(s,s):i.setAttribute(s,l.toString()))}}if(r)for(const i of r){const s=Array.isArray(i)?[...i]:[i];for(const l of s)l&&l!==!1&&l!=null&&(typeof l!="object"?o.appendChild(e.document.createTextNode(l.toString())):o.appendChild(l))}return o}}function MZ(e,t,...n){return typeof e=="object"&&(e="fragment",n=e.children,t=e.attrs),Array.isArray(t)?(n=[t],t={}):t?t.attrs&&(t={...t.attrs,...t},delete t.attrs):t={},{tag:e,attrs:t,children:typeof n[0]=="string"?n:n.flat(Number.POSITIVE_INFINITY)}}function zOe(e){return e.h=function(t,n,...r){const{tag:a,attrs:o,children:i}=MZ(t,n,r);return FOe(e,a,o,i)},e.h}var IZ={};function HOe(e){let t=IZ[e];return t==null&&(t=BOe(e),IZ[e]=t),t}function WOe(e,t,{debug:n=!1}={}){for(const r of HOe(e)){const a=(o,i)=>{let s=!1;for(const l of i){const{type:u,name:c,action:d,value:h,_ignoreCase:p=!0,data:v}=l;if(u==="attribute")d==="equals"?s=o.getAttribute(c)===h:d==="start"?s=!!o.getAttribute(c)?.startsWith(h):d==="end"?s=!!o.getAttribute(c)?.endsWith(h):d==="element"?c==="class"?s=o.classList.contains(h):s=!!o.getAttribute(c)?.includes(h):d==="exists"?s=o.hasAttribute(c):d==="any"?s=!!o.getAttribute(c)?.includes(h):console.warn("Unknown CSS selector action",d);else if(u==="tag")s=o.tagName===c.toUpperCase();else if(u==="universal")s=!0;else if(u==="pseudo"){if(c==="not"){let m=!0;v.forEach(g=>{a(o,g)||(m=!1)}),s=!m}}else console.warn("Unknown CSS selector type",u,e,i);if(!s)break}return s};if(a(t,r))return!0}return!1}var GOe=Symbol.for("nodejs.util.inspect.custom"),DZ={fontWeight:"bold"},VZ={fontStyle:"italic"},PZ={backgroundColor:"rgb(255, 250, 165)"},LZ={textDecorations:"underline"},iP={textDecorations:"line-through"},UOe={b:DZ,strong:DZ,em:VZ,i:VZ,mark:PZ,u:LZ,a:LZ,s:iP,del:iP,ins:PZ,strike:iP};function NZ(e){return e.toLowerCase().replace(/[^a-z0-9]+(.)/gi,(t,n)=>n.toUpperCase())}var $u=class GE{constructor(){this.append=this.appendChild,this._parentNode=null,this._childNodes=[]}get nodeType(){return console.error("Subclasses should define nodeType!"),0}get nodeName(){return console.error("Subclasses should define nodeName!"),""}get nodeValue(){return null}cloneNode(t=!1){const n=new this.constructor;return t&&(n._childNodes=this._childNodes.map(r=>r.cloneNode(!0)),n._fixChildNodesParent()),n}_fixChildNodesParent(){this._childNodes.forEach(t=>t._parentNode=this)}insertBefore(t,n){if(t!==n){let r=n?this._childNodes.indexOf(n):0;r<0&&(r=0),this._childNodes.splice(r,0,t),this._fixChildNodesParent()}}appendChild(t){if(t!=null){if(t===this){console.warn("Cannot appendChild to self");return}if(t instanceof lP&&console.warn("No defined how to append a document to a node!",t),t instanceof sP)for(const n of[...t._childNodes])this.appendChild(n);else if(Array.isArray(t))for(const n of[...t])this.appendChild(n);else if(t instanceof GE)t.remove(),this._childNodes.push(t);else try{const n=typeof t=="string"?t:JSON.stringify(t,null,2);this._childNodes.push(new _m(n))}catch(n){console.error(`The data ${t} to be added to ${this.render()} is problematic: ${n}`)}this._fixChildNodesParent()}}removeChild(t){const n=this._childNodes.indexOf(t);n>=0&&(t._parentNode=null,this._childNodes.splice(n,1),this._fixChildNodesParent())}remove(){return this?.parentNode?.removeChild(this),this}replaceChildren(...t){this._childNodes=t.map(n=>typeof n=="string"?new _m(n):n.remove()),this._fixChildNodesParent()}replaceWith(...t){const n=this._parentNode;if(n){const r=this._indexInParent();r>=0&&(t=t.map(a=>typeof a=="string"?new _m(a):a.remove()),n._childNodes.splice(r,1,...t),this._parentNode=null,n._fixChildNodesParent())}}_indexInParent(){return this._parentNode?this._parentNode.childNodes.indexOf(this):-1}get parentNode(){return this._parentNode}get childNodes(){return this._childNodes||[]}get children(){return this._childNodes||[]}get firstChild(){return this._childNodes[0]}get lastChild(){return this._childNodes[this._childNodes.length-1]}get nextSibling(){const t=this._indexInParent();return t!=null&&this.parentNode.childNodes[t+1]||null}get previousSibling(){const t=this._indexInParent();return t>0&&this.parentNode.childNodes[t-1]||null}flatten(){const t=[];this instanceof el&&t.push(this);for(const n of this._childNodes)t.push(...n.flatten());return t}flattenNodes(){const t=[];t.push(this);for(const n of this._childNodes)t.push(...n.flattenNodes());return t}render(){return""}get textContent(){return this._childNodes.map(t=>t.textContent).join("")}set textContent(t){this._childNodes=[],t&&this.appendChild(new _m(t.toString()))}contains(t){return t===this?!0:this._childNodes.some(n=>n.contains(t))}get ownerDocument(){return this.nodeType===GE.DOCUMENT_NODE||this.nodeType===GE.DOCUMENT_FRAGMENT_NODE?this:this?._parentNode?.ownerDocument}toString(){return`${this.nodeName}`}[GOe](){return`${this.constructor.name} "${this.render()}"`}};$u.ELEMENT_NODE=1,$u.TEXT_NODE=3,$u.CDATA_SECTION_NODE=4,$u.PROCESSING_INSTRUCTION_NODE=7,$u.COMMENT_NODE=8,$u.DOCUMENT_NODE=9,$u.DOCUMENT_TYPE_NODE=10,$u.DOCUMENT_FRAGMENT_NODE=11;var xd=$u,_m=class extends xd{get nodeType(){return xd.TEXT_NODE}get nodeName(){return"#text"}get nodeValue(){return this._text||""}get textContent(){return this.nodeValue}constructor(e=""){super(),this._text=e}render(){const e=this.parentNode?.tagName;return e==="SCRIPT"||e==="STYLE"?this._text:oP(this._text)}cloneNode(e=!1){const t=super.cloneNode(e);return t._text=this._text,t}},OZ=class extends xd{getElementById(e){return this.flatten().find(t=>t._attributes.id===e)}getElementsByClassName(e){return this.flatten().filter(t=>t.classList.contains(e))}matches(e){return WOe(e,this)}querySelectorAll(e){return this.flatten().filter(t=>t.matches(e))}querySelector(e){return this.flatten().find(t=>t.matches(e))}parent(e){return this.matches(e)?this:this.parentNode==null?null:this.parentNode?.parent(e)}handle(e,t){let n=0;for(const r of this.querySelectorAll(e))t(r,n++)}},el=class extends OZ{get nodeType(){return xd.ELEMENT_NODE}get nodeName(){return this._nodeName}constructor(e="div",t={}){super(),this._originalTagName=e,this._nodeName=(e||"").toUpperCase(),this._attributes=t||{}}cloneNode(e=!1){const t=super.cloneNode(e);return t._originalTagName=this._originalTagName,t._nodeName=this._nodeName,t._attributes=Object.assign({},this._attributes),t}get attributes(){return Object.entries(this._attributes).map(([e,t])=>({name:e,value:t}))}get attributesObject(){return{...this._attributes}}_findAttributeName(e){const t=e.toLowerCase();return Object.keys(this._attributes).find(n=>t===n.toLowerCase())||null}setAttribute(e,t){this.removeAttribute(e),this._attributes[e]=t,this._styles=void 0,this._dataset=void 0}getAttribute(e){const t=this._findAttributeName(e),n=t?this._attributes[t]:null;return n==null?null:typeof n=="string"?n:""}removeAttribute(e){this._findAttributeName(String(e))&&delete this._attributes[e]}hasAttribute(e){const t=this._findAttributeName(e);return t?this._attributes[t]!=null:!1}get style(){if(this._styles==null){const e={};let t=0;const n=this.getAttribute("style");if(n){let r;const a=/\s*([\w-]+)\s*:\s*((url\(.*?\)[^;]*|[^;]+))/gi;for(;r=a.exec(n);){++t;const o=r[1],i=r[2].trim();e[o]=i,e[NZ(o)]=i}}this._styles={get length(){return t},getPropertyValue(r){return e[r]},...UOe[this.tagName.toLowerCase()],...e}}return this._styles}get dataset(){if(this._dataset==null){const e={};for(const[t,n]of Object.entries(this._attributes))t.startsWith("data-")&&(e[t.slice(5)]=n,e[NZ(t.slice(5))]=n);this._dataset=e}return this._dataset}get tagName(){return this._nodeName}setTagName(e){this._nodeName=e.toUpperCase()}get id(){return this._attributes.id||null}set id(e){e==null?delete this._attributes.id:this._attributes.id=e}get src(){return this._attributes.src}set src(e){e==null?delete this._attributes.src:this._attributes.src=e}getElementsByTagName(e){e=e.toUpperCase();const t=this.flatten();return e!=="*"?t.filter(n=>n.tagName===e):t}setInnerHTML(e){}get innerHTML(){return this._childNodes.map(e=>e.render(r_)).join("")}set innerHTML(e){this.setInnerHTML(e)}get outerHTML(){return this.render(a_)}get className(){return this._attributes.class||""}set className(e){Array.isArray(e)?e=e.filter(t=>!!t).join(" "):typeof e=="object"&&(e=Object.entries(e).filter(([t,n])=>!!n).map(([t,n])=>t).join(" ")),this._attributes.class=e}get classList(){const e=String(this.className??"").trim().split(/\s+/g)||[];return{contains(t){return e.includes(t)},add:t=>{e.includes(t)||(e.push(t),this.className=e)},remove:t=>{const n=e.indexOf(t);n>=0&&(e.splice(n,1),this.className=e)}}}render(e=a_){return e(this._originalTagName||this.tagName,this._attributes,this._childNodes.map(t=>t.render(e)).join(""))}},RZ=class Zge extends xd{get nodeName(){return super.nodeName}get nodeValue(){return super.nodeValue}get nodeType(){return Zge.DOCUMENT_TYPE_NODE}render(){return""}},sP=class Jge extends OZ{get nodeType(){return xd.DOCUMENT_FRAGMENT_NODE}get nodeName(){return"#document-fragment"}render(t=a_){return this._childNodes.map(n=>n.render(t)||[]).join("")}get innerHTML(){return this._childNodes.map(t=>t.render(r_)).join("")}createElement(t,n={}){return new el(t,n)}createDocumentFragment(){return new Jge}createTextNode(t){return new _m(t)}},lP=class extends sP{get nodeType(){return xd.DOCUMENT_NODE}get nodeName(){return"#document"}get documentElement(){return this.firstChild}render(e=a_){let t=super.render(e);return this.docType&&(t=this.docType.render()+t),t}},BZ=class extends lP{constructor(e=!1){if(super(),this.docType=new RZ,!e){const t=new el("html"),n=new el("body"),r=new el("head"),a=new el("title");t.appendChild(r),r.appendChild(a),t.appendChild(n),this.appendChild(t)}}get body(){let e=this.querySelector("body");if(!e){let t=this.querySelector("html");t||(t=new el("html"),this.appendChild(t)),e=new el("body"),t.appendChild(t)}return e}get title(){return this.querySelector("title")?.textContent||""}set title(e){const t=this.querySelector("title");t&&(t.textContent=e)}get head(){let e=this.querySelector("head");if(!e){let t=this.querySelector("html");t||(t=new el("html"),this.appendChild(t)),e=new el("head"),t.insertBefore(t)}return e}};function jOe(){return new lP}function YOe(){return new BZ}var FZ=jOe();zOe({document:FZ});var KOe={},XOe=KOe.hasOwnProperty;function zZ(e,t){return XOe.call(e,t)}var HZ=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","command"];function WZ(e,t,n={},r){const a=!(typeof r=="string"&&r===""||Array.isArray(r)&&(r.length===0||r.length===1&&r[0]==="")||r==null),o=[];if(t=t.replace(/__/g,":"),t!=="noop"&&t!==""){t!=="cdata"?o.push(`<${t}`):o.push("s[l]!=null).map(l=>{let u=s[l];return u=typeof u=="number"?`${u}px`:u,`${l.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${u}`}).join(";")}"`):s!==!1&&s!=null&&o.push(` ${i}="${oP(s.toString())}"`)}if(t!=="cdata"){if(e&&!a)return o.push(" />"),o.join("");o.push(">")}if(!e&&HZ.includes(t))return o.join("")}if(a){if(typeof r=="string")o.push(r);else if(r&&r.length>0){for(let i of r)if(i!=null&&i!==!1){Array.isArray(i)||(i=[i]);for(const s of i)s.startsWith("<")&&s.endsWith(">")||t==="script"||t==="style"?o.push(s):o.push(oP(s.toString()))}}}return n.html&&o.push(n.html),t!=="noop"&&t!==""&&(t!=="cdata"?o.push(``):o.push("]]>")),o.join("")}function r_(e,t,...n){const{tag:r,attrs:a,children:o}=MZ(e,t,n);return WZ(!1,r,a,o)}var a_=WZ.bind(null,!1);r_.firstLine="",r_.html=!0;var ZOe=/([^=\s]+)(\s*=\s*(("([^"]*)")|('([^']*)')|[^>\s]+))?/g,JOe=/^<\/([^>\s]+)[^>]*>/m,QOe=/^<([^>\s/]+)((\s+[^=>\s]+(\s*=\s*(("[^"]*")|('[^']*')|[^>\s]+))?)*)\s*(?:\/\s*)?>/m,qOe=/\s*\/\s*>\s*$/m,$Oe=class{constructor(e={}){this.attrRe=ZOe,this.endTagRe=JOe,this.startTagRe=QOe,this.defaults={ignoreWhitespaceText:!1},e.scanner&&(this.scanner=e.scanner),this.options=Object.assign({},this.defaults,e)}parse(e){let t=!1,n,r,a;for(;e.length;){if(e.substring(0,4)===""),n!==-1?(this.scanner.comment(e.substring(4,n)),e=e.substring(n+3),t=!1):t=!0;else if(e.substring(0,2)==="{const[a,o,i,s,l,u,c,d]=r;n[o]=d??u??s??!0}),n}};function eRe(e){if(typeof e!="string")throw console.error("parseHTML requires string, found",e),new Error("parseHTML requires string");const t=e.indexOf("/g,p=/"/g,v=/"/g,m=/&#([a-zA-Z0-9]*);?/gim,g=/:?/gim,y=/&newline;?/gim,b=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,w=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,x=/u\s*r\s*l\s*\(.*/gi;function C(N){return N.replace(p,""")}function _(N){return N.replace(v,'"')}function k(N){return N.replace(m,function(z,B){return B[0]==="x"||B[0]==="X"?String.fromCharCode(parseInt(B.substr(1),16)):String.fromCharCode(parseInt(B,10))})}function A(N){return N.replace(g,":").replace(y," ")}function E(N){for(var z="",B=0,F=N.length;B",F);if(G===-1)break;B=G+3}return z}function O(N){var z=N.split("");return z=z.filter(function(B){var F=B.charCodeAt(0);return F===127?!1:F<=31?F===10||F===13:!0}),z.join("")}return br.whiteList=r(),br.getDefaultWhiteList=r,br.onTag=o,br.onIgnoreTag=i,br.onTagAttr=s,br.onIgnoreTagAttr=l,br.safeAttrValue=c,br.escapeHtml=u,br.escapeQuote=C,br.unescapeQuote=_,br.escapeHtmlEntities=k,br.escapeDangerHtml5Entities=A,br.clearNonPrintableCharacter=E,br.friendlyAttrValue=M,br.escapeAttrValue=D,br.onIgnoreTagStripAll=V,br.StripTagBody=P,br.stripCommentTag=L,br.stripBlankChar=O,br.attributeWrapSign='"',br.cssFilter=a,br.getDefaultCSSWhiteList=t,br}var o_={},tJ;function nJ(){if(tJ)return o_;tJ=1;var e=pP();function t(d){var h=e.spaceIndex(d),p;return h===-1?p=d.slice(1,-1):p=d.slice(1,h+1),p=e.trim(p).toLowerCase(),p.slice(0,1)==="/"&&(p=p.slice(1)),p.slice(-1)==="/"&&(p=p.slice(0,-1)),p}function n(d){return d.slice(0,2)===""||b===w-1){v+=p(d.slice(m,g)),C=d.slice(g,b+1),x=t(C),v+=h(g,v.length,x,C,n(C)),m=b+1,g=!1;continue}if(_==='"'||_==="'")for(var k=1,A=d.charAt(b-k);A.trim()===""||A==="=";){if(A==="="){y=_;continue e}A=d.charAt(b-++k)}}else if(_===y){y=!1;continue}}return m0;h--){var p=d[h];if(p!==" ")return p==="="?h:-1}}function u(d){return d[0]==='"'&&d[d.length-1]==='"'||d[0]==="'"&&d[d.length-1]==="'"}function c(d){return u(d)?d.substr(1,d.length-2):d}return o_.parseTag=r,o_.parseAttr=o,o_}var vP,rJ;function iRe(){if(rJ)return vP;rJ=1;var e=hP().FilterCSS,t=eJ(),n=nJ(),r=n.parseTag,a=n.parseAttr,o=pP();function i(d){return d==null}function s(d){var h=o.spaceIndex(d);if(h===-1)return{html:"",closing:d[d.length-2]==="/"};d=o.trim(d.slice(h+1,-1));var p=d[d.length-1]==="/";return p&&(d=o.trim(d.slice(0,-1))),{html:d,closing:p}}function l(d){var h={};for(var p in d)h[p]=d[p];return h}function u(d){var h={};for(var p in d)Array.isArray(d[p])?h[p.toLowerCase()]=d[p].map(function(v){return v.toLowerCase()}):h[p.toLowerCase()]=d[p];return h}function c(d){d=l(d||{}),d.stripIgnoreTag&&(d.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),d.onIgnoreTag=t.onIgnoreTagStripAll),d.whiteList||d.allowList?d.whiteList=u(d.whiteList||d.allowList):d.whiteList=t.whiteList,this.attributeWrapSign=d.singleQuotedAttributeValue===!0?"'":t.attributeWrapSign,d.onTag=d.onTag||t.onTag,d.onTagAttr=d.onTagAttr||t.onTagAttr,d.onIgnoreTag=d.onIgnoreTag||t.onIgnoreTag,d.onIgnoreTagAttr=d.onIgnoreTagAttr||t.onIgnoreTagAttr,d.safeAttrValue=d.safeAttrValue||t.safeAttrValue,d.escapeHtml=d.escapeHtml||t.escapeHtml,this.options=d,d.css===!1?this.cssFilter=!1:(d.css=d.css||{},this.cssFilter=new e(d.css))}return c.prototype.process=function(d){if(d=d||"",d=d.toString(),!d)return"";var h=this,p=h.options,v=p.whiteList,m=p.onTag,g=p.onIgnoreTag,y=p.onTagAttr,b=p.onIgnoreTagAttr,w=p.safeAttrValue,x=p.escapeHtml,C=h.attributeWrapSign,_=h.cssFilter;p.stripBlankChar&&(d=t.stripBlankChar(d)),p.allowCommentTag||(d=t.stripCommentTag(d));var k=!1;p.stripIgnoreTagBody&&(k=t.StripTagBody(p.stripIgnoreTagBody,g),g=k.onIgnoreTag);var A=r(d,function(E,M,D,V,P){var L={sourcePosition:E,position:M,isClosing:P,isWhite:Object.prototype.hasOwnProperty.call(v,D)},O=m(D,V,L);if(!i(O))return O;if(L.isWhite){if(L.isClosing)return"";var N=s(V),z=v[D],B=a(N.html,function(F,G){var H=o.indexOf(z,F)!==-1,Y=y(D,F,G,H);return i(Y)?H?(G=w(D,F,G,_),G?F+"="+C+G+C:F):(Y=b(D,F,G,H),i(Y)?void 0:Y):Y});return V="<"+D,B&&(V+=" "+B),N.closing&&(V+=" /"),V+=">",V}else return O=g(D,V,L),i(O)?x(V):O},x);return k&&(A=k.remove(A)),A},vP=c,vP}var aJ;function sRe(){return aJ||(aJ=1,function(e,t){var n=eJ(),r=nJ(),a=iRe();function o(s,l){var u=new a(l);return u.process(s)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=a,function(){for(var s in n)t[s]=n[s];for(var l in r)t[l]=r[l]}(),typeof window<"u"&&(window.filterXSS=e.exports);function i(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}i()&&(self.filterXSS=e.exports)}(uP,uP.exports)),uP.exports}var lRe=sRe();const uRe=rRe(lRe),cRe=["innerHTML"],dRe=f.defineComponent({__name:"VuetifyViewer",props:{value:{default:""},dark:{type:Boolean,default:void 0},dense:{type:Boolean,default:!1},markdownTheme:{type:[String,Boolean],default:void 0},xss:{type:[Boolean,Array],default:!0},xssOptions:{default:()=>yOe},extensions:{default:()=>[]}},setup(e){const t=e,{state:n}=nx(),r=Vv(),{markdownThemeStyle:a}=Lj(f.computed(()=>t.markdownTheme)),o=f.computed(()=>[...n.extensions,...t.extensions]),i=f.computed(()=>tm(t.dark)?t.dark:tm(r.current.value.dark)?r.current.value.dark:!1),s=f.computed(()=>({__dark:f.unref(i),dense:t.dense,view:!0,...f.unref(a)})),l=f.computed(()=>qy(t.value)?t.value:nRe(t.value,f.unref(o))),u=f.computed(()=>{if(t.xss===!1)return f.unref(l);const c=f.unref(l).replace("https://youtu.be/","https://www.youtube.com/watch?v=").replace("watch?v=","embed/").replace("https://vimeo.com/","https://player.vimeo.com/video/"),d=t.xssOptions;return uRe(c,{whiteList:d,css:!1})});return(c,d)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["vuetify-pro-tiptap-editor__content",s.value]),style:{width:"100%"}},[f.renderSlot(c.$slots,"before"),f.createElementVNode("div",{class:"content",innerHTML:u.value},null,8,cRe),f.renderSlot(c.$slots,"after")],2))}}),fRe=Zn.create({name:"characterCount",addOptions(){return{limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(t=>t!=="").length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{const t=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)==="textSize"){const n=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(n)}return t.nodeSize},this.storage.words=e=>{const t=e?.node||this.editor.state.doc,n=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new pr({key:new qr("characterCount"),appendTransaction:(t,n,r)=>{if(e)return;const a=this.options.limit;if(a==null||a===0){e=!0;return}const o=this.storage.characters({node:r.doc});if(o>a){const i=o-a,s=0,l=i;console.warn(`[CharacterCount] Initial content exceeded limit of ${a} characters. Content was automatically trimmed.`);const u=r.tr.deleteRange(s,l);return e=!0,u}e=!0},filterTransaction:(t,n)=>{const r=this.options.limit;if(!t.docChanged||r===0||r===null||r===void 0)return!0;const a=this.storage.characters({node:n.doc}),o=this.storage.characters({node:t.doc});if(o<=r||a>r&&o>r&&o<=a)return!0;if(a>r&&o>r&&o>a||!t.getMeta("paste"))return!1;const i=t.selection.$head.pos,s=o-r,l=i-s,u=i;return t.deleteRange(l,u),!(this.storage.characters({node:t.doc})>r)}})]}}),hRe=Ar.create({name:"doc",topNode:!0,content:"block+"});function pRe(e={}){return new pr({view(t){return new vRe(t,e)}})}class vRe{constructor(t,n){var r;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=n.width)!==null&&r!==void 0?r:1,this.color=n.color===!1?void 0:n.color||"black",this.class=n.class,this.handlers=["dragover","dragend","drop","dragleave"].map(a=>{let o=i=>{this[a](i)};return t.dom.addEventListener(a,o),{name:a,handler:o}})}destroy(){this.handlers.forEach(({name:t,handler:n})=>this.editorView.dom.removeEventListener(t,n))}update(t,n){this.cursorPos!=null&&n.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent,r,a=this.editorView.dom,o=a.getBoundingClientRect(),i=o.width/a.offsetWidth,s=o.height/a.offsetHeight;if(n){let d=t.nodeBefore,h=t.nodeAfter;if(d||h){let p=this.editorView.nodeDOM(this.cursorPos-(d?d.nodeSize:0));if(p){let v=p.getBoundingClientRect(),m=d?v.bottom:v.top;d&&h&&(m=(m+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let g=this.width/2*s;r={left:v.left,right:v.right,top:m-g,bottom:m+g}}}}if(!r){let d=this.editorView.coordsAtPos(this.cursorPos),h=this.width/2*i;r={left:d.left-h,right:d.left+h,top:d.top,bottom:d.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.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",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n);let u,c;if(!l||l==document.body&&getComputedStyle(l).position=="static")u=-pageXOffset,c=-pageYOffset;else{let d=l.getBoundingClientRect(),h=d.width/l.offsetWidth,p=d.height/l.offsetHeight;u=d.left-l.scrollLeft*h,c=d.top-l.scrollTop*p}this.element.style.left=(r.left-u)/i+"px",this.element.style.top=(r.top-c)/s+"px",this.element.style.width=(r.right-r.left)/i+"px",this.element.style.height=(r.bottom-r.top)/s+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let n=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),r=n&&n.inside>=0&&this.editorView.state.doc.nodeAt(n.inside),a=r&&r.type.spec.disableDropCursor,o=typeof a=="function"?a(this.editorView,n,t):a;if(n&&!o){let i=n.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let s=kY(this.editorView.state.doc,i,this.editorView.dragging.slice);s!=null&&(i=s)}this.setCursor(i),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){this.editorView.dom.contains(t.relatedTarget)||this.setCursor(null)}}const mRe=Zn.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[pRe(this.options)]}}),gRe=Zn.create({name:"focus",addOptions(){return{className:"has-focus",mode:"all"}},addProseMirrorPlugins(){return[new pr({key:new qr("focus"),props:{decorations:({doc:e,selection:t})=>{const{isEditable:n,isFocused:r}=this.editor,{anchor:a}=t,o=[];if(!n||!r)return vr.create(e,[]);let i=0;this.options.mode==="deepest"&&e.descendants((l,u)=>{if(!l.isText){if(!(a>=u&&a<=u+l.nodeSize-1))return!1;i+=1}});let s=0;return e.descendants((l,u)=>{if(l.isText||!(a>=u&&a<=u+l.nodeSize-1))return!1;if(s+=1,this.options.mode==="deepest"&&i-s>0||this.options.mode==="shallowest"&&s>1)return this.options.mode==="deepest";o.push(Xa.node(u,u+l.nodeSize,{class:this.options.className}))}),vr.create(e,o)}}})]}});class Rr extends Rt{constructor(t){super(t,t)}map(t,n){let r=t.resolve(n.map(this.head));return Rr.valid(r)?new Rr(r):Rt.near(r)}content(){return nt.empty}eq(t){return t instanceof Rr&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Rr(t.resolve(n.pos))}getBookmark(){return new mP(this.anchor)}static valid(t){let n=t.parent;if(n.isTextblock||!yRe(t)||!bRe(t))return!1;let r=n.type.spec.allowGapCursor;if(r!=null)return r;let a=n.contentMatchAt(t.index()).defaultType;return a&&a.isTextblock}static findGapCursorFrom(t,n,r=!1){e:for(;;){if(!r&&Rr.valid(t))return t;let a=t.pos,o=null;for(let i=t.depth;;i--){let s=t.node(i);if(n>0?t.indexAfter(i)0){o=s.child(n>0?t.indexAfter(i):t.index(i)-1);break}else if(i==0)return null;a+=n;let l=t.doc.resolve(a);if(Rr.valid(l))return l}for(;;){let i=n>0?o.firstChild:o.lastChild;if(!i){if(o.isAtom&&!o.isText&&!Ct.isSelectable(o)){t=t.doc.resolve(a+o.nodeSize*n),r=!1;continue e}break}o=i,a+=n;let s=t.doc.resolve(a);if(Rr.valid(s))return s}return null}}}Rr.prototype.visible=!1,Rr.findFrom=Rr.findGapCursorFrom,Rt.jsonID("gapcursor",Rr);class mP{constructor(t){this.pos=t}map(t){return new mP(t.map(this.pos))}resolve(t){let n=t.resolve(this.pos);return Rr.valid(n)?new Rr(n):Rt.near(n)}}function yRe(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let a=r.child(n-1);;a=a.lastChild){if(a.childCount==0&&!a.inlineContent||a.isAtom||a.type.spec.isolating)return!0;if(a.inlineContent)return!1}}return!0}function bRe(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let a=r.child(n);;a=a.firstChild){if(a.childCount==0&&!a.inlineContent||a.isAtom||a.type.spec.isolating)return!0;if(a.inlineContent)return!1}}return!0}function wRe(){return new pr({props:{decorations:CRe,createSelectionBetween(e,t,n){return t.pos==n.pos&&Rr.valid(n)?new Rr(n):null},handleClick:xRe,handleKeyDown:SRe,handleDOMEvents:{beforeinput:_Re}}})}const SRe=xV({ArrowLeft:i_("horiz",-1),ArrowRight:i_("horiz",1),ArrowUp:i_("vert",-1),ArrowDown:i_("vert",1)});function i_(e,t){const n=e=="vert"?t>0?"down":"up":t>0?"right":"left";return function(r,a,o){let i=r.selection,s=t>0?i.$to:i.$from,l=i.empty;if(i instanceof At){if(!o.endOfTextblock(n)||s.depth==0)return!1;l=!1,s=r.doc.resolve(t>0?s.after():s.before())}let u=Rr.findGapCursorFrom(s,t,l);return u?(a&&a(r.tr.setSelection(new Rr(u))),!0):!1}}function xRe(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!Rr.valid(r))return!1;let a=e.posAtCoords({left:n.clientX,top:n.clientY});return a&&a.inside>-1&&Ct.isSelectable(e.state.doc.nodeAt(a.inside))?!1:(e.dispatch(e.state.tr.setSelection(new Rr(r))),!0)}function _Re(e,t){if(t.inputType!="insertCompositionText"||!(e.state.selection instanceof Rr))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let a=Oe.empty;for(let i=r.length-1;i>=0;i--)a=Oe.from(r[i].createAndFill(null,a));let o=e.state.tr.replace(n.pos,n.pos,new nt(a,0,0));return o.setSelection(At.near(o.doc.resolve(n.pos+1))),e.dispatch(o),!1}function CRe(e){if(!(e.selection instanceof Rr))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",vr.create(e.doc,[Xa.widget(e.selection.head,t,{key:"gapcursor"})])}const TRe=Zn.create({name:"gapCursor",addProseMirrorPlugins(){return[wRe()]},extendNodeSchema(e){var t;const n={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:(t=on(mt(e,"allowGapCursor",n)))!==null&&t!==void 0?t:null}}}),kRe=Ar.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:e}){return["br",zn(this.options.HTMLAttributes,e)]},renderText(){return` +`},addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{const{selection:a,storedMarks:o}=n;if(a.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:s}=r.extensionManager,l=o||a.$to.parentOffset&&a.$from.marks();return t().insertContent({type:this.name}).command(({tr:u,dispatch:c})=>{if(c&&l&&i){const d=l.filter(h=>s.includes(h.type.name));u.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),ARe=Ar.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:e}){return["li",zn(this.options.HTMLAttributes,e),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),ERe=Zn.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new pr({key:new qr("placeholder"),props:{decorations:({doc:e,selection:t})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=t,a=[];if(!n)return null;const o=this.editor.isEmpty;return e.descendants((i,s)=>{const l=r>=s&&r<=s+i.nodeSize,u=!i.isLeaf&&Zx(i);if((l||!this.options.showOnlyCurrent)&&u){const c=[this.options.emptyNodeClass];o&&c.push(this.options.emptyEditorClass);const d=Xa.node(s,s+i.nodeSize,{class:c.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:i,pos:s,hasAnchor:l}):this.options.placeholder});a.push(d)}return this.options.includeChildren}),vr.create(e,a)}}})]}}),MRe=Ar.create({name:"text",group:"inline"}),IRe=e=>{if(!e.children.length)return;const t=e.querySelectorAll("span");t&&t.forEach(n=>{var r,a;const o=n.getAttribute("style"),i=(a=(r=n.parentElement)===null||r===void 0?void 0:r.closest("span"))===null||a===void 0?void 0:a.getAttribute("style");n.setAttribute("style",`${i};${o}`)})},DRe=si.create({name:"textStyle",priority:101,addOptions(){return{HTMLAttributes:{},mergeNestedSpanStyles:!1}},parseHTML(){return[{tag:"span",getAttrs:e=>e.hasAttribute("style")?(this.options.mergeNestedSpanStyles&&IRe(e),{}):!1}]},renderHTML({HTMLAttributes:e}){return["span",zn(this.options.HTMLAttributes,e),0]},addCommands(){return{removeEmptyTextStyle:()=>({tr:e})=>{const{selection:t}=e;return e.doc.nodesBetween(t.from,t.to,(n,r)=>{if(n.isTextblock)return!0;n.marks.filter(a=>a.type===this.type).some(a=>Object.values(a.attrs).some(o=>!!o))||e.removeMark(r,r+n.nodeSize,this.type)}),!0}}}});var VRe="M19,12H17V15H14V17H19V12M7,9H10V7H5V12H7V9M21,3H3A2,2 0 0,0 1,5V19A2,2 0 0,0 3,21H21A2,2 0 0,0 23,19V5A2,2 0 0,0 21,3M21,19H3V5H21V19Z",PRe="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",LRe="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",NRe="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",ORe="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3M11 8H9V10C9 11.1 8.1 12 7 12C8.1 12 9 12.9 9 14V16H11V18H9C7.9 18 7 17.1 7 16V15C7 13.9 6.1 13 5 13V11C6.1 11 7 10.1 7 9V8C7 6.9 7.9 6 9 6H11V8M19 13C17.9 13 17 13.9 17 15V16C17 17.1 16.1 18 15 18H13V16H15V14C15 12.9 15.9 12 17 12C15.9 12 15 11.1 15 10V8H13V6H15C16.1 6 17 6.9 17 8V9C17 10.1 17.9 11 19 11V13Z",RRe="M14.6,16.6L19.2,12L14.6,7.4L16,6L22,12L16,18L14.6,16.6M9.4,16.6L4.8,12L9.4,7.4L8,6L2,12L8,18L9.4,16.6Z",BRe="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",FRe="M13.09 20H6L12 14L13.88 15.88C14.5 14.9 15.36 14.1 16.4 13.6L18 12V13.09C18.33 13.04 18.66 13 19 13C19.34 13 19.67 13.04 20 13.09V8L14 2H6C4.89 2 4 2.89 4 4V20C4 21.1 4.89 22 6 22H13.81C13.46 21.39 13.21 20.72 13.09 20M13 3.5L18.5 9H13V3.5M8 9C9.11 9 10 9.9 10 11S9.11 13 8 13 6 12.11 6 11 6.9 9 8 9M20 15V18H23V20H20V23H18V20H15V18H18V15H20Z",oJ="M3,3H21V5H3V3M7,7H17V9H7V7M3,11H21V13H3V11M7,15H17V17H7V15M3,19H21V21H3V19Z",zRe="M3,3H21V5H3V3M3,7H21V9H3V7M3,11H21V13H3V11M3,15H21V17H3V15M3,19H21V21H3V19Z",HRe="M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z",WRe="M3,3H21V5H3V3M9,7H21V9H9V7M3,11H21V13H3V11M9,15H21V17H9V15M3,19H21V21H3V19Z",GRe="M13.5,15.5H10V12.5H13.5A1.5,1.5 0 0,1 15,14A1.5,1.5 0 0,1 13.5,15.5M10,6.5H13A1.5,1.5 0 0,1 14.5,8A1.5,1.5 0 0,1 13,9.5H10M15.6,10.79C16.57,10.11 17.25,9 17.25,8C17.25,5.74 15.5,4 13.25,4H7V18H14.04C16.14,18 17.75,16.3 17.75,14.21C17.75,12.69 16.89,11.39 15.6,10.79Z",URe="M6,5V5.18L8.82,8H11.22L10.5,9.68L12.6,11.78L14.21,8H20V5H6M3.27,5L2,6.27L8.97,13.24L6.5,19H9.5L11.07,15.34L16.73,21L18,19.73L3.55,5.27L3.27,5Z",jRe="M4,17L6.75,14.25L6.72,14.23C6.14,13.64 6.14,12.69 6.72,12.11L11.46,7.37L15.7,11.61L10.96,16.35C10.39,16.93 9.46,16.93 8.87,16.37L8.24,17H4M15.91,2.91C16.5,2.33 17.45,2.33 18.03,2.91L20.16,5.03C20.74,5.62 20.74,6.57 20.16,7.16L16.86,10.45L12.62,6.21L15.91,2.91Z",YRe="M3,7H9V13H3V7M3,3H21V5H3V3M21,7V9H11V7H21M21,11V13H11V11H21M3,15H17V17H3V15M3,19H21V21H3V19Z",KRe="M3,7H9V13H3V7M3,3H21V5H3V3M21,11V13H11V11H21M3,15H17V17H3V15M3,19H21V21H3V19Z",XRe="M15,7H21V13H15V7M3,3H21V5H3V3M13,7V9H3V7H13M9,11V13H3V11H9M3,15H17V17H3V15M3,19H21V21H3V19Z",ZRe="M17,8H20V20H21V21H17V20H18V17H14L12.5,20H14V21H10V20H11L17,8M18,9L14.5,16H18V9M5,3H10C11.11,3 12,3.89 12,5V16H9V11H6V16H3V5C3,3.89 3.89,3 5,3M6,5V9H9V5H6Z",JRe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M14,18V16H16V6.31L13.5,7.75V5.44L16,4H18V16H20V18H14Z",QRe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M21,18H15A2,2 0 0,1 13,16C13,15.47 13.2,15 13.54,14.64L18.41,9.41C18.78,9.05 19,8.55 19,8A2,2 0 0,0 17,6A2,2 0 0,0 15,8H13A4,4 0 0,1 17,4A4,4 0 0,1 21,8C21,9.1 20.55,10.1 19.83,10.83L15,16H21V18Z",qRe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V15H15V16H19V12H15V10H19V6H15V7H13V6A2,2 0 0,1 15,4Z",$Re="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M18,18V13H13V11L18,4H20V11H21V13H20V18H18M18,11V7.42L15.45,11H18Z",eBe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H20V6H15V10H17A4,4 0 0,1 21,14A4,4 0 0,1 17,18H15A2,2 0 0,1 13,16V15H15V16H17A2,2 0 0,0 19,14A2,2 0 0,0 17,12H15A2,2 0 0,1 13,10V6A2,2 0 0,1 15,4Z",tBe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V7H19V6H15V10H19A2,2 0 0,1 21,12V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V6A2,2 0 0,1 15,4M15,12V16H19V12H15Z",nBe="M3,4H5V10H9V4H11V18H9V12H5V18H3V4M13,8H15.31L15.63,5H17.63L17.31,8H19.31L19.63,5H21.63L21.31,8H23V10H21.1L20.9,12H23V14H20.69L20.37,17H18.37L18.69,14H16.69L16.37,17H14.37L14.69,14H13V12H14.9L15.1,10H13V8M17.1,10L16.9,12H18.9L19.1,10H17.1Z",rBe="M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M3,21H21V19H3M3,12L7,16V8M11,17H21V15H11V17Z",aBe="M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M11,17H21V15H11M3,8V16L7,12M3,21H21V19H3V21Z",oBe="M10,4V7H12.21L8.79,15H6V18H14V15H11.79L15.21,7H18V4H10Z",iBe="M7,5H21V7H7V5M7,13V11H21V13H7M4,4.5A1.5,1.5 0 0,1 5.5,6A1.5,1.5 0 0,1 4,7.5A1.5,1.5 0 0,1 2.5,6A1.5,1.5 0 0,1 4,4.5M4,10.5A1.5,1.5 0 0,1 5.5,12A1.5,1.5 0 0,1 4,13.5A1.5,1.5 0 0,1 2.5,12A1.5,1.5 0 0,1 4,10.5M7,19V17H21V19H7M4,16.5A1.5,1.5 0 0,1 5.5,18A1.5,1.5 0 0,1 4,19.5A1.5,1.5 0 0,1 2.5,18A1.5,1.5 0 0,1 4,16.5Z",sBe="M21,19V17H8V19H21M21,13V11H8V13H21M8,7H21V5H8V7M4,5V7H6V5H4M3,5A1,1 0 0,1 4,4H6A1,1 0 0,1 7,5V7A1,1 0 0,1 6,8H4A1,1 0 0,1 3,7V5M4,11V13H6V11H4M3,11A1,1 0 0,1 4,10H6A1,1 0 0,1 7,11V13A1,1 0 0,1 6,14H4A1,1 0 0,1 3,13V11M4,17V19H6V17H4M3,17A1,1 0 0,1 4,16H6A1,1 0 0,1 7,17V19A1,1 0 0,1 6,20H4A1,1 0 0,1 3,19V17Z",lBe="M7,13V11H21V13H7M7,19V17H21V19H7M7,7V5H21V7H7M3,8V5H2V4H4V8H3M2,17V16H5V20H2V19H4V18.5H3V17.5H4V17H2M4.25,10A0.75,0.75 0 0,1 5,10.75C5,10.95 4.92,11.14 4.79,11.27L3.12,13H5V14H2V13.08L4,11H2V10H4.25Z",uBe="M13,4A4,4 0 0,1 17,8A4,4 0 0,1 13,12H11V18H9V4H13M13,10A2,2 0 0,0 15,8A2,2 0 0,0 13,6H11V10H13Z",cBe="M10,7L8,11H11V17H5V11L7,7H10M18,7L16,11H19V17H13V11L15,7H18Z",dBe="M2 4V7H7V19H10V7H15V4H2M21 9H12V12H15V19H18V12H21V9Z",fBe="M3,14H21V12H3M5,4V7H10V10H14V7H19V4M10,19H14V16H10V19Z",hBe="M16,7.41L11.41,12L16,16.59L14.59,18L10,13.41L5.41,18L4,16.59L8.59,12L4,7.41L5.41,6L10,10.59L14.59,6L16,7.41M21.85,21.03H16.97V20.03L17.86,19.23C18.62,18.58 19.18,18.04 19.56,17.6C19.93,17.16 20.12,16.75 20.13,16.36C20.14,16.08 20.05,15.85 19.86,15.66C19.68,15.5 19.39,15.38 19,15.38C18.69,15.38 18.42,15.44 18.16,15.56L17.5,15.94L17.05,14.77C17.32,14.56 17.64,14.38 18.03,14.24C18.42,14.1 18.85,14 19.32,14C20.1,14.04 20.7,14.25 21.1,14.66C21.5,15.07 21.72,15.59 21.72,16.23C21.71,16.79 21.53,17.31 21.18,17.78C20.84,18.25 20.42,18.7 19.91,19.14L19.27,19.66V19.68H21.85V21.03Z",pBe="M16,7.41L11.41,12L16,16.59L14.59,18L10,13.41L5.41,18L4,16.59L8.59,12L4,7.41L5.41,6L10,10.59L14.59,6L16,7.41M21.85,9H16.97V8L17.86,7.18C18.62,6.54 19.18,6 19.56,5.55C19.93,5.11 20.12,4.7 20.13,4.32C20.14,4.04 20.05,3.8 19.86,3.62C19.68,3.43 19.39,3.34 19,3.33C18.69,3.34 18.42,3.4 18.16,3.5L17.5,3.89L17.05,2.72C17.32,2.5 17.64,2.33 18.03,2.19C18.42,2.05 18.85,2 19.32,2C20.1,2 20.7,2.2 21.1,2.61C21.5,3 21.72,3.54 21.72,4.18C21.71,4.74 21.53,5.26 21.18,5.73C20.84,6.21 20.42,6.66 19.91,7.09L19.27,7.61V7.63H21.85V9Z",vBe="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z",mBe="M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z",gBe="M14,14H19V16H16V19H14V14M5,14H10V19H8V16H5V14M8,5H10V10H5V8H8V5M19,8V10H14V5H16V8H19Z",yBe="M18 15V18H15V20H18V23H20V20H23V18H20V15H18M13.3 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3H19C20.1 3 21 3.9 21 5V13.3C20.4 13.1 19.7 13 19 13C17.9 13 16.8 13.3 15.9 13.9L14.5 12L11 16.5L8.5 13.5L5 18H13.1C13 18.3 13 18.7 13 19C13 19.7 13.1 20.4 13.3 21Z",bBe="M12,17.56L16.07,16.43L16.62,10.33H9.38L9.2,8.3H16.8L17,6.31H7L7.56,12.32H14.45L14.22,14.9L12,15.5L9.78,14.9L9.64,13.24H7.64L7.93,16.43L12,17.56M4.07,3H19.93L18.5,19.2L12,21L5.5,19.2L4.07,3Z",wBe="M2,5.27L3.28,4L20,20.72L18.73,22L13.9,17.17L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L12.5,15.76L10.88,14.15C10.87,14.39 10.77,14.64 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C8.12,13.77 7.63,12.37 7.72,11L2,5.27M12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.79,8.97L9.38,7.55L12.71,4.22M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.2,10.54 16.61,12.5 16.06,14.23L14.28,12.46C14.23,11.78 13.94,11.11 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z",iJ="M10.6 13.4A1 1 0 0 1 9.2 14.8A4.8 4.8 0 0 1 9.2 7.8L12.7 4.2A5.1 5.1 0 0 1 19.8 4.2A5.1 5.1 0 0 1 19.8 11.3L18.3 12.8A6.4 6.4 0 0 0 17.9 10.4L18.4 9.9A3.2 3.2 0 0 0 18.4 5.6A3.2 3.2 0 0 0 14.1 5.6L10.6 9.2A2.9 2.9 0 0 0 10.6 13.4M23 18V20H20V23H18V20H15V18H18V15H20V18M16.2 13.7A4.8 4.8 0 0 0 14.8 9.2A1 1 0 0 0 13.4 10.6A2.9 2.9 0 0 1 13.4 14.8L9.9 18.4A3.2 3.2 0 0 1 5.6 18.4A3.2 3.2 0 0 1 5.6 14.1L6.1 13.7A7.3 7.3 0 0 1 5.7 11.2L4.2 12.7A5.1 5.1 0 0 0 4.2 19.8A5.1 5.1 0 0 0 11.3 19.8L13.1 18A6 6 0 0 1 16.2 13.7Z",SBe="M19,13H5V11H19V13Z",xBe="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",_Be="M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z",CBe="M18.4,10.6C16.55,9 14.15,8 11.5,8C6.85,8 2.92,11.03 1.54,15.22L3.9,16C4.95,12.81 7.95,10.5 11.5,10.5C13.45,10.5 15.23,11.22 16.62,12.38L13,16H22V7L18.4,10.6Z",TBe="M9 7V17H15V15H11V7H9Z",kBe="M9 7C7.9 7 7 7.9 7 9V17H9V9H11V16H13V9H15V17H17V9C17 7.9 16.11 7 15 7H9Z",ABe="M11 7C9.9 7 9 7.9 9 9V11C9 12.11 9.9 13 11 13H13V15H9V17H13C14.11 17 15 16.11 15 15V13C15 11.9 14.11 11 13 11H11V9H15V7H11Z",EBe="M5,4H19A2,2 0 0,1 21,6V18A2,2 0 0,1 19,20H5A2,2 0 0,1 3,18V6A2,2 0 0,1 5,4M5,8V12H11V8H5M13,8V12H19V8H13M5,14V18H11V14H5M13,14V18H19V14H13Z",MBe="M11,2A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H2V2H11M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M15,11H18V8H20V11H23V13H20V16H18V13H15V11Z",IBe="M13,2A2,2 0 0,0 11,4V20A2,2 0 0,0 13,22H22V2H13M20,10V14H13V10H20M20,16V20H13V16H20M20,4V8H13V4H20M9,11H6V8H4V11H1V13H4V16H6V13H9V11Z",DBe="M4,2H11A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H4A2,2 0 0,1 2,20V4A2,2 0 0,1 4,2M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M17.59,12L15,9.41L16.41,8L19,10.59L21.59,8L23,9.41L20.41,12L23,14.59L21.59,16L19,13.41L16.41,16L15,14.59L17.59,12Z",VBe="M5,10H3V4H11V6H5V10M19,18H13V20H21V14H19V18M5,18V14H3V20H11V18H5M21,4H13V6H19V10H21V4M8,13V15L11,12L8,9V11H3V13H8M16,11V9L13,12L16,15V13H21V11H16Z",PBe="M18,14H20V17H23V19H20V22H18V19H15V17H18V14M4,3H18A2,2 0 0,1 20,5V12.08C18.45,11.82 16.92,12.18 15.68,13H12V17H13.08C12.97,17.68 12.97,18.35 13.08,19H4A2,2 0 0,1 2,17V5A2,2 0 0,1 4,3M4,7V11H10V7H4M12,7V11H18V7H12M4,13V17H10V13H4Z",LBe="M15.46,15.88L16.88,14.46L19,16.59L21.12,14.46L22.54,15.88L20.41,18L22.54,20.12L21.12,21.54L19,19.41L16.88,21.54L15.46,20.12L17.59,18L15.46,15.88M4,3H18A2,2 0 0,1 20,5V12.08C18.45,11.82 16.92,12.18 15.68,13H12V17H13.08C12.97,17.68 12.97,18.35 13.08,19H4A2,2 0 0,1 2,17V5A2,2 0 0,1 4,3M4,7V11H10V7H4M12,7V11H18V7H12M4,13V17H10V13H4Z",NBe="M22,10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V3H4V5H8V3H10V5H14V3H16V5H20V3H22V10M4,10H8V7H4V10M10,10H14V7H10V10M20,10V7H16V10H20M11,14H13V17H16V19H13V22H11V19H8V17H11V14Z",OBe="M22,14A2,2 0 0,0 20,12H4A2,2 0 0,0 2,14V21H4V19H8V21H10V19H14V21H16V19H20V21H22V14M4,14H8V17H4V14M10,14H14V17H10V14M20,14V17H16V14H20M11,10H13V7H16V5H13V2H11V5H8V7H11V10Z",RBe="M9.41,13L12,15.59L14.59,13L16,14.41L13.41,17L16,19.59L14.59,21L12,18.41L9.41,21L8,19.59L10.59,17L8,14.41L9.41,13M22,9A2,2 0 0,1 20,11H4A2,2 0 0,1 2,9V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V9M4,9H8V6H4V9M10,9H14V6H10V9M16,9H20V6H16V9Z",BBe="M21,6V8H3V6H21M3,18H12V16H3V18M3,13H21V11H3V13Z",FBe="M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z",zBe="M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5M14,13H11V16H9V13H6V11H9V8H11V11H14V13Z",HBe="M12,20A6,6 0 0,1 6,14C6,10 12,3.25 12,3.25C12,3.25 18,10 18,14A6,6 0 0,1 12,20Z";const WBe={bold:GRe,italic:oBe,underline:vBe,strike:fBe,color:HBe,highlight:jRe,heading:nBe,textAlign:oJ,fontFamily:ZRe,fontSize:dBe,subscript:hBe,superscript:pBe,bulletList:iBe,orderedList:lBe,taskList:sBe,indent:aBe,outdent:rBe,link:iJ,fileImagePlus:FRe,image:yBe,video:zBe,table:EBe,blockquote:cBe,horizontalRule:SBe,code:RRe,codeBlock:ORe,clear:URe,undo:FBe,redo:CBe,markdownTheme:_Be,fullscreen:mBe,h1:JRe,h2:QRe,h3:qRe,h4:$Re,h5:eBe,h6:tBe,p:uBe,left:HRe,center:oJ,right:WRe,justify:zRe,circle:LRe,close:NRe,fullscreenExit:gBe,linkVariant:iJ,linkVariantOff:wBe,openInNew:xBe,formatFloatLeft:YRe,formatFloatNone:KRe,formatFloatRight:XRe,sizeS:ABe,sizeM:kBe,sizeL:TBe,aspectRatio:VRe,delete:BRe,text:BBe,htmlView:bBe,tablePlus:PBe,tableRemove:LBe,tableColumnPlusAfter:MBe,tableColumnPlusBefore:IBe,tableColumnRemove:DBe,tableRowPlusAfter:NBe,tableRowPlusBefore:OBe,tableRowRemove:RBe,tableMergeCells:VBe,check:PRe};function Mr(e){if(e)return`svg:${WBe[e]}`}const Dn=f.defineComponent({__name:"ActionButton",props:{icon:{default:void 0},tooltip:{default:void 0},disabled:{type:Boolean,default:!1},color:{default:void 0},action:{type:Function,default:void 0},isActive:{type:Function,default:void 0}},setup(e){const t=e,n=f.computed(()=>Mr(t.icon));return(r,a)=>{const o=dt,i=th,s=ft;return f.openBlock(),f.createBlock(s,{class:f.normalizeClass(["rounded me-1 ms-0",{"v-btn--active":r.isActive?.()}]),density:"comfortable",size:"small",disabled:r.disabled,color:r.color,icon:"",onClick:r.action},{default:f.withCtx(()=>[n.value?(f.openBlock(),f.createBlock(o,{key:0,icon:n.value},null,8,["icon"])):f.createCommentVNode("",!0),f.createVNode(i,{eager:!1,activator:"parent",location:"top",text:t.tooltip},null,8,["text"]),f.renderSlot(r.$slots,"default")]),_:3},8,["disabled","color","class","onClick"])}}}),GBe=e=>{const t=["float-left","float-none","float-right"],n=["formatFloatLeft","formatFloatNone","formatFloatRight"],r=["left","inline","right"];return t.map((a,o)=>({type:a,component:Dn,componentProps:{tooltip:`editor.image.${a.replace("-",".")}.tooltip`,icon:n[o],action:()=>e.chain().focus().updateImage({display:r[o]}).run(),isActive:()=>e.isActive("image",{display:r[o]})}}))},UBe=e=>{const t=["size-small","size-medium","size-large"],n=["sizeS","sizeM","sizeL"];return t.map((r,a)=>({type:`image-${r}`,component:Dn,componentProps:{tooltip:`editor.${r.replace("-",".")}.tooltip`,icon:n[a],action:()=>e.chain().focus().updateImage({width:$0[r],height:null}).run(),isActive:()=>e.isActive("image",{width:$0[r]})}}))},jBe=e=>{const t=["size-small","size-medium","size-large"],n=["sizeS","sizeM","sizeL"];return t.map((r,a)=>({type:`video-${r}`,component:Dn,componentProps:{tooltip:`editor.${r.replace("-",".")}.tooltip`,icon:n[a],action:()=>e.chain().focus().updateVideo({width:ex[r]}).run(),isActive:()=>e.isActive("video",{width:ex[r]})}}))},YBe=e=>[...GBe(e),...UBe(e),...jBe(e),{type:"image-aspect-ratio",component:Dn,componentProps:{tooltip:"editor.image.dialog.form.aspectRatio",icon:"aspectRatio",action:()=>{const t=e.isActive("image",{lockAspectRatio:!0});e.chain().focus().updateImage({lockAspectRatio:!t,height:t?void 0:null}).run()},isActive:()=>e.isActive("image",{lockAspectRatio:!0})}},{type:"unlink",component:Dn,componentProps:{tooltip:"editor.link.unlink.tooltip",icon:"linkVariantOff",action:()=>{const{href:t}=e.getAttributes("link");e.chain().extendMarkRange("link",{href:t}).unsetLink().focus().run()}}},{type:"link-open",component:Dn,componentProps:{tooltip:"editor.link.open",icon:"openInNew",action:()=>{const{href:t}=e.getAttributes("link");qy(t)&&t&&window.open(t,"_blank")}}},{type:"remove",component:Dn,componentProps:{tooltip:"editor.remove",icon:"delete",action:()=>{const{state:t,dispatch:n}=e.view;Lx(t,n)}}}],KBe=(e,t,{editor:n,extension:r,t:a})=>{const{extensions:o=[]}=n.extensionManager,i={};for(const s of Object.keys(e)){const l=e[s];if(!l)continue;const u=[];for(const h of l){if(h==="divider"){if(u[u.length-1]?.type==="divider")continue;u.push({type:"divider",component:void 0,componentProps:{}});continue}const p=t.find(m=>m.type===h);if(p){u.push({...p,componentProps:{...p.componentProps,tooltip:p.componentProps.tooltip?a(p.componentProps.tooltip):void 0},componentSlots:p.componentSlots});continue}const v=o.find(m=>m.name===h);if(v){const{button:m}=v.options,g=m({editor:n,extension:v,t:a});u.push({type:h,component:g.component,componentProps:g.componentProps,componentSlots:g.componentSlots});continue}}const c=u[u.length-1],d=u[0];c?.type==="divider"&&u.pop(),d?.type==="divider"&&u.shift(),i[s]=u}return i},XBe=Ar.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:e}){return["p",zn(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}});class ZBe{globalAttributes=["class","style","id","data-*"];isInitialized=!1;registerGlobalAttributes(t){t&&t.length>0&&(this.globalAttributes=[...t],this.isInitialized=!0,console.log("Global allowedAttributes registered:",this.globalAttributes))}getGlobalAttributes(){return[...this.globalAttributes]}isGlobalInitialized(){return this.isInitialized}reset(){this.globalAttributes=["class","style","id"],this.isInitialized=!1}}const gP=new ZBe;function JBe(e){gP.registerGlobalAttributes(e)}function sJ(){return gP.getGlobalAttributes()}function QBe(){return gP.isGlobalInitialized()}function Ja(e,t,n){let r;n&&n.length>0?r=n:r=sJ(),console.log(`Adding common attributes to ${t}:`,{local:n,global:sJ(),final:r,globalInitialized:QBe()});const a=e?{...e}:{};return r.forEach(o=>{a[o]||(a[o]={default:null,parseHTML:i=>i.getAttribute(o)||null,renderHTML:i=>i[o]?{[o]:i[o]}:{}})}),a}const lJ=XBe.extend({addAttributes(){return Ja(this.parent?.(),"paragraph",this.options.allowedAttributes)}}),qBe=Zn.create({name:"base-kit",addOptions(){return{...this.parent?.(),bubble:{list:Oke,defaultBubbleList:YBe,button:({editor:e,extension:t,t:n})=>{const{list:r={},defaultBubbleList:a}=t.options?.bubble??{},o=a?.(e)??[];return KBe(r,o,{editor:e,extension:t,t:n})}}}},addExtensions(){const e=[];return this.options.placeholder!==!1&&e.push(ERe.configure({placeholder:"",...this.options.placeholder})),this.options.focus!==!1&&e.push(gRe.configure({className:"focus",...this.options.focus})),this.options.document!==!1&&e.push(hRe.configure()),this.options.text!==!1&&e.push(MRe.configure()),this.options.gapcursor!==!1&&e.push(TRe.configure()),this.options.dropcursor!==!1&&e.push(mRe.configure(this.options.dropcursor)),this.options.characterCount!==!1&&e.push(fRe.configure(this.options.characterCount)),this.options.paragraph!==!1&&e.push(lJ.configure(this.options.paragraph)),this.options.hardBreak!==!1&&e.push(kRe.configure(this.options.hardBreak)),this.options.listItem!==!1&&e.push(ARe.configure(this.options.listItem)),this.options.textStyle!==!1&&e.push(DRe.configure(this.options.textStyle)),e}}),$Be=/^\s*>\s$/,eFe=Ar.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:e}){return["blockquote",zn(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[mm({find:$Be,type:this.type})]}}),tFe=eFe.extend({addAttributes(){return Ja(this.parent?.(),"blockquote",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),HTMLAttributes:{class:"blockquote"},button:({editor:e,t})=>({component:Dn,componentProps:{action:()=>e.chain().focus().toggleBlockquote().run(),isActive:()=>e.isActive("blockquote")||!1,disabled:!e.can().toggleBlockquote(),icon:"blockquote",tooltip:t("editor.blockquote.tooltip")}})}}}),nFe=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,rFe=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,aFe=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,oFe=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,iFe=si.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>e.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return["strong",zn(this.options.HTMLAttributes,e),0]},addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[_h({find:nFe,type:this.type}),_h({find:aFe,type:this.type})]},addPasteRules(){return[yd({find:rFe,type:this.type}),yd({find:oFe,type:this.type})]}}),sFe=iFe.extend({addAttributes(){return Ja(this.parent?.(),"bold",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:Dn,componentProps:{action:()=>e.chain().focus().toggleBold().run(),isActive:()=>e.isActive("bold")||!1,disabled:!e.can().toggleBold(),icon:"bold",tooltip:t("editor.bold.tooltip")}})}}}),lFe="listItem",uJ="textStyle",cJ=/^\s*([-+*])\s$/,uFe=Ar.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:e}){return["ul",zn(this.options.HTMLAttributes,e),0]},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(lFe,this.editor.getAttributes(uJ)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=mm({find:cJ,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=mm({find:cJ,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(uJ),editor:this.editor})),[e]}}),cFe=uFe.extend({addAttributes(){return Ja(this.parent?.(),"bulletList",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:Dn,componentProps:{action:()=>e.chain().focus().toggleBulletList().run(),isActive:()=>e.isActive("bulletList")||!1,disabled:!e.can().toggleBulletList(),icon:"bulletList",tooltip:t("editor.bulletlist.tooltip")}})}}}),dFe=Ar.create({name:"clear",addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:Dn,componentProps:{action:()=>e.chain().focus().clearNodes().unsetAllMarks().run(),disabled:!e.can().chain().focus().clearNodes().unsetAllMarks().run(),icon:"clear",tooltip:t("editor.clear.tooltip")}})}}}),fFe=/(^|[^`])`([^`]+)`(?!`)/,hFe=/(^|[^`])`([^`]+)`(?!`)/g,pFe=si.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:e}){return["code",zn(this.options.HTMLAttributes,e),0]},addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[_h({find:fFe,type:this.type})]},addPasteRules(){return[yd({find:hFe,type:this.type})]}}),vFe=pFe.extend({addAttributes(){return Ja(this.parent?.(),"code",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:Dn,componentProps:{action:()=>e.chain().focus().toggleCode().run(),isActive:()=>e.isActive("code")||!1,disabled:!e.can().toggleCode(),icon:"code",tooltip:t("editor.code.tooltip")}})}}}),mFe=/^```([a-z]+)?[\s\n]$/,gFe=/^~~~([a-z]+)?[\s\n]$/,yFe=Ar.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options;return[...((t=e.firstElementChild)===null||t===void 0?void 0:t.classList)||[]].filter(a=>a.startsWith(n)).map(a=>a.replace(n,""))[0]||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:e,HTMLAttributes:t}){return["pre",zn(this.options.HTMLAttributes,t),["code",{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,"paragraph",e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=e,{selection:n}=t,{$from:r,empty:a}=n;if(!a||r.parent.type!==this.type)return!1;const o=r.parentOffset===r.parent.nodeSize-2,i=r.parent.textContent.endsWith(` `);return!o||!i?!1:e.chain().command(({tr:s})=>(s.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=e,{selection:n,doc:r}=t,{$from:a,empty:o}=n;if(!o||a.parent.type!==this.type||a.parentOffset!==a.parent.nodeSize-2)return!1;const i=a.after();return i===void 0?!1:r.nodeAt(i)?e.commands.command(({tr:s})=>(s.setSelection(Rt.near(r.resolve(i))),!0)):e.commands.exitCode()}}},addInputRules(){return[FV({find:mFe,type:this.type,getAttributes:e=>({language:e[1]})}),FV({find:gFe,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new pr({key:new qr("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),a=r?JSON.parse(r):void 0,o=a?.mode;if(!n||!o)return!1;const{tr:i,schema:s}=e.state,l=s.text(n.replace(/\r\n?/g,` -`));return i.replaceSelectionWith(this.type.create({language:o},l)),i.selection.$from.parent.type!==this.type&&i.setSelection(At.near(i.doc.resolve(Math.max(0,i.selection.from-2)))),i.setMeta("paste",!0),e.dispatch(i),!0}}})]}}),bFe=yFe.extend({addAttributes(){return Ja(this.parent?.(),"codeBlock",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:Dn,componentProps:{action:()=>e.chain().focus().toggleCodeBlock().run(),isActive:()=>e.isActive("codeBlock")||!1,disabled:!e.can().toggleCodeBlock(),icon:"codeBlock",tooltip:t("editor.codeblock.tooltip")}})}}}),wFe=Zn.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:e=>{var t;return(t=e.style.color)===null||t===void 0?void 0:t.replace(/['"]+/g,"")},renderHTML:e=>e.color?{style:`color: ${e.color}`}:{}}}}]},addCommands(){return{setColor:e=>({chain:t})=>t().setMark("textStyle",{color:e}).run(),unsetColor:()=>({chain:e})=>e().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),dJ=f.defineComponent({__name:"ColorPicker",props:{modelValue:{default:""},nudgeLeft:{default:0},nudgeTop:{default:0},more:{type:Boolean,default:!0}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=e,r=t,a=f.ref(""),o=f.ref(!1);f.watch(o,s=>{a.value=n.modelValue});function i(s){r("update:modelValue",s),r("change",s),a.value=s,o.value=!1}return(s,l)=>{const u=dt,c=ft,d=Jr,h=Gv,p=Mo,v=uo;return f.openBlock(),f.createBlock(v,{modelValue:o.value,"onUpdate:modelValue":l[2]||(l[2]=m=>o.value=m),"nudge-left":s.nudgeLeft||255,"nudge-top":s.nudgeTop||42,"close-on-content-click":!1,transition:"scale-transition",origin:s.nudgeLeft?"top left":"top right",activator:"parent"},{default:f.withCtx(()=>[f.createVNode(p,null,{default:f.withCtx(()=>[f.createVNode(h,{class:"d-flex flex-wrap justify-between ma-1",fluid:"","max-width":230},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(f.unref(Pke),m=>(f.openBlock(),f.createBlock(c,{key:m,flat:"",icon:"",density:"compact",onClick:g=>i(m)},{default:f.withCtx(()=>[f.createVNode(u,{icon:f.unref(Mr)("circle"),color:m},null,8,["icon","color"])]),_:2},1032,["onClick"]))),128)),f.createVNode(d,{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=m=>a.value=m),class:"mt-2 mx-1","append-inner-icon":f.unref(Mr)("check"),density:"compact",label:"HEX",variant:"outlined",flat:"","hide-details":"","single-line":"",clearable:"","onClick:appendInner":l[1]||(l[1]=m=>i(a.value))},f.createSlots({_:2},[a.value?{name:"prepend-inner",fn:f.withCtx(()=>[f.createVNode(u,{class:"opacity-100",icon:f.unref(Mr)("circle"),color:a.value},null,8,["icon","color"])]),key:"0"}:void 0]),1032,["modelValue","append-inner-icon"])]),_:1})]),_:1})]),_:1},8,["modelValue","nudge-left","nudge-top","origin"])}}}),SFe=f.defineComponent({__name:"ColorActionButton",props:{editor:{},icon:{default:void 0},tooltip:{default:void 0},disabled:{type:Boolean,default:!1},action:{type:Function,default:void 0},isActive:{type:Function,default:void 0}},setup(e){const t=e,{state:n}=VD();function r(a){t.action?.(a)}return f.watchEffect(()=>{const{color:a}=t.editor.getAttributes("textStyle");n.color=a}),(a,o)=>(f.openBlock(),f.createBlock(Dn,{icon:a.icon,tooltip:a.tooltip,disabled:a.disabled,color:f.unref(n).color,"is-active":a.isActive},{default:f.withCtx(()=>[f.createVNode(dJ,{modelValue:f.unref(n).color,"onUpdate:modelValue":o[0]||(o[0]=i=>f.unref(n).color=i),activator:"parent","nudge-top":-4,"nudge-left":8,onChange:r},null,8,["modelValue"])]),_:1},8,["icon","tooltip","disabled","color","is-active"]))}}),xFe=wFe.extend({addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:SFe,componentProps:{action:n=>{typeof n=="string"&&e.chain().focus().setColor(n).run()},isActive:()=>{const{color:n}=e.getAttributes("textStyle");return n&&e.isActive({color:n})||!1},disabled:!e.can().setColor(""),icon:"color",tooltip:t("editor.color.tooltip")}})}}}),_Fe=Zn.create({name:"fontFamily",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontFamily:{default:null,parseHTML:e=>e.style.fontFamily,renderHTML:e=>e.fontFamily?{style:`font-family: ${e.fontFamily}`}:{}}}}]},addCommands(){return{setFontFamily:e=>({chain:t})=>t().setMark("textStyle",{fontFamily:e}).run(),unsetFontFamily:()=>({chain:e})=>e().setMark("textStyle",{fontFamily:null}).removeEmptyTextStyle().run()}}}),s_=f.defineComponent({__name:"ActionMenuButton",props:{editor:{},disabled:{type:Boolean,default:!1},color:{default:void 0},maxHeight:{default:void 0},icon:{default:void 0},tooltip:{default:""},items:{default:()=>[]}},setup(e){const t=e,n=f.ref(!1),r=f.computed(()=>{const a=t.items.find(o=>o.isActive());return a&&!a.default?{...a,icon:a.icon?a.icon:t.icon}:{title:t.tooltip,icon:t.icon,isActive:()=>!1}});return(a,o)=>{const i=dt,s=Yf,l=kr,u=la,c=Mo,d=uo;return f.openBlock(),f.createBlock(Dn,{icon:r.value.icon,tooltip:r.value.title,disabled:a.disabled,color:a.color,"is-active":r.value.isActive},{default:f.withCtx(()=>[f.createVNode(d,{modelValue:n.value,"onUpdate:modelValue":o[0]||(o[0]=h=>n.value=h),activator:"parent"},{default:f.withCtx(()=>[f.createVNode(c,{density:"compact","max-height":a.maxHeight},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(a.items,(h,p)=>(f.openBlock(),f.createElementBlock(f.Fragment,{key:p},[f.createVNode(l,{active:h.isActive(),disabled:h.disabled,onClick:h.action},{prepend:f.withCtx(()=>[h.icon?(f.openBlock(),f.createBlock(i,{key:0,icon:f.unref(Mr)(h.icon)},null,8,["icon"])):f.createCommentVNode("",!0)]),default:f.withCtx(()=>[f.createVNode(s,{style:f.normalizeStyle(h.style)},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(h.title),1)]),_:2},1032,["style"])]),_:2},1032,["active","disabled","onClick"]),h.divider?(f.openBlock(),f.createBlock(u,{key:0})):f.createCommentVNode("",!0)],64))),128))]),_:1},8,["max-height"])]),_:1},8,["modelValue"])]),_:1},8,["icon","tooltip","disabled","color","is-active"])}}}),CFe=_Fe.extend({addOptions(){return{...this.parent?.(),fontFamilies:Lke,button:({editor:e,extension:t,t:n})=>{const r=(t.options?.fontFamilies||[]).map(o=>({title:n(o.title),isActive:()=>{const{fontFamily:i}=e.getAttributes("textStyle");return o.value===hD&&i===void 0?!0:e.isActive({fontFamily:o.value})||!1},action:()=>{if(o.value===hD){e.chain().focus().unsetFontFamily().run();return}e.chain().focus().setFontFamily(o.value).run()},disabled:!e.can().setFontFamily(o.value),style:{fontFamily:o.value},divider:o.divider??!1,default:o.default??!1})),a=r.filter(o=>o.disabled).length===r.length;return{component:s_,componentProps:{icon:"fontFamily",tooltip:n("editor.fontFamily.tooltip"),disabled:a,items:r,maxHeight:280}}}}}}),TFe=Zn.create({name:"fontSize",addOptions(){return{...this.parent?.(),types:["textStyle"],fontSizes:[...Nke],button:({editor:e,extension:t,t:n})=>{const r=t.options?.fontSizes||[],a=[$v,...r].map(i=>({title:i===$v?n("editor.default"):String(i),isActive:()=>{const{fontSize:s}=e.getAttributes("textStyle");return i===$v&&s===void 0?!0:e.isActive({fontSize:String(i)})||!1},action:()=>{if(i===$v){e.chain().focus().unsetFontSize().run();return}e.chain().focus().setFontSize(String(i)).run()},disabled:!e.can().setFontSize(String(i)),divider:i===$v,default:i===$v})),o=a.filter(i=>i.disabled).length===a.length;return{component:s_,componentProps:{icon:"fontSize",tooltip:n("editor.fontSize.tooltip"),disabled:o,items:a,maxHeight:280}}}}},addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:e=>e.style.fontSize||"",renderHTML:e=>e.fontSize?{style:`font-size: ${$y(e.fontSize)}`}:{}}}}]},addCommands(){return{setFontSize:e=>({chain:t})=>t().setMark("textStyle",{fontSize:e}).run(),unsetFontSize:()=>({chain:e})=>e().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()}}}),kFe=f.defineComponent({__name:"FullscreenActionButton",props:{disabled:{type:Boolean,default:!1},color:{default:void 0},isActive:{type:Function,default:void 0},useWindow:{type:Boolean,default:!1}},setup(e){const t=e,{t:n}=Uu(),{state:r,toggleFullscreen:a}=VD(),{isFullscreen:o,enter:i,exit:s}=BIe();f.watch(o,d=>{!d&&r.isFullscreen&&t.useWindow&&c()});const l=f.computed(()=>{const d=r.isFullscreen?"editor.fullscreen.tooltip.exit":"editor.fullscreen.tooltip.fullscreen";return f.unref(n)(d)}),u=f.computed(()=>{const d=r.isFullscreen?"fullscreenExit":"fullscreen";return Mr(d)});function c(d=!1){a(),r.isFullscreen?(document.documentElement.classList.add("overflow-y-hidden"),d&&i()):(document.documentElement.classList.remove("overflow-y-hidden"),d&&s())}return(d,h)=>{const p=dt,v=th,m=ft;return f.openBlock(),f.createBlock(m,{class:f.normalizeClass(["rounded me-1 ms-0",{"v-btn--active":d.isActive?.()}]),density:"comfortable",size:"small",disabled:d.disabled,color:d.color,icon:"",onClick:h[0]||(h[0]=g=>c(d.useWindow))},{default:f.withCtx(()=>[f.createVNode(p,{icon:u.value},null,8,["icon"]),f.createVNode(v,{eager:!1,activator:"parent",location:"top",text:l.value},null,8,["text"]),f.renderSlot(d.$slots,"default")]),_:3},8,["disabled","color","class"])}}}),AFe=Zn.create({name:"fullscreen",addOptions(){return{...this.parent?.(),useWindow:!1,button:({editor:e,extension:t,t:n})=>({component:kFe,componentProps:{useWindow:t.options.useWindow??!1}})}}}),EFe=Ar.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,Fn(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,"paragraph",e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>FV({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}})\\s$`),type:this.type,getAttributes:{level:e}}))}}),MFe=EFe.extend({addAttributes(){return Ja(this.parent?.(),"heading",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),levels:[1,2,3,4,5,6],button:({editor:e,extension:t,t:n})=>{const{extensions:r=[]}=e.extensionManager??[],a=t.options?.levels||[],o=r.find(l=>l.name==="base-kit"),i=a.map(l=>({action:()=>e.chain().focus().toggleHeading({level:l}).run(),isActive:()=>e.isActive("heading",{level:l})||!1,disabled:!e.can().toggleHeading({level:l}),icon:`h${l}`,title:n(`editor.heading.h${l}.tooltip`)}));o&&o.options.paragraph!==!1&&i.unshift({action:()=>e.chain().focus().setParagraph().run(),isActive:()=>e.isActive("paragraph")||!1,disabled:!e.can().setParagraph(),icon:"p",title:n("editor.paragraph.tooltip"),divider:!0});const s=i.filter(l=>l.disabled).length===i.length;return{component:s_,componentProps:{icon:"heading",tooltip:n("editor.heading.tooltip"),disabled:s,items:i}}}}}}),IFe=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,DFe=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,VFe=si.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:e=>e.getAttribute("data-color")||e.style.backgroundColor,renderHTML:e=>e.color?{"data-color":e.color,style:`background-color: ${e.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:e}){return["mark",Fn(this.options.HTMLAttributes,e),0]},addCommands(){return{setHighlight:e=>({commands:t})=>t.setMark(this.name,e),toggleHighlight:e=>({commands:t})=>t.toggleMark(this.name,e),unsetHighlight:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[_h({find:IFe,type:this.type})]},addPasteRules(){return[yd({find:DFe,type:this.type})]}}),PFe=f.defineComponent({__name:"HighlightActionButton",props:{editor:{},icon:{default:void 0},tooltip:{default:void 0},disabled:{type:Boolean,default:!1},action:{type:Function,default:void 0},isActive:{type:Function,default:void 0}},setup(e){const t=e,{state:n}=VD();function r(a){t.action?.(a)}return f.watchEffect(()=>{const{color:a}=t.editor.getAttributes("highlight");n.highlight=a}),(a,o)=>(f.openBlock(),f.createBlock(Dn,{icon:a.icon,tooltip:a.tooltip,disabled:a.disabled,color:f.unref(n).highlight,"is-active":a.isActive},{default:f.withCtx(()=>[f.createVNode(dJ,{modelValue:f.unref(n).highlight,"onUpdate:modelValue":o[0]||(o[0]=i=>f.unref(n).highlight=i),activator:"parent","nudge-top":-4,"nudge-left":8,onChange:r},null,8,["modelValue"])]),_:1},8,["icon","tooltip","disabled","color","is-active"]))}}),LFe=VFe.extend({addAttributes(){return Ja(this.parent?.(),"highlight",this.options.allowedAttributes)},addOptions(){return{...this.parent?.(),multicolor:!0,button:({editor:e,t})=>({component:PFe,componentProps:{action:n=>{typeof n=="string"&&e.chain().focus().setHighlight({color:n}).run()},isActive:()=>e.isActive("highlight")||!1,disabled:!e.can().setHighlight(),icon:"highlight",tooltip:t("editor.highlight.tooltip")}})}}});var l_=200,Ra=function(){};Ra.prototype.append=function(e){return e.length?(e=Ra.from(e),!this.length&&e||e.length=t?Ra.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},Ra.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Ra.prototype.forEach=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},Ra.prototype.map=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(a,o){return r.push(e(a,o))},t,n),r},Ra.from=function(e){return e instanceof Ra?e:e&&e.length?new fJ(e):Ra.empty};var fJ=function(e){function t(r){e.call(this),this.values=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(r,a){return r==0&&a==this.length?this:new t(this.values.slice(r,a))},t.prototype.getInner=function(r){return this.values[r]},t.prototype.forEachInner=function(r,a,o,i){for(var s=a;s=o;s--)if(r(this.values[s],i+s)===!1)return!1},t.prototype.leafAppend=function(r){if(this.length+r.length<=l_)return new t(this.values.concat(r.flatten()))},t.prototype.leafPrepend=function(r){if(this.length+r.length<=l_)return new t(r.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Ra);Ra.empty=new fJ([]);var NFe=function(e){function t(n,r){e.call(this),this.left=n,this.right=r,this.length=n.length+r.length,this.depth=Math.max(n.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(n){return ni&&this.right.forEachInner(n,Math.max(r-i,0),Math.min(this.length,a)-i,o+i)===!1)return!1},t.prototype.forEachInvertedInner=function(n,r,a,o){var i=this.left.length;if(r>i&&this.right.forEachInvertedInner(n,r-i,Math.max(a,i)-i,o+i)===!1||a=a?this.right.slice(n-a,r-a):this.left.slice(n,a).append(this.right.slice(0,r-a))},t.prototype.leafAppend=function(n){var r=this.right.leafAppend(n);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(n){var r=this.left.leafPrepend(n);if(r)return new t(r,this.right)},t.prototype.appendInner=function(n){return this.left.depth>=Math.max(this.right.depth,n.depth)+1?new t(this.left,new t(this.right,n)):new t(this,n)},t}(Ra);const OFe=500;class tl{constructor(t,n){this.items=t,this.eventCount=n}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let a,o;n&&(a=this.remapping(r,this.items.length),o=a.maps.length);let i=t.tr,s,l,u=[],c=[];return this.items.forEach((d,h)=>{if(!d.step){a||(a=this.remapping(r,h+1),o=a.maps.length),o--,c.push(d);return}if(a){c.push(new Kl(d.map));let p=d.step.map(a.slice(o)),v;p&&i.maybeStep(p).doc&&(v=i.mapping.maps[i.mapping.maps.length-1],u.push(new Kl(v,void 0,void 0,u.length+c.length))),o--,v&&a.appendMap(v,o)}else i.maybeStep(d.step);if(d.selection)return s=a?d.selection.map(a.slice(o)):d.selection,l=new tl(this.items.slice(0,r).append(c.reverse().concat(u)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:i,selection:s}}addTransform(t,n,r,a){let o=[],i=this.eventCount,s=this.items,l=!a&&s.length?s.get(s.length-1):null;for(let c=0;cBFe&&(s=RFe(s,u),i-=u),new tl(s.append(o),i)}remapping(t,n){let r=new ab;return this.items.forEach((a,o)=>{let i=a.mirrorOffset!=null&&o-a.mirrorOffset>=t?r.maps.length-a.mirrorOffset:void 0;r.appendMap(a.map,i)},t,n),r}addMaps(t){return this.eventCount==0?this:new tl(this.items.append(t.map(n=>new Kl(n))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],a=Math.max(0,this.items.length-n),o=t.mapping,i=t.steps.length,s=this.eventCount;this.items.forEach(h=>{h.selection&&s--},a);let l=n;this.items.forEach(h=>{let p=o.getMirror(--l);if(p==null)return;i=Math.min(i,p);let v=o.maps[p];if(h.step){let m=t.steps[p].invert(t.docs[p]),g=h.selection&&h.selection.map(o.slice(l+1,p));g&&s++,r.push(new Kl(v,m,g))}else r.push(new Kl(v))},a);let u=[];for(let h=n;hOFe&&(d=d.compress(this.items.length-r.length)),d}emptyItemCount(){let t=0;return this.items.forEach(n=>{n.step||t++}),t}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,a=[],o=0;return this.items.forEach((i,s)=>{if(s>=t)a.push(i),i.selection&&o++;else if(i.step){let l=i.step.map(n.slice(r)),u=l&&l.getMap();if(r--,u&&n.appendMap(u,r),l){let c=i.selection&&i.selection.map(n.slice(r));c&&o++;let d=new Kl(u.invert(),l,c),h,p=a.length-1;(h=a.length&&a[p].merge(d))?a[p]=h:a.push(d)}}else i.map&&r--},this.items.length,0),new tl(Ra.from(a.reverse()),o)}}tl.empty=new tl(Ra.empty,0);function RFe(e,t){let n;return e.forEach((r,a)=>{if(r.selection&&t--==0)return n=a,!1}),e.slice(n)}class Kl{constructor(t,n,r,a){this.map=t,this.step=n,this.selection=r,this.mirrorOffset=a}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new Kl(n.getMap().invert(),n,this.selection)}}}class _d{constructor(t,n,r,a,o){this.done=t,this.undone=n,this.prevRanges=r,this.prevTime=a,this.prevComposition=o}}const BFe=20;function FFe(e,t,n,r){let a=n.getMeta(Eh),o;if(a)return a.historyState;n.getMeta(WFe)&&(e=new _d(e.done,e.undone,null,0,-1));let i=n.getMeta("appendedTransaction");if(n.steps.length==0)return e;if(i&&i.getMeta(Eh))return i.getMeta(Eh).redo?new _d(e.done.addTransform(n,void 0,r,u_(t)),e.undone,hJ(n.mapping.maps),e.prevTime,e.prevComposition):new _d(e.done,e.undone.addTransform(n,void 0,r,u_(t)),null,e.prevTime,e.prevComposition);if(n.getMeta("addToHistory")!==!1&&!(i&&i.getMeta("addToHistory")===!1)){let s=n.getMeta("composition"),l=e.prevTime==0||!i&&e.prevComposition!=s&&(e.prevTime<(n.time||0)-r.newGroupDelay||!zFe(n,e.prevRanges)),u=i?yP(e.prevRanges,n.mapping):hJ(n.mapping.maps);return new _d(e.done.addTransform(n,l?t.selection.getBookmark():void 0,r,u_(t)),tl.empty,u,n.time,s??e.prevComposition)}else return(o=n.getMeta("rebased"))?new _d(e.done.rebased(n,o),e.undone.rebased(n,o),yP(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new _d(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),yP(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function zFe(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((r,a)=>{for(let o=0;o=t[o]&&(n=!0)}),n}function hJ(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((r,a,o,i)=>t.push(o,i));return t}function yP(e,t){if(!e)return null;let n=[];for(let r=0;r{let a=Eh.getState(n);if(!a||(e?a.undone:a.done).eventCount==0)return!1;if(r){let o=HFe(a,n,e);o&&r(o.scrollIntoView())}return!0}}const mJ=vJ(!1),gJ=vJ(!0),UFe=Zn.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>mJ(e,t),redo:()=>({state:e,dispatch:t})=>gJ(e,t)}},addProseMirrorPlugins(){return[GFe(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),jFe=UFe.extend({addOptions(){return{...this.parent?.(),depth:10,button:({editor:e,t})=>["undo","redo"].map(n=>({component:Dn,componentProps:{action:()=>{n==="undo"&&e.chain().focus().undo().run(),n==="redo"&&e.chain().focus().redo().run()},disabled:!e.can()[n](),icon:n,tooltip:t(`editor.${n}.tooltip`)}}))}}}),YFe=Ar.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:e}){return["hr",Fn(this.options.HTMLAttributes,e)]},addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!DLe(t,t.schema.nodes[this.name]))return!1;const{selection:n}=t,{$from:r,$to:a}=n,o=e();return r.parentOffset===0?o.insertContentAt({from:Math.max(r.pos-1,0),to:a.pos},{type:this.name}):DX(n)?o.insertContentAt(a.pos,{type:this.name}):o.insertContent({type:this.name}),o.command(({tr:i,dispatch:s})=>{var l;if(s){const{$to:u}=i.selection,c=u.end();if(u.nodeAfter)u.nodeAfter.isTextblock?i.setSelection(At.create(i.doc,u.pos+1)):u.nodeAfter.isBlock?i.setSelection(Ct.create(i.doc,u.pos)):i.setSelection(At.create(i.doc,u.pos));else{const d=(l=u.parent.type.contentMatch.defaultType)===null||l===void 0?void 0:l.create();d&&(i.insert(c,d),i.setSelection(At.create(i.doc,c+1)))}i.scrollIntoView()}return!0}).run()}}},addInputRules(){return[LX({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),KFe=YFe.extend({addOptions(){return{...this.parent?.(),button:({editor:e,t})=>({component:Dn,componentProps:{action:()=>e.chain().focus().setHorizontalRule().run(),disabled:!e.can().setHorizontalRule(),icon:"horizontalRule",tooltip:t("editor.horizontalrule.tooltip")}})}}});function XFe(e){const t=e.view.dom,n=t.parentElement;if(!n)return null;window.pageYOffset||document.documentElement.scrollTop,window.pageXOffset||document.documentElement.scrollLeft;const r=document.createElement("div");r.className="tiptap-html-overlay",r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.width="100%",r.style.height="100%",r.style.backgroundColor="#f8f9fa",r.style.zIndex="10",r.style.display="flex",r.style.flexDirection="column",r.style.boxSizing="border-box",r.style.border="1px solid #ddd";const a=document.createElement("textarea");a.className="tiptap-html-editor",a.style.width="100%",a.style.height="100%",a.style.padding="12px",a.style.border="none",a.style.resize="none",a.style.fontFamily="monospace",a.style.fontSize="14px",a.style.backgroundColor="transparent",a.style.flex="1",a.style.outline="none",a.style.color="#333";const o=e.getHTML();e.storage.htmlView.editorContent=o;const i=ZFe(o);a.value=i,e.storage.htmlView.htmlContent=i,r.appendChild(a),n.style.position="relative";const s=t.offsetWidth,l=t.offsetHeight;return r.style.width=`${s}px`,r.style.height=`${l}px`,r.style.minHeight=`${l}px`,r.style.transition="none",n.appendChild(r),setTimeout(()=>{a.focus({preventScroll:!0}),console.log("Switched to HTML view mode")},10),a.addEventListener("input",()=>{e.storage.htmlView.htmlContent=a.value;try{e.storage.htmlView.isUpdatingFromHTML=!0;const u=yJ(a.value);e.commands.setContent(u,!1);const c=e.state.tr;c.setMeta("preventUpdate",!1),c.setMeta("addToHistory",!1),e.view.dispatch(c),e.options.onUpdate&&e.options.onUpdate({editor:e,transaction:c})}catch(u){console.error("Error syncing HTML to editor:",u)}finally{requestAnimationFrame(()=>{e.storage.htmlView.isUpdatingFromHTML=!1})}}),r}function ZFe(e){return e.replace(/
]*>[\s\S]*?<\/div>/gi,"").replace(/