PageSourceSearch

https://carnegieendowment.org/_next/static/chunks/00km71a1cxim5.js

js carnegieendowment.org collected 2026-09-24 06:42:03 UTC 126,804 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,703057,e=>{"use strict";function t(e,...n){let r=new URL("https://lexical.dev/docs/error"),i=new URLSearchParams;for(let t of(i.append("code",e),n))i.append("v",t);throw r.search=i.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function n(e,...t){let r=new URL("https://lexical.dev/docs/error"),i=new URLSearchParams;for(let n of(i.append("code",e),t))i.append("v",n);r.search=i.toString(),console.warn(`Minified Lexical warning #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let r="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,i=r&&"documentMode"in document?document.documentMode:null,l=r&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),o=r&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),s=!(!r||!("InputEvent"in window)||i)&&"getTargetRanges"in new window.InputEvent("input"),a=r&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),u=r&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,d=r&&/Android/.test(navigator.userAgent),f=r&&/^(?=.*Chrome).*/i.test(navigator.userAgent),c=r&&d&&f,h=r&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&l&&!f,g=a||u||h?" ":"​",_=o?" ":g,p="֑-߿יִ-﷽ﹰ-ﻼ",m="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",y=(RegExp("^[^"+m+"]*["+p+"]"),RegExp("^[^"+p+"]*["+m+"]"),{bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512}),C={directionless:1,unmergeable:2},x={center:2,end:6,justify:4,left:1,right:3,start:5},S={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},N={normal:0,segmented:2,token:1},T={0:"normal",2:"segmented",1:"token"},v="$config",k=!1,E=0;function b(e){E=e.timeStamp}function O(e,t,n){let r="BR"===e.nodeName,i=t.__lexicalLineBreak;return i&&(e===i||r&&e.previousSibling===i)||r&&void 0!==rj(e,n)}function M(e,t,n){k=!0;let r=performance.now()-E>100;try{rn(e,()=>{let i=nF()||e.getEditorState().read(()=>{let e=nF();return null!==e?e.clone():null}),l=new Map,s=e.getRootElement(),a=e._editorState,u=e._blockCursorElement,d=!1,f="";for(let n=0;n<t.length;n++){let c=t[n],h=c.type,g=c.target,_=function(e,t,n,r){var i;for(let l=e;l&&(i=l,!0!==i.__lexicalUnmanaged);l=iu(l)){let e=rj(l,t);if(void 0!==e){let t=rU(e,n);if(t)return ru(t)||!iv(l)?void 0:[l,t]}else if(l===r)return[r,rq(n)]}}(g,e,a,s);if(!_)continue;let[p,m]=_;if("characterData"===h)r&&nu(m)&&rL(g)&&function(e,t,n){if(nC(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return rL(t)&&n.isAttached()}(i,g,m)&&function(e,t,n){let r=iN(i_(n)),i=null,l=null;null!==r&&r.anchorNode===e&&(i=r.anchorOffset,l=r.focusOffset);let o=e.nodeValue;null!==o&&r3(t,o,i,l,!1)}(g,m,e);else if("childList"===h){d=!0;let t=c.addedNodes;for(let n=0;n<t.length;n++){let r=t[n],i=rJ(r),l=r.parentNode;if(null!=l&&r!==u&&null===i&&!O(r,l,e)){if(o){let e=(iv(r)?r.innerText:null)||r.nodeValue;e&&(f+=e)}l.removeChild(r)}}let n=c.removedNodes,r=n.length;if(r>0){let t=0;for(let i=0;i<r;i++){let r=n[i];(O(r,g,e)||u===r)&&(g.appendChild(r),t++)}r!==t&&l.set(p,m)}}}if(l.size>0)for(let[t,n]of l)n.reconcileObservedMutation(t,e);let c=n.takeRecords();if(c.length>0){for(let t=0;t<c.length;t++){let n=c[t],r=n.addedNodes,i=n.target;for(let t=0;t<r.length;t++){let n=r[t],l=n.parentNode;null==l||"BR"!==n.nodeName||O(n,i,e)||l.removeChild(n)}}n.takeRecords()}null!==i&&(d&&rX(i),o&&io(e)&&i.insertRawText(f))})}finally{k=!1}}function A(e){let t=e._observer;null!==t&&M(e,t.takeRecords(),t)}function w(e){0===E&&i_(e).addEventListener("textInput",b,!0),e._observer=new MutationObserver((t,n)=>{M(e,t,n)})}class D{key;parse;unparse;isEqual;defaultValue;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||K).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0)}}function P(e,t,n="latest"){let r=("latest"===n?e.getLatest():e).__state;return r?r.getValue(t):t.defaultValue}class L{node;knownState;unknownState;sharedNodeState;size;constructor(e,t,n,r=new Map,i){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;const{sharedConfigMap:l}=this.sharedNodeState,o=void 0!==i?i:function(e,t,n){let r=n.size;if(t)for(let i in t){let t=e.get(i);t&&n.has(t)||r++}return r}(l,n,r);this.size=o}getValue(e){let t=this.knownState.get(e);if(void 0!==t)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){let t=this.unknownState[e.key];void 0!==t&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){let e={...this.unknownState},t={};for(let[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(let n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return R(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;let{sharedNodeState:t,unknownState:n}=this,r=new Map(this.knownState);return new L(e,t,function(e,t,n){let r;if(n)for(let[i,l]of Object.entries(n)){let n=e.get(i);n?t.has(n)||t.set(n,n.parse(l)):(r=r||{})[i]=l}return r}(t.sharedConfigMap,r,n),r,this.size)}updateFromKnown(e,t){let n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);let{knownState:r,unknownState:i}=this;r.has(e)||i&&n in i||(i&&(delete i[n],this.unknownState=R(i)),this.size++),r.set(e,t)}updateFromUnknown(e,t){let n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){let{knownState:t}=this;for(let e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(let[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}}function F(e){let t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new L(t,I(t));return t.__state=n,n}function I(e){return e.__state?e.__state.sharedNodeState:rv(iA(),e.getType()).sharedNodeState}function R(e){if(e)for(let t in e)return e}function K(e){return e}function B(e,t,n){for(let[r,i]of t.knownState){if(e.has(r.key))continue;e.add(r.key);let t=n?n.getValue(r):r.defaultValue;
1if(t!==i&&!r.isEqual(t,i))return!0}return!1}function z(e,t,n){let{unknownState:r}=t,i=n?n.unknownState:void 0;if(r){for(let[t,n]of Object.entries(r))if(!e.has(t)&&(e.add(t),n!==(i?i[t]:void 0)))return!0}return!1}function W(e,t){let n=e.__state;return n&&n.node===e?n.getWritable(t):n}function $(e,t){let n=e.__mode,r=e.__format,i=e.__style,l=t.__mode,o=t.__format,s=t.__style,a=e.__state,u=t.__state;return(null===n||n===l)&&(null===r||r===o)&&(null===i||i===s)&&(null===e.__state||a===u||function(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;let n=new Set;return!(e&&B(n,e,t)||t&&B(n,t,e)||e&&z(n,e,t)||t&&z(n,t,e))}(a,u))}function U(e,t){let n=e.mergeWithSibling(t),r=n1()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function J(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&nu(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){$(t,r)&&(r=U(t,r));break}t.remove()}for(;null!==(n=r.getNextSibling())&&nu(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){$(r,n)&&(r=U(r,n));break}n.remove()}}else r.remove()}function j(e){return Y(e.anchor),Y(e.focus),e}function Y(e){for(;"element"===e.type;){let t,n,r=e.getNode(),i=e.offset;if(i===r.getChildrenSize()?(t=r.getChildAtIndex(i-1),n=!0):(t=r.getChildAtIndex(i),n=!1),nu(t)){e.set(t.__key,n?t.getTextContentSize():0,"text",!0);break}if(!ro(t))break;e.set(t.__key,n?t.getChildrenSize():0,"element",!0)}}let V,H,G,q,X,Q,Z,ee,et,en,er="",ei=null,el=null,eo=!1,es=!1;function ea(e,t){let n=Z.get(e);if(null!==t){let n=eN(e);n.parentNode===t&&t.removeChild(n)}if(ee.has(e)||H._keyToDOMMap.delete(e),ro(n)){let e=ey(n,Z);eu(e,0,e.length-1,null)}void 0!==n&&ir(en,G,q,n,"destroyed")}function eu(e,t,n,r){for(let i=t;i<=n;++i){let t=e[i];void 0!==t&&ea(t,r)}}function ed(e,t){e.setProperty("text-align",t)}function ef(e,t){let n=V.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)}if(0===t)return void e.style.setProperty("padding-inline-start","");let r=getComputedStyle(H._rootElement||e).getPropertyValue("--lexical-indent-base-value")||"40px";e.style.setProperty("padding-inline-start",`calc(${t} * ${r})`)}function ec(e,t){let n=e.style;0===t?ed(n,""):1===t?ed(n,"left"):2===t?ed(n,"center"):3===t?ed(n,"right"):4===t?ed(n,"justify"):5===t?ed(n,"start"):6===t&&ed(n,"end")}function eh(e,t){let n=function(e){let t=e.__dir;if(null!==t)return t;if(rf(e))return null;let n=e.getParentOrThrow();return rf(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function eg(e,n){var r;let i,l=ee.get(e);void 0===l&&t(60);let o=l.createDOM(V,H);if(i=(r=H)._keyToDOMMap,o[`__lexicalKey_${r._key}`]=e,i.set(e,o),nu(l)?o.setAttribute("data-lexical-text","true"):ru(l)&&o.setAttribute("data-lexical-decorator","true"),ro(l)){let e=l.__indent,t=l.__size;eh(o,l),0!==e&&ef(o,e),0!==t&&e_(ey(l,ee),l,0,t-1,l.getDOMSlot(o));let n=l.__format;0!==n&&ec(o,n),l.isInline()||em(null,l,o)}else{let t=l.getTextContent();if(ru(l)){let t=l.decorate(H,V);null!==t&&eC(e,t),o.contentEditable="false"}er+=t}return null!==n&&n.insertChild(o),ir(en,G,q,l,"created"),o}function e_(e,t,n,r,i){let l=er;er="";let o=n;for(;o<=r;++o){eg(e[o],i);let t=ee.get(e[o]);null!==t&&nu(t)?null===ei&&(ei=t.getFormat(),el=t.getStyle()):ro(t)&&o<r&&!t.isInline()&&(er+="\n\n")}i.element.__lexicalTextContent=er,er=l+er}function ep(e,t){if(e){let n=e.__last;if(n){let e=t.get(n);if(e)return t2(e)?"line-break":ru(e)&&e.isInline()?"decorator":null}return"empty"}return null}function em(e,t,n){let r=ep(e,Z),i=ep(t,ee);r!==i&&t.getDOMSlot(n).setManagedLineBreak(i)}function ey(e,n){let r=[],i=e.__first;for(;null!==i;){let e=n.get(i);void 0===e&&t(101),r.push(i),i=e.__next}return r}function eC(e,t){let n=H._pendingDecorators,r=H._decorators;if(null===n){if(r[e]===t)return;n=rV(H)}n[e]=t}function ex(e){let t=e.nextSibling;return null!==t&&t===H._blockCursorElement&&(t=t.nextSibling),t}function eS(e,t){let n=new Set;for(let r=t;r<e.length;r++)n.add(e[r]);return n}function eN(e){let n=et.get(e);return void 0===n&&t(75,e),n}function eT(e){return{type:e}}let ev=eT("SELECTION_CHANGE_COMMAND"),ek=eT("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),eE=eT("CLICK_COMMAND"),eb=eT("BEFORE_INPUT_COMMAND"),eO=eT("INPUT_COMMAND"),eM=eT("COMPOSITION_START_COMMAND"),eA=eT("COMPOSITION_END_COMMAND"),ew=eT("DELETE_CHARACTER_COMMAND"),eD=eT("INSERT_LINE_BREAK_COMMAND"),eP=eT("INSERT_PARAGRAPH_COMMAND"),eL=eT("CONTROLLED_TEXT_INSERTION_COMMAND"),eF=eT("PASTE_COMMAND"),eI=eT("REMOVE_TEXT_COMMAND"),eR=eT("DELETE_WORD_COMMAND"),eK=eT("DELETE_LINE_COMMAND"),eB=eT("FORMAT_TEXT_COMMAND"),ez=eT("UNDO_COMMAND"),eW=eT("REDO_COMMAND"),e$=eT("KEYDOWN_COMMAND"),eU=eT("KEY_ARROW_RIGHT_COMMAND"),eJ=eT("MOVE_TO_END"),ej=eT("KEY_ARROW_LEFT_COMMAND"),eY=eT("MOVE_TO_START"),eV=eT("KEY_ARROW_UP_COMMAND"),eH=eT("KEY_ARROW_DOWN_COMMAND"),eG=eT("KEY_ENTER_COMMAND"),eq=eT("KEY_SPACE_COMMAND"),eX=eT("KEY_BACKSPACE_COMMAND"),eQ=eT("KEY_ESCAPE_COMMAND"),eZ=eT("KEY_DELETE_COMMAND"),e0=eT("KEY_TAB_COMMAND"),e1=eT("INSERT_TAB_COMMAND"),e2=eT("INDENT_CONTENT_COMMAND"),e6=eT("OUTDENT_CONTENT_COMMAND"),e3=eT("DROP_COMMAND"),e4=eT("FORMAT_ELEMENT_COMMAND"),e5=eT("DRAGSTART_COMMAND"),e7=eT("DRAGOVER_COMMAND"),e8=eT("DRAGEND_COMMAND"),e9=eT
1("COPY_COMMAND"),te=eT("CUT_COMMAND"),tt=eT("SELECT_ALL_COMMAND"),tn=eT("CLEAR_EDITOR_COMMAND"),tr=eT("CLEAR_HISTORY_COMMAND"),ti=eT("CAN_REDO_COMMAND"),tl=eT("CAN_UNDO_COMMAND"),to=eT("FOCUS_COMMAND"),ts=eT("BLUR_COMMAND"),ta=eT("KEY_MODIFIER_COMMAND"),tu=Object.freeze({}),td=[["keydown",function(e,t){tf=e.timeStamp,tc=e.key,t.isComposing()||is(t,e$,e)}],["pointerdown",function(e,t){let n=e.target,r=e.pointerType;ik(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&rn(t,()=>{ru(rY(n))||(ty=!0)})}],["compositionstart",function(e,t){is(t,eM,e)}],["compositionend",function(e,t){o?tx=!0:!u&&(a||h)?(tS=!0,tN=e.data):is(t,eA,e)}],["input",function(e,t){e.stopPropagation(),rn(t,()=>{t.dispatchCommand(eO,e)},{event:e}),tg=null}],["click",function(e,t){rn(t,()=>{let n=nF(),r=iN(i_(t)),i=nI();if(r){if(nC(n)){let t=n.anchor,l=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!rf(l)&&1===rG().getChildrenSize()&&l.getTopLevelElementOrThrow().isEmpty()&&null!==i&&n.is(i))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()&&l!==n.focus.getNode()){let e=iK(l,e=>ro(e)&&!e.isInline());ro(e)&&e.select(0)}}else if("touch"===e.pointerType||"pen"===e.pointerType){let n=r.anchorNode;(iv(n)||rL(n))&&rX(nL(i,r,t,e))}}is(t,eE,e)})}],["cut",tu],["copy",tu],["dragstart",tu],["dragover",tu],["dragend",tu],["paste",tu],["focus",tu],["blur",tu],["drop",tu]];s&&td.push(["beforeinput",(e,t)=>{let n;"deleteCompositionText"===(n=e.inputType)||o&&io(t)||"insertCompositionText"!==n&&is(t,eb,e)}]);let tf=0,tc=null,th=0,tg=null,t_=new WeakMap,tp=new WeakMap,tm=!1,ty=!1,tC=!1,tx=!1,tS=!1,tN="",tT=null,tv=[0,"",0,"root",0];function tk(e,t,n,r,i){let l=e.anchor,o=e.focus,a=l.getNode(),u=n1(),d=iN(i_(u)),f=null!==d?d.anchorNode:null,c=l.key,h=u.getElementByKey(c),g=n.length;return c!==o.key||!nu(a)||(!i&&(!s||th<r+50)||a.isDirty()&&g<2||rZ(n))&&l.offset!==o.offset&&!a.isComposing()||rP(a)||a.isDirty()&&g>1||(i||!s)&&null!==h&&!a.isComposing()&&f!==rI(h)||null!==d&&null!==t&&(!t.collapsed||t.startContainer!==d.anchorNode||t.startOffset!==d.anchorOffset)||!a.isComposing()&&(a.getFormat()!==e.format||a.getStyle()!==e.style)||function(e,t){let n;if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let r=e.anchor.offset,i=t.getParentOrThrow(),l=rD(t);return 0===r?!t.canInsertTextBefore()||!i.canInsertTextBefore()&&!t.isComposing()||l||(nu(n=t.getPreviousSibling())||ro(n)&&n.isInline())&&!n.canInsertTextAfter():r===t.getTextContentSize()&&(!t.canInsertTextAfter()||!i.canInsertTextAfter()&&!t.isComposing()||l)}(e,a)}function tE(e,t){return rL(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function tb(e,n,r){let{anchorNode:i,anchorOffset:l,focusNode:o,focusOffset:s}=e;tm&&(tm=!1,tE(i,l)&&tE(o,s)&&!tT)||rn(n,()=>{if(!r)return void rX(null);if(!rO(n,i,o))return;let a=nF();if(tT&&nC(a)&&a.isCollapsed()){let e=a.anchor,t=tT.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&rX(a=tT.clone())}if(tT=null,nC(a)){let r=a.anchor,i=r.getNode();if(a.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(a.dirty=!0);let l=i_(n).event,o=l?l.timeStamp:performance.now(),[s,u,d,f,c]=tv,h=rG(),g=!1===n.isComposing()&&""===h.getTextContent();if(o<c+200&&r.offset===d&&r.key===f)tO(a,s,u);else if("text"===r.type)nu(i)||t(141),tM(a,i);else if("element"===r.type&&!g){ro(i)||t(259);let e=r.getNode();e.isEmpty()?tO(a,e.getTextFormat(),e.getTextStyle()):tO(a,0,"")}}else{let e=r.key,t=a.focus.key,n=a.getNodes(),i=n.length,o=a.isBackward(),u=o?s:l,d=o?l:s,f=o?t:e,c=o?e:t,h=2047,g=!1;for(let e=0;e<i;e++){let t=n[e],r=t.getTextContentSize();if(nu(t)&&0!==r&&(0!==e||t.__key!==f||u!==r)&&(e!==i-1||t.__key!==c||0!==d)&&(g=!0,0==(h&=t.getFormat())))break}a.format=g?h:0}}is(n,ev,void 0)})}function tO(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function tM(e,t){tO(e,t.getFormat(),t.getStyle())}function tA(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return 0===t.length?null:t[0]}function tw(e){var n;let r=e.inputType,i=tA(e),l=n1(),o=nF();if("deleteContentBackward"===r){if(null===o){let e=nI();if(!nC(e))return!0;rX(e.clone())}if(nC(o)){let r=o.anchor.key===o.focus.key;if(n=e.timeStamp,"MediaLast"===tc&&n<tf+30&&l.isComposing()&&r){if(rW(null),tf=0,setTimeout(()=>{rn(l,()=>{rW(null)})},30),nC(o)){let e=o.anchor.getNode();e.markDirty(),nu(e)||t(142),tM(o,e)}}else{rW(null),e.preventDefault();let t=o.anchor.getNode(),n=t.getTextContent(),i=t.canInsertTextAfter(),s=0===o.anchor.offset&&o.focus.offset===n.length,a=c&&r&&!s&&i;if(a&&o.isCollapsed()&&(a=!ru(il(o.anchor,!0))),!a){is(l,ew,!0);let e=nF();c&&nC(e)&&e.isCollapsed()&&(tT=e,setTimeout(()=>tT=null))}}return!0}}if(!nC(o))return!0;let s=e.data;null!==tg&&r6(!1,l,tg),o.dirty&&null===tg||!o.isCollapsed()||rf(o.anchor.getNode())||null===i||o.applyDOMRange(i),tg=null;let a=o.anchor,d=o.focus,f=a.getNode(),h=d.getNode();if("insertText"===r||"insertTranspose"===r){if("\n"===s)e.preventDefault(),is(l,eD,!1);else if("\n\n"===s)e.preventDefault(),is(l,eP,void 0);else if(null==s&&e.dataTransfer){let t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=s&&tk(o,i,s,e.timeStamp,!0)?(e.preventDefault(),is(l,eL,s)):tg=s;return th=e.timeStamp,!0}switch(e.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":is(l,eL,e);break;case"insertFromComposition":rW(null),is(l,eL,e);break;case"insertLineBreak":rW(null),is(l,eD,!1);break;case"insertParagraph":rW(null),tC&&!u?(tC=!1,is(l,eD,!1)):is(l,eP,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":is(l,eF,e);break;case"deleteByComposition":(f!==h||ro(f)||ro(h)||!rD(f)||!rD(h))&&is(l,eI,e);break;case"deleteByDrag":case"deleteByCut":is(l,eI,e);break;case"deleteContent":is(l,ew,!1);break;case"deleteWordBackward":is(l,eR,!0);break;
1case"deleteWordForward":is(l,eR,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":is(l,eK,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":is(l,eK,!1);break;case"formatStrikeThrough":is(l,eB,"strikethrough");break;case"formatBold":is(l,eB,"bold");break;case"formatItalic":is(l,eB,"italic");break;case"formatUnderline":is(l,eB,"underline");break;case"historyUndo":is(l,ez,void 0);break;case"historyRedo":is(l,eW,void 0)}return!0}function tD(e){if(iv(e.target)&&ru(rY(e.target)))return!0;let t=n1(),n=nF(),r=e.data,i=tA(e);if(null!=r&&nC(n)&&tk(n,i,r,e.timeStamp,!1)){tx&&(tF(t,r),tx=!1);let i=n.anchor.getNode(),l=iN(i_(t));if(null===l)return!0;let a=n.isBackward(),u=a?n.anchor.offset:n.focus.offset,d=a?n.focus.offset:n.anchor.offset;s&&!n.isCollapsed()&&nu(i)&&null!==l.anchorNode&&i.getTextContent().slice(0,u)+r+i.getTextContent().slice(u+d)===r2(l.anchorNode)||is(t,eL,r);let f=r.length;o&&f>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=f),c&&t.isComposing()&&(tf=0,rW(null))}else r6(!1,t,null!==r?r:void 0),tx&&(tF(t,r||void 0),tx=!1);return nQ(),A(n1()),!0}function tP(e){let t=n1(),n=nF();if(nC(n)&&!t.isComposing()){let r=n.anchor,i=n.anchor.getNode();rW(r.key),ic(tX),(e.timeStamp<tf+30||"element"===r.type||!n.isCollapsed()||i.getFormat()!==n.format||nu(i)&&i.getStyle()!==n.style)&&is(t,eL,_)}return!0}function tL(e){return tF(n1(),e.data),ic(tQ),!0}function tF(e,t){let n=e._compositionKey;if(rW(null),null!==n&&null!=t){if(""===t){let t=rU(n),r=rI(e.getElementByKey(n));if(null!==r&&null!==r.nodeValue&&nu(t)){let n=iN(i_(e)),i=null,l=null;null!==n&&n.anchorNode===r&&(i=n.anchorOffset,l=n.focusOffset),r3(t,r.nodeValue,i,l,!0)}return}if("\n"===t[t.length-1]){let t=nF();if(nC(t)||nS(t)){if(nC(t)){let e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return void is(e,eG,null)}}}r6(!0,e,t)}function tI(e){let t=n1();if(null==e.key)return!0;if(tS){if(ie(e))return rn(t,()=>{tF(t,tN)}),tS=!1,tN="",!0;tS=!1,tN=""}if(r7(e,"ArrowRight",{shiftKey:"any"}))is(t,eU,e);else if(r7(e,"ArrowRight",r8))is(t,eJ,e);else if(r7(e,"ArrowLeft",{shiftKey:"any"}))is(t,ej,e);else if(r7(e,"ArrowLeft",r8))is(t,eY,e);else if(r7(e,"ArrowUp",{altKey:"any",shiftKey:"any"}))is(t,eV,e);else if(r7(e,"ArrowDown",{altKey:"any",shiftKey:"any"}))is(t,eH,e);else if(r7(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0}))tC=!0,is(t,eG,e);else if(" "===e.key)is(t,eq,e);else if(l&&r7(e,"o",{ctrlKey:!0}))e.preventDefault(),tC=!0,is(t,eD,!0);else if(r7(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"}))tC=!1,is(t,eG,e);else if(r7(e,"Backspace",{shiftKey:"any"})||l&&r7(e,"h",{ctrlKey:!0}))ie(e)?is(t,eX,e):(e.preventDefault(),is(t,ew,!0));else if("Escape"===e.key)is(t,eQ,e);else if(r7(e,"Delete",{})||l&&r7(e,"d",{ctrlKey:!0}))"Delete"!==e.key?(e.preventDefault(),is(t,ew,!1)):is(t,eZ,e);else if(r7(e,"Backspace",r9))e.preventDefault(),is(t,eR,!0);else if(r7(e,"Delete",r9))e.preventDefault(),is(t,eR,!1);else if(l&&r7(e,"Backspace",{metaKey:!0}))e.preventDefault(),is(t,eK,!0);else if(l&&(r7(e,"Delete",{metaKey:!0})||r7(e,"k",{ctrlKey:!0})))e.preventDefault(),is(t,eK,!1);else if(r7(e,"b",r8))e.preventDefault(),is(t,eB,"bold");else if(r7(e,"u",r8))e.preventDefault(),is(t,eB,"underline");else if(r7(e,"i",r8))e.preventDefault(),is(t,eB,"italic");else if(r7(e,"Tab",{shiftKey:"any"}))is(t,e0,e);else if(r7(e,"z",r8))e.preventDefault(),is(t,ez,void 0);else if(l?r7(e,"z",{metaKey:!0,shiftKey:!0}):r7(e,"y",{ctrlKey:!0})||r7(e,"z",{ctrlKey:!0,shiftKey:!0}))e.preventDefault(),is(t,eW,void 0);else{let n=t._editorState._selection;null===n||nC(n)?r7(e,"a",r8)&&(e.preventDefault(),is(t,tt,e)):r7(e,"c",r8)?(e.preventDefault(),is(t,e9,e)):r7(e,"x",r8)?(e.preventDefault(),is(t,te,e)):r7(e,"a",r8)&&(e.preventDefault(),is(t,tt,e))}return(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)&&t.dispatchCommand(ta,e),!0}function tR(e){let t=e.__lexicalEventHandles;return void 0===t&&(e.__lexicalEventHandles=t=[]),t}let tK=new Map;function tB(e){let t=iT(e.target);if(null===t)return;let n=rA(t.anchorNode);if(null===n)return;ty&&(ty=!1,rn(n,()=>{let r=nI(),i=t.anchorNode;(iv(i)||rL(i))&&rX(nL(r,t,n,e))}));let r=r0(n),i=r[r.length-1],l=i._key,o=tK.get(l),s=o||i;s!==n&&tb(t,s,!1),tb(t,n,!0),n!==i?tK.set(l,n):o&&tK.delete(l)}function tz(e){e._lexicalHandled=!0}function tW(e){return!0===e._lexicalHandled}let t$=()=>{};function tU(e,t,n){nQ();let r=e.__key,i=e.getParent();if(null===i)return;let l=function(e){let t=nF();if(!nC(t)||!ro(e))return t;let{anchor:n,focus:r}=t,i=n.getNode(),l=r.getNode();return ih(i,e)&&n.set(e.__key,0,"element"),ih(l,e)&&r.set(e.__key,0,"element"),t}(e),o=!1;if(nC(l)&&t){let t=l.anchor,n=l.focus;t.key===r&&(nB(t,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0),n.key===r&&(nB(n,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0)}else nS(l)&&t&&e.isSelected()&&e.selectPrevious();if(nC(l)&&t&&!o){let t=e.getIndexWithinParent();rB(e),nR(l,i,t,-1)}else rB(e);n||ip(i)||i.canBeEmpty()||!i.isEmpty()||tU(i,t),t&&l&&rf(i)&&i.isEmpty()&&i.selectEnd()}let tJ=Symbol.for("ephemeral");function tj(e){return e[tJ]||!1}class tY{__type;__key;__parent;__prev;__next;__state;static getType(){let{ownNodeType:e}=iR(this);return void 0===e&&t(64,this.name),e}static clone(e){t(65,this.name)}$config(){return{}}config(e,t){let n=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:n,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),rK(this,e)}getType(){return this.__type}isInline(){t(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;let t=rU(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){let t=e||nF();if(null==t)return!1;let n=t.getNodes().some(e=>e.__key===this.__key);if(nu(this))return n;if(nC(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;let e=this.getParent();if(ru(this)&&this.isInline()&&e){let n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return 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:rU(e)}getParentOrThrow(){let e=this.getParent();return null===e&&t(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let n=e.getParent();if(ip(n))return ro(e)||e===this&&ru(e)||t(194),e;e=n}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&t(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:rU(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:rU(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=ro(this)?this:this.getParent(),n=ro(e)?e:e.getParent(),r=t&&n?lr(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){let n=lr(this,e);return null!==n&&("descendant"===n.type||("branch"===n.type?-1===lt(n):("same"!==n.type&&"ancestor"!==n.type&&t(279),!1)))}isParentOf(e){let t=lr(this,e);return null!==t&&"ancestor"===t.type}getNodesBetween(e){let n=this.isBefore(e),r=[],i=new Set,l=this;for(;null!==l;){let o=l.__key;
1if(i.has(o)||(i.add(o),r.push(l)),l===e)break;let s=ro(l)?n?l.getFirstChild():l.getLastChild():null;if(null!==s){l=s;continue}let a=n?l.getNextSibling():l.getPreviousSibling();if(null!==a){l=a;continue}let u=l.getParentOrThrow();if(i.has(u.__key)||r.push(u),u===e)break;let d=null,f=u;do{if(null===f&&t(68),d=n?f.getNextSibling():f.getPreviousSibling(),null===(f=f.getParent()))break;null!==d||i.has(f.__key)||r.push(f)}while(null===d)l=d}return n||r.reverse(),r}isDirty(){let e=n1()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if(tj(this))return this;let e=rU(this.__key);return null===e&&t(113),e}getWritable(){if(tj(this))return this;nQ();let e=n0(),t=n1(),n=e._nodeMap,r=this.__key,i=this.getLatest(),l=t._cloneNotNeeded,o=nF();if(null!==o&&o.setCachedNodes(null),l.has(r))return rz(i),i;let s=iL(i);return l.add(r),rz(s),n.set(r,s),s}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,n){t(70)}updateDOM(e,n,r){t(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){let e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){t(18,this.name)}updateFromJSON(e){return function(e,t){let n=e.getWritable(),r=t.$,i=r;for(let e of I(n).flatKeys)e in t&&(void 0!==i&&i!==r||(i={...r}),i[e]=t[e]);return(n.__state||i)&&F(e).updateFromJSON(i),n}(this,e)}static transform(){return null}remove(e){tU(this,!0,e)}replace(e,n){nQ();let r=nF();null!==r&&(r=r.clone()),iC(this,e);let i=this.getLatest(),l=this.__key,o=e.__key,s=e.getWritable(),a=this.getParentOrThrow().getWritable(),u=a.__size;rB(s);let d=i.getPreviousSibling(),f=i.getNextSibling(),c=i.__prev,h=i.__next,g=i.__parent;if((tU(i,!1,!0),null===d)?a.__first=o:d.getWritable().__next=o,(s.__prev=c,null===f)?a.__last=o:f.getWritable().__prev=o,s.__next=h,s.__parent=g,a.__size=u,n&&(ro(this)&&ro(s)||t(139),this.getChildren().forEac
1h(e=>{s.append(e)})),nC(r)){rX(r);let e=r.anchor,t=r.focus;e.key===l&&nm(e,s),t.key===l&&nm(t,s)}return r$()===l&&rW(o),s}insertAfter(e,t=!0){nQ(),iC(this,e);let n=this.getWritable(),r=e.getWritable(),i=r.getParent(),l=nF(),o=!1,s=!1;if(null!==i){let t=e.getIndexWithinParent();if(rB(r),nC(l)){let e=i.__key,n=l.anchor,r=l.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,f=n.__next;if(null===a?u.__last=d:a.getWritable().__prev=d,u.__size++,n.__next=d,r.__next=f,r.__prev=n.__key,r.__parent=n.__parent,t&&nC(l)){let e=this.getIndexWithinParent();nR(l,u,e+1);let t=u.__key;o&&l.anchor.set(t,e+2,"element"),s&&l.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){nQ(),iC(this,e);let n=this.getWritable(),r=e.getWritable(),i=r.__key;rB(r);let l=this.getPreviousSibling(),o=this.getParentOrThrow().getWritable(),s=n.__prev,a=this.getIndexWithinParent();null===l?o.__first=i:l.getWritable().__next=i,o.__size++,n.__prev=i,r.__prev=s,r.__next=n.__key,r.__parent=n.__parent;let u=nF();return t&&nC(u)&&nR(u,this.getParentOrThrow(),a),e}isParentRequired(){return!1}createParentElementNode(){return ry()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){nQ();let n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(ro(n))return n.select();if(!nu(n)){let e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){nQ();let n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(ro(n))return n.select(0,0);if(!nu(n)){let e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}let tV="history-merge",tH="skip-scroll-into-view",tG="skip-dom-selection",tq="skip-selection-focus",tX="composition-start",tQ="composition-end";class tZ extends tY{static getType(){return"linebreak"}static clone(e){return new tZ(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>(function(e){let t=e.parentElement;if(null!==t&&iO(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&t6(n)){let n=t.lastChild;if(n===e||n.previousSibling===e&&t6(n))return!0}}return!1})(e)||function(e){let t=e.parentElement;if(null!==t&&iO(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&t6(n))return!1;let r=t.lastChild;if(r===e||r.previousSibling===e&&t6(r))return!0}return!1}(e)?null:{conversion:t0,priority:0}}}static importJSON(e){return t1().updateFromJSON(e)}}function t0(e){return{node:t1()}}function t1(){return iy(new tZ)}function t2(e){return e instanceof tZ}function t6(e){return rL(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function t3(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function t4(e,t){return 1&t?"strong":2&t?"em":"span"}function t5(e,t,n,r,i){let l=r.classList,o=it(i,"base");void 0!==o&&l.add(...o);let s=!1,a=8&t&&4&t;for(let e in void 0!==(o=it(i,"underlineStrikethrough"))&&(8&n&&4&n?(s=!0,a||l.add(...o)):a&&l.remove(...o)),y){let r=y[e];if(void 0!==(o=it(i,e)))if(n&r){if(s&&("underline"===e||"strikethrough"===e)){t&r&&l.remove(...o);continue}(0==(t&r)||a&&"underline"===e||"strikethrough"===e)&&l.add(...o)}else t&r&&l.remove(...o)}}function t7(e,t,n){let r=t.firstChild,i=n.isComposing(),l=e+(i?g:"");if(null==r)t.textContent=l;else{let e=r.nodeValue;if(e!==l)if(i||o){let[t,n,i]=function(e,t){let n=e.length,r=t.length,i=0,l=0;for(;i<n&&i<r&&e[i]===t[i];)i++;for(;l+i<n&&l+i<r&&e[n-l-1]===t[r-l-1];)l++;return[i,n-i-l,t.slice(i,r-l)]}(e,l);0!==n&&r.deleteData(t,n),r.insertData(t,i)}else r.nodeValue=l}}function t8(e,t,n,r,i,l){t7(i,e,t);let o=l.theme.text;void 0!==o&&t5(0,0,r,e,o)}function t9(e,t){let n=document.createElement(t);return n.appendChild(e),n}class ne extends tY{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(e){return new ne(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}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 T[this.getLatest().__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===r$()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let t=y[e];return 0!=(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return rR(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){let n=this.__format,r=t3(0,n),i=t4(0,n),l=null===r?i:r,o=document.createElement(l),s=o;
1this.hasFormat("code")&&o.setAttribute("spellcheck","false"),null!==r&&(s=document.createElement(i),o.appendChild(s)),t8(s,this,0,n,this.__text,e);let a=this.__style;return""!==a&&(o.style.cssText=a),o}updateDOM(e,n,r){let i=this.__text,l=e.__format,o=this.__format,s=t3(0,l),a=t3(0,o),u=t4(0,l),d=t4(0,o);if((null===s?u:s)!==(null===a?d:a))return!0;if(s===a&&u!==d){let e=n.firstChild;null==e&&t(48);let l=document.createElement(d);return t8(l,this,0,o,i,r),n.replaceChild(l,e),!1}let f=n;null!==a&&null!==s&&null==(f=n.firstChild)&&t(49),t7(i,f,this);let c=r.theme.text;void 0!==c&&l!==o&&t5(0,l,o,f,c);let h=e.__style,g=this.__style;return h!==g&&(n.style.cssText=g),!1}static importDOM(){return{"#text":()=>({conversion:ni,priority:0}),b:()=>({conversion:nn,priority:0}),code:()=>({conversion:ns,priority:0}),em:()=>({conversion:ns,priority:0}),i:()=>({conversion:ns,priority:0}),mark:()=>({conversion:ns,priority:0}),s:()=>({conversion:ns,priority:0}),span:()=>({conversion:nt,priority:0}),strong:()=>({conversion:ns,priority:0}),sub:()=>({conversion:ns,priority:0}),sup:()=>({conversion:ns,priority:0}),u:()=>({conversion:ns,priority:0})}}static importJSON(e){return na().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}
1exportDOM(e){let{element:n}=super.exportDOM(e);return iv(n)||t(132),n.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?n.style.textTransform="lowercase":this.hasFormat("uppercase")?n.style.textTransform="uppercase":this.hasFormat("capitalize")&&(n.style.textTransform="capitalize"),this.hasFormat("bold")&&(n=t9(n,"b")),this.hasFormat("italic")&&(n=t9(n,"i")),this.hasFormat("strikethrough")&&(n=t9(n,"s")),this.hasFormat("underline")&&(n=t9(n,"u")),{element:n}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format="string"==typeof e?y[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?C[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=rR(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=N[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){nQ();let n=e,r=t,i=nF(),l=this.getTextContent(),o=this.__key;if("string"==typeof l){let e=l.length;void 0===n&&(n=e),void 0===r&&(r=e)}else n=0,r=0;if(!nC(i))return nw(o,n,o,r,"text","text");{let e=r$();e!==i.anchor.key&&e!==i.focus.key||rW(o),i.setTextNodeRange(this,n,this,r)}return i}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){let i=this.getWritable(),l=i.__text,o=n.length,s=e;s<0&&(s=o+s)<0&&(s=0);let a=nF();if(r&&nC(a)){let t=e+o;a.setTextNodeRange(i,t,i,t)}return i.__text=l.slice(0,s)+n+l.slice(s+t),i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){let t;nQ();let n=this.getLatest(),r=n.getTextContent();if(""===r)return[];let i=n.__key,l=r$(),o=r.length;e.sort((e,t)=>e-t),e.push(o);let s=[],a=e.length;for(let t=0,n=0;t<o&&n<=a;n++){let i=e[n];i>t&&(s.push(r.slice(t,i)),t=i)}let u=s.length;if(1===u)return[n];let d=s[0],f=n.getParent(),c=n.getFormat(),h=n.getStyle(),g=n.__detail,_=!1,p=null,m=null,y=nF();if(nC(y)){let[e,t]=y.isBackward()?[y.focus,y.anchor]:[y.anchor,y.focus];"text"===e.type&&e.key===i&&(p=e),"text"===t.type&&t.key===i&&(m=t)}n.isSegmented()?((t=na(d)).__format=c,t.__style=h,t.__detail=g,t.__state=W(n,t),_=!0):t=n.setTextContent(d);let C=[t];for(let e=1;e<u;e++){let t=na(s[e]);t.__format=c,t.__style=h,t.__detail=g,t.__state=W(n,t);let r=t.__key;l===i&&rW(r),C.push(t)}let x=p?p.offset:null,S=m?m.offset:null,N=0;for(let e of C){if(!p&&!m)break;let t=N+e.getTextContentSize();if(null!==p&&null!==x&&x<=t&&x>=N&&(p.set(e.getKey(),x-N,"text"),x<t&&(p=null)),null!==m&&null!==S&&S<=t&&S>=N){m.set(e.getKey(),S-N,"text");break}N=t}if(null!==f){let e,t;e=this.getPreviousSibling(),t=this.getNextSibling(),null!==e&&rz(e),null!==t&&rz(t);let n=f.getWritable(),r=this.getIndexWithinParent();_?(n.splice(r,0,C),this.remove()):n.splice(r,1,C),nC(y)&&nR(y,f,r,u-1)}return C}mergeWithSibling(e){let n=e===this.getPreviousSibling();n||e===this.getNextSibling()||t(50);let r=this.__key,i=e.__key,l=this.__text,o=l.length;r$()===i&&rW(r);let s=nF();if(nC(s)){let t=s.anchor,l=s.focus;null!==t&&t.key===i&&nz(t,n,r,e,o),null!==l&&l.key===i&&nz(l,n,r,e,o)}let a=e.__text,u=n?a+l:l+a;this.setTextContent(u);let d=this.getWritable();return e.remove(),d}isTextEntity(){return!1}}function nt(e){return{forChild:nd(e.style),node:null}}function nn(e){let t="normal"===e.style.fontWeight;return{forChild:nd(e.style,t?void 0:"bold"),node:null}}let nr=new WeakMap;function ni(e){null===e.parentElement&&t(129);let n=e.textContent||"";if(null!==function(e){let t,n=e.parentNode,r=[e];for(;null!==n&&void 0===(t=nr.get(n))&&!function(e){if(!iv(e))return!1;if("PRE"===e.nodeName)return!0;let t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}(n);)r.push(n),n=n.parentNode;let i=void 0===t?n:t;for(let e=0;e<r.length;e++)nr.set(r[e],i);return i}(e)){let e=n.split(/(\r?\n|\t)/),t=[],r=e.length;for(let n=0;n<r;n++){let r=e[n];"\n"===r||"\r\n"===r?t.push(t1()):"	"===r?t.push(nc()):""!==r&&t.push(na(r))}return{node:t}}if(""===(n=n.replace(/\r/g,"").replace(/[ \t\n]+/g," ")))return{node:null};if(" "===n[0]){let t=e,r=!0;for(;null!==t&&null!==(t=nl(t,!1));){let e=t.textContent||"";if(e.length>0){/[ \t\n]$/.test(e)&&(n=n.slice(1)),r=!1;break}}r&&(n=n.slice(1))}if(" "===n[n.length-1]){let t=e,r=!0;for(;null!==t&&null!==(t=nl(t,!0));)if((t.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(n=n.slice(0,n.length-1))}return""===n?{node:null}
1:{node:na(n)}}function nl(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(iv(n=e)){let e=n.style.display;if(""===e&&!ib(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(rL(n))return n;if("BR"===n.nodeName)return null}}let no={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function ns(e){let t=no[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:nd(e.style,t),node:null}}function na(e=""){return iy(new ne(e))}function nu(e){return e instanceof ne}function nd(e,t){let n=e.fontWeight,r=e.textDecoration.split(" "),i="700"===n||"bold"===n,l=r.includes("line-through"),o="italic"===e.fontStyle,s=r.includes("underline"),a=e.verticalAlign;return e=>(nu(e)&&(i&&!e.hasFormat("bold")&&e.toggleFormat("bold"),l&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),o&&!e.hasFormat("italic")&&e.toggleFormat("italic"),s&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==a||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==a||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t)),e)}class nf extends ne{static getType(){return"tab"}static clone(e){return new nf(e.__key)}constructor(e){super("	",e),this.__detail=2}static importDOM(){return null}createDOM(e){let t=super.createDOM(e),n=it(e.theme,"tab");return void 0!==n&&t.classList.add(...n),t}static importJSON(e){return nc().updateFromJSON(e)}setTextContent(e){return"	"!==e&&""!==e&&n(126),super.setTextContent("	")}spliceText(e,n,r,i){return""===r&&0===n||"	"===r&&1===n||t(286),this}setDetail(e){return 2!==e&&t(127),this}setMode(e){return"normal"!==e&&t(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function nc(){return iy(new nf)}function nh(e){return e instanceof nf}class ng{key;offset;type;_selection;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){return this.key===e.key?this.offset<e.offset:0>le(lc(li(this,"next")),lc(li(e,"next")))}getNode(){let e=rU(this.key);return null===e&&t(20),e}set(e,t,n,r){let i=this._selection,l=this.key;r&&this.key===e&&this.offset===t&&this.type===n||(this.key=e,this.offset=t,this.type=n,nX()||(r$()===l&&rW(e),null!==i&&(i.setCachedNodes(null),i.dirty=!0)))}}function n_(e,t,n){return new ng(e,t,n)}function np(e,t){let n=t.__key,r=e.offset,i="element";if(nu(t)){i="text";let e=t.getTextContentSize();r>e&&(r=e)}else if(!ro(t)){let e=t.getNextSibling();if(nu(e))n=e.__key,r=0,i="text";else{let e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,i)}function nm(e,t){if(ro(t)){let n=t.getLastDescendant();ro(n)||nu(n)?np(e,n):np(e,t)}else np(e,t)}class ny{_nodes;_cachedNodes;dirty;constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!nS(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 ny(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let t,n=this.getNodes(),r=n.length,i=n[r-1];if(nu(i))t=i.select();else{let e=i.getIndexWithinParent()+1;t=i.getParentOrThrow().select(e,e)}t.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=rU(e);null!==t&&n.push(t)}return nX()||(this._cachedNodes=n),n}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){let e=this.getNodes();if((nF()||nI())===this&&e[0]){let t=iQ(e[0],"next");lo(i8(t,t))}for(let t of e)t.remove()}}function nC(e){return e instanceof nx}class nx{format;style;anchor;focus;_cachedNodes;dirty;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!!nC(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=this._cachedNodes;if(null!==e)return e;let t=function(e){let t=[],[n,r]=e.getTextSlices();
1n&&t.push(n.caret.origin);let i=new Set,l=new Set;for(let n of e)if(iH(n)){let{origin:e}=n;0===t.length?i.add(e):(l.add(e),t.push(e))}else{let{origin:e}=n;ro(e)&&l.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),iV(e.focus)&&ro(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=i1(e.focus.origin,"previous");iH(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=i6(n))i.delete(n.origin),t.pop();for(;t.length>1;){let e=t[t.length-1];if(!ro(e)||l.has(e)||e.isEmpty()||i.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){let n=lc(e.anchor),r=lc(e.anchor.getFlipped()),i=e=>iY(e)?e.origin:e.getNodeAtCaret(),l=i(n)||i(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(l)}return t}(l_(la(this),"next"));return nX()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){this.anchor.set(e.__key,t,"text"),this.focus.set(n.__key,r,"text")}getTextContent(){let e=this.getNodes();if(0===e.length)return"";let t=e[0],n=e[e.length-1],r=this.anchor,i=this.focus,l=r.isBefore(i),[o,s]=nT(this),a="",u=!0;for(let d=0;d<e.length;d++){let f=e[d];if(ro(f)&&!f.isInline())u||(a+="\n"),u=!f.isEmpty();else if(u=!1,nu(f)){let e=f.getTextContent();f===t?f===n?"element"===r.type&&"element"===i.type&&i.offset!==r.offset||(e=o<s?e.slice(o,s):e.slice(s,o)):e=l?e.slice(o):e.slice(s):f===n&&(e=l?e.slice(0,s):e.slice(0,o)),a+=e}else!ru(f)&&!t2(f)||f===n&&this.isCollapsed()||(a+=f.getTextContent())}return a}applyDOMRange(e){let t=n1(),n=t.getEditorState()._selection,r=nA(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(null===r)return;let[i,l]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(l.key,l.offset,l.type,!0),j(this)}clone(){let e=this.anchor,t=this.focus;return new nx(n_(e.key,e.offset,e.type),n_(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=rR(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){let t=y[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(t1()):"	"===r?n.push(nc()):n.push(na(r))}this.insertNodes(n)}insertText(e){let n=this.anchor,r=this.focus,i=this.format,l=this.style,o=n,s=r;!this.isCollapsed()&&r.isBefore(n)&&(o=r,s=n),"element"===o.type&&function(e,t,n,r){let i=e.getNode(),l=i.getChildAtIndex(e.offset),o=na();if(o.setFormat(n),o.setStyle(r),rC(l))l.splice(0,0,[o]);else{let e=rf(i)?ry().append(o):o;null===l?i.append(e):l.insertBefore(e)}e.is(t)&&t.set(o.__key,0,"text"),e.set(o.__key,0,"text")}(o,s,i,l),"element"===s.type&&ll(s,lc(li(s,"next")));let a=o.offset,u=s.offset,d=this.getNodes(),f=d.length,c=d[0];nu(c)||t(26);let h=c.getTextContent().length,g=c.getParentOrThrow(),_=d[f-1];if(1===f&&"element"===s.type&&(u=h,s.set(o.key,u,"text")),this.isCollapsed()&&a===h&&(rP(c)||!c.canInsertTextAfter()||!g.canInsertTextAfter()&&null===c.getNextSibling())){let t=c.getNextSibling();if(nu(t)&&t.canInsertTextBefore()&&!rP(t)||((t=na()).setFormat(i),t.setStyle(l),g.canInsertTextAfter()?c.insertAfter(t):g.insertAfter(t)),t.select(0,0),c=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===a&&(rP(c)||!c.canInsertTextBefore()||!g.canInsertTextBefore()&&null===c.getPreviousSibling())){let t=c.getPreviousSibling();if(nu(t)&&!rP(t)||((t=na()).setFormat(i),g.canInsertTextBefore()?c.insertBefore(t):g.insertBefore(t)),t.select(),c=t,""!==e)return void this.insertText(e)}else if(c.isSegmented()&&a!==h){let e=na(c.getTextContent());e.setFormat(i),c.replace(e),c=e}else if(!this.isCollapsed()&&""!==e){let t=_.getParent();if(!g.canInsertTextBefore()||!g.canInsertTextAfter()||ro(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),nM(this.anchor,this.focus),void this.insertText(e)}if(1===f){if(rD(c)){let t=na(e);return t.select(),void c.replace(t)}let t=c.getFormat(),n=c.getStyle();if(a!==u||t===i&&n===l){if(nh(c)){let t=na(e);return t.setFormat(i),t.setStyle(l),t.select(),void c.replace(t)}}else{if(""!==c.getTextContent()){let t=na(e);if(t.setFormat(i),t.setStyle(l),t.select(),0===a)c.insertBefore(t,!1);else{let[e]=c.splitText(a);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}c.setFormat(i),c.setStyle(l)}let r=u-a;""===(c=c.spliceText(a,r,e,!0)).getTextContent()?c.remove():"text"===this.anchor.type&&(this.format=t,this.style=n,c.isComposing()&&(this.anchor.offset-=e.length))}else{let t=new Set([...c.getParentKeys(),..._.getParentKeys()]),n=ro(c)?c:c.getParentOrThrow(),r=ro(_)?_:_.getParentOrThrow(),i=_;if(!n.is(r)&&r.isInline())do i=r,r=r.getParentOrThrow();while(r.isInline())if("text"===s.type&&(0!==u||""===_.getTextContent())||"element"===s.type&&_.getIndexWithinParent()<u)if(nu(_)&&!rD(_)&&u!==_.getTextContentSize()){if(_.isSegmented()){let e=na(_.getTextContent());_.replace(e),_=e}rf(s.getNode())||"text"!==s.type||(_=_.spliceText(0,u,"")),t.add(_.__key)}else{let e=_.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?_.remove():e.remove()}else t.add(_.__key);let l=r.getChildren(),o=new Set(d),g=n.is(r),p=n.isInline()&&null===c.getNextSibling()?n:c;for(let e=l.length-1;e>=0;e--){let t=l[e];if(t.is(c)||ro(t)&&t.isParentOf(c))break;t.isAttached()&&(!o.has(t)||t.is(i)?g||p.insertAfter(t,!1):t.remove())}if(!g){let e=r,n=null;for(;null!==e;){let r=e.getChildren(),i=r.length;(0===i||r[i-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(rD(c))if(a===h)c.select();else{let t=na(e);t.select(),c.replace(t)}else""===(c=c.spliceText(a,h-a,e,!0)).getTextContent()?c.remove():"text"===this.anchor.type&&(this.format=c.getFormat(),this.style=c.getStyle(),c.isComposing()&&(this.anchor.offset-=e.length));for(let e=1;e<f;e++){let n=d[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){let e=nF()===this;ls(this,function(e,n="removeEmptySlices"){let r,i;if(e.isCollapsed())return e;let l="root",o="next",s=n,a=l_(e,o),u=ld(a.anchor,l),d=ld(a.focus.getFlipped(),l),f=new Set,c=[];for(let e of a.iterNodeCarets(l))if(iH(e))f.add(e.origin.getKey());else if(iV(e)){let{origin:t}=e;ro(t)&&!f.has(t.getKey())||c.push(t)}for(let e of c)e.remove();for(let e of a.getTextSlices()){if(!e)continue;let{origin:t}
1=e.caret,n=t.getTextContentSize(),r=lu(iQ(t,o)),i=t.getMode();if(Math.abs(e.distance)===n&&"removeEmptySlices"===s||"token"===i&&0!==e.distance)r.remove();else if(0!==e.distance){s="removeEmptySlices";let t=e.removeTextSlice(),n=e.caret.origin;if("segmented"===i){let e=t.origin,n=na(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());r.replaceOrInsert(n),t=iZ(n,o,t.offset)}n.is(u[0].origin)&&(u[0]=t),n.is(d[0].origin)&&(d[0]=t.getFlipped())}}for(let e of u)if(lf(e)){r=lc(e);break}for(let e of d)if(lf(e)){i=lc(e);break}let h=function(e,t,n){let r;if(!e||!t)return null;let i=e.getParentAtCaret(),l=t.getParentAtCaret();if(!i||!l)return null;let o=i.getParents().reverse();o.push(i);let s=l.getParents().reverse();s.push(l);let a=Math.min(o.length,s.length);for(r=0;r<a&&o[r]===s[r];r++);let u=(e,t)=>{let n;for(let i=r;i<e.length;i++){let r=e[i];if(ip(r))return;!n&&t(r)&&(n=r)}return n},d=u(o,iM),f=d&&u(s,e=>n.has(e.getKey())&&iM(e));return d&&f?[d,f]:null}(r,i,f);if(h){let[e,t]=h;i1(e,"previous").splice(0,t.getChildren());let n=t.getParent();for(t.remove(!0);n&&n.isEmpty();){let e=n;n=n.getParent(),e.remove(!0)}}let g=[r,i,...u,...d].find(lf);if(g)return i7(lg(lc(g),e.direction));t(269,JSON.stringify(u.map(e=>e.origin.__key)))}(la(this))),e&&nF()!==this&&rX(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void rW(null);let n=this.getNodes(),r=[];for(let e of n)nu(e)&&r.push(e);let i=t=>{n.forEach(n=>{if(ro(n)){let r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},l=r.length;if(0===l)return this.toggleFormat(e),rW(null),void i(t);let o=this.anchor,s=this.focus,a=this.isBackward(),u=a?s:o,d=a?o:s,f=0,c=r[0],h="element"===u.type?0:u.offset;if("text"===u.type&&h===c.getTextContentSize()&&(f=1,c=r[1],h=0),null==c)return;let g=c.getFormatFlags(e,t);i(g);let _=l-1,p=r[_],m="text"===d.type?d.offset:p.getTextContentSize();if(c.is(p)){if(h===m)return;if(rP(c)||0===h&&m===c.getTextContentSize())c.setFormat(g);else{let e=c.splitText(h,m),t=0===h?e[0]:e[1];t.setFormat(g),"text"===u.type&&u.set(t.__key,0,"text"),"text"===d.type&&d.set(t.__key,m-h,"text")}return void(this.format=g)}0===h||rP(c)||([,c]=c.splitText(h),h=0),c.setFormat(g);let y=p.getFormatFlags(e,g);m>0&&(m===p.getTextContentSize()||rP(p)||([p]=p.splitText(m)),p.setFormat(y));for(let t=f+1;t<_;t++){let n=r[t],i=n.getFormatFlags(e,y);n.setFormat(i)}"text"===u.type&&u.set(c.__key,h,"text"),"text"===d.type&&d.set(p.__key,m,"text"),this.format=g|y}insertNodes(e){var n;if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();let n=nF();return nC(n)||t(134),n.insertNodes(e)}let r=(this.isBackward()?this.focus:this.anchor).getNode(),i=iK(r,iM),l=e[e.length-1];if(ro(i)&&"__language"in i){if("__language"in e[0])this.insertText(e[0].getTextContent());else{let t=nU(this);i.splice(t,0,e),l.selectEnd()}return}if(!e.some(e=>(ro(e)||ru(e))&&!e.isInline())){ro(i)||t(211,r.constructor.name,r.getType());let n=nU(this);return i.splice(n,0,e),void l.selectEnd()}let o=function(e){let t=ry(),n=null;for(let r=0;r<e.length;r++){let i=e[r],l=t2(i);if(l||ru(i)&&i.isInline()||ro(i)&&i.isInline()||nu(i)||i.isParentRequired()){if(null===n&&(n=i.createParentElementNode(),t.append(n),l))continue;null!==n&&n.append(i)}else t.append(i),n=null}return t}(e),s=o.getLastDescendant(),a=o.getChildren(),u=ro(i)&&i.isEmpty()?null:this.insertParagraph(),d=a[a.length-1],f=a[0];ro(n=f)&&iM(n)&&!n.isEmpty()&&ro(i)&&(!i.isEmpty()||i.canMergeWhenEmpty())&&(ro(i)||t(211,r.constructor.name,r.getType()),i.append(...f.getChildren()),f=a[1]),f&&(null===i&&t(212,r.constructor.name,r.getType()),function(e,n){let r=n.getParentOrThrow().getLastChild(),i=n,l=[n];for(;i!==r;)i.getNextSibling()||t(140),l.push(i=i.getNextSibling());let o=e;for(let e of l)o=o.insertAfter(e)}(i,f));let c=iK(s,iM);u&&ro(c)&&(u.canMergeWhenEmpty()||iM(d))&&(c.append(...u.getChildren()),u.remove()),ro(i)&&i.isEmpty()&&i.remove(),s.selectEnd();let h=ro(i)?i.getLastChild():null;t2(h)&&c!==i&&h.remove()}insertParagraph(){if("root"===this.anchor.key){let e=ry();return rG().splice(this.anchor.offset,0,[e]),e.select(),e}let e=nU(this),n=iK(this.anchor.getNode(),iM);ro(n)||t(213);let r=n.getChildAtIndex(e),i=r?[r,...r.getNextSiblings()]:[],l=n.insertNewAfter(this,!1);return l?(l.append(...i),l.selectStart(),l):null}insertLineBreak(e){let t=t1();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=e[0],r=e[t-1],[i,l]=nT(this),o=this.isBackward(),[s,a]=o?[this.focus,this.anchor]:[this.anchor,this.focus],[u,d]=o?[l,i]:[i,l];if(0===t)return[];if(1===t){if(nu(n)&&!this.isCollapsed()){let e=n.splitText(u,d),t=0===u?e[0]:e[1];return t?(s.set(t.getKey(),0,"text"),a.set(t.getKey(),t.getTextContentSize(),"text"),[t]):[]}return[n]}if(nu(n)&&(u===n.getTextContentSize()?e.shift():0!==u&&([,n]=n.splitText(u),e[0]=n,s.set(n.getKey(),0,"text"))),nu(r)){let t=r.getTextContent().length;0===d?e.pop():d!==t&&([r]=r.splitText(d),e[e.length-1]=r,a.set(r.getKey(),r.getTextContentSize(),"text"))}return e}
1modify(e,t,n){var r;if(nJ(this,e,t,n))return;let i="move"===e,l=n1(),o=iN(i_(l));if(!o)return;let s=l._blockCursorElement,a=l._rootElement,u=this.focus.getNode();if(null===a||null===s||!ro(u)||u.isInline()||u.canBeEmpty()||iS(s,l,a),this.dirty){let e=ia(l,this.anchor.key),t=ia(l,this.focus.key);"text"===this.anchor.type&&(e=rI(e)),"text"===this.focus.type&&(t=rI(t)),e&&t&&nW(o,e,this.anchor.offset,t,this.focus.offset)}if(r=t?"backward":"forward",o.modify(e,r,n),o.rangeCount>0){let e=o.getRangeAt(0),n=this.anchor.getNode(),r=rf(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t&&!ip(t);)t=t.getParentOrThrow();return t}(n);if(this.applyDOMRange(e),this.dirty=!0,!i){let n,i,l,s,a,u=this.getNodes(),d=[],f=!1;for(let e=0;e<u.length;e++){let t=u[e];ih(t,r)?d.push(t):f=!0}if(f&&d.length>0)if(t){let e=d[0];ro(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{let e=d[d.length-1];ro(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}o.anchorNode===e.startContainer&&o.anchorOffset===e.startOffset||(n=this.focus,l=(i=this.anchor).key,s=i.offset,a=i.type,i.set(n.key,n.offset,n.type,!0),n.set(l,s,a,!0))}}"lineboundary"===n&&nJ(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&ro(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(ro(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=i5(li(t,e?"previous":"next"));if(r.getTextSlices().every(e=>null===e||0===e.distance)){let e={type:"initial"};for(let t of r.iterNodeCarets("shadowRoot"))if(iH(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(ro(r.anchor.origin)&&r.anchor.origin.isEmpty()){let e=lc(t);ls(this,i8(e,e)),r.anchor.origin.remove()}return}"merge-next-block"!==e.type&&"merge-block"!==e.type||(e={block:e.block,caret:t,type:"merge-block"})}else{if("merge-block"===e.type)break;if(iV(t)){if(ro(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:"merge-next-block"};continue}if(ru(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&ro(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=nP();e.add(t.origin.getKey()),rX(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){let{caret:t,block:n}=e;return ls(this,i8(!t.origin.isEmpty()&&n.isEmpty()?lu(iQ(n,t.direction)):r.anchor,t)),this.removeText()}}let i=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&nv(this,t.getNode()))return}else{let r="text"===i.type?i.getNode():null;if(n="text"===t.type?t.getNode():null,null!==r&&r.isSegmented()){let t=i.offset,l=r.getTextContentSize();if(r.is(n)||e&&t!==l||!e&&0!==t)return void nE(r,e,t)}else if(null!==n&&n.isSegmented()){let i=t.offset,l=n.getTextContentSize();if(n.is(r)||e&&0!==i||!e&&i!==l)return void nE(n,e,i)}!function(e,t){let n=e.anchor,r=e.focus,i=n.getNode();if(i===r.getNode()&&"text"===n.type&&"text"===r.type){var l;let e=n.offset,o=r.offset,s=e<o,a=s?e:o,u=s?o:e,d=u-1;a===d||rZ(l=i.getTextContent().slice(a,u))||nk(l)||(t?r.set(r.key,d,r.type):n.set(n.key,d,n.type))}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){let e=this.anchor.getNode();e.isEmpty()&&rf(e.getParent())&&null===e.getPreviousSibling()&&nv(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):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 nS(e){return e instanceof ny}function nN(e){let t=e.offset;if("text"===e.type)return t;let n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function nT(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]:[nN(n),nN(r)]}function nv(e,t){for(let n=t;n;n=n.getParent()){if(ro(n)){if(n.collapseAtStart(e))return!0;
1if(ip(n))break}if(n.getPreviousSibling())break}return!1}let nk=(()=>{try{let e=RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("👍"))return t}catch(e){}return()=>!1})();function nE(e,t,n){let r=e.getTextContent().split(/(?=\s)/g),i=r.length,l=0,o=0;for(let e=0;e<i;e++){let s=e===i-1;if(o=l,l+=r[e].length,t&&l===n||l>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 nb(e,n,r,i){let l,o=n;if(iv(e)){let s=!1,a=e.childNodes,u=a.length,d=i._blockCursorElement;o===u&&(s=!0,o=u-1);let f=a[o],c=!1;if(f===d)f=a[o+1],c=!0;else if(null!==d){let t=d.parentNode;e===t&&n>Array.prototype.indexOf.call(t.children,d)&&o--}if(nu(l=rQ(f)))o=i0(l,s?"next":"previous");else{let a=rQ(e);if(null===a)return null;if(ro(a)){let u,d=i.getElementByKey(a.getKey());null===d&&t(214);let f=a.getDOMSlot(d);[a,o]=f.resolveChildIndex(a,d,e,n),ro(a)||t(215),s&&o>=a.getChildrenSize()&&(o=Math.max(0,a.getChildrenSize()-1));let h=a.getChildAtIndex(o);if(ro(h)&&(u=h.getParent(),null===r||null===u||!u.canBeEmpty()||u!==r.getNode())){let e=s?h.getLastDescendant():h.getFirstDescendant();a=null===e||ro(h=e)?h:h.getParentOrThrow(),o=0}nu(h)?(l=h,a=null,o=i0(h,s?"next":"previous")):h!==a&&s&&!c&&(ro(a)||t(216),o=Math.min(a.getChildrenSize(),o+1))}else{let t=a.getIndexWithinParent();o=0===n&&ru(a)&&rQ(e)===a?t:t+1,a=a.getParentOrThrow()}if(ro(a))return n_(a.__key,o,"element")}}else l=rQ(e);return nu(l)?n_(l.__key,i0(l,o,"clamp"),"text"):null}function nO(e,t,n){let r=e.offset,i=e.getNode();if(0===r){let r=i.getPreviousSibling(),l=i.getParent();if(t){if((n||!t)&&null===r&&ro(l)&&l.isInline()){let t=l.getPreviousSibling();nu(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else ro(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):nu(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===i.getTextContent().length){let r=i.getNextSibling(),l=i.getParent();if(t&&ro(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&ro(l)&&l.isInline()&&!l.canInsertTextAfter()){let t=l.getNextSibling();nu(t)&&e.set(t.__key,0,"text")}}}function nM(e,t,n){if("text"===e.type&&"text"===t.type){let n=e.isBefore(t),r=e.is(t);nO(e,n,r),nO(t,!n,r),r&&t.set(e.key,e.offset,e.type)}}function nA(e,t,n,r,i,l){if(null===e||null===n||!rO(i,e,n))return null;let o=nb(e,t,nC(l)?l.anchor:null,i);if(null===o)return null;let s=nb(n,r,nC(l)?l.focus:null,i);if(null===s)return null;if("element"===o.type&&"element"===s.type){let t=rQ(e),r=rQ(n);if(ru(t)&&ru(r))return null}return nM(o,s),[o,s]}function nw(e,t,n,r,i,l){let o=n0(),s=new nx(n_(e,t,i),n_(n,r,l),0,"");return s.dirty=!0,o._selection=s,s}function nD(){return new nx(n_("root",0,"element"),n_("root",0,"element"),0,"")}function nP(){return new ny(new Set)}function nL(e,t,n,r){let i,l,o,s,a=n._window;if(null===a)return null;let u=r||a.event,d=u?u.type:void 0,f="selectionchange"===d,c=!k&&(f||"beforeinput"===d||"compositionstart"===d||"compositionend"===d||"click"===d&&u&&3===u.detail||"drop"===d||void 0===d);if(nC(e)&&!c)return e.clone();if(null===t)return null;if(i=t.anchorNode,l=t.focusNode,o=t.anchorOffset,s=t.focusOffset,(f||void 0===d)&&nC(e)&&!rO(n,i,l))return e.clone();let h=nA(i,o,l,s,n,e);if(null===h)return null;let[g,_]=h,p=0,m="";if(nC(e)){let t=e.anchor;if(g.key===t.key)p=e.format,m=e.style;else{let e=g.getNode();nu(e)?(p=e.getFormat(),m=e.getStyle()):ro(e)&&(p=e.getTextFormat(),m=e.getTextStyle())}}return new nx(g,_,p,m)}function nF(){return n0()._selection}function nI(){return n1()._editorState._selection}function nR(e,t,n,r=1){let i=e.anchor,l=e.focus,o=i.getNode(),s=l.getNode();if(!t.is(o)&&!t.is(s))return;let a=t.__key;if(e.isCollapsed()){let t=i.offset;if(n<=t&&r>0||n<t&&r<0){let n=Math.max(0,t+r);i.set(a,n,"element"),l.set(a,n,"element"),nK(e)}}else{let o=e.isBackward(),s=o?l:i,u=s.getNode(),d=o?i:l,f=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(f)){let e=d.offset;(n<=e&&r>0||n<e&&r<0)&&d.set(a,Math.max(0,e+r),"element")}}nK(e)}function nK(e){let t=e.anchor,n=t.offset,r=e.focus,i=r.offset,l=t.getNode(),o=r.getNode();if(e.isCollapsed()){if(!ro(l))return;let e=l.getChildrenSize(),i=n>=e,o=i?l.getChildAtIndex(e-1):l.getChildAtIndex(n);if(nu(o)){let e=0;i&&(e=o.getTextContentSize()),t.set(o.__key,e,"text"),r.set(o.__key,e,"text")}return}if(ro(l)){let e=l.getChildrenSize(),r=n>=e,i=r?l.getChildAtIndex(e-1):l.getChildAtIndex(n);if(nu(i)){let e=0;r&&(e=i.getTextContentSize()),t.set(i.__key,e,"text")}}if(ro(o)){let e=o.getChildrenSize(),t=i>=e,n=t?o.getChildAtIndex(e-1):o.getChildAtIndex(i);if(nu(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}function nB(e,t,n,r,i){let l=null,o=0,s=null;null!==r?(l=r.__key,nu(r)?(o=r.getTextContentSize(),s="text"):ro(r)&&(o=r.getChildrenSize(),s="element")):null!==i&&(l=i.__key,nu(i)?s="text":ro(i)&&(s="element")),null!==l&&null!==s?e.set(l,o,s):(-1===(o=t.getIndexWithinParent())&&(o=n.getChildrenSize()),e.set(n.__key,o,"element"))}function nz(e,t,n,r,i){"text"===e.type?e.set(n,e.offset+(t?0:i),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function nW(e,t,n,r,i){try{e.setBaseAndExtent(t,n,r,i)}catch(e){}}function n$(e,t,n){let r=ia(e,t.getKey());if(ro(t)){let e=t.getDOMSlot(r);return[e.element,n+e.getFirstChildOffset()]}return[r,n]}function nU(e){let n=e;e.isCollapsed()||n.removeText();let r=nF();nC(r)&&(n=r),nC(n)||t(161);let i=n.anchor,l=i.getNode(),o=i.offset;for(;!iM(l);){let e=l;if([l,o]=function(e,t){let n=e.getParent();if(!n){let e=ry();return rG().append(e),e.select(),[rG(),0]}if(nu(e)){let r=e.splitText(t);if(0===r.length)return[n,e.getIndexWithinParent()];let i=+(0!==t);return[n,r[0].getIndexWithinParent()+i]}if(!ro(e)||0===t)return[n,e.getIndexWithinParent()];let r=e.getChildAtIndex(t);if(r){let n=new nx(n_(e.__key,t,"element"),n_(e.__key,t,"element"),0,""),i=e.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}(l,o),e.is(l))break}return o}function nJ(e,t,n,r,i="decorators-and-blocks"){if("move"===t&&"character"===r&&!e.isCollapsed()){let[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}let l=li(e.focus,n?"previous":"next"),o="lineboundary"===r,s="move"===t,a=l,u="decorators-and-blocks"===i;if(!lh(a)){for(let e of a){u=!1;let{origin:t}=e;if(!ru(t)||t.isIsolated()||(a=e,!o||!t.isInline()))break}if(u)for(let e of i5(l).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(iH(e))e.origin.isInline()||(a=e);else{if(ro(e.origin))continue;ru(e.origin)&&!e.origin.isInline()&&(a=e)}break}}if(a===l)return!1;if(s&&!o&&ru(a.origin)&&a.origin.isKeyboardSelectable()){let e=nP();return e.add(a.origin.getKey()),rX(e),!0}return a=lc(a),s&&ll(e.anchor,a),ll(e.focus,a),u||!o}let nj=null,nY=null,nV=!1,nH=!1,nG=0,nq={characterData:!0,childList:!0,subtree:!0};function nX(){return nV||null!==nj&&nj._readOnly}function nQ(){nV&&t(13)}function nZ(){nG>99&&t(14)}function n0(){return null===nj&&t(195,n2()),nj}function n1(){return null===nY&&t(196,n2()),nY}function n2(){let e=0,t=new Set,n=rS.version;if("u">typeof window)for(let r of document.querySelectorAll("[contenteditable]")){let i=rw(r);if(rM(i))e++;else if(i){let e=String(i.constructor.version||"<0.17.1");e===n&&(e+=" (separately built, likely a bundler configuration issue)"),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function n6(e,t,n){let r=t.__type,i=rv(e,r),l=n.get(r);void 0===l&&(l=Array.from(i.transforms),n.set(r,l));let o=l.length;for(let e=0;e<o&&(l[e](t),t.isAttached());e++);}function n3(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function n4(e,t){if(!t)return;let n=e._updateTags,r=t;for(let e of(Array.isArray(t)||(r=[t]),r))n.add(e)}
1function n5(e,n){let r=e.type,i=n.get(r);void 0===i&&t(17,r);let l=i.klass;e.type!==l.getType()&&t(18,l.name);let o=l.importJSON(e),s=e.children;if(ro(o)&&Array.isArray(s))for(let e=0;e<s.length;e++){let t=n5(s[e],n);o.append(t)}return o}function n7(e,t,n){let r=nj,i=nV,l=nY;nj=t,nV=!0,nY=e;try{return n()}finally{nj=r,nV=i,nY=l}}function n8(e,n){let r,i,l=e._pendingEditorState,s=e._rootElement,a=e._headless||null===s;if(null===l)return;let u=e._editorState,d=u._selection,f=l._selection,c=0!==e._dirtyType,h=nj,g=nV,_=nY,p=e._updating,m=e._observer,y=null;if(e._pendingEditorState=null,e._editorState=l,!a&&c&&null!==m){nY=e,nj=l,nV=!1,e._updating=!0;try{let n,r=e._dirtyType,i=e._dirtyElements,o=e._dirtyLeaves;m.disconnect(),er="",eo=2===r,H=e,V=e._config,G=e._nodes,q=H._listeners.mutation,X=i,Q=o,Z=u._nodeMap,ee=l._nodeMap,es=l._readOnly,et=new Map(e._keyToDOMMap),en=n=new Map,function e(n,r){let i=Z.get(n),l=ee.get(n);void 0!==i&&void 0!==l||t(61);let o=eo||Q.has(n)||X.has(n),s=ia(H,n);if(i===l&&!o){let e;if(ro(i)){let t=s.__lexicalTextContent;"string"==typeof t?e=t:s.__lexicalTextContent=e=i.getTextContent()}else e=i.getTextContent();return er+=e,s}if(i!==l&&o&&ir(en,G,q,l,"updated"),l.updateDOM(i,s,V)){let e=eg(n,null);return null===r&&t(62),r.replaceChild(e,s),ea(n,null),e}if(ro(i)){ro(l)||t(334,n);let r=l.__indent;(eo||r!==i.__indent)&&ef(s,r);let a=l.__format;if((eo||a!==i.__format)&&ec(s,a),o)(function(n,r,i){ei=null,el=null,function(n,r,i){let l=er,o=n.__size,s=r.__size;er="";let a=i.element;if(1===o&&1===s){let t=n.__first,i=r.__first;if(t===i)e(t,a);else{let e=eN(t),n=eg(i,null);try{a.replaceChild(n,e)}catch(r){if("object"==typeof r&&null!=r)throw Error(`${r.toString()} Parent: ${a.tagName}, new child: {tag: ${n.tagName} key: ${i}}, old child: {tag: ${e.tagName}, key: ${t}}.`);throw r}ea(t,null)}let l=ee.get(i);nu(l)&&null===ei&&(ei=l.getFormat(),el=l.getStyle())}else{let l=ey(n,Z),u=ey(r,ee);if(l.length!==o&&t(227),u.length!==s&&t(228),0===o)0!==s&&e_(u,0,0,s-1,i);else if(0===s){if(0!==o){let e=null==i.after&&null==i.before&&null==i.element.__lexicalLineBreak;eu(l,0,o-1,e?null:a),e&&(a.textContent="")}}else!function(t,n,r,i,l){let o=r-1,s=i-1,a,u,d=l.getFirstChild(),f=0,c=0;for(;f<=o&&c<=s;){let r=t[f],i=n[c];if(r===i)d=ex(e(i,l.element)),f++,c++;else{if(void 0===u&&(u=eS(n,c)),void 0===a)a=eS(t,f);else if(!a.has(r)){f++;continue}if(!u.has(r)){d=ex(eN(r)),ea(r,l.element),f++,a.delete(r);continue}if(a.has(i)){let t=ia(H,i);t!==d&&l.withBefore(d).insertChild(t),d=ex(e(i,l.element)),f++,c++}else eg(i,l.withBefore(d)),c++}let o=ee.get(i);null!==o&&nu(o)?null===ei&&(ei=o.getFormat(),el=o.getStyle()):ro(o)&&c<=s&&!o.isInline()&&(er+="\n\n")}let h=f>o,g=c>s;if(h&&!g){let e=n[s+1],t=void 0===e?null:H.getElementByKey(e);e_(n,0,c,s,l.withBefore(t))}else g&&!h&&eu(t,f,o,l.element)}(l,u,o,s,i)}a.__lexicalTextContent=er,er=l+er}(n,r,r.getDOMSlot(i)),null==ei||ei===r.__textFormat||es||r.setTextFormat(ei),null==el||el===r.__textStyle||es||r.setTextStyle(el)})(i,l,s),rf(l)||l.isInline()||em(i,l,s);else{let e,t=s.__lexicalTextContent;"string"==typeof t?e=t:s.__lexicalTextContent=e=i.getTextContent(),er+=e}if((eo||l.__dir!==i.__dir)&&(eh(s,l),rf(l)&&!eo))for(let e of l.getChildren())ro(e)&&eh(ia(H,e.getKey()),e)}else{let e=l.getTextContent();if(ru(l)){let e=l.decorate(H,V);null!==e&&eC(n,e)}er+=e}if(!es&&rf(l)&&l.__cachedText!==er){let e=l.getWritable();e.__cachedText=er,l=e}return s}("root",null),H=void 0,G=void 0,X=void 0,Q=void 0,Z=void 0,ee=void 0,V=void 0,et=void 0,en=void 0,y=n}catch(t){if(t instanceof Error&&e._onError(t),nH)throw t;return rx(e,null,s,l),w(e),e._dirtyType=2,nH=!0,n8(e,u),void(nH=!1)}finally{m.observe(s,nq),e._updating=p,nj=h,nV=g,nY=_}}l._readOnly||(l._readOnly=!0);let C=e._dirtyLeaves,x=e._dirtyElements,S=e._normalizedNodes,N=e._updateTags,T=e._deferred;c&&(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,i=e._pendingDecorators||r,l=t._nodeMap;for(n in i)l.has(n)||(i===r&&(i=rV(e)),delete i[n])}(e,l);let v=a?null:iN(i_(e));if(e._editable&&null!==v&&(c||null===f||f.dirty||!f.is(d))&&null!==s&&!N.has(tG)){nY=e,nj=l;try{if(null!==m&&m.disconnect(),c||null===f||f.dirty){let t=e._blockCursorElement;null!==t&&iS(t,e,s),function(e,t,n,r,i,l){var s;let a=r.anchorNode,u=r.focusNode,d=r.anchorOffset,f=r.focusOffset,c=document.activeElement;if(i.has("collaboration")&&c!==l||null!==c&&rb(c))return;if(!nC(t))return null!==e&&rO(n,a,u)&&r.removeAllRanges();let h=t.anchor,g=t.focus,_=h.getNode(),p=g.getNode(),[m,y]=n$(n,_,h.offset),[C,x]=n$(n,p,g.offset),S=t.format,N=t.style,T=t.isCollapsed(),v=m,k=C,E=!1;if("text"===h.type?(v=rI(m),E=_.getFormat()!==S||_.getStyle()!==N):nC(e)&&"text"===e.anchor.type&&(E=!0),"text"===g.type&&(k=rI(C)),null!==v&&null!==k&&(T&&(null===e||E||nC(e)&&(e.format!==S||e.style!==N))&&(s=h.key,tv=[S,N,y,s,performance.now()]),d!==y||f!==x||a!==v||u!==k||"Range"===r.type&&T||(null!==c&&l.contains(c)||i.has(tq)||l.focus({preventScroll:!0}),"element"===h.type))){if(nW(r,v,y,k,x),!o||!t.isCollapsed()||null===l||i.has(tq)||null!==document.activeElement&&l.contains(document.activeElement)||l.focus({preventScroll:!0}),!i.has(tH)&&t.isCollapsed()&&null!==l&&l===document.activeElement){let e=nC(t)&&"element"===t.anchor.type?v.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=id(n),i=ig(r);if(null===r||null===i)return;let{top:l,bottom:o}=t,s=0,a=0,u=n;for(;null!==u;){let t=u===r.body;if(t)s=0,a=i_(e).innerHeight;else{let e=u.getBoundingClientRect();s=e.top,a=e.bottom}let n=0;if(l<s?n=-(s-l):o>a&&(n=o-a),0!==n)if(t)i.scrollBy(0,n);else{let e=u.scrollTop;u.scrollTop+=n;let t=u.scrollTop-e;l-=t,o-=t}if(t)break;u=iu(u)}}(n,t,l)}}tm=!0}}(d,f,e,v,N,s)}!function(e,t,n){let r=e._blockCursorElement;if(nC(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){let i=n.anchor,l=i.getNode(),o=i.offset,s=!1,a=null;if(o===l.getChildrenSize())ix(l.getChildAtIndex(o-1))&&(s=!0);else{let t=l.getChildAtIndex(o);if(null!==t&&ix(t)){let n=t.getPreviousSibling();(null===n||ix(n))&&(s=!0,a=e.getElementByKey(t.__key))}}if(s){let n,i,o,s=e.getElementByKey(l.__key);return null===r&&(n=e._config.theme,(i=document.createElement("div")).contentEditable="false",i.setAttribute("data-lexical-cursor","true"),o=n.blockCursor,void 0!==o&&("string"==typeof o&&(o=n.blockCursor=ly(o)),void 0!==o&&i.classList.add(...o)),e._blockCursorElement=r=i),t.style.caretColor="transparent",null===a?s.appendChild(r):s.insertBefore(r,a)}}null!==r&&iS(r,e,t)}(e,s,f)}
1finally{null!==m&&m.observe(s,nq),nY=_,nj=h}}null!==y&&function(e,t,n,r,i){let l=Array.from(e._listeners.mutation),o=l.length;for(let e=0;e<o;e++){let[o,s]=l[e];for(let e of s){let l=t.get(e);void 0!==l&&o(l,{dirtyLeaves:r,prevEditorState:i,updateTags:n})}}}(e,y,N,C,u),nC(f)||null===f||null!==d&&d.is(f)||e.dispatchCommand(ev,void 0);let k=e._pendingDecorators;null!==k&&(e._decorators=k,e._pendingDecorators=null,n9("decorator",e,!0,k)),r=rH(n||u),r!==(i=rH(l))&&n9("textcontent",e,!0,i),n9("update",e,!0,{dirtyElements:x,dirtyLeaves:C,editorState:l,mutatedNodes:y,normalizedNodes:S,prevEditorState:n||u,tags:N}),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,T),function(e){let t=e._updates;if(0!==t.length){let n=t.shift();if(n){let[t,r]=n;rt(e,t,r)}}}(e)}function n9(e,t,n,...r){let i=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=i}}function re(e,n){let r=e._updates,i=n||!1;for(;0!==r.length;){let n=r.shift();if(n){let r,[l,o]=n,s=e._pendingEditorState;void 0!==o&&(r=o.onUpdate,o.skipTransforms&&(i=!0),o.discrete&&(null===s&&t(191),s._flushSync=!0),r&&e._deferred.push(r),n4(e,o.tag)),null==s?rt(e,l,o):l()}}return i}function rt(e,n,r){let i=e._updateTags,l,o=!1,s=!1;void 0!==r&&(l=r.onUpdate,n4(e,r.tag),o=r.skipTransforms||!1,s=r.discrete||!1),l&&e._deferred.push(l);let a=e._editorState,u=e._pendingEditorState,d=!1;(null===u||u._readOnly)&&(u=e._pendingEditorState=rc(u||a),d=!0),u._flushSync=s;let f=nj,c=nV,h=nY,g=e._updating;nj=u,nV=!1,e._updating=!0,nY=e;let _=e._headless||null===e.getRootElement();rN=null;try{var p;let i,l;d&&(_?null!==a._selection&&(u._selection=a._selection.clone()):u._selection=(p=r&&r.event||null,i=e.getEditorState()._selection,l=iN(i_(e)),nC(i)||null==i?nL(i,l,e,p):i.clone()));let s=e._compositionKey;n(),o=re(e,o),function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(nC(r)){let e,t=r.anchor,i=r.focus;if("text"===t.type&&(e=t.getNode()).selectionTransform(n,r),"text"===i.type){let t=i.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);nu(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&J(t)}}(u,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements,i=e._nodeMap,l=r$(),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=i.get(e);nu(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&J(r),void 0!==r&&n3(r,l)&&n6(t,r,o),n.add(e)}if((a=(s=t._dirtyLeaves).size)>0){nG++;continue}}for(let e of(t._dirtyLeaves=new Set,t._dirtyElements=new Map,u.delete("root")&&u.set("root",!0),u)){let n=e[0],s=e[1];if(r.set(n,s),!s)continue;let a=i.get(n);void 0!==a&&n3(a,l)&&n6(t,a,o)}a=(s=t._dirtyLeaves).size,d=(u=t._dirtyElements).size,nG++}t._dirtyLeaves=n,t._dirtyElements=r}(u,e),re(e),function(e,t,n,r){let i=e._nodeMap,l=t._nodeMap,o=[];for(let[e]of r){let t=l.get(e);void 0!==t&&(t.isAttached()||(ro(t)&&function e(t,n,r,i,l,o){let s=t.getFirstChild();for(;null!==s;){let t=s.__key;s.__parent===n&&(ro(s)&&e(s,t,r,i,l,o),r.has(t)||o.delete(t),l.push(t)),s=s.getNextSibling()}}(t,e,i,l,o,r),i.has(e)||r.delete(e),o.push(e)))}for(let e of o)l.delete(e);for(let e of n){let t=l.get(e);void 0===t||t.isAttached()||(i.has(e)||n.delete(e),l.delete(e))}}(a,u,e._dirtyLeaves,e._dirtyElements)),s!==e._compositionKey&&(u._flushSync=!0);let f=u._selection;if(nC(f)){let e=u._nodeMap,n=f.anchor.key,r=f.focus.key;void 0!==e.get(n)&&void 0!==e.get(r)||t(19)}else nS(f)&&0===f._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 n8(e)}finally{nj=f,nV=c,nY=h,e._updating=g,nG=0}0!==e._dirtyType||e._deferred.length>0||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,n8(e)):d&&rE(()=>{n8(e)}):(u._flushSync=!1,d&&(i.clear(),e._deferred=[],e._pendingEditorState=null))}function rn(e,t,n){nY===e&&void 0===n?t():rt(e,t,n)}class rr{element;before;after;constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new rr(this.element,e,this.after)}withAfter(e){return new rr(this.element,this.before,e)}withElement(e){return this.element===e?this:new rr(e,this.before,this.after)}insertChild(e){let n=this.before||this.getManagedLineBreak();return null!==n&&n.parentElement!==this.element&&t(222),this.element.insertBefore(e,n),this}removeChild(e){return e.parentElement!==this.element&&t(223),this.element.removeChild(e),this}replaceChild(e,n){return n.parentElement!==this.element&&t(224),this.element.replaceChild(e,n),this}getFirstChild(){let e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){null===e?this.removeManagedLineBreak():this.insertManagedLineBreak("decorator"===e&&(h||u||a))}removeManagedLineBreak(){let e=this.getManagedLineBreak();if(e){let t=this.element,n="IMG"===e.nodeName?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let t=this.getManagedLineBreak();if(t){if(e===("IMG"===t.nodeName))return;this.removeManagedLineBreak()}let n=this.element,r=this.before,i=document.createElement("br");if(n.insertBefore(i,r),e){let e=document.createElement("img");e.setAttribute("data-lexical-linebreak","true"),e.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",e.alt="",n.insertBefore(e,i),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;null!==t;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,n,r){if(n===this.element){let t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,r))]}let i=ri(t,n);i.push(r);let l=ri(t,this.element),o=e.getIndexWithinParent();for(let e=0;e<l.length;e++){let t=i[e],n=l[e];
1if(void 0===t||t<n)break;if(t>n){o+=1;break}}return[e.getParentOrThrow(),o]}}function ri(e,n){let r=[],i=n;for(;i!==e&&null!==i;i=i.parentNode){let e=0;for(let t=i.previousSibling;null!==t;t=t.previousSibling)e++;r.push(e)}return i!==e&&t(225),r.reverse()}class rl extends tY{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){return S[this.getFormat()]||""}getStyle(){return this.getLatest().__style}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=n1()._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(nu(t)&&e.push(t),ro(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;ro(e);){let t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;ro(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 ro(e)&&e.getLastDescendant()||e||null}let r=t[e];return ro(r)&&r.getFirstDescendant()||r||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:rU(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&t(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:rU(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&t(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 i=t[r];e+=i.getTextContent(),ro(i)&&r!==n-1&&!i.isInline()&&(e+="\n\n")}return e}getTextContentSize(){let e=0,t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContentSize(),ro(i)&&r!==n-1&&!i.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(""!==e){let t=x[e];return 0!=(this.getFormat()&t)}return!1}hasTextFormat(e){let t=y[e];return 0!=(this.getTextFormat()&t)}getFormatFlags(e,t){return rR(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){nQ();let n=nF(),r=e,i=t,l=this.getChildrenSize();if(!this.canBeEmpty()){if(0===e&&0===t){let e=this.getFirstChild();if(nu(e)||ro(e))return e.select(0,0)}else if((void 0===e||e===l)&&(void 0===t||t===l)){let e=this.getLastChild();if(nu(e)||ro(e))return e.select()}}void 0===r&&(r=l),void 0===i&&(i=l);let o=this.__key;return nC(n)?(n.anchor.set(o,r,"element"),n.focus.set(o,i,"element"),n.dirty=!0,n):nw(o,r,o,i,"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();
1return 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?x[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){let t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){let t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,n,r){tj(this)&&t(324,this.__key,this.__type);let i=this.getChildrenSize(),l=this.getWritable();e+n<=i||t(226,String(e),String(n),String(i));let o=l.__key,s=[],a=[],u=this.getChildAtIndex(e+n),d=null,f=i-n+r.length;if(0!==e)if(e===i)d=this.getLastChild();else{let t=this.getChildAtIndex(e);null!==t&&(d=t.getPreviousSibling())}if(n>0){let e=null===d?this.getFirstChild():d.getNextSibling();for(let r=0;r<n;r++){null===e&&t(100);let n=e.getNextSibling(),r=e.__key;rB(e.getWritable()),a.push(r),e=n}}let c=d;for(let e of r){null!==c&&e.is(c)&&(d=c=c.getPreviousSibling());let n=e.getWritable();n.__parent===o&&f--,rB(n);let r=e.__key;if(null===c)l.__first=r,n.__prev=null;else{let e=c.getWritable();e.__next=r,n.__prev=e.__key}e.__key===o&&t(76),n.__parent=o,s.push(r),c=e}if(e+n===i)null!==c&&(c.getWritable().__next=null,l.__last=c.__key);else if(null!==u){let e=u.getWritable();if(null!==c){let t=c.getWritable();e.__prev=c.__key,t.__next=u.__key}else e.__prev=null}if(l.__size=f,a.length){let e=nF();if(nC(e)){let t=new Set(a),n=new Set(s),{anchor:r,focus:i}=e;rs(r,t,n)&&nB(r,r.getNode(),this,d,u),rs(i,t,n)&&nB(i,i.getNode(),this,d,u),0!==f||this.canBeEmpty()||ip(this)||this.remove()}}return l}getDOMSlot(e){return new rr(e)}exportDOM(e){let{element:t}=super.exportDOM(e);if(iv(t)){let e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+"px");let n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){let e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return 0===t&&""===n||ip(this)||this.getChildren().some(nu)||(0!==t&&(e.textFormat=t),""!==n&&(e.textStyle=n)),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}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}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){let n=this.getDOMSlot(e),r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){let i=t.getElementByKey(e.getKey());null!==i&&(null==r?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling)}}}function ro(e){return e instanceof rl}function rs(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 ra extends tY{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function ru(e){return e instanceof ra}class rd extends rl{__cachedText;static getType(){return"root"}static clone(){return new rd}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){t(51)}getTextContent(){let e=this.__cachedText;return(nX()||0===n1()._dirtyType)&&null!==e?e:super.getTextContent()}remove(){t(52)}replace(e){t(53)}insertBefore(e){t(54)}insertAfter(e){t(55)}updateDOM(e,t){return!1}splice(e,n,r){for(let e of r)ro(e)||ru(e)||t(282);return super.splice(e,n,r)}static importJSON(e){return rG().updateFromJSON(e)}collapseAtStart(){return!0}}function rf(e){return e instanceof rd}function rc(e){return new rg(new Map(e._nodeMap))}function rh(){return new rg(new Map([["root",new rd]]))}class rg{_nodeMap;_selection;_flushSync;_readOnly;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,t){return n7(t&&t.editor||null,this,e)}clone(e){let t=new rg(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return n7(null,this,()=>({root:function e(n){let r=n.exportJSON(),i=n.constructor;if(r.type!==i.getType()&&t(130,i.name),ro(n)){let l=r.children;Array.isArray(l)||t(59,i.name);let o=n.getChildren();for(let t=0;t<o.length;t++){let n=e(o[t]);l.push(n)}}return r}(rG())}))}}class r_ extends rl{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class rp extends rl{static getType(){return"paragraph"}static clone(e){return new rp(e.__key)}createDOM(e){let t=document.createElement("p"),n=it(e.theme,"paragraph");return void 0!==n&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:rm,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(iv(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return ry().updateFromJSON(e)}exportJSON(){let e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){let t=this.getChildren().find(nu);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){let n=ry();n.setTextFormat(e.format),n.setTextStyle(e.style);let r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){let e=this.getChildren();if(0===e.length||nu(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 rm(e){let t=ry();if(e.style&&(t.setFormat(e.style.textAlign),iF(e,t)),""===t.getFormatType()){let n=e.getAttribute("align");n&&n&&n in x&&t.setFormat(n)}return{node:t}}function ry(){return iy(new rp)}function rC(e){return e instanceof rp}function rx(e,t,n,r){let i=e._keyToDOMMap;i.clear(),e._editorState=rh(),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 l=e._observer;null!==l&&(l.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",i.set("root",n))}class rS{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_htmlConversions;_window;_editable;_blockCursorElement;_createEditorArgs;constructor(e,t,n,r,i,l,o,s){this._createEditorArgs=s,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=r1(),this._onError=i,this._htmlConversions=l,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)}}
1registerEditableListener(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,n,r){void 0===r&&t(35);let i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);let l=i.get(e);void 0===l&&t(36,String(e));let o=l[r];return o.add(n),()=>{o.delete(n),l.every(e=>0===e.size)&&i.delete(e)}}registerMutationListener(e,t,n){let r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation,l=i.get(t);void 0===l&&(l=new Set,i.set(t,l)),l.add(r);let o=n&&n.skipInitialization;return void 0!==o&&o||this.initializeMutationListener(t,r),()=>{l.delete(r),0===l.size&&i.delete(t)}}getRegisteredNode(e){let n=this._nodes.get(e.getType());return void 0===n&&t(37,e.name),n}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){let n=this._editorState,r=iP(n).get(t.getType());if(!r)return;let i=new Map;for(let e of r.keys())i.set(e,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){let n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){let n=this.registerNodeTransformToKlass(e,t),r=[n],i=n.replaceWithKlass;if(null!=i){let e=this.registerNodeTransformToKlass(i,t);r.push(e)}return function(e,t){let n=iP(e.getEditorState()),r=[];for(let e of t){let t=n.get(e);t&&r.push(t)}0!==r.length&&e.update(()=>{for(let e of r)for(let t of e.keys()){let e=rU(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:tV}:void 0)}(this,r.map(e=>e.klass.getType())),()=>{r.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 is(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let n=this._rootElement;if(e!==n){let r=it(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,rx(this,n,e,i),null!==n&&(this._config.disableEvents||function(e){let n=t_.get(e);if(void 0===n)return t$();let r=tp.get(n);if(void 0===r)return t$();let i=r-1;i>=0||t(164),t_.delete(e),tp.set(n,i),0===i&&n.removeEventListener("selectionchange",tB);let l=rw(e);rM(l)?(!function(e){if(null!==e._parentEditor){let t=r0(e),n=t[t.length-1]._key;tK.get(n)===e&&tK.delete(n)}else tK.delete(e._key)}(l),e.__lexicalEditor=null):l&&t(198);let o=tR(e);for(let e=0;e<o.length;e++)o[e]();e.__lexicalEventHandles=[]}(n),null!=r&&n.classList.remove(...r)),null!==e){let t=ig(e),n=e.style;n.userSelect="text",n.whiteSpace="pre-wrap",n.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=t,this._dirtyType=2,w(this),this._updateTags.add(tV),n8(this),this._config.disableEvents||function(e,t){let n=e.ownerDocument;t_.set(e,n);let r=tp.get(n)??0;r<1&&n.addEventListener("selectionchange",tB),tp.set(n,r+1),e.__lexicalEditor=t;let i=tR(e);for(let n=0;n<td.length;n++){let[r,l]=td[n],o="function"==typeof l?e=>{tW(e)||(tz(e),(t.isEditable()||"click"===r)&&l(e,t))}:e=>{if(tW(e))return;tz(e);let n=t.isEditable();switch(r){case"cut":return n&&is(t,te,e);case"copy":return is(t,e9,e);case"paste":return n&&is(t,eF,e);case"dragstart":return n&&is(t,e5,e);case"dragover":return n&&is(t,e7,e);case"dragend":return n&&is(t,e8,e);case"focus":return n&&is(t,to,e);case"blur":return n&&is(t,ts,e);case"drop":return n&&is(t,e3,e)}};e.addEventListener(r,o),i.push(()=>{e.removeEventListener(r,o)})}}(e,this),null!=r&&e.classList.add(...r)}else this._window=null,this._updateTags.add(tV),n8(this);n9("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&t(38);let r=e;r._readOnly&&((r=rc(e))._selection=e._selection?e._selection.clone():null),A(this);
1let i=this._pendingEditorState,l=this._updateTags,o=void 0!==n?n.tag:null;null===i||i.isEmpty()||(null!=o&&l.add(o),n8(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=o&&l.add(o),this._updating||n8(this)}parseEditorState(e,t){return function(e,t,n){let r=rh(),i=nj,l=nV,o=nY,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,nj=r,nV=!1,nY=t,rN=null;try{let i=t._nodes;n5(e.root,i),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,nj=i,nV=l,nY=o}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return n8(this),this.getEditorState().read(e,{editor:this})}update(e,t){this._updating?this._updates.push([e,t]):rt(this,e,t)}focus(e,t={}){let n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),rn(this,()=>{var r;let i=nF(),l=rG();null!==i?i.dirty||rX(i.clone()):0!==l.getChildrenSize()&&("rootStart"===t.defaultSelection?l.selectStart():l.selectEnd()),ic("focus"),r=()=>{n.removeAttribute("autocapitalize"),e&&e()},nQ(),n1()._deferred.push(r)}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){let e=this._rootElement;null!==e&&e.blur();let t=iN(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,n9("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}rS.version="0.41.0+prod.esm";let rN=null,rT=1;function rv(e,n){let r=rk(e,n);return void 0===r&&t(30,n),r}function rk(e,t){return e._nodes.get(t)}let rE="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function rb(e){let t=document.activeElement;if(!iv(t))return!1;let n=t.nodeName;return ru(rY(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==rw(t))}function rO(e,t,n){let r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!rb(t)&&rA(t)===e}catch(e){return!1}}function rM(e){return e instanceof rS}function rA(e){let t=e;for(;null!=t;){let e=rw(t);if(rM(e))return e;t=iu(t)}return null}function rw(e){return e?e.__lexicalEditor:null}function rD(e){return nh(e)||e.isToken()}function rP(e){return rD(e)||e.isSegmented()}function rL(e){return ik(e)&&3===e.nodeType}function rF(e){return ik(e)&&9===e.nodeType}function rI(e){let t=e;for(;null!=t;){if(rL(t))return t;t=t.firstChild}return null}function rR(e,t,n){let r=y[t];if(null!==n&&(e&r)==(n&r))return e;let i=e^r;return"subscript"===t?i&=~y.superscript:"superscript"===t?i&=~y.subscript:"lowercase"===t?(i&=~y.uppercase,i&=~y.capitalize):"uppercase"===t?(i&=~y.lowercase,i&=~y.capitalize):"capitalize"===t&&(i&=~y.lowercase,i&=~y.uppercase),i}function rK(e,t){let n,r=(n=rN,rN=null,n);if(null!=(t=t||r&&r.__key))return void(e.__key=t);nQ(),nZ();let i=n1(),l=n0(),o=""+rT++;l._nodeMap.set(o,e),ro(e)?i._dirtyElements.set(o,!0):i._dirtyLeaves.add(o),i._cloneNotNeeded.add(o),i._dirtyType=1,e.__key=o}function rB(e){let t=e.getParent();if(null!==t){let n=e.getWritable(),r=t.getWritable(),i=e.getPreviousSibling(),l=e.getNextSibling(),o=null!==l?l.__key:null,s=null!==i?i.__key:null,a=null!==i?i.getWritable():null,u=null!==l?l.getWritable():null;null===i&&(r.__first=o),null===l&&(r.__last=s),null!==a&&(a.__next=o),null!==u&&(u.__prev=s),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function rz(e){nZ(),tj(e)&&t(323,e.__key,e.__type);let n=e.getLatest(),r=n.__parent,i=n0(),l=n1(),o=i._nodeMap,s=l._dirtyElements;null!==r&&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}}(r,o,s);let a=n.__key;l._dirtyType=1,ro(e)?s.set(a,!0):l._dirtyLeaves.add(a)}function rW(e){nQ();let t=n1(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){let e=rU(n);null!==e&&e.getWritable()}if(null!==e){let t=rU(e);null!==t&&t.getWritable()}}}function r$(){return nX()?null:n1()._compositionKey}function rU(e,t){let n=(t||n0())._nodeMap.get(e);return void 0===n?null:n}function rJ(e,t){let n=rj(e,n1());return void 0!==n?rU(n,t):null}function rj(e,t){return e[`__lexicalKey_${t._key}`]}function rY(e,t){let n=e;for(;null!=n;){let e=rJ(n,t);if(null!==e)return e;n=iu(n)}return null}function rV(e){let t=Object.assign({},e._decorators);return e._pendingDecorators=t,t}function rH(e){return e.read(()=>rG().getTextContent())}function rG(){return rq(n0())}function rq(e){return e._nodeMap.get("root")}function rX(e){nQ();let t=n0();
1null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function rQ(e){let t=n1(),n=function(e,t){let n=e;for(;null!=n;){let e=rj(n,t);if(void 0!==e)return e;n=iu(n)}return null}(e,t);return null===n?e===t.getRootElement()?rU("root"):null:rU(n)}function rZ(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function r0(e){let t=[],n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function r1(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function r2(e){return rL(e)?e.nodeValue:null}function r6(e,t,n){let r=iN(i_(t));if(null===r)return;let i=r.anchorNode,{anchorOffset:l,focusOffset:o}=r;if(null!==i){let t=r2(i),r=rY(i);if(null!==t&&nu(r)){if((t===g||t===_)&&n){let e=n.length;t=n,l=e,o=e}null!==t&&r3(r,t,l,o,e)}}}function r3(e,t,n,r,i){let l=e;if(l.isAttached()&&(i||!l.isDirty())){let o=l.isComposing(),s=t;if((o||i)&&(t.endsWith(g)&&(s=t.slice(0,-g.length)),i)){let e;for(;-1!==(e=s.indexOf(_));)s=s.slice(0,e)+s.slice(e+_.length),null!==n&&n>e&&(n=Math.max(e,n-_.length)),null!==r&&r>e&&(r=Math.max(e,r-_.length))}let d=l.getTextContent();if(i||s!==d){if(""===s){if(rW(null),a||u||h)l.remove();else{let e=n1();setTimeout(()=>{e.update(()=>{l.isAttached()&&l.remove()})},20)}return}let t=l.getParent(),i=nI(),d=l.getTextContentSize(),f=r$(),c=l.getKey();if(l.isToken()||null!==f&&c===f&&!o||nC(i)&&(null!==t&&!t.canInsertTextBefore()&&0===i.anchor.offset||i.anchor.key===e.__key&&0===i.anchor.offset&&!l.canInsertTextBefore()&&!o||i.focus.key===e.__key&&i.focus.offset===d&&!l.canInsertTextAfter()&&!o))return void l.markDirty();let g=nF();if(!nC(g)||null===n||null===r)return void r4(l,s,g);if(g.setTextNodeRange(l,n,l,r),l.isSegmented()){let e=na(l.getTextContent());l.replace(e),l=e}r4(l,s,g)}}}function r4(e,t,n){if(e.setTextContent(t),nC(n)){let t=e.getKey();for(let r of["anchor","focus"]){let i=n[r];"text"===i.type&&i.key===t&&(i.offset=i0(e,i.offset,"clamp"))}}}function r5(e,t,n){let r=t[n]||!1;return"any"===r||r===e[n]}function r7(e,t,n){if(!(r5(e,n,"altKey")&&r5(e,n,"ctrlKey")&&r5(e,n,"shiftKey")&&r5(e,n,"metaKey")))return!1;if(e.key.toLowerCase()===t.toLowerCase())return!0;if(t.length>1||1===e.key.length&&127>=e.key.charCodeAt(0))return!1;let r="Key"+t.toUpperCase();return e.code===r}let r8={ctrlKey:!l,metaKey:l},r9={altKey:l,ctrlKey:!l};function ie(e){return"Backspace"===e.key}function it(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];if(void 0!==r)return r;let i=e[t];if("string"==typeof i){let e=ly(i);return n[t]=e,e}return i}function ir(e,n,r,i,l){if(0===r.size)return;let o=i.__type,s=i.__key,a=n.get(o);void 0===a&&t(33,o);let u=a.klass,d=e.get(u);void 0===d&&(d=new Map,e.set(u,d));let f=d.get(s),c="destroyed"===f&&"created"===l;(void 0===f||c)&&d.set(s,c?"updated":l)}function ii(e,t,n){let r=e.getParent(),i=n,l=e;return null!==r&&(t&&0===n?(i=l.getIndexWithinParent(),l=r):t||n!==l.getChildrenSize()||(i=l.getIndexWithinParent()+1,l=r)),l.getChildAtIndex(t?i-1:i)}function il(e,t){let n=e.offset;if("element"===e.type)return ii(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?ii(r.getParentOrThrow(),t,r.getIndexWithinParent()+ +!t):e}}return null}function io(e){let t=i_(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function is(e,t,n){return function(e,t,n){let r=r0(e);for(let i=4;i>=0;i--)for(let l=0;l<r.length;l++){let o=r[l],s=o._commands.get(t);if(void 0!==s){let t=s[i];if(void 0!==t){let r=Array.from(t),i=r.length,l=!1;if(rn(o,()=>{for(let t=0;t<i;t++)if(r[t](n,e))return void(l=!0)}),l)return l}}}return!1}(e,t,n)}function ia(e,n){let r=e._keyToDOMMap.get(n);return void 0===r&&t(75,n),r}function iu(e){let t=e.assignedSlot||e.parentElement;return iE(t)?t.host:t}function id(e){return rF(e)?e:iv(e)?e.ownerDocument:null}function ic(e){nQ(),n1()._updateTags.add(e)}function ih(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function ig(e){let t=id(e);return t?t.defaultView:null}function i_(e){let n=e._window;return null===n&&t(78),n}function ip(e){return rf(e)||ro(e)&&e.isShadowRoot()}function im(e){let t=e.constructor.clone(e);return rK(t,null),t.afterCloneFrom(e),t}function iy(e){let n=n1(),r=e.getType(),i=rk(n,r);void 0===i&&t(200,e.constructor.name,r);let{replace:l,replaceWithKlass:o}=i;if(null!==l){let n=l(e),i=n.constructor;return null!==o?n instanceof o||t(201,o.name,o.getType(),i.name,i.getType(),e.constructor.name,r):n instanceof e.constructor&&i!==e.constructor||t(202,i.name,i.getType(),e.constructor.name,r),n.__key===e.__key&&t(203,e.constructor.name,r,i.name,i.getType()),n}return e}function iC(e,n){!rf(e.getParent())||ro(n)||ru(n)||t(99)}function ix(e){return(ru(e)||ro(e)&&!e.canBeEmpty())&&!e.isInline()}function iS(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;let r=e.parentElement;null!==r&&r.removeChild(e)}function iN(e){return r?(e||window).getSelection():null}function iT(e){let t=ig(e);return t?t.getSelection():null}function iv(e){return ik(e)&&1===e.nodeType}
1function ik(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function iE(e){return ik(e)&&11===e.nodeType}function ib(e){let t=RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function iO(e){let t=RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function iM(e){if(ru(e)&&!e.isInline())return!0;if(!ro(e)||ip(e))return!1;let t=e.getFirstChild(),n=null===t||t2(t)||nu(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function iA(){return n1()}let iw=new WeakMap,iD=new Map;function iP(e){if(!e._readOnly&&e.isEmpty())return iD;e._readOnly||t(192);let n=iw.get(e);return n||(n=function(e){let t=new Map;for(let[n,r]of e._nodeMap){let e=r.__type,i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,r)}return t}(e),iw.set(e,n)),n}function iL(e){let t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function iF(e,t){let n=Math.round((parseInt(e.style.paddingInlineStart,10)||0)/40);t.setIndent(n)}function iI(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==tY[t]}function iR(e){let n=v in e.prototype?e.prototype[v]():void 0,r=function(e){if(!(e===tY||e.prototype instanceof tY)){let n="<unknown>",r="<unknown>";try{n=e.getType()}catch(e){}try{rS.version&&(r=JSON.parse(rS.version))}catch(e){}t(290,e.name,n,r)}return e===ra||e===rl||e===tY}(e),i=!r&&iI(e,"getType")?e.getType():void 0,l,o=i;if(n)if(i)l=n[i];else for(let[e,t]of Object.entries(n))o=e,l=t;if(!r&&o&&(iI(e,"getType")||(e.getType=()=>o),iI(e,"clone")||(e.clone=t=>(rN=t,new e)),iI(e,"importJSON")||(e.importJSON=l&&l.$importJSON||(t=>(new e).updateFromJSON(t))),!iI(e,"importDOM")&&l)){let{importDOM:t}=l;t&&(e.importDOM=()=>t)}return{ownNodeConfig:l,ownNodeType:o}}let iK=(e,t)=>{let n=e;for(;null!=n&&!rf(n);){if(t(n))return n;n=n.getParent()}return null},iB={next:"previous",previous:"next"};class iz{origin;constructor(e){this.origin=e}[Symbol.iterator](){return i9({hasNext:iV,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return iQ(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return iQ(this.origin,this.direction)}remove(){let e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){let n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(null===n?this.insert(e):n.replace(e,t)),this}splice(e,n,r="next"){let i=r===this.direction?n:Array.from(n).reverse(),l=this,o=this.getParentAtCaret(),s=new Map;for(let t=l.getAdjacentCaret();null!==t&&s.size<e;t=t.getAdjacentCaret()){let e=t.origin.getWritable();s.set(e.getKey(),e)}for(let e of i){if(s.size>0){let n=l.getNodeAtCaret();if(n)if(s.delete(n.getKey()),s.delete(e.getKey()),n.is(e)||l.origin.is(e));else{let t=e.getParent();t&&t.is(o)&&e.remove(),n.replace(e)}else null===n&&t(263,Array.from(s).join(" "))}else l.insert(e);l=iQ(e,this.direction)}for(let e of s.values())e.remove();return this}}class iW extends iz{type="child";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:i1(e,this.direction)}getParentCaret(e="root"){return iQ(iU(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=iB[this.direction];return iQ(this.getNodeAtCaret(),e)||i1(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof iW&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}let i$={root:rf,shadowRoot:ip};function iU(e,t="root"){return i$[t](e)?null:e}class iJ extends iz{type="sibling";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:iQ(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return ro(this.origin)?i1(this.origin,this.direction):null}getParentCaret(e="root"){return iQ(iU(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=iB[this.direction];return iQ(this.getNodeAtCaret(),e)||i1(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof iJ&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof iJ||e instanceof ij)&&this.direction===e.direction&&this.origin.is(e.origin)}}class ij extends iz{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){let e=this.origin.getLatest();return e===this.origin?this:iZ(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return iQ(iU(this.getParentAtCaret(),e),this.direction)}getFlipped(){return iZ(this.origin,iB[this.direction],this.offset)}isSamePointCaret(e){return e instanceof ij&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof iJ||e instanceof ij)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return iQ(this.origin,this.direction)}}function iY(e){return e instanceof ij}function iV(e){return e instanceof iJ}function iH(e){return e instanceof iW}let iG={next:class extends ij{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends ij{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},iq={next:class extends iJ{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends iJ{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},iX={next:class extends iW{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends iW{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function iQ(e,t){return e?new iq[t](e):null}
1function iZ(e,t,n){return e?new iG[t](e,i0(e,n)):null}function i0(e,t,r="error"){let i=e.getTextContentSize(),l="next"===t?i:"previous"===t?0:t;return(l<0||l>i)&&("clamp"!==r&&n(284,String(t),String(i),e.getKey()),l=l<0?0:i),l}function i1(e,t){return ro(e)?new iX[t](e):null}function i2(e){return e&&e.getChildCaret()||e}function i6(e){return e&&i2(e.getAdjacentCaret())}class i3{type="node-caret-range";direction;anchor;focus;constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){let e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new i3(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){let e=e=>{let t=this[e].getLatest();return iY(t)?function(e,t){let{direction:n,origin:r}=e;return new i4(e,i0(r,"focus"===t?iB[n]:n)-e.offset)}(t,e):null},t=e("anchor"),n=e("focus");if(t&&n){let{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[new i4(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){let t=iY(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=iY(n),i=t=>t.isSameNodeCaret(n)?null:i6(t)||t.getParentCaret(e);return i9({hasNext:e=>null!==e&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:i(t),map:e=>e,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class i4{type="slice";caret;distance;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){let{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){let[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){let{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),i=e.getTextContent();return iZ(e.setTextContent(i.slice(0,n)+i.slice(r)),t,n)}}function i5(e){return i8(e,iQ(rG(),e.direction))}function i7(e){return i8(e,e)}function i8(e,n){return e.direction!==n.direction&&t(265),new i3(e,n,e.direction)}function i9(e){let{initial:t,hasNext:n,step:r,map:i}=e,l=t;return{[Symbol.iterator](){return this},next(){if(!n(l))return{done:!0,value:void 0};let e={done:!1,value:i(l)};return l=r(l),e}}}function le(e,n){let r=lr(e.origin,n.origin);switch(null===r&&t(275,e.origin.getKey(),n.origin.getKey()),r.type){case"same":{let t="text"===e.type,r="text"===n.type;return t&&r?Math.sign(e.offset-n.offset):e.type===n.type?0:t?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===n.type?1:-1;case"branch":return lt(r)}}function lt(e){let{a:t,b:n}=e,r=t.__key,i=n.__key,l=t,o=n;for(;l&&o;l=l.getNextSibling(),o=o.getNextSibling()){if(l.__key===i)return -1;if(o.__key===r)return 1}return null===l?1:-1}function ln(e){return ro(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function lr(e,n){if(e.is(n))return{commonAncestor:e,type:"same"};let r=new Map;for(let[t,n]=ln(e);t;n=t,t=t.getParent())r.set(t,n);for(let[i,l]=ln(n);i;l=i,i=i.getParent()){let o=r.get(i);if(void 0!==o)return null===o?(i.is(e)||t(276),{commonAncestor:i,type:"ancestor"}):null===l?(i.is(n)||t(277),{commonAncestor:i,type:"descendant"}):((ro(o)||o.is(e))&&(ro(l)||l.is(n))&&i.is(o.getParent())&&i.is(l.getParent())||t(278),{a:o,b:l,commonAncestor:i,type:"branch"})}return null}function li(e,n){var r;let i,{type:l,key:o,offset:s}=e,a=(null===(i=rU(r=e.key))&&t(63,r),i);return"text"===l?(nu(a)||t(266,a.getType(),o),iZ(a,n,s)):(ro(a)||t(267,a.getType(),o),function(e,t,n){let r=i1(e,"next");for(let e=0;e<t;e++){let e=r.getAdjacentCaret();if(null===e)break;r=e}return lg(r,n)}(a,e.offset,n))}function ll(e,n){let{origin:r,direction:i}=n,l="next"===i;iY(n)?e.set(r.getKey(),n.offset,"text"):iV(n)?nu(r)?e.set(r.getKey(),i0(r,i),"text"):e.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+ +!!l,"element"):(iH(n)&&ro(r)||t(268),e.set(r.getKey(),l?0:r.getChildrenSize(),"element"))}function lo(e){let t=nF(),n=nC(t)?t:nD();return ls(n,e),rX(n),n}function ls(e,t){ll(e.anchor,t.anchor),ll(e.focus,t.focus)}function la(e){let{anchor:t,focus:n}=e,r=li(t,"next"),i=li(n,"next"),l=0>=le(r,i)?"next":"previous";return i8(lg(r,l),lg(i,l))}function lu(e){let{direction:t,origin:n}=e,r=iQ(n,iB[t]).getNodeAtCaret();return r?iQ(r,t):i1(n.getParentOrThrow(),t)}function ld(e,t="root"){let n=[e];for(let r=iH(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;
1r=r.getParentCaret(t))n.push(lu(r));return n}function lf(e){return!!e&&e.origin.isAttached()}function lc(e){let t=function(e){let t=e;for(;iH(t);){let e=i6(t);if(!iH(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(nu(t.origin))return iY(t)?t:iZ(t.origin,n,n);let r=t.getAdjacentCaret();return iV(r)&&nu(r.origin)?iZ(r.origin,n,iB[n]):t}function lh(e){return iY(e)&&e.offset!==i0(e.origin,e.direction)}function lg(e,t){return e.direction===t?e:e.getFlipped()}function l_(e,t){return e.direction===t?e:i8(lg(e.focus,t),lg(e.anchor,t))}function lp(e){let{origin:n,offset:r,direction:i}=e;if(r===i0(n,i))return e.getSiblingCaret();if(r===i0(n,iB[i]))return lu(e.getSiblingCaret());let[l]=n.splitText(r);return nu(l)||t(281),lg(iQ(l,"next"),i)}function lm(e,t){return!0}function ly(...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}e.s(["$addUpdateTag",0,ic,"$applyNodeReplacement",0,iy,"$caretFromPoint",0,li,"$caretRangeFromSelection",0,la,"$cloneWithProperties",0,iL,"$cloneWithPropertiesEphemeral",0,function(e){var t;return(t=iL(e))[tJ]=!0,t},"$copyNode",0,im,"$create",0,function(e){let t=iA();return nQ(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e))).klass},"$createLineBreakNode",0,t1,"$createNodeSelection",0,nP,"$createParagraphNode",0,ry,"$createPoint",0,n_,"$createRangeSelection",0,nD,"$createRangeSelectionFromDom",0,function(e,t){return nL(null,e,t,null)},"$createTabNode",0,nc,"$createTextNode",0,na,"$extendCaretToRange",0,i5,"$findMatchingParent",0,iK,"$getAdjacentChildCaret",0,i6,"$getAdjacentNode",0,il,"$getAdjacentSiblingOrParentSiblingCaret",0,function(e,t="root"){let n=0,r=e,i=i6(r);for(;null===i;){if(n--,!(i=r.getParentCaret(t)))return null;i=i6(r=i)}return i&&[i,n]},"$getCaretInDirection",0,lg,"$getCaretRange",0,i8,"$getCharacterOffsets",0,nT,"$getChildCaret",0,i1,"$getChildCaretOrSelf",0,i2,"$getCollapsedCaretRange",0,i7,"$getEditor",0,iA,"$getNearestNodeFromDOMNode",0,rY,"$getNodeByKey",0,rU,"$getNodeFromDOMNode",0,rJ,"$getPreviousSelection",0,nI,"$getRoot",0,rG,"$getSelection",0,nF,"$getSiblingCaret",0,iQ,"$getState",0,P,"$hasAncestor",0,ih,"$insertNodes",0,function(e){let t=nF()||nI();null===t&&(t=rG().selectEnd()),t.insertNodes(e)},"$isBlockElementNode",0,function(e){return ro(e)&&!e.isInline()},"$isChildCaret",0,iH,"$isDecoratorNode",0,ru,"$isEditorState",0,function(e){return e instanceof rg},"$isElementNode",0,ro,"$isExtendableTextPointCaret",0,lh,"$isInlineElementOrDecoratorNode",0,function(e){return ro(e)&&e.isInline()||ru(e)&&e.isInline()},"$isLeafNode",0,function(e){return nu(e)||t2(e)||ru(e)},"$isLineBreakNode",0,t2,"$isNodeSelection",0,nS,"$isParagraphNode",0,rC,"$isRangeSelection",0,nC,"$isRootNode",0,rf,"$isRootOrShadowRoot",0,ip,"$isSiblingCaret",0,iV,"$isTextNode",0,nu,"$isTextPointCaret",0,iY,"$isTokenOrSegmented",0,rP,"$normalizeCaret",0,lc,"$normalizeSelection__EXPERIMENTAL",0,j,"$parseSerializedNode",0,function(e){return n5(e,n1()._nodes)},"$rewindSiblingCaret",0,lu,"$selectAll",0,function(e){let t=rG();if(nC(e)){let t=e.anchor,n=e.focus,r=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),j(e),e}{let e=t.select(0,t.getChildrenSize());return rX(j(e)),e}},"$setPointFromCaret",0,ll,"$setSelection",0,rX,"$setSelectionFromCaretRange",0,lo,"$setState",0,function(e,t,n){let r;if(nQ(),"function"==typeof n){let i=e.getLatest(),l=P(i,t);if(r=n(l),t.isEqual(l,r))return i}else r=n;let i=e.getWritable();return F(i).updateFromKnown(t,r),i},"$splitAtPointCaretNext",0,function(e,{$copyElementNode:t=im,$splitTextPointCaretNext:n=lp,rootMode:r="shadowRoot",$shouldSplit:i=lm}={}){if(iY(e))return n(e);let l=e.getParentCaret(r);if(l){let{origin:n}=l;if(iH(e)&&(!n.canBeEmpty()||!i(n,"first")))return lu(l);let r=function(e){let t=[];for(let n=e.getAdjacentCaret();n;n=n.getAdjacentCaret())t.push(n.origin);return t}(e);(r.length>0||n.canBeEmpty()&&i(n,"last"))&&l.insert(t(n).splice(0,0,r))}return l},"ArtificialNode__DO_NOT_USE",0,r_,"BLUR_COMMAND",0,ts,"CAN_REDO_COMMAND",0,ti,"CAN_UNDO_COMMAND",0,tl,"CLEAR_EDITOR_COMMAND",0,tn,"CLEAR_HISTORY_COMMAND",0,tr,"CLICK_COMMAND",0,eE,"COMMAND_PRIORITY_CRITICAL",0,4,"COMMAND_PRIORITY_EDITOR",0,0,"COMMAND_PRIORITY_HIGH",0,3,"COMMAND_PRIORITY_LOW",0,1,"COMMAND_PRIORITY_NORMAL",0,2,"COMPOSITION_END_TAG",0,tQ,"COMPOSITION_START_TAG",0,tX,"CONTROLLED_TEXT_INSERTION_COMMAND",0,eL,"COPY_COMMAND",0,e9,"CUT_COMMAND",0,te,"DELETE_CHARACTER_COMMAND",0,ew,"DELET
1E_LINE_COMMAND",0,eK,"DELETE_WORD_COMMAND",0,eR,"DRAGOVER_COMMAND",0,e7,"DRAGSTART_COMMAND",0,e5,"DROP_COMMAND",0,e3,"DecoratorNode",0,ra,"ElementNode",0,rl,"FOCUS_COMMAND",0,to,"FORMAT_ELEMENT_COMMAND",0,e4,"FORMAT_TEXT_COMMAND",0,eB,"HISTORIC_TAG",0,"historic","HISTORY_MERGE_TAG",0,tV,"HISTORY_PUSH_TAG",0,"history-push","INDENT_CONTENT_COMMAND",0,e2,"INSERT_LINE_BREAK_COMMAND",0,eD,"INSERT_PARAGRAPH_COMMAND",0,eP,"INSERT_TAB_COMMAND",0,e1,"INTERNAL_$isBlock",0,iM,"KEY_ARROW_DOWN_COMMAND",0,eH,"KEY_ARROW_LEFT_COMMAND",0,ej,"KEY_ARROW_RIGHT_COMMAND",0,eU,"KEY_ARROW_UP_COMMAND",0,eV,"KEY_BACKSPACE_COMMAND",0,eX,"KEY_DELETE_COMMAND",0,eZ,"KEY_ENTER_COMMAND",0,eG,"KEY_ESCAPE_COMMAND",0,eQ,"KEY_SPACE_COMMAND",0,eq,"KEY_TAB_COMMAND",0,e0,"LineBreakNode",0,tZ,"OUTDENT_CONTENT_COMMAND",0,e6,"PASTE_COMMAND",0,eF,"PASTE_TAG",0,"paste","ParagraphNode",0,rp,"REDO_COMMAND",0,eW,"REMOVE_TEXT_COMMAND",0,eI,"RootNode",0,rd,"SELECTION_CHANGE_COMMAND",0,ev,"SELECTION_INSERT_CLIPBOARD_NODES_COMMAND",0,ek,"SELECT_ALL_COMMAND",0,tt,"SKIP_DOM_SELECTION_TAG",0,tG,"SKIP_SCROLL_INTO_VIEW_TAG",0,tH,"SKIP_SELECTION_FOCUS_TAG",0,tq,"TEXT_TYPE_TO_FORMAT",0,y,"TabNode",0,nf,"TextNode",0,ne,"UNDO_COMMAND",0,ez,"addClassNamesToElement",0,function(e,...t){let n=ly(...t);n.length>0&&e.classList.add(...n)},"buildImportMap",0,function(e){return e},"configExtension",0,function(...e){return e},"createCommand",0,eT,"createEditor",0,function(e){var t,n;let r,i,l,o,s=e||{},a=nY,u=s.theme||{},d=void 0===e?a:s.parentEditor||null,f=s.disableEvents||!1,c=rh(),h=s.namespace||(null!==d?d._config.namespace:r1()),g=s.editorState,_=[rd,ne,tZ,nf,rp,r_,...s.nodes||[]],{onError:p,html:m}=s,y=void 0===s.editable||s.editable;if(void 0===e&&null!==a)r=a._nodes;else{r=new Map;for(let e=0;e<_.length;e++){let t=_[e],n=null,i=null;if("function"!=typeof t){let e=t;t=e.replace,n=e.with,i=e.withKlass||null}iR(t);let l=t.getType(),o=function(e){let t=new Set,n=new Set,r=e;for(;r;){let{ownNodeConfig:e}=iR(r),i=r.transform;if(!n.has(i)){n.add(i);let e=r.transform();e&&t.add(e)}if(e){let n=e.$transform;n&&t.add(n),r=e.extends}else{let e=Object.getPrototypeOf(r);r=e.prototype instanceof tY&&e!==tY?e:void 0}}return t}(t);r.set(l,{exportDOM:m&&m.export?m.export.get(t):void 0,klass:t,replace:n,replaceWithKlass:i,sharedNodeState:function(e){let t=new Map,n=new Set;for(let r="function"==typeof e?e:e.replace;r.prototype&&void 0!==r.prototype.getType;r=Object.getPrototypeOf(r)){let{ownNodeConfig:e}=iR(r);if(e&&e.stateConfigs)for(let r of e.stateConfigs){let e;"stateConfig"in r?(e=r.stateConfig,r.flat&&n.add(e.key)):e=r,t.set(e.key,e)}}return{flatKeys:n,sharedConfigMap:t}}(_[e]),transforms:o})}}let C=new rS(c,d,r,{disableEvents:f,namespace:h,theme:u},p||console.error,(t=r,n=m?m.import:void 0,i=new Map,l=new Set,o=e=>{Object.keys(e).forEach(t=>{let n=i.get(t);void 0===n&&(n=[],i.set(t,n)),n.push(e[t])})},t.forEach(e=>{let t=e.klass.importDOM;if(null==t||l.has(t))return;l.add(t);let n=t.call(e.klass);null!==n&&o(n)}),n&&o(n),i),y,e);return void 0!==g&&(C._pendingEditorState=g,C._dirtyType=2),C.registerCommand(eb,tw,0),C.registerCommand(eO,tD,0),C.registerCommand(eM,tP,0),C.registerCommand(eA,tL,0),C.registerCommand(e$,tI,0),C},"createState",0,function(e,t){return new D(e,t)},"defineExtension",0,function(e){return e},"getDOMSelection",0,iN,"getDOMSelectionFromTarget",0,iT,"getDOMTextNode",0,rI,"getNearestEditorFromDOMNode",0,rA,"getRegisteredNode",0,rk,"isBlockDomNode",0,iO,"isCurrentlyReadOnlyMode",0,nX,"isDOMDocumentNode",0,rF,"isDOMNode",0,ik,"isDocumentFragment",0,iE,"isHTMLAnchorElement",0,function(e){return iv(e)&&"A"===e.tagName},"isHTMLElement",0,iv,"isInlineDomNode",0,ib,"isSelectionCapturedInDecoratorInput",0,rb,"isSelectionWithinEditor",0,rO,"makeStepwiseIterator",0,i9,"mergeRegister",0,function(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}},"normalizeClassNames",0,ly,"removeClassNamesFromElement",0,function(e,...t){let n=ly(...t);n.length>0&&e.classList.remove(...n)},"safeCast",0,function(e){return e},"setDOMUnmanaged",0,function(e){e.__lexicalUnmanaged=!0},"setNodeIndentFromDOM",0,iF,"shallowMergeConfig",0,function(e,t){if(!t||e===t)return e;for(let n in t)if(e[n]!==t[n])return{...e,...t};return e},"toggleTextFormatType",0,rR])},978685,e=>{"use strict";var t=e.i(216887);let n=(0,t.createContext)(null);e.s(["LexicalComposerContext",0,n,"createLexicalComposerContext",0,function(e,t){let n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}},"useLexicalComposerContext",0,function(){let e=(0,t.useContext)(n);return null==e&&function(...e){let t=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let t of(n.append("code",8),e))n.append("v",t);throw t.search=n.toString(),Error(`Minified Lexical error #8; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(),e}])}]);

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.