1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[777],{2821:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(){for(var e,t,n=0,r="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=function e(t){var n,r,l="";if("string"==typeof t||"number"==typeof t)l+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(l&&(l+=" "),l+=r)}else for(r in t)t[r]&&(l&&(l+=" "),l+=r);return l}(e))&&(r&&(r+=" "),r+=t);return r}},3643:e=>{var t=Object.prototype.toString;function n(e){return"function"==typeof e.constructor?e.constructor.name:null}e.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var r,l,i,o,s,a,u=typeof e;if("boolean"===u)return"boolean";if("string"===u)return"string";if("number"===u)return"number";if("symbol"===u)return"symbol";if("function"===u)return"GeneratorFunction"===n(e)?"generatorfunction":"function";if(r=e,Array.isArray?Array.isArray(r):r instanceof Array)return"array";if((l=e).constructor&&"function"==typeof l.constructor.isBuffer&&l.constructor.isBuffer(l))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if((i=e)instanceof Date||"function"==typeof i.toDateString&&"function"==typeof i.getDate&&"function"==typeof i.setDate)return"date";if((o=e)instanceof Error||"string"==typeof o.message&&o.constructor&&"number"==typeof o.constructor.stackTraceLimit)return"error";if((s=e)instanceof RegExp||"string"==typeof s.flags&&"boolean"==typeof s.ignoreCase&&"boolean"==typeof s.multiline&&"boolean"==typeof s.global)return"regexp";switch(n(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if("function"==typeof(a=e).throw&&"function"==typeof a.return&&"function"==typeof a.next)return"generator";switch(u=t.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return u.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8179:(e,t,n)=>{"use strict";n.d(t,{Bt:()=>O,mB:()=>k,eu:()=>A,ZB:()=>M,nY:()=>D,sb:()=>R,Sd:()=>L,xj:()=>I,HE:()=>P});var r={};n.r(r),n.d(r,{$dfs:()=>m,$filter:()=>E,$findMatchingParent:()=>v,$getNearestBlockElementAncestorOrThrow:()=>C,$getNearestNodeOfType:()=>y,$insertFirst:()=>w,$insertNodeToNearestRoot:()=>S,$restoreEditorState:()=>N,$splitNode:()=>i.hc,$wrapNodeInElement:()=>b,addClassNamesToElement:()=>h,isHTMLAnchorElement:()=>i.nY,isHTMLElement:()=>i.sb,isMimeType:()=>p,markSelection:()=>f,mediaFileReader:()=>_,mergeRegister:()=>a,objectKlassEquals:()=>x,positionNodeOnRange:()=>c,registerNestedElementResolver:()=>T,removeClassNamesFromElement:()=>g});var l=n(62105),i=n(35482),o=function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)};function s(...e){let t=[];for(let n of e)if(n&&"string"==typeof n)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}function a(...e){return()=>{e.forEach(e=>e())}}function u(e){return`${e}px`}let d={attributes:!0,characterData:!0,childList:!0,subtree:!0};function c(e,t,n){let r=null,i=null,o=null,s=[],a=document.createElement("div");function c(){if(null===r)throw Error("Unexpected null rootDOMNode");if(null===i)throw Error("Unexpected null parentDOMNode");let{left:o,top:d}=r.getBoundingClientRect(),c=i,f=(0,l.zT)(e,t);a.isConnected||c.append(a);let h=!1;for(let e=0;e<f.length;e++){let t=f[e],n=s[e]||document.createElement("div"),r=n.style;"absolute"!==r.position&&(r.position="absolute",h=!0);let l=u(t.left-o);r.left!==l&&(r.left=l,h=!0);let i=u(t.top-d);r.top!==i&&(n.style.top=i,h=!0);let c=u(t.width);r.width!==c&&(n.style.width=c,h=!0);let g=u(t.height);r.height!==g&&(n.style.height=g,h=!0),n.parentNode!==a&&(a.append(n),h=!0),s[e]=n}for(;s.length>f.length;)s.pop();h&&n(s)}function f(){for(let e of(i=null,r=null,null!==o&&o.disconnect(),o=null,a.remove(),s))e.remove();s=[]}let h=e.registerRootListener(function t(){let n=e.getRootElement();if(null===n)return f();let l=n.parentElement;if(!(l instanceof HTMLElement))return f();f(),r=n,i=l,(o=new MutationObserver(n=>{let l=e.getRootElement(),o=l&&l.parentElement;if(l!==r||o!==i)return t();for(let e of n)if(!a.contains(e.target))return c()})).observe(l,d),c()});return()=>{h(),f()}}function f(e,t){let n=null,r=null,l=null,o=null,s=()=>{};function d(a){a.read(()=>{let a=(0,i.vJ)();if(!(0,i.I2)(a))return n=null,r=null,l=null,o=null,s(),void(s=()=>{});let{anchor:d,focus:f}=a,h=d.getNode(),g=h.getKey(),p=d.offset,_=f.getNode(),m=_.getKey(),y=f.offset,C=e.getElementByKey(g),v=e.getElementByKey(m),T=null===n||null===C||p!==r||g!==n.getKey()||h!==n&&(!(n instanceof i.Ey)||h.updateDOM(n,C,e._config)),N=null===l||null===v||y!==o||m!==l.getKey()||_!==l&&(!(l instanceof i.Ey)||_.updateDOM(l,v,e._config));if(T||N){let n=e.getElementByKey(d.getNode().getKey()),r=e.getElementByKey(f.getNode().getKey());if(null!==n&&null!==r&&"SPAN"===n.tagName&&"SPAN"===r.tagName){let l,i,o,a,h=document.createRange();f.isBefore(d)?(l=r,i=f.offset,o=n,a=d.offset):(l=n,i=d.offset,o=r,a=f.offset);let g=l.firstChild;if(null===g)throw Error("Expected text node to be first child of span");let p=o.firstChild;if(null===p)throw Error("Expected text node to be first child of span");h.setStart(g,i),h.setEnd(p,a),s(),s=c(e,h,e=>{for(let t of e){let e=t.style;"Highlight"!==e.background&&(e.background="Highlight"),"HighlightText"!==e.color&&(e.color="HighlightText"),"-1"!==e.zIndex&&(e.zIndex="-1"),"none"!==e.pointerEvents&&(e.pointerEvents="none"),e.marginTop!==u(-1.5)&&(e.marginTop=u(-1.5)),e.paddingTop!==u(4)&&(e.paddingTop=u(4)),e.paddingBottom!==u(0)&&(e.paddingBottom=u(0))}void 0!==t&&t(e)})}}n=h,r=p,l=_,o=y})}return d(e.getEditorState()),a(e.registerUpdateListener(({editorState:e})=>d(e)),s,()=>{s()})}function h(e,...t){let n=s(...t);n.length>0&&e.classList.add(...n)}function g(e,...t){let n=s(...t);n.length>0&&e.classList.remove(...n)}function p(e,t){for(let n of t)if(e.type.startsWith(n))return!0;return!1}function _(e,t){let n=e[Symbol.iterator]();return new Promise((e,r)=>{let l=[],i=()=>{let{done:o,value:s}=n.next();if(o)return e(l);let a=new FileReader;a.addEventListener("error",r),a.addEventListener("load",()=>{let e=a.result;"string"==typeof e&&l.push({file:s,result:e}),i()}),p(s,t)?a.readAsDataURL(s):i()};i()})}function m(e,t){let n=[],r=(e||(0,i.Ni)()).getLatest(),l=t||((0,i.ff)(r)?r.getLastDescendant():r),o=r,s=function(e){let t=e,n=0;for(;null!==(t=t.getParent());)n++;return n}(o);for(;null!==o&&!o.is(l);)if(n.push({depth:s,node:o}),(0,i.ff)(o)&&o.getChildrenSize()>0)o=o.getFirstChild(),s++;else{let e=null;for(;null===e&&null!==o;)null===(e=o.getNextSibling())?(o=o.getParent(),s--):o=e}return null!==o&&o.is(l)&&n.push({depth:s,node:o}),n}function y(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function C(e){let t=v(e,e=>(0,i.ff)(e)&&!e.isInline());return(0,i.ff)(t)||o(4,e.__key),t}let v=(e,t)=>
1{let n=e;for(;n!==(0,i.Ni)()&&null!=n;){if(t(n))return n;n=n.getParent()}return null};function T(e,t,n,r){let l=e=>e instanceof t;return e.registerNodeTransform(t,e=>{let t=(e=>{let t=e.getChildren();for(let e=0;e<t.length;e++)if(l(t[e]))return null;let n=e,r=e;for(;null!==n;)if(r=n,l(n=n.getParent()))return{child:r,parent:n};return null})(e);if(null!==t){let{child:l,parent:i}=t;if(l.is(e)){r(i,e);let t=l.getNextSiblings(),o=t.length;if(i.insertAfter(l),0!==o){let e=n(i);l.insertAfter(e);for(let n=0;n<o;n++)e.append(t[n])}i.canBeEmpty()||0!==i.getChildrenSize()||i.remove()}}})}function N(e,t){let n=new Map,r=e._pendingEditorState;for(let[e,r]of t._nodeMap){let t=(0,l.BE)(r);if((0,i.kF)(t)){if(!(0,i.kF)(r))throw Error("Expected node be a TextNode");t.__text=r.__text}n.set(e,t)}r&&(r._nodeMap=n),e._dirtyType=2;let o=t._selection;(0,i.n1)(null===o?null:o.clone())}function S(e){let t=(0,i.vJ)()||(0,i.S1)();if((0,i.I2)(t)){let{focus:n}=t,r=n.getNode(),l=n.offset;if((0,i.Iq)(r)){let t=r.getChildAtIndex(l);null==t?r.append(e):t.insertBefore(e),e.selectNext()}else{let t,n;(0,i.kF)(r)?(t=r.getParentOrThrow(),n=r.getIndexWithinParent(),l>0&&(n+=1,r.splitText(l))):(t=r,n=l);let[,o]=(0,i.hc)(t,n);o.insertBefore(e),o.selectStart()}}else{if(null!=t){let n=t.getNodes();n[n.length-1].getTopLevelElementOrThrow().insertAfter(e)}else(0,i.Ni)().append(e);let n=(0,i.lJ)();e.insertAfter(n),n.select()}return e.getLatest()}function b(e,t){let n=t();return e.replace(n),n.append(e),n}function x(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function E(e,t){let n=[];for(let r=0;r<e.length;r++){let l=t(e[r]);null!==l&&n.push(l)}return n}function w(e,t){let n=e.getFirstChild();null!==n?n.insertBefore(t):e.append(t)}r.$dfs,r.$filter;let O=r.$findMatchingParent,k=r.$getNearestBlockElementAncestorOrThrow,A=r.$getNearestNodeOfType;r.$insertFirst,r.$insertNodeToNearestRoot,r.$restoreEditorState,r.$splitNode,r.$wrapNodeInElement;let M=r.addClassNamesToElement,D=r.isHTMLAnchorElement,R=r.isHTMLElement;r.isMimeType,r.markSelection,r.mediaFileReader;let L=r.mergeRegister,I=r.objectKlassEquals;r.positionNodeOnRange,r.registerNestedElementResolver;let P=r.removeClassNamesFromElement},18765:(e,t,n)=>{"use strict";n.d(t,{Pi:()=>U,jL:()=>Y,dJ:()=>V,ZI:()=>G});var r={};n.r(r),n.d(r,{$generateJSONFromSelectedNodes:()=>m,$generateNodesFromSerializedNodes:()=>y,$getHtmlContent:()=>f,$getLexicalContent:()=>h,$insertDataTransferForPlainText:()=>g,$insertDataTransferForRichText:()=>p,$insertGeneratedNodes:()=>_,copyToClipboard:()=>v});var l={};n.r(l),n.d(l,{$createHeadingNode:()=>K,$createQuoteNode:()=>L,$isHeadingNode:()=>W,$isQuoteNode:()=>I,DRAG_DROP_PASTE:()=>D,HeadingNode:()=>P,QuoteNode:()=>R,eventFiles:()=>z,registerRichText:()=>j});var i=n(55599),o=n(62105),s=n(8179),a=n(35482),u=function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)};let d="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,c=e=>d?(e||window).getSelection():null;function f(e){let t=(0,a.vJ)();if(null==t)throw Error("Expected valid LexicalSelection");return(0,a.I2)(t)&&t.isCollapsed()||0===t.getNodes().length?"":(0,i.g)(e,t)}function h(e){let t=(0,a.vJ)();if(null==t)throw Error("Expected valid LexicalSelection");return(0,a.I2)(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(m(e,t))}function g(e,t){let n=e.getData("text/plain")||e.getData("text/uri-list");null!=n&&t.insertRawText(n)}function p(e,t,n){let r=e.getData("application/x-lexical-editor");if(r)try{let e=JSON.parse(r);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes))return _(n,y(e.nodes),t)}catch(e){}let l=e.getData("text/html");if(l)try{let e=(new DOMParser).parseFromString(l,"text/html");return _(n,(0,i.d)(n,e),t)}catch(e){}let o=e.getData("text/plain")||e.getData("text/uri-list");if(null!=o)if((0,a.I2)(t)){let e=o.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let n=0;n<e.length;n++){let r=e[n];
1"\n"===r||"\r\n"===r?t.insertParagraph():" "===r?t.insertNodes([(0,a.ev)()]):t.insertText(r)}}else t.insertRawText(o)}function _(e,t,n){e.dispatchCommand(a.oq,{nodes:t,selection:n})||n.insertNodes(t)}function m(e,t){let n=[],r=(0,a.Ni)().getChildren();for(let l=0;l<r.length;l++)!function e(t,n,r,l=[]){let i=null===n||r.isSelected(n),s=(0,a.ff)(r)&&r.excludeFromCopy("html"),d=r;if(null!==n){let e=(0,o.BE)(r);d=e=(0,a.kF)(e)&&null!==n?(0,o.SD)(n,e):e}let c=(0,a.ff)(d)?d.getChildren():[],f=function(e){let t=e.exportJSON(),n=e.constructor;return t.type!==n.getType()&&u(58,n.name),(0,a.ff)(e)&&(Array.isArray(t.children)||u(59,n.name)),t}(d);if((0,a.kF)(d)){let e=d.__text;e.length>0?f.text=e:i=!1}for(let l=0;l<c.length;l++){let o=c[l],s=e(t,n,o,f.children);!i&&(0,a.ff)(r)&&s&&r.extractWithChild(o,n,"clone")&&(i=!0)}if(i&&!s)l.push(f);else if(Array.isArray(f.children))for(let e=0;e<f.children.length;e++){let t=f.children[e];l.push(t)}return i}(e,t,r[l],n);return{namespace:e._config.namespace,nodes:n}}function y(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n],l=(0,a.GM)(r);(0,a.kF)(l)&&(0,o.Xg)(l),t.push(l)}return t}let C=null;async function v(e,t){if(null!==C)return!1;if(null!==t)return new Promise((n,r)=>{e.update(()=>{n(T(e,t))})});let n=e.getRootElement(),r=null==e._window?window.document:e._window.document,l=c(e._window);if(null===n||null===l)return!1;let i=r.createElement("span");i.style.cssText="position: fixed; top: -1000px;",i.append(r.createTextNode("#")),n.append(i);let o=new Range;return o.setStart(i,0),o.setEnd(i,1),l.removeAllRanges(),l.addRange(o),new Promise((t,n)=>{let l=e.registerCommand(a.u5,n=>((0,s.xj)(n,ClipboardEvent)&&(l(),null!==C&&(window.clearTimeout(C),C=null),t(T(e,n))),!0),a.d);C=window.setTimeout(()=>{l(),C=null,t(!1)},50),r.execCommand("copy"),i.remove()})}function T(e,t){let n=c(e._window);if(!n)return!1;let r=n.anchorNode,l=n.focusNode;if(null!==r&&null!==l&&!(0,a.LY)(e,r,l))return!1;t.preventDefault();let i=t.clipboardData,o=(0,a.vJ)();if(null===i||null===o)return!1;let s=f(e),u=h(e),d="";return null!==o&&(d=o.getTextContent()),null!==s&&i.setData("text/html",s),null!==u&&i.setData("application/x-lexical-editor",u),i.setData("text/plain",d),!0}r.$generateJSONFromSelectedNodes,r.$generateNodesFromSerializedNodes,r.$getHtmlContent,r.$getLexicalContent,r.$insertDataTransferForPlainText;let N=r.$insertDataTransferForRichText;r.$insertGeneratedNodes;let S=r.copyToClipboard;function b(e,t){if(void 0!==document.caretRangeFromPoint){let n=document.caretRangeFromPoint(e,t);return null===n?null:{node:n.startContainer,offset:n.startOffset}}if("undefined"!==document.caretPositionFromPoint){let n=document.caretPositionFromPoint(e,t);return null===n?null:{node:n.offsetNode,offset:n.offset}}return null}let x="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,E=x&&"documentMode"in document?document.documentMode:null;x&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),x&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);let w=!(!x||!("InputEvent"in window)||E)&&"getTargetRanges"in new window.InputEvent("input"),O=x&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),k=x&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,A=(x&&/Android/.test(navigator.userAgent),x&&/^(?=.*Chrome).*/i.test(navigator.userAgent)),M=x&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!A,D=(0,a.gu)("DRAG_DROP_PASTE_FILE");class R extends a.fG{static getType(){return"quote"}static clone(e){return new R(e.__key)}constructor(e){super(e)}createDOM(e){let t=document.createElement("blockquote");return(0,s.ZB)(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:B,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(t&&(0,s.sb)(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();t.style.textAlign=e;let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){let t=L();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(e,t){let n=(0,a.lJ)(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){let e=(0,a.lJ)();
1return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}}function L(){return(0,a.pT)(new R)}function I(e){return e instanceof R}class P extends a.fG{static getType(){return"heading"}static clone(e){return new P(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}createDOM(e){let t=this.__tag,n=document.createElement(t),r=e.theme.heading;if(void 0!==r){let e=r[t];(0,s.ZB)(n,e)}return n}updateDOM(e,t){return!1}static importDOM(){return{h1:e=>({conversion:$,priority:0}),h2:e=>({conversion:$,priority:0}),h3:e=>({conversion:$,priority:0}),h4:e=>({conversion:$,priority:0}),h5:e=>({conversion:$,priority:0}),h6:e=>({conversion:$,priority:0}),p:e=>{let t=e.firstChild;return null!==t&&F(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>F(e)?{conversion:e=>({node:K("h1")}),priority:3}:null}}exportDOM(e){let{element:t}=super.exportDOM(e);if(t&&(0,s.sb)(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();t.style.textAlign=e;let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){let t=K(e.tag);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(e,t=!0){let n=e?e.anchor.offset:0,r=n!==this.getTextContentSize()&&e?K(this.getTag()):(0,a.lJ)(),l=this.getDirection();if(r.setDirection(l),this.insertAfter(r,t),0===n&&!this.isEmpty()&&e){let e=(0,a.lJ)();e.select(),this.replace(e,!0)}return r}collapseAtStart(){let e=this.isEmpty()?(0,a.lJ)():K(this.getTag());
1return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function F(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function $(e){let t=e.nodeName.toLowerCase(),n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=K(t),null!==e.style&&n.setFormat(e.style.textAlign)),{node:n}}function B(e){let t=L();return null!==e.style&&t.setFormat(e.style.textAlign),{node:t}}function K(e){return(0,a.pT)(new P(e))}function W(e){return e instanceof P}function z(e){let t=null;if((0,s.xj)(e,DragEvent)?t=e.dataTransfer:(0,s.xj)(e,ClipboardEvent)&&(t=e.clipboardData),null===t)return[!1,[],!1];let n=t.types,r=n.includes("Files"),l=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),l]}function J(e){let t=(0,a.vJ)();if(!(0,a.I2)(t))return!1;let n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){let l=r[t],i=l.getKey();if(n.has(i))continue;let o=(0,s.mB)(l),a=o.getKey();o.canIndent()&&!n.has(a)&&(n.add(a),e(o))}return n.size>0}function H(e){let t=(0,a.xL)(e);return(0,a.Cy)(t)}function j(e){return(0,s.Sd)(e.registerCommand(a.d8,e=>{let t=(0,a.vJ)();return!!(0,a.RT)(t)&&(t.clear(),!0)},0),e.registerCommand(a.Wu,e=>{let t=(0,a.vJ)();return!!(0,a.I2)(t)&&(t.deleteCharacter(e),!0)},a.jZ),e.registerCommand(a.hi,e=>{let t=(0,a.vJ)();return!!(0,a.I2)(t)&&(t.deleteWord(e),!0)},a.jZ),e.registerCommand(a.vi,e=>{let t=(0,a.vJ)();return!!(0,a.I2)(t)&&(t.deleteLine(e),!0)},a.jZ),e.registerCommand(a.bM,t=>{let n=(0,a.vJ)();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;let r=t.dataTransfer;if(null!=r)N(r,n,e);else if((0,a.I2)(n)){let e=t.data;return e&&n.insertText(e),!0}}return!0},a.jZ),e.registerCommand(a.$e,()=>{let e=(0,a.vJ)();return!!(0,a.I2)(e)&&(e.removeText(),!0)},a.jZ),e.registerCommand(a.mB,e=>{let t=(0,a.vJ)();return!!(0,a.I2)(t)&&(t.formatText(e),!0)},a.jZ),e.registerCommand(a.fU,e=>{let t=(0,a.vJ)();if(!(0,a.I2)(t)&&!(0,a.RT)(t))return!1;for(let n of t.getNodes()){let t=(0,s.Bt)(n,e=>(0,a.ff)(e)&&!e.isInline());null!==t&&t.setFormat(e)}return!0},a.jZ),e.registerCommand(a.FE,e=>{let t=(0,a.vJ)();return!!(0,a.I2)(t)&&(t.insertLineBreak(e),!0)},a.jZ),e.registerCommand(a.XK,()=>{let e=(0,a.vJ)();return!!(0,a.I2)(e)&&(e.insertParagraph(),!0)},a.jZ),e.registerCommand(a.YW,()=>((0,a.H2)([(0,a.ev)()]),!0),a.jZ),e.registerCommand(a.Pi,()=>J(e=>{let t=e.getIndent();e.setIndent(t+1)}),a.jZ),e.registerCommand(a.si,()=>J(e=>{let t=e.getIndent();t>0&&e.setIndent(t-1)}),a.jZ),e.registerCommand(a.UD,e=>{let t=(0,a.vJ)();if((0,a.RT)(t)&&!H(e.target)){let e=t.getNodes();if(e.length>0)return e[0].selectPrevious(),!0}else if((0,a.I2)(t)){let n=(0,a.B$)(t.focus,!0);if(!e.shiftKey&&(0,a.Cy)(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},a.jZ),e.registerCommand(a.bb,e=>{let t=(0,a.vJ)();if((0,a.RT)(t)){let e=t.getNodes();if(e.length>0)return e[0].selectNext(0,0),!0}else if((0,a.I2)(t)){if(function(e){let t=e.focus;return"root"===t.key&&t.offset===(0,a.Ni)().getChildrenSize()}(t))return e.preventDefault(),!0;let n=(0,a.B$)(t.focus,!1);if(!e.shiftKey&&(0,a.Cy)(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},a.jZ),e.registerCommand(a.AX,e=>{let t=(0,a.vJ)();if((0,a.RT)(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectPrevious(),!0}if(!(0,a.I2)(t))return!1;if((0,o.Cb)(t,!0)){let n=e.shiftKey;return e.preventDefault(),(0,o.Rk)(t,n,!0),!0}return!1},a.jZ),e.registerCommand(a.JM,e=>{let t=(0,a.vJ)();if((0,a.RT)(t)&&!H(e.target)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),n[0].selectNext(0,0),!0}if(!(0,a.I2)(t))return!1;let n=e.shiftKey;return!!(0,o.Cb)(t,!1)&&(e.preventDefault(),(0,o.Rk)(t,n,!1),!0)},a.jZ),e.registerCommand(a.gC,t=>{if(H(t.target))return!1;let n=(0,a.vJ)();if(!(0,a.I2)(n))return!1;t.preventDefault();let{anchor:r}=n,l=r.getNode();return n.isCollapsed()&&0===r.offset&&!(0,a.hV)(l)&&(0,s.mB)(l).getIndent()>0?e.dispatchCommand(a.si,void 0):e.dispatchCommand(a.Wu,!0)},a.jZ),e.registerCommand(a.w$,t=>{if(H(t.target))return!1;let n=(0,a.vJ)();return!!(0,a.I2)(n)&&(t.preventDefault(),e.dispatchCommand(a.Wu,!1))},a.jZ),e.registerCommand(a.if,t=>{let n=(0,a.vJ)();if(!(0,a.I2)(n))return!1;if(null!==t){if((k||O||M)&&w)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(a.FE,!1)}return e.dispatchCommand(a.XK,void 0)},a.jZ),e.registerCommand(a.Q$,()=>{let t=(0,a.vJ)();return!!(0,a.I2)(t)&&(e.blur(),!0)},a.jZ),e.registerCommand(a.Sr,t=>{let[,n]=z(t);if(n.length>
10){let r=b(t.clientX,t.clientY);if(null!==r){let{offset:t,node:l}=r,i=(0,a.xL)(l);if(null!==i){let e=(0,a.uT)();if((0,a.kF)(i))e.anchor.set(i.getKey(),t,"text"),e.focus.set(i.getKey(),t,"text");else{let t=i.getParentOrThrow().getKey(),n=i.getIndexWithinParent()+1;e.anchor.set(t,n,"element"),e.focus.set(t,n,"element")}let n=(0,a.C)(e);(0,a.n1)(n)}e.dispatchCommand(D,n)}return t.preventDefault(),!0}let r=(0,a.vJ)();return!!(0,a.I2)(r)},a.jZ),e.registerCommand(a.Tg,e=>{let[t]=z(e),n=(0,a.vJ)();return!(t&&!(0,a.I2)(n))},a.jZ),e.registerCommand(a.ri,e=>{let[t]=z(e),n=(0,a.vJ)();if(t&&!(0,a.I2)(n))return!1;let r=b(e.clientX,e.clientY);if(null!==r){let t=(0,a.xL)(r.node);(0,a.Cy)(t)&&e.preventDefault()}return!0},a.jZ),e.registerCommand(a.HY,()=>((0,a.e1)(),!0),a.jZ),e.registerCommand(a.u5,t=>(S(e,(0,s.xj)(t,ClipboardEvent)?t:null),!0),a.jZ),e.registerCommand(a.VS,t=>((async function(e,t){await S(t,(0,s.xj)(e,ClipboardEvent)?e:null),t.update(()=>{let e=(0,a.vJ)();(0,a.I2)(e)?e.removeText():(0,a.RT)(e)&&e.getNodes().forEach(e=>e.remove())})})(t,e),!0),a.jZ),e.registerCommand(a.w,t=>{let[,n,r]=z(t);return n.length>0&&!r?(e.dispatchCommand(D,n),!0):!(0,a.Z$)(t.target)&&null!==(0,a.vJ)()&&(t.preventDefault(),e.update(()=>{let n=(0,a.vJ)(),r=(0,s.xj)(t,InputEvent)||(0,s.xj)(t,KeyboardEvent)?null:t.clipboardData;null!=r&&null!==n&&N(r,n,e)},{tag:"paste"}),!0)},a.jZ))}l.$createHeadingNode,l.$createQuoteNode;let U=l.$isHeadingNode;l.$isQuoteNode,l.DRAG_DROP_PASTE;let Y=l.HeadingNode,V=l.QuoteNode;l.eventFiles;let G=l.registerRichText},34746:(e,t,n)=>{"use strict";n.d(t,{Y:()=>u});var r={};n.r(r),n.d(r,{useLexicalNodeSelection:()=>a});var l=n(43624),i=n(35482),o=n(12115);function s(e,t){return e.getEditorState().read(()=>{let e=(0,i.ns)(t);return null!==e&&e.isSelected()})}function a(e){let[t]=(0,l.DF)(),[n,r]=(0,o.useState)(()=>s(t,e));return(0,o.useEffect)(()=>{let n=!0,l=t.registerUpdateListener(()=>{n&&r(s(t,e))});return()=>{n=!1,l()}},[t,e]),[n,(0,o.useCallback)(n=>{t.update(()=>{let t=(0,i.vJ)();(0,i.RT)(t)||(t=(0,i.rU)(),(0,i.n1)(t)),(0,i.RT)(t)&&(n?t.add(e):t.delete(e))})},[t,e]),(0,o.useCallback)(()=>{t.update(()=>{let e=(0,i.vJ)();(0,i.RT)(e)&&e.clear()})},[t])]}let u=r.useLexicalNodeSelection},35482:(e,t,n)=>{"use strict";n.d(t,{pT:()=>r1,rU:()=>r2,lJ:()=>r3,z8:()=>r5,uT:()=>r8,ev:()=>r4,sT:()=>r6,B$:()=>r7,Ck:()=>r9,xL:()=>le,ns:()=>lt,S1:()=>ln,Ni:()=>lr,vJ:()=>ll,EL:()=>li,H2:()=>lo,Cy:()=>ls,ff:()=>la,jG:()=>lu,wH:()=>ld,RT:()=>lc,bS:()=>lf,I2:()=>lh,hV:()=>lg,Iq:()=>lp,kF:()=>l_,C:()=>lm,GM:()=>ly,e1:()=>lC,n1:()=>lv,hc:()=>lT,d8:()=>lN,d:()=>lS,jZ:()=>lb,Wg:()=>lx,Ac:()=>lE,bM:()=>lw,u5:()=>lO,VS:()=>lk,Wu:()=>lA,vi:()=>lM,hi:()=>lD,ri:()=>lR,Tg:()=>lL,Sr:()=>lI,Kp:()=>lP,fG:()=>lF,$7:()=>l$,fU:()=>lB,mB:()=>lK,Pi:()=>lW,FE:()=>lz,XK:()=>lJ,YW:()=>lH,bb:()=>lj,AX:()=>lU,JM:()=>lY,UD:()=>lV,gC:()=>lG,w$:()=>lZ,if:()=>lX,Q$:()=>lq,OX:()=>lQ,si:()=>l0,w:()=>l1,$e:()=>l2,Mv:()=>l3,oq:()=>l5,HY:()=>l8,Ey:()=>l4,gu:()=>l6,ie:()=>l7,Gc:()=>l9,nY:()=>ie,sb:()=>it,Z$:()=>ir,LY:()=>il});var r={};function l(e){return{}}n.r(r),n.d(r,{$addUpdateTag:()=>tf,$applyNodeReplacement:()=>tC,$copyNode:()=>ty,$createLineBreakNode:()=>nN,$createNodeSelection:()=>rt,$createParagraphNode:()=>rj,$createPoint:()=>nU,$createRangeSelection:()=>re,$createTabNode:()=>nJ,$createTextNode:()=>nK,$getAdjacentNode:()=>to,$getCharacterOffsets:()=>n2,$getEditor:()=>tk,$getNearestNodeFromDOMNode:()=>eG,$getNearestRootOrShadowRoot:()=>t_,$getNodeByKey:()=>eY,$getPreviousSelection:()=>rl,$getRoot:()=>eq,$getSelection:()=>rr,$getTextContent:()=>rd,$hasAncestor:()=>th,$hasUpdateTag:()=>tc,$insertNodes:()=>ru,$isBlockElementNode:()=>n7,$isDecoratorNode:()=>rI,$isElementNode:()=>rF,$isInlineElementOrDecoratorNode:()=>tp,$isLeafNode:()=>eW,$isLineBreakNode:()=>nS,$isNodeSelection:()=>n0,$isParagraphNode:()=>rU,$isRangeSelection:()=>nq,$isRootNode:()=>rK,$isRootOrShadowRoot:()=>tm,$isTabNode:()=>nH,$isTextNode:()=>nW,$nodesOfType:()=>tl,$normalizeSelection__EXPERIMENTAL:()=>eM,$parseSerializedNode:()=>rx,$selectAll:()=>tt,$setCompositionKey:()=>ej,$setSelection:()=>e0,$splitNode:()=>tb,BLUR_COMMAND:()=>V,CAN_REDO_COMMAND:()=>j,CAN_UNDO_COMMAND:()=>U,CLEAR_EDITOR_COMMAND:()=>J,CLEAR_HISTORY_COMMAND:()=>H,CLICK_COMMAND:()=>s,COMMAND_PRIORITY_CRITICAL:()=>rX,COMMAND_PRIORITY_EDITOR:()=>rY,COMMAND_PRIORITY_HIGH:()=>rZ,COMMAND_PRIORITY_LOW:()=>rV,COMMAND_PRIORITY_NORMAL:()=>rG,CONTROLLED_TEXT_INSERTION_COMMAND:()=>c,COPY_COMMAND:()=>K,CUT_COMMAND:()=>W,DELETE_CHARACTER_COMMAND:()=>a,DELETE_LINE_COMMAND:()=>p,DELETE_WORD_COMMAND:()=>g,DRAGEND_COMMAND:()=>B,DRAGOVER_COMMAND:()=>$,DRAGSTART_COMMAND:()=>F,DROP_COMMAND:()=>I,DecoratorNode:()=>rL,ElementNode:()=>rP,FOCUS_COMMAND:()=>Y,FORMAT_ELEMENT_COMMAND:()=>P,FORMAT_TEXT_COMMAND:()=>_,INDENT_CONTENT_COMMAND:()=>R,INSERT_LINE_BREAK_COMMAND:()=>u,INSERT_PARAGRAPH_COMMAND:()=>d,INSERT_TAB_COMMAND:()=>D,KEY_ARROW_DOWN_COMMAND:()=>x,KEY_ARROW_LEFT_COMMAND:()=>N,KEY_ARROW_RIGHT_COMMAND:()=>v,KEY_ARROW_UP_COMMAND:()=>b,KEY_BACKSPACE_COMMAND:()=>O,KEY_DELETE_COMMAND:()=>A,KEY_DOWN_COMMAND:()=>C,KEY_ENTER_COMMAND:()=>E,KEY_ESCAPE_COMMAND:()=>k,KEY_MODIFIER_COMMAND:()=>G,KEY_SPACE_COMMAND:()=>w,KEY_TAB_COMMAND:()=>M,LineBreakNode:()=>
1nv,MOVE_TO_END:()=>T,MOVE_TO_START:()=>S,OUTDENT_CONTENT_COMMAND:()=>L,PASTE_COMMAND:()=>f,ParagraphNode:()=>rJ,REDO_COMMAND:()=>y,REMOVE_TEXT_COMMAND:()=>h,RootNode:()=>rB,SELECTION_CHANGE_COMMAND:()=>i,SELECTION_INSERT_CLIPBOARD_NODES_COMMAND:()=>o,SELECT_ALL_COMMAND:()=>z,TabNode:()=>nz,TextNode:()=>nM,UNDO_COMMAND:()=>m,createCommand:()=>l,createEditor:()=>rQ,getNearestEditorFromDOMNode:()=>eF,isCurrentlyReadOnlyMode:()=>ry,isHTMLAnchorElement:()=>tx,isHTMLElement:()=>tE,isSelectionCapturedInDecoratorInput:()=>eI,isSelectionWithinEditor:()=>eP});let i={},o={},s={},a={},u={},d={},c={},f={},h={},g={},p={},_={},m={},y={},C={},v={},T={},N={},S={},b={},x={},E={},w={},O={},k={},A={},M={},D={},R={},L={},I={},P={},F={},$={},B={},K={},W={},z={},J={},H={},j={},U={},Y={},V={},G={};var Z=function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)};let X="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,q=X&&"documentMode"in document?document.documentMode:null,Q=X&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ee=X&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),et=!(!X||!("InputEvent"in window)||q)&&"getTargetRanges"in new window.InputEvent("input"),en=X&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),er=X&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,el=X&&/Android/.test(navigator.userAgent),ei=X&&/^(?=.*Chrome).*/i.test(navigator.userAgent),eo=X&&el&&ei,es=X&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!ei,ea=en||er||es?"\xa0":"â",eu=ee?"\xa0":ea,ed="Ö-ß¿ï¬-﷽ﹰ-ﻼ",ec="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸÌ-Öà -á¿¿ââ°-ï¬ï¸-﹯﻽-ï¿¿",ef=RegExp("^[^"+ec+"]*["+ed+"]"),eh=RegExp("^[^"+ed+"]*["+ec+"]"),eg={bold:1,code:16,highlight:128,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},ep={directionless:1,unmergeable:2},e_={center:2,end:6,justify:4,left:1,right:3,start:5},em={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},ey={normal:0,segmented:2,token:1},eC={0:"normal",2:"segmented",1:"token"};function ev(...e){let t=[];for(let n of e)if(n&&"string"==typeof n)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}let eT=!1,eN=0;function eS(e){eN=e.timeStamp}function eb(e,t,n){return t.__lexicalLineBreak===e||void 0!==e[`__lexicalKey_${n._key}`]}function ex(e,t,n){eT=!0;let r=performance.now()-eN>100;try{rR(e,()=>{let l=rr()||e.getEditorState().read(()=>{let e=rr();return null!==e?e.clone():null}),i=new Map,o=e.getRootElement(),s=e._editorState,a=e._blockCursorElement,u=!1,d="";for(let n=0;n<t.length;n++){let c=t[n],f=c.type,h=c.target,g=eG(h,s);if(!(null===g&&h!==o||rI(g))){if("characterData"===f)r&&nW(g)&&function(e,t,n){if(nq(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return 3===t.nodeType&&n.isAttached()}(l,h,g)&&function(e,t,n){let r=tS(n._window),l=null,i=null;null!==r&&r.anchorNode===e&&(l=r.anchorOffset,i=r.focusOffset);let o=e.nodeValue;null!==o&&e7(t,o,l,i,!1)}(h,g,e);else if("childList"===f){u=!0;let t=c.addedNodes;for(let n=0;n<t.length;n++){let r=t[n],l=eV(r),i=r.parentNode;if(null!=i&&r!==a&&null===l&&("BR"!==r.nodeName||!eb(r,i,e))){if(ee){let e=r.innerText||r.nodeValue;e&&(d+=e)}i.removeChild(r)}}let n=c.removedNodes,r=n.length;if(r>0){let t=0;for(let l=0;l<r;l++){let r=n[l];("BR"===r.nodeName&&eb(r,h,e)||a===r)&&(h.appendChild(r),t++)}r!==t&&(h===o&&(g=eQ(s)),i.set(h,g))}}}}if(i.size>0)for(let[t,n]of i)if(rF(n)){let r=n.getChildrenKeys(),l=t.firstChild;for(let n=0;n<r.length;n++){let i=r[n],o=e.getElementByKey(i);null!==o&&(null==l?(t.appendChild(o),l=o):l!==o&&t.replaceChild(o,l),l=l.nextSibling)}}else nW(n)&&n.markDirty();let c=n.takeRecords();if(c.length>0){for(let t=0;t<c.length;t++){let n=c[t],r=n.addedNodes,l=n.target;for(let t=0;t<r.length;t++){let n=r[t],i=n.parentNode;null==i||"BR"!==n.nodeName||eb(n,l,e)||i.removeChild(n)}}n.takeRecords()}null!==l&&(u&&(l.dirty=!0,e0(l)),ee&&ts(e)&&l.insertRawText(d))})}finally{eT=!1}}function eE(e){let t=e._observer;null!==t&&ex(e,t.takeRecords(),t)}function ew(e){0===eN&&tg(e).addEventListener("textInput",eS,!0),e._observer=new MutationObserver((t,n)=>{ex(e,t,n)})}function eO(e,t){let n=e.__mode,r=e.__format,l=e.__style,i=t.__mode,o=t.__format,s=t.__style;return(null===n||n===i)&&(null===r||r===o)&&(null===l||l===s)}function ek(e,t){let n=e.mergeWithSibling(t),r=rN()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function eA(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&nW(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){eO(t,r)&&(r=ek(t,r));break}t.remove()}for(;null!==(n=r.getNextSibling())&&nW(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){eO(r,n)&&(r=ek(r,n));break}n.remove()}}else r.remove()}function eM(e){return eD(e.anchor),eD(e.focus),e}function eD(e){for(;"element"===e.type;){let t,n,r=e.getNode(),l=e.offset;if(l===r.getChildrenSize()?(t=r.getChildAtIndex(l-1),n=!0):(t=r.getChildAtIndex(l),n=!1),nW(t)){e.set(t.__key,n?t.getTextContentSize():0,"text");break}if(!rF(t))break;e.set(t.__key,n?t.getChildrenSize():0,"element")}}let eR=1,eL="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function eI(e){let t=document.activeElement;if(null===t)return!1;let n=t.nodeName;return rI(eG(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==t.__lexicalEditor)}function eP(e,t,n){let r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!eI(t)&&eF(t)===e}catch(e){return!1}}function eF(e){let t=e;for(;null!=t;){let e=t.__lexicalEditor;if(null!=e)return e;t=td(t)}return null}function e$(e){return e.isToken()||e.isSegmented()}function eB(e){let t=e;for(;null!=t;){if(3===t.nodeType)return t;t=t.firstChild}return null}
1function eK(e,t,n){let r=eg[t];if(null!==n&&(e&r)==(n&r))return e;let l=e^r;return"subscript"===t?l&=~eg.superscript:"superscript"===t&&(l&=~eg.subscript),l}function eW(e){return nW(e)||nS(e)||rI(e)}function ez(e,t){if(null!=t)return void(e.__key=t);rC(),rv();let n=rN(),r=rT(),l=""+eR++;r._nodeMap.set(l,e),rF(e)?n._dirtyElements.set(l,!0):n._dirtyLeaves.add(l),n._cloneNotNeeded.add(l),n._dirtyType=1,e.__key=l}function eJ(e){let t=e.getParent();if(null!==t){let n=e.getWritable(),r=t.getWritable(),l=e.getPreviousSibling(),i=e.getNextSibling();if(null===l)if(null!==i){let e=i.getWritable();r.__first=i.__key,e.__prev=null}else r.__first=null;else{let e=l.getWritable();if(null!==i){let t=i.getWritable();t.__prev=e.__key,e.__next=t.__key}else e.__next=null;n.__prev=null}if(null===i)if(null!==l){let e=l.getWritable();r.__last=l.__key,e.__next=null}else r.__last=null;else{let e=i.getWritable();if(null!==l){let t=l.getWritable();t.__next=e.__key,e.__prev=t.__key}else e.__prev=null;n.__next=null}r.__size--,n.__parent=null}}function eH(e){rv();let t=e.getLatest(),n=t.__parent,r=rT(),l=rN(),i=r._nodeMap,o=l._dirtyElements;null!==n&&function(e,t,n){let r=e;for(;null!==r;){if(n.has(r))return;let e=t.get(r);if(void 0===e)break;n.set(r,!1),r=e.__parent}}(n,i,o);let s=t.__key;l._dirtyType=1,rF(e)?o.set(s,!0):l._dirtyLeaves.add(s)}function ej(e){rC();let t=rN(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){let e=eY(n);null!==e&&e.getWritable()}if(null!==e){let t=eY(e);null!==t&&t.getWritable()}}}function eU(){return ry()?null:rN()._compositionKey}function eY(e,t){let n=(t||rT())._nodeMap.get(e);return void 0===n?null:n}function eV(e,t){let n=e[`__lexicalKey_${rN()._key}`];return void 0!==n?eY(n,t):null}function eG(e,t){let n=e;for(;null!=n;){let e=eV(n,t);if(null!==e)return e;n=td(n)}return null}function eZ(e){let t=Object.assign({},e._decorators);return e._pendingDecorators=t,t}function eX(e){return e.read(()=>eq().getTextContent())}function eq(){return eQ(rT())}function eQ(e){return e._nodeMap.get("root")}function e0(e){rC();let t=rT();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function e1(e){let t=rN(),n=function(e,t){let n=e;for(;null!=n;){let e=n[`__lexicalKey_${t._key}`];if(void 0!==e)return e;n=td(n)}return null}(e,t);return null===n?e===t.getRootElement()?eY("root"):null:eY(n)}function e2(e,t){return t?e.getTextContentSize():0}function e3(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function e5(e){let t=[],n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function e8(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function e4(e){return 3===e.nodeType?e.nodeValue:null}function e6(e,t,n){let r=tS(t._window);if(null===r)return;let l=r.anchorNode,{anchorOffset:i,focusOffset:o}=r;if(null!==l){let t=e4(l),r=eG(l);if(null!==t&&nW(r)){if(t===ea&&n){let e=n.length;t=n,i=e,o=e}null!==t&&e7(r,t,i,o,e)}}}function e7(e,t,n,r,l){let i=e;if(i.isAttached()&&(l||!i.isDirty())){let o=i.isComposing(),s=t;(o||l)&&t[t.length-1]===ea&&(s=t.slice(0,-1));let a=i.getTextContent();if(l||s!==a){if(""===s){if(ej(null),en||er||es)i.remove();else{let e=rN();setTimeout(()=>{e.update(()=>{i.isAttached()&&i.remove()})},20)}return}let t=i.getParent(),l=rl(),a=i.getTextContentSize(),u=eU(),d=i.getKey();if(i.isToken()||null!==u&&d===u&&!o||nq(l)&&(null!==t&&!t.canInsertTextBefore()&&0===l.anchor.offset||l.anchor.key===e.__key&&0===l.anchor.offset&&!i.canInsertTextBefore()&&!o||l.focus.key===e.__key&&l.focus.offset===a&&!i.canInsertTextAfter()&&!o))return void i.markDirty();let c=rr();if(!nq(c)||null===n||null===r)return void i.setTextContent(s);if(c.setTextNodeRange(i,n,i,r),i.isSegmented()){let e=nK(i.getTextContent());i.replace(e),i=e}i.setTextContent(s)}}}function e9(e){return 46===e}function te(e,t,n){return 65===e&&(Q?t:n)}function tt(){let e=eq();e0(eM(e.select(0,e.getChildrenSize())))}function tn(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];if(void 0!==r)return r;let l=e[t];if("string"==typeof l){let e=ev(l);return n[t]=e,e}return l}function tr(e,t,n,r,l){if(0===n.size)return;let i=r.__type,o=r.__key,s=t.get(i);void 0===s&&Z(33,i);let a=s.klass,u=e.get(a);void 0===u&&(u=new Map,e.set(a,u));let d=u.get(o),c="destroyed"===d&&"created"===l;
1(void 0===d||c)&&u.set(o,c?"updated":l)}function tl(e){let t=rT(),n=t._readOnly,r=e.getType(),l=t._nodeMap,i=[];for(let[,t]of l)t instanceof e&&t.__type===r&&(n||t.isAttached())&&i.push(t);return i}function ti(e,t,n){let r=e.getParent(),l=n,i=e;return null!==r&&(t&&0===n?(l=i.getIndexWithinParent(),i=r):t||n!==i.getChildrenSize()||(l=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(t?l-1:l)}function to(e,t){let n=e.offset;if("element"===e.type)return ti(e.getNode(),t,n);{let r=e.getNode();if(t&&0===n||!t&&n===r.getTextContentSize()){let e=t?r.getPreviousSibling():r.getNextSibling();return null===e?ti(r.getParentOrThrow(),t,r.getIndexWithinParent()+ +!t):e}}return null}function ts(e){let t=tg(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function ta(e){return!rK(e)&&!e.isLastChild()&&!e.isInline()}function tu(e,t){let n=e._keyToDOMMap.get(t);return void 0===n&&Z(75,t),n}function td(e){let t=e.assignedSlot||e.parentElement;return null!==t&&11===t.nodeType?t.host:t}function tc(e){return rN()._updateTags.has(e)}function tf(e){rC(),rN()._updateTags.add(e)}function th(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function tg(e){let t=e._window;return null===t&&Z(78),t}function tp(e){return rF(e)&&e.isInline()||rI(e)&&e.isInline()}function t_(e){let t=e.getParentOrThrow();for(;null!==t&&!tm(t);)t=t.getParentOrThrow();return t}function tm(e){return rK(e)||rF(e)&&e.isShadowRoot()}function ty(e){let t=e.constructor.clone(e);return ez(t,null),t}function tC(e){let t=rN(),n=e.constructor.getType(),r=t._nodes.get(n);void 0===r&&Z(97);let l=r.replace;if(null!==l){let t=l(e);return t instanceof e.constructor||Z(98),t}return e}function tv(e,t){!rK(e.getParent())||rF(t)||rI(t)||Z(99)}function tT(e){return(rI(e)||rF(e)&&!e.canBeEmpty())&&!e.isInline()}function tN(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;let r=e.parentElement;null!==r&&r.removeChild(e)}function tS(e){return X?(e||window).getSelection():null}function tb(e,t){let n=e.getChildAtIndex(t);null==n&&(n=e),tm(e)&&Z(102);let r=e=>{let t=e.getParentOrThrow(),l=tm(t),i=e!==n||l?ty(e):e;if(l)return rF(e)&&rF(i)||Z(133),e.insertAfter(i),[e,i,i];{let[n,l,o]=r(t),s=e.getNextSiblings();return o.append(i,...s),[n,l,i]}},[l,i]=r(n);return[l,i]}function tx(e){return tE(e)&&"A"===e.tagName}function tE(e){return 1===e.nodeType}function tw(e){if(rI(e)&&!e.isInline())return!0;if(!rF(e)||tm(e))return!1;let t=e.getFirstChild(),n=null===t||nS(t)||nW(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function tO(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}function tk(){return rN()}let tA,tM,tD,tR,tL,tI,tP,tF,t$,tB,tK="",tW="",tz="",tJ=!1,tH=!1,tj=null;function tU(e,t){let n=tP.get(e);if(null!==t){let n=t8(e);n.parentNode===t&&t.removeChild(n)}if(tF.has(e)||tM._keyToDOMMap.delete(e),rF(n)){let e=t2(n,tP);tY(e,0,e.length-1,null)}void 0!==n&&tr(tB,tD,tR,n,"destroyed")}function tY(e,t,n,r){let l=t;for(;l<=n;++l){let t=e[l];void 0!==t&&tU(t,r)}}function tV(e,t){e.setProperty("text-align",t)}function tG(e,t){let n=tA.theme.indent;if("string"==typeof n){let r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}let r=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||"40px";e.style.setProperty("padding-inline-start",0===t?"":`calc(${t} * ${r})`)}function tZ(e,t){let n=e.style;0===t?tV(n,""):1===t?tV(n,"left"):2===t?tV(n,"center"):3===t?tV(n,"right"):4===t?tV(n,"justify"):5===t?tV(n,"start"):6===t&&tV(n,"end")}function tX(e,t,n){let r=tF.get(e);void 0===r&&Z(60);let l=r.createDOM(tA,tM);if(function(e,t,n){let r=n._keyToDOMMap;t["__lexicalKey_"+n._key]=e,r.set(e,t)}(e,l,tM),nW(r)?l.setAttribute("data-lexical-text","true"):rI(r)&&l.setAttribute("data-lexical-decorator","true"),rF(r)){let e=r.__indent,t=r.__size;0!==e&&tG(l,e),0!==t&&function(e,t,n,r){let l=tW;tW="",tq(e,n,0,t,r,null),t1(n,r),tW=l}(t2(r,tF),t-1,r,l);let n=r.__format;0!==n&&tZ(l,n),r.isInline()||t0(null,r,l),ta(r)&&(tK+="\n\n",tz+="\n\n")}else{let t=r.getTextContent();if(rI(r)){let t=r.decorate(tM,tA);null!==t&&t3(e,t),l.contentEditable="false"}else nW(r)&&(r.isDirectionless()||(tW+=t));tK+=t,tz+=t}if(null!==t)if(null!=n)t.insertBefore(l,n);else{let e=t.__lexicalLineBreak;null!=e?t.insertBefore(l,e):t.appendChild(l)}return tr(tB,tD,tR,r,"created"),l}function tq(e,t,n,r,l,i){let o=tK;tK="";let s=n;for(;s<=r;++s)tX(e[s],l,i);ta(t)&&(tK+="\n\n"),l.__lexicalTextContent=tK,tK=o+tK}function tQ(e,t){let n=t.get(e);return nS(n)||rI(n)&&n.isInline()}
1function t0(e,t,n){let r=null!==e&&(0===e.__size||tQ(e.__last,tP)),l=0===t.__size||tQ(t.__last,tF);if(r){if(!l){let e=n.__lexicalLineBreak;null!=e&&n.removeChild(e),n.__lexicalLineBreak=null}}else if(l){let e=document.createElement("br");n.__lexicalLineBreak=e,n.appendChild(e)}}function t1(e,t){var n;let r=t.__lexicalDirTextContent,l=t.__lexicalDir;if(r!==tW||l!==tj){let r=""===tW,i=r?tj:(n=tW,ef.test(n)?"rtl":eh.test(n)?"ltr":null);if(i!==l){let n=t.classList,o=tA.theme,s=null!==l?o[l]:void 0,a=null!==i?o[i]:void 0;if(void 0!==s){if("string"==typeof s){let e=ev(s);s=o[l]=e}n.remove(...s)}if(null===i||r&&"ltr"===i)t.removeAttribute("dir");else{if(void 0!==a){if("string"==typeof a){let e=ev(a);a=o[i]=e}void 0!==a&&n.add(...a)}t.dir=i}tH||(e.getWritable().__dir=i)}tj=i,t.__lexicalDirTextContent=tW,t.__lexicalDir=i}}function t2(e,t){let n=[],r=e.__first;for(;null!==r;){let e=t.get(r);void 0===e&&Z(101),n.push(r),r=e.__next}return n}function t3(e,t){let n=tM._pendingDecorators,r=tM._decorators;if(null===n){if(r[e]===t)return;n=eZ(tM)}n[e]=t}function t5(e){let t=e.nextSibling;return null!==t&&t===tM._blockCursorElement&&(t=t.nextSibling),t}function t8(e){let t=t$.get(e);return void 0===t&&Z(75,e),t}let t4=Object.freeze({}),t6=[["keydown",function(e,t){if(t7=e.timeStamp,t9=e.keyCode,t.isComposing())return;let{keyCode:n,shiftKey:r,ctrlKey:l,metaKey:i,altKey:o}=e;!rA(t,C,e)&&(39!==n||l||i||o?39===n&&!o&&!r&&(l||i)?rA(t,T,e):37!==n||l||i||o?37===n&&!o&&!r&&(l||i)?rA(t,S,e):38!==n||l||i?40!==n||l||i?13===n&&r?(ni=!0,rA(t,E,e)):32===n?rA(t,w,e):Q&&l&&79===n?(e.preventDefault(),ni=!0,rA(t,u,!0)):13!==n||r?(Q?o||i||8!==n&&(72!==n||!l):l||o||i||8!==n)?27===n?rA(t,k,e):(Q?!(r||o||i)&&(e9(n)||68===n&&l):!(l||o||i)&&e9(n))?e9(n)?rA(t,A,e):(e.preventDefault(),rA(t,a,!1)):8===n&&(Q?o:l)?(e.preventDefault(),rA(t,g,!0)):e9(n)&&(Q?o:l)?(e.preventDefault(),rA(t,g,!1)):Q&&i&&8===n?(e.preventDefault(),rA(t,p,!0)):Q&&i&&e9(n)?(e.preventDefault(),rA(t,p,!1)):66===n&&!o&&(Q?i:l)?(e.preventDefault(),rA(t,_,"bold")):85===n&&!o&&(Q?i:l)?(e.preventDefault(),rA(t,_,"underline")):73===n&&!o&&(Q?i:l)?(e.preventDefault(),rA(t,_,"italic")):9!==n||o||l||i?90===n&&!r&&(Q?i:l)?(e.preventDefault(),rA(t,m,void 0)):(Q?90===n&&i&&r:89===n&&l||90===n&&l&&r)?(e.preventDefault(),rA(t,y,void 0)):n0(t._editorState._selection)?!r&&67===n&&(Q?i:l)?(e.preventDefault(),rA(t,K,e)):!r&&88===n&&(Q?i:l)?(e.preventDefault(),rA(t,W,e)):te(n,i,l)&&(e.preventDefault(),rA(t,z,e)):!ee&&te(n,i,l)&&(e.preventDefault(),rA(t,z,e)):rA(t,M,e):8===n?rA(t,O,e):(e.preventDefault(),rA(t,a,!0)):(ni=!1,rA(t,E,e)):rA(t,x,e):rA(t,b,e):rA(t,N,e):rA(t,v,e),(l||r||o||i)&&rA(t,G,e))}],["pointerdown",function(e,t){let n=e.target,r=e.pointerType;n instanceof Node&&"touch"!==r&&rR(t,()=>{rI(eG(n))||(nl=!0)})}],["compositionstart",function(e,t){rR(t,()=>{let n=rr();if(nq(n)&&!t.isComposing()){let r=n.anchor,l=n.anchor.getNode();ej(r.key),(e.timeStamp<t7+30||"element"===r.type||!n.isCollapsed()||l.getFormat()!==n.format||nW(l)&&l.getStyle()!==n.style)&&rA(t,c,eu)}})}],["compositionend",function(e,t){ee?no=!0:rR(t,()=>{nf(t,e.data)})}],["input",function(e,t){e.stopPropagation(),rR(t,()=>{let n=rr(),r=e.data,l=nc(e);if(null!=r&&nq(n)&&na(n,l,r,e.timeStamp,!1)){no&&(nf(t,r),no=!1);let l=n.anchor,i=l.getNode(),o=tS(t._window);if(null===o)return;let s=l.offset;et&&!n.isCollapsed()&&nW(i)&&null!==o.anchorNode&&i.getTextContent().slice(0,s)+r+i.getTextContent().slice(s+n.focus.offset)===e4(o.anchorNode)||rA(t,c,r);let a=r.length;ee&&a>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=a),en||er||es||!t.isComposing()||(t7=0,ej(null))}else e6(!1,t,null!==r?r:void 0),no&&(nf(t,r||void 0),no=!1);rC(),eE(rN())}),nt=null}],["click",function(e,t){rR(t,()=>{let n=rr(),r=tS(t._window),l=rl();if(r){if(nq(n)){let t=n.anchor,i=t.getNode();"element"===t.type&&0===t.offset&&n.isCollapsed()&&!rK(i)&&1===eq().getChildrenSize()&&i.getTopLevelElementOrThrow().isEmpty()&&null!==l&&n.is(l)?(r.removeAllRanges(),n.dirty=!0):3!==e.detail||n.isCollapsed()||i===n.focus.getNode()||(rF(i)?i.select(0):i.getParentOrThrow().select(0))}else if("touch"===e.pointerType){let n=r.anchorNode;if(null!==n){let i=n.nodeType;(1===i||3===i)&&e0(rn(l,r,t,e))}}}rA(t,s,e)})}],["cut",t4],["copy",t4],["dragstart",t4],["dragover",t4],["dragend",t4],["paste",t4],["focus",t4],["blur",t4],["drop",t4]];et&&t6.push(["beforeinput",(e,t)=>(function(e,t){let n=e.inputType,r=nc(e);"deleteCompositionText"===n||ee&&ts(t)||"insertCompositionText"!==n&&rR(t,()=>{var l;let i=rr();if("deleteContentBackward"===n){if(null===i){let e=rl();if(!nq(e))return;e0(e.clone())}if(nq(i)){let n=i.anchor.key===i.focus.key;if(l=e.timeStamp,229===t9&&l<t7+30&&t.isComposing()&&n){if(ej(null),t7=0,setTimeout(()=>{rR(t,()=>{ej(null)})}
1,30),nq(i)){let e=i.anchor.getNode();e.markDirty(),i.format=e.getFormat(),nW(e)||Z(142),i.style=e.getStyle()}}else{ej(null),e.preventDefault();let r=i.anchor.getNode().getTextContent(),l=0===i.anchor.offset&&i.focus.offset===r.length;eo&&n&&!l||rA(t,a,!0)}return}}if(!nq(i))return;let o=e.data;null!==nt&&e6(!1,t,nt),i.dirty&&null===nt||!i.isCollapsed()||rK(i.anchor.getNode())||null===r||i.applyDOMRange(r),nt=null;let s=i.anchor,C=i.focus,v=s.getNode(),T=C.getNode();if("insertText"!==n&&"insertTranspose"!==n)switch(e.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":rA(t,c,e);break;case"insertFromComposition":ej(null),rA(t,c,e);break;case"insertLineBreak":ej(null),rA(t,u,!1);break;case"insertParagraph":ej(null),ni&&!er?(ni=!1,rA(t,u,!1)):rA(t,d,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":rA(t,f,e);break;case"deleteByComposition":(v!==T||rF(v)||rF(T)||!v.isToken()||!T.isToken())&&rA(t,h,e);break;case"deleteByDrag":case"deleteByCut":rA(t,h,e);break;case"deleteContent":rA(t,a,!1);break;case"deleteWordBackward":rA(t,g,!0);break;
1case"deleteWordForward":rA(t,g,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":rA(t,p,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":rA(t,p,!1);break;case"formatStrikeThrough":rA(t,_,"strikethrough");break;case"formatBold":rA(t,_,"bold");break;case"formatItalic":rA(t,_,"italic");break;case"formatUnderline":rA(t,_,"underline");break;case"historyUndo":rA(t,m,void 0);break;case"historyRedo":rA(t,y,void 0)}else{if("\n"===o)e.preventDefault(),rA(t,u,!1);else if("\n\n"===o)e.preventDefault(),rA(t,d,void 0);else if(null==o&&e.dataTransfer){let t=e.dataTransfer.getData("text/plain");e.preventDefault(),i.insertRawText(t)}else null!=o&&na(i,r,o,e.timeStamp,!0)?(e.preventDefault(),rA(t,c,o)):nt=o;ne=e.timeStamp}})})(e,t)]);let t7=0,t9=0,ne=0,nt=null,nn=new WeakMap,nr=!1,nl=!1,ni=!1,no=!1,ns=[0,"",0,"root",0];function na(e,t,n,r,l){let i=e.anchor,o=e.focus,s=i.getNode(),a=rN(),u=tS(a._window),d=null!==u?u.anchorNode:null,c=i.key,f=a.getElementByKey(c),h=n.length;return c!==o.key||!nW(s)||(!l&&(!et||ne<r+50)||s.isDirty()&&h<2||e3(n))&&i.offset!==o.offset&&!s.isComposing()||e$(s)||s.isDirty()&&h>1||(l||!et)&&null!==f&&!s.isComposing()&&d!==eB(f)||null!==u&&null!==t&&(!t.collapsed||t.startContainer!==u.anchorNode||t.startOffset!==u.anchorOffset)||s.getFormat()!==e.format||s.getStyle()!==e.style||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let n=e.anchor.offset,r=t.getParentOrThrow(),l=t.isToken();return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()||l||function(e){let t=e.getPreviousSibling();return(nW(t)||rF(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()||l)}(e,s)}function nu(e,t){return null!==e&&null!==e.nodeValue&&3===e.nodeType&&0!==t&&t!==e.nodeValue.length}function nd(e,t,n){let{anchorNode:r,anchorOffset:l,focusNode:o,focusOffset:s}=e;nr&&(nr=!1,nu(r,l)&&nu(o,s))||rR(t,()=>{if(!n)return void e0(null);if(!eP(t,r,o))return;let a=rr();if(nq(a)){let n=a.anchor,r=n.getNode();if(a.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(a.dirty=!0);let l=tg(t).event,i=l?l.timeStamp:performance.now(),[o,s,u,d,c]=ns,f=eq(),h=!1===t.isComposing()&&""===f.getTextContent();i<c+200&&n.offset===u&&n.key===d?(a.format=o,a.style=s):"text"===n.type?(nW(r)||Z(141),a.format=r.getFormat(),a.style=r.getStyle()):"element"!==n.type||h||(a.format=0,a.style="")}else{let e=n.key,t=a.focus.key,r=a.getNodes(),i=r.length,o=a.isBackward(),u=o?s:l,d=o?l:s,c=o?t:e,f=o?e:t,h=255,g=!1;for(let e=0;e<i;e++){let t=r[e],n=t.getTextContentSize();if(nW(t)&&0!==n&&(0!==e||t.__key!==c||u!==n)&&(e!==i-1||t.__key!==f||0!==d)&&(g=!0,0==(h&=t.getFormat())))break}a.format=g?h:0}}rA(t,i,void 0)})}function nc(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return 0===t.length?null:t[0]}function nf(e,t){let n=e._compositionKey;if(ej(null),null!==n&&null!=t){if(""===t){let t=eY(n),r=eB(e.getElementByKey(n));return void(null!==r&&null!==r.nodeValue&&nW(t)&&e7(t,r.nodeValue,null,null,!0))}if("\n"===t[t.length-1]){let t=rr();if(nq(t)){let n=t.focus;return t.anchor.set(n.key,n.offset,n.type),void rA(e,E,null)}}}e6(!0,e,t)}function nh(e){let t=e.__lexicalEventHandles;return void 0===t&&(e.__lexicalEventHandles=t=[]),t}let ng=new Map;function np(e){let t=e.target,n=tS(null==t?null:9===t.nodeType?t.defaultView:t.ownerDocument.defaultView);if(null===n)return;let r=eF(n.anchorNode);if(null===r)return;nl&&(nl=!1,rR(r,()=>{let t=rl(),l=n.anchorNode;if(null===l)return;let i=l.nodeType;(1===i||3===i)&&e0(rn(t,n,r,e))}));let l=e5(r),i=l[l.length-1],o=i._key,s=ng.get(o),a=s||i;a!==r&&nd(n,a,!1),nd(n,r,!0),r!==i?ng.set(o,r):s&&ng.delete(o)}function n_(e){e._lexicalHandled=!0}function nm(e){return!0===e._lexicalHandled}function ny(e,t,n){rC();let r=e.__key,l=e.getParent();if(null===l)return;let i=function(e){let t=rr();if(!nq(t)||!rF(e))return t;let{anchor:n,focus:r}=t,l=n.getNode(),i=r.getNode();return th(l,e)&&n.set(e.__key,0,"element"),th(i,e)&&r.set(e.__key,0,"element"),t}(e),o=!1;
1if(nq(i)&&t){let t=i.anchor,n=i.focus;t.key===r&&(rs(t,e,l,e.getPreviousSibling(),e.getNextSibling()),o=!0),n.key===r&&(rs(n,e,l,e.getPreviousSibling(),e.getNextSibling()),o=!0)}else n0(i)&&t&&e.isSelected()&&e.selectPrevious();if(nq(i)&&t&&!o){let t=e.getIndexWithinParent();eJ(e),ri(i,l,t,-1)}else eJ(e);n||tm(l)||l.canBeEmpty()||!l.isEmpty()||ny(l,t),t&&rK(l)&&l.isEmpty()&&l.selectEnd()}class nC{static getType(){Z(64,this.name)}static clone(e){Z(65,this.name)}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,ez(this,e)}getType(){return this.__type}isInline(){Z(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;let t=eY(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){let t=e||rr();if(null==t)return!1;let n=t.getNodes().some(e=>e.__key===this.__key);return(nW(this)||!nq(t)||"element"!==t.anchor.type||"element"!==t.focus.type||t.anchor.key!==t.focus.key||t.anchor.offset!==t.focus.offset)&&n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();if(null===e)return -1;let t=e.getFirstChild(),n=0;for(;null!==t;){if(this.is(t))return n;n++,t=t.getNextSibling()}return -1}getParent(){let e=this.getLatest().__parent;return null===e?null:eY(e)}getParentOrThrow(){let e=this.getParent();return null===e&&Z(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let t=e.getParent();if(tm(t))return rF(e)||Z(138),e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&Z(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return null===e?null:eY(e)}getPreviousSiblings(){let e=[],t=this.getParent();if(null===t)return e;let n=t.getFirstChild();for(;null!==n&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return null===e?null:eY(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=this.getParents(),n=e.getParents();rF(this)&&t.unshift(this),rF(e)&&n.unshift(e);let r=t.length,l=n.length;if(0===r||0===l||t[r-1]!==n[l-1])return null;let i=new Set(n);for(let e=0;e<r;e++){let n=t[e];if(i.has(n))return n}return null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){if(this===e)return!1;if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;let t=this.getCommonAncestor(e),n=0,r=0,l=this;for(;;){let e=l.getParentOrThrow();if(e===t){n=l.getIndexWithinParent();break}l=e}for(l=e;;){let e=l.getParentOrThrow();if(e===t){r=l.getIndexWithinParent();break}l=e}return n<r}isParentOf(e){let t=this.__key;if(t===e.__key)return!1;let n=e;for(;null!==n;){if(n.__key===t)return!0;n=n.getParent()}return!1}getNodesBetween(e){let t=this.isBefore(e),n=[],r=new Set,l=this;for(;null!==l;){let i=l.__key;if(r.has(i)||(r.add(i),n.push(l)),l===e)break;let o=rF(l)?t?l.getFirstChild():l.getLastChild():null;if(null!==o){l=o;continue}let s=t?l.getNextSibling():l.getPreviousSibling();if(null!==s){l=s;continue}let a=l.getParentOrThrow();if(r.has(a.__key)||n.push(a),a===e)break;let u=null,d=a;do{if(null===d&&Z(68),u=t?d.getNextSibling():d.getPreviousSibling(),null===(d=d.getParent()))break;null!==u||r.has(d.__key)||n.push(d)}while(null===u);l=u}return t||n.reverse(),n}isDirty(){let e=rN()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){let e=eY(this.__key);return null===e&&Z(113),e}getWritable(){rC();let e=rT(),t=rN(),n=e._nodeMap,r=this.__key,l=this.getLatest(),i=l.__parent,o=t._cloneNotNeeded,s=rr();if(null!==s&&s.setCachedNodes(null),o.has(r))return eH(l),l;let a=l.constructor.clone(l);return a.__parent=i,a.__next=l.__next,a.__prev=l.__prev,rF(l)&&rF(a)?(a.__first=l.__first,a.__last=l.__last,a.__size=l.__size,a.__indent=l.__indent,a.__format=l.__format,a.__dir=l.__dir):nW(l)&&nW(a)&&(a.__format=l.__format,a.__style=l.__style,a.__mode=l.__mode,a.__detail=l.__detail),o.add(r),a.__key=r,eH(a),n.set(r,a),a}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){Z(70)}updateDOM(e,t,n){Z(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){Z(72)}static importJSON(e){Z(18,this.name)}static transform(){return null}remove(e){ny(this,!0,e)}replace(e,t){rC();let n=rr();null!==n&&(n=n.clone()),tv(this,e);let r=this.getLatest(),l=this.__key,i=e.__key,o=e.getWritable(),s=this.getParentOrThrow().getWritable(),a=s.__size;eJ(o);let u=r.getPreviousSibling(),d=r.getNextSibling(),c=r.__prev,f=r.__next,h=r.__parent;if((ny(r,!1,!0),null===u)?s.__first=i:u.getWritable().__next=i,(o.__prev=c,null===d)?s.__last=i:d.getWritable().__prev=i,o.__next=f,o.__parent=h,s.__size=a,t&&(rF(this)&&rF(o)||Z(139),this.getChildren().forEac
1h(e=>{o.append(e)})),nq(n)){e0(n);let e=n.anchor,t=n.focus;e.key===l&&nV(e,o),t.key===l&&nV(t,o)}return eU()===l&&ej(i),o}insertAfter(e,t=!0){rC(),tv(this,e);let n=this.getWritable(),r=e.getWritable(),l=r.getParent(),i=rr(),o=!1,s=!1;if(null!==l){let t=e.getIndexWithinParent();if(eJ(r),nq(i)){let e=l.__key,n=i.anchor,r=i.focus;o="element"===n.type&&n.key===e&&n.offset===t+1,s="element"===r.type&&r.key===e&&r.offset===t+1}}let a=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),d=r.__key,c=n.__next;if(null===a?u.__last=d:a.getWritable().__prev=d,u.__size++,n.__next=d,r.__next=c,r.__prev=n.__key,r.__parent=n.__parent,t&&nq(i)){let e=this.getIndexWithinParent();ri(i,u,e+1);let t=u.__key;o&&i.anchor.set(t,e+2,"element"),s&&i.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){rC(),tv(this,e);let n=this.getWritable(),r=e.getWritable(),l=r.__key;eJ(r);let i=this.getPreviousSibling(),o=this.getParentOrThrow().getWritable(),s=n.__prev,a=this.getIndexWithinParent();null===i?o.__first=l:i.getWritable().__next=l,o.__size++,n.__prev=l,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent;let u=rr();return t&&nq(u)&&ri(u,this.getParentOrThrow(),a),e}isParentRequired(){return!1}createParentElementNode(){return rj()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){rC();let n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(rF(n))return n.select();if(!nW(n)){let e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){rC();let n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(rF(n))return n.select(0,0);if(!nW(n)){let e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}}class nv extends nC{static getType(){return"linebreak"}static clone(e){return new nv(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>!function(e){let t=e.parentElement;if(null!==t){let n=t.firstChild;if(n===e||n.nextSibling===e&&nb(n)){let n=t.lastChild;if(n===e||n.previousSibling===e&&nb(n))return!0}}return!1}(e)?{conversion:nT,priority:0}:null}}static importJSON(e){return nN()}exportJSON(){return{type:"linebreak",version:1}}}function nT(e){return{node:nN()}}function nN(){return tC(new nv)}function nS(e){return e instanceof nv}function nb(e){return 3===e.nodeType&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function nx(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function nE(e,t){return 1&t?"strong":2&t?"em":"span"}function nw(e,t,n,r,l){let i=r.classList,o=tn(l,"base");void 0!==o&&i.add(...o);let s=!1,a=8&t&&4&t;for(let e in void 0!==(o=tn(l,"underlineStrikethrough"))&&(8&n&&4&n?(s=!0,a||i.add(...o)):a&&i.remove(...o)),eg){let r=eg[e];if(void 0!==(o=tn(l,e)))if(n&r){if(s&&("underline"===e||"strikethrough"===e)){t&r&&i.remove(...o);continue}(0==(t&r)||a&&"underline"===e||"strikethrough"===e)&&i.add(...o)}else t&r&&i.remove(...o)}}function nO(e,t,n){let r=t.firstChild,l=n.isComposing(),i=e+(l?ea:"");if(null==r)t.textContent=i;else{let e=r.nodeValue;if(e!==i)if(l||ee){let[t,n,l]=function(e,t){let n=e.length,r=t.length,l=0,i=0;for(;l<n&&l<r&&e[l]===t[l];)l++;for(;i+l<n&&i+l<r&&e[n-i-1]===t[r-i-1];)i++;return[l,n-l-i,t.slice(l,r-i)]}(e,i);0!==n&&r.deleteData(t,n),r.insertData(t,l)}else r.nodeValue=i}}function nk(e,t,n,r,l,i){nO(l,e,t);let o=i.theme.text;void 0!==o&&nw(0,0,r,e,o)}function nA(e,t){let n=document.createElement(t);return n.appendChild(e),n}class nM extends nC{static getType(){return"text"}static clone(e){return new nM(e.__text,e.__key)}constructor(e,t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){return eC[this.getLatest().__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===eU()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return 0!=(1&this.getLatest().__detail)}isUnmergeable(){return 0!=(2&this.getLatest().__detail)}hasFormat(e){let t=eg[e];return 0!=(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return eK(this.getLatest().__format,e,t)}canHaveFormat(){return!0}createDOM(e,t){let n=this.__format,r=nx(0,n),l=nE(0,n),i=null===r?l:r,o=document.createElement(i),s=o;
1this.hasFormat("code")&&o.setAttribute("spellcheck","false"),null!==r&&(s=document.createElement(l),o.appendChild(s)),nk(s,this,0,n,this.__text,e);let a=this.__style;return""!==a&&(o.style.cssText=a),o}updateDOM(e,t,n){let r=this.__text,l=e.__format,i=this.__format,o=nx(0,l),s=nx(0,i),a=nE(0,l),u=nE(0,i);if((null===o?a:o)!==(null===s?u:s))return!0;if(o===s&&a!==u){let e=t.firstChild;null==e&&Z(48);let l=document.createElement(u);return nk(l,this,0,i,r,n),t.replaceChild(l,e),!1}let d=t;null!==s&&null!==o&&null==(d=t.firstChild)&&Z(49),nO(r,d,this);let c=n.theme.text;void 0!==c&&l!==i&&nw(0,l,i,d,c);let f=e.__style,h=this.__style;return f!==h&&(t.style.cssText=h),!1}static importDOM(){return{"#text":()=>({conversion:nI,priority:0}),b:()=>({conversion:nR,priority:0}),code:()=>({conversion:nB,priority:0}),em:()=>({conversion:nB,priority:0}),i:()=>({conversion:nB,priority:0}),s:()=>({conversion:nB,priority:0}),span:()=>({conversion:nD,priority:0}),strong:()=>({conversion:nB,priority:0}),sub:()=>({conversion:nB,priority:0}),sup:()=>({conversion:nB,priority:0}),u:()=>({conversion:nB,priority:0})}}static importJSON(e){let t=nK(e.text);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportDOM(e){let{element:t}=super.exportDOM(e);return null!==t&&tE(t)||Z(132),t.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(t=nA(t,"b")),this.hasFormat("italic")&&(t=nA(t,"i")),this.hasFormat("strikethrough")&&(t=nA(t,"s")),this.hasFormat("underline")&&(t=nA(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format="string"==typeof e?eg[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?ep[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=eK(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){let t=ey[e];if(this.__mode===t)return this;let n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){rC();let n=e,r=t,l=rr(),i=this.getTextContent(),o=this.__key;if("string"==typeof i){let e=i.length;void 0===n&&(n=e),void 0===r&&(r=e)}else n=0,r=0;if(!nq(l))return n9(o,n,o,r,"text","text");{let e=eU();e!==l.anchor.key&&e!==l.focus.key||ej(o),l.setTextNodeRange(this,n,this,r)}return l}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){let l=this.getWritable(),i=l.__text,o=n.length,s=e;s<0&&(s=o+s)<0&&(s=0);let a=rr();if(r&&nq(a)){let t=e+o;a.setTextNodeRange(l,t,l,t)}return l.__text=i.slice(0,s)+n+i.slice(s+t),l}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){let t;rC();let n=this.getLatest(),r=n.getTextContent(),l=n.__key,i=eU(),o=new Set(e),s=[],a=r.length,u="";for(let e=0;e<a;e++)""!==u&&o.has(e)&&(s.push(u),u=""),u+=r[e];""!==u&&s.push(u);let d=s.length;if(0===d)return[];if(s[0]===r)return[n];let c=s[0],f=n.getParentOrThrow(),h=n.getFormat(),g=n.getStyle(),p=n.__detail,_=!1;n.isSegmented()?((t=nK(c)).__format=h,t.__style=g,t.__detail=p,_=!0):(t=n.getWritable()).__text=c;let m=rr(),y=[t],C=c.length;for(let e=1;e<d;e++){let t=s[e],n=t.length,r=nK(t).getWritable();r.__format=h,r.__style=g,r.__detail=p;let o=r.__key,a=C+n;if(nq(m)){let e=m.anchor,t=m.focus;e.key===l&&"text"===e.type&&e.offset>C&&e.offset<=a&&(e.key=o,e.offset-=C,m.dirty=!0),t.key===l&&"text"===t.type&&t.offset>C&&t.offset<=a&&(t.key=o,t.offset-=C,m.dirty=!0)}i===l&&ej(o),C=a,y.push(r)}let v=this.getPreviousSibling(),T=this.getNextSibling();null!==v&&eH(v),null!==T&&eH(T);let N=f.getWritable(),S=this.getIndexWithinParent();return _?(N.splice(S,0,y),this.remove()):N.splice(S,1,y),nq(m)&&ri(m,f,S,d-1),y}mergeWithSibling(e){let t=e===this.getPreviousSibling();t||e===this.getNextSibling()||Z(50);let n=this.__key,r=e.__key,l=this.__text,i=l.length;eU()===r&&ej(n);let o=rr();if(nq(o)){let l=o.anchor,s=o.focus;null!==l&&l.key===r&&(ra(l,t,n,e,i),o.dirty=!0),null!==s&&s.key===r&&(ra(s,t,n,e,i),o.dirty=!0)}let s=e.__text,a=t?s+l:l+s;this.setTextContent(a);let u=this.getWritable();return e.remove(),u}isTextEntity(){return!1}}
1function nD(e){let t="700"===e.style.fontWeight,n="line-through"===e.style.textDecoration,r="italic"===e.style.fontStyle,l="underline"===e.style.textDecoration,i=e.style.verticalAlign;return{forChild:e=>(nW(e)&&(t&&e.toggleFormat("bold"),n&&e.toggleFormat("strikethrough"),r&&e.toggleFormat("italic"),l&&e.toggleFormat("underline"),"sub"===i&&e.toggleFormat("subscript"),"super"===i&&e.toggleFormat("superscript")),e),node:null}}function nR(e){let t="normal"===e.style.fontWeight;return{forChild:e=>(nW(e)&&!t&&e.toggleFormat("bold"),e),node:null}}let nL=new WeakMap;function nI(e){null===e.parentElement&&Z(129);let t=e.textContent||"";if(null!==function(e){var t;let n,r=e.parentNode,l=[e];for(;null!==r&&void 0===(n=nL.get(r))&&!("PRE"===(t=r).nodeName||1===t.nodeType&&void 0!==t.style&&void 0!==t.style.whiteSpace&&t.style.whiteSpace.startsWith("pre"));)l.push(r),r=r.parentNode;let i=void 0===n?r:n;for(let e=0;e<l.length;e++)nL.set(l[e],i);return i}(e)){let e=t.split(/(\r?\n|\t)/),n=[],r=e.length;for(let t=0;t<r;t++){let r=e[t];"\n"===r||"\r\n"===r?n.push(nN()):" "===r?n.push(nJ()):""!==r&&n.push(nK(r))}return{node:n}}if(""===(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," ")))return{node:null};if(" "===t[0]){let n=e,r=!0;for(;null!==n&&null!==(n=nF(n,!1));){let e=n.textContent||"";if(e.length>0){/[ \t\n]$/.test(e)&&(t=t.slice(1)),r=!1;break}}r&&(t=t.slice(1))}if(" "===t[t.length-1]){let n=e,r=!0;for(;null!==n&&null!==(n=nF(n,!0));)if((n.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(t=t.slice(0,t.length-1))}return""===t?{node:null}:{node:nK(t)}}let nP=RegExp(/^(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 nF(e,t){let n=e;for(;;){let e;for(;null===(e=t?n.nextSibling:n.previousSibling);){let e=n.parentElement;if(null===e)return null;n=e}if(1===(n=e).nodeType){let e=n.style.display;if(""===e&&null===n.nodeName.match(nP)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(3===n.nodeType)return n;if("BR"===n.nodeName)return null}}let n$={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function nB(e){let t=n$[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:e=>(nW(e)&&!e.hasFormat(t)&&e.toggleFormat(t),e),node:null}}function nK(e=""){return tC(new nM(e))}function nW(e){return e instanceof nM}class nz extends nM{static getType(){return"tab"}static clone(e){let t=new nz(e.__key);return t.__text=e.__text,t.__format=e.__format,t.__style=e.__style,t}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}static importJSON(e){let t=nJ();return t.setFormat(e.format),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(e){Z(126)}setDetail(e){Z(127)}setMode(e){Z(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function nJ(){return tC(new nz)}function nH(e){return e instanceof nz}class nj{constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let t=this.getNode(),n=e.getNode(),r=this.offset,l=e.offset;if(rF(t)){let e=t.getDescendantByIndex(r);t=null!=e?e:t}if(rF(n)){let e=n.getDescendantByIndex(l);n=null!=e?e:n}return t===n?r<l:t.isBefore(n)}getNode(){let e=eY(this.key);return null===e&&Z(20),e}set(e,t,n){let r=this._selection,l=this.key;this.key=e,this.offset=t,this.type=n,ry()||(eU()===l&&ej(e),null!==r&&(r.setCachedNodes(null),r.dirty=!0))}}function nU(e,t,n){return new nj(e,t,n)}function nY(e,t){let n=t.__key,r=e.offset,l="element";if(nW(t)){l="text";let e=t.getTextContentSize();r>e&&(r=e)}else if(!rF(t)){let e=t.getNextSibling();if(nW(e))n=e.__key,r=0,l="text";else{let e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,l)}function nV(e,t){if(rF(t)){let n=t.getLastDescendant();rF(n)||nW(n)?nY(e,n):nY(e,t)}else nY(e,t)}function nG(e,t,n,r){let l=e.getNode(),i=l.getChildAtIndex(e.offset),o=nK(),s=rK(l)?rj().append(o):o;o.setFormat(n),o.setStyle(r),null===i?l.append(s):i.insertBefore(s),e.is(t)&&t.set(o.__key,0,"text"),e.set(o.__key,0,"text")}function nZ(e,t,n,r){e.key=t,e.offset=n,e.type=r}class nX{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!n0(e))return!1;let t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every(e=>n.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new nX(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let t,n=this.getNodes(),r=n.length,l=n[r-1];if(nW(l))t=l.select();else{let e=l.getIndexWithinParent()+1;t=l.getParentOrThrow().select(e,e)}
1t.insertNodes(e);for(let e=0;e<r;e++)n[e].remove()}getNodes(){let e=this._cachedNodes;if(null!==e)return e;let t=this._nodes,n=[];for(let e of t){let t=eY(e);null!==t&&n.push(t)}return ry()||(this._cachedNodes=n),n}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}}function nq(e){return e instanceof nQ}class nQ{constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!nq(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){let e,t=this._cachedNodes;if(null!==t)return t;let n=this.anchor,r=this.focus,l=n.isBefore(r),i=l?n:r,o=l?r:n,s=i.getNode(),a=o.getNode(),u=i.offset,d=o.offset;if(rF(s)){let e=s.getDescendantByIndex(u);s=null!=e?e:s}if(rF(a)){let e=a.getDescendantByIndex(d);null!==e&&e!==s&&a.getChildAtIndex(d)===e&&(e=e.getPreviousSibling()),a=null!=e?e:a}return e=s.is(a)?rF(s)&&s.getChildrenSize()>0?[]:[s]:s.getNodesBetween(a),ry()||(this._cachedNodes=e),e}setTextNodeRange(e,t,n,r){nZ(this.anchor,e.__key,t,"text"),nZ(this.focus,n.__key,r,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){let e=this.getNodes();if(0===e.length)return"";let t=e[0],n=e[e.length-1],r=this.anchor,l=this.focus,i=r.isBefore(l),[o,s]=n2(this),a="",u=!0;for(let d=0;d<e.length;d++){let c=e[d];if(rF(c)&&!c.isInline())u||(a+="\n"),u=!c.isEmpty();else if(u=!1,nW(c)){let e=c.getTextContent();c===t?c===n?"element"===r.type&&"element"===l.type&&l.offset!==r.offset||(e=o<s?e.slice(o,s):e.slice(s,o)):e=i?e.slice(o):e.slice(s):c===n&&(e=i?e.slice(0,s):e.slice(0,o)),a+=e}else!rI(c)&&!nS(c)||c===n&&this.isCollapsed()||(a+=c.getTextContent())}return a}applyDOMRange(e){let t=rN(),n=t.getEditorState()._selection,r=n6(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(null===r)return;let[l,i]=r;nZ(this.anchor,l.key,l.offset,l.type),nZ(this.focus,i.key,i.offset,i.type),this._cachedNodes=null}clone(){let e=this.anchor,t=this.focus;return new nQ(nU(e.key,e.offset,e.type),nU(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=eK(this.format,e,null),this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){let t=eg[e];return 0!=(this.format&t)}insertRawText(e){let t=e.split(/(\r?\n|\t)/),n=[],r=t.length;for(let e=0;e<r;e++){let r=t[e];"\n"===r||"\r\n"===r?n.push(nN()):" "===r?n.push(nJ()):n.push(nK(r))}this.insertNodes(n)}insertText(e){let t=this.anchor,n=this.focus,r=this.isCollapsed()||t.isBefore(n),l=this.format,i=this.style;r&&"element"===t.type?nG(t,n,l,i):r||"element"!==n.type||nG(n,t,l,i);let o=this.getNodes(),s=o.length,a=r?n:t,u=(r?t:n).offset,d=a.offset,c=o[0];nW(c)||Z(26);let f=c.getTextContent().length,h=c.getParentOrThrow(),g=o[s-1];if(this.isCollapsed()&&u===f&&(c.isSegmented()||c.isToken()||!c.canInsertTextAfter()||!h.canInsertTextAfter()&&null===c.getNextSibling())){let t=c.getNextSibling();if(nW(t)&&t.canInsertTextBefore()&&!e$(t)||((t=nK()).setFormat(l),h.canInsertTextAfter()?c.insertAfter(t):h.insertAfter(t)),t.select(0,0),c=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===u&&(c.isSegmented()||c.isToken()||!c.canInsertTextBefore()||!h.canInsertTextBefore()&&null===c.getPreviousSibling())){let t=c.getPreviousSibling();if(nW(t)&&!e$(t)||((t=nK()).setFormat(l),h.canInsertTextBefore()?c.insertBefore(t):h.insertBefore(t)),t.select(),c=t,""!==e)return void this.insertText(e)}else if(c.isSegmented()&&u!==f){let e=nK(c.getTextContent());e.setFormat(l),c.replace(e),c=e}else if(!this.isCollapsed()&&""!==e){let t=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||rF(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),n4(this.anchor,this.focus,null),void this.insertText(e)}if(1===s){if(c.isToken()){let t=nK(e);return t.select(),void c.replace(t)}let t=c.getFormat(),n=c.getStyle();if(u!==d||t===l&&n===i){if(nH(c)){let t=nK(e);return t.setFormat(l),t.setStyle(i),t.select(),void c.replace(t)}}else{if(""!==c.getTextContent()){let t=nK(e);if(t.setFormat(l),t.setStyle(i),t.select(),0===u)c.insertBefore(t,!1);else{let[e]=c.splitText(u);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}c.setFormat(l),c.setStyle(i)}let r=d-u;""===(c=c.spliceText(u,r,e,!0)).getTextContent()?c.remove():"text"===this.anchor.type&&(c.isComposing()?this.anchor.offset-=e.length:(this.format=t,this.style=n))}else{let t=new Set([...c.getParentKeys(),...g.getParentKeys()]),n=rF(c)?c:c.getParentOrThrow(),r=rF(g)?g:g.getParentOrThrow(),l=g;if(!n.is(r)&&r.isInline())do l=r,r=r.getParentOrThrow();while(r.isInline());if("text"===a.type&&(0!==d||""===g.getTextContent())||"element"===a.type&&g.getIndexWithinParent()<d)if(nW(g)&&!g.isToken()&&d!==g.getTextContentSize()){if(g.isSegmented()){let e=nK(g.getTextContent());g.replace(e),g=e}rK(a.getNode())||"text"!==a.type||(g=g.spliceText(0,d,"")),t.add(g.__key)}else{let e=g.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?g.remove():e.remove()}else t.add(g.__key);let i=r.getChildren(),h=new Set(o),p=n.is(r),_=n.isInline()&&null===c.getNextSibling()?n:c;for(let e=i.length-1;e>=0;e--){let t=i[e];if(t.is(c)||rF(t)&&t.isParentOf(c))break;t.isAttached()&&(!h.has(t)||t.is(l)?p||_.insertAfter(t,!1):t.remove())}if(!p){let e=r,n=null;for(;null!==e;){let r=e.getChildren(),l=r.length;(0===l||r[l-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(c.isToken())if(u===f)c.select();else{let t=nK(e);t.select(),c.replace(t)}else""===(c=c.spliceText(u,f-u,e,!0)).getTextContent()?c.remove():c.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length);for(let e=1;e<s;e++){let n=o[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){this.insertText("")}formatText(e){if(this.isCollapsed())return this.toggleFormat(e),void ej(null);let t=this.getNodes(),n=[];for(let e of t)nW(e)&&n.push(e);let r=n.length;if(0===r)return this.toggleFormat(e),void ej(null);let l=this.anchor,i=this.focus,o=this.isBackward(),s=o?i:l,a=o?l:i,u=0,d=n[0],c="element"===s.type?0:s.offset;if("text"===s.type&&c===d.getTextContentSize()&&(u=1,d=n[1],c=0),null==d)return;let f=d.getFormatFlags(e,null),h=r-1,g=n[h],p="text"===a.type?a.offset:g.getTextContentSize();if(d.is(g)){if(c===p)return;if(0===c&&p===d.getTextContentSize())d.setFormat(f);else{let e=d.splitText(c,p),t=0===c?e[0]:e[1];t.setFormat(f),"text"===s.type&&s.set(t.__key,0,"text"),"text"===a.type&&a.set(t.__key,p-c,"text")}return void(this.format=f)}0!==c&&([,d]=d.splitText(c),c=0),d.setFormat(f);let _=g.getFormatFlags(e,f);p>0&&(p!==g.getTextContentSize()&&([g]=g.splitText(p)),g.setFormat(_));for(let t=u+1;t<h;t++){let r=n[t];if(!r.isToken()){let t=r.getFormatFlags(e,_);r.setFormat(t)}}"text"===s.type&&s.set(d.__key,c,"text"),"text"===a.type&&a.set(g.__key,p,"text"),this.format=f|_}insertNodes(e){var t;if(0===e.length)return;if("root"===this.anchor.key){this.insertParagraph();let t=rr();
1return nq(t)||Z(134),t.insertNodes(e)}let n=tO((this.isBackward()?this.focus:this.anchor).getNode(),tw),r=e[e.length-1];if("__language"in n&&rF(n)){if("__language"in e[0])this.insertText(e[0].getTextContent());else{let t=rc(this);n.splice(t,0,e),r.selectEnd()}return}if(!e.some(e=>(rF(e)||rI(e))&&!e.isInline())){rF(n)||Z(135);let t=rc(this);return n.splice(t,0,e),void r.selectEnd()}let l=function(e){let t=rj(),n=null;for(let r=0;r<e.length;r++){let l=e[r],i=nS(l);if(i||rI(l)&&l.isInline()||rF(l)&&l.isInline()||nW(l)||l.isParentRequired()){if(null===n&&(n=l.createParentElementNode(),t.append(n),i))continue;null!==n&&n.append(l)}else t.append(l),n=null}return t}(e),i=l.getLastDescendant(),o=l.getChildren(),s=e=>"__value"in e&&"__checked"in e,a=rF(n)&&n.isEmpty()?null:this.insertParagraph(),u=o[o.length-1],d=o[0];rF(t=d)&&tw(t)&&!t.isEmpty()&&rF(n)&&(!n.isEmpty()||s(n))&&(rF(n)||Z(135),n.append(...d.getChildren()),d=o[1]),d&&function(e,t,n){let r=t.getParentOrThrow().getLastChild(),l=t,i=[t];for(;l!==r;)l.getNextSibling()||Z(140),i.push(l=l.getNextSibling());let o=e;for(let e of i)o=o.insertAfter(e)}(n,d);let c=tO(i,tw);a&&rF(c)&&(s(a)||tw(u))&&(c.append(...a.getChildren()),a.remove()),rF(n)&&n.isEmpty()&&n.remove(),i.selectEnd();let f=rF(n)?n.getLastChild():null;nS(f)&&c!==n&&f.remove()}insertParagraph(){if("root"===this.anchor.key){let e=rj();return eq().splice(this.anchor.offset,0,[e]),e.select(),e}let e=rc(this),t=tO(this.anchor.getNode(),tw);rF(t)||Z(136);let n=t.getChildAtIndex(e),r=n?[n,...n.getNextSiblings()]:[],l=t.insertNewAfter(this,!1);return l?(l.append(...r),l.selectStart(),l):null}insertLineBreak(e){let t=nN();if(this.insertNodes([t]),e){let e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){let e=this.getNodes(),t=e.length,n=t-1,r=this.anchor,l=this.focus,i=e[0],o=e[n],[s,a]=n2(this);if(0===t)return[];if(1===t){if(nW(i)&&!this.isCollapsed()){let e=s>a?a:s,t=i.splitText(e,s>a?s:a),n=0===e?t[0]:t[1];return null!=n?[n]:[]}return[i]}let u=r.isBefore(l);if(nW(i)){let t=u?s:a;t===i.getTextContentSize()?e.shift():0!==t&&([,i]=i.splitText(t),e[0]=i)}if(nW(o)){let t=o.getTextContent().length,r=u?a:s;0===r?e.pop():r!==t&&([o]=o.splitText(r),e[n]=o)}return e}modify(e,t,n){var r;let l=this.focus,i=this.anchor,o="move"===e,s=to(l,t);if(rI(s)&&!s.isIsolated()){if(o&&s.isKeyboardSelectable()){let e=rt();return e.add(s.__key),void e0(e)}let e=t?s.getPreviousSibling():s.getNextSibling();if(nW(e)){let n=e.__key,r=t?e.getTextContent().length:0;return l.set(n,r,"text"),void(o&&i.set(n,r,"text"))}{let n,r,a=s.getParentOrThrow();return rF(e)?(r=e.__key,n=t?e.getChildrenSize():0):(n=s.getIndexWithinParent(),r=a.__key,t||n++),l.set(r,n,"element"),void(o&&i.set(r,n,"element"))}}let a=rN(),u=tS(a._window);if(!u)return;let d=a._blockCursorElement,c=a._rootElement;if(null===c||null===d||!rF(s)||s.isInline()||s.canBeEmpty()||tN(d,a,c),r=t?"backward":"forward",u.modify(e,r,n),u.rangeCount>0){let e=u.getRangeAt(0),n=this.anchor.getNode(),r=rK(n)?n:t_(n);if(this.applyDOMRange(e),this.dirty=!0,!o){let n=this.getNodes(),l=[],i=!1;for(let e=0;e<n.length;e++){let t=n[e];th(t,r)?l.push(t):i=!0}if(i&&l.length>0)if(t){let e=l[0];rF(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{let e=l[l.length-1];rF(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}u.anchorNode===e.startContainer&&u.anchorOffset===e.startOffset||function(e){let t=e.focus,n=e.anchor,r=n.key,l=n.offset,i=n.type;nZ(n,t.key,t.offset,t.type),nZ(t,r,l,i),e._cachedNodes=null}(this)}}}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&rF(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){let e=t.getParent(),n=t.getNextSibling()||(null===e?null:e.getNextSibling());if(rF(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){let t=this.isCollapsed();if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;let r=this.focus,l=to(r,e);if(rI(l)&&!l.isIsolated()){if(l.isKeyboardSelectable()&&rF(n)&&0===n.getChildrenSize()){n.remove();let e=rt();e.add(l.__key),e0(e)}else l.remove(),rN().dispatchCommand(i,void 0);return}if(!e&&rF(l)&&rF(n)&&n.isEmpty())return n.remove(),void l.selectStart();if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&("element"===t.type?t.getNode():t.getNode().getParentOrThrow()).collapseAtStart(this))return}else{let l="text"===r.type?r.getNode():null;if(n="text"===t.type?t.getNode():null,null!==l&&l.isSegmented()){let t=r.offset,i=l.getTextContentSize();if(l.is(n)||e&&t!==i||!e&&0!==t)return void n3(l,e,t)}else if(null!==n&&n.isSegmented()){let r=t.offset,i=n.getTextContentSize();if(n.is(l)||e&&0!==r||!e&&r!==i)return void n3(n,e,r)}!function(e,t){let n=e.anchor,r=e.focus,l=n.getNode();if(l===r.getNode()&&"text"===n.type&&"text"===r.type){let e=n.offset,i=r.offset,o=e<i,s=o?e:i,a=o?i:e,u=a-1;
1s!==u&&(e3(l.getTextContent().slice(s,a))||(t?r.offset=u:n.offset=u))}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){let e=this.anchor.getNode();e.isEmpty()&&rK(e.getParent())&&0===e.getIndexWithinParent()&&e.collapseAtStart(this)}}deleteLine(e){this.isCollapsed()&&("text"===this.anchor.type&&this.modify("extend",e,"lineboundary"),0===(e?this.focus:this.anchor).offset&&this.modify("extend",e,"character")),this.removeText()}deleteWord(e){if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function n0(e){return e instanceof nX}function n1(e){let t=e.offset;if("text"===e.type)return t;let n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function n2(e){let t=e.getStartEndPoints();if(null===t)return[0,0];let[n,r]=t;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[n1(n),n1(r)]}function n3(e,t,n){let r=e.getTextContent().split(/(?=\s)/g),l=r.length,i=0,o=0;for(let e=0;e<l;e++){let s=e===l-1;if(o=i,i+=r[e].length,t&&i===n||i>n||s){r.splice(e,1),s&&(o=void 0);break}}let s=r.join("").trim();""===s?e.remove():(e.setTextContent(s),e.select(o,o))}function n5(e,t,n,r){let l,i=t;if(1===e.nodeType){let o=!1,s=e.childNodes,a=s.length;i===a&&(o=!0,i=a-1);let u=s[i],d=!1;if(u===r._blockCursorElement?(u=s[i+1],d=!0):null!==r._blockCursorElement&&i--,nW(l=e1(u)))i=e2(l,o);else{let r=e1(e);if(null===r)return null;if(rF(r)){let e=r.getChildAtIndex(i);if(rF(e)&&function(e,t,n){let r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(e,0,n)){let t=o?e.getLastDescendant():e.getFirstDescendant();null===t?(r=e,i=0):r=rF(e=t)?e:e.getParentOrThrow()}nW(e)?(l=e,r=null,i=e2(e,o)):e!==r&&o&&!d&&i++}else{let n=r.getIndexWithinParent();i=0===t&&rI(r)&&e1(e)===r?n:n+1,r=r.getParentOrThrow()}if(rF(r))return nU(r.__key,i,"element")}}else l=e1(e);return nW(l)?nU(l.__key,i,"text"):null}function n8(e,t,n){let r=e.offset,l=e.getNode();if(0===r){let r=l.getPreviousSibling(),i=l.getParent();if(t){if((n||!t)&&null===r&&rF(i)&&i.isInline()){let t=i.getPreviousSibling();nW(t)&&(e.key=t.__key,e.offset=t.getTextContent().length)}}else rF(r)&&!n&&r.isInline()?(e.key=r.__key,e.offset=r.getChildrenSize(),e.type="element"):nW(r)&&(e.key=r.__key,e.offset=r.getTextContent().length)}else if(r===l.getTextContent().length){let r=l.getNextSibling(),i=l.getParent();if(t&&rF(r)&&r.isInline())e.key=r.__key,e.offset=0,e.type="element";else if((n||t)&&null===r&&rF(i)&&i.isInline()&&!i.canInsertTextAfter()){let t=i.getNextSibling();nW(t)&&(e.key=t.__key,e.offset=0)}}}function n4(e,t,n){if("text"===e.type&&"text"===t.type){let r=e.isBefore(t),l=e.is(t);n8(e,r,l),n8(t,!r,l),l&&(t.key=e.key,t.offset=e.offset,t.type=e.type);let i=rN();if(i.isComposing()&&i._compositionKey!==e.key&&nq(n)){let r=n.anchor,l=n.focus;nZ(e,r.key,r.offset,r.type),nZ(t,l.key,l.offset,l.type)}}}function n6(e,t,n,r,l,i){if(null===e||null===n||!eP(l,e,n))return null;let o=n5(e,t,nq(i)?i.anchor:null,l);if(null===o)return null;let s=n5(n,r,nq(i)?i.focus:null,l);if(null===s)return null;if("element"===o.type&&"element"===s.type){let t=e1(e),r=e1(n);if(rI(t)&&rI(r))return null}return n4(o,s,i),[o,s]}function n7(e){return rF(e)&&!e.isInline()}function n9(e,t,n,r,l,i){let o=rT(),s=new nQ(nU(e,t,l),nU(n,r,i),0,"");return s.dirty=!0,o._selection=s,s}function re(){return new nQ(nU("root",0,"element"),nU("root",0,"element"),0,"")}function rt(){return new nX(new Set)}function rn(e,t,n,r){let l,i,o,s,a=n._window;if(null===a)return null;let u=r||a.event,d=u?u.type:void 0,c="selectionchange"===d,f=!eT&&(c||"beforeinput"===d||"compositionstart"===d||"compositionend"===d||"click"===d&&u&&3===u.detail||"drop"===d||void 0===d);if(nq(e)&&!f)return e.clone();if(null===t)return null;if(l=t.anchorNode,i=t.focusNode,o=t.anchorOffset,s=t.focusOffset,c&&nq(e)&&!eP(n,l,i))return e.clone();let h=n6(l,o,i,s,n,e);if(null===h)return null;let[g,p]=h;return new nQ(g,p,nq(e)?e.format:0,nq(e)?e.style:"")}function rr(){return rT()._selection}function rl(){return rN()._editorState._selection}function ri(e,t,n,r=1){let l=e.anchor,i=e.focus,o=l.getNode(),s=i.getNode();if(!t.is(o)&&!t.is(s))return;let a=t.__key;if(e.isCollapsed()){let t=l.offset;if(n<=t&&r>0||n<t&&r<0){let n=Math.max(0,t+r);l.set(a,n,"element"),i.set(a,n,"element"),ro(e)}}else{let o=e.isBackward(),s=o?i:l,u=s.getNode(),d=o?l:i,c=d.getNode();if(t.is(u)){let e=s.offset;(n<=e&&r>0||n<e&&r<0)&&s.set(a,Math.max(0,e+r),"element")}if(t.is(c)){let e=d.offset;(n<=e&&r>0||n<e&&r<0)&&d.set(a,Math.max(0,e+r),"element")}}ro(e)}function ro(e){let t=e.anchor,n=t.offset,r=e.focus,l=r.offset,i=t.getNode(),o=r.getNode();if(e.isCollapsed()){if(!rF(i))return;let e=i.getChildrenSize(),l=n>=e,o=l?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(nW(o)){let e=0;l&&(e=o.getTextContentSize()),t.set(o.__key,e,"text"),r.set(o.__key,e,"text")}}else{if(rF(i)){let e=i.getChildrenSize(),r=n>=e,l=r?i.getChildAtIndex(e-1):i.getChildAtIndex(n);if(nW(l)){let e=0;r&&(e=l.getTextContentSize()),t.set(l.__key,e,"text")}}if(rF(o)){let e=o.getChildrenSize(),t=l>=e,n=t?o.getChildAtIndex(e-1):o.getChildAtIndex(l);if(nW(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}}function rs(e,t,n,r,l){let i=null,o=0,s=null;null!==r?(i=r.__key,nW(r)?(o=r.getTextContentSize(),s="text"):rF(r)&&(o=r.getChildrenSize(),s="element")):null!==l&&(i=l.__key,nW(l)?s="text":rF(l)&&(s="element")),null!==i&&null!==s?e.set(i,o,s):(-1===(o=t.getIndexWithinParent())&&(o=n.getChildrenSize()),e.set(n.__key,o,"element"))}function ra(e,t,n,r,l){"text"===e.type?(e.key=n,t||(e.offset+=l)):e.offset>
1r.getIndexWithinParent()&&(e.offset-=1)}function ru(e){let t=rr()||rl();null===t&&(t=eq().selectEnd()),t.insertNodes(e)}function rd(){let e=rr();return null===e?"":e.getTextContent()}function rc(e){e.isCollapsed()||e.removeText();let t=e.anchor,n=t.getNode(),r=t.offset;for(;!tw(n);)[n,r]=function(e,t){let n=e.getParent();if(!n){let e=rj();return eq().append(e),e.select(),[eq(),0]}if(nW(e)){let r=e.splitText(t);if(0===r.length)return[n,e.getIndexWithinParent()];let l=+(0!==t);return[n,r[0].getIndexWithinParent()+l]}if(!rF(e)||0===t)return[n,e.getIndexWithinParent()];let r=e.getChildAtIndex(t);if(r){let n=new nQ(nU(e.__key,t,"element"),nU(e.__key,t,"element"),0,""),l=e.insertNewAfter(n);l&&l.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}(n,r);return r}let rf=null,rh=null,rg=!1,rp=!1,r_=0,rm={characterData:!0,childList:!0,subtree:!0};function ry(){return rg||null!==rf&&rf._readOnly}function rC(){rg&&Z(13)}function rv(){r_>99&&Z(14)}function rT(){return null===rf&&Z(15),rf}function rN(){return null===rh&&Z(16),rh}function rS(e,t,n){let r=t.__type,l=function(e,t){let n=e._nodes.get(t);return void 0===n&&Z(30,t),n}(e,r),i=n.get(r);void 0===i&&(i=Array.from(l.transforms),n.set(r,i));let o=i.length;for(let e=0;e<o&&(i[e](t),t.isAttached());e++);}function rb(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function rx(e){return rE(e,rN()._nodes)}function rE(e,t){let n=e.type,r=t.get(n);void 0===r&&Z(17,n);let l=r.klass;e.type!==l.getType()&&Z(18,l.name);let i=l.importJSON(e),o=e.children;if(rF(i)&&Array.isArray(o))for(let e=0;e<o.length;e++){let n=rE(o[e],t);i.append(n)}return i}function rw(e,t){let n=rf,r=rg,l=rh;rf=e,rg=!0,rh=null;try{return t()}finally{rf=n,rg=r,rh=l}}function rO(e,t){let n=e._pendingEditorState,r=e._rootElement,l=e._headless||null===r;if(null===n)return;let o=e._editorState,s=o._selection,a=n._selection,u=0!==e._dirtyType,d=rf,c=rg,f=rh,h=e._updating,g=e._observer,p=null;if(e._pendingEditorState=null,e._editorState=n,!l&&u&&null!==g){rh=e,rf=n,rg=!1,e._updating=!0;try{let t=e._dirtyType,r=e._dirtyElements,l=e._dirtyLeaves;g.disconnect(),p=function(e,t,n,r,l,i){tK="",tz="",tW="",tJ=2===r,tj=null,tM=n,tA=n._config,tD=n._nodes,tR=tM._listeners.mutation,tL=l,tI=i,tP=e._nodeMap,tF=t._nodeMap,tH=t._readOnly,t$=new Map(n._keyToDOMMap);let o=new Map;return tB=o,function e(t,n){let r=tP.get(t),l=tF.get(t);void 0!==r&&void 0!==l||Z(61);let i=tJ||tI.has(t)||tL.has(t),o=tu(tM,t);if(r===l&&!i){if(rF(r)){let e=o.__lexicalTextContent;void 0!==e&&(tK+=e,tz+=e);let t=o.__lexicalDirTextContent;void 0!==t&&(tW+=t)}else{let e=r.getTextContent();nW(r)&&!r.isDirectionless()&&(tW+=e),tz+=e,tK+=e}return o}if(r!==l&&i&&tr(tB,tD,tR,l,"updated"),l.updateDOM(r,o,tA)){let e=tX(t,null,null);return null===n&&Z(62),n.replaceChild(e,o),tU(t,null),e}if(rF(r)&&rF(l)){let t=l.__indent;t!==r.__indent&&tG(o,t);let n=l.__format;n!==r.__format&&tZ(o,n),i&&(function(t,n,r){let l=tW;tW="",function(t,n,r){let l=tK,i=t.__size,o=n.__size;if(tK="",1===i&&1===o){let l=t.__first,i=n.__first;if(l===i)e(l,r);else{let e=t8(l),t=tX(i,null,null);r.replaceChild(t,e),tU(l,null)}}else{let l=t2(t,tP),s=t2(n,tF);if(0===i)0!==o&&tq(s,n,0,o-1,r,null);else if(0===o){if(0!==i){let e=null==r.__lexicalLineBreak;tY(l,0,i-1,e?null:r),e&&(r.textContent="")}}else!function(t,n,r,l,i,o){let s=l-1,a=i-1,u,d,c=o.firstChild,f=0,h=0;for(;f<=s&&h<=a;){let t=n[f],l=r[h];if(t===l)c=t5(e(l,o)),f++,h++;else{void 0===u&&(u=new Set(n)),void 0===d&&(d=new Set(r));let i=d.has(t),s=u.has(l);if(i)if(s){let t=tu(tM,l);t===c?c=t5(e(l,o)):(null!=c?o.insertBefore(t,c):o.appendChild(t),e(l,o)),f++,h++}else tX(l,o,c),h++;else c=t5(t8(t)),tU(t,o),f++}}let g=f>s,p=h>a;if(g&&!p){let e=r[a+1];tq(r,t,h,a,o,void 0===e?null:tM.getElementByKey(e))}else p&&!g&&tY(n,f,s,o)}(n,l,s,i,o,r)}ta(n)&&(tK+="\n\n"),r.__lexicalTextContent=tK,tK=l+tK}(t,n,r),t1(n,r),tW=l}(r,l,o),rK(l)||l.isInline()||t0(r,l,o)),ta(l)&&(tK+="\n\n",tz+="\n\n")}else{let e=l.getTextContent();if(rI(l)){let e=l.decorate(tM,tA);null!==e&&t3(t,e)}else nW(l)&&!l.isDirectionless()&&(tW+=e);tK+=e,tz+=e}if(!tH&&rK(l)&&l.__cachedText!==tz){let e=l.getWritable();e.__cachedText=tz,l=e}return o}("root",null),tM=void 0,tD=void 0,tL=void 0,tI=void 0,tP=void 0,tF=void 0,tA=void 0,t$=void 0,tB=void 0,o}(o,n,e,t,r,l)}catch(t){if(t instanceof Error&&e._onError(t),rp)throw t;return rq(e,null,r,n),ew(e),e._dirtyType=2,rp=!0,rO(e,o),void(rp=!1)}
1finally{g.observe(r,rm),e._updating=h,rf=d,rg=c,rh=f}}n._readOnly||(n._readOnly=!0);let _=e._dirtyLeaves,m=e._dirtyElements,y=e._normalizedNodes,C=e._updateTags,v=e._deferred;u&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){let n,r=e._decorators,l=e._pendingDecorators||r,i=t._nodeMap;for(n in l)i.has(n)||(l===r&&(l=eZ(e)),delete l[n])}(e,n);let T=l?null:tS(e._window);if(e._editable&&null!==T&&(u||null===a||a.dirty)){rh=e,rf=n;try{if(null!==g&&g.disconnect(),u||null===a||a.dirty){let t=e._blockCursorElement;null!==t&&tN(t,e,r),function(e,t,n,r,l,i,o){let s=r.anchorNode,a=r.focusNode,u=r.anchorOffset,d=r.focusOffset,c=document.activeElement;if(l.has("collaboration")&&c!==i||null!==c&&eI(c))return;if(!nq(t))return null!==e&&eP(n,s,a)&&r.removeAllRanges();let f=t.anchor,h=t.focus,g=f.key,p=h.key,_=tu(n,g),m=tu(n,p),y=f.offset,C=h.offset,v=t.format,T=t.style,N=t.isCollapsed(),S=_,b=m,x=!1;if("text"===f.type){S=eB(_);let e=f.getNode();x=e.getFormat()!==v||e.getStyle()!==T}else nq(e)&&"text"===e.anchor.type&&(x=!0);if("text"===h.type&&(b=eB(m)),null!==S&&null!==b&&(N&&(null===e||x||nq(e)&&(e.format!==v||e.style!==T))&&(ns=[v,T,y,g,performance.now()]),u!==y||d!==C||s!==S||a!==b||"Range"===r.type&&N||(null!==c&&i.contains(c)||i.focus({preventScroll:!0}),"element"===f.type))){try{r.setBaseAndExtent(S,y,b,C)}catch(e){}if(!l.has("skip-scroll-into-view")&&t.isCollapsed()&&null!==i&&i===document.activeElement){let e=t instanceof nQ&&"element"===t.anchor.type?S.childNodes[y]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){let n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,n){let r=n.ownerDocument,l=r.defaultView;if(null===l)return;let{top:i,bottom:o}=t,s=0,a=0,u=n;for(;null!==u;){let t=u===r.body;if(t)s=0,a=tg(e).innerHeight;else{let e=u.getBoundingClientRect();s=e.top,a=e.bottom}let n=0;if(i<s?n=-(s-i):o>a&&(n=o-a),0!==n)if(t)l.scrollBy(0,n);else{let e=u.scrollTop;u.scrollTop+=n;let t=u.scrollTop-e;i-=t,o-=t}if(t)break;u=td(u)}}(n,t,i)}}nr=!0}}(s,a,e,T,C,r)}(function(e,t,n){let r=e._blockCursorElement;if(nq(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){let l=n.anchor,i=l.getNode(),o=l.offset,s=!1,a=null;if(o===i.getChildrenSize())tT(i.getChildAtIndex(o-1))&&(s=!0);else{let t=i.getChildAtIndex(o);if(tT(t)){let n=t.getPreviousSibling();(null===n||tT(n))&&(s=!0,a=e.getElementByKey(t.__key))}}if(s){let n=e.getElementByKey(i.__key);return null===r&&(e._blockCursorElement=r=function(e){let t=e.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=t.blockCursor;return void 0!==r&&("string"==typeof r&&(r=t.blockCursor=ev(r)),void 0!==r&&n.classList.add(...r)),n}(e._config)),t.style.caretColor="transparent",null===a?n.appendChild(r):n.insertBefore(r,a)}}null!==r&&tN(r,e,t)})(e,r,a),null!==g&&g.observe(r,rm)}finally{rh=f,rf=d}}null!==p&&function(e,t,n,r,l){let i=Array.from(e._listeners.mutation),o=i.length;for(let e=0;e<o;e++){let[o,s]=i[e],a=t.get(s);void 0!==a&&o(a,{dirtyLeaves:r,prevEditorState:l,updateTags:n})}}(e,p,C,_,o),nq(a)||null===a||null!==s&&s.is(a)||e.dispatchCommand(i,void 0);let N=e._pendingDecorators;null!==N&&(e._decorators=N,e._pendingDecorators=null,rk("decorator",e,!0,N)),function(e,t,n){let r=eX(t),l=eX(n);r!==l&&rk("textcontent",e,!0,l)}(e,t||o,n),rk("update",e,!0,{dirtyElements:m,dirtyLeaves:_,editorState:n,normalizedNodes:y,prevEditorState:t||o,tags:C}),function(e,t){if(e._deferred=[],0!==t.length){let n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}(e,v),function(e){let t=e._updates;if(0!==t.length){let n=t.shift();if(n){let[t,r]=n;rD(e,t,r)}}}(e)}function rk(e,t,n,...r){let l=t._updating;t._updating=n;try{let n=Array.from(t._listeners[e]);for(let e=0;e<n.length;e++)n[e].apply(null,r)}finally{t._updating=l}}function rA(e,t,n){if(!1===e._updating||rh!==e){let r=!1;return e.update(()=>{r=rA(e,t,n)}),r}let r=e5(e);for(let l=4;l>=0;l--)for(let i=0;i<r.length;i++){let o=r[i]._commands.get(t);
1if(void 0!==o){let t=o[l];if(void 0!==t){let r=Array.from(t),l=r.length;for(let t=0;t<l;t++)if(!0===r[t](n,e))return!0}}}return!1}function rM(e,t){let n=e._updates,r=t||!1;for(;0!==n.length;){let t=n.shift();if(t){let n,l,[i,o]=t;void 0!==o&&(n=o.onUpdate,l=o.tag,o.skipTransforms&&(r=!0),n&&e._deferred.push(n),l&&e._updateTags.add(l)),i()}}return r}function rD(e,t,n){let r=e._updateTags,l,i,o=!1,s=!1;void 0!==n&&(l=n.onUpdate,null!=(i=n.tag)&&r.add(i),o=n.skipTransforms||!1,s=n.discrete||!1),l&&e._deferred.push(l);let a=e._editorState,u=e._pendingEditorState,d=!1;(null===u||u._readOnly)&&(u=e._pendingEditorState=new rz(new Map((u||a)._nodeMap)),d=!0),u._flushSync=s;let c=rf,f=rg,h=rh,g=e._updating;rf=u,rg=!1,e._updating=!0,rh=e;try{d&&(e._headless?null!==a._selection&&(u._selection=a._selection.clone()):u._selection=function(e){let t=e.getEditorState()._selection,n=tS(e._window);return nq(t)||null==t?rn(t,n,e,null):t.clone()}(e));let n=e._compositionKey;t(),o=rM(e,o),function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(nq(r)){let e,t=r.anchor,l=r.focus;if("text"===t.type&&(e=t.getNode()).selectionTransform(n,r),"text"===l.type){let t=l.getNode();e!==t&&t.selectionTransform(n,r)}}}(u,e),0!==e._dirtyType&&(o?function(e,t){let n=t._dirtyLeaves,r=e._nodeMap;for(let e of n){let t=r.get(e);nW(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&eA(t)}}(u,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements,l=e._nodeMap,i=eU(),o=new Map,s=n,a=s.size,u=r,d=u.size;for(;a>0||d>0;){if(a>0){for(let e of(t._dirtyLeaves=new Set,s)){let r=l.get(e);nW(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&eA(r),void 0!==r&&rb(r,i)&&rS(t,r,o),n.add(e)}if((a=(s=t._dirtyLeaves).size)>0){r_++;continue}}for(let e of(t._dirtyLeaves=new Set,t._dirtyElements=new Map,u)){let n=e[0],s=e[1];if("root"!==n&&!s)continue;let a=l.get(n);void 0!==a&&rb(a,i)&&rS(t,a,o),r.set(n,s)}a=(s=t._dirtyLeaves).size,d=(u=t._dirtyElements).size,r_++}t._dirtyLeaves=n,t._dirtyElements=r}(u,e),rM(e),function(e,t,n,r){let l=e._nodeMap,i=t._nodeMap,o=[];for(let[e]of r){let t=i.get(e);void 0!==t&&(t.isAttached()||(rF(t)&&function e(t,n,r,l,i,o){let s=t.getFirstChild();for(;null!==s;){let t=s.__key;s.__parent===n&&(rF(s)&&e(s,t,r,l,i,o),r.has(t)||o.delete(t),i.push(t)),s=s.getNextSibling()}}(t,e,l,i,o,r),l.has(e)||r.delete(e),o.push(e)))}for(let e of o)i.delete(e);for(let e of n){let t=i.get(e);void 0===t||t.isAttached()||(l.has(e)||n.delete(e),i.delete(e))}}(a,u,e._dirtyLeaves,e._dirtyElements)),n!==e._compositionKey&&(u._flushSync=!0);let r=u._selection;if(nq(r)){let e=u._nodeMap,t=r.anchor.key,n=r.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||Z(19)}else n0(r)&&0===r._nodes.size&&(u._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=a,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void rO(e)}finally{rf=c,rg=f,rh=h,e._updating=g,r_=0}0!==e._dirtyType||function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(u,e)?u._flushSync?(u._flushSync=!1,rO(e)):d&&eL(()=>{rO(e)}):(u._flushSync=!1,d&&(r.clear(),e._deferred=[],e._pendingEditorState=null))}function rR(e,t,n){e._updating?e._updates.push([t,n]):rD(e,t,n)}class rL extends nC{constructor(e){super(e)}decorate(e,t){Z(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function rI(e){return e instanceof rL}class rP extends nC{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__indent=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){return em[this.getFormat()]||""}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){let e=rN()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){let e=[],t=this.getFirstChild();for(;null!==t;){if(nW(t)&&e.push(t),rF(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;rF(e);){let t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;rF(e);){let t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;if(e>=n){let e=t[n-1];return rF(e)&&e.getLastDescendant()||e||null}let r=t[e];return rF(r)&&r.getFirstDescendant()||r||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:eY(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&Z(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:eY(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&Z(96,this.__key),e}getChildAtIndex(e){let t,n,r=this.getChildrenSize();if(e<r/2){for(t=this.getFirstChild(),n=0;null!==t&&n<=e;){if(n===e)return t;t=t.getNextSibling(),n++}return null}for(t=this.getLastChild(),n=r-1;null!==t&&n>=e;){if(n===e)return t;t=t.getPreviousSibling(),n--}return null}getTextContent(){let e="",t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let l=t[r];e+=l.getTextContent(),rF(l)&&r!==n-1&&!l.isInline()&&(e+="\n\n")}return e}getTextContentSize(){let e=0,t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let l=t[r];e+=l.getTextContentSize(),rF(l)&&r!==n-1&&!l.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){if(""!==e){let t=e_[e];return 0!=(this.getFormat()&t)}return!1}select(e,t){rC();let n=rr(),r=e,l=t,i=this.getChildrenSize();if(!this.canBeEmpty()){if(0===e&&0===t){let e=this.getFirstChild();if(nW(e)||rF(e))return e.select(0,0)}else if((void 0===e||e===i)&&(void 0===t||t===i)){let e=this.getLastChild();if(nW(e)||rF(e))return e.select()}}void 0===r&&(r=i),void 0===l&&(l=i);let o=this.__key;
1return nq(n)?(n.anchor.set(o,r,"element"),n.focus.set(o,l,"element"),n.dirty=!0,n):n9(o,r,o,l,"element","element")}selectStart(){let e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){let e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?e_[e]:0,this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){let r=n.length,l=this.getChildrenSize(),i=this.getWritable(),o=i.__key,s=[],a=[],u=this.getChildAtIndex(e+t),d=null,c=l-t+r;if(0!==e)if(e===l)d=this.getLastChild();else{let t=this.getChildAtIndex(e);null!==t&&(d=t.getPreviousSibling())}if(t>0){let e=null===d?this.getFirstChild():d.getNextSibling();for(let n=0;n<t;n++){null===e&&Z(100);let t=e.getNextSibling(),n=e.__key;eJ(e.getWritable()),a.push(n),e=t}}let f=d;for(let e=0;e<r;e++){let t=n[e];null!==f&&t.is(f)&&(d=f=f.getPreviousSibling());let r=t.getWritable();r.__parent===o&&c--,eJ(r);let l=t.__key;if(null===f)i.__first=l,r.__prev=null;else{let e=f.getWritable();e.__next=l,r.__prev=e.__key}t.__key===o&&Z(76),r.__parent=o,s.push(l),f=t}if(e+t===l)null!==f&&(f.getWritable().__next=null,i.__last=f.__key);else if(null!==u){let e=u.getWritable();if(null!==f){let t=f.getWritable();e.__prev=f.__key,t.__next=u.__key}else e.__prev=null}if(i.__size=c,a.length){let e=rr();if(nq(e)){let t=new Set(a),n=new Set(s),{anchor:r,focus:l}=e;r$(r,t,n)&&rs(r,r.getNode(),this,d,u),r$(l,t,n)&&rs(l,l.getNode(),this,d,u),0!==c||this.canBeEmpty()||tm(this)||this.remove()}}return i}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}}function rF(e){return e instanceof rP}function r$(e,t,n){let r=e.getNode();for(;r;){let e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}class rB extends rP{static getType(){return"root"}static clone(){return new rB}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){Z(51)}getTextContent(){let e=this.__cachedText;return(ry()||0===rN()._dirtyType)&&null!==e?e:super.getTextContent()}remove(){Z(52)}replace(e){Z(53)}insertBefore(e){Z(54)}insertAfter(e){Z(55)}updateDOM(e,t){return!1}append(...e){for(let t=0;t<e.length;t++){let n=e[t];rF(n)||rI(n)||Z(56)}return super.append(...e)}static importJSON(e){let t=eq();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}collapseAtStart(){return!0}}function rK(e){return e instanceof rB}function rW(){return new rz(new Map([["root",new rB]]))}class rz{constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e){return rw(this,e)}clone(e){let t=new rz(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return rw(this,()=>({root:function e(t){let n=t.exportJSON(),r=t.constructor;if(n.type!==r.getType()&&Z(130,r.name),rF(t)){let l=n.children;Array.isArray(l)||Z(59,r.name);let i=t.getChildren();for(let t=0;t<i.length;t++){let n=e(i[t]);l.push(n)}}return n}(eq())}))}}class rJ extends rP{static getType(){return"paragraph"}static clone(e){return new rJ(e.__key)}createDOM(e){let t=document.createElement("p"),n=tn(e.theme,"paragraph");return void 0!==n&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:rH,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(t&&tE(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();t.style.textAlign=e;let n=this.getDirection();n&&(t.dir=n);let r=this.getIndent();r>0&&(t.style.textIndent=20*r+"px")}return{element:t}}static importJSON(e){let t=rj();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(e,t){let n=rj(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){let e=this.getChildren();if(0===e.length||nW(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function rH(e){let t=rj();if(e.style){t.setFormat(e.style.textAlign);let n=parseInt(e.style.textIndent,10)/20;n>0&&t.setIndent(n)}return{node:t}}function rj(){return tC(new rJ)}function rU(e){return e instanceof rJ}let rY=0,rV=1,rG=2,rZ=3,rX=4;function rq(e,t,n,r){let l=e._keyToDOMMap;l.clear(),e._editorState=rW(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;let i=e._observer;null!==i&&(i.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",l.set("root",n))}function rQ(e){let t,n=e||{},r=rh,l=n.theme||{},i=void 0===e?r:n.parentEditor||null,o=n.disableEvents||!1,s=rW(),a=n.namespace||(null!==i?i._config.namespace:e8()),u=n.editorState,d=[rB,nM,nv,nz,rJ,...n.nodes||[]],{onError:c,html:f}=n,h=void 0===n.editable||n.editable;if(void 0===e&&null!==r)t=r._nodes;else{t=new Map;for(let e=0;e<d.length;e++){let n=d[e],r=null,l=null;if("function"!=typeof n){let e=n;n=e.replace,r=e.with,l=e.withKlass||null}let i=n.getType(),o=n.transform(),s=new Set;null!==o&&s.add(o),t.set(i,{exportDOM:f&&f.export?f.export.get(n):void 0,klass:n,replace:r,replaceWithKlass:l,transforms:s})}}let g=new r0(s,i,t,{disableEvents:o,namespace:a,theme:l},c||console.error,function(e,t){let n=new Map,r=new Set,l=e=>{Object.keys(e).forEach(t=>{let r=n.get(t);void 0===r&&(r=[],n.set(t,r)),r.push(e[t])})};
1return e.forEach(e=>{let t=e.klass.importDOM;if(null==t||r.has(t))return;r.add(t);let n=t.call(e.klass);null!==n&&l(n)}),t&&l(t),n}(t,f?f.import:void 0),h);return void 0!==u&&(g._pendingEditorState=u,g._dirtyType=2),g}class r0{constructor(e,t,n,r,l,i,o){this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=e8(),this._onError=l,this._htmlConversions=i,this._editable=o,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){let t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){let t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){let t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){let t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){let t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){void 0===n&&Z(35);let r=this._commands;r.has(e)||r.set(e,[new Set,new Set,new Set,new Set,new Set]);let l=r.get(e);void 0===l&&Z(36,String(e));let i=l[n];return i.add(t),()=>{i.delete(t),l.every(e=>0===e.size)&&r.delete(e)}}registerMutationListener(e,t){void 0===this._nodes.get(e.getType())&&Z(37,e.name);let n=this._listeners.mutation;return n.set(t,e),()=>{n.delete(t)}}registerNodeTransformToKlass(e,t){let n=e.getType(),r=this._nodes.get(n);return void 0===r&&Z(37,e.name),r.transforms.add(t),r}registerNodeTransform(e,t){var n;let r=this.registerNodeTransformToKlass(e,t),l=[r],i=r.replaceWithKlass;if(null!=i){let e=this.registerNodeTransformToKlass(i,t);l.push(e)}return n=e.getType(),rR(this,()=>{let e=rT();if(!e.isEmpty()){if("root"===n)return void eq().markDirty();for(let[,t]of e._nodeMap)t.markDirty()}},null===this._pendingEditorState?{tag:"history-merge"}:void 0),()=>{l.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return rA(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let n=tn(this._config.theme,"root"),r=this._pendingEditorState||this._editorState;if(this._rootElement=e,rq(this,t,e,r),null!==t&&(this._config.disableEvents||function(e){let t=e.ownerDocument,n=nn.get(t);if(void 0===n)throw Error("Root element not registered");nn.set(t,n-1),1===n&&t.removeEventListener("selectionchange",np);let r=e.__lexicalEditor;null!=r&&(!function(e){if(null!==e._parentEditor){let t=e5(e),n=t[t.length-1]._key;ng.get(n)===e&&ng.delete(n)}else ng.delete(e._key)}(r),e.__lexicalEditor=null);let l=nh(e);for(let e=0;e<l.length;e++)l[e]();e.__lexicalEventHandles=[]}(t),null!=n&&t.classList.remove(...n)),null!==e){let t=function(e){let t=e.ownerDocument;return t&&t.defaultView||null}(e),r=e.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=t,this._dirtyType=2,ew(this),this._updateTags.add("history-merge"),rO(this),this._config.disableEvents||function(e,t){let n=e.ownerDocument,r=nn.get(n);void 0===r&&n.addEventListener("selectionchange",np),nn.set(n,r||1),e.__lexicalEditor=t;let l=nh(e);for(let n=0;n<t6.length;n++){let[r,i]=t6[n],o="function"==typeof i?e=>{nm(e)||(n_(e),(t.isEditable()||"click"===r)&&i(e,t))}:e=>{if(!nm(e)&&(n_(e),t.isEditable()))switch(r){case"cut":return rA(t,W,e);case"copy":return rA(t,K,e);case"paste":return rA(t,f,e);case"dragstart":return rA(t,F,e);case"dragover":return rA(t,$,e);case"dragend":return rA(t,B,e);case"focus":return rA(t,Y,e);case"blur":return rA(t,V,e);case"drop":return rA(t,I,e)}};e.addEventListener(r,o),l.push(()=>{e.removeEventListener(r,o)})}}(e,this),null!=n&&e.classList.add(...n)}else this._editorState=r,this._pendingEditorState=null,this._window=null;rk("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&Z(38),eE(this);
1let n=this._pendingEditorState,r=this._updateTags,l=void 0!==t?t.tag:null;null===n||n.isEmpty()||(null!=l&&r.add(l),rO(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=l&&r.add(l),rO(this)}parseEditorState(e,t){return function(e,t,n){let r=rW(),l=rf,i=rg,o=rh,s=t._dirtyElements,a=t._dirtyLeaves,u=t._cloneNotNeeded,d=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,rf=r,rg=!1,rh=t;try{let l=t._nodes;rE(e.root,l),n&&n(),r._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=s,t._dirtyLeaves=a,t._cloneNotNeeded=u,t._dirtyType=d,rf=l,rg=i,rh=o}return r}("string"==typeof e?JSON.parse(e):e,this,t)}update(e,t){rR(this,e,t)}focus(e,t={}){let n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),rR(this,()=>{let e=rr(),n=eq();null!==e?e.dirty=!0:0!==n.getChildrenSize()&&("rootStart"===t.defaultSelection?n.selectStart():n.selectEnd())},{onUpdate:()=>{n.removeAttribute("autocapitalize"),e&&e()},tag:"focus"}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){let e=this._rootElement;null!==e&&e.blur();let t=tS(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,rk("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}r.$addUpdateTag;let r1=r.$applyNodeReplacement;r.$copyNode,r.$createLineBreakNode;let r2=r.$createNodeSelection,r3=r.$createParagraphNode,r5=r.$createPoint,r8=r.$createRangeSelection,r4=r.$createTabNode,r6=r.$createTextNode,r7=r.$getAdjacentNode,r9=r.$getCharacterOffsets;r.$getEditor;let le=r.$getNearestNodeFromDOMNode;r.$getNearestRootOrShadowRoot;let lt=r.$getNodeByKey,ln=r.$getPreviousSelection,lr=r.$getRoot,ll=r.$getSelection;r.$getTextContent;let li=r.$hasAncestor;r.$hasUpdateTag;let lo=r.$insertNodes;r.$isBlockElementNode;let ls=r.$isDecoratorNode,la=r.$isElementNode;r.$isInlineElementOrDecoratorNode;let lu=r.$isLeafNode,ld=r.$isLineBreakNode,lc=r.$isNodeSelection,lf=r.$isParagraphNode,lh=r.$isRangeSelection,lg=r.$isRootNode,lp=r.$isRootOrShadowRoot;r.$isTabNode;let l_=r.$isTextNode;r.$nodesOfType;let lm=r.$normalizeSelection__EXPERIMENTAL,ly=r.$parseSerializedNode,lC=r.$selectAll;r.$setCompositionKey;let lv=r.$setSelection,lT=r.$splitNode;r.BLUR_COMMAND,r.CAN_REDO_COMMAND,r.CAN_UNDO_COMMAND,r.CLEAR_EDITOR_COMMAND,r.CLEAR_HISTORY_COMMAND;let lN=r.CLICK_COMMAND,lS=r.COMMAND_PRIORITY_CRITICAL,lb=r.COMMAND_PRIORITY_EDITOR,lx=r.COMMAND_PRIORITY_HIGH,lE=r.COMMAND_PRIORITY_LOW;r.COMMAND_PRIORITY_NORMAL;let lw=r.CONTROLLED_TEXT_INSERTION_COMMAND,lO=r.COPY_COMMAND,lk=r.CUT_COMMAND,lA=r.DELETE_CHARACTER_COMMAND,lM=r.DELETE_LINE_COMMAND,lD=r.DELETE_WORD_COMMAND;r.DRAGEND_COMMAND;let lR=r.DRAGOVER_COMMAND,lL=r.DRAGSTART_COMMAND,lI=r.DROP_COMMAND,lP=r.DecoratorNode,lF=r.ElementNode,l$=r.FOCUS_COMMAND,lB=r.FORMAT_ELEMENT_COMMAND,lK=r.FORMAT_TEXT_COMMAND,lW=r.INDENT_CONTENT_COMMAND,lz=r.INSERT_LINE_BREAK_COMMAND,lJ=r.INSERT_PARAGRAPH_COMMAND,lH=r.INSERT_TAB_COMMAND,lj=r.KEY_ARROW_DOWN_COMMAND,lU=r.KEY_ARROW_LEFT_COMMAND,lY=r.KEY_ARROW_RIGHT_COMMAND,lV=r.KEY_ARROW_UP_COMMAND,lG=r.KEY_BACKSPACE_COMMAND,lZ=r.KEY_DELETE_COMMAND;r.KEY_DOWN_COMMAND;let lX=r.KEY_ENTER_COMMAND,lq=r.KEY_ESCAPE_COMMAND;r.KEY_MODIFIER_COMMAND,r.KEY_SPACE_COMMAND;let lQ=r.KEY_TAB_COMMAND;r.LineBreakNode,r.MOVE_TO_END,r.MOVE_TO_START;let l0=r.OUTDENT_CONTENT_COMMAND,l1=r.PASTE_COMMAND;r.ParagraphNode,r.REDO_COMMAND;let l2=r.REMOVE_TEXT_COMMAND;r.RootNode;let l3=r.SELECTION_CHANGE_COMMAND,l5=r.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,l8=r.SELECT_ALL_COMMAND;r.TabNode;let l4=r.TextNode;r.UNDO_COMMAND;let l6=r.createCommand,l7=r.createEditor;r.getNearestEditorFromDOMNode;let l9=r.isCurrentlyReadOnlyMode,ie=r.isHTMLAnchorElement,it=r.isHTMLElement,ir=r.isSelectionCapturedInDecoratorInput,il=r.isSelectionWithinEditor},38810:(e,t,n)=>{"use strict";n.d(t,{k_:()=>_,Db:()=>m});var r={};n.r(r),n.d(r,{$createAutoLinkNode:()=>f,$createLinkNode:()=>u,$isAutoLinkNode:()=>h,$isLinkNode:()=>d,AutoLinkNode:()=>c,LinkNode:()=>s,TOGGLE_LINK_COMMAND:()=>g,toggleLink:()=>p});var l=n(8179),i=n(35482);let o=new Set(["http:","https:","mailto:","sms:","tel:"]);class s extends i.fG{static getType(){return"link"}static clone(e){return new s(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e,t={},n){super(n);let{target:r=null,rel:l=null,title:i=null}=t;this.__url=e,this.__target=r,this.__rel=l,this.__title=i}createDOM(e){let t=document.createElement("a");return t.href=this.sanitizeUrl(this.__url),null!==this.__target&&(t.target=this.__target),null!==this.__rel&&(t.rel=this.__rel),null!==this.__title&&(t.title=this.__title),(0,l.ZB)(t,e.theme.link),t}updateDOM(e,t,n){let r=this.__url,l=this.__target,i=this.__rel,o=this.__title;return r!==e.__url&&(t.href=r),l!==e.__target&&(l?t.target=l:t.removeAttribute("target")),i!==e.__rel&&(i?t.rel=i:t.removeAttribute("rel")),o!==e.__title&&(o?t.title=o:t.removeAttribute("title")),!1}static importDOM(){return{a:e=>({conversion:a,priority:1})}}static importJSON(e){let t=u(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}sanitizeUrl(e){try{let t=new URL(e);if(!o.has(t.protocol))return"about:blank"}catch(e){}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}getTitle(){return this.getLatest().__title}setTitle(e){this.getWritable().__title=e}insertNewAfter(e,t=!0){let n=u(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!(0,i.I2)(t))return!1;let r=t.anchor.getNode(),l=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(l)&&t.getTextContent().length>0}}function a(e){let t=null;if((0,l.nY)(e)){let n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=u(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function u(e,t){return(0,i.pT)(new s(e,t))}function d(e){return e instanceof s}class c extends s{static getType(){return"autolink"}static clone(e){return new c(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}static importJSON(e){let t=f(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(e,t=!0){let n=this.getParentOrThrow().insertNewAfter(e,t);if((0,i.ff)(n)){let e=f(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return n.append(e),e}return null}}function f(e,t){return(0,i.pT)(new c(e,t))}function h(e){return e instanceof c}let g=(0,i.gu)("TOGGLE_LINK_COMMAND");function p(e,t={}){let{target:n,title:r}=t,l=void 0===t.rel?"noreferrer":t.rel,o=(0,i.vJ)();if(!(0,i.I2)(o))return;let s=o.extract();
1if(null===e)s.forEach(e=>{let t=e.getParent();if(d(t)){let e=t.getChildren();for(let n=0;n<e.length;n++)t.insertBefore(e[n]);t.remove()}});else{if(1===s.length){let t=function(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}(s[0],d);if(null!==t)return t.setURL(e),void 0!==n&&t.setTarget(n),null!==l&&t.setRel(l),void(void 0!==r&&t.setTitle(r))}let t=null,o=null;s.forEach(s=>{let a=s.getParent();if(a!==o&&null!==a&&(!(0,i.ff)(s)||s.isInline())){if(d(a))return o=a,a.setURL(e),void 0!==n&&a.setTarget(n),null!==l&&o.setRel(l),void(void 0!==r&&o.setTitle(r));if(a.is(t)||(t=a,o=u(e,{rel:l,target:n,title:r}),d(a)?null===s.getPreviousSibling()?a.insertBefore(o):a.insertAfter(o):s.insertBefore(o)),d(s)){if(s.is(o))return;if(null!==o){let e=s.getChildren();for(let t=0;t<e.length;t++)o.append(e[t])}s.remove()}else null!==o&&o.append(s)}})}}r.$createAutoLinkNode,r.$createLinkNode,r.$isAutoLinkNode,r.$isLinkNode;let _=r.AutoLinkNode,m=r.LinkNode;r.TOGGLE_LINK_COMMAND,r.toggleLink},43624:(e,t,n)=>{"use strict";n.d(t,{Gu:()=>u,Mx:()=>d,DF:()=>c});var r={};n.r(r),n.d(r,{LexicalComposerContext:()=>o,createLexicalComposerContext:()=>s,useLexicalComposerContext:()=>a});var l=n(12115),i=function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)};let o=(0,l.createContext)(null);function s(e,t){let n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}}function a(){let e=(0,l.useContext)(o);return null==e&&i(8),e}let u=r.LexicalComposerContext,d=r.createLexicalComposerContext,c=r.useLexicalComposerContext},44439:(e,t,n)=>{"use strict";n.d(t,{$:()=>M});var r={};n.r(r),n.d(r,{default:()=>c});var l={};n.r(l),n.d(l,{$canShowPlaceholder:()=>y,$canShowPlaceholderCurry:()=>C,$findTextIntersectionFromCharacters:()=>g,$isRootTextContentEmpty:()=>p,$isRootTextContentEmptyCurry:()=>_,$rootTextContent:()=>m,registerLexicalTextEntity:()=>v});var i={};n.r(i),n.d(i,{registerDragonSupport:()=>b});var o={};n.r(o),n.d(o,{RichTextPlugin:()=>k});var s=n(43624),a=n(12115),u="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function d(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function c(){let[e]=(0,s.DF)(),t=(0,a.useMemo)(()=>d(e),[e,d]),n=(0,a.useRef)(t.initialValueFn()),[r,l]=(0,a.useState)(n.current);return u(()=>{let{initialValueFn:e,subscribe:r}=t,i=e();return n.current!==i&&(n.current=i,l(i)),r(e=>{n.current=e,l(e)})},[t,d]),r}let f=r.default;var h=n(35482);function g(e,t){let n=e.getFirstChild(),r=0;e:for(;null!==n;){if((0,h.ff)(n)){let e=n.getFirstChild();if(null!==e){n=e;continue}}else if((0,h.kF)(n)){let e=n.getTextContentSize();if(r+e>t)return{node:n,offset:t-r};r+=e}let e=n.getNextSibling();if(null!==e){n=e;continue}let l=n.getParent();for(;null!==l;){let e=l.getNextSibling();if(null!==e){n=e;continue e}l=l.getParent()}break}return null}function p(e,t=!0){if(e)return!1;let n=m();return t&&(n=n.trim()),""===n}function _(e,t){return()=>p(e,t)}function m(){return(0,h.Ni)().getTextContent()}function y(e){if(!p(e,!1))return!1;let t=(0,h.Ni)().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){let n=t[e];if((0,h.Cy)(n))return!1;if((0,h.ff)(n)){if(!(0,h.bS)(n)||0!==n.__indent)return!1;let t=n.getChildren(),r=t.length;for(let n=0;n<r;n++){let n=t[e];if(!(0,h.kF)(n))return!1}}}return!0}function C(e){return()=>y(e)}function v(e,t,n,r){let l=e=>e instanceof n,i=e=>{let t=(0,h.sT)(e.getTextContent());t.setFormat(e.getFormat()),e.replace(t)};return[e.registerNodeTransform(h.Ey,e=>{if(!e.isSimpleText())return;let n=e.getPreviousSibling(),o,s=e.getTextContent(),a=e;if((0,h.kF)(n)){let r=n.getTextContent(),o=t(r+s);if(l(n)){if(null===o||0!==n.getLatest().__mode)return void i(n);{let t=o.end-r.length;if(t>0){let l=r+s.slice(0,t);if(n.select(),n.setTextContent(l),t===s.length)e.remove();else{let n=s.slice(t);e.setTextContent(n)}return}}}else if(null===o||o.start<r.length)return}for(;;){let e,u=null===(o=t(s))?"":s.slice(o.end);if(s=u,""===u){let e=a.getNextSibling();if((0,h.kF)(e)){let n=t(u=a.getTextContent()+e.getTextContent());if(null===n)return void(l(e)?i(e):e.markDirty());if(0!==n.start)return}}else{let e=t(u);if(null!==e&&0===e.start)return}if(null===o)return;if(0===o.start&&(0,h.kF)(n)&&n.isTextEntity())continue;0===o.start?[e,a]=a.splitText(o.end):[,e,a]=a.splitText(o.start,o.end);let d=r(e);
1if(d.setFormat(e.getFormat()),e.replace(d),null==a)return}}),e.registerNodeTransform(n,e=>{let n=e.getTextContent(),r=t(n);if(null===r||0!==r.start)return void i(e);if(n.length>r.end)return void e.splitText(r.end);let o=e.getPreviousSibling();(0,h.kF)(o)&&o.isTextEntity()&&(i(o),i(e));let s=e.getNextSibling();(0,h.kF)(s)&&s.isTextEntity()&&(i(s),l(e)&&i(e))})]}l.$canShowPlaceholder;let T=l.$canShowPlaceholderCurry;l.$findTextIntersectionFromCharacters,l.$isRootTextContentEmpty,l.$isRootTextContentEmptyCurry,l.$rootTextContent,l.registerLexicalTextEntity;var N=n(8179),S=n(47650);function b(e){let t=window.location.origin,n=n=>{if(n.origin!==t)return;let r=e.getRootElement();if(document.activeElement!==r)return;let l=n.data;if("string"==typeof l){let t;try{t=JSON.parse(l)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){let r=t.payload;if(r&&"makeChanges"===r.functionId){let t=r.args;if(t){let[r,l,i,o,s,a]=t;e.update(()=>{let e=(0,h.vJ)();if((0,h.I2)(e)){let t=e.anchor,a=t.getNode(),u=0,d=0;if((0,h.kF)(a)&&r>=0&&l>=0&&(u=r,d=r+l,e.setTextNodeRange(a,u,a,d)),u===d&&""===i||(e.insertRawText(i),a=t.getNode()),(0,h.kF)(a)){u=o,d=o+s;let t=a.getTextContentSize();u=u>t?t:u,d=d>t?t:d,e.setTextNodeRange(a,u,a,d)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}let x=i.registerDragonSupport;var E=n(18765),w="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function O(e){return e.getEditorState().read(T(e.isComposing()))}function k({contentEditable:e,placeholder:t,ErrorBoundary:n}){var r;let[l]=(0,s.DF)(),i=function(e,t){let[n,r]=(0,a.useState)(()=>e.getDecorators());return w(()=>e.registerDecoratorListener(e=>{(0,S.flushSync)(()=>{r(e)})}),[e]),(0,a.useEffect)(()=>{r(e.getDecorators())},[e]),(0,a.useMemo)(()=>{let r=[],l=Object.keys(n);for(let i=0;i<l.length;i++){let o=l[i],s=a.createElement(t,{onError:t=>e._onError(t)},a.createElement(a.Suspense,{fallback:null},n[o])),u=e.getElementByKey(o);null!==u&&r.push((0,S.createPortal)(s,u,o))}return r},[t,n,e])}(l,n);return w(()=>(0,N.Sd)((0,E.ZI)(r),x(r)),[r=l]),a.createElement(a.Fragment,null,e,a.createElement(A,{content:t}),i)}function A({content:e}){let[t]=(0,s.DF)(),n=function(e){let[t,n]=(0,a.useState)(()=>O(e));return w(()=>{function t(){n(O(e))}return t(),(0,N.Sd)(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=f();return n?"function"==typeof e?e(r):e:null}let M=o.RichTextPlugin},51341:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var r={};n.r(r),n.d(r,{createHeadlessEditor:()=>i});var l=n(35482);function i(e){let t=(0,l.ie)(e);return t._headless=!0,["registerDecoratorListener","registerRootListener","registerMutationListener","getRootElement","setRootElement","getElementByKey","focus","blur"].forEach(e=>{t[e]=()=>{throw Error(`${e} is not supported in headless mode`)}}),t}let o=r.createHeadlessEditor},51513:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r={};n.r(r),n.d(r,{default:()=>u});var l=n(43624),i=n(18765),o=n(35482),s=n(12115);function a(e){return[e.getKey(),e.getTextContent(),e.getTag()]}function u({children:e}){let[t,n]=(0,s.useState)([]),[r]=(0,l.DF)();return(0,s.useEffect)(()=>{let e=[];r.getEditorState().read(()=>{for(let t of(0,o.Ni)().getChildren())(0,i.Pi)(t)&&e.push([t.getKey(),t.getTextContent(),t.getTag()]);n(e)});let t=r.registerMutationListener(i.jL,t=>{r.getEditorState().read(()=>{for(let[n,r]of t)if("created"===r){let t=(0,o.ns)(n);if(null!==t){let n=t.getPreviousSibling();for(;null!==n&&!(0,i.Pi)(n);)n=n.getPreviousSibling();e=function(e,t,n){if(null===t)return n;let r=a(t),l=[];if(null===e)l=[r,...n];else for(let i=0;i<n.length;i++){let o=n[i][0];l.push(n[i]),o===e.getKey()&&o!==t.getKey()&&l.push(r)}return l}(n,t,e)}}else if("destroyed"===r)e=function(e,t){let n=[];for(let r of t)r[0]!==e&&n.push(r);return n}(n,e);else if("updated"===r){let t=(0,o.ns)(n);if(null!==t){let n=t.getPreviousSibling();for(;null!==n&&!(0,i.Pi)(n);)n=n.getPreviousSibling();e=function(e,t,n){let r=[],l=a(t);for(let i of(e||r.push(l),n))i[0]!==t.getKey()&&(r.push(i),e&&i[0]===e.getKey()&&r.push(l));return r}(n,t,e)}}n(e)})}),l=r.registerMutationListener(o.Ey,t=>{r.getEditorState().read(()=>{for(let[r,l]of t)if("updated"===l){let t=(0,o.ns)(r);if(null!==t){let r=t.getParentOrThrow();(0,i.Pi)(r)&&n(e=function(e,t){let n=[];for(let r of t)r[0]===e.getKey()?n.push(a(e)):n.push(r);return n}(r,e))}}})});return()=>{t(),l()}},[r]),e(t,r)}let d=r.default}
1,55599:(e,t,n)=>{"use strict";n.d(t,{g:()=>d,d:()=>c});var r={};n.r(r),n.d(r,{$generateHtmlFromNodes:()=>a,$generateNodesFromDOM:()=>s});var l=n(62105),i=n(8179),o=n(35482);function s(e,t){let n=t.body?t.body.childNodes:[],r=[];for(let t=0;t<n.length;t++){let l=n[t];if(!u.has(l.nodeName)){let t=function e(t,n,r=new Map,l){let i=[];if(u.has(t.nodeName))return i;let s=null,a=function(e,t){let{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase()),l=null;if(void 0!==r)for(let t of r){let n=t(e);null!==n&&(null===l||(l.priority||0)<(n.priority||0))&&(l=n)}return null!==l?l.conversion:null}(t,n),d=a?a(t):null,c=null;if(null!==d){c=d.after;let e=d.node;if(null!==(s=Array.isArray(e)?e[e.length-1]:e)){for(let[,e]of r)if(!(s=e(s,l)))break;s&&i.push(...Array.isArray(e)?e:[s])}null!=d.forChild&&r.set(t.nodeName,d.forChild)}let f=t.childNodes,h=[];for(let t=0;t<f.length;t++)h.push(...e(f[t],n,new Map(r),s));return null!=c&&(h=c(h)),null==s?i=i.concat(h):(0,o.ff)(s)&&s.append(...h),i}(l,e);null!==t&&(r=r.concat(t))}}return r}function a(e,t){if("undefined"==typeof document||"undefined"==typeof window&&void 0===n.g.window)throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let r=document.createElement("div"),s=(0,o.Ni)().getChildren();for(let n=0;n<s.length;n++)!function e(t,n,r,s=null){let a=null===s||n.isSelected(s),u=(0,o.ff)(n)&&n.excludeFromCopy("html"),d=n;if(null!==s){let e=(0,l.BE)(n);d=e=(0,o.kF)(e)&&null!==s?(0,l.SD)(s,e):e}let c=(0,o.ff)(d)?d.getChildren():[],f=t._nodes.get(d.getType()),{element:h,after:g}=f&&void 0!==f.exportDOM?f.exportDOM(t,d):d.exportDOM(t);if(!h)return!1;let p=document.createDocumentFragment();for(let r=0;r<c.length;r++){let l=c[r],i=e(t,l,p,s);!a&&(0,o.ff)(n)&&i&&n.extractWithChild(l,s,"html")&&(a=!0)}if(a&&!u){if((0,i.sb)(h)&&h.append(p),r.append(h),g){let e=g.call(d,h);e&&h.replaceWith(e)}}else r.append(p);return a}(e,s[n],r,t);return r.innerHTML}let u=new Set(["STYLE","SCRIPT"]),d=r.$generateHtmlFromNodes,c=r.$generateNodesFromDOM},55817:(e,t,n)=>{"use strict";n.d(t,{m_:()=>b});var r=n(12115),l=n(20861),i=n(85203),o=n(87358);let s={core:!1,base:!1};function a({css:e,id:t="react-tooltip-base-styles",type:n="base",ref:r}){var l,i;if(!e||"undefined"==typeof document||s[n]||"core"===n&&void 0!==o&&(null==(l=null==o?void 0:o.env)?void 0:l.REACT_TOOLTIP_DISABLE_CORE_STYLES)||"base"!==n&&void 0!==o&&(null==(i=null==o?void 0:o.env)?void 0:i.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===n&&(t="react-tooltip-core-styles"),r||(r={});let{insertAt:a}=r;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);let u=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");
1d.id=t,d.type="text/css","top"===a&&u.firstChild?u.insertBefore(d,u.firstChild):u.appendChild(d),d.styleSheet?d.styleSheet.cssText=e:d.appendChild(document.createTextNode(e)),s[n]=!0}let u=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:r="top",offset:i=10,strategy:o="absolute",middlewares:s=[(0,l.cY)(Number(i)),(0,l.UU)({fallbackAxisSideDirection:"start"}),(0,l.BN)({padding:5})],border:a})=>e&&null!==t?n?(s.push((0,l.UE)({element:n,padding:5})),(0,l.rD)(e,t,{placement:r,strategy:o,middleware:s}).then(({x:e,y:t,placement:n,middlewareData:r})=>{var l,i;let o={left:`${e}px`,top:`${t}px`,border:a},{x:s,y:u}=null!=(l=r.arrow)?l:{x:0,y:0},d=null!=(i=({top:"bottom",right:"left",bottom:"top",left:"right"})[n.split("-")[0]])?i:"bottom",c=0;if(a){let e=`${a}`.match(/(\d+)px/);c=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:o,tooltipArrowStyles:{left:null!=s?`${s}px`:"",top:null!=u?`${u}px`:"",right:"",bottom:"",...a&&{borderBottom:a,borderRight:a},[d]:`-${4+c}px`},place:n}})):(0,l.rD)(e,t,{placement:"bottom",strategy:o,middleware:s}).then(({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})):{tooltipStyles:{},tooltipArrowStyles:{},place:r},d=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),c=(e,t,n)=>{let r=null,l=function(...l){let i=()=>{r=null,n||e.apply(this,l)};n&&!r&&(e.apply(this,l),r=setTimeout(i,t)),n||(r&&clearTimeout(r),r=setTimeout(i,t))};return l.cancel=()=>{r&&(clearTimeout(r),r=null)},l},f=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,h=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>h(e,t[n]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!f(e)||!f(t))return e===t;let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>h(e[n],t[n]))},g=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(e=>{let n=t.getPropertyValue(e);return"auto"===n||"scroll"===n})},p=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(g(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},_="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,m={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},y=(0,r.createContext)({getTooltipData:()=>m});function C(e="DEFAULT_TOOLTIP_ID"){return(0,r.useContext)(y).getTooltipData(e)}var v={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},T={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};let N=({forwardRef:e,id:t,className:n,classNameArrow:o,variant:s="dark",anchorId:a,anchorSelect:d,place:f="top",offset:g=10,events:m=["hover"],openOnClick:y=!1,positionStrategy:N="absolute",middlewares:S,wrapper:b,delayShow:x=0,delayHide:E=0,float:w=!1,hidden:O=!1,noArrow:k=!1,clickable:A=!1,closeOnEsc:M=!1,closeOnScroll:D=!1,closeOnResize:R=!1,openEvents:L,closeEvents:I,globalCloseEvents:P,imperativeModeOnly:F,style:$,position:B,afterShow:K,afterHide:W,content:z,contentWrapperRef:J,isOpen:H,defaultIsOpen:j=!1,setIsOpen:U,activeAnchor:Y,setActiveAnchor:V,border:G,opacity:Z,arrowColor:X,role:q="tooltip"})=>{var Q;let ee=(0,r.useRef)(null),et=(0,r.useRef)(null),en=(0,r.useRef)(null),er=(0,r.useRef)(null),el=(0,r.useRef)(null),[ei,eo]=(0,r.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:f}),[es,ea]=(0,r.useState)(!1),[eu,ed]=(0,r.useState)(!1),[ec,ef]=(0,r.useState)(null),eh=(0,r.useRef)(!1),eg=(0,r.useRef)(null),{anchorRefs:ep,setActiveAnchor:e_}=C(t),em=(0,r.useRef)(!1),[ey,eC]=(0,r.useState)([]),ev=(0,r.useRef)(!1),eT=y||m.includes("click"),eN=eT||(null==L?void 0:L.click)||(null==L?void 0:L.dblclick)||(null==L?void 0:L.mou
1sedown),eS=L?{...L}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!L&&eT&&Object.assign(eS,{mouseenter:!1,focus:!1,click:!0});let eb=I?{...I}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!I&&eT&&Object.assign(eb,{mouseleave:!1,blur:!1});let ex=P?{...P}:{escape:M||!1,scroll:D||!1,resize:R||!1,clickOutsideAnchor:eN||!1};F&&(Object.assign(eS,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(eb,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(ex,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),_(()=>(ev.current=!0,()=>{ev.current=!1}),[]);let eE=e=>{ev.current&&(e&&ed(!0),setTimeout(()=>{ev.current&&(null==U||U(e),void 0===H&&ea(e))},10))};(0,r.useEffect)(()=>{if(void 0===H)return()=>null;H&&ed(!0);let e=setTimeout(()=>{ea(H)},10);return()=>{clearTimeout(e)}},[H]),(0,r.useEffect)(()=>{es!==eh.current&&((el.current&&clearTimeout(el.current),eh.current=es,es)?null==K||K():el.current=setTimeout(()=>{ed(!1),ef(null),null==W||W()},(e=>{let t=e.match(/^([\d.]+)(ms|s)$/);if(!t)return 0;let[,n,r]=t;return Number(n)*("ms"===r?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"))+25))},[es]);let ew=e=>{eo(t=>h(t,e)?t:e)},eO=(e=x)=>{en.current&&clearTimeout(en.current),eu?eE(!0):en.current=setTimeout(()=>{eE(!0)},e)},ek=(e=E)=>{er.current&&clearTimeout(er.current),er.current=setTimeout(()=>{em.current||eE(!1)},e)},eA=e=>{var t;if(!e)return;let n=null!=(t=e.currentTarget)?t:e.target;if(!(null==n?void 0:n.isConnected))return V(null),void e_({current:null});x?eO():eE(!0),V(n),e_({current:n}),er.current&&clearTimeout(er.current)},eM=()=>{A?ek(E||100):E?ek():eE(!1),en.current&&clearTimeout(en.current)},eD=({x:e,y:t})=>{var n;u({place:null!=(n=null==ec?void 0:ec.place)?n:f,offset:g,elementReference:{getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})},tooltipReference:ee.current,tooltipArrowReference:et.current,strategy:N,middlewares:S,border:G}).then(e=>{ew(e)})},eR=e=>{if(!e)return;let t={x:e.clientX,y:e.clientY};eD(t),eg.current=t},eL=e=>{var t;if(!es)return;let n=e.target;n.isConnected&&(null==(t=ee.current)||!t.contains(n))&&([document.querySelector(`[id='${a}']`),...ey].some(e=>null==e?void 0:e.contains(n))||(eE(!1),en.current&&clearTimeout(en.current)))},eI=c(eA,50,!0),eP=c(eM,50,!0),eF=e=>{eP.cancel(),eI(e)},e$=()=>{eI.cancel(),eP()},eB=(0,r.useCallback)(()=>{var e,t;let n=null!=(e=null==ec?void 0:ec.position)?e:B;n?eD(n):w?eg.current&&eD(eg.current):(null==Y?void 0:Y.isConnected)&&u({place:null!=(t=null==ec?void 0:ec.place)?t:f,offset:g,elementReference:Y,tooltipReference:ee.current,tooltipArrowReference:et.current,strategy:N,middlewares:S,border:G}).then(e=>{ev.current&&ew(e)})},[es,Y,z,$,f,null==ec?void 0:ec.place,g,N,B,null==ec?void 0:ec.position,w]);(0,r.useEffect)(()=>{var e,t;let n=new Set(ep);ey.forEach(e=>{n.add({current:e})});let r=document.querySelector(`[id='${a}']`);r&&n.add({current:r});let i=()=>{eE(!1)},o=p(Y),s=p(ee.current);ex.scroll&&(window.addEventListener("scroll",i),null==o||o.addEventListener("scroll",i),null==s||s.addEventListener("scroll",i));let u=null;ex.resize?window.addEventListener("resize",i):Y&&ee.current&&(u=(0,l.ll)(Y,ee.current,eB,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));let d=e=>{"Escape"===e.key&&eE(!1)};ex.escape&&window.addEventListener("keydown",d),ex.clickOutsideAnchor&&window.addEventListener("click",eL);let c=[],f=e=>{es&&(null==e?void 0:e.target)===Y||eA(e)},h=e=>{es&&(null==e?void 0:e.target)===Y&&eM()},g=["mouseenter","mouseleave","focus","blur"],_=["click","dblclick","mousedown","mouseup"];Object.entries(eS).forEach(([e,t])=>{t&&(g.includes(e)?c.push({event:e,listener:eF}):_.includes(e)&&c.push({event:e,listener:f}))}),Object.entries(eb).forEach(([e,t])=>{t&&(g.includes(e)?c.push({event:e,listener:e$}):_.includes(e)&&c.push({event:e,listener:h}))}),w&&c.push({event:"pointermove",listener:eR});let m=()=>{em.current=!0},y=()=>{em.current=!1,eM()};return A&&!eN&&(null==(e=ee.current)||e.addEventListener("mouseenter",m),null==(t=ee.current)||t.addEventListener("mouseleave",y)),c.forEac
1h(({event:e,listener:t})=>{n.forEach(n=>{var r;null==(r=n.current)||r.addEventListener(e,t)})}),()=>{var e,t;ex.scroll&&(window.removeEventListener("scroll",i),null==o||o.removeEventListener("scroll",i),null==s||s.removeEventListener("scroll",i)),ex.resize?window.removeEventListener("resize",i):null==u||u(),ex.clickOutsideAnchor&&window.removeEventListener("click",eL),ex.escape&&window.removeEventListener("keydown",d),A&&!eN&&(null==(e=ee.current)||e.removeEventListener("mouseenter",m),null==(t=ee.current)||t.removeEventListener("mouseleave",y)),c.forEach(({event:e,listener:t})=>{n.forEach(n=>{var r;null==(r=n.current)||r.removeEventListener(e,t)})})}},[Y,eB,eu,ep,ey,L,I,P,eT,x,E]),(0,r.useEffect)(()=>{var e,n;let r=null!=(n=null!=(e=null==ec?void 0:ec.anchorSelect)?e:d)?n:"";!r&&t&&(r=`[data-tooltip-id='${t}']`);let l=new MutationObserver(e=>{let n=[],l=[];e.forEach(e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?n.push(e.target):e.oldValue===t&&l.push(e.target)),"childList"===e.type){if(Y){let t=[...e.removedNodes].filter(e=>1===e.nodeType);if(r)try{l.push(...t.filter(e=>e.matches(r))),l.push(...t.flatMap(e=>[...e.querySelectorAll(r)]))}catch(e){}t.some(e=>{var t;return!!(null==(t=null==e?void 0:e.contains)?void 0:t.call(e,Y))&&(ed(!1),eE(!1),V(null),en.current&&clearTimeout(en.current),er.current&&clearTimeout(er.current),!0)})}if(r)try{let t=[...e.addedNodes].filter(e=>1===e.nodeType);n.push(...t.filter(e=>e.matches(r))),n.push(...t.flatMap(e=>[...e.querySelectorAll(r)]))}catch(e){}}}),(n.length||l.length)&&eC(e=>[...e.filter(e=>!l.includes(e)),...n])});return l.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{l.disconnect()}},[t,d,null==ec?void 0:ec.anchorSelect,Y]),(0,r.useEffect)(()=>{eB()},[eB]),(0,r.useEffect)(()=>{if(!(null==J?void 0:J.current))return()=>null;let e=new ResizeObserver(()=>{setTimeout(()=>eB())});return e.observe(J.current),()=>{e.disconnect()}},[z,null==J?void 0:J.current]),(0,r.useEffect)(()=>{var e;let t=document.querySelector(`[id='${a}']`),n=[...ey,t];Y&&n.includes(Y)||V(null!=(e=ey[0])?e:t)},[a,ey,Y]),(0,r.useEffect)(()=>(j&&eE(!0),()=>{en.current&&clearTimeout(en.current),er.current&&clearTimeout(er.current)}),[]),(0,r.useEffect)(()=>{var e;let n=null!=(e=null==ec?void 0:ec.anchorSelect)?e:d;if(!n&&t&&(n=`[data-tooltip-id='${t}']`),n)try{let e=Array.from(document.querySelectorAll(n));eC(e)}catch(e){eC([])}},[t,d,null==ec?void 0:ec.anchorSelect]),(0,r.useEffect)(()=>{en.current&&(clearTimeout(en.current),eO(x))},[x]);let eK=null!=(Q=null==ec?void 0:ec.content)?Q:z,eW=es&&Object.keys(ei.tooltipStyles).length>0;return(0,r.useImperativeHandle)(e,()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ef(null!=e?e:null),(null==e?void 0:e.delay)?eO(e.delay):eE(!0)},close:e=>{(null==e?void 0:e.delay)?ek(e.delay):eE(!1)},activeAnchor:Y,place:ei.place,isOpen:!!(eu&&!O&&eK&&eW)})),eu&&!O&&eK?r.createElement(b,{id:t,role:q,className:i("react-tooltip",v.tooltip,T.tooltip,T[s],n,`react-tooltip__place-${ei.place}`,v[eW?"show":"closing"],eW?"react-tooltip__show":"react-tooltip__closing","fixed"===N&&v.fixed,A&&v.clickable),onTransitionEnd:e=>{el.current&&clearTimeout(el.current),es||"opacity"!==e.propertyName||(ed(!1),ef(null),null==W||W())},style:{...$,...ei.tooltipStyles,opacity:void 0!==Z&&eW?Z:void 0},ref:ee},eK,r.createElement(b,{className:i("react-tooltip-arrow",v.arrow,T.arrow,o,k&&v.noArrow),style:{...ei.tooltipArrowStyles,background:X?`linear-gradient(to right bottom, transparent 50%, ${X} 50%)`:void 0},ref:et})):null},S=({content:e})=>r.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),b=r.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:l,html:o,render:s,className:a,classNameArrow:u,variant:c="dark",place:f="top",offset:h=10,wrapper:g="div",children:p=null,events:_=["hover"],openOnClick:m=!1,positionStrategy:y="absolute",middlewares:v,delayShow:T=0,delayHide:b=0,float:x=!1,hidden:E=!1,noArrow:w=!1,clickable:O=!1,
1closeOnEsc:k=!1,closeOnScroll:A=!1,closeOnResize:M=!1,openEvents:D,closeEvents:R,globalCloseEvents:L,imperativeModeOnly:I=!1,style:P,position:F,isOpen:$,defaultIsOpen:B=!1,disableStyleInjection:K=!1,border:W,opacity:z,arrowColor:J,setIsOpen:H,afterShow:j,afterHide:U,role:Y="tooltip"},V)=>{let[G,Z]=(0,r.useState)(l),[X,q]=(0,r.useState)(o),[Q,ee]=(0,r.useState)(f),[et,en]=(0,r.useState)(c),[er,el]=(0,r.useState)(h),[ei,eo]=(0,r.useState)(T),[es,ea]=(0,r.useState)(b),[eu,ed]=(0,r.useState)(x),[ec,ef]=(0,r.useState)(E),[eh,eg]=(0,r.useState)(g),[ep,e_]=(0,r.useState)(_),[em,ey]=(0,r.useState)(y),[eC,ev]=(0,r.useState)(null),[eT,eN]=(0,r.useState)(null),eS=(0,r.useRef)(K),{anchorRefs:eb,activeAnchor:ex}=C(e),eE=e=>null==e?void 0:e.getAttributeNames().reduce((t,n)=>{var r;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!=(r=null==e?void 0:e.getAttribute(n))?r:null),t},{}),ew=e=>{let t={place:e=>{ee(null!=e?e:f)},content:e=>{Z(null!=e?e:l)},html:e=>{q(null!=e?e:o)},variant:e=>{en(null!=e?e:c)},offset:e=>{el(null===e?h:Number(e))},wrapper:e=>{eg(null!=e?e:g)},events:e=>{let t=null==e?void 0:e.split(" ");e_(null!=t?t:_)},"position-strategy":e=>{ey(null!=e?e:y)},"delay-show":e=>{eo(null===e?T:Number(e))},"delay-hide":e=>{ea(null===e?b:Number(e))},float:e=>{ed(null===e?x:"true"===e)},hidden:e=>{ef(null===e?E:"true"===e)},"class-name":e=>{ev(e)}};Object.values(t).forEach(e=>e(null)),Object.entries(e).forEach(([e,n])=>{var r;null==(r=t[e])||r.call(t,n)})};(0,r.useEffect)(()=>{Z(l)},[l]),(0,r.useEffect)(()=>{q(o)},[o]),(0,r.useEffect)(()=>{ee(f)},[f]),(0,r.useEffect)(()=>{en(c)},[c]),(0,r.useEffect)(()=>{el(h)},[h]),(0,r.useEffect)(()=>{eo(T)},[T]),(0,r.useEffect)(()=>{ea(b)},[b]),(0,r.useEffect)(()=>{ed(x)},[x]),(0,r.useEffect)(()=>{ef(E)},[E]),(0,r.useEffect)(()=>{ey(y)},[y]),(0,r.useEffect)(()=>{eS.current!==K&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[K]),(0,r.useEffect)(()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===K,disableBase:K}}))},[]),(0,r.useEffect)(()=>{var r;let l=new Set(eb),i=n;if(!i&&e&&(i=`[data-tooltip-id='${e}']`),i)try{document.querySelectorAll(i).forEach(e=>{l.add({current:e})})}catch(e){console.warn(`[react-tooltip] "${i}" is not a valid CSS selector`)}let o=document.querySelector(`[id='${t}']`);if(o&&l.add({current:o}),!l.size)return()=>null;let s=null!=(r=null!=eT?eT:o)?r:ex.current,a=new MutationObserver(e=>{e.forEach(e=>{var t;s&&"attributes"===e.type&&(null==(t=e.attributeName)?void 0:t.startsWith("data-tooltip-"))&&ew(eE(s))})});return s&&(ew(eE(s)),a.observe(s,{attributes:!0,childList:!1,subtree:!1})),()=>{a.disconnect()}},[eb,ex,eT,t,n]),(0,r.useEffect)(()=>{(null==P?void 0:P.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),W&&!d("border",`${W}`)&&console.warn(`[react-tooltip] "${W}" is not a valid \`border\`.`),(null==P?void 0:P.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),z&&!d("opacity",`${z}`)&&console.warn(`[react-tooltip] "${z}" is not a valid \`opacity\`.`)},[]);let eO=p,ek=(0,r.useRef)(null);if(s){let e=s({content:(null==eT?void 0:eT.getAttribute("data-tooltip-content"))||G||null,activeAnchor:eT});eO=e?r.createElement("div",{ref:ek,className:"react-tooltip-content-wrapper"},e):null}else G&&(eO=G);X&&(eO=r.createElement(S,{content:X}));let eA={forwardRef:V,id:e,anchorId:t,anchorSelect:n,className:i(a,eC),classNameArrow:u,content:eO,contentWrapperRef:ek,place:Q,variant:et,offset:er,wrapper:eh,events:ep,openOnClick:m,positionStrategy:em,middlewares:v,delayShow:ei,delayHide:es,float:eu,hidden:ec,noArrow:w,clickable:O,closeOnEsc:k,closeOnScroll:A,closeOnResize:M,openEvents:D,closeEvents:R,globalCloseEvents:L,imperativeModeOnly:I,style:P,position:F,isOpen:$,defaultIsOpen:B,border:W,opacity:z,arrowColor:J,setIsOpen:H,afterShow:j,afterHide:U,activeAnchor:eT,setActiveAnchor:e=>eN(e),role:Y};return r.createElement(N,{...eA})});"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||a({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}
1.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||a({css:` 2.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})})},60429:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var r={};n.r(r),n.d(r,{default:()=>a});var l=n(12115);function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var o={error:null},s=function(e){function t(){for(var t,n=arguments.length,r=Array(n),l=0;l<n;l++)r[l]=arguments[l];return(t=e.call.apply(e,[this].concat(r))||this).state=o,t.resetErrorBoundary=function(){for(var e,n=arguments.length,r=Array(n),l=0;l<n;l++)r[l]=arguments[l];null==t.props.onReset||(e=t.props).onReset.apply(e,r),t.reset()},t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var n=t.prototype;return n.reset=function(){this.setState(o)},n.componentDidCatch=function(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)},n.componentDidUpdate=function(e,t){var n,r,l,i,o=this.state.error,s=this.props.resetKeys;null!==o&&null!==t.error&&(void 0===(l=e.resetKeys)&&(l=[]),void 0===(i=s)&&(i=[]),l.length!==i.length||l.some(function(e,t){return!Object.is(e,i[t])}))&&(null==(n=(r=this.props).onResetKeysChange)||n.call(r,e.resetKeys,s),this.reset())},n.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,r=t.FallbackComponent,i=t.fallback;if(null!==e){var o={error:e,resetErrorBoundary:this.resetErrorBoundary};if(l.isValidElement(i))return i;if("function"==typeof n)return n(o);if(r)return l.createElement(r,o);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(l.Component);function a({children:e,onError:t}){return l.createElement(s,{fallback:l.createElement("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"}},"An error was thrown."),onError:t},e)}let u=r.default},62105:(e,t,n)=>{"use strict";n.d(t,{Xg:()=>A,BE:()=>M,Rk:()=>D,Cb:()=>R,SD:()=>L,zT:()=>I});var r={};n.r(r),n.d(r,{$addNodeStyle:()=>_,$cloneWithProperties:()=>f,$getSelectionStyleValueForProperty:()=>O,$isAtNodeEnd:()=>g,$isParentElementRTL:()=>x,$moveCaretSelection:()=>b,$moveCharacter:()=>E,$patchStyleText:()=>y,$selectAll:()=>w,$setBlocksType:()=>C,$shouldOverrideDefaultCharacterSelection:()=>S,$sliceSelectedTextNodeContent:()=>h,$wrapNodes:()=>T,createDOMRange:()=>a,createRectsFromDOMRange:()=>u,getStyleObjectFromCSS:()=>c,trimTextContentFromAnchor:()=>p});var l=n(35482);let i=new Map;function o(e){let t=e;for(;null!=t;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function s(e){let t=e.parentNode;if(null==t)throw Error("Should never happen");return[t,Array.from(t.childNodes).indexOf(e)]}function a(e,t,n,r,i){let a=t.getKey(),u=r.getKey(),d=document.createRange(),c=e.getElementByKey(a),f=e.getElementByKey(u),h=n,g=i;if((0,l.kF)(t)&&(c=o(c)),(0,l.kF)(r)&&(f=o(f)),void 0===t||void 0===r||null===c||null===f)return null;"BR"===c.nodeName&&([c,h]=s(c)),"BR"===f.nodeName&&([f,g]=s(f));let p=c.firstChild;c===f&&null!=p&&"BR"===p.nodeName&&0===h&&0===g&&(g=1);try{d.setStart(c,h),d.setEnd(f,g)}catch(e){return null}return d.collapsed&&(h!==g||a!==u)&&(d.setStart(f,g),d.setEnd(c,h)),d}function u(e,t){let n=e.getRootElement();if(null===n)return[];let r=n.getBoundingClientRect(),l=getComputedStyle(n),i=parseFloat(l.paddingLeft)+parseFloat(l.paddingRight),o=Array.from(t.getClientRects()),s,a=o.length;o.sort((e,t)=>
2{let n=e.top-t.top;return 3>=Math.abs(n)?e.left-t.left:n});for(let e=0;e<a;e++){let t=o[e],n=s&&s.top<=t.top&&s.top+s.height>t.top&&s.left+s.width>t.left,l=t.width+i===r.width;n||l?(o.splice(e--,1),a--):s=t}return o}function d(e){let t={};for(let n of e.split(";"))if(""!==n){let[e,r]=n.split(/:([^]+)/);e&&r&&(t[e.trim()]=r.trim())}return t}function c(e){let t=i.get(e);return void 0===t&&(t=d(e),i.set(e,t)),t}function f(e){let t=e.constructor.clone(e);return t.__parent=e.__parent,t.__next=e.__next,t.__prev=e.__prev,(0,l.ff)(e)&&(0,l.ff)(t)?(t.__first=e.__first,t.__last=e.__last,t.__size=e.__size,t.__format=e.__format,t.__indent=e.__indent,t.__dir=e.__dir):(0,l.kF)(e)&&(0,l.kF)(t)&&(t.__format=e.__format,t.__style=e.__style,t.__mode=e.__mode,t.__detail=e.__detail),t}function h(e,t){let n=e.getStartEndPoints();if(t.isSelected(e)&&!t.isSegmented()&&!t.isToken()&&null!==n){let[r,i]=n,o=e.isBackward(),s=r.getNode(),a=i.getNode(),u=t.is(s),d=t.is(a);if(u||d){let[n,r]=(0,l.Ck)(e),i=s.is(a),u=t.is(o?a:s),d=t.is(o?s:a),c,f=0;return i?(f=n>r?r:n,c=n>r?n:r):u?(f=o?r:n,c=void 0):d&&(f=0,c=o?n:r),t.__text=t.__text.slice(f,c),t}}return t}function g(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();let t=e.getNode();if(!(0,l.ff)(t))throw Error("isAtNodeEnd: node must be a TextNode or ElementNode");return e.offset===t.getChildrenSize()}function p(e,t,n){let r=t.getNode(),i=n;if((0,l.ff)(r)){let e=r.getDescendantByIndex(t.offset);null!==e&&(r=e)}for(;i>0&&null!==r;){if((0,l.ff)(r)){let e=r.getLastDescendant();null!==e&&(r=e)}let n=r.getPreviousSibling(),o=0;if(null===n){let e=r.getParentOrThrow(),t=e.getPreviousSibling();for(;null===t;){if(null===(e=e.getParent())){n=null;break}t=e.getPreviousSibling()}null!==e&&(o=2*!e.isInline(),n=t)}let s=r.getTextContent();""===s&&(0,l.ff)(r)&&!r.isInline()&&(s="\n\n");let a=s.length;if(!(0,l.kF)(r)||i>=a){let e=r.getParent();r.remove(),null==e||0!==e.getChildrenSize()||(0,l.hV)(e)||e.remove(),i-=a+o,r=n}else{let n=r.getKey(),o=e.getEditorState().read(()=>{let e=(0,l.ns)(n);return(0,l.kF)(e)&&e.isSimpleText()?e.getTextContent():null}),u=a-i,d=s.slice(0,u);if(null!==o&&o!==s){let e=(0,l.S1)(),t=r;if(r.isSimpleText())r.setTextContent(o);else{let e=(0,l.sT)(o);r.replace(e),t=e}if((0,l.I2)(e)&&e.isCollapsed()){let n=e.anchor.offset;t.select(n,n)}}else if(r.isSimpleText()){let e=t.key===n,l=t.offset;l<i&&(l=a);let o=e?l-i:0,s=e?l:u;if(e&&0===o){let[e]=r.splitText(o,s);e.remove()}else{let[,e]=r.splitText(o,s);e.remove()}}else{let e=(0,l.sT)(d);r.replace(e)}i=0}}}function _(e){let t=e.getStyle(),n=d(t);i.set(t,n)}function m(e,t){let n=c("getStyle"in e?e.getStyle():e.style),r=Object.entries(t).reduce((e,[t,r])=>(r instanceof Function?e[t]=r(n[t]):null===r?delete e[t]:e[t]=r,e),{...n}),l=function(e){let t="";for(let n in e)n&&(t+=`${n}: ${e[n]};`);return t}(r);e.setStyle(l),i.set(l,r)}function y(e,t){let n=e.getNodes(),r=n.length,i=e.getStartEndPoints();if(null===i)return;let[o,s]=i,a=r-1,u=n[0],d=n[a];if(e.isCollapsed()&&(0,l.I2)(e))return void m(e,t);let c=u.getTextContent().length,f=s.offset,h=o.offset,g=o.isBefore(s),p=g?h:f,_=g?f:h,y=g?o.type:s.type,C=g?s.type:o.type,v=g?s.key:o.key;if((0,l.kF)(u)&&p===c){let e=u.getNextSibling();(0,l.kF)(e)&&(h=0,p=0,u=e)}if(1===n.length){if((0,l.kF)(u)&&u.canHaveFormat()){if((p="element"===y?0:h>f?f:h)===(_="element"===C?c:h>f?h:f))return;if(0===p&&_===c)m(u,t),u.select(p,_);else{let e=u.splitText(p,_),n=0===p?e[0]:e[1];m(n,t),n.select(0,_-p)}}}else{if((0,l.kF)(u)&&p<u.getTextContentSize()&&u.canHaveFormat()&&(0!==p&&(u=u.splitText(p)[1],p=0,o.set(u.getKey(),p,"text")),m(u,t)),(0,l.kF)(d)&&d.canHaveFormat()){let e=d.getTextContent().length;d.__key!==v&&0!==_&&(_=e),_!==e&&([d]=d.splitText(_)),0===_&&"element"!==C||m(d,t)}for(let e=1;e<a;e++){let r=n[e],i=r.getKey();(0,l.kF)(r)&&r.canHaveFormat()&&i!==u.getKey()&&i!==d.getKey()&&!r.isToken()&&m(r,t)}}}function C(e,t){if(null===e)return;let n=e.getStartEndPoints(),r=n?n[0]:null;if(null!==r&&"root"===r.key){let e=t(),n=(0,l.Ni)(),r=n.getFirstChild();return void(r?r.replace(e,!0):n.append(e))}let i=e.getNodes(),o=null!==r&&function(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}(r.getNode(),k);o&&-1===i.indexOf(o)&&i.push(o);for(let e=0;e<i.length;e++){let n=i[e];if(!k(n))continue;if(!(0,l.ff)(n))throw Error("Expected block node to be an ElementNode");let r=t();r.setFormat(n.getFormatType()),r.setIndent(n.getIndent()),n.replace(r,!0)}}function v(e){return e.getNode().isAttached()}function T(e,t,n=null){let r=e.getStartEndPoints(),i=r?r[0]:null,o=e.getNodes(),s=o.length;if(null!==i&&(0===s||1===s&&"element"===i.type&&0===i.getNode().getChildrenSize())){let e="text"===i.type?i.getNode().getParentOrThrow():i.getNode(),r=e.getChildren(),l=t();return l.setFormat(e.getFormatType()),l.setIndent(e.getIndent()),r.forEach(e
2=>l.append(e)),n&&(l=n.append(l)),void e.replace(l)}let a=null,u=[];for(let r=0;r<s;r++){let i=o[r];(0,l.Iq)(i)?(N(e,u,u.length,t,n),u=[],a=i):null===a||null!==a&&(0,l.EL)(i,a)?u.push(i):(N(e,u,u.length,t,n),u=[i])}N(e,u,u.length,t,n)}function N(e,t,n,r,i=null){if(0===t.length)return;let o=t[0],s=new Map,a=[],u=(0,l.ff)(o)?o:o.getParentOrThrow();u.isInline()&&(u=u.getParentOrThrow());let d=!1;for(;null!==u;){let e=u.getPreviousSibling();if(null!==e){u=e,d=!0;break}if(u=u.getParentOrThrow(),(0,l.Iq)(u))break}let c=new Set;for(let e=0;e<n;e++){let n=t[e];(0,l.ff)(n)&&0===n.getChildrenSize()&&c.add(n.getKey())}let f=new Set;for(let e=0;e<n;e++){let n=t[e],i=n.getParent();if(null!==i&&i.isInline()&&(i=i.getParent()),null!==i&&(0,l.jG)(n)&&!f.has(n.getKey())){let e=i.getKey();if(void 0===s.get(e)){let t=r();t.setFormat(i.getFormatType()),t.setIndent(i.getIndent()),a.push(t),s.set(e,t),i.getChildren().forEach(e=>{t.append(e),f.add(e.getKey()),(0,l.ff)(e)&&e.getChildrenKeys().forEach(e=>f.add(e))}),function(e){let t=e;for(;null!==t&&!(0,l.Iq)(t);){let e=t.getLatest(),n=t.getParent();0===e.getChildrenSize()&&t.remove(!0),t=n}}(i)}}else if(c.has(n.getKey())){if(!(0,l.ff)(n))throw Error("Expected node in emptyElements to be an ElementNode");let e=r();e.setFormat(n.getFormatType()),e.setIndent(n.getIndent()),a.push(e),n.remove(!0)}}if(null!==i)for(let e=0;e<a.length;e++){let t=a[e];i.append(t)}let h=null;if((0,l.Iq)(u))if(d)if(null!==i)u.insertAfter(i);else for(let e=a.length-1;e>=0;e--){let t=a[e];u.insertAfter(t)}else{let e=u.getFirstChild();if((0,l.ff)(e)&&(u=e),null===e)if(i)u.append(i);else for(let e=0;e<a.length;e++){let t=a[e];u.append(t),h=t}else if(null!==i)e.insertBefore(i);else for(let t=0;t<a.length;t++){let n=a[t];e.insertBefore(n),h=n}}else if(i)u.insertAfter(i);else for(let e=a.length-1;e>=0;e--){let t=a[e];u.insertAfter(t),h=t}let g=(0,l.S1)();(0,l.I2)(g)&&v(g.anchor)&&v(g.focus)?(0,l.n1)(g.clone()):null!==h?h.selectEnd():e.dirty=!0}function S(e,t){let n=(0,l.B$)(e.focus,t);return(0,l.Cy)(n)&&!n.isIsolated()||(0,l.ff)(n)&&!n.isInline()&&!n.canBeEmpty()}function b(e,t,n,r){e.modify(t?"extend":"move",n,r)}function x(e){let t=e.anchor.getNode();return"rtl"===((0,l.hV)(t)?t:t.getParentOrThrow()).getDirection()}function E(e,t,n){let r=x(e);b(e,t,n?!r:r,"character")}function w(e){let t=e.anchor,n=e.focus,r=t.getNode().getTopLevelElementOrThrow().getParentOrThrow(),i=r.getFirstDescendant(),o=r.getLastDescendant(),s="element",a="element",u=0;(0,l.kF)(i)?s="text":(0,l.ff)(i)||null===i||(i=i.getParentOrThrow()),(0,l.kF)(o)?(a="text",u=o.getTextContentSize()):(0,l.ff)(o)||null===o||(o=o.getParentOrThrow()),i&&o&&(t.set(i.getKey(),0,s),n.set(o.getKey(),u,a))}function O(e,t,n=""){let r=null,i=e.getNodes(),o=e.anchor,s=e.focus,a=e.isBackward(),u=a?s.offset:o.offset,d=a?s.getNode():o.getNode();if(e.isCollapsed()&&""!==e.style){let n=c(e.style);if(null!==n&&t in n)return n[t]}for(let e=0;e<i.length;e++){let o=i[e];if((0===e||0!==u||!o.is(d))&&(0,l.kF)(o)){let e=function(e,t,n){let r=c(e.getStyle());return null!==r&&r[t]||n}(o,t,n);if(null===r)r=e;else if(r!==e){r="";break}}}return null===r?n:r}function k(e){if((0,l.Cy)(e)||!(0,l.ff)(e)||(0,l.Iq)(e))return!1;let t=e.getFirstChild(),n=null===t||(0,l.wH)(t)||(0,l.kF)(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}let A=r.$addNodeStyle,M=r.$cloneWithProperties;r.$getSelectionStyleValueForProperty,r.$isAtNodeEnd,r.$isParentElementRTL,r.$moveCaretSelection;let D=r.$moveCharacter;r.$patchStyleText,r.$selectAll,r.$setBlocksType;let R=r.$shouldOverrideDefaultCharacterSelection,L=r.$sliceSelectedTextNodeContent;r.$wrapNodes,r.createDOMRange;let I=r.createRectsFromDOMRange;r.getStyleObjectFromCSS,r.trimTextContentFromAnchor},63386:(e,t,n)=>{"use strict";let r=n(3643);function l(e,t){switch(r(e)){case"null":case"undefined":default:return!0;case"boolean":case"function":case"date":case"regexp":return!1;case"string":case"arguments":return 0===e.length;case"file":case"map":case"set":return 0===e.size;case"number":return!!t&&0===e;case"error":return""===e.message;case"array":for(let n of e)if(!l(n,t))return!1;return!0;case"object":for(let n of Object.keys(e))if(!l(e[n],t))return!1;return!0}}
2e.exports=(e,t)=>{let n=!!t&&t.omitZero,i=e=>{if(Array.isArray(e)&&(e=e.map(e=>i(e)).filter(e=>!l(e,n))),"object"===r(e)){let t={};for(let n of Object.keys(e)){let r=i(e[n]);void 0!==r&&(t[n]=r)}e=t}if(!l(e,n))return e},o=i(e);return void 0===o&&"object"===r(e)?{}:o}},70733:(e,t,n)=>{"use strict";n.d(t,{B9:()=>eg,HA:()=>ep,py:()=>e_});var r={};n.r(r),n.d(r,{$computeTableMap:()=>$,$createTableCellNode:()=>d,$createTableNode:()=>ef,$createTableNodeWithDimensions:()=>C,$createTableRowNode:()=>p,$createTableSelection:()=>J,$deleteTableColumn:()=>D,$deleteTableColumn__EXPERIMENTAL:()=>L,$deleteTableRow__EXPERIMENTAL:()=>R,$getElementForTableNode:()=>ed,$getNodeTriplet:()=>B,$getTableCellNodeFromLexicalNode:()=>v,$getTableCellNodeRect:()=>K,$getTableColumnIndexFromTableCellNode:()=>b,$getTableNodeFromLexicalNodeOrThrow:()=>N,$getTableRowIndexFromTableCellNode:()=>S,$getTableRowNodeFromTableCellNodeOrThrow:()=>T,$insertTableColumn:()=>A,$insertTableColumn__EXPERIMENTAL:()=>M,$insertTableRow:()=>w,$insertTableRow__EXPERIMENTAL:()=>k,$isTableCellNode:()=>c,$isTableNode:()=>eh,$isTableRowNode:()=>_,$isTableSelection:()=>z,$removeTableRowAtIndex:()=>E,$unmergeCell:()=>F,INSERT_TABLE_COMMAND:()=>f,TableCellHeaderStates:()=>s,TableCellNode:()=>a,TableNode:()=>eu,TableObserver:()=>H,TableRowNode:()=>h,applyTableHandlers:()=>U,getDOMCellFromTarget:()=>V,getTableObserverFromTableElement:()=>Y});var l=n(8179),i=n(35482);let o=/^(\d+(?:\.\d+)?)px$/,s={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1};class a extends i.fG{static getType(){return"tablecell"}static clone(e){let t=new a(e.__headerState,e.__colSpan,e.__width,e.__key);return t.__rowSpan=e.__rowSpan,t.__backgroundColor=e.__backgroundColor,t}static importDOM(){return{td:e=>({conversion:u,priority:0}),th:e=>({conversion:u,priority:0})}}static importJSON(e){let t=e.colSpan||1,n=e.rowSpan||1,r=d(e.headerState,t,e.width||void 0);return r.__rowSpan=n,r.__backgroundColor=e.backgroundColor||null,r}constructor(e=s.NO_STATUS,t=1,n,r){super(r),this.__colSpan=t,this.__rowSpan=1,this.__headerState=e,this.__width=n,this.__backgroundColor=null}createDOM(e){let t=document.createElement(this.getTag());return this.__width&&(t.style.width=`${this.__width}px`),this.__colSpan>1&&(t.colSpan=this.__colSpan),this.__rowSpan>1&&(t.rowSpan=this.__rowSpan),null!==this.__backgroundColor&&(t.style.backgroundColor=this.__backgroundColor),(0,l.ZB)(t,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),t}exportDOM(e){let{element:t}=super.exportDOM(e);if(t){let e=this.getParentOrThrow().getChildrenSize();t.style.border="1px solid black",this.__colSpan>1&&(t.colSpan=this.__colSpan),this.__rowSpan>1&&(t.rowSpan=this.__rowSpan),t.style.width=`${this.getWidth()||Math.max(90,700/e)}px`,t.style.verticalAlign="top",t.style.textAlign="start";let n=this.getBackgroundColor();null!==n?t.style.backgroundColor=n:this.hasHeader()&&(t.style.backgroundColor="#f2f3f5")}return{element:t}}exportJSON(){return{...super.exportJSON(),backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,type:"tablecell",width:this.getWidth()}}getColSpan(){return this.__colSpan}setColSpan(e){return this.getWritable().__colSpan=e,this}getRowSpan(){return this.__rowSpan}setRowSpan(e){return this.getWritable().__rowSpan=e,this}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(e){return this.getWritable().__headerState=e,this.__headerState}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){return this.getWritable().__width=e,this.__width}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){this.getWritable().__backgroundColor=e}toggleHeaderStyle(e){let t=this.getWritable();return(t.__headerState&e)===e?t.__headerState-=e:t.__headerState+=e,t}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return this.getLatest().__headerState!==s.NO_STATUS}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}}function u(e){let t,n=e.nodeName.toLowerCase();o.test(e.style.width)&&(t=parseFloat(e.style.width));let r=d("th"===n?s.ROW:s.NO_STATUS,e.colSpan,t);r.__rowSpan=e.rowSpan;let l=e.style.backgroundColor;return""!==l&&(r.__backgroundColor=l),{after:e=>(0===e.length&&e.push((0,i.lJ)()),e),forChild:(e,t)=>{if(c(t)&&!(0,i.ff)(e)){let t=(0,i.lJ)();return(0,i.wH)(e)&&"\n"===e.getTextContent()?null:(t.append(e),t)}return e},node:r}}function d(e,t=1,n){return(0,i.pT)(new a(e,t,n))}function c(e){return e instanceof a}let f=(0,i.gu)("INSERT_TABLE_COMMAND");class h extends i.fG{static getType(){return"tablerow"}static clone(e){return new h(e.__height,e.__key)}static importDOM(){return{tr:e=>({conversion:g,priority:0})}}static importJSON(e){return p(e.height)}constructor(e,t){super(t),this.__height=e}exportJSON(){return{...super.exportJSON(),...this.getHeight()&&{height:this.getHeight()},type:"tablerow",version:1}}createDOM(e){let t=document.createElement("tr");return this.__height&&(t.style.height=`${this.__height}px`),(0,l.ZB)(t,e.theme.tableRow),t}
2isShadowRoot(){return!0}setHeight(e){return this.getWritable().__height=e,this.__height}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}}function g(e){let t;return o.test(e.style.height)&&(t=parseFloat(e.style.height)),{node:p(t)}}function p(e){return(0,i.pT)(new h(e))}function _(e){return e instanceof h}var m=function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)};let y="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function C(e,t,n=!0){let r=ef();for(let l=0;l<e;l++){let e=p();for(let r=0;r<t;r++){let t=s.NO_STATUS;"object"==typeof n?(0===l&&n.rows&&(t|=s.ROW),0===r&&n.columns&&(t|=s.COLUMN)):n&&(0===l&&(t|=s.ROW),0===r&&(t|=s.COLUMN));let o=d(t),a=(0,i.lJ)();a.append((0,i.sT)()),o.append(a),e.append(o)}r.append(e)}return r}function v(e){let t=(0,l.Bt)(e,e=>c(e));return c(t)?t:null}function T(e){let t=(0,l.Bt)(e,e=>_(e));if(_(t))return t;throw Error("Expected table cell to be inside of table row.")}function N(e){let t=(0,l.Bt)(e,e=>eh(e));if(eh(t))return t;throw Error("Expected table cell to be inside of table.")}function S(e){let t=T(e);return N(t).getChildren().findIndex(e=>e.is(t))}function b(e){return T(e).getChildren().findIndex(t=>t.is(e))}function x(e,t){let n=N(e),{x:r,y:l}=n.getCordsFromCellNode(e,t);return{above:n.getCellNodeFromCords(r,l-1,t),below:n.getCellNodeFromCords(r,l+1,t),left:n.getCellNodeFromCords(r-1,l,t),right:n.getCellNodeFromCords(r+1,l,t)}}function E(e,t){let n=e.getChildren();if(t>=n.length||t<0)throw Error("Expected table cell to be inside of table row.");return n[t].remove(),e}function w(e,t,n=!0,r,l){let o=e.getChildren();if(t>=o.length||t<0)throw Error("Table row target index out of range");let a=o[t];if(!_(a))throw Error("Row before insertion index does not exist.");for(let e=0;e<r;e++){let e=a.getChildren(),t=e.length,r=p();for(let n=0;n<t;n++){let t=e[n];c(t)||m(12);let{above:o,below:a}=x(t,l),u=s.NO_STATUS,f=o&&o.getWidth()||a&&a.getWidth()||void 0;(o&&o.hasHeaderState(s.COLUMN)||a&&a.hasHeaderState(s.COLUMN))&&(u|=s.COLUMN);let h=d(u,1,f);h.append((0,i.lJ)()),r.append(h)}n?a.insertAfter(r):a.insertBefore(r)}return e}let O=(e,t)=>e===s.BOTH||e===t?t:s.NO_STATUS;function k(e=!0){let t=(0,i.vJ)();(0,i.I2)(t)||z(t)||m(118);let[n,,r]=B(t.focus.getNode()),[l,o]=$(r,n,n),a=l[0].length,{startRow:u}=o;if(e){let e=u+n.__rowSpan-1,t=l[e],o=p();for(let n=0;n<a;n++){let{cell:r,startRow:l}=t[n];if(l+r.__rowSpan-1<=e){let e=O(t[n].cell.__headerState,s.COLUMN);o.append(d(e).append((0,i.lJ)()))}else r.setRowSpan(r.__rowSpan+1)}let c=r.getChildAtIndex(e);_(c)||m(145),c.insertAfter(o)}else{let e=l[u],t=p();for(let n=0;n<a;n++){let{cell:r,startRow:l}=e[n];if(l===u){let r=O(e[n].cell.__headerState,s.COLUMN);t.append(d(r).append((0,i.lJ)()))}else r.setRowSpan(r.__rowSpan+1)}let n=r.getChildAtIndex(u);_(n)||m(145),n.insertBefore(t)}}function A(e,t,n=!0,r,l){let o=e.getChildren(),a=[];for(let e=0;e<o.length;e++){let n=o[e];if(_(n))for(let e=0;e<r;e++){let e=n.getChildren();if(t>=e.length||t<0)throw Error("Table column target index out of range");let r=e[t];c(r)||m(12);let{left:o,right:u}=x(r,l),f=s.NO_STATUS;(o&&o.hasHeaderState(s.ROW)||u&&u.hasHeaderState(s.ROW))&&(f|=s.ROW);let h=d(f);h.append((0,i.lJ)()),a.push({newTableCell:h,targetCell:r})}}return a.forEach(({newTableCell:e,targetCell:t})=>{n?t.insertAfter(e):t.insertBefore(e)}),e}function M(e=!0){let t=(0,i.vJ)();(0,i.I2)(t)||z(t)||m(118);let n=t.anchor.getNode(),r=t.focus.getNode(),[l]=B(n),[o,,a]=B(r),[u,c,f]=$(a,o,l),h=u.length,g=e?Math.max(c.startColumn,f.startColumn):Math.min(c.startColumn,f.startColumn),p=e?g+o.__colSpan-1:g-1,y=a.getFirstChild();_(y)||m(120);let C=null;function v(e=s.NO_STATUS){let t=d(e).append((0,i.lJ)());return null===C&&(C=t),t}let T=y;t:for(let e=0;e<h;e++){if(0!==e){let e=T.getNextSibling();_(e)||m(121),T=e}let t=u[e],n=O(t[p<0?0:p].cell.__headerState,s.ROW);if(p<0){P(T,v(n));continue}let{cell:r,startColumn:l,startRow:i}=t[p];if(l+r.__colSpan-1<=p){let l=r,o=i,s=p;for(;o!==e&&l.__rowSpan>1;
2){if(!((s-=r.__colSpan)>=0)){T.append(v(n));continue t}{let{cell:e,startRow:n}=t[s];l=e,o=n}}l.insertAfter(v(n))}else r.setColSpan(r.__colSpan+1)}null!==C&&I(C)}function D(e,t){let n=e.getChildren();for(let e=0;e<n.length;e++){let r=n[e];if(_(r)){let e=r.getChildren();if(t>=e.length||t<0)throw Error("Table column target index out of range");e[t].remove()}}return e}function R(){let e=(0,i.vJ)();(0,i.I2)(e)||z(e)||m(118);let t=e.anchor.getNode(),n=e.focus.getNode(),[r,,l]=B(t),[o]=B(n),[s,a,u]=$(l,r,o),{startRow:d}=a,{startRow:c}=u,f=c+o.__rowSpan-1;if(s.length===f-d+1)return void l.remove();let h=s[0].length,g=s[f+1],p=l.getChildAtIndex(f+1);for(let e=f;e>=d;e--){for(let t=h-1;t>=0;t--){let{cell:n,startRow:r,startColumn:l}=s[e][t];if(l===t&&(e===d&&r<d&&n.setRowSpan(n.__rowSpan-(r-d)),r>=d&&r+n.__rowSpan-1>f))if(n.setRowSpan(n.__rowSpan-(f-r+1)),null===p&&m(122),0===t)P(p,n);else{let{cell:e}=g[t-1];e.insertAfter(n)}}let t=l.getChildAtIndex(e);_(t)||m(123,String(e)),t.remove()}if(void 0!==g){let{cell:e}=g[0];I(e)}else{let{cell:e}=s[d-1][0];I(e)}}function L(){let e=(0,i.vJ)();(0,i.I2)(e)||z(e)||m(118);let t=e.anchor.getNode(),n=e.focus.getNode(),[r,,l]=B(t),[o]=B(n),[s,a,u]=$(l,r,o),{startColumn:d}=a,{startRow:c,startColumn:f}=u,h=Math.min(d,f),g=Math.max(d+r.__colSpan-1,f+o.__colSpan-1),p=g-h+1;if(s[0].length===g-h+1)return l.selectPrevious(),void l.remove();let _=s.length;for(let e=0;e<_;e++)for(let t=h;t<=g;t++){let{cell:n,startColumn:r}=s[e][t];if(r<h){if(t===h){let e=h-r;n.setColSpan(n.__colSpan-Math.min(p,n.__colSpan-e))}}else if(r+n.__colSpan-1>g){if(t===g){let e=g-r+1;n.setColSpan(n.__colSpan-e)}}else n.remove()}let y=s[c],C=y[f+o.__colSpan];if(void 0!==C){let{cell:e}=C;I(e)}else{let{cell:e}=y[f-1];I(e)}}function I(e){let t=e.getFirstDescendant();null==t?e.selectStart():t.getParentOrThrow().selectStart()}function P(e,t){let n=e.getFirstChild();null!==n?n.insertBefore(t):e.append(t)}function F(){let e=(0,i.vJ)();(0,i.I2)(e)||z(e)||m(118);let[t,n,r]=B(e.anchor.getNode()),l=t.__colSpan,o=t.__rowSpan;if(l>1){for(let e=1;e<l;e++)t.insertAfter(d(s.NO_STATUS));t.setColSpan(1)}if(o>1){let e,[i,a]=$(r,t,t),{startColumn:u,startRow:c}=a;for(let t=1;t<o;t++){let r=c+t,o=i[r];_(e=(e||n).getNextSibling())||m(125);let a=null;for(let e=0;e<u;e++){let t=o[e],n=t.cell;t.startRow===r&&(a=n),n.__colSpan>1&&(e+=n.__colSpan-1)}if(null===a)for(let t=0;t<l;t++)P(e,d(s.NO_STATUS));else for(let e=0;e<l;e++)a.insertAfter(d(s.NO_STATUS))}t.setRowSpan(1)}}function $(e,t,n){let r=[],l=null,i=null,o=e.getChildren();for(let e=0;e<o.length;e++){let u=o[e];_(u)||m(146);let d=u.getChildren(),f=0;for(let o of d){var s,a;for(c(o)||m(147);s=e,a=f,void 0!==r[s]&&void 0!==r[s][a];)f++;(function(e,o,s){let a={cell:s,startColumn:o,startRow:e},u=s.__rowSpan,d=s.__colSpan;for(let t=0;t<u;t++){void 0===r[e+t]&&(r[e+t]=[]);for(let n=0;n<d;n++)r[e+t][o+n]=a}t.is(s)&&(l=a),n.is(s)&&(i=a)})(e,f,o),f+=o.__colSpan}}return null===l&&m(110),null===i&&m(111),[r,l,i]}function B(e){let t;if(e instanceof a)t=e;else if("__type"in e){let n=(0,l.Bt)(e,c);c(n)||m(148),t=n}else{let n=(0,l.Bt)(e.getNode(),c);c(n)||m(148),t=n}let n=t.getParent();_(n)||m(149);let r=n.getParent();return eh(r)||m(150),[t,n,r]}function K(e){let[t,,n]=B(e),r=n.getChildren(),l=r.length,i=r[0].getChildren().length,o=Array(l);for(let e=0;e<l;e++)o[e]=Array(i);for(let e=0;e<l;e++){let n=r[e].getChildren(),l=0;for(let r=0;r<n.length;r++){for(;o[e][l];)l++;let i=n[r],s=i.__rowSpan||1,a=i.__colSpan||1;for(let t=0;t<s;t++)for(let n=0;n<a;n++)o[e+t][l+n]=i;if(t===i)return{colSpan:a,columnIndex:l,rowIndex:e,rowSpan:s};l+=a}}return null}class W{constructor(e,t,n){this.anchor=t,this.focus=n,t._selection=this,n._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=e}getStartEndPoints(){return[this.anchor,this.focus]}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!z(e)&&this.tableKey===e.tableKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)}set(e,t,n){this.dirty=!0,this.tableKey=e,this.anchor.key=t,this.focus.key=n,this._cachedNodes=null}clone(){return new W(this.tableKey,this.anchor,this.focus)}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let t=this.focus.getNode();(0,i.ff)(t)||m(151),(0,i.C)(t.select(0,t.getChildrenSize())).insertNodes(e)}getShape(){let e=(0,i.ns)(this.anchor.key);c(e)||m(152);let t=K(e);null===t&&m(153);let n=(0,i.ns)(this.focus.key);c(n)||m(154);let r=K(n);null===r&&m(155);let l=Math.min(t.columnIndex,r.columnIndex),o=Math.max(t.columnIndex,r.columnIndex),s=Math.min(t.rowIndex,r.rowIndex),a=Math.max(t.rowIndex,r.rowIndex);return{fromX:Math.min(l,o),fromY:Math.min(s,a),toX:Math.max(l,o),toY:Math.max(s,a)}}getNodes(){let e=this._cachedNodes;if(null!==e)return e;let t=this.anchor.getNode(),n=this.focus.getNode(),r=(0,l.Bt)(t,c),o=(0,l.Bt)(n,c);c(r)||m(152),c(o)||m(154);let s=r.getParent();_(s)||m(156);let a=s.getParent();eh(a)||m(157);let u=o.getParents()[1];if(u!==a){if(a.isParentOf(o)){let e=u.getParent();null==e&&m(159),this.set(this.tableKey,o.getKey(),e.getKey())}else{let e=a.getParent();null==e&&m(158),this.set(this.tableKey,e.getKey(),o.getKey())}return this.getNodes()}let[d,f,h]=$(a,r,o),g=Math.min(f.startColumn,h.startColumn),p=Math.min(f.startRow,h.startRow),y=Math.max(f.startColumn+f.cell.__colSpan-1,h.startColumn+h.cell.__colSpan-1),C=Math.max(f.startRow+f.cell.__rowSpan-1,h.startRow+h.cell.__rowSpan-1),v=g,T=p,N=g,S=p;function b(e){let{cell:t,startColumn:n,startRow:r}=e;g=Math.min(g,n),p=Math.min(p,r),y=Math.max(y,n+t.__colSpan-1),C=Math.max(C,r+t.__rowSpan-1)}for(;g<v||p<T||y>N||C>S;){if(g<v){let e=S-T,t=v-1;for(let n=0;n<=e;n++)b(d[T+n][t]);v=t}if(p<T){let e=N-v,t=T-1;for(let n=0;n<=e;n++)b(d[t][v+n]);T=t}if(y>N){let e=S-T,t=N+1;for(let n=0;n<=e;n++)b(d[T+n][t]);N=t}if(C>S){let e=N-v,t=S+1;for(let n=0;n<=e;n++)b(d[t][v+n]);S=t}}let x=[a],E=null;for(let e=p;e<=C;e++)for(let t=g;t<=y;t++){let{cell:n}=d[e][t],r=n.getParent();_(r)||m(160),r!==E&&x.push(r),x.push(n,...function(e){let t=[],n=[e];for(;n.length>0;){let r=n.pop();void 0===r&&m(112),(0,i.ff)(r)&&n.unshift(...r.getChildren()),r!==e&&t.push(r)}return t}(n)),E=r}return(0,i.Gc)()||(this._cachedNodes=x),x}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}}function z(e){return e instanceof W}function J(){return new W("root",(0,i.z8)("root",0,"element"),(0,i.z8)("root",0,"element"))}class H{constructor(e,t){this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.listenersToRemove=new Set,this.tableNodeKey=t,this.editor=e,this.table={columns:0,domRows:[],rows:0},this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.trackTable()}getTable(){return this.table}
2removeListeners(){Array.from(this.listenersToRemove).forEach(e=>e())}trackTable(){let e=new MutationObserver(e=>{this.editor.update(()=>{let t=!1;for(let n=0;n<e.length;n++){let r=e[n].target.nodeName;if("TABLE"===r||"TR"===r){t=!0;break}}if(!t)return;let n=this.editor.getElementByKey(this.tableNodeKey);if(!n)throw Error("Expected to find TableElement in DOM");this.table=G(n)})});this.editor.update(()=>{let t=this.editor.getElementByKey(this.tableNodeKey);if(!t)throw Error("Expected to find TableElement in DOM");this.table=G(t),e.observe(t,{childList:!0,subtree:!0})})}clearHighlight(){let e=this.editor;this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.enableHighlightStyle(),e.update(()=>{if(!eh((0,i.ns)(this.tableNodeKey)))throw Error("Expected TableNode.");let t=e.getElementByKey(this.tableNodeKey);if(!t)throw Error("Expected to find TableElement in DOM");Z(e,G(t),null),(0,i.n1)(null),e.dispatchCommand(i.Mv,void 0)})}enableHighlightStyle(){let e=this.editor;e.update(()=>{let t=e.getElementByKey(this.tableNodeKey);if(!t)throw Error("Expected to find TableElement in DOM");(0,l.HE)(t,e._config.theme.tableSelection),t.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1})}disableHighlightStyle(){let e=this.editor;e.update(()=>{let t=e.getElementByKey(this.tableNodeKey);if(!t)throw Error("Expected to find TableElement in DOM");(0,l.ZB)(t,e._config.theme.tableSelection),this.hasHijackedSelectionStyles=!0})}updateTableTableSelection(e){if(null!==e&&e.tableKey===this.tableNodeKey){let t=this.editor;this.tableSelection=e,this.isHighlightingCells=!0,this.disableHighlightStyle(),Z(t,this.table,this.tableSelection)}else null==e?this.clearHighlight():(this.tableNodeKey=e.tableKey,this.updateTableTableSelection(e))}setFocusCellForSelection(e,t=!1){let n=this.editor;n.update(()=>{var r;if(!eh((0,i.ns)(this.tableNodeKey)))throw Error("Expected TableNode.");if(!n.getElementByKey(this.tableNodeKey))throw Error("Expected to find TableElement in DOM");let l=e.x,o=e.y;if(this.focusCell=e,null!==this.anchorCell){let e=(r=n._window,y?(r||window).getSelection():null);e&&e.setBaseAndExtent(this.anchorCell.elem,0,this.focusCell.elem,0)}if(this.isHighlightingCells||this.anchorX===l&&this.anchorY===o&&!t){if(l===this.focusX&&o===this.focusY)return}else this.isHighlightingCells=!0,this.disableHighlightStyle();if(this.focusX=l,this.focusY=o,this.isHighlightingCells){let t=(0,i.xL)(e.elem);if(null!=this.tableSelection&&null!=this.anchorCellNodeKey&&c(t)){let e=t.getKey();this.tableSelection=this.tableSelection.clone()||J(),this.focusCellNodeKey=e,this.tableSelection.set(this.tableNodeKey,this.anchorCellNodeKey,this.focusCellNodeKey),(0,i.n1)(this.tableSelection),n.dispatchCommand(i.Mv,void 0),Z(n,this.table,this.tableSelection)}}})}setAnchorCellForSelection(e){this.isHighlightingCells=!1,this.anchorCell=e,this.anchorX=e.x,this.anchorY=e.y,this.editor.update(()=>{let t=(0,i.xL)(e.elem);if(c(t)){let e=t.getKey();this.tableSelection=null!=this.tableSelection?this.tableSelection.clone():J(),this.anchorCellNodeKey=e}})}formatCells(e){this.editor.update(()=>{let t=(0,i.vJ)();z(t)||m(11);let n=(0,i.uT)(),r=n.anchor,l=n.focus;t.getNodes().forEach(t=>{c(t)&&0!==t.getTextContentSize()&&(r.set(t.getKey(),0,"element"),l.set(t.getKey(),t.getChildrenSize(),"element"),n.formatText(e))}),(0,i.n1)(t),this.editor.dispatchCommand(i.Mv,void 0)})}clearText(){let e=this.editor;e.update(()=>{let t=(0,i.ns)(this.tableNodeKey);if(!eh(t))throw Error("Expected TableNode.");let n=(0,i.vJ)();z(n)||m(11);let r=n.getNodes().filter(c);r.length!==this.table.columns*this.table.rows?(r.forEach(e=>{if((0,i.ff)(e)){let t=(0,i.lJ)(),n=(0,i.sT)();
2t.append(n),e.append(t),e.getChildren().forEach(e=>{e!==t&&e.remove()})}}),Z(e,this.table,null),(0,i.n1)(null),e.dispatchCommand(i.Mv,void 0)):(t.selectPrevious(),t.remove(),(0,i.Ni)().selectStart())})}}let j="__lexicalTableSelection";function U(e,t,n,r){let o=n.getRootElement();if(null===o)throw Error("No root element.");let s=new H(n,e.getKey()),a=n._window||window;t[j]=s,t.addEventListener("mousedown",e=>{setTimeout(()=>{if(0!==e.button||!a)return;let t=V(e.target);null!==t&&(ea(e),s.setAnchorCellForSelection(t));let n=()=>{a.removeEventListener("mouseup",n),a.removeEventListener("mousemove",r)},r=e=>{let t=V(e.target);null===t||s.anchorX===t.x&&s.anchorY===t.y||(e.preventDefault(),s.setFocusCellForSelection(t))};a.addEventListener("mouseup",n),a.addEventListener("mousemove",r)},0)});let u=e=>{0===e.button&&n.update(()=>{let t=(0,i.vJ)(),n=e.target;z(t)&&t.tableKey===s.tableNodeKey&&o.contains(n)&&s.clearHighlight()})};a.addEventListener("mousedown",u),s.listenersToRemove.add(()=>a.removeEventListener("mousedown",u)),s.listenersToRemove.add(n.registerCommand(i.bb,t=>es(n,t,"down",e,s),i.Wg)),s.listenersToRemove.add(n.registerCommand(i.UD,t=>es(n,t,"up",e,s),i.Wg)),s.listenersToRemove.add(n.registerCommand(i.AX,t=>es(n,t,"backward",e,s),i.Wg)),s.listenersToRemove.add(n.registerCommand(i.JM,t=>es(n,t,"forward",e,s),i.Wg)),s.listenersToRemove.add(n.registerCommand(i.Q$,e=>{let t=(0,i.vJ)();if(z(t)){let n=(0,l.Bt)(t.focus.getNode(),c);if(c(n))return ea(e),n.selectEnd(),!0}return!1},i.Wg)),[i.hi,i.vi,i.Wu].forEach(t=>{s.listenersToRemove.add(n.registerCommand(t,()=>{let n=(0,i.vJ)();if(!ee(n,e))return!1;if(z(n))return s.clearText(),!0;if((0,i.I2)(n)){let r=(0,l.Bt)(n.anchor.getNode(),e=>c(e));if(!c(r))return!1;let o=n.anchor.getNode(),a=n.focus.getNode(),u=e.isParentOf(o),d=e.isParentOf(a);if(u&&!d||d&&!u)return s.clearText(),!0;let f=(0,l.Bt)(n.anchor.getNode(),e=>(0,i.ff)(e)),h=f&&(0,l.Bt)(f,e=>(0,i.ff)(e)&&c(e.getParent()));if(!(0,i.ff)(h)||!(0,i.ff)(f))return!1;if(t===i.vi&&null===h.getPreviousSibling())return!0;if((t===i.Wu||t===i.hi)&&n.isCollapsed()&&0===n.anchor.offset&&f!==h){let e=f.getChildren(),t=(0,i.lJ)();return e.forEach(e=>t.append(e)),f.replace(t),f.getWritable().__parent=r.getKey(),!0}}return!1},i.d))});let d=t=>{let n=(0,i.vJ)();if(!ee(n,e))return!1;if(z(n))return t.preventDefault(),t.stopPropagation(),s.clearText(),!0;if((0,i.I2)(n)){let e=(0,l.Bt)(n.anchor.getNode(),e=>c(e));c(e)}return!1};function f(t){let n=e.getCordsFromCellNode(t,s.table);return e.getDOMCellFromCordsOrThrow(n.x,n.y,s.table)}return s.listenersToRemove.add(n.registerCommand(i.gC,d,i.d)),s.listenersToRemove.add(n.registerCommand(i.w$,d,i.d)),s.listenersToRemove.add(n.registerCommand(i.mB,t=>{let n=(0,i.vJ)();if(!ee(n,e))return!1;if(z(n))return s.formatCells(t),!0;if((0,i.I2)(n)){let e=(0,l.Bt)(n.anchor.getNode(),e=>c(e));c(e)}return!1},i.d)),s.listenersToRemove.add(n.registerCommand(i.fU,t=>{let n=(0,i.vJ)();if(!z(n)||!ee(n,e))return!1;let r=n.anchor.getNode(),l=n.focus.getNode();if(!c(r)||!c(l))return!1;let[o,s,a]=$(e,r,l),u=Math.max(s.startRow,a.startRow),d=Math.max(s.startColumn,a.startColumn),f=Math.min(s.startRow,a.startRow),h=Math.min(s.startColumn,a.startColumn);for(let e=f;e<=u;e++)for(let n=h;n<=d;n++){let r=o[e][n].cell;r.setFormat(t);let l=r.getChildren();for(let e=0;e<l.length;e++){let n=l[e];(0,i.ff)(n)&&!n.isInline()&&n.setFormat(t)}}return!0},i.d)),s.listenersToRemove.add(n.registerCommand(i.bM,t=>{let n=(0,i.vJ)();if(!ee(n,e))return!1;if(z(n))return s.clearHighlight(),!1;if((0,i.I2)(n)){let e=(0,l.Bt)(n.anchor.getNode(),e=>c(e));c(e)}return!1},i.d)),r&&s.listenersToRemove.add(n.registerCommand(i.OX,t=>{let n=(0,i.vJ)();if(!(0,i.I2)(n)||!n.isCollapsed()||!ee(n,e))return!1;let r=ei(n.anchor.getNode());if(null===r)return!1;ea(t);let l=e.getCordsFromCellNode(r,s.table);return Q(s,e,l.x,l.y,t.shiftKey?"backward":"forward"),!0},i.d)),s.listenersToRemove.add(n.registerCommand(i.$7,t=>e.isSelected(),i.Wg)),s.listenersToRemove.add(n.registerCommand(i.oq,e=>{let{nodes:t,selection:n}=e,r=n.getStartEndPoints(),o=z(n),s=(0,i.I2)(n)&&null!==(0,l.Bt)(n.anchor.getNode(),e=>c(e))&&null!==(0,l.Bt)(n.focus.getNode(),e=>c(e))||o;if(1!==t.length||!eh(t[0])||!s||null===r)return!1;let[a]=r,u=t[0],d=u.getChildren(),f=u.getFirstChildOrThrow().getChildrenSize(),h=u.getChildrenSize(),g=(0,l.Bt)(a.getNode(),e=>c(e)),p=g&&(0,l.Bt)(g,e=>_(e)),m=p&&(0,l.Bt)(p,e=>eh(e));if(!c(g)||!_(p)||!eh(m))return!1;let y=p.getIndexWithinParent(),C=Math.min(m.getChildrenSize()-1,y+h-1),v=g.getIndexWithinParent(),T=Math.min(p.getChildrenSize()-1,v+f-1),N=Math.min(v,T),S=Math.min(y,C),b=Math.max(v,T),x=Math.max(y,C),E=m.getChildren(),w,O,k=0;for(let e=S;e<=x;e++){let t=E[e];if(!_(t))return!1;let n=d[k];if(!_(n))return!1;let r=t.getChildren(),l=n.getChildren(),o=0;for(let t=N;t<=b;t++){let n=r[t];if(!c(n))return!1;let s=l[o];if(!c(s))return!1;e===S&&t===N?w=n.getKey():e===x&&t===b&&(O=n.getKey());let a=n.getChildren();
2s.getChildren().forEach(e=>{(0,i.kF)(e)&&(0,i.lJ)().append(e),n.append(e)}),a.forEach(e=>e.remove()),o++}k++}if(w&&O){let e=J();e.set(t[0].getKey(),w,O),(0,i.n1)(e)}return!0},i.d)),s.listenersToRemove.add(n.registerCommand(i.Mv,()=>{let t=(0,i.vJ)(),r=(0,i.S1)();if((0,i.I2)(t)){let{anchor:r,focus:l}=t,o=r.getNode(),a=l.getNode(),u=ei(o),d=ei(a),c=!(!u||!e.is(eo(u))),h=!(!d||!e.is(eo(d))),g=t.isBackward();if(c!==h){let r=t.clone();r.focus.set(e.getKey(),g?0:e.getChildrenSize(),"element"),(0,i.n1)(r),q(n,s)}else c&&h&&(u.is(d)||(s.setAnchorCellForSelection(f(u)),s.setFocusCellForSelection(f(d),!0)))}return t&&!t.is(r)&&(z(t)||z(r))&&s.tableSelection&&!s.tableSelection.is(r)?z(t)&&t.tableKey===s.tableNodeKey?s.updateTableTableSelection(t):!z(t)&&z(r)&&r.tableKey===s.tableNodeKey&&s.updateTableTableSelection(null):s.hasHijackedSelectionStyles&&!e.isSelected()?(s.enableHighlightStyle(),X(s.table,e=>{let t=e.elem;e.highlighted=!1,el(n,e),t.getAttribute("style")||t.removeAttribute("style")})):!s.hasHijackedSelectionStyles&&e.isSelected()&&q(n,s),!1},i.d)),s}function Y(e){return e[j]}function V(e){let t=e;for(;null!=t;){let e=t.nodeName;if("TD"===e||"TH"===e){let e=t._cell;return void 0===e?null:e}t=t.parentNode}return null}function G(e){let t=[],n={columns:0,domRows:t,rows:0},r=e.firstChild,l=0,i=0;for(t.length=0;null!=r;){let e=r.nodeName;if("TD"===e||"TH"===e){let e={elem:r,hasBackgroundColor:""!==r.style.backgroundColor,highlighted:!1,x:l,y:i};r._cell=e;let n=t[i];void 0===n&&(n=t[i]=[]),n[l]=e}else{let e=r.firstChild;if(null!=e){r=e;continue}}let n=r.nextSibling;if(null!=n){l++,r=n;continue}let o=r.parentNode;if(null!=o){let e=o.nextSibling;if(null==e)break;i++,l=0,r=e}}return n.columns=l+1,n.rows=i+1,n}function Z(e,t,n){let r=new Set(n?n.getNodes():[]);X(t,(t,n)=>{let l=t.elem;r.has(n)?(t.highlighted=!0,er(e,t)):(t.highlighted=!1,el(e,t),l.getAttribute("style")||l.removeAttribute("style"))})}function X(e,t){let{domRows:n}=e;for(let e=0;e<n.length;e++){let r=n[e];if(r)for(let n=0;n<r.length;n++){let l=r[n];if(!l)continue;let o=(0,i.xL)(l.elem);null!==o&&t(l,o,{x:n,y:e})}}}function q(e,t){t.disableHighlightStyle(),X(t.table,t=>{t.highlighted=!0,er(e,t)})}let Q=(e,t,n,r,l)=>{let i="forward"===l;switch(l){case"backward":case"forward":return n!==(i?e.table.columns-1:0)?et(t.getCellNodeFromCordsOrThrow(n+(i?1:-1),r,e.table),i):r!==(i?e.table.rows-1:0)?et(t.getCellNodeFromCordsOrThrow(i?0:e.table.columns-1,r+(i?1:-1),e.table),i):i?t.selectNext():t.selectPrevious(),!0;case"up":return 0!==r?et(t.getCellNodeFromCordsOrThrow(n,r-1,e.table),!1):t.selectPrevious(),!0;case"down":return r!==e.table.rows-1?et(t.getCellNodeFromCordsOrThrow(n,r+1,e.table),!0):t.selectNext(),!0;default:return!1}};function ee(e,t){if((0,i.I2)(e)||z(e)){let n=t.isParentOf(e.anchor.getNode()),r=t.isParentOf(e.focus.getNode());return n&&r}return!1}function et(e,t){t?e.selectStart():e.selectEnd()}let en="172,206,247";function er(e,t){let n=t.elem,r=(0,i.xL)(n);c(r)||m(131),null===r.getBackgroundColor()?n.style.setProperty("background-color",`rgb(${en})`):n.style.setProperty("background-image",`linear-gradient(to right, rgba(${en},0.85), rgba(${en},0.85))`),n.style.setProperty("caret-color","transparent")}function el(e,t){let n=t.elem,r=(0,i.xL)(n);c(r)||m(131),null===r.getBackgroundColor()&&n.style.removeProperty("background-color"),n.style.removeProperty("background-image"),n.style.removeProperty("caret-color")}function ei(e){let t=(0,l.Bt)(e,c);return c(t)?t:null}function eo(e){let t=(0,l.Bt)(e,eh);return eh(t)?t:null}function es(e,t,n,r,o){let s=(0,i.vJ)();if(!ee(s,r))return!1;if((0,i.I2)(s)&&s.isCollapsed()){let i;if("backward"===n||"forward"===n)return!1;let{anchor:a,focus:u}=s,d=(0,l.Bt)(a.getNode(),c),f=(0,l.Bt)(u.getNode(),c);if(!c(d)||!d.is(f))return!1;let h=eo(d);if(h!==r&&null!=h){let r=e.getElementByKey(h.getKey());if(null!=r)return o.table=G(r),es(e,t,n,h,o)}let g=e.getElementByKey(d.__key),p=e.getElementByKey(a.key);if(null==p||null==g)return!1;if("element"===a.type)i=p.getBoundingClientRect();else{let e=window.getSelection();if(null===e||0===e.rangeCount)return!1;i=e.getRangeAt(0).getBoundingClientRect()}let _="up"===n?d.getFirstChild():d.getLastChild();if(null==_)return!1;let m=e.getElementByKey(_.__key);if(null==m)return!1;let y=m.getBoundingClientRect();if("up"===n?y.top>i.top-i.height:i.bottom+i.height>y.bottom){ea(t);let e=r.getCordsFromCellNode(d,o.table);if(!t.shiftKey)return Q(o,r,e.x,e.y,n);{let t=r.getDOMCellFromCordsOrThrow(e.x,e.y,o.table);
2o.setAnchorCellForSelection(t),o.setFocusCellForSelection(t,!0)}return!0}}else if(z(s)){let{anchor:i,focus:a}=s,u=(0,l.Bt)(i.getNode(),c),d=(0,l.Bt)(a.getNode(),c),[f]=s.getNodes(),h=e.getElementByKey(f.getKey());if(!c(u)||!c(d)||!eh(f)||null==h)return!1;o.updateTableTableSelection(s);let g=G(h),p=r.getCordsFromCellNode(u,g),_=r.getDOMCellFromCordsOrThrow(p.x,p.y,g);if(o.setAnchorCellForSelection(_),ea(t),t.shiftKey){let e=r.getCordsFromCellNode(d,g);return((e,t,n,r,l)=>{let i="forward"===l;switch(l){case"backward":case"forward":return n!==(i?e.table.columns-1:0)&&e.setFocusCellForSelection(t.getDOMCellFromCordsOrThrow(n+(i?1:-1),r,e.table)),!0;case"up":return 0!==r&&(e.setFocusCellForSelection(t.getDOMCellFromCordsOrThrow(n,r-1,e.table)),!0);case"down":return r!==e.table.rows-1&&(e.setFocusCellForSelection(t.getDOMCellFromCordsOrThrow(n,r+1,e.table)),!0);default:return!1}})(o,f,e.x,e.y,n)}return d.selectEnd(),!0}return!1}function ea(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}class eu extends i.fG{static getType(){return"table"}static clone(e){return new eu(e.__key)}static importDOM(){return{table:e=>({conversion:ec,priority:1})}}static importJSON(e){return ef()}constructor(e){super(e)}exportJSON(){return{...super.exportJSON(),type:"table",version:1}}createDOM(e,t){let n=document.createElement("table");return(0,l.ZB)(n,e.theme.table),n}updateDOM(){return!1}exportDOM(e){return{...super.exportDOM(e),after:e=>{if(e){let t=e.cloneNode(),n=document.createElement("colgroup"),r=document.createElement("tbody");(0,l.sb)(e)&&r.append(...e.children);let i=this.getFirstChildOrThrow();if(!_(i))throw Error("Expected to find row node.");let o=i.getChildrenSize();for(let e=0;e<o;e++){let e=document.createElement("col");n.append(e)}return t.replaceChildren(n,r),t}}}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,t){let{rows:n,domRows:r}=t;for(let t=0;t<n;t++){let n=r[t];if(null==n)continue;let l=n.findIndex(t=>{if(!t)return;let{elem:n}=t;return(0,i.xL)(n)===e});if(-1!==l)return{x:l,y:t}}throw Error("Cell not found in table.")}getDOMCellFromCords(e,t,n){let{domRows:r}=n,l=r[t];if(null==l)return null;let i=l[e];return null==i?null:i}getDOMCellFromCordsOrThrow(e,t,n){let r=this.getDOMCellFromCords(e,t,n);if(!r)throw Error("Cell not found at cords.");return r}getCellNodeFromCords(e,t,n){let r=this.getDOMCellFromCords(e,t,n);if(null==r)return null;let l=(0,i.xL)(r.elem);return c(l)?l:null}getCellNodeFromCordsOrThrow(e,t,n){let r=this.getCellNodeFromCords(e,t,n);if(!r)throw Error("Node at cords not TableCellNode.");return r}canSelectBefore(){return!0}canIndent(){return!1}}function ed(e,t){let n=e.getElementByKey(t.getKey());if(null==n)throw Error("Table Element Not Found");return G(n)}function ec(e){return{node:ef()}}function ef(){return(0,i.pT)(new eu)}function eh(e){return e instanceof eu}r.$computeTableMap,r.$createTableCellNode,r.$createTableNode,r.$createTableNodeWithDimensions,r.$createTableRowNode,r.$createTableSelection,r.$deleteTableColumn,r.$deleteTableColumn__EXPERIMENTAL,r.$deleteTableRow__EXPERIMENTAL,r.$getElementForTableNode,r.$getNodeTriplet,r.$getTableCellNodeFromLexicalNode,r.$getTableCellNodeRect,r.$getTableColumnIndexFromTableCellNode,r.$getTableNodeFromLexicalNodeOrThrow,r.$getTableRowIndexFromTableCellNode,r.$getTableRowNodeFromTableCellNodeOrThrow,r.$insertTableColumn,r.$insertTableColumn__EXPERIMENTAL,r.$insertTableRow,r.$insertTableRow__EXPERIMENTAL,r.$isTableCellNode,r.$isTableNode,r.$isTableRowNode,r.$isTableSelection,r.$removeTableRowAtIndex,r.$unmergeCell,r.INSERT_TABLE_COMMAND,r.TableCellHeaderStates;let eg=r.TableCellNode,ep=r.TableNode;r.TableObserver;let e_=r.TableRowNode;r.applyTableHandlers,r.getDOMCellFromTarget,r.getTableObserverFromTableElement},73533:(e,t,n)=>{"use strict";n.d(t,{a:()=>u});var r={};n.r(r),n.d(r,{ContentEditable:()=>a});var l=n(43624),i=n(12115);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;function a({ariaActiveDescendant:e,ariaAutoComplete:t,ariaControl
2s:n,ariaDescribedBy:r,ariaExpanded:a,ariaLabel:u,ariaLabelledBy:d,ariaMultiline:c,ariaOwns:f,ariaRequired:h,autoCapitalize:g,className:p,id:_,role:m="textbox",spellCheck:y=!0,style:C,tabIndex:v,"data-testid":T,...N}){let[S]=(0,l.DF)(),[b,x]=(0,i.useState)(!1),E=(0,i.useCallback)(e=>{e&&e.ownerDocument&&e.ownerDocument.defaultView&&S.setRootElement(e)},[S]);return s(()=>(x(S.isEditable()),S.registerEditableListener(e=>{x(e)})),[S]),i.createElement("div",o({},N,{"aria-activedescendant":b?e:void 0,"aria-autocomplete":b?t:"none","aria-controls":b?n:void 0,"aria-describedby":r,"aria-expanded":b&&"combobox"===m?!!a:void 0,"aria-label":u,"aria-labelledby":d,"aria-multiline":c,"aria-owns":b?f:void 0,"aria-readonly":!b||void 0,"aria-required":h,autoCapitalize:g,className:p,contentEditable:b,"data-testid":T,id:_,ref:E,role:m,spellCheck:y,style:C,tabIndex:v}))}let u=r.ContentEditable},81670:(e,t,n)=>{"use strict";n.d(t,{n:()=>c});var r={};n.r(r),n.d(r,{LexicalComposer:()=>d});var l=n(43624),i=n(35482),o=n(12115);let s="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;var a=s?o.useLayoutEffect:o.useEffect;let u={tag:"history-merge"};function d({initialConfig:e,children:t}){let n=(0,o.useMemo)(()=>{let{theme:t,namespace:n,editor__DEPRECATED:r,nodes:o,onError:a,editorState:d,html:c}=e,f=(0,l.Mx)(null,t),h=r||null;if(null===h){let r=(0,i.ie)({editable:e.editable,html:c,namespace:n,nodes:o,onError:e=>a(e,r),theme:t});!function(e,t){if(null!==t){if(void 0===t)e.update(()=>{let t=(0,i.Ni)();if(t.isEmpty()){let n=(0,i.lJ)();t.append(n);let r=s?document.activeElement:null;(null!==(0,i.vJ)()||null!==r&&r===e.getRootElement())&&n.select()}},u);else if(null!==t)switch(typeof t){case"string":{let n=e.parseEditorState(t);e.setEditorState(n,u);break}case"object":e.setEditorState(t,u);break;case"function":e.update(()=>{(0,i.Ni)().isEmpty()&&t(e)},u)}}}(r,d),h=r}return[h,f]},[]);return a(()=>{let t=e.editable,[r]=n;r.setEditable(void 0===t||t)},[]),o.createElement(l.Gu.Provider,{value:n},t)}let c=r.LexicalComposer},85203:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function l(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return l.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}(n)))}return e}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(l.default=l,e.exports=l):void 0===(n=(function(){return l}).apply(t,[]))||(e.exports=n)}()},89261:(e,t,n)=>{"use strict";n.d(t,{YW:()=>I,v5:()=>P});var r={};n.r(r),n.d(r,{$createListItemNode:()=>N,$createListNode:()=>k,$getListDepth:()=>s,$handleListInsertParagraph:()=>_,$isListItemNode:()=>S,$isListNode:()=>A,INSERT_CHECK_LIST_COMMAND:()=>R,INSERT_ORDERED_LIST_COMMAND:()=>D,INSERT_UNORDERED_LIST_COMMAND:()=>M,ListItemNode:()=>y,ListNode:()=>b,REMOVE_LIST_COMMAND:()=>L,insertList:()=>f,removeList:()=>p});var l=n(35482),i=n(8179),o=function(e){let t=new URLSearchParams;t.append("code",e);for(let e=1;e<arguments.length;e++)t.append("v",arguments[e]);throw Error(`Minified Lexical error #${e}; visit https://lexical.dev/docs/error?${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)};function s(e){let t=1,n=e.getParent();for(;null!=n;){if(S(n)){let e=n.getParent();if(A(e)){t++,n=e.getParent();continue}o(40)}break}return t}function a(e){let t=e.getParent();A(t)||o(40);let n=t;for(;null!==n;)A(n=n.getParent())&&(t=n);return t}function u(e){return S(e)&&A(e.getFirstChild())}function d(e){return N().append(e)}function c(e,t){return S(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function f(e,t){e.update(()=>{let e=(0,l.vJ)();if(null!==e){let n=e.getNodes();if((0,l.I2)(e)){let r=e.getStartEndPoints();null===r&&o(143);let[i]=r,s=i.getNode(),a=s.getParent();if(c(s,n)){let e=k(t);if((0,l.Iq)(a)){s.replace(e);let t=N();(0,l.ff)(s)&&(t.setFormat(s.getFormatType()),t.setIndent(s.getIndent())),e.append(t)}else if(S(s)){let t=s.getParentOrThrow();h(e,t.getChildren()),t.replace(e)}return}}let r=new Set;for(let e=0;e<n.length;e++){let i=n[e];if(!(0,l.ff)(i)||!i.isEmpty()||S(i)||r.has(i.getKey())){if((0,l.jG)(i)){let e=i.getParent();for(;null!=e;){let n=e.getKey();if(A(e)){if(!r.has(n)){let l=k(t);h(l,e.getChildren()),e.replace(l),r.add(n)}break}{let i=e.getParent();if((0,l.Iq)(i)&&!r.has(n)){r.add(n),g(e,t);break}e=i}}}}else g(i,t)}}})}function h(e,t){e.splice(e.getChildrenSize(),0,t)}function g(e,t){if(A(e))return e;let n=e.getPreviousSibling(),r=e.getNextSibling(),l=N();if(l.setFormat(e.getFormatType()),l.setIndent(e.getIndent()),h(l,e.getChildren()),A(n)&&t===n.getListType())return n.append(l),e.remove(),A(r)&&t===r.getListType()&&(h(n,r.getChildren()),r.remove()),n;if(A(r)&&t===r.getListType())return r.getFirstChildOrThrow().insertBefore(l),e.remove(),r;{let n=k(t);return n.append(l),e.replace(n),n}}function p(e){e.update(()=>{let e=(0,l.vJ)();if((0,l.I2)(e)){let t=new Set,n=e.getNodes(),r=e.anchor.getNode();if(c(r,n))t.add(a(r));else for(let e=0;e<n.length;e++){let r=n[e];if((0,l.jG)(r)){let e=(0,i.eu)(r,y);null!=e&&t.add(a(e))}}for(let n of t){let t=n;for(let r of function e(t){let n=[],r=t.getChildren().filter(S);for(let t=0;t<r.length;t++){let l=r[t],i=l.getFirstChild();A(i)?n=n.concat(e(i)):n.push(l)}return n}(n)){let n=(0,l.lJ)();h(n,r.getChildren()),t.insertAfter(n),t=n,r.__key===e.anchor.key&&e.anchor.set(n.getKey(),0,"element"),r.__key===e.focus.key&&e.focus.set(n.getKey(),0,"element"),r.remove()}n.remove()}}})}function _(){let e,t=(0,l.vJ)();if(!(0,l.I2)(t)||!t.isCollapsed())return!1;let n=t.anchor.getNode();if(!S(n)||0!==n.getChildrenSize())return!1;let r=a(n),i=n.getParent();A(i)||o(40);let s=i.getParent();if((0,l.Iq)(s))e=(0,l.lJ)(),r.insertAfter(e);else{if(!S(s))return!1;e=N(),s.insertAfter(e)}e.select();let u=n.getNextSiblings();if(u.length>0){let t=k(i.getListType());if((0,l.bS)(e))e.insertAfter(t);else{let n=N();n.append(t),e.insertAfter(n)}
2u.forEach(e=>{e.remove(),t.append(e)})}return function(e){let t=e;for(;null==t.getNextSibling()&&null==t.getPreviousSibling();){let e=t.getParent();if(null==e||!S(t)&&!A(t))break;t=e}t.remove()}(n),!0}function m(...e){let t=[];for(let n of e)if(n&&"string"==typeof n)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}class y extends l.fG{static getType(){return"listitem"}static clone(e){return new y(e.__value,e.__checked,e.__key)}constructor(e,t,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}createDOM(e){let t=document.createElement("li"),n=this.getParent();return A(n)&&"check"===n.getListType()&&v(t,this,null),t.value=this.__value,C(t,e.theme,this),t}updateDOM(e,t,n){let r=this.getParent();return A(r)&&"check"===r.getListType()&&v(t,this,e),t.value=this.__value,C(t,n.theme,this),!1}static transform(){return e=>{if(S(e)||o(144),null==e.__checked)return;let t=e.getParent();A(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)}}static importDOM(){return{li:e=>({conversion:T,priority:0})}}static importJSON(e){let t=N();return t.setChecked(e.checked),t.setValue(e.value),t.setFormat(e.format),t.setDirection(e.direction),t}exportDOM(e){let t=this.createDOM(e._config);return t.style.textAlign=this.getFormatType(),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...e){for(let t=0;t<e.length;t++){let n=e[t];if((0,l.ff)(n)&&this.canMergeWith(n)){let e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(S(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!A(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=k(n.getListType()),r=this.getNextSibling();for(;r;){let e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}
2return t&&((0,l.ff)(e)||o(139),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){let n=this.getParentOrThrow();if(A(n)||o(39),S(e))return super.insertAfter(e,t);let r=this.getNextSiblings();if(A(e)){let n=e,r=e.getChildren();for(let e=r.length-1;e>=0;e--)n=r[e],this.insertAfter(n,t);return n}if(n.insertAfter(e,t),0!==r.length){let l=k(n.getListType());r.forEach(e=>l.append(e)),e.insertAfter(l,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&u(t)&&u(n)&&(function e(t,n){let r=t.getLastChild(),l=n.getFirstChild();r&&l&&u(r)&&u(l)&&(e(r.getFirstChild(),l.getFirstChild()),l.remove());let i=n.getChildren();i.length>0&&t.append(...i),n.remove()}(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){let n=N(null==this.__checked&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){let t=(0,l.lJ)();this.getChildren().forEach(e=>t.append(e));let n=this.getParentOrThrow(),r=n.getParentOrThrow(),i=S(r);if(1===n.getChildrenSize())if(i)n.remove(),r.select();else{n.insertBefore(t),n.remove();let r=e.anchor,l=e.focus,i=t.getKey();"element"===r.type&&r.getNode().is(this)&&r.set(i,r.offset,"element"),"element"===l.type&&l.getNode().is(this)&&l.set(i,l.offset,"element")}else n.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){return this.getLatest().__checked}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){let e=this.getParent();if(null===e)return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;S(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"==typeof e&&e>-1||o(117);let t=this.getIndent();for(;t!==e;)t<e?(function(e){let t=new Set;if(u(e)||t.has(e.getKey()))return;let n=e.getParent(),r=e.getNextSibling(),l=e.getPreviousSibling();if(u(r)&&u(l)){let n=l.getFirstChild();if(A(n)){n.append(e);let l=r.getFirstChild();A(l)&&(h(n,l.getChildren()),r.remove(),t.add(r.getKey()))}}else if(u(r)){let t=r.getFirstChild();if(A(t)){let n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(u(l)){let t=l.getFirstChild();A(t)&&t.append(e)}else if(A(n)){let t=N(),i=k(n.getListType());t.append(i),i.append(e),l?l.insertAfter(t):r?r.insertBefore(t):n.append(t)}}(this),t++):(function(e){if(u(e))return;let t=e.getParent(),n=t?t.getParent():void 0;if(A(n?n.getParent():void 0)&&S(n)&&A(t)){let r=t?t.getFirstChild():void 0,l=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(l))n.insertAfter(e),t.isEmpty()&&n.remove();else{let r=t.getListType(),l=N(),i=k(r);
2l.append(i),e.getPreviousSiblings().forEach(e=>i.append(e));let o=N(),s=k(r);o.append(s),h(s,e.getNextSiblings()),n.insertBefore(l),n.insertAfter(o),n.replace(e)}}}(this),t--);return this}canInsertAfter(e){return S(e)}canReplaceWith(e){return S(e)}canMergeWith(e){return(0,l.bS)(e)||S(e)}extractWithChild(e,t){if(!(0,l.I2)(t))return!1;let n=t.anchor.getNode(),r=t.focus.getNode();return this.isParentOf(n)&&this.isParentOf(r)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return k("bullet")}}function C(e,t,n){let r,l=[],o=[],s=t.list,a=s?s.listitem:void 0;if(s&&s.nested&&(r=s.nested.listitem),void 0!==a&&l.push(...m(a)),s){let e=n.getParent(),t=A(e)&&"check"===e.getListType(),r=n.getChecked();t&&!r||o.push(s.listitemUnchecked),t&&r||o.push(s.listitemChecked),t&&l.push(r?s.listitemChecked:s.listitemUnchecked)}if(void 0!==r){let e=m(r);n.getChildren().some(e=>A(e))?l.push(...e):o.push(...e)}o.length>0&&(0,i.HE)(e,...o),l.length>0&&(0,i.ZB)(e,...l)}function v(e,t,n,r){A(t.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),n&&t.__checked===n.__checked||e.setAttribute("aria-checked",t.getChecked()?"true":"false"))}function T(e){return{node:N((0,i.sb)(e)&&"true"===e.getAttribute("aria-checked"))}}function N(e){return(0,l.pT)(new y(void 0,e))}function S(e){return e instanceof y}class b extends l.fG{static getType(){return"list"}static clone(e){return new b(e.__listType||O[e.__tag],e.__start,e.__key)}constructor(e,t,n){super(n);let r=O[e]||e;this.__listType=r,this.__tag="number"===r?"ol":"ul",this.__start=t}getTag(){return this.__tag}setListType(e){let t=this.getWritable();t.__listType=e,t.__tag="number"===e?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e,t){let n=this.__tag,r=document.createElement(n);return 1!==this.__start&&r.setAttribute("start",String(this.__start)),r.__lexicalListType=this.__listType,x(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||(x(t,n.theme,this),!1)}static transform(){return e=>{if(!A(e))throw Error("node is not a ListNode");let t="check"!==e.getListType(),n=e.getStart();for(let r of e.getChildren())S(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getChecked()&&r.setChecked(void 0),A(r.getFirstChild())||n++)}}static importDOM(){return{ol:e=>({conversion:w,priority:0}),ul:e=>({conversion:w,priority:0})}}static importJSON(e){let t=k(e.listType,e.start);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportDOM(e){let{element:t}=super.exportDOM(e);return t&&(0,i.sb)(t)&&(1!==this.__start&&t.setAttribute("start",String(this.__start)),"check"===this.__listType&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...e){for(let t=0;t<e.length;t++){let n=e[t];if(S(n))super.append(n);else{let e=N();if(A(n))e.append(n);else if((0,l.ff)(n)){let t=(0,l.sT)(n.getTextContent());e.append(t)}else e.append(n);super.append(e)}}return this}extractWithChild(e){return S(e)}}function x(e,t,n){let r=[],l=[],o=t.list;if(void 0!==o){let e,t=o[`${n.__tag}Depth`]||[],i=s(n)-1,a=i%t.length,u=t[a],d=o[n.__tag],c=o.nested,f=o.checklist;if(void 0!==c&&c.list&&(e=c.list),void 0!==d&&r.push(d),void 0!==f&&"check"===n.__listType&&r.push(f),void 0!==u){r.push(...m(u));for(let e=0;e<t.length;e++)e!==a&&l.push(n.__tag+e)}if(void 0!==e){let t=m(e);i>1?r.push(...t):l.push(...t)}}l.length>0&&(0,i.HE)(e,...l),r.length>0&&(0,i.ZB)(e,...r)}function E(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(S(r)){t.push(r);let e=r.getChildren();e.length>1&&e.forEach(e=>{A(e)&&t.push(d(e))})}else t.push(d(r))}return t}function w(e){let t=e.nodeName.toLowerCase(),n=null;return"ol"===t?n=k("number",e.start):"ul"===t&&(n=(0,i.sb)(e)&&"check"===e.getAttribute("__lexicallisttype")?k("check"):k("bullet")),{after:E,node:n}}
2let O={ol:"number",ul:"bullet"};function k(e,t=1){return(0,l.pT)(new b(e,t))}function A(e){return e instanceof b}let M=(0,l.gu)("INSERT_UNORDERED_LIST_COMMAND"),D=(0,l.gu)("INSERT_ORDERED_LIST_COMMAND"),R=(0,l.gu)("INSERT_CHECK_LIST_COMMAND"),L=(0,l.gu)("REMOVE_LIST_COMMAND");r.$createListItemNode,r.$createListNode,r.$getListDepth,r.$handleListInsertParagraph,r.$isListItemNode,r.$isListNode,r.INSERT_CHECK_LIST_COMMAND,r.INSERT_ORDERED_LIST_COMMAND,r.INSERT_UNORDERED_LIST_COMMAND;let I=r.ListItemNode,P=r.ListNode;r.REMOVE_LIST_COMMAND,r.insertList,r.removeList}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.